@angular/compiler-cli 13.0.0-next.7 → 13.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (600) hide show
  1. package/bundles/index.js +20418 -0
  2. package/bundles/index.js.map +6 -0
  3. package/bundles/linker/babel/index.js +2384 -0
  4. package/bundles/linker/babel/index.js.map +6 -0
  5. package/bundles/linker/index.js +1849 -0
  6. package/bundles/linker/index.js.map +6 -0
  7. package/bundles/ngcc/index.js +16054 -0
  8. package/bundles/ngcc/index.js.map +6 -0
  9. package/bundles/ngcc/main-ngcc.js +16142 -0
  10. package/bundles/ngcc/main-ngcc.js.map +6 -0
  11. package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +13866 -0
  12. package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js.map +6 -0
  13. package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +334 -0
  14. package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js.map +6 -0
  15. package/bundles/private/bazel.js +97 -0
  16. package/bundles/private/bazel.js.map +6 -0
  17. package/bundles/private/localize.js +911 -0
  18. package/bundles/private/localize.js.map +6 -0
  19. package/bundles/private/migrations.js +2181 -0
  20. package/bundles/private/migrations.js.map +6 -0
  21. package/bundles/private/tooling.js +942 -0
  22. package/bundles/private/tooling.js.map +6 -0
  23. package/bundles/src/bin/ng_xi18n.js +20468 -0
  24. package/bundles/src/bin/ng_xi18n.js.map +6 -0
  25. package/bundles/src/bin/ngc.js +20470 -0
  26. package/bundles/src/bin/ngc.js.map +6 -0
  27. package/bundles_metadata.json +1 -0
  28. package/import_meta_url.d.ts +14 -0
  29. package/index.d.ts +4 -1
  30. package/linker/babel/src/ast/babel_ast_factory.d.ts +1 -8
  31. package/linker/babel/src/ast/babel_ast_host.d.ts +1 -1
  32. package/linker/babel/src/babel_core.d.ts +36 -0
  33. package/linker/babel/src/babel_declaration_scope.d.ts +1 -1
  34. package/linker/babel/src/babel_plugin.d.ts +1 -8
  35. package/linker/babel/src/es2015_linker_plugin.d.ts +2 -2
  36. package/linker/src/ast/typescript/typescript_ast_host.d.ts +1 -1
  37. package/linker/src/file_linker/emit_scopes/emit_scope.d.ts +1 -2
  38. package/linker/src/file_linker/emit_scopes/iife_emit_scope.d.ts +1 -1
  39. package/linker/src/file_linker/partial_linkers/partial_class_metadata_linker_1.d.ts +1 -2
  40. package/linker/src/file_linker/partial_linkers/partial_component_linker_1.d.ts +1 -2
  41. package/linker/src/file_linker/partial_linkers/partial_directive_linker_1.d.ts +1 -2
  42. package/linker/src/file_linker/partial_linkers/partial_factory_linker_1.d.ts +1 -2
  43. package/linker/src/file_linker/partial_linkers/partial_injectable_linker_1.d.ts +1 -2
  44. package/linker/src/file_linker/partial_linkers/partial_injector_linker_1.d.ts +1 -2
  45. package/linker/src/file_linker/partial_linkers/partial_linker.d.ts +1 -2
  46. package/linker/src/file_linker/partial_linkers/partial_linker_selector.d.ts +2 -2
  47. package/linker/src/file_linker/partial_linkers/partial_ng_module_linker_1.d.ts +1 -2
  48. package/linker/src/file_linker/partial_linkers/partial_pipe_linker_1.d.ts +1 -2
  49. package/linker/src/file_linker/partial_linkers/util.d.ts +1 -2
  50. package/ngcc/index.d.ts +15 -0
  51. package/ngcc/src/analysis/decoration_analyzer.d.ts +1 -1
  52. package/ngcc/src/analysis/module_with_providers_analyzer.d.ts +1 -1
  53. package/ngcc/src/analysis/ngcc_references_registry.d.ts +1 -1
  54. package/ngcc/src/analysis/ngcc_trait_compiler.d.ts +1 -1
  55. package/ngcc/src/analysis/private_declarations_analyzer.d.ts +1 -1
  56. package/ngcc/src/analysis/switch_marker_analyzer.d.ts +1 -1
  57. package/ngcc/src/analysis/types.d.ts +1 -1
  58. package/ngcc/src/dependencies/esm_dependency_host.d.ts +1 -1
  59. package/ngcc/src/execution/cluster/api.d.ts +5 -1
  60. package/ngcc/src/execution/cluster/master.d.ts +5 -3
  61. package/{src/ngtsc/logging/testing/index.d.ts → ngcc/src/execution/cluster/ngcc_cluster_worker.d.ts} +2 -2
  62. package/ngcc/src/host/commonjs_host.d.ts +1 -1
  63. package/ngcc/src/host/commonjs_umd_utils.d.ts +1 -1
  64. package/ngcc/src/host/delegating_host.d.ts +1 -1
  65. package/ngcc/src/host/esm2015_host.d.ts +1 -1
  66. package/ngcc/src/host/esm5_host.d.ts +2 -1
  67. package/ngcc/src/host/ngcc_host.d.ts +1 -1
  68. package/ngcc/src/host/umd_host.d.ts +1 -1
  69. package/ngcc/src/host/utils.d.ts +1 -1
  70. package/ngcc/src/locking/lock_file.d.ts +1 -1
  71. package/ngcc/src/locking/lock_file_with_child_process/index.d.ts +2 -0
  72. package/ngcc/src/locking/lock_file_with_child_process/{unlocker.d.ts → ngcc_lock_unlocker.d.ts} +1 -1
  73. package/ngcc/src/migrations/migration.d.ts +1 -1
  74. package/ngcc/src/migrations/missing_injectable_migration.d.ts +1 -1
  75. package/ngcc/src/migrations/undecorated_child_migration.d.ts +1 -1
  76. package/ngcc/src/migrations/undecorated_parent_migration.d.ts +1 -1
  77. package/ngcc/src/migrations/utils.d.ts +1 -1
  78. package/ngcc/src/packages/build_marker.d.ts +1 -1
  79. package/ngcc/src/packages/bundle_program.d.ts +1 -1
  80. package/ngcc/src/packages/configuration.d.ts +41 -4
  81. package/ngcc/src/packages/entry_point_bundle.d.ts +1 -1
  82. package/ngcc/src/packages/ngcc_compiler_host.d.ts +1 -1
  83. package/ngcc/src/packages/source_file_cache.d.ts +1 -1
  84. package/ngcc/src/packages/transformer.d.ts +1 -1
  85. package/ngcc/src/rendering/commonjs_rendering_formatter.d.ts +1 -1
  86. package/ngcc/src/rendering/dts_renderer.d.ts +1 -1
  87. package/ngcc/src/rendering/esm5_rendering_formatter.d.ts +1 -1
  88. package/ngcc/src/rendering/esm_rendering_formatter.d.ts +1 -1
  89. package/ngcc/src/rendering/renderer.d.ts +1 -1
  90. package/ngcc/src/rendering/rendering_formatter.d.ts +1 -1
  91. package/ngcc/src/rendering/source_maps.d.ts +3 -3
  92. package/ngcc/src/rendering/umd_rendering_formatter.d.ts +1 -1
  93. package/ngcc/src/rendering/utils.d.ts +1 -1
  94. package/ngcc/src/utils.d.ts +1 -1
  95. package/package.json +53 -14
  96. package/private/bazel.d.ts +13 -0
  97. package/private/localize.d.ts +15 -0
  98. package/private/migrations.d.ts +16 -0
  99. package/{src → private}/tooling.d.ts +2 -2
  100. package/src/bin/ng_xi18n.d.ts +10 -0
  101. package/{ngcc/main-ivy-ngcc.d.ts → src/bin/ngc.d.ts} +2 -1
  102. package/src/diagnostics/translate_diagnostics.d.ts +1 -1
  103. package/src/extract_i18n.d.ts +0 -5
  104. package/src/main.d.ts +9 -6
  105. package/src/metadata/bundle_index_host.d.ts +1 -1
  106. package/src/metadata/bundler.d.ts +1 -1
  107. package/src/metadata/collector.d.ts +1 -1
  108. package/src/metadata/evaluator.d.ts +1 -1
  109. package/src/metadata/symbols.d.ts +1 -1
  110. package/src/ngtsc/annotations/src/component.d.ts +1 -1
  111. package/src/ngtsc/annotations/src/diagnostics.d.ts +1 -1
  112. package/src/ngtsc/annotations/src/directive.d.ts +1 -1
  113. package/src/ngtsc/annotations/src/ng_module.d.ts +2 -4
  114. package/src/ngtsc/annotations/src/pipe.d.ts +1 -1
  115. package/src/ngtsc/annotations/src/util.d.ts +2 -4
  116. package/src/ngtsc/core/api/src/adapter.d.ts +1 -1
  117. package/src/ngtsc/core/api/src/interfaces.d.ts +1 -12
  118. package/src/ngtsc/core/api/src/options.d.ts +1 -1
  119. package/src/ngtsc/core/api/src/public_options.d.ts +5 -1
  120. package/src/ngtsc/core/src/compiler.d.ts +2 -8
  121. package/src/ngtsc/core/src/host.d.ts +1 -1
  122. package/src/ngtsc/cycles/src/analyzer.d.ts +1 -1
  123. package/src/ngtsc/cycles/src/imports.d.ts +1 -1
  124. package/src/ngtsc/diagnostics/src/error.d.ts +1 -1
  125. package/src/ngtsc/entry_point/src/generator.d.ts +1 -1
  126. package/src/ngtsc/entry_point/src/private_export_checker.d.ts +1 -1
  127. package/src/ngtsc/file_system/src/compiler_host.d.ts +1 -1
  128. package/src/ngtsc/file_system/src/logical.d.ts +1 -1
  129. package/src/ngtsc/file_system/src/util.d.ts +1 -1
  130. package/src/ngtsc/imports/src/alias.d.ts +1 -1
  131. package/src/ngtsc/imports/src/default.d.ts +1 -1
  132. package/src/ngtsc/imports/src/emitter.d.ts +1 -1
  133. package/src/ngtsc/imports/src/find_export.d.ts +1 -1
  134. package/src/ngtsc/imports/src/references.d.ts +1 -1
  135. package/src/ngtsc/imports/src/resolver.d.ts +1 -1
  136. package/src/ngtsc/incremental/api.d.ts +1 -1
  137. package/src/ngtsc/incremental/src/dependency_tracking.d.ts +1 -1
  138. package/src/ngtsc/incremental/src/incremental.d.ts +1 -1
  139. package/src/ngtsc/incremental/src/state.d.ts +1 -1
  140. package/src/ngtsc/incremental/src/strategy.d.ts +1 -1
  141. package/src/ngtsc/metadata/src/api.d.ts +1 -1
  142. package/src/ngtsc/metadata/src/dts.d.ts +1 -1
  143. package/src/ngtsc/metadata/src/resource_registry.d.ts +1 -1
  144. package/src/ngtsc/metadata/src/util.d.ts +1 -1
  145. package/src/ngtsc/partial_evaluator/index.d.ts +1 -0
  146. package/src/ngtsc/partial_evaluator/src/builtin.d.ts +1 -1
  147. package/src/ngtsc/partial_evaluator/src/diagnostics.d.ts +1 -1
  148. package/src/ngtsc/partial_evaluator/src/dynamic.d.ts +1 -1
  149. package/src/ngtsc/partial_evaluator/src/interface.d.ts +1 -1
  150. package/src/ngtsc/partial_evaluator/src/interpreter.d.ts +1 -1
  151. package/src/ngtsc/partial_evaluator/src/result.d.ts +1 -1
  152. package/src/ngtsc/partial_evaluator/src/ts_helpers.d.ts +1 -1
  153. package/src/ngtsc/program.d.ts +1 -1
  154. package/src/ngtsc/program_driver/src/api.d.ts +1 -1
  155. package/src/ngtsc/program_driver/src/ts_create_program_driver.d.ts +1 -1
  156. package/src/ngtsc/reflection/src/host.d.ts +1 -1
  157. package/src/ngtsc/reflection/src/type_to_value.d.ts +1 -1
  158. package/src/ngtsc/reflection/src/typescript.d.ts +1 -1
  159. package/src/ngtsc/reflection/src/util.d.ts +1 -1
  160. package/src/ngtsc/resource/src/loader.d.ts +1 -1
  161. package/src/ngtsc/scope/src/local.d.ts +1 -1
  162. package/src/ngtsc/scope/src/typecheck.d.ts +1 -1
  163. package/src/ngtsc/shims/api.d.ts +1 -1
  164. package/src/ngtsc/shims/src/adapter.d.ts +1 -1
  165. package/src/ngtsc/shims/src/expando.d.ts +1 -1
  166. package/src/ngtsc/shims/src/factory_generator.d.ts +1 -1
  167. package/src/ngtsc/shims/src/reference_tagger.d.ts +1 -1
  168. package/src/ngtsc/shims/src/summary_generator.d.ts +1 -1
  169. package/src/ngtsc/switch/src/switch.d.ts +1 -1
  170. package/src/ngtsc/transform/src/alias.d.ts +1 -1
  171. package/src/ngtsc/transform/src/api.d.ts +1 -1
  172. package/src/ngtsc/transform/src/compilation.d.ts +1 -1
  173. package/src/ngtsc/transform/src/declaration.d.ts +1 -1
  174. package/src/ngtsc/transform/src/trait.d.ts +1 -1
  175. package/src/ngtsc/transform/src/transform.d.ts +1 -1
  176. package/src/ngtsc/transform/src/utils.d.ts +1 -1
  177. package/src/ngtsc/translator/src/import_manager.d.ts +1 -1
  178. package/src/ngtsc/translator/src/type_translator.d.ts +1 -1
  179. package/src/ngtsc/translator/src/typescript_ast_factory.d.ts +1 -1
  180. package/src/ngtsc/translator/src/typescript_translator.d.ts +1 -1
  181. package/src/ngtsc/tsc_plugin.d.ts +1 -1
  182. package/src/ngtsc/typecheck/api/api.d.ts +1 -1
  183. package/src/ngtsc/typecheck/api/checker.d.ts +7 -4
  184. package/src/ngtsc/typecheck/api/context.d.ts +1 -1
  185. package/src/ngtsc/typecheck/api/scope.d.ts +1 -1
  186. package/src/ngtsc/typecheck/api/symbols.d.ts +1 -1
  187. package/src/ngtsc/typecheck/diagnostics/src/diagnostic.d.ts +1 -1
  188. package/src/ngtsc/typecheck/extended/api/api.d.ts +1 -1
  189. package/src/ngtsc/typecheck/extended/api/extended_template_checker.d.ts +1 -1
  190. package/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.d.ts +1 -1
  191. package/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.d.ts +1 -1
  192. package/src/ngtsc/typecheck/extended/src/extended_template_checker.d.ts +1 -1
  193. package/src/ngtsc/typecheck/src/checker.d.ts +4 -4
  194. package/src/ngtsc/typecheck/src/comments.d.ts +1 -1
  195. package/src/ngtsc/typecheck/src/completion.d.ts +3 -5
  196. package/src/ngtsc/typecheck/src/context.d.ts +1 -1
  197. package/src/ngtsc/typecheck/src/diagnostics.d.ts +1 -1
  198. package/src/ngtsc/typecheck/src/environment.d.ts +1 -1
  199. package/src/ngtsc/typecheck/src/expression.d.ts +1 -1
  200. package/src/ngtsc/typecheck/src/oob.d.ts +3 -4
  201. package/src/ngtsc/typecheck/src/shim.d.ts +1 -1
  202. package/src/ngtsc/typecheck/src/source.d.ts +1 -1
  203. package/src/ngtsc/typecheck/src/tcb_util.d.ts +1 -1
  204. package/src/ngtsc/typecheck/src/template_symbol_builder.d.ts +1 -1
  205. package/src/ngtsc/typecheck/src/ts_util.d.ts +1 -1
  206. package/src/ngtsc/typecheck/src/type_check_block.d.ts +1 -1
  207. package/src/ngtsc/typecheck/src/type_check_file.d.ts +1 -1
  208. package/src/ngtsc/typecheck/src/type_constructor.d.ts +1 -1
  209. package/src/ngtsc/typecheck/src/type_emitter.d.ts +1 -1
  210. package/src/ngtsc/typecheck/src/type_parameter_emitter.d.ts +1 -1
  211. package/src/ngtsc/util/src/typescript.d.ts +1 -1
  212. package/src/ngtsc/util/src/visitor.d.ts +1 -1
  213. package/src/perform_compile.d.ts +1 -2
  214. package/src/perform_watch.d.ts +1 -1
  215. package/src/transformers/api.d.ts +2 -5
  216. package/src/transformers/compiler_host.d.ts +1 -1
  217. package/src/transformers/{downlevel_decorators_transform.d.ts → downlevel_decorators_transform/downlevel_decorators_transform.d.ts} +3 -3
  218. package/src/{ngtsc/routing → transformers/downlevel_decorators_transform}/index.d.ts +2 -3
  219. package/src/transformers/{patch_alias_reference_resolution.d.ts → downlevel_decorators_transform/patch_alias_reference_resolution.d.ts} +2 -2
  220. package/src/transformers/i18n.d.ts +1 -1
  221. package/src/transformers/inline_resources.d.ts +1 -1
  222. package/src/transformers/lower_expressions.d.ts +1 -1
  223. package/src/transformers/metadata_cache.d.ts +1 -1
  224. package/src/transformers/node_emitter.d.ts +1 -1
  225. package/src/transformers/node_emitter_transform.d.ts +1 -1
  226. package/src/transformers/program.d.ts +1 -1
  227. package/src/transformers/r3_metadata_transform.d.ts +1 -1
  228. package/src/transformers/r3_transform.d.ts +1 -1
  229. package/src/transformers/util.d.ts +1 -1
  230. package/index.js +0 -40
  231. package/linker/babel/index.js +0 -25
  232. package/linker/babel/src/ast/babel_ast_factory.js +0 -153
  233. package/linker/babel/src/ast/babel_ast_host.js +0 -181
  234. package/linker/babel/src/babel_declaration_scope.js +0 -67
  235. package/linker/babel/src/babel_plugin.js +0 -38
  236. package/linker/babel/src/es2015_linker_plugin.js +0 -183
  237. package/linker/babel/src/linker_plugin_options.js +0 -13
  238. package/linker/index.js +0 -27
  239. package/linker/src/ast/ast_host.js +0 -20
  240. package/linker/src/ast/ast_value.js +0 -299
  241. package/linker/src/ast/typescript/typescript_ast_host.js +0 -183
  242. package/linker/src/ast/utils.js +0 -31
  243. package/linker/src/fatal_linker_error.js +0 -49
  244. package/linker/src/file_linker/declaration_scope.js +0 -20
  245. package/linker/src/file_linker/emit_scopes/emit_scope.js +0 -57
  246. package/linker/src/file_linker/emit_scopes/iife_emit_scope.js +0 -51
  247. package/linker/src/file_linker/file_linker.js +0 -97
  248. package/linker/src/file_linker/get_source_file.js +0 -42
  249. package/linker/src/file_linker/linker_environment.js +0 -38
  250. package/linker/src/file_linker/linker_options.js +0 -29
  251. package/linker/src/file_linker/needs_linking.js +0 -41
  252. package/linker/src/file_linker/partial_linkers/partial_class_metadata_linker_1.js +0 -47
  253. package/linker/src/file_linker/partial_linkers/partial_component_linker_1.js +0 -210
  254. package/linker/src/file_linker/partial_linkers/partial_directive_linker_1.js +0 -154
  255. package/linker/src/file_linker/partial_linkers/partial_factory_linker_1.js +0 -70
  256. package/linker/src/file_linker/partial_linkers/partial_injectable_linker_1.js +0 -74
  257. package/linker/src/file_linker/partial_linkers/partial_injector_linker_1.js +0 -56
  258. package/linker/src/file_linker/partial_linkers/partial_linker.js +0 -13
  259. package/linker/src/file_linker/partial_linkers/partial_linker_selector.js +0 -194
  260. package/linker/src/file_linker/partial_linkers/partial_ng_module_linker_1.js +0 -126
  261. package/linker/src/file_linker/partial_linkers/partial_pipe_linker_1.js +0 -59
  262. package/linker/src/file_linker/partial_linkers/util.js +0 -95
  263. package/linker/src/file_linker/translator.js +0 -40
  264. package/linker/src/linker_import_generator.js +0 -43
  265. package/ngcc/index.js +0 -33
  266. package/ngcc/main-ivy-ngcc.js +0 -12
  267. package/ngcc/main-ngcc.js +0 -54
  268. package/ngcc/src/analysis/decoration_analyzer.js +0 -268
  269. package/ngcc/src/analysis/migration_host.js +0 -108
  270. package/ngcc/src/analysis/module_with_providers_analyzer.js +0 -197
  271. package/ngcc/src/analysis/ngcc_references_registry.js +0 -65
  272. package/ngcc/src/analysis/ngcc_trait_compiler.js +0 -117
  273. package/ngcc/src/analysis/private_declarations_analyzer.js +0 -63
  274. package/ngcc/src/analysis/switch_marker_analyzer.js +0 -50
  275. package/ngcc/src/analysis/types.js +0 -15
  276. package/ngcc/src/analysis/util.js +0 -36
  277. package/ngcc/src/command_line_options.js +0 -156
  278. package/ngcc/src/constants.js +0 -23
  279. package/ngcc/src/dependencies/commonjs_dependency_host.js +0 -129
  280. package/ngcc/src/dependencies/dependency_host.js +0 -143
  281. package/ngcc/src/dependencies/dependency_resolver.js +0 -180
  282. package/ngcc/src/dependencies/dts_dependency_host.js +0 -35
  283. package/ngcc/src/dependencies/esm_dependency_host.js +0 -307
  284. package/ngcc/src/dependencies/module_resolver.js +0 -269
  285. package/ngcc/src/dependencies/umd_dependency_host.js +0 -53
  286. package/ngcc/src/entry_point_finder/directory_walker_entry_point_finder.js +0 -70
  287. package/ngcc/src/entry_point_finder/entry_point_collector.js +0 -157
  288. package/ngcc/src/entry_point_finder/interface.js +0 -13
  289. package/ngcc/src/entry_point_finder/program_based_entry_point_finder.js +0 -132
  290. package/ngcc/src/entry_point_finder/targeted_entry_point_finder.js +0 -268
  291. package/ngcc/src/entry_point_finder/tracing_entry_point_finder.js +0 -78
  292. package/ngcc/src/entry_point_finder/utils.js +0 -234
  293. package/ngcc/src/execution/analyze_entry_points.js +0 -197
  294. package/ngcc/src/execution/api.js +0 -13
  295. package/ngcc/src/execution/cluster/api.js +0 -20
  296. package/ngcc/src/execution/cluster/executor.js +0 -52
  297. package/ngcc/src/execution/cluster/master.js +0 -311
  298. package/ngcc/src/execution/cluster/package_json_updater.js +0 -79
  299. package/ngcc/src/execution/cluster/utils.js +0 -77
  300. package/ngcc/src/execution/cluster/worker.js +0 -123
  301. package/ngcc/src/execution/create_compile_function.js +0 -76
  302. package/ngcc/src/execution/single_process_executor.js +0 -91
  303. package/ngcc/src/execution/tasks/api.js +0 -35
  304. package/ngcc/src/execution/tasks/completion.js +0 -79
  305. package/ngcc/src/execution/tasks/queues/base_task_queue.js +0 -120
  306. package/ngcc/src/execution/tasks/queues/parallel_task_queue.js +0 -87
  307. package/ngcc/src/execution/tasks/queues/serial_task_queue.js +0 -49
  308. package/ngcc/src/execution/tasks/utils.js +0 -167
  309. package/ngcc/src/host/commonjs_host.js +0 -261
  310. package/ngcc/src/host/commonjs_umd_utils.js +0 -210
  311. package/ngcc/src/host/delegating_host.js +0 -156
  312. package/ngcc/src/host/esm2015_host.js +0 -2441
  313. package/ngcc/src/host/esm5_host.js +0 -744
  314. package/ngcc/src/host/ngcc_host.js +0 -29
  315. package/ngcc/src/host/umd_host.js +0 -539
  316. package/ngcc/src/host/utils.js +0 -26
  317. package/ngcc/src/locking/async_locker.js +0 -121
  318. package/ngcc/src/locking/lock_file.js +0 -18
  319. package/ngcc/src/locking/lock_file_with_child_process/index.js +0 -93
  320. package/ngcc/src/locking/lock_file_with_child_process/unlocker.js +0 -46
  321. package/ngcc/src/locking/lock_file_with_child_process/util.js +0 -43
  322. package/ngcc/src/locking/sync_locker.js +0 -67
  323. package/ngcc/src/main.js +0 -163
  324. package/ngcc/src/migrations/migration.js +0 -13
  325. package/ngcc/src/migrations/missing_injectable_migration.js +0 -227
  326. package/ngcc/src/migrations/undecorated_child_migration.js +0 -90
  327. package/ngcc/src/migrations/undecorated_parent_migration.js +0 -103
  328. package/ngcc/src/migrations/utils.js +0 -137
  329. package/ngcc/src/ngcc_options.js +0 -135
  330. package/ngcc/src/packages/build_marker.js +0 -124
  331. package/ngcc/src/packages/bundle_program.js +0 -80
  332. package/ngcc/src/packages/configuration.js +0 -277
  333. package/ngcc/src/packages/entry_point.js +0 -267
  334. package/ngcc/src/packages/entry_point_bundle.js +0 -96
  335. package/ngcc/src/packages/entry_point_manifest.js +0 -207
  336. package/ngcc/src/packages/ngcc_compiler_host.js +0 -101
  337. package/ngcc/src/packages/patch_ts_expando_initializer.js +0 -174
  338. package/ngcc/src/packages/source_file_cache.js +0 -207
  339. package/ngcc/src/packages/transformer.js +0 -157
  340. package/ngcc/src/path_mappings.js +0 -27
  341. package/ngcc/src/rendering/commonjs_rendering_formatter.js +0 -106
  342. package/ngcc/src/rendering/dts_renderer.js +0 -170
  343. package/ngcc/src/rendering/esm5_rendering_formatter.js +0 -70
  344. package/ngcc/src/rendering/esm_rendering_formatter.js +0 -291
  345. package/ngcc/src/rendering/ngcc_import_rewriter.js +0 -49
  346. package/ngcc/src/rendering/renderer.js +0 -204
  347. package/ngcc/src/rendering/rendering_formatter.js +0 -15
  348. package/ngcc/src/rendering/source_maps.js +0 -68
  349. package/ngcc/src/rendering/umd_rendering_formatter.js +0 -326
  350. package/ngcc/src/rendering/utils.js +0 -35
  351. package/ngcc/src/utils.js +0 -182
  352. package/ngcc/src/writing/cleaning/cleaning_strategies.js +0 -80
  353. package/ngcc/src/writing/cleaning/package_cleaner.js +0 -126
  354. package/ngcc/src/writing/cleaning/utils.js +0 -30
  355. package/ngcc/src/writing/file_writer.js +0 -13
  356. package/ngcc/src/writing/in_place_file_writer.js +0 -90
  357. package/ngcc/src/writing/new_entry_point_file_writer.js +0 -214
  358. package/ngcc/src/writing/package_json_updater.js +0 -182
  359. package/src/diagnostics/translate_diagnostics.js +0 -61
  360. package/src/diagnostics/typescript_version.js +0 -96
  361. package/src/extract_i18n.js +0 -62
  362. package/src/language_services.js +0 -34
  363. package/src/main.js +0 -210
  364. package/src/metadata/bundle_index_host.js +0 -133
  365. package/src/metadata/bundler.js +0 -624
  366. package/src/metadata/collector.js +0 -799
  367. package/src/metadata/evaluator.js +0 -677
  368. package/src/metadata/index.js +0 -24
  369. package/src/metadata/index_writer.js +0 -80
  370. package/src/metadata/schema.js +0 -136
  371. package/src/metadata/symbols.js +0 -149
  372. package/src/ngtsc/annotations/index.js +0 -35
  373. package/src/ngtsc/annotations/src/api.js +0 -20
  374. package/src/ngtsc/annotations/src/component.js +0 -1338
  375. package/src/ngtsc/annotations/src/diagnostics.js +0 -174
  376. package/src/ngtsc/annotations/src/directive.js +0 -724
  377. package/src/ngtsc/annotations/src/factory.js +0 -32
  378. package/src/ngtsc/annotations/src/injectable.js +0 -277
  379. package/src/ngtsc/annotations/src/metadata.js +0 -160
  380. package/src/ngtsc/annotations/src/ng_module.js +0 -677
  381. package/src/ngtsc/annotations/src/pipe.js +0 -171
  382. package/src/ngtsc/annotations/src/references_registry.js +0 -38
  383. package/src/ngtsc/annotations/src/util.js +0 -566
  384. package/src/ngtsc/core/api/index.js +0 -25
  385. package/src/ngtsc/core/api/src/adapter.js +0 -20
  386. package/src/ngtsc/core/api/src/interfaces.js +0 -20
  387. package/src/ngtsc/core/api/src/options.js +0 -20
  388. package/src/ngtsc/core/api/src/public_options.js +0 -20
  389. package/src/ngtsc/core/index.js +0 -25
  390. package/src/ngtsc/core/src/compiler.js +0 -1142
  391. package/src/ngtsc/core/src/host.js +0 -273
  392. package/src/ngtsc/cycles/index.js +0 -26
  393. package/src/ngtsc/cycles/src/analyzer.js +0 -163
  394. package/src/ngtsc/cycles/src/imports.js +0 -175
  395. package/src/ngtsc/diagnostics/index.js +0 -33
  396. package/src/ngtsc/diagnostics/src/error.js +0 -69
  397. package/src/ngtsc/diagnostics/src/error_code.js +0 -235
  398. package/src/ngtsc/diagnostics/src/util.js +0 -35
  399. package/src/ngtsc/entry_point/index.js +0 -29
  400. package/src/ngtsc/entry_point/src/generator.js +0 -45
  401. package/src/ngtsc/entry_point/src/logic.js +0 -61
  402. package/src/ngtsc/entry_point/src/private_export_checker.js +0 -137
  403. package/src/ngtsc/entry_point/src/reference_graph.js +0 -91
  404. package/src/ngtsc/file_system/index.js +0 -45
  405. package/src/ngtsc/file_system/src/compiler_host.js +0 -80
  406. package/src/ngtsc/file_system/src/helpers.js +0 -135
  407. package/src/ngtsc/file_system/src/invalid_file_system.js +0 -120
  408. package/src/ngtsc/file_system/src/logical.js +0 -100
  409. package/src/ngtsc/file_system/src/node_js_file_system.js +0 -179
  410. package/src/ngtsc/file_system/src/types.js +0 -20
  411. package/src/ngtsc/file_system/src/util.js +0 -38
  412. package/src/ngtsc/file_system/testing/index.d.ts +0 -13
  413. package/src/ngtsc/file_system/testing/index.js +0 -32
  414. package/src/ngtsc/file_system/testing/src/mock_file_system.d.ts +0 -72
  415. package/src/ngtsc/file_system/testing/src/mock_file_system.js +0 -333
  416. package/src/ngtsc/file_system/testing/src/mock_file_system_native.d.ts +0 -16
  417. package/src/ngtsc/file_system/testing/src/mock_file_system_native.js +0 -85
  418. package/src/ngtsc/file_system/testing/src/mock_file_system_posix.d.ts +0 -13
  419. package/src/ngtsc/file_system/testing/src/mock_file_system_posix.js +0 -68
  420. package/src/ngtsc/file_system/testing/src/mock_file_system_windows.d.ts +0 -13
  421. package/src/ngtsc/file_system/testing/src/mock_file_system_windows.js +0 -68
  422. package/src/ngtsc/file_system/testing/src/test_helper.d.ts +0 -17
  423. package/src/ngtsc/file_system/testing/src/test_helper.js +0 -142
  424. package/src/ngtsc/imports/index.js +0 -43
  425. package/src/ngtsc/imports/src/alias.js +0 -158
  426. package/src/ngtsc/imports/src/core.js +0 -98
  427. package/src/ngtsc/imports/src/default.js +0 -153
  428. package/src/ngtsc/imports/src/emitter.js +0 -317
  429. package/src/ngtsc/imports/src/find_export.js +0 -82
  430. package/src/ngtsc/imports/src/reexport.js +0 -20
  431. package/src/ngtsc/imports/src/references.js +0 -171
  432. package/src/ngtsc/imports/src/resolver.js +0 -39
  433. package/src/ngtsc/incremental/api.js +0 -20
  434. package/src/ngtsc/incremental/index.js +0 -29
  435. package/src/ngtsc/incremental/semantic_graph/index.js +0 -34
  436. package/src/ngtsc/incremental/semantic_graph/src/api.js +0 -51
  437. package/src/ngtsc/incremental/semantic_graph/src/graph.js +0 -302
  438. package/src/ngtsc/incremental/semantic_graph/src/type_parameters.js +0 -55
  439. package/src/ngtsc/incremental/semantic_graph/src/util.js +0 -111
  440. package/src/ngtsc/incremental/src/dependency_tracking.js +0 -165
  441. package/src/ngtsc/incremental/src/incremental.js +0 -393
  442. package/src/ngtsc/incremental/src/noop.js +0 -26
  443. package/src/ngtsc/incremental/src/state.js +0 -30
  444. package/src/ngtsc/incremental/src/strategy.js +0 -99
  445. package/src/ngtsc/indexer/index.js +0 -27
  446. package/src/ngtsc/indexer/src/api.js +0 -45
  447. package/src/ngtsc/indexer/src/context.js +0 -40
  448. package/src/ngtsc/indexer/src/template.js +0 -324
  449. package/src/ngtsc/indexer/src/transform.js +0 -66
  450. package/src/ngtsc/logging/index.js +0 -25
  451. package/src/ngtsc/logging/src/console_logger.js +0 -75
  452. package/src/ngtsc/logging/src/logger.js +0 -28
  453. package/src/ngtsc/logging/testing/index.js +0 -23
  454. package/src/ngtsc/logging/testing/src/mock_logger.d.ts +0 -20
  455. package/src/ngtsc/logging/testing/src/mock_logger.js +0 -64
  456. package/src/ngtsc/metadata/index.js +0 -39
  457. package/src/ngtsc/metadata/src/api.js +0 -26
  458. package/src/ngtsc/metadata/src/dts.js +0 -168
  459. package/src/ngtsc/metadata/src/inheritance.js +0 -122
  460. package/src/ngtsc/metadata/src/property_mapping.js +0 -244
  461. package/src/ngtsc/metadata/src/registry.js +0 -133
  462. package/src/ngtsc/metadata/src/resource_registry.js +0 -109
  463. package/src/ngtsc/metadata/src/util.js +0 -275
  464. package/src/ngtsc/partial_evaluator/index.js +0 -31
  465. package/src/ngtsc/partial_evaluator/src/builtin.js +0 -125
  466. package/src/ngtsc/partial_evaluator/src/diagnostics.js +0 -193
  467. package/src/ngtsc/partial_evaluator/src/dynamic.js +0 -109
  468. package/src/ngtsc/partial_evaluator/src/interface.js +0 -42
  469. package/src/ngtsc/partial_evaluator/src/interpreter.js +0 -780
  470. package/src/ngtsc/partial_evaluator/src/known_declaration.js +0 -57
  471. package/src/ngtsc/partial_evaluator/src/result.js +0 -72
  472. package/src/ngtsc/partial_evaluator/src/ts_helpers.js +0 -121
  473. package/src/ngtsc/perf/index.js +0 -28
  474. package/src/ngtsc/perf/src/api.js +0 -291
  475. package/src/ngtsc/perf/src/clock.js +0 -30
  476. package/src/ngtsc/perf/src/noop.js +0 -37
  477. package/src/ngtsc/perf/src/recorder.js +0 -143
  478. package/src/ngtsc/program.js +0 -360
  479. package/src/ngtsc/program_driver/index.js +0 -25
  480. package/src/ngtsc/program_driver/src/api.js +0 -36
  481. package/src/ngtsc/program_driver/src/ts_create_program_driver.js +0 -200
  482. package/src/ngtsc/reflection/index.js +0 -36
  483. package/src/ngtsc/reflection/src/host.js +0 -88
  484. package/src/ngtsc/reflection/src/type_to_value.js +0 -259
  485. package/src/ngtsc/reflection/src/typescript.js +0 -640
  486. package/src/ngtsc/reflection/src/util.js +0 -37
  487. package/src/ngtsc/resource/index.js +0 -23
  488. package/src/ngtsc/resource/src/loader.js +0 -285
  489. package/src/ngtsc/routing/index.js +0 -26
  490. package/src/ngtsc/routing/src/analyzer.d.ts +0 -37
  491. package/src/ngtsc/routing/src/analyzer.js +0 -82
  492. package/src/ngtsc/routing/src/lazy.d.ts +0 -19
  493. package/src/ngtsc/routing/src/lazy.js +0 -239
  494. package/src/ngtsc/routing/src/route.d.ts +0 -23
  495. package/src/ngtsc/routing/src/route.js +0 -77
  496. package/src/ngtsc/scope/index.js +0 -29
  497. package/src/ngtsc/scope/src/api.js +0 -20
  498. package/src/ngtsc/scope/src/component_scope.js +0 -69
  499. package/src/ngtsc/scope/src/dependency.js +0 -201
  500. package/src/ngtsc/scope/src/local.js +0 -665
  501. package/src/ngtsc/scope/src/typecheck.js +0 -120
  502. package/src/ngtsc/shims/api.js +0 -13
  503. package/src/ngtsc/shims/index.js +0 -39
  504. package/src/ngtsc/shims/src/adapter.js +0 -266
  505. package/src/ngtsc/shims/src/expando.js +0 -147
  506. package/src/ngtsc/shims/src/factory_generator.js +0 -292
  507. package/src/ngtsc/shims/src/reference_tagger.js +0 -94
  508. package/src/ngtsc/shims/src/summary_generator.js +0 -101
  509. package/src/ngtsc/shims/src/util.js +0 -41
  510. package/src/ngtsc/sourcemaps/index.js +0 -27
  511. package/src/ngtsc/sourcemaps/src/content_origin.js +0 -48
  512. package/src/ngtsc/sourcemaps/src/raw_source_map.js +0 -13
  513. package/src/ngtsc/sourcemaps/src/segment_marker.js +0 -55
  514. package/src/ngtsc/sourcemaps/src/source_file.js +0 -519
  515. package/src/ngtsc/sourcemaps/src/source_file_loader.js +0 -234
  516. package/src/ngtsc/switch/index.js +0 -23
  517. package/src/ngtsc/switch/src/switch.js +0 -141
  518. package/src/ngtsc/transform/index.js +0 -36
  519. package/src/ngtsc/transform/src/alias.js +0 -46
  520. package/src/ngtsc/transform/src/api.js +0 -76
  521. package/src/ngtsc/transform/src/compilation.js +0 -862
  522. package/src/ngtsc/transform/src/declaration.js +0 -234
  523. package/src/ngtsc/transform/src/trait.js +0 -111
  524. package/src/ngtsc/transform/src/transform.js +0 -333
  525. package/src/ngtsc/transform/src/utils.js +0 -73
  526. package/src/ngtsc/translator/index.js +0 -37
  527. package/src/ngtsc/translator/src/api/ast_factory.js +0 -20
  528. package/src/ngtsc/translator/src/api/import_generator.js +0 -20
  529. package/src/ngtsc/translator/src/context.js +0 -47
  530. package/src/ngtsc/translator/src/import_manager.js +0 -77
  531. package/src/ngtsc/translator/src/translator.js +0 -347
  532. package/src/ngtsc/translator/src/type_translator.js +0 -220
  533. package/src/ngtsc/translator/src/typescript_ast_factory.js +0 -251
  534. package/src/ngtsc/translator/src/typescript_translator.js +0 -34
  535. package/src/ngtsc/tsc_plugin.js +0 -129
  536. package/src/ngtsc/typecheck/api/api.js +0 -20
  537. package/src/ngtsc/typecheck/api/checker.js +0 -44
  538. package/src/ngtsc/typecheck/api/completion.js +0 -29
  539. package/src/ngtsc/typecheck/api/context.js +0 -20
  540. package/src/ngtsc/typecheck/api/index.js +0 -27
  541. package/src/ngtsc/typecheck/api/scope.js +0 -20
  542. package/src/ngtsc/typecheck/api/symbols.js +0 -35
  543. package/src/ngtsc/typecheck/diagnostics/index.js +0 -23
  544. package/src/ngtsc/typecheck/diagnostics/src/diagnostic.js +0 -141
  545. package/src/ngtsc/typecheck/diagnostics/src/id.js +0 -37
  546. package/src/ngtsc/typecheck/extended/api/api.js +0 -124
  547. package/src/ngtsc/typecheck/extended/api/extended_template_checker.js +0 -20
  548. package/src/ngtsc/typecheck/extended/api/index.js +0 -23
  549. package/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.js +0 -52
  550. package/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.js +0 -64
  551. package/src/ngtsc/typecheck/extended/index.js +0 -23
  552. package/src/ngtsc/typecheck/extended/src/extended_template_checker.js +0 -55
  553. package/src/ngtsc/typecheck/index.js +0 -29
  554. package/src/ngtsc/typecheck/src/checker.js +0 -764
  555. package/src/ngtsc/typecheck/src/comments.js +0 -181
  556. package/src/ngtsc/typecheck/src/completion.js +0 -230
  557. package/src/ngtsc/typecheck/src/context.js +0 -424
  558. package/src/ngtsc/typecheck/src/diagnostics.js +0 -114
  559. package/src/ngtsc/typecheck/src/dom.js +0 -87
  560. package/src/ngtsc/typecheck/src/environment.js +0 -160
  561. package/src/ngtsc/typecheck/src/expression.js +0 -417
  562. package/src/ngtsc/typecheck/src/line_mappings.js +0 -77
  563. package/src/ngtsc/typecheck/src/oob.js +0 -181
  564. package/src/ngtsc/typecheck/src/shim.js +0 -52
  565. package/src/ngtsc/typecheck/src/source.js +0 -91
  566. package/src/ngtsc/typecheck/src/tcb_util.js +0 -165
  567. package/src/ngtsc/typecheck/src/template_semantics.js +0 -52
  568. package/src/ngtsc/typecheck/src/template_symbol_builder.js +0 -551
  569. package/src/ngtsc/typecheck/src/ts_util.js +0 -202
  570. package/src/ngtsc/typecheck/src/type_check_block.js +0 -2212
  571. package/src/ngtsc/typecheck/src/type_check_file.js +0 -115
  572. package/src/ngtsc/typecheck/src/type_constructor.js +0 -255
  573. package/src/ngtsc/typecheck/src/type_emitter.js +0 -164
  574. package/src/ngtsc/typecheck/src/type_parameter_emitter.js +0 -115
  575. package/src/ngtsc/util/src/path.js +0 -33
  576. package/src/ngtsc/util/src/typescript.js +0 -176
  577. package/src/ngtsc/util/src/visitor.js +0 -119
  578. package/src/ngtsc/xi18n/index.js +0 -22
  579. package/src/ngtsc/xi18n/src/context.js +0 -20
  580. package/src/perform_compile.js +0 -322
  581. package/src/perform_watch.js +0 -263
  582. package/src/tooling.js +0 -47
  583. package/src/transformers/api.js +0 -42
  584. package/src/transformers/compiler_host.js +0 -623
  585. package/src/transformers/downlevel_decorators_transform.js +0 -612
  586. package/src/transformers/entry_points.js +0 -25
  587. package/src/transformers/i18n.js +0 -76
  588. package/src/transformers/inline_resources.js +0 -287
  589. package/src/transformers/lower_expressions.js +0 -365
  590. package/src/transformers/metadata_cache.js +0 -96
  591. package/src/transformers/metadata_reader.js +0 -120
  592. package/src/transformers/node_emitter.js +0 -637
  593. package/src/transformers/node_emitter_transform.js +0 -88
  594. package/src/transformers/patch_alias_reference_resolution.js +0 -129
  595. package/src/transformers/program.js +0 -1000
  596. package/src/transformers/r3_metadata_transform.js +0 -73
  597. package/src/transformers/r3_transform.js +0 -44
  598. package/src/transformers/util.js +0 -122
  599. package/src/typescript_support.js +0 -74
  600. package/src/version.js +0 -28
@@ -0,0 +1,2181 @@
1
+
2
+ import {createRequire as __cjsCompatRequire} from 'module';
3
+ const require = __cjsCompatRequire(import.meta.url);
4
+ const __ESM_IMPORT_META_URL__ = import.meta.url;
5
+
6
+ var __defProp = Object.defineProperty;
7
+ var __defProps = Object.defineProperties;
8
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
9
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+
26
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/component.mjs
27
+ import { compileClassMetadata as compileClassMetadata3, compileComponentFromMetadata, compileDeclareClassMetadata as compileDeclareClassMetadata3, compileDeclareComponentFromMetadata, CssSelector, DEFAULT_INTERPOLATION_CONFIG, DomElementSchemaRegistry, ExternalExpr as ExternalExpr7, FactoryTarget as FactoryTarget3, InterpolationConfig, makeBindingParser as makeBindingParser2, ParseSourceFile as ParseSourceFile2, parseTemplate, R3TargetBinder, SelectorMatcher, ViewEncapsulation, WrappedNodeExpr as WrappedNodeExpr6 } from "@angular/compiler";
28
+ import ts31 from "typescript";
29
+
30
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
31
+ import ts from "typescript";
32
+
33
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
34
+ var ErrorCode;
35
+ (function(ErrorCode2) {
36
+ ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
37
+ ErrorCode2[ErrorCode2["DECORATOR_ARITY_WRONG"] = 1002] = "DECORATOR_ARITY_WRONG";
38
+ ErrorCode2[ErrorCode2["DECORATOR_NOT_CALLED"] = 1003] = "DECORATOR_NOT_CALLED";
39
+ ErrorCode2[ErrorCode2["DECORATOR_ON_ANONYMOUS_CLASS"] = 1004] = "DECORATOR_ON_ANONYMOUS_CLASS";
40
+ ErrorCode2[ErrorCode2["DECORATOR_UNEXPECTED"] = 1005] = "DECORATOR_UNEXPECTED";
41
+ ErrorCode2[ErrorCode2["DECORATOR_COLLISION"] = 1006] = "DECORATOR_COLLISION";
42
+ ErrorCode2[ErrorCode2["VALUE_HAS_WRONG_TYPE"] = 1010] = "VALUE_HAS_WRONG_TYPE";
43
+ ErrorCode2[ErrorCode2["VALUE_NOT_LITERAL"] = 1011] = "VALUE_NOT_LITERAL";
44
+ ErrorCode2[ErrorCode2["COMPONENT_MISSING_TEMPLATE"] = 2001] = "COMPONENT_MISSING_TEMPLATE";
45
+ ErrorCode2[ErrorCode2["PIPE_MISSING_NAME"] = 2002] = "PIPE_MISSING_NAME";
46
+ ErrorCode2[ErrorCode2["PARAM_MISSING_TOKEN"] = 2003] = "PARAM_MISSING_TOKEN";
47
+ ErrorCode2[ErrorCode2["DIRECTIVE_MISSING_SELECTOR"] = 2004] = "DIRECTIVE_MISSING_SELECTOR";
48
+ ErrorCode2[ErrorCode2["UNDECORATED_PROVIDER"] = 2005] = "UNDECORATED_PROVIDER";
49
+ ErrorCode2[ErrorCode2["DIRECTIVE_INHERITS_UNDECORATED_CTOR"] = 2006] = "DIRECTIVE_INHERITS_UNDECORATED_CTOR";
50
+ ErrorCode2[ErrorCode2["UNDECORATED_CLASS_USING_ANGULAR_FEATURES"] = 2007] = "UNDECORATED_CLASS_USING_ANGULAR_FEATURES";
51
+ ErrorCode2[ErrorCode2["COMPONENT_RESOURCE_NOT_FOUND"] = 2008] = "COMPONENT_RESOURCE_NOT_FOUND";
52
+ ErrorCode2[ErrorCode2["COMPONENT_INVALID_SHADOW_DOM_SELECTOR"] = 2009] = "COMPONENT_INVALID_SHADOW_DOM_SELECTOR";
53
+ ErrorCode2[ErrorCode2["SYMBOL_NOT_EXPORTED"] = 3001] = "SYMBOL_NOT_EXPORTED";
54
+ ErrorCode2[ErrorCode2["SYMBOL_EXPORTED_UNDER_DIFFERENT_NAME"] = 3002] = "SYMBOL_EXPORTED_UNDER_DIFFERENT_NAME";
55
+ ErrorCode2[ErrorCode2["IMPORT_CYCLE_DETECTED"] = 3003] = "IMPORT_CYCLE_DETECTED";
56
+ ErrorCode2[ErrorCode2["CONFIG_FLAT_MODULE_NO_INDEX"] = 4001] = "CONFIG_FLAT_MODULE_NO_INDEX";
57
+ ErrorCode2[ErrorCode2["CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK"] = 4002] = "CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK";
58
+ ErrorCode2[ErrorCode2["HOST_BINDING_PARSE_ERROR"] = 5001] = "HOST_BINDING_PARSE_ERROR";
59
+ ErrorCode2[ErrorCode2["TEMPLATE_PARSE_ERROR"] = 5002] = "TEMPLATE_PARSE_ERROR";
60
+ ErrorCode2[ErrorCode2["NGMODULE_INVALID_DECLARATION"] = 6001] = "NGMODULE_INVALID_DECLARATION";
61
+ ErrorCode2[ErrorCode2["NGMODULE_INVALID_IMPORT"] = 6002] = "NGMODULE_INVALID_IMPORT";
62
+ ErrorCode2[ErrorCode2["NGMODULE_INVALID_EXPORT"] = 6003] = "NGMODULE_INVALID_EXPORT";
63
+ ErrorCode2[ErrorCode2["NGMODULE_INVALID_REEXPORT"] = 6004] = "NGMODULE_INVALID_REEXPORT";
64
+ ErrorCode2[ErrorCode2["NGMODULE_MODULE_WITH_PROVIDERS_MISSING_GENERIC"] = 6005] = "NGMODULE_MODULE_WITH_PROVIDERS_MISSING_GENERIC";
65
+ ErrorCode2[ErrorCode2["NGMODULE_REEXPORT_NAME_COLLISION"] = 6006] = "NGMODULE_REEXPORT_NAME_COLLISION";
66
+ ErrorCode2[ErrorCode2["NGMODULE_DECLARATION_NOT_UNIQUE"] = 6007] = "NGMODULE_DECLARATION_NOT_UNIQUE";
67
+ ErrorCode2[ErrorCode2["NGMODULE_VE_DEPENDENCY_ON_IVY_LIB"] = 6999] = "NGMODULE_VE_DEPENDENCY_ON_IVY_LIB";
68
+ ErrorCode2[ErrorCode2["SCHEMA_INVALID_ELEMENT"] = 8001] = "SCHEMA_INVALID_ELEMENT";
69
+ ErrorCode2[ErrorCode2["SCHEMA_INVALID_ATTRIBUTE"] = 8002] = "SCHEMA_INVALID_ATTRIBUTE";
70
+ ErrorCode2[ErrorCode2["MISSING_REFERENCE_TARGET"] = 8003] = "MISSING_REFERENCE_TARGET";
71
+ ErrorCode2[ErrorCode2["MISSING_PIPE"] = 8004] = "MISSING_PIPE";
72
+ ErrorCode2[ErrorCode2["WRITE_TO_READ_ONLY_VARIABLE"] = 8005] = "WRITE_TO_READ_ONLY_VARIABLE";
73
+ ErrorCode2[ErrorCode2["DUPLICATE_VARIABLE_DECLARATION"] = 8006] = "DUPLICATE_VARIABLE_DECLARATION";
74
+ ErrorCode2[ErrorCode2["SPLIT_TWO_WAY_BINDING"] = 8007] = "SPLIT_TWO_WAY_BINDING";
75
+ ErrorCode2[ErrorCode2["INVALID_BANANA_IN_BOX"] = 8101] = "INVALID_BANANA_IN_BOX";
76
+ ErrorCode2[ErrorCode2["NULLISH_COALESCING_NOT_NULLABLE"] = 8102] = "NULLISH_COALESCING_NOT_NULLABLE";
77
+ ErrorCode2[ErrorCode2["INLINE_TCB_REQUIRED"] = 8900] = "INLINE_TCB_REQUIRED";
78
+ ErrorCode2[ErrorCode2["INLINE_TYPE_CTOR_REQUIRED"] = 8901] = "INLINE_TYPE_CTOR_REQUIRED";
79
+ ErrorCode2[ErrorCode2["INJECTABLE_DUPLICATE_PROV"] = 9001] = "INJECTABLE_DUPLICATE_PROV";
80
+ ErrorCode2[ErrorCode2["SUGGEST_STRICT_TEMPLATES"] = 10001] = "SUGGEST_STRICT_TEMPLATES";
81
+ ErrorCode2[ErrorCode2["SUGGEST_SUBOPTIMAL_TYPE_INFERENCE"] = 10002] = "SUGGEST_SUBOPTIMAL_TYPE_INFERENCE";
82
+ })(ErrorCode || (ErrorCode = {}));
83
+ var COMPILER_ERRORS_WITH_GUIDES = new Set([
84
+ ErrorCode.DECORATOR_ARG_NOT_LITERAL,
85
+ ErrorCode.IMPORT_CYCLE_DETECTED,
86
+ ErrorCode.PARAM_MISSING_TOKEN,
87
+ ErrorCode.SCHEMA_INVALID_ELEMENT,
88
+ ErrorCode.SCHEMA_INVALID_ATTRIBUTE,
89
+ ErrorCode.MISSING_REFERENCE_TARGET,
90
+ ErrorCode.COMPONENT_INVALID_SHADOW_DOM_SELECTOR
91
+ ]);
92
+
93
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.mjs
94
+ import {
95
+ EOL
96
+ } from "os";
97
+ import ts2 from "typescript";
98
+
99
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/invalid_file_system.mjs
100
+ var InvalidFileSystem = class {
101
+ exists(path) {
102
+ throw makeError();
103
+ }
104
+ readFile(path) {
105
+ throw makeError();
106
+ }
107
+ readFileBuffer(path) {
108
+ throw makeError();
109
+ }
110
+ writeFile(path, data, exclusive) {
111
+ throw makeError();
112
+ }
113
+ removeFile(path) {
114
+ throw makeError();
115
+ }
116
+ symlink(target, path) {
117
+ throw makeError();
118
+ }
119
+ readdir(path) {
120
+ throw makeError();
121
+ }
122
+ lstat(path) {
123
+ throw makeError();
124
+ }
125
+ stat(path) {
126
+ throw makeError();
127
+ }
128
+ pwd() {
129
+ throw makeError();
130
+ }
131
+ chdir(path) {
132
+ throw makeError();
133
+ }
134
+ extname(path) {
135
+ throw makeError();
136
+ }
137
+ copyFile(from, to) {
138
+ throw makeError();
139
+ }
140
+ moveFile(from, to) {
141
+ throw makeError();
142
+ }
143
+ ensureDir(path) {
144
+ throw makeError();
145
+ }
146
+ removeDeep(path) {
147
+ throw makeError();
148
+ }
149
+ isCaseSensitive() {
150
+ throw makeError();
151
+ }
152
+ resolve(...paths) {
153
+ throw makeError();
154
+ }
155
+ dirname(file) {
156
+ throw makeError();
157
+ }
158
+ join(basePath, ...paths) {
159
+ throw makeError();
160
+ }
161
+ isRoot(path) {
162
+ throw makeError();
163
+ }
164
+ isRooted(path) {
165
+ throw makeError();
166
+ }
167
+ relative(from, to) {
168
+ throw makeError();
169
+ }
170
+ basename(filePath, extension) {
171
+ throw makeError();
172
+ }
173
+ realpath(filePath) {
174
+ throw makeError();
175
+ }
176
+ getDefaultLibLocation() {
177
+ throw makeError();
178
+ }
179
+ normalize(path) {
180
+ throw makeError();
181
+ }
182
+ };
183
+ function makeError() {
184
+ return new Error("FileSystem has not been configured. Please call `setFileSystem()` before calling this method.");
185
+ }
186
+
187
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/helpers.mjs
188
+ var fs = new InvalidFileSystem();
189
+ var ABSOLUTE_PATH = Symbol("AbsolutePath");
190
+
191
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.mjs
192
+ import {
193
+ copyFileSync,
194
+ existsSync,
195
+ lstatSync,
196
+ mkdirSync,
197
+ readFileSync,
198
+ readdirSync,
199
+ realpathSync,
200
+ renameSync,
201
+ rmdirSync,
202
+ statSync,
203
+ symlinkSync,
204
+ unlinkSync,
205
+ writeFileSync
206
+ } from "fs";
207
+ import module from "module";
208
+ import {
209
+ basename,
210
+ dirname as dirname2,
211
+ extname,
212
+ isAbsolute,
213
+ join,
214
+ relative as relative2,
215
+ resolve as resolve2
216
+ } from "path";
217
+ import { fileURLToPath } from "url";
218
+ var isCommonJS = typeof __filename !== "undefined";
219
+ var currentFileUrl = isCommonJS ? null : __ESM_IMPORT_META_URL__;
220
+ var currentFileName = isCommonJS ? __filename : fileURLToPath(currentFileUrl);
221
+
222
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
223
+ import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
224
+
225
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
226
+ import { ExternalExpr, ExternalReference, WrappedNodeExpr } from "@angular/compiler";
227
+ import ts5 from "typescript";
228
+
229
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
230
+ import ts3 from "typescript";
231
+ function identifierOfNode(decl) {
232
+ if (decl.name !== void 0 && ts3.isIdentifier(decl.name)) {
233
+ return decl.name;
234
+ } else {
235
+ return null;
236
+ }
237
+ }
238
+ function isDeclaration(node) {
239
+ return isValueDeclaration(node) || isTypeDeclaration(node);
240
+ }
241
+ function isValueDeclaration(node) {
242
+ return ts3.isClassDeclaration(node) || ts3.isFunctionDeclaration(node) || ts3.isVariableDeclaration(node);
243
+ }
244
+ function isTypeDeclaration(node) {
245
+ return ts3.isEnumDeclaration(node) || ts3.isTypeAliasDeclaration(node) || ts3.isInterfaceDeclaration(node);
246
+ }
247
+
248
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
249
+ import ts4 from "typescript";
250
+
251
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
252
+ var ImportFlags;
253
+ (function(ImportFlags2) {
254
+ ImportFlags2[ImportFlags2["None"] = 0] = "None";
255
+ ImportFlags2[ImportFlags2["ForceNewImport"] = 1] = "ForceNewImport";
256
+ ImportFlags2[ImportFlags2["NoAliasing"] = 2] = "NoAliasing";
257
+ ImportFlags2[ImportFlags2["AllowTypeImports"] = 4] = "AllowTypeImports";
258
+ })(ImportFlags || (ImportFlags = {}));
259
+
260
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
261
+ var CORE_SUPPORTED_SYMBOLS = new Map([
262
+ ["\u0275\u0275defineInjectable", "\u0275\u0275defineInjectable"],
263
+ ["\u0275\u0275defineInjector", "\u0275\u0275defineInjector"],
264
+ ["\u0275\u0275defineNgModule", "\u0275\u0275defineNgModule"],
265
+ ["\u0275\u0275setNgModuleScope", "\u0275\u0275setNgModuleScope"],
266
+ ["\u0275\u0275inject", "\u0275\u0275inject"],
267
+ ["\u0275\u0275FactoryDeclaration", "\u0275\u0275FactoryDeclaration"],
268
+ ["\u0275setClassMetadata", "setClassMetadata"],
269
+ ["\u0275\u0275InjectableDeclaration", "\u0275\u0275InjectableDeclaration"],
270
+ ["\u0275\u0275InjectorDeclaration", "\u0275\u0275InjectorDeclaration"],
271
+ ["\u0275\u0275NgModuleDeclaration", "\u0275\u0275NgModuleDeclaration"],
272
+ ["\u0275NgModuleFactory", "NgModuleFactory"],
273
+ ["\u0275noSideEffects", "\u0275noSideEffects"]
274
+ ]);
275
+
276
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
277
+ import ts6 from "typescript";
278
+ var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
279
+
280
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
281
+ var Reference = class {
282
+ constructor(node, bestGuessOwningModule = null) {
283
+ this.node = node;
284
+ this.identifiers = [];
285
+ this.synthetic = false;
286
+ this._alias = null;
287
+ this.bestGuessOwningModule = bestGuessOwningModule;
288
+ const id = identifierOfNode(node);
289
+ if (id !== null) {
290
+ this.identifiers.push(id);
291
+ }
292
+ }
293
+ get ownedByModuleGuess() {
294
+ if (this.bestGuessOwningModule !== null) {
295
+ return this.bestGuessOwningModule.specifier;
296
+ } else {
297
+ return null;
298
+ }
299
+ }
300
+ get hasOwningModuleGuess() {
301
+ return this.bestGuessOwningModule !== null;
302
+ }
303
+ get debugName() {
304
+ const id = identifierOfNode(this.node);
305
+ return id !== null ? id.text : null;
306
+ }
307
+ get alias() {
308
+ return this._alias;
309
+ }
310
+ addIdentifier(identifier) {
311
+ this.identifiers.push(identifier);
312
+ }
313
+ getIdentityIn(context) {
314
+ return this.identifiers.find((id) => id.getSourceFile() === context) || null;
315
+ }
316
+ getIdentityInExpression(expr) {
317
+ const sf = expr.getSourceFile();
318
+ return this.identifiers.find((id) => {
319
+ if (id.getSourceFile() !== sf) {
320
+ return false;
321
+ }
322
+ return id.pos >= expr.pos && id.end <= expr.end;
323
+ }) || null;
324
+ }
325
+ getOriginForDiagnostics(container, fallback = container) {
326
+ const id = this.getIdentityInExpression(container);
327
+ return id !== null ? id : fallback;
328
+ }
329
+ cloneWithAlias(alias) {
330
+ const ref = new Reference(this.node, this.bestGuessOwningModule);
331
+ ref.identifiers = [...this.identifiers];
332
+ ref._alias = alias;
333
+ return ref;
334
+ }
335
+ cloneWithNoIdentifiers() {
336
+ const ref = new Reference(this.node, this.bestGuessOwningModule);
337
+ ref._alias = this._alias;
338
+ ref.identifiers = [];
339
+ return ref;
340
+ }
341
+ };
342
+
343
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
344
+ import ts7 from "typescript";
345
+
346
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
347
+ import { ExternalExpr as ExternalExpr3 } from "@angular/compiler";
348
+
349
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
350
+ import ts8 from "typescript";
351
+
352
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
353
+ var MetaType;
354
+ (function(MetaType2) {
355
+ MetaType2[MetaType2["Pipe"] = 0] = "Pipe";
356
+ MetaType2[MetaType2["Directive"] = 1] = "Directive";
357
+ })(MetaType || (MetaType = {}));
358
+
359
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
360
+ import ts14 from "typescript";
361
+
362
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
363
+ import ts9 from "typescript";
364
+ function isDecoratorIdentifier(exp) {
365
+ return ts9.isIdentifier(exp) || ts9.isPropertyAccessExpression(exp) && ts9.isIdentifier(exp.expression) && ts9.isIdentifier(exp.name);
366
+ }
367
+ var ClassMemberKind;
368
+ (function(ClassMemberKind2) {
369
+ ClassMemberKind2[ClassMemberKind2["Constructor"] = 0] = "Constructor";
370
+ ClassMemberKind2[ClassMemberKind2["Getter"] = 1] = "Getter";
371
+ ClassMemberKind2[ClassMemberKind2["Setter"] = 2] = "Setter";
372
+ ClassMemberKind2[ClassMemberKind2["Property"] = 3] = "Property";
373
+ ClassMemberKind2[ClassMemberKind2["Method"] = 4] = "Method";
374
+ })(ClassMemberKind || (ClassMemberKind = {}));
375
+ var KnownDeclaration;
376
+ (function(KnownDeclaration2) {
377
+ KnownDeclaration2[KnownDeclaration2["JsGlobalObject"] = 0] = "JsGlobalObject";
378
+ KnownDeclaration2[KnownDeclaration2["TsHelperAssign"] = 1] = "TsHelperAssign";
379
+ KnownDeclaration2[KnownDeclaration2["TsHelperSpread"] = 2] = "TsHelperSpread";
380
+ KnownDeclaration2[KnownDeclaration2["TsHelperSpreadArrays"] = 3] = "TsHelperSpreadArrays";
381
+ KnownDeclaration2[KnownDeclaration2["TsHelperSpreadArray"] = 4] = "TsHelperSpreadArray";
382
+ KnownDeclaration2[KnownDeclaration2["TsHelperRead"] = 5] = "TsHelperRead";
383
+ })(KnownDeclaration || (KnownDeclaration = {}));
384
+ function isConcreteDeclaration(decl) {
385
+ return decl.kind === 0;
386
+ }
387
+
388
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
389
+ import ts10 from "typescript";
390
+ function typeToValue(typeNode, checker) {
391
+ if (typeNode === null) {
392
+ return missingType();
393
+ }
394
+ if (!ts10.isTypeReferenceNode(typeNode)) {
395
+ return unsupportedType(typeNode);
396
+ }
397
+ const symbols = resolveTypeSymbols(typeNode, checker);
398
+ if (symbols === null) {
399
+ return unknownReference(typeNode);
400
+ }
401
+ const { local, decl } = symbols;
402
+ if (decl.valueDeclaration === void 0 || decl.flags & ts10.SymbolFlags.ConstEnum) {
403
+ let typeOnlyDecl = null;
404
+ if (decl.declarations !== void 0 && decl.declarations.length > 0) {
405
+ typeOnlyDecl = decl.declarations[0];
406
+ }
407
+ return noValueDeclaration(typeNode, typeOnlyDecl);
408
+ }
409
+ const firstDecl = local.declarations && local.declarations[0];
410
+ if (firstDecl !== void 0) {
411
+ if (ts10.isImportClause(firstDecl) && firstDecl.name !== void 0) {
412
+ if (firstDecl.isTypeOnly) {
413
+ return typeOnlyImport(typeNode, firstDecl);
414
+ }
415
+ return {
416
+ kind: 0,
417
+ expression: firstDecl.name,
418
+ defaultImportStatement: firstDecl.parent
419
+ };
420
+ } else if (ts10.isImportSpecifier(firstDecl)) {
421
+ if (firstDecl.parent.parent.isTypeOnly) {
422
+ return typeOnlyImport(typeNode, firstDecl.parent.parent);
423
+ }
424
+ const importedName = (firstDecl.propertyName || firstDecl.name).text;
425
+ const [_localName, ...nestedPath] = symbols.symbolNames;
426
+ const moduleName = extractModuleName(firstDecl.parent.parent.parent);
427
+ return {
428
+ kind: 1,
429
+ valueDeclaration: decl.valueDeclaration,
430
+ moduleName,
431
+ importedName,
432
+ nestedPath
433
+ };
434
+ } else if (ts10.isNamespaceImport(firstDecl)) {
435
+ if (firstDecl.parent.isTypeOnly) {
436
+ return typeOnlyImport(typeNode, firstDecl.parent);
437
+ }
438
+ if (symbols.symbolNames.length === 1) {
439
+ return namespaceImport(typeNode, firstDecl.parent);
440
+ }
441
+ const [_ns, importedName, ...nestedPath] = symbols.symbolNames;
442
+ const moduleName = extractModuleName(firstDecl.parent.parent);
443
+ return {
444
+ kind: 1,
445
+ valueDeclaration: decl.valueDeclaration,
446
+ moduleName,
447
+ importedName,
448
+ nestedPath
449
+ };
450
+ }
451
+ }
452
+ const expression = typeNodeToValueExpr(typeNode);
453
+ if (expression !== null) {
454
+ return {
455
+ kind: 0,
456
+ expression,
457
+ defaultImportStatement: null
458
+ };
459
+ } else {
460
+ return unsupportedType(typeNode);
461
+ }
462
+ }
463
+ function unsupportedType(typeNode) {
464
+ return {
465
+ kind: 2,
466
+ reason: { kind: 5, typeNode }
467
+ };
468
+ }
469
+ function noValueDeclaration(typeNode, decl) {
470
+ return {
471
+ kind: 2,
472
+ reason: { kind: 1, typeNode, decl }
473
+ };
474
+ }
475
+ function typeOnlyImport(typeNode, importClause) {
476
+ return {
477
+ kind: 2,
478
+ reason: { kind: 2, typeNode, importClause }
479
+ };
480
+ }
481
+ function unknownReference(typeNode) {
482
+ return {
483
+ kind: 2,
484
+ reason: { kind: 3, typeNode }
485
+ };
486
+ }
487
+ function namespaceImport(typeNode, importClause) {
488
+ return {
489
+ kind: 2,
490
+ reason: { kind: 4, typeNode, importClause }
491
+ };
492
+ }
493
+ function missingType() {
494
+ return {
495
+ kind: 2,
496
+ reason: { kind: 0 }
497
+ };
498
+ }
499
+ function typeNodeToValueExpr(node) {
500
+ if (ts10.isTypeReferenceNode(node)) {
501
+ return entityNameToValue(node.typeName);
502
+ } else {
503
+ return null;
504
+ }
505
+ }
506
+ function resolveTypeSymbols(typeRef, checker) {
507
+ const typeName = typeRef.typeName;
508
+ const typeRefSymbol = checker.getSymbolAtLocation(typeName);
509
+ if (typeRefSymbol === void 0) {
510
+ return null;
511
+ }
512
+ let local = typeRefSymbol;
513
+ let leftMost = typeName;
514
+ const symbolNames = [];
515
+ while (ts10.isQualifiedName(leftMost)) {
516
+ symbolNames.unshift(leftMost.right.text);
517
+ leftMost = leftMost.left;
518
+ }
519
+ symbolNames.unshift(leftMost.text);
520
+ if (leftMost !== typeName) {
521
+ const localTmp = checker.getSymbolAtLocation(leftMost);
522
+ if (localTmp !== void 0) {
523
+ local = localTmp;
524
+ }
525
+ }
526
+ let decl = typeRefSymbol;
527
+ if (typeRefSymbol.flags & ts10.SymbolFlags.Alias) {
528
+ decl = checker.getAliasedSymbol(typeRefSymbol);
529
+ }
530
+ return { local, decl, symbolNames };
531
+ }
532
+ function entityNameToValue(node) {
533
+ if (ts10.isQualifiedName(node)) {
534
+ const left = entityNameToValue(node.left);
535
+ return left !== null ? ts10.createPropertyAccess(left, node.right) : null;
536
+ } else if (ts10.isIdentifier(node)) {
537
+ return ts10.getMutableClone(node);
538
+ } else {
539
+ return null;
540
+ }
541
+ }
542
+ function extractModuleName(node) {
543
+ if (!ts10.isStringLiteral(node.moduleSpecifier)) {
544
+ throw new Error("not a module specifier");
545
+ }
546
+ return node.moduleSpecifier.text;
547
+ }
548
+
549
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
550
+ import ts12 from "typescript";
551
+
552
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
553
+ import ts11 from "typescript";
554
+ function isNamedClassDeclaration(node) {
555
+ return ts11.isClassDeclaration(node) && isIdentifier(node.name);
556
+ }
557
+ function isIdentifier(node) {
558
+ return node !== void 0 && ts11.isIdentifier(node);
559
+ }
560
+
561
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
562
+ var TypeScriptReflectionHost = class {
563
+ constructor(checker) {
564
+ this.checker = checker;
565
+ }
566
+ getDecoratorsOfDeclaration(declaration) {
567
+ if (declaration.decorators === void 0 || declaration.decorators.length === 0) {
568
+ return null;
569
+ }
570
+ return declaration.decorators.map((decorator) => this._reflectDecorator(decorator)).filter((dec) => dec !== null);
571
+ }
572
+ getMembersOfClass(clazz) {
573
+ const tsClazz = castDeclarationToClassOrDie(clazz);
574
+ return tsClazz.members.map((member) => this._reflectMember(member)).filter((member) => member !== null);
575
+ }
576
+ getConstructorParameters(clazz) {
577
+ const tsClazz = castDeclarationToClassOrDie(clazz);
578
+ const isDeclaration2 = tsClazz.getSourceFile().isDeclarationFile;
579
+ const ctor = tsClazz.members.find((member) => ts12.isConstructorDeclaration(member) && (isDeclaration2 || member.body !== void 0));
580
+ if (ctor === void 0) {
581
+ return null;
582
+ }
583
+ return ctor.parameters.map((node) => {
584
+ const name = parameterName(node.name);
585
+ const decorators = this.getDecoratorsOfDeclaration(node);
586
+ let originalTypeNode = node.type || null;
587
+ let typeNode = originalTypeNode;
588
+ if (typeNode && ts12.isUnionTypeNode(typeNode)) {
589
+ let childTypeNodes = typeNode.types.filter((childTypeNode) => !(ts12.isLiteralTypeNode(childTypeNode) && childTypeNode.literal.kind === ts12.SyntaxKind.NullKeyword));
590
+ if (childTypeNodes.length === 1) {
591
+ typeNode = childTypeNodes[0];
592
+ }
593
+ }
594
+ const typeValueReference = typeToValue(typeNode, this.checker);
595
+ return {
596
+ name,
597
+ nameNode: node.name,
598
+ typeValueReference,
599
+ typeNode: originalTypeNode,
600
+ decorators
601
+ };
602
+ });
603
+ }
604
+ getImportOfIdentifier(id) {
605
+ const directImport = this.getDirectImportOfIdentifier(id);
606
+ if (directImport !== null) {
607
+ return directImport;
608
+ } else if (ts12.isQualifiedName(id.parent) && id.parent.right === id) {
609
+ return this.getImportOfNamespacedIdentifier(id, getQualifiedNameRoot(id.parent));
610
+ } else if (ts12.isPropertyAccessExpression(id.parent) && id.parent.name === id) {
611
+ return this.getImportOfNamespacedIdentifier(id, getFarLeftIdentifier(id.parent));
612
+ } else {
613
+ return null;
614
+ }
615
+ }
616
+ getExportsOfModule(node) {
617
+ if (!ts12.isSourceFile(node)) {
618
+ throw new Error(`getExportsOfModule() called on non-SourceFile in TS code`);
619
+ }
620
+ const symbol = this.checker.getSymbolAtLocation(node);
621
+ if (symbol === void 0) {
622
+ return null;
623
+ }
624
+ const map = new Map();
625
+ this.checker.getExportsOfModule(symbol).forEach((exportSymbol) => {
626
+ const decl = this.getDeclarationOfSymbol(exportSymbol, null);
627
+ if (decl !== null) {
628
+ map.set(exportSymbol.name, decl);
629
+ }
630
+ });
631
+ return map;
632
+ }
633
+ isClass(node) {
634
+ return isNamedClassDeclaration(node);
635
+ }
636
+ hasBaseClass(clazz) {
637
+ return this.getBaseClassExpression(clazz) !== null;
638
+ }
639
+ getBaseClassExpression(clazz) {
640
+ if (!(ts12.isClassDeclaration(clazz) || ts12.isClassExpression(clazz)) || clazz.heritageClauses === void 0) {
641
+ return null;
642
+ }
643
+ const extendsClause = clazz.heritageClauses.find((clause) => clause.token === ts12.SyntaxKind.ExtendsKeyword);
644
+ if (extendsClause === void 0) {
645
+ return null;
646
+ }
647
+ const extendsType = extendsClause.types[0];
648
+ if (extendsType === void 0) {
649
+ return null;
650
+ }
651
+ return extendsType.expression;
652
+ }
653
+ getDeclarationOfIdentifier(id) {
654
+ let symbol = this.checker.getSymbolAtLocation(id);
655
+ if (symbol === void 0) {
656
+ return null;
657
+ }
658
+ return this.getDeclarationOfSymbol(symbol, id);
659
+ }
660
+ getDefinitionOfFunction(node) {
661
+ if (!ts12.isFunctionDeclaration(node) && !ts12.isMethodDeclaration(node) && !ts12.isFunctionExpression(node)) {
662
+ return null;
663
+ }
664
+ return {
665
+ node,
666
+ body: node.body !== void 0 ? Array.from(node.body.statements) : null,
667
+ parameters: node.parameters.map((param) => {
668
+ const name = parameterName(param.name);
669
+ const initializer = param.initializer || null;
670
+ return { name, node: param, initializer };
671
+ })
672
+ };
673
+ }
674
+ getGenericArityOfClass(clazz) {
675
+ if (!ts12.isClassDeclaration(clazz)) {
676
+ return null;
677
+ }
678
+ return clazz.typeParameters !== void 0 ? clazz.typeParameters.length : 0;
679
+ }
680
+ getVariableValue(declaration) {
681
+ return declaration.initializer || null;
682
+ }
683
+ getDtsDeclaration(_) {
684
+ return null;
685
+ }
686
+ getInternalNameOfClass(clazz) {
687
+ return clazz.name;
688
+ }
689
+ getAdjacentNameOfClass(clazz) {
690
+ return clazz.name;
691
+ }
692
+ isStaticallyExported(decl) {
693
+ let topLevel = decl;
694
+ if (ts12.isVariableDeclaration(decl) && ts12.isVariableDeclarationList(decl.parent)) {
695
+ topLevel = decl.parent.parent;
696
+ }
697
+ if (topLevel.modifiers !== void 0 && topLevel.modifiers.some((modifier) => modifier.kind === ts12.SyntaxKind.ExportKeyword)) {
698
+ return true;
699
+ }
700
+ if (topLevel.parent === void 0 || !ts12.isSourceFile(topLevel.parent)) {
701
+ return false;
702
+ }
703
+ const localExports = this.getLocalExportedDeclarationsOfSourceFile(decl.getSourceFile());
704
+ return localExports.has(decl);
705
+ }
706
+ getDirectImportOfIdentifier(id) {
707
+ const symbol = this.checker.getSymbolAtLocation(id);
708
+ if (symbol === void 0 || symbol.declarations === void 0 || symbol.declarations.length !== 1) {
709
+ return null;
710
+ }
711
+ const decl = symbol.declarations[0];
712
+ const importDecl = getContainingImportDeclaration(decl);
713
+ if (importDecl === null) {
714
+ return null;
715
+ }
716
+ if (!ts12.isStringLiteral(importDecl.moduleSpecifier)) {
717
+ return null;
718
+ }
719
+ return { from: importDecl.moduleSpecifier.text, name: getExportedName(decl, id) };
720
+ }
721
+ getImportOfNamespacedIdentifier(id, namespaceIdentifier) {
722
+ if (namespaceIdentifier === null) {
723
+ return null;
724
+ }
725
+ const namespaceSymbol = this.checker.getSymbolAtLocation(namespaceIdentifier);
726
+ if (!namespaceSymbol || namespaceSymbol.declarations === void 0) {
727
+ return null;
728
+ }
729
+ const declaration = namespaceSymbol.declarations.length === 1 ? namespaceSymbol.declarations[0] : null;
730
+ if (!declaration) {
731
+ return null;
732
+ }
733
+ const namespaceDeclaration = ts12.isNamespaceImport(declaration) ? declaration : null;
734
+ if (!namespaceDeclaration) {
735
+ return null;
736
+ }
737
+ const importDeclaration = namespaceDeclaration.parent.parent;
738
+ if (!ts12.isStringLiteral(importDeclaration.moduleSpecifier)) {
739
+ return null;
740
+ }
741
+ return {
742
+ from: importDeclaration.moduleSpecifier.text,
743
+ name: id.text
744
+ };
745
+ }
746
+ getDeclarationOfSymbol(symbol, originalId) {
747
+ let valueDeclaration = void 0;
748
+ if (symbol.valueDeclaration !== void 0) {
749
+ valueDeclaration = symbol.valueDeclaration;
750
+ } else if (symbol.declarations !== void 0 && symbol.declarations.length > 0) {
751
+ valueDeclaration = symbol.declarations[0];
752
+ }
753
+ if (valueDeclaration !== void 0 && ts12.isShorthandPropertyAssignment(valueDeclaration)) {
754
+ const shorthandSymbol = this.checker.getShorthandAssignmentValueSymbol(valueDeclaration);
755
+ if (shorthandSymbol === void 0) {
756
+ return null;
757
+ }
758
+ return this.getDeclarationOfSymbol(shorthandSymbol, originalId);
759
+ } else if (valueDeclaration !== void 0 && ts12.isExportSpecifier(valueDeclaration)) {
760
+ const targetSymbol = this.checker.getExportSpecifierLocalTargetSymbol(valueDeclaration);
761
+ if (targetSymbol === void 0) {
762
+ return null;
763
+ }
764
+ return this.getDeclarationOfSymbol(targetSymbol, originalId);
765
+ }
766
+ const importInfo = originalId && this.getImportOfIdentifier(originalId);
767
+ const viaModule = importInfo !== null && importInfo.from !== null && !importInfo.from.startsWith(".") ? importInfo.from : null;
768
+ while (symbol.flags & ts12.SymbolFlags.Alias) {
769
+ symbol = this.checker.getAliasedSymbol(symbol);
770
+ }
771
+ if (symbol.valueDeclaration !== void 0) {
772
+ return {
773
+ node: symbol.valueDeclaration,
774
+ known: null,
775
+ viaModule,
776
+ identity: null,
777
+ kind: 0
778
+ };
779
+ } else if (symbol.declarations !== void 0 && symbol.declarations.length > 0) {
780
+ return {
781
+ node: symbol.declarations[0],
782
+ known: null,
783
+ viaModule,
784
+ identity: null,
785
+ kind: 0
786
+ };
787
+ } else {
788
+ return null;
789
+ }
790
+ }
791
+ _reflectDecorator(node) {
792
+ let decoratorExpr = node.expression;
793
+ let args = null;
794
+ if (ts12.isCallExpression(decoratorExpr)) {
795
+ args = Array.from(decoratorExpr.arguments);
796
+ decoratorExpr = decoratorExpr.expression;
797
+ }
798
+ if (!isDecoratorIdentifier(decoratorExpr)) {
799
+ return null;
800
+ }
801
+ const decoratorIdentifier = ts12.isIdentifier(decoratorExpr) ? decoratorExpr : decoratorExpr.name;
802
+ const importDecl = this.getImportOfIdentifier(decoratorIdentifier);
803
+ return {
804
+ name: decoratorIdentifier.text,
805
+ identifier: decoratorExpr,
806
+ import: importDecl,
807
+ node,
808
+ args
809
+ };
810
+ }
811
+ _reflectMember(node) {
812
+ let kind = null;
813
+ let value = null;
814
+ let name = null;
815
+ let nameNode = null;
816
+ if (ts12.isPropertyDeclaration(node)) {
817
+ kind = ClassMemberKind.Property;
818
+ value = node.initializer || null;
819
+ } else if (ts12.isGetAccessorDeclaration(node)) {
820
+ kind = ClassMemberKind.Getter;
821
+ } else if (ts12.isSetAccessorDeclaration(node)) {
822
+ kind = ClassMemberKind.Setter;
823
+ } else if (ts12.isMethodDeclaration(node)) {
824
+ kind = ClassMemberKind.Method;
825
+ } else if (ts12.isConstructorDeclaration(node)) {
826
+ kind = ClassMemberKind.Constructor;
827
+ } else {
828
+ return null;
829
+ }
830
+ if (ts12.isConstructorDeclaration(node)) {
831
+ name = "constructor";
832
+ } else if (ts12.isIdentifier(node.name)) {
833
+ name = node.name.text;
834
+ nameNode = node.name;
835
+ } else if (ts12.isStringLiteral(node.name)) {
836
+ name = node.name.text;
837
+ nameNode = node.name;
838
+ } else {
839
+ return null;
840
+ }
841
+ const decorators = this.getDecoratorsOfDeclaration(node);
842
+ const isStatic = node.modifiers !== void 0 && node.modifiers.some((mod) => mod.kind === ts12.SyntaxKind.StaticKeyword);
843
+ return {
844
+ node,
845
+ implementation: node,
846
+ kind,
847
+ type: node.type || null,
848
+ name,
849
+ nameNode,
850
+ decorators,
851
+ value,
852
+ isStatic
853
+ };
854
+ }
855
+ getLocalExportedDeclarationsOfSourceFile(file) {
856
+ const cacheSf = file;
857
+ if (cacheSf[LocalExportedDeclarations] !== void 0) {
858
+ return cacheSf[LocalExportedDeclarations];
859
+ }
860
+ const exportSet = new Set();
861
+ cacheSf[LocalExportedDeclarations] = exportSet;
862
+ const sfSymbol = this.checker.getSymbolAtLocation(cacheSf);
863
+ if (sfSymbol === void 0 || sfSymbol.exports === void 0) {
864
+ return exportSet;
865
+ }
866
+ const iter = sfSymbol.exports.values();
867
+ let item = iter.next();
868
+ while (item.done !== true) {
869
+ let exportedSymbol = item.value;
870
+ if (exportedSymbol.flags & ts12.SymbolFlags.Alias) {
871
+ exportedSymbol = this.checker.getAliasedSymbol(exportedSymbol);
872
+ }
873
+ if (exportedSymbol.valueDeclaration !== void 0 && exportedSymbol.valueDeclaration.getSourceFile() === file) {
874
+ exportSet.add(exportedSymbol.valueDeclaration);
875
+ }
876
+ item = iter.next();
877
+ }
878
+ return exportSet;
879
+ }
880
+ };
881
+ function reflectObjectLiteral(node) {
882
+ const map = new Map();
883
+ node.properties.forEach((prop) => {
884
+ if (ts12.isPropertyAssignment(prop)) {
885
+ const name = propertyNameToString(prop.name);
886
+ if (name === null) {
887
+ return;
888
+ }
889
+ map.set(name, prop.initializer);
890
+ } else if (ts12.isShorthandPropertyAssignment(prop)) {
891
+ map.set(prop.name.text, prop.name);
892
+ } else {
893
+ return;
894
+ }
895
+ });
896
+ return map;
897
+ }
898
+ function castDeclarationToClassOrDie(declaration) {
899
+ if (!ts12.isClassDeclaration(declaration)) {
900
+ throw new Error(`Reflecting on a ${ts12.SyntaxKind[declaration.kind]} instead of a ClassDeclaration.`);
901
+ }
902
+ return declaration;
903
+ }
904
+ function parameterName(name) {
905
+ if (ts12.isIdentifier(name)) {
906
+ return name.text;
907
+ } else {
908
+ return null;
909
+ }
910
+ }
911
+ function propertyNameToString(node) {
912
+ if (ts12.isIdentifier(node) || ts12.isStringLiteral(node) || ts12.isNumericLiteral(node)) {
913
+ return node.text;
914
+ } else {
915
+ return null;
916
+ }
917
+ }
918
+ function getQualifiedNameRoot(qualifiedName) {
919
+ while (ts12.isQualifiedName(qualifiedName.left)) {
920
+ qualifiedName = qualifiedName.left;
921
+ }
922
+ return ts12.isIdentifier(qualifiedName.left) ? qualifiedName.left : null;
923
+ }
924
+ function getFarLeftIdentifier(propertyAccess) {
925
+ while (ts12.isPropertyAccessExpression(propertyAccess.expression)) {
926
+ propertyAccess = propertyAccess.expression;
927
+ }
928
+ return ts12.isIdentifier(propertyAccess.expression) ? propertyAccess.expression : null;
929
+ }
930
+ function getContainingImportDeclaration(node) {
931
+ return ts12.isImportSpecifier(node) ? node.parent.parent.parent : ts12.isNamespaceImport(node) ? node.parent.parent : null;
932
+ }
933
+ function getExportedName(decl, originalId) {
934
+ return ts12.isImportSpecifier(decl) ? (decl.propertyName !== void 0 ? decl.propertyName : decl.name).text : originalId.text;
935
+ }
936
+ var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
937
+
938
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
939
+ var ClassPropertyMapping = class {
940
+ constructor(forwardMap) {
941
+ this.forwardMap = forwardMap;
942
+ this.reverseMap = reverseMapFromForwardMap(forwardMap);
943
+ }
944
+ static empty() {
945
+ return new ClassPropertyMapping(new Map());
946
+ }
947
+ static fromMappedObject(obj) {
948
+ const forwardMap = new Map();
949
+ for (const classPropertyName of Object.keys(obj)) {
950
+ const value = obj[classPropertyName];
951
+ const bindingPropertyName = Array.isArray(value) ? value[0] : value;
952
+ const inputOrOutput = { classPropertyName, bindingPropertyName };
953
+ forwardMap.set(classPropertyName, inputOrOutput);
954
+ }
955
+ return new ClassPropertyMapping(forwardMap);
956
+ }
957
+ static merge(a, b) {
958
+ const forwardMap = new Map(a.forwardMap.entries());
959
+ for (const [classPropertyName, inputOrOutput] of b.forwardMap) {
960
+ forwardMap.set(classPropertyName, inputOrOutput);
961
+ }
962
+ return new ClassPropertyMapping(forwardMap);
963
+ }
964
+ get classPropertyNames() {
965
+ return Array.from(this.forwardMap.keys());
966
+ }
967
+ get propertyNames() {
968
+ return Array.from(this.reverseMap.keys());
969
+ }
970
+ hasBindingPropertyName(propertyName) {
971
+ return this.reverseMap.has(propertyName);
972
+ }
973
+ getByBindingPropertyName(propertyName) {
974
+ return this.reverseMap.has(propertyName) ? this.reverseMap.get(propertyName) : null;
975
+ }
976
+ getByClassPropertyName(classPropertyName) {
977
+ return this.forwardMap.has(classPropertyName) ? this.forwardMap.get(classPropertyName) : null;
978
+ }
979
+ toDirectMappedObject() {
980
+ const obj = {};
981
+ for (const [classPropertyName, inputOrOutput] of this.forwardMap) {
982
+ obj[classPropertyName] = inputOrOutput.bindingPropertyName;
983
+ }
984
+ return obj;
985
+ }
986
+ toJointMappedObject() {
987
+ const obj = {};
988
+ for (const [classPropertyName, inputOrOutput] of this.forwardMap) {
989
+ if (inputOrOutput.bindingPropertyName === classPropertyName) {
990
+ obj[classPropertyName] = inputOrOutput.bindingPropertyName;
991
+ } else {
992
+ obj[classPropertyName] = [inputOrOutput.bindingPropertyName, classPropertyName];
993
+ }
994
+ }
995
+ return obj;
996
+ }
997
+ *[Symbol.iterator]() {
998
+ for (const [classPropertyName, inputOrOutput] of this.forwardMap.entries()) {
999
+ yield [classPropertyName, inputOrOutput.bindingPropertyName];
1000
+ }
1001
+ }
1002
+ };
1003
+ function reverseMapFromForwardMap(forwardMap) {
1004
+ const reverseMap = new Map();
1005
+ for (const [_, inputOrOutput] of forwardMap) {
1006
+ if (!reverseMap.has(inputOrOutput.bindingPropertyName)) {
1007
+ reverseMap.set(inputOrOutput.bindingPropertyName, []);
1008
+ }
1009
+ reverseMap.get(inputOrOutput.bindingPropertyName).push(inputOrOutput);
1010
+ }
1011
+ return reverseMap;
1012
+ }
1013
+
1014
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
1015
+ import ts13 from "typescript";
1016
+
1017
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
1018
+ import ts15 from "typescript";
1019
+
1020
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
1021
+ var DynamicValue = class {
1022
+ constructor(node, reason, code) {
1023
+ this.node = node;
1024
+ this.reason = reason;
1025
+ this.code = code;
1026
+ }
1027
+ static fromDynamicInput(node, input) {
1028
+ return new DynamicValue(node, input, 0);
1029
+ }
1030
+ static fromDynamicString(node) {
1031
+ return new DynamicValue(node, void 0, 1);
1032
+ }
1033
+ static fromExternalReference(node, ref) {
1034
+ return new DynamicValue(node, ref, 2);
1035
+ }
1036
+ static fromUnsupportedSyntax(node) {
1037
+ return new DynamicValue(node, void 0, 3);
1038
+ }
1039
+ static fromUnknownIdentifier(node) {
1040
+ return new DynamicValue(node, void 0, 4);
1041
+ }
1042
+ static fromInvalidExpressionType(node, value) {
1043
+ return new DynamicValue(node, value, 5);
1044
+ }
1045
+ static fromComplexFunctionCall(node, fn) {
1046
+ return new DynamicValue(node, fn, 6);
1047
+ }
1048
+ static fromDynamicType(node) {
1049
+ return new DynamicValue(node, void 0, 7);
1050
+ }
1051
+ static fromUnknown(node) {
1052
+ return new DynamicValue(node, void 0, 8);
1053
+ }
1054
+ isFromDynamicInput() {
1055
+ return this.code === 0;
1056
+ }
1057
+ isFromDynamicString() {
1058
+ return this.code === 1;
1059
+ }
1060
+ isFromExternalReference() {
1061
+ return this.code === 2;
1062
+ }
1063
+ isFromUnsupportedSyntax() {
1064
+ return this.code === 3;
1065
+ }
1066
+ isFromUnknownIdentifier() {
1067
+ return this.code === 4;
1068
+ }
1069
+ isFromInvalidExpressionType() {
1070
+ return this.code === 5;
1071
+ }
1072
+ isFromComplexFunctionCall() {
1073
+ return this.code === 6;
1074
+ }
1075
+ isFromDynamicType() {
1076
+ return this.code === 7;
1077
+ }
1078
+ isFromUnknown() {
1079
+ return this.code === 8;
1080
+ }
1081
+ accept(visitor) {
1082
+ switch (this.code) {
1083
+ case 0:
1084
+ return visitor.visitDynamicInput(this);
1085
+ case 1:
1086
+ return visitor.visitDynamicString(this);
1087
+ case 2:
1088
+ return visitor.visitExternalReference(this);
1089
+ case 3:
1090
+ return visitor.visitUnsupportedSyntax(this);
1091
+ case 4:
1092
+ return visitor.visitUnknownIdentifier(this);
1093
+ case 5:
1094
+ return visitor.visitInvalidExpressionType(this);
1095
+ case 6:
1096
+ return visitor.visitComplexFunctionCall(this);
1097
+ case 7:
1098
+ return visitor.visitDynamicType(this);
1099
+ case 8:
1100
+ return visitor.visitUnknown(this);
1101
+ }
1102
+ }
1103
+ };
1104
+
1105
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
1106
+ var ResolvedModule = class {
1107
+ constructor(exports, evaluate) {
1108
+ this.exports = exports;
1109
+ this.evaluate = evaluate;
1110
+ }
1111
+ getExport(name) {
1112
+ if (!this.exports.has(name)) {
1113
+ return void 0;
1114
+ }
1115
+ return this.evaluate(this.exports.get(name));
1116
+ }
1117
+ getExports() {
1118
+ const map = new Map();
1119
+ this.exports.forEach((decl, name) => {
1120
+ map.set(name, this.evaluate(decl));
1121
+ });
1122
+ return map;
1123
+ }
1124
+ };
1125
+ var EnumValue = class {
1126
+ constructor(enumRef, name, resolved) {
1127
+ this.enumRef = enumRef;
1128
+ this.name = name;
1129
+ this.resolved = resolved;
1130
+ }
1131
+ };
1132
+ var KnownFn = class {
1133
+ };
1134
+
1135
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
1136
+ import ts16 from "typescript";
1137
+
1138
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
1139
+ var ArraySliceBuiltinFn = class extends KnownFn {
1140
+ constructor(lhs) {
1141
+ super();
1142
+ this.lhs = lhs;
1143
+ }
1144
+ evaluate(node, args) {
1145
+ if (args.length === 0) {
1146
+ return this.lhs;
1147
+ } else {
1148
+ return DynamicValue.fromUnknown(node);
1149
+ }
1150
+ }
1151
+ };
1152
+ var ArrayConcatBuiltinFn = class extends KnownFn {
1153
+ constructor(lhs) {
1154
+ super();
1155
+ this.lhs = lhs;
1156
+ }
1157
+ evaluate(node, args) {
1158
+ const result = [...this.lhs];
1159
+ for (const arg of args) {
1160
+ if (arg instanceof DynamicValue) {
1161
+ result.push(DynamicValue.fromDynamicInput(node, arg));
1162
+ } else if (Array.isArray(arg)) {
1163
+ result.push(...arg);
1164
+ } else {
1165
+ result.push(arg);
1166
+ }
1167
+ }
1168
+ return result;
1169
+ }
1170
+ };
1171
+ var ObjectAssignBuiltinFn = class extends KnownFn {
1172
+ evaluate(node, args) {
1173
+ if (args.length === 0) {
1174
+ return DynamicValue.fromUnsupportedSyntax(node);
1175
+ }
1176
+ for (const arg of args) {
1177
+ if (arg instanceof DynamicValue) {
1178
+ return DynamicValue.fromDynamicInput(node, arg);
1179
+ } else if (!(arg instanceof Map)) {
1180
+ return DynamicValue.fromUnsupportedSyntax(node);
1181
+ }
1182
+ }
1183
+ const [target, ...sources] = args;
1184
+ for (const source of sources) {
1185
+ source.forEach((value, key) => target.set(key, value));
1186
+ }
1187
+ return target;
1188
+ }
1189
+ };
1190
+
1191
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/ts_helpers.mjs
1192
+ var AssignHelperFn = class extends ObjectAssignBuiltinFn {
1193
+ };
1194
+ var SpreadHelperFn = class extends KnownFn {
1195
+ evaluate(node, args) {
1196
+ const result = [];
1197
+ for (const arg of args) {
1198
+ if (arg instanceof DynamicValue) {
1199
+ result.push(DynamicValue.fromDynamicInput(node, arg));
1200
+ } else if (Array.isArray(arg)) {
1201
+ result.push(...arg);
1202
+ } else {
1203
+ result.push(arg);
1204
+ }
1205
+ }
1206
+ return result;
1207
+ }
1208
+ };
1209
+ var SpreadArrayHelperFn = class extends KnownFn {
1210
+ evaluate(node, args) {
1211
+ if (args.length !== 2 && args.length !== 3) {
1212
+ return DynamicValue.fromUnknown(node);
1213
+ }
1214
+ const [to, from] = args;
1215
+ if (to instanceof DynamicValue) {
1216
+ return DynamicValue.fromDynamicInput(node, to);
1217
+ } else if (from instanceof DynamicValue) {
1218
+ return DynamicValue.fromDynamicInput(node, from);
1219
+ }
1220
+ if (!Array.isArray(to)) {
1221
+ return DynamicValue.fromInvalidExpressionType(node, to);
1222
+ } else if (!Array.isArray(from)) {
1223
+ return DynamicValue.fromInvalidExpressionType(node, from);
1224
+ }
1225
+ return to.concat(from);
1226
+ }
1227
+ };
1228
+ var ReadHelperFn = class extends KnownFn {
1229
+ evaluate(node, args) {
1230
+ if (args.length !== 1) {
1231
+ return DynamicValue.fromUnknown(node);
1232
+ }
1233
+ const [value] = args;
1234
+ if (value instanceof DynamicValue) {
1235
+ return DynamicValue.fromDynamicInput(node, value);
1236
+ }
1237
+ if (!Array.isArray(value)) {
1238
+ return DynamicValue.fromInvalidExpressionType(node, value);
1239
+ }
1240
+ return value;
1241
+ }
1242
+ };
1243
+
1244
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/known_declaration.mjs
1245
+ var jsGlobalObjectValue = new Map([["assign", new ObjectAssignBuiltinFn()]]);
1246
+ var assignTsHelperFn = new AssignHelperFn();
1247
+ var spreadTsHelperFn = new SpreadHelperFn();
1248
+ var spreadArrayTsHelperFn = new SpreadArrayHelperFn();
1249
+ var readTsHelperFn = new ReadHelperFn();
1250
+ function resolveKnownDeclaration(decl) {
1251
+ switch (decl) {
1252
+ case KnownDeclaration.JsGlobalObject:
1253
+ return jsGlobalObjectValue;
1254
+ case KnownDeclaration.TsHelperAssign:
1255
+ return assignTsHelperFn;
1256
+ case KnownDeclaration.TsHelperSpread:
1257
+ case KnownDeclaration.TsHelperSpreadArrays:
1258
+ return spreadTsHelperFn;
1259
+ case KnownDeclaration.TsHelperSpreadArray:
1260
+ return spreadArrayTsHelperFn;
1261
+ case KnownDeclaration.TsHelperRead:
1262
+ return readTsHelperFn;
1263
+ default:
1264
+ throw new Error(`Cannot resolve known declaration. Received: ${KnownDeclaration[decl]}.`);
1265
+ }
1266
+ }
1267
+
1268
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
1269
+ function literalBinaryOp(op) {
1270
+ return { op, literal: true };
1271
+ }
1272
+ function referenceBinaryOp(op) {
1273
+ return { op, literal: false };
1274
+ }
1275
+ var BINARY_OPERATORS = new Map([
1276
+ [ts16.SyntaxKind.PlusToken, literalBinaryOp((a, b) => a + b)],
1277
+ [ts16.SyntaxKind.MinusToken, literalBinaryOp((a, b) => a - b)],
1278
+ [ts16.SyntaxKind.AsteriskToken, literalBinaryOp((a, b) => a * b)],
1279
+ [ts16.SyntaxKind.SlashToken, literalBinaryOp((a, b) => a / b)],
1280
+ [ts16.SyntaxKind.PercentToken, literalBinaryOp((a, b) => a % b)],
1281
+ [ts16.SyntaxKind.AmpersandToken, literalBinaryOp((a, b) => a & b)],
1282
+ [ts16.SyntaxKind.BarToken, literalBinaryOp((a, b) => a | b)],
1283
+ [ts16.SyntaxKind.CaretToken, literalBinaryOp((a, b) => a ^ b)],
1284
+ [ts16.SyntaxKind.LessThanToken, literalBinaryOp((a, b) => a < b)],
1285
+ [ts16.SyntaxKind.LessThanEqualsToken, literalBinaryOp((a, b) => a <= b)],
1286
+ [ts16.SyntaxKind.GreaterThanToken, literalBinaryOp((a, b) => a > b)],
1287
+ [ts16.SyntaxKind.GreaterThanEqualsToken, literalBinaryOp((a, b) => a >= b)],
1288
+ [ts16.SyntaxKind.EqualsEqualsToken, literalBinaryOp((a, b) => a == b)],
1289
+ [ts16.SyntaxKind.EqualsEqualsEqualsToken, literalBinaryOp((a, b) => a === b)],
1290
+ [ts16.SyntaxKind.ExclamationEqualsToken, literalBinaryOp((a, b) => a != b)],
1291
+ [ts16.SyntaxKind.ExclamationEqualsEqualsToken, literalBinaryOp((a, b) => a !== b)],
1292
+ [ts16.SyntaxKind.LessThanLessThanToken, literalBinaryOp((a, b) => a << b)],
1293
+ [ts16.SyntaxKind.GreaterThanGreaterThanToken, literalBinaryOp((a, b) => a >> b)],
1294
+ [ts16.SyntaxKind.GreaterThanGreaterThanGreaterThanToken, literalBinaryOp((a, b) => a >>> b)],
1295
+ [ts16.SyntaxKind.AsteriskAsteriskToken, literalBinaryOp((a, b) => Math.pow(a, b))],
1296
+ [ts16.SyntaxKind.AmpersandAmpersandToken, referenceBinaryOp((a, b) => a && b)],
1297
+ [ts16.SyntaxKind.BarBarToken, referenceBinaryOp((a, b) => a || b)]
1298
+ ]);
1299
+ var UNARY_OPERATORS = new Map([
1300
+ [ts16.SyntaxKind.TildeToken, (a) => ~a],
1301
+ [ts16.SyntaxKind.MinusToken, (a) => -a],
1302
+ [ts16.SyntaxKind.PlusToken, (a) => +a],
1303
+ [ts16.SyntaxKind.ExclamationToken, (a) => !a]
1304
+ ]);
1305
+ var StaticInterpreter = class {
1306
+ constructor(host, checker, dependencyTracker) {
1307
+ this.host = host;
1308
+ this.checker = checker;
1309
+ this.dependencyTracker = dependencyTracker;
1310
+ }
1311
+ visit(node, context) {
1312
+ return this.visitExpression(node, context);
1313
+ }
1314
+ visitExpression(node, context) {
1315
+ let result;
1316
+ if (node.kind === ts16.SyntaxKind.TrueKeyword) {
1317
+ return true;
1318
+ } else if (node.kind === ts16.SyntaxKind.FalseKeyword) {
1319
+ return false;
1320
+ } else if (node.kind === ts16.SyntaxKind.NullKeyword) {
1321
+ return null;
1322
+ } else if (ts16.isStringLiteral(node)) {
1323
+ return node.text;
1324
+ } else if (ts16.isNoSubstitutionTemplateLiteral(node)) {
1325
+ return node.text;
1326
+ } else if (ts16.isTemplateExpression(node)) {
1327
+ result = this.visitTemplateExpression(node, context);
1328
+ } else if (ts16.isNumericLiteral(node)) {
1329
+ return parseFloat(node.text);
1330
+ } else if (ts16.isObjectLiteralExpression(node)) {
1331
+ result = this.visitObjectLiteralExpression(node, context);
1332
+ } else if (ts16.isIdentifier(node)) {
1333
+ result = this.visitIdentifier(node, context);
1334
+ } else if (ts16.isPropertyAccessExpression(node)) {
1335
+ result = this.visitPropertyAccessExpression(node, context);
1336
+ } else if (ts16.isCallExpression(node)) {
1337
+ result = this.visitCallExpression(node, context);
1338
+ } else if (ts16.isConditionalExpression(node)) {
1339
+ result = this.visitConditionalExpression(node, context);
1340
+ } else if (ts16.isPrefixUnaryExpression(node)) {
1341
+ result = this.visitPrefixUnaryExpression(node, context);
1342
+ } else if (ts16.isBinaryExpression(node)) {
1343
+ result = this.visitBinaryExpression(node, context);
1344
+ } else if (ts16.isArrayLiteralExpression(node)) {
1345
+ result = this.visitArrayLiteralExpression(node, context);
1346
+ } else if (ts16.isParenthesizedExpression(node)) {
1347
+ result = this.visitParenthesizedExpression(node, context);
1348
+ } else if (ts16.isElementAccessExpression(node)) {
1349
+ result = this.visitElementAccessExpression(node, context);
1350
+ } else if (ts16.isAsExpression(node)) {
1351
+ result = this.visitExpression(node.expression, context);
1352
+ } else if (ts16.isNonNullExpression(node)) {
1353
+ result = this.visitExpression(node.expression, context);
1354
+ } else if (this.host.isClass(node)) {
1355
+ result = this.visitDeclaration(node, context);
1356
+ } else {
1357
+ return DynamicValue.fromUnsupportedSyntax(node);
1358
+ }
1359
+ if (result instanceof DynamicValue && result.node !== node) {
1360
+ return DynamicValue.fromDynamicInput(node, result);
1361
+ }
1362
+ return result;
1363
+ }
1364
+ visitArrayLiteralExpression(node, context) {
1365
+ const array = [];
1366
+ for (let i = 0; i < node.elements.length; i++) {
1367
+ const element = node.elements[i];
1368
+ if (ts16.isSpreadElement(element)) {
1369
+ array.push(...this.visitSpreadElement(element, context));
1370
+ } else {
1371
+ array.push(this.visitExpression(element, context));
1372
+ }
1373
+ }
1374
+ return array;
1375
+ }
1376
+ visitObjectLiteralExpression(node, context) {
1377
+ const map = new Map();
1378
+ for (let i = 0; i < node.properties.length; i++) {
1379
+ const property = node.properties[i];
1380
+ if (ts16.isPropertyAssignment(property)) {
1381
+ const name = this.stringNameFromPropertyName(property.name, context);
1382
+ if (name === void 0) {
1383
+ return DynamicValue.fromDynamicInput(node, DynamicValue.fromDynamicString(property.name));
1384
+ }
1385
+ map.set(name, this.visitExpression(property.initializer, context));
1386
+ } else if (ts16.isShorthandPropertyAssignment(property)) {
1387
+ const symbol = this.checker.getShorthandAssignmentValueSymbol(property);
1388
+ if (symbol === void 0 || symbol.valueDeclaration === void 0) {
1389
+ map.set(property.name.text, DynamicValue.fromUnknown(property));
1390
+ } else {
1391
+ map.set(property.name.text, this.visitDeclaration(symbol.valueDeclaration, context));
1392
+ }
1393
+ } else if (ts16.isSpreadAssignment(property)) {
1394
+ const spread = this.visitExpression(property.expression, context);
1395
+ if (spread instanceof DynamicValue) {
1396
+ return DynamicValue.fromDynamicInput(node, spread);
1397
+ } else if (spread instanceof Map) {
1398
+ spread.forEach((value, key) => map.set(key, value));
1399
+ } else if (spread instanceof ResolvedModule) {
1400
+ spread.getExports().forEach((value, key) => map.set(key, value));
1401
+ } else {
1402
+ return DynamicValue.fromDynamicInput(node, DynamicValue.fromInvalidExpressionType(property, spread));
1403
+ }
1404
+ } else {
1405
+ return DynamicValue.fromUnknown(node);
1406
+ }
1407
+ }
1408
+ return map;
1409
+ }
1410
+ visitTemplateExpression(node, context) {
1411
+ const pieces = [node.head.text];
1412
+ for (let i = 0; i < node.templateSpans.length; i++) {
1413
+ const span = node.templateSpans[i];
1414
+ const value = literal(this.visit(span.expression, context), () => DynamicValue.fromDynamicString(span.expression));
1415
+ if (value instanceof DynamicValue) {
1416
+ return DynamicValue.fromDynamicInput(node, value);
1417
+ }
1418
+ pieces.push(`${value}`, span.literal.text);
1419
+ }
1420
+ return pieces.join("");
1421
+ }
1422
+ visitIdentifier(node, context) {
1423
+ const decl = this.host.getDeclarationOfIdentifier(node);
1424
+ if (decl === null) {
1425
+ if (node.originalKeywordKind === ts16.SyntaxKind.UndefinedKeyword) {
1426
+ return void 0;
1427
+ } else {
1428
+ if (this.dependencyTracker !== null && this.host.getImportOfIdentifier(node) !== null) {
1429
+ this.dependencyTracker.recordDependencyAnalysisFailure(context.originatingFile);
1430
+ }
1431
+ return DynamicValue.fromUnknownIdentifier(node);
1432
+ }
1433
+ }
1434
+ if (decl.known !== null) {
1435
+ return resolveKnownDeclaration(decl.known);
1436
+ } else if (isConcreteDeclaration(decl) && decl.identity !== null && decl.identity.kind === 0) {
1437
+ return this.getResolvedEnum(decl.node, decl.identity.enumMembers, context);
1438
+ }
1439
+ const declContext = __spreadValues(__spreadValues({}, context), joinModuleContext(context, node, decl));
1440
+ const result = this.visitAmbiguousDeclaration(decl, declContext);
1441
+ if (result instanceof Reference) {
1442
+ if (!result.synthetic) {
1443
+ result.addIdentifier(node);
1444
+ }
1445
+ } else if (result instanceof DynamicValue) {
1446
+ return DynamicValue.fromDynamicInput(node, result);
1447
+ }
1448
+ return result;
1449
+ }
1450
+ visitDeclaration(node, context) {
1451
+ if (this.dependencyTracker !== null) {
1452
+ this.dependencyTracker.addDependency(context.originatingFile, node.getSourceFile());
1453
+ }
1454
+ if (this.host.isClass(node)) {
1455
+ return this.getReference(node, context);
1456
+ } else if (ts16.isVariableDeclaration(node)) {
1457
+ return this.visitVariableDeclaration(node, context);
1458
+ } else if (ts16.isParameter(node) && context.scope.has(node)) {
1459
+ return context.scope.get(node);
1460
+ } else if (ts16.isExportAssignment(node)) {
1461
+ return this.visitExpression(node.expression, context);
1462
+ } else if (ts16.isEnumDeclaration(node)) {
1463
+ return this.visitEnumDeclaration(node, context);
1464
+ } else if (ts16.isSourceFile(node)) {
1465
+ return this.visitSourceFile(node, context);
1466
+ } else if (ts16.isBindingElement(node)) {
1467
+ return this.visitBindingElement(node, context);
1468
+ } else {
1469
+ return this.getReference(node, context);
1470
+ }
1471
+ }
1472
+ visitVariableDeclaration(node, context) {
1473
+ const value = this.host.getVariableValue(node);
1474
+ if (value !== null) {
1475
+ return this.visitExpression(value, context);
1476
+ } else if (isVariableDeclarationDeclared(node)) {
1477
+ if (node.type !== void 0) {
1478
+ const evaluatedType = this.visitType(node.type, context);
1479
+ if (!(evaluatedType instanceof DynamicValue)) {
1480
+ return evaluatedType;
1481
+ }
1482
+ }
1483
+ return this.getReference(node, context);
1484
+ } else {
1485
+ return void 0;
1486
+ }
1487
+ }
1488
+ visitEnumDeclaration(node, context) {
1489
+ const enumRef = this.getReference(node, context);
1490
+ const map = new Map();
1491
+ node.members.forEach((member) => {
1492
+ const name = this.stringNameFromPropertyName(member.name, context);
1493
+ if (name !== void 0) {
1494
+ const resolved = member.initializer && this.visit(member.initializer, context);
1495
+ map.set(name, new EnumValue(enumRef, name, resolved));
1496
+ }
1497
+ });
1498
+ return map;
1499
+ }
1500
+ visitElementAccessExpression(node, context) {
1501
+ const lhs = this.visitExpression(node.expression, context);
1502
+ if (lhs instanceof DynamicValue) {
1503
+ return DynamicValue.fromDynamicInput(node, lhs);
1504
+ }
1505
+ const rhs = this.visitExpression(node.argumentExpression, context);
1506
+ if (rhs instanceof DynamicValue) {
1507
+ return DynamicValue.fromDynamicInput(node, rhs);
1508
+ }
1509
+ if (typeof rhs !== "string" && typeof rhs !== "number") {
1510
+ return DynamicValue.fromInvalidExpressionType(node, rhs);
1511
+ }
1512
+ return this.accessHelper(node, lhs, rhs, context);
1513
+ }
1514
+ visitPropertyAccessExpression(node, context) {
1515
+ const lhs = this.visitExpression(node.expression, context);
1516
+ const rhs = node.name.text;
1517
+ if (lhs instanceof DynamicValue) {
1518
+ return DynamicValue.fromDynamicInput(node, lhs);
1519
+ }
1520
+ return this.accessHelper(node, lhs, rhs, context);
1521
+ }
1522
+ visitSourceFile(node, context) {
1523
+ const declarations = this.host.getExportsOfModule(node);
1524
+ if (declarations === null) {
1525
+ return DynamicValue.fromUnknown(node);
1526
+ }
1527
+ return new ResolvedModule(declarations, (decl) => {
1528
+ if (decl.known !== null) {
1529
+ return resolveKnownDeclaration(decl.known);
1530
+ }
1531
+ const declContext = __spreadValues(__spreadValues({}, context), joinModuleContext(context, node, decl));
1532
+ return this.visitAmbiguousDeclaration(decl, declContext);
1533
+ });
1534
+ }
1535
+ visitAmbiguousDeclaration(decl, declContext) {
1536
+ return decl.kind === 1 && decl.implementation !== void 0 && !isDeclaration(decl.implementation) ? this.visitExpression(decl.implementation, declContext) : this.visitDeclaration(decl.node, declContext);
1537
+ }
1538
+ accessHelper(node, lhs, rhs, context) {
1539
+ const strIndex = `${rhs}`;
1540
+ if (lhs instanceof Map) {
1541
+ if (lhs.has(strIndex)) {
1542
+ return lhs.get(strIndex);
1543
+ } else {
1544
+ return void 0;
1545
+ }
1546
+ } else if (lhs instanceof ResolvedModule) {
1547
+ return lhs.getExport(strIndex);
1548
+ } else if (Array.isArray(lhs)) {
1549
+ if (rhs === "length") {
1550
+ return lhs.length;
1551
+ } else if (rhs === "slice") {
1552
+ return new ArraySliceBuiltinFn(lhs);
1553
+ } else if (rhs === "concat") {
1554
+ return new ArrayConcatBuiltinFn(lhs);
1555
+ }
1556
+ if (typeof rhs !== "number" || !Number.isInteger(rhs)) {
1557
+ return DynamicValue.fromInvalidExpressionType(node, rhs);
1558
+ }
1559
+ return lhs[rhs];
1560
+ } else if (lhs instanceof Reference) {
1561
+ const ref = lhs.node;
1562
+ if (this.host.isClass(ref)) {
1563
+ const module2 = owningModule(context, lhs.bestGuessOwningModule);
1564
+ let value = void 0;
1565
+ const member = this.host.getMembersOfClass(ref).find((member2) => member2.isStatic && member2.name === strIndex);
1566
+ if (member !== void 0) {
1567
+ if (member.value !== null) {
1568
+ value = this.visitExpression(member.value, context);
1569
+ } else if (member.implementation !== null) {
1570
+ value = new Reference(member.implementation, module2);
1571
+ } else if (member.node) {
1572
+ value = new Reference(member.node, module2);
1573
+ }
1574
+ }
1575
+ return value;
1576
+ } else if (isDeclaration(ref)) {
1577
+ return DynamicValue.fromDynamicInput(node, DynamicValue.fromExternalReference(ref, lhs));
1578
+ }
1579
+ } else if (lhs instanceof DynamicValue) {
1580
+ return DynamicValue.fromDynamicInput(node, lhs);
1581
+ }
1582
+ return DynamicValue.fromUnknown(node);
1583
+ }
1584
+ visitCallExpression(node, context) {
1585
+ const lhs = this.visitExpression(node.expression, context);
1586
+ if (lhs instanceof DynamicValue) {
1587
+ return DynamicValue.fromDynamicInput(node, lhs);
1588
+ }
1589
+ if (lhs instanceof KnownFn) {
1590
+ return lhs.evaluate(node, this.evaluateFunctionArguments(node, context));
1591
+ }
1592
+ if (!(lhs instanceof Reference)) {
1593
+ return DynamicValue.fromInvalidExpressionType(node.expression, lhs);
1594
+ }
1595
+ const fn = this.host.getDefinitionOfFunction(lhs.node);
1596
+ if (fn === null) {
1597
+ return DynamicValue.fromInvalidExpressionType(node.expression, lhs);
1598
+ }
1599
+ if (!isFunctionOrMethodReference(lhs)) {
1600
+ return DynamicValue.fromInvalidExpressionType(node.expression, lhs);
1601
+ }
1602
+ if (fn.body === null) {
1603
+ let expr = null;
1604
+ if (context.foreignFunctionResolver) {
1605
+ expr = context.foreignFunctionResolver(lhs, node.arguments);
1606
+ }
1607
+ if (expr === null) {
1608
+ return DynamicValue.fromDynamicInput(node, DynamicValue.fromExternalReference(node.expression, lhs));
1609
+ }
1610
+ if (expr.getSourceFile() !== node.expression.getSourceFile() && lhs.bestGuessOwningModule !== null) {
1611
+ context = __spreadProps(__spreadValues({}, context), {
1612
+ absoluteModuleName: lhs.bestGuessOwningModule.specifier,
1613
+ resolutionContext: lhs.bestGuessOwningModule.resolutionContext
1614
+ });
1615
+ }
1616
+ return this.visitFfrExpression(expr, context);
1617
+ }
1618
+ let res = this.visitFunctionBody(node, fn, context);
1619
+ if (res instanceof DynamicValue && context.foreignFunctionResolver !== void 0) {
1620
+ const ffrExpr = context.foreignFunctionResolver(lhs, node.arguments);
1621
+ if (ffrExpr !== null) {
1622
+ const ffrRes = this.visitFfrExpression(ffrExpr, context);
1623
+ if (!(ffrRes instanceof DynamicValue)) {
1624
+ res = ffrRes;
1625
+ }
1626
+ }
1627
+ }
1628
+ return res;
1629
+ }
1630
+ visitFfrExpression(expr, context) {
1631
+ const res = this.visitExpression(expr, context);
1632
+ if (res instanceof Reference) {
1633
+ res.synthetic = true;
1634
+ }
1635
+ return res;
1636
+ }
1637
+ visitFunctionBody(node, fn, context) {
1638
+ if (fn.body === null) {
1639
+ return DynamicValue.fromUnknown(node);
1640
+ } else if (fn.body.length !== 1 || !ts16.isReturnStatement(fn.body[0])) {
1641
+ return DynamicValue.fromComplexFunctionCall(node, fn);
1642
+ }
1643
+ const ret = fn.body[0];
1644
+ const args = this.evaluateFunctionArguments(node, context);
1645
+ const newScope = new Map();
1646
+ const calleeContext = __spreadProps(__spreadValues({}, context), { scope: newScope });
1647
+ fn.parameters.forEach((param, index) => {
1648
+ let arg = args[index];
1649
+ if (param.node.dotDotDotToken !== void 0) {
1650
+ arg = args.slice(index);
1651
+ }
1652
+ if (arg === void 0 && param.initializer !== null) {
1653
+ arg = this.visitExpression(param.initializer, calleeContext);
1654
+ }
1655
+ newScope.set(param.node, arg);
1656
+ });
1657
+ return ret.expression !== void 0 ? this.visitExpression(ret.expression, calleeContext) : void 0;
1658
+ }
1659
+ visitConditionalExpression(node, context) {
1660
+ const condition = this.visitExpression(node.condition, context);
1661
+ if (condition instanceof DynamicValue) {
1662
+ return DynamicValue.fromDynamicInput(node, condition);
1663
+ }
1664
+ if (condition) {
1665
+ return this.visitExpression(node.whenTrue, context);
1666
+ } else {
1667
+ return this.visitExpression(node.whenFalse, context);
1668
+ }
1669
+ }
1670
+ visitPrefixUnaryExpression(node, context) {
1671
+ const operatorKind = node.operator;
1672
+ if (!UNARY_OPERATORS.has(operatorKind)) {
1673
+ return DynamicValue.fromUnsupportedSyntax(node);
1674
+ }
1675
+ const op = UNARY_OPERATORS.get(operatorKind);
1676
+ const value = this.visitExpression(node.operand, context);
1677
+ if (value instanceof DynamicValue) {
1678
+ return DynamicValue.fromDynamicInput(node, value);
1679
+ } else {
1680
+ return op(value);
1681
+ }
1682
+ }
1683
+ visitBinaryExpression(node, context) {
1684
+ const tokenKind = node.operatorToken.kind;
1685
+ if (!BINARY_OPERATORS.has(tokenKind)) {
1686
+ return DynamicValue.fromUnsupportedSyntax(node);
1687
+ }
1688
+ const opRecord = BINARY_OPERATORS.get(tokenKind);
1689
+ let lhs, rhs;
1690
+ if (opRecord.literal) {
1691
+ lhs = literal(this.visitExpression(node.left, context), (value) => DynamicValue.fromInvalidExpressionType(node.left, value));
1692
+ rhs = literal(this.visitExpression(node.right, context), (value) => DynamicValue.fromInvalidExpressionType(node.right, value));
1693
+ } else {
1694
+ lhs = this.visitExpression(node.left, context);
1695
+ rhs = this.visitExpression(node.right, context);
1696
+ }
1697
+ if (lhs instanceof DynamicValue) {
1698
+ return DynamicValue.fromDynamicInput(node, lhs);
1699
+ } else if (rhs instanceof DynamicValue) {
1700
+ return DynamicValue.fromDynamicInput(node, rhs);
1701
+ } else {
1702
+ return opRecord.op(lhs, rhs);
1703
+ }
1704
+ }
1705
+ visitParenthesizedExpression(node, context) {
1706
+ return this.visitExpression(node.expression, context);
1707
+ }
1708
+ evaluateFunctionArguments(node, context) {
1709
+ const args = [];
1710
+ for (const arg of node.arguments) {
1711
+ if (ts16.isSpreadElement(arg)) {
1712
+ args.push(...this.visitSpreadElement(arg, context));
1713
+ } else {
1714
+ args.push(this.visitExpression(arg, context));
1715
+ }
1716
+ }
1717
+ return args;
1718
+ }
1719
+ visitSpreadElement(node, context) {
1720
+ const spread = this.visitExpression(node.expression, context);
1721
+ if (spread instanceof DynamicValue) {
1722
+ return [DynamicValue.fromDynamicInput(node, spread)];
1723
+ } else if (!Array.isArray(spread)) {
1724
+ return [DynamicValue.fromInvalidExpressionType(node, spread)];
1725
+ } else {
1726
+ return spread;
1727
+ }
1728
+ }
1729
+ visitBindingElement(node, context) {
1730
+ const path = [];
1731
+ let closestDeclaration = node;
1732
+ while (ts16.isBindingElement(closestDeclaration) || ts16.isArrayBindingPattern(closestDeclaration) || ts16.isObjectBindingPattern(closestDeclaration)) {
1733
+ if (ts16.isBindingElement(closestDeclaration)) {
1734
+ path.unshift(closestDeclaration);
1735
+ }
1736
+ closestDeclaration = closestDeclaration.parent;
1737
+ }
1738
+ if (!ts16.isVariableDeclaration(closestDeclaration) || closestDeclaration.initializer === void 0) {
1739
+ return DynamicValue.fromUnknown(node);
1740
+ }
1741
+ let value = this.visit(closestDeclaration.initializer, context);
1742
+ for (const element of path) {
1743
+ let key;
1744
+ if (ts16.isArrayBindingPattern(element.parent)) {
1745
+ key = element.parent.elements.indexOf(element);
1746
+ } else {
1747
+ const name = element.propertyName || element.name;
1748
+ if (ts16.isIdentifier(name)) {
1749
+ key = name.text;
1750
+ } else {
1751
+ return DynamicValue.fromUnknown(element);
1752
+ }
1753
+ }
1754
+ value = this.accessHelper(element, value, key, context);
1755
+ if (value instanceof DynamicValue) {
1756
+ return value;
1757
+ }
1758
+ }
1759
+ return value;
1760
+ }
1761
+ stringNameFromPropertyName(node, context) {
1762
+ if (ts16.isIdentifier(node) || ts16.isStringLiteral(node) || ts16.isNumericLiteral(node)) {
1763
+ return node.text;
1764
+ } else if (ts16.isComputedPropertyName(node)) {
1765
+ const literal2 = this.visitExpression(node.expression, context);
1766
+ return typeof literal2 === "string" ? literal2 : void 0;
1767
+ } else {
1768
+ return void 0;
1769
+ }
1770
+ }
1771
+ getResolvedEnum(node, enumMembers, context) {
1772
+ const enumRef = this.getReference(node, context);
1773
+ const map = new Map();
1774
+ enumMembers.forEach((member) => {
1775
+ const name = this.stringNameFromPropertyName(member.name, context);
1776
+ if (name !== void 0) {
1777
+ const resolved = this.visit(member.initializer, context);
1778
+ map.set(name, new EnumValue(enumRef, name, resolved));
1779
+ }
1780
+ });
1781
+ return map;
1782
+ }
1783
+ getReference(node, context) {
1784
+ return new Reference(node, owningModule(context));
1785
+ }
1786
+ visitType(node, context) {
1787
+ if (ts16.isLiteralTypeNode(node)) {
1788
+ return this.visitExpression(node.literal, context);
1789
+ } else if (ts16.isTupleTypeNode(node)) {
1790
+ return this.visitTupleType(node, context);
1791
+ } else if (ts16.isNamedTupleMember(node)) {
1792
+ return this.visitType(node.type, context);
1793
+ }
1794
+ return DynamicValue.fromDynamicType(node);
1795
+ }
1796
+ visitTupleType(node, context) {
1797
+ const res = [];
1798
+ for (const elem of node.elements) {
1799
+ res.push(this.visitType(elem, context));
1800
+ }
1801
+ return res;
1802
+ }
1803
+ };
1804
+ function isFunctionOrMethodReference(ref) {
1805
+ return ts16.isFunctionDeclaration(ref.node) || ts16.isMethodDeclaration(ref.node) || ts16.isFunctionExpression(ref.node);
1806
+ }
1807
+ function literal(value, reject) {
1808
+ if (value instanceof EnumValue) {
1809
+ value = value.resolved;
1810
+ }
1811
+ if (value instanceof DynamicValue || value === null || value === void 0 || typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
1812
+ return value;
1813
+ }
1814
+ return reject(value);
1815
+ }
1816
+ function isVariableDeclarationDeclared(node) {
1817
+ if (node.parent === void 0 || !ts16.isVariableDeclarationList(node.parent)) {
1818
+ return false;
1819
+ }
1820
+ const declList = node.parent;
1821
+ if (declList.parent === void 0 || !ts16.isVariableStatement(declList.parent)) {
1822
+ return false;
1823
+ }
1824
+ const varStmt = declList.parent;
1825
+ return varStmt.modifiers !== void 0 && varStmt.modifiers.some((mod) => mod.kind === ts16.SyntaxKind.DeclareKeyword);
1826
+ }
1827
+ var EMPTY = {};
1828
+ function joinModuleContext(existing, node, decl) {
1829
+ if (decl.viaModule !== null && decl.viaModule !== existing.absoluteModuleName) {
1830
+ return {
1831
+ absoluteModuleName: decl.viaModule,
1832
+ resolutionContext: node.getSourceFile().fileName
1833
+ };
1834
+ } else {
1835
+ return EMPTY;
1836
+ }
1837
+ }
1838
+ function owningModule(context, override = null) {
1839
+ let specifier = context.absoluteModuleName;
1840
+ if (override !== null) {
1841
+ specifier = override.specifier;
1842
+ }
1843
+ if (specifier !== null) {
1844
+ return {
1845
+ specifier,
1846
+ resolutionContext: context.resolutionContext
1847
+ };
1848
+ } else {
1849
+ return null;
1850
+ }
1851
+ }
1852
+
1853
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
1854
+ var PartialEvaluator = class {
1855
+ constructor(host, checker, dependencyTracker) {
1856
+ this.host = host;
1857
+ this.checker = checker;
1858
+ this.dependencyTracker = dependencyTracker;
1859
+ }
1860
+ evaluate(expr, foreignFunctionResolver) {
1861
+ const interpreter = new StaticInterpreter(this.host, this.checker, this.dependencyTracker);
1862
+ const sourceFile = expr.getSourceFile();
1863
+ return interpreter.visit(expr, {
1864
+ originatingFile: sourceFile,
1865
+ absoluteModuleName: null,
1866
+ resolutionContext: sourceFile.fileName,
1867
+ scope: new Map(),
1868
+ foreignFunctionResolver
1869
+ });
1870
+ }
1871
+ };
1872
+
1873
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/api.mjs
1874
+ var PerfPhase;
1875
+ (function(PerfPhase2) {
1876
+ PerfPhase2[PerfPhase2["Unaccounted"] = 0] = "Unaccounted";
1877
+ PerfPhase2[PerfPhase2["Setup"] = 1] = "Setup";
1878
+ PerfPhase2[PerfPhase2["TypeScriptProgramCreate"] = 2] = "TypeScriptProgramCreate";
1879
+ PerfPhase2[PerfPhase2["Reconciliation"] = 3] = "Reconciliation";
1880
+ PerfPhase2[PerfPhase2["ResourceUpdate"] = 4] = "ResourceUpdate";
1881
+ PerfPhase2[PerfPhase2["TypeScriptDiagnostics"] = 5] = "TypeScriptDiagnostics";
1882
+ PerfPhase2[PerfPhase2["Analysis"] = 6] = "Analysis";
1883
+ PerfPhase2[PerfPhase2["Resolve"] = 7] = "Resolve";
1884
+ PerfPhase2[PerfPhase2["CycleDetection"] = 8] = "CycleDetection";
1885
+ PerfPhase2[PerfPhase2["TcbGeneration"] = 9] = "TcbGeneration";
1886
+ PerfPhase2[PerfPhase2["TcbUpdateProgram"] = 10] = "TcbUpdateProgram";
1887
+ PerfPhase2[PerfPhase2["TypeScriptEmit"] = 11] = "TypeScriptEmit";
1888
+ PerfPhase2[PerfPhase2["Compile"] = 12] = "Compile";
1889
+ PerfPhase2[PerfPhase2["TtcAutocompletion"] = 13] = "TtcAutocompletion";
1890
+ PerfPhase2[PerfPhase2["TtcDiagnostics"] = 14] = "TtcDiagnostics";
1891
+ PerfPhase2[PerfPhase2["TtcSymbol"] = 15] = "TtcSymbol";
1892
+ PerfPhase2[PerfPhase2["LsReferencesAndRenames"] = 16] = "LsReferencesAndRenames";
1893
+ PerfPhase2[PerfPhase2["LsQuickInfo"] = 17] = "LsQuickInfo";
1894
+ PerfPhase2[PerfPhase2["LsDefinition"] = 18] = "LsDefinition";
1895
+ PerfPhase2[PerfPhase2["LsCompletions"] = 19] = "LsCompletions";
1896
+ PerfPhase2[PerfPhase2["LsTcb"] = 20] = "LsTcb";
1897
+ PerfPhase2[PerfPhase2["LsDiagnostics"] = 21] = "LsDiagnostics";
1898
+ PerfPhase2[PerfPhase2["LsComponentLocations"] = 22] = "LsComponentLocations";
1899
+ PerfPhase2[PerfPhase2["LsSignatureHelp"] = 23] = "LsSignatureHelp";
1900
+ PerfPhase2[PerfPhase2["LAST"] = 24] = "LAST";
1901
+ })(PerfPhase || (PerfPhase = {}));
1902
+ var PerfEvent;
1903
+ (function(PerfEvent2) {
1904
+ PerfEvent2[PerfEvent2["InputDtsFile"] = 0] = "InputDtsFile";
1905
+ PerfEvent2[PerfEvent2["InputTsFile"] = 1] = "InputTsFile";
1906
+ PerfEvent2[PerfEvent2["AnalyzeComponent"] = 2] = "AnalyzeComponent";
1907
+ PerfEvent2[PerfEvent2["AnalyzeDirective"] = 3] = "AnalyzeDirective";
1908
+ PerfEvent2[PerfEvent2["AnalyzeInjectable"] = 4] = "AnalyzeInjectable";
1909
+ PerfEvent2[PerfEvent2["AnalyzeNgModule"] = 5] = "AnalyzeNgModule";
1910
+ PerfEvent2[PerfEvent2["AnalyzePipe"] = 6] = "AnalyzePipe";
1911
+ PerfEvent2[PerfEvent2["TraitAnalyze"] = 7] = "TraitAnalyze";
1912
+ PerfEvent2[PerfEvent2["TraitReuseAnalysis"] = 8] = "TraitReuseAnalysis";
1913
+ PerfEvent2[PerfEvent2["SourceFilePhysicalChange"] = 9] = "SourceFilePhysicalChange";
1914
+ PerfEvent2[PerfEvent2["SourceFileLogicalChange"] = 10] = "SourceFileLogicalChange";
1915
+ PerfEvent2[PerfEvent2["SourceFileReuseAnalysis"] = 11] = "SourceFileReuseAnalysis";
1916
+ PerfEvent2[PerfEvent2["GenerateTcb"] = 12] = "GenerateTcb";
1917
+ PerfEvent2[PerfEvent2["SkipGenerateTcbNoInline"] = 13] = "SkipGenerateTcbNoInline";
1918
+ PerfEvent2[PerfEvent2["ReuseTypeCheckFile"] = 14] = "ReuseTypeCheckFile";
1919
+ PerfEvent2[PerfEvent2["UpdateTypeCheckProgram"] = 15] = "UpdateTypeCheckProgram";
1920
+ PerfEvent2[PerfEvent2["EmitSkipSourceFile"] = 16] = "EmitSkipSourceFile";
1921
+ PerfEvent2[PerfEvent2["EmitSourceFile"] = 17] = "EmitSourceFile";
1922
+ PerfEvent2[PerfEvent2["LAST"] = 18] = "LAST";
1923
+ })(PerfEvent || (PerfEvent = {}));
1924
+ var PerfCheckpoint;
1925
+ (function(PerfCheckpoint2) {
1926
+ PerfCheckpoint2[PerfCheckpoint2["Initial"] = 0] = "Initial";
1927
+ PerfCheckpoint2[PerfCheckpoint2["TypeScriptProgramCreate"] = 1] = "TypeScriptProgramCreate";
1928
+ PerfCheckpoint2[PerfCheckpoint2["PreAnalysis"] = 2] = "PreAnalysis";
1929
+ PerfCheckpoint2[PerfCheckpoint2["Analysis"] = 3] = "Analysis";
1930
+ PerfCheckpoint2[PerfCheckpoint2["Resolve"] = 4] = "Resolve";
1931
+ PerfCheckpoint2[PerfCheckpoint2["TtcGeneration"] = 5] = "TtcGeneration";
1932
+ PerfCheckpoint2[PerfCheckpoint2["TtcUpdateProgram"] = 6] = "TtcUpdateProgram";
1933
+ PerfCheckpoint2[PerfCheckpoint2["PreEmit"] = 7] = "PreEmit";
1934
+ PerfCheckpoint2[PerfCheckpoint2["Emit"] = 8] = "Emit";
1935
+ PerfCheckpoint2[PerfCheckpoint2["LAST"] = 9] = "LAST";
1936
+ })(PerfCheckpoint || (PerfCheckpoint = {}));
1937
+
1938
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/noop.mjs
1939
+ var NoopPerfRecorder = class {
1940
+ eventCount() {
1941
+ }
1942
+ memory() {
1943
+ }
1944
+ phase() {
1945
+ return PerfPhase.Unaccounted;
1946
+ }
1947
+ inPhase(phase, fn) {
1948
+ return fn();
1949
+ }
1950
+ reset() {
1951
+ }
1952
+ };
1953
+ var NOOP_PERF_RECORDER = new NoopPerfRecorder();
1954
+
1955
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
1956
+ var CompilationMode;
1957
+ (function(CompilationMode2) {
1958
+ CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
1959
+ CompilationMode2[CompilationMode2["PARTIAL"] = 1] = "PARTIAL";
1960
+ })(CompilationMode || (CompilationMode = {}));
1961
+ var HandlerPrecedence;
1962
+ (function(HandlerPrecedence2) {
1963
+ HandlerPrecedence2[HandlerPrecedence2["PRIMARY"] = 0] = "PRIMARY";
1964
+ HandlerPrecedence2[HandlerPrecedence2["SHARED"] = 1] = "SHARED";
1965
+ HandlerPrecedence2[HandlerPrecedence2["WEAK"] = 2] = "WEAK";
1966
+ })(HandlerPrecedence || (HandlerPrecedence = {}));
1967
+ var HandlerFlags;
1968
+ (function(HandlerFlags2) {
1969
+ HandlerFlags2[HandlerFlags2["NONE"] = 0] = "NONE";
1970
+ HandlerFlags2[HandlerFlags2["FULL_INHERITANCE"] = 1] = "FULL_INHERITANCE";
1971
+ })(HandlerFlags || (HandlerFlags = {}));
1972
+
1973
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
1974
+ import ts17 from "typescript";
1975
+
1976
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
1977
+ import ts18 from "typescript";
1978
+
1979
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
1980
+ var TraitState;
1981
+ (function(TraitState2) {
1982
+ TraitState2[TraitState2["Pending"] = 0] = "Pending";
1983
+ TraitState2[TraitState2["Analyzed"] = 1] = "Analyzed";
1984
+ TraitState2[TraitState2["Resolved"] = 2] = "Resolved";
1985
+ TraitState2[TraitState2["Skipped"] = 3] = "Skipped";
1986
+ })(TraitState || (TraitState = {}));
1987
+
1988
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
1989
+ import ts23 from "typescript";
1990
+
1991
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
1992
+ import ts19 from "typescript";
1993
+
1994
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
1995
+ import {
1996
+ BinaryOperator,
1997
+ ConditionalExpr,
1998
+ StmtModifier,
1999
+ UnaryOperator
2000
+ } from "@angular/compiler";
2001
+ var UNARY_OPERATORS2 = new Map([
2002
+ [UnaryOperator.Minus, "-"],
2003
+ [UnaryOperator.Plus, "+"]
2004
+ ]);
2005
+ var BINARY_OPERATORS2 = new Map([
2006
+ [BinaryOperator.And, "&&"],
2007
+ [BinaryOperator.Bigger, ">"],
2008
+ [BinaryOperator.BiggerEquals, ">="],
2009
+ [BinaryOperator.BitwiseAnd, "&"],
2010
+ [BinaryOperator.Divide, "/"],
2011
+ [BinaryOperator.Equals, "=="],
2012
+ [BinaryOperator.Identical, "==="],
2013
+ [BinaryOperator.Lower, "<"],
2014
+ [BinaryOperator.LowerEquals, "<="],
2015
+ [BinaryOperator.Minus, "-"],
2016
+ [BinaryOperator.Modulo, "%"],
2017
+ [BinaryOperator.Multiply, "*"],
2018
+ [BinaryOperator.NotEquals, "!="],
2019
+ [BinaryOperator.NotIdentical, "!=="],
2020
+ [BinaryOperator.Or, "||"],
2021
+ [BinaryOperator.Plus, "+"],
2022
+ [BinaryOperator.NullishCoalesce, "??"]
2023
+ ]);
2024
+
2025
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2026
+ import {
2027
+ BuiltinTypeName
2028
+ } from "@angular/compiler";
2029
+ import ts20 from "typescript";
2030
+
2031
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
2032
+ import ts21 from "typescript";
2033
+ var PureAnnotation;
2034
+ (function(PureAnnotation2) {
2035
+ PureAnnotation2["CLOSURE"] = "* @pureOrBreakMyCode ";
2036
+ PureAnnotation2["TERSER"] = "@__PURE__";
2037
+ })(PureAnnotation || (PureAnnotation = {}));
2038
+ var UNARY_OPERATORS3 = {
2039
+ "+": ts21.SyntaxKind.PlusToken,
2040
+ "-": ts21.SyntaxKind.MinusToken,
2041
+ "!": ts21.SyntaxKind.ExclamationToken
2042
+ };
2043
+ var BINARY_OPERATORS3 = {
2044
+ "&&": ts21.SyntaxKind.AmpersandAmpersandToken,
2045
+ ">": ts21.SyntaxKind.GreaterThanToken,
2046
+ ">=": ts21.SyntaxKind.GreaterThanEqualsToken,
2047
+ "&": ts21.SyntaxKind.AmpersandToken,
2048
+ "/": ts21.SyntaxKind.SlashToken,
2049
+ "==": ts21.SyntaxKind.EqualsEqualsToken,
2050
+ "===": ts21.SyntaxKind.EqualsEqualsEqualsToken,
2051
+ "<": ts21.SyntaxKind.LessThanToken,
2052
+ "<=": ts21.SyntaxKind.LessThanEqualsToken,
2053
+ "-": ts21.SyntaxKind.MinusToken,
2054
+ "%": ts21.SyntaxKind.PercentToken,
2055
+ "*": ts21.SyntaxKind.AsteriskToken,
2056
+ "!=": ts21.SyntaxKind.ExclamationEqualsToken,
2057
+ "!==": ts21.SyntaxKind.ExclamationEqualsEqualsToken,
2058
+ "||": ts21.SyntaxKind.BarBarToken,
2059
+ "+": ts21.SyntaxKind.PlusToken,
2060
+ "??": ts21.SyntaxKind.QuestionQuestionToken
2061
+ };
2062
+ var VAR_TYPES = {
2063
+ "const": ts21.NodeFlags.Const,
2064
+ "let": ts21.NodeFlags.Let,
2065
+ "var": ts21.NodeFlags.None
2066
+ };
2067
+
2068
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
2069
+ import ts22 from "typescript";
2070
+
2071
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
2072
+ import { ConstantPool } from "@angular/compiler";
2073
+ import ts25 from "typescript";
2074
+
2075
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
2076
+ import ts24 from "typescript";
2077
+
2078
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
2079
+ var NO_DECORATORS = new Set();
2080
+
2081
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/diagnostics.mjs
2082
+ import ts27 from "typescript";
2083
+
2084
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/util.mjs
2085
+ import { ExternalExpr as ExternalExpr4, LiteralExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
2086
+ import ts26 from "typescript";
2087
+ function isAngularCoreReference(reference, symbolName) {
2088
+ return reference.ownedByModuleGuess === "@angular/core" && reference.debugName === symbolName;
2089
+ }
2090
+ function unwrapExpression(node) {
2091
+ while (ts26.isAsExpression(node) || ts26.isParenthesizedExpression(node)) {
2092
+ node = node.expression;
2093
+ }
2094
+ return node;
2095
+ }
2096
+ function expandForwardRef(arg) {
2097
+ arg = unwrapExpression(arg);
2098
+ if (!ts26.isArrowFunction(arg) && !ts26.isFunctionExpression(arg)) {
2099
+ return null;
2100
+ }
2101
+ const body = arg.body;
2102
+ if (ts26.isBlock(body)) {
2103
+ if (body.statements.length !== 1) {
2104
+ return null;
2105
+ }
2106
+ const stmt = body.statements[0];
2107
+ if (!ts26.isReturnStatement(stmt) || stmt.expression === void 0) {
2108
+ return null;
2109
+ }
2110
+ return stmt.expression;
2111
+ } else {
2112
+ return body;
2113
+ }
2114
+ }
2115
+ function forwardRefResolver(ref, args) {
2116
+ if (!isAngularCoreReference(ref, "forwardRef") || args.length !== 1) {
2117
+ return null;
2118
+ }
2119
+ return expandForwardRef(args[0]);
2120
+ }
2121
+
2122
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/directive.mjs
2123
+ import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr5, FactoryTarget, getSafePropertyAccessString, makeBindingParser, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
2124
+ import ts29 from "typescript";
2125
+
2126
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/factory.mjs
2127
+ import { compileDeclareFactoryFunction, compileFactoryFunction } from "@angular/compiler";
2128
+
2129
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/metadata.mjs
2130
+ import { FunctionExpr, LiteralArrayExpr, LiteralExpr as LiteralExpr2, literalMap, ReturnStatement, WrappedNodeExpr as WrappedNodeExpr3 } from "@angular/compiler";
2131
+ import ts28 from "typescript";
2132
+
2133
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/directive.mjs
2134
+ var LIFECYCLE_HOOKS = new Set([
2135
+ "ngOnChanges",
2136
+ "ngOnInit",
2137
+ "ngOnDestroy",
2138
+ "ngDoCheck",
2139
+ "ngAfterViewInit",
2140
+ "ngAfterViewChecked",
2141
+ "ngAfterContentInit",
2142
+ "ngAfterContentChecked"
2143
+ ]);
2144
+ var QUERY_TYPES = new Set([
2145
+ "ContentChild",
2146
+ "ContentChildren",
2147
+ "ViewChild",
2148
+ "ViewChildren"
2149
+ ]);
2150
+
2151
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/ng_module.mjs
2152
+ import { compileClassMetadata as compileClassMetadata2, compileDeclareClassMetadata as compileDeclareClassMetadata2, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileInjector, compileNgModule, CUSTOM_ELEMENTS_SCHEMA, ExternalExpr as ExternalExpr6, FactoryTarget as FactoryTarget2, InvokeFunctionExpr, LiteralArrayExpr as LiteralArrayExpr2, LiteralExpr as LiteralExpr3, NO_ERRORS_SCHEMA, R3Identifiers, STRING_TYPE, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
2153
+ import ts30 from "typescript";
2154
+
2155
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/component.mjs
2156
+ var EMPTY_MAP = new Map();
2157
+
2158
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
2159
+ import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclareInjectableFromMetadata, compileInjectable, createR3ProviderExpression, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr4, WrappedNodeExpr as WrappedNodeExpr7 } from "@angular/compiler";
2160
+ import ts32 from "typescript";
2161
+
2162
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
2163
+ import { compileClassMetadata as compileClassMetadata5, compileDeclareClassMetadata as compileDeclareClassMetadata5, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5, WrappedNodeExpr as WrappedNodeExpr8 } from "@angular/compiler";
2164
+ import ts33 from "typescript";
2165
+ export {
2166
+ DynamicValue,
2167
+ PartialEvaluator,
2168
+ Reference,
2169
+ StaticInterpreter,
2170
+ TypeScriptReflectionHost,
2171
+ forwardRefResolver,
2172
+ reflectObjectLiteral
2173
+ };
2174
+ /**
2175
+ * @license
2176
+ * Copyright Google LLC All Rights Reserved.
2177
+ *
2178
+ * Use of this source code is governed by an MIT-style license that can be
2179
+ * found in the LICENSE file at https://angular.io/license
2180
+ */
2181
+ //# sourceMappingURL=migrations.js.map