vant 2.13.2 → 2.13.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 (2952) hide show
  1. package/LICENSE +4 -1
  2. package/es/action-bar/ActionBar.d.ts +27 -0
  3. package/es/action-bar/ActionBar.mjs +44 -0
  4. package/es/action-bar/index.css +1 -0
  5. package/es/action-bar/index.d.ts +25 -0
  6. package/es/action-bar/index.mjs +10 -0
  7. package/es/action-bar/style/index.d.ts +1 -0
  8. package/es/action-bar/style/index.mjs +2 -0
  9. package/es/action-bar/types.d.ts +4 -0
  10. package/es/action-bar-button/ActionBarButton.d.ts +43 -0
  11. package/es/action-bar-button/ActionBarButton.mjs +73 -0
  12. package/es/action-bar-button/index.css +1 -0
  13. package/es/action-bar-button/index.d.ts +36 -0
  14. package/es/action-bar-button/index.mjs +10 -0
  15. package/es/action-bar-button/style/index.d.ts +1 -0
  16. package/es/action-bar-button/style/index.mjs +7 -0
  17. package/es/action-bar-button/types.d.ts +5 -0
  18. package/es/action-bar-icon/ActionBarIcon.d.ts +48 -0
  19. package/es/action-bar-icon/ActionBarIcon.mjs +68 -0
  20. package/es/action-bar-icon/index.css +1 -0
  21. package/es/action-bar-icon/index.d.ts +39 -0
  22. package/es/action-bar-icon/index.mjs +10 -0
  23. package/es/action-bar-icon/style/index.d.ts +1 -0
  24. package/es/action-bar-icon/style/index.mjs +5 -0
  25. package/es/action-bar-icon/types.d.ts +10 -0
  26. package/es/action-sheet/ActionSheet.d.ts +195 -0
  27. package/es/action-sheet/ActionSheet.mjs +139 -0
  28. package/es/action-sheet/index.css +1 -1
  29. package/es/action-sheet/index.d.ts +136 -0
  30. package/es/action-sheet/index.mjs +10 -0
  31. package/es/action-sheet/style/index.d.ts +1 -0
  32. package/es/action-sheet/style/index.mjs +7 -0
  33. package/es/action-sheet/types.d.ts +23 -0
  34. package/es/address-edit/AddressEdit.d.ts +158 -0
  35. package/es/address-edit/AddressEdit.mjs +295 -0
  36. package/es/address-edit/AddressEditDetail.d.ts +32 -0
  37. package/es/address-edit/AddressEditDetail.mjs +75 -0
  38. package/es/address-edit/index.css +1 -1
  39. package/es/address-edit/index.d.ts +119 -0
  40. package/es/address-edit/index.mjs +10 -0
  41. package/es/address-edit/style/index.d.ts +1 -0
  42. package/es/address-edit/style/index.mjs +19 -0
  43. package/es/address-edit/types.d.ts +28 -0
  44. package/es/address-list/AddressList.d.ts +95 -0
  45. package/es/address-list/AddressList.mjs +103 -0
  46. package/es/address-list/AddressListItem.d.ts +46 -0
  47. package/es/address-list/AddressListItem.mjs +108 -0
  48. package/es/address-list/index.css +1 -1
  49. package/es/address-list/index.d.ts +75 -0
  50. package/es/address-list/index.mjs +10 -0
  51. package/es/address-list/style/index.d.ts +1 -0
  52. package/es/address-list/style/index.mjs +12 -0
  53. package/es/address-list/types.d.ts +15 -0
  54. package/es/address-list/types.mjs +0 -0
  55. package/es/area/Area.d.ts +134 -0
  56. package/es/area/Area.mjs +76 -0
  57. package/es/area/index.d.ts +100 -0
  58. package/es/area/index.mjs +10 -0
  59. package/es/area/style/index.d.ts +1 -0
  60. package/es/area/style/index.mjs +10 -0
  61. package/es/area/types.d.ts +9 -0
  62. package/es/area/types.mjs +0 -0
  63. package/es/area/utils.d.ts +6 -0
  64. package/es/area/utils.mjs +92 -0
  65. package/es/back-top/BackTop.d.ts +53 -0
  66. package/es/back-top/BackTop.mjs +118 -0
  67. package/es/back-top/index.css +1 -0
  68. package/es/back-top/index.d.ts +44 -0
  69. package/es/back-top/index.mjs +10 -0
  70. package/es/back-top/style/index.d.ts +1 -0
  71. package/es/back-top/style/index.mjs +4 -0
  72. package/es/back-top/types.d.ts +9 -0
  73. package/es/back-top/types.mjs +0 -0
  74. package/es/badge/Badge.d.ts +66 -0
  75. package/es/badge/Badge.mjs +104 -0
  76. package/es/badge/index.css +1 -1
  77. package/es/badge/index.d.ts +51 -0
  78. package/es/badge/index.mjs +10 -0
  79. package/es/badge/style/index.d.ts +1 -0
  80. package/es/badge/style/index.mjs +2 -0
  81. package/es/badge/types.d.ts +12 -0
  82. package/es/badge/types.mjs +0 -0
  83. package/es/barrage/Barrage.d.ts +93 -0
  84. package/es/barrage/Barrage.mjs +133 -0
  85. package/es/barrage/index.css +1 -0
  86. package/es/barrage/index.d.ts +69 -0
  87. package/es/barrage/index.mjs +10 -0
  88. package/es/barrage/style/index.d.ts +1 -0
  89. package/es/barrage/style/index.mjs +2 -0
  90. package/es/barrage/types.d.ts +13 -0
  91. package/es/barrage/types.mjs +0 -0
  92. package/es/button/Button.d.ts +140 -0
  93. package/es/button/Button.mjs +148 -0
  94. package/es/button/index.css +1 -1
  95. package/es/button/index.d.ts +104 -0
  96. package/es/button/index.mjs +10 -0
  97. package/es/button/style/index.d.ts +1 -0
  98. package/es/button/style/index.mjs +5 -0
  99. package/es/button/types.d.ts +41 -0
  100. package/es/button/types.mjs +0 -0
  101. package/es/calendar/Calendar.d.ts +299 -0
  102. package/es/calendar/Calendar.mjs +449 -0
  103. package/es/calendar/CalendarDay.d.ts +33 -0
  104. package/es/calendar/CalendarDay.mjs +132 -0
  105. package/es/calendar/CalendarHeader.d.ts +36 -0
  106. package/es/calendar/CalendarHeader.mjs +113 -0
  107. package/es/calendar/CalendarMonth.d.ts +69 -0
  108. package/es/calendar/CalendarMonth.mjs +213 -0
  109. package/es/calendar/index.css +1 -1
  110. package/es/calendar/index.d.ts +215 -0
  111. package/es/calendar/index.mjs +10 -0
  112. package/es/calendar/style/index.d.ts +1 -0
  113. package/es/calendar/style/index.mjs +16 -0
  114. package/es/calendar/types.d.ts +60 -0
  115. package/es/calendar/types.mjs +0 -0
  116. package/es/calendar/utils.d.ts +18 -0
  117. package/es/calendar/utils.mjs +82 -0
  118. package/es/card/Card.d.ts +56 -0
  119. package/es/card/Card.mjs +126 -0
  120. package/es/card/index.css +1 -1
  121. package/es/card/index.d.ts +46 -0
  122. package/es/card/index.mjs +10 -0
  123. package/es/card/style/index.d.ts +1 -0
  124. package/es/card/style/index.mjs +6 -0
  125. package/es/card/types.d.ts +18 -0
  126. package/es/card/types.mjs +0 -0
  127. package/es/cascader/Cascader.d.ts +96 -0
  128. package/es/cascader/Cascader.mjs +240 -0
  129. package/es/cascader/index.css +1 -1
  130. package/es/cascader/index.d.ts +74 -0
  131. package/es/cascader/index.mjs +10 -0
  132. package/es/cascader/style/index.d.ts +1 -0
  133. package/es/cascader/style/index.mjs +9 -0
  134. package/es/cascader/types.d.ts +34 -0
  135. package/es/cascader/types.mjs +0 -0
  136. package/es/cell/Cell.d.ts +148 -0
  137. package/es/cell/Cell.mjs +131 -0
  138. package/es/cell/index.css +1 -1
  139. package/es/cell/index.d.ts +86 -0
  140. package/es/cell/index.mjs +10 -0
  141. package/es/cell/style/index.d.ts +1 -0
  142. package/es/cell/style/index.mjs +4 -0
  143. package/es/cell/types.d.ts +21 -0
  144. package/es/cell/types.mjs +0 -0
  145. package/es/cell-group/CellGroup.d.ts +29 -0
  146. package/es/cell-group/CellGroup.mjs +44 -0
  147. package/es/cell-group/index.css +1 -1
  148. package/es/cell-group/index.d.ts +27 -0
  149. package/es/cell-group/index.mjs +10 -0
  150. package/es/cell-group/style/index.d.ts +1 -0
  151. package/es/cell-group/style/index.mjs +2 -0
  152. package/es/cell-group/types.d.ts +10 -0
  153. package/es/cell-group/types.mjs +0 -0
  154. package/es/checkbox/Checkbox.d.ts +68 -0
  155. package/es/checkbox/Checkbox.mjs +89 -0
  156. package/es/checkbox/Checker.d.ts +87 -0
  157. package/es/checkbox/Checker.mjs +142 -0
  158. package/es/checkbox/index.css +1 -1
  159. package/es/checkbox/index.d.ts +54 -0
  160. package/es/checkbox/index.mjs +10 -0
  161. package/es/checkbox/style/index.d.ts +1 -0
  162. package/es/checkbox/style/index.mjs +5 -0
  163. package/es/checkbox/types.d.ts +24 -0
  164. package/es/checkbox/types.mjs +0 -0
  165. package/es/checkbox-group/CheckboxGroup.d.ts +57 -0
  166. package/es/checkbox-group/CheckboxGroup.mjs +72 -0
  167. package/es/checkbox-group/index.css +1 -1
  168. package/es/checkbox-group/index.d.ts +45 -0
  169. package/es/checkbox-group/index.mjs +10 -0
  170. package/es/checkbox-group/style/index.d.ts +1 -0
  171. package/es/checkbox-group/style/index.mjs +2 -0
  172. package/es/checkbox-group/types.d.ts +16 -0
  173. package/es/checkbox-group/types.mjs +0 -0
  174. package/es/circle/Circle.d.ts +118 -0
  175. package/es/circle/Circle.mjs +152 -0
  176. package/es/circle/index.css +1 -1
  177. package/es/circle/index.d.ts +88 -0
  178. package/es/circle/index.mjs +10 -0
  179. package/es/circle/style/index.d.ts +1 -0
  180. package/es/circle/style/index.mjs +2 -0
  181. package/es/circle/types.d.ts +9 -0
  182. package/es/circle/types.mjs +0 -0
  183. package/es/col/Col.d.ts +38 -0
  184. package/es/col/Col.mjs +71 -0
  185. package/es/col/index.css +1 -1
  186. package/es/col/index.d.ts +32 -0
  187. package/es/col/index.mjs +10 -0
  188. package/es/col/style/index.d.ts +1 -0
  189. package/es/col/style/index.mjs +3 -0
  190. package/es/collapse/Collapse.d.ts +55 -0
  191. package/es/collapse/Collapse.mjs +108 -0
  192. package/es/collapse/index.d.ts +36 -0
  193. package/es/collapse/index.mjs +10 -0
  194. package/es/collapse/style/index.d.ts +1 -0
  195. package/es/collapse/style/index.mjs +1 -0
  196. package/es/collapse-item/CollapseItem.d.ts +141 -0
  197. package/es/collapse-item/CollapseItem.mjs +136 -0
  198. package/es/collapse-item/index.css +1 -1
  199. package/es/collapse-item/index.d.ts +104 -0
  200. package/es/collapse-item/index.mjs +10 -0
  201. package/es/collapse-item/style/index.d.ts +1 -0
  202. package/es/collapse-item/style/index.mjs +5 -0
  203. package/es/collapse-item/types.d.ts +15 -0
  204. package/es/collapse-item/types.mjs +0 -0
  205. package/es/composables/on-popup-reopen.d.ts +3 -0
  206. package/es/composables/on-popup-reopen.mjs +16 -0
  207. package/es/composables/use-expose.d.ts +1 -0
  208. package/es/composables/use-expose.mjs +11 -0
  209. package/es/composables/use-global-z-index.d.ts +4 -0
  210. package/es/composables/use-global-z-index.mjs +9 -0
  211. package/es/composables/use-height.d.ts +2 -0
  212. package/es/composables/use-height.mjs +24 -0
  213. package/es/composables/use-id.d.ts +1 -0
  214. package/es/composables/use-id.mjs +13 -0
  215. package/es/composables/use-lazy-render.d.ts +2 -0
  216. package/es/composables/use-lazy-render.mjs +17 -0
  217. package/es/composables/use-lock-scroll.d.ts +2 -0
  218. package/es/composables/use-lock-scroll.mjs +58 -0
  219. package/es/composables/use-placeholder.d.ts +3 -0
  220. package/es/composables/use-placeholder.mjs +14 -0
  221. package/es/composables/use-refs.d.ts +2 -0
  222. package/es/composables/use-refs.mjs +20 -0
  223. package/es/composables/use-route.d.ts +13 -0
  224. package/es/composables/use-route.mjs +29 -0
  225. package/es/composables/use-scope-id.d.ts +3 -0
  226. package/es/composables/use-scope-id.mjs +9 -0
  227. package/es/composables/use-sync-prop-ref.d.ts +2 -0
  228. package/es/composables/use-sync-prop-ref.mjs +18 -0
  229. package/es/composables/use-tab-status.d.ts +3 -0
  230. package/es/composables/use-tab-status.mjs +7 -0
  231. package/es/composables/use-touch.d.ts +17 -0
  232. package/es/composables/use-touch.mjs +68 -0
  233. package/es/composables/use-visibility-change.d.ts +2 -0
  234. package/es/composables/use-visibility-change.mjs +30 -0
  235. package/es/config-provider/ConfigProvider.d.ts +71 -0
  236. package/es/config-provider/ConfigProvider.mjs +102 -0
  237. package/es/config-provider/index.d.ts +50 -0
  238. package/es/config-provider/index.mjs +10 -0
  239. package/es/config-provider/style/index.d.ts +1 -0
  240. package/es/config-provider/style/index.mjs +1 -0
  241. package/es/config-provider/types.d.ts +61 -0
  242. package/es/config-provider/types.mjs +0 -0
  243. package/es/contact-card/ContactCard.d.ts +47 -0
  244. package/es/contact-card/ContactCard.mjs +46 -0
  245. package/es/contact-card/index.css +1 -1
  246. package/es/contact-card/index.d.ts +39 -0
  247. package/es/contact-card/index.mjs +10 -0
  248. package/es/contact-card/style/index.d.ts +1 -0
  249. package/es/contact-card/style/index.mjs +5 -0
  250. package/es/contact-card/types.d.ts +6 -0
  251. package/es/contact-card/types.mjs +0 -0
  252. package/es/contact-edit/ContactEdit.d.ts +64 -0
  253. package/es/contact-edit/ContactEdit.mjs +112 -0
  254. package/es/contact-edit/index.css +1 -1
  255. package/es/contact-edit/index.d.ts +49 -0
  256. package/es/contact-edit/index.mjs +10 -0
  257. package/es/contact-edit/style/index.d.ts +1 -0
  258. package/es/contact-edit/style/index.mjs +9 -0
  259. package/es/contact-edit/types.d.ts +8 -0
  260. package/es/contact-edit/types.mjs +0 -0
  261. package/es/contact-list/ContactList.d.ts +32 -0
  262. package/es/contact-list/ContactList.mjs +89 -0
  263. package/es/contact-list/index.css +1 -1
  264. package/es/contact-list/index.d.ts +25 -0
  265. package/es/contact-list/index.mjs +10 -0
  266. package/es/contact-list/style/index.d.ts +1 -0
  267. package/es/contact-list/style/index.mjs +11 -0
  268. package/es/contact-list/types.d.ts +6 -0
  269. package/es/contact-list/types.mjs +0 -0
  270. package/es/count-down/CountDown.d.ts +55 -0
  271. package/es/count-down/CountDown.mjs +56 -0
  272. package/es/count-down/index.css +1 -1
  273. package/es/count-down/index.d.ts +46 -0
  274. package/es/count-down/index.mjs +10 -0
  275. package/es/count-down/style/index.d.ts +1 -0
  276. package/es/count-down/style/index.mjs +2 -0
  277. package/es/count-down/types.d.ts +16 -0
  278. package/es/count-down/types.mjs +0 -0
  279. package/es/count-down/utils.d.ts +2 -0
  280. package/es/count-down/utils.mjs +39 -0
  281. package/es/coupon/Coupon.d.ts +45 -0
  282. package/es/coupon/Coupon.mjs +79 -0
  283. package/es/coupon/index.css +1 -1
  284. package/es/coupon/index.d.ts +35 -0
  285. package/es/coupon/index.mjs +8 -0
  286. package/es/coupon/style/index.d.ts +1 -0
  287. package/es/coupon/style/index.mjs +6 -0
  288. package/es/coupon/types.d.ts +19 -0
  289. package/es/coupon/types.mjs +0 -0
  290. package/es/coupon/utils.d.ts +3 -0
  291. package/es/coupon/utils.mjs +14 -0
  292. package/es/coupon-cell/CouponCell.d.ts +78 -0
  293. package/es/coupon-cell/CouponCell.mjs +70 -0
  294. package/es/coupon-cell/index.css +1 -1
  295. package/es/coupon-cell/index.d.ts +60 -0
  296. package/es/coupon-cell/index.mjs +10 -0
  297. package/es/coupon-cell/style/index.d.ts +1 -0
  298. package/es/coupon-cell/style/index.mjs +5 -0
  299. package/es/coupon-cell/types.d.ts +3 -0
  300. package/es/coupon-cell/types.mjs +0 -0
  301. package/es/coupon-list/CouponList.d.ts +170 -0
  302. package/es/coupon-list/CouponList.mjs +196 -0
  303. package/es/coupon-list/index.css +1 -1
  304. package/es/coupon-list/index.d.ts +125 -0
  305. package/es/coupon-list/index.mjs +10 -0
  306. package/es/coupon-list/style/index.d.ts +1 -0
  307. package/es/coupon-list/style/index.mjs +17 -0
  308. package/es/coupon-list/types.d.ts +9 -0
  309. package/es/coupon-list/types.mjs +0 -0
  310. package/es/date-picker/DatePicker.d.ts +176 -0
  311. package/es/date-picker/DatePicker.mjs +133 -0
  312. package/es/date-picker/index.d.ts +127 -0
  313. package/es/date-picker/index.mjs +10 -0
  314. package/es/date-picker/style/index.d.ts +1 -0
  315. package/es/date-picker/style/index.mjs +10 -0
  316. package/es/date-picker/utils.d.ts +46 -0
  317. package/es/date-picker/utils.mjs +50 -0
  318. package/es/dialog/Dialog.d.ts +200 -0
  319. package/es/dialog/Dialog.mjs +221 -0
  320. package/es/dialog/function-call.d.ts +21 -0
  321. package/es/dialog/function-call.mjs +85 -0
  322. package/es/dialog/index.css +1 -1
  323. package/es/dialog/index.d.ts +147 -0
  324. package/es/dialog/index.mjs +22 -0
  325. package/es/dialog/style/index.d.ts +1 -0
  326. package/es/dialog/style/index.mjs +10 -0
  327. package/es/dialog/types.d.ts +53 -0
  328. package/es/dialog/types.mjs +0 -0
  329. package/es/divider/Divider.d.ts +44 -0
  330. package/es/divider/Divider.mjs +33 -0
  331. package/es/divider/index.css +1 -1
  332. package/es/divider/index.d.ts +37 -0
  333. package/es/divider/index.mjs +10 -0
  334. package/es/divider/style/index.d.ts +1 -0
  335. package/es/divider/style/index.mjs +2 -0
  336. package/es/divider/types.d.ts +10 -0
  337. package/es/divider/types.mjs +0 -0
  338. package/es/dropdown-item/DropdownItem.d.ts +59 -0
  339. package/es/dropdown-item/DropdownItem.mjs +201 -0
  340. package/es/dropdown-item/index.css +1 -1
  341. package/es/dropdown-item/index.d.ts +50 -0
  342. package/es/dropdown-item/index.mjs +10 -0
  343. package/es/dropdown-item/style/index.d.ts +1 -0
  344. package/es/dropdown-item/style/index.mjs +8 -0
  345. package/es/dropdown-item/types.d.ts +27 -0
  346. package/es/dropdown-item/types.mjs +0 -0
  347. package/es/dropdown-menu/DropdownMenu.d.ts +89 -0
  348. package/es/dropdown-menu/DropdownMenu.mjs +149 -0
  349. package/es/dropdown-menu/index.css +1 -1
  350. package/es/dropdown-menu/index.d.ts +68 -0
  351. package/es/dropdown-menu/index.mjs +10 -0
  352. package/es/dropdown-menu/style/index.d.ts +1 -0
  353. package/es/dropdown-menu/style/index.mjs +2 -0
  354. package/es/dropdown-menu/types.d.ts +27 -0
  355. package/es/dropdown-menu/types.mjs +0 -0
  356. package/es/empty/Empty.d.ts +29 -0
  357. package/es/empty/Empty.mjs +343 -0
  358. package/es/empty/index.css +1 -1
  359. package/es/empty/index.d.ts +26 -0
  360. package/es/empty/index.mjs +10 -0
  361. package/es/empty/style/index.d.ts +1 -0
  362. package/es/empty/style/index.mjs +2 -0
  363. package/es/empty/types.d.ts +10 -0
  364. package/es/empty/types.mjs +0 -0
  365. package/es/field/Field.d.ts +383 -0
  366. package/es/field/Field.mjs +548 -0
  367. package/es/field/index.css +1 -1
  368. package/es/field/index.d.ts +238 -0
  369. package/es/field/index.mjs +10 -0
  370. package/es/field/style/index.d.ts +1 -0
  371. package/es/field/style/index.mjs +5 -0
  372. package/es/field/types.d.ts +65 -0
  373. package/es/field/types.mjs +0 -0
  374. package/es/field/utils.d.ts +15 -0
  375. package/es/field/utils.mjs +103 -0
  376. package/es/floating-bubble/FloatingBubble.d.ts +81 -0
  377. package/es/floating-bubble/FloatingBubble.mjs +174 -0
  378. package/es/floating-bubble/index.css +1 -0
  379. package/es/floating-bubble/index.d.ts +63 -0
  380. package/es/floating-bubble/index.mjs +10 -0
  381. package/es/floating-bubble/style/index.d.ts +1 -0
  382. package/es/floating-bubble/style/index.mjs +4 -0
  383. package/es/floating-bubble/types.d.ts +20 -0
  384. package/es/floating-bubble/types.mjs +0 -0
  385. package/es/floating-panel/FloatingPanel.d.ts +81 -0
  386. package/es/floating-panel/FloatingPanel.mjs +134 -0
  387. package/es/floating-panel/index.css +1 -0
  388. package/es/floating-panel/index.d.ts +64 -0
  389. package/es/floating-panel/index.mjs +10 -0
  390. package/es/floating-panel/style/index.d.ts +1 -0
  391. package/es/floating-panel/style/index.mjs +2 -0
  392. package/es/floating-panel/types.d.ts +9 -0
  393. package/es/floating-panel/types.mjs +0 -0
  394. package/es/form/Form.d.ts +94 -0
  395. package/es/form/Form.mjs +168 -0
  396. package/es/form/index.d.ts +74 -0
  397. package/es/form/index.mjs +10 -0
  398. package/es/form/style/index.d.ts +1 -0
  399. package/es/form/style/index.mjs +1 -0
  400. package/es/form/types.d.ts +15 -0
  401. package/es/form/types.mjs +0 -0
  402. package/es/grid/Grid.d.ts +74 -0
  403. package/es/grid/Grid.mjs +47 -0
  404. package/es/grid/index.css +1 -1
  405. package/es/grid/index.d.ts +54 -0
  406. package/es/grid/index.mjs +10 -0
  407. package/es/grid/style/index.d.ts +1 -0
  408. package/es/grid/style/index.mjs +2 -0
  409. package/es/grid-item/GridItem.d.ts +45 -0
  410. package/es/grid-item/GridItem.mjs +145 -0
  411. package/es/grid-item/index.css +1 -1
  412. package/es/grid-item/index.d.ts +37 -0
  413. package/es/grid-item/index.mjs +10 -0
  414. package/es/grid-item/style/index.d.ts +1 -0
  415. package/es/grid-item/style/index.mjs +5 -0
  416. package/es/grid-item/types.d.ts +8 -0
  417. package/es/grid-item/types.mjs +0 -0
  418. package/es/highlight/Highlight.d.ts +96 -0
  419. package/es/highlight/Highlight.mjs +128 -0
  420. package/es/highlight/index.css +1 -0
  421. package/es/highlight/index.d.ts +73 -0
  422. package/es/highlight/index.mjs +10 -0
  423. package/es/highlight/style/index.d.ts +1 -0
  424. package/es/highlight/style/index.mjs +2 -0
  425. package/es/highlight/types.d.ts +3 -0
  426. package/es/highlight/types.mjs +0 -0
  427. package/es/icon/Icon.d.ts +45 -0
  428. package/es/icon/Icon.mjs +59 -0
  429. package/es/icon/index.css +1 -1
  430. package/es/icon/index.d.ts +36 -0
  431. package/es/icon/index.mjs +10 -0
  432. package/es/icon/style/index.d.ts +1 -0
  433. package/es/icon/style/index.mjs +3 -0
  434. package/es/image/Image.d.ts +110 -0
  435. package/es/image/Image.mjs +174 -0
  436. package/es/image/index.css +1 -1
  437. package/es/image/index.d.ts +83 -0
  438. package/es/image/index.mjs +10 -0
  439. package/es/image/style/index.d.ts +1 -0
  440. package/es/image/style/index.mjs +4 -0
  441. package/es/image/types.d.ts +12 -0
  442. package/es/image/types.mjs +0 -0
  443. package/es/image-preview/ImagePreview.d.ts +234 -0
  444. package/es/image-preview/ImagePreview.mjs +196 -0
  445. package/es/image-preview/ImagePreviewItem.d.ts +91 -0
  446. package/es/image-preview/ImagePreviewItem.mjs +338 -0
  447. package/es/image-preview/function-call.d.ts +6 -0
  448. package/es/image-preview/function-call.mjs +67 -0
  449. package/es/image-preview/index.css +1 -1
  450. package/es/image-preview/index.d.ts +172 -0
  451. package/es/image-preview/index.mjs +12 -0
  452. package/es/image-preview/style/index.d.ts +1 -0
  453. package/es/image-preview/style/index.mjs +10 -0
  454. package/es/image-preview/types.d.ts +61 -0
  455. package/es/image-preview/types.mjs +0 -0
  456. package/es/index-anchor/IndexAnchor.d.ts +11 -0
  457. package/es/index-anchor/IndexAnchor.mjs +87 -0
  458. package/es/index-anchor/index.css +1 -1
  459. package/es/index-anchor/index.d.ts +14 -0
  460. package/es/index-anchor/index.mjs +10 -0
  461. package/es/index-anchor/style/index.d.ts +1 -0
  462. package/es/index-anchor/style/index.mjs +3 -0
  463. package/es/index-anchor/types.d.ts +11 -0
  464. package/es/index-anchor/types.mjs +0 -0
  465. package/es/index-bar/IndexBar.d.ts +64 -0
  466. package/es/index-bar/IndexBar.mjs +234 -0
  467. package/es/index-bar/index.css +1 -1
  468. package/es/index-bar/index.d.ts +50 -0
  469. package/es/index-bar/index.mjs +10 -0
  470. package/es/index-bar/style/index.d.ts +1 -0
  471. package/es/index-bar/style/index.mjs +2 -0
  472. package/es/index-bar/types.d.ts +16 -0
  473. package/es/index-bar/types.mjs +0 -0
  474. package/es/index.d.ts +109 -0
  475. package/es/index.mjs +325 -0
  476. package/es/lazyload/index.d.ts +3 -0
  477. package/es/lazyload/index.mjs +6 -0
  478. package/es/lazyload/style/index.d.ts +1 -0
  479. package/es/lazyload/style/index.mjs +1 -0
  480. package/es/lazyload/vue-lazyload/index.d.ts +55 -0
  481. package/es/lazyload/vue-lazyload/index.mjs +36 -0
  482. package/es/lazyload/vue-lazyload/lazy-component.mjs +51 -0
  483. package/es/lazyload/vue-lazyload/lazy-container.mjs +72 -0
  484. package/es/lazyload/vue-lazyload/lazy-image.mjs +99 -0
  485. package/es/lazyload/vue-lazyload/lazy.mjs +437 -0
  486. package/es/lazyload/vue-lazyload/listener.mjs +216 -0
  487. package/es/lazyload/vue-lazyload/util.d.ts +25 -0
  488. package/es/lazyload/vue-lazyload/util.mjs +161 -0
  489. package/es/list/List.d.ts +81 -0
  490. package/es/list/List.mjs +143 -0
  491. package/es/list/index.css +1 -1
  492. package/es/list/index.d.ts +65 -0
  493. package/es/list/index.mjs +10 -0
  494. package/es/list/style/index.d.ts +1 -0
  495. package/es/list/style/index.mjs +3 -0
  496. package/es/list/types.d.ts +13 -0
  497. package/es/list/types.mjs +0 -0
  498. package/es/loading/Loading.d.ts +39 -0
  499. package/es/loading/Loading.mjs +70 -0
  500. package/es/loading/index.css +1 -1
  501. package/es/loading/index.d.ts +33 -0
  502. package/es/loading/index.mjs +10 -0
  503. package/es/loading/style/index.d.ts +1 -0
  504. package/es/loading/style/index.mjs +2 -0
  505. package/es/loading/types.d.ts +7 -0
  506. package/es/loading/types.mjs +0 -0
  507. package/es/locale/index.d.ts +8 -0
  508. package/es/locale/index.mjs +26 -0
  509. package/es/locale/lang/ar-SA.d.ts +63 -0
  510. package/es/locale/lang/ar-SA.mjs +65 -0
  511. package/es/locale/lang/bg-BG.d.ts +65 -0
  512. package/es/locale/lang/bg-BG.mjs +75 -0
  513. package/es/locale/lang/bn-BD.d.ts +63 -0
  514. package/es/locale/lang/bn-BD.mjs +73 -0
  515. package/es/locale/lang/da-DK.d.ts +65 -0
  516. package/es/locale/lang/da-DK.mjs +67 -0
  517. package/es/locale/lang/de-DE-formal.d.ts +63 -0
  518. package/es/locale/lang/de-DE-formal.mjs +65 -0
  519. package/es/locale/lang/de-DE.d.ts +63 -0
  520. package/es/locale/lang/de-DE.mjs +65 -0
  521. package/es/locale/lang/el-GR.d.ts +65 -0
  522. package/es/locale/lang/el-GR.mjs +75 -0
  523. package/es/locale/lang/en-US.d.ts +63 -0
  524. package/es/locale/lang/en-US.mjs +65 -0
  525. package/es/locale/lang/eo-EO.d.ts +63 -0
  526. package/es/locale/lang/eo-EO.mjs +65 -0
  527. package/es/locale/lang/es-ES.d.ts +63 -0
  528. package/es/locale/lang/es-ES.mjs +65 -0
  529. package/es/locale/lang/fa-IR.d.ts +65 -0
  530. package/es/locale/lang/fa-IR.mjs +75 -0
  531. package/es/locale/lang/fr-FR.d.ts +63 -0
  532. package/es/locale/lang/fr-FR.mjs +65 -0
  533. package/es/locale/lang/he-IL.d.ts +65 -0
  534. package/es/locale/lang/he-IL.mjs +67 -0
  535. package/es/locale/lang/hi-IN.d.ts +63 -0
  536. package/es/locale/lang/hi-IN.mjs +73 -0
  537. package/es/locale/lang/id-ID.d.ts +63 -0
  538. package/es/locale/lang/id-ID.mjs +65 -0
  539. package/es/locale/lang/is-IS.d.ts +63 -0
  540. package/es/locale/lang/is-IS.mjs +73 -0
  541. package/es/locale/lang/it-IT.d.ts +63 -0
  542. package/es/locale/lang/it-IT.mjs +65 -0
  543. package/es/locale/lang/ja-JP.d.ts +63 -0
  544. package/es/locale/lang/ja-JP.mjs +65 -0
  545. package/es/locale/lang/kk-KZ.d.ts +63 -0
  546. package/es/locale/lang/kk-KZ.mjs +81 -0
  547. package/es/locale/lang/km-KH.d.ts +63 -0
  548. package/es/locale/lang/km-KH.mjs +65 -0
  549. package/es/locale/lang/ko-KR.d.ts +63 -0
  550. package/es/locale/lang/ko-KR.mjs +73 -0
  551. package/es/locale/lang/la-LA.d.ts +63 -0
  552. package/es/locale/lang/la-LA.mjs +65 -0
  553. package/es/locale/lang/mm-MN.d.ts +63 -0
  554. package/es/locale/lang/mm-MN.mjs +65 -0
  555. package/es/locale/lang/nb-NO.d.ts +63 -0
  556. package/es/locale/lang/nb-NO.mjs +65 -0
  557. package/es/locale/lang/nl-NL.d.ts +63 -0
  558. package/es/locale/lang/nl-NL.mjs +65 -0
  559. package/es/locale/lang/pt-BR.d.ts +63 -0
  560. package/es/locale/lang/pt-BR.mjs +65 -0
  561. package/es/locale/lang/ro-RO.d.ts +63 -0
  562. package/es/locale/lang/ro-RO.mjs +65 -0
  563. package/es/locale/lang/ru-RU.d.ts +63 -0
  564. package/es/locale/lang/ru-RU.mjs +65 -0
  565. package/es/locale/lang/sr-RS.d.ts +63 -0
  566. package/es/locale/lang/sr-RS.mjs +73 -0
  567. package/es/locale/lang/sv-SE.d.ts +63 -0
  568. package/es/locale/lang/sv-SE.mjs +65 -0
  569. package/es/locale/lang/th-TH.d.ts +63 -0
  570. package/es/locale/lang/th-TH.mjs +65 -0
  571. package/es/locale/lang/tr-TR.d.ts +63 -0
  572. package/es/locale/lang/tr-TR.mjs +65 -0
  573. package/es/locale/lang/uk-UA.d.ts +63 -0
  574. package/es/locale/lang/uk-UA.mjs +65 -0
  575. package/es/locale/lang/vi-VN.d.ts +63 -0
  576. package/es/locale/lang/vi-VN.mjs +73 -0
  577. package/es/locale/lang/zh-CN.d.ts +63 -0
  578. package/es/locale/lang/zh-CN.mjs +65 -0
  579. package/es/locale/lang/zh-HK.d.ts +63 -0
  580. package/es/locale/lang/zh-HK.mjs +65 -0
  581. package/es/locale/lang/zh-TW.d.ts +63 -0
  582. package/es/locale/lang/zh-TW.mjs +65 -0
  583. package/es/locale/style/index.d.ts +1 -0
  584. package/es/locale/style/index.mjs +1 -0
  585. package/es/nav-bar/NavBar.d.ts +74 -0
  586. package/es/nav-bar/NavBar.mjs +105 -0
  587. package/es/nav-bar/index.css +1 -1
  588. package/es/nav-bar/index.d.ts +60 -0
  589. package/es/nav-bar/index.mjs +10 -0
  590. package/es/nav-bar/style/index.d.ts +1 -0
  591. package/es/nav-bar/style/index.mjs +4 -0
  592. package/es/nav-bar/types.d.ts +10 -0
  593. package/es/nav-bar/types.mjs +0 -0
  594. package/es/notice-bar/NoticeBar.d.ts +71 -0
  595. package/es/notice-bar/NoticeBar.mjs +165 -0
  596. package/es/notice-bar/index.css +1 -1
  597. package/es/notice-bar/index.d.ts +57 -0
  598. package/es/notice-bar/index.mjs +10 -0
  599. package/es/notice-bar/style/index.d.ts +1 -0
  600. package/es/notice-bar/style/index.mjs +4 -0
  601. package/es/notice-bar/types.d.ts +18 -0
  602. package/es/notice-bar/types.mjs +0 -0
  603. package/es/notify/Notify.d.ts +134 -0
  604. package/es/notify/Notify.mjs +42 -0
  605. package/es/notify/function-call.d.ts +18 -0
  606. package/es/notify/function-call.mjs +68 -0
  607. package/es/notify/index.css +1 -1
  608. package/es/notify/index.d.ts +100 -0
  609. package/es/notify/index.mjs +20 -0
  610. package/es/notify/style/index.d.ts +1 -0
  611. package/es/notify/style/index.mjs +6 -0
  612. package/es/notify/types.d.ts +30 -0
  613. package/es/notify/types.mjs +0 -0
  614. package/es/number-keyboard/NumberKeyboard.d.ts +162 -0
  615. package/es/number-keyboard/NumberKeyboard.mjs +235 -0
  616. package/es/number-keyboard/NumberKeyboardKey.d.ts +24 -0
  617. package/es/number-keyboard/NumberKeyboardKey.mjs +93 -0
  618. package/es/number-keyboard/index.css +1 -1
  619. package/es/number-keyboard/index.d.ts +121 -0
  620. package/es/number-keyboard/index.mjs +10 -0
  621. package/es/number-keyboard/style/index.d.ts +1 -0
  622. package/es/number-keyboard/style/index.mjs +3 -0
  623. package/es/number-keyboard/types.d.ts +17 -0
  624. package/es/number-keyboard/types.mjs +0 -0
  625. package/es/overlay/Overlay.d.ts +54 -0
  626. package/es/overlay/Overlay.mjs +65 -0
  627. package/es/overlay/index.css +1 -1
  628. package/es/overlay/index.d.ts +44 -0
  629. package/es/overlay/index.mjs +10 -0
  630. package/es/overlay/style/index.d.ts +1 -0
  631. package/es/overlay/style/index.mjs +2 -0
  632. package/es/overlay/types.d.ts +4 -0
  633. package/es/overlay/types.mjs +0 -0
  634. package/es/pagination/Pagination.d.ts +127 -0
  635. package/es/pagination/Pagination.mjs +154 -0
  636. package/es/pagination/index.css +1 -1
  637. package/es/pagination/index.d.ts +95 -0
  638. package/es/pagination/index.mjs +10 -0
  639. package/es/pagination/style/index.d.ts +1 -0
  640. package/es/pagination/style/index.mjs +2 -0
  641. package/es/pagination/types.d.ts +11 -0
  642. package/es/pagination/types.mjs +0 -0
  643. package/es/password-input/PasswordInput.d.ts +63 -0
  644. package/es/password-input/PasswordInput.mjs +78 -0
  645. package/es/password-input/index.css +1 -1
  646. package/es/password-input/index.d.ts +51 -0
  647. package/es/password-input/index.mjs +10 -0
  648. package/es/password-input/style/index.d.ts +1 -0
  649. package/es/password-input/style/index.mjs +2 -0
  650. package/es/password-input/types.d.ts +17 -0
  651. package/es/password-input/types.mjs +0 -0
  652. package/es/picker/Picker.d.ts +164 -0
  653. package/es/picker/Picker.mjs +214 -0
  654. package/es/picker/PickerColumn.d.ts +61 -0
  655. package/es/picker/PickerColumn.mjs +203 -0
  656. package/es/picker/PickerToolbar.d.ts +21 -0
  657. package/es/picker/PickerToolbar.mjs +66 -0
  658. package/es/picker/index.css +1 -1
  659. package/es/picker/index.d.ts +105 -0
  660. package/es/picker/index.mjs +10 -0
  661. package/es/picker/style/index.d.ts +1 -0
  662. package/es/picker/style/index.mjs +10 -0
  663. package/es/picker/types.d.ts +62 -0
  664. package/es/picker/types.mjs +0 -0
  665. package/es/picker/utils.d.ts +13 -0
  666. package/es/picker/utils.mjs +78 -0
  667. package/es/picker-group/PickerGroup.d.ts +69 -0
  668. package/es/picker-group/PickerGroup.mjs +81 -0
  669. package/es/picker-group/index.css +1 -0
  670. package/es/picker-group/index.d.ts +55 -0
  671. package/es/picker-group/index.mjs +10 -0
  672. package/es/picker-group/style/index.d.ts +1 -0
  673. package/es/picker-group/style/index.mjs +9 -0
  674. package/es/picker-group/types.d.ts +3 -0
  675. package/es/picker-group/types.mjs +0 -0
  676. package/es/popover/Popover.d.ts +177 -0
  677. package/es/popover/Popover.mjs +197 -0
  678. package/es/popover/index.css +1 -1
  679. package/es/popover/index.d.ts +130 -0
  680. package/es/popover/index.mjs +10 -0
  681. package/es/popover/style/index.d.ts +1 -0
  682. package/es/popover/style/index.mjs +6 -0
  683. package/es/popover/types.d.ts +27 -0
  684. package/es/popover/types.mjs +0 -0
  685. package/es/popup/Popup.d.ts +169 -0
  686. package/es/popup/Popup.mjs +220 -0
  687. package/es/popup/index.css +1 -1
  688. package/es/popup/index.d.ts +127 -0
  689. package/es/popup/index.mjs +10 -0
  690. package/es/popup/shared.d.ts +30 -0
  691. package/es/popup/shared.mjs +34 -0
  692. package/es/popup/style/index.d.ts +1 -0
  693. package/es/popup/style/index.mjs +5 -0
  694. package/es/popup/types.d.ts +17 -0
  695. package/es/popup/types.mjs +0 -0
  696. package/es/progress/Progress.d.ts +61 -0
  697. package/es/progress/Progress.mjs +76 -0
  698. package/es/progress/index.css +1 -1
  699. package/es/progress/index.d.ts +49 -0
  700. package/es/progress/index.mjs +10 -0
  701. package/es/progress/style/index.d.ts +1 -0
  702. package/es/progress/style/index.mjs +2 -0
  703. package/es/progress/types.d.ts +14 -0
  704. package/es/progress/types.mjs +0 -0
  705. package/es/pull-refresh/PullRefresh.d.ts +75 -0
  706. package/es/pull-refresh/PullRefresh.mjs +193 -0
  707. package/es/pull-refresh/index.css +1 -1
  708. package/es/pull-refresh/index.d.ts +60 -0
  709. package/es/pull-refresh/index.mjs +10 -0
  710. package/es/pull-refresh/style/index.d.ts +1 -0
  711. package/es/pull-refresh/style/index.mjs +3 -0
  712. package/es/pull-refresh/types.d.ts +6 -0
  713. package/es/pull-refresh/types.mjs +0 -0
  714. package/es/radio/Radio.d.ts +43 -0
  715. package/es/radio/Radio.mjs +44 -0
  716. package/es/radio/index.css +1 -1
  717. package/es/radio/index.d.ts +35 -0
  718. package/es/radio/index.mjs +10 -0
  719. package/es/radio/style/index.d.ts +1 -0
  720. package/es/radio/style/index.mjs +6 -0
  721. package/es/radio/types.d.ts +12 -0
  722. package/es/radio/types.mjs +0 -0
  723. package/es/radio-group/RadioGroup.d.ts +39 -0
  724. package/es/radio-group/RadioGroup.mjs +45 -0
  725. package/es/radio-group/index.css +1 -1
  726. package/es/radio-group/index.d.ts +28 -0
  727. package/es/radio-group/index.mjs +10 -0
  728. package/es/radio-group/style/index.d.ts +1 -0
  729. package/es/radio-group/style/index.mjs +2 -0
  730. package/es/rate/Rate.d.ts +111 -0
  731. package/es/rate/Rate.mjs +224 -0
  732. package/es/rate/index.css +1 -1
  733. package/es/rate/index.d.ts +85 -0
  734. package/es/rate/index.mjs +10 -0
  735. package/es/rate/style/index.d.ts +1 -0
  736. package/es/rate/style/index.mjs +4 -0
  737. package/es/rate/types.d.ts +7 -0
  738. package/es/rate/types.mjs +0 -0
  739. package/es/rolling-text/RollingText.d.ts +104 -0
  740. package/es/rolling-text/RollingText.mjs +94 -0
  741. package/es/rolling-text/RollingTextItem.d.ts +67 -0
  742. package/es/rolling-text/RollingTextItem.mjs +46 -0
  743. package/es/rolling-text/index.css +1 -0
  744. package/es/rolling-text/index.d.ts +79 -0
  745. package/es/rolling-text/index.mjs +10 -0
  746. package/es/rolling-text/style/index.d.ts +1 -0
  747. package/es/rolling-text/style/index.mjs +2 -0
  748. package/es/rolling-text/types.d.ts +17 -0
  749. package/es/rolling-text/types.mjs +0 -0
  750. package/es/row/Row.d.ts +68 -0
  751. package/es/row/Row.mjs +121 -0
  752. package/es/row/index.css +1 -1
  753. package/es/row/index.d.ts +43 -0
  754. package/es/row/index.mjs +10 -0
  755. package/es/row/style/index.d.ts +1 -0
  756. package/es/row/style/index.mjs +2 -0
  757. package/es/search/Search.d.ts +234 -0
  758. package/es/search/Search.mjs +121 -0
  759. package/es/search/index.css +1 -1
  760. package/es/search/index.d.ts +171 -0
  761. package/es/search/index.mjs +10 -0
  762. package/es/search/style/index.d.ts +1 -0
  763. package/es/search/style/index.mjs +6 -0
  764. package/es/search/types.d.ts +21 -0
  765. package/es/search/types.mjs +0 -0
  766. package/es/share-sheet/ShareSheet.d.ts +162 -0
  767. package/es/share-sheet/ShareSheet.mjs +123 -0
  768. package/es/share-sheet/index.css +1 -1
  769. package/es/share-sheet/index.d.ts +115 -0
  770. package/es/share-sheet/index.mjs +10 -0
  771. package/es/share-sheet/style/index.d.ts +1 -0
  772. package/es/share-sheet/style/index.mjs +6 -0
  773. package/es/share-sheet/types.d.ts +17 -0
  774. package/es/share-sheet/types.mjs +0 -0
  775. package/es/sidebar/Sidebar.d.ts +30 -0
  776. package/es/sidebar/Sidebar.mjs +44 -0
  777. package/es/sidebar/index.css +1 -1
  778. package/es/sidebar/index.d.ts +25 -0
  779. package/es/sidebar/index.mjs +10 -0
  780. package/es/sidebar/style/index.d.ts +1 -0
  781. package/es/sidebar/style/index.mjs +2 -0
  782. package/es/sidebar/types.d.ts +3 -0
  783. package/es/sidebar/types.mjs +0 -0
  784. package/es/sidebar-item/SidebarItem.d.ts +42 -0
  785. package/es/sidebar-item/SidebarItem.mjs +72 -0
  786. package/es/sidebar-item/index.css +1 -1
  787. package/es/sidebar-item/index.d.ts +36 -0
  788. package/es/sidebar-item/index.mjs +10 -0
  789. package/es/sidebar-item/style/index.d.ts +1 -0
  790. package/es/sidebar-item/style/index.mjs +4 -0
  791. package/es/sidebar-item/types.d.ts +15 -0
  792. package/es/sidebar-item/types.mjs +0 -0
  793. package/es/signature/Signature.d.ts +76 -0
  794. package/es/signature/Signature.mjs +160 -0
  795. package/es/signature/index.css +1 -0
  796. package/es/signature/index.d.ts +60 -0
  797. package/es/signature/index.mjs +8 -0
  798. package/es/signature/style/index.d.ts +1 -0
  799. package/es/signature/style/index.mjs +6 -0
  800. package/es/signature/types.d.ts +14 -0
  801. package/es/signature/types.mjs +0 -0
  802. package/es/skeleton/Skeleton.d.ts +96 -0
  803. package/es/skeleton/Skeleton.mjs +89 -0
  804. package/es/skeleton/index.css +1 -1
  805. package/es/skeleton/index.d.ts +73 -0
  806. package/es/skeleton/index.mjs +10 -0
  807. package/es/skeleton/style/index.d.ts +1 -0
  808. package/es/skeleton/style/index.mjs +5 -0
  809. package/es/skeleton/types.d.ts +11 -0
  810. package/es/skeleton/types.mjs +0 -0
  811. package/es/skeleton-avatar/SkeletonAvatar.d.ts +26 -0
  812. package/es/skeleton-avatar/SkeletonAvatar.mjs +21 -0
  813. package/es/skeleton-avatar/index.css +1 -0
  814. package/es/skeleton-avatar/index.d.ts +23 -0
  815. package/es/skeleton-avatar/index.mjs +10 -0
  816. package/es/skeleton-avatar/style/index.d.ts +1 -0
  817. package/es/skeleton-avatar/style/index.mjs +2 -0
  818. package/es/skeleton-image/SkeletonImage.d.ts +26 -0
  819. package/es/skeleton-image/SkeletonImage.mjs +25 -0
  820. package/es/skeleton-image/index.css +1 -0
  821. package/es/skeleton-image/index.d.ts +23 -0
  822. package/es/skeleton-image/index.mjs +10 -0
  823. package/es/skeleton-image/style/index.d.ts +1 -0
  824. package/es/skeleton-image/style/index.mjs +4 -0
  825. package/es/skeleton-paragraph/SkeletonParagraph.d.ts +27 -0
  826. package/es/skeleton-paragraph/SkeletonParagraph.mjs +30 -0
  827. package/es/skeleton-paragraph/index.css +1 -0
  828. package/es/skeleton-paragraph/index.d.ts +24 -0
  829. package/es/skeleton-paragraph/index.mjs +11 -0
  830. package/es/skeleton-paragraph/style/index.d.ts +1 -0
  831. package/es/skeleton-paragraph/style/index.mjs +2 -0
  832. package/es/skeleton-title/SkeletonTitle.d.ts +16 -0
  833. package/es/skeleton-title/SkeletonTitle.mjs +25 -0
  834. package/es/skeleton-title/index.css +1 -0
  835. package/es/skeleton-title/index.d.ts +17 -0
  836. package/es/skeleton-title/index.mjs +10 -0
  837. package/es/skeleton-title/style/index.d.ts +1 -0
  838. package/es/skeleton-title/style/index.mjs +2 -0
  839. package/es/slider/Slider.d.ts +100 -0
  840. package/es/slider/Slider.mjs +286 -0
  841. package/es/slider/index.css +1 -1
  842. package/es/slider/index.d.ts +77 -0
  843. package/es/slider/index.mjs +10 -0
  844. package/es/slider/style/index.d.ts +1 -0
  845. package/es/slider/style/index.mjs +2 -0
  846. package/es/slider/types.d.ts +11 -0
  847. package/es/slider/types.mjs +0 -0
  848. package/es/space/Space.d.ts +48 -0
  849. package/es/space/Space.mjs +87 -0
  850. package/es/space/index.css +1 -0
  851. package/es/space/index.d.ts +38 -0
  852. package/es/space/index.mjs +10 -0
  853. package/es/space/style/index.d.ts +1 -0
  854. package/es/space/style/index.mjs +2 -0
  855. package/es/step/Step.d.ts +2 -0
  856. package/es/step/Step.mjs +117 -0
  857. package/es/step/index.css +1 -1
  858. package/es/step/index.d.ts +8 -0
  859. package/es/step/index.mjs +8 -0
  860. package/es/step/style/index.d.ts +1 -0
  861. package/es/step/style/index.mjs +5 -0
  862. package/es/step/types.d.ts +13 -0
  863. package/es/step/types.mjs +0 -0
  864. package/es/stepper/Stepper.d.ts +194 -0
  865. package/es/stepper/Stepper.mjs +248 -0
  866. package/es/stepper/index.css +1 -1
  867. package/es/stepper/index.d.ts +143 -0
  868. package/es/stepper/index.mjs +10 -0
  869. package/es/stepper/style/index.d.ts +1 -0
  870. package/es/stepper/style/index.mjs +2 -0
  871. package/es/stepper/types.d.ts +15 -0
  872. package/es/stepper/types.mjs +0 -0
  873. package/es/steps/Steps.d.ts +71 -0
  874. package/es/steps/Steps.mjs +46 -0
  875. package/es/steps/index.css +1 -1
  876. package/es/steps/index.d.ts +52 -0
  877. package/es/steps/index.mjs +10 -0
  878. package/es/steps/style/index.d.ts +1 -0
  879. package/es/steps/style/index.mjs +2 -0
  880. package/es/steps/types.d.ts +3 -0
  881. package/es/steps/types.mjs +0 -0
  882. package/es/sticky/Sticky.d.ts +58 -0
  883. package/es/sticky/Sticky.mjs +138 -0
  884. package/es/sticky/index.css +1 -1
  885. package/es/sticky/index.d.ts +47 -0
  886. package/es/sticky/index.mjs +10 -0
  887. package/es/sticky/style/index.d.ts +1 -0
  888. package/es/sticky/style/index.mjs +2 -0
  889. package/es/sticky/types.d.ts +3 -0
  890. package/es/sticky/types.mjs +0 -0
  891. package/es/style/animation.css +1 -1
  892. package/es/style/base.css +1 -1
  893. package/es/style/css-variables.css +1 -0
  894. package/es/style/normalize.css +1 -1
  895. package/es/submit-bar/SubmitBar.d.ts +101 -0
  896. package/es/submit-bar/SubmitBar.mjs +115 -0
  897. package/es/submit-bar/index.css +1 -1
  898. package/es/submit-bar/index.d.ts +76 -0
  899. package/es/submit-bar/index.mjs +10 -0
  900. package/es/submit-bar/style/index.d.ts +1 -0
  901. package/es/submit-bar/style/index.mjs +6 -0
  902. package/es/submit-bar/types.d.ts +20 -0
  903. package/es/submit-bar/types.mjs +0 -0
  904. package/es/swipe/Swipe.d.ts +123 -0
  905. package/es/swipe/Swipe.mjs +375 -0
  906. package/es/swipe/index.css +1 -1
  907. package/es/swipe/index.d.ts +93 -0
  908. package/es/swipe/index.mjs +10 -0
  909. package/es/swipe/style/index.d.ts +1 -0
  910. package/es/swipe/style/index.mjs +2 -0
  911. package/es/swipe/types.d.ts +39 -0
  912. package/es/swipe/types.mjs +0 -0
  913. package/es/swipe-cell/SwipeCell.d.ts +44 -0
  914. package/es/swipe-cell/SwipeCell.mjs +174 -0
  915. package/es/swipe-cell/index.css +1 -1
  916. package/es/swipe-cell/index.d.ts +39 -0
  917. package/es/swipe-cell/index.mjs +10 -0
  918. package/es/swipe-cell/style/index.d.ts +1 -0
  919. package/es/swipe-cell/style/index.mjs +2 -0
  920. package/es/swipe-cell/types.d.ts +9 -0
  921. package/es/swipe-cell/types.mjs +0 -0
  922. package/es/swipe-item/SwipeItem.d.ts +2 -0
  923. package/es/swipe-item/SwipeItem.mjs +81 -0
  924. package/es/swipe-item/index.css +1 -1
  925. package/es/swipe-item/index.d.ts +7 -0
  926. package/es/swipe-item/index.mjs +8 -0
  927. package/es/swipe-item/style/index.d.ts +1 -0
  928. package/es/swipe-item/style/index.mjs +3 -0
  929. package/es/switch/Switch.d.ts +58 -0
  930. package/es/switch/Switch.mjs +85 -0
  931. package/es/switch/index.css +1 -1
  932. package/es/switch/index.d.ts +48 -0
  933. package/es/switch/index.mjs +10 -0
  934. package/es/switch/style/index.d.ts +1 -0
  935. package/es/switch/style/index.mjs +3 -0
  936. package/es/switch/types.d.ts +12 -0
  937. package/es/switch/types.mjs +0 -0
  938. package/es/tab/Tab.d.ts +58 -0
  939. package/es/tab/Tab.mjs +154 -0
  940. package/es/tab/TabTitle.d.ts +44 -0
  941. package/es/tab/TabTitle.mjs +90 -0
  942. package/es/tab/index.css +1 -1
  943. package/es/tab/index.d.ts +46 -0
  944. package/es/tab/index.mjs +10 -0
  945. package/es/tab/style/index.d.ts +1 -0
  946. package/es/tab/style/index.mjs +7 -0
  947. package/es/tabbar/Tabbar.d.ts +90 -0
  948. package/es/tabbar/Tabbar.mjs +84 -0
  949. package/es/tabbar/index.css +1 -1
  950. package/es/tabbar/index.d.ts +66 -0
  951. package/es/tabbar/index.mjs +10 -0
  952. package/es/tabbar/style/index.d.ts +1 -0
  953. package/es/tabbar/style/index.mjs +2 -0
  954. package/es/tabbar/types.d.ts +5 -0
  955. package/es/tabbar/types.mjs +0 -0
  956. package/es/tabbar-item/TabbarItem.d.ts +44 -0
  957. package/es/tabbar-item/TabbarItem.mjs +120 -0
  958. package/es/tabbar-item/index.css +1 -1
  959. package/es/tabbar-item/index.d.ts +37 -0
  960. package/es/tabbar-item/index.mjs +10 -0
  961. package/es/tabbar-item/style/index.d.ts +1 -0
  962. package/es/tabbar-item/style/index.mjs +5 -0
  963. package/es/tabbar-item/types.d.ts +9 -0
  964. package/es/tabbar-item/types.mjs +0 -0
  965. package/es/tabs/Tabs.d.ts +167 -0
  966. package/es/tabs/Tabs.mjs +357 -0
  967. package/es/tabs/TabsContent.d.ts +43 -0
  968. package/es/tabs/TabsContent.mjs +67 -0
  969. package/es/tabs/index.css +1 -1
  970. package/es/tabs/index.d.ts +124 -0
  971. package/es/tabs/index.mjs +10 -0
  972. package/es/tabs/style/index.d.ts +1 -0
  973. package/es/tabs/style/index.mjs +4 -0
  974. package/es/tabs/types.d.ts +39 -0
  975. package/es/tabs/types.mjs +0 -0
  976. package/es/tabs/utils.d.ts +3 -0
  977. package/es/tabs/utils.mjs +49 -0
  978. package/es/tag/Tag.d.ts +63 -0
  979. package/es/tag/Tag.mjs +78 -0
  980. package/es/tag/index.css +1 -1
  981. package/es/tag/index.d.ts +51 -0
  982. package/es/tag/index.mjs +10 -0
  983. package/es/tag/style/index.d.ts +1 -0
  984. package/es/tag/style/index.mjs +4 -0
  985. package/es/tag/types.d.ts +20 -0
  986. package/es/tag/types.mjs +0 -0
  987. package/es/text-ellipsis/TextEllipsis.d.ts +89 -0
  988. package/es/text-ellipsis/TextEllipsis.mjs +167 -0
  989. package/es/text-ellipsis/index.css +1 -0
  990. package/es/text-ellipsis/index.d.ts +69 -0
  991. package/es/text-ellipsis/index.mjs +10 -0
  992. package/es/text-ellipsis/style/index.d.ts +1 -0
  993. package/es/text-ellipsis/style/index.mjs +2 -0
  994. package/es/text-ellipsis/types.d.ts +9 -0
  995. package/es/text-ellipsis/types.mjs +0 -0
  996. package/es/time-picker/TimePicker.d.ts +246 -0
  997. package/es/time-picker/TimePicker.mjs +138 -0
  998. package/es/time-picker/index.d.ts +175 -0
  999. package/es/time-picker/index.mjs +10 -0
  1000. package/es/time-picker/style/index.d.ts +1 -0
  1001. package/es/time-picker/style/index.mjs +10 -0
  1002. package/es/toast/Toast.d.ts +118 -0
  1003. package/es/toast/Toast.mjs +127 -0
  1004. package/es/toast/function-call.d.ts +36 -0
  1005. package/es/toast/function-call.mjs +141 -0
  1006. package/es/toast/index.css +1 -1
  1007. package/es/toast/index.d.ts +89 -0
  1008. package/es/toast/index.mjs +28 -0
  1009. package/es/toast/lock-click.d.ts +1 -0
  1010. package/es/toast/lock-click.mjs +17 -0
  1011. package/es/toast/style/index.d.ts +1 -0
  1012. package/es/toast/style/index.mjs +7 -0
  1013. package/es/toast/types.d.ts +56 -0
  1014. package/es/toast/types.mjs +0 -0
  1015. package/es/tree-select/TreeSelect.d.ts +106 -0
  1016. package/es/tree-select/TreeSelect.mjs +103 -0
  1017. package/es/tree-select/index.css +1 -1
  1018. package/es/tree-select/index.d.ts +72 -0
  1019. package/es/tree-select/index.mjs +10 -0
  1020. package/es/tree-select/style/index.d.ts +1 -0
  1021. package/es/tree-select/style/index.mjs +6 -0
  1022. package/es/tree-select/types.d.ts +10 -0
  1023. package/es/tree-select/types.mjs +0 -0
  1024. package/es/uploader/Uploader.d.ts +217 -0
  1025. package/es/uploader/Uploader.mjs +272 -0
  1026. package/es/uploader/UploaderPreviewItem.d.ts +40 -0
  1027. package/es/uploader/UploaderPreviewItem.mjs +130 -0
  1028. package/es/uploader/index.css +1 -1
  1029. package/es/uploader/index.d.ts +159 -0
  1030. package/es/uploader/index.mjs +10 -0
  1031. package/es/uploader/style/index.d.ts +1 -0
  1032. package/es/uploader/style/index.mjs +11 -0
  1033. package/es/uploader/types.d.ts +61 -0
  1034. package/es/uploader/types.mjs +0 -0
  1035. package/es/uploader/utils.d.ts +11 -0
  1036. package/es/uploader/utils.mjs +69 -0
  1037. package/es/utils/basic.d.ts +30 -0
  1038. package/es/utils/basic.mjs +56 -0
  1039. package/es/utils/closest.d.ts +1 -0
  1040. package/es/utils/closest.mjs +8 -0
  1041. package/es/utils/constant.d.ts +14 -0
  1042. package/es/utils/constant.mjs +26 -0
  1043. package/es/utils/create.d.ts +17 -0
  1044. package/es/utils/create.mjs +52 -0
  1045. package/es/utils/deep-assign.d.ts +3 -0
  1046. package/es/utils/deep-assign.mjs +22 -0
  1047. package/es/utils/deep-clone.d.ts +1 -0
  1048. package/es/utils/deep-clone.mjs +20 -0
  1049. package/es/utils/dom.d.ts +13 -0
  1050. package/es/utils/dom.mjs +84 -0
  1051. package/es/utils/format.d.ts +13 -0
  1052. package/es/utils/format.mjs +120 -0
  1053. package/es/utils/index.d.ts +9 -0
  1054. package/es/utils/index.mjs +9 -0
  1055. package/es/utils/interceptor.d.ts +7 -0
  1056. package/es/utils/interceptor.mjs +29 -0
  1057. package/es/utils/mount-component.d.ts +14 -0
  1058. package/es/utils/mount-component.mjs +39 -0
  1059. package/es/utils/props.d.ts +31 -0
  1060. package/es/utils/props.mjs +36 -0
  1061. package/es/utils/with-install.d.ts +13 -0
  1062. package/es/utils/with-install.mjs +14 -0
  1063. package/es/vue-sfc-shim.d.ts +6 -0
  1064. package/es/vue-tsx-shim.d.ts +24 -0
  1065. package/es/watermark/Watermark.d.ts +112 -0
  1066. package/es/watermark/Watermark.mjs +132 -0
  1067. package/es/watermark/index.css +1 -0
  1068. package/es/watermark/index.d.ts +84 -0
  1069. package/es/watermark/index.mjs +10 -0
  1070. package/es/watermark/style/index.d.ts +1 -0
  1071. package/es/watermark/style/index.mjs +2 -0
  1072. package/es/watermark/types.d.ts +3 -0
  1073. package/es/watermark/types.mjs +0 -0
  1074. package/lib/action-bar/ActionBar.d.ts +27 -0
  1075. package/lib/action-bar/ActionBar.js +63 -0
  1076. package/lib/action-bar/index.css +1 -0
  1077. package/lib/action-bar/index.d.ts +25 -0
  1078. package/lib/action-bar/index.js +39 -0
  1079. package/lib/action-bar/style/index.d.ts +1 -0
  1080. package/lib/action-bar/style/index.js +2 -0
  1081. package/lib/action-bar/types.d.ts +4 -0
  1082. package/lib/action-bar/types.js +15 -0
  1083. package/lib/action-bar-button/ActionBarButton.d.ts +43 -0
  1084. package/lib/action-bar-button/ActionBarButton.js +92 -0
  1085. package/lib/action-bar-button/index.css +1 -0
  1086. package/lib/action-bar-button/index.d.ts +36 -0
  1087. package/lib/action-bar-button/index.js +39 -0
  1088. package/lib/action-bar-button/style/index.d.ts +1 -0
  1089. package/lib/action-bar-button/style/index.js +7 -0
  1090. package/lib/action-bar-button/types.d.ts +5 -0
  1091. package/lib/action-bar-button/types.js +15 -0
  1092. package/lib/action-bar-icon/ActionBarIcon.d.ts +48 -0
  1093. package/lib/action-bar-icon/ActionBarIcon.js +87 -0
  1094. package/lib/action-bar-icon/index.css +1 -0
  1095. package/lib/action-bar-icon/index.d.ts +39 -0
  1096. package/lib/action-bar-icon/index.js +39 -0
  1097. package/lib/action-bar-icon/style/index.d.ts +1 -0
  1098. package/lib/action-bar-icon/style/index.js +5 -0
  1099. package/lib/action-bar-icon/types.d.ts +10 -0
  1100. package/lib/action-bar-icon/types.js +15 -0
  1101. package/lib/action-sheet/ActionSheet.d.ts +195 -0
  1102. package/lib/action-sheet/ActionSheet.js +158 -0
  1103. package/lib/action-sheet/index.css +1 -1
  1104. package/lib/action-sheet/index.d.ts +136 -0
  1105. package/lib/action-sheet/index.js +37 -196
  1106. package/lib/action-sheet/style/index.d.ts +1 -0
  1107. package/lib/action-sheet/style/index.js +7 -7
  1108. package/lib/action-sheet/types.d.ts +23 -0
  1109. package/lib/action-sheet/types.js +15 -0
  1110. package/lib/address-edit/AddressEdit.d.ts +158 -0
  1111. package/lib/address-edit/AddressEdit.js +324 -0
  1112. package/lib/address-edit/AddressEditDetail.d.ts +32 -0
  1113. package/lib/address-edit/AddressEditDetail.js +94 -0
  1114. package/lib/address-edit/index.css +1 -1
  1115. package/lib/address-edit/index.d.ts +119 -0
  1116. package/lib/address-edit/index.js +36 -511
  1117. package/lib/address-edit/style/index.d.ts +1 -0
  1118. package/lib/address-edit/style/index.js +19 -16
  1119. package/lib/address-edit/types.d.ts +28 -0
  1120. package/lib/address-edit/types.js +15 -0
  1121. package/lib/address-list/AddressList.d.ts +95 -0
  1122. package/lib/address-list/AddressList.js +132 -0
  1123. package/lib/address-list/AddressListItem.d.ts +46 -0
  1124. package/lib/address-list/AddressListItem.js +127 -0
  1125. package/lib/address-list/index.css +1 -1
  1126. package/lib/address-list/index.d.ts +75 -0
  1127. package/lib/address-list/index.js +37 -106
  1128. package/lib/address-list/style/index.d.ts +1 -0
  1129. package/lib/address-list/style/index.js +12 -10
  1130. package/lib/address-list/types.d.ts +15 -0
  1131. package/lib/address-list/types.js +15 -0
  1132. package/lib/area/Area.d.ts +134 -0
  1133. package/lib/area/Area.js +95 -0
  1134. package/lib/area/index.d.ts +100 -0
  1135. package/lib/area/index.js +37 -329
  1136. package/lib/area/style/index.d.ts +1 -0
  1137. package/lib/area/style/index.js +10 -3
  1138. package/lib/area/types.d.ts +9 -0
  1139. package/lib/area/types.js +15 -0
  1140. package/lib/area/utils.d.ts +6 -0
  1141. package/lib/area/utils.js +111 -0
  1142. package/lib/back-top/BackTop.d.ts +53 -0
  1143. package/lib/back-top/BackTop.js +137 -0
  1144. package/lib/back-top/index.css +1 -0
  1145. package/lib/back-top/index.d.ts +44 -0
  1146. package/lib/back-top/index.js +39 -0
  1147. package/lib/back-top/style/index.d.ts +1 -0
  1148. package/lib/back-top/style/index.js +4 -0
  1149. package/lib/back-top/types.d.ts +9 -0
  1150. package/lib/back-top/types.js +15 -0
  1151. package/lib/badge/Badge.d.ts +66 -0
  1152. package/lib/badge/Badge.js +123 -0
  1153. package/lib/badge/index.css +1 -1
  1154. package/lib/badge/index.d.ts +51 -0
  1155. package/lib/badge/index.js +37 -74
  1156. package/lib/badge/style/index.d.ts +1 -0
  1157. package/lib/badge/style/index.js +2 -2
  1158. package/lib/badge/types.d.ts +12 -0
  1159. package/lib/badge/types.js +15 -0
  1160. package/lib/barrage/Barrage.d.ts +93 -0
  1161. package/lib/barrage/Barrage.js +152 -0
  1162. package/lib/barrage/index.css +1 -0
  1163. package/lib/barrage/index.d.ts +69 -0
  1164. package/lib/barrage/index.js +39 -0
  1165. package/lib/barrage/style/index.d.ts +1 -0
  1166. package/lib/barrage/style/index.js +2 -0
  1167. package/lib/barrage/types.d.ts +13 -0
  1168. package/lib/barrage/types.js +15 -0
  1169. package/lib/button/Button.d.ts +140 -0
  1170. package/lib/button/Button.js +167 -0
  1171. package/lib/button/index.css +1 -1
  1172. package/lib/button/index.d.ts +104 -0
  1173. package/lib/button/index.js +37 -196
  1174. package/lib/button/style/index.d.ts +1 -0
  1175. package/lib/button/style/index.js +5 -5
  1176. package/lib/button/types.d.ts +41 -0
  1177. package/lib/button/types.js +15 -0
  1178. package/lib/calendar/Calendar.d.ts +299 -0
  1179. package/lib/calendar/Calendar.js +478 -0
  1180. package/lib/calendar/CalendarDay.d.ts +33 -0
  1181. package/lib/calendar/CalendarDay.js +151 -0
  1182. package/lib/calendar/CalendarHeader.d.ts +36 -0
  1183. package/lib/calendar/CalendarHeader.js +132 -0
  1184. package/lib/calendar/CalendarMonth.d.ts +69 -0
  1185. package/lib/calendar/CalendarMonth.js +242 -0
  1186. package/lib/calendar/index.css +1 -1
  1187. package/lib/calendar/index.d.ts +215 -0
  1188. package/lib/calendar/index.js +37 -569
  1189. package/lib/calendar/style/index.d.ts +1 -0
  1190. package/lib/calendar/style/index.js +16 -9
  1191. package/lib/calendar/types.d.ts +60 -0
  1192. package/lib/calendar/types.js +15 -0
  1193. package/lib/calendar/utils.d.ts +18 -0
  1194. package/lib/calendar/utils.js +83 -73
  1195. package/lib/card/Card.d.ts +56 -0
  1196. package/lib/card/Card.js +145 -0
  1197. package/lib/card/index.css +1 -1
  1198. package/lib/card/index.d.ts +46 -0
  1199. package/lib/card/index.js +37 -170
  1200. package/lib/card/style/index.d.ts +1 -0
  1201. package/lib/card/style/index.js +6 -6
  1202. package/lib/card/types.d.ts +18 -0
  1203. package/lib/card/types.js +15 -0
  1204. package/lib/cascader/Cascader.d.ts +96 -0
  1205. package/lib/cascader/Cascader.js +259 -0
  1206. package/lib/cascader/index.css +1 -1
  1207. package/lib/cascader/index.d.ts +74 -0
  1208. package/lib/cascader/index.js +37 -294
  1209. package/lib/cascader/style/index.d.ts +1 -0
  1210. package/lib/cascader/style/index.js +9 -7
  1211. package/lib/cascader/types.d.ts +34 -0
  1212. package/lib/cascader/types.js +15 -0
  1213. package/lib/cell/Cell.d.ts +148 -0
  1214. package/lib/cell/Cell.js +150 -0
  1215. package/lib/cell/index.css +1 -1
  1216. package/lib/cell/index.d.ts +86 -0
  1217. package/lib/cell/index.js +38 -136
  1218. package/lib/cell/style/index.d.ts +1 -0
  1219. package/lib/cell/style/index.js +4 -4
  1220. package/lib/cell/types.d.ts +21 -0
  1221. package/lib/cell/types.js +15 -0
  1222. package/lib/cell-group/CellGroup.d.ts +29 -0
  1223. package/lib/cell-group/CellGroup.js +63 -0
  1224. package/lib/cell-group/index.css +1 -1
  1225. package/lib/cell-group/index.d.ts +27 -0
  1226. package/lib/cell-group/index.js +37 -52
  1227. package/lib/cell-group/style/index.d.ts +1 -0
  1228. package/lib/cell-group/style/index.js +2 -2
  1229. package/lib/cell-group/types.d.ts +10 -0
  1230. package/lib/cell-group/types.js +15 -0
  1231. package/lib/checkbox/Checkbox.d.ts +68 -0
  1232. package/lib/checkbox/Checkbox.js +118 -0
  1233. package/lib/checkbox/Checker.d.ts +87 -0
  1234. package/lib/checkbox/Checker.js +161 -0
  1235. package/lib/checkbox/index.css +1 -1
  1236. package/lib/checkbox/index.d.ts +54 -0
  1237. package/lib/checkbox/index.js +37 -86
  1238. package/lib/checkbox/style/index.d.ts +1 -0
  1239. package/lib/checkbox/style/index.js +5 -4
  1240. package/lib/checkbox/types.d.ts +24 -0
  1241. package/lib/checkbox/types.js +15 -0
  1242. package/lib/checkbox-group/CheckboxGroup.d.ts +57 -0
  1243. package/lib/checkbox-group/CheckboxGroup.js +91 -0
  1244. package/lib/checkbox-group/index.css +1 -1
  1245. package/lib/checkbox-group/index.d.ts +45 -0
  1246. package/lib/checkbox-group/index.js +37 -71
  1247. package/lib/checkbox-group/style/index.d.ts +1 -0
  1248. package/lib/checkbox-group/style/index.js +2 -2
  1249. package/lib/checkbox-group/types.d.ts +16 -0
  1250. package/lib/checkbox-group/types.js +15 -0
  1251. package/lib/circle/Circle.d.ts +118 -0
  1252. package/lib/circle/Circle.js +171 -0
  1253. package/lib/circle/index.css +1 -1
  1254. package/lib/circle/index.d.ts +88 -0
  1255. package/lib/circle/index.js +37 -181
  1256. package/lib/circle/style/index.d.ts +1 -0
  1257. package/lib/circle/style/index.js +2 -2
  1258. package/lib/circle/types.d.ts +9 -0
  1259. package/lib/circle/types.js +15 -0
  1260. package/lib/col/Col.d.ts +38 -0
  1261. package/lib/col/Col.js +90 -0
  1262. package/lib/col/index.css +1 -1
  1263. package/lib/col/index.d.ts +32 -0
  1264. package/lib/col/index.js +37 -61
  1265. package/lib/col/style/index.d.ts +1 -0
  1266. package/lib/col/style/index.js +3 -2
  1267. package/lib/collapse/Collapse.d.ts +55 -0
  1268. package/lib/collapse/Collapse.js +127 -0
  1269. package/lib/collapse/index.d.ts +36 -0
  1270. package/lib/collapse/index.js +37 -46
  1271. package/lib/collapse/style/index.d.ts +1 -0
  1272. package/lib/collapse/style/index.js +1 -1
  1273. package/lib/collapse-item/CollapseItem.d.ts +141 -0
  1274. package/lib/collapse-item/CollapseItem.js +155 -0
  1275. package/lib/collapse-item/index.css +1 -1
  1276. package/lib/collapse-item/index.d.ts +104 -0
  1277. package/lib/collapse-item/index.js +37 -215
  1278. package/lib/collapse-item/style/index.d.ts +1 -0
  1279. package/lib/collapse-item/style/index.js +5 -5
  1280. package/lib/collapse-item/types.d.ts +15 -0
  1281. package/lib/collapse-item/types.js +15 -0
  1282. package/lib/composables/on-popup-reopen.d.ts +3 -0
  1283. package/lib/composables/on-popup-reopen.js +35 -0
  1284. package/lib/composables/use-expose.d.ts +1 -0
  1285. package/lib/composables/use-expose.js +30 -0
  1286. package/lib/composables/use-global-z-index.d.ts +4 -0
  1287. package/lib/composables/use-global-z-index.js +28 -0
  1288. package/lib/composables/use-height.d.ts +2 -0
  1289. package/lib/composables/use-height.js +43 -0
  1290. package/lib/composables/use-id.d.ts +1 -0
  1291. package/lib/composables/use-id.js +32 -0
  1292. package/lib/composables/use-lazy-render.d.ts +2 -0
  1293. package/lib/composables/use-lazy-render.js +36 -0
  1294. package/lib/composables/use-lock-scroll.d.ts +2 -0
  1295. package/lib/composables/use-lock-scroll.js +77 -0
  1296. package/lib/composables/use-placeholder.d.ts +3 -0
  1297. package/lib/composables/use-placeholder.js +33 -0
  1298. package/lib/composables/use-refs.d.ts +2 -0
  1299. package/lib/composables/use-refs.js +39 -0
  1300. package/lib/composables/use-route.d.ts +13 -0
  1301. package/lib/composables/use-route.js +46 -0
  1302. package/lib/composables/use-scope-id.d.ts +3 -0
  1303. package/lib/composables/use-scope-id.js +28 -0
  1304. package/lib/composables/use-sync-prop-ref.d.ts +2 -0
  1305. package/lib/composables/use-sync-prop-ref.js +37 -0
  1306. package/lib/composables/use-tab-status.d.ts +3 -0
  1307. package/lib/composables/use-tab-status.js +26 -0
  1308. package/lib/composables/use-touch.d.ts +17 -0
  1309. package/lib/composables/use-touch.js +87 -0
  1310. package/lib/composables/use-visibility-change.d.ts +2 -0
  1311. package/lib/composables/use-visibility-change.js +49 -0
  1312. package/lib/config-provider/ConfigProvider.d.ts +71 -0
  1313. package/lib/config-provider/ConfigProvider.js +121 -0
  1314. package/lib/config-provider/index.d.ts +50 -0
  1315. package/lib/config-provider/index.js +39 -0
  1316. package/lib/config-provider/style/index.d.ts +1 -0
  1317. package/lib/config-provider/style/index.js +1 -0
  1318. package/lib/config-provider/types.d.ts +61 -0
  1319. package/lib/config-provider/types.js +15 -0
  1320. package/lib/contact-card/ContactCard.d.ts +47 -0
  1321. package/lib/contact-card/ContactCard.js +65 -0
  1322. package/lib/contact-card/index.css +1 -1
  1323. package/lib/contact-card/index.d.ts +39 -0
  1324. package/lib/contact-card/index.js +37 -70
  1325. package/lib/contact-card/style/index.d.ts +1 -0
  1326. package/lib/contact-card/style/index.js +5 -5
  1327. package/lib/contact-card/types.d.ts +6 -0
  1328. package/lib/contact-card/types.js +15 -0
  1329. package/lib/contact-edit/ContactEdit.d.ts +64 -0
  1330. package/lib/contact-edit/ContactEdit.js +131 -0
  1331. package/lib/contact-edit/index.css +1 -1
  1332. package/lib/contact-edit/index.d.ts +49 -0
  1333. package/lib/contact-edit/index.js +36 -207
  1334. package/lib/contact-edit/style/index.d.ts +1 -0
  1335. package/lib/contact-edit/style/index.js +9 -14
  1336. package/lib/contact-edit/types.d.ts +8 -0
  1337. package/lib/contact-edit/types.js +15 -0
  1338. package/lib/contact-list/ContactList.d.ts +32 -0
  1339. package/lib/contact-list/ContactList.js +108 -0
  1340. package/lib/contact-list/index.css +1 -1
  1341. package/lib/contact-list/index.d.ts +25 -0
  1342. package/lib/contact-list/index.js +38 -137
  1343. package/lib/contact-list/style/index.d.ts +1 -0
  1344. package/lib/contact-list/style/index.js +11 -10
  1345. package/lib/contact-list/types.d.ts +6 -0
  1346. package/lib/contact-list/types.js +15 -0
  1347. package/lib/count-down/CountDown.d.ts +55 -0
  1348. package/lib/count-down/CountDown.js +75 -0
  1349. package/lib/count-down/index.css +1 -1
  1350. package/lib/count-down/index.d.ts +46 -0
  1351. package/lib/count-down/index.js +37 -162
  1352. package/lib/count-down/style/index.d.ts +1 -0
  1353. package/lib/count-down/style/index.js +2 -2
  1354. package/lib/count-down/types.d.ts +16 -0
  1355. package/lib/count-down/types.js +15 -0
  1356. package/lib/count-down/utils.d.ts +2 -0
  1357. package/lib/count-down/utils.js +45 -65
  1358. package/lib/coupon/Coupon.d.ts +45 -0
  1359. package/lib/coupon/Coupon.js +98 -0
  1360. package/lib/coupon/index.css +1 -1
  1361. package/lib/coupon/index.d.ts +35 -0
  1362. package/lib/coupon/index.js +35 -121
  1363. package/lib/coupon/style/index.d.ts +1 -0
  1364. package/lib/coupon/style/index.js +6 -5
  1365. package/lib/coupon/types.d.ts +19 -0
  1366. package/lib/coupon/types.js +15 -0
  1367. package/lib/coupon/utils.d.ts +3 -0
  1368. package/lib/coupon/utils.js +33 -0
  1369. package/lib/coupon-cell/CouponCell.d.ts +78 -0
  1370. package/lib/coupon-cell/CouponCell.js +89 -0
  1371. package/lib/coupon-cell/index.css +1 -1
  1372. package/lib/coupon-cell/index.d.ts +60 -0
  1373. package/lib/coupon-cell/index.js +36 -89
  1374. package/lib/coupon-cell/style/index.d.ts +1 -0
  1375. package/lib/coupon-cell/style/index.js +5 -6
  1376. package/lib/coupon-cell/types.d.ts +3 -0
  1377. package/lib/coupon-cell/types.js +15 -0
  1378. package/lib/coupon-list/CouponList.d.ts +170 -0
  1379. package/lib/coupon-list/CouponList.js +215 -0
  1380. package/lib/coupon-list/index.css +1 -1
  1381. package/lib/coupon-list/index.d.ts +125 -0
  1382. package/lib/coupon-list/index.js +37 -278
  1383. package/lib/coupon-list/style/index.d.ts +1 -0
  1384. package/lib/coupon-list/style/index.js +17 -13
  1385. package/lib/coupon-list/types.d.ts +9 -0
  1386. package/lib/coupon-list/types.js +15 -0
  1387. package/lib/date-picker/DatePicker.d.ts +176 -0
  1388. package/lib/date-picker/DatePicker.js +152 -0
  1389. package/lib/date-picker/index.d.ts +127 -0
  1390. package/lib/date-picker/index.js +39 -0
  1391. package/lib/date-picker/style/index.d.ts +1 -0
  1392. package/lib/date-picker/style/index.js +10 -0
  1393. package/lib/date-picker/utils.d.ts +46 -0
  1394. package/lib/date-picker/utils.js +69 -0
  1395. package/lib/dialog/Dialog.d.ts +200 -0
  1396. package/lib/dialog/Dialog.js +218 -274
  1397. package/lib/dialog/function-call.d.ts +21 -0
  1398. package/lib/dialog/function-call.js +114 -0
  1399. package/lib/dialog/index.css +1 -1
  1400. package/lib/dialog/index.d.ts +147 -0
  1401. package/lib/dialog/index.js +42 -113
  1402. package/lib/dialog/style/index.d.ts +1 -0
  1403. package/lib/dialog/style/index.js +10 -10
  1404. package/lib/dialog/types.d.ts +53 -0
  1405. package/lib/dialog/types.js +15 -0
  1406. package/lib/divider/Divider.d.ts +44 -0
  1407. package/lib/divider/Divider.js +52 -0
  1408. package/lib/divider/index.css +1 -1
  1409. package/lib/divider/index.d.ts +37 -0
  1410. package/lib/divider/index.js +37 -48
  1411. package/lib/divider/style/index.d.ts +1 -0
  1412. package/lib/divider/style/index.js +2 -2
  1413. package/lib/divider/types.d.ts +10 -0
  1414. package/lib/divider/types.js +15 -0
  1415. package/lib/dropdown-item/DropdownItem.d.ts +59 -0
  1416. package/lib/dropdown-item/DropdownItem.js +220 -0
  1417. package/lib/dropdown-item/index.css +1 -1
  1418. package/lib/dropdown-item/index.d.ts +50 -0
  1419. package/lib/dropdown-item/index.js +37 -223
  1420. package/lib/dropdown-item/style/index.d.ts +1 -0
  1421. package/lib/dropdown-item/style/index.js +8 -7
  1422. package/lib/dropdown-item/types.d.ts +27 -0
  1423. package/lib/dropdown-item/types.js +15 -0
  1424. package/lib/dropdown-menu/DropdownMenu.d.ts +89 -0
  1425. package/lib/dropdown-menu/DropdownMenu.js +168 -0
  1426. package/lib/dropdown-menu/index.css +1 -1
  1427. package/lib/dropdown-menu/index.d.ts +68 -0
  1428. package/lib/dropdown-menu/index.js +37 -140
  1429. package/lib/dropdown-menu/style/index.d.ts +1 -0
  1430. package/lib/dropdown-menu/style/index.js +2 -2
  1431. package/lib/dropdown-menu/types.d.ts +27 -0
  1432. package/lib/dropdown-menu/types.js +15 -0
  1433. package/lib/empty/Empty.d.ts +29 -0
  1434. package/lib/empty/Empty.js +362 -0
  1435. package/lib/empty/index.css +1 -1
  1436. package/lib/empty/index.d.ts +26 -0
  1437. package/lib/empty/index.js +37 -90
  1438. package/lib/empty/style/index.d.ts +1 -0
  1439. package/lib/empty/style/index.js +2 -2
  1440. package/lib/empty/types.d.ts +10 -0
  1441. package/lib/empty/types.js +15 -0
  1442. package/lib/field/Field.d.ts +383 -0
  1443. package/lib/field/Field.js +567 -0
  1444. package/lib/field/index.css +1 -1
  1445. package/lib/field/index.d.ts +238 -0
  1446. package/lib/field/index.js +37 -650
  1447. package/lib/field/style/index.d.ts +1 -0
  1448. package/lib/field/style/index.js +5 -5
  1449. package/lib/field/types.d.ts +65 -0
  1450. package/lib/field/types.js +15 -0
  1451. package/lib/field/utils.d.ts +15 -0
  1452. package/lib/field/utils.js +116 -0
  1453. package/lib/floating-bubble/FloatingBubble.d.ts +81 -0
  1454. package/lib/floating-bubble/FloatingBubble.js +203 -0
  1455. package/lib/floating-bubble/index.css +1 -0
  1456. package/lib/floating-bubble/index.d.ts +63 -0
  1457. package/lib/floating-bubble/index.js +39 -0
  1458. package/lib/floating-bubble/style/index.d.ts +1 -0
  1459. package/lib/floating-bubble/style/index.js +4 -0
  1460. package/lib/floating-bubble/types.d.ts +20 -0
  1461. package/lib/floating-bubble/types.js +15 -0
  1462. package/lib/floating-panel/FloatingPanel.d.ts +81 -0
  1463. package/lib/floating-panel/FloatingPanel.js +153 -0
  1464. package/lib/floating-panel/index.css +1 -0
  1465. package/lib/floating-panel/index.d.ts +64 -0
  1466. package/lib/floating-panel/index.js +39 -0
  1467. package/lib/floating-panel/style/index.d.ts +1 -0
  1468. package/lib/floating-panel/style/index.js +2 -0
  1469. package/lib/floating-panel/types.d.ts +9 -0
  1470. package/lib/floating-panel/types.js +15 -0
  1471. package/lib/form/Form.d.ts +94 -0
  1472. package/lib/form/Form.js +187 -0
  1473. package/lib/form/index.d.ts +74 -0
  1474. package/lib/form/index.js +37 -206
  1475. package/lib/form/style/index.d.ts +1 -0
  1476. package/lib/form/style/index.js +1 -1
  1477. package/lib/form/types.d.ts +15 -0
  1478. package/lib/form/types.js +15 -0
  1479. package/lib/grid/Grid.d.ts +74 -0
  1480. package/lib/grid/Grid.js +66 -0
  1481. package/lib/grid/index.css +1 -1
  1482. package/lib/grid/index.d.ts +54 -0
  1483. package/lib/grid/index.js +37 -57
  1484. package/lib/grid/style/index.d.ts +1 -0
  1485. package/lib/grid/style/index.js +2 -2
  1486. package/lib/grid-item/GridItem.d.ts +45 -0
  1487. package/lib/grid-item/GridItem.js +164 -0
  1488. package/lib/grid-item/index.css +1 -1
  1489. package/lib/grid-item/index.d.ts +37 -0
  1490. package/lib/grid-item/index.js +37 -176
  1491. package/lib/grid-item/style/index.d.ts +1 -0
  1492. package/lib/grid-item/style/index.js +5 -4
  1493. package/lib/grid-item/types.d.ts +8 -0
  1494. package/lib/grid-item/types.js +15 -0
  1495. package/lib/highlight/Highlight.d.ts +96 -0
  1496. package/lib/highlight/Highlight.js +147 -0
  1497. package/lib/highlight/index.css +1 -0
  1498. package/lib/highlight/index.d.ts +73 -0
  1499. package/lib/highlight/index.js +39 -0
  1500. package/lib/highlight/style/index.d.ts +1 -0
  1501. package/lib/highlight/style/index.js +2 -0
  1502. package/lib/highlight/types.d.ts +3 -0
  1503. package/lib/highlight/types.js +15 -0
  1504. package/lib/icon/Icon.d.ts +45 -0
  1505. package/lib/icon/Icon.js +78 -0
  1506. package/lib/icon/index.css +1 -1
  1507. package/lib/icon/index.d.ts +36 -0
  1508. package/lib/icon/index.js +36 -84
  1509. package/lib/icon/style/index.d.ts +1 -0
  1510. package/lib/icon/style/index.js +3 -3
  1511. package/lib/image/Image.d.ts +110 -0
  1512. package/lib/image/Image.js +193 -0
  1513. package/lib/image/index.css +1 -1
  1514. package/lib/image/index.d.ts +83 -0
  1515. package/lib/image/index.js +37 -197
  1516. package/lib/image/style/index.d.ts +1 -0
  1517. package/lib/image/style/index.js +4 -4
  1518. package/lib/image/types.d.ts +12 -0
  1519. package/lib/image/types.js +15 -0
  1520. package/lib/image-preview/ImagePreview.d.ts +234 -0
  1521. package/lib/image-preview/ImagePreview.js +212 -237
  1522. package/lib/image-preview/ImagePreviewItem.d.ts +91 -0
  1523. package/lib/image-preview/ImagePreviewItem.js +326 -230
  1524. package/lib/image-preview/function-call.d.ts +6 -0
  1525. package/lib/image-preview/function-call.js +96 -0
  1526. package/lib/image-preview/index.css +1 -1
  1527. package/lib/image-preview/index.d.ts +172 -0
  1528. package/lib/image-preview/index.js +38 -95
  1529. package/lib/image-preview/style/index.d.ts +1 -0
  1530. package/lib/image-preview/style/index.js +10 -10
  1531. package/lib/image-preview/types.d.ts +61 -0
  1532. package/lib/image-preview/types.js +15 -0
  1533. package/lib/index-anchor/IndexAnchor.d.ts +11 -0
  1534. package/lib/index-anchor/IndexAnchor.js +106 -0
  1535. package/lib/index-anchor/index.css +1 -1
  1536. package/lib/index-anchor/index.d.ts +14 -0
  1537. package/lib/index-anchor/index.js +37 -91
  1538. package/lib/index-anchor/style/index.d.ts +1 -0
  1539. package/lib/index-anchor/style/index.js +3 -2
  1540. package/lib/index-anchor/types.d.ts +11 -0
  1541. package/lib/index-anchor/types.js +15 -0
  1542. package/lib/index-bar/IndexBar.d.ts +64 -0
  1543. package/lib/index-bar/IndexBar.js +253 -0
  1544. package/lib/index-bar/index.css +1 -1
  1545. package/lib/index-bar/index.d.ts +50 -0
  1546. package/lib/index-bar/index.js +37 -233
  1547. package/lib/index-bar/style/index.d.ts +1 -0
  1548. package/lib/index-bar/style/index.js +2 -2
  1549. package/lib/index-bar/types.d.ts +16 -0
  1550. package/lib/index-bar/types.js +15 -0
  1551. package/lib/index.css +1 -1
  1552. package/lib/index.d.ts +109 -0
  1553. package/lib/index.js +339 -380
  1554. package/lib/lazyload/index.d.ts +3 -0
  1555. package/lib/lazyload/index.js +25 -11
  1556. package/lib/lazyload/style/index.d.ts +1 -0
  1557. package/lib/lazyload/style/index.js +1 -1
  1558. package/lib/lazyload/vue-lazyload/index.d.ts +55 -0
  1559. package/lib/lazyload/vue-lazyload/index.js +65 -0
  1560. package/lib/lazyload/vue-lazyload/lazy-component.js +70 -0
  1561. package/lib/lazyload/vue-lazyload/lazy-container.js +91 -0
  1562. package/lib/lazyload/vue-lazyload/lazy-image.js +118 -0
  1563. package/lib/lazyload/vue-lazyload/lazy.js +455 -0
  1564. package/lib/lazyload/vue-lazyload/listener.js +235 -0
  1565. package/lib/lazyload/vue-lazyload/util.d.ts +25 -0
  1566. package/lib/lazyload/vue-lazyload/util.js +180 -0
  1567. package/lib/list/List.d.ts +81 -0
  1568. package/lib/list/List.js +162 -0
  1569. package/lib/list/index.css +1 -1
  1570. package/lib/list/index.d.ts +65 -0
  1571. package/lib/list/index.js +37 -189
  1572. package/lib/list/style/index.d.ts +1 -0
  1573. package/lib/list/style/index.js +3 -3
  1574. package/lib/list/types.d.ts +13 -0
  1575. package/lib/list/types.js +15 -0
  1576. package/lib/loading/Loading.d.ts +39 -0
  1577. package/lib/loading/Loading.js +89 -0
  1578. package/lib/loading/index.css +1 -1
  1579. package/lib/loading/index.d.ts +33 -0
  1580. package/lib/loading/index.js +37 -96
  1581. package/lib/loading/style/index.d.ts +1 -0
  1582. package/lib/loading/style/index.js +2 -2
  1583. package/lib/loading/types.d.ts +7 -0
  1584. package/lib/loading/types.js +15 -0
  1585. package/lib/locale/index.d.ts +8 -0
  1586. package/lib/locale/index.js +50 -33
  1587. package/lib/locale/lang/ar-SA.d.ts +63 -0
  1588. package/lib/locale/lang/ar-SA.js +84 -0
  1589. package/lib/locale/lang/bg-BG.d.ts +65 -0
  1590. package/lib/locale/lang/bg-BG.js +94 -0
  1591. package/lib/locale/lang/bn-BD.d.ts +63 -0
  1592. package/lib/locale/lang/bn-BD.js +92 -0
  1593. package/lib/locale/lang/da-DK.d.ts +65 -0
  1594. package/lib/locale/lang/da-DK.js +86 -0
  1595. package/lib/locale/lang/de-DE-formal.d.ts +63 -0
  1596. package/lib/locale/lang/de-DE-formal.js +63 -74
  1597. package/lib/locale/lang/de-DE.d.ts +63 -0
  1598. package/lib/locale/lang/de-DE.js +63 -74
  1599. package/lib/locale/lang/el-GR.d.ts +65 -0
  1600. package/lib/locale/lang/el-GR.js +94 -0
  1601. package/lib/locale/lang/en-US.d.ts +63 -0
  1602. package/lib/locale/lang/en-US.js +63 -74
  1603. package/lib/locale/lang/eo-EO.d.ts +63 -0
  1604. package/lib/locale/lang/eo-EO.js +84 -0
  1605. package/lib/locale/lang/es-ES.d.ts +63 -0
  1606. package/lib/locale/lang/es-ES.js +63 -74
  1607. package/lib/locale/lang/fa-IR.d.ts +65 -0
  1608. package/lib/locale/lang/fa-IR.js +94 -0
  1609. package/lib/locale/lang/fr-FR.d.ts +63 -0
  1610. package/lib/locale/lang/fr-FR.js +63 -74
  1611. package/lib/locale/lang/he-IL.d.ts +65 -0
  1612. package/lib/locale/lang/he-IL.js +86 -0
  1613. package/lib/locale/lang/hi-IN.d.ts +63 -0
  1614. package/lib/locale/lang/hi-IN.js +92 -0
  1615. package/lib/locale/lang/id-ID.d.ts +63 -0
  1616. package/lib/locale/lang/id-ID.js +84 -0
  1617. package/lib/locale/lang/is-IS.d.ts +63 -0
  1618. package/lib/locale/lang/is-IS.js +92 -0
  1619. package/lib/locale/lang/it-IT.d.ts +63 -0
  1620. package/lib/locale/lang/it-IT.js +84 -0
  1621. package/lib/locale/lang/ja-JP.d.ts +63 -0
  1622. package/lib/locale/lang/ja-JP.js +63 -75
  1623. package/lib/locale/lang/kk-KZ.d.ts +63 -0
  1624. package/lib/locale/lang/kk-KZ.js +100 -0
  1625. package/lib/locale/lang/km-KH.d.ts +63 -0
  1626. package/lib/locale/lang/km-KH.js +84 -0
  1627. package/lib/locale/lang/ko-KR.d.ts +63 -0
  1628. package/lib/locale/lang/ko-KR.js +92 -0
  1629. package/lib/locale/lang/la-LA.d.ts +63 -0
  1630. package/lib/locale/lang/la-LA.js +84 -0
  1631. package/lib/locale/lang/mm-MN.d.ts +63 -0
  1632. package/lib/locale/lang/mm-MN.js +84 -0
  1633. package/lib/locale/lang/nb-NO.d.ts +63 -0
  1634. package/lib/locale/lang/nb-NO.js +63 -74
  1635. package/lib/locale/lang/nl-NL.d.ts +63 -0
  1636. package/lib/locale/lang/nl-NL.js +84 -0
  1637. package/lib/locale/lang/pt-BR.d.ts +63 -0
  1638. package/lib/locale/lang/pt-BR.js +84 -0
  1639. package/lib/locale/lang/ro-RO.d.ts +63 -0
  1640. package/lib/locale/lang/ro-RO.js +63 -74
  1641. package/lib/locale/lang/ru-RU.d.ts +63 -0
  1642. package/lib/locale/lang/ru-RU.js +84 -0
  1643. package/lib/locale/lang/sr-RS.d.ts +63 -0
  1644. package/lib/locale/lang/sr-RS.js +92 -0
  1645. package/lib/locale/lang/sv-SE.d.ts +63 -0
  1646. package/lib/locale/lang/sv-SE.js +84 -0
  1647. package/lib/locale/lang/th-TH.d.ts +63 -0
  1648. package/lib/locale/lang/th-TH.js +63 -75
  1649. package/lib/locale/lang/tr-TR.d.ts +63 -0
  1650. package/lib/locale/lang/tr-TR.js +63 -74
  1651. package/lib/locale/lang/uk-UA.d.ts +63 -0
  1652. package/lib/locale/lang/uk-UA.js +84 -0
  1653. package/lib/locale/lang/vi-VN.d.ts +63 -0
  1654. package/lib/locale/lang/vi-VN.js +71 -75
  1655. package/lib/locale/lang/zh-CN.d.ts +63 -0
  1656. package/lib/locale/lang/zh-CN.js +63 -75
  1657. package/lib/locale/lang/zh-HK.d.ts +63 -0
  1658. package/lib/locale/lang/zh-HK.js +63 -75
  1659. package/lib/locale/lang/zh-TW.d.ts +63 -0
  1660. package/lib/locale/lang/zh-TW.js +63 -75
  1661. package/lib/locale/style/index.d.ts +1 -0
  1662. package/lib/locale/style/index.js +1 -1
  1663. package/lib/nav-bar/NavBar.d.ts +74 -0
  1664. package/lib/nav-bar/NavBar.js +124 -0
  1665. package/lib/nav-bar/index.css +1 -1
  1666. package/lib/nav-bar/index.d.ts +60 -0
  1667. package/lib/nav-bar/index.js +37 -141
  1668. package/lib/nav-bar/style/index.d.ts +1 -0
  1669. package/lib/nav-bar/style/index.js +4 -4
  1670. package/lib/nav-bar/types.d.ts +10 -0
  1671. package/lib/nav-bar/types.js +15 -0
  1672. package/lib/notice-bar/NoticeBar.d.ts +71 -0
  1673. package/lib/notice-bar/NoticeBar.js +184 -0
  1674. package/lib/notice-bar/index.css +1 -1
  1675. package/lib/notice-bar/index.d.ts +57 -0
  1676. package/lib/notice-bar/index.js +37 -233
  1677. package/lib/notice-bar/style/index.d.ts +1 -0
  1678. package/lib/notice-bar/style/index.js +4 -4
  1679. package/lib/notice-bar/types.d.ts +18 -0
  1680. package/lib/notice-bar/types.js +15 -0
  1681. package/lib/notify/Notify.d.ts +134 -0
  1682. package/lib/notify/Notify.js +57 -56
  1683. package/lib/notify/function-call.d.ts +18 -0
  1684. package/lib/notify/function-call.js +97 -0
  1685. package/lib/notify/index.css +1 -1
  1686. package/lib/notify/index.d.ts +100 -0
  1687. package/lib/notify/index.js +42 -102
  1688. package/lib/notify/style/index.d.ts +1 -0
  1689. package/lib/notify/style/index.js +6 -6
  1690. package/lib/notify/types.d.ts +30 -0
  1691. package/lib/notify/types.js +15 -0
  1692. package/lib/number-keyboard/NumberKeyboard.d.ts +162 -0
  1693. package/lib/number-keyboard/NumberKeyboard.js +264 -0
  1694. package/lib/number-keyboard/NumberKeyboardKey.d.ts +24 -0
  1695. package/lib/number-keyboard/NumberKeyboardKey.js +112 -0
  1696. package/lib/number-keyboard/index.css +1 -1
  1697. package/lib/number-keyboard/index.d.ts +121 -0
  1698. package/lib/number-keyboard/index.js +37 -283
  1699. package/lib/number-keyboard/style/index.d.ts +1 -0
  1700. package/lib/number-keyboard/style/index.js +3 -3
  1701. package/lib/number-keyboard/types.d.ts +17 -0
  1702. package/lib/number-keyboard/types.js +15 -0
  1703. package/lib/overlay/Overlay.d.ts +54 -0
  1704. package/lib/overlay/Overlay.js +84 -0
  1705. package/lib/overlay/index.css +1 -1
  1706. package/lib/overlay/index.d.ts +44 -0
  1707. package/lib/overlay/index.js +37 -65
  1708. package/lib/overlay/style/index.d.ts +1 -0
  1709. package/lib/overlay/style/index.js +2 -2
  1710. package/lib/overlay/types.d.ts +4 -0
  1711. package/lib/overlay/types.js +15 -0
  1712. package/lib/pagination/Pagination.d.ts +127 -0
  1713. package/lib/pagination/Pagination.js +173 -0
  1714. package/lib/pagination/index.css +1 -1
  1715. package/lib/pagination/index.d.ts +95 -0
  1716. package/lib/pagination/index.js +37 -174
  1717. package/lib/pagination/style/index.d.ts +1 -0
  1718. package/lib/pagination/style/index.js +2 -2
  1719. package/lib/pagination/types.d.ts +11 -0
  1720. package/lib/pagination/types.js +15 -0
  1721. package/lib/password-input/PasswordInput.d.ts +63 -0
  1722. package/lib/password-input/PasswordInput.js +97 -0
  1723. package/lib/password-input/index.css +1 -1
  1724. package/lib/password-input/index.d.ts +51 -0
  1725. package/lib/password-input/index.js +37 -95
  1726. package/lib/password-input/style/index.d.ts +1 -0
  1727. package/lib/password-input/style/index.js +2 -2
  1728. package/lib/password-input/types.d.ts +17 -0
  1729. package/lib/password-input/types.js +15 -0
  1730. package/lib/picker/Picker.d.ts +164 -0
  1731. package/lib/picker/Picker.js +243 -0
  1732. package/lib/picker/PickerColumn.d.ts +61 -0
  1733. package/lib/picker/PickerColumn.js +195 -338
  1734. package/lib/picker/PickerToolbar.d.ts +21 -0
  1735. package/lib/picker/PickerToolbar.js +85 -0
  1736. package/lib/picker/index.css +1 -1
  1737. package/lib/picker/index.d.ts +105 -0
  1738. package/lib/picker/index.js +37 -397
  1739. package/lib/picker/style/index.d.ts +1 -0
  1740. package/lib/picker/style/index.js +10 -3
  1741. package/lib/picker/types.d.ts +62 -0
  1742. package/lib/picker/types.js +15 -0
  1743. package/lib/picker/utils.d.ts +13 -0
  1744. package/lib/picker/utils.js +97 -0
  1745. package/lib/picker-group/PickerGroup.d.ts +69 -0
  1746. package/lib/picker-group/PickerGroup.js +110 -0
  1747. package/lib/picker-group/index.css +1 -0
  1748. package/lib/picker-group/index.d.ts +55 -0
  1749. package/lib/picker-group/index.js +39 -0
  1750. package/lib/picker-group/style/index.d.ts +1 -0
  1751. package/lib/picker-group/style/index.js +9 -0
  1752. package/lib/picker-group/types.d.ts +3 -0
  1753. package/lib/picker-group/types.js +15 -0
  1754. package/lib/popover/Popover.d.ts +177 -0
  1755. package/lib/popover/Popover.js +216 -0
  1756. package/lib/popover/index.css +1 -1
  1757. package/lib/popover/index.d.ts +130 -0
  1758. package/lib/popover/index.js +37 -236
  1759. package/lib/popover/style/index.d.ts +1 -0
  1760. package/lib/popover/style/index.js +6 -6
  1761. package/lib/popover/types.d.ts +27 -0
  1762. package/lib/popover/types.js +15 -0
  1763. package/lib/popup/Popup.d.ts +169 -0
  1764. package/lib/popup/Popup.js +239 -0
  1765. package/lib/popup/index.css +1 -1
  1766. package/lib/popup/index.d.ts +127 -0
  1767. package/lib/popup/index.js +37 -120
  1768. package/lib/popup/shared.d.ts +30 -0
  1769. package/lib/popup/shared.js +53 -0
  1770. package/lib/popup/style/index.d.ts +1 -0
  1771. package/lib/popup/style/index.js +5 -5
  1772. package/lib/popup/types.d.ts +17 -0
  1773. package/lib/popup/types.js +15 -0
  1774. package/lib/progress/Progress.d.ts +61 -0
  1775. package/lib/progress/Progress.js +95 -0
  1776. package/lib/progress/index.css +1 -1
  1777. package/lib/progress/index.d.ts +49 -0
  1778. package/lib/progress/index.js +37 -95
  1779. package/lib/progress/style/index.d.ts +1 -0
  1780. package/lib/progress/style/index.js +2 -2
  1781. package/lib/progress/types.d.ts +14 -0
  1782. package/lib/progress/types.js +15 -0
  1783. package/lib/pull-refresh/PullRefresh.d.ts +75 -0
  1784. package/lib/pull-refresh/PullRefresh.js +212 -0
  1785. package/lib/pull-refresh/index.css +1 -1
  1786. package/lib/pull-refresh/index.d.ts +60 -0
  1787. package/lib/pull-refresh/index.js +37 -226
  1788. package/lib/pull-refresh/style/index.d.ts +1 -0
  1789. package/lib/pull-refresh/style/index.js +3 -3
  1790. package/lib/pull-refresh/types.d.ts +6 -0
  1791. package/lib/pull-refresh/types.js +15 -0
  1792. package/lib/radio/Radio.d.ts +43 -0
  1793. package/lib/radio/Radio.js +73 -0
  1794. package/lib/radio/index.css +1 -1
  1795. package/lib/radio/index.d.ts +35 -0
  1796. package/lib/radio/index.js +37 -38
  1797. package/lib/radio/style/index.d.ts +1 -0
  1798. package/lib/radio/style/index.js +6 -4
  1799. package/lib/radio/types.d.ts +12 -0
  1800. package/lib/radio/types.js +15 -0
  1801. package/lib/radio-group/RadioGroup.d.ts +39 -0
  1802. package/lib/radio-group/RadioGroup.js +64 -0
  1803. package/lib/radio-group/index.css +1 -1
  1804. package/lib/radio-group/index.d.ts +28 -0
  1805. package/lib/radio-group/index.js +37 -39
  1806. package/lib/radio-group/style/index.d.ts +1 -0
  1807. package/lib/radio-group/style/index.js +2 -2
  1808. package/lib/rate/Rate.d.ts +111 -0
  1809. package/lib/rate/Rate.js +243 -0
  1810. package/lib/rate/index.css +1 -1
  1811. package/lib/rate/index.d.ts +85 -0
  1812. package/lib/rate/index.js +37 -238
  1813. package/lib/rate/style/index.d.ts +1 -0
  1814. package/lib/rate/style/index.js +4 -4
  1815. package/lib/rate/types.d.ts +7 -0
  1816. package/lib/rate/types.js +15 -0
  1817. package/lib/rolling-text/RollingText.d.ts +104 -0
  1818. package/lib/rolling-text/RollingText.js +123 -0
  1819. package/lib/rolling-text/RollingTextItem.d.ts +67 -0
  1820. package/lib/rolling-text/RollingTextItem.js +65 -0
  1821. package/lib/rolling-text/index.css +1 -0
  1822. package/lib/rolling-text/index.d.ts +79 -0
  1823. package/lib/rolling-text/index.js +39 -0
  1824. package/lib/rolling-text/style/index.d.ts +1 -0
  1825. package/lib/rolling-text/style/index.js +2 -0
  1826. package/lib/rolling-text/types.d.ts +17 -0
  1827. package/lib/rolling-text/types.js +15 -0
  1828. package/lib/row/Row.d.ts +68 -0
  1829. package/lib/row/Row.js +140 -0
  1830. package/lib/row/index.css +1 -1
  1831. package/lib/row/index.d.ts +43 -0
  1832. package/lib/row/index.js +37 -91
  1833. package/lib/row/style/index.d.ts +1 -0
  1834. package/lib/row/style/index.js +2 -2
  1835. package/lib/search/Search.d.ts +234 -0
  1836. package/lib/search/Search.js +140 -0
  1837. package/lib/search/index.css +1 -1
  1838. package/lib/search/index.d.ts +171 -0
  1839. package/lib/search/index.js +37 -126
  1840. package/lib/search/style/index.d.ts +1 -0
  1841. package/lib/search/style/index.js +6 -6
  1842. package/lib/search/types.d.ts +21 -0
  1843. package/lib/search/types.js +15 -0
  1844. package/lib/share-sheet/ShareSheet.d.ts +162 -0
  1845. package/lib/share-sheet/ShareSheet.js +142 -0
  1846. package/lib/share-sheet/index.css +1 -1
  1847. package/lib/share-sheet/index.d.ts +115 -0
  1848. package/lib/share-sheet/index.js +37 -181
  1849. package/lib/share-sheet/style/index.d.ts +1 -0
  1850. package/lib/share-sheet/style/index.js +6 -6
  1851. package/lib/share-sheet/types.d.ts +17 -0
  1852. package/lib/share-sheet/types.js +15 -0
  1853. package/lib/sidebar/Sidebar.d.ts +30 -0
  1854. package/lib/sidebar/Sidebar.js +63 -0
  1855. package/lib/sidebar/index.css +1 -1
  1856. package/lib/sidebar/index.d.ts +25 -0
  1857. package/lib/sidebar/index.js +37 -49
  1858. package/lib/sidebar/style/index.d.ts +1 -0
  1859. package/lib/sidebar/style/index.js +2 -2
  1860. package/lib/sidebar/types.d.ts +3 -0
  1861. package/lib/sidebar/types.js +15 -0
  1862. package/lib/sidebar-item/SidebarItem.d.ts +42 -0
  1863. package/lib/sidebar-item/SidebarItem.js +91 -0
  1864. package/lib/sidebar-item/index.css +1 -1
  1865. package/lib/sidebar-item/index.d.ts +36 -0
  1866. package/lib/sidebar-item/index.js +37 -76
  1867. package/lib/sidebar-item/style/index.d.ts +1 -0
  1868. package/lib/sidebar-item/style/index.js +4 -3
  1869. package/lib/sidebar-item/types.d.ts +15 -0
  1870. package/lib/sidebar-item/types.js +15 -0
  1871. package/lib/signature/Signature.d.ts +76 -0
  1872. package/lib/signature/Signature.js +179 -0
  1873. package/lib/signature/index.css +1 -0
  1874. package/lib/signature/index.d.ts +60 -0
  1875. package/lib/signature/index.js +37 -0
  1876. package/lib/signature/style/index.d.ts +1 -0
  1877. package/lib/signature/style/index.js +6 -0
  1878. package/lib/signature/types.d.ts +14 -0
  1879. package/lib/signature/types.js +15 -0
  1880. package/lib/skeleton/Skeleton.d.ts +96 -0
  1881. package/lib/skeleton/Skeleton.js +118 -0
  1882. package/lib/skeleton/index.css +1 -1
  1883. package/lib/skeleton/index.d.ts +73 -0
  1884. package/lib/skeleton/index.js +37 -117
  1885. package/lib/skeleton/style/index.d.ts +1 -0
  1886. package/lib/skeleton/style/index.js +5 -2
  1887. package/lib/skeleton/types.d.ts +11 -0
  1888. package/lib/skeleton/types.js +15 -0
  1889. package/lib/skeleton-avatar/SkeletonAvatar.d.ts +26 -0
  1890. package/lib/skeleton-avatar/SkeletonAvatar.js +40 -0
  1891. package/lib/skeleton-avatar/index.css +1 -0
  1892. package/lib/skeleton-avatar/index.d.ts +23 -0
  1893. package/lib/skeleton-avatar/index.js +39 -0
  1894. package/lib/skeleton-avatar/style/index.d.ts +1 -0
  1895. package/lib/skeleton-avatar/style/index.js +2 -0
  1896. package/lib/skeleton-image/SkeletonImage.d.ts +26 -0
  1897. package/lib/skeleton-image/SkeletonImage.js +44 -0
  1898. package/lib/skeleton-image/index.css +1 -0
  1899. package/lib/skeleton-image/index.d.ts +23 -0
  1900. package/lib/skeleton-image/index.js +39 -0
  1901. package/lib/skeleton-image/style/index.d.ts +1 -0
  1902. package/lib/skeleton-image/style/index.js +4 -0
  1903. package/lib/skeleton-paragraph/SkeletonParagraph.d.ts +27 -0
  1904. package/lib/skeleton-paragraph/SkeletonParagraph.js +49 -0
  1905. package/lib/skeleton-paragraph/index.css +1 -0
  1906. package/lib/skeleton-paragraph/index.d.ts +24 -0
  1907. package/lib/skeleton-paragraph/index.js +40 -0
  1908. package/lib/skeleton-paragraph/style/index.d.ts +1 -0
  1909. package/lib/skeleton-paragraph/style/index.js +2 -0
  1910. package/lib/skeleton-title/SkeletonTitle.d.ts +16 -0
  1911. package/lib/skeleton-title/SkeletonTitle.js +44 -0
  1912. package/lib/skeleton-title/index.css +1 -0
  1913. package/lib/skeleton-title/index.d.ts +17 -0
  1914. package/lib/skeleton-title/index.js +39 -0
  1915. package/lib/skeleton-title/style/index.d.ts +1 -0
  1916. package/lib/skeleton-title/style/index.js +2 -0
  1917. package/lib/slider/Slider.d.ts +100 -0
  1918. package/lib/slider/Slider.js +305 -0
  1919. package/lib/slider/index.css +1 -1
  1920. package/lib/slider/index.d.ts +77 -0
  1921. package/lib/slider/index.js +36 -323
  1922. package/lib/slider/style/index.d.ts +1 -0
  1923. package/lib/slider/style/index.js +2 -2
  1924. package/lib/slider/types.d.ts +11 -0
  1925. package/lib/slider/types.js +15 -0
  1926. package/lib/space/Space.d.ts +48 -0
  1927. package/lib/space/Space.js +106 -0
  1928. package/lib/space/index.css +1 -0
  1929. package/lib/space/index.d.ts +38 -0
  1930. package/lib/space/index.js +39 -0
  1931. package/lib/space/style/index.d.ts +1 -0
  1932. package/lib/space/style/index.js +2 -0
  1933. package/lib/step/Step.d.ts +2 -0
  1934. package/lib/step/Step.js +136 -0
  1935. package/lib/step/index.css +1 -1
  1936. package/lib/step/index.d.ts +8 -0
  1937. package/lib/step/index.js +35 -155
  1938. package/lib/step/style/index.d.ts +1 -0
  1939. package/lib/step/style/index.js +5 -4
  1940. package/lib/step/types.d.ts +13 -0
  1941. package/lib/step/types.js +15 -0
  1942. package/lib/stepper/Stepper.d.ts +194 -0
  1943. package/lib/stepper/Stepper.js +267 -0
  1944. package/lib/stepper/index.css +1 -1
  1945. package/lib/stepper/index.d.ts +143 -0
  1946. package/lib/stepper/index.js +37 -361
  1947. package/lib/stepper/style/index.d.ts +1 -0
  1948. package/lib/stepper/style/index.js +2 -2
  1949. package/lib/stepper/types.d.ts +15 -0
  1950. package/lib/stepper/types.js +15 -0
  1951. package/lib/steps/Steps.d.ts +71 -0
  1952. package/lib/steps/Steps.js +65 -0
  1953. package/lib/steps/index.css +1 -1
  1954. package/lib/steps/index.d.ts +52 -0
  1955. package/lib/steps/index.js +37 -44
  1956. package/lib/steps/style/index.d.ts +1 -0
  1957. package/lib/steps/style/index.js +2 -2
  1958. package/lib/steps/types.d.ts +3 -0
  1959. package/lib/steps/types.js +15 -0
  1960. package/lib/sticky/Sticky.d.ts +58 -0
  1961. package/lib/sticky/Sticky.js +157 -0
  1962. package/lib/sticky/index.css +1 -1
  1963. package/lib/sticky/index.d.ts +47 -0
  1964. package/lib/sticky/index.js +37 -160
  1965. package/lib/sticky/style/index.d.ts +1 -0
  1966. package/lib/sticky/style/index.js +2 -2
  1967. package/lib/sticky/types.d.ts +3 -0
  1968. package/lib/sticky/types.js +15 -0
  1969. package/lib/style/animation.css +1 -1
  1970. package/lib/style/base.css +1 -1
  1971. package/lib/style/css-variables.css +1 -0
  1972. package/lib/style/normalize.css +1 -1
  1973. package/lib/submit-bar/SubmitBar.d.ts +101 -0
  1974. package/lib/submit-bar/SubmitBar.js +134 -0
  1975. package/lib/submit-bar/index.css +1 -1
  1976. package/lib/submit-bar/index.d.ts +76 -0
  1977. package/lib/submit-bar/index.js +37 -117
  1978. package/lib/submit-bar/style/index.d.ts +1 -0
  1979. package/lib/submit-bar/style/index.js +6 -6
  1980. package/lib/submit-bar/types.d.ts +20 -0
  1981. package/lib/submit-bar/types.js +15 -0
  1982. package/lib/swipe/Swipe.d.ts +123 -0
  1983. package/lib/swipe/Swipe.js +394 -0
  1984. package/lib/swipe/index.css +1 -1
  1985. package/lib/swipe/index.d.ts +93 -0
  1986. package/lib/swipe/index.js +37 -444
  1987. package/lib/swipe/style/index.d.ts +1 -0
  1988. package/lib/swipe/style/index.js +2 -2
  1989. package/lib/swipe/types.d.ts +39 -0
  1990. package/lib/swipe/types.js +15 -0
  1991. package/lib/swipe-cell/SwipeCell.d.ts +44 -0
  1992. package/lib/swipe-cell/SwipeCell.js +193 -0
  1993. package/lib/swipe-cell/index.css +1 -1
  1994. package/lib/swipe-cell/index.d.ts +39 -0
  1995. package/lib/swipe-cell/index.js +37 -230
  1996. package/lib/swipe-cell/style/index.d.ts +1 -0
  1997. package/lib/swipe-cell/style/index.js +2 -2
  1998. package/lib/swipe-cell/types.d.ts +9 -0
  1999. package/lib/swipe-cell/types.js +15 -0
  2000. package/lib/swipe-item/SwipeItem.d.ts +2 -0
  2001. package/lib/swipe-item/SwipeItem.js +100 -0
  2002. package/lib/swipe-item/index.css +1 -1
  2003. package/lib/swipe-item/index.d.ts +7 -0
  2004. package/lib/swipe-item/index.js +35 -87
  2005. package/lib/swipe-item/style/index.d.ts +1 -0
  2006. package/lib/swipe-item/style/index.js +3 -2
  2007. package/lib/switch/Switch.d.ts +58 -0
  2008. package/lib/switch/Switch.js +104 -0
  2009. package/lib/switch/index.css +1 -1
  2010. package/lib/switch/index.d.ts +48 -0
  2011. package/lib/switch/index.js +37 -84
  2012. package/lib/switch/style/index.d.ts +1 -0
  2013. package/lib/switch/style/index.js +3 -3
  2014. package/lib/switch/types.d.ts +12 -0
  2015. package/lib/switch/types.js +15 -0
  2016. package/lib/tab/Tab.d.ts +58 -0
  2017. package/lib/tab/Tab.js +173 -0
  2018. package/lib/tab/TabTitle.d.ts +44 -0
  2019. package/lib/tab/TabTitle.js +109 -0
  2020. package/lib/tab/index.css +1 -1
  2021. package/lib/tab/index.d.ts +46 -0
  2022. package/lib/tab/index.js +37 -112
  2023. package/lib/tab/style/index.d.ts +1 -0
  2024. package/lib/tab/style/index.js +7 -2
  2025. package/lib/tabbar/Tabbar.d.ts +90 -0
  2026. package/lib/tabbar/Tabbar.js +103 -0
  2027. package/lib/tabbar/index.css +1 -1
  2028. package/lib/tabbar/index.d.ts +66 -0
  2029. package/lib/tabbar/index.js +37 -129
  2030. package/lib/tabbar/style/index.d.ts +1 -0
  2031. package/lib/tabbar/style/index.js +2 -2
  2032. package/lib/tabbar/types.d.ts +5 -0
  2033. package/lib/tabbar/types.js +15 -0
  2034. package/lib/tabbar-item/TabbarItem.d.ts +44 -0
  2035. package/lib/tabbar-item/TabbarItem.js +139 -0
  2036. package/lib/tabbar-item/index.css +1 -1
  2037. package/lib/tabbar-item/index.d.ts +37 -0
  2038. package/lib/tabbar-item/index.js +37 -131
  2039. package/lib/tabbar-item/style/index.d.ts +1 -0
  2040. package/lib/tabbar-item/style/index.js +5 -4
  2041. package/lib/tabbar-item/types.d.ts +9 -0
  2042. package/lib/tabbar-item/types.js +15 -0
  2043. package/lib/tabs/Tabs.d.ts +167 -0
  2044. package/lib/tabs/Tabs.js +386 -0
  2045. package/lib/tabs/TabsContent.d.ts +43 -0
  2046. package/lib/tabs/TabsContent.js +86 -0
  2047. package/lib/tabs/index.css +1 -1
  2048. package/lib/tabs/index.d.ts +124 -0
  2049. package/lib/tabs/index.js +37 -452
  2050. package/lib/tabs/style/index.d.ts +1 -0
  2051. package/lib/tabs/style/index.js +4 -4
  2052. package/lib/tabs/types.d.ts +39 -0
  2053. package/lib/tabs/types.js +15 -0
  2054. package/lib/tabs/utils.d.ts +3 -0
  2055. package/lib/tabs/utils.js +50 -32
  2056. package/lib/tag/Tag.d.ts +63 -0
  2057. package/lib/tag/Tag.js +97 -0
  2058. package/lib/tag/index.css +1 -1
  2059. package/lib/tag/index.d.ts +51 -0
  2060. package/lib/tag/index.js +37 -90
  2061. package/lib/tag/style/index.d.ts +1 -0
  2062. package/lib/tag/style/index.js +4 -4
  2063. package/lib/tag/types.d.ts +20 -0
  2064. package/lib/tag/types.js +15 -0
  2065. package/lib/text-ellipsis/TextEllipsis.d.ts +89 -0
  2066. package/lib/text-ellipsis/TextEllipsis.js +186 -0
  2067. package/lib/text-ellipsis/index.css +1 -0
  2068. package/lib/text-ellipsis/index.d.ts +69 -0
  2069. package/lib/text-ellipsis/index.js +39 -0
  2070. package/lib/text-ellipsis/style/index.d.ts +1 -0
  2071. package/lib/text-ellipsis/style/index.js +2 -0
  2072. package/lib/text-ellipsis/types.d.ts +9 -0
  2073. package/lib/text-ellipsis/types.js +15 -0
  2074. package/lib/time-picker/TimePicker.d.ts +246 -0
  2075. package/lib/time-picker/TimePicker.js +157 -0
  2076. package/lib/time-picker/index.d.ts +175 -0
  2077. package/lib/time-picker/index.js +39 -0
  2078. package/lib/time-picker/style/index.d.ts +1 -0
  2079. package/lib/time-picker/style/index.js +10 -0
  2080. package/lib/toast/Toast.d.ts +118 -0
  2081. package/lib/toast/Toast.js +136 -158
  2082. package/lib/toast/function-call.d.ts +36 -0
  2083. package/lib/toast/function-call.js +170 -0
  2084. package/lib/toast/index.css +1 -1
  2085. package/lib/toast/index.d.ts +89 -0
  2086. package/lib/toast/index.js +45 -197
  2087. package/lib/toast/lock-click.d.ts +1 -0
  2088. package/lib/toast/lock-click.js +27 -12
  2089. package/lib/toast/style/index.d.ts +1 -0
  2090. package/lib/toast/style/index.js +7 -7
  2091. package/lib/toast/types.d.ts +56 -0
  2092. package/lib/toast/types.js +15 -0
  2093. package/lib/tree-select/TreeSelect.d.ts +106 -0
  2094. package/lib/tree-select/TreeSelect.js +122 -0
  2095. package/lib/tree-select/index.css +1 -1
  2096. package/lib/tree-select/index.d.ts +72 -0
  2097. package/lib/tree-select/index.js +37 -161
  2098. package/lib/tree-select/style/index.d.ts +1 -0
  2099. package/lib/tree-select/style/index.js +6 -6
  2100. package/lib/tree-select/types.d.ts +10 -0
  2101. package/lib/tree-select/types.js +15 -0
  2102. package/lib/uploader/Uploader.d.ts +217 -0
  2103. package/lib/uploader/Uploader.js +301 -0
  2104. package/lib/uploader/UploaderPreviewItem.d.ts +40 -0
  2105. package/lib/uploader/UploaderPreviewItem.js +149 -0
  2106. package/lib/uploader/index.css +1 -1
  2107. package/lib/uploader/index.d.ts +159 -0
  2108. package/lib/uploader/index.js +37 -496
  2109. package/lib/uploader/style/index.d.ts +1 -0
  2110. package/lib/uploader/style/index.js +11 -11
  2111. package/lib/uploader/types.d.ts +61 -0
  2112. package/lib/uploader/types.js +15 -0
  2113. package/lib/uploader/utils.d.ts +11 -0
  2114. package/lib/uploader/utils.js +61 -54
  2115. package/lib/utils/basic.d.ts +30 -0
  2116. package/lib/utils/basic.js +75 -0
  2117. package/lib/utils/closest.d.ts +1 -0
  2118. package/lib/utils/closest.js +27 -0
  2119. package/lib/utils/constant.d.ts +14 -0
  2120. package/lib/utils/constant.js +45 -22
  2121. package/lib/utils/create.d.ts +17 -0
  2122. package/lib/utils/create.js +81 -0
  2123. package/lib/utils/deep-assign.d.ts +3 -0
  2124. package/lib/utils/deep-assign.js +30 -19
  2125. package/lib/utils/deep-clone.d.ts +1 -0
  2126. package/lib/utils/deep-clone.js +29 -18
  2127. package/lib/utils/dom.d.ts +13 -0
  2128. package/lib/utils/dom.js +103 -0
  2129. package/lib/utils/format.d.ts +13 -0
  2130. package/lib/utils/format.js +139 -0
  2131. package/lib/utils/index.d.ts +9 -0
  2132. package/lib/utils/index.js +24 -99
  2133. package/lib/utils/interceptor.d.ts +7 -0
  2134. package/lib/utils/interceptor.js +38 -18
  2135. package/lib/utils/mount-component.d.ts +14 -0
  2136. package/lib/utils/mount-component.js +58 -0
  2137. package/lib/utils/props.d.ts +31 -0
  2138. package/lib/utils/props.js +55 -0
  2139. package/lib/utils/support.js +1 -0
  2140. package/lib/utils/with-install.d.ts +13 -0
  2141. package/lib/utils/with-install.js +33 -0
  2142. package/lib/vant.cjs.js +17409 -0
  2143. package/lib/vant.es.js +17409 -0
  2144. package/lib/vant.js +17676 -22344
  2145. package/lib/vant.min.js +6 -7
  2146. package/lib/vue-sfc-shim.d.ts +6 -0
  2147. package/lib/vue-tsx-shim.d.ts +24 -0
  2148. package/lib/watermark/Watermark.d.ts +112 -0
  2149. package/lib/watermark/Watermark.js +151 -0
  2150. package/lib/watermark/index.css +1 -0
  2151. package/lib/watermark/index.d.ts +84 -0
  2152. package/lib/watermark/index.js +39 -0
  2153. package/lib/watermark/style/index.d.ts +1 -0
  2154. package/lib/watermark/style/index.js +2 -0
  2155. package/lib/watermark/types.d.ts +3 -0
  2156. package/lib/watermark/types.js +15 -0
  2157. package/lib/web-types.json +1 -0
  2158. package/package.json +50 -70
  2159. package/README.md +0 -112
  2160. package/README.zh-CN.md +0 -127
  2161. package/changelog.generated.md +0 -11
  2162. package/es/action-sheet/index.js +0 -180
  2163. package/es/action-sheet/index.less +0 -113
  2164. package/es/action-sheet/style/index.js +0 -7
  2165. package/es/action-sheet/style/less.js +0 -7
  2166. package/es/address-edit/Detail.js +0 -116
  2167. package/es/address-edit/index.js +0 -495
  2168. package/es/address-edit/index.less +0 -45
  2169. package/es/address-edit/style/index.js +0 -16
  2170. package/es/address-edit/style/less.js +0 -16
  2171. package/es/address-list/Item.js +0 -107
  2172. package/es/address-list/index.js +0 -93
  2173. package/es/address-list/index.less +0 -97
  2174. package/es/address-list/style/index.js +0 -10
  2175. package/es/address-list/style/less.js +0 -10
  2176. package/es/area/index.js +0 -321
  2177. package/es/area/style/index.js +0 -3
  2178. package/es/area/style/less.js +0 -3
  2179. package/es/badge/index.js +0 -68
  2180. package/es/badge/index.less +0 -38
  2181. package/es/badge/style/index.js +0 -2
  2182. package/es/badge/style/less.js +0 -2
  2183. package/es/button/index.js +0 -181
  2184. package/es/button/index.less +0 -190
  2185. package/es/button/style/index.js +0 -5
  2186. package/es/button/style/less.js +0 -5
  2187. package/es/calendar/components/Header.js +0 -55
  2188. package/es/calendar/components/Month.js +0 -333
  2189. package/es/calendar/index.js +0 -553
  2190. package/es/calendar/index.less +0 -188
  2191. package/es/calendar/style/index.js +0 -9
  2192. package/es/calendar/style/less.js +0 -9
  2193. package/es/calendar/utils.js +0 -66
  2194. package/es/card/index.js +0 -158
  2195. package/es/card/index.less +0 -109
  2196. package/es/card/style/index.js +0 -6
  2197. package/es/card/style/less.js +0 -6
  2198. package/es/cascader/index.js +0 -284
  2199. package/es/cascader/index.less +0 -82
  2200. package/es/cascader/style/index.js +0 -7
  2201. package/es/cascader/style/less.js +0 -7
  2202. package/es/cell/index.js +0 -121
  2203. package/es/cell/index.less +0 -103
  2204. package/es/cell/shared.js +0 -24
  2205. package/es/cell/style/index.js +0 -4
  2206. package/es/cell/style/less.js +0 -4
  2207. package/es/cell-group/index.js +0 -41
  2208. package/es/cell-group/index.less +0 -22
  2209. package/es/cell-group/style/index.js +0 -2
  2210. package/es/cell-group/style/less.js +0 -2
  2211. package/es/checkbox/index.js +0 -80
  2212. package/es/checkbox/index.less +0 -86
  2213. package/es/checkbox/style/index.js +0 -4
  2214. package/es/checkbox/style/less.js +0 -4
  2215. package/es/checkbox-group/index.js +0 -64
  2216. package/es/checkbox-group/index.less +0 -8
  2217. package/es/checkbox-group/style/index.js +0 -2
  2218. package/es/checkbox-group/style/less.js +0 -2
  2219. package/es/circle/index.js +0 -175
  2220. package/es/circle/index.less +0 -41
  2221. package/es/circle/style/index.js +0 -2
  2222. package/es/circle/style/less.js +0 -2
  2223. package/es/col/index.js +0 -55
  2224. package/es/col/index.less +0 -20
  2225. package/es/col/style/index.js +0 -2
  2226. package/es/col/style/less.js +0 -2
  2227. package/es/collapse/index.js +0 -39
  2228. package/es/collapse/style/index.js +0 -1
  2229. package/es/collapse/style/less.js +0 -1
  2230. package/es/collapse-item/index.js +0 -202
  2231. package/es/collapse-item/index.less +0 -69
  2232. package/es/collapse-item/style/index.js +0 -5
  2233. package/es/collapse-item/style/less.js +0 -5
  2234. package/es/contact-card/index.js +0 -59
  2235. package/es/contact-card/index.less +0 -42
  2236. package/es/contact-card/style/index.js +0 -5
  2237. package/es/contact-card/style/less.js +0 -5
  2238. package/es/contact-edit/index.js +0 -193
  2239. package/es/contact-edit/index.less +0 -30
  2240. package/es/contact-edit/style/index.js +0 -14
  2241. package/es/contact-edit/style/less.js +0 -14
  2242. package/es/contact-list/index.js +0 -119
  2243. package/es/contact-list/index.less +0 -54
  2244. package/es/contact-list/style/index.js +0 -10
  2245. package/es/contact-list/style/less.js +0 -10
  2246. package/es/count-down/index.js +0 -155
  2247. package/es/count-down/index.less +0 -7
  2248. package/es/count-down/style/index.js +0 -2
  2249. package/es/count-down/style/less.js +0 -2
  2250. package/es/count-down/utils.js +0 -67
  2251. package/es/coupon/index.js +0 -111
  2252. package/es/coupon/index.less +0 -104
  2253. package/es/coupon/style/index.js +0 -5
  2254. package/es/coupon/style/less.js +0 -5
  2255. package/es/coupon-cell/index.js +0 -79
  2256. package/es/coupon-cell/index.less +0 -7
  2257. package/es/coupon-cell/style/index.js +0 -6
  2258. package/es/coupon-cell/style/less.js +0 -6
  2259. package/es/coupon-list/index.js +0 -265
  2260. package/es/coupon-list/index.less +0 -89
  2261. package/es/coupon-list/style/index.js +0 -13
  2262. package/es/coupon-list/style/less.js +0 -13
  2263. package/es/datetime-picker/DatePicker.js +0 -314
  2264. package/es/datetime-picker/TimePicker.js +0 -135
  2265. package/es/datetime-picker/index.js +0 -29
  2266. package/es/datetime-picker/shared.js +0 -137
  2267. package/es/datetime-picker/style/index.js +0 -3
  2268. package/es/datetime-picker/style/less.js +0 -3
  2269. package/es/datetime-picker/utils.js +0 -33
  2270. package/es/dialog/Dialog.js +0 -281
  2271. package/es/dialog/index.js +0 -104
  2272. package/es/dialog/index.less +0 -120
  2273. package/es/dialog/style/index.js +0 -10
  2274. package/es/dialog/style/less.js +0 -10
  2275. package/es/divider/index.js +0 -38
  2276. package/es/divider/index.less +0 -64
  2277. package/es/divider/style/index.js +0 -2
  2278. package/es/divider/style/less.js +0 -2
  2279. package/es/dropdown-item/index.js +0 -210
  2280. package/es/dropdown-item/index.less +0 -39
  2281. package/es/dropdown-item/style/index.js +0 -7
  2282. package/es/dropdown-item/style/less.js +0 -7
  2283. package/es/dropdown-menu/index.js +0 -132
  2284. package/es/dropdown-menu/index.less +0 -77
  2285. package/es/dropdown-menu/style/index.js +0 -2
  2286. package/es/dropdown-menu/style/less.js +0 -2
  2287. package/es/empty/Network.js +0 -174
  2288. package/es/empty/index.js +0 -81
  2289. package/es/empty/index.less +0 -32
  2290. package/es/empty/style/index.js +0 -2
  2291. package/es/empty/style/less.js +0 -2
  2292. package/es/field/index.js +0 -635
  2293. package/es/field/index.less +0 -172
  2294. package/es/field/style/index.js +0 -5
  2295. package/es/field/style/less.js +0 -5
  2296. package/es/form/index.js +0 -200
  2297. package/es/form/style/index.js +0 -1
  2298. package/es/form/style/less.js +0 -1
  2299. package/es/goods-action/index.css +0 -1
  2300. package/es/goods-action/index.js +0 -24
  2301. package/es/goods-action/index.less +0 -19
  2302. package/es/goods-action/style/index.js +0 -2
  2303. package/es/goods-action/style/less.js +0 -2
  2304. package/es/goods-action-button/index.css +0 -1
  2305. package/es/goods-action-button/index.js +0 -57
  2306. package/es/goods-action-button/index.less +0 -34
  2307. package/es/goods-action-button/style/index.js +0 -6
  2308. package/es/goods-action-button/style/less.js +0 -6
  2309. package/es/goods-action-icon/index.css +0 -1
  2310. package/es/goods-action-icon/index.js +0 -76
  2311. package/es/goods-action-icon/index.less +0 -27
  2312. package/es/goods-action-icon/style/index.js +0 -4
  2313. package/es/goods-action-icon/style/less.js +0 -4
  2314. package/es/grid/index.js +0 -50
  2315. package/es/grid/index.less +0 -6
  2316. package/es/grid/style/index.js +0 -2
  2317. package/es/grid/style/less.js +0 -2
  2318. package/es/grid-item/index.js +0 -163
  2319. package/es/grid-item/index.less +0 -79
  2320. package/es/grid-item/style/index.js +0 -4
  2321. package/es/grid-item/style/less.js +0 -4
  2322. package/es/icon/index.js +0 -74
  2323. package/es/icon/index.less +0 -11
  2324. package/es/icon/local.css +0 -1
  2325. package/es/icon/local.less +0 -1
  2326. package/es/icon/style/index.js +0 -3
  2327. package/es/icon/style/less.js +0 -3
  2328. package/es/image/index.js +0 -189
  2329. package/es/image/index.less +0 -47
  2330. package/es/image/style/index.js +0 -4
  2331. package/es/image/style/less.js +0 -4
  2332. package/es/image-preview/ImagePreview.js +0 -234
  2333. package/es/image-preview/ImagePreviewItem.js +0 -247
  2334. package/es/image-preview/index.js +0 -88
  2335. package/es/image-preview/index.less +0 -103
  2336. package/es/image-preview/shared.js +0 -7
  2337. package/es/image-preview/style/index.js +0 -10
  2338. package/es/image-preview/style/less.js +0 -10
  2339. package/es/index-anchor/index.js +0 -83
  2340. package/es/index-anchor/index.less +0 -21
  2341. package/es/index-anchor/style/index.js +0 -2
  2342. package/es/index-anchor/style/less.js +0 -2
  2343. package/es/index-bar/index.js +0 -222
  2344. package/es/index-bar/index.less +0 -27
  2345. package/es/index-bar/style/index.js +0 -2
  2346. package/es/index-bar/style/less.js +0 -2
  2347. package/es/index.js +0 -111
  2348. package/es/info/index.css +0 -1
  2349. package/es/info/index.js +0 -30
  2350. package/es/info/index.less +0 -29
  2351. package/es/info/style/index.js +0 -2
  2352. package/es/info/style/less.js +0 -2
  2353. package/es/lazyload/index.js +0 -2
  2354. package/es/lazyload/style/index.js +0 -1
  2355. package/es/lazyload/style/less.js +0 -1
  2356. package/es/list/index.js +0 -178
  2357. package/es/list/index.less +0 -17
  2358. package/es/list/style/index.js +0 -3
  2359. package/es/list/style/less.js +0 -3
  2360. package/es/loading/index.js +0 -86
  2361. package/es/loading/index.less +0 -103
  2362. package/es/loading/style/index.js +0 -2
  2363. package/es/loading/style/less.js +0 -2
  2364. package/es/locale/index.js +0 -27
  2365. package/es/locale/lang/de-DE-formal.js +0 -90
  2366. package/es/locale/lang/de-DE.js +0 -90
  2367. package/es/locale/lang/en-US.js +0 -90
  2368. package/es/locale/lang/es-ES.js +0 -90
  2369. package/es/locale/lang/fr-FR.js +0 -90
  2370. package/es/locale/lang/ja-JP.js +0 -91
  2371. package/es/locale/lang/nb-NO.js +0 -90
  2372. package/es/locale/lang/ro-RO.js +0 -90
  2373. package/es/locale/lang/th-TH.js +0 -91
  2374. package/es/locale/lang/tr-TR.js +0 -90
  2375. package/es/locale/lang/vi-VN.js +0 -91
  2376. package/es/locale/lang/zh-CN.js +0 -91
  2377. package/es/locale/lang/zh-HK.js +0 -91
  2378. package/es/locale/lang/zh-TW.js +0 -91
  2379. package/es/locale/style/index.js +0 -1
  2380. package/es/locale/style/less.js +0 -1
  2381. package/es/mixins/bind-event.js +0 -29
  2382. package/es/mixins/checkbox.js +0 -139
  2383. package/es/mixins/click-outside.js +0 -33
  2384. package/es/mixins/close-on-popstate.js +0 -38
  2385. package/es/mixins/field.js +0 -24
  2386. package/es/mixins/popup/context.js +0 -18
  2387. package/es/mixins/popup/index.js +0 -220
  2388. package/es/mixins/popup/overlay.js +0 -77
  2389. package/es/mixins/portal.js +0 -48
  2390. package/es/mixins/relation.js +0 -76
  2391. package/es/mixins/slots.js +0 -23
  2392. package/es/mixins/touch.js +0 -63
  2393. package/es/nav-bar/index.js +0 -132
  2394. package/es/nav-bar/index.less +0 -74
  2395. package/es/nav-bar/style/index.js +0 -4
  2396. package/es/nav-bar/style/less.js +0 -4
  2397. package/es/notice-bar/index.js +0 -223
  2398. package/es/notice-bar/index.less +0 -60
  2399. package/es/notice-bar/style/index.js +0 -4
  2400. package/es/notice-bar/style/less.js +0 -4
  2401. package/es/notify/Notify.js +0 -45
  2402. package/es/notify/index.js +0 -93
  2403. package/es/notify/index.less +0 -33
  2404. package/es/notify/style/index.js +0 -6
  2405. package/es/notify/style/less.js +0 -6
  2406. package/es/number-keyboard/CollapseIcon.js +0 -16
  2407. package/es/number-keyboard/DeleteIcon.js +0 -16
  2408. package/es/number-keyboard/Key.js +0 -100
  2409. package/es/number-keyboard/index.js +0 -272
  2410. package/es/number-keyboard/index.less +0 -142
  2411. package/es/number-keyboard/style/index.js +0 -3
  2412. package/es/number-keyboard/style/less.js +0 -3
  2413. package/es/overlay/index.js +0 -53
  2414. package/es/overlay/index.less +0 -11
  2415. package/es/overlay/style/index.js +0 -2
  2416. package/es/overlay/style/less.js +0 -2
  2417. package/es/pagination/index.js +0 -168
  2418. package/es/pagination/index.less +0 -77
  2419. package/es/pagination/style/index.js +0 -2
  2420. package/es/pagination/style/less.js +0 -2
  2421. package/es/panel/index.css +0 -1
  2422. package/es/panel/index.js +0 -46
  2423. package/es/panel/index.less +0 -13
  2424. package/es/panel/style/index.js +0 -6
  2425. package/es/panel/style/less.js +0 -6
  2426. package/es/password-input/index.js +0 -84
  2427. package/es/password-input/index.less +0 -83
  2428. package/es/password-input/style/index.js +0 -2
  2429. package/es/password-input/style/less.js +0 -2
  2430. package/es/picker/PickerColumn.js +0 -348
  2431. package/es/picker/index.js +0 -383
  2432. package/es/picker/index.less +0 -117
  2433. package/es/picker/shared.js +0 -22
  2434. package/es/picker/style/index.js +0 -3
  2435. package/es/picker/style/less.js +0 -3
  2436. package/es/popover/index.js +0 -223
  2437. package/es/popover/index.less +0 -270
  2438. package/es/popover/style/index.js +0 -6
  2439. package/es/popover/style/less.js +0 -6
  2440. package/es/popup/index.js +0 -111
  2441. package/es/popup/index.less +0 -137
  2442. package/es/popup/style/index.js +0 -5
  2443. package/es/popup/style/less.js +0 -5
  2444. package/es/progress/index.js +0 -89
  2445. package/es/progress/index.less +0 -32
  2446. package/es/progress/style/index.js +0 -2
  2447. package/es/progress/style/less.js +0 -2
  2448. package/es/pull-refresh/index.js +0 -214
  2449. package/es/pull-refresh/index.less +0 -25
  2450. package/es/pull-refresh/style/index.js +0 -3
  2451. package/es/pull-refresh/style/less.js +0 -3
  2452. package/es/radio/index.js +0 -32
  2453. package/es/radio/index.less +0 -86
  2454. package/es/radio/style/index.js +0 -4
  2455. package/es/radio/style/less.js +0 -4
  2456. package/es/radio-group/index.js +0 -32
  2457. package/es/radio-group/index.less +0 -8
  2458. package/es/radio-group/style/index.js +0 -2
  2459. package/es/radio-group/style/less.js +0 -2
  2460. package/es/rate/index.js +0 -227
  2461. package/es/rate/index.less +0 -47
  2462. package/es/rate/style/index.js +0 -4
  2463. package/es/rate/style/less.js +0 -4
  2464. package/es/row/index.js +0 -85
  2465. package/es/row/index.less +0 -42
  2466. package/es/row/style/index.js +0 -2
  2467. package/es/row/style/less.js +0 -2
  2468. package/es/search/index.js +0 -114
  2469. package/es/search/index.less +0 -64
  2470. package/es/search/style/index.js +0 -6
  2471. package/es/search/style/less.js +0 -6
  2472. package/es/share-sheet/index.js +0 -170
  2473. package/es/share-sheet/index.less +0 -96
  2474. package/es/share-sheet/style/index.js +0 -6
  2475. package/es/share-sheet/style/less.js +0 -6
  2476. package/es/sidebar/index.js +0 -43
  2477. package/es/sidebar/index.less +0 -7
  2478. package/es/sidebar/style/index.js +0 -2
  2479. package/es/sidebar/style/less.js +0 -2
  2480. package/es/sidebar-item/index.js +0 -65
  2481. package/es/sidebar-item/index.less +0 -60
  2482. package/es/sidebar-item/style/index.js +0 -3
  2483. package/es/sidebar-item/style/less.js +0 -3
  2484. package/es/skeleton/index.js +0 -107
  2485. package/es/skeleton/index.less +0 -65
  2486. package/es/skeleton/style/index.js +0 -2
  2487. package/es/skeleton/style/less.js +0 -2
  2488. package/es/sku/Sku.js +0 -777
  2489. package/es/sku/components/SkuActions.js +0 -49
  2490. package/es/sku/components/SkuDateTimeField.js +0 -114
  2491. package/es/sku/components/SkuHeader.js +0 -78
  2492. package/es/sku/components/SkuHeaderItem.js +0 -16
  2493. package/es/sku/components/SkuImgUploader.js +0 -94
  2494. package/es/sku/components/SkuMessages.js +0 -220
  2495. package/es/sku/components/SkuRow.js +0 -117
  2496. package/es/sku/components/SkuRowItem.js +0 -102
  2497. package/es/sku/components/SkuRowPropItem.js +0 -53
  2498. package/es/sku/components/SkuStepper.js +0 -180
  2499. package/es/sku/constants.js +0 -9
  2500. package/es/sku/index.css +0 -1
  2501. package/es/sku/index.js +0 -27
  2502. package/es/sku/index.less +0 -399
  2503. package/es/sku/lang.js +0 -86
  2504. package/es/sku/style/index.js +0 -18
  2505. package/es/sku/style/less.js +0 -18
  2506. package/es/sku/utils/sku-helper.js +0 -148
  2507. package/es/sku/utils/time-helper.js +0 -34
  2508. package/es/slider/index.js +0 -314
  2509. package/es/slider/index.less +0 -94
  2510. package/es/slider/style/index.js +0 -2
  2511. package/es/slider/style/less.js +0 -2
  2512. package/es/step/index.js +0 -145
  2513. package/es/step/index.less +0 -139
  2514. package/es/step/style/index.js +0 -4
  2515. package/es/step/style/less.js +0 -4
  2516. package/es/stepper/index.js +0 -349
  2517. package/es/stepper/index.less +0 -130
  2518. package/es/stepper/style/index.js +0 -2
  2519. package/es/stepper/style/less.js +0 -2
  2520. package/es/steps/index.js +0 -38
  2521. package/es/steps/index.less +0 -21
  2522. package/es/steps/style/index.js +0 -2
  2523. package/es/steps/style/less.js +0 -2
  2524. package/es/sticky/index.js +0 -151
  2525. package/es/sticky/index.less +0 -11
  2526. package/es/sticky/style/index.js +0 -2
  2527. package/es/sticky/style/less.js +0 -2
  2528. package/es/style/animation.less +0 -139
  2529. package/es/style/base.less +0 -10
  2530. package/es/style/clearfix.css +0 -1
  2531. package/es/style/clearfix.less +0 -5
  2532. package/es/style/ellipsis.css +0 -1
  2533. package/es/style/ellipsis.less +0 -13
  2534. package/es/style/hairline.css +0 -1
  2535. package/es/style/hairline.less +0 -47
  2536. package/es/style/mixins/clearfix.less +0 -7
  2537. package/es/style/mixins/ellipsis.less +0 -15
  2538. package/es/style/mixins/hairline.less +0 -39
  2539. package/es/style/normalize.less +0 -38
  2540. package/es/style/reset.css +0 -1
  2541. package/es/style/reset.less +0 -171
  2542. package/es/style/var.less +0 -901
  2543. package/es/submit-bar/index.js +0 -105
  2544. package/es/submit-bar/index.less +0 -82
  2545. package/es/submit-bar/style/index.js +0 -6
  2546. package/es/submit-bar/style/less.js +0 -6
  2547. package/es/swipe/index.js +0 -432
  2548. package/es/swipe/index.less +0 -58
  2549. package/es/swipe/style/index.js +0 -2
  2550. package/es/swipe/style/less.js +0 -2
  2551. package/es/swipe-cell/index.js +0 -220
  2552. package/es/swipe-cell/index.less +0 -29
  2553. package/es/swipe-cell/style/index.js +0 -2
  2554. package/es/swipe-cell/style/less.js +0 -2
  2555. package/es/swipe-item/index.js +0 -78
  2556. package/es/swipe-item/index.less +0 -8
  2557. package/es/swipe-item/style/index.js +0 -2
  2558. package/es/swipe-item/style/less.js +0 -2
  2559. package/es/switch/index.js +0 -74
  2560. package/es/switch/index.less +0 -59
  2561. package/es/switch/shared.js +0 -19
  2562. package/es/switch/style/index.js +0 -3
  2563. package/es/switch/style/less.js +0 -3
  2564. package/es/switch-cell/index.css +0 -1
  2565. package/es/switch-cell/index.js +0 -46
  2566. package/es/switch-cell/index.less +0 -15
  2567. package/es/switch-cell/style/index.js +0 -7
  2568. package/es/switch-cell/style/less.js +0 -7
  2569. package/es/tab/index.js +0 -102
  2570. package/es/tab/index.less +0 -17
  2571. package/es/tab/style/index.js +0 -2
  2572. package/es/tab/style/less.js +0 -2
  2573. package/es/tabbar/index.js +0 -121
  2574. package/es/tabbar/index.less +0 -22
  2575. package/es/tabbar/style/index.js +0 -2
  2576. package/es/tabbar/style/less.js +0 -2
  2577. package/es/tabbar-item/index.js +0 -119
  2578. package/es/tabbar-item/index.less +0 -37
  2579. package/es/tabbar-item/style/index.js +0 -4
  2580. package/es/tabbar-item/style/less.js +0 -4
  2581. package/es/tabs/Content.js +0 -78
  2582. package/es/tabs/Title.js +0 -92
  2583. package/es/tabs/index.js +0 -432
  2584. package/es/tabs/index.less +0 -153
  2585. package/es/tabs/style/index.js +0 -4
  2586. package/es/tabs/style/less.js +0 -4
  2587. package/es/tabs/utils.js +0 -41
  2588. package/es/tag/index.js +0 -79
  2589. package/es/tag/index.less +0 -99
  2590. package/es/tag/style/index.js +0 -4
  2591. package/es/tag/style/less.js +0 -4
  2592. package/es/toast/Toast.js +0 -155
  2593. package/es/toast/index.js +0 -189
  2594. package/es/toast/index.less +0 -75
  2595. package/es/toast/lock-click.js +0 -16
  2596. package/es/toast/style/index.js +0 -7
  2597. package/es/toast/style/less.js +0 -7
  2598. package/es/tree-select/index.js +0 -148
  2599. package/es/tree-select/index.less +0 -51
  2600. package/es/tree-select/style/index.js +0 -6
  2601. package/es/tree-select/style/less.js +0 -6
  2602. package/es/uploader/index.js +0 -482
  2603. package/es/uploader/index.less +0 -163
  2604. package/es/uploader/style/index.js +0 -11
  2605. package/es/uploader/style/less.js +0 -11
  2606. package/es/uploader/utils.js +0 -66
  2607. package/es/utils/constant.js +0 -10
  2608. package/es/utils/create/bem.js +0 -39
  2609. package/es/utils/create/component.js +0 -57
  2610. package/es/utils/create/i18n.js +0 -16
  2611. package/es/utils/create/index.js +0 -7
  2612. package/es/utils/deep-assign.js +0 -24
  2613. package/es/utils/deep-clone.js +0 -22
  2614. package/es/utils/dom/event.js +0 -48
  2615. package/es/utils/dom/node.js +0 -7
  2616. package/es/utils/dom/raf.js +0 -36
  2617. package/es/utils/dom/reset-scroll.js +0 -14
  2618. package/es/utils/dom/scroll.js +0 -69
  2619. package/es/utils/dom/style.js +0 -9
  2620. package/es/utils/format/number.js +0 -52
  2621. package/es/utils/format/string.js +0 -19
  2622. package/es/utils/format/unit.js +0 -59
  2623. package/es/utils/functional.js +0 -56
  2624. package/es/utils/index.js +0 -71
  2625. package/es/utils/interceptor.js +0 -22
  2626. package/es/utils/router.js +0 -36
  2627. package/es/utils/validate/date.js +0 -4
  2628. package/es/utils/validate/email.js +0 -5
  2629. package/es/utils/validate/mobile.js +0 -4
  2630. package/es/utils/validate/number.js +0 -11
  2631. package/es/utils/validate/system.js +0 -9
  2632. package/es/utils/vnodes.js +0 -36
  2633. package/lib/action-sheet/index.less +0 -113
  2634. package/lib/action-sheet/style/less.js +0 -7
  2635. package/lib/address-edit/Detail.js +0 -130
  2636. package/lib/address-edit/index.less +0 -45
  2637. package/lib/address-edit/style/less.js +0 -16
  2638. package/lib/address-list/Item.js +0 -124
  2639. package/lib/address-list/index.less +0 -97
  2640. package/lib/address-list/style/less.js +0 -10
  2641. package/lib/area/style/less.js +0 -3
  2642. package/lib/badge/index.less +0 -38
  2643. package/lib/badge/style/less.js +0 -2
  2644. package/lib/button/index.less +0 -190
  2645. package/lib/button/style/less.js +0 -5
  2646. package/lib/calendar/components/Header.js +0 -63
  2647. package/lib/calendar/components/Month.js +0 -343
  2648. package/lib/calendar/index.less +0 -188
  2649. package/lib/calendar/style/less.js +0 -9
  2650. package/lib/card/index.less +0 -109
  2651. package/lib/card/style/less.js +0 -6
  2652. package/lib/cascader/index.less +0 -82
  2653. package/lib/cascader/style/less.js +0 -7
  2654. package/lib/cell/index.less +0 -103
  2655. package/lib/cell/shared.js +0 -29
  2656. package/lib/cell/style/less.js +0 -4
  2657. package/lib/cell-group/index.less +0 -22
  2658. package/lib/cell-group/style/less.js +0 -2
  2659. package/lib/checkbox/index.less +0 -86
  2660. package/lib/checkbox/style/less.js +0 -4
  2661. package/lib/checkbox-group/index.less +0 -8
  2662. package/lib/checkbox-group/style/less.js +0 -2
  2663. package/lib/circle/index.less +0 -41
  2664. package/lib/circle/style/less.js +0 -2
  2665. package/lib/col/index.less +0 -20
  2666. package/lib/col/style/less.js +0 -2
  2667. package/lib/collapse/style/less.js +0 -1
  2668. package/lib/collapse-item/index.less +0 -69
  2669. package/lib/collapse-item/style/less.js +0 -5
  2670. package/lib/contact-card/index.less +0 -42
  2671. package/lib/contact-card/style/less.js +0 -5
  2672. package/lib/contact-edit/index.less +0 -30
  2673. package/lib/contact-edit/style/less.js +0 -14
  2674. package/lib/contact-list/index.less +0 -54
  2675. package/lib/contact-list/style/less.js +0 -10
  2676. package/lib/count-down/index.less +0 -7
  2677. package/lib/count-down/style/less.js +0 -2
  2678. package/lib/coupon/index.less +0 -104
  2679. package/lib/coupon/shared.js +0 -1
  2680. package/lib/coupon/style/less.js +0 -5
  2681. package/lib/coupon-cell/index.less +0 -7
  2682. package/lib/coupon-cell/style/less.js +0 -6
  2683. package/lib/coupon-list/index.less +0 -89
  2684. package/lib/coupon-list/style/less.js +0 -13
  2685. package/lib/datetime-picker/DatePicker.js +0 -330
  2686. package/lib/datetime-picker/TimePicker.js +0 -148
  2687. package/lib/datetime-picker/index.js +0 -41
  2688. package/lib/datetime-picker/shared.js +0 -151
  2689. package/lib/datetime-picker/style/index.js +0 -3
  2690. package/lib/datetime-picker/style/less.js +0 -3
  2691. package/lib/datetime-picker/utils.js +0 -43
  2692. package/lib/dialog/index.less +0 -120
  2693. package/lib/dialog/style/less.js +0 -10
  2694. package/lib/divider/index.less +0 -64
  2695. package/lib/divider/style/less.js +0 -2
  2696. package/lib/dropdown-item/index.less +0 -39
  2697. package/lib/dropdown-item/style/less.js +0 -7
  2698. package/lib/dropdown-menu/index.less +0 -77
  2699. package/lib/dropdown-menu/style/less.js +0 -2
  2700. package/lib/empty/Network.js +0 -179
  2701. package/lib/empty/index.less +0 -32
  2702. package/lib/empty/style/less.js +0 -2
  2703. package/lib/field/index.less +0 -172
  2704. package/lib/field/style/less.js +0 -5
  2705. package/lib/form/style/less.js +0 -1
  2706. package/lib/goods-action/index.css +0 -1
  2707. package/lib/goods-action/index.js +0 -32
  2708. package/lib/goods-action/index.less +0 -19
  2709. package/lib/goods-action/style/index.js +0 -2
  2710. package/lib/goods-action/style/less.js +0 -2
  2711. package/lib/goods-action-button/index.css +0 -1
  2712. package/lib/goods-action-button/index.js +0 -70
  2713. package/lib/goods-action-button/index.less +0 -34
  2714. package/lib/goods-action-button/style/index.js +0 -6
  2715. package/lib/goods-action-button/style/less.js +0 -6
  2716. package/lib/goods-action-icon/index.css +0 -1
  2717. package/lib/goods-action-icon/index.js +0 -90
  2718. package/lib/goods-action-icon/index.less +0 -27
  2719. package/lib/goods-action-icon/style/index.js +0 -4
  2720. package/lib/goods-action-icon/style/less.js +0 -4
  2721. package/lib/grid/index.less +0 -6
  2722. package/lib/grid/style/less.js +0 -2
  2723. package/lib/grid-item/index.less +0 -79
  2724. package/lib/grid-item/style/less.js +0 -4
  2725. package/lib/icon/index.less +0 -11
  2726. package/lib/icon/local.css +0 -1
  2727. package/lib/icon/local.less +0 -1
  2728. package/lib/icon/style/less.js +0 -3
  2729. package/lib/image/index.less +0 -47
  2730. package/lib/image/style/less.js +0 -4
  2731. package/lib/image-preview/index.less +0 -103
  2732. package/lib/image-preview/shared.js +0 -13
  2733. package/lib/image-preview/style/less.js +0 -10
  2734. package/lib/index-anchor/index.less +0 -21
  2735. package/lib/index-anchor/style/less.js +0 -2
  2736. package/lib/index-bar/index.less +0 -27
  2737. package/lib/index-bar/style/less.js +0 -2
  2738. package/lib/index.less +0 -84
  2739. package/lib/info/index.css +0 -1
  2740. package/lib/info/index.js +0 -42
  2741. package/lib/info/index.less +0 -29
  2742. package/lib/info/style/index.js +0 -2
  2743. package/lib/info/style/less.js +0 -2
  2744. package/lib/lazyload/style/less.js +0 -1
  2745. package/lib/list/index.less +0 -17
  2746. package/lib/list/style/less.js +0 -3
  2747. package/lib/loading/index.less +0 -103
  2748. package/lib/loading/style/less.js +0 -2
  2749. package/lib/locale/style/less.js +0 -1
  2750. package/lib/mixins/bind-event.js +0 -36
  2751. package/lib/mixins/checkbox.js +0 -152
  2752. package/lib/mixins/click-outside.js +0 -41
  2753. package/lib/mixins/close-on-popstate.js +0 -46
  2754. package/lib/mixins/field.js +0 -29
  2755. package/lib/mixins/popup/context.js +0 -23
  2756. package/lib/mixins/popup/index.js +0 -236
  2757. package/lib/mixins/popup/overlay.js +0 -97
  2758. package/lib/mixins/popup/type.js +0 -1
  2759. package/lib/mixins/portal.js +0 -53
  2760. package/lib/mixins/relation.js +0 -84
  2761. package/lib/mixins/slots.js +0 -29
  2762. package/lib/mixins/touch.js +0 -69
  2763. package/lib/nav-bar/index.less +0 -74
  2764. package/lib/nav-bar/style/less.js +0 -4
  2765. package/lib/notice-bar/index.less +0 -60
  2766. package/lib/notice-bar/style/less.js +0 -4
  2767. package/lib/notify/index.less +0 -33
  2768. package/lib/notify/style/less.js +0 -6
  2769. package/lib/number-keyboard/CollapseIcon.js +0 -21
  2770. package/lib/number-keyboard/DeleteIcon.js +0 -21
  2771. package/lib/number-keyboard/Key.js +0 -113
  2772. package/lib/number-keyboard/index.less +0 -142
  2773. package/lib/number-keyboard/style/less.js +0 -3
  2774. package/lib/overlay/index.less +0 -11
  2775. package/lib/overlay/style/less.js +0 -2
  2776. package/lib/pagination/index.less +0 -77
  2777. package/lib/pagination/style/less.js +0 -2
  2778. package/lib/panel/index.css +0 -1
  2779. package/lib/panel/index.js +0 -61
  2780. package/lib/panel/index.less +0 -13
  2781. package/lib/panel/style/index.js +0 -6
  2782. package/lib/panel/style/less.js +0 -6
  2783. package/lib/password-input/index.less +0 -83
  2784. package/lib/password-input/style/less.js +0 -2
  2785. package/lib/picker/index.less +0 -117
  2786. package/lib/picker/shared.js +0 -28
  2787. package/lib/picker/style/less.js +0 -3
  2788. package/lib/popover/index.less +0 -270
  2789. package/lib/popover/style/less.js +0 -6
  2790. package/lib/popup/index.less +0 -137
  2791. package/lib/popup/style/less.js +0 -5
  2792. package/lib/progress/index.less +0 -32
  2793. package/lib/progress/style/less.js +0 -2
  2794. package/lib/pull-refresh/index.less +0 -25
  2795. package/lib/pull-refresh/style/less.js +0 -3
  2796. package/lib/radio/index.less +0 -86
  2797. package/lib/radio/style/less.js +0 -4
  2798. package/lib/radio-group/index.less +0 -8
  2799. package/lib/radio-group/style/less.js +0 -2
  2800. package/lib/rate/index.less +0 -47
  2801. package/lib/rate/style/less.js +0 -4
  2802. package/lib/row/index.less +0 -42
  2803. package/lib/row/style/less.js +0 -2
  2804. package/lib/search/index.less +0 -64
  2805. package/lib/search/style/less.js +0 -6
  2806. package/lib/share-sheet/index.less +0 -96
  2807. package/lib/share-sheet/style/less.js +0 -6
  2808. package/lib/sidebar/index.less +0 -7
  2809. package/lib/sidebar/style/less.js +0 -2
  2810. package/lib/sidebar-item/index.less +0 -60
  2811. package/lib/sidebar-item/style/less.js +0 -3
  2812. package/lib/skeleton/index.less +0 -65
  2813. package/lib/skeleton/style/less.js +0 -2
  2814. package/lib/sku/Sku.js +0 -802
  2815. package/lib/sku/components/SkuActions.js +0 -62
  2816. package/lib/sku/components/SkuDateTimeField.js +0 -129
  2817. package/lib/sku/components/SkuHeader.js +0 -93
  2818. package/lib/sku/components/SkuHeaderItem.js +0 -27
  2819. package/lib/sku/components/SkuImgUploader.js +0 -106
  2820. package/lib/sku/components/SkuMessages.js +0 -235
  2821. package/lib/sku/components/SkuRow.js +0 -128
  2822. package/lib/sku/components/SkuRowItem.js +0 -117
  2823. package/lib/sku/components/SkuRowPropItem.js +0 -63
  2824. package/lib/sku/components/SkuStepper.js +0 -193
  2825. package/lib/sku/constants.js +0 -16
  2826. package/lib/sku/index.css +0 -1
  2827. package/lib/sku/index.js +0 -49
  2828. package/lib/sku/index.less +0 -399
  2829. package/lib/sku/lang.js +0 -92
  2830. package/lib/sku/style/index.js +0 -18
  2831. package/lib/sku/style/less.js +0 -18
  2832. package/lib/sku/utils/sku-helper.js +0 -179
  2833. package/lib/sku/utils/time-helper.js +0 -42
  2834. package/lib/slider/index.less +0 -94
  2835. package/lib/slider/style/less.js +0 -2
  2836. package/lib/step/index.less +0 -139
  2837. package/lib/step/style/less.js +0 -4
  2838. package/lib/stepper/index.less +0 -130
  2839. package/lib/stepper/style/less.js +0 -2
  2840. package/lib/steps/index.less +0 -21
  2841. package/lib/steps/style/less.js +0 -2
  2842. package/lib/sticky/index.less +0 -11
  2843. package/lib/sticky/style/less.js +0 -2
  2844. package/lib/style/animation.less +0 -139
  2845. package/lib/style/base.less +0 -10
  2846. package/lib/style/clearfix.css +0 -1
  2847. package/lib/style/clearfix.less +0 -5
  2848. package/lib/style/ellipsis.css +0 -1
  2849. package/lib/style/ellipsis.less +0 -13
  2850. package/lib/style/hairline.css +0 -1
  2851. package/lib/style/hairline.less +0 -47
  2852. package/lib/style/mixins/clearfix.less +0 -7
  2853. package/lib/style/mixins/ellipsis.less +0 -15
  2854. package/lib/style/mixins/hairline.less +0 -39
  2855. package/lib/style/normalize.less +0 -38
  2856. package/lib/style/reset.css +0 -1
  2857. package/lib/style/reset.less +0 -171
  2858. package/lib/style/var.less +0 -901
  2859. package/lib/submit-bar/index.less +0 -82
  2860. package/lib/submit-bar/style/less.js +0 -6
  2861. package/lib/swipe/index.less +0 -58
  2862. package/lib/swipe/style/less.js +0 -2
  2863. package/lib/swipe-cell/index.less +0 -29
  2864. package/lib/swipe-cell/style/less.js +0 -2
  2865. package/lib/swipe-item/index.less +0 -8
  2866. package/lib/swipe-item/style/less.js +0 -2
  2867. package/lib/switch/index.less +0 -59
  2868. package/lib/switch/shared.js +0 -25
  2869. package/lib/switch/style/less.js +0 -3
  2870. package/lib/switch-cell/index.css +0 -1
  2871. package/lib/switch-cell/index.js +0 -62
  2872. package/lib/switch-cell/index.less +0 -15
  2873. package/lib/switch-cell/style/index.js +0 -7
  2874. package/lib/switch-cell/style/less.js +0 -7
  2875. package/lib/tab/index.less +0 -17
  2876. package/lib/tab/style/less.js +0 -2
  2877. package/lib/tabbar/index.less +0 -22
  2878. package/lib/tabbar/style/less.js +0 -2
  2879. package/lib/tabbar-item/index.less +0 -37
  2880. package/lib/tabbar-item/style/less.js +0 -4
  2881. package/lib/tabs/Content.js +0 -90
  2882. package/lib/tabs/Title.js +0 -102
  2883. package/lib/tabs/index.less +0 -153
  2884. package/lib/tabs/style/less.js +0 -4
  2885. package/lib/tag/index.less +0 -99
  2886. package/lib/tag/style/less.js +0 -4
  2887. package/lib/toast/index.less +0 -75
  2888. package/lib/toast/style/less.js +0 -7
  2889. package/lib/tree-select/index.less +0 -51
  2890. package/lib/tree-select/style/less.js +0 -6
  2891. package/lib/uploader/index.less +0 -163
  2892. package/lib/uploader/style/less.js +0 -11
  2893. package/lib/utils/create/bem.js +0 -44
  2894. package/lib/utils/create/component.js +0 -70
  2895. package/lib/utils/create/i18n.js +0 -27
  2896. package/lib/utils/create/index.js +0 -15
  2897. package/lib/utils/dom/event.js +0 -62
  2898. package/lib/utils/dom/node.js +0 -12
  2899. package/lib/utils/dom/raf.js +0 -47
  2900. package/lib/utils/dom/reset-scroll.js +0 -21
  2901. package/lib/utils/dom/scroll.js +0 -89
  2902. package/lib/utils/dom/style.js +0 -14
  2903. package/lib/utils/format/number.js +0 -60
  2904. package/lib/utils/format/string.js +0 -26
  2905. package/lib/utils/format/unit.js +0 -68
  2906. package/lib/utils/functional.js +0 -68
  2907. package/lib/utils/router.js +0 -46
  2908. package/lib/utils/types.js +0 -1
  2909. package/lib/utils/validate/date.js +0 -10
  2910. package/lib/utils/validate/email.js +0 -10
  2911. package/lib/utils/validate/mobile.js +0 -9
  2912. package/lib/utils/validate/number.js +0 -18
  2913. package/lib/utils/validate/system.js +0 -17
  2914. package/lib/utils/vnodes.js +0 -41
  2915. package/types/address-edit.d.ts +0 -5
  2916. package/types/area.d.ts +0 -5
  2917. package/types/calendar.d.ts +0 -7
  2918. package/types/checkbox-group.d.ts +0 -10
  2919. package/types/checkbox.d.ts +0 -5
  2920. package/types/collapse-item.d.ts +0 -5
  2921. package/types/component.d.ts +0 -7
  2922. package/types/count-down.d.ts +0 -9
  2923. package/types/datetime-picker.d.ts +0 -6
  2924. package/types/dialog.d.ts +0 -48
  2925. package/types/dropdown-item.d.ts +0 -5
  2926. package/types/field.d.ts +0 -7
  2927. package/types/form.d.ts +0 -11
  2928. package/types/image-preview.d.ts +0 -45
  2929. package/types/index-bar.d.ts +0 -5
  2930. package/types/index.d.ts +0 -124
  2931. package/types/jsx.d.ts +0 -11
  2932. package/types/lazyload.d.ts +0 -7
  2933. package/types/list.d.ts +0 -5
  2934. package/types/locale.d.ts +0 -7
  2935. package/types/mixins/popup.d.ts +0 -4
  2936. package/types/notify.d.ts +0 -43
  2937. package/types/picker.d.ts +0 -25
  2938. package/types/progress.d.ts +0 -5
  2939. package/types/sku.d.ts +0 -73
  2940. package/types/swipe-cell.d.ts +0 -7
  2941. package/types/swipe.d.ts +0 -15
  2942. package/types/tabs.d.ts +0 -7
  2943. package/types/toast.d.ts +0 -59
  2944. package/types/uploader.d.ts +0 -7
  2945. package/vetur/attributes.json +0 -3358
  2946. package/vetur/tags.json +0 -1146
  2947. package/vetur/web-types.json +0 -9776
  2948. /package/es/{style/var.css → action-bar/types.mjs} +0 -0
  2949. /package/es/{coupon/shared.js → action-bar-button/types.mjs} +0 -0
  2950. /package/es/{mixins/popup/type.js → action-bar-icon/types.mjs} +0 -0
  2951. /package/es/{utils/types.js → action-sheet/types.mjs} +0 -0
  2952. /package/{lib/style/var.css → es/address-edit/types.mjs} +0 -0
package/lib/vant.min.js CHANGED
@@ -1,7 +1,6 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("vant",["vue"],e):"object"==typeof exports?exports.vant=e(require("vue")):t.vant=e(t.Vue)}("undefined"!=typeof self?self:this,(function(t){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,function(e){return t[e]}.bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=11)}([function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"h",(function(){return r})),i.d(e,"i",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"e",(function(){return l})),i.d(e,"f",(function(){return c})),i.d(e,"g",(function(){return u})),i.d(e,"a",(function(){return h})),i.d(e,"d",(function(){return d}));var n=i(3),s="undefined"!=typeof window,r=i.n(n).a.prototype.$isServer;function o(){}function a(t){return null!=t}function l(t){return"function"==typeof t}function c(t){return null!==t&&"object"==typeof t}function u(t){return c(t)&&l(t.then)&&l(t.catch)}function h(t,e){var i=e.split("."),n=t;return i.forEach((function(t){var e;n=c(n)&&null!=(e=n[t])?e:""})),n}function d(t){return null==t||("object"!=typeof t||0===Object.keys(t).length)}},function(t,e,i){"use strict";function n(){return(n=Object.assign||function(t){for(var e,i=1;i<arguments.length;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)}var s=["attrs","props","domProps"],r=["class","style","directives"],o=["on","nativeOn"],a=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=function(t){return t.reduce((function(t,e){for(var i in e)if(t[i])if(-1!==s.indexOf(i))t[i]=n({},t[i],e[i]);else if(-1!==r.indexOf(i)){var l=t[i]instanceof Array?t[i]:[t[i]],c=e[i]instanceof Array?e[i]:[e[i]];t[i]=l.concat(c)}else if(-1!==o.indexOf(i))for(var u in e[i])if(t[i][u]){var h=t[i][u]instanceof Array?t[i][u]:[t[i][u]],d=e[i][u]instanceof Array?e[i][u]:[e[i][u]];t[i][u]=h.concat(d)}else t[i][u]=e[i][u];else if("hook"==i)for(var f in e[i])t[i][f]=t[i][f]?a(t[i][f],e[i][f]):e[i][f];else t[i]=e[i];else t[i]=e[i];return t}),{})}},function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return r}));var n=/-(\w)/g;function s(t){return t.replace(n,(function(t,e){return e.toUpperCase()}))}function r(t,e){void 0===e&&(e=2);for(var i=t+"";i.length<e;)i="0"+i;return i}},function(e,i){e.exports=t},function(t,e,i){"use strict";(function(t){i.d(e,"c",(function(){return l})),i.d(e,"b",(function(){return c})),i.d(e,"a",(function(){return u}));var n=i(0),s=Date.now();var r=n.h?t:window,o=r.requestAnimationFrame||function(t){var e=Date.now(),i=Math.max(0,16-(e-s)),n=setTimeout(t,i);return s=e+i,n},a=r.cancelAnimationFrame||r.clearTimeout;function l(t){return o.call(r,t)}function c(t){l((function(){l(t)}))}function u(t){a.call(r,t)}}).call(this,i(10))},function(t,e,i){"use strict";function n(t){return/^\d+(\.\d+)?$/.test(t)}function s(t){return Number.isNaN?Number.isNaN(t):t!=t}i.d(e,"b",(function(){return n})),i.d(e,"a",(function(){return s}))},function(t,e,i){"use strict";i.d(e,"a",(function(){return o})),i.d(e,"b",(function(){return l}));var n,s=i(0),r=i(5);function o(t){if(Object(s.c)(t))return t=String(t),Object(r.b)(t)?t+"px":t}function a(t){return+(t=t.replace(/rem/g,""))*function(){if(!n){var t=document.documentElement,e=t.style.fontSize||window.getComputedStyle(t).fontSize;n=parseFloat(e)}return n}()}function l(t){if("number"==typeof t)return t;if(s.b){if(-1!==t.indexOf("rem"))return a(t);if(-1!==t.indexOf("vw"))return function(t){return+(t=t.replace(/vw/g,""))*window.innerWidth/100}(t);if(-1!==t.indexOf("vh"))return function(t){return+(t=t.replace(/vh/g,""))*window.innerHeight/100}(t)}return parseFloat(t)}},function(t,e,i){"use strict";var n=i(3),s=i.n(n),r=i(0),o=Object.prototype.hasOwnProperty;function a(t,e){return Object.keys(e).forEach((function(i){!function(t,e,i){var n=e[i];Object(r.c)(n)&&(o.call(t,i)&&Object(r.f)(n)?t[i]=a(Object(t[i]),e[i]):t[i]=n)}(t,e,i)})),t}var l=s.a.prototype,c=s.a.util.defineReactive;c(l,"$vantLang","zh-CN"),c(l,"$vantMessages",{"zh-CN":{name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",complete:"完成",loading:"加载中...",telEmpty:"请填写电话",nameEmpty:"请填写姓名",nameInvalid:"请输入正确的姓名",confirmDelete:"确定要删除吗",telInvalid:"请输入正确的手机号",vanCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:function(t,e){return t+"年"+e+"月"},rangePrompt:function(t){return"选择天数不能超过 "+t+" 天"}},vanCascader:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:function(t){return t+"折"},condition:function(t){return"满"+t+"元可用"}},vanCouponCell:{title:"优惠券",tips:"暂无可用",count:function(t){return t+"张可用"}},vanCouponList:{empty:"暂无优惠券",exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码格式不正确",defaultAddress:"设为默认收货地址",telPlaceholder:"收货人手机号",namePlaceholder:"收货人姓名",areaPlaceholder:"选择省 / 市 / 区"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌、楼层房间号等信息"},vanAddressList:{add:"新增地址"}}});e.a={messages:function(){return l.$vantMessages[l.$vantLang]},use:function(t,e){var i;l.$vantLang=t,this.add(((i={})[t]=e,i))},add:function(t){void 0===t&&(t={}),a(l.$vantMessages,t)}}},function(t,e,i){"use strict";function n(t){return function(e,i){return e&&"string"!=typeof e&&(i=e,e=""),""+(e=e?t+"__"+e:t)+function t(e,i){return i?"string"==typeof i?" "+e+"--"+i:Array.isArray(i)?i.reduce((function(i,n){return i+t(e,n)}),""):Object.keys(i).reduce((function(n,s){return n+(i[s]?t(e,s):"")}),""):""}(e,i)}}i.d(e,"a",(function(){return d}));var s=i(0),r=i(2),o={methods:{slots:function(t,e){void 0===t&&(t="default");var i=this.$slots,n=this.$scopedSlots[t];return n?n(e):i[t]}}};i(3);function a(t){var e=this.name;t.component(e,this),t.component(Object(r.a)("-"+e),this)}function l(t){return{functional:!0,props:t.props,model:t.model,render:function(e,i){return t(e,i.props,function(t){var e=t.scopedSlots||t.data.scopedSlots||{},i=t.slots();return Object.keys(i).forEach((function(t){e[t]||(e[t]=function(){return i[t]})})),e}(i),i)}}}function c(t){return function(e){return Object(s.e)(e)&&(e=l(e)),e.functional||(e.mixins=e.mixins||[],e.mixins.push(o)),e.name=t,e.install=a,e}}var u=i(7);function h(t){var e=Object(r.a)(t)+".";return function(t){for(var i=u.a.messages(),n=Object(s.a)(i,e+t)||Object(s.a)(i,t),r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return Object(s.e)(n)?n.apply(void 0,o):n}}function d(t){return[c(t="van-"+t),n(t),h(t)]}},function(t,e,i){
2
- /*!
3
- * Vue-Lazyload.js v1.2.3
4
- * (c) 2018 Awe <hilongjw@gmail.com>
5
- * Released under the MIT License.
6
- */
7
- t.exports=function(){"use strict";function t(t){t=t||{};var n=arguments.length,s=0;if(1===n)return t;for(;++s<n;){var r=arguments[s];d(t)&&(t=r),i(r)&&e(t,r)}return t}function e(e,s){for(var r in f(e,s),s)if("__proto__"!==r&&n(s,r)){var o=s[r];i(o)?("undefined"===m(e[r])&&"function"===m(o)&&(e[r]=o),e[r]=t(e[r]||{},o)):e[r]=o}return e}function i(t){return"object"===m(t)||"function"===m(t)}function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function s(t,e){if(t.length){var i=t.indexOf(e);return i>-1?t.splice(i,1):void 0}}function r(t,e){if("IMG"===t.tagName&&t.getAttribute("data-srcset")){var i=t.getAttribute("data-srcset"),n=[],s=t.parentNode.offsetWidth*e,r=void 0,o=void 0,a=void 0;(i=i.trim().split(",")).map((function(t){t=t.trim(),-1===(r=t.lastIndexOf(" "))?(o=t,a=999998):(o=t.substr(0,r),a=parseInt(t.substr(r+1,t.length-r-2),10)),n.push([a,o])})),n.sort((function(t,e){if(t[0]<e[0])return-1;if(t[0]>e[0])return 1;if(t[0]===e[0]){if(-1!==e[1].indexOf(".webp",e[1].length-5))return 1;if(-1!==t[1].indexOf(".webp",t[1].length-5))return-1}return 0}));for(var l="",c=void 0,u=n.length,h=0;h<u;h++)if((c=n[h])[0]>=s){l=c[1];break}return l}}function o(t,e){for(var i=void 0,n=0,s=t.length;n<s;n++)if(e(t[n])){i=t[n];break}return i}function a(){if(!g)return!1;var t=!0,e=document;try{var i=e.createElement("object");i.type="image/webp",i.style.visibility="hidden",i.innerHTML="!",e.body.appendChild(i),t=!i.offsetWidth,e.body.removeChild(i)}catch(e){t=!1}return t}function l(){}var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},h=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),d=function(t){return null==t||"function"!=typeof t&&"object"!==(void 0===t?"undefined":c(t))},f=function(t,e){if(null==t)throw new TypeError("expected first argument to be an object.");if(void 0===e||"undefined"==typeof Symbol)return t;if("function"!=typeof Object.getOwnPropertySymbols)return t;for(var i=Object.prototype.propertyIsEnumerable,n=Object(t),s=arguments.length,r=0;++r<s;)for(var o=Object(arguments[r]),a=Object.getOwnPropertySymbols(o),l=0;l<a.length;l++){var c=a[l];i.call(o,c)&&(n[c]=o[c])}return n},p=Object.prototype.toString,m=function(t){var e=void 0===t?"undefined":c(t);return"undefined"===e?"undefined":null===t?"null":!0===t||!1===t||t instanceof Boolean?"boolean":"string"===e||t instanceof String?"string":"number"===e||t instanceof Number?"number":"function"===e||t instanceof Function?void 0!==t.constructor.name&&"Generator"===t.constructor.name.slice(0,9)?"generatorfunction":"function":void 0!==Array.isArray&&Array.isArray(t)?"array":t instanceof RegExp?"regexp":t instanceof Date?"date":"[object RegExp]"===(e=p.call(t))?"regexp":"[object Date]"===e?"date":"[object Arguments]"===e?"arguments":"[object Error]"===e?"error":"[object Promise]"===e?"promise":function(t){return t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}(t)?"buffer":"[object Set]"===e?"set":"[object WeakSet]"===e?"weakset":"[object Map]"===e?"map":"[object WeakMap]"===e?"weakmap":"[object Symbol]"===e?"symbol":"[object Map Iterator]"===e?"mapiterator":"[object Set Iterator]"===e?"setiterator":"[object String Iterator]"===e?"stringiterator":"[object Array Iterator]"===e?"arrayiterator":"[object Int8Array]"===e?"int8array":"[object Uint8Array]"===e?"uint8array":"[object Uint8ClampedArray]"===e?"uint8clampedarray":"[object Int16Array]"===e?"int16array":"[object Uint16Array]"===e?"uint16array":"[object Int32Array]"===e?"int32array":"[object Uint32Array]"===e?"uint32array":"[object Float32Array]"===e?"float32array":"[object Float64Array]"===e?"float64array":"object"},v=t,g="undefined"!=typeof window,b=g&&"IntersectionObserver"in window,y="event",S="observer",k=function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i}if(g)return"function"==typeof window.CustomEvent?window.CustomEvent:(t.prototype=window.Event.prototype,t)}(),x=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return g&&window.devicePixelRatio||t},w=function(){if(g){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}}(),C={on:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];w?t.addEventListener(e,i,{capture:n,passive:!0}):t.addEventListener(e,i,n)},off:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.removeEventListener(e,i,n)}},O=function(t,e,i){var n=new Image;n.src=t.src,n.onload=function(){e({naturalHeight:n.naturalHeight,naturalWidth:n.naturalWidth,src:n.src})},n.onerror=function(t){i(t)}},T=function(t,e){return"undefined"!=typeof getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.style[e]},$=function(t){return T(t,"overflow")+T(t,"overflow-y")+T(t,"overflow-x")},B={},I=function(){function t(e){var i=e.el,n=e.src,s=e.error,r=e.loading,o=e.bindType,a=e.$parent,l=e.options,c=e.elRenderer;u(this,t),this.el=i,this.src=n,this.error=s,this.loading=r,this.bindType=o,this.attempt=0,this.naturalHeight=0,this.naturalWidth=0,this.options=l,this.rect=null,this.$parent=a,this.elRenderer=c,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}return h(t,[{key:"initState",value:function(){this.el.dataset.src=this.src,this.state={error:!1,loaded:!1,rendered:!1}}},{key:"record",value:function(t){this.performanceData[t]=Date.now()}},{key:"update",value:function(t){var e=t.src,i=t.loading,n=t.error,s=this.src;this.src=e,this.loading=i,this.error=n,this.filter(),s!==this.src&&(this.attempt=0,this.initState())}},{key:"getRect",value:function(){this.rect=this.el.getBoundingClientRect()}},{key:"checkInView",value:function(){return this.getRect(),this.rect.top<window.innerHeight*this.options.preLoad&&this.rect.bottom>this.options.preLoadTop&&this.rect.left<window.innerWidth*this.options.preLoad&&this.rect.right>0}},{key:"filter",value:function(){var t=this;(function(t){if(!(t instanceof Object))return[];if(Object.keys)return Object.keys(t);var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);return e})(this.options.filter).map((function(e){t.options.filter[e](t,t.options)}))}},{key:"renderLoading",value:function(t){var e=this;O({src:this.loading},(function(i){e.render("loading",!1),t()}),(function(){t(),e.options.silent||console.warn("VueLazyload log: load failed with loading image("+e.loading+")")}))}},{key:"load",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;return this.attempt>this.options.attempt-1&&this.state.error?(this.options.silent||console.log("VueLazyload log: "+this.src+" tried too more than "+this.options.attempt+" times"),void e()):this.state.loaded||B[this.src]?(this.state.loaded=!0,e(),this.render("loaded",!0)):void this.renderLoading((function(){t.attempt++,t.record("loadStart"),O({src:t.src},(function(i){t.naturalHeight=i.naturalHeight,t.naturalWidth=i.naturalWidth,t.state.loaded=!0,t.state.error=!1,t.record("loadEnd"),t.render("loaded",!1),B[t.src]=1,e()}),(function(e){!t.options.silent&&console.error(e),t.state.error=!0,t.state.loaded=!1,t.render("error",!1)}))}))}},{key:"render",value:function(t,e){this.elRenderer(this,t,e)}},{key:"performance",value:function(){var t="loading",e=0;return this.state.loaded&&(t="loaded",e=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(t="error"),{src:this.src,state:t,time:e}}},{key:"destroy",value:function(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}]),t}(),E="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",j=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],D={rootMargin:"0px",threshold:0},P=function(t){return function(){function e(t){var i=t.preLoad,n=t.error,s=t.throttleWait,r=t.preLoadTop,o=t.dispatchEvent,l=t.loading,c=t.attempt,h=t.silent,d=void 0===h||h,f=t.scale,p=t.listenEvents,m=(t.hasbind,t.filter),v=t.adapter,g=t.observer,b=t.observerOptions;u(this,e),this.version="1.2.3",this.mode=y,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:d,dispatchEvent:!!o,throttleWait:s||200,preLoad:i||1.3,preLoadTop:r||0,error:n||E,loading:l||E,attempt:c||3,scale:f||x(f),ListenEvents:p||j,hasbind:!1,supportWebp:a(),filter:m||{},adapter:v||{},observer:!!g,observerOptions:b||D},this._initEvent(),this.lazyLoadHandler=function(t,e){var i=null,n=0;return function(){if(!i){var s=Date.now()-n,r=this,o=arguments,a=function(){n=Date.now(),i=!1,t.apply(r,o)};s>=e?a():i=setTimeout(a,e)}}}(this._lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?S:y)}return h(e,[{key:"config",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};v(this.options,t)}},{key:"performance",value:function(){var t=[];return this.ListenerQueue.map((function(e){t.push(e.performance())})),t}},{key:"addLazyBox",value:function(t){this.ListenerQueue.push(t),g&&(this._addListenerTarget(window),this._observer&&this._observer.observe(t.el),t.$el&&t.$el.parentNode&&this._addListenerTarget(t.$el.parentNode))}},{key:"add",value:function(e,i,n){var s=this;if(function(t,e){for(var i=!1,n=0,s=t.length;n<s;n++)if(e(t[n])){i=!0;break}return i}(this.ListenerQueue,(function(t){return t.el===e})))return this.update(e,i),t.nextTick(this.lazyLoadHandler);var o=this._valueFormatter(i.value),a=o.src,l=o.loading,c=o.error;t.nextTick((function(){a=r(e,s.options.scale)||a,s._observer&&s._observer.observe(e);var o=Object.keys(i.modifiers)[0],u=void 0;o&&(u=(u=n.context.$refs[o])?u.$el||u:document.getElementById(o)),u||(u=function(t){if(g){if(!(t instanceof HTMLElement))return window;for(var e=t;e&&e!==document.body&&e!==document.documentElement&&e.parentNode;){if(/(scroll|auto)/.test($(e)))return e;e=e.parentNode}return window}}(e));var h=new I({bindType:i.arg,$parent:u,el:e,loading:l,error:c,src:a,elRenderer:s._elRenderer.bind(s),options:s.options});s.ListenerQueue.push(h),g&&(s._addListenerTarget(window),s._addListenerTarget(u)),s.lazyLoadHandler(),t.nextTick((function(){return s.lazyLoadHandler()}))}))}},{key:"update",value:function(e,i){var n=this,s=this._valueFormatter(i.value),a=s.src,l=s.loading,c=s.error;a=r(e,this.options.scale)||a;var u=o(this.ListenerQueue,(function(t){return t.el===e}));u&&u.update({src:a,loading:l,error:c}),this._observer&&(this._observer.unobserve(e),this._observer.observe(e)),this.lazyLoadHandler(),t.nextTick((function(){return n.lazyLoadHandler()}))}},{key:"remove",value:function(t){if(t){this._observer&&this._observer.unobserve(t);var e=o(this.ListenerQueue,(function(e){return e.el===t}));e&&(this._removeListenerTarget(e.$parent),this._removeListenerTarget(window),s(this.ListenerQueue,e)&&e.destroy())}}},{key:"removeComponent",value:function(t){t&&(s(this.ListenerQueue,t),this._observer&&this._observer.unobserve(t.el),t.$parent&&t.$el.parentNode&&this._removeListenerTarget(t.$el.parentNode),this._removeListenerTarget(window))}},{key:"setMode",value:function(t){var e=this;b||t!==S||(t=y),this.mode=t,t===y?(this._observer&&(this.ListenerQueue.forEach((function(t){e._observer.unobserve(t.el)})),this._observer=null),this.TargetQueue.forEach((function(t){e._initListen(t.el,!0)}))):(this.TargetQueue.forEach((function(t){e._initListen(t.el,!1)})),this._initIntersectionObserver())}},{key:"_addListenerTarget",value:function(t){if(t){var e=o(this.TargetQueue,(function(e){return e.el===t}));return e?e.childrenCount++:(e={el:t,id:++this.TargetIndex,childrenCount:1,listened:!0},this.mode===y&&this._initListen(e.el,!0),this.TargetQueue.push(e)),this.TargetIndex}}},{key:"_removeListenerTarget",value:function(t){var e=this;this.TargetQueue.forEach((function(i,n){i.el===t&&(--i.childrenCount||(e._initListen(i.el,!1),e.TargetQueue.splice(n,1),i=null))}))}},{key:"_initListen",value:function(t,e){var i=this;this.options.ListenEvents.forEach((function(n){return C[e?"on":"off"](t,n,i.lazyLoadHandler)}))}},{key:"_initEvent",value:function(){var t=this;this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=function(e,i){t.Event.listeners[e].push(i)},this.$once=function(e,i){var n=t;t.$on(e,(function t(){n.$off(e,t),i.apply(n,arguments)}))},this.$off=function(e,i){i?s(t.Event.listeners[e],i):t.Event.listeners[e]=[]},this.$emit=function(e,i,n){t.Event.listeners[e].forEach((function(t){return t(i,n)}))}}},{key:"_lazyLoadHandler",value:function(){var t=this;this.ListenerQueue.forEach((function(e,i){e.state.loaded||e.checkInView()&&e.load((function(){!e.error&&e.loaded&&t.ListenerQueue.splice(i,1)}))}))}},{key:"_initIntersectionObserver",value:function(){var t=this;b&&(this._observer=new IntersectionObserver(this._observerHandler.bind(this),this.options.observerOptions),this.ListenerQueue.length&&this.ListenerQueue.forEach((function(e){t._observer.observe(e.el)})))}},{key:"_observerHandler",value:function(t,e){var i=this;t.forEach((function(t){t.isIntersecting&&i.ListenerQueue.forEach((function(e){if(e.el===t.target){if(e.state.loaded)return i._observer.unobserve(e.el);e.load()}}))}))}},{key:"_elRenderer",value:function(t,e,i){if(t.el){var n=t.el,s=t.bindType,r=void 0;switch(e){case"loading":r=t.loading;break;case"error":r=t.error;break;default:r=t.src}if(s?n.style[s]='url("'+r+'")':n.getAttribute("src")!==r&&n.setAttribute("src",r),n.setAttribute("lazy",e),this.$emit(e,t,i),this.options.adapter[e]&&this.options.adapter[e](t,this.options),this.options.dispatchEvent){var o=new k(e,{detail:t});n.dispatchEvent(o)}}}},{key:"_valueFormatter",value:function(t){var e=t,i=this.options.loading,n=this.options.error;return function(t){return null!==t&&"object"===(void 0===t?"undefined":c(t))}(t)&&(t.src||this.options.silent||console.error("Vue Lazyload warning: miss src with "+t),e=t.src,i=t.loading||this.options.loading,n=t.error||this.options.error),{src:e,loading:i,error:n}}}]),e}()},L=function(t){return{props:{tag:{type:String,default:"div"}},render:function(t){return!1===this.show?t(this.tag):t(this.tag,null,this.$slots.default)},data:function(){return{el:null,state:{loaded:!1},rect:{},show:!1}},mounted:function(){this.el=this.$el,t.addLazyBox(this),t.lazyLoadHandler()},beforeDestroy:function(){t.removeComponent(this)},methods:{getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),g&&this.rect.top<window.innerHeight*t.options.preLoad&&this.rect.bottom>0&&this.rect.left<window.innerWidth*t.options.preLoad&&this.rect.right>0},load:function(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)}}}},N=function(){function t(e){var i=e.lazy;u(this,t),this.lazy=i,i.lazyContainerMananger=this,this._queue=[]}return h(t,[{key:"bind",value:function(t,e,i){var n=new A({el:t,binding:e,vnode:i,lazy:this.lazy});this._queue.push(n)}},{key:"update",value:function(t,e,i){var n=o(this._queue,(function(e){return e.el===t}));n&&n.update({el:t,binding:e,vnode:i})}},{key:"unbind",value:function(t,e,i){var n=o(this._queue,(function(e){return e.el===t}));n&&(n.clear(),s(this._queue,n))}}]),t}(),M={selector:"img"},A=function(){function t(e){var i=e.el,n=e.binding,s=e.vnode,r=e.lazy;u(this,t),this.el=null,this.vnode=s,this.binding=n,this.options={},this.lazy=r,this._queue=[],this.update({el:i,binding:n})}return h(t,[{key:"update",value:function(t){var e=this,i=t.el,n=t.binding;this.el=i,this.options=v({},M,n.value),this.getImgs().forEach((function(t){e.lazy.add(t,v({},e.binding,{value:{src:t.dataset.src,error:t.dataset.error,loading:t.dataset.loading}}),e.vnode)}))}},{key:"getImgs",value:function(){return function(t){for(var e=t.length,i=[],n=0;n<e;n++)i.push(t[n]);return i}(this.el.querySelectorAll(this.options.selector))}},{key:"clear",value:function(){var t=this;this.getImgs().forEach((function(e){return t.lazy.remove(e)})),this.vnode=null,this.binding=null,this.lazy=null}}]),t}();return{install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=P(t),n=new i(e),s=new N({lazy:n}),r="2"===t.version.split(".")[0];t.prototype.$Lazyload=n,e.lazyComponent&&t.component("lazy-component",L(n)),r?(t.directive("lazy",{bind:n.add.bind(n),update:n.update.bind(n),componentUpdated:n.lazyLoadHandler.bind(n),unbind:n.remove.bind(n)}),t.directive("lazy-container",{bind:s.bind.bind(s),update:s.update.bind(s),unbind:s.unbind.bind(s)})):(t.directive("lazy",{bind:n.lazyLoadHandler.bind(n),update:function(t,e){v(this.vm.$refs,this.vm.$els),n.add(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){n.remove(this.el)}}),t.directive("lazy-container",{update:function(t,e){s.update(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){s.unbind(this.el)}}))}}}()},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){"use strict";function n(){return(n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}i.r(e),i.d(e,"install",(function(){return ih})),i.d(e,"version",(function(){return eh})),i.d(e,"ActionSheet",(function(){return kt})),i.d(e,"AddressEdit",(function(){return pi})),i.d(e,"AddressList",(function(){return Ai})),i.d(e,"Area",(function(){return Gt})),i.d(e,"Badge",(function(){return Hi})),i.d(e,"Button",(function(){return je})),i.d(e,"Calendar",(function(){return on})),i.d(e,"Card",(function(){return mn})),i.d(e,"Cascader",(function(){return Hn})),i.d(e,"Cell",(function(){return oe})),i.d(e,"CellGroup",(function(){return Kn})),i.d(e,"Checkbox",(function(){return Xn})),i.d(e,"CheckboxGroup",(function(){return Jn})),i.d(e,"Circle",(function(){return rs})),i.d(e,"Col",(function(){return cs})),i.d(e,"Collapse",(function(){return fs})),i.d(e,"CollapseItem",(function(){return bs})),i.d(e,"ContactCard",(function(){return Cs})),i.d(e,"ContactEdit",(function(){return Es})),i.d(e,"ContactList",(function(){return Ms})),i.d(e,"CountDown",(function(){return Fs})),i.d(e,"Coupon",(function(){return Ys})),i.d(e,"CouponCell",(function(){return tr})),i.d(e,"CouponList",(function(){return rr})),i.d(e,"DatetimePicker",(function(){return gr})),i.d(e,"Dialog",(function(){return Qe})),i.d(e,"Divider",(function(){return xr})),i.d(e,"DropdownItem",(function(){return Tr})),i.d(e,"DropdownMenu",(function(){return jr})),i.d(e,"Empty",(function(){return zr})),i.d(e,"Field",(function(){return de})),i.d(e,"Form",(function(){return Hr})),i.d(e,"GoodsAction",(function(){return Ve})),i.d(e,"GoodsActionButton",(function(){return _e})),i.d(e,"GoodsActionIcon",(function(){return Ur})),i.d(e,"Grid",(function(){return Qr})),i.d(e,"GridItem",(function(){return to})),i.d(e,"Icon",(function(){return rt})),i.d(e,"Image",(function(){return un})),i.d(e,"ImagePreview",(function(){return yo})),i.d(e,"IndexAnchor",(function(){return wo})),i.d(e,"IndexBar",(function(){return $o})),i.d(e,"Info",(function(){return J})),i.d(e,"Lazyload",(function(){return Io})),i.d(e,"List",(function(){return Lo})),i.d(e,"Loading",(function(){return vt})),i.d(e,"Locale",(function(){return No.a})),i.d(e,"NavBar",(function(){return Vo})),i.d(e,"NoticeBar",(function(){return _o})),i.d(e,"Notify",(function(){return Zo})),i.d(e,"NumberKeyboard",(function(){return la})),i.d(e,"Overlay",(function(){return $})),i.d(e,"Pagination",(function(){return pa})),i.d(e,"Panel",(function(){return ya})),i.d(e,"PasswordInput",(function(){return Ca})),i.d(e,"Picker",(function(){return Ut})),i.d(e,"Popover",(function(){return rl})),i.d(e,"Popup",(function(){return ct})),i.d(e,"Progress",(function(){return cl})),i.d(e,"PullRefresh",(function(){return ml})),i.d(e,"Radio",(function(){return Ti})),i.d(e,"RadioGroup",(function(){return bi})),i.d(e,"Rate",(function(){return yl})),i.d(e,"Row",(function(){return wl})),i.d(e,"Search",(function(){return Il})),i.d(e,"ShareSheet",(function(){return Nl})),i.d(e,"Sidebar",(function(){return Vl})),i.d(e,"SidebarItem",(function(){return _l})),i.d(e,"Skeleton",(function(){return Yl})),i.d(e,"Sku",(function(){return fu})),i.d(e,"Slider",(function(){return bu})),i.d(e,"Step",(function(){return xu})),i.d(e,"Stepper",(function(){return Oc})),i.d(e,"Steps",(function(){return Tu})),i.d(e,"Sticky",(function(){return In})),i.d(e,"SubmitBar",(function(){return Du})),i.d(e,"Swipe",(function(){return ao})),i.d(e,"SwipeCell",(function(){return Mu})),i.d(e,"SwipeItem",(function(){return ho})),i.d(e,"Switch",(function(){return li})),i.d(e,"SwitchCell",(function(){return Fu})),i.d(e,"Tab",(function(){return yn})),i.d(e,"Tabbar",(function(){return qu})),i.d(e,"TabbarItem",(function(){return Xu})),i.d(e,"Tabs",(function(){return An})),i.d(e,"Tag",(function(){return wi})),i.d(e,"Toast",(function(){return Te})),i.d(e,"TreeSelect",(function(){return th})),i.d(e,"Uploader",(function(){return Fc}));var s=i(1),r=i.n(s),o=i(3),a=i.n(o),l=i(8),c=["ref","key","style","class","attrs","refInFor","nativeOn","directives","staticClass","staticStyle"],u={nativeOn:"on"};function h(t,e){var i=c.reduce((function(e,i){return t.data[i]&&(e[u[i]||i]=t.data[i]),e}),{});return e&&(i.on=i.on||{},n(i.on,t.data.on)),i}function d(t,e){for(var i=arguments.length,n=new Array(i>2?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];var r=t.listeners[e];r&&(Array.isArray(r)?r.forEach((function(t){t.apply(void 0,n)})):r.apply(void 0,n))}function f(t,e){var i=new a.a({el:document.createElement("div"),props:t.props,render:function(i){return i(t,n({props:this.$props},e))}});return document.body.appendChild(i.$el),i}var p={zIndex:2e3,lockCount:0,stack:[],find:function(t){return this.stack.filter((function(e){return e.vm===t}))[0]},remove:function(t){var e=this.find(t);if(e){e.vm=null,e.overlay=null;var i=this.stack.indexOf(e);this.stack.splice(i,1)}}},m=i(0),v=!1;if(!m.h)try{var g={};Object.defineProperty(g,"passive",{get:function(){v=!0}}),window.addEventListener("test-passive",null,g)}catch(t){}function b(t,e,i,n){void 0===n&&(n=!1),m.h||t.addEventListener(e,i,!!v&&{capture:!1,passive:n})}function y(t,e,i){m.h||t.removeEventListener(e,i)}function S(t){t.stopPropagation()}function k(t,e){("boolean"!=typeof t.cancelable||t.cancelable)&&t.preventDefault(),e&&S(t)}var x=Object(l.a)("overlay"),w=x[0],C=x[1];function O(t){k(t,!0)}function T(t,e,i,s){var o=n({zIndex:e.zIndex},e.customStyle);return Object(m.c)(e.duration)&&(o.animationDuration=e.duration+"s"),t("transition",{attrs:{name:"van-fade"}},[t("div",r()([{directives:[{name:"show",value:e.show}],style:o,class:[C(),e.className],on:{touchmove:e.lockScroll?O:m.i}},h(s,!0)]),[null==i.default?void 0:i.default()])])}T.props={show:Boolean,zIndex:[Number,String],duration:[Number,String],className:null,customStyle:Object,lockScroll:{type:Boolean,default:!0}};var $=w(T);function B(t){var e=t.parentNode;e&&e.removeChild(t)}var I={className:"",customStyle:{}};function E(t){var e=p.find(t);if(e){var i=t.$el,s=e.config,r=e.overlay;i&&i.parentNode&&i.parentNode.insertBefore(r.$el,i),n(r,I,s,{show:!0})}}function j(t,e){var i=p.find(t);if(i)i.config=e;else{var n=function(t){return f($,{on:{click:function(){t.$emit("click-overlay"),t.closeOnClickOverlay&&(t.onClickOverlay?t.onClickOverlay():t.close())}}})}(t);p.stack.push({vm:t,config:e,overlay:n})}E(t)}function D(t){var e=p.find(t);e&&(e.overlay.show=!1)}function P(t){return t===window}var L=/scroll|auto|overlay/i;function N(t,e){void 0===e&&(e=window);for(var i=t;i&&"HTML"!==i.tagName&&"BODY"!==i.tagName&&1===i.nodeType&&i!==e;){var n=window.getComputedStyle(i).overflowY;if(L.test(n))return i;i=i.parentNode}return e}function M(t){var e="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(e,0)}function A(t,e){"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e)}function z(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function V(t){A(window,t),A(document.body,t)}function R(t,e){if(P(t))return 0;var i=e?M(e):z();return t.getBoundingClientRect().top+i}var F={data:function(){return{direction:""}},methods:{touchStart:function(t){this.resetTouchStatus(),this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY},touchMove:function(t){var e=t.touches[0];this.deltaX=e.clientX<0?0:e.clientX-this.startX,this.deltaY=e.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY);var i,n;(!this.direction||this.offsetX<10&&this.offsetY<10)&&(this.direction=(i=this.offsetX,n=this.offsetY,i>n?"horizontal":n>i?"vertical":""))},resetTouchStatus:function(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0},bindTouchEvent:function(t){var e=this.onTouchStart,i=this.onTouchMove,n=this.onTouchEnd;b(t,"touchstart",e),b(t,"touchmove",i),n&&(b(t,"touchend",n),b(t,"touchcancel",n))}}};function H(t){var e=void 0===t?{}:t,i=e.ref,n=e.afterPortal;return{props:{getContainer:[String,Function]},watch:{getContainer:"portal"},mounted:function(){this.getContainer&&this.portal()},methods:{portal:function(){var t,e,s=this.getContainer,r=i?this.$refs[i]:this.$el;s?t="string"==typeof(e=s)?document.querySelector(e):e():this.$parent&&(t=this.$parent.$el),t&&t!==r.parentNode&&t.appendChild(r),n&&n.call(this)}}}}var _=0;function W(t){var e="binded_"+_++;function i(){this[e]||(t.call(this,b,!0),this[e]=!0)}function n(){this[e]&&(t.call(this,y,!1),this[e]=!1)}return{mounted:i,activated:i,deactivated:n,beforeDestroy:n}}var q={mixins:[W((function(t,e){this.handlePopstate(e&&this.closeOnPopstate)}))],props:{closeOnPopstate:Boolean},data:function(){return{bindStatus:!1}},watch:{closeOnPopstate:function(t){this.handlePopstate(t)}},methods:{onPopstate:function(){this.close(),this.shouldReopen=!1},handlePopstate:function(t){this.$isServer||this.bindStatus!==t&&(this.bindStatus=t,(t?b:y)(window,"popstate",this.onPopstate))}}},U={transitionAppear:Boolean,value:Boolean,overlay:Boolean,overlayStyle:Object,overlayClass:String,closeOnClickOverlay:Boolean,zIndex:[Number,String],lockScroll:{type:Boolean,default:!0},lazyRender:{type:Boolean,default:!0}};function K(t){return void 0===t&&(t={}),{mixins:[F,q,H({afterPortal:function(){this.overlay&&E()}})],provide:function(){return{vanPopup:this}},props:U,data:function(){return this.onReopenCallback=[],{inited:this.value}},computed:{shouldRender:function(){return this.inited||!this.lazyRender}},watch:{value:function(e){var i=e?"open":"close";this.inited=this.inited||this.value,this[i](),t.skipToggleEvent||this.$emit(i)},overlay:"renderOverlay"},mounted:function(){this.value&&this.open()},activated:function(){this.shouldReopen&&(this.$emit("input",!0),this.shouldReopen=!1)},beforeDestroy:function(){var t,e;t=this,(e=p.find(t))&&(B(e.overlay.$el),p.remove(t)),this.opened&&this.removeLock(),this.getContainer&&B(this.$el)},deactivated:function(){this.value&&(this.close(),this.shouldReopen=!0)},methods:{open:function(){this.$isServer||this.opened||(void 0!==this.zIndex&&(p.zIndex=this.zIndex),this.opened=!0,this.renderOverlay(),this.addLock(),this.onReopenCallback.forEach((function(t){t()})))},addLock:function(){this.lockScroll&&(b(document,"touchstart",this.touchStart),b(document,"touchmove",this.onTouchMove),p.lockCount||document.body.classList.add("van-overflow-hidden"),p.lockCount++)},removeLock:function(){this.lockScroll&&p.lockCount&&(p.lockCount--,y(document,"touchstart",this.touchStart),y(document,"touchmove",this.onTouchMove),p.lockCount||document.body.classList.remove("van-overflow-hidden"))},close:function(){this.opened&&(D(this),this.opened=!1,this.removeLock(),this.$emit("input",!1))},onTouchMove:function(t){this.touchMove(t);var e=this.deltaY>0?"10":"01",i=N(t.target,this.$el),n=i.scrollHeight,s=i.offsetHeight,r=i.scrollTop,o="11";0===r?o=s>=n?"00":"01":r+s>=n&&(o="10"),"11"===o||"vertical"!==this.direction||parseInt(o,2)&parseInt(e,2)||k(t,!0)},renderOverlay:function(){var t=this;!this.$isServer&&this.value&&this.$nextTick((function(){t.updateZIndex(t.overlay?1:0),t.overlay?j(t,{zIndex:p.zIndex++,duration:t.duration,className:t.overlayClass,customStyle:t.overlayStyle}):D(t)}))},updateZIndex:function(t){void 0===t&&(t=0),this.$el.style.zIndex=++p.zIndex+t},onReopen:function(t){this.onReopenCallback.push(t)}}}}var Y=i(6),X=Object(l.a)("info"),Q=X[0],G=X[1];function Z(t,e,i,n){var s=e.dot,o=e.info,a=Object(m.c)(o)&&""!==o;if(s||a)return t("div",r()([{class:G({dot:s})},h(n,!0)]),[s?"":e.info])}Z.props={dot:Boolean,info:[Number,String]};var J=Q(Z),tt=Object(l.a)("icon"),et=tt[0],it=tt[1];var nt={medel:"medal","medel-o":"medal-o","calender-o":"calendar-o"};function st(t,e,i,n){var s,o=function(t){return t&&nt[t]||t}(e.name),a=function(t){return!!t&&-1!==t.indexOf("/")}(o);return t(e.tag,r()([{class:[e.classPrefix,a?"":e.classPrefix+"-"+o],style:{color:e.color,fontSize:Object(Y.a)(e.size)}},h(n,!0)]),[i.default&&i.default(),a&&t("img",{class:it("image"),attrs:{src:o}}),t(J,{attrs:{dot:e.dot,info:null!=(s=e.badge)?s:e.info}})])}st.props={dot:Boolean,name:String,size:[Number,String],info:[Number,String],badge:[Number,String],color:String,tag:{type:String,default:"i"},classPrefix:{type:String,default:it()}};var rt=et(st),ot=Object(l.a)("popup"),at=ot[0],lt=ot[1],ct=at({mixins:[K()],props:{round:Boolean,duration:[Number,String],closeable:Boolean,transition:String,safeAreaInsetBottom:Boolean,closeIcon:{type:String,default:"cross"},closeIconPosition:{type:String,default:"top-right"},position:{type:String,default:"center"},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},beforeCreate:function(){var t=this,e=function(e){return function(i){return t.$emit(e,i)}};this.onClick=e("click"),this.onOpened=e("opened"),this.onClosed=e("closed")},methods:{onClickCloseIcon:function(t){this.$emit("click-close-icon",t),this.close()}},render:function(){var t,e=arguments[0];if(this.shouldRender){var i=this.round,n=this.position,s=this.duration,r="center"===n,o=this.transition||(r?"van-fade":"van-popup-slide-"+n),a={};if(Object(m.c)(s)){var l=r?"animationDuration":"transitionDuration";a[l]=s+"s"}return e("transition",{attrs:{appear:this.transitionAppear,name:o},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[e("div",{directives:[{name:"show",value:this.value}],style:a,class:lt((t={round:i},t[n]=n,t["safe-area-inset-bottom"]=this.safeAreaInsetBottom,t)),on:{click:this.onClick}},[this.slots(),this.closeable&&e(rt,{attrs:{role:"button",tabindex:"0",name:this.closeIcon},class:lt("close-icon",this.closeIconPosition),on:{click:this.onClickCloseIcon}})])])}}}),ut=Object(l.a)("loading"),ht=ut[0],dt=ut[1];function ft(t,e){if("spinner"===e.type){for(var i=[],n=0;n<12;n++)i.push(t("i"));return i}return t("svg",{class:dt("circular"),attrs:{viewBox:"25 25 50 50"}},[t("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])}function pt(t,e,i){if(i.default){var n,s={fontSize:Object(Y.a)(e.textSize),color:null!=(n=e.textColor)?n:e.color};return t("span",{class:dt("text"),style:s},[i.default()])}}function mt(t,e,i,n){var s=e.color,o=e.size,a=e.type,l={color:s};if(o){var c=Object(Y.a)(o);l.width=c,l.height=c}return t("div",r()([{class:dt([a,{vertical:e.vertical}])},h(n,!0)]),[t("span",{class:dt("spinner",a),style:l},[ft(t,e)]),pt(t,e,i)])}mt.props={color:String,size:[Number,String],vertical:Boolean,textSize:[Number,String],textColor:String,type:{type:String,default:"circular"}};var vt=ht(mt),gt=Object(l.a)("action-sheet"),bt=gt[0],yt=gt[1];function St(t,e,i,n){var s=e.title,o=e.cancelText,l=e.closeable;function c(){d(n,"input",!1),d(n,"cancel")}return t(ct,r()([{class:yt(),attrs:{position:"bottom",round:e.round,value:e.value,overlay:e.overlay,duration:e.duration,lazyRender:e.lazyRender,lockScroll:e.lockScroll,getContainer:e.getContainer,closeOnPopstate:e.closeOnPopstate,closeOnClickOverlay:e.closeOnClickOverlay,safeAreaInsetBottom:e.safeAreaInsetBottom}},h(n,!0)]),[function(){if(s)return t("div",{class:yt("header")},[s,l&&t(rt,{attrs:{name:e.closeIcon},class:yt("close"),on:{click:c}})])}(),function(){var n=(null==i.description?void 0:i.description())||e.description;if(n)return t("div",{class:yt("description")},[n])}(),t("div",{class:yt("content")},[e.actions&&e.actions.map((function(i,s){var r=i.disabled,o=i.loading,l=i.callback;return t("button",{attrs:{type:"button"},class:[yt("item",{disabled:r,loading:o}),i.className],style:{color:i.color},on:{click:function(t){t.stopPropagation(),r||o||(l&&l(i),e.closeOnClickAction&&d(n,"input",!1),a.a.nextTick((function(){d(n,"select",i,s)})))}}},[o?t(vt,{class:yt("loading-icon")}):[t("span",{class:yt("name")},[i.name]),i.subname&&t("div",{class:yt("subname")},[i.subname])]])})),null==i.default?void 0:i.default()]),function(){if(o)return[t("div",{class:yt("gap")}),t("button",{attrs:{type:"button"},class:yt("cancel"),on:{click:c}},[o])]}()])}St.props=n({},U,{title:String,actions:Array,duration:[Number,String],cancelText:String,description:String,getContainer:[String,Function],closeOnPopstate:Boolean,closeOnClickAction:Boolean,round:{type:Boolean,default:!0},closeable:{type:Boolean,default:!0},closeIcon:{type:String,default:"cross"},safeAreaInsetBottom:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}});var kt=bt(St);function xt(t){return t=t.replace(/[^-|\d]/g,""),/^((\+86)|(86))?(1)\d{10}$/.test(t)||/^0[0-9-]{10,13}$/.test(t)}var wt={title:String,loading:Boolean,readonly:Boolean,itemHeight:[Number,String],showToolbar:Boolean,cancelButtonText:String,confirmButtonText:String,allowHtml:{type:Boolean,default:!0},visibleItemCount:{type:[Number,String],default:6},swipeDuration:{type:[Number,String],default:1e3}},Ct="#ee0a24",Ot="van-hairline",Tt=Ot+"--top",$t=Ot+"--bottom",Bt=Ot+"--top-bottom";function It(t){if(!Object(m.c)(t))return t;if(Array.isArray(t))return t.map((function(t){return It(t)}));if("object"==typeof t){var e={};return Object.keys(t).forEach((function(i){e[i]=It(t[i])})),e}return t}function Et(t,e,i){return Math.min(Math.max(t,e),i)}function jt(t,e,i){var n=t.indexOf(e),s="";return-1===n?t:"-"===e&&0!==n?t.slice(0,n):("."===e&&t.match(/^(\.|-\.)/)&&(s=n?"-0":"0"),s+t.slice(0,n+1)+t.slice(n).replace(i,""))}function Dt(t,e,i){void 0===e&&(e=!0),void 0===i&&(i=!0),t=e?jt(t,".",/\./g):t.split(".")[0];var n=e?/[^-0-9.]/g:/[^-0-9]/g;return(t=i?jt(t,"-",/-/g):t.replace(/-/,"")).replace(n,"")}function Pt(t,e){var i=Math.pow(10,10);return Math.round((t+e)*i)/i}var Lt=Object(l.a)("picker-column"),Nt=Lt[0],Mt=Lt[1];function At(t){var e=window.getComputedStyle(t),i=e.transform||e.webkitTransform,n=i.slice(7,i.length-1).split(", ")[5];return Number(n)}function zt(t){return Object(m.f)(t)&&t.disabled}var Vt=m.b&&"onwheel"in window,Rt=null,Ft=Nt({mixins:[F],props:{valueKey:String,readonly:Boolean,allowHtml:Boolean,className:String,itemHeight:Number,defaultIndex:Number,swipeDuration:[Number,String],visibleItemCount:[Number,String],initialOptions:{type:Array,default:function(){return[]}}},data:function(){return{offset:0,duration:0,options:It(this.initialOptions),currentIndex:this.defaultIndex}},created:function(){this.$parent.children&&this.$parent.children.push(this),this.setIndex(this.currentIndex)},mounted:function(){this.bindTouchEvent(this.$el),Vt&&b(this.$el,"wheel",this.onMouseWheel,!1)},destroyed:function(){var t=this.$parent.children;t&&t.splice(t.indexOf(this),1),Vt&&y(this.$el,"wheel")},watch:{initialOptions:"setOptions",defaultIndex:function(t){this.setIndex(t)}},computed:{count:function(){return this.options.length},baseOffset:function(){return this.itemHeight*(this.visibleItemCount-1)/2}},methods:{setOptions:function(t){JSON.stringify(t)!==JSON.stringify(this.options)&&(this.options=It(t),this.setIndex(this.defaultIndex))},onTouchStart:function(t){if(!this.readonly){if(this.touchStart(t),this.moving){var e=At(this.$refs.wrapper);this.offset=Math.min(0,e-this.baseOffset),this.startOffset=this.offset}else this.startOffset=this.offset;this.duration=0,this.transitionEndTrigger=null,this.touchStartTime=Date.now(),this.momentumOffset=this.startOffset}},onTouchMove:function(t){if(!this.readonly){this.touchMove(t),"vertical"===this.direction&&(this.moving=!0,k(t,!0)),this.offset=Et(this.startOffset+this.deltaY,-this.count*this.itemHeight,this.itemHeight);var e=Date.now();e-this.touchStartTime>300&&(this.touchStartTime=e,this.momentumOffset=this.offset)}},onTouchEnd:function(){var t=this;if(!this.readonly){var e=this.offset-this.momentumOffset,i=Date.now()-this.touchStartTime;if(i<300&&Math.abs(e)>15)this.momentum(e,i);else{var n=this.getIndexByOffset(this.offset);this.duration=200,this.setIndex(n,!0),setTimeout((function(){t.moving=!1}),0)}}},onMouseWheel:function(t){var e=this;if(!this.readonly){k(t,!0);var i=At(this.$refs.wrapper);this.startOffset=Math.min(0,i-this.baseOffset),this.momentumOffset=this.startOffset,this.transitionEndTrigger=null;var n=t.deltaY;if(!(0===this.startOffset&&n<0)){var s=this.itemHeight*(n>0?-1:1);this.offset=Et(this.startOffset+s,-this.count*this.itemHeight,this.itemHeight),Rt&&clearTimeout(Rt),Rt=setTimeout((function(){e.onTouchEnd(),e.touchStartTime=0}),300)}}},onTransitionEnd:function(){this.stopMomentum()},onClickItem:function(t){this.moving||this.readonly||(this.transitionEndTrigger=null,this.duration=200,this.setIndex(t,!0))},adjustIndex:function(t){for(var e=t=Et(t,0,this.count);e<this.count;e++)if(!zt(this.options[e]))return e;for(var i=t-1;i>=0;i--)if(!zt(this.options[i]))return i},getOptionText:function(t){return Object(m.f)(t)&&this.valueKey in t?t[this.valueKey]:t},setIndex:function(t,e){var i=this,n=-(t=this.adjustIndex(t)||0)*this.itemHeight,s=function(){t!==i.currentIndex&&(i.currentIndex=t,e&&i.$emit("change",t))};this.moving&&n!==this.offset?this.transitionEndTrigger=s:s(),this.offset=n},setValue:function(t){for(var e=this.options,i=0;i<e.length;i++)if(this.getOptionText(e[i])===t)return this.setIndex(i)},getValue:function(){return this.options[this.currentIndex]},getIndexByOffset:function(t){return Et(Math.round(-t/this.itemHeight),0,this.count-1)},momentum:function(t,e){var i=Math.abs(t/e);t=this.offset+i/.003*(t<0?-1:1);var n=this.getIndexByOffset(t);this.duration=+this.swipeDuration,this.setIndex(n,!0)},stopMomentum:function(){this.moving=!1,this.duration=0,this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},genOptions:function(){var t=this,e=this.$createElement,i={height:this.itemHeight+"px"};return this.options.map((function(n,s){var o,a=t.getOptionText(n),l=zt(n),c={style:i,attrs:{role:"button",tabindex:l?-1:0},class:[Mt("item",{disabled:l,selected:s===t.currentIndex})],on:{click:function(){t.onClickItem(s)}}},u={class:"van-ellipsis",domProps:(o={},o[t.allowHtml?"innerHTML":"textContent"]=a,o)};return e("li",r()([{},c]),[t.slots("option",n)||e("div",r()([{},u]))])}))}},render:function(){var t=arguments[0],e={transform:"translate3d(0, "+(this.offset+this.baseOffset)+"px, 0)",transitionDuration:this.duration+"ms",transitionProperty:this.duration?"all":"none"};return t("div",{class:[Mt(),this.className]},[t("ul",{ref:"wrapper",style:e,class:Mt("wrapper"),on:{transitionend:this.onTransitionEnd}},[this.genOptions()])])}}),Ht=Object(l.a)("picker"),_t=Ht[0],Wt=Ht[1],qt=Ht[2],Ut=_t({props:n({},wt,{defaultIndex:{type:[Number,String],default:0},columns:{type:Array,default:function(){return[]}},toolbarPosition:{type:String,default:"top"},valueKey:{type:String,default:"text"}}),data:function(){return{children:[],formattedColumns:[]}},computed:{itemPxHeight:function(){return this.itemHeight?Object(Y.b)(this.itemHeight):44},dataType:function(){var t=this.columns[0]||{};return t.children?"cascade":t.values?"object":"text"}},watch:{columns:{handler:"format",immediate:!0}},methods:{format:function(){var t=this.columns,e=this.dataType;"text"===e?this.formattedColumns=[{values:t}]:"cascade"===e?this.formatCascade():this.formattedColumns=t},formatCascade:function(){for(var t=[],e={children:this.columns};e&&e.children;){for(var i,n=e.children,s=null!=(i=e.defaultIndex)?i:+this.defaultIndex;n[s]&&n[s].disabled;){if(!(s<n.length-1)){s=0;break}s++}t.push({values:e.children,className:e.className,defaultIndex:s}),e=n[s]}this.formattedColumns=t},emit:function(t){var e=this;if("text"===this.dataType)this.$emit(t,this.getColumnValue(0),this.getColumnIndex(0));else{var i=this.getValues();"cascade"===this.dataType&&(i=i.map((function(t){return t[e.valueKey]}))),this.$emit(t,i,this.getIndexes())}},onCascadeChange:function(t){for(var e={children:this.columns},i=this.getIndexes(),n=0;n<=t;n++)e=e.children[i[n]];for(;e&&e.children;)t++,this.setColumnValues(t,e.children),e=e.children[e.defaultIndex||0]},onChange:function(t){var e=this;if("cascade"===this.dataType&&this.onCascadeChange(t),"text"===this.dataType)this.$emit("change",this,this.getColumnValue(0),this.getColumnIndex(0));else{var i=this.getValues();"cascade"===this.dataType&&(i=i.map((function(t){return t[e.valueKey]}))),this.$emit("change",this,i,t)}},getColumn:function(t){return this.children[t]},getColumnValue:function(t){var e=this.getColumn(t);return e&&e.getValue()},setColumnValue:function(t,e){var i=this.getColumn(t);i&&(i.setValue(e),"cascade"===this.dataType&&this.onCascadeChange(t))},getColumnIndex:function(t){return(this.getColumn(t)||{}).currentIndex},setColumnIndex:function(t,e){var i=this.getColumn(t);i&&(i.setIndex(e),"cascade"===this.dataType&&this.onCascadeChange(t))},getColumnValues:function(t){return(this.children[t]||{}).options},setColumnValues:function(t,e){var i=this.children[t];i&&i.setOptions(e)},getValues:function(){return this.children.map((function(t){return t.getValue()}))},setValues:function(t){var e=this;t.forEach((function(t,i){e.setColumnValue(i,t)}))},getIndexes:function(){return this.children.map((function(t){return t.currentIndex}))},setIndexes:function(t){var e=this;t.forEach((function(t,i){e.setColumnIndex(i,t)}))},confirm:function(){this.children.forEach((function(t){return t.stopMomentum()})),this.emit("confirm")},cancel:function(){this.emit("cancel")},genTitle:function(){var t=this.$createElement,e=this.slots("title");return e||(this.title?t("div",{class:["van-ellipsis",Wt("title")]},[this.title]):void 0)},genCancel:function(){return(0,this.$createElement)("button",{attrs:{type:"button"},class:Wt("cancel"),on:{click:this.cancel}},[this.slots("cancel")||this.cancelButtonText||qt("cancel")])},genConfirm:function(){return(0,this.$createElement)("button",{attrs:{type:"button"},class:Wt("confirm"),on:{click:this.confirm}},[this.slots("confirm")||this.confirmButtonText||qt("confirm")])},genToolbar:function(){var t=this.$createElement;if(this.showToolbar)return t("div",{class:Wt("toolbar")},[this.slots()||[this.genCancel(),this.genTitle(),this.genConfirm()]])},genColumns:function(){var t=this.$createElement,e=this.itemPxHeight,i=e*this.visibleItemCount,n={height:e+"px"},s={height:i+"px"},r={backgroundSize:"100% "+(i-e)/2+"px"};return t("div",{class:Wt("columns"),style:s,on:{touchmove:k}},[this.genColumnItems(),t("div",{class:Wt("mask"),style:r}),t("div",{class:["van-hairline-unset--top-bottom",Wt("frame")],style:n})])},genColumnItems:function(){var t=this,e=this.$createElement;return this.formattedColumns.map((function(i,n){var s;return e(Ft,{attrs:{readonly:t.readonly,valueKey:t.valueKey,allowHtml:t.allowHtml,className:i.className,itemHeight:t.itemPxHeight,defaultIndex:null!=(s=i.defaultIndex)?s:+t.defaultIndex,swipeDuration:t.swipeDuration,visibleItemCount:t.visibleItemCount,initialOptions:i.values},scopedSlots:{option:t.$scopedSlots.option},on:{change:function(){t.onChange(n)}}})}))}},render:function(t){return t("div",{class:Wt()},["top"===this.toolbarPosition?this.genToolbar():t(),this.loading?t(vt,{class:Wt("loading")}):t(),this.slots("columns-top"),this.genColumns(),this.slots("columns-bottom"),"bottom"===this.toolbarPosition?this.genToolbar():t()])}}),Kt=Object(l.a)("area"),Yt=Kt[0],Xt=Kt[1];function Qt(t,e){var i=t.$slots,n=t.$scopedSlots,s={};return e.forEach((function(t){n[t]?s[t]=n[t]:i[t]&&(s[t]=function(){return i[t]})})),s}var Gt=Yt({props:n({},wt,{value:String,areaList:{type:Object,default:function(){return{}}},columnsNum:{type:[Number,String],default:3},isOverseaCode:{type:Function,default:function(t){return"9"===t[0]}},columnsPlaceholder:{type:Array,default:function(){return[]}}}),data:function(){return{code:this.value,columns:[{values:[]},{values:[]},{values:[]}]}},computed:{province:function(){return this.areaList.province_list||{}},city:function(){return this.areaList.city_list||{}},county:function(){return this.areaList.county_list||{}},displayColumns:function(){return this.columns.slice(0,+this.columnsNum)},placeholderMap:function(){return{province:this.columnsPlaceholder[0]||"",city:this.columnsPlaceholder[1]||"",county:this.columnsPlaceholder[2]||""}}},watch:{value:function(t){this.code=t,this.setValues()},areaList:{deep:!0,handler:"setValues"},columnsNum:function(){var t=this;this.$nextTick((function(){t.setValues()}))}},mounted:function(){this.setValues()},methods:{getList:function(t,e){var i=[];if("province"!==t&&!e)return i;var n=this[t];if(i=Object.keys(n).map((function(t){return{code:t,name:n[t]}})),e&&(this.isOverseaCode(e)&&"city"===t&&(e="9"),i=i.filter((function(t){return 0===t.code.indexOf(e)}))),this.placeholderMap[t]&&i.length){var s="";"city"===t?s="000000".slice(2,4):"county"===t&&(s="000000".slice(4,6)),i.unshift({code:""+e+s,name:this.placeholderMap[t]})}return i},getIndex:function(t,e){var i="province"===t?2:"city"===t?4:6,n=this.getList(t,e.slice(0,i-2));this.isOverseaCode(e)&&"province"===t&&(i=1),e=e.slice(0,i);for(var s=0;s<n.length;s++)if(n[s].code.slice(0,i)===e)return s;return 0},parseOutputValues:function(t){var e=this;return t.map((function(t,i){return t?((t=JSON.parse(JSON.stringify(t))).code&&t.name!==e.columnsPlaceholder[i]||(t.code="",t.name=""),t):t}))},onChange:function(t,e,i){this.code=e[i].code,this.setValues();var n=this.parseOutputValues(t.getValues());this.$emit("change",t,n,i)},onConfirm:function(t,e){t=this.parseOutputValues(t),this.setValues(),this.$emit("confirm",t,e)},getDefaultCode:function(){if(this.columnsPlaceholder.length)return"000000";var t=Object.keys(this.county);if(t[0])return t[0];var e=Object.keys(this.city);return e[0]?e[0]:""},setValues:function(){var t=this.code;t||(t=this.getDefaultCode());var e=this.$refs.picker,i=this.getList("province"),n=this.getList("city",t.slice(0,2));e&&(e.setColumnValues(0,i),e.setColumnValues(1,n),n.length&&"00"===t.slice(2,4)&&!this.isOverseaCode(t)&&(t=n[0].code),e.setColumnValues(2,this.getList("county",t.slice(0,4))),e.setIndexes([this.getIndex("province",t),this.getIndex("city",t),this.getIndex("county",t)]))},getValues:function(){var t=this.$refs.picker,e=t?t.getValues().filter((function(t){return!!t})):[];return e=this.parseOutputValues(e),e},getArea:function(){var t=this.getValues(),e={code:"",country:"",province:"",city:"",county:""};if(!t.length)return e;var i=t.map((function(t){return t.name})),n=t.filter((function(t){return!!t.code}));return e.code=n.length?n[n.length-1].code:"",this.isOverseaCode(e.code)?(e.country=i[1]||"",e.province=i[2]||""):(e.province=i[0]||"",e.city=i[1]||"",e.county=i[2]||""),e},reset:function(t){this.code=t||"",this.setValues()}},render:function(){var t=arguments[0],e=n({},this.$listeners,{change:this.onChange,confirm:this.onConfirm});return t(Ut,{ref:"picker",class:Xt(),attrs:{showToolbar:!0,valueKey:"name",title:this.title,columns:this.displayColumns,loading:this.loading,readonly:this.readonly,itemHeight:this.itemHeight,swipeDuration:this.swipeDuration,visibleItemCount:this.visibleItemCount,cancelButtonText:this.cancelButtonText,confirmButtonText:this.confirmButtonText},scopedSlots:Qt(this,["title","columns-top","columns-bottom"]),on:n({},e)})}});function Zt(t,e){var i=e.to,n=e.url,s=e.replace;if(i&&t){var r=t[s?"replace":"push"](i);r&&r.catch&&r.catch((function(t){if(t&&!function(t){return"NavigationDuplicated"===t.name||t.message&&-1!==t.message.indexOf("redundant navigation")}(t))throw t}))}else n&&(s?location.replace(n):location.href=n)}function Jt(t){Zt(t.parent&&t.parent.$router,t.props)}var te={url:String,replace:Boolean,to:[String,Object]},ee={icon:String,size:String,center:Boolean,isLink:Boolean,required:Boolean,iconPrefix:String,titleStyle:null,titleClass:null,valueClass:null,labelClass:null,title:[Number,String],value:[Number,String],label:[Number,String],arrowDirection:String,border:{type:Boolean,default:!0},clickable:{type:Boolean,default:null}},ie=Object(l.a)("cell"),ne=ie[0],se=ie[1];function re(t,e,i,n){var s,o=e.icon,a=e.size,l=e.title,c=e.label,u=e.value,f=e.isLink,p=i.title||Object(m.c)(l);function v(){if(i.label||Object(m.c)(c))return t("div",{class:[se("label"),e.labelClass]},[i.label?i.label():c])}var g=null!=(s=e.clickable)?s:f,b={clickable:g,center:e.center,required:e.required,borderless:!e.border};return a&&(b[a]=a),t("div",r()([{class:se(b),attrs:{role:g?"button":null,tabindex:g?0:null},on:{click:function(t){d(n,"click",t),Jt(n)}}},h(n)]),[i.icon?i.icon():o?t(rt,{class:se("left-icon"),attrs:{name:o,classPrefix:e.iconPrefix}}):void 0,function(){if(p)return t("div",{class:[se("title"),e.titleClass],style:e.titleStyle},[i.title?i.title():t("span",[l]),v()])}(),function(){if(i.default||Object(m.c)(u))return t("div",{class:[se("value",{alone:!p}),e.valueClass]},[i.default?i.default():t("span",[u])])}(),function(){var n=i["right-icon"];if(n)return n();if(f){var s=e.arrowDirection;return t(rt,{class:se("right-icon"),attrs:{name:s?"arrow-"+s:"arrow"}})}}(),null==i.extra?void 0:i.extra()])}re.props=n({},ee,te);var oe=ne(re);var ae=!m.h&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());function le(){ae&&V(z())}var ce=Object(l.a)("field"),ue=ce[0],he=ce[1],de=ue({inheritAttrs:!1,provide:function(){return{vanField:this}},inject:{vanForm:{default:null}},props:n({},ee,{name:String,rules:Array,disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},autosize:[Boolean,Object],leftIcon:String,rightIcon:String,clearable:Boolean,formatter:Function,maxlength:[Number,String],labelWidth:[Number,String],labelClass:null,labelAlign:String,inputAlign:String,placeholder:String,errorMessage:String,errorMessageAlign:String,showWordLimit:Boolean,value:{type:[Number,String],default:""},type:{type:String,default:"text"},error:{type:Boolean,default:null},colon:{type:Boolean,default:null},clearTrigger:{type:String,default:"focus"},formatTrigger:{type:String,default:"onChange"}}),data:function(){return{focused:!1,validateFailed:!1,validateMessage:""}},watch:{value:function(){this.updateValue(this.value),this.resetValidation(),this.validateWithTrigger("onChange"),this.$nextTick(this.adjustSize)}},mounted:function(){this.updateValue(this.value,this.formatTrigger),this.$nextTick(this.adjustSize),this.vanForm&&this.vanForm.addField(this)},beforeDestroy:function(){this.vanForm&&this.vanForm.removeField(this)},computed:{showClear:function(){var t=this.getProp("readonly");if(this.clearable&&!t){var e=Object(m.c)(this.value)&&""!==this.value,i="always"===this.clearTrigger||"focus"===this.clearTrigger&&this.focused;return e&&i}},showError:function(){return null!==this.error?this.error:!!(this.vanForm&&this.vanForm.showError&&this.validateFailed)||void 0},listeners:function(){return n({},this.$listeners,{blur:this.onBlur,focus:this.onFocus,input:this.onInput,click:this.onClickInput,keypress:this.onKeypress})},labelStyle:function(){var t=this.getProp("labelWidth");if(t)return{width:Object(Y.a)(t)}},formValue:function(){return this.children&&(this.$scopedSlots.input||this.$slots.input)?this.children.value:this.value}},methods:{focus:function(){this.$refs.input&&this.$refs.input.focus()},blur:function(){this.$refs.input&&this.$refs.input.blur()},runValidator:function(t,e){return new Promise((function(i){var n=e.validator(t,e);if(Object(m.g)(n))return n.then(i);i(n)}))},isEmptyValue:function(t){return Array.isArray(t)?!t.length:0!==t&&!t},runSyncRule:function(t,e){return(!e.required||!this.isEmptyValue(t))&&!(e.pattern&&!e.pattern.test(t))},getRuleMessage:function(t,e){var i=e.message;return Object(m.e)(i)?i(t,e):i},runRules:function(t){var e=this;return t.reduce((function(t,i){return t.then((function(){if(!e.validateFailed){var t=e.formValue;return i.formatter&&(t=i.formatter(t,i)),e.runSyncRule(t,i)?i.validator?e.runValidator(t,i).then((function(n){!1===n&&(e.validateFailed=!0,e.validateMessage=e.getRuleMessage(t,i))})):void 0:(e.validateFailed=!0,void(e.validateMessage=e.getRuleMessage(t,i)))}}))}),Promise.resolve())},validate:function(t){var e=this;return void 0===t&&(t=this.rules),new Promise((function(i){t||i(),e.resetValidation(),e.runRules(t).then((function(){e.validateFailed?i({name:e.name,message:e.validateMessage}):i()}))}))},validateWithTrigger:function(t){if(this.vanForm&&this.rules){var e=this.vanForm.validateTrigger===t,i=this.rules.filter((function(i){return i.trigger?i.trigger===t:e}));i.length&&this.validate(i)}},resetValidation:function(){this.validateFailed&&(this.validateFailed=!1,this.validateMessage="")},updateValue:function(t,e){void 0===e&&(e="onChange"),t=Object(m.c)(t)?String(t):"";var i=this.maxlength;if(Object(m.c)(i)&&t.length>i&&(t=this.value&&this.value.length===+i?this.value:t.slice(0,i)),"number"===this.type||"digit"===this.type){var n="number"===this.type;t=Dt(t,n,n)}this.formatter&&e===this.formatTrigger&&(t=this.formatter(t));var s=this.$refs.input;s&&t!==s.value&&(s.value=t),t!==this.value&&this.$emit("input",t)},onInput:function(t){t.target.composing||this.updateValue(t.target.value)},onFocus:function(t){this.focused=!0,this.$emit("focus",t),this.$nextTick(this.adjustSize),this.getProp("readonly")&&this.blur()},onBlur:function(t){this.getProp("readonly")||(this.focused=!1,this.updateValue(this.value,"onBlur"),this.$emit("blur",t),this.validateWithTrigger("onBlur"),this.$nextTick(this.adjustSize),le())},onClick:function(t){this.$emit("click",t)},onClickInput:function(t){this.$emit("click-input",t)},onClickLeftIcon:function(t){this.$emit("click-left-icon",t)},onClickRightIcon:function(t){this.$emit("click-right-icon",t)},onClear:function(t){k(t),this.$emit("input",""),this.$emit("clear",t)},onKeypress:function(t){13===t.keyCode&&(this.getProp("submitOnEnter")||"textarea"===this.type||k(t),"search"===this.type&&this.blur());this.$emit("keypress",t)},adjustSize:function(){var t=this.$refs.input;if("textarea"===this.type&&this.autosize&&t){var e=z();t.style.height="auto";var i=t.scrollHeight;if(Object(m.f)(this.autosize)){var n=this.autosize,s=n.maxHeight,r=n.minHeight;s&&(i=Math.min(i,s)),r&&(i=Math.max(i,r))}i&&(t.style.height=i+"px",V(e))}},genInput:function(){var t=this.$createElement,e=this.type,i=this.getProp("disabled"),s=this.getProp("readonly"),o=this.slots("input"),a=this.getProp("inputAlign");if(o)return t("div",{class:he("control",[a,"custom"]),on:{click:this.onClickInput}},[o]);var l={ref:"input",class:he("control",a),domProps:{value:this.value},attrs:n({},this.$attrs,{name:this.name,disabled:i,readonly:s,placeholder:this.placeholder}),on:this.listeners,directives:[{name:"model",value:this.value}]};if("textarea"===e)return t("textarea",r()([{},l]));var c,u=e;return"number"===e&&(u="text",c="decimal"),"digit"===e&&(u="tel",c="numeric"),t("input",r()([{attrs:{type:u,inputmode:c}},l]))},genLeftIcon:function(){var t=this.$createElement;if(this.slots("left-icon")||this.leftIcon)return t("div",{class:he("left-icon"),on:{click:this.onClickLeftIcon}},[this.slots("left-icon")||t(rt,{attrs:{name:this.leftIcon,classPrefix:this.iconPrefix}})])},genRightIcon:function(){var t=this.$createElement,e=this.slots;if(e("right-icon")||this.rightIcon)return t("div",{class:he("right-icon"),on:{click:this.onClickRightIcon}},[e("right-icon")||t(rt,{attrs:{name:this.rightIcon,classPrefix:this.iconPrefix}})])},genWordLimit:function(){var t=this.$createElement;if(this.showWordLimit&&this.maxlength){var e=(this.value||"").length;return t("div",{class:he("word-limit")},[t("span",{class:he("word-num")},[e]),"/",this.maxlength])}},genMessage:function(){var t=this.$createElement;if(!this.vanForm||!1!==this.vanForm.showErrorMessage){var e=this.errorMessage||this.validateMessage;if(e){var i=this.getProp("errorMessageAlign");return t("div",{class:he("error-message",i)},[e])}}},getProp:function(t){return Object(m.c)(this[t])?this[t]:this.vanForm&&Object(m.c)(this.vanForm[t])?this.vanForm[t]:void 0},genLabel:function(){var t=this.$createElement,e=this.getProp("colon")?":":"";return this.slots("label")?[this.slots("label"),e]:this.label?t("span",[this.label+e]):void 0}},render:function(){var t,e=arguments[0],i=this.slots,n=this.getProp("disabled"),s=this.getProp("labelAlign"),r={icon:this.genLeftIcon},o=this.genLabel();o&&(r.title=function(){return o});var a=this.slots("extra");return a&&(r.extra=function(){return a}),e(oe,{attrs:{icon:this.leftIcon,size:this.size,center:this.center,border:this.border,isLink:this.isLink,required:this.required,clickable:this.clickable,titleStyle:this.labelStyle,valueClass:he("value"),titleClass:[he("label",s),this.labelClass],arrowDirection:this.arrowDirection},scopedSlots:r,class:he((t={error:this.showError,disabled:n},t["label-"+s]=s,t["min-height"]="textarea"===this.type&&!this.autosize,t)),on:{click:this.onClick}},[e("div",{class:he("body")},[this.genInput(),this.showClear&&e(rt,{attrs:{name:"clear"},class:he("clear"),on:{touchstart:this.onClear}}),this.genRightIcon(),i("button")&&e("div",{class:he("button")},[i("button")])]),this.genWordLimit(),this.genMessage()])}}),fe=0;var pe=Object(l.a)("toast"),me=pe[0],ve=pe[1],ge=me({mixins:[K()],props:{icon:String,className:null,iconPrefix:String,loadingType:String,forbidClick:Boolean,closeOnClick:Boolean,message:[Number,String],type:{type:String,default:"text"},position:{type:String,default:"middle"},transition:{type:String,default:"van-fade"},lockScroll:{type:Boolean,default:!1}},data:function(){return{clickable:!1}},mounted:function(){this.toggleClickable()},destroyed:function(){this.toggleClickable()},watch:{value:"toggleClickable",forbidClick:"toggleClickable"},methods:{onClick:function(){this.closeOnClick&&this.close()},toggleClickable:function(){var t=this.value&&this.forbidClick;this.clickable!==t&&(this.clickable=t,t?(fe||document.body.classList.add("van-toast--unclickable"),fe++):--fe||document.body.classList.remove("van-toast--unclickable"))},onAfterEnter:function(){this.$emit("opened"),this.onOpened&&this.onOpened()},onAfterLeave:function(){this.$emit("closed")},genIcon:function(){var t=this.$createElement,e=this.icon,i=this.type,n=this.iconPrefix,s=this.loadingType;return e||"success"===i||"fail"===i?t(rt,{class:ve("icon"),attrs:{classPrefix:n,name:e||i}}):"loading"===i?t(vt,{class:ve("loading"),attrs:{type:s}}):void 0},genMessage:function(){var t=this.$createElement,e=this.type,i=this.message;if(Object(m.c)(i)&&""!==i)return"html"===e?t("div",{class:ve("text"),domProps:{innerHTML:i}}):t("div",{class:ve("text")},[i])}},render:function(){var t,e=arguments[0];return e("transition",{attrs:{name:this.transition},on:{afterEnter:this.onAfterEnter,afterLeave:this.onAfterLeave}},[e("div",{directives:[{name:"show",value:this.value}],class:[ve([this.position,(t={},t[this.type]=!this.icon,t)]),this.className],on:{click:this.onClick}},[this.genIcon(),this.genMessage()])])}}),be={icon:"",type:"text",mask:!1,value:!0,message:"",className:"",overlay:!1,onClose:null,onOpened:null,duration:2e3,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,getContainer:"body",overlayStyle:null,closeOnClick:!1,closeOnClickOverlay:!1},ye={},Se=[],ke=!1,xe=n({},be);function we(t){return Object(m.f)(t)?t:{message:t}}function Ce(){if(m.h)return{};if(!(Se=Se.filter((function(t){return!t.$el.parentNode||(e=t.$el,document.body.contains(e));var e}))).length||ke){var t=new(a.a.extend(ge))({el:document.createElement("div")});t.$on("input",(function(e){t.value=e})),Se.push(t)}return Se[Se.length-1]}function Oe(t){void 0===t&&(t={});var e=Ce();return e.value&&e.updateZIndex(),t=we(t),(t=n({},xe,ye[t.type||xe.type],t)).clear=function(){e.value=!1,t.onClose&&(t.onClose(),t.onClose=null),ke&&!m.h&&e.$on("closed",(function(){clearTimeout(e.timer),Se=Se.filter((function(t){return t!==e})),B(e.$el),e.$destroy()}))},n(e,function(t){return n({},t,{overlay:t.mask||t.overlay,mask:void 0,duration:void 0})}(t)),clearTimeout(e.timer),t.duration>0&&(e.timer=setTimeout((function(){e.clear()}),t.duration)),e}["loading","success","fail"].forEach((function(t){var e;Oe[t]=(e=t,function(t){return Oe(n({type:e},we(t)))})})),Oe.clear=function(t){Se.length&&(t?(Se.forEach((function(t){t.clear()})),Se=[]):ke?Se.shift().clear():Se[0].clear())},Oe.setDefaultOptions=function(t,e){"string"==typeof t?ye[t]=e:n(xe,t)},Oe.resetDefaultOptions=function(t){"string"==typeof t?ye[t]=null:(xe=n({},be),ye={})},Oe.allowMultiple=function(t){void 0===t&&(t=!0),ke=t},Oe.install=function(){a.a.use(ge)},a.a.prototype.$toast=Oe;var Te=Oe,$e=Object(l.a)("button"),Be=$e[0],Ie=$e[1];function Ee(t,e,i,n){var s,o=e.tag,a=e.icon,l=e.type,c=e.color,u=e.plain,f=e.disabled,p=e.loading,m=e.hairline,v=e.loadingText,g=e.iconPosition,b={};c&&(b.color=u?c:"white",u||(b.background=c),-1!==c.indexOf("gradient")?b.border=0:b.borderColor=c);var y,S,k=[Ie([l,e.size,{plain:u,loading:p,disabled:f,hairline:m,block:e.block,round:e.round,square:e.square}]),(s={},s["van-hairline--surround"]=m,s)];function x(){return p?i.loading?i.loading():t(vt,{class:Ie("loading"),attrs:{size:e.loadingSize,type:e.loadingType,color:"currentColor"}}):i.icon?t("div",{class:Ie("icon")},[i.icon()]):a?t(rt,{attrs:{name:a,classPrefix:e.iconPrefix},class:Ie("icon")}):void 0}return t(o,r()([{style:b,class:k,attrs:{type:e.nativeType,disabled:f},on:{click:function(t){e.loading&&t.preventDefault(),p||f||(d(n,"click",t),Jt(n))},touchstart:function(t){d(n,"touchstart",t)}}},h(n)]),[t("div",{class:Ie("content")},[(S=[],"left"===g&&S.push(x()),(y=p?v:i.default?i.default():e.text)&&S.push(t("span",{class:Ie("text")},[y])),"right"===g&&S.push(x()),S)])])}Ee.props=n({},te,{text:String,icon:String,color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:String,loadingText:String,loadingType:String,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"},iconPosition:{type:String,default:"left"}});var je=Be(Ee);function De(t,e){var i=e.$vnode.componentOptions;if(i&&i.children){var n=function(t){var e=[];return function t(i){i.forEach((function(i){e.push(i),i.componentInstance&&t(i.componentInstance.$children.map((function(t){return t.$vnode}))),i.children&&t(i.children)}))}(t),e}(i.children);t.sort((function(t,e){return n.indexOf(t.$vnode)-n.indexOf(e.$vnode)}))}}function Pe(t,e){var i,n;void 0===e&&(e={});var s=e.indexKey||"index";return{inject:(i={},i[t]={default:null},i),computed:(n={parent:function(){return this.disableBindRelation?null:this[t]}},n[s]=function(){return this.bindRelation(),this.parent?this.parent.children.indexOf(this):null},n),watch:{disableBindRelation:function(t){t||this.bindRelation()}},mounted:function(){this.bindRelation()},beforeDestroy:function(){var t=this;this.parent&&(this.parent.children=this.parent.children.filter((function(e){return e!==t})))},methods:{bindRelation:function(){if(this.parent&&-1===this.parent.children.indexOf(this)){var t=[].concat(this.parent.children,[this]);De(t,this.parent),this.parent.children=t}}}}}function Le(t){return{provide:function(){var e;return(e={})[t]=this,e},data:function(){return{children:[]}}}}var Ne,Me=Object(l.a)("goods-action"),Ae=Me[0],ze=Me[1],Ve=Ae({mixins:[Le("vanGoodsAction")],props:{safeAreaInsetBottom:{type:Boolean,default:!0}},render:function(){var t=arguments[0];return t("div",{class:ze({unfit:!this.safeAreaInsetBottom})},[this.slots()])}}),Re=Object(l.a)("goods-action-button"),Fe=Re[0],He=Re[1],_e=Fe({mixins:[Pe("vanGoodsAction")],props:n({},te,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean}),computed:{isFirst:function(){var t=this.parent&&this.parent.children[this.index-1];return!t||t.$options.name!==this.$options.name},isLast:function(){var t=this.parent&&this.parent.children[this.index+1];return!t||t.$options.name!==this.$options.name}},methods:{onClick:function(t){this.$emit("click",t),Zt(this.$router,this)}},render:function(){var t=arguments[0];return t(je,{class:He([{first:this.isFirst,last:this.isLast},this.type]),attrs:{size:"large",type:this.type,icon:this.icon,color:this.color,loading:this.loading,disabled:this.disabled},on:{click:this.onClick}},[this.slots()||this.text])}}),We=Object(l.a)("dialog"),qe=We[0],Ue=We[1],Ke=We[2],Ye=qe({mixins:[K()],props:{title:String,theme:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,overlay:{type:Boolean,default:!0},allowHtml:{type:Boolean,default:!0},transition:{type:String,default:"van-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(t){var e=this;this.$emit(t),this.value&&(this.beforeClose?(this.loading[t]=!0,this.beforeClose(t,(function(i){!1!==i&&e.loading[t]&&e.onClose(t),e.loading.confirm=!1,e.loading.cancel=!1}))):this.onClose(t))},onClose:function(t){this.close(),this.callback&&this.callback(t)},onOpened:function(){var t=this;this.$emit("opened"),this.$nextTick((function(){var e;null==(e=t.$refs.dialog)||e.focus()}))},onClosed:function(){this.$emit("closed")},onKeydown:function(t){var e=this;if("Escape"===t.key||"Enter"===t.key){if(t.target!==this.$refs.dialog)return;({Enter:this.showConfirmButton?function(){return e.handleAction("confirm")}:m.i,Escape:this.showCancelButton?function(){return e.handleAction("cancel")}:m.i})[t.key](),this.$emit("keydown",t)}},genRoundButtons:function(){var t=this,e=this.$createElement;return e(Ve,{class:Ue("footer")},[this.showCancelButton&&e(_e,{attrs:{size:"large",type:"warning",text:this.cancelButtonText||Ke("cancel"),color:this.cancelButtonColor,loading:this.loading.cancel},class:Ue("cancel"),on:{click:function(){t.handleAction("cancel")}}}),this.showConfirmButton&&e(_e,{attrs:{size:"large",type:"danger",text:this.confirmButtonText||Ke("confirm"),color:this.confirmButtonColor,loading:this.loading.confirm},class:Ue("confirm"),on:{click:function(){t.handleAction("confirm")}}})])},genButtons:function(){var t,e=this,i=this.$createElement,n=this.showCancelButton&&this.showConfirmButton;return i("div",{class:[Tt,Ue("footer")]},[this.showCancelButton&&i(je,{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||Ke("cancel"),nativeType:"button"},class:Ue("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){e.handleAction("cancel")}}}),this.showConfirmButton&&i(je,{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||Ke("confirm"),nativeType:"button"},class:[Ue("confirm"),(t={},t["van-hairline--left"]=n,t)],style:{color:this.confirmButtonColor},on:{click:function(){e.handleAction("confirm")}}})])},genContent:function(t,e){var i=this.$createElement;if(e)return i("div",{class:Ue("content")},[e]);var n=this.message,s=this.messageAlign;if(n){var o,a,l={class:Ue("message",(o={"has-title":t},o[s]=s,o)),domProps:(a={},a[this.allowHtml?"innerHTML":"textContent"]=n,a)};return i("div",{class:Ue("content",{isolated:!t})},[i("div",r()([{},l]))])}}},render:function(){var t=arguments[0];if(this.shouldRender){var e=this.message,i=this.slots(),n=this.slots("title")||this.title,s=n&&t("div",{class:Ue("header",{isolated:!e&&!i})},[n]);return t("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[t("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||e,tabIndex:0},class:[Ue([this.theme]),this.className],style:{width:Object(Y.a)(this.width)},ref:"dialog",on:{keydown:this.onKeydown}},[s,this.genContent(n,i),"round-button"===this.theme?this.genRoundButtons():this.genButtons()])])}}});function Xe(t){return m.h?Promise.resolve():new Promise((function(e,i){var s;Ne&&(s=Ne.$el,document.body.contains(s))||(Ne&&Ne.$destroy(),(Ne=new(a.a.extend(Ye))({el:document.createElement("div"),propsData:{lazyRender:!1}})).$on("input",(function(t){Ne.value=t}))),n(Ne,Xe.currentOptions,t,{resolve:e,reject:i})}))}Xe.defaultOptions={value:!0,title:"",width:"",theme:null,message:"",overlay:!0,className:"",allowHtml:!0,lockScroll:!0,transition:"van-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1,callback:function(t){Ne["confirm"===t?"resolve":"reject"](t)}},Xe.alert=Xe,Xe.confirm=function(t){return Xe(n({showCancelButton:!0},t))},Xe.close=function(){Ne&&(Ne.value=!1)},Xe.setDefaultOptions=function(t){n(Xe.currentOptions,t)},Xe.resetDefaultOptions=function(){Xe.currentOptions=n({},Xe.defaultOptions)},Xe.resetDefaultOptions(),Xe.install=function(){a.a.use(Ye)},Xe.Component=Ye,a.a.prototype.$dialog=Xe;var Qe=Xe,Ge=Object(l.a)("address-edit-detail"),Ze=Ge[0],Je=Ge[1],ti=Ge[2],ei=!m.h&&/android/.test(navigator.userAgent.toLowerCase()),ii=Ze({props:{value:String,errorMessage:String,focused:Boolean,detailRows:[Number,String],searchResult:Array,detailMaxlength:[Number,String],showSearchResult:Boolean},computed:{shouldShowSearchResult:function(){return this.focused&&this.searchResult&&this.showSearchResult}},methods:{onSelect:function(t){this.$emit("select-search",t),this.$emit("input",((t.address||"")+" "+(t.name||"")).trim())},onFinish:function(){this.$refs.field.blur()},genFinish:function(){var t=this.$createElement;if(this.value&&this.focused&&ei)return t("div",{class:Je("finish"),on:{click:this.onFinish}},[ti("complete")])},genSearchResult:function(){var t=this,e=this.$createElement,i=this.value,n=this.shouldShowSearchResult,s=this.searchResult;if(n)return s.map((function(n){return e(oe,{key:n.name+n.address,attrs:{clickable:!0,border:!1,icon:"location-o",label:n.address},class:Je("search-item"),on:{click:function(){t.onSelect(n)}},scopedSlots:{title:function(){if(n.name){var t=n.name.replace(i,"<span class="+Je("keyword")+">"+i+"</span>");return e("div",{domProps:{innerHTML:t}})}}}})}))}},render:function(){var t=arguments[0];return t(oe,{class:Je()},[t(de,{attrs:{autosize:!0,rows:this.detailRows,clearable:!ei,type:"textarea",value:this.value,errorMessage:this.errorMessage,border:!this.shouldShowSearchResult,label:ti("label"),maxlength:this.detailMaxlength,placeholder:ti("placeholder")},ref:"field",scopedSlots:{icon:this.genFinish},on:n({},this.$listeners)}),this.genSearchResult()])}}),ni={size:[Number,String],value:null,loading:Boolean,disabled:Boolean,activeColor:String,inactiveColor:String,activeValue:{type:null,default:!0},inactiveValue:{type:null,default:!1}},si={inject:{vanField:{default:null}},watch:{value:function(){var t=this.vanField;t&&(t.resetValidation(),t.validateWithTrigger("onChange"))}},created:function(){var t=this.vanField;t&&!t.children&&(t.children=this)}},ri=Object(l.a)("switch"),oi=ri[0],ai=ri[1],li=oi({mixins:[si],props:ni,computed:{checked:function(){return this.value===this.activeValue},style:function(){return{fontSize:Object(Y.a)(this.size),backgroundColor:this.checked?this.activeColor:this.inactiveColor}}},methods:{onClick:function(t){if(this.$emit("click",t),!this.disabled&&!this.loading){var e=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",e),this.$emit("change",e)}},genLoading:function(){var t=this.$createElement;if(this.loading){var e=this.checked?this.activeColor:this.inactiveColor;return t(vt,{class:ai("loading"),attrs:{color:e}})}}},render:function(){var t=arguments[0],e=this.checked,i=this.loading,n=this.disabled;return t("div",{class:ai({on:e,loading:i,disabled:n}),attrs:{role:"switch","aria-checked":String(e)},style:this.style,on:{click:this.onClick}},[t("div",{class:ai("node")},[this.genLoading()])])}}),ci=Object(l.a)("address-edit"),ui=ci[0],hi=ci[1],di=ci[2],fi={name:"",tel:"",country:"",province:"",city:"",county:"",areaCode:"",postalCode:"",addressDetail:"",isDefault:!1};var pi=ui({props:{areaList:Object,isSaving:Boolean,isDeleting:Boolean,validator:Function,showDelete:Boolean,showPostal:Boolean,searchResult:Array,telMaxlength:[Number,String],showSetDefault:Boolean,saveButtonText:String,areaPlaceholder:String,deleteButtonText:String,showSearchResult:Boolean,showArea:{type:Boolean,default:!0},showDetail:{type:Boolean,default:!0},disableArea:Boolean,detailRows:{type:[Number,String],default:1},detailMaxlength:{type:[Number,String],default:200},addressInfo:{type:Object,default:function(){return n({},fi)}},telValidator:{type:Function,default:xt},postalValidator:{type:Function,default:function(t){return/^\d{6}$/.test(t)}},areaColumnsPlaceholder:{type:Array,default:function(){return[]}}},data:function(){return{data:{},showAreaPopup:!1,detailFocused:!1,errorInfo:{tel:"",name:"",areaCode:"",postalCode:"",addressDetail:""}}},computed:{areaListLoaded:function(){return Object(m.f)(this.areaList)&&Object.keys(this.areaList).length},areaText:function(){var t=this.data,e=t.country,i=t.province,n=t.city,s=t.county;if(t.areaCode){var r=[e,i,n,s];return i&&i===n&&r.splice(1,1),r.filter((function(t){return t})).join("/")}return""},hideBottomFields:function(){var t=this.searchResult;return t&&t.length&&this.detailFocused}},watch:{addressInfo:{handler:function(t){this.data=n({},fi,t),this.setAreaCode(t.areaCode)},deep:!0,immediate:!0},areaList:function(){this.setAreaCode(this.data.areaCode)}},methods:{onFocus:function(t){this.errorInfo[t]="",this.detailFocused="addressDetail"===t,this.$emit("focus",t)},onChangeDetail:function(t){this.data.addressDetail=t,this.$emit("change-detail",t)},onAreaConfirm:function(t){(t=t.filter((function(t){return!!t}))).some((function(t){return!t.code}))?Te(di("areaEmpty")):(this.showAreaPopup=!1,this.assignAreaValues(),this.$emit("change-area",t))},assignAreaValues:function(){var t=this.$refs.area;if(t){var e=t.getArea();e.areaCode=e.code,delete e.code,n(this.data,e)}},onSave:function(){var t=this,e=["name","tel"];this.showArea&&e.push("areaCode"),this.showDetail&&e.push("addressDetail"),this.showPostal&&e.push("postalCode"),e.every((function(e){var i=t.getErrorMessage(e);return i&&(t.errorInfo[e]=i),!i}))&&!this.isSaving&&this.$emit("save",this.data)},getErrorMessage:function(t){var e=String(this.data[t]||"").trim();if(this.validator){var i=this.validator(t,e);if(i)return i}switch(t){case"name":return e?"":di("nameEmpty");case"tel":return this.telValidator(e)?"":di("telInvalid");case"areaCode":return e?"":di("areaEmpty");case"addressDetail":return e?"":di("addressEmpty");case"postalCode":return e&&!this.postalValidator(e)?di("postalEmpty"):""}},onDelete:function(){var t=this;Qe.confirm({title:di("confirmDelete")}).then((function(){t.$emit("delete",t.data)})).catch((function(){t.$emit("cancel-delete",t.data)}))},getArea:function(){return this.$refs.area?this.$refs.area.getValues():[]},setAreaCode:function(t){this.data.areaCode=t||"",t&&this.$nextTick(this.assignAreaValues)},setAddressDetail:function(t){this.data.addressDetail=t},onDetailBlur:function(){var t=this;setTimeout((function(){t.detailFocused=!1}))},genSetDefaultCell:function(t){var e=this;if(this.showSetDefault){var i={"right-icon":function(){return t(li,{attrs:{size:"24"},on:{change:function(t){e.$emit("change-default",t)}},model:{value:e.data.isDefault,callback:function(t){e.$set(e.data,"isDefault",t)}}})}};return t(oe,{directives:[{name:"show",value:!this.hideBottomFields}],attrs:{center:!0,title:di("defaultAddress")},class:hi("default"),scopedSlots:i})}return t()}},render:function(t){var e=this,i=this.data,n=this.errorInfo,s=this.disableArea,r=this.hideBottomFields,o=function(t){return function(){return e.onFocus(t)}};return t("div",{class:hi()},[t("div",{class:hi("fields")},[t(de,{attrs:{clearable:!0,label:di("name"),placeholder:di("namePlaceholder"),errorMessage:n.name},on:{focus:o("name")},model:{value:i.name,callback:function(t){e.$set(i,"name",t)}}}),t(de,{attrs:{clearable:!0,type:"tel",label:di("tel"),maxlength:this.telMaxlength,placeholder:di("telPlaceholder"),errorMessage:n.tel},on:{focus:o("tel")},model:{value:i.tel,callback:function(t){e.$set(i,"tel",t)}}}),t(de,{directives:[{name:"show",value:this.showArea}],attrs:{readonly:!0,clickable:!s,label:di("area"),placeholder:this.areaPlaceholder||di("areaPlaceholder"),errorMessage:n.areaCode,rightIcon:s?null:"arrow",value:this.areaText},on:{focus:o("areaCode"),click:function(){e.$emit("click-area"),e.showAreaPopup=!s}}}),t(ii,{directives:[{name:"show",value:this.showDetail}],attrs:{focused:this.detailFocused,value:i.addressDetail,errorMessage:n.addressDetail,detailRows:this.detailRows,detailMaxlength:this.detailMaxlength,searchResult:this.searchResult,showSearchResult:this.showSearchResult},on:{focus:o("addressDetail"),blur:this.onDetailBlur,input:this.onChangeDetail,"select-search":function(t){e.$emit("select-search",t)}}}),this.showPostal&&t(de,{directives:[{name:"show",value:!r}],attrs:{type:"tel",maxlength:"6",label:di("postal"),placeholder:di("postal"),errorMessage:n.postalCode},on:{focus:o("postalCode")},model:{value:i.postalCode,callback:function(t){e.$set(i,"postalCode",t)}}}),this.slots()]),this.genSetDefaultCell(t),t("div",{directives:[{name:"show",value:!r}],class:hi("buttons")},[t(je,{attrs:{block:!0,round:!0,loading:this.isSaving,type:"danger",text:this.saveButtonText||di("save")},on:{click:this.onSave}}),this.showDelete&&t(je,{attrs:{block:!0,round:!0,loading:this.isDeleting,text:this.deleteButtonText||di("delete")},on:{click:this.onDelete}})]),t(ct,{attrs:{round:!0,position:"bottom",lazyRender:!1,getContainer:"body"},model:{value:e.showAreaPopup,callback:function(t){e.showAreaPopup=t}}},[t(Gt,{ref:"area",attrs:{value:i.areaCode,loading:!this.areaListLoaded,areaList:this.areaList,columnsPlaceholder:this.areaColumnsPlaceholder},on:{confirm:this.onAreaConfirm,cancel:function(){e.showAreaPopup=!1}}})])])}}),mi=Object(l.a)("radio-group"),vi=mi[0],gi=mi[1],bi=vi({mixins:[Le("vanRadio"),si],props:{value:null,disabled:Boolean,direction:String,checkedColor:String,iconSize:[Number,String]},watch:{value:function(t){this.$emit("change",t)}},render:function(){var t=arguments[0];return t("div",{class:gi([this.direction]),attrs:{role:"radiogroup"}},[this.slots()])}}),yi=Object(l.a)("tag"),Si=yi[0],ki=yi[1];function xi(t,e,i,n){var s,o=e.type,a=e.mark,l=e.plain,c=e.color,u=e.round,f=e.size,p=e.textColor,m=((s={})[l?"color":"backgroundColor"]=c,s);l?(m.color=p||c,m.borderColor=c):(m.color=p,m.background=c);var v={mark:a,plain:l,round:u};f&&(v[f]=f);var g=e.closeable&&t(rt,{attrs:{name:"cross"},class:ki("close"),on:{click:function(t){t.stopPropagation(),d(n,"close")}}});return t("transition",{attrs:{name:e.closeable?"van-fade":null}},[t("span",r()([{key:"content",style:m,class:ki([v,o])},h(n,!0)]),[null==i.default?void 0:i.default(),g])])}xi.props={size:String,mark:Boolean,color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean,type:{type:String,default:"default"}};var wi=Si(xi),Ci=function(t){var e=t.parent,i=t.bem,n=t.role;return{mixins:[Pe(e),si],props:{name:null,value:null,disabled:Boolean,iconSize:[Number,String],checkedColor:String,labelPosition:String,labelDisabled:Boolean,shape:{type:String,default:"round"},bindGroup:{type:Boolean,default:!0}},computed:{disableBindRelation:function(){return!this.bindGroup},isDisabled:function(){return this.parent&&this.parent.disabled||this.disabled},direction:function(){return this.parent&&this.parent.direction||null},iconStyle:function(){var t=this.checkedColor||this.parent&&this.parent.checkedColor;if(t&&this.checked&&!this.isDisabled)return{borderColor:t,backgroundColor:t}},tabindex:function(){return this.isDisabled||"radio"===n&&!this.checked?-1:0}},methods:{onClick:function(t){var e=this,i=t.target,n=this.$refs.icon,s=n===i||(null==n?void 0:n.contains(i));this.isDisabled||!s&&this.labelDisabled?this.$emit("click",t):(this.toggle(),setTimeout((function(){e.$emit("click",t)})))},genIcon:function(){var t=this.$createElement,e=this.checked,n=this.iconSize||this.parent&&this.parent.iconSize;return t("div",{ref:"icon",class:i("icon",[this.shape,{disabled:this.isDisabled,checked:e}]),style:{fontSize:Object(Y.a)(n)}},[this.slots("icon",{checked:e})||t(rt,{attrs:{name:"success"},style:this.iconStyle})])},genLabel:function(){var t=this.$createElement,e=this.slots();if(e)return t("span",{class:i("label",[this.labelPosition,{disabled:this.isDisabled}])},[e])}},render:function(){var t=arguments[0],e=[this.genIcon()];return"left"===this.labelPosition?e.unshift(this.genLabel()):e.push(this.genLabel()),t("div",{attrs:{role:n,tabindex:this.tabindex,"aria-checked":String(this.checked)},class:i([{disabled:this.isDisabled,"label-disabled":this.labelDisabled},this.direction]),on:{click:this.onClick}},[e])}}},Oi=Object(l.a)("radio"),Ti=(0,Oi[0])({mixins:[Ci({bem:Oi[1],role:"radio",parent:"vanRadio"})],computed:{currentValue:{get:function(){return this.parent?this.parent.value:this.value},set:function(t){(this.parent||this).$emit("input",t)}},checked:function(){return this.currentValue===this.name}},methods:{toggle:function(){this.currentValue=this.name}}}),$i=Object(l.a)("address-item"),Bi=$i[0],Ii=$i[1];function Ei(t,e,i,s){var o=e.disabled,a=e.switchable;return t("div",{class:Ii({disabled:o}),on:{click:function(){a&&d(s,"select"),d(s,"click")}}},[t(oe,r()([{attrs:{border:!1,valueClass:Ii("value")},scopedSlots:{default:function(){var s=e.data,r=[t("div",{class:Ii("name")},[s.name+" "+s.tel,i.tag?i.tag(n({},e.data)):e.data.isDefault&&e.defaultTagText?t(wi,{attrs:{type:"danger",round:!0},class:Ii("tag")},[e.defaultTagText]):void 0]),t("div",{class:Ii("address")},[s.address])];return a&&!o?t(Ti,{attrs:{name:s.id,iconSize:18}},[r]):r},"right-icon":function(){return t(rt,{attrs:{name:"edit"},class:Ii("edit"),on:{click:function(t){t.stopPropagation(),d(s,"edit"),d(s,"click")}}})}}},h(s)])),null==i.bottom?void 0:i.bottom(n({},e.data,{disabled:o}))])}Ei.props={data:Object,disabled:Boolean,switchable:Boolean,defaultTagText:String};var ji=Bi(Ei),Di=Object(l.a)("address-list"),Pi=Di[0],Li=Di[1],Ni=Di[2];function Mi(t,e,i,n){function s(s,r){if(s)return s.map((function(s,o){return t(ji,{attrs:{data:s,disabled:r,switchable:e.switchable,defaultTagText:e.defaultTagText},key:s.id,scopedSlots:{bottom:i["item-bottom"],tag:i.tag},on:{select:function(){d(n,r?"select-disabled":"select",s,o),r||d(n,"input",s.id)},edit:function(){d(n,r?"edit-disabled":"edit",s,o)},click:function(){d(n,"click-item",s,o)}}})}))}var o=s(e.list),a=s(e.disabledList,!0);return t("div",r()([{class:Li()},h(n)]),[null==i.top?void 0:i.top(),t(bi,{attrs:{value:e.value}},[o]),e.disabledText&&t("div",{class:Li("disabled-text")},[e.disabledText]),a,null==i.default?void 0:i.default(),t("div",{class:Li("bottom")},[t(je,{attrs:{round:!0,block:!0,type:"danger",text:e.addButtonText||Ni("add")},class:Li("add"),on:{click:function(){d(n,"add")}}})])])}Mi.props={list:Array,value:[Number,String],disabledList:Array,disabledText:String,addButtonText:String,defaultTagText:String,switchable:{type:Boolean,default:!0}};var Ai=Pi(Mi),zi=i(5),Vi=Object(l.a)("badge"),Ri=Vi[0],Fi=Vi[1],Hi=Ri({props:{dot:Boolean,max:[Number,String],color:String,content:[Number,String],tag:{type:String,default:"div"}},methods:{hasContent:function(){return!!(this.$scopedSlots.content||Object(m.c)(this.content)&&""!==this.content)},renderContent:function(){var t=this.dot,e=this.max,i=this.content;if(!t&&this.hasContent())return this.$scopedSlots.content?this.$scopedSlots.content():Object(m.c)(e)&&Object(zi.b)(i)&&+i>e?e+"+":i},renderBadge:function(){var t=this.$createElement;if(this.hasContent()||this.dot)return t("div",{class:Fi({dot:this.dot,fixed:!!this.$scopedSlots.default}),style:{background:this.color}},[this.renderContent()])}},render:function(){var t=arguments[0];if(this.$scopedSlots.default){var e=this.tag;return t(e,{class:Fi("wrapper")},[this.$scopedSlots.default(),this.renderBadge()])}return this.renderBadge()}}),_i=i(4);function Wi(t){return"[object Date]"===Object.prototype.toString.call(t)&&!Object(zi.a)(t.getTime())}var qi=Object(l.a)("calendar"),Ui=qi[0],Ki=qi[1],Yi=qi[2];function Xi(t,e){var i=t.getFullYear(),n=e.getFullYear(),s=t.getMonth(),r=e.getMonth();return i===n?s===r?0:s>r?1:-1:i>n?1:-1}function Qi(t,e){var i=Xi(t,e);if(0===i){var n=t.getDate(),s=e.getDate();return n===s?0:n>s?1:-1}return i}function Gi(t,e){return(t=new Date(t)).setDate(t.getDate()+e),t}function Zi(t){return Gi(t,1)}function Ji(t){return new Date(t)}function tn(t){return Array.isArray(t)?t.map((function(t){return null===t?t:Ji(t)})):Ji(t)}function en(t){if(!t)return 0;for(;Object(zi.a)(parseInt(t,10));){if(!(t.length>1))return 0;t=t.slice(1)}return parseInt(t,10)}function nn(t,e){return 32-new Date(t,e-1,32).getDate()}var sn=(0,Object(l.a)("calendar-month")[0])({props:{date:Date,type:String,color:String,minDate:Date,maxDate:Date,showMark:Boolean,rowHeight:[Number,String],formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number},data:function(){return{visible:!1}},computed:{title:function(){return t=this.date,Yi("monthTitle",t.getFullYear(),t.getMonth()+1);var t},rowHeightWithUnit:function(){return Object(Y.a)(this.rowHeight)},offset:function(){var t=this.firstDayOfWeek,e=this.date.getDay();return t?(e+7-this.firstDayOfWeek)%7:e},totalDay:function(){return nn(this.date.getFullYear(),this.date.getMonth()+1)},shouldRender:function(){return this.visible||!this.lazyRender},placeholders:function(){for(var t=[],e=Math.ceil((this.totalDay+this.offset)/7),i=1;i<=e;i++)t.push({type:"placeholder"});return t},days:function(){for(var t=[],e=this.date.getFullYear(),i=this.date.getMonth(),n=1;n<=this.totalDay;n++){var s=new Date(e,i,n),r=this.getDayType(s),o={date:s,type:r,text:n,bottomInfo:this.getBottomInfo(r)};this.formatter&&(o=this.formatter(o)),t.push(o)}return t}},methods:{getHeight:function(){var t;return(null==(t=this.$el)?void 0:t.getBoundingClientRect().height)||0},scrollIntoView:function(t){var e=this.$refs,i=e.days,n=e.month,s=(this.showSubtitle?i:n).getBoundingClientRect().top-t.getBoundingClientRect().top+t.scrollTop;A(t,s)},getMultipleDayType:function(t){var e=this,i=function(t){return e.currentDate.some((function(e){return 0===Qi(e,t)}))};if(i(t)){var n=Gi(t,-1),s=Zi(t),r=i(n),o=i(s);return r&&o?"multiple-middle":r?"end":o?"start":"multiple-selected"}return""},getRangeDayType:function(t){var e=this.currentDate,i=e[0],n=e[1];if(!i)return"";var s=Qi(t,i);if(!n)return 0===s?"start":"";var r=Qi(t,n);return 0===s&&0===r&&this.allowSameDay?"start-end":0===s?"start":0===r?"end":s>0&&r<0?"middle":void 0},getDayType:function(t){var e=this.type,i=this.minDate,n=this.maxDate,s=this.currentDate;return Qi(t,i)<0||Qi(t,n)>0?"disabled":null!==s?"single"===e?0===Qi(t,s)?"selected":"":"multiple"===e?this.getMultipleDayType(t):"range"===e?this.getRangeDayType(t):void 0:void 0},getBottomInfo:function(t){if("range"===this.type){if("start"===t||"end"===t)return Yi(t);if("start-end"===t)return Yi("startEnd")}},getDayStyle:function(t,e){var i={height:this.rowHeightWithUnit};return"placeholder"===t?(i.width="100%",i):(0===e&&(i.marginLeft=100*this.offset/7+"%"),this.color&&("start"===t||"end"===t||"start-end"===t||"multiple-selected"===t||"multiple-middle"===t?i.background=this.color:"middle"===t&&(i.color=this.color)),i)},genTitle:function(){var t=this.$createElement;if(this.showMonthTitle)return t("div",{class:Ki("month-title")},[this.title])},genMark:function(){var t=this.$createElement;if(this.showMark&&this.shouldRender)return t("div",{class:Ki("month-mark")},[this.date.getMonth()+1])},genDays:function(){var t=this.$createElement,e=this.shouldRender?this.days:this.placeholders;return t("div",{ref:"days",attrs:{role:"grid"},class:Ki("days")},[this.genMark(),e.map(this.genDay)])},genTopInfo:function(t){var e=this.$createElement,i=this.$scopedSlots["top-info"];if(t.topInfo||i)return e("div",{class:Ki("top-info")},[i?i(t):t.topInfo])},genBottomInfo:function(t){var e=this.$createElement,i=this.$scopedSlots["bottom-info"];if(t.bottomInfo||i)return e("div",{class:Ki("bottom-info")},[i?i(t):t.bottomInfo])},genDay:function(t,e){var i=this,n=this.$createElement,s=t.type,r=this.getDayStyle(s,e),o="disabled"===s,a=function(){o||i.$emit("click",t)};return"selected"===s?n("div",{attrs:{role:"gridcell",tabindex:-1},style:r,class:[Ki("day"),t.className],on:{click:a}},[n("div",{class:Ki("selected-day"),style:{width:this.rowHeightWithUnit,height:this.rowHeightWithUnit,background:this.color}},[this.genTopInfo(t),t.text,this.genBottomInfo(t)])]):n("div",{attrs:{role:"gridcell",tabindex:o?null:-1},style:r,class:[Ki("day",s),t.className],on:{click:a}},[this.genTopInfo(t),t.text,this.genBottomInfo(t)])}},render:function(){var t=arguments[0];return t("div",{class:Ki("month"),ref:"month"},[this.genTitle(),this.genDays()])}}),rn=(0,Object(l.a)("calendar-header")[0])({props:{title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number},methods:{genTitle:function(){var t=this.$createElement;if(this.showTitle){var e=this.slots("title")||this.title||Yi("title");return t("div",{class:Ki("header-title")},[e])}},genSubtitle:function(){var t=this.$createElement;if(this.showSubtitle)return t("div",{class:Ki("header-subtitle")},[this.subtitle])},genWeekDays:function(){var t=this.$createElement,e=Yi("weekdays"),i=this.firstDayOfWeek,n=[].concat(e.slice(i,7),e.slice(0,i));return t("div",{class:Ki("weekdays")},[n.map((function(e){return t("span",{class:Ki("weekday")},[e])}))])}},render:function(){var t=arguments[0];return t("div",{class:Ki("header")},[this.genTitle(),this.genSubtitle(),this.genWeekDays()])}}),on=Ui({props:{title:String,color:String,value:Boolean,readonly:Boolean,formatter:Function,rowHeight:[Number,String],confirmText:String,rangePrompt:String,defaultDate:[Date,Array],getContainer:[String,Function],allowSameDay:Boolean,confirmDisabledText:String,type:{type:String,default:"single"},round:{type:Boolean,default:!0},position:{type:String,default:"bottom"},poppable:{type:Boolean,default:!0},maxRange:{type:[Number,String],default:null},lazyRender:{type:Boolean,default:!0},showMark:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showSubtitle:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},minDate:{type:Date,validator:Wi,default:function(){return new Date}},maxDate:{type:Date,validator:Wi,default:function(){var t=new Date;return new Date(t.getFullYear(),t.getMonth()+6,t.getDate())}},firstDayOfWeek:{type:[Number,String],default:0,validator:function(t){return t>=0&&t<=6}}},inject:{vanPopup:{default:null}},data:function(){return{subtitle:"",currentDate:this.getInitialDate()}},computed:{months:function(){var t=[],e=new Date(this.minDate);e.setDate(1);do{t.push(new Date(e)),e.setMonth(e.getMonth()+1)}while(1!==Xi(e,this.maxDate));return t},buttonDisabled:function(){var t=this.type,e=this.currentDate;if(e){if("range"===t)return!e[0]||!e[1];if("multiple"===t)return!e.length}return!e},dayOffset:function(){return this.firstDayOfWeek?this.firstDayOfWeek%7:0}},watch:{value:"init",type:function(){this.reset()},defaultDate:function(t){this.currentDate=t,this.scrollIntoView()}},mounted:function(){var t;(this.init(),this.poppable)||(null==(t=this.vanPopup)||t.$on("opened",this.onScroll))},activated:function(){this.init()},methods:{reset:function(t){void 0===t&&(t=this.getInitialDate()),this.currentDate=t,this.scrollIntoView()},init:function(){var t=this;this.poppable&&!this.value||this.$nextTick((function(){t.bodyHeight=Math.floor(t.$refs.body.getBoundingClientRect().height),t.onScroll(),t.scrollIntoView()}))},scrollToDate:function(t){var e=this;Object(_i.c)((function(){var i=e.value||!e.poppable;t&&i&&(e.months.some((function(i,n){if(0===Xi(i,t)){var s=e.$refs,r=s.body;return s.months[n].scrollIntoView(r),!0}return!1})),e.onScroll())}))},scrollIntoView:function(){var t=this.currentDate;if(t){var e="single"===this.type?t:t[0];this.scrollToDate(e)}},getInitialDate:function(){var t=this.type,e=this.minDate,i=this.maxDate,n=this.defaultDate;if(null===n)return n;var s=new Date;if(-1===Qi(s,e)?s=e:1===Qi(s,i)&&(s=i),"range"===t){var r=n||[];return[r[0]||s,r[1]||Zi(s)]}return"multiple"===t?n||[s]:n||s},onScroll:function(){var t=this.$refs,e=t.body,i=t.months,n=M(e),s=n+this.bodyHeight,r=i.map((function(t){return t.getHeight()}));if(!(s>r.reduce((function(t,e){return t+e}),0)&&n>0)){for(var o,a=0,l=[-1,-1],c=0;c<i.length;c++){a<=s&&a+r[c]>=n&&(l[1]=c,o||(o=i[c],l[0]=c),i[c].showed||(i[c].showed=!0,this.$emit("month-show",{date:i[c].date,title:i[c].title}))),a+=r[c]}i.forEach((function(t,e){t.visible=e>=l[0]-1&&e<=l[1]+1})),o&&(this.subtitle=o.title)}},onClickDay:function(t){if(!this.readonly){var e=t.date,i=this.type,n=this.currentDate;if("range"===i){if(!n)return void this.select([e,null]);var s=n[0],r=n[1];if(s&&!r){var o=Qi(e,s);1===o?this.select([s,e],!0):-1===o?this.select([e,null]):this.allowSameDay&&this.select([e,e],!0)}else this.select([e,null])}else if("multiple"===i){if(!n)return void this.select([e]);var a;if(this.currentDate.some((function(t,i){var n=0===Qi(t,e);return n&&(a=i),n}))){var l=n.splice(a,1)[0];this.$emit("unselect",Ji(l))}else this.maxRange&&n.length>=this.maxRange?Te(this.rangePrompt||Yi("rangePrompt",this.maxRange)):this.select([].concat(n,[e]))}else this.select(e,!0)}},togglePopup:function(t){this.$emit("input",t)},select:function(t,e){var i=this,n=function(t){i.currentDate=t,i.$emit("select",tn(i.currentDate))};if(e&&"range"===this.type&&!this.checkRange(t))return void(this.showConfirm?n([t[0],Gi(t[0],this.maxRange-1)]):n(t));n(t),e&&!this.showConfirm&&this.onConfirm()},checkRange:function(t){var e=this.maxRange,i=this.rangePrompt;return!(e&&function(t){var e=t[0].getTime();return(t[1].getTime()-e)/864e5+1}(t)>e)||(Te(i||Yi("rangePrompt",e)),!1)},onConfirm:function(){this.$emit("confirm",tn(this.currentDate))},genMonth:function(t,e){var i=this.$createElement,n=0!==e||!this.showSubtitle;return i(sn,{ref:"months",refInFor:!0,attrs:{date:t,type:this.type,color:this.color,minDate:this.minDate,maxDate:this.maxDate,showMark:this.showMark,formatter:this.formatter,rowHeight:this.rowHeight,lazyRender:this.lazyRender,currentDate:this.currentDate,showSubtitle:this.showSubtitle,allowSameDay:this.allowSameDay,showMonthTitle:n,firstDayOfWeek:this.dayOffset},scopedSlots:{"top-info":this.$scopedSlots["top-info"],"bottom-info":this.$scopedSlots["bottom-info"]},on:{click:this.onClickDay}})},genFooterContent:function(){var t=this.$createElement,e=this.slots("footer");if(e)return e;if(this.showConfirm){var i=this.buttonDisabled?this.confirmDisabledText:this.confirmText;return t(je,{attrs:{round:!0,block:!0,type:"danger",color:this.color,disabled:this.buttonDisabled,nativeType:"button"},class:Ki("confirm"),on:{click:this.onConfirm}},[i||Yi("confirm")])}},genFooter:function(){return(0,this.$createElement)("div",{class:Ki("footer",{unfit:!this.safeAreaInsetBottom})},[this.genFooterContent()])},genCalendar:function(){var t=this,e=this.$createElement;return e("div",{class:Ki()},[e(rn,{attrs:{title:this.title,showTitle:this.showTitle,subtitle:this.subtitle,showSubtitle:this.showSubtitle,firstDayOfWeek:this.dayOffset},scopedSlots:{title:function(){return t.slots("title")}}}),e("div",{ref:"body",class:Ki("body"),on:{scroll:this.onScroll}},[this.months.map(this.genMonth)]),this.genFooter()])}},render:function(){var t=this,e=arguments[0];if(this.poppable){var i,n=function(e){return function(){return t.$emit(e)}};return e(ct,{attrs:(i={round:!0,value:this.value},i.round=this.round,i.position=this.position,i.closeable=this.showTitle||this.showSubtitle,i.getContainer=this.getContainer,i.closeOnPopstate=this.closeOnPopstate,i.closeOnClickOverlay=this.closeOnClickOverlay,i),class:Ki("popup"),on:{input:this.togglePopup,open:n("open"),opened:n("opened"),close:n("close"),closed:n("closed")}},[this.genCalendar()])}return this.genCalendar()}}),an=Object(l.a)("image"),ln=an[0],cn=an[1],un=ln({props:{src:String,fit:String,alt:String,round:Boolean,width:[Number,String],height:[Number,String],radius:[Number,String],lazyLoad:Boolean,iconPrefix:String,showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},errorIcon:{type:String,default:"photo-fail"},loadingIcon:{type:String,default:"photo"}},data:function(){return{loading:!0,error:!1}},watch:{src:function(){this.loading=!0,this.error=!1}},computed:{style:function(){var t={};return Object(m.c)(this.width)&&(t.width=Object(Y.a)(this.width)),Object(m.c)(this.height)&&(t.height=Object(Y.a)(this.height)),Object(m.c)(this.radius)&&(t.overflow="hidden",t.borderRadius=Object(Y.a)(this.radius)),t}},created:function(){var t=this.$Lazyload;t&&m.b&&(t.$on("loaded",this.onLazyLoaded),t.$on("error",this.onLazyLoadError))},beforeDestroy:function(){var t=this.$Lazyload;t&&(t.$off("loaded",this.onLazyLoaded),t.$off("error",this.onLazyLoadError))},methods:{onLoad:function(t){this.loading=!1,this.$emit("load",t)},onLazyLoaded:function(t){t.el===this.$refs.image&&this.loading&&this.onLoad()},onLazyLoadError:function(t){t.el!==this.$refs.image||this.error||this.onError()},onError:function(t){this.error=!0,this.loading=!1,this.$emit("error",t)},onClick:function(t){this.$emit("click",t)},genPlaceholder:function(){var t=this.$createElement;return this.loading&&this.showLoading?t("div",{class:cn("loading")},[this.slots("loading")||t(rt,{attrs:{name:this.loadingIcon,classPrefix:this.iconPrefix},class:cn("loading-icon")})]):this.error&&this.showError?t("div",{class:cn("error")},[this.slots("error")||t(rt,{attrs:{name:this.errorIcon,classPrefix:this.iconPrefix},class:cn("error-icon")})]):void 0},genImage:function(){var t=this.$createElement,e={class:cn("img"),attrs:{alt:this.alt},style:{objectFit:this.fit}};if(!this.error)return this.lazyLoad?t("img",r()([{ref:"image",directives:[{name:"lazy",value:this.src}]},e])):t("img",r()([{attrs:{src:this.src},on:{load:this.onLoad,error:this.onError}},e]))}},render:function(){var t=arguments[0];return t("div",{class:cn({round:this.round}),style:this.style,on:{click:this.onClick}},[this.genImage(),this.genPlaceholder(),this.slots()])}}),hn=Object(l.a)("card"),dn=hn[0],fn=hn[1];function pn(t,e,i,n){var s,o=e.thumb,a=i.num||Object(m.c)(e.num),l=i.price||Object(m.c)(e.price),c=i["origin-price"]||Object(m.c)(e.originPrice),u=a||l||c||i.bottom;function f(t){d(n,"click-thumb",t)}function p(){if(i.tag||e.tag)return t("div",{class:fn("tag")},[i.tag?i.tag():t(wi,{attrs:{mark:!0,type:"danger"}},[e.tag])])}return t("div",r()([{class:fn()},h(n,!0)]),[t("div",{class:fn("header")},[function(){if(i.thumb||o)return t("a",{attrs:{href:e.thumbLink},class:fn("thumb"),on:{click:f}},[i.thumb?i.thumb():t(un,{attrs:{src:o,width:"100%",height:"100%",fit:"cover","lazy-load":e.lazyLoad}}),p()])}(),t("div",{class:fn("content",{centered:e.centered})},[t("div",[i.title?i.title():e.title?t("div",{class:[fn("title"),"van-multi-ellipsis--l2"]},[e.title]):void 0,i.desc?i.desc():e.desc?t("div",{class:[fn("desc"),"van-ellipsis"]},[e.desc]):void 0,null==i.tags?void 0:i.tags()]),u&&t("div",{class:"van-card__bottom"},[null==(s=i["price-top"])?void 0:s.call(i),function(){if(l)return t("div",{class:fn("price")},[i.price?i.price():(n=e.price.toString().split("."),t("div",[t("span",{class:fn("price-currency")},[e.currency]),t("span",{class:fn("price-integer")},[n[0]]),".",t("span",{class:fn("price-decimal")},[n[1]])]))]);var n}(),function(){if(c){var n=i["origin-price"];return t("div",{class:fn("origin-price")},[n?n():e.currency+" "+e.originPrice])}}(),function(){if(a)return t("div",{class:fn("num")},[i.num?i.num():"x"+e.num])}(),null==i.bottom?void 0:i.bottom()])])]),function(){if(i.footer)return t("div",{class:fn("footer")},[i.footer()])}()])}pn.props={tag:String,desc:String,thumb:String,title:String,centered:Boolean,lazyLoad:Boolean,thumbLink:String,num:[Number,String],price:[Number,String],originPrice:[Number,String],currency:{type:String,default:"¥"}};var mn=dn(pn),vn=Object(l.a)("tab"),gn=vn[0],bn=vn[1],yn=gn({mixins:[Pe("vanTabs")],props:n({},te,{dot:Boolean,name:[Number,String],info:[Number,String],badge:[Number,String],title:String,titleStyle:null,titleClass:null,disabled:Boolean}),data:function(){return{inited:!1}},computed:{computedName:function(){var t;return null!=(t=this.name)?t:this.index},isActive:function(){var t=this.computedName===this.parent.currentName;return t&&(this.inited=!0),t}},watch:{title:function(){this.parent.setLine(),this.parent.scrollIntoView()},inited:function(t){var e=this;this.parent.lazyRender&&t&&this.$nextTick((function(){e.parent.$emit("rendered",e.computedName,e.title)}))}},render:function(t){var e=this.slots,i=this.parent,n=this.isActive,s=e();if(s||i.animated){var r=i.scrollspy||n,o=this.inited||i.scrollspy||!i.lazyRender?s:t();return i.animated?t("div",{attrs:{role:"tabpanel","aria-hidden":!n},class:bn("pane-wrapper",{inactive:!n})},[t("div",{class:bn("pane")},[o])]):t("div",{directives:[{name:"show",value:r}],attrs:{role:"tabpanel"},class:bn("pane")},[o])}}});function Sn(t){var e=window.getComputedStyle(t),i="none"===e.display,n=null===t.offsetParent&&"fixed"!==e.position;return i||n}function kn(t){var e=t.interceptor,i=t.args,n=t.done;if(e){var s=e.apply(void 0,i);Object(m.g)(s)?s.then((function(t){t&&n()})).catch(m.i):s&&n()}else n()}var xn=Object(l.a)("tab"),wn=xn[0],Cn=xn[1],On=wn({props:{dot:Boolean,type:String,info:[Number,String],color:String,title:String,isActive:Boolean,disabled:Boolean,scrollable:Boolean,activeColor:String,inactiveColor:String},computed:{style:function(){var t={},e=this.color,i=this.isActive,n="card"===this.type;e&&n&&(t.borderColor=e,this.disabled||(i?t.backgroundColor=e:t.color=e));var s=i?this.activeColor:this.inactiveColor;return s&&(t.color=s),t}},methods:{onClick:function(){this.$emit("click")},genText:function(){var t=this.$createElement,e=t("span",{class:Cn("text",{ellipsis:!this.scrollable})},[this.slots()||this.title]);return this.dot||Object(m.c)(this.info)&&""!==this.info?t("span",{class:Cn("text-wrapper")},[e,t(J,{attrs:{dot:this.dot,info:this.info}})]):e}},render:function(){var t=arguments[0];return t("div",{attrs:{role:"tab","aria-selected":this.isActive},class:[Cn({active:this.isActive,disabled:this.disabled})],style:this.style,on:{click:this.onClick}},[this.genText()])}}),Tn=Object(l.a)("sticky"),$n=Tn[0],Bn=Tn[1],In=$n({mixins:[W((function(t,e){if(this.scroller||(this.scroller=N(this.$el)),this.observer){var i=e?"observe":"unobserve";this.observer[i](this.$el)}t(this.scroller,"scroll",this.onScroll,!0),this.onScroll()}))],props:{zIndex:[Number,String],container:null,offsetTop:{type:[Number,String],default:0}},data:function(){return{fixed:!1,height:0,transform:0}},computed:{offsetTopPx:function(){return Object(Y.b)(this.offsetTop)},style:function(){if(this.fixed){var t={};return Object(m.c)(this.zIndex)&&(t.zIndex=this.zIndex),this.offsetTopPx&&this.fixed&&(t.top=this.offsetTopPx+"px"),this.transform&&(t.transform="translate3d(0, "+this.transform+"px, 0)"),t}}},watch:{fixed:function(t){this.$emit("change",t)}},created:function(){var t=this;!m.h&&window.IntersectionObserver&&(this.observer=new IntersectionObserver((function(e){e[0].intersectionRatio>0&&t.onScroll()}),{root:document.body}))},methods:{onScroll:function(){var t=this;if(!Sn(this.$el)){this.height=this.$el.offsetHeight;var e=this.container,i=this.offsetTopPx,n=M(window),s=R(this.$el),r=function(){t.$emit("scroll",{scrollTop:n,isFixed:t.fixed})};if(e){var o=s+e.offsetHeight;if(n+i+this.height>o){var a=this.height+n-o;return a<this.height?(this.fixed=!0,this.transform=-(a+i)):this.fixed=!1,void r()}}n+i>s?(this.fixed=!0,this.transform=0):this.fixed=!1,r()}}},render:function(){var t=arguments[0],e=this.fixed,i={height:e?this.height+"px":null};return t("div",{style:i},[t("div",{class:Bn({fixed:e}),style:this.style},[this.slots()])])}}),En=Object(l.a)("tabs"),jn=En[0],Dn=En[1],Pn=jn({mixins:[F],props:{count:Number,duration:[Number,String],animated:Boolean,swipeable:Boolean,currentIndex:Number},computed:{style:function(){if(this.animated)return{transform:"translate3d("+-1*this.currentIndex*100+"%, 0, 0)",transitionDuration:this.duration+"s"}},listeners:function(){if(this.swipeable)return{touchstart:this.touchStart,touchmove:this.touchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}}},methods:{onTouchEnd:function(){var t=this.direction,e=this.deltaX,i=this.currentIndex;"horizontal"===t&&this.offsetX>=50&&(e>0&&0!==i?this.$emit("change",i-1):e<0&&i!==this.count-1&&this.$emit("change",i+1))},genChildren:function(){var t=this.$createElement;return this.animated?t("div",{class:Dn("track"),style:this.style},[this.slots()]):this.slots()}},render:function(){var t=arguments[0];return t("div",{class:Dn("content",{animated:this.animated}),on:n({},this.listeners)},[this.genChildren()])}}),Ln=Object(l.a)("tabs"),Nn=Ln[0],Mn=Ln[1],An=Nn({mixins:[Le("vanTabs"),W((function(t){this.scroller||(this.scroller=N(this.$el)),t(window,"resize",this.resize,!0),this.scrollspy&&t(this.scroller,"scroll",this.onScroll,!0)}))],inject:{vanPopup:{default:null}},model:{prop:"active"},props:{color:String,border:Boolean,sticky:Boolean,animated:Boolean,swipeable:Boolean,scrollspy:Boolean,background:String,lineWidth:[Number,String],lineHeight:[Number,String],beforeChange:Function,titleActiveColor:String,titleInactiveColor:String,type:{type:String,default:"line"},active:{type:[Number,String],default:0},ellipsis:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},offsetTop:{type:[Number,String],default:0},lazyRender:{type:Boolean,default:!0},swipeThreshold:{type:[Number,String],default:5}},data:function(){return{position:"",currentIndex:null,lineStyle:{backgroundColor:this.color}}},computed:{scrollable:function(){return this.children.length>this.swipeThreshold||!this.ellipsis},navStyle:function(){return{borderColor:this.color,background:this.background}},currentName:function(){var t=this.children[this.currentIndex];if(t)return t.computedName},offsetTopPx:function(){return Object(Y.b)(this.offsetTop)},scrollOffset:function(){return this.sticky?this.offsetTopPx+this.tabHeight:0}},watch:{color:"setLine",active:function(t){t!==this.currentName&&this.setCurrentIndexByName(t)},children:function(){var t=this;this.setCurrentIndexByName(this.active),this.setLine(),this.$nextTick((function(){t.scrollIntoView(!0)}))},currentIndex:function(){this.scrollIntoView(),this.setLine(),this.stickyFixed&&!this.scrollspy&&V(Math.ceil(R(this.$el)-this.offsetTopPx))},scrollspy:function(t){t?b(this.scroller,"scroll",this.onScroll,!0):y(this.scroller,"scroll",this.onScroll)}},mounted:function(){var t=this;this.init(),this.vanPopup&&this.vanPopup.onReopen((function(){t.setLine()}))},activated:function(){this.init(),this.setLine()},methods:{resize:function(){this.setLine()},init:function(){var t=this;this.$nextTick((function(){var e;t.inited=!0,t.tabHeight=P(e=t.$refs.wrap)?e.innerHeight:e.getBoundingClientRect().height,t.scrollIntoView(!0)}))},setLine:function(){var t=this,e=this.inited;this.$nextTick((function(){var i=t.$refs.titles;if(i&&i[t.currentIndex]&&"line"===t.type&&!Sn(t.$el)){var n=i[t.currentIndex].$el,s=t.lineWidth,r=t.lineHeight,o=n.offsetLeft+n.offsetWidth/2,a={width:Object(Y.a)(s),backgroundColor:t.color,transform:"translateX("+o+"px) translateX(-50%)"};if(e&&(a.transitionDuration=t.duration+"s"),Object(m.c)(r)){var l=Object(Y.a)(r);a.height=l,a.borderRadius=l}t.lineStyle=a}}))},setCurrentIndexByName:function(t){var e=this.children.filter((function(e){return e.computedName===t})),i=(this.children[0]||{}).index||0;this.setCurrentIndex(e.length?e[0].index:i)},setCurrentIndex:function(t){var e=this.findAvailableTab(t);if(Object(m.c)(e)){var i=this.children[e],n=i.computedName,s=null!==this.currentIndex;this.currentIndex=e,n!==this.active&&(this.$emit("input",n),s&&this.$emit("change",n,i.title))}},findAvailableTab:function(t){for(var e=t<this.currentIndex?-1:1;t>=0&&t<this.children.length;){if(!this.children[t].disabled)return t;t+=e}},onClick:function(t,e){var i=this,n=this.children[e],s=n.title,r=n.disabled,o=n.computedName;r?this.$emit("disabled",o,s):(kn({interceptor:this.beforeChange,args:[o],done:function(){i.setCurrentIndex(e),i.scrollToCurrentContent()}}),this.$emit("click",o,s),Zt(t.$router,t))},scrollIntoView:function(t){var e=this.$refs.titles;if(this.scrollable&&e&&e[this.currentIndex]){var i=this.$refs.nav,n=e[this.currentIndex].$el;!function(t,e,i){var n=0,s=t.scrollLeft,r=0===i?1:Math.round(1e3*i/16);!function i(){t.scrollLeft+=(e-s)/r,++n<r&&Object(_i.c)(i)}()}(i,n.offsetLeft-(i.offsetWidth-n.offsetWidth)/2,t?0:+this.duration)}},onSticktScroll:function(t){this.stickyFixed=t.isFixed,this.$emit("scroll",t)},scrollTo:function(t){var e=this;this.$nextTick((function(){e.setCurrentIndexByName(t),e.scrollToCurrentContent(!0)}))},scrollToCurrentContent:function(t){var e=this;if(void 0===t&&(t=!1),this.scrollspy){var i=this.children[this.currentIndex],n=null==i?void 0:i.$el;if(n){var s=R(n,this.scroller)-this.scrollOffset;this.lockScroll=!0,function(t,e,i,n){var s=M(t),r=s<e,o=0===i?1:Math.round(1e3*i/16),a=(e-s)/o;!function i(){s+=a,(r&&s>e||!r&&s<e)&&(s=e),A(t,s),r&&s<e||!r&&s>e?Object(_i.c)(i):n&&Object(_i.c)(n)}()}(this.scroller,s,t?0:+this.duration,(function(){e.lockScroll=!1}))}}},onScroll:function(){if(this.scrollspy&&!this.lockScroll){var t=this.getCurrentIndexOnScroll();this.setCurrentIndex(t)}},getCurrentIndexOnScroll:function(){for(var t,e=this.children,i=0;i<e.length;i++){if((P(t=e[i].$el)?0:t.getBoundingClientRect().top)>this.scrollOffset)return 0===i?0:i-1}return e.length-1}},render:function(){var t,e=this,i=arguments[0],n=this.type,s=this.animated,r=this.scrollable,o=this.children.map((function(t,s){var o;return i(On,{ref:"titles",refInFor:!0,attrs:{type:n,dot:t.dot,info:null!=(o=t.badge)?o:t.info,title:t.title,color:e.color,isActive:s===e.currentIndex,disabled:t.disabled,scrollable:r,activeColor:e.titleActiveColor,inactiveColor:e.titleInactiveColor},style:t.titleStyle,class:t.titleClass,scopedSlots:{default:function(){return t.slots("title")}},on:{click:function(){e.onClick(t,s)}}})})),a=i("div",{ref:"wrap",class:[Mn("wrap",{scrollable:r}),(t={},t[Bt]="line"===n&&this.border,t)]},[i("div",{ref:"nav",attrs:{role:"tablist"},class:Mn("nav",[n,{complete:this.scrollable}]),style:this.navStyle},[this.slots("nav-left"),o,"line"===n&&i("div",{class:Mn("line"),style:this.lineStyle}),this.slots("nav-right")])]);return i("div",{class:Mn([n])},[this.sticky?i(In,{attrs:{container:this.$el,offsetTop:this.offsetTop},on:{scroll:this.onSticktScroll}},[a]):a,i(Pn,{attrs:{count:this.children.length,animated:s,duration:this.duration,swipeable:this.swipeable,currentIndex:this.currentIndex},on:{change:this.setCurrentIndex}},[this.slots()])])}}),zn=Object(l.a)("cascader"),Vn=zn[0],Rn=zn[1],Fn=zn[2],Hn=Vn({props:{title:String,value:[Number,String],fieldNames:Object,placeholder:String,activeColor:String,options:{type:Array,default:function(){return[]}},closeable:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0}},data:function(){return{tabs:[],activeTab:0}},computed:{textKey:function(){var t;return(null==(t=this.fieldNames)?void 0:t.text)||"text"},valueKey:function(){var t;return(null==(t=this.fieldNames)?void 0:t.value)||"value"},childrenKey:function(){var t;return(null==(t=this.fieldNames)?void 0:t.children)||"children"}},watch:{options:{deep:!0,handler:"updateTabs"},value:function(t){var e=this;if((t||0===t)&&-1!==this.tabs.map((function(t){var i;return null==(i=t.selectedOption)?void 0:i[e.valueKey]})).indexOf(t))return;this.updateTabs()}},created:function(){this.updateTabs()},methods:{getSelectedOptionsByValue:function(t,e){for(var i=0;i<t.length;i++){var n=t[i];if(n[this.valueKey]===e)return[n];if(n[this.childrenKey]){var s=this.getSelectedOptionsByValue(n[this.childrenKey],e);if(s)return[n].concat(s)}}},updateTabs:function(){var t=this;if(this.value||0===this.value){var e=this.getSelectedOptionsByValue(this.options,this.value);if(e){var i=this.options;return this.tabs=e.map((function(e){var n={options:i,selectedOption:e},s=i.filter((function(i){return i[t.valueKey]===e[t.valueKey]}));return s.length&&(i=s[0][t.childrenKey]),n})),i&&this.tabs.push({options:i,selectedOption:null}),void this.$nextTick((function(){t.activeTab=t.tabs.length-1}))}}this.tabs=[{options:this.options,selectedOption:null}]},onSelect:function(t,e){var i=this;if(this.tabs[e].selectedOption=t,this.tabs.length>e+1&&(this.tabs=this.tabs.slice(0,e+1)),t[this.childrenKey]){var n={options:t[this.childrenKey],selectedOption:null};this.tabs[e+1]?this.$set(this.tabs,e+1,n):this.tabs.push(n),this.$nextTick((function(){i.activeTab++}))}var s=this.tabs.map((function(t){return t.selectedOption})).filter((function(t){return!!t})),r={value:t[this.valueKey],tabIndex:e,selectedOptions:s};this.$emit("input",t[this.valueKey]),this.$emit("change",r),t[this.childrenKey]||this.$emit("finish",r)},onClose:function(){this.$emit("close")},renderHeader:function(){var t=this.$createElement;if(this.showHeader)return t("div",{class:Rn("header")},[t("h2",{class:Rn("title")},[this.slots("title")||this.title]),this.closeable?t(rt,{attrs:{name:"cross"},class:Rn("close-icon"),on:{click:this.onClose}}):null])},renderOptions:function(t,e,i){var n=this,s=this.$createElement;return s("ul",{class:Rn("options")},[t.map((function(t){var r=e&&t[n.valueKey]===e[n.valueKey],o=n.slots("option",{option:t,selected:r})||s("span",[t[n.textKey]]);return s("li",{class:Rn("option",{selected:r}),style:{color:r?n.activeColor:null},on:{click:function(){n.onSelect(t,i)}}},[o,r?s(rt,{attrs:{name:"success"},class:Rn("selected-icon")}):null])}))])},renderTab:function(t,e){var i=this.$createElement,n=t.options,s=t.selectedOption,r=s?s[this.textKey]:this.placeholder||Fn("select");return i(yn,{attrs:{title:r,titleClass:Rn("tab",{unselected:!s})}},[this.renderOptions(n,s,e)])},renderTabs:function(){var t=this;return(0,this.$createElement)(An,{attrs:{animated:!0,swipeable:!0,swipeThreshold:0,color:this.activeColor},class:Rn("tabs"),model:{value:t.activeTab,callback:function(e){t.activeTab=e}}},[this.tabs.map(this.renderTab)])}},render:function(){var t=arguments[0];return t("div",{class:Rn()},[this.renderHeader(),this.renderTabs()])}}),_n=Object(l.a)("cell-group"),Wn=_n[0],qn=_n[1];function Un(t,e,i,n){var s,o=t("div",r()([{class:[qn({inset:e.inset}),(s={},s[Bt]=e.border,s)]},h(n,!0)]),[null==i.default?void 0:i.default()]);return e.title||i.title?t("div",{key:n.data.key},[t("div",{class:qn("title",{inset:e.inset})},[i.title?i.title():e.title]),o]):o}Un.props={title:String,inset:Boolean,border:{type:Boolean,default:!0}};var Kn=Wn(Un),Yn=Object(l.a)("checkbox"),Xn=(0,Yn[0])({mixins:[Ci({bem:Yn[1],role:"checkbox",parent:"vanCheckbox"})],computed:{checked:{get:function(){return this.parent?-1!==this.parent.value.indexOf(this.name):this.value},set:function(t){this.parent?this.setParentValue(t):this.$emit("input",t)}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggle:function(t){var e=this;void 0===t&&(t=!this.checked),clearTimeout(this.toggleTask),this.toggleTask=setTimeout((function(){e.checked=t}))},setParentValue:function(t){var e=this.parent,i=e.value.slice();if(t){if(e.max&&i.length>=e.max)return;-1===i.indexOf(this.name)&&(i.push(this.name),e.$emit("input",i))}else{var n=i.indexOf(this.name);-1!==n&&(i.splice(n,1),e.$emit("input",i))}}}}),Qn=Object(l.a)("checkbox-group"),Gn=Qn[0],Zn=Qn[1],Jn=Gn({mixins:[Le("vanCheckbox"),si],props:{max:[Number,String],disabled:Boolean,direction:String,iconSize:[Number,String],checkedColor:String,value:{type:Array,default:function(){return[]}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggleAll:function(t){void 0===t&&(t={}),"boolean"==typeof t&&(t={checked:t});var e=t,i=e.checked,n=e.skipDisabled,s=this.children.filter((function(t){return t.disabled&&n?t.checked:null!=i?i:!t.checked})).map((function(t){return t.name}));this.$emit("input",s)}},render:function(){var t=arguments[0];return t("div",{class:Zn([this.direction])},[this.slots()])}}),ts=Object(l.a)("circle"),es=ts[0],is=ts[1],ns=0;function ss(t){return Math.min(Math.max(t,0),100)}var rs=es({props:{text:String,size:[Number,String],color:[String,Object],layerColor:String,strokeLinecap:String,value:{type:Number,default:0},speed:{type:[Number,String],default:0},fill:{type:String,default:"none"},rate:{type:[Number,String],default:100},strokeWidth:{type:[Number,String],default:40},clockwise:{type:Boolean,default:!0}},beforeCreate:function(){this.uid="van-circle-gradient-"+ns++},computed:{style:function(){var t=Object(Y.a)(this.size);return{width:t,height:t}},path:function(){return t=this.clockwise,"M "+(e=this.viewBoxSize)/2+" "+e/2+" m 0, -500 a 500, 500 0 1, "+(i=t?1:0)+" 0, 1000 a 500, 500 0 1, "+i+" 0, -1000";var t,e,i},viewBoxSize:function(){return+this.strokeWidth+1e3},layerStyle:function(){return{fill:""+this.fill,stroke:""+this.layerColor,strokeWidth:this.strokeWidth+"px"}},hoverStyle:function(){var t=3140*this.value/100;return{stroke:""+(this.gradient?"url(#"+this.uid+")":this.color),strokeWidth:+this.strokeWidth+1+"px",strokeLinecap:this.strokeLinecap,strokeDasharray:t+"px 3140px"}},gradient:function(){return Object(m.f)(this.color)},LinearGradient:function(){var t=this,e=this.$createElement;if(this.gradient){var i=Object.keys(this.color).sort((function(t,e){return parseFloat(t)-parseFloat(e)})).map((function(i,n){return e("stop",{key:n,attrs:{offset:i,"stop-color":t.color[i]}})}));return e("defs",[e("linearGradient",{attrs:{id:this.uid,x1:"100%",y1:"0%",x2:"0%",y2:"0%"}},[i])])}}},watch:{rate:{handler:function(t){this.startTime=Date.now(),this.startRate=this.value,this.endRate=ss(t),this.increase=this.endRate>this.startRate,this.duration=Math.abs(1e3*(this.startRate-this.endRate)/this.speed),this.speed?(Object(_i.a)(this.rafId),this.rafId=Object(_i.c)(this.animate)):this.$emit("input",this.endRate)},immediate:!0}},methods:{animate:function(){var t=Date.now(),e=Math.min((t-this.startTime)/this.duration,1)*(this.endRate-this.startRate)+this.startRate;this.$emit("input",ss(parseFloat(e.toFixed(1)))),(this.increase?e<this.endRate:e>this.endRate)&&(this.rafId=Object(_i.c)(this.animate))}},render:function(){var t=arguments[0];return t("div",{class:is(),style:this.style},[t("svg",{attrs:{viewBox:"0 0 "+this.viewBoxSize+" "+this.viewBoxSize}},[this.LinearGradient,t("path",{class:is("layer"),style:this.layerStyle,attrs:{d:this.path}}),t("path",{attrs:{d:this.path},class:is("hover"),style:this.hoverStyle})]),this.slots()||this.text&&t("div",{class:is("text")},[this.text])])}}),os=Object(l.a)("col"),as=os[0],ls=os[1],cs=as({mixins:[Pe("vanRow")],props:{span:[Number,String],offset:[Number,String],tag:{type:String,default:"div"}},computed:{style:function(){var t=this.index,e=(this.parent||{}).spaces;if(e&&e[t]){var i=e[t],n=i.left,s=i.right;return{paddingLeft:n?n+"px":null,paddingRight:s?s+"px":null}}}},methods:{onClick:function(t){this.$emit("click",t)}},render:function(){var t,e=arguments[0],i=this.span,n=this.offset;return e(this.tag,{style:this.style,class:ls((t={},t[i]=i,t["offset-"+n]=n,t)),on:{click:this.onClick}},[this.slots()])}}),us=Object(l.a)("collapse"),hs=us[0],ds=us[1],fs=hs({mixins:[Le("vanCollapse")],props:{accordion:Boolean,value:[String,Number,Array],border:{type:Boolean,default:!0}},methods:{switch:function(t,e){this.accordion||(t=e?this.value.concat(t):this.value.filter((function(e){return e!==t}))),this.$emit("change",t),this.$emit("input",t)}},render:function(){var t,e=arguments[0];return e("div",{class:[ds(),(t={},t[Bt]=this.border,t)]},[this.slots()])}}),ps=Object(l.a)("collapse-item"),ms=ps[0],vs=ps[1],gs=["title","icon","right-icon"],bs=ms({mixins:[Pe("vanCollapse")],props:n({},ee,{name:[Number,String],disabled:Boolean,lazyRender:{type:Boolean,default:!0},isLink:{type:Boolean,default:!0}}),data:function(){return{show:null,inited:null}},computed:{currentName:function(){var t;return null!=(t=this.name)?t:this.index},expanded:function(){var t=this;if(!this.parent)return null;var e=this.parent,i=e.value;return e.accordion?i===this.currentName:i.some((function(e){return e===t.currentName}))}},created:function(){this.show=this.expanded,this.inited=this.expanded},watch:{expanded:function(t,e){var i=this;null!==e&&(t&&(this.show=!0,this.inited=!0),(t?this.$nextTick:_i.c)((function(){var e=i.$refs,n=e.content,s=e.wrapper;if(n&&s){var r=n.offsetHeight;if(r){var o=r+"px";s.style.height=t?0:o,Object(_i.b)((function(){s.style.height=t?o:0}))}else i.onTransitionEnd()}})))}},methods:{onClick:function(){this.disabled||this.toggle()},toggle:function(t){void 0===t&&(t=!this.expanded);var e=this.parent,i=this.currentName,n=e.accordion&&i===e.value?"":i;this.parent.switch(n,t)},onTransitionEnd:function(){this.expanded?this.$refs.wrapper.style.height="":this.show=!1},genTitle:function(){var t=this,e=this.$createElement,i=this.border,s=this.disabled,r=this.expanded,o=gs.reduce((function(e,i){return t.slots(i)&&(e[i]=function(){return t.slots(i)}),e}),{});return this.slots("value")&&(o.default=function(){return t.slots("value")}),e(oe,{attrs:{role:"button",tabindex:s?-1:0,"aria-expanded":String(r)},class:vs("title",{disabled:s,expanded:r,borderless:!i}),on:{click:this.onClick},scopedSlots:o,props:n({},this.$props)})},genContent:function(){var t=this.$createElement;if(this.inited||!this.lazyRender)return t("div",{directives:[{name:"show",value:this.show}],ref:"wrapper",class:vs("wrapper"),on:{transitionend:this.onTransitionEnd}},[t("div",{ref:"content",class:vs("content")},[this.slots()])])}},render:function(){var t=arguments[0];return t("div",{class:[vs({border:this.index&&this.border})]},[this.genTitle(),this.genContent()])}}),ys=Object(l.a)("contact-card"),Ss=ys[0],ks=ys[1],xs=ys[2];function ws(t,e,i,n){var s=e.type,o=e.editable;return t(oe,r()([{attrs:{center:!0,border:!1,isLink:o,valueClass:ks("value"),icon:"edit"===s?"contact":"add-square"},class:ks([s]),on:{click:function(t){o&&d(n,"click",t)}}},h(n)]),["add"===s?e.addText||xs("addText"):[t("div",[xs("name")+":"+e.name]),t("div",[xs("tel")+":"+e.tel])]])}ws.props={tel:String,name:String,addText:String,editable:{type:Boolean,default:!0},type:{type:String,default:"add"}};var Cs=Ss(ws),Os=Object(l.a)("contact-edit"),Ts=Os[0],$s=Os[1],Bs=Os[2],Is={tel:"",name:""},Es=Ts({props:{isEdit:Boolean,isSaving:Boolean,isDeleting:Boolean,showSetDefault:Boolean,setDefaultLabel:String,contactInfo:{type:Object,default:function(){return n({},Is)}},telValidator:{type:Function,default:xt}},data:function(){return{data:n({},Is,this.contactInfo),errorInfo:{name:"",tel:""}}},watch:{contactInfo:function(t){this.data=n({},Is,t)}},methods:{onFocus:function(t){this.errorInfo[t]=""},getErrorMessageByKey:function(t){var e=this.data[t].trim();switch(t){case"name":return e?"":Bs("nameInvalid");case"tel":return this.telValidator(e)?"":Bs("telInvalid")}},onSave:function(){var t=this;["name","tel"].every((function(e){var i=t.getErrorMessageByKey(e);return i&&(t.errorInfo[e]=i),!i}))&&!this.isSaving&&this.$emit("save",this.data)},onDelete:function(){var t=this;Qe.confirm({title:Bs("confirmDelete")}).then((function(){t.$emit("delete",t.data)}))}},render:function(){var t=this,e=arguments[0],i=this.data,n=this.errorInfo,s=function(e){return function(){return t.onFocus(e)}};return e("div",{class:$s()},[e("div",{class:$s("fields")},[e(de,{attrs:{clearable:!0,maxlength:"30",label:Bs("name"),placeholder:Bs("nameEmpty"),errorMessage:n.name},on:{focus:s("name")},model:{value:i.name,callback:function(e){t.$set(i,"name",e)}}}),e(de,{attrs:{clearable:!0,type:"tel",label:Bs("tel"),placeholder:Bs("telEmpty"),errorMessage:n.tel},on:{focus:s("tel")},model:{value:i.tel,callback:function(e){t.$set(i,"tel",e)}}})]),this.showSetDefault&&e(oe,{attrs:{title:this.setDefaultLabel,border:!1},class:$s("switch-cell")},[e(li,{attrs:{size:24},slot:"right-icon",on:{change:function(e){t.$emit("change-default",e)}},model:{value:i.isDefault,callback:function(e){t.$set(i,"isDefault",e)}}})]),e("div",{class:$s("buttons")},[e(je,{attrs:{block:!0,round:!0,type:"danger",text:Bs("save"),loading:this.isSaving},on:{click:this.onSave}}),this.isEdit&&e(je,{attrs:{block:!0,round:!0,text:Bs("delete"),loading:this.isDeleting},on:{click:this.onDelete}})])])}}),js=Object(l.a)("contact-list"),Ds=js[0],Ps=js[1],Ls=js[2];function Ns(t,e,i,n){var s=e.list&&e.list.map((function(i,s){function r(){d(n,"input",i.id),d(n,"select",i,s)}return t(oe,{key:i.id,attrs:{isLink:!0,center:!0,valueClass:Ps("item-value")},class:Ps("item"),scopedSlots:{icon:function(){return t(rt,{attrs:{name:"edit"},class:Ps("edit"),on:{click:function(t){t.stopPropagation(),d(n,"edit",i,s)}}})},default:function(){var n=[i.name+","+i.tel];return i.isDefault&&e.defaultTagText&&n.push(t(wi,{attrs:{type:"danger",round:!0},class:Ps("item-tag")},[e.defaultTagText])),n},"right-icon":function(){return t(Ti,{attrs:{name:i.id,iconSize:16,checkedColor:Ct},on:{click:r}})}},on:{click:r}})}));return t("div",r()([{class:Ps()},h(n)]),[t(bi,{attrs:{value:e.value},class:Ps("group")},[s]),t("div",{class:Ps("bottom")},[t(je,{attrs:{round:!0,block:!0,type:"danger",text:e.addText||Ls("addText")},class:Ps("add"),on:{click:function(){d(n,"add")}}})])])}Ns.props={value:null,list:Array,addText:String,defaultTagText:String};var Ms=Ds(Ns),As=i(2);var zs=Object(l.a)("count-down"),Vs=zs[0],Rs=zs[1],Fs=Vs({props:{millisecond:Boolean,time:{type:[Number,String],default:0},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0}},data:function(){return{remain:0}},computed:{timeData:function(){return t=this.remain,{days:Math.floor(t/864e5),hours:Math.floor(t%864e5/36e5),minutes:Math.floor(t%36e5/6e4),seconds:Math.floor(t%6e4/1e3),milliseconds:Math.floor(t%1e3)};var t},formattedTime:function(){return function(t,e){var i=e.days,n=e.hours,s=e.minutes,r=e.seconds,o=e.milliseconds;if(-1===t.indexOf("DD")?n+=24*i:t=t.replace("DD",Object(As.b)(i)),-1===t.indexOf("HH")?s+=60*n:t=t.replace("HH",Object(As.b)(n)),-1===t.indexOf("mm")?r+=60*s:t=t.replace("mm",Object(As.b)(s)),-1===t.indexOf("ss")?o+=1e3*r:t=t.replace("ss",Object(As.b)(r)),-1!==t.indexOf("S")){var a=Object(As.b)(o,3);t=-1!==t.indexOf("SSS")?t.replace("SSS",a):-1!==t.indexOf("SS")?t.replace("SS",a.slice(0,2)):t.replace("S",a.charAt(0))}return t}(this.format,this.timeData)}},watch:{time:{immediate:!0,handler:"reset"}},activated:function(){this.keepAlivePaused&&(this.counting=!0,this.keepAlivePaused=!1,this.tick())},deactivated:function(){this.counting&&(this.pause(),this.keepAlivePaused=!0)},beforeDestroy:function(){this.pause()},methods:{start:function(){this.counting||(this.counting=!0,this.endTime=Date.now()+this.remain,this.tick())},pause:function(){this.counting=!1,Object(_i.a)(this.rafId)},reset:function(){this.pause(),this.remain=+this.time,this.autoStart&&this.start()},tick:function(){m.b&&(this.millisecond?this.microTick():this.macroTick())},microTick:function(){var t=this;this.rafId=Object(_i.c)((function(){t.counting&&(t.setRemain(t.getRemain()),t.remain>0&&t.microTick())}))},macroTick:function(){var t=this;this.rafId=Object(_i.c)((function(){if(t.counting){var e,i,n=t.getRemain();e=n,i=t.remain,(Math.floor(e/1e3)!==Math.floor(i/1e3)||0===n)&&t.setRemain(n),t.remain>0&&t.macroTick()}}))},getRemain:function(){return Math.max(this.endTime-Date.now(),0)},setRemain:function(t){this.remain=t,this.$emit("change",this.timeData),0===t&&(this.pause(),this.$emit("finish"))}},render:function(){var t=arguments[0];return t("div",{class:Rs()},[this.slots("default",this.timeData)||this.formattedTime])}}),Hs=Object(l.a)("coupon"),_s=Hs[0],Ws=Hs[1],qs=Hs[2];function Us(t){var e=new Date(function(t){return t<Math.pow(10,12)?1e3*t:+t}(t));return e.getFullYear()+"."+Object(As.b)(e.getMonth()+1)+"."+Object(As.b)(e.getDate())}function Ks(t){return(t/100).toFixed(t%100==0?0:t%10==0?1:2)}var Ys=_s({props:{coupon:Object,chosen:Boolean,disabled:Boolean,currency:{type:String,default:"¥"}},computed:{validPeriod:function(){var t=this.coupon,e=t.startAt,i=t.endAt;return t.customValidPeriod||Us(e)+" - "+Us(i)},faceAmount:function(){var t,e=this.coupon;if(e.valueDesc)return e.valueDesc+"<span>"+(e.unitDesc||"")+"</span>";if(e.denominations){var i=Ks(e.denominations);return"<span>"+this.currency+"</span> "+i}return e.discount?qs("discount",((t=e.discount)/10).toFixed(t%10==0?0:1)):""},conditionMessage:function(){var t=Ks(this.coupon.originCondition);return"0"===t?qs("unlimited"):qs("condition",t)}},render:function(){var t=arguments[0],e=this.coupon,i=this.disabled,n=i&&e.reason||e.description;return t("div",{class:Ws({disabled:i})},[t("div",{class:Ws("content")},[t("div",{class:Ws("head")},[t("h2",{class:Ws("amount"),domProps:{innerHTML:this.faceAmount}}),t("p",{class:Ws("condition")},[this.coupon.condition||this.conditionMessage])]),t("div",{class:Ws("body")},[t("p",{class:Ws("name")},[e.name]),t("p",{class:Ws("valid")},[this.validPeriod]),!this.disabled&&t(Xn,{attrs:{size:18,value:this.chosen,checkedColor:Ct},class:Ws("corner")})])]),n&&t("p",{class:Ws("description")},[n])])}}),Xs=Object(l.a)("coupon-cell"),Qs=Xs[0],Gs=Xs[1],Zs=Xs[2];function Js(t,e,i,n){var s=e.coupons[+e.chosenCoupon],o=function(t){var e=t.coupons,i=t.chosenCoupon,n=t.currency,s=e[+i];if(s){var r=0;return Object(m.c)(s.value)?r=s.value:Object(m.c)(s.denominations)&&(r=s.denominations),"-"+n+" "+(r/100).toFixed(2)}return 0===e.length?Zs("tips"):Zs("count",e.length)}(e);return t(oe,r()([{class:Gs(),attrs:{value:o,title:e.title||Zs("title"),border:e.border,isLink:e.editable,valueClass:Gs("value",{selected:s})}},h(n,!0)]))}Js.model={prop:"chosenCoupon"},Js.props={title:String,coupons:{type:Array,default:function(){return[]}},currency:{type:String,default:"¥"},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0},chosenCoupon:{type:[Number,String],default:-1}};var tr=Qs(Js),er=Object(l.a)("coupon-list"),ir=er[0],nr=er[1],sr=er[2],rr=ir({model:{prop:"code"},props:{code:String,closeButtonText:String,inputPlaceholder:String,enabledTitle:String,disabledTitle:String,exchangeButtonText:String,exchangeButtonLoading:Boolean,exchangeButtonDisabled:Boolean,exchangeMinLength:{type:Number,default:1},chosenCoupon:{type:Number,default:-1},coupons:{type:Array,default:function(){return[]}},disabledCoupons:{type:Array,default:function(){return[]}},displayedCouponIndex:{type:Number,default:-1},showExchangeBar:{type:Boolean,default:!0},showCloseButton:{type:Boolean,default:!0},showCount:{type:Boolean,default:!0},currency:{type:String,default:"¥"},emptyImage:{type:String,default:"https://img01.yzcdn.cn/vant/coupon-empty.png"}},data:function(){return{tab:0,winHeight:window.innerHeight,currentCode:this.code||""}},computed:{buttonDisabled:function(){return!this.exchangeButtonLoading&&(this.exchangeButtonDisabled||!this.currentCode||this.currentCode.length<this.exchangeMinLength)},listStyle:function(){return{height:this.winHeight-(this.showExchangeBar?140:94)+"px"}}},watch:{code:function(t){this.currentCode=t},currentCode:function(t){this.$emit("input",t)},displayedCouponIndex:"scrollToShowCoupon"},mounted:function(){this.scrollToShowCoupon(this.displayedCouponIndex)},methods:{onClickExchangeButton:function(){this.$emit("exchange",this.currentCode),this.code||(this.currentCode="")},scrollToShowCoupon:function(t){var e=this;-1!==t&&this.$nextTick((function(){var i=e.$refs,n=i.card,s=i.list;s&&n&&n[t]&&(s.scrollTop=n[t].$el.offsetTop-100)}))},genEmpty:function(){var t=this.$createElement;return t("div",{class:nr("empty")},[t("img",{attrs:{src:this.emptyImage}}),t("p",[sr("empty")])])},genExchangeButton:function(){return(0,this.$createElement)(je,{attrs:{plain:!0,type:"danger",text:this.exchangeButtonText||sr("exchange"),loading:this.exchangeButtonLoading,disabled:this.buttonDisabled},class:nr("exchange"),on:{click:this.onClickExchangeButton}})}},render:function(){var t=this,e=arguments[0],i=this.coupons,n=this.disabledCoupons,s=this.showCount?" ("+i.length+")":"",r=(this.enabledTitle||sr("enable"))+s,o=this.showCount?" ("+n.length+")":"",a=(this.disabledTitle||sr("disabled"))+o,l=this.showExchangeBar&&e("div",{class:nr("exchange-bar")},[e(de,{attrs:{clearable:!0,border:!1,placeholder:this.inputPlaceholder||sr("placeholder"),maxlength:"20"},class:nr("field"),model:{value:t.currentCode,callback:function(e){t.currentCode=e}}}),this.genExchangeButton()]),c=function(e){return function(){return t.$emit("change",e)}},u=e(yn,{attrs:{title:r}},[e("div",{class:nr("list",{"with-bottom":this.showCloseButton}),style:this.listStyle},[i.map((function(i,n){return e(Ys,{ref:"card",key:i.id,attrs:{coupon:i,currency:t.currency,chosen:n===t.chosenCoupon},nativeOn:{click:c(n)}})})),!i.length&&this.genEmpty(),this.slots("list-footer")])]),h=e(yn,{attrs:{title:a}},[e("div",{class:nr("list",{"with-bottom":this.showCloseButton}),style:this.listStyle},[n.map((function(i){return e(Ys,{attrs:{disabled:!0,coupon:i,currency:t.currency},key:i.id})})),!n.length&&this.genEmpty(),this.slots("disabled-list-footer")])]);return e("div",{class:nr()},[l,e(An,{class:nr("tab"),attrs:{border:!1},model:{value:t.tab,callback:function(e){t.tab=e}}},[u,h]),e("div",{class:nr("bottom")},[e(je,{directives:[{name:"show",value:this.showCloseButton}],attrs:{round:!0,type:"danger",block:!0,text:this.closeButtonText||sr("close")},class:nr("close"),on:{click:c(-1)}})])])}}),or=n({},wt,{value:null,filter:Function,columnsOrder:Array,showToolbar:{type:Boolean,default:!0},formatter:{type:Function,default:function(t,e){return e}}}),ar={data:function(){return{innerValue:this.formatValue(this.value)}},computed:{originColumns:function(){var t=this;return this.ranges.map((function(e){var i=e.type,n=e.range,s=function(t,e){if(t<0)return[];for(var i=-1,n=Array(t);++i<t;)n[i]=e(i);return n}(n[1]-n[0]+1,(function(t){return Object(As.b)(n[0]+t)}));return t.filter&&(s=t.filter(i,s)),{type:i,values:s}}))},columns:function(){var t=this;return this.originColumns.map((function(e){return{values:e.values.map((function(i){return t.formatter(e.type,i)}))}}))}},watch:{columns:"updateColumnValue",innerValue:function(t,e){e?this.$emit("input",t):this.$emit("input",null)}},mounted:function(){var t=this;this.updateColumnValue(),this.$nextTick((function(){t.updateInnerValue()}))},methods:{getPicker:function(){return this.$refs.picker},getProxiedPicker:function(){var t=this,e=this.$refs.picker;if(e){var i=function(i){return function(){e[i].apply(e,arguments),t.updateInnerValue()}};return n({},e,{setValues:i("setValues"),setIndexes:i("setIndexes"),setColumnIndex:i("setColumnIndex"),setColumnValue:i("setColumnValue")})}},onConfirm:function(){this.$emit("input",this.innerValue),this.$emit("confirm",this.innerValue)},onCancel:function(){this.$emit("cancel")}},render:function(){var t=this,e=arguments[0],i={};return Object.keys(wt).forEach((function(e){i[e]=t[e]})),e(Ut,{ref:"picker",attrs:{columns:this.columns,readonly:this.readonly},scopedSlots:this.$scopedSlots,on:{change:this.onChange,confirm:this.onConfirm,cancel:this.onCancel},props:n({},i)})}},lr=(0,Object(l.a)("time-picker")[0])({mixins:[ar],props:n({},or,{minHour:{type:[Number,String],default:0},maxHour:{type:[Number,String],default:23},minMinute:{type:[Number,String],default:0},maxMinute:{type:[Number,String],default:59}}),computed:{ranges:function(){return[{type:"hour",range:[+this.minHour,+this.maxHour]},{type:"minute",range:[+this.minMinute,+this.maxMinute]}]}},watch:{filter:"updateInnerValue",minHour:function(){var t=this;this.$nextTick((function(){t.updateInnerValue()}))},maxHour:function(t){var e=this.innerValue.split(":"),i=e[0],n=e[1];i>=t?(this.innerValue=this.formatValue(t+":"+n),this.updateColumnValue()):this.updateInnerValue()},minMinute:"updateInnerValue",maxMinute:function(t){var e=this.innerValue.split(":"),i=e[0];e[1]>=t?(this.innerValue=this.formatValue(i+":"+t),this.updateColumnValue()):this.updateInnerValue()},value:function(t){(t=this.formatValue(t))!==this.innerValue&&(this.innerValue=t,this.updateColumnValue())}},methods:{formatValue:function(t){t||(t=Object(As.b)(this.minHour)+":"+Object(As.b)(this.minMinute));var e=t.split(":"),i=e[0],n=e[1];return(i=Object(As.b)(Et(i,this.minHour,this.maxHour)))+":"+(n=Object(As.b)(Et(n,this.minMinute,this.maxMinute)))},updateInnerValue:function(){var t=this.getPicker().getIndexes(),e=t[0],i=t[1],n=this.originColumns,s=n[0],r=n[1],o=s.values[e]||s.values[0],a=r.values[i]||r.values[0];this.innerValue=this.formatValue(o+":"+a),this.updateColumnValue()},onChange:function(t){var e=this;this.updateInnerValue(),this.$nextTick((function(){e.$nextTick((function(){e.updateInnerValue(),e.$emit("change",t)}))}))},updateColumnValue:function(){var t=this,e=this.formatter,i=this.innerValue.split(":"),n=[e("hour",i[0]),e("minute",i[1])];this.$nextTick((function(){t.getPicker().setValues(n)}))}}});function cr(t,e){return(cr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ur(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function hr(t,e,i){return(hr=ur()?Reflect.construct:function(t,e,i){var n=[null];n.push.apply(n,e);var s=new(Function.bind.apply(t,n));return i&&cr(s,i.prototype),s}).apply(null,arguments)}var dr=(new Date).getFullYear(),fr=(0,Object(l.a)("date-picker")[0])({mixins:[ar],props:n({},or,{type:{type:String,default:"datetime"},minDate:{type:Date,default:function(){return new Date(dr-10,0,1)},validator:Wi},maxDate:{type:Date,default:function(){return new Date(dr+10,11,31)},validator:Wi}}),watch:{filter:"updateInnerValue",minDate:function(){var t=this;this.$nextTick((function(){t.updateInnerValue()}))},maxDate:function(t){this.innerValue.valueOf()>=t.valueOf()?this.innerValue=t:this.updateInnerValue()},value:function(t){(t=this.formatValue(t))&&t.valueOf()!==this.innerValue.valueOf()&&(this.innerValue=t)}},computed:{ranges:function(){var t=this.getBoundary("max",this.innerValue?this.innerValue:this.minDate),e=t.maxYear,i=t.maxDate,n=t.maxMonth,s=t.maxHour,r=t.maxMinute,o=this.getBoundary("min",this.innerValue?this.innerValue:this.minDate),a=o.minYear,l=o.minDate,c=[{type:"year",range:[a,e]},{type:"month",range:[o.minMonth,n]},{type:"day",range:[l,i]},{type:"hour",range:[o.minHour,s]},{type:"minute",range:[o.minMinute,r]}];switch(this.type){case"date":c=c.slice(0,3);break;case"year-month":c=c.slice(0,2);break;case"month-day":c=c.slice(1,3);break;case"datehour":c=c.slice(0,4)}if(this.columnsOrder){var u=this.columnsOrder.concat(c.map((function(t){return t.type})));c.sort((function(t,e){return u.indexOf(t.type)-u.indexOf(e.type)}))}return c}},methods:{formatValue:function(t){var e=this;if(!Wi(t))return null;var i=new Date(this.minDate),n=new Date(this.maxDate),s={year:"getFullYear",month:"getMonth",day:"getDate",hour:"getHours",minute:"getMinutes"};if(this.originColumns){var r=this.originColumns.map((function(t,r){var o=t.type,a=t.values,l=e.ranges[r].range,c=i[s[o]](),u=n[s[o]](),h="month"===o?+a[0]-1:+a[0],d="month"===o?+a[a.length-1]-1:+a[a.length-1];return{type:o,values:[c<l[0]?Math.max(c,h):h||c,u>l[1]?Math.min(u,d):d||u]}}));if("month-day"===this.type){var o=(this.innerValue||this.minDate).getFullYear();r.unshift({type:"year",values:[o,o]})}var a=Object.keys(s).map((function(t){var e;return null==(e=r.filter((function(e){return e.type===t}))[0])?void 0:e.values})).filter((function(t){return t}));i=hr(Date,a.map((function(t){return en(t[0])}))),n=hr(Date,a.map((function(t){return en(t[1])})))}return t=Math.max(t,i.getTime()),t=Math.min(t,n.getTime()),new Date(t)},getBoundary:function(t,e){var i,n=this[t+"Date"],s=n.getFullYear(),r=1,o=1,a=0,l=0;return"max"===t&&(r=12,o=nn(e.getFullYear(),e.getMonth()+1),a=23,l=59),e.getFullYear()===s&&(r=n.getMonth()+1,e.getMonth()+1===r&&(o=n.getDate(),e.getDate()===o&&(a=n.getHours(),e.getHours()===a&&(l=n.getMinutes())))),(i={})[t+"Year"]=s,i[t+"Month"]=r,i[t+"Date"]=o,i[t+"Hour"]=a,i[t+"Minute"]=l,i},updateInnerValue:function(){var t,e,i,n=this,s=this.type,r=this.getPicker().getIndexes(),o=function(t){var e=0;return n.originColumns.forEach((function(i,n){t===i.type&&(e=n)})),en(n.originColumns[e].values[r[e]])};"month-day"===s?(t=(this.innerValue||this.minDate).getFullYear(),e=o("month"),i=o("day")):(t=o("year"),e=o("month"),i="year-month"===s?1:o("day"));var a=nn(t,e);i=i>a?a:i;var l=0,c=0;"datehour"===s&&(l=o("hour")),"datetime"===s&&(l=o("hour"),c=o("minute"));var u=new Date(t,e-1,i,l,c);this.innerValue=this.formatValue(u)},onChange:function(t){var e=this;this.updateInnerValue(),this.$nextTick((function(){e.$nextTick((function(){e.updateInnerValue(),e.$emit("change",t)}))}))},updateColumnValue:function(){var t=this,e=this.innerValue?this.innerValue:this.minDate,i=this.formatter,n=this.originColumns.map((function(t){switch(t.type){case"year":return i("year",""+e.getFullYear());case"month":return i("month",Object(As.b)(e.getMonth()+1));case"day":return i("day",Object(As.b)(e.getDate()));case"hour":return i("hour",Object(As.b)(e.getHours()));case"minute":return i("minute",Object(As.b)(e.getMinutes()));default:return null}}));this.$nextTick((function(){t.getPicker().setValues(n)}))}}}),pr=Object(l.a)("datetime-picker"),mr=pr[0],vr=pr[1],gr=mr({props:n({},lr.props,fr.props),methods:{getPicker:function(){return this.$refs.root.getProxiedPicker()}},render:function(){var t=arguments[0],e="time"===this.type?lr:fr;return t(e,{ref:"root",class:vr(),scopedSlots:this.$scopedSlots,props:n({},this.$props),on:n({},this.$listeners)})}}),br=Object(l.a)("divider"),yr=br[0],Sr=br[1];function kr(t,e,i,n){var s;return t("div",r()([{attrs:{role:"separator"},style:{borderColor:e.borderColor},class:Sr((s={dashed:e.dashed,hairline:e.hairline},s["content-"+e.contentPosition]=i.default,s))},h(n,!0)]),[i.default&&i.default()])}kr.props={dashed:Boolean,hairline:{type:Boolean,default:!0},contentPosition:{type:String,default:"center"}};var xr=yr(kr),wr=Object(l.a)("dropdown-item"),Cr=wr[0],Or=wr[1],Tr=Cr({mixins:[H({ref:"wrapper"}),Pe("vanDropdownMenu")],props:{value:null,title:String,disabled:Boolean,titleClass:String,options:{type:Array,default:function(){return[]}},lazyRender:{type:Boolean,default:!0}},data:function(){return{transition:!0,showPopup:!1,showWrapper:!1}},computed:{displayTitle:function(){var t=this;if(this.title)return this.title;var e=this.options.filter((function(e){return e.value===t.value}));return e.length?e[0].text:""}},watch:{showPopup:function(t){this.bindScroll(t)}},beforeCreate:function(){var t=this,e=function(e){return function(){return t.$emit(e)}};this.onOpen=e("open"),this.onClose=e("close"),this.onOpened=e("opened")},methods:{toggle:function(t,e){void 0===t&&(t=!this.showPopup),void 0===e&&(e={}),t!==this.showPopup&&(this.transition=!e.immediate,this.showPopup=t,t&&(this.parent.updateOffset(),this.showWrapper=!0))},bindScroll:function(t){(t?b:y)(this.parent.scroller,"scroll",this.onScroll,!0)},onScroll:function(){this.parent.updateOffset()},onClickWrapper:function(t){this.getContainer&&t.stopPropagation()}},render:function(){var t=this,e=arguments[0],i=this.parent,n=i.zIndex,s=i.offset,r=i.overlay,o=i.duration,a=i.direction,l=i.activeColor,c=i.closeOnClickOverlay,u=this.options.map((function(i){var n=i.value===t.value;return e(oe,{attrs:{clickable:!0,icon:i.icon,title:i.text},key:i.value,class:Or("option",{active:n}),style:{color:n?l:""},on:{click:function(){t.showPopup=!1,i.value!==t.value&&(t.$emit("input",i.value),t.$emit("change",i.value))}}},[n&&e(rt,{class:Or("icon"),attrs:{color:l,name:"success"}})])})),h={zIndex:n};return"down"===a?h.top=s+"px":h.bottom=s+"px",e("div",[e("div",{directives:[{name:"show",value:this.showWrapper}],ref:"wrapper",style:h,class:Or([a]),on:{click:this.onClickWrapper}},[e(ct,{attrs:{overlay:r,position:"down"===a?"top":"bottom",duration:this.transition?o:0,lazyRender:this.lazyRender,overlayStyle:{position:"absolute"},closeOnClickOverlay:c},class:Or("content"),on:{open:this.onOpen,close:this.onClose,opened:this.onOpened,closed:function(){t.showWrapper=!1,t.$emit("closed")}},model:{value:t.showPopup,callback:function(e){t.showPopup=e}}},[u,this.slots("default")])])])}}),$r=function(t){return{props:{closeOnClickOutside:{type:Boolean,default:!0}},data:function(){var e=this;return{clickOutsideHandler:function(i){e.closeOnClickOutside&&!e.$el.contains(i.target)&&e[t.method]()}}},mounted:function(){b(document,t.event,this.clickOutsideHandler)},beforeDestroy:function(){y(document,t.event,this.clickOutsideHandler)}}},Br=Object(l.a)("dropdown-menu"),Ir=Br[0],Er=Br[1],jr=Ir({mixins:[Le("vanDropdownMenu"),$r({event:"click",method:"onClickOutside"})],props:{zIndex:[Number,String],activeColor:String,overlay:{type:Boolean,default:!0},duration:{type:[Number,String],default:.2},direction:{type:String,default:"down"},closeOnClickOverlay:{type:Boolean,default:!0}},data:function(){return{offset:0}},computed:{scroller:function(){return N(this.$el)},opened:function(){return this.children.some((function(t){return t.showWrapper}))},barStyle:function(){if(this.opened&&Object(m.c)(this.zIndex))return{zIndex:1+this.zIndex}}},methods:{updateOffset:function(){if(this.$refs.bar){var t=this.$refs.bar.getBoundingClientRect();"down"===this.direction?this.offset=t.bottom:this.offset=window.innerHeight-t.top}},toggleItem:function(t){this.children.forEach((function(e,i){i===t?e.toggle():e.showPopup&&e.toggle(!1,{immediate:!0})}))},onClickOutside:function(){this.children.forEach((function(t){t.toggle(!1)}))}},render:function(){var t=this,e=arguments[0],i=this.children.map((function(i,n){return e("div",{attrs:{role:"button",tabindex:i.disabled?-1:0},class:Er("item",{disabled:i.disabled}),on:{click:function(){i.disabled||t.toggleItem(n)}}},[e("span",{class:[Er("title",{active:i.showPopup,down:i.showPopup===("down"===t.direction)}),i.titleClass],style:{color:i.showPopup?t.activeColor:""}},[e("div",{class:"van-ellipsis"},[i.slots("title")||i.displayTitle])])])}));return e("div",{class:Er()},[e("div",{ref:"bar",style:this.barStyle,class:Er("bar",{opened:this.opened})},[i]),this.slots("default")])}}),Dr="van-empty-network-",Pr={render:function(){var t=arguments[0],e=function(e,i,n){return t("stop",{attrs:{"stop-color":e,offset:i+"%","stop-opacity":n}})};return t("svg",{attrs:{viewBox:"0 0 160 160",xmlns:"http://www.w3.org/2000/svg"}},[t("defs",[t("linearGradient",{attrs:{id:Dr+"1",x1:"64.022%",y1:"100%",x2:"64.022%",y2:"0%"}},[e("#FFF",0,.5),e("#F2F3F5",100)]),t("linearGradient",{attrs:{id:Dr+"2",x1:"50%",y1:"0%",x2:"50%",y2:"84.459%"}},[e("#EBEDF0",0),e("#DCDEE0",100,0)]),t("linearGradient",{attrs:{id:Dr+"3",x1:"100%",y1:"0%",x2:"100%",y2:"100%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:Dr+"4",x1:"100%",y1:"100%",x2:"100%",y2:"0%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:Dr+"5",x1:"0%",y1:"43.982%",x2:"100%",y2:"54.703%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:Dr+"6",x1:"94.535%",y1:"43.837%",x2:"5.465%",y2:"54.948%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("radialGradient",{attrs:{id:Dr+"7",cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54835 0 .5 -.5)"}},[e("#EBEDF0",0),e("#FFF",100,0)])]),t("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[t("g",{attrs:{opacity:".8"}},[t("path",{attrs:{d:"M0 124V46h20v20h14v58H0z",fill:"url(#"+Dr+"1)",transform:"matrix(-1 0 0 1 36 7)"}}),t("path",{attrs:{d:"M121 8h22.231v14H152v77.37h-31V8z",fill:"url(#"+Dr+"1)",transform:"translate(2 7)"}})]),t("path",{attrs:{fill:"url(#"+Dr+"7)",d:"M0 139h160v21H0z"}}),t("path",{attrs:{d:"M37 18a7 7 0 013 13.326v26.742c0 1.23-.997 2.227-2.227 2.227h-1.546A2.227 2.227 0 0134 58.068V31.326A7 7 0 0137 18z",fill:"url(#"+Dr+"2)","fill-rule":"nonzero",transform:"translate(43 36)"}}),t("g",{attrs:{opacity:".6","stroke-linecap":"round","stroke-width":"7"}},[t("path",{attrs:{d:"M20.875 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#"+Dr+"3)",transform:"translate(43 36)"}}),t("path",{attrs:{d:"M9.849 0C3.756 6.225 0 14.747 0 24.146c0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#"+Dr+"3)",transform:"translate(43 36)"}}),t("path",{attrs:{d:"M57.625 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#"+Dr+"4)",transform:"rotate(-180 76.483 42.257)"}}),t("path",{attrs:{d:"M73.216 0c-6.093 6.225-9.849 14.747-9.849 24.146 0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#"+Dr+"4)",transform:"rotate(-180 89.791 42.146)"}})]),t("g",{attrs:{transform:"translate(31 105)","fill-rule":"nonzero"}},[t("rect",{attrs:{fill:"url(#"+Dr+"5)",width:"98",height:"34",rx:"2"}}),t("rect",{attrs:{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.114"}}),t("rect",{attrs:{fill:"url(#"+Dr+"6)",x:"15",y:"12",width:"18",height:"6",rx:"1.114"}})])])])}},Lr=Object(l.a)("empty"),Nr=Lr[0],Mr=Lr[1],Ar=["error","search","default"],zr=Nr({props:{imageSize:[Number,String],description:String,image:{type:String,default:"default"}},methods:{genImageContent:function(){var t=this.$createElement,e=this.slots("image");if(e)return e;if("network"===this.image)return t(Pr);var i=this.image;return-1!==Ar.indexOf(i)&&(i="https://img01.yzcdn.cn/vant/empty-image-"+i+".png"),t("img",{attrs:{src:i}})},genImage:function(){var t=this.$createElement,e={width:Object(Y.a)(this.imageSize),height:Object(Y.a)(this.imageSize)};return t("div",{class:Mr("image"),style:e},[this.genImageContent()])},genDescription:function(){var t=this.$createElement,e=this.slots("description")||this.description;if(e)return t("p",{class:Mr("description")},[e])},genBottom:function(){var t=this.$createElement,e=this.slots();if(e)return t("div",{class:Mr("bottom")},[e])}},render:function(){var t=arguments[0];return t("div",{class:Mr()},[this.genImage(),this.genDescription(),this.genBottom()])}}),Vr=Object(l.a)("form"),Rr=Vr[0],Fr=Vr[1],Hr=Rr({props:{colon:Boolean,disabled:Boolean,readonly:Boolean,labelWidth:[Number,String],labelAlign:String,inputAlign:String,scrollToError:Boolean,validateFirst:Boolean,errorMessageAlign:String,submitOnEnter:{type:Boolean,default:!0},validateTrigger:{type:String,default:"onBlur"},showError:{type:Boolean,default:!0},showErrorMessage:{type:Boolean,default:!0}},provide:function(){return{vanForm:this}},data:function(){return{fields:[]}},methods:{getFieldsByNames:function(t){return t?this.fields.filter((function(e){return-1!==t.indexOf(e.name)})):this.fields},validateSeq:function(t){var e=this;return new Promise((function(i,n){var s=[];e.getFieldsByNames(t).reduce((function(t,e){return t.then((function(){if(!s.length)return e.validate().then((function(t){t&&s.push(t)}))}))}),Promise.resolve()).then((function(){s.length?n(s):i()}))}))},validateFields:function(t){var e=this;return new Promise((function(i,n){var s=e.getFieldsByNames(t);Promise.all(s.map((function(t){return t.validate()}))).then((function(t){(t=t.filter((function(t){return t}))).length?n(t):i()}))}))},validate:function(t){return t&&!Array.isArray(t)?this.validateField(t):this.validateFirst?this.validateSeq(t):this.validateFields(t)},validateField:function(t){var e=this.fields.filter((function(e){return e.name===t}));return e.length?new Promise((function(t,i){e[0].validate().then((function(e){e?i(e):t()}))})):Promise.reject()},resetValidation:function(t){t&&!Array.isArray(t)&&(t=[t]),this.getFieldsByNames(t).forEach((function(t){t.resetValidation()}))},scrollToField:function(t,e){this.fields.some((function(i){return i.name===t&&(i.$el.scrollIntoView(e),!0)}))},addField:function(t){this.fields.push(t),De(this.fields,this)},removeField:function(t){this.fields=this.fields.filter((function(e){return e!==t}))},getValues:function(){return this.fields.reduce((function(t,e){return t[e.name]=e.formValue,t}),{})},onSubmit:function(t){t.preventDefault(),this.submit()},submit:function(){var t=this,e=this.getValues();this.validate().then((function(){t.$emit("submit",e)})).catch((function(i){t.$emit("failed",{values:e,errors:i}),t.scrollToError&&t.scrollToField(i[0].name)}))}},render:function(){var t=arguments[0];return t("form",{class:Fr(),on:{submit:this.onSubmit}},[this.slots()])}}),_r=Object(l.a)("goods-action-icon"),Wr=_r[0],qr=_r[1],Ur=Wr({mixins:[Pe("vanGoodsAction")],props:n({},te,{dot:Boolean,text:String,icon:String,color:String,info:[Number,String],badge:[Number,String],iconClass:null}),methods:{onClick:function(t){this.$emit("click",t),Zt(this.$router,this)},genIcon:function(){var t,e=this.$createElement,i=this.slots("icon"),n=null!=(t=this.badge)?t:this.info;return i?e("div",{class:qr("icon")},[i,e(J,{attrs:{dot:this.dot,info:n}})]):e(rt,{class:[qr("icon"),this.iconClass],attrs:{tag:"div",dot:this.dot,name:this.icon,badge:n,color:this.color}})}},render:function(){var t=arguments[0];return t("div",{attrs:{role:"button",tabindex:"0"},class:qr(),on:{click:this.onClick}},[this.genIcon(),this.slots()||this.text])}}),Kr=Object(l.a)("grid"),Yr=Kr[0],Xr=Kr[1],Qr=Yr({mixins:[Le("vanGrid")],props:{square:Boolean,gutter:[Number,String],iconSize:[Number,String],direction:String,clickable:Boolean,columnNum:{type:[Number,String],default:4},center:{type:Boolean,default:!0},border:{type:Boolean,default:!0}},computed:{style:function(){var t=this.gutter;if(t)return{paddingLeft:Object(Y.a)(t)}}},render:function(){var t,e=arguments[0];return e("div",{style:this.style,class:[Xr(),(t={},t[Tt]=this.border&&!this.gutter,t)]},[this.slots()])}}),Gr=Object(l.a)("grid-item"),Zr=Gr[0],Jr=Gr[1],to=Zr({mixins:[Pe("vanGrid")],props:n({},te,{dot:Boolean,text:String,icon:String,iconPrefix:String,info:[Number,String],badge:[Number,String]}),computed:{style:function(){var t=this.parent,e=t.square,i=t.gutter,n=t.columnNum,s=100/n+"%",r={flexBasis:s};if(e)r.paddingTop=s;else if(i){var o=Object(Y.a)(i);r.paddingRight=o,this.index>=n&&(r.marginTop=o)}return r},contentStyle:function(){var t=this.parent,e=t.square,i=t.gutter;if(e&&i){var n=Object(Y.a)(i);return{right:n,bottom:n,height:"auto"}}}},methods:{onClick:function(t){this.$emit("click",t),Zt(this.$router,this)},genIcon:function(){var t,e=this.$createElement,i=this.slots("icon"),n=null!=(t=this.badge)?t:this.info;return i?e("div",{class:Jr("icon-wrapper")},[i,e(J,{attrs:{dot:this.dot,info:n}})]):this.icon?e(rt,{attrs:{name:this.icon,dot:this.dot,badge:n,size:this.parent.iconSize,classPrefix:this.iconPrefix},class:Jr("icon")}):void 0},getText:function(){var t=this.$createElement,e=this.slots("text");return e||(this.text?t("span",{class:Jr("text")},[this.text]):void 0)},genContent:function(){var t=this.slots();return t||[this.genIcon(),this.getText()]}},render:function(){var t,e=arguments[0],i=this.parent,n=i.center,s=i.border,r=i.square,o=i.gutter,a=i.direction,l=i.clickable;return e("div",{class:[Jr({square:r})],style:this.style},[e("div",{style:this.contentStyle,attrs:{role:l?"button":null,tabindex:l?0:null},class:[Jr("content",[a,{center:n,square:r,clickable:l,surround:s&&o}]),(t={},t[Ot]=s,t)],on:{click:this.onClick}},[this.genContent()])])}}),eo=Object(l.a)("image-preview"),io=eo[0],no=eo[1],so=Object(l.a)("swipe"),ro=so[0],oo=so[1],ao=ro({mixins:[F,Le("vanSwipe"),W((function(t,e){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0),t(window,"visibilitychange",this.onVisibilityChange),e?this.initialize():this.clear()}))],props:{width:[Number,String],height:[Number,String],autoplay:[Number,String],vertical:Boolean,lazyRender:Boolean,indicatorColor:String,loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},touchable:{type:Boolean,default:!0},initialSwipe:{type:[Number,String],default:0},showIndicators:{type:Boolean,default:!0},stopPropagation:{type:Boolean,default:!0}},data:function(){return{rect:null,offset:0,active:0,deltaX:0,deltaY:0,swiping:!1,computedWidth:0,computedHeight:0}},watch:{children:function(){this.initialize()},initialSwipe:function(){this.initialize()},autoplay:function(t){t>0?this.autoPlay():this.clear()}},computed:{count:function(){return this.children.length},maxCount:function(){return Math.ceil(Math.abs(this.minOffset)/this.size)},delta:function(){return this.vertical?this.deltaY:this.deltaX},size:function(){return this[this.vertical?"computedHeight":"computedWidth"]},trackSize:function(){return this.count*this.size},activeIndicator:function(){return(this.active+this.count)%this.count},isCorrectDirection:function(){var t=this.vertical?"vertical":"horizontal";return this.direction===t},trackStyle:function(){var t={transitionDuration:(this.swiping?0:this.duration)+"ms",transform:"translate"+(this.vertical?"Y":"X")+"("+this.offset+"px)"};if(this.size){var e=this.vertical?"height":"width",i=this.vertical?"width":"height";t[e]=this.trackSize+"px",t[i]=this[i]?this[i]+"px":""}return t},indicatorStyle:function(){return{backgroundColor:this.indicatorColor}},minOffset:function(){return(this.vertical?this.rect.height:this.rect.width)-this.size*this.count}},mounted:function(){this.bindTouchEvent(this.$refs.track)},methods:{initialize:function(t){if(void 0===t&&(t=+this.initialSwipe),this.$el&&!Sn(this.$el)){clearTimeout(this.timer);var e={width:this.$el.offsetWidth,height:this.$el.offsetHeight};this.rect=e,this.swiping=!0,this.active=t,this.computedWidth=+this.width||e.width,this.computedHeight=+this.height||e.height,this.offset=this.getTargetOffset(t),this.children.forEach((function(t){t.offset=0})),this.autoPlay()}},resize:function(){this.initialize(this.activeIndicator)},onVisibilityChange:function(){document.hidden?this.clear():this.autoPlay()},onTouchStart:function(t){this.touchable&&(this.clear(),this.touchStartTime=Date.now(),this.touchStart(t),this.correctPosition())},onTouchMove:function(t){this.touchable&&this.swiping&&(this.touchMove(t),this.isCorrectDirection&&(k(t,this.stopPropagation),this.move({offset:this.delta})))},onTouchEnd:function(){if(this.touchable&&this.swiping){var t=this.size,e=this.delta,i=e/(Date.now()-this.touchStartTime);if((Math.abs(i)>.25||Math.abs(e)>t/2)&&this.isCorrectDirection){var n=this.vertical?this.offsetY:this.offsetX,s=0;s=this.loop?n>0?e>0?-1:1:0:-Math[e>0?"ceil":"floor"](e/t),this.move({pace:s,emitChange:!0})}else e&&this.move({pace:0});this.swiping=!1,this.autoPlay()}},getTargetActive:function(t){var e=this.active,i=this.count,n=this.maxCount;return t?this.loop?Et(e+t,-1,i):Et(e+t,0,n):e},getTargetOffset:function(t,e){void 0===e&&(e=0);var i=t*this.size;this.loop||(i=Math.min(i,-this.minOffset));var n=e-i;return this.loop||(n=Et(n,this.minOffset,0)),n},move:function(t){var e=t.pace,i=void 0===e?0:e,n=t.offset,s=void 0===n?0:n,r=t.emitChange,o=this.loop,a=this.count,l=this.active,c=this.children,u=this.trackSize,h=this.minOffset;if(!(a<=1)){var d=this.getTargetActive(i),f=this.getTargetOffset(d,s);if(o){if(c[0]&&f!==h){var p=f<h;c[0].offset=p?u:0}if(c[a-1]&&0!==f){var m=f>0;c[a-1].offset=m?-u:0}}this.active=d,this.offset=f,r&&d!==l&&this.$emit("change",this.activeIndicator)}},prev:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(_i.b)((function(){t.swiping=!1,t.move({pace:-1,emitChange:!0})}))},next:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(_i.b)((function(){t.swiping=!1,t.move({pace:1,emitChange:!0})}))},swipeTo:function(t,e){var i=this;void 0===e&&(e={}),this.correctPosition(),this.resetTouchStatus(),Object(_i.b)((function(){var n;n=i.loop&&t===i.count?0===i.active?0:t:t%i.count,e.immediate?Object(_i.b)((function(){i.swiping=!1})):i.swiping=!1,i.move({pace:n-i.active,emitChange:!0})}))},correctPosition:function(){this.swiping=!0,this.active<=-1&&this.move({pace:this.count}),this.active>=this.count&&this.move({pace:-this.count})},clear:function(){clearTimeout(this.timer)},autoPlay:function(){var t=this,e=this.autoplay;e>0&&this.count>1&&(this.clear(),this.timer=setTimeout((function(){t.next(),t.autoPlay()}),e))},genIndicator:function(){var t=this,e=this.$createElement,i=this.count,n=this.activeIndicator,s=this.slots("indicator");return s||(this.showIndicators&&i>1?e("div",{class:oo("indicators",{vertical:this.vertical})},[Array.apply(void 0,Array(i)).map((function(i,s){return e("i",{class:oo("indicator",{active:s===n}),style:s===n?t.indicatorStyle:null})}))]):void 0)}},render:function(){var t=arguments[0];return t("div",{class:oo()},[t("div",{ref:"track",style:this.trackStyle,class:oo("track",{vertical:this.vertical})},[this.slots()]),this.genIndicator()])}}),lo=Object(l.a)("swipe-item"),co=lo[0],uo=lo[1],ho=co({mixins:[Pe("vanSwipe")],data:function(){return{offset:0,inited:!1,mounted:!1}},mounted:function(){var t=this;this.$nextTick((function(){t.mounted=!0}))},computed:{style:function(){var t={},e=this.parent,i=e.size,n=e.vertical;return i&&(t[n?"height":"width"]=i+"px"),this.offset&&(t.transform="translate"+(n?"Y":"X")+"("+this.offset+"px)"),t},shouldRender:function(){var t=this.index,e=this.inited,i=this.parent,n=this.mounted;if(!i.lazyRender||e)return!0;if(!n)return!1;var s=i.activeIndicator,r=i.count-1,o=0===s&&i.loop?r:s-1,a=s===r&&i.loop?0:s+1,l=t===s||t===o||t===a;return l&&(this.inited=!0),l}},render:function(){var t=arguments[0];return t("div",{class:uo(),style:this.style,on:n({},this.$listeners)},[this.shouldRender&&this.slots()])}});function fo(t){return Math.sqrt(Math.pow(t[0].clientX-t[1].clientX,2)+Math.pow(t[0].clientY-t[1].clientY,2))}var po,mo={mixins:[F],props:{src:String,show:Boolean,active:Number,minZoom:[Number,String],maxZoom:[Number,String],rootWidth:Number,rootHeight:Number},data:function(){return{scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}},computed:{vertical:function(){var t=this.rootWidth,e=this.rootHeight/t;return this.imageRatio>e},imageStyle:function(){var t=this.scale,e={transitionDuration:this.zooming||this.moving?"0s":".3s"};if(1!==t){var i=this.moveX/t,n=this.moveY/t;e.transform="scale("+t+", "+t+") translate("+i+"px, "+n+"px)"}return e},maxMoveX:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight/this.imageRatio:this.rootWidth;return Math.max(0,(this.scale*t-this.rootWidth)/2)}return 0},maxMoveY:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight:this.rootWidth*this.imageRatio;return Math.max(0,(this.scale*t-this.rootHeight)/2)}return 0}},watch:{active:"resetScale",show:function(t){t||this.resetScale()}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{resetScale:function(){this.setScale(1),this.moveX=0,this.moveY=0},setScale:function(t){(t=Et(t,+this.minZoom,+this.maxZoom))!==this.scale&&(this.scale=t,this.$emit("scale",{scale:this.scale,index:this.active}))},toggleScale:function(){var t=this.scale>1?1:2;this.setScale(t),this.moveX=0,this.moveY=0},onTouchStart:function(t){var e=t.touches,i=this.offsetX,n=void 0===i?0:i;this.touchStart(t),this.touchStartTime=new Date,this.fingerNum=e.length,this.startMoveX=this.moveX,this.startMoveY=this.moveY,this.moving=1===this.fingerNum&&1!==this.scale,this.zooming=2===this.fingerNum&&!n,this.zooming&&(this.startScale=this.scale,this.startDistance=fo(t.touches))},onTouchMove:function(t){var e=t.touches;if(this.touchMove(t),(this.moving||this.zooming)&&k(t,!0),this.moving){var i=this.deltaX+this.startMoveX,n=this.deltaY+this.startMoveY;this.moveX=Et(i,-this.maxMoveX,this.maxMoveX),this.moveY=Et(n,-this.maxMoveY,this.maxMoveY)}if(this.zooming&&2===e.length){var s=fo(e),r=this.startScale*s/this.startDistance;this.setScale(r)}},onTouchEnd:function(t){var e=!1;(this.moving||this.zooming)&&(e=!0,this.moving&&this.startMoveX===this.moveX&&this.startMoveY===this.moveY&&(e=!1),t.touches.length||(this.zooming&&(this.moveX=Et(this.moveX,-this.maxMoveX,this.maxMoveX),this.moveY=Et(this.moveY,-this.maxMoveY,this.maxMoveY),this.zooming=!1),this.moving=!1,this.startMoveX=0,this.startMoveY=0,this.startScale=1,this.scale<1&&this.resetScale())),k(t,e),this.checkTap(),this.resetTouchStatus()},checkTap:function(){var t=this;if(!(this.fingerNum>1)){var e=this.offsetX,i=void 0===e?0:e,n=this.offsetY,s=void 0===n?0:n,r=new Date-this.touchStartTime;i<5&&s<5&&r<250&&(this.doubleTapTimer?(clearTimeout(this.doubleTapTimer),this.doubleTapTimer=null,this.toggleScale()):this.doubleTapTimer=setTimeout((function(){t.$emit("close"),t.doubleTapTimer=null}),250))}},onLoad:function(t){var e=t.target,i=e.naturalWidth,n=e.naturalHeight;this.imageRatio=n/i}},render:function(){var t=arguments[0],e={loading:function(){return t(vt,{attrs:{type:"spinner"}})}};return t(ho,{class:no("swipe-item")},[t(un,{attrs:{src:this.src,fit:"contain"},class:no("image",{vertical:this.vertical}),style:this.imageStyle,scopedSlots:e,on:{load:this.onLoad}})])}},vo=io({mixins:[F,K({skipToggleEvent:!0}),W((function(t){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0)}))],props:{className:null,closeable:Boolean,asyncClose:Boolean,overlayStyle:Object,showIndicators:Boolean,images:{type:Array,default:function(){return[]}},loop:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},minZoom:{type:[Number,String],default:1/3},maxZoom:{type:[Number,String],default:3},transition:{type:String,default:"van-fade"},showIndex:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:300},startPosition:{type:[Number,String],default:0},overlayClass:{type:String,default:no("overlay")},closeIcon:{type:String,default:"clear"},closeOnPopstate:{type:Boolean,default:!0},closeIconPosition:{type:String,default:"top-right"}},data:function(){return{active:0,rootWidth:0,rootHeight:0,doubleClickTimer:null}},mounted:function(){this.resize()},watch:{startPosition:"setActive",value:function(t){var e=this;t?(this.setActive(+this.startPosition),this.$nextTick((function(){e.resize(),e.$refs.swipe.swipeTo(+e.startPosition,{immediate:!0})}))):this.$emit("close",{index:this.active,url:this.images[this.active]})}},methods:{resize:function(){if(this.$el&&this.$el.getBoundingClientRect){var t=this.$el.getBoundingClientRect();this.rootWidth=t.width,this.rootHeight=t.height}},emitClose:function(){this.asyncClose||this.$emit("input",!1)},emitScale:function(t){this.$emit("scale",t)},setActive:function(t){t!==this.active&&(this.active=t,this.$emit("change",t))},genIndex:function(){var t=this.$createElement;if(this.showIndex)return t("div",{class:no("index")},[this.slots("index",{index:this.active})||this.active+1+" / "+this.images.length])},genCover:function(){var t=this.$createElement,e=this.slots("cover");if(e)return t("div",{class:no("cover")},[e])},genImages:function(){var t=this,e=this.$createElement;return e(ao,{ref:"swipe",attrs:{lazyRender:!0,loop:this.loop,duration:this.swipeDuration,initialSwipe:this.startPosition,showIndicators:this.showIndicators,indicatorColor:"white"},class:no("swipe"),on:{change:this.setActive}},[this.images.map((function(i){return e(mo,{attrs:{src:i,show:t.value,active:t.active,maxZoom:t.maxZoom,minZoom:t.minZoom,rootWidth:t.rootWidth,rootHeight:t.rootHeight},on:{scale:t.emitScale,close:t.emitClose}})}))])},genClose:function(){var t=this.$createElement;if(this.closeable)return t(rt,{attrs:{role:"button",name:this.closeIcon},class:no("close-icon",this.closeIconPosition),on:{click:this.emitClose}})},onClosed:function(){this.$emit("closed")},swipeTo:function(t,e){this.$refs.swipe&&this.$refs.swipe.swipeTo(t,e)}},render:function(){var t=arguments[0];return t("transition",{attrs:{name:this.transition},on:{afterLeave:this.onClosed}},[this.shouldRender?t("div",{directives:[{name:"show",value:this.value}],class:[no(),this.className]},[this.genClose(),this.genImages(),this.genIndex(),this.genCover()]):null])}}),go={loop:!0,value:!0,images:[],maxZoom:3,minZoom:1/3,onClose:null,onChange:null,className:"",showIndex:!0,closeable:!1,closeIcon:"clear",asyncClose:!1,transition:"van-fade",getContainer:"body",overlayStyle:null,startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeIconPosition:"top-right"},bo=function(t,e){if(void 0===e&&(e=0),!m.h){po||(po=new(a.a.extend(vo))({el:document.createElement("div")}),document.body.appendChild(po.$el),po.$on("change",(function(t){po.onChange&&po.onChange(t)})),po.$on("scale",(function(t){po.onScale&&po.onScale(t)})));var i=Array.isArray(t)?{images:t,startPosition:e}:t;return n(po,go,i),po.$once("input",(function(t){po.value=t})),po.$once("closed",(function(){po.images=[]})),i.onClose&&(po.$off("close"),po.$once("close",i.onClose)),po}};bo.Component=vo,bo.install=function(){a.a.use(vo)};var yo=bo,So=Object(l.a)("index-anchor"),ko=So[0],xo=So[1],wo=ko({mixins:[Pe("vanIndexBar",{indexKey:"childrenIndex"})],props:{index:[Number,String]},data:function(){return{top:0,left:null,rect:{top:0,height:0},width:null,active:!1}},computed:{sticky:function(){return this.active&&this.parent.sticky},anchorStyle:function(){if(this.sticky)return{zIndex:""+this.parent.zIndex,left:this.left?this.left+"px":null,width:this.width?this.width+"px":null,transform:"translate3d(0, "+this.top+"px, 0)",color:this.parent.highlightColor}}},mounted:function(){var t=this.$el.getBoundingClientRect();this.rect.height=t.height},methods:{scrollIntoView:function(){this.$el.scrollIntoView()},getRect:function(t,e){var i=this.$el.getBoundingClientRect();return this.rect.height=i.height,t===window||t===document.body?this.rect.top=i.top+z():this.rect.top=i.top+M(t)-e.top,this.rect}},render:function(){var t,e=arguments[0],i=this.sticky;return e("div",{style:{height:i?this.rect.height+"px":null}},[e("div",{style:this.anchorStyle,class:[xo({sticky:i}),(t={},t[$t]=i,t)]},[this.slots("default")||this.index])])}});var Co=Object(l.a)("index-bar"),Oo=Co[0],To=Co[1],$o=Oo({mixins:[F,Le("vanIndexBar"),W((function(t){this.scroller||(this.scroller=N(this.$el)),t(this.scroller,"scroll",this.onScroll)}))],props:{zIndex:[Number,String],highlightColor:String,sticky:{type:Boolean,default:!0},stickyOffsetTop:{type:Number,default:0},indexList:{type:Array,default:function(){for(var t=[],e="A".charCodeAt(0),i=0;i<26;i++)t.push(String.fromCharCode(e+i));return t}}},data:function(){return{activeAnchorIndex:null}},computed:{sidebarStyle:function(){if(Object(m.c)(this.zIndex))return{zIndex:this.zIndex+1}},highlightStyle:function(){var t=this.highlightColor;if(t)return{color:t}}},watch:{indexList:function(){this.$nextTick(this.onScroll)},activeAnchorIndex:function(t){t&&this.$emit("change",t)}},methods:{onScroll:function(){var t=this;if(!Sn(this.$el)){var e=M(this.scroller),i=this.getScrollerRect(),n=this.children.map((function(e){return e.getRect(t.scroller,i)})),s=this.getActiveAnchorIndex(e,n);this.activeAnchorIndex=this.indexList[s],this.sticky&&this.children.forEach((function(r,o){if(o===s||o===s-1){var a=r.$el.getBoundingClientRect();r.left=a.left,r.width=a.width}else r.left=null,r.width=null;if(o===s)r.active=!0,r.top=Math.max(t.stickyOffsetTop,n[o].top-e)+i.top;else if(o===s-1){var l=n[s].top-e;r.active=l>0,r.top=l+i.top-n[o].height}else r.active=!1}))}},getScrollerRect:function(){return this.scroller.getBoundingClientRect?this.scroller.getBoundingClientRect():{top:0,left:0}},getActiveAnchorIndex:function(t,e){for(var i=this.children.length-1;i>=0;i--){var n=i>0?e[i-1].height:0;if(t+(this.sticky?n+this.stickyOffsetTop:0)>=e[i].top)return i}return-1},onClick:function(t){this.scrollToElement(t.target)},onTouchMove:function(t){if(this.touchMove(t),"vertical"===this.direction){k(t);var e=t.touches[0],i=e.clientX,n=e.clientY,s=document.elementFromPoint(i,n);if(s){var r=s.dataset.index;this.touchActiveIndex!==r&&(this.touchActiveIndex=r,this.scrollToElement(s))}}},scrollTo:function(t){var e=this.children.filter((function(e){return String(e.index)===t}));e[0]&&(e[0].scrollIntoView(),this.sticky&&this.stickyOffsetTop&&V(z()-this.stickyOffsetTop),this.$emit("select",e[0].index))},scrollToElement:function(t){var e=t.dataset.index;this.scrollTo(e)},onTouchEnd:function(){this.active=null}},render:function(){var t=this,e=arguments[0],i=this.indexList.map((function(i){var n=i===t.activeAnchorIndex;return e("span",{class:To("index",{active:n}),style:n?t.highlightStyle:null,attrs:{"data-index":i}},[i])}));return e("div",{class:To()},[e("div",{class:To("sidebar"),style:this.sidebarStyle,on:{click:this.onClick,touchstart:this.touchStart,touchmove:this.onTouchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[i]),this.slots("default")])}}),Bo=i(9),Io=i.n(Bo).a,Eo=Object(l.a)("list"),jo=Eo[0],Do=Eo[1],Po=Eo[2],Lo=jo({mixins:[W((function(t){this.scroller||(this.scroller=N(this.$el)),t(this.scroller,"scroll",this.check)}))],model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:[Number,String],default:300},direction:{type:String,default:"down"}},data:function(){return{innerLoading:this.loading}},updated:function(){this.innerLoading=this.loading},mounted:function(){this.immediateCheck&&this.check()},watch:{loading:"check",finished:"check"},methods:{check:function(){var t=this;this.$nextTick((function(){if(!(t.innerLoading||t.finished||t.error)){var e,i=t.$el,n=t.scroller,s=t.offset,r=t.direction;if(!((e=n.getBoundingClientRect?n.getBoundingClientRect():{top:0,bottom:n.innerHeight}).bottom-e.top)||Sn(i))return!1;var o=t.$refs.placeholder.getBoundingClientRect();("up"===r?e.top-o.top<=s:o.bottom-e.bottom<=s)&&(t.innerLoading=!0,t.$emit("input",!0),t.$emit("load"))}}))},clickErrorText:function(){this.$emit("update:error",!1),this.check()},genLoading:function(){var t=this.$createElement;if(this.innerLoading&&!this.finished)return t("div",{key:"loading",class:Do("loading")},[this.slots("loading")||t(vt,{attrs:{size:"16"}},[this.loadingText||Po("loading")])])},genFinishedText:function(){var t=this.$createElement;if(this.finished){var e=this.slots("finished")||this.finishedText;if(e)return t("div",{class:Do("finished-text")},[e])}},genErrorText:function(){var t=this.$createElement;if(this.error){var e=this.slots("error")||this.errorText;if(e)return t("div",{on:{click:this.clickErrorText},class:Do("error-text")},[e])}}},render:function(){var t=arguments[0],e=t("div",{ref:"placeholder",key:"placeholder",class:Do("placeholder")});return t("div",{class:Do(),attrs:{role:"feed","aria-busy":this.innerLoading}},["down"===this.direction?this.slots():e,this.genLoading(),this.genFinishedText(),this.genErrorText(),"up"===this.direction?this.slots():e])}}),No=i(7),Mo=Object(l.a)("nav-bar"),Ao=Mo[0],zo=Mo[1],Vo=Ao({props:{title:String,fixed:Boolean,zIndex:[Number,String],leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,border:{type:Boolean,default:!0}},data:function(){return{height:null}},mounted:function(){var t=this;if(this.placeholder&&this.fixed){var e=function(){t.height=t.$refs.navBar.getBoundingClientRect().height};e(),setTimeout(e,100)}},methods:{genLeft:function(){var t=this.$createElement,e=this.slots("left");return e||[this.leftArrow&&t(rt,{class:zo("arrow"),attrs:{name:"arrow-left"}}),this.leftText&&t("span",{class:zo("text")},[this.leftText])]},genRight:function(){var t=this.$createElement,e=this.slots("right");return e||(this.rightText?t("span",{class:zo("text")},[this.rightText]):void 0)},genNavBar:function(){var t,e=this.$createElement;return e("div",{ref:"navBar",style:{zIndex:this.zIndex},class:[zo({fixed:this.fixed,"safe-area-inset-top":this.safeAreaInsetTop}),(t={},t[$t]=this.border,t)]},[e("div",{class:zo("content")},[this.hasLeft()&&e("div",{class:zo("left"),on:{click:this.onClickLeft}},[this.genLeft()]),e("div",{class:[zo("title"),"van-ellipsis"]},[this.slots("title")||this.title]),this.hasRight()&&e("div",{class:zo("right"),on:{click:this.onClickRight}},[this.genRight()])])])},hasLeft:function(){return this.leftArrow||this.leftText||this.slots("left")},hasRight:function(){return this.rightText||this.slots("right")},onClickLeft:function(t){this.$emit("click-left",t)},onClickRight:function(t){this.$emit("click-right",t)}},render:function(){var t=arguments[0];return this.placeholder&&this.fixed?t("div",{class:zo("placeholder"),style:{height:this.height+"px"}},[this.genNavBar()]):this.genNavBar()}}),Ro=Object(l.a)("notice-bar"),Fo=Ro[0],Ho=Ro[1],_o=Fo({mixins:[W((function(t){t(window,"pageshow",this.reset)}))],inject:{vanPopup:{default:null}},props:{text:String,mode:String,color:String,leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null},delay:{type:[Number,String],default:1},speed:{type:[Number,String],default:60}},data:function(){return{show:!0,offset:0,duration:0,wrapWidth:0,contentWidth:0}},watch:{scrollable:"reset",text:{handler:"reset",immediate:!0}},created:function(){this.vanPopup&&this.vanPopup.onReopen(this.reset)},activated:function(){this.reset()},methods:{onClickIcon:function(t){"closeable"===this.mode&&(this.show=!1,this.$emit("close",t))},onTransitionEnd:function(){var t=this;this.offset=this.wrapWidth,this.duration=0,Object(_i.c)((function(){Object(_i.b)((function(){t.offset=-t.contentWidth,t.duration=(t.contentWidth+t.wrapWidth)/t.speed,t.$emit("replay")}))}))},start:function(){this.reset()},reset:function(){var t=this,e=Object(m.c)(this.delay)?1e3*this.delay:0;this.offset=0,this.duration=0,this.wrapWidth=0,this.contentWidth=0,clearTimeout(this.startTimer),this.startTimer=setTimeout((function(){var e=t.$refs,i=e.wrap,n=e.content;if(i&&n&&!1!==t.scrollable){var s=i.getBoundingClientRect().width,r=n.getBoundingClientRect().width;(t.scrollable||r>s)&&Object(_i.b)((function(){t.offset=-r,t.duration=r/t.speed,t.wrapWidth=s,t.contentWidth=r}))}}),e)}},render:function(){var t=this,e=arguments[0],i=this.slots,n=this.mode,s=this.leftIcon,r=this.onClickIcon,o={color:this.color,background:this.background},a={transform:this.offset?"translateX("+this.offset+"px)":"",transitionDuration:this.duration+"s"};function l(){var t=i("left-icon");return t||(s?e(rt,{class:Ho("left-icon"),attrs:{name:s}}):void 0)}function c(){var t,s=i("right-icon");return s||("closeable"===n?t="cross":"link"===n&&(t="arrow"),t?e(rt,{class:Ho("right-icon"),attrs:{name:t},on:{click:r}}):void 0)}return e("div",{attrs:{role:"alert"},directives:[{name:"show",value:this.show}],class:Ho({wrapable:this.wrapable}),style:o,on:{click:function(e){t.$emit("click",e)}}},[l(),e("div",{ref:"wrap",class:Ho("wrap"),attrs:{role:"marquee"}},[e("div",{ref:"content",class:[Ho("content"),{"van-ellipsis":!1===this.scrollable&&!this.wrapable}],style:a,on:{transitionend:this.onTransitionEnd}},[this.slots()||this.text])]),c()])}}),Wo=Object(l.a)("notify"),qo=Wo[0],Uo=Wo[1];function Ko(t,e,i,n){var s={color:e.color,background:e.background};return t(ct,r()([{attrs:{value:e.value,position:"top",overlay:!1,duration:.2,lockScroll:!1},style:s,class:[Uo([e.type]),e.className]},h(n,!0)]),[(null==i.default?void 0:i.default())||e.message])}Ko.props=n({},U,{color:String,message:[Number,String],duration:[Number,String],className:null,background:String,getContainer:[String,Function],type:{type:String,default:"danger"}});var Yo,Xo,Qo=qo(Ko);function Go(t){var e;if(!m.h)return Xo||(Xo=f(Qo,{on:{click:function(t){Xo.onClick&&Xo.onClick(t)},close:function(){Xo.onClose&&Xo.onClose()},opened:function(){Xo.onOpened&&Xo.onOpened()}}})),t=n({},Go.currentOptions,(e=t,Object(m.f)(e)?e:{message:e})),n(Xo,t),clearTimeout(Yo),t.duration&&t.duration>0&&(Yo=setTimeout(Go.clear,t.duration)),Xo}Go.clear=function(){Xo&&(Xo.value=!1)},Go.currentOptions={type:"danger",value:!0,message:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:null,onClick:null,onOpened:null},Go.setDefaultOptions=function(t){n(Go.currentOptions,t)},Go.resetDefaultOptions=function(){Go.currentOptions={type:"danger",value:!0,message:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:null,onClick:null,onOpened:null}},Go.install=function(){a.a.use(Qo)},Go.Component=Qo,a.a.prototype.$notify=Go;var Zo=Go,Jo={render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"0 0 32 22",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z",fill:"currentColor"}})])}},ta={render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"0 0 30 24",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M25.877 12.843h-1.502c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.5c.187 0 .187 0 .187-.188v-1.511c0-.19 0-.191-.185-.191zM17.999 10.2c0 .188 0 .188.188.188h1.687c.188 0 .188 0 .188-.188V8.688c0-.187.004-.187-.186-.19h-1.69c-.187 0-.187 0-.187.19V10.2zm2.25-3.967h1.5c.188 0 .188 0 .188-.188v-1.7c0-.19 0-.19-.188-.19h-1.5c-.189 0-.189 0-.189.19v1.7c0 .188 0 .188.19.188zm2.063 4.157h3.563c.187 0 .187 0 .187-.189V4.346c0-.19.004-.19-.185-.19h-1.69c-.187 0-.187 0-.187.188v4.155h-1.688c-.187 0-.187 0-.187.189v1.514c0 .19 0 .19.187.19zM14.812 24l2.812-3.4H12l2.813 3.4zm-9-11.157H4.31c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.502c.187 0 .187 0 .187-.188v-1.511c0-.19.01-.191-.189-.191zm15.937 0H8.25c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h13.5c.188 0 .188 0 .188-.188v-1.511c0-.19 0-.191-.188-.191zm-11.438-2.454h1.5c.188 0 .188 0 .188-.188V8.688c0-.187 0-.187-.188-.189h-1.5c-.187 0-.187 0-.187.189V10.2c0 .188 0 .188.187.188zM27.94 0c.563 0 .917.21 1.313.567.518.466.748.757.748 1.51v14.92c0 .567-.188 1.134-.562 1.512-.376.378-.938.566-1.313.566H2.063c-.563 0-.938-.188-1.313-.566-.562-.378-.75-.945-.75-1.511V2.078C0 1.51.188.944.562.567.938.189 1.5 0 1.875 0zm-.062 2H2v14.92h25.877V2zM5.81 4.157c.19 0 .19 0 .19.189v1.762c-.003.126-.024.126-.188.126H4.249c-.126-.003-.126-.023-.126-.188v-1.7c-.187-.19 0-.19.188-.19zm10.5 2.077h1.503c.187 0 .187 0 .187-.188v-1.7c0-.19 0-.19-.187-.19h-1.502c-.188 0-.188.001-.188.19v1.7c0 .188 0 .188.188.188zM7.875 8.5c.187 0 .187.002.187.189V10.2c0 .188 0 .188-.187.188H4.249c-.126-.002-.126-.023-.126-.188V8.625c.003-.126.024-.126.188-.126zm7.875 0c.19.002.19.002.19.189v1.575c-.003.126-.024.126-.19.126h-1.563c-.126-.002-.126-.023-.126-.188V8.625c.002-.126.023-.126.189-.126zm-6-4.342c.187 0 .187 0 .187.189v1.7c0 .188 0 .188-.187.188H8.187c-.126-.003-.126-.023-.126-.188V4.283c.003-.126.024-.126.188-.126zm3.94 0c.185 0 .372 0 .372.189v1.762c-.002.126-.023.126-.187.126h-1.75C12 6.231 12 6.211 12 6.046v-1.7c0-.19.187-.19.187-.19z",fill:"currentColor"}})])}},ea=Object(l.a)("key"),ia=ea[0],na=ea[1],sa=ia({mixins:[F],props:{type:String,text:[Number,String],color:String,wider:Boolean,large:Boolean,loading:Boolean},data:function(){return{active:!1}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{onTouchStart:function(t){t.stopPropagation(),this.touchStart(t),this.active=!0},onTouchMove:function(t){this.touchMove(t),this.direction&&(this.active=!1)},onTouchEnd:function(t){this.active&&(this.slots("default")||t.preventDefault(),this.active=!1,this.$emit("press",this.text,this.type))},genContent:function(){var t=this.$createElement,e="extra"===this.type,i="delete"===this.type,n=this.slots("default")||this.text;return this.loading?t(vt,{class:na("loading-icon")}):i?n||t(Jo,{class:na("delete-icon")}):e?n||t(ta,{class:na("collapse-icon")}):n}},render:function(){var t=arguments[0];return t("div",{class:na("wrapper",{wider:this.wider})},[t("div",{attrs:{role:"button",tabindex:"0"},class:na([this.color,{large:this.large,active:this.active,delete:"delete"===this.type}])},[this.genContent()])])}}),ra=Object(l.a)("number-keyboard"),oa=ra[0],aa=ra[1],la=oa({mixins:[H(),W((function(t){this.hideOnClickOutside&&t(document.body,"touchstart",this.onBlur)}))],model:{event:"update:value"},props:{show:Boolean,title:String,zIndex:[Number,String],randomKeyOrder:Boolean,closeButtonText:String,deleteButtonText:String,closeButtonLoading:Boolean,theme:{type:String,default:"default"},value:{type:String,default:""},extraKey:{type:[String,Array],default:""},maxlength:{type:[Number,String],default:Number.MAX_VALUE},transition:{type:Boolean,default:!0},showDeleteKey:{type:Boolean,default:!0},hideOnClickOutside:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0}},watch:{show:function(t){this.transition||this.$emit(t?"show":"hide")}},computed:{keys:function(){return"custom"===this.theme?this.genCustomKeys():this.genDefaultKeys()}},methods:{genBasicKeys:function(){for(var t=[],e=1;e<=9;e++)t.push({text:e});return this.randomKeyOrder&&t.sort((function(){return Math.random()>.5?1:-1})),t},genDefaultKeys:function(){return[].concat(this.genBasicKeys(),[{text:this.extraKey,type:"extra"},{text:0},{text:this.showDeleteKey?this.deleteButtonText:"",type:this.showDeleteKey?"delete":""}])},genCustomKeys:function(){var t=this.genBasicKeys(),e=this.extraKey,i=Array.isArray(e)?e:[e];return 1===i.length?t.push({text:0,wider:!0},{text:i[0],type:"extra"}):2===i.length&&t.push({text:i[0],type:"extra"},{text:0},{text:i[1],type:"extra"}),t},onBlur:function(){this.show&&this.$emit("blur")},onClose:function(){this.$emit("close"),this.onBlur()},onAnimationEnd:function(){this.$emit(this.show?"show":"hide")},onPress:function(t,e){if(""!==t){var i=this.value;"delete"===e?(this.$emit("delete"),this.$emit("update:value",i.slice(0,i.length-1))):"close"===e?this.onClose():i.length<this.maxlength&&(this.$emit("input",t),this.$emit("update:value",i+t))}else"extra"===e&&this.onBlur()},genTitle:function(){var t=this.$createElement,e=this.title,i=this.theme,n=this.closeButtonText,s=this.slots("title-left"),r=n&&"default"===i;if(e||r||s)return t("div",{class:aa("header")},[s&&t("span",{class:aa("title-left")},[s]),e&&t("h2",{class:aa("title")},[e]),r&&t("button",{attrs:{type:"button"},class:aa("close"),on:{click:this.onClose}},[n])])},genKeys:function(){var t=this,e=this.$createElement;return this.keys.map((function(i){return e(sa,{key:i.text,attrs:{text:i.text,type:i.type,wider:i.wider,color:i.color},on:{press:t.onPress}},["delete"===i.type&&t.slots("delete"),"extra"===i.type&&t.slots("extra-key")])}))},genSidebar:function(){var t=this.$createElement;if("custom"===this.theme)return t("div",{class:aa("sidebar")},[this.showDeleteKey&&t(sa,{attrs:{large:!0,text:this.deleteButtonText,type:"delete"},on:{press:this.onPress}},[this.slots("delete")]),t(sa,{attrs:{large:!0,text:this.closeButtonText,type:"close",color:"blue",loading:this.closeButtonLoading},on:{press:this.onPress}})])}},render:function(){var t=arguments[0],e=this.genTitle();return t("transition",{attrs:{name:this.transition?"van-slide-up":""}},[t("div",{directives:[{name:"show",value:this.show}],style:{zIndex:this.zIndex},class:aa({unfit:!this.safeAreaInsetBottom,"with-title":e}),on:{touchstart:S,animationend:this.onAnimationEnd,webkitAnimationEnd:this.onAnimationEnd}},[e,t("div",{class:aa("body")},[t("div",{class:aa("keys")},[this.genKeys()]),this.genSidebar()])])])}}),ca=Object(l.a)("pagination"),ua=ca[0],ha=ca[1],da=ca[2];function fa(t,e,i){return{number:t,text:e,active:i}}var pa=ua({props:{prevText:String,nextText:String,forceEllipses:Boolean,mode:{type:String,default:"multi"},value:{type:Number,default:0},pageCount:{type:[Number,String],default:0},totalItems:{type:[Number,String],default:0},itemsPerPage:{type:[Number,String],default:10},showPageSize:{type:[Number,String],default:5}},computed:{count:function(){var t=this.pageCount||Math.ceil(this.totalItems/this.itemsPerPage);return Math.max(1,t)},pages:function(){var t=[],e=this.count,i=+this.showPageSize;if("multi"!==this.mode)return t;var n=1,s=e,r=i<e;r&&(s=(n=Math.max(this.value-Math.floor(i/2),1))+i-1)>e&&(n=(s=e)-i+1);for(var o=n;o<=s;o++){var a=fa(o,o,o===this.value);t.push(a)}if(r&&i>0&&this.forceEllipses){if(n>1){var l=fa(n-1,"...",!1);t.unshift(l)}if(s<e){var c=fa(s+1,"...",!1);t.push(c)}}return t}},watch:{value:{handler:function(t){this.select(t||this.value)},immediate:!0}},methods:{select:function(t,e){t=Math.min(this.count,Math.max(1,t)),this.value!==t&&(this.$emit("input",t),e&&this.$emit("change",t))}},render:function(){var t,e,i=this,n=arguments[0],s=this.value,r="multi"!==this.mode,o=function(t){return function(){i.select(t,!0)}};return n("ul",{class:ha({simple:r})},[n("li",{class:[ha("item",{disabled:1===s}),ha("prev"),Ot],on:{click:o(s-1)}},[(null!=(t=this.slots("prev-text"))?t:this.prevText)||da("prev")]),this.pages.map((function(t){var e;return n("li",{class:[ha("item",{active:t.active}),ha("page"),Ot],on:{click:o(t.number)}},[null!=(e=i.slots("page",t))?e:t.text])})),r&&n("li",{class:ha("page-desc")},[this.slots("pageDesc")||s+"/"+this.count]),n("li",{class:[ha("item",{disabled:s===this.count}),ha("next"),Ot],on:{click:o(s+1)}},[(null!=(e=this.slots("next-text"))?e:this.nextText)||da("next")])])}}),ma=Object(l.a)("panel"),va=ma[0],ga=ma[1];function ba(t,e,i,n){return t(Kn,r()([{class:ga(),scopedSlots:{default:function(){return[i.header?i.header():t(oe,{attrs:{icon:e.icon,label:e.desc,title:e.title,value:e.status,valueClass:ga("header-value")},class:ga("header")}),t("div",{class:ga("content")},[i.default&&i.default()]),i.footer&&t("div",{class:[ga("footer"),Tt]},[i.footer()])]}}},h(n,!0)]))}ba.props={icon:String,desc:String,title:String,status:String};var ya=va(ba),Sa=Object(l.a)("password-input"),ka=Sa[0],xa=Sa[1];function wa(t,e,i,n){for(var s,o=e.mask,a=e.value,l=e.length,c=e.gutter,u=e.focused,f=e.errorInfo,p=f||e.info,m=[],v=0;v<l;v++){var g,b=a[v],y=0!==v&&!c,S=u&&v===a.length,k=void 0;0!==v&&c&&(k={marginLeft:Object(Y.a)(c)}),m.push(t("li",{class:[(g={},g["van-hairline--left"]=y,g),xa("item",{focus:S})],style:k},[o?t("i",{style:{visibility:b?"visible":"hidden"}}):b,S&&t("div",{class:xa("cursor")})]))}return t("div",{class:xa()},[t("ul",r()([{class:[xa("security"),(s={},s["van-hairline--surround"]=!c,s)],on:{touchstart:function(t){t.stopPropagation(),d(n,"focus",t)}}},h(n,!0)]),[m]),p&&t("div",{class:xa(f?"error-info":"info")},[p])])}wa.props={info:String,gutter:[Number,String],focused:Boolean,errorInfo:String,mask:{type:Boolean,default:!0},value:{type:String,default:""},length:{type:[Number,String],default:6}};var Ca=ka(wa);function Oa(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function Ta(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function $a(t){var e=Ta(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ba(t){return t instanceof Ta(t).Element||t instanceof Element}function Ia(t){return t instanceof Ta(t).HTMLElement||t instanceof HTMLElement}function Ea(t){return t?(t.nodeName||"").toLowerCase():null}function ja(t){return((Ba(t)?t.ownerDocument:t.document)||window.document).documentElement}function Da(t){return Ta(t).getComputedStyle(t)}function Pa(t){var e=Da(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function La(t,e,i){void 0===i&&(i=!1);var n,s,r=ja(e),o=Oa(t),a=Ia(e),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!i)&&(("body"!==Ea(e)||Pa(r))&&(l=(n=e)!==Ta(n)&&Ia(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:$a(n)),Ia(e)?((c=Oa(e)).x+=e.clientLeft,c.y+=e.clientTop):r&&(c.x=function(t){return Oa(ja(t)).left+$a(t).scrollLeft}(r))),{x:o.left+l.scrollLeft-c.x,y:o.top+l.scrollTop-c.y,width:o.width,height:o.height}}function Na(t){return"html"===Ea(t)?t:t.assignedSlot||t.parentNode||(e=t,"undefined"!=typeof ShadowRoot&&(e instanceof Ta(e).ShadowRoot||e instanceof ShadowRoot)?t.host:null)||ja(t);var e}function Ma(t,e){var i;void 0===e&&(e=[]);var n=function t(e){return["html","body","#document"].indexOf(Ea(e))>=0?e.ownerDocument.body:Ia(e)&&Pa(e)?e:t(Na(e))}(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),r=Ta(n),o=s?[r].concat(r.visualViewport||[],Pa(n)?n:[]):n,a=e.concat(o);return s?a:a.concat(Ma(Na(o)))}function Aa(t){return["table","td","th"].indexOf(Ea(t))>=0}function za(t){return Ia(t)&&"fixed"!==Da(t).position?t.offsetParent:null}function Va(t){for(var e=Ta(t),i=za(t);i&&Aa(i)&&"static"===Da(i).position;)i=za(i);return i&&("html"===Ea(i)||"body"===Ea(i)&&"static"===Da(i).position)?e:i||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Ia(t)&&"fixed"===Da(t).position)return null;for(var i=Na(t);Ia(i)&&["html","body"].indexOf(Ea(i))<0;){var n=Da(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}var Ra="top",Fa="right",Ha="left",_a=[].concat([Ra,"bottom",Fa,Ha],["auto"]).reduce((function(t,e){return t.concat([e,e+"-start",e+"-end"])}),[]),Wa=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function qa(t){var e=new Map,i=new Set,n=[];return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||function t(s){i.add(s.name),[].concat(s.requires||[],s.requiresIfExists||[]).forEach((function(n){if(!i.has(n)){var s=e.get(n);s&&t(s)}})),n.push(s)}(t)})),n}function Ua(t){return t.split("-")[0]}var Ka=Math.round;var Ya={placement:"bottom",modifiers:[],strategy:"absolute"};function Xa(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Qa(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,s=void 0===i?[]:i,r=e.defaultOptions,o=void 0===r?Ya:r;return function(t,e,i){void 0===i&&(i=o);var r,a,l={placement:"bottom",orderedModifiers:[],options:n({},Ya,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],u=!1,h={state:l,setOptions:function(i){d(),l.options=n({},o,l.options,i),l.scrollParents={reference:Ba(t)?Ma(t):t.contextElement?Ma(t.contextElement):[],popper:Ma(e)};var r=function(t){var e=qa(t);return Wa.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}(function(t){var e=t.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?n({},i,e,{options:n({},i.options,e.options),data:n({},i.data,e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}([].concat(s,l.options.modifiers)));return l.orderedModifiers=r.filter((function(t){return t.enabled})),l.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,s=t.effect;if("function"==typeof s){var r=s({state:l,name:e,instance:h,options:n});c.push(r||function(){})}})),h.update()},forceUpdate:function(){if(!u){var t=l.elements,e=t.reference,i=t.popper;if(Xa(e,i)){var s,r,o,a;l.rects={reference:La(e,Va(i),"fixed"===l.options.strategy),popper:(s=i,r=Oa(s),o=s.offsetWidth,a=s.offsetHeight,Math.abs(r.width-o)<=1&&(o=r.width),Math.abs(r.height-a)<=1&&(a=r.height),{x:s.offsetLeft,y:s.offsetTop,width:o,height:a})},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(t){return l.modifiersData[t.name]=n({},t.data)}));for(var c=0;c<l.orderedModifiers.length;c++)if(!0!==l.reset){var d=l.orderedModifiers[c],f=d.fn,p=d.options,m=void 0===p?{}:p,v=d.name;"function"==typeof f&&(l=f({state:l,options:m,name:v,instance:h})||l)}else l.reset=!1,c=-1}}},update:(r=function(){return new Promise((function(t){h.forceUpdate(),t(l)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(r())}))}))),a}),destroy:function(){d(),u=!0}};if(!Xa(t,e))return h;function d(){c.forEach((function(t){return t()})),c=[]}return h.setOptions(i).then((function(t){!u&&i.onFirstUpdate&&i.onFirstUpdate(t)})),h}}var Ga={passive:!0};var Za={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ja(t){var e,i=t.popper,s=t.popperRect,r=t.placement,o=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,h=!0===u?function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:Ka(Ka(e*n)/n)||0,y:Ka(Ka(i*n)/n)||0}}(o):"function"==typeof u?u(o):o,d=h.x,f=void 0===d?0:d,p=h.y,m=void 0===p?0:p,v=o.hasOwnProperty("x"),g=o.hasOwnProperty("y"),b=Ha,y=Ra,S=window;if(c){var k=Va(i),x="clientHeight",w="clientWidth";k===Ta(i)&&"static"!==Da(k=ja(i)).position&&(x="scrollHeight",w="scrollWidth"),k=k,r===Ra&&(y="bottom",m-=k[x]-s.height,m*=l?1:-1),r===Ha&&(b=Fa,f-=k[w]-s.width,f*=l?1:-1)}var C,O=n({position:a},c&&Za);return n({},O,l?((C={})[y]=g?"0":"",C[b]=v?"0":"",C.transform=(S.devicePixelRatio||1)<2?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",C):((e={})[y]=g?m+"px":"",e[b]=v?f+"px":"",e.transform="",e))}var tl=Qa({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,r=void 0===s||s,o=n.resize,a=void 0===o||o,l=Ta(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach((function(t){t.addEventListener("scroll",i.update,Ga)})),a&&l.addEventListener("resize",i.update,Ga),function(){r&&c.forEach((function(t){t.removeEventListener("scroll",i.update,Ga)})),a&&l.removeEventListener("resize",i.update,Ga)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=function(t){var e,i=t.reference,n=t.element,s=t.placement,r=s?Ua(s):null,o=s?function(t){return t.split("-")[1]}(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case Ra:e={x:a,y:i.y-n.height};break;case"bottom":e={x:a,y:i.y+i.height};break;case Fa:e={x:i.x+i.width,y:l};break;case Ha:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=r?function(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}(r):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case"start":e[c]=e[c]-(i[u]/2-n[u]/2);break;case"end":e[c]=e[c]+(i[u]/2-n[u]/2)}}return e}({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,s=i.gpuAcceleration,r=void 0===s||s,o=i.adaptive,a=void 0===o||o,l=i.roundOffsets,c=void 0===l||l,u={placement:Ua(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r};null!=e.modifiersData.popperOffsets&&(e.styles.popper=n({},e.styles.popper,Ja(n({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=n({},e.styles.arrow,Ja(n({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=n({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},s=e.attributes[t]||{},r=e.elements[t];Ia(r)&&Ea(r)&&(n(r.style,i),Object.keys(s).forEach((function(t){var e=s[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return n(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&n(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var s=e.elements[t],r=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});Ia(s)&&Ea(s)&&(n(s.style,o),Object.keys(r).forEach((function(t){s.removeAttribute(t)})))}))}},requires:["computeStyles"]}]});var el={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,s=t.name,r=i.offset,o=void 0===r?[0,0]:r,a=_a.reduce((function(t,i){return t[i]=function(t,e,i){var s=Ua(t),r=[Ha,Ra].indexOf(s)>=0?-1:1,o="function"==typeof i?i(n({},e,{placement:t})):i,a=o[0],l=o[1];return a=a||0,l=(l||0)*r,[Ha,Fa].indexOf(s)>=0?{x:l,y:a}:{x:a,y:l}}(i,e.rects,o),t}),{}),l=a[e.placement],c=l.x,u=l.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=u),e.modifiersData[s]=a}},il=Object(l.a)("popover"),nl=il[0],sl=il[1],rl=nl({mixins:[$r({event:"touchstart",method:"onClickOutside"})],props:{value:Boolean,trigger:String,overlay:Boolean,offset:{type:Array,default:function(){return[0,8]}},theme:{type:String,default:"light"},actions:{type:Array,default:function(){return[]}},placement:{type:String,default:"bottom"},getContainer:{type:[String,Function],default:"body"},closeOnClickAction:{type:Boolean,default:!0}},watch:{value:"updateLocation",placement:"updateLocation"},mounted:function(){this.updateLocation()},beforeDestroy:function(){this.popper&&(m.h||(window.removeEventListener("animationend",this.updateLocation),window.removeEventListener("transitionend",this.updateLocation)),this.popper.destroy(),this.popper=null)},methods:{createPopper:function(){var t=tl(this.$refs.wrapper,this.$refs.popover.$el,{placement:this.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},n({},el,{options:{offset:this.offset}})]});return m.h||(window.addEventListener("animationend",this.updateLocation),window.addEventListener("transitionend",this.updateLocation)),t},updateLocation:function(){var t=this;this.$nextTick((function(){t.value&&(t.popper?t.popper.setOptions({placement:t.placement}):t.popper=t.createPopper())}))},renderAction:function(t,e){var i=this,n=this.$createElement,s=t.icon,r=t.text,o=t.disabled,a=t.className;return n("div",{attrs:{role:"menuitem"},class:[sl("action",{disabled:o,"with-icon":s}),a],on:{click:function(){return i.onClickAction(t,e)}}},[s&&n(rt,{attrs:{name:s},class:sl("action-icon")}),n("div",{class:[sl("action-text"),$t]},[r])])},onToggle:function(t){this.$emit("input",t)},onClickWrapper:function(){"click"===this.trigger&&this.onToggle(!this.value)},onTouchstart:function(t){t.stopPropagation(),this.$emit("touchstart",t)},onClickAction:function(t,e){t.disabled||(this.$emit("select",t,e),this.closeOnClickAction&&this.$emit("input",!1))},onClickOutside:function(){this.$emit("input",!1)},onOpen:function(){this.$emit("open")},onOpened:function(){this.$emit("opened")},onClose:function(){this.$emit("close")},onClosed:function(){this.$emit("closed")}},render:function(){var t=arguments[0];return t("span",{ref:"wrapper",class:sl("wrapper"),on:{click:this.onClickWrapper}},[t(ct,{ref:"popover",attrs:{value:this.value,overlay:this.overlay,position:null,transition:"van-popover-zoom",lockScroll:!1,getContainer:this.getContainer},class:sl([this.theme]),on:{open:this.onOpen,close:this.onClose,input:this.onToggle,opened:this.onOpened,closed:this.onClosed},nativeOn:{touchstart:this.onTouchstart}},[t("div",{class:sl("arrow")}),t("div",{class:sl("content"),attrs:{role:"menu"}},[this.slots("default")||this.actions.map(this.renderAction)])]),this.slots("reference")])}}),ol=Object(l.a)("progress"),al=ol[0],ll=ol[1],cl=al({mixins:[W((function(t){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0)}))],props:{color:String,inactive:Boolean,pivotText:String,textColor:String,pivotColor:String,trackColor:String,strokeWidth:[Number,String],percentage:{type:[Number,String],required:!0,validator:function(t){return t>=0&&t<=100}},showPivot:{type:Boolean,default:!0}},data:function(){return{pivotWidth:0,progressWidth:0}},mounted:function(){this.resize()},watch:{showPivot:"resize",pivotText:"resize"},methods:{resize:function(){var t=this;this.$nextTick((function(){t.progressWidth=t.$el.offsetWidth,t.pivotWidth=t.$refs.pivot?t.$refs.pivot.offsetWidth:0}))}},render:function(){var t=arguments[0],e=this.pivotText,i=this.percentage,n=null!=e?e:i+"%",s=this.showPivot&&n,r=this.inactive?"#cacaca":this.color,o={color:this.textColor,left:(this.progressWidth-this.pivotWidth)*i/100+"px",background:this.pivotColor||r},a={background:r,width:this.progressWidth*i/100+"px"},l={background:this.trackColor,height:Object(Y.a)(this.strokeWidth)};return t("div",{class:ll(),style:l},[t("span",{class:ll("portion"),style:a},[s&&t("span",{ref:"pivot",style:o,class:ll("pivot")},[n])])])}}),ul=Object(l.a)("pull-refresh"),hl=ul[0],dl=ul[1],fl=ul[2],pl=["pulling","loosing","success"],ml=hl({mixins:[F],props:{disabled:Boolean,successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:[Number,String],value:{type:Boolean,required:!0},successDuration:{type:[Number,String],default:500},animationDuration:{type:[Number,String],default:300},headHeight:{type:[Number,String],default:50}},data:function(){return{status:"normal",distance:0,duration:0}},computed:{touchable:function(){return"loading"!==this.status&&"success"!==this.status&&!this.disabled},headStyle:function(){if(50!==this.headHeight)return{height:this.headHeight+"px"}}},watch:{value:function(t){this.duration=this.animationDuration,t?this.setStatus(+this.headHeight,!0):this.slots("success")||this.successText?this.showSuccessTip():this.setStatus(0,!1)}},mounted:function(){this.bindTouchEvent(this.$refs.track),this.scrollEl=N(this.$el)},methods:{checkPullStart:function(t){this.ceiling=0===M(this.scrollEl),this.ceiling&&(this.duration=0,this.touchStart(t))},onTouchStart:function(t){this.touchable&&this.checkPullStart(t)},onTouchMove:function(t){this.touchable&&(this.ceiling||this.checkPullStart(t),this.touchMove(t),this.ceiling&&this.deltaY>=0&&"vertical"===this.direction&&(k(t),this.setStatus(this.ease(this.deltaY))))},onTouchEnd:function(){var t=this;this.touchable&&this.ceiling&&this.deltaY&&(this.duration=this.animationDuration,"loosing"===this.status?(this.setStatus(+this.headHeight,!0),this.$emit("input",!0),this.$nextTick((function(){t.$emit("refresh")}))):this.setStatus(0))},ease:function(t){var e=+(this.pullDistance||this.headHeight);return t>e&&(t=t<2*e?e+(t-e)/2:1.5*e+(t-2*e)/4),Math.round(t)},setStatus:function(t,e){var i;i=e?"loading":0===t?"normal":t<(this.pullDistance||this.headHeight)?"pulling":"loosing",this.distance=t,i!==this.status&&(this.status=i)},genStatus:function(){var t=this.$createElement,e=this.status,i=this.distance,n=this.slots(e,{distance:i});if(n)return n;var s=[],r=this[e+"Text"]||fl(e);return-1!==pl.indexOf(e)&&s.push(t("div",{class:dl("text")},[r])),"loading"===e&&s.push(t(vt,{attrs:{size:"16"}},[r])),s},showSuccessTip:function(){var t=this;this.status="success",setTimeout((function(){t.setStatus(0)}),this.successDuration)}},render:function(){var t=arguments[0],e={transitionDuration:this.duration+"ms",transform:this.distance?"translate3d(0,"+this.distance+"px, 0)":""};return t("div",{class:dl()},[t("div",{ref:"track",class:dl("track"),style:e},[t("div",{class:dl("head"),style:this.headStyle},[this.genStatus()]),this.slots()])])}}),vl=Object(l.a)("rate"),gl=vl[0],bl=vl[1];var yl=gl({mixins:[F,si],props:{size:[Number,String],color:String,gutter:[Number,String],readonly:Boolean,disabled:Boolean,allowHalf:Boolean,voidColor:String,iconPrefix:String,disabledColor:String,value:{type:Number,default:0},icon:{type:String,default:"star"},voidIcon:{type:String,default:"star-o"},count:{type:[Number,String],default:5},touchable:{type:Boolean,default:!0}},computed:{list:function(){for(var t,e,i,n=[],s=1;s<=this.count;s++)n.push((t=this.value,e=s,i=this.allowHalf,t>=e?"full":t+.5>=e&&i?"half":"void"));return n},sizeWithUnit:function(){return Object(Y.a)(this.size)},gutterWithUnit:function(){return Object(Y.a)(this.gutter)}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{select:function(t){this.disabled||this.readonly||t===this.value||(this.$emit("input",t),this.$emit("change",t))},onTouchStart:function(t){var e=this;if(!this.readonly&&!this.disabled&&this.touchable){this.touchStart(t);var i=this.$refs.items.map((function(t){return t.getBoundingClientRect()})),n=[];i.forEach((function(t,i){e.allowHalf?n.push({score:i+.5,left:t.left},{score:i+1,left:t.left+t.width/2}):n.push({score:i+1,left:t.left})})),this.ranges=n}},onTouchMove:function(t){if(!this.readonly&&!this.disabled&&this.touchable&&(this.touchMove(t),"horizontal"===this.direction)){k(t);var e=t.touches[0].clientX;this.select(this.getScoreByPosition(e))}},getScoreByPosition:function(t){for(var e=this.ranges.length-1;e>0;e--)if(t>this.ranges[e].left)return this.ranges[e].score;return this.allowHalf?.5:1},genStar:function(t,e){var i,n=this,s=this.$createElement,r=this.icon,o=this.color,a=this.count,l=this.voidIcon,c=this.disabled,u=this.voidColor,h=this.disabledColor,d=e+1,f="full"===t,p="void"===t;return this.gutterWithUnit&&d!==+a&&(i={paddingRight:this.gutterWithUnit}),s("div",{ref:"items",refInFor:!0,key:e,attrs:{role:"radio",tabindex:"0","aria-setsize":a,"aria-posinset":d,"aria-checked":String(!p)},style:i,class:bl("item")},[s(rt,{attrs:{size:this.sizeWithUnit,name:f?r:l,color:c?h:f?o:u,classPrefix:this.iconPrefix,"data-score":d},class:bl("icon",{disabled:c,full:f}),on:{click:function(){n.select(d)}}}),this.allowHalf&&s(rt,{attrs:{size:this.sizeWithUnit,name:p?l:r,color:c?h:p?u:o,classPrefix:this.iconPrefix,"data-score":d-.5},class:bl("icon",["half",{disabled:c,full:!p}]),on:{click:function(){n.select(d-.5)}}})])}},render:function(){var t=this,e=arguments[0];return e("div",{class:bl({readonly:this.readonly,disabled:this.disabled}),attrs:{tabindex:"0",role:"radiogroup"}},[this.list.map((function(e,i){return t.genStar(e,i)}))])}}),Sl=Object(l.a)("row"),kl=Sl[0],xl=Sl[1],wl=kl({mixins:[Le("vanRow")],props:{type:String,align:String,justify:String,tag:{type:String,default:"div"},gutter:{type:[Number,String],default:0}},computed:{spaces:function(){var t=Number(this.gutter);if(t){var e=[],i=[[]],n=0;return this.children.forEach((function(t,e){(n+=Number(t.span))>24?(i.push([e]),n-=24):i[i.length-1].push(e)})),i.forEach((function(i){var n=t*(i.length-1)/i.length;i.forEach((function(i,s){if(0===s)e.push({right:n});else{var r=t-e[i-1].right,o=n-r;e.push({left:r,right:o})}}))})),e}}},methods:{onClick:function(t){this.$emit("click",t)}},render:function(){var t,e=arguments[0],i=this.align,n=this.justify,s="flex"===this.type;return e(this.tag,{class:xl((t={flex:s},t["align-"+i]=s&&i,t["justify-"+n]=s&&n,t)),on:{click:this.onClick}},[this.slots()])}}),Cl=Object(l.a)("search"),Ol=Cl[0],Tl=Cl[1],$l=Cl[2];function Bl(t,e,i,s){var o={attrs:s.data.attrs,on:n({},s.listeners,{keypress:function(t){13===t.keyCode&&(k(t),d(s,"search",e.value)),d(s,"keypress",t)}})},a=h(s);return a.attrs=void 0,t("div",r()([{class:Tl({"show-action":e.showAction}),style:{background:e.background}},a]),[null==i.left?void 0:i.left(),t("div",{class:Tl("content",e.shape)},[function(){if(i.label||e.label)return t("div",{class:Tl("label")},[i.label?i.label():e.label])}(),t(de,r()([{attrs:{type:"search",border:!1,value:e.value,leftIcon:e.leftIcon,rightIcon:e.rightIcon,clearable:e.clearable,clearTrigger:e.clearTrigger},scopedSlots:{"left-icon":i["left-icon"],"right-icon":i["right-icon"]}},o]))]),function(){if(e.showAction)return t("div",{class:Tl("action"),attrs:{role:"button",tabindex:"0"},on:{click:function(){i.action||(d(s,"input",""),d(s,"cancel"))}}},[i.action?i.action():e.actionText||$l("cancel")])}()])}Bl.props={value:String,label:String,rightIcon:String,actionText:String,background:String,showAction:Boolean,clearTrigger:String,shape:{type:String,default:"square"},clearable:{type:Boolean,default:!0},leftIcon:{type:String,default:"search"}};var Il=Ol(Bl),El=["qq","link","weibo","wechat","poster","qrcode","weapp-qrcode","wechat-moments"],jl=Object(l.a)("share-sheet"),Dl=jl[0],Pl=jl[1],Ll=jl[2],Nl=Dl({props:n({},U,{title:String,duration:String,cancelText:String,description:String,getContainer:[String,Function],options:{type:Array,default:function(){return[]}},overlay:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}}),methods:{onCancel:function(){this.toggle(!1),this.$emit("cancel")},onSelect:function(t,e){this.$emit("select",t,e)},toggle:function(t){this.$emit("input",t)},getIconURL:function(t){return-1!==El.indexOf(t)?"https://img01.yzcdn.cn/vant/share-sheet-"+t+".png":t},genHeader:function(){var t=this.$createElement,e=this.slots("title")||this.title,i=this.slots("description")||this.description;if(e||i)return t("div",{class:Pl("header")},[e&&t("h2",{class:Pl("title")},[e]),i&&t("span",{class:Pl("description")},[i])])},genOptions:function(t,e){var i=this,n=this.$createElement;return n("div",{class:Pl("options",{border:e})},[t.map((function(t,e){return n("div",{attrs:{role:"button",tabindex:"0"},class:[Pl("option"),t.className],on:{click:function(){i.onSelect(t,e)}}},[n("img",{attrs:{src:i.getIconURL(t.icon)},class:Pl("icon")}),t.name&&n("span",{class:Pl("name")},[t.name]),t.description&&n("span",{class:Pl("option-description")},[t.description])])}))])},genRows:function(){var t=this,e=this.options;return Array.isArray(e[0])?e.map((function(e,i){return t.genOptions(e,0!==i)})):this.genOptions(e)},genCancelText:function(){var t,e=this.$createElement,i=null!=(t=this.cancelText)?t:Ll("cancel");if(i)return e("button",{attrs:{type:"button"},class:Pl("cancel"),on:{click:this.onCancel}},[i])},onClickOverlay:function(){this.$emit("click-overlay")}},render:function(){var t=arguments[0];return t(ct,{attrs:{round:!0,value:this.value,position:"bottom",overlay:this.overlay,duration:this.duration,lazyRender:this.lazyRender,lockScroll:this.lockScroll,getContainer:this.getContainer,closeOnPopstate:this.closeOnPopstate,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:Pl(),on:{input:this.toggle,"click-overlay":this.onClickOverlay}},[this.genHeader(),this.genRows(),this.genCancelText()])}}),Ml=Object(l.a)("sidebar"),Al=Ml[0],zl=Ml[1],Vl=Al({mixins:[Le("vanSidebar")],model:{prop:"activeKey"},props:{activeKey:{type:[Number,String],default:0}},data:function(){return{index:+this.activeKey}},watch:{activeKey:function(){this.setIndex(+this.activeKey)}},methods:{setIndex:function(t){t!==this.index&&(this.index=t,this.$emit("change",t))}},render:function(){var t=arguments[0];return t("div",{class:zl()},[this.slots()])}}),Rl=Object(l.a)("sidebar-item"),Fl=Rl[0],Hl=Rl[1],_l=Fl({mixins:[Pe("vanSidebar")],props:n({},te,{dot:Boolean,info:[Number,String],badge:[Number,String],title:String,disabled:Boolean}),computed:{select:function(){return this.index===+this.parent.activeKey}},methods:{onClick:function(){this.disabled||(this.$emit("click",this.index),this.parent.$emit("input",this.index),this.parent.setIndex(this.index),Zt(this.$router,this))}},render:function(){var t,e,i=arguments[0];return i("a",{class:Hl({select:this.select,disabled:this.disabled}),on:{click:this.onClick}},[i("div",{class:Hl("text")},[null!=(t=this.slots("title"))?t:this.title,i(J,{attrs:{dot:this.dot,info:null!=(e=this.badge)?e:this.info},class:Hl("info")})])])}}),Wl=Object(l.a)("skeleton"),ql=Wl[0],Ul=Wl[1];function Kl(t,e,i,n){if(!e.loading)return i.default&&i.default();return t("div",r()([{class:Ul({animate:e.animate,round:e.round})},h(n)]),[function(){if(e.avatar){var i=Object(Y.a)(e.avatarSize);return t("div",{class:Ul("avatar",e.avatarShape),style:{width:i,height:i}})}}(),t("div",{class:Ul("content")},[function(){if(e.title)return t("h3",{class:Ul("title"),style:{width:Object(Y.a)(e.titleWidth)}})}(),function(){for(var i,n=[],s=e.rowWidth,r=0;r<e.row;r++)n.push(t("div",{class:Ul("row"),style:{width:Object(Y.a)((i=r,"100%"===s&&i===+e.row-1?"60%":Array.isArray(s)?s[i]:s))}}));return n}()])])}Kl.props={title:Boolean,round:Boolean,avatar:Boolean,titleWidth:[Number,String],avatarSize:[Number,String],row:{type:[Number,String],default:0},loading:{type:Boolean,default:!0},animate:{type:Boolean,default:!0},avatarShape:{type:String,default:"round"},rowWidth:{type:[Number,String,Array],default:"100%"}};var Yl=ql(Kl),Xl={QUOTA_LIMIT:0,STOCK_LIMIT:1},Ql={LIMIT_TYPE:Xl,UNSELECTED_SKU_VALUE_ID:""},Gl=function(t){var e={};return t.forEach((function(t){e[t.k_s]=t.v})),e},Zl=function(t,e){var i=Object.keys(e).filter((function(t){return""!==e[t]}));return t.length===i.length},Jl=function(t,e){return t.filter((function(t){return Object.keys(e).every((function(i){return String(t[i])===String(e[i])}))}))[0]},tc=function(t,e){var i=Gl(t);return Object.keys(e).reduce((function(t,n){var s=i[n]||[],r=e[n];if(""!==r&&s.length>0){var o=s.filter((function(t){return t.id===r}))[0];o&&t.push(o)}return t}),[])},ec=function(t,e,i){var s,r=i.key,o=i.valueId,a=n({},e,((s={})[r]=o,s)),l=Object.keys(a).filter((function(t){return""!==a[t]}));return t.filter((function(t){return l.every((function(e){return String(a[e])===String(t[e])}))})).reduce((function(t,e){return t+=e.stock_num}),0)>0},ic=function(t,e){var i=function(t){var e={};return t.forEach((function(t){var i={};t.v.forEach((function(t){i[t.id]=t})),e[t.k_id]=i})),e}(t);return Object.keys(e).reduce((function(t,s){return e[s].forEach((function(e){t.push(n({},i[s][e]))})),t}),[])},nc=function(t,e){var i=[];return(t||[]).forEach((function(t){if(e[t.k_id]&&e[t.k_id].length>0){var s=[];t.v.forEach((function(i){e[t.k_id].indexOf(i.id)>-1&&s.push(n({},i))})),i.push(n({},t,{v:s}))}})),i},sc={normalizeSkuTree:Gl,getSkuComb:Jl,getSelectedSkuValues:tc,isAllSelected:Zl,isSkuChoosable:ec,getSelectedPropValues:ic,getSelectedProperties:nc},rc=Object(l.a)("sku-header"),oc=rc[0],ac=rc[1];function lc(t,e,i,s){var o,a=e.sku,l=e.goods,c=e.skuEventBus,u=e.selectedSku,d=e.showHeaderImage,f=void 0===d||d,p=function(t,e){var i;return t.tree.some((function(t){var s=e[t.k_s];if(s&&t.v){var r=t.v.filter((function(t){return t.id===s}))[0]||{},o=r.previewImgUrl||r.imgUrl||r.img_url;if(o)return i=n({},r,{ks:t.k_s,imgUrl:o}),!0}return!1})),i}(a,u),m=p?p.imgUrl:l.picture;return t("div",r()([{class:[ac(),$t]},h(s)]),[f&&t(un,{attrs:{fit:"cover",src:m},class:ac("img-wrap"),on:{click:function(){c.$emit("sku:previewImage",p)}}},[null==(o=i["sku-header-image-extra"])?void 0:o.call(i)]),t("div",{class:ac("goods-info")},[null==i.default?void 0:i.default()])])}lc.props={sku:Object,goods:Object,skuEventBus:Object,selectedSku:Object,showHeaderImage:Boolean};var cc=oc(lc),uc=Object(l.a)("sku-header-item"),hc=uc[0],dc=uc[1];var fc=hc((function(t,e,i,n){return t("div",r()([{class:dc()},h(n)]),[i.default&&i.default()])})),pc=Object(l.a)("sku-row"),mc=pc[0],vc=pc[1],gc=pc[2],bc=mc({mixins:[Le("vanSkuRows"),W((function(t){this.scrollable&&this.$refs.scroller&&t(this.$refs.scroller,"scroll",this.onScroll)}))],props:{skuRow:Object},data:function(){return{progress:0}},computed:{scrollable:function(){return this.skuRow.largeImageMode&&this.skuRow.v.length>6}},methods:{onScroll:function(){var t=this.$refs,e=t.scroller,i=t.row.offsetWidth-e.offsetWidth;this.progress=e.scrollLeft/i},genTitle:function(){var t=this.$createElement;return t("div",{class:vc("title")},[this.skuRow.k,this.skuRow.is_multiple&&t("span",{class:vc("title-multiple")},["(",gc("multiple"),")"])])},genIndicator:function(){var t=this.$createElement;if(this.scrollable){var e={transform:"translate3d("+20*this.progress+"px, 0, 0)"};return t("div",{class:vc("indicator-wrapper")},[t("div",{class:vc("indicator")},[t("div",{class:vc("indicator-slider"),style:e})])])}},genContent:function(){var t=this.$createElement,e=this.slots();if(this.skuRow.largeImageMode){var i=[],n=[];return e.forEach((function(t,e){(Math.floor(e/3)%2==0?i:n).push(t)})),t("div",{class:vc("scroller"),ref:"scroller"},[t("div",{class:vc("row"),ref:"row"},[i]),n.length?t("div",{class:vc("row")},[n]):null])}return e},centerItem:function(t){if(this.skuRow.largeImageMode&&t){var e=this.children,i=void 0===e?[]:e,n=this.$refs,s=n.scroller,r=n.row,o=i.find((function(e){return+e.skuValue.id==+t}));if(s&&r&&o&&o.$el){var a=o.$el,l=a.offsetLeft-(s.offsetWidth-a.offsetWidth)/2;s.scrollLeft=l}}}},render:function(){var t=arguments[0];return t("div",{class:[vc(),$t]},[this.genTitle(),this.genContent(),this.genIndicator()])}}),yc=(0,Object(l.a)("sku-row-item")[0])({mixins:[Pe("vanSkuRows")],props:{lazyLoad:Boolean,skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedSku:Object,largeImageMode:Boolean,disableSoldoutSku:Boolean,skuList:{type:Array,default:function(){return[]}}},computed:{imgUrl:function(){var t=this.skuValue.imgUrl||this.skuValue.img_url;return this.largeImageMode?t||"https://img01.yzcdn.cn/upload_files/2020/06/24/FmKWDg0bN9rMcTp9ne8MXiQWGtLn.png":t},choosable:function(){return!this.disableSoldoutSku||ec(this.skuList,this.selectedSku,{key:this.skuKeyStr,valueId:this.skuValue.id})}},methods:{onSelect:function(){this.choosable&&this.skuEventBus.$emit("sku:select",n({},this.skuValue,{skuKeyStr:this.skuKeyStr}))},onPreviewImg:function(t){t.stopPropagation();var e=this.skuValue,i=this.skuKeyStr;this.skuEventBus.$emit("sku:previewImage",n({},e,{ks:i,imgUrl:e.imgUrl||e.img_url}))},genImage:function(t){var e=this.$createElement;if(this.imgUrl)return e(un,{attrs:{fit:"cover",src:this.imgUrl,lazyLoad:this.lazyLoad},class:t+"-img"})}},render:function(){var t=arguments[0],e=this.skuValue.id===this.selectedSku[this.skuKeyStr],i=this.largeImageMode?vc("image-item"):vc("item");return t("span",{class:[i,e?i+"--active":"",this.choosable?"":i+"--disabled"],on:{click:this.onSelect}},[this.genImage(i),t("div",{class:i+"-name"},[this.largeImageMode?t("span",{class:{"van-multi-ellipsis--l2":this.largeImageMode}},[this.skuValue.name]):this.skuValue.name]),this.largeImageMode&&t(rt,{attrs:{name:"enlarge"},class:i+"-img-icon",on:{click:this.onPreviewImg}})])}}),Sc=(0,Object(l.a)("sku-row-prop-item")[0])({props:{skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedProp:Object,multiple:Boolean,disabled:Boolean},computed:{choosed:function(){var t=this.selectedProp,e=this.skuKeyStr,i=this.skuValue;return!(!t||!t[e])&&t[e].indexOf(i.id)>-1}},methods:{onSelect:function(){this.disabled||this.skuEventBus.$emit("sku:propSelect",n({},this.skuValue,{skuKeyStr:this.skuKeyStr,multiple:this.multiple}))}},render:function(){var t=arguments[0];return t("span",{class:["van-sku-row__item",{"van-sku-row__item--active":this.choosed},{"van-sku-row__item--disabled":this.disabled}],on:{click:this.onSelect}},[t("span",{class:"van-sku-row__item-name"},[this.skuValue.name])])}}),kc=Object(l.a)("stepper"),xc=kc[0],wc=kc[1];function Cc(t,e){return String(t)===String(e)}var Oc=xc({mixins:[si],props:{value:null,theme:String,integer:Boolean,disabled:Boolean,allowEmpty:Boolean,inputWidth:[Number,String],buttonSize:[Number,String],asyncChange:Boolean,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,decimalLength:[Number,String],name:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:1/0},step:{type:[Number,String],default:1},defaultValue:{type:[Number,String],default:1},showPlus:{type:Boolean,default:!0},showMinus:{type:Boolean,default:!0},showInput:{type:Boolean,default:!0},longPress:{type:Boolean,default:!0}},data:function(){var t,e=null!=(t=this.value)?t:this.defaultValue,i=this.format(e);return Cc(i,this.value)||this.$emit("input",i),{currentValue:i}},computed:{minusDisabled:function(){return this.disabled||this.disableMinus||this.currentValue<=+this.min},plusDisabled:function(){return this.disabled||this.disablePlus||this.currentValue>=+this.max},inputStyle:function(){var t={};return this.inputWidth&&(t.width=Object(Y.a)(this.inputWidth)),this.buttonSize&&(t.height=Object(Y.a)(this.buttonSize)),t},buttonStyle:function(){if(this.buttonSize){var t=Object(Y.a)(this.buttonSize);return{width:t,height:t}}}},watch:{max:"check",min:"check",integer:"check",decimalLength:"check",value:function(t){Cc(t,this.currentValue)||(this.currentValue=this.format(t))},currentValue:function(t){this.$emit("input",t),this.$emit("change",t,{name:this.name})}},methods:{check:function(){var t=this.format(this.currentValue);Cc(t,this.currentValue)||(this.currentValue=t)},formatNumber:function(t){return Dt(String(t),!this.integer)},format:function(t){return this.allowEmpty&&""===t||(t=""===(t=this.formatNumber(t))?0:+t,t=Object(zi.a)(t)?this.min:t,t=Math.max(Math.min(this.max,t),this.min),Object(m.c)(this.decimalLength)&&(t=t.toFixed(this.decimalLength))),t},onInput:function(t){var e=t.target.value,i=this.formatNumber(e);if(Object(m.c)(this.decimalLength)&&-1!==i.indexOf(".")){var n=i.split(".");i=n[0]+"."+n[1].slice(0,this.decimalLength)}Cc(e,i)||(t.target.value=i),i===String(+i)&&(i=+i),this.emitChange(i)},emitChange:function(t){this.asyncChange?(this.$emit("input",t),this.$emit("change",t,{name:this.name})):this.currentValue=t},onChange:function(){var t=this.type;if(this[t+"Disabled"])this.$emit("overlimit",t);else{var e="minus"===t?-this.step:+this.step,i=this.format(Pt(+this.currentValue,e));this.emitChange(i),this.$emit(t)}},onFocus:function(t){this.disableInput&&this.$refs.input?this.$refs.input.blur():this.$emit("focus",t)},onBlur:function(t){var e=this.format(t.target.value);t.target.value=e,this.emitChange(e),this.$emit("blur",t),le()},longPressStep:function(){var t=this;this.longPressTimer=setTimeout((function(){t.onChange(),t.longPressStep(t.type)}),200)},onTouchStart:function(){var t=this;this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress=!1,this.longPressTimer=setTimeout((function(){t.isLongPress=!0,t.onChange(),t.longPressStep()}),600))},onTouchEnd:function(t){this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress&&k(t))},onMousedown:function(t){this.disableInput&&t.preventDefault()}},render:function(){var t=this,e=arguments[0],i=function(e){return{on:{click:function(i){i.preventDefault(),t.type=e,t.onChange()},touchstart:function(){t.type=e,t.onTouchStart()},touchend:t.onTouchEnd,touchcancel:t.onTouchEnd}}};return e("div",{class:wc([this.theme])},[e("button",r()([{directives:[{name:"show",value:this.showMinus}],attrs:{type:"button"},style:this.buttonStyle,class:wc("minus",{disabled:this.minusDisabled})},i("minus")])),e("input",{directives:[{name:"show",value:this.showInput}],ref:"input",attrs:{type:this.integer?"tel":"text",role:"spinbutton",disabled:this.disabled,readonly:this.disableInput,inputmode:this.integer?"numeric":"decimal",placeholder:this.placeholder,"aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.currentValue},class:wc("input"),domProps:{value:this.currentValue},style:this.inputStyle,on:{input:this.onInput,focus:this.onFocus,blur:this.onBlur,mousedown:this.onMousedown}}),e("button",r()([{directives:[{name:"show",value:this.showPlus}],attrs:{type:"button"},style:this.buttonStyle,class:wc("plus",{disabled:this.plusDisabled})},i("plus")]))])}}),Tc=Object(l.a)("sku-stepper"),$c=Tc[0],Bc=Tc[2],Ic=Xl.QUOTA_LIMIT,Ec=Xl.STOCK_LIMIT,jc=$c({props:{stock:Number,skuEventBus:Object,skuStockNum:Number,selectedNum:Number,stepperTitle:String,disableStepperInput:Boolean,customStepperConfig:Object,hideQuotaText:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1}},data:function(){return{currentNum:this.selectedNum,limitType:Ec}},watch:{currentNum:function(t){var e=parseInt(t,10);e>=this.stepperMinLimit&&e<=this.stepperLimit&&this.skuEventBus.$emit("sku:numChange",e)},stepperLimit:function(t){t<this.currentNum&&this.stepperMinLimit<=t&&(this.currentNum=t),this.checkState(this.stepperMinLimit,t)},stepperMinLimit:function(t){(t>this.currentNum||t>this.stepperLimit)&&(this.currentNum=t),this.checkState(t,this.stepperLimit)}},computed:{stepperLimit:function(){var t,e=this.quota-this.quotaUsed;return this.quota>0&&e<=this.stock?(t=e<0?0:e,this.limitType=Ic):(t=this.stock,this.limitType=Ec),t},stepperMinLimit:function(){return this.startSaleNum<1?1:this.startSaleNum},quotaText:function(){var t=this.customStepperConfig,e=t.quotaText;if(t.hideQuotaText)return"";var i="";if(e)i=e;else{var n=[];this.startSaleNum>1&&n.push(Bc("quotaStart",this.startSaleNum)),this.quota>0&&n.push(Bc("quotaLimit",this.quota)),i=n.join(Bc("comma"))}return i}},created:function(){this.checkState(this.stepperMinLimit,this.stepperLimit)},methods:{setCurrentNum:function(t){this.currentNum=t,this.checkState(this.stepperMinLimit,this.stepperLimit)},onOverLimit:function(t){this.skuEventBus.$emit("sku:overLimit",{action:t,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})},onChange:function(t){var e=parseInt(t,10),i=this.customStepperConfig.handleStepperChange;i&&i(e),this.$emit("change",e)},checkState:function(t,e){this.currentNum<t||t>e?this.currentNum=t:this.currentNum>e&&(this.currentNum=e),this.skuEventBus.$emit("sku:stepperState",{valid:t<=e,min:t,max:e,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})}},render:function(){var t=this,e=arguments[0];return e("div",{class:"van-sku-stepper-stock"},[e("div",{class:"van-sku__stepper-title"},[this.stepperTitle||Bc("num")]),e(Oc,{attrs:{integer:!0,min:this.stepperMinLimit,max:this.stepperLimit,disableInput:this.disableStepperInput},class:"van-sku__stepper",on:{overlimit:this.onOverLimit,change:this.onChange},model:{value:t.currentNum,callback:function(e){t.currentNum=e}}}),!this.hideQuotaText&&this.quotaText&&e("span",{class:"van-sku__stepper-quota"},["(",this.quotaText,")"])])}});function Dc(t){return/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/.test(t.trim())}function Pc(t){return Array.isArray(t)?t:[t]}function Lc(t,e){return new Promise((function(i){if("file"!==e){var n=new FileReader;n.onload=function(t){i(t.target.result)},"dataUrl"===e?n.readAsDataURL(t):"text"===e&&n.readAsText(t)}else i(null)}))}function Nc(t,e){return Pc(t).some((function(t){return!!t&&(Object(m.e)(e)?e(t):t.size>e)}))}var Mc=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;function Ac(t){return!!t.isImage||(t.file&&t.file.type?0===t.file.type.indexOf("image"):t.url?(e=t.url,Mc.test(e)):!!t.content&&0===t.content.indexOf("data:image"));var e}var zc=Object(l.a)("uploader"),Vc=zc[0],Rc=zc[1],Fc=Vc({inheritAttrs:!1,mixins:[si],model:{prop:"fileList"},props:{disabled:Boolean,readonly:Boolean,lazyLoad:Boolean,uploadText:String,afterRead:Function,beforeRead:Function,beforeDelete:Function,previewSize:[Number,String],previewOptions:Object,name:{type:[Number,String],default:""},accept:{type:String,default:"image/*"},fileList:{type:Array,default:function(){return[]}},maxSize:{type:[Number,String,Function],default:Number.MAX_VALUE},maxCount:{type:[Number,String],default:Number.MAX_VALUE},deletable:{type:Boolean,default:!0},showUpload:{type:Boolean,default:!0},previewImage:{type:Boolean,default:!0},previewFullImage:{type:Boolean,default:!0},imageFit:{type:String,default:"cover"},resultType:{type:String,default:"dataUrl"},uploadIcon:{type:String,default:"photograph"}},computed:{previewSizeWithUnit:function(){return Object(Y.a)(this.previewSize)},value:function(){return this.fileList}},created:function(){this.urls=[]},beforeDestroy:function(){this.urls.forEach((function(t){return URL.revokeObjectURL(t)}))},methods:{getDetail:function(t){return void 0===t&&(t=this.fileList.length),{name:this.name,index:t}},onChange:function(t){var e=this,i=t.target.files;if(!this.disabled&&i.length){if(i=1===i.length?i[0]:[].slice.call(i),this.beforeRead){var n=this.beforeRead(i,this.getDetail());if(!n)return void this.resetInput();if(Object(m.g)(n))return void n.then((function(t){t?e.readFile(t):e.readFile(i)})).catch(this.resetInput)}this.readFile(i)}},readFile:function(t){var e=this,i=Nc(t,this.maxSize);if(Array.isArray(t)){var n=this.maxCount-this.fileList.length;t.length>n&&(t=t.slice(0,n)),Promise.all(t.map((function(t){return Lc(t,e.resultType)}))).then((function(n){var s=t.map((function(t,e){var i={file:t,status:"",message:""};return n[e]&&(i.content=n[e]),i}));e.onAfterRead(s,i)}))}else Lc(t,this.resultType).then((function(n){var s={file:t,status:"",message:""};n&&(s.content=n),e.onAfterRead(s,i)}))},onAfterRead:function(t,e){var i=this;this.resetInput();var n=t;if(e){var s=t;Array.isArray(t)?(s=[],n=[],t.forEach((function(t){t.file&&(Nc(t.file,i.maxSize)?s.push(t):n.push(t))}))):n=null,this.$emit("oversize",s,this.getDetail())}(Array.isArray(n)?Boolean(n.length):Boolean(n))&&(this.$emit("input",[].concat(this.fileList,Pc(n))),this.afterRead&&this.afterRead(n,this.getDetail()))},onDelete:function(t,e){var i,n=this,s=null!=(i=t.beforeDelete)?i:this.beforeDelete;if(s){var r=s(t,this.getDetail(e));if(!r)return;if(Object(m.g)(r))return void r.then((function(){n.deleteFile(t,e)})).catch(m.i)}this.deleteFile(t,e)},deleteFile:function(t,e){var i=this.fileList.slice(0);i.splice(e,1),this.$emit("input",i),this.$emit("delete",t,this.getDetail(e))},resetInput:function(){this.$refs.input&&(this.$refs.input.value="")},onClickUpload:function(t){this.$emit("click-upload",t)},onPreviewImage:function(t){var e=this;if(this.previewFullImage){var i=this.fileList.filter((function(t){return Ac(t)})),s=i.map((function(t){return t.file&&!t.url&&"failed"!==t.status&&(t.url=URL.createObjectURL(t.file),e.urls.push(t.url)),t.url}));this.imagePreview=yo(n({images:s,startPosition:i.indexOf(t),onClose:function(){e.$emit("close-preview")}},this.previewOptions))}},closeImagePreview:function(){this.imagePreview&&this.imagePreview.close()},chooseFile:function(){this.disabled||this.$refs.input&&this.$refs.input.click()},genPreviewMask:function(t){var e=this.$createElement,i=t.status,n=t.message;if("uploading"===i||"failed"===i){var s="failed"===i?e(rt,{attrs:{name:"close"},class:Rc("mask-icon")}):e(vt,{class:Rc("loading")}),r=Object(m.c)(n)&&""!==n;return e("div",{class:Rc("mask")},[s,r&&e("div",{class:Rc("mask-message")},[n])])}},genPreviewItem:function(t,e){var i,s,r,o=this,a=this.$createElement,l=null!=(i=t.deletable)?i:this.deletable,c="uploading"!==t.status&&l&&a("div",{class:Rc("preview-delete"),on:{click:function(i){i.stopPropagation(),o.onDelete(t,e)}}},[a(rt,{attrs:{name:"cross"},class:Rc("preview-delete-icon")})]),u=this.slots("preview-cover",n({index:e},t)),h=u&&a("div",{class:Rc("preview-cover")},[u]),d=null!=(s=t.previewSize)?s:this.previewSize,f=null!=(r=t.imageFit)?r:this.imageFit,p=Ac(t)?a(un,{attrs:{fit:f,src:t.content||t.url,width:d,height:d,lazyLoad:this.lazyLoad},class:Rc("preview-image"),on:{click:function(){o.onPreviewImage(t)}}},[h]):a("div",{class:Rc("file"),style:{width:this.previewSizeWithUnit,height:this.previewSizeWithUnit}},[a(rt,{class:Rc("file-icon"),attrs:{name:"description"}}),a("div",{class:[Rc("file-name"),"van-ellipsis"]},[t.file?t.file.name:t.url]),h]);return a("div",{class:Rc("preview"),on:{click:function(){o.$emit("click-preview",t,o.getDetail(e))}}},[p,this.genPreviewMask(t),c])},genPreviewList:function(){if(this.previewImage)return this.fileList.map(this.genPreviewItem)},genUpload:function(){var t=this.$createElement;if(!(this.fileList.length>=this.maxCount)){var e,i=this.slots(),s=this.readonly?null:t("input",{attrs:n({},this.$attrs,{type:"file",accept:this.accept,disabled:this.disabled}),ref:"input",class:Rc("input"),on:{change:this.onChange}});if(i)return t("div",{class:Rc("input-wrapper"),key:"input-wrapper",on:{click:this.onClickUpload}},[i,s]);if(this.previewSize){var r=this.previewSizeWithUnit;e={width:r,height:r}}return t("div",{directives:[{name:"show",value:this.showUpload}],class:Rc("upload",{readonly:this.readonly}),style:e,on:{click:this.onClickUpload}},[t(rt,{attrs:{name:this.uploadIcon},class:Rc("upload-icon")}),this.uploadText&&t("span",{class:Rc("upload-text")},[this.uploadText]),s])}}},render:function(){var t=arguments[0];return t("div",{class:Rc()},[t("div",{class:Rc("wrapper",{disabled:this.disabled})},[this.genPreviewList(),this.genUpload()])])}}),Hc=Object(l.a)("sku-img-uploader"),_c=Hc[0],Wc=Hc[2],qc=_c({props:{value:String,uploadImg:Function,customUpload:Function,maxSize:{type:Number,default:6}},data:function(){return{fileList:[]}},watch:{value:function(t){this.fileList=t?[{url:t,isImage:!0}]:[]}},methods:{afterReadFile:function(t){var e=this;t.status="uploading",t.message=Wc("uploading"),this.uploadImg(t.file,t.content).then((function(i){t.status="done",e.$emit("input",i)})).catch((function(){t.status="failed",t.message=Wc("fail")}))},onOversize:function(){this.$toast(Wc("oversize",this.maxSize))},onDelete:function(){this.$emit("input","")},onClickUpload:function(){var t=this;this.customUpload&&this.customUpload().then((function(e){t.fileList.push({url:e}),t.$emit("input",e)}))}},render:function(){var t=this,e=arguments[0];return e(Fc,{attrs:{maxCount:1,readonly:!!this.customUpload,maxSize:1024*this.maxSize*1024,afterRead:this.afterReadFile},on:{oversize:this.onOversize,delete:this.onDelete,"click-upload":this.onClickUpload},model:{value:t.fileList,callback:function(e){t.fileList=e}}})}});var Uc=Object(l.a)("sku-datetime-field"),Kc=Uc[0],Yc=Uc[2],Xc=Kc({props:{value:String,label:String,required:Boolean,placeholder:String,type:{type:String,default:"date"}},data:function(){return{showDatePicker:!1,currentDate:"time"===this.type?"":new Date,minDate:new Date((new Date).getFullYear()-60,0,1)}},watch:{value:function(t){switch(this.type){case"time":this.currentDate=t;break;case"date":case"datetime":this.currentDate=((e=t)?new Date(e.replace(/-/g,"/")):null)||new Date}var e}},computed:{title:function(){return Yc("title."+this.type)}},methods:{onClick:function(){this.showDatePicker=!0},onConfirm:function(t){var e=t;"time"!==this.type&&(e=function(t,e){if(void 0===e&&(e="date"),!t)return"";var i=t.getFullYear(),n=t.getMonth()+1,s=t.getDate(),r=i+"-"+Object(As.b)(n)+"-"+Object(As.b)(s);if("datetime"===e){var o=t.getHours(),a=t.getMinutes();r+=" "+Object(As.b)(o)+":"+Object(As.b)(a)}return r}(t,this.type)),this.$emit("input",e),this.showDatePicker=!1},onCancel:function(){this.showDatePicker=!1},formatter:function(t,e){return""+e+Yc("format."+t)}},render:function(){var t=this,e=arguments[0];return e(de,{attrs:{readonly:!0,"is-link":!0,center:!0,value:this.value,label:this.label,required:this.required,placeholder:this.placeholder},on:{click:this.onClick}},[e(ct,{attrs:{round:!0,position:"bottom",getContainer:"body"},slot:"extra",model:{value:t.showDatePicker,callback:function(e){t.showDatePicker=e}}},[e(gr,{attrs:{type:this.type,title:this.title,value:this.currentDate,minDate:this.minDate,formatter:this.formatter},on:{cancel:this.onCancel,confirm:this.onConfirm}})])])}}),Qc=Object(l.a)("sku-messages"),Gc=Qc[0],Zc=Qc[1],Jc=Qc[2],tu=Gc({props:{messageConfig:Object,goodsId:[Number,String],messages:{type:Array,default:function(){return[]}}},data:function(){return{messageValues:this.resetMessageValues(this.messages)}},watch:{messages:function(t){this.messageValues=this.resetMessageValues(t)}},methods:{resetMessageValues:function(t){var e=this.messageConfig.initialMessages,i=void 0===e?{}:e;return(t||[]).map((function(t){return{value:i[t.name]||""}}))},getType:function(t){return 1==+t.multiple?"textarea":"id_no"===t.type?"text":t.datetime>0?"datetime":t.type},getMessages:function(){var t={};return this.messageValues.forEach((function(e,i){t["message_"+i]=e.value})),t},getCartMessages:function(){var t=this,e={};return this.messageValues.forEach((function(i,n){var s=t.messages[n];e[s.name]=i.value})),e},getPlaceholder:function(t){var e=1==+t.multiple?"textarea":t.type,i=this.messageConfig.placeholderMap||{};return t.placeholder||i[e]||Jc("placeholder."+e)},validateMessages:function(){for(var t=this.messageValues,e=0;e<t.length;e++){var i=t[e].value,n=this.messages[e];if(""===i){if("1"===String(n.required))return Jc("image"===n.type?"upload":"fill")+n.name}else{if("tel"===n.type&&!Object(zi.b)(i))return Jc("invalid.tel");if("mobile"===n.type&&!/^\d{6,20}$/.test(i))return Jc("invalid.mobile");if("email"===n.type&&!Dc(i))return Jc("invalid.email");if("id_no"===n.type&&(i.length<15||i.length>18))return Jc("invalid.id_no")}}},getFormatter:function(t){return function(e){return"mobile"===t.type||"tel"===t.type?e.replace(/[^\d.]/g,""):e}},getExtraDesc:function(t){var e=this.$createElement,i=t.extraDesc;if(i)return e("div",{class:Zc("extra-message")},[i])},genMessage:function(t,e){var i=this,n=this.$createElement;return"image"===t.type?n(oe,{key:this.goodsId+"-"+e,attrs:{title:t.name,required:"1"===String(t.required),valueClass:Zc("image-cell-value")},class:Zc("image-cell")},[n(qc,{attrs:{maxSize:this.messageConfig.uploadMaxSize,uploadImg:this.messageConfig.uploadImg,customUpload:this.messageConfig.customUpload},model:{value:i.messageValues[e].value,callback:function(t){i.$set(i.messageValues[e],"value",t)}}}),n("div",{class:Zc("image-cell-label")},[Jc("imageLabel")])]):["date","time"].indexOf(t.type)>-1?n(Xc,{attrs:{label:t.name,required:"1"===String(t.required),placeholder:this.getPlaceholder(t),type:this.getType(t)},key:this.goodsId+"-"+e,model:{value:i.messageValues[e].value,callback:function(t){i.$set(i.messageValues[e],"value",t)}}}):n("div",{class:Zc("cell-block")},[n(de,{attrs:{maxlength:"200",center:!t.multiple,label:t.name,required:"1"===String(t.required),placeholder:this.getPlaceholder(t),type:this.getType(t),formatter:this.getFormatter(t),border:!1},key:this.goodsId+"-"+e,model:{value:i.messageValues[e].value,callback:function(t){i.$set(i.messageValues[e],"value",t)}}}),this.getExtraDesc(t)])}},render:function(){var t=arguments[0];return t("div",{class:Zc()},[this.messages.map(this.genMessage)])}}),eu=Object(l.a)("sku-actions"),iu=eu[0],nu=eu[1],su=eu[2];function ru(t,e,i,n){var s=function(t){return function(){e.skuEventBus.$emit(t)}};return t("div",r()([{class:nu()},h(n)]),[e.showAddCartBtn&&t(je,{attrs:{size:"large",type:"warning",text:e.addCartText||su("addCart")},on:{click:s("sku:addCart")}}),t(je,{attrs:{size:"large",type:"danger",text:e.buyText||su("buy")},on:{click:s("sku:buy")}})])}ru.props={buyText:String,addCartText:String,skuEventBus:Object,showAddCartBtn:Boolean};var ou=iu(ru),au=Object(l.a)("sku"),lu=au[0],cu=au[1],uu=au[2],hu=Xl.QUOTA_LIMIT,du=lu({props:{sku:Object,goods:Object,value:Boolean,buyText:String,goodsId:[Number,String],priceTag:String,lazyLoad:Boolean,hideStock:Boolean,properties:Array,addCartText:String,stepperTitle:String,getContainer:[String,Function],hideQuotaText:Boolean,hideSelectedText:Boolean,resetStepperOnHide:Boolean,customSkuValidator:Function,disableStepperInput:Boolean,resetSelectedSkuOnHide:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1},initialSku:{type:Object,default:function(){return{}}},stockThreshold:{type:Number,default:50},showSoldoutSku:{type:Boolean,default:!0},showAddCartBtn:{type:Boolean,default:!0},disableSoldoutSku:{type:Boolean,default:!0},customStepperConfig:{type:Object,default:function(){return{}}},showHeaderImage:{type:Boolean,default:!0},previewOnClickImage:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},bodyOffsetTop:{type:Number,default:200},messageConfig:{type:Object,default:function(){return{initialMessages:{},placeholderMap:{},uploadImg:function(){return Promise.resolve()},uploadMaxSize:5}}}},data:function(){return{selectedSku:{},selectedProp:{},selectedNum:1,show:this.value}},watch:{show:function(t){this.$emit("input",t),t||(this.$emit("sku-close",{selectedSkuValues:this.selectedSkuValues,selectedNum:this.selectedNum,selectedSkuComb:this.selectedSkuComb}),this.resetStepperOnHide&&this.resetStepper(),this.resetSelectedSkuOnHide&&this.resetSelectedSku())},value:function(t){this.show=t},skuTree:"resetSelectedSku",initialSku:function(){this.resetStepper(),this.resetSelectedSku()}},computed:{skuGroupClass:function(){return["van-sku-group-container",{"van-sku-group-container--hide-soldout":!this.showSoldoutSku}]},bodyStyle:function(){if(!this.$isServer)return{maxHeight:window.innerHeight-this.bodyOffsetTop+"px"}},isSkuCombSelected:function(){var t=this;return!(this.hasSku&&!Zl(this.skuTree,this.selectedSku))&&!this.propList.filter((function(t){return!1!==t.is_necessary})).some((function(e){return 0===(t.selectedProp[e.k_id]||[]).length}))},isSkuEmpty:function(){return 0===Object.keys(this.sku).length},hasSku:function(){return!this.sku.none_sku},hasSkuOrAttr:function(){return this.hasSku||this.propList.length>0},selectedSkuComb:function(){var t=null;return this.isSkuCombSelected&&(t=this.hasSku?Jl(this.skuList,this.selectedSku):{id:this.sku.collection_id,price:Math.round(100*this.sku.price),stock_num:this.sku.stock_num})&&(t.properties=nc(this.propList,this.selectedProp),t.property_price=this.selectedPropValues.reduce((function(t,e){return t+(e.price||0)}),0)),t},selectedSkuValues:function(){return tc(this.skuTree,this.selectedSku)},selectedPropValues:function(){return ic(this.propList,this.selectedProp)},price:function(){return this.selectedSkuComb?((this.selectedSkuComb.price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.price},originPrice:function(){return this.selectedSkuComb&&this.selectedSkuComb.origin_price?((this.selectedSkuComb.origin_price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.origin_price},skuTree:function(){return this.sku.tree||[]},skuList:function(){return this.sku.list||[]},propList:function(){return this.properties||[]},imageList:function(){var t=[this.goods.picture];return this.skuTree.length>0&&this.skuTree.forEach((function(e){e.v&&e.v.forEach((function(e){var i=e.previewImgUrl||e.imgUrl||e.img_url;i&&-1===t.indexOf(i)&&t.push(i)}))})),t},stock:function(){var t=this.customStepperConfig.stockNum;return void 0!==t?t:this.selectedSkuComb?this.selectedSkuComb.stock_num:this.sku.stock_num},stockText:function(){var t=this.$createElement,e=this.customStepperConfig.stockFormatter;return e?e(this.stock):[uu("stock")+" ",t("span",{class:cu("stock-num",{highlight:this.stock<this.stockThreshold})},[this.stock])," "+uu("stockUnit")]},selectedText:function(){var t=this;if(this.selectedSkuComb){var e=this.selectedSkuValues.concat(this.selectedPropValues);return uu("selected")+" "+e.map((function(t){return t.name})).join(" ")}var i=this.skuTree.filter((function(e){return""===t.selectedSku[e.k_s]})).map((function(t){return t.k})),n=this.propList.filter((function(e){return(t.selectedProp[e.k_id]||[]).length<1})).map((function(t){return t.k}));return uu("select")+" "+i.concat(n).join(" ")}},created:function(){var t=new a.a;this.skuEventBus=t,t.$on("sku:select",this.onSelect),t.$on("sku:propSelect",this.onPropSelect),t.$on("sku:numChange",this.onNumChange),t.$on("sku:previewImage",this.onPreviewImage),t.$on("sku:overLimit",this.onOverLimit),t.$on("sku:stepperState",this.onStepperState),t.$on("sku:addCart",this.onAddCart),t.$on("sku:buy",this.onBuy),this.resetStepper(),this.resetSelectedSku(),this.$emit("after-sku-create",t)},methods:{resetStepper:function(){var t=this.$refs.skuStepper,e=this.initialSku.selectedNum,i=null!=e?e:this.startSaleNum;this.stepperError=null,t?t.setCurrentNum(i):this.selectedNum=i},resetSelectedSku:function(){var t=this;this.selectedSku={},this.skuTree.forEach((function(e){t.selectedSku[e.k_s]=""})),this.skuTree.forEach((function(e){var i=e.k_s,n=1===e.v.length?e.v[0].id:t.initialSku[i];n&&ec(t.skuList,t.selectedSku,{key:i,valueId:n})&&(t.selectedSku[i]=n)}));var e=this.selectedSkuValues;e.length>0&&this.$nextTick((function(){t.$emit("sku-selected",{skuValue:e[e.length-1],selectedSku:t.selectedSku,selectedSkuComb:t.selectedSkuComb})})),this.selectedProp={};var i=this.initialSku.selectedProp,n=void 0===i?{}:i;this.propList.forEach((function(e){n[e.k_id]&&(t.selectedProp[e.k_id]=n[e.k_id])})),Object(m.d)(this.selectedProp)&&this.propList.forEach((function(e){var i;if((null==e||null==(i=e.v)?void 0:i.length)>0){var n=e.v,s=e.k_id;if(!n.some((function(t){return 0!=+t.price}))){var r=n.find((function(t){return 0!==t.text_status}));r&&(t.selectedProp[s]=[r.id])}}}));var s=this.selectedPropValues;s.length>0&&this.$emit("sku-prop-selected",{propValue:s[s.length-1],selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.$emit("sku-reset",{selectedSku:this.selectedSku,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.centerInitialSku()},getSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getMessages():{}},getSkuCartMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getCartMessages():{}},validateSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.validateMessages():""},validateSku:function(){if(0===this.selectedNum)return uu("unavailable");if(this.isSkuCombSelected)return this.validateSkuMessages();if(this.customSkuValidator){var t=this.customSkuValidator(this);if(t)return t}return uu("selectSku")},onSelect:function(t){var e,i;this.selectedSku=this.selectedSku[t.skuKeyStr]===t.id?n({},this.selectedSku,((e={})[t.skuKeyStr]="",e)):n({},this.selectedSku,((i={})[t.skuKeyStr]=t.id,i)),this.$emit("sku-selected",{skuValue:t,selectedSku:this.selectedSku,selectedSkuComb:this.selectedSkuComb})},onPropSelect:function(t){var e,i=this.selectedProp[t.skuKeyStr]||[],s=i.indexOf(t.id);s>-1?i.splice(s,1):t.multiple?i.push(t.id):i.splice(0,1,t.id),this.selectedProp=n({},this.selectedProp,((e={})[t.skuKeyStr]=i,e)),this.$emit("sku-prop-selected",{propValue:t,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb})},onNumChange:function(t){this.selectedNum=t},onPreviewImage:function(t){var e=this,i=this.imageList,s=0,r=i[0];t&&t.imgUrl&&(this.imageList.some((function(e,i){return e===t.imgUrl&&(s=i,!0)})),r=t.imgUrl);var o=n({},t,{index:s,imageList:this.imageList,indexImage:r});this.$emit("open-preview",o),this.previewOnClickImage&&yo({images:this.imageList,startPosition:s,onClose:function(){e.$emit("close-preview",o)}})},onOverLimit:function(t){var e=t.action,i=t.limitType,n=t.quota,s=t.quotaUsed,r=this.customStepperConfig.handleOverLimit;r?r(t):"minus"===e?this.startSaleNum>1?Te(uu("minusStartTip",this.startSaleNum)):Te(uu("minusTip")):"plus"===e&&Te(i===hu?s>0?uu("quotaUsedTip",n,s):uu("quotaTip",n):uu("soldout"))},onStepperState:function(t){this.stepperError=t.valid?null:n({},t,{action:"plus"})},onAddCart:function(){this.onBuyOrAddCart("add-cart")},onBuy:function(){this.onBuyOrAddCart("buy-clicked")},onBuyOrAddCart:function(t){if(this.stepperError)return this.onOverLimit(this.stepperError);var e=this.validateSku();e?Te(e):this.$emit(t,this.getSkuData())},getSkuData:function(){return{goodsId:this.goodsId,messages:this.getSkuMessages(),selectedNum:this.selectedNum,cartMessages:this.getSkuCartMessages(),selectedSkuComb:this.selectedSkuComb}},onOpened:function(){this.centerInitialSku()},centerInitialSku:function(){var t=this;(this.$refs.skuRows||[]).forEach((function(e){var i=(e.skuRow||{}).k_s;e.centerItem(t.initialSku[i])}))}},render:function(){var t=this,e=arguments[0];if(!this.isSkuEmpty){var i=this.sku,n=this.skuList,s=this.goods,r=this.price,o=this.lazyLoad,a=this.originPrice,l=this.skuEventBus,c=this.selectedSku,u=this.selectedProp,h=this.selectedNum,d=this.stepperTitle,f=this.selectedSkuComb,p=this.showHeaderImage,m=this.disableSoldoutSku,v={price:r,originPrice:a,selectedNum:h,skuEventBus:l,selectedSku:c,selectedSkuComb:f},g=function(e){return t.slots(e,v)},b=g("sku-header")||e(cc,{attrs:{sku:i,goods:s,skuEventBus:l,selectedSku:c,showHeaderImage:p}},[e("template",{slot:"sku-header-image-extra"},[g("sku-header-image-extra")]),g("sku-header-price")||e("div",{class:"van-sku__goods-price"},[e("span",{class:"van-sku__price-symbol"},["¥"]),e("span",{class:"van-sku__price-num"},[r]),this.priceTag&&e("span",{class:"van-sku__price-tag"},[this.priceTag])]),g("sku-header-origin-price")||a&&e(fc,[uu("originPrice")," ¥",a]),!this.hideStock&&e(fc,[e("span",{class:"van-sku__stock"},[this.stockText])]),this.hasSkuOrAttr&&!this.hideSelectedText&&e(fc,[this.selectedText]),g("sku-header-extra")]),y=g("sku-group")||this.hasSkuOrAttr&&e("div",{class:this.skuGroupClass},[this.skuTree.map((function(t){return e(bc,{attrs:{skuRow:t},ref:"skuRows",refInFor:!0},[t.v.map((function(i){return e(yc,{attrs:{skuList:n,lazyLoad:o,skuValue:i,skuKeyStr:t.k_s,selectedSku:c,skuEventBus:l,disableSoldoutSku:m,largeImageMode:t.largeImageMode}})}))])})),this.propList.map((function(t){return e(bc,{attrs:{skuRow:t}},[t.v.map((function(i){return e(Sc,{attrs:{skuValue:i,skuKeyStr:t.k_id+"",selectedProp:u,skuEventBus:l,multiple:t.is_multiple,disabled:0===i.text_status}})}))])}))]),S=g("sku-stepper")||e(jc,{ref:"skuStepper",attrs:{stock:this.stock,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum,skuEventBus:l,selectedNum:h,stepperTitle:d,skuStockNum:i.stock_num,disableStepperInput:this.disableStepperInput,customStepperConfig:this.customStepperConfig,hideQuotaText:this.hideQuotaText},on:{change:function(e){t.$emit("stepper-change",e)}}}),k=g("sku-messages")||e(tu,{ref:"skuMessages",attrs:{goodsId:this.goodsId,messageConfig:this.messageConfig,messages:i.messages}}),x=g("sku-actions")||e(ou,{attrs:{buyText:this.buyText,skuEventBus:l,addCartText:this.addCartText,showAddCartBtn:this.showAddCartBtn}});return e(ct,{attrs:{round:!0,closeable:!0,position:"bottom",getContainer:this.getContainer,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:"van-sku-container",on:{opened:this.onOpened},model:{value:t.show,callback:function(e){t.show=e}}},[b,e("div",{class:"van-sku-body",style:this.bodyStyle},[g("sku-body-top"),y,g("extra-sku-group"),S,g("before-sku-messages"),k,g("after-sku-messages")]),g("sku-actions-top"),x])}}});No.a.add({"zh-CN":{vanSku:{select:"请选择",selected:"已选",selectSku:"请先选择商品规格",soldout:"库存不足",originPrice:"原价",minusTip:"至少选择一件",minusStartTip:function(t){return t+"件起售"},unavailable:"商品已经无法购买啦",stock:"剩余",stockUnit:"件",quotaTip:function(t){return"每人限购"+t+"件"},quotaUsedTip:function(t,e){return"每人限购"+t+"件,你已购买"+e+"件"}},vanSkuActions:{buy:"立即购买",addCart:"加入购物车"},vanSkuImgUploader:{oversize:function(t){return"最大可上传图片为"+t+"MB,请尝试压缩图片尺寸"},fail:"上传失败",uploading:"上传中..."},vanSkuStepper:{quotaLimit:function(t){return"限购"+t+"件"},quotaStart:function(t){return t+"件起售"},comma:",",num:"购买数量"},vanSkuMessages:{fill:"请填写",upload:"请上传",imageLabel:"仅限一张",invalid:{tel:"请填写正确的数字格式留言",mobile:"手机号长度为6-20位数字",email:"请填写正确的邮箱",id_no:"请填写正确的身份证号码"},placeholder:{id_no:"请填写身份证号",text:"请填写留言",tel:"请填写数字",email:"请填写邮箱",date:"请选择日期",time:"请选择时间",textarea:"请填写留言",mobile:"请填写手机号"}},vanSkuRow:{multiple:"可多选"},vanSkuDatetimeField:{title:{date:"选择年月日",time:"选择时间",datetime:"选择日期时间"},format:{year:"年",month:"月",day:"日",hour:"时",minute:"分"}}}}),du.SkuActions=ou,du.SkuHeader=cc,du.SkuHeaderItem=fc,du.SkuMessages=tu,du.SkuStepper=jc,du.SkuRow=bc,du.SkuRowItem=yc,du.SkuRowPropItem=Sc,du.skuHelper=sc,du.skuConstants=Ql;var fu=du,pu=Object(l.a)("slider"),mu=pu[0],vu=pu[1],gu=function(t,e){return JSON.stringify(t)===JSON.stringify(e)},bu=mu({mixins:[F,si],props:{disabled:Boolean,vertical:Boolean,range:Boolean,barHeight:[Number,String],buttonSize:[Number,String],activeColor:String,inactiveColor:String,min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},value:{type:[Number,Array],default:0}},data:function(){return{dragStatus:""}},computed:{scope:function(){return this.max-this.min},buttonStyle:function(){if(this.buttonSize){var t=Object(Y.a)(this.buttonSize);return{width:t,height:t}}}},created:function(){this.updateValue(this.value)},mounted:function(){this.range?(this.bindTouchEvent(this.$refs.wrapper0),this.bindTouchEvent(this.$refs.wrapper1)):this.bindTouchEvent(this.$refs.wrapper)},methods:{onTouchStart:function(t){this.disabled||(this.touchStart(t),this.currentValue=this.value,this.range?this.startValue=this.value.map(this.format):this.startValue=this.format(this.value),this.dragStatus="start")},onTouchMove:function(t){if(!this.disabled){"start"===this.dragStatus&&this.$emit("drag-start"),k(t,!0),this.touchMove(t),this.dragStatus="draging";var e=this.$el.getBoundingClientRect(),i=(this.vertical?this.deltaY:this.deltaX)/(this.vertical?e.height:e.width)*this.scope;this.range?this.currentValue[this.index]=this.startValue[this.index]+i:this.currentValue=this.startValue+i,this.updateValue(this.currentValue)}},onTouchEnd:function(){this.disabled||("draging"===this.dragStatus&&(this.updateValue(this.currentValue,!0),this.$emit("drag-end")),this.dragStatus="")},onClick:function(t){if(t.stopPropagation(),!this.disabled){var e=this.$el.getBoundingClientRect(),i=this.vertical?t.clientY-e.top:t.clientX-e.left,n=this.vertical?e.height:e.width,s=+this.min+i/n*this.scope;if(this.range){var r=this.value,o=r[0],a=r[1];s<=(o+a)/2?o=s:a=s,s=[o,a]}this.startValue=this.value,this.updateValue(s,!0)}},handleOverlap:function(t){return t[0]>t[1]?(t=It(t)).reverse():t},updateValue:function(t,e){t=this.range?this.handleOverlap(t).map(this.format):this.format(t),gu(t,this.value)||this.$emit("input",t),e&&!gu(t,this.startValue)&&this.$emit("change",t)},format:function(t){var e=+this.min,i=+this.max,n=+this.step;return t=Et(t,e,i),Pt(e,Math.round((t-e)/n)*n)}},render:function(){var t,e,i=this,n=arguments[0],s=this.vertical,r=s?"height":"width",o=s?"width":"height",a=((t={background:this.inactiveColor})[o]=Object(Y.a)(this.barHeight),t),l=function(){var t=i.value,e=i.min,n=i.range,s=i.scope;return n?100*(t[1]-t[0])/s+"%":100*(t-e)/s+"%"},c=function(){var t=i.value,e=i.min,n=i.range,s=i.scope;return n?100*(t[0]-e)/s+"%":null},u=((e={})[r]=l(),e.left=this.vertical?null:c(),e.top=this.vertical?c():null,e.background=this.activeColor,e);this.dragStatus&&(u.transition="none");var h=function(t){var e=["left","right"],s="number"==typeof t,r=s?i.value[t]:i.value;return n("div",{ref:s?"wrapper"+t:"wrapper",attrs:{role:"slider",tabindex:i.disabled?-1:0,"aria-valuemin":i.min,"aria-valuenow":i.value,"aria-valuemax":i.max,"aria-orientation":i.vertical?"vertical":"horizontal"},class:vu(s?"button-wrapper-"+e[t]:"button-wrapper"),on:{touchstart:function(){s&&(i.index=t)},click:function(t){return t.stopPropagation()}}},[function(){if(s){var e=i.slots(0===t?"left-button":"right-button",{value:r});if(e)return e}return i.slots("button")?i.slots("button"):n("div",{class:vu("button"),style:i.buttonStyle})}()])};return n("div",{style:a,class:vu({disabled:this.disabled,vertical:s}),on:{click:this.onClick}},[n("div",{class:vu("bar"),style:u},[this.range?[h(0),h(1)]:h()])])}}),yu=Object(l.a)("step"),Su=yu[0],ku=yu[1],xu=Su({mixins:[Pe("vanSteps")],computed:{status:function(){return this.index<this.parent.active?"finish":this.index===+this.parent.active?"process":void 0},active:function(){return"process"===this.status},lineStyle:function(){var t=this.parent,e=t.activeColor,i=t.inactiveColor,n=t.center,s=t.direction,r={background:"finish"===this.status?e:i};return n&&"vertical"===s&&(r.top="50%"),r},circleContainerStyle:function(){if(this.parent.center&&"vertical"===this.parent.direction)return{top:"50%"}},titleStyle:function(){return this.active?{color:this.parent.activeColor}:this.status?void 0:{color:this.parent.inactiveColor}}},methods:{genCircle:function(){var t=this.$createElement,e=this.parent,i=e.activeIcon,n=e.iconPrefix,s=e.activeColor,r=e.finishIcon,o=e.inactiveIcon;if(this.active)return this.slots("active-icon")||t(rt,{class:ku("icon","active"),attrs:{name:i,color:s,classPrefix:n}});var a=this.slots("finish-icon");if("finish"===this.status&&(r||a))return a||t(rt,{class:ku("icon","finish"),attrs:{name:r,color:s,classPrefix:n}});var l=this.slots("inactive-icon");return o||l?l||t(rt,{class:ku("icon"),attrs:{name:o,classPrefix:n}}):t("i",{class:ku("circle"),style:this.lineStyle})},onClickStep:function(){this.parent.$emit("click-step",this.index)}},render:function(){var t,e=arguments[0],i=this.status,n=this.active,s=this.parent.direction;return e("div",{class:[Ot,ku([s,(t={},t[i]=i,t)])]},[e("div",{class:ku("title",{active:n}),style:this.titleStyle,on:{click:this.onClickStep}},[this.slots()]),e("div",{class:ku("circle-container"),on:{click:this.onClickStep},style:this.circleContainerStyle},[this.genCircle()]),e("div",{class:ku("line"),style:this.lineStyle})])}}),wu=Object(l.a)("steps"),Cu=wu[0],Ou=wu[1],Tu=Cu({mixins:[Le("vanSteps")],props:{center:Boolean,iconPrefix:String,finishIcon:String,activeColor:String,inactiveIcon:String,inactiveColor:String,active:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},activeIcon:{type:String,default:"checked"}},render:function(){var t=arguments[0];return t("div",{class:Ou([this.direction])},[t("div",{class:Ou("items")},[this.slots()])])}}),$u=Object(l.a)("submit-bar"),Bu=$u[0],Iu=$u[1],Eu=$u[2];function ju(t,e,i,n){var s=e.tip,o=e.price,a=e.tipIcon;return t("div",r()([{class:Iu({unfit:!e.safeAreaInsetBottom})},h(n)]),[i.top&&i.top(),function(){if(i.tip||s)return t("div",{class:Iu("tip")},[a&&t(rt,{class:Iu("tip-icon"),attrs:{name:a}}),s&&t("span",{class:Iu("tip-text")},[s]),i.tip&&i.tip()])}(),t("div",{class:Iu("bar")},[i.default&&i.default(),function(){if("number"==typeof o){var i=(o/100).toFixed(e.decimalLength).split("."),n=e.decimalLength?"."+i[1]:"";return t("div",{style:{textAlign:e.textAlign?e.textAlign:""},class:Iu("text")},[t("span",[e.label||Eu("label")]),t("span",{class:Iu("price")},[e.currency,t("span",{class:Iu("price","integer")},[i[0]]),n]),e.suffixLabel&&t("span",{class:Iu("suffix-label")},[e.suffixLabel])])}}(),i.button?i.button():t(je,{attrs:{round:!0,type:e.buttonType,text:e.loading?"":e.buttonText,color:e.buttonColor,loading:e.loading,disabled:e.disabled},class:Iu("button",e.buttonType),on:{click:function(){d(n,"submit")}}})])])}ju.props={tip:String,label:String,price:Number,tipIcon:String,loading:Boolean,disabled:Boolean,textAlign:String,buttonText:String,buttonColor:String,suffixLabel:String,safeAreaInsetBottom:{type:Boolean,default:!0},decimalLength:{type:[Number,String],default:2},currency:{type:String,default:"¥"},buttonType:{type:String,default:"danger"}};var Du=Bu(ju),Pu=Object(l.a)("swipe-cell"),Lu=Pu[0],Nu=Pu[1],Mu=Lu({mixins:[F,$r({event:"touchstart",method:"onClick"})],props:{onClose:Function,disabled:Boolean,leftWidth:[Number,String],rightWidth:[Number,String],beforeClose:Function,stopPropagation:Boolean,name:{type:[Number,String],default:""}},data:function(){return{offset:0,dragging:!1}},computed:{computedLeftWidth:function(){return+this.leftWidth||this.getWidthByRef("left")},computedRightWidth:function(){return+this.rightWidth||this.getWidthByRef("right")}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{getWidthByRef:function(t){return this.$refs[t]?this.$refs[t].getBoundingClientRect().width:0},open:function(t){var e="left"===t?this.computedLeftWidth:-this.computedRightWidth;this.opened=!0,this.offset=e,this.$emit("open",{position:t,name:this.name,detail:this.name})},close:function(t){this.offset=0,this.opened&&(this.opened=!1,this.$emit("close",{position:t,name:this.name}))},onTouchStart:function(t){this.disabled||(this.startOffset=this.offset,this.touchStart(t))},onTouchMove:function(t){this.disabled||(this.touchMove(t),"horizontal"===this.direction&&(this.dragging=!0,this.lockClick=!0,(!this.opened||this.deltaX*this.startOffset<0)&&k(t,this.stopPropagation),this.offset=Et(this.deltaX+this.startOffset,-this.computedRightWidth,this.computedLeftWidth)))},onTouchEnd:function(){var t=this;this.disabled||this.dragging&&(this.toggle(this.offset>0?"left":"right"),this.dragging=!1,setTimeout((function(){t.lockClick=!1}),0))},toggle:function(t){var e=Math.abs(this.offset),i=this.opened?.85:.15,n=this.computedLeftWidth,s=this.computedRightWidth;s&&"right"===t&&e>s*i?this.open("right"):n&&"left"===t&&e>n*i?this.open("left"):this.close()},onClick:function(t){void 0===t&&(t="outside"),this.$emit("click",t),this.opened&&!this.lockClick&&(this.beforeClose?this.beforeClose({position:t,name:this.name,instance:this}):this.onClose?this.onClose(t,this,{name:this.name}):this.close(t))},getClickHandler:function(t,e){var i=this;return function(n){e&&n.stopPropagation(),i.onClick(t)}},genLeftPart:function(){var t=this.$createElement,e=this.slots("left");if(e)return t("div",{ref:"left",class:Nu("left"),on:{click:this.getClickHandler("left",!0)}},[e])},genRightPart:function(){var t=this.$createElement,e=this.slots("right");if(e)return t("div",{ref:"right",class:Nu("right"),on:{click:this.getClickHandler("right",!0)}},[e])}},render:function(){var t=arguments[0],e={transform:"translate3d("+this.offset+"px, 0, 0)",transitionDuration:this.dragging?"0s":".6s"};return t("div",{class:Nu(),on:{click:this.getClickHandler("cell")}},[t("div",{class:Nu("wrapper"),style:e},[this.genLeftPart(),this.slots(),this.genRightPart()])])}}),Au=Object(l.a)("switch-cell"),zu=Au[0],Vu=Au[1];function Ru(t,e,i,s){return t(oe,r()([{attrs:{center:!0,size:e.cellSize,title:e.title,border:e.border},class:Vu([e.cellSize])},h(s)]),[t(li,{props:n({},e),on:n({},s.listeners)})])}Ru.props=n({},ni,{title:String,cellSize:String,border:{type:Boolean,default:!0},size:{type:String,default:"24px"}});var Fu=zu(Ru),Hu=Object(l.a)("tabbar"),_u=Hu[0],Wu=Hu[1],qu=_u({mixins:[Le("vanTabbar")],props:{route:Boolean,zIndex:[Number,String],placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,value:{type:[Number,String],default:0},border:{type:Boolean,default:!0},fixed:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:null}},data:function(){return{height:null}},computed:{fit:function(){return null!==this.safeAreaInsetBottom?this.safeAreaInsetBottom:this.fixed}},watch:{value:"setActiveItem",children:"setActiveItem"},mounted:function(){var t=this;if(this.placeholder&&this.fixed){var e=function(){t.height=t.$refs.tabbar.getBoundingClientRect().height};e(),setTimeout(e,100)}},methods:{setActiveItem:function(){var t=this;this.children.forEach((function(e,i){e.nameMatched=e.name===t.value||i===t.value}))},triggerChange:function(t,e){var i=this;kn({interceptor:this.beforeChange,args:[t],done:function(){i.$emit("input",t),i.$emit("change",t),e()}})},genTabbar:function(){var t;return(0,this.$createElement)("div",{ref:"tabbar",style:{zIndex:this.zIndex},class:[(t={},t[Bt]=this.border,t),Wu({unfit:!this.fit,fixed:this.fixed})]},[this.slots()])}},render:function(){var t=arguments[0];return this.placeholder&&this.fixed?t("div",{class:Wu("placeholder"),style:{height:this.height+"px"}},[this.genTabbar()]):this.genTabbar()}}),Uu=Object(l.a)("tabbar-item"),Ku=Uu[0],Yu=Uu[1],Xu=Ku({mixins:[Pe("vanTabbar")],props:n({},te,{dot:Boolean,icon:String,name:[Number,String],info:[Number,String],badge:[Number,String],iconPrefix:String}),data:function(){return{nameMatched:!1}},computed:{active:function(){if(this.parent.route&&"$route"in this){var t=this.to,e=this.$route,i=Object(m.f)(t)?t:{path:t};return!!e.matched.find((function(t){var e=""===t.path?"/":t.path,n=i.path===e,s=Object(m.c)(i.name)&&i.name===t.name;return n||s}))}return this.nameMatched}},methods:{onClick:function(t){var e=this;this.active||this.parent.triggerChange(this.name||this.index,(function(){Zt(e.$router,e)})),this.$emit("click",t)},genIcon:function(){var t=this.$createElement,e=this.slots("icon",{active:this.active});return e||(this.icon?t(rt,{attrs:{name:this.icon,classPrefix:this.iconPrefix}}):void 0)}},render:function(){var t,e=arguments[0],i=this.active,n=this.parent[i?"activeColor":"inactiveColor"];return e("div",{class:Yu({active:i}),style:{color:n},on:{click:this.onClick}},[e("div",{class:Yu("icon")},[this.genIcon(),e(J,{attrs:{dot:this.dot,info:null!=(t=this.badge)?t:this.info}})]),e("div",{class:Yu("text")},[this.slots("default",{active:i})])])}}),Qu=Object(l.a)("tree-select"),Gu=Qu[0],Zu=Qu[1];function Ju(t,e,i,n){var s=e.items,o=e.height,a=e.activeId,l=e.selectedIcon,c=e.mainActiveIndex;var u=(s[+c]||{}).children||[],f=Array.isArray(a);function p(t){return f?-1!==a.indexOf(t):a===t}var m=s.map((function(e){var i;return t(_l,{attrs:{dot:e.dot,info:null!=(i=e.badge)?i:e.info,title:e.text,disabled:e.disabled},class:[Zu("nav-item"),e.className]})}));return t("div",r()([{class:Zu(),style:{height:Object(Y.a)(o)}},h(n)]),[t(Vl,{class:Zu("nav"),attrs:{activeKey:c},on:{change:function(t){d(n,"update:main-active-index",t),d(n,"click-nav",t),d(n,"navclick",t)}}},[m]),t("div",{class:Zu("content")},[i.content?i.content():u.map((function(i){return t("div",{key:i.id,class:["van-ellipsis",Zu("item",{active:p(i.id),disabled:i.disabled})],on:{click:function(){if(!i.disabled){var t=i.id;if(f){var s=(t=a.slice()).indexOf(i.id);-1!==s?t.splice(s,1):t.length<e.max&&t.push(i.id)}d(n,"update:active-id",t),d(n,"click-item",i),d(n,"itemclick",i)}}}},[i.text,p(i.id)&&t(rt,{attrs:{name:l},class:Zu("selected")})])}))])])}Ju.props={max:{type:[Number,String],default:1/0},items:{type:Array,default:function(){return[]}},height:{type:[Number,String],default:300},activeId:{type:[Number,String,Array],default:0},selectedIcon:{type:String,default:"success"},mainActiveIndex:{type:[Number,String],default:0}};var th=Gu(Ju),eh="2.13.2";function ih(t){[kt,pi,Ai,Gt,Hi,je,on,mn,Hn,oe,Kn,Xn,Jn,rs,cs,fs,bs,Cs,Es,Ms,Fs,Ys,tr,rr,gr,Qe,xr,Tr,jr,zr,de,Hr,Ve,_e,Ur,Qr,to,rt,un,yo,wo,$o,J,Lo,vt,No.a,Vo,_o,Zo,la,$,pa,ya,Ca,Ut,rl,ct,cl,ml,Ti,bi,yl,wl,Il,Nl,Vl,_l,Yl,fu,bu,xu,Oc,Tu,In,Du,ao,Mu,ho,li,Fu,yn,qu,Xu,An,wi,Te,th,Fc].forEach((function(e){e.install?t.use(e):e.name&&t.component(e.name,e)}))}"undefined"!=typeof window&&window.Vue&&ih(window.Vue);e.default={install:ih,version:eh}}])}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).vant={},e.Vue)}(this,(function(e,t){"use strict";function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const o in e)if("default"!==o){const a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,a.get?a:{enumerable:!0,get:()=>e[o]})}return t.default=e,Object.freeze(t)}const a=o(t);function n(){}const r=Object.assign,l="undefined"!=typeof window,i=e=>null!==e&&"object"==typeof e,s=e=>null!=e,c=e=>"function"==typeof e,d=e=>i(e)&&c(e.then)&&c(e.catch),u=e=>"[object Date]"===Object.prototype.toString.call(e)&&!Number.isNaN(e.getTime());function p(e){return e=e.replace(/[^-|\d]/g,""),/^((\+86)|(86))?(1)\d{10}$/.test(e)||/^0[0-9-]{10,13}$/.test(e)}const v=e=>"number"==typeof e||/^\d+(\.\d+)?$/.test(e);function m(e,t){const o=t.split(".");let a=e;return o.forEach((e=>{var t;a=i(a)&&null!=(t=a[e])?t:""})),a}function f(e,t,o){return t.reduce(((t,a)=>(o&&void 0===e[a]||(t[a]=e[a]),t)),{})}const h=(e,t)=>JSON.stringify(e)===JSON.stringify(t),g=e=>Array.isArray(e)?e:[e],b=null,y=[Number,String],w={type:Boolean,default:!0},x=e=>({type:e,required:!0}),V=()=>({type:Array,default:()=>[]}),N=e=>({type:Number,default:e}),C=e=>({type:y,default:e}),k=e=>({type:String,default:e}),S="undefined"!=typeof window;function T(e){return S?requestAnimationFrame(e):-1}function B(e){S&&cancelAnimationFrame(e)}function P(e){T((()=>T(e)))}const D=(e,t)=>({top:0,left:0,right:e,bottom:t,width:e,height:t}),O=e=>{const t=(0,a.unref)(e);if(t===window){const e=t.innerWidth,o=t.innerHeight;return D(e,o)}return(null==t?void 0:t.getBoundingClientRect)?t.getBoundingClientRect():D(0,0)};function A(e){const t=(0,a.inject)(e,null);if(t){const e=(0,a.getCurrentInstance)(),{link:o,unlink:n,internalChildren:r}=t;o(e),(0,a.onUnmounted)((()=>n(e)));return{parent:t,index:(0,a.computed)((()=>r.indexOf(e)))}}return{parent:null,index:(0,a.ref)(-1)}}const I=(e,t)=>{const o=e.indexOf(t);return-1===o?e.findIndex((e=>void 0!==t.key&&null!==t.key&&e.type===t.type&&e.key===t.key)):o};function z(e,t,o){const n=function(e){const t=[],o=e=>{Array.isArray(e)&&e.forEach((e=>{var n;(0,a.isVNode)(e)&&(t.push(e),(null===(n=e.component)||void 0===n?void 0:n.subTree)&&(t.push(e.component.subTree),o(e.component.subTree.children)),e.children&&o(e.children))}))};return o(e),t}(e.subTree.children);o.sort(((e,t)=>I(n,e.vnode)-I(n,t.vnode)));const r=o.map((e=>e.proxy));t.sort(((e,t)=>r.indexOf(e)-r.indexOf(t)))}function E(e){const t=(0,a.reactive)([]),o=(0,a.reactive)([]),n=(0,a.getCurrentInstance)();return{children:t,linkChildren:r=>{(0,a.provide)(e,Object.assign({link:e=>{e.proxy&&(o.push(e),t.push(e.proxy),z(n,t,o))},unlink:e=>{const a=o.indexOf(e);t.splice(a,1),o.splice(a,1)},children:t,internalChildren:o},r))}}}const L=1e3,$=6e4,M=36e5,R=24*M;function F(e){let t,o,n,r;const l=(0,a.ref)(e.time),i=(0,a.computed)((()=>{return{total:e=l.value,days:Math.floor(e/R),hours:Math.floor(e%R/M),minutes:Math.floor(e%M/$),seconds:Math.floor(e%$/L),milliseconds:Math.floor(e%L)};var e})),s=()=>{n=!1,B(t)},c=()=>Math.max(o-Date.now(),0),d=t=>{var o,a;(l.value=t,null===(o=e.onChange)||void 0===o||o.call(e,i.value),0===t)&&(s(),null===(a=e.onFinish)||void 0===a||a.call(e))},u=()=>{t=T((()=>{n&&(d(c()),l.value>0&&u())}))},p=()=>{t=T((()=>{if(n){const o=c();e=o,t=l.value,(Math.floor(e/1e3)!==Math.floor(t/1e3)||0===o)&&d(o),l.value>0&&p()}var e,t}))},v=()=>{S&&(e.millisecond?u():p())};return(0,a.onBeforeUnmount)(s),(0,a.onActivated)((()=>{r&&(n=!0,r=!1,v())})),(0,a.onDeactivated)((()=>{n&&(s(),r=!0)})),{start:()=>{n||(o=Date.now()+l.value,n=!0,v())},pause:s,reset:(t=e.time)=>{s(),l.value=t},current:i}}function H(e){let t;(0,a.onMounted)((()=>{e(),(0,a.nextTick)((()=>{t=!0}))})),(0,a.onActivated)((()=>{t&&e()}))}function j(e,t,o={}){if(!S)return;const{target:n=window,passive:r=!1,capture:l=!1}=o;let i,s=!1;const c=o=>{if(s)return;const n=(0,a.unref)(o);n&&!i&&(n.addEventListener(e,t,{capture:l,passive:r}),i=!0)},d=o=>{if(s)return;const n=(0,a.unref)(o);n&&i&&(n.removeEventListener(e,t,l),i=!1)};let u;return(0,a.onUnmounted)((()=>d(n))),(0,a.onDeactivated)((()=>d(n))),H((()=>c(n))),(0,a.isRef)(n)&&(u=(0,a.watch)(n,((e,t)=>{d(t),c(e)}))),()=>{null==u||u(),d(n),s=!0}}function W(e,t,o={}){if(!S)return;const{eventName:n="click"}=o;j(n,(o=>{(Array.isArray(e)?e:[e]).every((e=>{const t=(0,a.unref)(e);return t&&!t.contains(o.target)}))&&t(o)}),{target:document})}let U,Y;const X=/scroll|auto|overlay/i,q=S?window:void 0;function G(e){return"HTML"!==e.tagName&&"BODY"!==e.tagName&&1===e.nodeType}function Z(e,t=q){let o=e;for(;o&&o!==t&&G(o);){const{overflowY:e}=window.getComputedStyle(o);if(X.test(e))return o;o=o.parentNode}return t}function K(e,t=q){const o=(0,a.ref)();return(0,a.onMounted)((()=>{e.value&&(o.value=Z(e.value,t))})),o}let _;const J=Symbol("van-field");function Q(e){const t=(0,a.inject)(J,null);t&&!t.customValue.value&&(t.customValue.value=e,(0,a.watch)(e,(()=>{t.resetValidation(),t.validateWithTrigger("onChange")})))}function ee(e){const t="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(t,0)}function te(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function oe(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function ae(e){te(window,e),te(document.body,e)}function ne(e,t){if(e===window)return 0;const o=t?ee(t):oe();return O(e).top+o}const re=!!l&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());function le(){re&&ae(oe())}const ie=e=>e.stopPropagation();function se(e,t){("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault(),t&&ie(e)}function ce(e){const o=t.unref(e);if(!o)return!1;const a=window.getComputedStyle(o),n="none"===a.display,r=null===o.offsetParent&&"fixed"!==a.position;return n||r}const{width:de,height:ue}=function(){if(!U&&(U=(0,a.ref)(0),Y=(0,a.ref)(0),S)){const e=()=>{U.value=window.innerWidth,Y.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:U,height:Y}}();function pe(e){const t=window.getComputedStyle(e);return"none"!==t.transform||"none"!==t.perspective||["transform","perspective","filter"].some((e=>(t.willChange||"").includes(e)))}function ve(e){if(s(e))return v(e)?`${e}px`:String(e)}function me(e){if(s(e)){if(Array.isArray(e))return{width:ve(e[0]),height:ve(e[1])};const t=ve(e);return{width:t,height:t}}}function fe(e){const t={};return void 0!==e&&(t.zIndex=+e),t}let he;function ge(e){return+(e=e.replace(/rem/g,""))*function(){if(!he){const e=document.documentElement,t=e.style.fontSize||window.getComputedStyle(e).fontSize;he=parseFloat(t)}return he}()}function be(e){if("number"==typeof e)return e;if(l){if(e.includes("rem"))return ge(e);if(e.includes("vw"))return function(e){return+(e=e.replace(/vw/g,""))*de.value/100}(e);if(e.includes("vh"))return function(e){return+(e=e.replace(/vh/g,""))*ue.value/100}(e)}return parseFloat(e)}const ye=/-(\w)/g,we=e=>e.replace(ye,((e,t)=>t.toUpperCase()));function xe(e,t=2){let o=e+"";for(;o.length<t;)o="0"+o;return o}const Ve=(e,t,o)=>Math.min(Math.max(e,t),o);function Ne(e,t,o){const a=e.indexOf(t);return-1===a?e:"-"===t&&0!==a?e.slice(0,a):e.slice(0,a+1)+e.slice(a).replace(o,"")}function Ce(e,t=!0,o=!0){e=t?Ne(e,".",/\./g):e.split(".")[0];const a=t?/[^-0-9.]/g:/[^-0-9]/g;return(e=o?Ne(e,"-",/-/g):e.replace(/-/,"")).replace(a,"")}function ke(e,t){const o=10**10;return Math.round((e+t)*o)/o}const{hasOwnProperty:Se}=Object.prototype;function Te(e,t){return Object.keys(t).forEach((o=>{!function(e,t,o){const a=t[o];s(a)&&(Se.call(e,o)&&i(a)?e[o]=Te(Object(e[o]),a):e[o]=a)}(e,t,o)})),e}const Be=t.ref("zh-CN"),Pe=t.reactive({"zh-CN":{name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,t)=>`${e}年${t}月`,rangePrompt:e=>`最多选择 ${e} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:e=>`${e}折`,condition:e=>`满${e}元可用`},vanCouponCell:{title:"优惠券",count:e=>`${e}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}}}),De={messages:()=>Pe[Be.value],use(e,t){Be.value=e,this.add({[e]:t})},add(e={}){Te(Pe,e)}};var Oe=De;function Ae(e){const t=we(e)+".";return(e,...o)=>{const a=Oe.messages(),n=m(a,t+e)||m(a,e);return c(n)?n(...o):n}}function Ie(e,t){return t?"string"==typeof t?` ${e}--${t}`:Array.isArray(t)?t.reduce(((t,o)=>t+Ie(e,o)),""):Object.keys(t).reduce(((o,a)=>o+(t[a]?Ie(e,a):"")),""):""}function ze(e){return(t,o)=>(t&&"string"!=typeof t&&(o=t,t=""),`${t=t?`${e}__${t}`:e}${Ie(t,o)}`)}function Ee(e){const t=`van-${e}`;return[t,ze(t),Ae(t)]}const Le="van-hairline",$e=`${Le}--top`,Me=`${Le}--left`,Re=`${Le}--right`,Fe=`${Le}--bottom`,He=`${Le}--surround`,je=`${Le}--top-bottom`,We=`${Le}-unset--top-bottom`,Ue="van-haptics-feedback",Ye=Symbol("van-form");function Xe(e,{args:t=[],done:o,canceled:a,error:r}){if(e){const l=e.apply(null,t);d(l)?l.then((e=>{e?o():a&&a()})).catch(r||n):l?o():a&&a()}else o()}function qe(e){return e.install=t=>{const{name:o}=e;o&&(t.component(o,e),t.component(we(`-${o}`),e))},e}function Ge(e,t){return e.reduce(((e,o)=>Math.abs(e-t)<Math.abs(o-t)?e:o))}const Ze=Symbol();function Ke(e){const o=t.inject(Ze,null);o&&t.watch(o,(t=>{t&&e()}))}const _e=(e,o)=>{const a=t.ref(),n=()=>{a.value=O(e).height};return t.onMounted((()=>{if(t.nextTick(n),o)for(let e=1;e<=3;e++)setTimeout(n,100*e)})),Ke((()=>t.nextTick(n))),t.watch([de,ue],n),a};function Je(e,o){const a=_e(e,!0);return e=>t.createVNode("div",{class:o("placeholder"),style:{height:a.value?`${a.value}px`:void 0}},[e()])}const[Qe,et]=Ee("action-bar"),tt=Symbol(Qe),ot={placeholder:Boolean,safeAreaInsetBottom:w};const at=qe(t.defineComponent({name:Qe,props:ot,setup(e,{slots:o}){const a=t.ref(),n=Je(a,et),{linkChildren:r}=E(tt);r();const l=()=>{var n;return t.createVNode("div",{ref:a,class:[et(),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[null==(n=o.default)?void 0:n.call(o)])};return()=>e.placeholder?n(l):l()}}));function nt(e){const o=t.getCurrentInstance();o&&r(o.proxy,e)}const rt={to:[String,Object],url:String,replace:Boolean};function lt({to:e,url:t,replace:o,$router:a}){e&&a?a[o?"replace":"push"](e):t&&(o?location.replace(t):location.href=t)}function it(){const e=t.getCurrentInstance().proxy;return()=>lt(e)}const[st,ct]=Ee("badge"),dt={dot:Boolean,max:y,tag:k("div"),color:String,offset:Array,content:y,showZero:w,position:k("top-right")};const ut=qe(t.defineComponent({name:st,props:dt,setup(e,{slots:o}){const a=()=>{if(o.content)return!0;const{content:t,showZero:a}=e;return s(t)&&""!==t&&(a||0!==t&&"0"!==t)},n=()=>{const{dot:t,max:n,content:r}=e;if(!t&&a())return o.content?o.content():s(n)&&v(r)&&+r>+n?`${n}+`:r},r=e=>e.startsWith("-")?e.replace("-",""):`-${e}`,l=t.computed((()=>{const t={background:e.color};if(e.offset){const[a,n]=e.offset,{position:l}=e,[i,s]=l.split("-");o.default?(t[i]="number"==typeof n?ve("top"===i?n:-n):"top"===i?ve(n):r(n),t[s]="number"==typeof a?ve("left"===s?a:-a):"left"===s?ve(a):r(a)):(t.marginTop=ve(n),t.marginLeft=ve(a))}return t})),i=()=>{if(a()||e.dot)return t.createVNode("div",{class:ct([e.position,{dot:e.dot,fixed:!!o.default}]),style:l.value},[n()])};return()=>{if(o.default){const{tag:a}=e;return t.createVNode(a,{class:ct("wrapper")},{default:()=>[o.default(),i()]})}return i()}}}));let pt=2e3;const[vt,mt]=Ee("config-provider"),ft=Symbol(vt),ht={tag:k("div"),theme:k("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:k("local"),iconPrefix:String};function gt(e={},t={}){Object.keys(e).forEach((o=>{e[o]!==t[o]&&document.documentElement.style.setProperty(o,e[o])})),Object.keys(t).forEach((t=>{e[t]||document.documentElement.style.removeProperty(t)}))}var bt=t.defineComponent({name:vt,props:ht,setup(e,{slots:o}){const a=t.computed((()=>function(e){const t={};return Object.keys(e).forEach((o=>{const a=o.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"").replace(/([a-zA-Z])(\d)/g,"$1-$2");t[`--van-${a}`]=e[o]})),t}(r({},e.themeVars,"dark"===e.theme?e.themeVarsDark:e.themeVarsLight))));if(l){const o=()=>{document.documentElement.classList.add(`van-theme-${e.theme}`)},n=(t=e.theme)=>{document.documentElement.classList.remove(`van-theme-${t}`)};t.watch((()=>e.theme),((e,t)=>{t&&n(t),o()}),{immediate:!0}),t.onActivated(o),t.onDeactivated(n),t.onBeforeUnmount(n),t.watch(a,((t,o)=>{"global"===e.themeVarsScope&&gt(t,o)})),t.watch((()=>e.themeVarsScope),((e,t)=>{"global"===t&&gt({},a.value),"global"===e&&gt(a.value,{})})),"global"===e.themeVarsScope&&gt(a.value,{})}return t.provide(ft,e),t.watchEffect((()=>{var t;void 0!==e.zIndex&&(t=e.zIndex,pt=t)})),()=>t.createVNode(e.tag,{class:mt(),style:"local"===e.themeVarsScope?a.value:void 0},{default:()=>{var e;return[null==(e=o.default)?void 0:e.call(o)]}})}});const[yt,wt]=Ee("icon"),xt={dot:Boolean,tag:k("i"),name:String,size:y,badge:y,color:String,badgeProps:Object,classPrefix:String};const Vt=qe(t.defineComponent({name:yt,props:xt,setup(e,{slots:o}){const a=t.inject(ft,null),n=t.computed((()=>e.classPrefix||(null==a?void 0:a.iconPrefix)||wt()));return()=>{const{tag:a,dot:r,name:l,size:i,badge:s,color:c}=e,d=(e=>null==e?void 0:e.includes("/"))(l);return t.createVNode(ut,t.mergeProps({dot:r,tag:a,class:[n.value,d?"":`${n.value}-${l}`],style:{color:c,fontSize:ve(i)},content:s},e.badgeProps),{default:()=>{var e;return[null==(e=o.default)?void 0:e.call(o),d&&t.createVNode("img",{class:wt("image"),src:l},null)]}})}}}));var Nt=Vt;const[Ct,kt]=Ee("loading"),St=Array(12).fill(null).map(((e,o)=>t.createVNode("i",{class:kt("line",String(o+1))},null))),Tt=t.createVNode("svg",{class:kt("circular"),viewBox:"25 25 50 50"},[t.createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),Bt={size:y,type:k("circular"),color:String,vertical:Boolean,textSize:y,textColor:String};const Pt=qe(t.defineComponent({name:Ct,props:Bt,setup(e,{slots:o}){const a=t.computed((()=>r({color:e.color},me(e.size)))),n=()=>{const n="spinner"===e.type?St:Tt;return t.createVNode("span",{class:kt("spinner",e.type),style:a.value},[o.icon?o.icon():n])},l=()=>{var a;if(o.default)return t.createVNode("span",{class:kt("text"),style:{fontSize:ve(e.textSize),color:null!=(a=e.textColor)?a:e.color}},[o.default()])};return()=>{const{type:o,vertical:a}=e;return t.createVNode("div",{class:kt([o,{vertical:a}]),"aria-live":"polite","aria-busy":!0},[n(),l()])}}})),[Dt,Ot]=Ee("button"),At=r({},rt,{tag:k("button"),text:String,icon:String,type:k("default"),size:k("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:k("button"),loadingSize:y,loadingText:String,loadingType:String,iconPosition:k("left")});const It=qe(t.defineComponent({name:Dt,props:At,emits:["click"],setup(e,{emit:o,slots:a}){const n=it(),r=()=>e.loading?a.loading?a.loading():t.createVNode(Pt,{size:e.loadingSize,type:e.loadingType,class:Ot("loading")},null):a.icon?t.createVNode("div",{class:Ot("icon")},[a.icon()]):e.icon?t.createVNode(Vt,{name:e.icon,class:Ot("icon"),classPrefix:e.iconPrefix},null):void 0,l=()=>{let o;if(o=e.loading?e.loadingText:a.default?a.default():e.text,o)return t.createVNode("span",{class:Ot("text")},[o])},i=()=>{const{color:t,plain:o}=e;if(t){const e={color:o?t:"white"};return o||(e.background=t),t.includes("gradient")?e.border=0:e.borderColor=t,e}},s=t=>{e.loading?se(t):e.disabled||(o("click",t),n())};return()=>{const{tag:o,type:a,size:n,block:c,round:d,plain:u,square:p,loading:v,disabled:m,hairline:f,nativeType:h,iconPosition:g}=e,b=[Ot([a,n,{plain:u,block:c,round:d,square:p,loading:v,disabled:m,hairline:f}]),{[He]:f}];return t.createVNode(o,{type:h,class:b,style:i(),disabled:m,onClick:s},{default:()=>[t.createVNode("div",{class:Ot("content")},["left"===g&&r(),l(),"right"===g&&r()])]})}}})),[zt,Et]=Ee("action-bar-button"),Lt=r({},rt,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean});const $t=qe(t.defineComponent({name:zt,props:Lt,setup(e,{slots:o}){const a=it(),{parent:n,index:r}=A(tt),l=t.computed((()=>{if(n){const e=n.children[r.value-1];return!(e&&"isButton"in e)}})),i=t.computed((()=>{if(n){const e=n.children[r.value+1];return!(e&&"isButton"in e)}}));return nt({isButton:!0}),()=>{const{type:n,icon:r,text:s,color:c,loading:d,disabled:u}=e;return t.createVNode(It,{class:Et([n,{last:i.value,first:l.value}]),size:"large",type:n,icon:r,color:c,loading:d,disabled:u,onClick:a},{default:()=>[o.default?o.default():s]})}}})),[Mt,Rt]=Ee("action-bar-icon"),Ft=r({},rt,{dot:Boolean,text:String,icon:String,color:String,badge:y,iconClass:b,badgeProps:Object,iconPrefix:String});const Ht=qe(t.defineComponent({name:Mt,props:Ft,setup(e,{slots:o}){const a=it();A(tt);const n=()=>{const{dot:a,badge:n,icon:r,color:l,iconClass:i,badgeProps:s,iconPrefix:c}=e;return o.icon?t.createVNode(ut,t.mergeProps({dot:a,class:Rt("icon"),content:n},s),{default:o.icon}):t.createVNode(Vt,{tag:"div",dot:a,name:r,badge:n,color:l,class:[Rt("icon"),i],badgeProps:s,classPrefix:c},null)};return()=>t.createVNode("div",{role:"button",class:Rt(),tabindex:0,onClick:a},[n(),o.default?o.default():e.text])}})),jt={show:Boolean,zIndex:y,overlay:w,duration:y,teleport:[String,Object],lockScroll:w,lazyRender:w,beforeClose:Function,overlayStyle:Object,overlayClass:b,transitionAppear:Boolean,closeOnClickOverlay:w},Wt=Object.keys(jt);function Ut(){const e=t.ref(0),o=t.ref(0),a=t.ref(0),n=t.ref(0),r=t.ref(0),l=t.ref(0),i=t.ref(""),s=t.ref(!0),c=()=>{a.value=0,n.value=0,r.value=0,l.value=0,i.value="",s.value=!0};return{move:t=>{const c=t.touches[0];a.value=(c.clientX<0?0:c.clientX)-e.value,n.value=c.clientY-o.value,r.value=Math.abs(a.value),l.value=Math.abs(n.value);var d,u;(!i.value||r.value<10&&l.value<10)&&(i.value=(d=r.value,u=l.value,d>u?"horizontal":u>d?"vertical":"")),s.value&&(r.value>5||l.value>5)&&(s.value=!1)},start:t=>{c(),e.value=t.touches[0].clientX,o.value=t.touches[0].clientY},reset:c,startX:e,startY:o,deltaX:a,deltaY:n,offsetX:r,offsetY:l,direction:i,isVertical:()=>"vertical"===i.value,isHorizontal:()=>"horizontal"===i.value,isTap:s}}let Yt=0;const Xt="van-overflow-hidden";function qt(e,o){const a=Ut(),n=t=>{a.move(t);const o=a.deltaY.value>0?"10":"01",n=Z(t.target,e.value),{scrollHeight:r,offsetHeight:l,scrollTop:i}=n;let s="11";0===i?s=l>=r?"00":"01":i+l>=r&&(s="10"),"11"===s||!a.isVertical()||parseInt(s,2)&parseInt(o,2)||se(t,!0)},r=()=>{document.addEventListener("touchstart",a.start),document.addEventListener("touchmove",n,{passive:!1}),Yt||document.body.classList.add(Xt),Yt++},l=()=>{Yt&&(document.removeEventListener("touchstart",a.start),document.removeEventListener("touchmove",n),Yt--,Yt||document.body.classList.remove(Xt))},i=()=>o()&&l();H((()=>o()&&r())),t.onDeactivated(i),t.onBeforeUnmount(i),t.watch(o,(e=>{e?r():l()}))}function Gt(e){const o=t.ref(!1);return t.watch(e,(e=>{e&&(o.value=e)}),{immediate:!0}),e=>()=>o.value?e():null}const Zt=()=>{var e;const{scopeId:o}=(null==(e=t.getCurrentInstance())?void 0:e.vnode)||{};return o?{[o]:""}:null},[Kt,_t]=Ee("overlay"),Jt={show:Boolean,zIndex:y,duration:y,className:b,lockScroll:w,lazyRender:w,customStyle:Object,teleport:[String,Object]};const Qt=qe(t.defineComponent({name:Kt,props:Jt,setup(e,{slots:o}){const a=t.ref(),n=Gt((()=>e.show||!e.lazyRender))((()=>{var n;const l=r(fe(e.zIndex),e.customStyle);return s(e.duration)&&(l.animationDuration=`${e.duration}s`),t.withDirectives(t.createVNode("div",{ref:a,style:l,class:[_t(),e.className]},[null==(n=o.default)?void 0:n.call(o)]),[[t.vShow,e.show]])}));return j("touchmove",(t=>{e.lockScroll&&se(t,!0)}),{target:a}),()=>{const o=t.createVNode(t.Transition,{name:"van-fade",appear:!0},{default:n});return e.teleport?t.createVNode(t.Teleport,{to:e.teleport},{default:()=>[o]}):o}}})),eo=r({},jt,{round:Boolean,position:k("center"),closeIcon:k("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:k("top-right"),destroyOnClose:Boolean,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[to,oo]=Ee("popup");const ao=qe(t.defineComponent({name:to,inheritAttrs:!1,props:eo,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(e,{emit:o,attrs:a,slots:n}){let r,l;const i=t.ref(),c=t.ref(),d=Gt((()=>e.show||!e.lazyRender)),u=t.computed((()=>{const t={zIndex:i.value};if(s(e.duration)){t["center"===e.position?"animationDuration":"transitionDuration"]=`${e.duration}s`}return t})),p=()=>{r||(r=!0,i.value=void 0!==e.zIndex?+e.zIndex:++pt,o("open"))},v=()=>{r&&Xe(e.beforeClose,{done(){r=!1,o("close"),o("update:show",!1)}})},m=t=>{o("clickOverlay",t),e.closeOnClickOverlay&&v()},f=()=>{if(e.overlay)return t.createVNode(Qt,t.mergeProps({show:e.show,class:e.overlayClass,zIndex:i.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0},Zt(),{onClick:m}),{default:n["overlay-content"]})},h=e=>{o("clickCloseIcon",e),v()},g=()=>{if(e.closeable)return t.createVNode(Vt,{role:"button",tabindex:0,name:e.closeIcon,class:[oo("close-icon",e.closeIconPosition),Ue],classPrefix:e.iconPrefix,onClick:h},null)};let b;const y=()=>{b&&clearTimeout(b),b=setTimeout((()=>{o("opened")}))},w=()=>o("closed"),x=e=>o("keydown",e),V=d((()=>{var o;const{destroyOnClose:r,round:l,position:i,safeAreaInsetTop:s,safeAreaInsetBottom:d,show:p}=e;if(p||!r)return t.withDirectives(t.createVNode("div",t.mergeProps({ref:c,style:u.value,role:"dialog",tabindex:0,class:[oo({round:l,[i]:i}),{"van-safe-area-top":s,"van-safe-area-bottom":d}],onKeydown:x},a,Zt()),[null==(o=n.default)?void 0:o.call(n),g()]),[[t.vShow,p]])})),N=()=>{const{position:o,transition:a,transitionAppear:n}=e,r="center"===o?"van-fade":`van-popup-slide-${o}`;return t.createVNode(t.Transition,{name:a||r,appear:n,onAfterEnter:y,onAfterLeave:w},{default:V})};return t.watch((()=>e.show),(e=>{e&&!r&&(p(),0===a.tabindex&&t.nextTick((()=>{var e;null==(e=c.value)||e.focus()}))),!e&&r&&(r=!1,o("close"))})),nt({popupRef:c}),qt(c,(()=>e.show&&e.lockScroll)),j("popstate",(()=>{e.closeOnPopstate&&(v(),l=!1)})),t.onMounted((()=>{e.show&&p()})),t.onActivated((()=>{l&&(o("update:show",!0),l=!1)})),t.onDeactivated((()=>{e.show&&e.teleport&&(v(),l=!0)})),t.provide(Ze,(()=>e.show)),()=>e.teleport?t.createVNode(t.Teleport,{to:e.teleport},{default:()=>[f(),N()]}):t.createVNode(t.Fragment,null,[f(),N()])}})),[no,ro]=Ee("action-sheet"),lo=r({},jt,{title:String,round:w,actions:V(),closeIcon:k("cross"),closeable:w,cancelText:String,description:String,closeOnPopstate:w,closeOnClickAction:Boolean,safeAreaInsetBottom:w}),io=[...Wt,"round","closeOnPopstate","safeAreaInsetBottom"];const so=qe(t.defineComponent({name:no,props:lo,emits:["select","cancel","update:show"],setup(e,{slots:o,emit:a}){const n=e=>a("update:show",e),r=()=>{n(!1),a("cancel")},l=()=>{if(e.title)return t.createVNode("div",{class:ro("header")},[e.title,e.closeable&&t.createVNode(Vt,{name:e.closeIcon,class:[ro("close"),Ue],onClick:r},null)])},i=()=>{if(o.cancel||e.cancelText)return[t.createVNode("div",{class:ro("gap")},null),t.createVNode("button",{type:"button",class:ro("cancel"),onClick:r},[o.cancel?o.cancel():e.cancelText])]},s=e=>{if(e.icon)return t.createVNode(Vt,{class:ro("item-icon"),name:e.icon},null)},c=(e,a)=>e.loading?t.createVNode(Pt,{class:ro("loading-icon")},null):o.action?o.action({action:e,index:a}):[t.createVNode("span",{class:ro("name")},[e.name]),e.subname&&t.createVNode("div",{class:ro("subname")},[e.subname])],d=(o,r)=>{const{color:l,loading:i,callback:d,disabled:u,className:p}=o;return t.createVNode("button",{type:"button",style:{color:l},class:[ro("item",{loading:i,disabled:u}),p],onClick:()=>{u||i||(d&&d(o),e.closeOnClickAction&&n(!1),t.nextTick((()=>a("select",o,r))))}},[s(o),c(o,r)])},u=()=>{if(e.description||o.description){const a=o.description?o.description():e.description;return t.createVNode("div",{class:ro("description")},[a])}};return()=>t.createVNode(ao,t.mergeProps({class:ro(),position:"bottom","onUpdate:show":n},f(e,io)),{default:()=>{var a;return[l(),u(),t.createVNode("div",{class:ro("content")},[e.actions.map(d),null==(a=o.default)?void 0:a.call(o)]),i()]}})}})),[co,uo,po]=Ee("picker"),vo=e=>e.find((e=>!e.disabled))||e[0];function mo(e,t){for(let o=t=Ve(t,0,e.length);o<e.length;o++)if(!e[o].disabled)return o;for(let o=t-1;o>=0;o--)if(!e[o].disabled)return o;return 0}const fo=(e,t,o)=>void 0!==t&&!!e.find((e=>e[o.value]===t));function ho(e,t,o){const a=e.findIndex((e=>e[o.value]===t));return e[mo(e,a)]}const[go,bo]=Ee("picker-column"),yo=Symbol(go);var wo=t.defineComponent({name:go,props:{value:y,fields:x(Object),options:V(),readonly:Boolean,allowHtml:Boolean,optionHeight:x(Number),swipeDuration:x(y),visibleOptionNum:x(y)},emits:["change","clickOption","scrollInto"],setup(e,{emit:o,slots:a}){let n,r,l,i,s;const c=t.ref(),d=t.ref(),u=t.ref(0),p=t.ref(0),v=Ut(),m=()=>e.options.length,f=()=>e.optionHeight*(+e.visibleOptionNum-1)/2,h=t=>{let a=mo(e.options,t);const r=-a*e.optionHeight,l=()=>{a>m()-1&&(a=mo(e.options,t));const n=e.options[a][e.fields.value];n!==e.value&&o("change",n)};n&&r!==u.value?s=l:l(),u.value=r},g=()=>e.readonly||!e.options.length,b=t=>Ve(Math.round(-t/e.optionHeight),0,m()-1),y=t.computed((()=>b(u.value))),w=()=>{n=!1,p.value=0,s&&(s(),s=null)},x=e=>{if(!g()){if(v.start(e),n){const e=function(e){const{transform:t}=window.getComputedStyle(e),o=t.slice(7,t.length-1).split(", ")[5];return Number(o)}(d.value);u.value=Math.min(0,e-f())}p.value=0,r=u.value,l=Date.now(),i=r,s=null}},V=()=>{if(g())return;const t=u.value-i,o=Date.now()-l;if(o<300&&Math.abs(t)>15)return void((t,o)=>{const a=Math.abs(t/o);t=u.value+a/.003*(t<0?-1:1);const n=b(t);p.value=+e.swipeDuration,h(n)})(t,o);const a=b(u.value);p.value=200,h(a),setTimeout((()=>{n=!1}),0)},N=()=>{const r={height:`${e.optionHeight}px`};return e.options.map(((l,i)=>{const c=l[e.fields.text],{disabled:d}=l,u=l[e.fields.value],v={role:"button",style:r,tabindex:d?-1:0,class:[bo("item",{disabled:d,selected:u===e.value}),l.className],onClick:()=>(t=>{n||g()||(s=null,p.value=200,h(t),o("clickOption",e.options[t]))})(i)},m={class:"van-ellipsis",[e.allowHtml?"innerHTML":"textContent"]:c};return t.createVNode("li",v,[a.option?a.option(l,i):t.createVNode("div",m,null)])}))};return A(yo),nt({stopMomentum:w}),t.watchEffect((()=>{const t=n?Math.floor(-u.value/e.optionHeight):e.options.findIndex((t=>t[e.fields.value]===e.value)),o=mo(e.options,t),a=-o*e.optionHeight;n&&o<t&&w(),u.value=a})),j("touchmove",(t=>{if(g())return;v.move(t),v.isVertical()&&(n=!0,se(t,!0));const a=Ve(r+v.deltaY.value,-m()*e.optionHeight,e.optionHeight),s=b(a);s!==y.value&&o("scrollInto",e.options[s]),u.value=a;const c=Date.now();c-l>300&&(l=c,i=a)}),{target:c}),()=>t.createVNode("div",{ref:c,class:bo(),onTouchstartPassive:x,onTouchend:V,onTouchcancel:V},[t.createVNode("ul",{ref:d,style:{transform:`translate3d(0, ${u.value+f()}px, 0)`,transitionDuration:`${p.value}ms`,transitionProperty:p.value?"all":"none"},class:bo("wrapper"),onTransitionend:w},[N()])])}});const[xo]=Ee("picker-toolbar"),Vo={title:String,cancelButtonText:String,confirmButtonText:String},No=["cancel","confirm","title","toolbar"],Co=Object.keys(Vo);var ko=t.defineComponent({name:xo,props:Vo,emits:["confirm","cancel"],setup(e,{emit:o,slots:a}){const n=()=>o("cancel"),r=()=>o("confirm"),l=()=>{var o;const r=null!=(o=e.cancelButtonText)?o:po("cancel");if(a.cancel||r)return t.createVNode("button",{type:"button",class:[uo("cancel"),Ue],onClick:n},[a.cancel?a.cancel():r])},i=()=>{var o;const n=null!=(o=e.confirmButtonText)?o:po("confirm");if(a.confirm||n)return t.createVNode("button",{type:"button",class:[uo("confirm"),Ue],onClick:r},[a.confirm?a.confirm():n])};return()=>t.createVNode("div",{class:uo("toolbar")},[a.toolbar?a.toolbar():[l(),a.title?a.title():e.title?t.createVNode("div",{class:[uo("title"),"van-ellipsis"]},[e.title]):void 0,i()]])}});const So=(e,o)=>{const a=t.ref(e());return t.watch(e,(e=>{e!==a.value&&(a.value=e)})),t.watch(a,(t=>{t!==e()&&o(t)})),a},To=Array.isArray,Bo=e=>"string"==typeof e,Po=e=>null!==e&&"object"==typeof e,Do=/\B([A-Z])/g,Oo=(e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))})((e=>e.replace(Do,"-$1").toLowerCase()));
2
+ /**
3
+ * @vue/shared v3.5.13
4
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
5
+ * @license MIT
6
+ **/function Ao(e){if(To(e)){const t={};for(let o=0;o<e.length;o++){const a=e[o],n=Bo(a)?Lo(a):Ao(a);if(n)for(const e in n)t[e]=n[e]}return t}if(Bo(e)||Po(e))return e}const Io=/;(?![^(]*\))/g,zo=/:([^]+)/,Eo=/\/\*[^]*?\*\//g;function Lo(e){const t={};return e.replace(Eo,"").split(Io).forEach((e=>{if(e){const o=e.split(zo);o.length>1&&(t[o[0].trim()]=o[1].trim())}})),t}function $o(e){let t="";if(Bo(e))t=e;else if(To(e))for(let o=0;o<e.length;o++){const a=$o(e[o]);a&&(t+=a+" ")}else if(Po(e))for(const o in e)e[o]&&(t+=o+" ");return t.trim()}let Mo=0;function Ro(){const e=t.getCurrentInstance(),{name:o="unknown"}=(null==e?void 0:e.type)||{};return`${o}-${++Mo}`}function Fo(){const e=t.ref([]),o=[];t.onBeforeUpdate((()=>{e.value=[]}));return[e,t=>(o[t]||(o[t]=o=>{e.value[t]=o}),o[t])]}function Ho(e,o){if(!l||!window.IntersectionObserver)return;const a=new IntersectionObserver((e=>{o(e[0].intersectionRatio>0)}),{root:document.body}),n=()=>{e.value&&a.unobserve(e.value)};t.onDeactivated(n),t.onBeforeUnmount(n),H((()=>{e.value&&a.observe(e.value)}))}const[jo,Wo]=Ee("sticky"),Uo={zIndex:y,position:k("top"),container:Object,offsetTop:C(0),offsetBottom:C(0)};const Yo=qe(t.defineComponent({name:jo,props:Uo,emits:["scroll","change"],setup(e,{emit:o,slots:a}){const n=t.ref(),l=K(n),i=t.reactive({fixed:!1,width:0,height:0,transform:0}),s=t.ref(!1),c=t.computed((()=>be("top"===e.position?e.offsetTop:e.offsetBottom))),d=t.computed((()=>{if(s.value)return;const{fixed:e,height:t,width:o}=i;return e?{width:`${o}px`,height:`${t}px`}:void 0})),u=t.computed((()=>{if(!i.fixed||s.value)return;const t=r(fe(e.zIndex),{width:`${i.width}px`,height:`${i.height}px`,[e.position]:`${c.value}px`});return i.transform&&(t.transform=`translate3d(0, ${i.transform}px, 0)`),t})),p=()=>{if(!n.value||ce(n))return;const{container:t,position:a}=e,r=O(n),l=ee(window);if(i.width=r.width,i.height=r.height,"top"===a)if(t){const e=O(t),o=e.bottom-c.value-i.height;i.fixed=c.value>r.top&&e.bottom>0,i.transform=o<0?o:0}else i.fixed=c.value>r.top;else{const{clientHeight:e}=document.documentElement;if(t){const o=O(t),a=e-o.top-c.value-i.height;i.fixed=e-c.value<r.bottom&&e>o.top,i.transform=a<0?-a:0}else i.fixed=e-c.value<r.bottom}(e=>{o("scroll",{scrollTop:e,isFixed:i.fixed})})(l)};return t.watch((()=>i.fixed),(e=>o("change",e))),j("scroll",p,{target:l,passive:!0}),Ho(n,p),t.watch([de,ue],(()=>{n.value&&!ce(n)&&i.fixed&&(s.value=!0,t.nextTick((()=>{const e=O(n);i.width=e.width,i.height=e.height,s.value=!1})))})),()=>{var e;return t.createVNode("div",{ref:n,style:d.value},[t.createVNode("div",{class:Wo({fixed:i.fixed&&!s.value}),style:u.value},[null==(e=a.default)?void 0:e.call(a)])])}}})),[Xo,qo]=Ee("swipe"),Go={loop:w,width:y,height:y,vertical:Boolean,autoplay:C(0),duration:C(500),touchable:w,lazyRender:Boolean,initialSwipe:C(0),indicatorColor:String,showIndicators:w,stopPropagation:w},Zo=Symbol(Xo);const Ko=qe(t.defineComponent({name:Xo,props:Go,emits:["change","dragStart","dragEnd"],setup(e,{emit:o,slots:n}){const r=t.ref(),l=t.ref(),i=t.reactive({rect:null,width:0,height:0,offset:0,active:0,swiping:!1});let s=!1;const c=Ut(),{children:d,linkChildren:u}=E(Zo),p=t.computed((()=>d.length)),v=t.computed((()=>i[e.vertical?"height":"width"])),m=t.computed((()=>e.vertical?c.deltaY.value:c.deltaX.value)),f=t.computed((()=>{if(i.rect){return(e.vertical?i.rect.height:i.rect.width)-v.value*p.value}return 0})),h=t.computed((()=>v.value?Math.ceil(Math.abs(f.value)/v.value):p.value)),g=t.computed((()=>p.value*v.value)),b=t.computed((()=>(i.active+p.value)%p.value)),y=t.computed((()=>{const t=e.vertical?"vertical":"horizontal";return c.direction.value===t})),w=t.computed((()=>{const t={transitionDuration:`${i.swiping?0:e.duration}ms`,transform:`translate${e.vertical?"Y":"X"}(${+i.offset.toFixed(2)}px)`};if(v.value){const o=e.vertical?"height":"width",a=e.vertical?"width":"height";t[o]=`${g.value}px`,t[a]=e[a]?`${e[a]}px`:""}return t})),x=(t,o=0)=>{let a=t*v.value;e.loop||(a=Math.min(a,-f.value));let n=o-a;return e.loop||(n=Ve(n,f.value,0)),n},V=({pace:t=0,offset:a=0,emitChange:n})=>{if(p.value<=1)return;const{active:r}=i,l=(t=>{const{active:o}=i;return t?e.loop?Ve(o+t,-1,p.value):Ve(o+t,0,h.value):o})(t),s=x(l,a);if(e.loop){if(d[0]&&s!==f.value){const e=s<f.value;d[0].setOffset(e?g.value:0)}if(d[p.value-1]&&0!==s){const e=s>0;d[p.value-1].setOffset(e?-g.value:0)}}i.active=l,i.offset=s,n&&l!==r&&o("change",b.value)},N=()=>{i.swiping=!0,i.active<=-1?V({pace:p.value}):i.active>=p.value&&V({pace:-p.value})},C=()=>{N(),c.reset(),P((()=>{i.swiping=!1,V({pace:1,emitChange:!0})}))};let k;const T=()=>clearTimeout(k),B=()=>{T(),+e.autoplay>0&&p.value>1&&(k=setTimeout((()=>{C(),B()}),+e.autoplay))},D=(o=+e.initialSwipe)=>{if(!r.value)return;const a=()=>{var t,a;if(!ce(r)){const o={width:r.value.offsetWidth,height:r.value.offsetHeight};i.rect=o,i.width=+(null!=(t=e.width)?t:o.width),i.height=+(null!=(a=e.height)?a:o.height)}p.value&&-1===(o=Math.min(p.value-1,o))&&(o=p.value-1),i.active=o,i.swiping=!0,i.offset=x(o),d.forEach((e=>{e.setOffset(0)})),B()};ce(r)?t.nextTick().then(a):a()},O=()=>D(i.active);let A;const I=t=>{!e.touchable||t.touches.length>1||(c.start(t),s=!1,A=Date.now(),T(),N())},z=()=>{if(!e.touchable||!i.swiping)return;const t=Date.now()-A,a=m.value/t;if((Math.abs(a)>.25||Math.abs(m.value)>v.value/2)&&y.value){const t=e.vertical?c.offsetY.value:c.offsetX.value;let o=0;o=e.loop?t>0?m.value>0?-1:1:0:-Math[m.value>0?"ceil":"floor"](m.value/v.value),V({pace:o,emitChange:!0})}else m.value&&V({pace:0});s=!1,i.swiping=!1,o("dragEnd",{index:b.value}),B()},L=(o,a)=>{const n=a===b.value,r=n?{backgroundColor:e.indicatorColor}:void 0;return t.createVNode("i",{style:r,class:qo("indicator",{active:n})},null)};return nt({prev:()=>{N(),c.reset(),P((()=>{i.swiping=!1,V({pace:-1,emitChange:!0})}))},next:C,state:i,resize:O,swipeTo:(t,o={})=>{N(),c.reset(),P((()=>{let a;a=e.loop&&t===p.value?0===i.active?0:t:t%p.value,o.immediate?P((()=>{i.swiping=!1})):i.swiping=!1,V({pace:a-i.active,emitChange:!0})}))}}),u({size:v,props:e,count:p,activeIndicator:b}),t.watch((()=>e.initialSwipe),(e=>D(+e))),t.watch(p,(()=>D(i.active))),t.watch((()=>e.autoplay),B),t.watch([de,ue,()=>e.width,()=>e.height],O),t.watch(function(){if(!_&&(_=(0,a.ref)("visible"),S)){const e=()=>{_.value=document.hidden?"hidden":"visible"};e(),window.addEventListener("visibilitychange",e)}return _}(),(e=>{"visible"===e?B():T()})),t.onMounted(D),t.onActivated((()=>D(i.active))),Ke((()=>D(i.active))),t.onDeactivated(T),t.onBeforeUnmount(T),j("touchmove",(t=>{if(e.touchable&&i.swiping&&(c.move(t),y.value)){!e.loop&&(0===i.active&&m.value>0||i.active===p.value-1&&m.value<0)||(se(t,e.stopPropagation),V({offset:m.value}),s||(o("dragStart",{index:b.value}),s=!0))}}),{target:l}),()=>{var o;return t.createVNode("div",{ref:r,class:qo()},[t.createVNode("div",{ref:l,style:w.value,class:qo("track",{vertical:e.vertical}),onTouchstartPassive:I,onTouchend:z,onTouchcancel:z},[null==(o=n.default)?void 0:o.call(n)]),n.indicator?n.indicator({active:b.value,total:p.value}):e.showIndicators&&p.value>1?t.createVNode("div",{class:qo("indicators",{vertical:e.vertical})},[Array(p.value).fill("").map(L)]):void 0])}}})),[_o,Jo]=Ee("tabs");var Qo=t.defineComponent({name:_o,props:{count:x(Number),inited:Boolean,animated:Boolean,duration:x(y),swipeable:Boolean,lazyRender:Boolean,currentIndex:x(Number)},emits:["change"],setup(e,{emit:o,slots:a}){const n=t.ref(),r=e=>o("change",e),l=()=>{var o;const l=null==(o=a.default)?void 0:o.call(a);return e.animated||e.swipeable?t.createVNode(Ko,{ref:n,loop:!1,class:Jo("track"),duration:1e3*+e.duration,touchable:e.swipeable,lazyRender:e.lazyRender,showIndicators:!1,onChange:r},{default:()=>[l]}):l},i=t=>{const o=n.value;o&&o.state.active!==t&&o.swipeTo(t,{immediate:!e.inited})};return t.watch((()=>e.currentIndex),i),t.onMounted((()=>{i(e.currentIndex)})),nt({swipeRef:n}),()=>t.createVNode("div",{class:Jo("content",{animated:e.animated||e.swipeable})},[l()])}});const[ea,ta]=Ee("tabs"),oa={type:k("line"),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:C(0),duration:C(.3),animated:Boolean,ellipsis:w,swipeable:Boolean,scrollspy:Boolean,offsetTop:C(0),background:String,lazyRender:w,showHeader:w,lineWidth:y,lineHeight:y,beforeChange:Function,swipeThreshold:C(5),titleActiveColor:String,titleInactiveColor:String},aa=Symbol(ea);var na=t.defineComponent({name:ea,props:oa,emits:["change","scroll","rendered","clickTab","update:active"],setup(e,{emit:o,slots:a}){let n,r,l,i,c;const d=t.ref(),u=t.ref(),p=t.ref(),v=t.ref(),m=Ro(),f=K(d),[h,g]=Fo(),{children:b,linkChildren:y}=E(aa),w=t.reactive({inited:!1,position:"",lineStyle:{},currentIndex:-1}),x=t.computed((()=>b.length>+e.swipeThreshold||!e.ellipsis||e.shrink)),V=t.computed((()=>({borderColor:e.color,background:e.background}))),N=(e,t)=>{var o;return null!=(o=e.name)?o:t},C=t.computed((()=>{const e=b[w.currentIndex];if(e)return N(e,w.currentIndex)})),k=t.computed((()=>be(e.offsetTop))),S=t.computed((()=>e.sticky?k.value+n:0)),P=t=>{const o=u.value,a=h.value;if(!(x.value&&o&&a&&a[w.currentIndex]))return;const n=a[w.currentIndex].$el,r=n.offsetLeft-(o.offsetWidth-n.offsetWidth)/2;i&&i(),i=function(e,t,o){let a,n=0;const r=e.scrollLeft,l=0===o?1:Math.round(1e3*o/16);let i=r;return function o(){i+=(t-r)/l,e.scrollLeft=i,++n<l&&(a=T(o))}(),function(){B(a)}}(o,r,t?0:+e.duration)},D=()=>{const o=w.inited;t.nextTick((()=>{const t=h.value;if(!t||!t[w.currentIndex]||"line"!==e.type||ce(d.value))return;const a=t[w.currentIndex].$el,{lineWidth:n,lineHeight:r}=e,l=a.offsetLeft+a.offsetWidth/2,i={width:ve(n),backgroundColor:e.color,transform:`translateX(${l}px) translateX(-50%)`};if(o&&(i.transitionDuration=`${e.duration}s`),s(r)){const e=ve(r);i.height=e,i.borderRadius=e}w.lineStyle=i}))},A=(t,a)=>{const n=(e=>{const t=e<w.currentIndex?-1:1;for(;e>=0&&e<b.length;){if(!b[e].disabled)return e;e+=t}})(t);if(!s(n))return;const r=b[n],i=N(r,n),c=null!==w.currentIndex;w.currentIndex!==n&&(w.currentIndex=n,a||P(),D()),i!==e.active&&(o("update:active",i),c&&o("change",i,r.title)),l&&!e.scrollspy&&ae(Math.ceil(ne(d.value)-k.value))},I=(e,t)=>{const o=b.find(((t,o)=>N(t,o)===e)),a=o?b.indexOf(o):0;A(a,t)},z=(t=!1)=>{if(e.scrollspy){const o=b[w.currentIndex].$el;if(o&&f.value){const a=ne(o,f.value)-S.value;r=!0,c&&c(),c=function(e,t,o,a){let n,r=ee(e);const l=r<t,i=0===o?1:Math.round(1e3*o/16),s=(t-r)/i;return function o(){r+=s,(l&&r>t||!l&&r<t)&&(r=t),te(e,r),l&&r<t||!l&&r>t?n=T(o):a&&(n=T(a))}(),function(){B(n)}}(f.value,a,t?0:+e.duration,(()=>{r=!1}))}}},L=(t,a,n)=>{const{title:r,disabled:l}=b[a],i=N(b[a],a);l||(Xe(e.beforeChange,{args:[i],done:()=>{A(a),z()}}),lt(t)),o("clickTab",{name:i,title:r,event:n,disabled:l})},$=e=>{l=e.isFixed,o("scroll",e)},M=()=>{if("line"===e.type&&b.length)return t.createVNode("div",{class:ta("line"),style:w.lineStyle},null)},R=()=>{var o,n,r;const{type:l,border:i,sticky:s}=e,c=[t.createVNode("div",{ref:s?void 0:p,class:[ta("wrap"),{[je]:"line"===l&&i}]},[t.createVNode("div",{ref:u,role:"tablist",class:ta("nav",[l,{shrink:e.shrink,complete:x.value}]),style:V.value,"aria-orientation":"horizontal"},[null==(o=a["nav-left"])?void 0:o.call(a),b.map((e=>e.renderTitle(L))),M(),null==(n=a["nav-right"])?void 0:n.call(a)])]),null==(r=a["nav-bottom"])?void 0:r.call(a)];return s?t.createVNode("div",{ref:p},[c]):c},F=()=>{D(),t.nextTick((()=>{var e,t;P(!0),null==(t=null==(e=v.value)?void 0:e.swipeRef.value)||t.resize()}))};t.watch((()=>[e.color,e.duration,e.lineWidth,e.lineHeight]),D),t.watch(de,F),t.watch((()=>e.active),(e=>{e!==C.value&&I(e)})),t.watch((()=>b.length),(()=>{w.inited&&(I(e.active),D(),t.nextTick((()=>{P(!0)})))}));return nt({resize:F,scrollTo:e=>{t.nextTick((()=>{I(e),z(!0)}))}}),t.onActivated(D),Ke(D),H((()=>{I(e.active,!0),t.nextTick((()=>{w.inited=!0,p.value&&(n=O(p.value).height),P(!0)}))})),Ho(d,D),j("scroll",(()=>{if(e.scrollspy&&!r){const e=(()=>{for(let e=0;e<b.length;e++){const{top:t}=O(b[e].$el);if(t>S.value)return 0===e?0:e-1}return b.length-1})();A(e)}}),{target:f,passive:!0}),y({id:m,props:e,setLine:D,scrollable:x,onRendered:(e,t)=>o("rendered",e,t),currentName:C,setTitleRefs:g,scrollIntoView:P}),()=>t.createVNode("div",{ref:d,class:ta([e.type])},[e.showHeader?e.sticky?t.createVNode(Yo,{container:d.value,offsetTop:k.value,onScroll:$},{default:()=>[R()]}):R():null,t.createVNode(Qo,{ref:v,count:b.length,inited:w.inited,animated:e.animated,duration:e.duration,swipeable:e.swipeable,lazyRender:e.lazyRender,currentIndex:w.currentIndex,onChange:A},{default:()=>{var e;return[null==(e=a.default)?void 0:e.call(a)]}})])}});const ra=Symbol(),[la,ia]=Ee("tab"),sa=t.defineComponent({name:la,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:y,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:w},setup(e,{slots:o}){const a=t.computed((()=>{const t={},{type:o,color:a,disabled:n,isActive:r,activeColor:l,inactiveColor:i}=e;a&&"card"===o&&(t.borderColor=a,n||(r?t.backgroundColor=a:t.color=a));const s=r?l:i;return s&&(t.color=s),t})),n=()=>{const a=t.createVNode("span",{class:ia("text",{ellipsis:!e.scrollable})},[o.title?o.title():e.title]);return e.dot||s(e.badge)&&""!==e.badge?t.createVNode(ut,{dot:e.dot,content:e.badge,showZero:e.showZeroBadge},{default:()=>[a]}):a};return()=>t.createVNode("div",{id:e.id,role:"tab",class:[ia([e.type,{grow:e.scrollable&&!e.shrink,shrink:e.shrink,active:e.isActive,disabled:e.disabled}])],style:a.value,tabindex:e.disabled?void 0:e.isActive?0:-1,"aria-selected":e.isActive,"aria-disabled":e.disabled||void 0,"aria-controls":e.controls,"data-allow-mismatch":"attribute"},[n()])}}),[ca,da]=Ee("swipe-item");const ua=qe(t.defineComponent({name:ca,setup(e,{slots:o}){let a;const n=t.reactive({offset:0,inited:!1,mounted:!1}),{parent:r,index:l}=A(Zo);if(!r)return;const i=t.computed((()=>{const e={},{vertical:t}=r.props;return r.size.value&&(e[t?"height":"width"]=`${r.size.value}px`),n.offset&&(e.transform=`translate${t?"Y":"X"}(${n.offset}px)`),e})),s=t.computed((()=>{const{loop:e,lazyRender:t}=r.props;if(!t||a)return!0;if(!n.mounted)return!1;const o=r.activeIndicator.value,i=r.count.value-1,s=0===o&&e?i:o-1,c=o===i&&e?0:o+1;return a=l.value===o||l.value===s||l.value===c,a}));return t.onMounted((()=>{t.nextTick((()=>{n.mounted=!0}))})),nt({setOffset:e=>{n.offset=e}}),()=>{var e;return t.createVNode("div",{class:da(),style:i.value},[s.value?null==(e=o.default)?void 0:e.call(o):null])}}})),[pa,va]=Ee("tab"),ma=r({},rt,{dot:Boolean,name:y,badge:y,title:String,disabled:Boolean,titleClass:b,titleStyle:[String,Object],showZeroBadge:w});const fa=qe(t.defineComponent({name:pa,props:ma,setup(e,{slots:o}){const a=Ro(),n=t.ref(!1),r=t.getCurrentInstance(),{parent:l,index:i}=A(aa);if(!l)return;const s=()=>{var t;return null!=(t=e.name)?t:i.value},c=t.computed((()=>{const o=s()===l.currentName.value;return o&&!n.value&&(n.value=!0,l.props.lazyRender&&t.nextTick((()=>{l.onRendered(s(),e.title)}))),o})),d=t.ref(""),u=t.ref("");t.watchEffect((()=>{const{titleClass:t,titleStyle:o}=e;d.value=t?$o(t):"",u.value=o&&"string"!=typeof o?function(e){if(!e)return"";if(Bo(e))return e;let t="";for(const o in e){const a=e[o];(Bo(a)||"number"==typeof a)&&(t+=`${o.startsWith("--")?o:Oo(o)}:${a};`)}return t}(Ao(o)):o}));const p=t.ref(!c.value);return t.watch(c,(e=>{e?p.value=!1:P((()=>{p.value=!0}))})),t.watch((()=>e.title),(()=>{l.setLine(),l.scrollIntoView()})),t.provide(ra,c),nt({id:a,renderTitle:n=>t.createVNode(sa,t.mergeProps({key:a,id:`${l.id}-${i.value}`,ref:l.setTitleRefs(i.value),style:u.value,class:d.value,isActive:c.value,controls:a,scrollable:l.scrollable.value,activeColor:l.props.titleActiveColor,inactiveColor:l.props.titleInactiveColor,onClick:e=>n(r.proxy,i.value,e)},f(l.props,["type","color","shrink"]),f(e,["dot","badge","title","disabled","showZeroBadge"])),{title:o.title})}),()=>{var e;const r=`${l.id}-${i.value}`,{animated:s,swipeable:d,scrollspy:u,lazyRender:v}=l.props;if(!o.default&&!s)return;const m=u||c.value;if(s||d)return t.createVNode(ua,{id:a,role:"tabpanel",class:va("panel-wrapper",{inactive:p.value}),tabindex:c.value?0:-1,"aria-hidden":!c.value,"aria-labelledby":r,"data-allow-mismatch":"attribute"},{default:()=>{var e;return[t.createVNode("div",{class:va("panel")},[null==(e=o.default)?void 0:e.call(o)])]}});const f=n.value||u||!v?null==(e=o.default)?void 0:e.call(o):null;return t.withDirectives(t.createVNode("div",{id:a,role:"tabpanel",class:va("panel"),tabindex:m?0:-1,"aria-labelledby":r,"data-allow-mismatch":"attribute"},[f]),[[t.vShow,m]])}}})),ha=qe(na),[ga,ba]=Ee("picker-group"),ya=Symbol(ga),wa=r({tabs:V(),activeTab:C(0),nextStepText:String,showToolbar:w},Vo);var xa=t.defineComponent({name:ga,props:wa,emits:["confirm","cancel","update:activeTab"],setup(e,{emit:o,slots:a}){const n=So((()=>e.activeTab),(e=>o("update:activeTab",e))),{children:r,linkChildren:l}=E(ya);l();const i=()=>+n.value<e.tabs.length-1&&e.nextStepText,s=()=>{i()?n.value=+n.value+1:o("confirm",r.map((e=>e.confirm())))},c=()=>o("cancel");return()=>{var o,r;let l=null==(r=null==(o=a.default)?void 0:o.call(a))?void 0:r.filter((e=>e.type!==t.Comment)).map((e=>e.type===t.Fragment?e.children:e));l&&(l=l.reduce(((e,t)=>e.concat(t)),[]));const d=i()?e.nextStepText:e.confirmButtonText;return t.createVNode("div",{class:ba()},[e.showToolbar?t.createVNode(ko,{title:e.title,cancelButtonText:e.cancelButtonText,confirmButtonText:d,onConfirm:s,onCancel:c},f(a,No)):null,t.createVNode(ha,{active:n.value,"onUpdate:active":e=>n.value=e,class:ba("tabs"),shrink:!0,animated:!0,lazyRender:!1},{default:()=>[e.tabs.map(((e,o)=>t.createVNode(fa,{title:e,titleClass:ba("tab-title")},{default:()=>[null==l?void 0:l[o]]})))]})])}}});const Va=r({loading:Boolean,readonly:Boolean,allowHtml:Boolean,optionHeight:C(44),showToolbar:w,swipeDuration:C(1e3),visibleOptionNum:C(6)},Vo),Na=r({},Va,{columns:V(),modelValue:V(),toolbarPosition:k("top"),columnsFieldNames:Object});var Ca=t.defineComponent({name:co,props:Na,emits:["confirm","cancel","change","scrollInto","clickOption","update:modelValue"],setup(e,{emit:o,slots:a}){const n=t.ref(),l=t.ref(e.modelValue.slice(0)),{parent:i}=A(ya),{children:c,linkChildren:d}=E(yo);d();const u=t.computed((()=>function(e){return r({text:"text",value:"value",children:"children"},e)}(e.columnsFieldNames))),p=t.computed((()=>be(e.optionHeight))),v=t.computed((()=>function(e,t){const o=e[0];if(o){if(Array.isArray(o))return"multiple";if(t.children in o)return"cascade"}return"default"}(e.columns,u.value))),m=t.computed((()=>{const{columns:t}=e;switch(v.value){case"multiple":return t;case"cascade":return function(e,t,o){const a=[];let n={[t.children]:e},r=0;for(;n&&n[t.children];){const e=n[t.children],l=o.value[r];n=s(l)?ho(e,l,t):void 0,!n&&e.length&&(n=ho(e,vo(e)[t.value],t)),r++,a.push(e)}return a}(t,u.value,l);default:return[t]}})),g=t.computed((()=>m.value.some((e=>e.length)))),b=t.computed((()=>m.value.map(((e,t)=>ho(e,l.value[t],u.value))))),y=t.computed((()=>m.value.map(((e,t)=>e.findIndex((e=>e[u.value.value]===l.value[t])))))),w=(e,t)=>{if(l.value[e]!==t){const o=l.value.slice(0);o[e]=t,l.value=o}},x=()=>({selectedValues:l.value.slice(0),selectedOptions:b.value,selectedIndexes:y.value}),V=()=>{c.forEach((e=>e.stopMomentum()));const e=x();return t.nextTick((()=>{o("confirm",e)})),e},N=()=>o("cancel",x()),C=()=>m.value.map(((n,i)=>t.createVNode(wo,{value:l.value[i],fields:u.value,options:n,readonly:e.readonly,allowHtml:e.allowHtml,optionHeight:p.value,swipeDuration:e.swipeDuration,visibleOptionNum:e.visibleOptionNum,onChange:e=>((e,a)=>{w(a,e),"cascade"===v.value&&l.value.forEach(((e,t)=>{const o=m.value[t];fo(o,e,u.value)||w(t,o.length?o[0][u.value.value]:void 0)})),t.nextTick((()=>{o("change",r({columnIndex:a},x()))}))})(e,i),onClickOption:e=>((e,t)=>{const a={columnIndex:t,currentOption:e};o("clickOption",r(x(),a)),o("scrollInto",a)})(e,i),onScrollInto:e=>{o("scrollInto",{currentOption:e,columnIndex:i})}},{option:a.option}))),k=e=>{if(g.value){const o={height:`${p.value}px`},a={backgroundSize:`100% ${(e-p.value)/2}px`};return[t.createVNode("div",{class:uo("mask"),style:a},null),t.createVNode("div",{class:[We,uo("frame")],style:o},null)]}},S=()=>{const o=p.value*+e.visibleOptionNum,r={height:`${o}px`};return e.loading||g.value||!a.empty?t.createVNode("div",{ref:n,class:uo("columns"),style:r},[C(),k(o)]):a.empty()},T=()=>{if(e.showToolbar&&!i)return t.createVNode(ko,t.mergeProps(f(e,Co),{onConfirm:V,onCancel:N}),f(a,No))};let B;t.watch(m,(e=>{e.forEach(((e,t)=>{e.length&&!fo(e,l.value[t],u.value)&&w(t,vo(e)[u.value.value])}))}),{immediate:!0}),t.watch((()=>e.modelValue),(e=>{h(e,l.value)||h(e,B)||(l.value=e.slice(0),B=e.slice(0))}),{deep:!0}),t.watch(l,(t=>{h(t,e.modelValue)||(B=t.slice(0),o("update:modelValue",B))}),{immediate:!0}),j("touchmove",se,{target:n});return nt({confirm:V,getSelectedOptions:()=>b.value}),()=>{var o,n;return t.createVNode("div",{class:uo()},["top"===e.toolbarPosition?T():null,e.loading?t.createVNode(Pt,{class:uo("loading")},null):null,null==(o=a["columns-top"])?void 0:o.call(a),S(),null==(n=a["columns-bottom"])?void 0:n.call(a),"bottom"===e.toolbarPosition?T():null])}}});const ka="000000",Sa=["title","cancel","confirm","toolbar","columns-top","columns-bottom"],Ta=["title","loading","readonly","optionHeight","swipeDuration","visibleOptionNum","cancelButtonText","confirmButtonText"],Ba=(e="",t=ka,o=void 0)=>({text:e,value:t,children:o});function Pa({areaList:e,columnsNum:t,columnsPlaceholder:o}){const{city_list:a={},county_list:n={},province_list:r={}}=e,l=+t>1,i=+t>2,s=new Map;Object.keys(r).forEach((e=>{s.set(e.slice(0,2),Ba(r[e],e,(()=>{if(l)return o.length>1?[Ba(o[1],ka,i?[]:void 0)]:[]})()))}));const c=new Map;if(l){const e=()=>{if(i)return o.length>2?[Ba(o[2])]:[]};Object.keys(a).forEach((t=>{const o=Ba(a[t],t,e());c.set(t.slice(0,4),o);const n=s.get(t.slice(0,2));n&&n.children.push(o)}))}i&&Object.keys(n).forEach((e=>{const t=c.get(e.slice(0,4));t&&t.children.push(Ba(n[e],e))}));const d=Array.from(s.values());if(o.length){const e=i?[Ba(o[2])]:void 0,t=l?[Ba(o[1],ka,e)]:void 0;d.unshift(Ba(o[0],ka,t))}return d}const Da=qe(Ca),[Oa,Aa]=Ee("area"),Ia=r({},f(Va,Ta),{modelValue:String,columnsNum:C(3),columnsPlaceholder:V(),areaList:{type:Object,default:()=>({})}});const za=qe(t.defineComponent({name:Oa,props:Ia,emits:["change","confirm","cancel","update:modelValue"],setup(e,{emit:o,slots:a}){const n=t.ref([]),r=t.ref(),l=t.computed((()=>Pa(e))),i=(...e)=>o("change",...e),s=(...e)=>o("cancel",...e),c=(...e)=>o("confirm",...e);return t.watch(n,(t=>{const a=t.length?t[t.length-1]:"";a&&a!==e.modelValue&&o("update:modelValue",a)}),{deep:!0}),t.watch((()=>e.modelValue),(t=>{if(t){t!==(n.value.length?n.value[n.value.length-1]:"")&&(n.value=[`${t.slice(0,2)}0000`,`${t.slice(0,4)}00`,t].slice(0,+e.columnsNum))}else n.value=[]}),{immediate:!0}),nt({confirm:()=>{var e;return null==(e=r.value)?void 0:e.confirm()},getSelectedOptions:()=>{var e;return(null==(e=r.value)?void 0:e.getSelectedOptions())||[]}}),()=>t.createVNode(Da,t.mergeProps({ref:r,modelValue:n.value,"onUpdate:modelValue":e=>n.value=e,class:Aa(),columns:l.value,onChange:i,onCancel:s,onConfirm:c},f(e,Ta)),f(a,Sa))}})),[Ea,La]=Ee("cell"),$a={tag:k("div"),icon:String,size:String,title:y,value:y,label:y,center:Boolean,isLink:Boolean,border:w,iconPrefix:String,valueClass:b,labelClass:b,titleClass:b,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},Ma=r({},$a,rt);const Ra=qe(t.defineComponent({name:Ea,props:Ma,setup(e,{slots:o}){const a=it(),n=()=>{if(o.label||s(e.label))return t.createVNode("div",{class:[La("label"),e.labelClass]},[o.label?o.label():e.label])},r=()=>{var a;if(o.title||s(e.title)){const r=null==(a=o.title)?void 0:a.call(o);if(Array.isArray(r)&&0===r.length)return;return t.createVNode("div",{class:[La("title"),e.titleClass],style:e.titleStyle},[r||t.createVNode("span",null,[e.title]),n()])}},l=()=>{const a=o.value||o.default;if(a||s(e.value))return t.createVNode("div",{class:[La("value"),e.valueClass]},[a?a():t.createVNode("span",null,[e.value])])},i=()=>{if(o["right-icon"])return o["right-icon"]();if(e.isLink){const o=e.arrowDirection&&"right"!==e.arrowDirection?`arrow-${e.arrowDirection}`:"arrow";return t.createVNode(Vt,{name:o,class:La("right-icon")},null)}};return()=>{var n;const{tag:s,size:c,center:d,border:u,isLink:p,required:v}=e,m=null!=(n=e.clickable)?n:p,f={center:d,required:!!v,clickable:m,borderless:!u};return c&&(f[c]=!!c),t.createVNode(s,{class:La(f),role:m?"button":void 0,tabindex:m?0:void 0,onClick:a},{default:()=>{var a;return[o.icon?o.icon():e.icon?t.createVNode(Vt,{name:e.icon,class:La("left-icon"),classPrefix:e.iconPrefix},null):void 0,r(),l(),i(),null==(a=o.extra)?void 0:a.call(o)]}})}}})),[Fa,Ha]=Ee("form"),ja={colon:Boolean,disabled:Boolean,readonly:Boolean,required:[Boolean,String],showError:Boolean,labelWidth:y,labelAlign:String,inputAlign:String,scrollToError:Boolean,scrollToErrorPosition:String,validateFirst:Boolean,submitOnEnter:w,showErrorMessage:w,errorMessageAlign:String,validateTrigger:{type:[String,Array],default:"onBlur"}};const Wa=qe(t.defineComponent({name:Fa,props:ja,emits:["submit","failed"],setup(e,{emit:o,slots:a}){const{children:n,linkChildren:r}=E(Ye),l=e=>e?n.filter((t=>e.includes(t.name))):n,i=t=>{return"string"==typeof t?(e=>{const t=n.find((t=>t.name===e));return t?new Promise(((e,o)=>{t.validate().then((t=>{t?o(t):e()}))})):Promise.reject()})(t):e.validateFirst?(o=t,new Promise(((e,t)=>{const a=[];l(o).reduce(((e,t)=>e.then((()=>{if(!a.length)return t.validate().then((e=>{e&&a.push(e)}))}))),Promise.resolve()).then((()=>{a.length?t(a):e()}))}))):(e=>new Promise(((t,o)=>{const a=l(e);Promise.all(a.map((e=>e.validate()))).then((e=>{(e=e.filter(Boolean)).length?o(e):t()}))})))(t);var o},s=(e,t)=>{n.some((o=>o.name===e&&(o.$el.scrollIntoView(t),!0)))},c=()=>n.reduce(((e,t)=>(void 0!==t.name&&(e[t.name]=t.formValue.value),e)),{}),d=()=>{const t=c();i().then((()=>o("submit",t))).catch((a=>{o("failed",{values:t,errors:a});const{scrollToError:n,scrollToErrorPosition:r}=e;n&&a[0].name&&s(a[0].name,r?{block:r}:void 0)}))},u=e=>{se(e),d()};return r({props:e}),nt({submit:d,validate:i,getValues:c,scrollToField:s,resetValidation:e=>{"string"==typeof e&&(e=[e]);l(e).forEach((e=>{e.resetValidation()}))},getValidationStatus:()=>n.reduce(((e,t)=>(e[t.name]=t.getValidationStatus(),e)),{})}),()=>{var e;return t.createVNode("form",{class:Ha(),onSubmit:u},[null==(e=a.default)?void 0:e.call(a)])}}}));function Ua(e){return Array.isArray(e)?!e.length:0!==e&&!e}function Ya(e,t){const{message:o}=t;return c(o)?o(e,t):o||""}function Xa({target:e}){e.composing=!0}function qa({target:e}){e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}function Ga(e){return[...e].length}function Za(e,t){return[...e].slice(0,t).join("")}const[Ka,_a]=Ee("field"),Ja={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:y,max:Number,min:Number,formatter:Function,clearIcon:k("clear"),modelValue:C(""),inputAlign:String,placeholder:String,autocomplete:String,autocapitalize:String,autocorrect:String,errorMessage:String,enterkeyhint:String,clearTrigger:k("focus"),formatTrigger:k("onChange"),spellcheck:{type:Boolean,default:null},error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},inputmode:String},Qa=r({},$a,Ja,{rows:y,type:k("text"),rules:Array,autosize:[Boolean,Object],labelWidth:y,labelClass:b,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}});const en=qe(t.defineComponent({name:Ka,props:Qa,emits:["blur","focus","clear","keypress","clickInput","endValidate","startValidate","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:o,slots:a}){const n=Ro(),r=t.reactive({status:"unvalidated",focused:!1,validateMessage:""}),l=t.ref(),c=t.ref(),u=t.ref(),{parent:p}=A(Ye),v=()=>{var t;return String(null!=(t=e.modelValue)?t:"")},m=t=>s(e[t])?e[t]:p&&s(p.props[t])?p.props[t]:void 0,f=t.computed((()=>{const t=m("readonly");if(e.clearable&&!t){const t=""!==v(),o="always"===e.clearTrigger||"focus"===e.clearTrigger&&r.focused;return t&&o}return!1})),h=t.computed((()=>u.value&&a.input?u.value():e.modelValue)),b=t.computed((()=>{var t;const o=m("required");return"auto"===o?null==(t=e.rules)?void 0:t.some((e=>e.required)):o})),y=e=>e.reduce(((e,t)=>e.then((()=>{if("failed"===r.status)return;let{value:e}=h;if(t.formatter&&(e=t.formatter(e,t)),!function(e,t){if(Ua(e)){if(t.required)return!1;if(!1===t.validateEmpty)return!0}return!(t.pattern&&!t.pattern.test(String(e)))}(e,t))return r.status="failed",void(r.validateMessage=Ya(e,t));if(t.validator){if(Ua(e)&&!1===t.validateEmpty)return;return function(e,t){return new Promise((o=>{const a=t.validator(e,t);d(a)?a.then(o):o(a)}))}(e,t).then((o=>{o&&"string"==typeof o?(r.status="failed",r.validateMessage=o):!1===o&&(r.status="failed",r.validateMessage=Ya(e,t))}))}}))),Promise.resolve()),w=()=>{r.status="unvalidated",r.validateMessage=""},x=()=>o("endValidate",{status:r.status,message:r.validateMessage}),V=(t=e.rules)=>new Promise((a=>{w(),t?(o("startValidate"),y(t).then((()=>{"failed"===r.status?(a({name:e.name,message:r.validateMessage}),x()):(r.status="passed",a(),x())}))):a()})),N=t=>{if(p&&e.rules){const{validateTrigger:o}=p.props,a=g(o).includes(t),n=e.rules.filter((e=>e.trigger?g(e.trigger).includes(t):a));n.length&&V(n)}},C=(t,a="onChange")=>{var n,i;const c=t;t=(t=>{var o;const{maxlength:a}=e;if(s(a)&&Ga(t)>+a){const e=v();if(e&&Ga(e)===+a)return e;const n=null==(o=l.value)?void 0:o.selectionEnd;if(r.focused&&n){const e=[...t],o=e.length-+a;return e.splice(n-o,o),e.join("")}return Za(t,+a)}return t})(t);const d=Ga(c)-Ga(t);if("number"===e.type||"digit"===e.type){const o="number"===e.type;if(t=Ce(t,o,o),"onBlur"===a&&""!==t&&(void 0!==e.min||void 0!==e.max)){t=Ve(+t,null!=(n=e.min)?n:-1/0,null!=(i=e.max)?i:1/0).toString()}}let u=0;if(e.formatter&&a===e.formatTrigger){const{formatter:o,maxlength:a}=e;if(t=o(t),s(a)&&Ga(t)>+a&&(t=Za(t,+a)),l.value&&r.focused){const{selectionEnd:e}=l.value,t=Za(c,e);u=Ga(o(t))-Ga(t)}}if(l.value&&l.value.value!==t)if(r.focused){let{selectionStart:e,selectionEnd:o}=l.value;if(l.value.value=t,s(e)&&s(o)){const a=Ga(t);d?(e-=d,o-=d):u&&(e+=u,o+=u),l.value.setSelectionRange(Math.min(e,a),Math.min(o,a))}}else l.value.value=t;t!==e.modelValue&&o("update:modelValue",t)},k=e=>{e.target.composing||C(e.target.value)},S=()=>{var e;return null==(e=l.value)?void 0:e.blur()},T=()=>{var e;return null==(e=l.value)?void 0:e.focus()},B=()=>{const t=l.value;"textarea"===e.type&&e.autosize&&t&&function(e,t){const o=oe();e.style.height="auto";let a=e.scrollHeight;if(i(t)){const{maxHeight:e,minHeight:o}=t;void 0!==e&&(a=Math.min(a,e)),void 0!==o&&(a=Math.max(a,o))}a&&(e.style.height=`${a}px`,ae(o))}(t,e.autosize)},P=e=>{r.focused=!0,o("focus",e),t.nextTick(B),m("readonly")&&S()},D=e=>{r.focused=!1,C(v(),"onBlur"),o("blur",e),m("readonly")||(N("onBlur"),t.nextTick(B),le())},O=e=>o("clickInput",e),I=e=>o("clickLeftIcon",e),z=e=>o("clickRightIcon",e),E=t.computed((()=>"boolean"==typeof e.error?e.error:!(!p||!p.props.showError||"failed"!==r.status)||void 0)),L=t.computed((()=>{const e=m("labelWidth"),t=m("labelAlign");if(e&&"top"!==t)return{width:ve(e)}})),$=t=>{if(13===t.keyCode){p&&p.props.submitOnEnter||"textarea"===e.type||se(t),"search"===e.type&&S()}o("keypress",t)},M=()=>e.id||`${n}-input`,R=()=>{const o=_a("control",[m("inputAlign"),{error:E.value,custom:!!a.input,"min-height":"textarea"===e.type&&!e.autosize}]);if(a.input)return t.createVNode("div",{class:o,onClick:O},[a.input()]);const r={id:M(),ref:l,name:e.name,rows:void 0!==e.rows?+e.rows:void 0,class:o,disabled:m("disabled"),readonly:m("readonly"),autofocus:e.autofocus,placeholder:e.placeholder,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,enterkeyhint:e.enterkeyhint,spellcheck:e.spellcheck,"aria-labelledby":e.label?`${n}-label`:void 0,"data-allow-mismatch":"attribute",onBlur:D,onFocus:P,onInput:k,onClick:O,onChange:qa,onKeypress:$,onCompositionend:qa,onCompositionstart:Xa};return"textarea"===e.type?t.createVNode("textarea",t.mergeProps(r,{inputmode:e.inputmode}),null):t.createVNode("input",t.mergeProps((i=e.type,s=e.inputmode,"number"===i&&(i="text",null!=s||(s="decimal")),"digit"===i&&(i="tel",null!=s||(s="numeric")),{type:i,inputmode:s}),r),null);var i,s},F=()=>{const o=a["right-icon"];if(e.rightIcon||o)return t.createVNode("div",{class:_a("right-icon"),onClick:z},[o?o():t.createVNode(Vt,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])},H=()=>{if(e.showWordLimit&&e.maxlength){const o=Ga(v());return t.createVNode("div",{class:_a("word-limit")},[t.createVNode("span",{class:_a("word-num")},[o]),t.createTextVNode("/"),e.maxlength])}},W=()=>{if(p&&!1===p.props.showErrorMessage)return;const o=e.errorMessage||r.validateMessage;if(o){const e=a["error-message"],n=m("errorMessageAlign");return t.createVNode("div",{class:_a("error-message",n)},[e?e({message:o}):o])}},U=()=>[t.createVNode("div",{class:_a("body")},[R(),f.value&&t.createVNode(Vt,{ref:c,name:e.clearIcon,class:_a("clear")},null),F(),a.button&&t.createVNode("div",{class:_a("button")},[a.button()])]),H(),W()];return nt({blur:S,focus:T,validate:V,formValue:h,resetValidation:w,getValidationStatus:()=>r.status}),t.provide(J,{customValue:u,resetValidation:w,validateWithTrigger:N}),t.watch((()=>e.modelValue),(()=>{C(v()),w(),N("onChange"),t.nextTick(B)})),t.onMounted((()=>{C(v(),e.formatTrigger),t.nextTick(B)})),j("touchstart",(e=>{se(e),o("update:modelValue",""),o("clear",e)}),{target:t.computed((()=>{var e;return null==(e=c.value)?void 0:e.$el}))}),()=>{const o=m("disabled"),r=m("labelAlign"),l=(()=>{const o=a["left-icon"];if(e.leftIcon||o)return t.createVNode("div",{class:_a("left-icon"),onClick:I},[o?o():t.createVNode(Vt,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])})();return t.createVNode(Ra,{size:e.size,class:_a({error:E.value,disabled:o,[`label-${r}`]:r}),center:e.center,border:e.border,isLink:e.isLink,clickable:e.clickable,titleStyle:L.value,valueClass:_a("value"),titleClass:[_a("label",[r,{required:b.value}]),e.labelClass],arrowDirection:e.arrowDirection},{icon:l&&"top"!==r?()=>l:null,title:()=>{const o=(()=>{const o=m("labelWidth"),r=m("labelAlign"),l=m("colon")?":":"";return a.label?[a.label(),l]:e.label?t.createVNode("label",{id:`${n}-label`,for:a.input?void 0:M(),"data-allow-mismatch":"attribute",onClick:e=>{se(e),T()},style:"top"===r&&o?{width:ve(o)}:void 0},[e.label+l]):void 0})();return"top"===r?[l,o].filter(Boolean):o||[]},value:U,extra:a.extra})}}}));let tn=0;const[on,an]=Ee("toast"),nn=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"],rn={icon:String,show:Boolean,type:k("text"),overlay:Boolean,message:y,iconSize:y,duration:N(2e3),position:k("middle"),teleport:[String,Object],wordBreak:String,className:b,iconPrefix:String,transition:k("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:b,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean,zIndex:y};var ln=t.defineComponent({name:on,props:rn,emits:["update:show"],setup(e,{emit:o,slots:a}){let n,r=!1;const l=()=>{const t=e.show&&e.forbidClick;r!==t&&(r=t,r?(tn||document.body.classList.add("van-toast--unclickable"),tn++):tn&&(tn--,tn||document.body.classList.remove("van-toast--unclickable")))},i=e=>o("update:show",e),c=()=>{e.closeOnClick&&i(!1)},d=()=>clearTimeout(n),u=()=>{const{icon:o,type:a,iconSize:n,iconPrefix:r,loadingType:l}=e;return o||"success"===a||"fail"===a?t.createVNode(Vt,{name:o||a,size:n,class:an("icon"),classPrefix:r},null):"loading"===a?t.createVNode(Pt,{class:an("loading"),size:n,type:l},null):void 0},p=()=>{const{type:o,message:n}=e;return a.message?t.createVNode("div",{class:an("text")},[a.message()]):s(n)&&""!==n?"html"===o?t.createVNode("div",{key:0,class:an("text"),innerHTML:String(n)},null):t.createVNode("div",{class:an("text")},[n]):void 0};return t.watch((()=>[e.show,e.forbidClick]),l),t.watch((()=>[e.show,e.type,e.message,e.duration]),(()=>{d(),e.show&&e.duration>0&&(n=setTimeout((()=>{i(!1)}),e.duration))})),t.onMounted(l),t.onUnmounted(l),()=>t.createVNode(ao,t.mergeProps({class:[an([e.position,"normal"===e.wordBreak?"break-normal":e.wordBreak,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:c,onClosed:d,"onUpdate:show":i},f(e,nn)),{default:()=>[u(),p()]})}});function sn(){const e=t.reactive({show:!1}),o=t=>{e.show=t},a=t=>{r(e,t,{transitionAppear:!0}),o(!0)},n=()=>o(!1);return nt({open:a,close:n,toggle:o}),{open:a,close:n,state:e,toggle:o}}function cn(e){const o=t.createApp(e),a=document.createElement("div");return document.body.appendChild(a),{instance:o.mount(a),unmount(){o.unmount(),document.body.removeChild(a)}}}const dn={icon:"",type:"text",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:"body",iconSize:void 0,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,closeOnClickOverlay:!1};let un=[],pn=!1,vn=r({},dn);const mn=new Map;function fn(e){return i(e)?e:{message:e}}function hn(){if(!un.length||pn){const e=function(){const{instance:e,unmount:o}=cn({setup(){const a=t.ref(""),{open:n,state:r,close:l,toggle:i}=sn(),s=()=>{pn&&(un=un.filter((t=>t!==e)),o())};return t.watch(a,(e=>{r.message=e})),t.getCurrentInstance().render=()=>{const e={onClosed:s,"onUpdate:show":i};return t.createVNode(ln,t.mergeProps(r,e),null)},{open:n,close:l,message:a}}});return e}();un.push(e)}return un[un.length-1]}function gn(e={}){if(!l)return{};const t=hn(),o=fn(e);return t.open(r({},vn,mn.get(o.type||vn.type),o)),t}const bn=e=>t=>gn(r({type:e},fn(t))),yn=bn("loading"),wn=bn("success"),xn=bn("fail");const Vn=qe(ln),[Nn,Cn]=Ee("switch"),kn={size:y,loading:Boolean,disabled:Boolean,modelValue:b,activeColor:String,inactiveColor:String,activeValue:{type:b,default:!0},inactiveValue:{type:b,default:!1}};const Sn=qe(t.defineComponent({name:Nn,props:kn,emits:["change","update:modelValue"],setup(e,{emit:o,slots:a}){const n=()=>e.modelValue===e.activeValue,r=()=>{if(!e.disabled&&!e.loading){const t=n()?e.inactiveValue:e.activeValue;o("update:modelValue",t),o("change",t)}},l=()=>{if(e.loading){const o=n()?e.activeColor:e.inactiveColor;return t.createVNode(Pt,{class:Cn("loading"),color:o},null)}if(a.node)return a.node()};return Q((()=>e.modelValue)),()=>{var o;const{size:i,loading:s,disabled:c,activeColor:d,inactiveColor:u}=e,p=n(),v={fontSize:ve(i),backgroundColor:p?d:u};return t.createVNode("div",{role:"switch",class:Cn({on:p,loading:s,disabled:c}),style:v,tabindex:c?void 0:0,"aria-checked":p,onClick:r},[t.createVNode("div",{class:Cn("node")},[l()]),null==(o=a.background)?void 0:o.call(a)])}}})),[Tn,Bn]=Ee("address-edit-detail"),Pn=Ee("address-edit")[2];var Dn=t.defineComponent({name:Tn,props:{show:Boolean,rows:y,value:String,rules:Array,focused:Boolean,maxlength:y,searchResult:Array,showSearchResult:Boolean},emits:["blur","focus","input","selectSearch"],setup(e,{emit:o}){const a=t.ref(),n=()=>e.focused&&e.searchResult&&e.showSearchResult,r=()=>{if(!n())return;const{searchResult:a}=e;return a.map((e=>t.createVNode(Ra,{clickable:!0,key:(e.name||"")+(e.address||""),icon:"location-o",title:e.name,label:e.address,class:Bn("search-item"),border:!1,onClick:()=>(e=>{o("selectSearch",e),o("input",`${e.address||""} ${e.name||""}`.trim())})(e)},null)))},l=e=>o("blur",e),i=e=>o("focus",e),s=e=>o("input",e);return()=>{if(e.show)return t.createVNode(t.Fragment,null,[t.createVNode(en,{autosize:!0,clearable:!0,ref:a,class:Bn(),rows:e.rows,type:"textarea",rules:e.rules,label:Pn("addressDetail"),border:!n(),maxlength:e.maxlength,modelValue:e.value,placeholder:Pn("addressDetail"),onBlur:l,onFocus:i,"onUpdate:modelValue":s},null),r()])}}});const[On,An,In]=Ee("address-edit"),zn={name:"",tel:"",city:"",county:"",country:"",province:"",areaCode:"",isDefault:!1,addressDetail:""},En={areaList:Object,isSaving:Boolean,isDeleting:Boolean,validator:Function,showArea:w,showDetail:w,showDelete:Boolean,disableArea:Boolean,searchResult:Array,telMaxlength:y,showSetDefault:Boolean,saveButtonText:String,areaPlaceholder:String,deleteButtonText:String,showSearchResult:Boolean,detailRows:C(1),detailMaxlength:C(200),areaColumnsPlaceholder:V(),addressInfo:{type:Object,default:()=>r({},zn)},telValidator:{type:Function,default:p}};const Ln=qe(t.defineComponent({name:On,props:En,emits:["save","focus","change","delete","clickArea","changeArea","changeDetail","selectSearch","changeDefault"],setup(e,{emit:o,slots:a}){const n=t.ref(),l=t.reactive({}),s=t.ref(!1),c=t.ref(!1),d=t.computed((()=>i(e.areaList)&&Object.keys(e.areaList).length)),u=t.computed((()=>{const{province:e,city:t,county:o,areaCode:a}=l;if(a){const a=[e,t,o];return e&&e===t&&a.splice(1,1),a.filter(Boolean).join("/")}return""})),p=t.computed((()=>{var t;return(null==(t=e.searchResult)?void 0:t.length)&&c.value})),v=e=>{c.value="addressDetail"===e,o("focus",e)},m=(e,t)=>{o("change",{key:e,value:t})},f=t.computed((()=>{const{validator:t,telValidator:o}=e,a=(e,o)=>({validator:a=>{if(t){const o=t(e,a);if(o)return o}return!!a||o}});return{name:[a("name",In("nameEmpty"))],tel:[a("tel",In("telInvalid")),{validator:o,message:In("telInvalid")}],areaCode:[a("areaCode",In("areaEmpty"))],addressDetail:[a("addressDetail",In("addressEmpty"))]}})),h=()=>o("save",l),g=e=>{l.addressDetail=e,o("changeDetail",e)},b=e=>{l.province=e[0].text,l.city=e[1].text,l.county=e[2].text},y=({selectedValues:e,selectedOptions:t})=>{e.some((e=>e===ka))?gn(In("areaEmpty")):(s.value=!1,b(t),o("changeArea",t))},w=()=>o("delete",l),x=()=>{setTimeout((()=>{c.value=!1}))},V=()=>{if(e.showSetDefault){const e={"right-icon":()=>t.createVNode(Sn,{modelValue:l.isDefault,"onUpdate:modelValue":e=>l.isDefault=e,onChange:e=>o("changeDefault",e)},null)};return t.withDirectives(t.createVNode(Ra,{center:!0,border:!1,title:In("defaultAddress"),class:An("default")},e),[[t.vShow,!p.value]])}};return nt({setAreaCode:e=>{l.areaCode=e||""},setAddressDetail:e=>{l.addressDetail=e}}),t.watch((()=>e.addressInfo),(e=>{r(l,zn,e),t.nextTick((()=>{var e;const t=null==(e=n.value)?void 0:e.getSelectedOptions();t&&t.every((e=>e&&e.value!==ka))&&b(t)}))}),{deep:!0,immediate:!0}),()=>{const{disableArea:r}=e;return t.createVNode(Wa,{class:An(),onSubmit:h},{default:()=>{var i;return[t.createVNode("div",{class:An("fields")},[t.createVNode(en,{modelValue:l.name,"onUpdate:modelValue":[e=>l.name=e,e=>m("name",e)],clearable:!0,label:In("name"),rules:f.value.name,placeholder:In("name"),onFocus:()=>v("name")},null),t.createVNode(en,{modelValue:l.tel,"onUpdate:modelValue":[e=>l.tel=e,e=>m("tel",e)],clearable:!0,type:"tel",label:In("tel"),rules:f.value.tel,maxlength:e.telMaxlength,placeholder:In("tel"),onFocus:()=>v("tel")},null),t.withDirectives(t.createVNode(en,{readonly:!0,label:In("area"),"is-link":!r,modelValue:u.value,rules:e.showArea?f.value.areaCode:void 0,placeholder:e.areaPlaceholder||In("area"),onFocus:()=>v("areaCode"),onClick:()=>{o("clickArea"),s.value=!r}},null),[[t.vShow,e.showArea]]),t.createVNode(Dn,{show:e.showDetail,rows:e.detailRows,rules:f.value.addressDetail,value:l.addressDetail,focused:c.value,maxlength:e.detailMaxlength,searchResult:e.searchResult,showSearchResult:e.showSearchResult,onBlur:x,onFocus:()=>v("addressDetail"),onInput:g,onSelectSearch:e=>o("selectSearch",e)},null),null==(i=a.default)?void 0:i.call(a)]),V(),t.withDirectives(t.createVNode("div",{class:An("buttons")},[t.createVNode(It,{block:!0,round:!0,type:"primary",text:e.saveButtonText||In("save"),class:An("button"),loading:e.isSaving,nativeType:"submit"},null),e.showDelete&&t.createVNode(It,{block:!0,round:!0,class:An("button"),loading:e.isDeleting,text:e.deleteButtonText||In("delete"),onClick:w},null)]),[[t.vShow,!p.value]]),t.createVNode(ao,{show:s.value,"onUpdate:show":e=>s.value=e,round:!0,teleport:"body",position:"bottom",lazyRender:!1},{default:()=>[t.createVNode(za,{modelValue:l.areaCode,"onUpdate:modelValue":e=>l.areaCode=e,ref:n,loading:!d.value,areaList:e.areaList,columnsPlaceholder:e.areaColumnsPlaceholder,onConfirm:y,onCancel:()=>{s.value=!1}},null)]})]}})}}})),[$n,Mn]=Ee("radio-group"),Rn={shape:String,disabled:Boolean,iconSize:y,direction:String,modelValue:b,checkedColor:String},Fn=Symbol($n);const Hn=qe(t.defineComponent({name:$n,props:Rn,emits:["change","update:modelValue"],setup(e,{emit:o,slots:a}){const{linkChildren:n}=E(Fn);return t.watch((()=>e.modelValue),(e=>o("change",e))),n({props:e,updateValue:e=>o("update:modelValue",e)}),Q((()=>e.modelValue)),()=>{var o;return t.createVNode("div",{class:Mn([e.direction]),role:"radiogroup"},[null==(o=a.default)?void 0:o.call(a)])}}})),[jn,Wn]=Ee("checkbox-group"),Un={max:y,shape:k("round"),disabled:Boolean,iconSize:y,direction:String,modelValue:V(),checkedColor:String},Yn=Symbol(jn);const Xn=qe(t.defineComponent({name:jn,props:Un,emits:["change","update:modelValue"],setup(e,{emit:o,slots:a}){const{children:n,linkChildren:r}=E(Yn),l=e=>o("update:modelValue",e);return t.watch((()=>e.modelValue),(e=>o("change",e))),nt({toggleAll:(e={})=>{"boolean"==typeof e&&(e={checked:e});const{checked:t,skipDisabled:o}=e,a=n.filter((e=>!!e.props.bindGroup&&(e.props.disabled&&o?e.checked.value:null!=t?t:!e.checked.value))).map((e=>e.name));l(a)}}),Q((()=>e.modelValue)),r({props:e,updateValue:l}),()=>{var o;return t.createVNode("div",{class:Wn([e.direction])},[null==(o=a.default)?void 0:o.call(a)])}}})),[qn,Gn]=Ee("tag"),Zn={size:String,mark:Boolean,show:w,type:k("default"),color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean};const Kn=qe(t.defineComponent({name:qn,props:Zn,emits:["close"],setup(e,{slots:o,emit:a}){const n=e=>{e.stopPropagation(),a("close",e)},r=()=>{var a;const{type:r,mark:l,plain:i,round:s,size:c,closeable:d}=e,u={mark:l,plain:i,round:s};c&&(u[c]=c);const p=d&&t.createVNode(Vt,{name:"cross",class:[Gn("close"),Ue],onClick:n},null);return t.createVNode("span",{style:e.plain?{color:e.textColor||e.color,borderColor:e.color}:{color:e.textColor,background:e.color},class:Gn([u,r])},[null==(a=o.default)?void 0:a.call(o),p])};return()=>t.createVNode(t.Transition,{name:e.closeable?"van-fade":void 0},{default:()=>[e.show?r():null]})}})),_n={name:b,disabled:Boolean,iconSize:y,modelValue:b,checkedColor:String,labelPosition:String,labelDisabled:Boolean};var Jn=t.defineComponent({props:r({},_n,{bem:x(Function),role:String,shape:String,parent:Object,checked:Boolean,bindGroup:w,indeterminate:{type:Boolean,default:null}}),emits:["click","toggle"],setup(e,{emit:o,slots:a}){const n=t.ref(),r=t=>{if(e.parent&&e.bindGroup)return e.parent.props[t]},l=t.computed((()=>{if(e.parent&&e.bindGroup){const t=r("disabled")||e.disabled;if("checkbox"===e.role){const o=r("modelValue").length,a=r("max");return t||a&&o>=+a&&!e.checked}return t}return e.disabled})),i=t.computed((()=>r("direction"))),s=t.computed((()=>{const t=e.checkedColor||r("checkedColor");if(t&&e.checked&&!l.value)return{borderColor:t,backgroundColor:t}})),c=t.computed((()=>e.shape||r("shape")||"round")),d=t=>{const{target:a}=t,r=n.value,i=r===a||(null==r?void 0:r.contains(a));l.value||!i&&e.labelDisabled||o("toggle"),o("click",t)},u=()=>{var o,i;const{bem:d,checked:u,indeterminate:p}=e,v=e.iconSize||r("iconSize");return t.createVNode("div",{ref:n,class:d("icon",[c.value,{disabled:l.value,checked:u,indeterminate:p}]),style:"dot"!==c.value?{fontSize:ve(v)}:{width:ve(v),height:ve(v),borderColor:null==(o=s.value)?void 0:o.borderColor}},[a.icon?a.icon({checked:u,disabled:l.value}):"dot"!==c.value?t.createVNode(Vt,{name:p?"minus":"success",style:s.value},null):t.createVNode("div",{class:d("icon--dot__icon"),style:{backgroundColor:null==(i=s.value)?void 0:i.backgroundColor}},null)])},p=()=>{const{checked:o}=e;if(a.default)return t.createVNode("span",{class:e.bem("label",[e.labelPosition,{disabled:l.value}])},[a.default({checked:o,disabled:l.value})])};return()=>{const o="left"===e.labelPosition?[p(),u()]:[u(),p()];return t.createVNode("div",{role:e.role,class:e.bem([{disabled:l.value,"label-disabled":e.labelDisabled},i.value]),tabindex:l.value?void 0:0,"aria-checked":e.checked,onClick:d},[o])}}});const Qn=r({},_n,{shape:String}),[er,tr]=Ee("radio");const or=qe(t.defineComponent({name:er,props:Qn,emits:["update:modelValue"],setup(e,{emit:o,slots:a}){const{parent:n}=A(Fn),r=()=>{n?n.updateValue(e.name):o("update:modelValue",e.name)};return()=>t.createVNode(Jn,t.mergeProps({bem:tr,role:"radio",parent:n,checked:(n?n.props.modelValue:e.modelValue)===e.name,onToggle:r},e),f(a,["default","icon"]))}})),[ar,nr]=Ee("checkbox"),rr=r({},_n,{shape:String,bindGroup:w,indeterminate:{type:Boolean,default:null}});const lr=qe(t.defineComponent({name:ar,props:rr,emits:["change","update:modelValue"],setup(e,{emit:o,slots:a}){const{parent:n}=A(Yn),r=t.computed((()=>n&&e.bindGroup?-1!==n.props.modelValue.indexOf(e.name):!!e.modelValue)),l=(t=!r.value)=>{n&&e.bindGroup?(t=>{const{name:o}=e,{max:a,modelValue:r}=n.props,l=r.slice();if(t)a&&l.length>=+a||l.includes(o)||(l.push(o),e.bindGroup&&n.updateValue(l));else{const t=l.indexOf(o);-1!==t&&(l.splice(t,1),e.bindGroup&&n.updateValue(l))}})(t):o("update:modelValue",t),null!==e.indeterminate&&o("change",t)};return t.watch((()=>e.modelValue),(t=>{null===e.indeterminate&&o("change",t)})),nt({toggle:l,props:e,checked:r}),Q((()=>e.modelValue)),()=>t.createVNode(Jn,t.mergeProps({bem:nr,role:"checkbox",parent:n,checked:r.value,onToggle:l},e),f(a,["default","icon"]))}})),[ir,sr]=Ee("address-item");var cr=t.defineComponent({name:ir,props:{address:x(Object),disabled:Boolean,switchable:Boolean,singleChoice:Boolean,defaultTagText:String,rightIcon:k("edit")},emits:["edit","click","select"],setup(e,{slots:o,emit:a}){const n=t=>{e.switchable&&a("select"),a("click",t)},l=()=>t.createVNode(Vt,{name:e.rightIcon,class:sr("edit"),onClick:e=>{e.stopPropagation(),a("edit"),a("click",e)}},null),i=()=>{const{address:a,disabled:n,switchable:r,singleChoice:l}=e,i=[t.createVNode("div",{class:sr("name")},[`${a.name} ${a.tel}`,o.tag?o.tag(e.address):e.address.isDefault&&e.defaultTagText?t.createVNode(Kn,{type:"primary",round:!0,class:sr("tag")},{default:()=>[e.defaultTagText]}):void 0]),t.createVNode("div",{class:sr("address")},[a.address])];return r&&!n?l?t.createVNode(or,{name:a.id,iconSize:18},{default:()=>[i]}):t.createVNode(lr,{name:a.id,iconSize:18},{default:()=>[i]}):i};return()=>{var a;const{disabled:s}=e;return t.createVNode("div",{class:sr({disabled:s}),onClick:n},[t.createVNode(Ra,{border:!1,titleClass:sr("title")},{title:i,"right-icon":l}),null==(a=o.bottom)?void 0:a.call(o,r({},e.address,{disabled:s}))])}}});const[dr,ur,pr]=Ee("address-list"),vr={list:V(),modelValue:[...y,Array],switchable:w,disabledText:String,disabledList:V(),showAddButton:w,addButtonText:String,defaultTagText:String,rightIcon:k("edit")};const mr=qe(t.defineComponent({name:dr,props:vr,emits:["add","edit","select","clickItem","editDisabled","selectDisabled","update:modelValue"],setup(e,{slots:o,emit:a}){const n=t.computed((()=>!Array.isArray(e.modelValue))),r=(r,l)=>{if(r)return r.map(((r,i)=>((r,l,i)=>t.createVNode(cr,{key:r.id,address:r,disabled:i,switchable:e.switchable,singleChoice:n.value,defaultTagText:e.defaultTagText,rightIcon:e.rightIcon,onEdit:()=>a(i?"editDisabled":"edit",r,l),onClick:e=>a("clickItem",r,l,{event:e}),onSelect:()=>{if(a(i?"selectDisabled":"select",r,l),!i)if(n.value)a("update:modelValue",r.id);else{const t=e.modelValue;t.includes(r.id)?a("update:modelValue",t.filter((e=>e!==r.id))):a("update:modelValue",[...t,r.id])}}},{bottom:o["item-bottom"],tag:o.tag}))(r,i,l)))};return()=>{var l,i;const s=r(e.list),c=r(e.disabledList,!0),d=e.disabledText&&t.createVNode("div",{class:ur("disabled-text")},[e.disabledText]);return t.createVNode("div",{class:ur()},[null==(l=o.top)?void 0:l.call(o),!n.value&&Array.isArray(e.modelValue)?t.createVNode(Xn,{modelValue:e.modelValue},{default:()=>[s]}):t.createVNode(Hn,{modelValue:e.modelValue},{default:()=>[s]}),d,c,null==(i=o.default)?void 0:i.call(o),e.showAddButton?t.createVNode("div",{class:[ur("bottom"),"van-safe-area-bottom"]},[t.createVNode(It,{round:!0,block:!0,type:"primary",text:e.addButtonText||pr("add"),class:ur("add"),onClick:()=>a("add")},null)]):void 0])}}})),fr=S&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype,hr="event",gr="observer";function br(e,t){if(!e.length)return;const o=e.indexOf(t);return o>-1?e.splice(o,1):void 0}function yr(e,t){if("IMG"!==e.tagName||!e.getAttribute("data-srcset"))return;let o=e.getAttribute("data-srcset");const a=e.parentNode.offsetWidth*t;let n,r,l;o=o.trim().split(",");const i=o.map((e=>(e=e.trim(),n=e.lastIndexOf(" "),-1===n?(r=e,l=999998):(r=e.substr(0,n),l=parseInt(e.substr(n+1,e.length-n-2),10)),[l,r])));i.sort(((e,t)=>{if(e[0]<t[0])return 1;if(e[0]>t[0])return-1;if(e[0]===t[0]){if(-1!==t[1].indexOf(".webp",t[1].length-5))return 1;if(-1!==e[1].indexOf(".webp",e[1].length-5))return-1}return 0}));let s,c="";for(let d=0;d<i.length;d++){s=i[d],c=s[1];const e=i[d+1];if(e&&e[0]<a){c=s[1];break}if(!e){c=s[1];break}}return c}const wr=(e=1)=>S&&window.devicePixelRatio||e;function xr(){if(!S)return!1;let e=!0;try{const t=document.createElement("canvas");t.getContext&&t.getContext("2d")&&(e=0===t.toDataURL("image/webp").indexOf("data:image/webp"))}catch(t){e=!1}return e}function Vr(e,t){let o=null,a=0;return function(...n){if(o)return;const r=()=>{a=Date.now(),o=!1,e.apply(this,n)};Date.now()-a>=t?r():o=setTimeout(r,t)}}function Nr(e,t,o){e.addEventListener(t,o,{capture:!1,passive:!0})}function Cr(e,t,o){e.removeEventListener(t,o,!1)}const kr=(e,t,o)=>{const a=new Image;if(!e||!e.src)return o(new Error("image src is required"));a.src=e.src,e.cors&&(a.crossOrigin=e.cors),a.onload=()=>t({naturalHeight:a.naturalHeight,naturalWidth:a.naturalWidth,src:a.src}),a.onerror=e=>o(e)};class Sr{constructor({max:e}){this.options={max:e||100},this.caches=[]}has(e){return this.caches.indexOf(e)>-1}add(e){this.has(e)||(this.caches.push(e),this.caches.length>this.options.max&&this.free())}free(){this.caches.shift()}}const[Tr,Br]=Ee("back-top"),Pr={right:y,bottom:y,zIndex:y,target:[String,Object],offset:C(200),immediate:Boolean,teleport:{type:[String,Object],default:"body"}};const Dr=qe(t.defineComponent({name:Tr,inheritAttrs:!1,props:Pr,emits:["click"],setup(e,{emit:o,slots:a,attrs:n}){let i=!1;const s=t.ref(!1),c=t.ref(),d=t.ref(),u=t.computed((()=>r(fe(e.zIndex),{right:ve(e.right),bottom:ve(e.bottom)}))),p=t=>{var a;o("click",t),null==(a=d.value)||a.scrollTo({top:0,behavior:e.immediate?"auto":"smooth"})},v=()=>{s.value=!!d.value&&ee(d.value)>=+e.offset},m=()=>{l&&t.nextTick((()=>{d.value=e.target?(()=>{const{target:t}=e;if("string"!=typeof t)return t;{const e=document.querySelector(t);if(e)return e}})():Z(c.value),v()}))};return j("scroll",Vr(v,100),{target:d}),t.onMounted(m),t.onActivated((()=>{i&&(s.value=!0,i=!1)})),t.onDeactivated((()=>{s.value&&e.teleport&&(s.value=!1,i=!0)})),t.watch((()=>e.target),m),()=>{const o=t.createVNode("div",t.mergeProps({ref:e.teleport?void 0:c,class:Br({active:s.value}),style:u.value,onClick:p},n),[a.default?a.default():t.createVNode(Vt,{name:"back-top",class:Br("icon")},null)]);return e.teleport?[t.createVNode("div",{ref:c,class:Br("placeholder")},null),t.createVNode(t.Teleport,{to:e.teleport},{default:()=>[o]})]:o}}}));const Or={top:C(10),rows:C(4),duration:C(4e3),autoPlay:w,delay:N(300),modelValue:V()},[Ar,Ir]=Ee("barrage");const zr=qe(t.defineComponent({name:Ar,props:Or,emits:["update:modelValue"],setup(e,{emit:o,slots:a}){const n=t.ref(),r=Ir("item"),l=t.ref(0),i=[],s=t.ref(!0),c=t.ref(e.autoPlay),d=({id:t,text:a},d)=>{var u;const p=((t,o=e.delay)=>{const a=document.createElement("span");return a.className=r,a.innerText=String(t),a.style.animationDuration=`${e.duration}ms`,a.style.animationDelay=`${o}ms`,a.style.animationName="van-barrage",a.style.animationTimingFunction="linear",a})(a,s.value?d*e.delay:void 0);e.autoPlay||!1!==c.value||(p.style.animationPlayState="paused"),null==(u=n.value)||u.append(p),l.value++;const v=(l.value-1)%+e.rows*p.offsetHeight+ +e.top;p.style.top=`${v}px`,p.dataset.id=String(t),i.push(p),p.addEventListener("animationend",(()=>{o("update:modelValue",[...e.modelValue].filter((e=>String(e.id)!==p.dataset.id)))}))},u=(e,t)=>{const o=new Map(t.map((e=>[e.id,e])));e.forEach(((e,t)=>{o.has(e.id)?o.delete(e.id):d(e,t)})),o.forEach((e=>{const t=i.findIndex((t=>t.dataset.id===String(e.id)));t>-1&&(i[t].remove(),i.splice(t,1))})),s.value=!1};t.watch((()=>e.modelValue.slice()),((e,t)=>u(null!=e?e:[],null!=t?t:[])),{deep:!0});const p=t.ref({});t.onMounted((()=>{return o=this,a=null,r=function*(){var o;p.value["--move-distance"]=`-${null==(o=n.value)?void 0:o.offsetWidth}px`,yield t.nextTick(),u(e.modelValue,[])},new Promise(((e,t)=>{var n=e=>{try{i(r.next(e))}catch(o){t(o)}},l=e=>{try{i(r.throw(e))}catch(o){t(o)}},i=t=>t.done?e(t.value):Promise.resolve(t.value).then(n,l);i((r=r.apply(o,a)).next())}));var o,a,r}));return nt({play:()=>{c.value=!0,i.forEach((e=>{e.style.animationPlayState="running"}))},pause:()=>{c.value=!1,i.forEach((e=>{e.style.animationPlayState="paused"}))}}),()=>{var e;return t.createVNode("div",{class:Ir(),ref:n,style:p.value},[null==(e=a.default)?void 0:e.call(a)])}}})),[Er,Lr,$r]=Ee("calendar");function Mr(e,t){const o=e.getFullYear(),a=t.getFullYear();if(o===a){const o=e.getMonth(),a=t.getMonth();return o===a?0:o>a?1:-1}return o>a?1:-1}function Rr(e,t){const o=Mr(e,t);if(0===o){const o=e.getDate(),a=t.getDate();return o===a?0:o>a?1:-1}return o}const Fr=e=>new Date(e),Hr=e=>Array.isArray(e)?e.map(Fr):Fr(e);function jr(e,t){const o=Fr(e);return o.setDate(o.getDate()+t),o}function Wr(e,t){const o=Fr(e);return o.setMonth(o.getMonth()+t),o.getDate()!==e.getDate()&&o.setDate(0),o}function Ur(e,t){const o=Fr(e);return o.setFullYear(o.getFullYear()+t),o.getDate()!==e.getDate()&&o.setDate(0),o}const Yr=e=>jr(e,-1),Xr=e=>jr(e,1),qr=e=>Wr(e,-1),Gr=e=>Wr(e,1),Zr=e=>Ur(e,-1),Kr=e=>Ur(e,1),_r=()=>{const e=new Date;return e.setHours(0,0,0,0),e};const Jr=r({},Va,{modelValue:V(),filter:Function,formatter:{type:Function,default:(e,t)=>t}}),Qr=Object.keys(Va);const el=(e,t)=>32-new Date(e,t-1,32).getDate(),tl=(e,t,o,a,n,r)=>{const l=function(e,t){if(e<0)return[];const o=Array(e);let a=-1;for(;++a<e;)o[a]=t(a);return o}(t-e+1,(t=>{const n=xe(e+t);return a(o,{text:n,value:n})}));return n?n(o,l,r):l},ol=(e,t)=>e.map(((e,o)=>{const a=t[o];if(a.length){const t=+a[0].value,o=+a[a.length-1].value;return xe(Ve(+e,t,o))}return e})),[al]=Ee("calendar-day");var nl=t.defineComponent({name:al,props:{item:x(Object),color:String,index:Number,offset:N(0),rowHeight:String},emits:["click","clickDisabledDate"],setup(e,{emit:o,slots:a}){const n=t.computed((()=>{var t;const{item:o,index:a,color:n,offset:r,rowHeight:l}=e,i={height:l};if("placeholder"===o.type)return i.width="100%",i;if(0===a&&(i.marginLeft=100*r/7+"%"),n)switch(o.type){case"end":case"start":case"start-end":case"multiple-middle":case"multiple-selected":i.background=n;break;case"middle":i.color=n}return r+((null==(t=o.date)?void 0:t.getDate())||1)>28&&(i.marginBottom=0),i})),r=()=>{"disabled"!==e.item.type?o("click",e.item):o("clickDisabledDate",e.item)},l=()=>{const{topInfo:o}=e.item;if(o||a["top-info"])return t.createVNode("div",{class:Lr("top-info")},[a["top-info"]?a["top-info"](e.item):o])},i=()=>{const{bottomInfo:o}=e.item;if(o||a["bottom-info"])return t.createVNode("div",{class:Lr("bottom-info")},[a["bottom-info"]?a["bottom-info"](e.item):o])},s=()=>{const{item:o,color:n,rowHeight:r}=e,{type:s}=o,c=[l(),a.text?a.text(e.item):e.item.text,i()];return"selected"===s?t.createVNode("div",{class:Lr("selected-day"),style:{width:r,height:r,background:n}},[c]):c};return()=>{const{type:o,className:a}=e.item;return"placeholder"===o?t.createVNode("div",{class:Lr("day"),style:n.value},null):t.createVNode("div",{role:"gridcell",style:n.value,class:[Lr("day",o),a],tabindex:"disabled"===o?void 0:-1,onClick:r},[s()])}}});const[rl]=Ee("calendar-month"),ll={date:x(Date),type:String,color:String,minDate:Date,maxDate:Date,showMark:Boolean,rowHeight:y,formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number};var il=t.defineComponent({name:rl,props:ll,emits:["click","clickDisabledDate"],setup(e,{emit:o,slots:n}){const[r,l]=function(e=!1){const t=(0,a.ref)(e);return[t,(e=!t.value)=>{t.value=e}]}(),i=t.ref(),s=t.ref(),c=_e(s),d=t.computed((()=>{return t=e.date,$r("monthTitle",t.getFullYear(),t.getMonth()+1);var t})),u=t.computed((()=>ve(e.rowHeight))),p=t.computed((()=>{const t=e.date.getDate(),o=(e.date.getDay()-t%7+8)%7;return e.firstDayOfWeek?(o+7-e.firstDayOfWeek)%7:o})),v=t.computed((()=>el(e.date.getFullYear(),e.date.getMonth()+1))),m=t.computed((()=>r.value||!e.lazyRender)),h=t=>{const{type:o,minDate:a,maxDate:n,currentDate:r}=e;if(a&&Rr(t,a)<0||n&&Rr(t,n)>0)return"disabled";if(null===r)return"";if(Array.isArray(r)){if("multiple"===o)return(t=>{const o=t=>e.currentDate.some((e=>0===Rr(e,t)));if(o(t)){const e=Yr(t),a=Xr(t),n=o(e),r=o(a);return n&&r?"multiple-middle":n?"end":r?"start":"multiple-selected"}return""})(t);if("range"===o)return(t=>{const[o,a]=e.currentDate;if(!o)return"";const n=Rr(t,o);if(!a)return 0===n?"start":"";const r=Rr(t,a);return e.allowSameDay&&0===n&&0===r?"start-end":0===n?"start":0===r?"end":n>0&&r<0?"middle":""})(t)}else if("single"===o)return 0===Rr(t,r)?"selected":"";return""},g=t=>{if("range"===e.type){if("start"===t||"end"===t)return $r(t);if("start-end"===t)return`${$r("start")}/${$r("end")}`}},b=()=>{if(e.showMonthTitle)return t.createVNode("div",{class:Lr("month-title")},[n["month-title"]?n["month-title"]({date:e.date,text:d.value}):d.value])},y=()=>{if(e.showMark&&m.value)return t.createVNode("div",{class:Lr("month-mark")},[e.date.getMonth()+1])},w=t.computed((()=>{const e=Math.ceil((v.value+p.value)/7);return Array(e).fill({type:"placeholder"})})),x=t.computed((()=>{const t=[],o=e.date.getFullYear(),a=e.date.getMonth();for(let n=1;n<=v.value;n++){const r=new Date(o,a,n),l=h(r);let i={date:r,type:l,text:n,bottomInfo:g(l)};e.formatter&&(i=e.formatter(i)),t.push(i)}return t})),V=t.computed((()=>x.value.filter((e=>"disabled"===e.type)))),N=(a,r)=>t.createVNode(nl,{item:a,index:r,color:e.color,offset:p.value,rowHeight:u.value,onClick:e=>o("click",e),onClickDisabledDate:e=>o("clickDisabledDate",e)},f(n,["top-info","bottom-info","text"]));return nt({getTitle:()=>d.value,getHeight:()=>c.value,setVisible:l,scrollToDate:(e,t)=>{if(i.value){const o=O(i.value),a=w.value.length,n=(Math.ceil((t.getDate()+p.value)/7)-1)*o.height/a;te(e,o.top+n+e.scrollTop-O(e).top)}},disabledDays:V}),()=>t.createVNode("div",{class:Lr("month"),ref:s},[b(),t.createVNode("div",{ref:i,role:"grid",class:Lr("days")},[y(),(m.value?x:w).value.map(N)])])}});const[sl]=Ee("calendar-header");var cl=t.defineComponent({name:sl,props:{date:Date,minDate:Date,maxDate:Date,title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number,switchMode:k("none")},emits:["clickSubtitle","panelChange"],setup(e,{slots:o,emit:a}){const n=t.computed((()=>e.date&&e.minDate&&Mr(qr(e.date),e.minDate)<0)),r=t.computed((()=>e.date&&e.minDate&&Mr(Zr(e.date),e.minDate)<0)),l=t.computed((()=>e.date&&e.maxDate&&Mr(Gr(e.date),e.maxDate)>0)),i=t.computed((()=>e.date&&e.maxDate&&Mr(Kr(e.date),e.maxDate)>0)),s=()=>{if(e.showTitle){const a=e.title||$r("title"),n=o.title?o.title():a;return t.createVNode("div",{class:Lr("header-title")},[n])}},c=e=>a("clickSubtitle",e),d=e=>a("panelChange",e),u=a=>{const s="year-month"===e.switchMode,c=o[a?"next-month":"prev-month"],u=o[a?"next-year":"prev-year"],p=a?l.value:n.value,v=a?i.value:r.value,m=a?"arrow":"arrow-left",f=a?"arrow-double-right":"arrow-double-left",h=t.createVNode("view",{class:Lr("header-action",{disabled:p}),onClick:p?void 0:()=>d((a?Gr:qr)(e.date))},[c?c({disabled:p}):t.createVNode(Vt,{class:{[Ue]:!p},name:m},null)]),g=s&&t.createVNode("view",{class:Lr("header-action",{disabled:v}),onClick:v?void 0:()=>d((a?Kr:Zr)(e.date))},[u?u({disabled:v}):t.createVNode(Vt,{class:{[Ue]:!v},name:f},null)]);return a?[h,g]:[g,h]},p=()=>{if(e.showSubtitle){const a=o.subtitle?o.subtitle({date:e.date,text:e.subtitle}):e.subtitle,n="none"!==e.switchMode;return t.createVNode("div",{class:Lr("header-subtitle",{"with-switch":n}),onClick:c},[n?[u(),t.createVNode("div",{class:Lr("header-subtitle-text")},[a]),u(!0)]:a])}},v=()=>{const{firstDayOfWeek:o}=e,a=$r("weekdays"),n=[...a.slice(o,7),...a.slice(0,o)];return t.createVNode("div",{class:Lr("weekdays")},[n.map((e=>t.createVNode("span",{class:Lr("weekday")},[e])))])};return()=>t.createVNode("div",{class:Lr("header")},[s(),p(),v()])}});const dl={show:Boolean,type:k("single"),switchMode:k("none"),title:String,color:String,round:w,readonly:Boolean,poppable:w,maxRange:C(null),position:k("bottom"),teleport:[String,Object],showMark:w,showTitle:w,formatter:Function,rowHeight:y,confirmText:String,rangePrompt:String,lazyRender:w,showConfirm:w,defaultDate:[Date,Array],allowSameDay:Boolean,showSubtitle:w,closeOnPopstate:w,showRangePrompt:w,confirmDisabledText:String,closeOnClickOverlay:w,safeAreaInsetTop:Boolean,safeAreaInsetBottom:w,minDate:{type:Date,validator:u},maxDate:{type:Date,validator:u},firstDayOfWeek:{type:y,default:0,validator:e=>e>=0&&e<=6}};const ul=qe(t.defineComponent({name:Er,props:dl,emits:["select","confirm","unselect","monthShow","overRange","update:show","clickSubtitle","clickDisabledDate","panelChange"],setup(e,{emit:o,slots:a}){const n=t.computed((()=>"none"!==e.switchMode)),r=t.computed((()=>e.minDate||n.value?e.minDate:_r())),l=t.computed((()=>e.maxDate||n.value?e.maxDate:Wr(_r(),6))),i=(e,t=r.value,o=l.value)=>t&&-1===Rr(e,t)?t:o&&1===Rr(e,o)?o:e,s=(t=e.defaultDate)=>{const{type:o,allowSameDay:a}=e;if(null===t)return t;const n=_r();if("range"===o){Array.isArray(t)||(t=[]),1===t.length&&1===Rr(t[0],n)&&(t=[]);const e=r.value,o=l.value;return[i(t[0]||n,e,o?a?o:Yr(o):void 0),i(t[1]||(a?n:Xr(n)),e?a?e:Xr(e):void 0)]}return"multiple"===o?Array.isArray(t)?t.map((e=>i(e))):[i(n)]:(t&&!Array.isArray(t)||(t=n),i(t))};let c;const d=t.ref(),p=t.ref(s()),v=t.ref((()=>{const e=Array.isArray(p.value)?p.value[0]:p.value;return e||i(_r())})()),m=t.ref(),[h,g]=Fo(),b=t.computed((()=>e.firstDayOfWeek?+e.firstDayOfWeek%7:0)),y=t.computed((()=>{const e=[];if(!r.value||!l.value)return e;const t=new Date(r.value);t.setDate(1);do{e.push(new Date(t)),t.setMonth(t.getMonth()+1)}while(1!==Mr(t,l.value));return e})),w=t.computed((()=>{if(p.value){if("range"===e.type)return!p.value[0]||!p.value[1];if("multiple"===e.type)return!p.value.length}return!p.value})),x=()=>{const e=ee(d.value),t=e+c,a=y.value.map(((e,t)=>h.value[t].getHeight()));if(t>a.reduce(((e,t)=>e+t),0)&&e>0)return;let n,r=0;const l=[-1,-1];for(let i=0;i<y.value.length;i++){const s=h.value[i];r<=t&&r+a[i]>=e&&(l[1]=i,n||(n=s,l[0]=i),h.value[i].showed||(h.value[i].showed=!0,o("monthShow",{date:s.date,title:s.getTitle()}))),r+=a[i]}y.value.forEach(((e,t)=>{const o=t>=l[0]-1&&t<=l[1]+1;h.value[t].setVisible(o)})),n&&(m.value=n)},V=e=>{n.value?v.value=e:T((()=>{y.value.some(((t,o)=>0===Mr(t,e)&&(d.value&&h.value[o].scrollToDate(d.value,e),!0))),x()}))},N=()=>{if(!e.poppable||e.show)if(p.value){const t="single"===e.type?p.value:p.value[0];u(t)&&V(t)}else n.value||T(x)},C=()=>{e.poppable&&!e.show||(n.value||T((()=>{c=Math.floor(O(d).height)})),N())},k=(e=s())=>{p.value=e,N()},S=e=>{v.value=e,o("panelChange",{date:e})},B=()=>{var e;return o("confirm",null!=(e=p.value)?e:Hr(p.value))},P=(t,a)=>{const n=e=>{p.value=e,o("select",Hr(e))};if(a&&"range"===e.type){const a=(t=>{const{maxRange:a,rangePrompt:n,showRangePrompt:r}=e;return!(a&&function(e){const t=e[0].getTime();return(e[1].getTime()-t)/864e5+1}(t)>+a&&(r&&gn(n||$r("rangePrompt",a)),o("overRange"),1))})(t);if(!a)return void n([t[0],jr(t[0],+e.maxRange-1)])}n(t),a&&!e.showConfirm&&B()},D=t.computed((()=>h.value.reduce(((e,t)=>{var o,a;return e.push(...null!=(a=null==(o=t.disabledDays)?void 0:o.value)?a:[]),e}),[]))),A=t=>{if(e.readonly||!t.date)return;const{date:a}=t,{type:n}=e;if("range"===n){if(!p.value)return void P([a]);const[t,o]=p.value;if(t&&!o){const o=Rr(a,t);if(1===o){const e=((e,t,o)=>{var a;return null==(a=e.find((e=>-1===Rr(t,e.date)&&-1===Rr(e.date,o))))?void 0:a.date})(D.value,t,a);if(e){const o=Yr(e);-1===Rr(t,o)?P([t,o]):P([a])}else P([t,a],!0)}else-1===o?P([a]):e.allowSameDay&&P([a,a],!0)}else P([a])}else if("multiple"===n){if(!p.value)return void P([a]);const t=p.value,n=t.findIndex((e=>0===Rr(e,a)));if(-1!==n){const[e]=t.splice(n,1);o("unselect",Fr(e))}else e.maxRange&&t.length>=+e.maxRange?gn(e.rangePrompt||$r("rangePrompt",e.maxRange)):P([...t,a])}else P(a,!0)},I=e=>o("update:show",e),z=(i,s)=>{const c=0!==s||!e.showSubtitle;return t.createVNode(il,t.mergeProps({ref:n.value?m:g(s),date:i,currentDate:p.value,showMonthTitle:c,firstDayOfWeek:b.value,lazyRender:!n.value&&e.lazyRender,maxDate:l.value,minDate:r.value},f(e,["type","color","showMark","formatter","rowHeight","showSubtitle","allowSameDay"]),{onClick:A,onClickDisabledDate:e=>o("clickDisabledDate",e)}),f(a,["top-info","bottom-info","month-title","text"]))},E=()=>{if(a.footer)return a.footer();if(e.showConfirm){const o=a["confirm-text"],n=w.value,r=n?e.confirmDisabledText:e.confirmText;return t.createVNode(It,{round:!0,block:!0,type:"primary",color:e.color,class:Lr("confirm"),disabled:n,nativeType:"button",onClick:B},{default:()=>[o?o({disabled:n}):r||$r("confirm")]})}},L=()=>{var i,s;return t.createVNode("div",{class:Lr()},[t.createVNode(cl,{date:null==(i=m.value)?void 0:i.date,maxDate:l.value,minDate:r.value,title:e.title,subtitle:null==(s=m.value)?void 0:s.getTitle(),showTitle:e.showTitle,showSubtitle:e.showSubtitle,switchMode:e.switchMode,firstDayOfWeek:b.value,onClickSubtitle:e=>o("clickSubtitle",e),onPanelChange:S},f(a,["title","subtitle","prev-month","prev-year","next-month","next-year"])),t.createVNode("div",{ref:d,class:Lr("body"),onScroll:n.value?void 0:x},[n.value?z(v.value,0):y.value.map(z)]),t.createVNode("div",{class:[Lr("footer"),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[E()])])};return t.watch((()=>e.show),C),t.watch((()=>[e.type,e.minDate,e.maxDate,e.switchMode]),(()=>k(s(p.value)))),t.watch((()=>e.defaultDate),(e=>{k(e)})),nt({reset:k,scrollToDate:V,getSelectedDate:()=>p.value}),H(C),()=>e.poppable?t.createVNode(ao,{show:e.show,class:Lr("popup"),round:e.round,position:e.position,closeable:e.showTitle||e.showSubtitle,teleport:e.teleport,closeOnPopstate:e.closeOnPopstate,safeAreaInsetTop:e.safeAreaInsetTop,closeOnClickOverlay:e.closeOnClickOverlay,"onUpdate:show":I},{default:L}):L()}})),[pl,vl]=Ee("image"),ml={src:String,alt:String,fit:String,position:String,round:Boolean,block:Boolean,width:y,height:y,radius:y,lazyLoad:Boolean,iconSize:y,showError:w,errorIcon:k("photo-fail"),iconPrefix:String,showLoading:w,loadingIcon:k("photo"),crossorigin:String,referrerpolicy:String};const fl=qe(t.defineComponent({name:pl,props:ml,emits:["load","error"],setup(e,{emit:o,slots:a}){const n=t.ref(!1),r=t.ref(!0),i=t.ref(),{$Lazyload:c}=t.getCurrentInstance().proxy,d=t.computed((()=>{const t={width:ve(e.width),height:ve(e.height)};return s(e.radius)&&(t.overflow="hidden",t.borderRadius=ve(e.radius)),t}));t.watch((()=>e.src),(()=>{n.value=!1,r.value=!0}));const u=e=>{r.value&&(r.value=!1,o("load",e))},p=()=>{const e=new Event("load");Object.defineProperty(e,"target",{value:i.value,enumerable:!0}),u(e)},v=e=>{n.value=!0,r.value=!1,o("error",e)},m=(o,a,n)=>n?n():t.createVNode(Vt,{name:o,size:e.iconSize,class:a,classPrefix:e.iconPrefix},null),f=()=>{if(n.value||!e.src)return;const o={alt:e.alt,class:vl("img"),style:{objectFit:e.fit,objectPosition:e.position},crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy};return e.lazyLoad?t.withDirectives(t.createVNode("img",t.mergeProps({ref:i},o),null),[[t.resolveDirective("lazy"),e.src]]):t.createVNode("img",t.mergeProps({ref:i,src:e.src,onLoad:u,onError:v},o),null)},h=({el:e})=>{const o=()=>{e===i.value&&r.value&&p()};i.value?o():t.nextTick(o)},g=({el:e})=>{e!==i.value||n.value||v()};return c&&l&&(c.$on("loaded",h),c.$on("error",g),t.onBeforeUnmount((()=>{c.$off("loaded",h),c.$off("error",g)}))),t.onMounted((()=>{t.nextTick((()=>{var t;(null==(t=i.value)?void 0:t.complete)&&!e.lazyLoad&&p()}))})),()=>{var o;return t.createVNode("div",{class:vl({round:e.round,block:e.block}),style:d.value},[f(),r.value&&e.showLoading?t.createVNode("div",{class:vl("loading")},[m(e.loadingIcon,vl("loading-icon"),a.loading)]):n.value&&e.showError?t.createVNode("div",{class:vl("error")},[m(e.errorIcon,vl("error-icon"),a.error)]):void 0,null==(o=a.default)?void 0:o.call(a)])}}})),[hl,gl]=Ee("card"),bl={tag:String,num:y,desc:String,thumb:String,title:String,price:y,centered:Boolean,lazyLoad:Boolean,currency:k("¥"),thumbLink:String,originPrice:y};const yl=qe(t.defineComponent({name:hl,props:bl,emits:["clickThumb"],setup(e,{slots:o,emit:a}){const n=()=>{if(o.tag||e.tag)return t.createVNode("div",{class:gl("tag")},[o.tag?o.tag():t.createVNode(Kn,{mark:!0,type:"primary"},{default:()=>[e.tag]})])},r=()=>{if(o.thumb||e.thumb)return t.createVNode("a",{href:e.thumbLink,class:gl("thumb"),onClick:e=>a("clickThumb",e)},[o.thumb?o.thumb():t.createVNode(fl,{src:e.thumb,fit:"cover",width:"100%",height:"100%",lazyLoad:e.lazyLoad},null),n()])},l=()=>{const o=e.price.toString().split(".");return t.createVNode("div",null,[t.createVNode("span",{class:gl("price-currency")},[e.currency]),t.createVNode("span",{class:gl("price-integer")},[o[0]]),o.length>1&&t.createVNode(t.Fragment,null,[t.createTextVNode("."),t.createVNode("span",{class:gl("price-decimal")},[o[1]])])])};return()=>{var a,n,i;const c=o.num||s(e.num),d=o.price||s(e.price),u=o["origin-price"]||s(e.originPrice),p=c||d||u||o.bottom,v=d&&t.createVNode("div",{class:gl("price")},[o.price?o.price():l()]),m=u&&t.createVNode("div",{class:gl("origin-price")},[o["origin-price"]?o["origin-price"]():`${e.currency} ${e.originPrice}`]),f=c&&t.createVNode("div",{class:gl("num")},[o.num?o.num():`x${e.num}`]),h=o.footer&&t.createVNode("div",{class:gl("footer")},[o.footer()]),g=p&&t.createVNode("div",{class:gl("bottom")},[null==(a=o["price-top"])?void 0:a.call(o),v,m,f,null==(n=o.bottom)?void 0:n.call(o)]);return t.createVNode("div",{class:gl()},[t.createVNode("div",{class:gl("header")},[r(),t.createVNode("div",{class:gl("content",{centered:e.centered})},[t.createVNode("div",null,[o.title?o.title():e.title?t.createVNode("div",{class:[gl("title"),"van-multi-ellipsis--l2"]},[e.title]):void 0,o.desc?o.desc():e.desc?t.createVNode("div",{class:[gl("desc"),"van-ellipsis"]},[e.desc]):void 0,null==(i=o.tags)?void 0:i.call(o)]),g])]),h])}}})),[wl,xl,Vl]=Ee("cascader"),Nl={title:String,options:V(),closeable:w,swipeable:w,closeIcon:k("cross"),showHeader:w,modelValue:y,fieldNames:Object,placeholder:String,activeColor:String};const Cl=qe(t.defineComponent({name:wl,props:Nl,emits:["close","change","finish","clickTab","update:modelValue"],setup(e,{slots:o,emit:a}){const n=t.ref([]),l=t.ref(0),[i,s]=Fo(),{text:c,value:d,children:u}=r({text:"text",value:"value",children:"children"},e.fieldNames),p=(e,t)=>{for(const o of e){if(o[d]===t)return[o];if(o[u]){const e=p(o[u],t);if(e)return[o,...e]}}},v=()=>{const{options:o,modelValue:a}=e;if(void 0!==a){const e=p(o,a);if(e){let a=o;return n.value=e.map((e=>{const t={options:a,selected:e},o=a.find((t=>t[d]===e[d]));return o&&(a=o[u]),t})),a&&n.value.push({options:a,selected:null}),void t.nextTick((()=>{l.value=n.value.length-1}))}}n.value=[{options:o,selected:null}]},m=()=>a("close"),f=({name:e,title:t})=>a("clickTab",e,t),h=(r,i,p)=>{const{disabled:v}=r,m=!(!i||r[d]!==i[d]),f=r.color||(m?e.activeColor:void 0),h=o.option?o.option({option:r,selected:m}):t.createVNode("span",null,[r[c]]);return t.createVNode("li",{ref:m?s(p):void 0,role:"menuitemradio",class:[xl("option",{selected:m,disabled:v}),r.className],style:{color:f},tabindex:v?void 0:m?0:-1,"aria-checked":m,"aria-disabled":v||void 0,onClick:()=>((e,o)=>{if(e.disabled)return;if(n.value[o].selected=e,n.value.length>o+1&&(n.value=n.value.slice(0,o+1)),e[u]){const a={options:e[u],selected:null};n.value[o+1]?n.value[o+1]=a:n.value.push(a),t.nextTick((()=>{l.value++}))}const r=n.value.map((e=>e.selected)).filter(Boolean);a("update:modelValue",e[d]);const i={value:e[d],tabIndex:o,selectedOptions:r};a("change",i),e[u]||a("finish",i)})(r,p)},[h,m?t.createVNode(Vt,{name:"success",class:xl("selected-icon")},null):null])},g=(e,o,a)=>t.createVNode("ul",{role:"menu",class:xl("options")},[e.map((e=>h(e,o,a)))]),b=(a,n)=>{const{options:r,selected:l}=a,i=e.placeholder||Vl("select"),s=l?l[c]:i;return t.createVNode(fa,{title:s,titleClass:xl("tab",{unselected:!l})},{default:()=>{var e,t;return[null==(e=o["options-top"])?void 0:e.call(o,{tabIndex:n}),g(r,l,n),null==(t=o["options-bottom"])?void 0:t.call(o,{tabIndex:n})]}})};return v(),t.watch(l,(e=>{const t=i.value[e];t&&(e=>{const t=e.parentElement;t&&(t.scrollTop=e.offsetTop-(t.offsetHeight-e.offsetHeight)/2)})(t)})),t.watch((()=>e.options),v,{deep:!0}),t.watch((()=>e.modelValue),(e=>{if(void 0!==e){if(n.value.map((e=>{var t;return null==(t=e.selected)?void 0:t[d]})).includes(e))return}v()})),()=>t.createVNode("div",{class:xl()},[e.showHeader?t.createVNode("div",{class:xl("header")},[t.createVNode("h2",{class:xl("title")},[o.title?o.title():e.title]),e.closeable?t.createVNode(Vt,{name:e.closeIcon,class:[xl("close-icon"),Ue],onClick:m},null):null]):null,t.createVNode(ha,{active:l.value,"onUpdate:active":e=>l.value=e,shrink:!0,animated:!0,class:xl("tabs"),color:e.activeColor,swipeable:e.swipeable,onClickTab:f},{default:()=>[n.value.map(b)]})])}})),[kl,Sl]=Ee("cell-group"),Tl={title:String,inset:Boolean,border:w};const Bl=qe(t.defineComponent({name:kl,inheritAttrs:!1,props:Tl,setup(e,{slots:o,attrs:a}){const n=()=>{var n;return t.createVNode("div",t.mergeProps({class:[Sl({inset:e.inset}),{[je]:e.border&&!e.inset}]},a,Zt()),[null==(n=o.default)?void 0:n.call(o)])};return()=>e.title||o.title?t.createVNode(t.Fragment,null,[t.createVNode("div",{class:Sl("title",{inset:e.inset})},[o.title?o.title():e.title]),n()]):n()}})),[Pl,Dl]=Ee("circle");let Ol=0;const Al=e=>Math.min(Math.max(+e,0),100);const Il={text:String,size:y,fill:k("none"),rate:C(100),speed:C(0),color:[String,Object],clockwise:w,layerColor:String,currentRate:N(0),strokeWidth:C(40),strokeLinecap:String,startPosition:k("top")};const zl=qe(t.defineComponent({name:Pl,props:Il,emits:["update:currentRate"],setup(e,{emit:o,slots:a}){const n="van-circle-"+Ol++,r=t.computed((()=>+e.strokeWidth+1e3)),l=t.computed((()=>function(e,t){const o=e?1:0;return`M ${t/2} ${t/2} m 0, -500 a 500, 500 0 1, ${o} 0, 1000 a 500, 500 0 1, ${o} 0, -1000`}(e.clockwise,r.value))),s=t.computed((()=>{const t={top:0,right:90,bottom:180,left:270}[e.startPosition];if(t)return{transform:`rotate(${t}deg)`}}));t.watch((()=>e.rate),(t=>{let a;const n=Date.now(),r=e.currentRate,l=Al(t),i=Math.abs(1e3*(r-l)/+e.speed),s=()=>{const e=Date.now(),t=Math.min((e-n)/i,1)*(l-r)+r;o("update:currentRate",Al(parseFloat(t.toFixed(1)))),(l>r?t<l:t>l)&&(a=T(s))};e.speed?(a&&B(a),a=T(s)):o("update:currentRate",l)}),{immediate:!0});const c=()=>{const{strokeWidth:o,currentRate:a,strokeLinecap:r}=e,s=3140*a/100,c=i(e.color)?`url(#${n})`:e.color,d={stroke:c,strokeWidth:+o+1+"px",strokeLinecap:r,strokeDasharray:`${s}px 3140px`};return t.createVNode("path",{d:l.value,style:d,class:Dl("hover"),stroke:c},null)},d=()=>{const o={fill:e.fill,stroke:e.layerColor,strokeWidth:`${e.strokeWidth}px`};return t.createVNode("path",{class:Dl("layer"),style:o,d:l.value},null)},u=()=>{const{color:o}=e;if(!i(o))return;const a=Object.keys(o).sort(((e,t)=>parseFloat(e)-parseFloat(t))).map(((e,a)=>t.createVNode("stop",{key:a,offset:e,"stop-color":o[e]},null)));return t.createVNode("defs",null,[t.createVNode("linearGradient",{id:n,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[a])])};return()=>t.createVNode("div",{class:Dl(),style:me(e.size)},[t.createVNode("svg",{viewBox:`0 0 ${r.value} ${r.value}`,style:s.value},[u(),d(),c()]),a.default?a.default():e.text?t.createVNode("div",{class:Dl("text")},[e.text]):void 0])}})),[El,Ll]=Ee("row"),$l=Symbol(El),Ml={tag:k("div"),wrap:w,align:String,gutter:{type:[String,Number,Array],default:0},justify:String};var Rl=t.defineComponent({name:El,props:Ml,setup(e,{slots:o}){const{children:a,linkChildren:n}=E($l),r=t.computed((()=>{const e=[[]];let t=0;return a.forEach(((o,a)=>{t+=Number(o.span),t>24?(e.push([a]),t-=24):e[e.length-1].push(a)})),e}));return n({spaces:t.computed((()=>{let t=0;t=Array.isArray(e.gutter)?Number(e.gutter[0])||0:Number(e.gutter);const o=[];return t?(r.value.forEach((e=>{const a=t*(e.length-1)/e.length;e.forEach(((e,n)=>{if(0===n)o.push({right:a});else{const n=t-o[e-1].right,r=a-n;o.push({left:n,right:r})}}))})),o):o})),verticalSpaces:t.computed((()=>{const{gutter:t}=e,o=[];if(Array.isArray(t)&&t.length>1){const e=Number(t[1])||0;if(e<=0)return o;r.value.forEach(((t,a)=>{a!==r.value.length-1&&t.forEach((()=>{o.push({bottom:e})}))}))}return o}))}),()=>{const{tag:a,wrap:n,align:r,justify:l}=e;return t.createVNode(a,{class:Ll({[`align-${r}`]:r,[`justify-${l}`]:l,nowrap:!n})},{default:()=>{var e;return[null==(e=o.default)?void 0:e.call(o)]}})}}});const[Fl,Hl]=Ee("col"),jl={tag:k("div"),span:C(0),offset:y};const Wl=qe(t.defineComponent({name:Fl,props:jl,setup(e,{slots:o}){const{parent:a,index:n}=A($l),l=t.computed((()=>{if(!a)return;const{spaces:e,verticalSpaces:t}=a;let o={};if(e&&e.value&&e.value[n.value]){const{left:t,right:a}=e.value[n.value];o={paddingLeft:t?`${t}px`:null,paddingRight:a?`${a}px`:null}}const{bottom:l}=t.value[n.value]||{};return r(o,{marginBottom:l?`${l}px`:null})}));return()=>{const{tag:a,span:n,offset:r}=e;return t.createVNode(a,{style:l.value,class:Hl({[n]:n,[`offset-${r}`]:r})},{default:()=>{var e;return[null==(e=o.default)?void 0:e.call(o)]}})}}})),[Ul,Yl]=Ee("collapse"),Xl=Symbol(Ul),ql={border:w,accordion:Boolean,modelValue:{type:[String,Number,Array],default:""}};const Gl=qe(t.defineComponent({name:Ul,props:ql,emits:["change","update:modelValue"],setup(e,{emit:o,slots:a}){const{linkChildren:n,children:r}=E(Xl),l=e=>{o("change",e),o("update:modelValue",e)};return nt({toggleAll:(t={})=>{if(e.accordion)return;"boolean"==typeof t&&(t={expanded:t});const{expanded:o,skipDisabled:a}=t,n=r.filter((e=>e.disabled&&a?e.expanded.value:null!=o?o:!e.expanded.value)).map((e=>e.itemName.value));l(n)}}),n({toggle:(t,o)=>{const{accordion:a,modelValue:n}=e;l(a?t===n?"":t:o?n.concat(t):n.filter((e=>e!==t)))},isExpanded:t=>{const{accordion:o,modelValue:a}=e;return o?a===t:a.includes(t)}}),()=>{var o;return t.createVNode("div",{class:[Yl(),{[je]:e.border}]},[null==(o=a.default)?void 0:o.call(a)])}}})),[Zl,Kl]=Ee("collapse-item"),_l=["icon","title","value","label","right-icon"],Jl=r({},$a,{name:y,isLink:w,disabled:Boolean,readonly:Boolean,lazyRender:w});const Ql=qe(t.defineComponent({name:Zl,props:Jl,setup(e,{slots:o}){const a=t.ref(),n=t.ref(),{parent:r,index:l}=A(Xl);if(!r)return;const i=t.computed((()=>{var t;return null!=(t=e.name)?t:l.value})),s=t.computed((()=>r.isExpanded(i.value))),c=t.ref(s.value),d=Gt((()=>c.value||!e.lazyRender)),u=()=>{s.value?a.value&&(a.value.style.height=""):c.value=!1};t.watch(s,((e,o)=>{if(null===o)return;e&&(c.value=!0);(e?t.nextTick:T)((()=>{if(!n.value||!a.value)return;const{offsetHeight:t}=n.value;if(t){const o=`${t}px`;a.value.style.height=e?"0":o,P((()=>{a.value&&(a.value.style.height=e?o:"0")}))}else u()}))}));const p=(e=!s.value)=>{r.toggle(i.value,e)},v=()=>{e.disabled||e.readonly||p()},m=()=>{const{border:a,disabled:n,readonly:r}=e,l=f(e,Object.keys($a));return r&&(l.isLink=!1),(n||r)&&(l.clickable=!1),t.createVNode(Ra,t.mergeProps({role:"button",class:Kl("title",{disabled:n,expanded:s.value,borderless:!a}),"aria-expanded":String(s.value),onClick:v},l),f(o,_l))},h=d((()=>{var e;return t.withDirectives(t.createVNode("div",{ref:a,class:Kl("wrapper"),onTransitionend:u},[t.createVNode("div",{ref:n,class:Kl("content")},[null==(e=o.default)?void 0:e.call(o)])]),[[t.vShow,c.value]])}));return nt({toggle:p,expanded:s,itemName:i}),()=>t.createVNode("div",{class:[Kl({border:l.value&&e.border})]},[m(),h()])}})),ei=qe(bt),[ti,oi,ai]=Ee("contact-card"),ni={tel:String,name:String,type:k("add"),addText:String,editable:w};const ri=qe(t.defineComponent({name:ti,props:ni,emits:["click"],setup(e,{emit:o}){const a=t=>{e.editable&&o("click",t)},n=()=>"add"===e.type?e.addText||ai("addContact"):[t.createVNode("div",null,[`${ai("name")}:${e.name}`]),t.createVNode("div",null,[`${ai("tel")}:${e.tel}`])];return()=>t.createVNode(Ra,{center:!0,icon:"edit"===e.type?"contact":"add-square",class:oi([e.type]),border:!1,isLink:e.editable,titleClass:oi("title"),onClick:a},{title:n})}})),[li,ii,si]=Ee("contact-edit"),ci={tel:"",name:""},di={isEdit:Boolean,isSaving:Boolean,isDeleting:Boolean,showSetDefault:Boolean,setDefaultLabel:String,contactInfo:{type:Object,default:()=>r({},ci)},telValidator:{type:Function,default:p}};const ui=qe(t.defineComponent({name:li,props:di,emits:["save","delete","changeDefault"],setup(e,{emit:o}){const a=t.reactive(r({},ci,e.contactInfo)),n=()=>{e.isSaving||o("save",a)},l=()=>o("delete",a),i=()=>t.createVNode(Sn,{modelValue:a.isDefault,"onUpdate:modelValue":e=>a.isDefault=e,onChange:e=>o("changeDefault",e)},null),s=()=>{if(e.showSetDefault)return t.createVNode(Ra,{title:e.setDefaultLabel,class:ii("switch-cell"),border:!1},{"right-icon":i})};return t.watch((()=>e.contactInfo),(e=>r(a,ci,e))),()=>t.createVNode(Wa,{class:ii(),onSubmit:n},{default:()=>[t.createVNode("div",{class:ii("fields")},[t.createVNode(en,{modelValue:a.name,"onUpdate:modelValue":e=>a.name=e,clearable:!0,label:si("name"),rules:[{required:!0,message:si("nameEmpty")}],maxlength:"30",placeholder:si("name")},null),t.createVNode(en,{modelValue:a.tel,"onUpdate:modelValue":e=>a.tel=e,clearable:!0,type:"tel",label:si("tel"),rules:[{validator:e.telValidator,message:si("telInvalid")}],placeholder:si("tel")},null)]),s(),t.createVNode("div",{class:ii("buttons")},[t.createVNode(It,{block:!0,round:!0,type:"primary",text:si("save"),class:ii("button"),loading:e.isSaving,nativeType:"submit"},null),e.isEdit&&t.createVNode(It,{block:!0,round:!0,text:si("delete"),class:ii("button"),loading:e.isDeleting,onClick:l},null)])]})}})),[pi,vi,mi]=Ee("contact-list"),fi={list:Array,addText:String,modelValue:b,defaultTagText:String};const hi=qe(t.defineComponent({name:pi,props:fi,emits:["add","edit","select","update:modelValue"],setup(e,{emit:o}){const a=(a,n)=>t.createVNode(Ra,{key:a.id,isLink:!0,center:!0,class:vi("item"),titleClass:vi("item-title"),onClick:()=>{o("update:modelValue",a.id),o("select",a,n)}},{icon:()=>t.createVNode(Vt,{name:"edit",class:vi("edit"),onClick:e=>{e.stopPropagation(),o("edit",a,n)}},null),title:()=>{const o=[`${a.name},${a.tel}`];return a.isDefault&&e.defaultTagText&&o.push(t.createVNode(Kn,{type:"primary",round:!0,class:vi("item-tag")},{default:()=>[e.defaultTagText]})),o},"right-icon":()=>t.createVNode(or,{class:vi("radio"),name:a.id,iconSize:18},null)});return()=>t.createVNode("div",{class:vi()},[t.createVNode(Hn,{modelValue:e.modelValue,class:vi("group")},{default:()=>[e.list&&e.list.map(a)]}),t.createVNode("div",{class:[vi("bottom"),"van-safe-area-bottom"]},[t.createVNode(It,{round:!0,block:!0,type:"primary",class:vi("add"),text:e.addText||mi("addContact"),onClick:()=>o("add")},null)])])}}));const[gi,bi]=Ee("count-down"),yi={time:C(0),format:k("HH:mm:ss"),autoStart:w,millisecond:Boolean};const wi=qe(t.defineComponent({name:gi,props:yi,emits:["change","finish"],setup(e,{emit:o,slots:a}){const{start:n,pause:r,reset:l,current:i}=F({time:+e.time,millisecond:e.millisecond,onChange:e=>o("change",e),onFinish:()=>o("finish")}),s=t.computed((()=>function(e,t){const{days:o}=t;let{hours:a,minutes:n,seconds:r,milliseconds:l}=t;if(e.includes("DD")?e=e.replace("DD",xe(o)):a+=24*o,e.includes("HH")?e=e.replace("HH",xe(a)):n+=60*a,e.includes("mm")?e=e.replace("mm",xe(n)):r+=60*n,e.includes("ss")?e=e.replace("ss",xe(r)):l+=1e3*r,e.includes("S")){const t=xe(l,3);e=e.includes("SSS")?e.replace("SSS",t):e.includes("SS")?e.replace("SS",t.slice(0,2)):e.replace("S",t.charAt(0))}return e}(e.format,i.value))),c=()=>{l(+e.time),e.autoStart&&n()};return t.watch((()=>e.time),c,{immediate:!0}),nt({start:n,pause:r,reset:c}),()=>t.createVNode("div",{role:"timer",class:bi()},[a.default?a.default(i.value):s.value])}}));function xi(e){const t=new Date(1e3*e);return`${t.getFullYear()}.${xe(t.getMonth()+1)}.${xe(t.getDate())}`}const Vi=e=>(e/100).toFixed(e%100==0?0:e%10==0?1:2),[Ni,Ci,ki]=Ee("coupon");const Si=qe(t.defineComponent({name:Ni,props:{chosen:Boolean,coupon:x(Object),disabled:Boolean,currency:k("¥")},setup(e){const o=t.computed((()=>{const{startAt:t,endAt:o}=e.coupon;return`${xi(t)} - ${xi(o)}`})),a=t.computed((()=>{const{coupon:o,currency:a}=e;if(o.valueDesc)return[o.valueDesc,t.createVNode("span",null,[o.unitDesc||""])];if(o.denominations){const e=Vi(o.denominations);return[t.createVNode("span",null,[a]),` ${e}`]}return o.discount?ki("discount",((n=o.discount)/10).toFixed(n%10==0?0:1)):"";var n})),n=t.computed((()=>{const t=Vi(e.coupon.originCondition||0);return"0"===t?ki("unlimited"):ki("condition",t)}));return()=>{const{chosen:r,coupon:l,disabled:i}=e,s=i&&l.reason||l.description;return t.createVNode("div",{class:Ci({disabled:i})},[t.createVNode("div",{class:Ci("content")},[t.createVNode("div",{class:Ci("head")},[t.createVNode("h2",{class:Ci("amount")},[a.value]),t.createVNode("p",{class:Ci("condition")},[l.condition||n.value])]),t.createVNode("div",{class:Ci("body")},[t.createVNode("p",{class:Ci("name")},[l.name]),t.createVNode("p",{class:Ci("valid")},[o.value]),!i&&t.createVNode(lr,{class:Ci("corner"),modelValue:r},null)])]),s&&t.createVNode("p",{class:Ci("description")},[s])])}}})),[Ti,Bi,Pi]=Ee("coupon-cell"),Di={title:String,border:w,editable:w,coupons:V(),currency:k("¥"),chosenCoupon:{type:[Number,Array],default:-1}};function Oi({coupons:e,chosenCoupon:t,currency:o}){let a=0,n=!1;return(Array.isArray(t)?t:[t]).forEach((t=>{const o=e[+t];o&&(n=!0,a+=(e=>{const{value:t,denominations:o}=e;return s(t)?t:s(o)?o:0})(o))})),n?`-${o} ${(a/100).toFixed(2)}`:0===e.length?Pi("noCoupon"):Pi("count",e.length)}const Ai=qe(t.defineComponent({name:Ti,props:Di,setup:e=>()=>{const o=Array.isArray(e.chosenCoupon)?e.chosenCoupon.length:e.coupons[+e.chosenCoupon];return t.createVNode(Ra,{class:Bi(),value:Oi(e),title:e.title||Pi("title"),border:e.border,isLink:e.editable,valueClass:Bi("value",{selected:o})},null)}})),[Ii,zi]=Ee("empty"),Ei={image:k("default"),imageSize:[Number,String,Array],description:String};const Li=qe(t.defineComponent({name:Ii,props:Ei,setup(e,{slots:o}){const a=()=>{const a=o.description?o.description():e.description;if(a)return t.createVNode("p",{class:zi("description")},[a])},n=()=>{if(o.default)return t.createVNode("div",{class:zi("bottom")},[o.default()])},r=Ro(),l=e=>`${r}-${e}`,i=e=>`url(#${l(e)})`,s=(e,o,a)=>t.createVNode("stop",{"stop-color":e,offset:`${o}%`,"stop-opacity":a},null),c=(e,t)=>[s(e,0),s(t,100)],d=e=>[t.createVNode("defs",null,[t.createVNode("radialGradient",{id:l(e),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)","data-allow-mismatch":"attribute"},[s("#EBEDF0",0),s("#F2F3F5",100,.3)])]),t.createVNode("ellipse",{fill:i(e),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8","data-allow-mismatch":"attribute"},null)],u=()=>[t.createVNode("defs",null,[t.createVNode("linearGradient",{id:l("a"),x1:"64%",y1:"100%",x2:"64%","data-allow-mismatch":"attribute"},[s("#FFF",0,.5),s("#F2F3F5",100)])]),t.createVNode("g",{opacity:".8","data-allow-mismatch":"children"},[t.createVNode("path",{d:"M36 131V53H16v20H2v58h34z",fill:i("a")},null),t.createVNode("path",{d:"M123 15h22v14h9v77h-31V15z",fill:i("a")},null)])],p=()=>[t.createVNode("defs",null,[t.createVNode("linearGradient",{id:l("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%","data-allow-mismatch":"attribute"},[s("#F2F3F5",0,.3),s("#F2F3F5",100)])]),t.createVNode("g",{opacity:".8","data-allow-mismatch":"children"},[t.createVNode("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:i("b")},null),t.createVNode("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:i("b")},null)])],v=()=>t.createVNode("svg",{viewBox:"0 0 160 160"},[t.createVNode("defs",{"data-allow-mismatch":"children"},[t.createVNode("linearGradient",{id:l(1),x1:"64%",y1:"100%",x2:"64%"},[s("#FFF",0,.5),s("#F2F3F5",100)]),t.createVNode("linearGradient",{id:l(2),x1:"50%",x2:"50%",y2:"84%"},[s("#EBEDF0",0),s("#DCDEE0",100,0)]),t.createVNode("linearGradient",{id:l(3),x1:"100%",x2:"100%",y2:"100%"},[c("#EAEDF0","#DCDEE0")]),t.createVNode("radialGradient",{id:l(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[s("#EBEDF0",0),s("#FFF",100,0)])]),t.createVNode("g",{fill:"none"},[u(),t.createVNode("path",{fill:i(4),d:"M0 139h160v21H0z","data-allow-mismatch":"attribute"},null),t.createVNode("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:i(2),"data-allow-mismatch":"attribute"},null),t.createVNode("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7","data-allow-mismatch":"children"},[t.createVNode("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:i(3)},null),t.createVNode("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:i(3)},null),t.createVNode("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:i(3)},null),t.createVNode("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:i(3)},null)]),t.createVNode("g",{transform:"translate(31 105)"},[t.createVNode("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),t.createVNode("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),t.createVNode("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),m=()=>t.createVNode("svg",{viewBox:"0 0 160 160"},[t.createVNode("defs",{"data-allow-mismatch":"children"},[t.createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:l(5)},[c("#F2F3F5","#DCDEE0")]),t.createVNode("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:l(6)},[c("#EAEDF1","#DCDEE0")]),t.createVNode("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:l(7)},[c("#EAEDF1","#DCDEE0")])]),u(),p(),t.createVNode("g",{transform:"translate(36 50)",fill:"none"},[t.createVNode("g",{transform:"translate(8)"},[t.createVNode("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),t.createVNode("rect",{fill:i(5),width:"64",height:"66",rx:"2","data-allow-mismatch":"attribute"},null),t.createVNode("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),t.createVNode("g",{transform:"translate(15 17)",fill:i(6),"data-allow-mismatch":"attribute"},[t.createVNode("rect",{width:"34",height:"6",rx:"1"},null),t.createVNode("path",{d:"M0 14h34v6H0z"},null),t.createVNode("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),t.createVNode("rect",{fill:i(7),y:"61",width:"88",height:"28",rx:"1","data-allow-mismatch":"attribute"},null),t.createVNode("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),f=()=>t.createVNode("svg",{viewBox:"0 0 160 160"},[t.createVNode("defs",null,[t.createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:l(8),"data-allow-mismatch":"attribute"},[c("#EAEDF1","#DCDEE0")])]),u(),p(),d("c"),t.createVNode("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:i(8),"data-allow-mismatch":"attribute"},null)]),h=()=>t.createVNode("svg",{viewBox:"0 0 160 160"},[t.createVNode("defs",{"data-allow-mismatch":"children"},[t.createVNode("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:l(9)},[c("#EEE","#D8D8D8")]),t.createVNode("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:l(10)},[c("#F2F3F5","#DCDEE0")]),t.createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:l(11)},[c("#F2F3F5","#DCDEE0")]),t.createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:l(12)},[c("#FFF","#F7F8FA")])]),u(),p(),d("d"),t.createVNode("g",{transform:"rotate(-45 113 -4)",fill:"none","data-allow-mismatch":"children"},[t.createVNode("rect",{fill:i(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),t.createVNode("rect",{fill:i(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),t.createVNode("circle",{stroke:i(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),t.createVNode("circle",{fill:i(12),cx:"27",cy:"27",r:"16"},null),t.createVNode("path",{d:"M37 7c-8 0-15 5-16 12",stroke:i(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),g=()=>{var a;if(o.image)return o.image();const n={error:f,search:h,network:v,default:m};return(null==(a=n[e.image])?void 0:a.call(n))||t.createVNode("img",{src:e.image},null)};return()=>t.createVNode("div",{class:zi()},[t.createVNode("div",{class:zi("image"),style:me(e.imageSize)},[g()]),a(),n()])}})),[$i,Mi,Ri]=Ee("coupon-list"),Fi={code:k(""),coupons:V(),currency:k("¥"),showCount:w,emptyImage:String,enabledTitle:String,disabledTitle:String,disabledCoupons:V(),showExchangeBar:w,showCloseButton:w,closeButtonText:String,inputPlaceholder:String,exchangeMinLength:N(1),exchangeButtonText:String,displayedCouponIndex:N(-1),exchangeButtonLoading:Boolean,exchangeButtonDisabled:Boolean,chosenCoupon:{type:[Number,Array],default:-1}};const Hi=qe(t.defineComponent({name:$i,props:Fi,emits:["change","exchange","update:code"],setup(e,{emit:o,slots:a}){const[n,r]=Fo(),l=t.ref(),i=t.ref(),s=t.ref(0),c=t.ref(0),d=t.ref(e.code),u=t.computed((()=>!e.exchangeButtonLoading&&(e.exchangeButtonDisabled||!d.value||d.value.length<e.exchangeMinLength))),p=()=>{const e=O(l).height,t=O(i).height+44;c.value=(e>t?e:ue.value)-t},v=()=>{o("exchange",d.value),e.code||(d.value="")},m=e=>{t.nextTick((()=>{var t;return null==(t=n.value[e])?void 0:t.scrollIntoView()}))},f=()=>t.createVNode(Li,{image:e.emptyImage},{default:()=>[t.createVNode("p",{class:Mi("empty-tip")},[Ri("noCoupon")])]}),h=()=>{if(e.showExchangeBar)return t.createVNode("div",{ref:i,class:Mi("exchange-bar")},[t.createVNode(en,{modelValue:d.value,"onUpdate:modelValue":e=>d.value=e,clearable:!0,border:!1,class:Mi("field"),placeholder:e.inputPlaceholder||Ri("placeholder"),maxlength:"20"},null),t.createVNode(It,{plain:!0,type:"primary",class:Mi("exchange"),text:e.exchangeButtonText||Ri("exchange"),loading:e.exchangeButtonLoading,disabled:u.value,onClick:v},null)])},g=()=>{const{coupons:n,chosenCoupon:l}=e,i=e.showCount?` (${n.length})`:"",s=(e.enabledTitle||Ri("enable"))+i;return t.createVNode(fa,{title:s},{default:()=>{var i;return[t.createVNode("div",{class:Mi("list",{"with-bottom":e.showCloseButton}),style:{height:`${c.value}px`}},[n.map(((a,n)=>t.createVNode(Si,{key:a.id,ref:r(n),coupon:a,chosen:Array.isArray(l)?l.includes(n):n===l,currency:e.currency,onClick:()=>o("change",Array.isArray(l)?((e=[],t=0)=>e.includes(t)?e.filter((e=>e!==t)):[...e,t])(l,n):n)},null))),!n.length&&f(),null==(i=a["list-footer"])?void 0:i.call(a)])]}})},b=()=>{const{disabledCoupons:o}=e,n=e.showCount?` (${o.length})`:"",r=(e.disabledTitle||Ri("disabled"))+n;return t.createVNode(fa,{title:r},{default:()=>{var n;return[t.createVNode("div",{class:Mi("list",{"with-bottom":e.showCloseButton}),style:{height:`${c.value}px`}},[o.map((o=>t.createVNode(Si,{disabled:!0,key:o.id,coupon:o,currency:e.currency},null))),!o.length&&f(),null==(n=a["disabled-list-footer"])?void 0:n.call(a)])]}})};return t.watch((()=>e.code),(e=>{d.value=e})),t.watch(ue,p),t.watch(d,(e=>o("update:code",e))),t.watch((()=>e.displayedCouponIndex),m),t.onMounted((()=>{p(),m(e.displayedCouponIndex)})),()=>t.createVNode("div",{ref:l,class:Mi()},[h(),t.createVNode(ha,{active:s.value,"onUpdate:active":e=>s.value=e,class:Mi("tab")},{default:()=>[g(),b()]}),t.createVNode("div",{class:Mi("bottom")},[a["list-button"]?a["list-button"]():t.withDirectives(t.createVNode(It,{round:!0,block:!0,type:"primary",class:Mi("close"),text:e.closeButtonText||Ri("close"),onClick:()=>o("change",Array.isArray(e.chosenCoupon)?[]:-1)},null),[[t.vShow,e.showCloseButton]])])])}})),ji=(new Date).getFullYear(),[Wi]=Ee("date-picker"),Ui=r({},Jr,{columnsType:{type:Array,default:()=>["year","month","day"]},minDate:{type:Date,default:()=>new Date(ji-10,0,1),validator:u},maxDate:{type:Date,default:()=>new Date(ji+10,11,31),validator:u}});const Yi=qe(t.defineComponent({name:Wi,props:Ui,emits:["confirm","cancel","change","update:modelValue"],setup(e,{emit:o,slots:a}){const n=t.ref(e.modelValue),r=t.ref(!1),l=t.ref(),i=t.computed((()=>r.value?e.modelValue:n.value)),s=t=>t===e.minDate.getFullYear(),c=t=>t===e.maxDate.getFullYear(),d=t=>{const{minDate:o,columnsType:a}=e,n=a.indexOf(t),r=i.value[n];if(r)return+r;switch(t){case"year":return o.getFullYear();case"month":return o.getMonth()+1;case"day":return o.getDate()}},u=()=>{const t=d("year"),o=d("month"),a=s(t)&&(t=>t===e.minDate.getMonth()+1)(o)?e.minDate.getDate():1,n=c(t)&&(t=>t===e.maxDate.getMonth()+1)(o)?e.maxDate.getDate():el(t,o);return tl(a,n,"day",e.formatter,e.filter,i.value)},p=t.computed((()=>e.columnsType.map((t=>{switch(t){case"year":return(()=>{const t=e.minDate.getFullYear(),o=e.maxDate.getFullYear();return tl(t,o,"year",e.formatter,e.filter,i.value)})();case"month":return(()=>{const t=d("year"),o=s(t)?e.minDate.getMonth()+1:1,a=c(t)?e.maxDate.getMonth()+1:12;return tl(o,a,"month",e.formatter,e.filter,i.value)})();case"day":return u();default:return[]}}))));t.watch(n,(t=>{h(t,e.modelValue)||o("update:modelValue",t)})),t.watch((()=>e.modelValue),((e,t)=>{r.value=h(t,n.value),e=ol(e,p.value),h(e,n.value)||(n.value=e),r.value=!1}),{immediate:!0});const v=(...e)=>o("change",...e),m=(...e)=>o("cancel",...e),g=(...e)=>o("confirm",...e);return nt({confirm:()=>{var e;return null==(e=l.value)?void 0:e.confirm()},getSelectedDate:()=>n.value}),()=>t.createVNode(Da,t.mergeProps({ref:l,modelValue:n.value,"onUpdate:modelValue":e=>n.value=e,columns:p.value,onChange:v,onCancel:m,onConfirm:g},f(e,Qr)),a)}})),[Xi,qi,Gi]=Ee("dialog"),Zi=r({},jt,{title:String,theme:String,width:y,message:[String,Function],callback:Function,allowHtml:Boolean,className:b,transition:k("van-dialog-bounce"),messageAlign:String,closeOnPopstate:w,showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,cancelButtonDisabled:Boolean,confirmButtonText:String,confirmButtonColor:String,confirmButtonDisabled:Boolean,showConfirmButton:w,closeOnClickOverlay:Boolean,keyboardEnabled:w}),Ki=[...Wt,"transition","closeOnPopstate"];var _i=t.defineComponent({name:Xi,props:Zi,emits:["confirm","cancel","keydown","update:show"],setup(e,{emit:o,slots:a}){const r=t.ref(),l=t.reactive({confirm:!1,cancel:!1}),i=e=>o("update:show",e),s=t=>{var o;i(!1),null==(o=e.callback)||o.call(e,t)},d=t=>()=>{e.show&&(o(t),e.beforeClose?(l[t]=!0,Xe(e.beforeClose,{args:[t],done(){s(t),l[t]=!1},canceled(){l[t]=!1}})):s(t))},u=d("cancel"),p=d("confirm"),v=t.withKeys((t=>{var a,l;if(!e.keyboardEnabled)return;if(t.target!==(null==(l=null==(a=r.value)?void 0:a.popupRef)?void 0:l.value))return;({Enter:e.showConfirmButton?p:n,Escape:e.showCancelButton?u:n})[t.key](),o("keydown",t)}),["enter","esc"]),m=()=>{const o=a.title?a.title():e.title;if(o)return t.createVNode("div",{class:qi("header",{isolated:!e.message&&!a.default})},[o])},h=o=>{const{message:a,allowHtml:n,messageAlign:r}=e,l=qi("message",{"has-title":o,[r]:r}),i=c(a)?a():a;return n&&"string"==typeof i?t.createVNode("div",{class:l,innerHTML:i},null):t.createVNode("div",{class:l},[i])},g=()=>{if(a.default)return t.createVNode("div",{class:qi("content")},[a.default()]);const{title:o,message:n,allowHtml:r}=e;if(n){const e=!(!o&&!a.title);return t.createVNode("div",{key:r?1:0,class:qi("content",{isolated:!e})},[h(e)])}},b=()=>a.footer?a.footer():"round-button"===e.theme?t.createVNode(at,{class:qi("footer")},{default:()=>[e.showCancelButton&&t.createVNode($t,{type:"warning",text:e.cancelButtonText||Gi("cancel"),class:qi("cancel"),color:e.cancelButtonColor,loading:l.cancel,disabled:e.cancelButtonDisabled,onClick:u},null),e.showConfirmButton&&t.createVNode($t,{type:"danger",text:e.confirmButtonText||Gi("confirm"),class:qi("confirm"),color:e.confirmButtonColor,loading:l.confirm,disabled:e.confirmButtonDisabled,onClick:p},null)]}):t.createVNode("div",{class:[$e,qi("footer")]},[e.showCancelButton&&t.createVNode(It,{size:"large",text:e.cancelButtonText||Gi("cancel"),class:qi("cancel"),style:{color:e.cancelButtonColor},loading:l.cancel,disabled:e.cancelButtonDisabled,onClick:u},null),e.showConfirmButton&&t.createVNode(It,{size:"large",text:e.confirmButtonText||Gi("confirm"),class:[qi("confirm"),{[Me]:e.showCancelButton}],style:{color:e.confirmButtonColor},loading:l.confirm,disabled:e.confirmButtonDisabled,onClick:p},null)]);return()=>{const{width:o,title:a,theme:n,message:l,className:s}=e;return t.createVNode(ao,t.mergeProps({ref:r,role:"dialog",class:[qi([n]),s],style:{width:ve(o)},tabindex:0,"aria-labelledby":a||l,onKeydown:v,"onUpdate:show":i},f(e,Ki)),{default:()=>[m(),g(),b()]})}}});let Ji;const Qi={title:"",width:"",theme:null,message:"",overlay:!0,callback:null,teleport:"body",className:"",allowHtml:!1,lockScroll:!0,transition:void 0,beforeClose:null,overlayClass:"",overlayStyle:void 0,messageAlign:"",cancelButtonText:"",cancelButtonColor:null,cancelButtonDisabled:!1,confirmButtonText:"",confirmButtonColor:null,confirmButtonDisabled:!1,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1};let es=r({},Qi);function ts(e){return l?new Promise(((o,a)=>{Ji||function(){const e={setup(){const{state:e,toggle:o}=sn();return()=>t.createVNode(_i,t.mergeProps(e,{"onUpdate:show":o}),null)}};({instance:Ji}=cn(e))}(),Ji.open(r({},es,e,{callback:e=>{("confirm"===e?o:a)(e)}}))})):Promise.resolve(void 0)}const os=qe(_i),[as,ns]=Ee("divider"),rs={dashed:Boolean,hairline:w,vertical:Boolean,contentPosition:k("center")};const ls=qe(t.defineComponent({name:as,props:rs,setup:(e,{slots:o})=>()=>{var a;return t.createVNode("div",{role:"separator",class:ns({dashed:e.dashed,hairline:e.hairline,vertical:e.vertical,[`content-${e.contentPosition}`]:!!o.default&&!e.vertical})},[!e.vertical&&(null==(a=o.default)?void 0:a.call(o))])}})),[is,ss]=Ee("dropdown-menu"),cs={overlay:w,zIndex:y,duration:C(.2),direction:k("down"),activeColor:String,autoLocate:Boolean,closeOnClickOutside:w,closeOnClickOverlay:w,swipeThreshold:y},ds=Symbol(is);var us=t.defineComponent({name:is,props:cs,setup(e,{slots:o}){const a=Ro(),n=t.ref(),r=t.ref(),l=t.ref(0),{children:i,linkChildren:c}=E(ds),d=K(n),u=t.computed((()=>i.some((e=>e.state.showWrapper)))),p=t.computed((()=>e.swipeThreshold&&i.length>+e.swipeThreshold)),v=t.computed((()=>{if(u.value&&s(e.zIndex))return{zIndex:+e.zIndex+1}})),m=()=>{i.forEach((e=>{e.toggle(!1)}))},f=()=>{if(r.value){const t=O(r);"down"===e.direction?l.value=t.bottom:l.value=ue.value-t.top}},h=(o,n)=>{const{showPopup:r}=o.state,{disabled:l,titleClass:s}=o;return t.createVNode("div",{id:`${a}-${n}`,role:"button",tabindex:l?void 0:0,"data-allow-mismatch":"attribute",class:[ss("item",{disabled:l,grow:p.value}),{[Ue]:!l}],onClick:()=>{var e;l||(e=n,i.forEach(((t,o)=>{o===e?t.toggle():t.state.showPopup&&t.toggle(!1,{immediate:!0})})))}},[t.createVNode("span",{class:[ss("title",{down:r===("down"===e.direction),active:r}),s],style:{color:r?e.activeColor:""}},[t.createVNode("div",{class:"van-ellipsis"},[o.renderTitle()])])])};return nt({close:m}),c({id:a,props:e,offset:l,updateOffset:f}),W(n,(()=>{e.closeOnClickOutside&&m()})),j("scroll",(()=>{u.value&&f()}),{target:d,passive:!0}),()=>{var e;return t.createVNode("div",{ref:n,class:ss()},[t.createVNode("div",{ref:r,style:v.value,class:ss("bar",{opened:u.value,scrollable:p.value})},[i.map(h)]),null==(e=o.default)?void 0:e.call(o)])}}});const[ps,vs]=Ee("dropdown-item"),ms={title:String,options:V(),disabled:Boolean,teleport:[String,Object],lazyRender:w,modelValue:b,titleClass:b};const fs=qe(t.defineComponent({name:ps,inheritAttrs:!1,props:ms,emits:["open","opened","close","closed","change","update:modelValue"],setup(e,{emit:o,slots:a,attrs:n}){const r=t.reactive({showPopup:!1,transition:!0,showWrapper:!1}),l=t.ref(),{parent:i,index:s}=A(ds);if(!i)return;const c=e=>()=>o(e),d=c("open"),u=c("close"),p=c("opened"),v=()=>{r.showWrapper=!1,o("closed")},m=t=>{e.teleport&&t.stopPropagation()},f=a=>{const{activeColor:n}=i.props,{disabled:l}=a,s=a.value===e.modelValue;return t.createVNode(Ra,{role:"menuitem",key:String(a.value),icon:a.icon,title:a.text,class:vs("option",{active:s,disabled:l}),style:{color:s?n:""},tabindex:s?0:-1,clickable:!l,onClick:()=>{l||(r.showPopup=!1,a.value!==e.modelValue&&(o("update:modelValue",a.value),o("change",a.value)))}},{value:()=>{if(s)return t.createVNode(Vt,{class:vs("icon"),color:l?void 0:n,name:"success"},null)}})},h=()=>{const{offset:o}=i,{autoLocate:c,zIndex:h,overlay:g,duration:b,direction:y,closeOnClickOverlay:w}=i.props,x=fe(h);let V=o.value;if(c&&l.value){const e=function(e){let t=e.parentElement;for(;t;){if(t&&"HTML"!==t.tagName&&"BODY"!==t.tagName&&pe(t))return t;t=t.parentElement}return null}(l.value);e&&(V-=O(e).top)}return"down"===y?x.top=`${V}px`:x.bottom=`${V}px`,t.withDirectives(t.createVNode("div",t.mergeProps({ref:l,style:x,class:vs([y]),onClick:m},n),[t.createVNode(ao,{show:r.showPopup,"onUpdate:show":e=>r.showPopup=e,role:"menu",class:vs("content"),overlay:g,position:"down"===y?"top":"bottom",duration:r.transition?b:0,lazyRender:e.lazyRender,overlayStyle:{position:"absolute"},"aria-labelledby":`${i.id}-${s.value}`,"data-allow-mismatch":"attribute",closeOnClickOverlay:w,onOpen:d,onClose:u,onOpened:p,onClosed:v},{default:()=>{var t;return[e.options.map(f),null==(t=a.default)?void 0:t.call(a)]}})]),[[t.vShow,r.showWrapper]])};return nt({state:r,toggle:(e=!r.showPopup,t={})=>{e!==r.showPopup&&(r.showPopup=e,r.transition=!t.immediate,e&&(i.updateOffset(),r.showWrapper=!0))},renderTitle:()=>{if(a.title)return a.title();if(e.title)return e.title;const t=e.options.find((t=>t.value===e.modelValue));return t?t.text:""}}),()=>e.teleport?t.createVNode(t.Teleport,{to:e.teleport},{default:()=>[h()]}):h()}})),hs=qe(us),gs={gap:N(24),icon:String,axis:k("y"),magnetic:String,offset:{type:Object,default:()=>({x:-1,y:-1})},teleport:{type:[String,Object],default:"body"}},[bs,ys]=Ee("floating-bubble");const ws=qe(t.defineComponent({name:bs,inheritAttrs:!1,props:gs,emits:["click","update:offset","offsetChange"],setup(e,{slots:o,emit:a,attrs:n}){const r=t.ref(),l=t.ref({x:0,y:0,width:0,height:0}),i=t.computed((()=>({top:e.gap,right:de.value-l.value.width-e.gap,bottom:ue.value-l.value.height-e.gap,left:e.gap}))),s=t.ref(!1);let c=!1;const d=t.computed((()=>{const e={},t=ve(l.value.x),o=ve(l.value.y);return e.transform=`translate3d(${t}, ${o}, 0)`,!s.value&&c||(e.transition="none"),e})),u=()=>{if(!y.value)return;const{width:t,height:o}=O(r.value),{offset:a}=e;l.value={x:a.x>-1?a.x:de.value-t-e.gap,y:a.y>-1?a.y:ue.value-o-e.gap,width:t,height:o}},p=Ut();let v=0,m=0;const h=e=>{p.start(e),s.value=!0,v=l.value.x,m=l.value.y};j("touchmove",(t=>{if(t.preventDefault(),p.move(t),"lock"!==e.axis&&!p.isTap.value){if("x"===e.axis||"xy"===e.axis){let e=v+p.deltaX.value;e<i.value.left&&(e=i.value.left),e>i.value.right&&(e=i.value.right),l.value.x=e}if("y"===e.axis||"xy"===e.axis){let e=m+p.deltaY.value;e<i.value.top&&(e=i.value.top),e>i.value.bottom&&(e=i.value.bottom),l.value.y=e}const t=f(l.value,["x","y"]);a("update:offset",t)}}),{target:r});const g=()=>{s.value=!1,t.nextTick((()=>{if("x"===e.magnetic){const e=Ge([i.value.left,i.value.right],l.value.x);l.value.x=e}if("y"===e.magnetic){const e=Ge([i.value.top,i.value.bottom],l.value.y);l.value.y=e}if(!p.isTap.value){const e=f(l.value,["x","y"]);a("update:offset",e),v===e.x&&m===e.y||a("offsetChange",e)}}))},b=e=>{p.isTap.value?a("click",e):e.stopPropagation()};t.onMounted((()=>{u(),t.nextTick((()=>{c=!0}))})),t.watch([de,ue,()=>e.gap,()=>e.offset],u,{deep:!0});const y=t.ref(!0);return t.onActivated((()=>{y.value=!0})),t.onDeactivated((()=>{e.teleport&&(y.value=!1)})),()=>{const a=t.withDirectives(t.createVNode("div",t.mergeProps({class:ys(),ref:r,onTouchstartPassive:h,onTouchend:g,onTouchcancel:g,onClickCapture:b,style:d.value},n),[o.default?o.default():t.createVNode(Nt,{name:e.icon,class:ys("icon")},null)]),[[t.vShow,y.value]]);return e.teleport?t.createVNode(t.Teleport,{to:e.teleport},{default:()=>[a]}):a}}})),xs={height:C(0),anchors:V(),duration:C(.3),contentDraggable:w,lockScroll:Boolean,safeAreaInsetBottom:w},[Vs,Ns]=Ee("floating-panel");const Cs=qe(t.defineComponent({name:Vs,props:xs,emits:["heightChange","update:height"],setup(e,{emit:o,slots:a}){const n=t.ref(),r=t.ref(),l=So((()=>+e.height),(e=>o("update:height",e))),i=t.computed((()=>{var t,o;return{min:null!=(t=e.anchors[0])?t:100,max:null!=(o=e.anchors[e.anchors.length-1])?o:Math.round(.6*ue.value)}})),s=t.computed((()=>e.anchors.length>=2?e.anchors:[i.value.min,i.value.max])),c=t.ref(!1),d=t.computed((()=>({height:ve(i.value.max),transform:`translateY(calc(100% + ${ve(-l.value)}))`,transition:c.value?"none":`transform ${e.duration}s cubic-bezier(0.18, 0.89, 0.32, 1.28)`})));let u,p=-1;const v=Ut(),m=e=>{v.start(e),c.value=!0,u=-l.value,p=-1},f=()=>{p=-1,c.value=!1,l.value=Ge(s.value,l.value),l.value!==-u&&o("heightChange",{height:l.value})};t.watch(i,(()=>{l.value=Ge(s.value,l.value)}),{immediate:!0}),qt(n,(()=>e.lockScroll||c.value)),j("touchmove",(t=>{var o;v.move(t);const a=t.target;if(r.value===a||(null==(o=r.value)?void 0:o.contains(a))){const{scrollTop:o}=r.value;if(p=Math.max(p,o),!e.contentDraggable)return;if(-u<i.value.max)se(t,!0);else if(!(o<=0&&v.deltaY.value>0)||p>0)return}const n=v.deltaY.value+u;l.value=-(e=>{const t=Math.abs(e),{min:o,max:a}=i.value;return t>a?-(a+.2*(t-a)):t<o?-(o-.2*(o-t)):e})(n)}),{target:n});return()=>{var o;return t.createVNode("div",{class:[Ns(),{"van-safe-area-bottom":e.safeAreaInsetBottom}],ref:n,style:d.value,onTouchstartPassive:m,onTouchend:f,onTouchcancel:f},[a.header?a.header():t.createVNode("div",{class:Ns("header")},[t.createVNode("div",{class:Ns("header-bar")},null)]),t.createVNode("div",{class:Ns("content"),ref:r},[null==(o=a.default)?void 0:o.call(a)])])}}})),[ks,Ss]=Ee("grid"),Ts={square:Boolean,center:w,border:w,gutter:y,reverse:Boolean,iconSize:y,direction:String,clickable:Boolean,columnNum:C(4)},Bs=Symbol(ks);const Ps=qe(t.defineComponent({name:ks,props:Ts,setup(e,{slots:o}){const{linkChildren:a}=E(Bs);return a({props:e}),()=>{var a;return t.createVNode("div",{style:{paddingLeft:ve(e.gutter)},class:[Ss(),{[$e]:e.border&&!e.gutter}]},[null==(a=o.default)?void 0:a.call(o)])}}})),[Ds,Os]=Ee("grid-item"),As=r({},rt,{dot:Boolean,text:String,icon:String,badge:y,iconColor:String,iconPrefix:String,badgeProps:Object});const Is=qe(t.defineComponent({name:Ds,props:As,setup(e,{slots:o}){const{parent:a,index:n}=A(Bs),r=it();if(!a)return;const l=t.computed((()=>{const{square:e,gutter:t,columnNum:o}=a.props,r=100/+o+"%",l={flexBasis:r};if(e)l.paddingTop=r;else if(t){const e=ve(t);l.paddingRight=e,n.value>=+o&&(l.marginTop=e)}return l})),i=t.computed((()=>{const{square:e,gutter:t}=a.props;if(e&&t){const e=ve(t);return{right:e,bottom:e,height:"auto"}}}));return()=>{const{center:n,border:s,square:c,gutter:d,reverse:u,direction:p,clickable:v}=a.props,m=[Os("content",[p,{center:n,square:c,reverse:u,clickable:v,surround:s&&d}]),{[Le]:s}];return t.createVNode("div",{class:[Os({square:c})],style:l.value},[t.createVNode("div",{role:v?"button":void 0,class:m,style:i.value,tabindex:v?0:void 0,onClick:r},[o.default?o.default():[o.icon?t.createVNode(ut,t.mergeProps({dot:e.dot,content:e.badge},e.badgeProps),{default:o.icon}):e.icon?t.createVNode(Vt,{dot:e.dot,name:e.icon,size:a.props.iconSize,badge:e.badge,class:Os("icon"),color:e.iconColor,badgeProps:e.badgeProps,classPrefix:e.iconPrefix},null):void 0,o.text?o.text():e.text?t.createVNode("span",{class:Os("text")},[e.text]):void 0]])])}}})),[zs,Es]=Ee("highlight"),Ls={autoEscape:w,caseSensitive:Boolean,highlightClass:String,highlightTag:k("span"),keywords:x([String,Array]),sourceString:k(""),tag:k("div"),unhighlightClass:String,unhighlightTag:k("span")};const $s=qe(t.defineComponent({name:zs,props:Ls,setup(e){const o=t.computed((()=>{const{autoEscape:t,caseSensitive:o,keywords:a,sourceString:n}=e,r=o?"g":"gi";let l=(Array.isArray(a)?a:[a]).filter((e=>e)).reduce(((e,o)=>{t&&(o=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));const a=new RegExp(o,r);let l;for(;l=a.exec(n);){const t=l.index,o=a.lastIndex;t>=o?a.lastIndex++:e.push({start:t,end:o,highlight:!0})}return e}),[]);l=l.sort(((e,t)=>e.start-t.start)).reduce(((e,t)=>{const o=e[e.length-1];if(!o||t.start>o.end){const a=o?o.end:0,n=t.start;a!==n&&e.push({start:a,end:n,highlight:!1}),e.push(t)}else o.end=Math.max(o.end,t.end);return e}),[]);const i=l[l.length-1];return i||l.push({start:0,end:n.length,highlight:!1}),i&&i.end<n.length&&l.push({start:i.end,end:n.length,highlight:!1}),l})),a=()=>{const{sourceString:a,highlightClass:n,unhighlightClass:r,highlightTag:l,unhighlightTag:i}=e;return o.value.map((e=>{const{start:o,end:s,highlight:c}=e,d=a.slice(o,s);return c?t.createVNode(l,{class:[Es("tag"),n]},{default:()=>[d]}):t.createVNode(i,{class:r},{default:()=>[d]})}))};return()=>{const{tag:o}=e;return t.createVNode(o,{class:Es()},{default:()=>[a()]})}}})),Ms=e=>Math.sqrt((e[0].clientX-e[1].clientX)**2+(e[0].clientY-e[1].clientY)**2),Rs=Ee("image-preview")[1],Fs={src:String,show:Boolean,active:Number,minZoom:x(y),maxZoom:x(y),rootWidth:x(Number),rootHeight:x(Number),disableZoom:Boolean,doubleScale:Boolean,closeOnClickImage:Boolean,closeOnClickOverlay:Boolean,vertical:Boolean};var Hs=t.defineComponent({props:Fs,emits:["scale","close","longPress"],setup(e,{emit:o,slots:a}){const n=t.reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,initializing:!1,imageRatio:0}),r=Ut(),l=t.ref(),i=t.ref(),s=t.ref(!1),c=t.ref(!1);let d=0;const u=t.computed((()=>{const{scale:e,moveX:t,moveY:o,moving:a,zooming:r,initializing:l}=n,i={transitionDuration:r||a||l?"0s":".3s"};return(1!==e||c.value)&&(i.transform=`matrix(${e}, 0, 0, ${e}, ${t}, ${o})`),i})),p=t.computed((()=>{if(n.imageRatio){const{rootWidth:t,rootHeight:o}=e,a=s.value?o/n.imageRatio:t;return Math.max(0,(n.scale*a-t)/2)}return 0})),v=t.computed((()=>{if(n.imageRatio){const{rootWidth:t,rootHeight:o}=e,a=s.value?o:t*n.imageRatio;return Math.max(0,(n.scale*a-o)/2)}return 0})),m=(t,a)=>{var r;if((t=Ve(t,+e.minZoom,+e.maxZoom+1))!==n.scale){const i=t/n.scale;if(n.scale=t,a){const e=O(null==(r=l.value)?void 0:r.$el),t={x:.5*e.width,y:.5*e.height},o=n.moveX-(a.x-e.left-t.x)*(i-1),s=n.moveY-(a.y-e.top-t.y)*(i-1);n.moveX=Ve(o,-p.value,p.value),n.moveY=Ve(s,-v.value,v.value)}else n.moveX=0,n.moveY=c.value?d:0;o("scale",{scale:t,index:e.active})}},f=()=>{m(1)};let h,g,b,y,w,x,V,N,C=!1;const k=t=>{const{touches:o}=t;if(h=o.length,2===h&&e.disableZoom)return;const{offsetX:a}=r;r.start(t),g=n.moveX,b=n.moveY,N=Date.now(),C=!1,n.moving=1===h&&(1!==n.scale||c.value),n.zooming=2===h&&!a.value,n.zooming&&(y=n.scale,w=Ms(o))},S=t=>{var a;const n=null==(a=i.value)?void 0:a.$el;if(!n)return;const r=n.firstElementChild,l=t.target===n,s=null==r?void 0:r.contains(t.target);!e.closeOnClickImage&&s||!e.closeOnClickOverlay&&l||o("close")},B=t=>{if(h>1)return;const a=Date.now()-N;r.isTap.value&&(a<250?e.doubleScale?V?(clearTimeout(V),V=null,(()=>{const e=n.scale>1?1:2;m(e,2===e||c.value?{x:r.startX.value,y:r.startY.value}:void 0)})()):V=setTimeout((()=>{S(t),V=null}),250):S(t):a>500&&o("longPress"))},P=t=>{let o=!1;if((n.moving||n.zooming)&&(o=!0,n.moving&&g===n.moveX&&b===n.moveY&&(o=!1),!t.touches.length)){n.zooming&&(n.moveX=Ve(n.moveX,-p.value,p.value),n.moveY=Ve(n.moveY,-v.value,v.value),n.zooming=!1),n.moving=!1,g=0,b=0,y=1,n.scale<1&&f();const t=+e.maxZoom;n.scale>t&&m(t,x)}se(t,o),B(t),r.reset()},D=()=>{const{rootWidth:t,rootHeight:o}=e,a=o/t,{imageRatio:r}=n;s.value=n.imageRatio>a&&r<2.6,c.value=n.imageRatio>a&&r>=2.6,c.value&&(d=(r*t-o)/2,n.moveY=d,n.initializing=!0,T((()=>{n.initializing=!1}))),f()},A=e=>{const{naturalWidth:t,naturalHeight:o}=e.target;n.imageRatio=o/t,D()};return t.watch((()=>e.active),f),t.watch((()=>e.show),(e=>{e||f()})),t.watch((()=>[e.rootWidth,e.rootHeight]),D),j("touchmove",(t=>{const{touches:o}=t;if(r.move(t),n.moving){const{deltaX:o,deltaY:a}=r,l=o.value+g,i=a.value+b;if((e.vertical?r.isVertical()&&Math.abs(i)>v.value:r.isHorizontal()&&Math.abs(l)>p.value)&&!C)return void(n.moving=!1);C=!0,se(t,!0),n.moveX=Ve(l,-p.value,p.value),n.moveY=Ve(i,-v.value,v.value)}if(n.zooming&&(se(t,!0),2===o.length)){const e=Ms(o),t=y*e/w;x=(e=>({x:(e[0].clientX+e[1].clientX)/2,y:(e[0].clientY+e[1].clientY)/2}))(o),m(t,x)}}),{target:t.computed((()=>{var e;return null==(e=i.value)?void 0:e.$el}))}),nt({resetScale:f}),()=>{const o={loading:()=>t.createVNode(Pt,{type:"spinner"},null)};return t.createVNode(ua,{ref:i,class:Rs("swipe-item"),onTouchstartPassive:k,onTouchend:P,onTouchcancel:P},{default:()=>[a.image?t.createVNode("div",{class:Rs("image-wrap")},[a.image({src:e.src,onLoad:A,style:u.value})]):t.createVNode(fl,{ref:l,src:e.src,fit:"contain",class:Rs("image",{vertical:s.value}),style:u.value,onLoad:A},o)]})}}});const[js,Ws]=Ee("image-preview"),Us=["show","teleport","transition","overlayStyle","closeOnPopstate"],Ys={show:Boolean,loop:w,images:V(),minZoom:C(1/3),maxZoom:C(3),overlay:w,vertical:Boolean,closeable:Boolean,showIndex:w,className:b,closeIcon:k("clear"),transition:String,beforeClose:Function,doubleScale:w,overlayClass:b,overlayStyle:Object,swipeDuration:C(300),startPosition:C(0),showIndicators:Boolean,closeOnPopstate:w,closeOnClickImage:w,closeOnClickOverlay:w,closeIconPosition:k("top-right"),teleport:[String,Object]};var Xs=t.defineComponent({name:js,props:Ys,emits:["scale","close","closed","change","longPress","update:show"],setup(e,{emit:o,slots:a}){const n=t.ref(),r=t.ref(),l=t.reactive({active:0,rootWidth:0,rootHeight:0,disableZoom:!1}),i=()=>{if(n.value){const e=O(n.value.$el);l.rootWidth=e.width,l.rootHeight=e.height,n.value.resize()}},s=e=>o("scale",e),c=e=>o("update:show",e),d=()=>{Xe(e.beforeClose,{args:[l.active],done:()=>c(!1)})},u=e=>{e!==l.active&&(l.active=e,o("change",e))},p=()=>{if(e.showIndex)return t.createVNode("div",{class:Ws("index")},[a.index?a.index({index:l.active}):`${l.active+1} / ${e.images.length}`])},v=()=>{if(a.cover)return t.createVNode("div",{class:Ws("cover")},[a.cover()])},m=()=>{l.disableZoom=!0},h=()=>{l.disableZoom=!1},g=()=>{if(e.closeable)return t.createVNode(Vt,{role:"button",name:e.closeIcon,class:[Ws("close-icon",e.closeIconPosition),Ue],onClick:d},null)},b=()=>o("closed"),y=(e,t)=>{var o;return null==(o=n.value)?void 0:o.swipeTo(e,t)};return nt({resetScale:()=>{var e;null==(e=r.value)||e.resetScale()},swipeTo:y}),t.onMounted(i),t.watch([de,ue],i),t.watch((()=>e.startPosition),(e=>u(+e))),t.watch((()=>e.show),(a=>{const{images:n,startPosition:r}=e;a?(u(+r),t.nextTick((()=>{i(),y(+r,{immediate:!0})}))):o("close",{index:l.active,url:n[l.active]})})),()=>t.createVNode(ao,t.mergeProps({class:[Ws(),e.className],overlayClass:[Ws("overlay"),e.overlayClass],onClosed:b,"onUpdate:show":c},f(e,Us)),{default:()=>[g(),t.createVNode(Ko,{ref:n,lazyRender:!0,loop:e.loop,class:Ws("swipe"),vertical:e.vertical,duration:e.swipeDuration,initialSwipe:e.startPosition,showIndicators:e.showIndicators,indicatorColor:"white",onChange:u,onDragEnd:h,onDragStart:m},{default:()=>[e.images.map(((n,i)=>t.createVNode(Hs,{ref:e=>{i===l.active&&(r.value=e)},src:n,show:e.show,active:l.active,maxZoom:e.maxZoom,minZoom:e.minZoom,rootWidth:l.rootWidth,rootHeight:l.rootHeight,disableZoom:l.disableZoom,doubleScale:e.doubleScale,closeOnClickImage:e.closeOnClickImage,closeOnClickOverlay:e.closeOnClickOverlay,vertical:e.vertical,onScale:s,onClose:d,onLongPress:()=>o("longPress",{index:i})},{image:a.image})))]}),p(),v()]})}});let qs;const Gs={loop:!0,images:[],maxZoom:3,minZoom:1/3,onScale:void 0,onClose:void 0,onChange:void 0,vertical:!1,teleport:"body",className:"",showIndex:!0,closeable:!1,closeIcon:"clear",transition:void 0,beforeClose:void 0,doubleScale:!0,overlayStyle:void 0,overlayClass:void 0,startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeOnClickOverlay:!0,closeIconPosition:"top-right"};const Zs=(e,o=0)=>{if(l)return qs||({instance:qs}=cn({setup(){const{state:e,toggle:o}=sn(),a=()=>{e.images=[]};return()=>t.createVNode(Xs,t.mergeProps(e,{onClosed:a,"onUpdate:show":o}),null)}})),e=Array.isArray(e)?{images:e,startPosition:o}:e,qs.open(r({},Gs,e)),qs},Ks=qe(Xs);const[_s,Js]=Ee("index-bar"),Qs={sticky:w,zIndex:y,teleport:[String,Object],highlightColor:String,stickyOffsetTop:N(0),indexList:{type:Array,default:function(){const e="A".charCodeAt(0);return Array(26).fill("").map(((t,o)=>String.fromCharCode(e+o)))}}},ec=Symbol(_s);var tc=t.defineComponent({name:_s,props:Qs,emits:["select","change"],setup(e,{emit:o,slots:a}){const n=t.ref(),r=t.ref(),l=t.ref(""),i=Ut(),c=K(n),{children:d,linkChildren:u}=E(ec);let p;u({props:e});const v=t.computed((()=>{if(s(e.zIndex))return{zIndex:+e.zIndex+1}})),m=t.computed((()=>{if(e.highlightColor)return{color:e.highlightColor}})),f=(t,o)=>{for(let a=d.length-1;a>=0;a--){const n=a>0?o[a-1].height:0;if(t+(e.sticky?n+e.stickyOffsetTop:0)>=o[a].top)return a}return-1},h=e=>d.find((t=>String(t.index)===e)),g=()=>{if(ce(n))return;const{sticky:t,indexList:o}=e,a=ee(c.value),r=O(c),i=d.map((e=>e.getRect(c.value,r)));let s=-1;if(p){const t=h(p);if(t){const o=t.getRect(c.value,r);s=e.sticky&&e.stickyOffsetTop?f(o.top-e.stickyOffsetTop,i):f(o.top,i)}}else s=f(a,i);l.value=o[s],t&&d.forEach(((t,o)=>{const{state:n,$el:l}=t;if(o===s||o===s-1){const e=l.getBoundingClientRect();n.left=e.left,n.width=e.width}else n.left=null,n.width=null;if(o===s)n.active=!0,n.top=Math.max(e.stickyOffsetTop,i[o].top-a)+r.top;else if(o===s-1&&""===p){const e=i[s].top-a;n.active=e>0,n.top=e+r.top-i[o].height}else n.active=!1})),p=""},b=()=>{t.nextTick(g)};j("scroll",g,{target:c,passive:!0}),t.onMounted(b),t.watch((()=>e.indexList),b),t.watch(l,(e=>{e&&o("change",e)}));const y=t=>{p=String(t);const a=h(p);if(a){const t=ee(c.value),n=O(c),{offsetHeight:r}=document.documentElement;if(a.$el.scrollIntoView(),t===r-n.height)return void g();e.sticky&&e.stickyOffsetTop&&(oe()===r-n.height?ae(oe()):ae(oe()-e.stickyOffsetTop)),o("select",a.index)}},w=e=>{const{index:t}=e.dataset;t&&y(t)},x=e=>{w(e.target)};let V;const N=()=>t.createVNode("div",{ref:r,class:Js("sidebar"),style:v.value,onClick:x,onTouchstartPassive:i.start},[e.indexList.map((e=>{const o=e===l.value;return t.createVNode("span",{class:Js("index",{active:o}),style:o?m.value:void 0,"data-index":e},[e])}))]);return nt({scrollTo:y}),j("touchmove",(e=>{if(i.move(e),i.isVertical()){se(e);const{clientX:t,clientY:o}=e.touches[0],a=document.elementFromPoint(t,o);if(a){const{index:e}=a.dataset;e&&V!==e&&(V=e,w(a))}}}),{target:r}),()=>{var o;return t.createVNode("div",{ref:n,class:Js()},[e.teleport?t.createVNode(t.Teleport,{to:e.teleport},{default:()=>[N()]}):N(),null==(o=a.default)?void 0:o.call(a)])}}});const[oc,ac]=Ee("index-anchor"),nc={index:y};const rc=qe(t.defineComponent({name:oc,props:nc,setup(e,{slots:o}){const a=t.reactive({top:0,left:null,rect:{top:0,height:0},width:null,active:!1}),n=t.ref(),{parent:l}=A(ec);if(!l)return;const i=()=>a.active&&l.props.sticky,s=t.computed((()=>{const{zIndex:e,highlightColor:t}=l.props;if(i())return r(fe(e),{left:a.left?`${a.left}px`:void 0,width:a.width?`${a.width}px`:void 0,transform:a.top?`translate3d(0, ${a.top}px, 0)`:void 0,color:t})}));return nt({state:a,getRect:(e,t)=>{const o=O(n);return a.rect.height=o.height,e===window||e===document.body?a.rect.top=o.top+oe():a.rect.top=o.top+ee(e)-t.top,a.rect}}),()=>{const r=i();return t.createVNode("div",{ref:n,style:{height:r?`${a.rect.height}px`:void 0}},[t.createVNode("div",{style:s.value,class:[ac({sticky:r}),{[Fe]:r}]},[o.default?o.default():e.index])])}}})),lc=qe(tc),[ic,sc,cc]=Ee("list"),dc={error:Boolean,offset:C(300),loading:Boolean,disabled:Boolean,finished:Boolean,scroller:Object,errorText:String,direction:k("down"),loadingText:String,finishedText:String,immediateCheck:w};const uc=qe(t.defineComponent({name:ic,props:dc,emits:["load","update:error","update:loading"],setup(e,{emit:o,slots:a}){const n=t.ref(e.loading),r=t.ref(),l=t.ref(),i=t.inject(ra,null),s=K(r),c=t.computed((()=>e.scroller||s.value)),d=()=>{t.nextTick((()=>{if(n.value||e.finished||e.disabled||e.error||!1===(null==i?void 0:i.value))return;const{direction:t}=e,a=+e.offset,s=O(c);if(!s.height||ce(r))return;let d=!1;const u=O(l);d="up"===t?s.top-u.top<=a:u.bottom-s.bottom<=a,d&&(n.value=!0,o("update:loading",!0),o("load"))}))},u=()=>{if(e.finished){const o=a.finished?a.finished():e.finishedText;if(o)return t.createVNode("div",{class:sc("finished-text")},[o])}},p=()=>{o("update:error",!1),d()},v=()=>{if(e.error){const o=a.error?a.error():e.errorText;if(o)return t.createVNode("div",{role:"button",class:sc("error-text"),tabindex:0,onClick:p},[o])}},m=()=>{if(n.value&&!e.finished&&!e.disabled)return t.createVNode("div",{class:sc("loading")},[a.loading?a.loading():t.createVNode(Pt,{class:sc("loading-icon")},{default:()=>[e.loadingText||cc("loading")]})])};return t.watch((()=>[e.loading,e.finished,e.error]),d),i&&t.watch(i,(e=>{e&&d()})),t.onUpdated((()=>{n.value=e.loading})),t.onMounted((()=>{e.immediateCheck&&d()})),nt({check:d}),j("scroll",d,{target:c,passive:!0}),()=>{var o;const i=null==(o=a.default)?void 0:o.call(a),s=t.createVNode("div",{ref:l,class:sc("placeholder")},null);return t.createVNode("div",{ref:r,role:"feed",class:sc(),"aria-busy":n.value},["down"===e.direction?i:s,m(),u(),v(),"up"===e.direction?i:s])}}})),[pc,vc]=Ee("nav-bar"),mc={title:String,fixed:Boolean,zIndex:y,border:w,leftText:String,rightText:String,leftDisabled:Boolean,rightDisabled:Boolean,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:w};const fc=qe(t.defineComponent({name:pc,props:mc,emits:["clickLeft","clickRight"],setup(e,{emit:o,slots:a}){const n=t.ref(),r=Je(n,vc),l=t=>{e.leftDisabled||o("clickLeft",t)},i=t=>{e.rightDisabled||o("clickRight",t)},s=()=>{const{title:o,fixed:r,border:s,zIndex:c}=e,d=fe(c),u=e.leftArrow||e.leftText||a.left,p=e.rightText||a.right;return t.createVNode("div",{ref:n,style:d,class:[vc({fixed:r}),{[Fe]:s,"van-safe-area-top":e.safeAreaInsetTop}]},[t.createVNode("div",{class:vc("content")},[u&&t.createVNode("div",{class:[vc("left",{disabled:e.leftDisabled}),e.clickable&&!e.leftDisabled?Ue:""],onClick:l},[a.left?a.left():[e.leftArrow&&t.createVNode(Vt,{class:vc("arrow"),name:"arrow-left"},null),e.leftText&&t.createVNode("span",{class:vc("text")},[e.leftText])]]),t.createVNode("div",{class:[vc("title"),"van-ellipsis"]},[a.title?a.title():o]),p&&t.createVNode("div",{class:[vc("right",{disabled:e.rightDisabled}),e.clickable&&!e.rightDisabled?Ue:""],onClick:i},[a.right?a.right():t.createVNode("span",{class:vc("text")},[e.rightText])])])])};return()=>e.fixed&&e.placeholder?r(s):s()}})),[hc,gc]=Ee("notice-bar"),bc={text:String,mode:String,color:String,delay:C(1),speed:C(60),leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null}};const yc=qe(t.defineComponent({name:hc,props:bc,emits:["close","replay"],setup(e,{emit:o,slots:a}){let n,r=0,l=0;const i=t.ref(),c=t.ref(),d=t.reactive({show:!0,offset:0,duration:0}),u=t=>{"closeable"===e.mode&&(d.show=!1,o("close",t))},p=()=>{if(a["right-icon"])return a["right-icon"]();const o="closeable"===e.mode?"cross":"link"===e.mode?"arrow":void 0;return o?t.createVNode(Vt,{name:o,class:gc("right-icon"),onClick:u},null):void 0},v=()=>{d.offset=r,d.duration=0,T((()=>{P((()=>{d.offset=-l,d.duration=(l+r)/+e.speed,o("replay")}))}))},m=()=>{const o=!1===e.scrollable&&!e.wrapable,n={transform:d.offset?`translateX(${d.offset}px)`:"",transitionDuration:`${d.duration}s`};return t.createVNode("div",{ref:i,role:"marquee",class:gc("wrap")},[t.createVNode("div",{ref:c,style:n,class:[gc("content"),{"van-ellipsis":o}],onTransitionend:v},[a.default?a.default():e.text])])},f=()=>{const{delay:t,speed:o,scrollable:a}=e,u=s(t)?1e3*+t:0;r=0,l=0,d.offset=0,d.duration=0,clearTimeout(n),n=setTimeout((()=>{if(!i.value||!c.value||!1===a)return;const e=O(i).width,t=O(c).width;(a||t>e)&&P((()=>{r=e,l=t,d.offset=-l,d.duration=l/+o}))}),u)};return Ke(f),H(f),j("pageshow",f),nt({reset:f}),t.watch((()=>[e.text,e.scrollable]),f),()=>{const{color:o,wrapable:n,background:r}=e;return t.withDirectives(t.createVNode("div",{role:"alert",class:gc({wrapable:n}),style:{color:o,background:r}},[a["left-icon"]?a["left-icon"]():e.leftIcon?t.createVNode(Vt,{class:gc("left-icon"),name:e.leftIcon},null):void 0,m(),p()]),[[t.vShow,d.show]])}}})),[wc,xc]=Ee("notify"),Vc=["lockScroll","position","show","teleport","zIndex"],Nc=r({},jt,{type:k("danger"),color:String,message:y,position:k("top"),className:b,background:String,lockScroll:Boolean});var Cc=t.defineComponent({name:wc,props:Nc,emits:["update:show"],setup(e,{emit:o,slots:a}){const n=e=>o("update:show",e);return()=>t.createVNode(ao,t.mergeProps({class:[xc([e.type]),e.className],style:{color:e.color,background:e.background},overlay:!1,duration:.2,"onUpdate:show":n},f(e,Vc)),{default:()=>[a.default?a.default():e.message]})}});let kc,Sc;let Tc={type:"danger",color:void 0,message:"",onClose:void 0,onClick:void 0,onOpened:void 0,duration:3e3,position:void 0,className:"",lockScroll:!1,background:void 0};const Bc=()=>{Sc&&Sc.toggle(!1)};const Pc=qe(Cc),[Dc,Oc]=Ee("key"),Ac=t.createVNode("svg",{class:Oc("collapse-icon"),viewBox:"0 0 30 24"},[t.createVNode("path",{d:"M26 13h-2v2h2v-2zm-8-3h2V8h-2v2zm2-4h2V4h-2v2zm2 4h4V4h-2v4h-2v2zm-7 14 3-3h-6l3 3zM6 13H4v2h2v-2zm16 0H8v2h14v-2zm-12-3h2V8h-2v2zM28 0l1 1 1 1v15l-1 2H1l-1-2V2l1-1 1-1zm0 2H2v15h26V2zM6 4v2H4V4zm10 2h2V4h-2v2zM8 9v1H4V8zm8 0v1h-2V8zm-6-5v2H8V4zm4 0v2h-2V4z",fill:"currentColor"},null)]),Ic=t.createVNode("svg",{class:Oc("delete-icon"),viewBox:"0 0 32 22"},[t.createVNode("path",{d:"M28 0a4 4 0 0 1 4 4v14a4 4 0 0 1-4 4H10.4a2 2 0 0 1-1.4-.6L1 13.1c-.6-.5-.9-1.3-.9-2 0-1 .3-1.7.9-2.2L9 .6a2 2 0 0 1 1.4-.6zm0 2H10.4l-8.2 8.3a1 1 0 0 0-.3.7c0 .3.1.5.3.7l8.2 8.4H28a2 2 0 0 0 2-2V4c0-1.1-.9-2-2-2zm-5 4a1 1 0 0 1 .7.3 1 1 0 0 1 0 1.4L20.4 11l3.3 3.3c.2.2.3.5.3.7 0 .3-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.7-.3L19 12.4l-3.4 3.3a1 1 0 0 1-.6.3 1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.2.1-.5.3-.7l3.3-3.3-3.3-3.3A1 1 0 0 1 14 7c0-.3.1-.5.3-.7A1 1 0 0 1 15 6a1 1 0 0 1 .6.3L19 9.6l3.3-3.3A1 1 0 0 1 23 6z",fill:"currentColor"},null)]);var zc=t.defineComponent({name:Dc,props:{type:String,text:y,color:String,wider:Boolean,large:Boolean,loading:Boolean},emits:["press"],setup(e,{emit:o,slots:a}){const n=t.ref(!1),r=Ut(),l=e=>{r.start(e),n.value=!0},i=e=>{r.move(e),r.direction.value&&(n.value=!1)},s=t=>{n.value&&(a.default||se(t),n.value=!1,o("press",e.text,e.type))},c=()=>{if(e.loading)return t.createVNode(Pt,{class:Oc("loading-icon")},null);const o=a.default?a.default():e.text;switch(e.type){case"delete":return o||Ic;case"extra":return o||Ac;default:return o}};return()=>t.createVNode("div",{class:Oc("wrapper",{wider:e.wider}),onTouchstartPassive:l,onTouchmovePassive:i,onTouchend:s,onTouchcancel:s},[t.createVNode("div",{role:"button",tabindex:0,class:Oc([e.color,{large:e.large,active:n.value,delete:"delete"===e.type}])},[c()])])}});const[Ec,Lc]=Ee("number-keyboard"),$c={show:Boolean,title:String,theme:k("default"),zIndex:y,teleport:[String,Object],maxlength:C(1/0),modelValue:k(""),transition:w,blurOnClose:w,showDeleteKey:w,randomKeyOrder:Boolean,closeButtonText:String,deleteButtonText:String,closeButtonLoading:Boolean,hideOnClickOutside:w,safeAreaInsetBottom:w,extraKey:{type:[String,Array],default:""}};const Mc=qe(t.defineComponent({name:Ec,inheritAttrs:!1,props:$c,emits:["show","hide","blur","input","close","delete","update:modelValue"],setup(e,{emit:o,slots:a,attrs:n}){const r=t.ref(),l=()=>{const t=Array(9).fill("").map(((e,t)=>({text:t+1})));return e.randomKeyOrder&&function(e){for(let t=e.length-1;t>0;t--){const o=Math.floor(Math.random()*(t+1)),a=e[t];e[t]=e[o],e[o]=a}}(t),t},i=t.computed((()=>"custom"===e.theme?(()=>{const t=l(),{extraKey:o}=e,a=Array.isArray(o)?o:[o];return 0===a.length?t.push({text:0,wider:!0}):1===a.length?t.push({text:0,wider:!0},{text:a[0],type:"extra"}):2===a.length&&t.push({text:a[0],type:"extra"},{text:0},{text:a[1],type:"extra"}),t})():[...l(),{text:e.extraKey,type:"extra"},{text:0},{text:e.showDeleteKey?e.deleteButtonText:"",type:e.showDeleteKey?"delete":""}])),s=()=>{e.show&&o("blur")},c=()=>{o("close"),e.blurOnClose&&s()},d=()=>o(e.show?"show":"hide"),u=(t,a)=>{if(""===t)return void("extra"===a&&s());const n=e.modelValue;"delete"===a?(o("delete"),o("update:modelValue",n.slice(0,n.length-1))):"close"===a?c():n.length<+e.maxlength&&(o("input",t),o("update:modelValue",n+t))},p=()=>{if("custom"===e.theme)return t.createVNode("div",{class:Lc("sidebar")},[e.showDeleteKey&&t.createVNode(zc,{large:!0,text:e.deleteButtonText,type:"delete",onPress:u},{default:a.delete}),t.createVNode(zc,{large:!0,text:e.closeButtonText,type:"close",color:"blue",loading:e.closeButtonLoading,onPress:u},null)])};return t.watch((()=>e.show),(t=>{e.transition||o(t?"show":"hide")})),e.hideOnClickOutside&&W(r,s,{eventName:"touchstart"}),()=>{const o=(()=>{const{title:o,theme:n,closeButtonText:r}=e,l=a["title-left"],i=r&&"default"===n;if(o||i||l)return t.createVNode("div",{class:Lc("header")},[l&&t.createVNode("span",{class:Lc("title-left")},[l()]),o&&t.createVNode("h2",{class:Lc("title")},[o]),i&&t.createVNode("button",{type:"button",class:[Lc("close"),Ue],onClick:c},[r])])})(),l=t.createVNode(t.Transition,{name:e.transition?"van-slide-up":""},{default:()=>[t.withDirectives(t.createVNode("div",t.mergeProps({ref:r,style:fe(e.zIndex),class:Lc({unfit:!e.safeAreaInsetBottom,"with-title":!!o}),onAnimationend:d,onTouchstartPassive:ie},n),[o,t.createVNode("div",{class:Lc("body")},[t.createVNode("div",{class:Lc("keys")},[i.value.map((e=>{const o={};return"delete"===e.type&&(o.default=a.delete),"extra"===e.type&&(o.default=a["extra-key"]),t.createVNode(zc,{key:e.text,text:e.text,type:e.type,wider:e.wider,color:e.color,onPress:u},o)}))]),p()])]),[[t.vShow,e.show]])]});return e.teleport?t.createVNode(t.Teleport,{to:e.teleport},{default:()=>[l]}):l}}})),[Rc,Fc,Hc]=Ee("pagination"),jc=(e,t,o)=>({number:e,text:t,active:o}),Wc={mode:k("multi"),prevText:String,nextText:String,pageCount:C(0),modelValue:N(0),totalItems:C(0),showPageSize:C(5),itemsPerPage:C(10),forceEllipses:Boolean,showPrevButton:w,showNextButton:w};const Uc=qe(t.defineComponent({name:Rc,props:Wc,emits:["change","update:modelValue"],setup(e,{emit:o,slots:a}){const n=t.computed((()=>{const{pageCount:t,totalItems:o,itemsPerPage:a}=e,n=+t||Math.ceil(+o/+a);return Math.max(1,n)})),r=t.computed((()=>{const t=[],o=n.value,a=+e.showPageSize,{modelValue:r,forceEllipses:l}=e;let i=1,s=o;const c=a<o;c&&(i=Math.max(r-Math.floor(a/2),1),s=i+a-1,s>o&&(s=o,i=s-a+1));for(let e=i;e<=s;e++){const o=jc(e,e,e===r);t.push(o)}if(c&&a>0&&l){if(i>1){const e=jc(i-1,"...");t.unshift(e)}if(s<o){const e=jc(s+1,"...");t.push(e)}}return t})),l=(t,a)=>{t=Ve(t,1,n.value),e.modelValue!==t&&(o("update:modelValue",t),a&&o("change",t))};t.watchEffect((()=>l(e.modelValue)));const i=()=>{const{mode:o,modelValue:n,showPrevButton:r}=e;if(!r)return;const i=a["prev-text"],s=1===n;return t.createVNode("li",{class:[Fc("item",{disabled:s,border:"simple"===o,prev:!0}),He]},[t.createVNode("button",{type:"button",disabled:s,onClick:()=>l(n-1,!0)},[i?i():e.prevText||Hc("prev")])])},s=()=>{const{mode:o,modelValue:r,showNextButton:i}=e;if(!i)return;const s=a["next-text"],c=r===n.value;return t.createVNode("li",{class:[Fc("item",{disabled:c,border:"simple"===o,next:!0}),He]},[t.createVNode("button",{type:"button",disabled:c,onClick:()=>l(r+1,!0)},[s?s():e.nextText||Hc("next")])])};return()=>t.createVNode("nav",{role:"navigation",class:Fc()},[t.createVNode("ul",{class:Fc("items")},[i(),"simple"===e.mode?t.createVNode("li",{class:Fc("page-desc")},[a.pageDesc?a.pageDesc():`${e.modelValue}/${n.value}`]):r.value.map((e=>t.createVNode("li",{class:[Fc("item",{active:e.active,page:!0}),He]},[t.createVNode("button",{type:"button","aria-current":e.active||void 0,onClick:()=>l(e.number,!0)},[a.page?a.page(e):e.text])]))),s()])])}})),[Yc,Xc]=Ee("password-input"),qc={info:String,mask:w,value:k(""),gutter:y,length:C(6),focused:Boolean,errorInfo:String};const Gc=qe(t.defineComponent({name:Yc,props:qc,emits:["focus"],setup(e,{emit:o}){const a=e=>{e.stopPropagation(),o("focus",e)},n=()=>{const o=[],{mask:a,value:n,gutter:r,focused:l}=e,i=+e.length;for(let e=0;e<i;e++){const i=n[e],s=0!==e&&!r,c=l&&e===n.length;let d;0!==e&&r&&(d={marginLeft:ve(r)}),o.push(t.createVNode("li",{class:[{[Me]:s},Xc("item",{focus:c})],style:d},[a?t.createVNode("i",{style:{visibility:i?"visible":"hidden"}},null):i,c&&t.createVNode("div",{class:Xc("cursor")},null)]))}return o};return()=>{const o=e.errorInfo||e.info;return t.createVNode("div",{class:Xc()},[t.createVNode("ul",{class:[Xc("security"),{[He]:!e.gutter}],onTouchstartPassive:a},[n()]),o&&t.createVNode("div",{class:Xc(e.errorInfo?"error-info":"info")},[o])])}}})),Zc=qe(xa);function Kc(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function _c(e){return e instanceof Kc(e).Element||e instanceof Element}function Jc(e){return e instanceof Kc(e).HTMLElement||e instanceof HTMLElement}function Qc(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Kc(e).ShadowRoot||e instanceof ShadowRoot)}var ed=Math.round;function td(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function od(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1);var a=e.getBoundingClientRect(),n=1,r=1;t&&Jc(e)&&(n=e.offsetWidth>0&&ed(a.width)/e.offsetWidth||1,r=e.offsetHeight>0&&ed(a.height)/e.offsetHeight||1);var l=(_c(e)?Kc(e):window).visualViewport,i=!!/^((?!chrome|android).)*safari/i.test(td())&&o,s=(a.left+(i&&l?l.offsetLeft:0))/n,c=(a.top+(i&&l?l.offsetTop:0))/r,d=a.width/n,u=a.height/r;return{width:d,height:u,top:c,right:s+d,bottom:c+u,left:s,x:s,y:c}}function ad(e){var t=Kc(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function nd(e){return e?(e.nodeName||"").toLowerCase():null}function rd(e){return((_c(e)?e.ownerDocument:e.document)||window.document).documentElement}function ld(e){return Kc(e).getComputedStyle(e)}function id(e){var t=ld(e),o=t.overflow,a=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+n+a)}function sd(e,t,o){void 0===o&&(o=!1);var a,n,r=Jc(t),l=Jc(t)&&function(e){var t=e.getBoundingClientRect(),o=ed(t.width)/e.offsetWidth||1,a=ed(t.height)/e.offsetHeight||1;return 1!==o||1!==a}(t),i=rd(t),s=od(e,l,o),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!o)&&(("body"!==nd(t)||id(i))&&(c=(a=t)!==Kc(a)&&Jc(a)?{scrollLeft:(n=a).scrollLeft,scrollTop:n.scrollTop}:ad(a)),Jc(t)?((d=od(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):i&&(d.x=function(e){return od(rd(e)).left+ad(e).scrollLeft}(i))),{x:s.left+c.scrollLeft-d.x,y:s.top+c.scrollTop-d.y,width:s.width,height:s.height}}function cd(e){return"html"===nd(e)?e:e.assignedSlot||e.parentNode||(Qc(e)?e.host:null)||rd(e)}function dd(e){return["html","body","#document"].indexOf(nd(e))>=0?e.ownerDocument.body:Jc(e)&&id(e)?e:dd(cd(e))}function ud(e,t){var o;void 0===t&&(t=[]);var a=dd(e),n=a===(null==(o=e.ownerDocument)?void 0:o.body),r=Kc(a),l=n?[r].concat(r.visualViewport||[],id(a)?a:[]):a,i=t.concat(l);return n?i:i.concat(ud(cd(l)))}function pd(e){return["table","td","th"].indexOf(nd(e))>=0}function vd(e){return Jc(e)&&"fixed"!==ld(e).position?e.offsetParent:null}function md(e){for(var t=Kc(e),o=vd(e);o&&pd(o)&&"static"===ld(o).position;)o=vd(o);return o&&("html"===nd(o)||"body"===nd(o)&&"static"===ld(o).position)?t:o||function(e){var t=/firefox/i.test(td());if(/Trident/i.test(td())&&Jc(e)&&"fixed"===ld(e).position)return null;var o=cd(e);for(Qc(o)&&(o=o.host);Jc(o)&&["html","body"].indexOf(nd(o))<0;){var a=ld(o);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||t&&"filter"===a.willChange||t&&a.filter&&"none"!==a.filter)return o;o=o.parentNode}return null}(e)||t}var fd="top",hd="bottom",gd="right",bd="left",yd="start",wd="end",xd=[].concat([fd,hd,gd,bd],["auto"]).reduce((function(e,t){return e.concat([t,t+"-"+yd,t+"-"+wd])}),[]),Vd=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Nd(e){var t=new Map,o=new Set,a=[];function n(e){o.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!o.has(e)){var a=t.get(e);a&&n(a)}})),a.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){o.has(e.name)||n(e)})),a}var Cd={placement:"bottom",modifiers:[],strategy:"absolute"};function kd(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Sd(e){void 0===e&&(e={});var t=e,o=t.defaultModifiers,a=void 0===o?[]:o,n=t.defaultOptions,r=void 0===n?Cd:n;return function(e,t,o){void 0===o&&(o=r);var n,l,i={placement:"bottom",orderedModifiers:[],options:Object.assign({},Cd,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,d={state:i,setOptions:function(o){var n="function"==typeof o?o(i.options):o;u(),i.options=Object.assign({},r,i.options,n),i.scrollParents={reference:_c(e)?ud(e):e.contextElement?ud(e.contextElement):[],popper:ud(t)};var l,c,p=function(e){var t=Nd(e);return Vd.reduce((function(e,o){return e.concat(t.filter((function(e){return e.phase===o})))}),[])}((l=[].concat(a,i.options.modifiers),c=l.reduce((function(e,t){var o=e[t.name];return e[t.name]=o?Object.assign({},o,t,{options:Object.assign({},o.options,t.options),data:Object.assign({},o.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return i.orderedModifiers=p.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,o=e.options,a=void 0===o?{}:o,n=e.effect;if("function"==typeof n){var r=n({state:i,name:t,instance:d,options:a}),l=function(){};s.push(r||l)}})),d.update()},forceUpdate:function(){if(!c){var e=i.elements,t=e.reference,o=e.popper;if(kd(t,o)){var a,n,r,l;i.rects={reference:sd(t,md(o),"fixed"===i.options.strategy),popper:(a=o,n=od(a),r=a.offsetWidth,l=a.offsetHeight,Math.abs(n.width-r)<=1&&(r=n.width),Math.abs(n.height-l)<=1&&(l=n.height),{x:a.offsetLeft,y:a.offsetTop,width:r,height:l})},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var s=0;s<i.orderedModifiers.length;s++)if(!0!==i.reset){var u=i.orderedModifiers[s],p=u.fn,v=u.options,m=void 0===v?{}:v,f=u.name;"function"==typeof p&&(i=p({state:i,options:m,name:f,instance:d})||i)}else i.reset=!1,s=-1}}},update:(n=function(){return new Promise((function(e){d.forceUpdate(),e(i)}))},function(){return l||(l=new Promise((function(e){Promise.resolve().then((function(){l=void 0,e(n())}))}))),l}),destroy:function(){u(),c=!0}};if(!kd(e,t))return d;function u(){s.forEach((function(e){return e()})),s=[]}return d.setOptions(o).then((function(e){!c&&o.onFirstUpdate&&o.onFirstUpdate(e)})),d}}var Td={passive:!0};function Bd(e){return e.split("-")[0]}function Pd(e){return e.split("-")[1]}var Dd={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Od(e){var t,o=e.popper,a=e.popperRect,n=e.placement,r=e.variation,l=e.offsets,i=e.position,s=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,p=l.x,v=void 0===p?0:p,m=l.y,f=void 0===m?0:m,h="function"==typeof d?d({x:v,y:f}):{x:v,y:f};v=h.x,f=h.y;var g=l.hasOwnProperty("x"),b=l.hasOwnProperty("y"),y=bd,w=fd,x=window;if(c){var V=md(o),N="clientHeight",C="clientWidth";if(V===Kc(o)&&"static"!==ld(V=rd(o)).position&&"absolute"===i&&(N="scrollHeight",C="scrollWidth"),n===fd||(n===bd||n===gd)&&r===wd)w=hd,f-=(u&&V===x&&x.visualViewport?x.visualViewport.height:V[N])-a.height,f*=s?1:-1;if(n===bd||(n===fd||n===hd)&&r===wd)y=gd,v-=(u&&V===x&&x.visualViewport?x.visualViewport.width:V[C])-a.width,v*=s?1:-1}var k,S=Object.assign({position:i},c&&Dd),T=!0===d?function(e,t){var o=e.x,a=e.y,n=t.devicePixelRatio||1;return{x:ed(o*n)/n||0,y:ed(a*n)/n||0}}({x:v,y:f},Kc(o)):{x:v,y:f};return v=T.x,f=T.y,s?Object.assign({},S,((k={})[w]=b?"0":"",k[y]=g?"0":"",k.transform=(x.devicePixelRatio||1)<=1?"translate("+v+"px, "+f+"px)":"translate3d("+v+"px, "+f+"px, 0)",k)):Object.assign({},S,((t={})[w]=b?f+"px":"",t[y]=g?v+"px":"",t.transform="",t))}var Ad=Sd({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,o=e.instance,a=e.options,n=a.scroll,r=void 0===n||n,l=a.resize,i=void 0===l||l,s=Kc(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach((function(e){e.addEventListener("scroll",o.update,Td)})),i&&s.addEventListener("resize",o.update,Td),function(){r&&c.forEach((function(e){e.removeEventListener("scroll",o.update,Td)})),i&&s.removeEventListener("resize",o.update,Td)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,o=e.name;t.modifiersData[o]=function(e){var t,o=e.reference,a=e.element,n=e.placement,r=n?Bd(n):null,l=n?Pd(n):null,i=o.x+o.width/2-a.width/2,s=o.y+o.height/2-a.height/2;switch(r){case fd:t={x:i,y:o.y-a.height};break;case hd:t={x:i,y:o.y+o.height};break;case gd:t={x:o.x+o.width,y:s};break;case bd:t={x:o.x-a.width,y:s};break;default:t={x:o.x,y:o.y}}var c=r?function(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}(r):null;if(null!=c){var d="y"===c?"height":"width";switch(l){case yd:t[c]=t[c]-(o[d]/2-a[d]/2);break;case wd:t[c]=t[c]+(o[d]/2-a[d]/2)}}return t}({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,o=e.options,a=o.gpuAcceleration,n=void 0===a||a,r=o.adaptive,l=void 0===r||r,i=o.roundOffsets,s=void 0===i||i,c={placement:Bd(t.placement),variation:Pd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Od(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Od(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var o=t.styles[e]||{},a=t.attributes[e]||{},n=t.elements[e];Jc(n)&&nd(n)&&(Object.assign(n.style,o),Object.keys(a).forEach((function(e){var t=a[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach((function(e){var a=t.elements[e],n=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:o[e]).reduce((function(e,t){return e[t]="",e}),{});Jc(a)&&nd(a)&&(Object.assign(a.style,r),Object.keys(n).forEach((function(e){a.removeAttribute(e)})))}))}},requires:["computeStyles"]}]});const Id={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,o=e.options,a=e.name,n=o.offset,r=void 0===n?[0,0]:n,l=xd.reduce((function(e,o){return e[o]=function(e,t,o){var a=Bd(e),n=[bd,fd].indexOf(a)>=0?-1:1,r="function"==typeof o?o(Object.assign({},t,{placement:e})):o,l=r[0],i=r[1];return l=l||0,i=(i||0)*n,[bd,gd].indexOf(a)>=0?{x:i,y:l}:{x:l,y:i}}(o,t.rects,r),e}),{}),i=l[t.placement],s=i.x,c=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[a]=l}},[zd,Ed]=Ee("popover"),Ld=["overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],$d={show:Boolean,theme:k("light"),overlay:Boolean,actions:V(),actionsDirection:k("vertical"),trigger:k("click"),duration:y,showArrow:w,placement:k("bottom"),iconPrefix:String,overlayClass:b,overlayStyle:Object,closeOnClickAction:w,closeOnClickOverlay:w,closeOnClickOutside:w,offset:{type:Array,default:()=>[0,8]},teleport:{type:[String,Object],default:"body"}};const Md=qe(t.defineComponent({name:zd,props:$d,emits:["select","touchstart","update:show"],setup(e,{emit:o,slots:a,attrs:n}){let i;const s=t.ref(),c=t.ref(),d=t.ref(),u=So((()=>e.show),(e=>o("update:show",e))),p=()=>({placement:e.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},r({},Id,{options:{offset:e.offset}})]}),v=()=>{t.nextTick((()=>{u.value&&(i?i.setOptions(p()):(i=c.value&&d.value?Ad(c.value,d.value.popupRef.value,p()):null,l&&(window.addEventListener("animationend",v),window.addEventListener("transitionend",v))))}))},m=e=>{u.value=e},h=()=>{"click"===e.trigger&&(u.value=!u.value)},g=(o,n)=>a.action?a.action({action:o,index:n}):[o.icon&&t.createVNode(Vt,{name:o.icon,classPrefix:e.iconPrefix,class:Ed("action-icon")},null),t.createVNode("div",{class:[Ed("action-text"),{[Fe]:"vertical"===e.actionsDirection}]},[o.text])],b=(a,n)=>{const{icon:r,color:l,disabled:i,className:s}=a;return t.createVNode("div",{role:"menuitem",class:[Ed("action",{disabled:i,"with-icon":r}),{[Re]:"horizontal"===e.actionsDirection},s],style:{color:l},tabindex:i?void 0:0,"aria-disabled":i||void 0,onClick:()=>((t,a)=>{t.disabled||(o("select",t,a),e.closeOnClickAction&&(u.value=!1))})(a,n)},[g(a,n)])};return t.onMounted((()=>{v(),t.watchEffect((()=>{var e;s.value=null==(e=d.value)?void 0:e.popupRef.value}))})),t.onBeforeUnmount((()=>{i&&(l&&(window.removeEventListener("animationend",v),window.removeEventListener("transitionend",v)),i.destroy(),i=null)})),t.watch((()=>[u.value,e.offset,e.placement]),v),W([c,s],(()=>{u.value&&e.closeOnClickOutside&&(!e.overlay||e.closeOnClickOverlay)&&(u.value=!1)}),{eventName:"touchstart"}),()=>{var o;return t.createVNode(t.Fragment,null,[t.createVNode("span",{ref:c,class:Ed("wrapper"),onClick:h},[null==(o=a.reference)?void 0:o.call(a)]),t.createVNode(ao,t.mergeProps({ref:d,show:u.value,class:Ed([e.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,"onUpdate:show":m},n,Zt(),f(e,Ld)),{default:()=>[e.showArrow&&t.createVNode("div",{class:Ed("arrow")},null),t.createVNode("div",{role:"menu",class:Ed("content",e.actionsDirection)},[a.default?a.default():e.actions.map(b)])]})])}}})),[Rd,Fd]=Ee("progress"),Hd={color:String,inactive:Boolean,pivotText:String,textColor:String,showPivot:w,pivotColor:String,trackColor:String,strokeWidth:y,percentage:{type:y,default:0,validator:e=>+e>=0&&+e<=100}};const jd=qe(t.defineComponent({name:Rd,props:Hd,setup(e){const o=t.computed((()=>e.inactive?void 0:e.color)),a=()=>{const{textColor:a,pivotText:n,pivotColor:r,percentage:l}=e,i=null!=n?n:`${l}%`;if(e.showPivot&&i){const n={color:a,left:+l+"%",transform:`translate(-${+l}%,-50%)`,background:r||o.value};return t.createVNode("span",{style:n,class:Fd("pivot",{inactive:e.inactive})},[i])}};return()=>{const{trackColor:n,percentage:r,strokeWidth:l}=e,i={background:n,height:ve(l)},s={width:`${r}%`,background:o.value};return t.createVNode("div",{class:Fd(),style:i},[t.createVNode("span",{class:Fd("portion",{inactive:e.inactive}),style:s},null),a()])}}})),[Wd,Ud,Yd]=Ee("pull-refresh"),Xd=["pulling","loosing","success"],qd={disabled:Boolean,modelValue:Boolean,headHeight:C(50),successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:y,successDuration:C(500),animationDuration:C(300)};const Gd=qe(t.defineComponent({name:Wd,props:qd,emits:["change","refresh","update:modelValue"],setup(e,{emit:o,slots:a}){let n;const r=t.ref(),l=t.ref(),i=K(r),s=t.reactive({status:"normal",distance:0,duration:0}),c=Ut(),d=()=>{if(50!==e.headHeight)return{height:`${e.headHeight}px`}},u=()=>"loading"!==s.status&&"success"!==s.status&&!e.disabled,p=(t,a)=>{const n=+(e.pullDistance||e.headHeight);s.distance=t,s.status=a?"loading":0===t?"normal":t<n?"pulling":"loosing",o("change",{status:s.status,distance:t})},v=()=>{const{status:t}=s;return"normal"===t?"":e[`${t}Text`]||Yd(t)},m=()=>{const{status:e,distance:o}=s;if(a[e])return a[e]({distance:o});const n=[];return Xd.includes(e)&&n.push(t.createVNode("div",{class:Ud("text")},[v()])),"loading"===e&&n.push(t.createVNode(Pt,{class:Ud("loading")},{default:v})),n},f=e=>{n=0===ee(i.value),n&&(s.duration=0,c.start(e))},h=e=>{u()&&f(e)},g=()=>{n&&c.deltaY.value&&u()&&(s.duration=+e.animationDuration,"loosing"===s.status?(p(+e.headHeight,!0),o("update:modelValue",!0),t.nextTick((()=>o("refresh")))):p(0))};return t.watch((()=>e.modelValue),(t=>{s.duration=+e.animationDuration,t?p(+e.headHeight,!0):a.success||e.successText?(s.status="success",setTimeout((()=>{p(0)}),+e.successDuration)):p(0,!1)})),j("touchmove",(t=>{if(u()){n||f(t);const{deltaY:o}=c;c.move(t),n&&o.value>=0&&c.isVertical()&&(se(t),p((t=>{const o=+(e.pullDistance||e.headHeight);return t>o&&(t=t<2*o?o+(t-o)/2:1.5*o+(t-2*o)/4),Math.round(t)})(o.value)))}}),{target:l}),()=>{var e;const o={transitionDuration:`${s.duration}ms`,transform:s.distance?`translate3d(0,${s.distance}px, 0)`:""};return t.createVNode("div",{ref:r,class:Ud()},[t.createVNode("div",{ref:l,class:Ud("track"),style:o,onTouchstartPassive:h,onTouchend:g,onTouchcancel:g},[t.createVNode("div",{class:Ud("head"),style:d()},[m()]),null==(e=a.default)?void 0:e.call(a)])])}}})),[Zd,Kd]=Ee("rate");const _d={size:y,icon:k("star"),color:String,count:C(5),gutter:y,clearable:Boolean,readonly:Boolean,disabled:Boolean,voidIcon:k("star-o"),allowHalf:Boolean,voidColor:String,touchable:w,iconPrefix:String,modelValue:N(0),disabledColor:String};const Jd=qe(t.defineComponent({name:Zd,props:_d,emits:["change","update:modelValue"],setup(e,{emit:o}){const a=Ut(),[n,r]=Fo(),l=t.ref(),i=t.computed((()=>e.readonly||e.disabled)),s=t.computed((()=>i.value||!e.touchable)),c=t.computed((()=>Array(+e.count).fill("").map(((t,o)=>function(e,t,o,a){if(e>=t)return{status:"full",value:1};if(e+.5>=t&&o&&!a)return{status:"half",value:.5};if(e+1>=t&&o&&a){const o=10**10;return{status:"half",value:Math.round((e-t+1)*o)/o}}return{status:"void",value:0}}(e.modelValue,o+1,e.allowHalf,e.readonly)))));let d,u,p=Number.MAX_SAFE_INTEGER,v=Number.MIN_SAFE_INTEGER;const m=()=>{u=O(l);const t=n.value.map(O);d=[],t.forEach(((t,o)=>{p=Math.min(t.top,p),v=Math.max(t.top,v),e.allowHalf?d.push({score:o+.5,left:t.left,top:t.top,height:t.height},{score:o+1,left:t.left+t.width/2,top:t.top,height:t.height}):d.push({score:o+1,left:t.left,top:t.top,height:t.height})}))},f=(t,o)=>{for(let e=d.length-1;e>0;e--)if(o>=u.top&&o<=u.bottom){if(t>d[e].left&&o>=d[e].top&&o<=d[e].top+d[e].height)return d[e].score}else{const a=o<u.top?p:v;if(t>d[e].left&&d[e].top===a)return d[e].score}return e.allowHalf?.5:1},h=t=>{i.value||t===e.modelValue||(o("update:modelValue",t),o("change",t))},g=e=>{s.value||(a.start(e),m())},b=(o,n)=>{const{icon:l,size:i,color:s,count:c,gutter:d,voidIcon:u,disabled:p,voidColor:v,allowHalf:g,iconPrefix:b,disabledColor:y}=e,w=n+1,x="full"===o.status,V="void"===o.status,N=g&&o.value>0&&o.value<1;let C;d&&w!==+c&&(C={paddingRight:ve(d)});return t.createVNode("div",{key:n,ref:r(n),role:"radio",style:C,class:Kd("item"),tabindex:p?void 0:0,"aria-setsize":c,"aria-posinset":w,"aria-checked":!V,onClick:t=>{m();let o=g?f(t.clientX,t.clientY):w;e.clearable&&a.isTap.value&&o===e.modelValue&&(o=0),h(o)}},[t.createVNode(Vt,{size:i,name:x?l:u,class:Kd("icon",{disabled:p,full:x}),color:p?y:x?s:v,classPrefix:b},null),N&&t.createVNode(Vt,{size:i,style:{width:o.value+"em"},name:V?u:l,class:Kd("icon",["half",{disabled:p,full:!V}]),color:p?y:V?v:s,classPrefix:b},null)])};return Q((()=>e.modelValue)),j("touchmove",(e=>{if(!s.value&&(a.move(e),a.isHorizontal()&&!a.isTap.value)){const{clientX:t,clientY:o}=e.touches[0];se(e),h(f(t,o))}}),{target:l}),()=>t.createVNode("div",{ref:l,role:"radiogroup",class:Kd({readonly:e.readonly,disabled:e.disabled}),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,"aria-readonly":e.readonly,onTouchstartPassive:g},[c.value.map(b)])}})),Qd={figureArr:V(),delay:Number,duration:N(2),isStart:Boolean,direction:k("down"),height:N(40)},[eu,tu]=Ee("rolling-text-item");var ou=t.defineComponent({name:eu,props:Qd,setup(e){const o=t.computed((()=>"down"===e.direction?e.figureArr.slice().reverse():e.figureArr)),a=t.computed((()=>`-${e.height*(e.figureArr.length-1)}px`)),n=t.computed((()=>({lineHeight:ve(e.height)}))),r=t.computed((()=>({height:ve(e.height),"--van-translate":a.value,"--van-duration":e.duration+"s","--van-delay":e.delay+"s"})));return()=>t.createVNode("div",{class:tu([e.direction]),style:r.value},[t.createVNode("div",{class:tu("box",{animate:e.isStart})},[Array.isArray(o.value)&&o.value.map((e=>t.createVNode("div",{class:tu("item"),style:n.value},[e])))])])}});const[au,nu]=Ee("rolling-text"),ru={startNum:N(0),targetNum:Number,textList:V(),duration:N(2),autoStart:w,direction:k("down"),stopOrder:k("ltr"),height:N(40)};const lu=qe(t.defineComponent({name:au,props:ru,setup(e){const o=t.computed((()=>Array.isArray(e.textList)&&e.textList.length)),a=t.computed((()=>o.value?e.textList[0].length:`${Math.max(e.startNum,e.targetNum)}`.length)),n=t=>{const o=[];for(let a=0;a<e.textList.length;a++)o.push(e.textList[a][t]);return o},r=t.computed((()=>o.value?new Array(a.value).fill(""):xe(e.targetNum,a.value).split(""))),l=t.computed((()=>xe(e.startNum,a.value).split(""))),i=e=>{const t=+l.value[e],o=+r.value[e],a=[];for(let n=t;n<=9;n++)a.push(n);for(let n=0;n<=2;n++)for(let e=0;e<=9;e++)a.push(e);for(let n=0;n<=o;n++)a.push(n);return a},s=(t,o)=>"ltr"===e.stopOrder?.2*t:.2*(o-1-t),c=t.ref(e.autoStart),d=()=>{c.value=!0};return t.watch((()=>e.autoStart),(e=>{e&&d()})),nt({start:d,reset:()=>{c.value=!1,e.autoStart&&T((()=>d()))}}),()=>t.createVNode("div",{class:nu()},[r.value.map(((r,l)=>t.createVNode(ou,{figureArr:o.value?n(l):i(l),duration:e.duration,direction:e.direction,isStart:c.value,height:e.height,delay:s(l,a.value)},null)))])}})),iu=qe(Rl),[su,cu,du]=Ee("search"),uu=r({},Ja,{label:String,shape:k("square"),leftIcon:k("search"),clearable:w,actionText:String,background:String,showAction:Boolean});const pu=qe(t.defineComponent({name:su,props:uu,emits:["blur","focus","clear","search","cancel","clickInput","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:o,slots:a,attrs:n}){const l=Ro(),i=t.ref(),s=()=>{a.action||(o("update:modelValue",""),o("cancel"))},c=t=>{13===t.keyCode&&(se(t),o("search",e.modelValue))},d=()=>e.id||`${l}-input`,u=()=>{if(a.label||e.label)return t.createVNode("label",{class:cu("label"),for:d(),"data-allow-mismatch":"attribute"},[a.label?a.label():e.label])},p=()=>{if(e.showAction){const o=e.actionText||du("cancel");return t.createVNode("div",{class:cu("action"),role:"button",tabindex:0,onClick:s},[a.action?a.action():o])}},v=e=>o("blur",e),m=e=>o("focus",e),h=e=>o("clear",e),g=e=>o("clickInput",e),b=e=>o("clickLeftIcon",e),y=e=>o("clickRightIcon",e),w=Object.keys(Ja),x=()=>{const l=r({},n,f(e,w),{id:d()});return t.createVNode(en,t.mergeProps({ref:i,type:"search",class:cu("field",{"with-message":l.errorMessage}),border:!1,onBlur:v,onFocus:m,onClear:h,onKeypress:c,onClickInput:g,onClickLeftIcon:b,onClickRightIcon:y,"onUpdate:modelValue":e=>o("update:modelValue",e)},l),f(a,["left-icon","right-icon"]))};return nt({focus:()=>{var e;return null==(e=i.value)?void 0:e.focus()},blur:()=>{var e;return null==(e=i.value)?void 0:e.blur()}}),()=>{var o;return t.createVNode("div",{class:cu({"show-action":e.showAction}),style:{background:e.background}},[null==(o=a.left)?void 0:o.call(a),t.createVNode("div",{class:cu("content",e.shape)},[u(),x()]),p()])}}})),vu=[...Wt,"round","closeOnPopstate","safeAreaInsetBottom"],mu={qq:"qq",link:"link-o",weibo:"weibo",qrcode:"qr",poster:"photo-o",wechat:"wechat","weapp-qrcode":"miniprogram-o","wechat-moments":"wechat-moments"},[fu,hu,gu]=Ee("share-sheet"),bu=r({},jt,{title:String,round:w,options:V(),cancelText:String,description:String,closeOnPopstate:w,safeAreaInsetBottom:w});const yu=qe(t.defineComponent({name:fu,props:bu,emits:["cancel","select","update:show"],setup(e,{emit:o,slots:a}){const n=e=>o("update:show",e),r=()=>{n(!1),o("cancel")},l=()=>{const o=a.title?a.title():e.title,n=a.description?a.description():e.description;if(o||n)return t.createVNode("div",{class:hu("header")},[o&&t.createVNode("h2",{class:hu("title")},[o]),n&&t.createVNode("span",{class:hu("description")},[n])])},i=e=>{return(null==(o=e)?void 0:o.includes("/"))?t.createVNode("img",{src:e,class:hu("image-icon")},null):t.createVNode("div",{class:hu("icon",[e])},[t.createVNode(Vt,{name:mu[e]||e},null)]);var o},s=(e,a)=>{const{name:n,icon:r,className:l,description:s}=e;return t.createVNode("div",{role:"button",tabindex:0,class:[hu("option"),l,Ue],onClick:()=>((e,t)=>o("select",e,t))(e,a)},[i(r),n&&t.createVNode("span",{class:hu("name")},[n]),s&&t.createVNode("span",{class:hu("option-description")},[s])])},c=(e,o)=>t.createVNode("div",{class:hu("options",{border:o})},[e.map(s)]),d=()=>{const{options:t}=e;return Array.isArray(t[0])?t.map(((e,t)=>c(e,0!==t))):c(t)},u=()=>{var o;const n=null!=(o=e.cancelText)?o:gu("cancel");if(a.cancel||n)return t.createVNode("button",{type:"button",class:hu("cancel"),onClick:r},[a.cancel?a.cancel():n])};return()=>t.createVNode(ao,t.mergeProps({class:hu(),position:"bottom","onUpdate:show":n},f(e,vu)),{default:()=>[l(),d(),u()]})}})),[wu,xu]=Ee("sidebar"),Vu=Symbol(wu),Nu={modelValue:C(0)};const Cu=qe(t.defineComponent({name:wu,props:Nu,emits:["change","update:modelValue"],setup(e,{emit:o,slots:a}){const{linkChildren:n}=E(Vu),r=()=>+e.modelValue;return n({getActive:r,setActive:e=>{e!==r()&&(o("update:modelValue",e),o("change",e))}}),()=>{var e;return t.createVNode("div",{role:"tablist",class:xu()},[null==(e=a.default)?void 0:e.call(a)])}}})),[ku,Su]=Ee("sidebar-item"),Tu=r({},rt,{dot:Boolean,title:String,badge:y,disabled:Boolean,badgeProps:Object});const Bu=qe(t.defineComponent({name:ku,props:Tu,emits:["click"],setup(e,{emit:o,slots:a}){const n=it(),{parent:r,index:l}=A(Vu);if(!r)return;const i=()=>{e.disabled||(o("click",l.value),r.setActive(l.value),n())};return()=>{const{dot:o,badge:n,title:s,disabled:c}=e,d=l.value===r.getActive();return t.createVNode("div",{role:"tab",class:Su({select:d,disabled:c}),tabindex:c?void 0:0,"aria-selected":d,onClick:i},[t.createVNode(ut,t.mergeProps({dot:o,class:Su("text"),content:n},e.badgeProps),{default:()=>[a.title?a.title():s]})])}}})),[Pu,Du,Ou]=Ee("signature"),Au={tips:String,type:k("png"),penColor:k("#000"),lineWidth:N(3),clearButtonText:String,backgroundColor:k(""),confirmButtonText:String};const Iu=qe(t.defineComponent({name:Pu,props:Au,emits:["submit","clear","start","end","signing"],setup(e,{emit:o}){const a=t.ref(),n=t.ref(),r=t.computed((()=>a.value?a.value.getContext("2d"):null)),i=!l||(()=>{var e;const t=document.createElement("canvas");return!!(null==(e=t.getContext)?void 0:e.call(t,"2d"))})();let s,c=0,d=0;const u=()=>{if(!r.value)return!1;r.value.beginPath(),r.value.lineWidth=e.lineWidth,r.value.strokeStyle=e.penColor,s=O(a),o("start")},p=e=>{if(!r.value)return!1;se(e);const t=e.touches[0],a=t.clientX-((null==s?void 0:s.left)||0),n=t.clientY-((null==s?void 0:s.top)||0);r.value.lineCap="round",r.value.lineJoin="round",r.value.lineTo(a,n),r.value.stroke(),o("signing",e)},v=e=>{se(e),o("end")},m=t=>{t&&e.backgroundColor&&(t.fillStyle=e.backgroundColor,t.fillRect(0,0,c,d))},f=()=>{var t,n;const r=a.value;if(!r)return;const l=(t=>{const o=document.createElement("canvas");if(o.width=t.width,o.height=t.height,e.backgroundColor){const e=o.getContext("2d");m(e)}return t.toDataURL()===o.toDataURL()})(r),i=l?"":(null==(n=(t={jpg:()=>r.toDataURL("image/jpeg",.8),jpeg:()=>r.toDataURL("image/jpeg",.8)})[e.type])?void 0:n.call(t))||r.toDataURL(`image/${e.type}`);o("submit",{image:i,canvas:r})},h=()=>{r.value&&(r.value.clearRect(0,0,c,d),r.value.closePath(),m(r.value)),o("clear")},g=()=>{var e,t,o;if(i&&a.value){const i=a.value,s=l?window.devicePixelRatio:1;c=i.width=((null==(e=n.value)?void 0:e.offsetWidth)||0)*s,d=i.height=((null==(t=n.value)?void 0:t.offsetHeight)||0)*s,null==(o=r.value)||o.scale(s,s),m(r.value)}},b=()=>{if(r.value){const e=r.value.getImageData(0,0,c,d);g(),r.value.putImageData(e,0,0)}};return t.watch(de,b),t.onMounted(g),nt({resize:b,clear:h,submit:f}),()=>t.createVNode("div",{class:Du()},[t.createVNode("div",{class:Du("content"),ref:n},[i?t.createVNode("canvas",{ref:a,onTouchstartPassive:u,onTouchmove:p,onTouchend:v},null):t.createVNode("p",null,[e.tips])]),t.createVNode("div",{class:Du("footer")},[t.createVNode(It,{size:"small",onClick:h},{default:()=>[e.clearButtonText||Ou("clear")]}),t.createVNode(It,{type:"primary",size:"small",onClick:f},{default:()=>[e.confirmButtonText||Ou("confirm")]})])])}})),[zu,Eu]=Ee("skeleton-title"),Lu={round:Boolean,titleWidth:y};const $u=qe(t.defineComponent({name:zu,props:Lu,setup:e=>()=>t.createVNode("h3",{class:Eu([{round:e.round}]),style:{width:ve(e.titleWidth)}},null)}));var Mu=$u;const[Ru,Fu]=Ee("skeleton-avatar"),Hu={avatarSize:y,avatarShape:k("round")};const ju=qe(t.defineComponent({name:Ru,props:Hu,setup:e=>()=>t.createVNode("div",{class:Fu([e.avatarShape]),style:me(e.avatarSize)},null)}));var Wu=ju;const Uu="100%",Yu={round:Boolean,rowWidth:{type:y,default:Uu}},[Xu,qu]=Ee("skeleton-paragraph");const Gu=qe(t.defineComponent({name:Xu,props:Yu,setup:e=>()=>t.createVNode("div",{class:qu([{round:e.round}]),style:{width:e.rowWidth}},null)}));var Zu=Gu;const[Ku,_u]=Ee("skeleton"),Ju={row:C(0),round:Boolean,title:Boolean,titleWidth:y,avatar:Boolean,avatarSize:y,avatarShape:k("round"),loading:w,animate:w,rowWidth:{type:[Number,String,Array],default:Uu}};const Qu=qe(t.defineComponent({name:Ku,inheritAttrs:!1,props:Ju,setup(e,{slots:o,attrs:a}){const n=()=>{if(e.avatar)return t.createVNode(Wu,{avatarShape:e.avatarShape,avatarSize:e.avatarSize},null)},r=()=>{if(e.title)return t.createVNode(Mu,{round:e.round,titleWidth:e.titleWidth},null)},l=t=>{const{rowWidth:o}=e;return o===Uu&&t===+e.row-1?"60%":Array.isArray(o)?o[t]:o};return()=>{var i;return e.loading?t.createVNode("div",t.mergeProps({class:_u({animate:e.animate,round:e.round})},a),[o.template?o.template():t.createVNode(t.Fragment,null,[n(),t.createVNode("div",{class:_u("content")},[r(),Array(+e.row).fill("").map(((o,a)=>t.createVNode(Zu,{key:a,round:e.round,rowWidth:ve(l(a))},null)))])])]):null==(i=o.default)?void 0:i.call(o)}}})),[ep,tp]=Ee("skeleton-image"),op={imageSize:y,imageShape:k("square")};const ap=qe(t.defineComponent({name:ep,props:op,setup:e=>()=>t.createVNode("div",{class:tp([e.imageShape]),style:me(e.imageSize)},[t.createVNode(Vt,{name:"photo",class:tp("icon")},null)])})),[np,rp]=Ee("slider"),lp={min:C(0),max:C(100),step:C(1),range:Boolean,reverse:Boolean,disabled:Boolean,readonly:Boolean,vertical:Boolean,barHeight:y,buttonSize:y,activeColor:String,inactiveColor:String,modelValue:{type:[Number,Array],default:0}};const ip=qe(t.defineComponent({name:np,props:lp,emits:["change","dragEnd","dragStart","update:modelValue"],setup(e,{emit:o,slots:a}){let n,r,l;const i=t.ref(),s=[t.ref(),t.ref()],c=t.ref(),d=Ut(),u=t.computed((()=>Number(e.max)-Number(e.min))),p=t.computed((()=>{const t=e.vertical?"width":"height";return{background:e.inactiveColor,[t]:ve(e.barHeight)}})),v=t=>e.range&&Array.isArray(t),m=()=>{const{modelValue:t,min:o}=e;return v(t)?100*(t[1]-t[0])/u.value+"%":100*(t-Number(o))/u.value+"%"},f=t.computed((()=>{const t=e.vertical?"height":"width",o={[t]:m(),background:e.activeColor};c.value&&(o.transition="none");return o[e.vertical?e.reverse?"bottom":"top":e.reverse?"right":"left"]=(()=>{const{modelValue:t,min:o}=e;return v(t)?100*(t[0]-Number(o))/u.value+"%":"0%"})(),o})),g=t=>{const o=+e.min,a=+e.max,n=+e.step;t=Ve(t,o,a);return ke(o,Math.round((t-o)/n)*n)},b=()=>{const t=e.modelValue;l=v(t)?t.map(g):g(t)},y=(t,a)=>{t=v(t)?(t=>{var o,a;const n=null!=(o=t[0])?o:Number(e.min),r=null!=(a=t[1])?a:Number(e.max);return n>r?[r,n]:[n,r]})(t).map(g):g(t),h(t,e.modelValue)||o("update:modelValue",t),a&&!h(t,l)&&o("change",t)},w=t=>{if(t.stopPropagation(),e.disabled||e.readonly)return;b();const{min:o,reverse:a,vertical:n,modelValue:r}=e,l=O(i),s=n?l.height:l.width,c=Number(o)+(n?a?l.bottom-t.clientY:t.clientY-l.top:a?l.right-t.clientX:t.clientX-l.left)/s*u.value;if(v(r)){const[e,t]=r;y(c<=(e+t)/2?[c,t]:[e,c],!0)}else y(c,!0)},x=t=>{if(e.disabled||e.readonly)return;"start"===c.value&&o("dragStart",t),se(t,!0),d.move(t),c.value="dragging";const a=O(i);let s=(e.vertical?d.deltaY.value:d.deltaX.value)/(e.vertical?a.height:a.width)*u.value;if(e.reverse&&(s=-s),v(l)){const t=e.reverse?1-n:n;r[t]=l[t]+s}else r=l+s;y(r)},V=t=>{e.disabled||e.readonly||("dragging"===c.value&&(y(r,!0),o("dragEnd",t)),c.value="")},N=t=>{if("number"==typeof t){return rp("button-wrapper",["left","right"][t])}return rp("button-wrapper",e.reverse?"left":"right")},C=(o,l)=>{const i="dragging"===c.value;if("number"==typeof l){const e=a[0===l?"left-button":"right-button"];let t;if(i&&Array.isArray(r)&&(t=r[0]>r[1]?1^n:n),e)return e({value:o,dragging:i,dragIndex:t})}return a.button?a.button({value:o,dragging:i}):t.createVNode("div",{class:rp("button"),style:me(e.buttonSize)},null)},k=o=>{const a="number"==typeof o?e.modelValue[o]:e.modelValue;return t.createVNode("div",{ref:s[null!=o?o:0],role:"slider",class:N(o),tabindex:e.disabled?void 0:0,"aria-valuemin":e.min,"aria-valuenow":a,"aria-valuemax":e.max,"aria-disabled":e.disabled||void 0,"aria-readonly":e.readonly||void 0,"aria-orientation":e.vertical?"vertical":"horizontal",onTouchstartPassive:t=>{"number"==typeof o&&(n=o),(t=>{e.disabled||e.readonly||(d.start(t),r=e.modelValue,b(),c.value="start")})(t)},onTouchend:V,onTouchcancel:V,onClick:ie},[C(a,o)])};return y(e.modelValue),Q((()=>e.modelValue)),s.forEach((e=>{j("touchmove",x,{target:e})})),()=>t.createVNode("div",{ref:i,style:p.value,class:rp({vertical:e.vertical,disabled:e.disabled}),onClick:w},[t.createVNode("div",{class:rp("bar"),style:f.value},[e.range?[k(0),k(1)]:k()])])}})),[sp,cp]=Ee("space"),dp={align:String,direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:8},wrap:Boolean,fill:Boolean};function up(e=[]){const o=[];return e.forEach((e=>{Array.isArray(e)?o.push(...e):e.type===t.Fragment?o.push(...up(e.children)):o.push(e)})),o.filter((e=>{var o;return!(e&&(e.type===t.Comment||e.type===t.Fragment&&0===(null==(o=e.children)?void 0:o.length)||e.type===t.Text&&""===e.children.trim()))}))}const pp=qe(t.defineComponent({name:sp,props:dp,setup(e,{slots:o}){const a=t.computed((()=>{var t;return null!=(t=e.align)?t:"horizontal"===e.direction?"center":""})),n=e=>"number"==typeof e?e+"px":e,r=t=>{const o={},a=`${n(Array.isArray(e.size)?e.size[0]:e.size)}`,r=`${n(Array.isArray(e.size)?e.size[1]:e.size)}`;return t?e.wrap?{marginBottom:r}:{}:("horizontal"===e.direction&&(o.marginRight=a),("vertical"===e.direction||e.wrap)&&(o.marginBottom=r),o)};return()=>{var n;const l=up(null==(n=o.default)?void 0:n.call(o));return t.createVNode("div",{class:[cp({[e.direction]:e.direction,[`align-${a.value}`]:a.value,wrap:e.wrap,fill:e.fill})]},[l.map(((e,o)=>t.createVNode("div",{key:`item-${o}`,class:`${sp}-item`,style:r(o===l.length-1)},[e])))])}}})),[vp,mp]=Ee("steps"),fp={active:C(0),direction:k("horizontal"),activeIcon:k("checked"),iconPrefix:String,finishIcon:String,activeColor:String,inactiveIcon:String,inactiveColor:String},hp=Symbol(vp);var gp=t.defineComponent({name:vp,props:fp,emits:["clickStep"],setup(e,{emit:o,slots:a}){const{linkChildren:n}=E(hp);return n({props:e,onClickStep:e=>o("clickStep",e)}),()=>{var o;return t.createVNode("div",{class:mp([e.direction])},[t.createVNode("div",{class:mp("items")},[null==(o=a.default)?void 0:o.call(a)])])}}});const[bp,yp]=Ee("step");const wp=qe(t.defineComponent({name:bp,setup(e,{slots:o}){const{parent:a,index:n}=A(hp);if(!a)return;const r=a.props,l=()=>{const e=+r.active;return n.value<e?"finish":n.value===e?"process":"waiting"},i=()=>"process"===l(),s=t.computed((()=>({background:"finish"===l()?r.activeColor:r.inactiveColor}))),c=t.computed((()=>i()?{color:r.activeColor}:"waiting"===l()?{color:r.inactiveColor}:void 0)),d=()=>a.onClickStep(n.value),u=()=>{const{iconPrefix:e,finishIcon:a,activeIcon:n,activeColor:c,inactiveIcon:d}=r;return i()?o["active-icon"]?o["active-icon"]():t.createVNode(Vt,{class:yp("icon","active"),name:n,color:c,classPrefix:e},null):"finish"===l()&&(a||o["finish-icon"])?o["finish-icon"]?o["finish-icon"]():t.createVNode(Vt,{class:yp("icon","finish"),name:a,color:c,classPrefix:e},null):o["inactive-icon"]?o["inactive-icon"]():d?t.createVNode(Vt,{class:yp("icon"),name:d,classPrefix:e},null):t.createVNode("i",{class:yp("circle"),style:s.value},null)};return()=>{var e;const a=l();return t.createVNode("div",{class:[Le,yp([r.direction,{[a]:a}])]},[t.createVNode("div",{class:yp("title",{active:i()}),style:c.value,onClick:d},[null==(e=o.default)?void 0:e.call(o)]),t.createVNode("div",{class:yp("circle-container"),onClick:d},[u()]),t.createVNode("div",{class:yp("line"),style:s.value},null)])}}})),[xp,Vp]=Ee("stepper"),Np=(e,t)=>String(e)===String(t),Cp={min:C(1),max:C(1/0),name:C(""),step:C(1),theme:String,integer:Boolean,disabled:Boolean,showPlus:w,showMinus:w,showInput:w,longPress:w,autoFixed:w,allowEmpty:Boolean,modelValue:y,inputWidth:y,buttonSize:y,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,beforeChange:Function,defaultValue:C(1),decimalLength:y};const kp=qe(t.defineComponent({name:xp,props:Cp,emits:["plus","blur","minus","focus","change","overlimit","update:modelValue"],setup(e,{emit:o}){const a=(t,o=!0)=>{const{min:a,max:n,allowEmpty:r,decimalLength:l}=e;return r&&""===t||(t=""===(t=Ce(String(t),!e.integer))?0:+t,t=Number.isNaN(t)?+a:t,t=o?Math.max(Math.min(+n,t),+a):t,s(l)&&(t=t.toFixed(+l))),t};let n;const r=t.ref(),l=t.ref((()=>{var t;const n=null!=(t=e.modelValue)?t:e.defaultValue,r=a(n);return Np(r,e.modelValue)||o("update:modelValue",r),r})()),i=t.computed((()=>e.disabled||e.disableMinus||+l.value<=+e.min)),c=t.computed((()=>e.disabled||e.disablePlus||+l.value>=+e.max)),d=t.computed((()=>({width:ve(e.inputWidth),height:ve(e.buttonSize)}))),u=t.computed((()=>me(e.buttonSize))),p=t=>{e.beforeChange?Xe(e.beforeChange,{args:[t],done(){l.value=t}}):l.value=t},v=()=>{if("plus"===n&&c.value||"minus"===n&&i.value)return void o("overlimit",n);const t="minus"===n?-e.step:+e.step,r=a(ke(+l.value,t));p(r),o(n)},m=t=>{const o=t.target,{value:a}=o,{decimalLength:n}=e;let r=Ce(String(a),!e.integer);if(s(n)&&r.includes(".")){const e=r.split(".");r=`${e[0]}.${e[1].slice(0,+n)}`}e.beforeChange?o.value=String(l.value):Np(a,r)||(o.value=r);const i=r===String(+r);p(i?+r:r)},f=t=>{var a;e.disableInput?null==(a=r.value)||a.blur():o("focus",t)},h=n=>{const r=n.target,i=a(r.value,e.autoFixed);r.value=String(i),l.value=i,t.nextTick((()=>{o("blur",n),le()}))};let g,b;const y=()=>{b=setTimeout((()=>{v(),y()}),200)},w=t=>{e.longPress&&(clearTimeout(b),g&&se(t))},x=t=>{e.disableInput&&se(t)},V=t=>({onClick:e=>{se(e),n=t,v()},onTouchstartPassive:()=>{n=t,e.longPress&&(g=!1,clearTimeout(b),b=setTimeout((()=>{g=!0,v(),y()}),500))},onTouchend:w,onTouchcancel:w});return t.watch((()=>[e.max,e.min,e.integer,e.decimalLength]),(()=>{const e=a(l.value);Np(e,l.value)||(l.value=e)})),t.watch((()=>e.modelValue),(e=>{Np(e,l.value)||(l.value=a(e))})),t.watch(l,(t=>{o("update:modelValue",t),o("change",t,{name:e.name})})),Q((()=>e.modelValue)),()=>t.createVNode("div",{role:"group",class:Vp([e.theme])},[t.withDirectives(t.createVNode("button",t.mergeProps({type:"button",style:u.value,class:[Vp("minus",{disabled:i.value}),{[Ue]:!i.value}],"aria-disabled":i.value||void 0},V("minus")),null),[[t.vShow,e.showMinus]]),t.withDirectives(t.createVNode("input",{ref:r,type:e.integer?"tel":"text",role:"spinbutton",class:Vp("input"),value:l.value,style:d.value,disabled:e.disabled,readonly:e.disableInput,inputmode:e.integer?"numeric":"decimal",placeholder:e.placeholder,autocomplete:"off","aria-valuemax":e.max,"aria-valuemin":e.min,"aria-valuenow":l.value,onBlur:h,onInput:m,onFocus:f,onMousedown:x},null),[[t.vShow,e.showInput]]),t.withDirectives(t.createVNode("button",t.mergeProps({type:"button",style:u.value,class:[Vp("plus",{disabled:c.value}),{[Ue]:!c.value}],"aria-disabled":c.value||void 0},V("plus")),null),[[t.vShow,e.showPlus]])])}})),Sp=qe(gp),[Tp,Bp,Pp]=Ee("submit-bar"),Dp={tip:String,label:String,price:Number,tipIcon:String,loading:Boolean,currency:k("¥"),disabled:Boolean,textAlign:String,buttonText:String,buttonType:k("danger"),buttonColor:String,suffixLabel:String,placeholder:Boolean,decimalLength:C(2),safeAreaInsetBottom:w};const Op=qe(t.defineComponent({name:Tp,props:Dp,emits:["submit"],setup(e,{emit:o,slots:a}){const n=t.ref(),r=Je(n,Bp),l=()=>{const{price:o,label:a,currency:n,textAlign:r,suffixLabel:l,decimalLength:i}=e;if("number"==typeof o){const e=(o/100).toFixed(+i).split("."),s=i?`.${e[1]}`:"";return t.createVNode("div",{class:Bp("text"),style:{textAlign:r}},[t.createVNode("span",null,[a||Pp("label")]),t.createVNode("span",{class:Bp("price")},[n,t.createVNode("span",{class:Bp("price-integer")},[e[0]]),s]),l&&t.createVNode("span",{class:Bp("suffix-label")},[l])])}},i=()=>{var o;const{tip:n,tipIcon:r}=e;if(a.tip||n)return t.createVNode("div",{class:Bp("tip")},[r&&t.createVNode(Vt,{class:Bp("tip-icon"),name:r},null),n&&t.createVNode("span",{class:Bp("tip-text")},[n]),null==(o=a.tip)?void 0:o.call(a)])},s=()=>o("submit"),c=()=>{var o,r;return t.createVNode("div",{ref:n,class:[Bp(),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[null==(o=a.top)?void 0:o.call(a),i(),t.createVNode("div",{class:Bp("bar")},[null==(r=a.default)?void 0:r.call(a),l(),a.button?a.button():t.createVNode(It,{round:!0,type:e.buttonType,text:e.buttonText,class:Bp("button",e.buttonType),color:e.buttonColor,loading:e.loading,disabled:e.disabled,onClick:s},null)])])};return()=>e.placeholder?r(c):c()}})),[Ap,Ip]=Ee("swipe-cell"),zp={name:C(""),disabled:Boolean,leftWidth:y,rightWidth:y,beforeClose:Function,stopPropagation:Boolean};const Ep=qe(t.defineComponent({name:Ap,props:zp,emits:["open","close","click"],setup(e,{emit:o,slots:a}){let n,r,l,i;const c=t.ref(),d=t.ref(),u=t.ref(),p=t.reactive({offset:0,dragging:!1}),v=Ut(),m=e=>e.value?O(e).width:0,f=t.computed((()=>s(e.leftWidth)?+e.leftWidth:m(d))),h=t.computed((()=>s(e.rightWidth)?+e.rightWidth:m(u))),g=t=>{p.offset="left"===t?f.value:-h.value,n||(n=!0,o("open",{name:e.name,position:t}))},b=t=>{p.offset=0,n&&(n=!1,o("close",{name:e.name,position:t}))},y=t=>{e.disabled||(l=p.offset,v.start(t))},w=()=>{p.dragging&&(p.dragging=!1,(e=>{const t=Math.abs(p.offset),o=n?.85:.15,a="left"===e?f.value:h.value;a&&t>a*o?g(e):b(e)})(p.offset>0?"left":"right"),setTimeout((()=>{r=!1}),0))},x=(t="outside",a)=>{i||(o("click",t),n&&!r&&(i=!0,Xe(e.beforeClose,{args:[{event:a,name:e.name,position:t}],done:()=>{i=!1,b(t)},canceled:()=>i=!1,error:()=>i=!1})))},V=(e,t)=>o=>{t&&o.stopPropagation(),r||x(e,o)},N=(e,o)=>{const n=a[e];if(n)return t.createVNode("div",{ref:o,class:Ip(e),onClick:V(e,!0)},[n()])};return nt({open:g,close:b}),W(c,(e=>x("outside",e)),{eventName:"touchstart"}),j("touchmove",(t=>{if(e.disabled)return;const{deltaX:o}=v;if(v.move(t),v.isHorizontal()){r=!0,p.dragging=!0;(!n||o.value*l<0)&&se(t,e.stopPropagation),p.offset=Ve(o.value+l,-h.value,f.value)}}),{target:c}),()=>{var e;const o={transform:`translate3d(${p.offset}px, 0, 0)`,transitionDuration:p.dragging?"0s":".6s"};return t.createVNode("div",{ref:c,class:Ip(),onClick:V("cell",r),onTouchstartPassive:y,onTouchend:w,onTouchcancel:w},[t.createVNode("div",{class:Ip("wrapper"),style:o},[N("left",d),null==(e=a.default)?void 0:e.call(a),N("right",u)])])}}})),[Lp,$p]=Ee("tabbar"),Mp={route:Boolean,fixed:w,border:w,zIndex:y,placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,modelValue:C(0),safeAreaInsetBottom:{type:Boolean,default:null}},Rp=Symbol(Lp);const Fp=qe(t.defineComponent({name:Lp,props:Mp,emits:["change","update:modelValue"],setup(e,{emit:o,slots:a}){const n=t.ref(),{linkChildren:r}=E(Rp),l=Je(n,$p),i=()=>{var t;return null!=(t=e.safeAreaInsetBottom)?t:e.fixed},s=()=>{var o;const{fixed:r,zIndex:l,border:s}=e;return t.createVNode("div",{ref:n,role:"tablist",style:fe(l),class:[$p({fixed:r}),{[je]:s,"van-safe-area-bottom":i()}]},[null==(o=a.default)?void 0:o.call(a)])};return r({props:e,setActive:(t,a)=>{Xe(e.beforeChange,{args:[t],done(){o("update:modelValue",t),o("change",t),a()}})}}),()=>e.fixed&&e.placeholder?l(s):s()}})),[Hp,jp]=Ee("tabbar-item"),Wp=r({},rt,{dot:Boolean,icon:String,name:y,badge:y,badgeProps:Object,iconPrefix:String});const Up=qe(t.defineComponent({name:Hp,props:Wp,emits:["click"],setup(e,{emit:o,slots:a}){const n=it(),r=t.getCurrentInstance().proxy,{parent:l,index:s}=A(Rp);if(!l)return;const c=t.computed((()=>{var t;const{route:o,modelValue:a}=l.props;if(o&&"$route"in r){const{$route:t}=r,{to:o}=e,a=i(o)?o:{path:o};return!!t.matched.find((e=>{const t="path"in a&&a.path===e.path,o="name"in a&&a.name===e.name;return t||o}))}return(null!=(t=e.name)?t:s.value)===a})),d=t=>{var a;c.value||l.setActive(null!=(a=e.name)?a:s.value,n),o("click",t)},u=()=>a.icon?a.icon({active:c.value}):e.icon?t.createVNode(Vt,{name:e.icon,classPrefix:e.iconPrefix},null):void 0;return()=>{var o;const{dot:n,badge:r}=e,{activeColor:i,inactiveColor:s}=l.props,p=c.value?i:s;return t.createVNode("div",{role:"tab",class:jp({active:c.value}),style:{color:p},tabindex:0,"aria-selected":c.value,onClick:d},[t.createVNode(ut,t.mergeProps({dot:n,class:jp("icon"),content:r},e.badgeProps),{default:u}),t.createVNode("div",{class:jp("text")},[null==(o=a.default)?void 0:o.call(a,{active:c.value})])])}}})),[Yp,Xp]=Ee("text-ellipsis"),qp={rows:C(1),dots:k("..."),content:k(""),expandText:k(""),collapseText:k(""),position:k("end")};const Gp=qe(t.defineComponent({name:Yp,props:qp,emits:["clickAction"],setup(e,{emit:o,slots:a}){const n=t.ref(e.content),r=t.ref(!1),l=t.ref(!1),i=t.ref(),s=t.ref();let c=!1;const d=t.computed((()=>r.value?e.collapseText:e.expandText)),u=e=>{if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0},p=()=>{const t=(()=>{if(!i.value||!i.value.isConnected)return;const t=window.getComputedStyle(i.value),o=document.createElement("div");return Array.prototype.slice.apply(t).forEach((e=>{o.style.setProperty(e,t.getPropertyValue(e))})),o.style.position="fixed",o.style.zIndex="-9999",o.style.top="-9999px",o.style.height="auto",o.style.minHeight="auto",o.style.maxHeight="auto",o.innerText=e.content,document.body.appendChild(o),o})();if(!t)return void(c=!0);const{paddingBottom:o,paddingTop:r,lineHeight:d}=t.style,p=Math.ceil((Number(e.rows)+.5)*u(d)+u(r)+u(o));p<t.offsetHeight?(l.value=!0,n.value=((t,o)=>{var n,r;const{content:l,position:i,dots:c}=e,d=l.length,u=0+d>>1,p=a.action?null!=(r=null==(n=s.value)?void 0:n.outerHTML)?r:"":e.expandText,v=(a,n)=>{if(a[1]-a[0]<=1&&n[1]-n[0]<=1)return l.slice(0,a[0])+c+l.slice(n[1],d);const r=Math.floor((a[0]+a[1])/2),i=Math.ceil((n[0]+n[1])/2);return t.innerText=e.content.slice(0,r)+e.dots+e.content.slice(i,d),t.innerHTML+=p,t.offsetHeight>=o?v([a[0],r],[i,n[1]]):v([r,a[1]],[n[0],i])};return"middle"===e.position?v([0,u],[u,d]):(()=>{const e=(a,n)=>{if(n-a<=1)return"end"===i?l.slice(0,a)+c:c+l.slice(n,d);const r=Math.round((a+n)/2);return t.innerText="end"===i?l.slice(0,r)+c:c+l.slice(r,d),t.innerHTML+=p,t.offsetHeight>o?"end"===i?e(a,r):e(r,n):"end"===i?e(r,n):e(a,r)};return e(0,d)})()})(t,p)):(l.value=!1,n.value=e.content),document.body.removeChild(t)},v=(e=!r.value)=>{r.value=e},m=e=>{v(),o("clickAction",e)},f=()=>{const e=a.action?a.action({expanded:r.value}):d.value;return t.createVNode("span",{ref:s,class:Xp("action"),onClick:m},[e])};return t.onMounted((()=>{p(),a.action&&t.nextTick(p)})),t.onActivated((()=>{c&&(c=!1,p())})),t.watch([de,()=>[e.content,e.rows,e.position]],p),nt({toggle:v}),()=>t.createVNode("div",{ref:i,class:Xp()},[r.value?e.content:n.value,l.value?f():null])}})),[Zp]=Ee("time-picker"),Kp=e=>/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/.test(e),_p=["hour","minute","second"],Jp=r({},Jr,{minHour:C(0),maxHour:C(23),minMinute:C(0),maxMinute:C(59),minSecond:C(0),maxSecond:C(59),minTime:{type:String,validator:Kp},maxTime:{type:String,validator:Kp},columnsType:{type:Array,default:()=>["hour","minute"]}});const Qp=qe(t.defineComponent({name:Zp,props:Jp,emits:["confirm","cancel","change","update:modelValue"],setup(e,{emit:o,slots:a}){const n=t.ref(e.modelValue),r=t.ref(),l=t=>{const o=t.split(":");return _p.map(((t,a)=>e.columnsType.includes(t)?o[a]:"00"))},i=t.computed((()=>{let{minHour:t,maxHour:o,minMinute:a,maxMinute:r,minSecond:i,maxSecond:s}=e;if(e.minTime||e.maxTime){const c={hour:0,minute:0,second:0};e.columnsType.forEach(((e,t)=>{var o;c[e]=null!=(o=n.value[t])?o:0}));const{hour:d,minute:u}=c;if(e.minTime){const[o,n,r]=l(e.minTime);t=o,a=+d<=+t?n:"00",i=+d<=+t&&+u<=+a?r:"00"}if(e.maxTime){const[t,a,n]=l(e.maxTime);o=t,r=+d>=+o?a:"59",s=+d>=+o&&+u>=+r?n:"59"}}return e.columnsType.map((l=>{const{filter:c,formatter:d}=e;switch(l){case"hour":return tl(+t,+o,l,d,c,n.value);case"minute":return tl(+a,+r,l,d,c,n.value);case"second":return tl(+i,+s,l,d,c,n.value);default:return[]}}))}));t.watch(n,(t=>{h(t,e.modelValue)||o("update:modelValue",t)})),t.watch((()=>e.modelValue),(e=>{e=ol(e,i.value),h(e,n.value)||(n.value=e)}),{immediate:!0});const s=(...e)=>o("change",...e),c=(...e)=>o("cancel",...e),d=(...e)=>o("confirm",...e);return nt({confirm:()=>{var e;return null==(e=r.value)?void 0:e.confirm()},getSelectedTime:()=>n.value}),()=>t.createVNode(Da,t.mergeProps({ref:r,modelValue:n.value,"onUpdate:modelValue":e=>n.value=e,columns:i.value,onChange:s,onCancel:c,onConfirm:d},f(e,Qr)),a)}})),[ev,tv]=Ee("tree-select"),ov={max:C(1/0),items:V(),height:C(300),selectedIcon:k("success"),mainActiveIndex:C(0),activeId:{type:[Number,String,Array],default:0}};const av=qe(t.defineComponent({name:ev,props:ov,emits:["clickNav","clickItem","update:activeId","update:mainActiveIndex"],setup(e,{emit:o,slots:a}){const n=t=>Array.isArray(e.activeId)?e.activeId.includes(t):e.activeId===t,r=a=>t.createVNode("div",{key:a.id,class:["van-ellipsis",tv("item",{active:n(a.id),disabled:a.disabled})],onClick:()=>{if(a.disabled)return;let t;if(Array.isArray(e.activeId)){t=e.activeId.slice();const o=t.indexOf(a.id);-1!==o?t.splice(o,1):t.length<+e.max&&t.push(a.id)}else t=a.id;o("update:activeId",t),o("clickItem",a)}},[a.text,n(a.id)&&t.createVNode(Vt,{name:e.selectedIcon,class:tv("selected")},null)]),l=e=>{o("update:mainActiveIndex",e)},i=e=>o("clickNav",e),s=()=>{const o=e.items.map((e=>t.createVNode(Bu,{dot:e.dot,badge:e.badge,class:[tv("nav-item"),e.className],disabled:e.disabled,onClick:i},{title:()=>a["nav-text"]?a["nav-text"](e):e.text})));return t.createVNode(Cu,{class:tv("nav"),modelValue:e.mainActiveIndex,onChange:l},{default:()=>[o]})},c=()=>{if(a.content)return a.content();const t=e.items[+e.mainActiveIndex]||{};return t.children?t.children.map(r):void 0};return()=>t.createVNode("div",{class:tv(),style:{height:ve(e.height)}},[s(),t.createVNode("div",{class:tv("content")},[c()])])}})),[nv,rv,lv]=Ee("uploader");function iv(e,t){return new Promise((o=>{if("file"===t)return void o();const a=new FileReader;a.onload=e=>{o(e.target.result)},"dataUrl"===t?a.readAsDataURL(e):"text"===t&&a.readAsText(e)}))}function sv(e,t){return g(e).some((e=>!!e.file&&(c(t)?t(e.file):e.file.size>+t)))}const cv=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg|avif)/i;function dv(e){return!!e.isImage||(e.file&&e.file.type?0===e.file.type.indexOf("image"):e.url?(t=e.url,cv.test(t)):"string"==typeof e.content&&0===e.content.indexOf("data:image"));var t}var uv=t.defineComponent({props:{name:y,item:x(Object),index:Number,imageFit:String,lazyLoad:Boolean,deletable:Boolean,reupload:Boolean,previewSize:[Number,String,Array],beforeDelete:Function},emits:["delete","preview","reupload"],setup(e,{emit:o,slots:a}){const n=()=>{const{status:o,message:a}=e.item;if("uploading"===o||"failed"===o){const e="failed"===o?t.createVNode(Vt,{name:"close",class:rv("mask-icon")},null):t.createVNode(Pt,{class:rv("loading")},null),n=s(a)&&""!==a;return t.createVNode("div",{class:rv("mask")},[e,n&&t.createVNode("div",{class:rv("mask-message")},[a])])}},l=t=>{const{name:a,item:n,index:r,beforeDelete:l}=e;t.stopPropagation(),Xe(l,{args:[n,{name:a,index:r}],done:()=>o("delete")})},i=()=>o("preview"),c=()=>o("reupload"),d=()=>{if(e.deletable&&"uploading"!==e.item.status){const e=a["preview-delete"];return t.createVNode("div",{role:"button",class:rv("preview-delete",{shadow:!e}),tabindex:0,"aria-label":lv("delete"),onClick:l},[e?e():t.createVNode(Vt,{name:"cross",class:rv("preview-delete-icon")},null)])}},u=()=>{if(a["preview-cover"]){const{index:o,item:n}=e;return t.createVNode("div",{class:rv("preview-cover")},[a["preview-cover"](r({index:o},n))])}},p=()=>{const{item:o,lazyLoad:a,imageFit:n,previewSize:r,reupload:l}=e;return dv(o)?t.createVNode(fl,{fit:n,src:o.objectUrl||o.content||o.url,class:rv("preview-image"),width:Array.isArray(r)?r[0]:r,height:Array.isArray(r)?r[1]:r,lazyLoad:a,onClick:l?c:i},{default:u}):t.createVNode("div",{class:rv("file"),style:me(e.previewSize)},[t.createVNode(Vt,{class:rv("file-icon"),name:"description"},null),t.createVNode("div",{class:[rv("file-name"),"van-ellipsis"]},[o.file?o.file.name:o.url]),u()])};return()=>t.createVNode("div",{class:rv("preview")},[p(),n(),d()])}});const pv={name:C(""),accept:k("image/*"),capture:String,multiple:Boolean,disabled:Boolean,readonly:Boolean,lazyLoad:Boolean,maxCount:C(1/0),imageFit:k("cover"),resultType:k("dataUrl"),uploadIcon:k("photograph"),uploadText:String,deletable:w,reupload:Boolean,afterRead:Function,showUpload:w,modelValue:V(),beforeRead:Function,beforeDelete:Function,previewSize:[Number,String,Array],previewImage:w,previewOptions:Object,previewFullImage:w,maxSize:{type:[Number,String,Function],default:1/0}};const vv=qe(t.defineComponent({name:nv,props:pv,emits:["delete","oversize","clickUpload","closePreview","clickPreview","clickReupload","update:modelValue"],setup(e,{emit:o,slots:a}){const n=t.ref(),l=[],i=t.ref(-1),s=t.ref(!1),c=(t=e.modelValue.length)=>({name:e.name,index:t}),u=()=>{n.value&&(n.value.value="")},p=a=>{if(u(),sv(a,e.maxSize)){if(!Array.isArray(a))return void o("oversize",a,c());{const t=function(e,t){const o=[],a=[];return e.forEach((e=>{sv(e,t)?a.push(e):o.push(e)})),{valid:o,invalid:a}}(a,e.maxSize);if(a=t.valid,o("oversize",t.invalid,c()),!a.length)return}}if(a=t.reactive(a),i.value>-1){const t=[...e.modelValue];t.splice(i.value,1,a),o("update:modelValue",t),i.value=-1}else o("update:modelValue",[...e.modelValue,...g(a)]);e.afterRead&&e.afterRead(a,c())},v=t=>{const{maxCount:o,modelValue:a,resultType:n}=e;if(Array.isArray(t)){const e=+o-a.length;t.length>e&&(t=t.slice(0,e)),Promise.all(t.map((e=>iv(e,n)))).then((e=>{const o=t.map(((t,o)=>{const a={file:t,status:"",message:"",objectUrl:URL.createObjectURL(t)};return e[o]&&(a.content=e[o]),a}));p(o)}))}else iv(t,n).then((e=>{const o={file:t,status:"",message:"",objectUrl:URL.createObjectURL(t)};e&&(o.content=e),p(o)}))},m=t=>{const{files:o}=t.target;if(e.disabled||!o||!o.length)return;const a=1===o.length?o[0]:[].slice.call(o);if(e.beforeRead){const t=e.beforeRead(a,c());if(!t)return void u();if(d(t))return void t.then((e=>{v(e||a)})).catch(u)}v(a)};let h;const b=()=>o("closePreview"),y=e=>{s.value=!0,i.value=e,t.nextTick((()=>k()))},w=()=>{s.value||(i.value=-1),s.value=!1},x=(n,i)=>{const s=["imageFit","deletable","reupload","previewSize","beforeDelete"],d=r(f(e,s),f(n,s,!0));return t.createVNode(uv,t.mergeProps({item:n,index:i,onClick:()=>o(e.reupload?"clickReupload":"clickPreview",n,c(i)),onDelete:()=>((t,a)=>{const n=e.modelValue.slice(0);n.splice(a,1),o("update:modelValue",n),o("delete",t,c(a))})(n,i),onPreview:()=>(t=>{if(e.previewFullImage){const o=e.modelValue.filter(dv),a=o.map((e=>(e.objectUrl&&!e.url&&"failed"!==e.status&&(e.url=e.objectUrl,l.push(e.url)),e.url))).filter(Boolean);h=Zs(r({images:a,startPosition:o.indexOf(t),onClose:b},e.previewOptions))}})(n),onReupload:()=>y(i)},f(e,["name","lazyLoad"]),d),f(a,["preview-cover","preview-delete"]))},V=()=>{if(e.previewImage)return e.modelValue.map(x)},N=e=>o("clickUpload",e),C=()=>{const o=e.modelValue.length<+e.maxCount,r=e.readonly?null:t.createVNode("input",{ref:n,type:"file",class:rv("input"),accept:e.accept,capture:e.capture,multiple:e.multiple&&-1===i.value,disabled:e.disabled,onChange:m,onClick:w},null);return a.default?t.withDirectives(t.createVNode("div",{class:rv("input-wrapper"),onClick:N},[a.default(),r]),[[t.vShow,o]]):t.withDirectives(t.createVNode("div",{class:rv("upload",{readonly:e.readonly}),style:me(e.previewSize),onClick:N},[t.createVNode(Vt,{name:e.uploadIcon,class:rv("upload-icon")},null),e.uploadText&&t.createVNode("span",{class:rv("upload-text")},[e.uploadText]),r]),[[t.vShow,e.showUpload&&o]])},k=()=>{n.value&&!e.disabled&&n.value.click()};return t.onBeforeUnmount((()=>{l.forEach((e=>URL.revokeObjectURL(e)))})),nt({chooseFile:k,reuploadFile:y,closeImagePreview:()=>{h&&h.close()}}),Q((()=>e.modelValue)),()=>t.createVNode("div",{class:rv()},[t.createVNode("div",{class:rv("wrapper",{disabled:e.disabled})},[V(),C()])])}})),[mv,fv]=Ee("watermark"),hv={gapX:N(0),gapY:N(0),image:String,width:N(100),height:N(100),rotate:C(-22),zIndex:y,content:String,opacity:y,fullPage:w,textColor:k("#dcdee0")};const gv=qe(t.defineComponent({name:mv,props:hv,setup(e,{slots:o}){const a=t.ref(),n=t.ref(""),l=t.ref(""),i=()=>{const a={transformOrigin:"center",transform:`rotate(${e.rotate}deg)`},n=e.width+e.gapX,r=e.height+e.gapY;return t.createVNode("svg",{viewBox:`0 0 ${n} ${r}`,width:n,height:r,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{padding:`0 ${e.gapX}px ${e.gapY}px 0`,opacity:e.opacity}},[e.image&&!o.content?t.createVNode("image",{href:l.value,"xlink:href":l.value,x:"0",y:"0",width:e.width,height:e.height,style:a},null):t.createVNode("foreignObject",{x:"0",y:"0",width:e.width,height:e.height},[t.createVNode("div",{xmlns:"http://www.w3.org/1999/xhtml",style:a},[o.content?o.content():t.createVNode("span",{style:{color:e.textColor}},[e.content])])])])};return t.watchEffect((()=>{e.image&&(e=>{const t=document.createElement("canvas"),o=new Image;o.crossOrigin="anonymous",o.referrerPolicy="no-referrer",o.onload=()=>{t.width=o.naturalWidth,t.height=o.naturalHeight;const e=t.getContext("2d");null==e||e.drawImage(o,0,0),l.value=t.toDataURL()},o.src=e})(e.image)})),t.watch((()=>[l.value,e.content,e.textColor,e.height,e.width,e.rotate,e.gapX,e.gapY]),(()=>{t.nextTick((()=>{a.value&&(n.value&&URL.revokeObjectURL(n.value),n.value=(e=>{const t=new Blob([e],{type:"image/svg+xml"});return URL.createObjectURL(t)})(a.value.innerHTML))}))}),{immediate:!0}),t.onUnmounted((()=>{n.value&&URL.revokeObjectURL(n.value)})),()=>{const o=r({backgroundImage:`url(${n.value})`},fe(e.zIndex));return t.createVNode("div",{class:fv({full:e.fullPage}),style:o},[t.createVNode("div",{class:fv("wrapper"),ref:a},[i()])])}}}));class bv{constructor({el:e,src:t,error:o,loading:a,bindType:n,$parent:r,options:l,cors:i,elRenderer:s,imageCache:c}){this.el=e,this.src=t,this.error=o,this.loading=a,this.bindType=n,this.attempt=0,this.cors=i,this.naturalHeight=0,this.naturalWidth=0,this.options=l,this.$parent=r,this.elRenderer=s,this.imageCache=c,this.performanceData={loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}initState(){"dataset"in this.el?this.el.dataset.src=this.src:this.el.setAttribute("data-src",this.src),this.state={loading:!1,error:!1,loaded:!1,rendered:!1}}record(e){this.performanceData[e]=Date.now()}update({src:e,loading:t,error:o}){const a=this.src;this.src=e,this.loading=t,this.error=o,this.filter(),a!==this.src&&(this.attempt=0,this.initState())}checkInView(){const e=O(this.el);return e.top<window.innerHeight*this.options.preLoad&&e.bottom>this.options.preLoadTop&&e.left<window.innerWidth*this.options.preLoad&&e.right>0}filter(){Object.keys(this.options.filter).forEach((e=>{this.options.filter[e](this,this.options)}))}renderLoading(e){this.state.loading=!0,kr({src:this.loading,cors:this.cors},(()=>{this.render("loading",!1),this.state.loading=!1,e()}),(()=>{e(),this.state.loading=!1}))}load(e=n){if(this.attempt>this.options.attempt-1&&this.state.error)e();else if(!this.state.rendered||!this.state.loaded)return this.imageCache.has(this.src)?(this.state.loaded=!0,this.render("loaded",!0),this.state.rendered=!0,e()):void this.renderLoading((()=>{var t,o;this.attempt++,null==(o=(t=this.options.adapter).beforeLoad)||o.call(t,this,this.options),this.record("loadStart"),kr({src:this.src,cors:this.cors},(t=>{this.naturalHeight=t.naturalHeight,this.naturalWidth=t.naturalWidth,this.state.loaded=!0,this.state.error=!1,this.record("loadEnd"),this.render("loaded",!1),this.state.rendered=!0,this.imageCache.add(this.src),e()}),(e=>{!this.options.silent&&console.error(e),this.state.error=!0,this.state.loaded=!1,this.render("error",!1)}))}))}render(e,t){this.elRenderer(this,e,t)}performance(){let e="loading",t=0;return this.state.loaded&&(e="loaded",t=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(e="error"),{src:this.src,state:e,time:t}}$destroy(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}const yv="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",wv=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],xv={rootMargin:"0px",threshold:0};var Vv=e=>({props:{tag:{type:String,default:"div"}},emits:["show"],render(){return t.h(this.tag,this.show&&this.$slots.default?this.$slots.default():null)},data:()=>({el:null,state:{loaded:!1},show:!1}),mounted(){this.el=this.$el,e.addLazyBox(this),e.lazyLoadHandler()},beforeUnmount(){e.removeComponent(this)},methods:{checkInView(){const t=O(this.$el);return S&&t.top<window.innerHeight*e.options.preLoad&&t.bottom>0&&t.left<window.innerWidth*e.options.preLoad&&t.right>0},load(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)},destroy(){return this.$destroy}}});const Nv={selector:"img"};class Cv{constructor({el:e,binding:t,vnode:o,lazy:a}){this.el=null,this.vnode=o,this.binding=t,this.options={},this.lazy=a,this.queue=[],this.update({el:e,binding:t})}update({el:e,binding:t}){this.el=e,this.options=Object.assign({},Nv,t.value);this.getImgs().forEach((e=>{this.lazy.add(e,Object.assign({},this.binding,{value:{src:"dataset"in e?e.dataset.src:e.getAttribute("data-src"),error:("dataset"in e?e.dataset.error:e.getAttribute("data-error"))||this.options.error,loading:("dataset"in e?e.dataset.loading:e.getAttribute("data-loading"))||this.options.loading}}),this.vnode)}))}getImgs(){return Array.from(this.el.querySelectorAll(this.options.selector))}clear(){this.getImgs().forEach((e=>this.lazy.remove(e))),this.vnode=null,this.binding=null,this.lazy=null}}class kv{constructor({lazy:e}){this.lazy=e,this.queue=[]}bind(e,t,o){const a=new Cv({el:e,binding:t,vnode:o,lazy:this.lazy});this.queue.push(a)}update(e,t,o){const a=this.queue.find((t=>t.el===e));a&&a.update({el:e,binding:t,vnode:o})}unbind(e){const t=this.queue.find((t=>t.el===e));t&&(t.clear(),br(this.queue,t))}}var Sv=e=>({props:{src:[String,Object],tag:{type:String,default:"img"}},render(){var e,o;return t.h(this.tag,{src:this.renderSrc},null==(o=(e=this.$slots).default)?void 0:o.call(e))},data:()=>({el:null,options:{src:"",error:"",loading:"",attempt:e.options.attempt},state:{loaded:!1,error:!1,attempt:0},renderSrc:""}),watch:{src(){this.init(),e.addLazyBox(this),e.lazyLoadHandler()}},created(){this.init()},mounted(){this.el=this.$el,e.addLazyBox(this),e.lazyLoadHandler()},beforeUnmount(){e.removeComponent(this)},methods:{init(){const{src:t,loading:o,error:a}=e.valueFormatter(this.src);this.state.loaded=!1,this.options.src=t,this.options.error=a,this.options.loading=o,this.renderSrc=this.options.loading},checkInView(){const t=O(this.$el);return t.top<window.innerHeight*e.options.preLoad&&t.bottom>0&&t.left<window.innerWidth*e.options.preLoad&&t.right>0},load(e=n){if(this.state.attempt>this.options.attempt-1&&this.state.error)return void e();const{src:t}=this.options;kr({src:t},(({src:e})=>{this.renderSrc=e,this.state.loaded=!0}),(()=>{this.state.attempt++,this.renderSrc=this.options.error,this.state.error=!0}))}}});const Tv={install(e,o={}){const a=class{constructor({preLoad:e,error:t,throttleWait:o,preLoadTop:a,dispatchEvent:n,loading:r,attempt:l,silent:i=!0,scale:s,listenEvents:c,filter:d,adapter:u,observer:p,observerOptions:v}){this.mode=hr,this.listeners=[],this.targetIndex=0,this.targets=[],this.options={silent:i,dispatchEvent:!!n,throttleWait:o||200,preLoad:e||1.3,preLoadTop:a||0,error:t||yv,loading:r||yv,attempt:l||3,scale:s||wr(s),ListenEvents:c||wv,supportWebp:xr(),filter:d||{},adapter:u||{},observer:!!p,observerOptions:v||xv},this.initEvent(),this.imageCache=new Sr({max:200}),this.lazyLoadHandler=Vr(this.lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?gr:hr)}config(e={}){Object.assign(this.options,e)}performance(){return this.listeners.map((e=>e.performance()))}addLazyBox(e){this.listeners.push(e),S&&(this.addListenerTarget(window),this.observer&&this.observer.observe(e.el),e.$el&&e.$el.parentNode&&this.addListenerTarget(e.$el.parentNode))}add(e,o,a){if(this.listeners.some((t=>t.el===e)))return this.update(e,o),t.nextTick(this.lazyLoadHandler);const n=this.valueFormatter(o.value);let{src:r}=n;t.nextTick((()=>{r=yr(e,this.options.scale)||r,this.observer&&this.observer.observe(e);const l=Object.keys(o.modifiers)[0];let i;l&&(i=a.context.$refs[l],i=i?i.$el||i:document.getElementById(l)),i||(i=Z(e));const s=new bv({bindType:o.arg,$parent:i,el:e,src:r,loading:n.loading,error:n.error,cors:n.cors,elRenderer:this.elRenderer.bind(this),options:this.options,imageCache:this.imageCache});this.listeners.push(s),S&&(this.addListenerTarget(window),this.addListenerTarget(i)),this.lazyLoadHandler(),t.nextTick((()=>this.lazyLoadHandler()))}))}update(e,o,a){const n=this.valueFormatter(o.value);let{src:r}=n;r=yr(e,this.options.scale)||r;const l=this.listeners.find((t=>t.el===e));l?l.update({src:r,error:n.error,loading:n.loading}):this.add(e,o,a),this.observer&&(this.observer.unobserve(e),this.observer.observe(e)),this.lazyLoadHandler(),t.nextTick((()=>this.lazyLoadHandler()))}remove(e){if(!e)return;this.observer&&this.observer.unobserve(e);const t=this.listeners.find((t=>t.el===e));t&&(this.removeListenerTarget(t.$parent),this.removeListenerTarget(window),br(this.listeners,t),t.$destroy())}removeComponent(e){e&&(br(this.listeners,e),this.observer&&this.observer.unobserve(e.el),e.$parent&&e.$el.parentNode&&this.removeListenerTarget(e.$el.parentNode),this.removeListenerTarget(window))}setMode(e){fr||e!==gr||(e=hr),this.mode=e,e===hr?(this.observer&&(this.listeners.forEach((e=>{this.observer.unobserve(e.el)})),this.observer=null),this.targets.forEach((e=>{this.initListen(e.el,!0)}))):(this.targets.forEach((e=>{this.initListen(e.el,!1)})),this.initIntersectionObserver())}addListenerTarget(e){if(!e)return;let t=this.targets.find((t=>t.el===e));return t?t.childrenCount++:(t={el:e,id:++this.targetIndex,childrenCount:1,listened:!0},this.mode===hr&&this.initListen(t.el,!0),this.targets.push(t)),this.targetIndex}removeListenerTarget(e){this.targets.forEach(((t,o)=>{t.el===e&&(t.childrenCount--,t.childrenCount||(this.initListen(t.el,!1),this.targets.splice(o,1),t=null))}))}initListen(e,t){this.options.ListenEvents.forEach((o=>(t?Nr:Cr)(e,o,this.lazyLoadHandler)))}initEvent(){this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=(e,t)=>{this.Event.listeners[e]||(this.Event.listeners[e]=[]),this.Event.listeners[e].push(t)},this.$once=(e,t)=>{const o=(...a)=>{this.$off(e,o),t.apply(this,a)};this.$on(e,o)},this.$off=(e,t)=>{if(t)br(this.Event.listeners[e],t);else{if(!this.Event.listeners[e])return;this.Event.listeners[e].length=0}},this.$emit=(e,t,o)=>{this.Event.listeners[e]&&this.Event.listeners[e].forEach((e=>e(t,o)))}}lazyLoadHandler(){const e=[];this.listeners.forEach((t=>{t.el&&t.el.parentNode||e.push(t),t.checkInView()&&t.load()})),e.forEach((e=>{br(this.listeners,e),e.$destroy()}))}initIntersectionObserver(){fr&&(this.observer=new IntersectionObserver(this.observerHandler.bind(this),this.options.observerOptions),this.listeners.length&&this.listeners.forEach((e=>{this.observer.observe(e.el)})))}observerHandler(e){e.forEach((e=>{e.isIntersecting&&this.listeners.forEach((t=>{if(t.el===e.target){if(t.state.loaded)return this.observer.unobserve(t.el);t.load()}}))}))}elRenderer(e,t,o){if(!e.el)return;const{el:a,bindType:n}=e;let r;switch(t){case"loading":r=e.loading;break;case"error":r=e.error;break;default:({src:r}=e)}if(n?a.style[n]='url("'+r+'")':a.getAttribute("src")!==r&&a.setAttribute("src",r),a.setAttribute("lazy",t),this.$emit(t,e,o),this.options.adapter[t]&&this.options.adapter[t](e,this.options),this.options.dispatchEvent){const o=new CustomEvent(t,{detail:e});a.dispatchEvent(o)}}valueFormatter(e){let t=e,{loading:o,error:a}=this.options;return i(e)&&(({src:t}=e),o=e.loading||this.options.loading,a=e.error||this.options.error),{src:t,loading:o,error:a}}},n=new a(o),r=new kv({lazy:n});e.config.globalProperties.$Lazyload=n,o.lazyComponent&&e.component("LazyComponent",Vv(n)),o.lazyImage&&e.component("LazyImage",Sv(n)),e.directive("lazy",{beforeMount:n.add.bind(n),updated:n.update.bind(n),unmounted:n.remove.bind(n)}),e.directive("lazy-container",{beforeMount:r.bind.bind(r),updated:r.update.bind(r),unmounted:r.unbind.bind(r)})}},Bv="4.9.10";function Pv(e){[at,$t,Ht,so,Ln,mr,za,Dr,ut,zr,It,ul,yl,Cl,Ra,Bl,lr,Xn,zl,Wl,Gl,Ql,ei,ri,ui,hi,wi,Si,Ai,Hi,Yi,os,ls,fs,hs,Li,en,ws,Cs,Wa,Ps,Is,$s,Vt,fl,Ks,rc,lc,uc,Pt,De,fc,yc,Pc,Mc,Qt,Uc,Gc,Da,Zc,Md,ao,jd,Gd,or,Hn,Jd,lu,iu,pu,yu,Cu,Bu,Iu,Qu,ju,ap,Gu,$u,ip,pp,wp,kp,Sp,Yo,Op,Ko,Ep,ua,Sn,fa,Fp,Up,ha,Kn,Gp,Qp,Vn,av,vv,gv].forEach((t=>{t.install?e.use(t):t.name&&e.component(t.name,t)}))}var Dv={install:Pv,version:Bv};e.ActionBar=at,e.ActionBarButton=$t,e.ActionBarIcon=Ht,e.ActionSheet=so,e.AddressEdit=Ln,e.AddressList=mr,e.Area=za,e.BackTop=Dr,e.Badge=ut,e.Barrage=zr,e.Button=It,e.Calendar=ul,e.Card=yl,e.Cascader=Cl,e.Cell=Ra,e.CellGroup=Bl,e.Checkbox=lr,e.CheckboxGroup=Xn,e.Circle=zl,e.Col=Wl,e.Collapse=Gl,e.CollapseItem=Ql,e.ConfigProvider=ei,e.ContactCard=ri,e.ContactEdit=ui,e.ContactList=hi,e.CountDown=wi,e.Coupon=Si,e.CouponCell=Ai,e.CouponList=Hi,e.DEFAULT_ROW_WIDTH=Uu,e.DatePicker=Yi,e.Dialog=os,e.Divider=ls,e.DropdownItem=fs,e.DropdownMenu=hs,e.Empty=Li,e.Field=en,e.FloatingBubble=ws,e.FloatingPanel=Cs,e.Form=Wa,e.Grid=Ps,e.GridItem=Is,e.Highlight=$s,e.Icon=Vt,e.Image=fl,e.ImagePreview=Ks,e.IndexAnchor=rc,e.IndexBar=lc,e.Lazyload=Tv,e.List=uc,e.Loading=Pt,e.Locale=De,e.NavBar=fc,e.NoticeBar=yc,e.Notify=Pc,e.NumberKeyboard=Mc,e.Overlay=Qt,e.Pagination=Uc,e.PasswordInput=Gc,e.Picker=Da,e.PickerGroup=Zc,e.Popover=Md,e.Popup=ao,e.Progress=jd,e.PullRefresh=Gd,e.Radio=or,e.RadioGroup=Hn,e.Rate=Jd,e.RollingText=lu,e.Row=iu,e.Search=pu,e.ShareSheet=yu,e.Sidebar=Cu,e.SidebarItem=Bu,e.Signature=Iu,e.Skeleton=Qu,e.SkeletonAvatar=ju,e.SkeletonImage=ap,e.SkeletonParagraph=Gu,e.SkeletonTitle=$u,e.Slider=ip,e.Space=pp,e.Step=wp,e.Stepper=kp,e.Steps=Sp,e.Sticky=Yo,e.SubmitBar=Op,e.Swipe=Ko,e.SwipeCell=Ep,e.SwipeItem=ua,e.Switch=Sn,e.Tab=fa,e.Tabbar=Fp,e.TabbarItem=Up,e.Tabs=ha,e.Tag=Kn,e.TextEllipsis=Gp,e.TimePicker=Qp,e.Toast=Vn,e.TreeSelect=av,e.Uploader=vv,e.Watermark=gv,e.actionBarButtonProps=Lt,e.actionBarIconProps=Ft,e.actionBarProps=ot,e.actionSheetProps=lo,e.addressEditProps=En,e.addressListProps=vr,e.allowMultipleToast=(e=!0)=>{pn=e},e.areaProps=Ia,e.backTopProps=Pr,e.badgeProps=dt,e.barrageProps=Or,e.buttonProps=At,e.calendarProps=dl,e.cardProps=bl,e.cascaderProps=Nl,e.cellGroupProps=Tl,e.cellProps=Ma,e.checkboxGroupProps=Un,e.checkboxProps=rr,e.circleProps=Il,e.closeDialog=()=>{Ji&&Ji.toggle(!1)},e.closeNotify=Bc,e.closeToast=e=>{var t;un.length&&(e?(un.forEach((e=>{e.close()})),un=[]):pn?null==(t=un.shift())||t.close():un[0].close())},e.colProps=jl,e.collapseItemProps=Jl,e.collapseProps=ql,e.configProviderProps=ht,e.contactCardProps=ni,e.contactEditProps=di,e.contactListProps=fi,e.countDownProps=yi,e.couponCellProps=Di,e.couponListProps=Fi,e.datePickerProps=Ui,e.default=Dv,e.dialogProps=Zi,e.dividerProps=rs,e.dropdownItemProps=ms,e.dropdownMenuProps=cs,e.emptyProps=Ei,e.fieldProps=Qa,e.floatingBubbleProps=gs,e.floatingPanelProps=xs,e.formProps=ja,e.gridItemProps=As,e.gridProps=Ts,e.highlightProps=Ls,e.iconProps=xt,e.imagePreviewProps=Ys,e.imageProps=ml,e.indexAnchorProps=nc,e.indexBarProps=Qs,e.install=Pv,e.listProps=dc,e.loadingProps=Bt,e.navBarProps=mc,e.noticeBarProps=bc,e.notifyProps=Nc,e.numberKeyboardProps=$c,e.overlayProps=Jt,e.paginationProps=Wc,e.passwordInputProps=qc,e.pickerGroupProps=wa,e.pickerProps=Na,e.popoverProps=$d,e.popupProps=eo,e.progressProps=Hd,e.pullRefreshProps=qd,e.radioGroupProps=Rn,e.radioProps=Qn,e.rateProps=_d,e.resetDialogDefaultOptions=()=>{es=r({},Qi)},e.resetNotifyDefaultOptions=()=>{Tc={type:"danger",color:void 0,message:"",onClose:void 0,onClick:void 0,onOpened:void 0,duration:3e3,position:void 0,className:"",lockScroll:!1,background:void 0}},e.resetToastDefaultOptions=e=>{"string"==typeof e?mn.delete(e):(vn=r({},dn),mn.clear())},e.rollingTextProps=ru,e.rowProps=Ml,e.searchProps=uu,e.setDialogDefaultOptions=e=>{r(es,e)},e.setNotifyDefaultOptions=e=>r(Tc,e),e.setToastDefaultOptions=function(e,t){"string"==typeof e?mn.set(e,t):r(vn,e)},e.shareSheetProps=bu,e.showConfirmDialog=e=>ts(r({showCancelButton:!0},e)),e.showDialog=ts,e.showFailToast=xn,e.showImagePreview=Zs,e.showLoadingToast=yn,e.showNotify=function(e){var o;if(l)return Sc||({instance:Sc}=cn({setup(){const{state:e,toggle:o}=sn();return()=>t.createVNode(Cc,t.mergeProps(e,{"onUpdate:show":o}),null)}})),e=r({},Tc,i(o=e)?o:{message:o}),Sc.open(e),clearTimeout(kc),e.duration>0&&(kc=setTimeout(Bc,e.duration)),Sc},e.showSuccessToast=wn,e.showToast=gn,e.sidebarItemProps=Tu,e.sidebarProps=Nu,e.skeletonAvatarProps=Hu,e.skeletonImageProps=op,e.skeletonParagraphProps=Yu,e.skeletonProps=Ju,e.skeletonTitleProps=Lu,e.sliderProps=lp,e.spaceProps=dp,e.stepperProps=Cp,e.stepsProps=fp,e.stickyProps=Uo,e.submitBarProps=Dp,e.swipeCellProps=zp,e.swipeProps=Go,e.switchProps=kn,e.tabProps=ma,e.tabbarItemProps=Wp,e.tabbarProps=Mp,e.tabsProps=oa,e.tagProps=Zn,e.textEllipsisProps=qp,e.timePickerProps=Jp,e.toastProps=rn,e.treeSelectProps=ov,e.uploaderProps=pv,e.useCurrentLang=()=>Be,e.version=Bv,e.watermarkProps=hv,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));