@peter.naydenov/cuts 2.0.2 → 2.0.3

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 (1029) hide show
  1. package/Changelog.md +5 -0
  2. package/coverage/lcov-report/index.html +1 -1
  3. package/coverage/lcov-report/src/findInstructions.js.html +1 -1
  4. package/coverage/lcov-report/src/index.html +1 -1
  5. package/coverage/lcov-report/src/main.js.html +1 -1
  6. package/coverage/lcov-report/src/methods/hide.js.html +1 -1
  7. package/coverage/lcov-report/src/methods/index.html +1 -1
  8. package/coverage/lcov-report/src/methods/jump.js.html +1 -1
  9. package/coverage/lcov-report/src/methods/jumpBack.js.html +1 -1
  10. package/coverage/lcov-report/src/methods/jumpsReset.js.html +1 -1
  11. package/coverage/lcov-report/src/methods/listShortcuts.js.html +1 -1
  12. package/coverage/lcov-report/src/methods/setScenes.js.html +1 -1
  13. package/coverage/lcov-report/src/methods/show.js.html +1 -1
  14. package/coverage/lcov-report/src/setInstruction.js.html +1 -1
  15. package/package.json +14 -18
  16. package/playwright.config.js +13 -0
  17. package/test/01-findPosition.test.js +119 -0
  18. package/test/02-cuts.test.js +412 -0
  19. package/test-e2e/01-general.test.js +290 -0
  20. package/test-e2e/index.html +30 -0
  21. package/test-e2e/node_modules/.package-lock.json +584 -0
  22. package/test-e2e/node_modules/.vite/deps/@peter__naydenov_log.js +36 -0
  23. package/test-e2e/node_modules/.vite/deps/@peter__naydenov_log.js.map +1 -0
  24. package/test-e2e/node_modules/.vite/deps/@peter__naydenov_shortcuts.js +983 -0
  25. package/test-e2e/node_modules/.vite/deps/@peter__naydenov_shortcuts.js.map +1 -0
  26. package/test-e2e/node_modules/.vite/deps/@peter__naydenov_visual-controller-for-vue3.js +267 -0
  27. package/test-e2e/node_modules/.vite/deps/@peter__naydenov_visual-controller-for-vue3.js.map +1 -0
  28. package/test-e2e/node_modules/.vite/deps/_metadata.json +44 -0
  29. package/test-e2e/node_modules/.vite/deps/ask-for-promise.js +223 -0
  30. package/test-e2e/node_modules/.vite/deps/ask-for-promise.js.map +1 -0
  31. package/test-e2e/node_modules/.vite/deps/package.json +3 -0
  32. package/test-e2e/node_modules/.vite/deps/vue.js +2 -0
  33. package/test-e2e/node_modules/.vite/deps/vue.runtime.esm-bundler-DaROHT9e.js +8579 -0
  34. package/test-e2e/node_modules/.vite/deps/vue.runtime.esm-bundler-DaROHT9e.js.map +1 -0
  35. package/test-e2e/node_modules/@babel/helper-string-parser/LICENSE +22 -0
  36. package/test-e2e/node_modules/@babel/helper-string-parser/README.md +19 -0
  37. package/test-e2e/node_modules/@babel/helper-string-parser/lib/index.js +295 -0
  38. package/test-e2e/node_modules/@babel/helper-string-parser/lib/index.js.map +1 -0
  39. package/test-e2e/node_modules/@babel/helper-string-parser/package.json +31 -0
  40. package/test-e2e/node_modules/@babel/helper-validator-identifier/LICENSE +22 -0
  41. package/test-e2e/node_modules/@babel/helper-validator-identifier/README.md +19 -0
  42. package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/identifier.js +70 -0
  43. package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -0
  44. package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/index.js +57 -0
  45. package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/index.js.map +1 -0
  46. package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/keyword.js +35 -0
  47. package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +1 -0
  48. package/test-e2e/node_modules/@babel/helper-validator-identifier/package.json +31 -0
  49. package/test-e2e/node_modules/@babel/parser/CHANGELOG.md +1073 -0
  50. package/test-e2e/node_modules/@babel/parser/LICENSE +19 -0
  51. package/test-e2e/node_modules/@babel/parser/README.md +19 -0
  52. package/test-e2e/node_modules/@babel/parser/bin/babel-parser.js +15 -0
  53. package/test-e2e/node_modules/@babel/parser/lib/index.js +14582 -0
  54. package/test-e2e/node_modules/@babel/parser/lib/index.js.map +1 -0
  55. package/test-e2e/node_modules/@babel/parser/package.json +50 -0
  56. package/test-e2e/node_modules/@babel/parser/typings/babel-parser.d.ts +262 -0
  57. package/test-e2e/node_modules/@babel/types/LICENSE +22 -0
  58. package/test-e2e/node_modules/@babel/types/README.md +19 -0
  59. package/test-e2e/node_modules/@babel/types/lib/asserts/assertNode.js +16 -0
  60. package/test-e2e/node_modules/@babel/types/lib/asserts/assertNode.js.map +1 -0
  61. package/test-e2e/node_modules/@babel/types/lib/asserts/generated/index.js +1251 -0
  62. package/test-e2e/node_modules/@babel/types/lib/asserts/generated/index.js.map +1 -0
  63. package/test-e2e/node_modules/@babel/types/lib/ast-types/generated/index.js +3 -0
  64. package/test-e2e/node_modules/@babel/types/lib/ast-types/generated/index.js.map +1 -0
  65. package/test-e2e/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js +18 -0
  66. package/test-e2e/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js.map +1 -0
  67. package/test-e2e/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js +31 -0
  68. package/test-e2e/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js.map +1 -0
  69. package/test-e2e/node_modules/@babel/types/lib/builders/generated/index.js +29 -0
  70. package/test-e2e/node_modules/@babel/types/lib/builders/generated/index.js.map +1 -0
  71. package/test-e2e/node_modules/@babel/types/lib/builders/generated/lowercase.js +2902 -0
  72. package/test-e2e/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +1 -0
  73. package/test-e2e/node_modules/@babel/types/lib/builders/generated/uppercase.js +272 -0
  74. package/test-e2e/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +1 -0
  75. package/test-e2e/node_modules/@babel/types/lib/builders/productions.js +12 -0
  76. package/test-e2e/node_modules/@babel/types/lib/builders/productions.js.map +1 -0
  77. package/test-e2e/node_modules/@babel/types/lib/builders/react/buildChildren.js +24 -0
  78. package/test-e2e/node_modules/@babel/types/lib/builders/react/buildChildren.js.map +1 -0
  79. package/test-e2e/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js +22 -0
  80. package/test-e2e/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js.map +1 -0
  81. package/test-e2e/node_modules/@babel/types/lib/builders/validateNode.js +21 -0
  82. package/test-e2e/node_modules/@babel/types/lib/builders/validateNode.js.map +1 -0
  83. package/test-e2e/node_modules/@babel/types/lib/clone/clone.js +12 -0
  84. package/test-e2e/node_modules/@babel/types/lib/clone/clone.js.map +1 -0
  85. package/test-e2e/node_modules/@babel/types/lib/clone/cloneDeep.js +12 -0
  86. package/test-e2e/node_modules/@babel/types/lib/clone/cloneDeep.js.map +1 -0
  87. package/test-e2e/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js +12 -0
  88. package/test-e2e/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js.map +1 -0
  89. package/test-e2e/node_modules/@babel/types/lib/clone/cloneNode.js +107 -0
  90. package/test-e2e/node_modules/@babel/types/lib/clone/cloneNode.js.map +1 -0
  91. package/test-e2e/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js +12 -0
  92. package/test-e2e/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js.map +1 -0
  93. package/test-e2e/node_modules/@babel/types/lib/comments/addComment.js +15 -0
  94. package/test-e2e/node_modules/@babel/types/lib/comments/addComment.js.map +1 -0
  95. package/test-e2e/node_modules/@babel/types/lib/comments/addComments.js +22 -0
  96. package/test-e2e/node_modules/@babel/types/lib/comments/addComments.js.map +1 -0
  97. package/test-e2e/node_modules/@babel/types/lib/comments/inheritInnerComments.js +12 -0
  98. package/test-e2e/node_modules/@babel/types/lib/comments/inheritInnerComments.js.map +1 -0
  99. package/test-e2e/node_modules/@babel/types/lib/comments/inheritLeadingComments.js +12 -0
  100. package/test-e2e/node_modules/@babel/types/lib/comments/inheritLeadingComments.js.map +1 -0
  101. package/test-e2e/node_modules/@babel/types/lib/comments/inheritTrailingComments.js +12 -0
  102. package/test-e2e/node_modules/@babel/types/lib/comments/inheritTrailingComments.js.map +1 -0
  103. package/test-e2e/node_modules/@babel/types/lib/comments/inheritsComments.js +17 -0
  104. package/test-e2e/node_modules/@babel/types/lib/comments/inheritsComments.js.map +1 -0
  105. package/test-e2e/node_modules/@babel/types/lib/comments/removeComments.js +15 -0
  106. package/test-e2e/node_modules/@babel/types/lib/comments/removeComments.js.map +1 -0
  107. package/test-e2e/node_modules/@babel/types/lib/constants/generated/index.js +60 -0
  108. package/test-e2e/node_modules/@babel/types/lib/constants/generated/index.js.map +1 -0
  109. package/test-e2e/node_modules/@babel/types/lib/constants/index.js +31 -0
  110. package/test-e2e/node_modules/@babel/types/lib/constants/index.js.map +1 -0
  111. package/test-e2e/node_modules/@babel/types/lib/converters/ensureBlock.js +14 -0
  112. package/test-e2e/node_modules/@babel/types/lib/converters/ensureBlock.js.map +1 -0
  113. package/test-e2e/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js +65 -0
  114. package/test-e2e/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +1 -0
  115. package/test-e2e/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js +14 -0
  116. package/test-e2e/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js.map +1 -0
  117. package/test-e2e/node_modules/@babel/types/lib/converters/toBlock.js +29 -0
  118. package/test-e2e/node_modules/@babel/types/lib/converters/toBlock.js.map +1 -0
  119. package/test-e2e/node_modules/@babel/types/lib/converters/toComputedKey.js +14 -0
  120. package/test-e2e/node_modules/@babel/types/lib/converters/toComputedKey.js.map +1 -0
  121. package/test-e2e/node_modules/@babel/types/lib/converters/toExpression.js +28 -0
  122. package/test-e2e/node_modules/@babel/types/lib/converters/toExpression.js.map +1 -0
  123. package/test-e2e/node_modules/@babel/types/lib/converters/toIdentifier.js +25 -0
  124. package/test-e2e/node_modules/@babel/types/lib/converters/toIdentifier.js.map +1 -0
  125. package/test-e2e/node_modules/@babel/types/lib/converters/toKeyAlias.js +38 -0
  126. package/test-e2e/node_modules/@babel/types/lib/converters/toKeyAlias.js.map +1 -0
  127. package/test-e2e/node_modules/@babel/types/lib/converters/toSequenceExpression.js +19 -0
  128. package/test-e2e/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +1 -0
  129. package/test-e2e/node_modules/@babel/types/lib/converters/toStatement.js +39 -0
  130. package/test-e2e/node_modules/@babel/types/lib/converters/toStatement.js.map +1 -0
  131. package/test-e2e/node_modules/@babel/types/lib/converters/valueToNode.js +89 -0
  132. package/test-e2e/node_modules/@babel/types/lib/converters/valueToNode.js.map +1 -0
  133. package/test-e2e/node_modules/@babel/types/lib/definitions/core.js +1725 -0
  134. package/test-e2e/node_modules/@babel/types/lib/definitions/core.js.map +1 -0
  135. package/test-e2e/node_modules/@babel/types/lib/definitions/deprecated-aliases.js +11 -0
  136. package/test-e2e/node_modules/@babel/types/lib/definitions/deprecated-aliases.js.map +1 -0
  137. package/test-e2e/node_modules/@babel/types/lib/definitions/experimental.js +124 -0
  138. package/test-e2e/node_modules/@babel/types/lib/definitions/experimental.js.map +1 -0
  139. package/test-e2e/node_modules/@babel/types/lib/definitions/flow.js +495 -0
  140. package/test-e2e/node_modules/@babel/types/lib/definitions/flow.js.map +1 -0
  141. package/test-e2e/node_modules/@babel/types/lib/definitions/index.js +106 -0
  142. package/test-e2e/node_modules/@babel/types/lib/definitions/index.js.map +1 -0
  143. package/test-e2e/node_modules/@babel/types/lib/definitions/jsx.js +157 -0
  144. package/test-e2e/node_modules/@babel/types/lib/definitions/jsx.js.map +1 -0
  145. package/test-e2e/node_modules/@babel/types/lib/definitions/misc.js +31 -0
  146. package/test-e2e/node_modules/@babel/types/lib/definitions/misc.js.map +1 -0
  147. package/test-e2e/node_modules/@babel/types/lib/definitions/placeholders.js +27 -0
  148. package/test-e2e/node_modules/@babel/types/lib/definitions/placeholders.js.map +1 -0
  149. package/test-e2e/node_modules/@babel/types/lib/definitions/typescript.js +528 -0
  150. package/test-e2e/node_modules/@babel/types/lib/definitions/typescript.js.map +1 -0
  151. package/test-e2e/node_modules/@babel/types/lib/definitions/utils.js +296 -0
  152. package/test-e2e/node_modules/@babel/types/lib/definitions/utils.js.map +1 -0
  153. package/test-e2e/node_modules/@babel/types/lib/index-legacy.d.ts +2797 -0
  154. package/test-e2e/node_modules/@babel/types/lib/index.d.ts +3617 -0
  155. package/test-e2e/node_modules/@babel/types/lib/index.js +582 -0
  156. package/test-e2e/node_modules/@babel/types/lib/index.js.flow +2650 -0
  157. package/test-e2e/node_modules/@babel/types/lib/index.js.map +1 -0
  158. package/test-e2e/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js +15 -0
  159. package/test-e2e/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js.map +1 -0
  160. package/test-e2e/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js +65 -0
  161. package/test-e2e/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js.map +1 -0
  162. package/test-e2e/node_modules/@babel/types/lib/modifications/inherits.js +28 -0
  163. package/test-e2e/node_modules/@babel/types/lib/modifications/inherits.js.map +1 -0
  164. package/test-e2e/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js +17 -0
  165. package/test-e2e/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js.map +1 -0
  166. package/test-e2e/node_modules/@babel/types/lib/modifications/removeProperties.js +24 -0
  167. package/test-e2e/node_modules/@babel/types/lib/modifications/removeProperties.js.map +1 -0
  168. package/test-e2e/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js +14 -0
  169. package/test-e2e/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js.map +1 -0
  170. package/test-e2e/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +66 -0
  171. package/test-e2e/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +1 -0
  172. package/test-e2e/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js +48 -0
  173. package/test-e2e/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js.map +1 -0
  174. package/test-e2e/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +102 -0
  175. package/test-e2e/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +1 -0
  176. package/test-e2e/node_modules/@babel/types/lib/retrievers/getFunctionName.js +63 -0
  177. package/test-e2e/node_modules/@babel/types/lib/retrievers/getFunctionName.js.map +1 -0
  178. package/test-e2e/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js +13 -0
  179. package/test-e2e/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js.map +1 -0
  180. package/test-e2e/node_modules/@babel/types/lib/traverse/traverse.js +50 -0
  181. package/test-e2e/node_modules/@babel/types/lib/traverse/traverse.js.map +1 -0
  182. package/test-e2e/node_modules/@babel/types/lib/traverse/traverseFast.js +40 -0
  183. package/test-e2e/node_modules/@babel/types/lib/traverse/traverseFast.js.map +1 -0
  184. package/test-e2e/node_modules/@babel/types/lib/utils/deprecationWarning.js +44 -0
  185. package/test-e2e/node_modules/@babel/types/lib/utils/deprecationWarning.js.map +1 -0
  186. package/test-e2e/node_modules/@babel/types/lib/utils/inherit.js +13 -0
  187. package/test-e2e/node_modules/@babel/types/lib/utils/inherit.js.map +1 -0
  188. package/test-e2e/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js +40 -0
  189. package/test-e2e/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js.map +1 -0
  190. package/test-e2e/node_modules/@babel/types/lib/utils/shallowEqual.js +17 -0
  191. package/test-e2e/node_modules/@babel/types/lib/utils/shallowEqual.js.map +1 -0
  192. package/test-e2e/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js +13 -0
  193. package/test-e2e/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js.map +1 -0
  194. package/test-e2e/node_modules/@babel/types/lib/validators/generated/index.js +2797 -0
  195. package/test-e2e/node_modules/@babel/types/lib/validators/generated/index.js.map +1 -0
  196. package/test-e2e/node_modules/@babel/types/lib/validators/is.js +27 -0
  197. package/test-e2e/node_modules/@babel/types/lib/validators/is.js.map +1 -0
  198. package/test-e2e/node_modules/@babel/types/lib/validators/isBinding.js +27 -0
  199. package/test-e2e/node_modules/@babel/types/lib/validators/isBinding.js.map +1 -0
  200. package/test-e2e/node_modules/@babel/types/lib/validators/isBlockScoped.js +13 -0
  201. package/test-e2e/node_modules/@babel/types/lib/validators/isBlockScoped.js.map +1 -0
  202. package/test-e2e/node_modules/@babel/types/lib/validators/isImmutable.js +21 -0
  203. package/test-e2e/node_modules/@babel/types/lib/validators/isImmutable.js.map +1 -0
  204. package/test-e2e/node_modules/@babel/types/lib/validators/isLet.js +13 -0
  205. package/test-e2e/node_modules/@babel/types/lib/validators/isLet.js.map +1 -0
  206. package/test-e2e/node_modules/@babel/types/lib/validators/isNode.js +12 -0
  207. package/test-e2e/node_modules/@babel/types/lib/validators/isNode.js.map +1 -0
  208. package/test-e2e/node_modules/@babel/types/lib/validators/isNodesEquivalent.js +57 -0
  209. package/test-e2e/node_modules/@babel/types/lib/validators/isNodesEquivalent.js.map +1 -0
  210. package/test-e2e/node_modules/@babel/types/lib/validators/isPlaceholderType.js +15 -0
  211. package/test-e2e/node_modules/@babel/types/lib/validators/isPlaceholderType.js.map +1 -0
  212. package/test-e2e/node_modules/@babel/types/lib/validators/isReferenced.js +96 -0
  213. package/test-e2e/node_modules/@babel/types/lib/validators/isReferenced.js.map +1 -0
  214. package/test-e2e/node_modules/@babel/types/lib/validators/isScope.js +18 -0
  215. package/test-e2e/node_modules/@babel/types/lib/validators/isScope.js.map +1 -0
  216. package/test-e2e/node_modules/@babel/types/lib/validators/isSpecifierDefault.js +14 -0
  217. package/test-e2e/node_modules/@babel/types/lib/validators/isSpecifierDefault.js.map +1 -0
  218. package/test-e2e/node_modules/@babel/types/lib/validators/isType.js +17 -0
  219. package/test-e2e/node_modules/@babel/types/lib/validators/isType.js.map +1 -0
  220. package/test-e2e/node_modules/@babel/types/lib/validators/isValidES3Identifier.js +13 -0
  221. package/test-e2e/node_modules/@babel/types/lib/validators/isValidES3Identifier.js.map +1 -0
  222. package/test-e2e/node_modules/@babel/types/lib/validators/isValidIdentifier.js +18 -0
  223. package/test-e2e/node_modules/@babel/types/lib/validators/isValidIdentifier.js.map +1 -0
  224. package/test-e2e/node_modules/@babel/types/lib/validators/isVar.js +15 -0
  225. package/test-e2e/node_modules/@babel/types/lib/validators/isVar.js.map +1 -0
  226. package/test-e2e/node_modules/@babel/types/lib/validators/matchesPattern.js +44 -0
  227. package/test-e2e/node_modules/@babel/types/lib/validators/matchesPattern.js.map +1 -0
  228. package/test-e2e/node_modules/@babel/types/lib/validators/react/isCompatTag.js +11 -0
  229. package/test-e2e/node_modules/@babel/types/lib/validators/react/isCompatTag.js.map +1 -0
  230. package/test-e2e/node_modules/@babel/types/lib/validators/react/isReactComponent.js +11 -0
  231. package/test-e2e/node_modules/@babel/types/lib/validators/react/isReactComponent.js.map +1 -0
  232. package/test-e2e/node_modules/@babel/types/lib/validators/validate.js +42 -0
  233. package/test-e2e/node_modules/@babel/types/lib/validators/validate.js.map +1 -0
  234. package/test-e2e/node_modules/@babel/types/package.json +39 -0
  235. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/LICENSE +19 -0
  236. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/README.md +264 -0
  237. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +423 -0
  238. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +6 -0
  239. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +464 -0
  240. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +6 -0
  241. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/package.json +63 -0
  242. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/src/scopes.ts +345 -0
  243. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +111 -0
  244. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/src/strings.ts +65 -0
  245. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/src/vlq.ts +55 -0
  246. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts +50 -0
  247. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts.map +1 -0
  248. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +50 -0
  249. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts.map +1 -0
  250. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts +9 -0
  251. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts.map +1 -0
  252. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +9 -0
  253. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts.map +1 -0
  254. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts +16 -0
  255. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts.map +1 -0
  256. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +16 -0
  257. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts.map +1 -0
  258. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts +7 -0
  259. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts.map +1 -0
  260. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +7 -0
  261. package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts.map +1 -0
  262. package/test-e2e/node_modules/@oxc-project/types/LICENSE +22 -0
  263. package/test-e2e/node_modules/@oxc-project/types/README.md +3 -0
  264. package/test-e2e/node_modules/@oxc-project/types/package.json +26 -0
  265. package/test-e2e/node_modules/@oxc-project/types/types.d.ts +1912 -0
  266. package/test-e2e/node_modules/@peter.naydenov/notice/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
  267. package/test-e2e/node_modules/@peter.naydenov/notice/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  268. package/test-e2e/node_modules/@peter.naydenov/notice/CODE_OF_CONDUCT.md +128 -0
  269. package/test-e2e/node_modules/@peter.naydenov/notice/Changelog.md +88 -0
  270. package/test-e2e/node_modules/@peter.naydenov/notice/LICENSE +21 -0
  271. package/test-e2e/node_modules/@peter.naydenov/notice/README.md +294 -0
  272. package/test-e2e/node_modules/@peter.naydenov/notice/SECURITY.md +18 -0
  273. package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/base.css +224 -0
  274. package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/block-navigation.js +87 -0
  275. package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/favicon.png +0 -0
  276. package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/index.html +116 -0
  277. package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/main.js.html +592 -0
  278. package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/prettify.css +1 -0
  279. package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/prettify.js +2 -0
  280. package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  281. package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/sorter.js +196 -0
  282. package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov.info +246 -0
  283. package/test-e2e/node_modules/@peter.naydenov/notice/coverage/tmp/coverage-46509-1760816753149-0.json +1 -0
  284. package/test-e2e/node_modules/@peter.naydenov/notice/coverage/tmp/coverage-46510-1760816753116-0.json +1 -0
  285. package/test-e2e/node_modules/@peter.naydenov/notice/dist/notice.cjs +1 -0
  286. package/test-e2e/node_modules/@peter.naydenov/notice/dist/notice.esm.mjs +1 -0
  287. package/test-e2e/node_modules/@peter.naydenov/notice/dist/notice.umd.js +1 -0
  288. package/test-e2e/node_modules/@peter.naydenov/notice/notice-desk.png +0 -0
  289. package/test-e2e/node_modules/@peter.naydenov/notice/package.json +64 -0
  290. package/test-e2e/node_modules/@peter.naydenov/notice/rollup.config.js +37 -0
  291. package/test-e2e/node_modules/@peter.naydenov/notice/src/main.js +168 -0
  292. package/test-e2e/node_modules/@peter.naydenov/notice/tsconfig.json +11 -0
  293. package/test-e2e/node_modules/@peter.naydenov/notice/types/main.d.ts +12 -0
  294. package/test-e2e/node_modules/@peter.naydenov/notice/types/main.d.ts.map +1 -0
  295. package/test-e2e/node_modules/@peter.naydenov/notice/types/src/main.d.ts +12 -0
  296. package/test-e2e/node_modules/@peter.naydenov/notice/types/src/main.d.ts.map +1 -0
  297. package/test-e2e/node_modules/@peter.naydenov/shortcuts/API.md +939 -0
  298. package/test-e2e/node_modules/@peter.naydenov/shortcuts/CODE_OF_CONDUCT.md +84 -0
  299. package/test-e2e/node_modules/@peter.naydenov/shortcuts/CONTRIBUTING.md +476 -0
  300. package/test-e2e/node_modules/@peter.naydenov/shortcuts/Changelog.md +217 -0
  301. package/test-e2e/node_modules/@peter.naydenov/shortcuts/How.to.create.plugins.md +929 -0
  302. package/test-e2e/node_modules/@peter.naydenov/shortcuts/LICENSE +21 -0
  303. package/test-e2e/node_modules/@peter.naydenov/shortcuts/Migration.guide.md +176 -0
  304. package/test-e2e/node_modules/@peter.naydenov/shortcuts/README-v.2.x.x.md +375 -0
  305. package/test-e2e/node_modules/@peter.naydenov/shortcuts/README.md +900 -0
  306. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/main.d.ts +172 -0
  307. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/_normalizeWithPlugins.d.ts +64 -0
  308. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/_readShortcutWithPlugins.d.ts +9 -0
  309. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/_setupPlugin.d.ts +9 -0
  310. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/_systemAction.d.ts +9 -0
  311. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/changeContext.d.ts +9 -0
  312. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/index.d.ts +19 -0
  313. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/listShortcuts.d.ts +2 -0
  314. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/load.d.ts +9 -0
  315. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/unload.d.ts +9 -0
  316. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_findTarget.d.ts +10 -0
  317. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_listenDOM.d.ts +78 -0
  318. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_normalizeShortcutName.d.ts +8 -0
  319. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_readClickEvent.d.ts +2 -0
  320. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_registerShortcutEvents.d.ts +28 -0
  321. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/index.d.ts +16 -0
  322. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/_defaults.d.ts +17 -0
  323. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/_listenDOM.d.ts +68 -0
  324. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/_normalizeShortcutName.d.ts +2 -0
  325. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/_registerShortcutEvents.d.ts +96 -0
  326. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/index.d.ts +9 -0
  327. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/_findTarget.d.ts +10 -0
  328. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/_listenDOM.d.ts +68 -0
  329. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/_normalizeShortcutName.d.ts +2 -0
  330. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/_registerShortcutEvents.d.ts +28 -0
  331. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/index.d.ts +14 -0
  332. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_listenDOM.d.ts +63 -0
  333. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_normalizeShortcutName.d.ts +2 -0
  334. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_readKeyEvent.d.ts +2 -0
  335. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_registerShortcutEvents.d.ts +28 -0
  336. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_specialChars.d.ts +7 -0
  337. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/index.d.ts +14 -0
  338. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/scroll/_listenDOM.d.ts +58 -0
  339. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/scroll/_normalizeShortcutName.d.ts +2 -0
  340. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/scroll/_registerShortcutEvents.d.ts +28 -0
  341. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/scroll/index.d.ts +16 -0
  342. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/shortcuts.cjs +1 -0
  343. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/shortcuts.esm.mjs +1 -0
  344. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/shortcuts.umd.js +1 -0
  345. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/main.d.ts +172 -0
  346. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/_normalizeWithPlugins.d.ts +64 -0
  347. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/_readShortcutWithPlugins.d.ts +9 -0
  348. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/_setupPlugin.d.ts +9 -0
  349. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/_systemAction.d.ts +9 -0
  350. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/changeContext.d.ts +9 -0
  351. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/index.d.ts +19 -0
  352. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/listShortcuts.d.ts +2 -0
  353. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/load.d.ts +9 -0
  354. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/unload.d.ts +9 -0
  355. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_findTarget.d.ts +10 -0
  356. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_listenDOM.d.ts +78 -0
  357. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_normalizeShortcutName.d.ts +8 -0
  358. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_readClickEvent.d.ts +2 -0
  359. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_registerShortcutEvents.d.ts +28 -0
  360. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/index.d.ts +16 -0
  361. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/_defaults.d.ts +17 -0
  362. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/_listenDOM.d.ts +68 -0
  363. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/_normalizeShortcutName.d.ts +2 -0
  364. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/_registerShortcutEvents.d.ts +96 -0
  365. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/index.d.ts +9 -0
  366. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/_findTarget.d.ts +10 -0
  367. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/_listenDOM.d.ts +68 -0
  368. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/_normalizeShortcutName.d.ts +2 -0
  369. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/_registerShortcutEvents.d.ts +28 -0
  370. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/index.d.ts +14 -0
  371. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_listenDOM.d.ts +63 -0
  372. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_normalizeShortcutName.d.ts +2 -0
  373. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_readKeyEvent.d.ts +2 -0
  374. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_registerShortcutEvents.d.ts +28 -0
  375. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_specialChars.d.ts +7 -0
  376. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/index.d.ts +14 -0
  377. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/scroll/_listenDOM.d.ts +58 -0
  378. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/scroll/_normalizeShortcutName.d.ts +2 -0
  379. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/scroll/_registerShortcutEvents.d.ts +28 -0
  380. package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/scroll/index.d.ts +16 -0
  381. package/test-e2e/node_modules/@peter.naydenov/shortcuts/eslint.config.js +80 -0
  382. package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/assets/index-COTh6lXR.css +1 -0
  383. package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/assets/index-DOkKC3NI.js +53 -0
  384. package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/bg.png +0 -0
  385. package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/favicon.ico +0 -0
  386. package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/favicon.svg +5 -0
  387. package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/html.meta.json.gz +0 -0
  388. package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/index.html +32 -0
  389. package/test-e2e/node_modules/@peter.naydenov/shortcuts/index.html +126 -0
  390. package/test-e2e/node_modules/@peter.naydenov/shortcuts/javascript.svg +1 -0
  391. package/test-e2e/node_modules/@peter.naydenov/shortcuts/jsconfig.json +10 -0
  392. package/test-e2e/node_modules/@peter.naydenov/shortcuts/package.json +66 -0
  393. package/test-e2e/node_modules/@peter.naydenov/shortcuts/public/vite.svg +1 -0
  394. package/test-e2e/node_modules/@peter.naydenov/shortcuts/rollup.config.js +40 -0
  395. package/test-e2e/node_modules/@peter.naydenov/shortcuts/shortcuts.png +0 -0
  396. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/main.js +302 -0
  397. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/_normalizeWithPlugins.js +49 -0
  398. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/_readShortcutWithPlugins.js +32 -0
  399. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/_setupPlugin.js +93 -0
  400. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/_systemAction.js +33 -0
  401. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/changeContext.js +68 -0
  402. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/index.js +25 -0
  403. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/listShortcuts.js +34 -0
  404. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/load.js +58 -0
  405. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/unload.js +38 -0
  406. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_findTarget.js +26 -0
  407. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_listenDOM.js +165 -0
  408. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_normalizeShortcutName.js +51 -0
  409. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_readClickEvent.js +24 -0
  410. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_registerShortcutEvents.js +58 -0
  411. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/index.js +67 -0
  412. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/_defaults.js +28 -0
  413. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/_listenDOM.js +127 -0
  414. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/_normalizeShortcutName.js +21 -0
  415. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/_registerShortcutEvents.js +147 -0
  416. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/index.js +58 -0
  417. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/_findTarget.js +26 -0
  418. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/_listenDOM.js +154 -0
  419. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/_normalizeShortcutName.js +21 -0
  420. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/_registerShortcutEvents.js +51 -0
  421. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/index.js +71 -0
  422. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_listenDOM.js +186 -0
  423. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_normalizeShortcutName.js +32 -0
  424. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_readKeyEvent.js +28 -0
  425. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_registerShortcutEvents.js +57 -0
  426. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_specialChars.js +43 -0
  427. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/index.js +67 -0
  428. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/scroll/_listenDOM.js +141 -0
  429. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/scroll/_normalizeShortcutName.js +21 -0
  430. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/scroll/_registerShortcutEvents.js +50 -0
  431. package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/scroll/index.js +61 -0
  432. package/test-e2e/node_modules/@peter.naydenov/shortcuts/style.css +97 -0
  433. package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/01-general.test.js +275 -0
  434. package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/02-key.test.js +473 -0
  435. package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/03-click.test.js +596 -0
  436. package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/04-form.test.js +327 -0
  437. package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/05-hover.test.js +463 -0
  438. package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/06-scroll.test.js +374 -0
  439. package/test-e2e/node_modules/@peter.naydenov/shortcuts/test-helpers/Block.jsx +15 -0
  440. package/test-e2e/node_modules/@peter.naydenov/shortcuts/test-helpers/setup.js +18 -0
  441. package/test-e2e/node_modules/@peter.naydenov/shortcuts/test-helpers/style.css +26 -0
  442. package/test-e2e/node_modules/@peter.naydenov/shortcuts/test-helpers/wait.js +8 -0
  443. package/test-e2e/node_modules/@peter.naydenov/shortcuts/tsconfig.json +24 -0
  444. package/test-e2e/node_modules/@peter.naydenov/shortcuts/vite.config.js +7 -0
  445. package/test-e2e/node_modules/@peter.naydenov/shortcuts/vitest.config.js +23 -0
  446. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/LICENSE +21 -0
  447. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress/fixtures/example.json +5 -0
  448. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress/support/commands.js +25 -0
  449. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress/support/component-index.html +12 -0
  450. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress/support/component.js +27 -0
  451. package/{cypress.config.mjs → test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress.config.js} +2 -3
  452. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/dist/visual-controller-for-vue3.cjs +1 -0
  453. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/dist/visual-controller-for-vue3.esm.mjs +1 -0
  454. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/dist/visual-controller-for-vue3.umd.js +1 -0
  455. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/index.html +13 -0
  456. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/package.json +43 -0
  457. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/public/vite.svg +1 -0
  458. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/readme.md +233 -0
  459. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/rollup.config.js +42 -0
  460. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/App.vue +44 -0
  461. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/assets/vue.svg +1 -0
  462. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/components/HelloWorld.vue +26 -0
  463. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/main.js +101 -0
  464. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/style.css +90 -0
  465. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/test/01_general.cy.js +98 -0
  466. package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/vite.config.js +7 -0
  467. package/test-e2e/node_modules/@rolldown/binding-darwin-arm64/README.md +3 -0
  468. package/test-e2e/node_modules/@rolldown/binding-darwin-arm64/package.json +37 -0
  469. package/test-e2e/node_modules/@rolldown/binding-darwin-arm64/rolldown-binding.darwin-arm64.node +0 -0
  470. package/test-e2e/node_modules/@rolldown/pluginutils/LICENSE +25 -0
  471. package/test-e2e/node_modules/@rolldown/pluginutils/README.md +77 -0
  472. package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts +90 -0
  473. package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js +256 -0
  474. package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.d.ts +28 -0
  475. package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.js +75 -0
  476. package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/index.d.ts +3 -0
  477. package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/index.js +3 -0
  478. package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.d.ts +71 -0
  479. package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js +70 -0
  480. package/test-e2e/node_modules/@rolldown/pluginutils/dist/index.d.ts +1 -0
  481. package/test-e2e/node_modules/@rolldown/pluginutils/dist/index.js +1 -0
  482. package/test-e2e/node_modules/@rolldown/pluginutils/dist/utils.d.ts +2 -0
  483. package/test-e2e/node_modules/@rolldown/pluginutils/dist/utils.js +17 -0
  484. package/test-e2e/node_modules/@rolldown/pluginutils/package.json +37 -0
  485. package/test-e2e/node_modules/@vitejs/plugin-vue/LICENSE +21 -0
  486. package/test-e2e/node_modules/@vitejs/plugin-vue/README.md +278 -0
  487. package/test-e2e/node_modules/@vitejs/plugin-vue/dist/index.d.mts +120 -0
  488. package/test-e2e/node_modules/@vitejs/plugin-vue/dist/index.mjs +1745 -0
  489. package/test-e2e/node_modules/@vitejs/plugin-vue/package.json +65 -0
  490. package/test-e2e/node_modules/@vue/compiler-core/LICENSE +21 -0
  491. package/test-e2e/node_modules/@vue/compiler-core/README.md +1 -0
  492. package/test-e2e/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js +6888 -0
  493. package/test-e2e/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6763 -0
  494. package/test-e2e/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +1100 -0
  495. package/test-e2e/node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js +5835 -0
  496. package/test-e2e/node_modules/@vue/compiler-core/index.js +7 -0
  497. package/test-e2e/node_modules/@vue/compiler-core/package.json +58 -0
  498. package/test-e2e/node_modules/@vue/compiler-dom/LICENSE +21 -0
  499. package/test-e2e/node_modules/@vue/compiler-dom/README.md +1 -0
  500. package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js +934 -0
  501. package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
  502. package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +45 -0
  503. package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +6644 -0
  504. package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-browser.prod.js +14 -0
  505. package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js +690 -0
  506. package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.global.js +6814 -0
  507. package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.global.prod.js +14 -0
  508. package/test-e2e/node_modules/@vue/compiler-dom/index.js +7 -0
  509. package/test-e2e/node_modules/@vue/compiler-dom/package.json +57 -0
  510. package/test-e2e/node_modules/@vue/compiler-sfc/LICENSE +21 -0
  511. package/test-e2e/node_modules/@vue/compiler-sfc/README.md +79 -0
  512. package/test-e2e/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +25619 -0
  513. package/test-e2e/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +487 -0
  514. package/test-e2e/node_modules/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +50833 -0
  515. package/test-e2e/node_modules/@vue/compiler-sfc/package.json +67 -0
  516. package/test-e2e/node_modules/@vue/compiler-ssr/LICENSE +21 -0
  517. package/test-e2e/node_modules/@vue/compiler-ssr/README.md +1 -0
  518. package/test-e2e/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
  519. package/test-e2e/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +4 -0
  520. package/test-e2e/node_modules/@vue/compiler-ssr/package.json +34 -0
  521. package/test-e2e/node_modules/@vue/reactivity/LICENSE +21 -0
  522. package/test-e2e/node_modules/@vue/reactivity/README.md +19 -0
  523. package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.cjs.js +2033 -0
  524. package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1877 -0
  525. package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.d.ts +756 -0
  526. package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.esm-browser.js +2031 -0
  527. package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.esm-browser.prod.js +5 -0
  528. package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +1990 -0
  529. package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.global.js +2087 -0
  530. package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.global.prod.js +5 -0
  531. package/test-e2e/node_modules/@vue/reactivity/index.js +7 -0
  532. package/test-e2e/node_modules/@vue/reactivity/package.json +55 -0
  533. package/test-e2e/node_modules/@vue/runtime-core/LICENSE +21 -0
  534. package/test-e2e/node_modules/@vue/runtime-core/README.md +28 -0
  535. package/test-e2e/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js +8718 -0
  536. package/test-e2e/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6856 -0
  537. package/test-e2e/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +1866 -0
  538. package/test-e2e/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +8647 -0
  539. package/test-e2e/node_modules/@vue/runtime-core/index.js +7 -0
  540. package/test-e2e/node_modules/@vue/runtime-core/package.json +52 -0
  541. package/test-e2e/node_modules/@vue/runtime-dom/LICENSE +21 -0
  542. package/test-e2e/node_modules/@vue/runtime-dom/README.md +13 -0
  543. package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.js +1946 -0
  544. package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1796 -0
  545. package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +1450 -0
  546. package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-browser.js +12794 -0
  547. package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-browser.prod.js +7 -0
  548. package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js +1985 -0
  549. package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.global.js +12847 -0
  550. package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.global.prod.js +7 -0
  551. package/test-e2e/node_modules/@vue/runtime-dom/index.js +7 -0
  552. package/test-e2e/node_modules/@vue/runtime-dom/package.json +60 -0
  553. package/test-e2e/node_modules/@vue/server-renderer/LICENSE +21 -0
  554. package/test-e2e/node_modules/@vue/server-renderer/README.md +178 -0
  555. package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js +1159 -0
  556. package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +883 -0
  557. package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +65 -0
  558. package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.esm-browser.js +8627 -0
  559. package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.esm-browser.prod.js +5 -0
  560. package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js +1097 -0
  561. package/test-e2e/node_modules/@vue/server-renderer/index.js +7 -0
  562. package/test-e2e/node_modules/@vue/server-renderer/package.json +55 -0
  563. package/test-e2e/node_modules/@vue/shared/LICENSE +21 -0
  564. package/test-e2e/node_modules/@vue/shared/README.md +3 -0
  565. package/test-e2e/node_modules/@vue/shared/dist/shared.cjs.js +612 -0
  566. package/test-e2e/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
  567. package/test-e2e/node_modules/@vue/shared/dist/shared.d.ts +334 -0
  568. package/test-e2e/node_modules/@vue/shared/dist/shared.esm-bundler.js +536 -0
  569. package/test-e2e/node_modules/@vue/shared/index.js +7 -0
  570. package/test-e2e/node_modules/@vue/shared/package.json +47 -0
  571. package/test-e2e/node_modules/ask-for-promise/LICENSE +21 -0
  572. package/test-e2e/node_modules/ask-for-promise/README.md +278 -0
  573. package/test-e2e/node_modules/ask-for-promise/dist/ask-for-promise.cjs +1 -0
  574. package/test-e2e/node_modules/ask-for-promise/dist/ask-for-promise.esm.mjs +1 -0
  575. package/test-e2e/node_modules/ask-for-promise/dist/ask-for-promise.umd.js +1 -0
  576. package/test-e2e/node_modules/ask-for-promise/package.json +77 -0
  577. package/test-e2e/node_modules/ask-for-promise/src/askForPromise.js +277 -0
  578. package/test-e2e/node_modules/ask-for-promise/types/index.d.ts +18 -0
  579. package/test-e2e/node_modules/csstype/LICENSE +19 -0
  580. package/test-e2e/node_modules/csstype/README.md +291 -0
  581. package/test-e2e/node_modules/csstype/index.d.ts +22569 -0
  582. package/test-e2e/node_modules/csstype/index.js.flow +6863 -0
  583. package/test-e2e/node_modules/csstype/package.json +70 -0
  584. package/test-e2e/node_modules/detect-libc/LICENSE +201 -0
  585. package/test-e2e/node_modules/detect-libc/README.md +163 -0
  586. package/test-e2e/node_modules/detect-libc/index.d.ts +14 -0
  587. package/test-e2e/node_modules/detect-libc/lib/detect-libc.js +313 -0
  588. package/test-e2e/node_modules/detect-libc/lib/elf.js +39 -0
  589. package/test-e2e/node_modules/detect-libc/lib/filesystem.js +51 -0
  590. package/test-e2e/node_modules/detect-libc/lib/process.js +24 -0
  591. package/test-e2e/node_modules/detect-libc/package.json +44 -0
  592. package/test-e2e/node_modules/entities/LICENSE +11 -0
  593. package/test-e2e/node_modules/entities/decode.d.ts +3 -0
  594. package/test-e2e/node_modules/entities/decode.js +3 -0
  595. package/test-e2e/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +19 -0
  596. package/test-e2e/node_modules/entities/dist/commonjs/decode-codepoint.d.ts.map +1 -0
  597. package/test-e2e/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
  598. package/test-e2e/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
  599. package/test-e2e/node_modules/entities/dist/commonjs/decode.d.ts +205 -0
  600. package/test-e2e/node_modules/entities/dist/commonjs/decode.d.ts.map +1 -0
  601. package/test-e2e/node_modules/entities/dist/commonjs/decode.js +568 -0
  602. package/test-e2e/node_modules/entities/dist/commonjs/decode.js.map +1 -0
  603. package/test-e2e/node_modules/entities/dist/commonjs/encode.d.ts +22 -0
  604. package/test-e2e/node_modules/entities/dist/commonjs/encode.d.ts.map +1 -0
  605. package/test-e2e/node_modules/entities/dist/commonjs/encode.js +92 -0
  606. package/test-e2e/node_modules/entities/dist/commonjs/encode.js.map +1 -0
  607. package/test-e2e/node_modules/entities/dist/commonjs/escape.d.ts +46 -0
  608. package/test-e2e/node_modules/entities/dist/commonjs/escape.d.ts.map +1 -0
  609. package/test-e2e/node_modules/entities/dist/commonjs/escape.js +138 -0
  610. package/test-e2e/node_modules/entities/dist/commonjs/escape.js.map +1 -0
  611. package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +2 -0
  612. package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts.map +1 -0
  613. package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
  614. package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
  615. package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +2 -0
  616. package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts.map +1 -0
  617. package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
  618. package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
  619. package/test-e2e/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +3 -0
  620. package/test-e2e/node_modules/entities/dist/commonjs/generated/encode-html.d.ts.map +1 -0
  621. package/test-e2e/node_modules/entities/dist/commonjs/generated/encode-html.js +14 -0
  622. package/test-e2e/node_modules/entities/dist/commonjs/generated/encode-html.js.map +1 -0
  623. package/test-e2e/node_modules/entities/dist/commonjs/index.d.ts +96 -0
  624. package/test-e2e/node_modules/entities/dist/commonjs/index.d.ts.map +1 -0
  625. package/test-e2e/node_modules/entities/dist/commonjs/index.js +131 -0
  626. package/test-e2e/node_modules/entities/dist/commonjs/index.js.map +1 -0
  627. package/test-e2e/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts +17 -0
  628. package/test-e2e/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts.map +1 -0
  629. package/test-e2e/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
  630. package/test-e2e/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js.map +1 -0
  631. package/test-e2e/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts +2 -0
  632. package/test-e2e/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts.map +1 -0
  633. package/test-e2e/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
  634. package/test-e2e/node_modules/entities/dist/commonjs/internal/decode-shared.js.map +1 -0
  635. package/test-e2e/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts +32 -0
  636. package/test-e2e/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts.map +1 -0
  637. package/test-e2e/node_modules/entities/dist/commonjs/internal/encode-shared.js +94 -0
  638. package/test-e2e/node_modules/entities/dist/commonjs/internal/encode-shared.js.map +1 -0
  639. package/test-e2e/node_modules/entities/dist/commonjs/package.json +3 -0
  640. package/test-e2e/node_modules/entities/dist/esm/decode-codepoint.d.ts +19 -0
  641. package/test-e2e/node_modules/entities/dist/esm/decode-codepoint.d.ts.map +1 -0
  642. package/test-e2e/node_modules/entities/dist/esm/decode-codepoint.js +72 -0
  643. package/test-e2e/node_modules/entities/dist/esm/decode-codepoint.js.map +1 -0
  644. package/test-e2e/node_modules/entities/dist/esm/decode.d.ts +205 -0
  645. package/test-e2e/node_modules/entities/dist/esm/decode.d.ts.map +1 -0
  646. package/test-e2e/node_modules/entities/dist/esm/decode.js +554 -0
  647. package/test-e2e/node_modules/entities/dist/esm/decode.js.map +1 -0
  648. package/test-e2e/node_modules/entities/dist/esm/encode.d.ts +22 -0
  649. package/test-e2e/node_modules/entities/dist/esm/encode.d.ts.map +1 -0
  650. package/test-e2e/node_modules/entities/dist/esm/encode.js +88 -0
  651. package/test-e2e/node_modules/entities/dist/esm/encode.js.map +1 -0
  652. package/test-e2e/node_modules/entities/dist/esm/escape.d.ts +46 -0
  653. package/test-e2e/node_modules/entities/dist/esm/escape.d.ts.map +1 -0
  654. package/test-e2e/node_modules/entities/dist/esm/escape.js +134 -0
  655. package/test-e2e/node_modules/entities/dist/esm/escape.js.map +1 -0
  656. package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +2 -0
  657. package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-html.d.ts.map +1 -0
  658. package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-html.js +4 -0
  659. package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-html.js.map +1 -0
  660. package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +2 -0
  661. package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts.map +1 -0
  662. package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-xml.js +4 -0
  663. package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-xml.js.map +1 -0
  664. package/test-e2e/node_modules/entities/dist/esm/generated/encode-html.d.ts +3 -0
  665. package/test-e2e/node_modules/entities/dist/esm/generated/encode-html.d.ts.map +1 -0
  666. package/test-e2e/node_modules/entities/dist/esm/generated/encode-html.js +11 -0
  667. package/test-e2e/node_modules/entities/dist/esm/generated/encode-html.js.map +1 -0
  668. package/test-e2e/node_modules/entities/dist/esm/index.d.ts +96 -0
  669. package/test-e2e/node_modules/entities/dist/esm/index.d.ts.map +1 -0
  670. package/test-e2e/node_modules/entities/dist/esm/index.js +107 -0
  671. package/test-e2e/node_modules/entities/dist/esm/index.js.map +1 -0
  672. package/test-e2e/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts +17 -0
  673. package/test-e2e/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts.map +1 -0
  674. package/test-e2e/node_modules/entities/dist/esm/internal/bin-trie-flags.js +18 -0
  675. package/test-e2e/node_modules/entities/dist/esm/internal/bin-trie-flags.js.map +1 -0
  676. package/test-e2e/node_modules/entities/dist/esm/internal/decode-shared.d.ts +2 -0
  677. package/test-e2e/node_modules/entities/dist/esm/internal/decode-shared.d.ts.map +1 -0
  678. package/test-e2e/node_modules/entities/dist/esm/internal/decode-shared.js +28 -0
  679. package/test-e2e/node_modules/entities/dist/esm/internal/decode-shared.js.map +1 -0
  680. package/test-e2e/node_modules/entities/dist/esm/internal/encode-shared.d.ts +32 -0
  681. package/test-e2e/node_modules/entities/dist/esm/internal/encode-shared.d.ts.map +1 -0
  682. package/test-e2e/node_modules/entities/dist/esm/internal/encode-shared.js +91 -0
  683. package/test-e2e/node_modules/entities/dist/esm/internal/encode-shared.js.map +1 -0
  684. package/test-e2e/node_modules/entities/dist/esm/package.json +3 -0
  685. package/test-e2e/node_modules/entities/escape.d.ts +3 -0
  686. package/test-e2e/node_modules/entities/escape.js +3 -0
  687. package/test-e2e/node_modules/entities/package.json +120 -0
  688. package/test-e2e/node_modules/entities/readme.md +143 -0
  689. package/test-e2e/node_modules/entities/src/decode-codepoint.ts +81 -0
  690. package/test-e2e/node_modules/entities/src/decode.ts +685 -0
  691. package/test-e2e/node_modules/entities/src/encode.ts +93 -0
  692. package/test-e2e/node_modules/entities/src/escape.ts +161 -0
  693. package/test-e2e/node_modules/entities/src/generated/.eslintrc.json +10 -0
  694. package/test-e2e/node_modules/entities/src/generated/decode-data-html.ts +6 -0
  695. package/test-e2e/node_modules/entities/src/generated/decode-data-xml.ts +6 -0
  696. package/test-e2e/node_modules/entities/src/generated/encode-html.ts +17 -0
  697. package/test-e2e/node_modules/entities/src/index.ts +187 -0
  698. package/test-e2e/node_modules/entities/src/internal/bin-trie-flags.ts +16 -0
  699. package/test-e2e/node_modules/entities/src/internal/decode-shared.ts +30 -0
  700. package/test-e2e/node_modules/entities/src/internal/encode-shared.ts +121 -0
  701. package/test-e2e/node_modules/estree-walker/CHANGELOG.md +92 -0
  702. package/test-e2e/node_modules/estree-walker/LICENSE +7 -0
  703. package/test-e2e/node_modules/estree-walker/README.md +48 -0
  704. package/test-e2e/node_modules/estree-walker/dist/esm/estree-walker.js +333 -0
  705. package/test-e2e/node_modules/estree-walker/dist/esm/package.json +1 -0
  706. package/test-e2e/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
  707. package/test-e2e/node_modules/estree-walker/package.json +37 -0
  708. package/test-e2e/node_modules/estree-walker/src/async.js +118 -0
  709. package/test-e2e/node_modules/estree-walker/src/index.js +35 -0
  710. package/test-e2e/node_modules/estree-walker/src/package.json +1 -0
  711. package/test-e2e/node_modules/estree-walker/src/sync.js +118 -0
  712. package/test-e2e/node_modules/estree-walker/src/walker.js +61 -0
  713. package/test-e2e/node_modules/estree-walker/types/async.d.ts +53 -0
  714. package/test-e2e/node_modules/estree-walker/types/index.d.ts +56 -0
  715. package/test-e2e/node_modules/estree-walker/types/sync.d.ts +53 -0
  716. package/test-e2e/node_modules/estree-walker/types/tsconfig.tsbuildinfo +345 -0
  717. package/test-e2e/node_modules/estree-walker/types/walker.d.ts +37 -0
  718. package/test-e2e/node_modules/fdir/LICENSE +7 -0
  719. package/test-e2e/node_modules/fdir/README.md +91 -0
  720. package/test-e2e/node_modules/fdir/dist/index.cjs +588 -0
  721. package/test-e2e/node_modules/fdir/dist/index.d.cts +155 -0
  722. package/test-e2e/node_modules/fdir/dist/index.d.mts +155 -0
  723. package/test-e2e/node_modules/fdir/dist/index.mjs +570 -0
  724. package/test-e2e/node_modules/fdir/package.json +103 -0
  725. package/test-e2e/node_modules/lightningcss/LICENSE +373 -0
  726. package/test-e2e/node_modules/lightningcss/README.md +105 -0
  727. package/test-e2e/node_modules/lightningcss/node/ast.d.ts +9892 -0
  728. package/test-e2e/node_modules/lightningcss/node/ast.js.flow +10539 -0
  729. package/test-e2e/node_modules/lightningcss/node/browserslistToTargets.js +48 -0
  730. package/test-e2e/node_modules/lightningcss/node/composeVisitors.js +450 -0
  731. package/test-e2e/node_modules/lightningcss/node/flags.js +28 -0
  732. package/test-e2e/node_modules/lightningcss/node/index.d.ts +494 -0
  733. package/test-e2e/node_modules/lightningcss/node/index.js +59 -0
  734. package/test-e2e/node_modules/lightningcss/node/index.js.flow +843 -0
  735. package/test-e2e/node_modules/lightningcss/node/index.mjs +4 -0
  736. package/test-e2e/node_modules/lightningcss/node/targets.d.ts +40 -0
  737. package/test-e2e/node_modules/lightningcss/node/targets.js.flow +39 -0
  738. package/test-e2e/node_modules/lightningcss/package.json +110 -0
  739. package/test-e2e/node_modules/lightningcss-darwin-arm64/LICENSE +373 -0
  740. package/test-e2e/node_modules/lightningcss-darwin-arm64/README.md +1 -0
  741. package/test-e2e/node_modules/lightningcss-darwin-arm64/lightningcss.darwin-arm64.node +0 -0
  742. package/test-e2e/node_modules/lightningcss-darwin-arm64/package.json +34 -0
  743. package/test-e2e/node_modules/magic-string/LICENSE +7 -0
  744. package/test-e2e/node_modules/magic-string/README.md +325 -0
  745. package/test-e2e/node_modules/magic-string/dist/magic-string.cjs.d.ts +289 -0
  746. package/test-e2e/node_modules/magic-string/dist/magic-string.cjs.js +1594 -0
  747. package/test-e2e/node_modules/magic-string/dist/magic-string.cjs.js.map +1 -0
  748. package/test-e2e/node_modules/magic-string/dist/magic-string.es.d.mts +289 -0
  749. package/test-e2e/node_modules/magic-string/dist/magic-string.es.mjs +1588 -0
  750. package/test-e2e/node_modules/magic-string/dist/magic-string.es.mjs.map +1 -0
  751. package/test-e2e/node_modules/magic-string/dist/magic-string.umd.js +1682 -0
  752. package/test-e2e/node_modules/magic-string/dist/magic-string.umd.js.map +1 -0
  753. package/test-e2e/node_modules/magic-string/package.json +67 -0
  754. package/test-e2e/node_modules/nanoid/LICENSE +20 -0
  755. package/test-e2e/node_modules/nanoid/README.md +39 -0
  756. package/test-e2e/node_modules/nanoid/async/index.browser.cjs +69 -0
  757. package/test-e2e/node_modules/nanoid/async/index.browser.js +34 -0
  758. package/test-e2e/node_modules/nanoid/async/index.cjs +71 -0
  759. package/test-e2e/node_modules/nanoid/async/index.d.ts +56 -0
  760. package/test-e2e/node_modules/nanoid/async/index.js +35 -0
  761. package/test-e2e/node_modules/nanoid/async/index.native.js +26 -0
  762. package/test-e2e/node_modules/nanoid/async/package.json +12 -0
  763. package/test-e2e/node_modules/nanoid/bin/nanoid.cjs +55 -0
  764. package/test-e2e/node_modules/nanoid/index.browser.cjs +72 -0
  765. package/test-e2e/node_modules/nanoid/index.browser.js +34 -0
  766. package/test-e2e/node_modules/nanoid/index.cjs +85 -0
  767. package/test-e2e/node_modules/nanoid/index.d.cts +91 -0
  768. package/test-e2e/node_modules/nanoid/index.d.ts +91 -0
  769. package/test-e2e/node_modules/nanoid/index.js +45 -0
  770. package/test-e2e/node_modules/nanoid/nanoid.js +1 -0
  771. package/test-e2e/node_modules/nanoid/non-secure/index.cjs +34 -0
  772. package/test-e2e/node_modules/nanoid/non-secure/index.d.ts +33 -0
  773. package/test-e2e/node_modules/nanoid/non-secure/index.js +21 -0
  774. package/test-e2e/node_modules/nanoid/non-secure/package.json +6 -0
  775. package/test-e2e/node_modules/nanoid/package.json +89 -0
  776. package/test-e2e/node_modules/nanoid/url-alphabet/index.cjs +7 -0
  777. package/test-e2e/node_modules/nanoid/url-alphabet/index.js +3 -0
  778. package/test-e2e/node_modules/nanoid/url-alphabet/package.json +6 -0
  779. package/test-e2e/node_modules/picocolors/LICENSE +15 -0
  780. package/test-e2e/node_modules/picocolors/README.md +21 -0
  781. package/test-e2e/node_modules/picocolors/package.json +25 -0
  782. package/test-e2e/node_modules/picocolors/picocolors.browser.js +4 -0
  783. package/test-e2e/node_modules/picocolors/picocolors.d.ts +5 -0
  784. package/test-e2e/node_modules/picocolors/picocolors.js +75 -0
  785. package/test-e2e/node_modules/picocolors/types.d.ts +51 -0
  786. package/test-e2e/node_modules/picomatch/LICENSE +21 -0
  787. package/test-e2e/node_modules/picomatch/README.md +749 -0
  788. package/test-e2e/node_modules/picomatch/index.js +17 -0
  789. package/test-e2e/node_modules/picomatch/lib/constants.js +184 -0
  790. package/test-e2e/node_modules/picomatch/lib/parse.js +1386 -0
  791. package/test-e2e/node_modules/picomatch/lib/picomatch.js +349 -0
  792. package/test-e2e/node_modules/picomatch/lib/scan.js +391 -0
  793. package/test-e2e/node_modules/picomatch/lib/utils.js +72 -0
  794. package/test-e2e/node_modules/picomatch/package.json +82 -0
  795. package/test-e2e/node_modules/picomatch/posix.js +3 -0
  796. package/test-e2e/node_modules/postcss/LICENSE +20 -0
  797. package/test-e2e/node_modules/postcss/README.md +28 -0
  798. package/test-e2e/node_modules/postcss/lib/at-rule.d.ts +139 -0
  799. package/test-e2e/node_modules/postcss/lib/at-rule.js +25 -0
  800. package/test-e2e/node_modules/postcss/lib/comment.d.ts +67 -0
  801. package/test-e2e/node_modules/postcss/lib/comment.js +13 -0
  802. package/test-e2e/node_modules/postcss/lib/container.d.ts +478 -0
  803. package/test-e2e/node_modules/postcss/lib/container.js +447 -0
  804. package/test-e2e/node_modules/postcss/lib/css-syntax-error.d.ts +247 -0
  805. package/test-e2e/node_modules/postcss/lib/css-syntax-error.js +133 -0
  806. package/test-e2e/node_modules/postcss/lib/declaration.d.ts +150 -0
  807. package/test-e2e/node_modules/postcss/lib/declaration.js +24 -0
  808. package/test-e2e/node_modules/postcss/lib/document.d.ts +68 -0
  809. package/test-e2e/node_modules/postcss/lib/document.js +33 -0
  810. package/test-e2e/node_modules/postcss/lib/fromJSON.d.ts +9 -0
  811. package/test-e2e/node_modules/postcss/lib/fromJSON.js +54 -0
  812. package/test-e2e/node_modules/postcss/lib/input.d.ts +226 -0
  813. package/test-e2e/node_modules/postcss/lib/input.js +273 -0
  814. package/test-e2e/node_modules/postcss/lib/lazy-result.d.ts +189 -0
  815. package/test-e2e/node_modules/postcss/lib/lazy-result.js +550 -0
  816. package/test-e2e/node_modules/postcss/lib/list.d.ts +60 -0
  817. package/test-e2e/node_modules/postcss/lib/list.js +58 -0
  818. package/test-e2e/node_modules/postcss/lib/map-generator.js +376 -0
  819. package/test-e2e/node_modules/postcss/lib/no-work-result.d.ts +45 -0
  820. package/test-e2e/node_modules/postcss/lib/no-work-result.js +137 -0
  821. package/test-e2e/node_modules/postcss/lib/node.d.ts +555 -0
  822. package/test-e2e/node_modules/postcss/lib/node.js +449 -0
  823. package/test-e2e/node_modules/postcss/lib/parse.d.ts +9 -0
  824. package/test-e2e/node_modules/postcss/lib/parse.js +42 -0
  825. package/test-e2e/node_modules/postcss/lib/parser.js +611 -0
  826. package/test-e2e/node_modules/postcss/lib/postcss.d.mts +66 -0
  827. package/test-e2e/node_modules/postcss/lib/postcss.d.ts +456 -0
  828. package/test-e2e/node_modules/postcss/lib/postcss.js +101 -0
  829. package/test-e2e/node_modules/postcss/lib/postcss.mjs +30 -0
  830. package/test-e2e/node_modules/postcss/lib/previous-map.d.ts +80 -0
  831. package/test-e2e/node_modules/postcss/lib/previous-map.js +145 -0
  832. package/test-e2e/node_modules/postcss/lib/processor.d.ts +114 -0
  833. package/test-e2e/node_modules/postcss/lib/processor.js +67 -0
  834. package/test-e2e/node_modules/postcss/lib/result.d.ts +204 -0
  835. package/test-e2e/node_modules/postcss/lib/result.js +42 -0
  836. package/test-e2e/node_modules/postcss/lib/root.d.ts +86 -0
  837. package/test-e2e/node_modules/postcss/lib/root.js +61 -0
  838. package/test-e2e/node_modules/postcss/lib/rule.d.ts +126 -0
  839. package/test-e2e/node_modules/postcss/lib/rule.js +27 -0
  840. package/test-e2e/node_modules/postcss/lib/stringifier.d.ts +45 -0
  841. package/test-e2e/node_modules/postcss/lib/stringifier.js +353 -0
  842. package/test-e2e/node_modules/postcss/lib/stringify.d.ts +9 -0
  843. package/test-e2e/node_modules/postcss/lib/stringify.js +11 -0
  844. package/test-e2e/node_modules/postcss/lib/symbols.js +5 -0
  845. package/test-e2e/node_modules/postcss/lib/terminal-highlight.js +70 -0
  846. package/test-e2e/node_modules/postcss/lib/tokenize.js +266 -0
  847. package/test-e2e/node_modules/postcss/lib/warn-once.js +13 -0
  848. package/test-e2e/node_modules/postcss/lib/warning.d.ts +146 -0
  849. package/test-e2e/node_modules/postcss/lib/warning.js +37 -0
  850. package/test-e2e/node_modules/postcss/package.json +88 -0
  851. package/test-e2e/node_modules/rolldown/LICENSE +25 -0
  852. package/test-e2e/node_modules/rolldown/README.md +11 -0
  853. package/test-e2e/node_modules/rolldown/bin/cli.mjs +2 -0
  854. package/test-e2e/node_modules/rolldown/dist/cli.d.mts +1 -0
  855. package/test-e2e/node_modules/rolldown/dist/cli.mjs +1191 -0
  856. package/test-e2e/node_modules/rolldown/dist/config.d.mts +14 -0
  857. package/test-e2e/node_modules/rolldown/dist/config.mjs +4 -0
  858. package/test-e2e/node_modules/rolldown/dist/experimental-index.d.mts +253 -0
  859. package/test-e2e/node_modules/rolldown/dist/experimental-index.mjs +320 -0
  860. package/test-e2e/node_modules/rolldown/dist/experimental-runtime-types.d.ts +98 -0
  861. package/test-e2e/node_modules/rolldown/dist/filter-index.d.mts +196 -0
  862. package/test-e2e/node_modules/rolldown/dist/filter-index.mjs +386 -0
  863. package/test-e2e/node_modules/rolldown/dist/get-log-filter.d.mts +3 -0
  864. package/test-e2e/node_modules/rolldown/dist/get-log-filter.mjs +68 -0
  865. package/test-e2e/node_modules/rolldown/dist/index.d.mts +4 -0
  866. package/test-e2e/node_modules/rolldown/dist/index.mjs +50 -0
  867. package/test-e2e/node_modules/rolldown/dist/parallel-plugin-worker.d.mts +1 -0
  868. package/test-e2e/node_modules/rolldown/dist/parallel-plugin-worker.mjs +28 -0
  869. package/test-e2e/node_modules/rolldown/dist/parallel-plugin.d.mts +13 -0
  870. package/test-e2e/node_modules/rolldown/dist/parallel-plugin.mjs +6 -0
  871. package/test-e2e/node_modules/rolldown/dist/parse-ast-index.d.mts +32 -0
  872. package/test-e2e/node_modules/rolldown/dist/parse-ast-index.mjs +60 -0
  873. package/test-e2e/node_modules/rolldown/dist/plugins-index.d.mts +33 -0
  874. package/test-e2e/node_modules/rolldown/dist/plugins-index.mjs +40 -0
  875. package/test-e2e/node_modules/rolldown/dist/shared/binding-DUEnSb0A.d.mts +1872 -0
  876. package/test-e2e/node_modules/rolldown/dist/shared/binding-s-V_wTpj.mjs +582 -0
  877. package/test-e2e/node_modules/rolldown/dist/shared/bindingify-input-options-DYpBf1OG.mjs +2235 -0
  878. package/test-e2e/node_modules/rolldown/dist/shared/constructors-BaEBnHl3.mjs +68 -0
  879. package/test-e2e/node_modules/rolldown/dist/shared/constructors-DYemMpPL.d.mts +37 -0
  880. package/test-e2e/node_modules/rolldown/dist/shared/define-config-DJOr6Iwt.mjs +6 -0
  881. package/test-e2e/node_modules/rolldown/dist/shared/define-config-DhJZwTRw.d.mts +3795 -0
  882. package/test-e2e/node_modules/rolldown/dist/shared/error-w0u7biK-.mjs +85 -0
  883. package/test-e2e/node_modules/rolldown/dist/shared/get-log-filter-semyr3Lj.d.mts +35 -0
  884. package/test-e2e/node_modules/rolldown/dist/shared/load-config-pmbgQdFU.mjs +120 -0
  885. package/test-e2e/node_modules/rolldown/dist/shared/logging-C6h4g8dA.d.mts +50 -0
  886. package/test-e2e/node_modules/rolldown/dist/shared/logs-D80CXhvg.mjs +180 -0
  887. package/test-e2e/node_modules/rolldown/dist/shared/misc-DJYbNKZX.mjs +21 -0
  888. package/test-e2e/node_modules/rolldown/dist/shared/normalize-string-or-regex-CVvpepxa.mjs +66 -0
  889. package/test-e2e/node_modules/rolldown/dist/shared/parse-BywQARUG.mjs +74 -0
  890. package/test-e2e/node_modules/rolldown/dist/shared/prompt-BYQIwEjg.mjs +845 -0
  891. package/test-e2e/node_modules/rolldown/dist/shared/resolve-tsconfig-CNjJwuKB.mjs +113 -0
  892. package/test-e2e/node_modules/rolldown/dist/shared/rolldown-BLMDGLfI.mjs +40 -0
  893. package/test-e2e/node_modules/rolldown/dist/shared/rolldown-build-DtGk-m96.mjs +3321 -0
  894. package/test-e2e/node_modules/rolldown/dist/shared/transform-Kz3D2LbX.d.mts +149 -0
  895. package/test-e2e/node_modules/rolldown/dist/shared/watch-Cixa7HbR.mjs +374 -0
  896. package/test-e2e/node_modules/rolldown/dist/utils-index.d.mts +376 -0
  897. package/test-e2e/node_modules/rolldown/dist/utils-index.mjs +2414 -0
  898. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/LICENSE +25 -0
  899. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/README.md +83 -0
  900. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts +90 -0
  901. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js +256 -0
  902. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.d.ts +28 -0
  903. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.js +75 -0
  904. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/index.d.ts +3 -0
  905. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/index.js +3 -0
  906. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.d.ts +71 -0
  907. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js +70 -0
  908. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/index.d.ts +1 -0
  909. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/index.js +1 -0
  910. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/utils.d.ts +2 -0
  911. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/utils.js +17 -0
  912. package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/package.json +37 -0
  913. package/test-e2e/node_modules/rolldown/package.json +153 -0
  914. package/test-e2e/node_modules/source-map-js/LICENSE +28 -0
  915. package/test-e2e/node_modules/source-map-js/README.md +765 -0
  916. package/test-e2e/node_modules/source-map-js/lib/array-set.js +121 -0
  917. package/test-e2e/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  918. package/test-e2e/node_modules/source-map-js/lib/base64.js +67 -0
  919. package/test-e2e/node_modules/source-map-js/lib/binary-search.js +111 -0
  920. package/test-e2e/node_modules/source-map-js/lib/mapping-list.js +79 -0
  921. package/test-e2e/node_modules/source-map-js/lib/quick-sort.js +132 -0
  922. package/test-e2e/node_modules/source-map-js/lib/source-map-consumer.d.ts +1 -0
  923. package/test-e2e/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
  924. package/test-e2e/node_modules/source-map-js/lib/source-map-generator.d.ts +1 -0
  925. package/test-e2e/node_modules/source-map-js/lib/source-map-generator.js +444 -0
  926. package/test-e2e/node_modules/source-map-js/lib/source-node.d.ts +1 -0
  927. package/test-e2e/node_modules/source-map-js/lib/source-node.js +413 -0
  928. package/test-e2e/node_modules/source-map-js/lib/util.js +594 -0
  929. package/test-e2e/node_modules/source-map-js/package.json +71 -0
  930. package/test-e2e/node_modules/source-map-js/source-map.d.ts +104 -0
  931. package/test-e2e/node_modules/source-map-js/source-map.js +8 -0
  932. package/test-e2e/node_modules/tinyglobby/LICENSE +21 -0
  933. package/test-e2e/node_modules/tinyglobby/README.md +25 -0
  934. package/test-e2e/node_modules/tinyglobby/dist/index.cjs +334 -0
  935. package/test-e2e/node_modules/tinyglobby/dist/index.d.cts +148 -0
  936. package/test-e2e/node_modules/tinyglobby/dist/index.d.mts +148 -0
  937. package/test-e2e/node_modules/tinyglobby/dist/index.mjs +306 -0
  938. package/test-e2e/node_modules/tinyglobby/package.json +73 -0
  939. package/test-e2e/node_modules/vite/LICENSE.md +2230 -0
  940. package/test-e2e/node_modules/vite/README.md +20 -0
  941. package/test-e2e/node_modules/vite/bin/openChrome.js +68 -0
  942. package/test-e2e/node_modules/vite/bin/vite.js +79 -0
  943. package/test-e2e/node_modules/vite/client.d.ts +282 -0
  944. package/test-e2e/node_modules/vite/dist/client/client.mjs +1235 -0
  945. package/test-e2e/node_modules/vite/dist/client/env.mjs +18 -0
  946. package/test-e2e/node_modules/vite/dist/node/chunks/build.js +2 -0
  947. package/test-e2e/node_modules/vite/dist/node/chunks/build2.js +5378 -0
  948. package/test-e2e/node_modules/vite/dist/node/chunks/chunk.js +37 -0
  949. package/test-e2e/node_modules/vite/dist/node/chunks/config.js +2 -0
  950. package/test-e2e/node_modules/vite/dist/node/chunks/dist.js +6719 -0
  951. package/test-e2e/node_modules/vite/dist/node/chunks/lib.js +371 -0
  952. package/test-e2e/node_modules/vite/dist/node/chunks/logger.js +322 -0
  953. package/test-e2e/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts +96 -0
  954. package/test-e2e/node_modules/vite/dist/node/chunks/node.js +34785 -0
  955. package/test-e2e/node_modules/vite/dist/node/chunks/optimizer.js +2 -0
  956. package/test-e2e/node_modules/vite/dist/node/chunks/postcss-import.js +467 -0
  957. package/test-e2e/node_modules/vite/dist/node/chunks/preview.js +2 -0
  958. package/test-e2e/node_modules/vite/dist/node/chunks/server.js +2 -0
  959. package/test-e2e/node_modules/vite/dist/node/cli.js +837 -0
  960. package/test-e2e/node_modules/vite/dist/node/index.d.ts +3867 -0
  961. package/test-e2e/node_modules/vite/dist/node/index.js +3 -0
  962. package/test-e2e/node_modules/vite/dist/node/internal.d.ts +2 -0
  963. package/test-e2e/node_modules/vite/dist/node/internal.js +2 -0
  964. package/test-e2e/node_modules/vite/dist/node/module-runner.d.ts +315 -0
  965. package/test-e2e/node_modules/vite/dist/node/module-runner.js +1262 -0
  966. package/test-e2e/node_modules/vite/misc/false.js +1 -0
  967. package/test-e2e/node_modules/vite/misc/true.js +1 -0
  968. package/test-e2e/node_modules/vite/package.json +192 -0
  969. package/test-e2e/node_modules/vite/types/customEvent.d.ts +79 -0
  970. package/test-e2e/node_modules/vite/types/hmrPayload.d.ts +80 -0
  971. package/test-e2e/node_modules/vite/types/hot.d.ts +39 -0
  972. package/test-e2e/node_modules/vite/types/import-meta.d.ts +5 -0
  973. package/test-e2e/node_modules/vite/types/importGlob.d.ts +89 -0
  974. package/test-e2e/node_modules/vite/types/importMeta.d.ts +30 -0
  975. package/test-e2e/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts +44 -0
  976. package/test-e2e/node_modules/vite/types/internal/esbuildOptions.d.ts +28 -0
  977. package/test-e2e/node_modules/vite/types/internal/lightningcssOptions.d.ts +18 -0
  978. package/test-e2e/node_modules/vite/types/internal/rollupTypeCompat.d.ts +24 -0
  979. package/test-e2e/node_modules/vite/types/internal/terserOptions.d.ts +11 -0
  980. package/test-e2e/node_modules/vite/types/metadata.d.ts +47 -0
  981. package/test-e2e/node_modules/vue/LICENSE +21 -0
  982. package/test-e2e/node_modules/vue/README.md +58 -0
  983. package/test-e2e/node_modules/vue/compiler-sfc/index.browser.js +1 -0
  984. package/test-e2e/node_modules/vue/compiler-sfc/index.browser.mjs +1 -0
  985. package/test-e2e/node_modules/vue/compiler-sfc/index.d.mts +1 -0
  986. package/test-e2e/node_modules/vue/compiler-sfc/index.d.ts +1 -0
  987. package/test-e2e/node_modules/vue/compiler-sfc/index.js +3 -0
  988. package/test-e2e/node_modules/vue/compiler-sfc/index.mjs +3 -0
  989. package/test-e2e/node_modules/vue/compiler-sfc/package.json +4 -0
  990. package/test-e2e/node_modules/vue/compiler-sfc/register-ts.js +3 -0
  991. package/test-e2e/node_modules/vue/dist/vue.cjs.js +80 -0
  992. package/test-e2e/node_modules/vue/dist/vue.cjs.prod.js +66 -0
  993. package/test-e2e/node_modules/vue/dist/vue.d.mts +7 -0
  994. package/test-e2e/node_modules/vue/dist/vue.d.ts +7 -0
  995. package/test-e2e/node_modules/vue/dist/vue.esm-browser.js +18708 -0
  996. package/test-e2e/node_modules/vue/dist/vue.esm-browser.prod.js +13 -0
  997. package/test-e2e/node_modules/vue/dist/vue.esm-bundler.js +71 -0
  998. package/test-e2e/node_modules/vue/dist/vue.global.js +18588 -0
  999. package/test-e2e/node_modules/vue/dist/vue.global.prod.js +13 -0
  1000. package/test-e2e/node_modules/vue/dist/vue.runtime.esm-browser.js +12817 -0
  1001. package/test-e2e/node_modules/vue/dist/vue.runtime.esm-browser.prod.js +7 -0
  1002. package/test-e2e/node_modules/vue/dist/vue.runtime.esm-bundler.js +26 -0
  1003. package/test-e2e/node_modules/vue/dist/vue.runtime.global.js +12871 -0
  1004. package/test-e2e/node_modules/vue/dist/vue.runtime.global.prod.js +7 -0
  1005. package/test-e2e/node_modules/vue/index.js +7 -0
  1006. package/test-e2e/node_modules/vue/index.mjs +1 -0
  1007. package/test-e2e/node_modules/vue/jsx-runtime/index.d.ts +25 -0
  1008. package/test-e2e/node_modules/vue/jsx-runtime/index.js +15 -0
  1009. package/test-e2e/node_modules/vue/jsx-runtime/index.mjs +12 -0
  1010. package/test-e2e/node_modules/vue/jsx-runtime/package.json +5 -0
  1011. package/test-e2e/node_modules/vue/jsx.d.ts +22 -0
  1012. package/test-e2e/node_modules/vue/package.json +112 -0
  1013. package/test-e2e/node_modules/vue/server-renderer/index.d.mts +1 -0
  1014. package/test-e2e/node_modules/vue/server-renderer/index.d.ts +1 -0
  1015. package/test-e2e/node_modules/vue/server-renderer/index.js +1 -0
  1016. package/test-e2e/node_modules/vue/server-renderer/index.mjs +1 -0
  1017. package/test-e2e/node_modules/vue/server-renderer/package.json +4 -0
  1018. package/test-e2e/package-lock.json +1164 -0
  1019. package/test-e2e/package.json +17 -0
  1020. package/test-e2e/vite.config.js +17 -0
  1021. package/test-results/.last-run.json +4 -0
  1022. package/vite.config.js +12 -2
  1023. package/vitest.config.js +1 -1
  1024. package/cypress/support/component-index.html +0 -11
  1025. package/test/01-general.cy.js +0 -348
  1026. /package/{test → test-e2e}/blue.vue +0 -0
  1027. /package/{test → test-e2e}/dummy.vue +0 -0
  1028. /package/{test → test-e2e}/gray.vue +0 -0
  1029. /package/{test → test-e2e}/red.vue +0 -0
@@ -0,0 +1,1725 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.patternLikeCommon = exports.importAttributes = exports.functionTypeAnnotationCommon = exports.functionDeclarationCommon = exports.functionCommon = exports.classMethodOrPropertyUnionShapeCommon = exports.classMethodOrPropertyCommon = exports.classMethodOrDeclareMethodCommon = void 0;
7
+ var _is = require("../validators/is.js");
8
+ var _isValidIdentifier = require("../validators/isValidIdentifier.js");
9
+ var _helperValidatorIdentifier = require("@babel/helper-validator-identifier");
10
+ var _helperStringParser = require("@babel/helper-string-parser");
11
+ var _index = require("../constants/index.js");
12
+ var _utils = require("./utils.js");
13
+ const classMethodOrPropertyUnionShapeCommon = (allowPrivateName = false) => ({
14
+ unionShape: {
15
+ discriminator: "computed",
16
+ shapes: [{
17
+ name: "computed",
18
+ value: [true],
19
+ properties: {
20
+ key: {
21
+ validate: (0, _utils.assertNodeType)("Expression")
22
+ }
23
+ }
24
+ }, {
25
+ name: "nonComputed",
26
+ value: [false],
27
+ properties: {
28
+ key: {
29
+ validate: allowPrivateName ? (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "PrivateName") : (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral")
30
+ }
31
+ }
32
+ }]
33
+ }
34
+ });
35
+ exports.classMethodOrPropertyUnionShapeCommon = classMethodOrPropertyUnionShapeCommon;
36
+ const defineType = (0, _utils.defineAliasedType)("Standardized");
37
+ defineType("ArrayExpression", {
38
+ fields: {
39
+ elements: {
40
+ validate: (0, _utils.arrayOf)((0, _utils.assertNodeOrValueType)("null", "Expression", "SpreadElement")),
41
+ default: !process.env.BABEL_TYPES_8_BREAKING ? [] : undefined
42
+ }
43
+ },
44
+ visitor: ["elements"],
45
+ aliases: ["Expression"]
46
+ });
47
+ defineType("AssignmentExpression", {
48
+ fields: {
49
+ operator: {
50
+ validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertValueType)("string") : Object.assign(function () {
51
+ const identifier = (0, _utils.assertOneOf)(..._index.ASSIGNMENT_OPERATORS);
52
+ const pattern = (0, _utils.assertOneOf)("=");
53
+ return function (node, key, val) {
54
+ const validator = (0, _is.default)("Pattern", node.left) ? pattern : identifier;
55
+ validator(node, key, val);
56
+ };
57
+ }(), {
58
+ oneOf: _index.ASSIGNMENT_OPERATORS
59
+ })
60
+ },
61
+ left: {
62
+ validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("LVal", "OptionalMemberExpression") : (0, _utils.assertNodeType)("Identifier", "MemberExpression", "OptionalMemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression")
63
+ },
64
+ right: {
65
+ validate: (0, _utils.assertNodeType)("Expression")
66
+ }
67
+ },
68
+ builder: ["operator", "left", "right"],
69
+ visitor: ["left", "right"],
70
+ aliases: ["Expression"]
71
+ });
72
+ defineType("BinaryExpression", {
73
+ builder: ["operator", "left", "right"],
74
+ fields: {
75
+ operator: {
76
+ validate: (0, _utils.assertOneOf)(..._index.BINARY_OPERATORS)
77
+ },
78
+ left: {
79
+ validate: function () {
80
+ const expression = (0, _utils.assertNodeType)("Expression");
81
+ const inOp = (0, _utils.assertNodeType)("Expression", "PrivateName");
82
+ const validator = Object.assign(function (node, key, val) {
83
+ const validator = node.operator === "in" ? inOp : expression;
84
+ validator(node, key, val);
85
+ }, {
86
+ oneOfNodeTypes: ["Expression", "PrivateName"]
87
+ });
88
+ return validator;
89
+ }()
90
+ },
91
+ right: {
92
+ validate: (0, _utils.assertNodeType)("Expression")
93
+ }
94
+ },
95
+ visitor: ["left", "right"],
96
+ aliases: ["Binary", "Expression"]
97
+ });
98
+ defineType("InterpreterDirective", {
99
+ builder: ["value"],
100
+ fields: {
101
+ value: {
102
+ validate: (0, _utils.assertValueType)("string")
103
+ }
104
+ }
105
+ });
106
+ defineType("Directive", {
107
+ visitor: ["value"],
108
+ fields: {
109
+ value: {
110
+ validate: (0, _utils.assertNodeType)("DirectiveLiteral")
111
+ }
112
+ }
113
+ });
114
+ defineType("DirectiveLiteral", {
115
+ builder: ["value"],
116
+ fields: {
117
+ value: {
118
+ validate: (0, _utils.assertValueType)("string")
119
+ }
120
+ }
121
+ });
122
+ defineType("BlockStatement", {
123
+ builder: ["body", "directives"],
124
+ visitor: ["directives", "body"],
125
+ fields: {
126
+ directives: {
127
+ validate: (0, _utils.arrayOfType)("Directive"),
128
+ default: []
129
+ },
130
+ body: (0, _utils.validateArrayOfType)("Statement")
131
+ },
132
+ aliases: ["Scopable", "BlockParent", "Block", "Statement"]
133
+ });
134
+ defineType("BreakStatement", {
135
+ visitor: ["label"],
136
+ fields: {
137
+ label: {
138
+ validate: (0, _utils.assertNodeType)("Identifier"),
139
+ optional: true
140
+ }
141
+ },
142
+ aliases: ["Statement", "Terminatorless", "CompletionStatement"]
143
+ });
144
+ defineType("CallExpression", {
145
+ visitor: ["callee", "typeParameters", "typeArguments", "arguments"],
146
+ builder: ["callee", "arguments"],
147
+ aliases: ["Expression"],
148
+ fields: Object.assign({
149
+ callee: {
150
+ validate: (0, _utils.assertNodeType)("Expression", "Super", "V8IntrinsicIdentifier")
151
+ },
152
+ arguments: (0, _utils.validateArrayOfType)("Expression", "SpreadElement", "ArgumentPlaceholder"),
153
+ typeArguments: {
154
+ validate: (0, _utils.assertNodeType)("TypeParameterInstantiation"),
155
+ optional: true
156
+ }
157
+ }, process.env.BABEL_TYPES_8_BREAKING ? {} : {
158
+ optional: {
159
+ validate: (0, _utils.assertValueType)("boolean"),
160
+ optional: true
161
+ },
162
+ typeParameters: {
163
+ validate: (0, _utils.assertNodeType)("TSTypeParameterInstantiation"),
164
+ optional: true
165
+ }
166
+ })
167
+ });
168
+ defineType("CatchClause", {
169
+ visitor: ["param", "body"],
170
+ fields: {
171
+ param: {
172
+ validate: (0, _utils.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern"),
173
+ optional: true
174
+ },
175
+ body: {
176
+ validate: (0, _utils.assertNodeType)("BlockStatement")
177
+ }
178
+ },
179
+ aliases: ["Scopable", "BlockParent"]
180
+ });
181
+ defineType("ConditionalExpression", {
182
+ visitor: ["test", "consequent", "alternate"],
183
+ fields: {
184
+ test: {
185
+ validate: (0, _utils.assertNodeType)("Expression")
186
+ },
187
+ consequent: {
188
+ validate: (0, _utils.assertNodeType)("Expression")
189
+ },
190
+ alternate: {
191
+ validate: (0, _utils.assertNodeType)("Expression")
192
+ }
193
+ },
194
+ aliases: ["Expression", "Conditional"]
195
+ });
196
+ defineType("ContinueStatement", {
197
+ visitor: ["label"],
198
+ fields: {
199
+ label: {
200
+ validate: (0, _utils.assertNodeType)("Identifier"),
201
+ optional: true
202
+ }
203
+ },
204
+ aliases: ["Statement", "Terminatorless", "CompletionStatement"]
205
+ });
206
+ defineType("DebuggerStatement", {
207
+ aliases: ["Statement"]
208
+ });
209
+ defineType("DoWhileStatement", {
210
+ builder: ["test", "body"],
211
+ visitor: ["body", "test"],
212
+ fields: {
213
+ test: {
214
+ validate: (0, _utils.assertNodeType)("Expression")
215
+ },
216
+ body: {
217
+ validate: (0, _utils.assertNodeType)("Statement")
218
+ }
219
+ },
220
+ aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"]
221
+ });
222
+ defineType("EmptyStatement", {
223
+ aliases: ["Statement"]
224
+ });
225
+ defineType("ExpressionStatement", {
226
+ visitor: ["expression"],
227
+ fields: {
228
+ expression: {
229
+ validate: (0, _utils.assertNodeType)("Expression")
230
+ }
231
+ },
232
+ aliases: ["Statement", "ExpressionWrapper"]
233
+ });
234
+ defineType("File", {
235
+ builder: ["program", "comments", "tokens"],
236
+ visitor: ["program"],
237
+ fields: {
238
+ program: {
239
+ validate: (0, _utils.assertNodeType)("Program")
240
+ },
241
+ comments: {
242
+ validate: !process.env.BABEL_TYPES_8_BREAKING ? Object.assign(() => {}, {
243
+ each: {
244
+ oneOfNodeTypes: ["CommentBlock", "CommentLine"]
245
+ }
246
+ }) : (0, _utils.assertEach)((0, _utils.assertNodeType)("CommentBlock", "CommentLine")),
247
+ optional: true
248
+ },
249
+ tokens: {
250
+ validate: (0, _utils.assertEach)(Object.assign(() => {}, {
251
+ type: "any"
252
+ })),
253
+ optional: true
254
+ }
255
+ }
256
+ });
257
+ defineType("ForInStatement", {
258
+ visitor: ["left", "right", "body"],
259
+ aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"],
260
+ fields: {
261
+ left: {
262
+ validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("VariableDeclaration", "LVal") : (0, _utils.assertNodeType)("VariableDeclaration", "Identifier", "MemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression")
263
+ },
264
+ right: {
265
+ validate: (0, _utils.assertNodeType)("Expression")
266
+ },
267
+ body: {
268
+ validate: (0, _utils.assertNodeType)("Statement")
269
+ }
270
+ }
271
+ });
272
+ defineType("ForStatement", {
273
+ visitor: ["init", "test", "update", "body"],
274
+ aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop"],
275
+ fields: {
276
+ init: {
277
+ validate: (0, _utils.assertNodeType)("VariableDeclaration", "Expression"),
278
+ optional: true
279
+ },
280
+ test: {
281
+ validate: (0, _utils.assertNodeType)("Expression"),
282
+ optional: true
283
+ },
284
+ update: {
285
+ validate: (0, _utils.assertNodeType)("Expression"),
286
+ optional: true
287
+ },
288
+ body: {
289
+ validate: (0, _utils.assertNodeType)("Statement")
290
+ }
291
+ }
292
+ });
293
+ const functionCommon = () => ({
294
+ params: (0, _utils.validateArrayOfType)("FunctionParameter"),
295
+ generator: {
296
+ default: false
297
+ },
298
+ async: {
299
+ default: false
300
+ }
301
+ });
302
+ exports.functionCommon = functionCommon;
303
+ const functionTypeAnnotationCommon = () => ({
304
+ returnType: {
305
+ validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
306
+ optional: true
307
+ },
308
+ typeParameters: {
309
+ validate: (0, _utils.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"),
310
+ optional: true
311
+ }
312
+ });
313
+ exports.functionTypeAnnotationCommon = functionTypeAnnotationCommon;
314
+ const functionDeclarationCommon = () => Object.assign({}, functionCommon(), {
315
+ declare: {
316
+ validate: (0, _utils.assertValueType)("boolean"),
317
+ optional: true
318
+ },
319
+ id: {
320
+ validate: (0, _utils.assertNodeType)("Identifier"),
321
+ optional: true
322
+ }
323
+ });
324
+ exports.functionDeclarationCommon = functionDeclarationCommon;
325
+ defineType("FunctionDeclaration", {
326
+ builder: ["id", "params", "body", "generator", "async"],
327
+ visitor: ["id", "typeParameters", "params", "predicate", "returnType", "body"],
328
+ fields: Object.assign({}, functionDeclarationCommon(), functionTypeAnnotationCommon(), {
329
+ body: {
330
+ validate: (0, _utils.assertNodeType)("BlockStatement")
331
+ },
332
+ predicate: {
333
+ validate: (0, _utils.assertNodeType)("DeclaredPredicate", "InferredPredicate"),
334
+ optional: true
335
+ }
336
+ }),
337
+ aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Statement", "Pureish", "Declaration"],
338
+ validate: !process.env.BABEL_TYPES_8_BREAKING ? undefined : function () {
339
+ const identifier = (0, _utils.assertNodeType)("Identifier");
340
+ return function (parent, key, node) {
341
+ if (!(0, _is.default)("ExportDefaultDeclaration", parent)) {
342
+ identifier(node, "id", node.id);
343
+ }
344
+ };
345
+ }()
346
+ });
347
+ defineType("FunctionExpression", {
348
+ inherits: "FunctionDeclaration",
349
+ aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"],
350
+ fields: Object.assign({}, functionCommon(), functionTypeAnnotationCommon(), {
351
+ id: {
352
+ validate: (0, _utils.assertNodeType)("Identifier"),
353
+ optional: true
354
+ },
355
+ body: {
356
+ validate: (0, _utils.assertNodeType)("BlockStatement")
357
+ },
358
+ predicate: {
359
+ validate: (0, _utils.assertNodeType)("DeclaredPredicate", "InferredPredicate"),
360
+ optional: true
361
+ }
362
+ })
363
+ });
364
+ const patternLikeCommon = () => ({
365
+ typeAnnotation: {
366
+ validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
367
+ optional: true
368
+ },
369
+ optional: {
370
+ validate: (0, _utils.assertValueType)("boolean"),
371
+ optional: true
372
+ },
373
+ decorators: {
374
+ validate: (0, _utils.arrayOfType)("Decorator"),
375
+ optional: true
376
+ }
377
+ });
378
+ exports.patternLikeCommon = patternLikeCommon;
379
+ defineType("Identifier", {
380
+ builder: ["name"],
381
+ visitor: ["typeAnnotation", "decorators"],
382
+ aliases: ["Expression", "FunctionParameter", "PatternLike", "LVal", "TSEntityName"],
383
+ fields: Object.assign({}, patternLikeCommon(), {
384
+ name: {
385
+ validate: process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.chain)((0, _utils.assertValueType)("string"), Object.assign(function (node, key, val) {
386
+ if (!(0, _isValidIdentifier.default)(val, false)) {
387
+ throw new TypeError(`"${val}" is not a valid identifier name`);
388
+ }
389
+ }, {
390
+ type: "string"
391
+ })) : (0, _utils.assertValueType)("string")
392
+ }
393
+ }),
394
+ validate: process.env.BABEL_TYPES_8_BREAKING ? function (parent, key, node) {
395
+ const match = /\.(\w+)$/.exec(key.toString());
396
+ if (!match) return;
397
+ const [, parentKey] = match;
398
+ const nonComp = {
399
+ computed: false
400
+ };
401
+ if (parentKey === "property") {
402
+ if ((0, _is.default)("MemberExpression", parent, nonComp)) return;
403
+ if ((0, _is.default)("OptionalMemberExpression", parent, nonComp)) return;
404
+ } else if (parentKey === "key") {
405
+ if ((0, _is.default)("Property", parent, nonComp)) return;
406
+ if ((0, _is.default)("Method", parent, nonComp)) return;
407
+ } else if (parentKey === "exported") {
408
+ if ((0, _is.default)("ExportSpecifier", parent)) return;
409
+ } else if (parentKey === "imported") {
410
+ if ((0, _is.default)("ImportSpecifier", parent, {
411
+ imported: node
412
+ })) return;
413
+ } else if (parentKey === "meta") {
414
+ if ((0, _is.default)("MetaProperty", parent, {
415
+ meta: node
416
+ })) return;
417
+ }
418
+ if (((0, _helperValidatorIdentifier.isKeyword)(node.name) || (0, _helperValidatorIdentifier.isReservedWord)(node.name, false)) && node.name !== "this") {
419
+ throw new TypeError(`"${node.name}" is not a valid identifier`);
420
+ }
421
+ } : undefined
422
+ });
423
+ defineType("IfStatement", {
424
+ visitor: ["test", "consequent", "alternate"],
425
+ aliases: ["Statement", "Conditional"],
426
+ fields: {
427
+ test: {
428
+ validate: (0, _utils.assertNodeType)("Expression")
429
+ },
430
+ consequent: {
431
+ validate: (0, _utils.assertNodeType)("Statement")
432
+ },
433
+ alternate: {
434
+ optional: true,
435
+ validate: (0, _utils.assertNodeType)("Statement")
436
+ }
437
+ }
438
+ });
439
+ defineType("LabeledStatement", {
440
+ visitor: ["label", "body"],
441
+ aliases: ["Statement"],
442
+ fields: {
443
+ label: {
444
+ validate: (0, _utils.assertNodeType)("Identifier")
445
+ },
446
+ body: {
447
+ validate: (0, _utils.assertNodeType)("Statement")
448
+ }
449
+ }
450
+ });
451
+ defineType("StringLiteral", {
452
+ builder: ["value"],
453
+ fields: {
454
+ value: {
455
+ validate: (0, _utils.assertValueType)("string")
456
+ }
457
+ },
458
+ aliases: ["Expression", "Pureish", "Literal", "Immutable"]
459
+ });
460
+ defineType("NumericLiteral", {
461
+ builder: ["value"],
462
+ deprecatedAlias: "NumberLiteral",
463
+ fields: {
464
+ value: {
465
+ validate: (0, _utils.chain)((0, _utils.assertValueType)("number"), Object.assign(function (node, key, val) {
466
+ if (1 / val < 0 || !Number.isFinite(val)) {
467
+ const error = new Error("NumericLiterals must be non-negative finite numbers. " + `You can use t.valueToNode(${val}) instead.`);
468
+ }
469
+ }, {
470
+ type: "number"
471
+ }))
472
+ }
473
+ },
474
+ aliases: ["Expression", "Pureish", "Literal", "Immutable"]
475
+ });
476
+ defineType("NullLiteral", {
477
+ aliases: ["Expression", "Pureish", "Literal", "Immutable"]
478
+ });
479
+ defineType("BooleanLiteral", {
480
+ builder: ["value"],
481
+ fields: {
482
+ value: {
483
+ validate: (0, _utils.assertValueType)("boolean")
484
+ }
485
+ },
486
+ aliases: ["Expression", "Pureish", "Literal", "Immutable"]
487
+ });
488
+ defineType("RegExpLiteral", {
489
+ builder: ["pattern", "flags"],
490
+ deprecatedAlias: "RegexLiteral",
491
+ aliases: ["Expression", "Pureish", "Literal"],
492
+ fields: {
493
+ pattern: {
494
+ validate: (0, _utils.assertValueType)("string")
495
+ },
496
+ flags: {
497
+ validate: process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.chain)((0, _utils.assertValueType)("string"), Object.assign(function (node, key, val) {
498
+ const invalid = /[^dgimsuvy]/.exec(val);
499
+ if (invalid) {
500
+ throw new TypeError(`"${invalid[0]}" is not a valid RegExp flag`);
501
+ }
502
+ }, {
503
+ type: "string"
504
+ })) : (0, _utils.assertValueType)("string"),
505
+ default: ""
506
+ }
507
+ }
508
+ });
509
+ defineType("LogicalExpression", {
510
+ builder: ["operator", "left", "right"],
511
+ visitor: ["left", "right"],
512
+ aliases: ["Binary", "Expression"],
513
+ fields: {
514
+ operator: {
515
+ validate: (0, _utils.assertOneOf)(..._index.LOGICAL_OPERATORS)
516
+ },
517
+ left: {
518
+ validate: (0, _utils.assertNodeType)("Expression")
519
+ },
520
+ right: {
521
+ validate: (0, _utils.assertNodeType)("Expression")
522
+ }
523
+ }
524
+ });
525
+ defineType("MemberExpression", {
526
+ builder: ["object", "property", "computed", ...(!process.env.BABEL_TYPES_8_BREAKING ? ["optional"] : [])],
527
+ visitor: ["object", "property"],
528
+ aliases: ["Expression", "LVal", "PatternLike"],
529
+ unionShape: {
530
+ discriminator: "computed",
531
+ shapes: [{
532
+ name: "computed",
533
+ value: [true],
534
+ properties: {
535
+ property: {
536
+ validate: (0, _utils.assertNodeType)("Expression")
537
+ }
538
+ }
539
+ }, {
540
+ name: "nonComputed",
541
+ value: [false],
542
+ properties: {
543
+ property: {
544
+ validate: (0, _utils.assertNodeType)("Identifier", "PrivateName")
545
+ }
546
+ }
547
+ }]
548
+ },
549
+ fields: Object.assign({
550
+ object: {
551
+ validate: (0, _utils.assertNodeType)("Expression", "Super")
552
+ },
553
+ property: {
554
+ validate: function () {
555
+ const normal = (0, _utils.assertNodeType)("Identifier", "PrivateName");
556
+ const computed = (0, _utils.assertNodeType)("Expression");
557
+ const validator = function (node, key, val) {
558
+ const validator = node.computed ? computed : normal;
559
+ validator(node, key, val);
560
+ };
561
+ validator.oneOfNodeTypes = ["Expression", "Identifier", "PrivateName"];
562
+ return validator;
563
+ }()
564
+ },
565
+ computed: {
566
+ default: false
567
+ }
568
+ }, !process.env.BABEL_TYPES_8_BREAKING ? {
569
+ optional: {
570
+ validate: (0, _utils.assertValueType)("boolean"),
571
+ optional: true
572
+ }
573
+ } : {})
574
+ });
575
+ defineType("NewExpression", {
576
+ inherits: "CallExpression"
577
+ });
578
+ defineType("Program", {
579
+ visitor: ["directives", "body"],
580
+ builder: ["body", "directives", "sourceType", "interpreter"],
581
+ fields: {
582
+ sourceType: {
583
+ validate: (0, _utils.assertOneOf)("script", "module"),
584
+ default: "script"
585
+ },
586
+ interpreter: {
587
+ validate: (0, _utils.assertNodeType)("InterpreterDirective"),
588
+ default: null,
589
+ optional: true
590
+ },
591
+ directives: {
592
+ validate: (0, _utils.arrayOfType)("Directive"),
593
+ default: []
594
+ },
595
+ body: (0, _utils.validateArrayOfType)("Statement")
596
+ },
597
+ aliases: ["Scopable", "BlockParent", "Block"]
598
+ });
599
+ defineType("ObjectExpression", {
600
+ visitor: ["properties"],
601
+ aliases: ["Expression"],
602
+ fields: {
603
+ properties: (0, _utils.validateArrayOfType)("ObjectMethod", "ObjectProperty", "SpreadElement")
604
+ }
605
+ });
606
+ defineType("ObjectMethod", Object.assign({
607
+ builder: ["kind", "key", "params", "body", "computed", "generator", "async"],
608
+ visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"]
609
+ }, classMethodOrPropertyUnionShapeCommon(), {
610
+ fields: Object.assign({}, functionCommon(), functionTypeAnnotationCommon(), {
611
+ kind: Object.assign({
612
+ validate: (0, _utils.assertOneOf)("method", "get", "set")
613
+ }, !process.env.BABEL_TYPES_8_BREAKING ? {
614
+ default: "method"
615
+ } : {}),
616
+ computed: {
617
+ default: false
618
+ },
619
+ key: {
620
+ validate: function () {
621
+ const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral");
622
+ const computed = (0, _utils.assertNodeType)("Expression");
623
+ const validator = function (node, key, val) {
624
+ const validator = node.computed ? computed : normal;
625
+ validator(node, key, val);
626
+ };
627
+ validator.oneOfNodeTypes = ["Expression", "Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"];
628
+ return validator;
629
+ }()
630
+ },
631
+ decorators: {
632
+ validate: (0, _utils.arrayOfType)("Decorator"),
633
+ optional: true
634
+ },
635
+ body: {
636
+ validate: (0, _utils.assertNodeType)("BlockStatement")
637
+ }
638
+ }),
639
+ aliases: ["UserWhitespacable", "Function", "Scopable", "BlockParent", "FunctionParent", "Method", "ObjectMember"]
640
+ }));
641
+ defineType("ObjectProperty", {
642
+ builder: ["key", "value", "computed", "shorthand", ...(!process.env.BABEL_TYPES_8_BREAKING ? ["decorators"] : [])],
643
+ unionShape: {
644
+ discriminator: "computed",
645
+ shapes: [{
646
+ name: "computed",
647
+ value: [true],
648
+ properties: {
649
+ key: {
650
+ validate: (0, _utils.assertNodeType)("Expression")
651
+ }
652
+ }
653
+ }, {
654
+ name: "nonComputed",
655
+ value: [false],
656
+ properties: {
657
+ key: {
658
+ validate: (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName")
659
+ }
660
+ }
661
+ }]
662
+ },
663
+ fields: {
664
+ computed: {
665
+ default: false
666
+ },
667
+ key: {
668
+ validate: function () {
669
+ const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName");
670
+ const computed = (0, _utils.assertNodeType)("Expression");
671
+ const validator = Object.assign(function (node, key, val) {
672
+ const validator = node.computed ? computed : normal;
673
+ validator(node, key, val);
674
+ }, {
675
+ oneOfNodeTypes: ["Expression", "Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName"]
676
+ });
677
+ return validator;
678
+ }()
679
+ },
680
+ value: {
681
+ validate: (0, _utils.assertNodeType)("Expression", "PatternLike")
682
+ },
683
+ shorthand: {
684
+ validate: process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.chain)((0, _utils.assertValueType)("boolean"), Object.assign(function (node, key, shorthand) {
685
+ if (!shorthand) return;
686
+ if (node.computed) {
687
+ throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");
688
+ }
689
+ if (!(0, _is.default)("Identifier", node.key)) {
690
+ throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier");
691
+ }
692
+ }, {
693
+ type: "boolean"
694
+ })) : (0, _utils.assertValueType)("boolean"),
695
+ default: false
696
+ },
697
+ decorators: {
698
+ validate: (0, _utils.arrayOfType)("Decorator"),
699
+ optional: true
700
+ }
701
+ },
702
+ visitor: ["decorators", "key", "value"],
703
+ aliases: ["UserWhitespacable", "Property", "ObjectMember"],
704
+ validate: !process.env.BABEL_TYPES_8_BREAKING ? undefined : function () {
705
+ const pattern = (0, _utils.assertNodeType)("Identifier", "Pattern", "TSAsExpression", "TSSatisfiesExpression", "TSNonNullExpression", "TSTypeAssertion");
706
+ const expression = (0, _utils.assertNodeType)("Expression");
707
+ return function (parent, key, node) {
708
+ const validator = (0, _is.default)("ObjectPattern", parent) ? pattern : expression;
709
+ validator(node, "value", node.value);
710
+ };
711
+ }()
712
+ });
713
+ defineType("RestElement", {
714
+ visitor: ["argument", "typeAnnotation"],
715
+ builder: ["argument"],
716
+ aliases: ["FunctionParameter", "PatternLike", "LVal"],
717
+ deprecatedAlias: "RestProperty",
718
+ fields: Object.assign({}, patternLikeCommon(), {
719
+ argument: {
720
+ validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "MemberExpression", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression", "RestElement", "AssignmentPattern") : (0, _utils.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "MemberExpression", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression")
721
+ }
722
+ }),
723
+ validate: process.env.BABEL_TYPES_8_BREAKING ? function (parent, key) {
724
+ const match = /(\w+)\[(\d+)\]/.exec(key.toString());
725
+ if (!match) throw new Error("Internal Babel error: malformed key.");
726
+ const [, listKey, index] = match;
727
+ if (parent[listKey].length > +index + 1) {
728
+ throw new TypeError(`RestElement must be last element of ${listKey}`);
729
+ }
730
+ } : undefined
731
+ });
732
+ defineType("ReturnStatement", {
733
+ visitor: ["argument"],
734
+ aliases: ["Statement", "Terminatorless", "CompletionStatement"],
735
+ fields: {
736
+ argument: {
737
+ validate: (0, _utils.assertNodeType)("Expression"),
738
+ optional: true
739
+ }
740
+ }
741
+ });
742
+ defineType("SequenceExpression", {
743
+ visitor: ["expressions"],
744
+ fields: {
745
+ expressions: (0, _utils.validateArrayOfType)("Expression")
746
+ },
747
+ aliases: ["Expression"]
748
+ });
749
+ defineType("ParenthesizedExpression", {
750
+ visitor: ["expression"],
751
+ aliases: ["Expression", "ExpressionWrapper"],
752
+ fields: {
753
+ expression: {
754
+ validate: (0, _utils.assertNodeType)("Expression")
755
+ }
756
+ }
757
+ });
758
+ defineType("SwitchCase", {
759
+ visitor: ["test", "consequent"],
760
+ fields: {
761
+ test: {
762
+ validate: (0, _utils.assertNodeType)("Expression"),
763
+ optional: true
764
+ },
765
+ consequent: (0, _utils.validateArrayOfType)("Statement")
766
+ }
767
+ });
768
+ defineType("SwitchStatement", {
769
+ visitor: ["discriminant", "cases"],
770
+ aliases: ["Statement", "BlockParent", "Scopable"],
771
+ fields: {
772
+ discriminant: {
773
+ validate: (0, _utils.assertNodeType)("Expression")
774
+ },
775
+ cases: (0, _utils.validateArrayOfType)("SwitchCase")
776
+ }
777
+ });
778
+ defineType("ThisExpression", {
779
+ aliases: ["Expression"]
780
+ });
781
+ defineType("ThrowStatement", {
782
+ visitor: ["argument"],
783
+ aliases: ["Statement", "Terminatorless", "CompletionStatement"],
784
+ fields: {
785
+ argument: {
786
+ validate: (0, _utils.assertNodeType)("Expression")
787
+ }
788
+ }
789
+ });
790
+ defineType("TryStatement", {
791
+ visitor: ["block", "handler", "finalizer"],
792
+ aliases: ["Statement"],
793
+ fields: {
794
+ block: {
795
+ validate: process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.chain)((0, _utils.assertNodeType)("BlockStatement"), Object.assign(function (node) {
796
+ if (!node.handler && !node.finalizer) {
797
+ throw new TypeError("TryStatement expects either a handler or finalizer, or both");
798
+ }
799
+ }, {
800
+ oneOfNodeTypes: ["BlockStatement"]
801
+ })) : (0, _utils.assertNodeType)("BlockStatement")
802
+ },
803
+ handler: {
804
+ optional: true,
805
+ validate: (0, _utils.assertNodeType)("CatchClause")
806
+ },
807
+ finalizer: {
808
+ optional: true,
809
+ validate: (0, _utils.assertNodeType)("BlockStatement")
810
+ }
811
+ }
812
+ });
813
+ defineType("UnaryExpression", {
814
+ builder: ["operator", "argument", "prefix"],
815
+ fields: {
816
+ prefix: {
817
+ default: true
818
+ },
819
+ argument: {
820
+ validate: (0, _utils.assertNodeType)("Expression")
821
+ },
822
+ operator: {
823
+ validate: (0, _utils.assertOneOf)(..._index.UNARY_OPERATORS)
824
+ }
825
+ },
826
+ visitor: ["argument"],
827
+ aliases: ["UnaryLike", "Expression"]
828
+ });
829
+ defineType("UpdateExpression", {
830
+ builder: ["operator", "argument", "prefix"],
831
+ fields: {
832
+ prefix: {
833
+ default: false
834
+ },
835
+ argument: {
836
+ validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("Expression") : (0, _utils.assertNodeType)("Identifier", "MemberExpression")
837
+ },
838
+ operator: {
839
+ validate: (0, _utils.assertOneOf)(..._index.UPDATE_OPERATORS)
840
+ }
841
+ },
842
+ visitor: ["argument"],
843
+ aliases: ["Expression"]
844
+ });
845
+ defineType("VariableDeclaration", {
846
+ builder: ["kind", "declarations"],
847
+ visitor: ["declarations"],
848
+ aliases: ["Statement", "Declaration"],
849
+ fields: {
850
+ declare: {
851
+ validate: (0, _utils.assertValueType)("boolean"),
852
+ optional: true
853
+ },
854
+ kind: {
855
+ validate: (0, _utils.assertOneOf)("var", "let", "const", "using", "await using")
856
+ },
857
+ declarations: (0, _utils.validateArrayOfType)("VariableDeclarator")
858
+ },
859
+ validate: process.env.BABEL_TYPES_8_BREAKING ? (() => {
860
+ const withoutInit = (0, _utils.assertNodeType)("Identifier", "Placeholder");
861
+ const constOrLetOrVar = (0, _utils.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "Placeholder");
862
+ const usingOrAwaitUsing = (0, _utils.assertNodeType)("Identifier", "VoidPattern", "Placeholder");
863
+ return function (parent, key, node) {
864
+ const {
865
+ kind,
866
+ declarations
867
+ } = node;
868
+ const parentIsForX = (0, _is.default)("ForXStatement", parent, {
869
+ left: node
870
+ });
871
+ if (parentIsForX) {
872
+ if (declarations.length !== 1) {
873
+ throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${parent.type}`);
874
+ }
875
+ }
876
+ for (const decl of declarations) {
877
+ if (kind === "const" || kind === "let" || kind === "var") {
878
+ if (!parentIsForX && !decl.init) {
879
+ withoutInit(decl, "id", decl.id);
880
+ } else {
881
+ constOrLetOrVar(decl, "id", decl.id);
882
+ }
883
+ } else {
884
+ usingOrAwaitUsing(decl, "id", decl.id);
885
+ }
886
+ }
887
+ };
888
+ })() : undefined
889
+ });
890
+ defineType("VariableDeclarator", {
891
+ visitor: ["id", "init"],
892
+ fields: {
893
+ id: {
894
+ validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("LVal", "VoidPattern") : (0, _utils.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "VoidPattern")
895
+ },
896
+ definite: {
897
+ optional: true,
898
+ validate: (0, _utils.assertValueType)("boolean")
899
+ },
900
+ init: {
901
+ optional: true,
902
+ validate: (0, _utils.assertNodeType)("Expression")
903
+ }
904
+ }
905
+ });
906
+ defineType("WhileStatement", {
907
+ visitor: ["test", "body"],
908
+ aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"],
909
+ fields: {
910
+ test: {
911
+ validate: (0, _utils.assertNodeType)("Expression")
912
+ },
913
+ body: {
914
+ validate: (0, _utils.assertNodeType)("Statement")
915
+ }
916
+ }
917
+ });
918
+ defineType("WithStatement", {
919
+ visitor: ["object", "body"],
920
+ aliases: ["Statement"],
921
+ fields: {
922
+ object: {
923
+ validate: (0, _utils.assertNodeType)("Expression")
924
+ },
925
+ body: {
926
+ validate: (0, _utils.assertNodeType)("Statement")
927
+ }
928
+ }
929
+ });
930
+ defineType("AssignmentPattern", {
931
+ visitor: ["left", "right", "decorators"],
932
+ builder: ["left", "right"],
933
+ aliases: ["FunctionParameter", "Pattern", "PatternLike", "LVal"],
934
+ fields: Object.assign({}, patternLikeCommon(), {
935
+ left: {
936
+ validate: (0, _utils.assertNodeType)("Identifier", "ObjectPattern", "ArrayPattern", "MemberExpression", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression")
937
+ },
938
+ right: {
939
+ validate: (0, _utils.assertNodeType)("Expression")
940
+ },
941
+ decorators: {
942
+ validate: (0, _utils.arrayOfType)("Decorator"),
943
+ optional: true
944
+ }
945
+ })
946
+ });
947
+ defineType("ArrayPattern", {
948
+ visitor: ["elements", "typeAnnotation"],
949
+ builder: ["elements"],
950
+ aliases: ["FunctionParameter", "Pattern", "PatternLike", "LVal"],
951
+ fields: Object.assign({}, patternLikeCommon(), {
952
+ elements: {
953
+ validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeOrValueType)("null", "PatternLike")))
954
+ }
955
+ })
956
+ });
957
+ defineType("ArrowFunctionExpression", {
958
+ builder: ["params", "body", "async"],
959
+ visitor: ["typeParameters", "params", "predicate", "returnType", "body"],
960
+ aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"],
961
+ fields: Object.assign({}, functionCommon(), functionTypeAnnotationCommon(), {
962
+ expression: {
963
+ validate: (0, _utils.assertValueType)("boolean")
964
+ },
965
+ body: {
966
+ validate: (0, _utils.assertNodeType)("BlockStatement", "Expression")
967
+ },
968
+ predicate: {
969
+ validate: (0, _utils.assertNodeType)("DeclaredPredicate", "InferredPredicate"),
970
+ optional: true
971
+ }
972
+ })
973
+ });
974
+ defineType("ClassBody", {
975
+ visitor: ["body"],
976
+ fields: {
977
+ body: (0, _utils.validateArrayOfType)("ClassMethod", "ClassPrivateMethod", "ClassProperty", "ClassPrivateProperty", "ClassAccessorProperty", "TSDeclareMethod", "TSIndexSignature", "StaticBlock")
978
+ }
979
+ });
980
+ defineType("ClassExpression", {
981
+ builder: ["id", "superClass", "body", "decorators"],
982
+ visitor: ["decorators", "id", "typeParameters", "superClass", "superTypeParameters", "mixins", "implements", "body"],
983
+ aliases: ["Scopable", "Class", "Expression"],
984
+ fields: {
985
+ id: {
986
+ validate: (0, _utils.assertNodeType)("Identifier"),
987
+ optional: true
988
+ },
989
+ typeParameters: {
990
+ validate: (0, _utils.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"),
991
+ optional: true
992
+ },
993
+ body: {
994
+ validate: (0, _utils.assertNodeType)("ClassBody")
995
+ },
996
+ superClass: {
997
+ optional: true,
998
+ validate: (0, _utils.assertNodeType)("Expression")
999
+ },
1000
+ ["superTypeParameters"]: {
1001
+ validate: (0, _utils.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"),
1002
+ optional: true
1003
+ },
1004
+ implements: {
1005
+ validate: (0, _utils.arrayOfType)("TSExpressionWithTypeArguments", "ClassImplements"),
1006
+ optional: true
1007
+ },
1008
+ decorators: {
1009
+ validate: (0, _utils.arrayOfType)("Decorator"),
1010
+ optional: true
1011
+ },
1012
+ mixins: {
1013
+ validate: (0, _utils.assertNodeType)("InterfaceExtends"),
1014
+ optional: true
1015
+ }
1016
+ }
1017
+ });
1018
+ defineType("ClassDeclaration", {
1019
+ inherits: "ClassExpression",
1020
+ aliases: ["Scopable", "Class", "Statement", "Declaration"],
1021
+ fields: {
1022
+ id: {
1023
+ validate: (0, _utils.assertNodeType)("Identifier"),
1024
+ optional: true
1025
+ },
1026
+ typeParameters: {
1027
+ validate: (0, _utils.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"),
1028
+ optional: true
1029
+ },
1030
+ body: {
1031
+ validate: (0, _utils.assertNodeType)("ClassBody")
1032
+ },
1033
+ superClass: {
1034
+ optional: true,
1035
+ validate: (0, _utils.assertNodeType)("Expression")
1036
+ },
1037
+ ["superTypeParameters"]: {
1038
+ validate: (0, _utils.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"),
1039
+ optional: true
1040
+ },
1041
+ implements: {
1042
+ validate: (0, _utils.arrayOfType)("TSExpressionWithTypeArguments", "ClassImplements"),
1043
+ optional: true
1044
+ },
1045
+ decorators: {
1046
+ validate: (0, _utils.arrayOfType)("Decorator"),
1047
+ optional: true
1048
+ },
1049
+ mixins: {
1050
+ validate: (0, _utils.assertNodeType)("InterfaceExtends"),
1051
+ optional: true
1052
+ },
1053
+ declare: {
1054
+ validate: (0, _utils.assertValueType)("boolean"),
1055
+ optional: true
1056
+ },
1057
+ abstract: {
1058
+ validate: (0, _utils.assertValueType)("boolean"),
1059
+ optional: true
1060
+ }
1061
+ },
1062
+ validate: !process.env.BABEL_TYPES_8_BREAKING ? undefined : function () {
1063
+ const identifier = (0, _utils.assertNodeType)("Identifier");
1064
+ return function (parent, key, node) {
1065
+ if (!(0, _is.default)("ExportDefaultDeclaration", parent)) {
1066
+ identifier(node, "id", node.id);
1067
+ }
1068
+ };
1069
+ }()
1070
+ });
1071
+ const importAttributes = exports.importAttributes = {
1072
+ attributes: {
1073
+ optional: true,
1074
+ validate: (0, _utils.arrayOfType)("ImportAttribute")
1075
+ }
1076
+ };
1077
+ importAttributes.assertions = {
1078
+ deprecated: true,
1079
+ optional: true,
1080
+ validate: (0, _utils.arrayOfType)("ImportAttribute")
1081
+ };
1082
+ defineType("ExportAllDeclaration", {
1083
+ builder: ["source", "attributes"],
1084
+ visitor: ["source", "attributes", "assertions"],
1085
+ aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"],
1086
+ fields: Object.assign({
1087
+ source: {
1088
+ validate: (0, _utils.assertNodeType)("StringLiteral")
1089
+ },
1090
+ exportKind: (0, _utils.validateOptional)((0, _utils.assertOneOf)("type", "value"))
1091
+ }, importAttributes)
1092
+ });
1093
+ defineType("ExportDefaultDeclaration", {
1094
+ visitor: ["declaration"],
1095
+ aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"],
1096
+ fields: {
1097
+ declaration: (0, _utils.validateType)("TSDeclareFunction", "FunctionDeclaration", "ClassDeclaration", "Expression"),
1098
+ exportKind: (0, _utils.validateOptional)((0, _utils.assertOneOf)("value"))
1099
+ }
1100
+ });
1101
+ defineType("ExportNamedDeclaration", {
1102
+ builder: ["declaration", "specifiers", "source", "attributes"],
1103
+ visitor: ["declaration", "specifiers", "source", "attributes", "assertions"],
1104
+ aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"],
1105
+ fields: Object.assign({
1106
+ declaration: {
1107
+ optional: true,
1108
+ validate: process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.chain)((0, _utils.assertNodeType)("Declaration"), Object.assign(function (node, key, val) {
1109
+ if (val && node.specifiers.length) {
1110
+ throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");
1111
+ }
1112
+ if (val && node.source) {
1113
+ throw new TypeError("Cannot export a declaration from a source");
1114
+ }
1115
+ }, {
1116
+ oneOfNodeTypes: ["Declaration"]
1117
+ })) : (0, _utils.assertNodeType)("Declaration")
1118
+ }
1119
+ }, importAttributes, {
1120
+ specifiers: {
1121
+ default: [],
1122
+ validate: (0, _utils.arrayOf)(function () {
1123
+ const sourced = (0, _utils.assertNodeType)("ExportSpecifier", "ExportDefaultSpecifier", "ExportNamespaceSpecifier");
1124
+ const sourceless = (0, _utils.assertNodeType)("ExportSpecifier");
1125
+ if (!process.env.BABEL_TYPES_8_BREAKING) return sourced;
1126
+ return Object.assign(function (node, key, val) {
1127
+ const validator = node.source ? sourced : sourceless;
1128
+ validator(node, key, val);
1129
+ }, {
1130
+ oneOfNodeTypes: ["ExportSpecifier", "ExportDefaultSpecifier", "ExportNamespaceSpecifier"]
1131
+ });
1132
+ }())
1133
+ },
1134
+ source: {
1135
+ validate: (0, _utils.assertNodeType)("StringLiteral"),
1136
+ optional: true
1137
+ },
1138
+ exportKind: (0, _utils.validateOptional)((0, _utils.assertOneOf)("type", "value"))
1139
+ })
1140
+ });
1141
+ defineType("ExportSpecifier", {
1142
+ visitor: ["local", "exported"],
1143
+ aliases: ["ModuleSpecifier"],
1144
+ fields: {
1145
+ local: {
1146
+ validate: (0, _utils.assertNodeType)("Identifier")
1147
+ },
1148
+ exported: {
1149
+ validate: (0, _utils.assertNodeType)("Identifier", "StringLiteral")
1150
+ },
1151
+ exportKind: {
1152
+ validate: (0, _utils.assertOneOf)("type", "value"),
1153
+ optional: true
1154
+ }
1155
+ }
1156
+ });
1157
+ defineType("ForOfStatement", {
1158
+ visitor: ["left", "right", "body"],
1159
+ builder: ["left", "right", "body", "await"],
1160
+ aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"],
1161
+ fields: {
1162
+ left: {
1163
+ validate: function () {
1164
+ if (!process.env.BABEL_TYPES_8_BREAKING) {
1165
+ return (0, _utils.assertNodeType)("VariableDeclaration", "LVal");
1166
+ }
1167
+ const declaration = (0, _utils.assertNodeType)("VariableDeclaration");
1168
+ const lval = (0, _utils.assertNodeType)("Identifier", "MemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression");
1169
+ return Object.assign(function (node, key, val) {
1170
+ if ((0, _is.default)("VariableDeclaration", val)) {
1171
+ declaration(node, key, val);
1172
+ } else {
1173
+ lval(node, key, val);
1174
+ }
1175
+ }, {
1176
+ oneOfNodeTypes: ["VariableDeclaration", "Identifier", "MemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression"]
1177
+ });
1178
+ }()
1179
+ },
1180
+ right: {
1181
+ validate: (0, _utils.assertNodeType)("Expression")
1182
+ },
1183
+ body: {
1184
+ validate: (0, _utils.assertNodeType)("Statement")
1185
+ },
1186
+ await: {
1187
+ default: false
1188
+ }
1189
+ }
1190
+ });
1191
+ defineType("ImportDeclaration", {
1192
+ builder: ["specifiers", "source", "attributes"],
1193
+ visitor: ["specifiers", "source", "attributes", "assertions"],
1194
+ aliases: ["Statement", "Declaration", "ImportOrExportDeclaration"],
1195
+ fields: Object.assign({}, importAttributes, {
1196
+ module: {
1197
+ optional: true,
1198
+ validate: (0, _utils.assertValueType)("boolean")
1199
+ },
1200
+ phase: {
1201
+ default: null,
1202
+ validate: (0, _utils.assertOneOf)("source", "defer")
1203
+ },
1204
+ specifiers: (0, _utils.validateArrayOfType)("ImportSpecifier", "ImportDefaultSpecifier", "ImportNamespaceSpecifier"),
1205
+ source: {
1206
+ validate: (0, _utils.assertNodeType)("StringLiteral")
1207
+ },
1208
+ importKind: {
1209
+ validate: (0, _utils.assertOneOf)("type", "typeof", "value"),
1210
+ optional: true
1211
+ }
1212
+ })
1213
+ });
1214
+ defineType("ImportDefaultSpecifier", {
1215
+ visitor: ["local"],
1216
+ aliases: ["ModuleSpecifier"],
1217
+ fields: {
1218
+ local: {
1219
+ validate: (0, _utils.assertNodeType)("Identifier")
1220
+ }
1221
+ }
1222
+ });
1223
+ defineType("ImportNamespaceSpecifier", {
1224
+ visitor: ["local"],
1225
+ aliases: ["ModuleSpecifier"],
1226
+ fields: {
1227
+ local: {
1228
+ validate: (0, _utils.assertNodeType)("Identifier")
1229
+ }
1230
+ }
1231
+ });
1232
+ defineType("ImportSpecifier", {
1233
+ visitor: ["imported", "local"],
1234
+ builder: ["local", "imported"],
1235
+ aliases: ["ModuleSpecifier"],
1236
+ fields: {
1237
+ local: {
1238
+ validate: (0, _utils.assertNodeType)("Identifier")
1239
+ },
1240
+ imported: {
1241
+ validate: (0, _utils.assertNodeType)("Identifier", "StringLiteral")
1242
+ },
1243
+ importKind: {
1244
+ validate: (0, _utils.assertOneOf)("type", "typeof", "value"),
1245
+ optional: true
1246
+ }
1247
+ }
1248
+ });
1249
+ defineType("ImportExpression", {
1250
+ visitor: ["source", "options"],
1251
+ aliases: ["Expression"],
1252
+ fields: {
1253
+ phase: {
1254
+ default: null,
1255
+ validate: (0, _utils.assertOneOf)("source", "defer")
1256
+ },
1257
+ source: {
1258
+ validate: (0, _utils.assertNodeType)("Expression")
1259
+ },
1260
+ options: {
1261
+ validate: (0, _utils.assertNodeType)("Expression"),
1262
+ optional: true
1263
+ }
1264
+ }
1265
+ });
1266
+ defineType("MetaProperty", {
1267
+ visitor: ["meta", "property"],
1268
+ aliases: ["Expression"],
1269
+ fields: {
1270
+ meta: {
1271
+ validate: process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.chain)((0, _utils.assertNodeType)("Identifier"), Object.assign(function (node, key, val) {
1272
+ let property;
1273
+ switch (val.name) {
1274
+ case "function":
1275
+ property = "sent";
1276
+ break;
1277
+ case "new":
1278
+ property = "target";
1279
+ break;
1280
+ case "import":
1281
+ property = "meta";
1282
+ break;
1283
+ }
1284
+ if (!(0, _is.default)("Identifier", node.property, {
1285
+ name: property
1286
+ })) {
1287
+ throw new TypeError("Unrecognised MetaProperty");
1288
+ }
1289
+ }, {
1290
+ oneOfNodeTypes: ["Identifier"]
1291
+ })) : (0, _utils.assertNodeType)("Identifier")
1292
+ },
1293
+ property: {
1294
+ validate: (0, _utils.assertNodeType)("Identifier")
1295
+ }
1296
+ }
1297
+ });
1298
+ const classMethodOrPropertyCommon = () => ({
1299
+ abstract: {
1300
+ validate: (0, _utils.assertValueType)("boolean"),
1301
+ optional: true
1302
+ },
1303
+ accessibility: {
1304
+ validate: (0, _utils.assertOneOf)("public", "private", "protected"),
1305
+ optional: true
1306
+ },
1307
+ static: {
1308
+ default: false
1309
+ },
1310
+ override: {
1311
+ default: false
1312
+ },
1313
+ computed: {
1314
+ default: false
1315
+ },
1316
+ optional: {
1317
+ validate: (0, _utils.assertValueType)("boolean"),
1318
+ optional: true
1319
+ },
1320
+ key: {
1321
+ validate: (0, _utils.chain)(function () {
1322
+ const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral");
1323
+ const computed = (0, _utils.assertNodeType)("Expression");
1324
+ return function (node, key, val) {
1325
+ const validator = node.computed ? computed : normal;
1326
+ validator(node, key, val);
1327
+ };
1328
+ }(), (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "Expression"))
1329
+ }
1330
+ });
1331
+ exports.classMethodOrPropertyCommon = classMethodOrPropertyCommon;
1332
+ const classMethodOrDeclareMethodCommon = () => Object.assign({}, functionCommon(), classMethodOrPropertyCommon(), {
1333
+ params: (0, _utils.validateArrayOfType)("FunctionParameter", "TSParameterProperty"),
1334
+ kind: {
1335
+ validate: (0, _utils.assertOneOf)("get", "set", "method", "constructor"),
1336
+ default: "method"
1337
+ },
1338
+ access: {
1339
+ validate: (0, _utils.chain)((0, _utils.assertValueType)("string"), (0, _utils.assertOneOf)("public", "private", "protected")),
1340
+ optional: true
1341
+ },
1342
+ decorators: {
1343
+ validate: (0, _utils.arrayOfType)("Decorator"),
1344
+ optional: true
1345
+ }
1346
+ });
1347
+ exports.classMethodOrDeclareMethodCommon = classMethodOrDeclareMethodCommon;
1348
+ defineType("ClassMethod", Object.assign({
1349
+ aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method"],
1350
+ builder: ["kind", "key", "params", "body", "computed", "static", "generator", "async"],
1351
+ visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"]
1352
+ }, classMethodOrPropertyUnionShapeCommon(), {
1353
+ fields: Object.assign({}, classMethodOrDeclareMethodCommon(), functionTypeAnnotationCommon(), {
1354
+ body: {
1355
+ validate: (0, _utils.assertNodeType)("BlockStatement")
1356
+ }
1357
+ })
1358
+ }));
1359
+ defineType("ObjectPattern", {
1360
+ visitor: ["decorators", "properties", "typeAnnotation"],
1361
+ builder: ["properties"],
1362
+ aliases: ["FunctionParameter", "Pattern", "PatternLike", "LVal"],
1363
+ fields: Object.assign({}, patternLikeCommon(), {
1364
+ properties: (0, _utils.validateArrayOfType)("RestElement", "ObjectProperty")
1365
+ })
1366
+ });
1367
+ defineType("SpreadElement", {
1368
+ visitor: ["argument"],
1369
+ aliases: ["UnaryLike"],
1370
+ deprecatedAlias: "SpreadProperty",
1371
+ fields: {
1372
+ argument: {
1373
+ validate: (0, _utils.assertNodeType)("Expression")
1374
+ }
1375
+ }
1376
+ });
1377
+ defineType("Super", {
1378
+ aliases: ["Expression"]
1379
+ });
1380
+ defineType("TaggedTemplateExpression", {
1381
+ visitor: ["tag", "typeParameters", "quasi"],
1382
+ builder: ["tag", "quasi"],
1383
+ aliases: ["Expression"],
1384
+ fields: {
1385
+ tag: {
1386
+ validate: (0, _utils.assertNodeType)("Expression")
1387
+ },
1388
+ quasi: {
1389
+ validate: (0, _utils.assertNodeType)("TemplateLiteral")
1390
+ },
1391
+ ["typeParameters"]: {
1392
+ validate: (0, _utils.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"),
1393
+ optional: true
1394
+ }
1395
+ }
1396
+ });
1397
+ defineType("TemplateElement", {
1398
+ builder: ["value", "tail"],
1399
+ fields: {
1400
+ value: {
1401
+ validate: (0, _utils.chain)((0, _utils.assertShape)({
1402
+ raw: {
1403
+ validate: (0, _utils.assertValueType)("string")
1404
+ },
1405
+ cooked: {
1406
+ validate: (0, _utils.assertValueType)("string"),
1407
+ optional: true
1408
+ }
1409
+ }), function templateElementCookedValidator(node) {
1410
+ const raw = node.value.raw;
1411
+ let unterminatedCalled = false;
1412
+ const error = () => {
1413
+ throw new Error("Internal @babel/types error.");
1414
+ };
1415
+ const {
1416
+ str,
1417
+ firstInvalidLoc
1418
+ } = (0, _helperStringParser.readStringContents)("template", raw, 0, 0, 0, {
1419
+ unterminated() {
1420
+ unterminatedCalled = true;
1421
+ },
1422
+ strictNumericEscape: error,
1423
+ invalidEscapeSequence: error,
1424
+ numericSeparatorInEscapeSequence: error,
1425
+ unexpectedNumericSeparator: error,
1426
+ invalidDigit: error,
1427
+ invalidCodePoint: error
1428
+ });
1429
+ if (!unterminatedCalled) throw new Error("Invalid raw");
1430
+ node.value.cooked = firstInvalidLoc ? null : str;
1431
+ })
1432
+ },
1433
+ tail: {
1434
+ default: false
1435
+ }
1436
+ }
1437
+ });
1438
+ defineType("TemplateLiteral", {
1439
+ visitor: ["quasis", "expressions"],
1440
+ aliases: ["Expression", "Literal"],
1441
+ fields: {
1442
+ quasis: (0, _utils.validateArrayOfType)("TemplateElement"),
1443
+ expressions: {
1444
+ validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression", "TSType")), function (node, key, val) {
1445
+ if (node.quasis.length !== val.length + 1) {
1446
+ throw new TypeError(`Number of ${node.type} quasis should be exactly one more than the number of expressions.\nExpected ${val.length + 1} quasis but got ${node.quasis.length}`);
1447
+ }
1448
+ })
1449
+ }
1450
+ }
1451
+ });
1452
+ defineType("YieldExpression", {
1453
+ builder: ["argument", "delegate"],
1454
+ visitor: ["argument"],
1455
+ aliases: ["Expression", "Terminatorless"],
1456
+ fields: {
1457
+ delegate: {
1458
+ validate: process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.chain)((0, _utils.assertValueType)("boolean"), Object.assign(function (node, key, val) {
1459
+ if (val && !node.argument) {
1460
+ throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument");
1461
+ }
1462
+ }, {
1463
+ type: "boolean"
1464
+ })) : (0, _utils.assertValueType)("boolean"),
1465
+ default: false
1466
+ },
1467
+ argument: {
1468
+ optional: true,
1469
+ validate: (0, _utils.assertNodeType)("Expression")
1470
+ }
1471
+ }
1472
+ });
1473
+ defineType("AwaitExpression", {
1474
+ builder: ["argument"],
1475
+ visitor: ["argument"],
1476
+ aliases: ["Expression", "Terminatorless"],
1477
+ fields: {
1478
+ argument: {
1479
+ validate: (0, _utils.assertNodeType)("Expression")
1480
+ }
1481
+ }
1482
+ });
1483
+ defineType("Import", {
1484
+ aliases: ["Expression"]
1485
+ });
1486
+ defineType("BigIntLiteral", {
1487
+ builder: ["value"],
1488
+ fields: {
1489
+ value: {
1490
+ validate: (0, _utils.assertValueType)("string")
1491
+ }
1492
+ },
1493
+ aliases: ["Expression", "Pureish", "Literal", "Immutable"]
1494
+ });
1495
+ defineType("ExportNamespaceSpecifier", {
1496
+ visitor: ["exported"],
1497
+ aliases: ["ModuleSpecifier"],
1498
+ fields: {
1499
+ exported: {
1500
+ validate: (0, _utils.assertNodeType)("Identifier")
1501
+ }
1502
+ }
1503
+ });
1504
+ defineType("OptionalMemberExpression", {
1505
+ builder: ["object", "property", "computed", "optional"],
1506
+ visitor: ["object", "property"],
1507
+ aliases: ["Expression"],
1508
+ fields: {
1509
+ object: {
1510
+ validate: (0, _utils.assertNodeType)("Expression")
1511
+ },
1512
+ property: {
1513
+ validate: function () {
1514
+ const normal = (0, _utils.assertNodeType)("Identifier");
1515
+ const computed = (0, _utils.assertNodeType)("Expression");
1516
+ const validator = Object.assign(function (node, key, val) {
1517
+ const validator = node.computed ? computed : normal;
1518
+ validator(node, key, val);
1519
+ }, {
1520
+ oneOfNodeTypes: ["Expression", "Identifier"]
1521
+ });
1522
+ return validator;
1523
+ }()
1524
+ },
1525
+ computed: {
1526
+ default: false
1527
+ },
1528
+ optional: {
1529
+ validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertValueType)("boolean") : (0, _utils.chain)((0, _utils.assertValueType)("boolean"), (0, _utils.assertOptionalChainStart)())
1530
+ }
1531
+ }
1532
+ });
1533
+ defineType("OptionalCallExpression", {
1534
+ visitor: ["callee", "typeParameters", "typeArguments", "arguments"],
1535
+ builder: ["callee", "arguments", "optional"],
1536
+ aliases: ["Expression"],
1537
+ fields: Object.assign({
1538
+ callee: {
1539
+ validate: (0, _utils.assertNodeType)("Expression")
1540
+ },
1541
+ arguments: (0, _utils.validateArrayOfType)("Expression", "SpreadElement", "ArgumentPlaceholder"),
1542
+ optional: {
1543
+ validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertValueType)("boolean") : (0, _utils.chain)((0, _utils.assertValueType)("boolean"), (0, _utils.assertOptionalChainStart)())
1544
+ },
1545
+ typeArguments: {
1546
+ validate: (0, _utils.assertNodeType)("TypeParameterInstantiation"),
1547
+ optional: true
1548
+ }
1549
+ }, {
1550
+ typeParameters: {
1551
+ validate: (0, _utils.assertNodeType)("TSTypeParameterInstantiation"),
1552
+ optional: true
1553
+ }
1554
+ })
1555
+ });
1556
+ defineType("ClassProperty", Object.assign({
1557
+ visitor: ["decorators", "variance", "key", "typeAnnotation", "value"],
1558
+ builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"],
1559
+ aliases: ["Property"]
1560
+ }, classMethodOrPropertyUnionShapeCommon(), {
1561
+ fields: Object.assign({}, classMethodOrPropertyCommon(), {
1562
+ value: {
1563
+ validate: (0, _utils.assertNodeType)("Expression"),
1564
+ optional: true
1565
+ },
1566
+ definite: {
1567
+ validate: (0, _utils.assertValueType)("boolean"),
1568
+ optional: true
1569
+ },
1570
+ typeAnnotation: {
1571
+ validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
1572
+ optional: true
1573
+ },
1574
+ decorators: {
1575
+ validate: (0, _utils.arrayOfType)("Decorator"),
1576
+ optional: true
1577
+ },
1578
+ readonly: {
1579
+ validate: (0, _utils.assertValueType)("boolean"),
1580
+ optional: true
1581
+ },
1582
+ declare: {
1583
+ validate: (0, _utils.assertValueType)("boolean"),
1584
+ optional: true
1585
+ },
1586
+ variance: {
1587
+ validate: (0, _utils.assertNodeType)("Variance"),
1588
+ optional: true
1589
+ }
1590
+ })
1591
+ }));
1592
+ defineType("ClassAccessorProperty", Object.assign({
1593
+ visitor: ["decorators", "key", "typeAnnotation", "value"],
1594
+ builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"],
1595
+ aliases: ["Property", "Accessor"]
1596
+ }, classMethodOrPropertyUnionShapeCommon(true), {
1597
+ fields: Object.assign({}, classMethodOrPropertyCommon(), {
1598
+ key: {
1599
+ validate: (0, _utils.chain)(function () {
1600
+ const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "PrivateName");
1601
+ const computed = (0, _utils.assertNodeType)("Expression");
1602
+ return function (node, key, val) {
1603
+ const validator = node.computed ? computed : normal;
1604
+ validator(node, key, val);
1605
+ };
1606
+ }(), (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "Expression", "PrivateName"))
1607
+ },
1608
+ value: {
1609
+ validate: (0, _utils.assertNodeType)("Expression"),
1610
+ optional: true
1611
+ },
1612
+ definite: {
1613
+ validate: (0, _utils.assertValueType)("boolean"),
1614
+ optional: true
1615
+ },
1616
+ typeAnnotation: {
1617
+ validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
1618
+ optional: true
1619
+ },
1620
+ decorators: {
1621
+ validate: (0, _utils.arrayOfType)("Decorator"),
1622
+ optional: true
1623
+ },
1624
+ readonly: {
1625
+ validate: (0, _utils.assertValueType)("boolean"),
1626
+ optional: true
1627
+ },
1628
+ declare: {
1629
+ validate: (0, _utils.assertValueType)("boolean"),
1630
+ optional: true
1631
+ },
1632
+ variance: {
1633
+ validate: (0, _utils.assertNodeType)("Variance"),
1634
+ optional: true
1635
+ }
1636
+ })
1637
+ }));
1638
+ defineType("ClassPrivateProperty", {
1639
+ visitor: ["decorators", "variance", "key", "typeAnnotation", "value"],
1640
+ builder: ["key", "value", "decorators", "static"],
1641
+ aliases: ["Property", "Private"],
1642
+ fields: {
1643
+ key: {
1644
+ validate: (0, _utils.assertNodeType)("PrivateName")
1645
+ },
1646
+ value: {
1647
+ validate: (0, _utils.assertNodeType)("Expression"),
1648
+ optional: true
1649
+ },
1650
+ typeAnnotation: {
1651
+ validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
1652
+ optional: true
1653
+ },
1654
+ decorators: {
1655
+ validate: (0, _utils.arrayOfType)("Decorator"),
1656
+ optional: true
1657
+ },
1658
+ static: {
1659
+ validate: (0, _utils.assertValueType)("boolean"),
1660
+ default: false
1661
+ },
1662
+ readonly: {
1663
+ validate: (0, _utils.assertValueType)("boolean"),
1664
+ optional: true
1665
+ },
1666
+ optional: {
1667
+ validate: (0, _utils.assertValueType)("boolean"),
1668
+ optional: true
1669
+ },
1670
+ definite: {
1671
+ validate: (0, _utils.assertValueType)("boolean"),
1672
+ optional: true
1673
+ },
1674
+ variance: {
1675
+ validate: (0, _utils.assertNodeType)("Variance"),
1676
+ optional: true
1677
+ }
1678
+ }
1679
+ });
1680
+ defineType("ClassPrivateMethod", {
1681
+ builder: ["kind", "key", "params", "body", "static"],
1682
+ visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"],
1683
+ aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method", "Private"],
1684
+ fields: Object.assign({}, classMethodOrDeclareMethodCommon(), functionTypeAnnotationCommon(), {
1685
+ kind: {
1686
+ validate: (0, _utils.assertOneOf)("get", "set", "method"),
1687
+ default: "method"
1688
+ },
1689
+ key: {
1690
+ validate: (0, _utils.assertNodeType)("PrivateName")
1691
+ },
1692
+ body: {
1693
+ validate: (0, _utils.assertNodeType)("BlockStatement")
1694
+ }
1695
+ })
1696
+ });
1697
+ defineType("PrivateName", {
1698
+ visitor: ["id"],
1699
+ aliases: ["Private"],
1700
+ fields: {
1701
+ id: {
1702
+ validate: (0, _utils.assertNodeType)("Identifier")
1703
+ }
1704
+ }
1705
+ });
1706
+ defineType("StaticBlock", {
1707
+ visitor: ["body"],
1708
+ fields: {
1709
+ body: (0, _utils.validateArrayOfType)("Statement")
1710
+ },
1711
+ aliases: ["Scopable", "BlockParent", "FunctionParent"]
1712
+ });
1713
+ defineType("ImportAttribute", {
1714
+ visitor: ["key", "value"],
1715
+ fields: {
1716
+ key: {
1717
+ validate: (0, _utils.assertNodeType)("Identifier", "StringLiteral")
1718
+ },
1719
+ value: {
1720
+ validate: (0, _utils.assertNodeType)("StringLiteral")
1721
+ }
1722
+ }
1723
+ });
1724
+
1725
+ //# sourceMappingURL=core.js.map