@tarojs/components 3.7.0-alpha.2 → 3.7.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (522) hide show
  1. package/dist/cjs/hls-00fec546.js +25673 -0
  2. package/dist/{esm/index-1d8e8acd.js → cjs/index-f6805218.js} +13 -16
  3. package/dist/cjs/loader.cjs.js +3 -3
  4. package/dist/cjs/taro-ad-core.cjs.entry.js +1 -1
  5. package/dist/cjs/taro-ad-custom-core.cjs.entry.js +1 -1
  6. package/dist/cjs/taro-animation-video-core.cjs.entry.js +1 -1
  7. package/dist/cjs/taro-animation-view-core.cjs.entry.js +1 -1
  8. package/dist/cjs/taro-ar-camera-core.cjs.entry.js +1 -1
  9. package/dist/cjs/taro-audio-core.cjs.entry.js +1 -1
  10. package/dist/cjs/taro-aweme-data-core.cjs.entry.js +1 -1
  11. package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
  12. package/dist/cjs/taro-button-core.cjs.entry.js +2 -2
  13. package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
  14. package/dist/cjs/taro-canvas-core.cjs.entry.js +1 -1
  15. package/dist/cjs/taro-channel-live-core.cjs.entry.js +1 -1
  16. package/dist/cjs/taro-channel-video-core.cjs.entry.js +1 -1
  17. package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +1 -1
  18. package/dist/cjs/taro-comment-detail-core.cjs.entry.js +1 -1
  19. package/dist/cjs/taro-comment-list-core.cjs.entry.js +1 -1
  20. package/dist/cjs/taro-components.cjs.js +3 -3
  21. package/dist/cjs/taro-contact-button-core.cjs.entry.js +1 -1
  22. package/dist/cjs/taro-cover-image-core.cjs.entry.js +1 -1
  23. package/dist/cjs/taro-cover-view-core.cjs.entry.js +2 -2
  24. package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
  25. package/dist/cjs/taro-editor-core.cjs.entry.js +1 -1
  26. package/dist/cjs/taro-follow-swan-core.cjs.entry.js +1 -1
  27. package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
  28. package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +1 -1
  29. package/dist/cjs/taro-grid-view-core.cjs.entry.js +1 -1
  30. package/dist/cjs/taro-icon-core.cjs.entry.js +2 -2
  31. package/dist/cjs/taro-image-core.cjs.entry.js +2 -2
  32. package/dist/cjs/taro-inline-payment-panel-core.cjs.entry.js +1 -1
  33. package/dist/cjs/taro-input-core.cjs.entry.js +7 -12
  34. package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +1 -1
  35. package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
  36. package/dist/cjs/taro-lifestyle-core.cjs.entry.js +1 -1
  37. package/dist/cjs/taro-like-core.cjs.entry.js +1 -1
  38. package/dist/cjs/taro-list-view-core.cjs.entry.js +1 -1
  39. package/dist/cjs/taro-live-player-core.cjs.entry.js +1 -1
  40. package/dist/cjs/taro-live-pusher-core.cjs.entry.js +1 -1
  41. package/dist/cjs/taro-login-core.cjs.entry.js +1 -1
  42. package/dist/cjs/taro-lottie-core.cjs.entry.js +1 -1
  43. package/dist/cjs/taro-map-core.cjs.entry.js +1 -1
  44. package/dist/cjs/taro-match-media-core.cjs.entry.js +1 -1
  45. package/dist/cjs/taro-movable-area-core_2.cjs.entry.js +1 -1
  46. package/dist/cjs/taro-native-slot-core.cjs.entry.js +1 -1
  47. package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +1 -1
  48. package/dist/cjs/taro-navigator-core.cjs.entry.js +2 -2
  49. package/dist/cjs/taro-official-account-core.cjs.entry.js +1 -1
  50. package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
  51. package/dist/cjs/taro-page-container-core.cjs.entry.js +1 -1
  52. package/dist/cjs/taro-page-meta-core.cjs.entry.js +1 -1
  53. package/dist/cjs/taro-picker-core_2.cjs.entry.js +24 -21
  54. package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js +2 -2
  55. package/dist/cjs/taro-progress-core.cjs.entry.js +1 -1
  56. package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +2 -2
  57. package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
  58. package/dist/cjs/taro-rich-text-core.cjs.entry.js +7 -1
  59. package/dist/cjs/taro-root-portal-core.cjs.entry.js +1 -1
  60. package/dist/cjs/taro-rtc-room-core.cjs.entry.js +1 -1
  61. package/dist/cjs/taro-rtc-room-item-core.cjs.entry.js +1 -1
  62. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +2 -2
  63. package/dist/cjs/taro-share-element-core.cjs.entry.js +1 -1
  64. package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
  65. package/dist/cjs/taro-slot-core.cjs.entry.js +1 -1
  66. package/dist/cjs/taro-sticky-header-core.cjs.entry.js +1 -1
  67. package/dist/cjs/taro-sticky-section-core.cjs.entry.js +1 -1
  68. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +2 -2
  69. package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
  70. package/dist/cjs/taro-tab-item-core.cjs.entry.js +1 -1
  71. package/dist/cjs/taro-tabbar.cjs.entry.js +2 -2
  72. package/dist/cjs/taro-tabs-core.cjs.entry.js +1 -1
  73. package/dist/cjs/taro-text-core.cjs.entry.js +10 -7
  74. package/dist/cjs/taro-textarea-core.cjs.entry.js +2 -9
  75. package/dist/cjs/taro-video-control_3.cjs.entry.js +4 -4
  76. package/dist/cjs/taro-view-core.cjs.entry.js +2 -2
  77. package/dist/cjs/taro-voip-room-core.cjs.entry.js +1 -1
  78. package/dist/cjs/taro-web-view-core.cjs.entry.js +1 -1
  79. package/dist/collection/collection-manifest.json +1 -1
  80. package/dist/collection/components/checkbox/checkbox.js +4 -4
  81. package/dist/collection/components/input/input.js +9 -13
  82. package/dist/collection/components/picker/picker-group.js +29 -26
  83. package/dist/collection/components/picker/picker.js +42 -16
  84. package/dist/collection/components/rich-text/rich-text.js +71 -0
  85. package/dist/collection/components/rich-text/style/index.css +16 -0
  86. package/dist/collection/components/text/style/index.css +20 -3
  87. package/dist/collection/components/text/text.js +66 -6
  88. package/dist/collection/components/textarea/textarea.js +4 -10
  89. package/dist/collection/components/video/video.js +1 -1
  90. package/dist/components/hls.js +22697 -24646
  91. package/dist/components/index2.js +12 -17
  92. package/dist/components/picker-group.js +9 -9
  93. package/dist/components/taro-checkbox-core.js +1 -1
  94. package/dist/components/taro-input-core.js +7 -12
  95. package/dist/components/taro-picker-core.js +16 -13
  96. package/dist/components/taro-rich-text-core.js +10 -1
  97. package/dist/components/taro-text-core.js +13 -7
  98. package/dist/components/taro-textarea-core.js +2 -9
  99. package/dist/components/taro-video-core.js +2 -2
  100. package/dist/esm/hls-4018c7ea.js +25671 -0
  101. package/dist/{cjs/index-f9d21cc5.js → esm/index-c3e4004b.js} +12 -22
  102. package/dist/esm/loader.js +4 -4
  103. package/dist/esm/taro-ad-core.entry.js +1 -1
  104. package/dist/esm/taro-ad-custom-core.entry.js +1 -1
  105. package/dist/esm/taro-animation-video-core.entry.js +1 -1
  106. package/dist/esm/taro-animation-view-core.entry.js +1 -1
  107. package/dist/esm/taro-ar-camera-core.entry.js +1 -1
  108. package/dist/esm/taro-audio-core.entry.js +1 -1
  109. package/dist/esm/taro-aweme-data-core.entry.js +1 -1
  110. package/dist/esm/taro-block-core.entry.js +1 -1
  111. package/dist/esm/taro-button-core.entry.js +2 -2
  112. package/dist/esm/taro-camera-core.entry.js +1 -1
  113. package/dist/esm/taro-canvas-core.entry.js +1 -1
  114. package/dist/esm/taro-channel-live-core.entry.js +1 -1
  115. package/dist/esm/taro-channel-video-core.entry.js +1 -1
  116. package/dist/esm/taro-checkbox-core_2.entry.js +1 -1
  117. package/dist/esm/taro-comment-detail-core.entry.js +1 -1
  118. package/dist/esm/taro-comment-list-core.entry.js +1 -1
  119. package/dist/esm/taro-components.js +4 -4
  120. package/dist/esm/taro-contact-button-core.entry.js +1 -1
  121. package/dist/esm/taro-cover-image-core.entry.js +1 -1
  122. package/dist/esm/taro-cover-view-core.entry.js +2 -2
  123. package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
  124. package/dist/esm/taro-editor-core.entry.js +1 -1
  125. package/dist/esm/taro-follow-swan-core.entry.js +1 -1
  126. package/dist/esm/taro-form-core.entry.js +1 -1
  127. package/dist/esm/taro-functional-page-navigator-core.entry.js +1 -1
  128. package/dist/esm/taro-grid-view-core.entry.js +1 -1
  129. package/dist/esm/taro-icon-core.entry.js +2 -2
  130. package/dist/esm/taro-image-core.entry.js +2 -2
  131. package/dist/esm/taro-inline-payment-panel-core.entry.js +1 -1
  132. package/dist/esm/taro-input-core.entry.js +7 -12
  133. package/dist/esm/taro-keyboard-accessory-core.entry.js +1 -1
  134. package/dist/esm/taro-label-core.entry.js +1 -1
  135. package/dist/esm/taro-lifestyle-core.entry.js +1 -1
  136. package/dist/esm/taro-like-core.entry.js +1 -1
  137. package/dist/esm/taro-list-view-core.entry.js +1 -1
  138. package/dist/esm/taro-live-player-core.entry.js +1 -1
  139. package/dist/esm/taro-live-pusher-core.entry.js +1 -1
  140. package/dist/esm/taro-login-core.entry.js +1 -1
  141. package/dist/esm/taro-lottie-core.entry.js +1 -1
  142. package/dist/esm/taro-map-core.entry.js +1 -1
  143. package/dist/esm/taro-match-media-core.entry.js +1 -1
  144. package/dist/esm/taro-movable-area-core_2.entry.js +1 -1
  145. package/dist/esm/taro-native-slot-core.entry.js +1 -1
  146. package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
  147. package/dist/esm/taro-navigator-core.entry.js +2 -2
  148. package/dist/esm/taro-official-account-core.entry.js +1 -1
  149. package/dist/esm/taro-open-data-core.entry.js +1 -1
  150. package/dist/esm/taro-page-container-core.entry.js +1 -1
  151. package/dist/esm/taro-page-meta-core.entry.js +1 -1
  152. package/dist/esm/taro-picker-core_2.entry.js +24 -21
  153. package/dist/esm/taro-picker-view-column-core_2.entry.js +2 -2
  154. package/dist/esm/taro-progress-core.entry.js +1 -1
  155. package/dist/esm/taro-pull-to-refresh.entry.js +2 -2
  156. package/dist/esm/taro-radio-core_2.entry.js +1 -1
  157. package/dist/esm/taro-rich-text-core.entry.js +7 -1
  158. package/dist/esm/taro-root-portal-core.entry.js +1 -1
  159. package/dist/esm/taro-rtc-room-core.entry.js +1 -1
  160. package/dist/esm/taro-rtc-room-item-core.entry.js +1 -1
  161. package/dist/esm/taro-scroll-view-core.entry.js +2 -2
  162. package/dist/esm/taro-share-element-core.entry.js +1 -1
  163. package/dist/esm/taro-slider-core.entry.js +1 -1
  164. package/dist/esm/taro-slot-core.entry.js +1 -1
  165. package/dist/esm/taro-sticky-header-core.entry.js +1 -1
  166. package/dist/esm/taro-sticky-section-core.entry.js +1 -1
  167. package/dist/esm/taro-swiper-core_2.entry.js +2 -2
  168. package/dist/esm/taro-switch-core.entry.js +1 -1
  169. package/dist/esm/taro-tab-item-core.entry.js +1 -1
  170. package/dist/esm/taro-tabbar.entry.js +2 -2
  171. package/dist/esm/taro-tabs-core.entry.js +1 -1
  172. package/dist/esm/taro-text-core.entry.js +10 -7
  173. package/dist/esm/taro-textarea-core.entry.js +2 -9
  174. package/dist/esm/taro-video-control_3.entry.js +4 -4
  175. package/dist/esm/taro-view-core.entry.js +2 -2
  176. package/dist/esm/taro-voip-room-core.entry.js +1 -1
  177. package/dist/esm/taro-web-view-core.entry.js +1 -1
  178. package/dist/esm-es5/hls-4018c7ea.js +1 -0
  179. package/dist/esm-es5/index-c3e4004b.js +7 -0
  180. package/dist/esm-es5/loader.js +1 -1
  181. package/dist/esm-es5/taro-ad-core.entry.js +1 -1
  182. package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
  183. package/dist/esm-es5/taro-animation-video-core.entry.js +1 -1
  184. package/dist/esm-es5/taro-animation-view-core.entry.js +1 -1
  185. package/dist/esm-es5/taro-ar-camera-core.entry.js +1 -1
  186. package/dist/esm-es5/taro-audio-core.entry.js +1 -1
  187. package/dist/esm-es5/taro-aweme-data-core.entry.js +1 -1
  188. package/dist/esm-es5/taro-block-core.entry.js +1 -1
  189. package/dist/esm-es5/taro-button-core.entry.js +1 -1
  190. package/dist/esm-es5/taro-camera-core.entry.js +1 -1
  191. package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
  192. package/dist/esm-es5/taro-channel-live-core.entry.js +1 -1
  193. package/dist/esm-es5/taro-channel-video-core.entry.js +1 -1
  194. package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
  195. package/dist/esm-es5/taro-comment-detail-core.entry.js +1 -1
  196. package/dist/esm-es5/taro-comment-list-core.entry.js +1 -1
  197. package/dist/esm-es5/taro-components.js +1 -1
  198. package/dist/esm-es5/taro-contact-button-core.entry.js +1 -1
  199. package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
  200. package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
  201. package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
  202. package/dist/esm-es5/taro-editor-core.entry.js +1 -1
  203. package/dist/esm-es5/taro-follow-swan-core.entry.js +1 -1
  204. package/dist/esm-es5/taro-form-core.entry.js +1 -1
  205. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
  206. package/dist/esm-es5/taro-grid-view-core.entry.js +1 -1
  207. package/dist/esm-es5/taro-icon-core.entry.js +1 -1
  208. package/dist/esm-es5/taro-image-core.entry.js +1 -1
  209. package/dist/esm-es5/taro-inline-payment-panel-core.entry.js +1 -1
  210. package/dist/esm-es5/taro-input-core.entry.js +1 -1
  211. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
  212. package/dist/esm-es5/taro-label-core.entry.js +1 -1
  213. package/dist/esm-es5/taro-lifestyle-core.entry.js +1 -1
  214. package/dist/esm-es5/taro-like-core.entry.js +1 -1
  215. package/dist/esm-es5/taro-list-view-core.entry.js +1 -1
  216. package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
  217. package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
  218. package/dist/esm-es5/taro-login-core.entry.js +1 -1
  219. package/dist/esm-es5/taro-lottie-core.entry.js +1 -1
  220. package/dist/esm-es5/taro-map-core.entry.js +1 -1
  221. package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
  222. package/dist/esm-es5/taro-movable-area-core_2.entry.js +1 -1
  223. package/dist/esm-es5/taro-native-slot-core.entry.js +1 -1
  224. package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
  225. package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
  226. package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
  227. package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
  228. package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
  229. package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
  230. package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
  231. package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +1 -1
  232. package/dist/esm-es5/taro-progress-core.entry.js +1 -1
  233. package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
  234. package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
  235. package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
  236. package/dist/esm-es5/taro-root-portal-core.entry.js +1 -1
  237. package/dist/esm-es5/taro-rtc-room-core.entry.js +1 -1
  238. package/dist/esm-es5/taro-rtc-room-item-core.entry.js +1 -1
  239. package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
  240. package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
  241. package/dist/esm-es5/taro-slider-core.entry.js +1 -1
  242. package/dist/esm-es5/taro-slot-core.entry.js +1 -1
  243. package/dist/esm-es5/taro-sticky-header-core.entry.js +1 -1
  244. package/dist/esm-es5/taro-sticky-section-core.entry.js +1 -1
  245. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  246. package/dist/esm-es5/taro-switch-core.entry.js +1 -1
  247. package/dist/esm-es5/taro-tab-item-core.entry.js +1 -1
  248. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  249. package/dist/esm-es5/taro-tabs-core.entry.js +1 -1
  250. package/dist/esm-es5/taro-text-core.entry.js +1 -1
  251. package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
  252. package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
  253. package/dist/esm-es5/taro-view-core.entry.js +1 -1
  254. package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
  255. package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
  256. package/dist/taro-components/p-01e163f8.system.entry.js +1 -0
  257. package/dist/taro-components/{p-4402972b.system.entry.js → p-0517f107.system.entry.js} +1 -1
  258. package/dist/taro-components/{p-08bb8dfc.system.entry.js → p-052da7f0.system.entry.js} +1 -1
  259. package/dist/taro-components/{p-8027e1c6.system.entry.js → p-07302165.system.entry.js} +1 -1
  260. package/dist/taro-components/p-085076c5.system.entry.js +1 -0
  261. package/dist/taro-components/{p-90e4274e.entry.js → p-091a7153.entry.js} +1 -1
  262. package/dist/taro-components/{p-623b3eb6.system.entry.js → p-0cf235de.system.entry.js} +1 -1
  263. package/dist/taro-components/{p-70b5e81e.system.entry.js → p-0d7a705b.system.entry.js} +1 -1
  264. package/dist/taro-components/p-0fa96970.entry.js +1 -0
  265. package/dist/taro-components/{p-80f3d88d.entry.js → p-0fe855c6.entry.js} +1 -1
  266. package/dist/taro-components/{p-59590806.system.entry.js → p-117633e9.system.entry.js} +1 -1
  267. package/dist/taro-components/{p-d42e41ff.entry.js → p-137531b6.entry.js} +1 -1
  268. package/dist/taro-components/{p-8b8a8e39.entry.js → p-139e6251.entry.js} +1 -1
  269. package/dist/taro-components/{p-1e8c8ae1.entry.js → p-1404c119.entry.js} +1 -1
  270. package/dist/taro-components/{p-c6e6dab1.system.entry.js → p-1974e52e.system.entry.js} +1 -1
  271. package/dist/taro-components/{p-6dae898a.system.entry.js → p-1991cc1a.system.entry.js} +1 -1
  272. package/dist/taro-components/{p-fa36fe8e.system.entry.js → p-1b3d41d3.system.entry.js} +1 -1
  273. package/dist/taro-components/p-1c4e3899.entry.js +1 -0
  274. package/dist/taro-components/{p-88d64daa.system.entry.js → p-1e739fcb.system.entry.js} +1 -1
  275. package/dist/taro-components/{p-c4fdb669.system.entry.js → p-1f39576a.system.entry.js} +1 -1
  276. package/dist/taro-components/p-204bd245.entry.js +1 -0
  277. package/dist/taro-components/{p-6f214fc3.system.entry.js → p-208e438c.system.entry.js} +1 -1
  278. package/dist/taro-components/{p-bac3deb0.system.entry.js → p-227e33fc.system.entry.js} +1 -1
  279. package/dist/taro-components/{p-1b501f32.system.entry.js → p-2a071adf.system.entry.js} +1 -1
  280. package/dist/taro-components/{p-c6385fc2.system.entry.js → p-2accb92c.system.entry.js} +1 -1
  281. package/dist/taro-components/{p-38de410e.entry.js → p-2af69b72.entry.js} +1 -1
  282. package/dist/taro-components/{p-b2bb02d7.system.entry.js → p-2d1b4dcc.system.entry.js} +1 -1
  283. package/dist/taro-components/p-2ec68968.system.js +7 -0
  284. package/dist/taro-components/{p-4542b767.entry.js → p-30805bdf.entry.js} +1 -1
  285. package/dist/taro-components/{p-4190e20b.system.entry.js → p-3094bda6.system.entry.js} +1 -1
  286. package/dist/taro-components/{p-e753b776.entry.js → p-355e4dbc.entry.js} +1 -1
  287. package/dist/taro-components/{p-7dd9c8da.system.entry.js → p-357ba712.system.entry.js} +1 -1
  288. package/dist/taro-components/{p-c3d3eca2.entry.js → p-38ee526a.entry.js} +1 -1
  289. package/dist/taro-components/{p-dfc405a5.entry.js → p-3d8c9dfb.entry.js} +1 -1
  290. package/dist/taro-components/{p-38a51bd2.entry.js → p-407ca16e.entry.js} +1 -1
  291. package/dist/taro-components/{p-69f6784d.system.entry.js → p-416cc4dd.system.entry.js} +1 -1
  292. package/dist/taro-components/p-425c209a.entry.js +1 -0
  293. package/dist/taro-components/{p-58690684.entry.js → p-43720011.entry.js} +1 -1
  294. package/dist/taro-components/p-43efbf30.js +1 -0
  295. package/dist/taro-components/{p-27c4878c.entry.js → p-469ee343.entry.js} +1 -1
  296. package/dist/taro-components/{p-1be83ed3.entry.js → p-46b8f89b.entry.js} +1 -1
  297. package/dist/taro-components/{p-69fa7272.system.entry.js → p-473afc8e.system.entry.js} +1 -1
  298. package/dist/taro-components/p-486d0ec7.entry.js +1 -0
  299. package/dist/taro-components/{p-c2391de5.entry.js → p-4874f671.entry.js} +1 -1
  300. package/dist/taro-components/{p-c4dd85b6.entry.js → p-50902cd0.entry.js} +1 -1
  301. package/dist/taro-components/{p-74bf8246.system.entry.js → p-53ef8a6c.system.entry.js} +1 -1
  302. package/dist/taro-components/{p-c3d35ae5.entry.js → p-5613907c.entry.js} +1 -1
  303. package/dist/taro-components/{p-9d4fa0d3.system.entry.js → p-5640e9f4.system.entry.js} +1 -1
  304. package/dist/taro-components/{p-f9ac515e.system.entry.js → p-57b9943c.system.entry.js} +1 -1
  305. package/dist/taro-components/{p-7c1fc8f5.system.entry.js → p-5c1e6b1c.system.entry.js} +1 -1
  306. package/dist/taro-components/{p-97782cdd.system.entry.js → p-5dab46cd.system.entry.js} +1 -1
  307. package/dist/taro-components/{p-b1c972e2.system.entry.js → p-6127b1b6.system.entry.js} +1 -1
  308. package/dist/taro-components/{p-dcb5b505.system.entry.js → p-657cb6e4.system.entry.js} +1 -1
  309. package/dist/taro-components/{p-f499c0a0.system.entry.js → p-66b0b419.system.entry.js} +1 -1
  310. package/dist/taro-components/p-66f7eea6.entry.js +1 -0
  311. package/dist/taro-components/{p-46244579.system.entry.js → p-69cd1f2a.system.entry.js} +1 -1
  312. package/dist/taro-components/p-6cde180b.entry.js +1 -0
  313. package/dist/taro-components/{p-bba8c3a7.system.entry.js → p-6d4b7e5c.system.entry.js} +1 -1
  314. package/dist/taro-components/{p-11936d9a.entry.js → p-6db97374.entry.js} +1 -1
  315. package/dist/taro-components/p-6e115968.entry.js +1 -0
  316. package/dist/taro-components/{p-badfb3be.entry.js → p-6f84e936.entry.js} +1 -1
  317. package/dist/taro-components/{p-3c5ac930.entry.js → p-7152d85b.entry.js} +1 -1
  318. package/dist/taro-components/{p-4e77bdea.entry.js → p-719e1eaf.entry.js} +1 -1
  319. package/dist/taro-components/p-71b54f06.entry.js +1 -0
  320. package/dist/taro-components/p-72b118b0.entry.js +1 -0
  321. package/dist/taro-components/p-78e4805e.entry.js +1 -0
  322. package/dist/taro-components/{p-8e5cc8fe.system.entry.js → p-79c3fde3.system.entry.js} +1 -1
  323. package/dist/taro-components/p-7b3b8057.entry.js +1 -0
  324. package/dist/taro-components/p-7d635413.entry.js +1 -0
  325. package/dist/taro-components/{p-4d0da795.system.entry.js → p-7e8e355b.system.entry.js} +1 -1
  326. package/dist/taro-components/{p-4915fdc1.system.entry.js → p-7ff654e6.system.entry.js} +1 -1
  327. package/dist/taro-components/p-801f09b8.entry.js +1 -0
  328. package/dist/taro-components/{p-26889f3c.system.entry.js → p-81f2ad70.system.entry.js} +1 -1
  329. package/dist/taro-components/{p-4514dc53.system.entry.js → p-8201ee31.system.entry.js} +1 -1
  330. package/dist/taro-components/{p-ef7e7d73.system.entry.js → p-85a7daeb.system.entry.js} +1 -1
  331. package/dist/taro-components/p-86280254.entry.js +1 -0
  332. package/dist/taro-components/{p-4d7182f4.system.entry.js → p-88d2b41b.system.entry.js} +1 -1
  333. package/dist/taro-components/{p-0a165ad3.system.entry.js → p-898db637.system.entry.js} +1 -1
  334. package/dist/taro-components/{p-05c757b7.entry.js → p-8c0b740e.entry.js} +1 -1
  335. package/dist/taro-components/{p-95f70aea.system.entry.js → p-90333d0a.system.entry.js} +1 -1
  336. package/dist/taro-components/p-9046110a.entry.js +1 -0
  337. package/dist/taro-components/{p-d797cdc4.entry.js → p-904df510.entry.js} +1 -1
  338. package/dist/taro-components/{p-b1249ebb.system.entry.js → p-907d9d01.system.entry.js} +1 -1
  339. package/dist/taro-components/{p-b5ad2aec.entry.js → p-962f28cb.entry.js} +1 -1
  340. package/dist/taro-components/{p-23cb8a7f.entry.js → p-968b7c1d.entry.js} +1 -1
  341. package/dist/taro-components/{p-58877ef2.system.entry.js → p-98f9f50f.system.entry.js} +1 -1
  342. package/dist/taro-components/p-9a5fbb2e.entry.js +1 -0
  343. package/dist/taro-components/{p-51b6fc09.system.entry.js → p-9ac947ac.system.entry.js} +1 -1
  344. package/dist/taro-components/{p-369fb262.entry.js → p-9aeb7995.entry.js} +1 -1
  345. package/dist/taro-components/{p-05bc0fce.entry.js → p-9b6550fc.entry.js} +1 -1
  346. package/dist/taro-components/{p-0a9b984e.system.entry.js → p-9d9ede17.system.entry.js} +1 -1
  347. package/dist/taro-components/p-9edea30f.system.entry.js +1 -0
  348. package/dist/taro-components/{p-7722f33f.entry.js → p-9fe49bab.entry.js} +1 -1
  349. package/dist/taro-components/{p-acd9a9da.entry.js → p-a1763153.entry.js} +1 -1
  350. package/dist/taro-components/{p-f44e975b.entry.js → p-a20ecd3b.entry.js} +1 -1
  351. package/dist/taro-components/p-a20fed0a.entry.js +1 -0
  352. package/dist/taro-components/p-a3a1a779.entry.js +1 -0
  353. package/dist/taro-components/{p-f671ed7d.entry.js → p-a8565231.entry.js} +1 -1
  354. package/dist/taro-components/{p-9e8619a6.system.entry.js → p-a8925584.system.entry.js} +1 -1
  355. package/dist/taro-components/p-a8e7cf87.entry.js +1 -0
  356. package/dist/taro-components/p-a940a65b.entry.js +1 -0
  357. package/dist/taro-components/{p-be6050fd.system.entry.js → p-a96b4b19.system.entry.js} +1 -1
  358. package/dist/taro-components/{p-da5cdbf5.system.entry.js → p-ab726c20.system.entry.js} +1 -1
  359. package/dist/taro-components/{p-895cd7c9.system.entry.js → p-af3fa859.system.entry.js} +1 -1
  360. package/dist/taro-components/{p-8d037fc0.entry.js → p-af8e521a.entry.js} +1 -1
  361. package/dist/taro-components/p-af9ef8b4.entry.js +1 -0
  362. package/dist/taro-components/{p-6f048097.system.entry.js → p-afb3895c.system.entry.js} +1 -1
  363. package/dist/taro-components/{p-58b7e960.entry.js → p-b027181b.entry.js} +1 -1
  364. package/dist/taro-components/{p-2024e133.system.entry.js → p-b1d2b575.system.entry.js} +1 -1
  365. package/dist/taro-components/{p-dccf1ae9.entry.js → p-b235e43c.entry.js} +1 -1
  366. package/dist/taro-components/p-b4ea72ea.entry.js +1 -0
  367. package/dist/taro-components/p-b4f3d0ab.entry.js +1 -0
  368. package/dist/taro-components/{p-ae3f1ed4.system.entry.js → p-b5b30493.system.entry.js} +1 -1
  369. package/dist/taro-components/{p-f9c26678.entry.js → p-b641e598.entry.js} +1 -1
  370. package/dist/taro-components/{p-78c30850.system.entry.js → p-b6d4634f.system.entry.js} +1 -1
  371. package/dist/taro-components/{p-c70dd956.system.entry.js → p-bcf80126.system.entry.js} +1 -1
  372. package/dist/taro-components/p-bdc30301.entry.js +1 -0
  373. package/dist/taro-components/{p-c2c498d9.entry.js → p-bf0e0394.entry.js} +1 -1
  374. package/dist/taro-components/{p-e3f8265d.system.entry.js → p-c1073ed6.system.entry.js} +1 -1
  375. package/dist/taro-components/p-c11a42e0.entry.js +1 -0
  376. package/dist/taro-components/p-c39a46ca.system.entry.js +1 -0
  377. package/dist/taro-components/{p-1493866a.entry.js → p-c4b8851b.entry.js} +1 -1
  378. package/dist/taro-components/{p-9318da32.entry.js → p-cc164fa3.entry.js} +1 -1
  379. package/dist/taro-components/{p-736053bb.system.entry.js → p-cc70bb7a.system.entry.js} +1 -1
  380. package/dist/taro-components/{p-8d2101be.system.entry.js → p-cdb76676.system.entry.js} +1 -1
  381. package/dist/taro-components/p-d34a6c04.entry.js +1 -0
  382. package/dist/taro-components/{p-7df9de66.system.entry.js → p-da239b8b.system.entry.js} +1 -1
  383. package/dist/taro-components/p-de951a46.js +7 -0
  384. package/dist/taro-components/p-e09451c5.system.entry.js +1 -0
  385. package/dist/taro-components/{p-79c41bc2.entry.js → p-e33f3592.entry.js} +1 -1
  386. package/dist/taro-components/p-e3480c4c.entry.js +1 -0
  387. package/dist/taro-components/{p-087bf23a.system.entry.js → p-e53508c1.system.entry.js} +1 -1
  388. package/dist/taro-components/{p-10be7fb5.system.entry.js → p-e6481671.system.entry.js} +1 -1
  389. package/dist/taro-components/{p-c33733b3.system.entry.js → p-e67755f0.system.entry.js} +1 -1
  390. package/dist/taro-components/p-e78775ce.system.js +1 -0
  391. package/dist/taro-components/{p-518146fd.system.entry.js → p-eaa370a9.system.entry.js} +1 -1
  392. package/dist/taro-components/p-ebc7b6fc.entry.js +1 -0
  393. package/dist/taro-components/{p-02aa7366.system.entry.js → p-ebdd350f.system.entry.js} +1 -1
  394. package/dist/taro-components/p-ed331c06.system.js +1 -0
  395. package/dist/taro-components/p-f02b6f70.entry.js +1 -0
  396. package/dist/taro-components/{p-9df17ea6.entry.js → p-f0340edf.entry.js} +1 -1
  397. package/dist/taro-components/{p-2bac359b.entry.js → p-f07cd1de.entry.js} +1 -1
  398. package/dist/taro-components/{p-c586a796.system.entry.js → p-f11c9c37.system.entry.js} +1 -1
  399. package/dist/taro-components/{p-1941d333.system.entry.js → p-f420680c.system.entry.js} +1 -1
  400. package/dist/taro-components/p-f533bc2f.entry.js +1 -0
  401. package/dist/taro-components/{p-30fe0e81.system.entry.js → p-f534057e.system.entry.js} +1 -1
  402. package/dist/taro-components/p-f6f6a996.system.entry.js +1 -0
  403. package/dist/taro-components/{p-17302fe9.system.entry.js → p-f7927285.system.entry.js} +1 -1
  404. package/dist/taro-components/p-f7b32c6b.entry.js +1 -0
  405. package/dist/taro-components/{p-33223303.system.entry.js → p-fa0f6dab.system.entry.js} +1 -1
  406. package/dist/taro-components/{p-1c320250.system.entry.js → p-fa6c022a.system.entry.js} +1 -1
  407. package/dist/taro-components/p-fb983850.entry.js +1 -0
  408. package/dist/taro-components/{p-0939fd26.system.entry.js → p-fd7ff0f3.system.entry.js} +1 -1
  409. package/dist/taro-components/taro-components.css +1 -1
  410. package/dist/taro-components/taro-components.esm.js +1 -1
  411. package/dist/taro-components/taro-components.js +1 -1
  412. package/dist/types/components/checkbox/checkbox.d.ts +1 -1
  413. package/dist/types/components/input/input.d.ts +2 -2
  414. package/dist/types/components/picker/picker-group.d.ts +3 -3
  415. package/dist/types/components/picker/picker.d.ts +7 -2
  416. package/dist/types/components/rich-text/rich-text.d.ts +4 -0
  417. package/dist/types/components/text/text.d.ts +4 -0
  418. package/dist/types/components/textarea/textarea.d.ts +0 -1
  419. package/dist/types/components.d.ts +26 -8
  420. package/lib/react/component-lib/index.d.ts +1 -1
  421. package/lib/react/component-lib/index.js +50 -50
  422. package/lib/react/component-lib/index.js.map +1 -1
  423. package/lib/react/component-lib/reactify-wc.js +1 -1
  424. package/lib/react/component-lib/reactify-wc.js.map +1 -1
  425. package/lib/react/components.d.ts +81 -83
  426. package/lib/react/components.js +2 -2
  427. package/lib/react/components.js.map +1 -1
  428. package/lib/react/helper.d.ts +1 -1
  429. package/lib/react/index.d.ts +1 -1
  430. package/lib/react/react-component-lib/createComponent.d.ts +1 -1
  431. package/lib/react/react-component-lib/createOverlayComponent.d.ts +2 -2
  432. package/lib/react/react-component-lib/createOverlayComponent.js.map +1 -1
  433. package/lib/react/react-component-lib/index.d.ts +2 -2
  434. package/lib/react/react-component-lib/utils/attachProps.js +1 -4
  435. package/lib/react/react-component-lib/utils/attachProps.js.map +1 -1
  436. package/lib/react/react-component-lib/utils/index.d.ts +3 -3
  437. package/lib/vue2/components.d.ts +9 -3
  438. package/lib/vue2/components.js +12 -6
  439. package/lib/vue2/components.js.map +1 -1
  440. package/lib/vue2/index.d.ts +1 -1
  441. package/lib/vue2/vue-component-lib/utils.js.map +1 -1
  442. package/lib/vue3/component-lib/index.d.ts +4 -4
  443. package/lib/vue3/component-lib/index.js +48 -48
  444. package/lib/vue3/component-lib/index.js.map +1 -1
  445. package/lib/vue3/components.d.ts +81 -81
  446. package/lib/vue3/components.js +13 -6
  447. package/lib/vue3/components.js.map +1 -1
  448. package/lib/vue3/index.d.ts +1 -1
  449. package/lib/vue3/vue-component-lib/utils.js.map +1 -1
  450. package/package.json +13 -11
  451. package/types/Button.d.ts +9 -7
  452. package/types/ChannelVideo.d.ts +4 -0
  453. package/types/Form.d.ts +11 -0
  454. package/types/Image.d.ts +5 -0
  455. package/types/Input.d.ts +6 -1
  456. package/types/LivePlayer.d.ts +17 -0
  457. package/types/LivePusher.d.ts +10 -0
  458. package/types/Picker.d.ts +9 -0
  459. package/types/Progress.d.ts +2 -2
  460. package/types/RichText.d.ts +6 -4
  461. package/types/ScrollView.d.ts +5 -5
  462. package/types/ShareElement.d.ts +39 -0
  463. package/types/StickySection.d.ts +0 -1
  464. package/types/Swiper.d.ts +10 -0
  465. package/types/Text.d.ts +8 -3
  466. package/types/Textarea.d.ts +10 -3
  467. package/types/Video.d.ts +12 -0
  468. package/types/View.d.ts +1 -1
  469. package/virtual-list/index.js +2 -2
  470. package/dist/cjs/hls-67cbc62d.js +0 -27622
  471. package/dist/esm/hls-221423a1.js +0 -27620
  472. package/dist/esm-es5/hls-221423a1.js +0 -365
  473. package/dist/esm-es5/index-1d8e8acd.js +0 -7
  474. package/dist/taro-components/p-0393ed55.entry.js +0 -1
  475. package/dist/taro-components/p-07293238.entry.js +0 -1
  476. package/dist/taro-components/p-0b8b3af5.entry.js +0 -1
  477. package/dist/taro-components/p-1249cb09.entry.js +0 -1
  478. package/dist/taro-components/p-1385d50f.entry.js +0 -1
  479. package/dist/taro-components/p-16e03200.entry.js +0 -1
  480. package/dist/taro-components/p-1743a04b.system.js +0 -365
  481. package/dist/taro-components/p-1c446c65.system.js +0 -1
  482. package/dist/taro-components/p-22dc57d4.entry.js +0 -1
  483. package/dist/taro-components/p-2e28cb1c.entry.js +0 -1
  484. package/dist/taro-components/p-2f7dba29.entry.js +0 -1
  485. package/dist/taro-components/p-30f32fa2.system.entry.js +0 -1
  486. package/dist/taro-components/p-39685396.system.entry.js +0 -1
  487. package/dist/taro-components/p-3c91f59b.entry.js +0 -1
  488. package/dist/taro-components/p-3d60bd58.entry.js +0 -1
  489. package/dist/taro-components/p-429a0f99.entry.js +0 -1
  490. package/dist/taro-components/p-42bcb98a.entry.js +0 -1
  491. package/dist/taro-components/p-491c6272.system.entry.js +0 -1
  492. package/dist/taro-components/p-5931c82e.entry.js +0 -1
  493. package/dist/taro-components/p-61f225ef.system.js +0 -7
  494. package/dist/taro-components/p-651586f8.system.entry.js +0 -1
  495. package/dist/taro-components/p-6de6eb4e.entry.js +0 -1
  496. package/dist/taro-components/p-7377a117.entry.js +0 -1
  497. package/dist/taro-components/p-744a6b99.entry.js +0 -1
  498. package/dist/taro-components/p-76724e58.js +0 -7
  499. package/dist/taro-components/p-80970d8f.entry.js +0 -1
  500. package/dist/taro-components/p-8feeb7ce.entry.js +0 -1
  501. package/dist/taro-components/p-a294e169.entry.js +0 -1
  502. package/dist/taro-components/p-a5afdc47.system.entry.js +0 -1
  503. package/dist/taro-components/p-a6d2e81b.entry.js +0 -1
  504. package/dist/taro-components/p-a9b51167.entry.js +0 -1
  505. package/dist/taro-components/p-ae8fd8c8.entry.js +0 -1
  506. package/dist/taro-components/p-affb28de.entry.js +0 -1
  507. package/dist/taro-components/p-b16eddaa.entry.js +0 -1
  508. package/dist/taro-components/p-b708e9fe.entry.js +0 -1
  509. package/dist/taro-components/p-beba1657.entry.js +0 -1
  510. package/dist/taro-components/p-d5234e7e.js +0 -365
  511. package/dist/taro-components/p-e2f2fbe5.entry.js +0 -1
  512. package/dist/taro-components/p-e8b1ea64.entry.js +0 -1
  513. package/dist/taro-components/p-e9eeb060.entry.js +0 -1
  514. package/dist/taro-components/p-efcfdb97.entry.js +0 -1
  515. package/dist/taro-components/p-fb585037.entry.js +0 -1
  516. package/dist/taro-components/p-fcdac6ec.system.entry.js +0 -1
  517. package/dist/taro-components/p-fdecdc25.entry.js +0 -1
  518. /package/dist/cjs/{index-e1b469cd.js → index-e751dfe3.js} +0 -0
  519. /package/dist/esm/{index-c948674f.js → index-980f930f.js} +0 -0
  520. /package/dist/esm-es5/{index-c948674f.js → index-980f930f.js} +0 -0
  521. /package/dist/taro-components/{p-1a0e1932.system.js → p-7e6b54cb.system.js} +0 -0
  522. /package/dist/taro-components/{p-78e3ebb9.js → p-9137dcab.js} +0 -0
@@ -1 +1 @@
1
- var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,o=t.length,n;a<o;a++){if(n||!(a in t)){if(!n)n=Array.prototype.slice.call(t,0,a);n[a]=t[a]}}return e.concat(n||Array.prototype.slice.call(t))};System.register(["./p-1a0e1932.system.js","@tarojs/taro","./p-61f225ef.system.js","./p-bd5177d3.system.js"],(function(e){"use strict";var t,r,a,o,n,i,s,l;return{setters:[function(e){t=e.h;r=e.r;a=e.c;o=e.H;n=e.g},function(e){i=e.default},function(e){s=e.c},function(e){l=e.i}],execute:function(){var d=function(e){var t=e||"";var r;var a={path:null,query:null,fragment:null};r=t.indexOf("#");if(r>-1){a.fragment=t.substring(r+1);t=t.substring(0,r)}r=t.indexOf("?");if(r>-1){a.query=t.substring(r+1);t=t.substring(0,r)}a.path=t;return a};var b=function(e){if(e===void 0){e=""}return e.charAt(0)==="/"?e:"/"+e};var h=function(e,t){if(e===void 0){e=""}if(t===void 0){t=""}return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)||e===t};var c=function(e,t){if(e===void 0){e=""}if(t===void 0){t=""}return h(e,t)?e.substring(t.length):e};var f=function(e,t){if(e===void 0){e=""}if(t===void 0){t=""}return e.includes(t)?e.substring(0,e.length-t.length):e};var u=function(e,t){if(e===void 0){e="hash"}if(t===void 0){t="/"}var r=e==="hash"?location.hash.slice(1).split("?")[0]:location.pathname;return b(c(r,t))};function v(e){return e.charAt(0)==="/"}function g(e,t){for(var r=t,a=r+1,o=e.length;a<o;r+=1,a+=1){e[r]=e[a]}e.pop()}function p(e,t){if(t===undefined)t="";var r=e&&e.split("/")||[];var a=t&&t.split("/")||[];var o=e&&v(e);var n=t&&v(t);var i=o||n;if(e&&v(e)){a=r}else if(r.length){a.pop();a=a.concat(r)}if(!a.length)return"/";var s;if(a.length){var l=a[a.length-1];s=l==="."||l===".."||l===""}else{s=false}var d=0;for(var b=a.length;b>=0;b--){var h=a[b];if(h==="."){g(a,b)}else if(h===".."){g(a,b);d++}else if(d){g(a,b);d--}}if(!i)for(;d--;d)a.unshift("..");if(i&&a[0]!==""&&(!a[0]||!v(a[0])))a.unshift("");var c=a.join("/");if(s&&c.substr(-1)!=="/")c+="/";return c}var _=function(e){var r=e.index,a=e.isSelected,o=a===void 0?false:a,n=e.textColor,d=e.iconPath,b=e.badgeText,h=e.showRedDot,c=h===void 0?false:h,f=e.pagePath,u=e.text,v=e.onSelect;var g=s("weui-tabbar__item",{"weui-bar__item_on":o});var p={position:"absolute",top:"-2px",right:"-13px"};var _={position:"absolute",top:"0",right:"-6px"};function m(){var e=i.getCurrentPages().shift();if(typeof(e===null||e===void 0?void 0:e.onTabItemTap)==="function"&&l(this)){e.onTabItemTap({index:r,pagePath:f,text:u})}v(r)}return t("a",{key:r,href:"javascript:;",class:g,onClick:m},t("span",{style:{display:"inline-block",position:"relative"}},t("img",{src:d,alt:"",class:"weui-tabbar__icon"}),!!b&&t("span",{class:"weui-badge taro-tabbar-badge",style:p},b),c&&t("span",{class:"weui-badge weui-badge_dot",style:_})),t("p",{class:"weui-tabbar__label",style:{color:n}},u))};var m="html,body{height:100%}#app{height:100%}.taro-tabbar__border-white::before{border-top-color:#fff !important}.taro-tabbar__container{display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-direction:column;flex-direction:column;height:100%}.taro-tabbar__panel{overflow:auto;position:relative;-ms-flex:1;flex:1;-webkit-overflow-scrolling:auto}.taro-tabbar__tabbar{position:relative;width:100%;height:50px;-webkit-transition:bottom 0.2s, top 0.2s;transition:bottom 0.2s, top 0.2s}.taro-tabbar__tabbar-top{top:0}.taro-tabbar__tabbar-bottom{bottom:0;margin-bottom:constant(safe-area-inset-bottom);margin-bottom:env(safe-area-inset-bottom)}.taro-tabbar__tabbar-hide{display:none}.taro-tabbar__tabbar-slideout{top:-52px;-ms-flex:0 0;flex:0 0}.taro-tabbar__panel+.taro-tabbar__tabbar-slideout{top:auto;bottom:-52px}";var T=0;var B=1;var y=2;var H="taro-tabbar__tabbar";var x="taro-tabbar__tabbar-hide";var w="taro-tabbar__tabbar-slideout";var C=e("taro_tabbar",function(){function e(e){var t=this;r(this,e);this.onLongPress=a(this,"longpress",7);this.homePage="";this.customRoutes=[];this.tabbarPos="bottom";this.getOriginUrl=function(e){var r=t.customRoutes.filter((function(t){var r=t[1];var a=d(r).path;var o=d(e).path;return a===o}));return f(r.length?r[0][0]:e,".html")};this.getSelectedIndex=function(e){var r=-1;t.list.forEach((function(t,a){var o=t.pagePath;var n=d(e).path;var i=d(o).path;if(n===i){r=a}}));return r};this.switchTab=function(e){t.selectedIndex=e;i.switchTab({url:t.list[e].pagePath})};this.switchTabHandler=function(e){var r=e.url,a=e.successHandler,o=e.errorHandler;var n=t.getOriginUrl(t.getCurrentUrl()||t.homePage);var i=p(r,n);var s=t.getSelectedIndex(i);if(s>-1){t.switchTab(s);a({errMsg:"switchTab:ok"})}else{o({errMsg:'switchTab:fail page "'.concat(i,'" is not found')})}};this.routerChangeHandler=function(e){var r;var a=(r=e===null||e===void 0?void 0:e.toLocation)===null||r===void 0?void 0:r.path;var o;if(typeof a==="string"){var n=t.conf.basename||"/";o=c(b(a||t.homePage),n)||"/"}else{o=t.getCurrentUrl()}t.selectedIndex=t.getSelectedIndex(t.getOriginUrl(o))};this.setTabBarBadgeHandler=function(e){var r=e.index,a=e.text,o=e.successHandler,n=e.errorHandler;var i=__spreadArray([],t.list,true);if(r in i){i[r].showRedDot=false;i[r].badgeText=a;o({errMsg:"setTabBarBadge:ok"})}else{n({errMsg:"setTabBarBadge:fail tabbar item not found"})}t.list=i};this.removeTabBarBadgeHandler=function(e){var r=e.index,a=e.successHandler,o=e.errorHandler;var n=__spreadArray([],t.list,true);if(r in n){n[r].badgeText=null;n[r].badgeText=null;a({errMsg:"removeTabBarBadge:ok"})}else{o({errMsg:"removeTabBarBadge:fail tabbar item not found"})}t.list=n};this.showTabBarRedDotHandler=function(e){var r=e.index,a=e.successHandler,o=e.errorHandler;var n=__spreadArray([],t.list,true);if(r in n){n[r].badgeText=null;n[r].showRedDot=true;a({errMsg:"showTabBarRedDot:ok"})}else{o({errMsg:"showTabBarRedDot:fail tabbar item not found"})}t.list=n};this.hideTabBarRedDotHandler=function(e){var r=e.index,a=e.successHandler,o=e.errorHandler;var n=__spreadArray([],t.list,true);if(r in n){n[r].showRedDot=false;a({errMsg:"hideTabBarRedDot:ok"})}else{o({errMsg:"hideTabBarRedDot:fail tabbar item not found"})}t.list=n};this.showTabBarHandler=function(e){var r=e.successHandler;t.status=T;r({errMsg:"showTabBar:ok"})};this.hideTabBarHandler=function(e){var r=e.animation,a=e.successHandler;t.status=r?y:B;a({errMsg:"hideTabBar:ok"})};this.setTabBarStyleHandler=function(e){var r=e.color,a=e.selectedColor,o=e.backgroundColor,n=e.borderStyle,i=e.successHandler;if(o)t.backgroundColor=o;if(n)t.borderStyle=n;if(r)t.color=r;if(a)t.selectedColor=a;i({errMsg:"setTabBarStyle:ok"})};this.setTabBarItemHandler=function(e){var r=e.index,a=e.iconPath,o=e.selectedIconPath,n=e.text,i=e.successHandler,s=e.errorHandler;var l=__spreadArray([],t.list,true);if(r in l){if(a)l[r].iconPath=a;if(o)l[r].selectedIconPath=o;if(n)l[r].text=n;i({errMsg:"setTabBarItem:ok"})}else{s({errMsg:"setTabBarItem:fail tabbar item not found"})}t.list=l};this.conf=undefined;this.list=undefined;this.borderStyle=undefined;this.backgroundColor=undefined;this.color=undefined;this.selectedColor=undefined;this.selectedIndex=-1;this.status=T}e.prototype.componentWillLoad=function(){var e,t;var r=((e=this.conf)===null||e===void 0?void 0:e.list)||[];var a=((t=this.conf)===null||t===void 0?void 0:t.customRoutes)||{};if(Object.prototype.toString.call(r)!=="[object Array]"||r.length<2||r.length>5){throw new Error("tabBar 配置错误")}this.homePage=b(this.conf.homePage);var o=function(e){var t;var r=a[e];e=b(e);if(typeof r==="string"){n.customRoutes.push([e,b(r)])}else if((r===null||r===void 0?void 0:r.length)>0){(t=n.customRoutes).push.apply(t,r.map((function(t){return[e,b(t)]})))}};var n=this;for(var i in a){o(i)}r.forEach((function(e){if(e.pagePath.indexOf("/")!==0){e.pagePath="/"+e.pagePath}}));this.list=r;this.borderStyle=this.conf.borderStyle;this.backgroundColor=this.conf.backgroundColor;this.color=this.conf.color;this.selectedColor=this.conf.selectedColor};e.prototype.getCurrentUrl=function(){var e=u(this.conf.mode,this.conf.basename);return decodeURI(e==="/"?this.homePage:e)};e.prototype.bindEvent=function(){i.eventCenter.on("__taroRouterChange",this.routerChangeHandler);i.eventCenter.on("__taroSwitchTab",this.switchTabHandler);i.eventCenter.on("__taroSetTabBarBadge",this.setTabBarBadgeHandler);i.eventCenter.on("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler);i.eventCenter.on("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler);i.eventCenter.on("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler);i.eventCenter.on("__taroShowTabBar",this.showTabBarHandler);i.eventCenter.on("__taroHideTabBar",this.hideTabBarHandler);i.eventCenter.on("__taroSetTabBarStyle",this.setTabBarStyleHandler);i.eventCenter.on("__taroSetTabBarItem",this.setTabBarItemHandler)};e.prototype.removeEvent=function(){i.eventCenter.off("__taroRouterChange",this.routerChangeHandler);i.eventCenter.off("__taroSwitchTab",this.switchTabHandler);i.eventCenter.off("__taroSetTabBarBadge",this.setTabBarBadgeHandler);i.eventCenter.off("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler);i.eventCenter.off("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler);i.eventCenter.off("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler);i.eventCenter.off("__taroShowTabBar",this.showTabBarHandler);i.eventCenter.off("__taroHideTabBar",this.hideTabBarHandler);i.eventCenter.off("__taroSetTabBarStyle",this.setTabBarStyleHandler);i.eventCenter.off("__taroSetTabBarItem",this.setTabBarItemHandler)};e.prototype.componentDidLoad=function(){this.tabbarPos=this.tabbar.nextElementSibling?"top":"bottom";this.bindEvent();this.routerChangeHandler()};e.prototype.disconnectedCallback=function(){this.removeEvent()};e.prototype.render=function(){var e,r;var a=this;var n=this.tabbarPos,i=n===void 0?"bottom":n;var l=this.status;var d=s("weui-tabbar",(e={},e["taro-tabbar__border-".concat(this.borderStyle||"black")]=true,e));var b=this.selectedIndex===-1||l===B;var h=l===y;return t(o,{class:s(H,"".concat(H,"-").concat(i),(r={},r[x]=b,r[w]=h,r))},t("div",{class:d,style:{backgroundColor:this.backgroundColor||"",height:"inherit"}},this.list.map((function(e,r){var o=a.selectedIndex===r;var n;var i;if(o){n=a.selectedColor||"";i=e.selectedIconPath}else{n=a.color||"";i=e.iconPath}return t(_,{index:r,onSelect:a.switchTab.bind(a),isSelected:o,textColor:n,iconPath:i,pagePath:e.pagePath,text:e.text,badgeText:e.badgeText,showRedDot:e.showRedDot})}))))};Object.defineProperty(e.prototype,"tabbar",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());C.style=m}}}));
1
+ var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,o=t.length,n;a<o;a++){if(n||!(a in t)){if(!n)n=Array.prototype.slice.call(t,0,a);n[a]=t[a]}}return e.concat(n||Array.prototype.slice.call(t))};System.register(["./p-7e6b54cb.system.js","@tarojs/taro","./p-2ec68968.system.js","./p-bd5177d3.system.js"],(function(e){"use strict";var t,r,a,o,n,i,s,l;return{setters:[function(e){t=e.h;r=e.r;a=e.c;o=e.H;n=e.g},function(e){i=e.default},function(e){s=e.c},function(e){l=e.i}],execute:function(){var d=function(e){var t=e||"";var r;var a={path:null,query:null,fragment:null};r=t.indexOf("#");if(r>-1){a.fragment=t.substring(r+1);t=t.substring(0,r)}r=t.indexOf("?");if(r>-1){a.query=t.substring(r+1);t=t.substring(0,r)}a.path=t;return a};var b=function(e){if(e===void 0){e=""}return e.charAt(0)==="/"?e:"/"+e};var h=function(e,t){if(e===void 0){e=""}if(t===void 0){t=""}return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)||e===t};var c=function(e,t){if(e===void 0){e=""}if(t===void 0){t=""}return h(e,t)?e.substring(t.length):e};var f=function(e,t){if(e===void 0){e=""}if(t===void 0){t=""}return e.includes(t)?e.substring(0,e.length-t.length):e};var u=function(e,t){if(e===void 0){e="hash"}if(t===void 0){t="/"}var r=e==="hash"?location.hash.slice(1).split("?")[0]:location.pathname;return b(c(r,t))};function v(e){return e.charAt(0)==="/"}function g(e,t){for(var r=t,a=r+1,o=e.length;a<o;r+=1,a+=1){e[r]=e[a]}e.pop()}function p(e,t){if(t===undefined)t="";var r=e&&e.split("/")||[];var a=t&&t.split("/")||[];var o=e&&v(e);var n=t&&v(t);var i=o||n;if(e&&v(e)){a=r}else if(r.length){a.pop();a=a.concat(r)}if(!a.length)return"/";var s;if(a.length){var l=a[a.length-1];s=l==="."||l===".."||l===""}else{s=false}var d=0;for(var b=a.length;b>=0;b--){var h=a[b];if(h==="."){g(a,b)}else if(h===".."){g(a,b);d++}else if(d){g(a,b);d--}}if(!i)for(;d--;d)a.unshift("..");if(i&&a[0]!==""&&(!a[0]||!v(a[0])))a.unshift("");var c=a.join("/");if(s&&c.substr(-1)!=="/")c+="/";return c}var _=function(e){var r=e.index,a=e.isSelected,o=a===void 0?false:a,n=e.textColor,d=e.iconPath,b=e.badgeText,h=e.showRedDot,c=h===void 0?false:h,f=e.pagePath,u=e.text,v=e.onSelect;var g=s("weui-tabbar__item",{"weui-bar__item_on":o});var p={position:"absolute",top:"-2px",right:"-13px"};var _={position:"absolute",top:"0",right:"-6px"};function m(){var e=i.getCurrentPages().shift();if(typeof(e===null||e===void 0?void 0:e.onTabItemTap)==="function"&&l(this)){e.onTabItemTap({index:r,pagePath:f,text:u})}v(r)}return t("a",{key:r,href:"javascript:;",class:g,onClick:m},t("span",{style:{display:"inline-block",position:"relative"}},t("img",{src:d,alt:"",class:"weui-tabbar__icon"}),!!b&&t("span",{class:"weui-badge taro-tabbar-badge",style:p},b),c&&t("span",{class:"weui-badge weui-badge_dot",style:_})),t("p",{class:"weui-tabbar__label",style:{color:n}},u))};var m="html,body{height:100%}#app{height:100%}.taro-tabbar__border-white::before{border-top-color:#fff !important}.taro-tabbar__container{display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-direction:column;flex-direction:column;height:100%}.taro-tabbar__panel{overflow:auto;position:relative;-ms-flex:1;flex:1;-webkit-overflow-scrolling:auto}.taro-tabbar__tabbar{position:relative;width:100%;height:50px;-webkit-transition:bottom 0.2s, top 0.2s;transition:bottom 0.2s, top 0.2s}.taro-tabbar__tabbar-top{top:0}.taro-tabbar__tabbar-bottom{bottom:0;margin-bottom:constant(safe-area-inset-bottom);margin-bottom:env(safe-area-inset-bottom)}.taro-tabbar__tabbar-hide{display:none}.taro-tabbar__tabbar-slideout{top:-52px;-ms-flex:0 0;flex:0 0}.taro-tabbar__panel+.taro-tabbar__tabbar-slideout{top:auto;bottom:-52px}";var T=0;var B=1;var y=2;var H="taro-tabbar__tabbar";var x="taro-tabbar__tabbar-hide";var w="taro-tabbar__tabbar-slideout";var C=e("taro_tabbar",function(){function e(e){var t=this;r(this,e);this.onLongPress=a(this,"longpress",7);this.homePage="";this.customRoutes=[];this.tabbarPos="bottom";this.getOriginUrl=function(e){var r=t.customRoutes.filter((function(t){var r=t[1];var a=d(r).path;var o=d(e).path;return a===o}));return f(r.length?r[0][0]:e,".html")};this.getSelectedIndex=function(e){var r=-1;t.list.forEach((function(t,a){var o=t.pagePath;var n=d(e).path;var i=d(o).path;if(n===i){r=a}}));return r};this.switchTab=function(e){t.selectedIndex=e;i.switchTab({url:t.list[e].pagePath})};this.switchTabHandler=function(e){var r=e.url,a=e.successHandler,o=e.errorHandler;var n=t.getOriginUrl(t.getCurrentUrl()||t.homePage);var i=p(r,n);var s=t.getSelectedIndex(i);if(s>-1){t.switchTab(s);a({errMsg:"switchTab:ok"})}else{o({errMsg:'switchTab:fail page "'.concat(i,'" is not found')})}};this.routerChangeHandler=function(e){var r;var a=(r=e===null||e===void 0?void 0:e.toLocation)===null||r===void 0?void 0:r.path;var o;if(typeof a==="string"){var n=t.conf.basename||"/";o=c(b(a||t.homePage),n)||"/"}else{o=t.getCurrentUrl()}t.selectedIndex=t.getSelectedIndex(t.getOriginUrl(o))};this.setTabBarBadgeHandler=function(e){var r=e.index,a=e.text,o=e.successHandler,n=e.errorHandler;var i=__spreadArray([],t.list,true);if(r in i){i[r].showRedDot=false;i[r].badgeText=a;o({errMsg:"setTabBarBadge:ok"})}else{n({errMsg:"setTabBarBadge:fail tabbar item not found"})}t.list=i};this.removeTabBarBadgeHandler=function(e){var r=e.index,a=e.successHandler,o=e.errorHandler;var n=__spreadArray([],t.list,true);if(r in n){n[r].badgeText=null;n[r].badgeText=null;a({errMsg:"removeTabBarBadge:ok"})}else{o({errMsg:"removeTabBarBadge:fail tabbar item not found"})}t.list=n};this.showTabBarRedDotHandler=function(e){var r=e.index,a=e.successHandler,o=e.errorHandler;var n=__spreadArray([],t.list,true);if(r in n){n[r].badgeText=null;n[r].showRedDot=true;a({errMsg:"showTabBarRedDot:ok"})}else{o({errMsg:"showTabBarRedDot:fail tabbar item not found"})}t.list=n};this.hideTabBarRedDotHandler=function(e){var r=e.index,a=e.successHandler,o=e.errorHandler;var n=__spreadArray([],t.list,true);if(r in n){n[r].showRedDot=false;a({errMsg:"hideTabBarRedDot:ok"})}else{o({errMsg:"hideTabBarRedDot:fail tabbar item not found"})}t.list=n};this.showTabBarHandler=function(e){var r=e.successHandler;t.status=T;r({errMsg:"showTabBar:ok"})};this.hideTabBarHandler=function(e){var r=e.animation,a=e.successHandler;t.status=r?y:B;a({errMsg:"hideTabBar:ok"})};this.setTabBarStyleHandler=function(e){var r=e.color,a=e.selectedColor,o=e.backgroundColor,n=e.borderStyle,i=e.successHandler;if(o)t.backgroundColor=o;if(n)t.borderStyle=n;if(r)t.color=r;if(a)t.selectedColor=a;i({errMsg:"setTabBarStyle:ok"})};this.setTabBarItemHandler=function(e){var r=e.index,a=e.iconPath,o=e.selectedIconPath,n=e.text,i=e.successHandler,s=e.errorHandler;var l=__spreadArray([],t.list,true);if(r in l){if(a)l[r].iconPath=a;if(o)l[r].selectedIconPath=o;if(n)l[r].text=n;i({errMsg:"setTabBarItem:ok"})}else{s({errMsg:"setTabBarItem:fail tabbar item not found"})}t.list=l};this.conf=undefined;this.list=undefined;this.borderStyle=undefined;this.backgroundColor=undefined;this.color=undefined;this.selectedColor=undefined;this.selectedIndex=-1;this.status=T}e.prototype.componentWillLoad=function(){var e,t;var r=((e=this.conf)===null||e===void 0?void 0:e.list)||[];var a=((t=this.conf)===null||t===void 0?void 0:t.customRoutes)||{};if(Object.prototype.toString.call(r)!=="[object Array]"||r.length<2||r.length>5){throw new Error("tabBar 配置错误")}this.homePage=b(this.conf.homePage);var o=function(e){var t;var r=a[e];e=b(e);if(typeof r==="string"){n.customRoutes.push([e,b(r)])}else if((r===null||r===void 0?void 0:r.length)>0){(t=n.customRoutes).push.apply(t,r.map((function(t){return[e,b(t)]})))}};var n=this;for(var i in a){o(i)}r.forEach((function(e){if(e.pagePath.indexOf("/")!==0){e.pagePath="/"+e.pagePath}}));this.list=r;this.borderStyle=this.conf.borderStyle;this.backgroundColor=this.conf.backgroundColor;this.color=this.conf.color;this.selectedColor=this.conf.selectedColor};e.prototype.getCurrentUrl=function(){var e=u(this.conf.mode,this.conf.basename);return decodeURI(e==="/"?this.homePage:e)};e.prototype.bindEvent=function(){i.eventCenter.on("__taroRouterChange",this.routerChangeHandler);i.eventCenter.on("__taroSwitchTab",this.switchTabHandler);i.eventCenter.on("__taroSetTabBarBadge",this.setTabBarBadgeHandler);i.eventCenter.on("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler);i.eventCenter.on("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler);i.eventCenter.on("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler);i.eventCenter.on("__taroShowTabBar",this.showTabBarHandler);i.eventCenter.on("__taroHideTabBar",this.hideTabBarHandler);i.eventCenter.on("__taroSetTabBarStyle",this.setTabBarStyleHandler);i.eventCenter.on("__taroSetTabBarItem",this.setTabBarItemHandler)};e.prototype.removeEvent=function(){i.eventCenter.off("__taroRouterChange",this.routerChangeHandler);i.eventCenter.off("__taroSwitchTab",this.switchTabHandler);i.eventCenter.off("__taroSetTabBarBadge",this.setTabBarBadgeHandler);i.eventCenter.off("__taroRemoveTabBarBadge",this.removeTabBarBadgeHandler);i.eventCenter.off("__taroShowTabBarRedDotHandler",this.showTabBarRedDotHandler);i.eventCenter.off("__taroHideTabBarRedDotHandler",this.hideTabBarRedDotHandler);i.eventCenter.off("__taroShowTabBar",this.showTabBarHandler);i.eventCenter.off("__taroHideTabBar",this.hideTabBarHandler);i.eventCenter.off("__taroSetTabBarStyle",this.setTabBarStyleHandler);i.eventCenter.off("__taroSetTabBarItem",this.setTabBarItemHandler)};e.prototype.componentDidLoad=function(){this.tabbarPos=this.tabbar.nextElementSibling?"top":"bottom";this.bindEvent();this.routerChangeHandler()};e.prototype.disconnectedCallback=function(){this.removeEvent()};e.prototype.render=function(){var e,r;var a=this;var n=this.tabbarPos,i=n===void 0?"bottom":n;var l=this.status;var d=s("weui-tabbar",(e={},e["taro-tabbar__border-".concat(this.borderStyle||"black")]=true,e));var b=this.selectedIndex===-1||l===B;var h=l===y;return t(o,{class:s(H,"".concat(H,"-").concat(i),(r={},r[x]=b,r[w]=h,r))},t("div",{class:d,style:{backgroundColor:this.backgroundColor||"",height:"inherit"}},this.list.map((function(e,r){var o=a.selectedIndex===r;var n;var i;if(o){n=a.selectedColor||"";i=e.selectedIconPath}else{n=a.color||"";i=e.iconPath}return t(_,{index:r,onSelect:a.switchTab.bind(a),isSelected:o,textColor:n,iconPath:i,pagePath:e.pagePath,text:e.text,badgeText:e.badgeText,showRedDot:e.showRedDot})}))))};Object.defineProperty(e.prototype,"tabbar",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());C.style=m}}}));
@@ -0,0 +1 @@
1
+ import{r as t,h as i,H as e,g as o,c as s}from"./p-9137dcab.js";import{c as r}from"./p-de951a46.js";import{t as a}from"./p-d3c7f87d.js";const n=t=>{if(!t)return"";const i=Math.round(t%60),e=Math.round((t-i)/60);return`${e<10?`0${e}`:e}:${i<10?`0${i}`:i}`},h=t=>Math.max(-1,Math.min(t,1));let l="default";const d=function(){let t;const i=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];var e=["webkitEnterFullscreen","webkitExitFullscreen","webkitCurrentFullScreenElement","webkitSupportsFullscreen","fullscreenchange","fullscreenerror"];let o=0;const s=i.length,r={};for(;o<s;o++)if(t=i[o],t&&t[1]in document){for(o=0;o<t.length;o++)r[i[0][o]]=t[o];return r}if(!r[i[0][0]])for(l="iOS",o=0;o<e.length;o++)r[i[0][o]]=e[o];return r}(),A=class{constructor(i){t(this,i),this.visible=!1,this.isDraggingProgressBall=!1,this.percentage=0,this.progressDimensions={left:0,width:0},this.calcPercentage=t=>{let i=t-this.progressDimensions.left;return i=Math.max(i,0),i=Math.min(i,this.progressDimensions.width),i/this.progressDimensions.width},this.onDragProgressBallStart=()=>{this.isDraggingProgressBall=!0,this.hideControlsTimer&&clearTimeout(this.hideControlsTimer)},this.onClickProgress=t=>{t.stopPropagation();const i=this.calcPercentage(t.pageX);this.seekFunc(i*this.duration),this.toggleVisibility(!0)},this.controls=void 0,this.currentTime=void 0,this.duration=void 0,this.isPlaying=void 0,this.pauseFunc=void 0,this.playFunc=void 0,this.seekFunc=void 0,this.showPlayBtn=void 0,this.showProgress=void 0}onDocumentTouchMove(t){this.isDraggingProgressBall&&(this.percentage=this.calcPercentage(t.touches[0].pageX),this.setProgressBall(this.percentage),this.setCurrentTime(this.percentage*this.duration))}onDocumentTouchEnd(){this.isDraggingProgressBall&&(this.isDraggingProgressBall=!1,this.seekFunc(this.percentage*this.duration),this.toggleVisibility(!0))}async setProgressBall(t){this.progressBallRef&&(this.progressBallRef.style.left=100*t+"%")}async toggleVisibility(t){const i=void 0===t?!this.visible:t;i?(this.hideControlsTimer&&clearTimeout(this.hideControlsTimer),this.isPlaying&&(this.hideControlsTimer=setTimeout((()=>{this.toggleVisibility(!1)}),2e3)),this.el.style.visibility="visible"):this.el.style.visibility="hidden",this.visible=!!i}async getIsDraggingProgressBall(){return this.isDraggingProgressBall}async setCurrentTime(t){this.currentTimeRef.innerHTML=n(t)}render(){const{controls:t,currentTime:o,duration:s,isPlaying:r,pauseFunc:a,playFunc:h,showPlayBtn:l,showProgress:d}=this,A=n(s);let c;return c=l?i("div",r?{class:"taro-video-control-button taro-video-control-button-pause",onClick:a}:{class:"taro-video-control-button taro-video-control-button-play",onClick:h}):null,i(e,{class:"taro-video-bar taro-video-bar-full"},t&&i("div",{class:"taro-video-controls"},c,d&&i("div",{class:"taro-video-current-time",ref:t=>this.currentTimeRef=t},n(o)),d&&i("div",{class:"taro-video-progress-container",onClick:this.onClickProgress},i("div",{class:"taro-video-progress",ref:t=>{if(!t)return;const i=t.getBoundingClientRect();this.progressDimensions.left=i.left,this.progressDimensions.width=i.width}},i("div",{class:"taro-video-progress-buffered",style:{width:"100%"}}),i("div",{class:"taro-video-ball",ref:t=>this.progressBallRef=t,onTouchStart:this.onDragProgressBallStart,style:{left:(A?this.currentTime/s*100:0)+"%"}},i("div",{class:"taro-video-inner"})))),d&&i("div",{class:"taro-video-duration"},A)),i("slot",null))}get el(){return o(this)}},c=class{constructor(i){t(this,i),this.onPlay=s(this,"play",7),this.onPause=s(this,"pause",7),this.onEnded=s(this,"ended",7),this.onTimeUpdate=s(this,"timeupdate",7),this.onError=s(this,"error",7),this.onFullScreenChange=s(this,"fullscreenchange",7),this.onProgress=s(this,"progress",7),this.onLoadedMetaData=s(this,"loadedmetadata",7),this.currentTime=0,this.isDraggingProgress=!1,this.gestureType="none",this.analyzeGesture=t=>{var i;const e={type:"none"},o=t.touches[0].screenX-this.lastTouchScreenX,s=t.touches[0].screenY-this.lastTouchScreenY,r=this.isFullScreen?this.vslideGestureInFullscreen:this.vslideGesture;if("none"===this.gestureType){if(a=s,Math.sqrt(Math.pow(o,2)+Math.pow(a,2))<10)return e;if(Math.abs(s)>=Math.abs(o)){if(!r)return e;this.gestureType="adjustVolume",this.lastVolume=this.videoRef.volume}else if(Math.abs(s)<Math.abs(o)){if(!this.enableProgressGesture)return e;this.gestureType="adjustProgress",this.lastPercentage=this.currentTime/(null!==(i=this.duration)&&void 0!==i?i:this._duration)}}var a;return e.type=this.gestureType,e.dataX=h(o/200),e.dataY=h(s/200),e},this.loadNativePlayer=()=>{var t,i;this.videoRef&&(this.videoRef.src=this.src,null===(i=(t=this.videoRef).load)||void 0===i||i.call(t))},this.init=()=>{const{src:t,videoRef:i}=this;/\.(m3u8)($|\?)/i.test(t)?import("./p-43efbf30.js").then((e=>{const o=e.default;this.HLS=o,o.isSupported()?(this.hls&&this.hls.destroy(),this.hls=new o,this.hls.loadSource(t),this.hls.attachMedia(i),this.hls.on(o.Events.MANIFEST_PARSED,(()=>{this.autoplay&&this.play()})),this.hls.on(o.Events.ERROR,((t,i)=>{this.handleError(i)}))):i.canPlayType("application/vnd.apple.mpegurl")?this.loadNativePlayer():console.error("该浏览器不支持 HLS 播放")})):this.loadNativePlayer()},this.handlePlay=()=>{this.isPlaying=!0,this.isFirst=!1,this.controlsRef.toggleVisibility(!0),this.onPlay.emit()},this.handlePause=()=>{this.isPlaying=!1,this.controlsRef.toggleVisibility(!0),this.onPause.emit()},this.handleEnded=()=>{this.isFirst=!0,this.pause(),this.controlsRef.toggleVisibility(),this.onEnded.emit()},this.handleTimeUpdate=a((async t=>{var i,e;this.currentTime=this.videoRef.currentTime;const o=this.duration||this._duration,s=await this.controlsRef.getIsDraggingProgressBall();this.controls&&this.showProgress&&(s||this.isDraggingProgress||(this.controlsRef.setProgressBall(this.currentTime/o),this.controlsRef.setCurrentTime(this.currentTime))),this.danmuRef.tick(this.currentTime),this.onTimeUpdate.emit({duration:null===(i=t.target)||void 0===i?void 0:i.duration,currentTime:null===(e=t.target)||void 0===e?void 0:e.currentTime}),this.duration&&this.currentTime>=this.duration&&(this.seek(0),this.handleEnded())}),250),this.handleError=t=>{var i,e;if(this.hls)switch(t.type){case this.HLS.ErrorTypes.NETWORK_ERROR:this.onError.emit({errMsg:t.response}),this.hls.startLoad();break;case this.HLS.ErrorTypes.MEDIA_ERROR:this.onError.emit({errMsg:t.reason||"媒体错误,请重试"}),this.hls.recoverMediaError()}else this.onError.emit({errMsg:null===(e=null===(i=t.target)||void 0===i?void 0:i.error)||void 0===e?void 0:e.message})},this.handleDurationChange=()=>{this._duration=this.videoRef.duration},this.handleProgress=()=>{this.onProgress.emit()},this.handleLoadedMetaData=t=>{const i=t.target;this.onLoadedMetaData.emit({width:i.videoWidth,height:i.videoHeight,duration:i.duration})},this._play=()=>this.videoRef.play(),this._pause=()=>this.videoRef.pause(),this._stop=()=>{this.videoRef.pause(),this._seek(0)},this._seek=t=>{this.videoRef.currentTime=t},this.onTouchStartContainer=t=>{this.lastTouchScreenX=t.touches[0].screenX,this.lastTouchScreenY=t.touches[0].screenY},this.onClickContainer=()=>{if(this.enablePlayGesture){const t=Date.now();t-this.lastClickedTime<300&&(this.isPlaying?this.pause():this.play()),this.lastClickedTime=t}this.controlsRef.toggleVisibility()},this.onClickFullScreenBtn=t=>{t.stopPropagation(),this.toggleFullScreen()},this.handleFullScreenChange=t=>{const i=(new Date).getTime();!t.detail&&this.isFullScreen&&!document[d.fullscreenElement]&&i-this.fullScreenTimestamp>100&&this.toggleFullScreen(!1)},this.toggleFullScreen=(t=!this.isFullScreen)=>{this.isFullScreen=t,this.controlsRef.toggleVisibility(!0),this.fullScreenTimestamp=(new Date).getTime(),this.onFullScreenChange.emit({fullScreen:this.isFullScreen,direction:"vertical"}),this.isFullScreen&&!document[d.fullscreenElement]&&setTimeout((()=>{this.videoRef[d.requestFullscreen]({navigationUI:"auto"})}),0)},this.toggleMute=t=>{t.stopPropagation(),this.videoRef.muted=!this.isMute,this.controlsRef.toggleVisibility(!0),this.isMute=!this.isMute},this.toggleDanmu=t=>{t.stopPropagation(),this.controlsRef.toggleVisibility(!0),this._enableDanmu=!this._enableDanmu},this.src=void 0,this.duration=void 0,this.controls=!0,this.autoplay=!1,this.loop=!1,this.muted=!1,this.initialTime=0,this.poster=void 0,this.objectFit="contain",this.showProgress=!0,this.showFullscreenBtn=!0,this.showPlayBtn=!0,this.showCenterPlayBtn=!0,this.showMuteBtn=!1,this.danmuList=void 0,this.danmuBtn=!1,this.enableDanmu=!1,this.enablePlayGesture=!1,this.enableProgressGesture=!0,this.vslideGesture=!1,this.vslideGestureInFullscreen=!0,this.nativeProps={},this._duration=void 0,this._enableDanmu=!1,this.isPlaying=!1,this.isFirst=!0,this.isFullScreen=!1,this.fullScreenTimestamp=(new Date).getTime(),this.isMute=!1}componentWillLoad(){this._enableDanmu=this.enableDanmu}componentDidLoad(){var t,i;this.init(),this.initialTime&&(this.videoRef.currentTime=this.initialTime),null===(i=(t=this.danmuRef).sendDanmu)||void 0===i||i.call(t,this.danmuList),document.addEventListener&&document.addEventListener(d.fullscreenchange,this.handleFullScreenChange),this.videoRef&&"iOS"===l&&this.videoRef.addEventListener("webkitendfullscreen",this.handleFullScreenChange)}componentDidRender(){}disconnectedCallback(){document.removeEventListener&&document.removeEventListener(d.fullscreenchange,this.handleFullScreenChange),this.videoRef&&"iOS"===l&&this.videoRef.removeEventListener("webkitendfullscreen",this.handleFullScreenChange)}watchEnableDanmu(t){this._enableDanmu=t}watchSrc(){this.init()}async onDocumentTouchMove(t){if(void 0===this.lastTouchScreenX||void 0===this.lastTouchScreenY)return;if(await this.controlsRef.getIsDraggingProgressBall())return;const i=this.analyzeGesture(t);if("adjustVolume"===i.type){this.toastVolumeRef.style.visibility="visible";const t=Math.max(Math.min(this.lastVolume-i.dataY,1),0);this.videoRef.volume=t,this.toastVolumeBarRef.style.width=100*t+"%"}else if("adjustProgress"===i.type){this.isDraggingProgress=!0,this.nextPercentage=Math.max(Math.min(this.lastPercentage+(i.dataX||0),1),0),this.controls&&this.showProgress&&(this.controlsRef.setProgressBall(this.nextPercentage),this.controlsRef.toggleVisibility(!0));const t=this.duration||this._duration;this.toastProgressTitleRef.innerHTML=`${n(this.nextPercentage*t)} / ${n(t)}`,this.toastProgressRef.style.visibility="visible"}}onDocumentTouchEnd(){var t;"adjustVolume"===this.gestureType?this.toastVolumeRef.style.visibility="hidden":"adjustProgress"===this.gestureType&&(this.toastProgressRef.style.visibility="hidden"),this.isDraggingProgress&&(this.isDraggingProgress=!1,this.seek(this.nextPercentage*(null!==(t=this.duration)&&void 0!==t?t:this._duration))),this.gestureType="none",this.lastTouchScreenX=void 0,this.lastTouchScreenY=void 0}async getHlsObject(){return this.hls}async play(){this._play()}async pause(){this._pause()}async stop(){this._stop()}async seek(t){this._seek(t)}async requestFullScreen(){this.toggleFullScreen(!0)}async exitFullScreen(){this.toggleFullScreen(!1)}render(){const{controls:t,autoplay:o,loop:s,muted:a,poster:h,objectFit:l,isFirst:d,isMute:A,isFullScreen:c,showCenterPlayBtn:u,isPlaying:g,_enableDanmu:b,showMuteBtn:p,danmuBtn:v,showFullscreenBtn:m,nativeProps:w}=this,E=this.duration||this._duration,I=n(E);return i(e,{class:r("taro-video-container",{"taro-video-type-fullscreen":c}),onTouchStart:this.onTouchStartContainer,onClick:this.onClickContainer},i("video",Object.assign({class:"taro-video-video",style:{"object-fit":l},ref:t=>{t&&(this.videoRef=t)},autoplay:o,loop:s,muted:a,poster:t?h:void 0,playsinline:!0,"webkit-playsinline":!0,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onTimeUpdate:this.handleTimeUpdate,onError:this.handleError,onDurationChange:this.handleDurationChange,onProgress:this.handleProgress,onLoadedMetaData:this.handleLoadedMetaData},w),"暂时不支持播放该视频"),i("taro-video-danmu",{ref:t=>{t&&(this.danmuRef=t)},enable:b}),d&&u&&!g&&i("div",{class:"taro-video-cover"},i("div",{class:"taro-video-cover-play-button",onClick:()=>this.play()}),i("p",{class:"taro-video-cover-duration"},I)),i("taro-video-control",{ref:t=>{t&&(this.controlsRef=t)},controls:t,currentTime:this.currentTime,duration:E,isPlaying:this.isPlaying,pauseFunc:this._pause,playFunc:this._play,seekFunc:this._seek,showPlayBtn:this.showPlayBtn,showProgress:this.showProgress},p&&i("div",{class:r("taro-video-mute",{"taro-video-type-mute":A}),onClick:this.toggleMute}),v&&i("div",{class:r("taro-video-danmu-button",{"taro-video-danmu-button-active":b}),onClick:this.toggleDanmu},"弹幕"),m&&i("div",{class:r("taro-video-fullscreen",{"taro-video-type-fullscreen":c}),onClick:this.onClickFullScreenBtn})),i("div",{class:"taro-video-toast taro-video-toast-volume",ref:t=>{t&&(this.toastVolumeRef=t)}},i("div",{class:"taro-video-toast-title"},"音量"),i("div",{class:"taro-video-toast-icon"}),i("div",{class:"taro-video-toast-value"},i("div",{class:"taro-video-toast-value-content",ref:t=>{t&&(this.toastVolumeBarRef=t)}},i("div",{class:"taro-video-toast-volume-grids"},Array(10).fill(1).map((()=>i("div",{class:"taro-video-toast-volume-grids-item"}))))))),i("div",{class:"taro-video-toast taro-video-toast-progress",ref:t=>{t&&(this.toastProgressRef=t)}},i("div",{class:"taro-video-toast-title",ref:t=>{t&&(this.toastProgressTitleRef=t)}})))}get el(){return o(this)}static get watchers(){return{enableDanmu:["watchEnableDanmu"],src:["watchSrc"]}}};c.style='.taro-video{display:inline-block;overflow:hidden;position:relative;width:100%;height:225px;line-height:0}.taro-video[hidden]{display:none}.taro-video-container{display:inline-block;position:absolute;left:0;top:0;width:100%;height:100%;background-color:#000;-o-object-position:inherit;object-position:inherit}.taro-video-container.taro-video-type-fullscreen{position:fixed;left:0;right:0;top:0;bottom:0;z-index:999}.taro-video-container.taro-video-type-fullscreen.taro-video-type-rotate-left{-webkit-transform:translate(-50%, -50%) rotate(-90deg);transform:translate(-50%, -50%) rotate(-90deg)}.taro-video-container.taro-video-type-fullscreen.taro-video-type-rotate-right{-webkit-transform:translate(-50%, -50%) rotate(90deg);transform:translate(-50%, -50%) rotate(90deg)}.taro-video-video{width:100%;height:100%;-o-object-position:inherit;object-position:inherit}.taro-video-cover{display:-ms-flexbox;display:flex;position:absolute;left:0;top:0;bottom:0;z-index:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:100%;background-color:rgba(1, 1, 1, 0.5);-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:center;-webkit-box-align:center}.taro-video-cover-play-button{width:40px;height:40px;background-repeat:no-repeat;background-position:50% 50%;background-size:50%}.taro-video-cover-duration{margin-top:10px;line-height:1;font-size:16px;color:#fff}.taro-video-bar{display:-ms-flexbox;display:flex;visibility:hidden;overflow:hidden;position:absolute;right:0;bottom:0;z-index:1;-ms-flex-align:center;align-items:center;padding:0 10px;height:44px;background-color:rgba(0, 0, 0, 0.5);-webkit-box-align:center}.taro-video-bar.taro-video-bar-full{left:0}.taro-video-controls{display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;margin:0 8.5px}.taro-video-control-button{-webkit-box-sizing:content-box;box-sizing:content-box;margin-left:-8.5px;padding:14.5px 12.5px;width:13px;height:15px}.taro-video-control-button::after{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50% 50%;background-size:100%;content:""}.taro-video-control-button.taro-video-control-button-play::after,.taro-video-cover-play-button{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAeCAYAAAAy2w7YAAAAAXNSR0IArs4c6QAAAWhJREFUSA1j+P///0cgBoHjQGzCQCsAtgJB/AMy5wCxGNXtQ9iBwvoA5BUCMQvVLEQxHpNzDSjkRhXLMM3GKrIeKKpEkYVYjcUu+AMo3ALE3GRZiN1MvKKPgbIRJFuG10j8koeA0gZEW4jfLIKyf4EqpgOxMEELCRpFnIJ3QGU5QMyM00LizCFa1SWgSkeslhFtBGkKVwGVy6FYSJp+klR/A6quB2JOkIWMIK0oNlOf8xBoZDE9LAI7nYn6HsBq4l96WHQEaLUpAyiOaASeAM2NgvuPBpaACt82IEYtfKls0UagecpwXyAzqGTRdaA57sjmYrAptAjUsCkGYlYMg9EFyLQI1IiZB8Ti6Obh5JNh0QmgHlOcBuKSIMGi50C18UDMiMssvOJEWPQLqKYbiHnxGkRIkoBF24DyaoTMIEoeh0W3geI+RBlArCI0iz4D+RVAzEasfqLVAQ19AcSg5LoYiKWI1kiiQgCMBLnEEcfDSgAAAABJRU5ErkJggg==")}.taro-video-control-button.taro-video-control-button-pause::after{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAAAXNSR0IArs4c6QAAAFlJREFUSA3tksEKACAIQ7X//5zq98wOgQayum8QaGweHhMzG/6OujzKAymn+0LMqivu1XznWmX8/echTIyMyAgTwA72iIwwAexgj8gIE8CO3aMRbDPMaEy5BRGaKcZv8YxRAAAAAElFTkSuQmCC")}.taro-video-current-time,.taro-video-duration{margin-top:15px;margin-bottom:14.5px;height:14.5px;line-height:14.5px;font-size:12px;color:#cbcbcb}.taro-video-progress-container{position:relative;-ms-flex-positive:2;flex-grow:2;-webkit-box-flex:2}.taro-video-progress{position:relative;margin:21px 12px;height:2px;background-color:rgba(255, 255, 255, 0.4)}.taro-video-progress-buffered{position:absolute;left:0;top:0;width:0;height:100%;background-color:rgba(255, 255, 255, 0.8);-webkit-transition:width 0.1s;transition:width 0.1s}.taro-video-ball{position:absolute;left:0;top:-21px;-webkit-box-sizing:content-box;box-sizing:content-box;margin-left:-22px;padding:14px;width:16px;height:16px}.taro-video-inner{border-radius:50%;width:100%;height:100%;background-color:#fff}.taro-video-danmu-button{margin:0 8.5px;padding:2px 10px;border:1px solid #fff;border-radius:5px;line-height:1;font-size:13px;color:#fff;white-space:nowrap}.taro-video-danmu-button.taro-video-danmu-button-active{border-color:#48c23d;color:#48c23d}.taro-video-fullscreen,.taro-video-mute{-webkit-box-sizing:content-box;box-sizing:content-box;padding:8.5px;width:17px;height:17px;background-repeat:no-repeat;background-position:50% 50%;background-size:50%}.taro-video-fullscreen{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAhUlEQVRYR+2WSwrAMAhEnZO3PfmULLooGEFTiIXJ2s/kRY2wzQeb85sE9CRA8jSzY1YfAFzhJBnU1AVgxH2dSiArCnD9QgGzRNnOech48SRABHoSyFb5in3PSbhyo6yvCPQkEM3u7BsPe/0FIvBfAh/vhKmVbO9SWun1qk/PSVi9TcVPBG6R1YIhgWwNpQAAAABJRU5ErkJggg==")}.taro-video-fullscreen.taro-video-type-fullscreen{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABPUlEQVRYR+2Xu0pDURBF1/ZLxNcHKNiIlfhA7C0UBSEE8RNEBNFPUEQEEbGxFiSSSrCwEHsf5E/ccsSUuWfUhKQ40947+y42Z8+ZK/pcinzf9hhwD1xJ2q/qsb0JHAOzkl5y+lGAGnCWICQtZgAS6DxQk3TeLYA6cAo0JSXxjmW7CcwBdUkJurKiDhSA4kBvHbA9CqwBQx2O7BSw8ssU3ALPFRF4knT3nQLbr8B4LjLBOdAAFgJaLUkjbYC9n+zm+i4kXWbmwCqwnRMCHiXthuZAQOzPrxSA4kBxYDAcsH0EzATCfCLpJjOINoCtgFZabg7bk7AFDAeaGpKWgitZTu5N0kQbYBmYrujo9mX0CVxL+gidAdu9vY5zXhWA4sAgOND3X7NJ4AHYCaxkB8B62gslvecSFpoDOZH/P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9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz459+FoAAABqElEQVRYhc2XPWsVQRSGnxPjF4oGRfxoRQKGWCU2Ft7CykrQWosEyf/If0hhIPgHDEmbNJZqCFxiQEgTUGxsBUVEHgvnyrjZZJO92V1fGIaZnTPvszPszNlQ6VIjnbr/DwCoDLMNak/dUVfUK0f2rQugnlcX/FevWgFQH6gf3autRgHUC+piiXHzAOmtPx9gXgug8itQx9SXwDpw47AGKXZWvXvQmNFCwE3gCXA2dY0Az4GrRzHONA9cU/vAbERsllEOyh31e8USV2mrMPdG9uyn+rDom2/BHHCm5puWKiKmgdtAnz+rvaxO5mNygEvHaZ5BfADuARvAaWBpP4DGFBHfgBngFzClTrUKkCDeA+9S837rAEnbqb7VFcCpVJ/oCmCw959aB1AfAROpudYqgDoOLKRmPyLelAF8bcD4pPoMeAtcB34AT4uDBqXXwFG8XXUU/72MIuK1OgE8Bs6l7mEvo8up7lN1Ge0n9aK6VHMFZvJTr9S3CiALaCQhqZOSvegMIAvu2UVSWpigLC1fbQ0gm6in7qpfLCQbhwGIYcyPQ53/G3YO8BtUtd35bvKcVwAAAABJRU5ErkJggg==")}.taro-video-mute.taro-video-type-mute{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAgCAYAAAB3j6rJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGAGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDAgNzkuMTYwNDUxLCAyMDE3LzA1LzA2LTAxOjA4OjIxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0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Q3EgDqb/L7kU3MH2NHtl3dQX3r3Ak21UYAYAj4A/cl0JB+RF+uMRj4iQ+p8zt7KYFLdXKHuRi0gacBhV6a6pd5bA6KRNagFJPU9qv5u47toLmW1HnoR8Q5oAK1CVQu4FBHj/wUkaXsb+4pzpVaQFPqXrN7Be4Fx9VztIOr1BLEtmX4A94E/qdwHTKjDWYM6lu81dSlnn3V570BtuLxaMs2rZ/IgYxsBovaoPwsQA4VoFWEm8ql5DiysNyURsQTMpOIMcDYiPhd8xoGr/FtNC2G6FKXD6ihwGdiVHMoeeh8jYlA9ANwE3kTEp3bO6vE03qOONzR1r/q4RGrquaFFxFxE3ALOA9+6jExpdb180y55AhirhaRTatq0GXEzL8+ZIuI9cBJ4WKiartJf9nWV/mty7UfUafW7erpqRGI9EBuprffvu9n6C1KOmsqwI5A1AAAAAElFTkSuQmCC")}.taro-video-danmu{overflow:visible;position:absolute;left:0;top:0;bottom:0;margin-top:14px;margin-bottom:44px;width:100%;line-height:14px;font-size:14px}.taro-video-danmu-item{position:absolute;left:100%;line-height:1;color:#fff;white-space:nowrap;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition-property:left, -webkit-transform;transition-property:left, -webkit-transform;transition-property:left, transform;transition-property:left, transform, -webkit-transform;-webkit-transition-duration:3s;transition-duration:3s;-webkit-transition-timing-function:linear;transition-timing-function:linear}.taro-video-toast{display:block;visibility:hidden;position:absolute;left:50%;top:50%;border-radius:5px;background-color:rgba(255, 255, 255, 0.8);pointer-events:none;color:#000;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.taro-video-toast.taro-video-toast-volume{display:block;width:100px;height:100px}.taro-video-toast-volume .taro-video-toast-title{display:block;margin-top:10px;width:100%;line-height:16px;text-align:center;font-size:12px}.taro-video-toast-volume .taro-video-toast-icon{display:block;margin-left:25%;width:50%;height:50%;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFhklEQVR4Xu2aeaxfQx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zUqjFYFakUTCXja5QLSmBQHbAL8ahAgT1AeYVreSKLLphGwF/CuAfLJQLldGSTFD75c5d4mNCoWyAqG9gYWGED1AOMKo12ZbiWA/idA++deY2DVTZ0Jh5UJPsFQtD/wDaAHGWl5EzgwaUi2gK4UXS11S0cTIjrMFBtYQdAk4DID0BnAAz4B6wNLgTKKG0VIDBHwqitwpOcW+OOB540FdeipNKbUWFrUtn06o5xOij4KyDuqU0IE3Obl/rLA63pTzm9XA8jKACjdniZAaSKFmUpB1yUhAlTsUEpMh913wEkuTe7rKTzPAHqO44vpKPkFhH3cWWBVV6ogJVYZUgz/tXtIYelzI3Ct0fExIGx6j7iKWBUUveyYBehv1RIjIEsfqziq8Xp4pSBJOYTVJFQcVY3wCFeKUjVGyYfQWB00+5bEVBECrNS+qsOKBpVHNCVWHs+LS7H5PV5pOu9v0+OKEOAXR39w1e1C7wM6AkJ1eLmkRcrpRQiQrqobXO5S3vL3/4kBKMsCknV0k+iasVLUMV3UX5SAPGtED8EOT+L9YENnCasUIXNO2goChFWHqAIRyxXN4qI1BCQg9dJESYq8LnbrCBAR8t50Lig6i0krCRBoVWhVlt45wkBrCRBuRZyPuAguxIPe9lXqhpd9DcZMXOvdkPF0Xu/8dohNUmZ/1QQkuitXr+d4fryuFx3jywQYm6suAqSX8vLTXKJDt4QqO6rtLYspXWZ/nQQkOJTAUJZGIav19q9MvKvN1RUIWKMAY5P3EBBjqO393d4C/gMVHwRQlpx21QAAAABJRU5ErkJggg==");background-repeat:no-repeat;background-position:50% 50%;background-size:50%;fill:#000}.taro-video-toast-volume .taro-video-toast-value{margin-left:10px;margin-top:5px;width:80px;height:5px}.taro-video-toast-volume .taro-video-toast-value>.taro-video-toast-value-content{overflow:hidden}.taro-video-toast-volume-grids{width:80px;height:5px}.taro-video-toast-volume-grids-item{float:left;width:7.1px;height:5px;background-color:#000}.taro-video-toast-volume-grids-item:not(:first-child){margin-left:1px}.taro-video-toast.taro-video-toast-progress{padding:6px;background-color:rgba(0, 0, 0, 0.8);line-height:18px;font-size:14px;color:#fff}';const u=class{constructor(i){t(this,i),this.list=[],this.danmuElList=[],this.currentTime=0,this.enable=!1,this.danmuList=[]}ensureProperties(t){const i=Object.assign({},t);return"time"in t||(i.time=this.currentTime),i.key=Math.random(),i.bottom=90*Math.random()+5+"%",i}async sendDanmu(t=[]){this.list=Array.isArray(t)?[...this.list,...t.map((t=>this.ensureProperties(t)))]:[...this.list,Object.assign({},this.ensureProperties(t))]}async tick(t){if(this.currentTime=t,!this.enable)return;const i=this.list.filter((({time:i})=>t-i<4&&t>i));let e=!1;const o=this.danmuList;e=i.length!==o.length||i.some((({key:t})=>o.every((i=>t!==i.key)))),e&&(this.danmuList=i)}componentDidUpdate(){requestAnimationFrame((()=>{setTimeout((()=>{this.danmuElList.splice(0).forEach((t=>{t.style.left="0",t.style.webkitTransform="translateX(-100%)",t.style.transform="translateX(-100%)"}))}))}))}render(){return this.enable?i(e,{class:"taro-video-danmu"},this.danmuList.map((({text:t,color:e,bottom:o,key:s})=>i("p",{class:"taro-video-danmu-item",key:s,style:{color:e,bottom:o},ref:t=>{t&&this.danmuElList.push(t)}},t)))):""}};export{A as taro_video_control,c as taro_video_core,u as taro_video_danmu}
@@ -0,0 +1 @@
1
+ import{r as s,h as r,H as o}from"./p-9137dcab.js";const t=class{constructor(r){s(this,r),this.percent=0,this.showInfo=!1,this.borderRadius=0,this.fontSize=16,this.strokeWidth=6,this.activeColor="#09BB07",this.backgroundColor="#EBEBEB",this.active=!1}render(){const{percent:s,showInfo:t,borderRadius:i,fontSize:e,strokeWidth:a,activeColor:n,backgroundColor:c,active:h}=this,d=s>100?100:s<0?0:s,p=h?"width 1s ease-in-out":"none";return r(o,{class:"weui-progress"},r("div",{class:"weui-progress__bar",style:{height:a+"px",backgroundColor:c}},r("div",{class:"weui-progress__inner-bar",style:{width:`${d}%`,transition:p,WebkitTransition:p,backgroundColor:n,borderRadius:i?`${i}px`:"0px"}})),t&&r("div",{class:"weui-progress__opr",style:{"font-size":`${e}px`}},r("span",null,d,"%")))}};export{t as taro_progress_core}