@tarojs/components 3.6.0-canary.9 → 3.6.1-alpha.0

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 (1358) hide show
  1. package/LICENSE +119 -1
  2. package/dist/cjs/index-dfd8638f.js +40 -0
  3. package/dist/cjs/index-dfd8638f.js.map +1 -0
  4. package/dist/cjs/index-e1b469cd.js +2066 -0
  5. package/dist/cjs/index-e1b469cd.js.map +1 -0
  6. package/dist/cjs/loader.cjs.js +4 -3
  7. package/dist/cjs/loader.cjs.js.map +1 -1
  8. package/dist/cjs/taro-ad-core.cjs.entry.js +1 -1
  9. package/dist/cjs/taro-ad-custom-core.cjs.entry.js +1 -1
  10. package/dist/cjs/taro-animation-video-core.cjs.entry.js +1 -1
  11. package/dist/cjs/taro-animation-view-core.cjs.entry.js +1 -1
  12. package/dist/cjs/taro-ar-camera-core.cjs.entry.js +1 -1
  13. package/dist/cjs/taro-audio-core.cjs.entry.js +1 -1
  14. package/dist/cjs/taro-aweme-data-core.cjs.entry.js +1 -1
  15. package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
  16. package/dist/cjs/taro-button-core.cjs.entry.js +1 -1
  17. package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
  18. package/dist/cjs/taro-canvas-core.cjs.entry.js +1 -1
  19. package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +1 -1
  20. package/dist/cjs/taro-comment-detail-core.cjs.entry.js +1 -1
  21. package/dist/cjs/taro-comment-list-core.cjs.entry.js +1 -1
  22. package/dist/cjs/taro-components.cjs.js +7 -3
  23. package/dist/cjs/taro-components.cjs.js.map +1 -1
  24. package/dist/cjs/taro-contact-button-core.cjs.entry.js +1 -1
  25. package/dist/cjs/taro-cover-image-core.cjs.entry.js +1 -1
  26. package/dist/cjs/taro-cover-view-core.cjs.entry.js +1 -1
  27. package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
  28. package/dist/cjs/taro-editor-core.cjs.entry.js +1 -1
  29. package/dist/cjs/taro-follow-swan-core.cjs.entry.js +1 -1
  30. package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
  31. package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +1 -1
  32. package/dist/cjs/taro-icon-core.cjs.entry.js +1 -1
  33. package/dist/cjs/taro-image-core.cjs.entry.js +1 -1
  34. package/dist/cjs/taro-inline-payment-panel-core.cjs.entry.js +1 -1
  35. package/dist/cjs/taro-input-core.cjs.entry.js +2 -2
  36. package/dist/cjs/taro-input-core.cjs.entry.js.map +1 -1
  37. package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +1 -1
  38. package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
  39. package/dist/cjs/taro-lifestyle-core.cjs.entry.js +1 -1
  40. package/dist/cjs/taro-like-core.cjs.entry.js +1 -1
  41. package/dist/cjs/taro-live-player-core.cjs.entry.js +1 -1
  42. package/dist/cjs/taro-live-pusher-core.cjs.entry.js +1 -1
  43. package/dist/cjs/taro-login-core.cjs.entry.js +1 -1
  44. package/dist/cjs/taro-lottie-core.cjs.entry.js +1 -1
  45. package/dist/cjs/taro-map-core.cjs.entry.js +1 -1
  46. package/dist/cjs/taro-match-media-core.cjs.entry.js +1 -1
  47. package/dist/cjs/taro-movable-area-core_2.cjs.entry.js +1 -1
  48. package/dist/cjs/taro-native-slot-core.cjs.entry.js +1 -1
  49. package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +1 -1
  50. package/dist/cjs/taro-navigator-core.cjs.entry.js +1 -1
  51. package/dist/cjs/taro-navigator-core.cjs.entry.js.map +1 -1
  52. package/dist/cjs/taro-official-account-core.cjs.entry.js +1 -1
  53. package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
  54. package/dist/cjs/taro-page-container-core.cjs.entry.js +1 -1
  55. package/dist/cjs/taro-page-meta-core.cjs.entry.js +1 -1
  56. package/dist/cjs/taro-picker-core_2.cjs.entry.js +1 -1
  57. package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js +2 -2
  58. package/dist/cjs/taro-progress-core.cjs.entry.js +1 -1
  59. package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +1 -1
  60. package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
  61. package/dist/cjs/taro-rich-text-core.cjs.entry.js +1 -1
  62. package/dist/cjs/taro-root-portal-core.cjs.entry.js +1 -1
  63. package/dist/cjs/taro-rtc-room-core.cjs.entry.js +1 -1
  64. package/dist/cjs/taro-rtc-room-item-core.cjs.entry.js +1 -1
  65. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +48 -52
  66. package/dist/cjs/taro-scroll-view-core.cjs.entry.js.map +1 -1
  67. package/dist/cjs/taro-share-element-core.cjs.entry.js +1 -1
  68. package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
  69. package/dist/cjs/taro-slot-core.cjs.entry.js +1 -1
  70. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +49 -8
  71. package/dist/cjs/taro-swiper-core_2.cjs.entry.js.map +1 -1
  72. package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
  73. package/dist/cjs/taro-tab-item-core.cjs.entry.js +1 -1
  74. package/dist/cjs/taro-tabbar.cjs.entry.js +18 -20
  75. package/dist/cjs/taro-tabbar.cjs.entry.js.map +1 -1
  76. package/dist/cjs/taro-tabs-core.cjs.entry.js +1 -1
  77. package/dist/cjs/taro-text-core.cjs.entry.js +1 -1
  78. package/dist/cjs/taro-textarea-core.cjs.entry.js +1 -1
  79. package/dist/cjs/taro-video-control_3.cjs.entry.js +6 -2
  80. package/dist/cjs/taro-video-control_3.cjs.entry.js.map +1 -1
  81. package/dist/cjs/taro-view-core.cjs.entry.js +1 -1
  82. package/dist/cjs/taro-voip-room-core.cjs.entry.js +1 -1
  83. package/dist/cjs/taro-web-view-core.cjs.entry.js +1 -1
  84. package/dist/collection/collection-manifest.json +2 -2
  85. package/dist/collection/components/input/input.js +6 -2
  86. package/dist/collection/components/input/input.js.map +1 -1
  87. package/dist/collection/components/navigator/navigator.js +0 -16
  88. package/dist/collection/components/navigator/navigator.js.map +1 -1
  89. package/dist/collection/components/scroll-view/scroll-view.js +93 -51
  90. package/dist/collection/components/scroll-view/scroll-view.js.map +1 -1
  91. package/dist/collection/components/swiper/swiper-item.js +37 -1
  92. package/dist/collection/components/swiper/swiper-item.js.map +1 -1
  93. package/dist/collection/components/swiper/swiper.js +12 -5
  94. package/dist/collection/components/swiper/swiper.js.map +1 -1
  95. package/dist/collection/components/tabbar/tabbar-item.js +7 -1
  96. package/dist/collection/components/tabbar/tabbar-item.js.map +1 -1
  97. package/dist/collection/components/tabbar/tabbar.js +4 -17
  98. package/dist/collection/components/tabbar/tabbar.js.map +1 -1
  99. package/dist/collection/components/video/video.js +23 -0
  100. package/dist/collection/components/video/video.js.map +1 -1
  101. package/dist/collection/utils/index.js +3 -0
  102. package/dist/collection/utils/index.js.map +1 -1
  103. package/dist/components/helper.js +15 -0
  104. package/dist/components/helper.js.map +1 -0
  105. package/dist/components/hls.js +27622 -0
  106. package/dist/components/hls.js.map +1 -0
  107. package/dist/components/index.d.ts +106 -0
  108. package/dist/components/index.js +79 -0
  109. package/dist/components/index.js.map +1 -0
  110. package/dist/components/index2.js +78 -0
  111. package/dist/components/index2.js.map +1 -0
  112. package/dist/components/index3.js +36 -0
  113. package/dist/components/index3.js.map +1 -0
  114. package/dist/components/intersection-observer.js +728 -0
  115. package/dist/components/intersection-observer.js.map +1 -0
  116. package/dist/components/picker-group.js +220 -0
  117. package/dist/components/picker-group.js.map +1 -0
  118. package/dist/components/taro-ad-core.d.ts +11 -0
  119. package/dist/components/taro-ad-core.js +35 -0
  120. package/dist/components/taro-ad-core.js.map +1 -0
  121. package/dist/components/taro-ad-custom-core.d.ts +11 -0
  122. package/dist/components/taro-ad-custom-core.js +35 -0
  123. package/dist/components/taro-ad-custom-core.js.map +1 -0
  124. package/dist/components/taro-animation-video-core.d.ts +11 -0
  125. package/dist/components/taro-animation-video-core.js +35 -0
  126. package/dist/components/taro-animation-video-core.js.map +1 -0
  127. package/dist/components/taro-animation-view-core.d.ts +11 -0
  128. package/dist/components/taro-animation-view-core.js +35 -0
  129. package/dist/components/taro-animation-view-core.js.map +1 -0
  130. package/dist/components/taro-ar-camera-core.d.ts +11 -0
  131. package/dist/components/taro-ar-camera-core.js +35 -0
  132. package/dist/components/taro-ar-camera-core.js.map +1 -0
  133. package/dist/components/taro-audio-core.d.ts +11 -0
  134. package/dist/components/taro-audio-core.js +80 -0
  135. package/dist/components/taro-audio-core.js.map +1 -0
  136. package/dist/components/taro-aweme-data-core.d.ts +11 -0
  137. package/dist/components/taro-aweme-data-core.js +35 -0
  138. package/dist/components/taro-aweme-data-core.js.map +1 -0
  139. package/dist/components/taro-block-core.d.ts +11 -0
  140. package/dist/components/taro-block-core.js +31 -0
  141. package/dist/components/taro-block-core.js.map +1 -0
  142. package/dist/components/taro-button-core.d.ts +11 -0
  143. package/dist/components/taro-button-core.js +102 -0
  144. package/dist/components/taro-button-core.js.map +1 -0
  145. package/dist/components/taro-camera-core.d.ts +11 -0
  146. package/dist/components/taro-camera-core.js +35 -0
  147. package/dist/components/taro-camera-core.js.map +1 -0
  148. package/dist/components/taro-canvas-core.d.ts +11 -0
  149. package/dist/components/taro-canvas-core.js +57 -0
  150. package/dist/components/taro-canvas-core.js.map +1 -0
  151. package/dist/components/taro-checkbox-core.d.ts +11 -0
  152. package/dist/components/taro-checkbox-core.js +81 -0
  153. package/dist/components/taro-checkbox-core.js.map +1 -0
  154. package/dist/components/taro-checkbox-group-core.d.ts +11 -0
  155. package/dist/components/taro-checkbox-group-core.js +71 -0
  156. package/dist/components/taro-checkbox-group-core.js.map +1 -0
  157. package/dist/components/taro-comment-detail-core.d.ts +11 -0
  158. package/dist/components/taro-comment-detail-core.js +35 -0
  159. package/dist/components/taro-comment-detail-core.js.map +1 -0
  160. package/dist/components/taro-comment-list-core.d.ts +11 -0
  161. package/dist/components/taro-comment-list-core.js +35 -0
  162. package/dist/components/taro-comment-list-core.js.map +1 -0
  163. package/dist/components/taro-contact-button-core.d.ts +11 -0
  164. package/dist/components/taro-contact-button-core.js +35 -0
  165. package/dist/components/taro-contact-button-core.js.map +1 -0
  166. package/dist/components/taro-cover-image-core.d.ts +11 -0
  167. package/dist/components/taro-cover-image-core.js +52 -0
  168. package/dist/components/taro-cover-image-core.js.map +1 -0
  169. package/dist/components/taro-cover-view-core.d.ts +11 -0
  170. package/dist/components/taro-cover-view-core.js +89 -0
  171. package/dist/components/taro-cover-view-core.js.map +1 -0
  172. package/dist/components/taro-custom-wrapper-core.d.ts +11 -0
  173. package/dist/components/taro-custom-wrapper-core.js +31 -0
  174. package/dist/components/taro-custom-wrapper-core.js.map +1 -0
  175. package/dist/components/taro-editor-core.d.ts +11 -0
  176. package/dist/components/taro-editor-core.js +35 -0
  177. package/dist/components/taro-editor-core.js.map +1 -0
  178. package/dist/components/taro-follow-swan-core.d.ts +11 -0
  179. package/dist/components/taro-follow-swan-core.js +35 -0
  180. package/dist/components/taro-follow-swan-core.js.map +1 -0
  181. package/dist/components/taro-form-core.d.ts +11 -0
  182. package/dist/components/taro-form-core.js +140 -0
  183. package/dist/components/taro-form-core.js.map +1 -0
  184. package/dist/components/taro-functional-page-navigator-core.d.ts +11 -0
  185. package/dist/components/taro-functional-page-navigator-core.js +35 -0
  186. package/dist/components/taro-functional-page-navigator-core.js.map +1 -0
  187. package/dist/components/taro-icon-core.d.ts +11 -0
  188. package/dist/components/taro-icon-core.js +48 -0
  189. package/dist/components/taro-icon-core.js.map +1 -0
  190. package/dist/components/taro-image-core.d.ts +11 -0
  191. package/dist/components/taro-image-core.js +81 -0
  192. package/dist/components/taro-image-core.js.map +1 -0
  193. package/dist/components/taro-inline-payment-panel-core.d.ts +11 -0
  194. package/dist/components/taro-inline-payment-panel-core.js +35 -0
  195. package/dist/components/taro-inline-payment-panel-core.js.map +1 -0
  196. package/dist/components/taro-input-core.d.ts +11 -0
  197. package/dist/components/taro-input-core.js +246 -0
  198. package/dist/components/taro-input-core.js.map +1 -0
  199. package/dist/components/taro-keyboard-accessory-core.d.ts +11 -0
  200. package/dist/components/taro-keyboard-accessory-core.js +35 -0
  201. package/dist/components/taro-keyboard-accessory-core.js.map +1 -0
  202. package/dist/components/taro-label-core.d.ts +11 -0
  203. package/dist/components/taro-label-core.js +34 -0
  204. package/dist/components/taro-label-core.js.map +1 -0
  205. package/dist/components/taro-lifestyle-core.d.ts +11 -0
  206. package/dist/components/taro-lifestyle-core.js +35 -0
  207. package/dist/components/taro-lifestyle-core.js.map +1 -0
  208. package/dist/components/taro-like-core.d.ts +11 -0
  209. package/dist/components/taro-like-core.js +35 -0
  210. package/dist/components/taro-like-core.js.map +1 -0
  211. package/dist/components/taro-live-player-core.d.ts +11 -0
  212. package/dist/components/taro-live-player-core.js +35 -0
  213. package/dist/components/taro-live-player-core.js.map +1 -0
  214. package/dist/components/taro-live-pusher-core.d.ts +11 -0
  215. package/dist/components/taro-live-pusher-core.js +35 -0
  216. package/dist/components/taro-live-pusher-core.js.map +1 -0
  217. package/dist/components/taro-login-core.d.ts +11 -0
  218. package/dist/components/taro-login-core.js +35 -0
  219. package/dist/components/taro-login-core.js.map +1 -0
  220. package/dist/components/taro-lottie-core.d.ts +11 -0
  221. package/dist/components/taro-lottie-core.js +35 -0
  222. package/dist/components/taro-lottie-core.js.map +1 -0
  223. package/dist/components/taro-map-core.d.ts +11 -0
  224. package/dist/components/taro-map-core.js +35 -0
  225. package/dist/components/taro-map-core.js.map +1 -0
  226. package/dist/components/taro-match-media-core.d.ts +11 -0
  227. package/dist/components/taro-match-media-core.js +35 -0
  228. package/dist/components/taro-match-media-core.js.map +1 -0
  229. package/dist/components/taro-movable-area-core.d.ts +11 -0
  230. package/dist/components/taro-movable-area-core.js +175 -0
  231. package/dist/components/taro-movable-area-core.js.map +1 -0
  232. package/dist/components/taro-movable-view-core.d.ts +11 -0
  233. package/dist/components/taro-movable-view-core.js +361 -0
  234. package/dist/components/taro-movable-view-core.js.map +1 -0
  235. package/dist/components/taro-native-slot-core.d.ts +11 -0
  236. package/dist/components/taro-native-slot-core.js +35 -0
  237. package/dist/components/taro-native-slot-core.js.map +1 -0
  238. package/dist/components/taro-navigation-bar-core.d.ts +11 -0
  239. package/dist/components/taro-navigation-bar-core.js +35 -0
  240. package/dist/components/taro-navigation-bar-core.js.map +1 -0
  241. package/dist/components/taro-navigator-core.d.ts +11 -0
  242. package/dist/components/taro-navigator-core.js +96 -0
  243. package/dist/components/taro-navigator-core.js.map +1 -0
  244. package/dist/components/taro-official-account-core.d.ts +11 -0
  245. package/dist/components/taro-official-account-core.js +35 -0
  246. package/dist/components/taro-official-account-core.js.map +1 -0
  247. package/dist/components/taro-open-data-core.d.ts +11 -0
  248. package/dist/components/taro-open-data-core.js +35 -0
  249. package/dist/components/taro-open-data-core.js.map +1 -0
  250. package/dist/components/taro-page-container-core.d.ts +11 -0
  251. package/dist/components/taro-page-container-core.js +35 -0
  252. package/dist/components/taro-page-container-core.js.map +1 -0
  253. package/dist/components/taro-page-meta-core.d.ts +11 -0
  254. package/dist/components/taro-page-meta-core.js +35 -0
  255. package/dist/components/taro-page-meta-core.js.map +1 -0
  256. package/dist/components/taro-picker-core.d.ts +11 -0
  257. package/dist/components/taro-picker-core.js +538 -0
  258. package/dist/components/taro-picker-core.js.map +1 -0
  259. package/dist/components/taro-picker-group.d.ts +11 -0
  260. package/dist/components/taro-picker-group.js +8 -0
  261. package/dist/components/taro-picker-group.js.map +1 -0
  262. package/dist/components/taro-picker-view-column-core.d.ts +11 -0
  263. package/dist/components/taro-picker-view-column-core.js +115 -0
  264. package/dist/components/taro-picker-view-column-core.js.map +1 -0
  265. package/dist/components/taro-picker-view-core.d.ts +11 -0
  266. package/dist/components/taro-picker-view-core.js +114 -0
  267. package/dist/components/taro-picker-view-core.js.map +1 -0
  268. package/dist/components/taro-progress-core.d.ts +11 -0
  269. package/dist/components/taro-progress-core.js +62 -0
  270. package/dist/components/taro-progress-core.js.map +1 -0
  271. package/dist/components/taro-pull-to-refresh.d.ts +11 -0
  272. package/dist/components/taro-pull-to-refresh.js +284 -0
  273. package/dist/components/taro-pull-to-refresh.js.map +1 -0
  274. package/dist/components/taro-radio-core.d.ts +11 -0
  275. package/dist/components/taro-radio-core.js +83 -0
  276. package/dist/components/taro-radio-core.js.map +1 -0
  277. package/dist/components/taro-radio-group-core.d.ts +11 -0
  278. package/dist/components/taro-radio-group-core.js +82 -0
  279. package/dist/components/taro-radio-group-core.js.map +1 -0
  280. package/dist/components/taro-rich-text-core.d.ts +11 -0
  281. package/dist/components/taro-rich-text-core.js +86 -0
  282. package/dist/components/taro-rich-text-core.js.map +1 -0
  283. package/dist/components/taro-root-portal-core.d.ts +11 -0
  284. package/dist/components/taro-root-portal-core.js +35 -0
  285. package/dist/components/taro-root-portal-core.js.map +1 -0
  286. package/dist/components/taro-rtc-room-core.d.ts +11 -0
  287. package/dist/components/taro-rtc-room-core.js +35 -0
  288. package/dist/components/taro-rtc-room-core.js.map +1 -0
  289. package/dist/components/taro-rtc-room-item-core.d.ts +11 -0
  290. package/dist/components/taro-rtc-room-item-core.js +35 -0
  291. package/dist/components/taro-rtc-room-item-core.js.map +1 -0
  292. package/dist/components/taro-scroll-view-core.d.ts +11 -0
  293. package/dist/components/taro-scroll-view-core.js +182 -0
  294. package/dist/components/taro-scroll-view-core.js.map +1 -0
  295. package/dist/components/taro-share-element-core.d.ts +11 -0
  296. package/dist/components/taro-share-element-core.js +35 -0
  297. package/dist/components/taro-share-element-core.js.map +1 -0
  298. package/dist/components/taro-slider-core.d.ts +11 -0
  299. package/dist/components/taro-slider-core.js +196 -0
  300. package/dist/components/taro-slider-core.js.map +1 -0
  301. package/dist/components/taro-slot-core.d.ts +11 -0
  302. package/dist/components/taro-slot-core.js +35 -0
  303. package/dist/components/taro-slot-core.js.map +1 -0
  304. package/dist/components/taro-swiper-core.d.ts +11 -0
  305. package/dist/components/taro-swiper-core.js +10172 -0
  306. package/dist/components/taro-swiper-core.js.map +1 -0
  307. package/dist/components/taro-swiper-item-core.d.ts +11 -0
  308. package/dist/components/taro-swiper-item-core.js +70 -0
  309. package/dist/components/taro-swiper-item-core.js.map +1 -0
  310. package/dist/components/taro-switch-core.d.ts +11 -0
  311. package/dist/components/taro-switch-core.js +87 -0
  312. package/dist/components/taro-switch-core.js.map +1 -0
  313. package/dist/components/taro-tab-item-core.d.ts +11 -0
  314. package/dist/components/taro-tab-item-core.js +35 -0
  315. package/dist/components/taro-tab-item-core.js.map +1 -0
  316. package/dist/components/taro-tabbar.d.ts +11 -0
  317. package/dist/components/taro-tabbar.js +455 -0
  318. package/dist/components/taro-tabbar.js.map +1 -0
  319. package/dist/components/taro-tabs-core.d.ts +11 -0
  320. package/dist/components/taro-tabs-core.js +35 -0
  321. package/dist/components/taro-tabs-core.js.map +1 -0
  322. package/dist/components/taro-text-core.d.ts +11 -0
  323. package/dist/components/taro-text-core.js +41 -0
  324. package/dist/components/taro-text-core.js.map +1 -0
  325. package/dist/components/taro-textarea-core.d.ts +11 -0
  326. package/dist/components/taro-textarea-core.js +164 -0
  327. package/dist/components/taro-textarea-core.js.map +1 -0
  328. package/dist/components/taro-video-control.d.ts +11 -0
  329. package/dist/components/taro-video-control.js +8 -0
  330. package/dist/components/taro-video-control.js.map +1 -0
  331. package/dist/components/taro-video-core.d.ts +11 -0
  332. package/dist/components/taro-video-core.js +490 -0
  333. package/dist/components/taro-video-core.js.map +1 -0
  334. package/dist/components/taro-video-danmu.d.ts +11 -0
  335. package/dist/components/taro-video-danmu.js +8 -0
  336. package/dist/components/taro-video-danmu.js.map +1 -0
  337. package/dist/components/taro-view-core.d.ts +11 -0
  338. package/dist/components/taro-view-core.js +101 -0
  339. package/dist/components/taro-view-core.js.map +1 -0
  340. package/dist/components/taro-voip-room-core.d.ts +11 -0
  341. package/dist/components/taro-voip-room-core.js +35 -0
  342. package/dist/components/taro-voip-room-core.js.map +1 -0
  343. package/dist/components/taro-web-view-core.d.ts +11 -0
  344. package/dist/components/taro-web-view-core.js +46 -0
  345. package/dist/components/taro-web-view-core.js.map +1 -0
  346. package/dist/components/video-control.js +233 -0
  347. package/dist/components/video-control.js.map +1 -0
  348. package/dist/components/video-danmu.js +110 -0
  349. package/dist/components/video-danmu.js.map +1 -0
  350. package/dist/esm/index-c948674f.js +2037 -0
  351. package/dist/esm/index-c948674f.js.map +1 -0
  352. package/dist/esm/index-d1b03e47.js +36 -0
  353. package/dist/esm/index-d1b03e47.js.map +1 -0
  354. package/dist/esm/loader.js +4 -3
  355. package/dist/esm/loader.js.map +1 -1
  356. package/dist/esm/polyfills/css-shim.js +1 -1
  357. package/dist/esm/taro-ad-core.entry.js +1 -1
  358. package/dist/esm/taro-ad-custom-core.entry.js +1 -1
  359. package/dist/esm/taro-animation-video-core.entry.js +1 -1
  360. package/dist/esm/taro-animation-view-core.entry.js +1 -1
  361. package/dist/esm/taro-ar-camera-core.entry.js +1 -1
  362. package/dist/esm/taro-audio-core.entry.js +1 -1
  363. package/dist/esm/taro-aweme-data-core.entry.js +1 -1
  364. package/dist/esm/taro-block-core.entry.js +1 -1
  365. package/dist/esm/taro-button-core.entry.js +1 -1
  366. package/dist/esm/taro-camera-core.entry.js +1 -1
  367. package/dist/esm/taro-canvas-core.entry.js +1 -1
  368. package/dist/esm/taro-checkbox-core_2.entry.js +1 -1
  369. package/dist/esm/taro-comment-detail-core.entry.js +1 -1
  370. package/dist/esm/taro-comment-list-core.entry.js +1 -1
  371. package/dist/esm/taro-components.js +4 -3
  372. package/dist/esm/taro-components.js.map +1 -1
  373. package/dist/esm/taro-contact-button-core.entry.js +1 -1
  374. package/dist/esm/taro-cover-image-core.entry.js +1 -1
  375. package/dist/esm/taro-cover-view-core.entry.js +1 -1
  376. package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
  377. package/dist/esm/taro-editor-core.entry.js +1 -1
  378. package/dist/esm/taro-follow-swan-core.entry.js +1 -1
  379. package/dist/esm/taro-form-core.entry.js +1 -1
  380. package/dist/esm/taro-functional-page-navigator-core.entry.js +1 -1
  381. package/dist/esm/taro-icon-core.entry.js +1 -1
  382. package/dist/esm/taro-image-core.entry.js +1 -1
  383. package/dist/esm/taro-inline-payment-panel-core.entry.js +1 -1
  384. package/dist/esm/taro-input-core.entry.js +2 -2
  385. package/dist/esm/taro-input-core.entry.js.map +1 -1
  386. package/dist/esm/taro-keyboard-accessory-core.entry.js +1 -1
  387. package/dist/esm/taro-label-core.entry.js +1 -1
  388. package/dist/esm/taro-lifestyle-core.entry.js +1 -1
  389. package/dist/esm/taro-like-core.entry.js +1 -1
  390. package/dist/esm/taro-live-player-core.entry.js +1 -1
  391. package/dist/esm/taro-live-pusher-core.entry.js +1 -1
  392. package/dist/esm/taro-login-core.entry.js +1 -1
  393. package/dist/esm/taro-lottie-core.entry.js +1 -1
  394. package/dist/esm/taro-map-core.entry.js +1 -1
  395. package/dist/esm/taro-match-media-core.entry.js +1 -1
  396. package/dist/esm/taro-movable-area-core_2.entry.js +1 -1
  397. package/dist/esm/taro-native-slot-core.entry.js +1 -1
  398. package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
  399. package/dist/esm/taro-navigator-core.entry.js +1 -1
  400. package/dist/esm/taro-navigator-core.entry.js.map +1 -1
  401. package/dist/esm/taro-official-account-core.entry.js +1 -1
  402. package/dist/esm/taro-open-data-core.entry.js +1 -1
  403. package/dist/esm/taro-page-container-core.entry.js +1 -1
  404. package/dist/esm/taro-page-meta-core.entry.js +1 -1
  405. package/dist/esm/taro-picker-core_2.entry.js +1 -1
  406. package/dist/esm/taro-picker-view-column-core_2.entry.js +2 -2
  407. package/dist/esm/taro-progress-core.entry.js +1 -1
  408. package/dist/esm/taro-pull-to-refresh.entry.js +1 -1
  409. package/dist/esm/taro-radio-core_2.entry.js +1 -1
  410. package/dist/esm/taro-rich-text-core.entry.js +1 -1
  411. package/dist/esm/taro-root-portal-core.entry.js +1 -1
  412. package/dist/esm/taro-rtc-room-core.entry.js +1 -1
  413. package/dist/esm/taro-rtc-room-item-core.entry.js +1 -1
  414. package/dist/esm/taro-scroll-view-core.entry.js +48 -52
  415. package/dist/esm/taro-scroll-view-core.entry.js.map +1 -1
  416. package/dist/esm/taro-share-element-core.entry.js +1 -1
  417. package/dist/esm/taro-slider-core.entry.js +1 -1
  418. package/dist/esm/taro-slot-core.entry.js +1 -1
  419. package/dist/esm/taro-swiper-core_2.entry.js +49 -8
  420. package/dist/esm/taro-swiper-core_2.entry.js.map +1 -1
  421. package/dist/esm/taro-switch-core.entry.js +1 -1
  422. package/dist/esm/taro-tab-item-core.entry.js +1 -1
  423. package/dist/esm/taro-tabbar.entry.js +16 -18
  424. package/dist/esm/taro-tabbar.entry.js.map +1 -1
  425. package/dist/esm/taro-tabs-core.entry.js +1 -1
  426. package/dist/esm/taro-text-core.entry.js +1 -1
  427. package/dist/esm/taro-textarea-core.entry.js +1 -1
  428. package/dist/esm/taro-video-control_3.entry.js +6 -2
  429. package/dist/esm/taro-video-control_3.entry.js.map +1 -1
  430. package/dist/esm/taro-view-core.entry.js +1 -1
  431. package/dist/esm/taro-voip-room-core.entry.js +1 -1
  432. package/dist/esm/taro-web-view-core.entry.js +1 -1
  433. package/dist/esm-es5/helper-3d0ecf0f.js.map +1 -1
  434. package/dist/esm-es5/hls-221423a1.js.map +1 -1
  435. package/dist/esm-es5/index-1d8e8acd.js.map +1 -1
  436. package/dist/esm-es5/index-c948674f.js +3 -0
  437. package/dist/esm-es5/index-c948674f.js.map +1 -0
  438. package/dist/esm-es5/index-d1b03e47.js +2 -0
  439. package/dist/esm-es5/index-d1b03e47.js.map +1 -0
  440. package/dist/esm-es5/index.js.map +1 -1
  441. package/dist/esm-es5/intersection-observer-8e4c7135.js.map +1 -1
  442. package/dist/esm-es5/loader.js +1 -1
  443. package/dist/esm-es5/loader.js.map +1 -1
  444. package/dist/esm-es5/taro-ad-core.entry.js +1 -1
  445. package/dist/esm-es5/taro-ad-core.entry.js.map +1 -1
  446. package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
  447. package/dist/esm-es5/taro-ad-custom-core.entry.js.map +1 -1
  448. package/dist/esm-es5/taro-animation-video-core.entry.js +1 -1
  449. package/dist/esm-es5/taro-animation-video-core.entry.js.map +1 -1
  450. package/dist/esm-es5/taro-animation-view-core.entry.js +1 -1
  451. package/dist/esm-es5/taro-animation-view-core.entry.js.map +1 -1
  452. package/dist/esm-es5/taro-ar-camera-core.entry.js +1 -1
  453. package/dist/esm-es5/taro-ar-camera-core.entry.js.map +1 -1
  454. package/dist/esm-es5/taro-audio-core.entry.js +1 -1
  455. package/dist/esm-es5/taro-audio-core.entry.js.map +1 -1
  456. package/dist/esm-es5/taro-aweme-data-core.entry.js +1 -1
  457. package/dist/esm-es5/taro-aweme-data-core.entry.js.map +1 -1
  458. package/dist/esm-es5/taro-block-core.entry.js +1 -1
  459. package/dist/esm-es5/taro-block-core.entry.js.map +1 -1
  460. package/dist/esm-es5/taro-button-core.entry.js +1 -1
  461. package/dist/esm-es5/taro-button-core.entry.js.map +1 -1
  462. package/dist/esm-es5/taro-camera-core.entry.js +1 -1
  463. package/dist/esm-es5/taro-camera-core.entry.js.map +1 -1
  464. package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
  465. package/dist/esm-es5/taro-canvas-core.entry.js.map +1 -1
  466. package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
  467. package/dist/esm-es5/taro-checkbox-core_2.entry.js.map +1 -1
  468. package/dist/esm-es5/taro-comment-detail-core.entry.js +1 -1
  469. package/dist/esm-es5/taro-comment-detail-core.entry.js.map +1 -1
  470. package/dist/esm-es5/taro-comment-list-core.entry.js +1 -1
  471. package/dist/esm-es5/taro-comment-list-core.entry.js.map +1 -1
  472. package/dist/esm-es5/taro-components.js +1 -1
  473. package/dist/esm-es5/taro-components.js.map +1 -1
  474. package/dist/esm-es5/taro-contact-button-core.entry.js +1 -1
  475. package/dist/esm-es5/taro-contact-button-core.entry.js.map +1 -1
  476. package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
  477. package/dist/esm-es5/taro-cover-image-core.entry.js.map +1 -1
  478. package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
  479. package/dist/esm-es5/taro-cover-view-core.entry.js.map +1 -1
  480. package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
  481. package/dist/esm-es5/taro-custom-wrapper-core.entry.js.map +1 -1
  482. package/dist/esm-es5/taro-editor-core.entry.js +1 -1
  483. package/dist/esm-es5/taro-editor-core.entry.js.map +1 -1
  484. package/dist/esm-es5/taro-follow-swan-core.entry.js +1 -1
  485. package/dist/esm-es5/taro-follow-swan-core.entry.js.map +1 -1
  486. package/dist/esm-es5/taro-form-core.entry.js +1 -1
  487. package/dist/esm-es5/taro-form-core.entry.js.map +1 -1
  488. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
  489. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js.map +1 -1
  490. package/dist/esm-es5/taro-icon-core.entry.js +1 -1
  491. package/dist/esm-es5/taro-icon-core.entry.js.map +1 -1
  492. package/dist/esm-es5/taro-image-core.entry.js +1 -1
  493. package/dist/esm-es5/taro-image-core.entry.js.map +1 -1
  494. package/dist/esm-es5/taro-inline-payment-panel-core.entry.js +1 -1
  495. package/dist/esm-es5/taro-inline-payment-panel-core.entry.js.map +1 -1
  496. package/dist/esm-es5/taro-input-core.entry.js +1 -1
  497. package/dist/esm-es5/taro-input-core.entry.js.map +1 -1
  498. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
  499. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js.map +1 -1
  500. package/dist/esm-es5/taro-label-core.entry.js +1 -1
  501. package/dist/esm-es5/taro-label-core.entry.js.map +1 -1
  502. package/dist/esm-es5/taro-lifestyle-core.entry.js +1 -1
  503. package/dist/esm-es5/taro-lifestyle-core.entry.js.map +1 -1
  504. package/dist/esm-es5/taro-like-core.entry.js +1 -1
  505. package/dist/esm-es5/taro-like-core.entry.js.map +1 -1
  506. package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
  507. package/dist/esm-es5/taro-live-player-core.entry.js.map +1 -1
  508. package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
  509. package/dist/esm-es5/taro-live-pusher-core.entry.js.map +1 -1
  510. package/dist/esm-es5/taro-login-core.entry.js +1 -1
  511. package/dist/esm-es5/taro-login-core.entry.js.map +1 -1
  512. package/dist/esm-es5/taro-lottie-core.entry.js +1 -1
  513. package/dist/esm-es5/taro-lottie-core.entry.js.map +1 -1
  514. package/dist/esm-es5/taro-map-core.entry.js +1 -1
  515. package/dist/esm-es5/taro-map-core.entry.js.map +1 -1
  516. package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
  517. package/dist/esm-es5/taro-match-media-core.entry.js.map +1 -1
  518. package/dist/esm-es5/taro-movable-area-core_2.entry.js +1 -1
  519. package/dist/esm-es5/taro-movable-area-core_2.entry.js.map +1 -1
  520. package/dist/esm-es5/taro-native-slot-core.entry.js +1 -1
  521. package/dist/esm-es5/taro-native-slot-core.entry.js.map +1 -1
  522. package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
  523. package/dist/esm-es5/taro-navigation-bar-core.entry.js.map +1 -1
  524. package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
  525. package/dist/esm-es5/taro-navigator-core.entry.js.map +1 -1
  526. package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
  527. package/dist/esm-es5/taro-official-account-core.entry.js.map +1 -1
  528. package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
  529. package/dist/esm-es5/taro-open-data-core.entry.js.map +1 -1
  530. package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
  531. package/dist/esm-es5/taro-page-container-core.entry.js.map +1 -1
  532. package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
  533. package/dist/esm-es5/taro-page-meta-core.entry.js.map +1 -1
  534. package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
  535. package/dist/esm-es5/taro-picker-core_2.entry.js.map +1 -1
  536. package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +1 -1
  537. package/dist/esm-es5/taro-picker-view-column-core_2.entry.js.map +1 -1
  538. package/dist/esm-es5/taro-progress-core.entry.js +1 -1
  539. package/dist/esm-es5/taro-progress-core.entry.js.map +1 -1
  540. package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
  541. package/dist/esm-es5/taro-pull-to-refresh.entry.js.map +1 -1
  542. package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
  543. package/dist/esm-es5/taro-radio-core_2.entry.js.map +1 -1
  544. package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
  545. package/dist/esm-es5/taro-rich-text-core.entry.js.map +1 -1
  546. package/dist/esm-es5/taro-root-portal-core.entry.js +1 -1
  547. package/dist/esm-es5/taro-root-portal-core.entry.js.map +1 -1
  548. package/dist/esm-es5/taro-rtc-room-core.entry.js +1 -1
  549. package/dist/esm-es5/taro-rtc-room-core.entry.js.map +1 -1
  550. package/dist/esm-es5/taro-rtc-room-item-core.entry.js +1 -1
  551. package/dist/esm-es5/taro-rtc-room-item-core.entry.js.map +1 -1
  552. package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
  553. package/dist/esm-es5/taro-scroll-view-core.entry.js.map +1 -1
  554. package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
  555. package/dist/esm-es5/taro-share-element-core.entry.js.map +1 -1
  556. package/dist/esm-es5/taro-slider-core.entry.js +1 -1
  557. package/dist/esm-es5/taro-slider-core.entry.js.map +1 -1
  558. package/dist/esm-es5/taro-slot-core.entry.js +1 -1
  559. package/dist/esm-es5/taro-slot-core.entry.js.map +1 -1
  560. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  561. package/dist/esm-es5/taro-swiper-core_2.entry.js.map +1 -1
  562. package/dist/esm-es5/taro-switch-core.entry.js +1 -1
  563. package/dist/esm-es5/taro-switch-core.entry.js.map +1 -1
  564. package/dist/esm-es5/taro-tab-item-core.entry.js +1 -1
  565. package/dist/esm-es5/taro-tab-item-core.entry.js.map +1 -1
  566. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  567. package/dist/esm-es5/taro-tabbar.entry.js.map +1 -1
  568. package/dist/esm-es5/taro-tabs-core.entry.js +1 -1
  569. package/dist/esm-es5/taro-tabs-core.entry.js.map +1 -1
  570. package/dist/esm-es5/taro-text-core.entry.js +1 -1
  571. package/dist/esm-es5/taro-text-core.entry.js.map +1 -1
  572. package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
  573. package/dist/esm-es5/taro-textarea-core.entry.js.map +1 -1
  574. package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
  575. package/dist/esm-es5/taro-video-control_3.entry.js.map +1 -1
  576. package/dist/esm-es5/taro-view-core.entry.js +1 -1
  577. package/dist/esm-es5/taro-view-core.entry.js.map +1 -1
  578. package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
  579. package/dist/esm-es5/taro-voip-room-core.entry.js.map +1 -1
  580. package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
  581. package/dist/esm-es5/taro-web-view-core.entry.js.map +1 -1
  582. package/dist/taro-components/index.esm.js.map +1 -1
  583. package/dist/taro-components/p-020bcd8c.entry.js +2 -0
  584. package/dist/taro-components/p-020bcd8c.entry.js.map +1 -0
  585. package/dist/taro-components/p-03d4de13.entry.js +2 -0
  586. package/dist/taro-components/p-03d4de13.entry.js.map +1 -0
  587. package/dist/taro-components/p-05f3f84a.entry.js +2 -0
  588. package/dist/taro-components/p-05f3f84a.entry.js.map +1 -0
  589. package/dist/taro-components/p-087bf23a.system.entry.js +2 -0
  590. package/dist/taro-components/p-087bf23a.system.entry.js.map +1 -0
  591. package/dist/taro-components/p-0895120a.system.entry.js +2 -0
  592. package/dist/taro-components/p-0895120a.system.entry.js.map +1 -0
  593. package/dist/taro-components/p-08bb8dfc.system.entry.js +2 -0
  594. package/dist/taro-components/p-08bb8dfc.system.entry.js.map +1 -0
  595. package/dist/taro-components/p-09db02e6.entry.js +2 -0
  596. package/dist/taro-components/p-09db02e6.entry.js.map +1 -0
  597. package/dist/taro-components/p-0a165ad3.system.entry.js +2 -0
  598. package/dist/taro-components/p-0a165ad3.system.entry.js.map +1 -0
  599. package/dist/taro-components/p-0a9b984e.system.entry.js +2 -0
  600. package/dist/taro-components/p-0a9b984e.system.entry.js.map +1 -0
  601. package/dist/taro-components/p-0accc602.entry.js +2 -0
  602. package/dist/taro-components/p-0accc602.entry.js.map +1 -0
  603. package/dist/taro-components/p-0faf45d5.entry.js +2 -0
  604. package/dist/taro-components/p-0faf45d5.entry.js.map +1 -0
  605. package/dist/taro-components/p-10046f1a.system.entry.js +2 -0
  606. package/dist/taro-components/p-10046f1a.system.entry.js.map +1 -0
  607. package/dist/taro-components/p-10be7fb5.system.entry.js +2 -0
  608. package/dist/taro-components/p-10be7fb5.system.entry.js.map +1 -0
  609. package/dist/taro-components/p-15e45ed6.system.js.map +1 -1
  610. package/dist/taro-components/p-17302fe9.system.entry.js +2 -0
  611. package/dist/taro-components/p-17302fe9.system.entry.js.map +1 -0
  612. package/dist/taro-components/p-1743a04b.system.js.map +1 -1
  613. package/dist/taro-components/p-1941d333.system.entry.js +2 -0
  614. package/dist/taro-components/p-1941d333.system.entry.js.map +1 -0
  615. package/dist/taro-components/p-19e87e18.entry.js +2 -0
  616. package/dist/taro-components/p-19e87e18.entry.js.map +1 -0
  617. package/dist/taro-components/p-1a0e1932.system.js +3 -0
  618. package/dist/taro-components/p-1a0e1932.system.js.map +1 -0
  619. package/dist/taro-components/p-1c320250.system.entry.js +2 -0
  620. package/dist/taro-components/p-1c320250.system.entry.js.map +1 -0
  621. package/dist/taro-components/p-1c446c65.system.js +2 -0
  622. package/dist/taro-components/p-1c446c65.system.js.map +1 -0
  623. package/dist/taro-components/p-2024e133.system.entry.js +2 -0
  624. package/dist/taro-components/p-2024e133.system.entry.js.map +1 -0
  625. package/dist/taro-components/p-2049bdc4.entry.js +2 -0
  626. package/dist/taro-components/p-2049bdc4.entry.js.map +1 -0
  627. package/dist/taro-components/p-2357313b.entry.js +2 -0
  628. package/dist/taro-components/p-2357313b.entry.js.map +1 -0
  629. package/dist/taro-components/p-24c2fd23.entry.js +2 -0
  630. package/dist/taro-components/p-24c2fd23.entry.js.map +1 -0
  631. package/dist/taro-components/p-26889f3c.system.entry.js +2 -0
  632. package/dist/taro-components/p-26889f3c.system.entry.js.map +1 -0
  633. package/dist/taro-components/p-281278cf.entry.js +2 -0
  634. package/dist/taro-components/p-281278cf.entry.js.map +1 -0
  635. package/dist/taro-components/p-30f32fa2.system.entry.js +2 -0
  636. package/dist/taro-components/p-30f32fa2.system.entry.js.map +1 -0
  637. package/dist/taro-components/p-30fe0e81.system.entry.js +2 -0
  638. package/dist/taro-components/p-30fe0e81.system.entry.js.map +1 -0
  639. package/dist/taro-components/p-33223303.system.entry.js +2 -0
  640. package/dist/taro-components/p-33223303.system.entry.js.map +1 -0
  641. package/dist/taro-components/p-386ae2b2.entry.js +2 -0
  642. package/dist/taro-components/p-386ae2b2.entry.js.map +1 -0
  643. package/dist/taro-components/p-3b1d2d37.system.js.map +1 -1
  644. package/dist/taro-components/p-3bce88d9.entry.js +2 -0
  645. package/dist/taro-components/p-3bce88d9.entry.js.map +1 -0
  646. package/dist/taro-components/p-3f07f3d3.entry.js +2 -0
  647. package/dist/taro-components/p-3f07f3d3.entry.js.map +1 -0
  648. package/dist/taro-components/p-4086e546.system.entry.js +2 -0
  649. package/dist/taro-components/p-4086e546.system.entry.js.map +1 -0
  650. package/dist/taro-components/p-4190e20b.system.entry.js +2 -0
  651. package/dist/taro-components/p-4190e20b.system.entry.js.map +1 -0
  652. package/dist/taro-components/p-4263c9d9.entry.js +2 -0
  653. package/dist/taro-components/p-4263c9d9.entry.js.map +1 -0
  654. package/dist/taro-components/p-46244579.system.entry.js +2 -0
  655. package/dist/taro-components/p-46244579.system.entry.js.map +1 -0
  656. package/dist/taro-components/p-4915fdc1.system.entry.js +2 -0
  657. package/dist/taro-components/p-4915fdc1.system.entry.js.map +1 -0
  658. package/dist/taro-components/p-4a462c95.entry.js +2 -0
  659. package/dist/taro-components/p-4a462c95.entry.js.map +1 -0
  660. package/dist/taro-components/p-4bc85eb7.entry.js +2 -0
  661. package/dist/taro-components/p-4bc85eb7.entry.js.map +1 -0
  662. package/dist/taro-components/p-4d0da795.system.entry.js +2 -0
  663. package/dist/taro-components/p-4d0da795.system.entry.js.map +1 -0
  664. package/dist/taro-components/p-50ea2036.system.js.map +1 -1
  665. package/dist/taro-components/p-518146fd.system.entry.js +2 -0
  666. package/dist/taro-components/p-518146fd.system.entry.js.map +1 -0
  667. package/dist/taro-components/p-51b6fc09.system.entry.js +2 -0
  668. package/dist/taro-components/p-51b6fc09.system.entry.js.map +1 -0
  669. package/dist/taro-components/p-51caa3f3.entry.js +2 -0
  670. package/dist/taro-components/p-51caa3f3.entry.js.map +1 -0
  671. package/dist/taro-components/p-56da1da3.system.entry.js +2 -0
  672. package/dist/taro-components/p-56da1da3.system.entry.js.map +1 -0
  673. package/dist/taro-components/p-58877ef2.system.entry.js +2 -0
  674. package/dist/taro-components/p-58877ef2.system.entry.js.map +1 -0
  675. package/dist/taro-components/p-59590806.system.entry.js +2 -0
  676. package/dist/taro-components/p-59590806.system.entry.js.map +1 -0
  677. package/dist/taro-components/p-5d3acf86.entry.js +2 -0
  678. package/dist/taro-components/p-5d3acf86.entry.js.map +1 -0
  679. package/dist/taro-components/p-5f3c65f0.entry.js +2 -0
  680. package/dist/taro-components/p-5f3c65f0.entry.js.map +1 -0
  681. package/dist/taro-components/p-603ceecd.entry.js +2 -0
  682. package/dist/taro-components/p-603ceecd.entry.js.map +1 -0
  683. package/dist/taro-components/p-61f225ef.system.js.map +1 -1
  684. package/dist/taro-components/p-623b3eb6.system.entry.js +2 -0
  685. package/dist/taro-components/p-623b3eb6.system.entry.js.map +1 -0
  686. package/dist/taro-components/p-651586f8.system.entry.js +2 -0
  687. package/dist/taro-components/p-651586f8.system.entry.js.map +1 -0
  688. package/dist/taro-components/p-663e27a0.entry.js +2 -0
  689. package/dist/taro-components/p-663e27a0.entry.js.map +1 -0
  690. package/dist/taro-components/p-66b07ac0.entry.js +2 -0
  691. package/dist/taro-components/p-66b07ac0.entry.js.map +1 -0
  692. package/dist/taro-components/p-67c3a0ba.entry.js +2 -0
  693. package/dist/taro-components/p-67c3a0ba.entry.js.map +1 -0
  694. package/dist/taro-components/p-69f6784d.system.entry.js +2 -0
  695. package/dist/taro-components/p-69f6784d.system.entry.js.map +1 -0
  696. package/dist/taro-components/p-69fa7272.system.entry.js +2 -0
  697. package/dist/taro-components/p-69fa7272.system.entry.js.map +1 -0
  698. package/dist/taro-components/p-6a96da58.js.map +1 -1
  699. package/dist/taro-components/p-6bb1fdf2.entry.js +2 -0
  700. package/dist/taro-components/p-6bb1fdf2.entry.js.map +1 -0
  701. package/dist/taro-components/p-6dae898a.system.entry.js +2 -0
  702. package/dist/taro-components/p-6dae898a.system.entry.js.map +1 -0
  703. package/dist/taro-components/p-6f048097.system.entry.js +2 -0
  704. package/dist/taro-components/p-6f048097.system.entry.js.map +1 -0
  705. package/dist/taro-components/p-6f214fc3.system.entry.js +2 -0
  706. package/dist/taro-components/p-6f214fc3.system.entry.js.map +1 -0
  707. package/dist/taro-components/p-72f327e1.js.map +1 -1
  708. package/dist/taro-components/p-736053bb.system.entry.js +2 -0
  709. package/dist/taro-components/p-736053bb.system.entry.js.map +1 -0
  710. package/dist/taro-components/p-74bf8246.system.entry.js +2 -0
  711. package/dist/taro-components/p-74bf8246.system.entry.js.map +1 -0
  712. package/dist/taro-components/p-76724e58.js.map +1 -1
  713. package/dist/taro-components/p-76e6fbff.entry.js +2 -0
  714. package/dist/taro-components/p-76e6fbff.entry.js.map +1 -0
  715. package/dist/taro-components/p-780870eb.entry.js +2 -0
  716. package/dist/taro-components/p-780870eb.entry.js.map +1 -0
  717. package/dist/taro-components/p-78c30850.system.entry.js +2 -0
  718. package/dist/taro-components/p-78c30850.system.entry.js.map +1 -0
  719. package/dist/taro-components/p-78e3ebb9.js +3 -0
  720. package/dist/taro-components/p-78e3ebb9.js.map +1 -0
  721. package/dist/taro-components/p-7a2f11dc.entry.js +2 -0
  722. package/dist/taro-components/p-7a2f11dc.entry.js.map +1 -0
  723. package/dist/taro-components/p-7c1fec76.entry.js +2 -0
  724. package/dist/taro-components/p-7c1fec76.entry.js.map +1 -0
  725. package/dist/taro-components/p-7c6f0d5c.entry.js +2 -0
  726. package/dist/taro-components/p-7c6f0d5c.entry.js.map +1 -0
  727. package/dist/taro-components/p-7dd9c8da.system.entry.js +2 -0
  728. package/dist/taro-components/p-7dd9c8da.system.entry.js.map +1 -0
  729. package/dist/taro-components/p-8027e1c6.system.entry.js +2 -0
  730. package/dist/taro-components/p-8027e1c6.system.entry.js.map +1 -0
  731. package/dist/taro-components/p-828bd091.entry.js +2 -0
  732. package/dist/taro-components/p-828bd091.entry.js.map +1 -0
  733. package/dist/taro-components/p-8425ff09.entry.js +2 -0
  734. package/dist/taro-components/p-8425ff09.entry.js.map +1 -0
  735. package/dist/taro-components/p-8594d1e5.entry.js +2 -0
  736. package/dist/taro-components/p-8594d1e5.entry.js.map +1 -0
  737. package/dist/taro-components/p-8625c29c.entry.js +2 -0
  738. package/dist/taro-components/p-8625c29c.entry.js.map +1 -0
  739. package/dist/taro-components/p-88d64daa.system.entry.js +2 -0
  740. package/dist/taro-components/p-88d64daa.system.entry.js.map +1 -0
  741. package/dist/taro-components/p-88fbacdb.entry.js +2 -0
  742. package/dist/taro-components/p-88fbacdb.entry.js.map +1 -0
  743. package/dist/taro-components/p-895cd7c9.system.entry.js +2 -0
  744. package/dist/taro-components/p-895cd7c9.system.entry.js.map +1 -0
  745. package/dist/taro-components/p-8d2101be.system.entry.js +2 -0
  746. package/dist/taro-components/p-8d2101be.system.entry.js.map +1 -0
  747. package/dist/taro-components/p-8e5cc8fe.system.entry.js +2 -0
  748. package/dist/taro-components/p-8e5cc8fe.system.entry.js.map +1 -0
  749. package/dist/taro-components/p-908ddbb0.entry.js +2 -0
  750. package/dist/taro-components/p-908ddbb0.entry.js.map +1 -0
  751. package/dist/taro-components/p-91f8cd40.entry.js +2 -0
  752. package/dist/taro-components/p-91f8cd40.entry.js.map +1 -0
  753. package/dist/taro-components/p-93ccd68a.entry.js +2 -0
  754. package/dist/taro-components/p-93ccd68a.entry.js.map +1 -0
  755. package/dist/taro-components/p-955fbcfa.entry.js +2 -0
  756. package/dist/taro-components/p-955fbcfa.entry.js.map +1 -0
  757. package/dist/taro-components/p-95f70aea.system.entry.js +2 -0
  758. package/dist/taro-components/p-95f70aea.system.entry.js.map +1 -0
  759. package/dist/taro-components/p-97782cdd.system.entry.js +2 -0
  760. package/dist/taro-components/p-97782cdd.system.entry.js.map +1 -0
  761. package/dist/taro-components/p-982e431d.entry.js +2 -0
  762. package/dist/taro-components/p-982e431d.entry.js.map +1 -0
  763. package/dist/taro-components/p-9bc9f3a0.entry.js +2 -0
  764. package/dist/taro-components/p-9bc9f3a0.entry.js.map +1 -0
  765. package/dist/taro-components/p-9d4fa0d3.system.entry.js +2 -0
  766. package/dist/taro-components/p-9d4fa0d3.system.entry.js.map +1 -0
  767. package/dist/taro-components/p-a23a21e1.entry.js +2 -0
  768. package/dist/taro-components/p-a23a21e1.entry.js.map +1 -0
  769. package/dist/taro-components/p-a7789ed6.entry.js +2 -0
  770. package/dist/taro-components/p-a7789ed6.entry.js.map +1 -0
  771. package/dist/taro-components/p-adc37a00.entry.js +2 -0
  772. package/dist/taro-components/p-adc37a00.entry.js.map +1 -0
  773. package/dist/taro-components/p-ae3f1ed4.system.entry.js +2 -0
  774. package/dist/taro-components/p-ae3f1ed4.system.entry.js.map +1 -0
  775. package/dist/taro-components/p-b1249ebb.system.entry.js +2 -0
  776. package/dist/taro-components/p-b1249ebb.system.entry.js.map +1 -0
  777. package/dist/taro-components/p-b1c972e2.system.entry.js +2 -0
  778. package/dist/taro-components/p-b1c972e2.system.entry.js.map +1 -0
  779. package/dist/taro-components/p-b2bb02d7.system.entry.js +2 -0
  780. package/dist/taro-components/p-b2bb02d7.system.entry.js.map +1 -0
  781. package/dist/taro-components/p-b313c11a.entry.js +2 -0
  782. package/dist/taro-components/p-b313c11a.entry.js.map +1 -0
  783. package/dist/taro-components/p-b39b973e.entry.js +2 -0
  784. package/dist/taro-components/p-b39b973e.entry.js.map +1 -0
  785. package/dist/taro-components/p-b4419d86.entry.js +2 -0
  786. package/dist/taro-components/p-b4419d86.entry.js.map +1 -0
  787. package/dist/taro-components/p-b8ba5d0a.entry.js +2 -0
  788. package/dist/taro-components/p-b8ba5d0a.entry.js.map +1 -0
  789. package/dist/taro-components/p-bac3deb0.system.entry.js +2 -0
  790. package/dist/taro-components/p-bac3deb0.system.entry.js.map +1 -0
  791. package/dist/taro-components/p-bba8c3a7.system.entry.js +2 -0
  792. package/dist/taro-components/p-bba8c3a7.system.entry.js.map +1 -0
  793. package/dist/taro-components/p-bd5177d3.system.js +2 -0
  794. package/dist/taro-components/p-bd5177d3.system.js.map +1 -0
  795. package/dist/taro-components/p-c0bb8610.entry.js +2 -0
  796. package/dist/taro-components/p-c0bb8610.entry.js.map +1 -0
  797. package/dist/taro-components/p-c1c0e16d.entry.js +2 -0
  798. package/dist/taro-components/p-c1c0e16d.entry.js.map +1 -0
  799. package/dist/taro-components/p-c2ac8f08.entry.js +2 -0
  800. package/dist/taro-components/p-c2ac8f08.entry.js.map +1 -0
  801. package/dist/taro-components/p-c33733b3.system.entry.js +2 -0
  802. package/dist/taro-components/p-c33733b3.system.entry.js.map +1 -0
  803. package/dist/taro-components/p-c3e98fdf.entry.js +2 -0
  804. package/dist/taro-components/p-c3e98fdf.entry.js.map +1 -0
  805. package/dist/taro-components/p-c4fdb669.system.entry.js +2 -0
  806. package/dist/taro-components/p-c4fdb669.system.entry.js.map +1 -0
  807. package/dist/taro-components/p-c50087fd.entry.js +2 -0
  808. package/dist/taro-components/p-c50087fd.entry.js.map +1 -0
  809. package/dist/taro-components/p-c586a796.system.entry.js +2 -0
  810. package/dist/taro-components/p-c586a796.system.entry.js.map +1 -0
  811. package/dist/taro-components/p-c6385fc2.system.entry.js +2 -0
  812. package/dist/taro-components/p-c6385fc2.system.entry.js.map +1 -0
  813. package/dist/taro-components/p-c6e6dab1.system.entry.js +2 -0
  814. package/dist/taro-components/p-c6e6dab1.system.entry.js.map +1 -0
  815. package/dist/taro-components/p-c70dd956.system.entry.js +2 -0
  816. package/dist/taro-components/p-c70dd956.system.entry.js.map +1 -0
  817. package/dist/taro-components/p-d1d19ce9.entry.js +2 -0
  818. package/dist/taro-components/p-d1d19ce9.entry.js.map +1 -0
  819. package/dist/taro-components/p-d3c7f87d.js +2 -0
  820. package/dist/taro-components/p-d3c7f87d.js.map +1 -0
  821. package/dist/taro-components/p-d5234e7e.js.map +1 -1
  822. package/dist/taro-components/p-d562aae3.entry.js +2 -0
  823. package/dist/taro-components/p-d562aae3.entry.js.map +1 -0
  824. package/dist/taro-components/p-d61d3394.entry.js +2 -0
  825. package/dist/taro-components/p-d61d3394.entry.js.map +1 -0
  826. package/dist/taro-components/p-d621d190.entry.js +2 -0
  827. package/dist/taro-components/p-d621d190.entry.js.map +1 -0
  828. package/dist/taro-components/p-d8c8c63f.entry.js +2 -0
  829. package/dist/taro-components/p-d8c8c63f.entry.js.map +1 -0
  830. package/dist/taro-components/p-da5cdbf5.system.entry.js +2 -0
  831. package/dist/taro-components/p-da5cdbf5.system.entry.js.map +1 -0
  832. package/dist/taro-components/p-de2d8e2e.system.entry.js +2 -0
  833. package/dist/taro-components/p-de2d8e2e.system.entry.js.map +1 -0
  834. package/dist/taro-components/p-de356b29.system.entry.js +2 -0
  835. package/dist/taro-components/p-de356b29.system.entry.js.map +1 -0
  836. package/dist/taro-components/p-e0e4a403.entry.js +2 -0
  837. package/dist/taro-components/p-e0e4a403.entry.js.map +1 -0
  838. package/dist/taro-components/p-e3f8265d.system.entry.js +2 -0
  839. package/dist/taro-components/p-e3f8265d.system.entry.js.map +1 -0
  840. package/dist/taro-components/p-e53feb03.system.entry.js +2 -0
  841. package/dist/taro-components/p-e53feb03.system.entry.js.map +1 -0
  842. package/dist/taro-components/p-e67165fd.entry.js +2 -0
  843. package/dist/taro-components/p-e67165fd.entry.js.map +1 -0
  844. package/dist/taro-components/p-eb2a7609.entry.js +2 -0
  845. package/dist/taro-components/p-eb2a7609.entry.js.map +1 -0
  846. package/dist/taro-components/p-eb9adf17.entry.js +2 -0
  847. package/dist/taro-components/p-eb9adf17.entry.js.map +1 -0
  848. package/dist/taro-components/p-ef4c1fd4.entry.js +2 -0
  849. package/dist/taro-components/p-ef4c1fd4.entry.js.map +1 -0
  850. package/dist/taro-components/p-ef7e7d73.system.entry.js +2 -0
  851. package/dist/taro-components/p-ef7e7d73.system.entry.js.map +1 -0
  852. package/dist/taro-components/p-efa51030.system.entry.js +2 -0
  853. package/dist/taro-components/p-efa51030.system.entry.js.map +1 -0
  854. package/dist/taro-components/p-efe31b23.entry.js +2 -0
  855. package/dist/taro-components/p-efe31b23.entry.js.map +1 -0
  856. package/dist/taro-components/p-f034fb11.system.entry.js +2 -0
  857. package/dist/taro-components/p-f034fb11.system.entry.js.map +1 -0
  858. package/dist/taro-components/p-f499c0a0.system.entry.js +2 -0
  859. package/dist/taro-components/p-f499c0a0.system.entry.js.map +1 -0
  860. package/dist/taro-components/p-f88f0f55.entry.js +2 -0
  861. package/dist/taro-components/p-f88f0f55.entry.js.map +1 -0
  862. package/dist/taro-components/p-f9ac515e.system.entry.js +2 -0
  863. package/dist/taro-components/p-f9ac515e.system.entry.js.map +1 -0
  864. package/dist/taro-components/p-fa36fe8e.system.entry.js +2 -0
  865. package/dist/taro-components/p-fa36fe8e.system.entry.js.map +1 -0
  866. package/dist/taro-components/p-fcdac6ec.system.entry.js +2 -0
  867. package/dist/taro-components/p-fcdac6ec.system.entry.js.map +1 -0
  868. package/dist/taro-components/p-fda82bc1.entry.js +2 -0
  869. package/dist/taro-components/p-fda82bc1.entry.js.map +1 -0
  870. package/dist/taro-components/p-fe58b450.entry.js +2 -0
  871. package/dist/taro-components/p-fe58b450.entry.js.map +1 -0
  872. package/dist/taro-components/p-fec6746d.entry.js +2 -0
  873. package/dist/taro-components/p-fec6746d.entry.js.map +1 -0
  874. package/dist/taro-components/taro-components.esm.js +1 -1
  875. package/dist/taro-components/taro-components.esm.js.map +1 -1
  876. package/dist/taro-components/taro-components.js +1 -1
  877. package/dist/types/components/icon/icon.d.ts +1 -1
  878. package/dist/types/components/image/image.d.ts +1 -1
  879. package/dist/types/components/input/input.d.ts +1 -1
  880. package/dist/types/components/navigator/navigator.d.ts +0 -16
  881. package/dist/types/components/picker/picker.d.ts +3 -3
  882. package/dist/types/components/rich-text/rich-text.d.ts +3 -3
  883. package/dist/types/components/scroll-view/scroll-view.d.ts +4 -1
  884. package/dist/types/components/swiper/swiper-item.d.ts +2 -0
  885. package/dist/types/components/swiper/swiper.d.ts +1 -0
  886. package/dist/types/components/tabbar/tabbar-item.d.ts +2 -1
  887. package/dist/types/components.d.ts +26 -2
  888. package/dist/types/stencil-public-runtime.d.ts +59 -3
  889. package/dist/types/utils/index.d.ts +1 -0
  890. package/lib/react/component-lib/index.d.ts +55 -0
  891. package/lib/react/component-lib/index.js +68 -0
  892. package/lib/react/component-lib/index.js.map +1 -0
  893. package/lib/react/component-lib/input.d.ts +3 -0
  894. package/lib/react/component-lib/input.js +17 -0
  895. package/lib/react/component-lib/input.js.map +1 -0
  896. package/lib/react/component-lib/reactify-wc.d.ts +7 -0
  897. package/lib/react/component-lib/reactify-wc.js +176 -0
  898. package/lib/react/component-lib/reactify-wc.js.map +1 -0
  899. package/lib/react/components.d.ts +82 -0
  900. package/lib/react/components.js +85 -0
  901. package/lib/react/components.js.map +1 -0
  902. package/lib/react/helper.d.ts +10 -0
  903. package/lib/react/helper.js +7 -0
  904. package/lib/react/helper.js.map +1 -0
  905. package/lib/react/index.d.ts +1 -0
  906. package/lib/react/index.js +2 -0
  907. package/lib/react/index.js.map +1 -0
  908. package/lib/react/interfaces-4f837811.d.ts +30 -0
  909. package/lib/react/react-component-lib/createComponent.d.ts +10 -0
  910. package/lib/react/react-component-lib/createComponent.js +70 -0
  911. package/lib/react/react-component-lib/createComponent.js.map +1 -0
  912. package/lib/react/react-component-lib/createOverlayComponent.d.ts +21 -0
  913. package/lib/react/react-component-lib/createOverlayComponent.js +91 -0
  914. package/lib/react/react-component-lib/createOverlayComponent.js.map +1 -0
  915. package/lib/react/react-component-lib/index.d.ts +2 -0
  916. package/lib/react/react-component-lib/index.js +3 -0
  917. package/lib/react/react-component-lib/index.js.map +1 -0
  918. package/lib/react/react-component-lib/utils/attachProps.d.ts +13 -0
  919. package/lib/react/react-component-lib/utils/attachProps.js +87 -0
  920. package/lib/react/react-component-lib/utils/attachProps.js.map +1 -0
  921. package/lib/react/react-component-lib/utils/case.d.ts +3 -0
  922. package/lib/react/react-component-lib/utils/case.js +9 -0
  923. package/lib/react/react-component-lib/utils/case.js.map +1 -0
  924. package/lib/react/react-component-lib/utils/index.d.ts +11 -0
  925. package/lib/react/react-component-lib/utils/index.js +37 -0
  926. package/lib/react/react-component-lib/utils/index.js.map +1 -0
  927. package/lib/vue2/component-lib/components.d.ts +111 -0
  928. package/lib/vue2/component-lib/components.js +74 -0
  929. package/lib/vue2/component-lib/components.js.map +1 -0
  930. package/lib/vue2/component-lib/createComponent.d.ts +14 -0
  931. package/lib/vue2/component-lib/createComponent.js +23 -0
  932. package/lib/vue2/component-lib/createComponent.js.map +1 -0
  933. package/lib/vue2/component-lib/createFormsComponent.d.ts +22 -0
  934. package/lib/vue2/component-lib/createFormsComponent.js +53 -0
  935. package/lib/vue2/component-lib/createFormsComponent.js.map +1 -0
  936. package/lib/vue2/component-lib/icon.d.ts +16 -0
  937. package/lib/vue2/component-lib/icon.js +23 -0
  938. package/lib/vue2/component-lib/icon.js.map +1 -0
  939. package/lib/vue2/component-lib/image.d.ts +16 -0
  940. package/lib/vue2/component-lib/image.js +24 -0
  941. package/lib/vue2/component-lib/image.js.map +1 -0
  942. package/lib/vue2/component-lib/index.d.ts +1 -0
  943. package/lib/vue2/component-lib/index.js +30 -0
  944. package/lib/vue2/component-lib/index.js.map +1 -0
  945. package/lib/vue2/component-lib/mixins/listeners.d.ts +6 -0
  946. package/lib/vue2/component-lib/mixins/listeners.js +14 -0
  947. package/lib/vue2/component-lib/mixins/listeners.js.map +1 -0
  948. package/lib/vue2/component-lib/mixins/refs.d.ts +5 -0
  949. package/lib/vue2/component-lib/mixins/refs.js +53 -0
  950. package/lib/vue2/component-lib/mixins/refs.js.map +1 -0
  951. package/lib/vue2/component-lib/picker.d.ts +25 -0
  952. package/lib/vue2/component-lib/picker.js +41 -0
  953. package/lib/vue2/component-lib/picker.js.map +1 -0
  954. package/lib/vue2/component-lib/scroll-view.d.ts +17 -0
  955. package/lib/vue2/component-lib/scroll-view.js +35 -0
  956. package/lib/vue2/component-lib/scroll-view.js.map +1 -0
  957. package/lib/vue2/component-lib/text.d.ts +16 -0
  958. package/lib/vue2/component-lib/text.js +24 -0
  959. package/lib/vue2/component-lib/text.js.map +1 -0
  960. package/lib/vue2/components.d.ts +356 -0
  961. package/lib/vue2/components.js +645 -0
  962. package/lib/vue2/components.js.map +1 -0
  963. package/lib/vue2/index.d.ts +3 -0
  964. package/lib/vue2/index.js +23 -0
  965. package/lib/vue2/index.js.map +1 -0
  966. package/lib/vue2/node_modules/.pnpm/registry.npmjs.org_vue-fragment@1.6.0_vue@2.6.14/node_modules/vue-fragment/dist/vue-fragment.esm.js +4 -0
  967. package/lib/vue2/node_modules/.pnpm/registry.npmjs.org_vue-fragment@1.6.0_vue@2.6.14/node_modules/vue-fragment/dist/vue-fragment.esm.js.map +1 -0
  968. package/lib/vue2/vue-component-lib/utils.d.ts +6 -0
  969. package/lib/vue2/vue-component-lib/utils.js +34 -0
  970. package/lib/vue2/vue-component-lib/utils.js.map +1 -0
  971. package/lib/vue3/component-lib/createComponent.d.ts +10 -0
  972. package/lib/vue3/component-lib/createComponent.js +21 -0
  973. package/lib/vue3/component-lib/createComponent.js.map +1 -0
  974. package/lib/vue3/component-lib/createFormsComponent.d.ts +11 -0
  975. package/lib/vue3/component-lib/createFormsComponent.js +38 -0
  976. package/lib/vue3/component-lib/createFormsComponent.js.map +1 -0
  977. package/lib/vue3/component-lib/forwardRef.d.ts +2 -0
  978. package/lib/vue3/component-lib/forwardRef.js +13 -0
  979. package/lib/vue3/component-lib/forwardRef.js.map +1 -0
  980. package/lib/vue3/component-lib/icon.d.ts +11 -0
  981. package/lib/vue3/component-lib/icon.js +20 -0
  982. package/lib/vue3/component-lib/icon.js.map +1 -0
  983. package/lib/vue3/component-lib/image.d.ts +11 -0
  984. package/lib/vue3/component-lib/image.js +21 -0
  985. package/lib/vue3/component-lib/image.js.map +1 -0
  986. package/lib/vue3/component-lib/index.d.ts +442 -0
  987. package/lib/vue3/component-lib/index.js +68 -0
  988. package/lib/vue3/component-lib/index.js.map +1 -0
  989. package/lib/vue3/component-lib/scroll-view.d.ts +11 -0
  990. package/lib/vue3/component-lib/scroll-view.js +27 -0
  991. package/lib/vue3/component-lib/scroll-view.js.map +1 -0
  992. package/lib/vue3/component-lib/text.d.ts +11 -0
  993. package/lib/vue3/component-lib/text.js +21 -0
  994. package/lib/vue3/component-lib/text.js.map +1 -0
  995. package/lib/vue3/components.d.ts +82 -0
  996. package/lib/vue3/components.js +387 -0
  997. package/lib/vue3/components.js.map +1 -0
  998. package/lib/vue3/index.d.ts +3 -0
  999. package/lib/vue3/index.js +15 -0
  1000. package/lib/vue3/index.js.map +1 -0
  1001. package/lib/vue3/vue-component-lib/utils.d.ts +21 -0
  1002. package/lib/vue3/vue-component-lib/utils.js +163 -0
  1003. package/lib/vue3/vue-component-lib/utils.js.map +1 -0
  1004. package/loader/index.d.ts +9 -0
  1005. package/package.json +15 -13
  1006. package/types/ChannelLive.d.ts +22 -0
  1007. package/types/CommentList.d.ts +1 -0
  1008. package/types/CoverImage.d.ts +4 -4
  1009. package/types/CoverView.d.ts +2 -2
  1010. package/types/Input.d.ts +11 -6
  1011. package/types/LivePusher.d.ts +39 -0
  1012. package/types/Map.d.ts +6 -0
  1013. package/types/MovableArea.d.ts +2 -2
  1014. package/types/Navigator.d.ts +8 -8
  1015. package/types/Radio.d.ts +6 -6
  1016. package/types/RadioGroup.d.ts +2 -2
  1017. package/types/RootPortal.d.ts +0 -1
  1018. package/types/ScrollView.d.ts +1 -1
  1019. package/types/ShareElement.d.ts +0 -5
  1020. package/types/Swiper.d.ts +2 -2
  1021. package/types/Textarea.d.ts +22 -28
  1022. package/types/Video.d.ts +13 -9
  1023. package/types/VoipRoom.d.ts +6 -0
  1024. package/types/index.d.ts +1 -0
  1025. package/types/index.vue3.d.ts +4 -4
  1026. package/dist/cjs/index-47a1959e.js +0 -36
  1027. package/dist/cjs/index-47a1959e.js.map +0 -1
  1028. package/dist/cjs/index-9174e0b1.js +0 -1957
  1029. package/dist/cjs/index-9174e0b1.js.map +0 -1
  1030. package/dist/esm/index-5d881caf.js +0 -1929
  1031. package/dist/esm/index-5d881caf.js.map +0 -1
  1032. package/dist/esm/index-cad8203e.js +0 -33
  1033. package/dist/esm/index-cad8203e.js.map +0 -1
  1034. package/dist/esm-es5/index-5d881caf.js +0 -3
  1035. package/dist/esm-es5/index-5d881caf.js.map +0 -1
  1036. package/dist/esm-es5/index-cad8203e.js +0 -2
  1037. package/dist/esm-es5/index-cad8203e.js.map +0 -1
  1038. package/dist/react/component-lib/index.js +0 -74
  1039. package/dist/react/component-lib/input.js +0 -17
  1040. package/dist/react/component-lib/reactify-wc.js +0 -206
  1041. package/dist/react/components.js +0 -82
  1042. package/dist/react/helper.js +0 -8
  1043. package/dist/react/index.js +0 -1
  1044. package/dist/react/react-component-lib/createComponent.js +0 -99
  1045. package/dist/react/react-component-lib/createOverlayComponent.js +0 -178
  1046. package/dist/react/react-component-lib/index.js +0 -2
  1047. package/dist/react/react-component-lib/interfaces.js +0 -0
  1048. package/dist/react/react-component-lib/utils/attachProps.js +0 -98
  1049. package/dist/react/react-component-lib/utils/case.js +0 -10
  1050. package/dist/react/react-component-lib/utils/dev.js +0 -12
  1051. package/dist/react/react-component-lib/utils/index.js +0 -37
  1052. package/dist/taro-components/p-001ef419.system.entry.js +0 -2
  1053. package/dist/taro-components/p-001ef419.system.entry.js.map +0 -1
  1054. package/dist/taro-components/p-01dc54a5.entry.js +0 -2
  1055. package/dist/taro-components/p-01dc54a5.entry.js.map +0 -1
  1056. package/dist/taro-components/p-0382d7d0.system.entry.js +0 -2
  1057. package/dist/taro-components/p-0382d7d0.system.entry.js.map +0 -1
  1058. package/dist/taro-components/p-0a896bc7.entry.js +0 -2
  1059. package/dist/taro-components/p-0a896bc7.entry.js.map +0 -1
  1060. package/dist/taro-components/p-0b38e6c7.system.entry.js +0 -2
  1061. package/dist/taro-components/p-0b38e6c7.system.entry.js.map +0 -1
  1062. package/dist/taro-components/p-0be383a9.system.entry.js +0 -2
  1063. package/dist/taro-components/p-0be383a9.system.entry.js.map +0 -1
  1064. package/dist/taro-components/p-0d36ef6b.entry.js +0 -2
  1065. package/dist/taro-components/p-0d36ef6b.entry.js.map +0 -1
  1066. package/dist/taro-components/p-0ee6a068.entry.js +0 -2
  1067. package/dist/taro-components/p-0ee6a068.entry.js.map +0 -1
  1068. package/dist/taro-components/p-12e4b019.entry.js +0 -2
  1069. package/dist/taro-components/p-12e4b019.entry.js.map +0 -1
  1070. package/dist/taro-components/p-15dced71.system.entry.js +0 -2
  1071. package/dist/taro-components/p-15dced71.system.entry.js.map +0 -1
  1072. package/dist/taro-components/p-17657dca.entry.js +0 -2
  1073. package/dist/taro-components/p-17657dca.entry.js.map +0 -1
  1074. package/dist/taro-components/p-186ad7ff.entry.js +0 -2
  1075. package/dist/taro-components/p-186ad7ff.entry.js.map +0 -1
  1076. package/dist/taro-components/p-19afe402.entry.js +0 -2
  1077. package/dist/taro-components/p-19afe402.entry.js.map +0 -1
  1078. package/dist/taro-components/p-1a47133c.system.entry.js +0 -2
  1079. package/dist/taro-components/p-1a47133c.system.entry.js.map +0 -1
  1080. package/dist/taro-components/p-1ad0aa95.system.entry.js +0 -2
  1081. package/dist/taro-components/p-1ad0aa95.system.entry.js.map +0 -1
  1082. package/dist/taro-components/p-1b1420c9.system.entry.js +0 -2
  1083. package/dist/taro-components/p-1b1420c9.system.entry.js.map +0 -1
  1084. package/dist/taro-components/p-1b2556e2.system.entry.js +0 -2
  1085. package/dist/taro-components/p-1b2556e2.system.entry.js.map +0 -1
  1086. package/dist/taro-components/p-1b64d2a2.entry.js +0 -2
  1087. package/dist/taro-components/p-1b64d2a2.entry.js.map +0 -1
  1088. package/dist/taro-components/p-1bd3d09b.system.entry.js +0 -2
  1089. package/dist/taro-components/p-1bd3d09b.system.entry.js.map +0 -1
  1090. package/dist/taro-components/p-1cb76199.entry.js +0 -2
  1091. package/dist/taro-components/p-1cb76199.entry.js.map +0 -1
  1092. package/dist/taro-components/p-2096bc5f.entry.js +0 -2
  1093. package/dist/taro-components/p-2096bc5f.entry.js.map +0 -1
  1094. package/dist/taro-components/p-20ec6387.entry.js +0 -2
  1095. package/dist/taro-components/p-20ec6387.entry.js.map +0 -1
  1096. package/dist/taro-components/p-21b77a13.system.entry.js +0 -2
  1097. package/dist/taro-components/p-21b77a13.system.entry.js.map +0 -1
  1098. package/dist/taro-components/p-2243a376.entry.js +0 -2
  1099. package/dist/taro-components/p-2243a376.entry.js.map +0 -1
  1100. package/dist/taro-components/p-281a2bcf.entry.js +0 -2
  1101. package/dist/taro-components/p-281a2bcf.entry.js.map +0 -1
  1102. package/dist/taro-components/p-28dade4f.entry.js +0 -2
  1103. package/dist/taro-components/p-28dade4f.entry.js.map +0 -1
  1104. package/dist/taro-components/p-29f04296.entry.js +0 -2
  1105. package/dist/taro-components/p-29f04296.entry.js.map +0 -1
  1106. package/dist/taro-components/p-301a8b85.system.entry.js +0 -2
  1107. package/dist/taro-components/p-301a8b85.system.entry.js.map +0 -1
  1108. package/dist/taro-components/p-31e10d77.system.entry.js +0 -2
  1109. package/dist/taro-components/p-31e10d77.system.entry.js.map +0 -1
  1110. package/dist/taro-components/p-36c64ed0.system.entry.js +0 -2
  1111. package/dist/taro-components/p-36c64ed0.system.entry.js.map +0 -1
  1112. package/dist/taro-components/p-37d71e63.entry.js +0 -2
  1113. package/dist/taro-components/p-37d71e63.entry.js.map +0 -1
  1114. package/dist/taro-components/p-386b9de8.entry.js +0 -2
  1115. package/dist/taro-components/p-386b9de8.entry.js.map +0 -1
  1116. package/dist/taro-components/p-3b9a1125.entry.js +0 -2
  1117. package/dist/taro-components/p-3b9a1125.entry.js.map +0 -1
  1118. package/dist/taro-components/p-3c256e0e.entry.js +0 -2
  1119. package/dist/taro-components/p-3c256e0e.entry.js.map +0 -1
  1120. package/dist/taro-components/p-3e6b29c6.entry.js +0 -2
  1121. package/dist/taro-components/p-3e6b29c6.entry.js.map +0 -1
  1122. package/dist/taro-components/p-427a2872.entry.js +0 -2
  1123. package/dist/taro-components/p-427a2872.entry.js.map +0 -1
  1124. package/dist/taro-components/p-439a3349.system.entry.js +0 -2
  1125. package/dist/taro-components/p-439a3349.system.entry.js.map +0 -1
  1126. package/dist/taro-components/p-447386b2.system.entry.js +0 -2
  1127. package/dist/taro-components/p-447386b2.system.entry.js.map +0 -1
  1128. package/dist/taro-components/p-45b6ea0c.system.entry.js +0 -2
  1129. package/dist/taro-components/p-45b6ea0c.system.entry.js.map +0 -1
  1130. package/dist/taro-components/p-49a6cae4.system.entry.js +0 -2
  1131. package/dist/taro-components/p-49a6cae4.system.entry.js.map +0 -1
  1132. package/dist/taro-components/p-4b05e003.entry.js +0 -2
  1133. package/dist/taro-components/p-4b05e003.entry.js.map +0 -1
  1134. package/dist/taro-components/p-4b27df71.system.entry.js +0 -2
  1135. package/dist/taro-components/p-4b27df71.system.entry.js.map +0 -1
  1136. package/dist/taro-components/p-4b71c926.entry.js +0 -2
  1137. package/dist/taro-components/p-4b71c926.entry.js.map +0 -1
  1138. package/dist/taro-components/p-4fbb8b4c.system.entry.js +0 -2
  1139. package/dist/taro-components/p-4fbb8b4c.system.entry.js.map +0 -1
  1140. package/dist/taro-components/p-51040638.entry.js +0 -2
  1141. package/dist/taro-components/p-51040638.entry.js.map +0 -1
  1142. package/dist/taro-components/p-55519002.entry.js +0 -2
  1143. package/dist/taro-components/p-55519002.entry.js.map +0 -1
  1144. package/dist/taro-components/p-570222e2.entry.js +0 -2
  1145. package/dist/taro-components/p-570222e2.entry.js.map +0 -1
  1146. package/dist/taro-components/p-5746d7ce.js +0 -2
  1147. package/dist/taro-components/p-5746d7ce.js.map +0 -1
  1148. package/dist/taro-components/p-580a72d1.system.entry.js +0 -2
  1149. package/dist/taro-components/p-580a72d1.system.entry.js.map +0 -1
  1150. package/dist/taro-components/p-59418be7.system.entry.js +0 -2
  1151. package/dist/taro-components/p-59418be7.system.entry.js.map +0 -1
  1152. package/dist/taro-components/p-59e02aca.system.entry.js +0 -2
  1153. package/dist/taro-components/p-59e02aca.system.entry.js.map +0 -1
  1154. package/dist/taro-components/p-5b552407.entry.js +0 -2
  1155. package/dist/taro-components/p-5b552407.entry.js.map +0 -1
  1156. package/dist/taro-components/p-5bd1c1a1.entry.js +0 -2
  1157. package/dist/taro-components/p-5bd1c1a1.entry.js.map +0 -1
  1158. package/dist/taro-components/p-5bfefd19.js +0 -3
  1159. package/dist/taro-components/p-5bfefd19.js.map +0 -1
  1160. package/dist/taro-components/p-62d750a7.entry.js +0 -2
  1161. package/dist/taro-components/p-62d750a7.entry.js.map +0 -1
  1162. package/dist/taro-components/p-632f9a72.system.entry.js +0 -2
  1163. package/dist/taro-components/p-632f9a72.system.entry.js.map +0 -1
  1164. package/dist/taro-components/p-65971d99.entry.js +0 -2
  1165. package/dist/taro-components/p-65971d99.entry.js.map +0 -1
  1166. package/dist/taro-components/p-663d1bb9.system.js +0 -2
  1167. package/dist/taro-components/p-663d1bb9.system.js.map +0 -1
  1168. package/dist/taro-components/p-6831f7b1.system.entry.js +0 -2
  1169. package/dist/taro-components/p-6831f7b1.system.entry.js.map +0 -1
  1170. package/dist/taro-components/p-6af8be19.entry.js +0 -2
  1171. package/dist/taro-components/p-6af8be19.entry.js.map +0 -1
  1172. package/dist/taro-components/p-6c622fa2.system.entry.js +0 -2
  1173. package/dist/taro-components/p-6c622fa2.system.entry.js.map +0 -1
  1174. package/dist/taro-components/p-6cd941bc.entry.js +0 -2
  1175. package/dist/taro-components/p-6cd941bc.entry.js.map +0 -1
  1176. package/dist/taro-components/p-6ea2995b.entry.js +0 -2
  1177. package/dist/taro-components/p-6ea2995b.entry.js.map +0 -1
  1178. package/dist/taro-components/p-6f8af69f.entry.js +0 -2
  1179. package/dist/taro-components/p-6f8af69f.entry.js.map +0 -1
  1180. package/dist/taro-components/p-701b0286.system.entry.js +0 -2
  1181. package/dist/taro-components/p-701b0286.system.entry.js.map +0 -1
  1182. package/dist/taro-components/p-70defa84.entry.js +0 -2
  1183. package/dist/taro-components/p-70defa84.entry.js.map +0 -1
  1184. package/dist/taro-components/p-72f626ab.system.entry.js +0 -2
  1185. package/dist/taro-components/p-72f626ab.system.entry.js.map +0 -1
  1186. package/dist/taro-components/p-73106bc9.entry.js +0 -2
  1187. package/dist/taro-components/p-73106bc9.entry.js.map +0 -1
  1188. package/dist/taro-components/p-755be847.system.entry.js +0 -2
  1189. package/dist/taro-components/p-755be847.system.entry.js.map +0 -1
  1190. package/dist/taro-components/p-7afc274a.entry.js +0 -2
  1191. package/dist/taro-components/p-7afc274a.entry.js.map +0 -1
  1192. package/dist/taro-components/p-7bafbe22.entry.js +0 -2
  1193. package/dist/taro-components/p-7bafbe22.entry.js.map +0 -1
  1194. package/dist/taro-components/p-7e7a1e62.entry.js +0 -2
  1195. package/dist/taro-components/p-7e7a1e62.entry.js.map +0 -1
  1196. package/dist/taro-components/p-8231e748.entry.js +0 -2
  1197. package/dist/taro-components/p-8231e748.entry.js.map +0 -1
  1198. package/dist/taro-components/p-876edf66.entry.js +0 -2
  1199. package/dist/taro-components/p-876edf66.entry.js.map +0 -1
  1200. package/dist/taro-components/p-898aba38.system.entry.js +0 -2
  1201. package/dist/taro-components/p-898aba38.system.entry.js.map +0 -1
  1202. package/dist/taro-components/p-8a3620a6.system.entry.js +0 -2
  1203. package/dist/taro-components/p-8a3620a6.system.entry.js.map +0 -1
  1204. package/dist/taro-components/p-8a8f286f.system.js +0 -3
  1205. package/dist/taro-components/p-8a8f286f.system.js.map +0 -1
  1206. package/dist/taro-components/p-8bec95d4.system.entry.js +0 -2
  1207. package/dist/taro-components/p-8bec95d4.system.entry.js.map +0 -1
  1208. package/dist/taro-components/p-8c8fe164.system.entry.js +0 -2
  1209. package/dist/taro-components/p-8c8fe164.system.entry.js.map +0 -1
  1210. package/dist/taro-components/p-93cc7adc.entry.js +0 -2
  1211. package/dist/taro-components/p-93cc7adc.entry.js.map +0 -1
  1212. package/dist/taro-components/p-96a784f1.entry.js +0 -2
  1213. package/dist/taro-components/p-96a784f1.entry.js.map +0 -1
  1214. package/dist/taro-components/p-98901e99.system.entry.js +0 -2
  1215. package/dist/taro-components/p-98901e99.system.entry.js.map +0 -1
  1216. package/dist/taro-components/p-99bbe34a.system.entry.js +0 -2
  1217. package/dist/taro-components/p-99bbe34a.system.entry.js.map +0 -1
  1218. package/dist/taro-components/p-9e20c25c.entry.js +0 -2
  1219. package/dist/taro-components/p-9e20c25c.entry.js.map +0 -1
  1220. package/dist/taro-components/p-9f1ca602.system.entry.js +0 -2
  1221. package/dist/taro-components/p-9f1ca602.system.entry.js.map +0 -1
  1222. package/dist/taro-components/p-9f780103.system.entry.js +0 -2
  1223. package/dist/taro-components/p-9f780103.system.entry.js.map +0 -1
  1224. package/dist/taro-components/p-a1ace8c7.system.entry.js +0 -2
  1225. package/dist/taro-components/p-a1ace8c7.system.entry.js.map +0 -1
  1226. package/dist/taro-components/p-a29509fa.system.entry.js +0 -2
  1227. package/dist/taro-components/p-a29509fa.system.entry.js.map +0 -1
  1228. package/dist/taro-components/p-a4961ddd.entry.js +0 -2
  1229. package/dist/taro-components/p-a4961ddd.entry.js.map +0 -1
  1230. package/dist/taro-components/p-a6f2dc54.system.entry.js +0 -2
  1231. package/dist/taro-components/p-a6f2dc54.system.entry.js.map +0 -1
  1232. package/dist/taro-components/p-ab105c26.entry.js +0 -2
  1233. package/dist/taro-components/p-ab105c26.entry.js.map +0 -1
  1234. package/dist/taro-components/p-ad25cc91.system.entry.js +0 -2
  1235. package/dist/taro-components/p-ad25cc91.system.entry.js.map +0 -1
  1236. package/dist/taro-components/p-b04a56bd.system.entry.js +0 -2
  1237. package/dist/taro-components/p-b04a56bd.system.entry.js.map +0 -1
  1238. package/dist/taro-components/p-b10cb428.entry.js +0 -2
  1239. package/dist/taro-components/p-b10cb428.entry.js.map +0 -1
  1240. package/dist/taro-components/p-b4cccb3e.system.entry.js +0 -2
  1241. package/dist/taro-components/p-b4cccb3e.system.entry.js.map +0 -1
  1242. package/dist/taro-components/p-b4ec48c3.entry.js +0 -2
  1243. package/dist/taro-components/p-b4ec48c3.entry.js.map +0 -1
  1244. package/dist/taro-components/p-b500c116.system.entry.js +0 -2
  1245. package/dist/taro-components/p-b500c116.system.entry.js.map +0 -1
  1246. package/dist/taro-components/p-b6733e23.system.entry.js +0 -2
  1247. package/dist/taro-components/p-b6733e23.system.entry.js.map +0 -1
  1248. package/dist/taro-components/p-b832f4e8.entry.js +0 -2
  1249. package/dist/taro-components/p-b832f4e8.entry.js.map +0 -1
  1250. package/dist/taro-components/p-b88a55b4.system.entry.js +0 -2
  1251. package/dist/taro-components/p-b88a55b4.system.entry.js.map +0 -1
  1252. package/dist/taro-components/p-b90926cc.entry.js +0 -2
  1253. package/dist/taro-components/p-b90926cc.entry.js.map +0 -1
  1254. package/dist/taro-components/p-ba743573.entry.js +0 -2
  1255. package/dist/taro-components/p-ba743573.entry.js.map +0 -1
  1256. package/dist/taro-components/p-be3f5ac0.entry.js +0 -2
  1257. package/dist/taro-components/p-be3f5ac0.entry.js.map +0 -1
  1258. package/dist/taro-components/p-beea63a7.entry.js +0 -2
  1259. package/dist/taro-components/p-beea63a7.entry.js.map +0 -1
  1260. package/dist/taro-components/p-c0e3c822.system.entry.js +0 -2
  1261. package/dist/taro-components/p-c0e3c822.system.entry.js.map +0 -1
  1262. package/dist/taro-components/p-c3bb8fa6.entry.js +0 -2
  1263. package/dist/taro-components/p-c3bb8fa6.entry.js.map +0 -1
  1264. package/dist/taro-components/p-c43fe342.system.entry.js +0 -2
  1265. package/dist/taro-components/p-c43fe342.system.entry.js.map +0 -1
  1266. package/dist/taro-components/p-c4cf58af.system.entry.js +0 -2
  1267. package/dist/taro-components/p-c4cf58af.system.entry.js.map +0 -1
  1268. package/dist/taro-components/p-c5c331bf.system.entry.js +0 -2
  1269. package/dist/taro-components/p-c5c331bf.system.entry.js.map +0 -1
  1270. package/dist/taro-components/p-cb17d8bd.system.js +0 -2
  1271. package/dist/taro-components/p-cb17d8bd.system.js.map +0 -1
  1272. package/dist/taro-components/p-cbe2436d.system.entry.js +0 -2
  1273. package/dist/taro-components/p-cbe2436d.system.entry.js.map +0 -1
  1274. package/dist/taro-components/p-cd6a7eea.entry.js +0 -2
  1275. package/dist/taro-components/p-cd6a7eea.entry.js.map +0 -1
  1276. package/dist/taro-components/p-d388c097.entry.js +0 -2
  1277. package/dist/taro-components/p-d388c097.entry.js.map +0 -1
  1278. package/dist/taro-components/p-d4b6f19e.system.entry.js +0 -2
  1279. package/dist/taro-components/p-d4b6f19e.system.entry.js.map +0 -1
  1280. package/dist/taro-components/p-d619f198.system.entry.js +0 -2
  1281. package/dist/taro-components/p-d619f198.system.entry.js.map +0 -1
  1282. package/dist/taro-components/p-d6441fd8.entry.js +0 -2
  1283. package/dist/taro-components/p-d6441fd8.entry.js.map +0 -1
  1284. package/dist/taro-components/p-d7ab3e23.system.entry.js +0 -2
  1285. package/dist/taro-components/p-d7ab3e23.system.entry.js.map +0 -1
  1286. package/dist/taro-components/p-d7f4b10f.entry.js +0 -2
  1287. package/dist/taro-components/p-d7f4b10f.entry.js.map +0 -1
  1288. package/dist/taro-components/p-d85b216d.entry.js +0 -2
  1289. package/dist/taro-components/p-d85b216d.entry.js.map +0 -1
  1290. package/dist/taro-components/p-dcb48fd9.system.entry.js +0 -2
  1291. package/dist/taro-components/p-dcb48fd9.system.entry.js.map +0 -1
  1292. package/dist/taro-components/p-dcfb7d97.system.entry.js +0 -2
  1293. package/dist/taro-components/p-dcfb7d97.system.entry.js.map +0 -1
  1294. package/dist/taro-components/p-de762042.entry.js +0 -2
  1295. package/dist/taro-components/p-de762042.entry.js.map +0 -1
  1296. package/dist/taro-components/p-df862d0c.entry.js +0 -2
  1297. package/dist/taro-components/p-df862d0c.entry.js.map +0 -1
  1298. package/dist/taro-components/p-e0d6b00b.entry.js +0 -2
  1299. package/dist/taro-components/p-e0d6b00b.entry.js.map +0 -1
  1300. package/dist/taro-components/p-e4f1cc50.entry.js +0 -2
  1301. package/dist/taro-components/p-e4f1cc50.entry.js.map +0 -1
  1302. package/dist/taro-components/p-e5607803.system.entry.js +0 -2
  1303. package/dist/taro-components/p-e5607803.system.entry.js.map +0 -1
  1304. package/dist/taro-components/p-e59f999e.entry.js +0 -2
  1305. package/dist/taro-components/p-e59f999e.entry.js.map +0 -1
  1306. package/dist/taro-components/p-e7239faa.system.entry.js +0 -2
  1307. package/dist/taro-components/p-e7239faa.system.entry.js.map +0 -1
  1308. package/dist/taro-components/p-e7965c55.system.entry.js +0 -2
  1309. package/dist/taro-components/p-e7965c55.system.entry.js.map +0 -1
  1310. package/dist/taro-components/p-e98c07c3.system.entry.js +0 -2
  1311. package/dist/taro-components/p-e98c07c3.system.entry.js.map +0 -1
  1312. package/dist/taro-components/p-eddd00e9.system.entry.js +0 -2
  1313. package/dist/taro-components/p-eddd00e9.system.entry.js.map +0 -1
  1314. package/dist/taro-components/p-ef029c30.system.entry.js +0 -2
  1315. package/dist/taro-components/p-ef029c30.system.entry.js.map +0 -1
  1316. package/dist/taro-components/p-f00ee372.system.entry.js +0 -2
  1317. package/dist/taro-components/p-f00ee372.system.entry.js.map +0 -1
  1318. package/dist/taro-components/p-f0d0160d.system.entry.js +0 -2
  1319. package/dist/taro-components/p-f0d0160d.system.entry.js.map +0 -1
  1320. package/dist/taro-components/p-f120c272.entry.js +0 -2
  1321. package/dist/taro-components/p-f120c272.entry.js.map +0 -1
  1322. package/dist/taro-components/p-f2c75971.system.entry.js +0 -2
  1323. package/dist/taro-components/p-f2c75971.system.entry.js.map +0 -1
  1324. package/dist/taro-components/p-f81d14ad.entry.js +0 -2
  1325. package/dist/taro-components/p-f81d14ad.entry.js.map +0 -1
  1326. package/dist/taro-components/p-fae28cc1.system.entry.js +0 -2
  1327. package/dist/taro-components/p-fae28cc1.system.entry.js.map +0 -1
  1328. package/dist/taro-components/p-fb843ff2.system.entry.js +0 -2
  1329. package/dist/taro-components/p-fb843ff2.system.entry.js.map +0 -1
  1330. package/dist/taro-components/p-fc0fbcce.system.entry.js +0 -2
  1331. package/dist/taro-components/p-fc0fbcce.system.entry.js.map +0 -1
  1332. package/dist/taro-components/p-ffc44634.entry.js +0 -2
  1333. package/dist/taro-components/p-ffc44634.entry.js.map +0 -1
  1334. package/dist/vue2/component-lib/components.js +0 -71
  1335. package/dist/vue2/component-lib/createComponent.js +0 -21
  1336. package/dist/vue2/component-lib/createFormsComponent.js +0 -53
  1337. package/dist/vue2/component-lib/icon.js +0 -19
  1338. package/dist/vue2/component-lib/image.js +0 -20
  1339. package/dist/vue2/component-lib/index.js +0 -28
  1340. package/dist/vue2/component-lib/mixins/listeners.js +0 -14
  1341. package/dist/vue2/component-lib/mixins/refs.js +0 -44
  1342. package/dist/vue2/component-lib/picker.js +0 -40
  1343. package/dist/vue2/component-lib/scroll-view.js +0 -32
  1344. package/dist/vue2/component-lib/text.js +0 -20
  1345. package/dist/vue2/components.js +0 -542
  1346. package/dist/vue2/index.js +0 -22
  1347. package/dist/vue2/vue-component-lib/utils.js +0 -40
  1348. package/dist/vue3/component-lib/createComponent.js +0 -23
  1349. package/dist/vue3/component-lib/createFormsComponent.js +0 -43
  1350. package/dist/vue3/component-lib/forwardRef.js +0 -9
  1351. package/dist/vue3/component-lib/icon.js +0 -21
  1352. package/dist/vue3/component-lib/image.js +0 -22
  1353. package/dist/vue3/component-lib/index.js +0 -76
  1354. package/dist/vue3/component-lib/scroll-view.js +0 -28
  1355. package/dist/vue3/component-lib/text.js +0 -22
  1356. package/dist/vue3/components.js +0 -80
  1357. package/dist/vue3/index.js +0 -17
  1358. package/dist/vue3/vue-component-lib/utils.js +0 -175
@@ -0,0 +1,2066 @@
1
+ 'use strict';
2
+
3
+ function _interopNamespace(e) {
4
+ if (e && e.__esModule) return e;
5
+ var n = Object.create(null);
6
+ if (e) {
7
+ Object.keys(e).forEach(function (k) {
8
+ if (k !== 'default') {
9
+ var d = Object.getOwnPropertyDescriptor(e, k);
10
+ Object.defineProperty(n, k, d.get ? d : {
11
+ enumerable: true,
12
+ get: function () {
13
+ return e[k];
14
+ }
15
+ });
16
+ }
17
+ });
18
+ }
19
+ n['default'] = e;
20
+ return Object.freeze(n);
21
+ }
22
+
23
+ const NAMESPACE = 'taro-components';
24
+
25
+ /**
26
+ * Virtual DOM patching algorithm based on Snabbdom by
27
+ * Simon Friis Vindum (@paldepind)
28
+ * Licensed under the MIT License
29
+ * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
30
+ *
31
+ * Modified for Stencil's renderer and slot projection
32
+ */
33
+ let contentRef;
34
+ let hostTagName;
35
+ let useNativeShadowDom = false;
36
+ let checkSlotFallbackVisibility = false;
37
+ let checkSlotRelocate = false;
38
+ let isSvgMode = false;
39
+ let queuePending = false;
40
+ const createTime = (fnName, tagName = '') => {
41
+ {
42
+ return () => {
43
+ return;
44
+ };
45
+ }
46
+ };
47
+ const uniqueTime = (key, measureText) => {
48
+ {
49
+ return () => {
50
+ return;
51
+ };
52
+ }
53
+ };
54
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
55
+ const XLINK_NS = 'http://www.w3.org/1999/xlink';
56
+ /**
57
+ * Default style mode id
58
+ */
59
+ /**
60
+ * Reusable empty obj/array
61
+ * Don't add values to these!!
62
+ */
63
+ const EMPTY_OBJ = {};
64
+ const isComplexType = (o) => {
65
+ // https://jsperf.com/typeof-fn-object/5
66
+ o = typeof o;
67
+ return o === 'object' || o === 'function';
68
+ };
69
+ /**
70
+ * Helper method for querying a `meta` tag that contains a nonce value
71
+ * out of a DOM's head.
72
+ *
73
+ * @param doc The DOM containing the `head` to query against
74
+ * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
75
+ * exists or the tag has no content.
76
+ */
77
+ function queryNonceMetaTagContent(doc) {
78
+ var _a, _b, _c;
79
+ return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
80
+ }
81
+ /**
82
+ * Production h() function based on Preact by
83
+ * Jason Miller (@developit)
84
+ * Licensed under the MIT License
85
+ * https://github.com/developit/preact/blob/master/LICENSE
86
+ *
87
+ * Modified for Stencil's compiler and vdom
88
+ */
89
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
90
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
91
+ const h = (nodeName, vnodeData, ...children) => {
92
+ let child = null;
93
+ let key = null;
94
+ let slotName = null;
95
+ let simple = false;
96
+ let lastSimple = false;
97
+ const vNodeChildren = [];
98
+ const walk = (c) => {
99
+ for (let i = 0; i < c.length; i++) {
100
+ child = c[i];
101
+ if (Array.isArray(child)) {
102
+ walk(child);
103
+ }
104
+ else if (child != null && typeof child !== 'boolean') {
105
+ if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
106
+ child = String(child);
107
+ }
108
+ if (simple && lastSimple) {
109
+ // If the previous child was simple (string), we merge both
110
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
111
+ }
112
+ else {
113
+ // Append a new vNode, if it's text, we create a text vNode
114
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
115
+ }
116
+ lastSimple = simple;
117
+ }
118
+ }
119
+ };
120
+ walk(children);
121
+ if (vnodeData) {
122
+ // normalize class / classname attributes
123
+ if (vnodeData.key) {
124
+ key = vnodeData.key;
125
+ }
126
+ if (vnodeData.name) {
127
+ slotName = vnodeData.name;
128
+ }
129
+ {
130
+ const classData = vnodeData.className || vnodeData.class;
131
+ if (classData) {
132
+ vnodeData.class =
133
+ typeof classData !== 'object'
134
+ ? classData
135
+ : Object.keys(classData)
136
+ .filter((k) => classData[k])
137
+ .join(' ');
138
+ }
139
+ }
140
+ }
141
+ if (typeof nodeName === 'function') {
142
+ // nodeName is a functional component
143
+ return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
144
+ }
145
+ const vnode = newVNode(nodeName, null);
146
+ vnode.$attrs$ = vnodeData;
147
+ if (vNodeChildren.length > 0) {
148
+ vnode.$children$ = vNodeChildren;
149
+ }
150
+ {
151
+ vnode.$key$ = key;
152
+ }
153
+ {
154
+ vnode.$name$ = slotName;
155
+ }
156
+ return vnode;
157
+ };
158
+ /**
159
+ * A utility function for creating a virtual DOM node from a tag and some
160
+ * possible text content.
161
+ *
162
+ * @param tag the tag for this element
163
+ * @param text possible text content for the node
164
+ * @returns a newly-minted virtual DOM node
165
+ */
166
+ const newVNode = (tag, text) => {
167
+ const vnode = {
168
+ $flags$: 0,
169
+ $tag$: tag,
170
+ $text$: text,
171
+ $elm$: null,
172
+ $children$: null,
173
+ };
174
+ {
175
+ vnode.$attrs$ = null;
176
+ }
177
+ {
178
+ vnode.$key$ = null;
179
+ }
180
+ {
181
+ vnode.$name$ = null;
182
+ }
183
+ return vnode;
184
+ };
185
+ const Host = {};
186
+ /**
187
+ * Check whether a given node is a Host node or not
188
+ *
189
+ * @param node the virtual DOM node to check
190
+ * @returns whether it's a Host node or not
191
+ */
192
+ const isHost = (node) => node && node.$tag$ === Host;
193
+ /**
194
+ * Implementation of {@link d.FunctionalUtilities} for Stencil's VDom.
195
+ *
196
+ * Note that these functions convert from {@link d.VNode} to
197
+ * {@link d.ChildNode} to give functional component developers a friendly
198
+ * interface.
199
+ */
200
+ const vdomFnUtils = {
201
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
202
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
203
+ };
204
+ /**
205
+ * Convert a {@link d.VNode} to a {@link d.ChildNode} in order to present a
206
+ * friendlier public interface (hence, 'convertToPublic').
207
+ *
208
+ * @param node the virtual DOM node to convert
209
+ * @returns a converted child node
210
+ */
211
+ const convertToPublic = (node) => ({
212
+ vattrs: node.$attrs$,
213
+ vchildren: node.$children$,
214
+ vkey: node.$key$,
215
+ vname: node.$name$,
216
+ vtag: node.$tag$,
217
+ vtext: node.$text$,
218
+ });
219
+ /**
220
+ * Convert a {@link d.ChildNode} back to an equivalent {@link d.VNode} in
221
+ * order to use the resulting object in the virtual DOM. The initial object was
222
+ * likely created as part of presenting a public API, so converting it back
223
+ * involved making it 'private' again (hence, `convertToPrivate`).
224
+ *
225
+ * @param node the child node to convert
226
+ * @returns a converted virtual DOM node
227
+ */
228
+ const convertToPrivate = (node) => {
229
+ if (typeof node.vtag === 'function') {
230
+ const vnodeData = Object.assign({}, node.vattrs);
231
+ if (node.vkey) {
232
+ vnodeData.key = node.vkey;
233
+ }
234
+ if (node.vname) {
235
+ vnodeData.name = node.vname;
236
+ }
237
+ return h(node.vtag, vnodeData, ...(node.vchildren || []));
238
+ }
239
+ const vnode = newVNode(node.vtag, node.vtext);
240
+ vnode.$attrs$ = node.vattrs;
241
+ vnode.$children$ = node.vchildren;
242
+ vnode.$key$ = node.vkey;
243
+ vnode.$name$ = node.vname;
244
+ return vnode;
245
+ };
246
+ /**
247
+ * Parse a new property value for a given property type.
248
+ *
249
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
250
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
251
+ * 1. `any`, the type given to `propValue` in the function signature
252
+ * 2. the type stored from `propType`.
253
+ *
254
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
255
+ *
256
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
257
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
258
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
259
+ * ```tsx
260
+ * <my-cmp prop-val={0}></my-cmp>
261
+ * ```
262
+ *
263
+ * HTML prop values on the other hand, will always a string
264
+ *
265
+ * @param propValue the new value to coerce to some type
266
+ * @param propType the type of the prop, expressed as a binary number
267
+ * @returns the parsed/coerced value
268
+ */
269
+ const parsePropertyValue = (propValue, propType) => {
270
+ // ensure this value is of the correct prop type
271
+ if (propValue != null && !isComplexType(propValue)) {
272
+ if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
273
+ // per the HTML spec, any string value means it is a boolean true value
274
+ // but we'll cheat here and say that the string "false" is the boolean false
275
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
276
+ }
277
+ if (propType & 2 /* MEMBER_FLAGS.Number */) {
278
+ // force it to be a number
279
+ return parseFloat(propValue);
280
+ }
281
+ if (propType & 1 /* MEMBER_FLAGS.String */) {
282
+ // could have been passed as a number or boolean
283
+ // but we still want it as a string
284
+ return String(propValue);
285
+ }
286
+ // redundant return here for better minification
287
+ return propValue;
288
+ }
289
+ // not sure exactly what type we want
290
+ // so no need to change to a different type
291
+ return propValue;
292
+ };
293
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
294
+ const createEvent = (ref, name, flags) => {
295
+ const elm = getElement(ref);
296
+ return {
297
+ emit: (detail) => {
298
+ return emitEvent(elm, name, {
299
+ bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
300
+ composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
301
+ cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
302
+ detail,
303
+ });
304
+ },
305
+ };
306
+ };
307
+ /**
308
+ * Helper function to create & dispatch a custom Event on a provided target
309
+ * @param elm the target of the Event
310
+ * @param name the name to give the custom Event
311
+ * @param opts options for configuring a custom Event
312
+ * @returns the custom Event
313
+ */
314
+ const emitEvent = (elm, name, opts) => {
315
+ const ev = plt.ce(name, opts);
316
+ elm.dispatchEvent(ev);
317
+ return ev;
318
+ };
319
+ const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
320
+ const registerStyle = (scopeId, cssText, allowCS) => {
321
+ let style = styles.get(scopeId);
322
+ if (supportsConstructableStylesheets && allowCS) {
323
+ style = (style || new CSSStyleSheet());
324
+ if (typeof style === 'string') {
325
+ style = cssText;
326
+ }
327
+ else {
328
+ style.replaceSync(cssText);
329
+ }
330
+ }
331
+ else {
332
+ style = cssText;
333
+ }
334
+ styles.set(scopeId, style);
335
+ };
336
+ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
337
+ var _a;
338
+ let scopeId = getScopeId(cmpMeta);
339
+ const style = styles.get(scopeId);
340
+ // if an element is NOT connected then getRootNode() will return the wrong root node
341
+ // so the fallback is to always use the document for the root node in those cases
342
+ styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
343
+ if (style) {
344
+ if (typeof style === 'string') {
345
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
346
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
347
+ let styleElm;
348
+ if (!appliedStyles) {
349
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
350
+ }
351
+ if (!appliedStyles.has(scopeId)) {
352
+ {
353
+ {
354
+ styleElm = doc.createElement('style');
355
+ styleElm.innerHTML = style;
356
+ }
357
+ // Apply CSP nonce to the style tag if it exists
358
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
359
+ if (nonce != null) {
360
+ styleElm.setAttribute('nonce', nonce);
361
+ }
362
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
363
+ }
364
+ if (appliedStyles) {
365
+ appliedStyles.add(scopeId);
366
+ }
367
+ }
368
+ }
369
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
370
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
371
+ }
372
+ }
373
+ return scopeId;
374
+ };
375
+ const attachStyles = (hostRef) => {
376
+ const cmpMeta = hostRef.$cmpMeta$;
377
+ const elm = hostRef.$hostElement$;
378
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
379
+ addStyle(elm.getRootNode(), cmpMeta);
380
+ endAttachStyles();
381
+ };
382
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
383
+ /**
384
+ * Production setAccessor() function based on Preact by
385
+ * Jason Miller (@developit)
386
+ * Licensed under the MIT License
387
+ * https://github.com/developit/preact/blob/master/LICENSE
388
+ *
389
+ * Modified for Stencil's compiler and vdom
390
+ */
391
+ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
392
+ if (oldValue !== newValue) {
393
+ let isProp = isMemberInElement(elm, memberName);
394
+ let ln = memberName.toLowerCase();
395
+ if (memberName === 'class') {
396
+ const classList = elm.classList;
397
+ const oldClasses = parseClassList(oldValue);
398
+ const newClasses = parseClassList(newValue);
399
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
400
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
401
+ }
402
+ else if (memberName === 'style') {
403
+ // update style attribute, css properties and values
404
+ {
405
+ for (const prop in oldValue) {
406
+ if (!newValue || newValue[prop] == null) {
407
+ if (prop.includes('-')) {
408
+ elm.style.removeProperty(prop);
409
+ }
410
+ else {
411
+ elm.style[prop] = '';
412
+ }
413
+ }
414
+ }
415
+ }
416
+ for (const prop in newValue) {
417
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
418
+ if (prop.includes('-')) {
419
+ elm.style.setProperty(prop, newValue[prop]);
420
+ }
421
+ else {
422
+ elm.style[prop] = newValue[prop];
423
+ }
424
+ }
425
+ }
426
+ }
427
+ else if (memberName === 'key')
428
+ ;
429
+ else if (memberName === 'ref') {
430
+ // minifier will clean this up
431
+ if (newValue) {
432
+ newValue(elm);
433
+ }
434
+ }
435
+ else if ((!isProp ) &&
436
+ memberName[0] === 'o' &&
437
+ memberName[1] === 'n') {
438
+ // Event Handlers
439
+ // so if the member name starts with "on" and the 3rd characters is
440
+ // a capital letter, and it's not already a member on the element,
441
+ // then we're assuming it's an event listener
442
+ if (memberName[2] === '-') {
443
+ // on- prefixed events
444
+ // allows to be explicit about the dom event to listen without any magic
445
+ // under the hood:
446
+ // <my-cmp on-click> // listens for "click"
447
+ // <my-cmp on-Click> // listens for "Click"
448
+ // <my-cmp on-ionChange> // listens for "ionChange"
449
+ // <my-cmp on-EVENTS> // listens for "EVENTS"
450
+ memberName = memberName.slice(3);
451
+ }
452
+ else if (isMemberInElement(win, ln)) {
453
+ // standard event
454
+ // the JSX attribute could have been "onMouseOver" and the
455
+ // member name "onmouseover" is on the window's prototype
456
+ // so let's add the listener "mouseover", which is all lowercased
457
+ memberName = ln.slice(2);
458
+ }
459
+ else {
460
+ // custom event
461
+ // the JSX attribute could have been "onMyCustomEvent"
462
+ // so let's trim off the "on" prefix and lowercase the first character
463
+ // and add the listener "myCustomEvent"
464
+ // except for the first character, we keep the event name case
465
+ memberName = ln[2] + memberName.slice(3);
466
+ }
467
+ if (oldValue) {
468
+ plt.rel(elm, memberName, oldValue, false);
469
+ }
470
+ if (newValue) {
471
+ plt.ael(elm, memberName, newValue, false);
472
+ }
473
+ }
474
+ else {
475
+ // Set property if it exists and it's not a SVG
476
+ const isComplex = isComplexType(newValue);
477
+ if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
478
+ try {
479
+ if (!elm.tagName.includes('-')) {
480
+ const n = newValue == null ? '' : newValue;
481
+ // Workaround for Safari, moving the <input> caret when re-assigning the same valued
482
+ if (memberName === 'list') {
483
+ isProp = false;
484
+ }
485
+ else if (oldValue == null || elm[memberName] != n) {
486
+ elm[memberName] = n;
487
+ }
488
+ }
489
+ else {
490
+ elm[memberName] = newValue;
491
+ }
492
+ }
493
+ catch (e) { }
494
+ }
495
+ /**
496
+ * Need to manually update attribute if:
497
+ * - memberName is not an attribute
498
+ * - if we are rendering the host element in order to reflect attribute
499
+ * - if it's a SVG, since properties might not work in <svg>
500
+ * - if the newValue is null/undefined or 'false'.
501
+ */
502
+ let xlink = false;
503
+ {
504
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) {
505
+ memberName = ln;
506
+ xlink = true;
507
+ }
508
+ }
509
+ if (newValue == null || newValue === false) {
510
+ if (newValue !== false || elm.getAttribute(memberName) === '') {
511
+ if (xlink) {
512
+ elm.removeAttributeNS(XLINK_NS, memberName);
513
+ }
514
+ else {
515
+ elm.removeAttribute(memberName);
516
+ }
517
+ }
518
+ }
519
+ else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
520
+ newValue = newValue === true ? '' : newValue;
521
+ if (xlink) {
522
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
523
+ }
524
+ else {
525
+ elm.setAttribute(memberName, newValue);
526
+ }
527
+ }
528
+ }
529
+ }
530
+ };
531
+ const parseClassListRegex = /\s/;
532
+ const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
533
+ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
534
+ // if the element passed in is a shadow root, which is a document fragment
535
+ // then we want to be adding attrs/props to the shadow root's "host" element
536
+ // if it's not a shadow root, then we add attrs/props to the same element
537
+ const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
538
+ ? newVnode.$elm$.host
539
+ : newVnode.$elm$;
540
+ const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
541
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
542
+ {
543
+ // remove attributes no longer present on the vnode by setting them to undefined
544
+ for (memberName in oldVnodeAttrs) {
545
+ if (!(memberName in newVnodeAttrs)) {
546
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
547
+ }
548
+ }
549
+ }
550
+ // add new & update changed attributes
551
+ for (memberName in newVnodeAttrs) {
552
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
553
+ }
554
+ };
555
+ /**
556
+ * Create a DOM Node corresponding to one of the children of a given VNode.
557
+ *
558
+ * @param oldParentVNode the parent VNode from the previous render
559
+ * @param newParentVNode the parent VNode from the current render
560
+ * @param childIndex the index of the VNode, in the _new_ parent node's
561
+ * children, for which we will create a new DOM node
562
+ * @param parentElm the parent DOM node which our new node will be a child of
563
+ * @returns the newly created node
564
+ */
565
+ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
566
+ // tslint:disable-next-line: prefer-const
567
+ const newVNode = newParentVNode.$children$[childIndex];
568
+ let i = 0;
569
+ let elm;
570
+ let childNode;
571
+ let oldVNode;
572
+ if (!useNativeShadowDom) {
573
+ // remember for later we need to check to relocate nodes
574
+ checkSlotRelocate = true;
575
+ if (newVNode.$tag$ === 'slot') {
576
+ newVNode.$flags$ |= newVNode.$children$
577
+ ? // slot element has fallback content
578
+ 2 /* VNODE_FLAGS.isSlotFallback */
579
+ : // slot element does not have fallback content
580
+ 1 /* VNODE_FLAGS.isSlotReference */;
581
+ }
582
+ }
583
+ if (newVNode.$text$ !== null) {
584
+ // create text node
585
+ elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
586
+ }
587
+ else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
588
+ // create a slot reference node
589
+ elm = newVNode.$elm$ =
590
+ doc.createTextNode('');
591
+ }
592
+ else {
593
+ // create element
594
+ elm = newVNode.$elm$ = (doc.createElement(newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
595
+ ? 'slot-fb'
596
+ : newVNode.$tag$));
597
+ // add css classes, attrs, props, listeners, etc.
598
+ {
599
+ updateElement(null, newVNode, isSvgMode);
600
+ }
601
+ if (newVNode.$children$) {
602
+ for (i = 0; i < newVNode.$children$.length; ++i) {
603
+ // create the node
604
+ childNode = createElm(oldParentVNode, newVNode, i);
605
+ // return node could have been null
606
+ if (childNode) {
607
+ // append our new node
608
+ elm.appendChild(childNode);
609
+ }
610
+ }
611
+ }
612
+ }
613
+ {
614
+ elm['s-hn'] = hostTagName;
615
+ if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
616
+ // remember the content reference comment
617
+ elm['s-sr'] = true;
618
+ // remember the content reference comment
619
+ elm['s-cr'] = contentRef;
620
+ // remember the slot name, or empty string for default slot
621
+ elm['s-sn'] = newVNode.$name$ || '';
622
+ // check if we've got an old vnode for this slot
623
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
624
+ if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
625
+ // we've got an old slot vnode and the wrapper is being replaced
626
+ // so let's move the old slot content back to it's original location
627
+ putBackInOriginalLocation(oldParentVNode.$elm$, false);
628
+ }
629
+ }
630
+ }
631
+ return elm;
632
+ };
633
+ const putBackInOriginalLocation = (parentElm, recursive) => {
634
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
635
+ const oldSlotChildNodes = parentElm.childNodes;
636
+ for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
637
+ const childNode = oldSlotChildNodes[i];
638
+ if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
639
+ // // this child node in the old element is from another component
640
+ // // remove this node from the old slot's parent
641
+ // childNode.remove();
642
+ // and relocate it back to it's original location
643
+ parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
644
+ // remove the old original location comment entirely
645
+ // later on the patch function will know what to do
646
+ // and move this to the correct spot in need be
647
+ childNode['s-ol'].remove();
648
+ childNode['s-ol'] = undefined;
649
+ checkSlotRelocate = true;
650
+ }
651
+ if (recursive) {
652
+ putBackInOriginalLocation(childNode, recursive);
653
+ }
654
+ }
655
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
656
+ };
657
+ /**
658
+ * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
659
+ * add them to the DOM in the appropriate place.
660
+ *
661
+ * @param parentElm the DOM node which should be used as a parent for the new
662
+ * DOM nodes
663
+ * @param before a child of the `parentElm` which the new children should be
664
+ * inserted before (optional)
665
+ * @param parentVNode the parent virtual DOM node
666
+ * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
667
+ * @param startIdx the index in the child virtual DOM nodes at which to start
668
+ * creating DOM nodes (inclusive)
669
+ * @param endIdx the index in the child virtual DOM nodes at which to stop
670
+ * creating DOM nodes (inclusive)
671
+ */
672
+ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
673
+ let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
674
+ let childNode;
675
+ for (; startIdx <= endIdx; ++startIdx) {
676
+ if (vnodes[startIdx]) {
677
+ childNode = createElm(null, parentVNode, startIdx);
678
+ if (childNode) {
679
+ vnodes[startIdx].$elm$ = childNode;
680
+ containerElm.insertBefore(childNode, referenceNode(before) );
681
+ }
682
+ }
683
+ }
684
+ };
685
+ /**
686
+ * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
687
+ * This can be used to, for instance, clean up after a list of children which
688
+ * should no longer be shown.
689
+ *
690
+ * This function also handles some of Stencil's slot relocation logic.
691
+ *
692
+ * @param vnodes a list of virtual DOM nodes to remove
693
+ * @param startIdx the index at which to start removing nodes (inclusive)
694
+ * @param endIdx the index at which to stop removing nodes (inclusive)
695
+ * @param vnode a VNode
696
+ * @param elm an element
697
+ */
698
+ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
699
+ for (; startIdx <= endIdx; ++startIdx) {
700
+ if ((vnode = vnodes[startIdx])) {
701
+ elm = vnode.$elm$;
702
+ callNodeRefs(vnode);
703
+ {
704
+ // we're removing this element
705
+ // so it's possible we need to show slot fallback content now
706
+ checkSlotFallbackVisibility = true;
707
+ if (elm['s-ol']) {
708
+ // remove the original location comment
709
+ elm['s-ol'].remove();
710
+ }
711
+ else {
712
+ // it's possible that child nodes of the node
713
+ // that's being removed are slot nodes
714
+ putBackInOriginalLocation(elm, true);
715
+ }
716
+ }
717
+ // remove the vnode's element from the dom
718
+ elm.remove();
719
+ }
720
+ }
721
+ };
722
+ /**
723
+ * Reconcile the children of a new VNode with the children of an old VNode by
724
+ * traversing the two collections of children, identifying nodes that are
725
+ * conserved or changed, calling out to `patch` to make any necessary
726
+ * updates to the DOM, and rearranging DOM nodes as needed.
727
+ *
728
+ * The algorithm for reconciling children works by analyzing two 'windows' onto
729
+ * the two arrays of children (`oldCh` and `newCh`). We keep track of the
730
+ * 'windows' by storing start and end indices and references to the
731
+ * corresponding array entries. Initially the two 'windows' are basically equal
732
+ * to the entire array, but we progressively narrow the windows until there are
733
+ * no children left to update by doing the following:
734
+ *
735
+ * 1. Skip any `null` entries at the beginning or end of the two arrays, so
736
+ * that if we have an initial array like the following we'll end up dealing
737
+ * only with a window bounded by the highlighted elements:
738
+ *
739
+ * [null, null, VNode1 , ... , VNode2, null, null]
740
+ * ^^^^^^ ^^^^^^
741
+ *
742
+ * 2. Check to see if the elements at the head and tail positions are equal
743
+ * across the windows. This will basically detect elements which haven't
744
+ * been added, removed, or changed position, i.e. if you had the following
745
+ * VNode elements (represented as HTML):
746
+ *
747
+ * oldVNode: `<div><p><span>HEY</span></p></div>`
748
+ * newVNode: `<div><p><span>THERE</span></p></div>`
749
+ *
750
+ * Then when comparing the children of the `<div>` tag we check the equality
751
+ * of the VNodes corresponding to the `<p>` tags and, since they are the
752
+ * same tag in the same position, we'd be able to avoid completely
753
+ * re-rendering the subtree under them with a new DOM element and would just
754
+ * call out to `patch` to handle reconciling their children and so on.
755
+ *
756
+ * 3. Check, for both windows, to see if the element at the beginning of the
757
+ * window corresponds to the element at the end of the other window. This is
758
+ * a heuristic which will let us identify _some_ situations in which
759
+ * elements have changed position, for instance it _should_ detect that the
760
+ * children nodes themselves have not changed but merely moved in the
761
+ * following example:
762
+ *
763
+ * oldVNode: `<div><element-one /><element-two /></div>`
764
+ * newVNode: `<div><element-two /><element-one /></div>`
765
+ *
766
+ * If we find cases like this then we also need to move the concrete DOM
767
+ * elements corresponding to the moved children to write the re-order to the
768
+ * DOM.
769
+ *
770
+ * 4. Finally, if VNodes have the `key` attribute set on them we check for any
771
+ * nodes in the old children which have the same key as the first element in
772
+ * our window on the new children. If we find such a node we handle calling
773
+ * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
774
+ * what we find.
775
+ *
776
+ * Finally, once we've narrowed our 'windows' to the point that either of them
777
+ * collapse (i.e. they have length 0) we then handle any remaining VNode
778
+ * insertion or deletion that needs to happen to get a DOM state that correctly
779
+ * reflects the new child VNodes. If, for instance, after our window on the old
780
+ * children has collapsed we still have more nodes on the new children that
781
+ * we haven't dealt with yet then we need to add them, or if the new children
782
+ * collapse but we still have unhandled _old_ children then we need to make
783
+ * sure the corresponding DOM nodes are removed.
784
+ *
785
+ * @param parentElm the node into which the parent VNode is rendered
786
+ * @param oldCh the old children of the parent node
787
+ * @param newVNode the new VNode which will replace the parent
788
+ * @param newCh the new children of the parent node
789
+ */
790
+ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
791
+ let oldStartIdx = 0;
792
+ let newStartIdx = 0;
793
+ let idxInOld = 0;
794
+ let i = 0;
795
+ let oldEndIdx = oldCh.length - 1;
796
+ let oldStartVnode = oldCh[0];
797
+ let oldEndVnode = oldCh[oldEndIdx];
798
+ let newEndIdx = newCh.length - 1;
799
+ let newStartVnode = newCh[0];
800
+ let newEndVnode = newCh[newEndIdx];
801
+ let node;
802
+ let elmToMove;
803
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
804
+ if (oldStartVnode == null) {
805
+ // VNode might have been moved left
806
+ oldStartVnode = oldCh[++oldStartIdx];
807
+ }
808
+ else if (oldEndVnode == null) {
809
+ oldEndVnode = oldCh[--oldEndIdx];
810
+ }
811
+ else if (newStartVnode == null) {
812
+ newStartVnode = newCh[++newStartIdx];
813
+ }
814
+ else if (newEndVnode == null) {
815
+ newEndVnode = newCh[--newEndIdx];
816
+ }
817
+ else if (isSameVnode(oldStartVnode, newStartVnode)) {
818
+ // if the start nodes are the same then we should patch the new VNode
819
+ // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
820
+ // indices to reflect that. We don't need to move any DOM Nodes around
821
+ // since things are matched up in order.
822
+ patch(oldStartVnode, newStartVnode);
823
+ oldStartVnode = oldCh[++oldStartIdx];
824
+ newStartVnode = newCh[++newStartIdx];
825
+ }
826
+ else if (isSameVnode(oldEndVnode, newEndVnode)) {
827
+ // likewise, if the end nodes are the same we patch new onto old and
828
+ // decrement our end indices, and also likewise in this case we don't
829
+ // need to move any DOM Nodes.
830
+ patch(oldEndVnode, newEndVnode);
831
+ oldEndVnode = oldCh[--oldEndIdx];
832
+ newEndVnode = newCh[--newEndIdx];
833
+ }
834
+ else if (isSameVnode(oldStartVnode, newEndVnode)) {
835
+ // case: "Vnode moved right"
836
+ //
837
+ // We've found that the last node in our window on the new children is
838
+ // the same VNode as the _first_ node in our window on the old children
839
+ // we're dealing with now. Visually, this is the layout of these two
840
+ // nodes:
841
+ //
842
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
843
+ // ^^^^^^^^^^^
844
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
845
+ // ^^^^^^^^^^^^^
846
+ //
847
+ // In this situation we need to patch `newEndVnode` onto `oldStartVnode`
848
+ // and move the DOM element for `oldStartVnode`.
849
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
850
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
851
+ }
852
+ patch(oldStartVnode, newEndVnode);
853
+ // We need to move the element for `oldStartVnode` into a position which
854
+ // will be appropriate for `newEndVnode`. For this we can use
855
+ // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
856
+ // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
857
+ // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
858
+ //
859
+ // <old-start-node />
860
+ // <some-intervening-node />
861
+ // <old-end-node />
862
+ // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
863
+ // <next-sibling />
864
+ //
865
+ // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
866
+ // the node for `oldStartVnode` at the end of the children of
867
+ // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
868
+ // aren't any siblings, and passing `null` to `Node.insertBefore` will
869
+ // append it to the children of the parent element.
870
+ parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
871
+ oldStartVnode = oldCh[++oldStartIdx];
872
+ newEndVnode = newCh[--newEndIdx];
873
+ }
874
+ else if (isSameVnode(oldEndVnode, newStartVnode)) {
875
+ // case: "Vnode moved left"
876
+ //
877
+ // We've found that the first node in our window on the new children is
878
+ // the same VNode as the _last_ node in our window on the old children.
879
+ // Visually, this is the layout of these two nodes:
880
+ //
881
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
882
+ // ^^^^^^^^^^^^^
883
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
884
+ // ^^^^^^^^^^^
885
+ //
886
+ // In this situation we need to patch `newStartVnode` onto `oldEndVnode`
887
+ // (which will handle updating any changed attributes, reconciling their
888
+ // children etc) but we also need to move the DOM node to which
889
+ // `oldEndVnode` corresponds.
890
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
891
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
892
+ }
893
+ patch(oldEndVnode, newStartVnode);
894
+ // We've already checked above if `oldStartVnode` and `newStartVnode` are
895
+ // the same node, so since we're here we know that they are not. Thus we
896
+ // can move the element for `oldEndVnode` _before_ the element for
897
+ // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
898
+ // future.
899
+ parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
900
+ oldEndVnode = oldCh[--oldEndIdx];
901
+ newStartVnode = newCh[++newStartIdx];
902
+ }
903
+ else {
904
+ // Here we do some checks to match up old and new nodes based on the
905
+ // `$key$` attribute, which is set by putting a `key="my-key"` attribute
906
+ // in the JSX for a DOM element in the implementation of a Stencil
907
+ // component.
908
+ //
909
+ // First we check to see if there are any nodes in the array of old
910
+ // children which have the same key as the first node in the new
911
+ // children.
912
+ idxInOld = -1;
913
+ {
914
+ for (i = oldStartIdx; i <= oldEndIdx; ++i) {
915
+ if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
916
+ idxInOld = i;
917
+ break;
918
+ }
919
+ }
920
+ }
921
+ if (idxInOld >= 0) {
922
+ // We found a node in the old children which matches up with the first
923
+ // node in the new children! So let's deal with that
924
+ elmToMove = oldCh[idxInOld];
925
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
926
+ // the tag doesn't match so we'll need a new DOM element
927
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
928
+ }
929
+ else {
930
+ patch(elmToMove, newStartVnode);
931
+ // invalidate the matching old node so that we won't try to update it
932
+ // again later on
933
+ oldCh[idxInOld] = undefined;
934
+ node = elmToMove.$elm$;
935
+ }
936
+ newStartVnode = newCh[++newStartIdx];
937
+ }
938
+ else {
939
+ // We either didn't find an element in the old children that matches
940
+ // the key of the first new child OR the build is not using `key`
941
+ // attributes at all. In either case we need to create a new element
942
+ // for the new node.
943
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
944
+ newStartVnode = newCh[++newStartIdx];
945
+ }
946
+ if (node) {
947
+ // if we created a new node then handle inserting it to the DOM
948
+ {
949
+ parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
950
+ }
951
+ }
952
+ }
953
+ }
954
+ if (oldStartIdx > oldEndIdx) {
955
+ // we have some more new nodes to add which don't match up with old nodes
956
+ addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
957
+ }
958
+ else if (newStartIdx > newEndIdx) {
959
+ // there are nodes in the `oldCh` array which no longer correspond to nodes
960
+ // in the new array, so lets remove them (which entails cleaning up the
961
+ // relevant DOM nodes)
962
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
963
+ }
964
+ };
965
+ /**
966
+ * Compare two VNodes to determine if they are the same
967
+ *
968
+ * **NB**: This function is an equality _heuristic_ based on the available
969
+ * information set on the two VNodes and can be misleading under certain
970
+ * circumstances. In particular, if the two nodes do not have `key` attrs
971
+ * (available under `$key$` on VNodes) then the function falls back on merely
972
+ * checking that they have the same tag.
973
+ *
974
+ * So, in other words, if `key` attrs are not set on VNodes which may be
975
+ * changing order within a `children` array or something along those lines then
976
+ * we could obtain a false negative and then have to do needless re-rendering
977
+ * (i.e. we'd say two VNodes aren't equal when in fact they should be).
978
+ *
979
+ * @param leftVNode the first VNode to check
980
+ * @param rightVNode the second VNode to check
981
+ * @returns whether they're equal or not
982
+ */
983
+ const isSameVnode = (leftVNode, rightVNode) => {
984
+ // compare if two vnode to see if they're "technically" the same
985
+ // need to have the same element tag, and same key to be the same
986
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
987
+ if (leftVNode.$tag$ === 'slot') {
988
+ return leftVNode.$name$ === rightVNode.$name$;
989
+ }
990
+ // this will be set if components in the build have `key` attrs set on them
991
+ {
992
+ return leftVNode.$key$ === rightVNode.$key$;
993
+ }
994
+ }
995
+ return false;
996
+ };
997
+ const referenceNode = (node) => {
998
+ // this node was relocated to a new location in the dom
999
+ // because of some other component's slot
1000
+ // but we still have an html comment in place of where
1001
+ // it's original location was according to it's original vdom
1002
+ return (node && node['s-ol']) || node;
1003
+ };
1004
+ const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
1005
+ /**
1006
+ * Handle reconciling an outdated VNode with a new one which corresponds to
1007
+ * it. This function handles flushing updates to the DOM and reconciling the
1008
+ * children of the two nodes (if any).
1009
+ *
1010
+ * @param oldVNode an old VNode whose DOM element and children we want to update
1011
+ * @param newVNode a new VNode representing an updated version of the old one
1012
+ */
1013
+ const patch = (oldVNode, newVNode) => {
1014
+ const elm = (newVNode.$elm$ = oldVNode.$elm$);
1015
+ const oldChildren = oldVNode.$children$;
1016
+ const newChildren = newVNode.$children$;
1017
+ const tag = newVNode.$tag$;
1018
+ const text = newVNode.$text$;
1019
+ let defaultHolder;
1020
+ if (text === null) {
1021
+ {
1022
+ if (tag === 'slot')
1023
+ ;
1024
+ else {
1025
+ // either this is the first render of an element OR it's an update
1026
+ // AND we already know it's possible it could have changed
1027
+ // this updates the element's css classes, attrs, props, listeners, etc.
1028
+ updateElement(oldVNode, newVNode, isSvgMode);
1029
+ }
1030
+ }
1031
+ if (oldChildren !== null && newChildren !== null) {
1032
+ // looks like there's child vnodes for both the old and new vnodes
1033
+ // so we need to call `updateChildren` to reconcile them
1034
+ updateChildren(elm, oldChildren, newVNode, newChildren);
1035
+ }
1036
+ else if (newChildren !== null) {
1037
+ // no old child vnodes, but there are new child vnodes to add
1038
+ if (oldVNode.$text$ !== null) {
1039
+ // the old vnode was text, so be sure to clear it out
1040
+ elm.textContent = '';
1041
+ }
1042
+ // add the new vnode children
1043
+ addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
1044
+ }
1045
+ else if (oldChildren !== null) {
1046
+ // no new child vnodes, but there are old child vnodes to remove
1047
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
1048
+ }
1049
+ }
1050
+ else if ((defaultHolder = elm['s-cr'])) {
1051
+ // this element has slotted content
1052
+ defaultHolder.parentNode.textContent = text;
1053
+ }
1054
+ else if (oldVNode.$text$ !== text) {
1055
+ // update the text content for the text only vnode
1056
+ // and also only if the text is different than before
1057
+ elm.data = text;
1058
+ }
1059
+ };
1060
+ const updateFallbackSlotVisibility = (elm) => {
1061
+ // tslint:disable-next-line: prefer-const
1062
+ const childNodes = elm.childNodes;
1063
+ let childNode;
1064
+ let i;
1065
+ let ilen;
1066
+ let j;
1067
+ let slotNameAttr;
1068
+ let nodeType;
1069
+ for (i = 0, ilen = childNodes.length; i < ilen; i++) {
1070
+ childNode = childNodes[i];
1071
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1072
+ if (childNode['s-sr']) {
1073
+ // this is a slot fallback node
1074
+ // get the slot name for this slot reference node
1075
+ slotNameAttr = childNode['s-sn'];
1076
+ // by default always show a fallback slot node
1077
+ // then hide it if there are other slots in the light dom
1078
+ childNode.hidden = false;
1079
+ for (j = 0; j < ilen; j++) {
1080
+ nodeType = childNodes[j].nodeType;
1081
+ if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
1082
+ // this sibling node is from a different component OR is a named fallback slot node
1083
+ if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
1084
+ childNode.hidden = true;
1085
+ break;
1086
+ }
1087
+ }
1088
+ else {
1089
+ // this is a default fallback slot node
1090
+ // any element or text node (with content)
1091
+ // should hide the default fallback slot node
1092
+ if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1093
+ (nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
1094
+ childNode.hidden = true;
1095
+ break;
1096
+ }
1097
+ }
1098
+ }
1099
+ }
1100
+ // keep drilling down
1101
+ updateFallbackSlotVisibility(childNode);
1102
+ }
1103
+ }
1104
+ };
1105
+ const relocateNodes = [];
1106
+ const relocateSlotContent = (elm) => {
1107
+ // tslint:disable-next-line: prefer-const
1108
+ let childNode;
1109
+ let node;
1110
+ let hostContentNodes;
1111
+ let slotNameAttr;
1112
+ let relocateNodeData;
1113
+ let j;
1114
+ let i = 0;
1115
+ const childNodes = elm.childNodes;
1116
+ const ilen = childNodes.length;
1117
+ for (; i < ilen; i++) {
1118
+ childNode = childNodes[i];
1119
+ if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
1120
+ // first got the content reference comment node
1121
+ // then we got it's parent, which is where all the host content is in now
1122
+ hostContentNodes = node.parentNode.childNodes;
1123
+ slotNameAttr = childNode['s-sn'];
1124
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
1125
+ node = hostContentNodes[j];
1126
+ if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
1127
+ // let's do some relocating to its new home
1128
+ // but never relocate a content reference node
1129
+ // that is suppose to always represent the original content location
1130
+ if (isNodeLocatedInSlot(node, slotNameAttr)) {
1131
+ // it's possible we've already decided to relocate this node
1132
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1133
+ // made some changes to slots
1134
+ // let's make sure we also double check
1135
+ // fallbacks are correctly hidden or shown
1136
+ checkSlotFallbackVisibility = true;
1137
+ node['s-sn'] = node['s-sn'] || slotNameAttr;
1138
+ if (relocateNodeData) {
1139
+ // previously we never found a slot home for this node
1140
+ // but turns out we did, so let's remember it now
1141
+ relocateNodeData.$slotRefNode$ = childNode;
1142
+ }
1143
+ else {
1144
+ // add to our list of nodes to relocate
1145
+ relocateNodes.push({
1146
+ $slotRefNode$: childNode,
1147
+ $nodeToRelocate$: node,
1148
+ });
1149
+ }
1150
+ if (node['s-sr']) {
1151
+ relocateNodes.map((relocateNode) => {
1152
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
1153
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1154
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
1155
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1156
+ }
1157
+ }
1158
+ });
1159
+ }
1160
+ }
1161
+ else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1162
+ // so far this element does not have a slot home, not setting slotRefNode on purpose
1163
+ // if we never find a home for this element then we'll need to hide it
1164
+ relocateNodes.push({
1165
+ $nodeToRelocate$: node,
1166
+ });
1167
+ }
1168
+ }
1169
+ }
1170
+ }
1171
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1172
+ relocateSlotContent(childNode);
1173
+ }
1174
+ }
1175
+ };
1176
+ const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
1177
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1178
+ if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
1179
+ return true;
1180
+ }
1181
+ if (nodeToRelocate.getAttribute('slot') === slotNameAttr) {
1182
+ return true;
1183
+ }
1184
+ return false;
1185
+ }
1186
+ if (nodeToRelocate['s-sn'] === slotNameAttr) {
1187
+ return true;
1188
+ }
1189
+ return slotNameAttr === '';
1190
+ };
1191
+ const callNodeRefs = (vNode) => {
1192
+ {
1193
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1194
+ vNode.$children$ && vNode.$children$.map(callNodeRefs);
1195
+ }
1196
+ };
1197
+ /**
1198
+ * The main entry point for Stencil's virtual DOM-based rendering engine
1199
+ *
1200
+ * Given a {@link d.HostRef} container and some virtual DOM nodes, this
1201
+ * function will handle creating a virtual DOM tree with a single root, patching
1202
+ * the current virtual DOM tree onto an old one (if any), dealing with slot
1203
+ * relocation, and reflecting attributes.
1204
+ *
1205
+ * @param hostRef data needed to root and render the virtual DOM tree, such as
1206
+ * the DOM node into which it should be rendered.
1207
+ * @param renderFnResults the virtual DOM nodes to be rendered
1208
+ */
1209
+ const renderVdom = (hostRef, renderFnResults) => {
1210
+ const hostElm = hostRef.$hostElement$;
1211
+ const cmpMeta = hostRef.$cmpMeta$;
1212
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1213
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1214
+ hostTagName = hostElm.tagName;
1215
+ if (cmpMeta.$attrsToReflect$) {
1216
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1217
+ cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
1218
+ }
1219
+ rootVnode.$tag$ = null;
1220
+ rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
1221
+ hostRef.$vnode$ = rootVnode;
1222
+ rootVnode.$elm$ = oldVNode.$elm$ = (hostElm);
1223
+ {
1224
+ contentRef = hostElm['s-cr'];
1225
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
1226
+ // always reset
1227
+ checkSlotFallbackVisibility = false;
1228
+ }
1229
+ // synchronous patch
1230
+ patch(oldVNode, rootVnode);
1231
+ {
1232
+ // while we're moving nodes around existing nodes, temporarily disable
1233
+ // the disconnectCallback from working
1234
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1235
+ if (checkSlotRelocate) {
1236
+ relocateSlotContent(rootVnode.$elm$);
1237
+ let relocateData;
1238
+ let nodeToRelocate;
1239
+ let orgLocationNode;
1240
+ let parentNodeRef;
1241
+ let insertBeforeNode;
1242
+ let refNode;
1243
+ let i = 0;
1244
+ for (; i < relocateNodes.length; i++) {
1245
+ relocateData = relocateNodes[i];
1246
+ nodeToRelocate = relocateData.$nodeToRelocate$;
1247
+ if (!nodeToRelocate['s-ol']) {
1248
+ // add a reference node marking this node's original location
1249
+ // keep a reference to this node for later lookups
1250
+ orgLocationNode =
1251
+ doc.createTextNode('');
1252
+ orgLocationNode['s-nr'] = nodeToRelocate;
1253
+ nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
1254
+ }
1255
+ }
1256
+ for (i = 0; i < relocateNodes.length; i++) {
1257
+ relocateData = relocateNodes[i];
1258
+ nodeToRelocate = relocateData.$nodeToRelocate$;
1259
+ if (relocateData.$slotRefNode$) {
1260
+ // by default we're just going to insert it directly
1261
+ // after the slot reference node
1262
+ parentNodeRef = relocateData.$slotRefNode$.parentNode;
1263
+ insertBeforeNode = relocateData.$slotRefNode$.nextSibling;
1264
+ orgLocationNode = nodeToRelocate['s-ol'];
1265
+ while ((orgLocationNode = orgLocationNode.previousSibling)) {
1266
+ refNode = orgLocationNode['s-nr'];
1267
+ if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
1268
+ refNode = refNode.nextSibling;
1269
+ if (!refNode || !refNode['s-nr']) {
1270
+ insertBeforeNode = refNode;
1271
+ break;
1272
+ }
1273
+ }
1274
+ }
1275
+ if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1276
+ nodeToRelocate.nextSibling !== insertBeforeNode) {
1277
+ // we've checked that it's worth while to relocate
1278
+ // since that the node to relocate
1279
+ // has a different next sibling or parent relocated
1280
+ if (nodeToRelocate !== insertBeforeNode) {
1281
+ if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
1282
+ // probably a component in the index.html that doesn't have it's hostname set
1283
+ nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
1284
+ }
1285
+ // add it back to the dom but in its new home
1286
+ parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
1287
+ }
1288
+ }
1289
+ }
1290
+ else {
1291
+ // this node doesn't have a slot home to go to, so let's hide it
1292
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1293
+ nodeToRelocate.hidden = true;
1294
+ }
1295
+ }
1296
+ }
1297
+ }
1298
+ if (checkSlotFallbackVisibility) {
1299
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1300
+ }
1301
+ // done moving nodes around
1302
+ // allow the disconnect callback to work again
1303
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1304
+ // always reset
1305
+ relocateNodes.length = 0;
1306
+ }
1307
+ };
1308
+ const attachToAncestor = (hostRef, ancestorComponent) => {
1309
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1310
+ ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1311
+ }
1312
+ };
1313
+ const scheduleUpdate = (hostRef, isInitialLoad) => {
1314
+ {
1315
+ hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
1316
+ }
1317
+ if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
1318
+ hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
1319
+ return;
1320
+ }
1321
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1322
+ // there is no ancestor component or the ancestor component
1323
+ // has already fired off its lifecycle update then
1324
+ // fire off the initial update
1325
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1326
+ return writeTask(dispatch) ;
1327
+ };
1328
+ const dispatchHooks = (hostRef, isInitialLoad) => {
1329
+ const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1330
+ const instance = hostRef.$lazyInstance$ ;
1331
+ let promise;
1332
+ if (isInitialLoad) {
1333
+ {
1334
+ hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
1335
+ if (hostRef.$queuedListeners$) {
1336
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1337
+ hostRef.$queuedListeners$ = null;
1338
+ }
1339
+ }
1340
+ {
1341
+ promise = safeCall(instance, 'componentWillLoad');
1342
+ }
1343
+ }
1344
+ else {
1345
+ {
1346
+ promise = safeCall(instance, 'componentWillUpdate');
1347
+ }
1348
+ }
1349
+ endSchedule();
1350
+ return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
1351
+ };
1352
+ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1353
+ // updateComponent
1354
+ const elm = hostRef.$hostElement$;
1355
+ const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1356
+ const rc = elm['s-rc'];
1357
+ if (isInitialLoad) {
1358
+ // DOM WRITE!
1359
+ attachStyles(hostRef);
1360
+ }
1361
+ const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1362
+ {
1363
+ callRender(hostRef, instance);
1364
+ }
1365
+ if (rc) {
1366
+ // ok, so turns out there are some child host elements
1367
+ // waiting on this parent element to load
1368
+ // let's fire off all update callbacks waiting
1369
+ rc.map((cb) => cb());
1370
+ elm['s-rc'] = undefined;
1371
+ }
1372
+ endRender();
1373
+ endUpdate();
1374
+ {
1375
+ const childrenPromises = elm['s-p'];
1376
+ const postUpdate = () => postUpdateComponent(hostRef);
1377
+ if (childrenPromises.length === 0) {
1378
+ postUpdate();
1379
+ }
1380
+ else {
1381
+ Promise.all(childrenPromises).then(postUpdate);
1382
+ hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1383
+ childrenPromises.length = 0;
1384
+ }
1385
+ }
1386
+ };
1387
+ const callRender = (hostRef, instance, elm) => {
1388
+ try {
1389
+ instance = instance.render() ;
1390
+ {
1391
+ hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1392
+ }
1393
+ {
1394
+ hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1395
+ }
1396
+ {
1397
+ {
1398
+ // looks like we've got child nodes to render into this host element
1399
+ // or we need to update the css class/attrs on the host element
1400
+ // DOM WRITE!
1401
+ {
1402
+ renderVdom(hostRef, instance);
1403
+ }
1404
+ }
1405
+ }
1406
+ }
1407
+ catch (e) {
1408
+ consoleError(e, hostRef.$hostElement$);
1409
+ }
1410
+ return null;
1411
+ };
1412
+ const postUpdateComponent = (hostRef) => {
1413
+ const tagName = hostRef.$cmpMeta$.$tagName$;
1414
+ const elm = hostRef.$hostElement$;
1415
+ const endPostUpdate = createTime('postUpdate', tagName);
1416
+ const instance = hostRef.$lazyInstance$ ;
1417
+ const ancestorComponent = hostRef.$ancestorComponent$;
1418
+ {
1419
+ safeCall(instance, 'componentDidRender');
1420
+ }
1421
+ if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1422
+ hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1423
+ {
1424
+ // DOM WRITE!
1425
+ addHydratedFlag(elm);
1426
+ }
1427
+ {
1428
+ safeCall(instance, 'componentDidLoad');
1429
+ }
1430
+ endPostUpdate();
1431
+ {
1432
+ hostRef.$onReadyResolve$(elm);
1433
+ if (!ancestorComponent) {
1434
+ appDidLoad();
1435
+ }
1436
+ }
1437
+ }
1438
+ else {
1439
+ {
1440
+ safeCall(instance, 'componentDidUpdate');
1441
+ }
1442
+ endPostUpdate();
1443
+ }
1444
+ {
1445
+ hostRef.$onInstanceResolve$(elm);
1446
+ }
1447
+ // load events fire from bottom to top
1448
+ // the deepest elements load first then bubbles up
1449
+ {
1450
+ if (hostRef.$onRenderResolve$) {
1451
+ hostRef.$onRenderResolve$();
1452
+ hostRef.$onRenderResolve$ = undefined;
1453
+ }
1454
+ if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1455
+ nextTick(() => scheduleUpdate(hostRef, false));
1456
+ }
1457
+ hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1458
+ }
1459
+ // ( •_•)
1460
+ // ( •_•)>⌐■-■
1461
+ // (⌐■_■)
1462
+ };
1463
+ const appDidLoad = (who) => {
1464
+ // on appload
1465
+ // we have finish the first big initial render
1466
+ {
1467
+ addHydratedFlag(doc.documentElement);
1468
+ }
1469
+ nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1470
+ };
1471
+ const safeCall = (instance, method, arg) => {
1472
+ if (instance && instance[method]) {
1473
+ try {
1474
+ return instance[method](arg);
1475
+ }
1476
+ catch (e) {
1477
+ consoleError(e);
1478
+ }
1479
+ }
1480
+ return undefined;
1481
+ };
1482
+ const then = (promise, thenFn) => {
1483
+ return promise && promise.then ? promise.then(thenFn) : thenFn();
1484
+ };
1485
+ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1486
+ ;
1487
+ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1488
+ const setValue = (ref, propName, newVal, cmpMeta) => {
1489
+ // check our new property value against our internal value
1490
+ const hostRef = getHostRef(ref);
1491
+ const elm = hostRef.$hostElement$ ;
1492
+ const oldVal = hostRef.$instanceValues$.get(propName);
1493
+ const flags = hostRef.$flags$;
1494
+ const instance = hostRef.$lazyInstance$ ;
1495
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1496
+ // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1497
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1498
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1499
+ if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1500
+ // gadzooks! the property's value has changed!!
1501
+ // set our new value!
1502
+ hostRef.$instanceValues$.set(propName, newVal);
1503
+ if (instance) {
1504
+ // get an array of method names of watch functions to call
1505
+ if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1506
+ const watchMethods = cmpMeta.$watchers$[propName];
1507
+ if (watchMethods) {
1508
+ // this instance is watching for when this property changed
1509
+ watchMethods.map((watchMethodName) => {
1510
+ try {
1511
+ // fire off each of the watch methods that are watching this property
1512
+ instance[watchMethodName](newVal, oldVal, propName);
1513
+ }
1514
+ catch (e) {
1515
+ consoleError(e, elm);
1516
+ }
1517
+ });
1518
+ }
1519
+ }
1520
+ if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1521
+ // looks like this value actually changed, so we've got work to do!
1522
+ // but only if we've already rendered, otherwise just chill out
1523
+ // queue that we need to do an update, but don't worry about queuing
1524
+ // up millions cuz this function ensures it only runs once
1525
+ scheduleUpdate(hostRef, false);
1526
+ }
1527
+ }
1528
+ }
1529
+ };
1530
+ /**
1531
+ * Attach a series of runtime constructs to a compiled Stencil component
1532
+ * constructor, including getters and setters for the `@Prop` and `@State`
1533
+ * decorators, callbacks for when attributes change, and so on.
1534
+ *
1535
+ * @param Cstr the constructor for a component that we need to process
1536
+ * @param cmpMeta metadata collected previously about the component
1537
+ * @param flags a number used to store a series of bit flags
1538
+ * @returns a reference to the same constructor passed in (but now mutated)
1539
+ */
1540
+ const proxyComponent = (Cstr, cmpMeta, flags) => {
1541
+ if (cmpMeta.$members$) {
1542
+ if (Cstr.watchers) {
1543
+ cmpMeta.$watchers$ = Cstr.watchers;
1544
+ }
1545
+ // It's better to have a const than two Object.entries()
1546
+ const members = Object.entries(cmpMeta.$members$);
1547
+ const prototype = Cstr.prototype;
1548
+ members.map(([memberName, [memberFlags]]) => {
1549
+ if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1550
+ ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1551
+ // proxyComponent - prop
1552
+ Object.defineProperty(prototype, memberName, {
1553
+ get() {
1554
+ // proxyComponent, get value
1555
+ return getValue(this, memberName);
1556
+ },
1557
+ set(newValue) {
1558
+ // proxyComponent, set value
1559
+ setValue(this, memberName, newValue, cmpMeta);
1560
+ },
1561
+ configurable: true,
1562
+ enumerable: true,
1563
+ });
1564
+ }
1565
+ else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
1566
+ memberFlags & 64 /* MEMBER_FLAGS.Method */) {
1567
+ // proxyComponent - method
1568
+ Object.defineProperty(prototype, memberName, {
1569
+ value(...args) {
1570
+ const ref = getHostRef(this);
1571
+ return ref.$onInstancePromise$.then(() => ref.$lazyInstance$[memberName](...args));
1572
+ },
1573
+ });
1574
+ }
1575
+ });
1576
+ if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1577
+ const attrNameToPropName = new Map();
1578
+ prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1579
+ plt.jmp(() => {
1580
+ const propName = attrNameToPropName.get(attrName);
1581
+ // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1582
+ // in the case where an attribute was set inline.
1583
+ // ```html
1584
+ // <my-component some-attribute="some-value"></my-component>
1585
+ // ```
1586
+ //
1587
+ // There is an edge case where a developer sets the attribute inline on a custom element and then
1588
+ // programmatically changes it before it has been upgraded as shown below:
1589
+ //
1590
+ // ```html
1591
+ // <!-- this component has _not_ been upgraded yet -->
1592
+ // <my-component id="test" some-attribute="some-value"></my-component>
1593
+ // <script>
1594
+ // // grab non-upgraded component
1595
+ // el = document.querySelector("#test");
1596
+ // el.someAttribute = "another-value";
1597
+ // // upgrade component
1598
+ // customElements.define('my-component', MyComponent);
1599
+ // </script>
1600
+ // ```
1601
+ // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1602
+ // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1603
+ // to the value that was set inline i.e. "some-value" from above example. When
1604
+ // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1605
+ //
1606
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1607
+ // by connectedCallback as this attributeChangedCallback will not fire.
1608
+ //
1609
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1610
+ //
1611
+ // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1612
+ // properties here given that this goes against best practices outlined here
1613
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1614
+ if (this.hasOwnProperty(propName)) {
1615
+ newValue = this[propName];
1616
+ delete this[propName];
1617
+ }
1618
+ else if (prototype.hasOwnProperty(propName) &&
1619
+ typeof this[propName] === 'number' &&
1620
+ this[propName] == newValue) {
1621
+ // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1622
+ // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1623
+ // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1624
+ return;
1625
+ }
1626
+ this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1627
+ });
1628
+ };
1629
+ // create an array of attributes to observe
1630
+ // and also create a map of html attribute name to js property name
1631
+ Cstr.observedAttributes = members
1632
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1633
+ .map(([propName, m]) => {
1634
+ const attrName = m[1] || propName;
1635
+ attrNameToPropName.set(attrName, propName);
1636
+ if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1637
+ cmpMeta.$attrsToReflect$.push([propName, attrName]);
1638
+ }
1639
+ return attrName;
1640
+ });
1641
+ }
1642
+ }
1643
+ return Cstr;
1644
+ };
1645
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1646
+ // initializeComponent
1647
+ if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1648
+ {
1649
+ // we haven't initialized this element yet
1650
+ hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1651
+ // lazy loaded components
1652
+ // request the component's implementation to be
1653
+ // wired up with the host element
1654
+ Cstr = loadModule(cmpMeta);
1655
+ if (Cstr.then) {
1656
+ // Await creates a micro-task avoid if possible
1657
+ const endLoad = uniqueTime();
1658
+ Cstr = await Cstr;
1659
+ endLoad();
1660
+ }
1661
+ if (!Cstr.isProxied) {
1662
+ // we've never proxied this Constructor before
1663
+ // let's add the getters/setters to its prototype before
1664
+ // the first time we create an instance of the implementation
1665
+ {
1666
+ cmpMeta.$watchers$ = Cstr.watchers;
1667
+ }
1668
+ proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1669
+ Cstr.isProxied = true;
1670
+ }
1671
+ const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1672
+ // ok, time to construct the instance
1673
+ // but let's keep track of when we start and stop
1674
+ // so that the getters/setters don't incorrectly step on data
1675
+ {
1676
+ hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1677
+ }
1678
+ // construct the lazy-loaded component implementation
1679
+ // passing the hostRef is very important during
1680
+ // construction in order to directly wire together the
1681
+ // host element and the lazy-loaded instance
1682
+ try {
1683
+ new Cstr(hostRef);
1684
+ }
1685
+ catch (e) {
1686
+ consoleError(e);
1687
+ }
1688
+ {
1689
+ hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1690
+ }
1691
+ {
1692
+ hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1693
+ }
1694
+ endNewInstance();
1695
+ fireConnectedCallback(hostRef.$lazyInstance$);
1696
+ }
1697
+ if (Cstr.style) {
1698
+ // this component has styles but we haven't registered them yet
1699
+ let style = Cstr.style;
1700
+ const scopeId = getScopeId(cmpMeta);
1701
+ if (!styles.has(scopeId)) {
1702
+ const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1703
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1704
+ endRegisterStyles();
1705
+ }
1706
+ }
1707
+ }
1708
+ // we've successfully created a lazy instance
1709
+ const ancestorComponent = hostRef.$ancestorComponent$;
1710
+ const schedule = () => scheduleUpdate(hostRef, true);
1711
+ if (ancestorComponent && ancestorComponent['s-rc']) {
1712
+ // this is the initial load and this component it has an ancestor component
1713
+ // but the ancestor component has NOT fired its will update lifecycle yet
1714
+ // so let's just cool our jets and wait for the ancestor to continue first
1715
+ // this will get fired off when the ancestor component
1716
+ // finally gets around to rendering its lazy self
1717
+ // fire off the initial update
1718
+ ancestorComponent['s-rc'].push(schedule);
1719
+ }
1720
+ else {
1721
+ schedule();
1722
+ }
1723
+ };
1724
+ const fireConnectedCallback = (instance) => {
1725
+ {
1726
+ safeCall(instance, 'connectedCallback');
1727
+ }
1728
+ };
1729
+ const connectedCallback = (elm) => {
1730
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1731
+ const hostRef = getHostRef(elm);
1732
+ const cmpMeta = hostRef.$cmpMeta$;
1733
+ const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1734
+ if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1735
+ // first time this component has connected
1736
+ hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1737
+ {
1738
+ // initUpdate
1739
+ // if the slot polyfill is required we'll need to put some nodes
1740
+ // in here to act as original content anchors as we move nodes around
1741
+ // host element has been connected to the DOM
1742
+ if ((cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
1743
+ setContentReference(elm);
1744
+ }
1745
+ }
1746
+ {
1747
+ // find the first ancestor component (if there is one) and register
1748
+ // this component as one of the actively loading child components for its ancestor
1749
+ let ancestorComponent = elm;
1750
+ while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1751
+ // climb up the ancestors looking for the first
1752
+ // component that hasn't finished its lifecycle update yet
1753
+ if (ancestorComponent['s-p']) {
1754
+ // we found this components first ancestor component
1755
+ // keep a reference to this component's ancestor component
1756
+ attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1757
+ break;
1758
+ }
1759
+ }
1760
+ }
1761
+ // Lazy properties
1762
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1763
+ if (cmpMeta.$members$) {
1764
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1765
+ if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1766
+ const value = elm[memberName];
1767
+ delete elm[memberName];
1768
+ elm[memberName] = value;
1769
+ }
1770
+ });
1771
+ }
1772
+ {
1773
+ initializeComponent(elm, hostRef, cmpMeta);
1774
+ }
1775
+ }
1776
+ else {
1777
+ // not the first time this has connected
1778
+ // reattach any event listeners to the host
1779
+ // since they would have been removed when disconnected
1780
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1781
+ // fire off connectedCallback() on component instance
1782
+ fireConnectedCallback(hostRef.$lazyInstance$);
1783
+ }
1784
+ endConnected();
1785
+ }
1786
+ };
1787
+ const setContentReference = (elm) => {
1788
+ // only required when we're NOT using native shadow dom (slot)
1789
+ // or this browser doesn't support native shadow dom
1790
+ // and this host element was NOT created with SSR
1791
+ // let's pick out the inner content for slot projection
1792
+ // create a node to represent where the original
1793
+ // content was first placed, which is useful later on
1794
+ const contentRefElm = (elm['s-cr'] = doc.createComment(''));
1795
+ contentRefElm['s-cn'] = true;
1796
+ elm.insertBefore(contentRefElm, elm.firstChild);
1797
+ };
1798
+ const disconnectedCallback = (elm) => {
1799
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1800
+ const hostRef = getHostRef(elm);
1801
+ const instance = hostRef.$lazyInstance$ ;
1802
+ {
1803
+ if (hostRef.$rmListeners$) {
1804
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
1805
+ hostRef.$rmListeners$ = undefined;
1806
+ }
1807
+ }
1808
+ {
1809
+ safeCall(instance, 'disconnectedCallback');
1810
+ }
1811
+ }
1812
+ };
1813
+ const bootstrapLazy = (lazyBundles, options = {}) => {
1814
+ var _a;
1815
+ const endBootstrap = createTime();
1816
+ const cmpTags = [];
1817
+ const exclude = options.exclude || [];
1818
+ const customElements = win.customElements;
1819
+ const head = doc.head;
1820
+ const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1821
+ const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1822
+ const deferredConnectedCallbacks = [];
1823
+ let appLoadFallback;
1824
+ let isBootstrapping = true;
1825
+ Object.assign(plt, options);
1826
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1827
+ lazyBundles.map((lazyBundle) => {
1828
+ lazyBundle[1].map((compactMeta) => {
1829
+ const cmpMeta = {
1830
+ $flags$: compactMeta[0],
1831
+ $tagName$: compactMeta[1],
1832
+ $members$: compactMeta[2],
1833
+ $listeners$: compactMeta[3],
1834
+ };
1835
+ {
1836
+ cmpMeta.$members$ = compactMeta[2];
1837
+ }
1838
+ {
1839
+ cmpMeta.$listeners$ = compactMeta[3];
1840
+ }
1841
+ {
1842
+ cmpMeta.$attrsToReflect$ = [];
1843
+ }
1844
+ {
1845
+ cmpMeta.$watchers$ = {};
1846
+ }
1847
+ const tagName = cmpMeta.$tagName$;
1848
+ const HostElement = class extends HTMLElement {
1849
+ // StencilLazyHost
1850
+ constructor(self) {
1851
+ // @ts-ignore
1852
+ super(self);
1853
+ self = this;
1854
+ registerHost(self, cmpMeta);
1855
+ }
1856
+ connectedCallback() {
1857
+ if (appLoadFallback) {
1858
+ clearTimeout(appLoadFallback);
1859
+ appLoadFallback = null;
1860
+ }
1861
+ if (isBootstrapping) {
1862
+ // connectedCallback will be processed once all components have been registered
1863
+ deferredConnectedCallbacks.push(this);
1864
+ }
1865
+ else {
1866
+ plt.jmp(() => connectedCallback(this));
1867
+ }
1868
+ }
1869
+ disconnectedCallback() {
1870
+ plt.jmp(() => disconnectedCallback(this));
1871
+ }
1872
+ componentOnReady() {
1873
+ return getHostRef(this).$onReadyPromise$;
1874
+ }
1875
+ };
1876
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1877
+ if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1878
+ cmpTags.push(tagName);
1879
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
1880
+ }
1881
+ });
1882
+ });
1883
+ {
1884
+ visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1885
+ visibilityStyle.setAttribute('data-styles', '');
1886
+ // Apply CSP nonce to the style tag if it exists
1887
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1888
+ if (nonce != null) {
1889
+ visibilityStyle.setAttribute('nonce', nonce);
1890
+ }
1891
+ head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1892
+ }
1893
+ // Process deferred connectedCallbacks now all components have been registered
1894
+ isBootstrapping = false;
1895
+ if (deferredConnectedCallbacks.length) {
1896
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1897
+ }
1898
+ else {
1899
+ {
1900
+ plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1901
+ }
1902
+ }
1903
+ // Fallback appLoad event
1904
+ endBootstrap();
1905
+ };
1906
+ const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
1907
+ if (listeners) {
1908
+ listeners.map(([flags, name, method]) => {
1909
+ const target = getHostListenerTarget(elm, flags) ;
1910
+ const handler = hostListenerProxy(hostRef, method);
1911
+ const opts = hostListenerOpts(flags);
1912
+ plt.ael(target, name, handler, opts);
1913
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
1914
+ });
1915
+ }
1916
+ };
1917
+ const hostListenerProxy = (hostRef, methodName) => (ev) => {
1918
+ try {
1919
+ {
1920
+ if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
1921
+ // instance is ready, let's call it's member method for this event
1922
+ hostRef.$lazyInstance$[methodName](ev);
1923
+ }
1924
+ else {
1925
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
1926
+ }
1927
+ }
1928
+ }
1929
+ catch (e) {
1930
+ consoleError(e);
1931
+ }
1932
+ };
1933
+ const getHostListenerTarget = (elm, flags) => {
1934
+ if (flags & 4 /* LISTENER_FLAGS.TargetDocument */)
1935
+ return doc;
1936
+ return elm;
1937
+ };
1938
+ // prettier-ignore
1939
+ const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
1940
+ /**
1941
+ * Assigns the given value to the nonce property on the runtime platform object.
1942
+ * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
1943
+ * @param nonce The value to be assigned to the platform nonce property.
1944
+ * @returns void
1945
+ */
1946
+ const setNonce = (nonce) => (plt.$nonce$ = nonce);
1947
+ const hostRefs = /*@__PURE__*/ new WeakMap();
1948
+ const getHostRef = (ref) => hostRefs.get(ref);
1949
+ const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1950
+ const registerHost = (elm, cmpMeta) => {
1951
+ const hostRef = {
1952
+ $flags$: 0,
1953
+ $hostElement$: elm,
1954
+ $cmpMeta$: cmpMeta,
1955
+ $instanceValues$: new Map(),
1956
+ };
1957
+ {
1958
+ hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
1959
+ }
1960
+ {
1961
+ hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1962
+ elm['s-p'] = [];
1963
+ elm['s-rc'] = [];
1964
+ }
1965
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1966
+ return hostRefs.set(elm, hostRef);
1967
+ };
1968
+ const isMemberInElement = (elm, memberName) => memberName in elm;
1969
+ const consoleError = (e, el) => (0, console.error)(e, el);
1970
+ const cmpModules = /*@__PURE__*/ new Map();
1971
+ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1972
+ // loadModuleImport
1973
+ const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1974
+ const bundleId = cmpMeta.$lazyBundleId$;
1975
+ const module = cmpModules.get(bundleId) ;
1976
+ if (module) {
1977
+ return module[exportName];
1978
+ }
1979
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1980
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1981
+ /* @vite-ignore */
1982
+ /* webpackInclude: /\.entry\.js$/ */
1983
+ /* webpackExclude: /\.system\.entry\.js$/ */
1984
+ /* webpackMode: "lazy" */
1985
+ `./${bundleId}.entry.js${''}`)); }).then((importedModule) => {
1986
+ {
1987
+ cmpModules.set(bundleId, importedModule);
1988
+ }
1989
+ return importedModule[exportName];
1990
+ }, consoleError);
1991
+ };
1992
+ const styles = /*@__PURE__*/ new Map();
1993
+ const win = typeof window !== 'undefined' ? window : {};
1994
+ const doc = win.document || { head: {} };
1995
+ const plt = {
1996
+ $flags$: 0,
1997
+ $resourcesUrl$: '',
1998
+ jmp: (h) => h(),
1999
+ raf: (h) => requestAnimationFrame(h),
2000
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
2001
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
2002
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
2003
+ };
2004
+ const promiseResolve = (v) => Promise.resolve(v);
2005
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
2006
+ try {
2007
+ new CSSStyleSheet();
2008
+ return typeof new CSSStyleSheet().replaceSync === 'function';
2009
+ }
2010
+ catch (e) { }
2011
+ return false;
2012
+ })()
2013
+ ;
2014
+ const queueDomReads = [];
2015
+ const queueDomWrites = [];
2016
+ const queueTask = (queue, write) => (cb) => {
2017
+ queue.push(cb);
2018
+ if (!queuePending) {
2019
+ queuePending = true;
2020
+ if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
2021
+ nextTick(flush);
2022
+ }
2023
+ else {
2024
+ plt.raf(flush);
2025
+ }
2026
+ }
2027
+ };
2028
+ const consume = (queue) => {
2029
+ for (let i = 0; i < queue.length; i++) {
2030
+ try {
2031
+ queue[i](performance.now());
2032
+ }
2033
+ catch (e) {
2034
+ consoleError(e);
2035
+ }
2036
+ }
2037
+ queue.length = 0;
2038
+ };
2039
+ const flush = () => {
2040
+ // always force a bunch of medium callbacks to run, but still have
2041
+ // a throttle on how many can run in a certain time
2042
+ // DOM READS!!!
2043
+ consume(queueDomReads);
2044
+ // DOM WRITES!!!
2045
+ {
2046
+ consume(queueDomWrites);
2047
+ if ((queuePending = queueDomReads.length > 0)) {
2048
+ // still more to do yet, but we've run out of time
2049
+ // let's let this thing cool off and try again in the next tick
2050
+ plt.raf(flush);
2051
+ }
2052
+ }
2053
+ };
2054
+ const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
2055
+ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
2056
+
2057
+ exports.Host = Host;
2058
+ exports.bootstrapLazy = bootstrapLazy;
2059
+ exports.createEvent = createEvent;
2060
+ exports.getElement = getElement;
2061
+ exports.h = h;
2062
+ exports.promiseResolve = promiseResolve;
2063
+ exports.registerInstance = registerInstance;
2064
+ exports.setNonce = setNonce;
2065
+
2066
+ //# sourceMappingURL=index-e1b469cd.js.map