@element-plus/nightly 0.0.20260108 → 0.0.20260109

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 (483) hide show
  1. package/README.md +0 -5
  2. package/dist/index.full.js +12 -4
  3. package/dist/index.full.min.js +3 -3
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +3 -3
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +12 -4
  8. package/dist/locale/af.js +1 -1
  9. package/dist/locale/af.min.js +1 -1
  10. package/dist/locale/af.min.mjs +1 -1
  11. package/dist/locale/af.mjs +1 -1
  12. package/dist/locale/ar-eg.js +1 -1
  13. package/dist/locale/ar-eg.min.js +1 -1
  14. package/dist/locale/ar-eg.min.mjs +1 -1
  15. package/dist/locale/ar-eg.mjs +1 -1
  16. package/dist/locale/ar.js +1 -1
  17. package/dist/locale/ar.min.js +1 -1
  18. package/dist/locale/ar.min.mjs +1 -1
  19. package/dist/locale/ar.mjs +1 -1
  20. package/dist/locale/az.js +1 -1
  21. package/dist/locale/az.min.js +1 -1
  22. package/dist/locale/az.min.mjs +1 -1
  23. package/dist/locale/az.mjs +1 -1
  24. package/dist/locale/bg.js +1 -1
  25. package/dist/locale/bg.min.js +1 -1
  26. package/dist/locale/bg.min.mjs +1 -1
  27. package/dist/locale/bg.mjs +1 -1
  28. package/dist/locale/bn.js +1 -1
  29. package/dist/locale/bn.min.js +1 -1
  30. package/dist/locale/bn.min.mjs +1 -1
  31. package/dist/locale/bn.mjs +1 -1
  32. package/dist/locale/ca.js +1 -1
  33. package/dist/locale/ca.min.js +1 -1
  34. package/dist/locale/ca.min.mjs +1 -1
  35. package/dist/locale/ca.mjs +1 -1
  36. package/dist/locale/ckb.js +1 -1
  37. package/dist/locale/ckb.min.js +1 -1
  38. package/dist/locale/ckb.min.mjs +1 -1
  39. package/dist/locale/ckb.mjs +1 -1
  40. package/dist/locale/cs.js +1 -1
  41. package/dist/locale/cs.min.js +1 -1
  42. package/dist/locale/cs.min.mjs +1 -1
  43. package/dist/locale/cs.mjs +1 -1
  44. package/dist/locale/da.js +1 -1
  45. package/dist/locale/da.min.js +1 -1
  46. package/dist/locale/da.min.mjs +1 -1
  47. package/dist/locale/da.mjs +1 -1
  48. package/dist/locale/de.js +1 -1
  49. package/dist/locale/de.min.js +1 -1
  50. package/dist/locale/de.min.mjs +1 -1
  51. package/dist/locale/de.mjs +1 -1
  52. package/dist/locale/el.js +1 -1
  53. package/dist/locale/el.min.js +1 -1
  54. package/dist/locale/el.min.mjs +1 -1
  55. package/dist/locale/el.mjs +1 -1
  56. package/dist/locale/en.js +1 -1
  57. package/dist/locale/en.min.js +1 -1
  58. package/dist/locale/en.min.mjs +1 -1
  59. package/dist/locale/en.mjs +1 -1
  60. package/dist/locale/eo.js +1 -1
  61. package/dist/locale/eo.min.js +1 -1
  62. package/dist/locale/eo.min.mjs +1 -1
  63. package/dist/locale/eo.mjs +1 -1
  64. package/dist/locale/es.js +1 -1
  65. package/dist/locale/es.min.js +1 -1
  66. package/dist/locale/es.min.mjs +1 -1
  67. package/dist/locale/es.mjs +1 -1
  68. package/dist/locale/et.js +1 -1
  69. package/dist/locale/et.min.js +1 -1
  70. package/dist/locale/et.min.mjs +1 -1
  71. package/dist/locale/et.mjs +1 -1
  72. package/dist/locale/eu.js +1 -1
  73. package/dist/locale/eu.min.js +1 -1
  74. package/dist/locale/eu.min.mjs +1 -1
  75. package/dist/locale/eu.mjs +1 -1
  76. package/dist/locale/fa.js +1 -1
  77. package/dist/locale/fa.min.js +1 -1
  78. package/dist/locale/fa.min.mjs +1 -1
  79. package/dist/locale/fa.mjs +1 -1
  80. package/dist/locale/fi.js +1 -1
  81. package/dist/locale/fi.min.js +1 -1
  82. package/dist/locale/fi.min.mjs +1 -1
  83. package/dist/locale/fi.mjs +1 -1
  84. package/dist/locale/fr.js +1 -1
  85. package/dist/locale/fr.min.js +1 -1
  86. package/dist/locale/fr.min.mjs +1 -1
  87. package/dist/locale/fr.mjs +1 -1
  88. package/dist/locale/he.js +1 -1
  89. package/dist/locale/he.min.js +1 -1
  90. package/dist/locale/he.min.mjs +1 -1
  91. package/dist/locale/he.mjs +1 -1
  92. package/dist/locale/hi.js +1 -1
  93. package/dist/locale/hi.min.js +1 -1
  94. package/dist/locale/hi.min.mjs +1 -1
  95. package/dist/locale/hi.mjs +1 -1
  96. package/dist/locale/hr.js +1 -1
  97. package/dist/locale/hr.min.js +1 -1
  98. package/dist/locale/hr.min.mjs +1 -1
  99. package/dist/locale/hr.mjs +1 -1
  100. package/dist/locale/hu.js +1 -1
  101. package/dist/locale/hu.min.js +1 -1
  102. package/dist/locale/hu.min.mjs +1 -1
  103. package/dist/locale/hu.mjs +1 -1
  104. package/dist/locale/hy-am.js +1 -1
  105. package/dist/locale/hy-am.min.js +1 -1
  106. package/dist/locale/hy-am.min.mjs +1 -1
  107. package/dist/locale/hy-am.mjs +1 -1
  108. package/dist/locale/id.js +1 -1
  109. package/dist/locale/id.min.js +1 -1
  110. package/dist/locale/id.min.mjs +1 -1
  111. package/dist/locale/id.mjs +1 -1
  112. package/dist/locale/it.js +1 -1
  113. package/dist/locale/it.min.js +1 -1
  114. package/dist/locale/it.min.mjs +1 -1
  115. package/dist/locale/it.mjs +1 -1
  116. package/dist/locale/ja.js +1 -1
  117. package/dist/locale/ja.min.js +1 -1
  118. package/dist/locale/ja.min.mjs +1 -1
  119. package/dist/locale/ja.mjs +1 -1
  120. package/dist/locale/kk.js +1 -1
  121. package/dist/locale/kk.min.js +1 -1
  122. package/dist/locale/kk.min.mjs +1 -1
  123. package/dist/locale/kk.mjs +1 -1
  124. package/dist/locale/km.js +1 -1
  125. package/dist/locale/km.min.js +1 -1
  126. package/dist/locale/km.min.mjs +1 -1
  127. package/dist/locale/km.mjs +1 -1
  128. package/dist/locale/ko.js +1 -1
  129. package/dist/locale/ko.min.js +1 -1
  130. package/dist/locale/ko.min.mjs +1 -1
  131. package/dist/locale/ko.mjs +1 -1
  132. package/dist/locale/ku.js +1 -1
  133. package/dist/locale/ku.min.js +1 -1
  134. package/dist/locale/ku.min.mjs +1 -1
  135. package/dist/locale/ku.mjs +1 -1
  136. package/dist/locale/ky.js +1 -1
  137. package/dist/locale/ky.min.js +1 -1
  138. package/dist/locale/ky.min.mjs +1 -1
  139. package/dist/locale/ky.mjs +1 -1
  140. package/dist/locale/lo.js +1 -1
  141. package/dist/locale/lo.min.js +1 -1
  142. package/dist/locale/lo.min.mjs +1 -1
  143. package/dist/locale/lo.mjs +1 -1
  144. package/dist/locale/lt.js +1 -1
  145. package/dist/locale/lt.min.js +1 -1
  146. package/dist/locale/lt.min.mjs +1 -1
  147. package/dist/locale/lt.mjs +1 -1
  148. package/dist/locale/lv.js +1 -1
  149. package/dist/locale/lv.min.js +1 -1
  150. package/dist/locale/lv.min.mjs +1 -1
  151. package/dist/locale/lv.mjs +1 -1
  152. package/dist/locale/mg.js +1 -1
  153. package/dist/locale/mg.min.js +1 -1
  154. package/dist/locale/mg.min.mjs +1 -1
  155. package/dist/locale/mg.mjs +1 -1
  156. package/dist/locale/mn.js +1 -1
  157. package/dist/locale/mn.min.js +1 -1
  158. package/dist/locale/mn.min.mjs +1 -1
  159. package/dist/locale/mn.mjs +1 -1
  160. package/dist/locale/ms.js +1 -1
  161. package/dist/locale/ms.min.js +1 -1
  162. package/dist/locale/ms.min.mjs +1 -1
  163. package/dist/locale/ms.mjs +1 -1
  164. package/dist/locale/my.js +1 -1
  165. package/dist/locale/my.min.js +1 -1
  166. package/dist/locale/my.min.mjs +1 -1
  167. package/dist/locale/my.mjs +1 -1
  168. package/dist/locale/nb-no.js +1 -1
  169. package/dist/locale/nb-no.min.js +1 -1
  170. package/dist/locale/nb-no.min.mjs +1 -1
  171. package/dist/locale/nb-no.mjs +1 -1
  172. package/dist/locale/nl.js +1 -1
  173. package/dist/locale/nl.min.js +1 -1
  174. package/dist/locale/nl.min.mjs +1 -1
  175. package/dist/locale/nl.mjs +1 -1
  176. package/dist/locale/no.js +1 -1
  177. package/dist/locale/no.min.js +1 -1
  178. package/dist/locale/no.min.mjs +1 -1
  179. package/dist/locale/no.mjs +1 -1
  180. package/dist/locale/pa.js +1 -1
  181. package/dist/locale/pa.min.js +1 -1
  182. package/dist/locale/pa.min.mjs +1 -1
  183. package/dist/locale/pa.mjs +1 -1
  184. package/dist/locale/pl.js +1 -1
  185. package/dist/locale/pl.min.js +1 -1
  186. package/dist/locale/pl.min.mjs +1 -1
  187. package/dist/locale/pl.mjs +1 -1
  188. package/dist/locale/pt-br.js +1 -1
  189. package/dist/locale/pt-br.min.js +1 -1
  190. package/dist/locale/pt-br.min.mjs +1 -1
  191. package/dist/locale/pt-br.mjs +1 -1
  192. package/dist/locale/pt.js +1 -1
  193. package/dist/locale/pt.min.js +1 -1
  194. package/dist/locale/pt.min.mjs +1 -1
  195. package/dist/locale/pt.mjs +1 -1
  196. package/dist/locale/ro.js +1 -1
  197. package/dist/locale/ro.min.js +1 -1
  198. package/dist/locale/ro.min.mjs +1 -1
  199. package/dist/locale/ro.mjs +1 -1
  200. package/dist/locale/ru.js +1 -1
  201. package/dist/locale/ru.min.js +1 -1
  202. package/dist/locale/ru.min.mjs +1 -1
  203. package/dist/locale/ru.mjs +1 -1
  204. package/dist/locale/sk.js +1 -1
  205. package/dist/locale/sk.min.js +1 -1
  206. package/dist/locale/sk.min.mjs +1 -1
  207. package/dist/locale/sk.mjs +1 -1
  208. package/dist/locale/sl.js +1 -1
  209. package/dist/locale/sl.min.js +1 -1
  210. package/dist/locale/sl.min.mjs +1 -1
  211. package/dist/locale/sl.mjs +1 -1
  212. package/dist/locale/sr.js +1 -1
  213. package/dist/locale/sr.min.js +1 -1
  214. package/dist/locale/sr.min.mjs +1 -1
  215. package/dist/locale/sr.mjs +1 -1
  216. package/dist/locale/sv.js +1 -1
  217. package/dist/locale/sv.min.js +1 -1
  218. package/dist/locale/sv.min.mjs +1 -1
  219. package/dist/locale/sv.mjs +1 -1
  220. package/dist/locale/sw.js +1 -1
  221. package/dist/locale/sw.min.js +1 -1
  222. package/dist/locale/sw.min.mjs +1 -1
  223. package/dist/locale/sw.mjs +1 -1
  224. package/dist/locale/ta.js +1 -1
  225. package/dist/locale/ta.min.js +1 -1
  226. package/dist/locale/ta.min.mjs +1 -1
  227. package/dist/locale/ta.mjs +1 -1
  228. package/dist/locale/te.js +1 -1
  229. package/dist/locale/te.min.js +1 -1
  230. package/dist/locale/te.min.mjs +1 -1
  231. package/dist/locale/te.mjs +1 -1
  232. package/dist/locale/th.js +1 -1
  233. package/dist/locale/th.min.js +1 -1
  234. package/dist/locale/th.min.mjs +1 -1
  235. package/dist/locale/th.mjs +1 -1
  236. package/dist/locale/tk.js +1 -1
  237. package/dist/locale/tk.min.js +1 -1
  238. package/dist/locale/tk.min.mjs +1 -1
  239. package/dist/locale/tk.mjs +1 -1
  240. package/dist/locale/tr.js +1 -1
  241. package/dist/locale/tr.min.js +1 -1
  242. package/dist/locale/tr.min.mjs +1 -1
  243. package/dist/locale/tr.mjs +1 -1
  244. package/dist/locale/ug-cn.js +1 -1
  245. package/dist/locale/ug-cn.min.js +1 -1
  246. package/dist/locale/ug-cn.min.mjs +1 -1
  247. package/dist/locale/ug-cn.mjs +1 -1
  248. package/dist/locale/uk.js +1 -1
  249. package/dist/locale/uk.min.js +1 -1
  250. package/dist/locale/uk.min.mjs +1 -1
  251. package/dist/locale/uk.mjs +1 -1
  252. package/dist/locale/uz-uz.js +1 -1
  253. package/dist/locale/uz-uz.min.js +1 -1
  254. package/dist/locale/uz-uz.min.mjs +1 -1
  255. package/dist/locale/uz-uz.mjs +1 -1
  256. package/dist/locale/vi.js +1 -1
  257. package/dist/locale/vi.min.js +1 -1
  258. package/dist/locale/vi.min.mjs +1 -1
  259. package/dist/locale/vi.mjs +1 -1
  260. package/dist/locale/zh-cn.js +1 -1
  261. package/dist/locale/zh-cn.min.js +1 -1
  262. package/dist/locale/zh-cn.min.mjs +1 -1
  263. package/dist/locale/zh-cn.mjs +1 -1
  264. package/dist/locale/zh-hk.js +1 -1
  265. package/dist/locale/zh-hk.min.js +1 -1
  266. package/dist/locale/zh-hk.min.mjs +1 -1
  267. package/dist/locale/zh-hk.mjs +1 -1
  268. package/dist/locale/zh-mo.js +1 -1
  269. package/dist/locale/zh-mo.min.js +1 -1
  270. package/dist/locale/zh-mo.min.mjs +1 -1
  271. package/dist/locale/zh-mo.mjs +1 -1
  272. package/dist/locale/zh-tw.js +1 -1
  273. package/dist/locale/zh-tw.min.js +1 -1
  274. package/dist/locale/zh-tw.min.mjs +1 -1
  275. package/dist/locale/zh-tw.mjs +1 -1
  276. package/es/components/badge/index.mjs +2 -2
  277. package/es/components/badge/src/badge.mjs +31 -83
  278. package/es/components/badge/src/badge.mjs.map +1 -1
  279. package/es/components/badge/src/badge2.mjs +83 -31
  280. package/es/components/badge/src/badge2.mjs.map +1 -1
  281. package/es/components/card/index.mjs +2 -2
  282. package/es/components/card/src/card.mjs +22 -73
  283. package/es/components/card/src/card.mjs.map +1 -1
  284. package/es/components/card/src/card2.mjs +73 -22
  285. package/es/components/card/src/card2.mjs.map +1 -1
  286. package/es/components/carousel/index.mjs +2 -2
  287. package/es/components/carousel/src/carousel.mjs +254 -60
  288. package/es/components/carousel/src/carousel.mjs.map +1 -1
  289. package/es/components/carousel/src/carousel2.mjs +60 -254
  290. package/es/components/carousel/src/carousel2.mjs.map +1 -1
  291. package/es/components/cascader/index.mjs +2 -2
  292. package/es/components/cascader/src/cascader.mjs +843 -103
  293. package/es/components/cascader/src/cascader.mjs.map +1 -1
  294. package/es/components/cascader/src/cascader2.mjs +103 -843
  295. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  296. package/es/components/col/index.mjs +2 -2
  297. package/es/components/col/src/col.mjs +42 -65
  298. package/es/components/col/src/col.mjs.map +1 -1
  299. package/es/components/col/src/col2.mjs +65 -42
  300. package/es/components/col/src/col2.mjs.map +1 -1
  301. package/es/components/collapse/index.mjs +2 -2
  302. package/es/components/collapse/src/collapse-item.mjs +17 -118
  303. package/es/components/collapse/src/collapse-item.mjs.map +1 -1
  304. package/es/components/collapse/src/collapse-item2.mjs +118 -17
  305. package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
  306. package/es/components/dropdown/index.mjs +2 -2
  307. package/es/components/dropdown/src/dropdown-item-impl.mjs +2 -2
  308. package/es/components/dropdown/src/dropdown-item.mjs +1 -1
  309. package/es/components/dropdown/src/dropdown-menu.mjs +2 -2
  310. package/es/components/dropdown/src/dropdown.mjs +264 -112
  311. package/es/components/dropdown/src/dropdown.mjs.map +1 -1
  312. package/es/components/dropdown/src/dropdown2.mjs +112 -264
  313. package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
  314. package/es/components/form/index.mjs +2 -2
  315. package/es/components/form/src/form-item.mjs +360 -45
  316. package/es/components/form/src/form-item.mjs.map +1 -1
  317. package/es/components/form/src/form-item2.mjs +45 -360
  318. package/es/components/form/src/form-item2.mjs.map +1 -1
  319. package/es/components/index.mjs +13 -13
  320. package/es/components/input-tag/index.mjs +2 -2
  321. package/es/components/input-tag/src/input-tag.mjs +344 -82
  322. package/es/components/input-tag/src/input-tag.mjs.map +1 -1
  323. package/es/components/input-tag/src/input-tag2.mjs +82 -344
  324. package/es/components/input-tag/src/input-tag2.mjs.map +1 -1
  325. package/es/components/mention/src/mention-dropdown.mjs +205 -14
  326. package/es/components/mention/src/mention-dropdown.mjs.map +1 -1
  327. package/es/components/mention/src/mention-dropdown2.mjs +14 -205
  328. package/es/components/mention/src/mention-dropdown2.mjs.map +1 -1
  329. package/es/components/mention/src/mention2.mjs +1 -1
  330. package/es/components/pagination/src/components/total.mjs +6 -27
  331. package/es/components/pagination/src/components/total.mjs.map +1 -1
  332. package/es/components/pagination/src/components/total2.mjs +27 -6
  333. package/es/components/pagination/src/components/total2.mjs.map +1 -1
  334. package/es/components/pagination/src/pagination.mjs +1 -1
  335. package/es/components/popover/src/popover.mjs +1 -1
  336. package/es/components/radio/index.mjs +2 -2
  337. package/es/components/radio/src/radio-group.mjs +105 -53
  338. package/es/components/radio/src/radio-group.mjs.map +1 -1
  339. package/es/components/radio/src/radio-group2.mjs +53 -105
  340. package/es/components/radio/src/radio-group2.mjs.map +1 -1
  341. package/es/components/roving-focus-group/index.mjs +3 -3
  342. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  343. package/es/components/roving-focus-group/src/roving-focus-group.mjs +32 -27
  344. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  345. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +27 -32
  346. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  347. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  348. package/es/components/skeleton/index.mjs +2 -2
  349. package/es/components/skeleton/src/skeleton-item.mjs +27 -17
  350. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  351. package/es/components/skeleton/src/skeleton-item2.mjs +17 -27
  352. package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
  353. package/es/components/skeleton/src/skeleton2.mjs +1 -1
  354. package/es/components/slider/src/button.mjs +104 -18
  355. package/es/components/slider/src/button.mjs.map +1 -1
  356. package/es/components/slider/src/button2.mjs +18 -104
  357. package/es/components/slider/src/button2.mjs.map +1 -1
  358. package/es/components/slider/src/slider2.mjs +1 -1
  359. package/es/components/steps/index.mjs +2 -2
  360. package/es/components/steps/src/item.mjs +257 -18
  361. package/es/components/steps/src/item.mjs.map +1 -1
  362. package/es/components/steps/src/item2.mjs +18 -257
  363. package/es/components/steps/src/item2.mjs.map +1 -1
  364. package/es/components/table-v2/src/table-grid.mjs +10 -2
  365. package/es/components/table-v2/src/table-grid.mjs.map +1 -1
  366. package/es/components/upload/index.mjs +1 -1
  367. package/es/components/upload/src/upload-list.mjs +27 -206
  368. package/es/components/upload/src/upload-list.mjs.map +1 -1
  369. package/es/components/upload/src/upload-list2.mjs +206 -27
  370. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  371. package/es/components/upload/src/upload.vue.d.ts +1 -1
  372. package/es/components/upload/src/upload2.mjs +1 -1
  373. package/es/components/upload/src/use-handlers.d.ts +1 -1
  374. package/es/components/upload/src/use-handlers.mjs.map +1 -1
  375. package/es/index.mjs +13 -13
  376. package/es/version.d.ts +1 -1
  377. package/es/version.mjs +1 -1
  378. package/es/version.mjs.map +1 -1
  379. package/lib/components/badge/index.js +2 -2
  380. package/lib/components/badge/src/badge.js +31 -83
  381. package/lib/components/badge/src/badge.js.map +1 -1
  382. package/lib/components/badge/src/badge2.js +83 -31
  383. package/lib/components/badge/src/badge2.js.map +1 -1
  384. package/lib/components/card/index.js +2 -2
  385. package/lib/components/card/src/card.js +23 -73
  386. package/lib/components/card/src/card.js.map +1 -1
  387. package/lib/components/card/src/card2.js +73 -23
  388. package/lib/components/card/src/card2.js.map +1 -1
  389. package/lib/components/carousel/index.js +2 -2
  390. package/lib/components/carousel/src/carousel.js +254 -61
  391. package/lib/components/carousel/src/carousel.js.map +1 -1
  392. package/lib/components/carousel/src/carousel2.js +61 -254
  393. package/lib/components/carousel/src/carousel2.js.map +1 -1
  394. package/lib/components/cascader/index.js +2 -2
  395. package/lib/components/cascader/src/cascader.js +842 -103
  396. package/lib/components/cascader/src/cascader.js.map +1 -1
  397. package/lib/components/cascader/src/cascader2.js +103 -842
  398. package/lib/components/cascader/src/cascader2.js.map +1 -1
  399. package/lib/components/col/index.js +2 -2
  400. package/lib/components/col/src/col.js +42 -65
  401. package/lib/components/col/src/col.js.map +1 -1
  402. package/lib/components/col/src/col2.js +65 -42
  403. package/lib/components/col/src/col2.js.map +1 -1
  404. package/lib/components/collapse/index.js +2 -2
  405. package/lib/components/collapse/src/collapse-item.js +17 -118
  406. package/lib/components/collapse/src/collapse-item.js.map +1 -1
  407. package/lib/components/collapse/src/collapse-item2.js +118 -17
  408. package/lib/components/collapse/src/collapse-item2.js.map +1 -1
  409. package/lib/components/dropdown/index.js +2 -2
  410. package/lib/components/dropdown/src/dropdown-item-impl.js +2 -2
  411. package/lib/components/dropdown/src/dropdown-item.js +1 -1
  412. package/lib/components/dropdown/src/dropdown-menu.js +2 -2
  413. package/lib/components/dropdown/src/dropdown.js +264 -117
  414. package/lib/components/dropdown/src/dropdown.js.map +1 -1
  415. package/lib/components/dropdown/src/dropdown2.js +117 -264
  416. package/lib/components/dropdown/src/dropdown2.js.map +1 -1
  417. package/lib/components/form/index.js +2 -2
  418. package/lib/components/form/src/form-item.js +364 -46
  419. package/lib/components/form/src/form-item.js.map +1 -1
  420. package/lib/components/form/src/form-item2.js +46 -364
  421. package/lib/components/form/src/form-item2.js.map +1 -1
  422. package/lib/components/index.js +13 -13
  423. package/lib/components/input-tag/index.js +2 -2
  424. package/lib/components/input-tag/src/input-tag.js +342 -81
  425. package/lib/components/input-tag/src/input-tag.js.map +1 -1
  426. package/lib/components/input-tag/src/input-tag2.js +81 -342
  427. package/lib/components/input-tag/src/input-tag2.js.map +1 -1
  428. package/lib/components/mention/src/mention-dropdown.js +205 -15
  429. package/lib/components/mention/src/mention-dropdown.js.map +1 -1
  430. package/lib/components/mention/src/mention-dropdown2.js +15 -205
  431. package/lib/components/mention/src/mention-dropdown2.js.map +1 -1
  432. package/lib/components/mention/src/mention2.js +1 -1
  433. package/lib/components/pagination/src/components/total.js +6 -27
  434. package/lib/components/pagination/src/components/total.js.map +1 -1
  435. package/lib/components/pagination/src/components/total2.js +27 -6
  436. package/lib/components/pagination/src/components/total2.js.map +1 -1
  437. package/lib/components/pagination/src/pagination.js +1 -1
  438. package/lib/components/popover/src/popover.js +1 -1
  439. package/lib/components/radio/index.js +2 -2
  440. package/lib/components/radio/src/radio-group.js +105 -55
  441. package/lib/components/radio/src/radio-group.js.map +1 -1
  442. package/lib/components/radio/src/radio-group2.js +55 -105
  443. package/lib/components/radio/src/radio-group2.js.map +1 -1
  444. package/lib/components/roving-focus-group/index.js +2 -2
  445. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  446. package/lib/components/roving-focus-group/src/roving-focus-group.js +32 -31
  447. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  448. package/lib/components/roving-focus-group/src/roving-focus-group2.js +31 -32
  449. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  450. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  451. package/lib/components/skeleton/index.js +2 -2
  452. package/lib/components/skeleton/src/skeleton-item.js +27 -17
  453. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  454. package/lib/components/skeleton/src/skeleton-item2.js +17 -27
  455. package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
  456. package/lib/components/skeleton/src/skeleton2.js +1 -1
  457. package/lib/components/slider/src/button.js +104 -19
  458. package/lib/components/slider/src/button.js.map +1 -1
  459. package/lib/components/slider/src/button2.js +19 -104
  460. package/lib/components/slider/src/button2.js.map +1 -1
  461. package/lib/components/slider/src/slider2.js +1 -1
  462. package/lib/components/steps/index.js +2 -2
  463. package/lib/components/steps/src/item.js +257 -18
  464. package/lib/components/steps/src/item.js.map +1 -1
  465. package/lib/components/steps/src/item2.js +18 -257
  466. package/lib/components/steps/src/item2.js.map +1 -1
  467. package/lib/components/table-v2/src/table-grid.js +10 -2
  468. package/lib/components/table-v2/src/table-grid.js.map +1 -1
  469. package/lib/components/upload/index.js +1 -1
  470. package/lib/components/upload/src/upload-list.js +28 -206
  471. package/lib/components/upload/src/upload-list.js.map +1 -1
  472. package/lib/components/upload/src/upload-list2.js +206 -28
  473. package/lib/components/upload/src/upload-list2.js.map +1 -1
  474. package/lib/components/upload/src/upload.vue.d.ts +1 -1
  475. package/lib/components/upload/src/upload2.js +1 -1
  476. package/lib/components/upload/src/use-handlers.d.ts +1 -1
  477. package/lib/components/upload/src/use-handlers.js.map +1 -1
  478. package/lib/index.js +13 -13
  479. package/lib/version.d.ts +1 -1
  480. package/lib/version.js +1 -1
  481. package/lib/version.js.map +1 -1
  482. package/package.json +2 -2
  483. package/web-types.json +1 -1
@@ -1,4 +1,4 @@
1
- /*! Element Plus v0.0.20260108 */import{shallowRef as Zt,watchEffect as io,readonly as cu,getCurrentScope as eR,onScopeDispose as Ig,unref as s,onMounted as ut,nextTick as ke,ref as P,computed as k,getCurrentInstance as ct,watch as ie,isRef as Yn,reactive as Pt,defineComponent as ae,openBlock as $,createElementBlock as F,createElementVNode as W,warn as tR,isVNode as Jt,Fragment as Be,Comment as Ga,onBeforeUnmount as Bt,inject as Ee,onUnmounted as Ms,h as Le,Teleport as Mg,onBeforeMount as Wd,provide as St,triggerRef as du,renderSlot as ee,createBlock as oe,normalizeClass as x,normalizeStyle as Ie,createVNode as Z,withCtx as Q,mergeProps as rt,useSlots as mn,Transition as Wn,withDirectives as tt,resolveDynamicComponent as at,createCommentVNode as te,createTextVNode as bt,toDisplayString as ge,vShow as xt,toRef as Lt,toRefs as Mn,onUpdated as qa,TransitionGroup as Ng,useAttrs as Xa,withModifiers as je,onActivated as Kd,cloneVNode as Ag,Text as Pg,onDeactivated as nR,renderList as yt,createSlots as uo,toRaw as fu,resolveComponent as It,resolveDirective as jd,toHandlerKey as oR,vModelText as pu,normalizeProps as Za,guardReactiveProps as wl,vModelCheckbox as Lg,vModelRadio as Dg,onBeforeUpdate as Bg,withKeys as fn,toHandlers as aR,markRaw as Cl,effectScope as lR,render as Sl,createApp as rR,shallowReactive as Fg}from"vue";const sR='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Vg=e=>typeof Element=="undefined"?!1:e instanceof Element,iR=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,zg=e=>Array.from(e.querySelectorAll(sR)).filter(t=>Ns(t)&&iR(t)),Ns=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},vu=function(e,t,...n){let o;t.includes("mouse")||t.includes("click")?o="MouseEvents":t.includes("key")?o="KeyboardEvent":o="HTMLEvents";const a=document.createEvent(o);return a.initEvent(t,...n),e.dispatchEvent(a),e},Hg=e=>!e.getAttribute("aria-owns"),Wg=(e,t,n)=>{const{parentNode:o}=e;if(!o)return null;const a=o.querySelectorAll(n),l=Array.prototype.indexOf.call(a,e);return a[l+t]||null},As=(e,t)=>{if(!e||!e.focus)return;let n=!1;Vg(e)&&!Ns(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),Vg(e)&&n&&e.removeAttribute("tabindex")},hu=e=>{!e||(As(e),!Hg(e)&&e.click())},pe={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Kg=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],mu=["sun","mon","tue","wed","thu","fri","sat"],Ye="update:modelValue",ht="change",Sn="input",Yd=Symbol("INSTALLED_KEY"),oa=["","default","small","large"],uR={large:40,default:32,small:24},Ud=["left","center","right"],Ps=11,Gd=2;function jg(e,t){var n;const o=Zt();return io(()=>{o.value=e()},{...t,flush:(n=t==null?void 0:t.flush)!=null?n:"sync"}),cu(o)}function Zl(e){return eR()?(Ig(e),!0):!1}function To(e){return typeof e=="function"?e():s(e)}function cR(e){if(!Yn(e))return Pt(e);const t=new Proxy({},{get(n,o,a){return s(Reflect.get(e.value,o,a))},set(n,o,a){return Yn(e.value[o])&&!Yn(a)?e.value[o].value=a:e.value[o]=a,!0},deleteProperty(n,o){return Reflect.deleteProperty(e.value,o)},has(n,o){return Reflect.has(e.value,o)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Pt(t)}function dR(e){return cR(k(e))}const Tt=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const fR=e=>typeof e!="undefined",Yg=e=>e!=null,pR=Object.prototype.toString,vR=e=>pR.call(e)==="[object Object]",Ug=(e,t,n)=>Math.min(n,Math.max(t,e)),aa=()=>{},gu=hR();function hR(){var e,t;return Tt&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Gg(e,t){function n(...o){return new Promise((a,l)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(a).catch(l)})}return n}function mR(e,t={}){let n,o,a=aa;const l=i=>{clearTimeout(i),a(),a=aa};return i=>{const u=To(e),c=To(t.maxWait);return n&&l(n),u<=0||c!==void 0&&c<=0?(o&&(l(o),o=null),Promise.resolve(i())):new Promise((d,f)=>{a=t.rejectOnCancel?f:d,c&&!o&&(o=setTimeout(()=>{n&&l(n),o=null,d(i())},c)),n=setTimeout(()=>{o&&l(o),o=null,d(i())},u)})}}function gR(...e){let t=0,n,o=!0,a=aa,l,r,i,u,c;!Yn(e[0])&&typeof e[0]=="object"?{delay:r,trailing:i=!0,leading:u=!0,rejectOnCancel:c=!1}=e[0]:[r,i=!0,u=!0,c=!1]=e;const d=()=>{n&&(clearTimeout(n),n=void 0,a(),a=aa)};return h=>{const m=To(r),p=Date.now()-t,v=()=>l=h();return d(),m<=0?(t=Date.now(),v()):(p>m&&(u||!o)?(t=Date.now(),v()):i&&(l=new Promise((g,b)=>{a=c?b:g,n=setTimeout(()=>{t=Date.now(),o=!0,g(v()),d()},Math.max(0,m-p))})),!u&&!n&&(n=setTimeout(()=>o=!0,m)),o=!1,l)}}function bR(e){return e||ct()}function Ls(e,t=200,n={}){return Gg(mR(t,n),e)}function yR(e,t=200,n={}){const o=P(e.value),a=Ls(()=>{o.value=e.value},t,n);return ie(e,()=>a()),o}function qg(e,t=200,n=!1,o=!0,a=!1){return Gg(gR(t,n,o,a),e)}function qd(e,t=!0,n){bR()?ut(e,n):t?e():ke(e)}function Tr(e,t,n={}){const{immediate:o=!0}=n,a=P(!1);let l=null;function r(){l&&(clearTimeout(l),l=null)}function i(){a.value=!1,r()}function u(...c){r(),a.value=!0,l=setTimeout(()=>{a.value=!1,l=null,e(...c)},To(t))}return o&&(a.value=!0,Tt&&u()),Zl(i),{isPending:cu(a),start:u,stop:i}}function kn(e){var t;const n=To(e);return(t=n==null?void 0:n.$el)!=null?t:n}const la=Tt?window:void 0,wR=Tt?window.document:void 0;function Mt(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=la):[t,n,o,a]=e,!t)return aa;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const l=[],r=()=>{l.forEach(d=>d()),l.length=0},i=(d,f,h,m)=>(d.addEventListener(f,h,m),()=>d.removeEventListener(f,h,m)),u=ie(()=>[kn(t),To(a)],([d,f])=>{if(r(),!d)return;const h=vR(f)?{...f}:f;l.push(...n.flatMap(m=>o.map(p=>i(d,m,p,h))))},{immediate:!0,flush:"post"}),c=()=>{u(),r()};return Zl(c),c}let Xg=!1;function Xd(e,t,n={}){const{window:o=la,ignore:a=[],capture:l=!0,detectIframe:r=!1}=n;if(!o)return aa;gu&&!Xg&&(Xg=!0,Array.from(o.document.body.children).forEach(h=>h.addEventListener("click",aa)),o.document.documentElement.addEventListener("click",aa));let i=!0;const u=h=>a.some(m=>{if(typeof m=="string")return Array.from(o.document.querySelectorAll(m)).some(p=>p===h.target||h.composedPath().includes(p));{const p=kn(m);return p&&(h.target===p||h.composedPath().includes(p))}}),d=[Mt(o,"click",h=>{const m=kn(e);if(!(!m||m===h.target||h.composedPath().includes(m))){if(h.detail===0&&(i=!u(h)),!i){i=!0;return}t(h)}},{passive:!0,capture:l}),Mt(o,"pointerdown",h=>{const m=kn(e);i=!u(h)&&!!(m&&!h.composedPath().includes(m))},{passive:!0}),r&&Mt(o,"blur",h=>{setTimeout(()=>{var m;const p=kn(e);((m=o.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(p!=null&&p.contains(o.document.activeElement))&&t(h)},0)})].filter(Boolean);return()=>d.forEach(h=>h())}function CR(){const e=P(!1),t=ct();return t&&ut(()=>{e.value=!0},t),e}function bu(e){const t=CR();return k(()=>(t.value,Boolean(e())))}function Ds(e,t,n={}){const{window:o=la,...a}=n;let l;const r=bu(()=>o&&"MutationObserver"in o),i=()=>{l&&(l.disconnect(),l=void 0)},u=k(()=>{const h=To(e),m=(Array.isArray(h)?h:[h]).map(kn).filter(Yg);return new Set(m)}),c=ie(()=>u.value,h=>{i(),r.value&&h.size&&(l=new MutationObserver(t),h.forEach(m=>l.observe(m,a)))},{immediate:!0,flush:"post"}),d=()=>l==null?void 0:l.takeRecords(),f=()=>{i(),c()};return Zl(f),{isSupported:r,stop:f,takeRecords:d}}function SR(e={}){var t;const{window:n=la,deep:o=!0,triggerOnRemoval:a=!1}=e,l=(t=e.document)!=null?t:n==null?void 0:n.document,r=()=>{var c;let d=l==null?void 0:l.activeElement;if(o)for(;d!=null&&d.shadowRoot;)d=(c=d==null?void 0:d.shadowRoot)==null?void 0:c.activeElement;return d},i=P(),u=()=>{i.value=r()};return n&&(Mt(n,"blur",c=>{c.relatedTarget===null&&u()},!0),Mt(n,"focus",u,!0)),a&&Ds(l,c=>{c.filter(d=>d.removedNodes.length).map(d=>Array.from(d.removedNodes)).flat().forEach(d=>{d===i.value&&u()})},{childList:!0,subtree:!0}),u(),i}function kR(e,t={}){const{window:n=la}=t,o=bu(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const l=P(!1),r=c=>{l.value=c.matches},i=()=>{!a||("removeEventListener"in a?a.removeEventListener("change",r):a.removeListener(r))},u=io(()=>{!o.value||(i(),a=n.matchMedia(To(e)),"addEventListener"in a?a.addEventListener("change",r):a.addListener(r),l.value=a.matches)});return Zl(()=>{u(),i(),a=void 0}),l}function ER(e){return JSON.parse(JSON.stringify(e))}function $R(e,t,n={}){const{window:o=la,initialValue:a="",observe:l=!1}=n,r=P(a),i=k(()=>{var c;return kn(t)||((c=o==null?void 0:o.document)==null?void 0:c.documentElement)});function u(){var c;const d=To(e),f=To(i);if(f&&o){const h=(c=o.getComputedStyle(f).getPropertyValue(d))==null?void 0:c.trim();r.value=h||a}}return l&&Ds(i,u,{attributeFilter:["style","class"],window:o}),ie([i,()=>To(e)],u,{immediate:!0}),ie(r,c=>{var d;(d=i.value)!=null&&d.style&&i.value.style.setProperty(To(e),c)}),r}function _R(e={}){const{document:t=wR}=e;if(!t)return P("visible");const n=P(t.visibilityState);return Mt(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function Qt(e,t,n={}){const{window:o=la,...a}=n;let l;const r=bu(()=>o&&"ResizeObserver"in o),i=()=>{l&&(l.disconnect(),l=void 0)},u=k(()=>Array.isArray(e)?e.map(f=>kn(f)):[kn(e)]),c=ie(u,f=>{if(i(),r.value&&o){l=new ResizeObserver(t);for(const h of f)h&&l.observe(h,a)}},{immediate:!0,flush:"post"}),d=()=>{i(),c()};return Zl(d),{isSupported:r,stop:d}}function Zg(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:a=!0,immediate:l=!0}=t,r=P(0),i=P(0),u=P(0),c=P(0),d=P(0),f=P(0),h=P(0),m=P(0);function p(){const v=kn(e);if(!v){n&&(r.value=0,i.value=0,u.value=0,c.value=0,d.value=0,f.value=0,h.value=0,m.value=0);return}const g=v.getBoundingClientRect();r.value=g.height,i.value=g.bottom,u.value=g.left,c.value=g.right,d.value=g.top,f.value=g.width,h.value=g.x,m.value=g.y}return Qt(e,p),ie(()=>kn(e),v=>!v&&p()),Ds(e,p,{attributeFilter:["style","class"]}),a&&Mt("scroll",p,{capture:!0,passive:!0}),o&&Mt("resize",p,{passive:!0}),qd(()=>{l&&p()}),{height:r,bottom:i,left:u,right:c,top:d,width:f,x:h,y:m,update:p}}function Zd(e,t={width:0,height:0},n={}){const{window:o=la,box:a="content-box"}=n,l=k(()=>{var f,h;return(h=(f=kn(e))==null?void 0:f.namespaceURI)==null?void 0:h.includes("svg")}),r=P(t.width),i=P(t.height),{stop:u}=Qt(e,([f])=>{const h=a==="border-box"?f.borderBoxSize:a==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&l.value){const m=kn(e);if(m){const p=m.getBoundingClientRect();r.value=p.width,i.value=p.height}}else if(h){const m=Array.isArray(h)?h:[h];r.value=m.reduce((p,{inlineSize:v})=>p+v,0),i.value=m.reduce((p,{blockSize:v})=>p+v,0)}else r.value=f.contentRect.width,i.value=f.contentRect.height},n);qd(()=>{const f=kn(e);f&&(r.value="offsetWidth"in f?f.offsetWidth:t.width,i.value="offsetHeight"in f?f.offsetHeight:t.height)});const c=ie(()=>kn(e),f=>{r.value=f?t.width:0,i.value=f?t.height:0});function d(){u(),c()}return{width:r,height:i,stop:d}}function TR(e,t,n={}){const{root:o,rootMargin:a="0px",threshold:l=.1,window:r=la,immediate:i=!0}=n,u=bu(()=>r&&"IntersectionObserver"in r),c=k(()=>{const p=To(e);return(Array.isArray(p)?p:[p]).map(kn).filter(Yg)});let d=aa;const f=P(i),h=u.value?ie(()=>[c.value,kn(o),f.value],([p,v])=>{if(d(),!f.value||!p.length)return;const g=new IntersectionObserver(t,{root:kn(v),rootMargin:a,threshold:l});p.forEach(b=>b&&g.observe(b)),d=()=>{g.disconnect(),d=aa}},{immediate:i,flush:"post"}):aa,m=()=>{d(),h(),f.value=!1};return Zl(m),{isSupported:u,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:m}}function Jg(e,t,n,o={}){var a,l,r;const{clone:i=!1,passive:u=!1,eventName:c,deep:d=!1,defaultValue:f,shouldEmit:h}=o,m=ct(),p=n||(m==null?void 0:m.emit)||((a=m==null?void 0:m.$emit)==null?void 0:a.bind(m))||((r=(l=m==null?void 0:m.proxy)==null?void 0:l.$emit)==null?void 0:r.bind(m==null?void 0:m.proxy));let v=c;t||(t="modelValue"),v=v||`update:${t.toString()}`;const g=w=>i?typeof i=="function"?i(w):ER(w):w,b=()=>fR(e[t])?g(e[t]):f,C=w=>{h?h(w)&&p(v,w):p(v,w)};if(u){const w=b(),y=P(w);let S=!1;return ie(()=>e[t],E=>{S||(S=!0,y.value=g(E),ke(()=>S=!1))}),ie(y,E=>{!S&&(E!==e[t]||d)&&C(E)},{deep:d}),y}else return k({get(){return b()},set(w){C(w)}})}function OR(e={}){const{window:t=la}=e;if(!t)return P(!1);const n=P(t.document.hasFocus());return Mt(t,"blur",()=>{n.value=!1}),Mt(t,"focus",()=>{n.value=!0}),n}function Jd(e={}){const{window:t=la,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:a=!0,includeScrollbar:l=!0}=e,r=P(n),i=P(o),u=()=>{t&&(l?(r.value=t.innerWidth,i.value=t.innerHeight):(r.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};if(u(),qd(u),Mt("resize",u,{passive:!0}),a){const c=kR("(orientation: portrait)");ie(c,()=>u())}return{width:r,height:i}}const Qd=()=>Tt&&/firefox/i.test(window.navigator.userAgent),Qg=()=>Tt&&/android/i.test(window.navigator.userAgent),Nn=(e,t,{checkForDefaultPrevented:n=!0}={})=>a=>{const l=e==null?void 0:e(a);if(n===!1||!l)return t==null?void 0:t(a)},e0=e=>t=>t.pointerType==="mouse"?e(t):void 0,Wt=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=t0(e);if(t){if(Object.values(pe).includes(t))return t;switch(t){case" ":return pe.space;default:return""}}return""},t0=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&Qg()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t},n0=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},ef=(e,t)=>Math.abs(n0(e)-n0(t)),o0=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}};function RR(e,t,n,o){const a=n-t;return e/=o/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}const Gt=()=>{},xR=Object.prototype.hasOwnProperty,Bn=(e,t)=>xR.call(e,t),$e=Array.isArray,Or=e=>a0(e)==="[object Date]",lt=e=>typeof e=="function",He=e=>typeof e=="string",Rt=e=>e!==null&&typeof e=="object",Bs=e=>(Rt(e)||lt(e))&&lt(e.then)&&lt(e.catch),IR=Object.prototype.toString,a0=e=>IR.call(e),tf=e=>a0(e)==="[object Object]",nf=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},MR=/-\w/g,of=nf(e=>e.replace(MR,t=>t.slice(1).toUpperCase())),NR=/\B([A-Z])/g,AR=nf(e=>e.replace(NR,"-$1").toLowerCase()),PR=nf(e=>e.charAt(0).toUpperCase()+e.slice(1));/**
1
+ /*! Element Plus v0.0.20260109 */import{shallowRef as Zt,watchEffect as io,readonly as cu,getCurrentScope as eR,onScopeDispose as Ig,unref as s,onMounted as ut,nextTick as ke,ref as P,computed as k,getCurrentInstance as ct,watch as ie,isRef as Yn,reactive as Pt,defineComponent as ae,openBlock as $,createElementBlock as F,createElementVNode as W,warn as tR,isVNode as Jt,Fragment as Be,Comment as Ga,onBeforeUnmount as Bt,inject as Ee,onUnmounted as Ms,h as Le,Teleport as Mg,onBeforeMount as Wd,provide as St,triggerRef as du,renderSlot as ee,createBlock as oe,normalizeClass as x,normalizeStyle as Ie,createVNode as Z,withCtx as Q,mergeProps as rt,useSlots as mn,Transition as Wn,withDirectives as tt,resolveDynamicComponent as at,createCommentVNode as te,createTextVNode as bt,toDisplayString as ge,vShow as xt,toRef as Lt,toRefs as Mn,onUpdated as qa,TransitionGroup as Ng,useAttrs as Xa,withModifiers as je,onActivated as Kd,cloneVNode as Ag,Text as Pg,onDeactivated as nR,renderList as yt,createSlots as uo,toRaw as fu,resolveComponent as It,resolveDirective as jd,toHandlerKey as oR,vModelText as pu,normalizeProps as Za,guardReactiveProps as wl,vModelCheckbox as Lg,vModelRadio as Dg,onBeforeUpdate as Bg,withKeys as fn,toHandlers as aR,markRaw as Cl,effectScope as lR,render as Sl,createApp as rR,shallowReactive as Fg}from"vue";const sR='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Vg=e=>typeof Element=="undefined"?!1:e instanceof Element,iR=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,zg=e=>Array.from(e.querySelectorAll(sR)).filter(t=>Ns(t)&&iR(t)),Ns=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},vu=function(e,t,...n){let o;t.includes("mouse")||t.includes("click")?o="MouseEvents":t.includes("key")?o="KeyboardEvent":o="HTMLEvents";const a=document.createEvent(o);return a.initEvent(t,...n),e.dispatchEvent(a),e},Hg=e=>!e.getAttribute("aria-owns"),Wg=(e,t,n)=>{const{parentNode:o}=e;if(!o)return null;const a=o.querySelectorAll(n),l=Array.prototype.indexOf.call(a,e);return a[l+t]||null},As=(e,t)=>{if(!e||!e.focus)return;let n=!1;Vg(e)&&!Ns(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),Vg(e)&&n&&e.removeAttribute("tabindex")},hu=e=>{!e||(As(e),!Hg(e)&&e.click())},pe={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Kg=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],mu=["sun","mon","tue","wed","thu","fri","sat"],Ye="update:modelValue",ht="change",Sn="input",Yd=Symbol("INSTALLED_KEY"),oa=["","default","small","large"],uR={large:40,default:32,small:24},Ud=["left","center","right"],Ps=11,Gd=2;function jg(e,t){var n;const o=Zt();return io(()=>{o.value=e()},{...t,flush:(n=t==null?void 0:t.flush)!=null?n:"sync"}),cu(o)}function Zl(e){return eR()?(Ig(e),!0):!1}function To(e){return typeof e=="function"?e():s(e)}function cR(e){if(!Yn(e))return Pt(e);const t=new Proxy({},{get(n,o,a){return s(Reflect.get(e.value,o,a))},set(n,o,a){return Yn(e.value[o])&&!Yn(a)?e.value[o].value=a:e.value[o]=a,!0},deleteProperty(n,o){return Reflect.deleteProperty(e.value,o)},has(n,o){return Reflect.has(e.value,o)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Pt(t)}function dR(e){return cR(k(e))}const Tt=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const fR=e=>typeof e!="undefined",Yg=e=>e!=null,pR=Object.prototype.toString,vR=e=>pR.call(e)==="[object Object]",Ug=(e,t,n)=>Math.min(n,Math.max(t,e)),aa=()=>{},gu=hR();function hR(){var e,t;return Tt&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Gg(e,t){function n(...o){return new Promise((a,l)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(a).catch(l)})}return n}function mR(e,t={}){let n,o,a=aa;const l=i=>{clearTimeout(i),a(),a=aa};return i=>{const u=To(e),c=To(t.maxWait);return n&&l(n),u<=0||c!==void 0&&c<=0?(o&&(l(o),o=null),Promise.resolve(i())):new Promise((d,f)=>{a=t.rejectOnCancel?f:d,c&&!o&&(o=setTimeout(()=>{n&&l(n),o=null,d(i())},c)),n=setTimeout(()=>{o&&l(o),o=null,d(i())},u)})}}function gR(...e){let t=0,n,o=!0,a=aa,l,r,i,u,c;!Yn(e[0])&&typeof e[0]=="object"?{delay:r,trailing:i=!0,leading:u=!0,rejectOnCancel:c=!1}=e[0]:[r,i=!0,u=!0,c=!1]=e;const d=()=>{n&&(clearTimeout(n),n=void 0,a(),a=aa)};return h=>{const m=To(r),p=Date.now()-t,v=()=>l=h();return d(),m<=0?(t=Date.now(),v()):(p>m&&(u||!o)?(t=Date.now(),v()):i&&(l=new Promise((g,b)=>{a=c?b:g,n=setTimeout(()=>{t=Date.now(),o=!0,g(v()),d()},Math.max(0,m-p))})),!u&&!n&&(n=setTimeout(()=>o=!0,m)),o=!1,l)}}function bR(e){return e||ct()}function Ls(e,t=200,n={}){return Gg(mR(t,n),e)}function yR(e,t=200,n={}){const o=P(e.value),a=Ls(()=>{o.value=e.value},t,n);return ie(e,()=>a()),o}function qg(e,t=200,n=!1,o=!0,a=!1){return Gg(gR(t,n,o,a),e)}function qd(e,t=!0,n){bR()?ut(e,n):t?e():ke(e)}function Tr(e,t,n={}){const{immediate:o=!0}=n,a=P(!1);let l=null;function r(){l&&(clearTimeout(l),l=null)}function i(){a.value=!1,r()}function u(...c){r(),a.value=!0,l=setTimeout(()=>{a.value=!1,l=null,e(...c)},To(t))}return o&&(a.value=!0,Tt&&u()),Zl(i),{isPending:cu(a),start:u,stop:i}}function kn(e){var t;const n=To(e);return(t=n==null?void 0:n.$el)!=null?t:n}const la=Tt?window:void 0,wR=Tt?window.document:void 0;function Mt(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=la):[t,n,o,a]=e,!t)return aa;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const l=[],r=()=>{l.forEach(d=>d()),l.length=0},i=(d,f,h,m)=>(d.addEventListener(f,h,m),()=>d.removeEventListener(f,h,m)),u=ie(()=>[kn(t),To(a)],([d,f])=>{if(r(),!d)return;const h=vR(f)?{...f}:f;l.push(...n.flatMap(m=>o.map(p=>i(d,m,p,h))))},{immediate:!0,flush:"post"}),c=()=>{u(),r()};return Zl(c),c}let Xg=!1;function Xd(e,t,n={}){const{window:o=la,ignore:a=[],capture:l=!0,detectIframe:r=!1}=n;if(!o)return aa;gu&&!Xg&&(Xg=!0,Array.from(o.document.body.children).forEach(h=>h.addEventListener("click",aa)),o.document.documentElement.addEventListener("click",aa));let i=!0;const u=h=>a.some(m=>{if(typeof m=="string")return Array.from(o.document.querySelectorAll(m)).some(p=>p===h.target||h.composedPath().includes(p));{const p=kn(m);return p&&(h.target===p||h.composedPath().includes(p))}}),d=[Mt(o,"click",h=>{const m=kn(e);if(!(!m||m===h.target||h.composedPath().includes(m))){if(h.detail===0&&(i=!u(h)),!i){i=!0;return}t(h)}},{passive:!0,capture:l}),Mt(o,"pointerdown",h=>{const m=kn(e);i=!u(h)&&!!(m&&!h.composedPath().includes(m))},{passive:!0}),r&&Mt(o,"blur",h=>{setTimeout(()=>{var m;const p=kn(e);((m=o.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(p!=null&&p.contains(o.document.activeElement))&&t(h)},0)})].filter(Boolean);return()=>d.forEach(h=>h())}function CR(){const e=P(!1),t=ct();return t&&ut(()=>{e.value=!0},t),e}function bu(e){const t=CR();return k(()=>(t.value,Boolean(e())))}function Ds(e,t,n={}){const{window:o=la,...a}=n;let l;const r=bu(()=>o&&"MutationObserver"in o),i=()=>{l&&(l.disconnect(),l=void 0)},u=k(()=>{const h=To(e),m=(Array.isArray(h)?h:[h]).map(kn).filter(Yg);return new Set(m)}),c=ie(()=>u.value,h=>{i(),r.value&&h.size&&(l=new MutationObserver(t),h.forEach(m=>l.observe(m,a)))},{immediate:!0,flush:"post"}),d=()=>l==null?void 0:l.takeRecords(),f=()=>{i(),c()};return Zl(f),{isSupported:r,stop:f,takeRecords:d}}function SR(e={}){var t;const{window:n=la,deep:o=!0,triggerOnRemoval:a=!1}=e,l=(t=e.document)!=null?t:n==null?void 0:n.document,r=()=>{var c;let d=l==null?void 0:l.activeElement;if(o)for(;d!=null&&d.shadowRoot;)d=(c=d==null?void 0:d.shadowRoot)==null?void 0:c.activeElement;return d},i=P(),u=()=>{i.value=r()};return n&&(Mt(n,"blur",c=>{c.relatedTarget===null&&u()},!0),Mt(n,"focus",u,!0)),a&&Ds(l,c=>{c.filter(d=>d.removedNodes.length).map(d=>Array.from(d.removedNodes)).flat().forEach(d=>{d===i.value&&u()})},{childList:!0,subtree:!0}),u(),i}function kR(e,t={}){const{window:n=la}=t,o=bu(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const l=P(!1),r=c=>{l.value=c.matches},i=()=>{!a||("removeEventListener"in a?a.removeEventListener("change",r):a.removeListener(r))},u=io(()=>{!o.value||(i(),a=n.matchMedia(To(e)),"addEventListener"in a?a.addEventListener("change",r):a.addListener(r),l.value=a.matches)});return Zl(()=>{u(),i(),a=void 0}),l}function ER(e){return JSON.parse(JSON.stringify(e))}function $R(e,t,n={}){const{window:o=la,initialValue:a="",observe:l=!1}=n,r=P(a),i=k(()=>{var c;return kn(t)||((c=o==null?void 0:o.document)==null?void 0:c.documentElement)});function u(){var c;const d=To(e),f=To(i);if(f&&o){const h=(c=o.getComputedStyle(f).getPropertyValue(d))==null?void 0:c.trim();r.value=h||a}}return l&&Ds(i,u,{attributeFilter:["style","class"],window:o}),ie([i,()=>To(e)],u,{immediate:!0}),ie(r,c=>{var d;(d=i.value)!=null&&d.style&&i.value.style.setProperty(To(e),c)}),r}function _R(e={}){const{document:t=wR}=e;if(!t)return P("visible");const n=P(t.visibilityState);return Mt(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function Qt(e,t,n={}){const{window:o=la,...a}=n;let l;const r=bu(()=>o&&"ResizeObserver"in o),i=()=>{l&&(l.disconnect(),l=void 0)},u=k(()=>Array.isArray(e)?e.map(f=>kn(f)):[kn(e)]),c=ie(u,f=>{if(i(),r.value&&o){l=new ResizeObserver(t);for(const h of f)h&&l.observe(h,a)}},{immediate:!0,flush:"post"}),d=()=>{i(),c()};return Zl(d),{isSupported:r,stop:d}}function Zg(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:a=!0,immediate:l=!0}=t,r=P(0),i=P(0),u=P(0),c=P(0),d=P(0),f=P(0),h=P(0),m=P(0);function p(){const v=kn(e);if(!v){n&&(r.value=0,i.value=0,u.value=0,c.value=0,d.value=0,f.value=0,h.value=0,m.value=0);return}const g=v.getBoundingClientRect();r.value=g.height,i.value=g.bottom,u.value=g.left,c.value=g.right,d.value=g.top,f.value=g.width,h.value=g.x,m.value=g.y}return Qt(e,p),ie(()=>kn(e),v=>!v&&p()),Ds(e,p,{attributeFilter:["style","class"]}),a&&Mt("scroll",p,{capture:!0,passive:!0}),o&&Mt("resize",p,{passive:!0}),qd(()=>{l&&p()}),{height:r,bottom:i,left:u,right:c,top:d,width:f,x:h,y:m,update:p}}function Zd(e,t={width:0,height:0},n={}){const{window:o=la,box:a="content-box"}=n,l=k(()=>{var f,h;return(h=(f=kn(e))==null?void 0:f.namespaceURI)==null?void 0:h.includes("svg")}),r=P(t.width),i=P(t.height),{stop:u}=Qt(e,([f])=>{const h=a==="border-box"?f.borderBoxSize:a==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&l.value){const m=kn(e);if(m){const p=m.getBoundingClientRect();r.value=p.width,i.value=p.height}}else if(h){const m=Array.isArray(h)?h:[h];r.value=m.reduce((p,{inlineSize:v})=>p+v,0),i.value=m.reduce((p,{blockSize:v})=>p+v,0)}else r.value=f.contentRect.width,i.value=f.contentRect.height},n);qd(()=>{const f=kn(e);f&&(r.value="offsetWidth"in f?f.offsetWidth:t.width,i.value="offsetHeight"in f?f.offsetHeight:t.height)});const c=ie(()=>kn(e),f=>{r.value=f?t.width:0,i.value=f?t.height:0});function d(){u(),c()}return{width:r,height:i,stop:d}}function TR(e,t,n={}){const{root:o,rootMargin:a="0px",threshold:l=.1,window:r=la,immediate:i=!0}=n,u=bu(()=>r&&"IntersectionObserver"in r),c=k(()=>{const p=To(e);return(Array.isArray(p)?p:[p]).map(kn).filter(Yg)});let d=aa;const f=P(i),h=u.value?ie(()=>[c.value,kn(o),f.value],([p,v])=>{if(d(),!f.value||!p.length)return;const g=new IntersectionObserver(t,{root:kn(v),rootMargin:a,threshold:l});p.forEach(b=>b&&g.observe(b)),d=()=>{g.disconnect(),d=aa}},{immediate:i,flush:"post"}):aa,m=()=>{d(),h(),f.value=!1};return Zl(m),{isSupported:u,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:m}}function Jg(e,t,n,o={}){var a,l,r;const{clone:i=!1,passive:u=!1,eventName:c,deep:d=!1,defaultValue:f,shouldEmit:h}=o,m=ct(),p=n||(m==null?void 0:m.emit)||((a=m==null?void 0:m.$emit)==null?void 0:a.bind(m))||((r=(l=m==null?void 0:m.proxy)==null?void 0:l.$emit)==null?void 0:r.bind(m==null?void 0:m.proxy));let v=c;t||(t="modelValue"),v=v||`update:${t.toString()}`;const g=w=>i?typeof i=="function"?i(w):ER(w):w,b=()=>fR(e[t])?g(e[t]):f,C=w=>{h?h(w)&&p(v,w):p(v,w)};if(u){const w=b(),y=P(w);let S=!1;return ie(()=>e[t],E=>{S||(S=!0,y.value=g(E),ke(()=>S=!1))}),ie(y,E=>{!S&&(E!==e[t]||d)&&C(E)},{deep:d}),y}else return k({get(){return b()},set(w){C(w)}})}function OR(e={}){const{window:t=la}=e;if(!t)return P(!1);const n=P(t.document.hasFocus());return Mt(t,"blur",()=>{n.value=!1}),Mt(t,"focus",()=>{n.value=!0}),n}function Jd(e={}){const{window:t=la,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:a=!0,includeScrollbar:l=!0}=e,r=P(n),i=P(o),u=()=>{t&&(l?(r.value=t.innerWidth,i.value=t.innerHeight):(r.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};if(u(),qd(u),Mt("resize",u,{passive:!0}),a){const c=kR("(orientation: portrait)");ie(c,()=>u())}return{width:r,height:i}}const Qd=()=>Tt&&/firefox/i.test(window.navigator.userAgent),Qg=()=>Tt&&/android/i.test(window.navigator.userAgent),Nn=(e,t,{checkForDefaultPrevented:n=!0}={})=>a=>{const l=e==null?void 0:e(a);if(n===!1||!l)return t==null?void 0:t(a)},e0=e=>t=>t.pointerType==="mouse"?e(t):void 0,Wt=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=t0(e);if(t){if(Object.values(pe).includes(t))return t;switch(t){case" ":return pe.space;default:return""}}return""},t0=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&Qg()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t},n0=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},ef=(e,t)=>Math.abs(n0(e)-n0(t)),o0=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}};function RR(e,t,n,o){const a=n-t;return e/=o/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}const Gt=()=>{},xR=Object.prototype.hasOwnProperty,Bn=(e,t)=>xR.call(e,t),$e=Array.isArray,Or=e=>a0(e)==="[object Date]",lt=e=>typeof e=="function",He=e=>typeof e=="string",Rt=e=>e!==null&&typeof e=="object",Bs=e=>(Rt(e)||lt(e))&&lt(e.then)&&lt(e.catch),IR=Object.prototype.toString,a0=e=>IR.call(e),tf=e=>a0(e)==="[object Object]",nf=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},MR=/-\w/g,of=nf(e=>e.replace(MR,t=>t.slice(1).toUpperCase())),NR=/\B([A-Z])/g,AR=nf(e=>e.replace(NR,"-$1").toLowerCase()),PR=nf(e=>e.charAt(0).toUpperCase()+e.slice(1));/**
2
2
  * @vue/shared v3.5.25
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
@@ -29,7 +29,7 @@ function print() { __p += __j.call(arguments, '') }
29
29
  * Released under MIT license <https://lodash.com/license>
30
30
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
31
31
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
32
- */const _t=e=>e===void 0,zt=e=>typeof e=="boolean",xe=e=>typeof e=="number",ho=e=>!e&&e!==0||$e(e)&&e.length===0||Rt(e)&&!Object.keys(e).length,wo=e=>typeof Element=="undefined"?!1:e instanceof Element,Co=e=>vn(e),KF=e=>He(e)?!Number.isNaN(Number(e)):!1,si=e=>e===window,Ma=e=>Tt?window.requestAnimationFrame(e):setTimeout(e,16),sl=e=>Tt?window.cancelAnimationFrame(e):clearTimeout(e),Sp=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Il=e=>PR(e),Wr=e=>Object.keys(e),A1=e=>Object.entries(e),Kr=(e,t,n)=>({get value(){return gn(e,t,n)},set value(o){m1(e,t,o)}});class jF extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function _n(e,t){throw new jF(`[${e}] ${t}`)}function dae(e,t){}const P1=(e="")=>e.split(" ").filter(t=>!!t.trim()),Na=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Yo=(e,t)=>{!e||!t.trim()||e.classList.add(...P1(t))},no=(e,t)=>{!e||!t.trim()||e.classList.remove(...P1(t))},il=(e,t)=>{var n;if(!Tt||!e||!t)return"";let o=of(t);o==="float"&&(o="cssFloat");try{const a=e.style[o];if(a)return a;const l=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return l?l[o]:""}catch(a){return e.style[o]}},L1=(e,t,n)=>{if(!(!e||!t))if(Rt(t))A1(t).forEach(([o,a])=>L1(e,o,a));else{const o=of(t);e.style[o]=n}};function cn(e,t="px"){if(!e&&e!==0)return"";if(xe(e)||KF(e))return`${e}${t}`;if(He(e))return e}const YF=(e,t)=>{if(!Tt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],o=il(e,n);return["scroll","auto","overlay"].some(a=>o.includes(a))},kp=(e,t)=>{if(!Tt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(YF(n,t))return n;n=n.parentNode}return n};let ec;const D1=e=>{var t;if(!Tt)return 0;if(ec!==void 0)return ec;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const o=n.offsetWidth;n.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",n.appendChild(a);const l=a.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),ec=o-l,ec};function Ep(e,t){if(!Tt)return;if(!t){e.scrollTop=0;return}const n=[];let o=t.offsetParent;for(;o!==null&&e!==o&&e.contains(o);)n.push(o),o=o.offsetParent;const a=t.offsetTop+n.reduce((u,c)=>u+c.offsetTop,0),l=a+t.offsetHeight,r=e.scrollTop,i=r+e.clientHeight;a<r?e.scrollTop=a:l>i&&(e.scrollTop=l-e.clientHeight)}function UF(e,t,n,o,a){const l=Date.now();let r;const i=()=>{const c=Date.now()-l,d=RR(c>o?o:c,t,n,o);si(e)?e.scrollTo(window.pageXOffset,d):e.scrollTop=d,c<o?r=Ma(i):lt(a)&&a()};return i(),()=>{r&&sl(r)}}const B1=(e,t)=>si(t)?e.ownerDocument.documentElement:t,F1=e=>si(e)?window.scrollY:e.scrollTop,tc=e=>{if(!Tt||e==="")return null;if(He(e))try{return document.querySelector(e)}catch(t){return null}return e};let V1=Tt?document.body:void 0;function GF(e){const t=document.createElement("div");return e!==void 0&&t.setAttribute("id",e),V1&&V1.appendChild(t),t}function qF(e){e.remove()}var XF=ae({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),Aa=XF,ZF=ae({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),ul=ZF,JF=ae({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),oo=JF,QF=ae({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),nc=QF,eV=ae({name:"Back",__name:"back",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),W("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),tV=eV,nV=ae({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),oV=nV,aV=ae({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),z1=aV,lV=ae({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),rV=lV,sV=ae({name:"Check",__name:"check",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),ii=sV,iV=ae({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),uV=iV,cV=ae({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),W("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),$p=cV,dV=ae({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),_p=dV,fV=ae({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),W("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),cl=fV,pV=ae({name:"Clock",__name:"clock",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),W("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),W("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),H1=pV,vV=ae({name:"Close",__name:"close",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Uo=vV,hV=ae({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672z"})]))}}),Ml=hV,mV=ae({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"})]))}}),Nl=mV,gV=ae({name:"Delete",__name:"delete",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),bV=gV,yV=ae({name:"Document",__name:"document",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),wV=yV,CV=ae({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),SV=CV,kV=ae({name:"Hide",__name:"hide",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),W("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),EV=kV,$V=ae({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),ui=$V,_V=ae({name:"Loading",__name:"loading",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),Pa=_V,TV=ae({name:"Minus",__name:"minus",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),OV=TV,RV=ae({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),W1=RV,xV=ae({name:"More",__name:"more",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),IV=xV,MV=ae({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),NV=MV,AV=ae({name:"Plus",__name:"plus",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),K1=AV,PV=ae({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"})]))}}),LV=PV,DV=ae({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),BV=DV,FV=ae({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88"})]))}}),VV=FV,zV=ae({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"})]))}}),HV=zV,WV=ae({name:"Search",__name:"search",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),KV=WV,jV=ae({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),YV=jV,UV=ae({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),GV=UV,qV=ae({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M313.6 924.48a70.4 70.4 0 0 1-74.152-5.365 70.4 70.4 0 0 1-27.992-68.875l37.888-220.928L88.96 472.96a70.4 70.4 0 0 1 3.788-104.225A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 100.246-28.595 70.4 70.4 0 0 1 25.962 28.595l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),oc=qV,XV=ae({name:"Star",__name:"star",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),ZV=XV,JV=ae({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),j1=JV,QV=ae({name:"View",__name:"view",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),ez=QV,tz=ae({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),ac=tz,nz=ae({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),Y1=nz,oz=ae({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),az=oz;/*! Element Plus Icons Vue v2.3.2 */const U1="__epPropKey",q=e=>e,lz=e=>Rt(e)&&!!e[U1],ca=(e,t)=>{if(!Rt(e)||lz(e))return e;const{values:n,required:o,default:a,type:l,validator:r}=e,u={type:l,required:!!o,validator:n||r?c=>{let d=!1,f=[];if(n&&(f=Array.from(n),Bn(e,"default")&&f.push(a),d||(d=f.includes(c))),r&&(d||(d=r(c))),!d&&f.length>0){const h=[...new Set(f)].map(m=>JSON.stringify(m)).join(", ");tR(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(c)}.`)}return d}:void 0,[U1]:!0};return Bn(e,"default")&&(u.default=a),u},he=e=>Fr(Object.entries(e).map(([t,n])=>[t,ca(n,t)])),Ht=q([String,Object,Function]),G1={Close:Uo},Tp={Close:Uo,SuccessFilled:j1,InfoFilled:ui,WarningFilled:ac,CircleCloseFilled:_p},Al={primary:ui,success:j1,warning:ac,error:_p,info:ui},lc={validating:Pa,success:$p,error:cl},Qe=(e,t)=>{if(e.install=n=>{for(const o of[e,...Object.values(t!=null?t:{})])n.component(o.name,o)},t)for(const[n,o]of Object.entries(t))e[n]=o;return e},q1=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),rz=(e,t)=>(e.install=n=>{n.directive(t,e)},e),sn=e=>(e.install=Gt,e),Op=(...e)=>t=>{e.forEach(n=>{n.value=t})},X1=e=>["",...oa].includes(e);var Go=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Go||{});function Rp(e){return Jt(e)&&e.type===Be}function Z1(e){return Jt(e)&&e.type===Ga}function sz(e){return Jt(e)&&!Rp(e)&&!Z1(e)}const iz=e=>{if(!Jt(e))return{};const t=e.props||{},n=(Jt(e.type)?e.type.props:void 0)||{},o={};return Object.keys(n).forEach(a=>{Bn(n[a],"default")&&(o[a]=n[a].default)}),Object.keys(t).forEach(a=>{o[of(a)]=t[a]}),o},No=e=>{const t=$e(e)?e:[e],n=[];return t.forEach(o=>{var a;$e(o)?n.push(...No(o)):Jt(o)&&((a=o.component)==null?void 0:a.subTree)?n.push(o,...No(o.component.subTree)):Jt(o)&&$e(o.children)?n.push(...No(o.children)):Jt(o)&&o.shapeFlag===2?n.push(...No(o.type())):n.push(o)}),n},J1=e=>[...new Set(e)],ci=e=>$e(e)?e[0]:e,ao=e=>!e&&e!==0?[]:$e(e)?e:[e],uz=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),dn=e=>e;function cz(e){let t=0;const n=(...o)=>{t&&sl(t),t=Ma(()=>{e(...o),t=0})};return n.cancel=()=>{sl(t),t=0},n}const dz=["class","style"],fz=/^on[A-Z]/,di=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=k(()=>((n==null?void 0:n.value)||[]).concat(dz)),a=ct();return a?k(()=>{var l;return Fr(Object.entries((l=a.proxy)==null?void 0:l.$attrs).filter(([r])=>!o.value.includes(r)&&!(t&&fz.test(r))))}):k(()=>({}))};function rc(){const e=Zt(),t=P(0),n=k(()=>({minWidth:`${Math.max(t.value,Ps)}px`}));return Qt(e,()=>{var a,l;t.value=(l=(a=e.value)==null?void 0:a.getBoundingClientRect().width)!=null?l:0}),{calculatorRef:e,calculatorWidth:t,inputStyle:n}}const da=({from:e,replacement:t,scope:n,version:o,ref:a,type:l="API"},r)=>{ie(()=>s(r),i=>{},{immediate:!0})},xp=(e,t,n,o)=>{const a={offsetX:0,offsetY:0},l=P(!1),r=(h,m)=>{if(e.value){const{offsetX:p,offsetY:v}=a,g=e.value.getBoundingClientRect(),b=g.left,C=g.top,w=g.width,y=g.height,S=document.documentElement.clientWidth,E=document.documentElement.clientHeight,_=-b+p,T=-C+v,N=S-b-w+p,O=E-C-(y<E?y:0)+v;o!=null&&o.value||(h=Math.min(Math.max(h,_),N),m=Math.min(Math.max(m,T),O)),a.offsetX=h,a.offsetY=m,e.value.style.transform=`translate(${cn(h)}, ${cn(m)})`}},i=h=>{const m=h.clientX,p=h.clientY,{offsetX:v,offsetY:g}=a,b=w=>{l.value||(l.value=!0);const y=v+w.clientX-m,S=g+w.clientY-p;r(y,S)},C=()=>{l.value=!1,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",C)};document.addEventListener("mousemove",b),document.addEventListener("mouseup",C)},u=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",i),window.addEventListener("resize",f))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",i),window.removeEventListener("resize",f))},d=()=>{a.offsetX=0,a.offsetY=0,e.value&&(e.value.style.transform="")},f=()=>{const{offsetX:h,offsetY:m}=a;r(h,m)};return ut(()=>{io(()=>{n.value?u():c()})}),Bt(()=>{c()}),{isDragging:l,resetPosition:d,updatePosition:f}},pz=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}});var vz={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const Q1=e=>(t,n)=>ew(t,n,s(e)),ew=(e,t,n)=>gn(n,e,e).replace(/\{(\w+)\}/g,(o,a)=>{var l;return`${(l=t==null?void 0:t[a])!=null?l:`{${a}}`}`}),tw=e=>{const t=k(()=>s(e).name),n=Yn(e)?e:P(e);return{lang:t,locale:n,t:Q1(e)}},Ip=Symbol("localeContextKey"),wt=e=>{const t=e||Ee(Ip,P());return tw(k(()=>t.value||vz))},jr="el",hz="is-",rr=(e,t,n,o,a)=>{let l=`${e}-${t}`;return n&&(l+=`-${n}`),o&&(l+=`__${o}`),a&&(l+=`--${a}`),l},Mp=Symbol("namespaceContextKey"),sc=e=>{const t=e||(ct()?Ee(Mp,P(jr)):P(jr));return k(()=>s(t)||jr)},fe=(e,t)=>{const n=sc(t);return{namespace:n,b:(v="")=>rr(n.value,e,v,"",""),e:v=>v?rr(n.value,e,"",v,""):"",m:v=>v?rr(n.value,e,"","",v):"",be:(v,g)=>v&&g?rr(n.value,e,v,g,""):"",em:(v,g)=>v&&g?rr(n.value,e,"",v,g):"",bm:(v,g)=>v&&g?rr(n.value,e,v,"",g):"",bem:(v,g,b)=>v&&g&&b?rr(n.value,e,v,g,b):"",is:(v,...g)=>{const b=g.length>=1?g[0]:!0;return v&&b?`${hz}${v}`:""},cssVar:v=>{const g={};for(const b in v)v[b]&&(g[`--${n.value}-${b}`]=v[b]);return g},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const g={};for(const b in v)v[b]&&(g[`--${n.value}-${e}-${b}`]=v[b]);return g},cssVarBlockName:v=>`--${n.value}-${e}-${v}`}},fi=(e,t={})=>{Yn(e)||_n("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||fe("popup"),o=k(()=>n.bm("parent","hidden"));let a=0,l=!1,r="0",i=!1;const u=()=>{i||(i=!0,setTimeout(()=>{typeof document!="undefined"&&l&&document&&(document.body.style.width=r,no(document.body,o.value))},200))};ie(e,c=>{if(!c){u();return}i=!1,l=!Na(document.body,o.value),l&&(r=document.body.style.width,Yo(document.body,o.value)),a=D1(n.namespace.value);const d=document.documentElement.clientHeight<document.body.scrollHeight,f=il(document.body,"overflowY");a>0&&(d||f==="scroll")&&l&&(document.body.style.width=`calc(100% - ${a}px)`)}),Ig(()=>u())},Yr=[],mz=e=>{if(Yr.length===0)return;Wt(e)===pe.esc&&(e.stopPropagation(),Yr[Yr.length-1].handleClose())},gz=(e,t)=>{ie(t,n=>{n?Yr.push(e):Yr.splice(Yr.indexOf(e),1)})};Tt&&Mt(document,"keydown",mz);const bz=ca({type:q(Boolean),default:null}),yz=ca({type:q(Function)}),Np=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],a={[e]:bz,[n]:yz};return{useModelToggle:({indicator:r,toggleReason:i,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:d,onHide:f})=>{const h=ct(),{emit:m}=h,p=h.props,v=k(()=>lt(p[n])),g=k(()=>p[e]===null),b=_=>{r.value!==!0&&(r.value=!0,i&&(i.value=_),lt(d)&&d(_))},C=_=>{r.value!==!1&&(r.value=!1,i&&(i.value=_),lt(f)&&f(_))},w=_=>{if(p.disabled===!0||lt(c)&&!c())return;const T=v.value&&Tt;T&&m(t,!0),(g.value||!T)&&b(_)},y=_=>{if(p.disabled===!0||!Tt)return;const T=v.value&&Tt;T&&m(t,!1),(g.value||!T)&&C(_)},S=_=>{!zt(_)||(p.disabled&&_?v.value&&m(t,!1):r.value!==_&&(_?b():C()))},E=()=>{r.value?y():w()};return ie(()=>p[e],S),u&&h.appContext.config.globalProperties.$route!==void 0&&ie(()=>({...h.proxy.$route}),()=>{u.value&&r.value&&y()}),ut(()=>{S(p[e])}),{hide:y,show:w,toggle:E,hasUpdateHandler:v}},useModelToggleProps:a,useModelToggleEmits:o}},{useModelToggle:wz,useModelToggleProps:Cz,useModelToggleEmits:Sz}=Np("modelValue"),kz=(e,t,n)=>{const o=l=>{n(l)&&l.stopImmediatePropagation()};let a;ie(()=>e.value,l=>{l?a=Mt(document,t,o,!0):a==null||a()},{immediate:!0})},Ap=e=>{const t=ct();return k(()=>{var n,o;return(o=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:o[e]})};var So="top",qo="bottom",Xo="right",ko="left",Pp="auto",pi=[So,qo,Xo,ko],Ur="start",vi="end",Ez="clippingParents",nw="viewport",hi="popper",$z="reference",ow=pi.reduce(function(e,t){return e.concat([t+"-"+Ur,t+"-"+vi])},[]),La=[].concat(pi,[Pp]).reduce(function(e,t){return e.concat([t,t+"-"+Ur,t+"-"+vi])},[]),_z="beforeRead",Tz="read",Oz="afterRead",Rz="beforeMain",xz="main",Iz="afterMain",Mz="beforeWrite",Nz="write",Az="afterWrite",Pz=[_z,Tz,Oz,Rz,xz,Iz,Mz,Nz,Az];function Da(e){return e?(e.nodeName||"").toLowerCase():null}function fa(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gr(e){var t=fa(e).Element;return e instanceof t||e instanceof Element}function Zo(e){var t=fa(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Lp(e){if(typeof ShadowRoot=="undefined")return!1;var t=fa(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Lz(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},a=t.attributes[n]||{},l=t.elements[n];!Zo(l)||!Da(l)||(Object.assign(l.style,o),Object.keys(a).forEach(function(r){var i=a[r];i===!1?l.removeAttribute(r):l.setAttribute(r,i===!0?"":i)}))})}function Dz(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var a=t.elements[o],l=t.attributes[o]||{},r=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),i=r.reduce(function(u,c){return u[c]="",u},{});!Zo(a)||!Da(a)||(Object.assign(a.style,i),Object.keys(l).forEach(function(u){a.removeAttribute(u)}))})}}var aw={name:"applyStyles",enabled:!0,phase:"write",fn:Lz,effect:Dz,requires:["computeStyles"]};function Ba(e){return e.split("-")[0]}var sr=Math.max,ic=Math.min,qr=Math.round;function Xr(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,a=1;if(Zo(e)&&t){var l=e.offsetHeight,r=e.offsetWidth;r>0&&(o=qr(n.width)/r||1),l>0&&(a=qr(n.height)/l||1)}return{width:n.width/o,height:n.height/a,top:n.top/a,right:n.right/o,bottom:n.bottom/a,left:n.left/o,x:n.left/o,y:n.top/a}}function Dp(e){var t=Xr(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function lw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Lp(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function dl(e){return fa(e).getComputedStyle(e)}function Bz(e){return["table","td","th"].indexOf(Da(e))>=0}function Pl(e){return((Gr(e)?e.ownerDocument:e.document)||window.document).documentElement}function uc(e){return Da(e)==="html"?e:e.assignedSlot||e.parentNode||(Lp(e)?e.host:null)||Pl(e)}function rw(e){return!Zo(e)||dl(e).position==="fixed"?null:e.offsetParent}function Fz(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Zo(e)){var o=dl(e);if(o.position==="fixed")return null}var a=uc(e);for(Lp(a)&&(a=a.host);Zo(a)&&["html","body"].indexOf(Da(a))<0;){var l=dl(a);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return a;a=a.parentNode}return null}function mi(e){for(var t=fa(e),n=rw(e);n&&Bz(n)&&dl(n).position==="static";)n=rw(n);return n&&(Da(n)==="html"||Da(n)==="body"&&dl(n).position==="static")?t:n||Fz(e)||t}function Bp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function gi(e,t,n){return sr(e,ic(t,n))}function Vz(e,t,n){var o=gi(e,t,n);return o>n?n:o}function sw(){return{top:0,right:0,bottom:0,left:0}}function iw(e){return Object.assign({},sw(),e)}function uw(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var zz=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,iw(typeof e!="number"?e:uw(e,pi))};function Hz(e){var t,n=e.state,o=e.name,a=e.options,l=n.elements.arrow,r=n.modifiersData.popperOffsets,i=Ba(n.placement),u=Bp(i),c=[ko,Xo].indexOf(i)>=0,d=c?"height":"width";if(!(!l||!r)){var f=zz(a.padding,n),h=Dp(l),m=u==="y"?So:ko,p=u==="y"?qo:Xo,v=n.rects.reference[d]+n.rects.reference[u]-r[u]-n.rects.popper[d],g=r[u]-n.rects.reference[u],b=mi(l),C=b?u==="y"?b.clientHeight||0:b.clientWidth||0:0,w=v/2-g/2,y=f[m],S=C-h[d]-f[p],E=C/2-h[d]/2+w,_=gi(y,E,S),T=u;n.modifiersData[o]=(t={},t[T]=_,t.centerOffset=_-E,t)}}function Wz(e){var t=e.state,n=e.options,o=n.element,a=o===void 0?"[data-popper-arrow]":o;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!lw(t.elements.popper,a)||(t.elements.arrow=a))}var Kz={name:"arrow",enabled:!0,phase:"main",fn:Hz,effect:Wz,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zr(e){return e.split("-")[1]}var jz={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yz(e){var t=e.x,n=e.y,o=window,a=o.devicePixelRatio||1;return{x:qr(t*a)/a||0,y:qr(n*a)/a||0}}function cw(e){var t,n=e.popper,o=e.popperRect,a=e.placement,l=e.variation,r=e.offsets,i=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=r.x,m=h===void 0?0:h,p=r.y,v=p===void 0?0:p,g=typeof d=="function"?d({x:m,y:v}):{x:m,y:v};m=g.x,v=g.y;var b=r.hasOwnProperty("x"),C=r.hasOwnProperty("y"),w=ko,y=So,S=window;if(c){var E=mi(n),_="clientHeight",T="clientWidth";if(E===fa(n)&&(E=Pl(n),dl(E).position!=="static"&&i==="absolute"&&(_="scrollHeight",T="scrollWidth")),E=E,a===So||(a===ko||a===Xo)&&l===vi){y=qo;var N=f&&E===S&&S.visualViewport?S.visualViewport.height:E[_];v-=N-o.height,v*=u?1:-1}if(a===ko||(a===So||a===qo)&&l===vi){w=Xo;var O=f&&E===S&&S.visualViewport?S.visualViewport.width:E[T];m-=O-o.width,m*=u?1:-1}}var A=Object.assign({position:i},c&&jz),M=d===!0?Yz({x:m,y:v}):{x:m,y:v};if(m=M.x,v=M.y,u){var L;return Object.assign({},A,(L={},L[y]=C?"0":"",L[w]=b?"0":"",L.transform=(S.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",L))}return Object.assign({},A,(t={},t[y]=C?v+"px":"",t[w]=b?m+"px":"",t.transform="",t))}function Uz(e){var t=e.state,n=e.options,o=n.gpuAcceleration,a=o===void 0?!0:o,l=n.adaptive,r=l===void 0?!0:l,i=n.roundOffsets,u=i===void 0?!0:i,c={placement:Ba(t.placement),variation:Zr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,cw(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,cw(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var dw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Uz,data:{}},cc={passive:!0};function Gz(e){var t=e.state,n=e.instance,o=e.options,a=o.scroll,l=a===void 0?!0:a,r=o.resize,i=r===void 0?!0:r,u=fa(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&c.forEach(function(d){d.addEventListener("scroll",n.update,cc)}),i&&u.addEventListener("resize",n.update,cc),function(){l&&c.forEach(function(d){d.removeEventListener("scroll",n.update,cc)}),i&&u.removeEventListener("resize",n.update,cc)}}var fw={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Gz,data:{}},qz={left:"right",right:"left",bottom:"top",top:"bottom"};function dc(e){return e.replace(/left|right|bottom|top/g,function(t){return qz[t]})}var Xz={start:"end",end:"start"};function pw(e){return e.replace(/start|end/g,function(t){return Xz[t]})}function Fp(e){var t=fa(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Vp(e){return Xr(Pl(e)).left+Fp(e).scrollLeft}function Zz(e){var t=fa(e),n=Pl(e),o=t.visualViewport,a=n.clientWidth,l=n.clientHeight,r=0,i=0;return o&&(a=o.width,l=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=o.offsetLeft,i=o.offsetTop)),{width:a,height:l,x:r+Vp(e),y:i}}function Jz(e){var t,n=Pl(e),o=Fp(e),a=(t=e.ownerDocument)==null?void 0:t.body,l=sr(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),r=sr(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-o.scrollLeft+Vp(e),u=-o.scrollTop;return dl(a||n).direction==="rtl"&&(i+=sr(n.clientWidth,a?a.clientWidth:0)-l),{width:l,height:r,x:i,y:u}}function zp(e){var t=dl(e),n=t.overflow,o=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function vw(e){return["html","body","#document"].indexOf(Da(e))>=0?e.ownerDocument.body:Zo(e)&&zp(e)?e:vw(uc(e))}function bi(e,t){var n;t===void 0&&(t=[]);var o=vw(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),l=fa(o),r=a?[l].concat(l.visualViewport||[],zp(o)?o:[]):o,i=t.concat(r);return a?i:i.concat(bi(uc(r)))}function Hp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Qz(e){var t=Xr(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function hw(e,t){return t===nw?Hp(Zz(e)):Gr(t)?Qz(t):Hp(Jz(Pl(e)))}function e5(e){var t=bi(uc(e)),n=["absolute","fixed"].indexOf(dl(e).position)>=0,o=n&&Zo(e)?mi(e):e;return Gr(o)?t.filter(function(a){return Gr(a)&&lw(a,o)&&Da(a)!=="body"}):[]}function t5(e,t,n){var o=t==="clippingParents"?e5(e):[].concat(t),a=[].concat(o,[n]),l=a[0],r=a.reduce(function(i,u){var c=hw(e,u);return i.top=sr(c.top,i.top),i.right=ic(c.right,i.right),i.bottom=ic(c.bottom,i.bottom),i.left=sr(c.left,i.left),i},hw(e,l));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function mw(e){var t=e.reference,n=e.element,o=e.placement,a=o?Ba(o):null,l=o?Zr(o):null,r=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,u;switch(a){case So:u={x:r,y:t.y-n.height};break;case qo:u={x:r,y:t.y+t.height};break;case Xo:u={x:t.x+t.width,y:i};break;case ko:u={x:t.x-n.width,y:i};break;default:u={x:t.x,y:t.y}}var c=a?Bp(a):null;if(c!=null){var d=c==="y"?"height":"width";switch(l){case Ur:u[c]=u[c]-(t[d]/2-n[d]/2);break;case vi:u[c]=u[c]+(t[d]/2-n[d]/2);break}}return u}function yi(e,t){t===void 0&&(t={});var n=t,o=n.placement,a=o===void 0?e.placement:o,l=n.boundary,r=l===void 0?Ez:l,i=n.rootBoundary,u=i===void 0?nw:i,c=n.elementContext,d=c===void 0?hi:c,f=n.altBoundary,h=f===void 0?!1:f,m=n.padding,p=m===void 0?0:m,v=iw(typeof p!="number"?p:uw(p,pi)),g=d===hi?$z:hi,b=e.rects.popper,C=e.elements[h?g:d],w=t5(Gr(C)?C:C.contextElement||Pl(e.elements.popper),r,u),y=Xr(e.elements.reference),S=mw({reference:y,element:b,strategy:"absolute",placement:a}),E=Hp(Object.assign({},b,S)),_=d===hi?E:y,T={top:w.top-_.top+v.top,bottom:_.bottom-w.bottom+v.bottom,left:w.left-_.left+v.left,right:_.right-w.right+v.right},N=e.modifiersData.offset;if(d===hi&&N){var O=N[a];Object.keys(T).forEach(function(A){var M=[Xo,qo].indexOf(A)>=0?1:-1,L=[So,qo].indexOf(A)>=0?"y":"x";T[A]+=O[L]*M})}return T}function n5(e,t){t===void 0&&(t={});var n=t,o=n.placement,a=n.boundary,l=n.rootBoundary,r=n.padding,i=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?La:u,d=Zr(o),f=d?i?ow:ow.filter(function(p){return Zr(p)===d}):pi,h=f.filter(function(p){return c.indexOf(p)>=0});h.length===0&&(h=f);var m=h.reduce(function(p,v){return p[v]=yi(e,{placement:v,boundary:a,rootBoundary:l,padding:r})[Ba(v)],p},{});return Object.keys(m).sort(function(p,v){return m[p]-m[v]})}function o5(e){if(Ba(e)===Pp)return[];var t=dc(e);return[pw(e),t,pw(t)]}function a5(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var a=n.mainAxis,l=a===void 0?!0:a,r=n.altAxis,i=r===void 0?!0:r,u=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,p=m===void 0?!0:m,v=n.allowedAutoPlacements,g=t.options.placement,b=Ba(g),C=b===g,w=u||(C||!p?[dc(g)]:o5(g)),y=[g].concat(w).reduce(function(G,X){return G.concat(Ba(X)===Pp?n5(t,{placement:X,boundary:d,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:v}):X)},[]),S=t.rects.reference,E=t.rects.popper,_=new Map,T=!0,N=y[0],O=0;O<y.length;O++){var A=y[O],M=Ba(A),L=Zr(A)===Ur,H=[So,qo].indexOf(M)>=0,K=H?"width":"height",Y=yi(t,{placement:A,boundary:d,rootBoundary:f,altBoundary:h,padding:c}),I=H?L?Xo:ko:L?qo:So;S[K]>E[K]&&(I=dc(I));var R=dc(I),D=[];if(l&&D.push(Y[M]<=0),i&&D.push(Y[I]<=0,Y[R]<=0),D.every(function(G){return G})){N=A,T=!1;break}_.set(A,D)}if(T)for(var B=p?3:1,z=function(G){var X=y.find(function(le){var se=_.get(le);if(se)return se.slice(0,G).every(function(de){return de})});if(X)return N=X,"break"},U=B;U>0;U--){var V=z(U);if(V==="break")break}t.placement!==N&&(t.modifiersData[o]._skip=!0,t.placement=N,t.reset=!0)}}var l5={name:"flip",enabled:!0,phase:"main",fn:a5,requiresIfExists:["offset"],data:{_skip:!1}};function gw(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function bw(e){return[So,Xo,qo,ko].some(function(t){return e[t]>=0})}function r5(e){var t=e.state,n=e.name,o=t.rects.reference,a=t.rects.popper,l=t.modifiersData.preventOverflow,r=yi(t,{elementContext:"reference"}),i=yi(t,{altBoundary:!0}),u=gw(r,o),c=gw(i,a,l),d=bw(u),f=bw(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var s5={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:r5};function i5(e,t,n){var o=Ba(e),a=[ko,So].indexOf(o)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=l[0],i=l[1];return r=r||0,i=(i||0)*a,[ko,Xo].indexOf(o)>=0?{x:i,y:r}:{x:r,y:i}}function u5(e){var t=e.state,n=e.options,o=e.name,a=n.offset,l=a===void 0?[0,0]:a,r=La.reduce(function(d,f){return d[f]=i5(f,t.rects,l),d},{}),i=r[t.placement],u=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=r}var c5={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:u5};function d5(e){var t=e.state,n=e.name;t.modifiersData[n]=mw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var yw={name:"popperOffsets",enabled:!0,phase:"read",fn:d5,data:{}};function f5(e){return e==="x"?"y":"x"}function p5(e){var t=e.state,n=e.options,o=e.name,a=n.mainAxis,l=a===void 0?!0:a,r=n.altAxis,i=r===void 0?!1:r,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,m=h===void 0?!0:h,p=n.tetherOffset,v=p===void 0?0:p,g=yi(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),b=Ba(t.placement),C=Zr(t.placement),w=!C,y=Bp(b),S=f5(y),E=t.modifiersData.popperOffsets,_=t.rects.reference,T=t.rects.popper,N=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,O=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(E){if(l){var L,H=y==="y"?So:ko,K=y==="y"?qo:Xo,Y=y==="y"?"height":"width",I=E[y],R=I+g[H],D=I-g[K],B=m?-T[Y]/2:0,z=C===Ur?_[Y]:T[Y],U=C===Ur?-T[Y]:-_[Y],V=t.elements.arrow,G=m&&V?Dp(V):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:sw(),le=X[H],se=X[K],de=gi(0,_[Y],G[Y]),ce=w?_[Y]/2-B-de-le-O.mainAxis:z-de-le-O.mainAxis,ne=w?-_[Y]/2+B+de+se+O.mainAxis:U+de+se+O.mainAxis,j=t.elements.arrow&&mi(t.elements.arrow),re=j?y==="y"?j.clientTop||0:j.clientLeft||0:0,Se=(L=A==null?void 0:A[y])!=null?L:0,Te=I+ce-Se-re,De=I+ne-Se,ze=gi(m?ic(R,Te):R,I,m?sr(D,De):D);E[y]=ze,M[y]=ze-I}if(i){var Ze,nt=y==="x"?So:ko,Et=y==="x"?qo:Xo,Ue=E[S],Ae=S==="y"?"height":"width",Pe=Ue+g[nt],Ge=Ue-g[Et],ot=[So,ko].indexOf(b)!==-1,pt=(Ze=A==null?void 0:A[S])!=null?Ze:0,Ct=ot?Pe:Ue-_[Ae]-T[Ae]-pt+O.altAxis,Ce=ot?Ue+_[Ae]+T[Ae]-pt-O.altAxis:Ge,Ve=m&&ot?Vz(Ct,Ue,Ce):gi(m?Ct:Pe,Ue,m?Ce:Ge);E[S]=Ve,M[S]=Ve-Ue}t.modifiersData[o]=M}}var v5={name:"preventOverflow",enabled:!0,phase:"main",fn:p5,requiresIfExists:["offset"]};function h5(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function m5(e){return e===fa(e)||!Zo(e)?Fp(e):h5(e)}function g5(e){var t=e.getBoundingClientRect(),n=qr(t.width)/e.offsetWidth||1,o=qr(t.height)/e.offsetHeight||1;return n!==1||o!==1}function b5(e,t,n){n===void 0&&(n=!1);var o=Zo(t),a=Zo(t)&&g5(t),l=Pl(t),r=Xr(e,a),i={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&((Da(t)!=="body"||zp(l))&&(i=m5(t)),Zo(t)?(u=Xr(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=Vp(l))),{x:r.left+i.scrollLeft-u.x,y:r.top+i.scrollTop-u.y,width:r.width,height:r.height}}function y5(e){var t=new Map,n=new Set,o=[];e.forEach(function(l){t.set(l.name,l)});function a(l){n.add(l.name);var r=[].concat(l.requires||[],l.requiresIfExists||[]);r.forEach(function(i){if(!n.has(i)){var u=t.get(i);u&&a(u)}}),o.push(l)}return e.forEach(function(l){n.has(l.name)||a(l)}),o}function w5(e){var t=y5(e);return Pz.reduce(function(n,o){return n.concat(t.filter(function(a){return a.phase===o}))},[])}function C5(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function S5(e){var t=e.reduce(function(n,o){var a=n[o.name];return n[o.name]=a?Object.assign({},a,o,{options:Object.assign({},a.options,o.options),data:Object.assign({},a.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var ww={placement:"bottom",modifiers:[],strategy:"absolute"};function Cw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Wp(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,a=t.defaultOptions,l=a===void 0?ww:a;return function(r,i,u){u===void 0&&(u=l);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},ww,l),modifiersData:{},elements:{reference:r,popper:i},attributes:{},styles:{}},d=[],f=!1,h={state:c,setOptions:function(v){var g=typeof v=="function"?v(c.options):v;p(),c.options=Object.assign({},l,c.options,g),c.scrollParents={reference:Gr(r)?bi(r):r.contextElement?bi(r.contextElement):[],popper:bi(i)};var b=w5(S5([].concat(o,c.options.modifiers)));return c.orderedModifiers=b.filter(function(C){return C.enabled}),m(),h.update()},forceUpdate:function(){if(!f){var v=c.elements,g=v.reference,b=v.popper;if(Cw(g,b)){c.rects={reference:b5(g,mi(b),c.options.strategy==="fixed"),popper:Dp(b)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(T){return c.modifiersData[T.name]=Object.assign({},T.data)});for(var C=0;C<c.orderedModifiers.length;C++){if(c.reset===!0){c.reset=!1,C=-1;continue}var w=c.orderedModifiers[C],y=w.fn,S=w.options,E=S===void 0?{}:S,_=w.name;typeof y=="function"&&(c=y({state:c,options:E,name:_,instance:h})||c)}}}},update:C5(function(){return new Promise(function(v){h.forceUpdate(),v(c)})}),destroy:function(){p(),f=!0}};if(!Cw(r,i))return h;h.setOptions(u).then(function(v){!f&&u.onFirstUpdate&&u.onFirstUpdate(v)});function m(){c.orderedModifiers.forEach(function(v){var g=v.name,b=v.options,C=b===void 0?{}:b,w=v.effect;if(typeof w=="function"){var y=w({state:c,name:g,instance:h,options:C}),S=function(){};d.push(y||S)}})}function p(){d.forEach(function(v){return v()}),d=[]}return h}}Wp();var k5=[fw,yw,dw,aw];Wp({defaultModifiers:k5});var E5=[fw,yw,dw,aw,c5,l5,v5,Kz,s5],$5=Wp({defaultModifiers:E5});const Sw=(e,t,n={})=>{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const c=_5(u);Object.assign(r.value,c)},requires:["computeStyles"]},a=k(()=>{const{onFirstUpdate:u,placement:c,strategy:d,modifiers:f}=s(n);return{onFirstUpdate:u,placement:c||"bottom",strategy:d||"absolute",modifiers:[...f||[],o,{name:"applyStyles",enabled:!1}]}}),l=Zt(),r=P({styles:{popper:{position:s(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{!l.value||(l.value.destroy(),l.value=void 0)};return ie(a,u=>{const c=s(l);c&&c.setOptions(u)},{deep:!0}),ie([e,t],([u,c])=>{i(),!(!u||!c)&&(l.value=$5(u,c,s(a)))}),Bt(()=>{i()}),{state:k(()=>{var u;return{...((u=s(l))==null?void 0:u.state)||{}}}),styles:k(()=>s(r).styles),attributes:k(()=>s(r).attributes),update:()=>{var u;return(u=s(l))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=s(l))==null?void 0:u.forceUpdate()},instanceRef:k(()=>s(l))}};function _5(e){const t=Object.keys(e.elements),n=Fr(t.map(a=>[a,e.styles[a]||{}])),o=Fr(t.map(a=>[a,e.attributes[a]]));return{styles:n,attributes:o}}const fc=e=>{if(!e)return{onClick:Gt,onMousedown:Gt,onMouseup:Gt};let t=!1,n=!1;return{onClick:r=>{t&&n&&e(r),t=n=!1},onMousedown:r=>{t=r.target===r.currentTarget},onMouseup:r=>{n=r.target===r.currentTarget}}},T5=(e,t)=>{const n=P(!1);if(!Tt)return{isTeleportVisible:n,showTeleport:Gt,hideTeleport:Gt,renderTeleport:Gt};let o=null;const a=()=>{n.value=!0,o===null&&(o=GF())},l=()=>{n.value=!1,o!==null&&(qF(o),o=null)},r=()=>t.value!==!0?e():n.value?[Le(Mg,{to:o},e())]:void 0;return Ms(l),{isTeleportVisible:n,showTeleport:a,hideTeleport:l,renderTeleport:r}},kw=(e,t=0)=>{if(t===0)return e;const n=Rt(t)&&Boolean(t.initVal),o=P(n);let a=null;const l=i=>{if(_t(i)){o.value=e.value;return}a&&clearTimeout(a),a=setTimeout(()=>{o.value=e.value},i)},r=i=>{i==="leading"?xe(t)?l(t):l(t.leading):Rt(t)?l(t.trailing):o.value=!1};return ut(()=>r("leading")),ie(()=>e.value,i=>{r(i?"leading":"trailing")}),o};function Kp(){let e;const t=(o,a)=>{n(),e=window.setTimeout(o,a)},n=()=>window.clearTimeout(e);return Zl(()=>n()),{registerTimeout:t,cancelTimeout:n}}const Ew="after-appear",$w="after-enter",_w="after-leave",O5="appear",Tw="appear-cancelled",Ow="before-enter",Rw="before-leave",xw="enter",Iw="enter-cancelled",Mw="leave",Nw="leave-cancelled",R5=[Ew,$w,_w,O5,Tw,Ow,Rw,xw,Iw,Mw,Nw],x5=()=>{const{emit:e}=ct();return{onAfterAppear:()=>{e(Ew)},onAfterEnter:()=>{e($w)},onAfterLeave:()=>{e(_w)},onAppearCancelled:()=>{e(Tw)},onBeforeEnter:()=>{e(Ow)},onBeforeLeave:()=>{e(Rw)},onEnter:()=>{e(xw)},onEnterCancelled:()=>{e(Iw)},onLeave:()=>{e(Mw)},onLeaveCancelled:()=>{e(Nw)}}},Aw={prefix:Math.floor(Math.random()*1e4),current:0},Pw=Symbol("elIdInjection"),pc=()=>ct()?Ee(Pw,Aw):Aw,Vn=e=>{const t=pc(),n=sc();return jg(()=>s(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Jr=[];const Lw=e=>{Wt(e)===pe.esc&&Jr.forEach(n=>n(e))},Dw=e=>{ut(()=>{Jr.length===0&&document.addEventListener("keydown",Lw),Tt&&Jr.push(e)}),Bt(()=>{Jr=Jr.filter(t=>t!==e),Jr.length===0&&Tt&&document.removeEventListener("keydown",Lw)})},jp=()=>{const e=sc(),t=pc(),n=k(()=>`${e.value}-popper-container-${t.prefix}`),o=k(()=>`#${n.value}`);return{id:n,selector:o}},I5=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},Bw=()=>{const{id:e,selector:t}=jp();return Wd(()=>{!Tt||document.body.querySelector(t.value)||I5(e.value)}),{id:e,selector:t}},M5=({indicator:e,intermediateIndicator:t,shouldSetIntermediate:n=()=>!0,beforeShow:o,afterShow:a,afterHide:l,beforeHide:r})=>{ie(()=>s(e),i=>{i?(o==null||o(),ke(()=>{!s(e)||n("show")&&(t.value=!0)})):(r==null||r(),ke(()=>{s(e)||n("hide")&&(t.value=!1)}))}),ie(()=>t.value,i=>{i?a==null||a():l==null||l()})},Fw=he({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Vw=({showAfter:e,hideAfter:t,autoClose:n,open:o,close:a})=>{const{registerTimeout:l}=Kp(),{registerTimeout:r,cancelTimeout:i}=Kp();return{onOpen:(d,f=s(e))=>{l(()=>{o(d);const h=s(n);xe(h)&&h>0&&r(()=>{a(d)},h)},f)},onClose:(d,f=s(t))=>{i(),l(()=>{a(d)},f)}}},Yp=Symbol("elForwardRef"),zw=e=>{St(Yp,{setForwardRef:n=>{e.value=n}})},Hw=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Ww={current:0},Kw=P(0),Up=2e3,Gp=Symbol("elZIndexContextKey"),qp=Symbol("zIndexContextKey"),Qr=e=>{const t=ct()?Ee(Gp,Ww):Ww,n=e||(ct()?Ee(qp,void 0):void 0),o=k(()=>{const r=s(n);return xe(r)?r:Up}),a=k(()=>o.value+Kw.value),l=()=>(t.current++,Kw.value=t.current,a.value);return!Tt&&Ee(Gp),{initialZIndex:o,currentZIndex:a,nextZIndex:l}},jw=["top","right","bottom","left"],Yw=["start","end"],Uw=jw.reduce((e,t)=>e.concat(t,t+"-"+Yw[0],t+"-"+Yw[1]),[]),pa=Math.min,lo=Math.max,vc=Math.round,hc=Math.floor,Fa=e=>({x:e,y:e}),N5={left:"right",right:"left",bottom:"top",top:"bottom"},A5={start:"end",end:"start"};function Xp(e,t,n){return lo(e,pa(t,n))}function va(e,t){return typeof e=="function"?e(t):e}function Ao(e){return e.split("-")[0]}function ha(e){return e.split("-")[1]}function Zp(e){return e==="x"?"y":"x"}function Jp(e){return e==="y"?"height":"width"}const P5=new Set(["top","bottom"]);function ma(e){return P5.has(Ao(e))?"y":"x"}function Qp(e){return Zp(ma(e))}function Gw(e,t,n){n===void 0&&(n=!1);const o=ha(e),a=Qp(e),l=Jp(a);let r=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(r=gc(r)),[r,gc(r)]}function L5(e){const t=gc(e);return[mc(e),t,mc(t)]}function mc(e){return e.replace(/start|end/g,t=>A5[t])}const qw=["left","right"],Xw=["right","left"],D5=["top","bottom"],B5=["bottom","top"];function F5(e,t,n){switch(e){case"top":case"bottom":return n?t?Xw:qw:t?qw:Xw;case"left":case"right":return t?D5:B5;default:return[]}}function V5(e,t,n,o){const a=ha(e);let l=F5(Ao(e),n==="start",o);return a&&(l=l.map(r=>r+"-"+a),t&&(l=l.concat(l.map(mc)))),l}function gc(e){return e.replace(/left|right|bottom|top/g,t=>N5[t])}function z5(e){return{top:0,right:0,bottom:0,left:0,...e}}function ev(e){return typeof e!="number"?z5(e):{top:e,right:e,bottom:e,left:e}}function es(e){const{x:t,y:n,width:o,height:a}=e;return{width:o,height:a,top:n,left:t,right:t+o,bottom:n+a,x:t,y:n}}function Zw(e,t,n){let{reference:o,floating:a}=e;const l=ma(t),r=Qp(t),i=Jp(r),u=Ao(t),c=l==="y",d=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,h=o[i]/2-a[i]/2;let m;switch(u){case"top":m={x:d,y:o.y-a.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:f};break;case"left":m={x:o.x-a.width,y:f};break;default:m={x:o.x,y:o.y}}switch(ha(t)){case"start":m[r]-=h*(n&&c?-1:1);break;case"end":m[r]+=h*(n&&c?-1:1);break}return m}const H5=async(e,t,n)=>{const{placement:o="bottom",strategy:a="absolute",middleware:l=[],platform:r}=n,i=l.filter(Boolean),u=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:f}=Zw(c,o,u),h=o,m={},p=0;for(let v=0;v<i.length;v++){const{name:g,fn:b}=i[v],{x:C,y:w,data:y,reset:S}=await b({x:d,y:f,initialPlacement:o,placement:h,strategy:a,middlewareData:m,rects:c,platform:r,elements:{reference:e,floating:t}});d=C!=null?C:d,f=w!=null?w:f,m={...m,[g]:{...m[g],...y}},S&&p<=50&&(p++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:a}):S.rects),{x:d,y:f}=Zw(c,h,u)),v=-1)}return{x:d,y:f,placement:h,strategy:a,middlewareData:m}};async function ir(e,t){var n;t===void 0&&(t={});const{x:o,y:a,platform:l,rects:r,elements:i,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=va(t,e),p=ev(m),g=i[h?f==="floating"?"reference":"floating":f],b=es(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(g)))==null||n?g:g.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:u})),C=f==="floating"?{x:o,y:a,width:r.floating.width,height:r.floating.height}:r.reference,w=await(l.getOffsetParent==null?void 0:l.getOffsetParent(i.floating)),y=await(l.isElement==null?void 0:l.isElement(w))?await(l.getScale==null?void 0:l.getScale(w))||{x:1,y:1}:{x:1,y:1},S=es(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:C,offsetParent:w,strategy:u}):C);return{top:(b.top-S.top+p.top)/y.y,bottom:(S.bottom-b.bottom+p.bottom)/y.y,left:(b.left-S.left+p.left)/y.x,right:(S.right-b.right+p.right)/y.x}}const W5=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:a,rects:l,platform:r,elements:i,middlewareData:u}=t,{element:c,padding:d=0}=va(e,t)||{};if(c==null)return{};const f=ev(d),h={x:n,y:o},m=Qp(a),p=Jp(m),v=await r.getDimensions(c),g=m==="y",b=g?"top":"left",C=g?"bottom":"right",w=g?"clientHeight":"clientWidth",y=l.reference[p]+l.reference[m]-h[m]-l.floating[p],S=h[m]-l.reference[m],E=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let _=E?E[w]:0;(!_||!await(r.isElement==null?void 0:r.isElement(E)))&&(_=i.floating[w]||l.floating[p]);const T=y/2-S/2,N=_/2-v[p]/2-1,O=pa(f[b],N),A=pa(f[C],N),M=O,L=_-v[p]-A,H=_/2-v[p]/2+T,K=Xp(M,H,L),Y=!u.arrow&&ha(a)!=null&&H!==K&&l.reference[p]/2-(H<M?O:A)-v[p]/2<0,I=Y?H<M?H-M:H-L:0;return{[m]:h[m]+I,data:{[m]:K,centerOffset:H-K-I,...Y&&{alignmentOffset:I}},reset:Y}}});function K5(e,t,n){return(e?[...n.filter(a=>ha(a)===e),...n.filter(a=>ha(a)!==e)]:n.filter(a=>Ao(a)===a)).filter(a=>e?ha(a)===e||(t?mc(a)!==a:!1):!0)}const j5=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,a;const{rects:l,middlewareData:r,placement:i,platform:u,elements:c}=t,{crossAxis:d=!1,alignment:f,allowedPlacements:h=Uw,autoAlignment:m=!0,...p}=va(e,t),v=f!==void 0||h===Uw?K5(f||null,m,h):h,g=await ir(t,p),b=((n=r.autoPlacement)==null?void 0:n.index)||0,C=v[b];if(C==null)return{};const w=Gw(C,l,await(u.isRTL==null?void 0:u.isRTL(c.floating)));if(i!==C)return{reset:{placement:v[0]}};const y=[g[Ao(C)],g[w[0]],g[w[1]]],S=[...((o=r.autoPlacement)==null?void 0:o.overflows)||[],{placement:C,overflows:y}],E=v[b+1];if(E)return{data:{index:b+1,overflows:S},reset:{placement:E}};const _=S.map(O=>{const A=ha(O.placement);return[O.placement,A&&d?O.overflows.slice(0,2).reduce((M,L)=>M+L,0):O.overflows[0],O.overflows]}).sort((O,A)=>O[1]-A[1]),N=((a=_.filter(O=>O[2].slice(0,ha(O[0])?2:3).every(A=>A<=0))[0])==null?void 0:a[0])||_[0][0];return N!==i?{data:{index:b+1,overflows:S},reset:{placement:N}}:{}}}},Y5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:a,middlewareData:l,rects:r,initialPlacement:i,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:v=!0,...g}=va(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const b=Ao(a),C=ma(i),w=Ao(i)===i,y=await(u.isRTL==null?void 0:u.isRTL(c.floating)),S=h||(w||!v?[gc(i)]:L5(i)),E=p!=="none";!h&&E&&S.push(...V5(i,v,p,y));const _=[i,...S],T=await ir(t,g),N=[];let O=((o=l.flip)==null?void 0:o.overflows)||[];if(d&&N.push(T[b]),f){const H=Gw(a,r,y);N.push(T[H[0]],T[H[1]])}if(O=[...O,{placement:a,overflows:N}],!N.every(H=>H<=0)){var A,M;const H=(((A=l.flip)==null?void 0:A.index)||0)+1,K=_[H];if(K&&(!(f==="alignment"?C!==ma(K):!1)||O.every(R=>ma(R.placement)===C?R.overflows[0]>0:!0)))return{data:{index:H,overflows:O},reset:{placement:K}};let Y=(M=O.filter(I=>I.overflows[0]<=0).sort((I,R)=>I.overflows[1]-R.overflows[1])[0])==null?void 0:M.placement;if(!Y)switch(m){case"bestFit":{var L;const I=(L=O.filter(R=>{if(E){const D=ma(R.placement);return D===C||D==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(D=>D>0).reduce((D,B)=>D+B,0)]).sort((R,D)=>R[1]-D[1])[0])==null?void 0:L[0];I&&(Y=I);break}case"initialPlacement":Y=i;break}if(a!==Y)return{reset:{placement:Y}}}return{}}}};function Jw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qw(e){return jw.some(t=>e[t]>=0)}const U5=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...a}=va(e,t);switch(o){case"referenceHidden":{const l=await ir(t,{...a,elementContext:"reference"}),r=Jw(l,n.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:Qw(r)}}}case"escaped":{const l=await ir(t,{...a,altBoundary:!0}),r=Jw(l,n.floating);return{data:{escapedOffsets:r,escaped:Qw(r)}}}default:return{}}}}};function eC(e){const t=pa(...e.map(l=>l.left)),n=pa(...e.map(l=>l.top)),o=lo(...e.map(l=>l.right)),a=lo(...e.map(l=>l.bottom));return{x:t,y:n,width:o-t,height:a-n}}function G5(e){const t=e.slice().sort((a,l)=>a.y-l.y),n=[];let o=null;for(let a=0;a<t.length;a++){const l=t[a];!o||l.y-o.y>o.height/2?n.push([l]):n[n.length-1].push(l),o=l}return n.map(a=>es(eC(a)))}const q5=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:o,rects:a,platform:l,strategy:r}=t,{padding:i=2,x:u,y:c}=va(e,t),d=Array.from(await(l.getClientRects==null?void 0:l.getClientRects(o.reference))||[]),f=G5(d),h=es(eC(d)),m=ev(i);function p(){if(f.length===2&&f[0].left>f[1].right&&u!=null&&c!=null)return f.find(g=>u>g.left-m.left&&u<g.right+m.right&&c>g.top-m.top&&c<g.bottom+m.bottom)||h;if(f.length>=2){if(ma(n)==="y"){const O=f[0],A=f[f.length-1],M=Ao(n)==="top",L=O.top,H=A.bottom,K=M?O.left:A.left,Y=M?O.right:A.right,I=Y-K,R=H-L;return{top:L,bottom:H,left:K,right:Y,width:I,height:R,x:K,y:L}}const g=Ao(n)==="left",b=lo(...f.map(O=>O.right)),C=pa(...f.map(O=>O.left)),w=f.filter(O=>g?O.left===C:O.right===b),y=w[0].top,S=w[w.length-1].bottom,E=C,_=b,T=_-E,N=S-y;return{top:y,bottom:S,left:E,right:_,width:T,height:N,x:E,y}}return h}const v=await l.getElementRects({reference:{getBoundingClientRect:p},floating:o.floating,strategy:r});return a.reference.x!==v.reference.x||a.reference.y!==v.reference.y||a.reference.width!==v.reference.width||a.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}},tC=new Set(["left","top"]);async function X5(e,t){const{placement:n,platform:o,elements:a}=e,l=await(o.isRTL==null?void 0:o.isRTL(a.floating)),r=Ao(n),i=ha(n),u=ma(n)==="y",c=tC.has(r)?-1:1,d=l&&u?-1:1,f=va(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof p=="number"&&(m=i==="end"?p*-1:p),u?{x:m*d,y:h*c}:{x:h*c,y:m*d}}const Z5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:a,y:l,placement:r,middlewareData:i}=t,u=await X5(t,e);return r===((n=i.offset)==null?void 0:n.placement)&&(o=i.arrow)!=null&&o.alignmentOffset?{}:{x:a+u.x,y:l+u.y,data:{...u,placement:r}}}}},J5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:a}=t,{mainAxis:l=!0,crossAxis:r=!1,limiter:i={fn:g=>{let{x:b,y:C}=g;return{x:b,y:C}}},...u}=va(e,t),c={x:n,y:o},d=await ir(t,u),f=ma(Ao(a)),h=Zp(f);let m=c[h],p=c[f];if(l){const g=h==="y"?"top":"left",b=h==="y"?"bottom":"right",C=m+d[g],w=m-d[b];m=Xp(C,m,w)}if(r){const g=f==="y"?"top":"left",b=f==="y"?"bottom":"right",C=p+d[g],w=p-d[b];p=Xp(C,p,w)}const v=i.fn({...t,[h]:m,[f]:p});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[h]:l,[f]:r}}}}}},Q5=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:a,rects:l,middlewareData:r}=t,{offset:i=0,mainAxis:u=!0,crossAxis:c=!0}=va(e,t),d={x:n,y:o},f=ma(a),h=Zp(f);let m=d[h],p=d[f];const v=va(i,t),g=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const w=h==="y"?"height":"width",y=l.reference[h]-l.floating[w]+g.mainAxis,S=l.reference[h]+l.reference[w]-g.mainAxis;m<y?m=y:m>S&&(m=S)}if(c){var b,C;const w=h==="y"?"width":"height",y=tC.has(Ao(a)),S=l.reference[f]-l.floating[w]+(y&&((b=r.offset)==null?void 0:b[f])||0)+(y?0:g.crossAxis),E=l.reference[f]+l.reference[w]+(y?0:((C=r.offset)==null?void 0:C[f])||0)-(y?g.crossAxis:0);p<S?p=S:p>E&&(p=E)}return{[h]:m,[f]:p}}}},eH=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:a,rects:l,platform:r,elements:i}=t,{apply:u=()=>{},...c}=va(e,t),d=await ir(t,c),f=Ao(a),h=ha(a),m=ma(a)==="y",{width:p,height:v}=l.floating;let g,b;f==="top"||f==="bottom"?(g=f,b=h===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(b=f,g=h==="end"?"top":"bottom");const C=v-d.top-d.bottom,w=p-d.left-d.right,y=pa(v-d[g],C),S=pa(p-d[b],w),E=!t.middlewareData.shift;let _=y,T=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=w),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(_=C),E&&!h){const O=lo(d.left,0),A=lo(d.right,0),M=lo(d.top,0),L=lo(d.bottom,0);m?T=p-2*(O!==0||A!==0?O+A:lo(d.left,d.right)):_=v-2*(M!==0||L!==0?M+L:lo(d.top,d.bottom))}await u({...t,availableWidth:T,availableHeight:_});const N=await r.getDimensions(i.floating);return p!==N.width||v!==N.height?{reset:{rects:!0}}:{}}}};function bc(){return typeof window!="undefined"}function ts(e){return nC(e)?(e.nodeName||"").toLowerCase():"#document"}function Po(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Va(e){var t;return(t=(nC(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function nC(e){return bc()?e instanceof Node||e instanceof Po(e).Node:!1}function ga(e){return bc()?e instanceof Element||e instanceof Po(e).Element:!1}function za(e){return bc()?e instanceof HTMLElement||e instanceof Po(e).HTMLElement:!1}function oC(e){return!bc()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof Po(e).ShadowRoot}const tH=new Set(["inline","contents"]);function wi(e){const{overflow:t,overflowX:n,overflowY:o,display:a}=ba(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!tH.has(a)}const nH=new Set(["table","td","th"]);function oH(e){return nH.has(ts(e))}const aH=[":popover-open",":modal"];function yc(e){return aH.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const lH=["transform","translate","scale","rotate","perspective"],rH=["transform","translate","scale","rotate","perspective","filter"],sH=["paint","layout","strict","content"];function tv(e){const t=nv(),n=ga(e)?ba(e):e;return lH.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||rH.some(o=>(n.willChange||"").includes(o))||sH.some(o=>(n.contain||"").includes(o))}function iH(e){let t=Ll(e);for(;za(t)&&!ns(t);){if(tv(t))return t;if(yc(t))return null;t=Ll(t)}return null}function nv(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const uH=new Set(["html","body","#document"]);function ns(e){return uH.has(ts(e))}function ba(e){return Po(e).getComputedStyle(e)}function wc(e){return ga(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ll(e){if(ts(e)==="html")return e;const t=e.assignedSlot||e.parentNode||oC(e)&&e.host||Va(e);return oC(t)?t.host:t}function aC(e){const t=Ll(e);return ns(t)?e.ownerDocument?e.ownerDocument.body:e.body:za(t)&&wi(t)?t:aC(t)}function Ci(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=aC(e),l=a===((o=e.ownerDocument)==null?void 0:o.body),r=Po(a);if(l){const i=ov(r);return t.concat(r,r.visualViewport||[],wi(a)?a:[],i&&n?Ci(i):[])}return t.concat(a,Ci(a,[],n))}function ov(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function lC(e){const t=ba(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const a=za(e),l=a?e.offsetWidth:n,r=a?e.offsetHeight:o,i=vc(n)!==l||vc(o)!==r;return i&&(n=l,o=r),{width:n,height:o,$:i}}function av(e){return ga(e)?e:e.contextElement}function os(e){const t=av(e);if(!za(t))return Fa(1);const n=t.getBoundingClientRect(),{width:o,height:a,$:l}=lC(t);let r=(l?vc(n.width):n.width)/o,i=(l?vc(n.height):n.height)/a;return(!r||!Number.isFinite(r))&&(r=1),(!i||!Number.isFinite(i))&&(i=1),{x:r,y:i}}const cH=Fa(0);function rC(e){const t=Po(e);return!nv()||!t.visualViewport?cH:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function dH(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Po(e)?!1:t}function ur(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),l=av(e);let r=Fa(1);t&&(o?ga(o)&&(r=os(o)):r=os(e));const i=dH(l,n,o)?rC(l):Fa(0);let u=(a.left+i.x)/r.x,c=(a.top+i.y)/r.y,d=a.width/r.x,f=a.height/r.y;if(l){const h=Po(l),m=o&&ga(o)?Po(o):o;let p=h,v=ov(p);for(;v&&o&&m!==p;){const g=os(v),b=v.getBoundingClientRect(),C=ba(v),w=b.left+(v.clientLeft+parseFloat(C.paddingLeft))*g.x,y=b.top+(v.clientTop+parseFloat(C.paddingTop))*g.y;u*=g.x,c*=g.y,d*=g.x,f*=g.y,u+=w,c+=y,p=Po(v),v=ov(p)}}return es({width:d,height:f,x:u,y:c})}function Cc(e,t){const n=wc(e).scrollLeft;return t?t.left+n:ur(Va(e)).left+n}function sC(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Cc(e,n),a=n.top+t.scrollTop;return{x:o,y:a}}function fH(e){let{elements:t,rect:n,offsetParent:o,strategy:a}=e;const l=a==="fixed",r=Va(o),i=t?yc(t.floating):!1;if(o===r||i&&l)return n;let u={scrollLeft:0,scrollTop:0},c=Fa(1);const d=Fa(0),f=za(o);if((f||!f&&!l)&&((ts(o)!=="body"||wi(r))&&(u=wc(o)),za(o))){const m=ur(o);c=os(o),d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}const h=r&&!f&&!l?sC(r,u):Fa(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-u.scrollTop*c.y+d.y+h.y}}function pH(e){return Array.from(e.getClientRects())}function vH(e){const t=Va(e),n=wc(e),o=e.ownerDocument.body,a=lo(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=lo(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+Cc(e);const i=-n.scrollTop;return ba(o).direction==="rtl"&&(r+=lo(t.clientWidth,o.clientWidth)-a),{width:a,height:l,x:r,y:i}}const iC=25;function hH(e,t){const n=Po(e),o=Va(e),a=n.visualViewport;let l=o.clientWidth,r=o.clientHeight,i=0,u=0;if(a){l=a.width,r=a.height;const d=nv();(!d||d&&t==="fixed")&&(i=a.offsetLeft,u=a.offsetTop)}const c=Cc(o);if(c<=0){const d=o.ownerDocument,f=d.body,h=getComputedStyle(f),m=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,p=Math.abs(o.clientWidth-f.clientWidth-m);p<=iC&&(l-=p)}else c<=iC&&(l+=c);return{width:l,height:r,x:i,y:u}}const mH=new Set(["absolute","fixed"]);function gH(e,t){const n=ur(e,!0,t==="fixed"),o=n.top+e.clientTop,a=n.left+e.clientLeft,l=za(e)?os(e):Fa(1),r=e.clientWidth*l.x,i=e.clientHeight*l.y,u=a*l.x,c=o*l.y;return{width:r,height:i,x:u,y:c}}function uC(e,t,n){let o;if(t==="viewport")o=hH(e,n);else if(t==="document")o=vH(Va(e));else if(ga(t))o=gH(t,n);else{const a=rC(e);o={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return es(o)}function cC(e,t){const n=Ll(e);return n===t||!ga(n)||ns(n)?!1:ba(n).position==="fixed"||cC(n,t)}function bH(e,t){const n=t.get(e);if(n)return n;let o=Ci(e,[],!1).filter(i=>ga(i)&&ts(i)!=="body"),a=null;const l=ba(e).position==="fixed";let r=l?Ll(e):e;for(;ga(r)&&!ns(r);){const i=ba(r),u=tv(r);!u&&i.position==="fixed"&&(a=null),(l?!u&&!a:!u&&i.position==="static"&&!!a&&mH.has(a.position)||wi(r)&&!u&&cC(e,r))?o=o.filter(d=>d!==r):a=i,r=Ll(r)}return t.set(e,o),o}function yH(e){let{element:t,boundary:n,rootBoundary:o,strategy:a}=e;const r=[...n==="clippingAncestors"?yc(t)?[]:bH(t,this._c):[].concat(n),o],i=r[0],u=r.reduce((c,d)=>{const f=uC(t,d,a);return c.top=lo(f.top,c.top),c.right=pa(f.right,c.right),c.bottom=pa(f.bottom,c.bottom),c.left=lo(f.left,c.left),c},uC(t,i,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function wH(e){const{width:t,height:n}=lC(e);return{width:t,height:n}}function CH(e,t,n){const o=za(t),a=Va(t),l=n==="fixed",r=ur(e,!0,l,t);let i={scrollLeft:0,scrollTop:0};const u=Fa(0);function c(){u.x=Cc(a)}if(o||!o&&!l)if((ts(t)!=="body"||wi(a))&&(i=wc(t)),o){const m=ur(t,!0,l,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}else a&&c();l&&!o&&a&&c();const d=a&&!o&&!l?sC(a,i):Fa(0),f=r.left+i.scrollLeft-u.x-d.x,h=r.top+i.scrollTop-u.y-d.y;return{x:f,y:h,width:r.width,height:r.height}}function lv(e){return ba(e).position==="static"}function dC(e,t){if(!za(e)||ba(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Va(e)===n&&(n=n.ownerDocument.body),n}function fC(e,t){const n=Po(e);if(yc(e))return n;if(!za(e)){let a=Ll(e);for(;a&&!ns(a);){if(ga(a)&&!lv(a))return a;a=Ll(a)}return n}let o=dC(e,t);for(;o&&oH(o)&&lv(o);)o=dC(o,t);return o&&ns(o)&&lv(o)&&!tv(o)?n:o||iH(e)||n}const SH=async function(e){const t=this.getOffsetParent||fC,n=this.getDimensions,o=await n(e.floating);return{reference:CH(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function kH(e){return ba(e).direction==="rtl"}const EH={convertOffsetParentRelativeRectToViewportRelativeRect:fH,getDocumentElement:Va,getClippingRect:yH,getOffsetParent:fC,getElementRects:SH,getClientRects:pH,getDimensions:wH,getScale:os,isElement:ga,isRTL:kH};function pC(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $H(e,t){let n=null,o;const a=Va(e);function l(){var i;clearTimeout(o),(i=n)==null||i.disconnect(),n=null}function r(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),l();const c=e.getBoundingClientRect(),{left:d,top:f,width:h,height:m}=c;if(i||t(),!h||!m)return;const p=hc(f),v=hc(a.clientWidth-(d+h)),g=hc(a.clientHeight-(f+m)),b=hc(d),w={rootMargin:-p+"px "+-v+"px "+-g+"px "+-b+"px",threshold:lo(0,pa(1,u))||1};let y=!0;function S(E){const _=E[0].intersectionRatio;if(_!==u){if(!y)return r();_?r(!1,_):o=setTimeout(()=>{r(!1,1e-7)},1e3)}_===1&&!pC(c,e.getBoundingClientRect())&&r(),y=!1}try{n=new IntersectionObserver(S,{...w,root:a.ownerDocument})}catch(E){n=new IntersectionObserver(S,w)}n.observe(e)}return r(!0),l}function _H(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,c=av(e),d=a||l?[...c?Ci(c):[],...Ci(t)]:[];d.forEach(b=>{a&&b.addEventListener("scroll",n,{passive:!0}),l&&b.addEventListener("resize",n)});const f=c&&i?$H(c,n):null;let h=-1,m=null;r&&(m=new ResizeObserver(b=>{let[C]=b;C&&C.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=m)==null||w.observe(t)})),n()}),c&&!u&&m.observe(c),m.observe(t));let p,v=u?ur(e):null;u&&g();function g(){const b=ur(e);v&&!pC(v,b)&&n(),v=b,p=requestAnimationFrame(g)}return n(),()=>{var b;d.forEach(C=>{a&&C.removeEventListener("scroll",n),l&&C.removeEventListener("resize",n)}),f==null||f(),(b=m)==null||b.disconnect(),m=null,u&&cancelAnimationFrame(p)}}const TH=ir,OH=Z5,RH=J5,xH=Y5,vC=W5,hC=(e,t,n)=>{const o=new Map,a={platform:EH,...n},l={...a.platform,_c:o};return H5(e,t,{...a,platform:l})},IH=he({}),MH=e=>{if(!Tt)return;if(!e)return e;const t=kn(e);return t||(Yn(e)?t:e)},NH=(e,t)=>{const n=e==null?void 0:e[t];return vn(n)?"":`${n}px`},AH=({middleware:e,placement:t,strategy:n})=>{const o=P(),a=P(),l=P(),r=P(),i=P({}),u={x:l,y:r,placement:t,strategy:n,middlewareData:i},c=async()=>{if(!Tt)return;const d=MH(o),f=kn(a);if(!d||!f)return;const h=await hC(d,f,{placement:s(t),strategy:s(n),middleware:s(e)});Wr(u).forEach(m=>{u[m].value=h[m]})};return ut(()=>{io(()=>{c()})}),{...u,update:c,referenceRef:o,contentRef:a}},PH=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const o=s(e);return o?vC({element:o,padding:t}).fn(n):{}}});function mC(e){let t;function n(){if(e.value==null)return;const{selectionStart:a,selectionEnd:l,value:r}=e.value;if(a==null||l==null)return;const i=r.slice(0,Math.max(0,a)),u=r.slice(Math.max(0,l));t={selectionStart:a,selectionEnd:l,value:r,beforeTxt:i,afterTxt:u}}function o(){if(e.value==null||t==null)return;const{value:a}=e.value,{beforeTxt:l,afterTxt:r,selectionStart:i}=t;if(l==null||r==null||i==null)return;let u=a.length;if(a.endsWith(r))u=a.length-r.length;else if(a.startsWith(l))u=l.length;else{const c=l[i-1],d=a.indexOf(c,i-1);d!==-1&&(u=d+1)}e.value.setSelectionRange(u,u)}return[n,o]}const LH=(e,t,n)=>No(e.subTree).filter(l=>{var r;return Jt(l)&&((r=l.type)==null?void 0:r.name)===t&&!!l.component}).map(l=>l.component.uid).map(l=>n[l]).filter(l=>!!l),Si=(e,t)=>{const n=Zt({}),o=Zt([]),a=new WeakMap,l=d=>{n.value[d.uid]=d,du(n),ut(()=>{const f=d.getVnode().el,h=f.parentNode;if(!a.has(h)){a.set(h,[]);const m=h.insertBefore.bind(h);h.insertBefore=(p,v)=>(a.get(h).some(b=>p===b||v===b)&&du(n),m(p,v))}a.get(h).push(f)})},r=d=>{delete n.value[d.uid],du(n);const f=d.getVnode().el,h=f.parentNode,m=a.get(h),p=m.indexOf(f);m.splice(p,1)},i=()=>{o.value=LH(e,t,n.value)},u=d=>d.render(),c=ae({setup(d,{slots:f}){return()=>(i(),f.default?Le(u,{render:f.default}):null)}});return{children:o,addChild:l,removeChild:r,ChildrenSorter:c}},Tn=ca({type:String,values:oa,required:!1}),DH={size:Tn},rv=Symbol("size"),sv=()=>{const e=Ee(rv,{});return k(()=>s(e.size)||"")};function Ha(e,{disabled:t,beforeFocus:n,afterFocus:o,beforeBlur:a,afterBlur:l}={}){const r=ct(),{emit:i}=r,u=Zt(),c=P(!1),d=m=>{const p=lt(n)?n(m):!1;s(t)||c.value||p||(c.value=!0,i("focus",m),o==null||o())},f=m=>{var p;const v=lt(a)?a(m):!1;s(t)||m.relatedTarget&&((p=u.value)==null?void 0:p.contains(m.relatedTarget))||v||(c.value=!1,i("blur",m),l==null||l())},h=m=>{var p,v;s(t)||Ns(m.target)||((p=u.value)==null?void 0:p.contains(document.activeElement))&&u.value!==document.activeElement||(v=e.value)==null||v.focus()};return ie([u,()=>s(t)],([m,p])=>{!m||(p?m.removeAttribute("tabindex"):m.setAttribute("tabindex","-1"))}),Mt(u,"focus",d,!0),Mt(u,"blur",f,!0),Mt(u,"click",h,!0),{isFocused:c,wrapperRef:u,handleFocus:d,handleBlur:f}}function as({afterComposition:e,emit:t}){const n=P(!1),o=i=>{t==null||t("compositionstart",i),n.value=!0},a=i=>{var u;t==null||t("compositionupdate",i);const c=(u=i.target)==null?void 0:u.value,d=c[c.length-1]||"";n.value=!uz(d)},l=i=>{t==null||t("compositionend",i),n.value&&(n.value=!1,ke(()=>e(i)))};return{isComposing:n,handleComposition:i=>{i.type==="compositionend"?l(i):a(i)},handleCompositionStart:o,handleCompositionUpdate:a,handleCompositionEnd:l}}const iv=Symbol("emptyValuesContextKey"),BH="use-empty-values",gC=["",void 0,null],bC=void 0,Dl=he({emptyValues:Array,valueOnClear:{type:q([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=lt(e)?e():e,$e(e)?e.every(t=>!t):!e)}}),ls=(e,t)=>{const n=ct()?Ee(iv,P({})):P({}),o=k(()=>e.emptyValues||n.value.emptyValues||gC),a=k(()=>lt(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:lt(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:bC),l=r=>{let i=!0;return $e(r)?i=o.value.some(u=>un(r,u)):i=o.value.includes(r),i};return l(a.value),{emptyValues:o,valueOnClear:a,isEmptyValue:l}},yC=he({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Gn=e=>xa(yC,e),uv=Symbol(),Sc=P();function cr(e,t=void 0){const n=ct()?Ee(uv,Sc):Sc;return e?k(()=>{var o,a;return(a=(o=n.value)==null?void 0:o[e])!=null?a:t}):n}function ki(e,t){const n=cr(),o=fe(e,k(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||jr})),a=wt(k(()=>{var i;return(i=n.value)==null?void 0:i.locale})),l=Qr(k(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||Up})),r=k(()=>{var i;return s(t)||((i=n.value)==null?void 0:i.size)||""});return kc(k(()=>s(n)||{})),{ns:o,locale:a,zIndex:l,size:r}}const kc=(e,t,n=!1)=>{var o;const a=!!ct(),l=a?cr():void 0,r=(o=t==null?void 0:t.provide)!=null?o:a?St:void 0;if(!r)return;const i=k(()=>{const u=s(e);return l!=null&&l.value?FH(l.value,u):u});return r(uv,i),r(Ip,k(()=>i.value.locale)),r(Mp,k(()=>i.value.namespace)),r(qp,k(()=>i.value.zIndex)),r(rv,{size:k(()=>i.value.size||"")}),r(iv,k(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(n||!Sc.value)&&(Sc.value=i.value),i},FH=(e,t)=>{const n=[...new Set([...Wr(e),...Wr(t)])],o={};for(const a of n)o[a]=t[a]!==void 0?t[a]:e[a];return o},wC=he({a11y:{type:Boolean,default:!0},locale:{type:q(Object)},size:Tn,button:{type:q(Object)},card:{type:q(Object)},dialog:{type:q(Object)},link:{type:q(Object)},experimentalFeatures:{type:q(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:q(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Dl}),qn={placement:"top"},VH=ae({name:"ElConfigProvider",props:wC,setup(e,{slots:t}){const n=kc(e);return ie(()=>e.message,o=>{var a,l;Object.assign(qn,(l=(a=n==null?void 0:n.value)==null?void 0:a.message)!=null?l:{},o!=null?o:{})},{immediate:!0,deep:!0}),()=>ee(t,"default",{config:n==null?void 0:n.value})}}),CC=Qe(VH),zH="0.0.20260108",SC=(e=[])=>({version:zH,install:(n,o)=>{n[Yd]||(n[Yd]=!0,e.forEach(a=>n.use(a)),o&&kc(o,n,!0))}}),Ei=he({to:{type:q([String,Object]),required:!0},disabled:Boolean});var ye=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n};const HH=ae({__name:"teleport",props:Ei,setup(e){return(t,n)=>t.disabled?ee(t.$slots,"default",{key:0}):($(),oe(Mg,{key:1,to:t.to},[ee(t.$slots,"default")],8,["to"]))}});var WH=ye(HH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/teleport/src/teleport.vue"]]);const KH=Qe(WH);var rs=KH;const kC=he({zIndex:{type:q([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"},teleported:Boolean,appendTo:{type:Ei.to.type,default:"body"}}),EC={scroll:({scrollTop:e,fixed:t})=>xe(e)&&zt(t),[ht]:e=>zt(e)},$C="ElAffix",jH=ae({name:$C,__name:"affix",props:kC,emits:EC,setup(e,{expose:t,emit:n}){const o=e,a=n,l=fe("affix"),r=Zt(),i=Zt(),u=Zt(),{height:c}=Jd(),{height:d,width:f,top:h,bottom:m,left:p,update:v}=Zg(i,{windowScroll:!1}),g=Zg(r),b=P(!1),C=P(0),w=P(0),y=k(()=>!o.teleported||!b.value),S=k(()=>({height:b.value?`${d.value}px`:"",width:b.value?`${f.value}px`:""})),E=k(()=>{if(!b.value)return{};const O=cn(o.offset);return{height:`${d.value}px`,width:`${f.value}px`,top:o.position==="top"?O:"",bottom:o.position==="bottom"?O:"",left:o.teleported?`${p.value}px`:"",transform:w.value?`translateY(${w.value}px)`:"",zIndex:o.zIndex}}),_=()=>{if(!u.value)return;C.value=u.value instanceof Window?document.documentElement.scrollTop:u.value.scrollTop||0;const{position:O,target:A,offset:M}=o,L=M+d.value;if(O==="top")if(A){const H=g.bottom.value-L;b.value=M>h.value&&g.bottom.value>0,w.value=H<0?H:0}else b.value=M>h.value;else if(A){const H=c.value-g.top.value-L;b.value=c.value-M<m.value&&c.value>g.top.value,w.value=H<0?-H:0}else b.value=c.value-M<m.value},T=async()=>{if(!b.value){v();return}b.value=!1,await ke(),v(),b.value=!0},N=async()=>{v(),await ke(),a("scroll",{scrollTop:C.value,fixed:b.value})};return ie(b,O=>a(ht,O)),ut(()=>{var O;o.target?(r.value=(O=document.querySelector(o.target))!=null?O:void 0,r.value||_n($C,`Target does not exist: ${o.target}`)):r.value=document.documentElement,u.value=kp(i.value,!0),v()}),Mt(u,"scroll",N),io(_),t({update:_,updateRoot:T}),(O,A)=>($(),F("div",{ref_key:"root",ref:i,class:x(s(l).b()),style:Ie(S.value)},[Z(s(rs),{disabled:y.value,to:O.appendTo},{default:Q(()=>[W("div",{class:x({[s(l).m("fixed")]:b.value}),style:Ie(E.value)},[ee(O.$slots,"default")],6)]),_:3},8,["disabled","to"])],6))}});var YH=ye(jH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const _C=Qe(YH),TC=he({size:{type:q([Number,String])},color:{type:String}}),UH=ae({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:TC,setup(e){const t=e,n=fe("icon"),o=k(()=>{const{size:a,color:l}=t,r=cn(a);return!r&&!l?{}:{fontSize:r,"--color":l}});return(a,l)=>($(),F("i",rt({class:s(n).b(),style:o.value},a.$attrs),[ee(a.$slots,"default")],16))}});var GH=ye(UH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const _e=Qe(GH),OC=["light","dark"],RC=he({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Wr(Al),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:OC,default:"light"},showAfter:Number,hideAfter:Number,autoClose:Number}),xC={close:e=>e instanceof MouseEvent},qH=ae({name:"ElAlert",__name:"alert",props:RC,emits:xC,setup(e,{emit:t}){const{Close:n}=Tp,o=e,a=t,l=mn(),r=fe("alert"),i=P(!0),u=k(()=>Al[o.type]),c=k(()=>{var f;if(o.description)return!0;const h=(f=l.default)==null?void 0:f.call(l);return h?No(h).some(p=>!Z1(p)):!1}),d=f=>{i.value=!1,a("close",f)};return o.showAfter||o.hideAfter||o.autoClose,(f,h)=>($(),oe(Wn,{name:s(r).b("fade"),persisted:""},{default:Q(()=>[tt(W("div",{class:x([s(r).b(),s(r).m(f.type),s(r).is("center",f.center),s(r).is(f.effect)]),role:"alert"},[f.showIcon&&(f.$slots.icon||u.value)?($(),oe(s(_e),{key:0,class:x([s(r).e("icon"),s(r).is("big",c.value)])},{default:Q(()=>[ee(f.$slots,"icon",{},()=>[($(),oe(at(u.value)))])]),_:3},8,["class"])):te("v-if",!0),W("div",{class:x(s(r).e("content"))},[f.title||f.$slots.title?($(),F("span",{key:0,class:x([s(r).e("title"),{"with-description":c.value}])},[ee(f.$slots,"title",{},()=>[bt(ge(f.title),1)])],2)):te("v-if",!0),c.value?($(),F("p",{key:1,class:x(s(r).e("description"))},[ee(f.$slots,"default",{},()=>[bt(ge(f.description),1)])],2)):te("v-if",!0),f.closable?($(),F(Be,{key:2},[f.closeText?($(),F("div",{key:0,class:x([s(r).e("close-btn"),s(r).is("customed")]),onClick:d},ge(f.closeText),3)):($(),oe(s(_e),{key:1,class:x(s(r).e("close-btn")),onClick:d},{default:Q(()=>[Z(s(n))]),_:1},8,["class"]))],64)):te("v-if",!0)],2)],2),[[xt,i.value]])]),_:3},8,["name"]))}});var XH=ye(qH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const IC=Qe(XH),Bl=Symbol("formContextKey"),ya=Symbol("formItemContextKey"),wn=(e,t={})=>{const n=P(void 0),o=t.prop?n:Ap("size"),a=t.global?n:sv(),l=t.form?{size:void 0}:Ee(Bl,void 0),r=t.formItem?{size:void 0}:Ee(ya,void 0);return k(()=>o.value||s(e)||(r==null?void 0:r.size)||(l==null?void 0:l.size)||a.value||"")},on=e=>{const t=Ap("disabled"),n=Ee(Bl,void 0);return k(()=>{var o,a,l;return(l=(a=(o=t.value)!=null?o:s(e))!=null?a:n==null?void 0:n.disabled)!=null?l:!1})},ZH=wn,JH=on,Pn=()=>{const e=Ee(Bl,void 0),t=Ee(ya,void 0);return{form:e,formItem:t}},Eo=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=P(!1)),o||(o=P(!1));const a=ct(),l=()=>{let c=a==null?void 0:a.parent;for(;c;){if(c.type.name==="ElFormItem")return!1;if(c.type.name==="ElLabelWrap")return!0;c=c.parent}return!1},r=P();let i;const u=k(()=>{var c;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((c=t.inputIds)==null?void 0:c.length)<=1)});return ut(()=>{i=ie([Lt(e,"id"),n],([c,d])=>{const f=c!=null?c:d?void 0:Vn().value;f!==r.value&&((t==null?void 0:t.removeInputId)&&!l()&&(r.value&&t.removeInputId(r.value),!(o!=null&&o.value)&&!d&&f&&t.addInputId(f)),r.value=f)},{immediate:!0})}),Ms(()=>{i&&i(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:u,inputId:r}},MC=he({size:{type:String,values:oa},disabled:Boolean}),NC=he({...MC,model:Object,rules:{type:q(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:q([Object,Boolean]),default:!0}}),AC={validate:(e,t,n)=>($e(e)||He(e))&&zt(t)&&He(n)};function QH(){const e=P([]),t=k(()=>{if(!e.value.length)return"0";const l=Math.max(...e.value);return l?`${l}px`:""});function n(l){const r=e.value.indexOf(l);return r===-1&&t.value,r}function o(l,r){if(l&&r){const i=n(r);e.value.splice(i,1,l)}else l&&e.value.push(l)}function a(l){const r=n(l);r>-1&&e.value.splice(r,1)}return{autoLabelWidth:t,registerLabelWidth:o,deregisterLabelWidth:a}}const Ec=(e,t)=>{const n=An(t).map(o=>$e(o)?o.join("."):o);return n.length>0?e.filter(o=>o.propString&&n.includes(o.propString)):e},eW="ElForm",tW=ae({name:eW,__name:"form",props:NC,emits:AC,setup(e,{expose:t,emit:n}){const o=e,a=n,l=P(),r=Pt([]),i=wn(),u=fe("form"),c=k(()=>{const{labelPosition:E,inline:_}=o;return[u.b(),u.m(i.value||"default"),{[u.m(`label-${E}`)]:E,[u.m("inline")]:_}]}),d=E=>Ec(r,[E])[0],f=E=>{r.push(E)},h=E=>{E.prop&&r.splice(r.indexOf(E),1)},m=E=>{!o.model||!E||r.forEach(_=>{if(_.prop&&By(E,_.prop)){const T=Kr(E,_.prop).value;_.setInitialValue(T)}})},p=(E=[])=>{!o.model||Ec(r,E).forEach(_=>_.resetField())},v=(E=[])=>{Ec(r,E).forEach(_=>_.clearValidate())},g=k(()=>!!o.model),b=E=>{if(r.length===0)return[];const _=Ec(r,E);return _.length?_:[]},C=async E=>y(void 0,E),w=async(E=[])=>{if(!g.value)return!1;const _=b(E);if(_.length===0)return!0;let T={};for(const N of _)try{await N.validate(""),N.validateState==="error"&&!N.error&&N.resetField()}catch(O){T={...T,...O}}return Object.keys(T).length===0?!0:Promise.reject(T)},y=async(E=[],_)=>{let T=!1;const N=!lt(_);try{return T=await w(E),T===!0&&await(_==null?void 0:_(T)),T}catch(O){if(O instanceof Error)throw O;const A=O;if(o.scrollToError&&l.value){const M=l.value.querySelector(`.${u.b()}-item.is-error`);M==null||M.scrollIntoView(o.scrollIntoViewOptions)}return!T&&await(_==null?void 0:_(!1,A)),N&&Promise.reject(A)}},S=E=>{var _;const T=d(E);T&&((_=T.$el)==null||_.scrollIntoView(o.scrollIntoViewOptions))};return ie(()=>o.rules,()=>{o.validateOnRuleChange&&C().catch(E=>void 0)},{deep:!0,flush:"post"}),St(Bl,Pt({...Mn(o),emit:a,resetFields:p,clearValidate:v,validateField:y,getField:d,addField:f,removeField:h,setInitialValues:m,...QH()})),t({validate:C,validateField:y,resetFields:p,clearValidate:v,scrollToField:S,getField:d,fields:r,setInitialValues:m}),(E,_)=>($(),F("form",{ref_key:"formRef",ref:l,class:x(c.value)},[ee(E.$slots,"default")],2))}});var nW=ye(tW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},dr.apply(this,arguments)}function oW(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$i(e,t)}function cv(e){return cv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cv(e)}function $i(e,t){return $i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,a){return o.__proto__=a,o},$i(e,t)}function aW(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function $c(e,t,n){return aW()?$c=Reflect.construct.bind():$c=function(a,l,r){var i=[null];i.push.apply(i,l);var u=Function.bind.apply(a,i),c=new u;return r&&$i(c,r.prototype),c},$c.apply(null,arguments)}function lW(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function dv(e){var t=typeof Map=="function"?new Map:void 0;return dv=function(o){if(o===null||!lW(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(o))return t.get(o);t.set(o,a)}function a(){return $c(o,arguments,cv(this).constructor)}return a.prototype=Object.create(o.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),$i(a,o)},dv(e)}var rW=/%[sdj%]/g,sW=function(){};typeof process!="undefined"&&process.env;function fv(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var o=n.field;t[o]=t[o]||[],t[o].push(n)}),t}function Lo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var a=0,l=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var r=e.replace(rW,function(i){if(i==="%%")return"%";if(a>=l)return i;switch(i){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch(u){return"[Circular]"}break;default:return i}});return r}return e}function iW(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function zn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||iW(t)&&typeof e=="string"&&!e)}function uW(e,t,n){var o=[],a=0,l=e.length;function r(i){o.push.apply(o,i||[]),a++,a===l&&n(o)}e.forEach(function(i){t(i,r)})}function PC(e,t,n){var o=0,a=e.length;function l(r){if(r&&r.length){n(r);return}var i=o;o=o+1,i<a?t(e[i],l):n([])}l([])}function cW(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var LC=function(e){oW(t,e);function t(n,o){var a;return a=e.call(this,"Async Validation Error")||this,a.errors=n,a.fields=o,a}return t}(dv(Error));function dW(e,t,n,o,a){if(t.first){var l=new Promise(function(h,m){var p=function(b){return o(b),b.length?m(new LC(b,fv(b))):h(a)},v=cW(e);PC(v,n,p)});return l.catch(function(h){return h}),l}var r=t.firstFields===!0?Object.keys(e):t.firstFields||[],i=Object.keys(e),u=i.length,c=0,d=[],f=new Promise(function(h,m){var p=function(g){if(d.push.apply(d,g),c++,c===u)return o(d),d.length?m(new LC(d,fv(d))):h(a)};i.length||(o(d),h(a)),i.forEach(function(v){var g=e[v];r.indexOf(v)!==-1?PC(g,n,p):uW(g,n,p)})});return f.catch(function(h){return h}),f}function fW(e){return!!(e&&e.message!==void 0)}function pW(e,t){for(var n=e,o=0;o<t.length;o++){if(n==null)return n;n=n[t[o]]}return n}function DC(e,t){return function(n){var o;return e.fullFields?o=pW(t,e.fullFields):o=t[n.field||e.fullField],fW(n)?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:typeof n=="function"?n():n,fieldValue:o,field:n.field||e.fullField}}}function BC(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];typeof o=="object"&&typeof e[n]=="object"?e[n]=dr({},e[n],o):e[n]=o}}return e}var FC=function(t,n,o,a,l,r){t.required&&(!o.hasOwnProperty(t.field)||zn(n,r||t.type))&&a.push(Lo(l.messages.required,t.fullField))},vW=function(t,n,o,a,l){(/^\s+$/.test(n)||n==="")&&a.push(Lo(l.messages.whitespace,t.fullField))},_c,hW=function(){if(_c)return _c;var e="[a-fA-F\\d:]",t=function(y){return y&&y.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",a=(`
32
+ */const _t=e=>e===void 0,zt=e=>typeof e=="boolean",xe=e=>typeof e=="number",ho=e=>!e&&e!==0||$e(e)&&e.length===0||Rt(e)&&!Object.keys(e).length,wo=e=>typeof Element=="undefined"?!1:e instanceof Element,Co=e=>vn(e),KF=e=>He(e)?!Number.isNaN(Number(e)):!1,si=e=>e===window,Ma=e=>Tt?window.requestAnimationFrame(e):setTimeout(e,16),sl=e=>Tt?window.cancelAnimationFrame(e):clearTimeout(e),Sp=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Il=e=>PR(e),Wr=e=>Object.keys(e),A1=e=>Object.entries(e),Kr=(e,t,n)=>({get value(){return gn(e,t,n)},set value(o){m1(e,t,o)}});class jF extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function _n(e,t){throw new jF(`[${e}] ${t}`)}function dae(e,t){}const P1=(e="")=>e.split(" ").filter(t=>!!t.trim()),Na=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Yo=(e,t)=>{!e||!t.trim()||e.classList.add(...P1(t))},no=(e,t)=>{!e||!t.trim()||e.classList.remove(...P1(t))},il=(e,t)=>{var n;if(!Tt||!e||!t)return"";let o=of(t);o==="float"&&(o="cssFloat");try{const a=e.style[o];if(a)return a;const l=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return l?l[o]:""}catch(a){return e.style[o]}},L1=(e,t,n)=>{if(!(!e||!t))if(Rt(t))A1(t).forEach(([o,a])=>L1(e,o,a));else{const o=of(t);e.style[o]=n}};function cn(e,t="px"){if(!e&&e!==0)return"";if(xe(e)||KF(e))return`${e}${t}`;if(He(e))return e}const YF=(e,t)=>{if(!Tt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],o=il(e,n);return["scroll","auto","overlay"].some(a=>o.includes(a))},kp=(e,t)=>{if(!Tt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(YF(n,t))return n;n=n.parentNode}return n};let ec;const D1=e=>{var t;if(!Tt)return 0;if(ec!==void 0)return ec;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const o=n.offsetWidth;n.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",n.appendChild(a);const l=a.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),ec=o-l,ec};function Ep(e,t){if(!Tt)return;if(!t){e.scrollTop=0;return}const n=[];let o=t.offsetParent;for(;o!==null&&e!==o&&e.contains(o);)n.push(o),o=o.offsetParent;const a=t.offsetTop+n.reduce((u,c)=>u+c.offsetTop,0),l=a+t.offsetHeight,r=e.scrollTop,i=r+e.clientHeight;a<r?e.scrollTop=a:l>i&&(e.scrollTop=l-e.clientHeight)}function UF(e,t,n,o,a){const l=Date.now();let r;const i=()=>{const c=Date.now()-l,d=RR(c>o?o:c,t,n,o);si(e)?e.scrollTo(window.pageXOffset,d):e.scrollTop=d,c<o?r=Ma(i):lt(a)&&a()};return i(),()=>{r&&sl(r)}}const B1=(e,t)=>si(t)?e.ownerDocument.documentElement:t,F1=e=>si(e)?window.scrollY:e.scrollTop,tc=e=>{if(!Tt||e==="")return null;if(He(e))try{return document.querySelector(e)}catch(t){return null}return e};let V1=Tt?document.body:void 0;function GF(e){const t=document.createElement("div");return e!==void 0&&t.setAttribute("id",e),V1&&V1.appendChild(t),t}function qF(e){e.remove()}var XF=ae({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),Aa=XF,ZF=ae({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),ul=ZF,JF=ae({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),oo=JF,QF=ae({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),nc=QF,eV=ae({name:"Back",__name:"back",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),W("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),tV=eV,nV=ae({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),oV=nV,aV=ae({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),z1=aV,lV=ae({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),rV=lV,sV=ae({name:"Check",__name:"check",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),ii=sV,iV=ae({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),uV=iV,cV=ae({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),W("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),$p=cV,dV=ae({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),_p=dV,fV=ae({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),W("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),cl=fV,pV=ae({name:"Clock",__name:"clock",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),W("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),W("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),H1=pV,vV=ae({name:"Close",__name:"close",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Uo=vV,hV=ae({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672z"})]))}}),Ml=hV,mV=ae({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"})]))}}),Nl=mV,gV=ae({name:"Delete",__name:"delete",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),bV=gV,yV=ae({name:"Document",__name:"document",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),wV=yV,CV=ae({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),SV=CV,kV=ae({name:"Hide",__name:"hide",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),W("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),EV=kV,$V=ae({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),ui=$V,_V=ae({name:"Loading",__name:"loading",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),Pa=_V,TV=ae({name:"Minus",__name:"minus",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),OV=TV,RV=ae({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),W1=RV,xV=ae({name:"More",__name:"more",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),IV=xV,MV=ae({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),NV=MV,AV=ae({name:"Plus",__name:"plus",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),K1=AV,PV=ae({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"})]))}}),LV=PV,DV=ae({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),BV=DV,FV=ae({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88"})]))}}),VV=FV,zV=ae({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"})]))}}),HV=zV,WV=ae({name:"Search",__name:"search",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),KV=WV,jV=ae({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),YV=jV,UV=ae({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),GV=UV,qV=ae({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M313.6 924.48a70.4 70.4 0 0 1-74.152-5.365 70.4 70.4 0 0 1-27.992-68.875l37.888-220.928L88.96 472.96a70.4 70.4 0 0 1 3.788-104.225A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 100.246-28.595 70.4 70.4 0 0 1 25.962 28.595l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),oc=qV,XV=ae({name:"Star",__name:"star",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),ZV=XV,JV=ae({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),j1=JV,QV=ae({name:"View",__name:"view",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),ez=QV,tz=ae({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),ac=tz,nz=ae({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),Y1=nz,oz=ae({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),az=oz;/*! Element Plus Icons Vue v2.3.2 */const U1="__epPropKey",q=e=>e,lz=e=>Rt(e)&&!!e[U1],ca=(e,t)=>{if(!Rt(e)||lz(e))return e;const{values:n,required:o,default:a,type:l,validator:r}=e,u={type:l,required:!!o,validator:n||r?c=>{let d=!1,f=[];if(n&&(f=Array.from(n),Bn(e,"default")&&f.push(a),d||(d=f.includes(c))),r&&(d||(d=r(c))),!d&&f.length>0){const h=[...new Set(f)].map(m=>JSON.stringify(m)).join(", ");tR(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(c)}.`)}return d}:void 0,[U1]:!0};return Bn(e,"default")&&(u.default=a),u},he=e=>Fr(Object.entries(e).map(([t,n])=>[t,ca(n,t)])),Ht=q([String,Object,Function]),G1={Close:Uo},Tp={Close:Uo,SuccessFilled:j1,InfoFilled:ui,WarningFilled:ac,CircleCloseFilled:_p},Al={primary:ui,success:j1,warning:ac,error:_p,info:ui},lc={validating:Pa,success:$p,error:cl},Qe=(e,t)=>{if(e.install=n=>{for(const o of[e,...Object.values(t!=null?t:{})])n.component(o.name,o)},t)for(const[n,o]of Object.entries(t))e[n]=o;return e},q1=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),rz=(e,t)=>(e.install=n=>{n.directive(t,e)},e),sn=e=>(e.install=Gt,e),Op=(...e)=>t=>{e.forEach(n=>{n.value=t})},X1=e=>["",...oa].includes(e);var Go=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Go||{});function Rp(e){return Jt(e)&&e.type===Be}function Z1(e){return Jt(e)&&e.type===Ga}function sz(e){return Jt(e)&&!Rp(e)&&!Z1(e)}const iz=e=>{if(!Jt(e))return{};const t=e.props||{},n=(Jt(e.type)?e.type.props:void 0)||{},o={};return Object.keys(n).forEach(a=>{Bn(n[a],"default")&&(o[a]=n[a].default)}),Object.keys(t).forEach(a=>{o[of(a)]=t[a]}),o},No=e=>{const t=$e(e)?e:[e],n=[];return t.forEach(o=>{var a;$e(o)?n.push(...No(o)):Jt(o)&&((a=o.component)==null?void 0:a.subTree)?n.push(o,...No(o.component.subTree)):Jt(o)&&$e(o.children)?n.push(...No(o.children)):Jt(o)&&o.shapeFlag===2?n.push(...No(o.type())):n.push(o)}),n},J1=e=>[...new Set(e)],ci=e=>$e(e)?e[0]:e,ao=e=>!e&&e!==0?[]:$e(e)?e:[e],uz=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),dn=e=>e;function cz(e){let t=0;const n=(...o)=>{t&&sl(t),t=Ma(()=>{e(...o),t=0})};return n.cancel=()=>{sl(t),t=0},n}const dz=["class","style"],fz=/^on[A-Z]/,di=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=k(()=>((n==null?void 0:n.value)||[]).concat(dz)),a=ct();return a?k(()=>{var l;return Fr(Object.entries((l=a.proxy)==null?void 0:l.$attrs).filter(([r])=>!o.value.includes(r)&&!(t&&fz.test(r))))}):k(()=>({}))};function rc(){const e=Zt(),t=P(0),n=k(()=>({minWidth:`${Math.max(t.value,Ps)}px`}));return Qt(e,()=>{var a,l;t.value=(l=(a=e.value)==null?void 0:a.getBoundingClientRect().width)!=null?l:0}),{calculatorRef:e,calculatorWidth:t,inputStyle:n}}const da=({from:e,replacement:t,scope:n,version:o,ref:a,type:l="API"},r)=>{ie(()=>s(r),i=>{},{immediate:!0})},xp=(e,t,n,o)=>{const a={offsetX:0,offsetY:0},l=P(!1),r=(h,m)=>{if(e.value){const{offsetX:p,offsetY:v}=a,g=e.value.getBoundingClientRect(),b=g.left,C=g.top,w=g.width,y=g.height,S=document.documentElement.clientWidth,E=document.documentElement.clientHeight,_=-b+p,T=-C+v,N=S-b-w+p,O=E-C-(y<E?y:0)+v;o!=null&&o.value||(h=Math.min(Math.max(h,_),N),m=Math.min(Math.max(m,T),O)),a.offsetX=h,a.offsetY=m,e.value.style.transform=`translate(${cn(h)}, ${cn(m)})`}},i=h=>{const m=h.clientX,p=h.clientY,{offsetX:v,offsetY:g}=a,b=w=>{l.value||(l.value=!0);const y=v+w.clientX-m,S=g+w.clientY-p;r(y,S)},C=()=>{l.value=!1,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",C)};document.addEventListener("mousemove",b),document.addEventListener("mouseup",C)},u=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",i),window.addEventListener("resize",f))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",i),window.removeEventListener("resize",f))},d=()=>{a.offsetX=0,a.offsetY=0,e.value&&(e.value.style.transform="")},f=()=>{const{offsetX:h,offsetY:m}=a;r(h,m)};return ut(()=>{io(()=>{n.value?u():c()})}),Bt(()=>{c()}),{isDragging:l,resetPosition:d,updatePosition:f}},pz=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}});var vz={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const Q1=e=>(t,n)=>ew(t,n,s(e)),ew=(e,t,n)=>gn(n,e,e).replace(/\{(\w+)\}/g,(o,a)=>{var l;return`${(l=t==null?void 0:t[a])!=null?l:`{${a}}`}`}),tw=e=>{const t=k(()=>s(e).name),n=Yn(e)?e:P(e);return{lang:t,locale:n,t:Q1(e)}},Ip=Symbol("localeContextKey"),wt=e=>{const t=e||Ee(Ip,P());return tw(k(()=>t.value||vz))},jr="el",hz="is-",rr=(e,t,n,o,a)=>{let l=`${e}-${t}`;return n&&(l+=`-${n}`),o&&(l+=`__${o}`),a&&(l+=`--${a}`),l},Mp=Symbol("namespaceContextKey"),sc=e=>{const t=e||(ct()?Ee(Mp,P(jr)):P(jr));return k(()=>s(t)||jr)},fe=(e,t)=>{const n=sc(t);return{namespace:n,b:(v="")=>rr(n.value,e,v,"",""),e:v=>v?rr(n.value,e,"",v,""):"",m:v=>v?rr(n.value,e,"","",v):"",be:(v,g)=>v&&g?rr(n.value,e,v,g,""):"",em:(v,g)=>v&&g?rr(n.value,e,"",v,g):"",bm:(v,g)=>v&&g?rr(n.value,e,v,"",g):"",bem:(v,g,b)=>v&&g&&b?rr(n.value,e,v,g,b):"",is:(v,...g)=>{const b=g.length>=1?g[0]:!0;return v&&b?`${hz}${v}`:""},cssVar:v=>{const g={};for(const b in v)v[b]&&(g[`--${n.value}-${b}`]=v[b]);return g},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const g={};for(const b in v)v[b]&&(g[`--${n.value}-${e}-${b}`]=v[b]);return g},cssVarBlockName:v=>`--${n.value}-${e}-${v}`}},fi=(e,t={})=>{Yn(e)||_n("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||fe("popup"),o=k(()=>n.bm("parent","hidden"));let a=0,l=!1,r="0",i=!1;const u=()=>{i||(i=!0,setTimeout(()=>{typeof document!="undefined"&&l&&document&&(document.body.style.width=r,no(document.body,o.value))},200))};ie(e,c=>{if(!c){u();return}i=!1,l=!Na(document.body,o.value),l&&(r=document.body.style.width,Yo(document.body,o.value)),a=D1(n.namespace.value);const d=document.documentElement.clientHeight<document.body.scrollHeight,f=il(document.body,"overflowY");a>0&&(d||f==="scroll")&&l&&(document.body.style.width=`calc(100% - ${a}px)`)}),Ig(()=>u())},Yr=[],mz=e=>{if(Yr.length===0)return;Wt(e)===pe.esc&&(e.stopPropagation(),Yr[Yr.length-1].handleClose())},gz=(e,t)=>{ie(t,n=>{n?Yr.push(e):Yr.splice(Yr.indexOf(e),1)})};Tt&&Mt(document,"keydown",mz);const bz=ca({type:q(Boolean),default:null}),yz=ca({type:q(Function)}),Np=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],a={[e]:bz,[n]:yz};return{useModelToggle:({indicator:r,toggleReason:i,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:d,onHide:f})=>{const h=ct(),{emit:m}=h,p=h.props,v=k(()=>lt(p[n])),g=k(()=>p[e]===null),b=_=>{r.value!==!0&&(r.value=!0,i&&(i.value=_),lt(d)&&d(_))},C=_=>{r.value!==!1&&(r.value=!1,i&&(i.value=_),lt(f)&&f(_))},w=_=>{if(p.disabled===!0||lt(c)&&!c())return;const T=v.value&&Tt;T&&m(t,!0),(g.value||!T)&&b(_)},y=_=>{if(p.disabled===!0||!Tt)return;const T=v.value&&Tt;T&&m(t,!1),(g.value||!T)&&C(_)},S=_=>{!zt(_)||(p.disabled&&_?v.value&&m(t,!1):r.value!==_&&(_?b():C()))},E=()=>{r.value?y():w()};return ie(()=>p[e],S),u&&h.appContext.config.globalProperties.$route!==void 0&&ie(()=>({...h.proxy.$route}),()=>{u.value&&r.value&&y()}),ut(()=>{S(p[e])}),{hide:y,show:w,toggle:E,hasUpdateHandler:v}},useModelToggleProps:a,useModelToggleEmits:o}},{useModelToggle:wz,useModelToggleProps:Cz,useModelToggleEmits:Sz}=Np("modelValue"),kz=(e,t,n)=>{const o=l=>{n(l)&&l.stopImmediatePropagation()};let a;ie(()=>e.value,l=>{l?a=Mt(document,t,o,!0):a==null||a()},{immediate:!0})},Ap=e=>{const t=ct();return k(()=>{var n,o;return(o=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:o[e]})};var So="top",qo="bottom",Xo="right",ko="left",Pp="auto",pi=[So,qo,Xo,ko],Ur="start",vi="end",Ez="clippingParents",nw="viewport",hi="popper",$z="reference",ow=pi.reduce(function(e,t){return e.concat([t+"-"+Ur,t+"-"+vi])},[]),La=[].concat(pi,[Pp]).reduce(function(e,t){return e.concat([t,t+"-"+Ur,t+"-"+vi])},[]),_z="beforeRead",Tz="read",Oz="afterRead",Rz="beforeMain",xz="main",Iz="afterMain",Mz="beforeWrite",Nz="write",Az="afterWrite",Pz=[_z,Tz,Oz,Rz,xz,Iz,Mz,Nz,Az];function Da(e){return e?(e.nodeName||"").toLowerCase():null}function fa(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gr(e){var t=fa(e).Element;return e instanceof t||e instanceof Element}function Zo(e){var t=fa(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Lp(e){if(typeof ShadowRoot=="undefined")return!1;var t=fa(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Lz(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},a=t.attributes[n]||{},l=t.elements[n];!Zo(l)||!Da(l)||(Object.assign(l.style,o),Object.keys(a).forEach(function(r){var i=a[r];i===!1?l.removeAttribute(r):l.setAttribute(r,i===!0?"":i)}))})}function Dz(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var a=t.elements[o],l=t.attributes[o]||{},r=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),i=r.reduce(function(u,c){return u[c]="",u},{});!Zo(a)||!Da(a)||(Object.assign(a.style,i),Object.keys(l).forEach(function(u){a.removeAttribute(u)}))})}}var aw={name:"applyStyles",enabled:!0,phase:"write",fn:Lz,effect:Dz,requires:["computeStyles"]};function Ba(e){return e.split("-")[0]}var sr=Math.max,ic=Math.min,qr=Math.round;function Xr(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,a=1;if(Zo(e)&&t){var l=e.offsetHeight,r=e.offsetWidth;r>0&&(o=qr(n.width)/r||1),l>0&&(a=qr(n.height)/l||1)}return{width:n.width/o,height:n.height/a,top:n.top/a,right:n.right/o,bottom:n.bottom/a,left:n.left/o,x:n.left/o,y:n.top/a}}function Dp(e){var t=Xr(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function lw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Lp(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function dl(e){return fa(e).getComputedStyle(e)}function Bz(e){return["table","td","th"].indexOf(Da(e))>=0}function Pl(e){return((Gr(e)?e.ownerDocument:e.document)||window.document).documentElement}function uc(e){return Da(e)==="html"?e:e.assignedSlot||e.parentNode||(Lp(e)?e.host:null)||Pl(e)}function rw(e){return!Zo(e)||dl(e).position==="fixed"?null:e.offsetParent}function Fz(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Zo(e)){var o=dl(e);if(o.position==="fixed")return null}var a=uc(e);for(Lp(a)&&(a=a.host);Zo(a)&&["html","body"].indexOf(Da(a))<0;){var l=dl(a);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return a;a=a.parentNode}return null}function mi(e){for(var t=fa(e),n=rw(e);n&&Bz(n)&&dl(n).position==="static";)n=rw(n);return n&&(Da(n)==="html"||Da(n)==="body"&&dl(n).position==="static")?t:n||Fz(e)||t}function Bp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function gi(e,t,n){return sr(e,ic(t,n))}function Vz(e,t,n){var o=gi(e,t,n);return o>n?n:o}function sw(){return{top:0,right:0,bottom:0,left:0}}function iw(e){return Object.assign({},sw(),e)}function uw(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var zz=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,iw(typeof e!="number"?e:uw(e,pi))};function Hz(e){var t,n=e.state,o=e.name,a=e.options,l=n.elements.arrow,r=n.modifiersData.popperOffsets,i=Ba(n.placement),u=Bp(i),c=[ko,Xo].indexOf(i)>=0,d=c?"height":"width";if(!(!l||!r)){var f=zz(a.padding,n),h=Dp(l),m=u==="y"?So:ko,p=u==="y"?qo:Xo,v=n.rects.reference[d]+n.rects.reference[u]-r[u]-n.rects.popper[d],g=r[u]-n.rects.reference[u],b=mi(l),C=b?u==="y"?b.clientHeight||0:b.clientWidth||0:0,w=v/2-g/2,y=f[m],S=C-h[d]-f[p],E=C/2-h[d]/2+w,_=gi(y,E,S),T=u;n.modifiersData[o]=(t={},t[T]=_,t.centerOffset=_-E,t)}}function Wz(e){var t=e.state,n=e.options,o=n.element,a=o===void 0?"[data-popper-arrow]":o;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!lw(t.elements.popper,a)||(t.elements.arrow=a))}var Kz={name:"arrow",enabled:!0,phase:"main",fn:Hz,effect:Wz,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zr(e){return e.split("-")[1]}var jz={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yz(e){var t=e.x,n=e.y,o=window,a=o.devicePixelRatio||1;return{x:qr(t*a)/a||0,y:qr(n*a)/a||0}}function cw(e){var t,n=e.popper,o=e.popperRect,a=e.placement,l=e.variation,r=e.offsets,i=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=r.x,m=h===void 0?0:h,p=r.y,v=p===void 0?0:p,g=typeof d=="function"?d({x:m,y:v}):{x:m,y:v};m=g.x,v=g.y;var b=r.hasOwnProperty("x"),C=r.hasOwnProperty("y"),w=ko,y=So,S=window;if(c){var E=mi(n),_="clientHeight",T="clientWidth";if(E===fa(n)&&(E=Pl(n),dl(E).position!=="static"&&i==="absolute"&&(_="scrollHeight",T="scrollWidth")),E=E,a===So||(a===ko||a===Xo)&&l===vi){y=qo;var N=f&&E===S&&S.visualViewport?S.visualViewport.height:E[_];v-=N-o.height,v*=u?1:-1}if(a===ko||(a===So||a===qo)&&l===vi){w=Xo;var O=f&&E===S&&S.visualViewport?S.visualViewport.width:E[T];m-=O-o.width,m*=u?1:-1}}var A=Object.assign({position:i},c&&jz),M=d===!0?Yz({x:m,y:v}):{x:m,y:v};if(m=M.x,v=M.y,u){var L;return Object.assign({},A,(L={},L[y]=C?"0":"",L[w]=b?"0":"",L.transform=(S.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",L))}return Object.assign({},A,(t={},t[y]=C?v+"px":"",t[w]=b?m+"px":"",t.transform="",t))}function Uz(e){var t=e.state,n=e.options,o=n.gpuAcceleration,a=o===void 0?!0:o,l=n.adaptive,r=l===void 0?!0:l,i=n.roundOffsets,u=i===void 0?!0:i,c={placement:Ba(t.placement),variation:Zr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,cw(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,cw(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var dw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Uz,data:{}},cc={passive:!0};function Gz(e){var t=e.state,n=e.instance,o=e.options,a=o.scroll,l=a===void 0?!0:a,r=o.resize,i=r===void 0?!0:r,u=fa(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&c.forEach(function(d){d.addEventListener("scroll",n.update,cc)}),i&&u.addEventListener("resize",n.update,cc),function(){l&&c.forEach(function(d){d.removeEventListener("scroll",n.update,cc)}),i&&u.removeEventListener("resize",n.update,cc)}}var fw={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Gz,data:{}},qz={left:"right",right:"left",bottom:"top",top:"bottom"};function dc(e){return e.replace(/left|right|bottom|top/g,function(t){return qz[t]})}var Xz={start:"end",end:"start"};function pw(e){return e.replace(/start|end/g,function(t){return Xz[t]})}function Fp(e){var t=fa(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Vp(e){return Xr(Pl(e)).left+Fp(e).scrollLeft}function Zz(e){var t=fa(e),n=Pl(e),o=t.visualViewport,a=n.clientWidth,l=n.clientHeight,r=0,i=0;return o&&(a=o.width,l=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=o.offsetLeft,i=o.offsetTop)),{width:a,height:l,x:r+Vp(e),y:i}}function Jz(e){var t,n=Pl(e),o=Fp(e),a=(t=e.ownerDocument)==null?void 0:t.body,l=sr(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),r=sr(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-o.scrollLeft+Vp(e),u=-o.scrollTop;return dl(a||n).direction==="rtl"&&(i+=sr(n.clientWidth,a?a.clientWidth:0)-l),{width:l,height:r,x:i,y:u}}function zp(e){var t=dl(e),n=t.overflow,o=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function vw(e){return["html","body","#document"].indexOf(Da(e))>=0?e.ownerDocument.body:Zo(e)&&zp(e)?e:vw(uc(e))}function bi(e,t){var n;t===void 0&&(t=[]);var o=vw(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),l=fa(o),r=a?[l].concat(l.visualViewport||[],zp(o)?o:[]):o,i=t.concat(r);return a?i:i.concat(bi(uc(r)))}function Hp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Qz(e){var t=Xr(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function hw(e,t){return t===nw?Hp(Zz(e)):Gr(t)?Qz(t):Hp(Jz(Pl(e)))}function e5(e){var t=bi(uc(e)),n=["absolute","fixed"].indexOf(dl(e).position)>=0,o=n&&Zo(e)?mi(e):e;return Gr(o)?t.filter(function(a){return Gr(a)&&lw(a,o)&&Da(a)!=="body"}):[]}function t5(e,t,n){var o=t==="clippingParents"?e5(e):[].concat(t),a=[].concat(o,[n]),l=a[0],r=a.reduce(function(i,u){var c=hw(e,u);return i.top=sr(c.top,i.top),i.right=ic(c.right,i.right),i.bottom=ic(c.bottom,i.bottom),i.left=sr(c.left,i.left),i},hw(e,l));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function mw(e){var t=e.reference,n=e.element,o=e.placement,a=o?Ba(o):null,l=o?Zr(o):null,r=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,u;switch(a){case So:u={x:r,y:t.y-n.height};break;case qo:u={x:r,y:t.y+t.height};break;case Xo:u={x:t.x+t.width,y:i};break;case ko:u={x:t.x-n.width,y:i};break;default:u={x:t.x,y:t.y}}var c=a?Bp(a):null;if(c!=null){var d=c==="y"?"height":"width";switch(l){case Ur:u[c]=u[c]-(t[d]/2-n[d]/2);break;case vi:u[c]=u[c]+(t[d]/2-n[d]/2);break}}return u}function yi(e,t){t===void 0&&(t={});var n=t,o=n.placement,a=o===void 0?e.placement:o,l=n.boundary,r=l===void 0?Ez:l,i=n.rootBoundary,u=i===void 0?nw:i,c=n.elementContext,d=c===void 0?hi:c,f=n.altBoundary,h=f===void 0?!1:f,m=n.padding,p=m===void 0?0:m,v=iw(typeof p!="number"?p:uw(p,pi)),g=d===hi?$z:hi,b=e.rects.popper,C=e.elements[h?g:d],w=t5(Gr(C)?C:C.contextElement||Pl(e.elements.popper),r,u),y=Xr(e.elements.reference),S=mw({reference:y,element:b,strategy:"absolute",placement:a}),E=Hp(Object.assign({},b,S)),_=d===hi?E:y,T={top:w.top-_.top+v.top,bottom:_.bottom-w.bottom+v.bottom,left:w.left-_.left+v.left,right:_.right-w.right+v.right},N=e.modifiersData.offset;if(d===hi&&N){var O=N[a];Object.keys(T).forEach(function(A){var M=[Xo,qo].indexOf(A)>=0?1:-1,L=[So,qo].indexOf(A)>=0?"y":"x";T[A]+=O[L]*M})}return T}function n5(e,t){t===void 0&&(t={});var n=t,o=n.placement,a=n.boundary,l=n.rootBoundary,r=n.padding,i=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?La:u,d=Zr(o),f=d?i?ow:ow.filter(function(p){return Zr(p)===d}):pi,h=f.filter(function(p){return c.indexOf(p)>=0});h.length===0&&(h=f);var m=h.reduce(function(p,v){return p[v]=yi(e,{placement:v,boundary:a,rootBoundary:l,padding:r})[Ba(v)],p},{});return Object.keys(m).sort(function(p,v){return m[p]-m[v]})}function o5(e){if(Ba(e)===Pp)return[];var t=dc(e);return[pw(e),t,pw(t)]}function a5(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var a=n.mainAxis,l=a===void 0?!0:a,r=n.altAxis,i=r===void 0?!0:r,u=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,p=m===void 0?!0:m,v=n.allowedAutoPlacements,g=t.options.placement,b=Ba(g),C=b===g,w=u||(C||!p?[dc(g)]:o5(g)),y=[g].concat(w).reduce(function(G,X){return G.concat(Ba(X)===Pp?n5(t,{placement:X,boundary:d,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:v}):X)},[]),S=t.rects.reference,E=t.rects.popper,_=new Map,T=!0,N=y[0],O=0;O<y.length;O++){var A=y[O],M=Ba(A),L=Zr(A)===Ur,H=[So,qo].indexOf(M)>=0,K=H?"width":"height",Y=yi(t,{placement:A,boundary:d,rootBoundary:f,altBoundary:h,padding:c}),I=H?L?Xo:ko:L?qo:So;S[K]>E[K]&&(I=dc(I));var R=dc(I),D=[];if(l&&D.push(Y[M]<=0),i&&D.push(Y[I]<=0,Y[R]<=0),D.every(function(G){return G})){N=A,T=!1;break}_.set(A,D)}if(T)for(var B=p?3:1,z=function(G){var X=y.find(function(le){var se=_.get(le);if(se)return se.slice(0,G).every(function(de){return de})});if(X)return N=X,"break"},U=B;U>0;U--){var V=z(U);if(V==="break")break}t.placement!==N&&(t.modifiersData[o]._skip=!0,t.placement=N,t.reset=!0)}}var l5={name:"flip",enabled:!0,phase:"main",fn:a5,requiresIfExists:["offset"],data:{_skip:!1}};function gw(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function bw(e){return[So,Xo,qo,ko].some(function(t){return e[t]>=0})}function r5(e){var t=e.state,n=e.name,o=t.rects.reference,a=t.rects.popper,l=t.modifiersData.preventOverflow,r=yi(t,{elementContext:"reference"}),i=yi(t,{altBoundary:!0}),u=gw(r,o),c=gw(i,a,l),d=bw(u),f=bw(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var s5={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:r5};function i5(e,t,n){var o=Ba(e),a=[ko,So].indexOf(o)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=l[0],i=l[1];return r=r||0,i=(i||0)*a,[ko,Xo].indexOf(o)>=0?{x:i,y:r}:{x:r,y:i}}function u5(e){var t=e.state,n=e.options,o=e.name,a=n.offset,l=a===void 0?[0,0]:a,r=La.reduce(function(d,f){return d[f]=i5(f,t.rects,l),d},{}),i=r[t.placement],u=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=r}var c5={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:u5};function d5(e){var t=e.state,n=e.name;t.modifiersData[n]=mw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var yw={name:"popperOffsets",enabled:!0,phase:"read",fn:d5,data:{}};function f5(e){return e==="x"?"y":"x"}function p5(e){var t=e.state,n=e.options,o=e.name,a=n.mainAxis,l=a===void 0?!0:a,r=n.altAxis,i=r===void 0?!1:r,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,m=h===void 0?!0:h,p=n.tetherOffset,v=p===void 0?0:p,g=yi(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),b=Ba(t.placement),C=Zr(t.placement),w=!C,y=Bp(b),S=f5(y),E=t.modifiersData.popperOffsets,_=t.rects.reference,T=t.rects.popper,N=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,O=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(E){if(l){var L,H=y==="y"?So:ko,K=y==="y"?qo:Xo,Y=y==="y"?"height":"width",I=E[y],R=I+g[H],D=I-g[K],B=m?-T[Y]/2:0,z=C===Ur?_[Y]:T[Y],U=C===Ur?-T[Y]:-_[Y],V=t.elements.arrow,G=m&&V?Dp(V):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:sw(),le=X[H],se=X[K],de=gi(0,_[Y],G[Y]),ce=w?_[Y]/2-B-de-le-O.mainAxis:z-de-le-O.mainAxis,ne=w?-_[Y]/2+B+de+se+O.mainAxis:U+de+se+O.mainAxis,j=t.elements.arrow&&mi(t.elements.arrow),re=j?y==="y"?j.clientTop||0:j.clientLeft||0:0,Se=(L=A==null?void 0:A[y])!=null?L:0,Te=I+ce-Se-re,De=I+ne-Se,ze=gi(m?ic(R,Te):R,I,m?sr(D,De):D);E[y]=ze,M[y]=ze-I}if(i){var Ze,nt=y==="x"?So:ko,Et=y==="x"?qo:Xo,Ue=E[S],Ae=S==="y"?"height":"width",Pe=Ue+g[nt],Ge=Ue-g[Et],ot=[So,ko].indexOf(b)!==-1,pt=(Ze=A==null?void 0:A[S])!=null?Ze:0,Ct=ot?Pe:Ue-_[Ae]-T[Ae]-pt+O.altAxis,Ce=ot?Ue+_[Ae]+T[Ae]-pt-O.altAxis:Ge,Ve=m&&ot?Vz(Ct,Ue,Ce):gi(m?Ct:Pe,Ue,m?Ce:Ge);E[S]=Ve,M[S]=Ve-Ue}t.modifiersData[o]=M}}var v5={name:"preventOverflow",enabled:!0,phase:"main",fn:p5,requiresIfExists:["offset"]};function h5(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function m5(e){return e===fa(e)||!Zo(e)?Fp(e):h5(e)}function g5(e){var t=e.getBoundingClientRect(),n=qr(t.width)/e.offsetWidth||1,o=qr(t.height)/e.offsetHeight||1;return n!==1||o!==1}function b5(e,t,n){n===void 0&&(n=!1);var o=Zo(t),a=Zo(t)&&g5(t),l=Pl(t),r=Xr(e,a),i={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&((Da(t)!=="body"||zp(l))&&(i=m5(t)),Zo(t)?(u=Xr(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=Vp(l))),{x:r.left+i.scrollLeft-u.x,y:r.top+i.scrollTop-u.y,width:r.width,height:r.height}}function y5(e){var t=new Map,n=new Set,o=[];e.forEach(function(l){t.set(l.name,l)});function a(l){n.add(l.name);var r=[].concat(l.requires||[],l.requiresIfExists||[]);r.forEach(function(i){if(!n.has(i)){var u=t.get(i);u&&a(u)}}),o.push(l)}return e.forEach(function(l){n.has(l.name)||a(l)}),o}function w5(e){var t=y5(e);return Pz.reduce(function(n,o){return n.concat(t.filter(function(a){return a.phase===o}))},[])}function C5(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function S5(e){var t=e.reduce(function(n,o){var a=n[o.name];return n[o.name]=a?Object.assign({},a,o,{options:Object.assign({},a.options,o.options),data:Object.assign({},a.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var ww={placement:"bottom",modifiers:[],strategy:"absolute"};function Cw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Wp(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,a=t.defaultOptions,l=a===void 0?ww:a;return function(r,i,u){u===void 0&&(u=l);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},ww,l),modifiersData:{},elements:{reference:r,popper:i},attributes:{},styles:{}},d=[],f=!1,h={state:c,setOptions:function(v){var g=typeof v=="function"?v(c.options):v;p(),c.options=Object.assign({},l,c.options,g),c.scrollParents={reference:Gr(r)?bi(r):r.contextElement?bi(r.contextElement):[],popper:bi(i)};var b=w5(S5([].concat(o,c.options.modifiers)));return c.orderedModifiers=b.filter(function(C){return C.enabled}),m(),h.update()},forceUpdate:function(){if(!f){var v=c.elements,g=v.reference,b=v.popper;if(Cw(g,b)){c.rects={reference:b5(g,mi(b),c.options.strategy==="fixed"),popper:Dp(b)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(T){return c.modifiersData[T.name]=Object.assign({},T.data)});for(var C=0;C<c.orderedModifiers.length;C++){if(c.reset===!0){c.reset=!1,C=-1;continue}var w=c.orderedModifiers[C],y=w.fn,S=w.options,E=S===void 0?{}:S,_=w.name;typeof y=="function"&&(c=y({state:c,options:E,name:_,instance:h})||c)}}}},update:C5(function(){return new Promise(function(v){h.forceUpdate(),v(c)})}),destroy:function(){p(),f=!0}};if(!Cw(r,i))return h;h.setOptions(u).then(function(v){!f&&u.onFirstUpdate&&u.onFirstUpdate(v)});function m(){c.orderedModifiers.forEach(function(v){var g=v.name,b=v.options,C=b===void 0?{}:b,w=v.effect;if(typeof w=="function"){var y=w({state:c,name:g,instance:h,options:C}),S=function(){};d.push(y||S)}})}function p(){d.forEach(function(v){return v()}),d=[]}return h}}Wp();var k5=[fw,yw,dw,aw];Wp({defaultModifiers:k5});var E5=[fw,yw,dw,aw,c5,l5,v5,Kz,s5],$5=Wp({defaultModifiers:E5});const Sw=(e,t,n={})=>{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const c=_5(u);Object.assign(r.value,c)},requires:["computeStyles"]},a=k(()=>{const{onFirstUpdate:u,placement:c,strategy:d,modifiers:f}=s(n);return{onFirstUpdate:u,placement:c||"bottom",strategy:d||"absolute",modifiers:[...f||[],o,{name:"applyStyles",enabled:!1}]}}),l=Zt(),r=P({styles:{popper:{position:s(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{!l.value||(l.value.destroy(),l.value=void 0)};return ie(a,u=>{const c=s(l);c&&c.setOptions(u)},{deep:!0}),ie([e,t],([u,c])=>{i(),!(!u||!c)&&(l.value=$5(u,c,s(a)))}),Bt(()=>{i()}),{state:k(()=>{var u;return{...((u=s(l))==null?void 0:u.state)||{}}}),styles:k(()=>s(r).styles),attributes:k(()=>s(r).attributes),update:()=>{var u;return(u=s(l))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=s(l))==null?void 0:u.forceUpdate()},instanceRef:k(()=>s(l))}};function _5(e){const t=Object.keys(e.elements),n=Fr(t.map(a=>[a,e.styles[a]||{}])),o=Fr(t.map(a=>[a,e.attributes[a]]));return{styles:n,attributes:o}}const fc=e=>{if(!e)return{onClick:Gt,onMousedown:Gt,onMouseup:Gt};let t=!1,n=!1;return{onClick:r=>{t&&n&&e(r),t=n=!1},onMousedown:r=>{t=r.target===r.currentTarget},onMouseup:r=>{n=r.target===r.currentTarget}}},T5=(e,t)=>{const n=P(!1);if(!Tt)return{isTeleportVisible:n,showTeleport:Gt,hideTeleport:Gt,renderTeleport:Gt};let o=null;const a=()=>{n.value=!0,o===null&&(o=GF())},l=()=>{n.value=!1,o!==null&&(qF(o),o=null)},r=()=>t.value!==!0?e():n.value?[Le(Mg,{to:o},e())]:void 0;return Ms(l),{isTeleportVisible:n,showTeleport:a,hideTeleport:l,renderTeleport:r}},kw=(e,t=0)=>{if(t===0)return e;const n=Rt(t)&&Boolean(t.initVal),o=P(n);let a=null;const l=i=>{if(_t(i)){o.value=e.value;return}a&&clearTimeout(a),a=setTimeout(()=>{o.value=e.value},i)},r=i=>{i==="leading"?xe(t)?l(t):l(t.leading):Rt(t)?l(t.trailing):o.value=!1};return ut(()=>r("leading")),ie(()=>e.value,i=>{r(i?"leading":"trailing")}),o};function Kp(){let e;const t=(o,a)=>{n(),e=window.setTimeout(o,a)},n=()=>window.clearTimeout(e);return Zl(()=>n()),{registerTimeout:t,cancelTimeout:n}}const Ew="after-appear",$w="after-enter",_w="after-leave",O5="appear",Tw="appear-cancelled",Ow="before-enter",Rw="before-leave",xw="enter",Iw="enter-cancelled",Mw="leave",Nw="leave-cancelled",R5=[Ew,$w,_w,O5,Tw,Ow,Rw,xw,Iw,Mw,Nw],x5=()=>{const{emit:e}=ct();return{onAfterAppear:()=>{e(Ew)},onAfterEnter:()=>{e($w)},onAfterLeave:()=>{e(_w)},onAppearCancelled:()=>{e(Tw)},onBeforeEnter:()=>{e(Ow)},onBeforeLeave:()=>{e(Rw)},onEnter:()=>{e(xw)},onEnterCancelled:()=>{e(Iw)},onLeave:()=>{e(Mw)},onLeaveCancelled:()=>{e(Nw)}}},Aw={prefix:Math.floor(Math.random()*1e4),current:0},Pw=Symbol("elIdInjection"),pc=()=>ct()?Ee(Pw,Aw):Aw,Vn=e=>{const t=pc(),n=sc();return jg(()=>s(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Jr=[];const Lw=e=>{Wt(e)===pe.esc&&Jr.forEach(n=>n(e))},Dw=e=>{ut(()=>{Jr.length===0&&document.addEventListener("keydown",Lw),Tt&&Jr.push(e)}),Bt(()=>{Jr=Jr.filter(t=>t!==e),Jr.length===0&&Tt&&document.removeEventListener("keydown",Lw)})},jp=()=>{const e=sc(),t=pc(),n=k(()=>`${e.value}-popper-container-${t.prefix}`),o=k(()=>`#${n.value}`);return{id:n,selector:o}},I5=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},Bw=()=>{const{id:e,selector:t}=jp();return Wd(()=>{!Tt||document.body.querySelector(t.value)||I5(e.value)}),{id:e,selector:t}},M5=({indicator:e,intermediateIndicator:t,shouldSetIntermediate:n=()=>!0,beforeShow:o,afterShow:a,afterHide:l,beforeHide:r})=>{ie(()=>s(e),i=>{i?(o==null||o(),ke(()=>{!s(e)||n("show")&&(t.value=!0)})):(r==null||r(),ke(()=>{s(e)||n("hide")&&(t.value=!1)}))}),ie(()=>t.value,i=>{i?a==null||a():l==null||l()})},Fw=he({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Vw=({showAfter:e,hideAfter:t,autoClose:n,open:o,close:a})=>{const{registerTimeout:l}=Kp(),{registerTimeout:r,cancelTimeout:i}=Kp();return{onOpen:(d,f=s(e))=>{l(()=>{o(d);const h=s(n);xe(h)&&h>0&&r(()=>{a(d)},h)},f)},onClose:(d,f=s(t))=>{i(),l(()=>{a(d)},f)}}},Yp=Symbol("elForwardRef"),zw=e=>{St(Yp,{setForwardRef:n=>{e.value=n}})},Hw=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Ww={current:0},Kw=P(0),Up=2e3,Gp=Symbol("elZIndexContextKey"),qp=Symbol("zIndexContextKey"),Qr=e=>{const t=ct()?Ee(Gp,Ww):Ww,n=e||(ct()?Ee(qp,void 0):void 0),o=k(()=>{const r=s(n);return xe(r)?r:Up}),a=k(()=>o.value+Kw.value),l=()=>(t.current++,Kw.value=t.current,a.value);return!Tt&&Ee(Gp),{initialZIndex:o,currentZIndex:a,nextZIndex:l}},jw=["top","right","bottom","left"],Yw=["start","end"],Uw=jw.reduce((e,t)=>e.concat(t,t+"-"+Yw[0],t+"-"+Yw[1]),[]),pa=Math.min,lo=Math.max,vc=Math.round,hc=Math.floor,Fa=e=>({x:e,y:e}),N5={left:"right",right:"left",bottom:"top",top:"bottom"},A5={start:"end",end:"start"};function Xp(e,t,n){return lo(e,pa(t,n))}function va(e,t){return typeof e=="function"?e(t):e}function Ao(e){return e.split("-")[0]}function ha(e){return e.split("-")[1]}function Zp(e){return e==="x"?"y":"x"}function Jp(e){return e==="y"?"height":"width"}const P5=new Set(["top","bottom"]);function ma(e){return P5.has(Ao(e))?"y":"x"}function Qp(e){return Zp(ma(e))}function Gw(e,t,n){n===void 0&&(n=!1);const o=ha(e),a=Qp(e),l=Jp(a);let r=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(r=gc(r)),[r,gc(r)]}function L5(e){const t=gc(e);return[mc(e),t,mc(t)]}function mc(e){return e.replace(/start|end/g,t=>A5[t])}const qw=["left","right"],Xw=["right","left"],D5=["top","bottom"],B5=["bottom","top"];function F5(e,t,n){switch(e){case"top":case"bottom":return n?t?Xw:qw:t?qw:Xw;case"left":case"right":return t?D5:B5;default:return[]}}function V5(e,t,n,o){const a=ha(e);let l=F5(Ao(e),n==="start",o);return a&&(l=l.map(r=>r+"-"+a),t&&(l=l.concat(l.map(mc)))),l}function gc(e){return e.replace(/left|right|bottom|top/g,t=>N5[t])}function z5(e){return{top:0,right:0,bottom:0,left:0,...e}}function ev(e){return typeof e!="number"?z5(e):{top:e,right:e,bottom:e,left:e}}function es(e){const{x:t,y:n,width:o,height:a}=e;return{width:o,height:a,top:n,left:t,right:t+o,bottom:n+a,x:t,y:n}}function Zw(e,t,n){let{reference:o,floating:a}=e;const l=ma(t),r=Qp(t),i=Jp(r),u=Ao(t),c=l==="y",d=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,h=o[i]/2-a[i]/2;let m;switch(u){case"top":m={x:d,y:o.y-a.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:f};break;case"left":m={x:o.x-a.width,y:f};break;default:m={x:o.x,y:o.y}}switch(ha(t)){case"start":m[r]-=h*(n&&c?-1:1);break;case"end":m[r]+=h*(n&&c?-1:1);break}return m}const H5=async(e,t,n)=>{const{placement:o="bottom",strategy:a="absolute",middleware:l=[],platform:r}=n,i=l.filter(Boolean),u=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:f}=Zw(c,o,u),h=o,m={},p=0;for(let v=0;v<i.length;v++){const{name:g,fn:b}=i[v],{x:C,y:w,data:y,reset:S}=await b({x:d,y:f,initialPlacement:o,placement:h,strategy:a,middlewareData:m,rects:c,platform:r,elements:{reference:e,floating:t}});d=C!=null?C:d,f=w!=null?w:f,m={...m,[g]:{...m[g],...y}},S&&p<=50&&(p++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:a}):S.rects),{x:d,y:f}=Zw(c,h,u)),v=-1)}return{x:d,y:f,placement:h,strategy:a,middlewareData:m}};async function ir(e,t){var n;t===void 0&&(t={});const{x:o,y:a,platform:l,rects:r,elements:i,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=va(t,e),p=ev(m),g=i[h?f==="floating"?"reference":"floating":f],b=es(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(g)))==null||n?g:g.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:u})),C=f==="floating"?{x:o,y:a,width:r.floating.width,height:r.floating.height}:r.reference,w=await(l.getOffsetParent==null?void 0:l.getOffsetParent(i.floating)),y=await(l.isElement==null?void 0:l.isElement(w))?await(l.getScale==null?void 0:l.getScale(w))||{x:1,y:1}:{x:1,y:1},S=es(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:C,offsetParent:w,strategy:u}):C);return{top:(b.top-S.top+p.top)/y.y,bottom:(S.bottom-b.bottom+p.bottom)/y.y,left:(b.left-S.left+p.left)/y.x,right:(S.right-b.right+p.right)/y.x}}const W5=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:a,rects:l,platform:r,elements:i,middlewareData:u}=t,{element:c,padding:d=0}=va(e,t)||{};if(c==null)return{};const f=ev(d),h={x:n,y:o},m=Qp(a),p=Jp(m),v=await r.getDimensions(c),g=m==="y",b=g?"top":"left",C=g?"bottom":"right",w=g?"clientHeight":"clientWidth",y=l.reference[p]+l.reference[m]-h[m]-l.floating[p],S=h[m]-l.reference[m],E=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let _=E?E[w]:0;(!_||!await(r.isElement==null?void 0:r.isElement(E)))&&(_=i.floating[w]||l.floating[p]);const T=y/2-S/2,N=_/2-v[p]/2-1,O=pa(f[b],N),A=pa(f[C],N),M=O,L=_-v[p]-A,H=_/2-v[p]/2+T,K=Xp(M,H,L),Y=!u.arrow&&ha(a)!=null&&H!==K&&l.reference[p]/2-(H<M?O:A)-v[p]/2<0,I=Y?H<M?H-M:H-L:0;return{[m]:h[m]+I,data:{[m]:K,centerOffset:H-K-I,...Y&&{alignmentOffset:I}},reset:Y}}});function K5(e,t,n){return(e?[...n.filter(a=>ha(a)===e),...n.filter(a=>ha(a)!==e)]:n.filter(a=>Ao(a)===a)).filter(a=>e?ha(a)===e||(t?mc(a)!==a:!1):!0)}const j5=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,a;const{rects:l,middlewareData:r,placement:i,platform:u,elements:c}=t,{crossAxis:d=!1,alignment:f,allowedPlacements:h=Uw,autoAlignment:m=!0,...p}=va(e,t),v=f!==void 0||h===Uw?K5(f||null,m,h):h,g=await ir(t,p),b=((n=r.autoPlacement)==null?void 0:n.index)||0,C=v[b];if(C==null)return{};const w=Gw(C,l,await(u.isRTL==null?void 0:u.isRTL(c.floating)));if(i!==C)return{reset:{placement:v[0]}};const y=[g[Ao(C)],g[w[0]],g[w[1]]],S=[...((o=r.autoPlacement)==null?void 0:o.overflows)||[],{placement:C,overflows:y}],E=v[b+1];if(E)return{data:{index:b+1,overflows:S},reset:{placement:E}};const _=S.map(O=>{const A=ha(O.placement);return[O.placement,A&&d?O.overflows.slice(0,2).reduce((M,L)=>M+L,0):O.overflows[0],O.overflows]}).sort((O,A)=>O[1]-A[1]),N=((a=_.filter(O=>O[2].slice(0,ha(O[0])?2:3).every(A=>A<=0))[0])==null?void 0:a[0])||_[0][0];return N!==i?{data:{index:b+1,overflows:S},reset:{placement:N}}:{}}}},Y5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:a,middlewareData:l,rects:r,initialPlacement:i,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:v=!0,...g}=va(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const b=Ao(a),C=ma(i),w=Ao(i)===i,y=await(u.isRTL==null?void 0:u.isRTL(c.floating)),S=h||(w||!v?[gc(i)]:L5(i)),E=p!=="none";!h&&E&&S.push(...V5(i,v,p,y));const _=[i,...S],T=await ir(t,g),N=[];let O=((o=l.flip)==null?void 0:o.overflows)||[];if(d&&N.push(T[b]),f){const H=Gw(a,r,y);N.push(T[H[0]],T[H[1]])}if(O=[...O,{placement:a,overflows:N}],!N.every(H=>H<=0)){var A,M;const H=(((A=l.flip)==null?void 0:A.index)||0)+1,K=_[H];if(K&&(!(f==="alignment"?C!==ma(K):!1)||O.every(R=>ma(R.placement)===C?R.overflows[0]>0:!0)))return{data:{index:H,overflows:O},reset:{placement:K}};let Y=(M=O.filter(I=>I.overflows[0]<=0).sort((I,R)=>I.overflows[1]-R.overflows[1])[0])==null?void 0:M.placement;if(!Y)switch(m){case"bestFit":{var L;const I=(L=O.filter(R=>{if(E){const D=ma(R.placement);return D===C||D==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(D=>D>0).reduce((D,B)=>D+B,0)]).sort((R,D)=>R[1]-D[1])[0])==null?void 0:L[0];I&&(Y=I);break}case"initialPlacement":Y=i;break}if(a!==Y)return{reset:{placement:Y}}}return{}}}};function Jw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qw(e){return jw.some(t=>e[t]>=0)}const U5=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...a}=va(e,t);switch(o){case"referenceHidden":{const l=await ir(t,{...a,elementContext:"reference"}),r=Jw(l,n.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:Qw(r)}}}case"escaped":{const l=await ir(t,{...a,altBoundary:!0}),r=Jw(l,n.floating);return{data:{escapedOffsets:r,escaped:Qw(r)}}}default:return{}}}}};function eC(e){const t=pa(...e.map(l=>l.left)),n=pa(...e.map(l=>l.top)),o=lo(...e.map(l=>l.right)),a=lo(...e.map(l=>l.bottom));return{x:t,y:n,width:o-t,height:a-n}}function G5(e){const t=e.slice().sort((a,l)=>a.y-l.y),n=[];let o=null;for(let a=0;a<t.length;a++){const l=t[a];!o||l.y-o.y>o.height/2?n.push([l]):n[n.length-1].push(l),o=l}return n.map(a=>es(eC(a)))}const q5=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:o,rects:a,platform:l,strategy:r}=t,{padding:i=2,x:u,y:c}=va(e,t),d=Array.from(await(l.getClientRects==null?void 0:l.getClientRects(o.reference))||[]),f=G5(d),h=es(eC(d)),m=ev(i);function p(){if(f.length===2&&f[0].left>f[1].right&&u!=null&&c!=null)return f.find(g=>u>g.left-m.left&&u<g.right+m.right&&c>g.top-m.top&&c<g.bottom+m.bottom)||h;if(f.length>=2){if(ma(n)==="y"){const O=f[0],A=f[f.length-1],M=Ao(n)==="top",L=O.top,H=A.bottom,K=M?O.left:A.left,Y=M?O.right:A.right,I=Y-K,R=H-L;return{top:L,bottom:H,left:K,right:Y,width:I,height:R,x:K,y:L}}const g=Ao(n)==="left",b=lo(...f.map(O=>O.right)),C=pa(...f.map(O=>O.left)),w=f.filter(O=>g?O.left===C:O.right===b),y=w[0].top,S=w[w.length-1].bottom,E=C,_=b,T=_-E,N=S-y;return{top:y,bottom:S,left:E,right:_,width:T,height:N,x:E,y}}return h}const v=await l.getElementRects({reference:{getBoundingClientRect:p},floating:o.floating,strategy:r});return a.reference.x!==v.reference.x||a.reference.y!==v.reference.y||a.reference.width!==v.reference.width||a.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}},tC=new Set(["left","top"]);async function X5(e,t){const{placement:n,platform:o,elements:a}=e,l=await(o.isRTL==null?void 0:o.isRTL(a.floating)),r=Ao(n),i=ha(n),u=ma(n)==="y",c=tC.has(r)?-1:1,d=l&&u?-1:1,f=va(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof p=="number"&&(m=i==="end"?p*-1:p),u?{x:m*d,y:h*c}:{x:h*c,y:m*d}}const Z5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:a,y:l,placement:r,middlewareData:i}=t,u=await X5(t,e);return r===((n=i.offset)==null?void 0:n.placement)&&(o=i.arrow)!=null&&o.alignmentOffset?{}:{x:a+u.x,y:l+u.y,data:{...u,placement:r}}}}},J5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:a}=t,{mainAxis:l=!0,crossAxis:r=!1,limiter:i={fn:g=>{let{x:b,y:C}=g;return{x:b,y:C}}},...u}=va(e,t),c={x:n,y:o},d=await ir(t,u),f=ma(Ao(a)),h=Zp(f);let m=c[h],p=c[f];if(l){const g=h==="y"?"top":"left",b=h==="y"?"bottom":"right",C=m+d[g],w=m-d[b];m=Xp(C,m,w)}if(r){const g=f==="y"?"top":"left",b=f==="y"?"bottom":"right",C=p+d[g],w=p-d[b];p=Xp(C,p,w)}const v=i.fn({...t,[h]:m,[f]:p});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[h]:l,[f]:r}}}}}},Q5=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:a,rects:l,middlewareData:r}=t,{offset:i=0,mainAxis:u=!0,crossAxis:c=!0}=va(e,t),d={x:n,y:o},f=ma(a),h=Zp(f);let m=d[h],p=d[f];const v=va(i,t),g=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const w=h==="y"?"height":"width",y=l.reference[h]-l.floating[w]+g.mainAxis,S=l.reference[h]+l.reference[w]-g.mainAxis;m<y?m=y:m>S&&(m=S)}if(c){var b,C;const w=h==="y"?"width":"height",y=tC.has(Ao(a)),S=l.reference[f]-l.floating[w]+(y&&((b=r.offset)==null?void 0:b[f])||0)+(y?0:g.crossAxis),E=l.reference[f]+l.reference[w]+(y?0:((C=r.offset)==null?void 0:C[f])||0)-(y?g.crossAxis:0);p<S?p=S:p>E&&(p=E)}return{[h]:m,[f]:p}}}},eH=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:a,rects:l,platform:r,elements:i}=t,{apply:u=()=>{},...c}=va(e,t),d=await ir(t,c),f=Ao(a),h=ha(a),m=ma(a)==="y",{width:p,height:v}=l.floating;let g,b;f==="top"||f==="bottom"?(g=f,b=h===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(b=f,g=h==="end"?"top":"bottom");const C=v-d.top-d.bottom,w=p-d.left-d.right,y=pa(v-d[g],C),S=pa(p-d[b],w),E=!t.middlewareData.shift;let _=y,T=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=w),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(_=C),E&&!h){const O=lo(d.left,0),A=lo(d.right,0),M=lo(d.top,0),L=lo(d.bottom,0);m?T=p-2*(O!==0||A!==0?O+A:lo(d.left,d.right)):_=v-2*(M!==0||L!==0?M+L:lo(d.top,d.bottom))}await u({...t,availableWidth:T,availableHeight:_});const N=await r.getDimensions(i.floating);return p!==N.width||v!==N.height?{reset:{rects:!0}}:{}}}};function bc(){return typeof window!="undefined"}function ts(e){return nC(e)?(e.nodeName||"").toLowerCase():"#document"}function Po(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Va(e){var t;return(t=(nC(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function nC(e){return bc()?e instanceof Node||e instanceof Po(e).Node:!1}function ga(e){return bc()?e instanceof Element||e instanceof Po(e).Element:!1}function za(e){return bc()?e instanceof HTMLElement||e instanceof Po(e).HTMLElement:!1}function oC(e){return!bc()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof Po(e).ShadowRoot}const tH=new Set(["inline","contents"]);function wi(e){const{overflow:t,overflowX:n,overflowY:o,display:a}=ba(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!tH.has(a)}const nH=new Set(["table","td","th"]);function oH(e){return nH.has(ts(e))}const aH=[":popover-open",":modal"];function yc(e){return aH.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const lH=["transform","translate","scale","rotate","perspective"],rH=["transform","translate","scale","rotate","perspective","filter"],sH=["paint","layout","strict","content"];function tv(e){const t=nv(),n=ga(e)?ba(e):e;return lH.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||rH.some(o=>(n.willChange||"").includes(o))||sH.some(o=>(n.contain||"").includes(o))}function iH(e){let t=Ll(e);for(;za(t)&&!ns(t);){if(tv(t))return t;if(yc(t))return null;t=Ll(t)}return null}function nv(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const uH=new Set(["html","body","#document"]);function ns(e){return uH.has(ts(e))}function ba(e){return Po(e).getComputedStyle(e)}function wc(e){return ga(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ll(e){if(ts(e)==="html")return e;const t=e.assignedSlot||e.parentNode||oC(e)&&e.host||Va(e);return oC(t)?t.host:t}function aC(e){const t=Ll(e);return ns(t)?e.ownerDocument?e.ownerDocument.body:e.body:za(t)&&wi(t)?t:aC(t)}function Ci(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=aC(e),l=a===((o=e.ownerDocument)==null?void 0:o.body),r=Po(a);if(l){const i=ov(r);return t.concat(r,r.visualViewport||[],wi(a)?a:[],i&&n?Ci(i):[])}return t.concat(a,Ci(a,[],n))}function ov(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function lC(e){const t=ba(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const a=za(e),l=a?e.offsetWidth:n,r=a?e.offsetHeight:o,i=vc(n)!==l||vc(o)!==r;return i&&(n=l,o=r),{width:n,height:o,$:i}}function av(e){return ga(e)?e:e.contextElement}function os(e){const t=av(e);if(!za(t))return Fa(1);const n=t.getBoundingClientRect(),{width:o,height:a,$:l}=lC(t);let r=(l?vc(n.width):n.width)/o,i=(l?vc(n.height):n.height)/a;return(!r||!Number.isFinite(r))&&(r=1),(!i||!Number.isFinite(i))&&(i=1),{x:r,y:i}}const cH=Fa(0);function rC(e){const t=Po(e);return!nv()||!t.visualViewport?cH:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function dH(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Po(e)?!1:t}function ur(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),l=av(e);let r=Fa(1);t&&(o?ga(o)&&(r=os(o)):r=os(e));const i=dH(l,n,o)?rC(l):Fa(0);let u=(a.left+i.x)/r.x,c=(a.top+i.y)/r.y,d=a.width/r.x,f=a.height/r.y;if(l){const h=Po(l),m=o&&ga(o)?Po(o):o;let p=h,v=ov(p);for(;v&&o&&m!==p;){const g=os(v),b=v.getBoundingClientRect(),C=ba(v),w=b.left+(v.clientLeft+parseFloat(C.paddingLeft))*g.x,y=b.top+(v.clientTop+parseFloat(C.paddingTop))*g.y;u*=g.x,c*=g.y,d*=g.x,f*=g.y,u+=w,c+=y,p=Po(v),v=ov(p)}}return es({width:d,height:f,x:u,y:c})}function Cc(e,t){const n=wc(e).scrollLeft;return t?t.left+n:ur(Va(e)).left+n}function sC(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Cc(e,n),a=n.top+t.scrollTop;return{x:o,y:a}}function fH(e){let{elements:t,rect:n,offsetParent:o,strategy:a}=e;const l=a==="fixed",r=Va(o),i=t?yc(t.floating):!1;if(o===r||i&&l)return n;let u={scrollLeft:0,scrollTop:0},c=Fa(1);const d=Fa(0),f=za(o);if((f||!f&&!l)&&((ts(o)!=="body"||wi(r))&&(u=wc(o)),za(o))){const m=ur(o);c=os(o),d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}const h=r&&!f&&!l?sC(r,u):Fa(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-u.scrollTop*c.y+d.y+h.y}}function pH(e){return Array.from(e.getClientRects())}function vH(e){const t=Va(e),n=wc(e),o=e.ownerDocument.body,a=lo(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=lo(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+Cc(e);const i=-n.scrollTop;return ba(o).direction==="rtl"&&(r+=lo(t.clientWidth,o.clientWidth)-a),{width:a,height:l,x:r,y:i}}const iC=25;function hH(e,t){const n=Po(e),o=Va(e),a=n.visualViewport;let l=o.clientWidth,r=o.clientHeight,i=0,u=0;if(a){l=a.width,r=a.height;const d=nv();(!d||d&&t==="fixed")&&(i=a.offsetLeft,u=a.offsetTop)}const c=Cc(o);if(c<=0){const d=o.ownerDocument,f=d.body,h=getComputedStyle(f),m=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,p=Math.abs(o.clientWidth-f.clientWidth-m);p<=iC&&(l-=p)}else c<=iC&&(l+=c);return{width:l,height:r,x:i,y:u}}const mH=new Set(["absolute","fixed"]);function gH(e,t){const n=ur(e,!0,t==="fixed"),o=n.top+e.clientTop,a=n.left+e.clientLeft,l=za(e)?os(e):Fa(1),r=e.clientWidth*l.x,i=e.clientHeight*l.y,u=a*l.x,c=o*l.y;return{width:r,height:i,x:u,y:c}}function uC(e,t,n){let o;if(t==="viewport")o=hH(e,n);else if(t==="document")o=vH(Va(e));else if(ga(t))o=gH(t,n);else{const a=rC(e);o={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return es(o)}function cC(e,t){const n=Ll(e);return n===t||!ga(n)||ns(n)?!1:ba(n).position==="fixed"||cC(n,t)}function bH(e,t){const n=t.get(e);if(n)return n;let o=Ci(e,[],!1).filter(i=>ga(i)&&ts(i)!=="body"),a=null;const l=ba(e).position==="fixed";let r=l?Ll(e):e;for(;ga(r)&&!ns(r);){const i=ba(r),u=tv(r);!u&&i.position==="fixed"&&(a=null),(l?!u&&!a:!u&&i.position==="static"&&!!a&&mH.has(a.position)||wi(r)&&!u&&cC(e,r))?o=o.filter(d=>d!==r):a=i,r=Ll(r)}return t.set(e,o),o}function yH(e){let{element:t,boundary:n,rootBoundary:o,strategy:a}=e;const r=[...n==="clippingAncestors"?yc(t)?[]:bH(t,this._c):[].concat(n),o],i=r[0],u=r.reduce((c,d)=>{const f=uC(t,d,a);return c.top=lo(f.top,c.top),c.right=pa(f.right,c.right),c.bottom=pa(f.bottom,c.bottom),c.left=lo(f.left,c.left),c},uC(t,i,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function wH(e){const{width:t,height:n}=lC(e);return{width:t,height:n}}function CH(e,t,n){const o=za(t),a=Va(t),l=n==="fixed",r=ur(e,!0,l,t);let i={scrollLeft:0,scrollTop:0};const u=Fa(0);function c(){u.x=Cc(a)}if(o||!o&&!l)if((ts(t)!=="body"||wi(a))&&(i=wc(t)),o){const m=ur(t,!0,l,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}else a&&c();l&&!o&&a&&c();const d=a&&!o&&!l?sC(a,i):Fa(0),f=r.left+i.scrollLeft-u.x-d.x,h=r.top+i.scrollTop-u.y-d.y;return{x:f,y:h,width:r.width,height:r.height}}function lv(e){return ba(e).position==="static"}function dC(e,t){if(!za(e)||ba(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Va(e)===n&&(n=n.ownerDocument.body),n}function fC(e,t){const n=Po(e);if(yc(e))return n;if(!za(e)){let a=Ll(e);for(;a&&!ns(a);){if(ga(a)&&!lv(a))return a;a=Ll(a)}return n}let o=dC(e,t);for(;o&&oH(o)&&lv(o);)o=dC(o,t);return o&&ns(o)&&lv(o)&&!tv(o)?n:o||iH(e)||n}const SH=async function(e){const t=this.getOffsetParent||fC,n=this.getDimensions,o=await n(e.floating);return{reference:CH(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function kH(e){return ba(e).direction==="rtl"}const EH={convertOffsetParentRelativeRectToViewportRelativeRect:fH,getDocumentElement:Va,getClippingRect:yH,getOffsetParent:fC,getElementRects:SH,getClientRects:pH,getDimensions:wH,getScale:os,isElement:ga,isRTL:kH};function pC(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $H(e,t){let n=null,o;const a=Va(e);function l(){var i;clearTimeout(o),(i=n)==null||i.disconnect(),n=null}function r(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),l();const c=e.getBoundingClientRect(),{left:d,top:f,width:h,height:m}=c;if(i||t(),!h||!m)return;const p=hc(f),v=hc(a.clientWidth-(d+h)),g=hc(a.clientHeight-(f+m)),b=hc(d),w={rootMargin:-p+"px "+-v+"px "+-g+"px "+-b+"px",threshold:lo(0,pa(1,u))||1};let y=!0;function S(E){const _=E[0].intersectionRatio;if(_!==u){if(!y)return r();_?r(!1,_):o=setTimeout(()=>{r(!1,1e-7)},1e3)}_===1&&!pC(c,e.getBoundingClientRect())&&r(),y=!1}try{n=new IntersectionObserver(S,{...w,root:a.ownerDocument})}catch(E){n=new IntersectionObserver(S,w)}n.observe(e)}return r(!0),l}function _H(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,c=av(e),d=a||l?[...c?Ci(c):[],...Ci(t)]:[];d.forEach(b=>{a&&b.addEventListener("scroll",n,{passive:!0}),l&&b.addEventListener("resize",n)});const f=c&&i?$H(c,n):null;let h=-1,m=null;r&&(m=new ResizeObserver(b=>{let[C]=b;C&&C.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=m)==null||w.observe(t)})),n()}),c&&!u&&m.observe(c),m.observe(t));let p,v=u?ur(e):null;u&&g();function g(){const b=ur(e);v&&!pC(v,b)&&n(),v=b,p=requestAnimationFrame(g)}return n(),()=>{var b;d.forEach(C=>{a&&C.removeEventListener("scroll",n),l&&C.removeEventListener("resize",n)}),f==null||f(),(b=m)==null||b.disconnect(),m=null,u&&cancelAnimationFrame(p)}}const TH=ir,OH=Z5,RH=J5,xH=Y5,vC=W5,hC=(e,t,n)=>{const o=new Map,a={platform:EH,...n},l={...a.platform,_c:o};return H5(e,t,{...a,platform:l})},IH=he({}),MH=e=>{if(!Tt)return;if(!e)return e;const t=kn(e);return t||(Yn(e)?t:e)},NH=(e,t)=>{const n=e==null?void 0:e[t];return vn(n)?"":`${n}px`},AH=({middleware:e,placement:t,strategy:n})=>{const o=P(),a=P(),l=P(),r=P(),i=P({}),u={x:l,y:r,placement:t,strategy:n,middlewareData:i},c=async()=>{if(!Tt)return;const d=MH(o),f=kn(a);if(!d||!f)return;const h=await hC(d,f,{placement:s(t),strategy:s(n),middleware:s(e)});Wr(u).forEach(m=>{u[m].value=h[m]})};return ut(()=>{io(()=>{c()})}),{...u,update:c,referenceRef:o,contentRef:a}},PH=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const o=s(e);return o?vC({element:o,padding:t}).fn(n):{}}});function mC(e){let t;function n(){if(e.value==null)return;const{selectionStart:a,selectionEnd:l,value:r}=e.value;if(a==null||l==null)return;const i=r.slice(0,Math.max(0,a)),u=r.slice(Math.max(0,l));t={selectionStart:a,selectionEnd:l,value:r,beforeTxt:i,afterTxt:u}}function o(){if(e.value==null||t==null)return;const{value:a}=e.value,{beforeTxt:l,afterTxt:r,selectionStart:i}=t;if(l==null||r==null||i==null)return;let u=a.length;if(a.endsWith(r))u=a.length-r.length;else if(a.startsWith(l))u=l.length;else{const c=l[i-1],d=a.indexOf(c,i-1);d!==-1&&(u=d+1)}e.value.setSelectionRange(u,u)}return[n,o]}const LH=(e,t,n)=>No(e.subTree).filter(l=>{var r;return Jt(l)&&((r=l.type)==null?void 0:r.name)===t&&!!l.component}).map(l=>l.component.uid).map(l=>n[l]).filter(l=>!!l),Si=(e,t)=>{const n=Zt({}),o=Zt([]),a=new WeakMap,l=d=>{n.value[d.uid]=d,du(n),ut(()=>{const f=d.getVnode().el,h=f.parentNode;if(!a.has(h)){a.set(h,[]);const m=h.insertBefore.bind(h);h.insertBefore=(p,v)=>(a.get(h).some(b=>p===b||v===b)&&du(n),m(p,v))}a.get(h).push(f)})},r=d=>{delete n.value[d.uid],du(n);const f=d.getVnode().el,h=f.parentNode,m=a.get(h),p=m.indexOf(f);m.splice(p,1)},i=()=>{o.value=LH(e,t,n.value)},u=d=>d.render(),c=ae({setup(d,{slots:f}){return()=>(i(),f.default?Le(u,{render:f.default}):null)}});return{children:o,addChild:l,removeChild:r,ChildrenSorter:c}},Tn=ca({type:String,values:oa,required:!1}),DH={size:Tn},rv=Symbol("size"),sv=()=>{const e=Ee(rv,{});return k(()=>s(e.size)||"")};function Ha(e,{disabled:t,beforeFocus:n,afterFocus:o,beforeBlur:a,afterBlur:l}={}){const r=ct(),{emit:i}=r,u=Zt(),c=P(!1),d=m=>{const p=lt(n)?n(m):!1;s(t)||c.value||p||(c.value=!0,i("focus",m),o==null||o())},f=m=>{var p;const v=lt(a)?a(m):!1;s(t)||m.relatedTarget&&((p=u.value)==null?void 0:p.contains(m.relatedTarget))||v||(c.value=!1,i("blur",m),l==null||l())},h=m=>{var p,v;s(t)||Ns(m.target)||((p=u.value)==null?void 0:p.contains(document.activeElement))&&u.value!==document.activeElement||(v=e.value)==null||v.focus()};return ie([u,()=>s(t)],([m,p])=>{!m||(p?m.removeAttribute("tabindex"):m.setAttribute("tabindex","-1"))}),Mt(u,"focus",d,!0),Mt(u,"blur",f,!0),Mt(u,"click",h,!0),{isFocused:c,wrapperRef:u,handleFocus:d,handleBlur:f}}function as({afterComposition:e,emit:t}){const n=P(!1),o=i=>{t==null||t("compositionstart",i),n.value=!0},a=i=>{var u;t==null||t("compositionupdate",i);const c=(u=i.target)==null?void 0:u.value,d=c[c.length-1]||"";n.value=!uz(d)},l=i=>{t==null||t("compositionend",i),n.value&&(n.value=!1,ke(()=>e(i)))};return{isComposing:n,handleComposition:i=>{i.type==="compositionend"?l(i):a(i)},handleCompositionStart:o,handleCompositionUpdate:a,handleCompositionEnd:l}}const iv=Symbol("emptyValuesContextKey"),BH="use-empty-values",gC=["",void 0,null],bC=void 0,Dl=he({emptyValues:Array,valueOnClear:{type:q([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=lt(e)?e():e,$e(e)?e.every(t=>!t):!e)}}),ls=(e,t)=>{const n=ct()?Ee(iv,P({})):P({}),o=k(()=>e.emptyValues||n.value.emptyValues||gC),a=k(()=>lt(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:lt(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:bC),l=r=>{let i=!0;return $e(r)?i=o.value.some(u=>un(r,u)):i=o.value.includes(r),i};return l(a.value),{emptyValues:o,valueOnClear:a,isEmptyValue:l}},yC=he({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Gn=e=>xa(yC,e),uv=Symbol(),Sc=P();function cr(e,t=void 0){const n=ct()?Ee(uv,Sc):Sc;return e?k(()=>{var o,a;return(a=(o=n.value)==null?void 0:o[e])!=null?a:t}):n}function ki(e,t){const n=cr(),o=fe(e,k(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||jr})),a=wt(k(()=>{var i;return(i=n.value)==null?void 0:i.locale})),l=Qr(k(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||Up})),r=k(()=>{var i;return s(t)||((i=n.value)==null?void 0:i.size)||""});return kc(k(()=>s(n)||{})),{ns:o,locale:a,zIndex:l,size:r}}const kc=(e,t,n=!1)=>{var o;const a=!!ct(),l=a?cr():void 0,r=(o=t==null?void 0:t.provide)!=null?o:a?St:void 0;if(!r)return;const i=k(()=>{const u=s(e);return l!=null&&l.value?FH(l.value,u):u});return r(uv,i),r(Ip,k(()=>i.value.locale)),r(Mp,k(()=>i.value.namespace)),r(qp,k(()=>i.value.zIndex)),r(rv,{size:k(()=>i.value.size||"")}),r(iv,k(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(n||!Sc.value)&&(Sc.value=i.value),i},FH=(e,t)=>{const n=[...new Set([...Wr(e),...Wr(t)])],o={};for(const a of n)o[a]=t[a]!==void 0?t[a]:e[a];return o},wC=he({a11y:{type:Boolean,default:!0},locale:{type:q(Object)},size:Tn,button:{type:q(Object)},card:{type:q(Object)},dialog:{type:q(Object)},link:{type:q(Object)},experimentalFeatures:{type:q(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:q(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Dl}),qn={placement:"top"},VH=ae({name:"ElConfigProvider",props:wC,setup(e,{slots:t}){const n=kc(e);return ie(()=>e.message,o=>{var a,l;Object.assign(qn,(l=(a=n==null?void 0:n.value)==null?void 0:a.message)!=null?l:{},o!=null?o:{})},{immediate:!0,deep:!0}),()=>ee(t,"default",{config:n==null?void 0:n.value})}}),CC=Qe(VH),zH="0.0.20260109",SC=(e=[])=>({version:zH,install:(n,o)=>{n[Yd]||(n[Yd]=!0,e.forEach(a=>n.use(a)),o&&kc(o,n,!0))}}),Ei=he({to:{type:q([String,Object]),required:!0},disabled:Boolean});var ye=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n};const HH=ae({__name:"teleport",props:Ei,setup(e){return(t,n)=>t.disabled?ee(t.$slots,"default",{key:0}):($(),oe(Mg,{key:1,to:t.to},[ee(t.$slots,"default")],8,["to"]))}});var WH=ye(HH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/teleport/src/teleport.vue"]]);const KH=Qe(WH);var rs=KH;const kC=he({zIndex:{type:q([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"},teleported:Boolean,appendTo:{type:Ei.to.type,default:"body"}}),EC={scroll:({scrollTop:e,fixed:t})=>xe(e)&&zt(t),[ht]:e=>zt(e)},$C="ElAffix",jH=ae({name:$C,__name:"affix",props:kC,emits:EC,setup(e,{expose:t,emit:n}){const o=e,a=n,l=fe("affix"),r=Zt(),i=Zt(),u=Zt(),{height:c}=Jd(),{height:d,width:f,top:h,bottom:m,left:p,update:v}=Zg(i,{windowScroll:!1}),g=Zg(r),b=P(!1),C=P(0),w=P(0),y=k(()=>!o.teleported||!b.value),S=k(()=>({height:b.value?`${d.value}px`:"",width:b.value?`${f.value}px`:""})),E=k(()=>{if(!b.value)return{};const O=cn(o.offset);return{height:`${d.value}px`,width:`${f.value}px`,top:o.position==="top"?O:"",bottom:o.position==="bottom"?O:"",left:o.teleported?`${p.value}px`:"",transform:w.value?`translateY(${w.value}px)`:"",zIndex:o.zIndex}}),_=()=>{if(!u.value)return;C.value=u.value instanceof Window?document.documentElement.scrollTop:u.value.scrollTop||0;const{position:O,target:A,offset:M}=o,L=M+d.value;if(O==="top")if(A){const H=g.bottom.value-L;b.value=M>h.value&&g.bottom.value>0,w.value=H<0?H:0}else b.value=M>h.value;else if(A){const H=c.value-g.top.value-L;b.value=c.value-M<m.value&&c.value>g.top.value,w.value=H<0?-H:0}else b.value=c.value-M<m.value},T=async()=>{if(!b.value){v();return}b.value=!1,await ke(),v(),b.value=!0},N=async()=>{v(),await ke(),a("scroll",{scrollTop:C.value,fixed:b.value})};return ie(b,O=>a(ht,O)),ut(()=>{var O;o.target?(r.value=(O=document.querySelector(o.target))!=null?O:void 0,r.value||_n($C,`Target does not exist: ${o.target}`)):r.value=document.documentElement,u.value=kp(i.value,!0),v()}),Mt(u,"scroll",N),io(_),t({update:_,updateRoot:T}),(O,A)=>($(),F("div",{ref_key:"root",ref:i,class:x(s(l).b()),style:Ie(S.value)},[Z(s(rs),{disabled:y.value,to:O.appendTo},{default:Q(()=>[W("div",{class:x({[s(l).m("fixed")]:b.value}),style:Ie(E.value)},[ee(O.$slots,"default")],6)]),_:3},8,["disabled","to"])],6))}});var YH=ye(jH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const _C=Qe(YH),TC=he({size:{type:q([Number,String])},color:{type:String}}),UH=ae({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:TC,setup(e){const t=e,n=fe("icon"),o=k(()=>{const{size:a,color:l}=t,r=cn(a);return!r&&!l?{}:{fontSize:r,"--color":l}});return(a,l)=>($(),F("i",rt({class:s(n).b(),style:o.value},a.$attrs),[ee(a.$slots,"default")],16))}});var GH=ye(UH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const _e=Qe(GH),OC=["light","dark"],RC=he({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Wr(Al),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:OC,default:"light"},showAfter:Number,hideAfter:Number,autoClose:Number}),xC={close:e=>e instanceof MouseEvent},qH=ae({name:"ElAlert",__name:"alert",props:RC,emits:xC,setup(e,{emit:t}){const{Close:n}=Tp,o=e,a=t,l=mn(),r=fe("alert"),i=P(!0),u=k(()=>Al[o.type]),c=k(()=>{var f;if(o.description)return!0;const h=(f=l.default)==null?void 0:f.call(l);return h?No(h).some(p=>!Z1(p)):!1}),d=f=>{i.value=!1,a("close",f)};return o.showAfter||o.hideAfter||o.autoClose,(f,h)=>($(),oe(Wn,{name:s(r).b("fade"),persisted:""},{default:Q(()=>[tt(W("div",{class:x([s(r).b(),s(r).m(f.type),s(r).is("center",f.center),s(r).is(f.effect)]),role:"alert"},[f.showIcon&&(f.$slots.icon||u.value)?($(),oe(s(_e),{key:0,class:x([s(r).e("icon"),s(r).is("big",c.value)])},{default:Q(()=>[ee(f.$slots,"icon",{},()=>[($(),oe(at(u.value)))])]),_:3},8,["class"])):te("v-if",!0),W("div",{class:x(s(r).e("content"))},[f.title||f.$slots.title?($(),F("span",{key:0,class:x([s(r).e("title"),{"with-description":c.value}])},[ee(f.$slots,"title",{},()=>[bt(ge(f.title),1)])],2)):te("v-if",!0),c.value?($(),F("p",{key:1,class:x(s(r).e("description"))},[ee(f.$slots,"default",{},()=>[bt(ge(f.description),1)])],2)):te("v-if",!0),f.closable?($(),F(Be,{key:2},[f.closeText?($(),F("div",{key:0,class:x([s(r).e("close-btn"),s(r).is("customed")]),onClick:d},ge(f.closeText),3)):($(),oe(s(_e),{key:1,class:x(s(r).e("close-btn")),onClick:d},{default:Q(()=>[Z(s(n))]),_:1},8,["class"]))],64)):te("v-if",!0)],2)],2),[[xt,i.value]])]),_:3},8,["name"]))}});var XH=ye(qH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const IC=Qe(XH),Bl=Symbol("formContextKey"),ya=Symbol("formItemContextKey"),wn=(e,t={})=>{const n=P(void 0),o=t.prop?n:Ap("size"),a=t.global?n:sv(),l=t.form?{size:void 0}:Ee(Bl,void 0),r=t.formItem?{size:void 0}:Ee(ya,void 0);return k(()=>o.value||s(e)||(r==null?void 0:r.size)||(l==null?void 0:l.size)||a.value||"")},on=e=>{const t=Ap("disabled"),n=Ee(Bl,void 0);return k(()=>{var o,a,l;return(l=(a=(o=t.value)!=null?o:s(e))!=null?a:n==null?void 0:n.disabled)!=null?l:!1})},ZH=wn,JH=on,Pn=()=>{const e=Ee(Bl,void 0),t=Ee(ya,void 0);return{form:e,formItem:t}},Eo=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=P(!1)),o||(o=P(!1));const a=ct(),l=()=>{let c=a==null?void 0:a.parent;for(;c;){if(c.type.name==="ElFormItem")return!1;if(c.type.name==="ElLabelWrap")return!0;c=c.parent}return!1},r=P();let i;const u=k(()=>{var c;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((c=t.inputIds)==null?void 0:c.length)<=1)});return ut(()=>{i=ie([Lt(e,"id"),n],([c,d])=>{const f=c!=null?c:d?void 0:Vn().value;f!==r.value&&((t==null?void 0:t.removeInputId)&&!l()&&(r.value&&t.removeInputId(r.value),!(o!=null&&o.value)&&!d&&f&&t.addInputId(f)),r.value=f)},{immediate:!0})}),Ms(()=>{i&&i(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:u,inputId:r}},MC=he({size:{type:String,values:oa},disabled:Boolean}),NC=he({...MC,model:Object,rules:{type:q(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:q([Object,Boolean]),default:!0}}),AC={validate:(e,t,n)=>($e(e)||He(e))&&zt(t)&&He(n)};function QH(){const e=P([]),t=k(()=>{if(!e.value.length)return"0";const l=Math.max(...e.value);return l?`${l}px`:""});function n(l){const r=e.value.indexOf(l);return r===-1&&t.value,r}function o(l,r){if(l&&r){const i=n(r);e.value.splice(i,1,l)}else l&&e.value.push(l)}function a(l){const r=n(l);r>-1&&e.value.splice(r,1)}return{autoLabelWidth:t,registerLabelWidth:o,deregisterLabelWidth:a}}const Ec=(e,t)=>{const n=An(t).map(o=>$e(o)?o.join("."):o);return n.length>0?e.filter(o=>o.propString&&n.includes(o.propString)):e},eW="ElForm",tW=ae({name:eW,__name:"form",props:NC,emits:AC,setup(e,{expose:t,emit:n}){const o=e,a=n,l=P(),r=Pt([]),i=wn(),u=fe("form"),c=k(()=>{const{labelPosition:E,inline:_}=o;return[u.b(),u.m(i.value||"default"),{[u.m(`label-${E}`)]:E,[u.m("inline")]:_}]}),d=E=>Ec(r,[E])[0],f=E=>{r.push(E)},h=E=>{E.prop&&r.splice(r.indexOf(E),1)},m=E=>{!o.model||!E||r.forEach(_=>{if(_.prop&&By(E,_.prop)){const T=Kr(E,_.prop).value;_.setInitialValue(T)}})},p=(E=[])=>{!o.model||Ec(r,E).forEach(_=>_.resetField())},v=(E=[])=>{Ec(r,E).forEach(_=>_.clearValidate())},g=k(()=>!!o.model),b=E=>{if(r.length===0)return[];const _=Ec(r,E);return _.length?_:[]},C=async E=>y(void 0,E),w=async(E=[])=>{if(!g.value)return!1;const _=b(E);if(_.length===0)return!0;let T={};for(const N of _)try{await N.validate(""),N.validateState==="error"&&!N.error&&N.resetField()}catch(O){T={...T,...O}}return Object.keys(T).length===0?!0:Promise.reject(T)},y=async(E=[],_)=>{let T=!1;const N=!lt(_);try{return T=await w(E),T===!0&&await(_==null?void 0:_(T)),T}catch(O){if(O instanceof Error)throw O;const A=O;if(o.scrollToError&&l.value){const M=l.value.querySelector(`.${u.b()}-item.is-error`);M==null||M.scrollIntoView(o.scrollIntoViewOptions)}return!T&&await(_==null?void 0:_(!1,A)),N&&Promise.reject(A)}},S=E=>{var _;const T=d(E);T&&((_=T.$el)==null||_.scrollIntoView(o.scrollIntoViewOptions))};return ie(()=>o.rules,()=>{o.validateOnRuleChange&&C().catch(E=>void 0)},{deep:!0,flush:"post"}),St(Bl,Pt({...Mn(o),emit:a,resetFields:p,clearValidate:v,validateField:y,getField:d,addField:f,removeField:h,setInitialValues:m,...QH()})),t({validate:C,validateField:y,resetFields:p,clearValidate:v,scrollToField:S,getField:d,fields:r,setInitialValues:m}),(E,_)=>($(),F("form",{ref_key:"formRef",ref:l,class:x(c.value)},[ee(E.$slots,"default")],2))}});var nW=ye(tW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},dr.apply(this,arguments)}function oW(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$i(e,t)}function cv(e){return cv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cv(e)}function $i(e,t){return $i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,a){return o.__proto__=a,o},$i(e,t)}function aW(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function $c(e,t,n){return aW()?$c=Reflect.construct.bind():$c=function(a,l,r){var i=[null];i.push.apply(i,l);var u=Function.bind.apply(a,i),c=new u;return r&&$i(c,r.prototype),c},$c.apply(null,arguments)}function lW(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function dv(e){var t=typeof Map=="function"?new Map:void 0;return dv=function(o){if(o===null||!lW(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(o))return t.get(o);t.set(o,a)}function a(){return $c(o,arguments,cv(this).constructor)}return a.prototype=Object.create(o.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),$i(a,o)},dv(e)}var rW=/%[sdj%]/g,sW=function(){};typeof process!="undefined"&&process.env;function fv(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var o=n.field;t[o]=t[o]||[],t[o].push(n)}),t}function Lo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var a=0,l=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var r=e.replace(rW,function(i){if(i==="%%")return"%";if(a>=l)return i;switch(i){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch(u){return"[Circular]"}break;default:return i}});return r}return e}function iW(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function zn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||iW(t)&&typeof e=="string"&&!e)}function uW(e,t,n){var o=[],a=0,l=e.length;function r(i){o.push.apply(o,i||[]),a++,a===l&&n(o)}e.forEach(function(i){t(i,r)})}function PC(e,t,n){var o=0,a=e.length;function l(r){if(r&&r.length){n(r);return}var i=o;o=o+1,i<a?t(e[i],l):n([])}l([])}function cW(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var LC=function(e){oW(t,e);function t(n,o){var a;return a=e.call(this,"Async Validation Error")||this,a.errors=n,a.fields=o,a}return t}(dv(Error));function dW(e,t,n,o,a){if(t.first){var l=new Promise(function(h,m){var p=function(b){return o(b),b.length?m(new LC(b,fv(b))):h(a)},v=cW(e);PC(v,n,p)});return l.catch(function(h){return h}),l}var r=t.firstFields===!0?Object.keys(e):t.firstFields||[],i=Object.keys(e),u=i.length,c=0,d=[],f=new Promise(function(h,m){var p=function(g){if(d.push.apply(d,g),c++,c===u)return o(d),d.length?m(new LC(d,fv(d))):h(a)};i.length||(o(d),h(a)),i.forEach(function(v){var g=e[v];r.indexOf(v)!==-1?PC(g,n,p):uW(g,n,p)})});return f.catch(function(h){return h}),f}function fW(e){return!!(e&&e.message!==void 0)}function pW(e,t){for(var n=e,o=0;o<t.length;o++){if(n==null)return n;n=n[t[o]]}return n}function DC(e,t){return function(n){var o;return e.fullFields?o=pW(t,e.fullFields):o=t[n.field||e.fullField],fW(n)?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:typeof n=="function"?n():n,fieldValue:o,field:n.field||e.fullField}}}function BC(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];typeof o=="object"&&typeof e[n]=="object"?e[n]=dr({},e[n],o):e[n]=o}}return e}var FC=function(t,n,o,a,l,r){t.required&&(!o.hasOwnProperty(t.field)||zn(n,r||t.type))&&a.push(Lo(l.messages.required,t.fullField))},vW=function(t,n,o,a,l){(/^\s+$/.test(n)||n==="")&&a.push(Lo(l.messages.whitespace,t.fullField))},_c,hW=function(){if(_c)return _c;var e="[a-fA-F\\d:]",t=function(y){return y&&y.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",a=(`
33
33
  (?:
34
34
  (?:`+o+":){7}(?:"+o+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
35
35
  (?:`+o+":){6}(?:"+n+"|:"+o+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
@@ -64,6 +64,6 @@ function print() { __p += __j.call(arguments, '') }
64
64
  m 0 ${y?"":"-"}${w}
65
65
  a ${w} ${w} 0 1 1 0 ${y?"-":""}${w*2}
66
66
  a ${w} ${w} 0 1 1 0 ${y?"":"-"}${w*2}
67
- `}),u=k(()=>2*Math.PI*r.value),c=k(()=>n.type==="dashboard"?.75:1),d=k(()=>`${-1*u.value*(1-c.value)/2}px`),f=k(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:d.value})),h=k(()=>({strokeDasharray:`${u.value*c.value*(n.percentage/100)}px, ${u.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),m=k(()=>{let w;return n.color?w=C(n.percentage):w=t[n.status]||t.default,w}),p=k(()=>n.status==="warning"?ac:n.type==="line"?n.status==="success"?$p:cl:n.status==="success"?ii:Uo),v=k(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),g=k(()=>n.format(n.percentage));function b(w){const y=100/w.length;return w.map((E,_)=>He(E)?{color:E,percentage:(_+1)*y}:E).sort((E,_)=>E.percentage-_.percentage)}const C=w=>{var y;const{color:S}=n;if(lt(S))return S(w);if(He(S))return S;{const E=b(S);for(const _ of E)if(_.percentage>w)return _.color;return(y=E[E.length-1])==null?void 0:y.color}};return(w,y)=>($(),F("div",{class:x([s(o).b(),s(o).m(w.type),s(o).is(w.status),{[s(o).m("without-text")]:!w.showText,[s(o).m("text-inside")]:w.textInside}]),role:"progressbar","aria-valuenow":w.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[w.type==="line"?($(),F("div",{key:0,class:x(s(o).b("bar"))},[W("div",{class:x(s(o).be("bar","outer")),style:Ie({height:`${w.strokeWidth}px`})},[W("div",{class:x([s(o).be("bar","inner"),{[s(o).bem("bar","inner","indeterminate")]:w.indeterminate},{[s(o).bem("bar","inner","striped")]:w.striped},{[s(o).bem("bar","inner","striped-flow")]:w.stripedFlow}]),style:Ie(a.value)},[(w.showText||w.$slots.default)&&w.textInside?($(),F("div",{key:0,class:x(s(o).be("bar","innerText"))},[ee(w.$slots,"default",{percentage:w.percentage},()=>[W("span",null,ge(g.value),1)])],2)):te("v-if",!0)],6)],6)],2)):($(),F("div",{key:1,class:x(s(o).b("circle")),style:Ie({height:`${w.width}px`,width:`${w.width}px`})},[($(),F("svg",oZ,[W("path",{class:x(s(o).be("circle","track")),d:i.value,stroke:`var(${s(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":w.strokeLinecap,"stroke-width":l.value,fill:"none",style:Ie(f.value)},null,14,aZ),W("path",{class:x(s(o).be("circle","path")),d:i.value,stroke:m.value,fill:"none",opacity:w.percentage?1:0,"stroke-linecap":w.strokeLinecap,"stroke-width":l.value,style:Ie(h.value)},null,14,lZ)]))],6)),(w.showText||w.$slots.default)&&!w.textInside?($(),F("div",{key:2,class:x(s(o).e("text")),style:Ie({fontSize:`${v.value}px`})},[ee(w.$slots,"default",{percentage:w.percentage},()=>[w.status?($(),oe(s(_e),{key:1},{default:Q(()=>[($(),oe(at(p.value)))]),_:1})):($(),F("span",rZ,ge(g.value),1))])],6)):te("v-if",!0)],10,nZ))}});var iZ=ye(sZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const cm=Qe(iZ),w$=he({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:q([Array,Object]),default:()=>dn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:q([Array,Object]),default:()=>[oc,oc,oc]},voidIcon:{type:Ht,default:()=>ZV},disabledVoidIcon:{type:Ht,default:()=>oc},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:q(Array),default:()=>dn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Tn,clearable:Boolean,...Gn(["ariaLabel"])}),C$={[ht]:e=>xe(e),[Ye]:e=>xe(e)},uZ=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],cZ=["onMousemove","onClick"],dZ=ae({name:"ElRate",__name:"rate",props:w$,emits:C$,setup(e,{expose:t,emit:n}){function o(R,D){const B=V=>Rt(V),z=Object.keys(D).map(V=>+V).filter(V=>{const G=D[V];return(B(G)?G.excluded:!1)?R<V:R<=V}).sort((V,G)=>V-G),U=D[z[0]];return B(U)&&U.value||U}const a=e,l=n,r=Ee(ya,void 0),i=wn(),u=fe("rate"),{inputId:c,isLabeledByFormItem:d}=Eo(a,{formItemContext:r}),f=P(a.modelValue),h=P(-1),m=P(!0),p=P([]),v=k(()=>p.value.map(R=>R.$el.clientWidth)),g=k(()=>[u.b(),u.m(i.value)]),b=on(),C=k(()=>u.cssVarBlock({"void-color":a.voidColor,"disabled-void-color":a.disabledVoidColor,"fill-color":E.value})),w=k(()=>{let R="";return a.showScore?R=a.scoreTemplate.replace(/\{\s*value\s*\}/,b.value?`${a.modelValue}`:`${f.value}`):a.showText&&(R=a.texts[Math.ceil(f.value)-1]),R}),y=k(()=>a.modelValue*100-Math.floor(a.modelValue)*100),S=k(()=>$e(a.colors)?{[a.lowThreshold]:a.colors[0],[a.highThreshold]:{value:a.colors[1],excluded:!0},[a.max]:a.colors[2]}:a.colors),E=k(()=>{const R=o(f.value,S.value);return Rt(R)?"":R}),_=k(()=>{let R="";return b.value?R=`${y.value}%`:a.allowHalf&&(R="50%"),{color:E.value,width:R}}),T=k(()=>{let R=$e(a.icons)?[...a.icons]:{...a.icons};return R=Cl(R),$e(R)?{[a.lowThreshold]:R[0],[a.highThreshold]:{value:R[1],excluded:!0},[a.max]:R[2]}:R}),N=k(()=>o(a.modelValue,T.value)),O=k(()=>b.value?He(a.disabledVoidIcon)?a.disabledVoidIcon:Cl(a.disabledVoidIcon):He(a.voidIcon)?a.voidIcon:Cl(a.voidIcon)),A=k(()=>o(f.value,T.value));function M(R){const D=b.value&&y.value>0&&R-1<a.modelValue&&R>a.modelValue,B=a.allowHalf&&m.value&&R-.5<=f.value&&R>f.value;return D||B}function L(R){a.clearable&&R===a.modelValue&&(R=0),l(Ye,R),a.modelValue!==R&&l(ht,R)}function H(R){b.value||(a.allowHalf&&m.value?L(f.value):L(R))}function K(R){if(b.value)return;const D=Wt(R),B=a.allowHalf?.5:1;let z=f.value;switch(D){case pe.up:case pe.right:z+=B;break;case pe.left:case pe.down:z-=B;break}if(z=Zs(z,0,a.max),z!==f.value)return R.stopPropagation(),R.preventDefault(),l(Ye,z),l(ht,z),z}function Y(R,D){b.value||(a.allowHalf&&D?(m.value=D.offsetX*2<=v.value[R-1],f.value=m.value?R-.5:R):f.value=R,h.value=R)}function I(){b.value||(a.allowHalf&&(m.value=a.modelValue!==Math.floor(a.modelValue)),f.value=a.modelValue,h.value=-1)}return ie(()=>a.modelValue,R=>{f.value=R,m.value=a.modelValue!==Math.floor(a.modelValue)}),a.modelValue||l(Ye,0),t({setCurrentValue:Y,resetCurrentValue:I}),(R,D)=>{var B;return $(),F("div",{id:s(c),class:x([g.value,s(u).is("disabled",s(b))]),role:"slider","aria-label":s(d)?void 0:R.ariaLabel||"rating","aria-labelledby":s(d)?(B=s(r))==null?void 0:B.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":w.value||void 0,"aria-valuemin":"0","aria-valuemax":R.max,tabindex:"0",style:Ie(C.value),onKeydown:K},[($(!0),F(Be,null,yt(R.max,(z,U)=>($(),F("span",{key:U,class:x(s(u).e("item")),onMousemove:V=>Y(z,V),onMouseleave:I,onClick:V=>H(z)},[Z(s(_e),{ref_for:!0,ref_key:"iconRefs",ref:p,class:x([s(u).e("icon"),{hover:h.value===z},s(u).is("active",z<=f.value),s(u).is("focus-visible",z===Math.ceil(f.value||1))])},{default:Q(()=>[tt(($(),oe(at(A.value),null,null,512)),[[xt,!M(z)&&z<=f.value]]),tt(($(),oe(at(O.value),null,null,512)),[[xt,!M(z)&&z>f.value]]),tt(($(),oe(at(O.value),{class:x([s(u).em("decimal","box")])},null,8,["class"])),[[xt,M(z)]]),tt(Z(s(_e),{style:Ie(_.value),class:x([s(u).e("icon"),s(u).e("decimal")])},{default:Q(()=>[($(),oe(at(N.value)))]),_:1},8,["style","class"]),[[xt,M(z)]])]),_:2},1032,["class"])],42,cZ))),128)),R.showText||R.showScore?($(),F("span",{key:0,class:x(s(u).e("text")),style:Ie({color:R.textColor})},ge(w.value),7)):te("v-if",!0)],46,uZ)}}});var fZ=ye(dZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const S$=Qe(fZ),Wl={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},dm={[Wl.primary]:ui,[Wl.success]:uV,[Wl.warning]:ac,[Wl.error]:_p,[Wl.info]:ui},k$=he({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}}),pZ=ae({name:"ElResult",__name:"result",props:k$,setup(e){const t=e,n=fe("result"),o=k(()=>{const a=t.icon,l=a&&Wl[a]?Wl[a]:"icon-info",r=dm[l]||dm["icon-info"];return{class:l,component:r}});return(a,l)=>($(),F("div",{class:x(s(n).b())},[W("div",{class:x(s(n).e("icon"))},[ee(a.$slots,"icon",{},()=>[o.value.component?($(),oe(at(o.value.component),{key:0,class:x(o.value.class)},null,8,["class"])):te("v-if",!0)])],2),a.title||a.$slots.title?($(),F("div",{key:0,class:x(s(n).e("title"))},[ee(a.$slots,"title",{},()=>[W("p",null,ge(a.title),1)])],2)):te("v-if",!0),a.subTitle||a.$slots["sub-title"]?($(),F("div",{key:1,class:x(s(n).e("subtitle"))},[ee(a.$slots,"sub-title",{},()=>[W("p",null,ge(a.subTitle),1)])],2)):te("v-if",!0),a.$slots.extra?($(),F("div",{key:2,class:x(s(n).e("extra"))},[ee(a.$slots,"extra")],2)):te("v-if",!0)],2))}});var vZ=ye(pZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const E$=Qe(vZ);var $$=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function hZ(e,t){return!!(e===t||$$(e)&&$$(t))}function mZ(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!hZ(e[n],t[n]))return!1;return!0}function gZ(e,t){t===void 0&&(t=mZ);var n=null;function o(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];if(n&&n.lastThis===this&&t(a,n.lastArgs))return n.lastResult;var r=e.apply(this,a);return n={lastResult:r,lastArgs:a,lastThis:this},r}return o.clear=function(){n=null},o}const _$=()=>{const t=ct().proxy.$props;return k(()=>{const n=(o,a,l)=>({});return t.perfMode?Gs(n):gZ(n)})},fm=50,fd="itemRendered",pd="scroll",gs="forward",vd="backward",ta="auto",hd="smart",ji="start",ja="center",Yi="end",bs="horizontal",T$="vertical",bZ="ltr",ys="rtl",Ui="negative",pm="positive-ascending",vm="positive-descending",yZ={[bs]:"left",[T$]:"top"},wZ=20,CZ=({atEndEdge:e,atStartEdge:t,layout:n},o)=>{let a,l=0;const r=u=>u<0&&t.value||u>0&&e.value;return{hasReachedEdge:r,onWheel:u=>{sl(a);let{deltaX:c,deltaY:d}=u;u.shiftKey&&d!==0&&(c=d,d=0);const f=n.value===bs?c:d;r(f)||(l+=f,!Qd()&&f!==0&&u.preventDefault(),a=Ma(()=>{o(l),l=0}))}}};var O$=CZ;const hm=ca({type:q([Number,Function]),required:!0}),mm=ca({type:Number}),gm=ca({type:Number,default:2}),SZ=ca({type:String,values:["ltr","rtl"],default:"ltr"}),bm=ca({type:Number,default:0}),md=ca({type:Number,required:!0}),R$=ca({type:String,values:["horizontal","vertical"],default:T$}),ym=he({className:{type:String,default:""},containerElement:{type:q([String,Object]),default:"div"},data:{type:q(Array),default:()=>dn([])},direction:SZ,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},innerProps:{type:q(Object),default:()=>({})},style:{type:q([Object,String,Array])},useIsScrolling:Boolean,width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),wm=he({cache:gm,estimatedItemSize:mm,layout:R$,initScrollOffset:bm,total:md,itemSize:hm,...ym}),Cm={type:Number,default:6},x$={type:Number,default:0},I$={type:Number,default:2},Kl=he({columnCache:gm,columnWidth:hm,estimatedColumnWidth:mm,estimatedRowHeight:mm,initScrollLeft:bm,initScrollTop:bm,itemKey:{type:q(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:gm,rowHeight:hm,totalColumn:md,totalRow:md,hScrollbarSize:Cm,vScrollbarSize:Cm,scrollbarStartGap:x$,scrollbarEndGap:I$,role:String,...ym}),Sm=he({alwaysOn:Boolean,class:String,layout:R$,total:md,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:Cm,startGap:x$,endGap:I$,visible:Boolean}),br=(e,t)=>e<t?gs:vd,Gi=e=>e===bZ||e===ys||e===bs,M$=e=>e===ys;let ws=null;function gd(e=!1){if(ws===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const o=document.createElement("div"),a=o.style;return a.width="100px",a.height="100px",t.appendChild(o),document.body.appendChild(t),t.scrollLeft>0?ws=vm:(t.scrollLeft=1,t.scrollLeft===0?ws=Ui:ws=pm),document.body.removeChild(t),ws}return ws}function kZ({move:e,size:t,bar:n},o){const a={},l=`translate${n.axis}(${e}px)`;return a[n.size]=t,a.transform=l,o==="horizontal"?a.height="100%":a.width="100%",a}const EZ=ae({name:"ElVirtualScrollBar",props:Sm,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=k(()=>e.startGap+e.endGap),o=fe("virtual-scrollbar"),a=fe("scrollbar"),l=P(),r=P();let i=null,u=null;const c=Pt({isDragging:!1,traveled:0}),d=k(()=>mv[e.layout]),f=k(()=>e.clientSize-s(n)),h=k(()=>({position:"absolute",width:`${bs===e.layout?f.value:e.scrollbarSize}px`,height:`${bs===e.layout?e.scrollbarSize:f.value}px`,[yZ[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),m=k(()=>{const E=e.ratio;if(E>=100)return Number.POSITIVE_INFINITY;if(E>=50)return E*f.value/100;const _=f.value/3;return Math.floor(Math.min(Math.max(E*f.value/100,wZ),_))}),p=k(()=>{if(!Number.isFinite(m.value))return{display:"none"};const E=`${m.value}px`;return kZ({bar:d.value,size:E,move:c.traveled},e.layout)}),v=k(()=>Math.ceil(e.clientSize-m.value-s(n))),g=()=>{window.addEventListener("mousemove",y),window.addEventListener("mouseup",w);const E=s(r);!E||(u=document.onselectstart,document.onselectstart=()=>!1,E.addEventListener("touchmove",y,{passive:!0}),E.addEventListener("touchend",w))},b=()=>{window.removeEventListener("mousemove",y),window.removeEventListener("mouseup",w),document.onselectstart=u,u=null;const E=s(r);!E||(E.removeEventListener("touchmove",y),E.removeEventListener("touchend",w))},C=E=>{E.stopImmediatePropagation(),!(E.ctrlKey||[1,2].includes(E.button))&&(c.isDragging=!0,c[d.value.axis]=E.currentTarget[d.value.offset]-(E[d.value.client]-E.currentTarget.getBoundingClientRect()[d.value.direction]),t("start-move"),g())},w=()=>{c.isDragging=!1,c[d.value.axis]=0,t("stop-move"),b()},y=E=>{const{isDragging:_}=c;if(!_||!r.value||!l.value)return;const T=c[d.value.axis];if(!T)return;sl(i);const N=(l.value.getBoundingClientRect()[d.value.direction]-E[d.value.client])*-1,O=r.value[d.value.offset]-T,A=N-O;i=Ma(()=>{c.traveled=Math.max(0,Math.min(A,v.value)),t("scroll",A,v.value)})},S=E=>{const _=Math.abs(E.target.getBoundingClientRect()[d.value.direction]-E[d.value.client]),T=r.value[d.value.offset]/2,N=_-T;c.traveled=Math.max(0,Math.min(N,v.value)),t("scroll",N,v.value)};return ie(()=>e.scrollFrom,E=>{c.isDragging||(c.traveled=Math.ceil(E*v.value))}),Bt(()=>{b()}),()=>Le("div",{role:"presentation",ref:l,class:[o.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:h.value,onMousedown:je(S,["stop","prevent"]),onTouchstartPrevent:C},Le("div",{ref:r,class:a.e("thumb"),style:p.value,onMousedown:C},[]))}});var km=EZ;const $Z=({name:e,getOffset:t,getItemSize:n,getItemOffset:o,getEstimatedTotalSize:a,getStartIndexForOffset:l,getStopIndexForStartIndex:r,initCache:i,clearCache:u,validateProps:c})=>ae({name:e!=null?e:"ElVirtualList",props:wm,emits:[fd,pd],setup(d,{emit:f,expose:h}){c(d);const m=ct(),p=fe("vl"),v=P(i(d,m)),g=_$(),b=P(),C=P(),w=P(),y=P({isScrolling:!1,scrollDir:"forward",scrollOffset:xe(d.initScrollOffset)?d.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:d.scrollbarAlwaysOn}),S=k(()=>{const{total:V,cache:G}=d,{isScrolling:X,scrollDir:le,scrollOffset:se}=s(y);if(V===0)return[0,0,0,0];const de=l(d,se,s(v)),ce=r(d,de,se,s(v)),ne=!X||le===vd?Math.max(1,G):1,j=!X||le===gs?Math.max(1,G):1;return[Math.max(0,de-ne),Math.max(0,Math.min(V-1,ce+j)),de,ce]}),E=k(()=>a(d,s(v))),_=k(()=>Gi(d.layout)),T=k(()=>[{position:"relative",[`overflow-${_.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:d.direction,height:xe(d.height)?`${d.height}px`:d.height,width:xe(d.width)?`${d.width}px`:d.width},d.style]),N=k(()=>{const V=s(E),G=s(_);return{height:G?"100%":`${V}px`,pointerEvents:s(y).isScrolling?"none":void 0,width:G?`${V}px`:"100%",margin:0,boxSizing:"border-box"}}),O=k(()=>_.value?d.width:d.height),{onWheel:A}=O$({atStartEdge:k(()=>y.value.scrollOffset<=0),atEndEdge:k(()=>y.value.scrollOffset>=E.value),layout:k(()=>d.layout)},V=>{var G,X;(X=(G=w.value).onMouseUp)==null||X.call(G),I(Math.min(y.value.scrollOffset+V,E.value-O.value))});Mt(b,"wheel",A,{passive:!1});const M=()=>{const{total:V}=d;if(V>0){const[se,de,ce,ne]=s(S);f(fd,se,de,ce,ne)}const{scrollDir:G,scrollOffset:X,updateRequested:le}=s(y);f(pd,G,X,le)},L=V=>{const{clientHeight:G,scrollHeight:X,scrollTop:le}=V.currentTarget,se=s(y);if(se.scrollOffset===le)return;const de=Math.max(0,Math.min(le,X-G));y.value={...se,isScrolling:!0,scrollDir:br(se.scrollOffset,de),scrollOffset:de,updateRequested:!1},ke(B)},H=V=>{const{clientWidth:G,scrollLeft:X,scrollWidth:le}=V.currentTarget,se=s(y);if(se.scrollOffset===X)return;const{direction:de}=d;let ce=X;if(de===ys)switch(gd()){case Ui:{ce=-X;break}case vm:{ce=le-G-X;break}}ce=Math.max(0,Math.min(ce,le-G)),y.value={...se,isScrolling:!0,scrollDir:br(se.scrollOffset,ce),scrollOffset:ce,updateRequested:!1},ke(B)},K=V=>{s(_)?H(V):L(V),M()},Y=(V,G)=>{const X=(E.value-O.value)/G*V;I(Math.min(E.value-O.value,X))},I=V=>{V=Math.max(V,0),V!==s(y).scrollOffset&&(y.value={...s(y),scrollOffset:V,scrollDir:br(s(y).scrollOffset,V),updateRequested:!0},ke(B))},R=(V,G=ta)=>{const{scrollOffset:X}=s(y);V=Math.max(0,Math.min(V,d.total-1)),I(t(d,V,G,X,s(v)))},D=V=>{const{direction:G,itemSize:X,layout:le}=d,se=g.value(u&&X,u&&le,u&&G);let de;if(Bn(se,String(V)))de=se[V];else{const ce=o(d,V,s(v)),ne=n(d,V,s(v)),j=s(_),re=G===ys,Se=j?ce:0;se[V]=de={position:"absolute",left:re?void 0:`${Se}px`,right:re?`${Se}px`:void 0,top:j?0:`${ce}px`,height:j?"100%":`${ne}px`,width:j?`${ne}px`:"100%"}}return de},B=()=>{y.value.isScrolling=!1,ke(()=>{g.value(-1,null,null)})},z=()=>{const V=b.value;V&&(V.scrollTop=0)};ut(()=>{if(!Tt)return;const{initScrollOffset:V}=d,G=s(b);xe(V)&&G&&(s(_)?G.scrollLeft=V:G.scrollTop=V),M()}),qa(()=>{const{direction:V,layout:G}=d,{scrollOffset:X,updateRequested:le}=s(y),se=s(b);if(le&&se)if(G===bs)if(V===ys)switch(gd()){case Ui:{se.scrollLeft=-X;break}case pm:{se.scrollLeft=X;break}default:{const{clientWidth:de,scrollWidth:ce}=se;se.scrollLeft=ce-de-X;break}}else se.scrollLeft=X;else se.scrollTop=X}),Kd(()=>{s(b).scrollTop=s(y).scrollOffset});const U={ns:p,clientSize:O,estimatedTotalSize:E,windowStyle:T,windowRef:b,innerRef:C,innerStyle:N,itemsToRender:S,scrollbarRef:w,states:y,getItemStyle:D,onScroll:K,onScrollbarScroll:Y,onWheel:A,scrollTo:I,scrollToItem:R,resetScrollTop:z};return h({windowRef:b,innerRef:C,getItemStyleCache:g,scrollTo:I,scrollToItem:R,resetScrollTop:z,states:y}),U},render(d){var f;const{$slots:h,className:m,clientSize:p,containerElement:v,data:g,getItemStyle:b,innerElement:C,itemsToRender:w,innerStyle:y,layout:S,total:E,onScroll:_,onScrollbarScroll:T,states:N,useIsScrolling:O,windowStyle:A,ns:M}=d,[L,H]=w,K=at(v),Y=at(C),I=[];if(E>0)for(let z=L;z<=H;z++)I.push(Le(Be,{key:z},(f=h.default)==null?void 0:f.call(h,{data:g,index:z,isScrolling:O?N.isScrolling:void 0,style:b(z)})));const R=[Le(Y,rt(d.innerProps,{style:y,ref:"innerRef"}),He(Y)?I:{default:()=>I})],D=Le(km,{ref:"scrollbarRef",clientSize:p,layout:S,onScroll:T,ratio:p*100/this.estimatedTotalSize,scrollFrom:N.scrollOffset/(this.estimatedTotalSize-p),total:E,alwaysOn:N.scrollbarAlwaysOn}),B=Le(K,{class:[M.e("window"),m],style:A,onScroll:_,ref:"windowRef",key:0},He(K)?[R]:{default:()=>[R]});return Le("div",{key:0,class:[M.e("wrapper"),N.scrollbarAlwaysOn?"always-on":""]},[B,D])}});var N$=$Z;const _Z=N$({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:o,width:a},l,r,i)=>{const u=Gi(o)?a:e,c=Math.max(0,t*n-u),d=Math.min(c,l*n),f=Math.max(0,(l+1)*n-u);switch(r===hd&&(i>=f-u&&i<=d+u?r=ta:r=ja),r){case ji:return d;case Yi:return f;case ja:{const h=Math.round(f+(d-f)/2);return h<Math.ceil(u/2)?0:h>c+Math.floor(u/2)?c:h}case ta:default:return i>=f&&i<=d?i:i<f?f:d}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:o,width:a},l,r)=>{const i=l*n,u=Gi(o)?a:e,c=Math.ceil((u+r-i)/n);return Math.max(0,Math.min(t-1,l+c-1))},initCache(){},clearCache:!0,validateProps(){}});var Em=_Z;const Cs=(e,t,n)=>{const{itemSize:o}=e,{items:a,lastVisitedIndex:l}=n;if(t>l){let r=0;if(l>=0){const i=a[l];r=i.offset+i.size}for(let i=l+1;i<=t;i++){const u=o(i);a[i]={offset:r,size:u},r+=u}n.lastVisitedIndex=t}return a[t]},TZ=(e,t,n)=>{const{items:o,lastVisitedIndex:a}=t;return(a>0?o[a].offset:0)>=n?A$(e,t,0,a,n):OZ(e,t,Math.max(0,a),n)},A$=(e,t,n,o,a)=>{for(;n<=o;){const l=n+Math.floor((o-n)/2),r=Cs(e,l,t).offset;if(r===a)return l;r<a?n=l+1:r>a&&(o=l-1)}return Math.max(0,n-1)},OZ=(e,t,n,o)=>{const{total:a}=e;let l=1;for(;n<a&&Cs(e,n,t).offset<o;)n+=l,l*=2;return A$(e,t,Math.floor(n/2),Math.min(n,a-1),o)},P$=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:o})=>{let a=0;if(o>=e&&(o=e-1),o>=0){const i=t[o];a=i.offset+i.size}const r=(e-o-1)*n;return a+r},RZ=N$({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>Cs(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:P$,getOffset:(e,t,n,o,a)=>{const{height:l,layout:r,width:i}=e,u=Gi(r)?i:l,c=Cs(e,t,a),d=P$(e,a),f=Math.max(0,Math.min(d-u,c.offset)),h=Math.max(0,c.offset-u+c.size);switch(n===hd&&(o>=h-u&&o<=f+u?n=ta:n=ja),n){case ji:return f;case Yi:return h;case ja:return Math.round(h+(f-h)/2);case ta:default:return o>=h&&o<=f?o:o<h?h:f}},getStartIndexForOffset:(e,t,n)=>TZ(e,n,t),getStopIndexForStartIndex:(e,t,n,o)=>{const{height:a,total:l,layout:r,width:i}=e,u=Gi(r)?i:a,c=Cs(e,t,o),d=n+u;let f=c.offset+c.size,h=t;for(;h<l-1&&f<d;)h++,f+=Cs(e,h,o).size;return h},initCache({estimatedItemSize:e=fm},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(o,a=!0)=>{var l,r;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,o-1),(l=t.exposed)==null||l.getItemStyleCache(-1),a&&((r=t.proxy)==null||r.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}});var L$=RZ;const xZ=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:o},a)=>{let l=null,r=0,i=0;const u=(d,f)=>{const h=d<0&&t.value||d>0&&e.value,m=f<0&&o.value||f>0&&n.value;return h||m};return{hasReachedEdge:u,onWheel:d=>{sl(l);let f=d.deltaX,h=d.deltaY;Math.abs(f)>Math.abs(h)?h=0:f=0,d.shiftKey&&h!==0&&(f=h,h=0),!u(f,h)&&(r+=f,i+=h,d.preventDefault(),l=Ma(()=>{a(r,i),r=0,i=0}))}}},IZ=(e,t,n,o,a,l,r)=>{const i=P(0),u=P(0);let c,d=0,f=0;const h=p=>{sl(c),i.value=p.touches[0].clientX,u.value=p.touches[0].clientY,d=0,f=0},m=p=>{p.preventDefault(),sl(c),d+=i.value-p.touches[0].clientX,f+=u.value-p.touches[0].clientY,i.value=p.touches[0].clientX,u.value=p.touches[0].clientY,c=Ma(()=>{const v=o.value-s(l),g=a.value-s(r),b=Math.min(t.value.scrollLeft+d,v),C=Math.min(t.value.scrollTop+f,g);n({scrollLeft:b,scrollTop:C}),d=0,f=0})};return Mt(e,"touchstart",h,{passive:!0}),Mt(e,"touchmove",m,{passive:!1}),{touchStartX:i,touchStartY:u,handleTouchStart:h,handleTouchMove:m}},MZ=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:o,getColumnStopIndexForStartIndex:a,getEstimatedTotalHeight:l,getEstimatedTotalWidth:r,getColumnOffset:i,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:f,initCache:h,injectToInstance:m,validateProps:p})=>ae({name:e!=null?e:"ElVirtualList",props:Kl,emits:[fd,pd],setup(v,{emit:g,expose:b,slots:C}){const w=fe("vl");p(v);const y=ct(),S=P(h(v,y));m==null||m(y,S);const E=P(),_=P(),T=P(),N=P(),O=P({isScrolling:!1,scrollLeft:xe(v.initScrollLeft)?v.initScrollLeft:0,scrollTop:xe(v.initScrollTop)?v.initScrollTop:0,updateRequested:!1,xAxisScrollDir:gs,yAxisScrollDir:gs}),A=_$(),M=k(()=>Number.parseInt(`${v.height}`,10)),L=k(()=>Number.parseInt(`${v.width}`,10)),H=k(()=>{const{totalColumn:Ae,totalRow:Pe,columnCache:Ge}=v,{isScrolling:ot,xAxisScrollDir:pt,scrollLeft:Ct}=s(O);if(Ae===0||Pe===0)return[0,0,0,0];const Ce=o(v,Ct,s(S)),Ve=a(v,Ce,Ct,s(S)),We=!ot||pt===vd?Math.max(1,Ge):1,Ut=!ot||pt===gs?Math.max(1,Ge):1;return[Math.max(0,Ce-We),Math.max(0,Math.min(Ae-1,Ve+Ut)),Ce,Ve]}),K=k(()=>{const{totalColumn:Ae,totalRow:Pe,rowCache:Ge}=v,{isScrolling:ot,yAxisScrollDir:pt,scrollTop:Ct}=s(O);if(Ae===0||Pe===0)return[0,0,0,0];const Ce=d(v,Ct,s(S)),Ve=f(v,Ce,Ct,s(S)),We=!ot||pt===vd?Math.max(1,Ge):1,Ut=!ot||pt===gs?Math.max(1,Ge):1;return[Math.max(0,Ce-We),Math.max(0,Math.min(Pe-1,Ve+Ut)),Ce,Ve]}),Y=k(()=>l(v,s(S))),I=k(()=>r(v,s(S))),R=k(()=>{var Ae;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:v.direction,height:xe(v.height)?`${v.height}px`:v.height,width:xe(v.width)?`${v.width}px`:v.width},(Ae=v.style)!=null?Ae:{}]}),D=k(()=>{const Ae=`${s(I)}px`;return{height:`${s(Y)}px`,pointerEvents:s(O).isScrolling?"none":void 0,width:Ae,margin:0,boxSizing:"border-box"}}),B=()=>{const{totalColumn:Ae,totalRow:Pe}=v;if(Ae>0&&Pe>0){const[Ve,We,Ut,Ke]=s(H),[ft,it,mt,ve]=s(K);g(fd,{columnCacheStart:Ve,columnCacheEnd:We,rowCacheStart:ft,rowCacheEnd:it,columnVisibleStart:Ut,columnVisibleEnd:Ke,rowVisibleStart:mt,rowVisibleEnd:ve})}const{scrollLeft:Ge,scrollTop:ot,updateRequested:pt,xAxisScrollDir:Ct,yAxisScrollDir:Ce}=s(O);g(pd,{xAxisScrollDir:Ct,scrollLeft:Ge,yAxisScrollDir:Ce,scrollTop:ot,updateRequested:pt})},z=Ae=>{const{clientHeight:Pe,clientWidth:Ge,scrollHeight:ot,scrollLeft:pt,scrollTop:Ct,scrollWidth:Ce}=Ae.currentTarget,Ve=s(O);if(Ve.scrollTop===Ct&&Ve.scrollLeft===pt)return;let We=pt;if(M$(v.direction))switch(gd()){case Ui:We=-pt;break;case vm:We=Ce-Ge-pt;break}O.value={...Ve,isScrolling:!0,scrollLeft:We,scrollTop:Math.max(0,Math.min(Ct,ot-Pe)),updateRequested:!0,xAxisScrollDir:br(Ve.scrollLeft,We),yAxisScrollDir:br(Ve.scrollTop,Ct)},ke(()=>re()),Se(),B()},U=(Ae,Pe)=>{const Ge=s(M),ot=(Y.value-Ge)/Pe*Ae;X({scrollTop:Math.min(Y.value-Ge,ot)})},V=(Ae,Pe)=>{const Ge=s(L),ot=(I.value-Ge)/Pe*Ae;X({scrollLeft:Math.min(I.value-Ge,ot)})},{onWheel:G}=xZ({atXStartEdge:k(()=>O.value.scrollLeft<=0),atXEndEdge:k(()=>O.value.scrollLeft>=I.value-s(L)),atYStartEdge:k(()=>O.value.scrollTop<=0),atYEndEdge:k(()=>O.value.scrollTop>=Y.value-s(M))},(Ae,Pe)=>{var Ge,ot,pt,Ct;(ot=(Ge=_.value)==null?void 0:Ge.onMouseUp)==null||ot.call(Ge),(Ct=(pt=T.value)==null?void 0:pt.onMouseUp)==null||Ct.call(pt);const Ce=s(L),Ve=s(M);X({scrollLeft:Math.min(O.value.scrollLeft+Ae,I.value-Ce),scrollTop:Math.min(O.value.scrollTop+Pe,Y.value-Ve)})});Mt(E,"wheel",G,{passive:!1});const X=({scrollLeft:Ae=O.value.scrollLeft,scrollTop:Pe=O.value.scrollTop})=>{Ae=Math.max(Ae,0),Pe=Math.max(Pe,0);const Ge=s(O);Pe===Ge.scrollTop&&Ae===Ge.scrollLeft||(O.value={...Ge,xAxisScrollDir:br(Ge.scrollLeft,Ae),yAxisScrollDir:br(Ge.scrollTop,Pe),scrollLeft:Ae,scrollTop:Pe,updateRequested:!0},ke(()=>re()),Se(),B())},{touchStartX:le,touchStartY:se,handleTouchStart:de,handleTouchMove:ce}=IZ(E,O,X,I,Y,L,M),ne=(Ae=0,Pe=0,Ge=ta)=>{const ot=s(O);Pe=Math.max(0,Math.min(Pe,v.totalColumn-1)),Ae=Math.max(0,Math.min(Ae,v.totalRow-1));const pt=D1(w.namespace.value),Ct=s(S),Ce=l(v,Ct),Ve=r(v,Ct);X({scrollLeft:i(v,Pe,Ge,ot.scrollLeft,Ct,Ve>v.width?pt:0),scrollTop:u(v,Ae,Ge,ot.scrollTop,Ct,Ce>v.height?pt:0)})},j=(Ae,Pe)=>{const{columnWidth:Ge,direction:ot,rowHeight:pt}=v,Ct=A.value(t&&Ge,t&&pt,t&&ot),Ce=`${Ae},${Pe}`;if(Bn(Ct,Ce))return Ct[Ce];{const[,Ve]=n(v,Pe,s(S)),We=s(S),Ut=M$(ot),[Ke,ft]=c(v,Ae,We),[it]=n(v,Pe,We);return Ct[Ce]={position:"absolute",left:Ut?void 0:`${Ve}px`,right:Ut?`${Ve}px`:void 0,top:`${ft}px`,height:`${Ke}px`,width:`${it}px`},Ct[Ce]}},re=()=>{O.value.isScrolling=!1,ke(()=>{A.value(-1,null,null)})};ut(()=>{if(!Tt)return;const{initScrollLeft:Ae,initScrollTop:Pe}=v,Ge=s(E);Ge&&(xe(Ae)&&(Ge.scrollLeft=Ae),xe(Pe)&&(Ge.scrollTop=Pe)),B()});const Se=()=>{const{direction:Ae}=v,{scrollLeft:Pe,scrollTop:Ge,updateRequested:ot}=s(O),pt=s(E);if(ot&&pt){if(Ae===ys)switch(gd()){case Ui:{pt.scrollLeft=-Pe;break}case pm:{pt.scrollLeft=Pe;break}default:{const{clientWidth:Ct,scrollWidth:Ce}=pt;pt.scrollLeft=Ce-Ct-Pe;break}}else pt.scrollLeft=Math.max(0,Pe);pt.scrollTop=Math.max(0,Ge)}},{resetAfterColumnIndex:Te,resetAfterRowIndex:De,resetAfter:ze}=y.proxy;b({windowRef:E,innerRef:N,getItemStyleCache:A,touchStartX:le,touchStartY:se,handleTouchStart:de,handleTouchMove:ce,scrollTo:X,scrollToItem:ne,states:O,resetAfterColumnIndex:Te,resetAfterRowIndex:De,resetAfter:ze});const Ze=()=>{const{scrollbarAlwaysOn:Ae,scrollbarStartGap:Pe,scrollbarEndGap:Ge,totalColumn:ot,totalRow:pt}=v,Ct=s(L),Ce=s(M),Ve=s(I),We=s(Y),{scrollLeft:Ut,scrollTop:Ke}=s(O),ft=Le(km,{ref:_,alwaysOn:Ae,startGap:Pe,endGap:Ge,class:w.e("horizontal"),clientSize:Ct,layout:"horizontal",onScroll:V,ratio:Ct*100/Ve,scrollFrom:Ut/(Ve-Ct),total:pt,visible:!0}),it=Le(km,{ref:T,alwaysOn:Ae,startGap:Pe,endGap:Ge,class:w.e("vertical"),clientSize:Ce,layout:"vertical",onScroll:U,ratio:Ce*100/We,scrollFrom:Ke/(We-Ce),total:ot,visible:!0});return{horizontalScrollbar:ft,verticalScrollbar:it}},nt=()=>{var Ae;const[Pe,Ge]=s(H),[ot,pt]=s(K),{data:Ct,totalColumn:Ce,totalRow:Ve,useIsScrolling:We,itemKey:Ut}=v,Ke=[];if(Ve>0&&Ce>0)for(let ft=ot;ft<=pt;ft++)for(let it=Pe;it<=Ge;it++){const mt=Ut({columnIndex:it,data:Ct,rowIndex:ft});Ke.push(Le(Be,{key:mt},(Ae=C.default)==null?void 0:Ae.call(C,{columnIndex:it,data:Ct,isScrolling:We?s(O).isScrolling:void 0,style:j(ft,it),rowIndex:ft})))}return Ke},Et=()=>{const Ae=at(v.innerElement),Pe=nt();return[Le(Ae,rt(v.innerProps,{style:s(D),ref:N}),He(Ae)?Pe:{default:()=>Pe})]};return()=>{const Ae=at(v.containerElement),{horizontalScrollbar:Pe,verticalScrollbar:Ge}=Ze(),ot=Et();return Le("div",{key:0,class:w.e("wrapper"),role:v.role},[Le(Ae,{class:v.className,style:s(R),onScroll:z,ref:E},He(Ae)?ot:{default:()=>ot}),Pe,Ge])}}});var D$=MZ;const NZ=D$({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},o,a,l,r,i)=>{n=Number(n);const u=Math.max(0,e*t-n),c=Math.min(u,o*t),d=Math.max(0,o*t-n+i+t);switch(a==="smart"&&(l>=d-n&&l<=c+n?a=ta:a=ja),a){case ji:return c;case Yi:return d;case ja:{const f=Math.round(d+(c-d)/2);return f<Math.ceil(n/2)?0:f>u+Math.floor(n/2)?u:f}case ta:default:return l>=d&&l<=c?l:d>c||l<d?d:c}},getRowOffset:({rowHeight:e,height:t,totalRow:n},o,a,l,r,i)=>{t=Number(t);const u=Math.max(0,n*e-t),c=Math.min(u,o*e),d=Math.max(0,o*e-t+i+e);switch(a===hd&&(l>=d-t&&l<=c+t?a=ta:a=ja),a){case ji:return c;case Yi:return d;case ja:{const f=Math.round(d+(c-d)/2);return f<Math.ceil(t/2)?0:f>u+Math.floor(t/2)?u:f}case ta:default:return l>=d&&l<=c?l:d>c||l<d?d:c}},getColumnStartIndexForOffset:({columnWidth:e,totalColumn:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},o,a)=>{const l=o*e,r=Math.ceil((n+a-l)/e);return Math.max(0,Math.min(t-1,o+r-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},o,a)=>{const l=o*e,r=Math.ceil((n+a-l)/e);return Math.max(0,Math.min(t-1,o+r-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}});var B$=NZ;const{max:bd,min:F$,floor:V$}=Math,AZ={column:"columnWidth",row:"rowHeight"},$m={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},bl=(e,t,n,o)=>{const[a,l,r]=[n[o],e[AZ[o]],n[$m[o]]];if(t>r){let i=0;if(r>=0){const u=a[r];i=u.offset+u.size}for(let u=r+1;u<=t;u++){const c=l(u);a[u]={offset:i,size:c},i+=c}n[$m[o]]=t}return a[t]},z$=(e,t,n,o,a,l)=>{for(;n<=o;){const r=n+V$((o-n)/2),i=bl(e,r,t,l).offset;if(i===a)return r;i<a?n=r+1:o=r-1}return bd(0,n-1)},PZ=(e,t,n,o,a)=>{const l=a==="column"?e.totalColumn:e.totalRow;let r=1;for(;n<l&&bl(e,n,t,a).offset<o;)n+=r,r*=2;return z$(e,t,V$(n/2),F$(n,l-1),o,a)},H$=(e,t,n,o)=>{const[a,l]=[t[o],t[$m[o]]];return(l>0?a[l].offset:0)>=n?z$(e,t,0,l,n,o):PZ(e,t,bd(0,l),n,o)},W$=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:o})=>{let a=0;if(n>=e&&(n=e-1),n>=0){const i=o[n];a=i.offset+i.size}const r=(e-n-1)*t;return a+r},K$=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:o})=>{let a=0;if(o>e&&(o=e-1),o>=0){const i=t[o];a=i.offset+i.size}const r=(e-o-1)*n;return a+r},LZ={column:K$,row:W$},j$=(e,t,n,o,a,l,r)=>{const[i,u]=[l==="row"?e.height:e.width,LZ[l]],c=bl(e,t,a,l),d=u(e,a),f=bd(0,F$(d-i,c.offset)),h=bd(0,c.offset-i+r+c.size);switch(n===hd&&(o>=h-i&&o<=f+i?n=ta:n=ja),n){case ji:return f;case Yi:return h;case ja:return Math.round(h+(f-h)/2);case ta:default:return o>=h&&o<=f?o:h>f||o<h?h:f}},DZ=D$({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const o=bl(e,t,n,"column");return[o.size,o.offset]},getRowPosition:(e,t,n)=>{const o=bl(e,t,n,"row");return[o.size,o.offset]},getColumnOffset:(e,t,n,o,a,l)=>j$(e,t,n,o,a,"column",l),getRowOffset:(e,t,n,o,a,l)=>j$(e,t,n,o,a,"row",l),getColumnStartIndexForOffset:(e,t,n)=>H$(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,o)=>{const a=bl(e,t,o,"column"),l=n+e.width;let r=a.offset+a.size,i=t;for(;i<e.totalColumn-1&&r<l;)i++,r+=bl(e,t,o,"column").size;return i},getEstimatedTotalHeight:W$,getEstimatedTotalWidth:K$,getRowStartIndexForOffset:(e,t,n)=>H$(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,o)=>{const{totalRow:a,height:l}=e,r=bl(e,t,o,"row"),i=n+l;let u=r.size+r.offset,c=t;for(;c<a-1&&u<i;)c++,u+=bl(e,c,o,"row").size;return c},injectToInstance:(e,t)=>{const n=({columnIndex:l,rowIndex:r},i)=>{var u,c;i=_t(i)?!0:i,xe(l)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,l-1)),xe(r)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,r-1)),(u=e.exposed)==null||u.getItemStyleCache.value(-1,null,null),i&&((c=e.proxy)==null||c.$forceUpdate())},o=(l,r)=>{n({columnIndex:l},r)},a=(l,r)=>{n({rowIndex:l},r)};Object.assign(e.proxy,{resetAfterColumnIndex:o,resetAfterRowIndex:a,resetAfter:n})},initCache:({estimatedColumnWidth:e=fm,estimatedRowHeight:t=fm})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}});var Y$=DZ;const BZ=ae({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:fe("select")}}});function FZ(e,t,n,o,a,l){return $(),F("div",{class:x(e.ns.be("group","title")),style:Ie({...e.style,lineHeight:`${e.height}px`})},ge(e.item.label),7)}var VZ=ye(BZ,[["render",FZ],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function zZ(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const HZ=he({allowCreate:Boolean,autocomplete:{type:q(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:Ht,default:cl},effect:{type:q(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:{type:Boolean,default:void 0},estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:{type:q(Function)},height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:q([Array,String,Number,Boolean,Object]),default:void 0},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:{type:q(Function)},reserveKeyword:{type:Boolean,default:!0},options:{type:q(Array),required:!0},placeholder:{type:String},teleported:Vt.teleported,persistent:{type:Boolean,default:!0},popperClass:Vt.popperClass,popperStyle:Vt.popperStyle,popperOptions:{type:q(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},size:Tn,props:{type:q(Object),default:()=>Qc},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},placement:{type:q(String),values:La,default:"bottom-start"},fallbackPlacements:{type:q(Array),default:["bottom-start","top-start","right","left"]},tagType:{...Wa.type,default:"info"},tagEffect:{...Wa.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:Vt.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return zt(e)||xe(e)}},suffixIcon:{type:Ht,default:Aa},...Dl,...Gn(["ariaLabel"])}),WZ=he({data:Array,disabled:Boolean,hovering:Boolean,item:{type:q(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),KZ={[Ye]:e=>!0,[ht]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},jZ={hover:e=>xe(e),select:(e,t)=>!0},yd=Symbol("ElSelectV2Injection"),YZ=ae({props:WZ,emits:jZ,setup(e,{emit:t}){const n=Ee(yd),o=fe("select"),{hoverItem:a,selectOptionClick:l}=zZ(e,{emit:t}),{getLabel:r}=Mi(n.props),i=n.contentId;return{ns:o,contentId:i,hoverItem:a,selectOptionClick:l,getLabel:r}}}),UZ=["id","aria-selected","aria-disabled"];function GZ(e,t,n,o,a,l){return $(),F("li",{id:`${e.contentId}-${e.index}`,role:"option","aria-selected":e.selected,"aria-disabled":e.disabled||void 0,style:Ie(e.style),class:x([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMousemove:t[0]||(t[0]=(...r)=>e.hoverItem&&e.hoverItem(...r)),onClick:t[1]||(t[1]=je((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[ee(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[W("span",null,ge(e.getLabel(e.item)),1)])],46,UZ)}var qZ=ye(YZ,[["render",GZ],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const XZ={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number,id:String,ariaLabel:String};var ZZ=ae({name:"ElSelectDropdown",props:XZ,setup(e,{slots:t,expose:n}){const o=Ee(yd),a=fe("select"),{getLabel:l,getValue:r,getDisabled:i}=Mi(o.props),u=P([]),c=P(),d=k(()=>e.data.length);ie(()=>d.value,()=>{var A,M;(M=(A=o.tooltipRef.value)==null?void 0:A.updatePopper)==null||M.call(A)});const f=k(()=>_t(o.props.estimatedOptionHeight)),h=k(()=>f.value?{itemSize:o.props.itemHeight}:{estimatedSize:o.props.estimatedOptionHeight,itemSize:A=>u.value[A]}),m=(A=[],M)=>{const{props:{valueKey:L}}=o;return Rt(M)?A&&A.some(H=>fu(gn(H,L))===gn(M,L)):A.includes(M)},p=(A,M)=>{if(Rt(M)){const{valueKey:L}=o.props;return gn(A,L)===gn(M,L)}else return A===M},v=(A,M)=>o.props.multiple?m(A,r(M)):p(A,r(M)),g=(A,M)=>{const{disabled:L,multiple:H,multipleLimit:K}=o.props;return L||!M&&(H?K>0&&A.length>=K:!1)},b=A=>e.hoveringIndex===A;n({listRef:c,isSized:f,isItemDisabled:g,isItemHovering:b,isItemSelected:v,scrollToItem:A=>{const M=c.value;M&&M.scrollToItem(A)},resetScrollTop:()=>{const A=c.value;A&&A.resetScrollTop()}});const S=A=>{const{index:M,data:L,style:H}=A,K=s(f),{itemSize:Y,estimatedSize:I}=s(h),{modelValue:R}=o.props,{onSelect:D,onHover:B}=o,z=L[M];if(z.type==="Group")return Z(VZ,{item:z,style:H,height:K?Y:I},null);const U=v(R,z),V=g(R,U),G=b(M);return Z(qZ,rt(A,{selected:U,disabled:i(z)||V,created:!!z.created,hovering:G,item:z,onSelect:D,onHover:B}),{default:X=>{var le;return((le=t.default)==null?void 0:le.call(t,X))||Z("span",null,[l(z)])}})},{onKeyboardNavigate:E,onKeyboardSelect:_}=o,T=()=>{E("forward")},N=()=>{E("backward")},O=A=>{const M=Wt(A),{tab:L,esc:H,down:K,up:Y,enter:I,numpadEnter:R}=pe;switch([H,K,Y,I,R].includes(M)&&(A.preventDefault(),A.stopPropagation()),M){case L:case H:break;case K:T();break;case Y:N();break;case I:case R:_();break}};return()=>{var A,M,L,H;const{data:K,width:Y}=e,{height:I,multiple:R,scrollbarAlwaysOn:D}=o.props,B=k(()=>gu?!0:D),z=s(f)?Em:L$;return Z("div",{class:[a.b("dropdown"),a.is("multiple",R)],style:{width:`${Y}px`}},[(A=t.header)==null?void 0:A.call(t),((M=t.loading)==null?void 0:M.call(t))||((L=t.empty)==null?void 0:L.call(t))||Z(z,rt({ref:c},s(h),{className:a.be("dropdown","list"),scrollbarAlwaysOn:B.value,data:K,height:I,width:Y,total:K.length,innerElement:"ul",innerProps:{id:e.id,role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},onKeydown:O}),{default:U=>Z(S,U,null)}),(H=t.footer)==null?void 0:H.call(t)])}}});function JZ(e,t){const{aliasProps:n,getLabel:o,getValue:a}=Mi(e),l=P(0),r=P(),i=k(()=>e.allowCreate&&e.filterable);ie(()=>e.options,m=>{const p=new Set(m.map(v=>o(v)));t.createdOptions=t.createdOptions.filter(v=>!p.has(o(v)))});function u(m){const p=v=>o(v)===m;return e.options&&e.options.some(p)||t.createdOptions.some(p)}function c(m){!i.value||(e.multiple&&m.created?l.value++:r.value=m)}function d(m){if(i.value)if(m&&m.length>0){if(u(m)){t.createdOptions=t.createdOptions.filter(v=>o(v)!==t.previousQuery);return}const p={[n.value.value]:m,[n.value.label]:m,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=l.value?t.createdOptions[l.value]=p:t.createdOptions.push(p)}else if(e.multiple)t.createdOptions.length=l.value;else{const p=r.value;t.createdOptions.length=0,p&&p.created&&t.createdOptions.push(p)}}function f(m){if(!i.value||!m||!m.created||m.created&&e.reserveKeyword&&t.inputValue===o(m))return;const p=t.createdOptions.findIndex(v=>a(v)===a(m));~p&&(t.createdOptions.splice(p,1),l.value--)}function h(){i.value&&(t.createdOptions.length=0,l.value=0)}return{createNewOption:d,removeNewOption:f,selectNewOption:c,clearAllNewOption:h}}const QZ=(e,t)=>{const{t:n}=wt(),o=mn(),a=fe("select"),l=fe("input"),{form:r,formItem:i}=Pn(),{inputId:u}=Eo(e,{formItemContext:i}),{aliasProps:c,getLabel:d,getValue:f,getDisabled:h,getOptions:m}=Mi(e),{valueOnClear:p,isEmptyValue:v}=ls(e),g=Pt({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),b=P(-1),C=P(!1),w=P(),y=P(),S=P(),E=P(),_=P(),T=P(),N=P(),O=P(),A=P(),M=P(),{isComposing:L,handleCompositionStart:H,handleCompositionEnd:K,handleCompositionUpdate:Y}=as({afterComposition:we=>tn(we)}),I=on(),{wrapperRef:R,isFocused:D,handleBlur:B}=Ha(_,{disabled:I,afterFocus(){e.automaticDropdown&&!G.value&&(G.value=!0,g.menuVisibleOnFocus=!0)},beforeBlur(we){var Xe,vt;return((Xe=S.value)==null?void 0:Xe.isFocusInsideContent(we))||((vt=E.value)==null?void 0:vt.isFocusInsideContent(we))},afterBlur(){var we;G.value=!1,g.menuVisibleOnFocus=!1,e.validateEvent&&((we=i==null?void 0:i.validate)==null||we.call(i,"blur").catch(Xe=>void 0))}}),z=k(()=>nt("")),U=k(()=>e.loading?!1:e.options.length>0||g.createdOptions.length>0),V=P([]),G=P(!1),X=k(()=>{var we;return(we=r==null?void 0:r.statusIcon)!=null?we:!1}),le=k(()=>{const we=V.value.length*e.itemHeight;return we>e.height?e.height:we}),se=k(()=>e.multiple?$e(e.modelValue)&&e.modelValue.length>0:!v(e.modelValue)),de=k(()=>e.clearable&&!I.value&&se.value&&(D.value||g.inputHovering)),ce=k(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),ne=k(()=>ce.value&&a.is("reverse",G.value)),j=k(()=>(i==null?void 0:i.validateState)||""),re=k(()=>{if(!!j.value)return lc[j.value]}),Se=k(()=>e.remote?e.debounce:0),Te=k(()=>e.remote&&!g.inputValue&&!U.value),De=k(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&g.inputValue&&U.value&&V.value.length===0?e.noMatchText||n("el.select.noMatch"):U.value?null:e.noDataText||n("el.select.noData")),ze=k(()=>e.filterable&&lt(e.filterMethod)),Ze=k(()=>e.filterable&&e.remote&&lt(e.remoteMethod)),nt=we=>{const Xe=new RegExp(Sp(we),"i"),vt=kt=>ze.value||Ze.value?!0:we?Xe.test(d(kt)||""):!0;return e.loading?[]:[...g.createdOptions,...e.options].reduce((kt,Dn)=>{const Fo=m(Dn);if($e(Fo)){const Is=Fo.filter(vt);Is.length>0&&kt.push({label:d(Dn),type:"Group"},...Is)}else(e.remote||vt(Dn))&&kt.push(Dn);return kt},[])},Et=()=>{V.value=nt(g.inputValue)},Ue=k(()=>{const we=new Map;return z.value.forEach((Xe,vt)=>{we.set(Fe(f(Xe)),{option:Xe,index:vt})}),we}),Ae=k(()=>{const we=new Map;return V.value.forEach((Xe,vt)=>{we.set(Fe(f(Xe)),{option:Xe,index:vt})}),we}),Pe=k(()=>V.value.every(we=>h(we))),Ge=wn(),ot=k(()=>Ge.value==="small"?"small":"default"),pt=()=>{var we;if(xe(e.fitInputWidth)){b.value=e.fitInputWidth;return}const Xe=((we=w.value)==null?void 0:we.offsetWidth)||200;!e.fitInputWidth&&U.value?ke(()=>{b.value=Math.max(Xe,Ct())}):b.value=Xe},Ct=()=>{var we,Xe;const kt=document.createElement("canvas").getContext("2d"),Dn=a.be("dropdown","item"),Is=(((Xe=(we=O.value)==null?void 0:we.listRef)==null?void 0:Xe.innerRef)||document).querySelector(`.${Dn}`);if(Is===null||kt===null)return 0;const uu=getComputedStyle(Is),XO=Number.parseFloat(uu.paddingLeft)+Number.parseFloat(uu.paddingRight);return kt.font=`bold ${uu.font.replace(new RegExp(`\\b${uu.fontWeight}\\b`),"")}`,V.value.reduce((ZO,JO)=>{const QO=kt.measureText(d(JO));return Math.max(QO.width,ZO)},0)+XO},Ce=()=>{if(!y.value)return 0;const we=window.getComputedStyle(y.value);return Number.parseFloat(we.gap||"6px")},Ve=k(()=>{const we=Ce(),Xe=e.filterable?we+Ps:0;return{maxWidth:`${M.value&&e.maxCollapseTags===1?g.selectionWidth-g.collapseItemWidth-we-Xe:g.selectionWidth-Xe}px`}}),We=k(()=>({maxWidth:`${g.selectionWidth}px`})),Ut=k(()=>$e(e.modelValue)?e.modelValue.length===0&&!g.inputValue:e.filterable?!g.inputValue:!0),Ke=k(()=>{var we;const Xe=(we=e.placeholder)!=null?we:n("el.select.placeholder");return e.multiple||!se.value?Xe:g.selectedLabel}),ft=k(()=>{var we,Xe;return(Xe=(we=S.value)==null?void 0:we.popperRef)==null?void 0:Xe.contentRef}),it=k(()=>{if(e.multiple){const we=e.modelValue.length;if(we>0&&Ae.value.has(e.modelValue[we-1])){const{index:Xe}=Ae.value.get(e.modelValue[we-1]);return Xe}}else if(!v(e.modelValue)&&Ae.value.has(e.modelValue)){const{index:we}=Ae.value.get(e.modelValue);return we}return-1}),mt=k({get(){return G.value&&(e.loading||!Te.value||e.remote&&!!o.empty)&&(!C.value||!ho(g.previousQuery))},set(we){G.value=we}}),ve=k(()=>e.multiple?e.collapseTags?g.cachedOptions.slice(0,e.maxCollapseTags):g.cachedOptions:[]),Oe=k(()=>e.multiple?e.collapseTags?g.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:ue,removeNewOption:Me,selectNewOption:st,clearAllNewOption:jt}=JZ(e,g),an=we=>{var Xe;I.value||e.filterable&&G.value&&we&&!((Xe=N.value)!=null&&Xe.contains(we.target))||(g.menuVisibleOnFocus?g.menuVisibleOnFocus=!1:G.value=!G.value)},Cn=()=>{g.inputValue.length>0&&!G.value&&(G.value=!0),ue(g.inputValue),ke(()=>{Re(g.inputValue)})},me=Ls(()=>{Cn(),C.value=!1},Se),Re=we=>{g.previousQuery===we||L.value||(g.previousQuery=we,e.filterable&&lt(e.filterMethod)?e.filterMethod(we):e.filterable&&e.remote&&lt(e.remoteMethod)&&e.remoteMethod(we),e.defaultFirstOption&&(e.filterable||e.remote)&&V.value.length?ke(et):ke($t))},et=()=>{const we=V.value.filter(kt=>!kt.disabled&&kt.type!=="Group"),Xe=we.find(kt=>kt.created),vt=we[0];g.hoveringIndex=Ne(V.value,Xe||vt)},en=we=>{un(e.modelValue,we)||t(ht,we)},Nt=we=>{t(Ye,we),en(we),g.previousValue=e.multiple?String(we):we,ke(()=>{if(e.multiple&&$e(e.modelValue)){const Xe=g.cachedOptions.slice(),vt=e.modelValue.map(kt=>Ea(kt,Xe));un(g.cachedOptions,vt)||(g.cachedOptions=vt)}else _r(!0)})},Ne=(we=[],Xe)=>{if(!Rt(Xe))return we.indexOf(Xe);const vt=e.valueKey;let kt=-1;return we.some((Dn,Fo)=>gn(Dn,vt)===gn(Xe,vt)?(kt=Fo,!0):!1),kt},Fe=we=>Rt(we)?gn(we,e.valueKey):we,dt=()=>{pt()},Hn=()=>{g.selectionWidth=Number.parseFloat(window.getComputedStyle(y.value).width)},so=()=>{g.collapseItemWidth=M.value.getBoundingClientRect().width},na=()=>{var we,Xe;(Xe=(we=S.value)==null?void 0:we.updatePopper)==null||Xe.call(we)},ru=()=>{var we,Xe;(Xe=(we=E.value)==null?void 0:we.updatePopper)==null||Xe.call(we)},ql=we=>{const Xe=f(we);if(e.multiple){let vt=e.modelValue.slice();const kt=Ne(vt,Xe);kt>-1?(vt=[...vt.slice(0,kt),...vt.slice(kt+1)],g.cachedOptions.splice(kt,1),Me(we)):(e.multipleLimit<=0||vt.length<e.multipleLimit)&&(vt=[...vt,Xe],g.cachedOptions.push(we),st(we)),Nt(vt),we.created&&Re(""),e.filterable&&!e.reserveKeyword&&(g.inputValue="")}else g.selectedLabel=d(we),!un(e.modelValue,Xe)&&Nt(Xe),G.value=!1,st(we),we.created||jt();Ya()},su=(we,Xe)=>{let vt=e.modelValue.slice();const kt=Ne(vt,f(Xe));kt>-1&&!I.value&&(vt=[...e.modelValue.slice(0,kt),...e.modelValue.slice(kt+1)],g.cachedOptions.splice(kt,1),Nt(vt),t("remove-tag",f(Xe)),Me(Xe)),we.stopPropagation(),Ya()},Ya=()=>{var we;(we=_.value)==null||we.focus()},Bd=()=>{var we;if(G.value){G.value=!1,ke(()=>{var Xe;return(Xe=_.value)==null?void 0:Xe.blur()});return}(we=_.value)==null||we.blur()},Fd=()=>{g.inputValue.length>0?g.inputValue="":G.value=!1},Vd=we=>Hu(we,Xe=>!g.cachedOptions.some(vt=>f(vt)===Xe&&h(vt))),zd=we=>{const Xe=Wt(we);if(!!e.multiple&&Xe!==pe.delete&&g.inputValue.length===0){we.preventDefault();const vt=e.modelValue.slice(),kt=Vd(vt);if(kt<0)return;const Dn=vt[kt];vt.splice(kt,1);const Fo=g.cachedOptions[kt];g.cachedOptions.splice(kt,1),Me(Fo),Nt(vt),t("remove-tag",Dn)}},Hd=()=>{let we;$e(e.modelValue)?we=[]:we=p.value,g.selectedLabel="",G.value=!1,Nt(we),t("clear"),jt(),Ya()},Xl=(we,Xe=void 0)=>{const vt=V.value;if(!["forward","backward"].includes(we)||I.value||vt.length<=0||Pe.value||L.value)return;if(!G.value)return an();_t(Xe)&&(Xe=g.hoveringIndex);let kt=-1;we==="forward"?(kt=Xe+1,kt>=vt.length&&(kt=0)):we==="backward"&&(kt=Xe-1,(kt<0||kt>=vt.length)&&(kt=vt.length-1));const Dn=vt[kt];if(h(Dn)||Dn.type==="Group")return Xl(we,kt);g.hoveringIndex=kt,jn(kt)},be=()=>{if(G.value)~g.hoveringIndex&&V.value[g.hoveringIndex]&&ql(V.value[g.hoveringIndex]);else return an()},qe=we=>{g.hoveringIndex=we!=null?we:-1},$t=()=>{if(!e.multiple)g.hoveringIndex=V.value.findIndex(we=>Fe(f(we))===Fe(e.modelValue));else{const we=e.modelValue.length;if(we>0){const Xe=e.modelValue[we-1];g.hoveringIndex=V.value.findIndex(vt=>Fe(Xe)===Fe(f(vt)))}else g.hoveringIndex=-1}},tn=we=>{if(g.inputValue=we.target.value,e.remote)C.value=!0,me();else return Cn()},hn=we=>{if(G.value=!1,D.value){const Xe=new FocusEvent("blur",we);B(Xe)}},eo=()=>(g.isBeforeHide=!1,ke(()=>{~it.value&&jn(it.value)})),jn=we=>{O.value.scrollToItem(we)},Ea=(we,Xe)=>{const vt=Fe(we);if(Ue.value.has(vt)){const{option:kt}=Ue.value.get(vt);return kt}if(Xe&&Xe.length){const kt=Xe.find(Dn=>Fe(f(Dn))===vt);if(kt)return kt}return{[c.value.value]:we,[c.value.label]:we}},Ua=we=>{var Xe,vt;return(vt=(Xe=Ue.value.get(f(we)))==null?void 0:Xe.index)!=null?vt:-1},_r=(we=!1)=>{if(e.multiple)if(e.modelValue.length>0){const Xe=g.cachedOptions.slice();g.cachedOptions.length=0,g.previousValue=e.modelValue.toString();for(const vt of e.modelValue){const kt=Ea(vt,Xe);g.cachedOptions.push(kt)}}else g.cachedOptions=[],g.previousValue=void 0;else if(se.value){g.previousValue=e.modelValue;const Xe=V.value,vt=Xe.findIndex(kt=>Fe(f(kt))===Fe(e.modelValue));~vt?g.selectedLabel=d(Xe[vt]):(!g.selectedLabel||we)&&(g.selectedLabel=Fe(e.modelValue))}else g.selectedLabel="",g.previousValue=void 0;jt(),pt()};ie(()=>e.fitInputWidth,()=>{pt()}),ie(G,we=>{we?(e.persistent||pt(),Re("")):(g.inputValue="",g.previousQuery=null,g.isBeforeHide=!0,ue(""))}),ie(()=>e.modelValue,(we,Xe)=>{var vt;(!we||$e(we)&&we.length===0||e.multiple&&!un(we.toString(),g.previousValue)||!e.multiple&&Fe(we)!==Fe(g.previousValue))&&_r(!0),!un(we,Xe)&&e.validateEvent&&((vt=i==null?void 0:i.validate)==null||vt.call(i,"change").catch(Dn=>void 0))},{deep:!0}),ie(()=>e.options,()=>{const we=_.value;(!we||we&&document.activeElement!==we)&&_r()},{deep:!0,flush:"post"}),ie(()=>V.value,()=>(pt(),O.value&&ke(O.value.resetScrollTop))),io(()=>{g.isBeforeHide||Et()}),io(()=>{const{valueKey:we,options:Xe}=e,vt=new Map;for(const kt of Xe){const Dn=f(kt);let Fo=Dn;if(Rt(Fo)&&(Fo=gn(Dn,we)),vt.get(Fo))break;vt.set(Fo,!0)}}),ut(()=>{_r()}),Qt(w,dt),Qt(y,Hn),Qt(R,na),Qt(A,ru),Qt(M,so);let iu;return ie(()=>mt.value,we=>{we?iu=Qt(O,na).stop:(iu==null||iu(),iu=void 0),t("visible-change",we)}),{inputId:u,collapseTagSize:ot,currentPlaceholder:Ke,expanded:G,emptyText:De,popupHeight:le,debounce:Se,allOptions:z,allOptionsValueMap:Ue,filteredOptions:V,iconComponent:ce,iconReverse:ne,tagStyle:Ve,collapseTagStyle:We,popperSize:b,dropdownMenuVisible:mt,hasModelValue:se,shouldShowPlaceholder:Ut,selectDisabled:I,selectSize:Ge,needStatusIcon:X,showClearBtn:de,states:g,isFocused:D,nsSelect:a,nsInput:l,inputRef:_,menuRef:O,tagMenuRef:A,tooltipRef:S,tagTooltipRef:E,selectRef:w,wrapperRef:R,selectionRef:y,prefixRef:T,suffixRef:N,collapseItemRef:M,popperRef:ft,validateState:j,validateIcon:re,showTagList:ve,collapseTagList:Oe,debouncedOnInputChange:me,deleteTag:su,getLabel:d,getValue:f,getDisabled:h,getValueKey:Fe,getIndex:Ua,handleClear:Hd,handleClickOutside:hn,handleDel:zd,handleEsc:Fd,focus:Ya,blur:Bd,handleMenuEnter:eo,handleResize:dt,resetSelectionWidth:Hn,updateTooltip:na,updateTagTooltip:ru,updateOptions:Et,toggleMenu:an,scrollTo:jn,onInput:tn,onKeyboardNavigate:Xl,onKeyboardSelect:be,onSelect:ql,onHover:qe,handleCompositionStart:H,handleCompositionEnd:K,handleCompositionUpdate:Y}};var eJ=QZ;const tJ=ae({name:"ElSelectV2",components:{ElSelectMenu:ZZ,ElTag:Ka,ElTooltip:Ln,ElIcon:_e},directives:{ClickOutside:ml},props:HZ,emits:KZ,setup(e,{emit:t}){const n=k(()=>{const{modelValue:u,multiple:c}=e,d=c?[]:void 0;return $e(u)?c?u:d:c?d:u}),o=eJ(Pt({...Mn(e),modelValue:n}),t),{calculatorRef:a,inputStyle:l}=rc(),r=Vn();St(yd,{props:Pt({...Mn(e),height:o.popupHeight,modelValue:n}),expanded:o.expanded,tooltipRef:o.tooltipRef,contentId:r,onSelect:o.onSelect,onHover:o.onHover,onKeyboardNavigate:o.onKeyboardNavigate,onKeyboardSelect:o.onKeyboardSelect});const i=k(()=>e.multiple?o.states.cachedOptions.map(u=>o.getLabel(u)):o.states.selectedLabel);return{...o,modelValue:n,selectedLabel:i,calculatorRef:a,inputStyle:l,contentId:r,BORDER_HORIZONTAL_WIDTH:Gd}}}),nJ=["id","autocomplete","tabindex","aria-expanded","aria-label","disabled","aria-controls","aria-activedescendant","readonly","name"],oJ=["textContent"],aJ={key:1};function lJ(e,t,n,o,a,l){const r=It("el-tag"),i=It("el-tooltip"),u=It("el-icon"),c=It("el-select-menu"),d=jd("click-outside");return tt(($(),F("div",{ref:"selectRef",class:x([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[15]||(t[15]=f=>e.states.inputHovering=!0),onMouseleave:t[16]||(t[16]=f=>e.states.inputHovering=!1)},[Z(i,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[14]||(t[14]=f=>e.states.isBeforeHide=!1)},{default:Q(()=>{var f,h;return[W("div",{ref:"wrapperRef",class:x([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[11]||(t[11]=je((...m)=>e.toggleMenu&&e.toggleMenu(...m),["prevent"]))},[e.$slots.prefix?($(),F("div",{key:0,ref:"prefixRef",class:x(e.nsSelect.e("prefix"))},[ee(e.$slots,"prefix")],2)):te("v-if",!0),W("div",{ref:"selectionRef",class:x([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?ee(e.$slots,"tag",{key:0,data:e.states.cachedOptions,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[($(!0),F(Be,null,yt(e.showTagList,m=>($(),F("div",{key:e.getValueKey(e.getValue(m)),class:x(e.nsSelect.e("selected-item"))},[Z(r,{closable:!e.selectDisabled&&!e.getDisabled(m),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Ie(e.tagStyle),onClose:p=>e.deleteTag(p,m)},{default:Q(()=>[W("span",{class:x(e.nsSelect.e("tags-text"))},[ee(e.$slots,"label",{index:e.getIndex(m),label:e.getLabel(m),value:e.getValue(m)},()=>[bt(ge(e.getLabel(m)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?($(),oe(i,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,teleported:e.teleported,"popper-options":e.popperOptions},{default:Q(()=>[W("div",{ref:"collapseItemRef",class:x(e.nsSelect.e("selected-item"))},[Z(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:Ie(e.collapseTagStyle),"disable-transitions":""},{default:Q(()=>[W("span",{class:x(e.nsSelect.e("tags-text"))}," + "+ge(e.modelValue.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:Q(()=>[W("div",{ref:"tagMenuRef",class:x(e.nsSelect.e("selection"))},[($(!0),F(Be,null,yt(e.collapseTagList,m=>($(),F("div",{key:e.getValueKey(e.getValue(m)),class:x(e.nsSelect.e("selected-item"))},[Z(r,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(m),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:p=>e.deleteTag(p,m)},{default:Q(()=>[W("span",{class:x(e.nsSelect.e("tags-text"))},[ee(e.$slots,"label",{index:e.getIndex(m),label:e.getLabel(m),value:e.getValue(m)},()=>[bt(ge(e.getLabel(m)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported","popper-options"])):te("v-if",!0)]):te("v-if",!0),W("div",{class:x([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled)])},[tt(W("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":t[0]||(t[0]=m=>e.states.inputValue=m),style:Ie(e.inputStyle),autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-autocomplete":"none","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:x([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox","aria-controls":e.contentId,"aria-activedescendant":e.states.hoveringIndex>=0?`${e.contentId}-${e.states.hoveringIndex}`:"",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:t[1]||(t[1]=(...m)=>e.onInput&&e.onInput(...m)),onCompositionstart:t[2]||(t[2]=(...m)=>e.handleCompositionStart&&e.handleCompositionStart(...m)),onCompositionupdate:t[3]||(t[3]=(...m)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...m)),onCompositionend:t[4]||(t[4]=(...m)=>e.handleCompositionEnd&&e.handleCompositionEnd(...m)),onKeydown:[t[5]||(t[5]=fn(je(m=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[6]||(t[6]=fn(je(m=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[7]||(t[7]=fn(je((...m)=>e.onKeyboardSelect&&e.onKeyboardSelect(...m),["stop","prevent"]),["enter"])),t[8]||(t[8]=fn(je((...m)=>e.handleEsc&&e.handleEsc(...m),["stop","prevent"]),["esc"])),t[9]||(t[9]=fn(je((...m)=>e.handleDel&&e.handleDel(...m),["stop"]),["delete"]))],onClick:t[10]||(t[10]=je((...m)=>e.toggleMenu&&e.toggleMenu(...m),["stop"]))},null,46,nJ),[[pu,e.states.inputValue]]),e.filterable?($(),F("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:x(e.nsSelect.e("input-calculator")),textContent:ge(e.states.inputValue)},null,10,oJ)):te("v-if",!0)],2),e.shouldShowPlaceholder?($(),F("div",{key:1,class:x([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?ee(e.$slots,"label",{key:0,index:(h=(f=e.allOptionsValueMap.get(e.modelValue))==null?void 0:f.index)!=null?h:-1,label:e.currentPlaceholder,value:e.modelValue},()=>[W("span",null,ge(e.currentPlaceholder),1)]):($(),F("span",aJ,ge(e.currentPlaceholder),1))],2)):te("v-if",!0)],2),W("div",{ref:"suffixRef",class:x(e.nsSelect.e("suffix"))},[e.iconComponent?tt(($(),oe(u,{key:0,class:x([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:Q(()=>[($(),oe(at(e.iconComponent)))]),_:1},8,["class"])),[[xt,!e.showClearBtn]]):te("v-if",!0),e.showClearBtn&&e.clearIcon?($(),oe(u,{key:1,class:x([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:je(e.handleClear,["prevent","stop"])},{default:Q(()=>[($(),oe(at(e.clearIcon)))]),_:1},8,["class","onClick"])):te("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?($(),oe(u,{key:2,class:x([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:Q(()=>[($(),oe(at(e.validateIcon)))]),_:1},8,["class"])):te("v-if",!0)],2)],2)]}),content:Q(()=>[Z(c,{id:e.contentId,ref:"menuRef",data:e.filteredOptions,width:e.popperSize-e.BORDER_HORIZONTAL_WIDTH,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn,"aria-label":e.ariaLabel},uo({default:Q(f=>[ee(e.$slots,"default",Za(wl(f)))]),_:2},[e.$slots.header?{name:"header",fn:Q(()=>[W("div",{class:x(e.nsSelect.be("dropdown","header")),onClick:t[12]||(t[12]=je(()=>{},["stop"]))},[ee(e.$slots,"header")],2)]),key:"0"}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:Q(()=>[W("div",{class:x(e.nsSelect.be("dropdown","loading"))},[ee(e.$slots,"loading")],2)]),key:"1"}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:Q(()=>[W("div",{class:x(e.nsSelect.be("dropdown","empty"))},[ee(e.$slots,"empty",{},()=>[W("span",null,ge(e.emptyText),1)])],2)]),key:"2"}:void 0,e.$slots.footer?{name:"footer",fn:Q(()=>[W("div",{class:x(e.nsSelect.be("dropdown","footer")),onClick:t[13]||(t[13]=je(()=>{},["stop"]))},[ee(e.$slots,"footer")],2)]),key:"3"}:void 0]),1032,["id","data","width","hovering-index","scrollbar-always-on","aria-label"])]),_:3},8,["visible","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","placement","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],34)),[[d,e.handleClickOutside,e.popperRef]])}var rJ=ye(tJ,[["render",lJ],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);const U$=Qe(rJ),G$=he({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:q([Number,Object])}}),q$=he({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),sJ=ae({name:"ElSkeletonItem",__name:"skeleton-item",props:q$,setup(e){const t=fe("skeleton");return(n,o)=>($(),F("div",{class:x([s(t).e("item"),s(t).e(n.variant)])},[n.variant==="image"?($(),oe(s(NV),{key:0})):te("v-if",!0)],2))}});var wd=ye(sJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const iJ=ae({name:"ElSkeleton",__name:"skeleton",props:G$,setup(e,{expose:t}){const n=e,o=fe("skeleton"),a=kw(Lt(n,"loading"),n.throttle);return t({uiLoading:a}),(l,r)=>s(a)?($(),F("div",rt({key:0,class:[s(o).b(),s(o).is("animated",l.animated)]},l.$attrs),[($(!0),F(Be,null,yt(l.count,i=>($(),F(Be,{key:i},[s(a)?ee(l.$slots,"template",{key:i},()=>[Z(wd,{class:x(s(o).is("first")),variant:"p"},null,8,["class"]),($(!0),F(Be,null,yt(l.rows,u=>($(),oe(wd,{key:u,class:x([s(o).e("paragraph"),s(o).is("last",u===l.rows&&l.rows>1)]),variant:"p"},null,8,["class"]))),128))]):te("v-if",!0)],64))),128))],16)):ee(l.$slots,"default",Za(rt({key:1},l.$attrs)))}});var uJ=ye(iJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const X$=Qe(uJ,{SkeletonItem:wd}),Z$=sn(wd),_m=Symbol("sliderContextKey"),J$=he({modelValue:{type:q([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Tn,inputSize:Tn,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:q(Function),default:void 0},disabled:{type:Boolean,default:void 0},range:Boolean,vertical:Boolean,height:String,rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:q(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:La,default:"top"},marks:{type:q(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...Gn(["ariaLabel"])}),Tm=e=>xe(e)||$e(e)&&e.every(xe),Q$={[Ye]:Tm,[Sn]:Tm,[ht]:Tm},cJ=(e,t,n)=>{const o=P();return ut(async()=>{e.range?($e(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(!xe(e.modelValue)||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Mt(window,"resize",n),await ke(),n()}),{sliderWrapper:o}},dJ=e=>k(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,o)=>n-o).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),fJ=(e,t,n)=>{const{formItem:o}=Pn(),a=Zt(),l=P(),r=P(),i={firstButton:l,secondButton:r},u=on(),c=k(()=>Math.min(t.firstValue,t.secondValue)),d=k(()=>Math.max(t.firstValue,t.secondValue)),f=k(()=>e.range?`${100*(d.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),h=k(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),m=k(()=>e.vertical?{height:e.height}:{}),p=k(()=>e.vertical?{height:f.value,bottom:h.value}:{width:f.value,left:h.value}),v=()=>{if(a.value){const A=a.value.getBoundingClientRect();t.sliderSize=A[e.vertical?"height":"width"]}},g=A=>{const M=e.min+A*(e.max-e.min)/100;if(!e.range)return l;let L;return Math.abs(c.value-M)<Math.abs(d.value-M)?L=t.firstValue<t.secondValue?"firstButton":"secondButton":L=t.firstValue>t.secondValue?"firstButton":"secondButton",i[L]},b=A=>{const M=g(A);return M.value.setPosition(A),M},C=A=>{t.firstValue=A!=null?A:e.min,y(e.range?[c.value,d.value]:A!=null?A:e.min)},w=A=>{t.secondValue=A,e.range&&y([c.value,d.value])},y=A=>{n(Ye,A),n(Sn,A)},S=async()=>{await ke(),n(ht,e.range?[c.value,d.value]:e.modelValue)},E=A=>{var M,L,H,K,Y,I;if(u.value||t.dragging)return;v();let R=0;if(e.vertical){const D=(H=(L=(M=A.touches)==null?void 0:M.item(0))==null?void 0:L.clientY)!=null?H:A.clientY;R=(a.value.getBoundingClientRect().bottom-D)/t.sliderSize*100}else{const D=(I=(Y=(K=A.touches)==null?void 0:K.item(0))==null?void 0:Y.clientX)!=null?I:A.clientX,B=a.value.getBoundingClientRect().left;R=(D-B)/t.sliderSize*100}if(!(R<0||R>100))return b(R)};return{elFormItem:o,slider:a,firstButton:l,secondButton:r,sliderDisabled:u,minValue:c,maxValue:d,runwayStyle:m,barStyle:p,resetSize:v,setPosition:b,emitChange:S,onSliderWrapperPrevent:A=>{var M,L;(((M=i.firstButton.value)==null?void 0:M.dragging)||((L=i.secondButton.value)==null?void 0:L.dragging))&&A.preventDefault()},onSliderClick:A=>{E(A)&&S()},onSliderDown:async A=>{const M=E(A);M&&(await ke(),M.value.onButtonDown(A))},onSliderMarkerDown:A=>{if(u.value||t.dragging)return;b(A)&&S()},setFirstValue:C,setSecondValue:w}},pJ=(e,t,n)=>{const o=P(),a=P(!1),l=k(()=>t.value instanceof Function),r=k(()=>l.value&&t.value(e.modelValue)||e.modelValue),i=ua(()=>{n.value&&(a.value=!0)},50),u=ua(()=>{n.value&&(a.value=!1)},50);return{tooltip:o,tooltipVisible:a,formatValue:r,displayTooltip:i,hideTooltip:u}},vJ=(e,t,n)=>{const{disabled:o,min:a,max:l,step:r,showTooltip:i,persistent:u,precision:c,sliderSize:d,formatTooltip:f,emitChange:h,resetSize:m,updateDragging:p}=Ee(_m),{tooltip:v,tooltipVisible:g,formatValue:b,displayTooltip:C,hideTooltip:w}=pJ(e,f,i),y=P(),S=k(()=>`${(e.modelValue-a.value)/(l.value-a.value)*100}%`),E=k(()=>e.vertical?{bottom:S.value}:{left:S.value}),_=()=>{t.hovering=!0,C()},T=()=>{t.hovering=!1,t.dragging||w()},N=V=>{o.value||(V.preventDefault(),D(V),window.addEventListener("mousemove",B),window.addEventListener("touchmove",B),window.addEventListener("mouseup",z),window.addEventListener("touchend",z),window.addEventListener("contextmenu",z),y.value.focus())},O=V=>{o.value||(t.newPosition=Number.parseFloat(S.value)+V/(l.value-a.value)*100,U(t.newPosition),h())},A=()=>{O(-r.value)},M=()=>{O(r.value)},L=()=>{O(-r.value*4)},H=()=>{O(r.value*4)},K=()=>{o.value||(U(0),h())},Y=()=>{o.value||(U(100),h())},I=V=>{const G=Wt(V);let X=!0;switch(G){case pe.left:case pe.down:A();break;case pe.right:case pe.up:M();break;case pe.home:K();break;case pe.end:Y();break;case pe.pageDown:L();break;case pe.pageUp:H();break;default:X=!1;break}X&&V.preventDefault()},R=V=>{let G,X;return V.type.startsWith("touch")?(X=V.touches[0].clientY,G=V.touches[0].clientX):(X=V.clientY,G=V.clientX),{clientX:G,clientY:X}},D=V=>{t.dragging=!0,t.isClick=!0;const{clientX:G,clientY:X}=R(V);e.vertical?t.startY=X:t.startX=G,t.startPosition=Number.parseFloat(S.value),t.newPosition=t.startPosition},B=V=>{if(t.dragging){t.isClick=!1,C(),m();let G;const{clientX:X,clientY:le}=R(V);e.vertical?(t.currentY=le,G=(t.startY-t.currentY)/d.value*100):(t.currentX=X,G=(t.currentX-t.startX)/d.value*100),t.newPosition=t.startPosition+G,U(t.newPosition)}},z=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||w(),t.isClick||U(t.newPosition),h()},0),window.removeEventListener("mousemove",B),window.removeEventListener("touchmove",B),window.removeEventListener("mouseup",z),window.removeEventListener("touchend",z),window.removeEventListener("contextmenu",z))},U=async V=>{if(V===null||Number.isNaN(+V))return;V=Zs(V,0,100);const G=Math.floor((l.value-a.value)/r.value),X=G*r.value/(l.value-a.value)*100,le=X+(100-X)/2;let se;if(V<X){const de=X/G,ce=Math.round(V/de);se=a.value+ce*r.value}else V<le?se=a.value+G*r.value:se=l.value;se=Number.parseFloat(se.toFixed(c.value)),se!==e.modelValue&&n(Ye,se),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await ke(),t.dragging&&C(),v.value.updatePopper()};return ie(()=>t.dragging,V=>{p(V)}),Mt(y,"touchstart",N,{passive:!1}),{disabled:o,button:y,tooltip:v,tooltipVisible:g,showTooltip:i,persistent:u,wrapperStyle:E,formatValue:b,handleMouseEnter:_,handleMouseLeave:T,onButtonDown:N,onKeyDown:I,setPosition:U}},hJ=(e,t,n,o)=>({stops:k(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const r=Math.ceil((e.max-e.min)/e.step),i=100*e.step/(e.max-e.min),u=Array.from({length:r-1}).map((c,d)=>(d+1)*i);return e.range?u.filter(c=>c<100*(n.value-e.min)/(e.max-e.min)||c>100*(o.value-e.min)/(e.max-e.min)):u.filter(c=>c>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:r=>e.vertical?{bottom:`${r}%`}:{left:`${r}%`}}),mJ=(e,t,n,o,a,l)=>{const r=c=>{a(Ye,c),a(Sn,c)},i=()=>e.range?![n.value,o.value].every((c,d)=>c===t.oldValue[d]):e.modelValue!==t.oldValue,u=()=>{var c,d;e.min>e.max&&_n("Slider","min should not be greater than max.");const f=e.modelValue;e.range&&$e(f)?f[1]<e.min?r([e.min,e.min]):f[0]>e.max?r([e.max,e.max]):f[0]<e.min?r([e.min,f[1]]):f[1]>e.max?r([f[0],e.max]):(t.firstValue=f[0],t.secondValue=f[1],i()&&(e.validateEvent&&((c=l==null?void 0:l.validate)==null||c.call(l,"change").catch(h=>void 0)),t.oldValue=f.slice())):!e.range&&xe(f)&&!Number.isNaN(f)&&(f<e.min?r(e.min):f>e.max?r(e.max):(t.firstValue=f,i()&&(e.validateEvent&&((d=l==null?void 0:l.validate)==null||d.call(l,"change").catch(h=>void 0)),t.oldValue=f)))};u(),ie(()=>t.dragging,c=>{c||u()}),ie(()=>e.modelValue,(c,d)=>{t.dragging||$e(c)&&$e(d)&&c.every((f,h)=>f===d[h])&&t.firstValue===c[0]&&t.secondValue===c[1]||u()},{deep:!0}),ie(()=>[e.min,e.max],()=>{u()})},gJ=he({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:La,default:"top"}}),bJ={[Ye]:e=>xe(e)},yJ=["tabindex"],wJ=ae({name:"ElSliderButton",__name:"button",props:gJ,emits:bJ,setup(e,{expose:t,emit:n}){const o=e,a=n,l=fe("slider"),r=Pt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:o.modelValue}),i=k(()=>f.value?h.value:!1),{disabled:u,button:c,tooltip:d,showTooltip:f,persistent:h,tooltipVisible:m,wrapperStyle:p,formatValue:v,handleMouseEnter:g,handleMouseLeave:b,onButtonDown:C,onKeyDown:w,setPosition:y}=vJ(o,r,a),{hovering:S,dragging:E}=Mn(r);return t({onButtonDown:C,onKeyDown:w,setPosition:y,hovering:S,dragging:E}),(_,T)=>($(),F("div",{ref_key:"button",ref:c,class:x([s(l).e("button-wrapper"),{hover:s(S),dragging:s(E)}]),style:Ie(s(p)),tabindex:s(u)?void 0:0,onMouseenter:T[0]||(T[0]=(...N)=>s(g)&&s(g)(...N)),onMouseleave:T[1]||(T[1]=(...N)=>s(b)&&s(b)(...N)),onMousedown:T[2]||(T[2]=(...N)=>s(C)&&s(C)(...N)),onFocus:T[3]||(T[3]=(...N)=>s(g)&&s(g)(...N)),onBlur:T[4]||(T[4]=(...N)=>s(b)&&s(b)(...N)),onKeydown:T[5]||(T[5]=(...N)=>s(w)&&s(w)(...N))},[Z(s(Ln),{ref_key:"tooltip",ref:d,visible:s(m),placement:_.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":_.tooltipClass,disabled:!s(f),persistent:i.value},{content:Q(()=>[W("span",null,ge(s(v)),1)]),default:Q(()=>[W("div",{class:x([s(l).e("button"),{hover:s(S),dragging:s(E)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,yJ))}});var e_=ye(wJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const CJ=he({mark:{type:q([String,Object]),default:void 0}});var SJ=ae({name:"ElSliderMarker",props:CJ,setup(e){const t=fe("slider"),n=k(()=>He(e.mark)?e.mark:e.mark.label),o=k(()=>He(e.mark)?void 0:e.mark.style);return()=>Le("div",{class:t.e("marks-text"),style:o.value},n.value)}});const kJ=["id","role","aria-label","aria-labelledby"],EJ={key:1},$J=ae({name:"ElSlider",__name:"slider",props:J$,emits:Q$,setup(e,{expose:t,emit:n}){const o=e,a=n,l=fe("slider"),{t:r}=wt(),i=Pt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:u,slider:c,firstButton:d,secondButton:f,sliderDisabled:h,minValue:m,maxValue:p,runwayStyle:v,barStyle:g,resetSize:b,emitChange:C,onSliderWrapperPrevent:w,onSliderClick:y,onSliderDown:S,onSliderMarkerDown:E,setFirstValue:_,setSecondValue:T}=fJ(o,i,a),{stops:N,getStopStyle:O}=hJ(o,i,m,p),{inputId:A,isLabeledByFormItem:M}=Eo(o,{formItemContext:u}),L=wn(),H=k(()=>o.inputSize||L.value),K=k(()=>o.ariaLabel||r("el.slider.defaultLabel",{min:o.min,max:o.max})),Y=k(()=>o.range?o.rangeStartLabel||r("el.slider.defaultRangeStartLabel"):K.value),I=k(()=>o.formatValueText?o.formatValueText(G.value):`${G.value}`),R=k(()=>o.rangeEndLabel||r("el.slider.defaultRangeEndLabel")),D=k(()=>o.formatValueText?o.formatValueText(X.value):`${X.value}`),B=k(()=>[l.b(),l.m(L.value),l.is("vertical",o.vertical),{[l.m("with-input")]:o.showInput}]),z=dJ(o);mJ(o,i,m,p,a,u);const U=k(()=>{const de=[o.min,o.max,o.step].map(ce=>{const ne=`${ce}`.split(".")[1];return ne?ne.length:0});return Math.max.apply(null,de)}),{sliderWrapper:V}=cJ(o,i,b),{firstValue:G,secondValue:X,sliderSize:le}=Mn(i),se=de=>{i.dragging=de};return Mt(V,"touchstart",w,{passive:!1}),Mt(V,"touchmove",w,{passive:!1}),St(_m,{...Mn(o),sliderSize:le,disabled:h,precision:U,emitChange:C,resetSize:b,updateDragging:se}),t({onSliderClick:y}),(de,ce)=>{var ne,j;return $(),F("div",{id:de.range?s(A):void 0,ref_key:"sliderWrapper",ref:V,class:x(B.value),role:de.range?"group":void 0,"aria-label":de.range&&!s(M)?K.value:void 0,"aria-labelledby":de.range&&s(M)?(ne=s(u))==null?void 0:ne.labelId:void 0},[W("div",{ref_key:"slider",ref:c,class:x([s(l).e("runway"),{"show-input":de.showInput&&!de.range},s(l).is("disabled",s(h))]),style:Ie(s(v)),onMousedown:ce[0]||(ce[0]=(...re)=>s(S)&&s(S)(...re)),onTouchstartPassive:ce[1]||(ce[1]=(...re)=>s(S)&&s(S)(...re))},[W("div",{class:x(s(l).e("bar")),style:Ie(s(g))},null,6),Z(e_,{id:de.range?void 0:s(A),ref_key:"firstButton",ref:d,"model-value":s(G),vertical:de.vertical,"tooltip-class":de.tooltipClass,placement:de.placement,role:"slider","aria-label":de.range||!s(M)?Y.value:void 0,"aria-labelledby":!de.range&&s(M)?(j=s(u))==null?void 0:j.labelId:void 0,"aria-valuemin":de.min,"aria-valuemax":de.range?s(X):de.max,"aria-valuenow":s(G),"aria-valuetext":I.value,"aria-orientation":de.vertical?"vertical":"horizontal","aria-disabled":s(h),"onUpdate:modelValue":s(_)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),de.range?($(),oe(e_,{key:0,ref_key:"secondButton",ref:f,"model-value":s(X),vertical:de.vertical,"tooltip-class":de.tooltipClass,placement:de.placement,role:"slider","aria-label":R.value,"aria-valuemin":s(G),"aria-valuemax":de.max,"aria-valuenow":s(X),"aria-valuetext":D.value,"aria-orientation":de.vertical?"vertical":"horizontal","aria-disabled":s(h),"onUpdate:modelValue":s(T)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):te("v-if",!0),de.showStops?($(),F("div",EJ,[($(!0),F(Be,null,yt(s(N),(re,Se)=>($(),F("div",{key:Se,class:x(s(l).e("stop")),style:Ie(s(O)(re))},null,6))),128))])):te("v-if",!0),s(z).length>0?($(),F(Be,{key:2},[W("div",null,[($(!0),F(Be,null,yt(s(z),(re,Se)=>($(),F("div",{key:Se,style:Ie(s(O)(re.position)),class:x([s(l).e("stop"),s(l).e("marks-stop")])},null,6))),128))]),W("div",{class:x(s(l).e("marks"))},[($(!0),F(Be,null,yt(s(z),(re,Se)=>($(),oe(s(SJ),{key:Se,mark:re.mark,style:Ie(s(O)(re.position)),onMousedown:je(Te=>s(E)(re.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):te("v-if",!0)],38),de.showInput&&!de.range?($(),oe(s(nm),{key:0,ref:"input","model-value":s(G),class:x(s(l).e("input")),step:de.step,disabled:s(h),controls:de.showInputControls,min:de.min,max:de.max,precision:U.value,size:H.value,"onUpdate:modelValue":s(_),onChange:s(C)},null,8,["model-value","class","step","disabled","controls","min","max","precision","size","onUpdate:modelValue","onChange"])):te("v-if",!0)],10,kJ)}}});var _J=ye($J,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const t_=Qe(_J),n_=he({prefixCls:{type:String}}),o_=ae({name:"ElSpaceItem",props:n_,setup(e,{slots:t}){const n=fe("space"),o=k(()=>`${e.prefixCls||n.b()}__item`);return()=>Le("div",{class:o.value},ee(t,"default"))}}),a_={small:8,default:12,large:16};function l_(e){const t=fe("space"),n=k(()=>[t.b(),t.m(e.direction),e.class]),o=P(0),a=P(0),l=k(()=>{const i=e.wrap||e.fill?{flexWrap:"wrap"}:{},u={alignItems:e.alignment},c={rowGap:`${a.value}px`,columnGap:`${o.value}px`};return[i,u,c,e.style]}),r=k(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return io(()=>{const{size:i="small",wrap:u,direction:c,fill:d}=e;if($e(i)){const[f=0,h=0]=i;o.value=f,a.value=h}else{let f;xe(i)?f=i:f=a_[i||"small"]||a_.small,(u||d)&&c==="horizontal"?o.value=a.value=f:c==="horizontal"?(o.value=f,a.value=0):(a.value=f,o.value=0)}}),{classes:n,containerStyle:l,itemStyle:r}}const r_=he({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:q([String,Object,Array]),default:""},style:{type:q([String,Array,Object]),default:""},alignment:{type:q(String),default:"center"},prefixCls:{type:String},spacer:{type:q([Object,String,Number,Array]),default:null,validator:e=>Jt(e)||xe(e)||He(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:oa,validator:e=>xe(e)||$e(e)&&e.length===2&&e.every(xe)}}),TJ=ae({name:"ElSpace",props:r_,setup(e,{slots:t}){const{classes:n,containerStyle:o,itemStyle:a}=l_(e);function l(r,i="",u=[]){const{prefixCls:c}=e;return r.forEach((d,f)=>{Rp(d)?$e(d.children)&&d.children.forEach((h,m)=>{Rp(h)&&$e(h.children)?l(h.children,`${i+m}-`,u):Jt(h)&&(h==null?void 0:h.type)===Ga?u.push(h):u.push(Z(o_,{style:a.value,prefixCls:c,key:`nested-${i+m}`},{default:()=>[h]},Go.PROPS|Go.STYLE,["style","prefixCls"]))}):sz(d)&&u.push(Z(o_,{style:a.value,prefixCls:c,key:`LoopKey${i+f}`},{default:()=>[d]},Go.PROPS|Go.STYLE,["style","prefixCls"]))}),u}return()=>{var r;const{spacer:i,direction:u}=e,c=ee(t,"default",{key:0},()=>[]);if(((r=c.children)!=null?r:[]).length===0)return null;if($e(c.children)){let d=l(c.children);if(i){const f=d.length-1;d=d.reduce((h,m,p)=>{const v=[...h,m];return p!==f&&v.push(Z("span",{style:[a.value,u==="vertical"?"width: 100%":null],key:p},[Jt(i)?i:bt(i,Go.TEXT)],Go.STYLE)),v},[])}return Z("div",{class:n.value,style:o.value},d,Go.STYLE|Go.CLASS)}return c.children}}}),s_=Qe(TJ),i_=he({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:q([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:q([String,Object,Array])}}),OJ=ae({name:"ElStatistic",__name:"statistic",props:i_,setup(e,{expose:t}){const n=e,o=fe("statistic"),a=k(()=>{const{value:l,formatter:r,precision:i,decimalSeparator:u,groupSeparator:c}=n;if(lt(r))return r(l);if(!xe(l)||Number.isNaN(l))return l;let[d,f=""]=String(l).split(".");return f=f.padEnd(i,"0").slice(0,i>0?i:0),d=d.replace(/\B(?=(\d{3})+(?!\d))/g,c),[d,f].join(f?u:"")});return t({displayValue:a}),(l,r)=>($(),F("div",{class:x(s(o).b())},[l.$slots.title||l.title?($(),F("div",{key:0,class:x(s(o).e("head"))},[ee(l.$slots,"title",{},()=>[bt(ge(l.title),1)])],2)):te("v-if",!0),W("div",{class:x(s(o).e("content"))},[l.$slots.prefix||l.prefix?($(),F("div",{key:0,class:x(s(o).e("prefix"))},[ee(l.$slots,"prefix",{},()=>[W("span",null,ge(l.prefix),1)])],2)):te("v-if",!0),W("span",{class:x(s(o).e("number")),style:Ie(l.valueStyle)},ge(a.value),7),l.$slots.suffix||l.suffix?($(),F("div",{key:1,class:x(s(o).e("suffix"))},[ee(l.$slots,"suffix",{},()=>[W("span",null,ge(l.suffix),1)])],2)):te("v-if",!0)],2)],2))}});var RJ=ye(OJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const Om=Qe(RJ),u_=he({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:q([Number,Object]),default:0},valueStyle:{type:q([String,Object,Array])}}),c_={finish:()=>!0,[ht]:e=>xe(e)},xJ=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],d_=e=>xe(e)?new Date(e).getTime():e.valueOf(),f_=(e,t)=>{let n=e;const o=/\[([^\]]*)]/g;return xJ.reduce((l,[r,i])=>{const u=new RegExp(`${r}+(?![^\\[\\]]*\\])`,"g");if(u.test(l)){const c=Math.floor(n/i);return n-=c*i,l.replace(u,d=>String(c).padStart(d.length,"0"))}return l},t).replace(o,"$1")},IJ=ae({name:"ElCountdown",__name:"countdown",props:u_,emits:c_,setup(e,{expose:t,emit:n}){const o=e,a=n;let l;const r=P(0),i=k(()=>f_(r.value,o.format)),u=f=>f_(f,o.format),c=()=>{l&&(sl(l),l=void 0)},d=()=>{const f=d_(o.value),h=()=>{let m=f-Date.now();a(ht,m),m<=0?(m=0,c(),a("finish")):l=Ma(h),r.value=m};l=Ma(h)};return ut(()=>{r.value=d_(o.value)-Date.now(),ie(()=>[o.value,o.format],()=>{c(),d()},{immediate:!0})}),Bt(()=>{c()}),t({displayValue:i}),(f,h)=>($(),oe(s(Om),{value:r.value,title:f.title,prefix:f.prefix,suffix:f.suffix,"value-style":f.valueStyle,formatter:u},uo({_:2},[yt(f.$slots,(m,p)=>({name:p,fn:Q(()=>[ee(f.$slots,p)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var MJ=ye(IJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const p_=Qe(MJ),v_=he({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),h_={[ht]:(e,t)=>[e,t].every(xe)},Rm="ElSteps",NJ=ae({name:"ElSteps",__name:"steps",props:v_,emits:h_,setup(e,{emit:t}){const n=e,o=t,a=fe("steps"),{children:l,addChild:r,removeChild:i,ChildrenSorter:u}=Si(ct(),"ElStep");return ie(l,()=>{l.value.forEach((c,d)=>{c.setIndex(d)})}),St(Rm,{props:n,steps:l,addStep:r,removeStep:i}),ie(()=>n.active,(c,d)=>{o(ht,c,d)}),(c,d)=>($(),F("div",{class:x([s(a).b(),s(a).m(c.simple?"simple":c.direction)])},[ee(c.$slots,"default"),Z(s(u))],2))}});var AJ=ye(NJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const m_=he({title:{type:String,default:""},icon:{type:Ht},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),PJ=ae({name:"ElStep",__name:"item",props:m_,setup(e){const t=e,n=fe("step"),o=P(-1),a=P({}),l=P(""),r=Ee(Rm),i=ct();let u=0,c=0;ut(()=>{ie([()=>r.props.active,()=>r.props.processStatus,()=>r.props.finishStatus],([T],[N])=>{c=N||0,u=T-c,E(T)},{immediate:!0})});const d=k(()=>t.status||l.value),f=k(()=>{const T=r.steps.value[o.value-1];return T?T.internalStatus.value:"wait"}),h=k(()=>r.props.alignCenter),m=k(()=>r.props.direction==="vertical"),p=k(()=>r.props.simple),v=k(()=>r.steps.value.length),g=k(()=>{var T;return((T=r.steps.value[v.value-1])==null?void 0:T.uid)===i.uid}),b=k(()=>p.value?"":r.props.space),C=k(()=>[n.b(),n.is(p.value?"simple":r.props.direction),n.is("flex",g.value&&!b.value&&!h.value),n.is("center",h.value&&!m.value&&!p.value)]),w=k(()=>{const T={flexBasis:xe(b.value)?`${b.value}px`:b.value?b.value:`${100/(v.value-(h.value?0:1))}%`};return m.value||g.value&&(T.maxWidth=`${100/v.value}%`),T}),y=T=>{o.value=T},S=T=>{const N=T==="wait",A={transitionDelay:`${Math.abs(u)===1?0:u>0?(o.value+1-c)*150:-(o.value+1-r.props.active)*150}ms`},M=T===r.props.processStatus||N?0:100;A.borderWidth=M&&!p.value?"1px":0,A[r.props.direction==="vertical"?"height":"width"]=`${M}%`,a.value=A},E=T=>{T>o.value?l.value=r.props.finishStatus:T===o.value&&f.value!=="error"?l.value=r.props.processStatus:l.value="wait";const N=r.steps.value[o.value-1];N&&N.calcProgress(l.value)},_={uid:i.uid,getVnode:()=>i.vnode,currentStatus:d,internalStatus:l,setIndex:y,calcProgress:S};return r.addStep(_),Bt(()=>{r.removeStep(_)}),(T,N)=>($(),F("div",{style:Ie(w.value),class:x(C.value)},[te(" icon & line "),W("div",{class:x([s(n).e("head"),s(n).is(d.value)])},[p.value?te("v-if",!0):($(),F("div",{key:0,class:x(s(n).e("line"))},[W("i",{class:x(s(n).e("line-inner")),style:Ie(a.value)},null,6)],2)),W("div",{class:x([s(n).e("icon"),s(n).is(T.icon||T.$slots.icon?"icon":"text")])},[ee(T.$slots,"icon",{},()=>[T.icon?($(),oe(s(_e),{key:0,class:x(s(n).e("icon-inner"))},{default:Q(()=>[($(),oe(at(T.icon)))]),_:1},8,["class"])):d.value==="success"?($(),oe(s(_e),{key:1,class:x([s(n).e("icon-inner"),s(n).is("status")])},{default:Q(()=>[Z(s(ii))]),_:1},8,["class"])):d.value==="error"?($(),oe(s(_e),{key:2,class:x([s(n).e("icon-inner"),s(n).is("status")])},{default:Q(()=>[Z(s(Uo))]),_:1},8,["class"])):p.value?te("v-if",!0):($(),F("div",{key:3,class:x(s(n).e("icon-inner"))},ge(o.value+1),3))])],2)],2),te(" title & description "),W("div",{class:x(s(n).e("main"))},[W("div",{class:x([s(n).e("title"),s(n).is(d.value)])},[ee(T.$slots,"title",{},()=>[bt(ge(T.title),1)])],2),p.value?($(),F("div",{key:0,class:x(s(n).e("arrow"))},null,2)):($(),F("div",{key:1,class:x([s(n).e("description"),s(n).is(d.value)])},[ee(T.$slots,"description",{},()=>[bt(ge(T.description),1)])],2))],2)],6))}});var g_=ye(PJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const b_=Qe(AJ,{Step:g_}),y_=sn(g_),w_=he({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:X1},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:Ht},activeActionIcon:{type:Ht},activeIcon:{type:Ht},inactiveIcon:{type:Ht},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:q(Function)},id:String,tabindex:{type:[String,Number]},...Gn(["ariaLabel"])}),C_={[Ye]:e=>zt(e)||He(e)||xe(e),[ht]:e=>zt(e)||He(e)||xe(e),[Sn]:e=>zt(e)||He(e)||xe(e)},LJ=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],DJ=["aria-hidden"],BJ={key:1},FJ={key:1},VJ=["aria-hidden"],S_="ElSwitch",zJ=ae({name:S_,__name:"switch",props:w_,emits:C_,setup(e,{expose:t,emit:n}){const o=e,a=n,{formItem:l}=Pn(),r=wn(),i=fe("switch"),{inputId:u}=Eo(o,{formItemContext:l}),c=on(k(()=>{if(o.loading)return!0})),d=P(o.modelValue!==!1),f=Zt(),h=k(()=>[i.b(),i.m(r.value),i.is("disabled",c.value),i.is("checked",b.value)]),m=k(()=>[i.e("label"),i.em("label","left"),i.is("active",!b.value)]),p=k(()=>[i.e("label"),i.em("label","right"),i.is("active",b.value)]),v=k(()=>({width:cn(o.width)}));ie(()=>o.modelValue,()=>{d.value=!0});const g=k(()=>d.value?o.modelValue:!1),b=k(()=>g.value===o.activeValue);[o.activeValue,o.inactiveValue].includes(g.value)||(a(Ye,o.inactiveValue),a(ht,o.inactiveValue),a(Sn,o.inactiveValue)),ie(b,S=>{var E;f.value.checked=S,o.validateEvent&&((E=l==null?void 0:l.validate)==null||E.call(l,"change").catch(_=>void 0))});const C=()=>{const S=b.value?o.inactiveValue:o.activeValue;a(Ye,S),a(ht,S),a(Sn,S),ke(()=>{f.value.checked=b.value})},w=()=>{if(c.value)return;const{beforeChange:S}=o;if(!S){C();return}const E=S();[Bs(E),zt(E)].includes(!0)||_n(S_,"beforeChange must return type `Promise<boolean>` or `boolean`"),Bs(E)?E.then(T=>{T&&C()}).catch(T=>{}):E&&C()},y=()=>{var S,E;(E=(S=f.value)==null?void 0:S.focus)==null||E.call(S)};return ut(()=>{f.value.checked=b.value}),t({focus:y,checked:b}),(S,E)=>($(),F("div",{class:x(h.value),onClick:je(w,["prevent"])},[W("input",{id:s(u),ref_key:"input",ref:f,class:x(s(i).e("input")),type:"checkbox",role:"switch","aria-checked":b.value,"aria-disabled":s(c),"aria-label":S.ariaLabel,name:S.name,"true-value":S.activeValue,"false-value":S.inactiveValue,disabled:s(c),tabindex:S.tabindex,onChange:C,onKeydown:fn(w,["enter"])},null,42,LJ),!S.inlinePrompt&&(S.inactiveIcon||S.inactiveText||S.$slots.inactive)?($(),F("span",{key:0,class:x(m.value)},[ee(S.$slots,"inactive",{},()=>[S.inactiveIcon?($(),oe(s(_e),{key:0},{default:Q(()=>[($(),oe(at(S.inactiveIcon)))]),_:1})):te("v-if",!0),!S.inactiveIcon&&S.inactiveText?($(),F("span",{key:1,"aria-hidden":b.value},ge(S.inactiveText),9,DJ)):te("v-if",!0)])],2)):te("v-if",!0),W("span",{class:x(s(i).e("core")),style:Ie(v.value)},[S.inlinePrompt?($(),F("div",{key:0,class:x(s(i).e("inner"))},[b.value?($(),F("div",{key:1,class:x(s(i).e("inner-wrapper"))},[ee(S.$slots,"active",{},()=>[S.activeIcon?($(),oe(s(_e),{key:0},{default:Q(()=>[($(),oe(at(S.activeIcon)))]),_:1})):te("v-if",!0),!S.activeIcon&&S.activeText?($(),F("span",FJ,ge(S.activeText),1)):te("v-if",!0)])],2)):($(),F("div",{key:0,class:x(s(i).e("inner-wrapper"))},[ee(S.$slots,"inactive",{},()=>[S.inactiveIcon?($(),oe(s(_e),{key:0},{default:Q(()=>[($(),oe(at(S.inactiveIcon)))]),_:1})):te("v-if",!0),!S.inactiveIcon&&S.inactiveText?($(),F("span",BJ,ge(S.inactiveText),1)):te("v-if",!0)])],2))],2)):te("v-if",!0),W("div",{class:x(s(i).e("action"))},[S.loading?($(),oe(s(_e),{key:0,class:x(s(i).is("loading"))},{default:Q(()=>[Z(s(Pa))]),_:1},8,["class"])):b.value?ee(S.$slots,"active-action",{key:1},()=>[S.activeActionIcon?($(),oe(s(_e),{key:0},{default:Q(()=>[($(),oe(at(S.activeActionIcon)))]),_:1})):te("v-if",!0)]):b.value?te("v-if",!0):ee(S.$slots,"inactive-action",{key:2},()=>[S.inactiveActionIcon?($(),oe(s(_e),{key:0},{default:Q(()=>[($(),oe(at(S.inactiveActionIcon)))]),_:1})):te("v-if",!0)])],2)],6),!S.inlinePrompt&&(S.activeIcon||S.activeText||S.$slots.active)?($(),F("span",{key:1,class:x(p.value)},[ee(S.$slots,"active",{},()=>[S.activeIcon?($(),oe(s(_e),{key:0},{default:Q(()=>[($(),oe(at(S.activeIcon)))]),_:1})):te("v-if",!0),!S.activeIcon&&S.activeText?($(),F("span",{key:1,"aria-hidden":!b.value},ge(S.activeText),9,VJ)):te("v-if",!0)])],2)):te("v-if",!0)],2))}});var HJ=ye(zJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const k_=Qe(HJ),xm=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},WJ=function(e,t,n,o,a){if(!t&&!o&&(!a||$e(a)&&!a.length))return e;He(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const l=o?null:function(i,u){return a?qf(An(a),c=>He(c)?gn(i,c):c(i,u,e)):(t!=="$key"&&Rt(i)&&"$value"in i&&(i=i.$value),[Rt(i)?t?gn(i,t):null:i])},r=function(i,u){var c,d,f,h,m,p;if(o)return o(i.value,u.value);for(let v=0,g=(d=(c=i.key)==null?void 0:c.length)!=null?d:0;v<g;v++){if(((f=i.key)==null?void 0:f[v])<((h=u.key)==null?void 0:h[v]))return-1;if(((m=i.key)==null?void 0:m[v])>((p=u.key)==null?void 0:p[v]))return 1}return 0};return e.map((i,u)=>({value:i,index:u,key:l?l(i,u):null})).sort((i,u)=>{let c=r(i,u);return c||(c=i.index-u.index),c*+n}).map(i=>i.value)},E_=function(e,t){let n=null;return e.columns.forEach(o=>{o.id===t&&(n=o)}),n},KJ=function(e,t){let n=null;for(let o=0;o<e.columns.length;o++){const a=e.columns[o];if(a.columnKey===t){n=a;break}}return n||_n("ElTable",`No column matching with column-key: ${t}`),n},$_=function(e,t,n){const o=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return o?E_(e,o[0]):null},Jn=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(He(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let o=e;for(const a of n)o=o[a];return`${o}`}else if(lt(t))return t.call(null,e);return""},Ss=function(e,t,n=!1,o="children"){const a=e||[],l={};return a.forEach((r,i)=>{if(l[Jn(r,t)]={row:r,index:i},n){const u=r[o];$e(u)&&Object.assign(l,Ss(u,t,!0,o))}}),l};function jJ(e,t){const n={};let o;for(o in e)n[o]=e[o];for(o in t)if(Bn(t,o)){const a=t[o];_t(a)||(n[o]=a)}return n}function Im(e){return e===""||_t(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function __(e){return e===""||_t(e)||(e=Im(e),Number.isNaN(e)&&(e=80)),e}function YJ(e){return xe(e)?e:He(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function UJ(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function Cd(e,t,n,o,a,l,r){let i=l!=null?l:0,u=!1;const d=(()=>{if(!r)return e.indexOf(t);const v=Jn(t,r);return e.findIndex(g=>Jn(g,r)===v)})(),f=d!==-1,h=a==null?void 0:a.call(null,t,i),m=v=>{v==="add"?e.push(t):e.splice(d,1),u=!0},p=v=>{let g=0;const b=(o==null?void 0:o.children)&&v[o.children];return b&&$e(b)&&(g+=b.length,b.forEach(C=>{g+=p(C)})),g};return(!a||h)&&(zt(n)?n&&!f?m("add"):!n&&f&&m("remove"):m(f?"remove":"add")),!(o!=null&&o.checkStrictly)&&(o==null?void 0:o.children)&&$e(t[o.children])&&t[o.children].forEach(v=>{const g=Cd(e,v,n!=null?n:!f,o,a,i+1,r);i+=p(v)+1,g&&(u=g)}),u}function GJ(e,t,n="children",o="hasChildren",a=!1){const l=i=>!($e(i)&&i.length);function r(i,u,c){t(i,u,c),u.forEach(d=>{if(d[o]&&a){t(d,null,c+1);return}const f=d[n];l(f)||r(d,f,c+1)})}e.forEach(i=>{if(i[o]&&a){t(i,null,0);return}const u=i[n];l(u)||r(i,u,0)})}const qJ=(e,t,n,o)=>{const a={strategy:"fixed",...e.popperOptions},l=lt(o==null?void 0:o.tooltipFormatter)?o.tooltipFormatter({row:n,column:o,cellValue:Kr(n,o.property).value}):void 0;return Jt(l)?{slotContent:l,content:null,...e,popperOptions:a}:{slotContent:null,content:l!=null?l:t,...e,popperOptions:a}};let ro=null;function XJ(e,t,n,o,a,l){var r;const i=qJ(e,t,n,o),u={...i,slotContent:void 0};if((ro==null?void 0:ro.trigger)===a){const p=(r=ro.vm)==null?void 0:r.component;op(p==null?void 0:p.props,u),p&&i.slotContent&&(p.slots.content=()=>[i.slotContent]);return}ro==null||ro();const c=l==null?void 0:l.refs.tableWrapper,d=c==null?void 0:c.dataset.prefix,f=Z(Ln,{virtualTriggering:!0,virtualRef:a,appendTo:c,placement:"top",transition:"none",offset:0,hideAfter:0,...u},i.slotContent?{content:()=>i.slotContent}:void 0);f.appContext={...l.appContext,...l};const h=document.createElement("div");Sl(f,h),f.component.exposed.onOpen();const m=c==null?void 0:c.querySelector(`.${d}-scrollbar__wrap`);ro=()=>{var p,v;(v=(p=f.component)==null?void 0:p.exposed)!=null&&v.onClose&&f.component.exposed.onClose(),Sl(null,h);const g=ro;m==null||m.removeEventListener("scroll",g),g.trigger=void 0,g.vm=void 0,ro=null},ro.trigger=a!=null?a:void 0,ro.vm=f,m==null||m.addEventListener("scroll",ro)}function T_(e){return e.children?qf(e.children,T_):[e]}function O_(e,t){return e+t.colSpan}const R_=(e,t,n,o)=>{let a=0,l=e;const r=n.states.columns.value;if(o){const u=T_(o[e]);a=r.slice(0,r.indexOf(u[0])).reduce(O_,0),l=a+u.reduce(O_,0)-1}else a=e;let i;switch(t){case"left":l<n.states.fixedLeafColumnsLength.value&&(i="left");break;case"right":a>=r.length-n.states.rightFixedLeafColumnsLength.value&&(i="right");break;default:l<n.states.fixedLeafColumnsLength.value?i="left":a>=r.length-n.states.rightFixedLeafColumnsLength.value&&(i="right")}return i?{direction:i,start:a,after:l}:{}},Mm=(e,t,n,o,a,l=0)=>{const r=[],{direction:i,start:u,after:c}=R_(t,n,o,a);if(i){const d=i==="left";r.push(`${e}-fixed-column--${i}`),d&&c+l===o.states.fixedLeafColumnsLength.value-1?r.push("is-last-column"):!d&&u-l===o.states.columns.value.length-o.states.rightFixedLeafColumnsLength.value&&r.push("is-first-column")}return r};function x_(e,t){return e+(oi(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Nm=(e,t,n,o)=>{const{direction:a,start:l=0,after:r=0}=R_(e,t,n,o);if(!a)return;const i={},u=a==="left",c=n.states.columns.value;return u?i.left=c.slice(0,l).reduce(x_,0):i.right=c.slice(r+1).reverse().reduce(x_,0),i},ks=(e,t)=>{!e||Number.isNaN(e[t])||(e[t]=`${e[t]}px`)};function I_(e){return e.some(t=>Jt(t)?!(t.type===Ga||t.type===Be&&!I_(t.children)):!0)?e:null}function ZJ(e){const t=ct(),n=P(!1),o=P([]);return{updateExpandRows:()=>{const u=e.data.value||[],c=e.rowKey.value;if(n.value)o.value=u.slice();else if(c){const d=Ss(o.value,c);o.value=u.reduce((f,h)=>{const m=Jn(h,c);return d[m]&&f.push(h),f},[])}else o.value=[]},toggleRowExpansion:(u,c)=>{Cd(o.value,u,c,void 0,void 0,void 0,e.rowKey.value)&&t.emit("expand-change",u,o.value.slice())},setExpandRowKeys:u=>{t.store.assertRowKey();const c=e.data.value||[],d=e.rowKey.value,f=Ss(c,d);o.value=u.reduce((h,m)=>{const p=f[m];return p&&h.push(p.row),h},[])},isRowExpanded:u=>{const c=e.rowKey.value;return c?!!Ss(o.value,c)[Jn(u,c)]:o.value.includes(u)},states:{expandRows:o,defaultExpandAll:n}}}function JJ(e){const t=ct(),n=P(null),o=P(null),a=c=>{t.store.assertRowKey(),n.value=c,r(c)},l=()=>{n.value=null},r=c=>{var d;const{data:f,rowKey:h}=e,m=o.value;let p=null;h.value&&(p=(d=(s(f)||[]).find(v=>Jn(v,h.value)===c))!=null?d:null),o.value=p!=null?p:null,t.emit("current-change",o.value,m)};return{setCurrentRowKey:a,restoreCurrentRowKey:l,setCurrentRowByKey:r,updateCurrentRow:c=>{const d=o.value;if(c&&c!==d){o.value=c,t.emit("current-change",o.value,d);return}!c&&d&&(o.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const c=e.rowKey.value,d=e.data.value||[],f=o.value;if(f&&!d.includes(f))if(c){const h=Jn(f,c);r(h)}else o.value=null,t.emit("current-change",null,f);else n.value&&(r(n.value),l())},states:{_currentRowKey:n,currentRow:o}}}function QJ(e){const t=P([]),n=P({}),o=P(16),a=P(!1),l=P({}),r=P("hasChildren"),i=P("children"),u=P(!1),c=ct(),d=k(()=>{if(!e.rowKey.value)return{};const y=e.data.value||[];return h(y)}),f=k(()=>{const y=e.rowKey.value,S=Object.keys(l.value),E={};return S.length&&S.forEach(_=>{if(l.value[_].length){const T={children:[]};l.value[_].forEach(N=>{const O=Jn(N,y);T.children.push(O),N[r.value]&&!E[O]&&(E[O]={children:[]})}),E[_]=T}}),E}),h=y=>{const S=e.rowKey.value,E={};return GJ(y,(_,T,N)=>{const O=Jn(_,S);$e(T)?E[O]={children:T.map(A=>Jn(A,S)),level:N}:a.value&&(E[O]={children:[],lazy:!0,level:N})},i.value,r.value,a.value),E},m=(y=!1,S)=>{var E,_;S||(S=(E=c.store)==null?void 0:E.states.defaultExpandAll.value);const T=d.value,N=f.value,O=Object.keys(T),A={};if(O.length){const M=s(n),L=[],H=(Y,I)=>{if(y)return t.value?S||t.value.includes(I):!!(S||(Y==null?void 0:Y.expanded));{const R=S||t.value&&t.value.includes(I);return!!((Y==null?void 0:Y.expanded)||R)}};O.forEach(Y=>{const I=M[Y],R={...T[Y]};if(R.expanded=H(I,Y),R.lazy){const{loaded:D=!1,loading:B=!1}=I||{};R.loaded=!!D,R.loading=!!B,L.push(Y)}A[Y]=R});const K=Object.keys(N);a.value&&K.length&&L.length&&K.forEach(Y=>{var I;const R=M[Y],D=N[Y].children;if(L.includes(Y)){if(((I=A[Y].children)==null?void 0:I.length)!==0)throw new Error("[ElTable]children must be an empty array.");A[Y].children=D}else{const{loaded:B=!1,loading:z=!1}=R||{};A[Y]={lazy:!0,loaded:!!B,loading:!!z,expanded:H(R,Y),children:D,level:void 0}}})}n.value=A,(_=c.store)==null||_.updateTableScrollY()};ie(()=>t.value,()=>{m(!0)}),ie(()=>d.value,()=>{m()}),ie(()=>f.value,()=>{m()});const p=y=>{t.value=y,m()},v=y=>a.value&&y&&"loaded"in y&&!y.loaded,g=(y,S)=>{c.store.assertRowKey();const E=e.rowKey.value,_=Jn(y,E),T=_&&n.value[_];if(_&&T&&"expanded"in T){const N=T.expanded;S=_t(S)?!T.expanded:S,n.value[_].expanded=S,N!==S&&c.emit("expand-change",y,S),S&&v(T)&&C(y,_,T),c.store.updateTableScrollY()}},b=y=>{c.store.assertRowKey();const S=e.rowKey.value,E=Jn(y,S),_=n.value[E];v(_)?C(y,E,_):g(y,void 0)},C=(y,S,E)=>{const{load:_}=c.props;_&&!n.value[S].loaded&&(n.value[S].loading=!0,_(y,E,T=>{if(!$e(T))throw new TypeError("[ElTable] data must be an array");n.value[S].loading=!1,n.value[S].loaded=!0,n.value[S].expanded=!0,T.length&&(l.value[S]=T),c.emit("expand-change",y,!0)}))};return{loadData:C,loadOrToggle:b,toggleTreeExpansion:g,updateTreeExpandKeys:p,updateTreeData:m,updateKeyChildren:(y,S)=>{const{lazy:E,rowKey:_}=c.props;if(!!E){if(!_)throw new Error("[Table] rowKey is required in updateKeyChild");l.value[y]&&(l.value[y]=S)}},normalize:h,states:{expandRowKeys:t,treeData:n,indent:o,lazy:a,lazyTreeNodeMap:l,lazyColumnIdentifier:r,childrenColumnName:i,checkStrictly:u}}}const eQ=(e,t)=>{const n=t.sortingColumn;return!n||He(n.sortable)?e:WJ(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Sd=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,Sd(n.children)):t.push(n)}),t};function tQ(){var e;const t=ct(),{size:n}=Mn((e=t.proxy)==null?void 0:e.$props),o=P(null),a=P([]),l=P([]),r=P(!1),i=P([]),u=P([]),c=P([]),d=P([]),f=P([]),h=P([]),m=P([]),p=P([]),v=[],g=P(0),b=P(0),C=P(0),w=P(!1),y=P([]),S=P(!1),E=P(!1),_=P(null),T=P({}),N=P(null),O=P(null),A=P(null),M=P(null),L=P(null),H=k(()=>o.value?Ss(y.value,o.value):void 0);ie(a,()=>{var Ke;t.state&&(R(!1),t.props.tableLayout==="auto"&&((Ke=t.refs.tableHeaderRef)==null||Ke.updateFixedColumnStyle()))},{deep:!0});const K=()=>{if(!o.value)throw new Error("[ElTable] prop row-key is required")},Y=Ke=>{var ft;(ft=Ke.children)==null||ft.forEach(it=>{it.fixed=Ke.fixed,Y(it)})},I=()=>{i.value.forEach(ue=>{Y(ue)}),d.value=i.value.filter(ue=>[!0,"left"].includes(ue.fixed));const Ke=i.value.find(ue=>ue.type==="selection");let ft;Ke&&Ke.fixed!=="right"&&!d.value.includes(Ke)&&i.value.indexOf(Ke)===0&&d.value.length&&(d.value.unshift(Ke),ft=!0),f.value=i.value.filter(ue=>ue.fixed==="right");const it=i.value.filter(ue=>(ft?ue.type!=="selection":!0)&&!ue.fixed);u.value=Array.from(d.value).concat(it).concat(f.value);const mt=Sd(it),ve=Sd(d.value),Oe=Sd(f.value);g.value=mt.length,b.value=ve.length,C.value=Oe.length,c.value=Array.from(ve).concat(mt).concat(Oe),r.value=d.value.length>0||f.value.length>0},R=(Ke,ft=!1)=>{Ke&&I(),ft?t.state.doLayout():t.state.debouncedUpdateLayout()},D=Ke=>H.value?!!H.value[Jn(Ke,o.value)]:y.value.includes(Ke),B=()=>{w.value=!1;const Ke=y.value;y.value=[],Ke.length&&t.emit("selection-change",[])},z=()=>{var Ke,ft;let it;if(o.value){it=[];const mt=(ft=(Ke=t==null?void 0:t.store)==null?void 0:Ke.states)==null?void 0:ft.childrenColumnName.value,ve=Ss(a.value,o.value,!0,mt);for(const Oe in H.value)Bn(H.value,Oe)&&!ve[Oe]&&it.push(H.value[Oe].row)}else it=y.value.filter(mt=>!a.value.includes(mt));if(it.length){const mt=y.value.filter(ve=>!it.includes(ve));y.value=mt,t.emit("selection-change",mt.slice())}},U=()=>(y.value||[]).slice(),V=(Ke,ft,it=!0,mt=!1)=>{var ve,Oe,ue,Me;const st={children:(Oe=(ve=t==null?void 0:t.store)==null?void 0:ve.states)==null?void 0:Oe.childrenColumnName.value,checkStrictly:(Me=(ue=t==null?void 0:t.store)==null?void 0:ue.states)==null?void 0:Me.checkStrictly.value};if(Cd(y.value,Ke,ft,st,mt?void 0:_.value,a.value.indexOf(Ke),o.value)){const an=(y.value||[]).slice();it&&t.emit("select",an,Ke),t.emit("selection-change",an)}},G=()=>{var Ke,ft;const it=E.value?!w.value:!(w.value||y.value.length);w.value=it;let mt=!1,ve=0;const Oe=(ft=(Ke=t==null?void 0:t.store)==null?void 0:Ke.states)==null?void 0:ft.rowKey.value,{childrenColumnName:ue}=t.store.states,Me={children:ue.value,checkStrictly:!1};a.value.forEach((st,jt)=>{const an=jt+ve;Cd(y.value,st,it,Me,_.value,an,Oe)&&(mt=!0),ve+=le(Jn(st,Oe))}),mt&&t.emit("selection-change",y.value?y.value.slice():[]),t.emit("select-all",(y.value||[]).slice())},X=()=>{var Ke;if(((Ke=a.value)==null?void 0:Ke.length)===0){w.value=!1;return}const{childrenColumnName:ft}=t.store.states;let it=0,mt=0;const ve=ue=>{var Me;for(const st of ue){const jt=_.value&&_.value.call(null,st,it);if(D(st))mt++;else if(!_.value||jt)return!1;if(it++,((Me=st[ft.value])==null?void 0:Me.length)&&!ve(st[ft.value]))return!1}return!0},Oe=ve(a.value||[]);w.value=mt===0?!1:Oe},le=Ke=>{var ft;if(!t||!t.store)return 0;const{treeData:it}=t.store.states;let mt=0;const ve=(ft=it.value[Ke])==null?void 0:ft.children;return ve&&(mt+=ve.length,ve.forEach(Oe=>{mt+=le(Oe)})),mt},se=(Ke,ft)=>{const it={};return An(Ke).forEach(mt=>{T.value[mt.id]=ft,it[mt.columnKey||mt.id]=ft}),it},de=(Ke,ft,it)=>{O.value&&O.value!==Ke&&(O.value.order=null),O.value=Ke,A.value=ft,M.value=it},ce=()=>{let Ke=s(l);Object.keys(T.value).forEach(ft=>{const it=T.value[ft];if(!it||it.length===0)return;const mt=E_({columns:c.value},ft);mt&&mt.filterMethod&&(Ke=Ke.filter(ve=>it.some(Oe=>mt.filterMethod.call(null,Oe,ve,mt))))}),N.value=Ke},ne=()=>{var Ke;a.value=eQ((Ke=N.value)!=null?Ke:[],{sortingColumn:O.value,sortProp:A.value,sortOrder:M.value})},j=(Ke=void 0)=>{Ke!=null&&Ke.filter||ce(),ne()},re=Ke=>{const{tableHeaderRef:ft}=t.refs;if(!ft)return;const it=Object.assign({},ft.filterPanels),mt=Object.keys(it);if(!!mt.length)if(He(Ke)&&(Ke=[Ke]),$e(Ke)){const ve=Ke.map(Oe=>KJ({columns:c.value},Oe));mt.forEach(Oe=>{const ue=ve.find(Me=>Me.id===Oe);ue&&(ue.filteredValue=[])}),t.store.commit("filterChange",{column:ve,values:[],silent:!0,multi:!0})}else mt.forEach(ve=>{const Oe=c.value.find(ue=>ue.id===ve);Oe&&(Oe.filteredValue=[])}),T.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},Se=()=>{!O.value||(de(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:Te,toggleRowExpansion:De,updateExpandRows:ze,states:Ze,isRowExpanded:nt}=ZJ({data:a,rowKey:o}),{updateTreeExpandKeys:Et,toggleTreeExpansion:Ue,updateTreeData:Ae,updateKeyChildren:Pe,loadOrToggle:Ge,states:ot}=QJ({data:a,rowKey:o}),{updateCurrentRowData:pt,updateCurrentRow:Ct,setCurrentRowKey:Ce,states:Ve}=JJ({data:a,rowKey:o});return{assertRowKey:K,updateColumns:I,scheduleLayout:R,isSelected:D,clearSelection:B,cleanSelection:z,getSelectionRows:U,toggleRowSelection:V,_toggleAllSelection:G,toggleAllSelection:null,updateAllSelected:X,updateFilters:se,updateCurrentRow:Ct,updateSort:de,execFilter:ce,execSort:ne,execQuery:j,clearFilter:re,clearSort:Se,toggleRowExpansion:De,setExpandRowKeysAdapter:Ke=>{Te(Ke),Et(Ke)},setCurrentRowKey:Ce,toggleRowExpansionAdapter:(Ke,ft)=>{c.value.some(({type:mt})=>mt==="expand")?De(Ke,ft):Ue(Ke,ft)},isRowExpanded:nt,updateExpandRows:ze,updateCurrentRowData:pt,loadOrToggle:Ge,updateTreeData:Ae,updateKeyChildren:Pe,states:{tableSize:n,rowKey:o,data:a,_data:l,isComplex:r,_columns:i,originColumns:u,columns:c,fixedColumns:d,rightFixedColumns:f,leafColumns:h,fixedLeafColumns:m,rightFixedLeafColumns:p,updateOrderFns:v,leafColumnsLength:g,fixedLeafColumnsLength:b,rightFixedLeafColumnsLength:C,isAllSelected:w,selection:y,reserveSelection:S,selectOnIndeterminate:E,selectable:_,filters:T,filteredData:N,sortingColumn:O,sortProp:A,sortOrder:M,hoverRow:L,...Ze,...ot,...Ve}}}function Am(e,t){return e.map(n=>{var o;return n.id===t.id?t:((o=n.children)!=null&&o.length&&(n.children=Am(n.children,t)),n)})}function Pm(e){e.forEach(t=>{var n,o;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(o=t.children)!=null&&o.length&&Pm(t.children)}),e.sort((t,n)=>t.no-n.no)}function nQ(){const e=ct(),t=tQ(),n=fe("table"),{t:o}=wt();return{ns:n,t:o,...t,mutations:{setData(i,u){const c=s(i._data)!==u;i.data.value=u,i._data.value=u,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),s(i.reserveSelection)?e.store.assertRowKey():c?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(i,u,c,d){var f;const h=s(i._columns);let m=[];c?(c&&!c.children&&(c.children=[]),(f=c.children)==null||f.push(u),m=Am(h,c)):(h.push(u),m=h),Pm(m),i._columns.value=m,i.updateOrderFns.push(d),u.type==="selection"&&(i.selectable.value=u.selectable,i.reserveSelection.value=u.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(i,u){var c;((c=u.getColumnIndex)==null?void 0:c.call(u))!==u.no&&(Pm(i._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(i,u,c,d){var f;const h=s(i._columns)||[];if(c)(f=c.children)==null||f.splice(c.children.findIndex(p=>p.id===u.id),1),ke(()=>{var p;((p=c.children)==null?void 0:p.length)===0&&delete c.children}),i._columns.value=Am(h,c);else{const p=h.indexOf(u);p>-1&&(h.splice(p,1),i._columns.value=h)}const m=i.updateOrderFns.indexOf(d);m>-1&&i.updateOrderFns.splice(m,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(i,u){const{prop:c,order:d,init:f}=u;if(c){const h=s(i.columns).find(m=>m.property===c);h&&(h.order=d,e.store.updateSort(h,c,d),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(i,u){const{sortingColumn:c,sortProp:d,sortOrder:f}=i,h=s(c),m=s(d),p=s(f);oi(p)&&(i.sortingColumn.value=null,i.sortProp.value=null);const v={filter:!0};e.store.execQuery(v),(!u||!(u.silent||u.init))&&e.emit("sort-change",{column:h,prop:m,order:p}),e.store.updateTableScrollY()},filterChange(i,u){const{column:c,values:d,silent:f}=u,h=e.store.updateFilters(c,d);e.store.execQuery(),f||e.emit("filter-change",h),e.store.updateTableScrollY()},toggleAllSelection(){var i,u;(u=(i=e.store).toggleAllSelection)==null||u.call(i)},rowSelectedChanged(i,u){e.store.toggleRowSelection(u),e.store.updateAllSelected()},setHoverRow(i,u){i.hoverRow.value=u},setCurrentRow(i,u){e.store.updateCurrentRow(u)}},commit:function(i,...u){const c=e.store.mutations;if(c[i])c[i].apply(e,[e.store.states,...u]);else throw new Error(`Action not found: ${i}`)},updateTableScrollY:function(){ke(()=>e.layout.updateScrollY.apply(e.layout))}}}const Lm={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"},["treeProps.checkStrictly"]:{key:"checkStrictly",default:!1}};function oQ(e,t){if(!e)throw new Error("Table is required.");const n=nQ();return n.toggleAllSelection=ua(n._toggleAllSelection,10),Object.keys(Lm).forEach(o=>{M_(N_(t,o),o,n)}),aQ(n,t),n}function aQ(e,t){Object.keys(Lm).forEach(n=>{ie(()=>N_(t,n),o=>{M_(o,n,e)})})}function M_(e,t,n){let o=e,a=Lm[t];Rt(a)&&(o=o||a.default,a=a.key),n.states[a].value=o}function N_(e,t){if(t.includes(".")){const n=t.split(".");let o=e;return n.forEach(a=>{o=o[a]}),o}else return e[t]}class lQ{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=P(null),this.scrollX=P(!1),this.scrollY=P(!1),this.bodyWidth=P(null),this.fixedWidth=P(null),this.rightFixedWidth=P(null),this.gutterWidth=0;for(const n in t)Bn(t,n)&&(Yn(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const t=this.height.value;if(oi(t))return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n==null?void 0:n.wrapRef)){let o=!0;const a=this.scrollY.value;return o=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=o,a!==o}return!1}setHeight(t,n="height"){if(!Tt)return;const o=this.table.vnode.el;if(t=YJ(t),this.height.value=Number(t),!o&&(t||t===0)){ke(()=>this.setHeight(t,n));return}o&&xe(t)?(o.style[n]=`${t}px`,this.updateElsHeight()):o&&He(t)&&(o.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(o=>{o.isColumnGroup?t.push.apply(t,o.columns):t.push(o)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){var t;if(!Tt)return;const n=this.fit,o=(t=this.table.vnode.el)==null?void 0:t.clientWidth;let a=0;const l=this.getFlattenColumns(),r=l.filter(c=>!xe(c.width));if(l.forEach(c=>{xe(c.width)&&c.realWidth&&(c.realWidth=null)}),r.length>0&&n){if(l.forEach(c=>{a+=Number(c.width||c.minWidth||80)}),a<=o){this.scrollX.value=!1;const c=o-a;if(r.length===1)r[0].realWidth=Number(r[0].minWidth||80)+c;else{const d=r.reduce((m,p)=>m+Number(p.minWidth||80),0),f=c/d;let h=0;r.forEach((m,p)=>{if(p===0)return;const v=Math.floor(Number(m.minWidth||80)*f);h+=v,m.realWidth=Number(m.minWidth||80)+v}),r[0].realWidth=Number(r[0].minWidth||80)+c-h}}else this.scrollX.value=!0,r.forEach(c=>{c.realWidth=Number(c.minWidth)});this.bodyWidth.value=Math.max(a,o),this.table.state.resizeState.value.width=this.bodyWidth.value}else l.forEach(c=>{!c.width&&!c.minWidth?c.realWidth=80:c.realWidth=Number(c.width||c.minWidth),a+=c.realWidth}),this.scrollX.value=a>o,this.bodyWidth.value=a;const i=this.store.states.fixedColumns.value;if(i.length>0){let c=0;i.forEach(d=>{c+=Number(d.realWidth||d.width)}),this.fixedWidth.value=c}const u=this.store.states.rightFixedColumns.value;if(u.length>0){let c=0;u.forEach(d=>{c+=Number(d.realWidth||d.width)}),this.rightFixedWidth.value=c}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(o=>{var a,l;switch(t){case"columns":(a=o.state)==null||a.onColumnsChange(this);break;case"scrollable":(l=o.state)==null||l.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}var rQ=lQ;const sQ=ae({name:"ElTableFilterPanel",components:{ElCheckbox:ea,ElCheckboxGroup:td,ElScrollbar:Jo,ElTooltip:Ln,ElIcon:_e,ArrowDown:Aa,ArrowUp:nc},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:Vt.appendTo},setup(e){const t=ct(),{t:n}=wt(),o=fe("table-filter"),a=t==null?void 0:t.parent;e.column&&!a.filterPanels.value[e.column.id]&&(a.filterPanels.value[e.column.id]=t);const l=P(null),r=P(null),i=P(0),u=k(()=>e.column&&e.column.filters),c=k(()=>e.column&&e.column.filterClassName?`${o.b()} ${e.column.filterClassName}`:o.b()),d=k({get:()=>{var _;return(((_=e.column)==null?void 0:_.filteredValue)||[])[0]},set:_=>{f.value&&(Co(_)?f.value.splice(0,1):f.value.splice(0,1,_))}}),f=k({get(){return e.column?e.column.filteredValue||[]:[]},set(_){var T;e.column&&((T=e.upDataColumn)==null||T.call(e,"filteredValue",_))}}),h=k(()=>e.column?e.column.filterMultiple:!0),m=_=>_.value===d.value,p=()=>{var _;(_=l.value)==null||_.onClose()},v=()=>{C(f.value),p()},g=()=>{f.value=[],C(f.value),p()},b=(_,T)=>{d.value=_,i.value=T,Co(_)?C([]):C(f.value),p()},C=_=>{var T,N;(T=e.store)==null||T.commit("filterChange",{column:e.column,values:_}),(N=e.store)==null||N.updateAllSelected()},w=()=>{var _,T;(_=r.value)==null||_.focus(),!h.value&&S(),e.column&&((T=e.upDataColumn)==null||T.call(e,"filterOpened",!0))},y=()=>{var _;e.column&&((_=e.upDataColumn)==null||_.call(e,"filterOpened",!1))},S=()=>{if(Co(d)){i.value=0;return}const _=(u.value||[]).findIndex(T=>T.value===d.value);i.value=_>=0?_+1:0};return{multiple:h,filterClassName:c,filteredValue:f,filterValue:d,filters:u,handleConfirm:v,handleReset:g,handleSelect:b,isPropAbsent:Co,isActive:m,t:n,ns:o,tooltipRef:l,rootRef:r,checkedIndex:i,handleShowTooltip:w,handleHideTooltip:y,handleKeydown:_=>{var T,N;const O=Wt(_),A=(u.value?u.value.length:0)+1;let M=i.value,L=!0;switch(O){case pe.down:case pe.right:M=(M+1)%A;break;case pe.up:case pe.left:M=(M-1+A)%A;break;case pe.tab:p(),L=!1;break;case pe.enter:case pe.space:if(M===0)b(null,0);else{const H=(u.value||[])[M-1];H.value&&b(H.value,M)}break;default:L=!1;break}L&&_.preventDefault(),i.value=M,(N=(T=r.value)==null?void 0:T.querySelector(`.${o.e("list-item")}:nth-child(${M+1})`))==null||N.focus()}}}}),iQ=["disabled"],uQ=["tabindex","aria-checked"],cQ=["tabindex","aria-checked","onClick"],dQ=["aria-label"];function fQ(e,t,n,o,a,l){const r=It("el-checkbox"),i=It("el-checkbox-group"),u=It("el-scrollbar"),c=It("arrow-up"),d=It("arrow-down"),f=It("el-icon"),h=It("el-tooltip");return $(),oe(h,{ref:"tooltipRef",offset:0,placement:e.placement,"show-arrow":!1,trigger:"click",role:"dialog",teleported:"",effect:"light",pure:"",loop:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo,onShow:e.handleShowTooltip,onHide:e.handleHideTooltip},{content:Q(()=>[e.multiple?($(),F("div",{key:0,ref:"rootRef",tabindex:"-1",class:x(e.ns.e("multiple"))},[W("div",{class:x(e.ns.e("content"))},[Z(u,{"wrap-class":e.ns.e("wrap")},{default:Q(()=>[Z(i,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=m=>e.filteredValue=m),class:x(e.ns.e("checkbox-group"))},{default:Q(()=>[($(!0),F(Be,null,yt(e.filters,m=>($(),oe(r,{key:m.value,value:m.value},{default:Q(()=>[bt(ge(m.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),W("div",{class:x(e.ns.e("bottom"))},[W("button",{class:x(e.ns.is("disabled",e.filteredValue.length===0)),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...m)=>e.handleConfirm&&e.handleConfirm(...m))},ge(e.t("el.table.confirmFilter")),11,iQ),W("button",{type:"button",onClick:t[2]||(t[2]=(...m)=>e.handleReset&&e.handleReset(...m))},ge(e.t("el.table.resetFilter")),1)],2)],2)):($(),F("ul",{key:1,ref:"rootRef",tabindex:"-1",role:"radiogroup",class:x(e.ns.e("list")),onKeydown:t[4]||(t[4]=(...m)=>e.handleKeydown&&e.handleKeydown(...m))},[W("li",{role:"radio",class:x([e.ns.e("list-item"),e.ns.is("active",e.isPropAbsent(e.filterValue))]),tabindex:e.checkedIndex===0?0:-1,"aria-checked":e.isPropAbsent(e.filterValue),onClick:t[3]||(t[3]=m=>e.handleSelect(null,0))},ge(e.t("el.table.clearFilter")),11,uQ),($(!0),F(Be,null,yt(e.filters,(m,p)=>($(),F("li",{key:m.value,role:"radio",class:x([e.ns.e("list-item"),e.ns.is("active",e.isActive(m))]),tabindex:e.checkedIndex===p+1?0:-1,"aria-checked":e.isActive(m),onClick:v=>e.handleSelect(m.value,p+1)},ge(m.text),11,cQ))),128))],34))]),default:Q(()=>{var m;return[W("button",{type:"button",class:x(`${e.ns.namespace.value}-table__column-filter-trigger`),"aria-label":e.t("el.table.filterLabel",{column:((m=e.column)==null?void 0:m.label)||""})},[Z(f,null,{default:Q(()=>[ee(e.$slots,"filter-icon",{},()=>{var p;return[(p=e.column)!=null&&p.filterOpened?($(),oe(c,{key:0})):($(),oe(d,{key:1}))]})]),_:3})],10,dQ)]}),_:3},8,["placement","popper-class","append-to","onShow","onHide"])}var pQ=ye(sQ,[["render",fQ],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function Dm(e){const t=ct();Wd(()=>{n.value.addObserver(t)}),ut(()=>{o(n.value),a(n.value)}),qa(()=>{o(n.value),a(n.value)}),Ms(()=>{n.value.removeObserver(t)});const n=k(()=>{const l=e.layout;if(!l)throw new Error("Can not find table layout.");return l}),o=l=>{var r;const i=((r=e.vnode.el)==null?void 0:r.querySelectorAll("colgroup > col"))||[];if(!i.length)return;const u=l.getFlattenColumns(),c={};u.forEach(d=>{c[d.id]=d});for(let d=0,f=i.length;d<f;d++){const h=i[d],m=h.getAttribute("name"),p=c[m];p&&h.setAttribute("width",p.realWidth||p.width)}},a=l=>{var r,i;const u=((r=e.vnode.el)==null?void 0:r.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,f=u.length;d<f;d++)u[d].setAttribute("width",l.scrollY.value?l.gutterWidth:"0");const c=((i=e.vnode.el)==null?void 0:i.querySelectorAll("th.gutter"))||[];for(let d=0,f=c.length;d<f;d++){const h=c[d];h.style.width=l.scrollY.value?`${l.gutterWidth}px`:"0",h.style.display=l.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:o,onScrollableChange:a}}const Sa=Symbol("ElTable");function vQ(e,t){const n=ct(),o=Ee(Sa),a=v=>{v.stopPropagation()},l=(v,g)=>{!g.filters&&g.sortable?p(v,g,!1):g.filterable&&!g.sortable&&a(v),o==null||o.emit("header-click",g,v)},r=(v,g)=>{o==null||o.emit("header-contextmenu",g,v)},i=P(null),u=P(!1),c=P(),d=(v,g)=>{var b,C;if(!!Tt&&!(g.children&&g.children.length>0)&&i.value&&e.border&&i.value.id===g.id){u.value=!0;const w=o;t("set-drag-visible",!0);const y=w==null?void 0:w.vnode.el,S=y==null?void 0:y.getBoundingClientRect().left,E=(C=(b=n==null?void 0:n.vnode)==null?void 0:b.el)==null?void 0:C.querySelector(`th.${g.id}`),_=E.getBoundingClientRect(),T=_.left-S+30;Yo(E,"noclick"),c.value={startMouseLeft:v.clientX,startLeft:_.right-S,startColumnLeft:_.left-S,tableLeft:S};const N=w==null?void 0:w.refs.resizeProxy;N.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const O=M=>{const L=M.clientX-c.value.startMouseLeft,H=c.value.startLeft+L;N.style.left=`${Math.max(T,H)}px`},A=()=>{if(u.value){const{startColumnLeft:M,startLeft:L}=c.value,K=Number.parseInt(N.style.left,10)-M;g.width=g.realWidth=K,w==null||w.emit("header-dragend",g.width,L-M,g,v),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",u.value=!1,i.value=null,c.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",A),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{no(E,"noclick")},0)};document.addEventListener("mousemove",O),document.addEventListener("mouseup",A)}},f=(v,g)=>{var b;if(!e.border||g.children&&g.children.length>0)return;const C=v.target,w=wo(C)?C.closest("th"):null;if(!w)return;const y=Na(w,"is-sortable");if(y){const O=u.value?"col-resize":"";w.style.cursor=O;const A=w.querySelector(".caret-wrapper");A&&(A.style.cursor=O)}if(!g.resizable||u.value){i.value=null;return}const S=w.getBoundingClientRect(),E=((b=w.parentNode)==null?void 0:b.lastElementChild)===w,_=e.allowDragLastColumn||!E,T=S.width>12&&S.right-v.clientX<8&&_,N=T?"col-resize":"";document.body.style.cursor=N,i.value=T?g:null,y&&(w.style.cursor=N)},h=()=>{!Tt||u.value||(document.body.style.cursor="")},m=({order:v,sortOrders:g})=>{if(v==="")return g[0];const b=g.indexOf(v||null);return g[b>g.length-2?0:b+1]},p=(v,g,b)=>{var C;v.stopPropagation();const w=g.order===b?null:b||m(g),y=(C=v.target)==null?void 0:C.closest("th");if(y&&Na(y,"noclick")){no(y,"noclick");return}if(!g.sortable)return;const S=v.currentTarget;if(["ascending","descending"].some(O=>Na(S,O)&&!g.sortOrders.includes(O)))return;const E=e.store.states;let _=E.sortProp.value,T;const N=E.sortingColumn.value;(N!==g||N===g&&oi(N.order))&&(N&&(N.order=null),E.sortingColumn.value=g,_=g.property),w?T=g.order=w:T=g.order=null,E.sortProp.value=_,E.sortOrder.value=T,o==null||o.store.commit("changeSortCondition")};return{handleHeaderClick:l,handleHeaderContextMenu:r,handleMouseDown:d,handleMouseMove:f,handleMouseOut:h,handleSortClick:p,handleFilterClick:a}}function hQ(e){const t=Ee(Sa),n=fe("table");return{getHeaderRowStyle:i=>{const u=t==null?void 0:t.props.headerRowStyle;return lt(u)?u.call(null,{rowIndex:i}):u},getHeaderRowClass:i=>{const u=[],c=t==null?void 0:t.props.headerRowClassName;return He(c)?u.push(c):lt(c)&&u.push(c.call(null,{rowIndex:i})),u.join(" ")},getHeaderCellStyle:(i,u,c,d)=>{var f;let h=(f=t==null?void 0:t.props.headerCellStyle)!=null?f:{};lt(h)&&(h=h.call(null,{rowIndex:i,columnIndex:u,row:c,column:d}));const m=Nm(u,d.fixed,e.store,c);return ks(m,"left"),ks(m,"right"),Object.assign({},h,m)},getHeaderCellClass:(i,u,c,d)=>{const f=Mm(n.b(),u,d.fixed,e.store,c),h=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...f];d.children||h.push("is-leaf"),d.sortable&&h.push("is-sortable");const m=t==null?void 0:t.props.headerCellClassName;return He(m)?h.push(m):lt(m)&&h.push(m.call(null,{rowIndex:i,columnIndex:u,row:c,column:d})),h.push(n.e("cell")),h.filter(p=>Boolean(p)).join(" ")}}}const A_=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,A_(n.children))):t.push(n)}),t},P_=e=>{let t=1;const n=(l,r)=>{if(r&&(l.level=r.level+1,t<l.level&&(t=l.level)),l.children){let i=0;l.children.forEach(u=>{n(u,l),i+=u.colSpan}),l.colSpan=i}else l.colSpan=1};e.forEach(l=>{l.level=1,n(l,void 0)});const o=[];for(let l=0;l<t;l++)o.push([]);return A_(e).forEach(l=>{l.children?(l.rowSpan=1,l.children.forEach(r=>r.isSubColumn=!0)):l.rowSpan=t-l.level+1,o[l.level-1].push(l)}),o};function mQ(e){const t=Ee(Sa),n=k(()=>P_(e.store.states.originColumns.value));return{isGroup:k(()=>{const l=n.value.length>1;return l&&t&&(t.state.isGroup.value=!0),l}),toggleAllSelection:l=>{l.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var gQ=ae({name:"ElTableHeader",components:{ElCheckbox:ea},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const n=ct(),o=Ee(Sa),a=fe("table"),l=P({}),{onColumnsChange:r,onScrollableChange:i}=Dm(o),u=(o==null?void 0:o.props.tableLayout)==="auto",c=Pt(new Map),d=P();let f;const h=()=>{f=setTimeout(()=>{c.size>0&&(c.forEach((M,L)=>{const H=d.value.querySelector(`.${L.replace(/\s/g,".")}`);if(H){const K=H.getBoundingClientRect().width;M.width=K||M.width}}),c.clear())})};ie(c,h),Bt(()=>{f&&(clearTimeout(f),f=void 0)}),ut(async()=>{await ke(),await ke();const{prop:M,order:L}=e.defaultSort;o==null||o.store.commit("sort",{prop:M,order:L,init:!0}),h()});const{handleHeaderClick:m,handleHeaderContextMenu:p,handleMouseDown:v,handleMouseMove:g,handleMouseOut:b,handleSortClick:C,handleFilterClick:w}=vQ(e,t),{getHeaderRowStyle:y,getHeaderRowClass:S,getHeaderCellStyle:E,getHeaderCellClass:_}=hQ(e),{isGroup:T,toggleAllSelection:N,columnRows:O}=mQ(e),{t:A}=wt();return n.state={onColumnsChange:r,onScrollableChange:i},n.filterPanels=l,{ns:a,t:A,filterPanels:l,onColumnsChange:r,onScrollableChange:i,columnRows:O,getHeaderRowClass:S,getHeaderRowStyle:y,getHeaderCellClass:_,getHeaderCellStyle:E,handleHeaderClick:m,handleHeaderContextMenu:p,handleMouseDown:v,handleMouseMove:g,handleMouseOut:b,handleSortClick:C,handleFilterClick:w,isGroup:T,toggleAllSelection:N,saveIndexSelection:c,isTableLayoutAuto:u,theadRef:d,updateFixedColumnStyle:h}},render(){const{ns:e,t,isGroup:n,columnRows:o,getHeaderCellStyle:a,getHeaderCellClass:l,getHeaderRowClass:r,getHeaderRowStyle:i,handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:d,handleMouseMove:f,handleSortClick:h,handleMouseOut:m,store:p,$parent:v,saveIndexSelection:g,isTableLayoutAuto:b}=this;let C=1;return Le("thead",{ref:"theadRef",class:e.is("group",n)},o.map((w,y)=>Le("tr",{class:r(y),key:y,style:i(y)},w.map((S,E)=>{S.rowSpan>C&&(C=S.rowSpan);const _=l(y,E,w,S);return b&&S.fixed&&g.set(_,S),Le("th",{class:_,colspan:S.colSpan,key:`${S.id}-thead`,rowspan:S.rowSpan,scope:S.colSpan>1?"colgroup":"col",ariaSort:S.sortable?S.order:void 0,style:a(y,E,w,S),onClick:T=>{var N;(N=T.currentTarget)!=null&&N.classList.contains("noclick")||u(T,S)},onContextmenu:T=>c(T,S),onMousedown:T=>d(T,S),onMousemove:T=>f(T,S),onMouseout:m},[Le("div",{class:["cell",S.filteredValue&&S.filteredValue.length>0?"highlight":""]},[S.renderHeader?S.renderHeader({column:S,$index:E,store:p,_self:v}):S.label,S.sortable&&Le("button",{type:"button",class:"caret-wrapper","aria-label":t("el.table.sortLabel",{column:S.label||""}),onClick:T=>h(T,S)},[Le("i",{onClick:T=>h(T,S,"ascending"),class:"sort-caret ascending"}),Le("i",{onClick:T=>h(T,S,"descending"),class:"sort-caret descending"})]),S.filterable&&Le(pQ,{store:p,placement:S.filterPlacement||"bottom-start",appendTo:v==null?void 0:v.appendFilterPanelTo,column:S,upDataColumn:(T,N)=>{S[T]=N}},{"filter-icon":()=>S.renderFilterIcon?S.renderFilterIcon({filterOpened:S.filterOpened}):null})])])}))))}});function Bm(e,t,n=.03){return e-t>n}function bQ(e){const t=Ee(Sa),n=P(""),o=P(Le("div")),a=(p,v,g)=>{var b,C,w;const y=t,S=xm(p);let E=null;const _=(b=y==null?void 0:y.vnode.el)==null?void 0:b.dataset.prefix;S&&(E=$_({columns:(w=(C=e.store)==null?void 0:C.states.columns.value)!=null?w:[]},S,_),E&&(y==null||y.emit(`cell-${g}`,v,E,S,p))),y==null||y.emit(`row-${g}`,v,E,p)},l=(p,v)=>{a(p,v,"dblclick")},r=(p,v)=>{var g;(g=e.store)==null||g.commit("setCurrentRow",v),a(p,v,"click")},i=(p,v)=>{a(p,v,"contextmenu")},u=ua(p=>{var v;(v=e.store)==null||v.commit("setHoverRow",p)},30),c=ua(()=>{var p;(p=e.store)==null||p.commit("setHoverRow",null)},30),d=p=>{const v=window.getComputedStyle(p,null),g=Number.parseInt(v.paddingLeft,10)||0,b=Number.parseInt(v.paddingRight,10)||0,C=Number.parseInt(v.paddingTop,10)||0,w=Number.parseInt(v.paddingBottom,10)||0;return{left:g,right:b,top:C,bottom:w}},f=(p,v,g)=>{var b;let C=(b=v==null?void 0:v.target)==null?void 0:b.parentNode;for(;p>1&&(C=C==null?void 0:C.nextSibling,!(!C||C.nodeName!=="TR"));)g(C,"hover-row hover-fixed-row"),p--};return{handleDoubleClick:l,handleClick:r,handleContextMenu:i,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(p,v,g)=>{var b,C,w,y,S,E,_,T,N;if(!t)return;const O=t,A=xm(p),M=(b=O==null?void 0:O.vnode.el)==null?void 0:b.dataset.prefix;let L=null;if(A){if(L=$_({columns:(w=(C=e.store)==null?void 0:C.states.columns.value)!=null?w:[]},A,M),!L)return;A.rowSpan>1&&f(A.rowSpan,p,Yo);const le=O.hoverState={cell:A,column:L,row:v};O==null||O.emit("cell-mouse-enter",le.row,le.column,le.cell,p)}if(!g){((y=ro)==null?void 0:y.trigger)===A&&((S=ro)==null||S());return}const H=p.target.querySelector(".cell");if(!(Na(H,`${M}-tooltip`)&&H.childNodes.length&&((E=H.textContent)==null?void 0:E.trim())))return;const K=document.createRange();K.setStart(H,0),K.setEnd(H,H.childNodes.length);const{width:Y,height:I}=K.getBoundingClientRect(),{width:R,height:D}=H.getBoundingClientRect(),{top:B,left:z,right:U,bottom:V}=d(H),G=z+U,X=B+V;Bm(Y+G,R)||Bm(I+X,D)||Bm(H.scrollWidth,R)?XJ(g,(_=(A==null?void 0:A.innerText)||(A==null?void 0:A.textContent))!=null?_:"",v,L,A,O):((T=ro)==null?void 0:T.trigger)===A&&((N=ro)==null||N())},handleCellMouseLeave:p=>{const v=xm(p);if(!v)return;v.rowSpan>1&&f(v.rowSpan,p,no);const g=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",g==null?void 0:g.row,g==null?void 0:g.column,g==null?void 0:g.cell,p)},tooltipContent:n,tooltipTrigger:o}}function yQ(e){const t=Ee(Sa),n=fe("table");return{getRowStyle:(c,d)=>{const f=t==null?void 0:t.props.rowStyle;return lt(f)?f.call(null,{row:c,rowIndex:d}):f||null},getRowClass:(c,d,f)=>{var h;const m=[n.e("row")];(t==null?void 0:t.props.highlightCurrentRow)&&c===((h=e.store)==null?void 0:h.states.currentRow.value)&&m.push("current-row"),e.stripe&&f%2===1&&m.push(n.em("row","striped"));const p=t==null?void 0:t.props.rowClassName;return He(p)?m.push(p):lt(p)&&m.push(p.call(null,{row:c,rowIndex:d})),m},getCellStyle:(c,d,f,h)=>{const m=t==null?void 0:t.props.cellStyle;let p=m!=null?m:{};lt(m)&&(p=m.call(null,{rowIndex:c,columnIndex:d,row:f,column:h}));const v=Nm(d,e==null?void 0:e.fixed,e.store);return ks(v,"left"),ks(v,"right"),Object.assign({},p,v)},getCellClass:(c,d,f,h,m)=>{const p=Mm(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,m),v=[h.id,h.align,h.className,...p],g=t==null?void 0:t.props.cellClassName;return He(g)?v.push(g):lt(g)&&v.push(g.call(null,{rowIndex:c,columnIndex:d,row:f,column:h})),v.push(n.e("cell")),v.filter(b=>Boolean(b)).join(" ")},getSpan:(c,d,f,h)=>{let m=1,p=1;const v=t==null?void 0:t.props.spanMethod;if(lt(v)){const g=v({row:c,column:d,rowIndex:f,columnIndex:h});$e(g)?(m=g[0],p=g[1]):Rt(g)&&(m=g.rowspan,p=g.colspan)}return{rowspan:m,colspan:p}},getColspanRealWidth:(c,d,f)=>{if(d<1)return c[f].realWidth;const h=c.map(({realWidth:m,width:p})=>m||p).slice(f,f+d);return Number(h.reduce((m,p)=>Number(m)+Number(p),-1))}}}const wQ=["colspan","rowspan"],CQ=ae({name:"TableTdWrapper",__name:"td-wrapper",props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>($(),F("td",{colspan:e.colspan,rowspan:e.rowspan},[ee(t.$slots,"default")],8,wQ))}});var SQ=ye(CQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table-body/td-wrapper.vue"]]);function kQ(e){const t=Ee(Sa),n=fe("table"),{handleDoubleClick:o,handleClick:a,handleContextMenu:l,handleMouseEnter:r,handleMouseLeave:i,handleCellMouseEnter:u,handleCellMouseLeave:c,tooltipContent:d,tooltipTrigger:f}=bQ(e),{getRowStyle:h,getRowClass:m,getCellStyle:p,getCellClass:v,getSpan:g,getColspanRealWidth:b}=yQ(e);let C=-1;const w=k(()=>{var T;return(T=e.store)==null?void 0:T.states.columns.value.findIndex(({type:N})=>N==="default")}),y=(T,N)=>{var O;const A=(O=t==null?void 0:t.props)==null?void 0:O.rowKey;return A?Jn(T,A):N},S=(T,N,O,A=!1)=>{const{tooltipEffect:M,tooltipOptions:L,store:H}=e,{indent:K,columns:Y}=H.states,I=[];let R=!0;return O&&(I.push(n.em("row",`level-${O.level}`)),R=!!O.display),N===0&&(C=-1),e.stripe&&R&&C++,I.push(...m(T,N,C)),Le("tr",{style:[R?null:{display:"none"},h(T,N)],class:I,key:y(T,N),onDblclick:B=>o(B,T),onClick:B=>a(B,T),onContextmenu:B=>l(B,T),onMouseenter:()=>r(N),onMouseleave:i},Y.value.map((B,z)=>{const{rowspan:U,colspan:V}=g(T,B,N,z);if(!U||!V)return null;const G=Object.assign({},B);G.realWidth=b(Y.value,V,z);const X={store:H,_self:e.context||t,column:G,row:T,$index:N,cellIndex:z,expanded:A};z===w.value&&O&&(X.treeNode={indent:O.level&&O.level*K.value,level:O.level},zt(O.expanded)&&(X.treeNode.expanded=O.expanded,"loading"in O&&(X.treeNode.loading=O.loading),"noLazyChildren"in O&&(X.treeNode.noLazyChildren=O.noLazyChildren)));const le=`${y(T,N)},${z}`,se=G.columnKey||G.rawColumnKey||"",de=B.showOverflowTooltip&&op({effect:M},L,B.showOverflowTooltip);return Le(SQ,{style:p(N,z,T,B),class:v(N,z,T,B,V-1),key:`${se}${le}`,rowspan:U,colspan:V,onMouseenter:ce=>u(ce,T,de),onMouseleave:c},{default:()=>E(z,B,X)})}))},E=(T,N,O)=>N.renderCell(O);return{wrappedRowRender:(T,N)=>{const O=e.store,{isRowExpanded:A,assertRowKey:M}=O,{treeData:L,lazyTreeNodeMap:H,childrenColumnName:K,rowKey:Y}=O.states,I=O.states.columns.value;if(I.some(({type:D})=>D==="expand")){const D=A(T),B=S(T,N,void 0,D),z=t==null?void 0:t.renderExpanded;if(!z)return console.error("[Element Error]renderExpanded is required."),B;const U=[[B]];return(t.props.preserveExpandedContent||D)&&U[0].push(Le("tr",{key:`expanded-row__${B.key}`,style:{display:D?"":"none"}},[Le("td",{colspan:I.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[z({row:T,$index:N,store:O,expanded:D})])])),U}else if(Object.keys(L.value).length){M();const D=Jn(T,Y.value);let B=L.value[D],z=null;B&&(z={expanded:B.expanded,level:B.level,display:!0,noLazyChildren:void 0,loading:void 0},zt(B.lazy)&&(z&&zt(B.loaded)&&B.loaded&&(z.noLazyChildren=!(B.children&&B.children.length)),z.loading=B.loading));const U=[S(T,N,z!=null?z:void 0)];if(B){let V=0;const G=(le,se)=>{!(le&&le.length&&se)||le.forEach(de=>{const ce={display:se.display&&se.expanded,level:se.level+1,expanded:!1,noLazyChildren:!1,loading:!1},ne=Jn(de,Y.value);if(Co(ne))throw new Error("For nested data item, row-key is required.");if(B={...L.value[ne]},B&&(ce.expanded=B.expanded,B.level=B.level||ce.level,B.display=!!(B.expanded&&ce.display),zt(B.lazy)&&(zt(B.loaded)&&B.loaded&&(ce.noLazyChildren=!(B.children&&B.children.length)),ce.loading=B.loading)),V++,U.push(S(de,N+V,ce)),B){const j=H.value[ne]||de[K.value];G(j,B)}})};B.display=!0;const X=H.value[D]||T[K.value];G(X,B)}return U}else return S(T,N,void 0)},tooltipContent:d,tooltipTrigger:f}}const EQ={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var $Q=EQ,_Q=ae({name:"ElTableBody",props:$Q,setup(e){var t;const n=ct(),o=Ee(Sa),a=fe("table"),{wrappedRowRender:l,tooltipContent:r,tooltipTrigger:i}=kQ(e),{onColumnsChange:u,onScrollableChange:c}=Dm(o),d=[];return ie((t=e.store)==null?void 0:t.states.hoverRow,(f,h)=>{var m,p;const v=n==null?void 0:n.vnode.el,g=Array.from((v==null?void 0:v.children)||[]).filter(w=>w==null?void 0:w.classList.contains(`${a.e("row")}`));let b=f;const C=(m=g[b])==null?void 0:m.childNodes;if(C!=null&&C.length){let w=0;Array.from(C).reduce((S,E,_)=>{var T,N;return((T=C[_])==null?void 0:T.colSpan)>1&&(w=(N=C[_])==null?void 0:N.colSpan),E.nodeName!=="TD"&&w===0&&S.push(_),w>0&&w--,S},[]).forEach(S=>{var E;for(b=f;b>0;){const _=(E=g[b-1])==null?void 0:E.childNodes;if(_[S]&&_[S].nodeName==="TD"&&_[S].rowSpan>1){Yo(_[S],"hover-cell"),d.push(_[S]);break}b--}})}else d.forEach(w=>no(w,"hover-cell")),d.length=0;!((p=e.store)!=null&&p.states.isComplex.value)||!Tt||Ma(()=>{const w=g[h],y=g[f];w&&!w.classList.contains("hover-fixed-row")&&no(w,"hover-row"),y&&Yo(y,"hover-row")})}),Ms(()=>{var f;(f=ro)==null||f()}),{ns:a,onColumnsChange:u,onScrollableChange:c,wrappedRowRender:l,tooltipContent:r,tooltipTrigger:i}},render(){const{wrappedRowRender:e,store:t}=this,n=(t==null?void 0:t.states.data.value)||[];return Le("tbody",{tabIndex:-1},[n.reduce((o,a)=>o.concat(e(a,o.length)),[])])}});function TQ(){const e=Ee(Sa),t=e==null?void 0:e.store,n=k(()=>{var i;return(i=t==null?void 0:t.states.fixedLeafColumnsLength.value)!=null?i:0}),o=k(()=>{var i;return(i=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?i:0}),a=k(()=>{var i;return(i=t==null?void 0:t.states.columns.value.length)!=null?i:0}),l=k(()=>{var i;return(i=t==null?void 0:t.states.fixedColumns.value.length)!=null?i:0}),r=k(()=>{var i;return(i=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?i:0});return{leftFixedLeafCount:n,rightFixedLeafCount:o,columnsCount:a,leftFixedCount:l,rightFixedCount:r,columns:k(()=>{var i;return(i=t==null?void 0:t.states.columns.value)!=null?i:[]})}}function OQ(e){const{columns:t}=TQ(),n=fe("table");return{getCellClasses:(l,r)=>{const i=l[r],u=[n.e("cell"),i.id,i.align,i.labelClassName,...Mm(n.b(),r,i.fixed,e.store)];return i.className&&u.push(i.className),i.children||u.push(n.is("leaf")),u},getCellStyles:(l,r)=>{const i=Nm(r,l.fixed,e.store);return ks(i,"left"),ks(i,"right"),i},columns:t}}var RQ=ae({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=Ee(Sa),n=fe("table"),{getCellClasses:o,getCellStyles:a,columns:l}=OQ(e),{onScrollableChange:r,onColumnsChange:i}=Dm(t);return{ns:n,onScrollableChange:r,onColumnsChange:i,getCellClasses:o,getCellStyles:a,columns:l}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:o,sumText:a}=this,l=this.store.states.data.value;let r=[];return o?r=o({columns:e,data:l}):e.forEach((i,u)=>{if(u===0){r[u]=a;return}const c=l.map(m=>Number(m[i.property])),d=[];let f=!0;c.forEach(m=>{if(!Number.isNaN(+m)){f=!1;const p=`${m}`.split(".")[1];d.push(p?p.length:0)}});const h=Math.max.apply(null,d);f?r[u]="":r[u]=c.reduce((m,p)=>{const v=Number(p);return Number.isNaN(+v)?m:Number.parseFloat((m+p).toFixed(Math.min(h,20)))},0)}),Le(Le("tfoot",[Le("tr",{},[...e.map((i,u)=>Le("td",{key:u,colspan:i.colSpan,rowspan:i.rowSpan,class:n(e,u),style:t(i,u)},[Le("div",{class:["cell",i.labelClassName]},[r[u]])]))])]))}});function xQ(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,h,m=!0)=>{e.toggleRowSelection(f,h,!1,m),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,h)=>{e.toggleRowExpansionAdapter(f,h)},clearSort:()=>{e.clearSort()},sort:(f,h)=>{e.commit("sort",{prop:f,order:h})},updateKeyChildren:(f,h)=>{e.updateKeyChildren(f,h)}}}function IQ(e,t,n,o){const a=P(!1),l=P(null),r=P(!1),i=I=>{r.value=I},u=P({width:null,height:null,headerHeight:null}),c=P(!1),d={display:"inline-block",verticalAlign:"middle"},f=P(),h=P(0),m=P(0),p=P(0),v=P(0),g=P(0);ie(()=>e.height,I=>{t.setHeight(I!=null?I:null)},{immediate:!0}),ie(()=>e.maxHeight,I=>{t.setMaxHeight(I!=null?I:null)},{immediate:!0}),ie(()=>[e.currentRowKey,n.states.rowKey],([I,R])=>{!s(R)||!s(I)||n.setCurrentRowKey(`${I}`)},{immediate:!0}),ie(()=>e.data,I=>{o.store.commit("setData",I)},{immediate:!0,deep:!0}),io(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const b=()=>{o.store.commit("setHoverRow",null),o.hoverState&&(o.hoverState=null)},C=(I,R)=>{const{pixelX:D,pixelY:B}=R;Math.abs(D)>=Math.abs(B)&&(o.refs.bodyWrapper.scrollLeft+=R.pixelX/5)},w=k(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),y=k(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),S=()=>{w.value&&t.updateElsHeight(),t.updateColumnsWidth(),typeof window!="undefined"&&requestAnimationFrame(N)};ut(async()=>{await ke(),n.updateColumns(),O(),requestAnimationFrame(S);const I=o.vnode.el,R=o.refs.headerWrapper;e.flexible&&I&&I.parentElement&&(I.parentElement.style.minWidth="0"),u.value={width:f.value=I.offsetWidth,height:I.offsetHeight,headerHeight:e.showHeader&&R?R.offsetHeight:null},n.states.columns.value.forEach(D=>{D.filteredValue&&D.filteredValue.length&&o.store.commit("filterChange",{column:D,values:D.filteredValue,silent:!0})}),o.$ready=!0});const E=(I,R)=>{if(!I)return;const D=Array.from(I.classList).filter(B=>!B.startsWith("is-scrolling-"));D.push(t.scrollX.value?R:"is-scrolling-none"),I.className=D.join(" ")},_=I=>{const{tableWrapper:R}=o.refs;E(R,I)},T=I=>{const{tableWrapper:R}=o.refs;return!!(R&&R.classList.contains(I))},N=function(){if(!o.refs.scrollBarRef)return;if(!t.scrollX.value){const G="is-scrolling-none";T(G)||_(G);return}const I=o.refs.scrollBarRef.wrapRef;if(!I)return;const{scrollLeft:R,offsetWidth:D,scrollWidth:B}=I,{headerWrapper:z,footerWrapper:U}=o.refs;z&&(z.scrollLeft=R),U&&(U.scrollLeft=R);const V=B-D-1;R>=V?_("is-scrolling-right"):_(R===0?"is-scrolling-left":"is-scrolling-middle")},O=()=>{!o.refs.scrollBarRef||(o.refs.scrollBarRef.wrapRef&&Mt(o.refs.scrollBarRef.wrapRef,"scroll",N,{passive:!0}),e.fit?Qt(o.vnode.el,A):Mt(window,"resize",A),Qt(o.refs.tableInnerWrapper,()=>{var I,R;A(),(R=(I=o.refs)==null?void 0:I.scrollBarRef)==null||R.update()}))},A=()=>{var I,R,D,B;const z=o.vnode.el;if(!o.$ready||!z)return;let U=!1;const{width:V,height:G,headerHeight:X}=u.value,le=f.value=z.offsetWidth;V!==le&&(U=!0);const se=z.offsetHeight;(e.height||w.value)&&G!==se&&(U=!0);const de=e.tableLayout==="fixed"?o.refs.headerWrapper:(I=o.refs.tableHeaderRef)==null?void 0:I.$el;e.showHeader&&(de==null?void 0:de.offsetHeight)!==X&&(U=!0),h.value=((R=o.refs.tableWrapper)==null?void 0:R.scrollHeight)||0,p.value=(de==null?void 0:de.scrollHeight)||0,v.value=((D=o.refs.footerWrapper)==null?void 0:D.offsetHeight)||0,g.value=((B=o.refs.appendWrapper)==null?void 0:B.offsetHeight)||0,m.value=h.value-p.value-v.value-g.value,U&&(u.value={width:le,height:se,headerHeight:e.showHeader&&(de==null?void 0:de.offsetHeight)||0},S())},M=wn(),L=k(()=>{const{bodyWidth:I,scrollY:R,gutterWidth:D}=t;return I.value?`${I.value-(R.value?D:0)}px`:""}),H=k(()=>e.maxHeight?"fixed":e.tableLayout),K=k(()=>{if(e.data&&e.data.length)return;let I="100%";e.height&&m.value&&(I=`${m.value}px`);const R=f.value;return{width:R?`${R}px`:"",height:I}}),Y=k(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${p.value+v.value}px)`}:{maxHeight:`${+e.maxHeight-p.value-v.value}px`}:{});return{isHidden:a,renderExpanded:l,setDragVisible:i,isGroup:c,handleMouseLeave:b,handleHeaderFooterMousewheel:C,tableSize:M,emptyBlockStyle:K,resizeProxyVisible:r,bodyWidth:L,resizeState:u,doLayout:S,tableBodyStyles:y,tableLayout:H,scrollbarViewStyle:d,scrollbarStyle:Y}}function MQ(e){let t;const n=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),l={childList:!0,subtree:!0},r=e.store.states.updateOrderFns;t=new MutationObserver(()=>{r.forEach(i=>i())}),t.observe(a,l)};ut(()=>{n()}),Ms(()=>{t==null||t.disconnect()})}var NQ={data:{type:Array,default:()=>[]},size:Tn,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:[String,Object,Array],default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:Boolean,nativeScrollbar:Boolean};function L_(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:a})=>_t(a))&&(n=[]);const o=a=>{const l={key:`${e.tableLayout}_${a.id}`,style:{},name:void 0};return t?l.style={width:`${a.width}px`}:l.name=a.id,l};return Le("colgroup",{},n.map(a=>Le("col",o(a))))}L_.props=["columns","tableLayout"];const AQ=()=>{const e=P(),t=(l,r)=>{const i=e.value;i&&i.scrollTo(l,r)},n=(l,r)=>{const i=e.value;i&&xe(r)&&["Top","Left"].includes(l)&&i[`setScroll${l}`](r)};return{scrollBarRef:e,scrollTo:t,setScrollTop:l=>n("Top",l),setScrollLeft:l=>n("Left",l)}};let PQ=1;const LQ=ae({name:"ElTable",directives:{Mousewheel:yk},components:{TableHeader:gQ,TableBody:_Q,TableFooter:RQ,ElScrollbar:Jo,hColgroup:L_},props:NQ,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t}=wt(),n=fe("table"),o=ct();St(Sa,o);const a=oQ(o,e);o.store=a;const l=new rQ({store:o.store,table:o,fit:e.fit,showHeader:e.showHeader});o.layout=l;const r=k(()=>(a.states.data.value||[]).length===0),{setCurrentRow:i,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:m,clearSort:p,sort:v,updateKeyChildren:g}=xQ(a),{isHidden:b,renderExpanded:C,setDragVisible:w,isGroup:y,handleMouseLeave:S,handleHeaderFooterMousewheel:E,tableSize:_,emptyBlockStyle:T,resizeProxyVisible:N,bodyWidth:O,resizeState:A,doLayout:M,tableBodyStyles:L,tableLayout:H,scrollbarViewStyle:K,scrollbarStyle:Y}=IQ(e,l,a,o),{scrollBarRef:I,scrollTo:R,setScrollLeft:D,setScrollTop:B}=AQ(),z=ua(M,50),U=`${n.namespace.value}-table_${PQ++}`;o.tableId=U,o.state={isGroup:y,resizeState:A,doLayout:M,debouncedUpdateLayout:z};const V=k(()=>{var le;return(le=e.sumText)!=null?le:t("el.table.sumText")}),G=k(()=>{var le;return(le=e.emptyText)!=null?le:t("el.table.emptyText")}),X=k(()=>P_(a.states.originColumns.value)[0]);return MQ(o),Bt(()=>{z.cancel()}),{ns:n,layout:l,store:a,columns:X,handleHeaderFooterMousewheel:E,handleMouseLeave:S,tableId:U,tableSize:_,isHidden:b,isEmpty:r,renderExpanded:C,resizeProxyVisible:N,resizeState:A,isGroup:y,bodyWidth:O,tableBodyStyles:L,emptyBlockStyle:T,debouncedUpdateLayout:z,setCurrentRow:i,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:m,clearSort:p,doLayout:M,sort:v,updateKeyChildren:g,t,setDragVisible:w,context:o,computedSumText:V,computedEmptyText:G,tableLayout:H,scrollbarViewStyle:K,scrollbarStyle:Y,scrollBarRef:I,scrollTo:R,setScrollLeft:D,setScrollTop:B,allowDragLastColumn:e.allowDragLastColumn}}}),DQ=["data-prefix"],BQ={ref:"hiddenColumns",class:"hidden-columns"};function FQ(e,t,n,o,a,l){const r=It("hColgroup"),i=It("table-header"),u=It("table-body"),c=It("table-footer"),d=It("el-scrollbar"),f=jd("mousewheel");return $(),F("div",{ref:"tableWrapper",class:x([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Ie(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[1]||(t[1]=(...h)=>e.handleMouseLeave&&e.handleMouseLeave(...h))},[W("div",{ref:"tableInnerWrapper",class:x(e.ns.e("inner-wrapper"))},[W("div",BQ,[ee(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?tt(($(),F("div",{key:0,ref:"headerWrapper",class:x(e.ns.e("header-wrapper"))},[W("table",{ref:"tableHeader",class:x(e.ns.e("header")),style:Ie(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[Z(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Z(i,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):te("v-if",!0),W("div",{ref:"bodyWrapper",class:x(e.ns.e("body-wrapper"))},[Z(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,native:e.nativeScrollbar,onScroll:t[0]||(t[0]=h=>e.$emit("scroll",h))},{default:Q(()=>[W("table",{ref:"tableBody",class:x(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Ie({width:e.bodyWidth,tableLayout:e.tableLayout})},[Z(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?($(),oe(i,{key:0,ref:"tableHeaderRef",class:x(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):te("v-if",!0),Z(u,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?($(),oe(c,{key:1,class:x(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):te("v-if",!0)],6),e.isEmpty?($(),F("div",{key:0,ref:"emptyBlock",style:Ie(e.emptyBlockStyle),class:x(e.ns.e("empty-block"))},[W("span",{class:x(e.ns.e("empty-text"))},[ee(e.$slots,"empty",{},()=>[bt(ge(e.computedEmptyText),1)])],2)],6)):te("v-if",!0),e.$slots.append?($(),F("div",{key:1,ref:"appendWrapper",class:x(e.ns.e("append-wrapper"))},[ee(e.$slots,"append")],2)):te("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","native"])],2),e.showSummary&&e.tableLayout==="fixed"?tt(($(),F("div",{key:1,ref:"footerWrapper",class:x(e.ns.e("footer-wrapper"))},[W("table",{class:x(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:Ie(e.tableBodyStyles)},[Z(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Z(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[xt,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):te("v-if",!0),e.border||e.isGroup?($(),F("div",{key:2,class:x(e.ns.e("border-left-patch"))},null,2)):te("v-if",!0)],2),tt(W("div",{ref:"resizeProxy",class:x(e.ns.e("column-resize-proxy"))},null,2),[[xt,e.resizeProxyVisible]])],46,DQ)}var VQ=ye(LQ,[["render",FQ],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const zQ={selection:"table-column--selection",expand:"table__expand-column"},HQ={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},WQ=e=>zQ[e]||"",KQ={selection:{renderHeader({store:e}){var t;function n(){return e.states.data.value&&e.states.data.value.length===0}return Le(ea,{disabled:n(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":(t=e.toggleAllSelection)!=null?t:void 0,modelValue:e.states.isAllSelected.value,ariaLabel:e.t("el.table.selectAllLabel")})},renderCell({row:e,column:t,store:n,$index:o}){return Le(ea,{disabled:t.selectable?!t.selectable.call(null,e,o):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:a=>a.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:n.t("el.table.selectRowLabel")})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const o=e.index;return xe(o)?n=t+o:lt(o)&&(n=o(t)),Le("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({column:e,row:t,store:n,expanded:o}){const{ns:a}=n,l=[a.e("expand-icon")];!e.renderExpand&&o&&l.push(a.em("expand-icon","expanded"));const r=function(i){i.stopPropagation(),n.toggleRowExpansion(t)};return Le("button",{type:"button","aria-label":n.t(o?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":o,class:l,onClick:r},{default:()=>e.renderExpand?[e.renderExpand({expanded:o})]:[Le(_e,null,{default:()=>[Le(oo)]})]})},sortable:!1,resizable:!1}};function jQ({row:e,column:t,$index:n}){var o;const a=t.property,l=a&&Kr(e,a).value;return t&&t.formatter?t.formatter(e,t,l,n):((o=l==null?void 0:l.toString)==null?void 0:o.call(l))||""}function YQ({row:e,treeNode:t,store:n},o=!1){const{ns:a}=n;if(!t)return o?[Le("span",{class:a.e("placeholder")})]:null;const l=[],r=function(i){i.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&l.push(Le("span",{class:a.e("indent"),style:{"padding-left":`${t.indent}px`}})),zt(t.expanded)&&!t.noLazyChildren){const i=[a.e("expand-icon"),t.expanded?a.em("expand-icon","expanded"):""];let u=oo;t.loading&&(u=Pa),l.push(Le("button",{type:"button","aria-label":n.t(t.expanded?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":t.expanded,class:i,onClick:r},{default:()=>[Le(_e,{class:a.is("loading",t.loading)},{default:()=>[Le(u)]})]}))}else l.push(Le("span",{class:a.e("placeholder")}));return l}function D_(e,t){return e.reduce((n,o)=>(n[o]=o,n),t)}function UQ(e,t){const n=ct();return{registerComplexWatchers:()=>{const l=["fixed"],r={realWidth:"width",realMinWidth:"minWidth"},i=D_(l,r);Object.keys(i).forEach(u=>{const c=r[u];Bn(t,c)&&ie(()=>t[c],d=>{let f=d;c==="width"&&u==="realWidth"&&(f=Im(d)),c==="minWidth"&&u==="realMinWidth"&&(f=__(d)),n.columnConfig.value[c]=f,n.columnConfig.value[u]=f;const h=c==="fixed";e.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const l=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter","resizable"],r=["showOverflowTooltip"],i={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},u=D_(l,i);Object.keys(u).forEach(c=>{const d=i[c];Bn(t,d)&&ie(()=>t[d],f=>{n.columnConfig.value[c]=f,(c==="filters"||c==="filterMethod")&&(n.columnConfig.value.filterable=!!(n.columnConfig.value.filters||n.columnConfig.value.filterMethod))})}),r.forEach(c=>{Bn(e.value.props,c)&&ie(()=>e.value.props[c],d=>{n.columnConfig.value.type!=="selection"&&(!_t(t[c])||(n.columnConfig.value[c]=d))})})}}}function GQ(e,t,n){const o=ct(),a=P(""),l=P(!1),r=P(),i=P(),u=fe("table");io(()=>{r.value=e.align?`is-${e.align}`:null,r.value}),io(()=>{i.value=e.headerAlign?`is-${e.headerAlign}`:r.value,i.value});const c=k(()=>{let y=o.vnode.vParent||o.parent;for(;y&&!y.tableId&&!y.columnId;)y=y.vnode.vParent||y.parent;return y}),d=k(()=>{const{store:y}=o.parent;if(!y)return!1;const{treeData:S}=y.states,E=S.value;return E&&Object.keys(E).length>0}),f=P(Im(e.width)),h=P(__(e.minWidth)),m=y=>(f.value&&(y.width=f.value),h.value&&(y.minWidth=h.value),!f.value&&h.value&&(y.width=void 0),y.minWidth||(y.minWidth=80),y.realWidth=Number(_t(y.width)?y.minWidth:y.width),y),p=y=>{const S=y.type,E=KQ[S]||{};Object.keys(E).forEach(T=>{const N=E[T];T!=="className"&&!_t(N)&&(y[T]=N)});const _=WQ(S);if(_){const T=`${s(u.namespace)}-${_}`;y.className=y.className?`${y.className} ${T}`:T}return y},v=y=>{$e(y)?y.forEach(E=>S(E)):S(y);function S(E){var _;((_=E==null?void 0:E.type)==null?void 0:_.name)==="ElTableColumn"&&(E.vParent=o)}};return{columnId:a,realAlign:r,isSubColumn:l,realHeaderAlign:i,columnOrTableParent:c,setColumnWidth:m,setColumnForcedProps:p,setColumnRenders:y=>{e.renderHeader||y.type!=="selection"&&(y.renderHeader=E=>{if(o.columnConfig.value.label,t.header){const _=t.header(E);if(I_(_))return Le(Be,_)}return bt(y.label)}),t["filter-icon"]&&(y.renderFilterIcon=E=>ee(t,"filter-icon",E)),t.expand&&(y.renderExpand=E=>ee(t,"expand",E));let S=y.renderCell;return y.type==="expand"?(y.renderCell=E=>Le("div",{class:"cell"},[S(E)]),n.value.renderExpanded=E=>t.default?t.default(E):t.default):(S=S||jQ,y.renderCell=E=>{let _=null;if(t.default){const L=t.default(E);_=L.some(H=>H.type!==Ga)?L:S(E)}else _=S(E);const{columns:T}=n.value.store.states,N=T.value.findIndex(L=>L.type==="default"),O=d.value&&E.cellIndex===N,A=YQ(E,O),M={class:"cell",style:{}};return y.showOverflowTooltip&&(M.class=`${M.class} ${s(u.namespace)}-tooltip`,M.style={width:`${(E.column.realWidth||Number(E.column.width))-1}px`}),v(_),Le("div",M,[A,_])}),y},getPropsData:(...y)=>y.reduce((S,E)=>($e(E)&&E.forEach(_=>{S[_]=e[_]}),S),{}),getColumnElIndex:(y,S)=>Array.prototype.indexOf.call(y,S),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",o.columnConfig.value)}}}var qQ={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let XQ=1;var B_=ae({name:"ElTableColumn",components:{ElCheckbox:ea},props:qQ,setup(e,{slots:t}){const n=ct(),o=P({}),a=k(()=>{let w=n.parent;for(;w&&!w.tableId;)w=w.parent;return w}),{registerNormalWatchers:l,registerComplexWatchers:r}=UQ(a,e),{columnId:i,isSubColumn:u,realHeaderAlign:c,columnOrTableParent:d,setColumnWidth:f,setColumnForcedProps:h,setColumnRenders:m,getPropsData:p,getColumnElIndex:v,realAlign:g,updateColumnOrder:b}=GQ(e,t,a),C=d.value;i.value=`${"tableId"in C&&C.tableId||"columnId"in C&&C.columnId}_column_${XQ++}`,Wd(()=>{u.value=a.value!==C;const w=e.type||"default",y=e.sortable===""?!0:e.sortable,S=w==="selection"?!1:_t(e.showOverflowTooltip)?C.props.showOverflowTooltip:e.showOverflowTooltip,E=_t(e.tooltipFormatter)?C.props.tooltipFormatter:e.tooltipFormatter,_={...HQ[w],id:i.value,type:w,property:e.prop||e.property,align:g,headerAlign:c,showOverflowTooltip:S,tooltipFormatter:E,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:y,index:e.index,rawColumnKey:n.vnode.key};let M=p(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);M=jJ(_,M),M=UJ(m,f,h)(M),o.value=M,l(),r()}),ut(()=>{var w,y;const S=d.value,E=u.value?(w=S.vnode.el)==null?void 0:w.children:(y=S.refs.hiddenColumns)==null?void 0:y.children,_=()=>v(E||[],n.vnode.el);o.value.getColumnIndex=_,_()>-1&&a.value.store.commit("insertColumn",o.value,u.value?"columnConfig"in S&&S.columnConfig.value:null,b)}),Bt(()=>{const w=o.value.getColumnIndex;(w?w():-1)>-1&&a.value.store.commit("removeColumn",o.value,u.value?"columnConfig"in C&&C.columnConfig.value:null,b)}),n.columnId=i.value,n.columnConfig=o},render(){var e,t,n;try{const o=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),a=[];if($e(o))for(const r of o)((n=r.type)==null?void 0:n.name)==="ElTableColumn"||r.shapeFlag&2?a.push(r):r.type===Be&&$e(r.children)&&r.children.forEach(i=>{(i==null?void 0:i.patchFlag)!==1024&&!He(i==null?void 0:i.children)&&a.push(i)});return Le("div",a)}catch(o){return Le("div",[])}}});const F_=Qe(VQ,{TableColumn:B_}),V_=sn(B_);var jl=(e=>(e.ASC="asc",e.DESC="desc",e))(jl||{}),Es=(e=>(e.LEFT="left",e.CENTER="center",e.RIGHT="right",e))(Es||{}),Fm=(e=>(e.LEFT="left",e.RIGHT="right",e))(Fm||{});const Vm={asc:"desc",desc:"asc"},$s=Symbol("placeholder"),ZQ=(e,t,n)=>{var o,a,l;const r={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:(o=e.flexGrow)!=null?o:0,flexShrink:(a=e.flexShrink)!=null?a:1}},i={...(l=e.style)!=null?l:{},...r,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(i.maxWidth=e.maxWidth),e.minWidth&&(i.minWidth=e.minWidth)),i};function JQ(e,t,n){const o=k(()=>s(t).map((g,b)=>{var C,w;return{...g,key:(w=(C=g.key)!=null?C:g.dataKey)!=null?w:b}})),a=k(()=>s(o).filter(g=>!g.hidden)),l=k(()=>s(a).filter(g=>g.fixed==="left"||g.fixed===!0)),r=k(()=>s(a).filter(g=>g.fixed==="right")),i=k(()=>s(a).filter(g=>!g.fixed)),u=k(()=>{const g=[];return s(l).forEach(b=>{g.push({...b,placeholderSign:$s})}),s(i).forEach(b=>{g.push(b)}),s(r).forEach(b=>{g.push({...b,placeholderSign:$s})}),g}),c=k(()=>s(l).length||s(r).length),d=k(()=>s(o).reduce((g,b)=>(g[b.key]=ZQ(b,s(n),e.fixed),g),{})),f=k(()=>s(a).reduce((g,b)=>g+b.width,0)),h=g=>s(o).find(b=>b.key===g),m=g=>s(d)[g],p=(g,b)=>{g.width=b};function v(g){var b;const{key:C}=g.currentTarget.dataset;if(!C)return;const{sortState:w,sortBy:y}=e;let S=jl.ASC;Rt(w)?S=Vm[w[C]]:S=Vm[y.order],(b=e.onColumnSort)==null||b.call(e,{column:h(C),key:C,order:S})}return{columns:o,columnsStyles:d,columnsTotalWidth:f,fixedColumnsOnLeft:l,fixedColumnsOnRight:r,hasFixedColumns:c,mainColumns:u,normalColumns:i,visibleColumns:a,getColumn:h,getColumnStyle:m,updateColumnWidth:p,onColumnSorted:v}}const QQ=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,onMaybeEndReached:a})=>{const l=P({scrollLeft:0,scrollTop:0});function r(m){var p,v,g;const{scrollTop:b}=m;(p=t.value)==null||p.scrollTo(m),(v=n.value)==null||v.scrollToTop(b),(g=o.value)==null||g.scrollToTop(b)}function i(m){l.value=m,r(m)}function u(m){l.value.scrollTop=m,r(s(l))}function c(m){var p,v;l.value.scrollLeft=m,(v=(p=t.value)==null?void 0:p.scrollTo)==null||v.call(p,s(l))}function d(m){var p;i(m),(p=e.onScroll)==null||p.call(e,m)}function f({scrollTop:m}){const{scrollTop:p}=s(l);m!==p&&u(m)}function h(m,p="auto"){var v;(v=t.value)==null||v.scrollToRow(m,p)}return ie(()=>s(l).scrollTop,(m,p)=>{m>p&&a()}),{scrollPos:l,scrollTo:i,scrollToLeft:c,scrollToTop:u,scrollToRow:h,onScroll:d,onVerticalScroll:f}},eee=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,tableInstance:a,ns:l,isScrolling:r})=>{const i=ct(),{emit:u}=i,c=Zt(!1),d=P(e.defaultExpandedRowKeys||[]),f=P(-1),h=Zt(null),m=P({}),p=P({}),v=Zt({}),g=Zt({}),b=Zt({}),C=k(()=>xe(e.estimatedRowHeight));function w(O){var A;(A=e.onRowsRendered)==null||A.call(e,O),O.rowCacheEnd>s(f)&&(f.value=O.rowCacheEnd)}function y({hovered:O,rowKey:A}){if(r.value)return;a.vnode.el.querySelectorAll(`[rowkey="${String(A)}"]`).forEach(H=>{O?H.classList.add(l.is("hovered")):H.classList.remove(l.is("hovered"))})}function S({expanded:O,rowData:A,rowIndex:M,rowKey:L}){var H,K;const Y=[...s(d)],I=Y.indexOf(L);O?I===-1&&Y.push(L):I>-1&&Y.splice(I,1),d.value=Y,u("update:expandedRowKeys",Y),(H=e.onRowExpand)==null||H.call(e,{expanded:O,rowData:A,rowIndex:M,rowKey:L}),(K=e.onExpandedRowsChange)==null||K.call(e,Y),a.vnode.el.querySelector(`.${l.is("hovered")}[rowkey="${String(L)}"]`)&&ke(()=>y({hovered:!0,rowKey:L}))}const E=ua(()=>{var O,A,M,L;c.value=!0,m.value={...s(m),...s(p)},_(s(h),!1),p.value={},h.value=null,(O=t.value)==null||O.forceUpdate(),(A=n.value)==null||A.forceUpdate(),(M=o.value)==null||M.forceUpdate(),(L=i.proxy)==null||L.$forceUpdate(),c.value=!1},0);function _(O,A=!1){!s(C)||[t,n,o].forEach(M=>{const L=s(M);L&&L.resetAfterRowIndex(O,A)})}function T(O,A,M){const L=s(h);(L===null||L>M)&&(h.value=M),p.value[O]=A}function N({rowKey:O,height:A,rowIndex:M},L){L?L===Fm.RIGHT?b.value[O]=A:v.value[O]=A:g.value[O]=A;const H=Math.max(...[v,b,g].map(K=>K.value[O]||0));s(m)[O]!==H&&(T(O,H,M),E())}return{expandedRowKeys:d,lastRenderedRowIndex:f,isDynamic:C,isResetting:c,rowHeights:m,resetAfterIndex:_,onRowExpanded:S,onRowHovered:y,onRowsRendered:w,onRowHeightChange:N}},tee=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:o})=>{const a=P({}),l=k(()=>{const i={},{data:u,rowKey:c}=e,d=s(t);if(!d||!d.length)return u;const f=[],h=new Set;d.forEach(p=>h.add(p));let m=u.slice();for(m.forEach(p=>i[p[c]]=0);m.length>0;){const p=m.shift();f.push(p),h.has(p[c])&&$e(p.children)&&p.children.length>0&&(m=[...p.children,...m],p.children.forEach(v=>i[v[c]]=i[p[c]]+1))}return a.value=i,f}),r=k(()=>{const{data:i,expandColumnKey:u}=e;return u?s(l):i});return ie(r,(i,u)=>{i!==u&&(n.value=-1,o(0,!0))}),{data:r,depthMap:a}},nee=(e,t)=>e+t,kd=e=>$e(e)?e.reduce(nee,0):e,yr=(e,t,n={})=>lt(e)?e(t):e!=null?e:n,Yl=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=cn(e[t])}),e),z_=e=>Jt(e)?t=>Le(e,t):e,oee=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:o,fixedColumnsOnRight:a})=>{const l=k(()=>{const{fixed:b,width:C,vScrollbarSize:w}=e,y=C-w;return b?Math.max(Math.round(s(t)),y):y}),r=k(()=>{const{height:b=0,maxHeight:C=0,footerHeight:w,hScrollbarSize:y}=e;if(C>0){const S=s(h),E=s(n),T=s(f)+S+E+y;return Math.min(T,C-w)}return b-w}),i=k(()=>{const{maxHeight:b}=e,C=s(r);if(xe(b)&&b>0)return C;const w=s(n)+s(f)+s(h);return Math.min(C,w)}),u=b=>b.width,c=k(()=>kd(s(o).map(u))),d=k(()=>kd(s(a).map(u))),f=k(()=>kd(e.headerHeight)),h=k(()=>{var b;return(((b=e.fixedData)==null?void 0:b.length)||0)*e.rowHeight}),m=k(()=>s(r)-s(f)-s(h)),p=k(()=>{const{style:b={},height:C,width:w}=e;return Yl({...b,height:C,width:w})}),v=k(()=>Yl({height:e.footerHeight})),g=k(()=>({top:cn(s(f)),bottom:cn(e.footerHeight),width:cn(e.width)}));return{bodyWidth:l,fixedTableHeight:i,mainTableHeight:r,leftTableWidth:c,rightTableWidth:d,windowHeight:m,footerHeight:v,emptyStyle:g,rootStyle:p,headerHeight:f}},aee=e=>{const t=P(),n=P(0),o=P(0);let a;return ut(()=>{a=Qt(t,([l])=>{const{width:r,height:i}=l.contentRect,{paddingLeft:u,paddingRight:c,paddingTop:d,paddingBottom:f}=getComputedStyle(l.target),h=Number.parseInt(u)||0,m=Number.parseInt(c)||0,p=Number.parseInt(d)||0,v=Number.parseInt(f)||0;n.value=r-h-m,o.value=i-p-v}).stop}),Bt(()=>{a==null||a()}),ie([n,o],([l,r])=>{var i;(i=e.onResize)==null||i.call(e,{width:l,height:r})}),{sizer:t,width:n,height:o}};function lee(e){const t=P(),n=P(),o=P(),{columns:a,columnsStyles:l,columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,hasFixedColumns:c,mainColumns:d,onColumnSorted:f}=JQ(e,Lt(e,"columns"),Lt(e,"fixed")),{scrollTo:h,scrollToLeft:m,scrollToTop:p,scrollToRow:v,onScroll:g,onVerticalScroll:b,scrollPos:C}=QQ(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,onMaybeEndReached:Se}),w=fe("table-v2"),y=ct(),S=Zt(!1),{expandedRowKeys:E,lastRenderedRowIndex:_,isDynamic:T,isResetting:N,rowHeights:O,resetAfterIndex:A,onRowExpanded:M,onRowHeightChange:L,onRowHovered:H,onRowsRendered:K}=eee(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,tableInstance:y,ns:w,isScrolling:S}),{data:Y,depthMap:I}=tee(e,{expandedRowKeys:E,lastRenderedRowIndex:_,resetAfterIndex:A}),R=k(()=>{const{estimatedRowHeight:Te,rowHeight:De}=e,ze=s(Y);return xe(Te)?Object.values(s(O)).reduce((Ze,nt)=>Ze+nt,0):ze.length*De}),{bodyWidth:D,fixedTableHeight:B,mainTableHeight:z,leftTableWidth:U,rightTableWidth:V,windowHeight:G,footerHeight:X,emptyStyle:le,rootStyle:se,headerHeight:de}=oee(e,{columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,rowsHeight:R}),ce=P(),ne=k(()=>{const Te=s(Y).length===0;return $e(e.fixedData)?e.fixedData.length===0&&Te:Te});function j(Te){const{estimatedRowHeight:De,rowHeight:ze,rowKey:Ze}=e;return De?s(O)[s(Y)[Te][Ze]]||De:ze}const re=P(!1);function Se(){const{onEndReached:Te}=e;if(!Te)return;const{scrollTop:De}=s(C),ze=s(R),Ze=s(G),nt=ze-(De+Ze)+e.hScrollbarSize;!re.value&&s(_)>=0&&ze<=De+s(z)-s(de)?(re.value=!0,Te(nt)):re.value=!1}return ie(()=>s(R),()=>re.value=!1),ie(()=>e.expandedRowKeys,Te=>E.value=Te,{deep:!0}),{columns:a,containerRef:ce,mainTableRef:t,leftTableRef:n,rightTableRef:o,isDynamic:T,isResetting:N,isScrolling:S,hasFixedColumns:c,columnsStyles:l,columnsTotalWidth:r,data:Y,expandedRowKeys:E,depthMap:I,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,mainColumns:d,bodyWidth:D,emptyStyle:le,rootStyle:se,footerHeight:X,mainTableHeight:z,fixedTableHeight:B,leftTableWidth:U,rightTableWidth:V,showEmpty:ne,getRowHeight:j,onColumnSorted:f,onRowHovered:H,onRowExpanded:M,onRowsRendered:K,onRowHeightChange:L,scrollTo:h,scrollToLeft:m,scrollToTop:p,scrollToRow:v,onScroll:g,onVerticalScroll:b}}const zm=Symbol("tableV2"),H_="tableV2GridScrollLeft",W_=String,qi={type:q(Array),required:!0},Hm={type:q(Array)},K_={...Hm,required:!0},ree=String,j_={type:q(Array),default:()=>dn([])},wr={type:Number,required:!0},Y_={type:q([String,Number,Symbol]),default:"id"},U_={type:q(Object)},Ul=he({class:String,columns:qi,columnsStyles:{type:q(Object),required:!0},depth:Number,expandColumnKey:ree,estimatedRowHeight:{...Kl.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:q(Function)},onRowHover:{type:q(Function)},onRowHeightChange:{type:q(Function)},rowData:{type:q(Object),required:!0},rowEventHandlers:{type:q(Object)},rowIndex:{type:Number,required:!0},rowKey:Y_,style:{type:q(Object)}}),Wm={type:Number,required:!0},Km=he({class:String,columns:qi,fixedHeaderData:{type:q(Array)},headerData:{type:q(Array),required:!0},headerHeight:{type:q([Number,Array]),default:50},rowWidth:Wm,rowHeight:{type:Number,default:50},height:Wm,width:Wm}),Ed=he({columns:qi,data:K_,fixedData:Hm,estimatedRowHeight:Ul.estimatedRowHeight,width:wr,height:wr,headerWidth:wr,headerHeight:Km.headerHeight,bodyWidth:wr,rowHeight:wr,cache:wm.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Kl.scrollbarAlwaysOn,scrollbarStartGap:Kl.scrollbarStartGap,scrollbarEndGap:Kl.scrollbarEndGap,class:W_,style:U_,containerStyle:U_,getRowHeight:{type:q(Function),required:!0},rowKey:Ul.rowKey,onRowsRendered:{type:q(Function)},onScroll:{type:q(Function)}}),G_=he({cache:Ed.cache,estimatedRowHeight:Ul.estimatedRowHeight,rowKey:Y_,headerClass:{type:q([String,Function])},headerProps:{type:q([Object,Function])},headerCellProps:{type:q([Object,Function])},headerHeight:Km.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:q([String,Function])},rowProps:{type:q([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:q([Object,Function])},columns:qi,data:K_,dataGetter:{type:q(Function)},fixedData:Hm,expandColumnKey:Ul.expandColumnKey,expandedRowKeys:j_,defaultExpandedRowKeys:j_,class:W_,fixed:Boolean,style:{type:q(Object)},width:wr,height:wr,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Kl.hScrollbarSize,vScrollbarSize:Kl.vScrollbarSize,scrollbarAlwaysOn:Sm.alwaysOn,sortBy:{type:q(Object),default:()=>({})},sortState:{type:q(Object),default:void 0},onColumnSort:{type:q(Function)},onExpandedRowsChange:{type:q(Function)},onEndReached:{type:q(Function)},onRowExpand:Ul.onRowExpand,onScroll:Ed.onScroll,onRowsRendered:Ed.onRowsRendered,rowEventHandlers:Ul.rowEventHandlers}),jm=(e,{slots:t})=>{var n;const{cellData:o,style:a}=e,l=((n=o==null?void 0:o.toString)==null?void 0:n.call(o))||"",r=ee(t,"default",e,()=>[l]);return Z("div",{class:e.class,title:l,style:a},[r])};jm.displayName="ElTableV2Cell",jm.inheritAttrs=!1;var see=jm;const Ym=(e,{slots:t})=>ee(t,"default",e,()=>{var n,o;return[Z("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(o=e.column)==null?void 0:o.title])]});Ym.displayName="ElTableV2HeaderCell",Ym.inheritAttrs=!1;var iee=Ym;const uee=he({class:String,columns:qi,columnsStyles:{type:q(Object),required:!0},headerIndex:Number,style:{type:q(Object)}}),cee=ae({name:"ElTableV2HeaderRow",props:uee,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:o,headerIndex:a,style:l}=e;let r=n.map((i,u)=>t.cell({columns:n,column:i,columnIndex:u,headerIndex:a,style:o[i.key]}));return t.header&&(r=t.header({cells:r.map(i=>$e(i)&&i.length===1?i[0]:i),columns:n,headerIndex:a})),Z("div",{class:e.class,style:l,role:"row"},[r])}}});var dee=cee;const fee="ElTableV2Header",pee=ae({name:fee,props:Km,setup(e,{slots:t,expose:n}){const o=fe("table-v2"),a=Ee(H_),l=P(),r=k(()=>Yl({width:e.width,height:e.height})),i=k(()=>Yl({width:e.rowWidth,height:e.height})),u=k(()=>An(s(e.headerHeight))),c=h=>{const m=s(l);ke(()=>{m!=null&&m.scroll&&m.scroll({left:h})})},d=()=>{const h=o.e("fixed-header-row"),{columns:m,fixedHeaderData:p,rowHeight:v}=e;return p==null?void 0:p.map((g,b)=>{var C;const w=Yl({height:v,width:"100%"});return(C=t.fixed)==null?void 0:C.call(t,{class:h,columns:m,rowData:g,rowIndex:-(b+1),style:w})})},f=()=>{const h=o.e("dynamic-header-row"),{columns:m}=e;return s(u).map((p,v)=>{var g;const b=Yl({width:"100%",height:p});return(g=t.dynamic)==null?void 0:g.call(t,{class:h,columns:m,headerIndex:v,style:b})})};return qa(()=>{a!=null&&a.value&&c(a.value)}),n({scrollToLeft:c}),()=>{if(!(e.height<=0))return Z("div",{ref:l,class:e.class,style:s(r),role:"rowgroup"},[Z("div",{style:s(i),class:o.e("header")},[f(),d()])])}}});var vee=pee;const hee=e=>{const{isScrolling:t}=Ee(zm),n=P(!1),o=P(),a=k(()=>xe(e.estimatedRowHeight)&&e.rowIndex>=0),l=(u=!1)=>{const c=s(o);if(!c)return;const{columns:d,onRowHeightChange:f,rowKey:h,rowIndex:m,style:p}=e,{height:v}=c.getBoundingClientRect();n.value=!0,ke(()=>{if(u||v!==Number.parseInt(p.height)){const g=d[0],b=(g==null?void 0:g.placeholderSign)===$s;f==null||f({rowKey:h,height:v,rowIndex:m},g&&!b&&g.fixed)}})},r=k(()=>{const{rowData:u,rowIndex:c,rowKey:d,onRowHover:f}=e,h=e.rowEventHandlers||{},m={};return Object.entries(h).forEach(([p,v])=>{lt(v)&&(m[p]=g=>{v({event:g,rowData:u,rowIndex:c,rowKey:d})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:p,hovered:v})=>{const g=m[p];m[p]=b=>{f({event:b,hovered:v,rowData:u,rowIndex:c,rowKey:d}),g==null||g(b)}}),m}),i=u=>{const{onRowExpand:c,rowData:d,rowIndex:f,rowKey:h}=e;c==null||c({expanded:u,rowData:d,rowIndex:f,rowKey:h})};return ut(()=>{s(a)&&l(!0)}),{isScrolling:t,measurable:a,measured:n,rowRef:o,eventHandlers:r,onExpand:i}},mee="ElTableV2TableRow",gee=ae({name:mee,props:Ul,setup(e,{expose:t,slots:n,attrs:o}){const{eventHandlers:a,isScrolling:l,measurable:r,measured:i,rowRef:u,onExpand:c}=hee(e);return t({onExpand:c}),()=>{const{columns:d,columnsStyles:f,expandColumnKey:h,depth:m,rowData:p,rowIndex:v,style:g}=e;let b=d.map((C,w)=>{const y=$e(p.children)&&p.children.length>0&&C.key===h;return n.cell({column:C,columns:d,columnIndex:w,depth:m,style:f[C.key],rowData:p,rowIndex:v,isScrolling:s(l),expandIconProps:y?{rowData:p,rowIndex:v,onExpand:c}:void 0})});if(n.row&&(b=n.row({cells:b.map(C=>$e(C)&&C.length===1?C[0]:C),style:g,columns:d,depth:m,rowData:p,rowIndex:v,isScrolling:s(l)})),s(r)){const{height:C,...w}=g||{},y=s(i);return Z("div",rt({ref:u,class:e.class,style:y?g:w,role:"row"},o,s(a)),[b])}return Z("div",rt(o,{ref:u,class:e.class,style:g,role:"row"},s(a)),[b])}}});var bee=gee;const yee=e=>{const{sortOrder:t}=e;return Z("button",{type:"button","aria-label":e.ariaLabel,class:e.class},[Z(_e,{size:14},{default:()=>[t===jl.ASC?Z(GV,null,null):Z(YV,null,null)]})])};var wee=yee;const q_=e=>{const{expanded:t,expandable:n,onExpand:o,style:a,size:l,ariaLabel:r}=e,i={onClick:n?()=>o(!t):void 0,ariaLabel:r,ariaExpanded:t,class:e.class};return Z("button",rt(i,{type:"button"}),[Z(_e,{size:l,style:a},{default:()=>[Z(oo,null,null)]})])};q_.inheritAttrs=!1;var Cee=q_;const See="ElTableV2Grid",kee=e=>{const t=P(),n=P(),o=P(0),a=k(()=>{const{data:g,rowHeight:b,estimatedRowHeight:C}=e;if(!C)return g.length*b}),l=k(()=>{const{fixedData:g,rowHeight:b}=e;return((g==null?void 0:g.length)||0)*b}),r=k(()=>kd(e.headerHeight)),i=k(()=>{const{height:g}=e;return Math.max(0,g-s(r)-s(l))}),u=k(()=>s(r)+s(l)>0),c=({data:g,rowIndex:b})=>g[b][e.rowKey];function d({rowCacheStart:g,rowCacheEnd:b,rowVisibleStart:C,rowVisibleEnd:w}){var y;(y=e.onRowsRendered)==null||y.call(e,{rowCacheStart:g,rowCacheEnd:b,rowVisibleStart:C,rowVisibleEnd:w})}function f(g,b){var C;(C=n.value)==null||C.resetAfterRowIndex(g,b)}function h(g,b){const C=s(t),w=s(n);Rt(g)?(C==null||C.scrollToLeft(g.scrollLeft),o.value=g.scrollLeft,w==null||w.scrollTo(g)):(C==null||C.scrollToLeft(g),o.value=g,w==null||w.scrollTo({scrollLeft:g,scrollTop:b}))}function m(g){var b;(b=s(n))==null||b.scrollTo({scrollTop:g})}function p(g,b){var C;(C=s(n))==null||C.scrollToItem(g,1,b)}function v(){var g,b;(g=s(n))==null||g.$forceUpdate(),(b=s(t))==null||b.$forceUpdate()}return ie(()=>e.bodyWidth,()=>{var g;xe(e.estimatedRowHeight)&&((g=n.value)==null||g.resetAfter({columnIndex:0},!1))}),{bodyRef:n,forceUpdate:v,fixedRowHeight:l,gridHeight:i,hasHeader:u,headerHeight:r,headerRef:t,totalHeight:a,itemKey:c,onItemRendered:d,resetAfterRowIndex:f,scrollTo:h,scrollToTop:m,scrollToRow:p,scrollLeft:o}},Um=ae({name:See,props:Ed,setup(e,{slots:t,expose:n}){const{ns:o}=Ee(zm),{bodyRef:a,fixedRowHeight:l,gridHeight:r,hasHeader:i,headerRef:u,headerHeight:c,totalHeight:d,forceUpdate:f,itemKey:h,onItemRendered:m,resetAfterRowIndex:p,scrollTo:v,scrollToTop:g,scrollToRow:b,scrollLeft:C}=kee(e);St(H_,C),Kd(async()=>{var y;await ke();const S=(y=a.value)==null?void 0:y.states.scrollTop;S&&g(Math.round(S)+1)}),n({forceUpdate:f,totalHeight:d,scrollTo:v,scrollToTop:g,scrollToRow:b,resetAfterRowIndex:p});const w=()=>e.bodyWidth;return()=>{const{cache:y,columns:S,data:E,fixedData:_,useIsScrolling:T,scrollbarAlwaysOn:N,scrollbarEndGap:O,scrollbarStartGap:A,style:M,rowHeight:L,bodyWidth:H,estimatedRowHeight:K,headerWidth:Y,height:I,width:R,getRowHeight:D,onScroll:B}=e,z=xe(K),U=z?Y$:B$,V=s(c);return Z("div",{role:"table",class:[o.e("table"),e.class],style:M},[Z(U,{ref:a,data:E,useIsScrolling:T,itemKey:h,columnCache:0,columnWidth:z?w:H,totalColumn:1,totalRow:E.length,rowCache:y,rowHeight:z?D:L,width:R,height:s(r),class:o.e("body"),role:"rowgroup",scrollbarStartGap:A,scrollbarEndGap:O,scrollbarAlwaysOn:N,onScroll:B,onItemRendered:m,perfMode:!1},{default:G=>{var X;const le=E[G.rowIndex];return(X=t.row)==null?void 0:X.call(t,{...G,columns:S,rowData:le})}}),s(i)&&Z(vee,{ref:u,class:o.e("header-wrapper"),columns:S,headerData:E,headerHeight:e.headerHeight,fixedHeaderData:_,rowWidth:Y,rowHeight:L,width:R,height:Math.min(V+s(l),I)},{dynamic:t.header,fixed:t.row})])}}});function Eee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const $ee=(e,{slots:t})=>{const{mainTableRef:n,...o}=e;return Z(Um,rt({ref:n},o),Eee(t)?t:{default:()=>[t]})};function _ee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Tee=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...o}=e;return Z(Um,rt({ref:n},o),_ee(t)?t:{default:()=>[t]})};function Oee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Ree=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...o}=e;return Z(Um,rt({ref:n},o),Oee(t)?t:{default:()=>[t]})};function xee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Iee=(e,{slots:t})=>{const{columns:n,columnsStyles:o,depthMap:a,expandColumnKey:l,expandedRowKeys:r,estimatedRowHeight:i,hasFixedColumns:u,rowData:c,rowIndex:d,style:f,isScrolling:h,rowProps:m,rowClass:p,rowKey:v,rowEventHandlers:g,ns:b,onRowHovered:C,onRowExpanded:w}=e,y=yr(p,{columns:n,rowData:c,rowIndex:d},""),S=yr(m,{columns:n,rowData:c,rowIndex:d}),E=c[v],_=a[E]||0,T=Boolean(l),N=d<0,O=[b.e("row"),y,b.is("expanded",T&&r.includes(E)),b.is("fixed",!_&&N),b.is("customized",Boolean(t.row)),{[b.e(`row-depth-${_}`)]:T&&d>=0}],A=u?C:void 0,M={...S,columns:n,columnsStyles:o,class:O,depth:_,expandColumnKey:l,estimatedRowHeight:N?void 0:i,isScrolling:h,rowIndex:d,rowData:c,rowKey:E,rowEventHandlers:g,style:f};return Z(bee,rt(M,{onRowExpand:w,onMouseenter:K=>{A==null||A({hovered:!0,rowKey:E,event:K,rowData:c,rowIndex:d})},onMouseleave:K=>{A==null||A({hovered:!1,rowKey:E,event:K,rowData:c,rowIndex:d})},rowkey:E}),xee(t)?t:{default:()=>[t]})},Gm=({columns:e,column:t,columnIndex:n,depth:o,expandIconProps:a,isScrolling:l,rowData:r,rowIndex:i,style:u,expandedRowKeys:c,ns:d,t:f,cellProps:h,expandColumnKey:m,indentSize:p,iconSize:v,rowKey:g},{slots:b})=>{const C=Yl(u);if(t.placeholderSign===$s)return Z("div",{class:d.em("row-cell","placeholder"),style:C},null);const{cellRenderer:w,dataKey:y,dataGetter:S}=t,E=lt(S)?S({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:i}):gn(r,y!=null?y:""),_=yr(h,{cellData:E,columns:e,column:t,columnIndex:n,rowIndex:i,rowData:r}),T={class:d.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:E,isScrolling:l,rowData:r,rowIndex:i},N=z_(w),O=N?N(T):ee(b,"default",T,()=>[Z(see,T,null)]),A=[d.e("row-cell"),t.class,t.align===Es.CENTER&&d.is("align-center"),t.align===Es.RIGHT&&d.is("align-right")],M=i>=0&&m&&t.key===m,L=i>=0&&c.includes(r[g]);let H;const K=`margin-inline-start: ${o*p}px;`;return M&&(Rt(a)?H=Z(Cee,rt(a,{class:[d.e("expand-icon"),d.is("expanded",L)],size:v,expanded:L,ariaLabel:f(L?"el.table.collapseRowLabel":"el.table.expandRowLabel"),style:K,expandable:!0}),null):H=Z("div",{style:[K,`width: ${v}px; height: ${v}px;`].join(" ")},null)),Z("div",rt({class:A,style:C},_,{role:"cell"}),[H,O])};Gm.inheritAttrs=!1;function Mee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Nee=({columns:e,columnsStyles:t,headerIndex:n,style:o,headerClass:a,headerProps:l,ns:r},{slots:i})=>{const u={columns:e,headerIndex:n},c=[r.e("header-row"),yr(a,u,""),r.is("customized",Boolean(i.header))],d={...yr(l,u),columnsStyles:t,class:c,columns:e,headerIndex:n,style:o};return Z(dee,d,Mee(i)?i:{default:()=>[i]})},X_=(e,{slots:t})=>{const{column:n,ns:o,t:a,style:l,onColumnSorted:r}=e,i=Yl(l);if(n.placeholderSign===$s)return Z("div",{class:o.em("header-row-cell","placeholder"),style:i},null);const{headerCellRenderer:u,headerClass:c,sortable:d}=n,f={...e,class:o.e("header-cell-text")},h=z_(u),m=h?h(f):ee(t,"default",f,()=>[Z(iee,f,null)]),{sortBy:p,sortState:v,headerCellProps:g}=e;let b,C,w;if(v){const E=v[n.key];b=Boolean(Vm[E]),C=b?E:jl.ASC}else b=n.key===p.key,C=b?p.order:jl.ASC;C===jl.ASC?w="ascending":C===jl.DESC?w="descending":w=void 0;const y=[o.e("header-cell"),yr(c,e,""),n.align===Es.CENTER&&o.is("align-center"),n.align===Es.RIGHT&&o.is("align-right"),d&&o.is("sortable")],S={...yr(g,e),onClick:n.sortable?r:void 0,ariaSort:d?w:void 0,class:y,style:i,["data-key"]:n.key};return Z("div",rt(S,{role:"columnheader"}),[m,d&&Z(wee,{class:[o.e("sort-icon"),b&&o.is("sorting")],sortOrder:C,ariaLabel:a("el.table.sortLabel",{column:n.title||""})},null)])},Z_=(e,{slots:t})=>{var n;return Z("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};Z_.displayName="ElTableV2Footer";const J_=(e,{slots:t})=>{const n=ee(t,"default",{},()=>[Z(em,null,null)]);return Z("div",{class:e.class,style:e.style},[n])};J_.displayName="ElTableV2Empty";const Q_=(e,{slots:t})=>{var n;return Z("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};Q_.displayName="ElTableV2Overlay";function Xi(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Aee="ElTableV2",Pee=ae({name:Aee,props:G_,setup(e,{slots:t,expose:n}){const o=fe("table-v2"),{t:a}=wt(),{columnsStyles:l,fixedColumnsOnLeft:r,fixedColumnsOnRight:i,mainColumns:u,mainTableHeight:c,fixedTableHeight:d,leftTableWidth:f,rightTableWidth:h,data:m,depthMap:p,expandedRowKeys:v,hasFixedColumns:g,mainTableRef:b,leftTableRef:C,rightTableRef:w,isDynamic:y,isResetting:S,isScrolling:E,bodyWidth:_,emptyStyle:T,rootStyle:N,footerHeight:O,showEmpty:A,scrollTo:M,scrollToLeft:L,scrollToTop:H,scrollToRow:K,getRowHeight:Y,onColumnSorted:I,onRowHeightChange:R,onRowHovered:D,onRowExpanded:B,onRowsRendered:z,onScroll:U,onVerticalScroll:V}=lee(e);return n({scrollTo:M,scrollToLeft:L,scrollToTop:H,scrollToRow:K}),St(zm,{ns:o,isResetting:S,isScrolling:E}),()=>{const{cache:G,cellProps:X,estimatedRowHeight:le,expandColumnKey:se,fixedData:de,headerHeight:ce,headerClass:ne,headerProps:j,headerCellProps:re,sortBy:Se,sortState:Te,rowHeight:De,rowClass:ze,rowEventHandlers:Ze,rowKey:nt,rowProps:Et,scrollbarAlwaysOn:Ue,indentSize:Ae,iconSize:Pe,useIsScrolling:Ge,vScrollbarSize:ot,width:pt}=e,Ct=s(m),Ce={cache:G,class:o.e("main"),columns:s(u),data:Ct,fixedData:de,estimatedRowHeight:le,bodyWidth:s(_),headerHeight:ce,headerWidth:s(_),height:s(c),mainTableRef:b,rowKey:nt,rowHeight:De,scrollbarAlwaysOn:Ue,scrollbarStartGap:2,scrollbarEndGap:ot,useIsScrolling:Ge,width:pt,getRowHeight:Y,onRowsRendered:z,onScroll:U},Ve=s(f),We=s(d),Ut={cache:G,class:o.e("left"),columns:s(r),data:Ct,fixedData:de,estimatedRowHeight:le,leftTableRef:C,rowHeight:De,bodyWidth:Ve,headerWidth:Ve,headerHeight:ce,height:We,rowKey:nt,scrollbarAlwaysOn:Ue,scrollbarStartGap:2,scrollbarEndGap:ot,useIsScrolling:Ge,width:Ve,getRowHeight:Y,onScroll:V},Ke=s(h),ft={cache:G,class:o.e("right"),columns:s(i),data:Ct,fixedData:de,estimatedRowHeight:le,rightTableRef:w,rowHeight:De,bodyWidth:Ke,headerWidth:Ke,headerHeight:ce,height:We,rowKey:nt,scrollbarAlwaysOn:Ue,scrollbarStartGap:2,scrollbarEndGap:ot,width:Ke,style:`${o.cssVarName("table-scrollbar-size")}: ${ot}px`,useIsScrolling:Ge,getRowHeight:Y,onScroll:V},it=s(l),mt={ns:o,depthMap:s(p),columnsStyles:it,expandColumnKey:se,expandedRowKeys:s(v),estimatedRowHeight:le,hasFixedColumns:s(g),rowProps:Et,rowClass:ze,rowKey:nt,rowEventHandlers:Ze,onRowHovered:D,onRowExpanded:B,onRowHeightChange:R},ve={cellProps:X,expandColumnKey:se,indentSize:Ae,iconSize:Pe,rowKey:nt,expandedRowKeys:s(v),ns:o,t:a},Oe={ns:o,headerClass:ne,headerProps:j,columnsStyles:it},ue={ns:o,t:a,sortBy:Se,sortState:Te,headerCellProps:re,onColumnSorted:I},Me={row:an=>Z(Iee,rt(an,mt),{row:t.row,cell:Cn=>{let me;return t.cell?Z(Gm,rt(Cn,ve,{style:it[Cn.column.key]}),Xi(me=t.cell(Cn))?me:{default:()=>[me]}):Z(Gm,rt(Cn,ve,{style:it[Cn.column.key]}),null)}}),header:an=>Z(Nee,rt(an,Oe),{header:t.header,cell:Cn=>{let me;return t["header-cell"]?Z(X_,rt(Cn,ue,{style:it[Cn.column.key]}),Xi(me=t["header-cell"](Cn))?me:{default:()=>[me]}):Z(X_,rt(Cn,ue,{style:it[Cn.column.key]}),null)}})},st=[e.class,o.b(),o.e("root"),o.is("dynamic",s(y))],jt={class:o.e("footer"),style:s(O)};return Z("div",{class:st,style:s(N)},[Z($ee,Ce,Xi(Me)?Me:{default:()=>[Me]}),Z(Tee,Ut,Xi(Me)?Me:{default:()=>[Me]}),Z(Ree,ft,Xi(Me)?Me:{default:()=>[Me]}),t.footer&&Z(Z_,jt,{default:t.footer}),s(A)&&Z(J_,{class:o.e("empty"),style:s(T)},{default:t.empty}),t.overlay&&Z(Q_,{class:o.e("overlay")},{default:t.overlay})])}}});var eT=Pee;const tT=he({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:q(Function)}}),Lee=ae({name:"ElAutoResizer",props:tT,setup(e,{slots:t}){const n=fe("auto-resizer"),{height:o,width:a,sizer:l}=aee(e),r={width:"100%",height:"100%"};return()=>{var i;return Z("div",{ref:l,class:n.b(),style:r},[(i=t.default)==null?void 0:i.call(t,{height:o.value,width:a.value})])}}}),nT=Qe(eT),oT=Qe(Lee),Zi=Symbol("tabsRootContextKey"),aT=he({tabs:{type:q(Array),default:()=>dn([])},tabRefs:{type:q(Object),default:()=>dn({})}}),lT="ElTabBar",Dee=ae({name:lT,__name:"tab-bar",props:aT,setup(e,{expose:t}){const n=e,o=Ee(Zi);o||_n(lT,"<el-tabs><el-tab-bar /></el-tabs>");const a=fe("tabs"),l=P(),r=P(),i=k(()=>{var m;return _t(o.props.defaultValue)||Boolean((m=r.value)==null?void 0:m.transform)}),u=()=>{let m=0,p=0;const v=["top","bottom"].includes(o.props.tabPosition)?"width":"height",g=v==="width"?"x":"y",b=g==="x"?"left":"top";return n.tabs.every(C=>{if(_t(C.paneName))return!1;const w=n.tabRefs[C.paneName];if(!w)return!1;if(!C.active)return!0;m=w[`offset${Il(b)}`],p=w[`client${Il(v)}`];const y=window.getComputedStyle(w);return v==="width"&&(p-=Number.parseFloat(y.paddingLeft)+Number.parseFloat(y.paddingRight),m+=Number.parseFloat(y.paddingLeft)),!1}),{[v]:`${p}px`,transform:`translate${Il(g)}(${m}px)`}},c=()=>r.value=u(),d=[],f=()=>{d.forEach(m=>m.stop()),d.length=0,Object.values(n.tabRefs).forEach(m=>{d.push(Qt(m,c))})};ie(()=>n.tabs,async()=>{await ke(),c(),f()},{immediate:!0});const h=Qt(l,()=>c());return Bt(()=>{d.forEach(m=>m.stop()),d.length=0,h.stop()}),t({ref:l,update:c}),(m,p)=>i.value?($(),F("div",{key:0,ref_key:"barRef",ref:l,class:x([s(a).e("active-bar"),s(a).is(s(o).props.tabPosition)]),style:Ie(r.value)},null,6)):te("v-if",!0)}});var Bee=ye(Dee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const rT=he({panes:{type:q(Array),default:()=>dn([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean,tabindex:{type:[String,Number],default:void 0}}),sT={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},iT="ElTabNav",Fee=ae({name:iT,props:rT,emits:sT,setup(e,{expose:t,emit:n}){const o=Ee(Zi);o||_n(iT,"<el-tabs><tab-nav /></el-tabs>");const a=fe("tabs"),l=_R(),r=OR(),i=P(),u=P(),c=P(),d=P({}),f=P(),h=P(!1),m=P(0),p=P(!1),v=P(!0),g=Zt(),b=k(()=>["top","bottom"].includes(o.props.tabPosition)),C=k(()=>b.value?"width":"height"),w=k(()=>({transform:`translate${C.value==="width"?"X":"Y"}(-${m.value}px)`})),{width:y,height:S}=Zd(i),{width:E,height:_}=Zd(u,{width:0,height:0},{box:"border-box"}),T=k(()=>b.value?y.value:S.value),N=k(()=>b.value?E.value:_.value),{onWheel:O}=O$({atStartEdge:k(()=>m.value<=0),atEndEdge:k(()=>N.value-m.value<=T.value),layout:k(()=>b.value?"horizontal":"vertical")},B=>{m.value=Zs(m.value+B,0,N.value-T.value)}),A=()=>{if(!i.value)return;const B=i.value[`offset${Il(C.value)}`],z=m.value;if(!z)return;const U=z>B?z-B:0;m.value=U},M=()=>{if(!i.value||!u.value)return;const B=u.value[`offset${Il(C.value)}`],z=i.value[`offset${Il(C.value)}`],U=m.value;if(B-U<=z)return;const V=B-U>z*2?U+z:B-z;m.value=V},L=async()=>{const B=u.value;if(!h.value||!c.value||!i.value||!B)return;await ke();const z=d.value[e.currentName];if(!z)return;const U=i.value,V=z.getBoundingClientRect(),G=U.getBoundingClientRect(),X=b.value?B.offsetWidth-G.width:B.offsetHeight-G.height,le=m.value;let se=le;b.value?(V.left<G.left&&(se=le-(G.left-V.left)),V.right>G.right&&(se=le+V.right-G.right)):(V.top<G.top&&(se=le-(G.top-V.top)),V.bottom>G.bottom&&(se=le+(V.bottom-G.bottom))),se=Math.max(se,0),m.value=Math.min(se,X)},H=()=>{var B;if(!u.value||!i.value)return;e.stretch&&((B=f.value)==null||B.update());const z=u.value[`offset${Il(C.value)}`],U=i.value[`offset${Il(C.value)}`],V=m.value;U<z?(h.value=h.value||{},h.value.prev=V,h.value.next=V+U<z,z-V<U&&(m.value=z-U)):(h.value=!1,V>0&&(m.value=0))},K=B=>{const z=Wt(B);let U=0;switch(z){case pe.left:case pe.up:U=-1;break;case pe.right:case pe.down:U=1;break;default:return}const V=Array.from(B.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let X=V.indexOf(B.target)+U;X<0?X=V.length-1:X>=V.length&&(X=0),V[X].focus({preventScroll:!0}),V[X].click(),Y()},Y=()=>{v.value&&(p.value=!0)},I=()=>p.value=!1,R=(B,z)=>{d.value[z]=B},D=async()=>{await ke();const B=d.value[e.currentName];B==null||B.focus({preventScroll:!0})};return ie(l,B=>{B==="hidden"?v.value=!1:B==="visible"&&setTimeout(()=>v.value=!0,50)}),ie(r,B=>{B?setTimeout(()=>v.value=!0,50):v.value=!1}),Qt(c,()=>{Ma(H)}),ut(()=>setTimeout(()=>L(),0)),qa(()=>H()),t({scrollToActiveTab:L,removeFocus:I,focusActiveTab:D,tabListRef:u,tabBarRef:f,scheduleRender:()=>du(g)}),()=>{const B=h.value?[Z("span",{class:[a.e("nav-prev"),a.is("disabled",!h.value.prev)],onClick:A},[Z(_e,null,{default:()=>[Z(ul,null,null)]})]),Z("span",{class:[a.e("nav-next"),a.is("disabled",!h.value.next)],onClick:M},[Z(_e,null,{default:()=>[Z(oo,null,null)]})])]:null,z=e.panes.map((U,V)=>{var G,X,le,se,de;const ce=U.uid,ne=U.props.disabled,j=(X=(G=U.props.name)!=null?G:U.index)!=null?X:`${V}`,re=!ne&&(U.isClosable||U.props.closable!==!1&&e.editable);U.index=`${V}`;const Se=re?Z(_e,{class:"is-icon-close",onClick:ze=>n("tabRemove",U,ze)},{default:()=>[Z(Uo,null,null)]}):null,Te=((se=(le=U.slots).label)==null?void 0:se.call(le))||U.props.label,De=!ne&&U.active?(de=e.tabindex)!=null?de:o.props.tabindex:-1;return Z("div",{ref:ze=>R(ze,j),class:[a.e("item"),a.is(o.props.tabPosition),a.is("active",U.active),a.is("disabled",ne),a.is("closable",re),a.is("focus",p.value)],id:`tab-${j}`,key:`tab-${ce}`,"aria-controls":`pane-${j}`,role:"tab","aria-selected":U.active,tabindex:De,onFocus:()=>Y(),onBlur:()=>I(),onClick:ze=>{I(),n("tabClick",U,j,ze)},onKeydown:ze=>{const Ze=Wt(ze);re&&(Ze===pe.delete||Ze===pe.backspace)&&n("tabRemove",U,ze)}},[Te,Se])});return g.value,Z("div",{ref:c,class:[a.e("nav-wrap"),a.is("scrollable",!!h.value),a.is(o.props.tabPosition)]},[B,Z("div",{class:a.e("nav-scroll"),ref:i},[e.panes.length>0?Z("div",{class:[a.e("nav"),a.is(o.props.tabPosition),a.is("stretch",e.stretch&&["top","bottom"].includes(o.props.tabPosition))],ref:u,style:w.value,role:"tablist",onKeydown:K,onWheel:O},[e.type?null:Z(Bee,{ref:f,tabs:[...e.panes],tabRefs:d.value},null),z]):null])])}}}),uT=he({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},defaultValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:q(Function),default:()=>!0},stretch:Boolean,tabindex:{type:[String,Number],default:0}}),qm=e=>He(e)||xe(e),cT={[Ye]:e=>qm(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>qm(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>qm(e),tabAdd:()=>!0},Vee=ae({name:"ElTabs",props:uT,emits:cT,setup(e,{emit:t,slots:n,expose:o}){var a;const l=fe("tabs"),r=k(()=>["left","right"].includes(e.tabPosition)),{children:i,addChild:u,removeChild:c,ChildrenSorter:d}=Si(ct(),"ElTabPane"),f=P(),h=P((a=_t(e.modelValue)?e.defaultValue:e.modelValue)!=null?a:"0"),m=async(w,y=!1)=>{var S,E,_,T;if(!(h.value===w||_t(w)))try{let N;if(e.beforeLeave){const O=e.beforeLeave(w,h.value);N=O instanceof Promise?await O:O}else N=!0;if(N!==!1){const O=(S=i.value.find(A=>A.paneName===h.value))==null?void 0:S.isFocusInsidePane();h.value=w,y&&(t(Ye,w),t("tabChange",w)),(_=(E=f.value)==null?void 0:E.removeFocus)==null||_.call(E),O&&((T=f.value)==null||T.focusActiveTab())}}catch(N){}},p=(w,y,S)=>{w.props.disabled||(t("tabClick",w,S),m(y,!0))},v=(w,y)=>{w.props.disabled||_t(w.props.name)||(y.stopPropagation(),t("edit",w.props.name,"remove"),t("tabRemove",w.props.name))},g=()=>{t("edit",void 0,"add"),t("tabAdd")},b=w=>{const y=Wt(w);[pe.enter,pe.numpadEnter].includes(y)&&g()},C=w=>{const y=w.el.firstChild,S=["bottom","right"].includes(e.tabPosition)?w.children[0].el:w.children[1].el;y!==S&&y.before(S)};return ie(()=>e.modelValue,w=>m(w)),ie(h,async()=>{var w;await ke(),(w=f.value)==null||w.scrollToActiveTab()}),St(Zi,{props:e,currentName:h,registerPane:u,unregisterPane:c,nav$:f}),o({currentName:h,get tabNavRef(){return zr(f.value,["scheduleRender"])}}),()=>{const w=n["add-icon"],y=e.editable||e.addable?Z("div",{class:[l.e("new-tab"),r.value&&l.e("new-tab-vertical")],tabindex:e.tabindex,onClick:g,onKeydown:b},[w?ee(n,"add-icon"):Z(_e,{class:l.is("icon-plus")},{default:()=>[Z(K1,null,null)]})]):null,S=()=>Z(Fee,{ref:f,currentName:h.value,editable:e.editable,type:e.type,panes:i.value,stretch:e.stretch,onTabClick:p,onTabRemove:v},null),E=Z("div",{class:[l.e("header"),r.value&&l.e("header-vertical"),l.is(e.tabPosition)]},[Z(d,null,{default:S,$stable:!0}),y]),_=Z("div",{class:l.e("content")},[ee(n,"default")]);return Z("div",{class:[l.b(),l.m(e.tabPosition),{[l.m("card")]:e.type==="card",[l.m("border-card")]:e.type==="border-card"}],onVnodeMounted:C,onVnodeUpdated:C},[_,E])}}}),dT=he({label:{type:String,default:""},name:{type:[String,Number]},closable:{type:Boolean,default:void 0},disabled:Boolean,lazy:Boolean}),zee=["id","aria-hidden","aria-labelledby"],fT="ElTabPane",Hee=ae({name:fT,__name:"tab-pane",props:dT,setup(e){const t=e,n=ct(),o=mn(),a=Ee(Zi);a||_n(fT,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const l=fe("tab-pane"),r=P(),i=P(),u=k(()=>{var v;return(v=t.closable)!=null?v:a.props.closable}),c=k(()=>{var v;return a.currentName.value===((v=t.name)!=null?v:i.value)}),d=P(c.value),f=k(()=>{var v;return(v=t.name)!=null?v:i.value}),h=k(()=>!t.lazy||d.value||c.value),m=()=>{var v;return(v=r.value)==null?void 0:v.contains(document.activeElement)};ie(c,v=>{v&&(d.value=!0)});const p=Pt({uid:n.uid,getVnode:()=>n.vnode,slots:o,props:t,paneName:f,active:c,index:i,isClosable:u,isFocusInsidePane:m});return a.registerPane(p),Bt(()=>{a.unregisterPane(p)}),Bg(()=>{var v;o.label&&((v=a.nav$.value)==null||v.scheduleRender())}),(v,g)=>h.value?tt(($(),F("div",{key:0,id:`pane-${f.value}`,ref_key:"paneRef",ref:r,class:x(s(l).b()),role:"tabpanel","aria-hidden":!c.value,"aria-labelledby":`tab-${f.value}`},[ee(v.$slots,"default")],10,zee)),[[xt,c.value]]):te("v-if",!0)}});var pT=ye(Hee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const vT=Qe(Vee,{TabPane:pT}),hT=sn(pT),mT=he({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:oa,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),Wee=ae({name:"ElText",__name:"text",props:mT,setup(e){const t=e,n=P(),o=wn(),a=fe("text"),l=k(()=>[a.b(),a.m(t.type),a.m(o.value),a.is("truncated",t.truncated),a.is("line-clamp",!_t(t.lineClamp))]),r=()=>{var i,u,c,d,f,h,m;if(Xa().title)return;let v=!1;const g=((i=n.value)==null?void 0:i.textContent)||"";if(t.truncated){const b=(u=n.value)==null?void 0:u.offsetWidth,C=(c=n.value)==null?void 0:c.scrollWidth;b&&C&&C>b&&(v=!0)}else if(!_t(t.lineClamp)){const b=(d=n.value)==null?void 0:d.offsetHeight,C=(f=n.value)==null?void 0:f.scrollHeight;b&&C&&C>b&&(v=!0)}v?(h=n.value)==null||h.setAttribute("title",g):(m=n.value)==null||m.removeAttribute("title")};return ut(r),qa(r),(i,u)=>($(),oe(at(i.tag),{ref_key:"textRef",ref:n,class:x(l.value),style:Ie({"-webkit-line-clamp":i.lineClamp})},{default:Q(()=>[ee(i.$slots,"default")]),_:3},8,["class","style"]))}});var Kee=ye(Wee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const $d=Qe(Kee),gT=he({format:{type:String,default:"HH:mm"},modelValue:{type:q(String)},disabled:{type:Boolean,default:void 0},editable:{type:Boolean,default:!0},effect:{type:q(String),default:"light"},clearable:{type:Boolean,default:!0},size:Tn,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:{type:q(String)},maxTime:{type:q(String)},includeEndTime:Boolean,name:String,prefixIcon:{type:q([String,Object]),default:()=>H1},clearIcon:{type:q([String,Object]),default:()=>cl},popperClass:{type:String,default:""},popperStyle:{type:q([String,Object])},...Dl}),yl=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const o=Number.parseInt(t[1],10),a=e.toUpperCase();return a.includes("AM")&&n===12?n=0:a.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:o}}return null},Xm=(e,t)=>{const n=yl(e);if(!n)return-1;const o=yl(t);if(!o)return-1;const a=n.minutes+n.hours*60,l=o.minutes+o.hours*60;return a===l?0:a>l?1:-1},bT=e=>`${e}`.padStart(2,"0"),_s=e=>`${bT(e.hours)}:${bT(e.minutes)}`,jee=(e,t)=>{const n=yl(e);if(!n)return"";const o=yl(t);if(!o)return"";const a={hours:n.hours,minutes:n.minutes};return a.minutes+=o.minutes,a.hours+=o.hours,a.hours+=Math.floor(a.minutes/60),a.minutes=a.minutes%60,_s(a)},Yee=ae({name:"ElTimeSelect",__name:"time-select",props:gT,emits:[ht,"blur","focus","clear",Ye],setup(e,{expose:t}){Je.extend(Dv);const{Option:n}=gl,o=e,a=fe("input"),l=P(),r=on(),{lang:i}=wt(),u=k(()=>o.modelValue),c=k(()=>{const b=yl(o.start);return b?_s(b):null}),d=k(()=>{const b=yl(o.end);return b?_s(b):null}),f=k(()=>{const b=yl(o.step);return b?_s(b):null}),h=k(()=>{const b=yl(o.minTime||"");return b?_s(b):null}),m=k(()=>{const b=yl(o.maxTime||"");return b?_s(b):null}),p=k(()=>{var b;const C=[],w=(y,S)=>{C.push({value:y,disabled:Xm(S,h.value||"-1:-1")<=0||Xm(S,m.value||"100:100")>=0})};if(o.start&&o.end&&o.step){let y=c.value,S;for(;y&&d.value&&Xm(y,d.value)<=0;)S=Je(y,"HH:mm").locale(i.value).format(o.format),w(S,y),y=jee(y,f.value);if(o.includeEndTime&&d.value&&((b=C[C.length-1])==null?void 0:b.value)!==d.value){const E=Je(d.value,"HH:mm").locale(i.value).format(o.format);w(E,d.value)}}return C});return t({blur:()=>{var b,C;(C=(b=l.value)==null?void 0:b.blur)==null||C.call(b)},focus:()=>{var b,C;(C=(b=l.value)==null?void 0:b.focus)==null||C.call(b)}}),(b,C)=>($(),oe(s(gl),{ref_key:"select",ref:l,"model-value":u.value,disabled:s(r),clearable:b.clearable,"clear-icon":b.clearIcon,size:b.size,effect:b.effect,placeholder:b.placeholder,"default-first-option":"",filterable:b.editable,"empty-values":b.emptyValues,"value-on-clear":b.valueOnClear,"popper-class":b.popperClass,"popper-style":b.popperStyle,"onUpdate:modelValue":C[0]||(C[0]=w=>b.$emit(s(Ye),w)),onChange:C[1]||(C[1]=w=>b.$emit(s(ht),w)),onBlur:C[2]||(C[2]=w=>b.$emit("blur",w)),onFocus:C[3]||(C[3]=w=>b.$emit("focus",w)),onClear:C[4]||(C[4]=()=>b.$emit("clear"))},{prefix:Q(()=>[b.prefixIcon?($(),oe(s(_e),{key:0,class:x(s(a).e("prefix-icon"))},{default:Q(()=>[($(),oe(at(b.prefixIcon)))]),_:1},8,["class"])):te("v-if",!0)]),default:Q(()=>[($(!0),F(Be,null,yt(p.value,w=>($(),oe(s(n),{key:w.value,label:w.value,value:w.value,disabled:w.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","popper-class","popper-style"]))}});var Uee=ye(Yee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);const yT=Qe(Uee),Zm="timeline",wT=he({mode:{type:String,values:["start","alternate","alternate-reverse","end"],default:"start"},reverse:Boolean}),Gee=ae({name:"ElTimeline",props:wT,setup(e,{slots:t}){const n=fe("timeline");St(Zm,{props:e,slots:t});const o=k(()=>[n.b(),n.is(e.mode)]);return()=>{var a,l;const r=No((l=(a=t.default)==null?void 0:a.call(t))!=null?l:[]);return Le("ul",{class:o.value},e.reverse?r.reverse():r)}}}),CT=he({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:Ht},hollow:Boolean}),qee=ae({name:"ElTimelineItem",__name:"timeline-item",props:CT,setup(e){const t=e,{props:n}=Ee(Zm),o=fe("timeline-item"),a=k(()=>[o.e("node"),o.em("node",t.size||""),o.em("node",t.type||""),o.is("hollow",t.hollow)]),l=k(()=>[o.b(),{[o.e("center")]:t.center},o.is(n.mode)]);return(r,i)=>($(),F("li",{class:x(l.value)},[W("div",{class:x(s(o).e("tail"))},null,2),r.$slots.dot?te("v-if",!0):($(),F("div",{key:0,class:x(a.value),style:Ie({backgroundColor:r.color})},[r.icon?($(),oe(s(_e),{key:0,class:x(s(o).e("icon"))},{default:Q(()=>[($(),oe(at(r.icon)))]),_:1},8,["class"])):te("v-if",!0)],6)),r.$slots.dot?($(),F("div",{key:1,class:x(s(o).e("dot"))},[ee(r.$slots,"dot")],2)):te("v-if",!0),W("div",{class:x(s(o).e("wrapper"))},[!r.hideTimestamp&&r.placement==="top"?($(),F("div",{key:0,class:x([s(o).e("timestamp"),s(o).is("top")])},ge(r.timestamp),3)):te("v-if",!0),W("div",{class:x(s(o).e("content"))},[ee(r.$slots,"default")],2),!r.hideTimestamp&&r.placement==="bottom"?($(),F("div",{key:1,class:x([s(o).e("timestamp"),s(o).is("bottom")])},ge(r.timestamp),3)):te("v-if",!0)],2)],2))}});var ST=ye(qee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const kT=Qe(Gee,{TimelineItem:ST}),ET=sn(ST),Jm="left-check-change",Qm="right-check-change",Cr=he({data:{type:q(Array),default:()=>[]},titles:{type:q(Array),default:()=>[]},buttonTexts:{type:q(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:q(Function)},leftDefaultChecked:{type:q(Array),default:()=>[]},rightDefaultChecked:{type:q(Array),default:()=>[]},renderContent:{type:q(Function)},modelValue:{type:q(Array),default:()=>[]},format:{type:q(Object),default:()=>({})},filterable:Boolean,props:{type:q(Object),default:()=>dn({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),_d=(e,t)=>[e,t].every($e)||$e(e)&&vn(t),$T={[ht]:(e,t,n)=>[e,n].every($e)&&["left","right"].includes(t),[Ye]:e=>$e(e),[Jm]:_d,[Qm]:_d},eg="checked-change",Xee=he({data:Cr.data,optionRender:{type:q(Function)},placeholder:String,title:String,filterable:Boolean,format:Cr.format,filterMethod:Cr.filterMethod,defaultChecked:Cr.leftDefaultChecked,props:Cr.props}),Zee={[eg]:_d},Ji=e=>{const t={label:"label",key:"key",disabled:"disabled"};return k(()=>({...t,...e.props}))},Jee=(e,t,n)=>{const o=Ji(e),a=k(()=>e.data.filter(d=>lt(e.filterMethod)?e.filterMethod(t.query,d):String(d[o.value.label]||d[o.value.key]).toLowerCase().includes(t.query.toLowerCase()))),l=k(()=>a.value.filter(d=>!d[o.value.disabled])),r=k(()=>{const d=t.checked.length,f=e.data.length,{noChecked:h,hasChecked:m}=e.format;return h&&m?d>0?m.replace(/\${checked}/g,d.toString()).replace(/\${total}/g,f.toString()):h.replace(/\${total}/g,f.toString()):`${d}/${f}`}),i=k(()=>{const d=t.checked.length;return d>0&&d<l.value.length}),u=()=>{const d=l.value.map(f=>f[o.value.key]);t.allChecked=d.length>0&&d.every(f=>t.checked.includes(f))},c=d=>{t.checked=d?l.value.map(f=>f[o.value.key]):[]};return ie(()=>t.checked,(d,f)=>{if(u(),t.checkChangeByUser){const h=d.concat(f).filter(m=>!d.includes(m)||!f.includes(m));n(eg,d,h)}else n(eg,d),t.checkChangeByUser=!0}),ie(l,()=>{u()}),ie(()=>e.data,()=>{const d=[],f=a.value.map(h=>h[o.value.key]);t.checked.forEach(h=>{f.includes(h)&&d.push(h)}),t.checkChangeByUser=!1,t.checked=d}),ie(()=>e.defaultChecked,(d,f)=>{if(f&&d.length===f.length&&d.every(p=>f.includes(p)))return;const h=[],m=l.value.map(p=>p[o.value.key]);d.forEach(p=>{m.includes(p)&&h.push(p)}),t.checkChangeByUser=!1,t.checked=h},{immediate:!0}),{filteredData:a,checkableData:l,checkedSummary:r,isIndeterminate:i,updateAllChecked:u,handleAllCheckedChange:c}},Qee=(e,t)=>({onSourceCheckedChange:(a,l)=>{e.leftChecked=a,l&&t(Jm,a,l)},onTargetCheckedChange:(a,l)=>{e.rightChecked=a,l&&t(Qm,a,l)}}),ete=e=>{const t=Ji(e),n=k(()=>e.data.reduce((l,r)=>(l[r[t.value.key]]=r)&&l,{})),o=k(()=>e.data.filter(l=>!e.modelValue.includes(l[t.value.key]))),a=k(()=>e.targetOrder==="original"?e.data.filter(l=>e.modelValue.includes(l[t.value.key])):e.modelValue.reduce((l,r)=>{const i=n.value[r];return i&&l.push(i),l},[]));return{sourceData:o,targetData:a}},tte=(e,t,n)=>{const o=Ji(e),a=(i,u,c)=>{n(Ye,i),n(ht,i,u,c)};return{addToLeft:()=>{const i=e.modelValue.slice();t.rightChecked.forEach(u=>{const c=i.indexOf(u);c>-1&&i.splice(c,1)}),a(i,"left",t.rightChecked)},addToRight:()=>{let i=e.modelValue.slice();const u=e.data.filter(c=>{const d=c[o.value.key];return t.leftChecked.includes(d)&&!e.modelValue.includes(d)}).map(c=>c[o.value.key]);i=e.targetOrder==="unshift"?u.concat(i):i.concat(u),e.targetOrder==="original"&&(i=e.data.filter(c=>i.includes(c[o.value.key])).map(c=>c[o.value.key])),a(i,"right",t.leftChecked)}}},nte=ae({name:"ElTransferPanel",__name:"transfer-panel",props:Xee,emits:Zee,setup(e,{expose:t,emit:n}){const o=e,a=n,l=mn(),r=({option:y})=>y,{t:i}=wt(),u=fe("transfer"),c=Pt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),d=Ji(o),{filteredData:f,checkedSummary:h,isIndeterminate:m,handleAllCheckedChange:p}=Jee(o,c,a),v=k(()=>!ho(c.query)&&ho(f.value)),g=k(()=>!ho(l.default()[0].children)),{checked:b,allChecked:C,query:w}=Mn(c);return t({query:w}),(y,S)=>($(),F("div",{class:x(s(u).b("panel"))},[W("p",{class:x(s(u).be("panel","header"))},[Z(s(ea),{modelValue:s(C),"onUpdate:modelValue":S[0]||(S[0]=E=>Yn(C)?C.value=E:null),indeterminate:s(m),"validate-event":!1,onChange:s(p)},{default:Q(()=>[bt(ge(y.title)+" ",1),W("span",null,ge(s(h)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),W("div",{class:x([s(u).be("panel","body"),s(u).is("with-footer",g.value)])},[y.filterable?($(),oe(s(Xn),{key:0,modelValue:s(w),"onUpdate:modelValue":S[1]||(S[1]=E=>Yn(w)?w.value=E:null),class:x(s(u).be("panel","filter")),size:"default",placeholder:y.placeholder,"prefix-icon":s(KV),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):te("v-if",!0),tt(Z(s(td),{modelValue:s(b),"onUpdate:modelValue":S[2]||(S[2]=E=>Yn(b)?b.value=E:null),"validate-event":!1,class:x([s(u).is("filterable",y.filterable),s(u).be("panel","list")])},{default:Q(()=>[($(!0),F(Be,null,yt(s(f),E=>($(),oe(s(ea),{key:E[s(d).key],class:x(s(u).be("panel","item")),value:E[s(d).key],disabled:E[s(d).disabled],"validate-event":!1},{default:Q(()=>{var _;return[Z(r,{option:(_=y.optionRender)==null?void 0:_.call(y,E)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[xt,!v.value&&!s(ho)(y.data)]]),tt(W("div",{class:x(s(u).be("panel","empty"))},[ee(y.$slots,"empty",{},()=>[bt(ge(v.value?s(i)("el.transfer.noMatch"):s(i)("el.transfer.noData")),1)])],2),[[xt,v.value||s(ho)(y.data)]])],2),g.value?($(),F("p",{key:0,class:x(s(u).be("panel","footer"))},[ee(y.$slots,"default")],2)):te("v-if",!0)],2))}});var _T=ye(nte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const ote={key:0},ate={key:0},lte=ae({name:"ElTransfer",__name:"transfer",props:Cr,emits:$T,setup(e,{expose:t,emit:n}){const o=e,a=n,l=mn(),{t:r}=wt(),i=fe("transfer"),{formItem:u}=Pn(),c=Pt({leftChecked:[],rightChecked:[]}),d=Ji(o),{sourceData:f,targetData:h}=ete(o),{onSourceCheckedChange:m,onTargetCheckedChange:p}=Qee(c,a),{addToLeft:v,addToRight:g}=tte(o,c,a),b=P(),C=P(),w=N=>{switch(N){case"left":b.value.query="";break;case"right":C.value.query="";break}},y=k(()=>o.buttonTexts.length===2),S=k(()=>o.titles[0]||r("el.transfer.titles.0")),E=k(()=>o.titles[1]||r("el.transfer.titles.1")),_=k(()=>o.filterPlaceholder||r("el.transfer.filterPlaceholder"));ie(()=>o.modelValue,()=>{var N;o.validateEvent&&((N=u==null?void 0:u.validate)==null||N.call(u,"change").catch(O=>void 0))});const T=k(()=>N=>{var O;if(o.renderContent)return o.renderContent(Le,N);const A=(((O=l.default)==null?void 0:O.call(l,{option:N}))||[]).filter(M=>M.type!==Ga);return A.length?A:Le("span",N[d.value.label]||N[d.value.key])});return t({clearQuery:w,leftPanel:b,rightPanel:C}),(N,O)=>($(),F("div",{class:x(s(i).b())},[Z(_T,{ref_key:"leftPanel",ref:b,data:s(f),"option-render":T.value,placeholder:_.value,title:S.value,filterable:N.filterable,format:N.format,"filter-method":N.filterMethod,"default-checked":N.leftDefaultChecked,props:o.props,onCheckedChange:s(m)},{empty:Q(()=>[ee(N.$slots,"left-empty")]),default:Q(()=>[ee(N.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),W("div",{class:x(s(i).e("buttons"))},[Z(s(In),{type:"primary",class:x([s(i).e("button"),s(i).is("with-texts",y.value)]),disabled:s(ho)(c.rightChecked),onClick:s(v)},{default:Q(()=>[Z(s(_e),null,{default:Q(()=>[Z(s(ul))]),_:1}),s(_t)(N.buttonTexts[0])?te("v-if",!0):($(),F("span",ote,ge(N.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),Z(s(In),{type:"primary",class:x([s(i).e("button"),s(i).is("with-texts",y.value)]),disabled:s(ho)(c.leftChecked),onClick:s(g)},{default:Q(()=>[s(_t)(N.buttonTexts[1])?te("v-if",!0):($(),F("span",ate,ge(N.buttonTexts[1]),1)),Z(s(_e),null,{default:Q(()=>[Z(s(oo))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),Z(_T,{ref_key:"rightPanel",ref:C,data:s(h),"option-render":T.value,placeholder:_.value,filterable:N.filterable,format:N.format,"filter-method":N.filterMethod,title:E.value,"default-checked":N.rightDefaultChecked,props:o.props,onCheckedChange:s(p)},{empty:Q(()=>[ee(N.$slots,"right-empty")]),default:Q(()=>[ee(N.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var rte=ye(lte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const TT=Qe(rte),Ts="$treeNodeId",OT=function(e,t){!t||t[Ts]||Object.defineProperty(t,Ts,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},tg=(e,t)=>t==null?void 0:t[e||Ts],ng=(e,t,n)=>{const o=e.value.currentNode;n();const a=e.value.currentNode;o!==a&&t("current-change",a?a.data:null,a)},RT=e=>{let t=!0,n=!0,o=!0,a=!0;for(let l=0,r=e.length;l<r;l++){const i=e[l];(i.checked!==!0||i.indeterminate)&&(t=!1,i.disabled||(o=!1)),(i.checked!==!1||i.indeterminate)&&(n=!1),i.isEffectivelyChecked||(a=!1)}return{all:t,none:n,allWithoutDisable:o,half:!t&&!n,isEffectivelyChecked:a}},Qi=function(e){if(e.childNodes.length===0||e.loading){e.isEffectivelyChecked=e.disabled||e.checked;return}const{all:t,none:n,half:o,isEffectivelyChecked:a}=RT(e.childNodes);e.isEffectivelyChecked=a,t?(e.checked=!0,e.indeterminate=!1):o?(e.checked=!1,e.indeterminate=!0):n&&(e.checked=!1,e.indeterminate=!1);const l=e.parent;!l||l.level===0||e.store.checkStrictly||Qi(l)},Td=function(e,t){const n=e.store.props,o=e.data||{},a=n[t];if(lt(a))return a(o,e);if(He(a))return o[a];if(_t(a)){const l=o[t];return _t(l)?"":l}},og=function(e,t){e.forEach(n=>{n.canFocus=t,og(n.childNodes,t)})};let ste=0;class lu{constructor(t){this.isLeafByUser=void 0,this.isLeaf=void 0,this.isEffectivelyChecked=!1,this.id=ste++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)Bn(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var t;const n=this.store;if(!n)throw new Error("[Node]store is required!");n.registerNode(this);const o=n.props;if(o&&typeof o.isLeaf!="undefined"){const r=Td(this,"isLeaf");zt(r)&&(this.isLeafByUser=r)}if(n.lazy!==!0&&this.data?(this.setData(this.data),n.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&n.lazy&&n.defaultExpandAll&&!this.isLeafByUser&&this.expand(),$e(this.data)||OT(this,this.data),!this.data)return;const a=n.defaultExpandedKeys,l=n.key;l&&!vn(this.key)&&a&&a.includes(this.key)&&this.expand(null,n.autoExpandParent),l&&n.currentNodeKey!==void 0&&this.key===n.currentNodeKey&&(n.currentNode&&(n.currentNode.isCurrent=!1),n.currentNode=this,n.currentNode.isCurrent=!0),n.lazy&&n._initDefaultCheckedNode(this),this.updateLeafState(),(this.level===1||((t=this.parent)==null?void 0:t.expanded)===!0)&&(this.canFocus=!0)}setData(t){$e(t)||OT(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&$e(this.data)?n=this.data:n=Td(this,"children")||[];for(let o=0,a=n.length;o<a;o++)this.insertChild({data:n[o]})}get label(){return Td(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return Td(this,"disabled")}get nextSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(o=>o===t||n&&o.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,o){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof lu)){if(!o){const a=this.getChildren(!0);a!=null&&a.includes(t.data)||(_t(n)||n<0?a==null||a.push(t.data):a==null||a.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Pt(new lu(t)),t instanceof lu&&t.initialize()}t.level=this.level+1,_t(n)||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let o;n&&(o=this.childNodes.indexOf(n)),this.insertChild(t,o)}insertAfter(t,n){let o;n&&(o=this.childNodes.indexOf(n),o!==-1&&(o+=1)),this.insertChild(t,o)}removeChild(t){const n=this.getChildren()||[],o=n.indexOf(t.data);o>-1&&n.splice(o,1);const a=this.childNodes.indexOf(t);a>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(t){const n=this.childNodes.find(o=>o.data===t);n&&this.removeChild(n)}expand(t,n){const o=()=>{if(n){let a=this.parent;for(;a&&a.level>0;)a.expanded=!0,a=a.parent}this.expanded=!0,t&&t(),og(this.childNodes,!0)};this.shouldLoadData()?this.loadData(a=>{$e(a)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||Qi(this),o())}):o()}doCreateChildren(t,n={}){t.forEach(o=>{this.insertChild(Object.assign({data:o},n),void 0,!0)})}collapse(){this.expanded=!1,og(this.childNodes,!1)}shouldLoadData(){return Boolean(this.store.lazy===!0&&this.store.load&&!this.loaded)}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser!="undefined"){this.isLeaf=this.isLeafByUser,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}this.isLeaf=!1}setChecked(t,n,o,a){if(this.indeterminate=t==="half",this.checked=t===!0,this.isEffectivelyChecked=!this.childNodes.length&&(this.disabled||this.checked),this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const r=()=>{if(n){const i=this.childNodes;for(let f=0,h=i.length;f<h;f++){const m=i[f];a=a||t!==!1;const p=m.disabled&&m.isLeaf?m.checked:a;m.setChecked(p,n,!0,a)}const{half:u,all:c,isEffectivelyChecked:d}=RT(i);c||(this.checked=c,this.indeterminate=u),this.isEffectivelyChecked=this.childNodes.length?d:this.disabled||this.checked}};if(this.shouldLoadData()){this.loadData(()=>{r(),Qi(this)},{checked:t!==!1});return}else r()}const l=this.parent;!l||l.level===0||o||Qi(l)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const o=this.store.props;let a="children";return o&&(a=o.children||"children"),_t(n[a])&&(n[a]=null),t&&!n[a]&&(n[a]=[]),n[a]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(l=>l.data),o={},a=[];t.forEach((l,r)=>{const i=l[Ts];!!i&&n.some(c=>(c==null?void 0:c[Ts])===i)?o[i]={index:r,data:l}:a.push({index:r,data:l})}),this.store.lazy||n.forEach(l=>{o[l==null?void 0:l[Ts]]||this.removeChildByData(l)}),a.forEach(({index:l,data:r})=>{this.insertChild({data:r},l)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const o=l=>{this.childNodes=[],this.doCreateChildren(l,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,l)},a=()=>{this.loading=!1};this.store.load(this,o,a)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const o=n.shift();n.unshift(...o.childNodes),t(o)}}reInitChecked(){this.store.checkStrictly||Qi(this)}}var ag=lu;class ite{constructor(t){this.lazy=!1,this.checkStrictly=!1,this.autoExpandParent=!1,this.defaultExpandAll=!1,this.checkDescendants=!1,this.currentNode=null,this.currentNodeKey=null;for(const n in t)Bn(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new ag({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()},Gt)}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,o=this.lazy,a=async function(l){const r=l.root?l.root.childNodes:l.childNodes;for(const[i,u]of r.entries())u.visible=!!(n!=null&&n.call(u,t,u.data,u)),i%80===0&&i>0&&await ke(),await a(u);if(!l.visible&&r.length){let i=!0;i=!r.some(u=>u.visible),l.root?l.root.visible=i===!1:l.visible=i===!1}!t||l.visible&&!l.isLeaf&&(!o||l.loaded)&&l.expand()};a(this)}setData(t){t!==this.root.data?(this.nodesMap={},this.root.setData(t),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(t){if(t instanceof ag)return t;const n=Rt(t)?tg(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){var o;const a=this.getNode(n);(o=a.parent)==null||o.insertBefore({data:t},a)}insertAfter(t,n){var o;const a=this.getNode(n);(o=a.parent)==null||o.insertAfter({data:t},a)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const o=Co(n)?this.root:this.getNode(n);o&&o.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(o=>{const a=n[o];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){const n=this.defaultCheckedKeys||[];!vn(t.key)&&n.includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;if(!(!t||!t.data))if(!n)this.nodesMap[t.id]=t;else{const o=t.key;vn(o)||(this.nodesMap[o]=t)}}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(o=>{this.deregisterNode(o)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const o=[],a=function(l){(l.root?l.root.childNodes:l.childNodes).forEach(i=>{(i.checked||n&&i.indeterminate)&&(!t||t&&i.isLeaf)&&o.push(i.data),a(i)})};return a(this),o}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(l=>{l.indeterminate&&t.push(l.data),n(l)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const o in n)Bn(n,o)&&t.push(n[o]);return t}updateChildren(t,n){const o=this.nodesMap[t];if(!o)return;const a=o.childNodes;for(let l=a.length-1;l>=0;l--){const r=a[l];this.remove(r.data)}for(let l=0,r=n.length;l<r;l++){const i=n[l];this.append(i,o.data)}}_setCheckedKeys(t,n=!1,o){const a=this._getAllNodes().sort((u,c)=>u.level-c.level),l=Object.create(null),r=Object.keys(o);a.forEach(u=>u.setChecked(!1,!1));const i=u=>{u.childNodes.forEach(c=>{var d;l[c.data[t]]=!0,(d=c.childNodes)!=null&&d.length&&i(c)})};for(let u=0,c=a.length;u<c;u++){const d=a[u],f=d.data[t].toString();if(!r.includes(f)){d.checked&&!l[f]&&d.setChecked(!1,!1);continue}if(d.childNodes.length&&i(d),d.isLeaf||this.checkStrictly){d.setChecked(!0,!1);continue}if(d.setChecked(!0,!0),n){d.setChecked(!1,!1);const m=function(p){p.childNodes.forEach(g=>{g.isLeaf||g.setChecked(!1,!1),m(g)})};m(d)}}}setCheckedNodes(t,n=!1){const o=this.key,a={};t.forEach(l=>{a[(l||{})[o]]=!0}),this._setCheckedKeys(o,n,a)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const o=this.key,a={};t.forEach(l=>{a[l]=!0}),this._setCheckedKeys(o,n,a)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const o=this.getNode(n);o&&o.expand(null,this.autoExpandParent)})}setChecked(t,n,o){const a=this.getNode(t);a&&a.setChecked(!!n,o)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){var o;const a=t[this.key],l=this.nodesMap[a];this.setCurrentNode(l),n&&this.currentNode&&this.currentNode.level>1&&((o=this.currentNode.parent)==null||o.expand(null,!0))}setCurrentNodeKey(t,n=!0){var o;if(this.currentNodeKey=t,Co(t)){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const a=this.getNode(t);a&&(this.setCurrentNode(a),n&&this.currentNode&&this.currentNode.level>1&&((o=this.currentNode.parent)==null||o.expand(null,!0)))}}const Od="RootTree",lg="NodeInstance",rg="TreeNodeMap",ute=ae({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=fe("tree"),n=Ee(lg),o=Ee(Od);return()=>{const a=e.node,{data:l,store:r}=a;return e.renderContent?e.renderContent(Le,{_self:n,node:a,data:l,store:r}):ee(o.ctx.slots,"default",{node:a,data:l},()=>[Le($d,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[a.label])])}}});var cte=ye(ute,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function xT(e){const t=Ee(rg,null);let n={treeNodeExpand:o=>{var a;e.node!==o&&((a=e.node)==null||a.collapse())},children:new Set};return t&&t.children.add(n),Bt(()=>{t&&t.children.delete(n),n=null}),St(rg,n),{broadcastExpanded:o=>{if(!!e.accordion)for(const a of n.children)a.treeNodeExpand(o)}}}const IT=Symbol("dragEvents");function dte({props:e,ctx:t,el$:n,dropIndicator$:o,store:a}){const l=fe("tree"),r=P({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return St(IT,{treeNodeDragStart:({event:d,treeNode:f})=>{if(!!d.dataTransfer){if(lt(e.allowDrag)&&!e.allowDrag(f.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch(h){}r.value.draggingNode=f,t.emit("node-drag-start",f.node,d)}},treeNodeDragOver:({event:d,treeNode:f})=>{if(!d.dataTransfer)return;const h=f,m=r.value.dropNode;m&&m.node.id!==h.node.id&&no(m.$el,l.is("drop-inner"));const p=r.value.draggingNode;if(!p||!h)return;let v=!0,g=!0,b=!0,C=!0;lt(e.allowDrop)&&(v=e.allowDrop(p.node,h.node,"prev"),C=g=e.allowDrop(p.node,h.node,"inner"),b=e.allowDrop(p.node,h.node,"next")),d.dataTransfer.dropEffect=g||v||b?"move":"none",(v||g||b)&&(m==null?void 0:m.node.id)!==h.node.id&&(m&&t.emit("node-drag-leave",p.node,m.node,d),t.emit("node-drag-enter",p.node,h.node,d)),v||g||b?r.value.dropNode=h:r.value.dropNode=null,h.node.nextSibling===p.node&&(b=!1),h.node.previousSibling===p.node&&(v=!1),h.node.contains(p.node,!1)&&(g=!1),(p.node===h.node||p.node.contains(h.node))&&(v=!1,g=!1,b=!1);const w=h.$el,y=w.querySelector(`.${l.be("node","content")}`).getBoundingClientRect(),S=n.value.getBoundingClientRect(),E=n.value.scrollTop;let _;const T=v?g?.25:b?.45:1:Number.NEGATIVE_INFINITY,N=b?g?.75:v?.55:0:Number.POSITIVE_INFINITY;let O=-9999;const A=d.clientY-y.top;A<y.height*T?_="before":A>y.height*N?_="after":g?_="inner":_="none";const M=w.querySelector(`.${l.be("node","expand-icon")}`).getBoundingClientRect(),L=o.value;_==="before"?O=M.top-S.top+E:_==="after"&&(O=M.bottom-S.top+E),L.style.top=`${O}px`,L.style.left=`${M.right-S.left}px`,_==="inner"?Yo(w,l.is("drop-inner")):no(w,l.is("drop-inner")),r.value.showDropIndicator=_==="before"||_==="after",r.value.allowDrop=r.value.showDropIndicator||C,r.value.dropType=_,t.emit("node-drag-over",p.node,h.node,d)},treeNodeDragEnd:d=>{var f,h;const{draggingNode:m,dropType:p,dropNode:v}=r.value;if(d.preventDefault(),d.dataTransfer&&(d.dataTransfer.dropEffect="move"),(m==null?void 0:m.node.data)&&v){const g={data:m.node.data};p!=="none"&&m.node.remove(),p==="before"?(f=v.node.parent)==null||f.insertBefore(g,v.node):p==="after"?(h=v.node.parent)==null||h.insertAfter(g,v.node):p==="inner"&&v.node.insertChild(g),p!=="none"&&(a.value.registerNode(g),a.value.key&&m.node.eachNode(b=>{var C;(C=a.value.nodesMap[b.data[a.value.key]])==null||C.setChecked(b.checked,!a.value.checkStrictly)})),no(v.$el,l.is("drop-inner")),t.emit("node-drag-end",m.node,v.node,p,d),p!=="none"&&t.emit("node-drop",m.node,v.node,p,d)}m&&!v&&t.emit("node-drag-end",m.node,null,p,d),r.value.showDropIndicator=!1,r.value.draggingNode=null,r.value.dropNode=null,r.value.allowDrop=!0}}),{dragState:r}}const fte=ae({name:"ElTreeNode",components:{ElCollapseTransition:Li,ElCheckbox:ea,NodeContent:cte,ElIcon:_e,Loading:Pa},props:{node:{type:ag,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const n=fe("tree"),{broadcastExpanded:o}=xT(e),a=Ee(Od),l=P(!1),r=P(!1),i=P(),u=P(),c=P(),d=Ee(IT),f=ct();St(lg,f),e.node.expanded&&(l.value=!0,r.value=!0);const h=a.props.props.children||"children";ie(()=>{var N;const O=(N=e.node.data)==null?void 0:N[h];return O&&[...O]},()=>{e.node.updateChildren()}),ie(()=>e.node.indeterminate,N=>{v(e.node.checked,N)}),ie(()=>e.node.checked,N=>{v(N,e.node.indeterminate)}),ie(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),ie(()=>e.node.expanded,N=>{ke(()=>l.value=N),N&&(r.value=!0)});const m=N=>tg(a.props.nodeKey,N.data),p=N=>{const O=e.props.class;if(!O)return{};let A;if(lt(O)){const{data:M}=N;A=O(M,N)}else A=O;return He(A)?{[A]:!0}:A},v=(N,O)=>{(i.value!==N||u.value!==O)&&a.ctx.emit("check-change",e.node.data,N,O),i.value=N,u.value=O},g=N=>{ng(a.store,a.ctx.emit,()=>{var O;if((O=a==null?void 0:a.props)==null?void 0:O.nodeKey){const M=m(e.node);a.store.value.setCurrentNodeKey(M)}else a.store.value.setCurrentNode(e.node)}),a.currentNode.value=e.node,a.props.expandOnClickNode&&C(),(a.props.checkOnClickNode||e.node.isLeaf&&a.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&w(!e.node.checked),a.ctx.emit("node-click",e.node.data,e.node,f,N)},b=N=>{var O;(O=a.instance.vnode.props)!=null&&O.onNodeContextmenu&&(N.stopPropagation(),N.preventDefault()),a.ctx.emit("node-contextmenu",N,e.node.data,e.node,f)},C=()=>{e.node.isLeaf||(l.value?(a.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,f)}))},w=N=>{const O=a==null?void 0:a.props.checkStrictly,A=e.node.childNodes;!O&&A.length&&(N=A.some(M=>!M.isEffectivelyChecked)),e.node.setChecked(N,!O),ke(()=>{const M=a.store.value;a.ctx.emit("check",e.node.data,{checkedNodes:M.getCheckedNodes(),checkedKeys:M.getCheckedKeys(),halfCheckedNodes:M.getHalfCheckedNodes(),halfCheckedKeys:M.getHalfCheckedKeys()})})};return{ns:n,node$:c,tree:a,expanded:l,childNodeRendered:r,oldChecked:i,oldIndeterminate:u,getNodeKey:m,getNodeClass:p,handleSelectChange:v,handleClick:g,handleContextMenu:b,handleExpandIconClick:C,handleCheckChange:w,handleChildNodeExpand:(N,O,A)=>{o(O),a.ctx.emit("node-expand",N,O,A)},handleDragStart:N=>{!a.props.draggable||d.treeNodeDragStart({event:N,treeNode:e})},handleDragOver:N=>{N.preventDefault(),a.props.draggable&&d.treeNodeDragOver({event:N,treeNode:{$el:c.value,node:e.node}})},handleDrop:N=>{N.preventDefault()},handleDragEnd:N=>{!a.props.draggable||d.treeNodeDragEnd(N)},CaretRight:z1}}}),pte=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],vte=["aria-expanded"];function hte(e,t,n,o,a,l){const r=It("el-icon"),i=It("el-checkbox"),u=It("loading"),c=It("node-content"),d=It("el-tree-node"),f=It("el-collapse-transition");return tt(($(),F("div",{ref:"node$",class:x([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[2]||(t[2]=je((...h)=>e.handleClick&&e.handleClick(...h),["stop"])),onContextmenu:t[3]||(t[3]=(...h)=>e.handleContextMenu&&e.handleContextMenu(...h)),onDragstart:t[4]||(t[4]=je((...h)=>e.handleDragStart&&e.handleDragStart(...h),["stop"])),onDragover:t[5]||(t[5]=je((...h)=>e.handleDragOver&&e.handleDragOver(...h),["stop"])),onDragend:t[6]||(t[6]=je((...h)=>e.handleDragEnd&&e.handleDragEnd(...h),["stop"])),onDrop:t[7]||(t[7]=je((...h)=>e.handleDrop&&e.handleDrop(...h),["stop"]))},[W("div",{class:x(e.ns.be("node","content")),style:Ie({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?($(),oe(r,{key:0,class:x([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:je(e.handleExpandIconClick,["stop"])},{default:Q(()=>[($(),oe(at(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):te("v-if",!0),e.showCheckbox?($(),oe(i,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=je(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):te("v-if",!0),e.node.loading?($(),oe(r,{key:2,class:x([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:Q(()=>[Z(u)]),_:1},8,["class"])):te("v-if",!0),Z(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),Z(f,null,{default:Q(()=>[!e.renderAfterExpand||e.childNodeRendered?tt(($(),F("div",{key:0,class:x(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:t[1]||(t[1]=je(()=>{},["stop"]))},[($(!0),F(Be,null,yt(e.node.childNodes,h=>($(),oe(d,{key:e.getNodeKey(h),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:h,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,vte)),[[xt,e.expanded]]):te("v-if",!0)]),_:1})],42,pte)),[[xt,e.node.visible]])}var mte=ye(fte,[["render",hte],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function gte({el$:e},t){const n=fe("tree");ut(()=>{l()}),qa(()=>{var r;(r=e.value)==null||r.querySelectorAll("input[type=checkbox]").forEach(i=>{i.setAttribute("tabindex","-1")})});function o(r,i){var u,c;const d=t.value.getNode(r[i].dataset.key);return d.canFocus&&d.visible&&(((u=d.parent)==null?void 0:u.expanded)||((c=d.parent)==null?void 0:c.level)===0)}Mt(e,"keydown",r=>{const i=r.target;if(!i.className.includes(n.b("node")))return;const u=Wt(r),c=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),d=c.indexOf(i);let f;if([pe.up,pe.down].includes(u)){if(r.preventDefault(),u===pe.up){f=d===-1?0:d!==0?d-1:c.length-1;const m=f;for(;!o(c,f);){if(f--,f===m){f=-1;break}f<0&&(f=c.length-1)}}else{f=d===-1?0:d<c.length-1?d+1:0;const m=f;for(;!o(c,f);){if(f++,f===m){f=-1;break}f>=c.length&&(f=0)}}f!==-1&&c[f].focus()}[pe.left,pe.right].includes(u)&&(r.preventDefault(),i.click());const h=i.querySelector('[type="checkbox"]');[pe.enter,pe.numpadEnter,pe.space].includes(u)&&h&&(r.preventDefault(),h.click())});const l=()=>{var r;if(!e.value)return;const i=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(d=>{d.setAttribute("tabindex","-1")});const c=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(c.length){c[0].setAttribute("tabindex","0");return}(r=i[0])==null||r.setAttribute("tabindex","0")}}const sg=he({data:{type:q(Array),default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:{type:Array},defaultExpandedKeys:{type:Array},currentNodeKey:{type:[String,Number]},renderContent:{type:q(Function)},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:q(Function)},allowDrop:{type:q(Function)},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:{type:Function},filterNodeMethod:{type:Function},accordion:Boolean,indent:{type:Number,default:18},icon:{type:Ht}}),MT={"check-change":(e,t,n)=>e&&zt(t)&&zt(n),"current-change":(e,t)=>!0,"node-click":(e,t,n,o)=>e&&t&&o instanceof Event,"node-contextmenu":(e,t,n,o)=>e instanceof Event&&t&&n,"node-collapse":(e,t,n)=>e&&t,"node-expand":(e,t,n)=>e&&t,check:(e,t)=>e&&t,"node-drag-start":(e,t)=>e&&t,"node-drag-end":(e,t,n,o)=>e&&o,"node-drop":(e,t,n,o)=>e&&t&&o,"node-drag-leave":(e,t,n)=>e&&t&&n,"node-drag-enter":(e,t,n)=>e&&t&&n,"node-drag-over":(e,t,n)=>e&&t&&n},bte=ae({name:"ElTree",components:{ElTreeNode:mte},props:sg,emits:MT,setup(e,t){const{t:n}=wt(),o=fe("tree"),a=P(new ite({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));a.value.initialize();const l=P(a.value.root),r=P(null),i=P(null),u=P(null),{broadcastExpanded:c}=xT(e),{dragState:d}=dte({props:e,ctx:t,el$:i,dropIndicator$:u,store:a});gte({el$:i},a);const f=ct(),h=k(()=>{let B=f==null?void 0:f.parent;for(;B;){if(B.type.name==="ElTreeSelect")return!0;B=B.parent}return!1}),m=k(()=>{const{childNodes:B}=l.value;return(!B||B.length===0||B.every(({visible:z})=>!z))&&!h.value});ie(()=>e.currentNodeKey,B=>{a.value.setCurrentNodeKey(B!=null?B:null)}),ie(()=>e.defaultCheckedKeys,(B,z)=>{un(B,z)||a.value.setDefaultCheckedKey(B!=null?B:[])}),ie(()=>e.defaultExpandedKeys,B=>{a.value.setDefaultExpandedKeys(B!=null?B:[])}),ie(()=>e.data,B=>{a.value.setData(B)},{deep:!0}),ie(()=>e.checkStrictly,B=>{a.value.checkStrictly=B});const p=B=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");a.value.filter(B)},v=B=>tg(e.nodeKey,B.data),g=B=>{if(!e.nodeKey)throw new Error(`[Tree] nodeKey is required in ${B}`)},b=B=>{g("getNodePath");const z=a.value.getNode(B);if(!z)return[];const U=[z.data];let V=z.parent;for(;V&&V!==l.value;)U.push(V.data),V=V.parent;return U.reverse()},C=(B,z)=>a.value.getCheckedNodes(B,z),w=B=>a.value.getCheckedKeys(B),y=()=>{const B=a.value.getCurrentNode();return B?B.data:null},S=()=>{g("getCurrentKey");const B=y();return B?B[e.nodeKey]:null},E=(B,z)=>{g("setCheckedNodes"),a.value.setCheckedNodes(B,z)},_=(B,z)=>{g("setCheckedKeys"),a.value.setCheckedKeys(B,z)},T=(B,z,U)=>{a.value.setChecked(B,z,U)},N=()=>a.value.getHalfCheckedNodes(),O=()=>a.value.getHalfCheckedKeys(),A=(B,z=!0)=>{g("setCurrentNode"),ng(a,t.emit,()=>{c(B),a.value.setUserCurrentNode(B,z)})},M=(B=null,z=!0)=>{g("setCurrentKey"),ng(a,t.emit,()=>{c(),a.value.setCurrentNodeKey(B,z)})},L=B=>a.value.getNode(B),H=B=>{a.value.remove(B)},K=(B,z)=>{a.value.append(B,z)},Y=(B,z)=>{a.value.insertBefore(B,z)},I=(B,z)=>{a.value.insertAfter(B,z)},R=(B,z,U)=>{c(z),t.emit("node-expand",B,z,U)},D=(B,z)=>{g("updateKeyChild"),a.value.updateChildren(B,z)};return St(Od,{ctx:t,props:e,store:a,root:l,currentNode:r,instance:f}),St(ya,void 0),{ns:o,store:a,root:l,currentNode:r,dragState:d,el$:i,dropIndicator$:u,isEmpty:m,filter:p,getNodeKey:v,getNodePath:b,getCheckedNodes:C,getCheckedKeys:w,getCurrentNode:y,getCurrentKey:S,setCheckedNodes:E,setCheckedKeys:_,setChecked:T,getHalfCheckedNodes:N,getHalfCheckedKeys:O,setCurrentNode:A,setCurrentKey:M,t:n,getNode:L,remove:H,append:K,insertBefore:Y,insertAfter:I,handleNodeExpand:R,updateKeyChildren:D}}});function yte(e,t,n,o,a,l){const r=It("el-tree-node");return $(),F("div",{ref:"el$",class:x([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[($(!0),F(Be,null,yt(e.root.childNodes,i=>($(),oe(r,{key:e.getNodeKey(i),node:i,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?($(),F("div",{key:0,class:x(e.ns.e("empty-block"))},[ee(e.$slots,"empty",{},()=>{var i;return[W("span",{class:x(e.ns.e("empty-text"))},ge((i=e.emptyText)!=null?i:e.t("el.tree.emptyText")),3)]})],2)):te("v-if",!0),tt(W("div",{ref:"dropIndicator$",class:x(e.ns.e("drop-indicator"))},null,2),[[xt,e.dragState.showDropIndicator]])],2)}var wte=ye(bte,[["render",yte],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);const Rd=Qe(wte),Cte=(e,{attrs:t,emit:n},{select:o,tree:a,key:l})=>{const r=fe("tree-select");ie(()=>e.data,()=>{e.filterable&&ke(()=>{var c,d;(d=a.value)==null||d.filter((c=o.value)==null?void 0:c.states.inputValue)})},{flush:"post"});const i=c=>{var d;const f=c.at(-1);if(f.expanded&&f.childNodes.at(-1))i([f.childNodes.at(-1)]);else{const h=(d=a.value.el$)==null?void 0:d.querySelector(`[data-key="${c.at(-1).key}"]`);h==null||h.focus({preventScroll:!0});return}};return ut(()=>{Mt(()=>{var c;return(c=o.value)==null?void 0:c.$el},"keydown",async c=>{const d=Wt(c),{dropdownMenuVisible:f}=o.value;[pe.down,pe.up].includes(d)&&f&&(await ke(),setTimeout(()=>{var h,m,p;if(pe.up===d){const v=a.value.store.root.childNodes;i(v);return}(p=(m=(h=o.value.optionsArray[o.value.states.hoveringIndex].$el)==null?void 0:h.parentNode)==null?void 0:m.parentNode)==null||p.focus({preventScroll:!0})}))},{capture:!0})}),{...xa(Mn(e),Object.keys(gl.props)),...t,class:k(()=>t.class),style:k(()=>t.style),"onUpdate:modelValue":c=>n(Ye,c),valueKey:l,popperClass:k(()=>{const c=[r.e("popper")];return e.popperClass&&c.push(e.popperClass),c.join(" ")}),filterMethod:(c="")=>{var d;e.filterMethod?e.filterMethod(c):e.remoteMethod?e.remoteMethod(c):(d=a.value)==null||d.filter(c)}}},Ste=ae({extends:Ai,setup(e,t){const n=Ai.setup(e,t);delete n.selectOptionClick;const o=ct().proxy;return ke(()=>{n.select.states.cachedOptions.get(o.value)||n.select.onOptionCreate(o)}),ie(()=>t.attrs.visible,a=>{ke(()=>{n.states.visible=a})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});var kte=Ste;function ig(e){return e||e===0}function ug(e){return $e(e)&&e.length}function Os(e){return $e(e)?e:ig(e)?[e]:[]}function xd(e,t,n,o,a){for(let l=0;l<e.length;l++){const r=e[l];if(t(r,l,e,a))return o?o(r,l,e,a):r;{const i=n(r);if(ug(i)){const u=xd(i,t,n,o,r);if(u)return u}}}}function Id(e,t,n,o){for(let a=0;a<e.length;a++){const l=e[a];t(l,a,e,o);const r=n(l);ug(r)&&Id(r,t,n,l)}}const Ete=(e,{attrs:t,slots:n,emit:o},{select:a,tree:l,key:r})=>{ie([()=>e.modelValue,l],()=>{e.showCheckbox&&ke(()=>{const h=l.value;h&&!un(h.getCheckedKeys(),Os(e.modelValue))&&h.setCheckedKeys(Os(e.modelValue))})},{immediate:!0,deep:!0});const i=k(()=>({value:r.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),u=(h,m)=>{var p;const v=i.value[h];return lt(v)?v(m,(p=l.value)==null?void 0:p.getNode(u("value",m))):m[v]},c=Os(e.modelValue).map(h=>xd(e.data||[],m=>u("value",m)===h,m=>u("children",m),(m,p,v,g)=>g&&u("value",g))).filter(h=>ig(h)),d=k(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const h=[];return Id(e.data.concat(e.cacheData),m=>{const p=u("value",m);h.push({value:p,currentLabel:u("label",m),isDisabled:u("disabled",m)})},m=>u("children",m)),h}),f=()=>{var h;return(h=l.value)==null?void 0:h.getCheckedKeys().filter(m=>{var p;const v=(p=l.value)==null?void 0:p.getNode(m);return!vn(v)&&ho(v.childNodes)})};return{...xa(Mn(e),Object.keys(Rd.props)),...t,nodeKey:r,expandOnClickNode:k(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:k(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(h,{node:m,data:p,store:v})=>h(kte,{value:u("value",p),label:u("label",p),disabled:u("disabled",p),visible:m.visible},e.renderContent?()=>e.renderContent(h,{node:m,data:p,store:v}):n.default?()=>n.default({node:m,data:p,store:v}):void 0),filterNodeMethod:(h,m,p)=>e.filterNodeMethod?e.filterNodeMethod(h,m,p):h?new RegExp(Sp(h),"i").test(u("label",m)||""):!0,onNodeClick:(h,m,p)=>{var v,g,b;if((v=t.onNodeClick)==null||v.call(t,h,m,p),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||m.isLeaf)){if(!u("disabled",h)){const C=(g=a.value)==null?void 0:g.states.options.get(u("value",h));(b=a.value)==null||b.handleOptionSelect(C)}}else e.expandOnClickNode&&p.proxy.handleExpandIconClick()},onCheck:(h,m)=>{var p;if(!e.showCheckbox)return;const v=u("value",h),g={};Id([l.value.store.root],y=>g[y.key]=y,y=>y.childNodes);const b=m.checkedKeys,C=e.multiple?Os(e.modelValue).filter(y=>!(y in g)&&!b.includes(y)):[],w=C.concat(b);if(e.checkStrictly)o(Ye,e.multiple?w:w.includes(v)?v:void 0);else if(e.multiple){const y=f();o(Ye,C.concat(y))}else{const y=xd([h],_=>!ug(u("children",_))&&!u("disabled",_),_=>u("children",_)),S=y?u("value",y):void 0,E=ig(e.modelValue)&&!!xd([h],_=>u("value",_)===e.modelValue,_=>u("children",_));o(Ye,S===e.modelValue||E?void 0:S)}ke(()=>{var y;const S=Os(e.modelValue);l.value.setCheckedKeys(S),(y=t.onCheck)==null||y.call(t,h,{checkedKeys:l.value.getCheckedKeys(),checkedNodes:l.value.getCheckedNodes(),halfCheckedKeys:l.value.getHalfCheckedKeys(),halfCheckedNodes:l.value.getHalfCheckedNodes()})}),(p=a.value)==null||p.focus()},onNodeExpand:(h,m,p)=>{var v;(v=t.onNodeExpand)==null||v.call(t,h,m,p),ke(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&m.checked){const g={},b=l.value.getCheckedKeys();Id([l.value.store.root],y=>g[y.key]=y,y=>y.childNodes);const C=Os(e.modelValue).filter(y=>!(y in g)&&!b.includes(y)),w=f();o(Ye,C.concat(w))}})},cacheOptions:d}};var $te=ae({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Ee(fs);return ie(()=>e.data,()=>{var n;e.data.forEach(a=>{t.states.cachedOptions.has(a.value)||t.states.cachedOptions.set(a.value,a)});const o=((n=t.selectRef)==null?void 0:n.querySelectorAll("input"))||[];Tt&&!Array.from(o).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const _te=ae({name:"ElTreeSelect",inheritAttrs:!1,props:{...uh,...sg,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:o}=t,a=P(),l=P(),r=k(()=>e.nodeKey||e.valueKey||"value"),i=Cte(e,t,{select:a,tree:l,key:r}),{cacheOptions:u,...c}=Ete(e,t,{select:a,tree:l,key:r}),d=Pt({});return o(d),ut(()=>{Object.assign(d,{...xa(l.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...xa(a.value,["focus","blur","selectedLabel"]),treeRef:l.value,selectRef:a.value})}),()=>Le(gl,Pt({...i,ref:f=>a.value=f}),{...n,default:()=>[Le($te,{data:u.value}),Le(Rd,Pt({...c,ref:f=>l.value=f}))]})}});var Tte=ye(_te,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);const NT=Qe(Tte),cg=Symbol(),Ote={key:-1,level:-1,data:{}};var eu=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e))(eu||{}),dg=(e=>(e.ADD="add",e.DELETE="delete",e))(dg||{});const AT={type:Number,default:26},Rte=he({data:{type:q(Array),default:()=>dn([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:q(Object),default:()=>dn({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:Boolean,showCheckbox:Boolean,defaultCheckedKeys:{type:q(Array),default:()=>dn([])},checkStrictly:Boolean,defaultExpandedKeys:{type:q(Array),default:()=>dn([])},indent:{type:Number,default:16},itemSize:AT,icon:{type:Ht},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:q([String,Number])},accordion:Boolean,filterMethod:{type:q(Function)},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),xte=he({node:{type:q(Object),default:()=>dn(Ote)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize:AT}),Ite=he({node:{type:q(Object),required:!0}}),PT="node-click",LT="node-drop",DT="node-expand",BT="node-collapse",FT="current-change",VT="check",zT="check-change",HT="node-contextmenu",Mte={[PT]:(e,t,n)=>e&&t&&n,[LT]:(e,t,n)=>e&&t&&n,[DT]:(e,t)=>e&&t,[BT]:(e,t)=>e&&t,[FT]:(e,t)=>e&&t,[VT]:(e,t)=>e&&t,[zT]:(e,t)=>e&&zt(t),[HT]:(e,t,n)=>e&&t&&n},Nte={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&zt(t)};function Ate(e,t){const n=P(new Set),o=P(new Set),{emit:a}=ct();ie([()=>t.value,()=>e.defaultCheckedKeys],()=>ke(()=>{C(e.defaultCheckedKeys)}),{immediate:!0});const l=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:w,maxLevel:y}=t.value,S=n.value,E=new Set;for(let _=y;_>=1;--_){const T=w.get(_);!T||T.forEach(N=>{const O=N.children;let A=!N.isLeaf||N.disabled||S.has(N.key);if(O){let M=!0,L=!1;for(const H of O){const K=H.key;if(H.isEffectivelyChecked||(A=!1),S.has(K))L=!0;else if(E.has(K)){M=!1,L=!0;break}else M=!1}M?S.add(N.key):L?(E.add(N.key),S.delete(N.key)):(S.delete(N.key),E.delete(N.key))}N.isEffectivelyChecked=A})}o.value=E},r=w=>n.value.has(w.key),i=w=>o.value.has(w.key),u=(w,y,S=!0,E=!0)=>{const _=n.value,T=w.children;!e.checkStrictly&&S&&(T==null?void 0:T.length)&&(y=T.some(O=>!O.isEffectivelyChecked));const N=(O,A)=>{_[A?dg.ADD:dg.DELETE](O.key);const M=O.children;!e.checkStrictly&&M&&M.forEach(L=>{(!L.disabled||L.children)&&N(L,A)})};N(w,y),E&&l(),S&&c(w,y)},c=(w,y)=>{const{checkedNodes:S,checkedKeys:E}=p(),{halfCheckedNodes:_,halfCheckedKeys:T}=v();a(VT,w.data,{checkedKeys:E,checkedNodes:S,halfCheckedKeys:T,halfCheckedNodes:_}),a(zT,w.data,y)};function d(w=!1){return p(w).checkedKeys}function f(w=!1){return p(w).checkedNodes}function h(){return v().halfCheckedKeys}function m(){return v().halfCheckedNodes}function p(w=!1){const y=[],S=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:E}=t.value;n.value.forEach(_=>{const T=E.get(_);T&&(!w||w&&T.isLeaf)&&(S.push(_),y.push(T.data))})}return{checkedKeys:S,checkedNodes:y}}function v(){const w=[],y=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:S}=t.value;o.value.forEach(E=>{const _=S.get(E);_&&(y.push(E),w.push(_.data))})}return{halfCheckedNodes:w,halfCheckedKeys:y}}function g(w){n.value.clear(),o.value.clear(),ke(()=>{C(w)})}function b(w,y){if((t==null?void 0:t.value)&&e.showCheckbox){const S=t.value.treeNodeMap.get(w);S&&u(S,y,!1)}}function C(w){if(t!=null&&t.value){const{treeNodeMap:y}=t.value;if(e.showCheckbox&&y&&(w==null?void 0:w.length)>0){for(const S of w){const E=y.get(S);E&&!r(E)&&u(E,!0,!1,!1)}l()}}}return{updateCheckedKeys:l,toggleCheckbox:u,isChecked:r,isIndeterminate:i,getCheckedKeys:d,getCheckedNodes:f,getHalfCheckedKeys:h,getHalfCheckedNodes:m,setChecked:b,setCheckedKeys:g}}function Pte(e,t){const n=P(new Set([])),o=P(new Set([])),a=k(()=>lt(e.filterMethod));function l(i){var u;if(!a.value)return;const c=new Set,d=o.value,f=n.value,h=[],m=((u=t.value)==null?void 0:u.treeNodes)||[],p=e.filterMethod;f.clear();function v(g){g.forEach(b=>{h.push(b),p!=null&&p(i,b.data,b)?h.forEach(w=>{c.add(w.key),w.expanded=!0}):(b.expanded=!1,b.isLeaf&&f.add(b.key));const C=b.children;if(C&&v(C),!b.isLeaf){if(!c.has(b.key))f.add(b.key);else if(C){let w=!0;for(const y of C)if(!f.has(y.key)){w=!1;break}w?d.add(b.key):d.delete(b.key)}}h.pop()})}return v(m),c}function r(i){return o.value.has(i.key)}return{hiddenExpandIconKeySet:o,hiddenNodeKeySet:n,doFilter:l,isForceHiddenExpandIcon:r}}function Lte(e,t){const n=P(new Set),o=P(),a=Zt(),l=P(),{isIndeterminate:r,isChecked:i,toggleCheckbox:u,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:m,setCheckedKeys:p}=Ate(e,a),{doFilter:v,hiddenNodeKeySet:g,isForceHiddenExpandIcon:b}=Pte(e,a),C=k(()=>{var j;return((j=e.props)==null?void 0:j.value)||eu.KEY}),w=k(()=>{var j;return((j=e.props)==null?void 0:j.children)||eu.CHILDREN}),y=k(()=>{var j;return((j=e.props)==null?void 0:j.disabled)||eu.DISABLED}),S=k(()=>{var j;return((j=e.props)==null?void 0:j.label)||eu.LABEL}),E=k(()=>{var j;const re=n.value,Se=g.value,Te=[],De=((j=a.value)==null?void 0:j.treeNodes)||[],ze=[];for(let Ze=De.length-1;Ze>=0;--Ze)ze.push(De[Ze]);for(;ze.length;){const Ze=ze.pop();if(!Se.has(Ze.key)&&(Te.push(Ze),Ze.children&&re.has(Ze.key)))for(let nt=Ze.children.length-1;nt>=0;--nt)ze.push(Ze.children[nt])}return Te}),_=k(()=>E.value.length>0);function T(j){const re=new Map,Se=new Map;let Te=1;function De(Ze,nt=1,Et=void 0){var Ue;const Ae=[];for(const Pe of Ze){const Ge=A(Pe),ot={level:nt,key:Ge,data:Pe};ot.label=L(Pe),ot.parent=Et;const pt=O(Pe);ot.disabled=M(Pe),ot.isLeaf=!pt||pt.length===0,ot.expanded=n.value.has(Ge),pt&&pt.length&&(ot.children=De(pt,nt+1,ot)),Ae.push(ot),re.set(Ge,ot),Se.has(nt)||Se.set(nt,[]),(Ue=Se.get(nt))==null||Ue.push(ot)}return nt>Te&&(Te=nt),Ae}const ze=De(j);return{treeNodeMap:re,levelTreeNodeMap:Se,maxLevel:Te,treeNodes:ze}}function N(j){const re=v(j);re&&(n.value=re)}function O(j){return j[w.value]}function A(j){return j?j[C.value]:""}function M(j){return j[y.value]}function L(j){return j[S.value]}function H(j){n.value.has(j.key)?z(j):B(j)}function K(j){const re=new Set,Se=a.value.treeNodeMap;n.value.forEach(Te=>{const De=Se.get(Te);n.value.delete(De.key),De.expanded=!1}),j.forEach(Te=>{let De=Se.get(Te);for(;De&&!re.has(De.key);)re.add(De.key),De.expanded=!0,De=De.parent}),n.value=re}function Y(j,re){t(PT,j.data,j,re),R(j),e.expandOnClickNode&&H(j),e.showCheckbox&&(e.checkOnClickNode||j.isLeaf&&e.checkOnClickLeaf)&&!j.disabled&&u(j,!i(j),!0)}function I(j,re){t(LT,j.data,j,re)}function R(j){V(j)||(o.value=j.key,t(FT,j.data,j))}function D(j,re){u(j,re)}function B(j){const re=n.value;if(a.value&&e.accordion){const{treeNodeMap:Te}=a.value;re.forEach(De=>{const ze=Te.get(De);j&&j.level===(ze==null?void 0:ze.level)&&(re.delete(De),ze.expanded=!1)})}re.add(j.key);const Se=de(j.key);Se&&(Se.expanded=!0,t(DT,Se.data,Se))}function z(j){n.value.delete(j.key);const re=de(j.key);re&&(re.expanded=!1,t(BT,re.data,re))}function U(j){return!!j.disabled}function V(j){const re=o.value;return re!==void 0&&re===j.key}function G(){var j,re;if(!!o.value)return(re=(j=a.value)==null?void 0:j.treeNodeMap.get(o.value))==null?void 0:re.data}function X(){return o.value}function le(j){o.value=j}function se(j){a.value=T(j)}function de(j){var re;const Se=Rt(j)?A(j):j;return(re=a.value)==null?void 0:re.treeNodeMap.get(Se)}function ce(j,re="auto"){const Se=de(j);Se&&l.value&&l.value.scrollToItem(E.value.indexOf(Se),re)}function ne(j){var re;(re=l.value)==null||re.scrollTo(j)}return ie(()=>e.currentNodeKey,j=>{o.value=j},{immediate:!0}),ie(()=>e.defaultExpandedKeys,j=>{n.value=new Set(j)},{immediate:!0}),ie(()=>e.data,j=>{se(j)},{immediate:!0}),{tree:a,flattenTree:E,isNotEmpty:_,listRef:l,getKey:A,getChildren:O,toggleExpand:H,toggleCheckbox:u,isChecked:i,isIndeterminate:r,isDisabled:U,isCurrent:V,isForceHiddenExpandIcon:b,handleNodeClick:Y,handleNodeDrop:I,handleNodeCheck:D,getCurrentNode:G,getCurrentKey:X,setCurrentKey:le,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:m,setCheckedKeys:p,filter:N,setData:se,getNode:de,expandNode:B,collapseNode:z,setExpandedKeys:K,scrollToNode:ce,scrollTo:ne}}var Dte=ae({name:"ElTreeNodeContent",props:Ite,setup(e){const t=Ee(cg),n=fe("tree");return()=>{const o=e.node,{data:a}=o;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:o,data:a}):Le($d,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[o==null?void 0:o.label])}}});const Bte=["aria-expanded","aria-disabled","aria-checked","data-key"],Fte=ae({name:"ElTreeNode",__name:"tree-node",props:xte,emits:Nte,setup(e,{emit:t}){const n=e,o=t,a=Ee(cg),l=fe("tree"),r=k(()=>{var p;return(p=a==null?void 0:a.props.indent)!=null?p:16}),i=k(()=>{var p;return(p=a==null?void 0:a.props.icon)!=null?p:z1}),u=p=>{const v=a==null?void 0:a.props.props.class;if(!v)return{};let g;if(lt(v)){const{data:b}=p;g=v(b,p)}else g=v;return He(g)?{[g]:!0}:g},c=p=>{o("click",n.node,p)},d=p=>{o("drop",n.node,p)},f=()=>{o("toggle",n.node)},h=p=>{o("check",n.node,p)},m=p=>{var v,g,b,C;(b=(g=(v=a==null?void 0:a.instance)==null?void 0:v.vnode)==null?void 0:g.props)!=null&&b.onNodeContextmenu&&(p.stopPropagation(),p.preventDefault()),a==null||a.ctx.emit(HT,p,(C=n.node)==null?void 0:C.data,n.node)};return(p,v)=>{var g,b,C;return $(),F("div",{ref:"node$",class:x([s(l).b("node"),s(l).is("expanded",p.expanded),s(l).is("current",p.current),s(l).is("focusable",!p.disabled),s(l).is("checked",!p.disabled&&p.checked),u(p.node)]),role:"treeitem",tabindex:"-1","aria-expanded":p.expanded,"aria-disabled":p.disabled,"aria-checked":p.checked,"data-key":(g=p.node)==null?void 0:g.key,onClick:je(c,["stop"]),onContextmenu:m,onDragover:v[1]||(v[1]=je(()=>{},["prevent"])),onDragenter:v[2]||(v[2]=je(()=>{},["prevent"])),onDrop:je(d,["stop"])},[W("div",{class:x(s(l).be("node","content")),style:Ie({paddingLeft:`${(p.node.level-1)*r.value}px`,height:p.itemSize+"px"})},[i.value?($(),oe(s(_e),{key:0,class:x([s(l).is("leaf",!!((b=p.node)!=null&&b.isLeaf)),s(l).is("hidden",p.hiddenExpandIcon),{expanded:!((C=p.node)!=null&&C.isLeaf)&&p.expanded},s(l).be("node","expand-icon")]),onClick:je(f,["stop"])},{default:Q(()=>[($(),oe(at(i.value)))]),_:1},8,["class"])):te("v-if",!0),p.showCheckbox?($(),oe(s(ea),{key:1,"model-value":p.checked,indeterminate:p.indeterminate,disabled:p.disabled,onChange:h,onClick:v[0]||(v[0]=je(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):te("v-if",!0),Z(s(Dte),{node:{...p.node,expanded:p.expanded}},null,8,["node"])],6)],42,Bte)}}});var Vte=ye(Fte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const zte=ae({name:"ElTreeV2",__name:"tree",props:Rte,emits:Mte,setup(e,{expose:t,emit:n}){const o=e,a=n,l=mn(),r=k(()=>o.itemSize);St(cg,{ctx:{emit:a,slots:l},props:o,instance:ct()}),St(ya,void 0);const{t:i}=wt(),u=fe("tree"),{flattenTree:c,isNotEmpty:d,listRef:f,toggleExpand:h,isIndeterminate:m,isChecked:p,isDisabled:v,isCurrent:g,isForceHiddenExpandIcon:b,handleNodeClick:C,handleNodeDrop:w,handleNodeCheck:y,toggleCheckbox:S,getCurrentNode:E,getCurrentKey:_,setCurrentKey:T,getCheckedKeys:N,getCheckedNodes:O,getHalfCheckedKeys:A,getHalfCheckedNodes:M,setChecked:L,setCheckedKeys:H,filter:K,setData:Y,getNode:I,expandNode:R,collapseNode:D,setExpandedKeys:B,scrollToNode:z,scrollTo:U}=Lte(o,a);return t({toggleCheckbox:S,getCurrentNode:E,getCurrentKey:_,setCurrentKey:T,getCheckedKeys:N,getCheckedNodes:O,getHalfCheckedKeys:A,getHalfCheckedNodes:M,setChecked:L,setCheckedKeys:H,filter:K,setData:Y,getNode:I,expandNode:R,collapseNode:D,setExpandedKeys:B,scrollToNode:z,scrollTo:U}),(V,G)=>($(),F("div",{class:x([s(u).b(),{[s(u).m("highlight-current")]:V.highlightCurrent}]),role:"tree"},[s(d)?($(),oe(s(Em),{key:0,ref_key:"listRef",ref:f,"class-name":s(u).b("virtual-list"),data:s(c),total:s(c).length,height:V.height,"item-size":r.value,"perf-mode":V.perfMode,"scrollbar-always-on":V.scrollbarAlwaysOn},{default:Q(({data:X,index:le,style:se})=>[($(),oe(Vte,{key:X[le].key,style:Ie(se),node:X[le],expanded:X[le].expanded,"show-checkbox":V.showCheckbox,checked:s(p)(X[le]),indeterminate:s(m)(X[le]),"item-size":r.value,disabled:s(v)(X[le]),current:s(g)(X[le]),"hidden-expand-icon":s(b)(X[le]),onClick:s(C),onToggle:s(h),onCheck:s(y),onDrop:s(w)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode","scrollbar-always-on"])):($(),F("div",{key:1,class:x(s(u).e("empty-block"))},[ee(V.$slots,"empty",{},()=>{var X;return[W("span",{class:x(s(u).e("empty-text"))},ge((X=V.emptyText)!=null?X:s(i)("el.tree.emptyText")),3)]})],2))],2))}});var Hte=ye(zte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const WT=Qe(Hte),fg=Symbol("uploadContextKey"),Wte="ElUpload";class Kte extends Error{constructor(t,n,o,a){super(t),this.name="UploadAjaxError",this.status=n,this.method=o,this.url=a}}function KT(e,t,n){let o;return n.response?o=`${n.response.error||n.response}`:n.responseText?o=`${n.responseText}`:o=`fail to ${t.method} ${e} ${n.status}`,new Kte(o,n.status,t.method,e)}function jte(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}const Yte=e=>{typeof XMLHttpRequest=="undefined"&&_n(Wte,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",l=>{const r=l;r.percent=l.total>0?l.loaded/l.total*100:0,e.onProgress(r)});const o=new FormData;if(e.data)for(const[l,r]of Object.entries(e.data))$e(r)&&r.length?o.append(l,...r):o.append(l,r);o.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(KT(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(KT(n,e,t));e.onSuccess(jte(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const a=e.headers||{};if(a instanceof Headers)a.forEach((l,r)=>t.setRequestHeader(r,l));else for(const[l,r]of Object.entries(a))vn(r)||t.setRequestHeader(l,String(r));return t.send(o),t},pg=["text","picture","picture-card"];let Ute=1;const Md=()=>Date.now()+Ute++,vg=he({action:{type:String,default:"#"},headers:{type:q(Object)},method:{type:String,default:"post"},data:{type:q([Object,Function,Promise]),default:()=>dn({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:q(Array),default:()=>dn([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:pg,default:"text"},httpRequest:{type:q(Function),default:Yte},disabled:{type:Boolean,default:void 0},limit:Number,directory:Boolean}),jT=he({...vg,beforeUpload:{type:q(Function),default:Gt},beforeRemove:{type:q(Function)},onRemove:{type:q(Function),default:Gt},onChange:{type:q(Function),default:Gt},onPreview:{type:q(Function),default:Gt},onSuccess:{type:q(Function),default:Gt},onProgress:{type:q(Function),default:Gt},onError:{type:q(Function),default:Gt},onExceed:{type:q(Function),default:Gt},crossorigin:{type:q(String)}}),YT=he({files:{type:q(Array),default:()=>dn([])},disabled:{type:Boolean,default:void 0},handlePreview:{type:q(Function),default:Gt},listType:{type:String,values:pg,default:"text"},crossorigin:{type:q(String)}}),UT={remove:e=>!!e},Gte=["tabindex","aria-disabled","onKeydown"],qte=["src","crossorigin"],Xte=["onClick"],Zte=["title"],Jte=["onClick"],Qte=["onClick"],ene=ae({name:"ElUploadList",__name:"upload-list",props:YT,emits:UT,setup(e,{emit:t}){const n=e,o=t,{t:a}=wt(),l=fe("upload"),r=fe("icon"),i=fe("list"),u=on(),c=P(!1),d=k(()=>[l.b("list"),l.bm("list",n.listType),l.is("disabled",u.value)]),f=h=>{o("remove",h)};return(h,m)=>($(),oe(Ng,{tag:"ul",class:x(d.value),name:s(i).b()},{default:Q(()=>[($(!0),F(Be,null,yt(h.files,(p,v)=>($(),F("li",{key:p.uid||p.name,class:x([s(l).be("list","item"),s(l).is(p.status),{focusing:c.value}]),tabindex:s(u)?void 0:0,"aria-disabled":s(u),role:"button",onKeydown:fn(g=>!s(u)&&f(p),["delete"]),onFocus:m[0]||(m[0]=g=>c.value=!0),onBlur:m[1]||(m[1]=g=>c.value=!1),onClick:m[2]||(m[2]=g=>c.value=!1)},[ee(h.$slots,"default",{file:p,index:v},()=>[h.listType==="picture"||p.status!=="uploading"&&h.listType==="picture-card"?($(),F("img",{key:0,class:x(s(l).be("list","item-thumbnail")),src:p.url,crossorigin:h.crossorigin,alt:""},null,10,qte)):te("v-if",!0),p.status==="uploading"||h.listType!=="picture-card"?($(),F("div",{key:1,class:x(s(l).be("list","item-info"))},[W("a",{class:x(s(l).be("list","item-name")),onClick:je(g=>h.handlePreview(p),["prevent"])},[Z(s(_e),{class:x(s(r).m("document"))},{default:Q(()=>[Z(s(wV))]),_:1},8,["class"]),W("span",{class:x(s(l).be("list","item-file-name")),title:p.name},ge(p.name),11,Zte)],10,Xte),p.status==="uploading"?($(),oe(s(cm),{key:0,type:h.listType==="picture-card"?"circle":"line","stroke-width":h.listType==="picture-card"?6:2,percentage:Number(p.percentage),style:Ie(h.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):te("v-if",!0)],2)):te("v-if",!0),W("label",{class:x(s(l).be("list","item-status-label"))},[h.listType==="text"?($(),oe(s(_e),{key:0,class:x([s(r).m("upload-success"),s(r).m("circle-check")])},{default:Q(()=>[Z(s($p))]),_:1},8,["class"])):["picture-card","picture"].includes(h.listType)?($(),oe(s(_e),{key:1,class:x([s(r).m("upload-success"),s(r).m("check")])},{default:Q(()=>[Z(s(ii))]),_:1},8,["class"])):te("v-if",!0)],2),s(u)?te("v-if",!0):($(),oe(s(_e),{key:2,class:x(s(r).m("close")),onClick:g=>f(p)},{default:Q(()=>[Z(s(Uo))]),_:1},8,["class","onClick"])),te(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),te(" This is a bug which needs to be fixed "),te(" TODO: Fix the incorrect navigation interaction "),s(u)?te("v-if",!0):($(),F("i",{key:3,class:x(s(r).m("close-tip"))},ge(s(a)("el.upload.deleteTip")),3)),h.listType==="picture-card"?($(),F("span",{key:4,class:x(s(l).be("list","item-actions"))},[W("span",{class:x(s(l).be("list","item-preview")),onClick:g=>h.handlePreview(p)},[Z(s(_e),{class:x(s(r).m("zoom-in"))},{default:Q(()=>[Z(s(Y1))]),_:1},8,["class"])],10,Jte),s(u)?te("v-if",!0):($(),F("span",{key:0,class:x(s(l).be("list","item-delete")),onClick:g=>f(p)},[Z(s(_e),{class:x(s(r).m("delete"))},{default:Q(()=>[Z(s(bV))]),_:1},8,["class"])],10,Qte))],2)):te("v-if",!0)])],42,Gte))),128)),ee(h.$slots,"append")]),_:3},8,["class","name"]))}});var GT=ye(ene,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const qT=he({disabled:{type:Boolean,default:void 0},directory:Boolean}),XT={file:e=>$e(e)},ZT="ElUploadDrag",tne=ae({name:ZT,__name:"upload-dragger",props:qT,emits:XT,setup(e,{emit:t}){const n=e,o=t;Ee(fg)||_n(ZT,"usage: <el-upload><el-upload-dragger /></el-upload>");const l=fe("upload"),r=P(!1),i=on(),u=m=>new Promise((p,v)=>m.file(p,v)),c=async m=>{try{if(m.isFile){const p=await u(m);return p.isDirectory=!1,[p]}if(m.isDirectory){const p=m.createReader(),v=()=>new Promise((y,S)=>p.readEntries(y,S)),g=[];let b=await v();for(;b.length>0;)g.push(...b),b=await v();const C=g.map(y=>c(y).catch(()=>[])),w=await Promise.all(C);return qs(w)}}catch(p){return[]}return[]},d=async m=>{if(i.value)return;r.value=!1,m.stopPropagation();const p=Array.from(m.dataTransfer.files),v=m.dataTransfer.items||[];if(n.directory){const g=Array.from(v).map(C=>{var w;return(w=C==null?void 0:C.webkitGetAsEntry)==null?void 0:w.call(C)}).filter(C=>C),b=await Promise.all(g.map(c));o("file",qs(b));return}p.forEach((g,b)=>{var C;const w=v[b],y=(C=w==null?void 0:w.webkitGetAsEntry)==null?void 0:C.call(w);y&&(g.isDirectory=y.isDirectory)}),o("file",p)},f=()=>{i.value||(r.value=!0)},h=m=>{m.currentTarget.contains(m.relatedTarget)||(r.value=!1)};return(m,p)=>($(),F("div",{class:x([s(l).b("dragger"),s(l).is("dragover",r.value)]),onDrop:je(d,["prevent"]),onDragover:je(f,["prevent"]),onDragleave:je(h,["prevent"])},[ee(m.$slots,"default")],34))}});var nne=ye(tne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const JT=he({...vg,beforeUpload:{type:q(Function),default:Gt},onRemove:{type:q(Function),default:Gt},onStart:{type:q(Function),default:Gt},onSuccess:{type:q(Function),default:Gt},onProgress:{type:q(Function),default:Gt},onError:{type:q(Function),default:Gt},onExceed:{type:q(Function),default:Gt}}),one=["tabindex","aria-disabled","onKeydown"],ane=["name","disabled","multiple","accept","webkitdirectory"],lne=ae({name:"ElUploadContent",inheritAttrs:!1,__name:"upload-content",props:JT,setup(e,{expose:t}){const n=e,o=fe("upload"),a=on(),l=Zt({}),r=Zt(),i=v=>{if(v.length===0)return;const{autoUpload:g,limit:b,fileList:C,multiple:w,onStart:y,onExceed:S}=n;if(b&&C.length+v.length>b){S(v,C);return}w||(v=v.slice(0,1));for(const E of v){const _=E;_.uid=Md(),y(_),g&&u(_)}},u=async v=>{if(r.value.value="",!n.beforeUpload)return d(v);let g,b={};try{const w=n.data,y=n.beforeUpload(v);b=tf(n.data)?Js(n.data):n.data,g=await y,tf(n.data)&&un(w,b)&&(b=Js(n.data))}catch(w){g=!1}if(g===!1){n.onRemove(v);return}let C=v;g instanceof Blob&&(g instanceof File?C=g:C=new File([g],v.name,{type:v.type})),d(Object.assign(C,{uid:v.uid}),b)},c=async(v,g)=>lt(v)?v(g):v,d=async(v,g)=>{const{headers:b,data:C,method:w,withCredentials:y,name:S,action:E,onProgress:_,onSuccess:T,onError:N,httpRequest:O}=n;try{g=await c(g!=null?g:C,v)}catch(H){n.onRemove(v);return}const{uid:A}=v,M={headers:b||{},withCredentials:y,file:v,data:g,method:w,filename:S,action:E,onProgress:H=>{_(H,v)},onSuccess:H=>{T(H,v),delete l.value[A]},onError:H=>{N(H,v),delete l.value[A]}},L=O(M);l.value[A]=L,L instanceof Promise&&L.then(M.onSuccess,M.onError)},f=v=>{const g=v.target.files;!g||i(Array.from(g))},h=()=>{a.value||(r.value.value="",r.value.click())},m=()=>{h()};return t({abort:v=>{A1(l.value).filter(v?([b])=>String(v.uid)===b:()=>!0).forEach(([b,C])=>{C instanceof XMLHttpRequest&&C.abort(),delete l.value[b]})},upload:u}),(v,g)=>($(),F("div",{class:x([s(o).b(),s(o).m(v.listType),s(o).is("drag",v.drag),s(o).is("disabled",s(a))]),tabindex:s(a)?void 0:0,"aria-disabled":s(a),role:"button",onClick:h,onKeydown:fn(je(m,["self"]),["enter","space"])},[v.drag?($(),oe(nne,{key:0,disabled:s(a),directory:v.directory,onFile:i},{default:Q(()=>[ee(v.$slots,"default")]),_:3},8,["disabled","directory"])):ee(v.$slots,"default",{key:1}),W("input",{ref_key:"inputRef",ref:r,class:x(s(o).e("input")),name:v.name,disabled:s(a),multiple:v.multiple,accept:v.accept,webkitdirectory:v.directory,type:"file",onChange:f,onClick:g[0]||(g[0]=je(()=>{},["stop"]))},null,42,ane)],42,one))}});var QT=ye(lne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const eO="ElUpload",tO=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},rne=(e,t)=>{const n=Jg(e,"fileList",void 0,{passive:!0}),o=p=>n.value.find(v=>v.uid===p.uid);function a(p){var v;(v=t.value)==null||v.abort(p)}function l(p=["ready","uploading","success","fail"]){n.value=n.value.filter(v=>!p.includes(v.status))}function r(p){n.value=n.value.filter(v=>v.uid!==p.uid)}const i=p=>{ke(()=>e.onChange(p,n.value))},u=(p,v)=>{const g=o(v);!g||(console.error(p),g.status="fail",r(g),e.onError(p,g,n.value),i(g))},c=(p,v)=>{const g=o(v);!g||(e.onProgress(p,g,n.value),g.status="uploading",g.percentage=Math.round(p.percent))},d=(p,v)=>{const g=o(v);!g||(g.status="success",g.response=p,e.onSuccess(p,g,n.value),i(g))},f=p=>{vn(p.uid)&&(p.uid=Md());const v={name:p.name,percentage:0,status:"ready",size:p.size,raw:p,uid:p.uid};if(e.listType==="picture-card"||e.listType==="picture")try{v.url=URL.createObjectURL(p)}catch(g){g.message,e.onError(g,v,n.value)}n.value=[...n.value,v],i(v)},h=async p=>{const v=p instanceof File?o(p):p;v||_n(eO,"file to be removed not found");const g=b=>{a(b),r(b),e.onRemove(b,n.value),tO(b)};e.beforeRemove?await e.beforeRemove(v,n.value)!==!1&&g(v):g(v)};function m(){n.value.filter(({status:p})=>p==="ready").forEach(({raw:p})=>{var v;return p&&((v=t.value)==null?void 0:v.upload(p))})}return ie(()=>e.listType,p=>{p!=="picture-card"&&p!=="picture"||(n.value=n.value.map(v=>{const{raw:g,url:b}=v;if(!b&&g)try{v.url=URL.createObjectURL(g)}catch(C){e.onError(C,v,n.value)}return v}))}),ie(n,p=>{for(const v of p)v.uid||(v.uid=Md()),v.status||(v.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:a,clearFiles:l,handleError:u,handleProgress:c,handleStart:f,handleSuccess:d,handleRemove:h,submit:m,revokeFileObjectURL:tO}},sne=ae({name:"ElUpload",__name:"upload",props:jT,setup(e,{expose:t}){const n=e,o=on(),a=Zt(),{abort:l,submit:r,clearFiles:i,uploadFiles:u,handleStart:c,handleError:d,handleRemove:f,handleSuccess:h,handleProgress:m,revokeFileObjectURL:p}=rne(n,a),v=k(()=>n.listType==="picture-card"),g=k(()=>({...n,fileList:u.value,onStart:c,onProgress:m,onSuccess:h,onError:d,onRemove:f}));return Bt(()=>{u.value.forEach(p)}),St(fg,{accept:Lt(n,"accept")}),t({abort:l,submit:r,clearFiles:i,handleStart:c,handleRemove:f}),(b,C)=>($(),F("div",null,[v.value&&b.showFileList?($(),oe(GT,{key:0,disabled:s(o),"list-type":b.listType,files:s(u),crossorigin:b.crossorigin,"handle-preview":b.onPreview,onRemove:s(f)},uo({append:Q(()=>[Z(QT,rt({ref_key:"uploadRef",ref:a},g.value),{default:Q(()=>[b.$slots.trigger?ee(b.$slots,"trigger",{key:0}):te("v-if",!0),!b.$slots.trigger&&b.$slots.default?ee(b.$slots,"default",{key:1}):te("v-if",!0)]),_:3},16)]),_:2},[b.$slots.file?{name:"default",fn:Q(({file:w,index:y})=>[ee(b.$slots,"file",{file:w,index:y})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):te("v-if",!0),!v.value||v.value&&!b.showFileList?($(),oe(QT,rt({key:1,ref_key:"uploadRef",ref:a},g.value),{default:Q(()=>[b.$slots.trigger?ee(b.$slots,"trigger",{key:0}):te("v-if",!0),!b.$slots.trigger&&b.$slots.default?ee(b.$slots,"default",{key:1}):te("v-if",!0)]),_:3},16)):te("v-if",!0),b.$slots.trigger?ee(b.$slots,"default",{key:2}):te("v-if",!0),ee(b.$slots,"tip"),!v.value&&b.showFileList?($(),oe(GT,{key:3,disabled:s(o),"list-type":b.listType,files:s(u),crossorigin:b.crossorigin,"handle-preview":b.onPreview,onRemove:s(f)},uo({_:2},[b.$slots.file?{name:"default",fn:Q(({file:w,index:y})=>[ee(b.$slots,"file",{file:w,index:y})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):te("v-if",!0)]))}});var ine=ye(sne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const nO=Qe(ine),oO=he({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:q([String,Array]),default:"Element Plus"},font:{type:q(Object)},gap:{type:q(Array),default:()=>[100,100]},offset:{type:q(Array)}});function une(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function cne(e){return Object.keys(e).map(t=>`${une(t)}: ${e[t]};`).join(" ")}function dne(){return window.devicePixelRatio||1}const fne=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},pne={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function hg(e,t,n=1){const o=document.createElement("canvas"),a=o.getContext("2d"),l=e*n,r=t*n;return o.setAttribute("width",`${l}px`),o.setAttribute("height",`${r}px`),a.save(),[a,o,l,r]}function vne(){function e(t,n,o,a,l,r,i,u,c){const[d,f,h,m]=hg(a,l,o);let p=0;if(t instanceof HTMLImageElement)d.drawImage(t,0,0,h,m);else{const{color:V,fontSize:G,fontStyle:X,fontWeight:le,fontFamily:se,textAlign:de,textBaseline:ce}=r,ne=Number(G)*o;d.font=`${X} normal ${le} ${ne}px/${l}px ${se}`,d.fillStyle=V,d.textAlign=de,d.textBaseline=ce;const j=$e(t)?t:[t];if(ce!=="top"&&j[0]){const re=d.measureText(j[0]);d.textBaseline="top";const Se=d.measureText(j[0]);p=re.actualBoundingBoxAscent-Se.actualBoundingBoxAscent}j==null||j.forEach((re,Se)=>{const[Te,De]=pne[de];d.fillText(re!=null?re:"",h*Te+c*De,Se*(ne+r.fontGap*o))})}const v=Math.PI/180*Number(n),g=Math.max(a,l),[b,C,w]=hg(g,g,o);b.translate(w/2,w/2),b.rotate(v),h>0&&m>0&&b.drawImage(f,-h/2,-m/2);function y(V,G){const X=V*Math.cos(v)-G*Math.sin(v),le=V*Math.sin(v)+G*Math.cos(v);return[X,le]}let S=0,E=0,_=0,T=0;const N=h/2,O=m/2;[[0-N,0-O],[0+N,0-O],[0+N,0+O],[0-N,0+O]].forEach(([V,G])=>{const[X,le]=y(V,G);S=Math.min(S,X),E=Math.max(E,X),_=Math.min(_,le),T=Math.max(T,le)});const M=S+w/2,L=_+w/2,H=E-S,K=T-_,Y=i*o,I=u*o,R=(H+Y)*2,D=K+I,[B,z]=hg(R,D);function U(V=0,G=0){B.drawImage(C,M,L,H,K,V,G+p,H,K)}return U(),U(H+Y,-K/2-I/2),U(H+Y,+K/2+I/2),[z.toDataURL(),R/o,D/o]}return e}const hne=ae({name:"ElWatermark",__name:"watermark",props:oO,setup(e){const t={position:"relative"},n=e,o=k(()=>{var A,M;return(M=(A=n.font)==null?void 0:A.fontGap)!=null?M:3}),a=k(()=>{var A,M;return(M=(A=n.font)==null?void 0:A.color)!=null?M:"rgba(0,0,0,.15)"}),l=k(()=>{var A,M;return(M=(A=n.font)==null?void 0:A.fontSize)!=null?M:16}),r=k(()=>{var A,M;return(M=(A=n.font)==null?void 0:A.fontWeight)!=null?M:"normal"}),i=k(()=>{var A,M;return(M=(A=n.font)==null?void 0:A.fontStyle)!=null?M:"normal"}),u=k(()=>{var A,M;return(M=(A=n.font)==null?void 0:A.fontFamily)!=null?M:"sans-serif"}),c=k(()=>{var A,M;return(M=(A=n.font)==null?void 0:A.textAlign)!=null?M:"center"}),d=k(()=>{var A,M;return(M=(A=n.font)==null?void 0:A.textBaseline)!=null?M:"hanging"}),f=k(()=>n.gap[0]),h=k(()=>n.gap[1]),m=k(()=>f.value/2),p=k(()=>h.value/2),v=k(()=>{var A,M;return(M=(A=n.offset)==null?void 0:A[0])!=null?M:m.value}),g=k(()=>{var A,M;return(M=(A=n.offset)==null?void 0:A[1])!=null?M:p.value}),b=()=>{const A={zIndex:n.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let M=v.value-m.value,L=g.value-p.value;return M>0&&(A.left=`${M}px`,A.width=`calc(100% - ${M}px)`,M=0),L>0&&(A.top=`${L}px`,A.height=`calc(100% - ${L}px)`,L=0),A.backgroundPosition=`${M}px ${L}px`,A},C=Zt(null),w=Zt(),y=P(!1),S=()=>{w.value&&(w.value.remove(),w.value=void 0)},E=(A,M)=>{var L;C.value&&w.value&&(y.value=!0,w.value.setAttribute("style",cne({...b(),backgroundImage:`url('${A}')`,backgroundSize:`${Math.floor(M)}px`})),(L=C.value)==null||L.append(w.value),setTimeout(()=>{y.value=!1}))},_=A=>{let M=120,L=64,H=0;const{image:K,content:Y,width:I,height:R,rotate:D}=n;if(!K&&A.measureText){A.font=`${Number(l.value)}px ${u.value}`;const B=$e(Y)?Y:[Y];let z=0,U=0;B.forEach(G=>{const{width:X,fontBoundingBoxAscent:le,fontBoundingBoxDescent:se,actualBoundingBoxAscent:de,actualBoundingBoxDescent:ce}=A.measureText(G),ne=_t(le)?de+ce:le+se;X>z&&(z=Math.ceil(X)),ne>U&&(U=Math.ceil(ne))}),M=z,L=U*B.length+(B.length-1)*o.value;const V=Math.PI/180*Number(D);H=Math.ceil(Math.abs(Math.sin(V)*L)/2),M+=H}return[I!=null?I:M,R!=null?R:L,H]},T=vne(),N=()=>{const M=document.createElement("canvas").getContext("2d"),L=n.image,H=n.content,K=n.rotate;if(M){w.value||(w.value=document.createElement("div"));const Y=dne(),[I,R,D]=_(M),B=z=>{const[U,V]=T(z||"",K,Y,I,R,{color:a.value,fontSize:l.value,fontStyle:i.value,fontWeight:r.value,fontFamily:u.value,fontGap:o.value,textAlign:c.value,textBaseline:d.value},f.value,h.value,D);E(U,V)};if(L){const z=new Image;z.onload=()=>{B(z)},z.onerror=()=>{B(H)},z.crossOrigin="anonymous",z.referrerPolicy="no-referrer",z.src=L}else B(H)}};return ut(()=>{N()}),ie(()=>n,()=>{N()},{deep:!0,flush:"post"}),Bt(()=>{S()}),Ds(C,A=>{y.value||A.forEach(M=>{fne(M,w.value)&&(S(),N())})},{attributes:!0,subtree:!0,childList:!0}),(A,M)=>($(),F("div",{ref_key:"containerRef",ref:C,style:Ie([t])},[ee(A.$slots,"default")],4))}});var mne=ye(hne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/watermark/src/watermark.vue"]]);const aO=Qe(mne),gne=he({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:q(Object)},targetAreaClickable:{type:Boolean,default:!0}}),bne=(e,t,n,o,a)=>{const l=P(null),r=()=>{let f;return He(e.value)?f=document.querySelector(e.value):lt(e.value)?f=e.value():f=e.value,f},i=()=>{const f=r();if(!f||!t.value){l.value=null;return}yne(f)||f.scrollIntoView(a.value);const{left:h,top:m,width:p,height:v}=f.getBoundingClientRect();l.value={left:h,top:m,width:p,height:v,radius:0}};ut(()=>{ie([t,e],()=>{i()},{immediate:!0}),window.addEventListener("resize",i)}),Bt(()=>{window.removeEventListener("resize",i)});const u=f=>{var h;return(h=$e(n.value.offset)?n.value.offset[f]:n.value.offset)!=null?h:6},c=k(()=>{var f;if(!l.value)return l.value;const h=u(0),m=u(1),p=((f=n.value)==null?void 0:f.radius)||2;return{left:l.value.left-h,top:l.value.top-m,width:l.value.width+h*2,height:l.value.height+m*2,radius:p}}),d=k(()=>{const f=r();return!o.value||!f||!window.DOMRect?f||void 0:{getBoundingClientRect(){var h,m,p,v;return window.DOMRect.fromRect({width:((h=c.value)==null?void 0:h.width)||0,height:((m=c.value)==null?void 0:m.height)||0,x:((p=c.value)==null?void 0:p.left)||0,y:((v=c.value)==null?void 0:v.top)||0})}}});return{mergedPosInfo:c,triggerTarget:d}},Nd=Symbol("ElTour");function yne(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:o,right:a,bottom:l,left:r}=e.getBoundingClientRect();return o>=0&&r>=0&&a<=t&&l<=n}const wne=(e,t,n,o,a,l,r,i)=>{const u=P(),c=P(),d=P({}),f={x:u,y:c,placement:o,strategy:a,middlewareData:d},h=k(()=>{const b=[OH(s(l)),xH(),RH(),Cne()];return s(i)&&s(n)&&b.push(vC({element:s(n)})),b}),m=async()=>{if(!Tt)return;const b=s(e),C=s(t);if(!b||!C)return;const w=await hC(b,C,{placement:s(o),strategy:s(a),middleware:s(h)});Wr(f).forEach(y=>{f[y].value=w[y]})},p=k(()=>{if(!s(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:s(r)};const{overflow:b}=s(d);return{position:s(a),zIndex:s(r),top:s(c)!=null?`${s(c)}px`:"",left:s(u)!=null?`${s(u)}px`:"",maxWidth:b!=null&&b.maxWidth?`${b==null?void 0:b.maxWidth}px`:""}}),v=k(()=>{if(!s(i))return{};const{arrow:b}=s(d);return{left:(b==null?void 0:b.x)!=null?`${b==null?void 0:b.x}px`:"",top:(b==null?void 0:b.y)!=null?`${b==null?void 0:b.y}px`:""}});let g;return ut(()=>{const b=s(e),C=s(t);b&&C&&(g=_H(b,C,m)),io(()=>{m()})}),Bt(()=>{g&&g()}),{update:m,contentStyle:p,arrowStyle:v}},Cne=()=>({name:"overflow",async fn(e){const t=await TH(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),Sne={style:{width:"100%",height:"100%"}},kne=["d"],Ene=ae({name:"ElTourMask",inheritAttrs:!1,__name:"mask",props:gne,setup(e){const t=e,{ns:n}=Ee(Nd),o=k(()=>{var d,f;return(f=(d=t.pos)==null?void 0:d.radius)!=null?f:2}),a=k(()=>{const d=o.value,f=`a${d},${d} 0 0 1`;return{topRight:`${f} ${d},${d}`,bottomRight:`${f} ${-d},${d}`,bottomLeft:`${f} ${-d},${-d}`,topLeft:`${f} ${d},${-d}`}}),{width:l,height:r}=Jd(),i=k(()=>{const d=l.value,f=r.value,h=a.value,m=`M${d},0 L0,0 L0,${f} L${d},${f} L${d},0 Z`,p=o.value;return t.pos?`${m} M${t.pos.left+p},${t.pos.top} h${t.pos.width-p*2} ${h.topRight} v${t.pos.height-p*2} ${h.bottomRight} h${-t.pos.width+p*2} ${h.bottomLeft} v${-t.pos.height+p*2} ${h.topLeft} z`:m}),u=k(()=>({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:t.zIndex,pointerEvents:t.pos&&t.targetAreaClickable?"none":"auto"})),c=k(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return fi(Lt(t,"visible"),{ns:n}),(d,f)=>d.visible?($(),F("div",rt({key:0,class:s(n).e("mask"),style:u.value},d.$attrs),[($(),F("svg",Sne,[W("path",{class:x(s(n).e("hollow")),style:Ie(c.value),d:i.value},null,14,kne)]))],16)):te("v-if",!0)}});var $ne=ye(Ene,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/mask.vue"]]);const lO=["absolute","fixed"],rO=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],Ad=he({placement:{type:q(String),values:rO,default:"bottom"},reference:{type:q(Object),default:null},strategy:{type:q(String),values:lO,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),sO={close:()=>!0},_ne=["data-side"],Tne=ae({name:"ElTourContent",__name:"content",props:Ad,emits:sO,setup(e,{emit:t}){const n=e,o=t,a=P(n.placement),l=P(n.strategy),r=P(null),i=P(null);ie(()=>n.placement,()=>{a.value=n.placement});const{contentStyle:u,arrowStyle:c}=wne(Lt(n,"reference"),r,i,a,l,Lt(n,"offset"),Lt(n,"zIndex"),Lt(n,"showArrow")),d=k(()=>a.value.split("-")[0]),{ns:f}=Ee(Nd),h=()=>{o("close")},m=p=>{p.detail.focusReason==="pointer"&&p.preventDefault()};return(p,v)=>($(),F("div",{ref_key:"contentRef",ref:r,style:Ie(s(u)),class:x(s(f).e("content")),"data-side":d.value,tabindex:"-1"},[Z(s(us),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":r.value||void 0,onReleaseRequested:h,onFocusoutPrevented:m},{default:Q(()=>[ee(p.$slots,"default")]),_:3},8,["focus-trap-el"]),p.showArrow?($(),F("span",{key:0,ref_key:"arrowRef",ref:i,style:Ie(s(c)),class:x(s(f).e("arrow"))},null,6)):te("v-if",!0)],14,_ne))}});var One=ye(Tne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/content.vue"]]),Rne=ae({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let o=0;return()=>{var a,l;const r=(a=t.default)==null?void 0:a.call(t),i=[];let u=0;function c(d){!$e(d)||d.forEach(f=>{var h;((h=(f==null?void 0:f.type)||{})==null?void 0:h.name)==="ElTourStep"&&(i.push(f),u+=1)})}return r.length&&c(No((l=r[0])==null?void 0:l.children)),o!==u&&(o=u,n("update-total",u)),i.length?i[e.current]:null}}});const iO=he({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:Ht},placement:Ad.placement,contentStyle:{type:q([Object])},mask:{type:q([Boolean,Object]),default:!0},gap:{type:q(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:q([Boolean,Object]),default:()=>({block:"center"})},type:{type:q(String)},appendTo:{type:Ei.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),uO={[Ye]:e=>zt(e),["update:current"]:e=>xe(e),close:e=>xe(e),finish:()=>!0,change:e=>xe(e)},xne=ae({name:"ElTour",inheritAttrs:!1,__name:"tour",props:iO,emits:uO,setup(e,{emit:t}){const n=e,o=t,a=fe("tour"),l=P(0),r=P(),i=Jg(n,"current",o,{passive:!0}),u=k(()=>{var O;return(O=r.value)==null?void 0:O.target}),c=k(()=>[a.b(),b.value==="primary"?a.m("primary"):""]),d=k(()=>{var O;return((O=r.value)==null?void 0:O.placement)||n.placement}),f=k(()=>{var O,A;return(A=(O=r.value)==null?void 0:O.contentStyle)!=null?A:n.contentStyle}),h=k(()=>{var O,A;return(A=(O=r.value)==null?void 0:O.mask)!=null?A:n.mask}),m=k(()=>!!h.value&&n.modelValue),p=k(()=>zt(h.value)?void 0:h.value),v=k(()=>{var O,A;return!!u.value&&((A=(O=r.value)==null?void 0:O.showArrow)!=null?A:n.showArrow)}),g=k(()=>{var O,A;return(A=(O=r.value)==null?void 0:O.scrollIntoViewOptions)!=null?A:n.scrollIntoViewOptions}),b=k(()=>{var O,A;return(A=(O=r.value)==null?void 0:O.type)!=null?A:n.type}),{nextZIndex:C}=Qr(),w=C(),y=k(()=>{var O;return(O=n.zIndex)!=null?O:w}),{mergedPosInfo:S,triggerTarget:E}=bne(u,Lt(n,"modelValue"),Lt(n,"gap"),h,g);ie(()=>n.modelValue,O=>{O||(i.value=0)});const _=()=>{n.closeOnPressEscape&&(o(Ye,!1),o("close",i.value))},T=O=>{l.value=O},N=mn();return St(Nd,{currentStep:r,current:i,total:l,showClose:Lt(n,"showClose"),closeIcon:Lt(n,"closeIcon"),mergedType:b,ns:a,slots:N,updateModelValue(O){o(Ye,O)},onClose(){o("close",i.value)},onFinish(){o("finish")},onChange(){o(ht,i.value)}}),(O,A)=>($(),F(Be,null,[Z(s(rs),{to:O.appendTo},{default:Q(()=>{var M,L;return[W("div",rt({class:c.value},O.$attrs),[Z($ne,{visible:m.value,fill:(M=p.value)==null?void 0:M.color,style:Ie((L=p.value)==null?void 0:L.style),pos:s(S),"z-index":y.value,"target-area-clickable":O.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),O.modelValue?($(),oe(One,{key:s(i),reference:s(E),placement:d.value,"show-arrow":v.value,"z-index":y.value,style:Ie(f.value),onClose:_},{default:Q(()=>[Z(s(Rne),{current:s(i),onUpdateTotal:T},{default:Q(()=>[ee(O.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):te("v-if",!0)],16)]}),_:3},8,["to"]),te(" just for IDE "),te("v-if",!0)],64))}});var Ine=ye(xne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/tour.vue"]]);const cO=he({target:{type:q([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:Ht},showArrow:{type:Boolean,default:void 0},placement:Ad.placement,mask:{type:q([Boolean,Object]),default:void 0},contentStyle:{type:q([Object])},prevButtonProps:{type:q(Object)},nextButtonProps:{type:q(Object)},scrollIntoViewOptions:{type:q([Boolean,Object]),default:void 0},type:{type:q(String)}}),dO={close:()=>!0},Mne=["aria-label"],Nne=ae({name:"ElTourStep",__name:"step",props:cO,emits:dO,setup(e,{emit:t}){const n=e,o=t,{Close:a}=G1,{t:l}=wt(),{currentStep:r,current:i,total:u,showClose:c,closeIcon:d,mergedType:f,ns:h,slots:m,updateModelValue:p,onClose:v,onFinish:g,onChange:b}=Ee(Nd);ie(n,O=>{r.value=O},{immediate:!0});const C=k(()=>{var O;return(O=n.showClose)!=null?O:c.value}),w=k(()=>{var O,A;return(A=(O=n.closeIcon)!=null?O:d.value)!=null?A:a}),y=O=>{if(!!O)return zr(O,["children","onClick"])},S=()=>{var O,A;i.value-=1,(O=n.prevButtonProps)!=null&&O.onClick&&((A=n.prevButtonProps)==null||A.onClick()),b()},E=()=>{var O;i.value>=u.value-1?_():i.value+=1,(O=n.nextButtonProps)!=null&&O.onClick&&n.nextButtonProps.onClick(),b()},_=()=>{T(),g()},T=()=>{p(!1),v(),o("close")},N=O=>{const A=O.target;if(A!=null&&A.isContentEditable)return;switch(Wt(O)){case pe.left:O.preventDefault(),i.value>0&&S();break;case pe.right:O.preventDefault(),E();break}};return ut(()=>{window.addEventListener("keydown",N)}),Bt(()=>{window.removeEventListener("keydown",N)}),(O,A)=>($(),F(Be,null,[C.value?($(),F("button",{key:0,"aria-label":s(l)("el.tour.close"),class:x(s(h).e("closebtn")),type:"button",onClick:T},[Z(s(_e),{class:x(s(h).e("close"))},{default:Q(()=>[($(),oe(at(w.value)))]),_:1},8,["class"])],10,Mne)):te("v-if",!0),W("header",{class:x([s(h).e("header"),{"show-close":s(c)}])},[ee(O.$slots,"header",{},()=>[W("span",{role:"heading",class:x(s(h).e("title"))},ge(O.title),3)])],2),W("div",{class:x(s(h).e("body"))},[ee(O.$slots,"default",{},()=>[W("span",null,ge(O.description),1)])],2),W("footer",{class:x(s(h).e("footer"))},[W("div",{class:x(s(h).b("indicators"))},[s(m).indicators?($(),oe(at(s(m).indicators),{key:0,current:s(i),total:s(u)},null,8,["current","total"])):($(!0),F(Be,{key:1},yt(s(u),(M,L)=>($(),F("span",{key:M,class:x([s(h).b("indicator"),s(h).is("active",L===s(i))])},null,2))),128))],2),W("div",{class:x(s(h).b("buttons"))},[s(i)>0?($(),oe(s(In),rt({key:0,size:"small",type:s(f)},y(O.prevButtonProps),{onClick:S}),{default:Q(()=>{var M,L;return[bt(ge((L=(M=O.prevButtonProps)==null?void 0:M.children)!=null?L:s(l)("el.tour.previous")),1)]}),_:1},16,["type"])):te("v-if",!0),s(i)<=s(u)-1?($(),oe(s(In),rt({key:1,size:"small",type:s(f)==="primary"?"default":"primary"},y(O.nextButtonProps),{onClick:E}),{default:Q(()=>{var M,L;return[bt(ge((L=(M=O.nextButtonProps)==null?void 0:M.children)!=null?L:s(i)===s(u)-1?s(l)("el.tour.finish"):s(l)("el.tour.next")),1)]}),_:1},16,["type"])):te("v-if",!0)],2)],2)],64))}});var fO=ye(Nne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/step.vue"]]);const pO=Qe(Ine,{TourStep:fO}),vO=sn(fO),hO=he({container:{type:q([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:q(String),default:"default"},direction:{type:q(String),default:"vertical"},selectScrollTop:Boolean}),mO={change:e=>He(e),click:(e,t)=>e instanceof MouseEvent&&(He(t)||_t(t))},gO=Symbol("anchor"),Ane=ae({name:"ElAnchor",__name:"anchor",props:hO,emits:mO,setup(e,{expose:t,emit:n}){const o=e,a=n,l=mn(),r=P(""),i=P({}),u=P(null),c=P(null),d=P(),f={};let h=!1,m=0;const p=fe("anchor"),v=k(()=>[p.b(),o.type==="underline"?p.m("underline"):"",p.m(o.direction)]),g=M=>{f[M.href]=M.el},b=M=>{delete f[M]},C=M=>{r.value!==M&&(r.value=M,a(ht,M))};let w=null,y="";const S=M=>{if(!d.value)return;const L=tc(M);if(!L)return;if(w){if(y===M)return;w()}y=M,h=!0;const H=B1(L,d.value),K=ef(L,H),Y=H.scrollHeight-H.clientHeight,I=Math.min(K-o.offset,Y);w=UF(d.value,m,I,o.duration,()=>{setTimeout(()=>{h=!1,y=""},20)})},E=M=>{M&&(C(M),S(M))},_=(M,L)=>{a("click",M,L),E(L)},T=cz(()=>{d.value&&(m=F1(d.value));const M=N();h||_t(M)||C(M)}),N=()=>{if(!d.value)return;const M=F1(d.value),L=[];for(const H of Object.keys(f)){const K=tc(H);if(!K)continue;const Y=B1(K,d.value),I=ef(K,Y);L.push({top:I-o.offset-o.bound,href:H})}L.sort((H,K)=>H.top-K.top);for(let H=0;H<L.length;H++){const K=L[H],Y=L[H+1];if(H===0&&M===0)return o.selectScrollTop?K.href:"";if(K.top<=M&&(!Y||Y.top>M))return K.href}},O=()=>{const M=tc(o.container);!M||si(M)?d.value=window:d.value=M};Mt(d,"scroll",T);const A=()=>{ke(()=>{if(!u.value||!c.value||!r.value){i.value={};return}const M=f[r.value];if(!M){i.value={};return}const L=u.value.getBoundingClientRect(),H=c.value.getBoundingClientRect(),K=M.getBoundingClientRect();if(o.direction==="horizontal"){const Y=K.left-L.left;i.value={left:`${Y}px`,width:`${K.width}px`,opacity:1}}else{const Y=K.top-L.top+(K.height-H.height)/2;i.value={top:`${Y}px`,opacity:1}}})};return ie(r,A),ie(()=>{var M;return(M=l.default)==null?void 0:M.call(l)},A),ut(()=>{O();const M=decodeURIComponent(window.location.hash);tc(M)?E(M):T()}),ie(()=>o.container,()=>{O()}),St(gO,{ns:p,direction:o.direction,currentAnchor:r,addLink:g,removeLink:b,handleClick:_}),t({scrollTo:E}),(M,L)=>($(),F("div",{ref_key:"anchorRef",ref:u,class:x(v.value)},[M.marker?($(),F("div",{key:0,ref_key:"markerRef",ref:c,class:x(s(p).e("marker")),style:Ie(i.value)},null,6)):te("v-if",!0),W("div",{class:x(s(p).e("list"))},[ee(M.$slots,"default")],2)],2))}});var Pne=ye(Ane,[["__file","/home/runner/work/element-plus/element-plus/packages/components/anchor/src/anchor.vue"]]);const Lne=he({title:String,href:String}),Dne=["href"],Bne=ae({name:"ElAnchorLink",__name:"anchor-link",props:Lne,setup(e){const t=e,n=P(null),{ns:o,direction:a,currentAnchor:l,addLink:r,removeLink:i,handleClick:u}=Ee(gO),c=k(()=>[o.e("link"),o.is("active",l.value===t.href)]),d=f=>{u(f,t.href)};return ie(()=>t.href,(f,h)=>{ke(()=>{h&&i(h),f&&r({href:f,el:n.value})})}),ut(()=>{const{href:f}=t;f&&r({href:f,el:n.value})}),Bt(()=>{const{href:f}=t;f&&i(f)}),(f,h)=>($(),F("div",{class:x(s(o).e("item"))},[W("a",{ref_key:"linkRef",ref:n,class:x(c.value),href:f.href,onClick:d},[ee(f.$slots,"default",{},()=>[bt(ge(f.title),1)])],10,Dne),f.$slots["sub-link"]&&s(a)==="vertical"?($(),F("div",{key:0,class:x(s(o).e("list"))},[ee(f.$slots,"sub-link")],2)):te("v-if",!0)],2))}});var bO=ye(Bne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/anchor/src/anchor-link.vue"]]);const yO=Qe(Pne,{AnchorLink:bO}),wO=sn(bO),mg={label:"label",value:"value",disabled:"disabled"},CO=he({direction:{type:q(String),default:"horizontal"},options:{type:q(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:q(Object),default:()=>mg},block:Boolean,size:Tn,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},id:String,name:String,...Gn(["ariaLabel"])}),SO={[Ye]:e=>He(e)||xe(e)||zt(e),[ht]:e=>He(e)||xe(e)||zt(e)},Fne=["id","aria-label","aria-labelledby"],Vne=["name","disabled","checked","onChange"],zne=ae({name:"ElSegmented",__name:"segmented",props:CO,emits:SO,setup(e,{emit:t}){const n=e,o=t,a=fe("segmented"),l=Vn(),r=wn(),i=on(),{formItem:u}=Pn(),{inputId:c,isLabeledByFormItem:d}=Eo(n,{formItemContext:u}),f=P(null),h=SR(),m=Pt({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),p=(M,L)=>{const H=b(L);o(Ye,H),o(ht,H),M.target.checked=H===n.modelValue},v=k(()=>({...mg,...n.props})),g=M=>M,b=M=>Rt(M)?M[v.value.value]:M,C=M=>Rt(M)?M[v.value.label]:M,w=M=>!!(i.value||(Rt(M)?M[v.value.disabled]:!1)),y=M=>n.modelValue===b(M),S=M=>n.options.find(L=>b(L)===M),E=M=>[a.e("item"),a.is("selected",y(M)),a.is("disabled",w(M))],_=()=>{if(!f.value)return;const M=f.value.querySelector(".is-selected"),L=f.value.querySelector(".is-selected input");if(!M||!L){m.width=0,m.height=0,m.translateX=0,m.translateY=0,m.focusVisible=!1;return}m.isInit=!0,n.direction==="vertical"?(m.height=M.offsetHeight,m.translateY=M.offsetTop):(m.width=M.offsetWidth,m.translateX=M.offsetLeft);try{m.focusVisible=L.matches(":focus-visible")}catch(H){}},T=k(()=>[a.b(),a.m(r.value),a.is("block",n.block)]),N=k(()=>({width:n.direction==="vertical"?"100%":`${m.width}px`,height:n.direction==="vertical"?`${m.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${m.translateY}px)`:`translateX(${m.translateX}px)`,display:m.isInit?"block":"none"})),O=k(()=>[a.e("item-selected"),a.is("disabled",w(S(n.modelValue))),a.is("focus-visible",m.focusVisible)]),A=k(()=>n.name||l.value);return Qt(f,_),ie(h,_),ie(()=>n.modelValue,()=>{var M;_(),n.validateEvent&&((M=u==null?void 0:u.validate)==null||M.call(u,"change").catch(L=>void 0))},{flush:"post"}),(M,L)=>M.options.length?($(),F("div",{key:0,id:s(c),ref_key:"segmentedRef",ref:f,class:x(T.value),role:"radiogroup","aria-label":s(d)?void 0:M.ariaLabel||"segmented","aria-labelledby":s(d)?s(u).labelId:void 0},[W("div",{class:x([s(a).e("group"),s(a).m(M.direction)])},[W("div",{style:Ie(N.value),class:x(O.value)},null,6),($(!0),F(Be,null,yt(M.options,(H,K)=>($(),F("label",{key:K,class:x(E(H))},[W("input",{class:x(s(a).e("item-input")),type:"radio",name:A.value,disabled:w(H),checked:y(H),onChange:Y=>p(Y,H)},null,42,Vne),W("div",{class:x(s(a).e("item-label"))},[ee(M.$slots,"default",{item:g(H)},()=>[bt(ge(C(H)),1)])],2)],2))),128))],2)],10,Fne)):te("v-if",!0)}});var Hne=ye(zne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/segmented/src/segmented.vue"]]);const kO=Qe(Hne),Wne=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value||"").toLowerCase().includes(n)},Kne=(e,t,n)=>{const{selectionEnd:o}=e;if(o===null)return;const a=e.value,l=An(t);let r=-1,i;for(let u=o-1;u>=0;--u){const c=a[u];if(c===n||c===`
67
+ `}),u=k(()=>2*Math.PI*r.value),c=k(()=>n.type==="dashboard"?.75:1),d=k(()=>`${-1*u.value*(1-c.value)/2}px`),f=k(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:d.value})),h=k(()=>({strokeDasharray:`${u.value*c.value*(n.percentage/100)}px, ${u.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),m=k(()=>{let w;return n.color?w=C(n.percentage):w=t[n.status]||t.default,w}),p=k(()=>n.status==="warning"?ac:n.type==="line"?n.status==="success"?$p:cl:n.status==="success"?ii:Uo),v=k(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),g=k(()=>n.format(n.percentage));function b(w){const y=100/w.length;return w.map((E,_)=>He(E)?{color:E,percentage:(_+1)*y}:E).sort((E,_)=>E.percentage-_.percentage)}const C=w=>{var y;const{color:S}=n;if(lt(S))return S(w);if(He(S))return S;{const E=b(S);for(const _ of E)if(_.percentage>w)return _.color;return(y=E[E.length-1])==null?void 0:y.color}};return(w,y)=>($(),F("div",{class:x([s(o).b(),s(o).m(w.type),s(o).is(w.status),{[s(o).m("without-text")]:!w.showText,[s(o).m("text-inside")]:w.textInside}]),role:"progressbar","aria-valuenow":w.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[w.type==="line"?($(),F("div",{key:0,class:x(s(o).b("bar"))},[W("div",{class:x(s(o).be("bar","outer")),style:Ie({height:`${w.strokeWidth}px`})},[W("div",{class:x([s(o).be("bar","inner"),{[s(o).bem("bar","inner","indeterminate")]:w.indeterminate},{[s(o).bem("bar","inner","striped")]:w.striped},{[s(o).bem("bar","inner","striped-flow")]:w.stripedFlow}]),style:Ie(a.value)},[(w.showText||w.$slots.default)&&w.textInside?($(),F("div",{key:0,class:x(s(o).be("bar","innerText"))},[ee(w.$slots,"default",{percentage:w.percentage},()=>[W("span",null,ge(g.value),1)])],2)):te("v-if",!0)],6)],6)],2)):($(),F("div",{key:1,class:x(s(o).b("circle")),style:Ie({height:`${w.width}px`,width:`${w.width}px`})},[($(),F("svg",oZ,[W("path",{class:x(s(o).be("circle","track")),d:i.value,stroke:`var(${s(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":w.strokeLinecap,"stroke-width":l.value,fill:"none",style:Ie(f.value)},null,14,aZ),W("path",{class:x(s(o).be("circle","path")),d:i.value,stroke:m.value,fill:"none",opacity:w.percentage?1:0,"stroke-linecap":w.strokeLinecap,"stroke-width":l.value,style:Ie(h.value)},null,14,lZ)]))],6)),(w.showText||w.$slots.default)&&!w.textInside?($(),F("div",{key:2,class:x(s(o).e("text")),style:Ie({fontSize:`${v.value}px`})},[ee(w.$slots,"default",{percentage:w.percentage},()=>[w.status?($(),oe(s(_e),{key:1},{default:Q(()=>[($(),oe(at(p.value)))]),_:1})):($(),F("span",rZ,ge(g.value),1))])],6)):te("v-if",!0)],10,nZ))}});var iZ=ye(sZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const cm=Qe(iZ),w$=he({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:q([Array,Object]),default:()=>dn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:q([Array,Object]),default:()=>[oc,oc,oc]},voidIcon:{type:Ht,default:()=>ZV},disabledVoidIcon:{type:Ht,default:()=>oc},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:q(Array),default:()=>dn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Tn,clearable:Boolean,...Gn(["ariaLabel"])}),C$={[ht]:e=>xe(e),[Ye]:e=>xe(e)},uZ=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],cZ=["onMousemove","onClick"],dZ=ae({name:"ElRate",__name:"rate",props:w$,emits:C$,setup(e,{expose:t,emit:n}){function o(R,D){const B=V=>Rt(V),z=Object.keys(D).map(V=>+V).filter(V=>{const G=D[V];return(B(G)?G.excluded:!1)?R<V:R<=V}).sort((V,G)=>V-G),U=D[z[0]];return B(U)&&U.value||U}const a=e,l=n,r=Ee(ya,void 0),i=wn(),u=fe("rate"),{inputId:c,isLabeledByFormItem:d}=Eo(a,{formItemContext:r}),f=P(a.modelValue),h=P(-1),m=P(!0),p=P([]),v=k(()=>p.value.map(R=>R.$el.clientWidth)),g=k(()=>[u.b(),u.m(i.value)]),b=on(),C=k(()=>u.cssVarBlock({"void-color":a.voidColor,"disabled-void-color":a.disabledVoidColor,"fill-color":E.value})),w=k(()=>{let R="";return a.showScore?R=a.scoreTemplate.replace(/\{\s*value\s*\}/,b.value?`${a.modelValue}`:`${f.value}`):a.showText&&(R=a.texts[Math.ceil(f.value)-1]),R}),y=k(()=>a.modelValue*100-Math.floor(a.modelValue)*100),S=k(()=>$e(a.colors)?{[a.lowThreshold]:a.colors[0],[a.highThreshold]:{value:a.colors[1],excluded:!0},[a.max]:a.colors[2]}:a.colors),E=k(()=>{const R=o(f.value,S.value);return Rt(R)?"":R}),_=k(()=>{let R="";return b.value?R=`${y.value}%`:a.allowHalf&&(R="50%"),{color:E.value,width:R}}),T=k(()=>{let R=$e(a.icons)?[...a.icons]:{...a.icons};return R=Cl(R),$e(R)?{[a.lowThreshold]:R[0],[a.highThreshold]:{value:R[1],excluded:!0},[a.max]:R[2]}:R}),N=k(()=>o(a.modelValue,T.value)),O=k(()=>b.value?He(a.disabledVoidIcon)?a.disabledVoidIcon:Cl(a.disabledVoidIcon):He(a.voidIcon)?a.voidIcon:Cl(a.voidIcon)),A=k(()=>o(f.value,T.value));function M(R){const D=b.value&&y.value>0&&R-1<a.modelValue&&R>a.modelValue,B=a.allowHalf&&m.value&&R-.5<=f.value&&R>f.value;return D||B}function L(R){a.clearable&&R===a.modelValue&&(R=0),l(Ye,R),a.modelValue!==R&&l(ht,R)}function H(R){b.value||(a.allowHalf&&m.value?L(f.value):L(R))}function K(R){if(b.value)return;const D=Wt(R),B=a.allowHalf?.5:1;let z=f.value;switch(D){case pe.up:case pe.right:z+=B;break;case pe.left:case pe.down:z-=B;break}if(z=Zs(z,0,a.max),z!==f.value)return R.stopPropagation(),R.preventDefault(),l(Ye,z),l(ht,z),z}function Y(R,D){b.value||(a.allowHalf&&D?(m.value=D.offsetX*2<=v.value[R-1],f.value=m.value?R-.5:R):f.value=R,h.value=R)}function I(){b.value||(a.allowHalf&&(m.value=a.modelValue!==Math.floor(a.modelValue)),f.value=a.modelValue,h.value=-1)}return ie(()=>a.modelValue,R=>{f.value=R,m.value=a.modelValue!==Math.floor(a.modelValue)}),a.modelValue||l(Ye,0),t({setCurrentValue:Y,resetCurrentValue:I}),(R,D)=>{var B;return $(),F("div",{id:s(c),class:x([g.value,s(u).is("disabled",s(b))]),role:"slider","aria-label":s(d)?void 0:R.ariaLabel||"rating","aria-labelledby":s(d)?(B=s(r))==null?void 0:B.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":w.value||void 0,"aria-valuemin":"0","aria-valuemax":R.max,tabindex:"0",style:Ie(C.value),onKeydown:K},[($(!0),F(Be,null,yt(R.max,(z,U)=>($(),F("span",{key:U,class:x(s(u).e("item")),onMousemove:V=>Y(z,V),onMouseleave:I,onClick:V=>H(z)},[Z(s(_e),{ref_for:!0,ref_key:"iconRefs",ref:p,class:x([s(u).e("icon"),{hover:h.value===z},s(u).is("active",z<=f.value),s(u).is("focus-visible",z===Math.ceil(f.value||1))])},{default:Q(()=>[tt(($(),oe(at(A.value),null,null,512)),[[xt,!M(z)&&z<=f.value]]),tt(($(),oe(at(O.value),null,null,512)),[[xt,!M(z)&&z>f.value]]),tt(($(),oe(at(O.value),{class:x([s(u).em("decimal","box")])},null,8,["class"])),[[xt,M(z)]]),tt(Z(s(_e),{style:Ie(_.value),class:x([s(u).e("icon"),s(u).e("decimal")])},{default:Q(()=>[($(),oe(at(N.value)))]),_:1},8,["style","class"]),[[xt,M(z)]])]),_:2},1032,["class"])],42,cZ))),128)),R.showText||R.showScore?($(),F("span",{key:0,class:x(s(u).e("text")),style:Ie({color:R.textColor})},ge(w.value),7)):te("v-if",!0)],46,uZ)}}});var fZ=ye(dZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const S$=Qe(fZ),Wl={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},dm={[Wl.primary]:ui,[Wl.success]:uV,[Wl.warning]:ac,[Wl.error]:_p,[Wl.info]:ui},k$=he({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}}),pZ=ae({name:"ElResult",__name:"result",props:k$,setup(e){const t=e,n=fe("result"),o=k(()=>{const a=t.icon,l=a&&Wl[a]?Wl[a]:"icon-info",r=dm[l]||dm["icon-info"];return{class:l,component:r}});return(a,l)=>($(),F("div",{class:x(s(n).b())},[W("div",{class:x(s(n).e("icon"))},[ee(a.$slots,"icon",{},()=>[o.value.component?($(),oe(at(o.value.component),{key:0,class:x(o.value.class)},null,8,["class"])):te("v-if",!0)])],2),a.title||a.$slots.title?($(),F("div",{key:0,class:x(s(n).e("title"))},[ee(a.$slots,"title",{},()=>[W("p",null,ge(a.title),1)])],2)):te("v-if",!0),a.subTitle||a.$slots["sub-title"]?($(),F("div",{key:1,class:x(s(n).e("subtitle"))},[ee(a.$slots,"sub-title",{},()=>[W("p",null,ge(a.subTitle),1)])],2)):te("v-if",!0),a.$slots.extra?($(),F("div",{key:2,class:x(s(n).e("extra"))},[ee(a.$slots,"extra")],2)):te("v-if",!0)],2))}});var vZ=ye(pZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const E$=Qe(vZ);var $$=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function hZ(e,t){return!!(e===t||$$(e)&&$$(t))}function mZ(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!hZ(e[n],t[n]))return!1;return!0}function gZ(e,t){t===void 0&&(t=mZ);var n=null;function o(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];if(n&&n.lastThis===this&&t(a,n.lastArgs))return n.lastResult;var r=e.apply(this,a);return n={lastResult:r,lastArgs:a,lastThis:this},r}return o.clear=function(){n=null},o}const _$=()=>{const t=ct().proxy.$props;return k(()=>{const n=(o,a,l)=>({});return t.perfMode?Gs(n):gZ(n)})},fm=50,fd="itemRendered",pd="scroll",gs="forward",vd="backward",ta="auto",hd="smart",ji="start",ja="center",Yi="end",bs="horizontal",T$="vertical",bZ="ltr",ys="rtl",Ui="negative",pm="positive-ascending",vm="positive-descending",yZ={[bs]:"left",[T$]:"top"},wZ=20,CZ=({atEndEdge:e,atStartEdge:t,layout:n},o)=>{let a,l=0;const r=u=>u<0&&t.value||u>0&&e.value;return{hasReachedEdge:r,onWheel:u=>{sl(a);let{deltaX:c,deltaY:d}=u;u.shiftKey&&d!==0&&(c=d,d=0);const f=n.value===bs?c:d;r(f)||(l+=f,!Qd()&&f!==0&&u.preventDefault(),a=Ma(()=>{o(l),l=0}))}}};var O$=CZ;const hm=ca({type:q([Number,Function]),required:!0}),mm=ca({type:Number}),gm=ca({type:Number,default:2}),SZ=ca({type:String,values:["ltr","rtl"],default:"ltr"}),bm=ca({type:Number,default:0}),md=ca({type:Number,required:!0}),R$=ca({type:String,values:["horizontal","vertical"],default:T$}),ym=he({className:{type:String,default:""},containerElement:{type:q([String,Object]),default:"div"},data:{type:q(Array),default:()=>dn([])},direction:SZ,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},innerProps:{type:q(Object),default:()=>({})},style:{type:q([Object,String,Array])},useIsScrolling:Boolean,width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),wm=he({cache:gm,estimatedItemSize:mm,layout:R$,initScrollOffset:bm,total:md,itemSize:hm,...ym}),Cm={type:Number,default:6},x$={type:Number,default:0},I$={type:Number,default:2},Kl=he({columnCache:gm,columnWidth:hm,estimatedColumnWidth:mm,estimatedRowHeight:mm,initScrollLeft:bm,initScrollTop:bm,itemKey:{type:q(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:gm,rowHeight:hm,totalColumn:md,totalRow:md,hScrollbarSize:Cm,vScrollbarSize:Cm,scrollbarStartGap:x$,scrollbarEndGap:I$,role:String,...ym}),Sm=he({alwaysOn:Boolean,class:String,layout:R$,total:md,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:Cm,startGap:x$,endGap:I$,visible:Boolean}),br=(e,t)=>e<t?gs:vd,Gi=e=>e===bZ||e===ys||e===bs,M$=e=>e===ys;let ws=null;function gd(e=!1){if(ws===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const o=document.createElement("div"),a=o.style;return a.width="100px",a.height="100px",t.appendChild(o),document.body.appendChild(t),t.scrollLeft>0?ws=vm:(t.scrollLeft=1,t.scrollLeft===0?ws=Ui:ws=pm),document.body.removeChild(t),ws}return ws}function kZ({move:e,size:t,bar:n},o){const a={},l=`translate${n.axis}(${e}px)`;return a[n.size]=t,a.transform=l,o==="horizontal"?a.height="100%":a.width="100%",a}const EZ=ae({name:"ElVirtualScrollBar",props:Sm,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=k(()=>e.startGap+e.endGap),o=fe("virtual-scrollbar"),a=fe("scrollbar"),l=P(),r=P();let i=null,u=null;const c=Pt({isDragging:!1,traveled:0}),d=k(()=>mv[e.layout]),f=k(()=>e.clientSize-s(n)),h=k(()=>({position:"absolute",width:`${bs===e.layout?f.value:e.scrollbarSize}px`,height:`${bs===e.layout?e.scrollbarSize:f.value}px`,[yZ[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),m=k(()=>{const E=e.ratio;if(E>=100)return Number.POSITIVE_INFINITY;if(E>=50)return E*f.value/100;const _=f.value/3;return Math.floor(Math.min(Math.max(E*f.value/100,wZ),_))}),p=k(()=>{if(!Number.isFinite(m.value))return{display:"none"};const E=`${m.value}px`;return kZ({bar:d.value,size:E,move:c.traveled},e.layout)}),v=k(()=>Math.ceil(e.clientSize-m.value-s(n))),g=()=>{window.addEventListener("mousemove",y),window.addEventListener("mouseup",w);const E=s(r);!E||(u=document.onselectstart,document.onselectstart=()=>!1,E.addEventListener("touchmove",y,{passive:!0}),E.addEventListener("touchend",w))},b=()=>{window.removeEventListener("mousemove",y),window.removeEventListener("mouseup",w),document.onselectstart=u,u=null;const E=s(r);!E||(E.removeEventListener("touchmove",y),E.removeEventListener("touchend",w))},C=E=>{E.stopImmediatePropagation(),!(E.ctrlKey||[1,2].includes(E.button))&&(c.isDragging=!0,c[d.value.axis]=E.currentTarget[d.value.offset]-(E[d.value.client]-E.currentTarget.getBoundingClientRect()[d.value.direction]),t("start-move"),g())},w=()=>{c.isDragging=!1,c[d.value.axis]=0,t("stop-move"),b()},y=E=>{const{isDragging:_}=c;if(!_||!r.value||!l.value)return;const T=c[d.value.axis];if(!T)return;sl(i);const N=(l.value.getBoundingClientRect()[d.value.direction]-E[d.value.client])*-1,O=r.value[d.value.offset]-T,A=N-O;i=Ma(()=>{c.traveled=Math.max(0,Math.min(A,v.value)),t("scroll",A,v.value)})},S=E=>{const _=Math.abs(E.target.getBoundingClientRect()[d.value.direction]-E[d.value.client]),T=r.value[d.value.offset]/2,N=_-T;c.traveled=Math.max(0,Math.min(N,v.value)),t("scroll",N,v.value)};return ie(()=>e.scrollFrom,E=>{c.isDragging||(c.traveled=Math.ceil(E*v.value))}),Bt(()=>{b()}),()=>Le("div",{role:"presentation",ref:l,class:[o.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:h.value,onMousedown:je(S,["stop","prevent"]),onTouchstartPrevent:C},Le("div",{ref:r,class:a.e("thumb"),style:p.value,onMousedown:C},[]))}});var km=EZ;const $Z=({name:e,getOffset:t,getItemSize:n,getItemOffset:o,getEstimatedTotalSize:a,getStartIndexForOffset:l,getStopIndexForStartIndex:r,initCache:i,clearCache:u,validateProps:c})=>ae({name:e!=null?e:"ElVirtualList",props:wm,emits:[fd,pd],setup(d,{emit:f,expose:h}){c(d);const m=ct(),p=fe("vl"),v=P(i(d,m)),g=_$(),b=P(),C=P(),w=P(),y=P({isScrolling:!1,scrollDir:"forward",scrollOffset:xe(d.initScrollOffset)?d.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:d.scrollbarAlwaysOn}),S=k(()=>{const{total:V,cache:G}=d,{isScrolling:X,scrollDir:le,scrollOffset:se}=s(y);if(V===0)return[0,0,0,0];const de=l(d,se,s(v)),ce=r(d,de,se,s(v)),ne=!X||le===vd?Math.max(1,G):1,j=!X||le===gs?Math.max(1,G):1;return[Math.max(0,de-ne),Math.max(0,Math.min(V-1,ce+j)),de,ce]}),E=k(()=>a(d,s(v))),_=k(()=>Gi(d.layout)),T=k(()=>[{position:"relative",[`overflow-${_.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:d.direction,height:xe(d.height)?`${d.height}px`:d.height,width:xe(d.width)?`${d.width}px`:d.width},d.style]),N=k(()=>{const V=s(E),G=s(_);return{height:G?"100%":`${V}px`,pointerEvents:s(y).isScrolling?"none":void 0,width:G?`${V}px`:"100%",margin:0,boxSizing:"border-box"}}),O=k(()=>_.value?d.width:d.height),{onWheel:A}=O$({atStartEdge:k(()=>y.value.scrollOffset<=0),atEndEdge:k(()=>y.value.scrollOffset>=E.value),layout:k(()=>d.layout)},V=>{var G,X;(X=(G=w.value).onMouseUp)==null||X.call(G),I(Math.min(y.value.scrollOffset+V,E.value-O.value))});Mt(b,"wheel",A,{passive:!1});const M=()=>{const{total:V}=d;if(V>0){const[se,de,ce,ne]=s(S);f(fd,se,de,ce,ne)}const{scrollDir:G,scrollOffset:X,updateRequested:le}=s(y);f(pd,G,X,le)},L=V=>{const{clientHeight:G,scrollHeight:X,scrollTop:le}=V.currentTarget,se=s(y);if(se.scrollOffset===le)return;const de=Math.max(0,Math.min(le,X-G));y.value={...se,isScrolling:!0,scrollDir:br(se.scrollOffset,de),scrollOffset:de,updateRequested:!1},ke(B)},H=V=>{const{clientWidth:G,scrollLeft:X,scrollWidth:le}=V.currentTarget,se=s(y);if(se.scrollOffset===X)return;const{direction:de}=d;let ce=X;if(de===ys)switch(gd()){case Ui:{ce=-X;break}case vm:{ce=le-G-X;break}}ce=Math.max(0,Math.min(ce,le-G)),y.value={...se,isScrolling:!0,scrollDir:br(se.scrollOffset,ce),scrollOffset:ce,updateRequested:!1},ke(B)},K=V=>{s(_)?H(V):L(V),M()},Y=(V,G)=>{const X=(E.value-O.value)/G*V;I(Math.min(E.value-O.value,X))},I=V=>{V=Math.max(V,0),V!==s(y).scrollOffset&&(y.value={...s(y),scrollOffset:V,scrollDir:br(s(y).scrollOffset,V),updateRequested:!0},ke(B))},R=(V,G=ta)=>{const{scrollOffset:X}=s(y);V=Math.max(0,Math.min(V,d.total-1)),I(t(d,V,G,X,s(v)))},D=V=>{const{direction:G,itemSize:X,layout:le}=d,se=g.value(u&&X,u&&le,u&&G);let de;if(Bn(se,String(V)))de=se[V];else{const ce=o(d,V,s(v)),ne=n(d,V,s(v)),j=s(_),re=G===ys,Se=j?ce:0;se[V]=de={position:"absolute",left:re?void 0:`${Se}px`,right:re?`${Se}px`:void 0,top:j?0:`${ce}px`,height:j?"100%":`${ne}px`,width:j?`${ne}px`:"100%"}}return de},B=()=>{y.value.isScrolling=!1,ke(()=>{g.value(-1,null,null)})},z=()=>{const V=b.value;V&&(V.scrollTop=0)};ut(()=>{if(!Tt)return;const{initScrollOffset:V}=d,G=s(b);xe(V)&&G&&(s(_)?G.scrollLeft=V:G.scrollTop=V),M()}),qa(()=>{const{direction:V,layout:G}=d,{scrollOffset:X,updateRequested:le}=s(y),se=s(b);if(le&&se)if(G===bs)if(V===ys)switch(gd()){case Ui:{se.scrollLeft=-X;break}case pm:{se.scrollLeft=X;break}default:{const{clientWidth:de,scrollWidth:ce}=se;se.scrollLeft=ce-de-X;break}}else se.scrollLeft=X;else se.scrollTop=X}),Kd(()=>{s(b).scrollTop=s(y).scrollOffset});const U={ns:p,clientSize:O,estimatedTotalSize:E,windowStyle:T,windowRef:b,innerRef:C,innerStyle:N,itemsToRender:S,scrollbarRef:w,states:y,getItemStyle:D,onScroll:K,onScrollbarScroll:Y,onWheel:A,scrollTo:I,scrollToItem:R,resetScrollTop:z};return h({windowRef:b,innerRef:C,getItemStyleCache:g,scrollTo:I,scrollToItem:R,resetScrollTop:z,states:y}),U},render(d){var f;const{$slots:h,className:m,clientSize:p,containerElement:v,data:g,getItemStyle:b,innerElement:C,itemsToRender:w,innerStyle:y,layout:S,total:E,onScroll:_,onScrollbarScroll:T,states:N,useIsScrolling:O,windowStyle:A,ns:M}=d,[L,H]=w,K=at(v),Y=at(C),I=[];if(E>0)for(let z=L;z<=H;z++)I.push(Le(Be,{key:z},(f=h.default)==null?void 0:f.call(h,{data:g,index:z,isScrolling:O?N.isScrolling:void 0,style:b(z)})));const R=[Le(Y,rt(d.innerProps,{style:y,ref:"innerRef"}),He(Y)?I:{default:()=>I})],D=Le(km,{ref:"scrollbarRef",clientSize:p,layout:S,onScroll:T,ratio:p*100/this.estimatedTotalSize,scrollFrom:N.scrollOffset/(this.estimatedTotalSize-p),total:E,alwaysOn:N.scrollbarAlwaysOn}),B=Le(K,{class:[M.e("window"),m],style:A,onScroll:_,ref:"windowRef",key:0},He(K)?[R]:{default:()=>[R]});return Le("div",{key:0,class:[M.e("wrapper"),N.scrollbarAlwaysOn?"always-on":""]},[B,D])}});var N$=$Z;const _Z=N$({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:o,width:a},l,r,i)=>{const u=Gi(o)?a:e,c=Math.max(0,t*n-u),d=Math.min(c,l*n),f=Math.max(0,(l+1)*n-u);switch(r===hd&&(i>=f-u&&i<=d+u?r=ta:r=ja),r){case ji:return d;case Yi:return f;case ja:{const h=Math.round(f+(d-f)/2);return h<Math.ceil(u/2)?0:h>c+Math.floor(u/2)?c:h}case ta:default:return i>=f&&i<=d?i:i<f?f:d}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:o,width:a},l,r)=>{const i=l*n,u=Gi(o)?a:e,c=Math.ceil((u+r-i)/n);return Math.max(0,Math.min(t-1,l+c-1))},initCache(){},clearCache:!0,validateProps(){}});var Em=_Z;const Cs=(e,t,n)=>{const{itemSize:o}=e,{items:a,lastVisitedIndex:l}=n;if(t>l){let r=0;if(l>=0){const i=a[l];r=i.offset+i.size}for(let i=l+1;i<=t;i++){const u=o(i);a[i]={offset:r,size:u},r+=u}n.lastVisitedIndex=t}return a[t]},TZ=(e,t,n)=>{const{items:o,lastVisitedIndex:a}=t;return(a>0?o[a].offset:0)>=n?A$(e,t,0,a,n):OZ(e,t,Math.max(0,a),n)},A$=(e,t,n,o,a)=>{for(;n<=o;){const l=n+Math.floor((o-n)/2),r=Cs(e,l,t).offset;if(r===a)return l;r<a?n=l+1:r>a&&(o=l-1)}return Math.max(0,n-1)},OZ=(e,t,n,o)=>{const{total:a}=e;let l=1;for(;n<a&&Cs(e,n,t).offset<o;)n+=l,l*=2;return A$(e,t,Math.floor(n/2),Math.min(n,a-1),o)},P$=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:o})=>{let a=0;if(o>=e&&(o=e-1),o>=0){const i=t[o];a=i.offset+i.size}const r=(e-o-1)*n;return a+r},RZ=N$({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>Cs(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:P$,getOffset:(e,t,n,o,a)=>{const{height:l,layout:r,width:i}=e,u=Gi(r)?i:l,c=Cs(e,t,a),d=P$(e,a),f=Math.max(0,Math.min(d-u,c.offset)),h=Math.max(0,c.offset-u+c.size);switch(n===hd&&(o>=h-u&&o<=f+u?n=ta:n=ja),n){case ji:return f;case Yi:return h;case ja:return Math.round(h+(f-h)/2);case ta:default:return o>=h&&o<=f?o:o<h?h:f}},getStartIndexForOffset:(e,t,n)=>TZ(e,n,t),getStopIndexForStartIndex:(e,t,n,o)=>{const{height:a,total:l,layout:r,width:i}=e,u=Gi(r)?i:a,c=Cs(e,t,o),d=n+u;let f=c.offset+c.size,h=t;for(;h<l-1&&f<d;)h++,f+=Cs(e,h,o).size;return h},initCache({estimatedItemSize:e=fm},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(o,a=!0)=>{var l,r;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,o-1),(l=t.exposed)==null||l.getItemStyleCache(-1),a&&((r=t.proxy)==null||r.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}});var L$=RZ;const xZ=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:o},a)=>{let l=null,r=0,i=0;const u=(d,f)=>{const h=d<0&&t.value||d>0&&e.value,m=f<0&&o.value||f>0&&n.value;return h||m};return{hasReachedEdge:u,onWheel:d=>{sl(l);let f=d.deltaX,h=d.deltaY;Math.abs(f)>Math.abs(h)?h=0:f=0,d.shiftKey&&h!==0&&(f=h,h=0),!u(f,h)&&(r+=f,i+=h,d.preventDefault(),l=Ma(()=>{a(r,i),r=0,i=0}))}}},IZ=(e,t,n,o,a,l,r)=>{const i=P(0),u=P(0);let c,d=0,f=0;const h=p=>{sl(c),i.value=p.touches[0].clientX,u.value=p.touches[0].clientY,d=0,f=0},m=p=>{p.preventDefault(),sl(c),d+=i.value-p.touches[0].clientX,f+=u.value-p.touches[0].clientY,i.value=p.touches[0].clientX,u.value=p.touches[0].clientY,c=Ma(()=>{const v=o.value-s(l),g=a.value-s(r),b=Math.min(t.value.scrollLeft+d,v),C=Math.min(t.value.scrollTop+f,g);n({scrollLeft:b,scrollTop:C}),d=0,f=0})};return Mt(e,"touchstart",h,{passive:!0}),Mt(e,"touchmove",m,{passive:!1}),{touchStartX:i,touchStartY:u,handleTouchStart:h,handleTouchMove:m}},MZ=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:o,getColumnStopIndexForStartIndex:a,getEstimatedTotalHeight:l,getEstimatedTotalWidth:r,getColumnOffset:i,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:f,initCache:h,injectToInstance:m,validateProps:p})=>ae({name:e!=null?e:"ElVirtualList",props:Kl,emits:[fd,pd],setup(v,{emit:g,expose:b,slots:C}){const w=fe("vl");p(v);const y=ct(),S=P(h(v,y));m==null||m(y,S);const E=P(),_=P(),T=P(),N=P(),O=P({isScrolling:!1,scrollLeft:xe(v.initScrollLeft)?v.initScrollLeft:0,scrollTop:xe(v.initScrollTop)?v.initScrollTop:0,updateRequested:!1,xAxisScrollDir:gs,yAxisScrollDir:gs}),A=_$(),M=k(()=>Number.parseInt(`${v.height}`,10)),L=k(()=>Number.parseInt(`${v.width}`,10)),H=k(()=>{const{totalColumn:Ae,totalRow:Pe,columnCache:Ge}=v,{isScrolling:ot,xAxisScrollDir:pt,scrollLeft:Ct}=s(O);if(Ae===0||Pe===0)return[0,0,0,0];const Ce=o(v,Ct,s(S)),Ve=a(v,Ce,Ct,s(S)),We=!ot||pt===vd?Math.max(1,Ge):1,Ut=!ot||pt===gs?Math.max(1,Ge):1;return[Math.max(0,Ce-We),Math.max(0,Math.min(Ae-1,Ve+Ut)),Ce,Ve]}),K=k(()=>{const{totalColumn:Ae,totalRow:Pe,rowCache:Ge}=v,{isScrolling:ot,yAxisScrollDir:pt,scrollTop:Ct}=s(O);if(Ae===0||Pe===0)return[0,0,0,0];const Ce=d(v,Ct,s(S)),Ve=f(v,Ce,Ct,s(S)),We=!ot||pt===vd?Math.max(1,Ge):1,Ut=!ot||pt===gs?Math.max(1,Ge):1;return[Math.max(0,Ce-We),Math.max(0,Math.min(Pe-1,Ve+Ut)),Ce,Ve]}),Y=k(()=>l(v,s(S))),I=k(()=>r(v,s(S))),R=k(()=>{var Ae;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:v.direction,height:xe(v.height)?`${v.height}px`:v.height,width:xe(v.width)?`${v.width}px`:v.width},(Ae=v.style)!=null?Ae:{}]}),D=k(()=>{const Ae=`${s(I)}px`;return{height:`${s(Y)}px`,pointerEvents:s(O).isScrolling?"none":void 0,width:Ae,margin:0,boxSizing:"border-box"}}),B=()=>{const{totalColumn:Ae,totalRow:Pe}=v;if(Ae>0&&Pe>0){const[Ve,We,Ut,Ke]=s(H),[ft,it,mt,ve]=s(K);g(fd,{columnCacheStart:Ve,columnCacheEnd:We,rowCacheStart:ft,rowCacheEnd:it,columnVisibleStart:Ut,columnVisibleEnd:Ke,rowVisibleStart:mt,rowVisibleEnd:ve})}const{scrollLeft:Ge,scrollTop:ot,updateRequested:pt,xAxisScrollDir:Ct,yAxisScrollDir:Ce}=s(O);g(pd,{xAxisScrollDir:Ct,scrollLeft:Ge,yAxisScrollDir:Ce,scrollTop:ot,updateRequested:pt})},z=Ae=>{const{clientHeight:Pe,clientWidth:Ge,scrollHeight:ot,scrollLeft:pt,scrollTop:Ct,scrollWidth:Ce}=Ae.currentTarget,Ve=s(O);if(Ve.scrollTop===Ct&&Ve.scrollLeft===pt)return;let We=pt;if(M$(v.direction))switch(gd()){case Ui:We=-pt;break;case vm:We=Ce-Ge-pt;break}O.value={...Ve,isScrolling:!0,scrollLeft:We,scrollTop:Math.max(0,Math.min(Ct,ot-Pe)),updateRequested:!0,xAxisScrollDir:br(Ve.scrollLeft,We),yAxisScrollDir:br(Ve.scrollTop,Ct)},ke(()=>re()),Se(),B()},U=(Ae,Pe)=>{const Ge=s(M),ot=(Y.value-Ge)/Pe*Ae;X({scrollTop:Math.min(Y.value-Ge,ot)})},V=(Ae,Pe)=>{const Ge=s(L),ot=(I.value-Ge)/Pe*Ae;X({scrollLeft:Math.min(I.value-Ge,ot)})},{onWheel:G}=xZ({atXStartEdge:k(()=>O.value.scrollLeft<=0),atXEndEdge:k(()=>O.value.scrollLeft>=I.value-s(L)),atYStartEdge:k(()=>O.value.scrollTop<=0),atYEndEdge:k(()=>O.value.scrollTop>=Y.value-s(M))},(Ae,Pe)=>{var Ge,ot,pt,Ct;(ot=(Ge=_.value)==null?void 0:Ge.onMouseUp)==null||ot.call(Ge),(Ct=(pt=T.value)==null?void 0:pt.onMouseUp)==null||Ct.call(pt);const Ce=s(L),Ve=s(M);X({scrollLeft:Math.min(O.value.scrollLeft+Ae,I.value-Ce),scrollTop:Math.min(O.value.scrollTop+Pe,Y.value-Ve)})});Mt(E,"wheel",G,{passive:!1});const X=({scrollLeft:Ae=O.value.scrollLeft,scrollTop:Pe=O.value.scrollTop})=>{Ae=Math.max(Ae,0),Pe=Math.max(Pe,0);const Ge=s(O);Pe===Ge.scrollTop&&Ae===Ge.scrollLeft||(O.value={...Ge,xAxisScrollDir:br(Ge.scrollLeft,Ae),yAxisScrollDir:br(Ge.scrollTop,Pe),scrollLeft:Ae,scrollTop:Pe,updateRequested:!0},ke(()=>re()),Se(),B())},{touchStartX:le,touchStartY:se,handleTouchStart:de,handleTouchMove:ce}=IZ(E,O,X,I,Y,L,M),ne=(Ae=0,Pe=0,Ge=ta)=>{const ot=s(O);Pe=Math.max(0,Math.min(Pe,v.totalColumn-1)),Ae=Math.max(0,Math.min(Ae,v.totalRow-1));const pt=D1(w.namespace.value),Ct=s(S),Ce=l(v,Ct),Ve=r(v,Ct);X({scrollLeft:i(v,Pe,Ge,ot.scrollLeft,Ct,Ve>v.width?pt:0),scrollTop:u(v,Ae,Ge,ot.scrollTop,Ct,Ce>v.height?pt:0)})},j=(Ae,Pe)=>{const{columnWidth:Ge,direction:ot,rowHeight:pt}=v,Ct=A.value(t&&Ge,t&&pt,t&&ot),Ce=`${Ae},${Pe}`;if(Bn(Ct,Ce))return Ct[Ce];{const[,Ve]=n(v,Pe,s(S)),We=s(S),Ut=M$(ot),[Ke,ft]=c(v,Ae,We),[it]=n(v,Pe,We);return Ct[Ce]={position:"absolute",left:Ut?void 0:`${Ve}px`,right:Ut?`${Ve}px`:void 0,top:`${ft}px`,height:`${Ke}px`,width:`${it}px`},Ct[Ce]}},re=()=>{O.value.isScrolling=!1,ke(()=>{A.value(-1,null,null)})};ut(()=>{if(!Tt)return;const{initScrollLeft:Ae,initScrollTop:Pe}=v,Ge=s(E);Ge&&(xe(Ae)&&(Ge.scrollLeft=Ae),xe(Pe)&&(Ge.scrollTop=Pe)),B()});const Se=()=>{const{direction:Ae}=v,{scrollLeft:Pe,scrollTop:Ge,updateRequested:ot}=s(O),pt=s(E);if(ot&&pt){if(Ae===ys)switch(gd()){case Ui:{pt.scrollLeft=-Pe;break}case pm:{pt.scrollLeft=Pe;break}default:{const{clientWidth:Ct,scrollWidth:Ce}=pt;pt.scrollLeft=Ce-Ct-Pe;break}}else pt.scrollLeft=Math.max(0,Pe);pt.scrollTop=Math.max(0,Ge)}},{resetAfterColumnIndex:Te,resetAfterRowIndex:De,resetAfter:ze}=y.proxy;b({windowRef:E,innerRef:N,getItemStyleCache:A,touchStartX:le,touchStartY:se,handleTouchStart:de,handleTouchMove:ce,scrollTo:X,scrollToItem:ne,states:O,resetAfterColumnIndex:Te,resetAfterRowIndex:De,resetAfter:ze});const Ze=()=>{const{scrollbarAlwaysOn:Ae,scrollbarStartGap:Pe,scrollbarEndGap:Ge,totalColumn:ot,totalRow:pt}=v,Ct=s(L),Ce=s(M),Ve=s(I),We=s(Y),{scrollLeft:Ut,scrollTop:Ke}=s(O),ft=Le(km,{ref:_,alwaysOn:Ae,startGap:Pe,endGap:Ge,class:w.e("horizontal"),clientSize:Ct,layout:"horizontal",onScroll:V,ratio:Ct*100/Ve,scrollFrom:Ut/(Ve-Ct),total:pt,visible:!0}),it=Le(km,{ref:T,alwaysOn:Ae,startGap:Pe,endGap:Ge,class:w.e("vertical"),clientSize:Ce,layout:"vertical",onScroll:U,ratio:Ce*100/We,scrollFrom:Ke/(We-Ce),total:ot,visible:!0});return{horizontalScrollbar:ft,verticalScrollbar:it}},nt=()=>{var Ae;const[Pe,Ge]=s(H),[ot,pt]=s(K),{data:Ct,totalColumn:Ce,totalRow:Ve,useIsScrolling:We,itemKey:Ut}=v,Ke=[];if(Ve>0&&Ce>0)for(let ft=ot;ft<=pt;ft++)for(let it=Pe;it<=Ge;it++){const mt=Ut({columnIndex:it,data:Ct,rowIndex:ft});Ke.push(Le(Be,{key:mt},(Ae=C.default)==null?void 0:Ae.call(C,{columnIndex:it,data:Ct,isScrolling:We?s(O).isScrolling:void 0,style:j(ft,it),rowIndex:ft})))}return Ke},Et=()=>{const Ae=at(v.innerElement),Pe=nt();return[Le(Ae,rt(v.innerProps,{style:s(D),ref:N}),He(Ae)?Pe:{default:()=>Pe})]};return()=>{const Ae=at(v.containerElement),{horizontalScrollbar:Pe,verticalScrollbar:Ge}=Ze(),ot=Et();return Le("div",{key:0,class:w.e("wrapper"),role:v.role},[Le(Ae,{class:v.className,style:s(R),onScroll:z,ref:E},He(Ae)?ot:{default:()=>ot}),Pe,Ge])}}});var D$=MZ;const NZ=D$({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},o,a,l,r,i)=>{n=Number(n);const u=Math.max(0,e*t-n),c=Math.min(u,o*t),d=Math.max(0,o*t-n+i+t);switch(a==="smart"&&(l>=d-n&&l<=c+n?a=ta:a=ja),a){case ji:return c;case Yi:return d;case ja:{const f=Math.round(d+(c-d)/2);return f<Math.ceil(n/2)?0:f>u+Math.floor(n/2)?u:f}case ta:default:return l>=d&&l<=c?l:d>c||l<d?d:c}},getRowOffset:({rowHeight:e,height:t,totalRow:n},o,a,l,r,i)=>{t=Number(t);const u=Math.max(0,n*e-t),c=Math.min(u,o*e),d=Math.max(0,o*e-t+i+e);switch(a===hd&&(l>=d-t&&l<=c+t?a=ta:a=ja),a){case ji:return c;case Yi:return d;case ja:{const f=Math.round(d+(c-d)/2);return f<Math.ceil(t/2)?0:f>u+Math.floor(t/2)?u:f}case ta:default:return l>=d&&l<=c?l:d>c||l<d?d:c}},getColumnStartIndexForOffset:({columnWidth:e,totalColumn:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},o,a)=>{const l=o*e,r=Math.ceil((n+a-l)/e);return Math.max(0,Math.min(t-1,o+r-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},o,a)=>{const l=o*e,r=Math.ceil((n+a-l)/e);return Math.max(0,Math.min(t-1,o+r-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}});var B$=NZ;const{max:bd,min:F$,floor:V$}=Math,AZ={column:"columnWidth",row:"rowHeight"},$m={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},bl=(e,t,n,o)=>{const[a,l,r]=[n[o],e[AZ[o]],n[$m[o]]];if(t>r){let i=0;if(r>=0){const u=a[r];i=u.offset+u.size}for(let u=r+1;u<=t;u++){const c=l(u);a[u]={offset:i,size:c},i+=c}n[$m[o]]=t}return a[t]},z$=(e,t,n,o,a,l)=>{for(;n<=o;){const r=n+V$((o-n)/2),i=bl(e,r,t,l).offset;if(i===a)return r;i<a?n=r+1:o=r-1}return bd(0,n-1)},PZ=(e,t,n,o,a)=>{const l=a==="column"?e.totalColumn:e.totalRow;let r=1;for(;n<l&&bl(e,n,t,a).offset<o;)n+=r,r*=2;return z$(e,t,V$(n/2),F$(n,l-1),o,a)},H$=(e,t,n,o)=>{const[a,l]=[t[o],t[$m[o]]];return(l>0?a[l].offset:0)>=n?z$(e,t,0,l,n,o):PZ(e,t,bd(0,l),n,o)},W$=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:o})=>{let a=0;if(n>=e&&(n=e-1),n>=0){const i=o[n];a=i.offset+i.size}const r=(e-n-1)*t;return a+r},K$=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:o})=>{let a=0;if(o>e&&(o=e-1),o>=0){const i=t[o];a=i.offset+i.size}const r=(e-o-1)*n;return a+r},LZ={column:K$,row:W$},j$=(e,t,n,o,a,l,r)=>{const[i,u]=[l==="row"?e.height:e.width,LZ[l]],c=bl(e,t,a,l),d=u(e,a),f=bd(0,F$(d-i,c.offset)),h=bd(0,c.offset-i+r+c.size);switch(n===hd&&(o>=h-i&&o<=f+i?n=ta:n=ja),n){case ji:return f;case Yi:return h;case ja:return Math.round(h+(f-h)/2);case ta:default:return o>=h&&o<=f?o:h>f||o<h?h:f}},DZ=D$({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const o=bl(e,t,n,"column");return[o.size,o.offset]},getRowPosition:(e,t,n)=>{const o=bl(e,t,n,"row");return[o.size,o.offset]},getColumnOffset:(e,t,n,o,a,l)=>j$(e,t,n,o,a,"column",l),getRowOffset:(e,t,n,o,a,l)=>j$(e,t,n,o,a,"row",l),getColumnStartIndexForOffset:(e,t,n)=>H$(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,o)=>{const a=bl(e,t,o,"column"),l=n+e.width;let r=a.offset+a.size,i=t;for(;i<e.totalColumn-1&&r<l;)i++,r+=bl(e,t,o,"column").size;return i},getEstimatedTotalHeight:W$,getEstimatedTotalWidth:K$,getRowStartIndexForOffset:(e,t,n)=>H$(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,o)=>{const{totalRow:a,height:l}=e,r=bl(e,t,o,"row"),i=n+l;let u=r.size+r.offset,c=t;for(;c<a-1&&u<i;)c++,u+=bl(e,c,o,"row").size;return c},injectToInstance:(e,t)=>{const n=({columnIndex:l,rowIndex:r},i)=>{var u,c;i=_t(i)?!0:i,xe(l)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,l-1)),xe(r)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,r-1)),(u=e.exposed)==null||u.getItemStyleCache.value(-1,null,null),i&&((c=e.proxy)==null||c.$forceUpdate())},o=(l,r)=>{n({columnIndex:l},r)},a=(l,r)=>{n({rowIndex:l},r)};Object.assign(e.proxy,{resetAfterColumnIndex:o,resetAfterRowIndex:a,resetAfter:n})},initCache:({estimatedColumnWidth:e=fm,estimatedRowHeight:t=fm})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}});var Y$=DZ;const BZ=ae({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:fe("select")}}});function FZ(e,t,n,o,a,l){return $(),F("div",{class:x(e.ns.be("group","title")),style:Ie({...e.style,lineHeight:`${e.height}px`})},ge(e.item.label),7)}var VZ=ye(BZ,[["render",FZ],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function zZ(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const HZ=he({allowCreate:Boolean,autocomplete:{type:q(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:Ht,default:cl},effect:{type:q(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:{type:Boolean,default:void 0},estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:{type:q(Function)},height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:q([Array,String,Number,Boolean,Object]),default:void 0},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:{type:q(Function)},reserveKeyword:{type:Boolean,default:!0},options:{type:q(Array),required:!0},placeholder:{type:String},teleported:Vt.teleported,persistent:{type:Boolean,default:!0},popperClass:Vt.popperClass,popperStyle:Vt.popperStyle,popperOptions:{type:q(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},size:Tn,props:{type:q(Object),default:()=>Qc},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},placement:{type:q(String),values:La,default:"bottom-start"},fallbackPlacements:{type:q(Array),default:["bottom-start","top-start","right","left"]},tagType:{...Wa.type,default:"info"},tagEffect:{...Wa.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:Vt.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return zt(e)||xe(e)}},suffixIcon:{type:Ht,default:Aa},...Dl,...Gn(["ariaLabel"])}),WZ=he({data:Array,disabled:Boolean,hovering:Boolean,item:{type:q(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),KZ={[Ye]:e=>!0,[ht]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},jZ={hover:e=>xe(e),select:(e,t)=>!0},yd=Symbol("ElSelectV2Injection"),YZ=ae({props:WZ,emits:jZ,setup(e,{emit:t}){const n=Ee(yd),o=fe("select"),{hoverItem:a,selectOptionClick:l}=zZ(e,{emit:t}),{getLabel:r}=Mi(n.props),i=n.contentId;return{ns:o,contentId:i,hoverItem:a,selectOptionClick:l,getLabel:r}}}),UZ=["id","aria-selected","aria-disabled"];function GZ(e,t,n,o,a,l){return $(),F("li",{id:`${e.contentId}-${e.index}`,role:"option","aria-selected":e.selected,"aria-disabled":e.disabled||void 0,style:Ie(e.style),class:x([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMousemove:t[0]||(t[0]=(...r)=>e.hoverItem&&e.hoverItem(...r)),onClick:t[1]||(t[1]=je((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[ee(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[W("span",null,ge(e.getLabel(e.item)),1)])],46,UZ)}var qZ=ye(YZ,[["render",GZ],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const XZ={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number,id:String,ariaLabel:String};var ZZ=ae({name:"ElSelectDropdown",props:XZ,setup(e,{slots:t,expose:n}){const o=Ee(yd),a=fe("select"),{getLabel:l,getValue:r,getDisabled:i}=Mi(o.props),u=P([]),c=P(),d=k(()=>e.data.length);ie(()=>d.value,()=>{var A,M;(M=(A=o.tooltipRef.value)==null?void 0:A.updatePopper)==null||M.call(A)});const f=k(()=>_t(o.props.estimatedOptionHeight)),h=k(()=>f.value?{itemSize:o.props.itemHeight}:{estimatedSize:o.props.estimatedOptionHeight,itemSize:A=>u.value[A]}),m=(A=[],M)=>{const{props:{valueKey:L}}=o;return Rt(M)?A&&A.some(H=>fu(gn(H,L))===gn(M,L)):A.includes(M)},p=(A,M)=>{if(Rt(M)){const{valueKey:L}=o.props;return gn(A,L)===gn(M,L)}else return A===M},v=(A,M)=>o.props.multiple?m(A,r(M)):p(A,r(M)),g=(A,M)=>{const{disabled:L,multiple:H,multipleLimit:K}=o.props;return L||!M&&(H?K>0&&A.length>=K:!1)},b=A=>e.hoveringIndex===A;n({listRef:c,isSized:f,isItemDisabled:g,isItemHovering:b,isItemSelected:v,scrollToItem:A=>{const M=c.value;M&&M.scrollToItem(A)},resetScrollTop:()=>{const A=c.value;A&&A.resetScrollTop()}});const S=A=>{const{index:M,data:L,style:H}=A,K=s(f),{itemSize:Y,estimatedSize:I}=s(h),{modelValue:R}=o.props,{onSelect:D,onHover:B}=o,z=L[M];if(z.type==="Group")return Z(VZ,{item:z,style:H,height:K?Y:I},null);const U=v(R,z),V=g(R,U),G=b(M);return Z(qZ,rt(A,{selected:U,disabled:i(z)||V,created:!!z.created,hovering:G,item:z,onSelect:D,onHover:B}),{default:X=>{var le;return((le=t.default)==null?void 0:le.call(t,X))||Z("span",null,[l(z)])}})},{onKeyboardNavigate:E,onKeyboardSelect:_}=o,T=()=>{E("forward")},N=()=>{E("backward")},O=A=>{const M=Wt(A),{tab:L,esc:H,down:K,up:Y,enter:I,numpadEnter:R}=pe;switch([H,K,Y,I,R].includes(M)&&(A.preventDefault(),A.stopPropagation()),M){case L:case H:break;case K:T();break;case Y:N();break;case I:case R:_();break}};return()=>{var A,M,L,H;const{data:K,width:Y}=e,{height:I,multiple:R,scrollbarAlwaysOn:D}=o.props,B=k(()=>gu?!0:D),z=s(f)?Em:L$;return Z("div",{class:[a.b("dropdown"),a.is("multiple",R)],style:{width:`${Y}px`}},[(A=t.header)==null?void 0:A.call(t),((M=t.loading)==null?void 0:M.call(t))||((L=t.empty)==null?void 0:L.call(t))||Z(z,rt({ref:c},s(h),{className:a.be("dropdown","list"),scrollbarAlwaysOn:B.value,data:K,height:I,width:Y,total:K.length,innerElement:"ul",innerProps:{id:e.id,role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},onKeydown:O}),{default:U=>Z(S,U,null)}),(H=t.footer)==null?void 0:H.call(t)])}}});function JZ(e,t){const{aliasProps:n,getLabel:o,getValue:a}=Mi(e),l=P(0),r=P(),i=k(()=>e.allowCreate&&e.filterable);ie(()=>e.options,m=>{const p=new Set(m.map(v=>o(v)));t.createdOptions=t.createdOptions.filter(v=>!p.has(o(v)))});function u(m){const p=v=>o(v)===m;return e.options&&e.options.some(p)||t.createdOptions.some(p)}function c(m){!i.value||(e.multiple&&m.created?l.value++:r.value=m)}function d(m){if(i.value)if(m&&m.length>0){if(u(m)){t.createdOptions=t.createdOptions.filter(v=>o(v)!==t.previousQuery);return}const p={[n.value.value]:m,[n.value.label]:m,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=l.value?t.createdOptions[l.value]=p:t.createdOptions.push(p)}else if(e.multiple)t.createdOptions.length=l.value;else{const p=r.value;t.createdOptions.length=0,p&&p.created&&t.createdOptions.push(p)}}function f(m){if(!i.value||!m||!m.created||m.created&&e.reserveKeyword&&t.inputValue===o(m))return;const p=t.createdOptions.findIndex(v=>a(v)===a(m));~p&&(t.createdOptions.splice(p,1),l.value--)}function h(){i.value&&(t.createdOptions.length=0,l.value=0)}return{createNewOption:d,removeNewOption:f,selectNewOption:c,clearAllNewOption:h}}const QZ=(e,t)=>{const{t:n}=wt(),o=mn(),a=fe("select"),l=fe("input"),{form:r,formItem:i}=Pn(),{inputId:u}=Eo(e,{formItemContext:i}),{aliasProps:c,getLabel:d,getValue:f,getDisabled:h,getOptions:m}=Mi(e),{valueOnClear:p,isEmptyValue:v}=ls(e),g=Pt({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),b=P(-1),C=P(!1),w=P(),y=P(),S=P(),E=P(),_=P(),T=P(),N=P(),O=P(),A=P(),M=P(),{isComposing:L,handleCompositionStart:H,handleCompositionEnd:K,handleCompositionUpdate:Y}=as({afterComposition:we=>tn(we)}),I=on(),{wrapperRef:R,isFocused:D,handleBlur:B}=Ha(_,{disabled:I,afterFocus(){e.automaticDropdown&&!G.value&&(G.value=!0,g.menuVisibleOnFocus=!0)},beforeBlur(we){var Xe,vt;return((Xe=S.value)==null?void 0:Xe.isFocusInsideContent(we))||((vt=E.value)==null?void 0:vt.isFocusInsideContent(we))},afterBlur(){var we;G.value=!1,g.menuVisibleOnFocus=!1,e.validateEvent&&((we=i==null?void 0:i.validate)==null||we.call(i,"blur").catch(Xe=>void 0))}}),z=k(()=>nt("")),U=k(()=>e.loading?!1:e.options.length>0||g.createdOptions.length>0),V=P([]),G=P(!1),X=k(()=>{var we;return(we=r==null?void 0:r.statusIcon)!=null?we:!1}),le=k(()=>{const we=V.value.length*e.itemHeight;return we>e.height?e.height:we}),se=k(()=>e.multiple?$e(e.modelValue)&&e.modelValue.length>0:!v(e.modelValue)),de=k(()=>e.clearable&&!I.value&&se.value&&(D.value||g.inputHovering)),ce=k(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),ne=k(()=>ce.value&&a.is("reverse",G.value)),j=k(()=>(i==null?void 0:i.validateState)||""),re=k(()=>{if(!!j.value)return lc[j.value]}),Se=k(()=>e.remote?e.debounce:0),Te=k(()=>e.remote&&!g.inputValue&&!U.value),De=k(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&g.inputValue&&U.value&&V.value.length===0?e.noMatchText||n("el.select.noMatch"):U.value?null:e.noDataText||n("el.select.noData")),ze=k(()=>e.filterable&&lt(e.filterMethod)),Ze=k(()=>e.filterable&&e.remote&&lt(e.remoteMethod)),nt=we=>{const Xe=new RegExp(Sp(we),"i"),vt=kt=>ze.value||Ze.value?!0:we?Xe.test(d(kt)||""):!0;return e.loading?[]:[...g.createdOptions,...e.options].reduce((kt,Dn)=>{const Fo=m(Dn);if($e(Fo)){const Is=Fo.filter(vt);Is.length>0&&kt.push({label:d(Dn),type:"Group"},...Is)}else(e.remote||vt(Dn))&&kt.push(Dn);return kt},[])},Et=()=>{V.value=nt(g.inputValue)},Ue=k(()=>{const we=new Map;return z.value.forEach((Xe,vt)=>{we.set(Fe(f(Xe)),{option:Xe,index:vt})}),we}),Ae=k(()=>{const we=new Map;return V.value.forEach((Xe,vt)=>{we.set(Fe(f(Xe)),{option:Xe,index:vt})}),we}),Pe=k(()=>V.value.every(we=>h(we))),Ge=wn(),ot=k(()=>Ge.value==="small"?"small":"default"),pt=()=>{var we;if(xe(e.fitInputWidth)){b.value=e.fitInputWidth;return}const Xe=((we=w.value)==null?void 0:we.offsetWidth)||200;!e.fitInputWidth&&U.value?ke(()=>{b.value=Math.max(Xe,Ct())}):b.value=Xe},Ct=()=>{var we,Xe;const kt=document.createElement("canvas").getContext("2d"),Dn=a.be("dropdown","item"),Is=(((Xe=(we=O.value)==null?void 0:we.listRef)==null?void 0:Xe.innerRef)||document).querySelector(`.${Dn}`);if(Is===null||kt===null)return 0;const uu=getComputedStyle(Is),XO=Number.parseFloat(uu.paddingLeft)+Number.parseFloat(uu.paddingRight);return kt.font=`bold ${uu.font.replace(new RegExp(`\\b${uu.fontWeight}\\b`),"")}`,V.value.reduce((ZO,JO)=>{const QO=kt.measureText(d(JO));return Math.max(QO.width,ZO)},0)+XO},Ce=()=>{if(!y.value)return 0;const we=window.getComputedStyle(y.value);return Number.parseFloat(we.gap||"6px")},Ve=k(()=>{const we=Ce(),Xe=e.filterable?we+Ps:0;return{maxWidth:`${M.value&&e.maxCollapseTags===1?g.selectionWidth-g.collapseItemWidth-we-Xe:g.selectionWidth-Xe}px`}}),We=k(()=>({maxWidth:`${g.selectionWidth}px`})),Ut=k(()=>$e(e.modelValue)?e.modelValue.length===0&&!g.inputValue:e.filterable?!g.inputValue:!0),Ke=k(()=>{var we;const Xe=(we=e.placeholder)!=null?we:n("el.select.placeholder");return e.multiple||!se.value?Xe:g.selectedLabel}),ft=k(()=>{var we,Xe;return(Xe=(we=S.value)==null?void 0:we.popperRef)==null?void 0:Xe.contentRef}),it=k(()=>{if(e.multiple){const we=e.modelValue.length;if(we>0&&Ae.value.has(e.modelValue[we-1])){const{index:Xe}=Ae.value.get(e.modelValue[we-1]);return Xe}}else if(!v(e.modelValue)&&Ae.value.has(e.modelValue)){const{index:we}=Ae.value.get(e.modelValue);return we}return-1}),mt=k({get(){return G.value&&(e.loading||!Te.value||e.remote&&!!o.empty)&&(!C.value||!ho(g.previousQuery))},set(we){G.value=we}}),ve=k(()=>e.multiple?e.collapseTags?g.cachedOptions.slice(0,e.maxCollapseTags):g.cachedOptions:[]),Oe=k(()=>e.multiple?e.collapseTags?g.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:ue,removeNewOption:Me,selectNewOption:st,clearAllNewOption:jt}=JZ(e,g),an=we=>{var Xe;I.value||e.filterable&&G.value&&we&&!((Xe=N.value)!=null&&Xe.contains(we.target))||(g.menuVisibleOnFocus?g.menuVisibleOnFocus=!1:G.value=!G.value)},Cn=()=>{g.inputValue.length>0&&!G.value&&(G.value=!0),ue(g.inputValue),ke(()=>{Re(g.inputValue)})},me=Ls(()=>{Cn(),C.value=!1},Se),Re=we=>{g.previousQuery===we||L.value||(g.previousQuery=we,e.filterable&&lt(e.filterMethod)?e.filterMethod(we):e.filterable&&e.remote&&lt(e.remoteMethod)&&e.remoteMethod(we),e.defaultFirstOption&&(e.filterable||e.remote)&&V.value.length?ke(et):ke($t))},et=()=>{const we=V.value.filter(kt=>!kt.disabled&&kt.type!=="Group"),Xe=we.find(kt=>kt.created),vt=we[0];g.hoveringIndex=Ne(V.value,Xe||vt)},en=we=>{un(e.modelValue,we)||t(ht,we)},Nt=we=>{t(Ye,we),en(we),g.previousValue=e.multiple?String(we):we,ke(()=>{if(e.multiple&&$e(e.modelValue)){const Xe=g.cachedOptions.slice(),vt=e.modelValue.map(kt=>Ea(kt,Xe));un(g.cachedOptions,vt)||(g.cachedOptions=vt)}else _r(!0)})},Ne=(we=[],Xe)=>{if(!Rt(Xe))return we.indexOf(Xe);const vt=e.valueKey;let kt=-1;return we.some((Dn,Fo)=>gn(Dn,vt)===gn(Xe,vt)?(kt=Fo,!0):!1),kt},Fe=we=>Rt(we)?gn(we,e.valueKey):we,dt=()=>{pt()},Hn=()=>{g.selectionWidth=Number.parseFloat(window.getComputedStyle(y.value).width)},so=()=>{g.collapseItemWidth=M.value.getBoundingClientRect().width},na=()=>{var we,Xe;(Xe=(we=S.value)==null?void 0:we.updatePopper)==null||Xe.call(we)},ru=()=>{var we,Xe;(Xe=(we=E.value)==null?void 0:we.updatePopper)==null||Xe.call(we)},ql=we=>{const Xe=f(we);if(e.multiple){let vt=e.modelValue.slice();const kt=Ne(vt,Xe);kt>-1?(vt=[...vt.slice(0,kt),...vt.slice(kt+1)],g.cachedOptions.splice(kt,1),Me(we)):(e.multipleLimit<=0||vt.length<e.multipleLimit)&&(vt=[...vt,Xe],g.cachedOptions.push(we),st(we)),Nt(vt),we.created&&Re(""),e.filterable&&!e.reserveKeyword&&(g.inputValue="")}else g.selectedLabel=d(we),!un(e.modelValue,Xe)&&Nt(Xe),G.value=!1,st(we),we.created||jt();Ya()},su=(we,Xe)=>{let vt=e.modelValue.slice();const kt=Ne(vt,f(Xe));kt>-1&&!I.value&&(vt=[...e.modelValue.slice(0,kt),...e.modelValue.slice(kt+1)],g.cachedOptions.splice(kt,1),Nt(vt),t("remove-tag",f(Xe)),Me(Xe)),we.stopPropagation(),Ya()},Ya=()=>{var we;(we=_.value)==null||we.focus()},Bd=()=>{var we;if(G.value){G.value=!1,ke(()=>{var Xe;return(Xe=_.value)==null?void 0:Xe.blur()});return}(we=_.value)==null||we.blur()},Fd=()=>{g.inputValue.length>0?g.inputValue="":G.value=!1},Vd=we=>Hu(we,Xe=>!g.cachedOptions.some(vt=>f(vt)===Xe&&h(vt))),zd=we=>{const Xe=Wt(we);if(!!e.multiple&&Xe!==pe.delete&&g.inputValue.length===0){we.preventDefault();const vt=e.modelValue.slice(),kt=Vd(vt);if(kt<0)return;const Dn=vt[kt];vt.splice(kt,1);const Fo=g.cachedOptions[kt];g.cachedOptions.splice(kt,1),Me(Fo),Nt(vt),t("remove-tag",Dn)}},Hd=()=>{let we;$e(e.modelValue)?we=[]:we=p.value,g.selectedLabel="",G.value=!1,Nt(we),t("clear"),jt(),Ya()},Xl=(we,Xe=void 0)=>{const vt=V.value;if(!["forward","backward"].includes(we)||I.value||vt.length<=0||Pe.value||L.value)return;if(!G.value)return an();_t(Xe)&&(Xe=g.hoveringIndex);let kt=-1;we==="forward"?(kt=Xe+1,kt>=vt.length&&(kt=0)):we==="backward"&&(kt=Xe-1,(kt<0||kt>=vt.length)&&(kt=vt.length-1));const Dn=vt[kt];if(h(Dn)||Dn.type==="Group")return Xl(we,kt);g.hoveringIndex=kt,jn(kt)},be=()=>{if(G.value)~g.hoveringIndex&&V.value[g.hoveringIndex]&&ql(V.value[g.hoveringIndex]);else return an()},qe=we=>{g.hoveringIndex=we!=null?we:-1},$t=()=>{if(!e.multiple)g.hoveringIndex=V.value.findIndex(we=>Fe(f(we))===Fe(e.modelValue));else{const we=e.modelValue.length;if(we>0){const Xe=e.modelValue[we-1];g.hoveringIndex=V.value.findIndex(vt=>Fe(Xe)===Fe(f(vt)))}else g.hoveringIndex=-1}},tn=we=>{if(g.inputValue=we.target.value,e.remote)C.value=!0,me();else return Cn()},hn=we=>{if(G.value=!1,D.value){const Xe=new FocusEvent("blur",we);B(Xe)}},eo=()=>(g.isBeforeHide=!1,ke(()=>{~it.value&&jn(it.value)})),jn=we=>{O.value.scrollToItem(we)},Ea=(we,Xe)=>{const vt=Fe(we);if(Ue.value.has(vt)){const{option:kt}=Ue.value.get(vt);return kt}if(Xe&&Xe.length){const kt=Xe.find(Dn=>Fe(f(Dn))===vt);if(kt)return kt}return{[c.value.value]:we,[c.value.label]:we}},Ua=we=>{var Xe,vt;return(vt=(Xe=Ue.value.get(f(we)))==null?void 0:Xe.index)!=null?vt:-1},_r=(we=!1)=>{if(e.multiple)if(e.modelValue.length>0){const Xe=g.cachedOptions.slice();g.cachedOptions.length=0,g.previousValue=e.modelValue.toString();for(const vt of e.modelValue){const kt=Ea(vt,Xe);g.cachedOptions.push(kt)}}else g.cachedOptions=[],g.previousValue=void 0;else if(se.value){g.previousValue=e.modelValue;const Xe=V.value,vt=Xe.findIndex(kt=>Fe(f(kt))===Fe(e.modelValue));~vt?g.selectedLabel=d(Xe[vt]):(!g.selectedLabel||we)&&(g.selectedLabel=Fe(e.modelValue))}else g.selectedLabel="",g.previousValue=void 0;jt(),pt()};ie(()=>e.fitInputWidth,()=>{pt()}),ie(G,we=>{we?(e.persistent||pt(),Re("")):(g.inputValue="",g.previousQuery=null,g.isBeforeHide=!0,ue(""))}),ie(()=>e.modelValue,(we,Xe)=>{var vt;(!we||$e(we)&&we.length===0||e.multiple&&!un(we.toString(),g.previousValue)||!e.multiple&&Fe(we)!==Fe(g.previousValue))&&_r(!0),!un(we,Xe)&&e.validateEvent&&((vt=i==null?void 0:i.validate)==null||vt.call(i,"change").catch(Dn=>void 0))},{deep:!0}),ie(()=>e.options,()=>{const we=_.value;(!we||we&&document.activeElement!==we)&&_r()},{deep:!0,flush:"post"}),ie(()=>V.value,()=>(pt(),O.value&&ke(O.value.resetScrollTop))),io(()=>{g.isBeforeHide||Et()}),io(()=>{const{valueKey:we,options:Xe}=e,vt=new Map;for(const kt of Xe){const Dn=f(kt);let Fo=Dn;if(Rt(Fo)&&(Fo=gn(Dn,we)),vt.get(Fo))break;vt.set(Fo,!0)}}),ut(()=>{_r()}),Qt(w,dt),Qt(y,Hn),Qt(R,na),Qt(A,ru),Qt(M,so);let iu;return ie(()=>mt.value,we=>{we?iu=Qt(O,na).stop:(iu==null||iu(),iu=void 0),t("visible-change",we)}),{inputId:u,collapseTagSize:ot,currentPlaceholder:Ke,expanded:G,emptyText:De,popupHeight:le,debounce:Se,allOptions:z,allOptionsValueMap:Ue,filteredOptions:V,iconComponent:ce,iconReverse:ne,tagStyle:Ve,collapseTagStyle:We,popperSize:b,dropdownMenuVisible:mt,hasModelValue:se,shouldShowPlaceholder:Ut,selectDisabled:I,selectSize:Ge,needStatusIcon:X,showClearBtn:de,states:g,isFocused:D,nsSelect:a,nsInput:l,inputRef:_,menuRef:O,tagMenuRef:A,tooltipRef:S,tagTooltipRef:E,selectRef:w,wrapperRef:R,selectionRef:y,prefixRef:T,suffixRef:N,collapseItemRef:M,popperRef:ft,validateState:j,validateIcon:re,showTagList:ve,collapseTagList:Oe,debouncedOnInputChange:me,deleteTag:su,getLabel:d,getValue:f,getDisabled:h,getValueKey:Fe,getIndex:Ua,handleClear:Hd,handleClickOutside:hn,handleDel:zd,handleEsc:Fd,focus:Ya,blur:Bd,handleMenuEnter:eo,handleResize:dt,resetSelectionWidth:Hn,updateTooltip:na,updateTagTooltip:ru,updateOptions:Et,toggleMenu:an,scrollTo:jn,onInput:tn,onKeyboardNavigate:Xl,onKeyboardSelect:be,onSelect:ql,onHover:qe,handleCompositionStart:H,handleCompositionEnd:K,handleCompositionUpdate:Y}};var eJ=QZ;const tJ=ae({name:"ElSelectV2",components:{ElSelectMenu:ZZ,ElTag:Ka,ElTooltip:Ln,ElIcon:_e},directives:{ClickOutside:ml},props:HZ,emits:KZ,setup(e,{emit:t}){const n=k(()=>{const{modelValue:u,multiple:c}=e,d=c?[]:void 0;return $e(u)?c?u:d:c?d:u}),o=eJ(Pt({...Mn(e),modelValue:n}),t),{calculatorRef:a,inputStyle:l}=rc(),r=Vn();St(yd,{props:Pt({...Mn(e),height:o.popupHeight,modelValue:n}),expanded:o.expanded,tooltipRef:o.tooltipRef,contentId:r,onSelect:o.onSelect,onHover:o.onHover,onKeyboardNavigate:o.onKeyboardNavigate,onKeyboardSelect:o.onKeyboardSelect});const i=k(()=>e.multiple?o.states.cachedOptions.map(u=>o.getLabel(u)):o.states.selectedLabel);return{...o,modelValue:n,selectedLabel:i,calculatorRef:a,inputStyle:l,contentId:r,BORDER_HORIZONTAL_WIDTH:Gd}}}),nJ=["id","autocomplete","tabindex","aria-expanded","aria-label","disabled","aria-controls","aria-activedescendant","readonly","name"],oJ=["textContent"],aJ={key:1};function lJ(e,t,n,o,a,l){const r=It("el-tag"),i=It("el-tooltip"),u=It("el-icon"),c=It("el-select-menu"),d=jd("click-outside");return tt(($(),F("div",{ref:"selectRef",class:x([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[15]||(t[15]=f=>e.states.inputHovering=!0),onMouseleave:t[16]||(t[16]=f=>e.states.inputHovering=!1)},[Z(i,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[14]||(t[14]=f=>e.states.isBeforeHide=!1)},{default:Q(()=>{var f,h;return[W("div",{ref:"wrapperRef",class:x([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[11]||(t[11]=je((...m)=>e.toggleMenu&&e.toggleMenu(...m),["prevent"]))},[e.$slots.prefix?($(),F("div",{key:0,ref:"prefixRef",class:x(e.nsSelect.e("prefix"))},[ee(e.$slots,"prefix")],2)):te("v-if",!0),W("div",{ref:"selectionRef",class:x([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?ee(e.$slots,"tag",{key:0,data:e.states.cachedOptions,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[($(!0),F(Be,null,yt(e.showTagList,m=>($(),F("div",{key:e.getValueKey(e.getValue(m)),class:x(e.nsSelect.e("selected-item"))},[Z(r,{closable:!e.selectDisabled&&!e.getDisabled(m),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Ie(e.tagStyle),onClose:p=>e.deleteTag(p,m)},{default:Q(()=>[W("span",{class:x(e.nsSelect.e("tags-text"))},[ee(e.$slots,"label",{index:e.getIndex(m),label:e.getLabel(m),value:e.getValue(m)},()=>[bt(ge(e.getLabel(m)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?($(),oe(i,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,teleported:e.teleported,"popper-options":e.popperOptions},{default:Q(()=>[W("div",{ref:"collapseItemRef",class:x(e.nsSelect.e("selected-item"))},[Z(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:Ie(e.collapseTagStyle),"disable-transitions":""},{default:Q(()=>[W("span",{class:x(e.nsSelect.e("tags-text"))}," + "+ge(e.modelValue.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:Q(()=>[W("div",{ref:"tagMenuRef",class:x(e.nsSelect.e("selection"))},[($(!0),F(Be,null,yt(e.collapseTagList,m=>($(),F("div",{key:e.getValueKey(e.getValue(m)),class:x(e.nsSelect.e("selected-item"))},[Z(r,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(m),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:p=>e.deleteTag(p,m)},{default:Q(()=>[W("span",{class:x(e.nsSelect.e("tags-text"))},[ee(e.$slots,"label",{index:e.getIndex(m),label:e.getLabel(m),value:e.getValue(m)},()=>[bt(ge(e.getLabel(m)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported","popper-options"])):te("v-if",!0)]):te("v-if",!0),W("div",{class:x([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled)])},[tt(W("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":t[0]||(t[0]=m=>e.states.inputValue=m),style:Ie(e.inputStyle),autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-autocomplete":"none","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:x([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox","aria-controls":e.contentId,"aria-activedescendant":e.states.hoveringIndex>=0?`${e.contentId}-${e.states.hoveringIndex}`:"",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:t[1]||(t[1]=(...m)=>e.onInput&&e.onInput(...m)),onCompositionstart:t[2]||(t[2]=(...m)=>e.handleCompositionStart&&e.handleCompositionStart(...m)),onCompositionupdate:t[3]||(t[3]=(...m)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...m)),onCompositionend:t[4]||(t[4]=(...m)=>e.handleCompositionEnd&&e.handleCompositionEnd(...m)),onKeydown:[t[5]||(t[5]=fn(je(m=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[6]||(t[6]=fn(je(m=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[7]||(t[7]=fn(je((...m)=>e.onKeyboardSelect&&e.onKeyboardSelect(...m),["stop","prevent"]),["enter"])),t[8]||(t[8]=fn(je((...m)=>e.handleEsc&&e.handleEsc(...m),["stop","prevent"]),["esc"])),t[9]||(t[9]=fn(je((...m)=>e.handleDel&&e.handleDel(...m),["stop"]),["delete"]))],onClick:t[10]||(t[10]=je((...m)=>e.toggleMenu&&e.toggleMenu(...m),["stop"]))},null,46,nJ),[[pu,e.states.inputValue]]),e.filterable?($(),F("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:x(e.nsSelect.e("input-calculator")),textContent:ge(e.states.inputValue)},null,10,oJ)):te("v-if",!0)],2),e.shouldShowPlaceholder?($(),F("div",{key:1,class:x([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?ee(e.$slots,"label",{key:0,index:(h=(f=e.allOptionsValueMap.get(e.modelValue))==null?void 0:f.index)!=null?h:-1,label:e.currentPlaceholder,value:e.modelValue},()=>[W("span",null,ge(e.currentPlaceholder),1)]):($(),F("span",aJ,ge(e.currentPlaceholder),1))],2)):te("v-if",!0)],2),W("div",{ref:"suffixRef",class:x(e.nsSelect.e("suffix"))},[e.iconComponent?tt(($(),oe(u,{key:0,class:x([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:Q(()=>[($(),oe(at(e.iconComponent)))]),_:1},8,["class"])),[[xt,!e.showClearBtn]]):te("v-if",!0),e.showClearBtn&&e.clearIcon?($(),oe(u,{key:1,class:x([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:je(e.handleClear,["prevent","stop"])},{default:Q(()=>[($(),oe(at(e.clearIcon)))]),_:1},8,["class","onClick"])):te("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?($(),oe(u,{key:2,class:x([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:Q(()=>[($(),oe(at(e.validateIcon)))]),_:1},8,["class"])):te("v-if",!0)],2)],2)]}),content:Q(()=>[Z(c,{id:e.contentId,ref:"menuRef",data:e.filteredOptions,width:e.popperSize-e.BORDER_HORIZONTAL_WIDTH,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn,"aria-label":e.ariaLabel},uo({default:Q(f=>[ee(e.$slots,"default",Za(wl(f)))]),_:2},[e.$slots.header?{name:"header",fn:Q(()=>[W("div",{class:x(e.nsSelect.be("dropdown","header")),onClick:t[12]||(t[12]=je(()=>{},["stop"]))},[ee(e.$slots,"header")],2)]),key:"0"}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:Q(()=>[W("div",{class:x(e.nsSelect.be("dropdown","loading"))},[ee(e.$slots,"loading")],2)]),key:"1"}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:Q(()=>[W("div",{class:x(e.nsSelect.be("dropdown","empty"))},[ee(e.$slots,"empty",{},()=>[W("span",null,ge(e.emptyText),1)])],2)]),key:"2"}:void 0,e.$slots.footer?{name:"footer",fn:Q(()=>[W("div",{class:x(e.nsSelect.be("dropdown","footer")),onClick:t[13]||(t[13]=je(()=>{},["stop"]))},[ee(e.$slots,"footer")],2)]),key:"3"}:void 0]),1032,["id","data","width","hovering-index","scrollbar-always-on","aria-label"])]),_:3},8,["visible","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","placement","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],34)),[[d,e.handleClickOutside,e.popperRef]])}var rJ=ye(tJ,[["render",lJ],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);const U$=Qe(rJ),G$=he({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:q([Number,Object])}}),q$=he({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),sJ=ae({name:"ElSkeletonItem",__name:"skeleton-item",props:q$,setup(e){const t=fe("skeleton");return(n,o)=>($(),F("div",{class:x([s(t).e("item"),s(t).e(n.variant)])},[n.variant==="image"?($(),oe(s(NV),{key:0})):te("v-if",!0)],2))}});var wd=ye(sJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const iJ=ae({name:"ElSkeleton",__name:"skeleton",props:G$,setup(e,{expose:t}){const n=e,o=fe("skeleton"),a=kw(Lt(n,"loading"),n.throttle);return t({uiLoading:a}),(l,r)=>s(a)?($(),F("div",rt({key:0,class:[s(o).b(),s(o).is("animated",l.animated)]},l.$attrs),[($(!0),F(Be,null,yt(l.count,i=>($(),F(Be,{key:i},[s(a)?ee(l.$slots,"template",{key:i},()=>[Z(wd,{class:x(s(o).is("first")),variant:"p"},null,8,["class"]),($(!0),F(Be,null,yt(l.rows,u=>($(),oe(wd,{key:u,class:x([s(o).e("paragraph"),s(o).is("last",u===l.rows&&l.rows>1)]),variant:"p"},null,8,["class"]))),128))]):te("v-if",!0)],64))),128))],16)):ee(l.$slots,"default",Za(rt({key:1},l.$attrs)))}});var uJ=ye(iJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const X$=Qe(uJ,{SkeletonItem:wd}),Z$=sn(wd),_m=Symbol("sliderContextKey"),J$=he({modelValue:{type:q([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Tn,inputSize:Tn,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:q(Function),default:void 0},disabled:{type:Boolean,default:void 0},range:Boolean,vertical:Boolean,height:String,rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:q(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:La,default:"top"},marks:{type:q(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...Gn(["ariaLabel"])}),Tm=e=>xe(e)||$e(e)&&e.every(xe),Q$={[Ye]:Tm,[Sn]:Tm,[ht]:Tm},cJ=(e,t,n)=>{const o=P();return ut(async()=>{e.range?($e(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(!xe(e.modelValue)||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Mt(window,"resize",n),await ke(),n()}),{sliderWrapper:o}},dJ=e=>k(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,o)=>n-o).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),fJ=(e,t,n)=>{const{formItem:o}=Pn(),a=Zt(),l=P(),r=P(),i={firstButton:l,secondButton:r},u=on(),c=k(()=>Math.min(t.firstValue,t.secondValue)),d=k(()=>Math.max(t.firstValue,t.secondValue)),f=k(()=>e.range?`${100*(d.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),h=k(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),m=k(()=>e.vertical?{height:e.height}:{}),p=k(()=>e.vertical?{height:f.value,bottom:h.value}:{width:f.value,left:h.value}),v=()=>{if(a.value){const A=a.value.getBoundingClientRect();t.sliderSize=A[e.vertical?"height":"width"]}},g=A=>{const M=e.min+A*(e.max-e.min)/100;if(!e.range)return l;let L;return Math.abs(c.value-M)<Math.abs(d.value-M)?L=t.firstValue<t.secondValue?"firstButton":"secondButton":L=t.firstValue>t.secondValue?"firstButton":"secondButton",i[L]},b=A=>{const M=g(A);return M.value.setPosition(A),M},C=A=>{t.firstValue=A!=null?A:e.min,y(e.range?[c.value,d.value]:A!=null?A:e.min)},w=A=>{t.secondValue=A,e.range&&y([c.value,d.value])},y=A=>{n(Ye,A),n(Sn,A)},S=async()=>{await ke(),n(ht,e.range?[c.value,d.value]:e.modelValue)},E=A=>{var M,L,H,K,Y,I;if(u.value||t.dragging)return;v();let R=0;if(e.vertical){const D=(H=(L=(M=A.touches)==null?void 0:M.item(0))==null?void 0:L.clientY)!=null?H:A.clientY;R=(a.value.getBoundingClientRect().bottom-D)/t.sliderSize*100}else{const D=(I=(Y=(K=A.touches)==null?void 0:K.item(0))==null?void 0:Y.clientX)!=null?I:A.clientX,B=a.value.getBoundingClientRect().left;R=(D-B)/t.sliderSize*100}if(!(R<0||R>100))return b(R)};return{elFormItem:o,slider:a,firstButton:l,secondButton:r,sliderDisabled:u,minValue:c,maxValue:d,runwayStyle:m,barStyle:p,resetSize:v,setPosition:b,emitChange:S,onSliderWrapperPrevent:A=>{var M,L;(((M=i.firstButton.value)==null?void 0:M.dragging)||((L=i.secondButton.value)==null?void 0:L.dragging))&&A.preventDefault()},onSliderClick:A=>{E(A)&&S()},onSliderDown:async A=>{const M=E(A);M&&(await ke(),M.value.onButtonDown(A))},onSliderMarkerDown:A=>{if(u.value||t.dragging)return;b(A)&&S()},setFirstValue:C,setSecondValue:w}},pJ=(e,t,n)=>{const o=P(),a=P(!1),l=k(()=>t.value instanceof Function),r=k(()=>l.value&&t.value(e.modelValue)||e.modelValue),i=ua(()=>{n.value&&(a.value=!0)},50),u=ua(()=>{n.value&&(a.value=!1)},50);return{tooltip:o,tooltipVisible:a,formatValue:r,displayTooltip:i,hideTooltip:u}},vJ=(e,t,n)=>{const{disabled:o,min:a,max:l,step:r,showTooltip:i,persistent:u,precision:c,sliderSize:d,formatTooltip:f,emitChange:h,resetSize:m,updateDragging:p}=Ee(_m),{tooltip:v,tooltipVisible:g,formatValue:b,displayTooltip:C,hideTooltip:w}=pJ(e,f,i),y=P(),S=k(()=>`${(e.modelValue-a.value)/(l.value-a.value)*100}%`),E=k(()=>e.vertical?{bottom:S.value}:{left:S.value}),_=()=>{t.hovering=!0,C()},T=()=>{t.hovering=!1,t.dragging||w()},N=V=>{o.value||(V.preventDefault(),D(V),window.addEventListener("mousemove",B),window.addEventListener("touchmove",B),window.addEventListener("mouseup",z),window.addEventListener("touchend",z),window.addEventListener("contextmenu",z),y.value.focus())},O=V=>{o.value||(t.newPosition=Number.parseFloat(S.value)+V/(l.value-a.value)*100,U(t.newPosition),h())},A=()=>{O(-r.value)},M=()=>{O(r.value)},L=()=>{O(-r.value*4)},H=()=>{O(r.value*4)},K=()=>{o.value||(U(0),h())},Y=()=>{o.value||(U(100),h())},I=V=>{const G=Wt(V);let X=!0;switch(G){case pe.left:case pe.down:A();break;case pe.right:case pe.up:M();break;case pe.home:K();break;case pe.end:Y();break;case pe.pageDown:L();break;case pe.pageUp:H();break;default:X=!1;break}X&&V.preventDefault()},R=V=>{let G,X;return V.type.startsWith("touch")?(X=V.touches[0].clientY,G=V.touches[0].clientX):(X=V.clientY,G=V.clientX),{clientX:G,clientY:X}},D=V=>{t.dragging=!0,t.isClick=!0;const{clientX:G,clientY:X}=R(V);e.vertical?t.startY=X:t.startX=G,t.startPosition=Number.parseFloat(S.value),t.newPosition=t.startPosition},B=V=>{if(t.dragging){t.isClick=!1,C(),m();let G;const{clientX:X,clientY:le}=R(V);e.vertical?(t.currentY=le,G=(t.startY-t.currentY)/d.value*100):(t.currentX=X,G=(t.currentX-t.startX)/d.value*100),t.newPosition=t.startPosition+G,U(t.newPosition)}},z=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||w(),t.isClick||U(t.newPosition),h()},0),window.removeEventListener("mousemove",B),window.removeEventListener("touchmove",B),window.removeEventListener("mouseup",z),window.removeEventListener("touchend",z),window.removeEventListener("contextmenu",z))},U=async V=>{if(V===null||Number.isNaN(+V))return;V=Zs(V,0,100);const G=Math.floor((l.value-a.value)/r.value),X=G*r.value/(l.value-a.value)*100,le=X+(100-X)/2;let se;if(V<X){const de=X/G,ce=Math.round(V/de);se=a.value+ce*r.value}else V<le?se=a.value+G*r.value:se=l.value;se=Number.parseFloat(se.toFixed(c.value)),se!==e.modelValue&&n(Ye,se),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await ke(),t.dragging&&C(),v.value.updatePopper()};return ie(()=>t.dragging,V=>{p(V)}),Mt(y,"touchstart",N,{passive:!1}),{disabled:o,button:y,tooltip:v,tooltipVisible:g,showTooltip:i,persistent:u,wrapperStyle:E,formatValue:b,handleMouseEnter:_,handleMouseLeave:T,onButtonDown:N,onKeyDown:I,setPosition:U}},hJ=(e,t,n,o)=>({stops:k(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const r=Math.ceil((e.max-e.min)/e.step),i=100*e.step/(e.max-e.min),u=Array.from({length:r-1}).map((c,d)=>(d+1)*i);return e.range?u.filter(c=>c<100*(n.value-e.min)/(e.max-e.min)||c>100*(o.value-e.min)/(e.max-e.min)):u.filter(c=>c>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:r=>e.vertical?{bottom:`${r}%`}:{left:`${r}%`}}),mJ=(e,t,n,o,a,l)=>{const r=c=>{a(Ye,c),a(Sn,c)},i=()=>e.range?![n.value,o.value].every((c,d)=>c===t.oldValue[d]):e.modelValue!==t.oldValue,u=()=>{var c,d;e.min>e.max&&_n("Slider","min should not be greater than max.");const f=e.modelValue;e.range&&$e(f)?f[1]<e.min?r([e.min,e.min]):f[0]>e.max?r([e.max,e.max]):f[0]<e.min?r([e.min,f[1]]):f[1]>e.max?r([f[0],e.max]):(t.firstValue=f[0],t.secondValue=f[1],i()&&(e.validateEvent&&((c=l==null?void 0:l.validate)==null||c.call(l,"change").catch(h=>void 0)),t.oldValue=f.slice())):!e.range&&xe(f)&&!Number.isNaN(f)&&(f<e.min?r(e.min):f>e.max?r(e.max):(t.firstValue=f,i()&&(e.validateEvent&&((d=l==null?void 0:l.validate)==null||d.call(l,"change").catch(h=>void 0)),t.oldValue=f)))};u(),ie(()=>t.dragging,c=>{c||u()}),ie(()=>e.modelValue,(c,d)=>{t.dragging||$e(c)&&$e(d)&&c.every((f,h)=>f===d[h])&&t.firstValue===c[0]&&t.secondValue===c[1]||u()},{deep:!0}),ie(()=>[e.min,e.max],()=>{u()})},gJ=he({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:La,default:"top"}}),bJ={[Ye]:e=>xe(e)},yJ=["tabindex"],wJ=ae({name:"ElSliderButton",__name:"button",props:gJ,emits:bJ,setup(e,{expose:t,emit:n}){const o=e,a=n,l=fe("slider"),r=Pt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:o.modelValue}),i=k(()=>f.value?h.value:!1),{disabled:u,button:c,tooltip:d,showTooltip:f,persistent:h,tooltipVisible:m,wrapperStyle:p,formatValue:v,handleMouseEnter:g,handleMouseLeave:b,onButtonDown:C,onKeyDown:w,setPosition:y}=vJ(o,r,a),{hovering:S,dragging:E}=Mn(r);return t({onButtonDown:C,onKeyDown:w,setPosition:y,hovering:S,dragging:E}),(_,T)=>($(),F("div",{ref_key:"button",ref:c,class:x([s(l).e("button-wrapper"),{hover:s(S),dragging:s(E)}]),style:Ie(s(p)),tabindex:s(u)?void 0:0,onMouseenter:T[0]||(T[0]=(...N)=>s(g)&&s(g)(...N)),onMouseleave:T[1]||(T[1]=(...N)=>s(b)&&s(b)(...N)),onMousedown:T[2]||(T[2]=(...N)=>s(C)&&s(C)(...N)),onFocus:T[3]||(T[3]=(...N)=>s(g)&&s(g)(...N)),onBlur:T[4]||(T[4]=(...N)=>s(b)&&s(b)(...N)),onKeydown:T[5]||(T[5]=(...N)=>s(w)&&s(w)(...N))},[Z(s(Ln),{ref_key:"tooltip",ref:d,visible:s(m),placement:_.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":_.tooltipClass,disabled:!s(f),persistent:i.value},{content:Q(()=>[W("span",null,ge(s(v)),1)]),default:Q(()=>[W("div",{class:x([s(l).e("button"),{hover:s(S),dragging:s(E)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,yJ))}});var e_=ye(wJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const CJ=he({mark:{type:q([String,Object]),default:void 0}});var SJ=ae({name:"ElSliderMarker",props:CJ,setup(e){const t=fe("slider"),n=k(()=>He(e.mark)?e.mark:e.mark.label),o=k(()=>He(e.mark)?void 0:e.mark.style);return()=>Le("div",{class:t.e("marks-text"),style:o.value},n.value)}});const kJ=["id","role","aria-label","aria-labelledby"],EJ={key:1},$J=ae({name:"ElSlider",__name:"slider",props:J$,emits:Q$,setup(e,{expose:t,emit:n}){const o=e,a=n,l=fe("slider"),{t:r}=wt(),i=Pt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:u,slider:c,firstButton:d,secondButton:f,sliderDisabled:h,minValue:m,maxValue:p,runwayStyle:v,barStyle:g,resetSize:b,emitChange:C,onSliderWrapperPrevent:w,onSliderClick:y,onSliderDown:S,onSliderMarkerDown:E,setFirstValue:_,setSecondValue:T}=fJ(o,i,a),{stops:N,getStopStyle:O}=hJ(o,i,m,p),{inputId:A,isLabeledByFormItem:M}=Eo(o,{formItemContext:u}),L=wn(),H=k(()=>o.inputSize||L.value),K=k(()=>o.ariaLabel||r("el.slider.defaultLabel",{min:o.min,max:o.max})),Y=k(()=>o.range?o.rangeStartLabel||r("el.slider.defaultRangeStartLabel"):K.value),I=k(()=>o.formatValueText?o.formatValueText(G.value):`${G.value}`),R=k(()=>o.rangeEndLabel||r("el.slider.defaultRangeEndLabel")),D=k(()=>o.formatValueText?o.formatValueText(X.value):`${X.value}`),B=k(()=>[l.b(),l.m(L.value),l.is("vertical",o.vertical),{[l.m("with-input")]:o.showInput}]),z=dJ(o);mJ(o,i,m,p,a,u);const U=k(()=>{const de=[o.min,o.max,o.step].map(ce=>{const ne=`${ce}`.split(".")[1];return ne?ne.length:0});return Math.max.apply(null,de)}),{sliderWrapper:V}=cJ(o,i,b),{firstValue:G,secondValue:X,sliderSize:le}=Mn(i),se=de=>{i.dragging=de};return Mt(V,"touchstart",w,{passive:!1}),Mt(V,"touchmove",w,{passive:!1}),St(_m,{...Mn(o),sliderSize:le,disabled:h,precision:U,emitChange:C,resetSize:b,updateDragging:se}),t({onSliderClick:y}),(de,ce)=>{var ne,j;return $(),F("div",{id:de.range?s(A):void 0,ref_key:"sliderWrapper",ref:V,class:x(B.value),role:de.range?"group":void 0,"aria-label":de.range&&!s(M)?K.value:void 0,"aria-labelledby":de.range&&s(M)?(ne=s(u))==null?void 0:ne.labelId:void 0},[W("div",{ref_key:"slider",ref:c,class:x([s(l).e("runway"),{"show-input":de.showInput&&!de.range},s(l).is("disabled",s(h))]),style:Ie(s(v)),onMousedown:ce[0]||(ce[0]=(...re)=>s(S)&&s(S)(...re)),onTouchstartPassive:ce[1]||(ce[1]=(...re)=>s(S)&&s(S)(...re))},[W("div",{class:x(s(l).e("bar")),style:Ie(s(g))},null,6),Z(e_,{id:de.range?void 0:s(A),ref_key:"firstButton",ref:d,"model-value":s(G),vertical:de.vertical,"tooltip-class":de.tooltipClass,placement:de.placement,role:"slider","aria-label":de.range||!s(M)?Y.value:void 0,"aria-labelledby":!de.range&&s(M)?(j=s(u))==null?void 0:j.labelId:void 0,"aria-valuemin":de.min,"aria-valuemax":de.range?s(X):de.max,"aria-valuenow":s(G),"aria-valuetext":I.value,"aria-orientation":de.vertical?"vertical":"horizontal","aria-disabled":s(h),"onUpdate:modelValue":s(_)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),de.range?($(),oe(e_,{key:0,ref_key:"secondButton",ref:f,"model-value":s(X),vertical:de.vertical,"tooltip-class":de.tooltipClass,placement:de.placement,role:"slider","aria-label":R.value,"aria-valuemin":s(G),"aria-valuemax":de.max,"aria-valuenow":s(X),"aria-valuetext":D.value,"aria-orientation":de.vertical?"vertical":"horizontal","aria-disabled":s(h),"onUpdate:modelValue":s(T)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):te("v-if",!0),de.showStops?($(),F("div",EJ,[($(!0),F(Be,null,yt(s(N),(re,Se)=>($(),F("div",{key:Se,class:x(s(l).e("stop")),style:Ie(s(O)(re))},null,6))),128))])):te("v-if",!0),s(z).length>0?($(),F(Be,{key:2},[W("div",null,[($(!0),F(Be,null,yt(s(z),(re,Se)=>($(),F("div",{key:Se,style:Ie(s(O)(re.position)),class:x([s(l).e("stop"),s(l).e("marks-stop")])},null,6))),128))]),W("div",{class:x(s(l).e("marks"))},[($(!0),F(Be,null,yt(s(z),(re,Se)=>($(),oe(s(SJ),{key:Se,mark:re.mark,style:Ie(s(O)(re.position)),onMousedown:je(Te=>s(E)(re.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):te("v-if",!0)],38),de.showInput&&!de.range?($(),oe(s(nm),{key:0,ref:"input","model-value":s(G),class:x(s(l).e("input")),step:de.step,disabled:s(h),controls:de.showInputControls,min:de.min,max:de.max,precision:U.value,size:H.value,"onUpdate:modelValue":s(_),onChange:s(C)},null,8,["model-value","class","step","disabled","controls","min","max","precision","size","onUpdate:modelValue","onChange"])):te("v-if",!0)],10,kJ)}}});var _J=ye($J,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const t_=Qe(_J),n_=he({prefixCls:{type:String}}),o_=ae({name:"ElSpaceItem",props:n_,setup(e,{slots:t}){const n=fe("space"),o=k(()=>`${e.prefixCls||n.b()}__item`);return()=>Le("div",{class:o.value},ee(t,"default"))}}),a_={small:8,default:12,large:16};function l_(e){const t=fe("space"),n=k(()=>[t.b(),t.m(e.direction),e.class]),o=P(0),a=P(0),l=k(()=>{const i=e.wrap||e.fill?{flexWrap:"wrap"}:{},u={alignItems:e.alignment},c={rowGap:`${a.value}px`,columnGap:`${o.value}px`};return[i,u,c,e.style]}),r=k(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return io(()=>{const{size:i="small",wrap:u,direction:c,fill:d}=e;if($e(i)){const[f=0,h=0]=i;o.value=f,a.value=h}else{let f;xe(i)?f=i:f=a_[i||"small"]||a_.small,(u||d)&&c==="horizontal"?o.value=a.value=f:c==="horizontal"?(o.value=f,a.value=0):(a.value=f,o.value=0)}}),{classes:n,containerStyle:l,itemStyle:r}}const r_=he({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:q([String,Object,Array]),default:""},style:{type:q([String,Array,Object]),default:""},alignment:{type:q(String),default:"center"},prefixCls:{type:String},spacer:{type:q([Object,String,Number,Array]),default:null,validator:e=>Jt(e)||xe(e)||He(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:oa,validator:e=>xe(e)||$e(e)&&e.length===2&&e.every(xe)}}),TJ=ae({name:"ElSpace",props:r_,setup(e,{slots:t}){const{classes:n,containerStyle:o,itemStyle:a}=l_(e);function l(r,i="",u=[]){const{prefixCls:c}=e;return r.forEach((d,f)=>{Rp(d)?$e(d.children)&&d.children.forEach((h,m)=>{Rp(h)&&$e(h.children)?l(h.children,`${i+m}-`,u):Jt(h)&&(h==null?void 0:h.type)===Ga?u.push(h):u.push(Z(o_,{style:a.value,prefixCls:c,key:`nested-${i+m}`},{default:()=>[h]},Go.PROPS|Go.STYLE,["style","prefixCls"]))}):sz(d)&&u.push(Z(o_,{style:a.value,prefixCls:c,key:`LoopKey${i+f}`},{default:()=>[d]},Go.PROPS|Go.STYLE,["style","prefixCls"]))}),u}return()=>{var r;const{spacer:i,direction:u}=e,c=ee(t,"default",{key:0},()=>[]);if(((r=c.children)!=null?r:[]).length===0)return null;if($e(c.children)){let d=l(c.children);if(i){const f=d.length-1;d=d.reduce((h,m,p)=>{const v=[...h,m];return p!==f&&v.push(Z("span",{style:[a.value,u==="vertical"?"width: 100%":null],key:p},[Jt(i)?i:bt(i,Go.TEXT)],Go.STYLE)),v},[])}return Z("div",{class:n.value,style:o.value},d,Go.STYLE|Go.CLASS)}return c.children}}}),s_=Qe(TJ),i_=he({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:q([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:q([String,Object,Array])}}),OJ=ae({name:"ElStatistic",__name:"statistic",props:i_,setup(e,{expose:t}){const n=e,o=fe("statistic"),a=k(()=>{const{value:l,formatter:r,precision:i,decimalSeparator:u,groupSeparator:c}=n;if(lt(r))return r(l);if(!xe(l)||Number.isNaN(l))return l;let[d,f=""]=String(l).split(".");return f=f.padEnd(i,"0").slice(0,i>0?i:0),d=d.replace(/\B(?=(\d{3})+(?!\d))/g,c),[d,f].join(f?u:"")});return t({displayValue:a}),(l,r)=>($(),F("div",{class:x(s(o).b())},[l.$slots.title||l.title?($(),F("div",{key:0,class:x(s(o).e("head"))},[ee(l.$slots,"title",{},()=>[bt(ge(l.title),1)])],2)):te("v-if",!0),W("div",{class:x(s(o).e("content"))},[l.$slots.prefix||l.prefix?($(),F("div",{key:0,class:x(s(o).e("prefix"))},[ee(l.$slots,"prefix",{},()=>[W("span",null,ge(l.prefix),1)])],2)):te("v-if",!0),W("span",{class:x(s(o).e("number")),style:Ie(l.valueStyle)},ge(a.value),7),l.$slots.suffix||l.suffix?($(),F("div",{key:1,class:x(s(o).e("suffix"))},[ee(l.$slots,"suffix",{},()=>[W("span",null,ge(l.suffix),1)])],2)):te("v-if",!0)],2)],2))}});var RJ=ye(OJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const Om=Qe(RJ),u_=he({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:q([Number,Object]),default:0},valueStyle:{type:q([String,Object,Array])}}),c_={finish:()=>!0,[ht]:e=>xe(e)},xJ=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],d_=e=>xe(e)?new Date(e).getTime():e.valueOf(),f_=(e,t)=>{let n=e;const o=/\[([^\]]*)]/g;return xJ.reduce((l,[r,i])=>{const u=new RegExp(`${r}+(?![^\\[\\]]*\\])`,"g");if(u.test(l)){const c=Math.floor(n/i);return n-=c*i,l.replace(u,d=>String(c).padStart(d.length,"0"))}return l},t).replace(o,"$1")},IJ=ae({name:"ElCountdown",__name:"countdown",props:u_,emits:c_,setup(e,{expose:t,emit:n}){const o=e,a=n;let l;const r=P(0),i=k(()=>f_(r.value,o.format)),u=f=>f_(f,o.format),c=()=>{l&&(sl(l),l=void 0)},d=()=>{const f=d_(o.value),h=()=>{let m=f-Date.now();a(ht,m),m<=0?(m=0,c(),a("finish")):l=Ma(h),r.value=m};l=Ma(h)};return ut(()=>{r.value=d_(o.value)-Date.now(),ie(()=>[o.value,o.format],()=>{c(),d()},{immediate:!0})}),Bt(()=>{c()}),t({displayValue:i}),(f,h)=>($(),oe(s(Om),{value:r.value,title:f.title,prefix:f.prefix,suffix:f.suffix,"value-style":f.valueStyle,formatter:u},uo({_:2},[yt(f.$slots,(m,p)=>({name:p,fn:Q(()=>[ee(f.$slots,p)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var MJ=ye(IJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const p_=Qe(MJ),v_=he({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),h_={[ht]:(e,t)=>[e,t].every(xe)},Rm="ElSteps",NJ=ae({name:"ElSteps",__name:"steps",props:v_,emits:h_,setup(e,{emit:t}){const n=e,o=t,a=fe("steps"),{children:l,addChild:r,removeChild:i,ChildrenSorter:u}=Si(ct(),"ElStep");return ie(l,()=>{l.value.forEach((c,d)=>{c.setIndex(d)})}),St(Rm,{props:n,steps:l,addStep:r,removeStep:i}),ie(()=>n.active,(c,d)=>{o(ht,c,d)}),(c,d)=>($(),F("div",{class:x([s(a).b(),s(a).m(c.simple?"simple":c.direction)])},[ee(c.$slots,"default"),Z(s(u))],2))}});var AJ=ye(NJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const m_=he({title:{type:String,default:""},icon:{type:Ht},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),PJ=ae({name:"ElStep",__name:"item",props:m_,setup(e){const t=e,n=fe("step"),o=P(-1),a=P({}),l=P(""),r=Ee(Rm),i=ct();let u=0,c=0;ut(()=>{ie([()=>r.props.active,()=>r.props.processStatus,()=>r.props.finishStatus],([T],[N])=>{c=N||0,u=T-c,E(T)},{immediate:!0})});const d=k(()=>t.status||l.value),f=k(()=>{const T=r.steps.value[o.value-1];return T?T.internalStatus.value:"wait"}),h=k(()=>r.props.alignCenter),m=k(()=>r.props.direction==="vertical"),p=k(()=>r.props.simple),v=k(()=>r.steps.value.length),g=k(()=>{var T;return((T=r.steps.value[v.value-1])==null?void 0:T.uid)===i.uid}),b=k(()=>p.value?"":r.props.space),C=k(()=>[n.b(),n.is(p.value?"simple":r.props.direction),n.is("flex",g.value&&!b.value&&!h.value),n.is("center",h.value&&!m.value&&!p.value)]),w=k(()=>{const T={flexBasis:xe(b.value)?`${b.value}px`:b.value?b.value:`${100/(v.value-(h.value?0:1))}%`};return m.value||g.value&&(T.maxWidth=`${100/v.value}%`),T}),y=T=>{o.value=T},S=T=>{const N=T==="wait",A={transitionDelay:`${Math.abs(u)===1?0:u>0?(o.value+1-c)*150:-(o.value+1-r.props.active)*150}ms`},M=T===r.props.processStatus||N?0:100;A.borderWidth=M&&!p.value?"1px":0,A[r.props.direction==="vertical"?"height":"width"]=`${M}%`,a.value=A},E=T=>{T>o.value?l.value=r.props.finishStatus:T===o.value&&f.value!=="error"?l.value=r.props.processStatus:l.value="wait";const N=r.steps.value[o.value-1];N&&N.calcProgress(l.value)},_={uid:i.uid,getVnode:()=>i.vnode,currentStatus:d,internalStatus:l,setIndex:y,calcProgress:S};return r.addStep(_),Bt(()=>{r.removeStep(_)}),(T,N)=>($(),F("div",{style:Ie(w.value),class:x(C.value)},[te(" icon & line "),W("div",{class:x([s(n).e("head"),s(n).is(d.value)])},[p.value?te("v-if",!0):($(),F("div",{key:0,class:x(s(n).e("line"))},[W("i",{class:x(s(n).e("line-inner")),style:Ie(a.value)},null,6)],2)),W("div",{class:x([s(n).e("icon"),s(n).is(T.icon||T.$slots.icon?"icon":"text")])},[ee(T.$slots,"icon",{},()=>[T.icon?($(),oe(s(_e),{key:0,class:x(s(n).e("icon-inner"))},{default:Q(()=>[($(),oe(at(T.icon)))]),_:1},8,["class"])):d.value==="success"?($(),oe(s(_e),{key:1,class:x([s(n).e("icon-inner"),s(n).is("status")])},{default:Q(()=>[Z(s(ii))]),_:1},8,["class"])):d.value==="error"?($(),oe(s(_e),{key:2,class:x([s(n).e("icon-inner"),s(n).is("status")])},{default:Q(()=>[Z(s(Uo))]),_:1},8,["class"])):p.value?te("v-if",!0):($(),F("div",{key:3,class:x(s(n).e("icon-inner"))},ge(o.value+1),3))])],2)],2),te(" title & description "),W("div",{class:x(s(n).e("main"))},[W("div",{class:x([s(n).e("title"),s(n).is(d.value)])},[ee(T.$slots,"title",{},()=>[bt(ge(T.title),1)])],2),p.value?($(),F("div",{key:0,class:x(s(n).e("arrow"))},null,2)):($(),F("div",{key:1,class:x([s(n).e("description"),s(n).is(d.value)])},[ee(T.$slots,"description",{},()=>[bt(ge(T.description),1)])],2))],2)],6))}});var g_=ye(PJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const b_=Qe(AJ,{Step:g_}),y_=sn(g_),w_=he({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:X1},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:Ht},activeActionIcon:{type:Ht},activeIcon:{type:Ht},inactiveIcon:{type:Ht},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:q(Function)},id:String,tabindex:{type:[String,Number]},...Gn(["ariaLabel"])}),C_={[Ye]:e=>zt(e)||He(e)||xe(e),[ht]:e=>zt(e)||He(e)||xe(e),[Sn]:e=>zt(e)||He(e)||xe(e)},LJ=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],DJ=["aria-hidden"],BJ={key:1},FJ={key:1},VJ=["aria-hidden"],S_="ElSwitch",zJ=ae({name:S_,__name:"switch",props:w_,emits:C_,setup(e,{expose:t,emit:n}){const o=e,a=n,{formItem:l}=Pn(),r=wn(),i=fe("switch"),{inputId:u}=Eo(o,{formItemContext:l}),c=on(k(()=>{if(o.loading)return!0})),d=P(o.modelValue!==!1),f=Zt(),h=k(()=>[i.b(),i.m(r.value),i.is("disabled",c.value),i.is("checked",b.value)]),m=k(()=>[i.e("label"),i.em("label","left"),i.is("active",!b.value)]),p=k(()=>[i.e("label"),i.em("label","right"),i.is("active",b.value)]),v=k(()=>({width:cn(o.width)}));ie(()=>o.modelValue,()=>{d.value=!0});const g=k(()=>d.value?o.modelValue:!1),b=k(()=>g.value===o.activeValue);[o.activeValue,o.inactiveValue].includes(g.value)||(a(Ye,o.inactiveValue),a(ht,o.inactiveValue),a(Sn,o.inactiveValue)),ie(b,S=>{var E;f.value.checked=S,o.validateEvent&&((E=l==null?void 0:l.validate)==null||E.call(l,"change").catch(_=>void 0))});const C=()=>{const S=b.value?o.inactiveValue:o.activeValue;a(Ye,S),a(ht,S),a(Sn,S),ke(()=>{f.value.checked=b.value})},w=()=>{if(c.value)return;const{beforeChange:S}=o;if(!S){C();return}const E=S();[Bs(E),zt(E)].includes(!0)||_n(S_,"beforeChange must return type `Promise<boolean>` or `boolean`"),Bs(E)?E.then(T=>{T&&C()}).catch(T=>{}):E&&C()},y=()=>{var S,E;(E=(S=f.value)==null?void 0:S.focus)==null||E.call(S)};return ut(()=>{f.value.checked=b.value}),t({focus:y,checked:b}),(S,E)=>($(),F("div",{class:x(h.value),onClick:je(w,["prevent"])},[W("input",{id:s(u),ref_key:"input",ref:f,class:x(s(i).e("input")),type:"checkbox",role:"switch","aria-checked":b.value,"aria-disabled":s(c),"aria-label":S.ariaLabel,name:S.name,"true-value":S.activeValue,"false-value":S.inactiveValue,disabled:s(c),tabindex:S.tabindex,onChange:C,onKeydown:fn(w,["enter"])},null,42,LJ),!S.inlinePrompt&&(S.inactiveIcon||S.inactiveText||S.$slots.inactive)?($(),F("span",{key:0,class:x(m.value)},[ee(S.$slots,"inactive",{},()=>[S.inactiveIcon?($(),oe(s(_e),{key:0},{default:Q(()=>[($(),oe(at(S.inactiveIcon)))]),_:1})):te("v-if",!0),!S.inactiveIcon&&S.inactiveText?($(),F("span",{key:1,"aria-hidden":b.value},ge(S.inactiveText),9,DJ)):te("v-if",!0)])],2)):te("v-if",!0),W("span",{class:x(s(i).e("core")),style:Ie(v.value)},[S.inlinePrompt?($(),F("div",{key:0,class:x(s(i).e("inner"))},[b.value?($(),F("div",{key:1,class:x(s(i).e("inner-wrapper"))},[ee(S.$slots,"active",{},()=>[S.activeIcon?($(),oe(s(_e),{key:0},{default:Q(()=>[($(),oe(at(S.activeIcon)))]),_:1})):te("v-if",!0),!S.activeIcon&&S.activeText?($(),F("span",FJ,ge(S.activeText),1)):te("v-if",!0)])],2)):($(),F("div",{key:0,class:x(s(i).e("inner-wrapper"))},[ee(S.$slots,"inactive",{},()=>[S.inactiveIcon?($(),oe(s(_e),{key:0},{default:Q(()=>[($(),oe(at(S.inactiveIcon)))]),_:1})):te("v-if",!0),!S.inactiveIcon&&S.inactiveText?($(),F("span",BJ,ge(S.inactiveText),1)):te("v-if",!0)])],2))],2)):te("v-if",!0),W("div",{class:x(s(i).e("action"))},[S.loading?($(),oe(s(_e),{key:0,class:x(s(i).is("loading"))},{default:Q(()=>[Z(s(Pa))]),_:1},8,["class"])):b.value?ee(S.$slots,"active-action",{key:1},()=>[S.activeActionIcon?($(),oe(s(_e),{key:0},{default:Q(()=>[($(),oe(at(S.activeActionIcon)))]),_:1})):te("v-if",!0)]):b.value?te("v-if",!0):ee(S.$slots,"inactive-action",{key:2},()=>[S.inactiveActionIcon?($(),oe(s(_e),{key:0},{default:Q(()=>[($(),oe(at(S.inactiveActionIcon)))]),_:1})):te("v-if",!0)])],2)],6),!S.inlinePrompt&&(S.activeIcon||S.activeText||S.$slots.active)?($(),F("span",{key:1,class:x(p.value)},[ee(S.$slots,"active",{},()=>[S.activeIcon?($(),oe(s(_e),{key:0},{default:Q(()=>[($(),oe(at(S.activeIcon)))]),_:1})):te("v-if",!0),!S.activeIcon&&S.activeText?($(),F("span",{key:1,"aria-hidden":!b.value},ge(S.activeText),9,VJ)):te("v-if",!0)])],2)):te("v-if",!0)],2))}});var HJ=ye(zJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const k_=Qe(HJ),xm=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},WJ=function(e,t,n,o,a){if(!t&&!o&&(!a||$e(a)&&!a.length))return e;He(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const l=o?null:function(i,u){return a?qf(An(a),c=>He(c)?gn(i,c):c(i,u,e)):(t!=="$key"&&Rt(i)&&"$value"in i&&(i=i.$value),[Rt(i)?t?gn(i,t):null:i])},r=function(i,u){var c,d,f,h,m,p;if(o)return o(i.value,u.value);for(let v=0,g=(d=(c=i.key)==null?void 0:c.length)!=null?d:0;v<g;v++){if(((f=i.key)==null?void 0:f[v])<((h=u.key)==null?void 0:h[v]))return-1;if(((m=i.key)==null?void 0:m[v])>((p=u.key)==null?void 0:p[v]))return 1}return 0};return e.map((i,u)=>({value:i,index:u,key:l?l(i,u):null})).sort((i,u)=>{let c=r(i,u);return c||(c=i.index-u.index),c*+n}).map(i=>i.value)},E_=function(e,t){let n=null;return e.columns.forEach(o=>{o.id===t&&(n=o)}),n},KJ=function(e,t){let n=null;for(let o=0;o<e.columns.length;o++){const a=e.columns[o];if(a.columnKey===t){n=a;break}}return n||_n("ElTable",`No column matching with column-key: ${t}`),n},$_=function(e,t,n){const o=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return o?E_(e,o[0]):null},Jn=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(He(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let o=e;for(const a of n)o=o[a];return`${o}`}else if(lt(t))return t.call(null,e);return""},Ss=function(e,t,n=!1,o="children"){const a=e||[],l={};return a.forEach((r,i)=>{if(l[Jn(r,t)]={row:r,index:i},n){const u=r[o];$e(u)&&Object.assign(l,Ss(u,t,!0,o))}}),l};function jJ(e,t){const n={};let o;for(o in e)n[o]=e[o];for(o in t)if(Bn(t,o)){const a=t[o];_t(a)||(n[o]=a)}return n}function Im(e){return e===""||_t(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function __(e){return e===""||_t(e)||(e=Im(e),Number.isNaN(e)&&(e=80)),e}function YJ(e){return xe(e)?e:He(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function UJ(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function Cd(e,t,n,o,a,l,r){let i=l!=null?l:0,u=!1;const d=(()=>{if(!r)return e.indexOf(t);const v=Jn(t,r);return e.findIndex(g=>Jn(g,r)===v)})(),f=d!==-1,h=a==null?void 0:a.call(null,t,i),m=v=>{v==="add"?e.push(t):e.splice(d,1),u=!0},p=v=>{let g=0;const b=(o==null?void 0:o.children)&&v[o.children];return b&&$e(b)&&(g+=b.length,b.forEach(C=>{g+=p(C)})),g};return(!a||h)&&(zt(n)?n&&!f?m("add"):!n&&f&&m("remove"):m(f?"remove":"add")),!(o!=null&&o.checkStrictly)&&(o==null?void 0:o.children)&&$e(t[o.children])&&t[o.children].forEach(v=>{const g=Cd(e,v,n!=null?n:!f,o,a,i+1,r);i+=p(v)+1,g&&(u=g)}),u}function GJ(e,t,n="children",o="hasChildren",a=!1){const l=i=>!($e(i)&&i.length);function r(i,u,c){t(i,u,c),u.forEach(d=>{if(d[o]&&a){t(d,null,c+1);return}const f=d[n];l(f)||r(d,f,c+1)})}e.forEach(i=>{if(i[o]&&a){t(i,null,0);return}const u=i[n];l(u)||r(i,u,0)})}const qJ=(e,t,n,o)=>{const a={strategy:"fixed",...e.popperOptions},l=lt(o==null?void 0:o.tooltipFormatter)?o.tooltipFormatter({row:n,column:o,cellValue:Kr(n,o.property).value}):void 0;return Jt(l)?{slotContent:l,content:null,...e,popperOptions:a}:{slotContent:null,content:l!=null?l:t,...e,popperOptions:a}};let ro=null;function XJ(e,t,n,o,a,l){var r;const i=qJ(e,t,n,o),u={...i,slotContent:void 0};if((ro==null?void 0:ro.trigger)===a){const p=(r=ro.vm)==null?void 0:r.component;op(p==null?void 0:p.props,u),p&&i.slotContent&&(p.slots.content=()=>[i.slotContent]);return}ro==null||ro();const c=l==null?void 0:l.refs.tableWrapper,d=c==null?void 0:c.dataset.prefix,f=Z(Ln,{virtualTriggering:!0,virtualRef:a,appendTo:c,placement:"top",transition:"none",offset:0,hideAfter:0,...u},i.slotContent?{content:()=>i.slotContent}:void 0);f.appContext={...l.appContext,...l};const h=document.createElement("div");Sl(f,h),f.component.exposed.onOpen();const m=c==null?void 0:c.querySelector(`.${d}-scrollbar__wrap`);ro=()=>{var p,v;(v=(p=f.component)==null?void 0:p.exposed)!=null&&v.onClose&&f.component.exposed.onClose(),Sl(null,h);const g=ro;m==null||m.removeEventListener("scroll",g),g.trigger=void 0,g.vm=void 0,ro=null},ro.trigger=a!=null?a:void 0,ro.vm=f,m==null||m.addEventListener("scroll",ro)}function T_(e){return e.children?qf(e.children,T_):[e]}function O_(e,t){return e+t.colSpan}const R_=(e,t,n,o)=>{let a=0,l=e;const r=n.states.columns.value;if(o){const u=T_(o[e]);a=r.slice(0,r.indexOf(u[0])).reduce(O_,0),l=a+u.reduce(O_,0)-1}else a=e;let i;switch(t){case"left":l<n.states.fixedLeafColumnsLength.value&&(i="left");break;case"right":a>=r.length-n.states.rightFixedLeafColumnsLength.value&&(i="right");break;default:l<n.states.fixedLeafColumnsLength.value?i="left":a>=r.length-n.states.rightFixedLeafColumnsLength.value&&(i="right")}return i?{direction:i,start:a,after:l}:{}},Mm=(e,t,n,o,a,l=0)=>{const r=[],{direction:i,start:u,after:c}=R_(t,n,o,a);if(i){const d=i==="left";r.push(`${e}-fixed-column--${i}`),d&&c+l===o.states.fixedLeafColumnsLength.value-1?r.push("is-last-column"):!d&&u-l===o.states.columns.value.length-o.states.rightFixedLeafColumnsLength.value&&r.push("is-first-column")}return r};function x_(e,t){return e+(oi(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Nm=(e,t,n,o)=>{const{direction:a,start:l=0,after:r=0}=R_(e,t,n,o);if(!a)return;const i={},u=a==="left",c=n.states.columns.value;return u?i.left=c.slice(0,l).reduce(x_,0):i.right=c.slice(r+1).reverse().reduce(x_,0),i},ks=(e,t)=>{!e||Number.isNaN(e[t])||(e[t]=`${e[t]}px`)};function I_(e){return e.some(t=>Jt(t)?!(t.type===Ga||t.type===Be&&!I_(t.children)):!0)?e:null}function ZJ(e){const t=ct(),n=P(!1),o=P([]);return{updateExpandRows:()=>{const u=e.data.value||[],c=e.rowKey.value;if(n.value)o.value=u.slice();else if(c){const d=Ss(o.value,c);o.value=u.reduce((f,h)=>{const m=Jn(h,c);return d[m]&&f.push(h),f},[])}else o.value=[]},toggleRowExpansion:(u,c)=>{Cd(o.value,u,c,void 0,void 0,void 0,e.rowKey.value)&&t.emit("expand-change",u,o.value.slice())},setExpandRowKeys:u=>{t.store.assertRowKey();const c=e.data.value||[],d=e.rowKey.value,f=Ss(c,d);o.value=u.reduce((h,m)=>{const p=f[m];return p&&h.push(p.row),h},[])},isRowExpanded:u=>{const c=e.rowKey.value;return c?!!Ss(o.value,c)[Jn(u,c)]:o.value.includes(u)},states:{expandRows:o,defaultExpandAll:n}}}function JJ(e){const t=ct(),n=P(null),o=P(null),a=c=>{t.store.assertRowKey(),n.value=c,r(c)},l=()=>{n.value=null},r=c=>{var d;const{data:f,rowKey:h}=e,m=o.value;let p=null;h.value&&(p=(d=(s(f)||[]).find(v=>Jn(v,h.value)===c))!=null?d:null),o.value=p!=null?p:null,t.emit("current-change",o.value,m)};return{setCurrentRowKey:a,restoreCurrentRowKey:l,setCurrentRowByKey:r,updateCurrentRow:c=>{const d=o.value;if(c&&c!==d){o.value=c,t.emit("current-change",o.value,d);return}!c&&d&&(o.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const c=e.rowKey.value,d=e.data.value||[],f=o.value;if(f&&!d.includes(f))if(c){const h=Jn(f,c);r(h)}else o.value=null,t.emit("current-change",null,f);else n.value&&(r(n.value),l())},states:{_currentRowKey:n,currentRow:o}}}function QJ(e){const t=P([]),n=P({}),o=P(16),a=P(!1),l=P({}),r=P("hasChildren"),i=P("children"),u=P(!1),c=ct(),d=k(()=>{if(!e.rowKey.value)return{};const y=e.data.value||[];return h(y)}),f=k(()=>{const y=e.rowKey.value,S=Object.keys(l.value),E={};return S.length&&S.forEach(_=>{if(l.value[_].length){const T={children:[]};l.value[_].forEach(N=>{const O=Jn(N,y);T.children.push(O),N[r.value]&&!E[O]&&(E[O]={children:[]})}),E[_]=T}}),E}),h=y=>{const S=e.rowKey.value,E={};return GJ(y,(_,T,N)=>{const O=Jn(_,S);$e(T)?E[O]={children:T.map(A=>Jn(A,S)),level:N}:a.value&&(E[O]={children:[],lazy:!0,level:N})},i.value,r.value,a.value),E},m=(y=!1,S)=>{var E,_;S||(S=(E=c.store)==null?void 0:E.states.defaultExpandAll.value);const T=d.value,N=f.value,O=Object.keys(T),A={};if(O.length){const M=s(n),L=[],H=(Y,I)=>{if(y)return t.value?S||t.value.includes(I):!!(S||(Y==null?void 0:Y.expanded));{const R=S||t.value&&t.value.includes(I);return!!((Y==null?void 0:Y.expanded)||R)}};O.forEach(Y=>{const I=M[Y],R={...T[Y]};if(R.expanded=H(I,Y),R.lazy){const{loaded:D=!1,loading:B=!1}=I||{};R.loaded=!!D,R.loading=!!B,L.push(Y)}A[Y]=R});const K=Object.keys(N);a.value&&K.length&&L.length&&K.forEach(Y=>{var I;const R=M[Y],D=N[Y].children;if(L.includes(Y)){if(((I=A[Y].children)==null?void 0:I.length)!==0)throw new Error("[ElTable]children must be an empty array.");A[Y].children=D}else{const{loaded:B=!1,loading:z=!1}=R||{};A[Y]={lazy:!0,loaded:!!B,loading:!!z,expanded:H(R,Y),children:D,level:void 0}}})}n.value=A,(_=c.store)==null||_.updateTableScrollY()};ie(()=>t.value,()=>{m(!0)}),ie(()=>d.value,()=>{m()}),ie(()=>f.value,()=>{m()});const p=y=>{t.value=y,m()},v=y=>a.value&&y&&"loaded"in y&&!y.loaded,g=(y,S)=>{c.store.assertRowKey();const E=e.rowKey.value,_=Jn(y,E),T=_&&n.value[_];if(_&&T&&"expanded"in T){const N=T.expanded;S=_t(S)?!T.expanded:S,n.value[_].expanded=S,N!==S&&c.emit("expand-change",y,S),S&&v(T)&&C(y,_,T),c.store.updateTableScrollY()}},b=y=>{c.store.assertRowKey();const S=e.rowKey.value,E=Jn(y,S),_=n.value[E];v(_)?C(y,E,_):g(y,void 0)},C=(y,S,E)=>{const{load:_}=c.props;_&&!n.value[S].loaded&&(n.value[S].loading=!0,_(y,E,T=>{if(!$e(T))throw new TypeError("[ElTable] data must be an array");n.value[S].loading=!1,n.value[S].loaded=!0,n.value[S].expanded=!0,T.length&&(l.value[S]=T),c.emit("expand-change",y,!0)}))};return{loadData:C,loadOrToggle:b,toggleTreeExpansion:g,updateTreeExpandKeys:p,updateTreeData:m,updateKeyChildren:(y,S)=>{const{lazy:E,rowKey:_}=c.props;if(!!E){if(!_)throw new Error("[Table] rowKey is required in updateKeyChild");l.value[y]&&(l.value[y]=S)}},normalize:h,states:{expandRowKeys:t,treeData:n,indent:o,lazy:a,lazyTreeNodeMap:l,lazyColumnIdentifier:r,childrenColumnName:i,checkStrictly:u}}}const eQ=(e,t)=>{const n=t.sortingColumn;return!n||He(n.sortable)?e:WJ(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Sd=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,Sd(n.children)):t.push(n)}),t};function tQ(){var e;const t=ct(),{size:n}=Mn((e=t.proxy)==null?void 0:e.$props),o=P(null),a=P([]),l=P([]),r=P(!1),i=P([]),u=P([]),c=P([]),d=P([]),f=P([]),h=P([]),m=P([]),p=P([]),v=[],g=P(0),b=P(0),C=P(0),w=P(!1),y=P([]),S=P(!1),E=P(!1),_=P(null),T=P({}),N=P(null),O=P(null),A=P(null),M=P(null),L=P(null),H=k(()=>o.value?Ss(y.value,o.value):void 0);ie(a,()=>{var Ke;t.state&&(R(!1),t.props.tableLayout==="auto"&&((Ke=t.refs.tableHeaderRef)==null||Ke.updateFixedColumnStyle()))},{deep:!0});const K=()=>{if(!o.value)throw new Error("[ElTable] prop row-key is required")},Y=Ke=>{var ft;(ft=Ke.children)==null||ft.forEach(it=>{it.fixed=Ke.fixed,Y(it)})},I=()=>{i.value.forEach(ue=>{Y(ue)}),d.value=i.value.filter(ue=>[!0,"left"].includes(ue.fixed));const Ke=i.value.find(ue=>ue.type==="selection");let ft;Ke&&Ke.fixed!=="right"&&!d.value.includes(Ke)&&i.value.indexOf(Ke)===0&&d.value.length&&(d.value.unshift(Ke),ft=!0),f.value=i.value.filter(ue=>ue.fixed==="right");const it=i.value.filter(ue=>(ft?ue.type!=="selection":!0)&&!ue.fixed);u.value=Array.from(d.value).concat(it).concat(f.value);const mt=Sd(it),ve=Sd(d.value),Oe=Sd(f.value);g.value=mt.length,b.value=ve.length,C.value=Oe.length,c.value=Array.from(ve).concat(mt).concat(Oe),r.value=d.value.length>0||f.value.length>0},R=(Ke,ft=!1)=>{Ke&&I(),ft?t.state.doLayout():t.state.debouncedUpdateLayout()},D=Ke=>H.value?!!H.value[Jn(Ke,o.value)]:y.value.includes(Ke),B=()=>{w.value=!1;const Ke=y.value;y.value=[],Ke.length&&t.emit("selection-change",[])},z=()=>{var Ke,ft;let it;if(o.value){it=[];const mt=(ft=(Ke=t==null?void 0:t.store)==null?void 0:Ke.states)==null?void 0:ft.childrenColumnName.value,ve=Ss(a.value,o.value,!0,mt);for(const Oe in H.value)Bn(H.value,Oe)&&!ve[Oe]&&it.push(H.value[Oe].row)}else it=y.value.filter(mt=>!a.value.includes(mt));if(it.length){const mt=y.value.filter(ve=>!it.includes(ve));y.value=mt,t.emit("selection-change",mt.slice())}},U=()=>(y.value||[]).slice(),V=(Ke,ft,it=!0,mt=!1)=>{var ve,Oe,ue,Me;const st={children:(Oe=(ve=t==null?void 0:t.store)==null?void 0:ve.states)==null?void 0:Oe.childrenColumnName.value,checkStrictly:(Me=(ue=t==null?void 0:t.store)==null?void 0:ue.states)==null?void 0:Me.checkStrictly.value};if(Cd(y.value,Ke,ft,st,mt?void 0:_.value,a.value.indexOf(Ke),o.value)){const an=(y.value||[]).slice();it&&t.emit("select",an,Ke),t.emit("selection-change",an)}},G=()=>{var Ke,ft;const it=E.value?!w.value:!(w.value||y.value.length);w.value=it;let mt=!1,ve=0;const Oe=(ft=(Ke=t==null?void 0:t.store)==null?void 0:Ke.states)==null?void 0:ft.rowKey.value,{childrenColumnName:ue}=t.store.states,Me={children:ue.value,checkStrictly:!1};a.value.forEach((st,jt)=>{const an=jt+ve;Cd(y.value,st,it,Me,_.value,an,Oe)&&(mt=!0),ve+=le(Jn(st,Oe))}),mt&&t.emit("selection-change",y.value?y.value.slice():[]),t.emit("select-all",(y.value||[]).slice())},X=()=>{var Ke;if(((Ke=a.value)==null?void 0:Ke.length)===0){w.value=!1;return}const{childrenColumnName:ft}=t.store.states;let it=0,mt=0;const ve=ue=>{var Me;for(const st of ue){const jt=_.value&&_.value.call(null,st,it);if(D(st))mt++;else if(!_.value||jt)return!1;if(it++,((Me=st[ft.value])==null?void 0:Me.length)&&!ve(st[ft.value]))return!1}return!0},Oe=ve(a.value||[]);w.value=mt===0?!1:Oe},le=Ke=>{var ft;if(!t||!t.store)return 0;const{treeData:it}=t.store.states;let mt=0;const ve=(ft=it.value[Ke])==null?void 0:ft.children;return ve&&(mt+=ve.length,ve.forEach(Oe=>{mt+=le(Oe)})),mt},se=(Ke,ft)=>{const it={};return An(Ke).forEach(mt=>{T.value[mt.id]=ft,it[mt.columnKey||mt.id]=ft}),it},de=(Ke,ft,it)=>{O.value&&O.value!==Ke&&(O.value.order=null),O.value=Ke,A.value=ft,M.value=it},ce=()=>{let Ke=s(l);Object.keys(T.value).forEach(ft=>{const it=T.value[ft];if(!it||it.length===0)return;const mt=E_({columns:c.value},ft);mt&&mt.filterMethod&&(Ke=Ke.filter(ve=>it.some(Oe=>mt.filterMethod.call(null,Oe,ve,mt))))}),N.value=Ke},ne=()=>{var Ke;a.value=eQ((Ke=N.value)!=null?Ke:[],{sortingColumn:O.value,sortProp:A.value,sortOrder:M.value})},j=(Ke=void 0)=>{Ke!=null&&Ke.filter||ce(),ne()},re=Ke=>{const{tableHeaderRef:ft}=t.refs;if(!ft)return;const it=Object.assign({},ft.filterPanels),mt=Object.keys(it);if(!!mt.length)if(He(Ke)&&(Ke=[Ke]),$e(Ke)){const ve=Ke.map(Oe=>KJ({columns:c.value},Oe));mt.forEach(Oe=>{const ue=ve.find(Me=>Me.id===Oe);ue&&(ue.filteredValue=[])}),t.store.commit("filterChange",{column:ve,values:[],silent:!0,multi:!0})}else mt.forEach(ve=>{const Oe=c.value.find(ue=>ue.id===ve);Oe&&(Oe.filteredValue=[])}),T.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},Se=()=>{!O.value||(de(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:Te,toggleRowExpansion:De,updateExpandRows:ze,states:Ze,isRowExpanded:nt}=ZJ({data:a,rowKey:o}),{updateTreeExpandKeys:Et,toggleTreeExpansion:Ue,updateTreeData:Ae,updateKeyChildren:Pe,loadOrToggle:Ge,states:ot}=QJ({data:a,rowKey:o}),{updateCurrentRowData:pt,updateCurrentRow:Ct,setCurrentRowKey:Ce,states:Ve}=JJ({data:a,rowKey:o});return{assertRowKey:K,updateColumns:I,scheduleLayout:R,isSelected:D,clearSelection:B,cleanSelection:z,getSelectionRows:U,toggleRowSelection:V,_toggleAllSelection:G,toggleAllSelection:null,updateAllSelected:X,updateFilters:se,updateCurrentRow:Ct,updateSort:de,execFilter:ce,execSort:ne,execQuery:j,clearFilter:re,clearSort:Se,toggleRowExpansion:De,setExpandRowKeysAdapter:Ke=>{Te(Ke),Et(Ke)},setCurrentRowKey:Ce,toggleRowExpansionAdapter:(Ke,ft)=>{c.value.some(({type:mt})=>mt==="expand")?De(Ke,ft):Ue(Ke,ft)},isRowExpanded:nt,updateExpandRows:ze,updateCurrentRowData:pt,loadOrToggle:Ge,updateTreeData:Ae,updateKeyChildren:Pe,states:{tableSize:n,rowKey:o,data:a,_data:l,isComplex:r,_columns:i,originColumns:u,columns:c,fixedColumns:d,rightFixedColumns:f,leafColumns:h,fixedLeafColumns:m,rightFixedLeafColumns:p,updateOrderFns:v,leafColumnsLength:g,fixedLeafColumnsLength:b,rightFixedLeafColumnsLength:C,isAllSelected:w,selection:y,reserveSelection:S,selectOnIndeterminate:E,selectable:_,filters:T,filteredData:N,sortingColumn:O,sortProp:A,sortOrder:M,hoverRow:L,...Ze,...ot,...Ve}}}function Am(e,t){return e.map(n=>{var o;return n.id===t.id?t:((o=n.children)!=null&&o.length&&(n.children=Am(n.children,t)),n)})}function Pm(e){e.forEach(t=>{var n,o;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(o=t.children)!=null&&o.length&&Pm(t.children)}),e.sort((t,n)=>t.no-n.no)}function nQ(){const e=ct(),t=tQ(),n=fe("table"),{t:o}=wt();return{ns:n,t:o,...t,mutations:{setData(i,u){const c=s(i._data)!==u;i.data.value=u,i._data.value=u,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),s(i.reserveSelection)?e.store.assertRowKey():c?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(i,u,c,d){var f;const h=s(i._columns);let m=[];c?(c&&!c.children&&(c.children=[]),(f=c.children)==null||f.push(u),m=Am(h,c)):(h.push(u),m=h),Pm(m),i._columns.value=m,i.updateOrderFns.push(d),u.type==="selection"&&(i.selectable.value=u.selectable,i.reserveSelection.value=u.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(i,u){var c;((c=u.getColumnIndex)==null?void 0:c.call(u))!==u.no&&(Pm(i._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(i,u,c,d){var f;const h=s(i._columns)||[];if(c)(f=c.children)==null||f.splice(c.children.findIndex(p=>p.id===u.id),1),ke(()=>{var p;((p=c.children)==null?void 0:p.length)===0&&delete c.children}),i._columns.value=Am(h,c);else{const p=h.indexOf(u);p>-1&&(h.splice(p,1),i._columns.value=h)}const m=i.updateOrderFns.indexOf(d);m>-1&&i.updateOrderFns.splice(m,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(i,u){const{prop:c,order:d,init:f}=u;if(c){const h=s(i.columns).find(m=>m.property===c);h&&(h.order=d,e.store.updateSort(h,c,d),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(i,u){const{sortingColumn:c,sortProp:d,sortOrder:f}=i,h=s(c),m=s(d),p=s(f);oi(p)&&(i.sortingColumn.value=null,i.sortProp.value=null);const v={filter:!0};e.store.execQuery(v),(!u||!(u.silent||u.init))&&e.emit("sort-change",{column:h,prop:m,order:p}),e.store.updateTableScrollY()},filterChange(i,u){const{column:c,values:d,silent:f}=u,h=e.store.updateFilters(c,d);e.store.execQuery(),f||e.emit("filter-change",h),e.store.updateTableScrollY()},toggleAllSelection(){var i,u;(u=(i=e.store).toggleAllSelection)==null||u.call(i)},rowSelectedChanged(i,u){e.store.toggleRowSelection(u),e.store.updateAllSelected()},setHoverRow(i,u){i.hoverRow.value=u},setCurrentRow(i,u){e.store.updateCurrentRow(u)}},commit:function(i,...u){const c=e.store.mutations;if(c[i])c[i].apply(e,[e.store.states,...u]);else throw new Error(`Action not found: ${i}`)},updateTableScrollY:function(){ke(()=>e.layout.updateScrollY.apply(e.layout))}}}const Lm={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"},["treeProps.checkStrictly"]:{key:"checkStrictly",default:!1}};function oQ(e,t){if(!e)throw new Error("Table is required.");const n=nQ();return n.toggleAllSelection=ua(n._toggleAllSelection,10),Object.keys(Lm).forEach(o=>{M_(N_(t,o),o,n)}),aQ(n,t),n}function aQ(e,t){Object.keys(Lm).forEach(n=>{ie(()=>N_(t,n),o=>{M_(o,n,e)})})}function M_(e,t,n){let o=e,a=Lm[t];Rt(a)&&(o=o||a.default,a=a.key),n.states[a].value=o}function N_(e,t){if(t.includes(".")){const n=t.split(".");let o=e;return n.forEach(a=>{o=o[a]}),o}else return e[t]}class lQ{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=P(null),this.scrollX=P(!1),this.scrollY=P(!1),this.bodyWidth=P(null),this.fixedWidth=P(null),this.rightFixedWidth=P(null),this.gutterWidth=0;for(const n in t)Bn(t,n)&&(Yn(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const t=this.height.value;if(oi(t))return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n==null?void 0:n.wrapRef)){let o=!0;const a=this.scrollY.value;return o=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=o,a!==o}return!1}setHeight(t,n="height"){if(!Tt)return;const o=this.table.vnode.el;if(t=YJ(t),this.height.value=Number(t),!o&&(t||t===0)){ke(()=>this.setHeight(t,n));return}o&&xe(t)?(o.style[n]=`${t}px`,this.updateElsHeight()):o&&He(t)&&(o.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(o=>{o.isColumnGroup?t.push.apply(t,o.columns):t.push(o)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){var t;if(!Tt)return;const n=this.fit,o=(t=this.table.vnode.el)==null?void 0:t.clientWidth;let a=0;const l=this.getFlattenColumns(),r=l.filter(c=>!xe(c.width));if(l.forEach(c=>{xe(c.width)&&c.realWidth&&(c.realWidth=null)}),r.length>0&&n){if(l.forEach(c=>{a+=Number(c.width||c.minWidth||80)}),a<=o){this.scrollX.value=!1;const c=o-a;if(r.length===1)r[0].realWidth=Number(r[0].minWidth||80)+c;else{const d=r.reduce((m,p)=>m+Number(p.minWidth||80),0),f=c/d;let h=0;r.forEach((m,p)=>{if(p===0)return;const v=Math.floor(Number(m.minWidth||80)*f);h+=v,m.realWidth=Number(m.minWidth||80)+v}),r[0].realWidth=Number(r[0].minWidth||80)+c-h}}else this.scrollX.value=!0,r.forEach(c=>{c.realWidth=Number(c.minWidth)});this.bodyWidth.value=Math.max(a,o),this.table.state.resizeState.value.width=this.bodyWidth.value}else l.forEach(c=>{!c.width&&!c.minWidth?c.realWidth=80:c.realWidth=Number(c.width||c.minWidth),a+=c.realWidth}),this.scrollX.value=a>o,this.bodyWidth.value=a;const i=this.store.states.fixedColumns.value;if(i.length>0){let c=0;i.forEach(d=>{c+=Number(d.realWidth||d.width)}),this.fixedWidth.value=c}const u=this.store.states.rightFixedColumns.value;if(u.length>0){let c=0;u.forEach(d=>{c+=Number(d.realWidth||d.width)}),this.rightFixedWidth.value=c}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(o=>{var a,l;switch(t){case"columns":(a=o.state)==null||a.onColumnsChange(this);break;case"scrollable":(l=o.state)==null||l.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}var rQ=lQ;const sQ=ae({name:"ElTableFilterPanel",components:{ElCheckbox:ea,ElCheckboxGroup:td,ElScrollbar:Jo,ElTooltip:Ln,ElIcon:_e,ArrowDown:Aa,ArrowUp:nc},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:Vt.appendTo},setup(e){const t=ct(),{t:n}=wt(),o=fe("table-filter"),a=t==null?void 0:t.parent;e.column&&!a.filterPanels.value[e.column.id]&&(a.filterPanels.value[e.column.id]=t);const l=P(null),r=P(null),i=P(0),u=k(()=>e.column&&e.column.filters),c=k(()=>e.column&&e.column.filterClassName?`${o.b()} ${e.column.filterClassName}`:o.b()),d=k({get:()=>{var _;return(((_=e.column)==null?void 0:_.filteredValue)||[])[0]},set:_=>{f.value&&(Co(_)?f.value.splice(0,1):f.value.splice(0,1,_))}}),f=k({get(){return e.column?e.column.filteredValue||[]:[]},set(_){var T;e.column&&((T=e.upDataColumn)==null||T.call(e,"filteredValue",_))}}),h=k(()=>e.column?e.column.filterMultiple:!0),m=_=>_.value===d.value,p=()=>{var _;(_=l.value)==null||_.onClose()},v=()=>{C(f.value),p()},g=()=>{f.value=[],C(f.value),p()},b=(_,T)=>{d.value=_,i.value=T,Co(_)?C([]):C(f.value),p()},C=_=>{var T,N;(T=e.store)==null||T.commit("filterChange",{column:e.column,values:_}),(N=e.store)==null||N.updateAllSelected()},w=()=>{var _,T;(_=r.value)==null||_.focus(),!h.value&&S(),e.column&&((T=e.upDataColumn)==null||T.call(e,"filterOpened",!0))},y=()=>{var _;e.column&&((_=e.upDataColumn)==null||_.call(e,"filterOpened",!1))},S=()=>{if(Co(d)){i.value=0;return}const _=(u.value||[]).findIndex(T=>T.value===d.value);i.value=_>=0?_+1:0};return{multiple:h,filterClassName:c,filteredValue:f,filterValue:d,filters:u,handleConfirm:v,handleReset:g,handleSelect:b,isPropAbsent:Co,isActive:m,t:n,ns:o,tooltipRef:l,rootRef:r,checkedIndex:i,handleShowTooltip:w,handleHideTooltip:y,handleKeydown:_=>{var T,N;const O=Wt(_),A=(u.value?u.value.length:0)+1;let M=i.value,L=!0;switch(O){case pe.down:case pe.right:M=(M+1)%A;break;case pe.up:case pe.left:M=(M-1+A)%A;break;case pe.tab:p(),L=!1;break;case pe.enter:case pe.space:if(M===0)b(null,0);else{const H=(u.value||[])[M-1];H.value&&b(H.value,M)}break;default:L=!1;break}L&&_.preventDefault(),i.value=M,(N=(T=r.value)==null?void 0:T.querySelector(`.${o.e("list-item")}:nth-child(${M+1})`))==null||N.focus()}}}}),iQ=["disabled"],uQ=["tabindex","aria-checked"],cQ=["tabindex","aria-checked","onClick"],dQ=["aria-label"];function fQ(e,t,n,o,a,l){const r=It("el-checkbox"),i=It("el-checkbox-group"),u=It("el-scrollbar"),c=It("arrow-up"),d=It("arrow-down"),f=It("el-icon"),h=It("el-tooltip");return $(),oe(h,{ref:"tooltipRef",offset:0,placement:e.placement,"show-arrow":!1,trigger:"click",role:"dialog",teleported:"",effect:"light",pure:"",loop:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo,onShow:e.handleShowTooltip,onHide:e.handleHideTooltip},{content:Q(()=>[e.multiple?($(),F("div",{key:0,ref:"rootRef",tabindex:"-1",class:x(e.ns.e("multiple"))},[W("div",{class:x(e.ns.e("content"))},[Z(u,{"wrap-class":e.ns.e("wrap")},{default:Q(()=>[Z(i,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=m=>e.filteredValue=m),class:x(e.ns.e("checkbox-group"))},{default:Q(()=>[($(!0),F(Be,null,yt(e.filters,m=>($(),oe(r,{key:m.value,value:m.value},{default:Q(()=>[bt(ge(m.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),W("div",{class:x(e.ns.e("bottom"))},[W("button",{class:x(e.ns.is("disabled",e.filteredValue.length===0)),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...m)=>e.handleConfirm&&e.handleConfirm(...m))},ge(e.t("el.table.confirmFilter")),11,iQ),W("button",{type:"button",onClick:t[2]||(t[2]=(...m)=>e.handleReset&&e.handleReset(...m))},ge(e.t("el.table.resetFilter")),1)],2)],2)):($(),F("ul",{key:1,ref:"rootRef",tabindex:"-1",role:"radiogroup",class:x(e.ns.e("list")),onKeydown:t[4]||(t[4]=(...m)=>e.handleKeydown&&e.handleKeydown(...m))},[W("li",{role:"radio",class:x([e.ns.e("list-item"),e.ns.is("active",e.isPropAbsent(e.filterValue))]),tabindex:e.checkedIndex===0?0:-1,"aria-checked":e.isPropAbsent(e.filterValue),onClick:t[3]||(t[3]=m=>e.handleSelect(null,0))},ge(e.t("el.table.clearFilter")),11,uQ),($(!0),F(Be,null,yt(e.filters,(m,p)=>($(),F("li",{key:m.value,role:"radio",class:x([e.ns.e("list-item"),e.ns.is("active",e.isActive(m))]),tabindex:e.checkedIndex===p+1?0:-1,"aria-checked":e.isActive(m),onClick:v=>e.handleSelect(m.value,p+1)},ge(m.text),11,cQ))),128))],34))]),default:Q(()=>{var m;return[W("button",{type:"button",class:x(`${e.ns.namespace.value}-table__column-filter-trigger`),"aria-label":e.t("el.table.filterLabel",{column:((m=e.column)==null?void 0:m.label)||""})},[Z(f,null,{default:Q(()=>[ee(e.$slots,"filter-icon",{},()=>{var p;return[(p=e.column)!=null&&p.filterOpened?($(),oe(c,{key:0})):($(),oe(d,{key:1}))]})]),_:3})],10,dQ)]}),_:3},8,["placement","popper-class","append-to","onShow","onHide"])}var pQ=ye(sQ,[["render",fQ],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function Dm(e){const t=ct();Wd(()=>{n.value.addObserver(t)}),ut(()=>{o(n.value),a(n.value)}),qa(()=>{o(n.value),a(n.value)}),Ms(()=>{n.value.removeObserver(t)});const n=k(()=>{const l=e.layout;if(!l)throw new Error("Can not find table layout.");return l}),o=l=>{var r;const i=((r=e.vnode.el)==null?void 0:r.querySelectorAll("colgroup > col"))||[];if(!i.length)return;const u=l.getFlattenColumns(),c={};u.forEach(d=>{c[d.id]=d});for(let d=0,f=i.length;d<f;d++){const h=i[d],m=h.getAttribute("name"),p=c[m];p&&h.setAttribute("width",p.realWidth||p.width)}},a=l=>{var r,i;const u=((r=e.vnode.el)==null?void 0:r.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,f=u.length;d<f;d++)u[d].setAttribute("width",l.scrollY.value?l.gutterWidth:"0");const c=((i=e.vnode.el)==null?void 0:i.querySelectorAll("th.gutter"))||[];for(let d=0,f=c.length;d<f;d++){const h=c[d];h.style.width=l.scrollY.value?`${l.gutterWidth}px`:"0",h.style.display=l.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:o,onScrollableChange:a}}const Sa=Symbol("ElTable");function vQ(e,t){const n=ct(),o=Ee(Sa),a=v=>{v.stopPropagation()},l=(v,g)=>{!g.filters&&g.sortable?p(v,g,!1):g.filterable&&!g.sortable&&a(v),o==null||o.emit("header-click",g,v)},r=(v,g)=>{o==null||o.emit("header-contextmenu",g,v)},i=P(null),u=P(!1),c=P(),d=(v,g)=>{var b,C;if(!!Tt&&!(g.children&&g.children.length>0)&&i.value&&e.border&&i.value.id===g.id){u.value=!0;const w=o;t("set-drag-visible",!0);const y=w==null?void 0:w.vnode.el,S=y==null?void 0:y.getBoundingClientRect().left,E=(C=(b=n==null?void 0:n.vnode)==null?void 0:b.el)==null?void 0:C.querySelector(`th.${g.id}`),_=E.getBoundingClientRect(),T=_.left-S+30;Yo(E,"noclick"),c.value={startMouseLeft:v.clientX,startLeft:_.right-S,startColumnLeft:_.left-S,tableLeft:S};const N=w==null?void 0:w.refs.resizeProxy;N.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const O=M=>{const L=M.clientX-c.value.startMouseLeft,H=c.value.startLeft+L;N.style.left=`${Math.max(T,H)}px`},A=()=>{if(u.value){const{startColumnLeft:M,startLeft:L}=c.value,K=Number.parseInt(N.style.left,10)-M;g.width=g.realWidth=K,w==null||w.emit("header-dragend",g.width,L-M,g,v),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",u.value=!1,i.value=null,c.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",A),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{no(E,"noclick")},0)};document.addEventListener("mousemove",O),document.addEventListener("mouseup",A)}},f=(v,g)=>{var b;if(!e.border||g.children&&g.children.length>0)return;const C=v.target,w=wo(C)?C.closest("th"):null;if(!w)return;const y=Na(w,"is-sortable");if(y){const O=u.value?"col-resize":"";w.style.cursor=O;const A=w.querySelector(".caret-wrapper");A&&(A.style.cursor=O)}if(!g.resizable||u.value){i.value=null;return}const S=w.getBoundingClientRect(),E=((b=w.parentNode)==null?void 0:b.lastElementChild)===w,_=e.allowDragLastColumn||!E,T=S.width>12&&S.right-v.clientX<8&&_,N=T?"col-resize":"";document.body.style.cursor=N,i.value=T?g:null,y&&(w.style.cursor=N)},h=()=>{!Tt||u.value||(document.body.style.cursor="")},m=({order:v,sortOrders:g})=>{if(v==="")return g[0];const b=g.indexOf(v||null);return g[b>g.length-2?0:b+1]},p=(v,g,b)=>{var C;v.stopPropagation();const w=g.order===b?null:b||m(g),y=(C=v.target)==null?void 0:C.closest("th");if(y&&Na(y,"noclick")){no(y,"noclick");return}if(!g.sortable)return;const S=v.currentTarget;if(["ascending","descending"].some(O=>Na(S,O)&&!g.sortOrders.includes(O)))return;const E=e.store.states;let _=E.sortProp.value,T;const N=E.sortingColumn.value;(N!==g||N===g&&oi(N.order))&&(N&&(N.order=null),E.sortingColumn.value=g,_=g.property),w?T=g.order=w:T=g.order=null,E.sortProp.value=_,E.sortOrder.value=T,o==null||o.store.commit("changeSortCondition")};return{handleHeaderClick:l,handleHeaderContextMenu:r,handleMouseDown:d,handleMouseMove:f,handleMouseOut:h,handleSortClick:p,handleFilterClick:a}}function hQ(e){const t=Ee(Sa),n=fe("table");return{getHeaderRowStyle:i=>{const u=t==null?void 0:t.props.headerRowStyle;return lt(u)?u.call(null,{rowIndex:i}):u},getHeaderRowClass:i=>{const u=[],c=t==null?void 0:t.props.headerRowClassName;return He(c)?u.push(c):lt(c)&&u.push(c.call(null,{rowIndex:i})),u.join(" ")},getHeaderCellStyle:(i,u,c,d)=>{var f;let h=(f=t==null?void 0:t.props.headerCellStyle)!=null?f:{};lt(h)&&(h=h.call(null,{rowIndex:i,columnIndex:u,row:c,column:d}));const m=Nm(u,d.fixed,e.store,c);return ks(m,"left"),ks(m,"right"),Object.assign({},h,m)},getHeaderCellClass:(i,u,c,d)=>{const f=Mm(n.b(),u,d.fixed,e.store,c),h=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...f];d.children||h.push("is-leaf"),d.sortable&&h.push("is-sortable");const m=t==null?void 0:t.props.headerCellClassName;return He(m)?h.push(m):lt(m)&&h.push(m.call(null,{rowIndex:i,columnIndex:u,row:c,column:d})),h.push(n.e("cell")),h.filter(p=>Boolean(p)).join(" ")}}}const A_=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,A_(n.children))):t.push(n)}),t},P_=e=>{let t=1;const n=(l,r)=>{if(r&&(l.level=r.level+1,t<l.level&&(t=l.level)),l.children){let i=0;l.children.forEach(u=>{n(u,l),i+=u.colSpan}),l.colSpan=i}else l.colSpan=1};e.forEach(l=>{l.level=1,n(l,void 0)});const o=[];for(let l=0;l<t;l++)o.push([]);return A_(e).forEach(l=>{l.children?(l.rowSpan=1,l.children.forEach(r=>r.isSubColumn=!0)):l.rowSpan=t-l.level+1,o[l.level-1].push(l)}),o};function mQ(e){const t=Ee(Sa),n=k(()=>P_(e.store.states.originColumns.value));return{isGroup:k(()=>{const l=n.value.length>1;return l&&t&&(t.state.isGroup.value=!0),l}),toggleAllSelection:l=>{l.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var gQ=ae({name:"ElTableHeader",components:{ElCheckbox:ea},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const n=ct(),o=Ee(Sa),a=fe("table"),l=P({}),{onColumnsChange:r,onScrollableChange:i}=Dm(o),u=(o==null?void 0:o.props.tableLayout)==="auto",c=Pt(new Map),d=P();let f;const h=()=>{f=setTimeout(()=>{c.size>0&&(c.forEach((M,L)=>{const H=d.value.querySelector(`.${L.replace(/\s/g,".")}`);if(H){const K=H.getBoundingClientRect().width;M.width=K||M.width}}),c.clear())})};ie(c,h),Bt(()=>{f&&(clearTimeout(f),f=void 0)}),ut(async()=>{await ke(),await ke();const{prop:M,order:L}=e.defaultSort;o==null||o.store.commit("sort",{prop:M,order:L,init:!0}),h()});const{handleHeaderClick:m,handleHeaderContextMenu:p,handleMouseDown:v,handleMouseMove:g,handleMouseOut:b,handleSortClick:C,handleFilterClick:w}=vQ(e,t),{getHeaderRowStyle:y,getHeaderRowClass:S,getHeaderCellStyle:E,getHeaderCellClass:_}=hQ(e),{isGroup:T,toggleAllSelection:N,columnRows:O}=mQ(e),{t:A}=wt();return n.state={onColumnsChange:r,onScrollableChange:i},n.filterPanels=l,{ns:a,t:A,filterPanels:l,onColumnsChange:r,onScrollableChange:i,columnRows:O,getHeaderRowClass:S,getHeaderRowStyle:y,getHeaderCellClass:_,getHeaderCellStyle:E,handleHeaderClick:m,handleHeaderContextMenu:p,handleMouseDown:v,handleMouseMove:g,handleMouseOut:b,handleSortClick:C,handleFilterClick:w,isGroup:T,toggleAllSelection:N,saveIndexSelection:c,isTableLayoutAuto:u,theadRef:d,updateFixedColumnStyle:h}},render(){const{ns:e,t,isGroup:n,columnRows:o,getHeaderCellStyle:a,getHeaderCellClass:l,getHeaderRowClass:r,getHeaderRowStyle:i,handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:d,handleMouseMove:f,handleSortClick:h,handleMouseOut:m,store:p,$parent:v,saveIndexSelection:g,isTableLayoutAuto:b}=this;let C=1;return Le("thead",{ref:"theadRef",class:e.is("group",n)},o.map((w,y)=>Le("tr",{class:r(y),key:y,style:i(y)},w.map((S,E)=>{S.rowSpan>C&&(C=S.rowSpan);const _=l(y,E,w,S);return b&&S.fixed&&g.set(_,S),Le("th",{class:_,colspan:S.colSpan,key:`${S.id}-thead`,rowspan:S.rowSpan,scope:S.colSpan>1?"colgroup":"col",ariaSort:S.sortable?S.order:void 0,style:a(y,E,w,S),onClick:T=>{var N;(N=T.currentTarget)!=null&&N.classList.contains("noclick")||u(T,S)},onContextmenu:T=>c(T,S),onMousedown:T=>d(T,S),onMousemove:T=>f(T,S),onMouseout:m},[Le("div",{class:["cell",S.filteredValue&&S.filteredValue.length>0?"highlight":""]},[S.renderHeader?S.renderHeader({column:S,$index:E,store:p,_self:v}):S.label,S.sortable&&Le("button",{type:"button",class:"caret-wrapper","aria-label":t("el.table.sortLabel",{column:S.label||""}),onClick:T=>h(T,S)},[Le("i",{onClick:T=>h(T,S,"ascending"),class:"sort-caret ascending"}),Le("i",{onClick:T=>h(T,S,"descending"),class:"sort-caret descending"})]),S.filterable&&Le(pQ,{store:p,placement:S.filterPlacement||"bottom-start",appendTo:v==null?void 0:v.appendFilterPanelTo,column:S,upDataColumn:(T,N)=>{S[T]=N}},{"filter-icon":()=>S.renderFilterIcon?S.renderFilterIcon({filterOpened:S.filterOpened}):null})])])}))))}});function Bm(e,t,n=.03){return e-t>n}function bQ(e){const t=Ee(Sa),n=P(""),o=P(Le("div")),a=(p,v,g)=>{var b,C,w;const y=t,S=xm(p);let E=null;const _=(b=y==null?void 0:y.vnode.el)==null?void 0:b.dataset.prefix;S&&(E=$_({columns:(w=(C=e.store)==null?void 0:C.states.columns.value)!=null?w:[]},S,_),E&&(y==null||y.emit(`cell-${g}`,v,E,S,p))),y==null||y.emit(`row-${g}`,v,E,p)},l=(p,v)=>{a(p,v,"dblclick")},r=(p,v)=>{var g;(g=e.store)==null||g.commit("setCurrentRow",v),a(p,v,"click")},i=(p,v)=>{a(p,v,"contextmenu")},u=ua(p=>{var v;(v=e.store)==null||v.commit("setHoverRow",p)},30),c=ua(()=>{var p;(p=e.store)==null||p.commit("setHoverRow",null)},30),d=p=>{const v=window.getComputedStyle(p,null),g=Number.parseInt(v.paddingLeft,10)||0,b=Number.parseInt(v.paddingRight,10)||0,C=Number.parseInt(v.paddingTop,10)||0,w=Number.parseInt(v.paddingBottom,10)||0;return{left:g,right:b,top:C,bottom:w}},f=(p,v,g)=>{var b;let C=(b=v==null?void 0:v.target)==null?void 0:b.parentNode;for(;p>1&&(C=C==null?void 0:C.nextSibling,!(!C||C.nodeName!=="TR"));)g(C,"hover-row hover-fixed-row"),p--};return{handleDoubleClick:l,handleClick:r,handleContextMenu:i,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(p,v,g)=>{var b,C,w,y,S,E,_,T,N;if(!t)return;const O=t,A=xm(p),M=(b=O==null?void 0:O.vnode.el)==null?void 0:b.dataset.prefix;let L=null;if(A){if(L=$_({columns:(w=(C=e.store)==null?void 0:C.states.columns.value)!=null?w:[]},A,M),!L)return;A.rowSpan>1&&f(A.rowSpan,p,Yo);const le=O.hoverState={cell:A,column:L,row:v};O==null||O.emit("cell-mouse-enter",le.row,le.column,le.cell,p)}if(!g){((y=ro)==null?void 0:y.trigger)===A&&((S=ro)==null||S());return}const H=p.target.querySelector(".cell");if(!(Na(H,`${M}-tooltip`)&&H.childNodes.length&&((E=H.textContent)==null?void 0:E.trim())))return;const K=document.createRange();K.setStart(H,0),K.setEnd(H,H.childNodes.length);const{width:Y,height:I}=K.getBoundingClientRect(),{width:R,height:D}=H.getBoundingClientRect(),{top:B,left:z,right:U,bottom:V}=d(H),G=z+U,X=B+V;Bm(Y+G,R)||Bm(I+X,D)||Bm(H.scrollWidth,R)?XJ(g,(_=(A==null?void 0:A.innerText)||(A==null?void 0:A.textContent))!=null?_:"",v,L,A,O):((T=ro)==null?void 0:T.trigger)===A&&((N=ro)==null||N())},handleCellMouseLeave:p=>{const v=xm(p);if(!v)return;v.rowSpan>1&&f(v.rowSpan,p,no);const g=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",g==null?void 0:g.row,g==null?void 0:g.column,g==null?void 0:g.cell,p)},tooltipContent:n,tooltipTrigger:o}}function yQ(e){const t=Ee(Sa),n=fe("table");return{getRowStyle:(c,d)=>{const f=t==null?void 0:t.props.rowStyle;return lt(f)?f.call(null,{row:c,rowIndex:d}):f||null},getRowClass:(c,d,f)=>{var h;const m=[n.e("row")];(t==null?void 0:t.props.highlightCurrentRow)&&c===((h=e.store)==null?void 0:h.states.currentRow.value)&&m.push("current-row"),e.stripe&&f%2===1&&m.push(n.em("row","striped"));const p=t==null?void 0:t.props.rowClassName;return He(p)?m.push(p):lt(p)&&m.push(p.call(null,{row:c,rowIndex:d})),m},getCellStyle:(c,d,f,h)=>{const m=t==null?void 0:t.props.cellStyle;let p=m!=null?m:{};lt(m)&&(p=m.call(null,{rowIndex:c,columnIndex:d,row:f,column:h}));const v=Nm(d,e==null?void 0:e.fixed,e.store);return ks(v,"left"),ks(v,"right"),Object.assign({},p,v)},getCellClass:(c,d,f,h,m)=>{const p=Mm(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,m),v=[h.id,h.align,h.className,...p],g=t==null?void 0:t.props.cellClassName;return He(g)?v.push(g):lt(g)&&v.push(g.call(null,{rowIndex:c,columnIndex:d,row:f,column:h})),v.push(n.e("cell")),v.filter(b=>Boolean(b)).join(" ")},getSpan:(c,d,f,h)=>{let m=1,p=1;const v=t==null?void 0:t.props.spanMethod;if(lt(v)){const g=v({row:c,column:d,rowIndex:f,columnIndex:h});$e(g)?(m=g[0],p=g[1]):Rt(g)&&(m=g.rowspan,p=g.colspan)}return{rowspan:m,colspan:p}},getColspanRealWidth:(c,d,f)=>{if(d<1)return c[f].realWidth;const h=c.map(({realWidth:m,width:p})=>m||p).slice(f,f+d);return Number(h.reduce((m,p)=>Number(m)+Number(p),-1))}}}const wQ=["colspan","rowspan"],CQ=ae({name:"TableTdWrapper",__name:"td-wrapper",props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>($(),F("td",{colspan:e.colspan,rowspan:e.rowspan},[ee(t.$slots,"default")],8,wQ))}});var SQ=ye(CQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table-body/td-wrapper.vue"]]);function kQ(e){const t=Ee(Sa),n=fe("table"),{handleDoubleClick:o,handleClick:a,handleContextMenu:l,handleMouseEnter:r,handleMouseLeave:i,handleCellMouseEnter:u,handleCellMouseLeave:c,tooltipContent:d,tooltipTrigger:f}=bQ(e),{getRowStyle:h,getRowClass:m,getCellStyle:p,getCellClass:v,getSpan:g,getColspanRealWidth:b}=yQ(e);let C=-1;const w=k(()=>{var T;return(T=e.store)==null?void 0:T.states.columns.value.findIndex(({type:N})=>N==="default")}),y=(T,N)=>{var O;const A=(O=t==null?void 0:t.props)==null?void 0:O.rowKey;return A?Jn(T,A):N},S=(T,N,O,A=!1)=>{const{tooltipEffect:M,tooltipOptions:L,store:H}=e,{indent:K,columns:Y}=H.states,I=[];let R=!0;return O&&(I.push(n.em("row",`level-${O.level}`)),R=!!O.display),N===0&&(C=-1),e.stripe&&R&&C++,I.push(...m(T,N,C)),Le("tr",{style:[R?null:{display:"none"},h(T,N)],class:I,key:y(T,N),onDblclick:B=>o(B,T),onClick:B=>a(B,T),onContextmenu:B=>l(B,T),onMouseenter:()=>r(N),onMouseleave:i},Y.value.map((B,z)=>{const{rowspan:U,colspan:V}=g(T,B,N,z);if(!U||!V)return null;const G=Object.assign({},B);G.realWidth=b(Y.value,V,z);const X={store:H,_self:e.context||t,column:G,row:T,$index:N,cellIndex:z,expanded:A};z===w.value&&O&&(X.treeNode={indent:O.level&&O.level*K.value,level:O.level},zt(O.expanded)&&(X.treeNode.expanded=O.expanded,"loading"in O&&(X.treeNode.loading=O.loading),"noLazyChildren"in O&&(X.treeNode.noLazyChildren=O.noLazyChildren)));const le=`${y(T,N)},${z}`,se=G.columnKey||G.rawColumnKey||"",de=B.showOverflowTooltip&&op({effect:M},L,B.showOverflowTooltip);return Le(SQ,{style:p(N,z,T,B),class:v(N,z,T,B,V-1),key:`${se}${le}`,rowspan:U,colspan:V,onMouseenter:ce=>u(ce,T,de),onMouseleave:c},{default:()=>E(z,B,X)})}))},E=(T,N,O)=>N.renderCell(O);return{wrappedRowRender:(T,N)=>{const O=e.store,{isRowExpanded:A,assertRowKey:M}=O,{treeData:L,lazyTreeNodeMap:H,childrenColumnName:K,rowKey:Y}=O.states,I=O.states.columns.value;if(I.some(({type:D})=>D==="expand")){const D=A(T),B=S(T,N,void 0,D),z=t==null?void 0:t.renderExpanded;if(!z)return console.error("[Element Error]renderExpanded is required."),B;const U=[[B]];return(t.props.preserveExpandedContent||D)&&U[0].push(Le("tr",{key:`expanded-row__${B.key}`,style:{display:D?"":"none"}},[Le("td",{colspan:I.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[z({row:T,$index:N,store:O,expanded:D})])])),U}else if(Object.keys(L.value).length){M();const D=Jn(T,Y.value);let B=L.value[D],z=null;B&&(z={expanded:B.expanded,level:B.level,display:!0,noLazyChildren:void 0,loading:void 0},zt(B.lazy)&&(z&&zt(B.loaded)&&B.loaded&&(z.noLazyChildren=!(B.children&&B.children.length)),z.loading=B.loading));const U=[S(T,N,z!=null?z:void 0)];if(B){let V=0;const G=(le,se)=>{!(le&&le.length&&se)||le.forEach(de=>{const ce={display:se.display&&se.expanded,level:se.level+1,expanded:!1,noLazyChildren:!1,loading:!1},ne=Jn(de,Y.value);if(Co(ne))throw new Error("For nested data item, row-key is required.");if(B={...L.value[ne]},B&&(ce.expanded=B.expanded,B.level=B.level||ce.level,B.display=!!(B.expanded&&ce.display),zt(B.lazy)&&(zt(B.loaded)&&B.loaded&&(ce.noLazyChildren=!(B.children&&B.children.length)),ce.loading=B.loading)),V++,U.push(S(de,N+V,ce)),B){const j=H.value[ne]||de[K.value];G(j,B)}})};B.display=!0;const X=H.value[D]||T[K.value];G(X,B)}return U}else return S(T,N,void 0)},tooltipContent:d,tooltipTrigger:f}}const EQ={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var $Q=EQ,_Q=ae({name:"ElTableBody",props:$Q,setup(e){var t;const n=ct(),o=Ee(Sa),a=fe("table"),{wrappedRowRender:l,tooltipContent:r,tooltipTrigger:i}=kQ(e),{onColumnsChange:u,onScrollableChange:c}=Dm(o),d=[];return ie((t=e.store)==null?void 0:t.states.hoverRow,(f,h)=>{var m,p;const v=n==null?void 0:n.vnode.el,g=Array.from((v==null?void 0:v.children)||[]).filter(w=>w==null?void 0:w.classList.contains(`${a.e("row")}`));let b=f;const C=(m=g[b])==null?void 0:m.childNodes;if(C!=null&&C.length){let w=0;Array.from(C).reduce((S,E,_)=>{var T,N;return((T=C[_])==null?void 0:T.colSpan)>1&&(w=(N=C[_])==null?void 0:N.colSpan),E.nodeName!=="TD"&&w===0&&S.push(_),w>0&&w--,S},[]).forEach(S=>{var E;for(b=f;b>0;){const _=(E=g[b-1])==null?void 0:E.childNodes;if(_[S]&&_[S].nodeName==="TD"&&_[S].rowSpan>1){Yo(_[S],"hover-cell"),d.push(_[S]);break}b--}})}else d.forEach(w=>no(w,"hover-cell")),d.length=0;!((p=e.store)!=null&&p.states.isComplex.value)||!Tt||Ma(()=>{const w=g[h],y=g[f];w&&!w.classList.contains("hover-fixed-row")&&no(w,"hover-row"),y&&Yo(y,"hover-row")})}),Ms(()=>{var f;(f=ro)==null||f()}),{ns:a,onColumnsChange:u,onScrollableChange:c,wrappedRowRender:l,tooltipContent:r,tooltipTrigger:i}},render(){const{wrappedRowRender:e,store:t}=this,n=(t==null?void 0:t.states.data.value)||[];return Le("tbody",{tabIndex:-1},[n.reduce((o,a)=>o.concat(e(a,o.length)),[])])}});function TQ(){const e=Ee(Sa),t=e==null?void 0:e.store,n=k(()=>{var i;return(i=t==null?void 0:t.states.fixedLeafColumnsLength.value)!=null?i:0}),o=k(()=>{var i;return(i=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?i:0}),a=k(()=>{var i;return(i=t==null?void 0:t.states.columns.value.length)!=null?i:0}),l=k(()=>{var i;return(i=t==null?void 0:t.states.fixedColumns.value.length)!=null?i:0}),r=k(()=>{var i;return(i=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?i:0});return{leftFixedLeafCount:n,rightFixedLeafCount:o,columnsCount:a,leftFixedCount:l,rightFixedCount:r,columns:k(()=>{var i;return(i=t==null?void 0:t.states.columns.value)!=null?i:[]})}}function OQ(e){const{columns:t}=TQ(),n=fe("table");return{getCellClasses:(l,r)=>{const i=l[r],u=[n.e("cell"),i.id,i.align,i.labelClassName,...Mm(n.b(),r,i.fixed,e.store)];return i.className&&u.push(i.className),i.children||u.push(n.is("leaf")),u},getCellStyles:(l,r)=>{const i=Nm(r,l.fixed,e.store);return ks(i,"left"),ks(i,"right"),i},columns:t}}var RQ=ae({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=Ee(Sa),n=fe("table"),{getCellClasses:o,getCellStyles:a,columns:l}=OQ(e),{onScrollableChange:r,onColumnsChange:i}=Dm(t);return{ns:n,onScrollableChange:r,onColumnsChange:i,getCellClasses:o,getCellStyles:a,columns:l}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:o,sumText:a}=this,l=this.store.states.data.value;let r=[];return o?r=o({columns:e,data:l}):e.forEach((i,u)=>{if(u===0){r[u]=a;return}const c=l.map(m=>Number(m[i.property])),d=[];let f=!0;c.forEach(m=>{if(!Number.isNaN(+m)){f=!1;const p=`${m}`.split(".")[1];d.push(p?p.length:0)}});const h=Math.max.apply(null,d);f?r[u]="":r[u]=c.reduce((m,p)=>{const v=Number(p);return Number.isNaN(+v)?m:Number.parseFloat((m+p).toFixed(Math.min(h,20)))},0)}),Le(Le("tfoot",[Le("tr",{},[...e.map((i,u)=>Le("td",{key:u,colspan:i.colSpan,rowspan:i.rowSpan,class:n(e,u),style:t(i,u)},[Le("div",{class:["cell",i.labelClassName]},[r[u]])]))])]))}});function xQ(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,h,m=!0)=>{e.toggleRowSelection(f,h,!1,m),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,h)=>{e.toggleRowExpansionAdapter(f,h)},clearSort:()=>{e.clearSort()},sort:(f,h)=>{e.commit("sort",{prop:f,order:h})},updateKeyChildren:(f,h)=>{e.updateKeyChildren(f,h)}}}function IQ(e,t,n,o){const a=P(!1),l=P(null),r=P(!1),i=I=>{r.value=I},u=P({width:null,height:null,headerHeight:null}),c=P(!1),d={display:"inline-block",verticalAlign:"middle"},f=P(),h=P(0),m=P(0),p=P(0),v=P(0),g=P(0);ie(()=>e.height,I=>{t.setHeight(I!=null?I:null)},{immediate:!0}),ie(()=>e.maxHeight,I=>{t.setMaxHeight(I!=null?I:null)},{immediate:!0}),ie(()=>[e.currentRowKey,n.states.rowKey],([I,R])=>{!s(R)||!s(I)||n.setCurrentRowKey(`${I}`)},{immediate:!0}),ie(()=>e.data,I=>{o.store.commit("setData",I)},{immediate:!0,deep:!0}),io(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const b=()=>{o.store.commit("setHoverRow",null),o.hoverState&&(o.hoverState=null)},C=(I,R)=>{const{pixelX:D,pixelY:B}=R;Math.abs(D)>=Math.abs(B)&&(o.refs.bodyWrapper.scrollLeft+=R.pixelX/5)},w=k(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),y=k(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),S=()=>{w.value&&t.updateElsHeight(),t.updateColumnsWidth(),typeof window!="undefined"&&requestAnimationFrame(N)};ut(async()=>{await ke(),n.updateColumns(),O(),requestAnimationFrame(S);const I=o.vnode.el,R=o.refs.headerWrapper;e.flexible&&I&&I.parentElement&&(I.parentElement.style.minWidth="0"),u.value={width:f.value=I.offsetWidth,height:I.offsetHeight,headerHeight:e.showHeader&&R?R.offsetHeight:null},n.states.columns.value.forEach(D=>{D.filteredValue&&D.filteredValue.length&&o.store.commit("filterChange",{column:D,values:D.filteredValue,silent:!0})}),o.$ready=!0});const E=(I,R)=>{if(!I)return;const D=Array.from(I.classList).filter(B=>!B.startsWith("is-scrolling-"));D.push(t.scrollX.value?R:"is-scrolling-none"),I.className=D.join(" ")},_=I=>{const{tableWrapper:R}=o.refs;E(R,I)},T=I=>{const{tableWrapper:R}=o.refs;return!!(R&&R.classList.contains(I))},N=function(){if(!o.refs.scrollBarRef)return;if(!t.scrollX.value){const G="is-scrolling-none";T(G)||_(G);return}const I=o.refs.scrollBarRef.wrapRef;if(!I)return;const{scrollLeft:R,offsetWidth:D,scrollWidth:B}=I,{headerWrapper:z,footerWrapper:U}=o.refs;z&&(z.scrollLeft=R),U&&(U.scrollLeft=R);const V=B-D-1;R>=V?_("is-scrolling-right"):_(R===0?"is-scrolling-left":"is-scrolling-middle")},O=()=>{!o.refs.scrollBarRef||(o.refs.scrollBarRef.wrapRef&&Mt(o.refs.scrollBarRef.wrapRef,"scroll",N,{passive:!0}),e.fit?Qt(o.vnode.el,A):Mt(window,"resize",A),Qt(o.refs.tableInnerWrapper,()=>{var I,R;A(),(R=(I=o.refs)==null?void 0:I.scrollBarRef)==null||R.update()}))},A=()=>{var I,R,D,B;const z=o.vnode.el;if(!o.$ready||!z)return;let U=!1;const{width:V,height:G,headerHeight:X}=u.value,le=f.value=z.offsetWidth;V!==le&&(U=!0);const se=z.offsetHeight;(e.height||w.value)&&G!==se&&(U=!0);const de=e.tableLayout==="fixed"?o.refs.headerWrapper:(I=o.refs.tableHeaderRef)==null?void 0:I.$el;e.showHeader&&(de==null?void 0:de.offsetHeight)!==X&&(U=!0),h.value=((R=o.refs.tableWrapper)==null?void 0:R.scrollHeight)||0,p.value=(de==null?void 0:de.scrollHeight)||0,v.value=((D=o.refs.footerWrapper)==null?void 0:D.offsetHeight)||0,g.value=((B=o.refs.appendWrapper)==null?void 0:B.offsetHeight)||0,m.value=h.value-p.value-v.value-g.value,U&&(u.value={width:le,height:se,headerHeight:e.showHeader&&(de==null?void 0:de.offsetHeight)||0},S())},M=wn(),L=k(()=>{const{bodyWidth:I,scrollY:R,gutterWidth:D}=t;return I.value?`${I.value-(R.value?D:0)}px`:""}),H=k(()=>e.maxHeight?"fixed":e.tableLayout),K=k(()=>{if(e.data&&e.data.length)return;let I="100%";e.height&&m.value&&(I=`${m.value}px`);const R=f.value;return{width:R?`${R}px`:"",height:I}}),Y=k(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${p.value+v.value}px)`}:{maxHeight:`${+e.maxHeight-p.value-v.value}px`}:{});return{isHidden:a,renderExpanded:l,setDragVisible:i,isGroup:c,handleMouseLeave:b,handleHeaderFooterMousewheel:C,tableSize:M,emptyBlockStyle:K,resizeProxyVisible:r,bodyWidth:L,resizeState:u,doLayout:S,tableBodyStyles:y,tableLayout:H,scrollbarViewStyle:d,scrollbarStyle:Y}}function MQ(e){let t;const n=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),l={childList:!0,subtree:!0},r=e.store.states.updateOrderFns;t=new MutationObserver(()=>{r.forEach(i=>i())}),t.observe(a,l)};ut(()=>{n()}),Ms(()=>{t==null||t.disconnect()})}var NQ={data:{type:Array,default:()=>[]},size:Tn,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:[String,Object,Array],default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:Boolean,nativeScrollbar:Boolean};function L_(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:a})=>_t(a))&&(n=[]);const o=a=>{const l={key:`${e.tableLayout}_${a.id}`,style:{},name:void 0};return t?l.style={width:`${a.width}px`}:l.name=a.id,l};return Le("colgroup",{},n.map(a=>Le("col",o(a))))}L_.props=["columns","tableLayout"];const AQ=()=>{const e=P(),t=(l,r)=>{const i=e.value;i&&i.scrollTo(l,r)},n=(l,r)=>{const i=e.value;i&&xe(r)&&["Top","Left"].includes(l)&&i[`setScroll${l}`](r)};return{scrollBarRef:e,scrollTo:t,setScrollTop:l=>n("Top",l),setScrollLeft:l=>n("Left",l)}};let PQ=1;const LQ=ae({name:"ElTable",directives:{Mousewheel:yk},components:{TableHeader:gQ,TableBody:_Q,TableFooter:RQ,ElScrollbar:Jo,hColgroup:L_},props:NQ,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t}=wt(),n=fe("table"),o=ct();St(Sa,o);const a=oQ(o,e);o.store=a;const l=new rQ({store:o.store,table:o,fit:e.fit,showHeader:e.showHeader});o.layout=l;const r=k(()=>(a.states.data.value||[]).length===0),{setCurrentRow:i,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:m,clearSort:p,sort:v,updateKeyChildren:g}=xQ(a),{isHidden:b,renderExpanded:C,setDragVisible:w,isGroup:y,handleMouseLeave:S,handleHeaderFooterMousewheel:E,tableSize:_,emptyBlockStyle:T,resizeProxyVisible:N,bodyWidth:O,resizeState:A,doLayout:M,tableBodyStyles:L,tableLayout:H,scrollbarViewStyle:K,scrollbarStyle:Y}=IQ(e,l,a,o),{scrollBarRef:I,scrollTo:R,setScrollLeft:D,setScrollTop:B}=AQ(),z=ua(M,50),U=`${n.namespace.value}-table_${PQ++}`;o.tableId=U,o.state={isGroup:y,resizeState:A,doLayout:M,debouncedUpdateLayout:z};const V=k(()=>{var le;return(le=e.sumText)!=null?le:t("el.table.sumText")}),G=k(()=>{var le;return(le=e.emptyText)!=null?le:t("el.table.emptyText")}),X=k(()=>P_(a.states.originColumns.value)[0]);return MQ(o),Bt(()=>{z.cancel()}),{ns:n,layout:l,store:a,columns:X,handleHeaderFooterMousewheel:E,handleMouseLeave:S,tableId:U,tableSize:_,isHidden:b,isEmpty:r,renderExpanded:C,resizeProxyVisible:N,resizeState:A,isGroup:y,bodyWidth:O,tableBodyStyles:L,emptyBlockStyle:T,debouncedUpdateLayout:z,setCurrentRow:i,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:m,clearSort:p,doLayout:M,sort:v,updateKeyChildren:g,t,setDragVisible:w,context:o,computedSumText:V,computedEmptyText:G,tableLayout:H,scrollbarViewStyle:K,scrollbarStyle:Y,scrollBarRef:I,scrollTo:R,setScrollLeft:D,setScrollTop:B,allowDragLastColumn:e.allowDragLastColumn}}}),DQ=["data-prefix"],BQ={ref:"hiddenColumns",class:"hidden-columns"};function FQ(e,t,n,o,a,l){const r=It("hColgroup"),i=It("table-header"),u=It("table-body"),c=It("table-footer"),d=It("el-scrollbar"),f=jd("mousewheel");return $(),F("div",{ref:"tableWrapper",class:x([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Ie(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[1]||(t[1]=(...h)=>e.handleMouseLeave&&e.handleMouseLeave(...h))},[W("div",{ref:"tableInnerWrapper",class:x(e.ns.e("inner-wrapper"))},[W("div",BQ,[ee(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?tt(($(),F("div",{key:0,ref:"headerWrapper",class:x(e.ns.e("header-wrapper"))},[W("table",{ref:"tableHeader",class:x(e.ns.e("header")),style:Ie(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[Z(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Z(i,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):te("v-if",!0),W("div",{ref:"bodyWrapper",class:x(e.ns.e("body-wrapper"))},[Z(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,native:e.nativeScrollbar,onScroll:t[0]||(t[0]=h=>e.$emit("scroll",h))},{default:Q(()=>[W("table",{ref:"tableBody",class:x(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Ie({width:e.bodyWidth,tableLayout:e.tableLayout})},[Z(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?($(),oe(i,{key:0,ref:"tableHeaderRef",class:x(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):te("v-if",!0),Z(u,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?($(),oe(c,{key:1,class:x(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):te("v-if",!0)],6),e.isEmpty?($(),F("div",{key:0,ref:"emptyBlock",style:Ie(e.emptyBlockStyle),class:x(e.ns.e("empty-block"))},[W("span",{class:x(e.ns.e("empty-text"))},[ee(e.$slots,"empty",{},()=>[bt(ge(e.computedEmptyText),1)])],2)],6)):te("v-if",!0),e.$slots.append?($(),F("div",{key:1,ref:"appendWrapper",class:x(e.ns.e("append-wrapper"))},[ee(e.$slots,"append")],2)):te("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","native"])],2),e.showSummary&&e.tableLayout==="fixed"?tt(($(),F("div",{key:1,ref:"footerWrapper",class:x(e.ns.e("footer-wrapper"))},[W("table",{class:x(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:Ie(e.tableBodyStyles)},[Z(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Z(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[xt,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):te("v-if",!0),e.border||e.isGroup?($(),F("div",{key:2,class:x(e.ns.e("border-left-patch"))},null,2)):te("v-if",!0)],2),tt(W("div",{ref:"resizeProxy",class:x(e.ns.e("column-resize-proxy"))},null,2),[[xt,e.resizeProxyVisible]])],46,DQ)}var VQ=ye(LQ,[["render",FQ],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const zQ={selection:"table-column--selection",expand:"table__expand-column"},HQ={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},WQ=e=>zQ[e]||"",KQ={selection:{renderHeader({store:e}){var t;function n(){return e.states.data.value&&e.states.data.value.length===0}return Le(ea,{disabled:n(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":(t=e.toggleAllSelection)!=null?t:void 0,modelValue:e.states.isAllSelected.value,ariaLabel:e.t("el.table.selectAllLabel")})},renderCell({row:e,column:t,store:n,$index:o}){return Le(ea,{disabled:t.selectable?!t.selectable.call(null,e,o):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:a=>a.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:n.t("el.table.selectRowLabel")})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const o=e.index;return xe(o)?n=t+o:lt(o)&&(n=o(t)),Le("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({column:e,row:t,store:n,expanded:o}){const{ns:a}=n,l=[a.e("expand-icon")];!e.renderExpand&&o&&l.push(a.em("expand-icon","expanded"));const r=function(i){i.stopPropagation(),n.toggleRowExpansion(t)};return Le("button",{type:"button","aria-label":n.t(o?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":o,class:l,onClick:r},{default:()=>e.renderExpand?[e.renderExpand({expanded:o})]:[Le(_e,null,{default:()=>[Le(oo)]})]})},sortable:!1,resizable:!1}};function jQ({row:e,column:t,$index:n}){var o;const a=t.property,l=a&&Kr(e,a).value;return t&&t.formatter?t.formatter(e,t,l,n):((o=l==null?void 0:l.toString)==null?void 0:o.call(l))||""}function YQ({row:e,treeNode:t,store:n},o=!1){const{ns:a}=n;if(!t)return o?[Le("span",{class:a.e("placeholder")})]:null;const l=[],r=function(i){i.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&l.push(Le("span",{class:a.e("indent"),style:{"padding-left":`${t.indent}px`}})),zt(t.expanded)&&!t.noLazyChildren){const i=[a.e("expand-icon"),t.expanded?a.em("expand-icon","expanded"):""];let u=oo;t.loading&&(u=Pa),l.push(Le("button",{type:"button","aria-label":n.t(t.expanded?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":t.expanded,class:i,onClick:r},{default:()=>[Le(_e,{class:a.is("loading",t.loading)},{default:()=>[Le(u)]})]}))}else l.push(Le("span",{class:a.e("placeholder")}));return l}function D_(e,t){return e.reduce((n,o)=>(n[o]=o,n),t)}function UQ(e,t){const n=ct();return{registerComplexWatchers:()=>{const l=["fixed"],r={realWidth:"width",realMinWidth:"minWidth"},i=D_(l,r);Object.keys(i).forEach(u=>{const c=r[u];Bn(t,c)&&ie(()=>t[c],d=>{let f=d;c==="width"&&u==="realWidth"&&(f=Im(d)),c==="minWidth"&&u==="realMinWidth"&&(f=__(d)),n.columnConfig.value[c]=f,n.columnConfig.value[u]=f;const h=c==="fixed";e.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const l=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter","resizable"],r=["showOverflowTooltip"],i={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},u=D_(l,i);Object.keys(u).forEach(c=>{const d=i[c];Bn(t,d)&&ie(()=>t[d],f=>{n.columnConfig.value[c]=f,(c==="filters"||c==="filterMethod")&&(n.columnConfig.value.filterable=!!(n.columnConfig.value.filters||n.columnConfig.value.filterMethod))})}),r.forEach(c=>{Bn(e.value.props,c)&&ie(()=>e.value.props[c],d=>{n.columnConfig.value.type!=="selection"&&(!_t(t[c])||(n.columnConfig.value[c]=d))})})}}}function GQ(e,t,n){const o=ct(),a=P(""),l=P(!1),r=P(),i=P(),u=fe("table");io(()=>{r.value=e.align?`is-${e.align}`:null,r.value}),io(()=>{i.value=e.headerAlign?`is-${e.headerAlign}`:r.value,i.value});const c=k(()=>{let y=o.vnode.vParent||o.parent;for(;y&&!y.tableId&&!y.columnId;)y=y.vnode.vParent||y.parent;return y}),d=k(()=>{const{store:y}=o.parent;if(!y)return!1;const{treeData:S}=y.states,E=S.value;return E&&Object.keys(E).length>0}),f=P(Im(e.width)),h=P(__(e.minWidth)),m=y=>(f.value&&(y.width=f.value),h.value&&(y.minWidth=h.value),!f.value&&h.value&&(y.width=void 0),y.minWidth||(y.minWidth=80),y.realWidth=Number(_t(y.width)?y.minWidth:y.width),y),p=y=>{const S=y.type,E=KQ[S]||{};Object.keys(E).forEach(T=>{const N=E[T];T!=="className"&&!_t(N)&&(y[T]=N)});const _=WQ(S);if(_){const T=`${s(u.namespace)}-${_}`;y.className=y.className?`${y.className} ${T}`:T}return y},v=y=>{$e(y)?y.forEach(E=>S(E)):S(y);function S(E){var _;((_=E==null?void 0:E.type)==null?void 0:_.name)==="ElTableColumn"&&(E.vParent=o)}};return{columnId:a,realAlign:r,isSubColumn:l,realHeaderAlign:i,columnOrTableParent:c,setColumnWidth:m,setColumnForcedProps:p,setColumnRenders:y=>{e.renderHeader||y.type!=="selection"&&(y.renderHeader=E=>{if(o.columnConfig.value.label,t.header){const _=t.header(E);if(I_(_))return Le(Be,_)}return bt(y.label)}),t["filter-icon"]&&(y.renderFilterIcon=E=>ee(t,"filter-icon",E)),t.expand&&(y.renderExpand=E=>ee(t,"expand",E));let S=y.renderCell;return y.type==="expand"?(y.renderCell=E=>Le("div",{class:"cell"},[S(E)]),n.value.renderExpanded=E=>t.default?t.default(E):t.default):(S=S||jQ,y.renderCell=E=>{let _=null;if(t.default){const L=t.default(E);_=L.some(H=>H.type!==Ga)?L:S(E)}else _=S(E);const{columns:T}=n.value.store.states,N=T.value.findIndex(L=>L.type==="default"),O=d.value&&E.cellIndex===N,A=YQ(E,O),M={class:"cell",style:{}};return y.showOverflowTooltip&&(M.class=`${M.class} ${s(u.namespace)}-tooltip`,M.style={width:`${(E.column.realWidth||Number(E.column.width))-1}px`}),v(_),Le("div",M,[A,_])}),y},getPropsData:(...y)=>y.reduce((S,E)=>($e(E)&&E.forEach(_=>{S[_]=e[_]}),S),{}),getColumnElIndex:(y,S)=>Array.prototype.indexOf.call(y,S),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",o.columnConfig.value)}}}var qQ={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let XQ=1;var B_=ae({name:"ElTableColumn",components:{ElCheckbox:ea},props:qQ,setup(e,{slots:t}){const n=ct(),o=P({}),a=k(()=>{let w=n.parent;for(;w&&!w.tableId;)w=w.parent;return w}),{registerNormalWatchers:l,registerComplexWatchers:r}=UQ(a,e),{columnId:i,isSubColumn:u,realHeaderAlign:c,columnOrTableParent:d,setColumnWidth:f,setColumnForcedProps:h,setColumnRenders:m,getPropsData:p,getColumnElIndex:v,realAlign:g,updateColumnOrder:b}=GQ(e,t,a),C=d.value;i.value=`${"tableId"in C&&C.tableId||"columnId"in C&&C.columnId}_column_${XQ++}`,Wd(()=>{u.value=a.value!==C;const w=e.type||"default",y=e.sortable===""?!0:e.sortable,S=w==="selection"?!1:_t(e.showOverflowTooltip)?C.props.showOverflowTooltip:e.showOverflowTooltip,E=_t(e.tooltipFormatter)?C.props.tooltipFormatter:e.tooltipFormatter,_={...HQ[w],id:i.value,type:w,property:e.prop||e.property,align:g,headerAlign:c,showOverflowTooltip:S,tooltipFormatter:E,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:y,index:e.index,rawColumnKey:n.vnode.key};let M=p(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);M=jJ(_,M),M=UJ(m,f,h)(M),o.value=M,l(),r()}),ut(()=>{var w,y;const S=d.value,E=u.value?(w=S.vnode.el)==null?void 0:w.children:(y=S.refs.hiddenColumns)==null?void 0:y.children,_=()=>v(E||[],n.vnode.el);o.value.getColumnIndex=_,_()>-1&&a.value.store.commit("insertColumn",o.value,u.value?"columnConfig"in S&&S.columnConfig.value:null,b)}),Bt(()=>{const w=o.value.getColumnIndex;(w?w():-1)>-1&&a.value.store.commit("removeColumn",o.value,u.value?"columnConfig"in C&&C.columnConfig.value:null,b)}),n.columnId=i.value,n.columnConfig=o},render(){var e,t,n;try{const o=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),a=[];if($e(o))for(const r of o)((n=r.type)==null?void 0:n.name)==="ElTableColumn"||r.shapeFlag&2?a.push(r):r.type===Be&&$e(r.children)&&r.children.forEach(i=>{(i==null?void 0:i.patchFlag)!==1024&&!He(i==null?void 0:i.children)&&a.push(i)});return Le("div",a)}catch(o){return Le("div",[])}}});const F_=Qe(VQ,{TableColumn:B_}),V_=sn(B_);var jl=(e=>(e.ASC="asc",e.DESC="desc",e))(jl||{}),Es=(e=>(e.LEFT="left",e.CENTER="center",e.RIGHT="right",e))(Es||{}),Fm=(e=>(e.LEFT="left",e.RIGHT="right",e))(Fm||{});const Vm={asc:"desc",desc:"asc"},$s=Symbol("placeholder"),ZQ=(e,t,n)=>{var o,a,l;const r={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:(o=e.flexGrow)!=null?o:0,flexShrink:(a=e.flexShrink)!=null?a:1}},i={...(l=e.style)!=null?l:{},...r,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(i.maxWidth=e.maxWidth),e.minWidth&&(i.minWidth=e.minWidth)),i};function JQ(e,t,n){const o=k(()=>s(t).map((g,b)=>{var C,w;return{...g,key:(w=(C=g.key)!=null?C:g.dataKey)!=null?w:b}})),a=k(()=>s(o).filter(g=>!g.hidden)),l=k(()=>s(a).filter(g=>g.fixed==="left"||g.fixed===!0)),r=k(()=>s(a).filter(g=>g.fixed==="right")),i=k(()=>s(a).filter(g=>!g.fixed)),u=k(()=>{const g=[];return s(l).forEach(b=>{g.push({...b,placeholderSign:$s})}),s(i).forEach(b=>{g.push(b)}),s(r).forEach(b=>{g.push({...b,placeholderSign:$s})}),g}),c=k(()=>s(l).length||s(r).length),d=k(()=>s(o).reduce((g,b)=>(g[b.key]=ZQ(b,s(n),e.fixed),g),{})),f=k(()=>s(a).reduce((g,b)=>g+b.width,0)),h=g=>s(o).find(b=>b.key===g),m=g=>s(d)[g],p=(g,b)=>{g.width=b};function v(g){var b;const{key:C}=g.currentTarget.dataset;if(!C)return;const{sortState:w,sortBy:y}=e;let S=jl.ASC;Rt(w)?S=Vm[w[C]]:S=Vm[y.order],(b=e.onColumnSort)==null||b.call(e,{column:h(C),key:C,order:S})}return{columns:o,columnsStyles:d,columnsTotalWidth:f,fixedColumnsOnLeft:l,fixedColumnsOnRight:r,hasFixedColumns:c,mainColumns:u,normalColumns:i,visibleColumns:a,getColumn:h,getColumnStyle:m,updateColumnWidth:p,onColumnSorted:v}}const QQ=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,onMaybeEndReached:a})=>{const l=P({scrollLeft:0,scrollTop:0});function r(m){var p,v,g;const{scrollTop:b}=m;(p=t.value)==null||p.scrollTo(m),(v=n.value)==null||v.scrollToTop(b),(g=o.value)==null||g.scrollToTop(b)}function i(m){l.value=m,r(m)}function u(m){l.value.scrollTop=m,r(s(l))}function c(m){var p,v;l.value.scrollLeft=m,(v=(p=t.value)==null?void 0:p.scrollTo)==null||v.call(p,s(l))}function d(m){var p;i(m),(p=e.onScroll)==null||p.call(e,m)}function f({scrollTop:m}){const{scrollTop:p}=s(l);m!==p&&u(m)}function h(m,p="auto"){var v;(v=t.value)==null||v.scrollToRow(m,p)}return ie(()=>s(l).scrollTop,(m,p)=>{m>p&&a()}),{scrollPos:l,scrollTo:i,scrollToLeft:c,scrollToTop:u,scrollToRow:h,onScroll:d,onVerticalScroll:f}},eee=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,tableInstance:a,ns:l,isScrolling:r})=>{const i=ct(),{emit:u}=i,c=Zt(!1),d=P(e.defaultExpandedRowKeys||[]),f=P(-1),h=Zt(null),m=P({}),p=P({}),v=Zt({}),g=Zt({}),b=Zt({}),C=k(()=>xe(e.estimatedRowHeight));function w(O){var A;(A=e.onRowsRendered)==null||A.call(e,O),O.rowCacheEnd>s(f)&&(f.value=O.rowCacheEnd)}function y({hovered:O,rowKey:A}){if(r.value)return;a.vnode.el.querySelectorAll(`[rowkey="${String(A)}"]`).forEach(H=>{O?H.classList.add(l.is("hovered")):H.classList.remove(l.is("hovered"))})}function S({expanded:O,rowData:A,rowIndex:M,rowKey:L}){var H,K;const Y=[...s(d)],I=Y.indexOf(L);O?I===-1&&Y.push(L):I>-1&&Y.splice(I,1),d.value=Y,u("update:expandedRowKeys",Y),(H=e.onRowExpand)==null||H.call(e,{expanded:O,rowData:A,rowIndex:M,rowKey:L}),(K=e.onExpandedRowsChange)==null||K.call(e,Y),a.vnode.el.querySelector(`.${l.is("hovered")}[rowkey="${String(L)}"]`)&&ke(()=>y({hovered:!0,rowKey:L}))}const E=ua(()=>{var O,A,M,L;c.value=!0,m.value={...s(m),...s(p)},_(s(h),!1),p.value={},h.value=null,(O=t.value)==null||O.forceUpdate(),(A=n.value)==null||A.forceUpdate(),(M=o.value)==null||M.forceUpdate(),(L=i.proxy)==null||L.$forceUpdate(),c.value=!1},0);function _(O,A=!1){!s(C)||[t,n,o].forEach(M=>{const L=s(M);L&&L.resetAfterRowIndex(O,A)})}function T(O,A,M){const L=s(h);(L===null||L>M)&&(h.value=M),p.value[O]=A}function N({rowKey:O,height:A,rowIndex:M},L){L?L===Fm.RIGHT?b.value[O]=A:v.value[O]=A:g.value[O]=A;const H=Math.max(...[v,b,g].map(K=>K.value[O]||0));s(m)[O]!==H&&(T(O,H,M),E())}return{expandedRowKeys:d,lastRenderedRowIndex:f,isDynamic:C,isResetting:c,rowHeights:m,resetAfterIndex:_,onRowExpanded:S,onRowHovered:y,onRowsRendered:w,onRowHeightChange:N}},tee=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:o})=>{const a=P({}),l=k(()=>{const i={},{data:u,rowKey:c}=e,d=s(t);if(!d||!d.length)return u;const f=[],h=new Set;d.forEach(p=>h.add(p));let m=u.slice();for(m.forEach(p=>i[p[c]]=0);m.length>0;){const p=m.shift();f.push(p),h.has(p[c])&&$e(p.children)&&p.children.length>0&&(m=[...p.children,...m],p.children.forEach(v=>i[v[c]]=i[p[c]]+1))}return a.value=i,f}),r=k(()=>{const{data:i,expandColumnKey:u}=e;return u?s(l):i});return ie(r,(i,u)=>{i!==u&&(n.value=-1,o(0,!0))}),{data:r,depthMap:a}},nee=(e,t)=>e+t,kd=e=>$e(e)?e.reduce(nee,0):e,yr=(e,t,n={})=>lt(e)?e(t):e!=null?e:n,Yl=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=cn(e[t])}),e),z_=e=>Jt(e)?t=>Le(e,t):e,oee=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:o,fixedColumnsOnRight:a})=>{const l=k(()=>{const{fixed:b,width:C,vScrollbarSize:w}=e,y=C-w;return b?Math.max(Math.round(s(t)),y):y}),r=k(()=>{const{height:b=0,maxHeight:C=0,footerHeight:w,hScrollbarSize:y}=e;if(C>0){const S=s(h),E=s(n),T=s(f)+S+E+y;return Math.min(T,C-w)}return b-w}),i=k(()=>{const{maxHeight:b}=e,C=s(r);if(xe(b)&&b>0)return C;const w=s(n)+s(f)+s(h);return Math.min(C,w)}),u=b=>b.width,c=k(()=>kd(s(o).map(u))),d=k(()=>kd(s(a).map(u))),f=k(()=>kd(e.headerHeight)),h=k(()=>{var b;return(((b=e.fixedData)==null?void 0:b.length)||0)*e.rowHeight}),m=k(()=>s(r)-s(f)-s(h)),p=k(()=>{const{style:b={},height:C,width:w}=e;return Yl({...b,height:C,width:w})}),v=k(()=>Yl({height:e.footerHeight})),g=k(()=>({top:cn(s(f)),bottom:cn(e.footerHeight),width:cn(e.width)}));return{bodyWidth:l,fixedTableHeight:i,mainTableHeight:r,leftTableWidth:c,rightTableWidth:d,windowHeight:m,footerHeight:v,emptyStyle:g,rootStyle:p,headerHeight:f}},aee=e=>{const t=P(),n=P(0),o=P(0);let a;return ut(()=>{a=Qt(t,([l])=>{const{width:r,height:i}=l.contentRect,{paddingLeft:u,paddingRight:c,paddingTop:d,paddingBottom:f}=getComputedStyle(l.target),h=Number.parseInt(u)||0,m=Number.parseInt(c)||0,p=Number.parseInt(d)||0,v=Number.parseInt(f)||0;n.value=r-h-m,o.value=i-p-v}).stop}),Bt(()=>{a==null||a()}),ie([n,o],([l,r])=>{var i;(i=e.onResize)==null||i.call(e,{width:l,height:r})}),{sizer:t,width:n,height:o}};function lee(e){const t=P(),n=P(),o=P(),{columns:a,columnsStyles:l,columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,hasFixedColumns:c,mainColumns:d,onColumnSorted:f}=JQ(e,Lt(e,"columns"),Lt(e,"fixed")),{scrollTo:h,scrollToLeft:m,scrollToTop:p,scrollToRow:v,onScroll:g,onVerticalScroll:b,scrollPos:C}=QQ(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,onMaybeEndReached:Se}),w=fe("table-v2"),y=ct(),S=Zt(!1),{expandedRowKeys:E,lastRenderedRowIndex:_,isDynamic:T,isResetting:N,rowHeights:O,resetAfterIndex:A,onRowExpanded:M,onRowHeightChange:L,onRowHovered:H,onRowsRendered:K}=eee(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,tableInstance:y,ns:w,isScrolling:S}),{data:Y,depthMap:I}=tee(e,{expandedRowKeys:E,lastRenderedRowIndex:_,resetAfterIndex:A}),R=k(()=>{const{estimatedRowHeight:Te,rowHeight:De}=e,ze=s(Y);return xe(Te)?Object.values(s(O)).reduce((Ze,nt)=>Ze+nt,0):ze.length*De}),{bodyWidth:D,fixedTableHeight:B,mainTableHeight:z,leftTableWidth:U,rightTableWidth:V,windowHeight:G,footerHeight:X,emptyStyle:le,rootStyle:se,headerHeight:de}=oee(e,{columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,rowsHeight:R}),ce=P(),ne=k(()=>{const Te=s(Y).length===0;return $e(e.fixedData)?e.fixedData.length===0&&Te:Te});function j(Te){const{estimatedRowHeight:De,rowHeight:ze,rowKey:Ze}=e;return De?s(O)[s(Y)[Te][Ze]]||De:ze}const re=P(!1);function Se(){const{onEndReached:Te}=e;if(!Te)return;const{scrollTop:De}=s(C),ze=s(R),Ze=s(G),nt=ze-(De+Ze)+e.hScrollbarSize;!re.value&&s(_)>=0&&ze<=De+s(z)-s(de)?(re.value=!0,Te(nt)):re.value=!1}return ie(()=>s(R),()=>re.value=!1),ie(()=>e.expandedRowKeys,Te=>E.value=Te,{deep:!0}),{columns:a,containerRef:ce,mainTableRef:t,leftTableRef:n,rightTableRef:o,isDynamic:T,isResetting:N,isScrolling:S,hasFixedColumns:c,columnsStyles:l,columnsTotalWidth:r,data:Y,expandedRowKeys:E,depthMap:I,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,mainColumns:d,bodyWidth:D,emptyStyle:le,rootStyle:se,footerHeight:X,mainTableHeight:z,fixedTableHeight:B,leftTableWidth:U,rightTableWidth:V,showEmpty:ne,getRowHeight:j,onColumnSorted:f,onRowHovered:H,onRowExpanded:M,onRowsRendered:K,onRowHeightChange:L,scrollTo:h,scrollToLeft:m,scrollToTop:p,scrollToRow:v,onScroll:g,onVerticalScroll:b}}const zm=Symbol("tableV2"),H_="tableV2GridScrollLeft",W_=String,qi={type:q(Array),required:!0},Hm={type:q(Array)},K_={...Hm,required:!0},ree=String,j_={type:q(Array),default:()=>dn([])},wr={type:Number,required:!0},Y_={type:q([String,Number,Symbol]),default:"id"},U_={type:q(Object)},Ul=he({class:String,columns:qi,columnsStyles:{type:q(Object),required:!0},depth:Number,expandColumnKey:ree,estimatedRowHeight:{...Kl.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:q(Function)},onRowHover:{type:q(Function)},onRowHeightChange:{type:q(Function)},rowData:{type:q(Object),required:!0},rowEventHandlers:{type:q(Object)},rowIndex:{type:Number,required:!0},rowKey:Y_,style:{type:q(Object)}}),Wm={type:Number,required:!0},Km=he({class:String,columns:qi,fixedHeaderData:{type:q(Array)},headerData:{type:q(Array),required:!0},headerHeight:{type:q([Number,Array]),default:50},rowWidth:Wm,rowHeight:{type:Number,default:50},height:Wm,width:Wm}),Ed=he({columns:qi,data:K_,fixedData:Hm,estimatedRowHeight:Ul.estimatedRowHeight,width:wr,height:wr,headerWidth:wr,headerHeight:Km.headerHeight,bodyWidth:wr,rowHeight:wr,cache:wm.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Kl.scrollbarAlwaysOn,scrollbarStartGap:Kl.scrollbarStartGap,scrollbarEndGap:Kl.scrollbarEndGap,class:W_,style:U_,containerStyle:U_,getRowHeight:{type:q(Function),required:!0},rowKey:Ul.rowKey,onRowsRendered:{type:q(Function)},onScroll:{type:q(Function)}}),G_=he({cache:Ed.cache,estimatedRowHeight:Ul.estimatedRowHeight,rowKey:Y_,headerClass:{type:q([String,Function])},headerProps:{type:q([Object,Function])},headerCellProps:{type:q([Object,Function])},headerHeight:Km.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:q([String,Function])},rowProps:{type:q([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:q([Object,Function])},columns:qi,data:K_,dataGetter:{type:q(Function)},fixedData:Hm,expandColumnKey:Ul.expandColumnKey,expandedRowKeys:j_,defaultExpandedRowKeys:j_,class:W_,fixed:Boolean,style:{type:q(Object)},width:wr,height:wr,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Kl.hScrollbarSize,vScrollbarSize:Kl.vScrollbarSize,scrollbarAlwaysOn:Sm.alwaysOn,sortBy:{type:q(Object),default:()=>({})},sortState:{type:q(Object),default:void 0},onColumnSort:{type:q(Function)},onExpandedRowsChange:{type:q(Function)},onEndReached:{type:q(Function)},onRowExpand:Ul.onRowExpand,onScroll:Ed.onScroll,onRowsRendered:Ed.onRowsRendered,rowEventHandlers:Ul.rowEventHandlers}),jm=(e,{slots:t})=>{var n;const{cellData:o,style:a}=e,l=((n=o==null?void 0:o.toString)==null?void 0:n.call(o))||"",r=ee(t,"default",e,()=>[l]);return Z("div",{class:e.class,title:l,style:a},[r])};jm.displayName="ElTableV2Cell",jm.inheritAttrs=!1;var see=jm;const Ym=(e,{slots:t})=>ee(t,"default",e,()=>{var n,o;return[Z("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(o=e.column)==null?void 0:o.title])]});Ym.displayName="ElTableV2HeaderCell",Ym.inheritAttrs=!1;var iee=Ym;const uee=he({class:String,columns:qi,columnsStyles:{type:q(Object),required:!0},headerIndex:Number,style:{type:q(Object)}}),cee=ae({name:"ElTableV2HeaderRow",props:uee,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:o,headerIndex:a,style:l}=e;let r=n.map((i,u)=>t.cell({columns:n,column:i,columnIndex:u,headerIndex:a,style:o[i.key]}));return t.header&&(r=t.header({cells:r.map(i=>$e(i)&&i.length===1?i[0]:i),columns:n,headerIndex:a})),Z("div",{class:e.class,style:l,role:"row"},[r])}}});var dee=cee;const fee="ElTableV2Header",pee=ae({name:fee,props:Km,setup(e,{slots:t,expose:n}){const o=fe("table-v2"),a=Ee(H_),l=P(),r=k(()=>Yl({width:e.width,height:e.height})),i=k(()=>Yl({width:e.rowWidth,height:e.height})),u=k(()=>An(s(e.headerHeight))),c=h=>{const m=s(l);ke(()=>{m!=null&&m.scroll&&m.scroll({left:h})})},d=()=>{const h=o.e("fixed-header-row"),{columns:m,fixedHeaderData:p,rowHeight:v}=e;return p==null?void 0:p.map((g,b)=>{var C;const w=Yl({height:v,width:"100%"});return(C=t.fixed)==null?void 0:C.call(t,{class:h,columns:m,rowData:g,rowIndex:-(b+1),style:w})})},f=()=>{const h=o.e("dynamic-header-row"),{columns:m}=e;return s(u).map((p,v)=>{var g;const b=Yl({width:"100%",height:p});return(g=t.dynamic)==null?void 0:g.call(t,{class:h,columns:m,headerIndex:v,style:b})})};return qa(()=>{a!=null&&a.value&&c(a.value)}),n({scrollToLeft:c}),()=>{if(!(e.height<=0))return Z("div",{ref:l,class:e.class,style:s(r),role:"rowgroup"},[Z("div",{style:s(i),class:o.e("header")},[f(),d()])])}}});var vee=pee;const hee=e=>{const{isScrolling:t}=Ee(zm),n=P(!1),o=P(),a=k(()=>xe(e.estimatedRowHeight)&&e.rowIndex>=0),l=(u=!1)=>{const c=s(o);if(!c)return;const{columns:d,onRowHeightChange:f,rowKey:h,rowIndex:m,style:p}=e,{height:v}=c.getBoundingClientRect();n.value=!0,ke(()=>{if(u||v!==Number.parseInt(p.height)){const g=d[0],b=(g==null?void 0:g.placeholderSign)===$s;f==null||f({rowKey:h,height:v,rowIndex:m},g&&!b&&g.fixed)}})},r=k(()=>{const{rowData:u,rowIndex:c,rowKey:d,onRowHover:f}=e,h=e.rowEventHandlers||{},m={};return Object.entries(h).forEach(([p,v])=>{lt(v)&&(m[p]=g=>{v({event:g,rowData:u,rowIndex:c,rowKey:d})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:p,hovered:v})=>{const g=m[p];m[p]=b=>{f({event:b,hovered:v,rowData:u,rowIndex:c,rowKey:d}),g==null||g(b)}}),m}),i=u=>{const{onRowExpand:c,rowData:d,rowIndex:f,rowKey:h}=e;c==null||c({expanded:u,rowData:d,rowIndex:f,rowKey:h})};return ut(()=>{s(a)&&l(!0)}),{isScrolling:t,measurable:a,measured:n,rowRef:o,eventHandlers:r,onExpand:i}},mee="ElTableV2TableRow",gee=ae({name:mee,props:Ul,setup(e,{expose:t,slots:n,attrs:o}){const{eventHandlers:a,isScrolling:l,measurable:r,measured:i,rowRef:u,onExpand:c}=hee(e);return t({onExpand:c}),()=>{const{columns:d,columnsStyles:f,expandColumnKey:h,depth:m,rowData:p,rowIndex:v,style:g}=e;let b=d.map((C,w)=>{const y=$e(p.children)&&p.children.length>0&&C.key===h;return n.cell({column:C,columns:d,columnIndex:w,depth:m,style:f[C.key],rowData:p,rowIndex:v,isScrolling:s(l),expandIconProps:y?{rowData:p,rowIndex:v,onExpand:c}:void 0})});if(n.row&&(b=n.row({cells:b.map(C=>$e(C)&&C.length===1?C[0]:C),style:g,columns:d,depth:m,rowData:p,rowIndex:v,isScrolling:s(l)})),s(r)){const{height:C,...w}=g||{},y=s(i);return Z("div",rt({ref:u,class:e.class,style:y?g:w,role:"row"},o,s(a)),[b])}return Z("div",rt(o,{ref:u,class:e.class,style:g,role:"row"},s(a)),[b])}}});var bee=gee;const yee=e=>{const{sortOrder:t}=e;return Z("button",{type:"button","aria-label":e.ariaLabel,class:e.class},[Z(_e,{size:14},{default:()=>[t===jl.ASC?Z(GV,null,null):Z(YV,null,null)]})])};var wee=yee;const q_=e=>{const{expanded:t,expandable:n,onExpand:o,style:a,size:l,ariaLabel:r}=e,i={onClick:n?()=>o(!t):void 0,ariaLabel:r,ariaExpanded:t,class:e.class};return Z("button",rt(i,{type:"button"}),[Z(_e,{size:l,style:a},{default:()=>[Z(oo,null,null)]})])};q_.inheritAttrs=!1;var Cee=q_;const See="ElTableV2Grid",kee=e=>{const t=P(),n=P(),o=P(0),a=k(()=>{const{data:g,rowHeight:b,estimatedRowHeight:C}=e;if(!C)return g.length*b}),l=k(()=>{const{fixedData:g,rowHeight:b}=e;return((g==null?void 0:g.length)||0)*b}),r=k(()=>kd(e.headerHeight)),i=k(()=>{const{height:g}=e;return Math.max(0,g-s(r)-s(l))}),u=k(()=>s(r)+s(l)>0),c=({data:g,rowIndex:b})=>g[b][e.rowKey];function d({rowCacheStart:g,rowCacheEnd:b,rowVisibleStart:C,rowVisibleEnd:w}){var y;(y=e.onRowsRendered)==null||y.call(e,{rowCacheStart:g,rowCacheEnd:b,rowVisibleStart:C,rowVisibleEnd:w})}function f(g,b){var C;(C=n.value)==null||C.resetAfterRowIndex(g,b)}function h(g,b){const C=s(t),w=s(n);Rt(g)?(C==null||C.scrollToLeft(g.scrollLeft),o.value=g.scrollLeft,w==null||w.scrollTo(g)):(C==null||C.scrollToLeft(g),o.value=g,w==null||w.scrollTo({scrollLeft:g,scrollTop:b}))}function m(g){var b;(b=s(n))==null||b.scrollTo({scrollTop:g})}function p(g,b){const C=s(n);if(!C)return;const w=o.value;C.scrollToItem(g,0,b),w&&h({scrollLeft:w})}function v(){var g,b;(g=s(n))==null||g.$forceUpdate(),(b=s(t))==null||b.$forceUpdate()}return ie(()=>e.bodyWidth,()=>{var g;xe(e.estimatedRowHeight)&&((g=n.value)==null||g.resetAfter({columnIndex:0},!1))}),{bodyRef:n,forceUpdate:v,fixedRowHeight:l,gridHeight:i,hasHeader:u,headerHeight:r,headerRef:t,totalHeight:a,itemKey:c,onItemRendered:d,resetAfterRowIndex:f,scrollTo:h,scrollToTop:m,scrollToRow:p,scrollLeft:o}},Um=ae({name:See,props:Ed,setup(e,{slots:t,expose:n}){const{ns:o}=Ee(zm),{bodyRef:a,fixedRowHeight:l,gridHeight:r,hasHeader:i,headerRef:u,headerHeight:c,totalHeight:d,forceUpdate:f,itemKey:h,onItemRendered:m,resetAfterRowIndex:p,scrollTo:v,scrollToTop:g,scrollToRow:b,scrollLeft:C}=kee(e);St(H_,C),Kd(async()=>{var y;await ke();const S=(y=a.value)==null?void 0:y.states.scrollTop;S&&g(Math.round(S)+1)}),n({forceUpdate:f,totalHeight:d,scrollTo:v,scrollToTop:g,scrollToRow:b,resetAfterRowIndex:p});const w=()=>e.bodyWidth;return()=>{const{cache:y,columns:S,data:E,fixedData:_,useIsScrolling:T,scrollbarAlwaysOn:N,scrollbarEndGap:O,scrollbarStartGap:A,style:M,rowHeight:L,bodyWidth:H,estimatedRowHeight:K,headerWidth:Y,height:I,width:R,getRowHeight:D,onScroll:B}=e,z=xe(K),U=z?Y$:B$,V=s(c);return Z("div",{role:"table",class:[o.e("table"),e.class],style:M},[Z(U,{ref:a,data:E,useIsScrolling:T,itemKey:h,columnCache:0,columnWidth:z?w:H,totalColumn:1,totalRow:E.length,rowCache:y,rowHeight:z?D:L,width:R,height:s(r),class:o.e("body"),role:"rowgroup",scrollbarStartGap:A,scrollbarEndGap:O,scrollbarAlwaysOn:N,onScroll:B,onItemRendered:m,perfMode:!1},{default:G=>{var X;const le=E[G.rowIndex];return(X=t.row)==null?void 0:X.call(t,{...G,columns:S,rowData:le})}}),s(i)&&Z(vee,{ref:u,class:o.e("header-wrapper"),columns:S,headerData:E,headerHeight:e.headerHeight,fixedHeaderData:_,rowWidth:Y,rowHeight:L,width:R,height:Math.min(V+s(l),I)},{dynamic:t.header,fixed:t.row})])}}});function Eee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const $ee=(e,{slots:t})=>{const{mainTableRef:n,...o}=e;return Z(Um,rt({ref:n},o),Eee(t)?t:{default:()=>[t]})};function _ee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Tee=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...o}=e;return Z(Um,rt({ref:n},o),_ee(t)?t:{default:()=>[t]})};function Oee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Ree=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...o}=e;return Z(Um,rt({ref:n},o),Oee(t)?t:{default:()=>[t]})};function xee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Iee=(e,{slots:t})=>{const{columns:n,columnsStyles:o,depthMap:a,expandColumnKey:l,expandedRowKeys:r,estimatedRowHeight:i,hasFixedColumns:u,rowData:c,rowIndex:d,style:f,isScrolling:h,rowProps:m,rowClass:p,rowKey:v,rowEventHandlers:g,ns:b,onRowHovered:C,onRowExpanded:w}=e,y=yr(p,{columns:n,rowData:c,rowIndex:d},""),S=yr(m,{columns:n,rowData:c,rowIndex:d}),E=c[v],_=a[E]||0,T=Boolean(l),N=d<0,O=[b.e("row"),y,b.is("expanded",T&&r.includes(E)),b.is("fixed",!_&&N),b.is("customized",Boolean(t.row)),{[b.e(`row-depth-${_}`)]:T&&d>=0}],A=u?C:void 0,M={...S,columns:n,columnsStyles:o,class:O,depth:_,expandColumnKey:l,estimatedRowHeight:N?void 0:i,isScrolling:h,rowIndex:d,rowData:c,rowKey:E,rowEventHandlers:g,style:f};return Z(bee,rt(M,{onRowExpand:w,onMouseenter:K=>{A==null||A({hovered:!0,rowKey:E,event:K,rowData:c,rowIndex:d})},onMouseleave:K=>{A==null||A({hovered:!1,rowKey:E,event:K,rowData:c,rowIndex:d})},rowkey:E}),xee(t)?t:{default:()=>[t]})},Gm=({columns:e,column:t,columnIndex:n,depth:o,expandIconProps:a,isScrolling:l,rowData:r,rowIndex:i,style:u,expandedRowKeys:c,ns:d,t:f,cellProps:h,expandColumnKey:m,indentSize:p,iconSize:v,rowKey:g},{slots:b})=>{const C=Yl(u);if(t.placeholderSign===$s)return Z("div",{class:d.em("row-cell","placeholder"),style:C},null);const{cellRenderer:w,dataKey:y,dataGetter:S}=t,E=lt(S)?S({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:i}):gn(r,y!=null?y:""),_=yr(h,{cellData:E,columns:e,column:t,columnIndex:n,rowIndex:i,rowData:r}),T={class:d.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:E,isScrolling:l,rowData:r,rowIndex:i},N=z_(w),O=N?N(T):ee(b,"default",T,()=>[Z(see,T,null)]),A=[d.e("row-cell"),t.class,t.align===Es.CENTER&&d.is("align-center"),t.align===Es.RIGHT&&d.is("align-right")],M=i>=0&&m&&t.key===m,L=i>=0&&c.includes(r[g]);let H;const K=`margin-inline-start: ${o*p}px;`;return M&&(Rt(a)?H=Z(Cee,rt(a,{class:[d.e("expand-icon"),d.is("expanded",L)],size:v,expanded:L,ariaLabel:f(L?"el.table.collapseRowLabel":"el.table.expandRowLabel"),style:K,expandable:!0}),null):H=Z("div",{style:[K,`width: ${v}px; height: ${v}px;`].join(" ")},null)),Z("div",rt({class:A,style:C},_,{role:"cell"}),[H,O])};Gm.inheritAttrs=!1;function Mee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Nee=({columns:e,columnsStyles:t,headerIndex:n,style:o,headerClass:a,headerProps:l,ns:r},{slots:i})=>{const u={columns:e,headerIndex:n},c=[r.e("header-row"),yr(a,u,""),r.is("customized",Boolean(i.header))],d={...yr(l,u),columnsStyles:t,class:c,columns:e,headerIndex:n,style:o};return Z(dee,d,Mee(i)?i:{default:()=>[i]})},X_=(e,{slots:t})=>{const{column:n,ns:o,t:a,style:l,onColumnSorted:r}=e,i=Yl(l);if(n.placeholderSign===$s)return Z("div",{class:o.em("header-row-cell","placeholder"),style:i},null);const{headerCellRenderer:u,headerClass:c,sortable:d}=n,f={...e,class:o.e("header-cell-text")},h=z_(u),m=h?h(f):ee(t,"default",f,()=>[Z(iee,f,null)]),{sortBy:p,sortState:v,headerCellProps:g}=e;let b,C,w;if(v){const E=v[n.key];b=Boolean(Vm[E]),C=b?E:jl.ASC}else b=n.key===p.key,C=b?p.order:jl.ASC;C===jl.ASC?w="ascending":C===jl.DESC?w="descending":w=void 0;const y=[o.e("header-cell"),yr(c,e,""),n.align===Es.CENTER&&o.is("align-center"),n.align===Es.RIGHT&&o.is("align-right"),d&&o.is("sortable")],S={...yr(g,e),onClick:n.sortable?r:void 0,ariaSort:d?w:void 0,class:y,style:i,["data-key"]:n.key};return Z("div",rt(S,{role:"columnheader"}),[m,d&&Z(wee,{class:[o.e("sort-icon"),b&&o.is("sorting")],sortOrder:C,ariaLabel:a("el.table.sortLabel",{column:n.title||""})},null)])},Z_=(e,{slots:t})=>{var n;return Z("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};Z_.displayName="ElTableV2Footer";const J_=(e,{slots:t})=>{const n=ee(t,"default",{},()=>[Z(em,null,null)]);return Z("div",{class:e.class,style:e.style},[n])};J_.displayName="ElTableV2Empty";const Q_=(e,{slots:t})=>{var n;return Z("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};Q_.displayName="ElTableV2Overlay";function Xi(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Aee="ElTableV2",Pee=ae({name:Aee,props:G_,setup(e,{slots:t,expose:n}){const o=fe("table-v2"),{t:a}=wt(),{columnsStyles:l,fixedColumnsOnLeft:r,fixedColumnsOnRight:i,mainColumns:u,mainTableHeight:c,fixedTableHeight:d,leftTableWidth:f,rightTableWidth:h,data:m,depthMap:p,expandedRowKeys:v,hasFixedColumns:g,mainTableRef:b,leftTableRef:C,rightTableRef:w,isDynamic:y,isResetting:S,isScrolling:E,bodyWidth:_,emptyStyle:T,rootStyle:N,footerHeight:O,showEmpty:A,scrollTo:M,scrollToLeft:L,scrollToTop:H,scrollToRow:K,getRowHeight:Y,onColumnSorted:I,onRowHeightChange:R,onRowHovered:D,onRowExpanded:B,onRowsRendered:z,onScroll:U,onVerticalScroll:V}=lee(e);return n({scrollTo:M,scrollToLeft:L,scrollToTop:H,scrollToRow:K}),St(zm,{ns:o,isResetting:S,isScrolling:E}),()=>{const{cache:G,cellProps:X,estimatedRowHeight:le,expandColumnKey:se,fixedData:de,headerHeight:ce,headerClass:ne,headerProps:j,headerCellProps:re,sortBy:Se,sortState:Te,rowHeight:De,rowClass:ze,rowEventHandlers:Ze,rowKey:nt,rowProps:Et,scrollbarAlwaysOn:Ue,indentSize:Ae,iconSize:Pe,useIsScrolling:Ge,vScrollbarSize:ot,width:pt}=e,Ct=s(m),Ce={cache:G,class:o.e("main"),columns:s(u),data:Ct,fixedData:de,estimatedRowHeight:le,bodyWidth:s(_),headerHeight:ce,headerWidth:s(_),height:s(c),mainTableRef:b,rowKey:nt,rowHeight:De,scrollbarAlwaysOn:Ue,scrollbarStartGap:2,scrollbarEndGap:ot,useIsScrolling:Ge,width:pt,getRowHeight:Y,onRowsRendered:z,onScroll:U},Ve=s(f),We=s(d),Ut={cache:G,class:o.e("left"),columns:s(r),data:Ct,fixedData:de,estimatedRowHeight:le,leftTableRef:C,rowHeight:De,bodyWidth:Ve,headerWidth:Ve,headerHeight:ce,height:We,rowKey:nt,scrollbarAlwaysOn:Ue,scrollbarStartGap:2,scrollbarEndGap:ot,useIsScrolling:Ge,width:Ve,getRowHeight:Y,onScroll:V},Ke=s(h),ft={cache:G,class:o.e("right"),columns:s(i),data:Ct,fixedData:de,estimatedRowHeight:le,rightTableRef:w,rowHeight:De,bodyWidth:Ke,headerWidth:Ke,headerHeight:ce,height:We,rowKey:nt,scrollbarAlwaysOn:Ue,scrollbarStartGap:2,scrollbarEndGap:ot,width:Ke,style:`${o.cssVarName("table-scrollbar-size")}: ${ot}px`,useIsScrolling:Ge,getRowHeight:Y,onScroll:V},it=s(l),mt={ns:o,depthMap:s(p),columnsStyles:it,expandColumnKey:se,expandedRowKeys:s(v),estimatedRowHeight:le,hasFixedColumns:s(g),rowProps:Et,rowClass:ze,rowKey:nt,rowEventHandlers:Ze,onRowHovered:D,onRowExpanded:B,onRowHeightChange:R},ve={cellProps:X,expandColumnKey:se,indentSize:Ae,iconSize:Pe,rowKey:nt,expandedRowKeys:s(v),ns:o,t:a},Oe={ns:o,headerClass:ne,headerProps:j,columnsStyles:it},ue={ns:o,t:a,sortBy:Se,sortState:Te,headerCellProps:re,onColumnSorted:I},Me={row:an=>Z(Iee,rt(an,mt),{row:t.row,cell:Cn=>{let me;return t.cell?Z(Gm,rt(Cn,ve,{style:it[Cn.column.key]}),Xi(me=t.cell(Cn))?me:{default:()=>[me]}):Z(Gm,rt(Cn,ve,{style:it[Cn.column.key]}),null)}}),header:an=>Z(Nee,rt(an,Oe),{header:t.header,cell:Cn=>{let me;return t["header-cell"]?Z(X_,rt(Cn,ue,{style:it[Cn.column.key]}),Xi(me=t["header-cell"](Cn))?me:{default:()=>[me]}):Z(X_,rt(Cn,ue,{style:it[Cn.column.key]}),null)}})},st=[e.class,o.b(),o.e("root"),o.is("dynamic",s(y))],jt={class:o.e("footer"),style:s(O)};return Z("div",{class:st,style:s(N)},[Z($ee,Ce,Xi(Me)?Me:{default:()=>[Me]}),Z(Tee,Ut,Xi(Me)?Me:{default:()=>[Me]}),Z(Ree,ft,Xi(Me)?Me:{default:()=>[Me]}),t.footer&&Z(Z_,jt,{default:t.footer}),s(A)&&Z(J_,{class:o.e("empty"),style:s(T)},{default:t.empty}),t.overlay&&Z(Q_,{class:o.e("overlay")},{default:t.overlay})])}}});var eT=Pee;const tT=he({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:q(Function)}}),Lee=ae({name:"ElAutoResizer",props:tT,setup(e,{slots:t}){const n=fe("auto-resizer"),{height:o,width:a,sizer:l}=aee(e),r={width:"100%",height:"100%"};return()=>{var i;return Z("div",{ref:l,class:n.b(),style:r},[(i=t.default)==null?void 0:i.call(t,{height:o.value,width:a.value})])}}}),nT=Qe(eT),oT=Qe(Lee),Zi=Symbol("tabsRootContextKey"),aT=he({tabs:{type:q(Array),default:()=>dn([])},tabRefs:{type:q(Object),default:()=>dn({})}}),lT="ElTabBar",Dee=ae({name:lT,__name:"tab-bar",props:aT,setup(e,{expose:t}){const n=e,o=Ee(Zi);o||_n(lT,"<el-tabs><el-tab-bar /></el-tabs>");const a=fe("tabs"),l=P(),r=P(),i=k(()=>{var m;return _t(o.props.defaultValue)||Boolean((m=r.value)==null?void 0:m.transform)}),u=()=>{let m=0,p=0;const v=["top","bottom"].includes(o.props.tabPosition)?"width":"height",g=v==="width"?"x":"y",b=g==="x"?"left":"top";return n.tabs.every(C=>{if(_t(C.paneName))return!1;const w=n.tabRefs[C.paneName];if(!w)return!1;if(!C.active)return!0;m=w[`offset${Il(b)}`],p=w[`client${Il(v)}`];const y=window.getComputedStyle(w);return v==="width"&&(p-=Number.parseFloat(y.paddingLeft)+Number.parseFloat(y.paddingRight),m+=Number.parseFloat(y.paddingLeft)),!1}),{[v]:`${p}px`,transform:`translate${Il(g)}(${m}px)`}},c=()=>r.value=u(),d=[],f=()=>{d.forEach(m=>m.stop()),d.length=0,Object.values(n.tabRefs).forEach(m=>{d.push(Qt(m,c))})};ie(()=>n.tabs,async()=>{await ke(),c(),f()},{immediate:!0});const h=Qt(l,()=>c());return Bt(()=>{d.forEach(m=>m.stop()),d.length=0,h.stop()}),t({ref:l,update:c}),(m,p)=>i.value?($(),F("div",{key:0,ref_key:"barRef",ref:l,class:x([s(a).e("active-bar"),s(a).is(s(o).props.tabPosition)]),style:Ie(r.value)},null,6)):te("v-if",!0)}});var Bee=ye(Dee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const rT=he({panes:{type:q(Array),default:()=>dn([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean,tabindex:{type:[String,Number],default:void 0}}),sT={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},iT="ElTabNav",Fee=ae({name:iT,props:rT,emits:sT,setup(e,{expose:t,emit:n}){const o=Ee(Zi);o||_n(iT,"<el-tabs><tab-nav /></el-tabs>");const a=fe("tabs"),l=_R(),r=OR(),i=P(),u=P(),c=P(),d=P({}),f=P(),h=P(!1),m=P(0),p=P(!1),v=P(!0),g=Zt(),b=k(()=>["top","bottom"].includes(o.props.tabPosition)),C=k(()=>b.value?"width":"height"),w=k(()=>({transform:`translate${C.value==="width"?"X":"Y"}(-${m.value}px)`})),{width:y,height:S}=Zd(i),{width:E,height:_}=Zd(u,{width:0,height:0},{box:"border-box"}),T=k(()=>b.value?y.value:S.value),N=k(()=>b.value?E.value:_.value),{onWheel:O}=O$({atStartEdge:k(()=>m.value<=0),atEndEdge:k(()=>N.value-m.value<=T.value),layout:k(()=>b.value?"horizontal":"vertical")},B=>{m.value=Zs(m.value+B,0,N.value-T.value)}),A=()=>{if(!i.value)return;const B=i.value[`offset${Il(C.value)}`],z=m.value;if(!z)return;const U=z>B?z-B:0;m.value=U},M=()=>{if(!i.value||!u.value)return;const B=u.value[`offset${Il(C.value)}`],z=i.value[`offset${Il(C.value)}`],U=m.value;if(B-U<=z)return;const V=B-U>z*2?U+z:B-z;m.value=V},L=async()=>{const B=u.value;if(!h.value||!c.value||!i.value||!B)return;await ke();const z=d.value[e.currentName];if(!z)return;const U=i.value,V=z.getBoundingClientRect(),G=U.getBoundingClientRect(),X=b.value?B.offsetWidth-G.width:B.offsetHeight-G.height,le=m.value;let se=le;b.value?(V.left<G.left&&(se=le-(G.left-V.left)),V.right>G.right&&(se=le+V.right-G.right)):(V.top<G.top&&(se=le-(G.top-V.top)),V.bottom>G.bottom&&(se=le+(V.bottom-G.bottom))),se=Math.max(se,0),m.value=Math.min(se,X)},H=()=>{var B;if(!u.value||!i.value)return;e.stretch&&((B=f.value)==null||B.update());const z=u.value[`offset${Il(C.value)}`],U=i.value[`offset${Il(C.value)}`],V=m.value;U<z?(h.value=h.value||{},h.value.prev=V,h.value.next=V+U<z,z-V<U&&(m.value=z-U)):(h.value=!1,V>0&&(m.value=0))},K=B=>{const z=Wt(B);let U=0;switch(z){case pe.left:case pe.up:U=-1;break;case pe.right:case pe.down:U=1;break;default:return}const V=Array.from(B.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let X=V.indexOf(B.target)+U;X<0?X=V.length-1:X>=V.length&&(X=0),V[X].focus({preventScroll:!0}),V[X].click(),Y()},Y=()=>{v.value&&(p.value=!0)},I=()=>p.value=!1,R=(B,z)=>{d.value[z]=B},D=async()=>{await ke();const B=d.value[e.currentName];B==null||B.focus({preventScroll:!0})};return ie(l,B=>{B==="hidden"?v.value=!1:B==="visible"&&setTimeout(()=>v.value=!0,50)}),ie(r,B=>{B?setTimeout(()=>v.value=!0,50):v.value=!1}),Qt(c,()=>{Ma(H)}),ut(()=>setTimeout(()=>L(),0)),qa(()=>H()),t({scrollToActiveTab:L,removeFocus:I,focusActiveTab:D,tabListRef:u,tabBarRef:f,scheduleRender:()=>du(g)}),()=>{const B=h.value?[Z("span",{class:[a.e("nav-prev"),a.is("disabled",!h.value.prev)],onClick:A},[Z(_e,null,{default:()=>[Z(ul,null,null)]})]),Z("span",{class:[a.e("nav-next"),a.is("disabled",!h.value.next)],onClick:M},[Z(_e,null,{default:()=>[Z(oo,null,null)]})])]:null,z=e.panes.map((U,V)=>{var G,X,le,se,de;const ce=U.uid,ne=U.props.disabled,j=(X=(G=U.props.name)!=null?G:U.index)!=null?X:`${V}`,re=!ne&&(U.isClosable||U.props.closable!==!1&&e.editable);U.index=`${V}`;const Se=re?Z(_e,{class:"is-icon-close",onClick:ze=>n("tabRemove",U,ze)},{default:()=>[Z(Uo,null,null)]}):null,Te=((se=(le=U.slots).label)==null?void 0:se.call(le))||U.props.label,De=!ne&&U.active?(de=e.tabindex)!=null?de:o.props.tabindex:-1;return Z("div",{ref:ze=>R(ze,j),class:[a.e("item"),a.is(o.props.tabPosition),a.is("active",U.active),a.is("disabled",ne),a.is("closable",re),a.is("focus",p.value)],id:`tab-${j}`,key:`tab-${ce}`,"aria-controls":`pane-${j}`,role:"tab","aria-selected":U.active,tabindex:De,onFocus:()=>Y(),onBlur:()=>I(),onClick:ze=>{I(),n("tabClick",U,j,ze)},onKeydown:ze=>{const Ze=Wt(ze);re&&(Ze===pe.delete||Ze===pe.backspace)&&n("tabRemove",U,ze)}},[Te,Se])});return g.value,Z("div",{ref:c,class:[a.e("nav-wrap"),a.is("scrollable",!!h.value),a.is(o.props.tabPosition)]},[B,Z("div",{class:a.e("nav-scroll"),ref:i},[e.panes.length>0?Z("div",{class:[a.e("nav"),a.is(o.props.tabPosition),a.is("stretch",e.stretch&&["top","bottom"].includes(o.props.tabPosition))],ref:u,style:w.value,role:"tablist",onKeydown:K,onWheel:O},[e.type?null:Z(Bee,{ref:f,tabs:[...e.panes],tabRefs:d.value},null),z]):null])])}}}),uT=he({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},defaultValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:q(Function),default:()=>!0},stretch:Boolean,tabindex:{type:[String,Number],default:0}}),qm=e=>He(e)||xe(e),cT={[Ye]:e=>qm(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>qm(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>qm(e),tabAdd:()=>!0},Vee=ae({name:"ElTabs",props:uT,emits:cT,setup(e,{emit:t,slots:n,expose:o}){var a;const l=fe("tabs"),r=k(()=>["left","right"].includes(e.tabPosition)),{children:i,addChild:u,removeChild:c,ChildrenSorter:d}=Si(ct(),"ElTabPane"),f=P(),h=P((a=_t(e.modelValue)?e.defaultValue:e.modelValue)!=null?a:"0"),m=async(w,y=!1)=>{var S,E,_,T;if(!(h.value===w||_t(w)))try{let N;if(e.beforeLeave){const O=e.beforeLeave(w,h.value);N=O instanceof Promise?await O:O}else N=!0;if(N!==!1){const O=(S=i.value.find(A=>A.paneName===h.value))==null?void 0:S.isFocusInsidePane();h.value=w,y&&(t(Ye,w),t("tabChange",w)),(_=(E=f.value)==null?void 0:E.removeFocus)==null||_.call(E),O&&((T=f.value)==null||T.focusActiveTab())}}catch(N){}},p=(w,y,S)=>{w.props.disabled||(t("tabClick",w,S),m(y,!0))},v=(w,y)=>{w.props.disabled||_t(w.props.name)||(y.stopPropagation(),t("edit",w.props.name,"remove"),t("tabRemove",w.props.name))},g=()=>{t("edit",void 0,"add"),t("tabAdd")},b=w=>{const y=Wt(w);[pe.enter,pe.numpadEnter].includes(y)&&g()},C=w=>{const y=w.el.firstChild,S=["bottom","right"].includes(e.tabPosition)?w.children[0].el:w.children[1].el;y!==S&&y.before(S)};return ie(()=>e.modelValue,w=>m(w)),ie(h,async()=>{var w;await ke(),(w=f.value)==null||w.scrollToActiveTab()}),St(Zi,{props:e,currentName:h,registerPane:u,unregisterPane:c,nav$:f}),o({currentName:h,get tabNavRef(){return zr(f.value,["scheduleRender"])}}),()=>{const w=n["add-icon"],y=e.editable||e.addable?Z("div",{class:[l.e("new-tab"),r.value&&l.e("new-tab-vertical")],tabindex:e.tabindex,onClick:g,onKeydown:b},[w?ee(n,"add-icon"):Z(_e,{class:l.is("icon-plus")},{default:()=>[Z(K1,null,null)]})]):null,S=()=>Z(Fee,{ref:f,currentName:h.value,editable:e.editable,type:e.type,panes:i.value,stretch:e.stretch,onTabClick:p,onTabRemove:v},null),E=Z("div",{class:[l.e("header"),r.value&&l.e("header-vertical"),l.is(e.tabPosition)]},[Z(d,null,{default:S,$stable:!0}),y]),_=Z("div",{class:l.e("content")},[ee(n,"default")]);return Z("div",{class:[l.b(),l.m(e.tabPosition),{[l.m("card")]:e.type==="card",[l.m("border-card")]:e.type==="border-card"}],onVnodeMounted:C,onVnodeUpdated:C},[_,E])}}}),dT=he({label:{type:String,default:""},name:{type:[String,Number]},closable:{type:Boolean,default:void 0},disabled:Boolean,lazy:Boolean}),zee=["id","aria-hidden","aria-labelledby"],fT="ElTabPane",Hee=ae({name:fT,__name:"tab-pane",props:dT,setup(e){const t=e,n=ct(),o=mn(),a=Ee(Zi);a||_n(fT,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const l=fe("tab-pane"),r=P(),i=P(),u=k(()=>{var v;return(v=t.closable)!=null?v:a.props.closable}),c=k(()=>{var v;return a.currentName.value===((v=t.name)!=null?v:i.value)}),d=P(c.value),f=k(()=>{var v;return(v=t.name)!=null?v:i.value}),h=k(()=>!t.lazy||d.value||c.value),m=()=>{var v;return(v=r.value)==null?void 0:v.contains(document.activeElement)};ie(c,v=>{v&&(d.value=!0)});const p=Pt({uid:n.uid,getVnode:()=>n.vnode,slots:o,props:t,paneName:f,active:c,index:i,isClosable:u,isFocusInsidePane:m});return a.registerPane(p),Bt(()=>{a.unregisterPane(p)}),Bg(()=>{var v;o.label&&((v=a.nav$.value)==null||v.scheduleRender())}),(v,g)=>h.value?tt(($(),F("div",{key:0,id:`pane-${f.value}`,ref_key:"paneRef",ref:r,class:x(s(l).b()),role:"tabpanel","aria-hidden":!c.value,"aria-labelledby":`tab-${f.value}`},[ee(v.$slots,"default")],10,zee)),[[xt,c.value]]):te("v-if",!0)}});var pT=ye(Hee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const vT=Qe(Vee,{TabPane:pT}),hT=sn(pT),mT=he({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:oa,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),Wee=ae({name:"ElText",__name:"text",props:mT,setup(e){const t=e,n=P(),o=wn(),a=fe("text"),l=k(()=>[a.b(),a.m(t.type),a.m(o.value),a.is("truncated",t.truncated),a.is("line-clamp",!_t(t.lineClamp))]),r=()=>{var i,u,c,d,f,h,m;if(Xa().title)return;let v=!1;const g=((i=n.value)==null?void 0:i.textContent)||"";if(t.truncated){const b=(u=n.value)==null?void 0:u.offsetWidth,C=(c=n.value)==null?void 0:c.scrollWidth;b&&C&&C>b&&(v=!0)}else if(!_t(t.lineClamp)){const b=(d=n.value)==null?void 0:d.offsetHeight,C=(f=n.value)==null?void 0:f.scrollHeight;b&&C&&C>b&&(v=!0)}v?(h=n.value)==null||h.setAttribute("title",g):(m=n.value)==null||m.removeAttribute("title")};return ut(r),qa(r),(i,u)=>($(),oe(at(i.tag),{ref_key:"textRef",ref:n,class:x(l.value),style:Ie({"-webkit-line-clamp":i.lineClamp})},{default:Q(()=>[ee(i.$slots,"default")]),_:3},8,["class","style"]))}});var Kee=ye(Wee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const $d=Qe(Kee),gT=he({format:{type:String,default:"HH:mm"},modelValue:{type:q(String)},disabled:{type:Boolean,default:void 0},editable:{type:Boolean,default:!0},effect:{type:q(String),default:"light"},clearable:{type:Boolean,default:!0},size:Tn,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:{type:q(String)},maxTime:{type:q(String)},includeEndTime:Boolean,name:String,prefixIcon:{type:q([String,Object]),default:()=>H1},clearIcon:{type:q([String,Object]),default:()=>cl},popperClass:{type:String,default:""},popperStyle:{type:q([String,Object])},...Dl}),yl=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const o=Number.parseInt(t[1],10),a=e.toUpperCase();return a.includes("AM")&&n===12?n=0:a.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:o}}return null},Xm=(e,t)=>{const n=yl(e);if(!n)return-1;const o=yl(t);if(!o)return-1;const a=n.minutes+n.hours*60,l=o.minutes+o.hours*60;return a===l?0:a>l?1:-1},bT=e=>`${e}`.padStart(2,"0"),_s=e=>`${bT(e.hours)}:${bT(e.minutes)}`,jee=(e,t)=>{const n=yl(e);if(!n)return"";const o=yl(t);if(!o)return"";const a={hours:n.hours,minutes:n.minutes};return a.minutes+=o.minutes,a.hours+=o.hours,a.hours+=Math.floor(a.minutes/60),a.minutes=a.minutes%60,_s(a)},Yee=ae({name:"ElTimeSelect",__name:"time-select",props:gT,emits:[ht,"blur","focus","clear",Ye],setup(e,{expose:t}){Je.extend(Dv);const{Option:n}=gl,o=e,a=fe("input"),l=P(),r=on(),{lang:i}=wt(),u=k(()=>o.modelValue),c=k(()=>{const b=yl(o.start);return b?_s(b):null}),d=k(()=>{const b=yl(o.end);return b?_s(b):null}),f=k(()=>{const b=yl(o.step);return b?_s(b):null}),h=k(()=>{const b=yl(o.minTime||"");return b?_s(b):null}),m=k(()=>{const b=yl(o.maxTime||"");return b?_s(b):null}),p=k(()=>{var b;const C=[],w=(y,S)=>{C.push({value:y,disabled:Xm(S,h.value||"-1:-1")<=0||Xm(S,m.value||"100:100")>=0})};if(o.start&&o.end&&o.step){let y=c.value,S;for(;y&&d.value&&Xm(y,d.value)<=0;)S=Je(y,"HH:mm").locale(i.value).format(o.format),w(S,y),y=jee(y,f.value);if(o.includeEndTime&&d.value&&((b=C[C.length-1])==null?void 0:b.value)!==d.value){const E=Je(d.value,"HH:mm").locale(i.value).format(o.format);w(E,d.value)}}return C});return t({blur:()=>{var b,C;(C=(b=l.value)==null?void 0:b.blur)==null||C.call(b)},focus:()=>{var b,C;(C=(b=l.value)==null?void 0:b.focus)==null||C.call(b)}}),(b,C)=>($(),oe(s(gl),{ref_key:"select",ref:l,"model-value":u.value,disabled:s(r),clearable:b.clearable,"clear-icon":b.clearIcon,size:b.size,effect:b.effect,placeholder:b.placeholder,"default-first-option":"",filterable:b.editable,"empty-values":b.emptyValues,"value-on-clear":b.valueOnClear,"popper-class":b.popperClass,"popper-style":b.popperStyle,"onUpdate:modelValue":C[0]||(C[0]=w=>b.$emit(s(Ye),w)),onChange:C[1]||(C[1]=w=>b.$emit(s(ht),w)),onBlur:C[2]||(C[2]=w=>b.$emit("blur",w)),onFocus:C[3]||(C[3]=w=>b.$emit("focus",w)),onClear:C[4]||(C[4]=()=>b.$emit("clear"))},{prefix:Q(()=>[b.prefixIcon?($(),oe(s(_e),{key:0,class:x(s(a).e("prefix-icon"))},{default:Q(()=>[($(),oe(at(b.prefixIcon)))]),_:1},8,["class"])):te("v-if",!0)]),default:Q(()=>[($(!0),F(Be,null,yt(p.value,w=>($(),oe(s(n),{key:w.value,label:w.value,value:w.value,disabled:w.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","popper-class","popper-style"]))}});var Uee=ye(Yee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);const yT=Qe(Uee),Zm="timeline",wT=he({mode:{type:String,values:["start","alternate","alternate-reverse","end"],default:"start"},reverse:Boolean}),Gee=ae({name:"ElTimeline",props:wT,setup(e,{slots:t}){const n=fe("timeline");St(Zm,{props:e,slots:t});const o=k(()=>[n.b(),n.is(e.mode)]);return()=>{var a,l;const r=No((l=(a=t.default)==null?void 0:a.call(t))!=null?l:[]);return Le("ul",{class:o.value},e.reverse?r.reverse():r)}}}),CT=he({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:Ht},hollow:Boolean}),qee=ae({name:"ElTimelineItem",__name:"timeline-item",props:CT,setup(e){const t=e,{props:n}=Ee(Zm),o=fe("timeline-item"),a=k(()=>[o.e("node"),o.em("node",t.size||""),o.em("node",t.type||""),o.is("hollow",t.hollow)]),l=k(()=>[o.b(),{[o.e("center")]:t.center},o.is(n.mode)]);return(r,i)=>($(),F("li",{class:x(l.value)},[W("div",{class:x(s(o).e("tail"))},null,2),r.$slots.dot?te("v-if",!0):($(),F("div",{key:0,class:x(a.value),style:Ie({backgroundColor:r.color})},[r.icon?($(),oe(s(_e),{key:0,class:x(s(o).e("icon"))},{default:Q(()=>[($(),oe(at(r.icon)))]),_:1},8,["class"])):te("v-if",!0)],6)),r.$slots.dot?($(),F("div",{key:1,class:x(s(o).e("dot"))},[ee(r.$slots,"dot")],2)):te("v-if",!0),W("div",{class:x(s(o).e("wrapper"))},[!r.hideTimestamp&&r.placement==="top"?($(),F("div",{key:0,class:x([s(o).e("timestamp"),s(o).is("top")])},ge(r.timestamp),3)):te("v-if",!0),W("div",{class:x(s(o).e("content"))},[ee(r.$slots,"default")],2),!r.hideTimestamp&&r.placement==="bottom"?($(),F("div",{key:1,class:x([s(o).e("timestamp"),s(o).is("bottom")])},ge(r.timestamp),3)):te("v-if",!0)],2)],2))}});var ST=ye(qee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const kT=Qe(Gee,{TimelineItem:ST}),ET=sn(ST),Jm="left-check-change",Qm="right-check-change",Cr=he({data:{type:q(Array),default:()=>[]},titles:{type:q(Array),default:()=>[]},buttonTexts:{type:q(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:q(Function)},leftDefaultChecked:{type:q(Array),default:()=>[]},rightDefaultChecked:{type:q(Array),default:()=>[]},renderContent:{type:q(Function)},modelValue:{type:q(Array),default:()=>[]},format:{type:q(Object),default:()=>({})},filterable:Boolean,props:{type:q(Object),default:()=>dn({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),_d=(e,t)=>[e,t].every($e)||$e(e)&&vn(t),$T={[ht]:(e,t,n)=>[e,n].every($e)&&["left","right"].includes(t),[Ye]:e=>$e(e),[Jm]:_d,[Qm]:_d},eg="checked-change",Xee=he({data:Cr.data,optionRender:{type:q(Function)},placeholder:String,title:String,filterable:Boolean,format:Cr.format,filterMethod:Cr.filterMethod,defaultChecked:Cr.leftDefaultChecked,props:Cr.props}),Zee={[eg]:_d},Ji=e=>{const t={label:"label",key:"key",disabled:"disabled"};return k(()=>({...t,...e.props}))},Jee=(e,t,n)=>{const o=Ji(e),a=k(()=>e.data.filter(d=>lt(e.filterMethod)?e.filterMethod(t.query,d):String(d[o.value.label]||d[o.value.key]).toLowerCase().includes(t.query.toLowerCase()))),l=k(()=>a.value.filter(d=>!d[o.value.disabled])),r=k(()=>{const d=t.checked.length,f=e.data.length,{noChecked:h,hasChecked:m}=e.format;return h&&m?d>0?m.replace(/\${checked}/g,d.toString()).replace(/\${total}/g,f.toString()):h.replace(/\${total}/g,f.toString()):`${d}/${f}`}),i=k(()=>{const d=t.checked.length;return d>0&&d<l.value.length}),u=()=>{const d=l.value.map(f=>f[o.value.key]);t.allChecked=d.length>0&&d.every(f=>t.checked.includes(f))},c=d=>{t.checked=d?l.value.map(f=>f[o.value.key]):[]};return ie(()=>t.checked,(d,f)=>{if(u(),t.checkChangeByUser){const h=d.concat(f).filter(m=>!d.includes(m)||!f.includes(m));n(eg,d,h)}else n(eg,d),t.checkChangeByUser=!0}),ie(l,()=>{u()}),ie(()=>e.data,()=>{const d=[],f=a.value.map(h=>h[o.value.key]);t.checked.forEach(h=>{f.includes(h)&&d.push(h)}),t.checkChangeByUser=!1,t.checked=d}),ie(()=>e.defaultChecked,(d,f)=>{if(f&&d.length===f.length&&d.every(p=>f.includes(p)))return;const h=[],m=l.value.map(p=>p[o.value.key]);d.forEach(p=>{m.includes(p)&&h.push(p)}),t.checkChangeByUser=!1,t.checked=h},{immediate:!0}),{filteredData:a,checkableData:l,checkedSummary:r,isIndeterminate:i,updateAllChecked:u,handleAllCheckedChange:c}},Qee=(e,t)=>({onSourceCheckedChange:(a,l)=>{e.leftChecked=a,l&&t(Jm,a,l)},onTargetCheckedChange:(a,l)=>{e.rightChecked=a,l&&t(Qm,a,l)}}),ete=e=>{const t=Ji(e),n=k(()=>e.data.reduce((l,r)=>(l[r[t.value.key]]=r)&&l,{})),o=k(()=>e.data.filter(l=>!e.modelValue.includes(l[t.value.key]))),a=k(()=>e.targetOrder==="original"?e.data.filter(l=>e.modelValue.includes(l[t.value.key])):e.modelValue.reduce((l,r)=>{const i=n.value[r];return i&&l.push(i),l},[]));return{sourceData:o,targetData:a}},tte=(e,t,n)=>{const o=Ji(e),a=(i,u,c)=>{n(Ye,i),n(ht,i,u,c)};return{addToLeft:()=>{const i=e.modelValue.slice();t.rightChecked.forEach(u=>{const c=i.indexOf(u);c>-1&&i.splice(c,1)}),a(i,"left",t.rightChecked)},addToRight:()=>{let i=e.modelValue.slice();const u=e.data.filter(c=>{const d=c[o.value.key];return t.leftChecked.includes(d)&&!e.modelValue.includes(d)}).map(c=>c[o.value.key]);i=e.targetOrder==="unshift"?u.concat(i):i.concat(u),e.targetOrder==="original"&&(i=e.data.filter(c=>i.includes(c[o.value.key])).map(c=>c[o.value.key])),a(i,"right",t.leftChecked)}}},nte=ae({name:"ElTransferPanel",__name:"transfer-panel",props:Xee,emits:Zee,setup(e,{expose:t,emit:n}){const o=e,a=n,l=mn(),r=({option:y})=>y,{t:i}=wt(),u=fe("transfer"),c=Pt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),d=Ji(o),{filteredData:f,checkedSummary:h,isIndeterminate:m,handleAllCheckedChange:p}=Jee(o,c,a),v=k(()=>!ho(c.query)&&ho(f.value)),g=k(()=>!ho(l.default()[0].children)),{checked:b,allChecked:C,query:w}=Mn(c);return t({query:w}),(y,S)=>($(),F("div",{class:x(s(u).b("panel"))},[W("p",{class:x(s(u).be("panel","header"))},[Z(s(ea),{modelValue:s(C),"onUpdate:modelValue":S[0]||(S[0]=E=>Yn(C)?C.value=E:null),indeterminate:s(m),"validate-event":!1,onChange:s(p)},{default:Q(()=>[bt(ge(y.title)+" ",1),W("span",null,ge(s(h)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),W("div",{class:x([s(u).be("panel","body"),s(u).is("with-footer",g.value)])},[y.filterable?($(),oe(s(Xn),{key:0,modelValue:s(w),"onUpdate:modelValue":S[1]||(S[1]=E=>Yn(w)?w.value=E:null),class:x(s(u).be("panel","filter")),size:"default",placeholder:y.placeholder,"prefix-icon":s(KV),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):te("v-if",!0),tt(Z(s(td),{modelValue:s(b),"onUpdate:modelValue":S[2]||(S[2]=E=>Yn(b)?b.value=E:null),"validate-event":!1,class:x([s(u).is("filterable",y.filterable),s(u).be("panel","list")])},{default:Q(()=>[($(!0),F(Be,null,yt(s(f),E=>($(),oe(s(ea),{key:E[s(d).key],class:x(s(u).be("panel","item")),value:E[s(d).key],disabled:E[s(d).disabled],"validate-event":!1},{default:Q(()=>{var _;return[Z(r,{option:(_=y.optionRender)==null?void 0:_.call(y,E)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[xt,!v.value&&!s(ho)(y.data)]]),tt(W("div",{class:x(s(u).be("panel","empty"))},[ee(y.$slots,"empty",{},()=>[bt(ge(v.value?s(i)("el.transfer.noMatch"):s(i)("el.transfer.noData")),1)])],2),[[xt,v.value||s(ho)(y.data)]])],2),g.value?($(),F("p",{key:0,class:x(s(u).be("panel","footer"))},[ee(y.$slots,"default")],2)):te("v-if",!0)],2))}});var _T=ye(nte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const ote={key:0},ate={key:0},lte=ae({name:"ElTransfer",__name:"transfer",props:Cr,emits:$T,setup(e,{expose:t,emit:n}){const o=e,a=n,l=mn(),{t:r}=wt(),i=fe("transfer"),{formItem:u}=Pn(),c=Pt({leftChecked:[],rightChecked:[]}),d=Ji(o),{sourceData:f,targetData:h}=ete(o),{onSourceCheckedChange:m,onTargetCheckedChange:p}=Qee(c,a),{addToLeft:v,addToRight:g}=tte(o,c,a),b=P(),C=P(),w=N=>{switch(N){case"left":b.value.query="";break;case"right":C.value.query="";break}},y=k(()=>o.buttonTexts.length===2),S=k(()=>o.titles[0]||r("el.transfer.titles.0")),E=k(()=>o.titles[1]||r("el.transfer.titles.1")),_=k(()=>o.filterPlaceholder||r("el.transfer.filterPlaceholder"));ie(()=>o.modelValue,()=>{var N;o.validateEvent&&((N=u==null?void 0:u.validate)==null||N.call(u,"change").catch(O=>void 0))});const T=k(()=>N=>{var O;if(o.renderContent)return o.renderContent(Le,N);const A=(((O=l.default)==null?void 0:O.call(l,{option:N}))||[]).filter(M=>M.type!==Ga);return A.length?A:Le("span",N[d.value.label]||N[d.value.key])});return t({clearQuery:w,leftPanel:b,rightPanel:C}),(N,O)=>($(),F("div",{class:x(s(i).b())},[Z(_T,{ref_key:"leftPanel",ref:b,data:s(f),"option-render":T.value,placeholder:_.value,title:S.value,filterable:N.filterable,format:N.format,"filter-method":N.filterMethod,"default-checked":N.leftDefaultChecked,props:o.props,onCheckedChange:s(m)},{empty:Q(()=>[ee(N.$slots,"left-empty")]),default:Q(()=>[ee(N.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),W("div",{class:x(s(i).e("buttons"))},[Z(s(In),{type:"primary",class:x([s(i).e("button"),s(i).is("with-texts",y.value)]),disabled:s(ho)(c.rightChecked),onClick:s(v)},{default:Q(()=>[Z(s(_e),null,{default:Q(()=>[Z(s(ul))]),_:1}),s(_t)(N.buttonTexts[0])?te("v-if",!0):($(),F("span",ote,ge(N.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),Z(s(In),{type:"primary",class:x([s(i).e("button"),s(i).is("with-texts",y.value)]),disabled:s(ho)(c.leftChecked),onClick:s(g)},{default:Q(()=>[s(_t)(N.buttonTexts[1])?te("v-if",!0):($(),F("span",ate,ge(N.buttonTexts[1]),1)),Z(s(_e),null,{default:Q(()=>[Z(s(oo))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),Z(_T,{ref_key:"rightPanel",ref:C,data:s(h),"option-render":T.value,placeholder:_.value,filterable:N.filterable,format:N.format,"filter-method":N.filterMethod,title:E.value,"default-checked":N.rightDefaultChecked,props:o.props,onCheckedChange:s(p)},{empty:Q(()=>[ee(N.$slots,"right-empty")]),default:Q(()=>[ee(N.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var rte=ye(lte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const TT=Qe(rte),Ts="$treeNodeId",OT=function(e,t){!t||t[Ts]||Object.defineProperty(t,Ts,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},tg=(e,t)=>t==null?void 0:t[e||Ts],ng=(e,t,n)=>{const o=e.value.currentNode;n();const a=e.value.currentNode;o!==a&&t("current-change",a?a.data:null,a)},RT=e=>{let t=!0,n=!0,o=!0,a=!0;for(let l=0,r=e.length;l<r;l++){const i=e[l];(i.checked!==!0||i.indeterminate)&&(t=!1,i.disabled||(o=!1)),(i.checked!==!1||i.indeterminate)&&(n=!1),i.isEffectivelyChecked||(a=!1)}return{all:t,none:n,allWithoutDisable:o,half:!t&&!n,isEffectivelyChecked:a}},Qi=function(e){if(e.childNodes.length===0||e.loading){e.isEffectivelyChecked=e.disabled||e.checked;return}const{all:t,none:n,half:o,isEffectivelyChecked:a}=RT(e.childNodes);e.isEffectivelyChecked=a,t?(e.checked=!0,e.indeterminate=!1):o?(e.checked=!1,e.indeterminate=!0):n&&(e.checked=!1,e.indeterminate=!1);const l=e.parent;!l||l.level===0||e.store.checkStrictly||Qi(l)},Td=function(e,t){const n=e.store.props,o=e.data||{},a=n[t];if(lt(a))return a(o,e);if(He(a))return o[a];if(_t(a)){const l=o[t];return _t(l)?"":l}},og=function(e,t){e.forEach(n=>{n.canFocus=t,og(n.childNodes,t)})};let ste=0;class lu{constructor(t){this.isLeafByUser=void 0,this.isLeaf=void 0,this.isEffectivelyChecked=!1,this.id=ste++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)Bn(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var t;const n=this.store;if(!n)throw new Error("[Node]store is required!");n.registerNode(this);const o=n.props;if(o&&typeof o.isLeaf!="undefined"){const r=Td(this,"isLeaf");zt(r)&&(this.isLeafByUser=r)}if(n.lazy!==!0&&this.data?(this.setData(this.data),n.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&n.lazy&&n.defaultExpandAll&&!this.isLeafByUser&&this.expand(),$e(this.data)||OT(this,this.data),!this.data)return;const a=n.defaultExpandedKeys,l=n.key;l&&!vn(this.key)&&a&&a.includes(this.key)&&this.expand(null,n.autoExpandParent),l&&n.currentNodeKey!==void 0&&this.key===n.currentNodeKey&&(n.currentNode&&(n.currentNode.isCurrent=!1),n.currentNode=this,n.currentNode.isCurrent=!0),n.lazy&&n._initDefaultCheckedNode(this),this.updateLeafState(),(this.level===1||((t=this.parent)==null?void 0:t.expanded)===!0)&&(this.canFocus=!0)}setData(t){$e(t)||OT(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&$e(this.data)?n=this.data:n=Td(this,"children")||[];for(let o=0,a=n.length;o<a;o++)this.insertChild({data:n[o]})}get label(){return Td(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return Td(this,"disabled")}get nextSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(o=>o===t||n&&o.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,o){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof lu)){if(!o){const a=this.getChildren(!0);a!=null&&a.includes(t.data)||(_t(n)||n<0?a==null||a.push(t.data):a==null||a.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Pt(new lu(t)),t instanceof lu&&t.initialize()}t.level=this.level+1,_t(n)||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let o;n&&(o=this.childNodes.indexOf(n)),this.insertChild(t,o)}insertAfter(t,n){let o;n&&(o=this.childNodes.indexOf(n),o!==-1&&(o+=1)),this.insertChild(t,o)}removeChild(t){const n=this.getChildren()||[],o=n.indexOf(t.data);o>-1&&n.splice(o,1);const a=this.childNodes.indexOf(t);a>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(t){const n=this.childNodes.find(o=>o.data===t);n&&this.removeChild(n)}expand(t,n){const o=()=>{if(n){let a=this.parent;for(;a&&a.level>0;)a.expanded=!0,a=a.parent}this.expanded=!0,t&&t(),og(this.childNodes,!0)};this.shouldLoadData()?this.loadData(a=>{$e(a)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||Qi(this),o())}):o()}doCreateChildren(t,n={}){t.forEach(o=>{this.insertChild(Object.assign({data:o},n),void 0,!0)})}collapse(){this.expanded=!1,og(this.childNodes,!1)}shouldLoadData(){return Boolean(this.store.lazy===!0&&this.store.load&&!this.loaded)}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser!="undefined"){this.isLeaf=this.isLeafByUser,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}this.isLeaf=!1}setChecked(t,n,o,a){if(this.indeterminate=t==="half",this.checked=t===!0,this.isEffectivelyChecked=!this.childNodes.length&&(this.disabled||this.checked),this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const r=()=>{if(n){const i=this.childNodes;for(let f=0,h=i.length;f<h;f++){const m=i[f];a=a||t!==!1;const p=m.disabled&&m.isLeaf?m.checked:a;m.setChecked(p,n,!0,a)}const{half:u,all:c,isEffectivelyChecked:d}=RT(i);c||(this.checked=c,this.indeterminate=u),this.isEffectivelyChecked=this.childNodes.length?d:this.disabled||this.checked}};if(this.shouldLoadData()){this.loadData(()=>{r(),Qi(this)},{checked:t!==!1});return}else r()}const l=this.parent;!l||l.level===0||o||Qi(l)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const o=this.store.props;let a="children";return o&&(a=o.children||"children"),_t(n[a])&&(n[a]=null),t&&!n[a]&&(n[a]=[]),n[a]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(l=>l.data),o={},a=[];t.forEach((l,r)=>{const i=l[Ts];!!i&&n.some(c=>(c==null?void 0:c[Ts])===i)?o[i]={index:r,data:l}:a.push({index:r,data:l})}),this.store.lazy||n.forEach(l=>{o[l==null?void 0:l[Ts]]||this.removeChildByData(l)}),a.forEach(({index:l,data:r})=>{this.insertChild({data:r},l)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const o=l=>{this.childNodes=[],this.doCreateChildren(l,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,l)},a=()=>{this.loading=!1};this.store.load(this,o,a)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const o=n.shift();n.unshift(...o.childNodes),t(o)}}reInitChecked(){this.store.checkStrictly||Qi(this)}}var ag=lu;class ite{constructor(t){this.lazy=!1,this.checkStrictly=!1,this.autoExpandParent=!1,this.defaultExpandAll=!1,this.checkDescendants=!1,this.currentNode=null,this.currentNodeKey=null;for(const n in t)Bn(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new ag({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()},Gt)}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,o=this.lazy,a=async function(l){const r=l.root?l.root.childNodes:l.childNodes;for(const[i,u]of r.entries())u.visible=!!(n!=null&&n.call(u,t,u.data,u)),i%80===0&&i>0&&await ke(),await a(u);if(!l.visible&&r.length){let i=!0;i=!r.some(u=>u.visible),l.root?l.root.visible=i===!1:l.visible=i===!1}!t||l.visible&&!l.isLeaf&&(!o||l.loaded)&&l.expand()};a(this)}setData(t){t!==this.root.data?(this.nodesMap={},this.root.setData(t),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(t){if(t instanceof ag)return t;const n=Rt(t)?tg(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){var o;const a=this.getNode(n);(o=a.parent)==null||o.insertBefore({data:t},a)}insertAfter(t,n){var o;const a=this.getNode(n);(o=a.parent)==null||o.insertAfter({data:t},a)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const o=Co(n)?this.root:this.getNode(n);o&&o.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(o=>{const a=n[o];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){const n=this.defaultCheckedKeys||[];!vn(t.key)&&n.includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;if(!(!t||!t.data))if(!n)this.nodesMap[t.id]=t;else{const o=t.key;vn(o)||(this.nodesMap[o]=t)}}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(o=>{this.deregisterNode(o)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const o=[],a=function(l){(l.root?l.root.childNodes:l.childNodes).forEach(i=>{(i.checked||n&&i.indeterminate)&&(!t||t&&i.isLeaf)&&o.push(i.data),a(i)})};return a(this),o}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(l=>{l.indeterminate&&t.push(l.data),n(l)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const o in n)Bn(n,o)&&t.push(n[o]);return t}updateChildren(t,n){const o=this.nodesMap[t];if(!o)return;const a=o.childNodes;for(let l=a.length-1;l>=0;l--){const r=a[l];this.remove(r.data)}for(let l=0,r=n.length;l<r;l++){const i=n[l];this.append(i,o.data)}}_setCheckedKeys(t,n=!1,o){const a=this._getAllNodes().sort((u,c)=>u.level-c.level),l=Object.create(null),r=Object.keys(o);a.forEach(u=>u.setChecked(!1,!1));const i=u=>{u.childNodes.forEach(c=>{var d;l[c.data[t]]=!0,(d=c.childNodes)!=null&&d.length&&i(c)})};for(let u=0,c=a.length;u<c;u++){const d=a[u],f=d.data[t].toString();if(!r.includes(f)){d.checked&&!l[f]&&d.setChecked(!1,!1);continue}if(d.childNodes.length&&i(d),d.isLeaf||this.checkStrictly){d.setChecked(!0,!1);continue}if(d.setChecked(!0,!0),n){d.setChecked(!1,!1);const m=function(p){p.childNodes.forEach(g=>{g.isLeaf||g.setChecked(!1,!1),m(g)})};m(d)}}}setCheckedNodes(t,n=!1){const o=this.key,a={};t.forEach(l=>{a[(l||{})[o]]=!0}),this._setCheckedKeys(o,n,a)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const o=this.key,a={};t.forEach(l=>{a[l]=!0}),this._setCheckedKeys(o,n,a)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const o=this.getNode(n);o&&o.expand(null,this.autoExpandParent)})}setChecked(t,n,o){const a=this.getNode(t);a&&a.setChecked(!!n,o)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){var o;const a=t[this.key],l=this.nodesMap[a];this.setCurrentNode(l),n&&this.currentNode&&this.currentNode.level>1&&((o=this.currentNode.parent)==null||o.expand(null,!0))}setCurrentNodeKey(t,n=!0){var o;if(this.currentNodeKey=t,Co(t)){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const a=this.getNode(t);a&&(this.setCurrentNode(a),n&&this.currentNode&&this.currentNode.level>1&&((o=this.currentNode.parent)==null||o.expand(null,!0)))}}const Od="RootTree",lg="NodeInstance",rg="TreeNodeMap",ute=ae({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=fe("tree"),n=Ee(lg),o=Ee(Od);return()=>{const a=e.node,{data:l,store:r}=a;return e.renderContent?e.renderContent(Le,{_self:n,node:a,data:l,store:r}):ee(o.ctx.slots,"default",{node:a,data:l},()=>[Le($d,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[a.label])])}}});var cte=ye(ute,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function xT(e){const t=Ee(rg,null);let n={treeNodeExpand:o=>{var a;e.node!==o&&((a=e.node)==null||a.collapse())},children:new Set};return t&&t.children.add(n),Bt(()=>{t&&t.children.delete(n),n=null}),St(rg,n),{broadcastExpanded:o=>{if(!!e.accordion)for(const a of n.children)a.treeNodeExpand(o)}}}const IT=Symbol("dragEvents");function dte({props:e,ctx:t,el$:n,dropIndicator$:o,store:a}){const l=fe("tree"),r=P({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return St(IT,{treeNodeDragStart:({event:d,treeNode:f})=>{if(!!d.dataTransfer){if(lt(e.allowDrag)&&!e.allowDrag(f.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch(h){}r.value.draggingNode=f,t.emit("node-drag-start",f.node,d)}},treeNodeDragOver:({event:d,treeNode:f})=>{if(!d.dataTransfer)return;const h=f,m=r.value.dropNode;m&&m.node.id!==h.node.id&&no(m.$el,l.is("drop-inner"));const p=r.value.draggingNode;if(!p||!h)return;let v=!0,g=!0,b=!0,C=!0;lt(e.allowDrop)&&(v=e.allowDrop(p.node,h.node,"prev"),C=g=e.allowDrop(p.node,h.node,"inner"),b=e.allowDrop(p.node,h.node,"next")),d.dataTransfer.dropEffect=g||v||b?"move":"none",(v||g||b)&&(m==null?void 0:m.node.id)!==h.node.id&&(m&&t.emit("node-drag-leave",p.node,m.node,d),t.emit("node-drag-enter",p.node,h.node,d)),v||g||b?r.value.dropNode=h:r.value.dropNode=null,h.node.nextSibling===p.node&&(b=!1),h.node.previousSibling===p.node&&(v=!1),h.node.contains(p.node,!1)&&(g=!1),(p.node===h.node||p.node.contains(h.node))&&(v=!1,g=!1,b=!1);const w=h.$el,y=w.querySelector(`.${l.be("node","content")}`).getBoundingClientRect(),S=n.value.getBoundingClientRect(),E=n.value.scrollTop;let _;const T=v?g?.25:b?.45:1:Number.NEGATIVE_INFINITY,N=b?g?.75:v?.55:0:Number.POSITIVE_INFINITY;let O=-9999;const A=d.clientY-y.top;A<y.height*T?_="before":A>y.height*N?_="after":g?_="inner":_="none";const M=w.querySelector(`.${l.be("node","expand-icon")}`).getBoundingClientRect(),L=o.value;_==="before"?O=M.top-S.top+E:_==="after"&&(O=M.bottom-S.top+E),L.style.top=`${O}px`,L.style.left=`${M.right-S.left}px`,_==="inner"?Yo(w,l.is("drop-inner")):no(w,l.is("drop-inner")),r.value.showDropIndicator=_==="before"||_==="after",r.value.allowDrop=r.value.showDropIndicator||C,r.value.dropType=_,t.emit("node-drag-over",p.node,h.node,d)},treeNodeDragEnd:d=>{var f,h;const{draggingNode:m,dropType:p,dropNode:v}=r.value;if(d.preventDefault(),d.dataTransfer&&(d.dataTransfer.dropEffect="move"),(m==null?void 0:m.node.data)&&v){const g={data:m.node.data};p!=="none"&&m.node.remove(),p==="before"?(f=v.node.parent)==null||f.insertBefore(g,v.node):p==="after"?(h=v.node.parent)==null||h.insertAfter(g,v.node):p==="inner"&&v.node.insertChild(g),p!=="none"&&(a.value.registerNode(g),a.value.key&&m.node.eachNode(b=>{var C;(C=a.value.nodesMap[b.data[a.value.key]])==null||C.setChecked(b.checked,!a.value.checkStrictly)})),no(v.$el,l.is("drop-inner")),t.emit("node-drag-end",m.node,v.node,p,d),p!=="none"&&t.emit("node-drop",m.node,v.node,p,d)}m&&!v&&t.emit("node-drag-end",m.node,null,p,d),r.value.showDropIndicator=!1,r.value.draggingNode=null,r.value.dropNode=null,r.value.allowDrop=!0}}),{dragState:r}}const fte=ae({name:"ElTreeNode",components:{ElCollapseTransition:Li,ElCheckbox:ea,NodeContent:cte,ElIcon:_e,Loading:Pa},props:{node:{type:ag,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const n=fe("tree"),{broadcastExpanded:o}=xT(e),a=Ee(Od),l=P(!1),r=P(!1),i=P(),u=P(),c=P(),d=Ee(IT),f=ct();St(lg,f),e.node.expanded&&(l.value=!0,r.value=!0);const h=a.props.props.children||"children";ie(()=>{var N;const O=(N=e.node.data)==null?void 0:N[h];return O&&[...O]},()=>{e.node.updateChildren()}),ie(()=>e.node.indeterminate,N=>{v(e.node.checked,N)}),ie(()=>e.node.checked,N=>{v(N,e.node.indeterminate)}),ie(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),ie(()=>e.node.expanded,N=>{ke(()=>l.value=N),N&&(r.value=!0)});const m=N=>tg(a.props.nodeKey,N.data),p=N=>{const O=e.props.class;if(!O)return{};let A;if(lt(O)){const{data:M}=N;A=O(M,N)}else A=O;return He(A)?{[A]:!0}:A},v=(N,O)=>{(i.value!==N||u.value!==O)&&a.ctx.emit("check-change",e.node.data,N,O),i.value=N,u.value=O},g=N=>{ng(a.store,a.ctx.emit,()=>{var O;if((O=a==null?void 0:a.props)==null?void 0:O.nodeKey){const M=m(e.node);a.store.value.setCurrentNodeKey(M)}else a.store.value.setCurrentNode(e.node)}),a.currentNode.value=e.node,a.props.expandOnClickNode&&C(),(a.props.checkOnClickNode||e.node.isLeaf&&a.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&w(!e.node.checked),a.ctx.emit("node-click",e.node.data,e.node,f,N)},b=N=>{var O;(O=a.instance.vnode.props)!=null&&O.onNodeContextmenu&&(N.stopPropagation(),N.preventDefault()),a.ctx.emit("node-contextmenu",N,e.node.data,e.node,f)},C=()=>{e.node.isLeaf||(l.value?(a.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,f)}))},w=N=>{const O=a==null?void 0:a.props.checkStrictly,A=e.node.childNodes;!O&&A.length&&(N=A.some(M=>!M.isEffectivelyChecked)),e.node.setChecked(N,!O),ke(()=>{const M=a.store.value;a.ctx.emit("check",e.node.data,{checkedNodes:M.getCheckedNodes(),checkedKeys:M.getCheckedKeys(),halfCheckedNodes:M.getHalfCheckedNodes(),halfCheckedKeys:M.getHalfCheckedKeys()})})};return{ns:n,node$:c,tree:a,expanded:l,childNodeRendered:r,oldChecked:i,oldIndeterminate:u,getNodeKey:m,getNodeClass:p,handleSelectChange:v,handleClick:g,handleContextMenu:b,handleExpandIconClick:C,handleCheckChange:w,handleChildNodeExpand:(N,O,A)=>{o(O),a.ctx.emit("node-expand",N,O,A)},handleDragStart:N=>{!a.props.draggable||d.treeNodeDragStart({event:N,treeNode:e})},handleDragOver:N=>{N.preventDefault(),a.props.draggable&&d.treeNodeDragOver({event:N,treeNode:{$el:c.value,node:e.node}})},handleDrop:N=>{N.preventDefault()},handleDragEnd:N=>{!a.props.draggable||d.treeNodeDragEnd(N)},CaretRight:z1}}}),pte=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],vte=["aria-expanded"];function hte(e,t,n,o,a,l){const r=It("el-icon"),i=It("el-checkbox"),u=It("loading"),c=It("node-content"),d=It("el-tree-node"),f=It("el-collapse-transition");return tt(($(),F("div",{ref:"node$",class:x([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[2]||(t[2]=je((...h)=>e.handleClick&&e.handleClick(...h),["stop"])),onContextmenu:t[3]||(t[3]=(...h)=>e.handleContextMenu&&e.handleContextMenu(...h)),onDragstart:t[4]||(t[4]=je((...h)=>e.handleDragStart&&e.handleDragStart(...h),["stop"])),onDragover:t[5]||(t[5]=je((...h)=>e.handleDragOver&&e.handleDragOver(...h),["stop"])),onDragend:t[6]||(t[6]=je((...h)=>e.handleDragEnd&&e.handleDragEnd(...h),["stop"])),onDrop:t[7]||(t[7]=je((...h)=>e.handleDrop&&e.handleDrop(...h),["stop"]))},[W("div",{class:x(e.ns.be("node","content")),style:Ie({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?($(),oe(r,{key:0,class:x([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:je(e.handleExpandIconClick,["stop"])},{default:Q(()=>[($(),oe(at(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):te("v-if",!0),e.showCheckbox?($(),oe(i,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=je(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):te("v-if",!0),e.node.loading?($(),oe(r,{key:2,class:x([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:Q(()=>[Z(u)]),_:1},8,["class"])):te("v-if",!0),Z(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),Z(f,null,{default:Q(()=>[!e.renderAfterExpand||e.childNodeRendered?tt(($(),F("div",{key:0,class:x(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:t[1]||(t[1]=je(()=>{},["stop"]))},[($(!0),F(Be,null,yt(e.node.childNodes,h=>($(),oe(d,{key:e.getNodeKey(h),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:h,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,vte)),[[xt,e.expanded]]):te("v-if",!0)]),_:1})],42,pte)),[[xt,e.node.visible]])}var mte=ye(fte,[["render",hte],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function gte({el$:e},t){const n=fe("tree");ut(()=>{l()}),qa(()=>{var r;(r=e.value)==null||r.querySelectorAll("input[type=checkbox]").forEach(i=>{i.setAttribute("tabindex","-1")})});function o(r,i){var u,c;const d=t.value.getNode(r[i].dataset.key);return d.canFocus&&d.visible&&(((u=d.parent)==null?void 0:u.expanded)||((c=d.parent)==null?void 0:c.level)===0)}Mt(e,"keydown",r=>{const i=r.target;if(!i.className.includes(n.b("node")))return;const u=Wt(r),c=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),d=c.indexOf(i);let f;if([pe.up,pe.down].includes(u)){if(r.preventDefault(),u===pe.up){f=d===-1?0:d!==0?d-1:c.length-1;const m=f;for(;!o(c,f);){if(f--,f===m){f=-1;break}f<0&&(f=c.length-1)}}else{f=d===-1?0:d<c.length-1?d+1:0;const m=f;for(;!o(c,f);){if(f++,f===m){f=-1;break}f>=c.length&&(f=0)}}f!==-1&&c[f].focus()}[pe.left,pe.right].includes(u)&&(r.preventDefault(),i.click());const h=i.querySelector('[type="checkbox"]');[pe.enter,pe.numpadEnter,pe.space].includes(u)&&h&&(r.preventDefault(),h.click())});const l=()=>{var r;if(!e.value)return;const i=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(d=>{d.setAttribute("tabindex","-1")});const c=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(c.length){c[0].setAttribute("tabindex","0");return}(r=i[0])==null||r.setAttribute("tabindex","0")}}const sg=he({data:{type:q(Array),default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:{type:Array},defaultExpandedKeys:{type:Array},currentNodeKey:{type:[String,Number]},renderContent:{type:q(Function)},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:q(Function)},allowDrop:{type:q(Function)},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:{type:Function},filterNodeMethod:{type:Function},accordion:Boolean,indent:{type:Number,default:18},icon:{type:Ht}}),MT={"check-change":(e,t,n)=>e&&zt(t)&&zt(n),"current-change":(e,t)=>!0,"node-click":(e,t,n,o)=>e&&t&&o instanceof Event,"node-contextmenu":(e,t,n,o)=>e instanceof Event&&t&&n,"node-collapse":(e,t,n)=>e&&t,"node-expand":(e,t,n)=>e&&t,check:(e,t)=>e&&t,"node-drag-start":(e,t)=>e&&t,"node-drag-end":(e,t,n,o)=>e&&o,"node-drop":(e,t,n,o)=>e&&t&&o,"node-drag-leave":(e,t,n)=>e&&t&&n,"node-drag-enter":(e,t,n)=>e&&t&&n,"node-drag-over":(e,t,n)=>e&&t&&n},bte=ae({name:"ElTree",components:{ElTreeNode:mte},props:sg,emits:MT,setup(e,t){const{t:n}=wt(),o=fe("tree"),a=P(new ite({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));a.value.initialize();const l=P(a.value.root),r=P(null),i=P(null),u=P(null),{broadcastExpanded:c}=xT(e),{dragState:d}=dte({props:e,ctx:t,el$:i,dropIndicator$:u,store:a});gte({el$:i},a);const f=ct(),h=k(()=>{let B=f==null?void 0:f.parent;for(;B;){if(B.type.name==="ElTreeSelect")return!0;B=B.parent}return!1}),m=k(()=>{const{childNodes:B}=l.value;return(!B||B.length===0||B.every(({visible:z})=>!z))&&!h.value});ie(()=>e.currentNodeKey,B=>{a.value.setCurrentNodeKey(B!=null?B:null)}),ie(()=>e.defaultCheckedKeys,(B,z)=>{un(B,z)||a.value.setDefaultCheckedKey(B!=null?B:[])}),ie(()=>e.defaultExpandedKeys,B=>{a.value.setDefaultExpandedKeys(B!=null?B:[])}),ie(()=>e.data,B=>{a.value.setData(B)},{deep:!0}),ie(()=>e.checkStrictly,B=>{a.value.checkStrictly=B});const p=B=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");a.value.filter(B)},v=B=>tg(e.nodeKey,B.data),g=B=>{if(!e.nodeKey)throw new Error(`[Tree] nodeKey is required in ${B}`)},b=B=>{g("getNodePath");const z=a.value.getNode(B);if(!z)return[];const U=[z.data];let V=z.parent;for(;V&&V!==l.value;)U.push(V.data),V=V.parent;return U.reverse()},C=(B,z)=>a.value.getCheckedNodes(B,z),w=B=>a.value.getCheckedKeys(B),y=()=>{const B=a.value.getCurrentNode();return B?B.data:null},S=()=>{g("getCurrentKey");const B=y();return B?B[e.nodeKey]:null},E=(B,z)=>{g("setCheckedNodes"),a.value.setCheckedNodes(B,z)},_=(B,z)=>{g("setCheckedKeys"),a.value.setCheckedKeys(B,z)},T=(B,z,U)=>{a.value.setChecked(B,z,U)},N=()=>a.value.getHalfCheckedNodes(),O=()=>a.value.getHalfCheckedKeys(),A=(B,z=!0)=>{g("setCurrentNode"),ng(a,t.emit,()=>{c(B),a.value.setUserCurrentNode(B,z)})},M=(B=null,z=!0)=>{g("setCurrentKey"),ng(a,t.emit,()=>{c(),a.value.setCurrentNodeKey(B,z)})},L=B=>a.value.getNode(B),H=B=>{a.value.remove(B)},K=(B,z)=>{a.value.append(B,z)},Y=(B,z)=>{a.value.insertBefore(B,z)},I=(B,z)=>{a.value.insertAfter(B,z)},R=(B,z,U)=>{c(z),t.emit("node-expand",B,z,U)},D=(B,z)=>{g("updateKeyChild"),a.value.updateChildren(B,z)};return St(Od,{ctx:t,props:e,store:a,root:l,currentNode:r,instance:f}),St(ya,void 0),{ns:o,store:a,root:l,currentNode:r,dragState:d,el$:i,dropIndicator$:u,isEmpty:m,filter:p,getNodeKey:v,getNodePath:b,getCheckedNodes:C,getCheckedKeys:w,getCurrentNode:y,getCurrentKey:S,setCheckedNodes:E,setCheckedKeys:_,setChecked:T,getHalfCheckedNodes:N,getHalfCheckedKeys:O,setCurrentNode:A,setCurrentKey:M,t:n,getNode:L,remove:H,append:K,insertBefore:Y,insertAfter:I,handleNodeExpand:R,updateKeyChildren:D}}});function yte(e,t,n,o,a,l){const r=It("el-tree-node");return $(),F("div",{ref:"el$",class:x([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[($(!0),F(Be,null,yt(e.root.childNodes,i=>($(),oe(r,{key:e.getNodeKey(i),node:i,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?($(),F("div",{key:0,class:x(e.ns.e("empty-block"))},[ee(e.$slots,"empty",{},()=>{var i;return[W("span",{class:x(e.ns.e("empty-text"))},ge((i=e.emptyText)!=null?i:e.t("el.tree.emptyText")),3)]})],2)):te("v-if",!0),tt(W("div",{ref:"dropIndicator$",class:x(e.ns.e("drop-indicator"))},null,2),[[xt,e.dragState.showDropIndicator]])],2)}var wte=ye(bte,[["render",yte],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);const Rd=Qe(wte),Cte=(e,{attrs:t,emit:n},{select:o,tree:a,key:l})=>{const r=fe("tree-select");ie(()=>e.data,()=>{e.filterable&&ke(()=>{var c,d;(d=a.value)==null||d.filter((c=o.value)==null?void 0:c.states.inputValue)})},{flush:"post"});const i=c=>{var d;const f=c.at(-1);if(f.expanded&&f.childNodes.at(-1))i([f.childNodes.at(-1)]);else{const h=(d=a.value.el$)==null?void 0:d.querySelector(`[data-key="${c.at(-1).key}"]`);h==null||h.focus({preventScroll:!0});return}};return ut(()=>{Mt(()=>{var c;return(c=o.value)==null?void 0:c.$el},"keydown",async c=>{const d=Wt(c),{dropdownMenuVisible:f}=o.value;[pe.down,pe.up].includes(d)&&f&&(await ke(),setTimeout(()=>{var h,m,p;if(pe.up===d){const v=a.value.store.root.childNodes;i(v);return}(p=(m=(h=o.value.optionsArray[o.value.states.hoveringIndex].$el)==null?void 0:h.parentNode)==null?void 0:m.parentNode)==null||p.focus({preventScroll:!0})}))},{capture:!0})}),{...xa(Mn(e),Object.keys(gl.props)),...t,class:k(()=>t.class),style:k(()=>t.style),"onUpdate:modelValue":c=>n(Ye,c),valueKey:l,popperClass:k(()=>{const c=[r.e("popper")];return e.popperClass&&c.push(e.popperClass),c.join(" ")}),filterMethod:(c="")=>{var d;e.filterMethod?e.filterMethod(c):e.remoteMethod?e.remoteMethod(c):(d=a.value)==null||d.filter(c)}}},Ste=ae({extends:Ai,setup(e,t){const n=Ai.setup(e,t);delete n.selectOptionClick;const o=ct().proxy;return ke(()=>{n.select.states.cachedOptions.get(o.value)||n.select.onOptionCreate(o)}),ie(()=>t.attrs.visible,a=>{ke(()=>{n.states.visible=a})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});var kte=Ste;function ig(e){return e||e===0}function ug(e){return $e(e)&&e.length}function Os(e){return $e(e)?e:ig(e)?[e]:[]}function xd(e,t,n,o,a){for(let l=0;l<e.length;l++){const r=e[l];if(t(r,l,e,a))return o?o(r,l,e,a):r;{const i=n(r);if(ug(i)){const u=xd(i,t,n,o,r);if(u)return u}}}}function Id(e,t,n,o){for(let a=0;a<e.length;a++){const l=e[a];t(l,a,e,o);const r=n(l);ug(r)&&Id(r,t,n,l)}}const Ete=(e,{attrs:t,slots:n,emit:o},{select:a,tree:l,key:r})=>{ie([()=>e.modelValue,l],()=>{e.showCheckbox&&ke(()=>{const h=l.value;h&&!un(h.getCheckedKeys(),Os(e.modelValue))&&h.setCheckedKeys(Os(e.modelValue))})},{immediate:!0,deep:!0});const i=k(()=>({value:r.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),u=(h,m)=>{var p;const v=i.value[h];return lt(v)?v(m,(p=l.value)==null?void 0:p.getNode(u("value",m))):m[v]},c=Os(e.modelValue).map(h=>xd(e.data||[],m=>u("value",m)===h,m=>u("children",m),(m,p,v,g)=>g&&u("value",g))).filter(h=>ig(h)),d=k(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const h=[];return Id(e.data.concat(e.cacheData),m=>{const p=u("value",m);h.push({value:p,currentLabel:u("label",m),isDisabled:u("disabled",m)})},m=>u("children",m)),h}),f=()=>{var h;return(h=l.value)==null?void 0:h.getCheckedKeys().filter(m=>{var p;const v=(p=l.value)==null?void 0:p.getNode(m);return!vn(v)&&ho(v.childNodes)})};return{...xa(Mn(e),Object.keys(Rd.props)),...t,nodeKey:r,expandOnClickNode:k(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:k(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(h,{node:m,data:p,store:v})=>h(kte,{value:u("value",p),label:u("label",p),disabled:u("disabled",p),visible:m.visible},e.renderContent?()=>e.renderContent(h,{node:m,data:p,store:v}):n.default?()=>n.default({node:m,data:p,store:v}):void 0),filterNodeMethod:(h,m,p)=>e.filterNodeMethod?e.filterNodeMethod(h,m,p):h?new RegExp(Sp(h),"i").test(u("label",m)||""):!0,onNodeClick:(h,m,p)=>{var v,g,b;if((v=t.onNodeClick)==null||v.call(t,h,m,p),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||m.isLeaf)){if(!u("disabled",h)){const C=(g=a.value)==null?void 0:g.states.options.get(u("value",h));(b=a.value)==null||b.handleOptionSelect(C)}}else e.expandOnClickNode&&p.proxy.handleExpandIconClick()},onCheck:(h,m)=>{var p;if(!e.showCheckbox)return;const v=u("value",h),g={};Id([l.value.store.root],y=>g[y.key]=y,y=>y.childNodes);const b=m.checkedKeys,C=e.multiple?Os(e.modelValue).filter(y=>!(y in g)&&!b.includes(y)):[],w=C.concat(b);if(e.checkStrictly)o(Ye,e.multiple?w:w.includes(v)?v:void 0);else if(e.multiple){const y=f();o(Ye,C.concat(y))}else{const y=xd([h],_=>!ug(u("children",_))&&!u("disabled",_),_=>u("children",_)),S=y?u("value",y):void 0,E=ig(e.modelValue)&&!!xd([h],_=>u("value",_)===e.modelValue,_=>u("children",_));o(Ye,S===e.modelValue||E?void 0:S)}ke(()=>{var y;const S=Os(e.modelValue);l.value.setCheckedKeys(S),(y=t.onCheck)==null||y.call(t,h,{checkedKeys:l.value.getCheckedKeys(),checkedNodes:l.value.getCheckedNodes(),halfCheckedKeys:l.value.getHalfCheckedKeys(),halfCheckedNodes:l.value.getHalfCheckedNodes()})}),(p=a.value)==null||p.focus()},onNodeExpand:(h,m,p)=>{var v;(v=t.onNodeExpand)==null||v.call(t,h,m,p),ke(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&m.checked){const g={},b=l.value.getCheckedKeys();Id([l.value.store.root],y=>g[y.key]=y,y=>y.childNodes);const C=Os(e.modelValue).filter(y=>!(y in g)&&!b.includes(y)),w=f();o(Ye,C.concat(w))}})},cacheOptions:d}};var $te=ae({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Ee(fs);return ie(()=>e.data,()=>{var n;e.data.forEach(a=>{t.states.cachedOptions.has(a.value)||t.states.cachedOptions.set(a.value,a)});const o=((n=t.selectRef)==null?void 0:n.querySelectorAll("input"))||[];Tt&&!Array.from(o).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const _te=ae({name:"ElTreeSelect",inheritAttrs:!1,props:{...uh,...sg,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:o}=t,a=P(),l=P(),r=k(()=>e.nodeKey||e.valueKey||"value"),i=Cte(e,t,{select:a,tree:l,key:r}),{cacheOptions:u,...c}=Ete(e,t,{select:a,tree:l,key:r}),d=Pt({});return o(d),ut(()=>{Object.assign(d,{...xa(l.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...xa(a.value,["focus","blur","selectedLabel"]),treeRef:l.value,selectRef:a.value})}),()=>Le(gl,Pt({...i,ref:f=>a.value=f}),{...n,default:()=>[Le($te,{data:u.value}),Le(Rd,Pt({...c,ref:f=>l.value=f}))]})}});var Tte=ye(_te,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);const NT=Qe(Tte),cg=Symbol(),Ote={key:-1,level:-1,data:{}};var eu=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e))(eu||{}),dg=(e=>(e.ADD="add",e.DELETE="delete",e))(dg||{});const AT={type:Number,default:26},Rte=he({data:{type:q(Array),default:()=>dn([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:q(Object),default:()=>dn({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:Boolean,showCheckbox:Boolean,defaultCheckedKeys:{type:q(Array),default:()=>dn([])},checkStrictly:Boolean,defaultExpandedKeys:{type:q(Array),default:()=>dn([])},indent:{type:Number,default:16},itemSize:AT,icon:{type:Ht},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:q([String,Number])},accordion:Boolean,filterMethod:{type:q(Function)},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),xte=he({node:{type:q(Object),default:()=>dn(Ote)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize:AT}),Ite=he({node:{type:q(Object),required:!0}}),PT="node-click",LT="node-drop",DT="node-expand",BT="node-collapse",FT="current-change",VT="check",zT="check-change",HT="node-contextmenu",Mte={[PT]:(e,t,n)=>e&&t&&n,[LT]:(e,t,n)=>e&&t&&n,[DT]:(e,t)=>e&&t,[BT]:(e,t)=>e&&t,[FT]:(e,t)=>e&&t,[VT]:(e,t)=>e&&t,[zT]:(e,t)=>e&&zt(t),[HT]:(e,t,n)=>e&&t&&n},Nte={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&zt(t)};function Ate(e,t){const n=P(new Set),o=P(new Set),{emit:a}=ct();ie([()=>t.value,()=>e.defaultCheckedKeys],()=>ke(()=>{C(e.defaultCheckedKeys)}),{immediate:!0});const l=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:w,maxLevel:y}=t.value,S=n.value,E=new Set;for(let _=y;_>=1;--_){const T=w.get(_);!T||T.forEach(N=>{const O=N.children;let A=!N.isLeaf||N.disabled||S.has(N.key);if(O){let M=!0,L=!1;for(const H of O){const K=H.key;if(H.isEffectivelyChecked||(A=!1),S.has(K))L=!0;else if(E.has(K)){M=!1,L=!0;break}else M=!1}M?S.add(N.key):L?(E.add(N.key),S.delete(N.key)):(S.delete(N.key),E.delete(N.key))}N.isEffectivelyChecked=A})}o.value=E},r=w=>n.value.has(w.key),i=w=>o.value.has(w.key),u=(w,y,S=!0,E=!0)=>{const _=n.value,T=w.children;!e.checkStrictly&&S&&(T==null?void 0:T.length)&&(y=T.some(O=>!O.isEffectivelyChecked));const N=(O,A)=>{_[A?dg.ADD:dg.DELETE](O.key);const M=O.children;!e.checkStrictly&&M&&M.forEach(L=>{(!L.disabled||L.children)&&N(L,A)})};N(w,y),E&&l(),S&&c(w,y)},c=(w,y)=>{const{checkedNodes:S,checkedKeys:E}=p(),{halfCheckedNodes:_,halfCheckedKeys:T}=v();a(VT,w.data,{checkedKeys:E,checkedNodes:S,halfCheckedKeys:T,halfCheckedNodes:_}),a(zT,w.data,y)};function d(w=!1){return p(w).checkedKeys}function f(w=!1){return p(w).checkedNodes}function h(){return v().halfCheckedKeys}function m(){return v().halfCheckedNodes}function p(w=!1){const y=[],S=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:E}=t.value;n.value.forEach(_=>{const T=E.get(_);T&&(!w||w&&T.isLeaf)&&(S.push(_),y.push(T.data))})}return{checkedKeys:S,checkedNodes:y}}function v(){const w=[],y=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:S}=t.value;o.value.forEach(E=>{const _=S.get(E);_&&(y.push(E),w.push(_.data))})}return{halfCheckedNodes:w,halfCheckedKeys:y}}function g(w){n.value.clear(),o.value.clear(),ke(()=>{C(w)})}function b(w,y){if((t==null?void 0:t.value)&&e.showCheckbox){const S=t.value.treeNodeMap.get(w);S&&u(S,y,!1)}}function C(w){if(t!=null&&t.value){const{treeNodeMap:y}=t.value;if(e.showCheckbox&&y&&(w==null?void 0:w.length)>0){for(const S of w){const E=y.get(S);E&&!r(E)&&u(E,!0,!1,!1)}l()}}}return{updateCheckedKeys:l,toggleCheckbox:u,isChecked:r,isIndeterminate:i,getCheckedKeys:d,getCheckedNodes:f,getHalfCheckedKeys:h,getHalfCheckedNodes:m,setChecked:b,setCheckedKeys:g}}function Pte(e,t){const n=P(new Set([])),o=P(new Set([])),a=k(()=>lt(e.filterMethod));function l(i){var u;if(!a.value)return;const c=new Set,d=o.value,f=n.value,h=[],m=((u=t.value)==null?void 0:u.treeNodes)||[],p=e.filterMethod;f.clear();function v(g){g.forEach(b=>{h.push(b),p!=null&&p(i,b.data,b)?h.forEach(w=>{c.add(w.key),w.expanded=!0}):(b.expanded=!1,b.isLeaf&&f.add(b.key));const C=b.children;if(C&&v(C),!b.isLeaf){if(!c.has(b.key))f.add(b.key);else if(C){let w=!0;for(const y of C)if(!f.has(y.key)){w=!1;break}w?d.add(b.key):d.delete(b.key)}}h.pop()})}return v(m),c}function r(i){return o.value.has(i.key)}return{hiddenExpandIconKeySet:o,hiddenNodeKeySet:n,doFilter:l,isForceHiddenExpandIcon:r}}function Lte(e,t){const n=P(new Set),o=P(),a=Zt(),l=P(),{isIndeterminate:r,isChecked:i,toggleCheckbox:u,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:m,setCheckedKeys:p}=Ate(e,a),{doFilter:v,hiddenNodeKeySet:g,isForceHiddenExpandIcon:b}=Pte(e,a),C=k(()=>{var j;return((j=e.props)==null?void 0:j.value)||eu.KEY}),w=k(()=>{var j;return((j=e.props)==null?void 0:j.children)||eu.CHILDREN}),y=k(()=>{var j;return((j=e.props)==null?void 0:j.disabled)||eu.DISABLED}),S=k(()=>{var j;return((j=e.props)==null?void 0:j.label)||eu.LABEL}),E=k(()=>{var j;const re=n.value,Se=g.value,Te=[],De=((j=a.value)==null?void 0:j.treeNodes)||[],ze=[];for(let Ze=De.length-1;Ze>=0;--Ze)ze.push(De[Ze]);for(;ze.length;){const Ze=ze.pop();if(!Se.has(Ze.key)&&(Te.push(Ze),Ze.children&&re.has(Ze.key)))for(let nt=Ze.children.length-1;nt>=0;--nt)ze.push(Ze.children[nt])}return Te}),_=k(()=>E.value.length>0);function T(j){const re=new Map,Se=new Map;let Te=1;function De(Ze,nt=1,Et=void 0){var Ue;const Ae=[];for(const Pe of Ze){const Ge=A(Pe),ot={level:nt,key:Ge,data:Pe};ot.label=L(Pe),ot.parent=Et;const pt=O(Pe);ot.disabled=M(Pe),ot.isLeaf=!pt||pt.length===0,ot.expanded=n.value.has(Ge),pt&&pt.length&&(ot.children=De(pt,nt+1,ot)),Ae.push(ot),re.set(Ge,ot),Se.has(nt)||Se.set(nt,[]),(Ue=Se.get(nt))==null||Ue.push(ot)}return nt>Te&&(Te=nt),Ae}const ze=De(j);return{treeNodeMap:re,levelTreeNodeMap:Se,maxLevel:Te,treeNodes:ze}}function N(j){const re=v(j);re&&(n.value=re)}function O(j){return j[w.value]}function A(j){return j?j[C.value]:""}function M(j){return j[y.value]}function L(j){return j[S.value]}function H(j){n.value.has(j.key)?z(j):B(j)}function K(j){const re=new Set,Se=a.value.treeNodeMap;n.value.forEach(Te=>{const De=Se.get(Te);n.value.delete(De.key),De.expanded=!1}),j.forEach(Te=>{let De=Se.get(Te);for(;De&&!re.has(De.key);)re.add(De.key),De.expanded=!0,De=De.parent}),n.value=re}function Y(j,re){t(PT,j.data,j,re),R(j),e.expandOnClickNode&&H(j),e.showCheckbox&&(e.checkOnClickNode||j.isLeaf&&e.checkOnClickLeaf)&&!j.disabled&&u(j,!i(j),!0)}function I(j,re){t(LT,j.data,j,re)}function R(j){V(j)||(o.value=j.key,t(FT,j.data,j))}function D(j,re){u(j,re)}function B(j){const re=n.value;if(a.value&&e.accordion){const{treeNodeMap:Te}=a.value;re.forEach(De=>{const ze=Te.get(De);j&&j.level===(ze==null?void 0:ze.level)&&(re.delete(De),ze.expanded=!1)})}re.add(j.key);const Se=de(j.key);Se&&(Se.expanded=!0,t(DT,Se.data,Se))}function z(j){n.value.delete(j.key);const re=de(j.key);re&&(re.expanded=!1,t(BT,re.data,re))}function U(j){return!!j.disabled}function V(j){const re=o.value;return re!==void 0&&re===j.key}function G(){var j,re;if(!!o.value)return(re=(j=a.value)==null?void 0:j.treeNodeMap.get(o.value))==null?void 0:re.data}function X(){return o.value}function le(j){o.value=j}function se(j){a.value=T(j)}function de(j){var re;const Se=Rt(j)?A(j):j;return(re=a.value)==null?void 0:re.treeNodeMap.get(Se)}function ce(j,re="auto"){const Se=de(j);Se&&l.value&&l.value.scrollToItem(E.value.indexOf(Se),re)}function ne(j){var re;(re=l.value)==null||re.scrollTo(j)}return ie(()=>e.currentNodeKey,j=>{o.value=j},{immediate:!0}),ie(()=>e.defaultExpandedKeys,j=>{n.value=new Set(j)},{immediate:!0}),ie(()=>e.data,j=>{se(j)},{immediate:!0}),{tree:a,flattenTree:E,isNotEmpty:_,listRef:l,getKey:A,getChildren:O,toggleExpand:H,toggleCheckbox:u,isChecked:i,isIndeterminate:r,isDisabled:U,isCurrent:V,isForceHiddenExpandIcon:b,handleNodeClick:Y,handleNodeDrop:I,handleNodeCheck:D,getCurrentNode:G,getCurrentKey:X,setCurrentKey:le,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:m,setCheckedKeys:p,filter:N,setData:se,getNode:de,expandNode:B,collapseNode:z,setExpandedKeys:K,scrollToNode:ce,scrollTo:ne}}var Dte=ae({name:"ElTreeNodeContent",props:Ite,setup(e){const t=Ee(cg),n=fe("tree");return()=>{const o=e.node,{data:a}=o;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:o,data:a}):Le($d,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[o==null?void 0:o.label])}}});const Bte=["aria-expanded","aria-disabled","aria-checked","data-key"],Fte=ae({name:"ElTreeNode",__name:"tree-node",props:xte,emits:Nte,setup(e,{emit:t}){const n=e,o=t,a=Ee(cg),l=fe("tree"),r=k(()=>{var p;return(p=a==null?void 0:a.props.indent)!=null?p:16}),i=k(()=>{var p;return(p=a==null?void 0:a.props.icon)!=null?p:z1}),u=p=>{const v=a==null?void 0:a.props.props.class;if(!v)return{};let g;if(lt(v)){const{data:b}=p;g=v(b,p)}else g=v;return He(g)?{[g]:!0}:g},c=p=>{o("click",n.node,p)},d=p=>{o("drop",n.node,p)},f=()=>{o("toggle",n.node)},h=p=>{o("check",n.node,p)},m=p=>{var v,g,b,C;(b=(g=(v=a==null?void 0:a.instance)==null?void 0:v.vnode)==null?void 0:g.props)!=null&&b.onNodeContextmenu&&(p.stopPropagation(),p.preventDefault()),a==null||a.ctx.emit(HT,p,(C=n.node)==null?void 0:C.data,n.node)};return(p,v)=>{var g,b,C;return $(),F("div",{ref:"node$",class:x([s(l).b("node"),s(l).is("expanded",p.expanded),s(l).is("current",p.current),s(l).is("focusable",!p.disabled),s(l).is("checked",!p.disabled&&p.checked),u(p.node)]),role:"treeitem",tabindex:"-1","aria-expanded":p.expanded,"aria-disabled":p.disabled,"aria-checked":p.checked,"data-key":(g=p.node)==null?void 0:g.key,onClick:je(c,["stop"]),onContextmenu:m,onDragover:v[1]||(v[1]=je(()=>{},["prevent"])),onDragenter:v[2]||(v[2]=je(()=>{},["prevent"])),onDrop:je(d,["stop"])},[W("div",{class:x(s(l).be("node","content")),style:Ie({paddingLeft:`${(p.node.level-1)*r.value}px`,height:p.itemSize+"px"})},[i.value?($(),oe(s(_e),{key:0,class:x([s(l).is("leaf",!!((b=p.node)!=null&&b.isLeaf)),s(l).is("hidden",p.hiddenExpandIcon),{expanded:!((C=p.node)!=null&&C.isLeaf)&&p.expanded},s(l).be("node","expand-icon")]),onClick:je(f,["stop"])},{default:Q(()=>[($(),oe(at(i.value)))]),_:1},8,["class"])):te("v-if",!0),p.showCheckbox?($(),oe(s(ea),{key:1,"model-value":p.checked,indeterminate:p.indeterminate,disabled:p.disabled,onChange:h,onClick:v[0]||(v[0]=je(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):te("v-if",!0),Z(s(Dte),{node:{...p.node,expanded:p.expanded}},null,8,["node"])],6)],42,Bte)}}});var Vte=ye(Fte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const zte=ae({name:"ElTreeV2",__name:"tree",props:Rte,emits:Mte,setup(e,{expose:t,emit:n}){const o=e,a=n,l=mn(),r=k(()=>o.itemSize);St(cg,{ctx:{emit:a,slots:l},props:o,instance:ct()}),St(ya,void 0);const{t:i}=wt(),u=fe("tree"),{flattenTree:c,isNotEmpty:d,listRef:f,toggleExpand:h,isIndeterminate:m,isChecked:p,isDisabled:v,isCurrent:g,isForceHiddenExpandIcon:b,handleNodeClick:C,handleNodeDrop:w,handleNodeCheck:y,toggleCheckbox:S,getCurrentNode:E,getCurrentKey:_,setCurrentKey:T,getCheckedKeys:N,getCheckedNodes:O,getHalfCheckedKeys:A,getHalfCheckedNodes:M,setChecked:L,setCheckedKeys:H,filter:K,setData:Y,getNode:I,expandNode:R,collapseNode:D,setExpandedKeys:B,scrollToNode:z,scrollTo:U}=Lte(o,a);return t({toggleCheckbox:S,getCurrentNode:E,getCurrentKey:_,setCurrentKey:T,getCheckedKeys:N,getCheckedNodes:O,getHalfCheckedKeys:A,getHalfCheckedNodes:M,setChecked:L,setCheckedKeys:H,filter:K,setData:Y,getNode:I,expandNode:R,collapseNode:D,setExpandedKeys:B,scrollToNode:z,scrollTo:U}),(V,G)=>($(),F("div",{class:x([s(u).b(),{[s(u).m("highlight-current")]:V.highlightCurrent}]),role:"tree"},[s(d)?($(),oe(s(Em),{key:0,ref_key:"listRef",ref:f,"class-name":s(u).b("virtual-list"),data:s(c),total:s(c).length,height:V.height,"item-size":r.value,"perf-mode":V.perfMode,"scrollbar-always-on":V.scrollbarAlwaysOn},{default:Q(({data:X,index:le,style:se})=>[($(),oe(Vte,{key:X[le].key,style:Ie(se),node:X[le],expanded:X[le].expanded,"show-checkbox":V.showCheckbox,checked:s(p)(X[le]),indeterminate:s(m)(X[le]),"item-size":r.value,disabled:s(v)(X[le]),current:s(g)(X[le]),"hidden-expand-icon":s(b)(X[le]),onClick:s(C),onToggle:s(h),onCheck:s(y),onDrop:s(w)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode","scrollbar-always-on"])):($(),F("div",{key:1,class:x(s(u).e("empty-block"))},[ee(V.$slots,"empty",{},()=>{var X;return[W("span",{class:x(s(u).e("empty-text"))},ge((X=V.emptyText)!=null?X:s(i)("el.tree.emptyText")),3)]})],2))],2))}});var Hte=ye(zte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const WT=Qe(Hte),fg=Symbol("uploadContextKey"),Wte="ElUpload";class Kte extends Error{constructor(t,n,o,a){super(t),this.name="UploadAjaxError",this.status=n,this.method=o,this.url=a}}function KT(e,t,n){let o;return n.response?o=`${n.response.error||n.response}`:n.responseText?o=`${n.responseText}`:o=`fail to ${t.method} ${e} ${n.status}`,new Kte(o,n.status,t.method,e)}function jte(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}const Yte=e=>{typeof XMLHttpRequest=="undefined"&&_n(Wte,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",l=>{const r=l;r.percent=l.total>0?l.loaded/l.total*100:0,e.onProgress(r)});const o=new FormData;if(e.data)for(const[l,r]of Object.entries(e.data))$e(r)&&r.length?o.append(l,...r):o.append(l,r);o.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(KT(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(KT(n,e,t));e.onSuccess(jte(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const a=e.headers||{};if(a instanceof Headers)a.forEach((l,r)=>t.setRequestHeader(r,l));else for(const[l,r]of Object.entries(a))vn(r)||t.setRequestHeader(l,String(r));return t.send(o),t},pg=["text","picture","picture-card"];let Ute=1;const Md=()=>Date.now()+Ute++,vg=he({action:{type:String,default:"#"},headers:{type:q(Object)},method:{type:String,default:"post"},data:{type:q([Object,Function,Promise]),default:()=>dn({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:q(Array),default:()=>dn([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:pg,default:"text"},httpRequest:{type:q(Function),default:Yte},disabled:{type:Boolean,default:void 0},limit:Number,directory:Boolean}),jT=he({...vg,beforeUpload:{type:q(Function),default:Gt},beforeRemove:{type:q(Function)},onRemove:{type:q(Function),default:Gt},onChange:{type:q(Function),default:Gt},onPreview:{type:q(Function),default:Gt},onSuccess:{type:q(Function),default:Gt},onProgress:{type:q(Function),default:Gt},onError:{type:q(Function),default:Gt},onExceed:{type:q(Function),default:Gt},crossorigin:{type:q(String)}}),YT=he({files:{type:q(Array),default:()=>dn([])},disabled:{type:Boolean,default:void 0},handlePreview:{type:q(Function),default:Gt},listType:{type:String,values:pg,default:"text"},crossorigin:{type:q(String)}}),UT={remove:e=>!!e},Gte=["tabindex","aria-disabled","onKeydown"],qte=["src","crossorigin"],Xte=["onClick"],Zte=["title"],Jte=["onClick"],Qte=["onClick"],ene=ae({name:"ElUploadList",__name:"upload-list",props:YT,emits:UT,setup(e,{emit:t}){const n=e,o=t,{t:a}=wt(),l=fe("upload"),r=fe("icon"),i=fe("list"),u=on(),c=P(!1),d=k(()=>[l.b("list"),l.bm("list",n.listType),l.is("disabled",u.value)]),f=h=>{o("remove",h)};return(h,m)=>($(),oe(Ng,{tag:"ul",class:x(d.value),name:s(i).b()},{default:Q(()=>[($(!0),F(Be,null,yt(h.files,(p,v)=>($(),F("li",{key:p.uid||p.name,class:x([s(l).be("list","item"),s(l).is(p.status),{focusing:c.value}]),tabindex:s(u)?void 0:0,"aria-disabled":s(u),role:"button",onKeydown:fn(g=>!s(u)&&f(p),["delete"]),onFocus:m[0]||(m[0]=g=>c.value=!0),onBlur:m[1]||(m[1]=g=>c.value=!1),onClick:m[2]||(m[2]=g=>c.value=!1)},[ee(h.$slots,"default",{file:p,index:v},()=>[h.listType==="picture"||p.status!=="uploading"&&h.listType==="picture-card"?($(),F("img",{key:0,class:x(s(l).be("list","item-thumbnail")),src:p.url,crossorigin:h.crossorigin,alt:""},null,10,qte)):te("v-if",!0),p.status==="uploading"||h.listType!=="picture-card"?($(),F("div",{key:1,class:x(s(l).be("list","item-info"))},[W("a",{class:x(s(l).be("list","item-name")),onClick:je(g=>h.handlePreview(p),["prevent"])},[Z(s(_e),{class:x(s(r).m("document"))},{default:Q(()=>[Z(s(wV))]),_:1},8,["class"]),W("span",{class:x(s(l).be("list","item-file-name")),title:p.name},ge(p.name),11,Zte)],10,Xte),p.status==="uploading"?($(),oe(s(cm),{key:0,type:h.listType==="picture-card"?"circle":"line","stroke-width":h.listType==="picture-card"?6:2,percentage:Number(p.percentage),style:Ie(h.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):te("v-if",!0)],2)):te("v-if",!0),W("label",{class:x(s(l).be("list","item-status-label"))},[h.listType==="text"?($(),oe(s(_e),{key:0,class:x([s(r).m("upload-success"),s(r).m("circle-check")])},{default:Q(()=>[Z(s($p))]),_:1},8,["class"])):["picture-card","picture"].includes(h.listType)?($(),oe(s(_e),{key:1,class:x([s(r).m("upload-success"),s(r).m("check")])},{default:Q(()=>[Z(s(ii))]),_:1},8,["class"])):te("v-if",!0)],2),s(u)?te("v-if",!0):($(),oe(s(_e),{key:2,class:x(s(r).m("close")),onClick:g=>f(p)},{default:Q(()=>[Z(s(Uo))]),_:1},8,["class","onClick"])),te(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),te(" This is a bug which needs to be fixed "),te(" TODO: Fix the incorrect navigation interaction "),s(u)?te("v-if",!0):($(),F("i",{key:3,class:x(s(r).m("close-tip"))},ge(s(a)("el.upload.deleteTip")),3)),h.listType==="picture-card"?($(),F("span",{key:4,class:x(s(l).be("list","item-actions"))},[W("span",{class:x(s(l).be("list","item-preview")),onClick:g=>h.handlePreview(p)},[Z(s(_e),{class:x(s(r).m("zoom-in"))},{default:Q(()=>[Z(s(Y1))]),_:1},8,["class"])],10,Jte),s(u)?te("v-if",!0):($(),F("span",{key:0,class:x(s(l).be("list","item-delete")),onClick:g=>f(p)},[Z(s(_e),{class:x(s(r).m("delete"))},{default:Q(()=>[Z(s(bV))]),_:1},8,["class"])],10,Qte))],2)):te("v-if",!0)])],42,Gte))),128)),ee(h.$slots,"append")]),_:3},8,["class","name"]))}});var GT=ye(ene,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const qT=he({disabled:{type:Boolean,default:void 0},directory:Boolean}),XT={file:e=>$e(e)},ZT="ElUploadDrag",tne=ae({name:ZT,__name:"upload-dragger",props:qT,emits:XT,setup(e,{emit:t}){const n=e,o=t;Ee(fg)||_n(ZT,"usage: <el-upload><el-upload-dragger /></el-upload>");const l=fe("upload"),r=P(!1),i=on(),u=m=>new Promise((p,v)=>m.file(p,v)),c=async m=>{try{if(m.isFile){const p=await u(m);return p.isDirectory=!1,[p]}if(m.isDirectory){const p=m.createReader(),v=()=>new Promise((y,S)=>p.readEntries(y,S)),g=[];let b=await v();for(;b.length>0;)g.push(...b),b=await v();const C=g.map(y=>c(y).catch(()=>[])),w=await Promise.all(C);return qs(w)}}catch(p){return[]}return[]},d=async m=>{if(i.value)return;r.value=!1,m.stopPropagation();const p=Array.from(m.dataTransfer.files),v=m.dataTransfer.items||[];if(n.directory){const g=Array.from(v).map(C=>{var w;return(w=C==null?void 0:C.webkitGetAsEntry)==null?void 0:w.call(C)}).filter(C=>C),b=await Promise.all(g.map(c));o("file",qs(b));return}p.forEach((g,b)=>{var C;const w=v[b],y=(C=w==null?void 0:w.webkitGetAsEntry)==null?void 0:C.call(w);y&&(g.isDirectory=y.isDirectory)}),o("file",p)},f=()=>{i.value||(r.value=!0)},h=m=>{m.currentTarget.contains(m.relatedTarget)||(r.value=!1)};return(m,p)=>($(),F("div",{class:x([s(l).b("dragger"),s(l).is("dragover",r.value)]),onDrop:je(d,["prevent"]),onDragover:je(f,["prevent"]),onDragleave:je(h,["prevent"])},[ee(m.$slots,"default")],34))}});var nne=ye(tne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const JT=he({...vg,beforeUpload:{type:q(Function),default:Gt},onRemove:{type:q(Function),default:Gt},onStart:{type:q(Function),default:Gt},onSuccess:{type:q(Function),default:Gt},onProgress:{type:q(Function),default:Gt},onError:{type:q(Function),default:Gt},onExceed:{type:q(Function),default:Gt}}),one=["tabindex","aria-disabled","onKeydown"],ane=["name","disabled","multiple","accept","webkitdirectory"],lne=ae({name:"ElUploadContent",inheritAttrs:!1,__name:"upload-content",props:JT,setup(e,{expose:t}){const n=e,o=fe("upload"),a=on(),l=Zt({}),r=Zt(),i=v=>{if(v.length===0)return;const{autoUpload:g,limit:b,fileList:C,multiple:w,onStart:y,onExceed:S}=n;if(b&&C.length+v.length>b){S(v,C);return}w||(v=v.slice(0,1));for(const E of v){const _=E;_.uid=Md(),y(_),g&&u(_)}},u=async v=>{if(r.value.value="",!n.beforeUpload)return d(v);let g,b={};try{const w=n.data,y=n.beforeUpload(v);b=tf(n.data)?Js(n.data):n.data,g=await y,tf(n.data)&&un(w,b)&&(b=Js(n.data))}catch(w){g=!1}if(g===!1){n.onRemove(v);return}let C=v;g instanceof Blob&&(g instanceof File?C=g:C=new File([g],v.name,{type:v.type})),d(Object.assign(C,{uid:v.uid}),b)},c=async(v,g)=>lt(v)?v(g):v,d=async(v,g)=>{const{headers:b,data:C,method:w,withCredentials:y,name:S,action:E,onProgress:_,onSuccess:T,onError:N,httpRequest:O}=n;try{g=await c(g!=null?g:C,v)}catch(H){n.onRemove(v);return}const{uid:A}=v,M={headers:b||{},withCredentials:y,file:v,data:g,method:w,filename:S,action:E,onProgress:H=>{_(H,v)},onSuccess:H=>{T(H,v),delete l.value[A]},onError:H=>{N(H,v),delete l.value[A]}},L=O(M);l.value[A]=L,L instanceof Promise&&L.then(M.onSuccess,M.onError)},f=v=>{const g=v.target.files;!g||i(Array.from(g))},h=()=>{a.value||(r.value.value="",r.value.click())},m=()=>{h()};return t({abort:v=>{A1(l.value).filter(v?([b])=>String(v.uid)===b:()=>!0).forEach(([b,C])=>{C instanceof XMLHttpRequest&&C.abort(),delete l.value[b]})},upload:u}),(v,g)=>($(),F("div",{class:x([s(o).b(),s(o).m(v.listType),s(o).is("drag",v.drag),s(o).is("disabled",s(a))]),tabindex:s(a)?void 0:0,"aria-disabled":s(a),role:"button",onClick:h,onKeydown:fn(je(m,["self"]),["enter","space"])},[v.drag?($(),oe(nne,{key:0,disabled:s(a),directory:v.directory,onFile:i},{default:Q(()=>[ee(v.$slots,"default")]),_:3},8,["disabled","directory"])):ee(v.$slots,"default",{key:1}),W("input",{ref_key:"inputRef",ref:r,class:x(s(o).e("input")),name:v.name,disabled:s(a),multiple:v.multiple,accept:v.accept,webkitdirectory:v.directory,type:"file",onChange:f,onClick:g[0]||(g[0]=je(()=>{},["stop"]))},null,42,ane)],42,one))}});var QT=ye(lne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const eO="ElUpload",tO=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},rne=(e,t)=>{const n=Jg(e,"fileList",void 0,{passive:!0}),o=p=>n.value.find(v=>v.uid===p.uid);function a(p){var v;(v=t.value)==null||v.abort(p)}function l(p=["ready","uploading","success","fail"]){n.value=n.value.filter(v=>!p.includes(v.status))}function r(p){n.value=n.value.filter(v=>v.uid!==p.uid)}const i=p=>{ke(()=>e.onChange(p,n.value))},u=(p,v)=>{const g=o(v);!g||(console.error(p),g.status="fail",r(g),e.onError(p,g,n.value),i(g))},c=(p,v)=>{const g=o(v);!g||(e.onProgress(p,g,n.value),g.status="uploading",g.percentage=Math.round(p.percent))},d=(p,v)=>{const g=o(v);!g||(g.status="success",g.response=p,e.onSuccess(p,g,n.value),i(g))},f=p=>{vn(p.uid)&&(p.uid=Md());const v={name:p.name,percentage:0,status:"ready",size:p.size,raw:p,uid:p.uid};if(e.listType==="picture-card"||e.listType==="picture")try{v.url=URL.createObjectURL(p)}catch(g){g.message,e.onError(g,v,n.value)}n.value=[...n.value,v],i(v)},h=async p=>{const v=p instanceof File?o(p):p;v||_n(eO,"file to be removed not found");const g=b=>{a(b),r(b),e.onRemove(b,n.value),tO(b)};e.beforeRemove?await e.beforeRemove(v,n.value)!==!1&&g(v):g(v)};function m(){n.value.filter(({status:p})=>p==="ready").forEach(({raw:p})=>{var v;return p&&((v=t.value)==null?void 0:v.upload(p))})}return ie(()=>e.listType,p=>{p!=="picture-card"&&p!=="picture"||(n.value=n.value.map(v=>{const{raw:g,url:b}=v;if(!b&&g)try{v.url=URL.createObjectURL(g)}catch(C){e.onError(C,v,n.value)}return v}))}),ie(n,p=>{for(const v of p)v.uid||(v.uid=Md()),v.status||(v.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:a,clearFiles:l,handleError:u,handleProgress:c,handleStart:f,handleSuccess:d,handleRemove:h,submit:m,revokeFileObjectURL:tO}},sne=ae({name:"ElUpload",__name:"upload",props:jT,setup(e,{expose:t}){const n=e,o=on(),a=Zt(),{abort:l,submit:r,clearFiles:i,uploadFiles:u,handleStart:c,handleError:d,handleRemove:f,handleSuccess:h,handleProgress:m,revokeFileObjectURL:p}=rne(n,a),v=k(()=>n.listType==="picture-card"),g=k(()=>({...n,fileList:u.value,onStart:c,onProgress:m,onSuccess:h,onError:d,onRemove:f}));return Bt(()=>{u.value.forEach(p)}),St(fg,{accept:Lt(n,"accept")}),t({abort:l,submit:r,clearFiles:i,handleStart:c,handleRemove:f}),(b,C)=>($(),F("div",null,[v.value&&b.showFileList?($(),oe(GT,{key:0,disabled:s(o),"list-type":b.listType,files:s(u),crossorigin:b.crossorigin,"handle-preview":b.onPreview,onRemove:s(f)},uo({append:Q(()=>[Z(QT,rt({ref_key:"uploadRef",ref:a},g.value),{default:Q(()=>[b.$slots.trigger?ee(b.$slots,"trigger",{key:0}):te("v-if",!0),!b.$slots.trigger&&b.$slots.default?ee(b.$slots,"default",{key:1}):te("v-if",!0)]),_:3},16)]),_:2},[b.$slots.file?{name:"default",fn:Q(({file:w,index:y})=>[ee(b.$slots,"file",{file:w,index:y})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):te("v-if",!0),!v.value||v.value&&!b.showFileList?($(),oe(QT,rt({key:1,ref_key:"uploadRef",ref:a},g.value),{default:Q(()=>[b.$slots.trigger?ee(b.$slots,"trigger",{key:0}):te("v-if",!0),!b.$slots.trigger&&b.$slots.default?ee(b.$slots,"default",{key:1}):te("v-if",!0)]),_:3},16)):te("v-if",!0),b.$slots.trigger?ee(b.$slots,"default",{key:2}):te("v-if",!0),ee(b.$slots,"tip"),!v.value&&b.showFileList?($(),oe(GT,{key:3,disabled:s(o),"list-type":b.listType,files:s(u),crossorigin:b.crossorigin,"handle-preview":b.onPreview,onRemove:s(f)},uo({_:2},[b.$slots.file?{name:"default",fn:Q(({file:w,index:y})=>[ee(b.$slots,"file",{file:w,index:y})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):te("v-if",!0)]))}});var ine=ye(sne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const nO=Qe(ine),oO=he({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:q([String,Array]),default:"Element Plus"},font:{type:q(Object)},gap:{type:q(Array),default:()=>[100,100]},offset:{type:q(Array)}});function une(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function cne(e){return Object.keys(e).map(t=>`${une(t)}: ${e[t]};`).join(" ")}function dne(){return window.devicePixelRatio||1}const fne=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},pne={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function hg(e,t,n=1){const o=document.createElement("canvas"),a=o.getContext("2d"),l=e*n,r=t*n;return o.setAttribute("width",`${l}px`),o.setAttribute("height",`${r}px`),a.save(),[a,o,l,r]}function vne(){function e(t,n,o,a,l,r,i,u,c){const[d,f,h,m]=hg(a,l,o);let p=0;if(t instanceof HTMLImageElement)d.drawImage(t,0,0,h,m);else{const{color:V,fontSize:G,fontStyle:X,fontWeight:le,fontFamily:se,textAlign:de,textBaseline:ce}=r,ne=Number(G)*o;d.font=`${X} normal ${le} ${ne}px/${l}px ${se}`,d.fillStyle=V,d.textAlign=de,d.textBaseline=ce;const j=$e(t)?t:[t];if(ce!=="top"&&j[0]){const re=d.measureText(j[0]);d.textBaseline="top";const Se=d.measureText(j[0]);p=re.actualBoundingBoxAscent-Se.actualBoundingBoxAscent}j==null||j.forEach((re,Se)=>{const[Te,De]=pne[de];d.fillText(re!=null?re:"",h*Te+c*De,Se*(ne+r.fontGap*o))})}const v=Math.PI/180*Number(n),g=Math.max(a,l),[b,C,w]=hg(g,g,o);b.translate(w/2,w/2),b.rotate(v),h>0&&m>0&&b.drawImage(f,-h/2,-m/2);function y(V,G){const X=V*Math.cos(v)-G*Math.sin(v),le=V*Math.sin(v)+G*Math.cos(v);return[X,le]}let S=0,E=0,_=0,T=0;const N=h/2,O=m/2;[[0-N,0-O],[0+N,0-O],[0+N,0+O],[0-N,0+O]].forEach(([V,G])=>{const[X,le]=y(V,G);S=Math.min(S,X),E=Math.max(E,X),_=Math.min(_,le),T=Math.max(T,le)});const M=S+w/2,L=_+w/2,H=E-S,K=T-_,Y=i*o,I=u*o,R=(H+Y)*2,D=K+I,[B,z]=hg(R,D);function U(V=0,G=0){B.drawImage(C,M,L,H,K,V,G+p,H,K)}return U(),U(H+Y,-K/2-I/2),U(H+Y,+K/2+I/2),[z.toDataURL(),R/o,D/o]}return e}const hne=ae({name:"ElWatermark",__name:"watermark",props:oO,setup(e){const t={position:"relative"},n=e,o=k(()=>{var A,M;return(M=(A=n.font)==null?void 0:A.fontGap)!=null?M:3}),a=k(()=>{var A,M;return(M=(A=n.font)==null?void 0:A.color)!=null?M:"rgba(0,0,0,.15)"}),l=k(()=>{var A,M;return(M=(A=n.font)==null?void 0:A.fontSize)!=null?M:16}),r=k(()=>{var A,M;return(M=(A=n.font)==null?void 0:A.fontWeight)!=null?M:"normal"}),i=k(()=>{var A,M;return(M=(A=n.font)==null?void 0:A.fontStyle)!=null?M:"normal"}),u=k(()=>{var A,M;return(M=(A=n.font)==null?void 0:A.fontFamily)!=null?M:"sans-serif"}),c=k(()=>{var A,M;return(M=(A=n.font)==null?void 0:A.textAlign)!=null?M:"center"}),d=k(()=>{var A,M;return(M=(A=n.font)==null?void 0:A.textBaseline)!=null?M:"hanging"}),f=k(()=>n.gap[0]),h=k(()=>n.gap[1]),m=k(()=>f.value/2),p=k(()=>h.value/2),v=k(()=>{var A,M;return(M=(A=n.offset)==null?void 0:A[0])!=null?M:m.value}),g=k(()=>{var A,M;return(M=(A=n.offset)==null?void 0:A[1])!=null?M:p.value}),b=()=>{const A={zIndex:n.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let M=v.value-m.value,L=g.value-p.value;return M>0&&(A.left=`${M}px`,A.width=`calc(100% - ${M}px)`,M=0),L>0&&(A.top=`${L}px`,A.height=`calc(100% - ${L}px)`,L=0),A.backgroundPosition=`${M}px ${L}px`,A},C=Zt(null),w=Zt(),y=P(!1),S=()=>{w.value&&(w.value.remove(),w.value=void 0)},E=(A,M)=>{var L;C.value&&w.value&&(y.value=!0,w.value.setAttribute("style",cne({...b(),backgroundImage:`url('${A}')`,backgroundSize:`${Math.floor(M)}px`})),(L=C.value)==null||L.append(w.value),setTimeout(()=>{y.value=!1}))},_=A=>{let M=120,L=64,H=0;const{image:K,content:Y,width:I,height:R,rotate:D}=n;if(!K&&A.measureText){A.font=`${Number(l.value)}px ${u.value}`;const B=$e(Y)?Y:[Y];let z=0,U=0;B.forEach(G=>{const{width:X,fontBoundingBoxAscent:le,fontBoundingBoxDescent:se,actualBoundingBoxAscent:de,actualBoundingBoxDescent:ce}=A.measureText(G),ne=_t(le)?de+ce:le+se;X>z&&(z=Math.ceil(X)),ne>U&&(U=Math.ceil(ne))}),M=z,L=U*B.length+(B.length-1)*o.value;const V=Math.PI/180*Number(D);H=Math.ceil(Math.abs(Math.sin(V)*L)/2),M+=H}return[I!=null?I:M,R!=null?R:L,H]},T=vne(),N=()=>{const M=document.createElement("canvas").getContext("2d"),L=n.image,H=n.content,K=n.rotate;if(M){w.value||(w.value=document.createElement("div"));const Y=dne(),[I,R,D]=_(M),B=z=>{const[U,V]=T(z||"",K,Y,I,R,{color:a.value,fontSize:l.value,fontStyle:i.value,fontWeight:r.value,fontFamily:u.value,fontGap:o.value,textAlign:c.value,textBaseline:d.value},f.value,h.value,D);E(U,V)};if(L){const z=new Image;z.onload=()=>{B(z)},z.onerror=()=>{B(H)},z.crossOrigin="anonymous",z.referrerPolicy="no-referrer",z.src=L}else B(H)}};return ut(()=>{N()}),ie(()=>n,()=>{N()},{deep:!0,flush:"post"}),Bt(()=>{S()}),Ds(C,A=>{y.value||A.forEach(M=>{fne(M,w.value)&&(S(),N())})},{attributes:!0,subtree:!0,childList:!0}),(A,M)=>($(),F("div",{ref_key:"containerRef",ref:C,style:Ie([t])},[ee(A.$slots,"default")],4))}});var mne=ye(hne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/watermark/src/watermark.vue"]]);const aO=Qe(mne),gne=he({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:q(Object)},targetAreaClickable:{type:Boolean,default:!0}}),bne=(e,t,n,o,a)=>{const l=P(null),r=()=>{let f;return He(e.value)?f=document.querySelector(e.value):lt(e.value)?f=e.value():f=e.value,f},i=()=>{const f=r();if(!f||!t.value){l.value=null;return}yne(f)||f.scrollIntoView(a.value);const{left:h,top:m,width:p,height:v}=f.getBoundingClientRect();l.value={left:h,top:m,width:p,height:v,radius:0}};ut(()=>{ie([t,e],()=>{i()},{immediate:!0}),window.addEventListener("resize",i)}),Bt(()=>{window.removeEventListener("resize",i)});const u=f=>{var h;return(h=$e(n.value.offset)?n.value.offset[f]:n.value.offset)!=null?h:6},c=k(()=>{var f;if(!l.value)return l.value;const h=u(0),m=u(1),p=((f=n.value)==null?void 0:f.radius)||2;return{left:l.value.left-h,top:l.value.top-m,width:l.value.width+h*2,height:l.value.height+m*2,radius:p}}),d=k(()=>{const f=r();return!o.value||!f||!window.DOMRect?f||void 0:{getBoundingClientRect(){var h,m,p,v;return window.DOMRect.fromRect({width:((h=c.value)==null?void 0:h.width)||0,height:((m=c.value)==null?void 0:m.height)||0,x:((p=c.value)==null?void 0:p.left)||0,y:((v=c.value)==null?void 0:v.top)||0})}}});return{mergedPosInfo:c,triggerTarget:d}},Nd=Symbol("ElTour");function yne(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:o,right:a,bottom:l,left:r}=e.getBoundingClientRect();return o>=0&&r>=0&&a<=t&&l<=n}const wne=(e,t,n,o,a,l,r,i)=>{const u=P(),c=P(),d=P({}),f={x:u,y:c,placement:o,strategy:a,middlewareData:d},h=k(()=>{const b=[OH(s(l)),xH(),RH(),Cne()];return s(i)&&s(n)&&b.push(vC({element:s(n)})),b}),m=async()=>{if(!Tt)return;const b=s(e),C=s(t);if(!b||!C)return;const w=await hC(b,C,{placement:s(o),strategy:s(a),middleware:s(h)});Wr(f).forEach(y=>{f[y].value=w[y]})},p=k(()=>{if(!s(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:s(r)};const{overflow:b}=s(d);return{position:s(a),zIndex:s(r),top:s(c)!=null?`${s(c)}px`:"",left:s(u)!=null?`${s(u)}px`:"",maxWidth:b!=null&&b.maxWidth?`${b==null?void 0:b.maxWidth}px`:""}}),v=k(()=>{if(!s(i))return{};const{arrow:b}=s(d);return{left:(b==null?void 0:b.x)!=null?`${b==null?void 0:b.x}px`:"",top:(b==null?void 0:b.y)!=null?`${b==null?void 0:b.y}px`:""}});let g;return ut(()=>{const b=s(e),C=s(t);b&&C&&(g=_H(b,C,m)),io(()=>{m()})}),Bt(()=>{g&&g()}),{update:m,contentStyle:p,arrowStyle:v}},Cne=()=>({name:"overflow",async fn(e){const t=await TH(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),Sne={style:{width:"100%",height:"100%"}},kne=["d"],Ene=ae({name:"ElTourMask",inheritAttrs:!1,__name:"mask",props:gne,setup(e){const t=e,{ns:n}=Ee(Nd),o=k(()=>{var d,f;return(f=(d=t.pos)==null?void 0:d.radius)!=null?f:2}),a=k(()=>{const d=o.value,f=`a${d},${d} 0 0 1`;return{topRight:`${f} ${d},${d}`,bottomRight:`${f} ${-d},${d}`,bottomLeft:`${f} ${-d},${-d}`,topLeft:`${f} ${d},${-d}`}}),{width:l,height:r}=Jd(),i=k(()=>{const d=l.value,f=r.value,h=a.value,m=`M${d},0 L0,0 L0,${f} L${d},${f} L${d},0 Z`,p=o.value;return t.pos?`${m} M${t.pos.left+p},${t.pos.top} h${t.pos.width-p*2} ${h.topRight} v${t.pos.height-p*2} ${h.bottomRight} h${-t.pos.width+p*2} ${h.bottomLeft} v${-t.pos.height+p*2} ${h.topLeft} z`:m}),u=k(()=>({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:t.zIndex,pointerEvents:t.pos&&t.targetAreaClickable?"none":"auto"})),c=k(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return fi(Lt(t,"visible"),{ns:n}),(d,f)=>d.visible?($(),F("div",rt({key:0,class:s(n).e("mask"),style:u.value},d.$attrs),[($(),F("svg",Sne,[W("path",{class:x(s(n).e("hollow")),style:Ie(c.value),d:i.value},null,14,kne)]))],16)):te("v-if",!0)}});var $ne=ye(Ene,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/mask.vue"]]);const lO=["absolute","fixed"],rO=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],Ad=he({placement:{type:q(String),values:rO,default:"bottom"},reference:{type:q(Object),default:null},strategy:{type:q(String),values:lO,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),sO={close:()=>!0},_ne=["data-side"],Tne=ae({name:"ElTourContent",__name:"content",props:Ad,emits:sO,setup(e,{emit:t}){const n=e,o=t,a=P(n.placement),l=P(n.strategy),r=P(null),i=P(null);ie(()=>n.placement,()=>{a.value=n.placement});const{contentStyle:u,arrowStyle:c}=wne(Lt(n,"reference"),r,i,a,l,Lt(n,"offset"),Lt(n,"zIndex"),Lt(n,"showArrow")),d=k(()=>a.value.split("-")[0]),{ns:f}=Ee(Nd),h=()=>{o("close")},m=p=>{p.detail.focusReason==="pointer"&&p.preventDefault()};return(p,v)=>($(),F("div",{ref_key:"contentRef",ref:r,style:Ie(s(u)),class:x(s(f).e("content")),"data-side":d.value,tabindex:"-1"},[Z(s(us),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":r.value||void 0,onReleaseRequested:h,onFocusoutPrevented:m},{default:Q(()=>[ee(p.$slots,"default")]),_:3},8,["focus-trap-el"]),p.showArrow?($(),F("span",{key:0,ref_key:"arrowRef",ref:i,style:Ie(s(c)),class:x(s(f).e("arrow"))},null,6)):te("v-if",!0)],14,_ne))}});var One=ye(Tne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/content.vue"]]),Rne=ae({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let o=0;return()=>{var a,l;const r=(a=t.default)==null?void 0:a.call(t),i=[];let u=0;function c(d){!$e(d)||d.forEach(f=>{var h;((h=(f==null?void 0:f.type)||{})==null?void 0:h.name)==="ElTourStep"&&(i.push(f),u+=1)})}return r.length&&c(No((l=r[0])==null?void 0:l.children)),o!==u&&(o=u,n("update-total",u)),i.length?i[e.current]:null}}});const iO=he({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:Ht},placement:Ad.placement,contentStyle:{type:q([Object])},mask:{type:q([Boolean,Object]),default:!0},gap:{type:q(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:q([Boolean,Object]),default:()=>({block:"center"})},type:{type:q(String)},appendTo:{type:Ei.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),uO={[Ye]:e=>zt(e),["update:current"]:e=>xe(e),close:e=>xe(e),finish:()=>!0,change:e=>xe(e)},xne=ae({name:"ElTour",inheritAttrs:!1,__name:"tour",props:iO,emits:uO,setup(e,{emit:t}){const n=e,o=t,a=fe("tour"),l=P(0),r=P(),i=Jg(n,"current",o,{passive:!0}),u=k(()=>{var O;return(O=r.value)==null?void 0:O.target}),c=k(()=>[a.b(),b.value==="primary"?a.m("primary"):""]),d=k(()=>{var O;return((O=r.value)==null?void 0:O.placement)||n.placement}),f=k(()=>{var O,A;return(A=(O=r.value)==null?void 0:O.contentStyle)!=null?A:n.contentStyle}),h=k(()=>{var O,A;return(A=(O=r.value)==null?void 0:O.mask)!=null?A:n.mask}),m=k(()=>!!h.value&&n.modelValue),p=k(()=>zt(h.value)?void 0:h.value),v=k(()=>{var O,A;return!!u.value&&((A=(O=r.value)==null?void 0:O.showArrow)!=null?A:n.showArrow)}),g=k(()=>{var O,A;return(A=(O=r.value)==null?void 0:O.scrollIntoViewOptions)!=null?A:n.scrollIntoViewOptions}),b=k(()=>{var O,A;return(A=(O=r.value)==null?void 0:O.type)!=null?A:n.type}),{nextZIndex:C}=Qr(),w=C(),y=k(()=>{var O;return(O=n.zIndex)!=null?O:w}),{mergedPosInfo:S,triggerTarget:E}=bne(u,Lt(n,"modelValue"),Lt(n,"gap"),h,g);ie(()=>n.modelValue,O=>{O||(i.value=0)});const _=()=>{n.closeOnPressEscape&&(o(Ye,!1),o("close",i.value))},T=O=>{l.value=O},N=mn();return St(Nd,{currentStep:r,current:i,total:l,showClose:Lt(n,"showClose"),closeIcon:Lt(n,"closeIcon"),mergedType:b,ns:a,slots:N,updateModelValue(O){o(Ye,O)},onClose(){o("close",i.value)},onFinish(){o("finish")},onChange(){o(ht,i.value)}}),(O,A)=>($(),F(Be,null,[Z(s(rs),{to:O.appendTo},{default:Q(()=>{var M,L;return[W("div",rt({class:c.value},O.$attrs),[Z($ne,{visible:m.value,fill:(M=p.value)==null?void 0:M.color,style:Ie((L=p.value)==null?void 0:L.style),pos:s(S),"z-index":y.value,"target-area-clickable":O.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),O.modelValue?($(),oe(One,{key:s(i),reference:s(E),placement:d.value,"show-arrow":v.value,"z-index":y.value,style:Ie(f.value),onClose:_},{default:Q(()=>[Z(s(Rne),{current:s(i),onUpdateTotal:T},{default:Q(()=>[ee(O.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):te("v-if",!0)],16)]}),_:3},8,["to"]),te(" just for IDE "),te("v-if",!0)],64))}});var Ine=ye(xne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/tour.vue"]]);const cO=he({target:{type:q([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:Ht},showArrow:{type:Boolean,default:void 0},placement:Ad.placement,mask:{type:q([Boolean,Object]),default:void 0},contentStyle:{type:q([Object])},prevButtonProps:{type:q(Object)},nextButtonProps:{type:q(Object)},scrollIntoViewOptions:{type:q([Boolean,Object]),default:void 0},type:{type:q(String)}}),dO={close:()=>!0},Mne=["aria-label"],Nne=ae({name:"ElTourStep",__name:"step",props:cO,emits:dO,setup(e,{emit:t}){const n=e,o=t,{Close:a}=G1,{t:l}=wt(),{currentStep:r,current:i,total:u,showClose:c,closeIcon:d,mergedType:f,ns:h,slots:m,updateModelValue:p,onClose:v,onFinish:g,onChange:b}=Ee(Nd);ie(n,O=>{r.value=O},{immediate:!0});const C=k(()=>{var O;return(O=n.showClose)!=null?O:c.value}),w=k(()=>{var O,A;return(A=(O=n.closeIcon)!=null?O:d.value)!=null?A:a}),y=O=>{if(!!O)return zr(O,["children","onClick"])},S=()=>{var O,A;i.value-=1,(O=n.prevButtonProps)!=null&&O.onClick&&((A=n.prevButtonProps)==null||A.onClick()),b()},E=()=>{var O;i.value>=u.value-1?_():i.value+=1,(O=n.nextButtonProps)!=null&&O.onClick&&n.nextButtonProps.onClick(),b()},_=()=>{T(),g()},T=()=>{p(!1),v(),o("close")},N=O=>{const A=O.target;if(A!=null&&A.isContentEditable)return;switch(Wt(O)){case pe.left:O.preventDefault(),i.value>0&&S();break;case pe.right:O.preventDefault(),E();break}};return ut(()=>{window.addEventListener("keydown",N)}),Bt(()=>{window.removeEventListener("keydown",N)}),(O,A)=>($(),F(Be,null,[C.value?($(),F("button",{key:0,"aria-label":s(l)("el.tour.close"),class:x(s(h).e("closebtn")),type:"button",onClick:T},[Z(s(_e),{class:x(s(h).e("close"))},{default:Q(()=>[($(),oe(at(w.value)))]),_:1},8,["class"])],10,Mne)):te("v-if",!0),W("header",{class:x([s(h).e("header"),{"show-close":s(c)}])},[ee(O.$slots,"header",{},()=>[W("span",{role:"heading",class:x(s(h).e("title"))},ge(O.title),3)])],2),W("div",{class:x(s(h).e("body"))},[ee(O.$slots,"default",{},()=>[W("span",null,ge(O.description),1)])],2),W("footer",{class:x(s(h).e("footer"))},[W("div",{class:x(s(h).b("indicators"))},[s(m).indicators?($(),oe(at(s(m).indicators),{key:0,current:s(i),total:s(u)},null,8,["current","total"])):($(!0),F(Be,{key:1},yt(s(u),(M,L)=>($(),F("span",{key:M,class:x([s(h).b("indicator"),s(h).is("active",L===s(i))])},null,2))),128))],2),W("div",{class:x(s(h).b("buttons"))},[s(i)>0?($(),oe(s(In),rt({key:0,size:"small",type:s(f)},y(O.prevButtonProps),{onClick:S}),{default:Q(()=>{var M,L;return[bt(ge((L=(M=O.prevButtonProps)==null?void 0:M.children)!=null?L:s(l)("el.tour.previous")),1)]}),_:1},16,["type"])):te("v-if",!0),s(i)<=s(u)-1?($(),oe(s(In),rt({key:1,size:"small",type:s(f)==="primary"?"default":"primary"},y(O.nextButtonProps),{onClick:E}),{default:Q(()=>{var M,L;return[bt(ge((L=(M=O.nextButtonProps)==null?void 0:M.children)!=null?L:s(i)===s(u)-1?s(l)("el.tour.finish"):s(l)("el.tour.next")),1)]}),_:1},16,["type"])):te("v-if",!0)],2)],2)],64))}});var fO=ye(Nne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/step.vue"]]);const pO=Qe(Ine,{TourStep:fO}),vO=sn(fO),hO=he({container:{type:q([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:q(String),default:"default"},direction:{type:q(String),default:"vertical"},selectScrollTop:Boolean}),mO={change:e=>He(e),click:(e,t)=>e instanceof MouseEvent&&(He(t)||_t(t))},gO=Symbol("anchor"),Ane=ae({name:"ElAnchor",__name:"anchor",props:hO,emits:mO,setup(e,{expose:t,emit:n}){const o=e,a=n,l=mn(),r=P(""),i=P({}),u=P(null),c=P(null),d=P(),f={};let h=!1,m=0;const p=fe("anchor"),v=k(()=>[p.b(),o.type==="underline"?p.m("underline"):"",p.m(o.direction)]),g=M=>{f[M.href]=M.el},b=M=>{delete f[M]},C=M=>{r.value!==M&&(r.value=M,a(ht,M))};let w=null,y="";const S=M=>{if(!d.value)return;const L=tc(M);if(!L)return;if(w){if(y===M)return;w()}y=M,h=!0;const H=B1(L,d.value),K=ef(L,H),Y=H.scrollHeight-H.clientHeight,I=Math.min(K-o.offset,Y);w=UF(d.value,m,I,o.duration,()=>{setTimeout(()=>{h=!1,y=""},20)})},E=M=>{M&&(C(M),S(M))},_=(M,L)=>{a("click",M,L),E(L)},T=cz(()=>{d.value&&(m=F1(d.value));const M=N();h||_t(M)||C(M)}),N=()=>{if(!d.value)return;const M=F1(d.value),L=[];for(const H of Object.keys(f)){const K=tc(H);if(!K)continue;const Y=B1(K,d.value),I=ef(K,Y);L.push({top:I-o.offset-o.bound,href:H})}L.sort((H,K)=>H.top-K.top);for(let H=0;H<L.length;H++){const K=L[H],Y=L[H+1];if(H===0&&M===0)return o.selectScrollTop?K.href:"";if(K.top<=M&&(!Y||Y.top>M))return K.href}},O=()=>{const M=tc(o.container);!M||si(M)?d.value=window:d.value=M};Mt(d,"scroll",T);const A=()=>{ke(()=>{if(!u.value||!c.value||!r.value){i.value={};return}const M=f[r.value];if(!M){i.value={};return}const L=u.value.getBoundingClientRect(),H=c.value.getBoundingClientRect(),K=M.getBoundingClientRect();if(o.direction==="horizontal"){const Y=K.left-L.left;i.value={left:`${Y}px`,width:`${K.width}px`,opacity:1}}else{const Y=K.top-L.top+(K.height-H.height)/2;i.value={top:`${Y}px`,opacity:1}}})};return ie(r,A),ie(()=>{var M;return(M=l.default)==null?void 0:M.call(l)},A),ut(()=>{O();const M=decodeURIComponent(window.location.hash);tc(M)?E(M):T()}),ie(()=>o.container,()=>{O()}),St(gO,{ns:p,direction:o.direction,currentAnchor:r,addLink:g,removeLink:b,handleClick:_}),t({scrollTo:E}),(M,L)=>($(),F("div",{ref_key:"anchorRef",ref:u,class:x(v.value)},[M.marker?($(),F("div",{key:0,ref_key:"markerRef",ref:c,class:x(s(p).e("marker")),style:Ie(i.value)},null,6)):te("v-if",!0),W("div",{class:x(s(p).e("list"))},[ee(M.$slots,"default")],2)],2))}});var Pne=ye(Ane,[["__file","/home/runner/work/element-plus/element-plus/packages/components/anchor/src/anchor.vue"]]);const Lne=he({title:String,href:String}),Dne=["href"],Bne=ae({name:"ElAnchorLink",__name:"anchor-link",props:Lne,setup(e){const t=e,n=P(null),{ns:o,direction:a,currentAnchor:l,addLink:r,removeLink:i,handleClick:u}=Ee(gO),c=k(()=>[o.e("link"),o.is("active",l.value===t.href)]),d=f=>{u(f,t.href)};return ie(()=>t.href,(f,h)=>{ke(()=>{h&&i(h),f&&r({href:f,el:n.value})})}),ut(()=>{const{href:f}=t;f&&r({href:f,el:n.value})}),Bt(()=>{const{href:f}=t;f&&i(f)}),(f,h)=>($(),F("div",{class:x(s(o).e("item"))},[W("a",{ref_key:"linkRef",ref:n,class:x(c.value),href:f.href,onClick:d},[ee(f.$slots,"default",{},()=>[bt(ge(f.title),1)])],10,Dne),f.$slots["sub-link"]&&s(a)==="vertical"?($(),F("div",{key:0,class:x(s(o).e("list"))},[ee(f.$slots,"sub-link")],2)):te("v-if",!0)],2))}});var bO=ye(Bne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/anchor/src/anchor-link.vue"]]);const yO=Qe(Pne,{AnchorLink:bO}),wO=sn(bO),mg={label:"label",value:"value",disabled:"disabled"},CO=he({direction:{type:q(String),default:"horizontal"},options:{type:q(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:q(Object),default:()=>mg},block:Boolean,size:Tn,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},id:String,name:String,...Gn(["ariaLabel"])}),SO={[Ye]:e=>He(e)||xe(e)||zt(e),[ht]:e=>He(e)||xe(e)||zt(e)},Fne=["id","aria-label","aria-labelledby"],Vne=["name","disabled","checked","onChange"],zne=ae({name:"ElSegmented",__name:"segmented",props:CO,emits:SO,setup(e,{emit:t}){const n=e,o=t,a=fe("segmented"),l=Vn(),r=wn(),i=on(),{formItem:u}=Pn(),{inputId:c,isLabeledByFormItem:d}=Eo(n,{formItemContext:u}),f=P(null),h=SR(),m=Pt({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),p=(M,L)=>{const H=b(L);o(Ye,H),o(ht,H),M.target.checked=H===n.modelValue},v=k(()=>({...mg,...n.props})),g=M=>M,b=M=>Rt(M)?M[v.value.value]:M,C=M=>Rt(M)?M[v.value.label]:M,w=M=>!!(i.value||(Rt(M)?M[v.value.disabled]:!1)),y=M=>n.modelValue===b(M),S=M=>n.options.find(L=>b(L)===M),E=M=>[a.e("item"),a.is("selected",y(M)),a.is("disabled",w(M))],_=()=>{if(!f.value)return;const M=f.value.querySelector(".is-selected"),L=f.value.querySelector(".is-selected input");if(!M||!L){m.width=0,m.height=0,m.translateX=0,m.translateY=0,m.focusVisible=!1;return}m.isInit=!0,n.direction==="vertical"?(m.height=M.offsetHeight,m.translateY=M.offsetTop):(m.width=M.offsetWidth,m.translateX=M.offsetLeft);try{m.focusVisible=L.matches(":focus-visible")}catch(H){}},T=k(()=>[a.b(),a.m(r.value),a.is("block",n.block)]),N=k(()=>({width:n.direction==="vertical"?"100%":`${m.width}px`,height:n.direction==="vertical"?`${m.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${m.translateY}px)`:`translateX(${m.translateX}px)`,display:m.isInit?"block":"none"})),O=k(()=>[a.e("item-selected"),a.is("disabled",w(S(n.modelValue))),a.is("focus-visible",m.focusVisible)]),A=k(()=>n.name||l.value);return Qt(f,_),ie(h,_),ie(()=>n.modelValue,()=>{var M;_(),n.validateEvent&&((M=u==null?void 0:u.validate)==null||M.call(u,"change").catch(L=>void 0))},{flush:"post"}),(M,L)=>M.options.length?($(),F("div",{key:0,id:s(c),ref_key:"segmentedRef",ref:f,class:x(T.value),role:"radiogroup","aria-label":s(d)?void 0:M.ariaLabel||"segmented","aria-labelledby":s(d)?s(u).labelId:void 0},[W("div",{class:x([s(a).e("group"),s(a).m(M.direction)])},[W("div",{style:Ie(N.value),class:x(O.value)},null,6),($(!0),F(Be,null,yt(M.options,(H,K)=>($(),F("label",{key:K,class:x(E(H))},[W("input",{class:x(s(a).e("item-input")),type:"radio",name:A.value,disabled:w(H),checked:y(H),onChange:Y=>p(Y,H)},null,42,Vne),W("div",{class:x(s(a).e("item-label"))},[ee(M.$slots,"default",{item:g(H)},()=>[bt(ge(C(H)),1)])],2)],2))),128))],2)],10,Fne)):te("v-if",!0)}});var Hne=ye(zne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/segmented/src/segmented.vue"]]);const kO=Qe(Hne),Wne=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value||"").toLowerCase().includes(n)},Kne=(e,t,n)=>{const{selectionEnd:o}=e;if(o===null)return;const a=e.value,l=An(t);let r=-1,i;for(let u=o-1;u>=0;--u){const c=a[u];if(c===n||c===`
68
68
  `||c==="\r"){r=u;continue}if(l.includes(c)){const d=r===-1?o:r;i={pattern:a.slice(u+1,d),start:u+1,end:d,prefix:c,prefixIndex:u,splitIndex:r,selectionEnd:o};break}}return i},jne=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,o=e.selectionEnd!==null?e.selectionEnd:0,a=t.useSelectionEnd?o:n,l=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const h=document.querySelector("#input-textarea-caret-position-mirror-div");h!=null&&h.parentNode&&h.parentNode.removeChild(h)}const r=document.createElement("div");r.id="input-textarea-caret-position-mirror-div",document.body.appendChild(r);const i=r.style,u=window.getComputedStyle(e),c=e.nodeName==="INPUT";i.whiteSpace=c?"nowrap":"pre-wrap",c||(i.wordWrap="break-word"),i.position="absolute",t.debug||(i.visibility="hidden"),l.forEach(h=>{if(c&&h==="lineHeight")if(u.boxSizing==="border-box"){const m=Number.parseInt(u.height),p=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),v=p+Number.parseInt(u.lineHeight);m>v?i.lineHeight=`${m-p}px`:m===v?i.lineHeight=u.lineHeight:i.lineHeight="0"}else i.lineHeight=u.height;else i[h]=u[h]}),Qd()?e.scrollHeight>Number.parseInt(u.height)&&(i.overflowY="scroll"):i.overflow="hidden",r.textContent=e.value.slice(0,Math.max(0,a)),c&&r.textContent&&(r.textContent=r.textContent.replace(/\s/g,"\xA0"));const d=document.createElement("span");d.textContent=e.value.slice(Math.max(0,a))||".",d.style.position="relative",d.style.left=`${-e.scrollLeft}px`,d.style.top=`${-e.scrollTop}px`,r.appendChild(d);const f={top:d.offsetTop+Number.parseInt(u.borderTopWidth),left:d.offsetLeft+Number.parseInt(u.borderLeftWidth),height:Number.parseInt(u.fontSize)*1.5};return t.debug?d.style.backgroundColor="#aaa":document.body.removeChild(r),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},EO=he({...is,options:{type:q(Array),default:()=>[]},prefix:{type:q([String,Array]),default:"@",validator:e=>He(e)?e.length===1:e.every(t=>He(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:q([Boolean,Function]),default:()=>Wne,validator:e=>e===!1?!0:lt(e)},placement:{type:q(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:q(Function)},modelValue:String,loading:Boolean,popperClass:Vt.popperClass,popperStyle:Vt.popperStyle,popperOptions:{type:q(Object),default:()=>({})},props:{type:q(Object),default:()=>gg}}),$O={[Ye]:e=>He(e),"whole-remove":(e,t)=>He(e)&&He(t),input:e=>He(e),search:(e,t)=>He(e)&&He(t),select:(e,t)=>Rt(e)&&He(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},gg={value:"value",label:"label",disabled:"disabled"},Yne=he({options:{type:q(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),Une={select:e=>He(e.value)},Gne=["id","aria-disabled","aria-selected","onMousemove","onClick"],qne=ae({name:"ElMentionDropdown",__name:"mention-dropdown",props:Yne,emits:Une,setup(e,{expose:t,emit:n}){const o=e,a=n,l=fe("mention"),{t:r}=wt(),i=P(-1),u=P(),c=P(),d=P(),f=(y,S)=>[l.be("dropdown","item"),l.is("hovering",i.value===S),l.is("disabled",y.disabled||o.disabled)],h=y=>{y.disabled||o.disabled||a("select",y)},m=y=>{i.value=y},p=k(()=>o.disabled||o.options.every(y=>y.disabled)),v=k(()=>o.options[i.value]),g=()=>{!v.value||a("select",v.value)},b=y=>{const{options:S}=o;if(S.length===0||p.value)return;y==="next"?(i.value++,i.value===S.length&&(i.value=0)):y==="prev"&&(i.value--,i.value<0&&(i.value=S.length-1));const E=S[i.value];if(E.disabled){b(y);return}ke(()=>C(E))},C=y=>{var S,E,_,T;const{options:N}=o,O=N.findIndex(M=>M.value===y.value),A=(S=c.value)==null?void 0:S[O];if(A){const M=(_=(E=d.value)==null?void 0:E.querySelector)==null?void 0:_.call(E,`.${l.be("dropdown","wrap")}`);M&&Ep(M,A)}(T=u.value)==null||T.handleScroll()};return ie(()=>o.options,()=>{p.value||o.options.length===0?i.value=-1:i.value=0},{immediate:!0}),t({hoveringIndex:i,navigateOptions:b,selectHoverOption:g,hoverOption:v}),(y,S)=>($(),F("div",{ref_key:"dropdownRef",ref:d,class:x(s(l).b("dropdown"))},[y.$slots.header?($(),F("div",{key:0,class:x(s(l).be("dropdown","header"))},[ee(y.$slots,"header")],2)):te("v-if",!0),tt(Z(s(Jo),{id:y.contentId,ref_key:"scrollbarRef",ref:u,tag:"ul","wrap-class":s(l).be("dropdown","wrap"),"view-class":s(l).be("dropdown","list"),role:"listbox","aria-label":y.ariaLabel,"aria-orientation":"vertical"},{default:Q(()=>[($(!0),F(Be,null,yt(y.options,(E,_)=>($(),F("li",{id:`${y.contentId}-${_}`,ref_for:!0,ref_key:"optionRefs",ref:c,key:_,class:x(f(E,_)),role:"option","aria-disabled":E.disabled||y.disabled||void 0,"aria-selected":i.value===_,onMousemove:T=>m(_),onClick:je(T=>h(E),["stop"])},[ee(y.$slots,"label",{item:E,index:_},()=>{var T;return[W("span",null,ge((T=E.label)!=null?T:E.value),1)]})],42,Gne))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[xt,y.options.length>0&&!y.loading]]),y.loading?($(),F("div",{key:1,class:x(s(l).be("dropdown","loading"))},[ee(y.$slots,"loading",{},()=>[bt(ge(s(r)("el.mention.loading")),1)])],2)):te("v-if",!0),y.$slots.footer?($(),F("div",{key:2,class:x(s(l).be("dropdown","footer"))},[ee(y.$slots,"footer")],2)):te("v-if",!0)],2))}});var Xne=ye(qne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/mention/src/mention-dropdown.vue"]]);const Zne=ae({name:"ElMention",inheritAttrs:!1,__name:"mention",props:EO,emits:$O,setup(e,{expose:t,emit:n}){const o=e,a=n,l=k(()=>xa(o,Object.keys(is))),r=fe("mention"),i=on(),u=Vn(),c=P(),d=P(),f=P(),h=P(!1),m=P(),p=P(),v=k(()=>o.showArrow?o.placement:`${o.placement}-start`),g=k(()=>o.showArrow?["bottom","top"]:["bottom-start","top-start"]),b=k(()=>({...gg,...o.props})),C=I=>{const R={label:I[b.value.label],value:I[b.value.value],disabled:I[b.value.disabled]};return{...I,...R}},w=k(()=>o.options.map(C)),y=k(()=>{const{filterOption:I}=o;return!p.value||!I?w.value:w.value.filter(R=>I(p.value.pattern,R))}),S=k(()=>h.value&&(!!y.value.length||o.loading)),E=k(()=>{var I;return`${u.value}-${(I=f.value)==null?void 0:I.hoveringIndex}`}),_=I=>{a(Ye,I),a(Sn,I),H()},T=I=>{var R,D,B,z;if((R=c.value)!=null&&R.isComposing)return;const U=Wt(I);switch(U){case pe.left:case pe.right:H();break;case pe.up:case pe.down:if(!h.value)return;I.preventDefault(),(D=f.value)==null||D.navigateOptions(U===pe.up?"prev":"next");break;case pe.enter:case pe.numpadEnter:if(!h.value){o.type!=="textarea"&&H();return}I.preventDefault(),(B=f.value)!=null&&B.hoverOption?(z=f.value)==null||z.selectHoverOption():h.value=!1;break;case pe.esc:if(!h.value)return;I.preventDefault(),h.value=!1;break;case pe.backspace:if(o.whole&&p.value){const{splitIndex:V,selectionEnd:G,pattern:X,prefixIndex:le,prefix:se}=p.value,de=L();if(!de)return;const ce=de.value,ne=w.value.find(re=>re.value===X);if((lt(o.checkIsWhole)?o.checkIsWhole(X,se):ne)&&V!==-1&&V+1===G){I.preventDefault();const re=ce.slice(0,le)+ce.slice(V+1);a(Ye,re),a(Sn,re),a("whole-remove",X,se);const Se=le;ke(()=>{de.selectionStart=Se,de.selectionEnd=Se,Y()})}}}},{wrapperRef:N}=Ha(c,{disabled:i,afterFocus(){H()},beforeBlur(I){var R;return(R=d.value)==null?void 0:R.isFocusInsideContent(I)},afterBlur(){h.value=!1}}),O=()=>{H()},A=I=>o.options.find(R=>I.value===R[b.value.value]),M=I=>{if(!p.value)return;const R=L();if(!R)return;const D=R.value,{split:B}=o,z=D.slice(p.value.end),U=z.startsWith(B),V=`${I.value}${U?"":B}`,G=D.slice(0,p.value.start)+V+z;a(Ye,G),a(Sn,G),a("select",A(I),p.value.prefix);const X=p.value.start+V.length+(U?1:0);ke(()=>{R.selectionStart=X,R.selectionEnd=X,R.focus(),Y()})},L=()=>{var I,R;return o.type==="textarea"?(I=c.value)==null?void 0:I.textarea:(R=c.value)==null?void 0:R.input},H=()=>{setTimeout(()=>{K(),Y(),ke(()=>{var I;return(I=d.value)==null?void 0:I.updatePopper()})},0)},K=()=>{const I=L();if(!I)return;const R=jne(I),D=I.getBoundingClientRect(),B=N.value.getBoundingClientRect();m.value={position:"absolute",width:0,height:`${R.height}px`,left:`${R.left+D.left-B.left}px`,top:`${R.top+D.top-B.top}px`}},Y=()=>{const I=L();if(document.activeElement!==I){h.value=!1;return}const{prefix:R,split:D}=o;if(p.value=Kne(I,R,D),p.value&&p.value.splitIndex===-1){h.value=!0,a("search",p.value.pattern,p.value.prefix);return}h.value=!1};return t({input:c,tooltip:d,dropdownVisible:S}),(I,R)=>($(),F("div",{ref_key:"wrapperRef",ref:N,class:x(s(r).b())},[Z(s(Xn),rt(rt(l.value,I.$attrs),{ref_key:"elInputRef",ref:c,"model-value":I.modelValue,disabled:s(i),role:S.value?"combobox":void 0,"aria-activedescendant":S.value?E.value||"":void 0,"aria-controls":S.value?s(u):void 0,"aria-expanded":S.value||void 0,"aria-label":I.ariaLabel,"aria-autocomplete":S.value?"none":void 0,"aria-haspopup":S.value?"listbox":void 0,onInput:_,onKeydown:T,onMousedown:O}),uo({_:2},[yt(I.$slots,(D,B)=>({name:B,fn:Q(z=>[ee(I.$slots,B,Za(wl(z)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),Z(s(Ln),{ref_key:"tooltipRef",ref:d,visible:S.value,"popper-class":[s(r).e("popper"),I.popperClass],"popper-style":I.popperStyle,"popper-options":I.popperOptions,placement:v.value,"fallback-placements":g.value,effect:"light",pure:"",offset:I.offset,"show-arrow":I.showArrow},{default:Q(()=>[W("div",{style:Ie(m.value)},null,4)]),content:Q(()=>[Z(Xne,{ref_key:"dropdownRef",ref:f,options:y.value,disabled:s(i),loading:I.loading,"content-id":s(u),"aria-label":I.ariaLabel,onSelect:M,onClick:R[0]||(R[0]=je(D=>{var B;return(B=c.value)==null?void 0:B.focus()},["stop"]))},uo({_:2},[yt(I.$slots,(D,B)=>({name:B,fn:Q(z=>[ee(I.$slots,B,Za(wl(z)))])}))]),1032,["options","disabled","loading","content-id","aria-label"])]),_:3},8,["visible","popper-class","popper-style","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});var Jne=ye(Zne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/mention/src/mention.vue"]]);const _O=Qe(Jne);function Qne(e){const t=P(),{width:n,height:o}=Zd(t),a=k(()=>e.value==="horizontal"?n.value:o.value);return{containerEl:t,containerSize:a}}function bg(e){return Number(e.slice(0,-1))/100}function yg(e){return Number(e.slice(0,-2))}function wg(e){return He(e)&&e.endsWith("%")}function Cg(e){return He(e)&&e.endsWith("px")}function eoe(e,t){const n=k(()=>e.value.map(i=>i.size)),o=k(()=>e.value.length),a=P([]);ie([n,o,t],()=>{var i;let u=[],c=0;for(let f=0;f<o.value;f+=1){const h=(i=e.value[f])==null?void 0:i.size;if(wg(h))u[f]=bg(h);else if(Cg(h))u[f]=yg(h)/t.value;else if(h||h===0){const m=Number(h);Number.isNaN(m)||(u[f]=m/t.value)}else c+=1,u[f]=void 0}const d=u.reduce((f,h)=>f+(h||0),0);if(d>1||!c){const f=1/d;u=u.map(h=>h===void 0?0:h*f)}else{const f=(1-d)/c;u=u.map(h=>h===void 0?f:h)}a.value=u});const l=i=>i*t.value,r=k(()=>a.value.map(l));return{percentSizes:a,pxSizes:r}}function toe(e,t,n,o){const a=g=>g*t.value||0;function l(g,b){return wg(g)?a(bg(g)):Cg(g)?yg(g):g!=null?g:b}const r=P(0),i=P(null);let u=[],c=Gt;const d=k(()=>e.value.map(g=>[g.min,g.max]));ie(o,()=>{if(r.value){const g=new MouseEvent("mouseup",{bubbles:!0});window.dispatchEvent(g)}});const f=g=>{r.value=0,i.value={index:g,confirmed:!1},u=n.value},h=(g,b)=>{var C,w;let y=null;if((!i.value||!i.value.confirmed)&&b!==0){if(b>0)y=g,i.value={index:g,confirmed:!0};else for(let L=g;L>=0;L-=1)if(u[L]>0){y=L,i.value={index:L,confirmed:!0};break}}const S=(w=y!=null?y:(C=i.value)==null?void 0:C.index)!=null?w:g,E=[...u],_=S+1,T=l(d.value[S][0],0),N=l(d.value[_][0],0),O=l(d.value[S][1],t.value||0),A=l(d.value[_][1],t.value||0);let M=b;E[S]+M<T&&(M=T-E[S]),E[_]-M<N&&(M=E[_]-N),E[S]+M>O&&(M=O-E[S]),E[_]-M>A&&(M=E[_]-A),E[S]+=M,E[_]-=M,r.value=M,c=()=>{e.value.forEach((L,H)=>{L.size=E[H]}),c=Gt},o.value||c()},m=()=>{o.value&&c(),r.value=0,i.value=null,u=[]},p=[];return{lazyOffset:r,onMoveStart:f,onMoving:h,onMoveEnd:m,movingIndex:i,onCollapse:(g,b)=>{p.length||p.push(...n.value);const C=n.value,w=b==="start"?g:g+1,y=b==="start"?g+1:g,S=C[w],E=C[y];if(S!==0&&E!==0)C[w]=0,C[y]+=S,p[g]=S;else{const _=S+E,T=p[g],N=_-T;C[y]=T,C[w]=N}e.value.forEach((_,T)=>{_.size=C[T]})}}}const TO=he({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]},lazy:Boolean}),OO={resizeStart:(e,t)=>!0,resize:(e,t)=>!0,resizeEnd:(e,t)=>!0,collapse:(e,t,n)=>!0},RO=Symbol("splitterRootContextKey"),noe=ae({name:"ElSplitter",__name:"splitter",props:TO,emits:OO,setup(e,{emit:t}){const n=fe("splitter"),o=t,a=e,l=Lt(a,"layout"),r=Lt(a,"lazy"),{containerEl:i,containerSize:u}=Qne(l),{removeChild:c,children:d,addChild:f,ChildrenSorter:h}=Si(ct(),"ElSplitterPanel");ie(d,()=>{g.value=null,d.value.forEach((O,A)=>{O.setIndex(A)})});const{percentSizes:m,pxSizes:p}=eoe(d,u),{lazyOffset:v,movingIndex:g,onMoveStart:b,onMoving:C,onMoveEnd:w,onCollapse:y}=toe(d,u,p,r),S=k(()=>({[n.cssVarBlockName("bar-offset")]:r.value?`${v.value}px`:void 0}));return St(RO,Pt({panels:d,percentSizes:m,pxSizes:p,layout:l,lazy:r,movingIndex:g,containerSize:u,onMoveStart:O=>{b(O),o("resizeStart",O,p.value)},onMoving:(O,A)=>{C(O,A),r.value||o("resize",O,p.value)},onMoveEnd:async O=>{w(),await ke(),o("resizeEnd",O,p.value)},onCollapse:(O,A)=>{y(O,A),o("collapse",O,A,p.value)},registerPanel:f,unregisterPanel:c})),(O,A)=>($(),F("div",{ref_key:"containerEl",ref:i,class:x([s(n).b(),s(n).e(l.value)]),style:Ie(S.value)},[ee(O.$slots,"default"),Z(s(h)),te(" Prevent iframe touch events from breaking "),s(g)?($(),F("div",{key:0,class:x([s(n).e("mask"),s(n).e(`mask-${l.value}`)])},null,2)):te("v-if",!0)],6))}});var ooe=ye(noe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/splitter/src/splitter.vue"]]);function aoe(e){return e&&Rt(e)?e:{start:!!e,end:!!e}}function xO(e,t,n,o){return!!((e==null?void 0:e.collapsible.end)&&t>0||(n==null?void 0:n.collapsible.start)&&o===0&&t>0)}const loe=ae({name:"ElSplitterBar",__name:"split-bar",props:{index:{type:Number,required:!0},layout:{type:String,values:["horizontal","vertical"],default:"horizontal"},resizable:{type:Boolean,default:!0},lazy:Boolean,startCollapsible:Boolean,endCollapsible:Boolean},emits:["moveStart","moving","moveEnd","collapse"],setup(e,{emit:t}){const n=fe("splitter-bar"),o=e,a=t,l=k(()=>o.layout==="horizontal"),r=k(()=>l.value?{width:0}:{height:0}),i=k(()=>({width:l.value?"16px":"100%",height:l.value?"100%":"16px",cursor:o.resizable?l.value?"ew-resize":"ns-resize":"auto",touchAction:"none"})),u=k(()=>{const C=n.e("dragger");return{[`${C}-horizontal`]:l.value,[`${C}-vertical`]:!l.value,[`${C}-active`]:!!c.value}}),c=P(null),d=C=>{!o.resizable||(c.value=[C.pageX,C.pageY],a("moveStart",o.index),window.addEventListener("mouseup",p),window.addEventListener("mousemove",h))},f=C=>{if(o.resizable&&C.touches.length===1){C.preventDefault();const w=C.touches[0];c.value=[w.pageX,w.pageY],a("moveStart",o.index),window.addEventListener("touchend",v),window.addEventListener("touchmove",m)}},h=C=>{const{pageX:w,pageY:y}=C,S=w-c.value[0],E=y-c.value[1],_=l.value?S:E;a("moving",o.index,_)},m=C=>{if(C.touches.length===1){C.preventDefault();const w=C.touches[0],y=w.pageX-c.value[0],S=w.pageY-c.value[1],E=l.value?y:S;a("moving",o.index,E)}},p=()=>{c.value=null,window.removeEventListener("mouseup",p),window.removeEventListener("mousemove",h),a("moveEnd",o.index)},v=()=>{c.value=null,window.removeEventListener("touchend",v),window.removeEventListener("touchmove",m),a("moveEnd",o.index)},g=k(()=>l.value?ul:nc),b=k(()=>l.value?oo:Aa);return(C,w)=>($(),F("div",{class:x([s(n).b()]),style:Ie(r.value)},[e.startCollapsible?($(),F("div",{key:0,class:x([s(n).e("collapse-icon"),s(n).e(`${e.layout}-collapse-icon-start`)]),onClick:w[0]||(w[0]=y=>a("collapse",e.index,"start"))},[ee(C.$slots,"start-collapsible",{},()=>[($(),oe(at(g.value),{style:{width:"12px",height:"12px"}}))])],2)):te("v-if",!0),W("div",{class:x([s(n).e("dragger"),u.value,s(n).is("disabled",!e.resizable),s(n).is("lazy",e.resizable&&e.lazy)]),style:Ie(i.value),onMousedown:d,onTouchstart:f},null,38),e.endCollapsible?($(),F("div",{key:1,class:x([s(n).e("collapse-icon"),s(n).e(`${e.layout}-collapse-icon-end`)]),onClick:w[1]||(w[1]=y=>a("collapse",e.index,"end"))},[ee(C.$slots,"end-collapsible",{},()=>[($(),oe(at(b.value),{style:{width:"12px",height:"12px"}}))])],2)):te("v-if",!0)],6))}});var roe=ye(loe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/splitter/src/split-bar.vue"]]);const IO=he({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:Boolean}),MO={"update:size":e=>typeof e=="number"||typeof e=="string"},NO="ElSplitterPanel",soe=ae({name:NO,__name:"split-panel",props:IO,emits:MO,setup(e,{expose:t,emit:n}){const o=fe("splitter-panel"),a=e,l=n,r=Ee(RO);r||_n(NO,"usage: <el-splitter><el-splitter-panel /></el-splitter/>");const{panels:i,layout:u,lazy:c,containerSize:d,pxSizes:f}=Mn(r),{registerPanel:h,unregisterPanel:m,onCollapse:p,onMoveEnd:v,onMoveStart:g,onMoving:b}=r,C=P(),w=ct(),y=w.uid,S=P(0),E=k(()=>i.value[S.value]),_=R=>{S.value=R},T=k(()=>{var R;return E.value&&(R=f.value[S.value])!=null?R:0}),N=k(()=>{var R;return E.value&&(R=f.value[S.value+1])!=null?R:0}),O=k(()=>E.value?i.value[S.value+1]:null),A=k(()=>{var R;return O.value?a.resizable&&((R=O.value)==null?void 0:R.resizable)&&(T.value!==0||!a.min)&&(N.value!==0||!O.value.min):!1}),M=k(()=>E.value?S.value!==i.value.length-1:!1),L=k(()=>xO(E.value,T.value,O.value,N.value)),H=k(()=>xO(O.value,N.value,E.value,T.value));function K(R){return wg(R)?bg(R)*d.value||0:Cg(R)?yg(R):R!=null?R:0}let Y=!1;ie(()=>a.size,()=>{if(!Y&&E.value){if(!d.value){E.value.size=a.size;return}const R=K(a.size),D=K(a.max),B=K(a.min),z=Math.min(Math.max(R,B||0),D||R);z!==R&&l("update:size",z),E.value.size=z}}),ie(()=>{var R;return(R=E.value)==null?void 0:R.size},R=>{R!==a.size&&(Y=!0,l("update:size",R),ke(()=>Y=!1))}),ie(()=>a.resizable,R=>{E.value&&(E.value.resizable=R)});const I=Pt({el:C.value,uid:y,getVnode:()=>w.vnode,setIndex:_,...a,collapsible:k(()=>aoe(a.collapsible))});return h(I),Bt(()=>m(I)),t({splitterPanelRef:C}),(R,D)=>($(),F(Be,null,[W("div",rt({ref_key:"panelEl",ref:C,class:[s(o).b()],style:{flexBasis:`${T.value}px`}},R.$attrs),[ee(R.$slots,"default")],16),M.value?($(),oe(roe,{key:0,index:S.value,layout:s(u),lazy:s(c),resizable:A.value,"start-collapsible":L.value,"end-collapsible":H.value,onMoveStart:s(g),onMoving:s(b),onMoveEnd:s(v),onCollapse:s(p)},{"start-collapsible":Q(()=>[ee(R.$slots,"start-collapsible")]),"end-collapsible":Q(()=>[ee(R.$slots,"end-collapsible")]),_:3},8,["index","layout","lazy","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):te("v-if",!0)],64))}});var AO=ye(soe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/splitter/src/split-panel.vue"]]);const PO=Qe(ooe,{SplitPanel:AO}),LO=sn(AO);var ioe=[_C,IC,kS,oT,OS,RS,NS,Rv,BS,FS,In,Lv,Rk,Ik,Dk,Bk,c2,$h,p2,ea,Kk,td,y2,E2,$2,Li,Lh,P2,CC,V2,z2,H2,W2,K2,eE,Wh,lE,rE,cE,Xh,vE,TE,OE,RE,em,jC,YC,_e,PE,tm,Xn,nm,VE,WE,t$,n$,o$,a$,s$,d$,v$,b$,_v,cm,Ch,Qk,Jk,S$,E$,g2,Jo,gl,Ai,Ok,U$,X$,Z$,t_,s_,Om,p_,b_,y_,k_,F_,V_,nT,vT,hT,Ka,$d,wk,yT,kT,ET,Ln,TT,Rd,NT,WT,nO,aO,pO,vO,yO,wO,kO,_O,PO,LO];const Bo="ElInfiniteScroll",uoe=50,coe=200,doe=0,foe={delay:{type:Number,default:coe},distance:{type:Number,default:doe},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Sg=(e,t)=>Object.entries(foe).reduce((n,[o,a])=>{var l,r;const{type:i,default:u}=a,c=e.getAttribute(`infinite-scroll-${o}`);let d=(r=(l=t[c])!=null?l:c)!=null?r:u;return d=d==="false"?!1:d,d=i(d),n[o]=Number.isNaN(d)?u:d,n},{}),DO=e=>{const{observer:t}=e[Bo];t&&(t.disconnect(),delete e[Bo].observer)},poe=(e,t)=>{const{container:n,containerEl:o,instance:a,observer:l,lastScrollTop:r}=e[Bo],{disabled:i,distance:u}=Sg(e,a),{clientHeight:c,scrollHeight:d,scrollTop:f}=o,h=f-r;if(e[Bo].lastScrollTop=f,l||i||h<0)return;let m=!1;if(n===e)m=d-(c+f)<=u;else{const{clientTop:p,scrollHeight:v}=e,g=ef(e,o);m=f+c>=g+p+v-u}m&&t.call(a)};function kg(e,t){const{containerEl:n,instance:o}=e[Bo],{disabled:a}=Sg(e,o);a||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(o):DO(e))}const voe={async mounted(e,t){const{instance:n,value:o}=t;da({scope:Bo,from:"the directive v-infinite-scroll",replacement:"the el-scrollbar infinite scroll",version:"3.0.0",ref:"https://element-plus.org/en-US/component/scrollbar#infinite-scroll"},!0),lt(o)||_n(Bo,"'v-infinite-scroll' binding value must be a function"),await ke();const{delay:a,immediate:l}=Sg(e,n),r=kp(e,!0),i=r===window?document.documentElement:r,u=rl(poe.bind(null,e,o),a);if(!!r){if(e[Bo]={instance:n,container:r,containerEl:i,delay:a,cb:o,onScroll:u,lastScrollTop:i.scrollTop},l){const c=new MutationObserver(rl(kg.bind(null,e,o),uoe));e[Bo].observer=c,c.observe(e,{childList:!0,subtree:!0}),kg(e,o)}r.addEventListener("scroll",u)}},unmounted(e){if(!e[Bo])return;const{container:t,onScroll:n}=e[Bo];t==null||t.removeEventListener("scroll",n),DO(e)},async updated(e){if(!e[Bo])await ke();else{const{containerEl:t,cb:n,observer:o}=e[Bo];t.clientHeight&&o&&kg(e,n)}}};var hoe=voe;const Eg=hoe;Eg.install=e=>{e.directive("InfiniteScroll",Eg)};const BO=Eg;function moe(e,t){let n;const o=P(!1),a=Pt({...e,originalPosition:"",originalOverflow:"",visible:!1});function l(m){a.text=m}function r(){const m=a.parent,p=h.ns;if(!m.vLoadingAddClassList){let v=m.getAttribute("loading-number");v=Number.parseInt(v)-1,v?m.setAttribute("loading-number",v.toString()):(no(m,p.bm("parent","relative")),m.removeAttribute("loading-number")),no(m,p.bm("parent","hidden"))}i(),f.unmount()}function i(){var m,p;(p=(m=h.$el)==null?void 0:m.parentNode)==null||p.removeChild(h.$el)}function u(){var m;e.beforeClose&&!e.beforeClose()||(o.value=!0,clearTimeout(n),n=setTimeout(c,400),a.visible=!1,(m=e.closed)==null||m.call(e))}function c(){if(!o.value)return;const m=a.parent;o.value=!1,m.vLoadingAddClassList=void 0,r()}const d=ae({name:"ElLoading",setup(m,{expose:p}){const{ns:v,zIndex:g}=ki("loading");return p({ns:v,zIndex:g}),()=>{const b=a.spinner||a.svg,C=Le("svg",{class:"circular",viewBox:a.svgViewBox?a.svgViewBox:"0 0 50 50",...b?{innerHTML:b}:{}},[Le("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),w=a.text?Le("p",{class:v.b("text")},[a.text]):void 0;return Le(Wn,{name:v.b("fade"),onAfterLeave:c},{default:Q(()=>[tt(Z("div",{style:{backgroundColor:a.background||""},class:[v.b("mask"),a.customClass,v.is("fullscreen",a.fullscreen)]},[Le("div",{class:v.b("spinner")},[C,w])]),[[xt,a.visible]])])})}}}),f=rR(d);Object.assign(f._context,t!=null?t:{});const h=f.mount(document.createElement("div"));return{...Mn(a),setText:l,removeElLoadingChild:i,close:u,handleAfterLeave:c,vm:h,get $el(){return h.$el}}}let Pd;const $g=function(e={},t){if(!Tt)return;const n=goe(e);if(n.fullscreen&&Pd)return Pd;const o=moe({...n,closed:()=>{var l;(l=n.closed)==null||l.call(n),n.fullscreen&&(Pd=void 0)}},t!=null?t:$g._context);boe(n,n.parent,o),FO(n,n.parent,o),n.parent.vLoadingAddClassList=()=>FO(n,n.parent,o);let a=n.parent.getAttribute("loading-number");return a?a=`${Number.parseInt(a)+1}`:a="1",n.parent.setAttribute("loading-number",a),n.parent.appendChild(o.$el),ke(()=>o.visible.value=n.visible),n.fullscreen&&(Pd=o),o},goe=e=>{var t,n,o,a;let l;return He(e.target)?l=(t=document.querySelector(e.target))!=null?t:document.body:l=e.target||document.body,{parent:l===document.body||e.body?document.body:l,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:l===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(o=e.lock)!=null?o:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,beforeClose:e.beforeClose,closed:e.closed,target:l}},boe=async(e,t,n)=>{const{nextZIndex:o}=n.vm.zIndex||n.vm._.exposed.zIndex,a={};if(e.fullscreen)n.originalPosition.value=il(document.body,"position"),n.originalOverflow.value=il(document.body,"overflow"),a.zIndex=o();else if(e.parent===document.body){n.originalPosition.value=il(document.body,"position"),await ke();for(const l of["top","left"]){const r=l==="top"?"scrollTop":"scrollLeft";a[l]=`${e.target.getBoundingClientRect()[l]+document.body[r]+document.documentElement[r]-Number.parseInt(il(document.body,`margin-${l}`),10)}px`}for(const l of["height","width"])a[l]=`${e.target.getBoundingClientRect()[l]}px`}else n.originalPosition.value=il(t,"position");for(const[l,r]of Object.entries(a))n.$el.style[l]=r},FO=(e,t,n)=>{const o=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?no(t,o.bm("parent","relative")):Yo(t,o.bm("parent","relative")),e.fullscreen&&e.lock?Yo(t,o.bm("parent","hidden")):no(t,o.bm("parent","hidden"))};$g._context=null;var tu=$g;const nu=Symbol("ElLoading"),Sr=e=>`element-loading-${AR(e)}`,VO=(e,t)=>{var n,o,a,l;const r=t.instance,i=m=>Rt(t.value)?t.value[m]:void 0,u=m=>{const p=He(m)&&(r==null?void 0:r[m])||m;return P(p)},c=m=>u(i(m)||e.getAttribute(Sr(m))),d=(n=i("fullscreen"))!=null?n:t.modifiers.fullscreen,f={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:d,target:(o=i("target"))!=null?o:d?void 0:e,body:(a=i("body"))!=null?a:t.modifiers.body,lock:(l=i("lock"))!=null?l:t.modifiers.lock},h=tu(f);h._context=_g._context,e[nu]={options:f,instance:h}},yoe=(e,t)=>{for(const n of Object.keys(e))Yn(e[n])&&(e[n].value=t[n])},_g={mounted(e,t){t.value&&VO(e,t)},updated(e,t){const n=e[nu];if(!t.value){n==null||n.instance.close(),e[nu]=null;return}n?yoe(n.options,Rt(t.value)?t.value:{text:e.getAttribute(Sr("text")),svg:e.getAttribute(Sr("svg")),svgViewBox:e.getAttribute(Sr("svgViewBox")),spinner:e.getAttribute(Sr("spinner")),background:e.getAttribute(Sr("background")),customClass:e.getAttribute(Sr("customClass"))}):VO(e,t)},unmounted(e){var t;(t=e[nu])==null||t.instance.close(),e[nu]=null}};_g._context=null;var ou=_g;const zO={install(e){tu._context=e._context,ou._context=e._context,e.directive("loading",ou),e.config.globalProperties.$loading=tu},directive:ou,service:tu},Tg=["primary","success","info","warning","error"],Og=["top","top-left","top-right","bottom","bottom-left","bottom-right"],kr="top",Qn=dn({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:Tt?document.body:void 0}),HO=he({customClass:{type:String,default:Qn.customClass},dangerouslyUseHTMLString:{type:Boolean,default:Qn.dangerouslyUseHTMLString},duration:{type:Number,default:Qn.duration},icon:{type:Ht,default:Qn.icon},id:{type:String,default:Qn.id},message:{type:q([String,Object,Function]),default:Qn.message},onClose:{type:q(Function),default:Qn.onClose},showClose:{type:Boolean,default:Qn.showClose},type:{type:String,values:Tg,default:Qn.type},plain:{type:Boolean,default:Qn.plain},offset:{type:Number,default:Qn.offset},placement:{type:String,values:Og,default:Qn.placement},zIndex:{type:Number,default:Qn.zIndex},grouping:{type:Boolean,default:Qn.grouping},repeatNum:{type:Number,default:Qn.repeatNum}}),WO={destroy:()=>!0},ka=Fg({}),woe=e=>(ka[e]||(ka[e]=Fg([])),ka[e]),Coe=(e,t)=>{const n=ka[t]||[],o=n.findIndex(r=>r.id===e),a=n[o];let l;return o>0&&(l=n[o-1]),{current:a,prev:l}},Soe=(e,t)=>{const{prev:n}=Coe(e,t);return n?n.vm.exposed.bottom.value:0},koe=(e,t,n)=>(ka[n]||[]).findIndex(l=>l.id===e)>0?16:t,Eoe=["id"],$oe=["innerHTML"],_oe=ae({name:"ElMessage",__name:"message",props:HO,emits:WO,setup(e,{expose:t,emit:n}){const{Close:o}=Tp,a=e,l=n,r=P(!1),{ns:i,zIndex:u}=ki("message"),{currentZIndex:c,nextZIndex:d}=u,f=P(),h=P(!1),m=P(0);let p;const v=k(()=>a.type?a.type==="error"?"danger":a.type:"info"),g=k(()=>{const L=a.type;return{[i.bm("icon",L)]:L&&Al[L]}}),b=k(()=>a.icon||Al[a.type]||""),C=k(()=>a.placement||kr),w=k(()=>Soe(a.id,C.value)),y=k(()=>koe(a.id,a.offset,C.value)+w.value),S=k(()=>m.value+y.value),E=k(()=>C.value.includes("left")?i.is("left"):C.value.includes("right")?i.is("right"):i.is("center")),_=k(()=>C.value.startsWith("top")?"top":"bottom"),T=k(()=>({[_.value]:`${y.value}px`,zIndex:c.value}));function N(){a.duration!==0&&({stop:p}=Tr(()=>{A()},a.duration))}function O(){p==null||p()}function A(){h.value=!1,ke(()=>{var L;r.value||((L=a.onClose)==null||L.call(a),l("destroy"))})}function M(L){Wt(L)===pe.esc&&A()}return ut(()=>{N(),d(),h.value=!0}),ie(()=>a.repeatNum,()=>{O(),N()}),Mt(document,"keydown",M),Qt(f,()=>{m.value=f.value.getBoundingClientRect().height}),t({visible:h,bottom:S,close:A}),(L,H)=>($(),oe(Wn,{name:s(i).b("fade"),onBeforeEnter:H[0]||(H[0]=K=>r.value=!0),onBeforeLeave:L.onClose,onAfterLeave:H[1]||(H[1]=K=>L.$emit("destroy")),persisted:""},{default:Q(()=>[tt(W("div",{id:L.id,ref_key:"messageRef",ref:f,class:x([s(i).b(),{[s(i).m(L.type)]:L.type},s(i).is("closable",L.showClose),s(i).is("plain",L.plain),s(i).is("bottom",_.value==="bottom"),E.value,L.customClass]),style:Ie(T.value),role:"alert",onMouseenter:O,onMouseleave:N},[L.repeatNum>1?($(),oe(s(Rv),{key:0,value:L.repeatNum,type:v.value,class:x(s(i).e("badge"))},null,8,["value","type","class"])):te("v-if",!0),b.value?($(),oe(s(_e),{key:1,class:x([s(i).e("icon"),g.value])},{default:Q(()=>[($(),oe(at(b.value)))]),_:1},8,["class"])):te("v-if",!0),ee(L.$slots,"default",{},()=>[L.dangerouslyUseHTMLString?($(),F(Be,{key:1},[te(" Caution here, message could've been compromised, never use user's input as message "),W("p",{class:x(s(i).e("content")),innerHTML:L.message},null,10,$oe)],2112)):($(),F("p",{key:0,class:x(s(i).e("content"))},ge(L.message),3))]),L.showClose?($(),oe(s(_e),{key:2,class:x(s(i).e("closeBtn")),onClick:je(A,["stop"])},{default:Q(()=>[Z(s(o))]),_:1},8,["class"])):te("v-if",!0)],46,Eoe),[[xt,h.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Toe=ye(_oe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let Ooe=1;const Roe=e=>{if(!e.appendTo)e.appendTo=document.body;else if(He(e.appendTo)){let n=document.querySelector(e.appendTo);wo(n)||(n=document.body),e.appendTo=n}},xoe=e=>{!e.placement&&He(qn.placement)&&qn.placement&&(e.placement=qn.placement),e.placement||(e.placement=kr),Og.includes(e.placement)||(`${e.placement}${kr}`,e.placement=kr)},KO=e=>{const t=!e||He(e)||Jt(e)||lt(e)?{message:e}:e,n={...Qn,...t};return Roe(n),xoe(n),zt(qn.grouping)&&!n.grouping&&(n.grouping=qn.grouping),xe(qn.duration)&&n.duration===3e3&&(n.duration=qn.duration),xe(qn.offset)&&n.offset===16&&(n.offset=qn.offset),zt(qn.showClose)&&!n.showClose&&(n.showClose=qn.showClose),zt(qn.plain)&&!n.plain&&(n.plain=qn.plain),n},Ioe=e=>{const t=e.props.placement||kr,n=ka[t],o=n.indexOf(e);if(o===-1)return;n.splice(o,1);const{handler:a}=e;a.close()},Moe=({appendTo:e,...t},n)=>{const o=`message_${Ooe++}`,a=t.onClose,l=document.createElement("div"),r={...t,id:o,onClose:()=>{a==null||a(),Ioe(d)},onDestroy:()=>{Sl(null,l)}},i=Z(Toe,r,lt(r.message)||Jt(r.message)?{default:lt(r.message)?r.message:()=>r.message}:null);i.appContext=n||Er._context,Sl(i,l),e.appendChild(l.firstElementChild);const u=i.component,d={id:o,vnode:i,vm:u,handler:{close:()=>{u.exposed.close()}},props:i.component.props};return d},Er=(e={},t)=>{if(!Tt)return{close:()=>{}};const n=KO(e),o=woe(n.placement||kr);if(n.grouping&&o.length){const l=o.find(({vnode:r})=>{var i;return((i=r.props)==null?void 0:i.message)===n.message});if(l)return l.props.repeatNum+=1,l.props.type=n.type,l.handler}if(xe(qn.max)&&o.length>=qn.max)return{close:()=>{}};const a=Moe(n,t);return o.push(a),a.handler};Tg.forEach(e=>{Er[e]=(t={},n)=>{const o=KO(t);return Er({...o,type:e},n)}});function Noe(e){for(const t in ka)if(Bn(ka,t)){const n=[...ka[t]];for(const o of n)(!e||e===o.props.type)&&o.handler.close()}}function Aoe(e){if(!ka[e])return;[...ka[e]].forEach(n=>n.handler.close())}Er.closeAll=Noe,Er.closeAllByPlacement=Aoe,Er._context=null;var Poe=Er;const jO=q1(Poe,"$message"),Loe=ae({name:"ElMessageBox",directives:{TrapFocus:lk},components:{ElButton:In,ElFocusTrap:us,ElInput:Xn,ElOverlay:cd,ElIcon:_e,...Tp},inheritAttrs:!1,props:{buttonSize:{type:String,validator:X1},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:o,ns:a,size:l}=ki("message-box",k(()=>e.buttonSize)),{t:r}=n,{nextZIndex:i}=o,u=P(!1),c=Pt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",cancelButtonType:"",confirmButtonType:"primary",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:Cl(Pa),cancelButtonLoadingIcon:Cl(Pa),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),d=k(()=>{const I=c.type;return{[a.bm("icon",I)]:I&&Al[I]}}),f=Vn(),h=Vn(),m=k(()=>{const I=c.type;return c.icon||I&&Al[I]||""}),p=k(()=>!!c.message),v=P(),g=P(),b=P(),C=P(),w=P(),y=k(()=>c.confirmButtonClass);ie(()=>c.inputValue,async I=>{await ke(),e.boxType==="prompt"&&I&&L()},{immediate:!0}),ie(()=>u.value,I=>{var R,D;I&&(e.boxType!=="prompt"&&(c.autofocus?b.value=(D=(R=w.value)==null?void 0:R.$el)!=null?D:v.value:b.value=v.value),c.zIndex=i()),e.boxType==="prompt"&&(I?ke().then(()=>{var B;C.value&&C.value.$el&&(c.autofocus?b.value=(B=H())!=null?B:v.value:b.value=v.value)}):(c.editorErrorMessage="",c.validateError=!1))});const S=k(()=>e.draggable),E=k(()=>e.overflow),{isDragging:_}=xp(v,g,S,E);ut(async()=>{await ke(),e.closeOnHashChange&&window.addEventListener("hashchange",T)}),Bt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",T)});function T(){!u.value||(u.value=!1,ke(()=>{c.action&&t("action",c.action)}))}const N=()=>{e.closeOnClickModal&&M(c.distinguishCancelAndClose?"close":"cancel")},O=fc(N),A=I=>{if(c.inputType!=="textarea")return I.preventDefault(),M("confirm")},M=I=>{var R;e.boxType==="prompt"&&I==="confirm"&&!L()||(c.action=I,c.beforeClose?(R=c.beforeClose)==null||R.call(c,I,c,T):T())},L=()=>{if(e.boxType==="prompt"){const I=c.inputPattern;if(I&&!I.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||r("el.messagebox.error"),c.validateError=!0,!1;const R=c.inputValidator;if(lt(R)){const D=R(c.inputValue);if(D===!1)return c.editorErrorMessage=c.inputErrorMessage||r("el.messagebox.error"),c.validateError=!0,!1;if(He(D))return c.editorErrorMessage=D,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},H=()=>{var I,R;const D=(I=C.value)==null?void 0:I.$refs;return(R=D==null?void 0:D.input)!=null?R:D==null?void 0:D.textarea},K=()=>{M("close")},Y=()=>{e.closeOnPressEscape&&K()};return e.lockScroll&&fi(u,{ns:a}),{...Mn(c),ns:a,overlayEvent:O,visible:u,hasMessage:p,typeClass:d,contentId:f,inputId:h,btnSize:l,iconComponent:m,confirmButtonClasses:y,rootRef:v,focusStartRef:b,headerRef:g,inputRef:C,isDragging:_,confirmRef:w,doClose:T,handleClose:K,onCloseRequested:Y,handleWrapperClick:N,handleInputEnter:A,handleAction:M,t:r}}}),Doe=["aria-label","aria-describedby"],Boe=["aria-label"],Foe=["id"];function Voe(e,t,n,o,a,l){const r=It("el-icon"),i=It("el-input"),u=It("el-button"),c=It("el-focus-trap"),d=It("el-overlay");return $(),oe(Wn,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=f=>e.$emit("vanish")),persisted:""},{default:Q(()=>[tt(Z(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:Q(()=>[W("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:x(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...f)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...f)),onMousedown:t[9]||(t[9]=(...f)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...f)),onMouseup:t[10]||(t[10]=(...f)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...f))},[Z(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:Q(()=>[W("div",{ref:"rootRef",class:x([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),e.ns.is("dragging",e.isDragging),{[e.ns.m("center")]:e.center}]),style:Ie(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=je(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?($(),F("div",{key:0,ref:"headerRef",class:x([e.ns.e("header"),{"show-close":e.showClose}])},[W("div",{class:x(e.ns.e("title"))},[e.iconComponent&&e.center?($(),oe(r,{key:0,class:x([e.ns.e("status"),e.typeClass])},{default:Q(()=>[($(),oe(at(e.iconComponent)))]),_:1},8,["class"])):te("v-if",!0),W("span",null,ge(e.title),1)],2),e.showClose?($(),F("button",{key:0,type:"button",class:x(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=fn(je(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[Z(r,{class:x(e.ns.e("close"))},{default:Q(()=>[($(),oe(at(e.closeIcon||"close")))]),_:1},8,["class"])],42,Boe)):te("v-if",!0)],2)):te("v-if",!0),W("div",{id:e.contentId,class:x(e.ns.e("content"))},[W("div",{class:x(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?($(),oe(r,{key:0,class:x([e.ns.e("status"),e.typeClass])},{default:Q(()=>[($(),oe(at(e.iconComponent)))]),_:1},8,["class"])):te("v-if",!0),e.hasMessage?($(),F("div",{key:1,class:x(e.ns.e("message"))},[ee(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?($(),oe(at(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):($(),oe(at(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0,textContent:ge(e.message)},null,8,["for","textContent"]))])],2)):te("v-if",!0)],2),tt(W("div",{class:x(e.ns.e("input"))},[Z(i,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=f=>e.inputValue=f),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:x({invalid:e.validateError}),onKeydown:fn(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),W("div",{class:x(e.ns.e("errormsg")),style:Ie({visibility:e.editorErrorMessage?"visible":"hidden"})},ge(e.editorErrorMessage),7)],2),[[xt,e.showInput]])],10,Foe),W("div",{class:x(e.ns.e("btns"))},[e.showCancelButton?($(),oe(u,{key:0,type:e.cancelButtonType==="text"?"":e.cancelButtonType,text:e.cancelButtonType==="text",loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:x([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=f=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=fn(je(f=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:Q(()=>[bt(ge(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","size"])):te("v-if",!0),tt(Z(u,{ref:"confirmRef",type:e.confirmButtonType==="text"?"":e.confirmButtonType,text:e.confirmButtonType==="text",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:x([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=f=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=fn(je(f=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:Q(()=>[bt(ge(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","disabled","size"]),[[xt,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,Doe)]),_:3},8,["z-index","overlay-class","mask"]),[[xt,e.visible]])]),_:3})}var zoe=ye(Loe,[["render",Voe],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const au=new Map,Hoe=e=>{let t=document.body;return e.appendTo&&(He(e.appendTo)&&(t=document.querySelector(e.appendTo)),wo(e.appendTo)&&(t=e.appendTo),wo(t)||(t=document.body)),t},Woe=(e,t,n=null)=>{const o=Z(zoe,e,lt(e.message)||Jt(e.message)?{default:lt(e.message)?e.message:()=>e.message}:null);return o.appContext=n,Sl(o,t),Hoe(e).appendChild(t.firstElementChild),o.component},Koe=()=>document.createElement("div"),joe=(e,t)=>{const n=Koe();e.onVanish=()=>{Sl(null,n),au.delete(a)},e.onAction=l=>{const r=au.get(a);let i;e.showInput?i={value:a.inputValue,action:l}:i=l,e.callback?e.callback(i,o.proxy):l==="cancel"||l==="close"?e.distinguishCancelAndClose&&l!=="cancel"?r.reject("close"):r.reject("cancel"):r.resolve(i)};const o=Woe(e,n,t),a=o.proxy;for(const l in e)Bn(e,l)&&!Bn(a.$props,l)&&(l==="closeIcon"&&Rt(e[l])?a[l]=Cl(e[l]):a[l]=e[l]);return a.visible=!0,a};function Rs(e,t=null){if(!Tt)return Promise.reject();let n;return He(e)||Jt(e)?e={message:e}:n=e.callback,new Promise((o,a)=>{const l=joe(e,t!=null?t:Rs._context);au.set(l,{options:e,callback:n,resolve:o,reject:a})})}const Yoe=["alert","confirm","prompt"],Uoe={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Yoe.forEach(e=>{Rs[e]=Goe(e)});function Goe(e){return(t,n,o,a)=>{let l="";return Rt(n)?(o=n,l=""):_t(n)?l="":l=n,Rs(Object.assign({title:l,message:t,type:"",...Uoe[e]},o,{boxType:e}),a)}}Rs.close=()=>{au.forEach((e,t)=>{t.doClose()}),au.clear()},Rs._context=null;const Gl=Rs;Gl.install=e=>{Gl._context=e._context,e.config.globalProperties.$msgbox=Gl,e.config.globalProperties.$messageBox=Gl,e.config.globalProperties.$alert=Gl.alert,e.config.globalProperties.$confirm=Gl.confirm,e.config.globalProperties.$prompt=Gl.prompt};const YO=Gl,Rg=["primary","success","info","warning","error"],UO=he({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:Ht},id:{type:String,default:""},message:{type:q([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:q(Function),default:()=>{}},onClose:{type:q(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...Rg,""],default:""},zIndex:Number,closeIcon:{type:Ht,default:Uo}}),GO={destroy:()=>!0},qoe=["id"],Xoe=["textContent"],Zoe={key:0},Joe=["innerHTML"],Qoe=ae({name:"ElNotification",__name:"notification",props:UO,emits:GO,setup(e,{expose:t}){const n=e,{ns:o,zIndex:a}=ki("notification"),{nextZIndex:l,currentZIndex:r}=a,i=P(!1);let u;const c=k(()=>{const C=n.type;return C&&Al[n.type]?o.m(C):""}),d=k(()=>n.type&&Al[n.type]||n.icon),f=k(()=>n.position.endsWith("right")?"right":"left"),h=k(()=>n.position.startsWith("top")?"top":"bottom"),m=k(()=>{var C;return{[h.value]:`${n.offset}px`,zIndex:(C=n.zIndex)!=null?C:r.value}});function p(){n.duration>0&&({stop:u}=Tr(()=>{i.value&&g()},n.duration))}function v(){u==null||u()}function g(){i.value=!1}function b(C){switch(Wt(C)){case pe.delete:case pe.backspace:v();break;case pe.esc:i.value&&g();break;default:p();break}}return ut(()=>{p(),l(),i.value=!0}),Mt(document,"keydown",b),t({visible:i,close:g}),(C,w)=>($(),oe(Wn,{name:s(o).b("fade"),onBeforeLeave:C.onClose,onAfterLeave:w[1]||(w[1]=y=>C.$emit("destroy")),persisted:""},{default:Q(()=>[tt(W("div",{id:C.id,class:x([s(o).b(),C.customClass,f.value]),style:Ie(m.value),role:"alert",onMouseenter:v,onMouseleave:p,onClick:w[0]||(w[0]=(...y)=>C.onClick&&C.onClick(...y))},[d.value?($(),oe(s(_e),{key:0,class:x([s(o).e("icon"),c.value])},{default:Q(()=>[($(),oe(at(d.value)))]),_:1},8,["class"])):te("v-if",!0),W("div",{class:x(s(o).e("group"))},[W("h2",{class:x(s(o).e("title")),textContent:ge(C.title)},null,10,Xoe),tt(W("div",{class:x(s(o).e("content")),style:Ie(C.title?void 0:{margin:0})},[ee(C.$slots,"default",{},()=>[C.dangerouslyUseHTMLString?($(),F(Be,{key:1},[te(" Caution here, message could've been compromised, never use user's input as message "),W("p",{innerHTML:C.message},null,8,Joe)],2112)):($(),F("p",Zoe,ge(C.message),1))])],6),[[xt,C.message]]),C.showClose?($(),oe(s(_e),{key:0,class:x(s(o).e("closeBtn")),onClick:je(g,["stop"])},{default:Q(()=>[($(),oe(at(C.closeIcon)))]),_:1},8,["class"])):te("v-if",!0)],2)],46,qoe),[[xt,i.value]])]),_:3},8,["name","onBeforeLeave"]))}});var eae=ye(Qoe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const xs={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Ld=16;let tae=1;const $r=function(e={},t){if(!Tt)return{close:()=>{}};(He(e)||Jt(e))&&(e={message:e});const n=e.position||"top-right";let o=e.offset||0;xs[n].forEach(({vm:d})=>{var f;o+=(((f=d.el)==null?void 0:f.offsetHeight)||0)+Ld}),o+=Ld;const a=`notification_${tae++}`,l=e.onClose,r={...e,offset:o,id:a,onClose:()=>{nae(a,n,l)}};let i=document.body;wo(e.appendTo)?i=e.appendTo:He(e.appendTo)&&(i=document.querySelector(e.appendTo)),wo(i)||(i=document.body);const u=document.createElement("div"),c=Z(eae,r,lt(r.message)?r.message:Jt(r.message)?()=>r.message:null);return c.appContext=_t(t)?$r._context:t,c.props.onDestroy=()=>{Sl(null,u)},Sl(c,u),xs[n].push({vm:c}),i.appendChild(u.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};Rg.forEach(e=>{$r[e]=(t={},n)=>((He(t)||Jt(t))&&(t={message:t}),$r({...t,type:e},n))});function nae(e,t,n){const o=xs[t],a=o.findIndex(({vm:c})=>{var d;return((d=c.component)==null?void 0:d.props.id)===e});if(a===-1)return;const{vm:l}=o[a];if(!l)return;n==null||n(l);const r=l.el.offsetHeight,i=t.split("-")[0];o.splice(a,1);const u=o.length;if(!(u<1))for(let c=a;c<u;c++){const{el:d,component:f}=o[c].vm,h=Number.parseInt(d.style[i],10)-r-Ld;f.props.offset=h}}function oae(){for(const e of Object.values(xs))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}function aae(e="top-right"){var t,n,o,a;let l=((o=(n=(t=xs[e][0])==null?void 0:t.vm.component)==null?void 0:n.props)==null?void 0:o.offset)||0;for(const{vm:r}of xs[e])r.component.props.offset=l,l+=(((a=r.el)==null?void 0:a.offsetHeight)||0)+Ld}$r.closeAll=oae,$r.updateOffsets=aae,$r._context=null;var lae=$r;const qO=q1(lae,"$notify");var rae=[BO,zO,jO,YO,qO,um],xg=SC([...ioe,...rae]);const sae=xg.install,iae=xg.version;export{mv as BAR_MAP,Gd as BORDER_HORIZONTAL_WIDTH,ed as CAROUSEL_ITEM_NAME,Pi as CASCADER_PANEL_INJECTION_KEY,ht as CHANGE_EVENT,ml as ClickOutside,Gv as CommonPicker,Eh as CommonProps,Yh as DEFAULT_DIALOG_TRANSITION,gC as DEFAULT_EMPTY_VALUES,vl as DEFAULT_FORMATS_DATE,XS as DEFAULT_FORMATS_DATEPICKER,vr as DEFAULT_FORMATS_TIME,bC as DEFAULT_VALUE_ON_CLEAR,Wi as DROPDOWN_INJECTION_KEY,Qh as DROPDOWN_INSTANCE_INJECTION_KEY,t2 as DefaultProps,Y$ as DynamicSizeGrid,L$ as DynamicSizeList,pe as EVENT_CODE,tK as Effect,_C as ElAffix,IC as ElAlert,yO as ElAnchor,wO as ElAnchorLink,z2 as ElAside,oT as ElAutoResizer,kS as ElAutocomplete,OS as ElAvatar,RS as ElAvatarGroup,NS as ElBacktop,Rv as ElBadge,BS as ElBreadcrumb,FS as ElBreadcrumbItem,In as ElButton,Lv as ElButtonGroup,Rk as ElCalendar,Ik as ElCard,Dk as ElCarousel,Bk as ElCarouselItem,c2 as ElCascader,$h as ElCascaderPanel,p2 as ElCheckTag,ea as ElCheckbox,Kk as ElCheckboxButton,td as ElCheckboxGroup,y2 as ElCol,E2 as ElCollapse,$2 as ElCollapseItem,Li as ElCollapseTransition,P2 as ElColorPicker,Lh as ElColorPickerPanel,CC as ElConfigProvider,V2 as ElContainer,p_ as ElCountdown,eE as ElDatePicker,Wh as ElDatePickerPanel,lE as ElDescriptions,rE as ElDescriptionsItem,cE as ElDialog,Xh as ElDivider,vE as ElDrawer,TE as ElDropdown,OE as ElDropdownItem,RE as ElDropdownMenu,em as ElEmpty,H2 as ElFooter,jC as ElForm,YC as ElFormItem,W2 as ElHeader,_e as ElIcon,PE as ElImage,tm as ElImageViewer,BO as ElInfiniteScroll,Xn as ElInput,nm as ElInputNumber,VE as ElInputTag,WE as ElLink,zO as ElLoading,ou as ElLoadingDirective,tu as ElLoadingService,K2 as ElMain,_O as ElMention,t$ as ElMenu,n$ as ElMenuItem,o$ as ElMenuItemGroup,jO as ElMessage,YO as ElMessageBox,qO as ElNotification,Ai as ElOption,Ok as ElOptionGroup,cd as ElOverlay,s$ as ElPageHeader,d$ as ElPagination,v$ as ElPopconfirm,b$ as ElPopover,um as ElPopoverDirective,_v as ElPopper,eS as ElPopperArrow,vS as ElPopperContent,aS as ElPopperTrigger,cm as ElProgress,Ch as ElRadio,Qk as ElRadioButton,Jk as ElRadioGroup,S$ as ElRate,E$ as ElResult,g2 as ElRow,Jo as ElScrollbar,kO as ElSegmented,gl as ElSelect,U$ as ElSelectV2,X$ as ElSkeleton,Z$ as ElSkeletonItem,t_ as ElSlider,s_ as ElSpace,PO as ElSplitter,LO as ElSplitterPanel,Om as ElStatistic,y_ as ElStep,b_ as ElSteps,a$ as ElSubMenu,k_ as ElSwitch,hT as ElTabPane,F_ as ElTable,V_ as ElTableColumn,nT as ElTableV2,vT as ElTabs,Ka as ElTag,$d as ElText,wk as ElTimePicker,yT as ElTimeSelect,kT as ElTimeline,ET as ElTimelineItem,Ln as ElTooltip,pO as ElTour,vO as ElTourStep,TT as ElTransfer,Rd as ElTree,NT as ElTreeSelect,WT as ElTreeV2,nO as ElUpload,aO as ElWatermark,SE as FIRST_KEYS,YG as FIRST_LAST_KEYS,Yp as FORWARD_REF_INJECTION_KEY,B$ as FixedSizeGrid,Em as FixedSizeList,fr as GAP,Pw as ID_INJECTION_KEY,Sn as INPUT_EVENT,Yd as INSTALLED_KEY,dm as IconComponentMap,Wl as IconMap,kE as LAST_KEYS,Jm as LEFT_CHECK_CHANGE_EVENT,dd as MENU_INJECTION_KEY,kr as MESSAGE_DEFAULT_PLACEMENT,Ps as MINIMUM_INPUT_WIDTH,yk as Mousewheel,lg as NODE_INSTANCE_INJECTION_KEY,Qo as PICKER_BASE_INJECTION_KEY,Wc as PICKER_POPPER_OPTIONS_INJECTION_KEY,bv as POPPER_CONTENT_INJECTION_KEY,Oc as POPPER_INJECTION_KEY,Qm as RIGHT_CHECK_CHANGE_EVENT,Ah as ROOT_COMMON_COLOR_INJECTION_KEY,Fv as ROOT_COMMON_PICKER_INJECTION_KEY,od as ROOT_PICKER_INJECTION_KEY,ps as ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY,Od as ROOT_TREE_INJECTION_KEY,h2 as RowAlign,v2 as RowJustify,BH as SCOPE,rv as SIZE_INJECTION_KEY,Rm as STEPS_INJECTION_KEY,Ki as SUB_MENU_INJECTION_KEY,Zm as TIMELINE_INJECTION_KEY,Dc as TOOLTIP_INJECTION_KEY,rg as TREE_NODE_MAP_INJECTION_KEY,eT as TableV2,Es as TableV2Alignment,Fm as TableV2FixedDir,$s as TableV2Placeholder,jl as TableV2SortOrder,Ii as TimePickPanel,lk as TrapFocus,Ye as UPDATE_MODEL_EVENT,mu as WEEK_DAYS,Gp as ZINDEX_INJECTION_KEY,EC as affixEmits,kC as affixProps,OC as alertEffects,xC as alertEmits,RC as alertProps,mO as anchorEmits,hO as anchorProps,yC as ariaProps,PH as arrowMiddleware,tT as autoResizerProps,CS as autocompleteEmits,wS as autocompleteProps,ES as avatarEmits,Ov as avatarGroupContextKey,_S as avatarGroupProps,Bc as avatarProps,IS as backtopEmits,xS as backtopProps,AS as badgeProps,LS as breadcrumbItemProps,xv as breadcrumbKey,PS as breadcrumbProps,tw as buildLocaleContext,Kc as buildTimeList,Q1 as buildTranslator,zS as buttonEmits,Iv as buttonGroupContextKey,VS as buttonNativeTypes,Vc as buttonProps,Fc as buttonTypes,$k as calendarEmits,Ek as calendarProps,D7 as cardContextKey,xk as cardProps,dh as carouselContextKey,Nk as carouselEmits,Pk as carouselItemProps,Mk as carouselProps,u2 as cascaderEmits,a2 as cascaderPanelEmits,n2 as cascaderPanelProps,s2 as cascaderProps,f2 as checkTagEmits,d2 as checkTagProps,hh as checkboxDefaultProps,ph as checkboxEmits,gr as checkboxGroupContextKey,Hk as checkboxGroupEmits,zk as checkboxGroupProps,fh as checkboxProps,b2 as colProps,Oh as collapseContextKey,C2 as collapseEmits,S2 as collapseItemProps,w2 as collapseProps,A2 as colorPickerEmits,Ph as colorPickerPanelContextKey,I2 as colorPickerPanelEmits,Nh as colorPickerPanelProps,N2 as colorPickerProps,Ud as columnAlignment,uR as componentSizeMap,oa as componentSizes,uv as configProviderContextKey,wC as configProviderProps,c_ as countdownEmits,u_ as countdownProps,Np as createModelToggleComposable,Hv as dateEquals,Kg as datePickTypes,Z2 as datePickerPanelProps,Q2 as datePickerProps,Ri as dayOrDaysToDate,Je as dayjs,xg as default,Up as defaultInitialZIndex,jr as defaultNamespace,mg as defaultProps,oE as descriptionItemProps,tE as descriptionProps,iG as dialogContextKey,Gh as dialogEmits,jh as dialogInjectionKey,Uh as dialogProps,dE as dividerProps,pE as drawerEmits,fE as drawerProps,Jh as dropdownItemProps,CE as dropdownMenuProps,Hi as dropdownProps,sm as elPaginationKey,Th as emitChangeFn,xE as emptyProps,iv as emptyValuesContextKey,Vv as extractDateFormat,zv as extractTimeFormat,Bl as formContextKey,AC as formEmits,ya as formItemContextKey,HC as formItemProps,zC as formItemValidateStates,MC as formMetaProps,NC as formProps,jv as formatter,Md as genFileId,NH as getPositionDataWithUnit,TC as iconProps,AE as imageEmits,NE as imageProps,ME as imageViewerEmits,IE as imageViewerProps,qC as inputEmits,DE as inputNumberEmits,LE as inputNumberProps,is as inputProps,FE as inputTagEmits,BE as inputTagProps,sae as install,HE as linkEmits,zE as linkProps,Ip as localeContextKey,SC as makeInstaller,jc as makeList,gg as mentionDefaultProps,$O as mentionEmits,EO as mentionProps,GE as menuEmits,ZE as menuItemEmits,QE as menuItemGroupProps,XE as menuItemProps,UE as menuProps,qn as messageConfig,Qn as messageDefaults,WO as messageEmits,Og as messagePlacement,HO as messageProps,Tg as messageTypes,Mp as namespaceContextKey,GO as notificationEmits,UO as notificationProps,Rg as notificationTypes,iE as overlayEmits,sE as overlayProps,r$ as pageHeaderEmits,l$ as pageHeaderProps,u$ as paginationEmits,i$ as paginationProps,Kv as parseDate,p$ as popconfirmEmits,f$ as popconfirmProps,m$ as popoverEmits,h$ as popoverProps,Pc as popperArrowProps,$v as popperContentEmits,Lc as popperContentProps,Ev as popperCoreConfigProps,Rc as popperProps,xc as popperTriggerProps,y$ as progressProps,kc as provideGlobalConfig,Gk as radioButtonProps,wh as radioDefaultProps,gh as radioEmits,Xk as radioGroupEmits,bh as radioGroupKey,qk as radioGroupProps,jk as radioProps,mh as radioPropsBase,hl as rangeArr,C$ as rateEmits,w$ as rateProps,XC as renderThumbStyle,k$ as resultProps,yv as roleTypes,_h as rowContextKey,m2 as rowProps,Tc as scrollbarContextKey,gv as scrollbarEmits,QC as scrollbarProps,SO as segmentedEmits,CO as segmentedProps,y7 as selectEmits,rh as selectGroupKey,fs as selectKey,uh as selectProps,yd as selectV2InjectionKey,q$ as skeletonItemProps,G$ as skeletonProps,_m as sliderContextKey,Q$ as sliderEmits,J$ as sliderProps,n_ as spaceItemProps,r_ as spaceProps,OO as splitterEmits,MO as splitterPanelEmits,IO as splitterPanelProps,TO as splitterProps,i_ as statisticProps,m_ as stepProps,h_ as stepsEmits,v_ as stepsProps,YE as subMenuProps,C_ as switchEmits,w_ as switchProps,aT as tabBarProps,sT as tabNavEmits,rT as tabNavProps,dT as tabPaneProps,G_ as tableV2Props,Ul as tableV2RowProps,cT as tabsEmits,uT as tabsProps,Zi as tabsRootContextKey,_k as tagEmits,Wa as tagProps,mT as textProps,ZC as thumbProps,Yc as timePickerDefaultProps,Uv as timePickerRangeTriggerProps,S9 as timePickerRngeTriggerProps,gT as timeSelectProps,Bv as timeUnits,CT as timelineItemProps,wT as timelineProps,yS as tooltipEmits,sO as tourContentEmits,Ad as tourContentProps,uO as tourEmits,rO as tourPlacements,iO as tourProps,dO as tourStepEmits,cO as tourStepProps,lO as tourStrategies,_d as transferCheckedChangeFn,$T as transferEmits,Cr as transferProps,ew as translate,MT as treeEmits,sg as treeProps,vg as uploadBaseProps,JT as uploadContentProps,fg as uploadContextKey,XT as uploadDraggerEmits,qT as uploadDraggerProps,UT as uploadListEmits,YT as uploadListProps,pg as uploadListTypes,jT as uploadProps,Gn as useAriaProps,di as useAttrs,rc as useCalcInputWidth,l2 as useCascaderConfig,as as useComposition,mC as useCursor,M5 as useDelayedRender,Vw as useDelayedToggle,Fw as useDelayedToggleProps,da as useDeprecated,qh as useDialog,JH as useDisabled,xp as useDraggable,ls as useEmptyValues,Dl as useEmptyValuesProps,Dw as useEscapeKeydown,AH as useFloating,IH as useFloatingProps,pz as useFocus,Ha as useFocusController,on as useFormDisabled,Pn as useFormItem,Eo as useFormItemInputId,wn as useFormSize,zw as useForwardRef,Hw as useForwardRefDirective,sc as useGetDerivedNamespace,ki as useGlobalComponentSettings,cr as useGlobalConfig,sv as useGlobalSize,Vn as useId,pc as useIdInjection,wt as useLocale,fi as useLockscreen,gz as useModal,wz as useModelToggle,Sz as useModelToggleEmits,Cz as useModelToggleProps,fe as useNamespace,Si as useOrderedChildren,Sw as usePopper,wK as usePopperArrowProps,Bw as usePopperContainer,jp as usePopperContainerId,EK as usePopperContentEmits,kK as usePopperContentProps,SK as usePopperCoreConfigProps,nK as usePopperProps,sK as usePopperTriggerProps,kz as usePreventGlobal,Ap as useProp,fc as useSameTarget,ZH as useSize,Tn as useSizeProp,DH as useSizeProps,l_ as useSpace,T5 as useTeleport,kw as useThrottleRender,Kp as useTimeout,Vt as useTooltipContentProps,gS as useTooltipModelToggle,mS as useTooltipModelToggleEmits,hS as useTooltipModelToggleProps,bS as useTooltipProps,wa as useTooltipTriggerProps,x5 as useTransitionFallthrough,R5 as useTransitionFallthroughEmits,Qr as useZIndex,ou as vLoading,xi as vRepeatClick,Wv as valueEquals,iae as version,Kl as virtualizedGridProps,wm as virtualizedListProps,ym as virtualizedProps,Sm as virtualizedScrollbarProps,oO as watermarkProps,qp as zIndexContextKey};
69
69
  //# sourceMappingURL=index.full.min.mjs.map