immosquare-cleaner 0.1.65 → 0.1.67

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 (1189) hide show
  1. checksums.yaml +4 -4
  2. data/bin/immosquare-cleaner +4 -0
  3. data/lib/immosquare-cleaner/version.rb +1 -1
  4. data/lib/immosquare-cleaner.rb +21 -20
  5. data/linters/eslint.config.mjs +14 -0
  6. data/linters/rubocop-3.3.6.yml +93 -0
  7. data/linters/rubocop-3.4.1.yml +0 -3
  8. data/node_modules/.bin/jscodeshift +1 -0
  9. data/node_modules/@babel/compat-data/data/plugins.json +7 -6
  10. data/node_modules/@babel/compat-data/package.json +2 -2
  11. data/node_modules/@babel/core/lib/config/files/configuration.js +0 -3
  12. data/node_modules/@babel/core/lib/config/files/configuration.js.map +1 -1
  13. data/node_modules/@babel/core/lib/config/files/module-types.js +63 -74
  14. data/node_modules/@babel/core/lib/config/files/module-types.js.map +1 -1
  15. data/node_modules/@babel/core/lib/config/files/plugins.js +0 -1
  16. data/node_modules/@babel/core/lib/config/files/plugins.js.map +1 -1
  17. data/node_modules/@babel/core/lib/config/partial.js +1 -1
  18. data/node_modules/@babel/core/lib/config/partial.js.map +1 -1
  19. data/node_modules/@babel/core/lib/index.js +2 -1
  20. data/node_modules/@babel/core/lib/index.js.map +1 -1
  21. data/node_modules/@babel/core/lib/parser/index.js.map +1 -1
  22. data/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs +1 -3
  23. data/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs.map +1 -1
  24. data/node_modules/@babel/core/lib/transformation/file/file.js +4 -2
  25. data/node_modules/@babel/core/lib/transformation/file/file.js.map +1 -1
  26. data/node_modules/@babel/core/lib/transformation/normalize-file.js.map +1 -1
  27. data/node_modules/@babel/core/lib/transformation/util/clone-deep.js +7 -27
  28. data/node_modules/@babel/core/lib/transformation/util/clone-deep.js.map +1 -1
  29. data/node_modules/@babel/core/package.json +14 -13
  30. data/node_modules/@babel/generator/lib/generators/classes.js +4 -7
  31. data/node_modules/@babel/generator/lib/generators/classes.js.map +1 -1
  32. data/node_modules/@babel/generator/lib/generators/expressions.js +3 -9
  33. data/node_modules/@babel/generator/lib/generators/expressions.js.map +1 -1
  34. data/node_modules/@babel/generator/lib/generators/jsx.js +1 -6
  35. data/node_modules/@babel/generator/lib/generators/jsx.js.map +1 -1
  36. data/node_modules/@babel/generator/lib/generators/template-literals.js +11 -16
  37. data/node_modules/@babel/generator/lib/generators/template-literals.js.map +1 -1
  38. data/node_modules/@babel/generator/lib/generators/types.js +9 -0
  39. data/node_modules/@babel/generator/lib/generators/types.js.map +1 -1
  40. data/node_modules/@babel/generator/lib/generators/typescript.js +18 -36
  41. data/node_modules/@babel/generator/lib/generators/typescript.js.map +1 -1
  42. data/node_modules/@babel/generator/lib/node/parentheses.js +3 -40
  43. data/node_modules/@babel/generator/lib/node/parentheses.js.map +1 -1
  44. data/node_modules/@babel/generator/lib/printer.js +3 -4
  45. data/node_modules/@babel/generator/lib/printer.js.map +1 -1
  46. data/node_modules/@babel/generator/package.json +5 -5
  47. data/node_modules/@babel/helper-compilation-targets/lib/index.js +1 -1
  48. data/node_modules/@babel/helper-compilation-targets/lib/index.js.map +1 -1
  49. data/node_modules/@babel/helper-compilation-targets/package.json +2 -2
  50. data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators-2018-09.js +9 -1
  51. data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators-2018-09.js.map +1 -1
  52. data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js +0 -9
  53. data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js.map +1 -1
  54. data/node_modules/@babel/helper-create-class-features-plugin/lib/features.js +1 -1
  55. data/node_modules/@babel/helper-create-class-features-plugin/lib/features.js.map +1 -1
  56. data/node_modules/@babel/helper-create-class-features-plugin/lib/index.js +8 -8
  57. data/node_modules/@babel/helper-create-class-features-plugin/lib/index.js.map +1 -1
  58. data/node_modules/@babel/helper-create-class-features-plugin/package.json +5 -5
  59. data/node_modules/@babel/helper-plugin-utils/lib/index.js.map +1 -1
  60. data/node_modules/@babel/helper-plugin-utils/package.json +2 -2
  61. data/node_modules/@babel/helper-replace-supers/lib/index.js.map +1 -1
  62. data/node_modules/@babel/helper-replace-supers/package.json +3 -3
  63. data/node_modules/@babel/helpers/lib/helpers/asyncIterator.js.map +1 -1
  64. data/node_modules/@babel/helpers/lib/helpers/isNativeFunction.js.map +1 -1
  65. data/node_modules/@babel/helpers/lib/helpers/objectWithoutProperties.js +1 -1
  66. data/node_modules/@babel/helpers/lib/helpers/objectWithoutProperties.js.map +1 -1
  67. data/node_modules/@babel/helpers/lib/helpers/objectWithoutPropertiesLoose.js +1 -1
  68. data/node_modules/@babel/helpers/lib/helpers/objectWithoutPropertiesLoose.js.map +1 -1
  69. data/node_modules/@babel/helpers/lib/helpers/wrapRegExp.js +3 -7
  70. data/node_modules/@babel/helpers/lib/helpers/wrapRegExp.js.map +1 -1
  71. data/node_modules/@babel/helpers/lib/helpers-generated.js +3 -3
  72. data/node_modules/@babel/helpers/lib/helpers-generated.js.map +1 -1
  73. data/node_modules/@babel/helpers/package.json +5 -5
  74. data/node_modules/@babel/parser/lib/index.js +236 -426
  75. data/node_modules/@babel/parser/lib/index.js.map +1 -1
  76. data/node_modules/@babel/parser/package.json +2 -2
  77. data/node_modules/@babel/parser/typings/babel-parser.d.ts +164 -127
  78. data/node_modules/@babel/plugin-transform-flow-strip-types/lib/index.js +0 -6
  79. data/node_modules/@babel/plugin-transform-flow-strip-types/lib/index.js.map +1 -1
  80. data/node_modules/@babel/plugin-transform-flow-strip-types/package.json +4 -4
  81. data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/lib/index.js +2 -3
  82. data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/lib/index.js.map +1 -1
  83. data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/package.json +3 -3
  84. data/node_modules/@babel/plugin-transform-typescript/lib/const-enum.js +1 -3
  85. data/node_modules/@babel/plugin-transform-typescript/lib/const-enum.js.map +1 -1
  86. data/node_modules/@babel/plugin-transform-typescript/lib/enum.js +11 -24
  87. data/node_modules/@babel/plugin-transform-typescript/lib/enum.js.map +1 -1
  88. data/node_modules/@babel/plugin-transform-typescript/lib/index.js +9 -38
  89. data/node_modules/@babel/plugin-transform-typescript/lib/index.js.map +1 -1
  90. data/node_modules/@babel/plugin-transform-typescript/lib/namespace.js +0 -2
  91. data/node_modules/@babel/plugin-transform-typescript/lib/namespace.js.map +1 -1
  92. data/node_modules/@babel/plugin-transform-typescript/package.json +5 -5
  93. data/node_modules/@babel/template/lib/options.js.map +1 -1
  94. data/node_modules/@babel/template/lib/parse.js.map +1 -1
  95. data/node_modules/@babel/template/package.json +4 -4
  96. data/node_modules/@babel/traverse/lib/cache.js +5 -4
  97. data/node_modules/@babel/traverse/lib/cache.js.map +1 -1
  98. data/node_modules/@babel/traverse/lib/path/conversion.js +2 -1
  99. data/node_modules/@babel/traverse/lib/path/conversion.js.map +1 -1
  100. data/node_modules/@babel/traverse/lib/path/evaluation.js +0 -17
  101. data/node_modules/@babel/traverse/lib/path/evaluation.js.map +1 -1
  102. data/node_modules/@babel/traverse/lib/path/lib/hoister.js.map +1 -1
  103. data/node_modules/@babel/traverse/lib/path/modification.js +1 -1
  104. data/node_modules/@babel/traverse/lib/path/modification.js.map +1 -1
  105. data/node_modules/@babel/traverse/lib/path/replacement.js.map +1 -1
  106. data/node_modules/@babel/traverse/lib/scope/index.js +2 -9
  107. data/node_modules/@babel/traverse/lib/scope/index.js.map +1 -1
  108. data/node_modules/@babel/traverse/lib/visitors.js +1 -1
  109. data/node_modules/@babel/traverse/lib/visitors.js.map +1 -1
  110. data/node_modules/@babel/traverse/package.json +6 -6
  111. data/node_modules/@babel/types/lib/asserts/generated/index.js +0 -8
  112. data/node_modules/@babel/types/lib/asserts/generated/index.js.map +1 -1
  113. data/node_modules/@babel/types/lib/ast-types/generated/index.js.map +1 -1
  114. data/node_modules/@babel/types/lib/builders/generated/index.js +2858 -22
  115. data/node_modules/@babel/types/lib/builders/generated/index.js.map +1 -1
  116. data/node_modules/@babel/types/lib/builders/generated/uppercase.js +255 -267
  117. data/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +1 -1
  118. data/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +1 -1
  119. data/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +1 -1
  120. data/node_modules/@babel/types/lib/definitions/core.js +17 -26
  121. data/node_modules/@babel/types/lib/definitions/core.js.map +1 -1
  122. data/node_modules/@babel/types/lib/definitions/flow.js +3 -6
  123. data/node_modules/@babel/types/lib/definitions/flow.js.map +1 -1
  124. data/node_modules/@babel/types/lib/definitions/jsx.js +4 -9
  125. data/node_modules/@babel/types/lib/definitions/jsx.js.map +1 -1
  126. data/node_modules/@babel/types/lib/definitions/typescript.js +26 -51
  127. data/node_modules/@babel/types/lib/definitions/typescript.js.map +1 -1
  128. data/node_modules/@babel/types/lib/definitions/utils.js +2 -2
  129. data/node_modules/@babel/types/lib/definitions/utils.js.map +1 -1
  130. data/node_modules/@babel/types/lib/index-legacy.d.ts +7 -27
  131. data/node_modules/@babel/types/lib/index.d.ts +1876 -1898
  132. data/node_modules/@babel/types/lib/index.js +21 -10
  133. data/node_modules/@babel/types/lib/index.js.flow +6 -26
  134. data/node_modules/@babel/types/lib/index.js.map +1 -1
  135. data/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +8 -9
  136. data/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +1 -1
  137. data/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +0 -1
  138. data/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +1 -1
  139. data/node_modules/@babel/types/lib/validators/generated/index.js +0 -17
  140. data/node_modules/@babel/types/lib/validators/generated/index.js.map +1 -1
  141. data/node_modules/@babel/types/package.json +12 -12
  142. data/node_modules/@eslint-community/eslint-utils/index.js +1 -21
  143. data/node_modules/@eslint-community/eslint-utils/index.js.map +1 -1
  144. data/node_modules/@eslint-community/eslint-utils/index.mjs +1 -21
  145. data/node_modules/@eslint-community/eslint-utils/index.mjs.map +1 -1
  146. data/node_modules/@eslint-community/eslint-utils/package.json +1 -1
  147. data/node_modules/acorn/CHANGELOG.md +0 -12
  148. data/node_modules/acorn/dist/acorn.js +24 -33
  149. data/node_modules/acorn/dist/acorn.mjs +24 -33
  150. data/node_modules/acorn/package.json +1 -1
  151. data/node_modules/browserslist/index.js +4 -23
  152. data/node_modules/browserslist/node.js +60 -69
  153. data/node_modules/browserslist/package.json +1 -1
  154. data/node_modules/call-bind-apply-helpers/CHANGELOG.md +0 -7
  155. data/node_modules/call-bind-apply-helpers/index.d.ts +20 -38
  156. data/node_modules/call-bind-apply-helpers/index.js +1 -1
  157. data/node_modules/call-bind-apply-helpers/package.json +8 -8
  158. data/node_modules/call-bind-apply-helpers/test/index.js +4 -4
  159. data/node_modules/call-bound/CHANGELOG.md +0 -8
  160. data/node_modules/call-bound/index.d.ts +10 -91
  161. data/node_modules/call-bound/index.js +3 -4
  162. data/node_modules/call-bound/package.json +10 -10
  163. data/node_modules/call-bound/test/index.js +4 -11
  164. data/node_modules/call-bound/tsconfig.json +1 -2
  165. data/node_modules/caniuse-lite/data/agents.js +1 -1
  166. data/node_modules/caniuse-lite/data/browserVersions.js +1 -1
  167. data/node_modules/caniuse-lite/data/features/aac.js +1 -1
  168. data/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -1
  169. data/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -1
  170. data/node_modules/caniuse-lite/data/features/accelerometer.js +1 -1
  171. data/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -1
  172. data/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -1
  173. data/node_modules/caniuse-lite/data/features/ambient-light.js +1 -1
  174. data/node_modules/caniuse-lite/data/features/apng.js +1 -1
  175. data/node_modules/caniuse-lite/data/features/array-find-index.js +1 -1
  176. data/node_modules/caniuse-lite/data/features/array-find.js +1 -1
  177. data/node_modules/caniuse-lite/data/features/array-flat.js +1 -1
  178. data/node_modules/caniuse-lite/data/features/array-includes.js +1 -1
  179. data/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -1
  180. data/node_modules/caniuse-lite/data/features/asmjs.js +1 -1
  181. data/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -1
  182. data/node_modules/caniuse-lite/data/features/async-functions.js +1 -1
  183. data/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -1
  184. data/node_modules/caniuse-lite/data/features/audio-api.js +1 -1
  185. data/node_modules/caniuse-lite/data/features/audio.js +1 -1
  186. data/node_modules/caniuse-lite/data/features/audiotracks.js +1 -1
  187. data/node_modules/caniuse-lite/data/features/autofocus.js +1 -1
  188. data/node_modules/caniuse-lite/data/features/auxclick.js +1 -1
  189. data/node_modules/caniuse-lite/data/features/av1.js +1 -1
  190. data/node_modules/caniuse-lite/data/features/avif.js +1 -1
  191. data/node_modules/caniuse-lite/data/features/background-attachment.js +1 -1
  192. data/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -1
  193. data/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -1
  194. data/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -1
  195. data/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -1
  196. data/node_modules/caniuse-lite/data/features/background-sync.js +1 -1
  197. data/node_modules/caniuse-lite/data/features/battery-status.js +1 -1
  198. data/node_modules/caniuse-lite/data/features/beacon.js +1 -1
  199. data/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -1
  200. data/node_modules/caniuse-lite/data/features/bigint.js +1 -1
  201. data/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -1
  202. data/node_modules/caniuse-lite/data/features/bloburls.js +1 -1
  203. data/node_modules/caniuse-lite/data/features/border-image.js +1 -1
  204. data/node_modules/caniuse-lite/data/features/border-radius.js +1 -1
  205. data/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -1
  206. data/node_modules/caniuse-lite/data/features/brotli.js +1 -1
  207. data/node_modules/caniuse-lite/data/features/calc.js +1 -1
  208. data/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -1
  209. data/node_modules/caniuse-lite/data/features/canvas-text.js +1 -1
  210. data/node_modules/caniuse-lite/data/features/canvas.js +1 -1
  211. data/node_modules/caniuse-lite/data/features/ch-unit.js +1 -1
  212. data/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -1
  213. data/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -1
  214. data/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -1
  215. data/node_modules/caniuse-lite/data/features/classlist.js +1 -1
  216. data/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -1
  217. data/node_modules/caniuse-lite/data/features/clipboard.js +1 -1
  218. data/node_modules/caniuse-lite/data/features/colr-v1.js +1 -1
  219. data/node_modules/caniuse-lite/data/features/colr.js +1 -1
  220. data/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -1
  221. data/node_modules/caniuse-lite/data/features/console-basic.js +1 -1
  222. data/node_modules/caniuse-lite/data/features/console-time.js +1 -1
  223. data/node_modules/caniuse-lite/data/features/const.js +1 -1
  224. data/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -1
  225. data/node_modules/caniuse-lite/data/features/contenteditable.js +1 -1
  226. data/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -1
  227. data/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -1
  228. data/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -1
  229. data/node_modules/caniuse-lite/data/features/cors.js +1 -1
  230. data/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -1
  231. data/node_modules/caniuse-lite/data/features/credential-management.js +1 -1
  232. data/node_modules/caniuse-lite/data/features/cryptography.js +1 -1
  233. data/node_modules/caniuse-lite/data/features/css-all.js +1 -1
  234. data/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +1 -1
  235. data/node_modules/caniuse-lite/data/features/css-animation.js +1 -1
  236. data/node_modules/caniuse-lite/data/features/css-any-link.js +1 -1
  237. data/node_modules/caniuse-lite/data/features/css-appearance.js +1 -1
  238. data/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -1
  239. data/node_modules/caniuse-lite/data/features/css-autofill.js +1 -1
  240. data/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -1
  241. data/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -1
  242. data/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -1
  243. data/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -1
  244. data/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -1
  245. data/node_modules/caniuse-lite/data/features/css-canvas.js +1 -1
  246. data/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -1
  247. data/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -1
  248. data/node_modules/caniuse-lite/data/features/css-cascade-scope.js +1 -1
  249. data/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -1
  250. data/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -1
  251. data/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -1
  252. data/node_modules/caniuse-lite/data/features/css-color-function.js +1 -1
  253. data/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -1
  254. data/node_modules/caniuse-lite/data/features/css-container-queries-style.js +1 -1
  255. data/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -1
  256. data/node_modules/caniuse-lite/data/features/css-container-query-units.js +1 -1
  257. data/node_modules/caniuse-lite/data/features/css-containment.js +1 -1
  258. data/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -1
  259. data/node_modules/caniuse-lite/data/features/css-counters.js +1 -1
  260. data/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -1
  261. data/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -1
  262. data/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -1
  263. data/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -1
  264. data/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -1
  265. data/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -1
  266. data/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -1
  267. data/node_modules/caniuse-lite/data/features/css-element-function.js +1 -1
  268. data/node_modules/caniuse-lite/data/features/css-env-function.js +1 -1
  269. data/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -1
  270. data/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -1
  271. data/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -1
  272. data/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -1
  273. data/node_modules/caniuse-lite/data/features/css-filters.js +1 -1
  274. data/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -1
  275. data/node_modules/caniuse-lite/data/features/css-first-line.js +1 -1
  276. data/node_modules/caniuse-lite/data/features/css-fixed.js +1 -1
  277. data/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -1
  278. data/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -1
  279. data/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -1
  280. data/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -1
  281. data/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -1
  282. data/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -1
  283. data/node_modules/caniuse-lite/data/features/css-gradients.js +1 -1
  284. data/node_modules/caniuse-lite/data/features/css-grid-animation.js +1 -1
  285. data/node_modules/caniuse-lite/data/features/css-grid.js +1 -1
  286. data/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -1
  287. data/node_modules/caniuse-lite/data/features/css-has.js +1 -1
  288. data/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -1
  289. data/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -1
  290. data/node_modules/caniuse-lite/data/features/css-image-set.js +1 -1
  291. data/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -1
  292. data/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -1
  293. data/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -1
  294. data/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -1
  295. data/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -1
  296. data/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -1
  297. data/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -1
  298. data/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -1
  299. data/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -1
  300. data/node_modules/caniuse-lite/data/features/css-masks.js +1 -1
  301. data/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -1
  302. data/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -1
  303. data/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -1
  304. data/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +1 -1
  305. data/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -1
  306. data/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -1
  307. data/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -1
  308. data/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -1
  309. data/node_modules/caniuse-lite/data/features/css-module-scripts.js +1 -1
  310. data/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -1
  311. data/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -1
  312. data/node_modules/caniuse-lite/data/features/css-nesting.js +1 -1
  313. data/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -1
  314. data/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -1
  315. data/node_modules/caniuse-lite/data/features/css-opacity.js +1 -1
  316. data/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -1
  317. data/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -1
  318. data/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -1
  319. data/node_modules/caniuse-lite/data/features/css-overflow.js +1 -1
  320. data/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -1
  321. data/node_modules/caniuse-lite/data/features/css-page-break.js +1 -1
  322. data/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -1
  323. data/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -1
  324. data/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -1
  325. data/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -1
  326. data/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +1 -1
  327. data/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -1
  328. data/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -1
  329. data/node_modules/caniuse-lite/data/features/css-reflections.js +1 -1
  330. data/node_modules/caniuse-lite/data/features/css-regions.js +1 -1
  331. data/node_modules/caniuse-lite/data/features/css-relative-colors.js +1 -1
  332. data/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -1
  333. data/node_modules/caniuse-lite/data/features/css-resize.js +1 -1
  334. data/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -1
  335. data/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -1
  336. data/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -1
  337. data/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -1
  338. data/node_modules/caniuse-lite/data/features/css-sel2.js +1 -1
  339. data/node_modules/caniuse-lite/data/features/css-sel3.js +1 -1
  340. data/node_modules/caniuse-lite/data/features/css-selection.js +1 -1
  341. data/node_modules/caniuse-lite/data/features/css-shapes.js +1 -1
  342. data/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -1
  343. data/node_modules/caniuse-lite/data/features/css-sticky.js +1 -1
  344. data/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -1
  345. data/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -1
  346. data/node_modules/caniuse-lite/data/features/css-table.js +1 -1
  347. data/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -1
  348. data/node_modules/caniuse-lite/data/features/css-text-box-trim.js +1 -1
  349. data/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -1
  350. data/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -1
  351. data/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -1
  352. data/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -1
  353. data/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +1 -1
  354. data/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -1
  355. data/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -1
  356. data/node_modules/caniuse-lite/data/features/css-transitions.js +1 -1
  357. data/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -1
  358. data/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -1
  359. data/node_modules/caniuse-lite/data/features/css-variables.js +1 -1
  360. data/node_modules/caniuse-lite/data/features/css-when-else.js +1 -1
  361. data/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -1
  362. data/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -1
  363. data/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -1
  364. data/node_modules/caniuse-lite/data/features/css-zoom.js +1 -1
  365. data/node_modules/caniuse-lite/data/features/css3-attr.js +1 -1
  366. data/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -1
  367. data/node_modules/caniuse-lite/data/features/css3-colors.js +1 -1
  368. data/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -1
  369. data/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -1
  370. data/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -1
  371. data/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -1
  372. data/node_modules/caniuse-lite/data/features/currentcolor.js +1 -1
  373. data/node_modules/caniuse-lite/data/features/custom-elements.js +1 -1
  374. data/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -1
  375. data/node_modules/caniuse-lite/data/features/customevent.js +1 -1
  376. data/node_modules/caniuse-lite/data/features/datalist.js +1 -1
  377. data/node_modules/caniuse-lite/data/features/dataset.js +1 -1
  378. data/node_modules/caniuse-lite/data/features/datauri.js +1 -1
  379. data/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -1
  380. data/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +1 -1
  381. data/node_modules/caniuse-lite/data/features/decorators.js +1 -1
  382. data/node_modules/caniuse-lite/data/features/details.js +1 -1
  383. data/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -1
  384. data/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -1
  385. data/node_modules/caniuse-lite/data/features/dialog.js +1 -1
  386. data/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -1
  387. data/node_modules/caniuse-lite/data/features/dnssec.js +1 -1
  388. data/node_modules/caniuse-lite/data/features/do-not-track.js +1 -1
  389. data/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -1
  390. data/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -1
  391. data/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -1
  392. data/node_modules/caniuse-lite/data/features/document-policy.js +1 -1
  393. data/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -1
  394. data/node_modules/caniuse-lite/data/features/documenthead.js +1 -1
  395. data/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -1
  396. data/node_modules/caniuse-lite/data/features/dom-range.js +1 -1
  397. data/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -1
  398. data/node_modules/caniuse-lite/data/features/dommatrix.js +1 -1
  399. data/node_modules/caniuse-lite/data/features/download.js +1 -1
  400. data/node_modules/caniuse-lite/data/features/dragndrop.js +1 -1
  401. data/node_modules/caniuse-lite/data/features/element-closest.js +1 -1
  402. data/node_modules/caniuse-lite/data/features/element-from-point.js +1 -1
  403. data/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -1
  404. data/node_modules/caniuse-lite/data/features/eme.js +1 -1
  405. data/node_modules/caniuse-lite/data/features/eot.js +1 -1
  406. data/node_modules/caniuse-lite/data/features/es5.js +1 -1
  407. data/node_modules/caniuse-lite/data/features/es6-class.js +1 -1
  408. data/node_modules/caniuse-lite/data/features/es6-generators.js +1 -1
  409. data/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -1
  410. data/node_modules/caniuse-lite/data/features/es6-module.js +1 -1
  411. data/node_modules/caniuse-lite/data/features/es6-number.js +1 -1
  412. data/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -1
  413. data/node_modules/caniuse-lite/data/features/es6.js +1 -1
  414. data/node_modules/caniuse-lite/data/features/eventsource.js +1 -1
  415. data/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -1
  416. data/node_modules/caniuse-lite/data/features/feature-policy.js +1 -1
  417. data/node_modules/caniuse-lite/data/features/fetch.js +1 -1
  418. data/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -1
  419. data/node_modules/caniuse-lite/data/features/fileapi.js +1 -1
  420. data/node_modules/caniuse-lite/data/features/filereader.js +1 -1
  421. data/node_modules/caniuse-lite/data/features/filereadersync.js +1 -1
  422. data/node_modules/caniuse-lite/data/features/filesystem.js +1 -1
  423. data/node_modules/caniuse-lite/data/features/flac.js +1 -1
  424. data/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -1
  425. data/node_modules/caniuse-lite/data/features/flexbox.js +1 -1
  426. data/node_modules/caniuse-lite/data/features/flow-root.js +1 -1
  427. data/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -1
  428. data/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -1
  429. data/node_modules/caniuse-lite/data/features/font-feature.js +1 -1
  430. data/node_modules/caniuse-lite/data/features/font-kerning.js +1 -1
  431. data/node_modules/caniuse-lite/data/features/font-loading.js +1 -1
  432. data/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -1
  433. data/node_modules/caniuse-lite/data/features/font-smooth.js +1 -1
  434. data/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -1
  435. data/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -1
  436. data/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -1
  437. data/node_modules/caniuse-lite/data/features/fontface.js +1 -1
  438. data/node_modules/caniuse-lite/data/features/form-attribute.js +1 -1
  439. data/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -1
  440. data/node_modules/caniuse-lite/data/features/form-validation.js +1 -1
  441. data/node_modules/caniuse-lite/data/features/forms.js +1 -1
  442. data/node_modules/caniuse-lite/data/features/fullscreen.js +1 -1
  443. data/node_modules/caniuse-lite/data/features/gamepad.js +1 -1
  444. data/node_modules/caniuse-lite/data/features/geolocation.js +1 -1
  445. data/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -1
  446. data/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -1
  447. data/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -1
  448. data/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -1
  449. data/node_modules/caniuse-lite/data/features/gyroscope.js +1 -1
  450. data/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -1
  451. data/node_modules/caniuse-lite/data/features/hashchange.js +1 -1
  452. data/node_modules/caniuse-lite/data/features/heif.js +1 -1
  453. data/node_modules/caniuse-lite/data/features/hevc.js +1 -1
  454. data/node_modules/caniuse-lite/data/features/hidden.js +1 -1
  455. data/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -1
  456. data/node_modules/caniuse-lite/data/features/history.js +1 -1
  457. data/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -1
  458. data/node_modules/caniuse-lite/data/features/html5semantic.js +1 -1
  459. data/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -1
  460. data/node_modules/caniuse-lite/data/features/http2.js +1 -1
  461. data/node_modules/caniuse-lite/data/features/http3.js +1 -1
  462. data/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -1
  463. data/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -1
  464. data/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -1
  465. data/node_modules/caniuse-lite/data/features/imagecapture.js +1 -1
  466. data/node_modules/caniuse-lite/data/features/ime.js +1 -1
  467. data/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -1
  468. data/node_modules/caniuse-lite/data/features/import-maps.js +1 -1
  469. data/node_modules/caniuse-lite/data/features/imports.js +1 -1
  470. data/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -1
  471. data/node_modules/caniuse-lite/data/features/indexeddb.js +1 -1
  472. data/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -1
  473. data/node_modules/caniuse-lite/data/features/inline-block.js +1 -1
  474. data/node_modules/caniuse-lite/data/features/innertext.js +1 -1
  475. data/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -1
  476. data/node_modules/caniuse-lite/data/features/input-color.js +1 -1
  477. data/node_modules/caniuse-lite/data/features/input-datetime.js +1 -1
  478. data/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -1
  479. data/node_modules/caniuse-lite/data/features/input-event.js +1 -1
  480. data/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -1
  481. data/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -1
  482. data/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -1
  483. data/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -1
  484. data/node_modules/caniuse-lite/data/features/input-minlength.js +1 -1
  485. data/node_modules/caniuse-lite/data/features/input-number.js +1 -1
  486. data/node_modules/caniuse-lite/data/features/input-pattern.js +1 -1
  487. data/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -1
  488. data/node_modules/caniuse-lite/data/features/input-range.js +1 -1
  489. data/node_modules/caniuse-lite/data/features/input-search.js +1 -1
  490. data/node_modules/caniuse-lite/data/features/input-selection.js +1 -1
  491. data/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -1
  492. data/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -1
  493. data/node_modules/caniuse-lite/data/features/internationalization.js +1 -1
  494. data/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -1
  495. data/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -1
  496. data/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -1
  497. data/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -1
  498. data/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -1
  499. data/node_modules/caniuse-lite/data/features/jpegxl.js +1 -1
  500. data/node_modules/caniuse-lite/data/features/jpegxr.js +1 -1
  501. data/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -1
  502. data/node_modules/caniuse-lite/data/features/json.js +1 -1
  503. data/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -1
  504. data/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -1
  505. data/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -1
  506. data/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -1
  507. data/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -1
  508. data/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -1
  509. data/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -1
  510. data/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -1
  511. data/node_modules/caniuse-lite/data/features/lazyload.js +1 -1
  512. data/node_modules/caniuse-lite/data/features/let.js +1 -1
  513. data/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -1
  514. data/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -1
  515. data/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -1
  516. data/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -1
  517. data/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -1
  518. data/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -1
  519. data/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -1
  520. data/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -1
  521. data/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -1
  522. data/node_modules/caniuse-lite/data/features/localecompare.js +1 -1
  523. data/node_modules/caniuse-lite/data/features/magnetometer.js +1 -1
  524. data/node_modules/caniuse-lite/data/features/matchesselector.js +1 -1
  525. data/node_modules/caniuse-lite/data/features/matchmedia.js +1 -1
  526. data/node_modules/caniuse-lite/data/features/mathml.js +1 -1
  527. data/node_modules/caniuse-lite/data/features/maxlength.js +1 -1
  528. data/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +1 -1
  529. data/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +1 -1
  530. data/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +1 -1
  531. data/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +1 -1
  532. data/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +1 -1
  533. data/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +1 -1
  534. data/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +1 -1
  535. data/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +1 -1
  536. data/node_modules/caniuse-lite/data/features/media-fragments.js +1 -1
  537. data/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -1
  538. data/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -1
  539. data/node_modules/caniuse-lite/data/features/mediasource.js +1 -1
  540. data/node_modules/caniuse-lite/data/features/menu.js +1 -1
  541. data/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -1
  542. data/node_modules/caniuse-lite/data/features/meter.js +1 -1
  543. data/node_modules/caniuse-lite/data/features/midi.js +1 -1
  544. data/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -1
  545. data/node_modules/caniuse-lite/data/features/mp3.js +1 -1
  546. data/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -1
  547. data/node_modules/caniuse-lite/data/features/mpeg4.js +1 -1
  548. data/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -1
  549. data/node_modules/caniuse-lite/data/features/multicolumn.js +1 -1
  550. data/node_modules/caniuse-lite/data/features/mutation-events.js +1 -1
  551. data/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -1
  552. data/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -1
  553. data/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -1
  554. data/node_modules/caniuse-lite/data/features/nav-timing.js +1 -1
  555. data/node_modules/caniuse-lite/data/features/netinfo.js +1 -1
  556. data/node_modules/caniuse-lite/data/features/notifications.js +1 -1
  557. data/node_modules/caniuse-lite/data/features/object-entries.js +1 -1
  558. data/node_modules/caniuse-lite/data/features/object-fit.js +1 -1
  559. data/node_modules/caniuse-lite/data/features/object-observe.js +1 -1
  560. data/node_modules/caniuse-lite/data/features/object-values.js +1 -1
  561. data/node_modules/caniuse-lite/data/features/objectrtc.js +1 -1
  562. data/node_modules/caniuse-lite/data/features/offline-apps.js +1 -1
  563. data/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -1
  564. data/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -1
  565. data/node_modules/caniuse-lite/data/features/ogv.js +1 -1
  566. data/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -1
  567. data/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -1
  568. data/node_modules/caniuse-lite/data/features/online-status.js +1 -1
  569. data/node_modules/caniuse-lite/data/features/opus.js +1 -1
  570. data/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -1
  571. data/node_modules/caniuse-lite/data/features/outline.js +1 -1
  572. data/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -1
  573. data/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -1
  574. data/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -1
  575. data/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -1
  576. data/node_modules/caniuse-lite/data/features/passkeys.js +1 -1
  577. data/node_modules/caniuse-lite/data/features/passwordrules.js +1 -1
  578. data/node_modules/caniuse-lite/data/features/path2d.js +1 -1
  579. data/node_modules/caniuse-lite/data/features/payment-request.js +1 -1
  580. data/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -1
  581. data/node_modules/caniuse-lite/data/features/permissions-api.js +1 -1
  582. data/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -1
  583. data/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -1
  584. data/node_modules/caniuse-lite/data/features/picture.js +1 -1
  585. data/node_modules/caniuse-lite/data/features/ping.js +1 -1
  586. data/node_modules/caniuse-lite/data/features/png-alpha.js +1 -1
  587. data/node_modules/caniuse-lite/data/features/pointer-events.js +1 -1
  588. data/node_modules/caniuse-lite/data/features/pointer.js +1 -1
  589. data/node_modules/caniuse-lite/data/features/pointerlock.js +1 -1
  590. data/node_modules/caniuse-lite/data/features/portals.js +1 -1
  591. data/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -1
  592. data/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -1
  593. data/node_modules/caniuse-lite/data/features/progress.js +1 -1
  594. data/node_modules/caniuse-lite/data/features/promise-finally.js +1 -1
  595. data/node_modules/caniuse-lite/data/features/promises.js +1 -1
  596. data/node_modules/caniuse-lite/data/features/proximity.js +1 -1
  597. data/node_modules/caniuse-lite/data/features/proxy.js +1 -1
  598. data/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -1
  599. data/node_modules/caniuse-lite/data/features/push-api.js +1 -1
  600. data/node_modules/caniuse-lite/data/features/queryselector.js +1 -1
  601. data/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -1
  602. data/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -1
  603. data/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -1
  604. data/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -1
  605. data/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -1
  606. data/node_modules/caniuse-lite/data/features/rellist.js +1 -1
  607. data/node_modules/caniuse-lite/data/features/rem.js +1 -1
  608. data/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -1
  609. data/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -1
  610. data/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -1
  611. data/node_modules/caniuse-lite/data/features/resource-timing.js +1 -1
  612. data/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -1
  613. data/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -1
  614. data/node_modules/caniuse-lite/data/features/ruby.js +1 -1
  615. data/node_modules/caniuse-lite/data/features/run-in.js +1 -1
  616. data/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -1
  617. data/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -1
  618. data/node_modules/caniuse-lite/data/features/script-async.js +1 -1
  619. data/node_modules/caniuse-lite/data/features/script-defer.js +1 -1
  620. data/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -1
  621. data/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -1
  622. data/node_modules/caniuse-lite/data/features/sdch.js +1 -1
  623. data/node_modules/caniuse-lite/data/features/selection-api.js +1 -1
  624. data/node_modules/caniuse-lite/data/features/selectlist.js +1 -1
  625. data/node_modules/caniuse-lite/data/features/server-timing.js +1 -1
  626. data/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -1
  627. data/node_modules/caniuse-lite/data/features/setimmediate.js +1 -1
  628. data/node_modules/caniuse-lite/data/features/shadowdom.js +1 -1
  629. data/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -1
  630. data/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -1
  631. data/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -1
  632. data/node_modules/caniuse-lite/data/features/sni.js +1 -1
  633. data/node_modules/caniuse-lite/data/features/spdy.js +1 -1
  634. data/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -1
  635. data/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -1
  636. data/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -1
  637. data/node_modules/caniuse-lite/data/features/sql-storage.js +1 -1
  638. data/node_modules/caniuse-lite/data/features/srcset.js +1 -1
  639. data/node_modules/caniuse-lite/data/features/stream.js +1 -1
  640. data/node_modules/caniuse-lite/data/features/streams.js +1 -1
  641. data/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -1
  642. data/node_modules/caniuse-lite/data/features/style-scoped.js +1 -1
  643. data/node_modules/caniuse-lite/data/features/subresource-bundling.js +1 -1
  644. data/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -1
  645. data/node_modules/caniuse-lite/data/features/svg-css.js +1 -1
  646. data/node_modules/caniuse-lite/data/features/svg-filters.js +1 -1
  647. data/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -1
  648. data/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -1
  649. data/node_modules/caniuse-lite/data/features/svg-html.js +1 -1
  650. data/node_modules/caniuse-lite/data/features/svg-html5.js +1 -1
  651. data/node_modules/caniuse-lite/data/features/svg-img.js +1 -1
  652. data/node_modules/caniuse-lite/data/features/svg-smil.js +1 -1
  653. data/node_modules/caniuse-lite/data/features/svg.js +1 -1
  654. data/node_modules/caniuse-lite/data/features/sxg.js +1 -1
  655. data/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -1
  656. data/node_modules/caniuse-lite/data/features/template-literals.js +1 -1
  657. data/node_modules/caniuse-lite/data/features/template.js +1 -1
  658. data/node_modules/caniuse-lite/data/features/temporal.js +1 -1
  659. data/node_modules/caniuse-lite/data/features/testfeat.js +1 -1
  660. data/node_modules/caniuse-lite/data/features/text-decoration.js +1 -1
  661. data/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -1
  662. data/node_modules/caniuse-lite/data/features/text-overflow.js +1 -1
  663. data/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -1
  664. data/node_modules/caniuse-lite/data/features/text-stroke.js +1 -1
  665. data/node_modules/caniuse-lite/data/features/textcontent.js +1 -1
  666. data/node_modules/caniuse-lite/data/features/textencoder.js +1 -1
  667. data/node_modules/caniuse-lite/data/features/tls1-1.js +1 -1
  668. data/node_modules/caniuse-lite/data/features/tls1-2.js +1 -1
  669. data/node_modules/caniuse-lite/data/features/tls1-3.js +1 -1
  670. data/node_modules/caniuse-lite/data/features/touch.js +1 -1
  671. data/node_modules/caniuse-lite/data/features/transforms2d.js +1 -1
  672. data/node_modules/caniuse-lite/data/features/transforms3d.js +1 -1
  673. data/node_modules/caniuse-lite/data/features/trusted-types.js +1 -1
  674. data/node_modules/caniuse-lite/data/features/ttf.js +1 -1
  675. data/node_modules/caniuse-lite/data/features/typedarrays.js +1 -1
  676. data/node_modules/caniuse-lite/data/features/u2f.js +1 -1
  677. data/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -1
  678. data/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -1
  679. data/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -1
  680. data/node_modules/caniuse-lite/data/features/url.js +1 -1
  681. data/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -1
  682. data/node_modules/caniuse-lite/data/features/use-strict.js +1 -1
  683. data/node_modules/caniuse-lite/data/features/user-select-none.js +1 -1
  684. data/node_modules/caniuse-lite/data/features/user-timing.js +1 -1
  685. data/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -1
  686. data/node_modules/caniuse-lite/data/features/vector-effect.js +1 -1
  687. data/node_modules/caniuse-lite/data/features/vibration.js +1 -1
  688. data/node_modules/caniuse-lite/data/features/video.js +1 -1
  689. data/node_modules/caniuse-lite/data/features/videotracks.js +1 -1
  690. data/node_modules/caniuse-lite/data/features/view-transitions.js +1 -1
  691. data/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -1
  692. data/node_modules/caniuse-lite/data/features/viewport-units.js +1 -1
  693. data/node_modules/caniuse-lite/data/features/wai-aria.js +1 -1
  694. data/node_modules/caniuse-lite/data/features/wake-lock.js +1 -1
  695. data/node_modules/caniuse-lite/data/features/wasm-bigint.js +1 -1
  696. data/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +1 -1
  697. data/node_modules/caniuse-lite/data/features/wasm-extended-const.js +1 -1
  698. data/node_modules/caniuse-lite/data/features/wasm-gc.js +1 -1
  699. data/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +1 -1
  700. data/node_modules/caniuse-lite/data/features/wasm-multi-value.js +1 -1
  701. data/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +1 -1
  702. data/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +1 -1
  703. data/node_modules/caniuse-lite/data/features/wasm-reference-types.js +1 -1
  704. data/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +1 -1
  705. data/node_modules/caniuse-lite/data/features/wasm-signext.js +1 -1
  706. data/node_modules/caniuse-lite/data/features/wasm-simd.js +1 -1
  707. data/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +1 -1
  708. data/node_modules/caniuse-lite/data/features/wasm-threads.js +1 -1
  709. data/node_modules/caniuse-lite/data/features/wasm.js +1 -1
  710. data/node_modules/caniuse-lite/data/features/wav.js +1 -1
  711. data/node_modules/caniuse-lite/data/features/wbr-element.js +1 -1
  712. data/node_modules/caniuse-lite/data/features/web-animation.js +1 -1
  713. data/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -1
  714. data/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -1
  715. data/node_modules/caniuse-lite/data/features/web-serial.js +1 -1
  716. data/node_modules/caniuse-lite/data/features/web-share.js +1 -1
  717. data/node_modules/caniuse-lite/data/features/webauthn.js +1 -1
  718. data/node_modules/caniuse-lite/data/features/webcodecs.js +1 -1
  719. data/node_modules/caniuse-lite/data/features/webgl.js +1 -1
  720. data/node_modules/caniuse-lite/data/features/webgl2.js +1 -1
  721. data/node_modules/caniuse-lite/data/features/webgpu.js +1 -1
  722. data/node_modules/caniuse-lite/data/features/webhid.js +1 -1
  723. data/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -1
  724. data/node_modules/caniuse-lite/data/features/webm.js +1 -1
  725. data/node_modules/caniuse-lite/data/features/webnfc.js +1 -1
  726. data/node_modules/caniuse-lite/data/features/webp.js +1 -1
  727. data/node_modules/caniuse-lite/data/features/websockets.js +1 -1
  728. data/node_modules/caniuse-lite/data/features/webtransport.js +1 -1
  729. data/node_modules/caniuse-lite/data/features/webusb.js +1 -1
  730. data/node_modules/caniuse-lite/data/features/webvr.js +1 -1
  731. data/node_modules/caniuse-lite/data/features/webvtt.js +1 -1
  732. data/node_modules/caniuse-lite/data/features/webworkers.js +1 -1
  733. data/node_modules/caniuse-lite/data/features/webxr.js +1 -1
  734. data/node_modules/caniuse-lite/data/features/will-change.js +1 -1
  735. data/node_modules/caniuse-lite/data/features/woff.js +1 -1
  736. data/node_modules/caniuse-lite/data/features/woff2.js +1 -1
  737. data/node_modules/caniuse-lite/data/features/word-break.js +1 -1
  738. data/node_modules/caniuse-lite/data/features/wordwrap.js +1 -1
  739. data/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -1
  740. data/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -1
  741. data/node_modules/caniuse-lite/data/features/xhr2.js +1 -1
  742. data/node_modules/caniuse-lite/data/features/xhtml.js +1 -1
  743. data/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -1
  744. data/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -1
  745. data/node_modules/caniuse-lite/data/features/zstd.js +1 -1
  746. data/node_modules/caniuse-lite/data/regions/AD.js +1 -1
  747. data/node_modules/caniuse-lite/data/regions/AE.js +1 -1
  748. data/node_modules/caniuse-lite/data/regions/AF.js +1 -1
  749. data/node_modules/caniuse-lite/data/regions/AG.js +1 -1
  750. data/node_modules/caniuse-lite/data/regions/AI.js +1 -1
  751. data/node_modules/caniuse-lite/data/regions/AL.js +1 -1
  752. data/node_modules/caniuse-lite/data/regions/AM.js +1 -1
  753. data/node_modules/caniuse-lite/data/regions/AO.js +1 -1
  754. data/node_modules/caniuse-lite/data/regions/AR.js +1 -1
  755. data/node_modules/caniuse-lite/data/regions/AS.js +1 -1
  756. data/node_modules/caniuse-lite/data/regions/AT.js +1 -1
  757. data/node_modules/caniuse-lite/data/regions/AU.js +1 -1
  758. data/node_modules/caniuse-lite/data/regions/AW.js +1 -1
  759. data/node_modules/caniuse-lite/data/regions/AX.js +1 -1
  760. data/node_modules/caniuse-lite/data/regions/AZ.js +1 -1
  761. data/node_modules/caniuse-lite/data/regions/BA.js +1 -1
  762. data/node_modules/caniuse-lite/data/regions/BB.js +1 -1
  763. data/node_modules/caniuse-lite/data/regions/BD.js +1 -1
  764. data/node_modules/caniuse-lite/data/regions/BE.js +1 -1
  765. data/node_modules/caniuse-lite/data/regions/BF.js +1 -1
  766. data/node_modules/caniuse-lite/data/regions/BG.js +1 -1
  767. data/node_modules/caniuse-lite/data/regions/BH.js +1 -1
  768. data/node_modules/caniuse-lite/data/regions/BI.js +1 -1
  769. data/node_modules/caniuse-lite/data/regions/BJ.js +1 -1
  770. data/node_modules/caniuse-lite/data/regions/BM.js +1 -1
  771. data/node_modules/caniuse-lite/data/regions/BN.js +1 -1
  772. data/node_modules/caniuse-lite/data/regions/BO.js +1 -1
  773. data/node_modules/caniuse-lite/data/regions/BR.js +1 -1
  774. data/node_modules/caniuse-lite/data/regions/BS.js +1 -1
  775. data/node_modules/caniuse-lite/data/regions/BT.js +1 -1
  776. data/node_modules/caniuse-lite/data/regions/BW.js +1 -1
  777. data/node_modules/caniuse-lite/data/regions/BY.js +1 -1
  778. data/node_modules/caniuse-lite/data/regions/BZ.js +1 -1
  779. data/node_modules/caniuse-lite/data/regions/CA.js +1 -1
  780. data/node_modules/caniuse-lite/data/regions/CD.js +1 -1
  781. data/node_modules/caniuse-lite/data/regions/CF.js +1 -1
  782. data/node_modules/caniuse-lite/data/regions/CG.js +1 -1
  783. data/node_modules/caniuse-lite/data/regions/CH.js +1 -1
  784. data/node_modules/caniuse-lite/data/regions/CI.js +1 -1
  785. data/node_modules/caniuse-lite/data/regions/CK.js +1 -1
  786. data/node_modules/caniuse-lite/data/regions/CL.js +1 -1
  787. data/node_modules/caniuse-lite/data/regions/CM.js +1 -1
  788. data/node_modules/caniuse-lite/data/regions/CN.js +1 -1
  789. data/node_modules/caniuse-lite/data/regions/CO.js +1 -1
  790. data/node_modules/caniuse-lite/data/regions/CR.js +1 -1
  791. data/node_modules/caniuse-lite/data/regions/CU.js +1 -1
  792. data/node_modules/caniuse-lite/data/regions/CV.js +1 -1
  793. data/node_modules/caniuse-lite/data/regions/CX.js +1 -1
  794. data/node_modules/caniuse-lite/data/regions/CY.js +1 -1
  795. data/node_modules/caniuse-lite/data/regions/CZ.js +1 -1
  796. data/node_modules/caniuse-lite/data/regions/DE.js +1 -1
  797. data/node_modules/caniuse-lite/data/regions/DJ.js +1 -1
  798. data/node_modules/caniuse-lite/data/regions/DK.js +1 -1
  799. data/node_modules/caniuse-lite/data/regions/DM.js +1 -1
  800. data/node_modules/caniuse-lite/data/regions/DO.js +1 -1
  801. data/node_modules/caniuse-lite/data/regions/DZ.js +1 -1
  802. data/node_modules/caniuse-lite/data/regions/EC.js +1 -1
  803. data/node_modules/caniuse-lite/data/regions/EE.js +1 -1
  804. data/node_modules/caniuse-lite/data/regions/EG.js +1 -1
  805. data/node_modules/caniuse-lite/data/regions/ER.js +1 -1
  806. data/node_modules/caniuse-lite/data/regions/ES.js +1 -1
  807. data/node_modules/caniuse-lite/data/regions/ET.js +1 -1
  808. data/node_modules/caniuse-lite/data/regions/FI.js +1 -1
  809. data/node_modules/caniuse-lite/data/regions/FJ.js +1 -1
  810. data/node_modules/caniuse-lite/data/regions/FK.js +1 -1
  811. data/node_modules/caniuse-lite/data/regions/FM.js +1 -1
  812. data/node_modules/caniuse-lite/data/regions/FO.js +1 -1
  813. data/node_modules/caniuse-lite/data/regions/FR.js +1 -1
  814. data/node_modules/caniuse-lite/data/regions/GA.js +1 -1
  815. data/node_modules/caniuse-lite/data/regions/GB.js +1 -1
  816. data/node_modules/caniuse-lite/data/regions/GD.js +1 -1
  817. data/node_modules/caniuse-lite/data/regions/GE.js +1 -1
  818. data/node_modules/caniuse-lite/data/regions/GF.js +1 -1
  819. data/node_modules/caniuse-lite/data/regions/GG.js +1 -1
  820. data/node_modules/caniuse-lite/data/regions/GH.js +1 -1
  821. data/node_modules/caniuse-lite/data/regions/GI.js +1 -1
  822. data/node_modules/caniuse-lite/data/regions/GL.js +1 -1
  823. data/node_modules/caniuse-lite/data/regions/GM.js +1 -1
  824. data/node_modules/caniuse-lite/data/regions/GN.js +1 -1
  825. data/node_modules/caniuse-lite/data/regions/GP.js +1 -1
  826. data/node_modules/caniuse-lite/data/regions/GQ.js +1 -1
  827. data/node_modules/caniuse-lite/data/regions/GR.js +1 -1
  828. data/node_modules/caniuse-lite/data/regions/GT.js +1 -1
  829. data/node_modules/caniuse-lite/data/regions/GU.js +1 -1
  830. data/node_modules/caniuse-lite/data/regions/GW.js +1 -1
  831. data/node_modules/caniuse-lite/data/regions/GY.js +1 -1
  832. data/node_modules/caniuse-lite/data/regions/HK.js +1 -1
  833. data/node_modules/caniuse-lite/data/regions/HN.js +1 -1
  834. data/node_modules/caniuse-lite/data/regions/HR.js +1 -1
  835. data/node_modules/caniuse-lite/data/regions/HT.js +1 -1
  836. data/node_modules/caniuse-lite/data/regions/HU.js +1 -1
  837. data/node_modules/caniuse-lite/data/regions/ID.js +1 -1
  838. data/node_modules/caniuse-lite/data/regions/IE.js +1 -1
  839. data/node_modules/caniuse-lite/data/regions/IL.js +1 -1
  840. data/node_modules/caniuse-lite/data/regions/IM.js +1 -1
  841. data/node_modules/caniuse-lite/data/regions/IN.js +1 -1
  842. data/node_modules/caniuse-lite/data/regions/IQ.js +1 -1
  843. data/node_modules/caniuse-lite/data/regions/IR.js +1 -1
  844. data/node_modules/caniuse-lite/data/regions/IS.js +1 -1
  845. data/node_modules/caniuse-lite/data/regions/IT.js +1 -1
  846. data/node_modules/caniuse-lite/data/regions/JE.js +1 -1
  847. data/node_modules/caniuse-lite/data/regions/JM.js +1 -1
  848. data/node_modules/caniuse-lite/data/regions/JO.js +1 -1
  849. data/node_modules/caniuse-lite/data/regions/JP.js +1 -1
  850. data/node_modules/caniuse-lite/data/regions/KE.js +1 -1
  851. data/node_modules/caniuse-lite/data/regions/KG.js +1 -1
  852. data/node_modules/caniuse-lite/data/regions/KH.js +1 -1
  853. data/node_modules/caniuse-lite/data/regions/KI.js +1 -1
  854. data/node_modules/caniuse-lite/data/regions/KM.js +1 -1
  855. data/node_modules/caniuse-lite/data/regions/KN.js +1 -1
  856. data/node_modules/caniuse-lite/data/regions/KP.js +1 -1
  857. data/node_modules/caniuse-lite/data/regions/KR.js +1 -1
  858. data/node_modules/caniuse-lite/data/regions/KW.js +1 -1
  859. data/node_modules/caniuse-lite/data/regions/KY.js +1 -1
  860. data/node_modules/caniuse-lite/data/regions/KZ.js +1 -1
  861. data/node_modules/caniuse-lite/data/regions/LA.js +1 -1
  862. data/node_modules/caniuse-lite/data/regions/LB.js +1 -1
  863. data/node_modules/caniuse-lite/data/regions/LC.js +1 -1
  864. data/node_modules/caniuse-lite/data/regions/LI.js +1 -1
  865. data/node_modules/caniuse-lite/data/regions/LK.js +1 -1
  866. data/node_modules/caniuse-lite/data/regions/LR.js +1 -1
  867. data/node_modules/caniuse-lite/data/regions/LS.js +1 -1
  868. data/node_modules/caniuse-lite/data/regions/LT.js +1 -1
  869. data/node_modules/caniuse-lite/data/regions/LU.js +1 -1
  870. data/node_modules/caniuse-lite/data/regions/LV.js +1 -1
  871. data/node_modules/caniuse-lite/data/regions/LY.js +1 -1
  872. data/node_modules/caniuse-lite/data/regions/MA.js +1 -1
  873. data/node_modules/caniuse-lite/data/regions/MC.js +1 -1
  874. data/node_modules/caniuse-lite/data/regions/MD.js +1 -1
  875. data/node_modules/caniuse-lite/data/regions/ME.js +1 -1
  876. data/node_modules/caniuse-lite/data/regions/MG.js +1 -1
  877. data/node_modules/caniuse-lite/data/regions/MH.js +1 -1
  878. data/node_modules/caniuse-lite/data/regions/MK.js +1 -1
  879. data/node_modules/caniuse-lite/data/regions/ML.js +1 -1
  880. data/node_modules/caniuse-lite/data/regions/MM.js +1 -1
  881. data/node_modules/caniuse-lite/data/regions/MN.js +1 -1
  882. data/node_modules/caniuse-lite/data/regions/MO.js +1 -1
  883. data/node_modules/caniuse-lite/data/regions/MP.js +1 -1
  884. data/node_modules/caniuse-lite/data/regions/MQ.js +1 -1
  885. data/node_modules/caniuse-lite/data/regions/MR.js +1 -1
  886. data/node_modules/caniuse-lite/data/regions/MS.js +1 -1
  887. data/node_modules/caniuse-lite/data/regions/MT.js +1 -1
  888. data/node_modules/caniuse-lite/data/regions/MU.js +1 -1
  889. data/node_modules/caniuse-lite/data/regions/MV.js +1 -1
  890. data/node_modules/caniuse-lite/data/regions/MW.js +1 -1
  891. data/node_modules/caniuse-lite/data/regions/MX.js +1 -1
  892. data/node_modules/caniuse-lite/data/regions/MY.js +1 -1
  893. data/node_modules/caniuse-lite/data/regions/MZ.js +1 -1
  894. data/node_modules/caniuse-lite/data/regions/NA.js +1 -1
  895. data/node_modules/caniuse-lite/data/regions/NC.js +1 -1
  896. data/node_modules/caniuse-lite/data/regions/NE.js +1 -1
  897. data/node_modules/caniuse-lite/data/regions/NF.js +1 -1
  898. data/node_modules/caniuse-lite/data/regions/NG.js +1 -1
  899. data/node_modules/caniuse-lite/data/regions/NI.js +1 -1
  900. data/node_modules/caniuse-lite/data/regions/NL.js +1 -1
  901. data/node_modules/caniuse-lite/data/regions/NO.js +1 -1
  902. data/node_modules/caniuse-lite/data/regions/NP.js +1 -1
  903. data/node_modules/caniuse-lite/data/regions/NR.js +1 -1
  904. data/node_modules/caniuse-lite/data/regions/NU.js +1 -1
  905. data/node_modules/caniuse-lite/data/regions/NZ.js +1 -1
  906. data/node_modules/caniuse-lite/data/regions/OM.js +1 -1
  907. data/node_modules/caniuse-lite/data/regions/PA.js +1 -1
  908. data/node_modules/caniuse-lite/data/regions/PE.js +1 -1
  909. data/node_modules/caniuse-lite/data/regions/PF.js +1 -1
  910. data/node_modules/caniuse-lite/data/regions/PG.js +1 -1
  911. data/node_modules/caniuse-lite/data/regions/PH.js +1 -1
  912. data/node_modules/caniuse-lite/data/regions/PK.js +1 -1
  913. data/node_modules/caniuse-lite/data/regions/PL.js +1 -1
  914. data/node_modules/caniuse-lite/data/regions/PM.js +1 -1
  915. data/node_modules/caniuse-lite/data/regions/PN.js +1 -1
  916. data/node_modules/caniuse-lite/data/regions/PR.js +1 -1
  917. data/node_modules/caniuse-lite/data/regions/PS.js +1 -1
  918. data/node_modules/caniuse-lite/data/regions/PT.js +1 -1
  919. data/node_modules/caniuse-lite/data/regions/PW.js +1 -1
  920. data/node_modules/caniuse-lite/data/regions/PY.js +1 -1
  921. data/node_modules/caniuse-lite/data/regions/QA.js +1 -1
  922. data/node_modules/caniuse-lite/data/regions/RE.js +1 -1
  923. data/node_modules/caniuse-lite/data/regions/RO.js +1 -1
  924. data/node_modules/caniuse-lite/data/regions/RS.js +1 -1
  925. data/node_modules/caniuse-lite/data/regions/RU.js +1 -1
  926. data/node_modules/caniuse-lite/data/regions/RW.js +1 -1
  927. data/node_modules/caniuse-lite/data/regions/SA.js +1 -1
  928. data/node_modules/caniuse-lite/data/regions/SB.js +1 -1
  929. data/node_modules/caniuse-lite/data/regions/SC.js +1 -1
  930. data/node_modules/caniuse-lite/data/regions/SD.js +1 -1
  931. data/node_modules/caniuse-lite/data/regions/SE.js +1 -1
  932. data/node_modules/caniuse-lite/data/regions/SG.js +1 -1
  933. data/node_modules/caniuse-lite/data/regions/SH.js +1 -1
  934. data/node_modules/caniuse-lite/data/regions/SI.js +1 -1
  935. data/node_modules/caniuse-lite/data/regions/SK.js +1 -1
  936. data/node_modules/caniuse-lite/data/regions/SL.js +1 -1
  937. data/node_modules/caniuse-lite/data/regions/SM.js +1 -1
  938. data/node_modules/caniuse-lite/data/regions/SN.js +1 -1
  939. data/node_modules/caniuse-lite/data/regions/SO.js +1 -1
  940. data/node_modules/caniuse-lite/data/regions/SR.js +1 -1
  941. data/node_modules/caniuse-lite/data/regions/ST.js +1 -1
  942. data/node_modules/caniuse-lite/data/regions/SV.js +1 -1
  943. data/node_modules/caniuse-lite/data/regions/SY.js +1 -1
  944. data/node_modules/caniuse-lite/data/regions/SZ.js +1 -1
  945. data/node_modules/caniuse-lite/data/regions/TC.js +1 -1
  946. data/node_modules/caniuse-lite/data/regions/TD.js +1 -1
  947. data/node_modules/caniuse-lite/data/regions/TG.js +1 -1
  948. data/node_modules/caniuse-lite/data/regions/TH.js +1 -1
  949. data/node_modules/caniuse-lite/data/regions/TJ.js +1 -1
  950. data/node_modules/caniuse-lite/data/regions/TL.js +1 -1
  951. data/node_modules/caniuse-lite/data/regions/TM.js +1 -1
  952. data/node_modules/caniuse-lite/data/regions/TN.js +1 -1
  953. data/node_modules/caniuse-lite/data/regions/TO.js +1 -1
  954. data/node_modules/caniuse-lite/data/regions/TR.js +1 -1
  955. data/node_modules/caniuse-lite/data/regions/TT.js +1 -1
  956. data/node_modules/caniuse-lite/data/regions/TV.js +1 -1
  957. data/node_modules/caniuse-lite/data/regions/TW.js +1 -1
  958. data/node_modules/caniuse-lite/data/regions/TZ.js +1 -1
  959. data/node_modules/caniuse-lite/data/regions/UA.js +1 -1
  960. data/node_modules/caniuse-lite/data/regions/UG.js +1 -1
  961. data/node_modules/caniuse-lite/data/regions/US.js +1 -1
  962. data/node_modules/caniuse-lite/data/regions/UY.js +1 -1
  963. data/node_modules/caniuse-lite/data/regions/UZ.js +1 -1
  964. data/node_modules/caniuse-lite/data/regions/VA.js +1 -1
  965. data/node_modules/caniuse-lite/data/regions/VC.js +1 -1
  966. data/node_modules/caniuse-lite/data/regions/VE.js +1 -1
  967. data/node_modules/caniuse-lite/data/regions/VG.js +1 -1
  968. data/node_modules/caniuse-lite/data/regions/VI.js +1 -1
  969. data/node_modules/caniuse-lite/data/regions/VN.js +1 -1
  970. data/node_modules/caniuse-lite/data/regions/VU.js +1 -1
  971. data/node_modules/caniuse-lite/data/regions/WF.js +1 -1
  972. data/node_modules/caniuse-lite/data/regions/WS.js +1 -1
  973. data/node_modules/caniuse-lite/data/regions/YE.js +1 -1
  974. data/node_modules/caniuse-lite/data/regions/YT.js +1 -1
  975. data/node_modules/caniuse-lite/data/regions/ZA.js +1 -1
  976. data/node_modules/caniuse-lite/data/regions/ZM.js +1 -1
  977. data/node_modules/caniuse-lite/data/regions/ZW.js +1 -1
  978. data/node_modules/caniuse-lite/data/regions/alt-af.js +1 -1
  979. data/node_modules/caniuse-lite/data/regions/alt-an.js +1 -1
  980. data/node_modules/caniuse-lite/data/regions/alt-as.js +1 -1
  981. data/node_modules/caniuse-lite/data/regions/alt-eu.js +1 -1
  982. data/node_modules/caniuse-lite/data/regions/alt-na.js +1 -1
  983. data/node_modules/caniuse-lite/data/regions/alt-oc.js +1 -1
  984. data/node_modules/caniuse-lite/data/regions/alt-sa.js +1 -1
  985. data/node_modules/caniuse-lite/data/regions/alt-ww.js +1 -1
  986. data/node_modules/caniuse-lite/package.json +1 -1
  987. data/node_modules/electron-to-chromium/chromium-versions.js +1 -4
  988. data/node_modules/electron-to-chromium/chromium-versions.json +1 -1
  989. data/node_modules/electron-to-chromium/full-chromium-versions.js +3 -75
  990. data/node_modules/electron-to-chromium/full-chromium-versions.json +1 -1
  991. data/node_modules/electron-to-chromium/full-versions.js +1 -45
  992. data/node_modules/electron-to-chromium/full-versions.json +1 -1
  993. data/node_modules/electron-to-chromium/package.json +1 -1
  994. data/node_modules/electron-to-chromium/versions.js +1 -8
  995. data/node_modules/electron-to-chromium/versions.json +1 -1
  996. data/node_modules/es-object-atoms/CHANGELOG.md +0 -21
  997. data/node_modules/es-object-atoms/README.md +0 -7
  998. data/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +2 -2
  999. data/node_modules/es-object-atoms/ToObject.d.ts +2 -6
  1000. data/node_modules/es-object-atoms/package.json +8 -9
  1001. data/node_modules/es-object-atoms/test/index.js +1 -11
  1002. data/node_modules/es-shim-unscopables/CHANGELOG.md +0 -8
  1003. data/node_modules/es-shim-unscopables/index.js +1 -2
  1004. data/node_modules/es-shim-unscopables/package.json +11 -20
  1005. data/node_modules/es-shim-unscopables/test/index.js +1 -4
  1006. data/node_modules/es-shim-unscopables/test/with.js +0 -8
  1007. data/node_modules/flatted/index.js +3 -3
  1008. data/node_modules/flatted/min.js +1 -1
  1009. data/node_modules/flatted/package.json +8 -21
  1010. data/node_modules/flatted/python/flatted.py +4 -4
  1011. data/node_modules/flatted/python/test.py +63 -0
  1012. data/node_modules/flow-parser/flow_parser.js +5530 -5550
  1013. data/node_modules/flow-parser/package.json +1 -1
  1014. data/node_modules/for-each/README.md +4 -0
  1015. data/node_modules/for-each/index.js +4 -11
  1016. data/node_modules/for-each/package.json +36 -47
  1017. data/node_modules/for-each/test/test.js +12 -54
  1018. data/node_modules/get-intrinsic/CHANGELOG.md +0 -8
  1019. data/node_modules/get-intrinsic/index.js +0 -1
  1020. data/node_modules/get-intrinsic/package.json +8 -8
  1021. data/node_modules/import-fresh/index.js +1 -2
  1022. data/node_modules/import-fresh/package.json +1 -6
  1023. data/node_modules/import-fresh/readme.md +8 -14
  1024. data/node_modules/is-async-function/CHANGELOG.md +0 -13
  1025. data/node_modules/is-async-function/index.d.ts +2 -4
  1026. data/node_modules/is-async-function/index.js +18 -3
  1027. data/node_modules/is-async-function/package.json +3 -8
  1028. data/node_modules/is-boolean-object/CHANGELOG.md +0 -11
  1029. data/node_modules/is-boolean-object/index.js +1 -1
  1030. data/node_modules/is-boolean-object/package.json +6 -8
  1031. data/node_modules/is-boolean-object/test/index.js +1 -24
  1032. data/node_modules/is-weakref/CHANGELOG.md +0 -8
  1033. data/node_modules/is-weakref/index.d.ts +1 -1
  1034. data/node_modules/is-weakref/index.js +1 -3
  1035. data/node_modules/is-weakref/package.json +6 -6
  1036. data/node_modules/jscodeshift/CHANGELOG.md +226 -0
  1037. data/node_modules/jscodeshift/CODE_OF_CONDUCT.md +3 -0
  1038. data/node_modules/jscodeshift/CONTRIBUTING.md +48 -0
  1039. data/node_modules/{async-function → jscodeshift}/LICENSE +1 -1
  1040. data/node_modules/jscodeshift/README.md +671 -0
  1041. data/node_modules/jscodeshift/bin/jscodeshift.js +182 -0
  1042. data/node_modules/jscodeshift/bin/jscodeshift.sh +12 -0
  1043. data/node_modules/jscodeshift/dist/Collection.js +472 -0
  1044. data/node_modules/jscodeshift/dist/Runner.js +322 -0
  1045. data/node_modules/jscodeshift/dist/Worker.js +210 -0
  1046. data/node_modules/jscodeshift/dist/__testfixtures__/test-async-transform.input.js +1 -0
  1047. data/node_modules/jscodeshift/dist/__testfixtures__/test-async-transform.js +11 -0
  1048. data/node_modules/jscodeshift/dist/__testfixtures__/test-async-transform.output.js +1 -0
  1049. data/node_modules/jscodeshift/dist/__testfixtures__/test-sync-transform.input.js +1 -0
  1050. data/node_modules/jscodeshift/dist/__testfixtures__/test-sync-transform.js +7 -0
  1051. data/node_modules/jscodeshift/dist/__testfixtures__/test-sync-transform.output.js +1 -0
  1052. data/node_modules/jscodeshift/dist/argsParser.js +273 -0
  1053. data/node_modules/jscodeshift/dist/collections/ImportDeclaration.js +113 -0
  1054. data/node_modules/jscodeshift/dist/collections/JSXElement.js +221 -0
  1055. data/node_modules/jscodeshift/dist/collections/Node.js +187 -0
  1056. data/node_modules/jscodeshift/dist/collections/VariableDeclarator.js +210 -0
  1057. data/node_modules/jscodeshift/dist/collections/index.js +14 -0
  1058. data/node_modules/jscodeshift/dist/core.js +183 -0
  1059. data/node_modules/jscodeshift/dist/getParser.js +25 -0
  1060. data/node_modules/jscodeshift/dist/ignoreFiles.js +68 -0
  1061. data/node_modules/jscodeshift/dist/matchNode.js +40 -0
  1062. data/node_modules/jscodeshift/dist/template.js +173 -0
  1063. data/node_modules/jscodeshift/dist/testUtils.js +173 -0
  1064. data/node_modules/jscodeshift/dist/utils/intersection.js +27 -0
  1065. data/node_modules/jscodeshift/dist/utils/once.js +21 -0
  1066. data/node_modules/jscodeshift/dist/utils/union.js +20 -0
  1067. data/node_modules/jscodeshift/index.js +9 -0
  1068. data/node_modules/jscodeshift/package.json +74 -0
  1069. data/node_modules/jscodeshift/parser/babel5Compat.js +50 -0
  1070. data/node_modules/jscodeshift/parser/babylon.js +57 -0
  1071. data/node_modules/jscodeshift/parser/flow.js +34 -0
  1072. data/node_modules/jscodeshift/parser/ts.js +24 -0
  1073. data/node_modules/jscodeshift/parser/tsOptions.js +46 -0
  1074. data/node_modules/jscodeshift/parser/tsx.js +27 -0
  1075. data/node_modules/jscodeshift/src/Collection.js +472 -0
  1076. data/node_modules/jscodeshift/src/Runner.js +322 -0
  1077. data/node_modules/jscodeshift/src/Worker.js +210 -0
  1078. data/node_modules/jscodeshift/src/__testfixtures__/test-async-transform.input.js +1 -0
  1079. data/node_modules/jscodeshift/src/__testfixtures__/test-async-transform.js +11 -0
  1080. data/node_modules/jscodeshift/src/__testfixtures__/test-async-transform.output.js +1 -0
  1081. data/node_modules/jscodeshift/src/__testfixtures__/test-sync-transform.input.js +1 -0
  1082. data/node_modules/jscodeshift/src/__testfixtures__/test-sync-transform.js +7 -0
  1083. data/node_modules/jscodeshift/src/__testfixtures__/test-sync-transform.output.js +1 -0
  1084. data/node_modules/jscodeshift/src/argsParser.js +273 -0
  1085. data/node_modules/jscodeshift/src/collections/ImportDeclaration.js +113 -0
  1086. data/node_modules/jscodeshift/src/collections/JSXElement.js +221 -0
  1087. data/node_modules/jscodeshift/src/collections/Node.js +187 -0
  1088. data/node_modules/jscodeshift/src/collections/VariableDeclarator.js +210 -0
  1089. data/node_modules/jscodeshift/src/collections/index.js +14 -0
  1090. data/node_modules/jscodeshift/src/core.js +183 -0
  1091. data/node_modules/jscodeshift/src/getParser.js +25 -0
  1092. data/node_modules/jscodeshift/src/ignoreFiles.js +68 -0
  1093. data/node_modules/jscodeshift/src/matchNode.js +40 -0
  1094. data/node_modules/jscodeshift/src/template.js +173 -0
  1095. data/node_modules/jscodeshift/src/testUtils.js +173 -0
  1096. data/node_modules/jscodeshift/src/utils/intersection.js +27 -0
  1097. data/node_modules/jscodeshift/src/utils/once.js +21 -0
  1098. data/node_modules/jscodeshift/src/utils/union.js +20 -0
  1099. data/node_modules/jscodeshift/utils/requirePackage.js +24 -0
  1100. data/node_modules/jscodeshift/utils/testUtils.js +49 -0
  1101. data/node_modules/jscodeshift/website/README.md +44 -0
  1102. data/node_modules/jscodeshift/website/astro.config.mjs +36 -0
  1103. data/node_modules/jscodeshift/website/package.json +17 -0
  1104. data/node_modules/jscodeshift/website/public/favicon.svg +1 -0
  1105. data/node_modules/jscodeshift/website/src/assets/houston.webp +0 -0
  1106. data/node_modules/jscodeshift/website/src/content/config.ts +6 -0
  1107. data/node_modules/jscodeshift/website/src/content/docs/build/api-reference.mdx +406 -0
  1108. data/node_modules/jscodeshift/website/src/content/docs/build/ast-grammar.mdx +3086 -0
  1109. data/node_modules/jscodeshift/website/src/content/docs/index.mdx +15 -0
  1110. data/node_modules/jscodeshift/website/src/content/docs/overview/introduction.mdx +45 -0
  1111. data/node_modules/jscodeshift/website/src/content/docs/run/cli.mdx +161 -0
  1112. data/node_modules/jscodeshift/website/src/env.d.ts +2 -0
  1113. data/node_modules/jscodeshift/website/tsconfig.json +3 -0
  1114. data/node_modules/object-inspect/CHANGELOG.md +0 -8
  1115. data/node_modules/object-inspect/index.js +7 -10
  1116. data/node_modules/object-inspect/package.json +4 -5
  1117. data/node_modules/object-inspect/test/values.js +0 -50
  1118. data/node_modules/possible-typed-array-names/CHANGELOG.md +0 -14
  1119. data/node_modules/possible-typed-array-names/README.md +2 -4
  1120. data/node_modules/possible-typed-array-names/index.d.ts +0 -1
  1121. data/node_modules/possible-typed-array-names/index.js +0 -1
  1122. data/node_modules/possible-typed-array-names/package.json +9 -10
  1123. data/node_modules/possible-typed-array-names/test/index.js +3 -6
  1124. data/node_modules/possible-typed-array-names/tsconfig.json +42 -2
  1125. data/node_modules/recast/lib/lines.d.ts +2 -2
  1126. data/node_modules/recast/lib/printer.js +5 -17
  1127. data/node_modules/recast/package.json +1 -1
  1128. data/node_modules/typescript/README.md +1 -1
  1129. data/node_modules/typescript/lib/_tsc.js +500 -931
  1130. data/node_modules/typescript/lib/_tsserver.js +7 -43
  1131. data/node_modules/typescript/lib/cancellationToken.js +90 -0
  1132. data/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +8 -14
  1133. data/node_modules/typescript/lib/de/diagnosticMessages.generated.json +8 -14
  1134. data/node_modules/typescript/lib/es/diagnosticMessages.generated.json +8 -14
  1135. data/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +8 -14
  1136. data/node_modules/typescript/lib/it/diagnosticMessages.generated.json +8 -14
  1137. data/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +8 -14
  1138. data/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +8 -14
  1139. data/node_modules/typescript/lib/lib.dom.d.ts +142 -769
  1140. data/node_modules/typescript/lib/lib.dom.iterable.d.ts +7 -9
  1141. data/node_modules/typescript/lib/lib.es2015.iterable.d.ts +54 -69
  1142. data/node_modules/typescript/lib/lib.es2020.bigint.d.ts +7 -41
  1143. data/node_modules/typescript/lib/lib.es2023.array.d.ts +24 -24
  1144. data/node_modules/typescript/lib/lib.es5.d.ts +51 -60
  1145. data/node_modules/typescript/lib/lib.esnext.d.ts +0 -2
  1146. data/node_modules/typescript/lib/lib.esnext.iterator.d.ts +1 -1
  1147. data/node_modules/typescript/lib/lib.webworker.d.ts +55 -262
  1148. data/node_modules/typescript/lib/lib.webworker.iterable.d.ts +7 -6
  1149. data/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +8 -14
  1150. data/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +8 -14
  1151. data/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +8 -14
  1152. data/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +8 -14
  1153. data/node_modules/typescript/lib/typescript.d.ts +3 -14
  1154. data/node_modules/typescript/lib/typescript.js +570 -1035
  1155. data/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +8 -14
  1156. data/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +8 -14
  1157. data/node_modules/typescript/package.json +22 -22
  1158. data/node_modules/update-browserslist-db/index.js +7 -5
  1159. data/node_modules/update-browserslist-db/package.json +2 -2
  1160. data/node_modules/which-typed-array/CHANGELOG.md +0 -10
  1161. data/node_modules/which-typed-array/index.js +20 -21
  1162. data/node_modules/which-typed-array/package.json +7 -9
  1163. data/node_modules/which-typed-array/tsconfig.json +1 -1
  1164. data/package.json +1 -0
  1165. metadata +85 -28
  1166. data/node_modules/@babel/generator/lib/generators/deprecated.js +0 -28
  1167. data/node_modules/@babel/generator/lib/generators/deprecated.js.map +0 -1
  1168. data/node_modules/@babel/types/lib/builders/generated/lowercase.js +0 -2886
  1169. data/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +0 -1
  1170. data/node_modules/async-function/CHANGELOG.md +0 -16
  1171. data/node_modules/async-function/README.md +0 -51
  1172. data/node_modules/async-function/index.d.mts +0 -3
  1173. data/node_modules/async-function/index.d.ts +0 -13
  1174. data/node_modules/async-function/index.js +0 -8
  1175. data/node_modules/async-function/index.mjs +0 -4
  1176. data/node_modules/async-function/legacy.js +0 -18
  1177. data/node_modules/async-function/package.json +0 -86
  1178. data/node_modules/async-function/require.mjs +0 -5
  1179. data/node_modules/async-function/test/index.js +0 -40
  1180. data/node_modules/async-function/tsconfig.json +0 -9
  1181. data/node_modules/es-object-atoms/isObject.d.ts +0 -3
  1182. data/node_modules/es-object-atoms/isObject.js +0 -6
  1183. data/node_modules/es-shim-unscopables/index.d.ts +0 -8
  1184. data/node_modules/es-shim-unscopables/tsconfig.json +0 -10
  1185. data/node_modules/for-each/CHANGELOG.md +0 -107
  1186. data/node_modules/for-each/index.d.ts +0 -35
  1187. data/node_modules/for-each/tsconfig.json +0 -8
  1188. data/node_modules/typescript/lib/lib.esnext.float16.d.ts +0 -443
  1189. data/node_modules/typescript/lib/lib.esnext.promise.d.ts +0 -34
@@ -17,8 +17,8 @@ and limitations under the License.
17
17
  "use strict";
18
18
 
19
19
  // src/compiler/corePublic.ts
20
- var versionMajorMinor = "5.8";
21
- var version = "5.8.2";
20
+ var versionMajorMinor = "5.7";
21
+ var version = "5.7.2";
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -3733,7 +3733,6 @@ var ModuleKind = /* @__PURE__ */ ((ModuleKind2) => {
3733
3733
  ModuleKind2[ModuleKind2["ES2022"] = 7] = "ES2022";
3734
3734
  ModuleKind2[ModuleKind2["ESNext"] = 99] = "ESNext";
3735
3735
  ModuleKind2[ModuleKind2["Node16"] = 100] = "Node16";
3736
- ModuleKind2[ModuleKind2["Node18"] = 101] = "Node18";
3737
3736
  ModuleKind2[ModuleKind2["NodeNext"] = 199] = "NodeNext";
3738
3737
  ModuleKind2[ModuleKind2["Preserve"] = 200] = "Preserve";
3739
3738
  return ModuleKind2;
@@ -5500,105 +5499,23 @@ function resolvePath(path, ...paths) {
5500
5499
  function getNormalizedPathComponents(path, currentDirectory) {
5501
5500
  return reducePathComponents(getPathComponents(path, currentDirectory));
5502
5501
  }
5503
- function getNormalizedAbsolutePath(path, currentDirectory) {
5504
- let rootLength = getRootLength(path);
5505
- if (rootLength === 0 && currentDirectory) {
5506
- path = combinePaths(currentDirectory, path);
5507
- rootLength = getRootLength(path);
5508
- } else {
5509
- path = normalizeSlashes(path);
5510
- }
5511
- const simpleNormalized = simpleNormalizePath(path);
5512
- if (simpleNormalized !== void 0) {
5513
- return simpleNormalized.length > rootLength ? removeTrailingDirectorySeparator(simpleNormalized) : simpleNormalized;
5514
- }
5515
- const length2 = path.length;
5516
- const root = path.substring(0, rootLength);
5517
- let normalized;
5518
- let index = rootLength;
5519
- let segmentStart = index;
5520
- let normalizedUpTo = index;
5521
- let seenNonDotDotSegment = rootLength !== 0;
5522
- while (index < length2) {
5523
- segmentStart = index;
5524
- let ch = path.charCodeAt(index);
5525
- while (ch === 47 /* slash */ && index + 1 < length2) {
5526
- index++;
5527
- ch = path.charCodeAt(index);
5528
- }
5529
- if (index > segmentStart) {
5530
- normalized ?? (normalized = path.substring(0, segmentStart - 1));
5531
- segmentStart = index;
5532
- }
5533
- let segmentEnd = path.indexOf(directorySeparator, index + 1);
5534
- if (segmentEnd === -1) {
5535
- segmentEnd = length2;
5536
- }
5537
- const segmentLength = segmentEnd - segmentStart;
5538
- if (segmentLength === 1 && path.charCodeAt(index) === 46 /* dot */) {
5539
- normalized ?? (normalized = path.substring(0, normalizedUpTo));
5540
- } else if (segmentLength === 2 && path.charCodeAt(index) === 46 /* dot */ && path.charCodeAt(index + 1) === 46 /* dot */) {
5541
- if (!seenNonDotDotSegment) {
5542
- if (normalized !== void 0) {
5543
- normalized += normalized.length === rootLength ? ".." : "/..";
5544
- } else {
5545
- normalizedUpTo = index + 2;
5546
- }
5547
- } else if (normalized === void 0) {
5548
- if (normalizedUpTo - 2 >= 0) {
5549
- normalized = path.substring(0, Math.max(rootLength, path.lastIndexOf(directorySeparator, normalizedUpTo - 2)));
5550
- } else {
5551
- normalized = path.substring(0, normalizedUpTo);
5552
- }
5553
- } else {
5554
- const lastSlash = normalized.lastIndexOf(directorySeparator);
5555
- if (lastSlash !== -1) {
5556
- normalized = normalized.substring(0, Math.max(rootLength, lastSlash));
5557
- } else {
5558
- normalized = root;
5559
- }
5560
- if (normalized.length === rootLength) {
5561
- seenNonDotDotSegment = rootLength !== 0;
5562
- }
5563
- }
5564
- } else if (normalized !== void 0) {
5565
- if (normalized.length !== rootLength) {
5566
- normalized += directorySeparator;
5567
- }
5568
- seenNonDotDotSegment = true;
5569
- normalized += path.substring(segmentStart, segmentEnd);
5570
- } else {
5571
- seenNonDotDotSegment = true;
5572
- normalizedUpTo = segmentEnd;
5573
- }
5574
- index = segmentEnd + 1;
5575
- }
5576
- return normalized ?? (length2 > rootLength ? removeTrailingDirectorySeparator(path) : path);
5502
+ function getNormalizedAbsolutePath(fileName, currentDirectory) {
5503
+ return getPathFromPathComponents(getNormalizedPathComponents(fileName, currentDirectory));
5577
5504
  }
5578
5505
  function normalizePath(path) {
5579
5506
  path = normalizeSlashes(path);
5580
- let normalized = simpleNormalizePath(path);
5581
- if (normalized !== void 0) {
5582
- return normalized;
5583
- }
5584
- normalized = getNormalizedAbsolutePath(path, "");
5585
- return normalized && hasTrailingDirectorySeparator(path) ? ensureTrailingDirectorySeparator(normalized) : normalized;
5586
- }
5587
- function simpleNormalizePath(path) {
5588
5507
  if (!relativePathSegmentRegExp.test(path)) {
5589
5508
  return path;
5590
5509
  }
5591
- let simplified = path.replace(/\/\.\//g, "/");
5592
- if (simplified.startsWith("./")) {
5593
- simplified = simplified.slice(2);
5594
- }
5510
+ const simplified = path.replace(/\/\.\//g, "/").replace(/^\.\//, "");
5595
5511
  if (simplified !== path) {
5596
5512
  path = simplified;
5597
5513
  if (!relativePathSegmentRegExp.test(path)) {
5598
5514
  return path;
5599
5515
  }
5600
5516
  }
5601
- return void 0;
5517
+ const normalized = getPathFromPathComponents(reducePathComponents(getPathComponents(path)));
5518
+ return normalized && hasTrailingDirectorySeparator(path) ? ensureTrailingDirectorySeparator(normalized) : normalized;
5602
5519
  }
5603
5520
  function getPathWithoutRoot(pathComponents2) {
5604
5521
  if (pathComponents2.length === 0) return "";
@@ -6020,7 +5937,6 @@ var Diagnostics = {
6020
5937
  _0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported: diag(1291, 1 /* Error */, "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291", "'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),
6021
5938
  _0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default: diag(1292, 1 /* Error */, "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292", "'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),
6022
5939
  ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve: diag(1293, 1 /* Error */, "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293", "ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),
6023
- This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled: diag(1294, 1 /* Error */, "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294", "This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),
6024
5940
  with_statements_are_not_allowed_in_an_async_function_block: diag(1300, 1 /* Error */, "with_statements_are_not_allowed_in_an_async_function_block_1300", "'with' statements are not allowed in an async function block."),
6025
5941
  await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: diag(1308, 1 /* Error */, "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308", "'await' expressions are only allowed within async functions and at the top levels of modules."),
6026
5942
  The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level: diag(1309, 1 /* Error */, "The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309", "The current file is a CommonJS module and cannot use 'await' at the top level."),
@@ -6035,8 +5951,8 @@ var Diagnostics = {
6035
5951
  Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1320, 1 /* Error */, "Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320", "Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),
6036
5952
  Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1321, 1 /* Error */, "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321", "Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),
6037
5953
  Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1322, 1 /* Error */, "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322", "Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),
6038
- Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_or_nodenext: diag(1323, 1 /* Error */, "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323", "Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', or 'nodenext'."),
6039
- Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_nodenext_or_preserve: diag(1324, 1 /* Error */, "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324", "Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'nodenext', or 'preserve'."),
5954
+ Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext: diag(1323, 1 /* Error */, "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323", "Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),
5955
+ Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodenext_or_preserve: diag(1324, 1 /* Error */, "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodene_1324", "Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'nodenext', or 'preserve'."),
6040
5956
  Argument_of_dynamic_import_cannot_be_spread_element: diag(1325, 1 /* Error */, "Argument_of_dynamic_import_cannot_be_spread_element_1325", "Argument of dynamic import cannot be spread element."),
6041
5957
  This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments: diag(1326, 1 /* Error */, "This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326", "This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),
6042
5958
  String_literal_with_double_quotes_expected: diag(1327, 1 /* Error */, "String_literal_with_double_quotes_expected_1327", "String literal with double quotes expected."),
@@ -6053,7 +5969,7 @@ var Diagnostics = {
6053
5969
  Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here: diag(1339, 1 /* Error */, "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339", "Module '{0}' does not refer to a value, but is used as a value here."),
6054
5970
  Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0: diag(1340, 1 /* Error */, "Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340", "Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),
6055
5971
  Class_constructor_may_not_be_an_accessor: diag(1341, 1 /* Error */, "Class_constructor_may_not_be_an_accessor_1341", "Class constructor may not be an accessor."),
6056
- The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_or_nodenext: diag(1343, 1 /* Error */, "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343", "The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', or 'nodenext'."),
5972
+ The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext: diag(1343, 1 /* Error */, "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343", "The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),
6057
5973
  A_label_is_not_allowed_here: diag(1344, 1 /* Error */, "A_label_is_not_allowed_here_1344", "'A label is not allowed here."),
6058
5974
  An_expression_of_type_void_cannot_be_tested_for_truthiness: diag(1345, 1 /* Error */, "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345", "An expression of type 'void' cannot be tested for truthiness."),
6059
5975
  This_parameter_is_not_allowed_with_use_strict_directive: diag(1346, 1 /* Error */, "This_parameter_is_not_allowed_with_use_strict_directive_1346", "This parameter is not allowed with 'use strict' directive."),
@@ -6083,7 +5999,7 @@ var Diagnostics = {
6083
5999
  await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(1375, 1 /* Error */, "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375", "'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),
6084
6000
  _0_was_imported_here: diag(1376, 3 /* Message */, "_0_was_imported_here_1376", "'{0}' was imported here."),
6085
6001
  _0_was_exported_here: diag(1377, 3 /* Message */, "_0_was_exported_here_1377", "'{0}' was exported here."),
6086
- Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(1378, 1 /* Error */, "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378", "Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),
6002
+ Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(1378, 1 /* Error */, "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378", "Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),
6087
6003
  An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type: diag(1379, 1 /* Error */, "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379", "An import alias cannot reference a declaration that was exported using 'export type'."),
6088
6004
  An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type: diag(1380, 1 /* Error */, "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380", "An import alias cannot reference a declaration that was imported using 'import type'."),
6089
6005
  Unexpected_token_Did_you_mean_or_rbrace: diag(1381, 1 /* Error */, "Unexpected_token_Did_you_mean_or_rbrace_1381", "Unexpected token. Did you mean `{'}'}` or `&rbrace;`?"),
@@ -6134,7 +6050,7 @@ var Diagnostics = {
6134
6050
  File_redirects_to_file_0: diag(1429, 3 /* Message */, "File_redirects_to_file_0_1429", "File redirects to file '{0}'"),
6135
6051
  The_file_is_in_the_program_because_Colon: diag(1430, 3 /* Message */, "The_file_is_in_the_program_because_Colon_1430", "The file is in the program because:"),
6136
6052
  for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(1431, 1 /* Error */, "for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431", "'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),
6137
- Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(1432, 1 /* Error */, "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432", "Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),
6053
+ Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(1432, 1 /* Error */, "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432", "Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),
6138
6054
  Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters: diag(1433, 1 /* Error */, "Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433", "Neither decorators nor modifiers may be applied to 'this' parameters."),
6139
6055
  Unexpected_keyword_or_identifier: diag(1434, 1 /* Error */, "Unexpected_keyword_or_identifier_1434", "Unexpected keyword or identifier."),
6140
6056
  Unknown_keyword_or_identifier_Did_you_mean_0: diag(1435, 1 /* Error */, "Unknown_keyword_or_identifier_Did_you_mean_0_1435", "Unknown keyword or identifier. Did you mean '{0}'?"),
@@ -6776,9 +6692,9 @@ var Diagnostics = {
6776
6692
  Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers: diag(2818, 1 /* Error */, "Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818", "Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),
6777
6693
  Namespace_name_cannot_be_0: diag(2819, 1 /* Error */, "Namespace_name_cannot_be_0_2819", "Namespace name cannot be '{0}'."),
6778
6694
  Type_0_is_not_assignable_to_type_1_Did_you_mean_2: diag(2820, 1 /* Error */, "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820", "Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),
6779
- Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve: diag(2821, 1 /* Error */, "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821", "Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'."),
6695
+ Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve: diag(2821, 1 /* Error */, "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821", "Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),
6780
6696
  Import_assertions_cannot_be_used_with_type_only_imports_or_exports: diag(2822, 1 /* Error */, "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822", "Import assertions cannot be used with type-only imports or exports."),
6781
- Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve: diag(2823, 1 /* Error */, "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823", "Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'."),
6697
+ Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve: diag(2823, 1 /* Error */, "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823", "Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),
6782
6698
  Cannot_find_namespace_0_Did_you_mean_1: diag(2833, 1 /* Error */, "Cannot_find_namespace_0_Did_you_mean_1_2833", "Cannot find namespace '{0}'. Did you mean '{1}'?"),
6783
6699
  Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path: diag(2834, 1 /* Error */, "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834", "Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),
6784
6700
  Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0: diag(2835, 1 /* Error */, "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835", "Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),
@@ -6798,7 +6714,7 @@ var Diagnostics = {
6798
6714
  The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined: diag(2851, 1 /* Error */, "The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851", "The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),
6799
6715
  await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: diag(2852, 1 /* Error */, "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852", "'await using' statements are only allowed within async functions and at the top levels of modules."),
6800
6716
  await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(2853, 1 /* Error */, "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853", "'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),
6801
- Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(2854, 1 /* Error */, "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854", "Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),
6717
+ Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(2854, 1 /* Error */, "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854", "Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),
6802
6718
  Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super: diag(2855, 1 /* Error */, "Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855", "Class field '{0}' defined by the parent class is not accessible in the child class via super."),
6803
6719
  Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls: diag(2856, 1 /* Error */, "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856", "Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),
6804
6720
  Import_attributes_cannot_be_used_with_type_only_imports_or_exports: diag(2857, 1 /* Error */, "Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857", "Import attributes cannot be used with type-only imports or exports."),
@@ -6824,7 +6740,6 @@ var Diagnostics = {
6824
6740
  This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path: diag(2877, 1 /* Error */, "This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877", "This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),
6825
6741
  This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files: diag(2878, 1 /* Error */, "This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878", "This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),
6826
6742
  Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found: diag(2879, 1 /* Error */, "Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879", "Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),
6827
- Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert: diag(2880, 1 /* Error */, "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880", "Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),
6828
6743
  Import_declaration_0_is_using_private_name_1: diag(4e3, 1 /* Error */, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
6829
6744
  Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, 1 /* Error */, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
6830
6745
  Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, 1 /* Error */, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
@@ -6934,8 +6849,6 @@ var Diagnostics = {
6934
6849
  Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: diag(4124, 1 /* Error */, "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124", "Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),
6935
6850
  Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given: diag(4125, 1 /* Error */, "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125", "Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),
6936
6851
  One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value: diag(4126, 1 /* Error */, "One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126", "One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),
6937
- This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic: diag(4127, 1 /* Error */, "This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127", "This member cannot have an 'override' modifier because its name is dynamic."),
6938
- This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic: diag(4128, 1 /* Error */, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128", "This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),
6939
6852
  The_current_host_does_not_support_the_0_option: diag(5001, 1 /* Error */, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."),
6940
6853
  Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, 1 /* Error */, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."),
6941
6854
  File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, 1 /* Error */, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),
@@ -7508,13 +7421,11 @@ var Diagnostics = {
7508
7421
  Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types: diag(6718, 3 /* Message */, "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718", "Specify emit/checking behavior for imports that are only used for types."),
7509
7422
  Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files: diag(6719, 3 /* Message */, "Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719", "Require sufficient annotation on exports so other tools can trivially generate declaration files."),
7510
7423
  Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any: diag(6720, 3 /* Message */, "Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720", "Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),
7511
- Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript: diag(6721, 3 /* Message */, "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721", "Do not allow runtime constructs that are not part of ECMAScript."),
7512
7424
  Default_catch_clause_variables_as_unknown_instead_of_any: diag(6803, 3 /* Message */, "Default_catch_clause_variables_as_unknown_instead_of_any_6803", "Default catch clause variables as 'unknown' instead of 'any'."),
7513
7425
  Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting: diag(6804, 3 /* Message */, "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804", "Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),
7514
7426
  Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported: diag(6805, 3 /* Message */, "Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805", "Disable full type checking (only critical parse and emit errors will be reported)."),
7515
7427
  Check_side_effect_imports: diag(6806, 3 /* Message */, "Check_side_effect_imports_6806", "Check side effect imports."),
7516
7428
  This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2: diag(6807, 1 /* Error */, "This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807", "This operation can be simplified. This shift is identical to `{0} {1} {2}`."),
7517
- Enable_lib_replacement: diag(6808, 3 /* Message */, "Enable_lib_replacement_6808", "Enable lib replacement."),
7518
7429
  one_of_Colon: diag(6900, 3 /* Message */, "one_of_Colon_6900", "one of:"),
7519
7430
  one_or_more_Colon: diag(6901, 3 /* Message */, "one_or_more_Colon_6901", "one or more:"),
7520
7431
  type_Colon: diag(6902, 3 /* Message */, "type_Colon_6902", "type:"),
@@ -11232,7 +11143,6 @@ function sortAndDeduplicateDiagnostics(diagnostics) {
11232
11143
  }
11233
11144
  var targetToLibMap = /* @__PURE__ */ new Map([
11234
11145
  [99 /* ESNext */, "lib.esnext.full.d.ts"],
11235
- [11 /* ES2024 */, "lib.es2024.full.d.ts"],
11236
11146
  [10 /* ES2023 */, "lib.es2023.full.d.ts"],
11237
11147
  [9 /* ES2022 */, "lib.es2022.full.d.ts"],
11238
11148
  [8 /* ES2021 */, "lib.es2021.full.d.ts"],
@@ -11248,7 +11158,6 @@ function getDefaultLibFileName(options) {
11248
11158
  const target = getEmitScriptTarget(options);
11249
11159
  switch (target) {
11250
11160
  case 99 /* ESNext */:
11251
- case 11 /* ES2024 */:
11252
11161
  case 10 /* ES2023 */:
11253
11162
  case 9 /* ES2022 */:
11254
11163
  case 8 /* ES2021 */:
@@ -13239,9 +13148,6 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
13239
13148
  "trunc",
13240
13149
  "fround",
13241
13150
  "cbrt"
13242
- ],
13243
- esnext: [
13244
- "f16round"
13245
13151
  ]
13246
13152
  })),
13247
13153
  Map: new Map(Object.entries({
@@ -13411,10 +13317,6 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
13411
13317
  "setBigUint64",
13412
13318
  "getBigInt64",
13413
13319
  "getBigUint64"
13414
- ],
13415
- esnext: [
13416
- "setFloat16",
13417
- "getFloat16"
13418
13320
  ]
13419
13321
  })),
13420
13322
  BigInt: new Map(Object.entries({
@@ -13518,9 +13420,6 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
13518
13420
  "with"
13519
13421
  ]
13520
13422
  })),
13521
- Float16Array: new Map(Object.entries({
13522
- esnext: emptyArray
13523
- })),
13524
13423
  Float32Array: new Map(Object.entries({
13525
13424
  es2022: [
13526
13425
  "at"
@@ -13689,7 +13588,7 @@ function getNonAugmentationDeclaration(symbol) {
13689
13588
  return (_a = symbol.declarations) == null ? void 0 : _a.find((d) => !isExternalModuleAugmentation(d) && !(isModuleDeclaration(d) && isGlobalScopeAugmentation(d)));
13690
13589
  }
13691
13590
  function isCommonJSContainingModuleKind(kind) {
13692
- return kind === 1 /* CommonJS */ || 100 /* Node16 */ <= kind && kind <= 199 /* NodeNext */;
13591
+ return kind === 1 /* CommonJS */ || kind === 100 /* Node16 */ || kind === 199 /* NodeNext */;
13693
13592
  }
13694
13593
  function isEffectiveExternalModule(node, compilerOptions) {
13695
13594
  return isExternalModule(node) || isCommonJSContainingModuleKind(getEmitModuleKind(compilerOptions)) && !!node.commonJsModuleIndicator;
@@ -14357,6 +14256,9 @@ function forEachPropertyAssignment(objectLiteral, key, callback, key2) {
14357
14256
  return key === propName || key2 && key2 === propName ? callback(property) : void 0;
14358
14257
  });
14359
14258
  }
14259
+ function getPropertyArrayElementValue(objectLiteral, propKey, elementValue) {
14260
+ return forEachPropertyAssignment(objectLiteral, propKey, (property) => isArrayLiteralExpression(property.initializer) ? find(property.initializer.elements, (element) => isStringLiteral(element) && element.text === elementValue) : void 0);
14261
+ }
14360
14262
  function getTsConfigObjectLiteralExpression(tsConfigSourceFile) {
14361
14263
  if (tsConfigSourceFile && tsConfigSourceFile.statements.length) {
14362
14264
  const expression = tsConfigSourceFile.statements[0].expression;
@@ -17914,7 +17816,7 @@ var _computedOptions = createComputedCompilerOptions({
17914
17816
  dependencies: ["module"],
17915
17817
  computeValue: (compilerOptions) => {
17916
17818
  const target = compilerOptions.target === 0 /* ES3 */ ? void 0 : compilerOptions.target;
17917
- return target ?? (compilerOptions.module === 100 /* Node16 */ && 9 /* ES2022 */ || compilerOptions.module === 101 /* Node18 */ && 9 /* ES2022 */ || compilerOptions.module === 199 /* NodeNext */ && 99 /* ESNext */ || 1 /* ES5 */);
17819
+ return target ?? (compilerOptions.module === 100 /* Node16 */ && 9 /* ES2022 */ || compilerOptions.module === 199 /* NodeNext */ && 99 /* ESNext */ || 1 /* ES5 */);
17918
17820
  }
17919
17821
  },
17920
17822
  module: {
@@ -17933,7 +17835,6 @@ var _computedOptions = createComputedCompilerOptions({
17933
17835
  moduleResolution = 2 /* Node10 */;
17934
17836
  break;
17935
17837
  case 100 /* Node16 */:
17936
- case 101 /* Node18 */:
17937
17838
  moduleResolution = 3 /* Node16 */;
17938
17839
  break;
17939
17840
  case 199 /* NodeNext */:
@@ -17953,11 +17854,7 @@ var _computedOptions = createComputedCompilerOptions({
17953
17854
  moduleDetection: {
17954
17855
  dependencies: ["module", "target"],
17955
17856
  computeValue: (compilerOptions) => {
17956
- if (compilerOptions.moduleDetection !== void 0) {
17957
- return compilerOptions.moduleDetection;
17958
- }
17959
- const moduleKind = _computedOptions.module.computeValue(compilerOptions);
17960
- return 100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */ ? 3 /* Force */ : 2 /* Auto */;
17857
+ return compilerOptions.moduleDetection || (_computedOptions.module.computeValue(compilerOptions) === 100 /* Node16 */ || _computedOptions.module.computeValue(compilerOptions) === 199 /* NodeNext */ ? 3 /* Force */ : 2 /* Auto */);
17961
17858
  }
17962
17859
  },
17963
17860
  isolatedModules: {
@@ -17974,7 +17871,6 @@ var _computedOptions = createComputedCompilerOptions({
17974
17871
  }
17975
17872
  switch (_computedOptions.module.computeValue(compilerOptions)) {
17976
17873
  case 100 /* Node16 */:
17977
- case 101 /* Node18 */:
17978
17874
  case 199 /* NodeNext */:
17979
17875
  case 200 /* Preserve */:
17980
17876
  return true;
@@ -18168,9 +18064,6 @@ function unusedLabelIsError(options) {
18168
18064
  function moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution) {
18169
18065
  return moduleResolution >= 3 /* Node16 */ && moduleResolution <= 99 /* NodeNext */ || moduleResolution === 100 /* Bundler */;
18170
18066
  }
18171
- function moduleSupportsImportAttributes(moduleKind) {
18172
- return 101 /* Node18 */ <= moduleKind && moduleKind <= 199 /* NodeNext */ || moduleKind === 200 /* Preserve */ || moduleKind === 99 /* ESNext */;
18173
- }
18174
18067
  function getStrictOptionValue(compilerOptions, flag) {
18175
18068
  return compilerOptions[flag] === void 0 ? !!compilerOptions.strict : !!compilerOptions[flag];
18176
18069
  }
@@ -18888,7 +18781,7 @@ function isValidBigIntString(s, roundTripOnly) {
18888
18781
  return success && result === 10 /* BigIntLiteral */ && scanner.getTokenEnd() === s.length + 1 && !(flags & 512 /* ContainsSeparator */) && (!roundTripOnly || s === pseudoBigIntToString({ negative, base10Value: parsePseudoBigInt(scanner.getTokenValue()) }));
18889
18782
  }
18890
18783
  function isValidTypeOnlyAliasUseSite(useSite) {
18891
- return !!(useSite.flags & 33554432 /* Ambient */) || isInJSDoc(useSite) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite));
18784
+ return !!(useSite.flags & 33554432 /* Ambient */) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite));
18892
18785
  }
18893
18786
  function isShorthandPropertyNameUseSite(useSite) {
18894
18787
  return isIdentifier(useSite) && isShorthandPropertyAssignment(useSite.parent) && useSite.parent.name === useSite;
@@ -19954,64 +19847,6 @@ function getNodeAtPosition(sourceFile, position, includeJSDoc) {
19954
19847
  function isNewScopeNode(node) {
19955
19848
  return isFunctionLike(node) || isJSDocSignature(node) || isMappedTypeNode(node);
19956
19849
  }
19957
- function getLibNameFromLibReference(libReference) {
19958
- return toFileNameLowerCase(libReference.fileName);
19959
- }
19960
- function getLibFileNameFromLibReference(libReference) {
19961
- const libName = getLibNameFromLibReference(libReference);
19962
- return libMap.get(libName);
19963
- }
19964
- function forEachResolvedProjectReference(resolvedProjectReferences, cb) {
19965
- return forEachProjectReference(
19966
- /*projectReferences*/
19967
- void 0,
19968
- resolvedProjectReferences,
19969
- (resolvedRef, parent) => resolvedRef && cb(resolvedRef, parent)
19970
- );
19971
- }
19972
- function forEachProjectReference(projectReferences, resolvedProjectReferences, cbResolvedRef, cbRef) {
19973
- let seenResolvedRefs;
19974
- return worker(
19975
- projectReferences,
19976
- resolvedProjectReferences,
19977
- /*parent*/
19978
- void 0
19979
- );
19980
- function worker(projectReferences2, resolvedProjectReferences2, parent) {
19981
- if (cbRef) {
19982
- const result = cbRef(projectReferences2, parent);
19983
- if (result) return result;
19984
- }
19985
- let skipChildren;
19986
- return forEach(
19987
- resolvedProjectReferences2,
19988
- (resolvedRef, index) => {
19989
- if (resolvedRef && (seenResolvedRefs == null ? void 0 : seenResolvedRefs.has(resolvedRef.sourceFile.path))) {
19990
- (skipChildren ?? (skipChildren = /* @__PURE__ */ new Set())).add(resolvedRef);
19991
- return void 0;
19992
- }
19993
- const result = cbResolvedRef(resolvedRef, parent, index);
19994
- if (result || !resolvedRef) return result;
19995
- (seenResolvedRefs || (seenResolvedRefs = /* @__PURE__ */ new Set())).add(resolvedRef.sourceFile.path);
19996
- }
19997
- ) || forEach(
19998
- resolvedProjectReferences2,
19999
- (resolvedRef) => resolvedRef && !(skipChildren == null ? void 0 : skipChildren.has(resolvedRef)) ? worker(resolvedRef.commandLine.projectReferences, resolvedRef.references, resolvedRef) : void 0
20000
- );
20001
- }
20002
- }
20003
- function getOptionsSyntaxByArrayElementValue(optionsObject, name, value) {
20004
- return optionsObject && getPropertyArrayElementValue(optionsObject, name, value);
20005
- }
20006
- function getPropertyArrayElementValue(objectLiteral, propKey, elementValue) {
20007
- return forEachPropertyAssignment(objectLiteral, propKey, (property) => isArrayLiteralExpression(property.initializer) ? find(property.initializer.elements, (element) => isStringLiteral(element) && element.text === elementValue) : void 0);
20008
- }
20009
- function getOptionsSyntaxByValue(optionsObject, name, value) {
20010
- return forEachOptionsSyntaxByName(optionsObject, name, (property) => isStringLiteral(property.initializer) && property.initializer.text === value ? property.initializer : void 0);
20011
- }
20012
- function forEachOptionsSyntaxByName(optionsObject, name, callback) {
20013
- return forEachPropertyAssignment(optionsObject, name, callback);
20014
- }
20015
19850
 
20016
19851
  // src/compiler/factory/baseNodeFactory.ts
20017
19852
  function createBaseNodeFactory() {
@@ -22618,8 +22453,6 @@ function createNodeFactory(flags, baseFactory2) {
22618
22453
  node.colonToken = colonToken ?? createToken(59 /* ColonToken */);
22619
22454
  node.whenFalse = parenthesizerRules().parenthesizeBranchOfConditionalExpression(whenFalse);
22620
22455
  node.transformFlags |= propagateChildFlags(node.condition) | propagateChildFlags(node.questionToken) | propagateChildFlags(node.whenTrue) | propagateChildFlags(node.colonToken) | propagateChildFlags(node.whenFalse);
22621
- node.flowNodeWhenFalse = void 0;
22622
- node.flowNodeWhenTrue = void 0;
22623
22456
  return node;
22624
22457
  }
22625
22458
  function updateConditionalExpression(node, condition, questionToken, whenTrue, colonToken, whenFalse) {
@@ -24423,7 +24256,7 @@ function createNodeFactory(flags, baseFactory2) {
24423
24256
  function isIgnorableParen(node) {
24424
24257
  return isParenthesizedExpression(node) && nodeIsSynthesized(node) && nodeIsSynthesized(getSourceMapRange(node)) && nodeIsSynthesized(getCommentRange(node)) && !some(getSyntheticLeadingComments(node)) && !some(getSyntheticTrailingComments(node));
24425
24258
  }
24426
- function restoreOuterExpressions(outerExpression, innerExpression, kinds = 63 /* All */) {
24259
+ function restoreOuterExpressions(outerExpression, innerExpression, kinds = 31 /* All */) {
24427
24260
  if (outerExpression && isOuterExpression(outerExpression, kinds) && !isIgnorableParen(outerExpression)) {
24428
24261
  return updateOuterExpression(
24429
24262
  outerExpression,
@@ -24469,7 +24302,7 @@ function createNodeFactory(flags, baseFactory2) {
24469
24302
  }
24470
24303
  }
24471
24304
  function createCallBinding(expression, recordTempVariable, languageVersion, cacheIdentifiers = false) {
24472
- const callee = skipOuterExpressions(expression, 63 /* All */);
24305
+ const callee = skipOuterExpressions(expression, 31 /* All */);
24473
24306
  let thisArg;
24474
24307
  let target;
24475
24308
  if (isSuperProperty(callee)) {
@@ -27338,7 +27171,7 @@ function getJSDocTypeAssertionType(node) {
27338
27171
  Debug.assertIsDefined(type);
27339
27172
  return type;
27340
27173
  }
27341
- function isOuterExpression(node, kinds = 63 /* All */) {
27174
+ function isOuterExpression(node, kinds = 31 /* All */) {
27342
27175
  switch (node.kind) {
27343
27176
  case 217 /* ParenthesizedExpression */:
27344
27177
  if (kinds & -2147483648 /* ExcludeJSDocTypeAssertion */ && isJSDocTypeAssertion(node)) {
@@ -27347,9 +27180,8 @@ function isOuterExpression(node, kinds = 63 /* All */) {
27347
27180
  return (kinds & 1 /* Parentheses */) !== 0;
27348
27181
  case 216 /* TypeAssertionExpression */:
27349
27182
  case 234 /* AsExpression */:
27350
- return (kinds & 2 /* TypeAssertions */) !== 0;
27351
27183
  case 238 /* SatisfiesExpression */:
27352
- return (kinds & (2 /* TypeAssertions */ | 32 /* Satisfies */)) !== 0;
27184
+ return (kinds & 2 /* TypeAssertions */) !== 0;
27353
27185
  case 233 /* ExpressionWithTypeArguments */:
27354
27186
  return (kinds & 16 /* ExpressionsWithTypeArguments */) !== 0;
27355
27187
  case 235 /* NonNullExpression */:
@@ -27359,13 +27191,13 @@ function isOuterExpression(node, kinds = 63 /* All */) {
27359
27191
  }
27360
27192
  return false;
27361
27193
  }
27362
- function skipOuterExpressions(node, kinds = 63 /* All */) {
27194
+ function skipOuterExpressions(node, kinds = 31 /* All */) {
27363
27195
  while (isOuterExpression(node, kinds)) {
27364
27196
  node = node.expression;
27365
27197
  }
27366
27198
  return node;
27367
27199
  }
27368
- function walkUpOuterExpressions(node, kinds = 63 /* All */) {
27200
+ function walkUpOuterExpressions(node, kinds = 31 /* All */) {
27369
27201
  let parent = node.parent;
27370
27202
  while (isOuterExpression(parent, kinds)) {
27371
27203
  parent = parent.parent;
@@ -35222,7 +35054,6 @@ var Parser;
35222
35054
  const node = factory2.createExpressionWithTypeArguments(expression, typeArguments);
35223
35055
  const res = finishNode(node, pos);
35224
35056
  if (usedBrace) {
35225
- skipWhitespace();
35226
35057
  parseExpected(20 /* CloseBraceToken */);
35227
35058
  }
35228
35059
  return res;
@@ -36268,8 +36099,6 @@ var libEntries = [
36268
36099
  ["esnext.regexp", "lib.es2024.regexp.d.ts"],
36269
36100
  ["esnext.string", "lib.es2024.string.d.ts"],
36270
36101
  ["esnext.iterator", "lib.esnext.iterator.d.ts"],
36271
- ["esnext.promise", "lib.esnext.promise.d.ts"],
36272
- ["esnext.float16", "lib.esnext.float16.d.ts"],
36273
36102
  ["decorators", "lib.decorators.d.ts"],
36274
36103
  ["decorators.legacy", "lib.decorators.legacy.d.ts"]
36275
36104
  ];
@@ -36596,7 +36425,6 @@ var moduleOptionDeclaration = {
36596
36425
  es2022: 7 /* ES2022 */,
36597
36426
  esnext: 99 /* ESNext */,
36598
36427
  node16: 100 /* Node16 */,
36599
- node18: 101 /* Node18 */,
36600
36428
  nodenext: 199 /* NodeNext */,
36601
36429
  preserve: 200 /* Preserve */
36602
36430
  })),
@@ -36849,23 +36677,6 @@ var commandOptionsWithoutBuild = [
36849
36677
  affectsBuildInfo: true,
36850
36678
  affectsSemanticDiagnostics: true
36851
36679
  },
36852
- {
36853
- name: "erasableSyntaxOnly",
36854
- type: "boolean",
36855
- category: Diagnostics.Interop_Constraints,
36856
- description: Diagnostics.Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript,
36857
- defaultValueDescription: false,
36858
- affectsBuildInfo: true,
36859
- affectsSemanticDiagnostics: true
36860
- },
36861
- {
36862
- name: "libReplacement",
36863
- type: "boolean",
36864
- affectsProgramStructure: true,
36865
- category: Diagnostics.Language_and_Environment,
36866
- description: Diagnostics.Enable_lib_replacement,
36867
- defaultValueDescription: true
36868
- },
36869
36680
  // Strict Type Checks
36870
36681
  {
36871
36682
  name: "strict",
@@ -40918,7 +40729,9 @@ function tryFileLookup(fileName, onlyRecordFailures, state) {
40918
40729
  }
40919
40730
  function loadNodeModuleFromDirectory(extensions, candidate, onlyRecordFailures, state, considerPackageJson = true) {
40920
40731
  const packageInfo = considerPackageJson ? getPackageJsonInfo(candidate, onlyRecordFailures, state) : void 0;
40921
- return withPackageId(packageInfo, loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageInfo), state);
40732
+ const packageJsonContent = packageInfo && packageInfo.contents.packageJsonContent;
40733
+ const versionPaths = packageInfo && getVersionPathsOfPackageJsonInfo(packageInfo, state);
40734
+ return withPackageId(packageInfo, loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageJsonContent, versionPaths), state);
40922
40735
  }
40923
40736
  function getTemporaryModuleResolutionState(packageJsonInfoCache, host, options) {
40924
40737
  return {
@@ -41025,14 +40838,13 @@ function getPackageJsonInfo(packageDirectory, onlyRecordFailures, state) {
41025
40838
  (_f = state.failedLookupLocations) == null ? void 0 : _f.push(packageJsonPath);
41026
40839
  }
41027
40840
  }
41028
- function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageJson) {
41029
- const versionPaths = packageJson && getVersionPathsOfPackageJsonInfo(packageJson, state);
40841
+ function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, jsonContent, versionPaths) {
41030
40842
  let packageFile;
41031
- if (packageJson && arePathsEqual(packageJson == null ? void 0 : packageJson.packageDirectory, candidate, state.host)) {
40843
+ if (jsonContent) {
41032
40844
  if (state.isConfigLookup) {
41033
- packageFile = readPackageJsonTSConfigField(packageJson.contents.packageJsonContent, packageJson.packageDirectory, state);
40845
+ packageFile = readPackageJsonTSConfigField(jsonContent, candidate, state);
41034
40846
  } else {
41035
- packageFile = extensions & 4 /* Declaration */ && readPackageJsonTypesFields(packageJson.contents.packageJsonContent, packageJson.packageDirectory, state) || extensions & (3 /* ImplementationFiles */ | 4 /* Declaration */) && readPackageJsonMainField(packageJson.contents.packageJsonContent, packageJson.packageDirectory, state) || void 0;
40847
+ packageFile = extensions & 4 /* Declaration */ && readPackageJsonTypesFields(jsonContent, candidate, state) || extensions & (3 /* ImplementationFiles */ | 4 /* Declaration */) && readPackageJsonMainField(jsonContent, candidate, state) || void 0;
41036
40848
  }
41037
40849
  }
41038
40850
  const loader = (extensions2, candidate2, onlyRecordFailures2, state2) => {
@@ -41051,7 +40863,7 @@ function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFail
41051
40863
  const features = state2.features;
41052
40864
  const candidateIsFromPackageJsonField = state2.candidateIsFromPackageJsonField;
41053
40865
  state2.candidateIsFromPackageJsonField = true;
41054
- if ((packageJson == null ? void 0 : packageJson.contents.packageJsonContent.type) !== "module") {
40866
+ if ((jsonContent == null ? void 0 : jsonContent.type) !== "module") {
41055
40867
  state2.features &= ~32 /* EsmMode */;
41056
40868
  }
41057
40869
  const result = nodeLoadModuleByRelativeName(
@@ -41322,7 +41134,6 @@ function hasOneAsterisk(patternKey) {
41322
41134
  function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirectedReference, moduleName, scope, isImports) {
41323
41135
  return loadModuleFromTargetExportOrImport;
41324
41136
  function loadModuleFromTargetExportOrImport(target, subpath, pattern, key) {
41325
- var _a, _b;
41326
41137
  if (typeof target === "string") {
41327
41138
  if (!pattern && subpath.length > 0 && !endsWith(target, "/")) {
41328
41139
  if (state.traceEnabled) {
@@ -41351,8 +41162,6 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec
41351
41162
  redirectedReference,
41352
41163
  state.conditions
41353
41164
  );
41354
- (_a = state.failedLookupLocations) == null ? void 0 : _a.push(...result.failedLookupLocations ?? emptyArray);
41355
- (_b = state.affectingLocations) == null ? void 0 : _b.push(...result.affectingLocations ?? emptyArray);
41356
41165
  return toSearchResult(
41357
41166
  result.resolvedModule ? {
41358
41167
  path: result.resolvedModule.resolvedFileName,
@@ -41462,20 +41271,20 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec
41462
41271
  void 0
41463
41272
  );
41464
41273
  function toAbsolutePath(path) {
41465
- var _a2, _b2;
41274
+ var _a, _b;
41466
41275
  if (path === void 0) return path;
41467
- return getNormalizedAbsolutePath(path, (_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2));
41276
+ return getNormalizedAbsolutePath(path, (_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a));
41468
41277
  }
41469
41278
  function combineDirectoryPath(root, dir) {
41470
41279
  return ensureTrailingDirectorySeparator(combinePaths(root, dir));
41471
41280
  }
41472
41281
  function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) {
41473
- var _a2, _b2, _c, _d;
41282
+ var _a, _b, _c, _d;
41474
41283
  if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && !finalPath.includes("/node_modules/") && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames(state)) : true)) {
41475
41284
  const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames: () => useCaseSensitiveFileNames(state) });
41476
41285
  const commonSourceDirGuesses = [];
41477
41286
  if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) {
41478
- const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2)) || "", getCanonicalFileName));
41287
+ const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)) || "", getCanonicalFileName));
41479
41288
  commonSourceDirGuesses.push(commonDir);
41480
41289
  } else if (state.requestContainingDirectory) {
41481
41290
  const requestingFile = toAbsolutePath(combinePaths(state.requestContainingDirectory, "index.ts"));
@@ -41531,8 +41340,8 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec
41531
41340
  }
41532
41341
  return void 0;
41533
41342
  function getOutputDirectoriesForBaseDirectory(commonSourceDirGuess) {
41534
- var _a3, _b3;
41535
- const currentDir = state.compilerOptions.configFile ? ((_b3 = (_a3 = state.host).getCurrentDirectory) == null ? void 0 : _b3.call(_a3)) || "" : commonSourceDirGuess;
41343
+ var _a2, _b2;
41344
+ const currentDir = state.compilerOptions.configFile ? ((_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2)) || "" : commonSourceDirGuess;
41536
41345
  const candidateDirectories = [];
41537
41346
  if (state.compilerOptions.declarationDir) {
41538
41347
  candidateDirectories.push(toAbsolutePath(combineDirectoryPath(currentDir, state.compilerOptions.declarationDir)));
@@ -41579,7 +41388,7 @@ function loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, directo
41579
41388
  );
41580
41389
  }
41581
41390
  function loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) {
41582
- const mode = state.features === 0 ? void 0 : state.features & 32 /* EsmMode */ || state.conditions.includes("import") ? 99 /* ESNext */ : 1 /* CommonJS */;
41391
+ const mode = state.features === 0 ? void 0 : state.features & 32 /* EsmMode */ ? 99 /* ESNext */ : 1 /* CommonJS */;
41583
41392
  const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */);
41584
41393
  const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */);
41585
41394
  if (priorityExtensions) {
@@ -41657,7 +41466,8 @@ function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, node
41657
41466
  candidate,
41658
41467
  !nodeModulesDirectoryExists,
41659
41468
  state,
41660
- packageInfo
41469
+ packageInfo.contents.packageJsonContent,
41470
+ getVersionPathsOfPackageJsonInfo(packageInfo, state)
41661
41471
  );
41662
41472
  return withPackageId(packageInfo, fromDirectory, state);
41663
41473
  }
@@ -41667,9 +41477,10 @@ function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, node
41667
41477
  candidate2,
41668
41478
  onlyRecordFailures,
41669
41479
  state2,
41670
- packageInfo
41480
+ packageInfo && packageInfo.contents.packageJsonContent,
41481
+ packageInfo && getVersionPathsOfPackageJsonInfo(packageInfo, state2)
41671
41482
  );
41672
- if (!pathAndExtension && !rest && packageInfo && (packageInfo.contents.packageJsonContent.exports === void 0 || packageInfo.contents.packageJsonContent.exports === null) && state2.features & 32 /* EsmMode */) {
41483
+ if (!pathAndExtension && packageInfo && (packageInfo.contents.packageJsonContent.exports === void 0 || packageInfo.contents.packageJsonContent.exports === null) && state2.features & 32 /* EsmMode */) {
41673
41484
  pathAndExtension = loadModuleFromFile(extensions2, combinePaths(candidate2, "index.js"), onlyRecordFailures, state2);
41674
41485
  }
41675
41486
  return withPackageId(packageInfo, pathAndExtension, state2);
@@ -42097,7 +41908,6 @@ function createBinder() {
42097
41908
  var preSwitchCaseFlow;
42098
41909
  var activeLabelList;
42099
41910
  var hasExplicitReturn;
42100
- var inReturnPosition;
42101
41911
  var hasFlowEffects;
42102
41912
  var emitFlags;
42103
41913
  var inStrictMode;
@@ -42170,7 +41980,6 @@ function createBinder() {
42170
41980
  currentExceptionTarget = void 0;
42171
41981
  activeLabelList = void 0;
42172
41982
  hasExplicitReturn = false;
42173
- inReturnPosition = false;
42174
41983
  hasFlowEffects = false;
42175
41984
  inAssignmentPattern = false;
42176
41985
  emitFlags = 0 /* None */;
@@ -42407,8 +42216,6 @@ function createBinder() {
42407
42216
  const saveContainer = container;
42408
42217
  const saveThisParentContainer = thisParentContainer;
42409
42218
  const savedBlockScopeContainer = blockScopeContainer;
42410
- const savedInReturnPosition = inReturnPosition;
42411
- if (node.kind === 219 /* ArrowFunction */ && node.body.kind !== 241 /* Block */) inReturnPosition = true;
42412
42219
  if (containerFlags & 1 /* IsContainer */) {
42413
42220
  if (node.kind !== 219 /* ArrowFunction */) {
42414
42221
  thisParentContainer = container;
@@ -42486,7 +42293,6 @@ function createBinder() {
42486
42293
  } else {
42487
42294
  bindChildren(node);
42488
42295
  }
42489
- inReturnPosition = savedInReturnPosition;
42490
42296
  container = saveContainer;
42491
42297
  thisParentContainer = saveThisParentContainer;
42492
42298
  blockScopeContainer = savedBlockScopeContainer;
@@ -42508,9 +42314,6 @@ function createBinder() {
42508
42314
  const saveInAssignmentPattern = inAssignmentPattern;
42509
42315
  inAssignmentPattern = false;
42510
42316
  if (checkUnreachable(node)) {
42511
- if (canHaveFlowNode(node) && node.flowNode) {
42512
- node.flowNode = void 0;
42513
- }
42514
42317
  bindEachChild(node);
42515
42318
  bindJSDoc(node);
42516
42319
  inAssignmentPattern = saveInAssignmentPattern;
@@ -42706,9 +42509,7 @@ function createBinder() {
42706
42509
  case 36 /* ExclamationEqualsToken */:
42707
42510
  case 37 /* EqualsEqualsEqualsToken */:
42708
42511
  case 38 /* ExclamationEqualsEqualsToken */:
42709
- const left = skipParentheses(expr.left);
42710
- const right = skipParentheses(expr.right);
42711
- return isNarrowableOperand(left) || isNarrowableOperand(right) || isNarrowingTypeofOperands(right, left) || isNarrowingTypeofOperands(left, right) || (isBooleanLiteral(right) && isNarrowingExpression(left) || isBooleanLiteral(left) && isNarrowingExpression(right));
42512
+ return isNarrowableOperand(expr.left) || isNarrowableOperand(expr.right) || isNarrowingTypeofOperands(expr.right, expr.left) || isNarrowingTypeofOperands(expr.left, expr.right) || (isBooleanLiteral(expr.right) && isNarrowingExpression(expr.left) || isBooleanLiteral(expr.left) && isNarrowingExpression(expr.right));
42712
42513
  case 104 /* InstanceOfKeyword */:
42713
42514
  return isNarrowableOperand(expr.left);
42714
42515
  case 103 /* InKeyword */:
@@ -42900,16 +42701,13 @@ function createBinder() {
42900
42701
  function bindForStatement(node) {
42901
42702
  const preLoopLabel = setContinueTarget(node, createLoopLabel());
42902
42703
  const preBodyLabel = createBranchLabel();
42903
- const preIncrementorLabel = createBranchLabel();
42904
42704
  const postLoopLabel = createBranchLabel();
42905
42705
  bind(node.initializer);
42906
42706
  addAntecedent(preLoopLabel, currentFlow);
42907
42707
  currentFlow = preLoopLabel;
42908
42708
  bindCondition(node.condition, preBodyLabel, postLoopLabel);
42909
42709
  currentFlow = finishFlowLabel(preBodyLabel);
42910
- bindIterativeStatement(node.statement, postLoopLabel, preIncrementorLabel);
42911
- addAntecedent(preIncrementorLabel, currentFlow);
42912
- currentFlow = finishFlowLabel(preIncrementorLabel);
42710
+ bindIterativeStatement(node.statement, postLoopLabel, preLoopLabel);
42913
42711
  bind(node.incrementor);
42914
42712
  addAntecedent(preLoopLabel, currentFlow);
42915
42713
  currentFlow = finishFlowLabel(postLoopLabel);
@@ -42946,10 +42744,7 @@ function createBinder() {
42946
42744
  currentFlow = finishFlowLabel(postIfLabel);
42947
42745
  }
42948
42746
  function bindReturnOrThrow(node) {
42949
- const savedInReturnPosition = inReturnPosition;
42950
- inReturnPosition = true;
42951
42747
  bind(node.expression);
42952
- inReturnPosition = savedInReturnPosition;
42953
42748
  if (node.kind === 253 /* ReturnStatement */) {
42954
42749
  hasExplicitReturn = true;
42955
42750
  if (currentReturnTarget) {
@@ -43310,16 +43105,10 @@ function createBinder() {
43310
43105
  hasFlowEffects = false;
43311
43106
  bindCondition(node.condition, trueLabel, falseLabel);
43312
43107
  currentFlow = finishFlowLabel(trueLabel);
43313
- if (inReturnPosition) {
43314
- node.flowNodeWhenTrue = currentFlow;
43315
- }
43316
43108
  bind(node.questionToken);
43317
43109
  bind(node.whenTrue);
43318
43110
  addAntecedent(postExpressionLabel, currentFlow);
43319
43111
  currentFlow = finishFlowLabel(falseLabel);
43320
- if (inReturnPosition) {
43321
- node.flowNodeWhenFalse = currentFlow;
43322
- }
43323
43112
  bind(node.colonToken);
43324
43113
  bind(node.whenFalse);
43325
43114
  addAntecedent(postExpressionLabel, currentFlow);
@@ -46493,7 +46282,6 @@ function createTypeChecker(host) {
46493
46282
  getNumberLiteralType,
46494
46283
  getBigIntType: () => bigintType,
46495
46284
  getBigIntLiteralType,
46496
- getUnknownType: () => unknownType,
46497
46285
  createPromiseType,
46498
46286
  createArrayType,
46499
46287
  getElementTypeOfArrayType,
@@ -46610,13 +46398,8 @@ function createTypeChecker(host) {
46610
46398
  getMemberOverrideModifierStatus,
46611
46399
  isTypeParameterPossiblyReferenced,
46612
46400
  typeHasCallOrConstructSignatures,
46613
- getSymbolFlags,
46614
- getTypeArgumentsForResolvedSignature
46401
+ getSymbolFlags
46615
46402
  };
46616
- function getTypeArgumentsForResolvedSignature(signature) {
46617
- if (signature.mapper === void 0) return void 0;
46618
- return instantiateTypes((signature.target || signature).typeParameters, signature.mapper);
46619
- }
46620
46403
  function getCandidateSignaturesForStringLiteralCompletions(call, editingArgument) {
46621
46404
  const candidatesSet = /* @__PURE__ */ new Set();
46622
46405
  const candidates = [];
@@ -46993,12 +46776,6 @@ function createTypeChecker(host) {
46993
46776
  /*isReadonly*/
46994
46777
  true
46995
46778
  );
46996
- var anyBaseTypeIndexInfo = createIndexInfo(
46997
- stringType,
46998
- anyType,
46999
- /*isReadonly*/
47000
- false
47001
- );
47002
46779
  var iterationTypesCache = /* @__PURE__ */ new Map();
47003
46780
  var noIterationTypes = {
47004
46781
  get yieldType() {
@@ -48038,9 +47815,9 @@ function createTypeChecker(host) {
48038
47815
  const containerKind = grandparent.parent.kind;
48039
47816
  if (containerKind === 264 /* InterfaceDeclaration */ && heritageKind === 96 /* ExtendsKeyword */) {
48040
47817
  error(errorLocation, Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types, unescapeLeadingUnderscores(name));
48041
- } else if (isClassLike(grandparent.parent) && heritageKind === 96 /* ExtendsKeyword */) {
47818
+ } else if (containerKind === 263 /* ClassDeclaration */ && heritageKind === 96 /* ExtendsKeyword */) {
48042
47819
  error(errorLocation, Diagnostics.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values, unescapeLeadingUnderscores(name));
48043
- } else if (isClassLike(grandparent.parent) && heritageKind === 119 /* ImplementsKeyword */) {
47820
+ } else if (containerKind === 263 /* ClassDeclaration */ && heritageKind === 119 /* ImplementsKeyword */) {
48044
47821
  error(errorLocation, Diagnostics.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types, unescapeLeadingUnderscores(name));
48045
47822
  }
48046
47823
  } else {
@@ -49216,7 +48993,7 @@ function createTypeChecker(host) {
49216
48993
  moduleReference
49217
48994
  );
49218
48995
  }
49219
- if (errorNode && (moduleKind === 100 /* Node16 */ || moduleKind === 101 /* Node18 */)) {
48996
+ if (errorNode && (moduleResolutionKind === 3 /* Node16 */ || moduleResolutionKind === 99 /* NodeNext */)) {
49220
48997
  const isSyncImport = currentSourceFile.impliedNodeFormat === 1 /* CommonJS */ && !findAncestor(location, isImportCall) || !!findAncestor(location, isImportEqualsDeclaration);
49221
48998
  const overrideHost = findAncestor(location, (l) => isImportTypeNode(l) || isExportDeclaration(l) || isImportDeclaration(l) || isJSDocImportTag(l));
49222
48999
  if (isSyncImport && sourceFile.impliedNodeFormat === 99 /* ESNext */ && !hasResolutionModeOverride(overrideHost)) {
@@ -50457,7 +50234,12 @@ function createTypeChecker(host) {
50457
50234
  enterNewScope(context, node) {
50458
50235
  if (isFunctionLike(node) || isJSDocSignature(node)) {
50459
50236
  const signature = getSignatureFromDeclaration(node);
50460
- return enterNewScope(context, node, signature.parameters, signature.typeParameters);
50237
+ const expandedParams = getExpandedParameters(
50238
+ signature,
50239
+ /*skipUnionExpanding*/
50240
+ true
50241
+ )[0];
50242
+ return enterNewScope(context, node, expandedParams, signature.typeParameters);
50461
50243
  } else {
50462
50244
  const typeParameters = isConditionalTypeNode(node) ? getInferTypeParameters(node) : [getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node.typeParameter))];
50463
50245
  return enterNewScope(
@@ -50537,7 +50319,7 @@ function createTypeChecker(host) {
50537
50319
  return true;
50538
50320
  }
50539
50321
  if (requiresAddingUndefined && annotationType) {
50540
- annotationType = addOptionality(annotationType, !isParameter(node));
50322
+ annotationType = getOptionalType(annotationType, !isParameter(node));
50541
50323
  }
50542
50324
  return !!annotationType && typeNodeIsEquivalentToType(node, type, annotationType) && existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type);
50543
50325
  }
@@ -51110,7 +50892,7 @@ function createTypeChecker(host) {
51110
50892
  function shouldWriteTypeOfFunctionSymbol() {
51111
50893
  var _a3;
51112
50894
  const isStaticMethodSymbol = !!(symbol.flags & 8192 /* Method */) && // typeof static method
51113
- some(symbol.declarations, (declaration) => isStatic(declaration) && !isLateBindableIndexSignature(getNameOfDeclaration(declaration)));
50895
+ some(symbol.declarations, (declaration) => isStatic(declaration));
51114
50896
  const isNonLocalFunctionSymbol = !!(symbol.flags & 16 /* Function */) && (symbol.parent || // is exported function symbol
51115
50897
  forEach(symbol.declarations, (declaration) => declaration.parent.kind === 307 /* SourceFile */ || declaration.parent.kind === 268 /* ModuleBlock */));
51116
50898
  if (isStaticMethodSymbol || isNonLocalFunctionSymbol) {
@@ -51413,38 +51195,6 @@ function createTypeChecker(host) {
51413
51195
  ids.unshift(state);
51414
51196
  return ids;
51415
51197
  }
51416
- function indexInfoToObjectComputedNamesOrSignatureDeclaration(indexInfo, context2, typeNode) {
51417
- if (indexInfo.components) {
51418
- const allComponentComputedNamesSerializable = every(indexInfo.components, (e) => {
51419
- var _a2;
51420
- return !!(e.name && isComputedPropertyName(e.name) && isEntityNameExpression(e.name.expression) && context2.enclosingDeclaration && ((_a2 = isEntityNameVisible(
51421
- e.name.expression,
51422
- context2.enclosingDeclaration,
51423
- /*shouldComputeAliasToMakeVisible*/
51424
- false
51425
- )) == null ? void 0 : _a2.accessibility) === 0 /* Accessible */);
51426
- });
51427
- if (allComponentComputedNamesSerializable) {
51428
- const newComponents = filter(indexInfo.components, (e) => {
51429
- return !hasLateBindableName(e);
51430
- });
51431
- return map(newComponents, (e) => {
51432
- trackComputedName(e.name.expression, context2.enclosingDeclaration, context2);
51433
- return setTextRange2(
51434
- context2,
51435
- factory.createPropertySignature(
51436
- indexInfo.isReadonly ? [factory.createModifier(148 /* ReadonlyKeyword */)] : void 0,
51437
- e.name,
51438
- (isPropertySignature(e) || isPropertyDeclaration(e) || isMethodSignature(e) || isMethodDeclaration(e) || isGetAccessor(e) || isSetAccessor(e)) && e.questionToken ? factory.createToken(58 /* QuestionToken */) : void 0,
51439
- typeNode || typeToTypeNodeHelper(getTypeOfSymbol(e.symbol), context2)
51440
- ),
51441
- e
51442
- );
51443
- });
51444
- }
51445
- }
51446
- return [indexInfoToIndexSignatureDeclarationHelper(indexInfo, context2, typeNode)];
51447
- }
51448
51198
  function createTypeNodesFromResolvedType(resolvedType) {
51449
51199
  if (checkTruncationLength(context)) {
51450
51200
  if (context.flags & 1 /* NoTruncation */) {
@@ -51469,7 +51219,7 @@ function createTypeChecker(host) {
51469
51219
  typeElements.push(signatureToSignatureDeclarationHelper(signature, 180 /* ConstructSignature */, context));
51470
51220
  }
51471
51221
  for (const info of resolvedType.indexInfos) {
51472
- typeElements.push(...indexInfoToObjectComputedNamesOrSignatureDeclaration(info, context, resolvedType.objectFlags & 1024 /* ReverseMapped */ ? createElidedInformationPlaceholder(context) : void 0));
51222
+ typeElements.push(indexInfoToIndexSignatureDeclarationHelper(info, context, resolvedType.objectFlags & 1024 /* ReverseMapped */ ? createElidedInformationPlaceholder(context) : void 0));
51473
51223
  }
51474
51224
  const properties = resolvedType.properties;
51475
51225
  if (!properties) {
@@ -52158,7 +51908,7 @@ function createTypeChecker(host) {
52158
51908
  if (!context.tracker.canTrackSymbol) return;
52159
51909
  const firstIdentifier = getFirstIdentifier(accessExpression);
52160
51910
  const name = resolveName(
52161
- enclosingDeclaration,
51911
+ firstIdentifier,
52162
51912
  firstIdentifier.escapedText,
52163
51913
  111551 /* Value */ | 1048576 /* ExportValue */,
52164
51914
  /*nameNotFoundMessage*/
@@ -52168,19 +51918,6 @@ function createTypeChecker(host) {
52168
51918
  );
52169
51919
  if (name) {
52170
51920
  context.tracker.trackSymbol(name, enclosingDeclaration, 111551 /* Value */);
52171
- } else {
52172
- const fallback = resolveName(
52173
- firstIdentifier,
52174
- firstIdentifier.escapedText,
52175
- 111551 /* Value */ | 1048576 /* ExportValue */,
52176
- /*nameNotFoundMessage*/
52177
- void 0,
52178
- /*isUse*/
52179
- true
52180
- );
52181
- if (fallback) {
52182
- context.tracker.trackSymbol(fallback, enclosingDeclaration, 111551 /* Value */);
52183
- }
52184
51921
  }
52185
51922
  }
52186
51923
  function lookupSymbolChain(symbol, context, meaning, yieldModuleSymbol) {
@@ -56840,7 +56577,12 @@ function createTypeChecker(host) {
56840
56577
  addInheritedMembers(members, getPropertiesOfType(instantiatedBaseType));
56841
56578
  callSignatures = concatenate(callSignatures, getSignaturesOfType(instantiatedBaseType, 0 /* Call */));
56842
56579
  constructSignatures = concatenate(constructSignatures, getSignaturesOfType(instantiatedBaseType, 1 /* Construct */));
56843
- const inheritedIndexInfos = instantiatedBaseType !== anyType ? getIndexInfosOfType(instantiatedBaseType) : [anyBaseTypeIndexInfo];
56580
+ const inheritedIndexInfos = instantiatedBaseType !== anyType ? getIndexInfosOfType(instantiatedBaseType) : [createIndexInfo(
56581
+ stringType,
56582
+ anyType,
56583
+ /*isReadonly*/
56584
+ false
56585
+ )];
56844
56586
  indexInfos = concatenate(indexInfos, filter(inheritedIndexInfos, (info) => !findIndexInfo(indexInfos, info.keyType)));
56845
56587
  }
56846
56588
  }
@@ -57366,7 +57108,12 @@ function createTypeChecker(host) {
57366
57108
  members = createSymbolTable(getNamedOrIndexSignatureMembers(members));
57367
57109
  addInheritedMembers(members, getPropertiesOfType(baseConstructorType));
57368
57110
  } else if (baseConstructorType === anyType) {
57369
- baseConstructorIndexInfo = anyBaseTypeIndexInfo;
57111
+ baseConstructorIndexInfo = createIndexInfo(
57112
+ stringType,
57113
+ anyType,
57114
+ /*isReadonly*/
57115
+ false
57116
+ );
57370
57117
  }
57371
57118
  }
57372
57119
  const indexSymbol = getIndexSymbolFromSymbolTable(members);
@@ -58995,8 +58742,8 @@ function createTypeChecker(host) {
58995
58742
  function getIndexSymbolFromSymbolTable(symbolTable) {
58996
58743
  return symbolTable.get("__index" /* Index */);
58997
58744
  }
58998
- function createIndexInfo(keyType, type, isReadonly, declaration, components) {
58999
- return { keyType, type, isReadonly, declaration, components };
58745
+ function createIndexInfo(keyType, type, isReadonly, declaration) {
58746
+ return { keyType, type, isReadonly, declaration };
59000
58747
  }
59001
58748
  function getIndexInfosOfSymbol(symbol) {
59002
58749
  const indexSymbol = getIndexSymbol(symbol);
@@ -59509,9 +59256,6 @@ function createTypeChecker(host) {
59509
59256
  case "Number":
59510
59257
  checkNoTypeArguments(node);
59511
59258
  return numberType;
59512
- case "BigInt":
59513
- checkNoTypeArguments(node);
59514
- return bigintType;
59515
59259
  case "Boolean":
59516
59260
  checkNoTypeArguments(node);
59517
59261
  return booleanType;
@@ -62065,7 +61809,7 @@ function createTypeChecker(host) {
62065
61809
  return result;
62066
61810
  }
62067
61811
  function getIndexInfoWithReadonly(info, readonly) {
62068
- return info.isReadonly !== readonly ? createIndexInfo(info.keyType, info.type, readonly, info.declaration, info.components) : info;
61812
+ return info.isReadonly !== readonly ? createIndexInfo(info.keyType, info.type, readonly, info.declaration) : info;
62069
61813
  }
62070
61814
  function createLiteralType(flags, value, symbol, regularType) {
62071
61815
  const type = createTypeWithSymbol(flags, symbol);
@@ -62824,7 +62568,7 @@ function createTypeChecker(host) {
62824
62568
  return type.restrictiveInstantiation;
62825
62569
  }
62826
62570
  function instantiateIndexInfo(info, mapper) {
62827
- return createIndexInfo(info.keyType, instantiateType(info.type, mapper), info.isReadonly, info.declaration, info.components);
62571
+ return createIndexInfo(info.keyType, instantiateType(info.type, mapper), info.isReadonly, info.declaration);
62828
62572
  }
62829
62573
  function isContextSensitive(node) {
62830
62574
  Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node));
@@ -66955,7 +66699,7 @@ function createTypeChecker(host) {
66955
66699
  }
66956
66700
  }
66957
66701
  }
66958
- const result = createAnonymousType(type.symbol, members, emptyArray, emptyArray, sameMap(getIndexInfosOfType(type), (info) => createIndexInfo(info.keyType, getWidenedType(info.type), info.isReadonly, info.declaration, info.components)));
66702
+ const result = createAnonymousType(type.symbol, members, emptyArray, emptyArray, sameMap(getIndexInfosOfType(type), (info) => createIndexInfo(info.keyType, getWidenedType(info.type), info.isReadonly)));
66959
66703
  result.objectFlags |= getObjectFlags(type) & (4096 /* JSLiteral */ | 262144 /* NonInferrableType */);
66960
66704
  return result;
66961
66705
  }
@@ -68397,7 +68141,6 @@ function createTypeChecker(host) {
68397
68141
  return target.kind === 108 /* SuperKeyword */;
68398
68142
  case 235 /* NonNullExpression */:
68399
68143
  case 217 /* ParenthesizedExpression */:
68400
- case 238 /* SatisfiesExpression */:
68401
68144
  return isMatchingReference(source.expression, target);
68402
68145
  case 211 /* PropertyAccessExpression */:
68403
68146
  case 212 /* ElementAccessExpression */:
@@ -70248,7 +69991,6 @@ function createTypeChecker(host) {
70248
69991
  if (checkDerived) {
70249
69992
  return filterType(type, (t) => !isTypeDerivedFrom(t, candidate));
70250
69993
  }
70251
- type = type.flags & 2 /* Unknown */ ? unknownUnionType : type;
70252
69994
  const trueType2 = getNarrowedType(
70253
69995
  type,
70254
69996
  candidate,
@@ -70257,7 +69999,7 @@ function createTypeChecker(host) {
70257
69999
  /*checkDerived*/
70258
70000
  false
70259
70001
  );
70260
- return recombineUnknownType(filterType(type, (t) => !isTypeSubsetOf(t, trueType2)));
70002
+ return filterType(type, (t) => !isTypeSubsetOf(t, trueType2));
70261
70003
  }
70262
70004
  if (type.flags & 3 /* AnyOrUnknown */) {
70263
70005
  return candidate;
@@ -70355,7 +70097,6 @@ function createTypeChecker(host) {
70355
70097
  return narrowTypeByCallExpression(type, expr, assumeTrue);
70356
70098
  case 217 /* ParenthesizedExpression */:
70357
70099
  case 235 /* NonNullExpression */:
70358
- case 238 /* SatisfiesExpression */:
70359
70100
  return narrowType(type, expr.expression, assumeTrue);
70360
70101
  case 226 /* BinaryExpression */:
70361
70102
  return narrowTypeByBinaryExpression(type, expr, assumeTrue);
@@ -70719,13 +70460,12 @@ function createTypeChecker(host) {
70719
70460
  const jsxFactoryRefErr = diagnostics && compilerOptions.jsx === 2 /* React */ ? Diagnostics.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found : void 0;
70720
70461
  const jsxFactoryNamespace = getJsxNamespace(node);
70721
70462
  const jsxFactoryLocation = isJsxOpeningLikeElement(node) ? node.tagName : node;
70722
- const shouldFactoryRefErr = compilerOptions.jsx !== 1 /* Preserve */ && compilerOptions.jsx !== 3 /* ReactNative */;
70723
70463
  let jsxFactorySym;
70724
70464
  if (!(isJsxOpeningFragment(node) && jsxFactoryNamespace === "null")) {
70725
70465
  jsxFactorySym = resolveName(
70726
70466
  jsxFactoryLocation,
70727
70467
  jsxFactoryNamespace,
70728
- shouldFactoryRefErr ? 111551 /* Value */ : 111551 /* Value */ & ~384 /* Enum */,
70468
+ compilerOptions.jsx === 1 /* Preserve */ ? 111551 /* Value */ & ~384 /* Enum */ : 111551 /* Value */,
70729
70469
  jsxFactoryRefErr,
70730
70470
  /*isUse*/
70731
70471
  true
@@ -70739,13 +70479,12 @@ function createTypeChecker(host) {
70739
70479
  }
70740
70480
  if (isJsxOpeningFragment(node)) {
70741
70481
  const file = getSourceFileOfNode(node);
70742
- const entity = getJsxFactoryEntity(file);
70743
- if (entity) {
70744
- const localJsxNamespace = getFirstIdentifier(entity).escapedText;
70482
+ const localJsxNamespace = getLocalJsxNamespace(file);
70483
+ if (localJsxNamespace) {
70745
70484
  resolveName(
70746
70485
  jsxFactoryLocation,
70747
70486
  localJsxNamespace,
70748
- shouldFactoryRefErr ? 111551 /* Value */ : 111551 /* Value */ & ~384 /* Enum */,
70487
+ compilerOptions.jsx === 1 /* Preserve */ ? 111551 /* Value */ & ~384 /* Enum */ : 111551 /* Value */,
70749
70488
  jsxFactoryRefErr,
70750
70489
  /*isUse*/
70751
70490
  true
@@ -72979,33 +72718,16 @@ function createTypeChecker(host) {
72979
72718
  const firstDecl = (_a = symbol.declarations) == null ? void 0 : _a[0];
72980
72719
  return isKnownSymbol(symbol) || firstDecl && isNamedDeclaration(firstDecl) && isComputedPropertyName(firstDecl.name) && isTypeAssignableToKind(checkComputedPropertyName(firstDecl.name), 4096 /* ESSymbol */);
72981
72720
  }
72982
- function isSymbolWithComputedName(symbol) {
72983
- var _a;
72984
- const firstDecl = (_a = symbol.declarations) == null ? void 0 : _a[0];
72985
- return firstDecl && isNamedDeclaration(firstDecl) && isComputedPropertyName(firstDecl.name);
72986
- }
72987
72721
  function getObjectLiteralIndexInfo(isReadonly, offset, properties, keyType) {
72988
- var _a;
72989
72722
  const propTypes = [];
72990
- let components;
72991
72723
  for (let i = offset; i < properties.length; i++) {
72992
72724
  const prop = properties[i];
72993
72725
  if (keyType === stringType && !isSymbolWithSymbolName(prop) || keyType === numberType && isSymbolWithNumericName(prop) || keyType === esSymbolType && isSymbolWithSymbolName(prop)) {
72994
72726
  propTypes.push(getTypeOfSymbol(properties[i]));
72995
- if (isSymbolWithComputedName(properties[i])) {
72996
- components = append(components, (_a = properties[i].declarations) == null ? void 0 : _a[0]);
72997
- }
72998
72727
  }
72999
72728
  }
73000
72729
  const unionType = propTypes.length ? getUnionType(propTypes, 2 /* Subtype */) : undefinedType;
73001
- return createIndexInfo(
73002
- keyType,
73003
- unionType,
73004
- isReadonly,
73005
- /*declaration*/
73006
- void 0,
73007
- components
73008
- );
72730
+ return createIndexInfo(keyType, unionType, isReadonly);
73009
72731
  }
73010
72732
  function getImmediateAliasedSymbol(symbol) {
73011
72733
  Debug.assert((symbol.flags & 2097152 /* Alias */) !== 0, "Should only get Alias here.");
@@ -73540,9 +73262,6 @@ function createTypeChecker(host) {
73540
73262
  return getNameFromJsxElementAttributesContainer(JsxNames.ElementAttributesPropertyNameContainer, jsxNamespace);
73541
73263
  }
73542
73264
  function getJsxElementChildrenPropertyName(jsxNamespace) {
73543
- if (compilerOptions.jsx === 4 /* ReactJSX */ || compilerOptions.jsx === 5 /* ReactJSXDev */) {
73544
- return "children";
73545
- }
73546
73265
  return getNameFromJsxElementAttributesContainer(JsxNames.ElementChildrenAttributeNameContainer, jsxNamespace);
73547
73266
  }
73548
73267
  function getUninstantiatedJsxSignaturesOfType(elementType, caller) {
@@ -74326,13 +74045,6 @@ function createTypeChecker(host) {
74326
74045
  return getIntersectionType(x);
74327
74046
  }
74328
74047
  function reportNonexistentProperty(propNode, containingType, isUncheckedJS) {
74329
- const links = getNodeLinks(propNode);
74330
- const cache = links.nonExistentPropCheckCache || (links.nonExistentPropCheckCache = /* @__PURE__ */ new Set());
74331
- const key = `${getTypeId(containingType)}|${isUncheckedJS}`;
74332
- if (cache.has(key)) {
74333
- return;
74334
- }
74335
- cache.add(key);
74336
74048
  let errorInfo;
74337
74049
  let relatedInfo;
74338
74050
  if (!isPrivateIdentifier(propNode) && containingType.flags & 1048576 /* Union */ && !(containingType.flags & 402784252 /* Primitive */)) {
@@ -75101,8 +74813,8 @@ function createTypeChecker(host) {
75101
74813
  }
75102
74814
  }
75103
74815
  function getEffectiveCheckNode(argument) {
75104
- const flags = isInJSFile(argument) ? 1 /* Parentheses */ | 32 /* Satisfies */ | -2147483648 /* ExcludeJSDocTypeAssertion */ : 1 /* Parentheses */ | 32 /* Satisfies */;
75105
- return skipOuterExpressions(argument, flags);
74816
+ argument = skipParentheses(argument);
74817
+ return isSatisfiesExpression(argument) ? skipParentheses(argument.expression) : argument;
75106
74818
  }
75107
74819
  function getSignatureApplicabilityError(node, args, signature, relation, checkMode, reportErrors2, containingMessageChain, inferenceContext) {
75108
74820
  const errorOutputContainer = { errors: void 0, skipLogging: true };
@@ -75527,16 +75239,11 @@ function createTypeChecker(host) {
75527
75239
  if (!result) {
75528
75240
  result = chooseOverload(candidates, assignableRelation, isSingleNonGenericCandidate, signatureHelpTrailingComma);
75529
75241
  }
75530
- const links = getNodeLinks(node);
75531
- if (links.resolvedSignature !== resolvingSignature && !candidatesOutArray) {
75532
- Debug.assert(links.resolvedSignature);
75533
- return links.resolvedSignature;
75534
- }
75535
75242
  if (result) {
75536
75243
  return result;
75537
75244
  }
75538
75245
  result = getCandidateForOverloadFailure(node, candidates, args, !!candidatesOutArray, checkMode);
75539
- links.resolvedSignature = result;
75246
+ getNodeLinks(node).resolvedSignature = result;
75540
75247
  if (reportErrors2) {
75541
75248
  if (!headMessage && isInstanceof) {
75542
75249
  headMessage = Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method;
@@ -76296,14 +76003,12 @@ function createTypeChecker(host) {
76296
76003
  const sourceFileLinks = getNodeLinks(getSourceFileOfNode(node));
76297
76004
  if (sourceFileLinks.jsxFragmentType !== void 0) return sourceFileLinks.jsxFragmentType;
76298
76005
  const jsxFragmentFactoryName = getJsxNamespace(node);
76299
- const shouldResolveFactoryReference = (compilerOptions.jsx === 2 /* React */ || compilerOptions.jsxFragmentFactory !== void 0) && jsxFragmentFactoryName !== "null";
76300
- if (!shouldResolveFactoryReference) return sourceFileLinks.jsxFragmentType = anyType;
76301
- const shouldModuleRefErr = compilerOptions.jsx !== 1 /* Preserve */ && compilerOptions.jsx !== 3 /* ReactNative */;
76006
+ if (jsxFragmentFactoryName === "null") return sourceFileLinks.jsxFragmentType = anyType;
76302
76007
  const jsxFactoryRefErr = diagnostics ? Diagnostics.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found : void 0;
76303
76008
  const jsxFactorySymbol = getJsxNamespaceContainerForImplicitImport(node) ?? resolveName(
76304
76009
  node,
76305
76010
  jsxFragmentFactoryName,
76306
- shouldModuleRefErr ? 111551 /* Value */ : 111551 /* Value */ & ~384 /* Enum */,
76011
+ compilerOptions.jsx === 1 /* Preserve */ ? 111551 /* Value */ & ~384 /* Enum */ : 111551 /* Value */,
76307
76012
  /*nameNotFoundMessage*/
76308
76013
  jsxFactoryRefErr,
76309
76014
  /*isUse*/
@@ -76422,9 +76127,12 @@ function createTypeChecker(host) {
76422
76127
  resolutionStart = resolutionTargets.length;
76423
76128
  }
76424
76129
  links.resolvedSignature = resolvingSignature;
76425
- const result = resolveSignature(node, candidatesOutArray, checkMode || 0 /* Normal */);
76130
+ let result = resolveSignature(node, candidatesOutArray, checkMode || 0 /* Normal */);
76426
76131
  resolutionStart = saveResolutionStart;
76427
76132
  if (result !== resolvingSignature) {
76133
+ if (links.resolvedSignature !== resolvingSignature) {
76134
+ result = links.resolvedSignature;
76135
+ }
76428
76136
  links.resolvedSignature = flowLoopStart === flowLoopCount ? result : cached;
76429
76137
  }
76430
76138
  return result;
@@ -77003,12 +76711,12 @@ function createTypeChecker(host) {
77003
76711
  }
77004
76712
  }
77005
76713
  function checkImportMetaProperty(node) {
77006
- if (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) {
76714
+ if (moduleKind === 100 /* Node16 */ || moduleKind === 199 /* NodeNext */) {
77007
76715
  if (getSourceFileOfNode(node).impliedNodeFormat !== 99 /* ESNext */) {
77008
76716
  error(node, Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output);
77009
76717
  }
77010
76718
  } else if (moduleKind < 6 /* ES2020 */ && moduleKind !== 4 /* System */) {
77011
- error(node, Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_or_nodenext);
76719
+ error(node, Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);
77012
76720
  }
77013
76721
  const file = getSourceFileOfNode(node);
77014
76722
  Debug.assert(!!(file.flags & 8388608 /* PossiblyContainsImportMeta */), "Containing file is missing import meta node flag.");
@@ -77837,7 +77545,7 @@ function createTypeChecker(host) {
77837
77545
  }
77838
77546
  return !someType(operandConstraint, (t) => getTypeFacts(t, notEqualFacts) === notEqualFacts);
77839
77547
  }
77840
- const type = getBaseConstraintOrType(checkExpressionCached(node.expression));
77548
+ const type = checkExpressionCached(node.expression);
77841
77549
  if (!isLiteralType(type)) {
77842
77550
  return false;
77843
77551
  }
@@ -78100,7 +77808,19 @@ function createTypeChecker(host) {
78100
77808
  const exprType = checkExpression(node.body);
78101
77809
  const returnOrPromisedType = returnType && unwrapReturnType(returnType, functionFlags);
78102
77810
  if (returnOrPromisedType) {
78103
- checkReturnExpression(node, returnOrPromisedType, node.body, node.body, exprType);
77811
+ const effectiveCheckNode = getEffectiveCheckNode(node.body);
77812
+ if ((functionFlags & 3 /* AsyncGenerator */) === 2 /* Async */) {
77813
+ const awaitedType = checkAwaitedType(
77814
+ exprType,
77815
+ /*withAlias*/
77816
+ false,
77817
+ effectiveCheckNode,
77818
+ Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member
77819
+ );
77820
+ checkTypeAssignableToAndOptionallyElaborate(awaitedType, returnOrPromisedType, effectiveCheckNode, effectiveCheckNode);
77821
+ } else {
77822
+ checkTypeAssignableToAndOptionallyElaborate(exprType, returnOrPromisedType, effectiveCheckNode, effectiveCheckNode);
77823
+ }
78104
77824
  }
78105
77825
  }
78106
77826
  }
@@ -78154,7 +77874,7 @@ function createTypeChecker(host) {
78154
77874
  }
78155
77875
  if (isReadonlySymbol(symbol)) {
78156
77876
  if (symbol.flags & 4 /* Property */ && isAccessExpression(expr) && expr.expression.kind === 110 /* ThisKeyword */) {
78157
- const ctor = getControlFlowContainer(expr);
77877
+ const ctor = getContainingFunction(expr);
78158
77878
  if (!(ctor && (ctor.kind === 176 /* Constructor */ || isJSConstructor(ctor)))) {
78159
77879
  return true;
78160
77880
  }
@@ -78183,7 +77903,7 @@ function createTypeChecker(host) {
78183
77903
  return false;
78184
77904
  }
78185
77905
  function checkReferenceExpression(expr, invalidReferenceMessage, invalidOptionalChainMessage) {
78186
- const node = skipOuterExpressions(expr, 38 /* Assertions */ | 1 /* Parentheses */);
77906
+ const node = skipOuterExpressions(expr, 6 /* Assertions */ | 1 /* Parentheses */);
78187
77907
  if (node.kind !== 80 /* Identifier */ && !isAccessExpression(node)) {
78188
77908
  error(expr, invalidReferenceMessage);
78189
77909
  return false;
@@ -78250,7 +77970,6 @@ function createTypeChecker(host) {
78250
77970
  }
78251
77971
  switch (moduleKind) {
78252
77972
  case 100 /* Node16 */:
78253
- case 101 /* Node18 */:
78254
77973
  case 199 /* NodeNext */:
78255
77974
  if (sourceFile.impliedNodeFormat === 1 /* CommonJS */) {
78256
77975
  span ?? (span = getSpanOfTokenAtPosition(sourceFile, node.pos));
@@ -78271,7 +77990,7 @@ function createTypeChecker(host) {
78271
77990
  // fallthrough
78272
77991
  default:
78273
77992
  span ?? (span = getSpanOfTokenAtPosition(sourceFile, node.pos));
78274
- const message = isAwaitExpression(node) ? Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher : Diagnostics.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;
77993
+ const message = isAwaitExpression(node) ? Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher : Diagnostics.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;
78275
77994
  diagnostics.add(createFileDiagnostic(sourceFile, span.start, span.length, message));
78276
77995
  hasError = true;
78277
77996
  break;
@@ -78835,7 +78554,7 @@ function createTypeChecker(host) {
78835
78554
  if (isBinaryExpression(right) && (right.operatorToken.kind === 57 /* BarBarToken */ || right.operatorToken.kind === 56 /* AmpersandAmpersandToken */)) {
78836
78555
  grammarErrorOnNode(right, Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses, tokenToString(right.operatorToken.kind), tokenToString(operatorToken.kind));
78837
78556
  }
78838
- const leftTarget = skipOuterExpressions(left, 63 /* All */);
78557
+ const leftTarget = skipOuterExpressions(left, 31 /* All */);
78839
78558
  const nullishSemantics = getSyntacticNullishnessSemantics(leftTarget);
78840
78559
  if (nullishSemantics !== 3 /* Sometimes */) {
78841
78560
  if (node.parent.kind === 226 /* BinaryExpression */) {
@@ -78855,9 +78574,7 @@ function createTypeChecker(host) {
78855
78574
  switch (node.kind) {
78856
78575
  case 223 /* AwaitExpression */:
78857
78576
  case 213 /* CallExpression */:
78858
- case 215 /* TaggedTemplateExpression */:
78859
78577
  case 212 /* ElementAccessExpression */:
78860
- case 236 /* MetaProperty */:
78861
78578
  case 214 /* NewExpression */:
78862
78579
  case 211 /* PropertyAccessExpression */:
78863
78580
  case 229 /* YieldExpression */:
@@ -78873,8 +78590,6 @@ function createTypeChecker(host) {
78873
78590
  case 56 /* AmpersandAmpersandToken */:
78874
78591
  case 77 /* AmpersandAmpersandEqualsToken */:
78875
78592
  return 3 /* Sometimes */;
78876
- case 28 /* CommaToken */:
78877
- return getSyntacticNullishnessSemantics(node.right);
78878
78593
  }
78879
78594
  return 2 /* Never */;
78880
78595
  case 227 /* ConditionalExpression */:
@@ -80054,9 +79769,6 @@ function createTypeChecker(host) {
80054
79769
  checkVariableLikeDeclaration(node);
80055
79770
  const func = getContainingFunction(node);
80056
79771
  if (hasSyntacticModifier(node, 31 /* ParameterPropertyModifier */)) {
80057
- if (compilerOptions.erasableSyntaxOnly) {
80058
- error(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
80059
- }
80060
79772
  if (!(func.kind === 176 /* Constructor */ && nodeIsPresent(func.body))) {
80061
79773
  error(node, Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation);
80062
79774
  }
@@ -83330,6 +83042,7 @@ function createTypeChecker(host) {
83330
83042
  }
83331
83043
  const signature = getSignatureFromDeclaration(container);
83332
83044
  const returnType = getReturnTypeOfSignature(signature);
83045
+ const functionFlags = getFunctionFlags(container);
83333
83046
  if (strictNullChecks || node.expression || returnType.flags & 131072 /* Never */) {
83334
83047
  const exprType = node.expression ? checkExpressionCached(node.expression) : undefinedType;
83335
83048
  if (container.kind === 178 /* SetAccessor */) {
@@ -83337,57 +83050,26 @@ function createTypeChecker(host) {
83337
83050
  error(node, Diagnostics.Setters_cannot_return_a_value);
83338
83051
  }
83339
83052
  } else if (container.kind === 176 /* Constructor */) {
83340
- const exprType2 = node.expression ? checkExpressionCached(node.expression) : undefinedType;
83341
- if (node.expression && !checkTypeAssignableToAndOptionallyElaborate(exprType2, returnType, node, node.expression)) {
83053
+ if (node.expression && !checkTypeAssignableToAndOptionallyElaborate(exprType, returnType, node, node.expression)) {
83342
83054
  error(node, Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);
83343
83055
  }
83344
83056
  } else if (getReturnTypeFromAnnotation(container)) {
83345
- const unwrappedReturnType = unwrapReturnType(returnType, getFunctionFlags(container)) ?? returnType;
83346
- checkReturnExpression(container, unwrappedReturnType, node, node.expression, exprType);
83057
+ const unwrappedReturnType = unwrapReturnType(returnType, functionFlags) ?? returnType;
83058
+ const unwrappedExprType = functionFlags & 2 /* Async */ ? checkAwaitedType(
83059
+ exprType,
83060
+ /*withAlias*/
83061
+ false,
83062
+ node,
83063
+ Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member
83064
+ ) : exprType;
83065
+ if (unwrappedReturnType) {
83066
+ checkTypeAssignableToAndOptionallyElaborate(unwrappedExprType, unwrappedReturnType, node, node.expression);
83067
+ }
83347
83068
  }
83348
83069
  } else if (container.kind !== 176 /* Constructor */ && compilerOptions.noImplicitReturns && !isUnwrappedReturnTypeUndefinedVoidOrAny(container, returnType)) {
83349
83070
  error(node, Diagnostics.Not_all_code_paths_return_a_value);
83350
83071
  }
83351
83072
  }
83352
- function checkReturnExpression(container, unwrappedReturnType, node, expr, exprType, inConditionalExpression = false) {
83353
- const excludeJSDocTypeAssertions = isInJSFile(node);
83354
- const functionFlags = getFunctionFlags(container);
83355
- if (expr) {
83356
- const unwrappedExpr = skipParentheses(expr, excludeJSDocTypeAssertions);
83357
- if (isConditionalExpression(unwrappedExpr)) {
83358
- checkReturnExpression(
83359
- container,
83360
- unwrappedReturnType,
83361
- node,
83362
- unwrappedExpr.whenTrue,
83363
- checkExpression(unwrappedExpr.whenTrue),
83364
- /*inConditionalExpression*/
83365
- true
83366
- );
83367
- checkReturnExpression(
83368
- container,
83369
- unwrappedReturnType,
83370
- node,
83371
- unwrappedExpr.whenFalse,
83372
- checkExpression(unwrappedExpr.whenFalse),
83373
- /*inConditionalExpression*/
83374
- true
83375
- );
83376
- return;
83377
- }
83378
- }
83379
- const inReturnStatement = node.kind === 253 /* ReturnStatement */;
83380
- const unwrappedExprType = functionFlags & 2 /* Async */ ? checkAwaitedType(
83381
- exprType,
83382
- /*withAlias*/
83383
- false,
83384
- node,
83385
- Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member
83386
- ) : exprType;
83387
- const effectiveExpr = expr && getEffectiveCheckNode(expr);
83388
- const errorNode = inReturnStatement && !inConditionalExpression ? node : effectiveExpr;
83389
- checkTypeAssignableToAndOptionallyElaborate(unwrappedExprType, unwrappedReturnType, errorNode, effectiveExpr);
83390
- }
83391
83073
  function checkWithStatement(node) {
83392
83074
  if (!checkGrammarStatementInAmbientContext(node)) {
83393
83075
  if (node.flags & 65536 /* AwaitContext */) {
@@ -83519,7 +83201,7 @@ function createTypeChecker(host) {
83519
83201
  const typeDeclaration = symbol.valueDeclaration;
83520
83202
  if (typeDeclaration && isClassLike(typeDeclaration)) {
83521
83203
  for (const member of typeDeclaration.members) {
83522
- if ((!isStaticIndex && !isStatic(member) || isStaticIndex && isStatic(member)) && !hasBindableName(member)) {
83204
+ if (!isStatic(member) && !hasBindableName(member)) {
83523
83205
  const symbol2 = getSymbolOfDeclaration(member);
83524
83206
  checkIndexConstraintForProperty(type, symbol2, getTypeOfExpression(member.name.expression), getNonMissingTypeOfSymbol(symbol2));
83525
83207
  }
@@ -83970,13 +83652,6 @@ function createTypeChecker(host) {
83970
83652
  function checkMemberForOverrideModifier(node, staticType, baseStaticType, baseWithThis, type, typeWithThis, memberHasOverrideModifier, memberHasAbstractModifier, memberIsStatic, memberIsParameterProperty, member, errorNode) {
83971
83653
  const isJs = isInJSFile(node);
83972
83654
  const nodeInAmbientContext = !!(node.flags & 33554432 /* Ambient */);
83973
- if (memberHasOverrideModifier && (member == null ? void 0 : member.valueDeclaration) && isClassElement(member.valueDeclaration) && member.valueDeclaration.name && isNonBindableDynamicName(member.valueDeclaration.name)) {
83974
- error(
83975
- errorNode,
83976
- isJs ? Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic : Diagnostics.This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic
83977
- );
83978
- return 2 /* HasInvalidOverride */;
83979
- }
83980
83655
  if (baseWithThis && (memberHasOverrideModifier || compilerOptions.noImplicitOverride)) {
83981
83656
  const thisType = memberIsStatic ? staticType : typeWithThis;
83982
83657
  const baseType = memberIsStatic ? baseStaticType : baseWithThis;
@@ -84569,9 +84244,6 @@ function createTypeChecker(host) {
84569
84244
  checkCollisionsForDeclarationName(node, node.name);
84570
84245
  checkExportsOnMergedDeclarations(node);
84571
84246
  node.members.forEach(checkEnumMember);
84572
- if (compilerOptions.erasableSyntaxOnly && !(node.flags & 33554432 /* Ambient */)) {
84573
- error(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
84574
- }
84575
84247
  computeEnumMemberValues(node);
84576
84248
  const enumSymbol = getSymbolOfDeclaration(node);
84577
84249
  const firstDeclaration = getDeclarationOfKind(enumSymbol, node.kind);
@@ -84673,9 +84345,6 @@ function createTypeChecker(host) {
84673
84345
  checkExportsOnMergedDeclarations(node);
84674
84346
  const symbol = getSymbolOfDeclaration(node);
84675
84347
  if (symbol.flags & 512 /* ValueModule */ && !inAmbientContext && isInstantiatedModule(node, shouldPreserveConstEnums(compilerOptions))) {
84676
- if (compilerOptions.erasableSyntaxOnly) {
84677
- error(node.name, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
84678
- }
84679
84348
  if (getIsolatedModules(compilerOptions) && !getSourceFileOfNode(node).externalModuleIndicator) {
84680
84349
  error(node.name, Diagnostics.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement, isolatedModulesLikeFlagName);
84681
84350
  }
@@ -84989,20 +84658,10 @@ function createTypeChecker(host) {
84989
84658
  if (validForTypeAttributes && override) {
84990
84659
  return;
84991
84660
  }
84992
- if (!moduleSupportsImportAttributes(moduleKind)) {
84993
- return grammarErrorOnNode(
84994
- node,
84995
- isImportAttributes2 ? Diagnostics.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve : Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve
84996
- );
84997
- }
84998
- if (moduleKind === 199 /* NodeNext */ && !isImportAttributes2) {
84999
- return grammarErrorOnFirstToken(node, Diagnostics.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);
85000
- }
85001
- if (declaration.moduleSpecifier && getEmitSyntaxForModuleSpecifierExpression(declaration.moduleSpecifier) === 1 /* CommonJS */) {
85002
- return grammarErrorOnNode(
85003
- node,
85004
- isImportAttributes2 ? Diagnostics.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls : Diagnostics.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls
85005
- );
84661
+ const mode = moduleKind === 199 /* NodeNext */ && declaration.moduleSpecifier && getEmitSyntaxForModuleSpecifierExpression(declaration.moduleSpecifier);
84662
+ if (mode !== 99 /* ESNext */ && moduleKind !== 99 /* ESNext */ && moduleKind !== 200 /* Preserve */) {
84663
+ const message = isImportAttributes2 ? moduleKind === 199 /* NodeNext */ ? Diagnostics.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls : Diagnostics.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve : moduleKind === 199 /* NodeNext */ ? Diagnostics.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls : Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve;
84664
+ return grammarErrorOnNode(node, message);
85006
84665
  }
85007
84666
  const isTypeOnly = isJSDocImportTag(declaration) || (isImportDeclaration(declaration) ? (_a = declaration.importClause) == null ? void 0 : _a.isTypeOnly : declaration.isTypeOnly);
85008
84667
  if (isTypeOnly) {
@@ -85043,7 +84702,7 @@ function createTypeChecker(host) {
85043
84702
  }
85044
84703
  }
85045
84704
  }
85046
- if (!importClause.isTypeOnly && 101 /* Node18 */ <= moduleKind && moduleKind <= 199 /* NodeNext */ && isOnlyImportableAsDefault(node.moduleSpecifier, resolvedModule) && !hasTypeJsonImportAttribute(node)) {
84705
+ if (isOnlyImportableAsDefault(node.moduleSpecifier, resolvedModule) && !hasTypeJsonImportAttribute(node)) {
85047
84706
  error(node.moduleSpecifier, Diagnostics.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0, ModuleKind[moduleKind]);
85048
84707
  }
85049
84708
  } else if (noUncheckedSideEffectImports && !importClause) {
@@ -85063,9 +84722,6 @@ function createTypeChecker(host) {
85063
84722
  return;
85064
84723
  }
85065
84724
  checkGrammarModifiers(node);
85066
- if (compilerOptions.erasableSyntaxOnly && !(node.flags & 33554432 /* Ambient */)) {
85067
- error(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
85068
- }
85069
84725
  if (isInternalModuleImportEqualsDeclaration(node) || checkExternalImportOrExportDeclaration(node)) {
85070
84726
  checkImportBinding(node);
85071
84727
  markLinkedReferences(node, 6 /* ExportImportEquals */);
@@ -85186,9 +84842,6 @@ function createTypeChecker(host) {
85186
84842
  if (checkGrammarModuleElementContext(node, illegalContextMessage)) {
85187
84843
  return;
85188
84844
  }
85189
- if (compilerOptions.erasableSyntaxOnly && node.isExportEquals && !(node.flags & 33554432 /* Ambient */)) {
85190
- error(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
85191
- }
85192
84845
  const container = node.parent.kind === 307 /* SourceFile */ ? node.parent : node.parent.parent;
85193
84846
  if (container.kind === 267 /* ModuleDeclaration */ && !isAmbientModule(container)) {
85194
84847
  if (node.isExportEquals) {
@@ -86186,7 +85839,7 @@ function createTypeChecker(host) {
86186
85839
  name,
86187
85840
  meaning,
86188
85841
  /*ignoreErrors*/
86189
- true,
85842
+ false,
86190
85843
  /*dontResolveAlias*/
86191
85844
  true
86192
85845
  );
@@ -86196,9 +85849,7 @@ function createTypeChecker(host) {
86196
85849
  return resolveEntityName(
86197
85850
  name,
86198
85851
  /*meaning*/
86199
- 1 /* FunctionScopedVariable */,
86200
- /*ignoreErrors*/
86201
- true
85852
+ 1 /* FunctionScopedVariable */
86202
85853
  );
86203
85854
  }
86204
85855
  return void 0;
@@ -86383,12 +86034,7 @@ function createTypeChecker(host) {
86383
86034
  }
86384
86035
  function getShorthandAssignmentValueSymbol(location) {
86385
86036
  if (location && location.kind === 304 /* ShorthandPropertyAssignment */) {
86386
- return resolveEntityName(
86387
- location.name,
86388
- 111551 /* Value */ | 2097152 /* Alias */,
86389
- /*ignoreErrors*/
86390
- true
86391
- );
86037
+ return resolveEntityName(location.name, 111551 /* Value */ | 2097152 /* Alias */);
86392
86038
  }
86393
86039
  return void 0;
86394
86040
  }
@@ -86397,20 +86043,10 @@ function createTypeChecker(host) {
86397
86043
  const name = node.propertyName || node.name;
86398
86044
  return node.parent.parent.moduleSpecifier ? getExternalModuleMember(node.parent.parent, node) : name.kind === 11 /* StringLiteral */ ? void 0 : (
86399
86045
  // Skip for invalid syntax like this: export { "x" }
86400
- resolveEntityName(
86401
- name,
86402
- 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */,
86403
- /*ignoreErrors*/
86404
- true
86405
- )
86046
+ resolveEntityName(name, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */)
86406
86047
  );
86407
86048
  } else {
86408
- return resolveEntityName(
86409
- node,
86410
- 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */,
86411
- /*ignoreErrors*/
86412
- true
86413
- );
86049
+ return resolveEntityName(node, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */);
86414
86050
  }
86415
86051
  }
86416
86052
  function getTypeOfNode(node) {
@@ -87350,36 +86986,6 @@ function createTypeChecker(host) {
87350
86986
  result || (result = []);
87351
86987
  for (const info of infoList) {
87352
86988
  if (info.declaration) continue;
87353
- if (info === anyBaseTypeIndexInfo) continue;
87354
- if (info.components) {
87355
- const allComponentComputedNamesSerializable = every(info.components, (e) => {
87356
- var _a;
87357
- return !!(e.name && isComputedPropertyName(e.name) && isEntityNameExpression(e.name.expression) && enclosing && ((_a = isEntityNameVisible(
87358
- e.name.expression,
87359
- enclosing,
87360
- /*shouldComputeAliasToMakeVisible*/
87361
- false
87362
- )) == null ? void 0 : _a.accessibility) === 0 /* Accessible */);
87363
- });
87364
- if (allComponentComputedNamesSerializable) {
87365
- const newComponents = filter(info.components, (e) => {
87366
- return !hasLateBindableName(e);
87367
- });
87368
- result.push(...map(newComponents, (e) => {
87369
- trackComputedName(e.name.expression);
87370
- const mods = infoList === staticInfos ? [factory.createModifier(126 /* StaticKeyword */)] : void 0;
87371
- return factory.createPropertyDeclaration(
87372
- append(mods, info.isReadonly ? factory.createModifier(148 /* ReadonlyKeyword */) : void 0),
87373
- e.name,
87374
- (isPropertySignature(e) || isPropertyDeclaration(e) || isMethodSignature(e) || isMethodDeclaration(e) || isGetAccessor(e) || isSetAccessor(e)) && e.questionToken ? factory.createToken(58 /* QuestionToken */) : void 0,
87375
- nodeBuilder.typeToTypeNode(getTypeOfSymbol(e.symbol), enclosing, flags, internalFlags, tracker),
87376
- /*initializer*/
87377
- void 0
87378
- );
87379
- }));
87380
- continue;
87381
- }
87382
- }
87383
86989
  const node = nodeBuilder.indexInfoToIndexSignatureDeclaration(info, enclosing, flags, internalFlags, tracker);
87384
86990
  if (node && infoList === staticInfos) {
87385
86991
  (node.modifiers || (node.modifiers = factory.createNodeArray())).unshift(factory.createModifier(126 /* StaticKeyword */));
@@ -87390,22 +86996,6 @@ function createTypeChecker(host) {
87390
86996
  }
87391
86997
  }
87392
86998
  return result;
87393
- function trackComputedName(accessExpression) {
87394
- if (!tracker.trackSymbol) return;
87395
- const firstIdentifier = getFirstIdentifier(accessExpression);
87396
- const name = resolveName(
87397
- firstIdentifier,
87398
- firstIdentifier.escapedText,
87399
- 111551 /* Value */ | 1048576 /* ExportValue */,
87400
- /*nameNotFoundMessage*/
87401
- void 0,
87402
- /*isUse*/
87403
- true
87404
- );
87405
- if (name) {
87406
- tracker.trackSymbol(name, enclosing, 111551 /* Value */);
87407
- }
87408
- }
87409
86999
  }
87410
87000
  };
87411
87001
  function isImportRequiredByAugmentation(node) {
@@ -88487,7 +88077,6 @@ function createTypeChecker(host) {
88487
88077
  }
88488
88078
  switch (moduleKind) {
88489
88079
  case 100 /* Node16 */:
88490
- case 101 /* Node18 */:
88491
88080
  case 199 /* NodeNext */:
88492
88081
  if (sourceFile.impliedNodeFormat === 1 /* CommonJS */) {
88493
88082
  diagnostics.add(
@@ -88506,7 +88095,7 @@ function createTypeChecker(host) {
88506
88095
  // fallthrough
88507
88096
  default:
88508
88097
  diagnostics.add(
88509
- createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher)
88098
+ createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher)
88510
88099
  );
88511
88100
  break;
88512
88101
  }
@@ -88650,7 +88239,7 @@ function createTypeChecker(host) {
88650
88239
  }
88651
88240
  }
88652
88241
  function checkGrammarForInvalidDynamicName(node, message) {
88653
- if (isNonBindableDynamicName(node) && !isEntityNameExpression(isElementAccessExpression(node) ? skipParentheses(node.argumentExpression) : node.expression)) {
88242
+ if (isNonBindableDynamicName(node)) {
88654
88243
  return grammarErrorOnNode(node, message);
88655
88244
  }
88656
88245
  }
@@ -89109,17 +88698,17 @@ function createTypeChecker(host) {
89109
88698
  return grammarErrorOnNode(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);
89110
88699
  }
89111
88700
  if (moduleKind === 5 /* ES2015 */) {
89112
- return grammarErrorOnNode(node, Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_or_nodenext);
88701
+ return grammarErrorOnNode(node, Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);
89113
88702
  }
89114
88703
  if (node.typeArguments) {
89115
88704
  return grammarErrorOnNode(node, Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);
89116
88705
  }
89117
88706
  const nodeArguments = node.arguments;
89118
- if (!(100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) && moduleKind !== 99 /* ESNext */ && moduleKind !== 200 /* Preserve */) {
88707
+ if (moduleKind !== 99 /* ESNext */ && moduleKind !== 199 /* NodeNext */ && moduleKind !== 100 /* Node16 */ && moduleKind !== 200 /* Preserve */) {
89119
88708
  checkGrammarForDisallowedTrailingComma(nodeArguments);
89120
88709
  if (nodeArguments.length > 1) {
89121
88710
  const importAttributesArgument = nodeArguments[1];
89122
- return grammarErrorOnNode(importAttributesArgument, Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_nodenext_or_preserve);
88711
+ return grammarErrorOnNode(importAttributesArgument, Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodenext_or_preserve);
89123
88712
  }
89124
88713
  }
89125
88714
  if (nodeArguments.length === 0 || nodeArguments.length > 2) {
@@ -93454,7 +93043,7 @@ function transformTypeScript(context) {
93454
93043
  return updated;
93455
93044
  }
93456
93045
  function visitParenthesizedExpression(node) {
93457
- const innerExpression = skipOuterExpressions(node.expression, ~(38 /* Assertions */ | 16 /* ExpressionsWithTypeArguments */));
93046
+ const innerExpression = skipOuterExpressions(node.expression, ~(6 /* Assertions */ | 16 /* ExpressionsWithTypeArguments */));
93458
93047
  if (isAssertionExpression(innerExpression) || isSatisfiesExpression(innerExpression)) {
93459
93048
  const expression = visitNode(node.expression, visitor, isExpression);
93460
93049
  Debug.assert(expression);
@@ -111876,7 +111465,7 @@ function transformECMAScriptModule(context) {
111876
111465
  if (node === (importsAndRequiresToRewriteOrShim == null ? void 0 : importsAndRequiresToRewriteOrShim[0])) {
111877
111466
  return visitImportOrRequireCall(importsAndRequiresToRewriteOrShim.shift());
111878
111467
  }
111879
- // fallthrough
111468
+ break;
111880
111469
  default:
111881
111470
  if ((importsAndRequiresToRewriteOrShim == null ? void 0 : importsAndRequiresToRewriteOrShim.length) && rangeContainsRange(node, importsAndRequiresToRewriteOrShim[0])) {
111882
111471
  return visitEachChild(node, visitor, context);
@@ -112613,7 +112202,11 @@ function createGetIsolatedDeclarationErrors(resolver) {
112613
112202
  if (isSetAccessor(node.parent)) {
112614
112203
  return createAccessorTypeError(node.parent);
112615
112204
  }
112616
- const addUndefined = resolver.requiresAddingImplicitUndefined(node, node.parent);
112205
+ const addUndefined = resolver.requiresAddingImplicitUndefined(
112206
+ node,
112207
+ /*enclosingDeclaration*/
112208
+ void 0
112209
+ );
112617
112210
  if (!addUndefined && node.initializer) {
112618
112211
  return createExpressionError(node.initializer);
112619
112212
  }
@@ -114297,7 +113890,6 @@ function getModuleTransformer(moduleKind) {
114297
113890
  case 6 /* ES2020 */:
114298
113891
  case 5 /* ES2015 */:
114299
113892
  case 100 /* Node16 */:
114300
- case 101 /* Node18 */:
114301
113893
  case 199 /* NodeNext */:
114302
113894
  case 1 /* CommonJS */:
114303
113895
  return transformImpliedNodeFormatDependentModule;
@@ -120804,6 +120396,45 @@ function loadWithModeAwareCache(entries, containingFile, redirectedReference, op
120804
120396
  }
120805
120397
  return resolutions;
120806
120398
  }
120399
+ function forEachResolvedProjectReference(resolvedProjectReferences, cb) {
120400
+ return forEachProjectReference(
120401
+ /*projectReferences*/
120402
+ void 0,
120403
+ resolvedProjectReferences,
120404
+ (resolvedRef, parent) => resolvedRef && cb(resolvedRef, parent)
120405
+ );
120406
+ }
120407
+ function forEachProjectReference(projectReferences, resolvedProjectReferences, cbResolvedRef, cbRef) {
120408
+ let seenResolvedRefs;
120409
+ return worker(
120410
+ projectReferences,
120411
+ resolvedProjectReferences,
120412
+ /*parent*/
120413
+ void 0
120414
+ );
120415
+ function worker(projectReferences2, resolvedProjectReferences2, parent) {
120416
+ if (cbRef) {
120417
+ const result = cbRef(projectReferences2, parent);
120418
+ if (result) return result;
120419
+ }
120420
+ let skipChildren;
120421
+ return forEach(
120422
+ resolvedProjectReferences2,
120423
+ (resolvedRef, index) => {
120424
+ if (resolvedRef && (seenResolvedRefs == null ? void 0 : seenResolvedRefs.has(resolvedRef.sourceFile.path))) {
120425
+ (skipChildren ?? (skipChildren = /* @__PURE__ */ new Set())).add(resolvedRef);
120426
+ return void 0;
120427
+ }
120428
+ const result = cbResolvedRef(resolvedRef, parent, index);
120429
+ if (result || !resolvedRef) return result;
120430
+ (seenResolvedRefs || (seenResolvedRefs = /* @__PURE__ */ new Set())).add(resolvedRef.sourceFile.path);
120431
+ }
120432
+ ) || forEach(
120433
+ resolvedProjectReferences2,
120434
+ (resolvedRef) => resolvedRef && !(skipChildren == null ? void 0 : skipChildren.has(resolvedRef)) ? worker(resolvedRef.commandLine.projectReferences, resolvedRef.references, resolvedRef) : void 0
120435
+ );
120436
+ }
120437
+ }
120807
120438
  var inferredTypesContainingFile = "__inferred type names__.ts";
120808
120439
  function getInferredLibraryNameResolveFrom(options, currentDirectory, libFileName) {
120809
120440
  const containingDirectory = options.configFilePath ? getDirectoryPath(options.configFilePath) : currentDirectory;
@@ -120819,6 +120450,13 @@ function getLibraryNameFromLibFileName(libFileName) {
120819
120450
  }
120820
120451
  return "@typescript/lib-" + path;
120821
120452
  }
120453
+ function getLibNameFromLibReference(libReference) {
120454
+ return toFileNameLowerCase(libReference.fileName);
120455
+ }
120456
+ function getLibFileNameFromLibReference(libReference) {
120457
+ const libName = getLibNameFromLibReference(libReference);
120458
+ return libMap.get(libName);
120459
+ }
120822
120460
  function isReferencedFile(reason) {
120823
120461
  switch (reason == null ? void 0 : reason.kind) {
120824
120462
  case 3 /* Import */:
@@ -121032,13 +120670,11 @@ function createCreateProgramOptions(rootNames, options, host, oldProgram, config
121032
120670
  typeScriptVersion: typeScriptVersion2
121033
120671
  };
121034
120672
  }
121035
- function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) {
120673
+ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) {
121036
120674
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
121037
- let _createProgramOptions = isArray(_rootNamesOrOptions) ? createCreateProgramOptions(_rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) : _rootNamesOrOptions;
121038
- const { rootNames, options, configFileParsingDiagnostics, projectReferences, typeScriptVersion: typeScriptVersion2, host: createProgramOptionsHost } = _createProgramOptions;
121039
- let { oldProgram } = _createProgramOptions;
121040
- _createProgramOptions = void 0;
121041
- _rootNamesOrOptions = void 0;
120675
+ const createProgramOptions = isArray(rootNamesOrOptions) ? createCreateProgramOptions(rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) : rootNamesOrOptions;
120676
+ const { rootNames, options, configFileParsingDiagnostics, projectReferences, typeScriptVersion: typeScriptVersion2 } = createProgramOptions;
120677
+ let { oldProgram } = createProgramOptions;
121042
120678
  for (const option of commandLineOptionOfCustomType) {
121043
120679
  if (hasProperty(options, option.name)) {
121044
120680
  if (typeof options[option.name] === "string") {
@@ -121051,12 +120687,16 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
121051
120687
  let processingOtherFiles;
121052
120688
  let files;
121053
120689
  let symlinks;
120690
+ let commonSourceDirectory;
121054
120691
  let typeChecker;
121055
120692
  let classifiableNames;
120693
+ let fileReasons = createMultiMap();
121056
120694
  let filesWithReferencesProcessed;
120695
+ let fileReasonsToChain;
120696
+ let reasonToRelatedInfo;
121057
120697
  let cachedBindAndCheckDiagnosticsForFile;
121058
120698
  let cachedDeclarationDiagnosticsForFile;
121059
- const programDiagnostics = createProgramDiagnostics(getCompilerOptionsObjectLiteralSyntax);
120699
+ let fileProcessingDiagnostics;
121060
120700
  let automaticTypeDirectiveNames;
121061
120701
  let automaticTypeDirectiveResolutions;
121062
120702
  let resolvedLibReferences;
@@ -121078,12 +120718,13 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
121078
120718
  true
121079
120719
  );
121080
120720
  mark("beforeProgram");
121081
- const host = createProgramOptionsHost || createCompilerHost(options);
120721
+ const host = createProgramOptions.host || createCompilerHost(options);
121082
120722
  const configParsingHost = parseConfigHostFromCompilerHostLike(host);
121083
120723
  let skipDefaultLib = options.noLib;
121084
120724
  const getDefaultLibraryFileName = memoize(() => host.getDefaultLibFileName(options));
121085
120725
  const defaultLibraryPath = host.getDefaultLibLocation ? host.getDefaultLibLocation() : getDirectoryPath(getDefaultLibraryFileName());
121086
- let skipVerifyCompilerOptions = false;
120726
+ const programDiagnostics = createDiagnosticCollection();
120727
+ let lazyProgramDiagnosticExplainingFile = [];
121087
120728
  const currentDirectory = host.getCurrentDirectory();
121088
120729
  const supportedExtensions = getSupportedExtensions(options);
121089
120730
  const supportedExtensionsWithJsonIfResolveJsonModule = getSupportedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions);
@@ -121361,7 +121002,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
121361
121002
  getTypeCount: () => getTypeChecker().getTypeCount(),
121362
121003
  getInstantiationCount: () => getTypeChecker().getInstantiationCount(),
121363
121004
  getRelationCacheSizes: () => getTypeChecker().getRelationCacheSizes(),
121364
- getFileProcessingDiagnostics: () => programDiagnostics.getFileProcessingDiagnostics(),
121005
+ getFileProcessingDiagnostics: () => fileProcessingDiagnostics,
121365
121006
  getAutomaticTypeDirectiveNames: () => automaticTypeDirectiveNames,
121366
121007
  getAutomaticTypeDirectiveResolutions: () => automaticTypeDirectiveResolutions,
121367
121008
  isSourceFileFromExternalLibrary,
@@ -121377,7 +121018,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
121377
121018
  resolvedModules,
121378
121019
  resolvedTypeReferenceDirectiveNames,
121379
121020
  resolvedLibReferences,
121380
- getProgramDiagnosticsContainer: () => programDiagnostics,
121381
121021
  getResolvedModule,
121382
121022
  getResolvedModuleFromModuleSpecifier,
121383
121023
  getResolvedTypeReferenceDirective,
@@ -121410,19 +121050,70 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
121410
121050
  realpath: (_o = host.realpath) == null ? void 0 : _o.bind(host),
121411
121051
  useCaseSensitiveFileNames: () => host.useCaseSensitiveFileNames(),
121412
121052
  getCanonicalFileName,
121413
- getFileIncludeReasons: () => programDiagnostics.getFileReasons(),
121053
+ getFileIncludeReasons: () => fileReasons,
121414
121054
  structureIsReused,
121415
121055
  writeFile: writeFile2,
121416
121056
  getGlobalTypingsCacheLocation: maybeBind(host, host.getGlobalTypingsCacheLocation)
121417
121057
  };
121418
121058
  onProgramCreateComplete();
121419
- if (!skipVerifyCompilerOptions) {
121420
- verifyCompilerOptions();
121421
- }
121059
+ verifyCompilerOptions();
121422
121060
  mark("afterProgram");
121423
121061
  measure("Program", "beforeProgram", "afterProgram");
121424
121062
  (_p = tracing) == null ? void 0 : _p.pop();
121425
121063
  return program;
121064
+ function updateAndGetProgramDiagnostics() {
121065
+ if (lazyProgramDiagnosticExplainingFile) {
121066
+ fileProcessingDiagnostics == null ? void 0 : fileProcessingDiagnostics.forEach((diagnostic) => {
121067
+ switch (diagnostic.kind) {
121068
+ case 1 /* FilePreprocessingFileExplainingDiagnostic */:
121069
+ return programDiagnostics.add(
121070
+ createDiagnosticExplainingFile(
121071
+ diagnostic.file && getSourceFileByPath(diagnostic.file),
121072
+ diagnostic.fileProcessingReason,
121073
+ diagnostic.diagnostic,
121074
+ diagnostic.args || emptyArray
121075
+ )
121076
+ );
121077
+ case 0 /* FilePreprocessingLibReferenceDiagnostic */:
121078
+ return programDiagnostics.add(filePreprocessingLibreferenceDiagnostic(diagnostic));
121079
+ case 2 /* ResolutionDiagnostics */:
121080
+ return diagnostic.diagnostics.forEach((d) => programDiagnostics.add(d));
121081
+ default:
121082
+ Debug.assertNever(diagnostic);
121083
+ }
121084
+ });
121085
+ lazyProgramDiagnosticExplainingFile.forEach(
121086
+ ({ file, diagnostic, args }) => programDiagnostics.add(
121087
+ createDiagnosticExplainingFile(
121088
+ file,
121089
+ /*fileProcessingReason*/
121090
+ void 0,
121091
+ diagnostic,
121092
+ args
121093
+ )
121094
+ )
121095
+ );
121096
+ lazyProgramDiagnosticExplainingFile = void 0;
121097
+ fileReasonsToChain = void 0;
121098
+ reasonToRelatedInfo = void 0;
121099
+ }
121100
+ return programDiagnostics;
121101
+ }
121102
+ function filePreprocessingLibreferenceDiagnostic({ reason }) {
121103
+ const { file, pos, end } = getReferencedFileLocation(program, reason);
121104
+ const libReference = file.libReferenceDirectives[reason.index];
121105
+ const libName = getLibNameFromLibReference(libReference);
121106
+ const unqualifiedLibName = removeSuffix(removePrefix(libName, "lib."), ".d.ts");
121107
+ const suggestion = getSpellingSuggestion(unqualifiedLibName, libs, identity);
121108
+ return createFileDiagnostic(
121109
+ file,
121110
+ Debug.checkDefined(pos),
121111
+ Debug.checkDefined(end) - pos,
121112
+ suggestion ? Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1 : Diagnostics.Cannot_find_lib_definition_for_0,
121113
+ libName,
121114
+ suggestion
121115
+ );
121116
+ }
121426
121117
  function getResolvedModule(file, moduleName, mode) {
121427
121118
  var _a2;
121428
121119
  return (_a2 = resolvedModules == null ? void 0 : resolvedModules.get(file.path)) == null ? void 0 : _a2.get(moduleName, mode);
@@ -121471,7 +121162,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
121471
121162
  function addResolutionDiagnostics(resolution) {
121472
121163
  var _a2;
121473
121164
  if (!((_a2 = resolution.resolutionDiagnostics) == null ? void 0 : _a2.length)) return;
121474
- programDiagnostics.addFileProcessingDiagnostic({
121165
+ (fileProcessingDiagnostics ?? (fileProcessingDiagnostics = [])).push({
121475
121166
  kind: 2 /* ResolutionDiagnostics */,
121476
121167
  diagnostics: resolution.resolutionDiagnostics
121477
121168
  });
@@ -121565,19 +121256,16 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
121565
121256
  return toPath(fileName, currentDirectory, getCanonicalFileName);
121566
121257
  }
121567
121258
  function getCommonSourceDirectory2() {
121568
- let commonSourceDirectory = programDiagnostics.getCommonSourceDirectory();
121569
- if (commonSourceDirectory !== void 0) {
121570
- return commonSourceDirectory;
121259
+ if (commonSourceDirectory === void 0) {
121260
+ const emittedFiles = filter(files, (file) => sourceFileMayBeEmitted(file, program));
121261
+ commonSourceDirectory = getCommonSourceDirectory(
121262
+ options,
121263
+ () => mapDefined(emittedFiles, (file) => file.isDeclarationFile ? void 0 : file.fileName),
121264
+ currentDirectory,
121265
+ getCanonicalFileName,
121266
+ (commonSourceDirectory2) => checkSourceFilesBelongToPath(emittedFiles, commonSourceDirectory2)
121267
+ );
121571
121268
  }
121572
- const emittedFiles = filter(files, (file) => sourceFileMayBeEmitted(file, program));
121573
- commonSourceDirectory = getCommonSourceDirectory(
121574
- options,
121575
- () => mapDefined(emittedFiles, (file) => file.isDeclarationFile ? void 0 : file.fileName),
121576
- currentDirectory,
121577
- getCanonicalFileName,
121578
- (commonSourceDirectory2) => checkSourceFilesBelongToPath(emittedFiles, commonSourceDirectory2)
121579
- );
121580
- programDiagnostics.setCommonSourceDirectory(commonSourceDirectory);
121581
121269
  return commonSourceDirectory;
121582
121270
  }
121583
121271
  function getClassifiableNames() {
@@ -121888,10 +121576,9 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
121888
121576
  }
121889
121577
  filesByName.set(path, filesByName.get(oldFile.path));
121890
121578
  });
121891
- const isConfigIdentical = oldOptions.configFile && oldOptions.configFile === options.configFile || !oldOptions.configFile && !options.configFile && !optionsHaveChanges(oldOptions, options, optionDeclarations);
121892
- programDiagnostics.reuseStateFromOldProgram(oldProgram.getProgramDiagnosticsContainer(), isConfigIdentical);
121893
- skipVerifyCompilerOptions = isConfigIdentical;
121894
121579
  files = newSourceFiles;
121580
+ fileReasons = oldProgram.getFileIncludeReasons();
121581
+ fileProcessingDiagnostics = oldProgram.getFileProcessingDiagnostics();
121895
121582
  automaticTypeDirectiveNames = oldProgram.getAutomaticTypeDirectiveNames();
121896
121583
  automaticTypeDirectiveResolutions = oldProgram.getAutomaticTypeDirectiveResolutions();
121897
121584
  sourceFileToPackageName = oldProgram.sourceFileToPackageName;
@@ -122107,7 +121794,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
122107
121794
  if (skipTypeChecking(sourceFile, options, program)) {
122108
121795
  return emptyArray;
122109
121796
  }
122110
- const programDiagnosticsInFile = programDiagnostics.getCombinedDiagnostics(program).getDiagnostics(sourceFile.fileName);
121797
+ const programDiagnosticsInFile = updateAndGetProgramDiagnostics().getDiagnostics(sourceFile.fileName);
122111
121798
  if (!((_a2 = sourceFile.commentDirectives) == null ? void 0 : _a2.length)) {
122112
121799
  return programDiagnosticsInFile;
122113
121800
  }
@@ -122465,15 +122152,15 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
122465
122152
  }
122466
122153
  function getOptionsDiagnostics() {
122467
122154
  return sortAndDeduplicateDiagnostics(concatenate(
122468
- programDiagnostics.getCombinedDiagnostics(program).getGlobalDiagnostics(),
122155
+ updateAndGetProgramDiagnostics().getGlobalDiagnostics(),
122469
122156
  getOptionsDiagnosticsOfConfigFile()
122470
122157
  ));
122471
122158
  }
122472
122159
  function getOptionsDiagnosticsOfConfigFile() {
122473
122160
  if (!options.configFile) return emptyArray;
122474
- let diagnostics = programDiagnostics.getCombinedDiagnostics(program).getDiagnostics(options.configFile.fileName);
122161
+ let diagnostics = updateAndGetProgramDiagnostics().getDiagnostics(options.configFile.fileName);
122475
122162
  forEachResolvedProjectReference2((resolvedRef) => {
122476
- diagnostics = concatenate(diagnostics, programDiagnostics.getCombinedDiagnostics(program).getDiagnostics(resolvedRef.sourceFile.fileName));
122163
+ diagnostics = concatenate(diagnostics, updateAndGetProgramDiagnostics().getDiagnostics(resolvedRef.sourceFile.fileName));
122477
122164
  });
122478
122165
  return diagnostics;
122479
122166
  }
@@ -122680,7 +122367,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
122680
122367
  );
122681
122368
  }
122682
122369
  function reportFileNamesDifferOnlyInCasingError(fileName, existingFile, reason) {
122683
- const hasExistingReasonToReportErrorOn = !isReferencedFile(reason) && some(programDiagnostics.getFileReasons().get(existingFile.path), isReferencedFile);
122370
+ const hasExistingReasonToReportErrorOn = !isReferencedFile(reason) && some(fileReasons.get(existingFile.path), isReferencedFile);
122684
122371
  if (hasExistingReasonToReportErrorOn) {
122685
122372
  addFilePreprocessingFileExplainingDiagnostic(existingFile, reason, Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing, [existingFile.fileName, fileName]);
122686
122373
  } else {
@@ -122867,7 +122554,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
122867
122554
  }
122868
122555
  function addFileIncludeReason(file, reason, checkExisting) {
122869
122556
  if (file && (!checkExisting || !isReferencedFile(reason) || !(filesWithReferencesProcessed == null ? void 0 : filesWithReferencesProcessed.has(reason.file)))) {
122870
- programDiagnostics.getFileReasons().add(file.path, reason);
122557
+ fileReasons.add(file.path, reason);
122871
122558
  return true;
122872
122559
  }
122873
122560
  return false;
@@ -123019,16 +122706,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
123019
122706
  var _a2, _b2, _c2, _d2, _e2;
123020
122707
  const existing = resolvedLibProcessing == null ? void 0 : resolvedLibProcessing.get(libFileName);
123021
122708
  if (existing) return existing;
123022
- if (options.libReplacement === false) {
123023
- const result2 = {
123024
- resolution: {
123025
- resolvedModule: void 0
123026
- },
123027
- actual: combinePaths(defaultLibraryPath, libFileName)
123028
- };
123029
- (resolvedLibProcessing ?? (resolvedLibProcessing = /* @__PURE__ */ new Map())).set(libFileName, result2);
123030
- return result2;
123031
- }
123032
122709
  if (structureIsReused !== 0 /* Not */ && oldProgram && !hasInvalidatedLibResolutions(libFileName)) {
123033
122710
  const oldResolution = (_a2 = oldProgram.resolvedLibReferences) == null ? void 0 : _a2.get(libFileName);
123034
122711
  if (oldResolution) {
@@ -123076,7 +122753,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
123076
122753
  { kind: 7 /* LibReferenceDirective */, file: file.path, index }
123077
122754
  );
123078
122755
  } else {
123079
- programDiagnostics.addFileProcessingDiagnostic({
122756
+ (fileProcessingDiagnostics || (fileProcessingDiagnostics = [])).push({
123080
122757
  kind: 0 /* FilePreprocessingLibReferenceDiagnostic */,
123081
122758
  reason: { kind: 7 /* LibReferenceDirective */, file: file.path, index }
123082
122759
  });
@@ -123139,11 +122816,10 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
123139
122816
  if (!sourceFile.isDeclarationFile) {
123140
122817
  const absoluteSourceFilePath = host.getCanonicalFileName(getNormalizedAbsolutePath(sourceFile.fileName, currentDirectory));
123141
122818
  if (absoluteSourceFilePath.indexOf(absoluteRootDirectoryPath) !== 0) {
123142
- programDiagnostics.addLazyConfigDiagnostic(
122819
+ addLazyProgramDiagnosticExplainingFile(
123143
122820
  sourceFile,
123144
122821
  Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,
123145
- sourceFile.fileName,
123146
- rootDirectory
122822
+ [sourceFile.fileName, rootDirectory]
123147
122823
  );
123148
122824
  allFilesBelongToPath = false;
123149
122825
  }
@@ -123258,7 +122934,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
123258
122934
  }
123259
122935
  const outputFile = options.outFile;
123260
122936
  if (!options.tsBuildInfoFile && options.incremental && !outputFile && !options.configFilePath) {
123261
- programDiagnostics.addConfigDiagnostic(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));
122937
+ programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));
123262
122938
  }
123263
122939
  verifyDeprecatedCompilerOptions();
123264
122940
  verifyProjectReferences();
@@ -123266,11 +122942,10 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
123266
122942
  const rootPaths = new Set(rootNames.map(toPath3));
123267
122943
  for (const file of files) {
123268
122944
  if (sourceFileMayBeEmitted(file, program) && !rootPaths.has(file.path)) {
123269
- programDiagnostics.addLazyConfigDiagnostic(
122945
+ addLazyProgramDiagnosticExplainingFile(
123270
122946
  file,
123271
122947
  Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,
123272
- file.fileName,
123273
- options.configFilePath || ""
122948
+ [file.fileName, options.configFilePath || ""]
123274
122949
  );
123275
122950
  }
123276
122951
  }
@@ -123361,14 +123036,14 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
123361
123036
  }
123362
123037
  } else if (firstNonAmbientExternalModuleSourceFile && languageVersion < 2 /* ES2015 */ && options.module === 0 /* None */) {
123363
123038
  const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);
123364
- programDiagnostics.addConfigDiagnostic(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none));
123039
+ programDiagnostics.add(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none));
123365
123040
  }
123366
123041
  if (outputFile && !options.emitDeclarationOnly) {
123367
123042
  if (options.module && !(options.module === 2 /* AMD */ || options.module === 4 /* System */)) {
123368
123043
  createDiagnosticForOptionName(Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0, "outFile", "module");
123369
123044
  } else if (options.module === void 0 && firstNonAmbientExternalModuleSourceFile) {
123370
123045
  const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);
123371
- programDiagnostics.addConfigDiagnostic(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system, "outFile"));
123046
+ programDiagnostics.add(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system, "outFile"));
123372
123047
  }
123373
123048
  }
123374
123049
  if (getResolveJsonModule(options)) {
@@ -123457,8 +123132,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
123457
123132
  }
123458
123133
  if (ModuleKind[moduleKind] && (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) && !(3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */)) {
123459
123134
  const moduleKindName = ModuleKind[moduleKind];
123460
- const moduleResolutionName = ModuleResolutionKind[moduleKindName] ? moduleKindName : "Node16";
123461
- createOptionValueDiagnostic("moduleResolution", Diagnostics.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1, moduleResolutionName, moduleKindName);
123135
+ createOptionValueDiagnostic("moduleResolution", Diagnostics.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1, moduleKindName, moduleKindName);
123462
123136
  } else if (ModuleResolutionKind[moduleResolution] && (3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */) && !(100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */)) {
123463
123137
  const moduleResolutionName = ModuleResolutionKind[moduleResolution];
123464
123138
  createOptionValueDiagnostic("module", Diagnostics.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1, moduleResolutionName, moduleResolutionName);
@@ -123620,8 +123294,90 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
123620
123294
  }
123621
123295
  });
123622
123296
  }
123297
+ function createDiagnosticExplainingFile(file, fileProcessingReason, diagnostic, args) {
123298
+ let seenReasons;
123299
+ const reasons = file && fileReasons.get(file.path);
123300
+ let fileIncludeReasons;
123301
+ let relatedInfo;
123302
+ let locationReason = isReferencedFile(fileProcessingReason) ? fileProcessingReason : void 0;
123303
+ let fileIncludeReasonDetails;
123304
+ let redirectInfo;
123305
+ let cachedChain = file && (fileReasonsToChain == null ? void 0 : fileReasonsToChain.get(file.path));
123306
+ let chain;
123307
+ if (cachedChain) {
123308
+ if (cachedChain.fileIncludeReasonDetails) {
123309
+ seenReasons = new Set(reasons);
123310
+ reasons == null ? void 0 : reasons.forEach(populateRelatedInfo);
123311
+ } else {
123312
+ reasons == null ? void 0 : reasons.forEach(processReason);
123313
+ }
123314
+ redirectInfo = cachedChain.redirectInfo;
123315
+ } else {
123316
+ reasons == null ? void 0 : reasons.forEach(processReason);
123317
+ redirectInfo = file && explainIfFileIsRedirectAndImpliedFormat(file, getCompilerOptionsForFile(file));
123318
+ }
123319
+ if (fileProcessingReason) processReason(fileProcessingReason);
123320
+ const processedExtraReason = (seenReasons == null ? void 0 : seenReasons.size) !== (reasons == null ? void 0 : reasons.length);
123321
+ if (locationReason && (seenReasons == null ? void 0 : seenReasons.size) === 1) seenReasons = void 0;
123322
+ if (seenReasons && cachedChain) {
123323
+ if (cachedChain.details && !processedExtraReason) {
123324
+ chain = chainDiagnosticMessages(cachedChain.details, diagnostic, ...args || emptyArray);
123325
+ } else if (cachedChain.fileIncludeReasonDetails) {
123326
+ if (!processedExtraReason) {
123327
+ if (!cachedFileIncludeDetailsHasProcessedExtraReason()) {
123328
+ fileIncludeReasonDetails = cachedChain.fileIncludeReasonDetails;
123329
+ } else {
123330
+ fileIncludeReasons = cachedChain.fileIncludeReasonDetails.next.slice(0, reasons.length);
123331
+ }
123332
+ } else {
123333
+ if (!cachedFileIncludeDetailsHasProcessedExtraReason()) {
123334
+ fileIncludeReasons = [...cachedChain.fileIncludeReasonDetails.next, fileIncludeReasons[0]];
123335
+ } else {
123336
+ fileIncludeReasons = append(cachedChain.fileIncludeReasonDetails.next.slice(0, reasons.length), fileIncludeReasons[0]);
123337
+ }
123338
+ }
123339
+ }
123340
+ }
123341
+ if (!chain) {
123342
+ if (!fileIncludeReasonDetails) fileIncludeReasonDetails = seenReasons && chainDiagnosticMessages(fileIncludeReasons, Diagnostics.The_file_is_in_the_program_because_Colon);
123343
+ chain = chainDiagnosticMessages(
123344
+ redirectInfo ? fileIncludeReasonDetails ? [fileIncludeReasonDetails, ...redirectInfo] : redirectInfo : fileIncludeReasonDetails,
123345
+ diagnostic,
123346
+ ...args || emptyArray
123347
+ );
123348
+ }
123349
+ if (file) {
123350
+ if (cachedChain) {
123351
+ if (!cachedChain.fileIncludeReasonDetails || !processedExtraReason && fileIncludeReasonDetails) {
123352
+ cachedChain.fileIncludeReasonDetails = fileIncludeReasonDetails;
123353
+ }
123354
+ } else {
123355
+ (fileReasonsToChain ?? (fileReasonsToChain = /* @__PURE__ */ new Map())).set(file.path, cachedChain = { fileIncludeReasonDetails, redirectInfo });
123356
+ }
123357
+ if (!cachedChain.details && !processedExtraReason) cachedChain.details = chain.next;
123358
+ }
123359
+ const location = locationReason && getReferencedFileLocation(program, locationReason);
123360
+ return location && isReferenceFileLocation(location) ? createFileDiagnosticFromMessageChain(location.file, location.pos, location.end - location.pos, chain, relatedInfo) : createCompilerDiagnosticFromMessageChain(chain, relatedInfo);
123361
+ function processReason(reason) {
123362
+ if (seenReasons == null ? void 0 : seenReasons.has(reason)) return;
123363
+ (seenReasons ?? (seenReasons = /* @__PURE__ */ new Set())).add(reason);
123364
+ (fileIncludeReasons ?? (fileIncludeReasons = [])).push(fileIncludeReasonToDiagnostics(program, reason));
123365
+ populateRelatedInfo(reason);
123366
+ }
123367
+ function populateRelatedInfo(reason) {
123368
+ if (!locationReason && isReferencedFile(reason)) {
123369
+ locationReason = reason;
123370
+ } else if (locationReason !== reason) {
123371
+ relatedInfo = append(relatedInfo, getFileIncludeReasonToRelatedInformation(reason));
123372
+ }
123373
+ }
123374
+ function cachedFileIncludeDetailsHasProcessedExtraReason() {
123375
+ var _a2;
123376
+ return ((_a2 = cachedChain.fileIncludeReasonDetails.next) == null ? void 0 : _a2.length) !== (reasons == null ? void 0 : reasons.length);
123377
+ }
123378
+ }
123623
123379
  function addFilePreprocessingFileExplainingDiagnostic(file, fileProcessingReason, diagnostic, args) {
123624
- programDiagnostics.addFileProcessingDiagnostic({
123380
+ (fileProcessingDiagnostics || (fileProcessingDiagnostics = [])).push({
123625
123381
  kind: 1 /* FilePreprocessingFileExplainingDiagnostic */,
123626
123382
  file: file && file.path,
123627
123383
  fileProcessingReason,
@@ -123629,6 +123385,99 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
123629
123385
  args
123630
123386
  });
123631
123387
  }
123388
+ function addLazyProgramDiagnosticExplainingFile(file, diagnostic, args) {
123389
+ lazyProgramDiagnosticExplainingFile.push({ file, diagnostic, args });
123390
+ }
123391
+ function getFileIncludeReasonToRelatedInformation(reason) {
123392
+ let relatedInfo = reasonToRelatedInfo == null ? void 0 : reasonToRelatedInfo.get(reason);
123393
+ if (relatedInfo === void 0) (reasonToRelatedInfo ?? (reasonToRelatedInfo = /* @__PURE__ */ new Map())).set(reason, relatedInfo = fileIncludeReasonToRelatedInformation(reason) ?? false);
123394
+ return relatedInfo || void 0;
123395
+ }
123396
+ function fileIncludeReasonToRelatedInformation(reason) {
123397
+ if (isReferencedFile(reason)) {
123398
+ const referenceLocation = getReferencedFileLocation(program, reason);
123399
+ let message2;
123400
+ switch (reason.kind) {
123401
+ case 3 /* Import */:
123402
+ message2 = Diagnostics.File_is_included_via_import_here;
123403
+ break;
123404
+ case 4 /* ReferenceFile */:
123405
+ message2 = Diagnostics.File_is_included_via_reference_here;
123406
+ break;
123407
+ case 5 /* TypeReferenceDirective */:
123408
+ message2 = Diagnostics.File_is_included_via_type_library_reference_here;
123409
+ break;
123410
+ case 7 /* LibReferenceDirective */:
123411
+ message2 = Diagnostics.File_is_included_via_library_reference_here;
123412
+ break;
123413
+ default:
123414
+ Debug.assertNever(reason);
123415
+ }
123416
+ return isReferenceFileLocation(referenceLocation) ? createFileDiagnostic(
123417
+ referenceLocation.file,
123418
+ referenceLocation.pos,
123419
+ referenceLocation.end - referenceLocation.pos,
123420
+ message2
123421
+ ) : void 0;
123422
+ }
123423
+ if (!options.configFile) return void 0;
123424
+ let configFileNode;
123425
+ let message;
123426
+ switch (reason.kind) {
123427
+ case 0 /* RootFile */:
123428
+ if (!options.configFile.configFileSpecs) return void 0;
123429
+ const fileName = getNormalizedAbsolutePath(rootNames[reason.index], currentDirectory);
123430
+ const matchedByFiles = getMatchedFileSpec(program, fileName);
123431
+ if (matchedByFiles) {
123432
+ configFileNode = getTsConfigPropArrayElementValue(options.configFile, "files", matchedByFiles);
123433
+ message = Diagnostics.File_is_matched_by_files_list_specified_here;
123434
+ break;
123435
+ }
123436
+ const matchedByInclude = getMatchedIncludeSpec(program, fileName);
123437
+ if (!matchedByInclude || !isString(matchedByInclude)) return void 0;
123438
+ configFileNode = getTsConfigPropArrayElementValue(options.configFile, "include", matchedByInclude);
123439
+ message = Diagnostics.File_is_matched_by_include_pattern_specified_here;
123440
+ break;
123441
+ case 1 /* SourceFromProjectReference */:
123442
+ case 2 /* OutputFromProjectReference */:
123443
+ const referencedResolvedRef = Debug.checkDefined(resolvedProjectReferences == null ? void 0 : resolvedProjectReferences[reason.index]);
123444
+ const referenceInfo = forEachProjectReference(
123445
+ projectReferences,
123446
+ resolvedProjectReferences,
123447
+ (resolvedRef, parent, index2) => resolvedRef === referencedResolvedRef ? { sourceFile: (parent == null ? void 0 : parent.sourceFile) || options.configFile, index: index2 } : void 0
123448
+ );
123449
+ if (!referenceInfo) return void 0;
123450
+ const { sourceFile, index } = referenceInfo;
123451
+ const referencesSyntax = forEachTsConfigPropArray(sourceFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0);
123452
+ return referencesSyntax && referencesSyntax.elements.length > index ? createDiagnosticForNodeInSourceFile(
123453
+ sourceFile,
123454
+ referencesSyntax.elements[index],
123455
+ reason.kind === 2 /* OutputFromProjectReference */ ? Diagnostics.File_is_output_from_referenced_project_specified_here : Diagnostics.File_is_source_from_referenced_project_specified_here
123456
+ ) : void 0;
123457
+ case 8 /* AutomaticTypeDirectiveFile */:
123458
+ if (!options.types) return void 0;
123459
+ configFileNode = getOptionsSyntaxByArrayElementValue("types", reason.typeReference);
123460
+ message = Diagnostics.File_is_entry_point_of_type_library_specified_here;
123461
+ break;
123462
+ case 6 /* LibFile */:
123463
+ if (reason.index !== void 0) {
123464
+ configFileNode = getOptionsSyntaxByArrayElementValue("lib", options.lib[reason.index]);
123465
+ message = Diagnostics.File_is_library_specified_here;
123466
+ break;
123467
+ }
123468
+ const target = getNameOfScriptTarget(getEmitScriptTarget(options));
123469
+ configFileNode = target ? getOptionsSyntaxByValue("target", target) : void 0;
123470
+ message = Diagnostics.File_is_default_library_for_target_specified_here;
123471
+ break;
123472
+ default:
123473
+ Debug.assertNever(reason);
123474
+ }
123475
+ return configFileNode && createDiagnosticForNodeInSourceFile(
123476
+ options.configFile,
123477
+ configFileNode,
123478
+ message
123479
+ );
123480
+ }
123632
123481
  function verifyProjectReferences() {
123633
123482
  const buildInfoPath = !options.suppressOutputPathCheck ? getTsBuildInfoEmitOutputFilePath(options) : void 0;
123634
123483
  forEachProjectReference(
@@ -123664,7 +123513,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
123664
123513
  forEachPropertyAssignment(pathProp.initializer, key, (keyProps) => {
123665
123514
  const initializer = keyProps.initializer;
123666
123515
  if (isArrayLiteralExpression(initializer) && initializer.elements.length > valueIndex) {
123667
- programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, initializer.elements[valueIndex], message, ...args));
123516
+ programDiagnostics.add(createDiagnosticForNodeInSourceFile(options.configFile, initializer.elements[valueIndex], message, ...args));
123668
123517
  needCompilerDiagnostic = false;
123669
123518
  }
123670
123519
  });
@@ -123693,8 +123542,18 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
123693
123542
  createCompilerOptionsDiagnostic(message, ...args);
123694
123543
  }
123695
123544
  }
123545
+ function forEachOptionsSyntaxByName(name, callback) {
123546
+ return forEachPropertyAssignment(getCompilerOptionsObjectLiteralSyntax(), name, callback);
123547
+ }
123696
123548
  function forEachOptionPathsSyntax(callback) {
123697
- return forEachOptionsSyntaxByName(getCompilerOptionsObjectLiteralSyntax(), "paths", callback);
123549
+ return forEachOptionsSyntaxByName("paths", callback);
123550
+ }
123551
+ function getOptionsSyntaxByValue(name, value) {
123552
+ return forEachOptionsSyntaxByName(name, (property) => isStringLiteral(property.initializer) && property.initializer.text === value ? property.initializer : void 0);
123553
+ }
123554
+ function getOptionsSyntaxByArrayElementValue(name, value) {
123555
+ const compilerOptionsObjectLiteralSyntax = getCompilerOptionsObjectLiteralSyntax();
123556
+ return compilerOptionsObjectLiteralSyntax && getPropertyArrayElementValue(compilerOptionsObjectLiteralSyntax, name, value);
123698
123557
  }
123699
123558
  function createDiagnosticForOptionName(message, option1, option2, option3) {
123700
123559
  createDiagnosticForOption(
@@ -123722,9 +123581,9 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
123722
123581
  function createDiagnosticForReference(sourceFile, index, message, ...args) {
123723
123582
  const referencesSyntax = forEachTsConfigPropArray(sourceFile || options.configFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0);
123724
123583
  if (referencesSyntax && referencesSyntax.elements.length > index) {
123725
- programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeInSourceFile(sourceFile || options.configFile, referencesSyntax.elements[index], message, ...args));
123584
+ programDiagnostics.add(createDiagnosticForNodeInSourceFile(sourceFile || options.configFile, referencesSyntax.elements[index], message, ...args));
123726
123585
  } else {
123727
- programDiagnostics.addConfigDiagnostic(createCompilerDiagnostic(message, ...args));
123586
+ programDiagnostics.add(createCompilerDiagnostic(message, ...args));
123728
123587
  }
123729
123588
  }
123730
123589
  function createDiagnosticForOption(onKey, option1, option2, message, ...args) {
@@ -123738,14 +123597,14 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
123738
123597
  const compilerOptionsProperty = getCompilerOptionsPropertySyntax();
123739
123598
  if (compilerOptionsProperty) {
123740
123599
  if ("messageText" in message) {
123741
- programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeFromMessageChain(options.configFile, compilerOptionsProperty.name, message));
123600
+ programDiagnostics.add(createDiagnosticForNodeFromMessageChain(options.configFile, compilerOptionsProperty.name, message));
123742
123601
  } else {
123743
- programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, compilerOptionsProperty.name, message, ...args));
123602
+ programDiagnostics.add(createDiagnosticForNodeInSourceFile(options.configFile, compilerOptionsProperty.name, message, ...args));
123744
123603
  }
123745
123604
  } else if ("messageText" in message) {
123746
- programDiagnostics.addConfigDiagnostic(createCompilerDiagnosticFromMessageChain(message));
123605
+ programDiagnostics.add(createCompilerDiagnosticFromMessageChain(message));
123747
123606
  } else {
123748
- programDiagnostics.addConfigDiagnostic(createCompilerDiagnostic(message, ...args));
123607
+ programDiagnostics.add(createCompilerDiagnostic(message, ...args));
123749
123608
  }
123750
123609
  }
123751
123610
  function getCompilerOptionsObjectLiteralSyntax() {
@@ -123769,9 +123628,9 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
123769
123628
  let needsCompilerDiagnostic = false;
123770
123629
  forEachPropertyAssignment(objectLiteral, key1, (prop) => {
123771
123630
  if ("messageText" in message) {
123772
- programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeFromMessageChain(options.configFile, onKey ? prop.name : prop.initializer, message));
123631
+ programDiagnostics.add(createDiagnosticForNodeFromMessageChain(options.configFile, onKey ? prop.name : prop.initializer, message));
123773
123632
  } else {
123774
- programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, onKey ? prop.name : prop.initializer, message, ...args));
123633
+ programDiagnostics.add(createDiagnosticForNodeInSourceFile(options.configFile, onKey ? prop.name : prop.initializer, message, ...args));
123775
123634
  }
123776
123635
  needsCompilerDiagnostic = true;
123777
123636
  }, key2);
@@ -123779,7 +123638,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
123779
123638
  }
123780
123639
  function blockEmittingOfFile(emitFileName, diag2) {
123781
123640
  hasEmitBlockingDiagnostics.set(toPath3(emitFileName), true);
123782
- programDiagnostics.addConfigDiagnostic(diag2);
123641
+ programDiagnostics.add(diag2);
123783
123642
  }
123784
123643
  function isEmittedFile(file) {
123785
123644
  if (options.noEmit) {
@@ -124102,293 +123961,6 @@ function getModuleNameStringLiteralAt({ imports, moduleAugmentations }, index) {
124102
123961
  Debug.fail("should never ask for module name at index higher than possible module name");
124103
123962
  }
124104
123963
 
124105
- // src/compiler/programDiagnostics.ts
124106
- function createProgramDiagnostics(getCompilerOptionsObjectLiteralSyntax) {
124107
- let computedDiagnostics;
124108
- let fileReasons = createMultiMap();
124109
- let fileProcessingDiagnostics;
124110
- let commonSourceDirectory;
124111
- let configDiagnostics;
124112
- let lazyConfigDiagnostics;
124113
- let fileReasonsToChain;
124114
- let reasonToRelatedInfo;
124115
- return {
124116
- addConfigDiagnostic(diag2) {
124117
- Debug.assert(computedDiagnostics === void 0, "Cannot modify program diagnostic state after requesting combined diagnostics");
124118
- (configDiagnostics ?? (configDiagnostics = createDiagnosticCollection())).add(diag2);
124119
- },
124120
- addLazyConfigDiagnostic(file, message, ...args) {
124121
- Debug.assert(computedDiagnostics === void 0, "Cannot modify program diagnostic state after requesting combined diagnostics");
124122
- (lazyConfigDiagnostics ?? (lazyConfigDiagnostics = [])).push({ file, diagnostic: message, args });
124123
- },
124124
- addFileProcessingDiagnostic(diag2) {
124125
- Debug.assert(computedDiagnostics === void 0, "Cannot modify program diagnostic state after requesting combined diagnostics");
124126
- (fileProcessingDiagnostics ?? (fileProcessingDiagnostics = [])).push(diag2);
124127
- },
124128
- setCommonSourceDirectory(directory) {
124129
- commonSourceDirectory = directory;
124130
- },
124131
- reuseStateFromOldProgram(oldProgramDiagnostics, isConfigIdentical) {
124132
- fileReasons = oldProgramDiagnostics.getFileReasons();
124133
- fileProcessingDiagnostics = oldProgramDiagnostics.getFileProcessingDiagnostics();
124134
- if (isConfigIdentical) {
124135
- commonSourceDirectory = oldProgramDiagnostics.getCommonSourceDirectory();
124136
- configDiagnostics = oldProgramDiagnostics.getConfigDiagnostics();
124137
- lazyConfigDiagnostics = oldProgramDiagnostics.getLazyConfigDiagnostics();
124138
- }
124139
- },
124140
- getFileProcessingDiagnostics() {
124141
- return fileProcessingDiagnostics;
124142
- },
124143
- getFileReasons() {
124144
- return fileReasons;
124145
- },
124146
- getCommonSourceDirectory() {
124147
- return commonSourceDirectory;
124148
- },
124149
- getConfigDiagnostics() {
124150
- return configDiagnostics;
124151
- },
124152
- getLazyConfigDiagnostics() {
124153
- return lazyConfigDiagnostics;
124154
- },
124155
- getCombinedDiagnostics(program) {
124156
- if (computedDiagnostics) {
124157
- return computedDiagnostics;
124158
- }
124159
- computedDiagnostics = createDiagnosticCollection();
124160
- configDiagnostics == null ? void 0 : configDiagnostics.getDiagnostics().forEach((d) => computedDiagnostics.add(d));
124161
- fileProcessingDiagnostics == null ? void 0 : fileProcessingDiagnostics.forEach((diagnostic) => {
124162
- switch (diagnostic.kind) {
124163
- case 1 /* FilePreprocessingFileExplainingDiagnostic */:
124164
- return computedDiagnostics.add(
124165
- createDiagnosticExplainingFile(
124166
- program,
124167
- diagnostic.file && program.getSourceFileByPath(diagnostic.file),
124168
- diagnostic.fileProcessingReason,
124169
- diagnostic.diagnostic,
124170
- diagnostic.args || emptyArray
124171
- )
124172
- );
124173
- case 0 /* FilePreprocessingLibReferenceDiagnostic */:
124174
- return computedDiagnostics.add(filePreprocessingLibreferenceDiagnostic(program, diagnostic));
124175
- case 2 /* ResolutionDiagnostics */:
124176
- return diagnostic.diagnostics.forEach((d) => computedDiagnostics.add(d));
124177
- default:
124178
- Debug.assertNever(diagnostic);
124179
- }
124180
- });
124181
- lazyConfigDiagnostics == null ? void 0 : lazyConfigDiagnostics.forEach(
124182
- ({ file, diagnostic, args }) => computedDiagnostics.add(
124183
- createDiagnosticExplainingFile(
124184
- program,
124185
- file,
124186
- /*fileProcessingReason*/
124187
- void 0,
124188
- diagnostic,
124189
- args
124190
- )
124191
- )
124192
- );
124193
- fileReasonsToChain = void 0;
124194
- reasonToRelatedInfo = void 0;
124195
- return computedDiagnostics;
124196
- }
124197
- };
124198
- function filePreprocessingLibreferenceDiagnostic(program, { reason }) {
124199
- const { file, pos, end } = getReferencedFileLocation(program, reason);
124200
- const libReference = file.libReferenceDirectives[reason.index];
124201
- const libName = getLibNameFromLibReference(libReference);
124202
- const unqualifiedLibName = removeSuffix(removePrefix(libName, "lib."), ".d.ts");
124203
- const suggestion = getSpellingSuggestion(unqualifiedLibName, libs, identity);
124204
- return createFileDiagnostic(
124205
- file,
124206
- Debug.checkDefined(pos),
124207
- Debug.checkDefined(end) - pos,
124208
- suggestion ? Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1 : Diagnostics.Cannot_find_lib_definition_for_0,
124209
- libName,
124210
- suggestion
124211
- );
124212
- }
124213
- function createDiagnosticExplainingFile(program, file, fileProcessingReason, diagnostic, args) {
124214
- let seenReasons;
124215
- let fileIncludeReasons;
124216
- let relatedInfo;
124217
- let fileIncludeReasonDetails;
124218
- let redirectInfo;
124219
- let chain;
124220
- const reasons = file && fileReasons.get(file.path);
124221
- let locationReason = isReferencedFile(fileProcessingReason) ? fileProcessingReason : void 0;
124222
- let cachedChain = file && (fileReasonsToChain == null ? void 0 : fileReasonsToChain.get(file.path));
124223
- if (cachedChain) {
124224
- if (cachedChain.fileIncludeReasonDetails) {
124225
- seenReasons = new Set(reasons);
124226
- reasons == null ? void 0 : reasons.forEach(populateRelatedInfo);
124227
- } else {
124228
- reasons == null ? void 0 : reasons.forEach(processReason);
124229
- }
124230
- redirectInfo = cachedChain.redirectInfo;
124231
- } else {
124232
- reasons == null ? void 0 : reasons.forEach(processReason);
124233
- redirectInfo = file && explainIfFileIsRedirectAndImpliedFormat(file, program.getCompilerOptionsForFile(file));
124234
- }
124235
- if (fileProcessingReason) processReason(fileProcessingReason);
124236
- const processedExtraReason = (seenReasons == null ? void 0 : seenReasons.size) !== (reasons == null ? void 0 : reasons.length);
124237
- if (locationReason && (seenReasons == null ? void 0 : seenReasons.size) === 1) seenReasons = void 0;
124238
- if (seenReasons && cachedChain) {
124239
- if (cachedChain.details && !processedExtraReason) {
124240
- chain = chainDiagnosticMessages(cachedChain.details, diagnostic, ...args ?? emptyArray);
124241
- } else if (cachedChain.fileIncludeReasonDetails) {
124242
- if (!processedExtraReason) {
124243
- if (!cachedFileIncludeDetailsHasProcessedExtraReason()) {
124244
- fileIncludeReasonDetails = cachedChain.fileIncludeReasonDetails;
124245
- } else {
124246
- fileIncludeReasons = cachedChain.fileIncludeReasonDetails.next.slice(0, reasons.length);
124247
- }
124248
- } else {
124249
- if (!cachedFileIncludeDetailsHasProcessedExtraReason()) {
124250
- fileIncludeReasons = [...cachedChain.fileIncludeReasonDetails.next, fileIncludeReasons[0]];
124251
- } else {
124252
- fileIncludeReasons = append(cachedChain.fileIncludeReasonDetails.next.slice(0, reasons.length), fileIncludeReasons[0]);
124253
- }
124254
- }
124255
- }
124256
- }
124257
- if (!chain) {
124258
- if (!fileIncludeReasonDetails) fileIncludeReasonDetails = seenReasons && chainDiagnosticMessages(fileIncludeReasons, Diagnostics.The_file_is_in_the_program_because_Colon);
124259
- chain = chainDiagnosticMessages(
124260
- redirectInfo ? fileIncludeReasonDetails ? [fileIncludeReasonDetails, ...redirectInfo] : redirectInfo : fileIncludeReasonDetails,
124261
- diagnostic,
124262
- ...args || emptyArray
124263
- );
124264
- }
124265
- if (file) {
124266
- if (cachedChain) {
124267
- if (!cachedChain.fileIncludeReasonDetails || !processedExtraReason && fileIncludeReasonDetails) {
124268
- cachedChain.fileIncludeReasonDetails = fileIncludeReasonDetails;
124269
- }
124270
- } else {
124271
- (fileReasonsToChain ?? (fileReasonsToChain = /* @__PURE__ */ new Map())).set(file.path, cachedChain = { fileIncludeReasonDetails, redirectInfo });
124272
- }
124273
- if (!cachedChain.details && !processedExtraReason) cachedChain.details = chain.next;
124274
- }
124275
- const location = locationReason && getReferencedFileLocation(program, locationReason);
124276
- return location && isReferenceFileLocation(location) ? createFileDiagnosticFromMessageChain(location.file, location.pos, location.end - location.pos, chain, relatedInfo) : createCompilerDiagnosticFromMessageChain(chain, relatedInfo);
124277
- function processReason(reason) {
124278
- if (seenReasons == null ? void 0 : seenReasons.has(reason)) return;
124279
- (seenReasons ?? (seenReasons = /* @__PURE__ */ new Set())).add(reason);
124280
- (fileIncludeReasons ?? (fileIncludeReasons = [])).push(fileIncludeReasonToDiagnostics(program, reason));
124281
- populateRelatedInfo(reason);
124282
- }
124283
- function populateRelatedInfo(reason) {
124284
- if (!locationReason && isReferencedFile(reason)) {
124285
- locationReason = reason;
124286
- } else if (locationReason !== reason) {
124287
- relatedInfo = append(relatedInfo, getFileIncludeReasonToRelatedInformation(program, reason));
124288
- }
124289
- }
124290
- function cachedFileIncludeDetailsHasProcessedExtraReason() {
124291
- var _a;
124292
- return ((_a = cachedChain.fileIncludeReasonDetails.next) == null ? void 0 : _a.length) !== (reasons == null ? void 0 : reasons.length);
124293
- }
124294
- }
124295
- function getFileIncludeReasonToRelatedInformation(program, reason) {
124296
- let relatedInfo = reasonToRelatedInfo == null ? void 0 : reasonToRelatedInfo.get(reason);
124297
- if (relatedInfo === void 0) (reasonToRelatedInfo ?? (reasonToRelatedInfo = /* @__PURE__ */ new Map())).set(reason, relatedInfo = fileIncludeReasonToRelatedInformation(program, reason) ?? false);
124298
- return relatedInfo || void 0;
124299
- }
124300
- function fileIncludeReasonToRelatedInformation(program, reason) {
124301
- if (isReferencedFile(reason)) {
124302
- const referenceLocation = getReferencedFileLocation(program, reason);
124303
- let message2;
124304
- switch (reason.kind) {
124305
- case 3 /* Import */:
124306
- message2 = Diagnostics.File_is_included_via_import_here;
124307
- break;
124308
- case 4 /* ReferenceFile */:
124309
- message2 = Diagnostics.File_is_included_via_reference_here;
124310
- break;
124311
- case 5 /* TypeReferenceDirective */:
124312
- message2 = Diagnostics.File_is_included_via_type_library_reference_here;
124313
- break;
124314
- case 7 /* LibReferenceDirective */:
124315
- message2 = Diagnostics.File_is_included_via_library_reference_here;
124316
- break;
124317
- default:
124318
- Debug.assertNever(reason);
124319
- }
124320
- return isReferenceFileLocation(referenceLocation) ? createFileDiagnostic(
124321
- referenceLocation.file,
124322
- referenceLocation.pos,
124323
- referenceLocation.end - referenceLocation.pos,
124324
- message2
124325
- ) : void 0;
124326
- }
124327
- const currentDirectory = program.getCurrentDirectory();
124328
- const rootNames = program.getRootFileNames();
124329
- const options = program.getCompilerOptions();
124330
- if (!options.configFile) return void 0;
124331
- let configFileNode;
124332
- let message;
124333
- switch (reason.kind) {
124334
- case 0 /* RootFile */:
124335
- if (!options.configFile.configFileSpecs) return void 0;
124336
- const fileName = getNormalizedAbsolutePath(rootNames[reason.index], currentDirectory);
124337
- const matchedByFiles = getMatchedFileSpec(program, fileName);
124338
- if (matchedByFiles) {
124339
- configFileNode = getTsConfigPropArrayElementValue(options.configFile, "files", matchedByFiles);
124340
- message = Diagnostics.File_is_matched_by_files_list_specified_here;
124341
- break;
124342
- }
124343
- const matchedByInclude = getMatchedIncludeSpec(program, fileName);
124344
- if (!matchedByInclude || !isString(matchedByInclude)) return void 0;
124345
- configFileNode = getTsConfigPropArrayElementValue(options.configFile, "include", matchedByInclude);
124346
- message = Diagnostics.File_is_matched_by_include_pattern_specified_here;
124347
- break;
124348
- case 1 /* SourceFromProjectReference */:
124349
- case 2 /* OutputFromProjectReference */:
124350
- const resolvedProjectReferences = program.getResolvedProjectReferences();
124351
- const projectReferences = program.getProjectReferences();
124352
- const referencedResolvedRef = Debug.checkDefined(resolvedProjectReferences == null ? void 0 : resolvedProjectReferences[reason.index]);
124353
- const referenceInfo = forEachProjectReference(
124354
- projectReferences,
124355
- resolvedProjectReferences,
124356
- (resolvedRef, parent, index2) => resolvedRef === referencedResolvedRef ? { sourceFile: (parent == null ? void 0 : parent.sourceFile) || options.configFile, index: index2 } : void 0
124357
- );
124358
- if (!referenceInfo) return void 0;
124359
- const { sourceFile, index } = referenceInfo;
124360
- const referencesSyntax = forEachTsConfigPropArray(sourceFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0);
124361
- return referencesSyntax && referencesSyntax.elements.length > index ? createDiagnosticForNodeInSourceFile(
124362
- sourceFile,
124363
- referencesSyntax.elements[index],
124364
- reason.kind === 2 /* OutputFromProjectReference */ ? Diagnostics.File_is_output_from_referenced_project_specified_here : Diagnostics.File_is_source_from_referenced_project_specified_here
124365
- ) : void 0;
124366
- case 8 /* AutomaticTypeDirectiveFile */:
124367
- if (!options.types) return void 0;
124368
- configFileNode = getOptionsSyntaxByArrayElementValue(getCompilerOptionsObjectLiteralSyntax(), "types", reason.typeReference);
124369
- message = Diagnostics.File_is_entry_point_of_type_library_specified_here;
124370
- break;
124371
- case 6 /* LibFile */:
124372
- if (reason.index !== void 0) {
124373
- configFileNode = getOptionsSyntaxByArrayElementValue(getCompilerOptionsObjectLiteralSyntax(), "lib", options.lib[reason.index]);
124374
- message = Diagnostics.File_is_library_specified_here;
124375
- break;
124376
- }
124377
- const target = getNameOfScriptTarget(getEmitScriptTarget(options));
124378
- configFileNode = target ? getOptionsSyntaxByValue(getCompilerOptionsObjectLiteralSyntax(), "target", target) : void 0;
124379
- message = Diagnostics.File_is_default_library_for_target_specified_here;
124380
- break;
124381
- default:
124382
- Debug.assertNever(reason);
124383
- }
124384
- return configFileNode && createDiagnosticForNodeInSourceFile(
124385
- options.configFile,
124386
- configFileNode,
124387
- message
124388
- );
124389
- }
124390
- }
124391
-
124392
123964
  // src/compiler/builderState.ts
124393
123965
  var BuilderState;
124394
123966
  ((BuilderState2) => {
@@ -132131,9 +131703,9 @@ function createSyntacticTypeNodeBuilder(options, resolver) {
132131
131703
  }
132132
131704
  if (!result && node.kind === 303 /* PropertyAssignment */) {
132133
131705
  const initializer = node.initializer;
132134
- const assertionNode = isJSDocTypeAssertion(initializer) ? getJSDocTypeAssertionType(initializer) : initializer.kind === 234 /* AsExpression */ || initializer.kind === 216 /* TypeAssertionExpression */ ? initializer.type : void 0;
132135
- if (assertionNode && !isConstTypeReference(assertionNode) && resolver.canReuseTypeNodeAnnotation(context, node, assertionNode, symbol)) {
132136
- result = serializeExistingTypeNode(assertionNode, context);
131706
+ const type = isJSDocTypeAssertion(initializer) ? getJSDocTypeAssertionType(initializer) : initializer.kind === 234 /* AsExpression */ || initializer.kind === 216 /* TypeAssertionExpression */ ? initializer.type : void 0;
131707
+ if (type && !isConstTypeReference(type)) {
131708
+ result = serializeExistingTypeNode(type, context);
132137
131709
  }
132138
131710
  }
132139
131711
  return result ?? inferTypeOfDeclaration(
@@ -132426,21 +131998,18 @@ function createSyntacticTypeNodeBuilder(options, resolver) {
132426
131998
  return failed;
132427
131999
  }
132428
132000
  function typeFromFunctionLikeExpression(fnNode, context) {
132429
- const returnType = createReturnFromSignature(
132001
+ const oldNoInferenceFallback = context.noInferenceFallback;
132002
+ context.noInferenceFallback = true;
132003
+ createReturnFromSignature(
132430
132004
  fnNode,
132431
132005
  /*symbol*/
132432
132006
  void 0,
132433
132007
  context
132434
132008
  );
132435
- const typeParameters = reuseTypeParameters(fnNode.typeParameters, context);
132436
- const parameters = fnNode.parameters.map((p) => ensureParameter(p, context));
132437
- return syntacticResult(
132438
- factory.createFunctionTypeNode(
132439
- typeParameters,
132440
- parameters,
132441
- returnType
132442
- )
132443
- );
132009
+ reuseTypeParameters(fnNode.typeParameters, context);
132010
+ fnNode.parameters.map((p) => ensureParameter(p, context));
132011
+ context.noInferenceFallback = oldNoInferenceFallback;
132012
+ return notImplemented2;
132444
132013
  }
132445
132014
  function canGetTypeFromArrayLiteral(arrayLiteral, context, isConstContext) {
132446
132015
  if (!isConstContext) {