@element-plus/nightly 0.0.20260103 → 0.0.20260104

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 (614) hide show
  1. package/dist/index.full.js +3 -3
  2. package/dist/index.full.min.js +3 -3
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +3 -3
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +3 -3
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar-eg.js +1 -1
  12. package/dist/locale/ar-eg.min.js +1 -1
  13. package/dist/locale/ar-eg.min.mjs +1 -1
  14. package/dist/locale/ar-eg.mjs +1 -1
  15. package/dist/locale/ar.js +1 -1
  16. package/dist/locale/ar.min.js +1 -1
  17. package/dist/locale/ar.min.mjs +1 -1
  18. package/dist/locale/ar.mjs +1 -1
  19. package/dist/locale/az.js +1 -1
  20. package/dist/locale/az.min.js +1 -1
  21. package/dist/locale/az.min.mjs +1 -1
  22. package/dist/locale/az.mjs +1 -1
  23. package/dist/locale/bg.js +1 -1
  24. package/dist/locale/bg.min.js +1 -1
  25. package/dist/locale/bg.min.mjs +1 -1
  26. package/dist/locale/bg.mjs +1 -1
  27. package/dist/locale/bn.js +1 -1
  28. package/dist/locale/bn.min.js +1 -1
  29. package/dist/locale/bn.min.mjs +1 -1
  30. package/dist/locale/bn.mjs +1 -1
  31. package/dist/locale/ca.js +1 -1
  32. package/dist/locale/ca.min.js +1 -1
  33. package/dist/locale/ca.min.mjs +1 -1
  34. package/dist/locale/ca.mjs +1 -1
  35. package/dist/locale/ckb.js +1 -1
  36. package/dist/locale/ckb.min.js +1 -1
  37. package/dist/locale/ckb.min.mjs +1 -1
  38. package/dist/locale/ckb.mjs +1 -1
  39. package/dist/locale/cs.js +1 -1
  40. package/dist/locale/cs.min.js +1 -1
  41. package/dist/locale/cs.min.mjs +1 -1
  42. package/dist/locale/cs.mjs +1 -1
  43. package/dist/locale/da.js +1 -1
  44. package/dist/locale/da.min.js +1 -1
  45. package/dist/locale/da.min.mjs +1 -1
  46. package/dist/locale/da.mjs +1 -1
  47. package/dist/locale/de.js +1 -1
  48. package/dist/locale/de.min.js +1 -1
  49. package/dist/locale/de.min.mjs +1 -1
  50. package/dist/locale/de.mjs +1 -1
  51. package/dist/locale/el.js +1 -1
  52. package/dist/locale/el.min.js +1 -1
  53. package/dist/locale/el.min.mjs +1 -1
  54. package/dist/locale/el.mjs +1 -1
  55. package/dist/locale/en.js +1 -1
  56. package/dist/locale/en.min.js +1 -1
  57. package/dist/locale/en.min.mjs +1 -1
  58. package/dist/locale/en.mjs +1 -1
  59. package/dist/locale/eo.js +1 -1
  60. package/dist/locale/eo.min.js +1 -1
  61. package/dist/locale/eo.min.mjs +1 -1
  62. package/dist/locale/eo.mjs +1 -1
  63. package/dist/locale/es.js +1 -1
  64. package/dist/locale/es.min.js +1 -1
  65. package/dist/locale/es.min.mjs +1 -1
  66. package/dist/locale/es.mjs +1 -1
  67. package/dist/locale/et.js +1 -1
  68. package/dist/locale/et.min.js +1 -1
  69. package/dist/locale/et.min.mjs +1 -1
  70. package/dist/locale/et.mjs +1 -1
  71. package/dist/locale/eu.js +1 -1
  72. package/dist/locale/eu.min.js +1 -1
  73. package/dist/locale/eu.min.mjs +1 -1
  74. package/dist/locale/eu.mjs +1 -1
  75. package/dist/locale/fa.js +1 -1
  76. package/dist/locale/fa.min.js +1 -1
  77. package/dist/locale/fa.min.mjs +1 -1
  78. package/dist/locale/fa.mjs +1 -1
  79. package/dist/locale/fi.js +1 -1
  80. package/dist/locale/fi.min.js +1 -1
  81. package/dist/locale/fi.min.mjs +1 -1
  82. package/dist/locale/fi.mjs +1 -1
  83. package/dist/locale/fr.js +1 -1
  84. package/dist/locale/fr.min.js +1 -1
  85. package/dist/locale/fr.min.mjs +1 -1
  86. package/dist/locale/fr.mjs +1 -1
  87. package/dist/locale/he.js +1 -1
  88. package/dist/locale/he.min.js +1 -1
  89. package/dist/locale/he.min.mjs +1 -1
  90. package/dist/locale/he.mjs +1 -1
  91. package/dist/locale/hi.js +1 -1
  92. package/dist/locale/hi.min.js +1 -1
  93. package/dist/locale/hi.min.mjs +1 -1
  94. package/dist/locale/hi.mjs +1 -1
  95. package/dist/locale/hr.js +1 -1
  96. package/dist/locale/hr.min.js +1 -1
  97. package/dist/locale/hr.min.mjs +1 -1
  98. package/dist/locale/hr.mjs +1 -1
  99. package/dist/locale/hu.js +1 -1
  100. package/dist/locale/hu.min.js +1 -1
  101. package/dist/locale/hu.min.mjs +1 -1
  102. package/dist/locale/hu.mjs +1 -1
  103. package/dist/locale/hy-am.js +1 -1
  104. package/dist/locale/hy-am.min.js +1 -1
  105. package/dist/locale/hy-am.min.mjs +1 -1
  106. package/dist/locale/hy-am.mjs +1 -1
  107. package/dist/locale/id.js +1 -1
  108. package/dist/locale/id.min.js +1 -1
  109. package/dist/locale/id.min.mjs +1 -1
  110. package/dist/locale/id.mjs +1 -1
  111. package/dist/locale/it.js +1 -1
  112. package/dist/locale/it.min.js +1 -1
  113. package/dist/locale/it.min.mjs +1 -1
  114. package/dist/locale/it.mjs +1 -1
  115. package/dist/locale/ja.js +1 -1
  116. package/dist/locale/ja.min.js +1 -1
  117. package/dist/locale/ja.min.mjs +1 -1
  118. package/dist/locale/ja.mjs +1 -1
  119. package/dist/locale/kk.js +1 -1
  120. package/dist/locale/kk.min.js +1 -1
  121. package/dist/locale/kk.min.mjs +1 -1
  122. package/dist/locale/kk.mjs +1 -1
  123. package/dist/locale/km.js +1 -1
  124. package/dist/locale/km.min.js +1 -1
  125. package/dist/locale/km.min.mjs +1 -1
  126. package/dist/locale/km.mjs +1 -1
  127. package/dist/locale/ko.js +1 -1
  128. package/dist/locale/ko.min.js +1 -1
  129. package/dist/locale/ko.min.mjs +1 -1
  130. package/dist/locale/ko.mjs +1 -1
  131. package/dist/locale/ku.js +1 -1
  132. package/dist/locale/ku.min.js +1 -1
  133. package/dist/locale/ku.min.mjs +1 -1
  134. package/dist/locale/ku.mjs +1 -1
  135. package/dist/locale/ky.js +1 -1
  136. package/dist/locale/ky.min.js +1 -1
  137. package/dist/locale/ky.min.mjs +1 -1
  138. package/dist/locale/ky.mjs +1 -1
  139. package/dist/locale/lo.js +1 -1
  140. package/dist/locale/lo.min.js +1 -1
  141. package/dist/locale/lo.min.mjs +1 -1
  142. package/dist/locale/lo.mjs +1 -1
  143. package/dist/locale/lt.js +1 -1
  144. package/dist/locale/lt.min.js +1 -1
  145. package/dist/locale/lt.min.mjs +1 -1
  146. package/dist/locale/lt.mjs +1 -1
  147. package/dist/locale/lv.js +1 -1
  148. package/dist/locale/lv.min.js +1 -1
  149. package/dist/locale/lv.min.mjs +1 -1
  150. package/dist/locale/lv.mjs +1 -1
  151. package/dist/locale/mg.js +1 -1
  152. package/dist/locale/mg.min.js +1 -1
  153. package/dist/locale/mg.min.mjs +1 -1
  154. package/dist/locale/mg.mjs +1 -1
  155. package/dist/locale/mn.js +1 -1
  156. package/dist/locale/mn.min.js +1 -1
  157. package/dist/locale/mn.min.mjs +1 -1
  158. package/dist/locale/mn.mjs +1 -1
  159. package/dist/locale/ms.js +1 -1
  160. package/dist/locale/ms.min.js +1 -1
  161. package/dist/locale/ms.min.mjs +1 -1
  162. package/dist/locale/ms.mjs +1 -1
  163. package/dist/locale/my.js +1 -1
  164. package/dist/locale/my.min.js +1 -1
  165. package/dist/locale/my.min.mjs +1 -1
  166. package/dist/locale/my.mjs +1 -1
  167. package/dist/locale/nb-no.js +1 -1
  168. package/dist/locale/nb-no.min.js +1 -1
  169. package/dist/locale/nb-no.min.mjs +1 -1
  170. package/dist/locale/nb-no.mjs +1 -1
  171. package/dist/locale/nl.js +1 -1
  172. package/dist/locale/nl.min.js +1 -1
  173. package/dist/locale/nl.min.mjs +1 -1
  174. package/dist/locale/nl.mjs +1 -1
  175. package/dist/locale/no.js +1 -1
  176. package/dist/locale/no.min.js +1 -1
  177. package/dist/locale/no.min.mjs +1 -1
  178. package/dist/locale/no.mjs +1 -1
  179. package/dist/locale/pa.js +1 -1
  180. package/dist/locale/pa.min.js +1 -1
  181. package/dist/locale/pa.min.mjs +1 -1
  182. package/dist/locale/pa.mjs +1 -1
  183. package/dist/locale/pl.js +1 -1
  184. package/dist/locale/pl.min.js +1 -1
  185. package/dist/locale/pl.min.mjs +1 -1
  186. package/dist/locale/pl.mjs +1 -1
  187. package/dist/locale/pt-br.js +1 -1
  188. package/dist/locale/pt-br.min.js +1 -1
  189. package/dist/locale/pt-br.min.mjs +1 -1
  190. package/dist/locale/pt-br.mjs +1 -1
  191. package/dist/locale/pt.js +1 -1
  192. package/dist/locale/pt.min.js +1 -1
  193. package/dist/locale/pt.min.mjs +1 -1
  194. package/dist/locale/pt.mjs +1 -1
  195. package/dist/locale/ro.js +1 -1
  196. package/dist/locale/ro.min.js +1 -1
  197. package/dist/locale/ro.min.mjs +1 -1
  198. package/dist/locale/ro.mjs +1 -1
  199. package/dist/locale/ru.js +1 -1
  200. package/dist/locale/ru.min.js +1 -1
  201. package/dist/locale/ru.min.mjs +1 -1
  202. package/dist/locale/ru.mjs +1 -1
  203. package/dist/locale/sk.js +1 -1
  204. package/dist/locale/sk.min.js +1 -1
  205. package/dist/locale/sk.min.mjs +1 -1
  206. package/dist/locale/sk.mjs +1 -1
  207. package/dist/locale/sl.js +1 -1
  208. package/dist/locale/sl.min.js +1 -1
  209. package/dist/locale/sl.min.mjs +1 -1
  210. package/dist/locale/sl.mjs +1 -1
  211. package/dist/locale/sr.js +1 -1
  212. package/dist/locale/sr.min.js +1 -1
  213. package/dist/locale/sr.min.mjs +1 -1
  214. package/dist/locale/sr.mjs +1 -1
  215. package/dist/locale/sv.js +1 -1
  216. package/dist/locale/sv.min.js +1 -1
  217. package/dist/locale/sv.min.mjs +1 -1
  218. package/dist/locale/sv.mjs +1 -1
  219. package/dist/locale/sw.js +1 -1
  220. package/dist/locale/sw.min.js +1 -1
  221. package/dist/locale/sw.min.mjs +1 -1
  222. package/dist/locale/sw.mjs +1 -1
  223. package/dist/locale/ta.js +1 -1
  224. package/dist/locale/ta.min.js +1 -1
  225. package/dist/locale/ta.min.mjs +1 -1
  226. package/dist/locale/ta.mjs +1 -1
  227. package/dist/locale/te.js +1 -1
  228. package/dist/locale/te.min.js +1 -1
  229. package/dist/locale/te.min.mjs +1 -1
  230. package/dist/locale/te.mjs +1 -1
  231. package/dist/locale/th.js +1 -1
  232. package/dist/locale/th.min.js +1 -1
  233. package/dist/locale/th.min.mjs +1 -1
  234. package/dist/locale/th.mjs +1 -1
  235. package/dist/locale/tk.js +1 -1
  236. package/dist/locale/tk.min.js +1 -1
  237. package/dist/locale/tk.min.mjs +1 -1
  238. package/dist/locale/tk.mjs +1 -1
  239. package/dist/locale/tr.js +1 -1
  240. package/dist/locale/tr.min.js +1 -1
  241. package/dist/locale/tr.min.mjs +1 -1
  242. package/dist/locale/tr.mjs +1 -1
  243. package/dist/locale/ug-cn.js +1 -1
  244. package/dist/locale/ug-cn.min.js +1 -1
  245. package/dist/locale/ug-cn.min.mjs +1 -1
  246. package/dist/locale/ug-cn.mjs +1 -1
  247. package/dist/locale/uk.js +1 -1
  248. package/dist/locale/uk.min.js +1 -1
  249. package/dist/locale/uk.min.mjs +1 -1
  250. package/dist/locale/uk.mjs +1 -1
  251. package/dist/locale/uz-uz.js +1 -1
  252. package/dist/locale/uz-uz.min.js +1 -1
  253. package/dist/locale/uz-uz.min.mjs +1 -1
  254. package/dist/locale/uz-uz.mjs +1 -1
  255. package/dist/locale/vi.js +1 -1
  256. package/dist/locale/vi.min.js +1 -1
  257. package/dist/locale/vi.min.mjs +1 -1
  258. package/dist/locale/vi.mjs +1 -1
  259. package/dist/locale/zh-cn.js +1 -1
  260. package/dist/locale/zh-cn.min.js +1 -1
  261. package/dist/locale/zh-cn.min.mjs +1 -1
  262. package/dist/locale/zh-cn.mjs +1 -1
  263. package/dist/locale/zh-hk.js +1 -1
  264. package/dist/locale/zh-hk.min.js +1 -1
  265. package/dist/locale/zh-hk.min.mjs +1 -1
  266. package/dist/locale/zh-hk.mjs +1 -1
  267. package/dist/locale/zh-mo.js +1 -1
  268. package/dist/locale/zh-mo.min.js +1 -1
  269. package/dist/locale/zh-mo.min.mjs +1 -1
  270. package/dist/locale/zh-mo.mjs +1 -1
  271. package/dist/locale/zh-tw.js +1 -1
  272. package/dist/locale/zh-tw.min.js +1 -1
  273. package/dist/locale/zh-tw.min.mjs +1 -1
  274. package/dist/locale/zh-tw.mjs +1 -1
  275. package/es/components/autocomplete/index.mjs +2 -2
  276. package/es/components/autocomplete/src/autocomplete.mjs +485 -59
  277. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  278. package/es/components/autocomplete/src/autocomplete2.mjs +59 -485
  279. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  280. package/es/components/avatar/index.mjs +2 -2
  281. package/es/components/avatar/src/avatar.mjs +30 -74
  282. package/es/components/avatar/src/avatar.mjs.map +1 -1
  283. package/es/components/avatar/src/avatar2.mjs +74 -30
  284. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  285. package/es/components/breadcrumb/index.mjs +2 -2
  286. package/es/components/breadcrumb/src/breadcrumb.mjs +37 -9
  287. package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
  288. package/es/components/breadcrumb/src/breadcrumb2.mjs +9 -37
  289. package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
  290. package/es/components/calendar/index.mjs +2 -2
  291. package/es/components/calendar/src/calendar.mjs +196 -23
  292. package/es/components/calendar/src/calendar.mjs.map +1 -1
  293. package/es/components/calendar/src/calendar2.mjs +23 -196
  294. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  295. package/es/components/carousel/index.mjs +2 -2
  296. package/es/components/carousel/src/carousel-item.mjs +79 -7
  297. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  298. package/es/components/carousel/src/carousel-item2.mjs +7 -79
  299. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  300. package/es/components/cascader/index.mjs +2 -2
  301. package/es/components/cascader/src/cascader.mjs +843 -103
  302. package/es/components/cascader/src/cascader.mjs.map +1 -1
  303. package/es/components/cascader/src/cascader2.mjs +103 -843
  304. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  305. package/es/components/cascader-panel/src/index.mjs +1 -1
  306. package/es/components/cascader-panel/src/menu.mjs +1 -1
  307. package/es/components/cascader-panel/src/node.mjs +116 -192
  308. package/es/components/cascader-panel/src/node.mjs.map +1 -1
  309. package/es/components/cascader-panel/src/node2.mjs +192 -116
  310. package/es/components/cascader-panel/src/node2.mjs.map +1 -1
  311. package/es/components/cascader-panel/src/store.mjs +1 -1
  312. package/es/components/checkbox/index.mjs +2 -2
  313. package/es/components/checkbox/src/checkbox-button.mjs +1 -1
  314. package/es/components/checkbox/src/checkbox-group2.mjs +1 -1
  315. package/es/components/checkbox/src/checkbox.mjs +62 -134
  316. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  317. package/es/components/checkbox/src/checkbox2.mjs +134 -62
  318. package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
  319. package/es/components/collapse/index.mjs +4 -4
  320. package/es/components/collapse/src/collapse-item.mjs +118 -17
  321. package/es/components/collapse/src/collapse-item.mjs.map +1 -1
  322. package/es/components/collapse/src/collapse-item2.mjs +17 -118
  323. package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
  324. package/es/components/collapse/src/collapse.mjs +33 -24
  325. package/es/components/collapse/src/collapse.mjs.map +1 -1
  326. package/es/components/collapse/src/collapse2.mjs +24 -33
  327. package/es/components/collapse/src/collapse2.mjs.map +1 -1
  328. package/es/components/collection/index.mjs +1 -1
  329. package/es/components/collection/src/collection.mjs +64 -10
  330. package/es/components/collection/src/collection.mjs.map +1 -1
  331. package/es/components/collection/src/collection2.mjs +10 -64
  332. package/es/components/collection/src/collection2.mjs.map +1 -1
  333. package/es/components/descriptions/src/description2.mjs +1 -1
  334. package/es/components/descriptions/src/descriptions-row.mjs +6 -94
  335. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  336. package/es/components/descriptions/src/descriptions-row2.mjs +94 -6
  337. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
  338. package/es/components/dialog/src/dialog-content.mjs +112 -38
  339. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  340. package/es/components/dialog/src/dialog-content2.mjs +38 -112
  341. package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
  342. package/es/components/dialog/src/dialog.mjs +1 -1
  343. package/es/components/dialog/src/dialog2.mjs +1 -1
  344. package/es/components/divider/index.mjs +2 -2
  345. package/es/components/divider/src/divider.mjs +15 -43
  346. package/es/components/divider/src/divider.mjs.map +1 -1
  347. package/es/components/divider/src/divider2.mjs +43 -15
  348. package/es/components/divider/src/divider2.mjs.map +1 -1
  349. package/es/components/drawer/index.mjs +2 -2
  350. package/es/components/drawer/src/drawer.mjs +31 -225
  351. package/es/components/drawer/src/drawer.mjs.map +1 -1
  352. package/es/components/drawer/src/drawer2.mjs +225 -31
  353. package/es/components/drawer/src/drawer2.mjs.map +1 -1
  354. package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
  355. package/es/components/empty/index.mjs +2 -2
  356. package/es/components/empty/src/empty.mjs +10 -80
  357. package/es/components/empty/src/empty.mjs.map +1 -1
  358. package/es/components/empty/src/empty2.mjs +80 -10
  359. package/es/components/empty/src/empty2.mjs.map +1 -1
  360. package/es/components/form/index.mjs +2 -2
  361. package/es/components/form/src/form.mjs +54 -174
  362. package/es/components/form/src/form.mjs.map +1 -1
  363. package/es/components/form/src/form2.mjs +174 -54
  364. package/es/components/form/src/form2.mjs.map +1 -1
  365. package/es/components/image/index.mjs +2 -2
  366. package/es/components/image/src/image.mjs +68 -279
  367. package/es/components/image/src/image.mjs.map +1 -1
  368. package/es/components/image/src/image2.mjs +279 -68
  369. package/es/components/image/src/image2.mjs.map +1 -1
  370. package/es/components/image-viewer/index.mjs +2 -2
  371. package/es/components/image-viewer/src/image-viewer.mjs +557 -50
  372. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  373. package/es/components/image-viewer/src/image-viewer2.mjs +50 -557
  374. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  375. package/es/components/index.mjs +24 -24
  376. package/es/components/input-tag/index.mjs +2 -2
  377. package/es/components/input-tag/src/input-tag.mjs +82 -344
  378. package/es/components/input-tag/src/input-tag.mjs.map +1 -1
  379. package/es/components/input-tag/src/input-tag2.mjs +344 -82
  380. package/es/components/input-tag/src/input-tag2.mjs.map +1 -1
  381. package/es/components/menu/index.mjs +2 -2
  382. package/es/components/menu/src/menu-item-group.mjs +51 -4
  383. package/es/components/menu/src/menu-item-group.mjs.map +1 -1
  384. package/es/components/menu/src/menu-item-group2.mjs +4 -51
  385. package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
  386. package/es/components/message/index.mjs +1 -1
  387. package/es/components/message/src/message.mjs +107 -190
  388. package/es/components/message/src/message.mjs.map +1 -1
  389. package/es/components/message/src/message2.mjs +190 -107
  390. package/es/components/message/src/message2.mjs.map +1 -1
  391. package/es/components/message/src/method.mjs +2 -2
  392. package/es/components/pagination/src/components/jumper.mjs +7 -69
  393. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  394. package/es/components/pagination/src/components/jumper2.mjs +69 -7
  395. package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
  396. package/es/components/pagination/src/components/next.mjs +17 -43
  397. package/es/components/pagination/src/components/next.mjs.map +1 -1
  398. package/es/components/pagination/src/components/next2.mjs +43 -17
  399. package/es/components/pagination/src/components/next2.mjs.map +1 -1
  400. package/es/components/pagination/src/pagination.mjs +2 -2
  401. package/es/components/progress/index.mjs +2 -2
  402. package/es/components/progress/src/progress.mjs +52 -256
  403. package/es/components/progress/src/progress.mjs.map +1 -1
  404. package/es/components/progress/src/progress2.mjs +256 -52
  405. package/es/components/progress/src/progress2.mjs.map +1 -1
  406. package/es/components/roving-focus-group/src/roving-focus-group.mjs +1 -1
  407. package/es/components/segmented/index.mjs +2 -2
  408. package/es/components/segmented/src/segmented.mjs +209 -44
  409. package/es/components/segmented/src/segmented.mjs.map +1 -1
  410. package/es/components/segmented/src/segmented2.mjs +44 -209
  411. package/es/components/segmented/src/segmented2.mjs.map +1 -1
  412. package/es/components/text/index.mjs +2 -2
  413. package/es/components/text/src/text.mjs +66 -20
  414. package/es/components/text/src/text.mjs.map +1 -1
  415. package/es/components/text/src/text2.mjs +20 -66
  416. package/es/components/text/src/text2.mjs.map +1 -1
  417. package/es/components/tour/index.mjs +1 -1
  418. package/es/components/tour/src/content.mjs +42 -85
  419. package/es/components/tour/src/content.mjs.map +1 -1
  420. package/es/components/tour/src/content2.mjs +85 -42
  421. package/es/components/tour/src/content2.mjs.map +1 -1
  422. package/es/components/tour/src/step.mjs +1 -1
  423. package/es/components/tour/src/tour.mjs +1 -1
  424. package/es/components/tour/src/tour2.mjs +1 -1
  425. package/es/components/upload/index.mjs +3 -3
  426. package/es/components/upload/src/upload-content.mjs +1 -1
  427. package/es/components/upload/src/upload-content2.mjs +2 -2
  428. package/es/components/upload/src/upload-dragger.mjs +69 -10
  429. package/es/components/upload/src/upload-dragger.mjs.map +1 -1
  430. package/es/components/upload/src/upload-dragger2.mjs +10 -69
  431. package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
  432. package/es/components/upload/src/upload-list.mjs +1 -1
  433. package/es/components/upload/src/upload.mjs +101 -138
  434. package/es/components/upload/src/upload.mjs.map +1 -1
  435. package/es/components/upload/src/upload2.mjs +138 -101
  436. package/es/components/upload/src/upload2.mjs.map +1 -1
  437. package/es/components/upload/src/use-handlers.mjs +1 -1
  438. package/es/components/virtual-list/src/hooks/use-wheel.mjs +1 -1
  439. package/es/components/virtual-list/src/hooks/use-wheel.mjs.map +1 -1
  440. package/es/index.mjs +24 -24
  441. package/es/version.d.ts +1 -1
  442. package/es/version.mjs +1 -1
  443. package/es/version.mjs.map +1 -1
  444. package/lib/components/autocomplete/index.js +2 -2
  445. package/lib/components/autocomplete/src/autocomplete.js +483 -58
  446. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  447. package/lib/components/autocomplete/src/autocomplete2.js +58 -483
  448. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  449. package/lib/components/avatar/index.js +2 -2
  450. package/lib/components/avatar/src/avatar.js +31 -74
  451. package/lib/components/avatar/src/avatar.js.map +1 -1
  452. package/lib/components/avatar/src/avatar2.js +74 -31
  453. package/lib/components/avatar/src/avatar2.js.map +1 -1
  454. package/lib/components/breadcrumb/index.js +2 -2
  455. package/lib/components/breadcrumb/src/breadcrumb.js +37 -9
  456. package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
  457. package/lib/components/breadcrumb/src/breadcrumb2.js +9 -37
  458. package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
  459. package/lib/components/calendar/index.js +2 -2
  460. package/lib/components/calendar/src/calendar.js +196 -24
  461. package/lib/components/calendar/src/calendar.js.map +1 -1
  462. package/lib/components/calendar/src/calendar2.js +24 -196
  463. package/lib/components/calendar/src/calendar2.js.map +1 -1
  464. package/lib/components/carousel/index.js +2 -2
  465. package/lib/components/carousel/src/carousel-item.js +79 -7
  466. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  467. package/lib/components/carousel/src/carousel-item2.js +7 -79
  468. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  469. package/lib/components/cascader/index.js +2 -2
  470. package/lib/components/cascader/src/cascader.js +842 -103
  471. package/lib/components/cascader/src/cascader.js.map +1 -1
  472. package/lib/components/cascader/src/cascader2.js +103 -842
  473. package/lib/components/cascader/src/cascader2.js.map +1 -1
  474. package/lib/components/cascader-panel/src/index.js +1 -1
  475. package/lib/components/cascader-panel/src/menu.js +1 -1
  476. package/lib/components/cascader-panel/src/node.js +116 -192
  477. package/lib/components/cascader-panel/src/node.js.map +1 -1
  478. package/lib/components/cascader-panel/src/node2.js +192 -116
  479. package/lib/components/cascader-panel/src/node2.js.map +1 -1
  480. package/lib/components/cascader-panel/src/store.js +1 -1
  481. package/lib/components/checkbox/index.js +2 -2
  482. package/lib/components/checkbox/src/checkbox-button.js +1 -1
  483. package/lib/components/checkbox/src/checkbox-group2.js +1 -1
  484. package/lib/components/checkbox/src/checkbox.js +63 -134
  485. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  486. package/lib/components/checkbox/src/checkbox2.js +134 -63
  487. package/lib/components/checkbox/src/checkbox2.js.map +1 -1
  488. package/lib/components/collapse/index.js +4 -4
  489. package/lib/components/collapse/src/collapse-item.js +118 -17
  490. package/lib/components/collapse/src/collapse-item.js.map +1 -1
  491. package/lib/components/collapse/src/collapse-item2.js +17 -118
  492. package/lib/components/collapse/src/collapse-item2.js.map +1 -1
  493. package/lib/components/collapse/src/collapse.js +33 -26
  494. package/lib/components/collapse/src/collapse.js.map +1 -1
  495. package/lib/components/collapse/src/collapse2.js +26 -33
  496. package/lib/components/collapse/src/collapse2.js.map +1 -1
  497. package/lib/components/collection/index.js +1 -1
  498. package/lib/components/collection/src/collection.js +64 -9
  499. package/lib/components/collection/src/collection.js.map +1 -1
  500. package/lib/components/collection/src/collection2.js +9 -64
  501. package/lib/components/collection/src/collection2.js.map +1 -1
  502. package/lib/components/descriptions/src/description2.js +1 -1
  503. package/lib/components/descriptions/src/descriptions-row.js +6 -94
  504. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  505. package/lib/components/descriptions/src/descriptions-row2.js +94 -6
  506. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
  507. package/lib/components/dialog/src/dialog-content.js +111 -38
  508. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  509. package/lib/components/dialog/src/dialog-content2.js +38 -111
  510. package/lib/components/dialog/src/dialog-content2.js.map +1 -1
  511. package/lib/components/dialog/src/dialog.js +1 -1
  512. package/lib/components/dialog/src/dialog2.js +1 -1
  513. package/lib/components/divider/index.js +2 -2
  514. package/lib/components/divider/src/divider.js +15 -43
  515. package/lib/components/divider/src/divider.js.map +1 -1
  516. package/lib/components/divider/src/divider2.js +43 -15
  517. package/lib/components/divider/src/divider2.js.map +1 -1
  518. package/lib/components/drawer/index.js +2 -2
  519. package/lib/components/drawer/src/drawer.js +32 -225
  520. package/lib/components/drawer/src/drawer.js.map +1 -1
  521. package/lib/components/drawer/src/drawer2.js +225 -32
  522. package/lib/components/drawer/src/drawer2.js.map +1 -1
  523. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  524. package/lib/components/empty/index.js +2 -2
  525. package/lib/components/empty/src/empty.js +10 -80
  526. package/lib/components/empty/src/empty.js.map +1 -1
  527. package/lib/components/empty/src/empty2.js +80 -10
  528. package/lib/components/empty/src/empty2.js.map +1 -1
  529. package/lib/components/form/index.js +2 -2
  530. package/lib/components/form/src/form.js +55 -173
  531. package/lib/components/form/src/form.js.map +1 -1
  532. package/lib/components/form/src/form2.js +173 -55
  533. package/lib/components/form/src/form2.js.map +1 -1
  534. package/lib/components/image/index.js +2 -2
  535. package/lib/components/image/src/image.js +68 -278
  536. package/lib/components/image/src/image.js.map +1 -1
  537. package/lib/components/image/src/image2.js +278 -68
  538. package/lib/components/image/src/image2.js.map +1 -1
  539. package/lib/components/image-viewer/index.js +2 -2
  540. package/lib/components/image-viewer/src/image-viewer.js +557 -51
  541. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  542. package/lib/components/image-viewer/src/image-viewer2.js +51 -557
  543. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  544. package/lib/components/index.js +24 -24
  545. package/lib/components/input-tag/index.js +2 -2
  546. package/lib/components/input-tag/src/input-tag.js +81 -342
  547. package/lib/components/input-tag/src/input-tag.js.map +1 -1
  548. package/lib/components/input-tag/src/input-tag2.js +342 -81
  549. package/lib/components/input-tag/src/input-tag2.js.map +1 -1
  550. package/lib/components/menu/index.js +2 -2
  551. package/lib/components/menu/src/menu-item-group.js +51 -4
  552. package/lib/components/menu/src/menu-item-group.js.map +1 -1
  553. package/lib/components/menu/src/menu-item-group2.js +4 -51
  554. package/lib/components/menu/src/menu-item-group2.js.map +1 -1
  555. package/lib/components/message/index.js +1 -1
  556. package/lib/components/message/src/message.js +111 -189
  557. package/lib/components/message/src/message.js.map +1 -1
  558. package/lib/components/message/src/message2.js +189 -111
  559. package/lib/components/message/src/message2.js.map +1 -1
  560. package/lib/components/message/src/method.js +2 -2
  561. package/lib/components/pagination/src/components/jumper.js +7 -69
  562. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  563. package/lib/components/pagination/src/components/jumper2.js +69 -7
  564. package/lib/components/pagination/src/components/jumper2.js.map +1 -1
  565. package/lib/components/pagination/src/components/next.js +17 -43
  566. package/lib/components/pagination/src/components/next.js.map +1 -1
  567. package/lib/components/pagination/src/components/next2.js +43 -17
  568. package/lib/components/pagination/src/components/next2.js.map +1 -1
  569. package/lib/components/pagination/src/pagination.js +2 -2
  570. package/lib/components/progress/index.js +2 -2
  571. package/lib/components/progress/src/progress.js +52 -256
  572. package/lib/components/progress/src/progress.js.map +1 -1
  573. package/lib/components/progress/src/progress2.js +256 -52
  574. package/lib/components/progress/src/progress2.js.map +1 -1
  575. package/lib/components/roving-focus-group/src/roving-focus-group.js +1 -1
  576. package/lib/components/segmented/index.js +2 -2
  577. package/lib/components/segmented/src/segmented.js +208 -45
  578. package/lib/components/segmented/src/segmented.js.map +1 -1
  579. package/lib/components/segmented/src/segmented2.js +45 -208
  580. package/lib/components/segmented/src/segmented2.js.map +1 -1
  581. package/lib/components/text/index.js +2 -2
  582. package/lib/components/text/src/text.js +66 -20
  583. package/lib/components/text/src/text.js.map +1 -1
  584. package/lib/components/text/src/text2.js +20 -66
  585. package/lib/components/text/src/text2.js.map +1 -1
  586. package/lib/components/tour/index.js +1 -1
  587. package/lib/components/tour/src/content.js +45 -85
  588. package/lib/components/tour/src/content.js.map +1 -1
  589. package/lib/components/tour/src/content2.js +85 -45
  590. package/lib/components/tour/src/content2.js.map +1 -1
  591. package/lib/components/tour/src/step.js +1 -1
  592. package/lib/components/tour/src/tour.js +1 -1
  593. package/lib/components/tour/src/tour2.js +1 -1
  594. package/lib/components/upload/index.js +3 -3
  595. package/lib/components/upload/src/upload-content.js +1 -1
  596. package/lib/components/upload/src/upload-content2.js +2 -2
  597. package/lib/components/upload/src/upload-dragger.js +69 -11
  598. package/lib/components/upload/src/upload-dragger.js.map +1 -1
  599. package/lib/components/upload/src/upload-dragger2.js +11 -69
  600. package/lib/components/upload/src/upload-dragger2.js.map +1 -1
  601. package/lib/components/upload/src/upload-list.js +1 -1
  602. package/lib/components/upload/src/upload.js +104 -138
  603. package/lib/components/upload/src/upload.js.map +1 -1
  604. package/lib/components/upload/src/upload2.js +138 -104
  605. package/lib/components/upload/src/upload2.js.map +1 -1
  606. package/lib/components/upload/src/use-handlers.js +1 -1
  607. package/lib/components/virtual-list/src/hooks/use-wheel.js +1 -1
  608. package/lib/components/virtual-list/src/hooks/use-wheel.js.map +1 -1
  609. package/lib/index.js +24 -24
  610. package/lib/version.d.ts +1 -1
  611. package/lib/version.js +1 -1
  612. package/lib/version.js.map +1 -1
  613. package/package.json +2 -2
  614. package/web-types.json +1 -1
@@ -1,4 +1,4 @@
1
- /*! Element Plus v0.0.20260103 */import{shallowRef as Zt,watchEffect as io,readonly as uu,getCurrentScope as KO,onScopeDispose as Og,unref as s,onMounted as ut,nextTick as ke,ref as A,computed as k,getCurrentInstance as ct,watch as ue,isRef as Yn,reactive as Lt,defineComponent as re,openBlock as $,createElementBlock as F,createElementVNode as W,warn as jO,isVNode as Jt,Fragment as Be,Comment as Ua,onBeforeUnmount as Dt,inject as _e,onUnmounted as Ms,h as Le,Teleport as Rg,onBeforeMount as Vd,provide as St,triggerRef as cu,renderSlot as ee,createBlock as ne,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 Ct,toDisplayString as ge,vShow as xt,toRef as Ft,toRefs as Mn,onUpdated as Ga,TransitionGroup as xg,useAttrs as qa,withModifiers as je,onActivated as zd,cloneVNode as YO,Text as Ig,onDeactivated as UO,renderList as bt,createSlots as mo,toRaw as du,resolveComponent as It,resolveDirective as Hd,toHandlerKey as GO,vModelText as fu,normalizeProps as Xa,guardReactiveProps as wl,vModelCheckbox as Mg,vModelRadio as Ng,onBeforeUpdate as Pg,withKeys as fn,toHandlers as qO,markRaw as Cl,effectScope as XO,render as Sl,createApp as ZO,shallowReactive as Ag}from"vue";const JO='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Lg=e=>typeof Element=="undefined"?!1:e instanceof Element,QO=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,Dg=e=>Array.from(e.querySelectorAll(JO)).filter(t=>Ns(t)&&QO(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}},pu=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},Bg=e=>!e.getAttribute("aria-owns"),Fg=(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},Ps=(e,t)=>{if(!e||!e.focus)return;let n=!1;Lg(e)&&!Ns(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),Lg(e)&&n&&e.removeAttribute("tabindex")},vu=e=>{!e||(Ps(e),!Bg(e)&&e.click())},fe={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"},Vg=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],hu=["sun","mon","tue","wed","thu","fri","sat"],Ye="update:modelValue",ht="change",Sn="input",Wd=Symbol("INSTALLED_KEY"),na=["","default","small","large"],eR={large:40,default:32,small:24},Kd=["left","center","right"],As=11,jd=2;function zg(e,t){var n;const o=Zt();return io(()=>{o.value=e()},{...t,flush:(n=t==null?void 0:t.flush)!=null?n:"sync"}),uu(o)}function Zl(e){return KO()?(Og(e),!0):!1}function To(e){return typeof e=="function"?e():s(e)}function tR(e){if(!Yn(e))return Lt(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 Lt(t)}function nR(e){return tR(k(e))}const Tt=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const oR=e=>typeof e!="undefined",Hg=e=>e!=null,aR=Object.prototype.toString,lR=e=>aR.call(e)==="[object Object]",Wg=(e,t,n)=>Math.min(n,Math.max(t,e)),oa=()=>{},mu=rR();function rR(){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 Kg(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 sR(e,t={}){let n,o,a=oa;const l=i=>{clearTimeout(i),a(),a=oa};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 iR(...e){let t=0,n,o=!0,a=oa,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=oa)};return v=>{const m=To(r),p=Date.now()-t,h=()=>l=v();return d(),m<=0?(t=Date.now(),h()):(p>m&&(u||!o)?(t=Date.now(),h()):i&&(l=new Promise((g,b)=>{a=c?b:g,n=setTimeout(()=>{t=Date.now(),o=!0,g(h()),d()},Math.max(0,m-p))})),!u&&!n&&(n=setTimeout(()=>o=!0,m)),o=!1,l)}}function uR(e){return e||ct()}function Ls(e,t=200,n={}){return Kg(sR(t,n),e)}function cR(e,t=200,n={}){const o=A(e.value),a=Ls(()=>{o.value=e.value},t,n);return ue(e,()=>a()),o}function jg(e,t=200,n=!1,o=!0,a=!1){return Kg(iR(t,n,o,a),e)}function Yd(e,t=!0,n){uR()?ut(e,n):t?e():ke(e)}function Tr(e,t,n={}){const{immediate:o=!0}=n,a=A(!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:uu(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 aa=Tt?window:void 0,dR=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=aa):[t,n,o,a]=e,!t)return oa;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const l=[],r=()=>{l.forEach(d=>d()),l.length=0},i=(d,f,v,m)=>(d.addEventListener(f,v,m),()=>d.removeEventListener(f,v,m)),u=ue(()=>[kn(t),To(a)],([d,f])=>{if(r(),!d)return;const v=lR(f)?{...f}:f;l.push(...n.flatMap(m=>o.map(p=>i(d,m,p,v))))},{immediate:!0,flush:"post"}),c=()=>{u(),r()};return Zl(c),c}let Yg=!1;function Ud(e,t,n={}){const{window:o=aa,ignore:a=[],capture:l=!0,detectIframe:r=!1}=n;if(!o)return oa;mu&&!Yg&&(Yg=!0,Array.from(o.document.body.children).forEach(v=>v.addEventListener("click",oa)),o.document.documentElement.addEventListener("click",oa));let i=!0;const u=v=>a.some(m=>{if(typeof m=="string")return Array.from(o.document.querySelectorAll(m)).some(p=>p===v.target||v.composedPath().includes(p));{const p=kn(m);return p&&(v.target===p||v.composedPath().includes(p))}}),d=[Mt(o,"click",v=>{const m=kn(e);if(!(!m||m===v.target||v.composedPath().includes(m))){if(v.detail===0&&(i=!u(v)),!i){i=!0;return}t(v)}},{passive:!0,capture:l}),Mt(o,"pointerdown",v=>{const m=kn(e);i=!u(v)&&!!(m&&!v.composedPath().includes(m))},{passive:!0}),r&&Mt(o,"blur",v=>{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(v)},0)})].filter(Boolean);return()=>d.forEach(v=>v())}function fR(){const e=A(!1),t=ct();return t&&ut(()=>{e.value=!0},t),e}function gu(e){const t=fR();return k(()=>(t.value,Boolean(e())))}function Ds(e,t,n={}){const{window:o=aa,...a}=n;let l;const r=gu(()=>o&&"MutationObserver"in o),i=()=>{l&&(l.disconnect(),l=void 0)},u=k(()=>{const v=To(e),m=(Array.isArray(v)?v:[v]).map(kn).filter(Hg);return new Set(m)}),c=ue(()=>u.value,v=>{i(),r.value&&v.size&&(l=new MutationObserver(t),v.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 pR(e={}){var t;const{window:n=aa,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=A(),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 vR(e,t={}){const{window:n=aa}=t,o=gu(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const l=A(!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 hR(e){return JSON.parse(JSON.stringify(e))}function mR(e,t,n={}){const{window:o=aa,initialValue:a="",observe:l=!1}=n,r=A(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 v=(c=o.getComputedStyle(f).getPropertyValue(d))==null?void 0:c.trim();r.value=v||a}}return l&&Ds(i,u,{attributeFilter:["style","class"],window:o}),ue([i,()=>To(e)],u,{immediate:!0}),ue(r,c=>{var d;(d=i.value)!=null&&d.style&&i.value.style.setProperty(To(e),c)}),r}function gR(e={}){const{document:t=dR}=e;if(!t)return A("visible");const n=A(t.visibilityState);return Mt(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function Qt(e,t,n={}){const{window:o=aa,...a}=n;let l;const r=gu(()=>o&&"ResizeObserver"in o),i=()=>{l&&(l.disconnect(),l=void 0)},u=k(()=>Array.isArray(e)?e.map(f=>kn(f)):[kn(e)]),c=ue(u,f=>{if(i(),r.value&&o){l=new ResizeObserver(t);for(const v of f)v&&l.observe(v,a)}},{immediate:!0,flush:"post"}),d=()=>{i(),c()};return Zl(d),{isSupported:r,stop:d}}function Ug(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:a=!0,immediate:l=!0}=t,r=A(0),i=A(0),u=A(0),c=A(0),d=A(0),f=A(0),v=A(0),m=A(0);function p(){const h=kn(e);if(!h){n&&(r.value=0,i.value=0,u.value=0,c.value=0,d.value=0,f.value=0,v.value=0,m.value=0);return}const g=h.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,v.value=g.x,m.value=g.y}return Qt(e,p),ue(()=>kn(e),h=>!h&&p()),Ds(e,p,{attributeFilter:["style","class"]}),a&&Mt("scroll",p,{capture:!0,passive:!0}),o&&Mt("resize",p,{passive:!0}),Yd(()=>{l&&p()}),{height:r,bottom:i,left:u,right:c,top:d,width:f,x:v,y:m,update:p}}function Gd(e,t={width:0,height:0},n={}){const{window:o=aa,box:a="content-box"}=n,l=k(()=>{var f,v;return(v=(f=kn(e))==null?void 0:f.namespaceURI)==null?void 0:v.includes("svg")}),r=A(t.width),i=A(t.height),{stop:u}=Qt(e,([f])=>{const v=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(v){const m=Array.isArray(v)?v:[v];r.value=m.reduce((p,{inlineSize:h})=>p+h,0),i.value=m.reduce((p,{blockSize:h})=>p+h,0)}else r.value=f.contentRect.width,i.value=f.contentRect.height},n);Yd(()=>{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=ue(()=>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 bR(e,t,n={}){const{root:o,rootMargin:a="0px",threshold:l=.1,window:r=aa,immediate:i=!0}=n,u=gu(()=>r&&"IntersectionObserver"in r),c=k(()=>{const p=To(e);return(Array.isArray(p)?p:[p]).map(kn).filter(Hg)});let d=oa;const f=A(i),v=u.value?ue(()=>[c.value,kn(o),f.value],([p,h])=>{if(d(),!f.value||!p.length)return;const g=new IntersectionObserver(t,{root:kn(h),rootMargin:a,threshold:l});p.forEach(b=>b&&g.observe(b)),d=()=>{g.disconnect(),d=oa}},{immediate:i,flush:"post"}):oa,m=()=>{d(),v(),f.value=!1};return Zl(m),{isSupported:u,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:m}}function Gg(e,t,n,o={}){var a,l,r;const{clone:i=!1,passive:u=!1,eventName:c,deep:d=!1,defaultValue:f,shouldEmit:v}=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 h=c;t||(t="modelValue"),h=h||`update:${t.toString()}`;const g=w=>i?typeof i=="function"?i(w):hR(w):w,b=()=>oR(e[t])?g(e[t]):f,C=w=>{v?v(w)&&p(h,w):p(h,w)};if(u){const w=b(),y=A(w);let S=!1;return ue(()=>e[t],E=>{S||(S=!0,y.value=g(E),ke(()=>S=!1))}),ue(y,E=>{!S&&(E!==e[t]||d)&&C(E)},{deep:d}),y}else return k({get(){return b()},set(w){C(w)}})}function yR(e={}){const{window:t=aa}=e;if(!t)return A(!1);const n=A(t.document.hasFocus());return Mt(t,"blur",()=>{n.value=!1}),Mt(t,"focus",()=>{n.value=!0}),n}function qd(e={}){const{window:t=aa,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:a=!0,includeScrollbar:l=!0}=e,r=A(n),i=A(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(),Yd(u),Mt("resize",u,{passive:!0}),a){const c=vR("(orientation: portrait)");ue(c,()=>u())}return{width:r,height:i}}const Xd=()=>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)},Xg=e=>t=>t.pointerType==="mouse"?e(t):void 0,Ht=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=Zg(e);if(t){if(Object.values(fe).includes(t))return t;switch(t){case" ":return fe.space;default:return""}}return""},Zg=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},Jg=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},Zd=(e,t)=>Math.abs(Jg(e)-Jg(t)),Qg=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 wR(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=()=>{},CR=Object.prototype.hasOwnProperty,Dn=(e,t)=>CR.call(e,t),Ee=Array.isArray,Or=e=>e0(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),SR=Object.prototype.toString,e0=e=>SR.call(e),Jd=e=>e0(e)==="[object Object]",Qd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},kR=/-\w/g,ef=Qd(e=>e.replace(kR,t=>t.slice(1).toUpperCase())),ER=/\B([A-Z])/g,$R=Qd(e=>e.replace(ER,"-$1").toLowerCase()),_R=Qd(e=>e.charAt(0).toUpperCase()+e.slice(1));/**
1
+ /*! Element Plus v0.0.20260104 */import{shallowRef as Zt,watchEffect as io,readonly as uu,getCurrentScope as KO,onScopeDispose as Og,unref as s,onMounted as ut,nextTick as ke,ref as A,computed as k,getCurrentInstance as ct,watch as ue,isRef as Yn,reactive as Lt,defineComponent as re,openBlock as $,createElementBlock as F,createElementVNode as W,warn as jO,isVNode as Jt,Fragment as Be,Comment as Ua,onBeforeUnmount as Dt,inject as _e,onUnmounted as Ms,h as Le,Teleport as Rg,onBeforeMount as Vd,provide as St,triggerRef as cu,renderSlot as ee,createBlock as ne,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 Ct,toDisplayString as ge,vShow as xt,toRef as Ft,toRefs as Mn,onUpdated as Ga,TransitionGroup as xg,useAttrs as qa,withModifiers as je,onActivated as zd,cloneVNode as YO,Text as Ig,onDeactivated as UO,renderList as bt,createSlots as mo,toRaw as du,resolveComponent as It,resolveDirective as Hd,toHandlerKey as GO,vModelText as fu,normalizeProps as Xa,guardReactiveProps as wl,vModelCheckbox as Mg,vModelRadio as Ng,onBeforeUpdate as Pg,withKeys as fn,toHandlers as qO,markRaw as Cl,effectScope as XO,render as Sl,createApp as ZO,shallowReactive as Ag}from"vue";const JO='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Lg=e=>typeof Element=="undefined"?!1:e instanceof Element,QO=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,Dg=e=>Array.from(e.querySelectorAll(JO)).filter(t=>Ns(t)&&QO(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}},pu=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},Bg=e=>!e.getAttribute("aria-owns"),Fg=(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},Ps=(e,t)=>{if(!e||!e.focus)return;let n=!1;Lg(e)&&!Ns(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),Lg(e)&&n&&e.removeAttribute("tabindex")},vu=e=>{!e||(Ps(e),!Bg(e)&&e.click())},fe={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"},Vg=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],hu=["sun","mon","tue","wed","thu","fri","sat"],Ye="update:modelValue",ht="change",Sn="input",Wd=Symbol("INSTALLED_KEY"),na=["","default","small","large"],eR={large:40,default:32,small:24},Kd=["left","center","right"],As=11,jd=2;function zg(e,t){var n;const o=Zt();return io(()=>{o.value=e()},{...t,flush:(n=t==null?void 0:t.flush)!=null?n:"sync"}),uu(o)}function Zl(e){return KO()?(Og(e),!0):!1}function To(e){return typeof e=="function"?e():s(e)}function tR(e){if(!Yn(e))return Lt(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 Lt(t)}function nR(e){return tR(k(e))}const Tt=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const oR=e=>typeof e!="undefined",Hg=e=>e!=null,aR=Object.prototype.toString,lR=e=>aR.call(e)==="[object Object]",Wg=(e,t,n)=>Math.min(n,Math.max(t,e)),oa=()=>{},mu=rR();function rR(){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 Kg(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 sR(e,t={}){let n,o,a=oa;const l=i=>{clearTimeout(i),a(),a=oa};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 iR(...e){let t=0,n,o=!0,a=oa,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=oa)};return v=>{const m=To(r),p=Date.now()-t,h=()=>l=v();return d(),m<=0?(t=Date.now(),h()):(p>m&&(u||!o)?(t=Date.now(),h()):i&&(l=new Promise((g,b)=>{a=c?b:g,n=setTimeout(()=>{t=Date.now(),o=!0,g(h()),d()},Math.max(0,m-p))})),!u&&!n&&(n=setTimeout(()=>o=!0,m)),o=!1,l)}}function uR(e){return e||ct()}function Ls(e,t=200,n={}){return Kg(sR(t,n),e)}function cR(e,t=200,n={}){const o=A(e.value),a=Ls(()=>{o.value=e.value},t,n);return ue(e,()=>a()),o}function jg(e,t=200,n=!1,o=!0,a=!1){return Kg(iR(t,n,o,a),e)}function Yd(e,t=!0,n){uR()?ut(e,n):t?e():ke(e)}function Tr(e,t,n={}){const{immediate:o=!0}=n,a=A(!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:uu(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 aa=Tt?window:void 0,dR=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=aa):[t,n,o,a]=e,!t)return oa;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const l=[],r=()=>{l.forEach(d=>d()),l.length=0},i=(d,f,v,m)=>(d.addEventListener(f,v,m),()=>d.removeEventListener(f,v,m)),u=ue(()=>[kn(t),To(a)],([d,f])=>{if(r(),!d)return;const v=lR(f)?{...f}:f;l.push(...n.flatMap(m=>o.map(p=>i(d,m,p,v))))},{immediate:!0,flush:"post"}),c=()=>{u(),r()};return Zl(c),c}let Yg=!1;function Ud(e,t,n={}){const{window:o=aa,ignore:a=[],capture:l=!0,detectIframe:r=!1}=n;if(!o)return oa;mu&&!Yg&&(Yg=!0,Array.from(o.document.body.children).forEach(v=>v.addEventListener("click",oa)),o.document.documentElement.addEventListener("click",oa));let i=!0;const u=v=>a.some(m=>{if(typeof m=="string")return Array.from(o.document.querySelectorAll(m)).some(p=>p===v.target||v.composedPath().includes(p));{const p=kn(m);return p&&(v.target===p||v.composedPath().includes(p))}}),d=[Mt(o,"click",v=>{const m=kn(e);if(!(!m||m===v.target||v.composedPath().includes(m))){if(v.detail===0&&(i=!u(v)),!i){i=!0;return}t(v)}},{passive:!0,capture:l}),Mt(o,"pointerdown",v=>{const m=kn(e);i=!u(v)&&!!(m&&!v.composedPath().includes(m))},{passive:!0}),r&&Mt(o,"blur",v=>{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(v)},0)})].filter(Boolean);return()=>d.forEach(v=>v())}function fR(){const e=A(!1),t=ct();return t&&ut(()=>{e.value=!0},t),e}function gu(e){const t=fR();return k(()=>(t.value,Boolean(e())))}function Ds(e,t,n={}){const{window:o=aa,...a}=n;let l;const r=gu(()=>o&&"MutationObserver"in o),i=()=>{l&&(l.disconnect(),l=void 0)},u=k(()=>{const v=To(e),m=(Array.isArray(v)?v:[v]).map(kn).filter(Hg);return new Set(m)}),c=ue(()=>u.value,v=>{i(),r.value&&v.size&&(l=new MutationObserver(t),v.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 pR(e={}){var t;const{window:n=aa,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=A(),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 vR(e,t={}){const{window:n=aa}=t,o=gu(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const l=A(!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 hR(e){return JSON.parse(JSON.stringify(e))}function mR(e,t,n={}){const{window:o=aa,initialValue:a="",observe:l=!1}=n,r=A(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 v=(c=o.getComputedStyle(f).getPropertyValue(d))==null?void 0:c.trim();r.value=v||a}}return l&&Ds(i,u,{attributeFilter:["style","class"],window:o}),ue([i,()=>To(e)],u,{immediate:!0}),ue(r,c=>{var d;(d=i.value)!=null&&d.style&&i.value.style.setProperty(To(e),c)}),r}function gR(e={}){const{document:t=dR}=e;if(!t)return A("visible");const n=A(t.visibilityState);return Mt(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function Qt(e,t,n={}){const{window:o=aa,...a}=n;let l;const r=gu(()=>o&&"ResizeObserver"in o),i=()=>{l&&(l.disconnect(),l=void 0)},u=k(()=>Array.isArray(e)?e.map(f=>kn(f)):[kn(e)]),c=ue(u,f=>{if(i(),r.value&&o){l=new ResizeObserver(t);for(const v of f)v&&l.observe(v,a)}},{immediate:!0,flush:"post"}),d=()=>{i(),c()};return Zl(d),{isSupported:r,stop:d}}function Ug(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:a=!0,immediate:l=!0}=t,r=A(0),i=A(0),u=A(0),c=A(0),d=A(0),f=A(0),v=A(0),m=A(0);function p(){const h=kn(e);if(!h){n&&(r.value=0,i.value=0,u.value=0,c.value=0,d.value=0,f.value=0,v.value=0,m.value=0);return}const g=h.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,v.value=g.x,m.value=g.y}return Qt(e,p),ue(()=>kn(e),h=>!h&&p()),Ds(e,p,{attributeFilter:["style","class"]}),a&&Mt("scroll",p,{capture:!0,passive:!0}),o&&Mt("resize",p,{passive:!0}),Yd(()=>{l&&p()}),{height:r,bottom:i,left:u,right:c,top:d,width:f,x:v,y:m,update:p}}function Gd(e,t={width:0,height:0},n={}){const{window:o=aa,box:a="content-box"}=n,l=k(()=>{var f,v;return(v=(f=kn(e))==null?void 0:f.namespaceURI)==null?void 0:v.includes("svg")}),r=A(t.width),i=A(t.height),{stop:u}=Qt(e,([f])=>{const v=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(v){const m=Array.isArray(v)?v:[v];r.value=m.reduce((p,{inlineSize:h})=>p+h,0),i.value=m.reduce((p,{blockSize:h})=>p+h,0)}else r.value=f.contentRect.width,i.value=f.contentRect.height},n);Yd(()=>{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=ue(()=>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 bR(e,t,n={}){const{root:o,rootMargin:a="0px",threshold:l=.1,window:r=aa,immediate:i=!0}=n,u=gu(()=>r&&"IntersectionObserver"in r),c=k(()=>{const p=To(e);return(Array.isArray(p)?p:[p]).map(kn).filter(Hg)});let d=oa;const f=A(i),v=u.value?ue(()=>[c.value,kn(o),f.value],([p,h])=>{if(d(),!f.value||!p.length)return;const g=new IntersectionObserver(t,{root:kn(h),rootMargin:a,threshold:l});p.forEach(b=>b&&g.observe(b)),d=()=>{g.disconnect(),d=oa}},{immediate:i,flush:"post"}):oa,m=()=>{d(),v(),f.value=!1};return Zl(m),{isSupported:u,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:m}}function Gg(e,t,n,o={}){var a,l,r;const{clone:i=!1,passive:u=!1,eventName:c,deep:d=!1,defaultValue:f,shouldEmit:v}=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 h=c;t||(t="modelValue"),h=h||`update:${t.toString()}`;const g=w=>i?typeof i=="function"?i(w):hR(w):w,b=()=>oR(e[t])?g(e[t]):f,C=w=>{v?v(w)&&p(h,w):p(h,w)};if(u){const w=b(),y=A(w);let S=!1;return ue(()=>e[t],E=>{S||(S=!0,y.value=g(E),ke(()=>S=!1))}),ue(y,E=>{!S&&(E!==e[t]||d)&&C(E)},{deep:d}),y}else return k({get(){return b()},set(w){C(w)}})}function yR(e={}){const{window:t=aa}=e;if(!t)return A(!1);const n=A(t.document.hasFocus());return Mt(t,"blur",()=>{n.value=!1}),Mt(t,"focus",()=>{n.value=!0}),n}function qd(e={}){const{window:t=aa,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:a=!0,includeScrollbar:l=!0}=e,r=A(n),i=A(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(),Yd(u),Mt("resize",u,{passive:!0}),a){const c=vR("(orientation: portrait)");ue(c,()=>u())}return{width:r,height:i}}const Xd=()=>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)},Xg=e=>t=>t.pointerType==="mouse"?e(t):void 0,Ht=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=Zg(e);if(t){if(Object.values(fe).includes(t))return t;switch(t){case" ":return fe.space;default:return""}}return""},Zg=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},Jg=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},Zd=(e,t)=>Math.abs(Jg(e)-Jg(t)),Qg=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 wR(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=()=>{},CR=Object.prototype.hasOwnProperty,Dn=(e,t)=>CR.call(e,t),Ee=Array.isArray,Or=e=>e0(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),SR=Object.prototype.toString,e0=e=>SR.call(e),Jd=e=>e0(e)==="[object Object]",Qd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},kR=/-\w/g,ef=Qd(e=>e.replace(kR,t=>t.slice(1).toUpperCase())),ER=/\B([A-Z])/g,$R=Qd(e=>e.replace(ER,"-$1").toLowerCase()),_R=Qd(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,Vt=e=>typeof e=="boolean",Re=e=>typeof e=="number",vo=e=>!e&&e!==0||Ee(e)&&e.length===0||Rt(e)&&!Object.keys(e).length,wo=e=>typeof Element=="undefined"?!1:e instanceof Element,Co=e=>vn(e),LF=e=>He(e)?!Number.isNaN(Number(e)):!1,li=e=>e===window,Ma=e=>Tt?window.requestAnimationFrame(e):setTimeout(e,16),rl=e=>Tt?window.cancelAnimationFrame(e):clearTimeout(e),Cp=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Il=e=>_R(e),Kr=e=>Object.keys(e),R1=e=>Object.entries(e),ri=(e,t,n)=>({get value(){return gn(e,t,n)},set value(o){d1(e,t,o)}});class DF extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function _n(e,t){throw new DF(`[${e}] ${t}`)}function sae(e,t){}const x1=(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)},jo=(e,t)=>{!e||!t.trim()||e.classList.add(...x1(t))},no=(e,t)=>{!e||!t.trim()||e.classList.remove(...x1(t))},sl=(e,t)=>{var n;if(!Tt||!e||!t)return"";let o=ef(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]}},I1=(e,t,n)=>{if(!(!e||!t))if(Rt(t))R1(t).forEach(([o,a])=>I1(e,o,a));else{const o=ef(t);e.style[o]=n}};function un(e,t="px"){if(!e&&e!==0)return"";if(Re(e)||LF(e))return`${e}${t}`;if(He(e))return e}const BF=(e,t)=>{if(!Tt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],o=sl(e,n);return["scroll","auto","overlay"].some(a=>o.includes(a))},Sp=(e,t)=>{if(!Tt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(BF(n,t))return n;n=n.parentNode}return n};let Ju;const M1=e=>{var t;if(!Tt)return 0;if(Ju!==void 0)return Ju;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),Ju=o-l,Ju};function kp(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 FF(e,t,n,o,a){const l=Date.now();let r;const i=()=>{const c=Date.now()-l,d=wR(c>o?o:c,t,n,o);li(e)?e.scrollTo(window.pageXOffset,d):e.scrollTop=d,c<o?r=Ma(i):lt(a)&&a()};return i(),()=>{r&&rl(r)}}const N1=(e,t)=>li(t)?e.ownerDocument.documentElement:t,P1=e=>li(e)?window.scrollY:e.scrollTop,Qu=e=>{if(!Tt||e==="")return null;if(He(e))try{return document.querySelector(e)}catch(t){return null}return e};let A1=Tt?document.body:void 0;function VF(e){const t=document.createElement("div");return e!==void 0&&t.setAttribute("id",e),A1&&A1.appendChild(t),t}function zF(e){e.remove()}var HF=re({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"})]))}}),Pa=HF,WF=re({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"})]))}}),il=WF,KF=re({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=KF,jF=re({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"})]))}}),ec=jF,YF=re({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"})]))}}),UF=YF,GF=re({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"})]))}}),qF=GF,XF=re({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"})]))}}),L1=XF,ZF=re({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"})]))}}),JF=ZF,QF=re({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"})]))}}),si=QF,eV=re({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"})]))}}),tV=eV,nV=re({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"})]))}}),Ep=nV,oV=re({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=oV,aV=re({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"})]))}}),ul=aV,lV=re({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"})]))}}),D1=lV,rV=re({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"})]))}}),Yo=rV,sV=re({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=sV,iV=re({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=iV,uV=re({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"})]))}}),cV=uV,dV=re({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"})]))}}),fV=dV,pV=re({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"})]))}}),vV=pV,hV=re({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"})]))}}),mV=hV,gV=re({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"})]))}}),ii=gV,bV=re({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"})]))}}),Aa=bV,yV=re({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"})]))}}),wV=yV,CV=re({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"})]))}}),B1=CV,SV=re({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"})]))}}),kV=SV,EV=re({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"})]))}}),$V=EV,_V=re({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"})]))}}),F1=_V,TV=re({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"})]))}}),OV=TV,RV=re({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"})]))}}),xV=RV,IV=re({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"})]))}}),MV=IV,NV=re({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"})]))}}),PV=NV,AV=re({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"})]))}}),LV=AV,DV=re({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"})]))}}),BV=DV,FV=re({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"})]))}}),VV=FV,zV=re({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"})]))}}),tc=zV,HV=re({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"})]))}}),WV=HV,KV=re({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"})]))}}),V1=KV,jV=re({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"})]))}}),YV=jV,UV=re({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"})]))}}),nc=UV,GV=re({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"})]))}}),z1=GV,qV=re({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"})]))}}),XV=qV;/*! Element Plus Icons Vue v2.3.2 */const H1="__epPropKey",q=e=>e,ZV=e=>Rt(e)&&!!e[H1],ua=(e,t)=>{if(!Rt(e)||ZV(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),Dn(e,"default")&&f.push(a),d||(d=f.includes(c))),r&&(d||(d=r(c))),!d&&f.length>0){const v=[...new Set(f)].map(m=>JSON.stringify(m)).join(", ");jO(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${v}], got value ${JSON.stringify(c)}.`)}return d}:void 0,[H1]:!0};return Dn(e,"default")&&(u.default=a),u},he=e=>Fr(Object.entries(e).map(([t,n])=>[t,ua(n,t)])),zt=q([String,Object,Function]),W1={Close:Yo},_p={Close:Yo,SuccessFilled:V1,InfoFilled:ii,WarningFilled:nc,CircleCloseFilled:$p},Pl={primary:ii,success:V1,warning:nc,error:$p,info:ii},oc={validating:Aa,success:Ep,error:ul},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},K1=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),JV=(e,t)=>(e.install=n=>{n.directive(t,e)},e),cn=e=>(e.install=Gt,e),Tp=(...e)=>t=>{e.forEach(n=>{n.value=t})},j1=e=>["",...na].includes(e);var Uo=(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))(Uo||{});function Op(e){return Jt(e)&&e.type===Be}function QV(e){return Jt(e)&&e.type===Ua}function ez(e){return Jt(e)&&!Op(e)&&!QV(e)}const tz=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=>{Dn(n[a],"default")&&(o[a]=n[a].default)}),Object.keys(t).forEach(a=>{o[ef(a)]=t[a]}),o},ca=e=>{const t=Ee(e)?e:[e],n=[];return t.forEach(o=>{var a;Ee(o)?n.push(...ca(o)):Jt(o)&&((a=o.component)==null?void 0:a.subTree)?n.push(o,...ca(o.component.subTree)):Jt(o)&&Ee(o.children)?n.push(...ca(o.children)):Jt(o)&&o.shapeFlag===2?n.push(...ca(o.type())):n.push(o)}),n},Y1=e=>[...new Set(e)],ui=e=>Ee(e)?e[0]:e,ao=e=>!e&&e!==0?[]:Ee(e)?e:[e],nz=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),dn=e=>e;function oz(e){let t=0;const n=(...o)=>{t&&rl(t),t=Ma(()=>{e(...o),t=0})};return n.cancel=()=>{rl(t),t=0},n}const az=["class","style"],lz=/^on[A-Z]/,ci=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=k(()=>((n==null?void 0:n.value)||[]).concat(az)),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&&lz.test(r))))}):k(()=>({}))};function ac(){const e=Zt(),t=A(0),n=k(()=>({minWidth:`${Math.max(t.value,As)}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)=>{ue(()=>s(r),i=>{},{immediate:!0})},Rp=(e,t,n,o)=>{const a={offsetX:0,offsetY:0},l=A(!1),r=(v,m)=>{if(e.value){const{offsetX:p,offsetY:h}=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,R=-C+h,N=S-b-w+p,O=E-C-(y<E?y:0)+h;o!=null&&o.value||(v=Math.min(Math.max(v,_),N),m=Math.min(Math.max(m,R),O)),a.offsetX=v,a.offsetY=m,e.value.style.transform=`translate(${un(v)}, ${un(m)})`}},i=v=>{const m=v.clientX,p=v.clientY,{offsetX:h,offsetY:g}=a,b=w=>{l.value||(l.value=!0);const y=h+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:v,offsetY:m}=a;r(v,m)};return ut(()=>{io(()=>{n.value?u():c()})}),Dt(()=>{c()}),{isDragging:l,resetPosition:d,updatePosition:f}},rz=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}});var sz={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 U1=e=>(t,n)=>G1(t,n,s(e)),G1=(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}}`}`}),q1=e=>{const t=k(()=>s(e).name),n=Yn(e)?e:A(e);return{lang:t,locale:n,t:U1(e)}},xp=Symbol("localeContextKey"),yt=e=>{const t=e||_e(xp,A());return q1(k(()=>t.value||sz))},jr="el",iz="is-",rr=(e,t,n,o,a)=>{let l=`${e}-${t}`;return n&&(l+=`-${n}`),o&&(l+=`__${o}`),a&&(l+=`--${a}`),l},Ip=Symbol("namespaceContextKey"),lc=e=>{const t=e||(ct()?_e(Ip,A(jr)):A(jr));return k(()=>s(t)||jr)},de=(e,t)=>{const n=lc(t);return{namespace:n,b:(h="")=>rr(n.value,e,h,"",""),e:h=>h?rr(n.value,e,"",h,""):"",m:h=>h?rr(n.value,e,"","",h):"",be:(h,g)=>h&&g?rr(n.value,e,h,g,""):"",em:(h,g)=>h&&g?rr(n.value,e,"",h,g):"",bm:(h,g)=>h&&g?rr(n.value,e,h,"",g):"",bem:(h,g,b)=>h&&g&&b?rr(n.value,e,h,g,b):"",is:(h,...g)=>{const b=g.length>=1?g[0]:!0;return h&&b?`${iz}${h}`:""},cssVar:h=>{const g={};for(const b in h)h[b]&&(g[`--${n.value}-${b}`]=h[b]);return g},cssVarName:h=>`--${n.value}-${h}`,cssVarBlock:h=>{const g={};for(const b in h)h[b]&&(g[`--${n.value}-${e}-${b}`]=h[b]);return g},cssVarBlockName:h=>`--${n.value}-${e}-${h}`}},di=(e,t={})=>{Yn(e)||_n("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||de("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))};ue(e,c=>{if(!c){u();return}i=!1,l=!Na(document.body,o.value),l&&(r=document.body.style.width,jo(document.body,o.value)),a=M1(n.namespace.value);const d=document.documentElement.clientHeight<document.body.scrollHeight,f=sl(document.body,"overflowY");a>0&&(d||f==="scroll")&&l&&(document.body.style.width=`calc(100% - ${a}px)`)}),Og(()=>u())},Yr=[],uz=e=>{if(Yr.length===0)return;Ht(e)===fe.esc&&(e.stopPropagation(),Yr[Yr.length-1].handleClose())},cz=(e,t)=>{ue(t,n=>{n?Yr.push(e):Yr.splice(Yr.indexOf(e),1)})};Tt&&Mt(document,"keydown",uz);const dz=ua({type:q(Boolean),default:null}),fz=ua({type:q(Function)}),Mp=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],a={[e]:dz,[n]:fz};return{useModelToggle:({indicator:r,toggleReason:i,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:d,onHide:f})=>{const v=ct(),{emit:m}=v,p=v.props,h=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 R=h.value&&Tt;R&&m(t,!0),(g.value||!R)&&b(_)},y=_=>{if(p.disabled===!0||!Tt)return;const R=h.value&&Tt;R&&m(t,!1),(g.value||!R)&&C(_)},S=_=>{!Vt(_)||(p.disabled&&_?h.value&&m(t,!1):r.value!==_&&(_?b():C()))},E=()=>{r.value?y():w()};return ue(()=>p[e],S),u&&v.appContext.config.globalProperties.$route!==void 0&&ue(()=>({...v.proxy.$route}),()=>{u.value&&r.value&&y()}),ut(()=>{S(p[e])}),{hide:y,show:w,toggle:E,hasUpdateHandler:h}},useModelToggleProps:a,useModelToggleEmits:o}},{useModelToggle:pz,useModelToggleProps:vz,useModelToggleEmits:hz}=Mp("modelValue"),mz=(e,t,n)=>{const o=l=>{n(l)&&l.stopImmediatePropagation()};let a;ue(()=>e.value,l=>{l?a=Mt(document,t,o,!0):a==null||a()},{immediate:!0})},Np=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",Go="bottom",qo="right",ko="left",Pp="auto",fi=[So,Go,qo,ko],Ur="start",pi="end",gz="clippingParents",X1="viewport",vi="popper",bz="reference",Z1=fi.reduce(function(e,t){return e.concat([t+"-"+Ur,t+"-"+pi])},[]),cl=[].concat(fi,[Pp]).reduce(function(e,t){return e.concat([t,t+"-"+Ur,t+"-"+pi])},[]),yz="beforeRead",wz="read",Cz="afterRead",Sz="beforeMain",kz="main",Ez="afterMain",$z="beforeWrite",_z="write",Tz="afterWrite",Oz=[yz,wz,Cz,Sz,kz,Ez,$z,_z,Tz];function La(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 Xo(e){var t=fa(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ap(e){if(typeof ShadowRoot=="undefined")return!1;var t=fa(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Rz(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];!Xo(l)||!La(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 xz(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},{});!Xo(a)||!La(a)||(Object.assign(a.style,i),Object.keys(l).forEach(function(u){a.removeAttribute(u)}))})}}var J1={name:"applyStyles",enabled:!0,phase:"write",fn:Rz,effect:xz,requires:["computeStyles"]};function Da(e){return e.split("-")[0]}var sr=Math.max,rc=Math.min,qr=Math.round;function Xr(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,a=1;if(Xo(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 Lp(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 Q1(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ap(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 Iz(e){return["table","td","th"].indexOf(La(e))>=0}function Al(e){return((Gr(e)?e.ownerDocument:e.document)||window.document).documentElement}function sc(e){return La(e)==="html"?e:e.assignedSlot||e.parentNode||(Ap(e)?e.host:null)||Al(e)}function ew(e){return!Xo(e)||dl(e).position==="fixed"?null:e.offsetParent}function Mz(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Xo(e)){var o=dl(e);if(o.position==="fixed")return null}var a=sc(e);for(Ap(a)&&(a=a.host);Xo(a)&&["html","body"].indexOf(La(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 hi(e){for(var t=fa(e),n=ew(e);n&&Iz(n)&&dl(n).position==="static";)n=ew(n);return n&&(La(n)==="html"||La(n)==="body"&&dl(n).position==="static")?t:n||Mz(e)||t}function Dp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function mi(e,t,n){return sr(e,rc(t,n))}function Nz(e,t,n){var o=mi(e,t,n);return o>n?n:o}function tw(){return{top:0,right:0,bottom:0,left:0}}function nw(e){return Object.assign({},tw(),e)}function ow(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var Pz=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,nw(typeof e!="number"?e:ow(e,fi))};function Az(e){var t,n=e.state,o=e.name,a=e.options,l=n.elements.arrow,r=n.modifiersData.popperOffsets,i=Da(n.placement),u=Dp(i),c=[ko,qo].indexOf(i)>=0,d=c?"height":"width";if(!(!l||!r)){var f=Pz(a.padding,n),v=Lp(l),m=u==="y"?So:ko,p=u==="y"?Go:qo,h=n.rects.reference[d]+n.rects.reference[u]-r[u]-n.rects.popper[d],g=r[u]-n.rects.reference[u],b=hi(l),C=b?u==="y"?b.clientHeight||0:b.clientWidth||0:0,w=h/2-g/2,y=f[m],S=C-v[d]-f[p],E=C/2-v[d]/2+w,_=mi(y,E,S),R=u;n.modifiersData[o]=(t={},t[R]=_,t.centerOffset=_-E,t)}}function Lz(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)||!Q1(t.elements.popper,a)||(t.elements.arrow=a))}var Dz={name:"arrow",enabled:!0,phase:"main",fn:Az,effect:Lz,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zr(e){return e.split("-")[1]}var Bz={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fz(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 aw(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,v=r.x,m=v===void 0?0:v,p=r.y,h=p===void 0?0:p,g=typeof d=="function"?d({x:m,y:h}):{x:m,y:h};m=g.x,h=g.y;var b=r.hasOwnProperty("x"),C=r.hasOwnProperty("y"),w=ko,y=So,S=window;if(c){var E=hi(n),_="clientHeight",R="clientWidth";if(E===fa(n)&&(E=Al(n),dl(E).position!=="static"&&i==="absolute"&&(_="scrollHeight",R="scrollWidth")),E=E,a===So||(a===ko||a===qo)&&l===pi){y=Go;var N=f&&E===S&&S.visualViewport?S.visualViewport.height:E[_];h-=N-o.height,h*=u?1:-1}if(a===ko||(a===So||a===Go)&&l===pi){w=qo;var O=f&&E===S&&S.visualViewport?S.visualViewport.width:E[R];m-=O-o.width,m*=u?1:-1}}var P=Object.assign({position:i},c&&Bz),M=d===!0?Fz({x:m,y:h}):{x:m,y:h};if(m=M.x,h=M.y,u){var L;return Object.assign({},P,(L={},L[y]=C?"0":"",L[w]=b?"0":"",L.transform=(S.devicePixelRatio||1)<=1?"translate("+m+"px, "+h+"px)":"translate3d("+m+"px, "+h+"px, 0)",L))}return Object.assign({},P,(t={},t[y]=C?h+"px":"",t[w]=b?m+"px":"",t.transform="",t))}function Vz(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:Da(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,aw(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,aw(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 lw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Vz,data:{}},ic={passive:!0};function zz(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,ic)}),i&&u.addEventListener("resize",n.update,ic),function(){l&&c.forEach(function(d){d.removeEventListener("scroll",n.update,ic)}),i&&u.removeEventListener("resize",n.update,ic)}}var rw={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:zz,data:{}},Hz={left:"right",right:"left",bottom:"top",top:"bottom"};function uc(e){return e.replace(/left|right|bottom|top/g,function(t){return Hz[t]})}var Wz={start:"end",end:"start"};function sw(e){return e.replace(/start|end/g,function(t){return Wz[t]})}function Bp(e){var t=fa(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Fp(e){return Xr(Al(e)).left+Bp(e).scrollLeft}function Kz(e){var t=fa(e),n=Al(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+Fp(e),y:i}}function jz(e){var t,n=Al(e),o=Bp(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+Fp(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 Vp(e){var t=dl(e),n=t.overflow,o=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function iw(e){return["html","body","#document"].indexOf(La(e))>=0?e.ownerDocument.body:Xo(e)&&Vp(e)?e:iw(sc(e))}function gi(e,t){var n;t===void 0&&(t=[]);var o=iw(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),l=fa(o),r=a?[l].concat(l.visualViewport||[],Vp(o)?o:[]):o,i=t.concat(r);return a?i:i.concat(gi(sc(r)))}function zp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Yz(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 uw(e,t){return t===X1?zp(Kz(e)):Gr(t)?Yz(t):zp(jz(Al(e)))}function Uz(e){var t=gi(sc(e)),n=["absolute","fixed"].indexOf(dl(e).position)>=0,o=n&&Xo(e)?hi(e):e;return Gr(o)?t.filter(function(a){return Gr(a)&&Q1(a,o)&&La(a)!=="body"}):[]}function Gz(e,t,n){var o=t==="clippingParents"?Uz(e):[].concat(t),a=[].concat(o,[n]),l=a[0],r=a.reduce(function(i,u){var c=uw(e,u);return i.top=sr(c.top,i.top),i.right=rc(c.right,i.right),i.bottom=rc(c.bottom,i.bottom),i.left=sr(c.left,i.left),i},uw(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 cw(e){var t=e.reference,n=e.element,o=e.placement,a=o?Da(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 Go:u={x:r,y:t.y+t.height};break;case qo: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?Dp(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 pi:u[c]=u[c]+(t[d]/2-n[d]/2);break}}return u}function bi(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?gz:l,i=n.rootBoundary,u=i===void 0?X1:i,c=n.elementContext,d=c===void 0?vi:c,f=n.altBoundary,v=f===void 0?!1:f,m=n.padding,p=m===void 0?0:m,h=nw(typeof p!="number"?p:ow(p,fi)),g=d===vi?bz:vi,b=e.rects.popper,C=e.elements[v?g:d],w=Gz(Gr(C)?C:C.contextElement||Al(e.elements.popper),r,u),y=Xr(e.elements.reference),S=cw({reference:y,element:b,strategy:"absolute",placement:a}),E=zp(Object.assign({},b,S)),_=d===vi?E:y,R={top:w.top-_.top+h.top,bottom:_.bottom-w.bottom+h.bottom,left:w.left-_.left+h.left,right:_.right-w.right+h.right},N=e.modifiersData.offset;if(d===vi&&N){var O=N[a];Object.keys(R).forEach(function(P){var M=[qo,Go].indexOf(P)>=0?1:-1,L=[So,Go].indexOf(P)>=0?"y":"x";R[P]+=O[L]*M})}return R}function qz(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?cl:u,d=Zr(o),f=d?i?Z1:Z1.filter(function(p){return Zr(p)===d}):fi,v=f.filter(function(p){return c.indexOf(p)>=0});v.length===0&&(v=f);var m=v.reduce(function(p,h){return p[h]=bi(e,{placement:h,boundary:a,rootBoundary:l,padding:r})[Da(h)],p},{});return Object.keys(m).sort(function(p,h){return m[p]-m[h]})}function Xz(e){if(Da(e)===Pp)return[];var t=uc(e);return[sw(e),t,sw(t)]}function Zz(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,v=n.altBoundary,m=n.flipVariations,p=m===void 0?!0:m,h=n.allowedAutoPlacements,g=t.options.placement,b=Da(g),C=b===g,w=u||(C||!p?[uc(g)]:Xz(g)),y=[g].concat(w).reduce(function(G,X){return G.concat(Da(X)===Pp?qz(t,{placement:X,boundary:d,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:h}):X)},[]),S=t.rects.reference,E=t.rects.popper,_=new Map,R=!0,N=y[0],O=0;O<y.length;O++){var P=y[O],M=Da(P),L=Zr(P)===Ur,H=[So,Go].indexOf(M)>=0,K=H?"width":"height",Y=bi(t,{placement:P,boundary:d,rootBoundary:f,altBoundary:v,padding:c}),I=H?L?qo:ko:L?Go:So;S[K]>E[K]&&(I=uc(I));var T=uc(I),D=[];if(l&&D.push(Y[M]<=0),i&&D.push(Y[I]<=0,Y[T]<=0),D.every(function(G){return G})){N=P,R=!1;break}_.set(P,D)}if(R)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(ae){return ae})});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 Jz={name:"flip",enabled:!0,phase:"main",fn:Zz,requiresIfExists:["offset"],data:{_skip:!1}};function dw(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 fw(e){return[So,qo,Go,ko].some(function(t){return e[t]>=0})}function Qz(e){var t=e.state,n=e.name,o=t.rects.reference,a=t.rects.popper,l=t.modifiersData.preventOverflow,r=bi(t,{elementContext:"reference"}),i=bi(t,{altBoundary:!0}),u=dw(r,o),c=dw(i,a,l),d=fw(u),f=fw(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 e5={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Qz};function t5(e,t,n){var o=Da(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,qo].indexOf(o)>=0?{x:i,y:r}:{x:r,y:i}}function n5(e){var t=e.state,n=e.options,o=e.name,a=n.offset,l=a===void 0?[0,0]:a,r=cl.reduce(function(d,f){return d[f]=t5(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 o5={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:n5};function a5(e){var t=e.state,n=e.name;t.modifiersData[n]=cw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var pw={name:"popperOffsets",enabled:!0,phase:"read",fn:a5,data:{}};function l5(e){return e==="x"?"y":"x"}function r5(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,v=n.tether,m=v===void 0?!0:v,p=n.tetherOffset,h=p===void 0?0:p,g=bi(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),b=Da(t.placement),C=Zr(t.placement),w=!C,y=Dp(b),S=l5(y),E=t.modifiersData.popperOffsets,_=t.rects.reference,R=t.rects.popper,N=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,O=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),P=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"?Go:qo,Y=y==="y"?"height":"width",I=E[y],T=I+g[H],D=I-g[K],B=m?-R[Y]/2:0,z=C===Ur?_[Y]:R[Y],U=C===Ur?-R[Y]:-_[Y],V=t.elements.arrow,G=m&&V?Lp(V):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:tw(),le=X[H],se=X[K],ae=mi(0,_[Y],G[Y]),ve=w?_[Y]/2-B-ae-le-O.mainAxis:z-ae-le-O.mainAxis,oe=w?-_[Y]/2+B+ae+se+O.mainAxis:U+ae+se+O.mainAxis,j=t.elements.arrow&&hi(t.elements.arrow),ie=j?y==="y"?j.clientTop||0:j.clientLeft||0:0,Se=(L=P==null?void 0:P[y])!=null?L:0,xe=I+ve-Se-ie,De=I+oe-Se,ze=mi(m?rc(T,xe):T,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"?Go:qo,Ue=E[S],Pe=S==="y"?"height":"width",Ae=Ue+g[nt],Ge=Ue-g[Et],ot=[So,ko].indexOf(b)!==-1,pt=(Ze=P==null?void 0:P[S])!=null?Ze:0,wt=ot?Ae:Ue-_[Pe]-R[Pe]-pt+O.altAxis,Ce=ot?Ue+_[Pe]+R[Pe]-pt-O.altAxis:Ge,Ve=m&&ot?Nz(wt,Ue,Ce):mi(m?wt:Ae,Ue,m?Ce:Ge);E[S]=Ve,M[S]=Ve-Ue}t.modifiersData[o]=M}}var s5={name:"preventOverflow",enabled:!0,phase:"main",fn:r5,requiresIfExists:["offset"]};function i5(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function u5(e){return e===fa(e)||!Xo(e)?Bp(e):i5(e)}function c5(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 d5(e,t,n){n===void 0&&(n=!1);var o=Xo(t),a=Xo(t)&&c5(t),l=Al(t),r=Xr(e,a),i={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&((La(t)!=="body"||Vp(l))&&(i=u5(t)),Xo(t)?(u=Xr(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=Fp(l))),{x:r.left+i.scrollLeft-u.x,y:r.top+i.scrollTop-u.y,width:r.width,height:r.height}}function f5(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 p5(e){var t=f5(e);return Oz.reduce(function(n,o){return n.concat(t.filter(function(a){return a.phase===o}))},[])}function v5(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function h5(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 vw={placement:"bottom",modifiers:[],strategy:"absolute"};function hw(){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 Hp(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,a=t.defaultOptions,l=a===void 0?vw:a;return function(r,i,u){u===void 0&&(u=l);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},vw,l),modifiersData:{},elements:{reference:r,popper:i},attributes:{},styles:{}},d=[],f=!1,v={state:c,setOptions:function(h){var g=typeof h=="function"?h(c.options):h;p(),c.options=Object.assign({},l,c.options,g),c.scrollParents={reference:Gr(r)?gi(r):r.contextElement?gi(r.contextElement):[],popper:gi(i)};var b=p5(h5([].concat(o,c.options.modifiers)));return c.orderedModifiers=b.filter(function(C){return C.enabled}),m(),v.update()},forceUpdate:function(){if(!f){var h=c.elements,g=h.reference,b=h.popper;if(hw(g,b)){c.rects={reference:d5(g,hi(b),c.options.strategy==="fixed"),popper:Lp(b)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(R){return c.modifiersData[R.name]=Object.assign({},R.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:v})||c)}}}},update:v5(function(){return new Promise(function(h){v.forceUpdate(),h(c)})}),destroy:function(){p(),f=!0}};if(!hw(r,i))return v;v.setOptions(u).then(function(h){!f&&u.onFirstUpdate&&u.onFirstUpdate(h)});function m(){c.orderedModifiers.forEach(function(h){var g=h.name,b=h.options,C=b===void 0?{}:b,w=h.effect;if(typeof w=="function"){var y=w({state:c,name:g,instance:v,options:C}),S=function(){};d.push(y||S)}})}function p(){d.forEach(function(h){return h()}),d=[]}return v}}Hp();var m5=[rw,pw,lw,J1];Hp({defaultModifiers:m5});var g5=[rw,pw,lw,J1,o5,Jz,s5,Dz,e5],b5=Hp({defaultModifiers:g5});const mw=(e,t,n={})=>{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const c=y5(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=A({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 ue(a,u=>{const c=s(l);c&&c.setOptions(u)},{deep:!0}),ue([e,t],([u,c])=>{i(),!(!u||!c)&&(l.value=b5(u,c,s(a)))}),Dt(()=>{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 y5(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 cc=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}}},w5=(e,t)=>{const n=A(!1);if(!Tt)return{isTeleportVisible:n,showTeleport:Gt,hideTeleport:Gt,renderTeleport:Gt};let o=null;const a=()=>{n.value=!0,o===null&&(o=VF())},l=()=>{n.value=!1,o!==null&&(zF(o),o=null)},r=()=>t.value!==!0?e():n.value?[Le(Rg,{to:o},e())]:void 0;return Ms(l),{isTeleportVisible:n,showTeleport:a,hideTeleport:l,renderTeleport:r}},gw=(e,t=0)=>{if(t===0)return e;const n=Rt(t)&&Boolean(t.initVal),o=A(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"?Re(t)?l(t):l(t.leading):Rt(t)?l(t.trailing):o.value=!1};return ut(()=>r("leading")),ue(()=>e.value,i=>{r(i?"leading":"trailing")}),o};function Wp(){let e;const t=(o,a)=>{n(),e=window.setTimeout(o,a)},n=()=>window.clearTimeout(e);return Zl(()=>n()),{registerTimeout:t,cancelTimeout:n}}const bw="after-appear",yw="after-enter",ww="after-leave",C5="appear",Cw="appear-cancelled",Sw="before-enter",kw="before-leave",Ew="enter",$w="enter-cancelled",_w="leave",Tw="leave-cancelled",S5=[bw,yw,ww,C5,Cw,Sw,kw,Ew,$w,_w,Tw],k5=()=>{const{emit:e}=ct();return{onAfterAppear:()=>{e(bw)},onAfterEnter:()=>{e(yw)},onAfterLeave:()=>{e(ww)},onAppearCancelled:()=>{e(Cw)},onBeforeEnter:()=>{e(Sw)},onBeforeLeave:()=>{e(kw)},onEnter:()=>{e(Ew)},onEnterCancelled:()=>{e($w)},onLeave:()=>{e(_w)},onLeaveCancelled:()=>{e(Tw)}}},Ow={prefix:Math.floor(Math.random()*1e4),current:0},Rw=Symbol("elIdInjection"),dc=()=>ct()?_e(Rw,Ow):Ow,Fn=e=>{const t=dc(),n=lc();return zg(()=>s(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Jr=[];const xw=e=>{Ht(e)===fe.esc&&Jr.forEach(n=>n(e))},Iw=e=>{ut(()=>{Jr.length===0&&document.addEventListener("keydown",xw),Tt&&Jr.push(e)}),Dt(()=>{Jr=Jr.filter(t=>t!==e),Jr.length===0&&Tt&&document.removeEventListener("keydown",xw)})},Kp=()=>{const e=lc(),t=dc(),n=k(()=>`${e.value}-popper-container-${t.prefix}`),o=k(()=>`#${n.value}`);return{id:n,selector:o}},E5=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},Mw=()=>{const{id:e,selector:t}=Kp();return Vd(()=>{!Tt||document.body.querySelector(t.value)||E5(e.value)}),{id:e,selector:t}},$5=({indicator:e,intermediateIndicator:t,shouldSetIntermediate:n=()=>!0,beforeShow:o,afterShow:a,afterHide:l,beforeHide:r})=>{ue(()=>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)}))}),ue(()=>t.value,i=>{i?a==null||a():l==null||l()})},Nw=he({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Pw=({showAfter:e,hideAfter:t,autoClose:n,open:o,close:a})=>{const{registerTimeout:l}=Wp(),{registerTimeout:r,cancelTimeout:i}=Wp();return{onOpen:(d,f=s(e))=>{l(()=>{o(d);const v=s(n);Re(v)&&v>0&&r(()=>{a(d)},v)},f)},onClose:(d,f=s(t))=>{i(),l(()=>{a(d)},f)}}},jp=Symbol("elForwardRef"),Aw=e=>{St(jp,{setForwardRef:n=>{e.value=n}})},Lw=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Dw={current:0},Bw=A(0),Yp=2e3,Up=Symbol("elZIndexContextKey"),Gp=Symbol("zIndexContextKey"),Qr=e=>{const t=ct()?_e(Up,Dw):Dw,n=e||(ct()?_e(Gp,void 0):void 0),o=k(()=>{const r=s(n);return Re(r)?r:Yp}),a=k(()=>o.value+Bw.value),l=()=>(t.current++,Bw.value=t.current,a.value);return!Tt&&_e(Up),{initialZIndex:o,currentZIndex:a,nextZIndex:l}},Fw=["top","right","bottom","left"],Vw=["start","end"],zw=Fw.reduce((e,t)=>e.concat(t,t+"-"+Vw[0],t+"-"+Vw[1]),[]),pa=Math.min,lo=Math.max,fc=Math.round,pc=Math.floor,Ba=e=>({x:e,y:e}),_5={left:"right",right:"left",bottom:"top",top:"bottom"},T5={start:"end",end:"start"};function qp(e,t,n){return lo(e,pa(t,n))}function va(e,t){return typeof e=="function"?e(t):e}function No(e){return e.split("-")[0]}function ha(e){return e.split("-")[1]}function Xp(e){return e==="x"?"y":"x"}function Zp(e){return e==="y"?"height":"width"}const O5=new Set(["top","bottom"]);function ma(e){return O5.has(No(e))?"y":"x"}function Jp(e){return Xp(ma(e))}function Hw(e,t,n){n===void 0&&(n=!1);const o=ha(e),a=Jp(e),l=Zp(a);let r=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(r=hc(r)),[r,hc(r)]}function R5(e){const t=hc(e);return[vc(e),t,vc(t)]}function vc(e){return e.replace(/start|end/g,t=>T5[t])}const Ww=["left","right"],Kw=["right","left"],x5=["top","bottom"],I5=["bottom","top"];function M5(e,t,n){switch(e){case"top":case"bottom":return n?t?Kw:Ww:t?Ww:Kw;case"left":case"right":return t?x5:I5;default:return[]}}function N5(e,t,n,o){const a=ha(e);let l=M5(No(e),n==="start",o);return a&&(l=l.map(r=>r+"-"+a),t&&(l=l.concat(l.map(vc)))),l}function hc(e){return e.replace(/left|right|bottom|top/g,t=>_5[t])}function P5(e){return{top:0,right:0,bottom:0,left:0,...e}}function Qp(e){return typeof e!="number"?P5(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 jw(e,t,n){let{reference:o,floating:a}=e;const l=ma(t),r=Jp(t),i=Zp(r),u=No(t),c=l==="y",d=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,v=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]-=v*(n&&c?-1:1);break;case"end":m[r]+=v*(n&&c?-1:1);break}return m}const A5=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}=jw(c,o,u),v=o,m={},p=0;for(let h=0;h<i.length;h++){const{name:g,fn:b}=i[h],{x:C,y:w,data:y,reset:S}=await b({x:d,y:f,initialPlacement:o,placement:v,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&&(v=S.placement),S.rects&&(c=S.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:a}):S.rects),{x:d,y:f}=jw(c,v,u)),h=-1)}return{x:d,y:f,placement:v,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:v=!1,padding:m=0}=va(t,e),p=Qp(m),g=i[v?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 L5=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=Qp(d),v={x:n,y:o},m=Jp(a),p=Zp(m),h=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]-v[m]-l.floating[p],S=v[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 R=y/2-S/2,N=_/2-h[p]/2-1,O=pa(f[b],N),P=pa(f[C],N),M=O,L=_-h[p]-P,H=_/2-h[p]/2+R,K=qp(M,H,L),Y=!u.arrow&&ha(a)!=null&&H!==K&&l.reference[p]/2-(H<M?O:P)-h[p]/2<0,I=Y?H<M?H-M:H-L:0;return{[m]:v[m]+I,data:{[m]:K,centerOffset:H-K-I,...Y&&{alignmentOffset:I}},reset:Y}}});function D5(e,t,n){return(e?[...n.filter(a=>ha(a)===e),...n.filter(a=>ha(a)!==e)]:n.filter(a=>No(a)===a)).filter(a=>e?ha(a)===e||(t?vc(a)!==a:!1):!0)}const B5=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:v=zw,autoAlignment:m=!0,...p}=va(e,t),h=f!==void 0||v===zw?D5(f||null,m,v):v,g=await ir(t,p),b=((n=r.autoPlacement)==null?void 0:n.index)||0,C=h[b];if(C==null)return{};const w=Hw(C,l,await(u.isRTL==null?void 0:u.isRTL(c.floating)));if(i!==C)return{reset:{placement:h[0]}};const y=[g[No(C)],g[w[0]],g[w[1]]],S=[...((o=r.autoPlacement)==null?void 0:o.overflows)||[],{placement:C,overflows:y}],E=h[b+1];if(E)return{data:{index:b+1,overflows:S},reset:{placement:E}};const _=S.map(O=>{const P=ha(O.placement);return[O.placement,P&&d?O.overflows.slice(0,2).reduce((M,L)=>M+L,0):O.overflows[0],O.overflows]}).sort((O,P)=>O[1]-P[1]),N=((a=_.filter(O=>O[2].slice(0,ha(O[0])?2:3).every(P=>P<=0))[0])==null?void 0:a[0])||_[0][0];return N!==i?{data:{index:b+1,overflows:S},reset:{placement:N}}:{}}}},F5=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:v,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...g}=va(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const b=No(a),C=ma(i),w=No(i)===i,y=await(u.isRTL==null?void 0:u.isRTL(c.floating)),S=v||(w||!h?[hc(i)]:R5(i)),E=p!=="none";!v&&E&&S.push(...N5(i,h,p,y));const _=[i,...S],R=await ir(t,g),N=[];let O=((o=l.flip)==null?void 0:o.overflows)||[];if(d&&N.push(R[b]),f){const H=Hw(a,r,y);N.push(R[H[0]],R[H[1]])}if(O=[...O,{placement:a,overflows:N}],!N.every(H=>H<=0)){var P,M;const H=(((P=l.flip)==null?void 0:P.index)||0)+1,K=_[H];if(K&&(!(f==="alignment"?C!==ma(K):!1)||O.every(T=>ma(T.placement)===C?T.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,T)=>I.overflows[1]-T.overflows[1])[0])==null?void 0:M.placement;if(!Y)switch(m){case"bestFit":{var L;const I=(L=O.filter(T=>{if(E){const D=ma(T.placement);return D===C||D==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(D=>D>0).reduce((D,B)=>D+B,0)]).sort((T,D)=>T[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 Yw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Uw(e){return Fw.some(t=>e[t]>=0)}const V5=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=Yw(l,n.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:Uw(r)}}}case"escaped":{const l=await ir(t,{...a,altBoundary:!0}),r=Yw(l,n.floating);return{data:{escapedOffsets:r,escaped:Uw(r)}}}default:return{}}}}};function Gw(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 z5(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(Gw(a)))}const H5=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=z5(d),v=es(Gw(d)),m=Qp(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)||v;if(f.length>=2){if(ma(n)==="y"){const O=f[0],P=f[f.length-1],M=No(n)==="top",L=O.top,H=P.bottom,K=M?O.left:P.left,Y=M?O.right:P.right,I=Y-K,T=H-L;return{top:L,bottom:H,left:K,right:Y,width:I,height:T,x:K,y:L}}const g=No(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,R=_-E,N=S-y;return{top:y,bottom:S,left:E,right:_,width:R,height:N,x:E,y}}return v}const h=await l.getElementRects({reference:{getBoundingClientRect:p},floating:o.floating,strategy:r});return a.reference.x!==h.reference.x||a.reference.y!==h.reference.y||a.reference.width!==h.reference.width||a.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},qw=new Set(["left","top"]);async function W5(e,t){const{placement:n,platform:o,elements:a}=e,l=await(o.isRTL==null?void 0:o.isRTL(a.floating)),r=No(n),i=ha(n),u=ma(n)==="y",c=qw.has(r)?-1:1,d=l&&u?-1:1,f=va(t,e);let{mainAxis:v,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:v*c}:{x:v*c,y:m*d}}const K5=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 W5(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(No(a)),v=Xp(f);let m=c[v],p=c[f];if(l){const g=v==="y"?"top":"left",b=v==="y"?"bottom":"right",C=m+d[g],w=m-d[b];m=qp(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=qp(C,p,w)}const h=i.fn({...t,[v]:m,[f]:p});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[v]:l,[f]:r}}}}}},Y5=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),v=Xp(f);let m=d[v],p=d[f];const h=va(i,t),g=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){const w=v==="y"?"height":"width",y=l.reference[v]-l.floating[w]+g.mainAxis,S=l.reference[v]+l.reference[w]-g.mainAxis;m<y?m=y:m>S&&(m=S)}if(c){var b,C;const w=v==="y"?"width":"height",y=qw.has(No(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{[v]:m,[f]:p}}}},U5=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=No(a),v=ha(a),m=ma(a)==="y",{width:p,height:h}=l.floating;let g,b;f==="top"||f==="bottom"?(g=f,b=v===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(b=f,g=v==="end"?"top":"bottom");const C=h-d.top-d.bottom,w=p-d.left-d.right,y=pa(h-d[g],C),S=pa(p-d[b],w),E=!t.middlewareData.shift;let _=y,R=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=w),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(_=C),E&&!v){const O=lo(d.left,0),P=lo(d.right,0),M=lo(d.top,0),L=lo(d.bottom,0);m?R=p-2*(O!==0||P!==0?O+P:lo(d.left,d.right)):_=h-2*(M!==0||L!==0?M+L:lo(d.top,d.bottom))}await u({...t,availableWidth:R,availableHeight:_});const N=await r.getDimensions(i.floating);return p!==N.width||h!==N.height?{reset:{rects:!0}}:{}}}};function mc(){return typeof window!="undefined"}function ts(e){return Xw(e)?(e.nodeName||"").toLowerCase():"#document"}function Po(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fa(e){var t;return(t=(Xw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xw(e){return mc()?e instanceof Node||e instanceof Po(e).Node:!1}function ga(e){return mc()?e instanceof Element||e instanceof Po(e).Element:!1}function Va(e){return mc()?e instanceof HTMLElement||e instanceof Po(e).HTMLElement:!1}function Zw(e){return!mc()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof Po(e).ShadowRoot}const G5=new Set(["inline","contents"]);function yi(e){const{overflow:t,overflowX:n,overflowY:o,display:a}=ba(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!G5.has(a)}const q5=new Set(["table","td","th"]);function X5(e){return q5.has(ts(e))}const Z5=[":popover-open",":modal"];function gc(e){return Z5.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const J5=["transform","translate","scale","rotate","perspective"],Q5=["transform","translate","scale","rotate","perspective","filter"],eH=["paint","layout","strict","content"];function ev(e){const t=tv(),n=ga(e)?ba(e):e;return J5.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)||Q5.some(o=>(n.willChange||"").includes(o))||eH.some(o=>(n.contain||"").includes(o))}function tH(e){let t=Ll(e);for(;Va(t)&&!ns(t);){if(ev(t))return t;if(gc(t))return null;t=Ll(t)}return null}function tv(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const nH=new Set(["html","body","#document"]);function ns(e){return nH.has(ts(e))}function ba(e){return Po(e).getComputedStyle(e)}function bc(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||Zw(e)&&e.host||Fa(e);return Zw(t)?t.host:t}function Jw(e){const t=Ll(e);return ns(t)?e.ownerDocument?e.ownerDocument.body:e.body:Va(t)&&yi(t)?t:Jw(t)}function wi(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=Jw(e),l=a===((o=e.ownerDocument)==null?void 0:o.body),r=Po(a);if(l){const i=nv(r);return t.concat(r,r.visualViewport||[],yi(a)?a:[],i&&n?wi(i):[])}return t.concat(a,wi(a,[],n))}function nv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qw(e){const t=ba(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const a=Va(e),l=a?e.offsetWidth:n,r=a?e.offsetHeight:o,i=fc(n)!==l||fc(o)!==r;return i&&(n=l,o=r),{width:n,height:o,$:i}}function ov(e){return ga(e)?e:e.contextElement}function os(e){const t=ov(e);if(!Va(t))return Ba(1);const n=t.getBoundingClientRect(),{width:o,height:a,$:l}=Qw(t);let r=(l?fc(n.width):n.width)/o,i=(l?fc(n.height):n.height)/a;return(!r||!Number.isFinite(r))&&(r=1),(!i||!Number.isFinite(i))&&(i=1),{x:r,y:i}}const oH=Ba(0);function eC(e){const t=Po(e);return!tv()||!t.visualViewport?oH:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function aH(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=ov(e);let r=Ba(1);t&&(o?ga(o)&&(r=os(o)):r=os(e));const i=aH(l,n,o)?eC(l):Ba(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 v=Po(l),m=o&&ga(o)?Po(o):o;let p=v,h=nv(p);for(;h&&o&&m!==p;){const g=os(h),b=h.getBoundingClientRect(),C=ba(h),w=b.left+(h.clientLeft+parseFloat(C.paddingLeft))*g.x,y=b.top+(h.clientTop+parseFloat(C.paddingTop))*g.y;u*=g.x,c*=g.y,d*=g.x,f*=g.y,u+=w,c+=y,p=Po(h),h=nv(p)}}return es({width:d,height:f,x:u,y:c})}function yc(e,t){const n=bc(e).scrollLeft;return t?t.left+n:ur(Fa(e)).left+n}function tC(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-yc(e,n),a=n.top+t.scrollTop;return{x:o,y:a}}function lH(e){let{elements:t,rect:n,offsetParent:o,strategy:a}=e;const l=a==="fixed",r=Fa(o),i=t?gc(t.floating):!1;if(o===r||i&&l)return n;let u={scrollLeft:0,scrollTop:0},c=Ba(1);const d=Ba(0),f=Va(o);if((f||!f&&!l)&&((ts(o)!=="body"||yi(r))&&(u=bc(o)),Va(o))){const m=ur(o);c=os(o),d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}const v=r&&!f&&!l?tC(r,u):Ba(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+v.x,y:n.y*c.y-u.scrollTop*c.y+d.y+v.y}}function rH(e){return Array.from(e.getClientRects())}function sH(e){const t=Fa(e),n=bc(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+yc(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 nC=25;function iH(e,t){const n=Po(e),o=Fa(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=tv();(!d||d&&t==="fixed")&&(i=a.offsetLeft,u=a.offsetTop)}const c=yc(o);if(c<=0){const d=o.ownerDocument,f=d.body,v=getComputedStyle(f),m=d.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,p=Math.abs(o.clientWidth-f.clientWidth-m);p<=nC&&(l-=p)}else c<=nC&&(l+=c);return{width:l,height:r,x:i,y:u}}const uH=new Set(["absolute","fixed"]);function cH(e,t){const n=ur(e,!0,t==="fixed"),o=n.top+e.clientTop,a=n.left+e.clientLeft,l=Va(e)?os(e):Ba(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 oC(e,t,n){let o;if(t==="viewport")o=iH(e,n);else if(t==="document")o=sH(Fa(e));else if(ga(t))o=cH(t,n);else{const a=eC(e);o={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return es(o)}function aC(e,t){const n=Ll(e);return n===t||!ga(n)||ns(n)?!1:ba(n).position==="fixed"||aC(n,t)}function dH(e,t){const n=t.get(e);if(n)return n;let o=wi(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=ev(r);!u&&i.position==="fixed"&&(a=null),(l?!u&&!a:!u&&i.position==="static"&&!!a&&uH.has(a.position)||yi(r)&&!u&&aC(e,r))?o=o.filter(d=>d!==r):a=i,r=Ll(r)}return t.set(e,o),o}function fH(e){let{element:t,boundary:n,rootBoundary:o,strategy:a}=e;const r=[...n==="clippingAncestors"?gc(t)?[]:dH(t,this._c):[].concat(n),o],i=r[0],u=r.reduce((c,d)=>{const f=oC(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},oC(t,i,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function pH(e){const{width:t,height:n}=Qw(e);return{width:t,height:n}}function vH(e,t,n){const o=Va(t),a=Fa(t),l=n==="fixed",r=ur(e,!0,l,t);let i={scrollLeft:0,scrollTop:0};const u=Ba(0);function c(){u.x=yc(a)}if(o||!o&&!l)if((ts(t)!=="body"||yi(a))&&(i=bc(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?tC(a,i):Ba(0),f=r.left+i.scrollLeft-u.x-d.x,v=r.top+i.scrollTop-u.y-d.y;return{x:f,y:v,width:r.width,height:r.height}}function av(e){return ba(e).position==="static"}function lC(e,t){if(!Va(e)||ba(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Fa(e)===n&&(n=n.ownerDocument.body),n}function rC(e,t){const n=Po(e);if(gc(e))return n;if(!Va(e)){let a=Ll(e);for(;a&&!ns(a);){if(ga(a)&&!av(a))return a;a=Ll(a)}return n}let o=lC(e,t);for(;o&&X5(o)&&av(o);)o=lC(o,t);return o&&ns(o)&&av(o)&&!ev(o)?n:o||tH(e)||n}const hH=async function(e){const t=this.getOffsetParent||rC,n=this.getDimensions,o=await n(e.floating);return{reference:vH(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function mH(e){return ba(e).direction==="rtl"}const gH={convertOffsetParentRelativeRectToViewportRelativeRect:lH,getDocumentElement:Fa,getClippingRect:fH,getOffsetParent:rC,getElementRects:hH,getClientRects:rH,getDimensions:pH,getScale:os,isElement:ga,isRTL:mH};function sC(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function bH(e,t){let n=null,o;const a=Fa(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:v,height:m}=c;if(i||t(),!v||!m)return;const p=pc(f),h=pc(a.clientWidth-(d+v)),g=pc(a.clientHeight-(f+m)),b=pc(d),w={rootMargin:-p+"px "+-h+"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&&!sC(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 yH(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=ov(e),d=a||l?[...c?wi(c):[],...wi(t)]:[];d.forEach(b=>{a&&b.addEventListener("scroll",n,{passive:!0}),l&&b.addEventListener("resize",n)});const f=c&&i?bH(c,n):null;let v=-1,m=null;r&&(m=new ResizeObserver(b=>{let[C]=b;C&&C.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var w;(w=m)==null||w.observe(t)})),n()}),c&&!u&&m.observe(c),m.observe(t));let p,h=u?ur(e):null;u&&g();function g(){const b=ur(e);h&&!sC(h,b)&&n(),h=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 wH=ir,CH=K5,SH=j5,kH=F5,iC=L5,uC=(e,t,n)=>{const o=new Map,a={platform:gH,...n},l={...a.platform,_c:o};return A5(e,t,{...a,platform:l})},EH=he({}),$H=e=>{if(!Tt)return;if(!e)return e;const t=kn(e);return t||(Yn(e)?t:e)},_H=(e,t)=>{const n=e==null?void 0:e[t];return vn(n)?"":`${n}px`},TH=({middleware:e,placement:t,strategy:n})=>{const o=A(),a=A(),l=A(),r=A(),i=A({}),u={x:l,y:r,placement:t,strategy:n,middlewareData:i},c=async()=>{if(!Tt)return;const d=$H(o),f=kn(a);if(!d||!f)return;const v=await uC(d,f,{placement:s(t),strategy:s(n),middleware:s(e)});Kr(u).forEach(m=>{u[m].value=v[m]})};return ut(()=>{io(()=>{c()})}),{...u,update:c,referenceRef:o,contentRef:a}},OH=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const o=s(e);return o?iC({element:o,padding:t}).fn(n):{}}});function cC(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 RH=(e,t,n)=>ca(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),Ci=(e,t)=>{const n=Zt({}),o=Zt([]),a=new WeakMap,l=d=>{n.value[d.uid]=d,cu(n),ut(()=>{const f=d.getVnode().el,v=f.parentNode;if(!a.has(v)){a.set(v,[]);const m=v.insertBefore.bind(v);v.insertBefore=(p,h)=>(a.get(v).some(b=>p===b||h===b)&&cu(n),m(p,h))}a.get(v).push(f)})},r=d=>{delete n.value[d.uid],cu(n);const f=d.getVnode().el,v=f.parentNode,m=a.get(v),p=m.indexOf(f);m.splice(p,1)},i=()=>{o.value=RH(e,t,n.value)},u=d=>d.render(),c=re({setup(d,{slots:f}){return()=>(i(),f.default?Le(u,{render:f.default}):null)}});return{children:o,addChild:l,removeChild:r,ChildrenSorter:c}},Tn=ua({type:String,values:na,required:!1}),xH={size:Tn},lv=Symbol("size"),rv=()=>{const e=_e(lv,{});return k(()=>s(e.size)||"")};function za(e,{disabled:t,beforeFocus:n,afterFocus:o,beforeBlur:a,afterBlur:l}={}){const r=ct(),{emit:i}=r,u=Zt(),c=A(!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 h=lt(a)?a(m):!1;s(t)||m.relatedTarget&&((p=u.value)==null?void 0:p.contains(m.relatedTarget))||h||(c.value=!1,i("blur",m),l==null||l())},v=m=>{var p,h;s(t)||Ns(m.target)||((p=u.value)==null?void 0:p.contains(document.activeElement))&&u.value!==document.activeElement||(h=e.value)==null||h.focus()};return ue([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",v,!0),{isFocused:c,wrapperRef:u,handleFocus:d,handleBlur:f}}function as({afterComposition:e,emit:t}){const n=A(!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=!nz(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 sv=Symbol("emptyValuesContextKey"),IH="use-empty-values",dC=["",void 0,null],fC=void 0,Dl=he({emptyValues:Array,valueOnClear:{type:q([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=lt(e)?e():e,Ee(e)?e.every(t=>!t):!e)}}),ls=(e,t)=>{const n=ct()?_e(sv,A({})):A({}),o=k(()=>e.emptyValues||n.value.emptyValues||dC),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:fC),l=r=>{let i=!0;return Ee(r)?i=o.value.some(u=>sn(r,u)):i=o.value.includes(r),i};return l(a.value),{emptyValues:o,valueOnClear:a,isEmptyValue:l}},pC=he({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Gn=e=>xa(pC,e),iv=Symbol(),wc=A();function cr(e,t=void 0){const n=ct()?_e(iv,wc):wc;return e?k(()=>{var o,a;return(a=(o=n.value)==null?void 0:o[e])!=null?a:t}):n}function Si(e,t){const n=cr(),o=de(e,k(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||jr})),a=yt(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)||Yp})),r=k(()=>{var i;return s(t)||((i=n.value)==null?void 0:i.size)||""});return Cc(k(()=>s(n)||{})),{ns:o,locale:a,zIndex:l,size:r}}const Cc=(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?MH(l.value,u):u});return r(iv,i),r(xp,k(()=>i.value.locale)),r(Ip,k(()=>i.value.namespace)),r(Gp,k(()=>i.value.zIndex)),r(lv,{size:k(()=>i.value.size||"")}),r(sv,k(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(n||!wc.value)&&(wc.value=i.value),i},MH=(e,t)=>{const n=[...new Set([...Kr(e),...Kr(t)])],o={};for(const a of n)o[a]=t[a]!==void 0?t[a]:e[a];return o},vC=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"},NH=re({name:"ElConfigProvider",props:vC,setup(e,{slots:t}){const n=Cc(e);return ue(()=>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})}}),hC=Qe(NH),PH="0.0.20260103",mC=(e=[])=>({version:PH,install:(n,o)=>{n[Wd]||(n[Wd]=!0,e.forEach(a=>n.use(a)),o&&Cc(o,n,!0))}}),ki=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 AH=re({__name:"teleport",props:ki,setup(e){return(t,n)=>t.disabled?ee(t.$slots,"default",{key:0}):($(),ne(Rg,{key:1,to:t.to},[ee(t.$slots,"default")],8,["to"]))}});var LH=ye(AH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/teleport/src/teleport.vue"]]);const DH=Qe(LH);var rs=DH;const gC=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:ki.to.type,default:"body"}}),bC={scroll:({scrollTop:e,fixed:t})=>Re(e)&&Vt(t),[ht]:e=>Vt(e)},yC="ElAffix",BH=re({name:yC,__name:"affix",props:gC,emits:bC,setup(e,{expose:t,emit:n}){const o=e,a=n,l=de("affix"),r=Zt(),i=Zt(),u=Zt(),{height:c}=qd(),{height:d,width:f,top:v,bottom:m,left:p,update:h}=Ug(i,{windowScroll:!1}),g=Ug(r),b=A(!1),C=A(0),w=A(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=un(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:P,offset:M}=o,L=M+d.value;if(O==="top")if(P){const H=g.bottom.value-L;b.value=M>v.value&&g.bottom.value>0,w.value=H<0?H:0}else b.value=M>v.value;else if(P){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},R=async()=>{if(!b.value){h();return}b.value=!1,await ke(),h(),b.value=!0},N=async()=>{h(),await ke(),a("scroll",{scrollTop:C.value,fixed:b.value})};return ue(b,O=>a(ht,O)),ut(()=>{var O;o.target?(r.value=(O=document.querySelector(o.target))!=null?O:void 0,r.value||_n(yC,`Target does not exist: ${o.target}`)):r.value=document.documentElement,u.value=Sp(i.value,!0),h()}),Mt(u,"scroll",N),io(_),t({update:_,updateRoot:R}),(O,P)=>($(),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 FH=ye(BH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const wC=Qe(FH),CC=he({size:{type:q([Number,String])},color:{type:String}}),VH=re({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:CC,setup(e){const t=e,n=de("icon"),o=k(()=>{const{size:a,color:l}=t,r=un(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 zH=ye(VH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const $e=Qe(zH),SC=["light","dark"],kC=he({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Kr(Pl),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:SC,default:"light"},showAfter:Number,hideAfter:Number,autoClose:Number}),EC={close:e=>e instanceof MouseEvent},HH=re({name:"ElAlert",__name:"alert",props:kC,emits:EC,setup(e,{emit:t}){const{Close:n}=_p,o=e,a=t,l=mn(),r=de("alert"),i=A(!0),u=k(()=>Pl[o.type]),c=k(()=>!!(o.description||l.default)),d=f=>{i.value=!1,a("close",f)};return o.showAfter||o.hideAfter||o.autoClose,(f,v)=>($(),ne(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)?($(),ne(s($e),{key:0,class:x([s(r).e("icon"),s(r).is("big",c.value)])},{default:Q(()=>[ee(f.$slots,"icon",{},()=>[($(),ne(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",{},()=>[Ct(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",{},()=>[Ct(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)):($(),ne(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 WH=ye(HH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const $C=Qe(WH),Bl=Symbol("formContextKey"),ya=Symbol("formItemContextKey"),wn=(e,t={})=>{const n=A(void 0),o=t.prop?n:Np("size"),a=t.global?n:rv(),l=t.form?{size:void 0}:_e(Bl,void 0),r=t.formItem?{size:void 0}:_e(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=Np("disabled"),n=_e(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})},KH=wn,jH=on,An=()=>{const e=_e(Bl,void 0),t=_e(ya,void 0);return{form:e,formItem:t}},Eo=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=A(!1)),o||(o=A(!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=A();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=ue([Ft(e,"id"),n],([c,d])=>{const f=c!=null?c:d?void 0:Fn().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}},_C=he({size:{type:String,values:na},disabled:Boolean}),TC=he({..._C,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}}),OC={validate:(e,t,n)=>(Ee(e)||He(e))&&Vt(t)&&He(n)};function YH(){const e=A([]),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 Sc=(e,t)=>{const n=Pn(t).map(o=>Ee(o)?o.join("."):o);return n.length>0?e.filter(o=>o.propString&&n.includes(o.propString)):e},UH="ElForm",GH=re({name:UH,__name:"form",props:TC,emits:OC,setup(e,{expose:t,emit:n}){const o=e,a=n,l=A(),r=Lt([]),i=wn(),u=de("form"),c=k(()=>{const{labelPosition:S,inline:E}=o;return[u.b(),u.m(i.value||"default"),{[u.m(`label-${S}`)]:S,[u.m("inline")]:E}]}),d=S=>Sc(r,[S])[0],f=S=>{r.push(S)},v=S=>{S.prop&&r.splice(r.indexOf(S),1)},m=(S=[])=>{!o.model||Sc(r,S).forEach(E=>E.resetField())},p=(S=[])=>{Sc(r,S).forEach(E=>E.clearValidate())},h=k(()=>!!o.model),g=S=>{if(r.length===0)return[];const E=Sc(r,S);return E.length?E:[]},b=async S=>w(void 0,S),C=async(S=[])=>{if(!h.value)return!1;const E=g(S);if(E.length===0)return!0;let _={};for(const R of E)try{await R.validate(""),R.validateState==="error"&&!R.error&&R.resetField()}catch(N){_={..._,...N}}return Object.keys(_).length===0?!0:Promise.reject(_)},w=async(S=[],E)=>{let _=!1;const R=!lt(E);try{return _=await C(S),_===!0&&await(E==null?void 0:E(_)),_}catch(N){if(N instanceof Error)throw N;const O=N;if(o.scrollToError&&l.value){const P=l.value.querySelector(`.${u.b()}-item.is-error`);P==null||P.scrollIntoView(o.scrollIntoViewOptions)}return!_&&await(E==null?void 0:E(!1,O)),R&&Promise.reject(O)}},y=S=>{var E;const _=d(S);_&&((E=_.$el)==null||E.scrollIntoView(o.scrollIntoViewOptions))};return ue(()=>o.rules,()=>{o.validateOnRuleChange&&b().catch(S=>void 0)},{deep:!0,flush:"post"}),St(Bl,Lt({...Mn(o),emit:a,resetFields:m,clearValidate:p,validateField:w,getField:d,addField:f,removeField:v,...YH()})),t({validate:b,validateField:w,resetFields:m,clearValidate:p,scrollToField:y,getField:d,fields:r}),(S,E)=>($(),F("form",{ref_key:"formRef",ref:l,class:x(c.value)},[ee(S.$slots,"default")],2))}});var qH=ye(GH,[["__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 XH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ei(e,t)}function uv(e){return uv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},uv(e)}function Ei(e,t){return Ei=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,a){return o.__proto__=a,o},Ei(e,t)}function ZH(){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 kc(e,t,n){return ZH()?kc=Reflect.construct.bind():kc=function(a,l,r){var i=[null];i.push.apply(i,l);var u=Function.bind.apply(a,i),c=new u;return r&&Ei(c,r.prototype),c},kc.apply(null,arguments)}function JH(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function cv(e){var t=typeof Map=="function"?new Map:void 0;return cv=function(o){if(o===null||!JH(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 kc(o,arguments,uv(this).constructor)}return a.prototype=Object.create(o.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Ei(a,o)},cv(e)}var QH=/%[sdj%]/g,eW=function(){};typeof process!="undefined"&&process.env;function dv(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 Ao(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(QH,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 tW(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Vn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||tW(t)&&typeof e=="string"&&!e)}function nW(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 RC(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 oW(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var xC=function(e){XH(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}(cv(Error));function aW(e,t,n,o,a){if(t.first){var l=new Promise(function(v,m){var p=function(b){return o(b),b.length?m(new xC(b,dv(b))):v(a)},h=oW(e);RC(h,n,p)});return l.catch(function(v){return v}),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(v,m){var p=function(g){if(d.push.apply(d,g),c++,c===u)return o(d),d.length?m(new xC(d,dv(d))):v(a)};i.length||(o(d),v(a)),i.forEach(function(h){var g=e[h];r.indexOf(h)!==-1?RC(g,n,p):nW(g,n,p)})});return f.catch(function(v){return v}),f}function lW(e){return!!(e&&e.message!==void 0)}function rW(e,t){for(var n=e,o=0;o<t.length;o++){if(n==null)return n;n=n[t[o]]}return n}function IC(e,t){return function(n){var o;return e.fullFields?o=rW(t,e.fullFields):o=t[n.field||e.fullField],lW(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 MC(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 NC=function(t,n,o,a,l,r){t.required&&(!o.hasOwnProperty(t.field)||Vn(n,r||t.type))&&a.push(Ao(l.messages.required,t.fullField))},sW=function(t,n,o,a,l){(/^\s+$/.test(n)||n==="")&&a.push(Ao(l.messages.whitespace,t.fullField))},Ec,iW=function(){if(Ec)return Ec;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,Vt=e=>typeof e=="boolean",Re=e=>typeof e=="number",vo=e=>!e&&e!==0||Ee(e)&&e.length===0||Rt(e)&&!Object.keys(e).length,wo=e=>typeof Element=="undefined"?!1:e instanceof Element,Co=e=>vn(e),LF=e=>He(e)?!Number.isNaN(Number(e)):!1,li=e=>e===window,Ma=e=>Tt?window.requestAnimationFrame(e):setTimeout(e,16),rl=e=>Tt?window.cancelAnimationFrame(e):clearTimeout(e),Cp=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Il=e=>_R(e),Kr=e=>Object.keys(e),R1=e=>Object.entries(e),ri=(e,t,n)=>({get value(){return gn(e,t,n)},set value(o){d1(e,t,o)}});class DF extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function _n(e,t){throw new DF(`[${e}] ${t}`)}function sae(e,t){}const x1=(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)},jo=(e,t)=>{!e||!t.trim()||e.classList.add(...x1(t))},no=(e,t)=>{!e||!t.trim()||e.classList.remove(...x1(t))},sl=(e,t)=>{var n;if(!Tt||!e||!t)return"";let o=ef(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]}},I1=(e,t,n)=>{if(!(!e||!t))if(Rt(t))R1(t).forEach(([o,a])=>I1(e,o,a));else{const o=ef(t);e.style[o]=n}};function un(e,t="px"){if(!e&&e!==0)return"";if(Re(e)||LF(e))return`${e}${t}`;if(He(e))return e}const BF=(e,t)=>{if(!Tt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],o=sl(e,n);return["scroll","auto","overlay"].some(a=>o.includes(a))},Sp=(e,t)=>{if(!Tt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(BF(n,t))return n;n=n.parentNode}return n};let Ju;const M1=e=>{var t;if(!Tt)return 0;if(Ju!==void 0)return Ju;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),Ju=o-l,Ju};function kp(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 FF(e,t,n,o,a){const l=Date.now();let r;const i=()=>{const c=Date.now()-l,d=wR(c>o?o:c,t,n,o);li(e)?e.scrollTo(window.pageXOffset,d):e.scrollTop=d,c<o?r=Ma(i):lt(a)&&a()};return i(),()=>{r&&rl(r)}}const N1=(e,t)=>li(t)?e.ownerDocument.documentElement:t,P1=e=>li(e)?window.scrollY:e.scrollTop,Qu=e=>{if(!Tt||e==="")return null;if(He(e))try{return document.querySelector(e)}catch(t){return null}return e};let A1=Tt?document.body:void 0;function VF(e){const t=document.createElement("div");return e!==void 0&&t.setAttribute("id",e),A1&&A1.appendChild(t),t}function zF(e){e.remove()}var HF=re({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"})]))}}),Pa=HF,WF=re({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"})]))}}),il=WF,KF=re({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=KF,jF=re({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"})]))}}),ec=jF,YF=re({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"})]))}}),UF=YF,GF=re({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"})]))}}),qF=GF,XF=re({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"})]))}}),L1=XF,ZF=re({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"})]))}}),JF=ZF,QF=re({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"})]))}}),si=QF,eV=re({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"})]))}}),tV=eV,nV=re({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"})]))}}),Ep=nV,oV=re({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=oV,aV=re({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"})]))}}),ul=aV,lV=re({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"})]))}}),D1=lV,rV=re({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"})]))}}),Yo=rV,sV=re({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=sV,iV=re({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=iV,uV=re({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"})]))}}),cV=uV,dV=re({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"})]))}}),fV=dV,pV=re({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"})]))}}),vV=pV,hV=re({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"})]))}}),mV=hV,gV=re({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"})]))}}),ii=gV,bV=re({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"})]))}}),Aa=bV,yV=re({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"})]))}}),wV=yV,CV=re({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"})]))}}),B1=CV,SV=re({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"})]))}}),kV=SV,EV=re({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"})]))}}),$V=EV,_V=re({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"})]))}}),F1=_V,TV=re({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"})]))}}),OV=TV,RV=re({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"})]))}}),xV=RV,IV=re({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"})]))}}),MV=IV,NV=re({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"})]))}}),PV=NV,AV=re({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"})]))}}),LV=AV,DV=re({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"})]))}}),BV=DV,FV=re({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"})]))}}),VV=FV,zV=re({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"})]))}}),tc=zV,HV=re({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"})]))}}),WV=HV,KV=re({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"})]))}}),V1=KV,jV=re({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"})]))}}),YV=jV,UV=re({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"})]))}}),nc=UV,GV=re({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"})]))}}),z1=GV,qV=re({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"})]))}}),XV=qV;/*! Element Plus Icons Vue v2.3.2 */const H1="__epPropKey",q=e=>e,ZV=e=>Rt(e)&&!!e[H1],ua=(e,t)=>{if(!Rt(e)||ZV(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),Dn(e,"default")&&f.push(a),d||(d=f.includes(c))),r&&(d||(d=r(c))),!d&&f.length>0){const v=[...new Set(f)].map(m=>JSON.stringify(m)).join(", ");jO(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${v}], got value ${JSON.stringify(c)}.`)}return d}:void 0,[H1]:!0};return Dn(e,"default")&&(u.default=a),u},he=e=>Fr(Object.entries(e).map(([t,n])=>[t,ua(n,t)])),zt=q([String,Object,Function]),W1={Close:Yo},_p={Close:Yo,SuccessFilled:V1,InfoFilled:ii,WarningFilled:nc,CircleCloseFilled:$p},Pl={primary:ii,success:V1,warning:nc,error:$p,info:ii},oc={validating:Aa,success:Ep,error:ul},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},K1=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),JV=(e,t)=>(e.install=n=>{n.directive(t,e)},e),cn=e=>(e.install=Gt,e),Tp=(...e)=>t=>{e.forEach(n=>{n.value=t})},j1=e=>["",...na].includes(e);var Uo=(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))(Uo||{});function Op(e){return Jt(e)&&e.type===Be}function QV(e){return Jt(e)&&e.type===Ua}function ez(e){return Jt(e)&&!Op(e)&&!QV(e)}const tz=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=>{Dn(n[a],"default")&&(o[a]=n[a].default)}),Object.keys(t).forEach(a=>{o[ef(a)]=t[a]}),o},ca=e=>{const t=Ee(e)?e:[e],n=[];return t.forEach(o=>{var a;Ee(o)?n.push(...ca(o)):Jt(o)&&((a=o.component)==null?void 0:a.subTree)?n.push(o,...ca(o.component.subTree)):Jt(o)&&Ee(o.children)?n.push(...ca(o.children)):Jt(o)&&o.shapeFlag===2?n.push(...ca(o.type())):n.push(o)}),n},Y1=e=>[...new Set(e)],ui=e=>Ee(e)?e[0]:e,ao=e=>!e&&e!==0?[]:Ee(e)?e:[e],nz=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),dn=e=>e;function oz(e){let t=0;const n=(...o)=>{t&&rl(t),t=Ma(()=>{e(...o),t=0})};return n.cancel=()=>{rl(t),t=0},n}const az=["class","style"],lz=/^on[A-Z]/,ci=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=k(()=>((n==null?void 0:n.value)||[]).concat(az)),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&&lz.test(r))))}):k(()=>({}))};function ac(){const e=Zt(),t=A(0),n=k(()=>({minWidth:`${Math.max(t.value,As)}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)=>{ue(()=>s(r),i=>{},{immediate:!0})},Rp=(e,t,n,o)=>{const a={offsetX:0,offsetY:0},l=A(!1),r=(v,m)=>{if(e.value){const{offsetX:p,offsetY:h}=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,R=-C+h,N=S-b-w+p,O=E-C-(y<E?y:0)+h;o!=null&&o.value||(v=Math.min(Math.max(v,_),N),m=Math.min(Math.max(m,R),O)),a.offsetX=v,a.offsetY=m,e.value.style.transform=`translate(${un(v)}, ${un(m)})`}},i=v=>{const m=v.clientX,p=v.clientY,{offsetX:h,offsetY:g}=a,b=w=>{l.value||(l.value=!0);const y=h+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:v,offsetY:m}=a;r(v,m)};return ut(()=>{io(()=>{n.value?u():c()})}),Dt(()=>{c()}),{isDragging:l,resetPosition:d,updatePosition:f}},rz=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}});var sz={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 U1=e=>(t,n)=>G1(t,n,s(e)),G1=(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}}`}`}),q1=e=>{const t=k(()=>s(e).name),n=Yn(e)?e:A(e);return{lang:t,locale:n,t:U1(e)}},xp=Symbol("localeContextKey"),yt=e=>{const t=e||_e(xp,A());return q1(k(()=>t.value||sz))},jr="el",iz="is-",rr=(e,t,n,o,a)=>{let l=`${e}-${t}`;return n&&(l+=`-${n}`),o&&(l+=`__${o}`),a&&(l+=`--${a}`),l},Ip=Symbol("namespaceContextKey"),lc=e=>{const t=e||(ct()?_e(Ip,A(jr)):A(jr));return k(()=>s(t)||jr)},de=(e,t)=>{const n=lc(t);return{namespace:n,b:(h="")=>rr(n.value,e,h,"",""),e:h=>h?rr(n.value,e,"",h,""):"",m:h=>h?rr(n.value,e,"","",h):"",be:(h,g)=>h&&g?rr(n.value,e,h,g,""):"",em:(h,g)=>h&&g?rr(n.value,e,"",h,g):"",bm:(h,g)=>h&&g?rr(n.value,e,h,"",g):"",bem:(h,g,b)=>h&&g&&b?rr(n.value,e,h,g,b):"",is:(h,...g)=>{const b=g.length>=1?g[0]:!0;return h&&b?`${iz}${h}`:""},cssVar:h=>{const g={};for(const b in h)h[b]&&(g[`--${n.value}-${b}`]=h[b]);return g},cssVarName:h=>`--${n.value}-${h}`,cssVarBlock:h=>{const g={};for(const b in h)h[b]&&(g[`--${n.value}-${e}-${b}`]=h[b]);return g},cssVarBlockName:h=>`--${n.value}-${e}-${h}`}},di=(e,t={})=>{Yn(e)||_n("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||de("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))};ue(e,c=>{if(!c){u();return}i=!1,l=!Na(document.body,o.value),l&&(r=document.body.style.width,jo(document.body,o.value)),a=M1(n.namespace.value);const d=document.documentElement.clientHeight<document.body.scrollHeight,f=sl(document.body,"overflowY");a>0&&(d||f==="scroll")&&l&&(document.body.style.width=`calc(100% - ${a}px)`)}),Og(()=>u())},Yr=[],uz=e=>{if(Yr.length===0)return;Ht(e)===fe.esc&&(e.stopPropagation(),Yr[Yr.length-1].handleClose())},cz=(e,t)=>{ue(t,n=>{n?Yr.push(e):Yr.splice(Yr.indexOf(e),1)})};Tt&&Mt(document,"keydown",uz);const dz=ua({type:q(Boolean),default:null}),fz=ua({type:q(Function)}),Mp=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],a={[e]:dz,[n]:fz};return{useModelToggle:({indicator:r,toggleReason:i,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:d,onHide:f})=>{const v=ct(),{emit:m}=v,p=v.props,h=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 R=h.value&&Tt;R&&m(t,!0),(g.value||!R)&&b(_)},y=_=>{if(p.disabled===!0||!Tt)return;const R=h.value&&Tt;R&&m(t,!1),(g.value||!R)&&C(_)},S=_=>{!Vt(_)||(p.disabled&&_?h.value&&m(t,!1):r.value!==_&&(_?b():C()))},E=()=>{r.value?y():w()};return ue(()=>p[e],S),u&&v.appContext.config.globalProperties.$route!==void 0&&ue(()=>({...v.proxy.$route}),()=>{u.value&&r.value&&y()}),ut(()=>{S(p[e])}),{hide:y,show:w,toggle:E,hasUpdateHandler:h}},useModelToggleProps:a,useModelToggleEmits:o}},{useModelToggle:pz,useModelToggleProps:vz,useModelToggleEmits:hz}=Mp("modelValue"),mz=(e,t,n)=>{const o=l=>{n(l)&&l.stopImmediatePropagation()};let a;ue(()=>e.value,l=>{l?a=Mt(document,t,o,!0):a==null||a()},{immediate:!0})},Np=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",Go="bottom",qo="right",ko="left",Pp="auto",fi=[So,Go,qo,ko],Ur="start",pi="end",gz="clippingParents",X1="viewport",vi="popper",bz="reference",Z1=fi.reduce(function(e,t){return e.concat([t+"-"+Ur,t+"-"+pi])},[]),cl=[].concat(fi,[Pp]).reduce(function(e,t){return e.concat([t,t+"-"+Ur,t+"-"+pi])},[]),yz="beforeRead",wz="read",Cz="afterRead",Sz="beforeMain",kz="main",Ez="afterMain",$z="beforeWrite",_z="write",Tz="afterWrite",Oz=[yz,wz,Cz,Sz,kz,Ez,$z,_z,Tz];function La(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 Xo(e){var t=fa(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ap(e){if(typeof ShadowRoot=="undefined")return!1;var t=fa(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Rz(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];!Xo(l)||!La(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 xz(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},{});!Xo(a)||!La(a)||(Object.assign(a.style,i),Object.keys(l).forEach(function(u){a.removeAttribute(u)}))})}}var J1={name:"applyStyles",enabled:!0,phase:"write",fn:Rz,effect:xz,requires:["computeStyles"]};function Da(e){return e.split("-")[0]}var sr=Math.max,rc=Math.min,qr=Math.round;function Xr(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,a=1;if(Xo(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 Lp(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 Q1(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ap(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 Iz(e){return["table","td","th"].indexOf(La(e))>=0}function Al(e){return((Gr(e)?e.ownerDocument:e.document)||window.document).documentElement}function sc(e){return La(e)==="html"?e:e.assignedSlot||e.parentNode||(Ap(e)?e.host:null)||Al(e)}function ew(e){return!Xo(e)||dl(e).position==="fixed"?null:e.offsetParent}function Mz(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Xo(e)){var o=dl(e);if(o.position==="fixed")return null}var a=sc(e);for(Ap(a)&&(a=a.host);Xo(a)&&["html","body"].indexOf(La(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 hi(e){for(var t=fa(e),n=ew(e);n&&Iz(n)&&dl(n).position==="static";)n=ew(n);return n&&(La(n)==="html"||La(n)==="body"&&dl(n).position==="static")?t:n||Mz(e)||t}function Dp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function mi(e,t,n){return sr(e,rc(t,n))}function Nz(e,t,n){var o=mi(e,t,n);return o>n?n:o}function tw(){return{top:0,right:0,bottom:0,left:0}}function nw(e){return Object.assign({},tw(),e)}function ow(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var Pz=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,nw(typeof e!="number"?e:ow(e,fi))};function Az(e){var t,n=e.state,o=e.name,a=e.options,l=n.elements.arrow,r=n.modifiersData.popperOffsets,i=Da(n.placement),u=Dp(i),c=[ko,qo].indexOf(i)>=0,d=c?"height":"width";if(!(!l||!r)){var f=Pz(a.padding,n),v=Lp(l),m=u==="y"?So:ko,p=u==="y"?Go:qo,h=n.rects.reference[d]+n.rects.reference[u]-r[u]-n.rects.popper[d],g=r[u]-n.rects.reference[u],b=hi(l),C=b?u==="y"?b.clientHeight||0:b.clientWidth||0:0,w=h/2-g/2,y=f[m],S=C-v[d]-f[p],E=C/2-v[d]/2+w,_=mi(y,E,S),R=u;n.modifiersData[o]=(t={},t[R]=_,t.centerOffset=_-E,t)}}function Lz(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)||!Q1(t.elements.popper,a)||(t.elements.arrow=a))}var Dz={name:"arrow",enabled:!0,phase:"main",fn:Az,effect:Lz,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zr(e){return e.split("-")[1]}var Bz={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fz(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 aw(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,v=r.x,m=v===void 0?0:v,p=r.y,h=p===void 0?0:p,g=typeof d=="function"?d({x:m,y:h}):{x:m,y:h};m=g.x,h=g.y;var b=r.hasOwnProperty("x"),C=r.hasOwnProperty("y"),w=ko,y=So,S=window;if(c){var E=hi(n),_="clientHeight",R="clientWidth";if(E===fa(n)&&(E=Al(n),dl(E).position!=="static"&&i==="absolute"&&(_="scrollHeight",R="scrollWidth")),E=E,a===So||(a===ko||a===qo)&&l===pi){y=Go;var N=f&&E===S&&S.visualViewport?S.visualViewport.height:E[_];h-=N-o.height,h*=u?1:-1}if(a===ko||(a===So||a===Go)&&l===pi){w=qo;var O=f&&E===S&&S.visualViewport?S.visualViewport.width:E[R];m-=O-o.width,m*=u?1:-1}}var P=Object.assign({position:i},c&&Bz),M=d===!0?Fz({x:m,y:h}):{x:m,y:h};if(m=M.x,h=M.y,u){var L;return Object.assign({},P,(L={},L[y]=C?"0":"",L[w]=b?"0":"",L.transform=(S.devicePixelRatio||1)<=1?"translate("+m+"px, "+h+"px)":"translate3d("+m+"px, "+h+"px, 0)",L))}return Object.assign({},P,(t={},t[y]=C?h+"px":"",t[w]=b?m+"px":"",t.transform="",t))}function Vz(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:Da(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,aw(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,aw(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 lw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Vz,data:{}},ic={passive:!0};function zz(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,ic)}),i&&u.addEventListener("resize",n.update,ic),function(){l&&c.forEach(function(d){d.removeEventListener("scroll",n.update,ic)}),i&&u.removeEventListener("resize",n.update,ic)}}var rw={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:zz,data:{}},Hz={left:"right",right:"left",bottom:"top",top:"bottom"};function uc(e){return e.replace(/left|right|bottom|top/g,function(t){return Hz[t]})}var Wz={start:"end",end:"start"};function sw(e){return e.replace(/start|end/g,function(t){return Wz[t]})}function Bp(e){var t=fa(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Fp(e){return Xr(Al(e)).left+Bp(e).scrollLeft}function Kz(e){var t=fa(e),n=Al(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+Fp(e),y:i}}function jz(e){var t,n=Al(e),o=Bp(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+Fp(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 Vp(e){var t=dl(e),n=t.overflow,o=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function iw(e){return["html","body","#document"].indexOf(La(e))>=0?e.ownerDocument.body:Xo(e)&&Vp(e)?e:iw(sc(e))}function gi(e,t){var n;t===void 0&&(t=[]);var o=iw(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),l=fa(o),r=a?[l].concat(l.visualViewport||[],Vp(o)?o:[]):o,i=t.concat(r);return a?i:i.concat(gi(sc(r)))}function zp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Yz(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 uw(e,t){return t===X1?zp(Kz(e)):Gr(t)?Yz(t):zp(jz(Al(e)))}function Uz(e){var t=gi(sc(e)),n=["absolute","fixed"].indexOf(dl(e).position)>=0,o=n&&Xo(e)?hi(e):e;return Gr(o)?t.filter(function(a){return Gr(a)&&Q1(a,o)&&La(a)!=="body"}):[]}function Gz(e,t,n){var o=t==="clippingParents"?Uz(e):[].concat(t),a=[].concat(o,[n]),l=a[0],r=a.reduce(function(i,u){var c=uw(e,u);return i.top=sr(c.top,i.top),i.right=rc(c.right,i.right),i.bottom=rc(c.bottom,i.bottom),i.left=sr(c.left,i.left),i},uw(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 cw(e){var t=e.reference,n=e.element,o=e.placement,a=o?Da(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 Go:u={x:r,y:t.y+t.height};break;case qo: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?Dp(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 pi:u[c]=u[c]+(t[d]/2-n[d]/2);break}}return u}function bi(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?gz:l,i=n.rootBoundary,u=i===void 0?X1:i,c=n.elementContext,d=c===void 0?vi:c,f=n.altBoundary,v=f===void 0?!1:f,m=n.padding,p=m===void 0?0:m,h=nw(typeof p!="number"?p:ow(p,fi)),g=d===vi?bz:vi,b=e.rects.popper,C=e.elements[v?g:d],w=Gz(Gr(C)?C:C.contextElement||Al(e.elements.popper),r,u),y=Xr(e.elements.reference),S=cw({reference:y,element:b,strategy:"absolute",placement:a}),E=zp(Object.assign({},b,S)),_=d===vi?E:y,R={top:w.top-_.top+h.top,bottom:_.bottom-w.bottom+h.bottom,left:w.left-_.left+h.left,right:_.right-w.right+h.right},N=e.modifiersData.offset;if(d===vi&&N){var O=N[a];Object.keys(R).forEach(function(P){var M=[qo,Go].indexOf(P)>=0?1:-1,L=[So,Go].indexOf(P)>=0?"y":"x";R[P]+=O[L]*M})}return R}function qz(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?cl:u,d=Zr(o),f=d?i?Z1:Z1.filter(function(p){return Zr(p)===d}):fi,v=f.filter(function(p){return c.indexOf(p)>=0});v.length===0&&(v=f);var m=v.reduce(function(p,h){return p[h]=bi(e,{placement:h,boundary:a,rootBoundary:l,padding:r})[Da(h)],p},{});return Object.keys(m).sort(function(p,h){return m[p]-m[h]})}function Xz(e){if(Da(e)===Pp)return[];var t=uc(e);return[sw(e),t,sw(t)]}function Zz(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,v=n.altBoundary,m=n.flipVariations,p=m===void 0?!0:m,h=n.allowedAutoPlacements,g=t.options.placement,b=Da(g),C=b===g,w=u||(C||!p?[uc(g)]:Xz(g)),y=[g].concat(w).reduce(function(G,X){return G.concat(Da(X)===Pp?qz(t,{placement:X,boundary:d,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:h}):X)},[]),S=t.rects.reference,E=t.rects.popper,_=new Map,R=!0,N=y[0],O=0;O<y.length;O++){var P=y[O],M=Da(P),L=Zr(P)===Ur,H=[So,Go].indexOf(M)>=0,K=H?"width":"height",Y=bi(t,{placement:P,boundary:d,rootBoundary:f,altBoundary:v,padding:c}),I=H?L?qo:ko:L?Go:So;S[K]>E[K]&&(I=uc(I));var T=uc(I),D=[];if(l&&D.push(Y[M]<=0),i&&D.push(Y[I]<=0,Y[T]<=0),D.every(function(G){return G})){N=P,R=!1;break}_.set(P,D)}if(R)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(ae){return ae})});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 Jz={name:"flip",enabled:!0,phase:"main",fn:Zz,requiresIfExists:["offset"],data:{_skip:!1}};function dw(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 fw(e){return[So,qo,Go,ko].some(function(t){return e[t]>=0})}function Qz(e){var t=e.state,n=e.name,o=t.rects.reference,a=t.rects.popper,l=t.modifiersData.preventOverflow,r=bi(t,{elementContext:"reference"}),i=bi(t,{altBoundary:!0}),u=dw(r,o),c=dw(i,a,l),d=fw(u),f=fw(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 e5={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Qz};function t5(e,t,n){var o=Da(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,qo].indexOf(o)>=0?{x:i,y:r}:{x:r,y:i}}function n5(e){var t=e.state,n=e.options,o=e.name,a=n.offset,l=a===void 0?[0,0]:a,r=cl.reduce(function(d,f){return d[f]=t5(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 o5={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:n5};function a5(e){var t=e.state,n=e.name;t.modifiersData[n]=cw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var pw={name:"popperOffsets",enabled:!0,phase:"read",fn:a5,data:{}};function l5(e){return e==="x"?"y":"x"}function r5(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,v=n.tether,m=v===void 0?!0:v,p=n.tetherOffset,h=p===void 0?0:p,g=bi(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),b=Da(t.placement),C=Zr(t.placement),w=!C,y=Dp(b),S=l5(y),E=t.modifiersData.popperOffsets,_=t.rects.reference,R=t.rects.popper,N=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,O=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),P=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"?Go:qo,Y=y==="y"?"height":"width",I=E[y],T=I+g[H],D=I-g[K],B=m?-R[Y]/2:0,z=C===Ur?_[Y]:R[Y],U=C===Ur?-R[Y]:-_[Y],V=t.elements.arrow,G=m&&V?Lp(V):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:tw(),le=X[H],se=X[K],ae=mi(0,_[Y],G[Y]),ve=w?_[Y]/2-B-ae-le-O.mainAxis:z-ae-le-O.mainAxis,oe=w?-_[Y]/2+B+ae+se+O.mainAxis:U+ae+se+O.mainAxis,j=t.elements.arrow&&hi(t.elements.arrow),ie=j?y==="y"?j.clientTop||0:j.clientLeft||0:0,Se=(L=P==null?void 0:P[y])!=null?L:0,xe=I+ve-Se-ie,De=I+oe-Se,ze=mi(m?rc(T,xe):T,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"?Go:qo,Ue=E[S],Pe=S==="y"?"height":"width",Ae=Ue+g[nt],Ge=Ue-g[Et],ot=[So,ko].indexOf(b)!==-1,pt=(Ze=P==null?void 0:P[S])!=null?Ze:0,wt=ot?Ae:Ue-_[Pe]-R[Pe]-pt+O.altAxis,Ce=ot?Ue+_[Pe]+R[Pe]-pt-O.altAxis:Ge,Ve=m&&ot?Nz(wt,Ue,Ce):mi(m?wt:Ae,Ue,m?Ce:Ge);E[S]=Ve,M[S]=Ve-Ue}t.modifiersData[o]=M}}var s5={name:"preventOverflow",enabled:!0,phase:"main",fn:r5,requiresIfExists:["offset"]};function i5(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function u5(e){return e===fa(e)||!Xo(e)?Bp(e):i5(e)}function c5(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 d5(e,t,n){n===void 0&&(n=!1);var o=Xo(t),a=Xo(t)&&c5(t),l=Al(t),r=Xr(e,a),i={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&((La(t)!=="body"||Vp(l))&&(i=u5(t)),Xo(t)?(u=Xr(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=Fp(l))),{x:r.left+i.scrollLeft-u.x,y:r.top+i.scrollTop-u.y,width:r.width,height:r.height}}function f5(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 p5(e){var t=f5(e);return Oz.reduce(function(n,o){return n.concat(t.filter(function(a){return a.phase===o}))},[])}function v5(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function h5(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 vw={placement:"bottom",modifiers:[],strategy:"absolute"};function hw(){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 Hp(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,a=t.defaultOptions,l=a===void 0?vw:a;return function(r,i,u){u===void 0&&(u=l);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},vw,l),modifiersData:{},elements:{reference:r,popper:i},attributes:{},styles:{}},d=[],f=!1,v={state:c,setOptions:function(h){var g=typeof h=="function"?h(c.options):h;p(),c.options=Object.assign({},l,c.options,g),c.scrollParents={reference:Gr(r)?gi(r):r.contextElement?gi(r.contextElement):[],popper:gi(i)};var b=p5(h5([].concat(o,c.options.modifiers)));return c.orderedModifiers=b.filter(function(C){return C.enabled}),m(),v.update()},forceUpdate:function(){if(!f){var h=c.elements,g=h.reference,b=h.popper;if(hw(g,b)){c.rects={reference:d5(g,hi(b),c.options.strategy==="fixed"),popper:Lp(b)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(R){return c.modifiersData[R.name]=Object.assign({},R.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:v})||c)}}}},update:v5(function(){return new Promise(function(h){v.forceUpdate(),h(c)})}),destroy:function(){p(),f=!0}};if(!hw(r,i))return v;v.setOptions(u).then(function(h){!f&&u.onFirstUpdate&&u.onFirstUpdate(h)});function m(){c.orderedModifiers.forEach(function(h){var g=h.name,b=h.options,C=b===void 0?{}:b,w=h.effect;if(typeof w=="function"){var y=w({state:c,name:g,instance:v,options:C}),S=function(){};d.push(y||S)}})}function p(){d.forEach(function(h){return h()}),d=[]}return v}}Hp();var m5=[rw,pw,lw,J1];Hp({defaultModifiers:m5});var g5=[rw,pw,lw,J1,o5,Jz,s5,Dz,e5],b5=Hp({defaultModifiers:g5});const mw=(e,t,n={})=>{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const c=y5(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=A({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 ue(a,u=>{const c=s(l);c&&c.setOptions(u)},{deep:!0}),ue([e,t],([u,c])=>{i(),!(!u||!c)&&(l.value=b5(u,c,s(a)))}),Dt(()=>{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 y5(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 cc=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}}},w5=(e,t)=>{const n=A(!1);if(!Tt)return{isTeleportVisible:n,showTeleport:Gt,hideTeleport:Gt,renderTeleport:Gt};let o=null;const a=()=>{n.value=!0,o===null&&(o=VF())},l=()=>{n.value=!1,o!==null&&(zF(o),o=null)},r=()=>t.value!==!0?e():n.value?[Le(Rg,{to:o},e())]:void 0;return Ms(l),{isTeleportVisible:n,showTeleport:a,hideTeleport:l,renderTeleport:r}},gw=(e,t=0)=>{if(t===0)return e;const n=Rt(t)&&Boolean(t.initVal),o=A(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"?Re(t)?l(t):l(t.leading):Rt(t)?l(t.trailing):o.value=!1};return ut(()=>r("leading")),ue(()=>e.value,i=>{r(i?"leading":"trailing")}),o};function Wp(){let e;const t=(o,a)=>{n(),e=window.setTimeout(o,a)},n=()=>window.clearTimeout(e);return Zl(()=>n()),{registerTimeout:t,cancelTimeout:n}}const bw="after-appear",yw="after-enter",ww="after-leave",C5="appear",Cw="appear-cancelled",Sw="before-enter",kw="before-leave",Ew="enter",$w="enter-cancelled",_w="leave",Tw="leave-cancelled",S5=[bw,yw,ww,C5,Cw,Sw,kw,Ew,$w,_w,Tw],k5=()=>{const{emit:e}=ct();return{onAfterAppear:()=>{e(bw)},onAfterEnter:()=>{e(yw)},onAfterLeave:()=>{e(ww)},onAppearCancelled:()=>{e(Cw)},onBeforeEnter:()=>{e(Sw)},onBeforeLeave:()=>{e(kw)},onEnter:()=>{e(Ew)},onEnterCancelled:()=>{e($w)},onLeave:()=>{e(_w)},onLeaveCancelled:()=>{e(Tw)}}},Ow={prefix:Math.floor(Math.random()*1e4),current:0},Rw=Symbol("elIdInjection"),dc=()=>ct()?_e(Rw,Ow):Ow,Fn=e=>{const t=dc(),n=lc();return zg(()=>s(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Jr=[];const xw=e=>{Ht(e)===fe.esc&&Jr.forEach(n=>n(e))},Iw=e=>{ut(()=>{Jr.length===0&&document.addEventListener("keydown",xw),Tt&&Jr.push(e)}),Dt(()=>{Jr=Jr.filter(t=>t!==e),Jr.length===0&&Tt&&document.removeEventListener("keydown",xw)})},Kp=()=>{const e=lc(),t=dc(),n=k(()=>`${e.value}-popper-container-${t.prefix}`),o=k(()=>`#${n.value}`);return{id:n,selector:o}},E5=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},Mw=()=>{const{id:e,selector:t}=Kp();return Vd(()=>{!Tt||document.body.querySelector(t.value)||E5(e.value)}),{id:e,selector:t}},$5=({indicator:e,intermediateIndicator:t,shouldSetIntermediate:n=()=>!0,beforeShow:o,afterShow:a,afterHide:l,beforeHide:r})=>{ue(()=>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)}))}),ue(()=>t.value,i=>{i?a==null||a():l==null||l()})},Nw=he({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Pw=({showAfter:e,hideAfter:t,autoClose:n,open:o,close:a})=>{const{registerTimeout:l}=Wp(),{registerTimeout:r,cancelTimeout:i}=Wp();return{onOpen:(d,f=s(e))=>{l(()=>{o(d);const v=s(n);Re(v)&&v>0&&r(()=>{a(d)},v)},f)},onClose:(d,f=s(t))=>{i(),l(()=>{a(d)},f)}}},jp=Symbol("elForwardRef"),Aw=e=>{St(jp,{setForwardRef:n=>{e.value=n}})},Lw=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Dw={current:0},Bw=A(0),Yp=2e3,Up=Symbol("elZIndexContextKey"),Gp=Symbol("zIndexContextKey"),Qr=e=>{const t=ct()?_e(Up,Dw):Dw,n=e||(ct()?_e(Gp,void 0):void 0),o=k(()=>{const r=s(n);return Re(r)?r:Yp}),a=k(()=>o.value+Bw.value),l=()=>(t.current++,Bw.value=t.current,a.value);return!Tt&&_e(Up),{initialZIndex:o,currentZIndex:a,nextZIndex:l}},Fw=["top","right","bottom","left"],Vw=["start","end"],zw=Fw.reduce((e,t)=>e.concat(t,t+"-"+Vw[0],t+"-"+Vw[1]),[]),pa=Math.min,lo=Math.max,fc=Math.round,pc=Math.floor,Ba=e=>({x:e,y:e}),_5={left:"right",right:"left",bottom:"top",top:"bottom"},T5={start:"end",end:"start"};function qp(e,t,n){return lo(e,pa(t,n))}function va(e,t){return typeof e=="function"?e(t):e}function No(e){return e.split("-")[0]}function ha(e){return e.split("-")[1]}function Xp(e){return e==="x"?"y":"x"}function Zp(e){return e==="y"?"height":"width"}const O5=new Set(["top","bottom"]);function ma(e){return O5.has(No(e))?"y":"x"}function Jp(e){return Xp(ma(e))}function Hw(e,t,n){n===void 0&&(n=!1);const o=ha(e),a=Jp(e),l=Zp(a);let r=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(r=hc(r)),[r,hc(r)]}function R5(e){const t=hc(e);return[vc(e),t,vc(t)]}function vc(e){return e.replace(/start|end/g,t=>T5[t])}const Ww=["left","right"],Kw=["right","left"],x5=["top","bottom"],I5=["bottom","top"];function M5(e,t,n){switch(e){case"top":case"bottom":return n?t?Kw:Ww:t?Ww:Kw;case"left":case"right":return t?x5:I5;default:return[]}}function N5(e,t,n,o){const a=ha(e);let l=M5(No(e),n==="start",o);return a&&(l=l.map(r=>r+"-"+a),t&&(l=l.concat(l.map(vc)))),l}function hc(e){return e.replace(/left|right|bottom|top/g,t=>_5[t])}function P5(e){return{top:0,right:0,bottom:0,left:0,...e}}function Qp(e){return typeof e!="number"?P5(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 jw(e,t,n){let{reference:o,floating:a}=e;const l=ma(t),r=Jp(t),i=Zp(r),u=No(t),c=l==="y",d=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,v=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]-=v*(n&&c?-1:1);break;case"end":m[r]+=v*(n&&c?-1:1);break}return m}const A5=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}=jw(c,o,u),v=o,m={},p=0;for(let h=0;h<i.length;h++){const{name:g,fn:b}=i[h],{x:C,y:w,data:y,reset:S}=await b({x:d,y:f,initialPlacement:o,placement:v,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&&(v=S.placement),S.rects&&(c=S.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:a}):S.rects),{x:d,y:f}=jw(c,v,u)),h=-1)}return{x:d,y:f,placement:v,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:v=!1,padding:m=0}=va(t,e),p=Qp(m),g=i[v?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 L5=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=Qp(d),v={x:n,y:o},m=Jp(a),p=Zp(m),h=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]-v[m]-l.floating[p],S=v[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 R=y/2-S/2,N=_/2-h[p]/2-1,O=pa(f[b],N),P=pa(f[C],N),M=O,L=_-h[p]-P,H=_/2-h[p]/2+R,K=qp(M,H,L),Y=!u.arrow&&ha(a)!=null&&H!==K&&l.reference[p]/2-(H<M?O:P)-h[p]/2<0,I=Y?H<M?H-M:H-L:0;return{[m]:v[m]+I,data:{[m]:K,centerOffset:H-K-I,...Y&&{alignmentOffset:I}},reset:Y}}});function D5(e,t,n){return(e?[...n.filter(a=>ha(a)===e),...n.filter(a=>ha(a)!==e)]:n.filter(a=>No(a)===a)).filter(a=>e?ha(a)===e||(t?vc(a)!==a:!1):!0)}const B5=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:v=zw,autoAlignment:m=!0,...p}=va(e,t),h=f!==void 0||v===zw?D5(f||null,m,v):v,g=await ir(t,p),b=((n=r.autoPlacement)==null?void 0:n.index)||0,C=h[b];if(C==null)return{};const w=Hw(C,l,await(u.isRTL==null?void 0:u.isRTL(c.floating)));if(i!==C)return{reset:{placement:h[0]}};const y=[g[No(C)],g[w[0]],g[w[1]]],S=[...((o=r.autoPlacement)==null?void 0:o.overflows)||[],{placement:C,overflows:y}],E=h[b+1];if(E)return{data:{index:b+1,overflows:S},reset:{placement:E}};const _=S.map(O=>{const P=ha(O.placement);return[O.placement,P&&d?O.overflows.slice(0,2).reduce((M,L)=>M+L,0):O.overflows[0],O.overflows]}).sort((O,P)=>O[1]-P[1]),N=((a=_.filter(O=>O[2].slice(0,ha(O[0])?2:3).every(P=>P<=0))[0])==null?void 0:a[0])||_[0][0];return N!==i?{data:{index:b+1,overflows:S},reset:{placement:N}}:{}}}},F5=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:v,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...g}=va(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const b=No(a),C=ma(i),w=No(i)===i,y=await(u.isRTL==null?void 0:u.isRTL(c.floating)),S=v||(w||!h?[hc(i)]:R5(i)),E=p!=="none";!v&&E&&S.push(...N5(i,h,p,y));const _=[i,...S],R=await ir(t,g),N=[];let O=((o=l.flip)==null?void 0:o.overflows)||[];if(d&&N.push(R[b]),f){const H=Hw(a,r,y);N.push(R[H[0]],R[H[1]])}if(O=[...O,{placement:a,overflows:N}],!N.every(H=>H<=0)){var P,M;const H=(((P=l.flip)==null?void 0:P.index)||0)+1,K=_[H];if(K&&(!(f==="alignment"?C!==ma(K):!1)||O.every(T=>ma(T.placement)===C?T.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,T)=>I.overflows[1]-T.overflows[1])[0])==null?void 0:M.placement;if(!Y)switch(m){case"bestFit":{var L;const I=(L=O.filter(T=>{if(E){const D=ma(T.placement);return D===C||D==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(D=>D>0).reduce((D,B)=>D+B,0)]).sort((T,D)=>T[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 Yw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Uw(e){return Fw.some(t=>e[t]>=0)}const V5=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=Yw(l,n.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:Uw(r)}}}case"escaped":{const l=await ir(t,{...a,altBoundary:!0}),r=Yw(l,n.floating);return{data:{escapedOffsets:r,escaped:Uw(r)}}}default:return{}}}}};function Gw(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 z5(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(Gw(a)))}const H5=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=z5(d),v=es(Gw(d)),m=Qp(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)||v;if(f.length>=2){if(ma(n)==="y"){const O=f[0],P=f[f.length-1],M=No(n)==="top",L=O.top,H=P.bottom,K=M?O.left:P.left,Y=M?O.right:P.right,I=Y-K,T=H-L;return{top:L,bottom:H,left:K,right:Y,width:I,height:T,x:K,y:L}}const g=No(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,R=_-E,N=S-y;return{top:y,bottom:S,left:E,right:_,width:R,height:N,x:E,y}}return v}const h=await l.getElementRects({reference:{getBoundingClientRect:p},floating:o.floating,strategy:r});return a.reference.x!==h.reference.x||a.reference.y!==h.reference.y||a.reference.width!==h.reference.width||a.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},qw=new Set(["left","top"]);async function W5(e,t){const{placement:n,platform:o,elements:a}=e,l=await(o.isRTL==null?void 0:o.isRTL(a.floating)),r=No(n),i=ha(n),u=ma(n)==="y",c=qw.has(r)?-1:1,d=l&&u?-1:1,f=va(t,e);let{mainAxis:v,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:v*c}:{x:v*c,y:m*d}}const K5=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 W5(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(No(a)),v=Xp(f);let m=c[v],p=c[f];if(l){const g=v==="y"?"top":"left",b=v==="y"?"bottom":"right",C=m+d[g],w=m-d[b];m=qp(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=qp(C,p,w)}const h=i.fn({...t,[v]:m,[f]:p});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[v]:l,[f]:r}}}}}},Y5=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),v=Xp(f);let m=d[v],p=d[f];const h=va(i,t),g=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){const w=v==="y"?"height":"width",y=l.reference[v]-l.floating[w]+g.mainAxis,S=l.reference[v]+l.reference[w]-g.mainAxis;m<y?m=y:m>S&&(m=S)}if(c){var b,C;const w=v==="y"?"width":"height",y=qw.has(No(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{[v]:m,[f]:p}}}},U5=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=No(a),v=ha(a),m=ma(a)==="y",{width:p,height:h}=l.floating;let g,b;f==="top"||f==="bottom"?(g=f,b=v===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(b=f,g=v==="end"?"top":"bottom");const C=h-d.top-d.bottom,w=p-d.left-d.right,y=pa(h-d[g],C),S=pa(p-d[b],w),E=!t.middlewareData.shift;let _=y,R=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=w),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(_=C),E&&!v){const O=lo(d.left,0),P=lo(d.right,0),M=lo(d.top,0),L=lo(d.bottom,0);m?R=p-2*(O!==0||P!==0?O+P:lo(d.left,d.right)):_=h-2*(M!==0||L!==0?M+L:lo(d.top,d.bottom))}await u({...t,availableWidth:R,availableHeight:_});const N=await r.getDimensions(i.floating);return p!==N.width||h!==N.height?{reset:{rects:!0}}:{}}}};function mc(){return typeof window!="undefined"}function ts(e){return Xw(e)?(e.nodeName||"").toLowerCase():"#document"}function Po(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fa(e){var t;return(t=(Xw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xw(e){return mc()?e instanceof Node||e instanceof Po(e).Node:!1}function ga(e){return mc()?e instanceof Element||e instanceof Po(e).Element:!1}function Va(e){return mc()?e instanceof HTMLElement||e instanceof Po(e).HTMLElement:!1}function Zw(e){return!mc()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof Po(e).ShadowRoot}const G5=new Set(["inline","contents"]);function yi(e){const{overflow:t,overflowX:n,overflowY:o,display:a}=ba(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!G5.has(a)}const q5=new Set(["table","td","th"]);function X5(e){return q5.has(ts(e))}const Z5=[":popover-open",":modal"];function gc(e){return Z5.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const J5=["transform","translate","scale","rotate","perspective"],Q5=["transform","translate","scale","rotate","perspective","filter"],eH=["paint","layout","strict","content"];function ev(e){const t=tv(),n=ga(e)?ba(e):e;return J5.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)||Q5.some(o=>(n.willChange||"").includes(o))||eH.some(o=>(n.contain||"").includes(o))}function tH(e){let t=Ll(e);for(;Va(t)&&!ns(t);){if(ev(t))return t;if(gc(t))return null;t=Ll(t)}return null}function tv(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const nH=new Set(["html","body","#document"]);function ns(e){return nH.has(ts(e))}function ba(e){return Po(e).getComputedStyle(e)}function bc(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||Zw(e)&&e.host||Fa(e);return Zw(t)?t.host:t}function Jw(e){const t=Ll(e);return ns(t)?e.ownerDocument?e.ownerDocument.body:e.body:Va(t)&&yi(t)?t:Jw(t)}function wi(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=Jw(e),l=a===((o=e.ownerDocument)==null?void 0:o.body),r=Po(a);if(l){const i=nv(r);return t.concat(r,r.visualViewport||[],yi(a)?a:[],i&&n?wi(i):[])}return t.concat(a,wi(a,[],n))}function nv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qw(e){const t=ba(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const a=Va(e),l=a?e.offsetWidth:n,r=a?e.offsetHeight:o,i=fc(n)!==l||fc(o)!==r;return i&&(n=l,o=r),{width:n,height:o,$:i}}function ov(e){return ga(e)?e:e.contextElement}function os(e){const t=ov(e);if(!Va(t))return Ba(1);const n=t.getBoundingClientRect(),{width:o,height:a,$:l}=Qw(t);let r=(l?fc(n.width):n.width)/o,i=(l?fc(n.height):n.height)/a;return(!r||!Number.isFinite(r))&&(r=1),(!i||!Number.isFinite(i))&&(i=1),{x:r,y:i}}const oH=Ba(0);function eC(e){const t=Po(e);return!tv()||!t.visualViewport?oH:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function aH(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=ov(e);let r=Ba(1);t&&(o?ga(o)&&(r=os(o)):r=os(e));const i=aH(l,n,o)?eC(l):Ba(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 v=Po(l),m=o&&ga(o)?Po(o):o;let p=v,h=nv(p);for(;h&&o&&m!==p;){const g=os(h),b=h.getBoundingClientRect(),C=ba(h),w=b.left+(h.clientLeft+parseFloat(C.paddingLeft))*g.x,y=b.top+(h.clientTop+parseFloat(C.paddingTop))*g.y;u*=g.x,c*=g.y,d*=g.x,f*=g.y,u+=w,c+=y,p=Po(h),h=nv(p)}}return es({width:d,height:f,x:u,y:c})}function yc(e,t){const n=bc(e).scrollLeft;return t?t.left+n:ur(Fa(e)).left+n}function tC(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-yc(e,n),a=n.top+t.scrollTop;return{x:o,y:a}}function lH(e){let{elements:t,rect:n,offsetParent:o,strategy:a}=e;const l=a==="fixed",r=Fa(o),i=t?gc(t.floating):!1;if(o===r||i&&l)return n;let u={scrollLeft:0,scrollTop:0},c=Ba(1);const d=Ba(0),f=Va(o);if((f||!f&&!l)&&((ts(o)!=="body"||yi(r))&&(u=bc(o)),Va(o))){const m=ur(o);c=os(o),d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}const v=r&&!f&&!l?tC(r,u):Ba(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+v.x,y:n.y*c.y-u.scrollTop*c.y+d.y+v.y}}function rH(e){return Array.from(e.getClientRects())}function sH(e){const t=Fa(e),n=bc(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+yc(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 nC=25;function iH(e,t){const n=Po(e),o=Fa(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=tv();(!d||d&&t==="fixed")&&(i=a.offsetLeft,u=a.offsetTop)}const c=yc(o);if(c<=0){const d=o.ownerDocument,f=d.body,v=getComputedStyle(f),m=d.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,p=Math.abs(o.clientWidth-f.clientWidth-m);p<=nC&&(l-=p)}else c<=nC&&(l+=c);return{width:l,height:r,x:i,y:u}}const uH=new Set(["absolute","fixed"]);function cH(e,t){const n=ur(e,!0,t==="fixed"),o=n.top+e.clientTop,a=n.left+e.clientLeft,l=Va(e)?os(e):Ba(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 oC(e,t,n){let o;if(t==="viewport")o=iH(e,n);else if(t==="document")o=sH(Fa(e));else if(ga(t))o=cH(t,n);else{const a=eC(e);o={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return es(o)}function aC(e,t){const n=Ll(e);return n===t||!ga(n)||ns(n)?!1:ba(n).position==="fixed"||aC(n,t)}function dH(e,t){const n=t.get(e);if(n)return n;let o=wi(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=ev(r);!u&&i.position==="fixed"&&(a=null),(l?!u&&!a:!u&&i.position==="static"&&!!a&&uH.has(a.position)||yi(r)&&!u&&aC(e,r))?o=o.filter(d=>d!==r):a=i,r=Ll(r)}return t.set(e,o),o}function fH(e){let{element:t,boundary:n,rootBoundary:o,strategy:a}=e;const r=[...n==="clippingAncestors"?gc(t)?[]:dH(t,this._c):[].concat(n),o],i=r[0],u=r.reduce((c,d)=>{const f=oC(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},oC(t,i,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function pH(e){const{width:t,height:n}=Qw(e);return{width:t,height:n}}function vH(e,t,n){const o=Va(t),a=Fa(t),l=n==="fixed",r=ur(e,!0,l,t);let i={scrollLeft:0,scrollTop:0};const u=Ba(0);function c(){u.x=yc(a)}if(o||!o&&!l)if((ts(t)!=="body"||yi(a))&&(i=bc(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?tC(a,i):Ba(0),f=r.left+i.scrollLeft-u.x-d.x,v=r.top+i.scrollTop-u.y-d.y;return{x:f,y:v,width:r.width,height:r.height}}function av(e){return ba(e).position==="static"}function lC(e,t){if(!Va(e)||ba(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Fa(e)===n&&(n=n.ownerDocument.body),n}function rC(e,t){const n=Po(e);if(gc(e))return n;if(!Va(e)){let a=Ll(e);for(;a&&!ns(a);){if(ga(a)&&!av(a))return a;a=Ll(a)}return n}let o=lC(e,t);for(;o&&X5(o)&&av(o);)o=lC(o,t);return o&&ns(o)&&av(o)&&!ev(o)?n:o||tH(e)||n}const hH=async function(e){const t=this.getOffsetParent||rC,n=this.getDimensions,o=await n(e.floating);return{reference:vH(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function mH(e){return ba(e).direction==="rtl"}const gH={convertOffsetParentRelativeRectToViewportRelativeRect:lH,getDocumentElement:Fa,getClippingRect:fH,getOffsetParent:rC,getElementRects:hH,getClientRects:rH,getDimensions:pH,getScale:os,isElement:ga,isRTL:mH};function sC(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function bH(e,t){let n=null,o;const a=Fa(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:v,height:m}=c;if(i||t(),!v||!m)return;const p=pc(f),h=pc(a.clientWidth-(d+v)),g=pc(a.clientHeight-(f+m)),b=pc(d),w={rootMargin:-p+"px "+-h+"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&&!sC(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 yH(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=ov(e),d=a||l?[...c?wi(c):[],...wi(t)]:[];d.forEach(b=>{a&&b.addEventListener("scroll",n,{passive:!0}),l&&b.addEventListener("resize",n)});const f=c&&i?bH(c,n):null;let v=-1,m=null;r&&(m=new ResizeObserver(b=>{let[C]=b;C&&C.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var w;(w=m)==null||w.observe(t)})),n()}),c&&!u&&m.observe(c),m.observe(t));let p,h=u?ur(e):null;u&&g();function g(){const b=ur(e);h&&!sC(h,b)&&n(),h=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 wH=ir,CH=K5,SH=j5,kH=F5,iC=L5,uC=(e,t,n)=>{const o=new Map,a={platform:gH,...n},l={...a.platform,_c:o};return A5(e,t,{...a,platform:l})},EH=he({}),$H=e=>{if(!Tt)return;if(!e)return e;const t=kn(e);return t||(Yn(e)?t:e)},_H=(e,t)=>{const n=e==null?void 0:e[t];return vn(n)?"":`${n}px`},TH=({middleware:e,placement:t,strategy:n})=>{const o=A(),a=A(),l=A(),r=A(),i=A({}),u={x:l,y:r,placement:t,strategy:n,middlewareData:i},c=async()=>{if(!Tt)return;const d=$H(o),f=kn(a);if(!d||!f)return;const v=await uC(d,f,{placement:s(t),strategy:s(n),middleware:s(e)});Kr(u).forEach(m=>{u[m].value=v[m]})};return ut(()=>{io(()=>{c()})}),{...u,update:c,referenceRef:o,contentRef:a}},OH=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const o=s(e);return o?iC({element:o,padding:t}).fn(n):{}}});function cC(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 RH=(e,t,n)=>ca(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),Ci=(e,t)=>{const n=Zt({}),o=Zt([]),a=new WeakMap,l=d=>{n.value[d.uid]=d,cu(n),ut(()=>{const f=d.getVnode().el,v=f.parentNode;if(!a.has(v)){a.set(v,[]);const m=v.insertBefore.bind(v);v.insertBefore=(p,h)=>(a.get(v).some(b=>p===b||h===b)&&cu(n),m(p,h))}a.get(v).push(f)})},r=d=>{delete n.value[d.uid],cu(n);const f=d.getVnode().el,v=f.parentNode,m=a.get(v),p=m.indexOf(f);m.splice(p,1)},i=()=>{o.value=RH(e,t,n.value)},u=d=>d.render(),c=re({setup(d,{slots:f}){return()=>(i(),f.default?Le(u,{render:f.default}):null)}});return{children:o,addChild:l,removeChild:r,ChildrenSorter:c}},Tn=ua({type:String,values:na,required:!1}),xH={size:Tn},lv=Symbol("size"),rv=()=>{const e=_e(lv,{});return k(()=>s(e.size)||"")};function za(e,{disabled:t,beforeFocus:n,afterFocus:o,beforeBlur:a,afterBlur:l}={}){const r=ct(),{emit:i}=r,u=Zt(),c=A(!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 h=lt(a)?a(m):!1;s(t)||m.relatedTarget&&((p=u.value)==null?void 0:p.contains(m.relatedTarget))||h||(c.value=!1,i("blur",m),l==null||l())},v=m=>{var p,h;s(t)||Ns(m.target)||((p=u.value)==null?void 0:p.contains(document.activeElement))&&u.value!==document.activeElement||(h=e.value)==null||h.focus()};return ue([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",v,!0),{isFocused:c,wrapperRef:u,handleFocus:d,handleBlur:f}}function as({afterComposition:e,emit:t}){const n=A(!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=!nz(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 sv=Symbol("emptyValuesContextKey"),IH="use-empty-values",dC=["",void 0,null],fC=void 0,Dl=he({emptyValues:Array,valueOnClear:{type:q([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=lt(e)?e():e,Ee(e)?e.every(t=>!t):!e)}}),ls=(e,t)=>{const n=ct()?_e(sv,A({})):A({}),o=k(()=>e.emptyValues||n.value.emptyValues||dC),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:fC),l=r=>{let i=!0;return Ee(r)?i=o.value.some(u=>sn(r,u)):i=o.value.includes(r),i};return l(a.value),{emptyValues:o,valueOnClear:a,isEmptyValue:l}},pC=he({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Gn=e=>xa(pC,e),iv=Symbol(),wc=A();function cr(e,t=void 0){const n=ct()?_e(iv,wc):wc;return e?k(()=>{var o,a;return(a=(o=n.value)==null?void 0:o[e])!=null?a:t}):n}function Si(e,t){const n=cr(),o=de(e,k(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||jr})),a=yt(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)||Yp})),r=k(()=>{var i;return s(t)||((i=n.value)==null?void 0:i.size)||""});return Cc(k(()=>s(n)||{})),{ns:o,locale:a,zIndex:l,size:r}}const Cc=(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?MH(l.value,u):u});return r(iv,i),r(xp,k(()=>i.value.locale)),r(Ip,k(()=>i.value.namespace)),r(Gp,k(()=>i.value.zIndex)),r(lv,{size:k(()=>i.value.size||"")}),r(sv,k(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(n||!wc.value)&&(wc.value=i.value),i},MH=(e,t)=>{const n=[...new Set([...Kr(e),...Kr(t)])],o={};for(const a of n)o[a]=t[a]!==void 0?t[a]:e[a];return o},vC=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"},NH=re({name:"ElConfigProvider",props:vC,setup(e,{slots:t}){const n=Cc(e);return ue(()=>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})}}),hC=Qe(NH),PH="0.0.20260104",mC=(e=[])=>({version:PH,install:(n,o)=>{n[Wd]||(n[Wd]=!0,e.forEach(a=>n.use(a)),o&&Cc(o,n,!0))}}),ki=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 AH=re({__name:"teleport",props:ki,setup(e){return(t,n)=>t.disabled?ee(t.$slots,"default",{key:0}):($(),ne(Rg,{key:1,to:t.to},[ee(t.$slots,"default")],8,["to"]))}});var LH=ye(AH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/teleport/src/teleport.vue"]]);const DH=Qe(LH);var rs=DH;const gC=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:ki.to.type,default:"body"}}),bC={scroll:({scrollTop:e,fixed:t})=>Re(e)&&Vt(t),[ht]:e=>Vt(e)},yC="ElAffix",BH=re({name:yC,__name:"affix",props:gC,emits:bC,setup(e,{expose:t,emit:n}){const o=e,a=n,l=de("affix"),r=Zt(),i=Zt(),u=Zt(),{height:c}=qd(),{height:d,width:f,top:v,bottom:m,left:p,update:h}=Ug(i,{windowScroll:!1}),g=Ug(r),b=A(!1),C=A(0),w=A(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=un(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:P,offset:M}=o,L=M+d.value;if(O==="top")if(P){const H=g.bottom.value-L;b.value=M>v.value&&g.bottom.value>0,w.value=H<0?H:0}else b.value=M>v.value;else if(P){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},R=async()=>{if(!b.value){h();return}b.value=!1,await ke(),h(),b.value=!0},N=async()=>{h(),await ke(),a("scroll",{scrollTop:C.value,fixed:b.value})};return ue(b,O=>a(ht,O)),ut(()=>{var O;o.target?(r.value=(O=document.querySelector(o.target))!=null?O:void 0,r.value||_n(yC,`Target does not exist: ${o.target}`)):r.value=document.documentElement,u.value=Sp(i.value,!0),h()}),Mt(u,"scroll",N),io(_),t({update:_,updateRoot:R}),(O,P)=>($(),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 FH=ye(BH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const wC=Qe(FH),CC=he({size:{type:q([Number,String])},color:{type:String}}),VH=re({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:CC,setup(e){const t=e,n=de("icon"),o=k(()=>{const{size:a,color:l}=t,r=un(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 zH=ye(VH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const $e=Qe(zH),SC=["light","dark"],kC=he({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Kr(Pl),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:SC,default:"light"},showAfter:Number,hideAfter:Number,autoClose:Number}),EC={close:e=>e instanceof MouseEvent},HH=re({name:"ElAlert",__name:"alert",props:kC,emits:EC,setup(e,{emit:t}){const{Close:n}=_p,o=e,a=t,l=mn(),r=de("alert"),i=A(!0),u=k(()=>Pl[o.type]),c=k(()=>!!(o.description||l.default)),d=f=>{i.value=!1,a("close",f)};return o.showAfter||o.hideAfter||o.autoClose,(f,v)=>($(),ne(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)?($(),ne(s($e),{key:0,class:x([s(r).e("icon"),s(r).is("big",c.value)])},{default:Q(()=>[ee(f.$slots,"icon",{},()=>[($(),ne(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",{},()=>[Ct(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",{},()=>[Ct(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)):($(),ne(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 WH=ye(HH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const $C=Qe(WH),Bl=Symbol("formContextKey"),ya=Symbol("formItemContextKey"),wn=(e,t={})=>{const n=A(void 0),o=t.prop?n:Np("size"),a=t.global?n:rv(),l=t.form?{size:void 0}:_e(Bl,void 0),r=t.formItem?{size:void 0}:_e(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=Np("disabled"),n=_e(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})},KH=wn,jH=on,An=()=>{const e=_e(Bl,void 0),t=_e(ya,void 0);return{form:e,formItem:t}},Eo=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=A(!1)),o||(o=A(!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=A();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=ue([Ft(e,"id"),n],([c,d])=>{const f=c!=null?c:d?void 0:Fn().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}},_C=he({size:{type:String,values:na},disabled:Boolean}),TC=he({..._C,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}}),OC={validate:(e,t,n)=>(Ee(e)||He(e))&&Vt(t)&&He(n)};function YH(){const e=A([]),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 Sc=(e,t)=>{const n=Pn(t).map(o=>Ee(o)?o.join("."):o);return n.length>0?e.filter(o=>o.propString&&n.includes(o.propString)):e},UH="ElForm",GH=re({name:UH,__name:"form",props:TC,emits:OC,setup(e,{expose:t,emit:n}){const o=e,a=n,l=A(),r=Lt([]),i=wn(),u=de("form"),c=k(()=>{const{labelPosition:S,inline:E}=o;return[u.b(),u.m(i.value||"default"),{[u.m(`label-${S}`)]:S,[u.m("inline")]:E}]}),d=S=>Sc(r,[S])[0],f=S=>{r.push(S)},v=S=>{S.prop&&r.splice(r.indexOf(S),1)},m=(S=[])=>{!o.model||Sc(r,S).forEach(E=>E.resetField())},p=(S=[])=>{Sc(r,S).forEach(E=>E.clearValidate())},h=k(()=>!!o.model),g=S=>{if(r.length===0)return[];const E=Sc(r,S);return E.length?E:[]},b=async S=>w(void 0,S),C=async(S=[])=>{if(!h.value)return!1;const E=g(S);if(E.length===0)return!0;let _={};for(const R of E)try{await R.validate(""),R.validateState==="error"&&!R.error&&R.resetField()}catch(N){_={..._,...N}}return Object.keys(_).length===0?!0:Promise.reject(_)},w=async(S=[],E)=>{let _=!1;const R=!lt(E);try{return _=await C(S),_===!0&&await(E==null?void 0:E(_)),_}catch(N){if(N instanceof Error)throw N;const O=N;if(o.scrollToError&&l.value){const P=l.value.querySelector(`.${u.b()}-item.is-error`);P==null||P.scrollIntoView(o.scrollIntoViewOptions)}return!_&&await(E==null?void 0:E(!1,O)),R&&Promise.reject(O)}},y=S=>{var E;const _=d(S);_&&((E=_.$el)==null||E.scrollIntoView(o.scrollIntoViewOptions))};return ue(()=>o.rules,()=>{o.validateOnRuleChange&&b().catch(S=>void 0)},{deep:!0,flush:"post"}),St(Bl,Lt({...Mn(o),emit:a,resetFields:m,clearValidate:p,validateField:w,getField:d,addField:f,removeField:v,...YH()})),t({validate:b,validateField:w,resetFields:m,clearValidate:p,scrollToField:y,getField:d,fields:r}),(S,E)=>($(),F("form",{ref_key:"formRef",ref:l,class:x(c.value)},[ee(S.$slots,"default")],2))}});var qH=ye(GH,[["__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 XH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ei(e,t)}function uv(e){return uv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},uv(e)}function Ei(e,t){return Ei=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,a){return o.__proto__=a,o},Ei(e,t)}function ZH(){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 kc(e,t,n){return ZH()?kc=Reflect.construct.bind():kc=function(a,l,r){var i=[null];i.push.apply(i,l);var u=Function.bind.apply(a,i),c=new u;return r&&Ei(c,r.prototype),c},kc.apply(null,arguments)}function JH(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function cv(e){var t=typeof Map=="function"?new Map:void 0;return cv=function(o){if(o===null||!JH(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 kc(o,arguments,uv(this).constructor)}return a.prototype=Object.create(o.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Ei(a,o)},cv(e)}var QH=/%[sdj%]/g,eW=function(){};typeof process!="undefined"&&process.env;function dv(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 Ao(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(QH,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 tW(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Vn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||tW(t)&&typeof e=="string"&&!e)}function nW(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 RC(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 oW(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var xC=function(e){XH(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}(cv(Error));function aW(e,t,n,o,a){if(t.first){var l=new Promise(function(v,m){var p=function(b){return o(b),b.length?m(new xC(b,dv(b))):v(a)},h=oW(e);RC(h,n,p)});return l.catch(function(v){return v}),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(v,m){var p=function(g){if(d.push.apply(d,g),c++,c===u)return o(d),d.length?m(new xC(d,dv(d))):v(a)};i.length||(o(d),v(a)),i.forEach(function(h){var g=e[h];r.indexOf(h)!==-1?RC(g,n,p):nW(g,n,p)})});return f.catch(function(v){return v}),f}function lW(e){return!!(e&&e.message!==void 0)}function rW(e,t){for(var n=e,o=0;o<t.length;o++){if(n==null)return n;n=n[t[o]]}return n}function IC(e,t){return function(n){var o;return e.fullFields?o=rW(t,e.fullFields):o=t[n.field||e.fullField],lW(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 MC(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 NC=function(t,n,o,a,l,r){t.required&&(!o.hasOwnProperty(t.field)||Vn(n,r||t.type))&&a.push(Ao(l.messages.required,t.fullField))},sW=function(t,n,o,a,l){(/^\s+$/.test(n)||n==="")&&a.push(Ao(l.messages.whitespace,t.fullField))},Ec,iW=function(){if(Ec)return Ec;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})),v=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"?nc:n.type==="line"?n.status==="success"?Ep:ul:n.status==="success"?si:Yo),h=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",ZX,[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,JX),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(v.value)},null,14,QX)]))],6)),(w.showText||w.$slots.default)&&!w.textInside?($(),F("div",{key:2,class:x(s(o).e("text")),style:Ie({fontSize:`${h.value}px`})},[ee(w.$slots,"default",{percentage:w.percentage},()=>[w.status?($(),ne(s($e),{key:1},{default:Q(()=>[($(),ne(at(p.value)))]),_:1})):($(),F("span",eZ,ge(g.value),1))])],6)):te("v-if",!0)],10,XX))}});var nZ=ye(tZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const im=Qe(nZ),d$=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:()=>[tc,tc,tc]},voidIcon:{type:zt,default:()=>WV},disabledVoidIcon:{type:zt,default:()=>tc},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"])}),f$={[ht]:e=>Re(e),[Ye]:e=>Re(e)},oZ=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],aZ=["onMousemove","onClick"],lZ=re({name:"ElRate",__name:"rate",props:d$,emits:f$,setup(e,{expose:t,emit:n}){function o(T,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)?T<V:T<=V}).sort((V,G)=>V-G),U=D[z[0]];return B(U)&&U.value||U}const a=e,l=n,r=_e(ya,void 0),i=wn(),u=de("rate"),{inputId:c,isLabeledByFormItem:d}=Eo(a,{formItemContext:r}),f=A(a.modelValue),v=A(-1),m=A(!0),p=A([]),h=k(()=>p.value.map(T=>T.$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 T="";return a.showScore?T=a.scoreTemplate.replace(/\{\s*value\s*\}/,b.value?`${a.modelValue}`:`${f.value}`):a.showText&&(T=a.texts[Math.ceil(f.value)-1]),T}),y=k(()=>a.modelValue*100-Math.floor(a.modelValue)*100),S=k(()=>Ee(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 T=o(f.value,S.value);return Rt(T)?"":T}),_=k(()=>{let T="";return b.value?T=`${y.value}%`:a.allowHalf&&(T="50%"),{color:E.value,width:T}}),R=k(()=>{let T=Ee(a.icons)?[...a.icons]:{...a.icons};return T=Cl(T),Ee(T)?{[a.lowThreshold]:T[0],[a.highThreshold]:{value:T[1],excluded:!0},[a.max]:T[2]}:T}),N=k(()=>o(a.modelValue,R.value)),O=k(()=>b.value?He(a.disabledVoidIcon)?a.disabledVoidIcon:Cl(a.disabledVoidIcon):He(a.voidIcon)?a.voidIcon:Cl(a.voidIcon)),P=k(()=>o(f.value,R.value));function M(T){const D=b.value&&y.value>0&&T-1<a.modelValue&&T>a.modelValue,B=a.allowHalf&&m.value&&T-.5<=f.value&&T>f.value;return D||B}function L(T){a.clearable&&T===a.modelValue&&(T=0),l(Ye,T),a.modelValue!==T&&l(ht,T)}function H(T){b.value||(a.allowHalf&&m.value?L(f.value):L(T))}function K(T){if(b.value)return;const D=Ht(T),B=a.allowHalf?.5:1;let z=f.value;switch(D){case fe.up:case fe.right:z+=B;break;case fe.left:case fe.down:z-=B;break}if(z=Xs(z,0,a.max),z!==f.value)return T.stopPropagation(),T.preventDefault(),l(Ye,z),l(ht,z),z}function Y(T,D){b.value||(a.allowHalf&&D?(m.value=D.offsetX*2<=h.value[T-1],f.value=m.value?T-.5:T):f.value=T,v.value=T)}function I(){b.value||(a.allowHalf&&(m.value=a.modelValue!==Math.floor(a.modelValue)),f.value=a.modelValue,v.value=-1)}return ue(()=>a.modelValue,T=>{f.value=T,m.value=a.modelValue!==Math.floor(a.modelValue)}),a.modelValue||l(Ye,0),t({setCurrentValue:Y,resetCurrentValue:I}),(T,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:T.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":T.max,tabindex:"0",style:Ie(C.value),onKeydown:K},[($(!0),F(Be,null,bt(T.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:v.value===z},s(u).is("active",z<=f.value),s(u).is("focus-visible",z===Math.ceil(f.value||1))])},{default:Q(()=>[tt(($(),ne(at(P.value),null,null,512)),[[xt,!M(z)&&z<=f.value]]),tt(($(),ne(at(O.value),null,null,512)),[[xt,!M(z)&&z>f.value]]),tt(($(),ne(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(()=>[($(),ne(at(N.value)))]),_:1},8,["style","class"]),[[xt,M(z)]])]),_:2},1032,["class"])],42,aZ))),128)),T.showText||T.showScore?($(),F("span",{key:0,class:x(s(u).e("text")),style:Ie({color:T.textColor})},ge(w.value),7)):te("v-if",!0)],46,oZ)}}});var rZ=ye(lZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const p$=Qe(rZ),Wl={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},um={[Wl.primary]:ii,[Wl.success]:tV,[Wl.warning]:nc,[Wl.error]:$p,[Wl.info]:ii},v$=he({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}}),sZ=re({name:"ElResult",__name:"result",props:v$,setup(e){const t=e,n=de("result"),o=k(()=>{const a=t.icon,l=a&&Wl[a]?Wl[a]:"icon-info",r=um[l]||um["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?($(),ne(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 iZ=ye(sZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const h$=Qe(iZ);var m$=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function uZ(e,t){return!!(e===t||m$(e)&&m$(t))}function cZ(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!uZ(e[n],t[n]))return!1;return!0}function dZ(e,t){t===void 0&&(t=cZ);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 g$=()=>{const t=ct().proxy.$props;return k(()=>{const n=(o,a,l)=>({});return t.perfMode?Gs(n):dZ(n)})},cm=50,ud="itemRendered",cd="scroll",gs="forward",dd="backward",ea="auto",fd="smart",Ki="start",Ka="center",ji="end",bs="horizontal",b$="vertical",fZ="ltr",ys="rtl",Yi="negative",dm="positive-ascending",fm="positive-descending",pZ={[bs]:"left",[b$]:"top"},vZ=20,hZ=({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=>{rl(a);let{deltaX:c,deltaY:d}=u;u.shiftKey&&d!==0&&(c=d,d=0);const f=n.value===bs?c:d;r(l)&&r(l+f)||(l+=f,!Xd()&&f!==0&&u.preventDefault(),a=Ma(()=>{o(l),l=0}))}}};var y$=hZ;const pm=ua({type:q([Number,Function]),required:!0}),vm=ua({type:Number}),hm=ua({type:Number,default:2}),mZ=ua({type:String,values:["ltr","rtl"],default:"ltr"}),mm=ua({type:Number,default:0}),pd=ua({type:Number,required:!0}),w$=ua({type:String,values:["horizontal","vertical"],default:b$}),gm=he({className:{type:String,default:""},containerElement:{type:q([String,Object]),default:"div"},data:{type:q(Array),default:()=>dn([])},direction:mZ,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}),bm=he({cache:hm,estimatedItemSize:vm,layout:w$,initScrollOffset:mm,total:pd,itemSize:pm,...gm}),ym={type:Number,default:6},C$={type:Number,default:0},S$={type:Number,default:2},Kl=he({columnCache:hm,columnWidth:pm,estimatedColumnWidth:vm,estimatedRowHeight:vm,initScrollLeft:mm,initScrollTop:mm,itemKey:{type:q(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:hm,rowHeight:pm,totalColumn:pd,totalRow:pd,hScrollbarSize:ym,vScrollbarSize:ym,scrollbarStartGap:C$,scrollbarEndGap:S$,role:String,...gm}),wm=he({alwaysOn:Boolean,class:String,layout:w$,total:pd,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:ym,startGap:C$,endGap:S$,visible:Boolean}),br=(e,t)=>e<t?gs:dd,Ui=e=>e===fZ||e===ys||e===bs,k$=e=>e===ys;let ws=null;function vd(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=fm:(t.scrollLeft=1,t.scrollLeft===0?ws=Yi:ws=dm),document.body.removeChild(t),ws}return ws}function gZ({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 bZ=re({name:"ElVirtualScrollBar",props:wm,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=k(()=>e.startGap+e.endGap),o=de("virtual-scrollbar"),a=de("scrollbar"),l=A(),r=A();let i=null,u=null;const c=Lt({isDragging:!1,traveled:0}),d=k(()=>hv[e.layout]),f=k(()=>e.clientSize-s(n)),v=k(()=>({position:"absolute",width:`${bs===e.layout?f.value:e.scrollbarSize}px`,height:`${bs===e.layout?e.scrollbarSize:f.value}px`,[pZ[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,vZ),_))}),p=k(()=>{if(!Number.isFinite(m.value))return{display:"none"};const E=`${m.value}px`;return gZ({bar:d.value,size:E,move:c.traveled},e.layout)}),h=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 R=c[d.value.axis];if(!R)return;rl(i);const N=(l.value.getBoundingClientRect()[d.value.direction]-E[d.value.client])*-1,O=r.value[d.value.offset]-R,P=N-O;i=Ma(()=>{c.traveled=Math.max(0,Math.min(P,h.value)),t("scroll",P,h.value)})},S=E=>{const _=Math.abs(E.target.getBoundingClientRect()[d.value.direction]-E[d.value.client]),R=r.value[d.value.offset]/2,N=_-R;c.traveled=Math.max(0,Math.min(N,h.value)),t("scroll",N,h.value)};return ue(()=>e.scrollFrom,E=>{c.isDragging||(c.traveled=Math.ceil(E*h.value))}),Dt(()=>{b()}),()=>Le("div",{role:"presentation",ref:l,class:[o.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:v.value,onMousedown:je(S,["stop","prevent"]),onTouchstartPrevent:C},Le("div",{ref:r,class:a.e("thumb"),style:p.value,onMousedown:C},[]))}});var Cm=bZ;const yZ=({name:e,getOffset:t,getItemSize:n,getItemOffset:o,getEstimatedTotalSize:a,getStartIndexForOffset:l,getStopIndexForStartIndex:r,initCache:i,clearCache:u,validateProps:c})=>re({name:e!=null?e:"ElVirtualList",props:bm,emits:[ud,cd],setup(d,{emit:f,expose:v}){c(d);const m=ct(),p=de("vl"),h=A(i(d,m)),g=g$(),b=A(),C=A(),w=A(),y=A({isScrolling:!1,scrollDir:"forward",scrollOffset:Re(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 ae=l(d,se,s(h)),ve=r(d,ae,se,s(h)),oe=!X||le===dd?Math.max(1,G):1,j=!X||le===gs?Math.max(1,G):1;return[Math.max(0,ae-oe),Math.max(0,Math.min(V-1,ve+j)),ae,ve]}),E=k(()=>a(d,s(h))),_=k(()=>Ui(d.layout)),R=k(()=>[{position:"relative",[`overflow-${_.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:d.direction,height:Re(d.height)?`${d.height}px`:d.height,width:Re(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:P}=y$({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",P,{passive:!1});const M=()=>{const{total:V}=d;if(V>0){const[se,ae,ve,oe]=s(S);f(ud,se,ae,ve,oe)}const{scrollDir:G,scrollOffset:X,updateRequested:le}=s(y);f(cd,G,X,le)},L=V=>{const{clientHeight:G,scrollHeight:X,scrollTop:le}=V.currentTarget,se=s(y);if(se.scrollOffset===le)return;const ae=Math.max(0,Math.min(le,X-G));y.value={...se,isScrolling:!0,scrollDir:br(se.scrollOffset,ae),scrollOffset:ae,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:ae}=d;let ve=X;if(ae===ys)switch(vd()){case Yi:{ve=-X;break}case fm:{ve=le-G-X;break}}ve=Math.max(0,Math.min(ve,le-G)),y.value={...se,isScrolling:!0,scrollDir:br(se.scrollOffset,ve),scrollOffset:ve,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))},T=(V,G=ea)=>{const{scrollOffset:X}=s(y);V=Math.max(0,Math.min(V,d.total-1)),I(t(d,V,G,X,s(h)))},D=V=>{const{direction:G,itemSize:X,layout:le}=d,se=g.value(u&&X,u&&le,u&&G);let ae;if(Dn(se,String(V)))ae=se[V];else{const ve=o(d,V,s(h)),oe=n(d,V,s(h)),j=s(_),ie=G===ys,Se=j?ve:0;se[V]=ae={position:"absolute",left:ie?void 0:`${Se}px`,right:ie?`${Se}px`:void 0,top:j?0:`${ve}px`,height:j?"100%":`${oe}px`,width:j?`${oe}px`:"100%"}}return ae},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);Re(V)&&G&&(s(_)?G.scrollLeft=V:G.scrollTop=V),M()}),Ga(()=>{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(vd()){case Yi:{se.scrollLeft=-X;break}case dm:{se.scrollLeft=X;break}default:{const{clientWidth:ae,scrollWidth:ve}=se;se.scrollLeft=ve-ae-X;break}}else se.scrollLeft=X;else se.scrollTop=X}),zd(()=>{s(b).scrollTop=s(y).scrollOffset});const U={ns:p,clientSize:O,estimatedTotalSize:E,windowStyle:R,windowRef:b,innerRef:C,innerStyle:N,itemsToRender:S,scrollbarRef:w,states:y,getItemStyle:D,onScroll:K,onScrollbarScroll:Y,onWheel:P,scrollTo:I,scrollToItem:T,resetScrollTop:z};return v({windowRef:b,innerRef:C,getItemStyleCache:g,scrollTo:I,scrollToItem:T,resetScrollTop:z,states:y}),U},render(d){var f;const{$slots:v,className:m,clientSize:p,containerElement:h,data:g,getItemStyle:b,innerElement:C,itemsToRender:w,innerStyle:y,layout:S,total:E,onScroll:_,onScrollbarScroll:R,states:N,useIsScrolling:O,windowStyle:P,ns:M}=d,[L,H]=w,K=at(h),Y=at(C),I=[];if(E>0)for(let z=L;z<=H;z++)I.push(Le(Be,{key:z},(f=v.default)==null?void 0:f.call(v,{data:g,index:z,isScrolling:O?N.isScrolling:void 0,style:b(z)})));const T=[Le(Y,rt(d.innerProps,{style:y,ref:"innerRef"}),He(Y)?I:{default:()=>I})],D=Le(Cm,{ref:"scrollbarRef",clientSize:p,layout:S,onScroll:R,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:P,onScroll:_,ref:"windowRef",key:0},He(K)?[T]:{default:()=>[T]});return Le("div",{key:0,class:[M.e("wrapper"),N.scrollbarAlwaysOn?"always-on":""]},[B,D])}});var E$=yZ;const wZ=E$({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=Ui(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===fd&&(i>=f-u&&i<=d+u?r=ea:r=Ka),r){case Ki:return d;case ji:return f;case Ka:{const v=Math.round(f+(d-f)/2);return v<Math.ceil(u/2)?0:v>c+Math.floor(u/2)?c:v}case ea: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=Ui(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 Sm=wZ;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]},CZ=(e,t,n)=>{const{items:o,lastVisitedIndex:a}=t;return(a>0?o[a].offset:0)>=n?$$(e,t,0,a,n):SZ(e,t,Math.max(0,a),n)},$$=(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)},SZ=(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 $$(e,t,Math.floor(n/2),Math.min(n,a-1),o)},_$=({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},kZ=E$({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>Cs(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:_$,getOffset:(e,t,n,o,a)=>{const{height:l,layout:r,width:i}=e,u=Ui(r)?i:l,c=Cs(e,t,a),d=_$(e,a),f=Math.max(0,Math.min(d-u,c.offset)),v=Math.max(0,c.offset-u+c.size);switch(n===fd&&(o>=v-u&&o<=f+u?n=ea:n=Ka),n){case Ki:return f;case ji:return v;case Ka:return Math.round(v+(f-v)/2);case ea:default:return o>=v&&o<=f?o:o<v?v:f}},getStartIndexForOffset:(e,t,n)=>CZ(e,n,t),getStopIndexForStartIndex:(e,t,n,o)=>{const{height:a,total:l,layout:r,width:i}=e,u=Ui(r)?i:a,c=Cs(e,t,o),d=n+u;let f=c.offset+c.size,v=t;for(;v<l-1&&f<d;)v++,f+=Cs(e,v,o).size;return v},initCache({estimatedItemSize:e=cm},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 T$=kZ;const EZ=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:o},a)=>{let l=null,r=0,i=0;const u=(d,f)=>{const v=d<=0&&t.value||d>=0&&e.value,m=f<=0&&o.value||f>=0&&n.value;return v&&m};return{hasReachedEdge:u,onWheel:d=>{rl(l);let f=d.deltaX,v=d.deltaY;Math.abs(f)>Math.abs(v)?v=0:f=0,d.shiftKey&&v!==0&&(f=v,v=0),!(u(r,i)&&u(r+f,i+v))&&(r+=f,i+=v,d.preventDefault(),l=Ma(()=>{a(r,i),r=0,i=0}))}}},$Z=(e,t,n,o,a,l,r)=>{const i=A(0),u=A(0);let c,d=0,f=0;const v=p=>{rl(c),i.value=p.touches[0].clientX,u.value=p.touches[0].clientY,d=0,f=0},m=p=>{p.preventDefault(),rl(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 h=o.value-s(l),g=a.value-s(r),b=Math.min(t.value.scrollLeft+d,h),C=Math.min(t.value.scrollTop+f,g);n({scrollLeft:b,scrollTop:C}),d=0,f=0})};return Mt(e,"touchstart",v,{passive:!0}),Mt(e,"touchmove",m,{passive:!1}),{touchStartX:i,touchStartY:u,handleTouchStart:v,handleTouchMove:m}},_Z=({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:v,injectToInstance:m,validateProps:p})=>re({name:e!=null?e:"ElVirtualList",props:Kl,emits:[ud,cd],setup(h,{emit:g,expose:b,slots:C}){const w=de("vl");p(h);const y=ct(),S=A(v(h,y));m==null||m(y,S);const E=A(),_=A(),R=A(),N=A(),O=A({isScrolling:!1,scrollLeft:Re(h.initScrollLeft)?h.initScrollLeft:0,scrollTop:Re(h.initScrollTop)?h.initScrollTop:0,updateRequested:!1,xAxisScrollDir:gs,yAxisScrollDir:gs}),P=g$(),M=k(()=>Number.parseInt(`${h.height}`,10)),L=k(()=>Number.parseInt(`${h.width}`,10)),H=k(()=>{const{totalColumn:Pe,totalRow:Ae,columnCache:Ge}=h,{isScrolling:ot,xAxisScrollDir:pt,scrollLeft:wt}=s(O);if(Pe===0||Ae===0)return[0,0,0,0];const Ce=o(h,wt,s(S)),Ve=a(h,Ce,wt,s(S)),We=!ot||pt===dd?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]}),K=k(()=>{const{totalColumn:Pe,totalRow:Ae,rowCache:Ge}=h,{isScrolling:ot,yAxisScrollDir:pt,scrollTop:wt}=s(O);if(Pe===0||Ae===0)return[0,0,0,0];const Ce=d(h,wt,s(S)),Ve=f(h,Ce,wt,s(S)),We=!ot||pt===dd?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]}),Y=k(()=>l(h,s(S))),I=k(()=>r(h,s(S))),T=k(()=>{var Pe;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:h.direction,height:Re(h.height)?`${h.height}px`:h.height,width:Re(h.width)?`${h.width}px`:h.width},(Pe=h.style)!=null?Pe:{}]}),D=k(()=>{const Pe=`${s(I)}px`;return{height:`${s(Y)}px`,pointerEvents:s(O).isScrolling?"none":void 0,width:Pe,margin:0,boxSizing:"border-box"}}),B=()=>{const{totalColumn:Pe,totalRow:Ae}=h;if(Pe>0&&Ae>0){const[Ve,We,Ut,Ke]=s(H),[ft,it,mt,pe]=s(K);g(ud,{columnCacheStart:Ve,columnCacheEnd:We,rowCacheStart:ft,rowCacheEnd:it,columnVisibleStart:Ut,columnVisibleEnd:Ke,rowVisibleStart:mt,rowVisibleEnd:pe})}const{scrollLeft:Ge,scrollTop:ot,updateRequested:pt,xAxisScrollDir:wt,yAxisScrollDir:Ce}=s(O);g(cd,{xAxisScrollDir:wt,scrollLeft:Ge,yAxisScrollDir:Ce,scrollTop:ot,updateRequested:pt})},z=Pe=>{const{clientHeight:Ae,clientWidth:Ge,scrollHeight:ot,scrollLeft:pt,scrollTop:wt,scrollWidth:Ce}=Pe.currentTarget,Ve=s(O);if(Ve.scrollTop===wt&&Ve.scrollLeft===pt)return;let We=pt;if(k$(h.direction))switch(vd()){case Yi:We=-pt;break;case fm:We=Ce-Ge-pt;break}O.value={...Ve,isScrolling:!0,scrollLeft:We,scrollTop:Math.max(0,Math.min(wt,ot-Ae)),updateRequested:!0,xAxisScrollDir:br(Ve.scrollLeft,We),yAxisScrollDir:br(Ve.scrollTop,wt)},ke(()=>ie()),Se(),B()},U=(Pe,Ae)=>{const Ge=s(M),ot=(Y.value-Ge)/Ae*Pe;X({scrollTop:Math.min(Y.value-Ge,ot)})},V=(Pe,Ae)=>{const Ge=s(L),ot=(I.value-Ge)/Ae*Pe;X({scrollLeft:Math.min(I.value-Ge,ot)})},{onWheel:G}=EZ({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))},(Pe,Ae)=>{var Ge,ot,pt,wt;(ot=(Ge=_.value)==null?void 0:Ge.onMouseUp)==null||ot.call(Ge),(wt=(pt=R.value)==null?void 0:pt.onMouseUp)==null||wt.call(pt);const Ce=s(L),Ve=s(M);X({scrollLeft:Math.min(O.value.scrollLeft+Pe,I.value-Ce),scrollTop:Math.min(O.value.scrollTop+Ae,Y.value-Ve)})});Mt(E,"wheel",G,{passive:!1});const X=({scrollLeft:Pe=O.value.scrollLeft,scrollTop:Ae=O.value.scrollTop})=>{Pe=Math.max(Pe,0),Ae=Math.max(Ae,0);const Ge=s(O);Ae===Ge.scrollTop&&Pe===Ge.scrollLeft||(O.value={...Ge,xAxisScrollDir:br(Ge.scrollLeft,Pe),yAxisScrollDir:br(Ge.scrollTop,Ae),scrollLeft:Pe,scrollTop:Ae,updateRequested:!0},ke(()=>ie()),Se(),B())},{touchStartX:le,touchStartY:se,handleTouchStart:ae,handleTouchMove:ve}=$Z(E,O,X,I,Y,L,M),oe=(Pe=0,Ae=0,Ge=ea)=>{const ot=s(O);Ae=Math.max(0,Math.min(Ae,h.totalColumn-1)),Pe=Math.max(0,Math.min(Pe,h.totalRow-1));const pt=M1(w.namespace.value),wt=s(S),Ce=l(h,wt),Ve=r(h,wt);X({scrollLeft:i(h,Ae,Ge,ot.scrollLeft,wt,Ve>h.width?pt:0),scrollTop:u(h,Pe,Ge,ot.scrollTop,wt,Ce>h.height?pt:0)})},j=(Pe,Ae)=>{const{columnWidth:Ge,direction:ot,rowHeight:pt}=h,wt=P.value(t&&Ge,t&&pt,t&&ot),Ce=`${Pe},${Ae}`;if(Dn(wt,Ce))return wt[Ce];{const[,Ve]=n(h,Ae,s(S)),We=s(S),Ut=k$(ot),[Ke,ft]=c(h,Pe,We),[it]=n(h,Ae,We);return wt[Ce]={position:"absolute",left:Ut?void 0:`${Ve}px`,right:Ut?`${Ve}px`:void 0,top:`${ft}px`,height:`${Ke}px`,width:`${it}px`},wt[Ce]}},ie=()=>{O.value.isScrolling=!1,ke(()=>{P.value(-1,null,null)})};ut(()=>{if(!Tt)return;const{initScrollLeft:Pe,initScrollTop:Ae}=h,Ge=s(E);Ge&&(Re(Pe)&&(Ge.scrollLeft=Pe),Re(Ae)&&(Ge.scrollTop=Ae)),B()});const Se=()=>{const{direction:Pe}=h,{scrollLeft:Ae,scrollTop:Ge,updateRequested:ot}=s(O),pt=s(E);if(ot&&pt){if(Pe===ys)switch(vd()){case Yi:{pt.scrollLeft=-Ae;break}case dm:{pt.scrollLeft=Ae;break}default:{const{clientWidth:wt,scrollWidth:Ce}=pt;pt.scrollLeft=Ce-wt-Ae;break}}else pt.scrollLeft=Math.max(0,Ae);pt.scrollTop=Math.max(0,Ge)}},{resetAfterColumnIndex:xe,resetAfterRowIndex:De,resetAfter:ze}=y.proxy;b({windowRef:E,innerRef:N,getItemStyleCache:P,touchStartX:le,touchStartY:se,handleTouchStart:ae,handleTouchMove:ve,scrollTo:X,scrollToItem:oe,states:O,resetAfterColumnIndex:xe,resetAfterRowIndex:De,resetAfter:ze});const Ze=()=>{const{scrollbarAlwaysOn:Pe,scrollbarStartGap:Ae,scrollbarEndGap:Ge,totalColumn:ot,totalRow:pt}=h,wt=s(L),Ce=s(M),Ve=s(I),We=s(Y),{scrollLeft:Ut,scrollTop:Ke}=s(O),ft=Le(Cm,{ref:_,alwaysOn:Pe,startGap:Ae,endGap:Ge,class:w.e("horizontal"),clientSize:wt,layout:"horizontal",onScroll:V,ratio:wt*100/Ve,scrollFrom:Ut/(Ve-wt),total:pt,visible:!0}),it=Le(Cm,{ref:R,alwaysOn:Pe,startGap:Ae,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 Pe;const[Ae,Ge]=s(H),[ot,pt]=s(K),{data:wt,totalColumn:Ce,totalRow:Ve,useIsScrolling:We,itemKey:Ut}=h,Ke=[];if(Ve>0&&Ce>0)for(let ft=ot;ft<=pt;ft++)for(let it=Ae;it<=Ge;it++){const mt=Ut({columnIndex:it,data:wt,rowIndex:ft});Ke.push(Le(Be,{key:mt},(Pe=C.default)==null?void 0:Pe.call(C,{columnIndex:it,data:wt,isScrolling:We?s(O).isScrolling:void 0,style:j(ft,it),rowIndex:ft})))}return Ke},Et=()=>{const Pe=at(h.innerElement),Ae=nt();return[Le(Pe,rt(h.innerProps,{style:s(D),ref:N}),He(Pe)?Ae:{default:()=>Ae})]};return()=>{const Pe=at(h.containerElement),{horizontalScrollbar:Ae,verticalScrollbar:Ge}=Ze(),ot=Et();return Le("div",{key:0,class:w.e("wrapper"),role:h.role},[Le(Pe,{class:h.className,style:s(T),onScroll:z,ref:E},He(Pe)?ot:{default:()=>ot}),Ae,Ge])}}});var O$=_Z;const TZ=O$({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=ea:a=Ka),a){case Ki:return c;case ji:return d;case Ka:{const f=Math.round(d+(c-d)/2);return f<Math.ceil(n/2)?0:f>u+Math.floor(n/2)?u:f}case ea: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===fd&&(l>=d-t&&l<=c+t?a=ea:a=Ka),a){case Ki:return c;case ji:return d;case Ka:{const f=Math.round(d+(c-d)/2);return f<Math.ceil(t/2)?0:f>u+Math.floor(t/2)?u:f}case ea: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 R$=TZ;const{max:hd,min:x$,floor:I$}=Math,OZ={column:"columnWidth",row:"rowHeight"},km={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},bl=(e,t,n,o)=>{const[a,l,r]=[n[o],e[OZ[o]],n[km[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[km[o]]=t}return a[t]},M$=(e,t,n,o,a,l)=>{for(;n<=o;){const r=n+I$((o-n)/2),i=bl(e,r,t,l).offset;if(i===a)return r;i<a?n=r+1:o=r-1}return hd(0,n-1)},RZ=(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 M$(e,t,I$(n/2),x$(n,l-1),o,a)},N$=(e,t,n,o)=>{const[a,l]=[t[o],t[km[o]]];return(l>0?a[l].offset:0)>=n?M$(e,t,0,l,n,o):RZ(e,t,hd(0,l),n,o)},P$=({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},A$=({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},xZ={column:A$,row:P$},L$=(e,t,n,o,a,l,r)=>{const[i,u]=[l==="row"?e.height:e.width,xZ[l]],c=bl(e,t,a,l),d=u(e,a),f=hd(0,x$(d-i,c.offset)),v=hd(0,c.offset-i+r+c.size);switch(n===fd&&(o>=v-i&&o<=f+i?n=ea:n=Ka),n){case Ki:return f;case ji:return v;case Ka:return Math.round(v+(f-v)/2);case ea:default:return o>=v&&o<=f?o:v>f||o<v?v:f}},IZ=O$({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)=>L$(e,t,n,o,a,"column",l),getRowOffset:(e,t,n,o,a,l)=>L$(e,t,n,o,a,"row",l),getColumnStartIndexForOffset:(e,t,n)=>N$(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:P$,getEstimatedTotalWidth:A$,getRowStartIndexForOffset:(e,t,n)=>N$(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,Re(l)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,l-1)),Re(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=cm,estimatedRowHeight:t=cm})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}});var D$=IZ;const MZ=re({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:de("select")}}});function NZ(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 PZ=ye(MZ,[["render",NZ],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function AZ(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const LZ=he({allowCreate:Boolean,autocomplete:{type:q(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:zt,default:ul},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:Kt.teleported,persistent:{type:Boolean,default:!0},popperClass:Kt.popperClass,popperStyle:Kt.popperStyle,popperOptions:{type:q(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},size:Tn,props:{type:q(Object),default:()=>Xc},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:cl,default:"bottom-start"},fallbackPlacements:{type:q(Array),default:["bottom-start","top-start","right","left"]},tagType:{...Ha.type,default:"info"},tagEffect:{...Ha.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:Kt.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return Vt(e)||Re(e)}},suffixIcon:{type:zt,default:Pa},...Dl,...Gn(["ariaLabel"])}),DZ=he({data:Array,disabled:Boolean,hovering:Boolean,item:{type:q(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),BZ={[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},FZ={hover:e=>Re(e),select:(e,t)=>!0},md=Symbol("ElSelectV2Injection"),VZ=re({props:DZ,emits:FZ,setup(e,{emit:t}){const n=_e(md),o=de("select"),{hoverItem:a,selectOptionClick:l}=AZ(e,{emit:t}),{getLabel:r}=Ii(n.props),i=n.contentId;return{ns:o,contentId:i,hoverItem:a,selectOptionClick:l,getLabel:r}}}),zZ=["id","aria-selected","aria-disabled"];function HZ(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,zZ)}var WZ=ye(VZ,[["render",HZ],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const KZ={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number,id:String,ariaLabel:String};var jZ=re({name:"ElSelectDropdown",props:KZ,setup(e,{slots:t,expose:n}){const o=_e(md),a=de("select"),{getLabel:l,getValue:r,getDisabled:i}=Ii(o.props),u=A([]),c=A(),d=k(()=>e.data.length);ue(()=>d.value,()=>{var P,M;(M=(P=o.tooltipRef.value)==null?void 0:P.updatePopper)==null||M.call(P)});const f=k(()=>_t(o.props.estimatedOptionHeight)),v=k(()=>f.value?{itemSize:o.props.itemHeight}:{estimatedSize:o.props.estimatedOptionHeight,itemSize:P=>u.value[P]}),m=(P=[],M)=>{const{props:{valueKey:L}}=o;return Rt(M)?P&&P.some(H=>du(gn(H,L))===gn(M,L)):P.includes(M)},p=(P,M)=>{if(Rt(M)){const{valueKey:L}=o.props;return gn(P,L)===gn(M,L)}else return P===M},h=(P,M)=>o.props.multiple?m(P,r(M)):p(P,r(M)),g=(P,M)=>{const{disabled:L,multiple:H,multipleLimit:K}=o.props;return L||!M&&(H?K>0&&P.length>=K:!1)},b=P=>e.hoveringIndex===P;n({listRef:c,isSized:f,isItemDisabled:g,isItemHovering:b,isItemSelected:h,scrollToItem:P=>{const M=c.value;M&&M.scrollToItem(P)},resetScrollTop:()=>{const P=c.value;P&&P.resetScrollTop()}});const S=P=>{const{index:M,data:L,style:H}=P,K=s(f),{itemSize:Y,estimatedSize:I}=s(v),{modelValue:T}=o.props,{onSelect:D,onHover:B}=o,z=L[M];if(z.type==="Group")return Z(PZ,{item:z,style:H,height:K?Y:I},null);const U=h(T,z),V=g(T,U),G=b(M);return Z(WZ,rt(P,{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,R=()=>{E("forward")},N=()=>{E("backward")},O=P=>{const M=Ht(P),{tab:L,esc:H,down:K,up:Y,enter:I,numpadEnter:T}=fe;switch([H,K,Y,I,T].includes(M)&&(P.preventDefault(),P.stopPropagation()),M){case L:case H:break;case K:R();break;case Y:N();break;case I:case T:_();break}};return()=>{var P,M,L,H;const{data:K,width:Y}=e,{height:I,multiple:T,scrollbarAlwaysOn:D}=o.props,B=k(()=>mu?!0:D),z=s(f)?Sm:T$;return Z("div",{class:[a.b("dropdown"),a.is("multiple",T)],style:{width:`${Y}px`}},[(P=t.header)==null?void 0:P.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(v),{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 YZ(e,t){const{aliasProps:n,getLabel:o,getValue:a}=Ii(e),l=A(0),r=A(),i=k(()=>e.allowCreate&&e.filterable);ue(()=>e.options,m=>{const p=new Set(m.map(h=>o(h)));t.createdOptions=t.createdOptions.filter(h=>!p.has(o(h)))});function u(m){const p=h=>o(h)===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(h=>o(h)!==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(h=>a(h)===a(m));~p&&(t.createdOptions.splice(p,1),l.value--)}function v(){i.value&&(t.createdOptions.length=0,l.value=0)}return{createNewOption:d,removeNewOption:f,selectNewOption:c,clearAllNewOption:v}}const UZ=(e,t)=>{const{t:n}=yt(),o=mn(),a=de("select"),l=de("input"),{form:r,formItem:i}=An(),{inputId:u}=Eo(e,{formItemContext:i}),{aliasProps:c,getLabel:d,getValue:f,getDisabled:v,getOptions:m}=Ii(e),{valueOnClear:p,isEmptyValue:h}=ls(e),g=Lt({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),b=A(-1),C=A(!1),w=A(),y=A(),S=A(),E=A(),_=A(),R=A(),N=A(),O=A(),P=A(),M=A(),{isComposing:L,handleCompositionStart:H,handleCompositionEnd:K,handleCompositionUpdate:Y}=as({afterComposition:we=>tn(we)}),I=on(),{wrapperRef:T,isFocused:D,handleBlur:B}=za(_,{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=A([]),G=A(!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?Ee(e.modelValue)&&e.modelValue.length>0:!h(e.modelValue)),ae=k(()=>e.clearable&&!I.value&&se.value&&(D.value||g.inputHovering)),ve=k(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),oe=k(()=>ve.value&&a.is("reverse",G.value)),j=k(()=>(i==null?void 0:i.validateState)||""),ie=k(()=>{if(!!j.value)return oc[j.value]}),Se=k(()=>e.remote?e.debounce:0),xe=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(Cp(we),"i"),vt=kt=>ze.value||Ze.value?!0:we?Xe.test(d(kt)||""):!0;return e.loading?[]:[...g.createdOptions,...e.options].reduce((kt,Ln)=>{const Bo=m(Ln);if(Ee(Bo)){const Is=Bo.filter(vt);Is.length>0&&kt.push({label:d(Ln),type:"Group"},...Is)}else(e.remote||vt(Ln))&&kt.push(Ln);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}),Pe=k(()=>{const we=new Map;return V.value.forEach((Xe,vt)=>{we.set(Fe(f(Xe)),{option:Xe,index:vt})}),we}),Ae=k(()=>V.value.every(we=>v(we))),Ge=wn(),ot=k(()=>Ge.value==="small"?"small":"default"),pt=()=>{var we;if(Re(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,wt())}):b.value=Xe},wt=()=>{var we,Xe;const kt=document.createElement("canvas").getContext("2d"),Ln=a.be("dropdown","item"),Is=(((Xe=(we=O.value)==null?void 0:we.listRef)==null?void 0:Xe.innerRef)||document).querySelector(`.${Ln}`);if(Is===null||kt===null)return 0;const iu=getComputedStyle(Is),VO=Number.parseFloat(iu.paddingLeft)+Number.parseFloat(iu.paddingRight);return kt.font=`bold ${iu.font.replace(new RegExp(`\\b${iu.fontWeight}\\b`),"")}`,V.value.reduce((zO,HO)=>{const WO=kt.measureText(d(HO));return Math.max(WO.width,zO)},0)+VO},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+As: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(()=>Ee(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&&Pe.value.has(e.modelValue[we-1])){const{index:Xe}=Pe.value.get(e.modelValue[we-1]);return Xe}}else if(!h(e.modelValue)&&Pe.value.has(e.modelValue)){const{index:we}=Pe.value.get(e.modelValue);return we}return-1}),mt=k({get(){return G.value&&(e.loading||!xe.value||e.remote&&!!o.empty)&&(!C.value||!vo(g.previousQuery))},set(we){G.value=we}}),pe=k(()=>e.multiple?e.collapseTags?g.cachedOptions.slice(0,e.maxCollapseTags):g.cachedOptions:[]),Te=k(()=>e.multiple?e.collapseTags?g.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:ce,removeNewOption:Me,selectNewOption:st,clearAllNewOption:jt}=YZ(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),ce(g.inputValue),ke(()=>{Oe(g.inputValue)})},me=Ls(()=>{Cn(),C.value=!1},Se),Oe=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=>{sn(e.modelValue,we)||t(ht,we)},Nt=we=>{t(Ye,we),en(we),g.previousValue=e.multiple?String(we):we,ke(()=>{if(e.multiple&&Ee(e.modelValue)){const Xe=g.cachedOptions.slice(),vt=e.modelValue.map(kt=>Ea(kt,Xe));sn(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((Ln,Bo)=>gn(Ln,vt)===gn(Xe,vt)?(kt=Bo,!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},ta=()=>{var we,Xe;(Xe=(we=S.value)==null?void 0:we.updatePopper)==null||Xe.call(we)},lu=()=>{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&&Oe(""),e.filterable&&!e.reserveKeyword&&(g.inputValue="")}else g.selectedLabel=d(we),!sn(e.modelValue,Xe)&&Nt(Xe),G.value=!1,st(we),we.created||jt();ja()},ru=(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(),ja()},ja=()=>{var we;(we=_.value)==null||we.focus()},Ad=()=>{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()},Ld=()=>{g.inputValue.length>0?g.inputValue="":G.value=!1},Dd=we=>Vu(we,Xe=>!g.cachedOptions.some(vt=>f(vt)===Xe&&v(vt))),Bd=we=>{const Xe=Ht(we);if(!!e.multiple&&Xe!==fe.delete&&g.inputValue.length===0){we.preventDefault();const vt=e.modelValue.slice(),kt=Dd(vt);if(kt<0)return;const Ln=vt[kt];vt.splice(kt,1);const Bo=g.cachedOptions[kt];g.cachedOptions.splice(kt,1),Me(Bo),Nt(vt),t("remove-tag",Ln)}},Fd=()=>{let we;Ee(e.modelValue)?we=[]:we=p.value,g.selectedLabel="",G.value=!1,Nt(we),t("clear"),jt(),ja()},Xl=(we,Xe=void 0)=>{const vt=V.value;if(!["forward","backward"].includes(we)||I.value||vt.length<=0||Ae.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 Ln=vt[kt];if(v(Ln)||Ln.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(Ln=>Fe(f(Ln))===vt);if(kt)return kt}return{[c.value.value]:we,[c.value.label]:we}},Ya=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()};ue(()=>e.fitInputWidth,()=>{pt()}),ue(G,we=>{we?(e.persistent||pt(),Oe("")):(g.inputValue="",g.previousQuery=null,g.isBeforeHide=!0,ce(""))}),ue(()=>e.modelValue,(we,Xe)=>{var vt;(!we||Ee(we)&&we.length===0||e.multiple&&!sn(we.toString(),g.previousValue)||!e.multiple&&Fe(we)!==Fe(g.previousValue))&&_r(!0),!sn(we,Xe)&&e.validateEvent&&((vt=i==null?void 0:i.validate)==null||vt.call(i,"change").catch(Ln=>void 0))},{deep:!0}),ue(()=>e.options,()=>{const we=_.value;(!we||we&&document.activeElement!==we)&&_r()},{deep:!0,flush:"post"}),ue(()=>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 Ln=f(kt);let Bo=Ln;if(Rt(Bo)&&(Bo=gn(Ln,we)),vt.get(Bo))break;vt.set(Bo,!0)}}),ut(()=>{_r()}),Qt(w,dt),Qt(y,Hn),Qt(T,ta),Qt(P,lu),Qt(M,so);let su;return ue(()=>mt.value,we=>{we?su=Qt(O,ta).stop:(su==null||su(),su=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:ve,iconReverse:oe,tagStyle:Ve,collapseTagStyle:We,popperSize:b,dropdownMenuVisible:mt,hasModelValue:se,shouldShowPlaceholder:Ut,selectDisabled:I,selectSize:Ge,needStatusIcon:X,showClearBtn:ae,states:g,isFocused:D,nsSelect:a,nsInput:l,inputRef:_,menuRef:O,tagMenuRef:P,tooltipRef:S,tagTooltipRef:E,selectRef:w,wrapperRef:T,selectionRef:y,prefixRef:R,suffixRef:N,collapseItemRef:M,popperRef:ft,validateState:j,validateIcon:ie,showTagList:pe,collapseTagList:Te,debouncedOnInputChange:me,deleteTag:ru,getLabel:d,getValue:f,getDisabled:v,getValueKey:Fe,getIndex:Ya,handleClear:Fd,handleClickOutside:hn,handleDel:Bd,handleEsc:Ld,focus:ja,blur:Ad,handleMenuEnter:eo,handleResize:dt,resetSelectionWidth:Hn,updateTooltip:ta,updateTagTooltip:lu,updateOptions:Et,toggleMenu:an,scrollTo:jn,onInput:tn,onKeyboardNavigate:Xl,onKeyboardSelect:be,onSelect:ql,onHover:qe,handleCompositionStart:H,handleCompositionEnd:K,handleCompositionUpdate:Y}};var GZ=UZ;const qZ=re({name:"ElSelectV2",components:{ElSelectMenu:jZ,ElTag:Wa,ElTooltip:zn,ElIcon:$e},directives:{ClickOutside:ml},props:LZ,emits:BZ,setup(e,{emit:t}){const n=k(()=>{const{modelValue:u,multiple:c}=e,d=c?[]:void 0;return Ee(u)?c?u:d:c?d:u}),o=GZ(Lt({...Mn(e),modelValue:n}),t),{calculatorRef:a,inputStyle:l}=ac(),r=Fn();St(md,{props:Lt({...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:jd}}}),XZ=["id","autocomplete","tabindex","aria-expanded","aria-label","disabled","aria-controls","aria-activedescendant","readonly","name"],ZZ=["textContent"],JZ={key:1};function QZ(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=Hd("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,v;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,bt(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)},()=>[Ct(ge(e.getLabel(m)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?($(),ne(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,bt(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)},()=>[Ct(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,XZ),[[fu,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,ZZ)):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:(v=(f=e.allOptionsValueMap.get(e.modelValue))==null?void 0:f.index)!=null?v:-1,label:e.currentPlaceholder,value:e.modelValue},()=>[W("span",null,ge(e.currentPlaceholder),1)]):($(),F("span",JZ,ge(e.currentPlaceholder),1))],2)):te("v-if",!0)],2),W("div",{ref:"suffixRef",class:x(e.nsSelect.e("suffix"))},[e.iconComponent?tt(($(),ne(u,{key:0,class:x([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:Q(()=>[($(),ne(at(e.iconComponent)))]),_:1},8,["class"])),[[xt,!e.showClearBtn]]):te("v-if",!0),e.showClearBtn&&e.clearIcon?($(),ne(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(()=>[($(),ne(at(e.clearIcon)))]),_:1},8,["class","onClick"])):te("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?($(),ne(u,{key:2,class:x([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:Q(()=>[($(),ne(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},mo({default:Q(f=>[ee(e.$slots,"default",Xa(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 eJ=ye(qZ,[["render",QZ],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);const B$=Qe(eJ),F$=he({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:q([Number,Object])}}),V$=he({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),tJ=re({name:"ElSkeletonItem",__name:"skeleton-item",props:V$,setup(e){const t=de("skeleton");return(n,o)=>($(),F("div",{class:x([s(t).e("item"),s(t).e(n.variant)])},[n.variant==="image"?($(),ne(s($V),{key:0})):te("v-if",!0)],2))}});var gd=ye(tJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const nJ=re({name:"ElSkeleton",__name:"skeleton",props:F$,setup(e,{expose:t}){const n=e,o=de("skeleton"),a=gw(Ft(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,bt(l.count,i=>($(),F(Be,{key:i},[s(a)?ee(l.$slots,"template",{key:i},()=>[Z(gd,{class:x(s(o).is("first")),variant:"p"},null,8,["class"]),($(!0),F(Be,null,bt(l.rows,u=>($(),ne(gd,{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",Xa(rt({key:1},l.$attrs)))}});var oJ=ye(nJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const z$=Qe(oJ,{SkeletonItem:gd}),H$=cn(gd),Em=Symbol("sliderContextKey"),W$=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:cl,default:"top"},marks:{type:q(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...Gn(["ariaLabel"])}),$m=e=>Re(e)||Ee(e)&&e.every(Re),K$={[Ye]:$m,[Sn]:$m,[ht]:$m},aJ=(e,t,n)=>{const o=A();return ut(async()=>{e.range?(Ee(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]):(!Re(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}},lJ=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]})):[]),rJ=(e,t,n)=>{const{formItem:o}=An(),a=Zt(),l=A(),r=A(),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)}%`),v=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:v.value}:{width:f.value,left:v.value}),h=()=>{if(a.value){const P=a.value.getBoundingClientRect();t.sliderSize=P[e.vertical?"height":"width"]}},g=P=>{const M=e.min+P*(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=P=>{const M=g(P);return M.value.setPosition(P),M},C=P=>{t.firstValue=P!=null?P:e.min,y(e.range?[c.value,d.value]:P!=null?P:e.min)},w=P=>{t.secondValue=P,e.range&&y([c.value,d.value])},y=P=>{n(Ye,P),n(Sn,P)},S=async()=>{await ke(),n(ht,e.range?[c.value,d.value]:e.modelValue)},E=P=>{var M,L,H,K,Y,I;if(u.value||t.dragging)return;h();let T=0;if(e.vertical){const D=(H=(L=(M=P.touches)==null?void 0:M.item(0))==null?void 0:L.clientY)!=null?H:P.clientY;T=(a.value.getBoundingClientRect().bottom-D)/t.sliderSize*100}else{const D=(I=(Y=(K=P.touches)==null?void 0:K.item(0))==null?void 0:Y.clientX)!=null?I:P.clientX,B=a.value.getBoundingClientRect().left;T=(D-B)/t.sliderSize*100}if(!(T<0||T>100))return b(T)};return{elFormItem:o,slider:a,firstButton:l,secondButton:r,sliderDisabled:u,minValue:c,maxValue:d,runwayStyle:m,barStyle:p,resetSize:h,setPosition:b,emitChange:S,onSliderWrapperPrevent:P=>{var M,L;(((M=i.firstButton.value)==null?void 0:M.dragging)||((L=i.secondButton.value)==null?void 0:L.dragging))&&P.preventDefault()},onSliderClick:P=>{E(P)&&S()},onSliderDown:async P=>{const M=E(P);M&&(await ke(),M.value.onButtonDown(P))},onSliderMarkerDown:P=>{if(u.value||t.dragging)return;b(P)&&S()},setFirstValue:C,setSecondValue:w}},sJ=(e,t,n)=>{const o=A(),a=A(!1),l=k(()=>t.value instanceof Function),r=k(()=>l.value&&t.value(e.modelValue)||e.modelValue),i=ia(()=>{n.value&&(a.value=!0)},50),u=ia(()=>{n.value&&(a.value=!1)},50);return{tooltip:o,tooltipVisible:a,formatValue:r,displayTooltip:i,hideTooltip:u}},iJ=(e,t,n)=>{const{disabled:o,min:a,max:l,step:r,showTooltip:i,persistent:u,precision:c,sliderSize:d,formatTooltip:f,emitChange:v,resetSize:m,updateDragging:p}=_e(Em),{tooltip:h,tooltipVisible:g,formatValue:b,displayTooltip:C,hideTooltip:w}=sJ(e,f,i),y=A(),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()},R=()=>{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),v())},P=()=>{O(-r.value)},M=()=>{O(r.value)},L=()=>{O(-r.value*4)},H=()=>{O(r.value*4)},K=()=>{o.value||(U(0),v())},Y=()=>{o.value||(U(100),v())},I=V=>{const G=Ht(V);let X=!0;switch(G){case fe.left:case fe.down:P();break;case fe.right:case fe.up:M();break;case fe.home:K();break;case fe.end:Y();break;case fe.pageDown:L();break;case fe.pageUp:H();break;default:X=!1;break}X&&V.preventDefault()},T=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}=T(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}=T(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),v()},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=Xs(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 ae=X/G,ve=Math.round(V/ae);se=a.value+ve*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(),h.value.updatePopper()};return ue(()=>t.dragging,V=>{p(V)}),Mt(y,"touchstart",N,{passive:!1}),{disabled:o,button:y,tooltip:h,tooltipVisible:g,showTooltip:i,persistent:u,wrapperStyle:E,formatValue:b,handleMouseEnter:_,handleMouseLeave:R,onButtonDown:N,onKeyDown:I,setPosition:U}},uJ=(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}%`}}),cJ=(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&&Ee(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(v=>void 0)),t.oldValue=f.slice())):!e.range&&Re(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(v=>void 0)),t.oldValue=f)))};u(),ue(()=>t.dragging,c=>{c||u()}),ue(()=>e.modelValue,(c,d)=>{t.dragging||Ee(c)&&Ee(d)&&c.every((f,v)=>f===d[v])&&t.firstValue===c[0]&&t.secondValue===c[1]||u()},{deep:!0}),ue(()=>[e.min,e.max],()=>{u()})},dJ=he({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:cl,default:"top"}}),fJ={[Ye]:e=>Re(e)},pJ=["tabindex"],vJ=re({name:"ElSliderButton",__name:"button",props:dJ,emits:fJ,setup(e,{expose:t,emit:n}){const o=e,a=n,l=de("slider"),r=Lt({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?v.value:!1),{disabled:u,button:c,tooltip:d,showTooltip:f,persistent:v,tooltipVisible:m,wrapperStyle:p,formatValue:h,handleMouseEnter:g,handleMouseLeave:b,onButtonDown:C,onKeyDown:w,setPosition:y}=iJ(o,r,a),{hovering:S,dragging:E}=Mn(r);return t({onButtonDown:C,onKeyDown:w,setPosition:y,hovering:S,dragging:E}),(_,R)=>($(),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:R[0]||(R[0]=(...N)=>s(g)&&s(g)(...N)),onMouseleave:R[1]||(R[1]=(...N)=>s(b)&&s(b)(...N)),onMousedown:R[2]||(R[2]=(...N)=>s(C)&&s(C)(...N)),onFocus:R[3]||(R[3]=(...N)=>s(g)&&s(g)(...N)),onBlur:R[4]||(R[4]=(...N)=>s(b)&&s(b)(...N)),onKeydown:R[5]||(R[5]=(...N)=>s(w)&&s(w)(...N))},[Z(s(zn),{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(h)),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,pJ))}});var j$=ye(vJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const hJ=he({mark:{type:q([String,Object]),default:void 0}});var mJ=re({name:"ElSliderMarker",props:hJ,setup(e){const t=de("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 gJ=["id","role","aria-label","aria-labelledby"],bJ={key:1},yJ=re({name:"ElSlider",__name:"slider",props:W$,emits:K$,setup(e,{expose:t,emit:n}){const o=e,a=n,l=de("slider"),{t:r}=yt(),i=Lt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:u,slider:c,firstButton:d,secondButton:f,sliderDisabled:v,minValue:m,maxValue:p,runwayStyle:h,barStyle:g,resetSize:b,emitChange:C,onSliderWrapperPrevent:w,onSliderClick:y,onSliderDown:S,onSliderMarkerDown:E,setFirstValue:_,setSecondValue:R}=rJ(o,i,a),{stops:N,getStopStyle:O}=uJ(o,i,m,p),{inputId:P,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}`),T=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=lJ(o);cJ(o,i,m,p,a,u);const U=k(()=>{const ae=[o.min,o.max,o.step].map(ve=>{const oe=`${ve}`.split(".")[1];return oe?oe.length:0});return Math.max.apply(null,ae)}),{sliderWrapper:V}=aJ(o,i,b),{firstValue:G,secondValue:X,sliderSize:le}=Mn(i),se=ae=>{i.dragging=ae};return Mt(V,"touchstart",w,{passive:!1}),Mt(V,"touchmove",w,{passive:!1}),St(Em,{...Mn(o),sliderSize:le,disabled:v,precision:U,emitChange:C,resetSize:b,updateDragging:se}),t({onSliderClick:y}),(ae,ve)=>{var oe,j;return $(),F("div",{id:ae.range?s(P):void 0,ref_key:"sliderWrapper",ref:V,class:x(B.value),role:ae.range?"group":void 0,"aria-label":ae.range&&!s(M)?K.value:void 0,"aria-labelledby":ae.range&&s(M)?(oe=s(u))==null?void 0:oe.labelId:void 0},[W("div",{ref_key:"slider",ref:c,class:x([s(l).e("runway"),{"show-input":ae.showInput&&!ae.range},s(l).is("disabled",s(v))]),style:Ie(s(h)),onMousedown:ve[0]||(ve[0]=(...ie)=>s(S)&&s(S)(...ie)),onTouchstartPassive:ve[1]||(ve[1]=(...ie)=>s(S)&&s(S)(...ie))},[W("div",{class:x(s(l).e("bar")),style:Ie(s(g))},null,6),Z(j$,{id:ae.range?void 0:s(P),ref_key:"firstButton",ref:d,"model-value":s(G),vertical:ae.vertical,"tooltip-class":ae.tooltipClass,placement:ae.placement,role:"slider","aria-label":ae.range||!s(M)?Y.value:void 0,"aria-labelledby":!ae.range&&s(M)?(j=s(u))==null?void 0:j.labelId:void 0,"aria-valuemin":ae.min,"aria-valuemax":ae.range?s(X):ae.max,"aria-valuenow":s(G),"aria-valuetext":I.value,"aria-orientation":ae.vertical?"vertical":"horizontal","aria-disabled":s(v),"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"]),ae.range?($(),ne(j$,{key:0,ref_key:"secondButton",ref:f,"model-value":s(X),vertical:ae.vertical,"tooltip-class":ae.tooltipClass,placement:ae.placement,role:"slider","aria-label":T.value,"aria-valuemin":s(G),"aria-valuemax":ae.max,"aria-valuenow":s(X),"aria-valuetext":D.value,"aria-orientation":ae.vertical?"vertical":"horizontal","aria-disabled":s(v),"onUpdate:modelValue":s(R)},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),ae.showStops?($(),F("div",bJ,[($(!0),F(Be,null,bt(s(N),(ie,Se)=>($(),F("div",{key:Se,class:x(s(l).e("stop")),style:Ie(s(O)(ie))},null,6))),128))])):te("v-if",!0),s(z).length>0?($(),F(Be,{key:2},[W("div",null,[($(!0),F(Be,null,bt(s(z),(ie,Se)=>($(),F("div",{key:Se,style:Ie(s(O)(ie.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,bt(s(z),(ie,Se)=>($(),ne(s(mJ),{key:Se,mark:ie.mark,style:Ie(s(O)(ie.position)),onMousedown:je(xe=>s(E)(ie.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):te("v-if",!0)],38),ae.showInput&&!ae.range?($(),ne(s(em),{key:0,ref:"input","model-value":s(G),class:x(s(l).e("input")),step:ae.step,disabled:s(v),controls:ae.showInputControls,min:ae.min,max:ae.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,gJ)}}});var wJ=ye(yJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const Y$=Qe(wJ),U$=he({prefixCls:{type:String}}),G$=re({name:"ElSpaceItem",props:U$,setup(e,{slots:t}){const n=de("space"),o=k(()=>`${e.prefixCls||n.b()}__item`);return()=>Le("div",{class:o.value},ee(t,"default"))}}),q$={small:8,default:12,large:16};function X$(e){const t=de("space"),n=k(()=>[t.b(),t.m(e.direction),e.class]),o=A(0),a=A(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(Ee(i)){const[f=0,v=0]=i;o.value=f,a.value=v}else{let f;Re(i)?f=i:f=q$[i||"small"]||q$.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 Z$=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)||Re(e)||He(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:na,validator:e=>Re(e)||Ee(e)&&e.length===2&&e.every(Re)}}),CJ=re({name:"ElSpace",props:Z$,setup(e,{slots:t}){const{classes:n,containerStyle:o,itemStyle:a}=X$(e);function l(r,i="",u=[]){const{prefixCls:c}=e;return r.forEach((d,f)=>{Op(d)?Ee(d.children)&&d.children.forEach((v,m)=>{Op(v)&&Ee(v.children)?l(v.children,`${i+m}-`,u):Jt(v)&&(v==null?void 0:v.type)===Ua?u.push(v):u.push(Z(G$,{style:a.value,prefixCls:c,key:`nested-${i+m}`},{default:()=>[v]},Uo.PROPS|Uo.STYLE,["style","prefixCls"]))}):ez(d)&&u.push(Z(G$,{style:a.value,prefixCls:c,key:`LoopKey${i+f}`},{default:()=>[d]},Uo.PROPS|Uo.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(Ee(c.children)){let d=l(c.children);if(i){const f=d.length-1;d=d.reduce((v,m,p)=>{const h=[...v,m];return p!==f&&h.push(Z("span",{style:[a.value,u==="vertical"?"width: 100%":null],key:p},[Jt(i)?i:Ct(i,Uo.TEXT)],Uo.STYLE)),h},[])}return Z("div",{class:n.value,style:o.value},d,Uo.STYLE|Uo.CLASS)}return c.children}}}),J$=Qe(CJ),Q$=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])}}),SJ=re({name:"ElStatistic",__name:"statistic",props:Q$,setup(e,{expose:t}){const n=e,o=de("statistic"),a=k(()=>{const{value:l,formatter:r,precision:i,decimalSeparator:u,groupSeparator:c}=n;if(lt(r))return r(l);if(!Re(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",{},()=>[Ct(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 kJ=ye(SJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const _m=Qe(kJ),e_=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])}}),t_={finish:()=>!0,[ht]:e=>Re(e)},EJ=[["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]],n_=e=>Re(e)?new Date(e).getTime():e.valueOf(),o_=(e,t)=>{let n=e;const o=/\[([^\]]*)]/g;return EJ.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")},$J=re({name:"ElCountdown",__name:"countdown",props:e_,emits:t_,setup(e,{expose:t,emit:n}){const o=e,a=n;let l;const r=A(0),i=k(()=>o_(r.value,o.format)),u=f=>o_(f,o.format),c=()=>{l&&(rl(l),l=void 0)},d=()=>{const f=n_(o.value),v=()=>{let m=f-Date.now();a(ht,m),m<=0?(m=0,c(),a("finish")):l=Ma(v),r.value=m};l=Ma(v)};return ut(()=>{r.value=n_(o.value)-Date.now(),ue(()=>[o.value,o.format],()=>{c(),d()},{immediate:!0})}),Dt(()=>{c()}),t({displayValue:i}),(f,v)=>($(),ne(s(_m),{value:r.value,title:f.title,prefix:f.prefix,suffix:f.suffix,"value-style":f.valueStyle,formatter:u},mo({_:2},[bt(f.$slots,(m,p)=>({name:p,fn:Q(()=>[ee(f.$slots,p)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var _J=ye($J,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const a_=Qe(_J),l_=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"}}),r_={[ht]:(e,t)=>[e,t].every(Re)},Tm="ElSteps",TJ=re({name:"ElSteps",__name:"steps",props:l_,emits:r_,setup(e,{emit:t}){const n=e,o=t,a=de("steps"),{children:l,addChild:r,removeChild:i,ChildrenSorter:u}=Ci(ct(),"ElStep");return ue(l,()=>{l.value.forEach((c,d)=>{c.setIndex(d)})}),St(Tm,{props:n,steps:l,addStep:r,removeStep:i}),ue(()=>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 OJ=ye(TJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const s_=he({title:{type:String,default:""},icon:{type:zt},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),RJ=re({name:"ElStep",__name:"item",props:s_,setup(e){const t=e,n=de("step"),o=A(-1),a=A({}),l=A(""),r=_e(Tm),i=ct();let u=0,c=0;ut(()=>{ue([()=>r.props.active,()=>r.props.processStatus,()=>r.props.finishStatus],([R],[N])=>{c=N||0,u=R-c,E(R)},{immediate:!0})});const d=k(()=>t.status||l.value),f=k(()=>{const R=r.steps.value[o.value-1];return R?R.internalStatus.value:"wait"}),v=k(()=>r.props.alignCenter),m=k(()=>r.props.direction==="vertical"),p=k(()=>r.props.simple),h=k(()=>r.steps.value.length),g=k(()=>{var R;return((R=r.steps.value[h.value-1])==null?void 0:R.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&&!v.value),n.is("center",v.value&&!m.value&&!p.value)]),w=k(()=>{const R={flexBasis:Re(b.value)?`${b.value}px`:b.value?b.value:`${100/(h.value-(v.value?0:1))}%`};return m.value||g.value&&(R.maxWidth=`${100/h.value}%`),R}),y=R=>{o.value=R},S=R=>{const N=R==="wait",P={transitionDelay:`${Math.abs(u)===1?0:u>0?(o.value+1-c)*150:-(o.value+1-r.props.active)*150}ms`},M=R===r.props.processStatus||N?0:100;P.borderWidth=M&&!p.value?"1px":0,P[r.props.direction==="vertical"?"height":"width"]=`${M}%`,a.value=P},E=R=>{R>o.value?l.value=r.props.finishStatus:R===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(_),Dt(()=>{r.removeStep(_)}),(R,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(R.icon||R.$slots.icon?"icon":"text")])},[ee(R.$slots,"icon",{},()=>[R.icon?($(),ne(s($e),{key:0,class:x(s(n).e("icon-inner"))},{default:Q(()=>[($(),ne(at(R.icon)))]),_:1},8,["class"])):d.value==="success"?($(),ne(s($e),{key:1,class:x([s(n).e("icon-inner"),s(n).is("status")])},{default:Q(()=>[Z(s(si))]),_:1},8,["class"])):d.value==="error"?($(),ne(s($e),{key:2,class:x([s(n).e("icon-inner"),s(n).is("status")])},{default:Q(()=>[Z(s(Yo))]),_: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(R.$slots,"title",{},()=>[Ct(ge(R.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(R.$slots,"description",{},()=>[Ct(ge(R.description),1)])],2))],2)],6))}});var i_=ye(RJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const u_=Qe(OJ,{Step:i_}),c_=cn(i_),d_=he({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:j1},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:zt},activeActionIcon:{type:zt},activeIcon:{type:zt},inactiveIcon:{type:zt},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"])}),f_={[Ye]:e=>Vt(e)||He(e)||Re(e),[ht]:e=>Vt(e)||He(e)||Re(e),[Sn]:e=>Vt(e)||He(e)||Re(e)},xJ=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],IJ=["aria-hidden"],MJ={key:1},NJ={key:1},PJ=["aria-hidden"],p_="ElSwitch",AJ=re({name:p_,__name:"switch",props:d_,emits:f_,setup(e,{expose:t,emit:n}){const o=e,a=n,{formItem:l}=An(),r=wn(),i=de("switch"),{inputId:u}=Eo(o,{formItemContext:l}),c=on(k(()=>{if(o.loading)return!0})),d=A(o.modelValue!==!1),f=Zt(),v=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)]),h=k(()=>({width:un(o.width)}));ue(()=>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)),ue(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),Vt(E)].includes(!0)||_n(p_,"beforeChange must return type `Promise<boolean>` or `boolean`"),Bs(E)?E.then(R=>{R&&C()}).catch(R=>{}):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(v.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,xJ),!S.inlinePrompt&&(S.inactiveIcon||S.inactiveText||S.$slots.inactive)?($(),F("span",{key:0,class:x(m.value)},[ee(S.$slots,"inactive",{},()=>[S.inactiveIcon?($(),ne(s($e),{key:0},{default:Q(()=>[($(),ne(at(S.inactiveIcon)))]),_:1})):te("v-if",!0),!S.inactiveIcon&&S.inactiveText?($(),F("span",{key:1,"aria-hidden":b.value},ge(S.inactiveText),9,IJ)):te("v-if",!0)])],2)):te("v-if",!0),W("span",{class:x(s(i).e("core")),style:Ie(h.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?($(),ne(s($e),{key:0},{default:Q(()=>[($(),ne(at(S.activeIcon)))]),_:1})):te("v-if",!0),!S.activeIcon&&S.activeText?($(),F("span",NJ,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?($(),ne(s($e),{key:0},{default:Q(()=>[($(),ne(at(S.inactiveIcon)))]),_:1})):te("v-if",!0),!S.inactiveIcon&&S.inactiveText?($(),F("span",MJ,ge(S.inactiveText),1)):te("v-if",!0)])],2))],2)):te("v-if",!0),W("div",{class:x(s(i).e("action"))},[S.loading?($(),ne(s($e),{key:0,class:x(s(i).is("loading"))},{default:Q(()=>[Z(s(Aa))]),_:1},8,["class"])):b.value?ee(S.$slots,"active-action",{key:1},()=>[S.activeActionIcon?($(),ne(s($e),{key:0},{default:Q(()=>[($(),ne(at(S.activeActionIcon)))]),_:1})):te("v-if",!0)]):b.value?te("v-if",!0):ee(S.$slots,"inactive-action",{key:2},()=>[S.inactiveActionIcon?($(),ne(s($e),{key:0},{default:Q(()=>[($(),ne(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?($(),ne(s($e),{key:0},{default:Q(()=>[($(),ne(at(S.activeIcon)))]),_:1})):te("v-if",!0),!S.activeIcon&&S.activeText?($(),F("span",{key:1,"aria-hidden":!b.value},ge(S.activeText),9,PJ)):te("v-if",!0)])],2)):te("v-if",!0)],2))}});var LJ=ye(AJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const v_=Qe(LJ),Om=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},DJ=function(e,t,n,o,a){if(!t&&!o&&(!a||Ee(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?Gf(Pn(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,v,m,p;if(o)return o(i.value,u.value);for(let h=0,g=(d=(c=i.key)==null?void 0:c.length)!=null?d:0;h<g;h++){if(((f=i.key)==null?void 0:f[h])<((v=u.key)==null?void 0:v[h]))return-1;if(((m=i.key)==null?void 0:m[h])>((p=u.key)==null?void 0:p[h]))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)},h_=function(e,t){let n=null;return e.columns.forEach(o=>{o.id===t&&(n=o)}),n},BJ=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},m_=function(e,t,n){const o=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return o?h_(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];Ee(u)&&Object.assign(l,Ss(u,t,!0,o))}}),l};function FJ(e,t){const n={};let o;for(o in e)n[o]=e[o];for(o in t)if(Dn(t,o)){const a=t[o];_t(a)||(n[o]=a)}return n}function Rm(e){return e===""||_t(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function g_(e){return e===""||_t(e)||(e=Rm(e),Number.isNaN(e)&&(e=80)),e}function VJ(e){return Re(e)?e:He(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function zJ(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function bd(e,t,n,o,a,l,r){let i=l!=null?l:0,u=!1;const d=(()=>{if(!r)return e.indexOf(t);const h=Jn(t,r);return e.findIndex(g=>Jn(g,r)===h)})(),f=d!==-1,v=a==null?void 0:a.call(null,t,i),m=h=>{h==="add"?e.push(t):e.splice(d,1),u=!0},p=h=>{let g=0;const b=(o==null?void 0:o.children)&&h[o.children];return b&&Ee(b)&&(g+=b.length,b.forEach(C=>{g+=p(C)})),g};return(!a||v)&&(Vt(n)?n&&!f?m("add"):!n&&f&&m("remove"):m(f?"remove":"add")),!(o!=null&&o.checkStrictly)&&(o==null?void 0:o.children)&&Ee(t[o.children])&&t[o.children].forEach(h=>{const g=bd(e,h,n!=null?n:!f,o,a,i+1,r);i+=p(h)+1,g&&(u=g)}),u}function HJ(e,t,n="children",o="hasChildren",a=!1){const l=i=>!(Ee(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 WJ=(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:ri(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 KJ(e,t,n,o,a,l){var r;const i=WJ(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;np(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(zn,{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 v=document.createElement("div");Sl(f,v),f.component.exposed.onOpen();const m=c==null?void 0:c.querySelector(`.${d}-scrollbar__wrap`);ro=()=>{var p,h;(h=(p=f.component)==null?void 0:p.exposed)!=null&&h.onClose&&f.component.exposed.onClose(),Sl(null,v);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 b_(e){return e.children?Gf(e.children,b_):[e]}function y_(e,t){return e+t.colSpan}const w_=(e,t,n,o)=>{let a=0,l=e;const r=n.states.columns.value;if(o){const u=b_(o[e]);a=r.slice(0,r.indexOf(u[0])).reduce(y_,0),l=a+u.reduce(y_,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}:{}},xm=(e,t,n,o,a,l=0)=>{const r=[],{direction:i,start:u,after:c}=w_(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 C_(e,t){return e+(zr(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Im=(e,t,n,o)=>{const{direction:a,start:l=0,after:r=0}=w_(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(C_,0):i.right=c.slice(r+1).reverse().reduce(C_,0),i},ks=(e,t)=>{!e||Number.isNaN(e[t])||(e[t]=`${e[t]}px`)};function S_(e){return e.some(t=>Jt(t)?!(t.type===Ua||t.type===Be&&!S_(t.children)):!0)?e:null}function jJ(e){const t=ct(),n=A(!1),o=A([]);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,v)=>{const m=Jn(v,c);return d[m]&&f.push(v),f},[])}else o.value=[]},toggleRowExpansion:(u,c)=>{bd(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((v,m)=>{const p=f[m];return p&&v.push(p.row),v},[])},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 YJ(e){const t=ct(),n=A(null),o=A(null),a=c=>{t.store.assertRowKey(),n.value=c,r(c)},l=()=>{n.value=null},r=c=>{var d;const{data:f,rowKey:v}=e;let m=null;v.value&&(m=(d=(s(f)||[]).find(p=>Jn(p,v.value)===c))!=null?d:null),o.value=m!=null?m:null,t.emit("current-change",o.value,null)};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 v=Jn(f,c);r(v)}else o.value=null;zr(o.value)&&t.emit("current-change",null,f)}else n.value&&(r(n.value),l())},states:{_currentRowKey:n,currentRow:o}}}function UJ(e){const t=A([]),n=A({}),o=A(16),a=A(!1),l=A({}),r=A("hasChildren"),i=A("children"),u=A(!1),c=ct(),d=k(()=>{if(!e.rowKey.value)return{};const y=e.data.value||[];return v(y)}),f=k(()=>{const y=e.rowKey.value,S=Object.keys(l.value),E={};return S.length&&S.forEach(_=>{if(l.value[_].length){const R={children:[]};l.value[_].forEach(N=>{const O=Jn(N,y);R.children.push(O),N[r.value]&&!E[O]&&(E[O]={children:[]})}),E[_]=R}}),E}),v=y=>{const S=e.rowKey.value,E={};return HJ(y,(_,R,N)=>{const O=Jn(_,S);Ee(R)?E[O]={children:R.map(P=>Jn(P,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 R=d.value,N=f.value,O=Object.keys(R),P={};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 T=S||t.value&&t.value.includes(I);return!!((Y==null?void 0:Y.expanded)||T)}};O.forEach(Y=>{const I=M[Y],T={...R[Y]};if(T.expanded=H(I,Y),T.lazy){const{loaded:D=!1,loading:B=!1}=I||{};T.loaded=!!D,T.loading=!!B,L.push(Y)}P[Y]=T});const K=Object.keys(N);a.value&&K.length&&L.length&&K.forEach(Y=>{var I;const T=M[Y],D=N[Y].children;if(L.includes(Y)){if(((I=P[Y].children)==null?void 0:I.length)!==0)throw new Error("[ElTable]children must be an empty array.");P[Y].children=D}else{const{loaded:B=!1,loading:z=!1}=T||{};P[Y]={lazy:!0,loaded:!!B,loading:!!z,expanded:H(T,Y),children:D,level:void 0}}})}n.value=P,(_=c.store)==null||_.updateTableScrollY()};ue(()=>t.value,()=>{m(!0)}),ue(()=>d.value,()=>{m()}),ue(()=>f.value,()=>{m()});const p=y=>{t.value=y,m()},h=y=>a.value&&y&&"loaded"in y&&!y.loaded,g=(y,S)=>{c.store.assertRowKey();const E=e.rowKey.value,_=Jn(y,E),R=_&&n.value[_];if(_&&R&&"expanded"in R){const N=R.expanded;S=_t(S)?!R.expanded:S,n.value[_].expanded=S,N!==S&&c.emit("expand-change",y,S),S&&h(R)&&C(y,_,R),c.store.updateTableScrollY()}},b=y=>{c.store.assertRowKey();const S=e.rowKey.value,E=Jn(y,S),_=n.value[E];h(_)?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,R=>{if(!Ee(R))throw new TypeError("[ElTable] data must be an array");n.value[S].loading=!1,n.value[S].loaded=!0,n.value[S].expanded=!0,R.length&&(l.value[S]=R),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:v,states:{expandRowKeys:t,treeData:n,indent:o,lazy:a,lazyTreeNodeMap:l,lazyColumnIdentifier:r,childrenColumnName:i,checkStrictly:u}}}const GJ=(e,t)=>{const n=t.sortingColumn;return!n||He(n.sortable)?e:DJ(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},yd=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,yd(n.children)):t.push(n)}),t};function qJ(){var e;const t=ct(),{size:n}=Mn((e=t.proxy)==null?void 0:e.$props),o=A(null),a=A([]),l=A([]),r=A(!1),i=A([]),u=A([]),c=A([]),d=A([]),f=A([]),v=A([]),m=A([]),p=A([]),h=[],g=A(0),b=A(0),C=A(0),w=A(!1),y=A([]),S=A(!1),E=A(!1),_=A(null),R=A({}),N=A(null),O=A(null),P=A(null),M=A(null),L=A(null),H=k(()=>o.value?Ss(y.value,o.value):void 0);ue(a,()=>{var Ke;t.state&&(T(!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(ce=>{Y(ce)}),d.value=i.value.filter(ce=>[!0,"left"].includes(ce.fixed));const Ke=i.value.find(ce=>ce.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(ce=>ce.fixed==="right");const it=i.value.filter(ce=>(ft?ce.type!=="selection":!0)&&!ce.fixed);u.value=Array.from(d.value).concat(it).concat(f.value);const mt=yd(it),pe=yd(d.value),Te=yd(f.value);g.value=mt.length,b.value=pe.length,C.value=Te.length,c.value=Array.from(pe).concat(mt).concat(Te),r.value=d.value.length>0||f.value.length>0},T=(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,pe=Ss(a.value,o.value,!0,mt);for(const Te in H.value)Dn(H.value,Te)&&!pe[Te]&&it.push(H.value[Te].row)}else it=y.value.filter(mt=>!a.value.includes(mt));if(it.length){const mt=y.value.filter(pe=>!it.includes(pe));y.value=mt,t.emit("selection-change",mt.slice())}},U=()=>(y.value||[]).slice(),V=(Ke,ft,it=!0,mt=!1)=>{var pe,Te,ce,Me;const st={children:(Te=(pe=t==null?void 0:t.store)==null?void 0:pe.states)==null?void 0:Te.childrenColumnName.value,checkStrictly:(Me=(ce=t==null?void 0:t.store)==null?void 0:ce.states)==null?void 0:Me.checkStrictly.value};if(bd(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,pe=0;const Te=(ft=(Ke=t==null?void 0:t.store)==null?void 0:Ke.states)==null?void 0:ft.rowKey.value,{childrenColumnName:ce}=t.store.states,Me={children:ce.value,checkStrictly:!1};a.value.forEach((st,jt)=>{const an=jt+pe;bd(y.value,st,it,Me,_.value,an,Te)&&(mt=!0),pe+=le(Jn(st,Te))}),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 pe=ce=>{var Me;for(const st of ce){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)&&!pe(st[ft.value]))return!1}return!0},Te=pe(a.value||[]);w.value=mt===0?!1:Te},le=Ke=>{var ft;if(!t||!t.store)return 0;const{treeData:it}=t.store.states;let mt=0;const pe=(ft=it.value[Ke])==null?void 0:ft.children;return pe&&(mt+=pe.length,pe.forEach(Te=>{mt+=le(Te)})),mt},se=(Ke,ft)=>{const it={};return Pn(Ke).forEach(mt=>{R.value[mt.id]=ft,it[mt.columnKey||mt.id]=ft}),it},ae=(Ke,ft,it)=>{O.value&&O.value!==Ke&&(O.value.order=null),O.value=Ke,P.value=ft,M.value=it},ve=()=>{let Ke=s(l);Object.keys(R.value).forEach(ft=>{const it=R.value[ft];if(!it||it.length===0)return;const mt=h_({columns:c.value},ft);mt&&mt.filterMethod&&(Ke=Ke.filter(pe=>it.some(Te=>mt.filterMethod.call(null,Te,pe,mt))))}),N.value=Ke},oe=()=>{var Ke;a.value=GJ((Ke=N.value)!=null?Ke:[],{sortingColumn:O.value,sortProp:P.value,sortOrder:M.value})},j=(Ke=void 0)=>{Ke!=null&&Ke.filter||ve(),oe()},ie=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]),Ee(Ke)){const pe=Ke.map(Te=>BJ({columns:c.value},Te));mt.forEach(Te=>{const ce=pe.find(Me=>Me.id===Te);ce&&(ce.filteredValue=[])}),t.store.commit("filterChange",{column:pe,values:[],silent:!0,multi:!0})}else mt.forEach(pe=>{const Te=c.value.find(ce=>ce.id===pe);Te&&(Te.filteredValue=[])}),R.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},Se=()=>{!O.value||(ae(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:xe,toggleRowExpansion:De,updateExpandRows:ze,states:Ze,isRowExpanded:nt}=jJ({data:a,rowKey:o}),{updateTreeExpandKeys:Et,toggleTreeExpansion:Ue,updateTreeData:Pe,updateKeyChildren:Ae,loadOrToggle:Ge,states:ot}=UJ({data:a,rowKey:o}),{updateCurrentRowData:pt,updateCurrentRow:wt,setCurrentRowKey:Ce,states:Ve}=YJ({data:a,rowKey:o});return{assertRowKey:K,updateColumns:I,scheduleLayout:T,isSelected:D,clearSelection:B,cleanSelection:z,getSelectionRows:U,toggleRowSelection:V,_toggleAllSelection:G,toggleAllSelection:null,updateAllSelected:X,updateFilters:se,updateCurrentRow:wt,updateSort:ae,execFilter:ve,execSort:oe,execQuery:j,clearFilter:ie,clearSort:Se,toggleRowExpansion:De,setExpandRowKeysAdapter:Ke=>{xe(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:Pe,updateKeyChildren:Ae,states:{tableSize:n,rowKey:o,data:a,_data:l,isComplex:r,_columns:i,originColumns:u,columns:c,fixedColumns:d,rightFixedColumns:f,leafColumns:v,fixedLeafColumns:m,rightFixedLeafColumns:p,updateOrderFns:h,leafColumnsLength:g,fixedLeafColumnsLength:b,rightFixedLeafColumnsLength:C,isAllSelected:w,selection:y,reserveSelection:S,selectOnIndeterminate:E,selectable:_,filters:R,filteredData:N,sortingColumn:O,sortProp:P,sortOrder:M,hoverRow:L,...Ze,...ot,...Ve}}}function Mm(e,t){return e.map(n=>{var o;return n.id===t.id?t:((o=n.children)!=null&&o.length&&(n.children=Mm(n.children,t)),n)})}function Nm(e){e.forEach(t=>{var n,o;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(o=t.children)!=null&&o.length&&Nm(t.children)}),e.sort((t,n)=>t.no-n.no)}function XJ(){const e=ct(),t=qJ(),n=de("table"),{t:o}=yt();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 v=s(i._columns);let m=[];c?(c&&!c.children&&(c.children=[]),(f=c.children)==null||f.push(u),m=Mm(v,c)):(v.push(u),m=v),Nm(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&&(Nm(i._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(i,u,c,d){var f;const v=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=Mm(v,c);else{const p=v.indexOf(u);p>-1&&(v.splice(p,1),i._columns.value=v)}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 v=s(i.columns).find(m=>m.property===c);v&&(v.order=d,e.store.updateSort(v,c,d),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(i,u){const{sortingColumn:c,sortProp:d,sortOrder:f}=i,v=s(c),m=s(d),p=s(f);zr(p)&&(i.sortingColumn.value=null,i.sortProp.value=null);const h={filter:!0};e.store.execQuery(h),(!u||!(u.silent||u.init))&&e.emit("sort-change",{column:v,prop:m,order:p}),e.store.updateTableScrollY()},filterChange(i,u){const{column:c,values:d,silent:f}=u,v=e.store.updateFilters(c,d);e.store.execQuery(),f||e.emit("filter-change",v),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 Pm={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 ZJ(e,t){if(!e)throw new Error("Table is required.");const n=XJ();return n.toggleAllSelection=ia(n._toggleAllSelection,10),Object.keys(Pm).forEach(o=>{k_(E_(t,o),o,n)}),JJ(n,t),n}function JJ(e,t){Object.keys(Pm).forEach(n=>{ue(()=>E_(t,n),o=>{k_(o,n,e)})})}function k_(e,t,n){let o=e,a=Pm[t];Rt(a)&&(o=o||a.default,a=a.key),n.states[a].value=o}function E_(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 QJ{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=A(null),this.scrollX=A(!1),this.scrollY=A(!1),this.bodyWidth=A(null),this.fixedWidth=A(null),this.rightFixedWidth=A(null),this.gutterWidth=0;for(const n in t)Dn(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(zr(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=VJ(t),this.height.value=Number(t),!o&&(t||t===0)){ke(()=>this.setHeight(t,n));return}o&&Re(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=>!Re(c.width));if(l.forEach(c=>{Re(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 v=0;r.forEach((m,p)=>{if(p===0)return;const h=Math.floor(Number(m.minWidth||80)*f);v+=h,m.realWidth=Number(m.minWidth||80)+h}),r[0].realWidth=Number(r[0].minWidth||80)+c-v}}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 eQ=QJ;const tQ=re({name:"ElTableFilterPanel",components:{ElCheckbox:Qo,ElCheckboxGroup:Jc,ElScrollbar:Zo,ElTooltip:zn,ElIcon:$e,ArrowDown:Pa,ArrowUp:ec},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:Kt.appendTo},setup(e){const t=ct(),{t:n}=yt(),o=de("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=A(null),r=A(null),i=A(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 R;e.column&&((R=e.upDataColumn)==null||R.call(e,"filteredValue",_))}}),v=k(()=>e.column?e.column.filterMultiple:!0),m=_=>_.value===d.value,p=()=>{var _;(_=l.value)==null||_.onClose()},h=()=>{C(f.value),p()},g=()=>{f.value=[],C(f.value),p()},b=(_,R)=>{d.value=_,i.value=R,Co(_)?C([]):C(f.value),p()},C=_=>{var R,N;(R=e.store)==null||R.commit("filterChange",{column:e.column,values:_}),(N=e.store)==null||N.updateAllSelected()},w=()=>{var _,R;(_=r.value)==null||_.focus(),!v.value&&S(),e.column&&((R=e.upDataColumn)==null||R.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(R=>R.value===d.value);i.value=_>=0?_+1:0};return{multiple:v,filterClassName:c,filteredValue:f,filterValue:d,filters:u,handleConfirm:h,handleReset:g,handleSelect:b,isPropAbsent:Co,isActive:m,t:n,ns:o,tooltipRef:l,rootRef:r,checkedIndex:i,handleShowTooltip:w,handleHideTooltip:y,handleKeydown:_=>{var R,N;const O=Ht(_),P=(u.value?u.value.length:0)+1;let M=i.value,L=!0;switch(O){case fe.down:case fe.right:M=(M+1)%P;break;case fe.up:case fe.left:M=(M-1+P)%P;break;case fe.tab:p(),L=!1;break;case fe.enter:case fe.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=(R=r.value)==null?void 0:R.querySelector(`.${o.e("list-item")}:nth-child(${M+1})`))==null||N.focus()}}}}),nQ=["disabled"],oQ=["tabindex","aria-checked"],aQ=["tabindex","aria-checked","onClick"],lQ=["aria-label"];function rQ(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"),v=It("el-tooltip");return $(),ne(v,{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,bt(e.filters,m=>($(),ne(r,{key:m.value,value:m.value},{default:Q(()=>[Ct(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,nQ),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,oQ),($(!0),F(Be,null,bt(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:h=>e.handleSelect(m.value,p+1)},ge(m.text),11,aQ))),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?($(),ne(c,{key:0})):($(),ne(d,{key:1}))]})]),_:3})],10,lQ)]}),_:3},8,["placement","popper-class","append-to","onShow","onHide"])}var sQ=ye(tQ,[["render",rQ],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function Am(e){const t=ct();Vd(()=>{n.value.addObserver(t)}),ut(()=>{o(n.value),a(n.value)}),Ga(()=>{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 v=i[d],m=v.getAttribute("name"),p=c[m];p&&v.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 v=c[d];v.style.width=l.scrollY.value?`${l.gutterWidth}px`:"0",v.style.display=l.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:o,onScrollableChange:a}}const Sa=Symbol("ElTable");function iQ(e,t){const n=ct(),o=_e(Sa),a=h=>{h.stopPropagation()},l=(h,g)=>{!g.filters&&g.sortable?p(h,g,!1):g.filterable&&!g.sortable&&a(h),o==null||o.emit("header-click",g,h)},r=(h,g)=>{o==null||o.emit("header-contextmenu",g,h)},i=A(null),u=A(!1),c=A(),d=(h,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(),R=_.left-S+30;jo(E,"noclick"),c.value={startMouseLeft:h.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(R,H)}px`},P=()=>{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,h),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",P),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{no(E,"noclick")},0)};document.addEventListener("mousemove",O),document.addEventListener("mouseup",P)}},f=(h,g)=>{var b;if(!e.border||g.children&&g.children.length>0)return;const C=h.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 P=w.querySelector(".caret-wrapper");P&&(P.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,R=S.width>12&&S.right-h.clientX<8&&_,N=R?"col-resize":"";document.body.style.cursor=N,i.value=R?g:null,y&&(w.style.cursor=N)},v=()=>{!Tt||u.value||(document.body.style.cursor="")},m=({order:h,sortOrders:g})=>{if(h==="")return g[0];const b=g.indexOf(h||null);return g[b>g.length-2?0:b+1]},p=(h,g,b)=>{var C;h.stopPropagation();const w=g.order===b?null:b||m(g),y=(C=h.target)==null?void 0:C.closest("th");if(y&&Na(y,"noclick")){no(y,"noclick");return}if(!g.sortable)return;const S=h.currentTarget;if(["ascending","descending"].some(O=>Na(S,O)&&!g.sortOrders.includes(O)))return;const E=e.store.states;let _=E.sortProp.value,R;const N=E.sortingColumn.value;(N!==g||N===g&&zr(N.order))&&(N&&(N.order=null),E.sortingColumn.value=g,_=g.property),w?R=g.order=w:R=g.order=null,E.sortProp.value=_,E.sortOrder.value=R,o==null||o.store.commit("changeSortCondition")};return{handleHeaderClick:l,handleHeaderContextMenu:r,handleMouseDown:d,handleMouseMove:f,handleMouseOut:v,handleSortClick:p,handleFilterClick:a}}function uQ(e){const t=_e(Sa),n=de("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 v=(f=t==null?void 0:t.props.headerCellStyle)!=null?f:{};lt(v)&&(v=v.call(null,{rowIndex:i,columnIndex:u,row:c,column:d}));const m=Im(u,d.fixed,e.store,c);return ks(m,"left"),ks(m,"right"),Object.assign({},v,m)},getHeaderCellClass:(i,u,c,d)=>{const f=xm(n.b(),u,d.fixed,e.store,c),v=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...f];d.children||v.push("is-leaf"),d.sortable&&v.push("is-sortable");const m=t==null?void 0:t.props.headerCellClassName;return He(m)?v.push(m):lt(m)&&v.push(m.call(null,{rowIndex:i,columnIndex:u,row:c,column:d})),v.push(n.e("cell")),v.filter(p=>Boolean(p)).join(" ")}}}const $_=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,$_(n.children))):t.push(n)}),t},__=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 $_(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 cQ(e){const t=_e(Sa),n=k(()=>__(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 dQ=re({name:"ElTableHeader",components:{ElCheckbox:Qo},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=_e(Sa),a=de("table"),l=A({}),{onColumnsChange:r,onScrollableChange:i}=Am(o),u=(o==null?void 0:o.props.tableLayout)==="auto",c=Lt(new Map),d=A();let f;const v=()=>{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())})};ue(c,v),Dt(()=>{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}),v()});const{handleHeaderClick:m,handleHeaderContextMenu:p,handleMouseDown:h,handleMouseMove:g,handleMouseOut:b,handleSortClick:C,handleFilterClick:w}=iQ(e,t),{getHeaderRowStyle:y,getHeaderRowClass:S,getHeaderCellStyle:E,getHeaderCellClass:_}=uQ(e),{isGroup:R,toggleAllSelection:N,columnRows:O}=cQ(e),{t:P}=yt();return n.state={onColumnsChange:r,onScrollableChange:i},n.filterPanels=l,{ns:a,t:P,filterPanels:l,onColumnsChange:r,onScrollableChange:i,columnRows:O,getHeaderRowClass:S,getHeaderRowStyle:y,getHeaderCellClass:_,getHeaderCellStyle:E,handleHeaderClick:m,handleHeaderContextMenu:p,handleMouseDown:h,handleMouseMove:g,handleMouseOut:b,handleSortClick:C,handleFilterClick:w,isGroup:R,toggleAllSelection:N,saveIndexSelection:c,isTableLayoutAuto:u,theadRef:d,updateFixedColumnStyle:v}},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:v,handleMouseOut:m,store:p,$parent:h,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:R=>{var N;(N=R.currentTarget)!=null&&N.classList.contains("noclick")||u(R,S)},onContextmenu:R=>c(R,S),onMousedown:R=>d(R,S),onMousemove:R=>f(R,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:h}):S.label,S.sortable&&Le("button",{type:"button",class:"caret-wrapper","aria-label":t("el.table.sortLabel",{column:S.label||""}),onClick:R=>v(R,S)},[Le("i",{onClick:R=>v(R,S,"ascending"),class:"sort-caret ascending"}),Le("i",{onClick:R=>v(R,S,"descending"),class:"sort-caret descending"})]),S.filterable&&Le(sQ,{store:p,placement:S.filterPlacement||"bottom-start",appendTo:h==null?void 0:h.appendFilterPanelTo,column:S,upDataColumn:(R,N)=>{S[R]=N}},{"filter-icon":()=>S.renderFilterIcon?S.renderFilterIcon({filterOpened:S.filterOpened}):null})])])}))))}});function Lm(e,t,n=.03){return e-t>n}function fQ(e){const t=_e(Sa),n=A(""),o=A(Le("div")),a=(p,h,g)=>{var b,C,w;const y=t,S=Om(p);let E=null;const _=(b=y==null?void 0:y.vnode.el)==null?void 0:b.dataset.prefix;S&&(E=m_({columns:(w=(C=e.store)==null?void 0:C.states.columns.value)!=null?w:[]},S,_),E&&(y==null||y.emit(`cell-${g}`,h,E,S,p))),y==null||y.emit(`row-${g}`,h,E,p)},l=(p,h)=>{a(p,h,"dblclick")},r=(p,h)=>{var g;(g=e.store)==null||g.commit("setCurrentRow",h),a(p,h,"click")},i=(p,h)=>{a(p,h,"contextmenu")},u=ia(p=>{var h;(h=e.store)==null||h.commit("setHoverRow",p)},30),c=ia(()=>{var p;(p=e.store)==null||p.commit("setHoverRow",null)},30),d=p=>{const h=window.getComputedStyle(p,null),g=Number.parseInt(h.paddingLeft,10)||0,b=Number.parseInt(h.paddingRight,10)||0,C=Number.parseInt(h.paddingTop,10)||0,w=Number.parseInt(h.paddingBottom,10)||0;return{left:g,right:b,top:C,bottom:w}},f=(p,h,g)=>{var b;let C=(b=h==null?void 0:h.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,h,g)=>{var b,C,w,y,S,E,_,R,N;if(!t)return;const O=t,P=Om(p),M=(b=O==null?void 0:O.vnode.el)==null?void 0:b.dataset.prefix;let L=null;if(P){if(L=m_({columns:(w=(C=e.store)==null?void 0:C.states.columns.value)!=null?w:[]},P,M),!L)return;P.rowSpan>1&&f(P.rowSpan,p,jo);const le=O.hoverState={cell:P,column:L,row:h};O==null||O.emit("cell-mouse-enter",le.row,le.column,le.cell,p)}if(!g){((y=ro)==null?void 0:y.trigger)===P&&((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:T,height:D}=H.getBoundingClientRect(),{top:B,left:z,right:U,bottom:V}=d(H),G=z+U,X=B+V;Lm(Y+G,T)||Lm(I+X,D)||Lm(H.scrollWidth,T)?KJ(g,(_=(P==null?void 0:P.innerText)||(P==null?void 0:P.textContent))!=null?_:"",h,L,P,O):((R=ro)==null?void 0:R.trigger)===P&&((N=ro)==null||N())},handleCellMouseLeave:p=>{const h=Om(p);if(!h)return;h.rowSpan>1&&f(h.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 pQ(e){const t=_e(Sa),n=de("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 v;const m=[n.e("row")];(t==null?void 0:t.props.highlightCurrentRow)&&c===((v=e.store)==null?void 0:v.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,v)=>{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:v}));const h=Im(d,e==null?void 0:e.fixed,e.store);return ks(h,"left"),ks(h,"right"),Object.assign({},p,h)},getCellClass:(c,d,f,v,m)=>{const p=xm(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,m),h=[v.id,v.align,v.className,...p],g=t==null?void 0:t.props.cellClassName;return He(g)?h.push(g):lt(g)&&h.push(g.call(null,{rowIndex:c,columnIndex:d,row:f,column:v})),h.push(n.e("cell")),h.filter(b=>Boolean(b)).join(" ")},getSpan:(c,d,f,v)=>{let m=1,p=1;const h=t==null?void 0:t.props.spanMethod;if(lt(h)){const g=h({row:c,column:d,rowIndex:f,columnIndex:v});Ee(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 v=c.map(({realWidth:m,width:p})=>m||p).slice(f,f+d);return Number(v.reduce((m,p)=>Number(m)+Number(p),-1))}}}const vQ=["colspan","rowspan"],hQ=re({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,vQ))}});var mQ=ye(hQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table-body/td-wrapper.vue"]]);function gQ(e){const t=_e(Sa),n=de("table"),{handleDoubleClick:o,handleClick:a,handleContextMenu:l,handleMouseEnter:r,handleMouseLeave:i,handleCellMouseEnter:u,handleCellMouseLeave:c,tooltipContent:d,tooltipTrigger:f}=fQ(e),{getRowStyle:v,getRowClass:m,getCellStyle:p,getCellClass:h,getSpan:g,getColspanRealWidth:b}=pQ(e);let C=-1;const w=k(()=>{var R;return(R=e.store)==null?void 0:R.states.columns.value.findIndex(({type:N})=>N==="default")}),y=(R,N)=>{var O;const P=(O=t==null?void 0:t.props)==null?void 0:O.rowKey;return P?Jn(R,P):N},S=(R,N,O,P=!1)=>{const{tooltipEffect:M,tooltipOptions:L,store:H}=e,{indent:K,columns:Y}=H.states,I=[];let T=!0;return O&&(I.push(n.em("row",`level-${O.level}`)),T=!!O.display),N===0&&(C=-1),e.stripe&&T&&C++,I.push(...m(R,N,C)),Le("tr",{style:[T?null:{display:"none"},v(R,N)],class:I,key:y(R,N),onDblclick:B=>o(B,R),onClick:B=>a(B,R),onContextmenu:B=>l(B,R),onMouseenter:()=>r(N),onMouseleave:i},Y.value.map((B,z)=>{const{rowspan:U,colspan:V}=g(R,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:R,$index:N,cellIndex:z,expanded:P};z===w.value&&O&&(X.treeNode={indent:O.level&&O.level*K.value,level:O.level},Vt(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(R,N)},${z}`,se=G.columnKey||G.rawColumnKey||"",ae=B.showOverflowTooltip&&np({effect:M},L,B.showOverflowTooltip);return Le(mQ,{style:p(N,z,R,B),class:h(N,z,R,B,V-1),key:`${se}${le}`,rowspan:U,colspan:V,onMouseenter:ve=>u(ve,R,ae),onMouseleave:c},{default:()=>E(z,B,X)})}))},E=(R,N,O)=>N.renderCell(O);return{wrappedRowRender:(R,N)=>{const O=e.store,{isRowExpanded:P,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=P(R),B=S(R,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:R,$index:N,store:O,expanded:D})])])),U}else if(Object.keys(L.value).length){M();const D=Jn(R,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},Vt(B.lazy)&&(z&&Vt(B.loaded)&&B.loaded&&(z.noLazyChildren=!(B.children&&B.children.length)),z.loading=B.loading));const U=[S(R,N,z!=null?z:void 0)];if(B){let V=0;const G=(le,se)=>{!(le&&le.length&&se)||le.forEach(ae=>{const ve={display:se.display&&se.expanded,level:se.level+1,expanded:!1,noLazyChildren:!1,loading:!1},oe=Jn(ae,Y.value);if(Co(oe))throw new Error("For nested data item, row-key is required.");if(B={...L.value[oe]},B&&(ve.expanded=B.expanded,B.level=B.level||ve.level,B.display=!!(B.expanded&&ve.display),Vt(B.lazy)&&(Vt(B.loaded)&&B.loaded&&(ve.noLazyChildren=!(B.children&&B.children.length)),ve.loading=B.loading)),V++,U.push(S(ae,N+V,ve)),B){const j=H.value[oe]||ae[K.value];G(j,B)}})};B.display=!0;const X=H.value[D]||R[K.value];G(X,B)}return U}else return S(R,N,void 0)},tooltipContent:d,tooltipTrigger:f}}const bQ={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 yQ=bQ,wQ=re({name:"ElTableBody",props:yQ,setup(e){var t;const n=ct(),o=_e(Sa),a=de("table"),{wrappedRowRender:l,tooltipContent:r,tooltipTrigger:i}=gQ(e),{onColumnsChange:u,onScrollableChange:c}=Am(o),d=[];return ue((t=e.store)==null?void 0:t.states.hoverRow,(f,v)=>{var m,p;const h=n==null?void 0:n.vnode.el,g=Array.from((h==null?void 0:h.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 R,N;return((R=C[_])==null?void 0:R.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){jo(_[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[v],y=g[f];w&&!w.classList.contains("hover-fixed-row")&&no(w,"hover-row"),y&&jo(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 CQ(){const e=_e(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 SQ(e){const{columns:t}=CQ(),n=de("table");return{getCellClasses:(l,r)=>{const i=l[r],u=[n.e("cell"),i.id,i.align,i.labelClassName,...xm(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=Im(r,l.fixed,e.store);return ks(i,"left"),ks(i,"right"),i},columns:t}}var kQ=re({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=_e(Sa),n=de("table"),{getCellClasses:o,getCellStyles:a,columns:l}=SQ(e),{onScrollableChange:r,onColumnsChange:i}=Am(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 v=Math.max.apply(null,d);f?r[u]="":r[u]=c.reduce((m,p)=>{const h=Number(p);return Number.isNaN(+h)?m:Number.parseFloat((m+p).toFixed(Math.min(v,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 EQ(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,v,m=!0)=>{e.toggleRowSelection(f,v,!1,m),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,v)=>{e.toggleRowExpansionAdapter(f,v)},clearSort:()=>{e.clearSort()},sort:(f,v)=>{e.commit("sort",{prop:f,order:v})},updateKeyChildren:(f,v)=>{e.updateKeyChildren(f,v)}}}function $Q(e,t,n,o){const a=A(!1),l=A(null),r=A(!1),i=I=>{r.value=I},u=A({width:null,height:null,headerHeight:null}),c=A(!1),d={display:"inline-block",verticalAlign:"middle"},f=A(),v=A(0),m=A(0),p=A(0),h=A(0),g=A(0);ue(()=>e.height,I=>{t.setHeight(I!=null?I:null)},{immediate:!0}),ue(()=>e.maxHeight,I=>{t.setMaxHeight(I!=null?I:null)},{immediate:!0}),ue(()=>[e.currentRowKey,n.states.rowKey],([I,T])=>{!s(T)||!s(I)||n.setCurrentRowKey(`${I}`)},{immediate:!0}),ue(()=>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,T)=>{const{pixelX:D,pixelY:B}=T;Math.abs(D)>=Math.abs(B)&&(o.refs.bodyWrapper.scrollLeft+=T.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,T=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&&T?T.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,T)=>{if(!I)return;const D=Array.from(I.classList).filter(B=>!B.startsWith("is-scrolling-"));D.push(t.scrollX.value?T:"is-scrolling-none"),I.className=D.join(" ")},_=I=>{const{tableWrapper:T}=o.refs;E(T,I)},R=I=>{const{tableWrapper:T}=o.refs;return!!(T&&T.classList.contains(I))},N=function(){if(!o.refs.scrollBarRef)return;if(!t.scrollX.value){const G="is-scrolling-none";R(G)||_(G);return}const I=o.refs.scrollBarRef.wrapRef;if(!I)return;const{scrollLeft:T,offsetWidth:D,scrollWidth:B}=I,{headerWrapper:z,footerWrapper:U}=o.refs;z&&(z.scrollLeft=T),U&&(U.scrollLeft=T);const V=B-D-1;T>=V?_("is-scrolling-right"):_(T===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,P):Mt(window,"resize",P),Qt(o.refs.tableInnerWrapper,()=>{var I,T;P(),(T=(I=o.refs)==null?void 0:I.scrollBarRef)==null||T.update()}))},P=()=>{var I,T,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 ae=e.tableLayout==="fixed"?o.refs.headerWrapper:(I=o.refs.tableHeaderRef)==null?void 0:I.$el;e.showHeader&&(ae==null?void 0:ae.offsetHeight)!==X&&(U=!0),v.value=((T=o.refs.tableWrapper)==null?void 0:T.scrollHeight)||0,p.value=(ae==null?void 0:ae.scrollHeight)||0,h.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=v.value-p.value-h.value-g.value,U&&(u.value={width:le,height:se,headerHeight:e.showHeader&&(ae==null?void 0:ae.offsetHeight)||0},S())},M=wn(),L=k(()=>{const{bodyWidth:I,scrollY:T,gutterWidth:D}=t;return I.value?`${I.value-(T.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 T=f.value;return{width:T?`${T}px`:"",height:I}}),Y=k(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${p.value+h.value}px)`}:{maxHeight:`${+e.maxHeight-p.value-h.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 _Q(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 TQ={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 T_(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))))}T_.props=["columns","tableLayout"];const OQ=()=>{const e=A(),t=(l,r)=>{const i=e.value;i&&i.scrollTo(l,r)},n=(l,r)=>{const i=e.value;i&&Re(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 RQ=1;const xQ=re({name:"ElTable",directives:{Mousewheel:ck},components:{TableHeader:dQ,TableBody:wQ,TableFooter:kQ,ElScrollbar:Zo,hColgroup:T_},props:TQ,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}=yt(),n=de("table"),o=ct();St(Sa,o);const a=ZJ(o,e);o.store=a;const l=new eQ({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:v,toggleRowExpansion:m,clearSort:p,sort:h,updateKeyChildren:g}=EQ(a),{isHidden:b,renderExpanded:C,setDragVisible:w,isGroup:y,handleMouseLeave:S,handleHeaderFooterMousewheel:E,tableSize:_,emptyBlockStyle:R,resizeProxyVisible:N,bodyWidth:O,resizeState:P,doLayout:M,tableBodyStyles:L,tableLayout:H,scrollbarViewStyle:K,scrollbarStyle:Y}=$Q(e,l,a,o),{scrollBarRef:I,scrollTo:T,setScrollLeft:D,setScrollTop:B}=OQ(),z=ia(M,50),U=`${n.namespace.value}-table_${RQ++}`;o.tableId=U,o.state={isGroup:y,resizeState:P,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(()=>__(a.states.originColumns.value)[0]);return _Q(o),Dt(()=>{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:P,isGroup:y,bodyWidth:O,tableBodyStyles:L,emptyBlockStyle:R,debouncedUpdateLayout:z,setCurrentRow:i,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:f,toggleAllSelection:v,toggleRowExpansion:m,clearSort:p,doLayout:M,sort:h,updateKeyChildren:g,t,setDragVisible:w,context:o,computedSumText:V,computedEmptyText:G,tableLayout:H,scrollbarViewStyle:K,scrollbarStyle:Y,scrollBarRef:I,scrollTo:T,setScrollLeft:D,setScrollTop:B,allowDragLastColumn:e.allowDragLastColumn}}}),IQ=["data-prefix"],MQ={ref:"hiddenColumns",class:"hidden-columns"};function NQ(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=Hd("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]=(...v)=>e.handleMouseLeave&&e.handleMouseLeave(...v))},[W("div",{ref:"tableInnerWrapper",class:x(e.ns.e("inner-wrapper"))},[W("div",MQ,[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]=v=>e.$emit("scroll",v))},{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"?($(),ne(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"?($(),ne(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",{},()=>[Ct(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,IQ)}var PQ=ye(xQ,[["render",NQ],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const AQ={selection:"table-column--selection",expand:"table__expand-column"},LQ={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:""}},DQ=e=>AQ[e]||"",BQ={selection:{renderHeader({store:e}){var t;function n(){return e.states.data.value&&e.states.data.value.length===0}return Le(Qo,{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(Qo,{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 Re(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 FQ({row:e,column:t,$index:n}){var o;const a=t.property,l=a&&ri(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 VQ({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`}})),Vt(t.expanded)&&!t.noLazyChildren){const i=[a.e("expand-icon"),t.expanded?a.em("expand-icon","expanded"):""];let u=oo;t.loading&&(u=Aa),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 O_(e,t){return e.reduce((n,o)=>(n[o]=o,n),t)}function zQ(e,t){const n=ct();return{registerComplexWatchers:()=>{const l=["fixed"],r={realWidth:"width",realMinWidth:"minWidth"},i=O_(l,r);Object.keys(i).forEach(u=>{const c=r[u];Dn(t,c)&&ue(()=>t[c],d=>{let f=d;c==="width"&&u==="realWidth"&&(f=Rm(d)),c==="minWidth"&&u==="realMinWidth"&&(f=g_(d)),n.columnConfig.value[c]=f,n.columnConfig.value[u]=f;const v=c==="fixed";e.value.store.scheduleLayout(v)})})},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=O_(l,i);Object.keys(u).forEach(c=>{const d=i[c];Dn(t,d)&&ue(()=>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=>{Dn(e.value.props,c)&&ue(()=>e.value.props[c],d=>{n.columnConfig.value.type!=="selection"&&(!_t(t[c])||(n.columnConfig.value[c]=d))})})}}}function HQ(e,t,n){const o=ct(),a=A(""),l=A(!1),r=A(),i=A(),u=de("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=A(Rm(e.width)),v=A(g_(e.minWidth)),m=y=>(f.value&&(y.width=f.value),v.value&&(y.minWidth=v.value),!f.value&&v.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=BQ[S]||{};Object.keys(E).forEach(R=>{const N=E[R];R!=="className"&&!_t(N)&&(y[R]=N)});const _=DQ(S);if(_){const R=`${s(u.namespace)}-${_}`;y.className=y.className?`${y.className} ${R}`:R}return y},h=y=>{Ee(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(S_(_))return Le(Be,_)}return Ct(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||FQ,y.renderCell=E=>{let _=null;if(t.default){const L=t.default(E);_=L.some(H=>H.type!==Ua)?L:S(E)}else _=S(E);const{columns:R}=n.value.store.states,N=R.value.findIndex(L=>L.type==="default"),O=d.value&&E.cellIndex===N,P=VQ(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`}),h(_),Le("div",M,[P,_])}),y},getPropsData:(...y)=>y.reduce((S,E)=>(Ee(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 WQ={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 KQ=1;var R_=re({name:"ElTableColumn",components:{ElCheckbox:Qo},props:WQ,setup(e,{slots:t}){const n=ct(),o=A({}),a=k(()=>{let w=n.parent;for(;w&&!w.tableId;)w=w.parent;return w}),{registerNormalWatchers:l,registerComplexWatchers:r}=zQ(a,e),{columnId:i,isSubColumn:u,realHeaderAlign:c,columnOrTableParent:d,setColumnWidth:f,setColumnForcedProps:v,setColumnRenders:m,getPropsData:p,getColumnElIndex:h,realAlign:g,updateColumnOrder:b}=HQ(e,t,a),C=d.value;i.value=`${"tableId"in C&&C.tableId||"columnId"in C&&C.columnId}_column_${KQ++}`,Vd(()=>{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,_={...LQ[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=FJ(_,M),M=zJ(m,f,v)(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,_=()=>h(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)}),Dt(()=>{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(Ee(o))for(const r of o)((n=r.type)==null?void 0:n.name)==="ElTableColumn"||r.shapeFlag&2?a.push(r):r.type===Be&&Ee(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 x_=Qe(PQ,{TableColumn:R_}),I_=cn(R_);var jl=(e=>(e.ASC="asc",e.DESC="desc",e))(jl||{}),Es=(e=>(e.LEFT="left",e.CENTER="center",e.RIGHT="right",e))(Es||{}),Dm=(e=>(e.LEFT="left",e.RIGHT="right",e))(Dm||{});const Bm={asc:"desc",desc:"asc"},$s=Symbol("placeholder"),jQ=(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 YQ(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]=jQ(b,s(n),e.fixed),g),{})),f=k(()=>s(a).reduce((g,b)=>g+b.width,0)),v=g=>s(o).find(b=>b.key===g),m=g=>s(d)[g],p=(g,b)=>{g.width=b};function h(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=Bm[w[C]]:S=Bm[y.order],(b=e.onColumnSort)==null||b.call(e,{column:v(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:v,getColumnStyle:m,updateColumnWidth:p,onColumnSorted:h}}const UQ=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,onMaybeEndReached:a})=>{const l=A({scrollLeft:0,scrollTop:0});function r(m){var p,h,g;const{scrollTop:b}=m;(p=t.value)==null||p.scrollTo(m),(h=n.value)==null||h.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,h;l.value.scrollLeft=m,(h=(p=t.value)==null?void 0:p.scrollTo)==null||h.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 v(m,p="auto"){var h;(h=t.value)==null||h.scrollToRow(m,p)}return ue(()=>s(l).scrollTop,(m,p)=>{m>p&&a()}),{scrollPos:l,scrollTo:i,scrollToLeft:c,scrollToTop:u,scrollToRow:v,onScroll:d,onVerticalScroll:f}},GQ=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,tableInstance:a,ns:l,isScrolling:r})=>{const i=ct(),{emit:u}=i,c=Zt(!1),d=A(e.defaultExpandedRowKeys||[]),f=A(-1),v=Zt(null),m=A({}),p=A({}),h=Zt({}),g=Zt({}),b=Zt({}),C=k(()=>Re(e.estimatedRowHeight));function w(O){var P;(P=e.onRowsRendered)==null||P.call(e,O),O.rowCacheEnd>s(f)&&(f.value=O.rowCacheEnd)}function y({hovered:O,rowKey:P}){if(r.value)return;a.vnode.el.querySelectorAll(`[rowkey="${String(P)}"]`).forEach(H=>{O?H.classList.add(l.is("hovered")):H.classList.remove(l.is("hovered"))})}function S({expanded:O,rowData:P,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:P,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=ia(()=>{var O,P,M,L;c.value=!0,m.value={...s(m),...s(p)},_(s(v),!1),p.value={},v.value=null,(O=t.value)==null||O.forceUpdate(),(P=n.value)==null||P.forceUpdate(),(M=o.value)==null||M.forceUpdate(),(L=i.proxy)==null||L.$forceUpdate(),c.value=!1},0);function _(O,P=!1){!s(C)||[t,n,o].forEach(M=>{const L=s(M);L&&L.resetAfterRowIndex(O,P)})}function R(O,P,M){const L=s(v);(L===null||L>M)&&(v.value=M),p.value[O]=P}function N({rowKey:O,height:P,rowIndex:M},L){L?L===Dm.RIGHT?b.value[O]=P:h.value[O]=P:g.value[O]=P;const H=Math.max(...[h,b,g].map(K=>K.value[O]||0));s(m)[O]!==H&&(R(O,H,M),E())}return{expandedRowKeys:d,lastRenderedRowIndex:f,isDynamic:C,isResetting:c,rowHeights:m,resetAfterIndex:_,onRowExpanded:S,onRowHovered:y,onRowsRendered:w,onRowHeightChange:N}},qQ=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:o})=>{const a=A({}),l=k(()=>{const i={},{data:u,rowKey:c}=e,d=s(t);if(!d||!d.length)return u;const f=[],v=new Set;d.forEach(p=>v.add(p));let m=u.slice();for(m.forEach(p=>i[p[c]]=0);m.length>0;){const p=m.shift();f.push(p),v.has(p[c])&&Ee(p.children)&&p.children.length>0&&(m=[...p.children,...m],p.children.forEach(h=>i[h[c]]=i[p[c]]+1))}return a.value=i,f}),r=k(()=>{const{data:i,expandColumnKey:u}=e;return u?s(l):i});return ue(r,(i,u)=>{i!==u&&(n.value=-1,o(0,!0))}),{data:r,depthMap:a}},XQ=(e,t)=>e+t,wd=e=>Ee(e)?e.reduce(XQ,0):e,yr=(e,t,n={})=>lt(e)?e(t):e!=null?e:n,Yl=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=un(e[t])}),e),M_=e=>Jt(e)?t=>Le(e,t):e,ZQ=(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(v),E=s(n),R=s(f)+S+E+y;return Math.min(R,C-w)}return b-w}),i=k(()=>{const{maxHeight:b}=e,C=s(r);if(Re(b)&&b>0)return C;const w=s(n)+s(f)+s(v);return Math.min(C,w)}),u=b=>b.width,c=k(()=>wd(s(o).map(u))),d=k(()=>wd(s(a).map(u))),f=k(()=>wd(e.headerHeight)),v=k(()=>{var b;return(((b=e.fixedData)==null?void 0:b.length)||0)*e.rowHeight}),m=k(()=>s(r)-s(f)-s(v)),p=k(()=>{const{style:b={},height:C,width:w}=e;return Yl({...b,height:C,width:w})}),h=k(()=>Yl({height:e.footerHeight})),g=k(()=>({top:un(s(f)),bottom:un(e.footerHeight),width:un(e.width)}));return{bodyWidth:l,fixedTableHeight:i,mainTableHeight:r,leftTableWidth:c,rightTableWidth:d,windowHeight:m,footerHeight:h,emptyStyle:g,rootStyle:p,headerHeight:f}},JQ=e=>{const t=A(),n=A(0),o=A(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),v=Number.parseInt(u)||0,m=Number.parseInt(c)||0,p=Number.parseInt(d)||0,h=Number.parseInt(f)||0;n.value=r-v-m,o.value=i-p-h}).stop}),Dt(()=>{a==null||a()}),ue([n,o],([l,r])=>{var i;(i=e.onResize)==null||i.call(e,{width:l,height:r})}),{sizer:t,width:n,height:o}};function QQ(e){const t=A(),n=A(),o=A(),{columns:a,columnsStyles:l,columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,hasFixedColumns:c,mainColumns:d,onColumnSorted:f}=YQ(e,Ft(e,"columns"),Ft(e,"fixed")),{scrollTo:v,scrollToLeft:m,scrollToTop:p,scrollToRow:h,onScroll:g,onVerticalScroll:b,scrollPos:C}=UQ(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,onMaybeEndReached:Se}),w=de("table-v2"),y=ct(),S=Zt(!1),{expandedRowKeys:E,lastRenderedRowIndex:_,isDynamic:R,isResetting:N,rowHeights:O,resetAfterIndex:P,onRowExpanded:M,onRowHeightChange:L,onRowHovered:H,onRowsRendered:K}=GQ(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,tableInstance:y,ns:w,isScrolling:S}),{data:Y,depthMap:I}=qQ(e,{expandedRowKeys:E,lastRenderedRowIndex:_,resetAfterIndex:P}),T=k(()=>{const{estimatedRowHeight:xe,rowHeight:De}=e,ze=s(Y);return Re(xe)?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:ae}=ZQ(e,{columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,rowsHeight:T}),ve=A(),oe=k(()=>{const xe=s(Y).length===0;return Ee(e.fixedData)?e.fixedData.length===0&&xe:xe});function j(xe){const{estimatedRowHeight:De,rowHeight:ze,rowKey:Ze}=e;return De?s(O)[s(Y)[xe][Ze]]||De:ze}const ie=A(!1);function Se(){const{onEndReached:xe}=e;if(!xe)return;const{scrollTop:De}=s(C),ze=s(T),Ze=s(G),nt=ze-(De+Ze)+e.hScrollbarSize;!ie.value&&s(_)>=0&&ze<=De+s(z)-s(ae)?(ie.value=!0,xe(nt)):ie.value=!1}return ue(()=>s(T),()=>ie.value=!1),ue(()=>e.expandedRowKeys,xe=>E.value=xe,{deep:!0}),{columns:a,containerRef:ve,mainTableRef:t,leftTableRef:n,rightTableRef:o,isDynamic:R,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:oe,getRowHeight:j,onColumnSorted:f,onRowHovered:H,onRowExpanded:M,onRowsRendered:K,onRowHeightChange:L,scrollTo:v,scrollToLeft:m,scrollToTop:p,scrollToRow:h,onScroll:g,onVerticalScroll:b}}const Fm=Symbol("tableV2"),N_="tableV2GridScrollLeft",P_=String,Gi={type:q(Array),required:!0},Vm={type:q(Array)},A_={...Vm,required:!0},eee=String,L_={type:q(Array),default:()=>dn([])},wr={type:Number,required:!0},D_={type:q([String,Number,Symbol]),default:"id"},B_={type:q(Object)},Ul=he({class:String,columns:Gi,columnsStyles:{type:q(Object),required:!0},depth:Number,expandColumnKey:eee,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:D_,style:{type:q(Object)}}),zm={type:Number,required:!0},Hm=he({class:String,columns:Gi,fixedHeaderData:{type:q(Array)},headerData:{type:q(Array),required:!0},headerHeight:{type:q([Number,Array]),default:50},rowWidth:zm,rowHeight:{type:Number,default:50},height:zm,width:zm}),Cd=he({columns:Gi,data:A_,fixedData:Vm,estimatedRowHeight:Ul.estimatedRowHeight,width:wr,height:wr,headerWidth:wr,headerHeight:Hm.headerHeight,bodyWidth:wr,rowHeight:wr,cache:bm.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Kl.scrollbarAlwaysOn,scrollbarStartGap:Kl.scrollbarStartGap,scrollbarEndGap:Kl.scrollbarEndGap,class:P_,style:B_,containerStyle:B_,getRowHeight:{type:q(Function),required:!0},rowKey:Ul.rowKey,onRowsRendered:{type:q(Function)},onScroll:{type:q(Function)}}),F_=he({cache:Cd.cache,estimatedRowHeight:Ul.estimatedRowHeight,rowKey:D_,headerClass:{type:q([String,Function])},headerProps:{type:q([Object,Function])},headerCellProps:{type:q([Object,Function])},headerHeight:Hm.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:Gi,data:A_,dataGetter:{type:q(Function)},fixedData:Vm,expandColumnKey:Ul.expandColumnKey,expandedRowKeys:L_,defaultExpandedRowKeys:L_,class:P_,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:wm.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:Cd.onScroll,onRowsRendered:Cd.onRowsRendered,rowEventHandlers:Ul.rowEventHandlers}),Wm=(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])};Wm.displayName="ElTableV2Cell",Wm.inheritAttrs=!1;var tee=Wm;const Km=(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])]});Km.displayName="ElTableV2HeaderCell",Km.inheritAttrs=!1;var nee=Km;const oee=he({class:String,columns:Gi,columnsStyles:{type:q(Object),required:!0},headerIndex:Number,style:{type:q(Object)}}),aee=re({name:"ElTableV2HeaderRow",props:oee,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=>Ee(i)&&i.length===1?i[0]:i),columns:n,headerIndex:a})),Z("div",{class:e.class,style:l,role:"row"},[r])}}});var lee=aee;const ree="ElTableV2Header",see=re({name:ree,props:Hm,setup(e,{slots:t,expose:n}){const o=de("table-v2"),a=_e(N_),l=A(),r=k(()=>Yl({width:e.width,height:e.height})),i=k(()=>Yl({width:e.rowWidth,height:e.height})),u=k(()=>Pn(s(e.headerHeight))),c=v=>{const m=s(l);ke(()=>{m!=null&&m.scroll&&m.scroll({left:v})})},d=()=>{const v=o.e("fixed-header-row"),{columns:m,fixedHeaderData:p,rowHeight:h}=e;return p==null?void 0:p.map((g,b)=>{var C;const w=Yl({height:h,width:"100%"});return(C=t.fixed)==null?void 0:C.call(t,{class:v,columns:m,rowData:g,rowIndex:-(b+1),style:w})})},f=()=>{const v=o.e("dynamic-header-row"),{columns:m}=e;return s(u).map((p,h)=>{var g;const b=Yl({width:"100%",height:p});return(g=t.dynamic)==null?void 0:g.call(t,{class:v,columns:m,headerIndex:h,style:b})})};return Ga(()=>{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 iee=see;const uee=e=>{const{isScrolling:t}=_e(Fm),n=A(!1),o=A(),a=k(()=>Re(e.estimatedRowHeight)&&e.rowIndex>=0),l=(u=!1)=>{const c=s(o);if(!c)return;const{columns:d,onRowHeightChange:f,rowKey:v,rowIndex:m,style:p}=e,{height:h}=c.getBoundingClientRect();n.value=!0,ke(()=>{if(u||h!==Number.parseInt(p.height)){const g=d[0],b=(g==null?void 0:g.placeholderSign)===$s;f==null||f({rowKey:v,height:h,rowIndex:m},g&&!b&&g.fixed)}})},r=k(()=>{const{rowData:u,rowIndex:c,rowKey:d,onRowHover:f}=e,v=e.rowEventHandlers||{},m={};return Object.entries(v).forEach(([p,h])=>{lt(h)&&(m[p]=g=>{h({event:g,rowData:u,rowIndex:c,rowKey:d})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:p,hovered:h})=>{const g=m[p];m[p]=b=>{f({event:b,hovered:h,rowData:u,rowIndex:c,rowKey:d}),g==null||g(b)}}),m}),i=u=>{const{onRowExpand:c,rowData:d,rowIndex:f,rowKey:v}=e;c==null||c({expanded:u,rowData:d,rowIndex:f,rowKey:v})};return ut(()=>{s(a)&&l(!0)}),{isScrolling:t,measurable:a,measured:n,rowRef:o,eventHandlers:r,onExpand:i}},cee="ElTableV2TableRow",dee=re({name:cee,props:Ul,setup(e,{expose:t,slots:n,attrs:o}){const{eventHandlers:a,isScrolling:l,measurable:r,measured:i,rowRef:u,onExpand:c}=uee(e);return t({onExpand:c}),()=>{const{columns:d,columnsStyles:f,expandColumnKey:v,depth:m,rowData:p,rowIndex:h,style:g}=e;let b=d.map((C,w)=>{const y=Ee(p.children)&&p.children.length>0&&C.key===v;return n.cell({column:C,columns:d,columnIndex:w,depth:m,style:f[C.key],rowData:p,rowIndex:h,isScrolling:s(l),expandIconProps:y?{rowData:p,rowIndex:h,onExpand:c}:void 0})});if(n.row&&(b=n.row({cells:b.map(C=>Ee(C)&&C.length===1?C[0]:C),style:g,columns:d,depth:m,rowData:p,rowIndex:h,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 fee=dee;const pee=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(VV,null,null):Z(BV,null,null)]})])};var vee=pee;const hee=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)]})])};var mee=hee;const gee="ElTableV2Grid",bee=e=>{const t=A(),n=A(),o=A(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(()=>wd(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 v(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 h(){var g,b;(g=s(n))==null||g.$forceUpdate(),(b=s(t))==null||b.$forceUpdate()}return ue(()=>e.bodyWidth,()=>{var g;Re(e.estimatedRowHeight)&&((g=n.value)==null||g.resetAfter({columnIndex:0},!1))}),{bodyRef:n,forceUpdate:h,fixedRowHeight:l,gridHeight:i,hasHeader:u,headerHeight:r,headerRef:t,totalHeight:a,itemKey:c,onItemRendered:d,resetAfterRowIndex:f,scrollTo:v,scrollToTop:m,scrollToRow:p,scrollLeft:o}},jm=re({name:gee,props:Cd,setup(e,{slots:t,expose:n}){const{ns:o}=_e(Fm),{bodyRef:a,fixedRowHeight:l,gridHeight:r,hasHeader:i,headerRef:u,headerHeight:c,totalHeight:d,forceUpdate:f,itemKey:v,onItemRendered:m,resetAfterRowIndex:p,scrollTo:h,scrollToTop:g,scrollToRow:b,scrollLeft:C}=bee(e);St(N_,C),zd(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:h,scrollToTop:g,scrollToRow:b,resetAfterRowIndex:p});const w=()=>e.bodyWidth;return()=>{const{cache:y,columns:S,data:E,fixedData:_,useIsScrolling:R,scrollbarAlwaysOn:N,scrollbarEndGap:O,scrollbarStartGap:P,style:M,rowHeight:L,bodyWidth:H,estimatedRowHeight:K,headerWidth:Y,height:I,width:T,getRowHeight:D,onScroll:B}=e,z=Re(K),U=z?D$:R$,V=s(c);return Z("div",{role:"table",class:[o.e("table"),e.class],style:M},[Z(U,{ref:a,data:E,useIsScrolling:R,itemKey:v,columnCache:0,columnWidth:z?w:H,totalColumn:1,totalRow:E.length,rowCache:y,rowHeight:z?D:L,width:T,height:s(r),class:o.e("body"),role:"rowgroup",scrollbarStartGap:P,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(iee,{ref:u,class:o.e("header-wrapper"),columns:S,headerData:E,headerHeight:e.headerHeight,fixedHeaderData:_,rowWidth:Y,rowHeight:L,width:T,height:Math.min(V+s(l),I)},{dynamic:t.header,fixed:t.row})])}}});function yee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const wee=(e,{slots:t})=>{const{mainTableRef:n,...o}=e;return Z(jm,rt({ref:n},o),yee(t)?t:{default:()=>[t]})};function Cee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const See=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...o}=e;return Z(jm,rt({ref:n},o),Cee(t)?t:{default:()=>[t]})};function kee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Eee=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...o}=e;return Z(jm,rt({ref:n},o),kee(t)?t:{default:()=>[t]})};function $ee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const _ee=(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:v,rowProps:m,rowClass:p,rowKey:h,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[h],_=a[E]||0,R=Boolean(l),N=d<0,O=[b.e("row"),y,b.is("expanded",R&&r.includes(E)),b.is("fixed",!_&&N),b.is("customized",Boolean(t.row)),{[b.e(`row-depth-${_}`)]:R&&d>=0}],P=u?C:void 0,M={...S,columns:n,columnsStyles:o,class:O,depth:_,expandColumnKey:l,estimatedRowHeight:N?void 0:i,isScrolling:v,rowIndex:d,rowData:c,rowKey:E,rowEventHandlers:g,style:f};return Z(fee,rt(M,{onRowExpand:w,onMouseenter:K=>{P==null||P({hovered:!0,rowKey:E,event:K,rowData:c,rowIndex:d})},onMouseleave:K=>{P==null||P({hovered:!1,rowKey:E,event:K,rowData:c,rowIndex:d})},rowkey:E}),$ee(t)?t:{default:()=>[t]})},Ym=({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:v,expandColumnKey:m,indentSize:p,iconSize:h,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(v,{cellData:E,columns:e,column:t,columnIndex:n,rowIndex:i,rowData:r}),R={class:d.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:E,isScrolling:l,rowData:r,rowIndex:i},N=M_(w),O=N?N(R):ee(b,"default",R,()=>[Z(tee,R,null)]),P=[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(mee,rt(a,{class:[d.e("expand-icon"),d.is("expanded",L)],size:h,expanded:L,ariaLabel:f(L?"el.table.collapseRowLabel":"el.table.expandRowLabel"),style:K,expandable:!0}),null):H=Z("div",{style:[K,`width: ${h}px; height: ${h}px;`].join(" ")},null)),Z("div",rt({class:P,style:C},_,{role:"cell"}),[H,O])};Ym.inheritAttrs=!1;function Tee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Oee=({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(lee,d,Tee(i)?i:{default:()=>[i]})},V_=(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")},v=M_(u),m=v?v(f):ee(t,"default",f,()=>[Z(nee,f,null)]),{sortBy:p,sortState:h,headerCellProps:g}=e;let b,C,w;if(h){const E=h[n.key];b=Boolean(Bm[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(vee,{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 H_=(e,{slots:t})=>{const n=ee(t,"default",{},()=>[Z(Jh,null,null)]);return Z("div",{class:e.class,style:e.style},[n])};H_.displayName="ElTableV2Empty";const W_=(e,{slots:t})=>{var n;return Z("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};W_.displayName="ElTableV2Overlay";function qi(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Ree="ElTableV2",xee=re({name:Ree,props:F_,setup(e,{slots:t,expose:n}){const o=de("table-v2"),{t:a}=yt(),{columnsStyles:l,fixedColumnsOnLeft:r,fixedColumnsOnRight:i,mainColumns:u,mainTableHeight:c,fixedTableHeight:d,leftTableWidth:f,rightTableWidth:v,data:m,depthMap:p,expandedRowKeys:h,hasFixedColumns:g,mainTableRef:b,leftTableRef:C,rightTableRef:w,isDynamic:y,isResetting:S,isScrolling:E,bodyWidth:_,emptyStyle:R,rootStyle:N,footerHeight:O,showEmpty:P,scrollTo:M,scrollToLeft:L,scrollToTop:H,scrollToRow:K,getRowHeight:Y,onColumnSorted:I,onRowHeightChange:T,onRowHovered:D,onRowExpanded:B,onRowsRendered:z,onScroll:U,onVerticalScroll:V}=QQ(e);return n({scrollTo:M,scrollToLeft:L,scrollToTop:H,scrollToRow:K}),St(Fm,{ns:o,isResetting:S,isScrolling:E}),()=>{const{cache:G,cellProps:X,estimatedRowHeight:le,expandColumnKey:se,fixedData:ae,headerHeight:ve,headerClass:oe,headerProps:j,headerCellProps:ie,sortBy:Se,sortState:xe,rowHeight:De,rowClass:ze,rowEventHandlers:Ze,rowKey:nt,rowProps:Et,scrollbarAlwaysOn:Ue,indentSize:Pe,iconSize:Ae,useIsScrolling:Ge,vScrollbarSize:ot,width:pt}=e,wt=s(m),Ce={cache:G,class:o.e("main"),columns:s(u),data:wt,fixedData:ae,estimatedRowHeight:le,bodyWidth:s(_),headerHeight:ve,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:wt,fixedData:ae,estimatedRowHeight:le,leftTableRef:C,rowHeight:De,bodyWidth:Ve,headerWidth:Ve,headerHeight:ve,height:We,rowKey:nt,scrollbarAlwaysOn:Ue,scrollbarStartGap:2,scrollbarEndGap:ot,useIsScrolling:Ge,width:Ve,getRowHeight:Y,onScroll:V},Ke=s(v),ft={cache:G,class:o.e("right"),columns:s(i),data:wt,fixedData:ae,estimatedRowHeight:le,rightTableRef:w,rowHeight:De,bodyWidth:Ke,headerWidth:Ke,headerHeight:ve,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(h),estimatedRowHeight:le,hasFixedColumns:s(g),rowProps:Et,rowClass:ze,rowKey:nt,rowEventHandlers:Ze,onRowHovered:D,onRowExpanded:B,onRowHeightChange:T},pe={cellProps:X,expandColumnKey:se,indentSize:Pe,iconSize:Ae,rowKey:nt,expandedRowKeys:s(h),ns:o,t:a},Te={ns:o,headerClass:oe,headerProps:j,columnsStyles:it},ce={ns:o,t:a,sortBy:Se,sortState:xe,headerCellProps:ie,onColumnSorted:I},Me={row:an=>Z(_ee,rt(an,mt),{row:t.row,cell:Cn=>{let me;return t.cell?Z(Ym,rt(Cn,pe,{style:it[Cn.column.key]}),qi(me=t.cell(Cn))?me:{default:()=>[me]}):Z(Ym,rt(Cn,pe,{style:it[Cn.column.key]}),null)}}),header:an=>Z(Oee,rt(an,Te),{header:t.header,cell:Cn=>{let me;return t["header-cell"]?Z(V_,rt(Cn,ce,{style:it[Cn.column.key]}),qi(me=t["header-cell"](Cn))?me:{default:()=>[me]}):Z(V_,rt(Cn,ce,{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(wee,Ce,qi(Me)?Me:{default:()=>[Me]}),Z(See,Ut,qi(Me)?Me:{default:()=>[Me]}),Z(Eee,ft,qi(Me)?Me:{default:()=>[Me]}),t.footer&&Z(z_,jt,{default:t.footer}),s(P)&&Z(H_,{class:o.e("empty"),style:s(R)},{default:t.empty}),t.overlay&&Z(W_,{class:o.e("overlay")},{default:t.overlay})])}}});var K_=xee;const j_=he({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:q(Function)}}),Iee=re({name:"ElAutoResizer",props:j_,setup(e,{slots:t}){const n=de("auto-resizer"),{height:o,width:a,sizer:l}=JQ(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})])}}}),Y_=Qe(K_),U_=Qe(Iee),Xi=Symbol("tabsRootContextKey"),G_=he({tabs:{type:q(Array),default:()=>dn([])},tabRefs:{type:q(Object),default:()=>dn({})}}),q_="ElTabBar",Mee=re({name:q_,__name:"tab-bar",props:G_,setup(e,{expose:t}){const n=e,o=_e(Xi);o||_n(q_,"<el-tabs><el-tab-bar /></el-tabs>");const a=de("tabs"),l=A(),r=A(),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 h=["top","bottom"].includes(o.props.tabPosition)?"width":"height",g=h==="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(h)}`];const y=window.getComputedStyle(w);return h==="width"&&(p-=Number.parseFloat(y.paddingLeft)+Number.parseFloat(y.paddingRight),m+=Number.parseFloat(y.paddingLeft)),!1}),{[h]:`${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))})};ue(()=>n.tabs,async()=>{await ke(),c(),f()},{immediate:!0});const v=Qt(l,()=>c());return Dt(()=>{d.forEach(m=>m.stop()),d.length=0,v.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 Nee=ye(Mee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const X_=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}}),Z_={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},J_="ElTabNav",Pee=re({name:J_,props:X_,emits:Z_,setup(e,{expose:t,emit:n}){const o=_e(Xi);o||_n(J_,"<el-tabs><tab-nav /></el-tabs>");const a=de("tabs"),l=gR(),r=yR(),i=A(),u=A(),c=A(),d=A({}),f=A(),v=A(!1),m=A(0),p=A(!1),h=A(!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}=Gd(i),{width:E,height:_}=Gd(u,{width:0,height:0},{box:"border-box"}),R=k(()=>b.value?y.value:S.value),N=k(()=>b.value?E.value:_.value),{onWheel:O}=y$({atStartEdge:k(()=>m.value<=0),atEndEdge:k(()=>N.value-m.value<=R.value),layout:k(()=>b.value?"horizontal":"vertical")},B=>{m.value=Xs(m.value+B,0,N.value-R.value)}),P=()=>{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(!v.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?(v.value=v.value||{},v.value.prev=V,v.value.next=V+U<z,z-V<U&&(m.value=z-U)):(v.value=!1,V>0&&(m.value=0))},K=B=>{const z=Ht(B);let U=0;switch(z){case fe.left:case fe.up:U=-1;break;case fe.right:case fe.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=()=>{h.value&&(p.value=!0)},I=()=>p.value=!1,T=(B,z)=>{d.value[z]=B},D=async()=>{await ke();const B=d.value[e.currentName];B==null||B.focus({preventScroll:!0})};return ue(l,B=>{B==="hidden"?h.value=!1:B==="visible"&&setTimeout(()=>h.value=!0,50)}),ue(r,B=>{B?setTimeout(()=>h.value=!0,50):h.value=!1}),Qt(c,()=>{Ma(H)}),ut(()=>setTimeout(()=>L(),0)),Ga(()=>H()),t({scrollToActiveTab:L,removeFocus:I,focusActiveTab:D,tabListRef:u,tabBarRef:f,scheduleRender:()=>cu(g)}),()=>{const B=v.value?[Z("span",{class:[a.e("nav-prev"),a.is("disabled",!v.value.prev)],onClick:P},[Z($e,null,{default:()=>[Z(il,null,null)]})]),Z("span",{class:[a.e("nav-next"),a.is("disabled",!v.value.next)],onClick:M},[Z($e,null,{default:()=>[Z(oo,null,null)]})])]:null,z=e.panes.map((U,V)=>{var G,X,le,se,ae;const ve=U.uid,oe=U.props.disabled,j=(X=(G=U.props.name)!=null?G:U.index)!=null?X:`${V}`,ie=!oe&&(U.isClosable||U.props.closable!==!1&&e.editable);U.index=`${V}`;const Se=ie?Z($e,{class:"is-icon-close",onClick:ze=>n("tabRemove",U,ze)},{default:()=>[Z(Yo,null,null)]}):null,xe=((se=(le=U.slots).label)==null?void 0:se.call(le))||U.props.label,De=!oe&&U.active?(ae=e.tabindex)!=null?ae:o.props.tabindex:-1;return Z("div",{ref:ze=>T(ze,j),class:[a.e("item"),a.is(o.props.tabPosition),a.is("active",U.active),a.is("disabled",oe),a.is("closable",ie),a.is("focus",p.value)],id:`tab-${j}`,key:`tab-${ve}`,"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=Ht(ze);ie&&(Ze===fe.delete||Ze===fe.backspace)&&n("tabRemove",U,ze)}},[xe,Se])});return g.value,Z("div",{ref:c,class:[a.e("nav-wrap"),a.is("scrollable",!!v.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(Nee,{ref:f,tabs:[...e.panes],tabRefs:d.value},null),z]):null])])}}}),Q_=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}}),Um=e=>He(e)||Re(e),eT={[Ye]:e=>Um(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>Um(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>Um(e),tabAdd:()=>!0},Aee=re({name:"ElTabs",props:Q_,emits:eT,setup(e,{emit:t,slots:n,expose:o}){var a;const l=de("tabs"),r=k(()=>["left","right"].includes(e.tabPosition)),{children:i,addChild:u,removeChild:c,ChildrenSorter:d}=Ci(ct(),"ElTabPane"),f=A(),v=A((a=_t(e.modelValue)?e.defaultValue:e.modelValue)!=null?a:"0"),m=async(w,y=!1)=>{var S,E,_,R;if(!(v.value===w||_t(w)))try{let N;if(e.beforeLeave){const O=e.beforeLeave(w,v.value);N=O instanceof Promise?await O:O}else N=!0;if(N!==!1){const O=(S=i.value.find(P=>P.paneName===v.value))==null?void 0:S.isFocusInsidePane();v.value=w,y&&(t(Ye,w),t("tabChange",w)),(_=(E=f.value)==null?void 0:E.removeFocus)==null||_.call(E),O&&((R=f.value)==null||R.focusActiveTab())}}catch(N){}},p=(w,y,S)=>{w.props.disabled||(t("tabClick",w,S),m(y,!0))},h=(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=Ht(w);[fe.enter,fe.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 ue(()=>e.modelValue,w=>m(w)),ue(v,async()=>{var w;await ke(),(w=f.value)==null||w.scrollToActiveTab()}),St(Xi,{props:e,currentName:v,registerPane:u,unregisterPane:c,nav$:f}),o({currentName:v,get tabNavRef(){return Hr(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(F1,null,null)]})]):null,S=()=>Z(Pee,{ref:f,currentName:v.value,editable:e.editable,type:e.type,panes:i.value,stretch:e.stretch,onTabClick:p,onTabRemove:h},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])}}}),tT=he({label:{type:String,default:""},name:{type:[String,Number]},closable:{type:Boolean,default:void 0},disabled:Boolean,lazy:Boolean}),Lee=["id","aria-hidden","aria-labelledby"],nT="ElTabPane",Dee=re({name:nT,__name:"tab-pane",props:tT,setup(e){const t=e,n=ct(),o=mn(),a=_e(Xi);a||_n(nT,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const l=de("tab-pane"),r=A(),i=A(),u=k(()=>{var h;return(h=t.closable)!=null?h:a.props.closable}),c=k(()=>{var h;return a.currentName.value===((h=t.name)!=null?h:i.value)}),d=A(c.value),f=k(()=>{var h;return(h=t.name)!=null?h:i.value}),v=k(()=>!t.lazy||d.value||c.value),m=()=>{var h;return(h=r.value)==null?void 0:h.contains(document.activeElement)};ue(c,h=>{h&&(d.value=!0)});const p=Lt({uid:n.uid,getVnode:()=>n.vnode,slots:o,props:t,paneName:f,active:c,index:i,isClosable:u,isFocusInsidePane:m});return a.registerPane(p),Dt(()=>{a.unregisterPane(p)}),Pg(()=>{var h;o.label&&((h=a.nav$.value)==null||h.scheduleRender())}),(h,g)=>v.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(h.$slots,"default")],10,Lee)),[[xt,c.value]]):te("v-if",!0)}});var oT=ye(Dee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const aT=Qe(Aee,{TabPane:oT}),lT=cn(oT),rT=he({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:na,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),Bee=re({name:"ElText",__name:"text",props:rT,setup(e){const t=e,n=A(),o=wn(),a=de("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,v,m;if(qa().title)return;let h=!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&&(h=!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&&(h=!0)}h?(v=n.value)==null||v.setAttribute("title",g):(m=n.value)==null||m.removeAttribute("title")};return ut(r),Ga(r),(i,u)=>($(),ne(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 Fee=ye(Bee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const Sd=Qe(Fee),sT=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:()=>D1},clearIcon:{type:q([String,Object]),default:()=>ul},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},Gm=(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},iT=e=>`${e}`.padStart(2,"0"),_s=e=>`${iT(e.hours)}:${iT(e.minutes)}`,Vee=(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)},zee=re({name:"ElTimeSelect",__name:"time-select",props:sT,emits:[ht,"blur","focus","clear",Ye],setup(e,{expose:t}){Je.extend(Av);const{Option:n}=gl,o=e,a=de("input"),l=A(),r=on(),{lang:i}=yt(),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}),v=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:Gm(S,v.value||"-1:-1")<=0||Gm(S,m.value||"100:100")>=0})};if(o.start&&o.end&&o.step){let y=c.value,S;for(;y&&d.value&&Gm(y,d.value)<=0;)S=Je(y,"HH:mm").locale(i.value).format(o.format),w(S,y),y=Vee(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)=>($(),ne(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?($(),ne(s($e),{key:0,class:x(s(a).e("prefix-icon"))},{default:Q(()=>[($(),ne(at(b.prefixIcon)))]),_:1},8,["class"])):te("v-if",!0)]),default:Q(()=>[($(!0),F(Be,null,bt(p.value,w=>($(),ne(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 Hee=ye(zee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);const uT=Qe(Hee),cT="timeline",Wee=re({name:"ElTimeline",props:{reverse:Boolean},setup(e,{slots:t}){const n=de("timeline");return St(cT,t),()=>{var o,a;const l=ca((a=(o=t.default)==null?void 0:o.call(t))!=null?a:[]);return Le("ul",{class:[n.b()]},e.reverse?l.reverse():l)}}});var Kee=Wee;const dT=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:zt},hollow:Boolean}),jee=re({name:"ElTimelineItem",__name:"timeline-item",props:dT,setup(e){const t=e,n=de("timeline-item"),o=k(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(a,l)=>($(),F("li",{class:x([s(n).b(),{[s(n).e("center")]:a.center}])},[W("div",{class:x(s(n).e("tail"))},null,2),a.$slots.dot?te("v-if",!0):($(),F("div",{key:0,class:x(o.value),style:Ie({backgroundColor:a.color})},[a.icon?($(),ne(s($e),{key:0,class:x(s(n).e("icon"))},{default:Q(()=>[($(),ne(at(a.icon)))]),_:1},8,["class"])):te("v-if",!0)],6)),a.$slots.dot?($(),F("div",{key:1,class:x(s(n).e("dot"))},[ee(a.$slots,"dot")],2)):te("v-if",!0),W("div",{class:x(s(n).e("wrapper"))},[!a.hideTimestamp&&a.placement==="top"?($(),F("div",{key:0,class:x([s(n).e("timestamp"),s(n).is("top")])},ge(a.timestamp),3)):te("v-if",!0),W("div",{class:x(s(n).e("content"))},[ee(a.$slots,"default")],2),!a.hideTimestamp&&a.placement==="bottom"?($(),F("div",{key:1,class:x([s(n).e("timestamp"),s(n).is("bottom")])},ge(a.timestamp),3)):te("v-if",!0)],2)],2))}});var fT=ye(jee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const pT=Qe(Kee,{TimelineItem:fT}),vT=cn(fT),qm="left-check-change",Xm="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}}),kd=(e,t)=>[e,t].every(Ee)||Ee(e)&&vn(t),hT={[ht]:(e,t,n)=>[e,n].every(Ee)&&["left","right"].includes(t),[Ye]:e=>Ee(e),[qm]:kd,[Xm]:kd},Zm="checked-change",Yee=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}),Uee={[Zm]:kd},Zi=e=>{const t={label:"label",key:"key",disabled:"disabled"};return k(()=>({...t,...e.props}))},Gee=(e,t,n)=>{const o=Zi(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:v,hasChecked:m}=e.format;return v&&m?d>0?m.replace(/\${checked}/g,d.toString()).replace(/\${total}/g,f.toString()):v.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 ue(()=>t.checked,(d,f)=>{if(u(),t.checkChangeByUser){const v=d.concat(f).filter(m=>!d.includes(m)||!f.includes(m));n(Zm,d,v)}else n(Zm,d),t.checkChangeByUser=!0}),ue(l,()=>{u()}),ue(()=>e.data,()=>{const d=[],f=a.value.map(v=>v[o.value.key]);t.checked.forEach(v=>{f.includes(v)&&d.push(v)}),t.checkChangeByUser=!1,t.checked=d}),ue(()=>e.defaultChecked,(d,f)=>{if(f&&d.length===f.length&&d.every(p=>f.includes(p)))return;const v=[],m=l.value.map(p=>p[o.value.key]);d.forEach(p=>{m.includes(p)&&v.push(p)}),t.checkChangeByUser=!1,t.checked=v},{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(qm,a,l)},onTargetCheckedChange:(a,l)=>{e.rightChecked=a,l&&t(Xm,a,l)}}),Xee=e=>{const t=Zi(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}},Zee=(e,t,n)=>{const o=Zi(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)}}},Jee=re({name:"ElTransferPanel",__name:"transfer-panel",props:Yee,emits:Uee,setup(e,{expose:t,emit:n}){const o=e,a=n,l=mn(),r=({option:y})=>y,{t:i}=yt(),u=de("transfer"),c=Lt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),d=Zi(o),{filteredData:f,checkedSummary:v,isIndeterminate:m,handleAllCheckedChange:p}=Gee(o,c,a),h=k(()=>!vo(c.query)&&vo(f.value)),g=k(()=>!vo(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(Qo),{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(()=>[Ct(ge(y.title)+" ",1),W("span",null,ge(s(v)),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?($(),ne(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(LV),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):te("v-if",!0),tt(Z(s(Jc),{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,bt(s(f),E=>($(),ne(s(Qo),{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,!h.value&&!s(vo)(y.data)]]),tt(W("div",{class:x(s(u).be("panel","empty"))},[ee(y.$slots,"empty",{},()=>[Ct(ge(h.value?s(i)("el.transfer.noMatch"):s(i)("el.transfer.noData")),1)])],2),[[xt,h.value||s(vo)(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 mT=ye(Jee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const Qee={key:0},ete={key:0},tte=re({name:"ElTransfer",__name:"transfer",props:Cr,emits:hT,setup(e,{expose:t,emit:n}){const o=e,a=n,l=mn(),{t:r}=yt(),i=de("transfer"),{formItem:u}=An(),c=Lt({leftChecked:[],rightChecked:[]}),d=Zi(o),{sourceData:f,targetData:v}=Xee(o),{onSourceCheckedChange:m,onTargetCheckedChange:p}=qee(c,a),{addToLeft:h,addToRight:g}=Zee(o,c,a),b=A(),C=A(),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"));ue(()=>o.modelValue,()=>{var N;o.validateEvent&&((N=u==null?void 0:u.validate)==null||N.call(u,"change").catch(O=>void 0))});const R=k(()=>N=>{var O;if(o.renderContent)return o.renderContent(Le,N);const P=(((O=l.default)==null?void 0:O.call(l,{option:N}))||[]).filter(M=>M.type!==Ua);return P.length?P: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(mT,{ref_key:"leftPanel",ref:b,data:s(f),"option-render":R.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(vo)(c.rightChecked),onClick:s(h)},{default:Q(()=>[Z(s($e),null,{default:Q(()=>[Z(s(il))]),_:1}),s(_t)(N.buttonTexts[0])?te("v-if",!0):($(),F("span",Qee,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(vo)(c.leftChecked),onClick:s(g)},{default:Q(()=>[s(_t)(N.buttonTexts[1])?te("v-if",!0):($(),F("span",ete,ge(N.buttonTexts[1]),1)),Z(s($e),null,{default:Q(()=>[Z(s(oo))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),Z(mT,{ref_key:"rightPanel",ref:C,data:s(v),"option-render":R.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 nte=ye(tte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const gT=Qe(nte),Ts="$treeNodeId",bT=function(e,t){!t||t[Ts]||Object.defineProperty(t,Ts,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},Jm=(e,t)=>t==null?void 0:t[e||Ts],Qm=(e,t,n)=>{const o=e.value.currentNode;n();const a=e.value.currentNode;o!==a&&t("current-change",a?a.data:null,a)},yT=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}},Ji=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}=yT(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||Ji(l)},Ed=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}},eg=function(e,t){e.forEach(n=>{n.canFocus=t,eg(n.childNodes,t)})};let ote=0;class au{constructor(t){this.isLeafByUser=void 0,this.isLeaf=void 0,this.isEffectivelyChecked=!1,this.id=ote++,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)Dn(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=Ed(this,"isLeaf");Vt(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(),Ee(this.data)||bT(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){Ee(t)||bT(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Ee(this.data)?n=this.data:n=Ed(this,"children")||[];for(let o=0,a=n.length;o<a;o++)this.insertChild({data:n[o]})}get label(){return Ed(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return Ed(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 au)){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=Lt(new au(t)),t instanceof au&&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(),eg(this.childNodes,!0)};this.shouldLoadData()?this.loadData(a=>{Ee(a)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||Ji(this),o())}):o()}doCreateChildren(t,n={}){t.forEach(o=>{this.insertChild(Object.assign({data:o},n),void 0,!0)})}collapse(){this.expanded=!1,eg(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,v=i.length;f<v;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}=yT(i);c||(this.checked=c,this.indeterminate=u),this.isEffectivelyChecked=this.childNodes.length?d:this.disabled||this.checked}};if(this.shouldLoadData()){this.loadData(()=>{r(),Ji(this)},{checked:t!==!1});return}else r()}const l=this.parent;!l||l.level===0||o||Ji(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||Ji(this)}}var tg=au;class ate{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)Dn(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new tg({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 tg)return t;const n=Rt(t)?Jm(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)Dn(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 $d="RootTree",ng="NodeInstance",og="TreeNodeMap",lte=re({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=de("tree"),n=_e(ng),o=_e($d);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(Sd,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[a.label])])}}});var rte=ye(lte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function wT(e){const t=_e(og,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),Dt(()=>{t&&t.children.delete(n),n=null}),St(og,n),{broadcastExpanded:o=>{if(!!e.accordion)for(const a of n.children)a.treeNodeExpand(o)}}}const CT=Symbol("dragEvents");function ste({props:e,ctx:t,el$:n,dropIndicator$:o,store:a}){const l=de("tree"),r=A({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return St(CT,{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(v){}r.value.draggingNode=f,t.emit("node-drag-start",f.node,d)}},treeNodeDragOver:({event:d,treeNode:f})=>{if(!d.dataTransfer)return;const v=f,m=r.value.dropNode;m&&m.node.id!==v.node.id&&no(m.$el,l.is("drop-inner"));const p=r.value.draggingNode;if(!p||!v)return;let h=!0,g=!0,b=!0,C=!0;lt(e.allowDrop)&&(h=e.allowDrop(p.node,v.node,"prev"),C=g=e.allowDrop(p.node,v.node,"inner"),b=e.allowDrop(p.node,v.node,"next")),d.dataTransfer.dropEffect=g||h||b?"move":"none",(h||g||b)&&(m==null?void 0:m.node.id)!==v.node.id&&(m&&t.emit("node-drag-leave",p.node,m.node,d),t.emit("node-drag-enter",p.node,v.node,d)),h||g||b?r.value.dropNode=v:r.value.dropNode=null,v.node.nextSibling===p.node&&(b=!1),v.node.previousSibling===p.node&&(h=!1),v.node.contains(p.node,!1)&&(g=!1),(p.node===v.node||p.node.contains(v.node))&&(h=!1,g=!1,b=!1);const w=v.$el,y=w.querySelector(`.${l.be("node","content")}`).getBoundingClientRect(),S=n.value.getBoundingClientRect(),E=n.value.scrollTop;let _;const R=h?g?.25:b?.45:1:Number.NEGATIVE_INFINITY,N=b?g?.75:h?.55:0:Number.POSITIVE_INFINITY;let O=-9999;const P=d.clientY-y.top;P<y.height*R?_="before":P>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"?jo(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,v.node,d)},treeNodeDragEnd:d=>{var f,v;const{draggingNode:m,dropType:p,dropNode:h}=r.value;if(d.preventDefault(),d.dataTransfer&&(d.dataTransfer.dropEffect="move"),(m==null?void 0:m.node.data)&&h){const g={data:m.node.data};p!=="none"&&m.node.remove(),p==="before"?(f=h.node.parent)==null||f.insertBefore(g,h.node):p==="after"?(v=h.node.parent)==null||v.insertAfter(g,h.node):p==="inner"&&h.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(h.$el,l.is("drop-inner")),t.emit("node-drag-end",m.node,h.node,p,d),p!=="none"&&t.emit("node-drop",m.node,h.node,p,d)}m&&!h&&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 ite=re({name:"ElTreeNode",components:{ElCollapseTransition:Ai,ElCheckbox:Qo,NodeContent:rte,ElIcon:$e,Loading:Aa},props:{node:{type:tg,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const n=de("tree"),{broadcastExpanded:o}=wT(e),a=_e($d),l=A(!1),r=A(!1),i=A(),u=A(),c=A(),d=_e(CT),f=ct();St(ng,f),e.node.expanded&&(l.value=!0,r.value=!0);const v=a.props.props.children||"children";ue(()=>{var N;const O=(N=e.node.data)==null?void 0:N[v];return O&&[...O]},()=>{e.node.updateChildren()}),ue(()=>e.node.indeterminate,N=>{h(e.node.checked,N)}),ue(()=>e.node.checked,N=>{h(N,e.node.indeterminate)}),ue(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),ue(()=>e.node.expanded,N=>{ke(()=>l.value=N),N&&(r.value=!0)});const m=N=>Jm(a.props.nodeKey,N.data),p=N=>{const O=e.props.class;if(!O)return{};let P;if(lt(O)){const{data:M}=N;P=O(M,N)}else P=O;return He(P)?{[P]:!0}:P},h=(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=>{Qm(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,P=e.node.childNodes;!O&&P.length&&(N=P.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:h,handleClick:g,handleContextMenu:b,handleExpandIconClick:C,handleCheckChange:w,handleChildNodeExpand:(N,O,P)=>{o(O),a.ctx.emit("node-expand",N,O,P)},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:L1}}}),ute=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],cte=["aria-expanded"];function dte(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((...v)=>e.handleClick&&e.handleClick(...v),["stop"])),onContextmenu:t[3]||(t[3]=(...v)=>e.handleContextMenu&&e.handleContextMenu(...v)),onDragstart:t[4]||(t[4]=je((...v)=>e.handleDragStart&&e.handleDragStart(...v),["stop"])),onDragover:t[5]||(t[5]=je((...v)=>e.handleDragOver&&e.handleDragOver(...v),["stop"])),onDragend:t[6]||(t[6]=je((...v)=>e.handleDragEnd&&e.handleDragEnd(...v),["stop"])),onDrop:t[7]||(t[7]=je((...v)=>e.handleDrop&&e.handleDrop(...v),["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?($(),ne(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(()=>[($(),ne(at(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):te("v-if",!0),e.showCheckbox?($(),ne(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?($(),ne(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,bt(e.node.childNodes,v=>($(),ne(d,{key:e.getNodeKey(v),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:v,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,cte)),[[xt,e.expanded]]):te("v-if",!0)]),_:1})],42,ute)),[[xt,e.node.visible]])}var fte=ye(ite,[["render",dte],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function pte({el$:e},t){const n=de("tree");ut(()=>{l()}),Ga(()=>{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=Ht(r),c=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),d=c.indexOf(i);let f;if([fe.up,fe.down].includes(u)){if(r.preventDefault(),u===fe.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()}[fe.left,fe.right].includes(u)&&(r.preventDefault(),i.click());const v=i.querySelector('[type="checkbox"]');[fe.enter,fe.numpadEnter,fe.space].includes(u)&&v&&(r.preventDefault(),v.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 ag=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:zt}}),ST={"check-change":(e,t,n)=>e&&Vt(t)&&Vt(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},vte=re({name:"ElTree",components:{ElTreeNode:fte},props:ag,emits:ST,setup(e,t){const{t:n}=yt(),o=de("tree"),a=A(new ate({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=A(a.value.root),r=A(null),i=A(null),u=A(null),{broadcastExpanded:c}=wT(e),{dragState:d}=ste({props:e,ctx:t,el$:i,dropIndicator$:u,store:a});pte({el$:i},a);const f=ct(),v=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))&&!v.value});ue(()=>e.currentNodeKey,B=>{a.value.setCurrentNodeKey(B!=null?B:null)}),ue(()=>e.defaultCheckedKeys,(B,z)=>{sn(B,z)||a.value.setDefaultCheckedKey(B!=null?B:[])}),ue(()=>e.defaultExpandedKeys,B=>{a.value.setDefaultExpandedKeys(B!=null?B:[])}),ue(()=>e.data,B=>{a.value.setData(B)},{deep:!0}),ue(()=>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)},h=B=>Jm(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)},R=(B,z,U)=>{a.value.setChecked(B,z,U)},N=()=>a.value.getHalfCheckedNodes(),O=()=>a.value.getHalfCheckedKeys(),P=(B,z=!0)=>{g("setCurrentNode"),Qm(a,t.emit,()=>{c(B),a.value.setUserCurrentNode(B,z)})},M=(B=null,z=!0)=>{g("setCurrentKey"),Qm(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)},T=(B,z,U)=>{c(z),t.emit("node-expand",B,z,U)},D=(B,z)=>{g("updateKeyChild"),a.value.updateChildren(B,z)};return St($d,{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:h,getNodePath:b,getCheckedNodes:C,getCheckedKeys:w,getCurrentNode:y,getCurrentKey:S,setCheckedNodes:E,setCheckedKeys:_,setChecked:R,getHalfCheckedNodes:N,getHalfCheckedKeys:O,setCurrentNode:P,setCurrentKey:M,t:n,getNode:L,remove:H,append:K,insertBefore:Y,insertAfter:I,handleNodeExpand:T,updateKeyChildren:D}}});function hte(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,bt(e.root.childNodes,i=>($(),ne(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 mte=ye(vte,[["render",hte],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);const _d=Qe(mte),gte=(e,{attrs:t,emit:n},{select:o,tree:a,key:l})=>{const r=de("tree-select");ue(()=>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 v=(d=a.value.el$)==null?void 0:d.querySelector(`[data-key="${c.at(-1).key}"]`);v==null||v.focus({preventScroll:!0});return}};return ut(()=>{Mt(()=>{var c;return(c=o.value)==null?void 0:c.$el},"keydown",async c=>{const d=Ht(c),{dropdownMenuVisible:f}=o.value;[fe.down,fe.up].includes(d)&&f&&(await ke(),setTimeout(()=>{var v,m,p;if(fe.up===d){const h=a.value.store.root.childNodes;i(h);return}(p=(m=(v=o.value.optionsArray[o.value.states.hoveringIndex].$el)==null?void 0:v.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)}}},bte=re({extends:Ni,setup(e,t){const n=Ni.setup(e,t);delete n.selectOptionClick;const o=ct().proxy;return ke(()=>{n.select.states.cachedOptions.get(o.value)||n.select.onOptionCreate(o)}),ue(()=>t.attrs.visible,a=>{ke(()=>{n.states.visible=a})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});var yte=bte;function lg(e){return e||e===0}function rg(e){return Ee(e)&&e.length}function Os(e){return Ee(e)?e:lg(e)?[e]:[]}function Td(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(rg(i)){const u=Td(i,t,n,o,r);if(u)return u}}}}function Od(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);rg(r)&&Od(r,t,n,l)}}const wte=(e,{attrs:t,slots:n,emit:o},{select:a,tree:l,key:r})=>{ue([()=>e.modelValue,l],()=>{e.showCheckbox&&ke(()=>{const v=l.value;v&&!sn(v.getCheckedKeys(),Os(e.modelValue))&&v.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=(v,m)=>{var p;const h=i.value[v];return lt(h)?h(m,(p=l.value)==null?void 0:p.getNode(u("value",m))):m[h]},c=Os(e.modelValue).map(v=>Td(e.data||[],m=>u("value",m)===v,m=>u("children",m),(m,p,h,g)=>g&&u("value",g))).filter(v=>lg(v)),d=k(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const v=[];return Od(e.data.concat(e.cacheData),m=>{const p=u("value",m);v.push({value:p,currentLabel:u("label",m),isDisabled:u("disabled",m)})},m=>u("children",m)),v}),f=()=>{var v;return(v=l.value)==null?void 0:v.getCheckedKeys().filter(m=>{var p;const h=(p=l.value)==null?void 0:p.getNode(m);return!vn(h)&&vo(h.childNodes)})};return{...xa(Mn(e),Object.keys(_d.props)),...t,nodeKey:r,expandOnClickNode:k(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:k(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(v,{node:m,data:p,store:h})=>v(yte,{value:u("value",p),label:u("label",p),disabled:u("disabled",p),visible:m.visible},e.renderContent?()=>e.renderContent(v,{node:m,data:p,store:h}):n.default?()=>n.default({node:m,data:p,store:h}):void 0),filterNodeMethod:(v,m,p)=>e.filterNodeMethod?e.filterNodeMethod(v,m,p):v?new RegExp(Cp(v),"i").test(u("label",m)||""):!0,onNodeClick:(v,m,p)=>{var h,g,b;if((h=t.onNodeClick)==null||h.call(t,v,m,p),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||m.isLeaf)){if(!u("disabled",v)){const C=(g=a.value)==null?void 0:g.states.options.get(u("value",v));(b=a.value)==null||b.handleOptionSelect(C)}}else e.expandOnClickNode&&p.proxy.handleExpandIconClick()},onCheck:(v,m)=>{var p;if(!e.showCheckbox)return;const h=u("value",v),g={};Od([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(h)?h:void 0);else if(e.multiple){const y=f();o(Ye,C.concat(y))}else{const y=Td([v],_=>!rg(u("children",_))&&!u("disabled",_),_=>u("children",_)),S=y?u("value",y):void 0,E=lg(e.modelValue)&&!!Td([v],_=>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,v,{checkedKeys:l.value.getCheckedKeys(),checkedNodes:l.value.getCheckedNodes(),halfCheckedKeys:l.value.getHalfCheckedKeys(),halfCheckedNodes:l.value.getHalfCheckedNodes()})}),(p=a.value)==null||p.focus()},onNodeExpand:(v,m,p)=>{var h;(h=t.onNodeExpand)==null||h.call(t,v,m,p),ke(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&m.checked){const g={},b=l.value.getCheckedKeys();Od([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 Cte=re({props:{data:{type:Array,default:()=>[]}},setup(e){const t=_e(fs);return ue(()=>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 Ste=re({name:"ElTreeSelect",inheritAttrs:!1,props:{...sh,...ag,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:o}=t,a=A(),l=A(),r=k(()=>e.nodeKey||e.valueKey||"value"),i=gte(e,t,{select:a,tree:l,key:r}),{cacheOptions:u,...c}=wte(e,t,{select:a,tree:l,key:r}),d=Lt({});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,Lt({...i,ref:f=>a.value=f}),{...n,default:()=>[Le(Cte,{data:u.value}),Le(_d,Lt({...c,ref:f=>l.value=f}))]})}});var kte=ye(Ste,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);const kT=Qe(kte),sg=Symbol(),Ete={key:-1,level:-1,data:{}};var Qi=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e))(Qi||{}),ig=(e=>(e.ADD="add",e.DELETE="delete",e))(ig||{});const ET={type:Number,default:26},$te=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:ET,icon:{type:zt},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}),_te=he({node:{type:q(Object),default:()=>dn(Ete)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize:ET}),Tte=he({node:{type:q(Object),required:!0}}),$T="node-click",_T="node-drop",TT="node-expand",OT="node-collapse",RT="current-change",xT="check",IT="check-change",MT="node-contextmenu",Ote={[$T]:(e,t,n)=>e&&t&&n,[_T]:(e,t,n)=>e&&t&&n,[TT]:(e,t)=>e&&t,[OT]:(e,t)=>e&&t,[RT]:(e,t)=>e&&t,[xT]:(e,t)=>e&&t,[IT]:(e,t)=>e&&Vt(t),[MT]:(e,t,n)=>e&&t&&n},Rte={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&Vt(t)};function xte(e,t){const n=A(new Set),o=A(new Set),{emit:a}=ct();ue([()=>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 R=w.get(_);!R||R.forEach(N=>{const O=N.children;let P=!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||(P=!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=P})}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,R=w.children;!e.checkStrictly&&S&&(R==null?void 0:R.length)&&(y=R.some(O=>!O.isEffectivelyChecked));const N=(O,P)=>{_[P?ig.ADD:ig.DELETE](O.key);const M=O.children;!e.checkStrictly&&M&&M.forEach(L=>{(!L.disabled||L.children)&&N(L,P)})};N(w,y),E&&l(),S&&c(w,y)},c=(w,y)=>{const{checkedNodes:S,checkedKeys:E}=p(),{halfCheckedNodes:_,halfCheckedKeys:R}=h();a(xT,w.data,{checkedKeys:E,checkedNodes:S,halfCheckedKeys:R,halfCheckedNodes:_}),a(IT,w.data,y)};function d(w=!1){return p(w).checkedKeys}function f(w=!1){return p(w).checkedNodes}function v(){return h().halfCheckedKeys}function m(){return h().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 R=E.get(_);R&&(!w||w&&R.isLeaf)&&(S.push(_),y.push(R.data))})}return{checkedKeys:S,checkedNodes:y}}function h(){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:v,getHalfCheckedNodes:m,setChecked:b,setCheckedKeys:g}}function Ite(e,t){const n=A(new Set([])),o=A(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,v=[],m=((u=t.value)==null?void 0:u.treeNodes)||[],p=e.filterMethod;f.clear();function h(g){g.forEach(b=>{v.push(b),p!=null&&p(i,b.data,b)?v.forEach(w=>{c.add(w.key),w.expanded=!0}):(b.expanded=!1,b.isLeaf&&f.add(b.key));const C=b.children;if(C&&h(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)}}v.pop()})}return h(m),c}function r(i){return o.value.has(i.key)}return{hiddenExpandIconKeySet:o,hiddenNodeKeySet:n,doFilter:l,isForceHiddenExpandIcon:r}}function Mte(e,t){const n=A(new Set),o=A(),a=Zt(),l=A(),{isIndeterminate:r,isChecked:i,toggleCheckbox:u,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:v,setChecked:m,setCheckedKeys:p}=xte(e,a),{doFilter:h,hiddenNodeKeySet:g,isForceHiddenExpandIcon:b}=Ite(e,a),C=k(()=>{var j;return((j=e.props)==null?void 0:j.value)||Qi.KEY}),w=k(()=>{var j;return((j=e.props)==null?void 0:j.children)||Qi.CHILDREN}),y=k(()=>{var j;return((j=e.props)==null?void 0:j.disabled)||Qi.DISABLED}),S=k(()=>{var j;return((j=e.props)==null?void 0:j.label)||Qi.LABEL}),E=k(()=>{var j;const ie=n.value,Se=g.value,xe=[],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)&&(xe.push(Ze),Ze.children&&ie.has(Ze.key)))for(let nt=Ze.children.length-1;nt>=0;--nt)ze.push(Ze.children[nt])}return xe}),_=k(()=>E.value.length>0);function R(j){const ie=new Map,Se=new Map;let xe=1;function De(Ze,nt=1,Et=void 0){var Ue;const Pe=[];for(const Ae of Ze){const Ge=P(Ae),ot={level:nt,key:Ge,data:Ae};ot.label=L(Ae),ot.parent=Et;const pt=O(Ae);ot.disabled=M(Ae),ot.isLeaf=!pt||pt.length===0,ot.expanded=n.value.has(Ge),pt&&pt.length&&(ot.children=De(pt,nt+1,ot)),Pe.push(ot),ie.set(Ge,ot),Se.has(nt)||Se.set(nt,[]),(Ue=Se.get(nt))==null||Ue.push(ot)}return nt>xe&&(xe=nt),Pe}const ze=De(j);return{treeNodeMap:ie,levelTreeNodeMap:Se,maxLevel:xe,treeNodes:ze}}function N(j){const ie=h(j);ie&&(n.value=ie)}function O(j){return j[w.value]}function P(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 ie=new Set,Se=a.value.treeNodeMap;n.value.forEach(xe=>{const De=Se.get(xe);n.value.delete(De.key),De.expanded=!1}),j.forEach(xe=>{let De=Se.get(xe);for(;De&&!ie.has(De.key);)ie.add(De.key),De.expanded=!0,De=De.parent}),n.value=ie}function Y(j,ie){t($T,j.data,j,ie),T(j),e.expandOnClickNode&&H(j),e.showCheckbox&&(e.checkOnClickNode||j.isLeaf&&e.checkOnClickLeaf)&&!j.disabled&&u(j,!i(j),!0)}function I(j,ie){t(_T,j.data,j,ie)}function T(j){V(j)||(o.value=j.key,t(RT,j.data,j))}function D(j,ie){u(j,ie)}function B(j){const ie=n.value;if(a.value&&e.accordion){const{treeNodeMap:xe}=a.value;ie.forEach(De=>{const ze=xe.get(De);j&&j.level===(ze==null?void 0:ze.level)&&(ie.delete(De),ze.expanded=!1)})}ie.add(j.key);const Se=ae(j.key);Se&&(Se.expanded=!0,t(TT,Se.data,Se))}function z(j){n.value.delete(j.key);const ie=ae(j.key);ie&&(ie.expanded=!1,t(OT,ie.data,ie))}function U(j){return!!j.disabled}function V(j){const ie=o.value;return ie!==void 0&&ie===j.key}function G(){var j,ie;if(!!o.value)return(ie=(j=a.value)==null?void 0:j.treeNodeMap.get(o.value))==null?void 0:ie.data}function X(){return o.value}function le(j){o.value=j}function se(j){a.value=R(j)}function ae(j){var ie;const Se=Rt(j)?P(j):j;return(ie=a.value)==null?void 0:ie.treeNodeMap.get(Se)}function ve(j,ie="auto"){const Se=ae(j);Se&&l.value&&l.value.scrollToItem(E.value.indexOf(Se),ie)}function oe(j){var ie;(ie=l.value)==null||ie.scrollTo(j)}return ue(()=>e.currentNodeKey,j=>{o.value=j},{immediate:!0}),ue(()=>e.defaultExpandedKeys,j=>{n.value=new Set(j)},{immediate:!0}),ue(()=>e.data,j=>{se(j)},{immediate:!0}),{tree:a,flattenTree:E,isNotEmpty:_,listRef:l,getKey:P,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:v,setChecked:m,setCheckedKeys:p,filter:N,setData:se,getNode:ae,expandNode:B,collapseNode:z,setExpandedKeys:K,scrollToNode:ve,scrollTo:oe}}var Nte=re({name:"ElTreeNodeContent",props:Tte,setup(e){const t=_e(sg),n=de("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(Sd,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[o==null?void 0:o.label])}}});const Pte=["aria-expanded","aria-disabled","aria-checked","data-key"],Ate=re({name:"ElTreeNode",__name:"tree-node",props:_te,emits:Rte,setup(e,{emit:t}){const n=e,o=t,a=_e(sg),l=de("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:L1}),u=p=>{const h=a==null?void 0:a.props.props.class;if(!h)return{};let g;if(lt(h)){const{data:b}=p;g=h(b,p)}else g=h;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)},v=p=>{o("check",n.node,p)},m=p=>{var h,g,b,C;(b=(g=(h=a==null?void 0:a.instance)==null?void 0:h.vnode)==null?void 0:g.props)!=null&&b.onNodeContextmenu&&(p.stopPropagation(),p.preventDefault()),a==null||a.ctx.emit(MT,p,(C=n.node)==null?void 0:C.data,n.node)};return(p,h)=>{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:h[1]||(h[1]=je(()=>{},["prevent"])),onDragenter:h[2]||(h[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?($(),ne(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(()=>[($(),ne(at(i.value)))]),_:1},8,["class"])):te("v-if",!0),p.showCheckbox?($(),ne(s(Qo),{key:1,"model-value":p.checked,indeterminate:p.indeterminate,disabled:p.disabled,onChange:v,onClick:h[0]||(h[0]=je(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):te("v-if",!0),Z(s(Nte),{node:{...p.node,expanded:p.expanded}},null,8,["node"])],6)],42,Pte)}}});var Lte=ye(Ate,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const Dte=re({name:"ElTreeV2",__name:"tree",props:$te,emits:Ote,setup(e,{expose:t,emit:n}){const o=e,a=n,l=mn(),r=k(()=>o.itemSize);St(sg,{ctx:{emit:a,slots:l},props:o,instance:ct()}),St(ya,void 0);const{t:i}=yt(),u=de("tree"),{flattenTree:c,isNotEmpty:d,listRef:f,toggleExpand:v,isIndeterminate:m,isChecked:p,isDisabled:h,isCurrent:g,isForceHiddenExpandIcon:b,handleNodeClick:C,handleNodeDrop:w,handleNodeCheck:y,toggleCheckbox:S,getCurrentNode:E,getCurrentKey:_,setCurrentKey:R,getCheckedKeys:N,getCheckedNodes:O,getHalfCheckedKeys:P,getHalfCheckedNodes:M,setChecked:L,setCheckedKeys:H,filter:K,setData:Y,getNode:I,expandNode:T,collapseNode:D,setExpandedKeys:B,scrollToNode:z,scrollTo:U}=Mte(o,a);return t({toggleCheckbox:S,getCurrentNode:E,getCurrentKey:_,setCurrentKey:R,getCheckedKeys:N,getCheckedNodes:O,getHalfCheckedKeys:P,getHalfCheckedNodes:M,setChecked:L,setCheckedKeys:H,filter:K,setData:Y,getNode:I,expandNode:T,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)?($(),ne(s(Sm),{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})=>[($(),ne(Lte,{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(h)(X[le]),current:s(g)(X[le]),"hidden-expand-icon":s(b)(X[le]),onClick:s(C),onToggle:s(v),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 Bte=ye(Dte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const NT=Qe(Bte),ug=Symbol("uploadContextKey"),Fte="ElUpload";class Vte extends Error{constructor(t,n,o,a){super(t),this.name="UploadAjaxError",this.status=n,this.method=o,this.url=a}}function PT(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 Vte(o,n.status,t.method,e)}function zte(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}const Hte=e=>{typeof XMLHttpRequest=="undefined"&&_n(Fte,"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))Ee(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(PT(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(PT(n,e,t));e.onSuccess(zte(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},cg=["text","picture","picture-card"];let Wte=1;const Rd=()=>Date.now()+Wte++,dg=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:cg,default:"text"},httpRequest:{type:q(Function),default:Hte},disabled:{type:Boolean,default:void 0},limit:Number}),AT=he({...dg,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)}}),LT=he({files:{type:q(Array),default:()=>dn([])},disabled:{type:Boolean,default:void 0},handlePreview:{type:q(Function),default:Gt},listType:{type:String,values:cg,default:"text"},crossorigin:{type:q(String)}}),DT={remove:e=>!!e},Kte=["tabindex","aria-disabled","onKeydown"],jte=["src","crossorigin"],Yte=["onClick"],Ute=["title"],Gte=["onClick"],qte=["onClick"],Xte=re({name:"ElUploadList",__name:"upload-list",props:LT,emits:DT,setup(e,{emit:t}){const n=e,o=t,{t:a}=yt(),l=de("upload"),r=de("icon"),i=de("list"),u=on(),c=A(!1),d=k(()=>[l.b("list"),l.bm("list",n.listType),l.is("disabled",u.value)]),f=v=>{o("remove",v)};return(v,m)=>($(),ne(xg,{tag:"ul",class:x(d.value),name:s(i).b()},{default:Q(()=>[($(!0),F(Be,null,bt(v.files,(p,h)=>($(),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(v.$slots,"default",{file:p,index:h},()=>[v.listType==="picture"||p.status!=="uploading"&&v.listType==="picture-card"?($(),F("img",{key:0,class:x(s(l).be("list","item-thumbnail")),src:p.url,crossorigin:v.crossorigin,alt:""},null,10,jte)):te("v-if",!0),p.status==="uploading"||v.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=>v.handlePreview(p),["prevent"])},[Z(s($e),{class:x(s(r).m("document"))},{default:Q(()=>[Z(s(fV))]),_:1},8,["class"]),W("span",{class:x(s(l).be("list","item-file-name")),title:p.name},ge(p.name),11,Ute)],10,Yte),p.status==="uploading"?($(),ne(s(im),{key:0,type:v.listType==="picture-card"?"circle":"line","stroke-width":v.listType==="picture-card"?6:2,percentage:Number(p.percentage),style:Ie(v.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"))},[v.listType==="text"?($(),ne(s($e),{key:0,class:x([s(r).m("upload-success"),s(r).m("circle-check")])},{default:Q(()=>[Z(s(Ep))]),_:1},8,["class"])):["picture-card","picture"].includes(v.listType)?($(),ne(s($e),{key:1,class:x([s(r).m("upload-success"),s(r).m("check")])},{default:Q(()=>[Z(s(si))]),_:1},8,["class"])):te("v-if",!0)],2),s(u)?te("v-if",!0):($(),ne(s($e),{key:2,class:x(s(r).m("close")),onClick:g=>f(p)},{default:Q(()=>[Z(s(Yo))]),_: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)),v.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=>v.handlePreview(p)},[Z(s($e),{class:x(s(r).m("zoom-in"))},{default:Q(()=>[Z(s(z1))]),_:1},8,["class"])],10,Gte),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(cV))]),_:1},8,["class"])],10,qte))],2)):te("v-if",!0)])],42,Kte))),128)),ee(v.$slots,"append")]),_:3},8,["class","name"]))}});var BT=ye(Xte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const FT=he({disabled:{type:Boolean,default:void 0}}),VT={file:e=>Ee(e)},zT="ElUploadDrag",Zte=re({name:zT,__name:"upload-dragger",props:FT,emits:VT,setup(e,{emit:t}){const n=t;_e(ug)||_n(zT,"usage: <el-upload><el-upload-dragger /></el-upload>");const a=de("upload"),l=A(!1),r=on(),i=d=>{if(r.value)return;l.value=!1,d.stopPropagation();const f=Array.from(d.dataTransfer.files),v=d.dataTransfer.items||[];f.forEach((m,p)=>{var h;const g=v[p],b=(h=g==null?void 0:g.webkitGetAsEntry)==null?void 0:h.call(g);b&&(m.isDirectory=b.isDirectory)}),n("file",f)},u=()=>{r.value||(l.value=!0)},c=d=>{d.currentTarget.contains(d.relatedTarget)||(l.value=!1)};return(d,f)=>($(),F("div",{class:x([s(a).b("dragger"),s(a).is("dragover",l.value)]),onDrop:je(i,["prevent"]),onDragover:je(u,["prevent"]),onDragleave:je(c,["prevent"])},[ee(d.$slots,"default")],34))}});var Jte=ye(Zte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const HT=he({...dg,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}}),Qte=["tabindex","aria-disabled","onKeydown"],ene=["name","disabled","multiple","accept"],tne=re({name:"ElUploadContent",inheritAttrs:!1,__name:"upload-content",props:HT,setup(e,{expose:t}){const n=e,o=de("upload"),a=on(),l=Zt({}),r=Zt(),i=h=>{if(h.length===0)return;const{autoUpload:g,limit:b,fileList:C,multiple:w,onStart:y,onExceed:S}=n;if(b&&C.length+h.length>b){S(h,C);return}w||(h=h.slice(0,1));for(const E of h){const _=E;_.uid=Rd(),y(_),g&&u(_)}},u=async h=>{if(r.value.value="",!n.beforeUpload)return d(h);let g,b={};try{const w=n.data,y=n.beforeUpload(h);b=Jd(n.data)?Zs(n.data):n.data,g=await y,Jd(n.data)&&sn(w,b)&&(b=Zs(n.data))}catch(w){g=!1}if(g===!1){n.onRemove(h);return}let C=h;g instanceof Blob&&(g instanceof File?C=g:C=new File([g],h.name,{type:h.type})),d(Object.assign(C,{uid:h.uid}),b)},c=async(h,g)=>lt(h)?h(g):h,d=async(h,g)=>{const{headers:b,data:C,method:w,withCredentials:y,name:S,action:E,onProgress:_,onSuccess:R,onError:N,httpRequest:O}=n;try{g=await c(g!=null?g:C,h)}catch(H){n.onRemove(h);return}const{uid:P}=h,M={headers:b||{},withCredentials:y,file:h,data:g,method:w,filename:S,action:E,onProgress:H=>{_(H,h)},onSuccess:H=>{R(H,h),delete l.value[P]},onError:H=>{N(H,h),delete l.value[P]}},L=O(M);l.value[P]=L,L instanceof Promise&&L.then(M.onSuccess,M.onError)},f=h=>{const g=h.target.files;!g||i(Array.from(g))},v=()=>{a.value||(r.value.value="",r.value.click())},m=()=>{v()};return t({abort:h=>{R1(l.value).filter(h?([b])=>String(h.uid)===b:()=>!0).forEach(([b,C])=>{C instanceof XMLHttpRequest&&C.abort(),delete l.value[b]})},upload:u}),(h,g)=>($(),F("div",{class:x([s(o).b(),s(o).m(h.listType),s(o).is("drag",h.drag),s(o).is("disabled",s(a))]),tabindex:s(a)?void 0:0,"aria-disabled":s(a),role:"button",onClick:v,onKeydown:fn(je(m,["self"]),["enter","space"])},[h.drag?($(),ne(Jte,{key:0,disabled:s(a),onFile:i},{default:Q(()=>[ee(h.$slots,"default")]),_:3},8,["disabled"])):ee(h.$slots,"default",{key:1}),W("input",{ref_key:"inputRef",ref:r,class:x(s(o).e("input")),name:h.name,disabled:s(a),multiple:h.multiple,accept:h.accept,type:"file",onChange:f,onClick:g[0]||(g[0]=je(()=>{},["stop"]))},null,42,ene)],42,Qte))}});var WT=ye(tne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const KT="ElUpload",jT=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},nne=(e,t)=>{const n=Gg(e,"fileList",void 0,{passive:!0}),o=p=>n.value.find(h=>h.uid===p.uid);function a(p){var h;(h=t.value)==null||h.abort(p)}function l(p=["ready","uploading","success","fail"]){n.value=n.value.filter(h=>!p.includes(h.status))}function r(p){n.value=n.value.filter(h=>h.uid!==p.uid)}const i=p=>{ke(()=>e.onChange(p,n.value))},u=(p,h)=>{const g=o(h);!g||(console.error(p),g.status="fail",r(g),e.onError(p,g,n.value),i(g))},c=(p,h)=>{const g=o(h);!g||(e.onProgress(p,g,n.value),g.status="uploading",g.percentage=Math.round(p.percent))},d=(p,h)=>{const g=o(h);!g||(g.status="success",g.response=p,e.onSuccess(p,g,n.value),i(g))},f=p=>{vn(p.uid)&&(p.uid=Rd());const h={name:p.name,percentage:0,status:"ready",size:p.size,raw:p,uid:p.uid};if(e.listType==="picture-card"||e.listType==="picture")try{h.url=URL.createObjectURL(p)}catch(g){g.message,e.onError(g,h,n.value)}n.value=[...n.value,h],i(h)},v=async p=>{const h=p instanceof File?o(p):p;h||_n(KT,"file to be removed not found");const g=b=>{a(b),r(b),e.onRemove(b,n.value),jT(b)};e.beforeRemove?await e.beforeRemove(h,n.value)!==!1&&g(h):g(h)};function m(){n.value.filter(({status:p})=>p==="ready").forEach(({raw:p})=>{var h;return p&&((h=t.value)==null?void 0:h.upload(p))})}return ue(()=>e.listType,p=>{p!=="picture-card"&&p!=="picture"||(n.value=n.value.map(h=>{const{raw:g,url:b}=h;if(!b&&g)try{h.url=URL.createObjectURL(g)}catch(C){e.onError(C,h,n.value)}return h}))}),ue(n,p=>{for(const h of p)h.uid||(h.uid=Rd()),h.status||(h.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:a,clearFiles:l,handleError:u,handleProgress:c,handleStart:f,handleSuccess:d,handleRemove:v,submit:m,revokeFileObjectURL:jT}},one=re({name:"ElUpload",__name:"upload",props:AT,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:v,handleProgress:m,revokeFileObjectURL:p}=nne(n,a),h=k(()=>n.listType==="picture-card"),g=k(()=>({...n,fileList:u.value,onStart:c,onProgress:m,onSuccess:v,onError:d,onRemove:f}));return Dt(()=>{u.value.forEach(p)}),St(ug,{accept:Ft(n,"accept")}),t({abort:l,submit:r,clearFiles:i,handleStart:c,handleRemove:f}),(b,C)=>($(),F("div",null,[h.value&&b.showFileList?($(),ne(BT,{key:0,disabled:s(o),"list-type":b.listType,files:s(u),crossorigin:b.crossorigin,"handle-preview":b.onPreview,onRemove:s(f)},mo({append:Q(()=>[Z(WT,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),!h.value||h.value&&!b.showFileList?($(),ne(WT,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"),!h.value&&b.showFileList?($(),ne(BT,{key:3,disabled:s(o),"list-type":b.listType,files:s(u),crossorigin:b.crossorigin,"handle-preview":b.onPreview,onRemove:s(f)},mo({_: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 ane=ye(one,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const YT=Qe(ane),UT=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 lne(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function rne(e){return Object.keys(e).map(t=>`${lne(t)}: ${e[t]};`).join(" ")}function sne(){return window.devicePixelRatio||1}const ine=(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},une={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function fg(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 cne(){function e(t,n,o,a,l,r,i,u,c){const[d,f,v,m]=fg(a,l,o);let p=0;if(t instanceof HTMLImageElement)d.drawImage(t,0,0,v,m);else{const{color:V,fontSize:G,fontStyle:X,fontWeight:le,fontFamily:se,textAlign:ae,textBaseline:ve}=r,oe=Number(G)*o;d.font=`${X} normal ${le} ${oe}px/${l}px ${se}`,d.fillStyle=V,d.textAlign=ae,d.textBaseline=ve;const j=Ee(t)?t:[t];if(ve!=="top"&&j[0]){const ie=d.measureText(j[0]);d.textBaseline="top";const Se=d.measureText(j[0]);p=ie.actualBoundingBoxAscent-Se.actualBoundingBoxAscent}j==null||j.forEach((ie,Se)=>{const[xe,De]=une[ae];d.fillText(ie!=null?ie:"",v*xe+c*De,Se*(oe+r.fontGap*o))})}const h=Math.PI/180*Number(n),g=Math.max(a,l),[b,C,w]=fg(g,g,o);b.translate(w/2,w/2),b.rotate(h),v>0&&m>0&&b.drawImage(f,-v/2,-m/2);function y(V,G){const X=V*Math.cos(h)-G*Math.sin(h),le=V*Math.sin(h)+G*Math.cos(h);return[X,le]}let S=0,E=0,_=0,R=0;const N=v/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),R=Math.max(R,le)});const M=S+w/2,L=_+w/2,H=E-S,K=R-_,Y=i*o,I=u*o,T=(H+Y)*2,D=K+I,[B,z]=fg(T,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(),T/o,D/o]}return e}const dne=re({name:"ElWatermark",__name:"watermark",props:UT,setup(e){const t={position:"relative"},n=e,o=k(()=>{var P,M;return(M=(P=n.font)==null?void 0:P.fontGap)!=null?M:3}),a=k(()=>{var P,M;return(M=(P=n.font)==null?void 0:P.color)!=null?M:"rgba(0,0,0,.15)"}),l=k(()=>{var P,M;return(M=(P=n.font)==null?void 0:P.fontSize)!=null?M:16}),r=k(()=>{var P,M;return(M=(P=n.font)==null?void 0:P.fontWeight)!=null?M:"normal"}),i=k(()=>{var P,M;return(M=(P=n.font)==null?void 0:P.fontStyle)!=null?M:"normal"}),u=k(()=>{var P,M;return(M=(P=n.font)==null?void 0:P.fontFamily)!=null?M:"sans-serif"}),c=k(()=>{var P,M;return(M=(P=n.font)==null?void 0:P.textAlign)!=null?M:"center"}),d=k(()=>{var P,M;return(M=(P=n.font)==null?void 0:P.textBaseline)!=null?M:"hanging"}),f=k(()=>n.gap[0]),v=k(()=>n.gap[1]),m=k(()=>f.value/2),p=k(()=>v.value/2),h=k(()=>{var P,M;return(M=(P=n.offset)==null?void 0:P[0])!=null?M:m.value}),g=k(()=>{var P,M;return(M=(P=n.offset)==null?void 0:P[1])!=null?M:p.value}),b=()=>{const P={zIndex:n.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let M=h.value-m.value,L=g.value-p.value;return M>0&&(P.left=`${M}px`,P.width=`calc(100% - ${M}px)`,M=0),L>0&&(P.top=`${L}px`,P.height=`calc(100% - ${L}px)`,L=0),P.backgroundPosition=`${M}px ${L}px`,P},C=Zt(null),w=Zt(),y=A(!1),S=()=>{w.value&&(w.value.remove(),w.value=void 0)},E=(P,M)=>{var L;C.value&&w.value&&(y.value=!0,w.value.setAttribute("style",rne({...b(),backgroundImage:`url('${P}')`,backgroundSize:`${Math.floor(M)}px`})),(L=C.value)==null||L.append(w.value),setTimeout(()=>{y.value=!1}))},_=P=>{let M=120,L=64,H=0;const{image:K,content:Y,width:I,height:T,rotate:D}=n;if(!K&&P.measureText){P.font=`${Number(l.value)}px ${u.value}`;const B=Ee(Y)?Y:[Y];let z=0,U=0;B.forEach(G=>{const{width:X,fontBoundingBoxAscent:le,fontBoundingBoxDescent:se,actualBoundingBoxAscent:ae,actualBoundingBoxDescent:ve}=P.measureText(G),oe=_t(le)?ae+ve:le+se;X>z&&(z=Math.ceil(X)),oe>U&&(U=Math.ceil(oe))}),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,T!=null?T:L,H]},R=cne(),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=sne(),[I,T,D]=_(M),B=z=>{const[U,V]=R(z||"",K,Y,I,T,{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,v.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()}),ue(()=>n,()=>{N()},{deep:!0,flush:"post"}),Dt(()=>{S()}),Ds(C,P=>{y.value||P.forEach(M=>{ine(M,w.value)&&(S(),N())})},{attributes:!0,subtree:!0,childList:!0}),(P,M)=>($(),F("div",{ref_key:"containerRef",ref:C,style:Ie([t])},[ee(P.$slots,"default")],4))}});var fne=ye(dne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/watermark/src/watermark.vue"]]);const GT=Qe(fne),pne=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}}),vne=(e,t,n,o,a)=>{const l=A(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}hne(f)||f.scrollIntoView(a.value);const{left:v,top:m,width:p,height:h}=f.getBoundingClientRect();l.value={left:v,top:m,width:p,height:h,radius:0}};ut(()=>{ue([t,e],()=>{i()},{immediate:!0}),window.addEventListener("resize",i)}),Dt(()=>{window.removeEventListener("resize",i)});const u=f=>{var v;return(v=Ee(n.value.offset)?n.value.offset[f]:n.value.offset)!=null?v:6},c=k(()=>{var f;if(!l.value)return l.value;const v=u(0),m=u(1),p=((f=n.value)==null?void 0:f.radius)||2;return{left:l.value.left-v,top:l.value.top-m,width:l.value.width+v*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 v,m,p,h;return window.DOMRect.fromRect({width:((v=c.value)==null?void 0:v.width)||0,height:((m=c.value)==null?void 0:m.height)||0,x:((p=c.value)==null?void 0:p.left)||0,y:((h=c.value)==null?void 0:h.top)||0})}}});return{mergedPosInfo:c,triggerTarget:d}},xd=Symbol("ElTour");function hne(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 mne=(e,t,n,o,a,l,r,i)=>{const u=A(),c=A(),d=A({}),f={x:u,y:c,placement:o,strategy:a,middlewareData:d},v=k(()=>{const b=[CH(s(l)),kH(),SH(),gne()];return s(i)&&s(n)&&b.push(iC({element:s(n)})),b}),m=async()=>{if(!Tt)return;const b=s(e),C=s(t);if(!b||!C)return;const w=await uC(b,C,{placement:s(o),strategy:s(a),middleware:s(v)});Kr(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`:""}}),h=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=yH(b,C,m)),io(()=>{m()})}),Dt(()=>{g&&g()}),{update:m,contentStyle:p,arrowStyle:h}},gne=()=>({name:"overflow",async fn(e){const t=await wH(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),bne={style:{width:"100%",height:"100%"}},yne=["d"],wne=re({name:"ElTourMask",inheritAttrs:!1,__name:"mask",props:pne,setup(e){const t=e,{ns:n}=_e(xd),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}=qd(),i=k(()=>{const d=l.value,f=r.value,v=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} ${v.topRight} v${t.pos.height-p*2} ${v.bottomRight} h${-t.pos.width+p*2} ${v.bottomLeft} v${-t.pos.height+p*2} ${v.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 di(Ft(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",bne,[W("path",{class:x(s(n).e("hollow")),style:Ie(c.value),d:i.value},null,14,yne)]))],16)):te("v-if",!0)}});var Cne=ye(wne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/mask.vue"]]);const qT=["absolute","fixed"],XT=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],Id=he({placement:{type:q(String),values:XT,default:"bottom"},reference:{type:q(Object),default:null},strategy:{type:q(String),values:qT,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),ZT={close:()=>!0},Sne=["data-side"],kne=re({name:"ElTourContent",__name:"content",props:Id,emits:ZT,setup(e,{emit:t}){const n=e,o=t,a=A(n.placement),l=A(n.strategy),r=A(null),i=A(null);ue(()=>n.placement,()=>{a.value=n.placement});const{contentStyle:u,arrowStyle:c}=mne(Ft(n,"reference"),r,i,a,l,Ft(n,"offset"),Ft(n,"zIndex"),Ft(n,"showArrow")),d=k(()=>a.value.split("-")[0]),{ns:f}=_e(xd),v=()=>{o("close")},m=p=>{p.detail.focusReason==="pointer"&&p.preventDefault()};return(p,h)=>($(),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:v,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,Sne))}});var Ene=ye(kne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/content.vue"]]),$ne=re({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){!Ee(d)||d.forEach(f=>{var v;((v=(f==null?void 0:f.type)||{})==null?void 0:v.name)==="ElTourStep"&&(i.push(f),u+=1)})}return r.length&&c(ca((l=r[0])==null?void 0:l.children)),o!==u&&(o=u,n("update-total",u)),i.length?i[e.current]:null}}});const JT=he({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:zt},placement:Id.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:ki.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),QT={[Ye]:e=>Vt(e),["update:current"]:e=>Re(e),close:e=>Re(e),finish:()=>!0,change:e=>Re(e)},_ne=re({name:"ElTour",__name:"tour",props:JT,emits:QT,setup(e,{emit:t}){const n=e,o=t,a=de("tour"),l=A(0),r=A(),i=Gg(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,P;return(P=(O=r.value)==null?void 0:O.contentStyle)!=null?P:n.contentStyle}),v=k(()=>{var O,P;return(P=(O=r.value)==null?void 0:O.mask)!=null?P:n.mask}),m=k(()=>!!v.value&&n.modelValue),p=k(()=>Vt(v.value)?void 0:v.value),h=k(()=>{var O,P;return!!u.value&&((P=(O=r.value)==null?void 0:O.showArrow)!=null?P:n.showArrow)}),g=k(()=>{var O,P;return(P=(O=r.value)==null?void 0:O.scrollIntoViewOptions)!=null?P:n.scrollIntoViewOptions}),b=k(()=>{var O,P;return(P=(O=r.value)==null?void 0:O.type)!=null?P:n.type}),{nextZIndex:C}=Qr(),w=C(),y=k(()=>{var O;return(O=n.zIndex)!=null?O:w}),{mergedPosInfo:S,triggerTarget:E}=vne(u,Ft(n,"modelValue"),Ft(n,"gap"),v,g);ue(()=>n.modelValue,O=>{O||(i.value=0)});const _=()=>{n.closeOnPressEscape&&(o(Ye,!1),o("close",i.value))},R=O=>{l.value=O},N=mn();return St(xd,{currentStep:r,current:i,total:l,showClose:Ft(n,"showClose"),closeIcon:Ft(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,P)=>($(),F(Be,null,[Z(s(rs),{to:O.appendTo},{default:Q(()=>{var M,L;return[W("div",rt({class:c.value},O.$attrs),[Z(Cne,{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?($(),ne(Ene,{key:s(i),reference:s(E),placement:d.value,"show-arrow":h.value,"z-index":y.value,style:Ie(f.value),onClose:_},{default:Q(()=>[Z(s($ne),{current:s(i),onUpdateTotal:R},{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 Tne=ye(_ne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/tour.vue"]]);const eO=he({target:{type:q([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:zt},showArrow:{type:Boolean,default:void 0},placement:Id.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)}}),tO={close:()=>!0},One=["aria-label"],Rne=re({name:"ElTourStep",__name:"step",props:eO,emits:tO,setup(e,{emit:t}){const n=e,o=t,{Close:a}=W1,{t:l}=yt(),{currentStep:r,current:i,total:u,showClose:c,closeIcon:d,mergedType:f,ns:v,slots:m,updateModelValue:p,onClose:h,onFinish:g,onChange:b}=_e(xd);ue(n,O=>{r.value=O},{immediate:!0});const C=k(()=>{var O;return(O=n.showClose)!=null?O:c.value}),w=k(()=>{var O,P;return(P=(O=n.closeIcon)!=null?O:d.value)!=null?P:a}),y=O=>{if(!!O)return Hr(O,["children","onClick"])},S=()=>{var O,P;i.value-=1,(O=n.prevButtonProps)!=null&&O.onClick&&((P=n.prevButtonProps)==null||P.onClick()),b()},E=()=>{var O;i.value>=u.value-1?_():i.value+=1,(O=n.nextButtonProps)!=null&&O.onClick&&n.nextButtonProps.onClick(),b()},_=()=>{R(),g()},R=()=>{p(!1),h(),o("close")},N=O=>{const P=O.target;if(P!=null&&P.isContentEditable)return;switch(Ht(O)){case fe.left:O.preventDefault(),i.value>0&&S();break;case fe.right:O.preventDefault(),E();break}};return ut(()=>{window.addEventListener("keydown",N)}),Dt(()=>{window.removeEventListener("keydown",N)}),(O,P)=>($(),F(Be,null,[C.value?($(),F("button",{key:0,"aria-label":s(l)("el.tour.close"),class:x(s(v).e("closebtn")),type:"button",onClick:R},[Z(s($e),{class:x(s(v).e("close"))},{default:Q(()=>[($(),ne(at(w.value)))]),_:1},8,["class"])],10,One)):te("v-if",!0),W("header",{class:x([s(v).e("header"),{"show-close":s(c)}])},[ee(O.$slots,"header",{},()=>[W("span",{role:"heading",class:x(s(v).e("title"))},ge(O.title),3)])],2),W("div",{class:x(s(v).e("body"))},[ee(O.$slots,"default",{},()=>[W("span",null,ge(O.description),1)])],2),W("footer",{class:x(s(v).e("footer"))},[W("div",{class:x(s(v).b("indicators"))},[s(m).indicators?($(),ne(at(s(m).indicators),{key:0,current:s(i),total:s(u)},null,8,["current","total"])):($(!0),F(Be,{key:1},bt(s(u),(M,L)=>($(),F("span",{key:M,class:x([s(v).b("indicator"),s(v).is("active",L===s(i))])},null,2))),128))],2),W("div",{class:x(s(v).b("buttons"))},[s(i)>0?($(),ne(s(In),rt({key:0,size:"small",type:s(f)},y(O.prevButtonProps),{onClick:S}),{default:Q(()=>{var M,L;return[Ct(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?($(),ne(s(In),rt({key:1,size:"small",type:s(f)==="primary"?"default":"primary"},y(O.nextButtonProps),{onClick:E}),{default:Q(()=>{var M,L;return[Ct(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 nO=ye(Rne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/step.vue"]]);const oO=Qe(Tne,{TourStep:nO}),aO=cn(nO),lO=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}),rO={change:e=>He(e),click:(e,t)=>e instanceof MouseEvent&&(He(t)||_t(t))},sO=Symbol("anchor"),xne=re({name:"ElAnchor",__name:"anchor",props:lO,emits:rO,setup(e,{expose:t,emit:n}){const o=e,a=n,l=mn(),r=A(""),i=A({}),u=A(null),c=A(null),d=A(),f={};let v=!1,m=0;const p=de("anchor"),h=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=Qu(M);if(!L)return;if(w){if(y===M)return;w()}y=M,v=!0;const H=N1(L,d.value),K=Zd(L,H),Y=H.scrollHeight-H.clientHeight,I=Math.min(K-o.offset,Y);w=FF(d.value,m,I,o.duration,()=>{setTimeout(()=>{v=!1,y=""},20)})},E=M=>{M&&(C(M),S(M))},_=(M,L)=>{a("click",M,L),E(L)},R=oz(()=>{d.value&&(m=P1(d.value));const M=N();v||_t(M)||C(M)}),N=()=>{if(!d.value)return;const M=P1(d.value),L=[];for(const H of Object.keys(f)){const K=Qu(H);if(!K)continue;const Y=N1(K,d.value),I=Zd(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=Qu(o.container);!M||li(M)?d.value=window:d.value=M};Mt(d,"scroll",R);const P=()=>{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 ue(r,P),ue(()=>{var M;return(M=l.default)==null?void 0:M.call(l)},P),ut(()=>{O();const M=decodeURIComponent(window.location.hash);Qu(M)?E(M):R()}),ue(()=>o.container,()=>{O()}),St(sO,{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(h.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 Ine=ye(xne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/anchor/src/anchor.vue"]]);const Mne=he({title:String,href:String}),Nne=["href"],Pne=re({name:"ElAnchorLink",__name:"anchor-link",props:Mne,setup(e){const t=e,n=A(null),{ns:o,direction:a,currentAnchor:l,addLink:r,removeLink:i,handleClick:u}=_e(sO),c=k(()=>[o.e("link"),o.is("active",l.value===t.href)]),d=f=>{u(f,t.href)};return ue(()=>t.href,(f,v)=>{ke(()=>{v&&i(v),f&&r({href:f,el:n.value})})}),ut(()=>{const{href:f}=t;f&&r({href:f,el:n.value})}),Dt(()=>{const{href:f}=t;f&&i(f)}),(f,v)=>($(),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",{},()=>[Ct(ge(f.title),1)])],10,Nne),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 iO=ye(Pne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/anchor/src/anchor-link.vue"]]);const uO=Qe(Ine,{AnchorLink:iO}),cO=cn(iO),pg={label:"label",value:"value",disabled:"disabled"},dO=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:()=>pg},block:Boolean,size:Tn,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},id:String,name:String,...Gn(["ariaLabel"])}),fO={[Ye]:e=>He(e)||Re(e)||Vt(e),[ht]:e=>He(e)||Re(e)||Vt(e)},Ane=["id","aria-label","aria-labelledby"],Lne=["name","disabled","checked","onChange"],Dne=re({name:"ElSegmented",__name:"segmented",props:dO,emits:fO,setup(e,{emit:t}){const n=e,o=t,a=de("segmented"),l=Fn(),r=wn(),i=on(),{formItem:u}=An(),{inputId:c,isLabeledByFormItem:d}=Eo(n,{formItemContext:u}),f=A(null),v=pR(),m=Lt({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},h=k(()=>({...pg,...n.props})),g=M=>M,b=M=>Rt(M)?M[h.value.value]:M,C=M=>Rt(M)?M[h.value.label]:M,w=M=>!!(i.value||(Rt(M)?M[h.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){}},R=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)]),P=k(()=>n.name||l.value);return Qt(f,_),ue(v,_),ue(()=>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(R.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,bt(M.options,(H,K)=>($(),F("label",{key:K,class:x(E(H))},[W("input",{class:x(s(a).e("item-input")),type:"radio",name:P.value,disabled:w(H),checked:y(H),onChange:Y=>p(Y,H)},null,42,Lne),W("div",{class:x(s(a).e("item-label"))},[ee(M.$slots,"default",{item:g(H)},()=>[Ct(ge(C(H)),1)])],2)],2))),128))],2)],10,Ane)):te("v-if",!0)}});var Bne=ye(Dne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/segmented/src/segmented.vue"]]);const pO=Qe(Bne),Fne=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value||"").toLowerCase().includes(n)},Vne=(e,t,n)=>{const{selectionEnd:o}=e;if(o===null)return;const a=e.value,l=Pn(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})),v=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"?nc:n.type==="line"?n.status==="success"?Ep:ul:n.status==="success"?si:Yo),h=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",ZX,[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,JX),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(v.value)},null,14,QX)]))],6)),(w.showText||w.$slots.default)&&!w.textInside?($(),F("div",{key:2,class:x(s(o).e("text")),style:Ie({fontSize:`${h.value}px`})},[ee(w.$slots,"default",{percentage:w.percentage},()=>[w.status?($(),ne(s($e),{key:1},{default:Q(()=>[($(),ne(at(p.value)))]),_:1})):($(),F("span",eZ,ge(g.value),1))])],6)):te("v-if",!0)],10,XX))}});var nZ=ye(tZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const im=Qe(nZ),d$=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:()=>[tc,tc,tc]},voidIcon:{type:zt,default:()=>WV},disabledVoidIcon:{type:zt,default:()=>tc},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"])}),f$={[ht]:e=>Re(e),[Ye]:e=>Re(e)},oZ=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],aZ=["onMousemove","onClick"],lZ=re({name:"ElRate",__name:"rate",props:d$,emits:f$,setup(e,{expose:t,emit:n}){function o(T,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)?T<V:T<=V}).sort((V,G)=>V-G),U=D[z[0]];return B(U)&&U.value||U}const a=e,l=n,r=_e(ya,void 0),i=wn(),u=de("rate"),{inputId:c,isLabeledByFormItem:d}=Eo(a,{formItemContext:r}),f=A(a.modelValue),v=A(-1),m=A(!0),p=A([]),h=k(()=>p.value.map(T=>T.$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 T="";return a.showScore?T=a.scoreTemplate.replace(/\{\s*value\s*\}/,b.value?`${a.modelValue}`:`${f.value}`):a.showText&&(T=a.texts[Math.ceil(f.value)-1]),T}),y=k(()=>a.modelValue*100-Math.floor(a.modelValue)*100),S=k(()=>Ee(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 T=o(f.value,S.value);return Rt(T)?"":T}),_=k(()=>{let T="";return b.value?T=`${y.value}%`:a.allowHalf&&(T="50%"),{color:E.value,width:T}}),R=k(()=>{let T=Ee(a.icons)?[...a.icons]:{...a.icons};return T=Cl(T),Ee(T)?{[a.lowThreshold]:T[0],[a.highThreshold]:{value:T[1],excluded:!0},[a.max]:T[2]}:T}),N=k(()=>o(a.modelValue,R.value)),O=k(()=>b.value?He(a.disabledVoidIcon)?a.disabledVoidIcon:Cl(a.disabledVoidIcon):He(a.voidIcon)?a.voidIcon:Cl(a.voidIcon)),P=k(()=>o(f.value,R.value));function M(T){const D=b.value&&y.value>0&&T-1<a.modelValue&&T>a.modelValue,B=a.allowHalf&&m.value&&T-.5<=f.value&&T>f.value;return D||B}function L(T){a.clearable&&T===a.modelValue&&(T=0),l(Ye,T),a.modelValue!==T&&l(ht,T)}function H(T){b.value||(a.allowHalf&&m.value?L(f.value):L(T))}function K(T){if(b.value)return;const D=Ht(T),B=a.allowHalf?.5:1;let z=f.value;switch(D){case fe.up:case fe.right:z+=B;break;case fe.left:case fe.down:z-=B;break}if(z=Xs(z,0,a.max),z!==f.value)return T.stopPropagation(),T.preventDefault(),l(Ye,z),l(ht,z),z}function Y(T,D){b.value||(a.allowHalf&&D?(m.value=D.offsetX*2<=h.value[T-1],f.value=m.value?T-.5:T):f.value=T,v.value=T)}function I(){b.value||(a.allowHalf&&(m.value=a.modelValue!==Math.floor(a.modelValue)),f.value=a.modelValue,v.value=-1)}return ue(()=>a.modelValue,T=>{f.value=T,m.value=a.modelValue!==Math.floor(a.modelValue)}),a.modelValue||l(Ye,0),t({setCurrentValue:Y,resetCurrentValue:I}),(T,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:T.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":T.max,tabindex:"0",style:Ie(C.value),onKeydown:K},[($(!0),F(Be,null,bt(T.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:v.value===z},s(u).is("active",z<=f.value),s(u).is("focus-visible",z===Math.ceil(f.value||1))])},{default:Q(()=>[tt(($(),ne(at(P.value),null,null,512)),[[xt,!M(z)&&z<=f.value]]),tt(($(),ne(at(O.value),null,null,512)),[[xt,!M(z)&&z>f.value]]),tt(($(),ne(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(()=>[($(),ne(at(N.value)))]),_:1},8,["style","class"]),[[xt,M(z)]])]),_:2},1032,["class"])],42,aZ))),128)),T.showText||T.showScore?($(),F("span",{key:0,class:x(s(u).e("text")),style:Ie({color:T.textColor})},ge(w.value),7)):te("v-if",!0)],46,oZ)}}});var rZ=ye(lZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const p$=Qe(rZ),Wl={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},um={[Wl.primary]:ii,[Wl.success]:tV,[Wl.warning]:nc,[Wl.error]:$p,[Wl.info]:ii},v$=he({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}}),sZ=re({name:"ElResult",__name:"result",props:v$,setup(e){const t=e,n=de("result"),o=k(()=>{const a=t.icon,l=a&&Wl[a]?Wl[a]:"icon-info",r=um[l]||um["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?($(),ne(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 iZ=ye(sZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const h$=Qe(iZ);var m$=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function uZ(e,t){return!!(e===t||m$(e)&&m$(t))}function cZ(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!uZ(e[n],t[n]))return!1;return!0}function dZ(e,t){t===void 0&&(t=cZ);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 g$=()=>{const t=ct().proxy.$props;return k(()=>{const n=(o,a,l)=>({});return t.perfMode?Gs(n):dZ(n)})},cm=50,ud="itemRendered",cd="scroll",gs="forward",dd="backward",ea="auto",fd="smart",Ki="start",Ka="center",ji="end",bs="horizontal",b$="vertical",fZ="ltr",ys="rtl",Yi="negative",dm="positive-ascending",fm="positive-descending",pZ={[bs]:"left",[b$]:"top"},vZ=20,hZ=({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=>{rl(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,!Xd()&&f!==0&&u.preventDefault(),a=Ma(()=>{o(l),l=0}))}}};var y$=hZ;const pm=ua({type:q([Number,Function]),required:!0}),vm=ua({type:Number}),hm=ua({type:Number,default:2}),mZ=ua({type:String,values:["ltr","rtl"],default:"ltr"}),mm=ua({type:Number,default:0}),pd=ua({type:Number,required:!0}),w$=ua({type:String,values:["horizontal","vertical"],default:b$}),gm=he({className:{type:String,default:""},containerElement:{type:q([String,Object]),default:"div"},data:{type:q(Array),default:()=>dn([])},direction:mZ,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}),bm=he({cache:hm,estimatedItemSize:vm,layout:w$,initScrollOffset:mm,total:pd,itemSize:pm,...gm}),ym={type:Number,default:6},C$={type:Number,default:0},S$={type:Number,default:2},Kl=he({columnCache:hm,columnWidth:pm,estimatedColumnWidth:vm,estimatedRowHeight:vm,initScrollLeft:mm,initScrollTop:mm,itemKey:{type:q(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:hm,rowHeight:pm,totalColumn:pd,totalRow:pd,hScrollbarSize:ym,vScrollbarSize:ym,scrollbarStartGap:C$,scrollbarEndGap:S$,role:String,...gm}),wm=he({alwaysOn:Boolean,class:String,layout:w$,total:pd,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:ym,startGap:C$,endGap:S$,visible:Boolean}),br=(e,t)=>e<t?gs:dd,Ui=e=>e===fZ||e===ys||e===bs,k$=e=>e===ys;let ws=null;function vd(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=fm:(t.scrollLeft=1,t.scrollLeft===0?ws=Yi:ws=dm),document.body.removeChild(t),ws}return ws}function gZ({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 bZ=re({name:"ElVirtualScrollBar",props:wm,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=k(()=>e.startGap+e.endGap),o=de("virtual-scrollbar"),a=de("scrollbar"),l=A(),r=A();let i=null,u=null;const c=Lt({isDragging:!1,traveled:0}),d=k(()=>hv[e.layout]),f=k(()=>e.clientSize-s(n)),v=k(()=>({position:"absolute",width:`${bs===e.layout?f.value:e.scrollbarSize}px`,height:`${bs===e.layout?e.scrollbarSize:f.value}px`,[pZ[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,vZ),_))}),p=k(()=>{if(!Number.isFinite(m.value))return{display:"none"};const E=`${m.value}px`;return gZ({bar:d.value,size:E,move:c.traveled},e.layout)}),h=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 R=c[d.value.axis];if(!R)return;rl(i);const N=(l.value.getBoundingClientRect()[d.value.direction]-E[d.value.client])*-1,O=r.value[d.value.offset]-R,P=N-O;i=Ma(()=>{c.traveled=Math.max(0,Math.min(P,h.value)),t("scroll",P,h.value)})},S=E=>{const _=Math.abs(E.target.getBoundingClientRect()[d.value.direction]-E[d.value.client]),R=r.value[d.value.offset]/2,N=_-R;c.traveled=Math.max(0,Math.min(N,h.value)),t("scroll",N,h.value)};return ue(()=>e.scrollFrom,E=>{c.isDragging||(c.traveled=Math.ceil(E*h.value))}),Dt(()=>{b()}),()=>Le("div",{role:"presentation",ref:l,class:[o.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:v.value,onMousedown:je(S,["stop","prevent"]),onTouchstartPrevent:C},Le("div",{ref:r,class:a.e("thumb"),style:p.value,onMousedown:C},[]))}});var Cm=bZ;const yZ=({name:e,getOffset:t,getItemSize:n,getItemOffset:o,getEstimatedTotalSize:a,getStartIndexForOffset:l,getStopIndexForStartIndex:r,initCache:i,clearCache:u,validateProps:c})=>re({name:e!=null?e:"ElVirtualList",props:bm,emits:[ud,cd],setup(d,{emit:f,expose:v}){c(d);const m=ct(),p=de("vl"),h=A(i(d,m)),g=g$(),b=A(),C=A(),w=A(),y=A({isScrolling:!1,scrollDir:"forward",scrollOffset:Re(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 ae=l(d,se,s(h)),ve=r(d,ae,se,s(h)),oe=!X||le===dd?Math.max(1,G):1,j=!X||le===gs?Math.max(1,G):1;return[Math.max(0,ae-oe),Math.max(0,Math.min(V-1,ve+j)),ae,ve]}),E=k(()=>a(d,s(h))),_=k(()=>Ui(d.layout)),R=k(()=>[{position:"relative",[`overflow-${_.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:d.direction,height:Re(d.height)?`${d.height}px`:d.height,width:Re(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:P}=y$({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",P,{passive:!1});const M=()=>{const{total:V}=d;if(V>0){const[se,ae,ve,oe]=s(S);f(ud,se,ae,ve,oe)}const{scrollDir:G,scrollOffset:X,updateRequested:le}=s(y);f(cd,G,X,le)},L=V=>{const{clientHeight:G,scrollHeight:X,scrollTop:le}=V.currentTarget,se=s(y);if(se.scrollOffset===le)return;const ae=Math.max(0,Math.min(le,X-G));y.value={...se,isScrolling:!0,scrollDir:br(se.scrollOffset,ae),scrollOffset:ae,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:ae}=d;let ve=X;if(ae===ys)switch(vd()){case Yi:{ve=-X;break}case fm:{ve=le-G-X;break}}ve=Math.max(0,Math.min(ve,le-G)),y.value={...se,isScrolling:!0,scrollDir:br(se.scrollOffset,ve),scrollOffset:ve,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))},T=(V,G=ea)=>{const{scrollOffset:X}=s(y);V=Math.max(0,Math.min(V,d.total-1)),I(t(d,V,G,X,s(h)))},D=V=>{const{direction:G,itemSize:X,layout:le}=d,se=g.value(u&&X,u&&le,u&&G);let ae;if(Dn(se,String(V)))ae=se[V];else{const ve=o(d,V,s(h)),oe=n(d,V,s(h)),j=s(_),ie=G===ys,Se=j?ve:0;se[V]=ae={position:"absolute",left:ie?void 0:`${Se}px`,right:ie?`${Se}px`:void 0,top:j?0:`${ve}px`,height:j?"100%":`${oe}px`,width:j?`${oe}px`:"100%"}}return ae},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);Re(V)&&G&&(s(_)?G.scrollLeft=V:G.scrollTop=V),M()}),Ga(()=>{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(vd()){case Yi:{se.scrollLeft=-X;break}case dm:{se.scrollLeft=X;break}default:{const{clientWidth:ae,scrollWidth:ve}=se;se.scrollLeft=ve-ae-X;break}}else se.scrollLeft=X;else se.scrollTop=X}),zd(()=>{s(b).scrollTop=s(y).scrollOffset});const U={ns:p,clientSize:O,estimatedTotalSize:E,windowStyle:R,windowRef:b,innerRef:C,innerStyle:N,itemsToRender:S,scrollbarRef:w,states:y,getItemStyle:D,onScroll:K,onScrollbarScroll:Y,onWheel:P,scrollTo:I,scrollToItem:T,resetScrollTop:z};return v({windowRef:b,innerRef:C,getItemStyleCache:g,scrollTo:I,scrollToItem:T,resetScrollTop:z,states:y}),U},render(d){var f;const{$slots:v,className:m,clientSize:p,containerElement:h,data:g,getItemStyle:b,innerElement:C,itemsToRender:w,innerStyle:y,layout:S,total:E,onScroll:_,onScrollbarScroll:R,states:N,useIsScrolling:O,windowStyle:P,ns:M}=d,[L,H]=w,K=at(h),Y=at(C),I=[];if(E>0)for(let z=L;z<=H;z++)I.push(Le(Be,{key:z},(f=v.default)==null?void 0:f.call(v,{data:g,index:z,isScrolling:O?N.isScrolling:void 0,style:b(z)})));const T=[Le(Y,rt(d.innerProps,{style:y,ref:"innerRef"}),He(Y)?I:{default:()=>I})],D=Le(Cm,{ref:"scrollbarRef",clientSize:p,layout:S,onScroll:R,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:P,onScroll:_,ref:"windowRef",key:0},He(K)?[T]:{default:()=>[T]});return Le("div",{key:0,class:[M.e("wrapper"),N.scrollbarAlwaysOn?"always-on":""]},[B,D])}});var E$=yZ;const wZ=E$({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=Ui(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===fd&&(i>=f-u&&i<=d+u?r=ea:r=Ka),r){case Ki:return d;case ji:return f;case Ka:{const v=Math.round(f+(d-f)/2);return v<Math.ceil(u/2)?0:v>c+Math.floor(u/2)?c:v}case ea: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=Ui(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 Sm=wZ;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]},CZ=(e,t,n)=>{const{items:o,lastVisitedIndex:a}=t;return(a>0?o[a].offset:0)>=n?$$(e,t,0,a,n):SZ(e,t,Math.max(0,a),n)},$$=(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)},SZ=(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 $$(e,t,Math.floor(n/2),Math.min(n,a-1),o)},_$=({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},kZ=E$({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>Cs(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:_$,getOffset:(e,t,n,o,a)=>{const{height:l,layout:r,width:i}=e,u=Ui(r)?i:l,c=Cs(e,t,a),d=_$(e,a),f=Math.max(0,Math.min(d-u,c.offset)),v=Math.max(0,c.offset-u+c.size);switch(n===fd&&(o>=v-u&&o<=f+u?n=ea:n=Ka),n){case Ki:return f;case ji:return v;case Ka:return Math.round(v+(f-v)/2);case ea:default:return o>=v&&o<=f?o:o<v?v:f}},getStartIndexForOffset:(e,t,n)=>CZ(e,n,t),getStopIndexForStartIndex:(e,t,n,o)=>{const{height:a,total:l,layout:r,width:i}=e,u=Ui(r)?i:a,c=Cs(e,t,o),d=n+u;let f=c.offset+c.size,v=t;for(;v<l-1&&f<d;)v++,f+=Cs(e,v,o).size;return v},initCache({estimatedItemSize:e=cm},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 T$=kZ;const EZ=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:o},a)=>{let l=null,r=0,i=0;const u=(d,f)=>{const v=d<=0&&t.value||d>=0&&e.value,m=f<=0&&o.value||f>=0&&n.value;return v&&m};return{hasReachedEdge:u,onWheel:d=>{rl(l);let f=d.deltaX,v=d.deltaY;Math.abs(f)>Math.abs(v)?v=0:f=0,d.shiftKey&&v!==0&&(f=v,v=0),!(u(r,i)&&u(r+f,i+v))&&(r+=f,i+=v,d.preventDefault(),l=Ma(()=>{a(r,i),r=0,i=0}))}}},$Z=(e,t,n,o,a,l,r)=>{const i=A(0),u=A(0);let c,d=0,f=0;const v=p=>{rl(c),i.value=p.touches[0].clientX,u.value=p.touches[0].clientY,d=0,f=0},m=p=>{p.preventDefault(),rl(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 h=o.value-s(l),g=a.value-s(r),b=Math.min(t.value.scrollLeft+d,h),C=Math.min(t.value.scrollTop+f,g);n({scrollLeft:b,scrollTop:C}),d=0,f=0})};return Mt(e,"touchstart",v,{passive:!0}),Mt(e,"touchmove",m,{passive:!1}),{touchStartX:i,touchStartY:u,handleTouchStart:v,handleTouchMove:m}},_Z=({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:v,injectToInstance:m,validateProps:p})=>re({name:e!=null?e:"ElVirtualList",props:Kl,emits:[ud,cd],setup(h,{emit:g,expose:b,slots:C}){const w=de("vl");p(h);const y=ct(),S=A(v(h,y));m==null||m(y,S);const E=A(),_=A(),R=A(),N=A(),O=A({isScrolling:!1,scrollLeft:Re(h.initScrollLeft)?h.initScrollLeft:0,scrollTop:Re(h.initScrollTop)?h.initScrollTop:0,updateRequested:!1,xAxisScrollDir:gs,yAxisScrollDir:gs}),P=g$(),M=k(()=>Number.parseInt(`${h.height}`,10)),L=k(()=>Number.parseInt(`${h.width}`,10)),H=k(()=>{const{totalColumn:Pe,totalRow:Ae,columnCache:Ge}=h,{isScrolling:ot,xAxisScrollDir:pt,scrollLeft:wt}=s(O);if(Pe===0||Ae===0)return[0,0,0,0];const Ce=o(h,wt,s(S)),Ve=a(h,Ce,wt,s(S)),We=!ot||pt===dd?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]}),K=k(()=>{const{totalColumn:Pe,totalRow:Ae,rowCache:Ge}=h,{isScrolling:ot,yAxisScrollDir:pt,scrollTop:wt}=s(O);if(Pe===0||Ae===0)return[0,0,0,0];const Ce=d(h,wt,s(S)),Ve=f(h,Ce,wt,s(S)),We=!ot||pt===dd?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]}),Y=k(()=>l(h,s(S))),I=k(()=>r(h,s(S))),T=k(()=>{var Pe;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:h.direction,height:Re(h.height)?`${h.height}px`:h.height,width:Re(h.width)?`${h.width}px`:h.width},(Pe=h.style)!=null?Pe:{}]}),D=k(()=>{const Pe=`${s(I)}px`;return{height:`${s(Y)}px`,pointerEvents:s(O).isScrolling?"none":void 0,width:Pe,margin:0,boxSizing:"border-box"}}),B=()=>{const{totalColumn:Pe,totalRow:Ae}=h;if(Pe>0&&Ae>0){const[Ve,We,Ut,Ke]=s(H),[ft,it,mt,pe]=s(K);g(ud,{columnCacheStart:Ve,columnCacheEnd:We,rowCacheStart:ft,rowCacheEnd:it,columnVisibleStart:Ut,columnVisibleEnd:Ke,rowVisibleStart:mt,rowVisibleEnd:pe})}const{scrollLeft:Ge,scrollTop:ot,updateRequested:pt,xAxisScrollDir:wt,yAxisScrollDir:Ce}=s(O);g(cd,{xAxisScrollDir:wt,scrollLeft:Ge,yAxisScrollDir:Ce,scrollTop:ot,updateRequested:pt})},z=Pe=>{const{clientHeight:Ae,clientWidth:Ge,scrollHeight:ot,scrollLeft:pt,scrollTop:wt,scrollWidth:Ce}=Pe.currentTarget,Ve=s(O);if(Ve.scrollTop===wt&&Ve.scrollLeft===pt)return;let We=pt;if(k$(h.direction))switch(vd()){case Yi:We=-pt;break;case fm:We=Ce-Ge-pt;break}O.value={...Ve,isScrolling:!0,scrollLeft:We,scrollTop:Math.max(0,Math.min(wt,ot-Ae)),updateRequested:!0,xAxisScrollDir:br(Ve.scrollLeft,We),yAxisScrollDir:br(Ve.scrollTop,wt)},ke(()=>ie()),Se(),B()},U=(Pe,Ae)=>{const Ge=s(M),ot=(Y.value-Ge)/Ae*Pe;X({scrollTop:Math.min(Y.value-Ge,ot)})},V=(Pe,Ae)=>{const Ge=s(L),ot=(I.value-Ge)/Ae*Pe;X({scrollLeft:Math.min(I.value-Ge,ot)})},{onWheel:G}=EZ({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))},(Pe,Ae)=>{var Ge,ot,pt,wt;(ot=(Ge=_.value)==null?void 0:Ge.onMouseUp)==null||ot.call(Ge),(wt=(pt=R.value)==null?void 0:pt.onMouseUp)==null||wt.call(pt);const Ce=s(L),Ve=s(M);X({scrollLeft:Math.min(O.value.scrollLeft+Pe,I.value-Ce),scrollTop:Math.min(O.value.scrollTop+Ae,Y.value-Ve)})});Mt(E,"wheel",G,{passive:!1});const X=({scrollLeft:Pe=O.value.scrollLeft,scrollTop:Ae=O.value.scrollTop})=>{Pe=Math.max(Pe,0),Ae=Math.max(Ae,0);const Ge=s(O);Ae===Ge.scrollTop&&Pe===Ge.scrollLeft||(O.value={...Ge,xAxisScrollDir:br(Ge.scrollLeft,Pe),yAxisScrollDir:br(Ge.scrollTop,Ae),scrollLeft:Pe,scrollTop:Ae,updateRequested:!0},ke(()=>ie()),Se(),B())},{touchStartX:le,touchStartY:se,handleTouchStart:ae,handleTouchMove:ve}=$Z(E,O,X,I,Y,L,M),oe=(Pe=0,Ae=0,Ge=ea)=>{const ot=s(O);Ae=Math.max(0,Math.min(Ae,h.totalColumn-1)),Pe=Math.max(0,Math.min(Pe,h.totalRow-1));const pt=M1(w.namespace.value),wt=s(S),Ce=l(h,wt),Ve=r(h,wt);X({scrollLeft:i(h,Ae,Ge,ot.scrollLeft,wt,Ve>h.width?pt:0),scrollTop:u(h,Pe,Ge,ot.scrollTop,wt,Ce>h.height?pt:0)})},j=(Pe,Ae)=>{const{columnWidth:Ge,direction:ot,rowHeight:pt}=h,wt=P.value(t&&Ge,t&&pt,t&&ot),Ce=`${Pe},${Ae}`;if(Dn(wt,Ce))return wt[Ce];{const[,Ve]=n(h,Ae,s(S)),We=s(S),Ut=k$(ot),[Ke,ft]=c(h,Pe,We),[it]=n(h,Ae,We);return wt[Ce]={position:"absolute",left:Ut?void 0:`${Ve}px`,right:Ut?`${Ve}px`:void 0,top:`${ft}px`,height:`${Ke}px`,width:`${it}px`},wt[Ce]}},ie=()=>{O.value.isScrolling=!1,ke(()=>{P.value(-1,null,null)})};ut(()=>{if(!Tt)return;const{initScrollLeft:Pe,initScrollTop:Ae}=h,Ge=s(E);Ge&&(Re(Pe)&&(Ge.scrollLeft=Pe),Re(Ae)&&(Ge.scrollTop=Ae)),B()});const Se=()=>{const{direction:Pe}=h,{scrollLeft:Ae,scrollTop:Ge,updateRequested:ot}=s(O),pt=s(E);if(ot&&pt){if(Pe===ys)switch(vd()){case Yi:{pt.scrollLeft=-Ae;break}case dm:{pt.scrollLeft=Ae;break}default:{const{clientWidth:wt,scrollWidth:Ce}=pt;pt.scrollLeft=Ce-wt-Ae;break}}else pt.scrollLeft=Math.max(0,Ae);pt.scrollTop=Math.max(0,Ge)}},{resetAfterColumnIndex:xe,resetAfterRowIndex:De,resetAfter:ze}=y.proxy;b({windowRef:E,innerRef:N,getItemStyleCache:P,touchStartX:le,touchStartY:se,handleTouchStart:ae,handleTouchMove:ve,scrollTo:X,scrollToItem:oe,states:O,resetAfterColumnIndex:xe,resetAfterRowIndex:De,resetAfter:ze});const Ze=()=>{const{scrollbarAlwaysOn:Pe,scrollbarStartGap:Ae,scrollbarEndGap:Ge,totalColumn:ot,totalRow:pt}=h,wt=s(L),Ce=s(M),Ve=s(I),We=s(Y),{scrollLeft:Ut,scrollTop:Ke}=s(O),ft=Le(Cm,{ref:_,alwaysOn:Pe,startGap:Ae,endGap:Ge,class:w.e("horizontal"),clientSize:wt,layout:"horizontal",onScroll:V,ratio:wt*100/Ve,scrollFrom:Ut/(Ve-wt),total:pt,visible:!0}),it=Le(Cm,{ref:R,alwaysOn:Pe,startGap:Ae,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 Pe;const[Ae,Ge]=s(H),[ot,pt]=s(K),{data:wt,totalColumn:Ce,totalRow:Ve,useIsScrolling:We,itemKey:Ut}=h,Ke=[];if(Ve>0&&Ce>0)for(let ft=ot;ft<=pt;ft++)for(let it=Ae;it<=Ge;it++){const mt=Ut({columnIndex:it,data:wt,rowIndex:ft});Ke.push(Le(Be,{key:mt},(Pe=C.default)==null?void 0:Pe.call(C,{columnIndex:it,data:wt,isScrolling:We?s(O).isScrolling:void 0,style:j(ft,it),rowIndex:ft})))}return Ke},Et=()=>{const Pe=at(h.innerElement),Ae=nt();return[Le(Pe,rt(h.innerProps,{style:s(D),ref:N}),He(Pe)?Ae:{default:()=>Ae})]};return()=>{const Pe=at(h.containerElement),{horizontalScrollbar:Ae,verticalScrollbar:Ge}=Ze(),ot=Et();return Le("div",{key:0,class:w.e("wrapper"),role:h.role},[Le(Pe,{class:h.className,style:s(T),onScroll:z,ref:E},He(Pe)?ot:{default:()=>ot}),Ae,Ge])}}});var O$=_Z;const TZ=O$({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=ea:a=Ka),a){case Ki:return c;case ji:return d;case Ka:{const f=Math.round(d+(c-d)/2);return f<Math.ceil(n/2)?0:f>u+Math.floor(n/2)?u:f}case ea: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===fd&&(l>=d-t&&l<=c+t?a=ea:a=Ka),a){case Ki:return c;case ji:return d;case Ka:{const f=Math.round(d+(c-d)/2);return f<Math.ceil(t/2)?0:f>u+Math.floor(t/2)?u:f}case ea: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 R$=TZ;const{max:hd,min:x$,floor:I$}=Math,OZ={column:"columnWidth",row:"rowHeight"},km={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},bl=(e,t,n,o)=>{const[a,l,r]=[n[o],e[OZ[o]],n[km[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[km[o]]=t}return a[t]},M$=(e,t,n,o,a,l)=>{for(;n<=o;){const r=n+I$((o-n)/2),i=bl(e,r,t,l).offset;if(i===a)return r;i<a?n=r+1:o=r-1}return hd(0,n-1)},RZ=(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 M$(e,t,I$(n/2),x$(n,l-1),o,a)},N$=(e,t,n,o)=>{const[a,l]=[t[o],t[km[o]]];return(l>0?a[l].offset:0)>=n?M$(e,t,0,l,n,o):RZ(e,t,hd(0,l),n,o)},P$=({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},A$=({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},xZ={column:A$,row:P$},L$=(e,t,n,o,a,l,r)=>{const[i,u]=[l==="row"?e.height:e.width,xZ[l]],c=bl(e,t,a,l),d=u(e,a),f=hd(0,x$(d-i,c.offset)),v=hd(0,c.offset-i+r+c.size);switch(n===fd&&(o>=v-i&&o<=f+i?n=ea:n=Ka),n){case Ki:return f;case ji:return v;case Ka:return Math.round(v+(f-v)/2);case ea:default:return o>=v&&o<=f?o:v>f||o<v?v:f}},IZ=O$({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)=>L$(e,t,n,o,a,"column",l),getRowOffset:(e,t,n,o,a,l)=>L$(e,t,n,o,a,"row",l),getColumnStartIndexForOffset:(e,t,n)=>N$(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:P$,getEstimatedTotalWidth:A$,getRowStartIndexForOffset:(e,t,n)=>N$(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,Re(l)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,l-1)),Re(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=cm,estimatedRowHeight:t=cm})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}});var D$=IZ;const MZ=re({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:de("select")}}});function NZ(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 PZ=ye(MZ,[["render",NZ],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function AZ(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const LZ=he({allowCreate:Boolean,autocomplete:{type:q(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:zt,default:ul},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:Kt.teleported,persistent:{type:Boolean,default:!0},popperClass:Kt.popperClass,popperStyle:Kt.popperStyle,popperOptions:{type:q(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},size:Tn,props:{type:q(Object),default:()=>Xc},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:cl,default:"bottom-start"},fallbackPlacements:{type:q(Array),default:["bottom-start","top-start","right","left"]},tagType:{...Ha.type,default:"info"},tagEffect:{...Ha.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:Kt.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return Vt(e)||Re(e)}},suffixIcon:{type:zt,default:Pa},...Dl,...Gn(["ariaLabel"])}),DZ=he({data:Array,disabled:Boolean,hovering:Boolean,item:{type:q(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),BZ={[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},FZ={hover:e=>Re(e),select:(e,t)=>!0},md=Symbol("ElSelectV2Injection"),VZ=re({props:DZ,emits:FZ,setup(e,{emit:t}){const n=_e(md),o=de("select"),{hoverItem:a,selectOptionClick:l}=AZ(e,{emit:t}),{getLabel:r}=Ii(n.props),i=n.contentId;return{ns:o,contentId:i,hoverItem:a,selectOptionClick:l,getLabel:r}}}),zZ=["id","aria-selected","aria-disabled"];function HZ(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,zZ)}var WZ=ye(VZ,[["render",HZ],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const KZ={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number,id:String,ariaLabel:String};var jZ=re({name:"ElSelectDropdown",props:KZ,setup(e,{slots:t,expose:n}){const o=_e(md),a=de("select"),{getLabel:l,getValue:r,getDisabled:i}=Ii(o.props),u=A([]),c=A(),d=k(()=>e.data.length);ue(()=>d.value,()=>{var P,M;(M=(P=o.tooltipRef.value)==null?void 0:P.updatePopper)==null||M.call(P)});const f=k(()=>_t(o.props.estimatedOptionHeight)),v=k(()=>f.value?{itemSize:o.props.itemHeight}:{estimatedSize:o.props.estimatedOptionHeight,itemSize:P=>u.value[P]}),m=(P=[],M)=>{const{props:{valueKey:L}}=o;return Rt(M)?P&&P.some(H=>du(gn(H,L))===gn(M,L)):P.includes(M)},p=(P,M)=>{if(Rt(M)){const{valueKey:L}=o.props;return gn(P,L)===gn(M,L)}else return P===M},h=(P,M)=>o.props.multiple?m(P,r(M)):p(P,r(M)),g=(P,M)=>{const{disabled:L,multiple:H,multipleLimit:K}=o.props;return L||!M&&(H?K>0&&P.length>=K:!1)},b=P=>e.hoveringIndex===P;n({listRef:c,isSized:f,isItemDisabled:g,isItemHovering:b,isItemSelected:h,scrollToItem:P=>{const M=c.value;M&&M.scrollToItem(P)},resetScrollTop:()=>{const P=c.value;P&&P.resetScrollTop()}});const S=P=>{const{index:M,data:L,style:H}=P,K=s(f),{itemSize:Y,estimatedSize:I}=s(v),{modelValue:T}=o.props,{onSelect:D,onHover:B}=o,z=L[M];if(z.type==="Group")return Z(PZ,{item:z,style:H,height:K?Y:I},null);const U=h(T,z),V=g(T,U),G=b(M);return Z(WZ,rt(P,{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,R=()=>{E("forward")},N=()=>{E("backward")},O=P=>{const M=Ht(P),{tab:L,esc:H,down:K,up:Y,enter:I,numpadEnter:T}=fe;switch([H,K,Y,I,T].includes(M)&&(P.preventDefault(),P.stopPropagation()),M){case L:case H:break;case K:R();break;case Y:N();break;case I:case T:_();break}};return()=>{var P,M,L,H;const{data:K,width:Y}=e,{height:I,multiple:T,scrollbarAlwaysOn:D}=o.props,B=k(()=>mu?!0:D),z=s(f)?Sm:T$;return Z("div",{class:[a.b("dropdown"),a.is("multiple",T)],style:{width:`${Y}px`}},[(P=t.header)==null?void 0:P.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(v),{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 YZ(e,t){const{aliasProps:n,getLabel:o,getValue:a}=Ii(e),l=A(0),r=A(),i=k(()=>e.allowCreate&&e.filterable);ue(()=>e.options,m=>{const p=new Set(m.map(h=>o(h)));t.createdOptions=t.createdOptions.filter(h=>!p.has(o(h)))});function u(m){const p=h=>o(h)===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(h=>o(h)!==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(h=>a(h)===a(m));~p&&(t.createdOptions.splice(p,1),l.value--)}function v(){i.value&&(t.createdOptions.length=0,l.value=0)}return{createNewOption:d,removeNewOption:f,selectNewOption:c,clearAllNewOption:v}}const UZ=(e,t)=>{const{t:n}=yt(),o=mn(),a=de("select"),l=de("input"),{form:r,formItem:i}=An(),{inputId:u}=Eo(e,{formItemContext:i}),{aliasProps:c,getLabel:d,getValue:f,getDisabled:v,getOptions:m}=Ii(e),{valueOnClear:p,isEmptyValue:h}=ls(e),g=Lt({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),b=A(-1),C=A(!1),w=A(),y=A(),S=A(),E=A(),_=A(),R=A(),N=A(),O=A(),P=A(),M=A(),{isComposing:L,handleCompositionStart:H,handleCompositionEnd:K,handleCompositionUpdate:Y}=as({afterComposition:we=>tn(we)}),I=on(),{wrapperRef:T,isFocused:D,handleBlur:B}=za(_,{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=A([]),G=A(!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?Ee(e.modelValue)&&e.modelValue.length>0:!h(e.modelValue)),ae=k(()=>e.clearable&&!I.value&&se.value&&(D.value||g.inputHovering)),ve=k(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),oe=k(()=>ve.value&&a.is("reverse",G.value)),j=k(()=>(i==null?void 0:i.validateState)||""),ie=k(()=>{if(!!j.value)return oc[j.value]}),Se=k(()=>e.remote?e.debounce:0),xe=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(Cp(we),"i"),vt=kt=>ze.value||Ze.value?!0:we?Xe.test(d(kt)||""):!0;return e.loading?[]:[...g.createdOptions,...e.options].reduce((kt,Ln)=>{const Bo=m(Ln);if(Ee(Bo)){const Is=Bo.filter(vt);Is.length>0&&kt.push({label:d(Ln),type:"Group"},...Is)}else(e.remote||vt(Ln))&&kt.push(Ln);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}),Pe=k(()=>{const we=new Map;return V.value.forEach((Xe,vt)=>{we.set(Fe(f(Xe)),{option:Xe,index:vt})}),we}),Ae=k(()=>V.value.every(we=>v(we))),Ge=wn(),ot=k(()=>Ge.value==="small"?"small":"default"),pt=()=>{var we;if(Re(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,wt())}):b.value=Xe},wt=()=>{var we,Xe;const kt=document.createElement("canvas").getContext("2d"),Ln=a.be("dropdown","item"),Is=(((Xe=(we=O.value)==null?void 0:we.listRef)==null?void 0:Xe.innerRef)||document).querySelector(`.${Ln}`);if(Is===null||kt===null)return 0;const iu=getComputedStyle(Is),VO=Number.parseFloat(iu.paddingLeft)+Number.parseFloat(iu.paddingRight);return kt.font=`bold ${iu.font.replace(new RegExp(`\\b${iu.fontWeight}\\b`),"")}`,V.value.reduce((zO,HO)=>{const WO=kt.measureText(d(HO));return Math.max(WO.width,zO)},0)+VO},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+As: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(()=>Ee(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&&Pe.value.has(e.modelValue[we-1])){const{index:Xe}=Pe.value.get(e.modelValue[we-1]);return Xe}}else if(!h(e.modelValue)&&Pe.value.has(e.modelValue)){const{index:we}=Pe.value.get(e.modelValue);return we}return-1}),mt=k({get(){return G.value&&(e.loading||!xe.value||e.remote&&!!o.empty)&&(!C.value||!vo(g.previousQuery))},set(we){G.value=we}}),pe=k(()=>e.multiple?e.collapseTags?g.cachedOptions.slice(0,e.maxCollapseTags):g.cachedOptions:[]),Te=k(()=>e.multiple?e.collapseTags?g.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:ce,removeNewOption:Me,selectNewOption:st,clearAllNewOption:jt}=YZ(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),ce(g.inputValue),ke(()=>{Oe(g.inputValue)})},me=Ls(()=>{Cn(),C.value=!1},Se),Oe=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=>{sn(e.modelValue,we)||t(ht,we)},Nt=we=>{t(Ye,we),en(we),g.previousValue=e.multiple?String(we):we,ke(()=>{if(e.multiple&&Ee(e.modelValue)){const Xe=g.cachedOptions.slice(),vt=e.modelValue.map(kt=>Ea(kt,Xe));sn(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((Ln,Bo)=>gn(Ln,vt)===gn(Xe,vt)?(kt=Bo,!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},ta=()=>{var we,Xe;(Xe=(we=S.value)==null?void 0:we.updatePopper)==null||Xe.call(we)},lu=()=>{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&&Oe(""),e.filterable&&!e.reserveKeyword&&(g.inputValue="")}else g.selectedLabel=d(we),!sn(e.modelValue,Xe)&&Nt(Xe),G.value=!1,st(we),we.created||jt();ja()},ru=(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(),ja()},ja=()=>{var we;(we=_.value)==null||we.focus()},Ad=()=>{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()},Ld=()=>{g.inputValue.length>0?g.inputValue="":G.value=!1},Dd=we=>Vu(we,Xe=>!g.cachedOptions.some(vt=>f(vt)===Xe&&v(vt))),Bd=we=>{const Xe=Ht(we);if(!!e.multiple&&Xe!==fe.delete&&g.inputValue.length===0){we.preventDefault();const vt=e.modelValue.slice(),kt=Dd(vt);if(kt<0)return;const Ln=vt[kt];vt.splice(kt,1);const Bo=g.cachedOptions[kt];g.cachedOptions.splice(kt,1),Me(Bo),Nt(vt),t("remove-tag",Ln)}},Fd=()=>{let we;Ee(e.modelValue)?we=[]:we=p.value,g.selectedLabel="",G.value=!1,Nt(we),t("clear"),jt(),ja()},Xl=(we,Xe=void 0)=>{const vt=V.value;if(!["forward","backward"].includes(we)||I.value||vt.length<=0||Ae.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 Ln=vt[kt];if(v(Ln)||Ln.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(Ln=>Fe(f(Ln))===vt);if(kt)return kt}return{[c.value.value]:we,[c.value.label]:we}},Ya=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()};ue(()=>e.fitInputWidth,()=>{pt()}),ue(G,we=>{we?(e.persistent||pt(),Oe("")):(g.inputValue="",g.previousQuery=null,g.isBeforeHide=!0,ce(""))}),ue(()=>e.modelValue,(we,Xe)=>{var vt;(!we||Ee(we)&&we.length===0||e.multiple&&!sn(we.toString(),g.previousValue)||!e.multiple&&Fe(we)!==Fe(g.previousValue))&&_r(!0),!sn(we,Xe)&&e.validateEvent&&((vt=i==null?void 0:i.validate)==null||vt.call(i,"change").catch(Ln=>void 0))},{deep:!0}),ue(()=>e.options,()=>{const we=_.value;(!we||we&&document.activeElement!==we)&&_r()},{deep:!0,flush:"post"}),ue(()=>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 Ln=f(kt);let Bo=Ln;if(Rt(Bo)&&(Bo=gn(Ln,we)),vt.get(Bo))break;vt.set(Bo,!0)}}),ut(()=>{_r()}),Qt(w,dt),Qt(y,Hn),Qt(T,ta),Qt(P,lu),Qt(M,so);let su;return ue(()=>mt.value,we=>{we?su=Qt(O,ta).stop:(su==null||su(),su=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:ve,iconReverse:oe,tagStyle:Ve,collapseTagStyle:We,popperSize:b,dropdownMenuVisible:mt,hasModelValue:se,shouldShowPlaceholder:Ut,selectDisabled:I,selectSize:Ge,needStatusIcon:X,showClearBtn:ae,states:g,isFocused:D,nsSelect:a,nsInput:l,inputRef:_,menuRef:O,tagMenuRef:P,tooltipRef:S,tagTooltipRef:E,selectRef:w,wrapperRef:T,selectionRef:y,prefixRef:R,suffixRef:N,collapseItemRef:M,popperRef:ft,validateState:j,validateIcon:ie,showTagList:pe,collapseTagList:Te,debouncedOnInputChange:me,deleteTag:ru,getLabel:d,getValue:f,getDisabled:v,getValueKey:Fe,getIndex:Ya,handleClear:Fd,handleClickOutside:hn,handleDel:Bd,handleEsc:Ld,focus:ja,blur:Ad,handleMenuEnter:eo,handleResize:dt,resetSelectionWidth:Hn,updateTooltip:ta,updateTagTooltip:lu,updateOptions:Et,toggleMenu:an,scrollTo:jn,onInput:tn,onKeyboardNavigate:Xl,onKeyboardSelect:be,onSelect:ql,onHover:qe,handleCompositionStart:H,handleCompositionEnd:K,handleCompositionUpdate:Y}};var GZ=UZ;const qZ=re({name:"ElSelectV2",components:{ElSelectMenu:jZ,ElTag:Wa,ElTooltip:zn,ElIcon:$e},directives:{ClickOutside:ml},props:LZ,emits:BZ,setup(e,{emit:t}){const n=k(()=>{const{modelValue:u,multiple:c}=e,d=c?[]:void 0;return Ee(u)?c?u:d:c?d:u}),o=GZ(Lt({...Mn(e),modelValue:n}),t),{calculatorRef:a,inputStyle:l}=ac(),r=Fn();St(md,{props:Lt({...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:jd}}}),XZ=["id","autocomplete","tabindex","aria-expanded","aria-label","disabled","aria-controls","aria-activedescendant","readonly","name"],ZZ=["textContent"],JZ={key:1};function QZ(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=Hd("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,v;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,bt(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)},()=>[Ct(ge(e.getLabel(m)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?($(),ne(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,bt(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)},()=>[Ct(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,XZ),[[fu,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,ZZ)):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:(v=(f=e.allOptionsValueMap.get(e.modelValue))==null?void 0:f.index)!=null?v:-1,label:e.currentPlaceholder,value:e.modelValue},()=>[W("span",null,ge(e.currentPlaceholder),1)]):($(),F("span",JZ,ge(e.currentPlaceholder),1))],2)):te("v-if",!0)],2),W("div",{ref:"suffixRef",class:x(e.nsSelect.e("suffix"))},[e.iconComponent?tt(($(),ne(u,{key:0,class:x([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:Q(()=>[($(),ne(at(e.iconComponent)))]),_:1},8,["class"])),[[xt,!e.showClearBtn]]):te("v-if",!0),e.showClearBtn&&e.clearIcon?($(),ne(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(()=>[($(),ne(at(e.clearIcon)))]),_:1},8,["class","onClick"])):te("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?($(),ne(u,{key:2,class:x([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:Q(()=>[($(),ne(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},mo({default:Q(f=>[ee(e.$slots,"default",Xa(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 eJ=ye(qZ,[["render",QZ],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);const B$=Qe(eJ),F$=he({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:q([Number,Object])}}),V$=he({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),tJ=re({name:"ElSkeletonItem",__name:"skeleton-item",props:V$,setup(e){const t=de("skeleton");return(n,o)=>($(),F("div",{class:x([s(t).e("item"),s(t).e(n.variant)])},[n.variant==="image"?($(),ne(s($V),{key:0})):te("v-if",!0)],2))}});var gd=ye(tJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const nJ=re({name:"ElSkeleton",__name:"skeleton",props:F$,setup(e,{expose:t}){const n=e,o=de("skeleton"),a=gw(Ft(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,bt(l.count,i=>($(),F(Be,{key:i},[s(a)?ee(l.$slots,"template",{key:i},()=>[Z(gd,{class:x(s(o).is("first")),variant:"p"},null,8,["class"]),($(!0),F(Be,null,bt(l.rows,u=>($(),ne(gd,{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",Xa(rt({key:1},l.$attrs)))}});var oJ=ye(nJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const z$=Qe(oJ,{SkeletonItem:gd}),H$=cn(gd),Em=Symbol("sliderContextKey"),W$=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:cl,default:"top"},marks:{type:q(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...Gn(["ariaLabel"])}),$m=e=>Re(e)||Ee(e)&&e.every(Re),K$={[Ye]:$m,[Sn]:$m,[ht]:$m},aJ=(e,t,n)=>{const o=A();return ut(async()=>{e.range?(Ee(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]):(!Re(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}},lJ=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]})):[]),rJ=(e,t,n)=>{const{formItem:o}=An(),a=Zt(),l=A(),r=A(),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)}%`),v=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:v.value}:{width:f.value,left:v.value}),h=()=>{if(a.value){const P=a.value.getBoundingClientRect();t.sliderSize=P[e.vertical?"height":"width"]}},g=P=>{const M=e.min+P*(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=P=>{const M=g(P);return M.value.setPosition(P),M},C=P=>{t.firstValue=P!=null?P:e.min,y(e.range?[c.value,d.value]:P!=null?P:e.min)},w=P=>{t.secondValue=P,e.range&&y([c.value,d.value])},y=P=>{n(Ye,P),n(Sn,P)},S=async()=>{await ke(),n(ht,e.range?[c.value,d.value]:e.modelValue)},E=P=>{var M,L,H,K,Y,I;if(u.value||t.dragging)return;h();let T=0;if(e.vertical){const D=(H=(L=(M=P.touches)==null?void 0:M.item(0))==null?void 0:L.clientY)!=null?H:P.clientY;T=(a.value.getBoundingClientRect().bottom-D)/t.sliderSize*100}else{const D=(I=(Y=(K=P.touches)==null?void 0:K.item(0))==null?void 0:Y.clientX)!=null?I:P.clientX,B=a.value.getBoundingClientRect().left;T=(D-B)/t.sliderSize*100}if(!(T<0||T>100))return b(T)};return{elFormItem:o,slider:a,firstButton:l,secondButton:r,sliderDisabled:u,minValue:c,maxValue:d,runwayStyle:m,barStyle:p,resetSize:h,setPosition:b,emitChange:S,onSliderWrapperPrevent:P=>{var M,L;(((M=i.firstButton.value)==null?void 0:M.dragging)||((L=i.secondButton.value)==null?void 0:L.dragging))&&P.preventDefault()},onSliderClick:P=>{E(P)&&S()},onSliderDown:async P=>{const M=E(P);M&&(await ke(),M.value.onButtonDown(P))},onSliderMarkerDown:P=>{if(u.value||t.dragging)return;b(P)&&S()},setFirstValue:C,setSecondValue:w}},sJ=(e,t,n)=>{const o=A(),a=A(!1),l=k(()=>t.value instanceof Function),r=k(()=>l.value&&t.value(e.modelValue)||e.modelValue),i=ia(()=>{n.value&&(a.value=!0)},50),u=ia(()=>{n.value&&(a.value=!1)},50);return{tooltip:o,tooltipVisible:a,formatValue:r,displayTooltip:i,hideTooltip:u}},iJ=(e,t,n)=>{const{disabled:o,min:a,max:l,step:r,showTooltip:i,persistent:u,precision:c,sliderSize:d,formatTooltip:f,emitChange:v,resetSize:m,updateDragging:p}=_e(Em),{tooltip:h,tooltipVisible:g,formatValue:b,displayTooltip:C,hideTooltip:w}=sJ(e,f,i),y=A(),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()},R=()=>{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),v())},P=()=>{O(-r.value)},M=()=>{O(r.value)},L=()=>{O(-r.value*4)},H=()=>{O(r.value*4)},K=()=>{o.value||(U(0),v())},Y=()=>{o.value||(U(100),v())},I=V=>{const G=Ht(V);let X=!0;switch(G){case fe.left:case fe.down:P();break;case fe.right:case fe.up:M();break;case fe.home:K();break;case fe.end:Y();break;case fe.pageDown:L();break;case fe.pageUp:H();break;default:X=!1;break}X&&V.preventDefault()},T=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}=T(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}=T(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),v()},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=Xs(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 ae=X/G,ve=Math.round(V/ae);se=a.value+ve*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(),h.value.updatePopper()};return ue(()=>t.dragging,V=>{p(V)}),Mt(y,"touchstart",N,{passive:!1}),{disabled:o,button:y,tooltip:h,tooltipVisible:g,showTooltip:i,persistent:u,wrapperStyle:E,formatValue:b,handleMouseEnter:_,handleMouseLeave:R,onButtonDown:N,onKeyDown:I,setPosition:U}},uJ=(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}%`}}),cJ=(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&&Ee(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(v=>void 0)),t.oldValue=f.slice())):!e.range&&Re(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(v=>void 0)),t.oldValue=f)))};u(),ue(()=>t.dragging,c=>{c||u()}),ue(()=>e.modelValue,(c,d)=>{t.dragging||Ee(c)&&Ee(d)&&c.every((f,v)=>f===d[v])&&t.firstValue===c[0]&&t.secondValue===c[1]||u()},{deep:!0}),ue(()=>[e.min,e.max],()=>{u()})},dJ=he({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:cl,default:"top"}}),fJ={[Ye]:e=>Re(e)},pJ=["tabindex"],vJ=re({name:"ElSliderButton",__name:"button",props:dJ,emits:fJ,setup(e,{expose:t,emit:n}){const o=e,a=n,l=de("slider"),r=Lt({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?v.value:!1),{disabled:u,button:c,tooltip:d,showTooltip:f,persistent:v,tooltipVisible:m,wrapperStyle:p,formatValue:h,handleMouseEnter:g,handleMouseLeave:b,onButtonDown:C,onKeyDown:w,setPosition:y}=iJ(o,r,a),{hovering:S,dragging:E}=Mn(r);return t({onButtonDown:C,onKeyDown:w,setPosition:y,hovering:S,dragging:E}),(_,R)=>($(),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:R[0]||(R[0]=(...N)=>s(g)&&s(g)(...N)),onMouseleave:R[1]||(R[1]=(...N)=>s(b)&&s(b)(...N)),onMousedown:R[2]||(R[2]=(...N)=>s(C)&&s(C)(...N)),onFocus:R[3]||(R[3]=(...N)=>s(g)&&s(g)(...N)),onBlur:R[4]||(R[4]=(...N)=>s(b)&&s(b)(...N)),onKeydown:R[5]||(R[5]=(...N)=>s(w)&&s(w)(...N))},[Z(s(zn),{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(h)),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,pJ))}});var j$=ye(vJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const hJ=he({mark:{type:q([String,Object]),default:void 0}});var mJ=re({name:"ElSliderMarker",props:hJ,setup(e){const t=de("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 gJ=["id","role","aria-label","aria-labelledby"],bJ={key:1},yJ=re({name:"ElSlider",__name:"slider",props:W$,emits:K$,setup(e,{expose:t,emit:n}){const o=e,a=n,l=de("slider"),{t:r}=yt(),i=Lt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:u,slider:c,firstButton:d,secondButton:f,sliderDisabled:v,minValue:m,maxValue:p,runwayStyle:h,barStyle:g,resetSize:b,emitChange:C,onSliderWrapperPrevent:w,onSliderClick:y,onSliderDown:S,onSliderMarkerDown:E,setFirstValue:_,setSecondValue:R}=rJ(o,i,a),{stops:N,getStopStyle:O}=uJ(o,i,m,p),{inputId:P,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}`),T=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=lJ(o);cJ(o,i,m,p,a,u);const U=k(()=>{const ae=[o.min,o.max,o.step].map(ve=>{const oe=`${ve}`.split(".")[1];return oe?oe.length:0});return Math.max.apply(null,ae)}),{sliderWrapper:V}=aJ(o,i,b),{firstValue:G,secondValue:X,sliderSize:le}=Mn(i),se=ae=>{i.dragging=ae};return Mt(V,"touchstart",w,{passive:!1}),Mt(V,"touchmove",w,{passive:!1}),St(Em,{...Mn(o),sliderSize:le,disabled:v,precision:U,emitChange:C,resetSize:b,updateDragging:se}),t({onSliderClick:y}),(ae,ve)=>{var oe,j;return $(),F("div",{id:ae.range?s(P):void 0,ref_key:"sliderWrapper",ref:V,class:x(B.value),role:ae.range?"group":void 0,"aria-label":ae.range&&!s(M)?K.value:void 0,"aria-labelledby":ae.range&&s(M)?(oe=s(u))==null?void 0:oe.labelId:void 0},[W("div",{ref_key:"slider",ref:c,class:x([s(l).e("runway"),{"show-input":ae.showInput&&!ae.range},s(l).is("disabled",s(v))]),style:Ie(s(h)),onMousedown:ve[0]||(ve[0]=(...ie)=>s(S)&&s(S)(...ie)),onTouchstartPassive:ve[1]||(ve[1]=(...ie)=>s(S)&&s(S)(...ie))},[W("div",{class:x(s(l).e("bar")),style:Ie(s(g))},null,6),Z(j$,{id:ae.range?void 0:s(P),ref_key:"firstButton",ref:d,"model-value":s(G),vertical:ae.vertical,"tooltip-class":ae.tooltipClass,placement:ae.placement,role:"slider","aria-label":ae.range||!s(M)?Y.value:void 0,"aria-labelledby":!ae.range&&s(M)?(j=s(u))==null?void 0:j.labelId:void 0,"aria-valuemin":ae.min,"aria-valuemax":ae.range?s(X):ae.max,"aria-valuenow":s(G),"aria-valuetext":I.value,"aria-orientation":ae.vertical?"vertical":"horizontal","aria-disabled":s(v),"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"]),ae.range?($(),ne(j$,{key:0,ref_key:"secondButton",ref:f,"model-value":s(X),vertical:ae.vertical,"tooltip-class":ae.tooltipClass,placement:ae.placement,role:"slider","aria-label":T.value,"aria-valuemin":s(G),"aria-valuemax":ae.max,"aria-valuenow":s(X),"aria-valuetext":D.value,"aria-orientation":ae.vertical?"vertical":"horizontal","aria-disabled":s(v),"onUpdate:modelValue":s(R)},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),ae.showStops?($(),F("div",bJ,[($(!0),F(Be,null,bt(s(N),(ie,Se)=>($(),F("div",{key:Se,class:x(s(l).e("stop")),style:Ie(s(O)(ie))},null,6))),128))])):te("v-if",!0),s(z).length>0?($(),F(Be,{key:2},[W("div",null,[($(!0),F(Be,null,bt(s(z),(ie,Se)=>($(),F("div",{key:Se,style:Ie(s(O)(ie.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,bt(s(z),(ie,Se)=>($(),ne(s(mJ),{key:Se,mark:ie.mark,style:Ie(s(O)(ie.position)),onMousedown:je(xe=>s(E)(ie.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):te("v-if",!0)],38),ae.showInput&&!ae.range?($(),ne(s(em),{key:0,ref:"input","model-value":s(G),class:x(s(l).e("input")),step:ae.step,disabled:s(v),controls:ae.showInputControls,min:ae.min,max:ae.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,gJ)}}});var wJ=ye(yJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const Y$=Qe(wJ),U$=he({prefixCls:{type:String}}),G$=re({name:"ElSpaceItem",props:U$,setup(e,{slots:t}){const n=de("space"),o=k(()=>`${e.prefixCls||n.b()}__item`);return()=>Le("div",{class:o.value},ee(t,"default"))}}),q$={small:8,default:12,large:16};function X$(e){const t=de("space"),n=k(()=>[t.b(),t.m(e.direction),e.class]),o=A(0),a=A(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(Ee(i)){const[f=0,v=0]=i;o.value=f,a.value=v}else{let f;Re(i)?f=i:f=q$[i||"small"]||q$.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 Z$=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)||Re(e)||He(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:na,validator:e=>Re(e)||Ee(e)&&e.length===2&&e.every(Re)}}),CJ=re({name:"ElSpace",props:Z$,setup(e,{slots:t}){const{classes:n,containerStyle:o,itemStyle:a}=X$(e);function l(r,i="",u=[]){const{prefixCls:c}=e;return r.forEach((d,f)=>{Op(d)?Ee(d.children)&&d.children.forEach((v,m)=>{Op(v)&&Ee(v.children)?l(v.children,`${i+m}-`,u):Jt(v)&&(v==null?void 0:v.type)===Ua?u.push(v):u.push(Z(G$,{style:a.value,prefixCls:c,key:`nested-${i+m}`},{default:()=>[v]},Uo.PROPS|Uo.STYLE,["style","prefixCls"]))}):ez(d)&&u.push(Z(G$,{style:a.value,prefixCls:c,key:`LoopKey${i+f}`},{default:()=>[d]},Uo.PROPS|Uo.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(Ee(c.children)){let d=l(c.children);if(i){const f=d.length-1;d=d.reduce((v,m,p)=>{const h=[...v,m];return p!==f&&h.push(Z("span",{style:[a.value,u==="vertical"?"width: 100%":null],key:p},[Jt(i)?i:Ct(i,Uo.TEXT)],Uo.STYLE)),h},[])}return Z("div",{class:n.value,style:o.value},d,Uo.STYLE|Uo.CLASS)}return c.children}}}),J$=Qe(CJ),Q$=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])}}),SJ=re({name:"ElStatistic",__name:"statistic",props:Q$,setup(e,{expose:t}){const n=e,o=de("statistic"),a=k(()=>{const{value:l,formatter:r,precision:i,decimalSeparator:u,groupSeparator:c}=n;if(lt(r))return r(l);if(!Re(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",{},()=>[Ct(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 kJ=ye(SJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const _m=Qe(kJ),e_=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])}}),t_={finish:()=>!0,[ht]:e=>Re(e)},EJ=[["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]],n_=e=>Re(e)?new Date(e).getTime():e.valueOf(),o_=(e,t)=>{let n=e;const o=/\[([^\]]*)]/g;return EJ.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")},$J=re({name:"ElCountdown",__name:"countdown",props:e_,emits:t_,setup(e,{expose:t,emit:n}){const o=e,a=n;let l;const r=A(0),i=k(()=>o_(r.value,o.format)),u=f=>o_(f,o.format),c=()=>{l&&(rl(l),l=void 0)},d=()=>{const f=n_(o.value),v=()=>{let m=f-Date.now();a(ht,m),m<=0?(m=0,c(),a("finish")):l=Ma(v),r.value=m};l=Ma(v)};return ut(()=>{r.value=n_(o.value)-Date.now(),ue(()=>[o.value,o.format],()=>{c(),d()},{immediate:!0})}),Dt(()=>{c()}),t({displayValue:i}),(f,v)=>($(),ne(s(_m),{value:r.value,title:f.title,prefix:f.prefix,suffix:f.suffix,"value-style":f.valueStyle,formatter:u},mo({_:2},[bt(f.$slots,(m,p)=>({name:p,fn:Q(()=>[ee(f.$slots,p)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var _J=ye($J,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const a_=Qe(_J),l_=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"}}),r_={[ht]:(e,t)=>[e,t].every(Re)},Tm="ElSteps",TJ=re({name:"ElSteps",__name:"steps",props:l_,emits:r_,setup(e,{emit:t}){const n=e,o=t,a=de("steps"),{children:l,addChild:r,removeChild:i,ChildrenSorter:u}=Ci(ct(),"ElStep");return ue(l,()=>{l.value.forEach((c,d)=>{c.setIndex(d)})}),St(Tm,{props:n,steps:l,addStep:r,removeStep:i}),ue(()=>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 OJ=ye(TJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const s_=he({title:{type:String,default:""},icon:{type:zt},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),RJ=re({name:"ElStep",__name:"item",props:s_,setup(e){const t=e,n=de("step"),o=A(-1),a=A({}),l=A(""),r=_e(Tm),i=ct();let u=0,c=0;ut(()=>{ue([()=>r.props.active,()=>r.props.processStatus,()=>r.props.finishStatus],([R],[N])=>{c=N||0,u=R-c,E(R)},{immediate:!0})});const d=k(()=>t.status||l.value),f=k(()=>{const R=r.steps.value[o.value-1];return R?R.internalStatus.value:"wait"}),v=k(()=>r.props.alignCenter),m=k(()=>r.props.direction==="vertical"),p=k(()=>r.props.simple),h=k(()=>r.steps.value.length),g=k(()=>{var R;return((R=r.steps.value[h.value-1])==null?void 0:R.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&&!v.value),n.is("center",v.value&&!m.value&&!p.value)]),w=k(()=>{const R={flexBasis:Re(b.value)?`${b.value}px`:b.value?b.value:`${100/(h.value-(v.value?0:1))}%`};return m.value||g.value&&(R.maxWidth=`${100/h.value}%`),R}),y=R=>{o.value=R},S=R=>{const N=R==="wait",P={transitionDelay:`${Math.abs(u)===1?0:u>0?(o.value+1-c)*150:-(o.value+1-r.props.active)*150}ms`},M=R===r.props.processStatus||N?0:100;P.borderWidth=M&&!p.value?"1px":0,P[r.props.direction==="vertical"?"height":"width"]=`${M}%`,a.value=P},E=R=>{R>o.value?l.value=r.props.finishStatus:R===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(_),Dt(()=>{r.removeStep(_)}),(R,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(R.icon||R.$slots.icon?"icon":"text")])},[ee(R.$slots,"icon",{},()=>[R.icon?($(),ne(s($e),{key:0,class:x(s(n).e("icon-inner"))},{default:Q(()=>[($(),ne(at(R.icon)))]),_:1},8,["class"])):d.value==="success"?($(),ne(s($e),{key:1,class:x([s(n).e("icon-inner"),s(n).is("status")])},{default:Q(()=>[Z(s(si))]),_:1},8,["class"])):d.value==="error"?($(),ne(s($e),{key:2,class:x([s(n).e("icon-inner"),s(n).is("status")])},{default:Q(()=>[Z(s(Yo))]),_: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(R.$slots,"title",{},()=>[Ct(ge(R.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(R.$slots,"description",{},()=>[Ct(ge(R.description),1)])],2))],2)],6))}});var i_=ye(RJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const u_=Qe(OJ,{Step:i_}),c_=cn(i_),d_=he({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:j1},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:zt},activeActionIcon:{type:zt},activeIcon:{type:zt},inactiveIcon:{type:zt},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"])}),f_={[Ye]:e=>Vt(e)||He(e)||Re(e),[ht]:e=>Vt(e)||He(e)||Re(e),[Sn]:e=>Vt(e)||He(e)||Re(e)},xJ=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],IJ=["aria-hidden"],MJ={key:1},NJ={key:1},PJ=["aria-hidden"],p_="ElSwitch",AJ=re({name:p_,__name:"switch",props:d_,emits:f_,setup(e,{expose:t,emit:n}){const o=e,a=n,{formItem:l}=An(),r=wn(),i=de("switch"),{inputId:u}=Eo(o,{formItemContext:l}),c=on(k(()=>{if(o.loading)return!0})),d=A(o.modelValue!==!1),f=Zt(),v=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)]),h=k(()=>({width:un(o.width)}));ue(()=>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)),ue(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),Vt(E)].includes(!0)||_n(p_,"beforeChange must return type `Promise<boolean>` or `boolean`"),Bs(E)?E.then(R=>{R&&C()}).catch(R=>{}):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(v.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,xJ),!S.inlinePrompt&&(S.inactiveIcon||S.inactiveText||S.$slots.inactive)?($(),F("span",{key:0,class:x(m.value)},[ee(S.$slots,"inactive",{},()=>[S.inactiveIcon?($(),ne(s($e),{key:0},{default:Q(()=>[($(),ne(at(S.inactiveIcon)))]),_:1})):te("v-if",!0),!S.inactiveIcon&&S.inactiveText?($(),F("span",{key:1,"aria-hidden":b.value},ge(S.inactiveText),9,IJ)):te("v-if",!0)])],2)):te("v-if",!0),W("span",{class:x(s(i).e("core")),style:Ie(h.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?($(),ne(s($e),{key:0},{default:Q(()=>[($(),ne(at(S.activeIcon)))]),_:1})):te("v-if",!0),!S.activeIcon&&S.activeText?($(),F("span",NJ,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?($(),ne(s($e),{key:0},{default:Q(()=>[($(),ne(at(S.inactiveIcon)))]),_:1})):te("v-if",!0),!S.inactiveIcon&&S.inactiveText?($(),F("span",MJ,ge(S.inactiveText),1)):te("v-if",!0)])],2))],2)):te("v-if",!0),W("div",{class:x(s(i).e("action"))},[S.loading?($(),ne(s($e),{key:0,class:x(s(i).is("loading"))},{default:Q(()=>[Z(s(Aa))]),_:1},8,["class"])):b.value?ee(S.$slots,"active-action",{key:1},()=>[S.activeActionIcon?($(),ne(s($e),{key:0},{default:Q(()=>[($(),ne(at(S.activeActionIcon)))]),_:1})):te("v-if",!0)]):b.value?te("v-if",!0):ee(S.$slots,"inactive-action",{key:2},()=>[S.inactiveActionIcon?($(),ne(s($e),{key:0},{default:Q(()=>[($(),ne(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?($(),ne(s($e),{key:0},{default:Q(()=>[($(),ne(at(S.activeIcon)))]),_:1})):te("v-if",!0),!S.activeIcon&&S.activeText?($(),F("span",{key:1,"aria-hidden":!b.value},ge(S.activeText),9,PJ)):te("v-if",!0)])],2)):te("v-if",!0)],2))}});var LJ=ye(AJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const v_=Qe(LJ),Om=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},DJ=function(e,t,n,o,a){if(!t&&!o&&(!a||Ee(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?Gf(Pn(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,v,m,p;if(o)return o(i.value,u.value);for(let h=0,g=(d=(c=i.key)==null?void 0:c.length)!=null?d:0;h<g;h++){if(((f=i.key)==null?void 0:f[h])<((v=u.key)==null?void 0:v[h]))return-1;if(((m=i.key)==null?void 0:m[h])>((p=u.key)==null?void 0:p[h]))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)},h_=function(e,t){let n=null;return e.columns.forEach(o=>{o.id===t&&(n=o)}),n},BJ=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},m_=function(e,t,n){const o=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return o?h_(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];Ee(u)&&Object.assign(l,Ss(u,t,!0,o))}}),l};function FJ(e,t){const n={};let o;for(o in e)n[o]=e[o];for(o in t)if(Dn(t,o)){const a=t[o];_t(a)||(n[o]=a)}return n}function Rm(e){return e===""||_t(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function g_(e){return e===""||_t(e)||(e=Rm(e),Number.isNaN(e)&&(e=80)),e}function VJ(e){return Re(e)?e:He(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function zJ(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function bd(e,t,n,o,a,l,r){let i=l!=null?l:0,u=!1;const d=(()=>{if(!r)return e.indexOf(t);const h=Jn(t,r);return e.findIndex(g=>Jn(g,r)===h)})(),f=d!==-1,v=a==null?void 0:a.call(null,t,i),m=h=>{h==="add"?e.push(t):e.splice(d,1),u=!0},p=h=>{let g=0;const b=(o==null?void 0:o.children)&&h[o.children];return b&&Ee(b)&&(g+=b.length,b.forEach(C=>{g+=p(C)})),g};return(!a||v)&&(Vt(n)?n&&!f?m("add"):!n&&f&&m("remove"):m(f?"remove":"add")),!(o!=null&&o.checkStrictly)&&(o==null?void 0:o.children)&&Ee(t[o.children])&&t[o.children].forEach(h=>{const g=bd(e,h,n!=null?n:!f,o,a,i+1,r);i+=p(h)+1,g&&(u=g)}),u}function HJ(e,t,n="children",o="hasChildren",a=!1){const l=i=>!(Ee(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 WJ=(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:ri(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 KJ(e,t,n,o,a,l){var r;const i=WJ(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;np(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(zn,{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 v=document.createElement("div");Sl(f,v),f.component.exposed.onOpen();const m=c==null?void 0:c.querySelector(`.${d}-scrollbar__wrap`);ro=()=>{var p,h;(h=(p=f.component)==null?void 0:p.exposed)!=null&&h.onClose&&f.component.exposed.onClose(),Sl(null,v);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 b_(e){return e.children?Gf(e.children,b_):[e]}function y_(e,t){return e+t.colSpan}const w_=(e,t,n,o)=>{let a=0,l=e;const r=n.states.columns.value;if(o){const u=b_(o[e]);a=r.slice(0,r.indexOf(u[0])).reduce(y_,0),l=a+u.reduce(y_,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}:{}},xm=(e,t,n,o,a,l=0)=>{const r=[],{direction:i,start:u,after:c}=w_(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 C_(e,t){return e+(zr(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Im=(e,t,n,o)=>{const{direction:a,start:l=0,after:r=0}=w_(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(C_,0):i.right=c.slice(r+1).reverse().reduce(C_,0),i},ks=(e,t)=>{!e||Number.isNaN(e[t])||(e[t]=`${e[t]}px`)};function S_(e){return e.some(t=>Jt(t)?!(t.type===Ua||t.type===Be&&!S_(t.children)):!0)?e:null}function jJ(e){const t=ct(),n=A(!1),o=A([]);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,v)=>{const m=Jn(v,c);return d[m]&&f.push(v),f},[])}else o.value=[]},toggleRowExpansion:(u,c)=>{bd(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((v,m)=>{const p=f[m];return p&&v.push(p.row),v},[])},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 YJ(e){const t=ct(),n=A(null),o=A(null),a=c=>{t.store.assertRowKey(),n.value=c,r(c)},l=()=>{n.value=null},r=c=>{var d;const{data:f,rowKey:v}=e;let m=null;v.value&&(m=(d=(s(f)||[]).find(p=>Jn(p,v.value)===c))!=null?d:null),o.value=m!=null?m:null,t.emit("current-change",o.value,null)};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 v=Jn(f,c);r(v)}else o.value=null;zr(o.value)&&t.emit("current-change",null,f)}else n.value&&(r(n.value),l())},states:{_currentRowKey:n,currentRow:o}}}function UJ(e){const t=A([]),n=A({}),o=A(16),a=A(!1),l=A({}),r=A("hasChildren"),i=A("children"),u=A(!1),c=ct(),d=k(()=>{if(!e.rowKey.value)return{};const y=e.data.value||[];return v(y)}),f=k(()=>{const y=e.rowKey.value,S=Object.keys(l.value),E={};return S.length&&S.forEach(_=>{if(l.value[_].length){const R={children:[]};l.value[_].forEach(N=>{const O=Jn(N,y);R.children.push(O),N[r.value]&&!E[O]&&(E[O]={children:[]})}),E[_]=R}}),E}),v=y=>{const S=e.rowKey.value,E={};return HJ(y,(_,R,N)=>{const O=Jn(_,S);Ee(R)?E[O]={children:R.map(P=>Jn(P,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 R=d.value,N=f.value,O=Object.keys(R),P={};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 T=S||t.value&&t.value.includes(I);return!!((Y==null?void 0:Y.expanded)||T)}};O.forEach(Y=>{const I=M[Y],T={...R[Y]};if(T.expanded=H(I,Y),T.lazy){const{loaded:D=!1,loading:B=!1}=I||{};T.loaded=!!D,T.loading=!!B,L.push(Y)}P[Y]=T});const K=Object.keys(N);a.value&&K.length&&L.length&&K.forEach(Y=>{var I;const T=M[Y],D=N[Y].children;if(L.includes(Y)){if(((I=P[Y].children)==null?void 0:I.length)!==0)throw new Error("[ElTable]children must be an empty array.");P[Y].children=D}else{const{loaded:B=!1,loading:z=!1}=T||{};P[Y]={lazy:!0,loaded:!!B,loading:!!z,expanded:H(T,Y),children:D,level:void 0}}})}n.value=P,(_=c.store)==null||_.updateTableScrollY()};ue(()=>t.value,()=>{m(!0)}),ue(()=>d.value,()=>{m()}),ue(()=>f.value,()=>{m()});const p=y=>{t.value=y,m()},h=y=>a.value&&y&&"loaded"in y&&!y.loaded,g=(y,S)=>{c.store.assertRowKey();const E=e.rowKey.value,_=Jn(y,E),R=_&&n.value[_];if(_&&R&&"expanded"in R){const N=R.expanded;S=_t(S)?!R.expanded:S,n.value[_].expanded=S,N!==S&&c.emit("expand-change",y,S),S&&h(R)&&C(y,_,R),c.store.updateTableScrollY()}},b=y=>{c.store.assertRowKey();const S=e.rowKey.value,E=Jn(y,S),_=n.value[E];h(_)?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,R=>{if(!Ee(R))throw new TypeError("[ElTable] data must be an array");n.value[S].loading=!1,n.value[S].loaded=!0,n.value[S].expanded=!0,R.length&&(l.value[S]=R),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:v,states:{expandRowKeys:t,treeData:n,indent:o,lazy:a,lazyTreeNodeMap:l,lazyColumnIdentifier:r,childrenColumnName:i,checkStrictly:u}}}const GJ=(e,t)=>{const n=t.sortingColumn;return!n||He(n.sortable)?e:DJ(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},yd=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,yd(n.children)):t.push(n)}),t};function qJ(){var e;const t=ct(),{size:n}=Mn((e=t.proxy)==null?void 0:e.$props),o=A(null),a=A([]),l=A([]),r=A(!1),i=A([]),u=A([]),c=A([]),d=A([]),f=A([]),v=A([]),m=A([]),p=A([]),h=[],g=A(0),b=A(0),C=A(0),w=A(!1),y=A([]),S=A(!1),E=A(!1),_=A(null),R=A({}),N=A(null),O=A(null),P=A(null),M=A(null),L=A(null),H=k(()=>o.value?Ss(y.value,o.value):void 0);ue(a,()=>{var Ke;t.state&&(T(!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(ce=>{Y(ce)}),d.value=i.value.filter(ce=>[!0,"left"].includes(ce.fixed));const Ke=i.value.find(ce=>ce.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(ce=>ce.fixed==="right");const it=i.value.filter(ce=>(ft?ce.type!=="selection":!0)&&!ce.fixed);u.value=Array.from(d.value).concat(it).concat(f.value);const mt=yd(it),pe=yd(d.value),Te=yd(f.value);g.value=mt.length,b.value=pe.length,C.value=Te.length,c.value=Array.from(pe).concat(mt).concat(Te),r.value=d.value.length>0||f.value.length>0},T=(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,pe=Ss(a.value,o.value,!0,mt);for(const Te in H.value)Dn(H.value,Te)&&!pe[Te]&&it.push(H.value[Te].row)}else it=y.value.filter(mt=>!a.value.includes(mt));if(it.length){const mt=y.value.filter(pe=>!it.includes(pe));y.value=mt,t.emit("selection-change",mt.slice())}},U=()=>(y.value||[]).slice(),V=(Ke,ft,it=!0,mt=!1)=>{var pe,Te,ce,Me;const st={children:(Te=(pe=t==null?void 0:t.store)==null?void 0:pe.states)==null?void 0:Te.childrenColumnName.value,checkStrictly:(Me=(ce=t==null?void 0:t.store)==null?void 0:ce.states)==null?void 0:Me.checkStrictly.value};if(bd(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,pe=0;const Te=(ft=(Ke=t==null?void 0:t.store)==null?void 0:Ke.states)==null?void 0:ft.rowKey.value,{childrenColumnName:ce}=t.store.states,Me={children:ce.value,checkStrictly:!1};a.value.forEach((st,jt)=>{const an=jt+pe;bd(y.value,st,it,Me,_.value,an,Te)&&(mt=!0),pe+=le(Jn(st,Te))}),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 pe=ce=>{var Me;for(const st of ce){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)&&!pe(st[ft.value]))return!1}return!0},Te=pe(a.value||[]);w.value=mt===0?!1:Te},le=Ke=>{var ft;if(!t||!t.store)return 0;const{treeData:it}=t.store.states;let mt=0;const pe=(ft=it.value[Ke])==null?void 0:ft.children;return pe&&(mt+=pe.length,pe.forEach(Te=>{mt+=le(Te)})),mt},se=(Ke,ft)=>{const it={};return Pn(Ke).forEach(mt=>{R.value[mt.id]=ft,it[mt.columnKey||mt.id]=ft}),it},ae=(Ke,ft,it)=>{O.value&&O.value!==Ke&&(O.value.order=null),O.value=Ke,P.value=ft,M.value=it},ve=()=>{let Ke=s(l);Object.keys(R.value).forEach(ft=>{const it=R.value[ft];if(!it||it.length===0)return;const mt=h_({columns:c.value},ft);mt&&mt.filterMethod&&(Ke=Ke.filter(pe=>it.some(Te=>mt.filterMethod.call(null,Te,pe,mt))))}),N.value=Ke},oe=()=>{var Ke;a.value=GJ((Ke=N.value)!=null?Ke:[],{sortingColumn:O.value,sortProp:P.value,sortOrder:M.value})},j=(Ke=void 0)=>{Ke!=null&&Ke.filter||ve(),oe()},ie=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]),Ee(Ke)){const pe=Ke.map(Te=>BJ({columns:c.value},Te));mt.forEach(Te=>{const ce=pe.find(Me=>Me.id===Te);ce&&(ce.filteredValue=[])}),t.store.commit("filterChange",{column:pe,values:[],silent:!0,multi:!0})}else mt.forEach(pe=>{const Te=c.value.find(ce=>ce.id===pe);Te&&(Te.filteredValue=[])}),R.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},Se=()=>{!O.value||(ae(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:xe,toggleRowExpansion:De,updateExpandRows:ze,states:Ze,isRowExpanded:nt}=jJ({data:a,rowKey:o}),{updateTreeExpandKeys:Et,toggleTreeExpansion:Ue,updateTreeData:Pe,updateKeyChildren:Ae,loadOrToggle:Ge,states:ot}=UJ({data:a,rowKey:o}),{updateCurrentRowData:pt,updateCurrentRow:wt,setCurrentRowKey:Ce,states:Ve}=YJ({data:a,rowKey:o});return{assertRowKey:K,updateColumns:I,scheduleLayout:T,isSelected:D,clearSelection:B,cleanSelection:z,getSelectionRows:U,toggleRowSelection:V,_toggleAllSelection:G,toggleAllSelection:null,updateAllSelected:X,updateFilters:se,updateCurrentRow:wt,updateSort:ae,execFilter:ve,execSort:oe,execQuery:j,clearFilter:ie,clearSort:Se,toggleRowExpansion:De,setExpandRowKeysAdapter:Ke=>{xe(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:Pe,updateKeyChildren:Ae,states:{tableSize:n,rowKey:o,data:a,_data:l,isComplex:r,_columns:i,originColumns:u,columns:c,fixedColumns:d,rightFixedColumns:f,leafColumns:v,fixedLeafColumns:m,rightFixedLeafColumns:p,updateOrderFns:h,leafColumnsLength:g,fixedLeafColumnsLength:b,rightFixedLeafColumnsLength:C,isAllSelected:w,selection:y,reserveSelection:S,selectOnIndeterminate:E,selectable:_,filters:R,filteredData:N,sortingColumn:O,sortProp:P,sortOrder:M,hoverRow:L,...Ze,...ot,...Ve}}}function Mm(e,t){return e.map(n=>{var o;return n.id===t.id?t:((o=n.children)!=null&&o.length&&(n.children=Mm(n.children,t)),n)})}function Nm(e){e.forEach(t=>{var n,o;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(o=t.children)!=null&&o.length&&Nm(t.children)}),e.sort((t,n)=>t.no-n.no)}function XJ(){const e=ct(),t=qJ(),n=de("table"),{t:o}=yt();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 v=s(i._columns);let m=[];c?(c&&!c.children&&(c.children=[]),(f=c.children)==null||f.push(u),m=Mm(v,c)):(v.push(u),m=v),Nm(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&&(Nm(i._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(i,u,c,d){var f;const v=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=Mm(v,c);else{const p=v.indexOf(u);p>-1&&(v.splice(p,1),i._columns.value=v)}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 v=s(i.columns).find(m=>m.property===c);v&&(v.order=d,e.store.updateSort(v,c,d),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(i,u){const{sortingColumn:c,sortProp:d,sortOrder:f}=i,v=s(c),m=s(d),p=s(f);zr(p)&&(i.sortingColumn.value=null,i.sortProp.value=null);const h={filter:!0};e.store.execQuery(h),(!u||!(u.silent||u.init))&&e.emit("sort-change",{column:v,prop:m,order:p}),e.store.updateTableScrollY()},filterChange(i,u){const{column:c,values:d,silent:f}=u,v=e.store.updateFilters(c,d);e.store.execQuery(),f||e.emit("filter-change",v),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 Pm={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 ZJ(e,t){if(!e)throw new Error("Table is required.");const n=XJ();return n.toggleAllSelection=ia(n._toggleAllSelection,10),Object.keys(Pm).forEach(o=>{k_(E_(t,o),o,n)}),JJ(n,t),n}function JJ(e,t){Object.keys(Pm).forEach(n=>{ue(()=>E_(t,n),o=>{k_(o,n,e)})})}function k_(e,t,n){let o=e,a=Pm[t];Rt(a)&&(o=o||a.default,a=a.key),n.states[a].value=o}function E_(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 QJ{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=A(null),this.scrollX=A(!1),this.scrollY=A(!1),this.bodyWidth=A(null),this.fixedWidth=A(null),this.rightFixedWidth=A(null),this.gutterWidth=0;for(const n in t)Dn(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(zr(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=VJ(t),this.height.value=Number(t),!o&&(t||t===0)){ke(()=>this.setHeight(t,n));return}o&&Re(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=>!Re(c.width));if(l.forEach(c=>{Re(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 v=0;r.forEach((m,p)=>{if(p===0)return;const h=Math.floor(Number(m.minWidth||80)*f);v+=h,m.realWidth=Number(m.minWidth||80)+h}),r[0].realWidth=Number(r[0].minWidth||80)+c-v}}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 eQ=QJ;const tQ=re({name:"ElTableFilterPanel",components:{ElCheckbox:Qo,ElCheckboxGroup:Jc,ElScrollbar:Zo,ElTooltip:zn,ElIcon:$e,ArrowDown:Pa,ArrowUp:ec},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:Kt.appendTo},setup(e){const t=ct(),{t:n}=yt(),o=de("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=A(null),r=A(null),i=A(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 R;e.column&&((R=e.upDataColumn)==null||R.call(e,"filteredValue",_))}}),v=k(()=>e.column?e.column.filterMultiple:!0),m=_=>_.value===d.value,p=()=>{var _;(_=l.value)==null||_.onClose()},h=()=>{C(f.value),p()},g=()=>{f.value=[],C(f.value),p()},b=(_,R)=>{d.value=_,i.value=R,Co(_)?C([]):C(f.value),p()},C=_=>{var R,N;(R=e.store)==null||R.commit("filterChange",{column:e.column,values:_}),(N=e.store)==null||N.updateAllSelected()},w=()=>{var _,R;(_=r.value)==null||_.focus(),!v.value&&S(),e.column&&((R=e.upDataColumn)==null||R.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(R=>R.value===d.value);i.value=_>=0?_+1:0};return{multiple:v,filterClassName:c,filteredValue:f,filterValue:d,filters:u,handleConfirm:h,handleReset:g,handleSelect:b,isPropAbsent:Co,isActive:m,t:n,ns:o,tooltipRef:l,rootRef:r,checkedIndex:i,handleShowTooltip:w,handleHideTooltip:y,handleKeydown:_=>{var R,N;const O=Ht(_),P=(u.value?u.value.length:0)+1;let M=i.value,L=!0;switch(O){case fe.down:case fe.right:M=(M+1)%P;break;case fe.up:case fe.left:M=(M-1+P)%P;break;case fe.tab:p(),L=!1;break;case fe.enter:case fe.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=(R=r.value)==null?void 0:R.querySelector(`.${o.e("list-item")}:nth-child(${M+1})`))==null||N.focus()}}}}),nQ=["disabled"],oQ=["tabindex","aria-checked"],aQ=["tabindex","aria-checked","onClick"],lQ=["aria-label"];function rQ(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"),v=It("el-tooltip");return $(),ne(v,{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,bt(e.filters,m=>($(),ne(r,{key:m.value,value:m.value},{default:Q(()=>[Ct(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,nQ),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,oQ),($(!0),F(Be,null,bt(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:h=>e.handleSelect(m.value,p+1)},ge(m.text),11,aQ))),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?($(),ne(c,{key:0})):($(),ne(d,{key:1}))]})]),_:3})],10,lQ)]}),_:3},8,["placement","popper-class","append-to","onShow","onHide"])}var sQ=ye(tQ,[["render",rQ],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function Am(e){const t=ct();Vd(()=>{n.value.addObserver(t)}),ut(()=>{o(n.value),a(n.value)}),Ga(()=>{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 v=i[d],m=v.getAttribute("name"),p=c[m];p&&v.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 v=c[d];v.style.width=l.scrollY.value?`${l.gutterWidth}px`:"0",v.style.display=l.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:o,onScrollableChange:a}}const Sa=Symbol("ElTable");function iQ(e,t){const n=ct(),o=_e(Sa),a=h=>{h.stopPropagation()},l=(h,g)=>{!g.filters&&g.sortable?p(h,g,!1):g.filterable&&!g.sortable&&a(h),o==null||o.emit("header-click",g,h)},r=(h,g)=>{o==null||o.emit("header-contextmenu",g,h)},i=A(null),u=A(!1),c=A(),d=(h,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(),R=_.left-S+30;jo(E,"noclick"),c.value={startMouseLeft:h.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(R,H)}px`},P=()=>{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,h),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",P),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{no(E,"noclick")},0)};document.addEventListener("mousemove",O),document.addEventListener("mouseup",P)}},f=(h,g)=>{var b;if(!e.border||g.children&&g.children.length>0)return;const C=h.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 P=w.querySelector(".caret-wrapper");P&&(P.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,R=S.width>12&&S.right-h.clientX<8&&_,N=R?"col-resize":"";document.body.style.cursor=N,i.value=R?g:null,y&&(w.style.cursor=N)},v=()=>{!Tt||u.value||(document.body.style.cursor="")},m=({order:h,sortOrders:g})=>{if(h==="")return g[0];const b=g.indexOf(h||null);return g[b>g.length-2?0:b+1]},p=(h,g,b)=>{var C;h.stopPropagation();const w=g.order===b?null:b||m(g),y=(C=h.target)==null?void 0:C.closest("th");if(y&&Na(y,"noclick")){no(y,"noclick");return}if(!g.sortable)return;const S=h.currentTarget;if(["ascending","descending"].some(O=>Na(S,O)&&!g.sortOrders.includes(O)))return;const E=e.store.states;let _=E.sortProp.value,R;const N=E.sortingColumn.value;(N!==g||N===g&&zr(N.order))&&(N&&(N.order=null),E.sortingColumn.value=g,_=g.property),w?R=g.order=w:R=g.order=null,E.sortProp.value=_,E.sortOrder.value=R,o==null||o.store.commit("changeSortCondition")};return{handleHeaderClick:l,handleHeaderContextMenu:r,handleMouseDown:d,handleMouseMove:f,handleMouseOut:v,handleSortClick:p,handleFilterClick:a}}function uQ(e){const t=_e(Sa),n=de("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 v=(f=t==null?void 0:t.props.headerCellStyle)!=null?f:{};lt(v)&&(v=v.call(null,{rowIndex:i,columnIndex:u,row:c,column:d}));const m=Im(u,d.fixed,e.store,c);return ks(m,"left"),ks(m,"right"),Object.assign({},v,m)},getHeaderCellClass:(i,u,c,d)=>{const f=xm(n.b(),u,d.fixed,e.store,c),v=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...f];d.children||v.push("is-leaf"),d.sortable&&v.push("is-sortable");const m=t==null?void 0:t.props.headerCellClassName;return He(m)?v.push(m):lt(m)&&v.push(m.call(null,{rowIndex:i,columnIndex:u,row:c,column:d})),v.push(n.e("cell")),v.filter(p=>Boolean(p)).join(" ")}}}const $_=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,$_(n.children))):t.push(n)}),t},__=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 $_(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 cQ(e){const t=_e(Sa),n=k(()=>__(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 dQ=re({name:"ElTableHeader",components:{ElCheckbox:Qo},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=_e(Sa),a=de("table"),l=A({}),{onColumnsChange:r,onScrollableChange:i}=Am(o),u=(o==null?void 0:o.props.tableLayout)==="auto",c=Lt(new Map),d=A();let f;const v=()=>{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())})};ue(c,v),Dt(()=>{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}),v()});const{handleHeaderClick:m,handleHeaderContextMenu:p,handleMouseDown:h,handleMouseMove:g,handleMouseOut:b,handleSortClick:C,handleFilterClick:w}=iQ(e,t),{getHeaderRowStyle:y,getHeaderRowClass:S,getHeaderCellStyle:E,getHeaderCellClass:_}=uQ(e),{isGroup:R,toggleAllSelection:N,columnRows:O}=cQ(e),{t:P}=yt();return n.state={onColumnsChange:r,onScrollableChange:i},n.filterPanels=l,{ns:a,t:P,filterPanels:l,onColumnsChange:r,onScrollableChange:i,columnRows:O,getHeaderRowClass:S,getHeaderRowStyle:y,getHeaderCellClass:_,getHeaderCellStyle:E,handleHeaderClick:m,handleHeaderContextMenu:p,handleMouseDown:h,handleMouseMove:g,handleMouseOut:b,handleSortClick:C,handleFilterClick:w,isGroup:R,toggleAllSelection:N,saveIndexSelection:c,isTableLayoutAuto:u,theadRef:d,updateFixedColumnStyle:v}},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:v,handleMouseOut:m,store:p,$parent:h,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:R=>{var N;(N=R.currentTarget)!=null&&N.classList.contains("noclick")||u(R,S)},onContextmenu:R=>c(R,S),onMousedown:R=>d(R,S),onMousemove:R=>f(R,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:h}):S.label,S.sortable&&Le("button",{type:"button",class:"caret-wrapper","aria-label":t("el.table.sortLabel",{column:S.label||""}),onClick:R=>v(R,S)},[Le("i",{onClick:R=>v(R,S,"ascending"),class:"sort-caret ascending"}),Le("i",{onClick:R=>v(R,S,"descending"),class:"sort-caret descending"})]),S.filterable&&Le(sQ,{store:p,placement:S.filterPlacement||"bottom-start",appendTo:h==null?void 0:h.appendFilterPanelTo,column:S,upDataColumn:(R,N)=>{S[R]=N}},{"filter-icon":()=>S.renderFilterIcon?S.renderFilterIcon({filterOpened:S.filterOpened}):null})])])}))))}});function Lm(e,t,n=.03){return e-t>n}function fQ(e){const t=_e(Sa),n=A(""),o=A(Le("div")),a=(p,h,g)=>{var b,C,w;const y=t,S=Om(p);let E=null;const _=(b=y==null?void 0:y.vnode.el)==null?void 0:b.dataset.prefix;S&&(E=m_({columns:(w=(C=e.store)==null?void 0:C.states.columns.value)!=null?w:[]},S,_),E&&(y==null||y.emit(`cell-${g}`,h,E,S,p))),y==null||y.emit(`row-${g}`,h,E,p)},l=(p,h)=>{a(p,h,"dblclick")},r=(p,h)=>{var g;(g=e.store)==null||g.commit("setCurrentRow",h),a(p,h,"click")},i=(p,h)=>{a(p,h,"contextmenu")},u=ia(p=>{var h;(h=e.store)==null||h.commit("setHoverRow",p)},30),c=ia(()=>{var p;(p=e.store)==null||p.commit("setHoverRow",null)},30),d=p=>{const h=window.getComputedStyle(p,null),g=Number.parseInt(h.paddingLeft,10)||0,b=Number.parseInt(h.paddingRight,10)||0,C=Number.parseInt(h.paddingTop,10)||0,w=Number.parseInt(h.paddingBottom,10)||0;return{left:g,right:b,top:C,bottom:w}},f=(p,h,g)=>{var b;let C=(b=h==null?void 0:h.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,h,g)=>{var b,C,w,y,S,E,_,R,N;if(!t)return;const O=t,P=Om(p),M=(b=O==null?void 0:O.vnode.el)==null?void 0:b.dataset.prefix;let L=null;if(P){if(L=m_({columns:(w=(C=e.store)==null?void 0:C.states.columns.value)!=null?w:[]},P,M),!L)return;P.rowSpan>1&&f(P.rowSpan,p,jo);const le=O.hoverState={cell:P,column:L,row:h};O==null||O.emit("cell-mouse-enter",le.row,le.column,le.cell,p)}if(!g){((y=ro)==null?void 0:y.trigger)===P&&((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:T,height:D}=H.getBoundingClientRect(),{top:B,left:z,right:U,bottom:V}=d(H),G=z+U,X=B+V;Lm(Y+G,T)||Lm(I+X,D)||Lm(H.scrollWidth,T)?KJ(g,(_=(P==null?void 0:P.innerText)||(P==null?void 0:P.textContent))!=null?_:"",h,L,P,O):((R=ro)==null?void 0:R.trigger)===P&&((N=ro)==null||N())},handleCellMouseLeave:p=>{const h=Om(p);if(!h)return;h.rowSpan>1&&f(h.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 pQ(e){const t=_e(Sa),n=de("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 v;const m=[n.e("row")];(t==null?void 0:t.props.highlightCurrentRow)&&c===((v=e.store)==null?void 0:v.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,v)=>{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:v}));const h=Im(d,e==null?void 0:e.fixed,e.store);return ks(h,"left"),ks(h,"right"),Object.assign({},p,h)},getCellClass:(c,d,f,v,m)=>{const p=xm(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,m),h=[v.id,v.align,v.className,...p],g=t==null?void 0:t.props.cellClassName;return He(g)?h.push(g):lt(g)&&h.push(g.call(null,{rowIndex:c,columnIndex:d,row:f,column:v})),h.push(n.e("cell")),h.filter(b=>Boolean(b)).join(" ")},getSpan:(c,d,f,v)=>{let m=1,p=1;const h=t==null?void 0:t.props.spanMethod;if(lt(h)){const g=h({row:c,column:d,rowIndex:f,columnIndex:v});Ee(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 v=c.map(({realWidth:m,width:p})=>m||p).slice(f,f+d);return Number(v.reduce((m,p)=>Number(m)+Number(p),-1))}}}const vQ=["colspan","rowspan"],hQ=re({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,vQ))}});var mQ=ye(hQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table-body/td-wrapper.vue"]]);function gQ(e){const t=_e(Sa),n=de("table"),{handleDoubleClick:o,handleClick:a,handleContextMenu:l,handleMouseEnter:r,handleMouseLeave:i,handleCellMouseEnter:u,handleCellMouseLeave:c,tooltipContent:d,tooltipTrigger:f}=fQ(e),{getRowStyle:v,getRowClass:m,getCellStyle:p,getCellClass:h,getSpan:g,getColspanRealWidth:b}=pQ(e);let C=-1;const w=k(()=>{var R;return(R=e.store)==null?void 0:R.states.columns.value.findIndex(({type:N})=>N==="default")}),y=(R,N)=>{var O;const P=(O=t==null?void 0:t.props)==null?void 0:O.rowKey;return P?Jn(R,P):N},S=(R,N,O,P=!1)=>{const{tooltipEffect:M,tooltipOptions:L,store:H}=e,{indent:K,columns:Y}=H.states,I=[];let T=!0;return O&&(I.push(n.em("row",`level-${O.level}`)),T=!!O.display),N===0&&(C=-1),e.stripe&&T&&C++,I.push(...m(R,N,C)),Le("tr",{style:[T?null:{display:"none"},v(R,N)],class:I,key:y(R,N),onDblclick:B=>o(B,R),onClick:B=>a(B,R),onContextmenu:B=>l(B,R),onMouseenter:()=>r(N),onMouseleave:i},Y.value.map((B,z)=>{const{rowspan:U,colspan:V}=g(R,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:R,$index:N,cellIndex:z,expanded:P};z===w.value&&O&&(X.treeNode={indent:O.level&&O.level*K.value,level:O.level},Vt(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(R,N)},${z}`,se=G.columnKey||G.rawColumnKey||"",ae=B.showOverflowTooltip&&np({effect:M},L,B.showOverflowTooltip);return Le(mQ,{style:p(N,z,R,B),class:h(N,z,R,B,V-1),key:`${se}${le}`,rowspan:U,colspan:V,onMouseenter:ve=>u(ve,R,ae),onMouseleave:c},{default:()=>E(z,B,X)})}))},E=(R,N,O)=>N.renderCell(O);return{wrappedRowRender:(R,N)=>{const O=e.store,{isRowExpanded:P,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=P(R),B=S(R,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:R,$index:N,store:O,expanded:D})])])),U}else if(Object.keys(L.value).length){M();const D=Jn(R,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},Vt(B.lazy)&&(z&&Vt(B.loaded)&&B.loaded&&(z.noLazyChildren=!(B.children&&B.children.length)),z.loading=B.loading));const U=[S(R,N,z!=null?z:void 0)];if(B){let V=0;const G=(le,se)=>{!(le&&le.length&&se)||le.forEach(ae=>{const ve={display:se.display&&se.expanded,level:se.level+1,expanded:!1,noLazyChildren:!1,loading:!1},oe=Jn(ae,Y.value);if(Co(oe))throw new Error("For nested data item, row-key is required.");if(B={...L.value[oe]},B&&(ve.expanded=B.expanded,B.level=B.level||ve.level,B.display=!!(B.expanded&&ve.display),Vt(B.lazy)&&(Vt(B.loaded)&&B.loaded&&(ve.noLazyChildren=!(B.children&&B.children.length)),ve.loading=B.loading)),V++,U.push(S(ae,N+V,ve)),B){const j=H.value[oe]||ae[K.value];G(j,B)}})};B.display=!0;const X=H.value[D]||R[K.value];G(X,B)}return U}else return S(R,N,void 0)},tooltipContent:d,tooltipTrigger:f}}const bQ={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 yQ=bQ,wQ=re({name:"ElTableBody",props:yQ,setup(e){var t;const n=ct(),o=_e(Sa),a=de("table"),{wrappedRowRender:l,tooltipContent:r,tooltipTrigger:i}=gQ(e),{onColumnsChange:u,onScrollableChange:c}=Am(o),d=[];return ue((t=e.store)==null?void 0:t.states.hoverRow,(f,v)=>{var m,p;const h=n==null?void 0:n.vnode.el,g=Array.from((h==null?void 0:h.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 R,N;return((R=C[_])==null?void 0:R.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){jo(_[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[v],y=g[f];w&&!w.classList.contains("hover-fixed-row")&&no(w,"hover-row"),y&&jo(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 CQ(){const e=_e(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 SQ(e){const{columns:t}=CQ(),n=de("table");return{getCellClasses:(l,r)=>{const i=l[r],u=[n.e("cell"),i.id,i.align,i.labelClassName,...xm(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=Im(r,l.fixed,e.store);return ks(i,"left"),ks(i,"right"),i},columns:t}}var kQ=re({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=_e(Sa),n=de("table"),{getCellClasses:o,getCellStyles:a,columns:l}=SQ(e),{onScrollableChange:r,onColumnsChange:i}=Am(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 v=Math.max.apply(null,d);f?r[u]="":r[u]=c.reduce((m,p)=>{const h=Number(p);return Number.isNaN(+h)?m:Number.parseFloat((m+p).toFixed(Math.min(v,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 EQ(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,v,m=!0)=>{e.toggleRowSelection(f,v,!1,m),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,v)=>{e.toggleRowExpansionAdapter(f,v)},clearSort:()=>{e.clearSort()},sort:(f,v)=>{e.commit("sort",{prop:f,order:v})},updateKeyChildren:(f,v)=>{e.updateKeyChildren(f,v)}}}function $Q(e,t,n,o){const a=A(!1),l=A(null),r=A(!1),i=I=>{r.value=I},u=A({width:null,height:null,headerHeight:null}),c=A(!1),d={display:"inline-block",verticalAlign:"middle"},f=A(),v=A(0),m=A(0),p=A(0),h=A(0),g=A(0);ue(()=>e.height,I=>{t.setHeight(I!=null?I:null)},{immediate:!0}),ue(()=>e.maxHeight,I=>{t.setMaxHeight(I!=null?I:null)},{immediate:!0}),ue(()=>[e.currentRowKey,n.states.rowKey],([I,T])=>{!s(T)||!s(I)||n.setCurrentRowKey(`${I}`)},{immediate:!0}),ue(()=>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,T)=>{const{pixelX:D,pixelY:B}=T;Math.abs(D)>=Math.abs(B)&&(o.refs.bodyWrapper.scrollLeft+=T.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,T=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&&T?T.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,T)=>{if(!I)return;const D=Array.from(I.classList).filter(B=>!B.startsWith("is-scrolling-"));D.push(t.scrollX.value?T:"is-scrolling-none"),I.className=D.join(" ")},_=I=>{const{tableWrapper:T}=o.refs;E(T,I)},R=I=>{const{tableWrapper:T}=o.refs;return!!(T&&T.classList.contains(I))},N=function(){if(!o.refs.scrollBarRef)return;if(!t.scrollX.value){const G="is-scrolling-none";R(G)||_(G);return}const I=o.refs.scrollBarRef.wrapRef;if(!I)return;const{scrollLeft:T,offsetWidth:D,scrollWidth:B}=I,{headerWrapper:z,footerWrapper:U}=o.refs;z&&(z.scrollLeft=T),U&&(U.scrollLeft=T);const V=B-D-1;T>=V?_("is-scrolling-right"):_(T===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,P):Mt(window,"resize",P),Qt(o.refs.tableInnerWrapper,()=>{var I,T;P(),(T=(I=o.refs)==null?void 0:I.scrollBarRef)==null||T.update()}))},P=()=>{var I,T,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 ae=e.tableLayout==="fixed"?o.refs.headerWrapper:(I=o.refs.tableHeaderRef)==null?void 0:I.$el;e.showHeader&&(ae==null?void 0:ae.offsetHeight)!==X&&(U=!0),v.value=((T=o.refs.tableWrapper)==null?void 0:T.scrollHeight)||0,p.value=(ae==null?void 0:ae.scrollHeight)||0,h.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=v.value-p.value-h.value-g.value,U&&(u.value={width:le,height:se,headerHeight:e.showHeader&&(ae==null?void 0:ae.offsetHeight)||0},S())},M=wn(),L=k(()=>{const{bodyWidth:I,scrollY:T,gutterWidth:D}=t;return I.value?`${I.value-(T.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 T=f.value;return{width:T?`${T}px`:"",height:I}}),Y=k(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${p.value+h.value}px)`}:{maxHeight:`${+e.maxHeight-p.value-h.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 _Q(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 TQ={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 T_(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))))}T_.props=["columns","tableLayout"];const OQ=()=>{const e=A(),t=(l,r)=>{const i=e.value;i&&i.scrollTo(l,r)},n=(l,r)=>{const i=e.value;i&&Re(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 RQ=1;const xQ=re({name:"ElTable",directives:{Mousewheel:ck},components:{TableHeader:dQ,TableBody:wQ,TableFooter:kQ,ElScrollbar:Zo,hColgroup:T_},props:TQ,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}=yt(),n=de("table"),o=ct();St(Sa,o);const a=ZJ(o,e);o.store=a;const l=new eQ({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:v,toggleRowExpansion:m,clearSort:p,sort:h,updateKeyChildren:g}=EQ(a),{isHidden:b,renderExpanded:C,setDragVisible:w,isGroup:y,handleMouseLeave:S,handleHeaderFooterMousewheel:E,tableSize:_,emptyBlockStyle:R,resizeProxyVisible:N,bodyWidth:O,resizeState:P,doLayout:M,tableBodyStyles:L,tableLayout:H,scrollbarViewStyle:K,scrollbarStyle:Y}=$Q(e,l,a,o),{scrollBarRef:I,scrollTo:T,setScrollLeft:D,setScrollTop:B}=OQ(),z=ia(M,50),U=`${n.namespace.value}-table_${RQ++}`;o.tableId=U,o.state={isGroup:y,resizeState:P,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(()=>__(a.states.originColumns.value)[0]);return _Q(o),Dt(()=>{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:P,isGroup:y,bodyWidth:O,tableBodyStyles:L,emptyBlockStyle:R,debouncedUpdateLayout:z,setCurrentRow:i,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:f,toggleAllSelection:v,toggleRowExpansion:m,clearSort:p,doLayout:M,sort:h,updateKeyChildren:g,t,setDragVisible:w,context:o,computedSumText:V,computedEmptyText:G,tableLayout:H,scrollbarViewStyle:K,scrollbarStyle:Y,scrollBarRef:I,scrollTo:T,setScrollLeft:D,setScrollTop:B,allowDragLastColumn:e.allowDragLastColumn}}}),IQ=["data-prefix"],MQ={ref:"hiddenColumns",class:"hidden-columns"};function NQ(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=Hd("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]=(...v)=>e.handleMouseLeave&&e.handleMouseLeave(...v))},[W("div",{ref:"tableInnerWrapper",class:x(e.ns.e("inner-wrapper"))},[W("div",MQ,[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]=v=>e.$emit("scroll",v))},{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"?($(),ne(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"?($(),ne(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",{},()=>[Ct(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,IQ)}var PQ=ye(xQ,[["render",NQ],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const AQ={selection:"table-column--selection",expand:"table__expand-column"},LQ={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:""}},DQ=e=>AQ[e]||"",BQ={selection:{renderHeader({store:e}){var t;function n(){return e.states.data.value&&e.states.data.value.length===0}return Le(Qo,{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(Qo,{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 Re(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 FQ({row:e,column:t,$index:n}){var o;const a=t.property,l=a&&ri(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 VQ({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`}})),Vt(t.expanded)&&!t.noLazyChildren){const i=[a.e("expand-icon"),t.expanded?a.em("expand-icon","expanded"):""];let u=oo;t.loading&&(u=Aa),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 O_(e,t){return e.reduce((n,o)=>(n[o]=o,n),t)}function zQ(e,t){const n=ct();return{registerComplexWatchers:()=>{const l=["fixed"],r={realWidth:"width",realMinWidth:"minWidth"},i=O_(l,r);Object.keys(i).forEach(u=>{const c=r[u];Dn(t,c)&&ue(()=>t[c],d=>{let f=d;c==="width"&&u==="realWidth"&&(f=Rm(d)),c==="minWidth"&&u==="realMinWidth"&&(f=g_(d)),n.columnConfig.value[c]=f,n.columnConfig.value[u]=f;const v=c==="fixed";e.value.store.scheduleLayout(v)})})},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=O_(l,i);Object.keys(u).forEach(c=>{const d=i[c];Dn(t,d)&&ue(()=>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=>{Dn(e.value.props,c)&&ue(()=>e.value.props[c],d=>{n.columnConfig.value.type!=="selection"&&(!_t(t[c])||(n.columnConfig.value[c]=d))})})}}}function HQ(e,t,n){const o=ct(),a=A(""),l=A(!1),r=A(),i=A(),u=de("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=A(Rm(e.width)),v=A(g_(e.minWidth)),m=y=>(f.value&&(y.width=f.value),v.value&&(y.minWidth=v.value),!f.value&&v.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=BQ[S]||{};Object.keys(E).forEach(R=>{const N=E[R];R!=="className"&&!_t(N)&&(y[R]=N)});const _=DQ(S);if(_){const R=`${s(u.namespace)}-${_}`;y.className=y.className?`${y.className} ${R}`:R}return y},h=y=>{Ee(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(S_(_))return Le(Be,_)}return Ct(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||FQ,y.renderCell=E=>{let _=null;if(t.default){const L=t.default(E);_=L.some(H=>H.type!==Ua)?L:S(E)}else _=S(E);const{columns:R}=n.value.store.states,N=R.value.findIndex(L=>L.type==="default"),O=d.value&&E.cellIndex===N,P=VQ(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`}),h(_),Le("div",M,[P,_])}),y},getPropsData:(...y)=>y.reduce((S,E)=>(Ee(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 WQ={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 KQ=1;var R_=re({name:"ElTableColumn",components:{ElCheckbox:Qo},props:WQ,setup(e,{slots:t}){const n=ct(),o=A({}),a=k(()=>{let w=n.parent;for(;w&&!w.tableId;)w=w.parent;return w}),{registerNormalWatchers:l,registerComplexWatchers:r}=zQ(a,e),{columnId:i,isSubColumn:u,realHeaderAlign:c,columnOrTableParent:d,setColumnWidth:f,setColumnForcedProps:v,setColumnRenders:m,getPropsData:p,getColumnElIndex:h,realAlign:g,updateColumnOrder:b}=HQ(e,t,a),C=d.value;i.value=`${"tableId"in C&&C.tableId||"columnId"in C&&C.columnId}_column_${KQ++}`,Vd(()=>{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,_={...LQ[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=FJ(_,M),M=zJ(m,f,v)(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,_=()=>h(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)}),Dt(()=>{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(Ee(o))for(const r of o)((n=r.type)==null?void 0:n.name)==="ElTableColumn"||r.shapeFlag&2?a.push(r):r.type===Be&&Ee(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 x_=Qe(PQ,{TableColumn:R_}),I_=cn(R_);var jl=(e=>(e.ASC="asc",e.DESC="desc",e))(jl||{}),Es=(e=>(e.LEFT="left",e.CENTER="center",e.RIGHT="right",e))(Es||{}),Dm=(e=>(e.LEFT="left",e.RIGHT="right",e))(Dm||{});const Bm={asc:"desc",desc:"asc"},$s=Symbol("placeholder"),jQ=(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 YQ(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]=jQ(b,s(n),e.fixed),g),{})),f=k(()=>s(a).reduce((g,b)=>g+b.width,0)),v=g=>s(o).find(b=>b.key===g),m=g=>s(d)[g],p=(g,b)=>{g.width=b};function h(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=Bm[w[C]]:S=Bm[y.order],(b=e.onColumnSort)==null||b.call(e,{column:v(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:v,getColumnStyle:m,updateColumnWidth:p,onColumnSorted:h}}const UQ=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,onMaybeEndReached:a})=>{const l=A({scrollLeft:0,scrollTop:0});function r(m){var p,h,g;const{scrollTop:b}=m;(p=t.value)==null||p.scrollTo(m),(h=n.value)==null||h.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,h;l.value.scrollLeft=m,(h=(p=t.value)==null?void 0:p.scrollTo)==null||h.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 v(m,p="auto"){var h;(h=t.value)==null||h.scrollToRow(m,p)}return ue(()=>s(l).scrollTop,(m,p)=>{m>p&&a()}),{scrollPos:l,scrollTo:i,scrollToLeft:c,scrollToTop:u,scrollToRow:v,onScroll:d,onVerticalScroll:f}},GQ=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,tableInstance:a,ns:l,isScrolling:r})=>{const i=ct(),{emit:u}=i,c=Zt(!1),d=A(e.defaultExpandedRowKeys||[]),f=A(-1),v=Zt(null),m=A({}),p=A({}),h=Zt({}),g=Zt({}),b=Zt({}),C=k(()=>Re(e.estimatedRowHeight));function w(O){var P;(P=e.onRowsRendered)==null||P.call(e,O),O.rowCacheEnd>s(f)&&(f.value=O.rowCacheEnd)}function y({hovered:O,rowKey:P}){if(r.value)return;a.vnode.el.querySelectorAll(`[rowkey="${String(P)}"]`).forEach(H=>{O?H.classList.add(l.is("hovered")):H.classList.remove(l.is("hovered"))})}function S({expanded:O,rowData:P,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:P,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=ia(()=>{var O,P,M,L;c.value=!0,m.value={...s(m),...s(p)},_(s(v),!1),p.value={},v.value=null,(O=t.value)==null||O.forceUpdate(),(P=n.value)==null||P.forceUpdate(),(M=o.value)==null||M.forceUpdate(),(L=i.proxy)==null||L.$forceUpdate(),c.value=!1},0);function _(O,P=!1){!s(C)||[t,n,o].forEach(M=>{const L=s(M);L&&L.resetAfterRowIndex(O,P)})}function R(O,P,M){const L=s(v);(L===null||L>M)&&(v.value=M),p.value[O]=P}function N({rowKey:O,height:P,rowIndex:M},L){L?L===Dm.RIGHT?b.value[O]=P:h.value[O]=P:g.value[O]=P;const H=Math.max(...[h,b,g].map(K=>K.value[O]||0));s(m)[O]!==H&&(R(O,H,M),E())}return{expandedRowKeys:d,lastRenderedRowIndex:f,isDynamic:C,isResetting:c,rowHeights:m,resetAfterIndex:_,onRowExpanded:S,onRowHovered:y,onRowsRendered:w,onRowHeightChange:N}},qQ=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:o})=>{const a=A({}),l=k(()=>{const i={},{data:u,rowKey:c}=e,d=s(t);if(!d||!d.length)return u;const f=[],v=new Set;d.forEach(p=>v.add(p));let m=u.slice();for(m.forEach(p=>i[p[c]]=0);m.length>0;){const p=m.shift();f.push(p),v.has(p[c])&&Ee(p.children)&&p.children.length>0&&(m=[...p.children,...m],p.children.forEach(h=>i[h[c]]=i[p[c]]+1))}return a.value=i,f}),r=k(()=>{const{data:i,expandColumnKey:u}=e;return u?s(l):i});return ue(r,(i,u)=>{i!==u&&(n.value=-1,o(0,!0))}),{data:r,depthMap:a}},XQ=(e,t)=>e+t,wd=e=>Ee(e)?e.reduce(XQ,0):e,yr=(e,t,n={})=>lt(e)?e(t):e!=null?e:n,Yl=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=un(e[t])}),e),M_=e=>Jt(e)?t=>Le(e,t):e,ZQ=(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(v),E=s(n),R=s(f)+S+E+y;return Math.min(R,C-w)}return b-w}),i=k(()=>{const{maxHeight:b}=e,C=s(r);if(Re(b)&&b>0)return C;const w=s(n)+s(f)+s(v);return Math.min(C,w)}),u=b=>b.width,c=k(()=>wd(s(o).map(u))),d=k(()=>wd(s(a).map(u))),f=k(()=>wd(e.headerHeight)),v=k(()=>{var b;return(((b=e.fixedData)==null?void 0:b.length)||0)*e.rowHeight}),m=k(()=>s(r)-s(f)-s(v)),p=k(()=>{const{style:b={},height:C,width:w}=e;return Yl({...b,height:C,width:w})}),h=k(()=>Yl({height:e.footerHeight})),g=k(()=>({top:un(s(f)),bottom:un(e.footerHeight),width:un(e.width)}));return{bodyWidth:l,fixedTableHeight:i,mainTableHeight:r,leftTableWidth:c,rightTableWidth:d,windowHeight:m,footerHeight:h,emptyStyle:g,rootStyle:p,headerHeight:f}},JQ=e=>{const t=A(),n=A(0),o=A(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),v=Number.parseInt(u)||0,m=Number.parseInt(c)||0,p=Number.parseInt(d)||0,h=Number.parseInt(f)||0;n.value=r-v-m,o.value=i-p-h}).stop}),Dt(()=>{a==null||a()}),ue([n,o],([l,r])=>{var i;(i=e.onResize)==null||i.call(e,{width:l,height:r})}),{sizer:t,width:n,height:o}};function QQ(e){const t=A(),n=A(),o=A(),{columns:a,columnsStyles:l,columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,hasFixedColumns:c,mainColumns:d,onColumnSorted:f}=YQ(e,Ft(e,"columns"),Ft(e,"fixed")),{scrollTo:v,scrollToLeft:m,scrollToTop:p,scrollToRow:h,onScroll:g,onVerticalScroll:b,scrollPos:C}=UQ(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,onMaybeEndReached:Se}),w=de("table-v2"),y=ct(),S=Zt(!1),{expandedRowKeys:E,lastRenderedRowIndex:_,isDynamic:R,isResetting:N,rowHeights:O,resetAfterIndex:P,onRowExpanded:M,onRowHeightChange:L,onRowHovered:H,onRowsRendered:K}=GQ(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,tableInstance:y,ns:w,isScrolling:S}),{data:Y,depthMap:I}=qQ(e,{expandedRowKeys:E,lastRenderedRowIndex:_,resetAfterIndex:P}),T=k(()=>{const{estimatedRowHeight:xe,rowHeight:De}=e,ze=s(Y);return Re(xe)?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:ae}=ZQ(e,{columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,rowsHeight:T}),ve=A(),oe=k(()=>{const xe=s(Y).length===0;return Ee(e.fixedData)?e.fixedData.length===0&&xe:xe});function j(xe){const{estimatedRowHeight:De,rowHeight:ze,rowKey:Ze}=e;return De?s(O)[s(Y)[xe][Ze]]||De:ze}const ie=A(!1);function Se(){const{onEndReached:xe}=e;if(!xe)return;const{scrollTop:De}=s(C),ze=s(T),Ze=s(G),nt=ze-(De+Ze)+e.hScrollbarSize;!ie.value&&s(_)>=0&&ze<=De+s(z)-s(ae)?(ie.value=!0,xe(nt)):ie.value=!1}return ue(()=>s(T),()=>ie.value=!1),ue(()=>e.expandedRowKeys,xe=>E.value=xe,{deep:!0}),{columns:a,containerRef:ve,mainTableRef:t,leftTableRef:n,rightTableRef:o,isDynamic:R,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:oe,getRowHeight:j,onColumnSorted:f,onRowHovered:H,onRowExpanded:M,onRowsRendered:K,onRowHeightChange:L,scrollTo:v,scrollToLeft:m,scrollToTop:p,scrollToRow:h,onScroll:g,onVerticalScroll:b}}const Fm=Symbol("tableV2"),N_="tableV2GridScrollLeft",P_=String,Gi={type:q(Array),required:!0},Vm={type:q(Array)},A_={...Vm,required:!0},eee=String,L_={type:q(Array),default:()=>dn([])},wr={type:Number,required:!0},D_={type:q([String,Number,Symbol]),default:"id"},B_={type:q(Object)},Ul=he({class:String,columns:Gi,columnsStyles:{type:q(Object),required:!0},depth:Number,expandColumnKey:eee,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:D_,style:{type:q(Object)}}),zm={type:Number,required:!0},Hm=he({class:String,columns:Gi,fixedHeaderData:{type:q(Array)},headerData:{type:q(Array),required:!0},headerHeight:{type:q([Number,Array]),default:50},rowWidth:zm,rowHeight:{type:Number,default:50},height:zm,width:zm}),Cd=he({columns:Gi,data:A_,fixedData:Vm,estimatedRowHeight:Ul.estimatedRowHeight,width:wr,height:wr,headerWidth:wr,headerHeight:Hm.headerHeight,bodyWidth:wr,rowHeight:wr,cache:bm.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Kl.scrollbarAlwaysOn,scrollbarStartGap:Kl.scrollbarStartGap,scrollbarEndGap:Kl.scrollbarEndGap,class:P_,style:B_,containerStyle:B_,getRowHeight:{type:q(Function),required:!0},rowKey:Ul.rowKey,onRowsRendered:{type:q(Function)},onScroll:{type:q(Function)}}),F_=he({cache:Cd.cache,estimatedRowHeight:Ul.estimatedRowHeight,rowKey:D_,headerClass:{type:q([String,Function])},headerProps:{type:q([Object,Function])},headerCellProps:{type:q([Object,Function])},headerHeight:Hm.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:Gi,data:A_,dataGetter:{type:q(Function)},fixedData:Vm,expandColumnKey:Ul.expandColumnKey,expandedRowKeys:L_,defaultExpandedRowKeys:L_,class:P_,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:wm.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:Cd.onScroll,onRowsRendered:Cd.onRowsRendered,rowEventHandlers:Ul.rowEventHandlers}),Wm=(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])};Wm.displayName="ElTableV2Cell",Wm.inheritAttrs=!1;var tee=Wm;const Km=(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])]});Km.displayName="ElTableV2HeaderCell",Km.inheritAttrs=!1;var nee=Km;const oee=he({class:String,columns:Gi,columnsStyles:{type:q(Object),required:!0},headerIndex:Number,style:{type:q(Object)}}),aee=re({name:"ElTableV2HeaderRow",props:oee,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=>Ee(i)&&i.length===1?i[0]:i),columns:n,headerIndex:a})),Z("div",{class:e.class,style:l,role:"row"},[r])}}});var lee=aee;const ree="ElTableV2Header",see=re({name:ree,props:Hm,setup(e,{slots:t,expose:n}){const o=de("table-v2"),a=_e(N_),l=A(),r=k(()=>Yl({width:e.width,height:e.height})),i=k(()=>Yl({width:e.rowWidth,height:e.height})),u=k(()=>Pn(s(e.headerHeight))),c=v=>{const m=s(l);ke(()=>{m!=null&&m.scroll&&m.scroll({left:v})})},d=()=>{const v=o.e("fixed-header-row"),{columns:m,fixedHeaderData:p,rowHeight:h}=e;return p==null?void 0:p.map((g,b)=>{var C;const w=Yl({height:h,width:"100%"});return(C=t.fixed)==null?void 0:C.call(t,{class:v,columns:m,rowData:g,rowIndex:-(b+1),style:w})})},f=()=>{const v=o.e("dynamic-header-row"),{columns:m}=e;return s(u).map((p,h)=>{var g;const b=Yl({width:"100%",height:p});return(g=t.dynamic)==null?void 0:g.call(t,{class:v,columns:m,headerIndex:h,style:b})})};return Ga(()=>{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 iee=see;const uee=e=>{const{isScrolling:t}=_e(Fm),n=A(!1),o=A(),a=k(()=>Re(e.estimatedRowHeight)&&e.rowIndex>=0),l=(u=!1)=>{const c=s(o);if(!c)return;const{columns:d,onRowHeightChange:f,rowKey:v,rowIndex:m,style:p}=e,{height:h}=c.getBoundingClientRect();n.value=!0,ke(()=>{if(u||h!==Number.parseInt(p.height)){const g=d[0],b=(g==null?void 0:g.placeholderSign)===$s;f==null||f({rowKey:v,height:h,rowIndex:m},g&&!b&&g.fixed)}})},r=k(()=>{const{rowData:u,rowIndex:c,rowKey:d,onRowHover:f}=e,v=e.rowEventHandlers||{},m={};return Object.entries(v).forEach(([p,h])=>{lt(h)&&(m[p]=g=>{h({event:g,rowData:u,rowIndex:c,rowKey:d})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:p,hovered:h})=>{const g=m[p];m[p]=b=>{f({event:b,hovered:h,rowData:u,rowIndex:c,rowKey:d}),g==null||g(b)}}),m}),i=u=>{const{onRowExpand:c,rowData:d,rowIndex:f,rowKey:v}=e;c==null||c({expanded:u,rowData:d,rowIndex:f,rowKey:v})};return ut(()=>{s(a)&&l(!0)}),{isScrolling:t,measurable:a,measured:n,rowRef:o,eventHandlers:r,onExpand:i}},cee="ElTableV2TableRow",dee=re({name:cee,props:Ul,setup(e,{expose:t,slots:n,attrs:o}){const{eventHandlers:a,isScrolling:l,measurable:r,measured:i,rowRef:u,onExpand:c}=uee(e);return t({onExpand:c}),()=>{const{columns:d,columnsStyles:f,expandColumnKey:v,depth:m,rowData:p,rowIndex:h,style:g}=e;let b=d.map((C,w)=>{const y=Ee(p.children)&&p.children.length>0&&C.key===v;return n.cell({column:C,columns:d,columnIndex:w,depth:m,style:f[C.key],rowData:p,rowIndex:h,isScrolling:s(l),expandIconProps:y?{rowData:p,rowIndex:h,onExpand:c}:void 0})});if(n.row&&(b=n.row({cells:b.map(C=>Ee(C)&&C.length===1?C[0]:C),style:g,columns:d,depth:m,rowData:p,rowIndex:h,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 fee=dee;const pee=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(VV,null,null):Z(BV,null,null)]})])};var vee=pee;const hee=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)]})])};var mee=hee;const gee="ElTableV2Grid",bee=e=>{const t=A(),n=A(),o=A(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(()=>wd(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 v(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 h(){var g,b;(g=s(n))==null||g.$forceUpdate(),(b=s(t))==null||b.$forceUpdate()}return ue(()=>e.bodyWidth,()=>{var g;Re(e.estimatedRowHeight)&&((g=n.value)==null||g.resetAfter({columnIndex:0},!1))}),{bodyRef:n,forceUpdate:h,fixedRowHeight:l,gridHeight:i,hasHeader:u,headerHeight:r,headerRef:t,totalHeight:a,itemKey:c,onItemRendered:d,resetAfterRowIndex:f,scrollTo:v,scrollToTop:m,scrollToRow:p,scrollLeft:o}},jm=re({name:gee,props:Cd,setup(e,{slots:t,expose:n}){const{ns:o}=_e(Fm),{bodyRef:a,fixedRowHeight:l,gridHeight:r,hasHeader:i,headerRef:u,headerHeight:c,totalHeight:d,forceUpdate:f,itemKey:v,onItemRendered:m,resetAfterRowIndex:p,scrollTo:h,scrollToTop:g,scrollToRow:b,scrollLeft:C}=bee(e);St(N_,C),zd(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:h,scrollToTop:g,scrollToRow:b,resetAfterRowIndex:p});const w=()=>e.bodyWidth;return()=>{const{cache:y,columns:S,data:E,fixedData:_,useIsScrolling:R,scrollbarAlwaysOn:N,scrollbarEndGap:O,scrollbarStartGap:P,style:M,rowHeight:L,bodyWidth:H,estimatedRowHeight:K,headerWidth:Y,height:I,width:T,getRowHeight:D,onScroll:B}=e,z=Re(K),U=z?D$:R$,V=s(c);return Z("div",{role:"table",class:[o.e("table"),e.class],style:M},[Z(U,{ref:a,data:E,useIsScrolling:R,itemKey:v,columnCache:0,columnWidth:z?w:H,totalColumn:1,totalRow:E.length,rowCache:y,rowHeight:z?D:L,width:T,height:s(r),class:o.e("body"),role:"rowgroup",scrollbarStartGap:P,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(iee,{ref:u,class:o.e("header-wrapper"),columns:S,headerData:E,headerHeight:e.headerHeight,fixedHeaderData:_,rowWidth:Y,rowHeight:L,width:T,height:Math.min(V+s(l),I)},{dynamic:t.header,fixed:t.row})])}}});function yee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const wee=(e,{slots:t})=>{const{mainTableRef:n,...o}=e;return Z(jm,rt({ref:n},o),yee(t)?t:{default:()=>[t]})};function Cee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const See=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...o}=e;return Z(jm,rt({ref:n},o),Cee(t)?t:{default:()=>[t]})};function kee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Eee=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...o}=e;return Z(jm,rt({ref:n},o),kee(t)?t:{default:()=>[t]})};function $ee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const _ee=(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:v,rowProps:m,rowClass:p,rowKey:h,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[h],_=a[E]||0,R=Boolean(l),N=d<0,O=[b.e("row"),y,b.is("expanded",R&&r.includes(E)),b.is("fixed",!_&&N),b.is("customized",Boolean(t.row)),{[b.e(`row-depth-${_}`)]:R&&d>=0}],P=u?C:void 0,M={...S,columns:n,columnsStyles:o,class:O,depth:_,expandColumnKey:l,estimatedRowHeight:N?void 0:i,isScrolling:v,rowIndex:d,rowData:c,rowKey:E,rowEventHandlers:g,style:f};return Z(fee,rt(M,{onRowExpand:w,onMouseenter:K=>{P==null||P({hovered:!0,rowKey:E,event:K,rowData:c,rowIndex:d})},onMouseleave:K=>{P==null||P({hovered:!1,rowKey:E,event:K,rowData:c,rowIndex:d})},rowkey:E}),$ee(t)?t:{default:()=>[t]})},Ym=({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:v,expandColumnKey:m,indentSize:p,iconSize:h,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(v,{cellData:E,columns:e,column:t,columnIndex:n,rowIndex:i,rowData:r}),R={class:d.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:E,isScrolling:l,rowData:r,rowIndex:i},N=M_(w),O=N?N(R):ee(b,"default",R,()=>[Z(tee,R,null)]),P=[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(mee,rt(a,{class:[d.e("expand-icon"),d.is("expanded",L)],size:h,expanded:L,ariaLabel:f(L?"el.table.collapseRowLabel":"el.table.expandRowLabel"),style:K,expandable:!0}),null):H=Z("div",{style:[K,`width: ${h}px; height: ${h}px;`].join(" ")},null)),Z("div",rt({class:P,style:C},_,{role:"cell"}),[H,O])};Ym.inheritAttrs=!1;function Tee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Oee=({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(lee,d,Tee(i)?i:{default:()=>[i]})},V_=(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")},v=M_(u),m=v?v(f):ee(t,"default",f,()=>[Z(nee,f,null)]),{sortBy:p,sortState:h,headerCellProps:g}=e;let b,C,w;if(h){const E=h[n.key];b=Boolean(Bm[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(vee,{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 H_=(e,{slots:t})=>{const n=ee(t,"default",{},()=>[Z(Jh,null,null)]);return Z("div",{class:e.class,style:e.style},[n])};H_.displayName="ElTableV2Empty";const W_=(e,{slots:t})=>{var n;return Z("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};W_.displayName="ElTableV2Overlay";function qi(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Ree="ElTableV2",xee=re({name:Ree,props:F_,setup(e,{slots:t,expose:n}){const o=de("table-v2"),{t:a}=yt(),{columnsStyles:l,fixedColumnsOnLeft:r,fixedColumnsOnRight:i,mainColumns:u,mainTableHeight:c,fixedTableHeight:d,leftTableWidth:f,rightTableWidth:v,data:m,depthMap:p,expandedRowKeys:h,hasFixedColumns:g,mainTableRef:b,leftTableRef:C,rightTableRef:w,isDynamic:y,isResetting:S,isScrolling:E,bodyWidth:_,emptyStyle:R,rootStyle:N,footerHeight:O,showEmpty:P,scrollTo:M,scrollToLeft:L,scrollToTop:H,scrollToRow:K,getRowHeight:Y,onColumnSorted:I,onRowHeightChange:T,onRowHovered:D,onRowExpanded:B,onRowsRendered:z,onScroll:U,onVerticalScroll:V}=QQ(e);return n({scrollTo:M,scrollToLeft:L,scrollToTop:H,scrollToRow:K}),St(Fm,{ns:o,isResetting:S,isScrolling:E}),()=>{const{cache:G,cellProps:X,estimatedRowHeight:le,expandColumnKey:se,fixedData:ae,headerHeight:ve,headerClass:oe,headerProps:j,headerCellProps:ie,sortBy:Se,sortState:xe,rowHeight:De,rowClass:ze,rowEventHandlers:Ze,rowKey:nt,rowProps:Et,scrollbarAlwaysOn:Ue,indentSize:Pe,iconSize:Ae,useIsScrolling:Ge,vScrollbarSize:ot,width:pt}=e,wt=s(m),Ce={cache:G,class:o.e("main"),columns:s(u),data:wt,fixedData:ae,estimatedRowHeight:le,bodyWidth:s(_),headerHeight:ve,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:wt,fixedData:ae,estimatedRowHeight:le,leftTableRef:C,rowHeight:De,bodyWidth:Ve,headerWidth:Ve,headerHeight:ve,height:We,rowKey:nt,scrollbarAlwaysOn:Ue,scrollbarStartGap:2,scrollbarEndGap:ot,useIsScrolling:Ge,width:Ve,getRowHeight:Y,onScroll:V},Ke=s(v),ft={cache:G,class:o.e("right"),columns:s(i),data:wt,fixedData:ae,estimatedRowHeight:le,rightTableRef:w,rowHeight:De,bodyWidth:Ke,headerWidth:Ke,headerHeight:ve,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(h),estimatedRowHeight:le,hasFixedColumns:s(g),rowProps:Et,rowClass:ze,rowKey:nt,rowEventHandlers:Ze,onRowHovered:D,onRowExpanded:B,onRowHeightChange:T},pe={cellProps:X,expandColumnKey:se,indentSize:Pe,iconSize:Ae,rowKey:nt,expandedRowKeys:s(h),ns:o,t:a},Te={ns:o,headerClass:oe,headerProps:j,columnsStyles:it},ce={ns:o,t:a,sortBy:Se,sortState:xe,headerCellProps:ie,onColumnSorted:I},Me={row:an=>Z(_ee,rt(an,mt),{row:t.row,cell:Cn=>{let me;return t.cell?Z(Ym,rt(Cn,pe,{style:it[Cn.column.key]}),qi(me=t.cell(Cn))?me:{default:()=>[me]}):Z(Ym,rt(Cn,pe,{style:it[Cn.column.key]}),null)}}),header:an=>Z(Oee,rt(an,Te),{header:t.header,cell:Cn=>{let me;return t["header-cell"]?Z(V_,rt(Cn,ce,{style:it[Cn.column.key]}),qi(me=t["header-cell"](Cn))?me:{default:()=>[me]}):Z(V_,rt(Cn,ce,{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(wee,Ce,qi(Me)?Me:{default:()=>[Me]}),Z(See,Ut,qi(Me)?Me:{default:()=>[Me]}),Z(Eee,ft,qi(Me)?Me:{default:()=>[Me]}),t.footer&&Z(z_,jt,{default:t.footer}),s(P)&&Z(H_,{class:o.e("empty"),style:s(R)},{default:t.empty}),t.overlay&&Z(W_,{class:o.e("overlay")},{default:t.overlay})])}}});var K_=xee;const j_=he({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:q(Function)}}),Iee=re({name:"ElAutoResizer",props:j_,setup(e,{slots:t}){const n=de("auto-resizer"),{height:o,width:a,sizer:l}=JQ(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})])}}}),Y_=Qe(K_),U_=Qe(Iee),Xi=Symbol("tabsRootContextKey"),G_=he({tabs:{type:q(Array),default:()=>dn([])},tabRefs:{type:q(Object),default:()=>dn({})}}),q_="ElTabBar",Mee=re({name:q_,__name:"tab-bar",props:G_,setup(e,{expose:t}){const n=e,o=_e(Xi);o||_n(q_,"<el-tabs><el-tab-bar /></el-tabs>");const a=de("tabs"),l=A(),r=A(),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 h=["top","bottom"].includes(o.props.tabPosition)?"width":"height",g=h==="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(h)}`];const y=window.getComputedStyle(w);return h==="width"&&(p-=Number.parseFloat(y.paddingLeft)+Number.parseFloat(y.paddingRight),m+=Number.parseFloat(y.paddingLeft)),!1}),{[h]:`${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))})};ue(()=>n.tabs,async()=>{await ke(),c(),f()},{immediate:!0});const v=Qt(l,()=>c());return Dt(()=>{d.forEach(m=>m.stop()),d.length=0,v.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 Nee=ye(Mee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const X_=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}}),Z_={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},J_="ElTabNav",Pee=re({name:J_,props:X_,emits:Z_,setup(e,{expose:t,emit:n}){const o=_e(Xi);o||_n(J_,"<el-tabs><tab-nav /></el-tabs>");const a=de("tabs"),l=gR(),r=yR(),i=A(),u=A(),c=A(),d=A({}),f=A(),v=A(!1),m=A(0),p=A(!1),h=A(!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}=Gd(i),{width:E,height:_}=Gd(u,{width:0,height:0},{box:"border-box"}),R=k(()=>b.value?y.value:S.value),N=k(()=>b.value?E.value:_.value),{onWheel:O}=y$({atStartEdge:k(()=>m.value<=0),atEndEdge:k(()=>N.value-m.value<=R.value),layout:k(()=>b.value?"horizontal":"vertical")},B=>{m.value=Xs(m.value+B,0,N.value-R.value)}),P=()=>{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(!v.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?(v.value=v.value||{},v.value.prev=V,v.value.next=V+U<z,z-V<U&&(m.value=z-U)):(v.value=!1,V>0&&(m.value=0))},K=B=>{const z=Ht(B);let U=0;switch(z){case fe.left:case fe.up:U=-1;break;case fe.right:case fe.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=()=>{h.value&&(p.value=!0)},I=()=>p.value=!1,T=(B,z)=>{d.value[z]=B},D=async()=>{await ke();const B=d.value[e.currentName];B==null||B.focus({preventScroll:!0})};return ue(l,B=>{B==="hidden"?h.value=!1:B==="visible"&&setTimeout(()=>h.value=!0,50)}),ue(r,B=>{B?setTimeout(()=>h.value=!0,50):h.value=!1}),Qt(c,()=>{Ma(H)}),ut(()=>setTimeout(()=>L(),0)),Ga(()=>H()),t({scrollToActiveTab:L,removeFocus:I,focusActiveTab:D,tabListRef:u,tabBarRef:f,scheduleRender:()=>cu(g)}),()=>{const B=v.value?[Z("span",{class:[a.e("nav-prev"),a.is("disabled",!v.value.prev)],onClick:P},[Z($e,null,{default:()=>[Z(il,null,null)]})]),Z("span",{class:[a.e("nav-next"),a.is("disabled",!v.value.next)],onClick:M},[Z($e,null,{default:()=>[Z(oo,null,null)]})])]:null,z=e.panes.map((U,V)=>{var G,X,le,se,ae;const ve=U.uid,oe=U.props.disabled,j=(X=(G=U.props.name)!=null?G:U.index)!=null?X:`${V}`,ie=!oe&&(U.isClosable||U.props.closable!==!1&&e.editable);U.index=`${V}`;const Se=ie?Z($e,{class:"is-icon-close",onClick:ze=>n("tabRemove",U,ze)},{default:()=>[Z(Yo,null,null)]}):null,xe=((se=(le=U.slots).label)==null?void 0:se.call(le))||U.props.label,De=!oe&&U.active?(ae=e.tabindex)!=null?ae:o.props.tabindex:-1;return Z("div",{ref:ze=>T(ze,j),class:[a.e("item"),a.is(o.props.tabPosition),a.is("active",U.active),a.is("disabled",oe),a.is("closable",ie),a.is("focus",p.value)],id:`tab-${j}`,key:`tab-${ve}`,"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=Ht(ze);ie&&(Ze===fe.delete||Ze===fe.backspace)&&n("tabRemove",U,ze)}},[xe,Se])});return g.value,Z("div",{ref:c,class:[a.e("nav-wrap"),a.is("scrollable",!!v.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(Nee,{ref:f,tabs:[...e.panes],tabRefs:d.value},null),z]):null])])}}}),Q_=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}}),Um=e=>He(e)||Re(e),eT={[Ye]:e=>Um(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>Um(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>Um(e),tabAdd:()=>!0},Aee=re({name:"ElTabs",props:Q_,emits:eT,setup(e,{emit:t,slots:n,expose:o}){var a;const l=de("tabs"),r=k(()=>["left","right"].includes(e.tabPosition)),{children:i,addChild:u,removeChild:c,ChildrenSorter:d}=Ci(ct(),"ElTabPane"),f=A(),v=A((a=_t(e.modelValue)?e.defaultValue:e.modelValue)!=null?a:"0"),m=async(w,y=!1)=>{var S,E,_,R;if(!(v.value===w||_t(w)))try{let N;if(e.beforeLeave){const O=e.beforeLeave(w,v.value);N=O instanceof Promise?await O:O}else N=!0;if(N!==!1){const O=(S=i.value.find(P=>P.paneName===v.value))==null?void 0:S.isFocusInsidePane();v.value=w,y&&(t(Ye,w),t("tabChange",w)),(_=(E=f.value)==null?void 0:E.removeFocus)==null||_.call(E),O&&((R=f.value)==null||R.focusActiveTab())}}catch(N){}},p=(w,y,S)=>{w.props.disabled||(t("tabClick",w,S),m(y,!0))},h=(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=Ht(w);[fe.enter,fe.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 ue(()=>e.modelValue,w=>m(w)),ue(v,async()=>{var w;await ke(),(w=f.value)==null||w.scrollToActiveTab()}),St(Xi,{props:e,currentName:v,registerPane:u,unregisterPane:c,nav$:f}),o({currentName:v,get tabNavRef(){return Hr(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(F1,null,null)]})]):null,S=()=>Z(Pee,{ref:f,currentName:v.value,editable:e.editable,type:e.type,panes:i.value,stretch:e.stretch,onTabClick:p,onTabRemove:h},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])}}}),tT=he({label:{type:String,default:""},name:{type:[String,Number]},closable:{type:Boolean,default:void 0},disabled:Boolean,lazy:Boolean}),Lee=["id","aria-hidden","aria-labelledby"],nT="ElTabPane",Dee=re({name:nT,__name:"tab-pane",props:tT,setup(e){const t=e,n=ct(),o=mn(),a=_e(Xi);a||_n(nT,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const l=de("tab-pane"),r=A(),i=A(),u=k(()=>{var h;return(h=t.closable)!=null?h:a.props.closable}),c=k(()=>{var h;return a.currentName.value===((h=t.name)!=null?h:i.value)}),d=A(c.value),f=k(()=>{var h;return(h=t.name)!=null?h:i.value}),v=k(()=>!t.lazy||d.value||c.value),m=()=>{var h;return(h=r.value)==null?void 0:h.contains(document.activeElement)};ue(c,h=>{h&&(d.value=!0)});const p=Lt({uid:n.uid,getVnode:()=>n.vnode,slots:o,props:t,paneName:f,active:c,index:i,isClosable:u,isFocusInsidePane:m});return a.registerPane(p),Dt(()=>{a.unregisterPane(p)}),Pg(()=>{var h;o.label&&((h=a.nav$.value)==null||h.scheduleRender())}),(h,g)=>v.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(h.$slots,"default")],10,Lee)),[[xt,c.value]]):te("v-if",!0)}});var oT=ye(Dee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const aT=Qe(Aee,{TabPane:oT}),lT=cn(oT),rT=he({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:na,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),Bee=re({name:"ElText",__name:"text",props:rT,setup(e){const t=e,n=A(),o=wn(),a=de("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,v,m;if(qa().title)return;let h=!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&&(h=!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&&(h=!0)}h?(v=n.value)==null||v.setAttribute("title",g):(m=n.value)==null||m.removeAttribute("title")};return ut(r),Ga(r),(i,u)=>($(),ne(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 Fee=ye(Bee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const Sd=Qe(Fee),sT=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:()=>D1},clearIcon:{type:q([String,Object]),default:()=>ul},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},Gm=(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},iT=e=>`${e}`.padStart(2,"0"),_s=e=>`${iT(e.hours)}:${iT(e.minutes)}`,Vee=(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)},zee=re({name:"ElTimeSelect",__name:"time-select",props:sT,emits:[ht,"blur","focus","clear",Ye],setup(e,{expose:t}){Je.extend(Av);const{Option:n}=gl,o=e,a=de("input"),l=A(),r=on(),{lang:i}=yt(),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}),v=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:Gm(S,v.value||"-1:-1")<=0||Gm(S,m.value||"100:100")>=0})};if(o.start&&o.end&&o.step){let y=c.value,S;for(;y&&d.value&&Gm(y,d.value)<=0;)S=Je(y,"HH:mm").locale(i.value).format(o.format),w(S,y),y=Vee(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)=>($(),ne(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?($(),ne(s($e),{key:0,class:x(s(a).e("prefix-icon"))},{default:Q(()=>[($(),ne(at(b.prefixIcon)))]),_:1},8,["class"])):te("v-if",!0)]),default:Q(()=>[($(!0),F(Be,null,bt(p.value,w=>($(),ne(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 Hee=ye(zee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);const uT=Qe(Hee),cT="timeline",Wee=re({name:"ElTimeline",props:{reverse:Boolean},setup(e,{slots:t}){const n=de("timeline");return St(cT,t),()=>{var o,a;const l=ca((a=(o=t.default)==null?void 0:o.call(t))!=null?a:[]);return Le("ul",{class:[n.b()]},e.reverse?l.reverse():l)}}});var Kee=Wee;const dT=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:zt},hollow:Boolean}),jee=re({name:"ElTimelineItem",__name:"timeline-item",props:dT,setup(e){const t=e,n=de("timeline-item"),o=k(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(a,l)=>($(),F("li",{class:x([s(n).b(),{[s(n).e("center")]:a.center}])},[W("div",{class:x(s(n).e("tail"))},null,2),a.$slots.dot?te("v-if",!0):($(),F("div",{key:0,class:x(o.value),style:Ie({backgroundColor:a.color})},[a.icon?($(),ne(s($e),{key:0,class:x(s(n).e("icon"))},{default:Q(()=>[($(),ne(at(a.icon)))]),_:1},8,["class"])):te("v-if",!0)],6)),a.$slots.dot?($(),F("div",{key:1,class:x(s(n).e("dot"))},[ee(a.$slots,"dot")],2)):te("v-if",!0),W("div",{class:x(s(n).e("wrapper"))},[!a.hideTimestamp&&a.placement==="top"?($(),F("div",{key:0,class:x([s(n).e("timestamp"),s(n).is("top")])},ge(a.timestamp),3)):te("v-if",!0),W("div",{class:x(s(n).e("content"))},[ee(a.$slots,"default")],2),!a.hideTimestamp&&a.placement==="bottom"?($(),F("div",{key:1,class:x([s(n).e("timestamp"),s(n).is("bottom")])},ge(a.timestamp),3)):te("v-if",!0)],2)],2))}});var fT=ye(jee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const pT=Qe(Kee,{TimelineItem:fT}),vT=cn(fT),qm="left-check-change",Xm="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}}),kd=(e,t)=>[e,t].every(Ee)||Ee(e)&&vn(t),hT={[ht]:(e,t,n)=>[e,n].every(Ee)&&["left","right"].includes(t),[Ye]:e=>Ee(e),[qm]:kd,[Xm]:kd},Zm="checked-change",Yee=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}),Uee={[Zm]:kd},Zi=e=>{const t={label:"label",key:"key",disabled:"disabled"};return k(()=>({...t,...e.props}))},Gee=(e,t,n)=>{const o=Zi(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:v,hasChecked:m}=e.format;return v&&m?d>0?m.replace(/\${checked}/g,d.toString()).replace(/\${total}/g,f.toString()):v.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 ue(()=>t.checked,(d,f)=>{if(u(),t.checkChangeByUser){const v=d.concat(f).filter(m=>!d.includes(m)||!f.includes(m));n(Zm,d,v)}else n(Zm,d),t.checkChangeByUser=!0}),ue(l,()=>{u()}),ue(()=>e.data,()=>{const d=[],f=a.value.map(v=>v[o.value.key]);t.checked.forEach(v=>{f.includes(v)&&d.push(v)}),t.checkChangeByUser=!1,t.checked=d}),ue(()=>e.defaultChecked,(d,f)=>{if(f&&d.length===f.length&&d.every(p=>f.includes(p)))return;const v=[],m=l.value.map(p=>p[o.value.key]);d.forEach(p=>{m.includes(p)&&v.push(p)}),t.checkChangeByUser=!1,t.checked=v},{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(qm,a,l)},onTargetCheckedChange:(a,l)=>{e.rightChecked=a,l&&t(Xm,a,l)}}),Xee=e=>{const t=Zi(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}},Zee=(e,t,n)=>{const o=Zi(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)}}},Jee=re({name:"ElTransferPanel",__name:"transfer-panel",props:Yee,emits:Uee,setup(e,{expose:t,emit:n}){const o=e,a=n,l=mn(),r=({option:y})=>y,{t:i}=yt(),u=de("transfer"),c=Lt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),d=Zi(o),{filteredData:f,checkedSummary:v,isIndeterminate:m,handleAllCheckedChange:p}=Gee(o,c,a),h=k(()=>!vo(c.query)&&vo(f.value)),g=k(()=>!vo(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(Qo),{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(()=>[Ct(ge(y.title)+" ",1),W("span",null,ge(s(v)),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?($(),ne(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(LV),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):te("v-if",!0),tt(Z(s(Jc),{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,bt(s(f),E=>($(),ne(s(Qo),{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,!h.value&&!s(vo)(y.data)]]),tt(W("div",{class:x(s(u).be("panel","empty"))},[ee(y.$slots,"empty",{},()=>[Ct(ge(h.value?s(i)("el.transfer.noMatch"):s(i)("el.transfer.noData")),1)])],2),[[xt,h.value||s(vo)(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 mT=ye(Jee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const Qee={key:0},ete={key:0},tte=re({name:"ElTransfer",__name:"transfer",props:Cr,emits:hT,setup(e,{expose:t,emit:n}){const o=e,a=n,l=mn(),{t:r}=yt(),i=de("transfer"),{formItem:u}=An(),c=Lt({leftChecked:[],rightChecked:[]}),d=Zi(o),{sourceData:f,targetData:v}=Xee(o),{onSourceCheckedChange:m,onTargetCheckedChange:p}=qee(c,a),{addToLeft:h,addToRight:g}=Zee(o,c,a),b=A(),C=A(),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"));ue(()=>o.modelValue,()=>{var N;o.validateEvent&&((N=u==null?void 0:u.validate)==null||N.call(u,"change").catch(O=>void 0))});const R=k(()=>N=>{var O;if(o.renderContent)return o.renderContent(Le,N);const P=(((O=l.default)==null?void 0:O.call(l,{option:N}))||[]).filter(M=>M.type!==Ua);return P.length?P: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(mT,{ref_key:"leftPanel",ref:b,data:s(f),"option-render":R.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(vo)(c.rightChecked),onClick:s(h)},{default:Q(()=>[Z(s($e),null,{default:Q(()=>[Z(s(il))]),_:1}),s(_t)(N.buttonTexts[0])?te("v-if",!0):($(),F("span",Qee,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(vo)(c.leftChecked),onClick:s(g)},{default:Q(()=>[s(_t)(N.buttonTexts[1])?te("v-if",!0):($(),F("span",ete,ge(N.buttonTexts[1]),1)),Z(s($e),null,{default:Q(()=>[Z(s(oo))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),Z(mT,{ref_key:"rightPanel",ref:C,data:s(v),"option-render":R.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 nte=ye(tte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const gT=Qe(nte),Ts="$treeNodeId",bT=function(e,t){!t||t[Ts]||Object.defineProperty(t,Ts,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},Jm=(e,t)=>t==null?void 0:t[e||Ts],Qm=(e,t,n)=>{const o=e.value.currentNode;n();const a=e.value.currentNode;o!==a&&t("current-change",a?a.data:null,a)},yT=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}},Ji=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}=yT(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||Ji(l)},Ed=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}},eg=function(e,t){e.forEach(n=>{n.canFocus=t,eg(n.childNodes,t)})};let ote=0;class au{constructor(t){this.isLeafByUser=void 0,this.isLeaf=void 0,this.isEffectivelyChecked=!1,this.id=ote++,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)Dn(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=Ed(this,"isLeaf");Vt(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(),Ee(this.data)||bT(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){Ee(t)||bT(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Ee(this.data)?n=this.data:n=Ed(this,"children")||[];for(let o=0,a=n.length;o<a;o++)this.insertChild({data:n[o]})}get label(){return Ed(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return Ed(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 au)){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=Lt(new au(t)),t instanceof au&&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(),eg(this.childNodes,!0)};this.shouldLoadData()?this.loadData(a=>{Ee(a)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||Ji(this),o())}):o()}doCreateChildren(t,n={}){t.forEach(o=>{this.insertChild(Object.assign({data:o},n),void 0,!0)})}collapse(){this.expanded=!1,eg(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,v=i.length;f<v;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}=yT(i);c||(this.checked=c,this.indeterminate=u),this.isEffectivelyChecked=this.childNodes.length?d:this.disabled||this.checked}};if(this.shouldLoadData()){this.loadData(()=>{r(),Ji(this)},{checked:t!==!1});return}else r()}const l=this.parent;!l||l.level===0||o||Ji(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||Ji(this)}}var tg=au;class ate{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)Dn(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new tg({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 tg)return t;const n=Rt(t)?Jm(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)Dn(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 $d="RootTree",ng="NodeInstance",og="TreeNodeMap",lte=re({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=de("tree"),n=_e(ng),o=_e($d);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(Sd,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[a.label])])}}});var rte=ye(lte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function wT(e){const t=_e(og,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),Dt(()=>{t&&t.children.delete(n),n=null}),St(og,n),{broadcastExpanded:o=>{if(!!e.accordion)for(const a of n.children)a.treeNodeExpand(o)}}}const CT=Symbol("dragEvents");function ste({props:e,ctx:t,el$:n,dropIndicator$:o,store:a}){const l=de("tree"),r=A({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return St(CT,{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(v){}r.value.draggingNode=f,t.emit("node-drag-start",f.node,d)}},treeNodeDragOver:({event:d,treeNode:f})=>{if(!d.dataTransfer)return;const v=f,m=r.value.dropNode;m&&m.node.id!==v.node.id&&no(m.$el,l.is("drop-inner"));const p=r.value.draggingNode;if(!p||!v)return;let h=!0,g=!0,b=!0,C=!0;lt(e.allowDrop)&&(h=e.allowDrop(p.node,v.node,"prev"),C=g=e.allowDrop(p.node,v.node,"inner"),b=e.allowDrop(p.node,v.node,"next")),d.dataTransfer.dropEffect=g||h||b?"move":"none",(h||g||b)&&(m==null?void 0:m.node.id)!==v.node.id&&(m&&t.emit("node-drag-leave",p.node,m.node,d),t.emit("node-drag-enter",p.node,v.node,d)),h||g||b?r.value.dropNode=v:r.value.dropNode=null,v.node.nextSibling===p.node&&(b=!1),v.node.previousSibling===p.node&&(h=!1),v.node.contains(p.node,!1)&&(g=!1),(p.node===v.node||p.node.contains(v.node))&&(h=!1,g=!1,b=!1);const w=v.$el,y=w.querySelector(`.${l.be("node","content")}`).getBoundingClientRect(),S=n.value.getBoundingClientRect(),E=n.value.scrollTop;let _;const R=h?g?.25:b?.45:1:Number.NEGATIVE_INFINITY,N=b?g?.75:h?.55:0:Number.POSITIVE_INFINITY;let O=-9999;const P=d.clientY-y.top;P<y.height*R?_="before":P>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"?jo(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,v.node,d)},treeNodeDragEnd:d=>{var f,v;const{draggingNode:m,dropType:p,dropNode:h}=r.value;if(d.preventDefault(),d.dataTransfer&&(d.dataTransfer.dropEffect="move"),(m==null?void 0:m.node.data)&&h){const g={data:m.node.data};p!=="none"&&m.node.remove(),p==="before"?(f=h.node.parent)==null||f.insertBefore(g,h.node):p==="after"?(v=h.node.parent)==null||v.insertAfter(g,h.node):p==="inner"&&h.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(h.$el,l.is("drop-inner")),t.emit("node-drag-end",m.node,h.node,p,d),p!=="none"&&t.emit("node-drop",m.node,h.node,p,d)}m&&!h&&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 ite=re({name:"ElTreeNode",components:{ElCollapseTransition:Ai,ElCheckbox:Qo,NodeContent:rte,ElIcon:$e,Loading:Aa},props:{node:{type:tg,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const n=de("tree"),{broadcastExpanded:o}=wT(e),a=_e($d),l=A(!1),r=A(!1),i=A(),u=A(),c=A(),d=_e(CT),f=ct();St(ng,f),e.node.expanded&&(l.value=!0,r.value=!0);const v=a.props.props.children||"children";ue(()=>{var N;const O=(N=e.node.data)==null?void 0:N[v];return O&&[...O]},()=>{e.node.updateChildren()}),ue(()=>e.node.indeterminate,N=>{h(e.node.checked,N)}),ue(()=>e.node.checked,N=>{h(N,e.node.indeterminate)}),ue(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),ue(()=>e.node.expanded,N=>{ke(()=>l.value=N),N&&(r.value=!0)});const m=N=>Jm(a.props.nodeKey,N.data),p=N=>{const O=e.props.class;if(!O)return{};let P;if(lt(O)){const{data:M}=N;P=O(M,N)}else P=O;return He(P)?{[P]:!0}:P},h=(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=>{Qm(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,P=e.node.childNodes;!O&&P.length&&(N=P.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:h,handleClick:g,handleContextMenu:b,handleExpandIconClick:C,handleCheckChange:w,handleChildNodeExpand:(N,O,P)=>{o(O),a.ctx.emit("node-expand",N,O,P)},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:L1}}}),ute=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],cte=["aria-expanded"];function dte(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((...v)=>e.handleClick&&e.handleClick(...v),["stop"])),onContextmenu:t[3]||(t[3]=(...v)=>e.handleContextMenu&&e.handleContextMenu(...v)),onDragstart:t[4]||(t[4]=je((...v)=>e.handleDragStart&&e.handleDragStart(...v),["stop"])),onDragover:t[5]||(t[5]=je((...v)=>e.handleDragOver&&e.handleDragOver(...v),["stop"])),onDragend:t[6]||(t[6]=je((...v)=>e.handleDragEnd&&e.handleDragEnd(...v),["stop"])),onDrop:t[7]||(t[7]=je((...v)=>e.handleDrop&&e.handleDrop(...v),["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?($(),ne(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(()=>[($(),ne(at(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):te("v-if",!0),e.showCheckbox?($(),ne(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?($(),ne(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,bt(e.node.childNodes,v=>($(),ne(d,{key:e.getNodeKey(v),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:v,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,cte)),[[xt,e.expanded]]):te("v-if",!0)]),_:1})],42,ute)),[[xt,e.node.visible]])}var fte=ye(ite,[["render",dte],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function pte({el$:e},t){const n=de("tree");ut(()=>{l()}),Ga(()=>{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=Ht(r),c=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),d=c.indexOf(i);let f;if([fe.up,fe.down].includes(u)){if(r.preventDefault(),u===fe.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()}[fe.left,fe.right].includes(u)&&(r.preventDefault(),i.click());const v=i.querySelector('[type="checkbox"]');[fe.enter,fe.numpadEnter,fe.space].includes(u)&&v&&(r.preventDefault(),v.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 ag=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:zt}}),ST={"check-change":(e,t,n)=>e&&Vt(t)&&Vt(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},vte=re({name:"ElTree",components:{ElTreeNode:fte},props:ag,emits:ST,setup(e,t){const{t:n}=yt(),o=de("tree"),a=A(new ate({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=A(a.value.root),r=A(null),i=A(null),u=A(null),{broadcastExpanded:c}=wT(e),{dragState:d}=ste({props:e,ctx:t,el$:i,dropIndicator$:u,store:a});pte({el$:i},a);const f=ct(),v=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))&&!v.value});ue(()=>e.currentNodeKey,B=>{a.value.setCurrentNodeKey(B!=null?B:null)}),ue(()=>e.defaultCheckedKeys,(B,z)=>{sn(B,z)||a.value.setDefaultCheckedKey(B!=null?B:[])}),ue(()=>e.defaultExpandedKeys,B=>{a.value.setDefaultExpandedKeys(B!=null?B:[])}),ue(()=>e.data,B=>{a.value.setData(B)},{deep:!0}),ue(()=>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)},h=B=>Jm(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)},R=(B,z,U)=>{a.value.setChecked(B,z,U)},N=()=>a.value.getHalfCheckedNodes(),O=()=>a.value.getHalfCheckedKeys(),P=(B,z=!0)=>{g("setCurrentNode"),Qm(a,t.emit,()=>{c(B),a.value.setUserCurrentNode(B,z)})},M=(B=null,z=!0)=>{g("setCurrentKey"),Qm(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)},T=(B,z,U)=>{c(z),t.emit("node-expand",B,z,U)},D=(B,z)=>{g("updateKeyChild"),a.value.updateChildren(B,z)};return St($d,{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:h,getNodePath:b,getCheckedNodes:C,getCheckedKeys:w,getCurrentNode:y,getCurrentKey:S,setCheckedNodes:E,setCheckedKeys:_,setChecked:R,getHalfCheckedNodes:N,getHalfCheckedKeys:O,setCurrentNode:P,setCurrentKey:M,t:n,getNode:L,remove:H,append:K,insertBefore:Y,insertAfter:I,handleNodeExpand:T,updateKeyChildren:D}}});function hte(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,bt(e.root.childNodes,i=>($(),ne(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 mte=ye(vte,[["render",hte],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);const _d=Qe(mte),gte=(e,{attrs:t,emit:n},{select:o,tree:a,key:l})=>{const r=de("tree-select");ue(()=>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 v=(d=a.value.el$)==null?void 0:d.querySelector(`[data-key="${c.at(-1).key}"]`);v==null||v.focus({preventScroll:!0});return}};return ut(()=>{Mt(()=>{var c;return(c=o.value)==null?void 0:c.$el},"keydown",async c=>{const d=Ht(c),{dropdownMenuVisible:f}=o.value;[fe.down,fe.up].includes(d)&&f&&(await ke(),setTimeout(()=>{var v,m,p;if(fe.up===d){const h=a.value.store.root.childNodes;i(h);return}(p=(m=(v=o.value.optionsArray[o.value.states.hoveringIndex].$el)==null?void 0:v.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)}}},bte=re({extends:Ni,setup(e,t){const n=Ni.setup(e,t);delete n.selectOptionClick;const o=ct().proxy;return ke(()=>{n.select.states.cachedOptions.get(o.value)||n.select.onOptionCreate(o)}),ue(()=>t.attrs.visible,a=>{ke(()=>{n.states.visible=a})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});var yte=bte;function lg(e){return e||e===0}function rg(e){return Ee(e)&&e.length}function Os(e){return Ee(e)?e:lg(e)?[e]:[]}function Td(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(rg(i)){const u=Td(i,t,n,o,r);if(u)return u}}}}function Od(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);rg(r)&&Od(r,t,n,l)}}const wte=(e,{attrs:t,slots:n,emit:o},{select:a,tree:l,key:r})=>{ue([()=>e.modelValue,l],()=>{e.showCheckbox&&ke(()=>{const v=l.value;v&&!sn(v.getCheckedKeys(),Os(e.modelValue))&&v.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=(v,m)=>{var p;const h=i.value[v];return lt(h)?h(m,(p=l.value)==null?void 0:p.getNode(u("value",m))):m[h]},c=Os(e.modelValue).map(v=>Td(e.data||[],m=>u("value",m)===v,m=>u("children",m),(m,p,h,g)=>g&&u("value",g))).filter(v=>lg(v)),d=k(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const v=[];return Od(e.data.concat(e.cacheData),m=>{const p=u("value",m);v.push({value:p,currentLabel:u("label",m),isDisabled:u("disabled",m)})},m=>u("children",m)),v}),f=()=>{var v;return(v=l.value)==null?void 0:v.getCheckedKeys().filter(m=>{var p;const h=(p=l.value)==null?void 0:p.getNode(m);return!vn(h)&&vo(h.childNodes)})};return{...xa(Mn(e),Object.keys(_d.props)),...t,nodeKey:r,expandOnClickNode:k(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:k(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(v,{node:m,data:p,store:h})=>v(yte,{value:u("value",p),label:u("label",p),disabled:u("disabled",p),visible:m.visible},e.renderContent?()=>e.renderContent(v,{node:m,data:p,store:h}):n.default?()=>n.default({node:m,data:p,store:h}):void 0),filterNodeMethod:(v,m,p)=>e.filterNodeMethod?e.filterNodeMethod(v,m,p):v?new RegExp(Cp(v),"i").test(u("label",m)||""):!0,onNodeClick:(v,m,p)=>{var h,g,b;if((h=t.onNodeClick)==null||h.call(t,v,m,p),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||m.isLeaf)){if(!u("disabled",v)){const C=(g=a.value)==null?void 0:g.states.options.get(u("value",v));(b=a.value)==null||b.handleOptionSelect(C)}}else e.expandOnClickNode&&p.proxy.handleExpandIconClick()},onCheck:(v,m)=>{var p;if(!e.showCheckbox)return;const h=u("value",v),g={};Od([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(h)?h:void 0);else if(e.multiple){const y=f();o(Ye,C.concat(y))}else{const y=Td([v],_=>!rg(u("children",_))&&!u("disabled",_),_=>u("children",_)),S=y?u("value",y):void 0,E=lg(e.modelValue)&&!!Td([v],_=>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,v,{checkedKeys:l.value.getCheckedKeys(),checkedNodes:l.value.getCheckedNodes(),halfCheckedKeys:l.value.getHalfCheckedKeys(),halfCheckedNodes:l.value.getHalfCheckedNodes()})}),(p=a.value)==null||p.focus()},onNodeExpand:(v,m,p)=>{var h;(h=t.onNodeExpand)==null||h.call(t,v,m,p),ke(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&m.checked){const g={},b=l.value.getCheckedKeys();Od([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 Cte=re({props:{data:{type:Array,default:()=>[]}},setup(e){const t=_e(fs);return ue(()=>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 Ste=re({name:"ElTreeSelect",inheritAttrs:!1,props:{...sh,...ag,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:o}=t,a=A(),l=A(),r=k(()=>e.nodeKey||e.valueKey||"value"),i=gte(e,t,{select:a,tree:l,key:r}),{cacheOptions:u,...c}=wte(e,t,{select:a,tree:l,key:r}),d=Lt({});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,Lt({...i,ref:f=>a.value=f}),{...n,default:()=>[Le(Cte,{data:u.value}),Le(_d,Lt({...c,ref:f=>l.value=f}))]})}});var kte=ye(Ste,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);const kT=Qe(kte),sg=Symbol(),Ete={key:-1,level:-1,data:{}};var Qi=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e))(Qi||{}),ig=(e=>(e.ADD="add",e.DELETE="delete",e))(ig||{});const ET={type:Number,default:26},$te=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:ET,icon:{type:zt},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}),_te=he({node:{type:q(Object),default:()=>dn(Ete)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize:ET}),Tte=he({node:{type:q(Object),required:!0}}),$T="node-click",_T="node-drop",TT="node-expand",OT="node-collapse",RT="current-change",xT="check",IT="check-change",MT="node-contextmenu",Ote={[$T]:(e,t,n)=>e&&t&&n,[_T]:(e,t,n)=>e&&t&&n,[TT]:(e,t)=>e&&t,[OT]:(e,t)=>e&&t,[RT]:(e,t)=>e&&t,[xT]:(e,t)=>e&&t,[IT]:(e,t)=>e&&Vt(t),[MT]:(e,t,n)=>e&&t&&n},Rte={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&Vt(t)};function xte(e,t){const n=A(new Set),o=A(new Set),{emit:a}=ct();ue([()=>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 R=w.get(_);!R||R.forEach(N=>{const O=N.children;let P=!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||(P=!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=P})}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,R=w.children;!e.checkStrictly&&S&&(R==null?void 0:R.length)&&(y=R.some(O=>!O.isEffectivelyChecked));const N=(O,P)=>{_[P?ig.ADD:ig.DELETE](O.key);const M=O.children;!e.checkStrictly&&M&&M.forEach(L=>{(!L.disabled||L.children)&&N(L,P)})};N(w,y),E&&l(),S&&c(w,y)},c=(w,y)=>{const{checkedNodes:S,checkedKeys:E}=p(),{halfCheckedNodes:_,halfCheckedKeys:R}=h();a(xT,w.data,{checkedKeys:E,checkedNodes:S,halfCheckedKeys:R,halfCheckedNodes:_}),a(IT,w.data,y)};function d(w=!1){return p(w).checkedKeys}function f(w=!1){return p(w).checkedNodes}function v(){return h().halfCheckedKeys}function m(){return h().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 R=E.get(_);R&&(!w||w&&R.isLeaf)&&(S.push(_),y.push(R.data))})}return{checkedKeys:S,checkedNodes:y}}function h(){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:v,getHalfCheckedNodes:m,setChecked:b,setCheckedKeys:g}}function Ite(e,t){const n=A(new Set([])),o=A(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,v=[],m=((u=t.value)==null?void 0:u.treeNodes)||[],p=e.filterMethod;f.clear();function h(g){g.forEach(b=>{v.push(b),p!=null&&p(i,b.data,b)?v.forEach(w=>{c.add(w.key),w.expanded=!0}):(b.expanded=!1,b.isLeaf&&f.add(b.key));const C=b.children;if(C&&h(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)}}v.pop()})}return h(m),c}function r(i){return o.value.has(i.key)}return{hiddenExpandIconKeySet:o,hiddenNodeKeySet:n,doFilter:l,isForceHiddenExpandIcon:r}}function Mte(e,t){const n=A(new Set),o=A(),a=Zt(),l=A(),{isIndeterminate:r,isChecked:i,toggleCheckbox:u,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:v,setChecked:m,setCheckedKeys:p}=xte(e,a),{doFilter:h,hiddenNodeKeySet:g,isForceHiddenExpandIcon:b}=Ite(e,a),C=k(()=>{var j;return((j=e.props)==null?void 0:j.value)||Qi.KEY}),w=k(()=>{var j;return((j=e.props)==null?void 0:j.children)||Qi.CHILDREN}),y=k(()=>{var j;return((j=e.props)==null?void 0:j.disabled)||Qi.DISABLED}),S=k(()=>{var j;return((j=e.props)==null?void 0:j.label)||Qi.LABEL}),E=k(()=>{var j;const ie=n.value,Se=g.value,xe=[],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)&&(xe.push(Ze),Ze.children&&ie.has(Ze.key)))for(let nt=Ze.children.length-1;nt>=0;--nt)ze.push(Ze.children[nt])}return xe}),_=k(()=>E.value.length>0);function R(j){const ie=new Map,Se=new Map;let xe=1;function De(Ze,nt=1,Et=void 0){var Ue;const Pe=[];for(const Ae of Ze){const Ge=P(Ae),ot={level:nt,key:Ge,data:Ae};ot.label=L(Ae),ot.parent=Et;const pt=O(Ae);ot.disabled=M(Ae),ot.isLeaf=!pt||pt.length===0,ot.expanded=n.value.has(Ge),pt&&pt.length&&(ot.children=De(pt,nt+1,ot)),Pe.push(ot),ie.set(Ge,ot),Se.has(nt)||Se.set(nt,[]),(Ue=Se.get(nt))==null||Ue.push(ot)}return nt>xe&&(xe=nt),Pe}const ze=De(j);return{treeNodeMap:ie,levelTreeNodeMap:Se,maxLevel:xe,treeNodes:ze}}function N(j){const ie=h(j);ie&&(n.value=ie)}function O(j){return j[w.value]}function P(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 ie=new Set,Se=a.value.treeNodeMap;n.value.forEach(xe=>{const De=Se.get(xe);n.value.delete(De.key),De.expanded=!1}),j.forEach(xe=>{let De=Se.get(xe);for(;De&&!ie.has(De.key);)ie.add(De.key),De.expanded=!0,De=De.parent}),n.value=ie}function Y(j,ie){t($T,j.data,j,ie),T(j),e.expandOnClickNode&&H(j),e.showCheckbox&&(e.checkOnClickNode||j.isLeaf&&e.checkOnClickLeaf)&&!j.disabled&&u(j,!i(j),!0)}function I(j,ie){t(_T,j.data,j,ie)}function T(j){V(j)||(o.value=j.key,t(RT,j.data,j))}function D(j,ie){u(j,ie)}function B(j){const ie=n.value;if(a.value&&e.accordion){const{treeNodeMap:xe}=a.value;ie.forEach(De=>{const ze=xe.get(De);j&&j.level===(ze==null?void 0:ze.level)&&(ie.delete(De),ze.expanded=!1)})}ie.add(j.key);const Se=ae(j.key);Se&&(Se.expanded=!0,t(TT,Se.data,Se))}function z(j){n.value.delete(j.key);const ie=ae(j.key);ie&&(ie.expanded=!1,t(OT,ie.data,ie))}function U(j){return!!j.disabled}function V(j){const ie=o.value;return ie!==void 0&&ie===j.key}function G(){var j,ie;if(!!o.value)return(ie=(j=a.value)==null?void 0:j.treeNodeMap.get(o.value))==null?void 0:ie.data}function X(){return o.value}function le(j){o.value=j}function se(j){a.value=R(j)}function ae(j){var ie;const Se=Rt(j)?P(j):j;return(ie=a.value)==null?void 0:ie.treeNodeMap.get(Se)}function ve(j,ie="auto"){const Se=ae(j);Se&&l.value&&l.value.scrollToItem(E.value.indexOf(Se),ie)}function oe(j){var ie;(ie=l.value)==null||ie.scrollTo(j)}return ue(()=>e.currentNodeKey,j=>{o.value=j},{immediate:!0}),ue(()=>e.defaultExpandedKeys,j=>{n.value=new Set(j)},{immediate:!0}),ue(()=>e.data,j=>{se(j)},{immediate:!0}),{tree:a,flattenTree:E,isNotEmpty:_,listRef:l,getKey:P,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:v,setChecked:m,setCheckedKeys:p,filter:N,setData:se,getNode:ae,expandNode:B,collapseNode:z,setExpandedKeys:K,scrollToNode:ve,scrollTo:oe}}var Nte=re({name:"ElTreeNodeContent",props:Tte,setup(e){const t=_e(sg),n=de("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(Sd,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[o==null?void 0:o.label])}}});const Pte=["aria-expanded","aria-disabled","aria-checked","data-key"],Ate=re({name:"ElTreeNode",__name:"tree-node",props:_te,emits:Rte,setup(e,{emit:t}){const n=e,o=t,a=_e(sg),l=de("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:L1}),u=p=>{const h=a==null?void 0:a.props.props.class;if(!h)return{};let g;if(lt(h)){const{data:b}=p;g=h(b,p)}else g=h;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)},v=p=>{o("check",n.node,p)},m=p=>{var h,g,b,C;(b=(g=(h=a==null?void 0:a.instance)==null?void 0:h.vnode)==null?void 0:g.props)!=null&&b.onNodeContextmenu&&(p.stopPropagation(),p.preventDefault()),a==null||a.ctx.emit(MT,p,(C=n.node)==null?void 0:C.data,n.node)};return(p,h)=>{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:h[1]||(h[1]=je(()=>{},["prevent"])),onDragenter:h[2]||(h[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?($(),ne(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(()=>[($(),ne(at(i.value)))]),_:1},8,["class"])):te("v-if",!0),p.showCheckbox?($(),ne(s(Qo),{key:1,"model-value":p.checked,indeterminate:p.indeterminate,disabled:p.disabled,onChange:v,onClick:h[0]||(h[0]=je(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):te("v-if",!0),Z(s(Nte),{node:{...p.node,expanded:p.expanded}},null,8,["node"])],6)],42,Pte)}}});var Lte=ye(Ate,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const Dte=re({name:"ElTreeV2",__name:"tree",props:$te,emits:Ote,setup(e,{expose:t,emit:n}){const o=e,a=n,l=mn(),r=k(()=>o.itemSize);St(sg,{ctx:{emit:a,slots:l},props:o,instance:ct()}),St(ya,void 0);const{t:i}=yt(),u=de("tree"),{flattenTree:c,isNotEmpty:d,listRef:f,toggleExpand:v,isIndeterminate:m,isChecked:p,isDisabled:h,isCurrent:g,isForceHiddenExpandIcon:b,handleNodeClick:C,handleNodeDrop:w,handleNodeCheck:y,toggleCheckbox:S,getCurrentNode:E,getCurrentKey:_,setCurrentKey:R,getCheckedKeys:N,getCheckedNodes:O,getHalfCheckedKeys:P,getHalfCheckedNodes:M,setChecked:L,setCheckedKeys:H,filter:K,setData:Y,getNode:I,expandNode:T,collapseNode:D,setExpandedKeys:B,scrollToNode:z,scrollTo:U}=Mte(o,a);return t({toggleCheckbox:S,getCurrentNode:E,getCurrentKey:_,setCurrentKey:R,getCheckedKeys:N,getCheckedNodes:O,getHalfCheckedKeys:P,getHalfCheckedNodes:M,setChecked:L,setCheckedKeys:H,filter:K,setData:Y,getNode:I,expandNode:T,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)?($(),ne(s(Sm),{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})=>[($(),ne(Lte,{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(h)(X[le]),current:s(g)(X[le]),"hidden-expand-icon":s(b)(X[le]),onClick:s(C),onToggle:s(v),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 Bte=ye(Dte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const NT=Qe(Bte),ug=Symbol("uploadContextKey"),Fte="ElUpload";class Vte extends Error{constructor(t,n,o,a){super(t),this.name="UploadAjaxError",this.status=n,this.method=o,this.url=a}}function PT(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 Vte(o,n.status,t.method,e)}function zte(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}const Hte=e=>{typeof XMLHttpRequest=="undefined"&&_n(Fte,"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))Ee(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(PT(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(PT(n,e,t));e.onSuccess(zte(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},cg=["text","picture","picture-card"];let Wte=1;const Rd=()=>Date.now()+Wte++,dg=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:cg,default:"text"},httpRequest:{type:q(Function),default:Hte},disabled:{type:Boolean,default:void 0},limit:Number}),AT=he({...dg,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)}}),LT=he({files:{type:q(Array),default:()=>dn([])},disabled:{type:Boolean,default:void 0},handlePreview:{type:q(Function),default:Gt},listType:{type:String,values:cg,default:"text"},crossorigin:{type:q(String)}}),DT={remove:e=>!!e},Kte=["tabindex","aria-disabled","onKeydown"],jte=["src","crossorigin"],Yte=["onClick"],Ute=["title"],Gte=["onClick"],qte=["onClick"],Xte=re({name:"ElUploadList",__name:"upload-list",props:LT,emits:DT,setup(e,{emit:t}){const n=e,o=t,{t:a}=yt(),l=de("upload"),r=de("icon"),i=de("list"),u=on(),c=A(!1),d=k(()=>[l.b("list"),l.bm("list",n.listType),l.is("disabled",u.value)]),f=v=>{o("remove",v)};return(v,m)=>($(),ne(xg,{tag:"ul",class:x(d.value),name:s(i).b()},{default:Q(()=>[($(!0),F(Be,null,bt(v.files,(p,h)=>($(),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(v.$slots,"default",{file:p,index:h},()=>[v.listType==="picture"||p.status!=="uploading"&&v.listType==="picture-card"?($(),F("img",{key:0,class:x(s(l).be("list","item-thumbnail")),src:p.url,crossorigin:v.crossorigin,alt:""},null,10,jte)):te("v-if",!0),p.status==="uploading"||v.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=>v.handlePreview(p),["prevent"])},[Z(s($e),{class:x(s(r).m("document"))},{default:Q(()=>[Z(s(fV))]),_:1},8,["class"]),W("span",{class:x(s(l).be("list","item-file-name")),title:p.name},ge(p.name),11,Ute)],10,Yte),p.status==="uploading"?($(),ne(s(im),{key:0,type:v.listType==="picture-card"?"circle":"line","stroke-width":v.listType==="picture-card"?6:2,percentage:Number(p.percentage),style:Ie(v.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"))},[v.listType==="text"?($(),ne(s($e),{key:0,class:x([s(r).m("upload-success"),s(r).m("circle-check")])},{default:Q(()=>[Z(s(Ep))]),_:1},8,["class"])):["picture-card","picture"].includes(v.listType)?($(),ne(s($e),{key:1,class:x([s(r).m("upload-success"),s(r).m("check")])},{default:Q(()=>[Z(s(si))]),_:1},8,["class"])):te("v-if",!0)],2),s(u)?te("v-if",!0):($(),ne(s($e),{key:2,class:x(s(r).m("close")),onClick:g=>f(p)},{default:Q(()=>[Z(s(Yo))]),_: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)),v.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=>v.handlePreview(p)},[Z(s($e),{class:x(s(r).m("zoom-in"))},{default:Q(()=>[Z(s(z1))]),_:1},8,["class"])],10,Gte),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(cV))]),_:1},8,["class"])],10,qte))],2)):te("v-if",!0)])],42,Kte))),128)),ee(v.$slots,"append")]),_:3},8,["class","name"]))}});var BT=ye(Xte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const FT=he({disabled:{type:Boolean,default:void 0}}),VT={file:e=>Ee(e)},zT="ElUploadDrag",Zte=re({name:zT,__name:"upload-dragger",props:FT,emits:VT,setup(e,{emit:t}){const n=t;_e(ug)||_n(zT,"usage: <el-upload><el-upload-dragger /></el-upload>");const a=de("upload"),l=A(!1),r=on(),i=d=>{if(r.value)return;l.value=!1,d.stopPropagation();const f=Array.from(d.dataTransfer.files),v=d.dataTransfer.items||[];f.forEach((m,p)=>{var h;const g=v[p],b=(h=g==null?void 0:g.webkitGetAsEntry)==null?void 0:h.call(g);b&&(m.isDirectory=b.isDirectory)}),n("file",f)},u=()=>{r.value||(l.value=!0)},c=d=>{d.currentTarget.contains(d.relatedTarget)||(l.value=!1)};return(d,f)=>($(),F("div",{class:x([s(a).b("dragger"),s(a).is("dragover",l.value)]),onDrop:je(i,["prevent"]),onDragover:je(u,["prevent"]),onDragleave:je(c,["prevent"])},[ee(d.$slots,"default")],34))}});var Jte=ye(Zte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const HT=he({...dg,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}}),Qte=["tabindex","aria-disabled","onKeydown"],ene=["name","disabled","multiple","accept"],tne=re({name:"ElUploadContent",inheritAttrs:!1,__name:"upload-content",props:HT,setup(e,{expose:t}){const n=e,o=de("upload"),a=on(),l=Zt({}),r=Zt(),i=h=>{if(h.length===0)return;const{autoUpload:g,limit:b,fileList:C,multiple:w,onStart:y,onExceed:S}=n;if(b&&C.length+h.length>b){S(h,C);return}w||(h=h.slice(0,1));for(const E of h){const _=E;_.uid=Rd(),y(_),g&&u(_)}},u=async h=>{if(r.value.value="",!n.beforeUpload)return d(h);let g,b={};try{const w=n.data,y=n.beforeUpload(h);b=Jd(n.data)?Zs(n.data):n.data,g=await y,Jd(n.data)&&sn(w,b)&&(b=Zs(n.data))}catch(w){g=!1}if(g===!1){n.onRemove(h);return}let C=h;g instanceof Blob&&(g instanceof File?C=g:C=new File([g],h.name,{type:h.type})),d(Object.assign(C,{uid:h.uid}),b)},c=async(h,g)=>lt(h)?h(g):h,d=async(h,g)=>{const{headers:b,data:C,method:w,withCredentials:y,name:S,action:E,onProgress:_,onSuccess:R,onError:N,httpRequest:O}=n;try{g=await c(g!=null?g:C,h)}catch(H){n.onRemove(h);return}const{uid:P}=h,M={headers:b||{},withCredentials:y,file:h,data:g,method:w,filename:S,action:E,onProgress:H=>{_(H,h)},onSuccess:H=>{R(H,h),delete l.value[P]},onError:H=>{N(H,h),delete l.value[P]}},L=O(M);l.value[P]=L,L instanceof Promise&&L.then(M.onSuccess,M.onError)},f=h=>{const g=h.target.files;!g||i(Array.from(g))},v=()=>{a.value||(r.value.value="",r.value.click())},m=()=>{v()};return t({abort:h=>{R1(l.value).filter(h?([b])=>String(h.uid)===b:()=>!0).forEach(([b,C])=>{C instanceof XMLHttpRequest&&C.abort(),delete l.value[b]})},upload:u}),(h,g)=>($(),F("div",{class:x([s(o).b(),s(o).m(h.listType),s(o).is("drag",h.drag),s(o).is("disabled",s(a))]),tabindex:s(a)?void 0:0,"aria-disabled":s(a),role:"button",onClick:v,onKeydown:fn(je(m,["self"]),["enter","space"])},[h.drag?($(),ne(Jte,{key:0,disabled:s(a),onFile:i},{default:Q(()=>[ee(h.$slots,"default")]),_:3},8,["disabled"])):ee(h.$slots,"default",{key:1}),W("input",{ref_key:"inputRef",ref:r,class:x(s(o).e("input")),name:h.name,disabled:s(a),multiple:h.multiple,accept:h.accept,type:"file",onChange:f,onClick:g[0]||(g[0]=je(()=>{},["stop"]))},null,42,ene)],42,Qte))}});var WT=ye(tne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const KT="ElUpload",jT=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},nne=(e,t)=>{const n=Gg(e,"fileList",void 0,{passive:!0}),o=p=>n.value.find(h=>h.uid===p.uid);function a(p){var h;(h=t.value)==null||h.abort(p)}function l(p=["ready","uploading","success","fail"]){n.value=n.value.filter(h=>!p.includes(h.status))}function r(p){n.value=n.value.filter(h=>h.uid!==p.uid)}const i=p=>{ke(()=>e.onChange(p,n.value))},u=(p,h)=>{const g=o(h);!g||(console.error(p),g.status="fail",r(g),e.onError(p,g,n.value),i(g))},c=(p,h)=>{const g=o(h);!g||(e.onProgress(p,g,n.value),g.status="uploading",g.percentage=Math.round(p.percent))},d=(p,h)=>{const g=o(h);!g||(g.status="success",g.response=p,e.onSuccess(p,g,n.value),i(g))},f=p=>{vn(p.uid)&&(p.uid=Rd());const h={name:p.name,percentage:0,status:"ready",size:p.size,raw:p,uid:p.uid};if(e.listType==="picture-card"||e.listType==="picture")try{h.url=URL.createObjectURL(p)}catch(g){g.message,e.onError(g,h,n.value)}n.value=[...n.value,h],i(h)},v=async p=>{const h=p instanceof File?o(p):p;h||_n(KT,"file to be removed not found");const g=b=>{a(b),r(b),e.onRemove(b,n.value),jT(b)};e.beforeRemove?await e.beforeRemove(h,n.value)!==!1&&g(h):g(h)};function m(){n.value.filter(({status:p})=>p==="ready").forEach(({raw:p})=>{var h;return p&&((h=t.value)==null?void 0:h.upload(p))})}return ue(()=>e.listType,p=>{p!=="picture-card"&&p!=="picture"||(n.value=n.value.map(h=>{const{raw:g,url:b}=h;if(!b&&g)try{h.url=URL.createObjectURL(g)}catch(C){e.onError(C,h,n.value)}return h}))}),ue(n,p=>{for(const h of p)h.uid||(h.uid=Rd()),h.status||(h.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:a,clearFiles:l,handleError:u,handleProgress:c,handleStart:f,handleSuccess:d,handleRemove:v,submit:m,revokeFileObjectURL:jT}},one=re({name:"ElUpload",__name:"upload",props:AT,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:v,handleProgress:m,revokeFileObjectURL:p}=nne(n,a),h=k(()=>n.listType==="picture-card"),g=k(()=>({...n,fileList:u.value,onStart:c,onProgress:m,onSuccess:v,onError:d,onRemove:f}));return Dt(()=>{u.value.forEach(p)}),St(ug,{accept:Ft(n,"accept")}),t({abort:l,submit:r,clearFiles:i,handleStart:c,handleRemove:f}),(b,C)=>($(),F("div",null,[h.value&&b.showFileList?($(),ne(BT,{key:0,disabled:s(o),"list-type":b.listType,files:s(u),crossorigin:b.crossorigin,"handle-preview":b.onPreview,onRemove:s(f)},mo({append:Q(()=>[Z(WT,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),!h.value||h.value&&!b.showFileList?($(),ne(WT,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"),!h.value&&b.showFileList?($(),ne(BT,{key:3,disabled:s(o),"list-type":b.listType,files:s(u),crossorigin:b.crossorigin,"handle-preview":b.onPreview,onRemove:s(f)},mo({_: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 ane=ye(one,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const YT=Qe(ane),UT=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 lne(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function rne(e){return Object.keys(e).map(t=>`${lne(t)}: ${e[t]};`).join(" ")}function sne(){return window.devicePixelRatio||1}const ine=(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},une={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function fg(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 cne(){function e(t,n,o,a,l,r,i,u,c){const[d,f,v,m]=fg(a,l,o);let p=0;if(t instanceof HTMLImageElement)d.drawImage(t,0,0,v,m);else{const{color:V,fontSize:G,fontStyle:X,fontWeight:le,fontFamily:se,textAlign:ae,textBaseline:ve}=r,oe=Number(G)*o;d.font=`${X} normal ${le} ${oe}px/${l}px ${se}`,d.fillStyle=V,d.textAlign=ae,d.textBaseline=ve;const j=Ee(t)?t:[t];if(ve!=="top"&&j[0]){const ie=d.measureText(j[0]);d.textBaseline="top";const Se=d.measureText(j[0]);p=ie.actualBoundingBoxAscent-Se.actualBoundingBoxAscent}j==null||j.forEach((ie,Se)=>{const[xe,De]=une[ae];d.fillText(ie!=null?ie:"",v*xe+c*De,Se*(oe+r.fontGap*o))})}const h=Math.PI/180*Number(n),g=Math.max(a,l),[b,C,w]=fg(g,g,o);b.translate(w/2,w/2),b.rotate(h),v>0&&m>0&&b.drawImage(f,-v/2,-m/2);function y(V,G){const X=V*Math.cos(h)-G*Math.sin(h),le=V*Math.sin(h)+G*Math.cos(h);return[X,le]}let S=0,E=0,_=0,R=0;const N=v/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),R=Math.max(R,le)});const M=S+w/2,L=_+w/2,H=E-S,K=R-_,Y=i*o,I=u*o,T=(H+Y)*2,D=K+I,[B,z]=fg(T,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(),T/o,D/o]}return e}const dne=re({name:"ElWatermark",__name:"watermark",props:UT,setup(e){const t={position:"relative"},n=e,o=k(()=>{var P,M;return(M=(P=n.font)==null?void 0:P.fontGap)!=null?M:3}),a=k(()=>{var P,M;return(M=(P=n.font)==null?void 0:P.color)!=null?M:"rgba(0,0,0,.15)"}),l=k(()=>{var P,M;return(M=(P=n.font)==null?void 0:P.fontSize)!=null?M:16}),r=k(()=>{var P,M;return(M=(P=n.font)==null?void 0:P.fontWeight)!=null?M:"normal"}),i=k(()=>{var P,M;return(M=(P=n.font)==null?void 0:P.fontStyle)!=null?M:"normal"}),u=k(()=>{var P,M;return(M=(P=n.font)==null?void 0:P.fontFamily)!=null?M:"sans-serif"}),c=k(()=>{var P,M;return(M=(P=n.font)==null?void 0:P.textAlign)!=null?M:"center"}),d=k(()=>{var P,M;return(M=(P=n.font)==null?void 0:P.textBaseline)!=null?M:"hanging"}),f=k(()=>n.gap[0]),v=k(()=>n.gap[1]),m=k(()=>f.value/2),p=k(()=>v.value/2),h=k(()=>{var P,M;return(M=(P=n.offset)==null?void 0:P[0])!=null?M:m.value}),g=k(()=>{var P,M;return(M=(P=n.offset)==null?void 0:P[1])!=null?M:p.value}),b=()=>{const P={zIndex:n.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let M=h.value-m.value,L=g.value-p.value;return M>0&&(P.left=`${M}px`,P.width=`calc(100% - ${M}px)`,M=0),L>0&&(P.top=`${L}px`,P.height=`calc(100% - ${L}px)`,L=0),P.backgroundPosition=`${M}px ${L}px`,P},C=Zt(null),w=Zt(),y=A(!1),S=()=>{w.value&&(w.value.remove(),w.value=void 0)},E=(P,M)=>{var L;C.value&&w.value&&(y.value=!0,w.value.setAttribute("style",rne({...b(),backgroundImage:`url('${P}')`,backgroundSize:`${Math.floor(M)}px`})),(L=C.value)==null||L.append(w.value),setTimeout(()=>{y.value=!1}))},_=P=>{let M=120,L=64,H=0;const{image:K,content:Y,width:I,height:T,rotate:D}=n;if(!K&&P.measureText){P.font=`${Number(l.value)}px ${u.value}`;const B=Ee(Y)?Y:[Y];let z=0,U=0;B.forEach(G=>{const{width:X,fontBoundingBoxAscent:le,fontBoundingBoxDescent:se,actualBoundingBoxAscent:ae,actualBoundingBoxDescent:ve}=P.measureText(G),oe=_t(le)?ae+ve:le+se;X>z&&(z=Math.ceil(X)),oe>U&&(U=Math.ceil(oe))}),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,T!=null?T:L,H]},R=cne(),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=sne(),[I,T,D]=_(M),B=z=>{const[U,V]=R(z||"",K,Y,I,T,{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,v.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()}),ue(()=>n,()=>{N()},{deep:!0,flush:"post"}),Dt(()=>{S()}),Ds(C,P=>{y.value||P.forEach(M=>{ine(M,w.value)&&(S(),N())})},{attributes:!0,subtree:!0,childList:!0}),(P,M)=>($(),F("div",{ref_key:"containerRef",ref:C,style:Ie([t])},[ee(P.$slots,"default")],4))}});var fne=ye(dne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/watermark/src/watermark.vue"]]);const GT=Qe(fne),pne=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}}),vne=(e,t,n,o,a)=>{const l=A(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}hne(f)||f.scrollIntoView(a.value);const{left:v,top:m,width:p,height:h}=f.getBoundingClientRect();l.value={left:v,top:m,width:p,height:h,radius:0}};ut(()=>{ue([t,e],()=>{i()},{immediate:!0}),window.addEventListener("resize",i)}),Dt(()=>{window.removeEventListener("resize",i)});const u=f=>{var v;return(v=Ee(n.value.offset)?n.value.offset[f]:n.value.offset)!=null?v:6},c=k(()=>{var f;if(!l.value)return l.value;const v=u(0),m=u(1),p=((f=n.value)==null?void 0:f.radius)||2;return{left:l.value.left-v,top:l.value.top-m,width:l.value.width+v*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 v,m,p,h;return window.DOMRect.fromRect({width:((v=c.value)==null?void 0:v.width)||0,height:((m=c.value)==null?void 0:m.height)||0,x:((p=c.value)==null?void 0:p.left)||0,y:((h=c.value)==null?void 0:h.top)||0})}}});return{mergedPosInfo:c,triggerTarget:d}},xd=Symbol("ElTour");function hne(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 mne=(e,t,n,o,a,l,r,i)=>{const u=A(),c=A(),d=A({}),f={x:u,y:c,placement:o,strategy:a,middlewareData:d},v=k(()=>{const b=[CH(s(l)),kH(),SH(),gne()];return s(i)&&s(n)&&b.push(iC({element:s(n)})),b}),m=async()=>{if(!Tt)return;const b=s(e),C=s(t);if(!b||!C)return;const w=await uC(b,C,{placement:s(o),strategy:s(a),middleware:s(v)});Kr(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`:""}}),h=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=yH(b,C,m)),io(()=>{m()})}),Dt(()=>{g&&g()}),{update:m,contentStyle:p,arrowStyle:h}},gne=()=>({name:"overflow",async fn(e){const t=await wH(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),bne={style:{width:"100%",height:"100%"}},yne=["d"],wne=re({name:"ElTourMask",inheritAttrs:!1,__name:"mask",props:pne,setup(e){const t=e,{ns:n}=_e(xd),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}=qd(),i=k(()=>{const d=l.value,f=r.value,v=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} ${v.topRight} v${t.pos.height-p*2} ${v.bottomRight} h${-t.pos.width+p*2} ${v.bottomLeft} v${-t.pos.height+p*2} ${v.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 di(Ft(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",bne,[W("path",{class:x(s(n).e("hollow")),style:Ie(c.value),d:i.value},null,14,yne)]))],16)):te("v-if",!0)}});var Cne=ye(wne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/mask.vue"]]);const qT=["absolute","fixed"],XT=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],Id=he({placement:{type:q(String),values:XT,default:"bottom"},reference:{type:q(Object),default:null},strategy:{type:q(String),values:qT,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),ZT={close:()=>!0},Sne=["data-side"],kne=re({name:"ElTourContent",__name:"content",props:Id,emits:ZT,setup(e,{emit:t}){const n=e,o=t,a=A(n.placement),l=A(n.strategy),r=A(null),i=A(null);ue(()=>n.placement,()=>{a.value=n.placement});const{contentStyle:u,arrowStyle:c}=mne(Ft(n,"reference"),r,i,a,l,Ft(n,"offset"),Ft(n,"zIndex"),Ft(n,"showArrow")),d=k(()=>a.value.split("-")[0]),{ns:f}=_e(xd),v=()=>{o("close")},m=p=>{p.detail.focusReason==="pointer"&&p.preventDefault()};return(p,h)=>($(),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:v,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,Sne))}});var Ene=ye(kne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/content.vue"]]),$ne=re({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){!Ee(d)||d.forEach(f=>{var v;((v=(f==null?void 0:f.type)||{})==null?void 0:v.name)==="ElTourStep"&&(i.push(f),u+=1)})}return r.length&&c(ca((l=r[0])==null?void 0:l.children)),o!==u&&(o=u,n("update-total",u)),i.length?i[e.current]:null}}});const JT=he({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:zt},placement:Id.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:ki.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),QT={[Ye]:e=>Vt(e),["update:current"]:e=>Re(e),close:e=>Re(e),finish:()=>!0,change:e=>Re(e)},_ne=re({name:"ElTour",__name:"tour",props:JT,emits:QT,setup(e,{emit:t}){const n=e,o=t,a=de("tour"),l=A(0),r=A(),i=Gg(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,P;return(P=(O=r.value)==null?void 0:O.contentStyle)!=null?P:n.contentStyle}),v=k(()=>{var O,P;return(P=(O=r.value)==null?void 0:O.mask)!=null?P:n.mask}),m=k(()=>!!v.value&&n.modelValue),p=k(()=>Vt(v.value)?void 0:v.value),h=k(()=>{var O,P;return!!u.value&&((P=(O=r.value)==null?void 0:O.showArrow)!=null?P:n.showArrow)}),g=k(()=>{var O,P;return(P=(O=r.value)==null?void 0:O.scrollIntoViewOptions)!=null?P:n.scrollIntoViewOptions}),b=k(()=>{var O,P;return(P=(O=r.value)==null?void 0:O.type)!=null?P:n.type}),{nextZIndex:C}=Qr(),w=C(),y=k(()=>{var O;return(O=n.zIndex)!=null?O:w}),{mergedPosInfo:S,triggerTarget:E}=vne(u,Ft(n,"modelValue"),Ft(n,"gap"),v,g);ue(()=>n.modelValue,O=>{O||(i.value=0)});const _=()=>{n.closeOnPressEscape&&(o(Ye,!1),o("close",i.value))},R=O=>{l.value=O},N=mn();return St(xd,{currentStep:r,current:i,total:l,showClose:Ft(n,"showClose"),closeIcon:Ft(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,P)=>($(),F(Be,null,[Z(s(rs),{to:O.appendTo},{default:Q(()=>{var M,L;return[W("div",rt({class:c.value},O.$attrs),[Z(Cne,{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?($(),ne(Ene,{key:s(i),reference:s(E),placement:d.value,"show-arrow":h.value,"z-index":y.value,style:Ie(f.value),onClose:_},{default:Q(()=>[Z(s($ne),{current:s(i),onUpdateTotal:R},{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 Tne=ye(_ne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/tour.vue"]]);const eO=he({target:{type:q([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:zt},showArrow:{type:Boolean,default:void 0},placement:Id.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)}}),tO={close:()=>!0},One=["aria-label"],Rne=re({name:"ElTourStep",__name:"step",props:eO,emits:tO,setup(e,{emit:t}){const n=e,o=t,{Close:a}=W1,{t:l}=yt(),{currentStep:r,current:i,total:u,showClose:c,closeIcon:d,mergedType:f,ns:v,slots:m,updateModelValue:p,onClose:h,onFinish:g,onChange:b}=_e(xd);ue(n,O=>{r.value=O},{immediate:!0});const C=k(()=>{var O;return(O=n.showClose)!=null?O:c.value}),w=k(()=>{var O,P;return(P=(O=n.closeIcon)!=null?O:d.value)!=null?P:a}),y=O=>{if(!!O)return Hr(O,["children","onClick"])},S=()=>{var O,P;i.value-=1,(O=n.prevButtonProps)!=null&&O.onClick&&((P=n.prevButtonProps)==null||P.onClick()),b()},E=()=>{var O;i.value>=u.value-1?_():i.value+=1,(O=n.nextButtonProps)!=null&&O.onClick&&n.nextButtonProps.onClick(),b()},_=()=>{R(),g()},R=()=>{p(!1),h(),o("close")},N=O=>{const P=O.target;if(P!=null&&P.isContentEditable)return;switch(Ht(O)){case fe.left:O.preventDefault(),i.value>0&&S();break;case fe.right:O.preventDefault(),E();break}};return ut(()=>{window.addEventListener("keydown",N)}),Dt(()=>{window.removeEventListener("keydown",N)}),(O,P)=>($(),F(Be,null,[C.value?($(),F("button",{key:0,"aria-label":s(l)("el.tour.close"),class:x(s(v).e("closebtn")),type:"button",onClick:R},[Z(s($e),{class:x(s(v).e("close"))},{default:Q(()=>[($(),ne(at(w.value)))]),_:1},8,["class"])],10,One)):te("v-if",!0),W("header",{class:x([s(v).e("header"),{"show-close":s(c)}])},[ee(O.$slots,"header",{},()=>[W("span",{role:"heading",class:x(s(v).e("title"))},ge(O.title),3)])],2),W("div",{class:x(s(v).e("body"))},[ee(O.$slots,"default",{},()=>[W("span",null,ge(O.description),1)])],2),W("footer",{class:x(s(v).e("footer"))},[W("div",{class:x(s(v).b("indicators"))},[s(m).indicators?($(),ne(at(s(m).indicators),{key:0,current:s(i),total:s(u)},null,8,["current","total"])):($(!0),F(Be,{key:1},bt(s(u),(M,L)=>($(),F("span",{key:M,class:x([s(v).b("indicator"),s(v).is("active",L===s(i))])},null,2))),128))],2),W("div",{class:x(s(v).b("buttons"))},[s(i)>0?($(),ne(s(In),rt({key:0,size:"small",type:s(f)},y(O.prevButtonProps),{onClick:S}),{default:Q(()=>{var M,L;return[Ct(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?($(),ne(s(In),rt({key:1,size:"small",type:s(f)==="primary"?"default":"primary"},y(O.nextButtonProps),{onClick:E}),{default:Q(()=>{var M,L;return[Ct(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 nO=ye(Rne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/step.vue"]]);const oO=Qe(Tne,{TourStep:nO}),aO=cn(nO),lO=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}),rO={change:e=>He(e),click:(e,t)=>e instanceof MouseEvent&&(He(t)||_t(t))},sO=Symbol("anchor"),xne=re({name:"ElAnchor",__name:"anchor",props:lO,emits:rO,setup(e,{expose:t,emit:n}){const o=e,a=n,l=mn(),r=A(""),i=A({}),u=A(null),c=A(null),d=A(),f={};let v=!1,m=0;const p=de("anchor"),h=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=Qu(M);if(!L)return;if(w){if(y===M)return;w()}y=M,v=!0;const H=N1(L,d.value),K=Zd(L,H),Y=H.scrollHeight-H.clientHeight,I=Math.min(K-o.offset,Y);w=FF(d.value,m,I,o.duration,()=>{setTimeout(()=>{v=!1,y=""},20)})},E=M=>{M&&(C(M),S(M))},_=(M,L)=>{a("click",M,L),E(L)},R=oz(()=>{d.value&&(m=P1(d.value));const M=N();v||_t(M)||C(M)}),N=()=>{if(!d.value)return;const M=P1(d.value),L=[];for(const H of Object.keys(f)){const K=Qu(H);if(!K)continue;const Y=N1(K,d.value),I=Zd(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=Qu(o.container);!M||li(M)?d.value=window:d.value=M};Mt(d,"scroll",R);const P=()=>{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 ue(r,P),ue(()=>{var M;return(M=l.default)==null?void 0:M.call(l)},P),ut(()=>{O();const M=decodeURIComponent(window.location.hash);Qu(M)?E(M):R()}),ue(()=>o.container,()=>{O()}),St(sO,{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(h.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 Ine=ye(xne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/anchor/src/anchor.vue"]]);const Mne=he({title:String,href:String}),Nne=["href"],Pne=re({name:"ElAnchorLink",__name:"anchor-link",props:Mne,setup(e){const t=e,n=A(null),{ns:o,direction:a,currentAnchor:l,addLink:r,removeLink:i,handleClick:u}=_e(sO),c=k(()=>[o.e("link"),o.is("active",l.value===t.href)]),d=f=>{u(f,t.href)};return ue(()=>t.href,(f,v)=>{ke(()=>{v&&i(v),f&&r({href:f,el:n.value})})}),ut(()=>{const{href:f}=t;f&&r({href:f,el:n.value})}),Dt(()=>{const{href:f}=t;f&&i(f)}),(f,v)=>($(),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",{},()=>[Ct(ge(f.title),1)])],10,Nne),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 iO=ye(Pne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/anchor/src/anchor-link.vue"]]);const uO=Qe(Ine,{AnchorLink:iO}),cO=cn(iO),pg={label:"label",value:"value",disabled:"disabled"},dO=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:()=>pg},block:Boolean,size:Tn,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},id:String,name:String,...Gn(["ariaLabel"])}),fO={[Ye]:e=>He(e)||Re(e)||Vt(e),[ht]:e=>He(e)||Re(e)||Vt(e)},Ane=["id","aria-label","aria-labelledby"],Lne=["name","disabled","checked","onChange"],Dne=re({name:"ElSegmented",__name:"segmented",props:dO,emits:fO,setup(e,{emit:t}){const n=e,o=t,a=de("segmented"),l=Fn(),r=wn(),i=on(),{formItem:u}=An(),{inputId:c,isLabeledByFormItem:d}=Eo(n,{formItemContext:u}),f=A(null),v=pR(),m=Lt({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},h=k(()=>({...pg,...n.props})),g=M=>M,b=M=>Rt(M)?M[h.value.value]:M,C=M=>Rt(M)?M[h.value.label]:M,w=M=>!!(i.value||(Rt(M)?M[h.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){}},R=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)]),P=k(()=>n.name||l.value);return Qt(f,_),ue(v,_),ue(()=>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(R.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,bt(M.options,(H,K)=>($(),F("label",{key:K,class:x(E(H))},[W("input",{class:x(s(a).e("item-input")),type:"radio",name:P.value,disabled:w(H),checked:y(H),onChange:Y=>p(Y,H)},null,42,Lne),W("div",{class:x(s(a).e("item-label"))},[ee(M.$slots,"default",{item:g(H)},()=>[Ct(ge(C(H)),1)])],2)],2))),128))],2)],10,Ane)):te("v-if",!0)}});var Bne=ye(Dne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/segmented/src/segmented.vue"]]);const pO=Qe(Bne),Fne=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value||"").toLowerCase().includes(n)},Vne=(e,t,n)=>{const{selectionEnd:o}=e;if(o===null)return;const a=e.value,l=Pn(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},zne=(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 v=document.querySelector("#input-textarea-caret-position-mirror-div");v!=null&&v.parentNode&&v.parentNode.removeChild(v)}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(v=>{if(c&&v==="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),h=p+Number.parseInt(u.lineHeight);m>h?i.lineHeight=`${m-p}px`:m===h?i.lineHeight=u.lineHeight:i.lineHeight="0"}else i.lineHeight=u.height;else i[v]=u[v]}),Xd()?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},vO=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:()=>Fne,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:Kt.popperClass,popperStyle:Kt.popperStyle,popperOptions:{type:q(Object),default:()=>({})},props:{type:q(Object),default:()=>vg}}),hO={[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},vg={value:"value",label:"label",disabled:"disabled"},Hne=he({options:{type:q(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),Wne={select:e=>He(e.value)},Kne=["id","aria-disabled","aria-selected","onMousemove","onClick"],jne=re({name:"ElMentionDropdown",__name:"mention-dropdown",props:Hne,emits:Wne,setup(e,{expose:t,emit:n}){const o=e,a=n,l=de("mention"),{t:r}=yt(),i=A(-1),u=A(),c=A(),d=A(),f=(y,S)=>[l.be("dropdown","item"),l.is("hovering",i.value===S),l.is("disabled",y.disabled||o.disabled)],v=y=>{y.disabled||o.disabled||a("select",y)},m=y=>{i.value=y},p=k(()=>o.disabled||o.options.every(y=>y.disabled)),h=k(()=>o.options[i.value]),g=()=>{!h.value||a("select",h.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,_,R;const{options:N}=o,O=N.findIndex(M=>M.value===y.value),P=(S=c.value)==null?void 0:S[O];if(P){const M=(_=(E=d.value)==null?void 0:E.querySelector)==null?void 0:_.call(E,`.${l.be("dropdown","wrap")}`);M&&kp(M,P)}(R=u.value)==null||R.handleScroll()};return ue(()=>o.options,()=>{p.value||o.options.length===0?i.value=-1:i.value=0},{immediate:!0}),t({hoveringIndex:i,navigateOptions:b,selectHoverOption:g,hoverOption:h}),(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(Zo),{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,bt(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:R=>m(_),onClick:je(R=>v(E),["stop"])},[ee(y.$slots,"label",{item:E,index:_},()=>{var R;return[W("span",null,ge((R=E.label)!=null?R:E.value),1)]})],42,Kne))),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",{},()=>[Ct(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 Yne=ye(jne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/mention/src/mention-dropdown.vue"]]);const Une=re({name:"ElMention",inheritAttrs:!1,__name:"mention",props:vO,emits:hO,setup(e,{expose:t,emit:n}){const o=e,a=n,l=k(()=>xa(o,Object.keys(is))),r=de("mention"),i=on(),u=Fn(),c=A(),d=A(),f=A(),v=A(!1),m=A(),p=A(),h=k(()=>o.showArrow?o.placement:`${o.placement}-start`),g=k(()=>o.showArrow?["bottom","top"]:["bottom-start","top-start"]),b=k(()=>({...vg,...o.props})),C=I=>{const T={label:I[b.value.label],value:I[b.value.value],disabled:I[b.value.disabled]};return{...I,...T}},w=k(()=>o.options.map(C)),y=k(()=>{const{filterOption:I}=o;return!p.value||!I?w.value:w.value.filter(T=>I(p.value.pattern,T))}),S=k(()=>v.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()},R=I=>{var T,D,B,z;if((T=c.value)!=null&&T.isComposing)return;const U=Ht(I);switch(U){case fe.left:case fe.right:H();break;case fe.up:case fe.down:if(!v.value)return;I.preventDefault(),(D=f.value)==null||D.navigateOptions(U===fe.up?"prev":"next");break;case fe.enter:case fe.numpadEnter:if(!v.value){o.type!=="textarea"&&H();return}I.preventDefault(),(B=f.value)!=null&&B.hoverOption?(z=f.value)==null||z.selectHoverOption():v.value=!1;break;case fe.esc:if(!v.value)return;I.preventDefault(),v.value=!1;break;case fe.backspace:if(o.whole&&p.value){const{splitIndex:V,selectionEnd:G,pattern:X,prefixIndex:le,prefix:se}=p.value,ae=L();if(!ae)return;const ve=ae.value,oe=w.value.find(ie=>ie.value===X);if((lt(o.checkIsWhole)?o.checkIsWhole(X,se):oe)&&V!==-1&&V+1===G){I.preventDefault();const ie=ve.slice(0,le)+ve.slice(V+1);a(Ye,ie),a(Sn,ie),a("whole-remove",X,se);const Se=le;ke(()=>{ae.selectionStart=Se,ae.selectionEnd=Se,Y()})}}}},{wrapperRef:N}=za(c,{disabled:i,afterFocus(){H()},beforeBlur(I){var T;return(T=d.value)==null?void 0:T.isFocusInsideContent(I)},afterBlur(){v.value=!1}}),O=()=>{H()},P=I=>o.options.find(T=>I.value===T[b.value.value]),M=I=>{if(!p.value)return;const T=L();if(!T)return;const D=T.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",P(I),p.value.prefix);const X=p.value.start+V.length+(U?1:0);ke(()=>{T.selectionStart=X,T.selectionEnd=X,T.focus(),Y()})},L=()=>{var I,T;return o.type==="textarea"?(I=c.value)==null?void 0:I.textarea:(T=c.value)==null?void 0:T.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 T=zne(I),D=I.getBoundingClientRect(),B=N.value.getBoundingClientRect();m.value={position:"absolute",width:0,height:`${T.height}px`,left:`${T.left+D.left-B.left}px`,top:`${T.top+D.top-B.top}px`}},Y=()=>{const I=L();if(document.activeElement!==I){v.value=!1;return}const{prefix:T,split:D}=o;if(p.value=Vne(I,T,D),p.value&&p.value.splitIndex===-1){v.value=!0,a("search",p.value.pattern,p.value.prefix);return}v.value=!1};return t({input:c,tooltip:d,dropdownVisible:S}),(I,T)=>($(),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:R,onMousedown:O}),mo({_:2},[bt(I.$slots,(D,B)=>({name:B,fn:Q(z=>[ee(I.$slots,B,Xa(wl(z)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),Z(s(zn),{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:h.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(Yne,{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:T[0]||(T[0]=je(D=>{var B;return(B=c.value)==null?void 0:B.focus()},["stop"]))},mo({_:2},[bt(I.$slots,(D,B)=>({name:B,fn:Q(z=>[ee(I.$slots,B,Xa(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 Gne=ye(Une,[["__file","/home/runner/work/element-plus/element-plus/packages/components/mention/src/mention.vue"]]);const mO=Qe(Gne);function qne(e){const t=A(),{width:n,height:o}=Gd(t),a=k(()=>e.value==="horizontal"?n.value:o.value);return{containerEl:t,containerSize:a}}function hg(e){return Number(e.slice(0,-1))/100}function mg(e){return Number(e.slice(0,-2))}function gg(e){return He(e)&&e.endsWith("%")}function bg(e){return He(e)&&e.endsWith("px")}function Xne(e,t){const n=k(()=>e.value.map(i=>i.size)),o=k(()=>e.value.length),a=A([]);ue([n,o,t],()=>{var i;let u=[],c=0;for(let f=0;f<o.value;f+=1){const v=(i=e.value[f])==null?void 0:i.size;if(gg(v))u[f]=hg(v);else if(bg(v))u[f]=mg(v)/t.value;else if(v||v===0){const m=Number(v);Number.isNaN(m)||(u[f]=m/t.value)}else c+=1,u[f]=void 0}const d=u.reduce((f,v)=>f+(v||0),0);if(d>1||!c){const f=1/d;u=u.map(v=>v===void 0?0:v*f)}else{const f=(1-d)/c;u=u.map(v=>v===void 0?f:v)}a.value=u});const l=i=>i*t.value,r=k(()=>a.value.map(l));return{percentSizes:a,pxSizes:r}}function Zne(e,t,n,o){const a=g=>g*t.value||0;function l(g,b){return gg(g)?a(hg(g)):bg(g)?mg(g):g!=null?g:b}const r=A(0),i=A(null);let u=[],c=Gt;const d=k(()=>e.value.map(g=>[g.min,g.max]));ue(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},v=(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,R=l(d.value[S][0],0),N=l(d.value[_][0],0),O=l(d.value[S][1],t.value||0),P=l(d.value[_][1],t.value||0);let M=b;E[S]+M<R&&(M=R-E[S]),E[_]-M<N&&(M=E[_]-N),E[S]+M>O&&(M=O-E[S]),E[_]-M>P&&(M=E[_]-P),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:v,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,R=p[g],N=_-R;C[y]=R,C[w]=N}e.value.forEach((_,R)=>{_.size=C[R]})}}}const gO=he({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]},lazy:Boolean}),bO={resizeStart:(e,t)=>!0,resize:(e,t)=>!0,resizeEnd:(e,t)=>!0,collapse:(e,t,n)=>!0},yO=Symbol("splitterRootContextKey"),Jne=re({name:"ElSplitter",__name:"splitter",props:gO,emits:bO,setup(e,{emit:t}){const n=de("splitter"),o=t,a=e,l=Ft(a,"layout"),r=Ft(a,"lazy"),{containerEl:i,containerSize:u}=qne(l),{removeChild:c,children:d,addChild:f,ChildrenSorter:v}=Ci(ct(),"ElSplitterPanel");ue(d,()=>{g.value=null,d.value.forEach((O,P)=>{O.setIndex(P)})});const{percentSizes:m,pxSizes:p}=Xne(d,u),{lazyOffset:h,movingIndex:g,onMoveStart:b,onMoving:C,onMoveEnd:w,onCollapse:y}=Zne(d,u,p,r),S=k(()=>({[n.cssVarBlockName("bar-offset")]:r.value?`${h.value}px`:void 0}));return St(yO,Lt({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,P)=>{C(O,P),r.value||o("resize",O,p.value)},onMoveEnd:async O=>{w(),await ke(),o("resizeEnd",O,p.value)},onCollapse:(O,P)=>{y(O,P),o("collapse",O,P,p.value)},registerPanel:f,unregisterPanel:c})),(O,P)=>($(),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(v)),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 Qne=ye(Jne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/splitter/src/splitter.vue"]]);function eoe(e){return e&&Rt(e)?e:{start:!!e,end:!!e}}function wO(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 toe=re({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=de("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=A(null),d=C=>{!o.resizable||(c.value=[C.pageX,C.pageY],a("moveStart",o.index),window.addEventListener("mouseup",p),window.addEventListener("mousemove",v))},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",h),window.addEventListener("touchmove",m)}},v=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",v),a("moveEnd",o.index)},h=()=>{c.value=null,window.removeEventListener("touchend",h),window.removeEventListener("touchmove",m),a("moveEnd",o.index)},g=k(()=>l.value?il:ec),b=k(()=>l.value?oo:Pa);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",{},()=>[($(),ne(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",{},()=>[($(),ne(at(b.value),{style:{width:"12px",height:"12px"}}))])],2)):te("v-if",!0)],6))}});var noe=ye(toe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/splitter/src/split-bar.vue"]]);const CO=he({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:Boolean}),SO={"update:size":e=>typeof e=="number"||typeof e=="string"},kO="ElSplitterPanel",ooe=re({name:kO,__name:"split-panel",props:CO,emits:SO,setup(e,{expose:t,emit:n}){const o=de("splitter-panel"),a=e,l=n,r=_e(yO);r||_n(kO,"usage: <el-splitter><el-splitter-panel /></el-splitter/>");const{panels:i,layout:u,lazy:c,containerSize:d,pxSizes:f}=Mn(r),{registerPanel:v,unregisterPanel:m,onCollapse:p,onMoveEnd:h,onMoveStart:g,onMoving:b}=r,C=A(),w=ct(),y=w.uid,S=A(0),E=k(()=>i.value[S.value]),_=T=>{S.value=T},R=k(()=>{var T;return E.value&&(T=f.value[S.value])!=null?T:0}),N=k(()=>{var T;return E.value&&(T=f.value[S.value+1])!=null?T:0}),O=k(()=>E.value?i.value[S.value+1]:null),P=k(()=>{var T;return O.value?a.resizable&&((T=O.value)==null?void 0:T.resizable)&&(R.value!==0||!a.min)&&(N.value!==0||!O.value.min):!1}),M=k(()=>E.value?S.value!==i.value.length-1:!1),L=k(()=>wO(E.value,R.value,O.value,N.value)),H=k(()=>wO(O.value,N.value,E.value,R.value));function K(T){return gg(T)?hg(T)*d.value||0:bg(T)?mg(T):T!=null?T:0}let Y=!1;ue(()=>a.size,()=>{if(!Y&&E.value){if(!d.value){E.value.size=a.size;return}const T=K(a.size),D=K(a.max),B=K(a.min),z=Math.min(Math.max(T,B||0),D||T);z!==T&&l("update:size",z),E.value.size=z}}),ue(()=>{var T;return(T=E.value)==null?void 0:T.size},T=>{T!==a.size&&(Y=!0,l("update:size",T),ke(()=>Y=!1))}),ue(()=>a.resizable,T=>{E.value&&(E.value.resizable=T)});const I=Lt({el:C.value,uid:y,getVnode:()=>w.vnode,setIndex:_,...a,collapsible:k(()=>eoe(a.collapsible))});return v(I),Dt(()=>m(I)),t({splitterPanelRef:C}),(T,D)=>($(),F(Be,null,[W("div",rt({ref_key:"panelEl",ref:C,class:[s(o).b()],style:{flexBasis:`${R.value}px`}},T.$attrs),[ee(T.$slots,"default")],16),M.value?($(),ne(noe,{key:0,index:S.value,layout:s(u),lazy:s(c),resizable:P.value,"start-collapsible":L.value,"end-collapsible":H.value,onMoveStart:s(g),onMoving:s(b),onMoveEnd:s(h),onCollapse:s(p)},{"start-collapsible":Q(()=>[ee(T.$slots,"start-collapsible")]),"end-collapsible":Q(()=>[ee(T.$slots,"end-collapsible")]),_:3},8,["index","layout","lazy","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):te("v-if",!0)],64))}});var EO=ye(ooe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/splitter/src/split-panel.vue"]]);const $O=Qe(Qne,{SplitPanel:EO}),_O=cn(EO);var aoe=[wC,$C,gS,U_,wS,ES,Tv,RS,xS,In,Pv,wk,Sk,Ok,Rk,t2,kh,a2,Qo,Ak,Jc,c2,h2,m2,Ai,Ph,_2,hC,I2,M2,N2,P2,A2,j2,zh,X2,Z2,tE,Gh,lE,bE,yE,wE,Jh,FC,VC,$e,_E,Qh,Xn,em,IE,PE,YE,UE,GE,qE,JE,n$,l$,u$,$v,im,yh,Kk,Wk,p$,h$,i2,Zo,gl,Ni,yk,B$,z$,H$,Y$,J$,_m,a_,u_,c_,v_,x_,I_,Y_,aT,lT,Wa,Sd,dk,uT,pT,vT,zn,gT,_d,kT,NT,YT,GT,oO,aO,uO,cO,pO,mO,$O,_O];const Do="ElInfiniteScroll",loe=50,roe=200,soe=0,ioe={delay:{type:Number,default:roe},distance:{type:Number,default:soe},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},yg=(e,t)=>Object.entries(ioe).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},{}),TO=e=>{const{observer:t}=e[Do];t&&(t.disconnect(),delete e[Do].observer)},uoe=(e,t)=>{const{container:n,containerEl:o,instance:a,observer:l,lastScrollTop:r}=e[Do],{disabled:i,distance:u}=yg(e,a),{clientHeight:c,scrollHeight:d,scrollTop:f}=o,v=f-r;if(e[Do].lastScrollTop=f,l||i||v<0)return;let m=!1;if(n===e)m=d-(c+f)<=u;else{const{clientTop:p,scrollHeight:h}=e,g=Zd(e,o);m=f+c>=g+p+h-u}m&&t.call(a)};function wg(e,t){const{containerEl:n,instance:o}=e[Do],{disabled:a}=yg(e,o);a||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(o):TO(e))}const coe={async mounted(e,t){const{instance:n,value:o}=t;da({scope:Do,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(Do,"'v-infinite-scroll' binding value must be a function"),await ke();const{delay:a,immediate:l}=yg(e,n),r=Sp(e,!0),i=r===window?document.documentElement:r,u=ll(uoe.bind(null,e,o),a);if(!!r){if(e[Do]={instance:n,container:r,containerEl:i,delay:a,cb:o,onScroll:u,lastScrollTop:i.scrollTop},l){const c=new MutationObserver(ll(wg.bind(null,e,o),loe));e[Do].observer=c,c.observe(e,{childList:!0,subtree:!0}),wg(e,o)}r.addEventListener("scroll",u)}},unmounted(e){if(!e[Do])return;const{container:t,onScroll:n}=e[Do];t==null||t.removeEventListener("scroll",n),TO(e)},async updated(e){if(!e[Do])await ke();else{const{containerEl:t,cb:n,observer:o}=e[Do];t.clientHeight&&o&&wg(e,n)}}};var doe=coe;const Cg=doe;Cg.install=e=>{e.directive("InfiniteScroll",Cg)};const OO=Cg;function foe(e,t){let n;const o=A(!1),a=Lt({...e,originalPosition:"",originalOverflow:"",visible:!1});function l(m){a.text=m}function r(){const m=a.parent,p=v.ns;if(!m.vLoadingAddClassList){let h=m.getAttribute("loading-number");h=Number.parseInt(h)-1,h?m.setAttribute("loading-number",h.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=v.$el)==null?void 0:m.parentNode)==null||p.removeChild(v.$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=re({name:"ElLoading",setup(m,{expose:p}){const{ns:h,zIndex:g}=Si("loading");return p({ns:h,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:h.b("text")},[a.text]):void 0;return Le(Wn,{name:h.b("fade"),onAfterLeave:c},{default:Q(()=>[tt(Z("div",{style:{backgroundColor:a.background||""},class:[h.b("mask"),a.customClass,h.is("fullscreen",a.fullscreen)]},[Le("div",{class:h.b("spinner")},[C,w])]),[[xt,a.visible]])])})}}}),f=ZO(d);Object.assign(f._context,t!=null?t:{});const v=f.mount(document.createElement("div"));return{...Mn(a),setText:l,removeElLoadingChild:i,close:u,handleAfterLeave:c,vm:v,get $el(){return v.$el}}}let Md;const Sg=function(e={},t){if(!Tt)return;const n=poe(e);if(n.fullscreen&&Md)return Md;const o=foe({...n,closed:()=>{var l;(l=n.closed)==null||l.call(n),n.fullscreen&&(Md=void 0)}},t!=null?t:Sg._context);voe(n,n.parent,o),RO(n,n.parent,o),n.parent.vLoadingAddClassList=()=>RO(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&&(Md=o),o},poe=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}},voe=async(e,t,n)=>{const{nextZIndex:o}=n.vm.zIndex||n.vm._.exposed.zIndex,a={};if(e.fullscreen)n.originalPosition.value=sl(document.body,"position"),n.originalOverflow.value=sl(document.body,"overflow"),a.zIndex=o();else if(e.parent===document.body){n.originalPosition.value=sl(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(sl(document.body,`margin-${l}`),10)}px`}for(const l of["height","width"])a[l]=`${e.target.getBoundingClientRect()[l]}px`}else n.originalPosition.value=sl(t,"position");for(const[l,r]of Object.entries(a))n.$el.style[l]=r},RO=(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")):jo(t,o.bm("parent","relative")),e.fullscreen&&e.lock?jo(t,o.bm("parent","hidden")):no(t,o.bm("parent","hidden"))};Sg._context=null;var eu=Sg;const tu=Symbol("ElLoading"),Sr=e=>`element-loading-${$R(e)}`,xO=(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 A(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},v=eu(f);v._context=kg._context,e[tu]={options:f,instance:v}},hoe=(e,t)=>{for(const n of Object.keys(e))Yn(e[n])&&(e[n].value=t[n])},kg={mounted(e,t){t.value&&xO(e,t)},updated(e,t){const n=e[tu];if(!t.value){n==null||n.instance.close(),e[tu]=null;return}n?hoe(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"))}):xO(e,t)},unmounted(e){var t;(t=e[tu])==null||t.instance.close(),e[tu]=null}};kg._context=null;var nu=kg;const IO={install(e){eu._context=e._context,nu._context=e._context,e.directive("loading",nu),e.config.globalProperties.$loading=eu},directive:nu,service:eu},Eg=["primary","success","info","warning","error"],$g=["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}),MO=he({customClass:{type:String,default:Qn.customClass},dangerouslyUseHTMLString:{type:Boolean,default:Qn.dangerouslyUseHTMLString},duration:{type:Number,default:Qn.duration},icon:{type:zt,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:Eg,default:Qn.type},plain:{type:Boolean,default:Qn.plain},offset:{type:Number,default:Qn.offset},placement:{type:String,values:$g,default:Qn.placement},zIndex:{type:Number,default:Qn.zIndex},grouping:{type:Boolean,default:Qn.grouping},repeatNum:{type:Number,default:Qn.repeatNum}}),NO={destroy:()=>!0},ka=Ag({}),moe=e=>(ka[e]||(ka[e]=Ag([])),ka[e]),goe=(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}},boe=(e,t)=>{const{prev:n}=goe(e,t);return n?n.vm.exposed.bottom.value:0},yoe=(e,t,n)=>(ka[n]||[]).findIndex(l=>l.id===e)>0?16:t,woe=["id"],Coe=["innerHTML"],Soe=re({name:"ElMessage",__name:"message",props:MO,emits:NO,setup(e,{expose:t,emit:n}){const{Close:o}=_p,a=e,l=n,r=A(!1),{ns:i,zIndex:u}=Si("message"),{currentZIndex:c,nextZIndex:d}=u,f=A(),v=A(!1),m=A(0);let p;const h=k(()=>a.type?a.type==="error"?"danger":a.type:"info"),g=k(()=>{const L=a.type;return{[i.bm("icon",L)]:L&&Pl[L]}}),b=k(()=>a.icon||Pl[a.type]||""),C=k(()=>a.placement||kr),w=k(()=>boe(a.id,C.value)),y=k(()=>yoe(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"),R=k(()=>({[_.value]:`${y.value}px`,zIndex:c.value}));function N(){a.duration!==0&&({stop:p}=Tr(()=>{P()},a.duration))}function O(){p==null||p()}function P(){v.value=!1,ke(()=>{var L;r.value||((L=a.onClose)==null||L.call(a),l("destroy"))})}function M(L){Ht(L)===fe.esc&&P()}return ut(()=>{N(),d(),v.value=!0}),ue(()=>a.repeatNum,()=>{O(),N()}),Mt(document,"keydown",M),Qt(f,()=>{m.value=f.value.getBoundingClientRect().height}),t({visible:v,bottom:S,close:P}),(L,H)=>($(),ne(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(R.value),role:"alert",onMouseenter:O,onMouseleave:N},[L.repeatNum>1?($(),ne(s(Tv),{key:0,value:L.repeatNum,type:h.value,class:x(s(i).e("badge"))},null,8,["value","type","class"])):te("v-if",!0),b.value?($(),ne(s($e),{key:1,class:x([s(i).e("icon"),g.value])},{default:Q(()=>[($(),ne(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,Coe)],2112)):($(),F("p",{key:0,class:x(s(i).e("content"))},ge(L.message),3))]),L.showClose?($(),ne(s($e),{key:2,class:x(s(i).e("closeBtn")),onClick:je(P,["stop"])},{default:Q(()=>[Z(s(o))]),_:1},8,["class"])):te("v-if",!0)],46,woe),[[xt,v.value]])]),_:3},8,["name","onBeforeLeave"]))}});var koe=ye(Soe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let Eoe=1;const $oe=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}},_oe=e=>{!e.placement&&He(qn.placement)&&qn.placement&&(e.placement=qn.placement),e.placement||(e.placement=kr),$g.includes(e.placement)||(`${e.placement}${kr}`,e.placement=kr)},PO=e=>{const t=!e||He(e)||Jt(e)||lt(e)?{message:e}:e,n={...Qn,...t};return $oe(n),_oe(n),Vt(qn.grouping)&&!n.grouping&&(n.grouping=qn.grouping),Re(qn.duration)&&n.duration===3e3&&(n.duration=qn.duration),Re(qn.offset)&&n.offset===16&&(n.offset=qn.offset),Vt(qn.showClose)&&!n.showClose&&(n.showClose=qn.showClose),Vt(qn.plain)&&!n.plain&&(n.plain=qn.plain),n},Toe=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()},Ooe=({appendTo:e,...t},n)=>{const o=`message_${Eoe++}`,a=t.onClose,l=document.createElement("div"),r={...t,id:o,onClose:()=>{a==null||a(),Toe(d)},onDestroy:()=>{Sl(null,l)}},i=Z(koe,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=PO(e),o=moe(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(Re(qn.max)&&o.length>=qn.max)return{close:()=>{}};const a=Ooe(n,t);return o.push(a),a.handler};Eg.forEach(e=>{Er[e]=(t={},n)=>{const o=PO(t);return Er({...o,type:e},n)}});function Roe(e){for(const t in ka)if(Dn(ka,t)){const n=[...ka[t]];for(const o of n)(!e||e===o.props.type)&&o.handler.close()}}function xoe(e){if(!ka[e])return;[...ka[e]].forEach(n=>n.handler.close())}Er.closeAll=Roe,Er.closeAllByPlacement=xoe,Er._context=null;var Ioe=Er;const AO=K1(Ioe,"$message"),Moe=re({name:"ElMessageBox",directives:{TrapFocus:XS},components:{ElButton:In,ElFocusTrap:us,ElInput:Xn,ElOverlay:sd,ElIcon:$e,..._p},inheritAttrs:!1,props:{buttonSize:{type:String,validator:j1},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}=Si("message-box",k(()=>e.buttonSize)),{t:r}=n,{nextZIndex:i}=o,u=A(!1),c=Lt({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(Aa),cancelButtonLoadingIcon:Cl(Aa),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),d=k(()=>{const I=c.type;return{[a.bm("icon",I)]:I&&Pl[I]}}),f=Fn(),v=Fn(),m=k(()=>{const I=c.type;return c.icon||I&&Pl[I]||""}),p=k(()=>!!c.message),h=A(),g=A(),b=A(),C=A(),w=A(),y=k(()=>c.confirmButtonClass);ue(()=>c.inputValue,async I=>{await ke(),e.boxType==="prompt"&&I&&L()},{immediate:!0}),ue(()=>u.value,I=>{var T,D;I&&(e.boxType!=="prompt"&&(c.autofocus?b.value=(D=(T=w.value)==null?void 0:T.$el)!=null?D:h.value:b.value=h.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:h.value:b.value=h.value)}):(c.editorErrorMessage="",c.validateError=!1))});const S=k(()=>e.draggable),E=k(()=>e.overflow),{isDragging:_}=Rp(h,g,S,E);ut(async()=>{await ke(),e.closeOnHashChange&&window.addEventListener("hashchange",R)}),Dt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",R)});function R(){!u.value||(u.value=!1,ke(()=>{c.action&&t("action",c.action)}))}const N=()=>{e.closeOnClickModal&&M(c.distinguishCancelAndClose?"close":"cancel")},O=cc(N),P=I=>{if(c.inputType!=="textarea")return I.preventDefault(),M("confirm")},M=I=>{var T;e.boxType==="prompt"&&I==="confirm"&&!L()||(c.action=I,c.beforeClose?(T=c.beforeClose)==null||T.call(c,I,c,R):R())},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 T=c.inputValidator;if(lt(T)){const D=T(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,T;const D=(I=C.value)==null?void 0:I.$refs;return(T=D==null?void 0:D.input)!=null?T:D==null?void 0:D.textarea},K=()=>{M("close")},Y=()=>{e.closeOnPressEscape&&K()};return e.lockScroll&&di(u,{ns:a}),{...Mn(c),ns:a,overlayEvent:O,visible:u,hasMessage:p,typeClass:d,contentId:f,inputId:v,btnSize:l,iconComponent:m,confirmButtonClasses:y,rootRef:h,focusStartRef:b,headerRef:g,inputRef:C,isDragging:_,confirmRef:w,doClose:R,handleClose:K,onCloseRequested:Y,handleWrapperClick:N,handleInputEnter:P,handleAction:M,t:r}}}),Noe=["aria-label","aria-describedby"],Poe=["aria-label"],Aoe=["id"];function Loe(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 $(),ne(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?($(),ne(r,{key:0,class:x([e.ns.e("status"),e.typeClass])},{default:Q(()=>[($(),ne(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(()=>[($(),ne(at(e.closeIcon||"close")))]),_:1},8,["class"])],42,Poe)):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?($(),ne(r,{key:0,class:x([e.ns.e("status"),e.typeClass])},{default:Q(()=>[($(),ne(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?($(),ne(at(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):($(),ne(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,Aoe),W("div",{class:x(e.ns.e("btns"))},[e.showCancelButton?($(),ne(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(()=>[Ct(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(()=>[Ct(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,Noe)]),_:3},8,["z-index","overlay-class","mask"]),[[xt,e.visible]])]),_:3})}var Doe=ye(Moe,[["render",Loe],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const ou=new Map,Boe=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},Foe=(e,t,n=null)=>{const o=Z(Doe,e,lt(e.message)||Jt(e.message)?{default:lt(e.message)?e.message:()=>e.message}:null);return o.appContext=n,Sl(o,t),Boe(e).appendChild(t.firstElementChild),o.component},Voe=()=>document.createElement("div"),zoe=(e,t)=>{const n=Voe();e.onVanish=()=>{Sl(null,n),ou.delete(a)},e.onAction=l=>{const r=ou.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=Foe(e,n,t),a=o.proxy;for(const l in e)Dn(e,l)&&!Dn(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=zoe(e,t!=null?t:Rs._context);ou.set(l,{options:e,callback:n,resolve:o,reject:a})})}const Hoe=["alert","confirm","prompt"],Woe={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Hoe.forEach(e=>{Rs[e]=Koe(e)});function Koe(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:"",...Woe[e]},o,{boxType:e}),a)}}Rs.close=()=>{ou.forEach((e,t)=>{t.doClose()}),ou.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 LO=Gl,_g=["primary","success","info","warning","error"],DO=he({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:zt},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:[..._g,""],default:""},zIndex:Number,closeIcon:{type:zt,default:Yo}}),BO={destroy:()=>!0},joe=["id"],Yoe=["textContent"],Uoe={key:0},Goe=["innerHTML"],qoe=re({name:"ElNotification",__name:"notification",props:DO,emits:BO,setup(e,{expose:t}){const n=e,{ns:o,zIndex:a}=Si("notification"),{nextZIndex:l,currentZIndex:r}=a,i=A(!1);let u;const c=k(()=>{const C=n.type;return C&&Pl[n.type]?o.m(C):""}),d=k(()=>n.type&&Pl[n.type]||n.icon),f=k(()=>n.position.endsWith("right")?"right":"left"),v=k(()=>n.position.startsWith("top")?"top":"bottom"),m=k(()=>{var C;return{[v.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 h(){u==null||u()}function g(){i.value=!1}function b(C){switch(Ht(C)){case fe.delete:case fe.backspace:h();break;case fe.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)=>($(),ne(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:h,onMouseleave:p,onClick:w[0]||(w[0]=(...y)=>C.onClick&&C.onClick(...y))},[d.value?($(),ne(s($e),{key:0,class:x([s(o).e("icon"),c.value])},{default:Q(()=>[($(),ne(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,Yoe),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,Goe)],2112)):($(),F("p",Uoe,ge(C.message),1))])],6),[[xt,C.message]]),C.showClose?($(),ne(s($e),{key:0,class:x(s(o).e("closeBtn")),onClick:je(g,["stop"])},{default:Q(()=>[($(),ne(at(C.closeIcon)))]),_:1},8,["class"])):te("v-if",!0)],2)],46,joe),[[xt,i.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Xoe=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":[]},Nd=16;let Zoe=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)+Nd}),o+=Nd;const a=`notification_${Zoe++}`,l=e.onClose,r={...e,offset:o,id:a,onClose:()=>{Joe(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(Xoe,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}}};_g.forEach(e=>{$r[e]=(t={},n)=>((He(t)||Jt(t))&&(t={message:t}),$r({...t,type:e},n))});function Joe(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,v=Number.parseInt(d.style[i],10)-r-Nd;f.props.offset=v}}function Qoe(){for(const e of Object.values(xs))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}function eae(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)+Nd}$r.closeAll=Qoe,$r.updateOffsets=eae,$r._context=null;var tae=$r;const FO=K1(tae,"$notify");var nae=[OO,IO,AO,LO,FO,sm],Tg=mC([...aoe,...nae]);const oae=Tg.install,aae=Tg.version;export{hv as BAR_MAP,jd as BORDER_HORIZONTAL_WIDTH,Zc as CAROUSEL_ITEM_NAME,Pi as CASCADER_PANEL_INJECTION_KEY,ht as CHANGE_EVENT,ml as ClickOutside,Yv as CommonPicker,Sh as CommonProps,Kh as DEFAULT_DIALOG_TRANSITION,dC as DEFAULT_EMPTY_VALUES,vl as DEFAULT_FORMATS_DATE,zS as DEFAULT_FORMATS_DATEPICKER,vr as DEFAULT_FORMATS_TIME,fC as DEFAULT_VALUE_ON_CLEAR,Hi as DROPDOWN_INJECTION_KEY,Zh as DROPDOWN_INSTANCE_INJECTION_KEY,Yk as DefaultProps,D$ as DynamicSizeGrid,T$ as DynamicSizeList,fe as EVENT_CODE,GW as Effect,wC as ElAffix,$C as ElAlert,uO as ElAnchor,cO as ElAnchorLink,M2 as ElAside,U_ as ElAutoResizer,gS as ElAutocomplete,wS as ElAvatar,ES as ElBacktop,Tv as ElBadge,RS as ElBreadcrumb,xS as ElBreadcrumbItem,In as ElButton,Pv as ElButtonGroup,wk as ElCalendar,Sk as ElCard,Ok as ElCarousel,Rk as ElCarouselItem,t2 as ElCascader,kh as ElCascaderPanel,a2 as ElCheckTag,Qo as ElCheckbox,Ak as ElCheckboxButton,Jc as ElCheckboxGroup,c2 as ElCol,h2 as ElCollapse,m2 as ElCollapseItem,Ai as ElCollapseTransition,_2 as ElColorPicker,Ph as ElColorPickerPanel,hC as ElConfigProvider,I2 as ElContainer,a_ as ElCountdown,j2 as ElDatePicker,zh as ElDatePickerPanel,X2 as ElDescriptions,Z2 as ElDescriptionsItem,tE as ElDialog,Gh as ElDivider,lE as ElDrawer,bE as ElDropdown,yE as ElDropdownItem,wE as ElDropdownMenu,Jh as ElEmpty,N2 as ElFooter,FC as ElForm,VC as ElFormItem,P2 as ElHeader,$e as ElIcon,_E as ElImage,Qh as ElImageViewer,OO as ElInfiniteScroll,Xn as ElInput,em as ElInputNumber,IE as ElInputTag,PE as ElLink,IO as ElLoading,nu as ElLoadingDirective,eu as ElLoadingService,A2 as ElMain,mO as ElMention,YE as ElMenu,UE as ElMenuItem,GE as ElMenuItemGroup,AO as ElMessage,LO as ElMessageBox,FO as ElNotification,Ni as ElOption,yk as ElOptionGroup,sd as ElOverlay,JE as ElPageHeader,n$ as ElPagination,l$ as ElPopconfirm,u$ as ElPopover,sm as ElPopoverDirective,$v as ElPopper,GC as ElPopperArrow,iS as ElPopperContent,JC as ElPopperTrigger,im as ElProgress,yh as ElRadio,Kk as ElRadioButton,Wk as ElRadioGroup,p$ as ElRate,h$ as ElResult,i2 as ElRow,Zo as ElScrollbar,pO as ElSegmented,gl as ElSelect,B$ as ElSelectV2,z$ as ElSkeleton,H$ as ElSkeletonItem,Y$ as ElSlider,J$ as ElSpace,$O as ElSplitter,_O as ElSplitterPanel,_m as ElStatistic,c_ as ElStep,u_ as ElSteps,qE as ElSubMenu,v_ as ElSwitch,lT as ElTabPane,x_ as ElTable,I_ as ElTableColumn,Y_ as ElTableV2,aT as ElTabs,Wa as ElTag,Sd as ElText,dk as ElTimePicker,uT as ElTimeSelect,pT as ElTimeline,vT as ElTimelineItem,zn as ElTooltip,oO as ElTour,aO as ElTourStep,gT as ElTransfer,_d as ElTree,kT as ElTreeSelect,NT as ElTreeV2,YT as ElUpload,GT as ElWatermark,pE as FIRST_KEYS,VG as FIRST_LAST_KEYS,jp as FORWARD_REF_INJECTION_KEY,R$ as FixedSizeGrid,Sm as FixedSizeList,fr as GAP,Rw as ID_INJECTION_KEY,Sn as INPUT_EVENT,Wd as INSTALLED_KEY,um as IconComponentMap,Wl as IconMap,vE as LAST_KEYS,qm as LEFT_CHECK_CHANGE_EVENT,id as MENU_INJECTION_KEY,kr as MESSAGE_DEFAULT_PLACEMENT,As as MINIMUM_INPUT_WIDTH,ck as Mousewheel,ng as NODE_INSTANCE_INJECTION_KEY,Jo as PICKER_BASE_INJECTION_KEY,Vc as PICKER_POPPER_OPTIONS_INJECTION_KEY,gv as POPPER_CONTENT_INJECTION_KEY,_c as POPPER_INJECTION_KEY,Xm as RIGHT_CHECK_CHANGE_EVENT,Mh as ROOT_COMMON_COLOR_INJECTION_KEY,Dv as ROOT_COMMON_PICKER_INJECTION_KEY,ed as ROOT_PICKER_INJECTION_KEY,ps as ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY,$d as ROOT_TREE_INJECTION_KEY,r2 as RowAlign,l2 as RowJustify,IH as SCOPE,lv as SIZE_INJECTION_KEY,Tm as STEPS_INJECTION_KEY,Wi as SUB_MENU_INJECTION_KEY,cT as TIMELINE_INJECTION_KEY,Ac as TOOLTIP_INJECTION_KEY,og as TREE_NODE_MAP_INJECTION_KEY,K_ as TableV2,Es as TableV2Alignment,Dm as TableV2FixedDir,$s as TableV2Placeholder,jl as TableV2SortOrder,xi as TimePickPanel,XS as TrapFocus,Ye as UPDATE_MODEL_EVENT,hu as WEEK_DAYS,Up as ZINDEX_INJECTION_KEY,bC as affixEmits,gC as affixProps,SC as alertEffects,EC as alertEmits,kC as alertProps,rO as anchorEmits,lO as anchorProps,pC as ariaProps,OH as arrowMiddleware,j_ as autoResizerProps,hS as autocompleteEmits,vS as autocompleteProps,yS as avatarEmits,bS as avatarProps,SS as backtopEmits,CS as backtopProps,$S as badgeProps,TS as breadcrumbItemProps,Ov as breadcrumbKey,_S as breadcrumbProps,q1 as buildLocaleContext,zc as buildTimeList,U1 as buildTranslator,MS as buttonEmits,Rv as buttonGroupContextKey,IS as buttonNativeTypes,Dc as buttonProps,Lc as buttonTypes,mk as calendarEmits,hk as calendarProps,I7 as cardContextKey,Ck as cardProps,uh as carouselContextKey,Ek as carouselEmits,_k as carouselItemProps,kk as carouselProps,e2 as cascaderEmits,qk as cascaderPanelEmits,Uk as cascaderPanelProps,Jk as cascaderProps,o2 as checkTagEmits,n2 as checkTagProps,ph as checkboxDefaultProps,dh as checkboxEmits,gr as checkboxGroupContextKey,Nk as checkboxGroupEmits,Mk as checkboxGroupProps,ch as checkboxProps,u2 as colProps,_h as collapseContextKey,f2 as collapseEmits,p2 as collapseItemProps,d2 as collapseProps,$2 as colorPickerEmits,Nh as colorPickerPanelContextKey,S2 as colorPickerPanelEmits,Ih as colorPickerPanelProps,E2 as colorPickerProps,Kd as columnAlignment,eR as componentSizeMap,na as componentSizes,iv as configProviderContextKey,vC as configProviderProps,t_ as countdownEmits,e_ as countdownProps,Mp as createModelToggleComposable,Vv as dateEquals,Vg as datePickTypes,H2 as datePickerPanelProps,K2 as datePickerProps,Oi as dayOrDaysToDate,Je as dayjs,Tg as default,Yp as defaultInitialZIndex,jr as defaultNamespace,pg as defaultProps,G2 as descriptionItemProps,Y2 as descriptionProps,nG as dialogContextKey,Yh as dialogEmits,Wh as dialogInjectionKey,jh as dialogProps,nE as dividerProps,aE as drawerEmits,oE as drawerProps,Xh as dropdownItemProps,fE as dropdownMenuProps,zi as dropdownProps,lm as elPaginationKey,$h as emitChangeFn,CE as emptyProps,sv as emptyValuesContextKey,Bv as extractDateFormat,Fv as extractTimeFormat,Bl as formContextKey,OC as formEmits,ya as formItemContextKey,LC as formItemProps,AC as formItemValidateStates,_C as formMetaProps,TC as formProps,Wv as formatter,Rd as genFileId,_H as getPositionDataWithUnit,CC as iconProps,$E as imageEmits,EE as imageProps,kE as imageViewerEmits,SE as imageViewerProps,WC as inputEmits,OE as inputNumberEmits,TE as inputNumberProps,is as inputProps,xE as inputTagEmits,RE as inputTagProps,oae as install,NE as linkEmits,ME as linkProps,xp as localeContextKey,mC as makeInstaller,Hc as makeList,vg as mentionDefaultProps,hO as mentionEmits,vO as mentionProps,FE as menuEmits,HE as menuItemEmits,KE as menuItemGroupProps,zE as menuItemProps,BE as menuProps,qn as messageConfig,Qn as messageDefaults,NO as messageEmits,$g as messagePlacement,MO as messageProps,Eg as messageTypes,Ip as namespaceContextKey,BO as notificationEmits,DO as notificationProps,_g as notificationTypes,Q2 as overlayEmits,J2 as overlayProps,ZE as pageHeaderEmits,XE as pageHeaderProps,e$ as paginationEmits,QE as paginationProps,Hv as parseDate,a$ as popconfirmEmits,o$ as popconfirmProps,s$ as popoverEmits,r$ as popoverProps,Nc as popperArrowProps,Ev as popperContentEmits,Pc as popperContentProps,kv as popperCoreConfigProps,Tc as popperProps,Oc as popperTriggerProps,c$ as progressProps,Cc as provideGlobalConfig,Fk as radioButtonProps,bh as radioDefaultProps,hh as radioEmits,zk as radioGroupEmits,mh as radioGroupKey,Vk as radioGroupProps,Lk as radioProps,vh as radioPropsBase,hl as rangeArr,f$ as rateEmits,d$ as rateProps,KC as renderThumbStyle,v$ as resultProps,bv as roleTypes,Eh as rowContextKey,s2 as rowProps,$c as scrollbarContextKey,mv as scrollbarEmits,UC as scrollbarProps,fO as segmentedEmits,dO as segmentedProps,p7 as selectEmits,ah as selectGroupKey,fs as selectKey,sh as selectProps,md as selectV2InjectionKey,V$ as skeletonItemProps,F$ as skeletonProps,Em as sliderContextKey,K$ as sliderEmits,W$ as sliderProps,U$ as spaceItemProps,Z$ as spaceProps,bO as splitterEmits,SO as splitterPanelEmits,CO as splitterPanelProps,gO as splitterProps,Q$ as statisticProps,s_ as stepProps,r_ as stepsEmits,l_ as stepsProps,DE as subMenuProps,f_ as switchEmits,d_ as switchProps,G_ as tabBarProps,Z_ as tabNavEmits,X_ as tabNavProps,tT as tabPaneProps,F_ as tableV2Props,Ul as tableV2RowProps,eT as tabsEmits,Q_ as tabsProps,Xi as tabsRootContextKey,gk as tagEmits,Ha as tagProps,rT as textProps,jC as thumbProps,Wc as timePickerDefaultProps,jv as timePickerRangeTriggerProps,m9 as timePickerRngeTriggerProps,sT as timeSelectProps,Lv as timeUnits,dT as timelineItemProps,pS as tooltipEmits,ZT as tourContentEmits,Id as tourContentProps,QT as tourEmits,XT as tourPlacements,JT as tourProps,tO as tourStepEmits,eO as tourStepProps,qT as tourStrategies,kd as transferCheckedChangeFn,hT as transferEmits,Cr as transferProps,G1 as translate,ST as treeEmits,ag as treeProps,dg as uploadBaseProps,HT as uploadContentProps,ug as uploadContextKey,VT as uploadDraggerEmits,FT as uploadDraggerProps,DT as uploadListEmits,LT as uploadListProps,cg as uploadListTypes,AT as uploadProps,Gn as useAriaProps,ci as useAttrs,ac as useCalcInputWidth,Xk as useCascaderConfig,as as useComposition,cC as useCursor,$5 as useDelayedRender,Pw as useDelayedToggle,Nw as useDelayedToggleProps,da as useDeprecated,Uh as useDialog,jH as useDisabled,Rp as useDraggable,ls as useEmptyValues,Dl as useEmptyValuesProps,Iw as useEscapeKeydown,TH as useFloating,EH as useFloatingProps,rz as useFocus,za as useFocusController,on as useFormDisabled,An as useFormItem,Eo as useFormItemInputId,wn as useFormSize,Aw as useForwardRef,Lw as useForwardRefDirective,lc as useGetDerivedNamespace,Si as useGlobalComponentSettings,cr as useGlobalConfig,rv as useGlobalSize,Fn as useId,dc as useIdInjection,yt as useLocale,di as useLockscreen,cz as useModal,pz as useModelToggle,hz as useModelToggleEmits,vz as useModelToggleProps,de as useNamespace,Ci as useOrderedChildren,mw as usePopper,pK as usePopperArrowProps,Mw as usePopperContainer,Kp as usePopperContainerId,gK as usePopperContentEmits,mK as usePopperContentProps,hK as usePopperCoreConfigProps,qW as usePopperProps,eK as usePopperTriggerProps,mz as usePreventGlobal,Np as useProp,cc as useSameTarget,KH as useSize,Tn as useSizeProp,xH as useSizeProps,X$ as useSpace,w5 as useTeleport,gw as useThrottleRender,Wp as useTimeout,Kt as useTooltipContentProps,dS as useTooltipModelToggle,cS as useTooltipModelToggleEmits,uS as useTooltipModelToggleProps,fS as useTooltipProps,wa as useTooltipTriggerProps,k5 as useTransitionFallthrough,S5 as useTransitionFallthroughEmits,Qr as useZIndex,nu as vLoading,Ri as vRepeatClick,zv as valueEquals,aae as version,Kl as virtualizedGridProps,bm as virtualizedListProps,gm as virtualizedProps,wm as virtualizedScrollbarProps,UT as watermarkProps,Gp as zIndexContextKey};
69
69
  //# sourceMappingURL=index.full.min.mjs.map