@sitecore/sc-contenthub-blok 0.0.90 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (895) hide show
  1. package/dist/Components/BlokBadge/BlokBadge.spec.js +1 -1
  2. package/dist/Components/BlokBadge/BlokBadge.spec.js.map +1 -1
  3. package/dist/Components/BlokButton/BlokButton.d.ts +3 -4
  4. package/dist/Components/BlokButton/BlokButton.js +3 -3
  5. package/dist/Components/BlokButton/BlokButton.js.map +1 -1
  6. package/dist/Components/BlokButtonGroup/BlokButtonGroup.d.ts +1 -2
  7. package/dist/Components/BlokButtonGroup/BlokButtonGroup.js +2 -1
  8. package/dist/Components/BlokButtonGroup/BlokButtonGroup.js.map +1 -1
  9. package/dist/Components/BlokButtonGroup/BlokButtonGroup.spec.js +8 -11
  10. package/dist/Components/BlokButtonGroup/BlokButtonGroup.spec.js.map +1 -1
  11. package/dist/Components/BlokButtonGroup/BlokButtonGroup.stories.js +3 -6
  12. package/dist/Components/BlokButtonGroup/BlokButtonGroup.stories.js.map +1 -1
  13. package/dist/Components/BlokIcon/BlokIcon.d.ts +2 -1
  14. package/dist/Components/BlokIcon/BlokIcon.js +3 -3
  15. package/dist/Components/BlokIcon/BlokIcon.js.map +1 -1
  16. package/dist/Components/BlokIconButton/BlokIconButton.d.ts +2 -4
  17. package/dist/Components/BlokIconButton/BlokIconButton.js +3 -3
  18. package/dist/Components/BlokIconButton/BlokIconButton.js.map +1 -1
  19. package/dist/Components/BlokSearchBox/BlokSearchBox.d.ts +3 -2
  20. package/dist/Components/BlokSearchBox/BlokSearchBox.js +3 -2
  21. package/dist/Components/BlokSearchBox/BlokSearchBox.js.map +1 -1
  22. package/dist/Components/BlokTooltip/BlokTooltip.js +0 -4
  23. package/dist/Components/BlokTooltip/BlokTooltip.js.map +1 -1
  24. package/esm/Components/BlokButton/BlokButton.js +2 -3
  25. package/esm/Components/BlokButton/BlokButton.js.map +1 -1
  26. package/esm/Components/BlokButtonGroup/BlokButtonGroup.js +1 -2
  27. package/esm/Components/BlokButtonGroup/BlokButtonGroup.js.map +1 -1
  28. package/esm/Components/BlokIcon/BlokIcon.js +2 -3
  29. package/esm/Components/BlokIcon/BlokIcon.js.map +1 -1
  30. package/esm/Components/BlokIconButton/BlokIconButton.js +2 -3
  31. package/esm/Components/BlokIconButton/BlokIconButton.js.map +1 -1
  32. package/esm/Components/BlokSearchBox/BlokSearchBox.js +3 -3
  33. package/esm/Components/BlokSearchBox/BlokSearchBox.js.map +1 -1
  34. package/esm/Components/BlokTooltip/BlokTooltip.js +0 -4
  35. package/esm/Components/BlokTooltip/BlokTooltip.js.map +1 -1
  36. package/node_modules/@babel/code-frame/package.json +3 -3
  37. package/node_modules/@babel/generator/lib/generators/classes.js +7 -4
  38. package/node_modules/@babel/generator/lib/generators/classes.js.map +1 -1
  39. package/node_modules/@babel/generator/lib/generators/deprecated.js +28 -0
  40. package/node_modules/@babel/generator/lib/generators/deprecated.js.map +1 -0
  41. package/node_modules/@babel/generator/lib/generators/expressions.js +17 -12
  42. package/node_modules/@babel/generator/lib/generators/expressions.js.map +1 -1
  43. package/node_modules/@babel/generator/lib/generators/jsx.js +6 -1
  44. package/node_modules/@babel/generator/lib/generators/jsx.js.map +1 -1
  45. package/node_modules/@babel/generator/lib/generators/methods.js.map +1 -1
  46. package/node_modules/@babel/generator/lib/generators/modules.js +8 -3
  47. package/node_modules/@babel/generator/lib/generators/modules.js.map +1 -1
  48. package/node_modules/@babel/generator/lib/generators/statements.js +1 -4
  49. package/node_modules/@babel/generator/lib/generators/statements.js.map +1 -1
  50. package/node_modules/@babel/generator/lib/generators/template-literals.js +16 -11
  51. package/node_modules/@babel/generator/lib/generators/template-literals.js.map +1 -1
  52. package/node_modules/@babel/generator/lib/generators/types.js +4 -9
  53. package/node_modules/@babel/generator/lib/generators/types.js.map +1 -1
  54. package/node_modules/@babel/generator/lib/generators/typescript.js +40 -18
  55. package/node_modules/@babel/generator/lib/generators/typescript.js.map +1 -1
  56. package/node_modules/@babel/generator/lib/index.js +3 -1
  57. package/node_modules/@babel/generator/lib/index.js.map +1 -1
  58. package/node_modules/@babel/generator/lib/node/index.js +11 -8
  59. package/node_modules/@babel/generator/lib/node/index.js.map +1 -1
  60. package/node_modules/@babel/generator/lib/node/parentheses.js +44 -7
  61. package/node_modules/@babel/generator/lib/node/parentheses.js.map +1 -1
  62. package/node_modules/@babel/generator/lib/printer.js +31 -24
  63. package/node_modules/@babel/generator/lib/printer.js.map +1 -1
  64. package/node_modules/@babel/generator/package.json +9 -9
  65. package/node_modules/@babel/helper-globals/LICENSE +22 -0
  66. package/node_modules/@babel/helper-globals/README.md +19 -0
  67. package/node_modules/@babel/helper-globals/data/browser-upper.json +911 -0
  68. package/node_modules/@babel/helper-globals/data/builtin-lower.json +15 -0
  69. package/node_modules/@babel/helper-globals/data/builtin-upper.json +51 -0
  70. package/node_modules/@babel/helper-globals/package.json +32 -0
  71. package/node_modules/@babel/helper-module-imports/lib/import-builder.js.map +1 -1
  72. package/node_modules/@babel/helper-module-imports/lib/import-injector.js.map +1 -1
  73. package/node_modules/@babel/helper-module-imports/package.json +4 -4
  74. package/node_modules/@babel/helper-string-parser/package.json +1 -1
  75. package/node_modules/@babel/helper-validator-identifier/package.json +1 -1
  76. package/node_modules/@babel/parser/bin/babel-parser.js +1 -1
  77. package/node_modules/@babel/parser/lib/index.js +5814 -5255
  78. package/node_modules/@babel/parser/lib/index.js.map +1 -1
  79. package/node_modules/@babel/parser/package.json +7 -7
  80. package/node_modules/@babel/parser/typings/babel-parser.d.ts +137 -165
  81. package/node_modules/@babel/template/lib/options.js +1 -1
  82. package/node_modules/@babel/template/lib/options.js.map +1 -1
  83. package/node_modules/@babel/template/lib/parse.js +3 -0
  84. package/node_modules/@babel/template/lib/parse.js.map +1 -1
  85. package/node_modules/@babel/template/lib/populate.js +2 -1
  86. package/node_modules/@babel/template/lib/populate.js.map +1 -1
  87. package/node_modules/@babel/template/package.json +4 -4
  88. package/node_modules/@babel/traverse/lib/cache.js +10 -16
  89. package/node_modules/@babel/traverse/lib/cache.js.map +1 -1
  90. package/node_modules/@babel/traverse/lib/index.js +8 -16
  91. package/node_modules/@babel/traverse/lib/index.js.map +1 -1
  92. package/node_modules/@babel/traverse/lib/path/ancestry.js +1 -3
  93. package/node_modules/@babel/traverse/lib/path/ancestry.js.map +1 -1
  94. package/node_modules/@babel/traverse/lib/path/context.js +0 -15
  95. package/node_modules/@babel/traverse/lib/path/context.js.map +1 -1
  96. package/node_modules/@babel/traverse/lib/path/conversion.js +7 -4
  97. package/node_modules/@babel/traverse/lib/path/conversion.js.map +1 -1
  98. package/node_modules/@babel/traverse/lib/path/evaluation.js +23 -2
  99. package/node_modules/@babel/traverse/lib/path/evaluation.js.map +1 -1
  100. package/node_modules/@babel/traverse/lib/path/family.js +13 -7
  101. package/node_modules/@babel/traverse/lib/path/family.js.map +1 -1
  102. package/node_modules/@babel/traverse/lib/path/index.js +2 -1
  103. package/node_modules/@babel/traverse/lib/path/index.js.map +1 -1
  104. package/node_modules/@babel/traverse/lib/path/introspection.js.map +1 -1
  105. package/node_modules/@babel/traverse/lib/path/lib/hoister.js.map +1 -1
  106. package/node_modules/@babel/traverse/lib/path/lib/virtual-types.js +1 -1
  107. package/node_modules/@babel/traverse/lib/path/lib/virtual-types.js.map +1 -1
  108. package/node_modules/@babel/traverse/lib/path/modification.js +3 -2
  109. package/node_modules/@babel/traverse/lib/path/modification.js.map +1 -1
  110. package/node_modules/@babel/traverse/lib/path/removal.js +2 -1
  111. package/node_modules/@babel/traverse/lib/path/removal.js.map +1 -1
  112. package/node_modules/@babel/traverse/lib/path/replacement.js +2 -2
  113. package/node_modules/@babel/traverse/lib/path/replacement.js.map +1 -1
  114. package/node_modules/@babel/traverse/lib/scope/binding.js +4 -3
  115. package/node_modules/@babel/traverse/lib/scope/binding.js.map +1 -1
  116. package/node_modules/@babel/traverse/lib/scope/index.js +99 -39
  117. package/node_modules/@babel/traverse/lib/scope/index.js.map +1 -1
  118. package/node_modules/@babel/traverse/lib/traverse-node.js +109 -0
  119. package/node_modules/@babel/traverse/lib/traverse-node.js.map +1 -1
  120. package/node_modules/@babel/traverse/lib/types.js +1 -1
  121. package/node_modules/@babel/traverse/lib/visitors.js +6 -4
  122. package/node_modules/@babel/traverse/lib/visitors.js.map +1 -1
  123. package/node_modules/@babel/traverse/package.json +10 -10
  124. package/node_modules/@babel/types/lib/asserts/generated/index.js +19 -3
  125. package/node_modules/@babel/types/lib/asserts/generated/index.js.map +1 -1
  126. package/node_modules/@babel/types/lib/ast-types/generated/index.js +1 -1
  127. package/node_modules/@babel/types/lib/ast-types/generated/index.js.map +1 -1
  128. package/node_modules/@babel/types/lib/builders/generated/index.js +22 -2858
  129. package/node_modules/@babel/types/lib/builders/generated/index.js.map +1 -1
  130. package/node_modules/@babel/types/lib/builders/generated/lowercase.js +2896 -0
  131. package/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +1 -0
  132. package/node_modules/@babel/types/lib/builders/generated/uppercase.js +267 -1525
  133. package/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +1 -1
  134. package/node_modules/@babel/types/lib/constants/generated/index.js +2 -1
  135. package/node_modules/@babel/types/lib/constants/generated/index.js.map +1 -1
  136. package/node_modules/@babel/types/lib/constants/index.js +5 -3
  137. package/node_modules/@babel/types/lib/constants/index.js.map +1 -1
  138. package/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +1 -1
  139. package/node_modules/@babel/types/lib/converters/toExpression.js +1 -0
  140. package/node_modules/@babel/types/lib/converters/toExpression.js.map +1 -1
  141. package/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +1 -1
  142. package/node_modules/@babel/types/lib/converters/valueToNode.js +16 -3
  143. package/node_modules/@babel/types/lib/converters/valueToNode.js.map +1 -1
  144. package/node_modules/@babel/types/lib/definitions/core.js +73 -44
  145. package/node_modules/@babel/types/lib/definitions/core.js.map +1 -1
  146. package/node_modules/@babel/types/lib/definitions/experimental.js +3 -11
  147. package/node_modules/@babel/types/lib/definitions/experimental.js.map +1 -1
  148. package/node_modules/@babel/types/lib/definitions/flow.js +6 -3
  149. package/node_modules/@babel/types/lib/definitions/flow.js.map +1 -1
  150. package/node_modules/@babel/types/lib/definitions/index.js +13 -0
  151. package/node_modules/@babel/types/lib/definitions/index.js.map +1 -1
  152. package/node_modules/@babel/types/lib/definitions/jsx.js +9 -4
  153. package/node_modules/@babel/types/lib/definitions/jsx.js.map +1 -1
  154. package/node_modules/@babel/types/lib/definitions/typescript.js +56 -28
  155. package/node_modules/@babel/types/lib/definitions/typescript.js.map +1 -1
  156. package/node_modules/@babel/types/lib/definitions/utils.js +37 -15
  157. package/node_modules/@babel/types/lib/definitions/utils.js.map +1 -1
  158. package/node_modules/@babel/types/lib/index-legacy.d.ts +72 -41
  159. package/node_modules/@babel/types/lib/index.d.ts +1699 -1655
  160. package/node_modules/@babel/types/lib/index.js +10 -21
  161. package/node_modules/@babel/types/lib/index.js.flow +72 -42
  162. package/node_modules/@babel/types/lib/index.js.map +1 -1
  163. package/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +9 -8
  164. package/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +1 -1
  165. package/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +1 -0
  166. package/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +1 -1
  167. package/node_modules/@babel/types/lib/traverse/traverseFast.js +19 -5
  168. package/node_modules/@babel/types/lib/traverse/traverseFast.js.map +1 -1
  169. package/node_modules/@babel/types/lib/utils/deprecationWarning.js +3 -3
  170. package/node_modules/@babel/types/lib/utils/deprecationWarning.js.map +1 -1
  171. package/node_modules/@babel/types/lib/validators/generated/index.js +50 -5
  172. package/node_modules/@babel/types/lib/validators/generated/index.js.map +1 -1
  173. package/node_modules/@babel/types/lib/validators/isLet.js +6 -2
  174. package/node_modules/@babel/types/lib/validators/isLet.js.map +1 -1
  175. package/node_modules/@babel/types/lib/validators/isPlaceholderType.js +1 -5
  176. package/node_modules/@babel/types/lib/validators/isPlaceholderType.js.map +1 -1
  177. package/node_modules/@babel/types/lib/validators/isType.js +1 -6
  178. package/node_modules/@babel/types/lib/validators/isType.js.map +1 -1
  179. package/node_modules/@babel/types/lib/validators/isVar.js +8 -4
  180. package/node_modules/@babel/types/lib/validators/isVar.js.map +1 -1
  181. package/node_modules/@babel/types/lib/validators/matchesPattern.js +10 -2
  182. package/node_modules/@babel/types/lib/validators/matchesPattern.js.map +1 -1
  183. package/node_modules/@babel/types/lib/validators/validate.js.map +1 -1
  184. package/node_modules/@babel/types/package.json +14 -14
  185. package/node_modules/@emotion/cache/dist/declarations/src/index.d.ts +16 -2
  186. package/node_modules/@emotion/cache/dist/declarations/src/types.d.ts +14 -0
  187. package/node_modules/@emotion/cache/dist/emotion-cache.browser.cjs.js +7 -36
  188. package/node_modules/@emotion/cache/dist/emotion-cache.browser.development.cjs.js +10 -43
  189. package/node_modules/@emotion/cache/dist/emotion-cache.browser.development.esm.js +10 -43
  190. package/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +7 -36
  191. package/node_modules/@emotion/cache/dist/emotion-cache.cjs.js +11 -73
  192. package/node_modules/@emotion/cache/dist/emotion-cache.development.cjs.js +15 -81
  193. package/node_modules/@emotion/cache/dist/emotion-cache.development.edge-light.cjs.js +50 -60
  194. package/node_modules/@emotion/cache/dist/emotion-cache.development.edge-light.esm.js +51 -61
  195. package/node_modules/@emotion/cache/dist/emotion-cache.development.esm.js +15 -81
  196. package/node_modules/@emotion/cache/dist/emotion-cache.edge-light.cjs.js +28 -56
  197. package/node_modules/@emotion/cache/dist/emotion-cache.edge-light.esm.js +29 -57
  198. package/node_modules/@emotion/cache/dist/emotion-cache.esm.js +11 -73
  199. package/node_modules/@emotion/cache/package.json +11 -11
  200. package/node_modules/@emotion/cache/src/{index.js → index.ts} +39 -55
  201. package/node_modules/@emotion/cache/src/{prefixer.js → prefixer.ts} +11 -4
  202. package/node_modules/@emotion/cache/src/{stylis-plugins.js → stylis-plugins.ts} +91 -83
  203. package/node_modules/@emotion/cache/src/{types.js → types.ts} +4 -5
  204. package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.umd.min.js.map +1 -1
  205. package/node_modules/@emotion/react/_isolated-hnrs/package.json +1 -0
  206. package/node_modules/@emotion/react/dist/declarations/src/_isolated-hnrs.d.ts +3 -3
  207. package/node_modules/@emotion/react/dist/declarations/src/class-names.d.ts +18 -0
  208. package/node_modules/@emotion/react/dist/declarations/src/context.d.ts +6 -0
  209. package/node_modules/@emotion/react/dist/declarations/src/css.d.ts +5 -0
  210. package/node_modules/@emotion/react/dist/declarations/src/global.d.ts +7 -0
  211. package/node_modules/@emotion/react/dist/declarations/src/index.d.ts +14 -1
  212. package/node_modules/@emotion/react/dist/declarations/src/jsx-dev-runtime.d.ts +6 -1
  213. package/node_modules/@emotion/react/dist/declarations/src/jsx-namespace.d.ts +64 -0
  214. package/node_modules/@emotion/react/dist/declarations/src/jsx-runtime.d.ts +7 -1
  215. package/node_modules/@emotion/react/dist/declarations/src/jsx.d.ts +22 -0
  216. package/node_modules/@emotion/react/dist/declarations/src/keyframes.d.ts +10 -0
  217. package/node_modules/@emotion/react/dist/declarations/src/theming.d.ts +28 -0
  218. package/node_modules/@emotion/react/dist/declarations/src/types.d.ts +7 -0
  219. package/node_modules/@emotion/react/dist/{emotion-element-f66136f5.development.edge-light.cjs.js → emotion-element-010f37fa.development.edge-light.cjs.js} +23 -84
  220. package/node_modules/@emotion/react/dist/{emotion-element-832b737b.browser.cjs.js → emotion-element-25f9958c.browser.cjs.js} +20 -65
  221. package/node_modules/@emotion/react/dist/{emotion-element-7447be04.browser.development.cjs.js → emotion-element-4787f564.browser.development.cjs.js} +21 -74
  222. package/node_modules/@emotion/react/dist/{emotion-element-7a1343fa.browser.development.esm.js → emotion-element-489459f2.browser.development.esm.js} +21 -74
  223. package/node_modules/@emotion/react/dist/{emotion-element-efb2998a.development.edge-light.esm.js → emotion-element-516430c7.development.edge-light.esm.js} +23 -84
  224. package/node_modules/@emotion/react/dist/{emotion-element-ba80abe0.development.esm.js → emotion-element-782f682d.development.esm.js} +23 -84
  225. package/node_modules/@emotion/react/dist/{emotion-element-657efc1f.edge-light.esm.js → emotion-element-8113875a.edge-light.esm.js} +22 -75
  226. package/node_modules/@emotion/react/dist/{emotion-element-b1930563.cjs.js → emotion-element-a1829a1e.cjs.js} +22 -75
  227. package/node_modules/@emotion/react/dist/{emotion-element-60389d2b.edge-light.cjs.js → emotion-element-af3dc15b.edge-light.cjs.js} +22 -75
  228. package/node_modules/@emotion/react/dist/{emotion-element-b4c8b265.esm.js → emotion-element-d59e098f.esm.js} +22 -75
  229. package/node_modules/@emotion/react/dist/{emotion-element-9150ebbd.development.cjs.js → emotion-element-e8f4cc37.development.cjs.js} +23 -84
  230. package/node_modules/@emotion/react/dist/{emotion-element-5486c51c.browser.esm.js → emotion-element-f0de968e.browser.esm.js} +20 -65
  231. package/node_modules/@emotion/react/dist/emotion-react.browser.cjs.js +19 -75
  232. package/node_modules/@emotion/react/dist/emotion-react.browser.development.cjs.js +38 -102
  233. package/node_modules/@emotion/react/dist/emotion-react.browser.development.esm.js +38 -101
  234. package/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +19 -74
  235. package/node_modules/@emotion/react/dist/emotion-react.cjs.js +19 -75
  236. package/node_modules/@emotion/react/dist/emotion-react.development.cjs.js +38 -102
  237. package/node_modules/@emotion/react/dist/emotion-react.development.edge-light.cjs.js +37 -99
  238. package/node_modules/@emotion/react/dist/emotion-react.development.edge-light.esm.js +37 -98
  239. package/node_modules/@emotion/react/dist/emotion-react.development.esm.js +38 -101
  240. package/node_modules/@emotion/react/dist/emotion-react.edge-light.cjs.js +18 -72
  241. package/node_modules/@emotion/react/dist/emotion-react.edge-light.esm.js +18 -71
  242. package/node_modules/@emotion/react/dist/emotion-react.esm.js +19 -74
  243. package/node_modules/@emotion/react/dist/emotion-react.umd.min.js +1 -1
  244. package/node_modules/@emotion/react/dist/emotion-react.umd.min.js.map +1 -1
  245. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.cjs.js +3 -3
  246. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.cjs.js +3 -3
  247. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.esm.js +3 -3
  248. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js +3 -3
  249. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js +3 -3
  250. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.cjs.js +3 -3
  251. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js +3 -3
  252. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js +3 -3
  253. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.esm.js +3 -3
  254. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js +3 -3
  255. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js +3 -3
  256. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js +3 -3
  257. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.umd.min.js.map +1 -1
  258. package/node_modules/@emotion/react/jsx-dev-runtime/package.json +1 -1
  259. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.cjs.js +5 -5
  260. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.cjs.js +5 -5
  261. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.esm.js +5 -5
  262. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js +5 -5
  263. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js +5 -5
  264. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.development.cjs.js +5 -5
  265. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js +5 -5
  266. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js +5 -5
  267. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.development.esm.js +5 -5
  268. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js +5 -5
  269. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js +5 -5
  270. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js +5 -5
  271. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.umd.min.js.map +1 -1
  272. package/node_modules/@emotion/react/jsx-runtime/package.json +1 -1
  273. package/node_modules/@emotion/react/package.json +19 -18
  274. package/node_modules/@emotion/react/src/{_isolated-hnrs.js → _isolated-hnrs.ts} +7 -2
  275. package/node_modules/@emotion/react/src/{class-names.js → class-names.tsx} +43 -32
  276. package/node_modules/@emotion/react/src/{context.js → context.tsx} +25 -22
  277. package/node_modules/@emotion/react/src/css.ts +14 -0
  278. package/node_modules/@emotion/react/src/{emotion-element.js → emotion-element.tsx} +37 -17
  279. package/node_modules/@emotion/react/src/{get-label-from-stack-trace.js → get-label-from-stack-trace.ts} +7 -4
  280. package/node_modules/@emotion/react/src/global.tsx +147 -0
  281. package/node_modules/@emotion/react/src/{index.js → index.ts} +24 -3
  282. package/node_modules/@emotion/react/src/{jsx-dev-runtime.js → jsx-dev-runtime.ts} +12 -2
  283. package/node_modules/@emotion/react/src/jsx-namespace.ts +107 -0
  284. package/node_modules/@emotion/react/src/jsx-runtime.ts +32 -0
  285. package/node_modules/@emotion/react/src/jsx.ts +45 -0
  286. package/node_modules/@emotion/react/src/keyframes.ts +27 -0
  287. package/node_modules/@emotion/react/src/{theming.js → theming.tsx} +40 -18
  288. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.cjs.js +19 -92
  289. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.development.cjs.js +22 -94
  290. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.development.esm.js +22 -94
  291. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js +19 -92
  292. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js +20 -93
  293. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.development.cjs.js +23 -95
  294. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.development.edge-light.cjs.js +22 -94
  295. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.development.edge-light.esm.js +22 -94
  296. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.development.esm.js +24 -96
  297. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.edge-light.cjs.js +19 -92
  298. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.edge-light.esm.js +19 -92
  299. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.esm.js +21 -94
  300. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.umd.min.js +1 -1
  301. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.umd.min.js.map +1 -1
  302. package/node_modules/@emotion/styled/base/package.json +1 -1
  303. package/node_modules/@emotion/styled/dist/declarations/src/base.d.ts +4 -2
  304. package/node_modules/@emotion/styled/dist/declarations/src/index.d.ts +15 -2
  305. package/node_modules/@emotion/styled/dist/declarations/src/jsx-namespace.d.ts +5 -0
  306. package/node_modules/@emotion/styled/dist/declarations/src/types.d.ts +88 -0
  307. package/node_modules/@emotion/styled/dist/emotion-styled.browser.cjs.js +7 -6
  308. package/node_modules/@emotion/styled/dist/emotion-styled.browser.development.cjs.js +7 -6
  309. package/node_modules/@emotion/styled/dist/emotion-styled.browser.development.esm.js +7 -6
  310. package/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js +7 -6
  311. package/node_modules/@emotion/styled/dist/emotion-styled.cjs.js +7 -6
  312. package/node_modules/@emotion/styled/dist/emotion-styled.development.cjs.js +7 -6
  313. package/node_modules/@emotion/styled/dist/emotion-styled.development.edge-light.cjs.js +7 -6
  314. package/node_modules/@emotion/styled/dist/emotion-styled.development.edge-light.esm.js +7 -6
  315. package/node_modules/@emotion/styled/dist/emotion-styled.development.esm.js +7 -6
  316. package/node_modules/@emotion/styled/dist/emotion-styled.edge-light.cjs.js +7 -6
  317. package/node_modules/@emotion/styled/dist/emotion-styled.edge-light.esm.js +7 -6
  318. package/node_modules/@emotion/styled/dist/emotion-styled.esm.js +7 -6
  319. package/node_modules/@emotion/styled/dist/emotion-styled.umd.min.js +1 -1
  320. package/node_modules/@emotion/styled/dist/emotion-styled.umd.min.js.map +1 -1
  321. package/node_modules/@emotion/styled/package.json +13 -14
  322. package/node_modules/@emotion/styled/src/{base.js → base.tsx} +56 -42
  323. package/node_modules/@emotion/styled/{types/index.d.ts → src/index.ts} +21 -12
  324. package/node_modules/@emotion/styled/{dist/declarations/types/jsx-namespace.d.ts → src/jsx-namespace.ts} +3 -5
  325. package/node_modules/@emotion/styled/src/{tags.js → tags.ts} +1 -1
  326. package/node_modules/@emotion/styled/{types/base.d.ts → src/types.ts} +8 -15
  327. package/node_modules/@emotion/styled/src/utils.ts +38 -0
  328. package/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/declarations/src/index.d.ts +3 -0
  329. package/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.d.mts +2 -0
  330. package/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.d.ts +2 -0
  331. package/node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json +7 -6
  332. package/node_modules/@emotion/use-insertion-effect-with-fallbacks/src/index.ts +21 -0
  333. package/node_modules/@jridgewell/gen-mapping/LICENSE +1 -1
  334. package/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs +256 -194
  335. package/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs.map +6 -1
  336. package/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js +339 -239
  337. package/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js.map +6 -1
  338. package/node_modules/@jridgewell/gen-mapping/package.json +46 -51
  339. package/node_modules/@jridgewell/gen-mapping/src/gen-mapping.ts +614 -0
  340. package/node_modules/@jridgewell/gen-mapping/src/set-array.ts +82 -0
  341. package/node_modules/@jridgewell/gen-mapping/src/sourcemap-segment.ts +16 -0
  342. package/node_modules/@jridgewell/gen-mapping/src/types.ts +61 -0
  343. package/node_modules/@jridgewell/gen-mapping/{dist/types/gen-mapping.d.ts → types/gen-mapping.d.cts} +3 -2
  344. package/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.cts.map +1 -0
  345. package/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.mts +89 -0
  346. package/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.mts.map +1 -0
  347. package/node_modules/@jridgewell/{set-array/dist/types/set-array.d.ts → gen-mapping/types/set-array.d.cts} +2 -1
  348. package/node_modules/@jridgewell/gen-mapping/types/set-array.d.cts.map +1 -0
  349. package/node_modules/@jridgewell/gen-mapping/types/set-array.d.mts +33 -0
  350. package/node_modules/@jridgewell/gen-mapping/types/set-array.d.mts.map +1 -0
  351. package/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.cts +13 -0
  352. package/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.cts.map +1 -0
  353. package/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.mts +13 -0
  354. package/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.mts.map +1 -0
  355. package/node_modules/@jridgewell/gen-mapping/{dist/types/types.d.ts → types/types.d.cts} +10 -2
  356. package/node_modules/@jridgewell/gen-mapping/types/types.d.cts.map +1 -0
  357. package/node_modules/@jridgewell/gen-mapping/types/types.d.mts +44 -0
  358. package/node_modules/@jridgewell/gen-mapping/types/types.d.mts.map +1 -0
  359. package/node_modules/@jridgewell/trace-mapping/LICENSE +1 -1
  360. package/node_modules/@jridgewell/trace-mapping/README.md +160 -69
  361. package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +417 -493
  362. package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +6 -1
  363. package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +546 -588
  364. package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +6 -1
  365. package/node_modules/@jridgewell/trace-mapping/package.json +43 -49
  366. package/node_modules/@jridgewell/trace-mapping/src/binary-search.ts +115 -0
  367. package/node_modules/@jridgewell/trace-mapping/src/by-source.ts +65 -0
  368. package/node_modules/@jridgewell/trace-mapping/src/flatten-map.ts +192 -0
  369. package/node_modules/@jridgewell/trace-mapping/src/resolve.ts +16 -0
  370. package/node_modules/@jridgewell/trace-mapping/src/sort.ts +45 -0
  371. package/node_modules/@jridgewell/trace-mapping/src/sourcemap-segment.ts +23 -0
  372. package/node_modules/@jridgewell/trace-mapping/src/strip-filename.ts +8 -0
  373. package/node_modules/@jridgewell/trace-mapping/src/trace-mapping.ts +504 -0
  374. package/node_modules/@jridgewell/trace-mapping/src/types.ts +114 -0
  375. package/node_modules/@jridgewell/trace-mapping/{dist/types/binary-search.d.ts → types/binary-search.d.cts} +2 -1
  376. package/node_modules/@jridgewell/trace-mapping/types/binary-search.d.cts.map +1 -0
  377. package/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts +33 -0
  378. package/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts.map +1 -0
  379. package/node_modules/@jridgewell/trace-mapping/types/by-source.d.cts +8 -0
  380. package/node_modules/@jridgewell/trace-mapping/types/by-source.d.cts.map +1 -0
  381. package/node_modules/@jridgewell/trace-mapping/{dist/types/by-source.d.ts → types/by-source.d.mts} +3 -2
  382. package/node_modules/@jridgewell/trace-mapping/types/by-source.d.mts.map +1 -0
  383. package/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.cts +9 -0
  384. package/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.cts.map +1 -0
  385. package/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts +9 -0
  386. package/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts.map +1 -0
  387. package/node_modules/@jridgewell/trace-mapping/types/resolve.d.cts +4 -0
  388. package/node_modules/@jridgewell/trace-mapping/types/resolve.d.cts.map +1 -0
  389. package/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts +4 -0
  390. package/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts.map +1 -0
  391. package/node_modules/@jridgewell/trace-mapping/types/sort.d.cts +3 -0
  392. package/node_modules/@jridgewell/trace-mapping/types/sort.d.cts.map +1 -0
  393. package/node_modules/@jridgewell/trace-mapping/{dist/types/sort.d.ts → types/sort.d.mts} +2 -1
  394. package/node_modules/@jridgewell/trace-mapping/types/sort.d.mts.map +1 -0
  395. package/node_modules/@jridgewell/trace-mapping/{dist/types/sourcemap-segment.d.ts → types/sourcemap-segment.d.cts} +1 -0
  396. package/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.cts.map +1 -0
  397. package/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts +17 -0
  398. package/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts.map +1 -0
  399. package/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.cts +5 -0
  400. package/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.cts.map +1 -0
  401. package/node_modules/@jridgewell/trace-mapping/{dist/types/strip-filename.d.ts → types/strip-filename.d.mts} +1 -0
  402. package/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.mts.map +1 -0
  403. package/node_modules/@jridgewell/trace-mapping/{dist/types/trace-mapping.d.ts → types/trace-mapping.d.cts} +7 -6
  404. package/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.cts.map +1 -0
  405. package/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts +80 -0
  406. package/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts.map +1 -0
  407. package/node_modules/@jridgewell/trace-mapping/{dist/types/types.d.ts → types/types.d.cts} +10 -2
  408. package/node_modules/@jridgewell/trace-mapping/types/types.d.cts.map +1 -0
  409. package/node_modules/@jridgewell/trace-mapping/types/types.d.mts +107 -0
  410. package/node_modules/@jridgewell/trace-mapping/types/types.d.mts.map +1 -0
  411. package/node_modules/@mui/core-downloads-tracker/package.json +1 -1
  412. package/node_modules/@mui/material/Accordion/Accordion.d.ts +32 -15
  413. package/node_modules/@mui/material/Accordion/Accordion.js +18 -6
  414. package/node_modules/@mui/material/AccordionActions/AccordionActions.d.ts +2 -2
  415. package/node_modules/@mui/material/AccordionDetails/AccordionDetails.d.ts +2 -2
  416. package/node_modules/@mui/material/AccordionSummary/AccordionSummary.d.ts +62 -7
  417. package/node_modules/@mui/material/AccordionSummary/AccordionSummary.js +67 -16
  418. package/node_modules/@mui/material/Alert/Alert.d.ts +6 -18
  419. package/node_modules/@mui/material/AlertTitle/AlertTitle.d.ts +3 -3
  420. package/node_modules/@mui/material/AppBar/AppBar.d.ts +4 -4
  421. package/node_modules/@mui/material/Autocomplete/Autocomplete.d.ts +2 -2
  422. package/node_modules/@mui/material/Autocomplete/Autocomplete.js +1 -1
  423. package/node_modules/@mui/material/Avatar/Avatar.d.ts +2 -2
  424. package/node_modules/@mui/material/AvatarGroup/AvatarGroup.d.ts +2 -2
  425. package/node_modules/@mui/material/AvatarGroup/AvatarGroup.js +10 -2
  426. package/node_modules/@mui/material/Backdrop/Backdrop.d.ts +17 -15
  427. package/node_modules/@mui/material/Badge/Badge.d.ts +35 -31
  428. package/node_modules/@mui/material/Badge/Badge.js +27 -20
  429. package/node_modules/@mui/material/BottomNavigation/BottomNavigation.d.ts +2 -2
  430. package/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.d.ts +43 -6
  431. package/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.js +53 -9
  432. package/node_modules/@mui/material/Box/Box.d.ts +2 -2
  433. package/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed.js +3 -1
  434. package/node_modules/@mui/material/Breadcrumbs/Breadcrumbs.d.ts +3 -3
  435. package/node_modules/@mui/material/Button/Button.d.ts +4 -4
  436. package/node_modules/@mui/material/Button/Button.js +3 -3
  437. package/node_modules/@mui/material/ButtonBase/ButtonBase.d.ts +2 -2
  438. package/node_modules/@mui/material/ButtonGroup/ButtonGroup.d.ts +2 -2
  439. package/node_modules/@mui/material/CHANGELOG.md +345 -0
  440. package/node_modules/@mui/material/Card/Card.d.ts +4 -4
  441. package/node_modules/@mui/material/CardActionArea/CardActionArea.d.ts +43 -6
  442. package/node_modules/@mui/material/CardActionArea/CardActionArea.js +47 -8
  443. package/node_modules/@mui/material/CardActions/CardActions.d.ts +2 -2
  444. package/node_modules/@mui/material/CardContent/CardContent.d.ts +2 -2
  445. package/node_modules/@mui/material/CardHeader/CardHeader.d.ts +6 -22
  446. package/node_modules/@mui/material/CardMedia/CardMedia.d.ts +2 -2
  447. package/node_modules/@mui/material/Checkbox/Checkbox.d.ts +49 -13
  448. package/node_modules/@mui/material/Checkbox/Checkbox.js +51 -21
  449. package/node_modules/@mui/material/Chip/Chip.d.ts +2 -2
  450. package/node_modules/@mui/material/CircularProgress/CircularProgress.d.ts +7 -3
  451. package/node_modules/@mui/material/ClickAwayListener/ClickAwayListener.d.ts +3 -3
  452. package/node_modules/@mui/material/ClickAwayListener/ClickAwayListener.js +3 -3
  453. package/node_modules/@mui/material/Collapse/Collapse.d.ts +5 -5
  454. package/node_modules/@mui/material/Container/Container.d.ts +2 -2
  455. package/node_modules/@mui/material/CssBaseline/CssBaseline.d.ts +2 -2
  456. package/node_modules/@mui/material/Dialog/Dialog.d.ts +7 -7
  457. package/node_modules/@mui/material/Dialog/dialogClasses.d.ts +6 -2
  458. package/node_modules/@mui/material/DialogActions/DialogActions.d.ts +2 -2
  459. package/node_modules/@mui/material/DialogContent/DialogContent.d.ts +2 -2
  460. package/node_modules/@mui/material/DialogContentText/DialogContentText.d.ts +3 -3
  461. package/node_modules/@mui/material/DialogTitle/DialogTitle.d.ts +3 -3
  462. package/node_modules/@mui/material/Divider/Divider.d.ts +3 -3
  463. package/node_modules/@mui/material/Drawer/Drawer.d.ts +95 -4
  464. package/node_modules/@mui/material/Drawer/Drawer.js +108 -36
  465. package/node_modules/@mui/material/Fab/Fab.d.ts +3 -3
  466. package/node_modules/@mui/material/Fade/Fade.d.ts +3 -3
  467. package/node_modules/@mui/material/FilledInput/FilledInput.d.ts +3 -3
  468. package/node_modules/@mui/material/FormControl/FormControl.d.ts +6 -6
  469. package/node_modules/@mui/material/FormControlLabel/FormControlLabel.d.ts +4 -4
  470. package/node_modules/@mui/material/FormGroup/FormGroup.d.ts +3 -3
  471. package/node_modules/@mui/material/FormHelperText/FormHelperText.d.ts +2 -2
  472. package/node_modules/@mui/material/FormLabel/FormLabel.d.ts +4 -4
  473. package/node_modules/@mui/material/GlobalStyles/GlobalStyles.d.ts +2 -2
  474. package/node_modules/@mui/material/Grid/Grid.d.ts +2 -2
  475. package/node_modules/@mui/material/Grid2/Grid2.d.ts +2 -2
  476. package/node_modules/@mui/material/Grid2/Grid2.js +2 -2
  477. package/node_modules/@mui/material/Grow/Grow.d.ts +5 -5
  478. package/node_modules/@mui/material/Hidden/Hidden.d.ts +2 -2
  479. package/node_modules/@mui/material/Icon/Icon.d.ts +3 -3
  480. package/node_modules/@mui/material/IconButton/IconButton.d.ts +4 -4
  481. package/node_modules/@mui/material/IconButton/IconButton.js +3 -3
  482. package/node_modules/@mui/material/ImageList/ImageList.d.ts +2 -2
  483. package/node_modules/@mui/material/ImageListItem/ImageListItem.d.ts +2 -2
  484. package/node_modules/@mui/material/ImageListItemBar/ImageListItemBar.d.ts +2 -2
  485. package/node_modules/@mui/material/Input/Input.d.ts +3 -3
  486. package/node_modules/@mui/material/InputAdornment/InputAdornment.d.ts +2 -2
  487. package/node_modules/@mui/material/InputBase/InputBase.d.ts +2 -2
  488. package/node_modules/@mui/material/InputBase/inputBaseClasses.d.ts +15 -6
  489. package/node_modules/@mui/material/InputLabel/InputLabel.d.ts +3 -3
  490. package/node_modules/@mui/material/LinearProgress/LinearProgress.d.ts +7 -3
  491. package/node_modules/@mui/material/Link/Link.d.ts +4 -4
  492. package/node_modules/@mui/material/List/List.d.ts +3 -3
  493. package/node_modules/@mui/material/ListItem/ListItem.d.ts +3 -3
  494. package/node_modules/@mui/material/ListItemAvatar/ListItemAvatar.d.ts +2 -2
  495. package/node_modules/@mui/material/ListItemButton/ListItemButton.d.ts +3 -3
  496. package/node_modules/@mui/material/ListItemIcon/ListItemIcon.d.ts +2 -2
  497. package/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -2
  498. package/node_modules/@mui/material/ListItemText/ListItemText.d.ts +12 -2
  499. package/node_modules/@mui/material/ListItemText/ListItemText.js +14 -5
  500. package/node_modules/@mui/material/ListSubheader/ListSubheader.d.ts +2 -2
  501. package/node_modules/@mui/material/Menu/Menu.d.ts +92 -5
  502. package/node_modules/@mui/material/Menu/Menu.js +58 -19
  503. package/node_modules/@mui/material/MenuItem/MenuItem.d.ts +3 -3
  504. package/node_modules/@mui/material/MenuList/MenuList.d.ts +4 -4
  505. package/node_modules/@mui/material/MobileStepper/MobileStepper.d.ts +72 -4
  506. package/node_modules/@mui/material/MobileStepper/MobileStepper.js +76 -18
  507. package/node_modules/@mui/material/Modal/Modal.d.ts +7 -7
  508. package/node_modules/@mui/material/Modal/Modal.js +9 -10
  509. package/node_modules/@mui/material/NativeSelect/NativeSelect.d.ts +3 -3
  510. package/node_modules/@mui/material/NativeSelect/NativeSelectInput.js +6 -2
  511. package/node_modules/@mui/material/NoSsr/NoSsr.d.ts +2 -2
  512. package/node_modules/@mui/material/NoSsr/NoSsr.js +2 -2
  513. package/node_modules/@mui/material/OutlinedInput/NotchedOutline.js +2 -0
  514. package/node_modules/@mui/material/OutlinedInput/OutlinedInput.d.ts +32 -5
  515. package/node_modules/@mui/material/OutlinedInput/OutlinedInput.js +30 -10
  516. package/node_modules/@mui/material/OverridableComponent/index.d.ts +41 -0
  517. package/node_modules/@mui/material/OverridableComponent/index.js +1 -0
  518. package/node_modules/@mui/material/OverridableComponent/package.json +6 -0
  519. package/node_modules/@mui/material/Pagination/Pagination.d.ts +2 -2
  520. package/node_modules/@mui/material/PaginationItem/PaginationItem.d.ts +3 -3
  521. package/node_modules/@mui/material/Paper/Paper.d.ts +3 -3
  522. package/node_modules/@mui/material/PigmentContainer/PigmentContainer.d.ts +2 -2
  523. package/node_modules/@mui/material/PigmentContainer/PigmentContainer.js +2 -2
  524. package/node_modules/@mui/material/PigmentGrid/PigmentGrid.d.ts +2 -2
  525. package/node_modules/@mui/material/PigmentGrid/PigmentGrid.js +2 -2
  526. package/node_modules/@mui/material/PigmentHidden/PigmentHidden.d.ts +2 -2
  527. package/node_modules/@mui/material/PigmentHidden/PigmentHidden.js +2 -2
  528. package/node_modules/@mui/material/PigmentStack/PigmentStack.d.ts +2 -2
  529. package/node_modules/@mui/material/PigmentStack/PigmentStack.js +2 -2
  530. package/node_modules/@mui/material/Popover/Popover.d.ts +65 -12
  531. package/node_modules/@mui/material/Popover/Popover.js +79 -52
  532. package/node_modules/@mui/material/Popper/Popper.d.ts +4 -4
  533. package/node_modules/@mui/material/Popper/Popper.js +4 -4
  534. package/node_modules/@mui/material/Portal/Portal.d.ts +2 -2
  535. package/node_modules/@mui/material/Portal/Portal.js +2 -2
  536. package/node_modules/@mui/material/README.md +4 -2
  537. package/node_modules/@mui/material/Radio/Radio.d.ts +48 -4
  538. package/node_modules/@mui/material/Radio/Radio.js +61 -16
  539. package/node_modules/@mui/material/Radio/RadioButtonIcon.js +7 -2
  540. package/node_modules/@mui/material/RadioGroup/RadioGroup.d.ts +3 -3
  541. package/node_modules/@mui/material/Rating/Rating.d.ts +61 -3
  542. package/node_modules/@mui/material/Rating/Rating.js +131 -45
  543. package/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline.d.ts +2 -2
  544. package/node_modules/@mui/material/Select/Select.d.ts +3 -3
  545. package/node_modules/@mui/material/Select/SelectInput.js +8 -8
  546. package/node_modules/@mui/material/Skeleton/Skeleton.d.ts +2 -2
  547. package/node_modules/@mui/material/Slide/Slide.d.ts +4 -4
  548. package/node_modules/@mui/material/Slider/Slider.d.ts +2 -2
  549. package/node_modules/@mui/material/Slider/sliderClasses.d.ts +21 -7
  550. package/node_modules/@mui/material/Slider/useSlider.js +2 -2
  551. package/node_modules/@mui/material/Snackbar/Snackbar.d.ts +81 -4
  552. package/node_modules/@mui/material/Snackbar/Snackbar.js +116 -32
  553. package/node_modules/@mui/material/SnackbarContent/SnackbarContent.d.ts +3 -3
  554. package/node_modules/@mui/material/SpeedDial/SpeedDial.d.ts +20 -8
  555. package/node_modules/@mui/material/SpeedDial/SpeedDial.js +40 -11
  556. package/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.d.ts +85 -4
  557. package/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.js +109 -31
  558. package/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon.d.ts +2 -2
  559. package/node_modules/@mui/material/Stack/Stack.d.ts +2 -2
  560. package/node_modules/@mui/material/Step/Step.d.ts +2 -2
  561. package/node_modules/@mui/material/StepButton/StepButton.d.ts +3 -3
  562. package/node_modules/@mui/material/StepConnector/StepConnector.d.ts +2 -2
  563. package/node_modules/@mui/material/StepContent/StepContent.d.ts +4 -4
  564. package/node_modules/@mui/material/StepIcon/StepIcon.d.ts +3 -3
  565. package/node_modules/@mui/material/StepLabel/StepLabel.d.ts +21 -3
  566. package/node_modules/@mui/material/StepLabel/StepLabel.js +14 -5
  567. package/node_modules/@mui/material/Stepper/Stepper.d.ts +2 -2
  568. package/node_modules/@mui/material/SvgIcon/SvgIcon.d.ts +3 -3
  569. package/node_modules/@mui/material/SwipeableDrawer/SwipeArea.js +1 -0
  570. package/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.d.ts +31 -5
  571. package/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.js +60 -13
  572. package/node_modules/@mui/material/Switch/Switch.d.ts +78 -5
  573. package/node_modules/@mui/material/Switch/Switch.js +73 -9
  574. package/node_modules/@mui/material/Tab/Tab.d.ts +3 -3
  575. package/node_modules/@mui/material/TabScrollButton/TabScrollButton.d.ts +2 -2
  576. package/node_modules/@mui/material/Table/Table.d.ts +2 -2
  577. package/node_modules/@mui/material/TableBody/TableBody.d.ts +2 -2
  578. package/node_modules/@mui/material/TableCell/TableCell.d.ts +2 -2
  579. package/node_modules/@mui/material/TableContainer/TableContainer.d.ts +2 -2
  580. package/node_modules/@mui/material/TableFooter/TableFooter.d.ts +2 -2
  581. package/node_modules/@mui/material/TableHead/TableHead.d.ts +2 -2
  582. package/node_modules/@mui/material/TablePagination/TablePagination.d.ts +4 -4
  583. package/node_modules/@mui/material/TableRow/TableRow.d.ts +2 -2
  584. package/node_modules/@mui/material/TableSortLabel/TableSortLabel.d.ts +3 -3
  585. package/node_modules/@mui/material/Tabs/Tabs.d.ts +131 -31
  586. package/node_modules/@mui/material/Tabs/Tabs.js +124 -52
  587. package/node_modules/@mui/material/Tabs/tabsClasses.d.ts +4 -0
  588. package/node_modules/@mui/material/Tabs/tabsClasses.js +1 -1
  589. package/node_modules/@mui/material/TextField/TextField.d.ts +40 -10
  590. package/node_modules/@mui/material/TextField/TextField.js +22 -11
  591. package/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.d.ts +2 -2
  592. package/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js +68 -47
  593. package/node_modules/@mui/material/ToggleButton/ToggleButton.d.ts +3 -3
  594. package/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -2
  595. package/node_modules/@mui/material/Toolbar/Toolbar.d.ts +2 -2
  596. package/node_modules/@mui/material/Tooltip/Tooltip.d.ts +23 -27
  597. package/node_modules/@mui/material/Tooltip/Tooltip.js +1 -1
  598. package/node_modules/@mui/material/Typography/Typography.d.ts +3 -3
  599. package/node_modules/@mui/material/Zoom/Zoom.d.ts +3 -3
  600. package/node_modules/@mui/material/index.js +1 -1
  601. package/node_modules/@mui/material/internal/SwitchBase.d.ts +35 -1
  602. package/node_modules/@mui/material/internal/SwitchBase.js +88 -31
  603. package/node_modules/@mui/material/modern/Accordion/Accordion.js +18 -6
  604. package/node_modules/@mui/material/modern/AccordionSummary/AccordionSummary.js +67 -16
  605. package/node_modules/@mui/material/modern/Autocomplete/Autocomplete.js +1 -1
  606. package/node_modules/@mui/material/modern/AvatarGroup/AvatarGroup.js +10 -2
  607. package/node_modules/@mui/material/modern/Badge/Badge.js +27 -20
  608. package/node_modules/@mui/material/modern/BottomNavigationAction/BottomNavigationAction.js +53 -9
  609. package/node_modules/@mui/material/modern/Breadcrumbs/BreadcrumbCollapsed.js +3 -1
  610. package/node_modules/@mui/material/modern/Button/Button.js +3 -3
  611. package/node_modules/@mui/material/modern/CardActionArea/CardActionArea.js +47 -8
  612. package/node_modules/@mui/material/modern/Checkbox/Checkbox.js +51 -21
  613. package/node_modules/@mui/material/modern/ClickAwayListener/ClickAwayListener.js +3 -3
  614. package/node_modules/@mui/material/modern/Drawer/Drawer.js +108 -36
  615. package/node_modules/@mui/material/modern/Grid2/Grid2.js +2 -2
  616. package/node_modules/@mui/material/modern/IconButton/IconButton.js +3 -3
  617. package/node_modules/@mui/material/modern/ListItemText/ListItemText.js +14 -5
  618. package/node_modules/@mui/material/modern/Menu/Menu.js +58 -19
  619. package/node_modules/@mui/material/modern/MobileStepper/MobileStepper.js +76 -18
  620. package/node_modules/@mui/material/modern/Modal/Modal.js +9 -10
  621. package/node_modules/@mui/material/modern/NativeSelect/NativeSelectInput.js +6 -2
  622. package/node_modules/@mui/material/modern/NoSsr/NoSsr.js +2 -2
  623. package/node_modules/@mui/material/modern/OutlinedInput/NotchedOutline.js +2 -0
  624. package/node_modules/@mui/material/modern/OutlinedInput/OutlinedInput.js +30 -10
  625. package/node_modules/@mui/material/modern/OverridableComponent/index.js +1 -0
  626. package/node_modules/@mui/material/modern/PigmentContainer/PigmentContainer.js +2 -2
  627. package/node_modules/@mui/material/modern/PigmentGrid/PigmentGrid.js +2 -2
  628. package/node_modules/@mui/material/modern/PigmentHidden/PigmentHidden.js +2 -2
  629. package/node_modules/@mui/material/modern/PigmentStack/PigmentStack.js +2 -2
  630. package/node_modules/@mui/material/modern/Popover/Popover.js +79 -52
  631. package/node_modules/@mui/material/modern/Popper/Popper.js +4 -4
  632. package/node_modules/@mui/material/modern/Portal/Portal.js +2 -2
  633. package/node_modules/@mui/material/modern/Radio/Radio.js +61 -16
  634. package/node_modules/@mui/material/modern/Radio/RadioButtonIcon.js +7 -2
  635. package/node_modules/@mui/material/modern/Rating/Rating.js +131 -45
  636. package/node_modules/@mui/material/modern/Select/SelectInput.js +8 -8
  637. package/node_modules/@mui/material/modern/Slider/useSlider.js +2 -2
  638. package/node_modules/@mui/material/modern/Snackbar/Snackbar.js +116 -32
  639. package/node_modules/@mui/material/modern/SpeedDial/SpeedDial.js +40 -11
  640. package/node_modules/@mui/material/modern/SpeedDialAction/SpeedDialAction.js +109 -31
  641. package/node_modules/@mui/material/modern/StepLabel/StepLabel.js +14 -5
  642. package/node_modules/@mui/material/modern/SwipeableDrawer/SwipeArea.js +1 -0
  643. package/node_modules/@mui/material/modern/SwipeableDrawer/SwipeableDrawer.js +60 -13
  644. package/node_modules/@mui/material/modern/Switch/Switch.js +73 -9
  645. package/node_modules/@mui/material/modern/Tabs/Tabs.js +124 -52
  646. package/node_modules/@mui/material/modern/Tabs/tabsClasses.js +1 -1
  647. package/node_modules/@mui/material/modern/TextField/TextField.js +22 -11
  648. package/node_modules/@mui/material/modern/TextareaAutosize/TextareaAutosize.js +68 -47
  649. package/node_modules/@mui/material/modern/Tooltip/Tooltip.js +1 -1
  650. package/node_modules/@mui/material/modern/index.js +1 -1
  651. package/node_modules/@mui/material/modern/internal/SwitchBase.js +88 -31
  652. package/node_modules/@mui/material/modern/styles/ThemeProvider.js +20 -9
  653. package/node_modules/@mui/material/modern/styles/components.js +1 -0
  654. package/node_modules/@mui/material/modern/styles/createThemeNoVars.js +5 -2
  655. package/node_modules/@mui/material/modern/styles/overrides.js +1 -0
  656. package/node_modules/@mui/material/modern/styles/props.js +1 -0
  657. package/node_modules/@mui/material/modern/styles/shouldSkipGeneratingVar.js +1 -1
  658. package/node_modules/@mui/material/modern/styles/variants.js +1 -0
  659. package/node_modules/@mui/material/modern/useAutocomplete/useAutocomplete.js +16 -14
  660. package/node_modules/@mui/material/modern/useScrollTrigger/useScrollTrigger.js +3 -0
  661. package/node_modules/@mui/material/modern/utils/mergeSlotProps.js +10 -3
  662. package/node_modules/@mui/material/modern/version/index.js +3 -3
  663. package/node_modules/@mui/material/node/Accordion/Accordion.js +18 -6
  664. package/node_modules/@mui/material/node/AccordionSummary/AccordionSummary.js +67 -16
  665. package/node_modules/@mui/material/node/Autocomplete/Autocomplete.js +1 -1
  666. package/node_modules/@mui/material/node/AvatarGroup/AvatarGroup.js +10 -2
  667. package/node_modules/@mui/material/node/Badge/Badge.js +27 -20
  668. package/node_modules/@mui/material/node/BottomNavigationAction/BottomNavigationAction.js +53 -9
  669. package/node_modules/@mui/material/node/Breadcrumbs/BreadcrumbCollapsed.js +3 -1
  670. package/node_modules/@mui/material/node/Button/Button.js +3 -3
  671. package/node_modules/@mui/material/node/CardActionArea/CardActionArea.js +47 -8
  672. package/node_modules/@mui/material/node/Checkbox/Checkbox.js +51 -21
  673. package/node_modules/@mui/material/node/ClickAwayListener/ClickAwayListener.js +3 -3
  674. package/node_modules/@mui/material/node/Drawer/Drawer.js +108 -36
  675. package/node_modules/@mui/material/node/Grid2/Grid2.js +2 -2
  676. package/node_modules/@mui/material/node/IconButton/IconButton.js +3 -3
  677. package/node_modules/@mui/material/node/ListItemText/ListItemText.js +14 -5
  678. package/node_modules/@mui/material/node/Menu/Menu.js +58 -19
  679. package/node_modules/@mui/material/node/MobileStepper/MobileStepper.js +76 -18
  680. package/node_modules/@mui/material/node/Modal/Modal.js +9 -10
  681. package/node_modules/@mui/material/node/NativeSelect/NativeSelectInput.js +6 -2
  682. package/node_modules/@mui/material/node/NoSsr/NoSsr.js +2 -2
  683. package/node_modules/@mui/material/node/OutlinedInput/NotchedOutline.js +2 -0
  684. package/node_modules/@mui/material/node/OutlinedInput/OutlinedInput.js +30 -10
  685. package/node_modules/@mui/material/node/OverridableComponent/index.js +5 -0
  686. package/node_modules/@mui/material/node/PigmentContainer/PigmentContainer.js +2 -2
  687. package/node_modules/@mui/material/node/PigmentGrid/PigmentGrid.js +2 -2
  688. package/node_modules/@mui/material/node/PigmentHidden/PigmentHidden.js +2 -2
  689. package/node_modules/@mui/material/node/PigmentStack/PigmentStack.js +2 -2
  690. package/node_modules/@mui/material/node/Popover/Popover.js +79 -52
  691. package/node_modules/@mui/material/node/Popper/Popper.js +4 -4
  692. package/node_modules/@mui/material/node/Portal/Portal.js +2 -2
  693. package/node_modules/@mui/material/node/Radio/Radio.js +61 -16
  694. package/node_modules/@mui/material/node/Radio/RadioButtonIcon.js +7 -2
  695. package/node_modules/@mui/material/node/Rating/Rating.js +132 -46
  696. package/node_modules/@mui/material/node/Select/SelectInput.js +8 -8
  697. package/node_modules/@mui/material/node/Slider/useSlider.js +2 -2
  698. package/node_modules/@mui/material/node/Snackbar/Snackbar.js +116 -32
  699. package/node_modules/@mui/material/node/SpeedDial/SpeedDial.js +40 -11
  700. package/node_modules/@mui/material/node/SpeedDialAction/SpeedDialAction.js +109 -31
  701. package/node_modules/@mui/material/node/StepLabel/StepLabel.js +14 -5
  702. package/node_modules/@mui/material/node/SwipeableDrawer/SwipeArea.js +1 -0
  703. package/node_modules/@mui/material/node/SwipeableDrawer/SwipeableDrawer.js +60 -13
  704. package/node_modules/@mui/material/node/Switch/Switch.js +73 -9
  705. package/node_modules/@mui/material/node/Tabs/Tabs.js +124 -52
  706. package/node_modules/@mui/material/node/Tabs/tabsClasses.js +1 -1
  707. package/node_modules/@mui/material/node/TextField/TextField.js +22 -11
  708. package/node_modules/@mui/material/node/TextareaAutosize/TextareaAutosize.js +67 -46
  709. package/node_modules/@mui/material/node/Tooltip/Tooltip.js +1 -1
  710. package/node_modules/@mui/material/node/index.js +1 -1
  711. package/node_modules/@mui/material/node/internal/SwitchBase.js +88 -31
  712. package/node_modules/@mui/material/node/styles/ThemeProvider.js +20 -9
  713. package/node_modules/@mui/material/node/styles/components.js +5 -0
  714. package/node_modules/@mui/material/node/styles/createThemeNoVars.js +5 -2
  715. package/node_modules/@mui/material/node/styles/overrides.js +5 -0
  716. package/node_modules/@mui/material/node/styles/props.js +5 -0
  717. package/node_modules/@mui/material/node/styles/shouldSkipGeneratingVar.js +1 -1
  718. package/node_modules/@mui/material/node/styles/variants.js +5 -0
  719. package/node_modules/@mui/material/node/useAutocomplete/useAutocomplete.js +16 -14
  720. package/node_modules/@mui/material/node/useScrollTrigger/useScrollTrigger.js +3 -0
  721. package/node_modules/@mui/material/node/utils/mergeSlotProps.js +10 -3
  722. package/node_modules/@mui/material/node/version/index.js +3 -3
  723. package/node_modules/@mui/material/package.json +6 -6
  724. package/node_modules/@mui/material/styles/ThemeProvider.d.ts +6 -0
  725. package/node_modules/@mui/material/styles/ThemeProvider.js +20 -9
  726. package/node_modules/@mui/material/styles/ThemeProviderWithVars.d.ts +1 -0
  727. package/node_modules/@mui/material/styles/components.d.ts +590 -591
  728. package/node_modules/@mui/material/styles/components.js +1 -0
  729. package/node_modules/@mui/material/styles/createThemeNoVars.d.ts +2 -1
  730. package/node_modules/@mui/material/styles/createThemeNoVars.js +5 -2
  731. package/node_modules/@mui/material/styles/index.d.ts +1 -0
  732. package/node_modules/@mui/material/styles/overrides.d.ts +123 -142
  733. package/node_modules/@mui/material/styles/overrides.js +1 -0
  734. package/node_modules/@mui/material/styles/props.d.ts +120 -122
  735. package/node_modules/@mui/material/styles/props.js +1 -0
  736. package/node_modules/@mui/material/styles/shouldSkipGeneratingVar.js +1 -1
  737. package/node_modules/@mui/material/styles/variants.d.ts +7 -10
  738. package/node_modules/@mui/material/styles/variants.js +1 -0
  739. package/node_modules/@mui/material/useAutocomplete/useAutocomplete.d.ts +2 -2
  740. package/node_modules/@mui/material/useAutocomplete/useAutocomplete.js +16 -14
  741. package/node_modules/@mui/material/useScrollTrigger/useScrollTrigger.d.ts +1 -1
  742. package/node_modules/@mui/material/useScrollTrigger/useScrollTrigger.js +3 -0
  743. package/node_modules/@mui/material/utils/mergeSlotProps.js +10 -3
  744. package/node_modules/@mui/material/version/index.js +3 -3
  745. package/node_modules/@mui/private-theming/CHANGELOG.md +256 -0
  746. package/node_modules/@mui/private-theming/index.js +1 -1
  747. package/node_modules/@mui/private-theming/modern/index.js +1 -1
  748. package/node_modules/@mui/private-theming/node/index.js +1 -1
  749. package/node_modules/@mui/private-theming/package.json +2 -2
  750. package/node_modules/@mui/styled-engine/CHANGELOG.md +387 -0
  751. package/node_modules/@mui/styled-engine/README.md +2 -2
  752. package/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.d.ts +1 -0
  753. package/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +72 -18
  754. package/node_modules/@mui/styled-engine/index.js +1 -1
  755. package/node_modules/@mui/styled-engine/modern/StyledEngineProvider/StyledEngineProvider.js +72 -18
  756. package/node_modules/@mui/styled-engine/modern/index.js +1 -1
  757. package/node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js +72 -17
  758. package/node_modules/@mui/styled-engine/node/index.js +1 -1
  759. package/node_modules/@mui/styled-engine/package.json +1 -1
  760. package/node_modules/@mui/system/CHANGELOG.md +345 -0
  761. package/node_modules/@mui/system/GlobalStyles/GlobalStyles.js +25 -1
  762. package/node_modules/@mui/system/Grid/createGrid.js +4 -0
  763. package/node_modules/@mui/system/Grid/deleteLegacyGridProps.d.ts +11 -0
  764. package/node_modules/@mui/system/Grid/deleteLegacyGridProps.js +47 -0
  765. package/node_modules/@mui/system/README.md +6 -4
  766. package/node_modules/@mui/system/ThemeProvider/ThemeProvider.js +4 -2
  767. package/node_modules/@mui/system/ThemeProvider/useLayerOrder.d.ts +8 -0
  768. package/node_modules/@mui/system/ThemeProvider/useLayerOrder.js +58 -0
  769. package/node_modules/@mui/system/createBreakpoints/createBreakpoints.d.ts +5 -5
  770. package/node_modules/@mui/system/createStyled/createStyled.js +34 -21
  771. package/node_modules/@mui/system/cssContainerQueries/cssContainerQueries.d.ts +1 -2
  772. package/node_modules/@mui/system/cssVars/createCssVarsProvider.d.ts +6 -0
  773. package/node_modules/@mui/system/cssVars/createCssVarsProvider.js +7 -0
  774. package/node_modules/@mui/system/cssVars/index.d.ts +1 -0
  775. package/node_modules/@mui/system/cssVars/localStorageManager.d.ts +34 -0
  776. package/node_modules/@mui/system/cssVars/localStorageManager.js +57 -0
  777. package/node_modules/@mui/system/cssVars/useCurrentColorScheme.d.ts +2 -0
  778. package/node_modules/@mui/system/cssVars/useCurrentColorScheme.js +50 -69
  779. package/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +26 -2
  780. package/node_modules/@mui/system/esm/Grid/createGrid.js +4 -0
  781. package/node_modules/@mui/system/esm/Grid/deleteLegacyGridProps.js +41 -0
  782. package/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +5 -3
  783. package/node_modules/@mui/system/esm/ThemeProvider/useLayerOrder.js +52 -0
  784. package/node_modules/@mui/system/esm/createStyled/createStyled.js +35 -22
  785. package/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js +7 -0
  786. package/node_modules/@mui/system/esm/cssVars/localStorageManager.js +51 -0
  787. package/node_modules/@mui/system/esm/cssVars/useCurrentColorScheme.js +49 -69
  788. package/node_modules/@mui/system/esm/styleFunctionSx/AliasesCSSProperties.js +1 -0
  789. package/node_modules/@mui/system/esm/styleFunctionSx/OverwriteCSSProperties.js +1 -0
  790. package/node_modules/@mui/system/esm/styleFunctionSx/StandardCssProperties.js +1 -0
  791. package/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +9 -2
  792. package/node_modules/@mui/system/esm/useMediaQuery/useMediaQuery.js +3 -0
  793. package/node_modules/@mui/system/esm/version/index.js +3 -3
  794. package/node_modules/@mui/system/index.js +1 -1
  795. package/node_modules/@mui/system/modern/GlobalStyles/GlobalStyles.js +26 -2
  796. package/node_modules/@mui/system/modern/Grid/createGrid.js +4 -0
  797. package/node_modules/@mui/system/modern/Grid/deleteLegacyGridProps.js +41 -0
  798. package/node_modules/@mui/system/modern/ThemeProvider/ThemeProvider.js +5 -3
  799. package/node_modules/@mui/system/modern/ThemeProvider/useLayerOrder.js +52 -0
  800. package/node_modules/@mui/system/modern/createStyled/createStyled.js +35 -22
  801. package/node_modules/@mui/system/modern/cssVars/createCssVarsProvider.js +7 -0
  802. package/node_modules/@mui/system/modern/cssVars/localStorageManager.js +51 -0
  803. package/node_modules/@mui/system/modern/cssVars/useCurrentColorScheme.js +49 -69
  804. package/node_modules/@mui/system/modern/index.js +1 -1
  805. package/node_modules/@mui/system/modern/styleFunctionSx/AliasesCSSProperties.js +1 -0
  806. package/node_modules/@mui/system/modern/styleFunctionSx/OverwriteCSSProperties.js +1 -0
  807. package/node_modules/@mui/system/modern/styleFunctionSx/StandardCssProperties.js +1 -0
  808. package/node_modules/@mui/system/modern/styleFunctionSx/styleFunctionSx.js +9 -2
  809. package/node_modules/@mui/system/modern/useMediaQuery/useMediaQuery.js +3 -0
  810. package/node_modules/@mui/system/modern/version/index.js +3 -3
  811. package/node_modules/@mui/system/package.json +5 -5
  812. package/node_modules/@mui/system/styleFunctionSx/AliasesCSSProperties.d.ts +266 -267
  813. package/node_modules/@mui/system/styleFunctionSx/AliasesCSSProperties.js +5 -0
  814. package/node_modules/@mui/system/styleFunctionSx/OverwriteCSSProperties.d.ts +51 -52
  815. package/node_modules/@mui/system/styleFunctionSx/OverwriteCSSProperties.js +5 -0
  816. package/node_modules/@mui/system/styleFunctionSx/StandardCssProperties.d.ts +0 -1
  817. package/node_modules/@mui/system/styleFunctionSx/StandardCssProperties.js +5 -0
  818. package/node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js +9 -2
  819. package/node_modules/@mui/system/useMediaQuery/useMediaQuery.js +3 -0
  820. package/node_modules/@mui/system/version/index.js +3 -3
  821. package/node_modules/@mui/types/package.json +1 -1
  822. package/node_modules/@mui/utils/CHANGELOG.md +256 -0
  823. package/node_modules/@mui/utils/esm/useForkRef/useForkRef.js +32 -12
  824. package/node_modules/@mui/utils/index.js +1 -1
  825. package/node_modules/@mui/utils/modern/index.js +1 -1
  826. package/node_modules/@mui/utils/modern/useForkRef/useForkRef.js +32 -12
  827. package/node_modules/@mui/utils/package.json +3 -3
  828. package/node_modules/@mui/utils/useForkRef/useForkRef.d.ts +1 -2
  829. package/node_modules/@mui/utils/useForkRef/useForkRef.js +32 -13
  830. package/package.json +24 -24
  831. package/node_modules/@babel/parser/index.cjs +0 -5
  832. package/node_modules/@babel/traverse/lib/scope/traverseForScope.js +0 -68
  833. package/node_modules/@babel/traverse/lib/scope/traverseForScope.js.map +0 -1
  834. package/node_modules/@babel/traverse/node_modules/globals/globals.json +0 -1563
  835. package/node_modules/@babel/traverse/node_modules/globals/index.js +0 -2
  836. package/node_modules/@babel/traverse/node_modules/globals/license +0 -9
  837. package/node_modules/@babel/traverse/node_modules/globals/package.json +0 -41
  838. package/node_modules/@babel/traverse/node_modules/globals/readme.md +0 -41
  839. package/node_modules/@emotion/cache/dist/declarations/types/index.d.ts +0 -45
  840. package/node_modules/@emotion/cache/src/index.d.ts +0 -2
  841. package/node_modules/@emotion/cache/types/index.d.ts +0 -45
  842. package/node_modules/@emotion/react/dist/declarations/dist/emotion-react.cjs.d.ts +0 -2
  843. package/node_modules/@emotion/react/dist/declarations/types/helper.d.ts +0 -14
  844. package/node_modules/@emotion/react/dist/declarations/types/index.d.ts +0 -115
  845. package/node_modules/@emotion/react/dist/declarations/types/jsx-dev-runtime.d.ts +0 -1
  846. package/node_modules/@emotion/react/dist/declarations/types/jsx-namespace.d.ts +0 -102
  847. package/node_modules/@emotion/react/dist/declarations/types/jsx-runtime.d.ts +0 -1
  848. package/node_modules/@emotion/react/dist/declarations/types/theming.d.ts +0 -31
  849. package/node_modules/@emotion/react/src/_isolated-hnrs.d.ts +0 -3
  850. package/node_modules/@emotion/react/src/css.js +0 -8
  851. package/node_modules/@emotion/react/src/global.js +0 -145
  852. package/node_modules/@emotion/react/src/index.d.ts +0 -1
  853. package/node_modules/@emotion/react/src/jsx-dev-runtime.d.ts +0 -1
  854. package/node_modules/@emotion/react/src/jsx-runtime.d.ts +0 -1
  855. package/node_modules/@emotion/react/src/jsx-runtime.js +0 -21
  856. package/node_modules/@emotion/react/src/jsx.js +0 -25
  857. package/node_modules/@emotion/react/src/keyframes.js +0 -23
  858. package/node_modules/@emotion/react/types/index.d.ts +0 -115
  859. package/node_modules/@emotion/react/types/jsx-dev-runtime.d.ts +0 -1
  860. package/node_modules/@emotion/react/types/jsx-namespace.d.ts +0 -102
  861. package/node_modules/@emotion/react/types/jsx-runtime.d.ts +0 -1
  862. package/node_modules/@emotion/react/types/theming.d.ts +0 -31
  863. package/node_modules/@emotion/styled/dist/declarations/types/base.d.ts +0 -197
  864. package/node_modules/@emotion/styled/dist/declarations/types/index.d.ts +0 -33
  865. package/node_modules/@emotion/styled/src/base.d.ts +0 -2
  866. package/node_modules/@emotion/styled/src/index.d.ts +0 -2
  867. package/node_modules/@emotion/styled/src/index.js +0 -11
  868. package/node_modules/@emotion/styled/src/utils.js +0 -86
  869. package/node_modules/@emotion/styled/types/jsx-namespace.d.ts +0 -14
  870. package/node_modules/@emotion/use-insertion-effect-with-fallbacks/src/index.js +0 -15
  871. package/node_modules/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +0 -12
  872. package/node_modules/@jridgewell/set-array/LICENSE +0 -19
  873. package/node_modules/@jridgewell/set-array/README.md +0 -37
  874. package/node_modules/@jridgewell/set-array/dist/set-array.mjs +0 -69
  875. package/node_modules/@jridgewell/set-array/dist/set-array.mjs.map +0 -1
  876. package/node_modules/@jridgewell/set-array/dist/set-array.umd.js +0 -83
  877. package/node_modules/@jridgewell/set-array/dist/set-array.umd.js.map +0 -1
  878. package/node_modules/@jridgewell/set-array/package.json +0 -65
  879. package/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts +0 -8
  880. package/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts +0 -1
  881. package/node_modules/@mui/material/OverridableComponent.d.ts +0 -67
  882. /package/node_modules/@emotion/cache/src/conditions/{false.js → false.ts} +0 -0
  883. /package/node_modules/@emotion/cache/src/conditions/{is-browser.js → is-browser.ts} +0 -0
  884. /package/node_modules/@emotion/cache/src/conditions/{true.js → true.ts} +0 -0
  885. /package/node_modules/@emotion/react/src/conditions/{false.js → false.ts} +0 -0
  886. /package/node_modules/@emotion/react/src/conditions/{is-browser.js → is-browser.ts} +0 -0
  887. /package/node_modules/@emotion/react/src/conditions/{true.js → true.ts} +0 -0
  888. /package/node_modules/@emotion/react/{types/helper.d.ts → src/types.ts} +0 -0
  889. /package/node_modules/@emotion/react/src/{utils.js → utils.ts} +0 -0
  890. /package/node_modules/@emotion/styled/src/conditions/{false.js → false.ts} +0 -0
  891. /package/node_modules/@emotion/styled/src/conditions/{is-browser.js → is-browser.ts} +0 -0
  892. /package/node_modules/@emotion/styled/src/conditions/{true.js → true.ts} +0 -0
  893. /package/node_modules/@emotion/use-insertion-effect-with-fallbacks/src/conditions/{false.js → false.ts} +0 -0
  894. /package/node_modules/@emotion/use-insertion-effect-with-fallbacks/src/conditions/{is-browser.js → is-browser.ts} +0 -0
  895. /package/node_modules/@emotion/use-insertion-effect-with-fallbacks/src/conditions/{true.js → true.ts} +0 -0
@@ -0,0 +1,15 @@
1
+ [
2
+ "decodeURI",
3
+ "decodeURIComponent",
4
+ "encodeURI",
5
+ "encodeURIComponent",
6
+ "escape",
7
+ "eval",
8
+ "globalThis",
9
+ "isFinite",
10
+ "isNaN",
11
+ "parseFloat",
12
+ "parseInt",
13
+ "undefined",
14
+ "unescape"
15
+ ]
@@ -0,0 +1,51 @@
1
+ [
2
+ "AggregateError",
3
+ "Array",
4
+ "ArrayBuffer",
5
+ "Atomics",
6
+ "BigInt",
7
+ "BigInt64Array",
8
+ "BigUint64Array",
9
+ "Boolean",
10
+ "DataView",
11
+ "Date",
12
+ "Error",
13
+ "EvalError",
14
+ "FinalizationRegistry",
15
+ "Float16Array",
16
+ "Float32Array",
17
+ "Float64Array",
18
+ "Function",
19
+ "Infinity",
20
+ "Int16Array",
21
+ "Int32Array",
22
+ "Int8Array",
23
+ "Intl",
24
+ "Iterator",
25
+ "JSON",
26
+ "Map",
27
+ "Math",
28
+ "NaN",
29
+ "Number",
30
+ "Object",
31
+ "Promise",
32
+ "Proxy",
33
+ "RangeError",
34
+ "ReferenceError",
35
+ "Reflect",
36
+ "RegExp",
37
+ "Set",
38
+ "SharedArrayBuffer",
39
+ "String",
40
+ "Symbol",
41
+ "SyntaxError",
42
+ "TypeError",
43
+ "Uint16Array",
44
+ "Uint32Array",
45
+ "Uint8Array",
46
+ "Uint8ClampedArray",
47
+ "URIError",
48
+ "WeakMap",
49
+ "WeakRef",
50
+ "WeakSet"
51
+ ]
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "@babel/helper-globals",
3
+ "version": "7.28.0",
4
+ "author": "The Babel Team (https://babel.dev/team)",
5
+ "license": "MIT",
6
+ "description": "A collection of JavaScript globals for Babel internal usage",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/babel/babel.git",
10
+ "directory": "packages/babel-helper-globals"
11
+ },
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "exports": {
16
+ "./data/browser-upper.json": "./data/browser-upper.json",
17
+ "./data/builtin-lower.json": "./data/builtin-lower.json",
18
+ "./data/builtin-upper.json": "./data/builtin-upper.json",
19
+ "./package.json": "./package.json"
20
+ },
21
+ "keywords": [
22
+ "babel",
23
+ "globals"
24
+ ],
25
+ "devDependencies": {
26
+ "globals": "^16.1.0"
27
+ },
28
+ "engines": {
29
+ "node": ">=6.9.0"
30
+ },
31
+ "type": "commonjs"
32
+ }
@@ -1 +1 @@
1
- {"version":3,"names":["_assert","require","_t","callExpression","cloneNode","expressionStatement","identifier","importDeclaration","importDefaultSpecifier","importNamespaceSpecifier","importSpecifier","memberExpression","stringLiteral","variableDeclaration","variableDeclarator","ImportBuilder","constructor","importedSource","scope","hub","_statements","_resultName","_importedSource","_scope","_hub","done","statements","resultName","import","push","namespace","name","local","generateUidIdentifier","statement","length","assert","type","specifiers","default","id","named","importName","var","expression","defaultInterop","_interop","addHelper","wildcardInterop","callee","declarations","init","fail","prop","read","exports"],"sources":["../src/import-builder.ts"],"sourcesContent":["import assert from \"assert\";\nimport {\n callExpression,\n cloneNode,\n expressionStatement,\n identifier,\n importDeclaration,\n importDefaultSpecifier,\n importNamespaceSpecifier,\n importSpecifier,\n memberExpression,\n stringLiteral,\n variableDeclaration,\n variableDeclarator,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport type { Scope, HubInterface } from \"@babel/traverse\";\n\n/**\n * A class to track and accumulate mutations to the AST that will eventually\n * output a new require/import statement list.\n */\nexport default class ImportBuilder {\n private _statements: t.Statement[] = [];\n private _resultName: t.Identifier | t.MemberExpression = null;\n\n declare _scope: Scope;\n declare _hub: HubInterface;\n private _importedSource: string;\n\n constructor(importedSource: string, scope: Scope, hub: HubInterface) {\n this._scope = scope;\n this._hub = hub;\n this._importedSource = importedSource;\n }\n\n done() {\n return {\n statements: this._statements,\n resultName: this._resultName,\n };\n }\n\n import() {\n this._statements.push(\n importDeclaration([], stringLiteral(this._importedSource)),\n );\n return this;\n }\n\n require() {\n this._statements.push(\n expressionStatement(\n callExpression(identifier(\"require\"), [\n stringLiteral(this._importedSource),\n ]),\n ),\n );\n return this;\n }\n\n namespace(name = \"namespace\") {\n const local = this._scope.generateUidIdentifier(name);\n\n const statement = this._statements[this._statements.length - 1];\n assert(statement.type === \"ImportDeclaration\");\n assert(statement.specifiers.length === 0);\n statement.specifiers = [importNamespaceSpecifier(local)];\n this._resultName = cloneNode(local);\n return this;\n }\n default(name: string) {\n const id = this._scope.generateUidIdentifier(name);\n const statement = this._statements[this._statements.length - 1];\n assert(statement.type === \"ImportDeclaration\");\n assert(statement.specifiers.length === 0);\n statement.specifiers = [importDefaultSpecifier(id)];\n this._resultName = cloneNode(id);\n return this;\n }\n named(name: string, importName: string) {\n if (importName === \"default\") return this.default(name);\n\n const id = this._scope.generateUidIdentifier(name);\n const statement = this._statements[this._statements.length - 1];\n assert(statement.type === \"ImportDeclaration\");\n assert(statement.specifiers.length === 0);\n statement.specifiers = [importSpecifier(id, identifier(importName))];\n this._resultName = cloneNode(id);\n return this;\n }\n\n var(name: string) {\n const id = this._scope.generateUidIdentifier(name);\n let statement = this._statements[this._statements.length - 1];\n if (statement.type !== \"ExpressionStatement\") {\n assert(this._resultName);\n statement = expressionStatement(this._resultName);\n this._statements.push(statement);\n }\n this._statements[this._statements.length - 1] = variableDeclaration(\"var\", [\n variableDeclarator(id, statement.expression),\n ]);\n this._resultName = cloneNode(id);\n return this;\n }\n\n defaultInterop() {\n return this._interop(this._hub.addHelper(\"interopRequireDefault\"));\n }\n wildcardInterop() {\n return this._interop(this._hub.addHelper(\"interopRequireWildcard\"));\n }\n\n _interop(callee: t.Expression) {\n const statement = this._statements[this._statements.length - 1];\n if (statement.type === \"ExpressionStatement\") {\n statement.expression = callExpression(callee, [statement.expression]);\n } else if (statement.type === \"VariableDeclaration\") {\n assert(statement.declarations.length === 1);\n statement.declarations[0].init = callExpression(callee, [\n statement.declarations[0].init,\n ]);\n } else {\n assert.fail(\"Unexpected type.\");\n }\n return this;\n }\n\n prop(name: string) {\n const statement = this._statements[this._statements.length - 1];\n if (statement.type === \"ExpressionStatement\") {\n statement.expression = memberExpression(\n statement.expression,\n identifier(name),\n );\n } else if (statement.type === \"VariableDeclaration\") {\n assert(statement.declarations.length === 1);\n statement.declarations[0].init = memberExpression(\n statement.declarations[0].init,\n identifier(name),\n );\n } else {\n assert.fail(\"Unexpected type:\" + statement.type);\n }\n return this;\n }\n\n read(name: string) {\n this._resultName = memberExpression(this._resultName, identifier(name));\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,EAAA,GAAAD,OAAA;AAasB;EAZpBE,cAAc;EACdC,SAAS;EACTC,mBAAmB;EACnBC,UAAU;EACVC,iBAAiB;EACjBC,sBAAsB;EACtBC,wBAAwB;EACxBC,eAAe;EACfC,gBAAgB;EAChBC,aAAa;EACbC,mBAAmB;EACnBC;AAAkB,IAAAZ,EAAA;AASL,MAAMa,aAAa,CAAC;EAQjCC,WAAWA,CAACC,cAAsB,EAAEC,KAAY,EAAEC,GAAiB,EAAE;IAAA,KAP7DC,WAAW,GAAkB,EAAE;IAAA,KAC/BC,WAAW,GAAsC,IAAI;IAAA,KAIrDC,eAAe;IAGrB,IAAI,CAACC,MAAM,GAAGL,KAAK;IACnB,IAAI,CAACM,IAAI,GAAGL,GAAG;IACf,IAAI,CAACG,eAAe,GAAGL,cAAc;EACvC;EAEAQ,IAAIA,CAAA,EAAG;IACL,OAAO;MACLC,UAAU,EAAE,IAAI,CAACN,WAAW;MAC5BO,UAAU,EAAE,IAAI,CAACN;IACnB,CAAC;EACH;EAEAO,MAAMA,CAAA,EAAG;IACP,IAAI,CAACR,WAAW,CAACS,IAAI,CACnBtB,iBAAiB,CAAC,EAAE,EAAEK,aAAa,CAAC,IAAI,CAACU,eAAe,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BAAgB,CACrCuB,SAAS,CAACU,UAAU,EACpBtC,UAAU,CAACyB,IAAI,CACjB,CAAC;IACH,CAAC,MAAM,IAAIG,SAAS,CAACG,IAAI,KAAK,qBAAqB,EAAE;MACnDD,OAAM,CAACF,SAAS,CAACgB,YAAY,CAACf,MAAM,KAAK,CAAC,CAAC;MAC3CD,SAAS,CAACgB,YAAY,CAAC,CAAC,CAAC,CAACC,IAAI,GAAGxC,gBAAgB,CAC/CuB,SAAS,CAACgB,YAAY,CAAC,CAAC,CAAC,CAACC,IAAI,EAC9B7C,UAAU,CAACyB,IAAI,CACjB,CAAC;IACH,CAAC,MAAM;MACLK,OAAM,CAACgB,IAAI,CAAC,kBAAkB,GAAGlB,SAAS,CAACG,IAAI,CAAC;IAClD;IACA,OAAO,IAAI;EACb;EAEAiB,IAAIA,CAACvB,IAAY,EAAE;IACjB,IAAI,CAACV,WAAW,GAAGV,gBAAgB,CAAC,IAAI,CAACU,WAAW,EAAEf,UAAU,CAACyB,IAAI,CAAC,CAAC;EACzE;AACF;AAACwB,OAAA,CAAAhB,OAAA,GAAAxB,aAAA","ignoreList":[]}
1
+ {"version":3,"names":["_assert","require","_t","callExpression","cloneNode","expressionStatement","identifier","importDeclaration","importDefaultSpecifier","importNamespaceSpecifier","importSpecifier","memberExpression","stringLiteral","variableDeclaration","variableDeclarator","ImportBuilder","constructor","importedSource","scope","hub","_statements","_resultName","_importedSource","_scope","_hub","done","statements","resultName","import","push","namespace","name","local","generateUidIdentifier","statement","length","assert","type","specifiers","default","id","named","importName","var","expression","defaultInterop","_interop","addHelper","wildcardInterop","callee","declarations","init","fail","prop","read","exports"],"sources":["../src/import-builder.ts"],"sourcesContent":["import assert from \"node:assert\";\nimport {\n callExpression,\n cloneNode,\n expressionStatement,\n identifier,\n importDeclaration,\n importDefaultSpecifier,\n importNamespaceSpecifier,\n importSpecifier,\n memberExpression,\n stringLiteral,\n variableDeclaration,\n variableDeclarator,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport type { Scope, HubInterface } from \"@babel/traverse\";\n\n/**\n * A class to track and accumulate mutations to the AST that will eventually\n * output a new require/import statement list.\n */\nexport default class ImportBuilder {\n private _statements: t.Statement[] = [];\n private _resultName: t.Identifier | t.MemberExpression = null;\n\n declare _scope: Scope;\n declare _hub: HubInterface;\n private _importedSource: string;\n\n constructor(importedSource: string, scope: Scope, hub: HubInterface) {\n this._scope = scope;\n this._hub = hub;\n this._importedSource = importedSource;\n }\n\n done() {\n return {\n statements: this._statements,\n resultName: this._resultName,\n };\n }\n\n import() {\n this._statements.push(\n importDeclaration([], stringLiteral(this._importedSource)),\n );\n return this;\n }\n\n require() {\n this._statements.push(\n expressionStatement(\n callExpression(identifier(\"require\"), [\n stringLiteral(this._importedSource),\n ]),\n ),\n );\n return this;\n }\n\n namespace(name = \"namespace\") {\n const local = this._scope.generateUidIdentifier(name);\n\n const statement = this._statements[this._statements.length - 1];\n assert(statement.type === \"ImportDeclaration\");\n assert(statement.specifiers.length === 0);\n statement.specifiers = [importNamespaceSpecifier(local)];\n this._resultName = cloneNode(local);\n return this;\n }\n default(name: string) {\n const id = this._scope.generateUidIdentifier(name);\n const statement = this._statements[this._statements.length - 1];\n assert(statement.type === \"ImportDeclaration\");\n assert(statement.specifiers.length === 0);\n statement.specifiers = [importDefaultSpecifier(id)];\n this._resultName = cloneNode(id);\n return this;\n }\n named(name: string, importName: string) {\n if (importName === \"default\") return this.default(name);\n\n const id = this._scope.generateUidIdentifier(name);\n const statement = this._statements[this._statements.length - 1];\n assert(statement.type === \"ImportDeclaration\");\n assert(statement.specifiers.length === 0);\n statement.specifiers = [importSpecifier(id, identifier(importName))];\n this._resultName = cloneNode(id);\n return this;\n }\n\n var(name: string) {\n const id = this._scope.generateUidIdentifier(name);\n let statement = this._statements[this._statements.length - 1];\n if (statement.type !== \"ExpressionStatement\") {\n assert(this._resultName);\n statement = expressionStatement(this._resultName);\n this._statements.push(statement);\n }\n this._statements[this._statements.length - 1] = variableDeclaration(\"var\", [\n variableDeclarator(id, statement.expression),\n ]);\n this._resultName = cloneNode(id);\n return this;\n }\n\n defaultInterop() {\n return this._interop(this._hub.addHelper(\"interopRequireDefault\"));\n }\n wildcardInterop() {\n return this._interop(this._hub.addHelper(\"interopRequireWildcard\"));\n }\n\n _interop(callee: t.Expression) {\n const statement = this._statements[this._statements.length - 1];\n if (statement.type === \"ExpressionStatement\") {\n statement.expression = callExpression(callee, [statement.expression]);\n } else if (statement.type === \"VariableDeclaration\") {\n assert(statement.declarations.length === 1);\n statement.declarations[0].init = callExpression(callee, [\n statement.declarations[0].init,\n ]);\n } else {\n assert.fail(\"Unexpected type.\");\n }\n return this;\n }\n\n prop(name: string) {\n const statement = this._statements[this._statements.length - 1];\n if (statement.type === \"ExpressionStatement\") {\n statement.expression = memberExpression(\n statement.expression,\n identifier(name),\n );\n } else if (statement.type === \"VariableDeclaration\") {\n assert(statement.declarations.length === 1);\n statement.declarations[0].init = memberExpression(\n statement.declarations[0].init,\n identifier(name),\n );\n } else {\n assert.fail(\"Unexpected type:\" + statement.type);\n }\n return this;\n }\n\n read(name: string) {\n this._resultName = memberExpression(this._resultName, identifier(name));\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,EAAA,GAAAD,OAAA;AAasB;EAZpBE,cAAc;EACdC,SAAS;EACTC,mBAAmB;EACnBC,UAAU;EACVC,iBAAiB;EACjBC,sBAAsB;EACtBC,wBAAwB;EACxBC,eAAe;EACfC,gBAAgB;EAChBC,aAAa;EACbC,mBAAmB;EACnBC;AAAkB,IAAAZ,EAAA;AASL,MAAMa,aAAa,CAAC;EAQjCC,WAAWA,CAACC,cAAsB,EAAEC,KAAY,EAAEC,GAAiB,EAAE;IAAA,KAP7DC,WAAW,GAAkB,EAAE;IAAA,KAC/BC,WAAW,GAAsC,IAAI;IAAA,KAIrDC,eAAe;IAGrB,IAAI,CAACC,MAAM,GAAGL,KAAK;IACnB,IAAI,CAACM,IAAI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J,CAAC,MAAM;MACLf,OAAM,CAACgB,IAAI,CAAC,kBAAkB,CAAC;IACjC;IACA,OAAO,IAAI;EACb;EAEAC,IAAIA,CAACtB,IAAY,EAAE;IACjB,MAAMG,SAAS,GAAG,IAAI,CAACd,WAAW,CAAC,IAAI,CAACA,WAAW,CAACe,MAAM,GAAG,CAAC,CAAC;IAC/D,IAAID,SAAS,CAACG,IAAI,KAAK,qBAAqB,EAAE;MAC5CH,SAAS,CAACU,UAAU,GAAGjC,gBAAgB,CACrCuB,SAAS,CAACU,UAAU,EACpBtC,UAAU,CAACyB,IAAI,CACjB,CAAC;IACH,CAAC,MAAM,IAAIG,SAAS,CAACG,IAAI,KAAK,qBAAqB,EAAE;MACnDD,OAAM,CAACF,SAAS,CAACgB,YAAY,CAACf,MAAM,KAAK,CAAC,CAAC;MAC3CD,SAAS,CAACgB,YAAY,CAAC,CAAC,CAAC,CAACC,IAAI,GAAGxC,gBAAgB,CAC/CuB,SAAS,CAACgB,YAAY,CAAC,CAAC,CAAC,CAACC,IAAI,EAC9B7C,UAAU,CAACyB,IAAI,CACjB,CAAC;IACH,CAAC,MAAM;MACLK,OAAM,CAACgB,IAAI,CAAC,kBAAkB,GAAGlB,SAAS,CAACG,IAAI,CAAC;IAClD;IACA,OAAO,IAAI;EACb;EAEAiB,IAAIA,CAACvB,IAAY,EAAE;IACjB,IAAI,CAACV,WAAW,GAAGV,gBAAgB,CAAC,IAAI,CAACU,WAAW,EAAEf,UAAU,CAACyB,IAAI,CAAC,CAAC;EACzE;AACF;AAACwB,OAAA,CAAAhB,OAAA,GAAAxB,aAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_assert","require","_t","_importBuilder","_isModule","identifier","importSpecifier","numericLiteral","sequenceExpression","isImportDeclaration","ImportInjector","constructor","path","importedSource","opts","_defaultOpts","importedType","importedInterop","importingInterop","ensureLiveReference","ensureNoContext","importPosition","programPath","find","p","isProgram","_programPath","_programScope","scope","_hub","hub","_applyDefaults","addDefault","importedSourceIn","addNamed","importName","assert","_generateImport","addNamespace","addSideEffect","isInit","newOpts","Object","assign","nameHint","undefined","blockHoist","isDefault","isNamed","isNamespace","name","isMod","isModule","isModuleForNode","isModuleForBabel","Error","builder","ImportBuilder","import","namespace","named","es6Default","default","var","wildcardInterop","defaultInterop","read","prop","statements","resultName","done","_insertStatements","type","_insertStatementsAfter","_insertStatementsBefore","unshiftContainer","length","isValueImport","firstImportDecl","get","node","source","value","maybeAppendImportSpecifiers","forEach","_blockHoist","targetPath","val","Number","isFinite","insertBefore","statementsSet","Set","importDeclarations","Map","statement","has","set","push","lastImportPath","bodyStmt","newImports","decl","delete","size","insertAfter","Array","from","exports","importKind","hasNamespaceImport","specifiers","hasDefaultImport","target","local","unshift","shift"],"sources":["../src/import-injector.ts"],"sourcesContent":["import assert from \"assert\";\nimport {\n identifier,\n importSpecifier,\n numericLiteral,\n sequenceExpression,\n isImportDeclaration,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport type { NodePath, Scope, HubInterface } from \"@babel/traverse\";\n\nimport ImportBuilder from \"./import-builder.ts\";\nimport isModule from \"./is-module.ts\";\n\nexport type ImportOptions = {\n /**\n * The module being referenced.\n */\n importedSource: string | null;\n /**\n * The type of module being imported:\n *\n * * 'es6' - An ES6 module.\n * * 'commonjs' - A CommonJS module. (Default)\n */\n importedType: \"es6\" | \"commonjs\";\n /**\n * The type of interop behavior for namespace/default/named when loading\n * CommonJS modules.\n *\n * ## 'babel' (Default)\n *\n * Load using Babel's interop.\n *\n * If '.__esModule' is true, treat as 'compiled', else:\n *\n * * Namespace: A copy of the module.exports with .default\n * populated by the module.exports object.\n * * Default: The module.exports value.\n * * Named: The .named property of module.exports.\n *\n * The 'ensureLiveReference' has no effect on the liveness of these.\n *\n * ## 'compiled'\n *\n * Assume the module is ES6 compiled to CommonJS. Useful to avoid injecting\n * interop logic if you are confident that the module is a certain format.\n *\n * * Namespace: The root module.exports object.\n * * Default: The .default property of the namespace.\n * * Named: The .named property of the namespace.\n *\n * Will return erroneous results if the imported module is _not_ compiled\n * from ES6 with Babel.\n *\n * ## 'uncompiled'\n *\n * Assume the module is _not_ ES6 compiled to CommonJS. Used a simplified\n * access pattern that doesn't require additional function calls.\n *\n * Will return erroneous results if the imported module _is_ compiled\n * from ES6 with Babel.\n *\n * * Namespace: The module.exports object.\n * * Default: The module.exports object.\n * * Named: The .named property of module.exports.\n */\n importedInterop: \"babel\" | \"node\" | \"compiled\" | \"uncompiled\";\n /**\n * The type of CommonJS interop included in the environment that will be\n * loading the output code.\n *\n * * 'babel' - CommonJS modules load with Babel's interop. (Default)\n * * 'node' - CommonJS modules load with Node's interop.\n *\n * See descriptions in 'importedInterop' for more details.\n */\n importingInterop: \"babel\" | \"node\";\n /**\n * Define whether we explicitly care that the import be a live reference.\n * Only applies when importing default and named imports, not the namespace.\n *\n * * true - Force imported values to be live references.\n * * false - No particular requirements. Keeps the code simplest. (Default)\n */\n ensureLiveReference: boolean;\n /**\n * Define if we explicitly care that the result not be a property reference.\n *\n * * true - Force calls to exclude context. Useful if the value is going to\n * be used as function callee.\n * * false - No particular requirements for context of the access. (Default)\n */\n ensureNoContext: boolean;\n /**\n * Define whether the import should be loaded before or after the existing imports.\n * \"after\" is only allowed inside ECMAScript modules, since it's not possible to\n * reliably pick the location _after_ require() calls but _before_ other code in CJS.\n */\n importPosition: \"before\" | \"after\";\n\n nameHint?: string;\n blockHoist?: number;\n};\n\n/**\n * A general helper classes add imports via transforms. See README for usage.\n */\nexport default class ImportInjector {\n /**\n * The path used for manipulation.\n */\n declare _programPath: NodePath<t.Program>;\n\n /**\n * The scope used to generate unique variable names.\n */\n declare _programScope: Scope;\n\n /**\n * The file used to inject helpers and resolve paths.\n */\n declare _hub: HubInterface;\n\n /**\n * The default options to use with this instance when imports are added.\n */\n _defaultOpts: ImportOptions = {\n importedSource: null,\n importedType: \"commonjs\",\n importedInterop: \"babel\",\n importingInterop: \"babel\",\n ensureLiveReference: false,\n ensureNoContext: false,\n importPosition: \"before\",\n };\n\n constructor(\n path: NodePath,\n importedSource?: string,\n opts?: Partial<ImportOptions>,\n ) {\n const programPath = path.find(p => p.isProgram()) as NodePath<t.Program>;\n\n this._programPath = programPath;\n this._programScope = programPath.scope;\n this._hub = programPath.hub;\n\n this._defaultOpts = this._applyDefaults(importedSource, opts, true);\n }\n\n addDefault(importedSourceIn: string, opts: Partial<ImportOptions>) {\n return this.addNamed(\"default\", importedSourceIn, opts);\n }\n\n addNamed(\n importName: string,\n importedSourceIn: string,\n opts: Partial<ImportOptions>,\n ) {\n assert(typeof importName === \"string\");\n\n return this._generateImport(\n this._applyDefaults(importedSourceIn, opts),\n importName,\n );\n }\n\n addNamespace(importedSourceIn: string, opts: Partial<ImportOptions>) {\n return this._generateImport(\n this._applyDefaults(importedSourceIn, opts),\n null,\n );\n }\n\n addSideEffect(importedSourceIn: string, opts: Partial<ImportOptions>) {\n return this._generateImport(\n this._applyDefaults(importedSourceIn, opts),\n void 0,\n );\n }\n\n _applyDefaults(\n importedSource: string | Partial<ImportOptions>,\n opts: Partial<ImportOptions> | undefined,\n isInit = false,\n ) {\n let newOpts: ImportOptions;\n if (typeof importedSource === \"string\") {\n newOpts = { ...this._defaultOpts, importedSource, ...opts };\n } else {\n assert(!opts, \"Unexpected secondary arguments.\");\n newOpts = { ...this._defaultOpts, ...importedSource };\n }\n\n if (!isInit && opts) {\n if (opts.nameHint !== undefined) newOpts.nameHint = opts.nameHint;\n if (opts.blockHoist !== undefined) newOpts.blockHoist = opts.blockHoist;\n }\n return newOpts;\n }\n\n _generateImport(\n opts: Partial<ImportOptions>,\n importName: string | null | undefined,\n ) {\n const isDefault = importName === \"default\";\n const isNamed = !!importName && !isDefault;\n const isNamespace = importName === null;\n\n const {\n importedSource,\n importedType,\n importedInterop,\n importingInterop,\n ensureLiveReference,\n ensureNoContext,\n nameHint,\n importPosition,\n\n // Not meant for public usage. Allows code that absolutely must control\n // ordering to set a specific hoist value on the import nodes.\n // This is ignored when \"importPosition\" is \"after\".\n blockHoist,\n } = opts;\n\n // Provide a hint for generateUidIdentifier for the local variable name\n // to use for the import, if the code will generate a simple assignment\n // to a variable.\n let name = nameHint || importName;\n\n const isMod = isModule(this._programPath);\n const isModuleForNode = isMod && importingInterop === \"node\";\n const isModuleForBabel = isMod && importingInterop === \"babel\";\n\n if (importPosition === \"after\" && !isMod) {\n throw new Error(`\"importPosition\": \"after\" is only supported in modules`);\n }\n\n const builder = new ImportBuilder(\n importedSource,\n this._programScope,\n this._hub,\n );\n\n if (importedType === \"es6\") {\n if (!isModuleForNode && !isModuleForBabel) {\n throw new Error(\"Cannot import an ES6 module from CommonJS\");\n }\n\n // import * as namespace from ''; namespace\n // import def from ''; def\n // import { named } from ''; named\n builder.import();\n if (isNamespace) {\n builder.namespace(nameHint || importedSource);\n } else if (isDefault || isNamed) {\n builder.named(name, importName);\n }\n } else if (importedType !== \"commonjs\") {\n throw new Error(`Unexpected interopType \"${importedType}\"`);\n } else if (importedInterop === \"babel\") {\n if (isModuleForNode) {\n // import _tmp from ''; var namespace = interopRequireWildcard(_tmp); namespace\n // import _tmp from ''; var def = interopRequireDefault(_tmp).default; def\n // import _tmp from ''; _tmp.named\n name = name !== \"default\" ? name : importedSource;\n const es6Default = `${importedSource}$es6Default`;\n\n builder.import();\n if (isNamespace) {\n builder\n .default(es6Default)\n .var(name || importedSource)\n .wildcardInterop();\n } else if (isDefault) {\n if (ensureLiveReference) {\n builder\n .default(es6Default)\n .var(name || importedSource)\n .defaultInterop()\n .read(\"default\");\n } else {\n builder\n .default(es6Default)\n .var(name)\n .defaultInterop()\n .prop(importName);\n }\n } else if (isNamed) {\n builder.default(es6Default).read(importName);\n }\n } else if (isModuleForBabel) {\n // import * as namespace from ''; namespace\n // import def from ''; def\n // import { named } from ''; named\n builder.import();\n if (isNamespace) {\n builder.namespace(name || importedSource);\n } else if (isDefault || isNamed) {\n builder.named(name, importName);\n }\n } else {\n // var namespace = interopRequireWildcard(require(''));\n // var def = interopRequireDefault(require('')).default; def\n // var named = require('').named; named\n builder.require();\n if (isNamespace) {\n builder.var(name || importedSource).wildcardInterop();\n } else if ((isDefault || isNamed) && ensureLiveReference) {\n if (isDefault) {\n name = name !== \"default\" ? name : importedSource;\n builder.var(name).read(importName);\n builder.defaultInterop();\n } else {\n builder.var(importedSource).read(importName);\n }\n } else if (isDefault) {\n builder.var(name).defaultInterop().prop(importName);\n } else if (isNamed) {\n builder.var(name).prop(importName);\n }\n }\n } else if (importedInterop === \"compiled\") {\n if (isModuleForNode) {\n // import namespace from ''; namespace\n // import namespace from ''; namespace.default\n // import namespace from ''; namespace.named\n\n builder.import();\n if (isNamespace) {\n builder.default(name || importedSource);\n } else if (isDefault || isNamed) {\n builder.default(importedSource).read(name);\n }\n } else if (isModuleForBabel) {\n // import * as namespace from ''; namespace\n // import def from ''; def\n // import { named } from ''; named\n // Note: These lookups will break if the module has no __esModule set,\n // hence the warning that 'compiled' will not work on standard CommonJS.\n\n builder.import();\n if (isNamespace) {\n builder.namespace(name || importedSource);\n } else if (isDefault || isNamed) {\n builder.named(name, importName);\n }\n } else {\n // var namespace = require(''); namespace\n // var namespace = require(''); namespace.default\n // var namespace = require(''); namespace.named\n // var named = require('').named;\n builder.require();\n if (isNamespace) {\n builder.var(name || importedSource);\n } else if (isDefault || isNamed) {\n if (ensureLiveReference) {\n builder.var(importedSource).read(name);\n } else {\n builder.prop(importName).var(name);\n }\n }\n }\n } else if (importedInterop === \"uncompiled\") {\n if (isDefault && ensureLiveReference) {\n throw new Error(\"No live reference for commonjs default\");\n }\n\n if (isModuleForNode) {\n // import namespace from ''; namespace\n // import def from ''; def;\n // import namespace from ''; namespace.named\n builder.import();\n if (isNamespace) {\n builder.default(name || importedSource);\n } else if (isDefault) {\n builder.default(name);\n } else if (isNamed) {\n builder.default(importedSource).read(name);\n }\n } else if (isModuleForBabel) {\n // import namespace from '';\n // import def from '';\n // import { named } from ''; named;\n // Note: These lookups will break if the module has __esModule set,\n // hence the warning that 'uncompiled' will not work on ES6 transpiled\n // to CommonJS.\n\n builder.import();\n if (isNamespace) {\n builder.default(name || importedSource);\n } else if (isDefault) {\n builder.default(name);\n } else if (isNamed) {\n builder.named(name, importName);\n }\n } else {\n // var namespace = require(''); namespace\n // var def = require(''); def\n // var namespace = require(''); namespace.named\n // var named = require('').named;\n builder.require();\n if (isNamespace) {\n builder.var(name || importedSource);\n } else if (isDefault) {\n builder.var(name);\n } else if (isNamed) {\n if (ensureLiveReference) {\n builder.var(importedSource).read(name);\n } else {\n builder.var(name).prop(importName);\n }\n }\n }\n } else {\n throw new Error(`Unknown importedInterop \"${importedInterop}\".`);\n }\n\n const { statements, resultName } = builder.done();\n\n this._insertStatements(statements, importPosition, blockHoist);\n\n if (\n (isDefault || isNamed) &&\n ensureNoContext &&\n resultName.type !== \"Identifier\"\n ) {\n return sequenceExpression([numericLiteral(0), resultName]);\n }\n return resultName;\n }\n\n _insertStatements(\n statements: t.Statement[],\n importPosition = \"before\",\n blockHoist = 3,\n ) {\n if (importPosition === \"after\") {\n if (this._insertStatementsAfter(statements)) return;\n } else {\n if (this._insertStatementsBefore(statements, blockHoist)) return;\n }\n\n this._programPath.unshiftContainer(\"body\", statements);\n }\n\n _insertStatementsBefore(statements: t.Statement[], blockHoist: number) {\n if (\n statements.length === 1 &&\n isImportDeclaration(statements[0]) &&\n isValueImport(statements[0])\n ) {\n const firstImportDecl = this._programPath\n .get(\"body\")\n .find((p): p is NodePath<t.ImportDeclaration> => {\n return p.isImportDeclaration() && isValueImport(p.node);\n });\n\n if (\n firstImportDecl?.node.source.value === statements[0].source.value &&\n maybeAppendImportSpecifiers(firstImportDecl.node, statements[0])\n ) {\n return true;\n }\n }\n\n statements.forEach(node => {\n // @ts-expect-error handle _blockHoist\n node._blockHoist = blockHoist;\n });\n\n const targetPath = this._programPath.get(\"body\").find(p => {\n // @ts-expect-error todo(flow->ts): avoid mutations\n const val = p.node._blockHoist;\n return Number.isFinite(val) && val < 4;\n });\n\n if (targetPath) {\n targetPath.insertBefore(statements);\n return true;\n }\n\n return false;\n }\n\n _insertStatementsAfter(statements: t.Statement[]): boolean {\n const statementsSet = new Set(statements);\n const importDeclarations: Map<string, t.ImportDeclaration[]> = new Map();\n\n for (const statement of statements) {\n if (isImportDeclaration(statement) && isValueImport(statement)) {\n const source = statement.source.value;\n if (!importDeclarations.has(source)) importDeclarations.set(source, []);\n importDeclarations.get(source).push(statement);\n }\n }\n\n let lastImportPath = null;\n for (const bodyStmt of this._programPath.get(\"body\")) {\n if (bodyStmt.isImportDeclaration() && isValueImport(bodyStmt.node)) {\n lastImportPath = bodyStmt;\n\n const source = bodyStmt.node.source.value;\n const newImports = importDeclarations.get(source);\n if (!newImports) continue;\n\n for (const decl of newImports) {\n if (!statementsSet.has(decl)) continue;\n if (maybeAppendImportSpecifiers(bodyStmt.node, decl)) {\n statementsSet.delete(decl);\n }\n }\n }\n }\n\n if (statementsSet.size === 0) return true;\n\n if (lastImportPath) lastImportPath.insertAfter(Array.from(statementsSet));\n\n return !!lastImportPath;\n }\n}\n\nfunction isValueImport(node: t.ImportDeclaration) {\n return node.importKind !== \"type\" && node.importKind !== \"typeof\";\n}\n\nfunction hasNamespaceImport(node: t.ImportDeclaration) {\n return (\n (node.specifiers.length === 1 &&\n node.specifiers[0].type === \"ImportNamespaceSpecifier\") ||\n (node.specifiers.length === 2 &&\n node.specifiers[1].type === \"ImportNamespaceSpecifier\")\n );\n}\n\nfunction hasDefaultImport(node: t.ImportDeclaration) {\n return (\n node.specifiers.length > 0 &&\n node.specifiers[0].type === \"ImportDefaultSpecifier\"\n );\n}\n\nfunction maybeAppendImportSpecifiers(\n target: t.ImportDeclaration,\n source: t.ImportDeclaration,\n): boolean {\n if (!target.specifiers.length) {\n target.specifiers = source.specifiers;\n return true;\n }\n if (!source.specifiers.length) return true;\n\n if (hasNamespaceImport(target) || hasNamespaceImport(source)) return false;\n\n if (hasDefaultImport(source)) {\n if (hasDefaultImport(target)) {\n source.specifiers[0] = importSpecifier(\n source.specifiers[0].local,\n identifier(\"default\"),\n );\n } else {\n target.specifiers.unshift(source.specifiers.shift());\n }\n }\n\n target.specifiers.push(...source.specifiers);\n\n return true;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,EAAA,GAAAD,OAAA;AAUA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AAAsC;EAVpCI,UAAU;EACVC,eAAe;EACfC,cAAc;EACdC,kBAAkB;EAClBC;AAAmB,IAAAP,EAAA;AAsGN,MAAMQ,cAAc,CAAC;EA6BlCC,WAAWA,CACTC,IAAc,EACdC,cAAuB,EACvBC,IAA6B,EAC7B;IAAA,KAdFC,YAAY,GAAkB;MAC5BF,cAAc,EAAE,IAAI;MACpBG,YAAY,EAAE,UAAU;MACxBC,eAAe,EAAE,OAAO;MACxBC,gBAAgB,EAAE,OAAO;MACzBC,mBAAmB,EAAE,KAAK;MAC1BC,eAAe,EAAE,KAAK;MACtBC,cAAc,EAAE;IAClB,CAAC;IAOC,MAAMC,WAAW,GAAGV,IAAI,CAACW,IAAI,CAACC,CAAC,IAAIA,CAAC,CAACC,SAAS,CAAC,CAAC,CAAwB;IAExE,IAAI,CAACC,YAAY,GAAGJ,WAAW;IAC/B,IAAI,CAACK,aAAa,GAAGL,WAAW,CAACM,KAAK;IACtC,IAAI,CAACC,IAAI,GAAGP,WAAW,CAACQ,GAAG;IAE3B,IAAI,CAACf,YAAY,GAAG,IAAI,CAACgB,cAAc,CAAClB,cAAc,EAAEC,IAAI,EAAE,IAAI,CAAC;EACrE;EAEAkB,UAAUA,CAACC,gBAAwB,EAAEnB,IAA4B,EAAE;IACjE,OAAO,IAAI,CAACoB,QAAQ,CAAC,SAAS,EAAED,gBAAgB,EAAEnB,IAAI,CAAC;EACzD;EAEAoB,QAAQA,CACNC,UAAkB,EAClBF,gBAAwB,EACxBnB,IAA4B,EAC5B;IACAsB,OAAM,CAAC,OAAOD,UAAU,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IkC,kBAAkB,CAACG,MAAM,CAAC,IAAIH,kBAAkB,CAAC7B,MAAM,CAAC,EAAE,OAAO,KAAK;EAE1E,IAAI+B,gBAAgB,CAAC/B,MAAM,CAAC,EAAE;IAC5B,IAAI+B,gBAAgB,CAACC,MAAM,CAAC,EAAE;MAC5BhC,MAAM,CAAC8B,UAAU,CAAC,CAAC,CAAC,GAAGzG,eAAe,CACpC2E,MAAM,CAAC8B,UAAU,CAAC,CAAC,CAAC,CAACG,KAAK,EAC1B7G,UAAU,CAAC,SAAS,CACtB,CAAC;IACH,CAAC,MAAM;MACL4G,MAAM,CAACF,UAAU,CAACI,OAAO,CAAClC,MAAM,CAAC8B,UAAU,CAACK,KAAK,CAAC,CAAC,CAAC;IACtD;EACF;EAEAH,MAAM,CAACF,UAAU,CAACb,IAAI,CAAC,GAAGjB,MAAM,CAAC8B,UAAU,CAAC;EAE5C,OAAO,IAAI;AACb","ignoreList":[]}
1
+ {"version":3,"names":["_assert","require","_t","_importBuilder","_isModule","identifier","importSpecifier","numericLiteral","sequenceExpression","isImportDeclaration","ImportInjector","constructor","path","importedSource","opts","_defaultOpts","importedType","importedInterop","importingInterop","ensureLiveReference","ensureNoContext","importPosition","programPath","find","p","isProgram","_programPath","_programScope","scope","_hub","hub","_applyDefaults","addDefault","importedSourceIn","addNamed","importName","assert","_generateImport","addNamespace","addSideEffect","isInit","newOpts","Object","assign","nameHint","undefined","blockHoist","isDefault","isNamed","isNamespace","name","isMod","isModule","isModuleForNode","isModuleForBabel","Error","builder","ImportBuilder","import","namespace","named","es6Default","default","var","wildcardInterop","defaultInterop","read","prop","statements","resultName","done","_insertStatements","type","_insertStatementsAfter","_insertStatementsBefore","unshiftContainer","length","isValueImport","firstImportDecl","get","node","source","value","maybeAppendImportSpecifiers","forEach","_blockHoist","targetPath","val","Number","isFinite","insertBefore","statementsSet","Set","importDeclarations","Map","statement","has","set","push","lastImportPath","bodyStmt","newImports","decl","delete","size","insertAfter","Array","from","exports","importKind","hasNamespaceImport","specifiers","hasDefaultImport","target","local","unshift","shift"],"sources":["../src/import-injector.ts"],"sourcesContent":["import assert from \"node:assert\";\nimport {\n identifier,\n importSpecifier,\n numericLiteral,\n sequenceExpression,\n isImportDeclaration,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport type { NodePath, Scope, HubInterface } from \"@babel/traverse\";\n\nimport ImportBuilder from \"./import-builder.ts\";\nimport isModule from \"./is-module.ts\";\n\nexport type ImportOptions = {\n /**\n * The module being referenced.\n */\n importedSource: string | null;\n /**\n * The type of module being imported:\n *\n * * 'es6' - An ES6 module.\n * * 'commonjs' - A CommonJS module. (Default)\n */\n importedType: \"es6\" | \"commonjs\";\n /**\n * The type of interop behavior for namespace/default/named when loading\n * CommonJS modules.\n *\n * ## 'babel' (Default)\n *\n * Load using Babel's interop.\n *\n * If '.__esModule' is true, treat as 'compiled', else:\n *\n * * Namespace: A copy of the module.exports with .default\n * populated by the module.exports object.\n * * Default: The module.exports value.\n * * Named: The .named property of module.exports.\n *\n * The 'ensureLiveReference' has no effect on the liveness of these.\n *\n * ## 'compiled'\n *\n * Assume the module is ES6 compiled to CommonJS. Useful to avoid injecting\n * interop logic if you are confident that the module is a certain format.\n *\n * * Namespace: The root module.exports object.\n * * Default: The .default property of the namespace.\n * * Named: The .named property of the namespace.\n *\n * Will return erroneous results if the imported module is _not_ compiled\n * from ES6 with Babel.\n *\n * ## 'uncompiled'\n *\n * Assume the module is _not_ ES6 compiled to CommonJS. Used a simplified\n * access pattern that doesn't require additional function calls.\n *\n * Will return erroneous results if the imported module _is_ compiled\n * from ES6 with Babel.\n *\n * * Namespace: The module.exports object.\n * * Default: The module.exports object.\n * * Named: The .named property of module.exports.\n */\n importedInterop: \"babel\" | \"node\" | \"compiled\" | \"uncompiled\";\n /**\n * The type of CommonJS interop included in the environment that will be\n * loading the output code.\n *\n * * 'babel' - CommonJS modules load with Babel's interop. (Default)\n * * 'node' - CommonJS modules load with Node's interop.\n *\n * See descriptions in 'importedInterop' for more details.\n */\n importingInterop: \"babel\" | \"node\";\n /**\n * Define whether we explicitly care that the import be a live reference.\n * Only applies when importing default and named imports, not the namespace.\n *\n * * true - Force imported values to be live references.\n * * false - No particular requirements. Keeps the code simplest. (Default)\n */\n ensureLiveReference: boolean;\n /**\n * Define if we explicitly care that the result not be a property reference.\n *\n * * true - Force calls to exclude context. Useful if the value is going to\n * be used as function callee.\n * * false - No particular requirements for context of the access. (Default)\n */\n ensureNoContext: boolean;\n /**\n * Define whether the import should be loaded before or after the existing imports.\n * \"after\" is only allowed inside ECMAScript modules, since it's not possible to\n * reliably pick the location _after_ require() calls but _before_ other code in CJS.\n */\n importPosition: \"before\" | \"after\";\n\n nameHint?: string;\n blockHoist?: number;\n};\n\n/**\n * A general helper classes add imports via transforms. See README for usage.\n */\nexport default class ImportInjector {\n /**\n * The path used for manipulation.\n */\n declare _programPath: NodePath<t.Program>;\n\n /**\n * The scope used to generate unique variable names.\n */\n declare _programScope: Scope;\n\n /**\n * The file used to inject helpers and resolve paths.\n */\n declare _hub: HubInterface;\n\n /**\n * The default options to use with this instance when imports are added.\n */\n _defaultOpts: ImportOptions = {\n importedSource: null,\n importedType: \"commonjs\",\n importedInterop: \"babel\",\n importingInterop: \"babel\",\n ensureLiveReference: false,\n ensureNoContext: false,\n importPosition: \"before\",\n };\n\n constructor(\n path: NodePath,\n importedSource?: string,\n opts?: Partial<ImportOptions>,\n ) {\n const programPath = path.find(p => p.isProgram()) as NodePath<t.Program>;\n\n this._programPath = programPath;\n this._programScope = programPath.scope;\n this._hub = programPath.hub;\n\n this._defaultOpts = this._applyDefaults(importedSource, opts, true);\n }\n\n addDefault(importedSourceIn: string, opts: Partial<ImportOptions>) {\n return this.addNamed(\"default\", importedSourceIn, opts);\n }\n\n addNamed(\n importName: string,\n importedSourceIn: string,\n opts: Partial<ImportOptions>,\n ) {\n assert(typeof importName === \"string\");\n\n return this._generateImport(\n this._applyDefaults(importedSourceIn, opts),\n importName,\n );\n }\n\n addNamespace(importedSourceIn: string, opts: Partial<ImportOptions>) {\n return this._generateImport(\n this._applyDefaults(importedSourceIn, opts),\n null,\n );\n }\n\n addSideEffect(importedSourceIn: string, opts: Partial<ImportOptions>) {\n return this._generateImport(\n this._applyDefaults(importedSourceIn, opts),\n void 0,\n );\n }\n\n _applyDefaults(\n importedSource: string | Partial<ImportOptions>,\n opts: Partial<ImportOptions> | undefined,\n isInit = false,\n ) {\n let newOpts: ImportOptions;\n if (typeof importedSource === \"string\") {\n newOpts = { ...this._defaultOpts, importedSource, ...opts };\n } else {\n assert(!opts, \"Unexpected secondary arguments.\");\n newOpts = { ...this._defaultOpts, ...importedSource };\n }\n\n if (!isInit && opts) {\n if (opts.nameHint !== undefined) newOpts.nameHint = opts.nameHint;\n if (opts.blockHoist !== undefined) newOpts.blockHoist = opts.blockHoist;\n }\n return newOpts;\n }\n\n _generateImport(\n opts: Partial<ImportOptions>,\n importName: string | null | undefined,\n ) {\n const isDefault = importName === \"default\";\n const isNamed = !!importName && !isDefault;\n const isNamespace = importName === null;\n\n const {\n importedSource,\n importedType,\n importedInterop,\n importingInterop,\n ensureLiveReference,\n ensureNoContext,\n nameHint,\n importPosition,\n\n // Not meant for public usage. Allows code that absolutely must control\n // ordering to set a specific hoist value on the import nodes.\n // This is ignored when \"importPosition\" is \"after\".\n blockHoist,\n } = opts;\n\n // Provide a hint for generateUidIdentifier for the local variable name\n // to use for the import, if the code will generate a simple assignment\n // to a variable.\n let name = nameHint || importName;\n\n const isMod = isModule(this._programPath);\n const isModuleForNode = isMod && importingInterop === \"node\";\n const isModuleForBabel = isMod && importingInterop === \"babel\";\n\n if (importPosition === \"after\" && !isMod) {\n throw new Error(`\"importPosition\": \"after\" is only supported in modules`);\n }\n\n const builder = new ImportBuilder(\n importedSource,\n this._programScope,\n this._hub,\n );\n\n if (importedType === \"es6\") {\n if (!isModuleForNode && !isModuleForBabel) {\n throw new Error(\"Cannot import an ES6 module from CommonJS\");\n }\n\n // import * as namespace from ''; namespace\n // import def from ''; def\n // import { named } from ''; named\n builder.import();\n if (isNamespace) {\n builder.namespace(nameHint || importedSource);\n } else if (isDefault || isNamed) {\n builder.named(name, importName);\n }\n } else if (importedType !== \"commonjs\") {\n throw new Error(`Unexpected interopType \"${importedType}\"`);\n } else if (importedInterop === \"babel\") {\n if (isModuleForNode) {\n // import _tmp from ''; var namespace = interopRequireWildcard(_tmp); namespace\n // import _tmp from ''; var def = interopRequireDefault(_tmp).default; def\n // import _tmp from ''; _tmp.named\n name = name !== \"default\" ? name : importedSource;\n const es6Default = `${importedSource}$es6Default`;\n\n builder.import();\n if (isNamespace) {\n builder\n .default(es6Default)\n .var(name || importedSource)\n .wildcardInterop();\n } else if (isDefault) {\n if (ensureLiveReference) {\n builder\n .default(es6Default)\n .var(name || importedSource)\n .defaultInterop()\n .read(\"default\");\n } else {\n builder\n .default(es6Default)\n .var(name)\n .defaultInterop()\n .prop(importName);\n }\n } else if (isNamed) {\n builder.default(es6Default).read(importName);\n }\n } else if (isModuleForBabel) {\n // import * as namespace from ''; namespace\n // import def from ''; def\n // import { named } from ''; named\n builder.import();\n if (isNamespace) {\n builder.namespace(name || importedSource);\n } else if (isDefault || isNamed) {\n builder.named(name, importName);\n }\n } else {\n // var namespace = interopRequireWildcard(require(''));\n // var def = interopRequireDefault(require('')).default; def\n // var named = require('').named; named\n builder.require();\n if (isNamespace) {\n builder.var(name || importedSource).wildcardInterop();\n } else if ((isDefault || isNamed) && ensureLiveReference) {\n if (isDefault) {\n name = name !== \"default\" ? name : importedSource;\n builder.var(name).read(importName);\n builder.defaultInterop();\n } else {\n builder.var(importedSource).read(importName);\n }\n } else if (isDefault) {\n builder.var(name).defaultInterop().prop(importName);\n } else if (isNamed) {\n builder.var(name).prop(importName);\n }\n }\n } else if (importedInterop === \"compiled\") {\n if (isModuleForNode) {\n // import namespace from ''; namespace\n // import namespace from ''; namespace.default\n // import namespace from ''; namespace.named\n\n builder.import();\n if (isNamespace) {\n builder.default(name || importedSource);\n } else if (isDefault || isNamed) {\n builder.default(importedSource).read(name);\n }\n } else if (isModuleForBabel) {\n // import * as namespace from ''; namespace\n // import def from ''; def\n // import { named } from ''; named\n // Note: These lookups will break if the module has no __esModule set,\n // hence the warning that 'compiled' will not work on standard CommonJS.\n\n builder.import();\n if (isNamespace) {\n builder.namespace(name || importedSource);\n } else if (isDefault || isNamed) {\n builder.named(name, importName);\n }\n } else {\n // var namespace = require(''); namespace\n // var namespace = require(''); namespace.default\n // var namespace = require(''); namespace.named\n // var named = require('').named;\n builder.require();\n if (isNamespace) {\n builder.var(name || importedSource);\n } else if (isDefault || isNamed) {\n if (ensureLiveReference) {\n builder.var(importedSource).read(name);\n } else {\n builder.prop(importName).var(name);\n }\n }\n }\n } else if (importedInterop === \"uncompiled\") {\n if (isDefault && ensureLiveReference) {\n throw new Error(\"No live reference for commonjs default\");\n }\n\n if (isModuleForNode) {\n // import namespace from ''; namespace\n // import def from ''; def;\n // import namespace from ''; namespace.named\n builder.import();\n if (isNamespace) {\n builder.default(name || importedSource);\n } else if (isDefault) {\n builder.default(name);\n } else if (isNamed) {\n builder.default(importedSource).read(name);\n }\n } else if (isModuleForBabel) {\n // import namespace from '';\n // import def from '';\n // import { named } from ''; named;\n // Note: These lookups will break if the module has __esModule set,\n // hence the warning that 'uncompiled' will not work on ES6 transpiled\n // to CommonJS.\n\n builder.import();\n if (isNamespace) {\n builder.default(name || importedSource);\n } else if (isDefault) {\n builder.default(name);\n } else if (isNamed) {\n builder.named(name, importName);\n }\n } else {\n // var namespace = require(''); namespace\n // var def = require(''); def\n // var namespace = require(''); namespace.named\n // var named = require('').named;\n builder.require();\n if (isNamespace) {\n builder.var(name || importedSource);\n } else if (isDefault) {\n builder.var(name);\n } else if (isNamed) {\n if (ensureLiveReference) {\n builder.var(importedSource).read(name);\n } else {\n builder.var(name).prop(importName);\n }\n }\n }\n } else {\n throw new Error(`Unknown importedInterop \"${importedInterop}\".`);\n }\n\n const { statements, resultName } = builder.done();\n\n this._insertStatements(statements, importPosition, blockHoist);\n\n if (\n (isDefault || isNamed) &&\n ensureNoContext &&\n resultName.type !== \"Identifier\"\n ) {\n return sequenceExpression([numericLiteral(0), resultName]);\n }\n return resultName;\n }\n\n _insertStatements(\n statements: t.Statement[],\n importPosition = \"before\",\n blockHoist = 3,\n ) {\n if (importPosition === \"after\") {\n if (this._insertStatementsAfter(statements)) return;\n } else {\n if (this._insertStatementsBefore(statements, blockHoist)) return;\n }\n\n this._programPath.unshiftContainer(\"body\", statements);\n }\n\n _insertStatementsBefore(statements: t.Statement[], blockHoist: number) {\n if (\n statements.length === 1 &&\n isImportDeclaration(statements[0]) &&\n isValueImport(statements[0])\n ) {\n const firstImportDecl = this._programPath\n .get(\"body\")\n .find((p): p is NodePath<t.ImportDeclaration> => {\n return p.isImportDeclaration() && isValueImport(p.node);\n });\n\n if (\n firstImportDecl?.node.source.value === statements[0].source.value &&\n maybeAppendImportSpecifiers(firstImportDecl.node, statements[0])\n ) {\n return true;\n }\n }\n\n statements.forEach(node => {\n // @ts-expect-error handle _blockHoist\n node._blockHoist = blockHoist;\n });\n\n const targetPath = this._programPath.get(\"body\").find(p => {\n // @ts-expect-error todo(flow->ts): avoid mutations\n const val = p.node._blockHoist;\n return Number.isFinite(val) && val < 4;\n });\n\n if (targetPath) {\n targetPath.insertBefore(statements);\n return true;\n }\n\n return false;\n }\n\n _insertStatementsAfter(statements: t.Statement[]): boolean {\n const statementsSet = new Set(statements);\n const importDeclarations: Map<string, t.ImportDeclaration[]> = new Map();\n\n for (const statement of statements) {\n if (isImportDeclaration(statement) && isValueImport(statement)) {\n const source = statement.source.value;\n if (!importDeclarations.has(source)) importDeclarations.set(source, []);\n importDeclarations.get(source).push(statement);\n }\n }\n\n let lastImportPath = null;\n for (const bodyStmt of this._programPath.get(\"body\")) {\n if (bodyStmt.isImportDeclaration() && isValueImport(bodyStmt.node)) {\n lastImportPath = bodyStmt;\n\n const source = bodyStmt.node.source.value;\n const newImports = importDeclarations.get(source);\n if (!newImports) continue;\n\n for (const decl of newImports) {\n if (!statementsSet.has(decl)) continue;\n if (maybeAppendImportSpecifiers(bodyStmt.node, decl)) {\n statementsSet.delete(decl);\n }\n }\n }\n }\n\n if (statementsSet.size === 0) return true;\n\n if (lastImportPath) lastImportPath.insertAfter(Array.from(statementsSet));\n\n return !!lastImportPath;\n }\n}\n\nfunction isValueImport(node: t.ImportDeclaration) {\n return node.importKind !== \"type\" && node.importKind !== \"typeof\";\n}\n\nfunction hasNamespaceImport(node: t.ImportDeclaration) {\n return (\n (node.specifiers.length === 1 &&\n node.specifiers[0].type === \"ImportNamespaceSpecifier\") ||\n (node.specifiers.length === 2 &&\n node.specifiers[1].type === \"ImportNamespaceSpecifier\")\n );\n}\n\nfunction hasDefaultImport(node: t.ImportDeclaration) {\n return (\n node.specifiers.length > 0 &&\n node.specifiers[0].type === \"ImportDefaultSpecifier\"\n );\n}\n\nfunction maybeAppendImportSpecifiers(\n target: t.ImportDeclaration,\n source: t.ImportDeclaration,\n): boolean {\n if (!target.specifiers.length) {\n target.specifiers = source.specifiers;\n return true;\n }\n if (!source.specifiers.length) return true;\n\n if (hasNamespaceImport(target) || hasNamespaceImport(source)) return false;\n\n if (hasDefaultImport(source)) {\n if (hasDefaultImport(target)) {\n source.specifiers[0] = importSpecifier(\n source.specifiers[0].local,\n identifier(\"default\"),\n );\n } else {\n target.specifiers.unshift(source.specifiers.shift());\n }\n }\n\n target.specifiers.push(...source.specifiers);\n\n return true;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,EAAA,GAAAD,OAAA;AAUA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AAAsC;EAVpCI,UAAU;EACVC,eAAe;EACfC,cAAc;EACdC,kBAAkB;EAClBC;AAAmB,IAAAP,EAAA;AAsGN,MAAMQ,cAAc,CAAC;EA6BlCC,WAAWA,CACTC,IAAc,EACdC,cAAuB,EACvBC,IAA6B,EAC7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AAK,CAAC,CAAC,CAAC;IACtD;EACF;EAEAH,MAAM,CAACF,UAAU,CAACb,IAAI,CAAC,GAAGjB,MAAM,CAAC8B,UAAU,CAAC;EAE5C,OAAO,IAAI;AACb","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babel/helper-module-imports",
3
- "version": "7.25.9",
3
+ "version": "7.27.1",
4
4
  "description": "Babel helper functions for inserting module loads",
5
5
  "author": "The Babel Team (https://babel.dev/team)",
6
6
  "homepage": "https://babel.dev/docs/en/next/babel-helper-module-imports",
@@ -15,11 +15,11 @@
15
15
  },
16
16
  "main": "./lib/index.js",
17
17
  "dependencies": {
18
- "@babel/traverse": "^7.25.9",
19
- "@babel/types": "^7.25.9"
18
+ "@babel/traverse": "^7.27.1",
19
+ "@babel/types": "^7.27.1"
20
20
  },
21
21
  "devDependencies": {
22
- "@babel/core": "^7.25.9"
22
+ "@babel/core": "^7.27.1"
23
23
  },
24
24
  "engines": {
25
25
  "node": ">=6.9.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babel/helper-string-parser",
3
- "version": "7.25.9",
3
+ "version": "7.27.1",
4
4
  "description": "A utility package to parse strings",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babel/helper-validator-identifier",
3
- "version": "7.25.9",
3
+ "version": "7.27.1",
4
4
  "description": "Validate identifier/keywords name",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- /* eslint no-var: 0 */
2
+ /* eslint-disable no-var, unicorn/prefer-node-protocol */
3
3
 
4
4
  var parser = require("..");
5
5
  var fs = require("fs");