vue-devui 1.6.18 → 1.6.20

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 (543) hide show
  1. package/action-timeline/index.es.js +12 -8
  2. package/action-timeline/index.umd.js +1 -1
  3. package/alert/index.umd.js +1 -1
  4. package/auto-complete/index.es.js +161 -107
  5. package/auto-complete/index.umd.js +35 -20
  6. package/auto-complete/style.css +1 -1
  7. package/avatar/index.umd.js +3 -3
  8. package/badge/index.umd.js +1 -1
  9. package/breadcrumb/index.es.js +98 -91
  10. package/breadcrumb/index.umd.js +5 -1
  11. package/button/index.es.js +56 -46
  12. package/button/index.umd.js +9 -9
  13. package/card/index.umd.js +1 -1
  14. package/carousel/index.umd.js +1 -1
  15. package/category-search/index.es.js +1478 -2372
  16. package/category-search/index.umd.js +41 -26
  17. package/category-search/style.css +1 -1
  18. package/checkbox/index.es.js +170 -108
  19. package/checkbox/index.umd.js +32 -17
  20. package/code-editor/index.es.js +83 -62
  21. package/code-editor/index.umd.js +9 -9
  22. package/code-review/index.es.js +92 -68
  23. package/code-review/index.umd.js +23 -19
  24. package/code-review/style.css +1 -1
  25. package/collapse/index.es.js +3 -21
  26. package/collapse/index.umd.js +2 -2
  27. package/countdown/index.umd.js +1 -1
  28. package/data-grid/index.es.js +339 -220
  29. package/data-grid/index.umd.js +31 -16
  30. package/date-picker-pro/index.es.js +490 -313
  31. package/date-picker-pro/index.umd.js +35 -20
  32. package/dragdrop/index.umd.js +1 -1
  33. package/dragdrop-new/index.es.js +499 -555
  34. package/dragdrop-new/index.umd.js +3 -16
  35. package/drawer/index.es.js +15 -25
  36. package/drawer/index.umd.js +1 -1
  37. package/dropdown/index.es.js +98 -91
  38. package/dropdown/index.umd.js +5 -1
  39. package/echarts/index.es.js +12 -27
  40. package/echarts/index.umd.js +1 -1
  41. package/editable-select/index.es.js +104 -79
  42. package/editable-select/index.umd.js +10 -10
  43. package/editor-md/index.es.js +356 -268
  44. package/editor-md/index.umd.js +48 -44
  45. package/form/index.es.js +146 -94
  46. package/form/index.umd.js +27 -12
  47. package/fullscreen/index.umd.js +1 -1
  48. package/git-graph/index.es.js +96 -90
  49. package/git-graph/index.umd.js +14 -14
  50. package/global.d.ts +0 -1
  51. package/grid/index.es.js +7 -20
  52. package/grid/index.umd.js +1 -1
  53. package/icon/index.umd.js +1 -1
  54. package/image-preview/index.es.js +12 -23
  55. package/image-preview/index.umd.js +5 -5
  56. package/input/index.es.js +148 -96
  57. package/input/index.umd.js +30 -15
  58. package/input-number/index.es.js +167 -107
  59. package/input-number/index.umd.js +35 -20
  60. package/layout/index.umd.js +1 -1
  61. package/loading/index.es.js +19 -38
  62. package/loading/index.umd.js +1 -1
  63. package/mention/index.es.js +143 -89
  64. package/mention/index.umd.js +33 -18
  65. package/menu/index.es.js +0 -7
  66. package/menu/index.umd.js +2 -2
  67. package/message/index.es.js +34 -34
  68. package/message/index.umd.js +5 -1
  69. package/modal/index.es.js +50 -70
  70. package/modal/index.umd.js +2 -2
  71. package/notification/index.es.js +13 -27
  72. package/notification/index.umd.js +3 -3
  73. package/overlay/index.es.js +24 -18
  74. package/overlay/index.umd.js +1 -1
  75. package/package.json +1 -1
  76. package/pagination/index.es.js +302 -201
  77. package/pagination/index.umd.js +33 -18
  78. package/pagination/style.css +1 -1
  79. package/panel/index.umd.js +1 -1
  80. package/popover/index.es.js +60 -22
  81. package/popover/index.umd.js +9 -5
  82. package/progress/index.umd.js +3 -3
  83. package/radio/index.es.js +164 -104
  84. package/radio/index.umd.js +34 -19
  85. package/radio/style.css +1 -1
  86. package/rate/index.umd.js +1 -1
  87. package/result/index.es.js +3 -3
  88. package/result/index.umd.js +1 -1
  89. package/ripple/index.es.js +5 -18
  90. package/ripple/index.umd.js +1 -1
  91. package/search/index.es.js +156 -106
  92. package/search/index.umd.js +29 -20
  93. package/select/index.es.js +239 -153
  94. package/select/index.umd.js +34 -19
  95. package/select/style.css +1 -1
  96. package/skeleton/index.umd.js +2 -2
  97. package/slider/index.es.js +15 -11
  98. package/slider/index.umd.js +1 -1
  99. package/splitter/index.es.js +93 -53
  100. package/splitter/index.umd.js +17 -13
  101. package/statistic/index.es.js +0 -21
  102. package/statistic/index.umd.js +1 -1
  103. package/status/index.umd.js +1 -1
  104. package/steps/index.umd.js +1 -1
  105. package/style.css +2 -2
  106. package/switch/index.es.js +140 -88
  107. package/switch/index.umd.js +34 -19
  108. package/table/index.es.js +403 -260
  109. package/table/index.umd.js +34 -19
  110. package/tabs/index.umd.js +1 -1
  111. package/tag/index.es.js +3 -1
  112. package/tag/index.umd.js +1 -1
  113. package/textarea/index.es.js +149 -95
  114. package/textarea/index.umd.js +34 -19
  115. package/time-picker/index.es.js +164 -109
  116. package/time-picker/index.umd.js +33 -18
  117. package/time-select/index.es.js +239 -153
  118. package/time-select/index.umd.js +33 -18
  119. package/time-select/style.css +1 -1
  120. package/timeline/index.umd.js +1 -1
  121. package/tooltip/index.es.js +60 -22
  122. package/tooltip/index.umd.js +8 -4
  123. package/tree/index.es.js +213 -136
  124. package/tree/index.umd.js +32 -17
  125. package/tree/style.css +1 -1
  126. package/types/accordion/src/accordion-item-hreflink.d.ts +1 -1
  127. package/types/accordion/src/accordion-item-routerlink.d.ts +1 -1
  128. package/types/accordion/src/accordion-item.d.ts +1 -1
  129. package/types/accordion/src/accordion-list.d.ts +1 -1
  130. package/types/accordion/src/accordion-menu.d.ts +1 -1
  131. package/types/accordion/src/accordion-types.d.ts +1 -1
  132. package/types/accordion/src/accordion.d.ts +1 -1
  133. package/types/accordion/src/accordion.type.d.ts +2 -2
  134. package/types/action-timeline/src/action-timeline-types.d.ts +2 -2
  135. package/types/action-timeline/src/action-timeline.d.ts +1 -1
  136. package/types/alert/src/alert-types.d.ts +2 -2
  137. package/types/alert/src/alert.d.ts +1 -1
  138. package/types/anchor/src/anchor.d.ts +1 -1
  139. package/types/anchor/src/utils.d.ts +1 -1
  140. package/types/auto-complete/src/auto-complete-types.d.ts +14 -14
  141. package/types/auto-complete/src/auto-complete.d.ts +1 -1
  142. package/types/auto-complete/src/components/dropdown.d.ts +1 -1
  143. package/types/auto-complete/src/composables/use-custom-template.d.ts +1 -1
  144. package/types/avatar/src/avatar-types.d.ts +1 -1
  145. package/types/avatar/src/avatar.d.ts +1 -1
  146. package/types/avatar/src/components/avatar-body-icon.d.ts +1 -1
  147. package/types/avatar/src/components/avatar-nobody-icon.d.ts +1 -1
  148. package/types/back-top/src/back-top-types.d.ts +3 -3
  149. package/types/back-top/src/back-top.d.ts +1 -1
  150. package/types/back-top/src/hooks/use-event-listener.d.ts +1 -1
  151. package/types/badge/src/badge-types.d.ts +3 -3
  152. package/types/badge/src/badge.d.ts +1 -1
  153. package/types/breadcrumb/src/breadcrumb-item-types.d.ts +1 -1
  154. package/types/breadcrumb/src/breadcrumb-item.d.ts +1 -1
  155. package/types/breadcrumb/src/breadcrumb-types.d.ts +1 -1
  156. package/types/breadcrumb/src/breadcrumb.d.ts +1 -1
  157. package/types/button/src/button-group.d.ts +1 -1
  158. package/types/button/src/button-types.d.ts +7 -7
  159. package/types/button/src/button.d.ts +1 -1
  160. package/types/card/src/card-types.d.ts +1 -1
  161. package/types/card/src/card.d.ts +1 -1
  162. package/types/carousel/src/carousel.d.ts +1 -1
  163. package/types/carousel/src/item.d.ts +1 -1
  164. package/types/carousel/src/types.d.ts +4 -4
  165. package/types/cascader/components/cascader-list/index.d.ts +1 -1
  166. package/types/cascader/hooks/use-cascader-item.d.ts +1 -1
  167. package/types/cascader/hooks/use-cascader-multiple.d.ts +1 -1
  168. package/types/cascader/hooks/use-cascader-options.d.ts +2 -14
  169. package/types/cascader/src/cascader-types.d.ts +10 -10
  170. package/types/cascader/src/cascader.d.ts +1 -1
  171. package/types/category-search/src/category-search-types.d.ts +7 -7
  172. package/types/category-search/src/category-search.d.ts +1 -1
  173. package/types/category-search/src/components/category-search-clear.d.ts +1 -1
  174. package/types/category-search/src/components/category-search-input.d.ts +1 -1
  175. package/types/category-search/src/components/category-search-more.d.ts +1 -1
  176. package/types/category-search/src/components/category-search-save.d.ts +1 -1
  177. package/types/category-search/src/components/category-search-tag-dropdown.d.ts +1 -1
  178. package/types/category-search/src/components/category-search-tag.d.ts +1 -1
  179. package/types/category-search/src/components/checkbox-menu.d.ts +1 -1
  180. package/types/category-search/src/components/label-menu.d.ts +1 -1
  181. package/types/category-search/src/components/number-range-menu.d.ts +1 -1
  182. package/types/category-search/src/components/radio-menu.d.ts +1 -1
  183. package/types/category-search/src/components/text-input-menu.d.ts +1 -1
  184. package/types/category-search/src/composables/use-category-search.d.ts +1 -1
  185. package/types/checkbox/src/checkbox-button.d.ts +1 -1
  186. package/types/checkbox/src/checkbox-group.d.ts +1 -1
  187. package/types/checkbox/src/checkbox-types.d.ts +7 -7
  188. package/types/checkbox/src/checkbox.d.ts +1 -1
  189. package/types/code-editor/src/code-editor-types.d.ts +3 -3
  190. package/types/code-editor/src/code-editor.d.ts +1 -1
  191. package/types/code-review/src/code-review-types.d.ts +6 -6
  192. package/types/code-review/src/code-review.d.ts +1 -1
  193. package/types/code-review/src/components/code-review-header.d.ts +1 -1
  194. package/types/code-review/src/composables/use-code-review-fold.d.ts +1 -1
  195. package/types/collapse/src/collapse-item.d.ts +1 -1
  196. package/types/collapse/src/collapse-types.d.ts +3 -3
  197. package/types/collapse/src/collapse.d.ts +1 -1
  198. package/types/color-picker/src/color-picker-types.d.ts +1 -1
  199. package/types/color-picker/src/color-picker.d.ts +1 -1
  200. package/types/color-picker/src/components/color-alpha-slider/color-alpha-slider.d.ts +1 -1
  201. package/types/color-picker/src/components/color-alpha-slider/color-picker-alpha-slider-types.d.ts +1 -1
  202. package/types/color-picker/src/components/color-basic/color-basic-types.d.ts +1 -1
  203. package/types/color-picker/src/components/color-basic/color-basic.d.ts +1 -1
  204. package/types/color-picker/src/components/color-edit/color-edit.d.ts +1 -1
  205. package/types/color-picker/src/components/color-edit/color-picker-edit-types.d.ts +1 -1
  206. package/types/color-picker/src/components/color-history/color-history.d.ts +1 -1
  207. package/types/color-picker/src/components/color-history/color-picker-history-types.d.ts +1 -1
  208. package/types/color-picker/src/components/color-hue-slider/color-hue-slider.d.ts +1 -1
  209. package/types/color-picker/src/components/color-hue-slider/color-picker-hue-slider-types.d.ts +1 -1
  210. package/types/color-picker/src/components/color-palette/color-palette.d.ts +1 -1
  211. package/types/color-picker/src/components/color-palette/color-picker-palette-types.d.ts +1 -1
  212. package/types/color-picker/src/components/color-picker-panel/color-picker-panel-types.d.ts +1 -1
  213. package/types/color-picker/src/components/color-picker-panel/color-picker-panel.d.ts +1 -1
  214. package/types/color-picker/src/utils/color-utils-types.d.ts +11 -11
  215. package/types/color-picker/src/utils/dom-dragger.d.ts +1 -1
  216. package/types/comment/src/comment-types.d.ts +1 -1
  217. package/types/comment/src/comment.d.ts +1 -1
  218. package/types/countdown/src/countdown-types.d.ts +1 -1
  219. package/types/countdown/src/countdown.d.ts +1 -1
  220. package/types/data-grid/src/components/fix-head-grid.d.ts +1 -1
  221. package/types/data-grid/src/components/grid-body.d.ts +1 -1
  222. package/types/data-grid/src/components/grid-head.d.ts +1 -1
  223. package/types/data-grid/src/components/grid-td.d.ts +1 -1
  224. package/types/data-grid/src/components/grid-th-filter.d.ts +1 -1
  225. package/types/data-grid/src/components/grid-th-multiple-filter.d.ts +1 -1
  226. package/types/data-grid/src/components/grid-th-single-filter.d.ts +1 -1
  227. package/types/data-grid/src/components/grid-th.d.ts +1 -1
  228. package/types/data-grid/src/components/normal-head-grid.d.ts +1 -1
  229. package/types/data-grid/src/composables/use-column-sort.d.ts +1 -1
  230. package/types/data-grid/src/composables/use-data-grid-tree.d.ts +4 -4
  231. package/types/data-grid/src/data-grid-types.d.ts +19 -19
  232. package/types/data-grid/src/data-grid.d.ts +1 -1
  233. package/types/date-picker/src/components/popup/index.d.ts +1 -3
  234. package/types/date-picker/src/components/timepicker/index.d.ts +1 -1
  235. package/types/date-picker/src/components/today-default/index.d.ts +1 -1
  236. package/types/date-picker/src/components/types.d.ts +16 -16
  237. package/types/date-picker/src/components/utils.d.ts +3 -3
  238. package/types/date-picker/src/components/vertical-slider/index.d.ts +1 -1
  239. package/types/date-picker/src/date-picker-types.d.ts +5 -5
  240. package/types/date-picker/src/date-picker.d.ts +1 -1
  241. package/types/date-picker/src/stick-slider/index.d.ts +1 -1
  242. package/types/date-picker/src/utils.d.ts +1 -1
  243. package/types/date-picker-pro/src/components/calendar-panel.d.ts +1 -1
  244. package/types/date-picker-pro/src/components/date-picker-panel.d.ts +1 -1
  245. package/types/date-picker-pro/src/components/month-calendar-panel.d.ts +1 -1
  246. package/types/date-picker-pro/src/components/range-date-picker-pro.d.ts +1 -1
  247. package/types/date-picker-pro/src/components/time-picker-panel.d.ts +1 -1
  248. package/types/date-picker-pro/src/components/year-calendar-panel.d.ts +1 -1
  249. package/types/date-picker-pro/src/date-picker-pro-types.d.ts +4 -4
  250. package/types/date-picker-pro/src/date-picker-pro.d.ts +1 -1
  251. package/types/date-picker-pro/src/range-date-picker-types.d.ts +1 -1
  252. package/types/dragdrop-new/src/batch-draggable.directive.d.ts +1 -1
  253. package/types/dragdrop-new/src/directive-base.d.ts +1 -1
  254. package/types/dragdrop-new/src/drag-preview-clone-dom-ref.component.d.ts +1 -1
  255. package/types/dragdrop-new/src/drag-preview.component.d.ts +2 -2
  256. package/types/dragdrop-new/src/drop-scroll-enhance.directive.d.ts +5 -5
  257. package/types/dragdrop-new/src/droppable.directive.d.ts +1 -1
  258. package/types/drawer/src/components/drawer-overlay.d.ts +1 -1
  259. package/types/drawer/src/drawer-types.d.ts +6 -6
  260. package/types/drawer/src/drawer.d.ts +1 -1
  261. package/types/dropdown/src/dropdown-menu-types.d.ts +5 -5
  262. package/types/dropdown/src/dropdown-menu.d.ts +1 -1
  263. package/types/dropdown/src/dropdown-types.d.ts +6 -6
  264. package/types/dropdown/src/dropdown.d.ts +1 -1
  265. package/types/echarts/src/echarts-types.d.ts +1 -1
  266. package/types/echarts/src/echarts.d.ts +1 -1
  267. package/types/editable-select/src/components/dropdown/dropdown-types.d.ts +1 -1
  268. package/types/editable-select/src/components/dropdown/dropdown.d.ts +1 -1
  269. package/types/editable-select/src/components/option/option-types.d.ts +1 -1
  270. package/types/editable-select/src/components/option/option.d.ts +1 -1
  271. package/types/editable-select/src/composables/use-select.d.ts +1 -1
  272. package/types/editable-select/src/editable-select-types.d.ts +4 -4
  273. package/types/editable-select/src/editable-select.d.ts +1 -1
  274. package/types/editor-md/src/components/font-color.d.ts +1 -1
  275. package/types/editor-md/src/components/font-size.d.ts +1 -1
  276. package/types/editor-md/src/components/md-render.d.ts +1 -1
  277. package/types/editor-md/src/components/toolbar-item.d.ts +1 -1
  278. package/types/editor-md/src/components/toolbar.d.ts +1 -1
  279. package/types/editor-md/src/composables/use-editor-md-toolbar.d.ts +1 -0
  280. package/types/editor-md/src/composables/use-editor-md.d.ts +2 -0
  281. package/types/editor-md/src/editor-md-types.d.ts +6 -5
  282. package/types/editor-md/src/editor-md.d.ts +1 -1
  283. package/types/form/src/components/form-control/form-control-types.d.ts +2 -2
  284. package/types/form/src/components/form-control/form-control.d.ts +1 -1
  285. package/types/form/src/components/form-item/form-item-types.d.ts +7 -7
  286. package/types/form/src/components/form-item/form-item.d.ts +1 -1
  287. package/types/form/src/components/form-label/form-label-types.d.ts +1 -1
  288. package/types/form/src/components/form-label/form-label.d.ts +1 -1
  289. package/types/form/src/components/form-operation/form-operation.d.ts +1 -1
  290. package/types/form/src/form-types.d.ts +10 -10
  291. package/types/form/src/form.d.ts +1 -1
  292. package/types/fullscreen/src/fullscreen-types.d.ts +2 -2
  293. package/types/fullscreen/src/fullscreen.d.ts +1 -1
  294. package/types/gantt/src/gantt-bar/index.d.ts +1 -1
  295. package/types/gantt/src/gantt-bar-parent/index.d.ts +1 -1
  296. package/types/gantt/src/gantt-milestone/index.d.ts +1 -1
  297. package/types/gantt/src/gantt-milestone/milestone-icon.d.ts +1 -1
  298. package/types/gantt/src/gantt-scale/index.d.ts +4 -1
  299. package/types/gantt/src/gantt-tools/index.d.ts +1 -1
  300. package/types/gantt/src/gantt-types.d.ts +1 -1
  301. package/types/gantt/src/gantt.d.ts +1 -1
  302. package/types/git-graph/src/git-graph-types.d.ts +1 -1
  303. package/types/git-graph/src/git-graph.d.ts +1 -1
  304. package/types/grid/src/col.d.ts +1 -1
  305. package/types/grid/src/composables/use-screen.d.ts +2 -2
  306. package/types/grid/src/grid-types.d.ts +7 -7
  307. package/types/grid/src/row.d.ts +1 -1
  308. package/types/icon/src/icon-group.d.ts +1 -1
  309. package/types/icon/src/icon.d.ts +1 -1
  310. package/types/icon/src/svg-icon.d.ts +1 -1
  311. package/types/image-preview/src/image-preview-types.d.ts +1 -1
  312. package/types/image-preview/src/image-preview.d.ts +1 -1
  313. package/types/input/src/input-types.d.ts +2 -2
  314. package/types/input/src/input.d.ts +1 -1
  315. package/types/input-icon/src/input-icon.d.ts +1 -1
  316. package/types/input-number/src/input-number-types.d.ts +12 -8
  317. package/types/input-number/src/input-number.d.ts +1 -1
  318. package/types/layout/src/aside.d.ts +1 -1
  319. package/types/layout/src/content.d.ts +1 -1
  320. package/types/layout/src/footer.d.ts +1 -1
  321. package/types/layout/src/header.d.ts +1 -1
  322. package/types/layout/src/layout.d.ts +1 -1
  323. package/types/list/src/list-item.d.ts +1 -1
  324. package/types/list/src/list.d.ts +1 -1
  325. package/types/loading/src/loading-service.d.ts +1 -1
  326. package/types/loading/src/loading-types.d.ts +2 -2
  327. package/types/loading/src/loading.d.ts +52 -0
  328. package/types/locale/index.d.ts +1 -1
  329. package/types/mention/src/mention-types.d.ts +1 -1
  330. package/types/mention/src/mention.d.ts +1 -1
  331. package/types/menu/src/components/menu-item/menu-item-types.d.ts +1 -1
  332. package/types/menu/src/components/menu-item/menu-item.d.ts +1 -1
  333. package/types/menu/src/components/menu-transition/menu-transition.d.ts +1 -1
  334. package/types/menu/src/components/sub-menu/sub-menu-types.d.ts +1 -1
  335. package/types/menu/src/components/sub-menu/sub-menu.d.ts +1 -1
  336. package/types/menu/src/components/sub-menu/use-sub-menu.d.ts +1 -1
  337. package/types/menu/src/menu-types.d.ts +2 -2
  338. package/types/menu/src/menu.d.ts +1 -1
  339. package/types/message/src/instance.d.ts +2 -2
  340. package/types/message/src/message-icon-close.d.ts +1 -1
  341. package/types/message/src/message-types.d.ts +5 -5
  342. package/types/message/src/message.d.ts +1 -1
  343. package/types/modal/src/components/body.d.ts +1 -1
  344. package/types/modal/src/components/footer.d.ts +1 -1
  345. package/types/modal/src/components/header.d.ts +1 -1
  346. package/types/modal/src/modal-types.d.ts +4 -4
  347. package/types/modal/src/modal.d.ts +1 -1
  348. package/types/multi-auto-complete/src/multi-auto-complete-types.d.ts +1 -1
  349. package/types/multi-auto-complete/src/multi-auto-complete.d.ts +1 -1
  350. package/types/nav-sprite/src/nav-sprite-types.d.ts +1 -1
  351. package/types/nav-sprite/src/nav-sprite.d.ts +1 -1
  352. package/types/notification/src/notification-icon-close.d.ts +1 -1
  353. package/types/notification/src/notification-image.d.ts +1 -1
  354. package/types/notification/src/notification-types.d.ts +5 -5
  355. package/types/notification/src/notification.d.ts +1 -1
  356. package/types/overlay/src/base-overlay.d.ts +1 -1
  357. package/types/overlay/src/fixed-overlay/fixed-overlay-types.d.ts +1 -1
  358. package/types/overlay/src/fixed-overlay/index.d.ts +1 -1
  359. package/types/overlay/src/flexible-overlay/flexible-overlay-types.d.ts +6 -6
  360. package/types/overlay/src/flexible-overlay/index.d.ts +1 -1
  361. package/types/pagination/src/components/config-menu.d.ts +1 -1
  362. package/types/pagination/src/components/jump-page.d.ts +1 -1
  363. package/types/pagination/src/components/page-nums.d.ts +1 -1
  364. package/types/pagination/src/components/page-size.d.ts +1 -1
  365. package/types/pagination/src/pagination-types.d.ts +3 -3
  366. package/types/pagination/src/pagination.d.ts +1 -1
  367. package/types/panel/src/components/panel-body.d.ts +1 -1
  368. package/types/panel/src/components/panel-footer.d.ts +1 -1
  369. package/types/panel/src/components/panel-header.d.ts +1 -1
  370. package/types/panel/src/panel-types.d.ts +3 -3
  371. package/types/panel/src/panel.d.ts +1 -1
  372. package/types/popover/src/popover-icon.d.ts +1 -1
  373. package/types/popover/src/popover-types.d.ts +5 -5
  374. package/types/popover/src/popover.d.ts +1 -1
  375. package/types/progress/src/progress-types.d.ts +1 -1
  376. package/types/progress/src/progress.d.ts +1 -1
  377. package/types/quadrant-diagram/src/components/axis/index.d.ts +1 -1
  378. package/types/quadrant-diagram/src/components/axis/types.d.ts +1 -1
  379. package/types/quadrant-diagram/src/quadrant-diagram-types.d.ts +1 -1
  380. package/types/quadrant-diagram/src/quadrant-diagram.d.ts +1 -1
  381. package/types/quadrant-diagram/type.d.ts +1 -1
  382. package/types/radio/src/radio-button.d.ts +1 -1
  383. package/types/radio/src/radio-group.d.ts +1 -1
  384. package/types/radio/src/radio-types.d.ts +6 -6
  385. package/types/radio/src/radio.d.ts +1 -1
  386. package/types/rate/src/rate-types.d.ts +2 -2
  387. package/types/rate/src/rate.d.ts +3 -3
  388. package/types/read-tip/src/read-tip-template.d.ts +1 -1
  389. package/types/read-tip/src/read-tip-types.d.ts +7 -7
  390. package/types/read-tip/src/read-tip.d.ts +1 -1
  391. package/types/result/src/result-types.d.ts +2 -2
  392. package/types/result/src/result.d.ts +1 -1
  393. package/types/search/src/composables/use-search-keydown.d.ts +1 -1
  394. package/types/search/src/composables/use-search-keywords.d.ts +1 -1
  395. package/types/search/src/search-types.d.ts +3 -3
  396. package/types/search/src/search.d.ts +1 -1
  397. package/types/select/src/components/option-group.d.ts +1 -1
  398. package/types/select/src/components/option.d.ts +1 -1
  399. package/types/select/src/components/select-content.d.ts +1 -1
  400. package/types/select/src/select-types.d.ts +11 -11
  401. package/types/select/src/select.d.ts +1 -1
  402. package/types/select/src/utils.d.ts +1 -1
  403. package/types/shared/components/popper-trigger/src/popper-trigger.d.ts +1 -1
  404. package/types/shared/devui-api/devui-api.d.ts +1 -1
  405. package/types/shared/devui-api-table/devui-api-table.d.ts +1 -1
  406. package/types/shared/devui-api-table/devui-api-table.type.d.ts +3 -3
  407. package/types/shared/devui-codebox/codebox-collapse-icon.d.ts +1 -1
  408. package/types/shared/devui-codebox/codebox-copied-icon.d.ts +1 -1
  409. package/types/shared/devui-codebox/codebox-copy-icon.d.ts +1 -1
  410. package/types/shared/devui-codebox/devui-codebox.d.ts +1 -1
  411. package/types/shared/devui-highlight/devui-highlight.d.ts +1 -1
  412. package/types/shared/hooks/use-namespace.d.ts +1 -1
  413. package/types/shared/utils/use-namespace.d.ts +1 -1
  414. package/types/skeleton/src/components/skeleton-item-types.d.ts +3 -3
  415. package/types/skeleton/src/components/skeleton-item.d.ts +1 -1
  416. package/types/skeleton/src/skeleton-types.d.ts +1 -1
  417. package/types/skeleton/src/skeleton.d.ts +1 -3
  418. package/types/slider/src/slider-types.d.ts +1 -1
  419. package/types/slider/src/slider.d.ts +1 -1
  420. package/types/splitter/src/components/splitter-bar-types.d.ts +1 -1
  421. package/types/splitter/src/components/splitter-bar.d.ts +1 -1
  422. package/types/splitter/src/components/splitter-pane-types.d.ts +1 -1
  423. package/types/splitter/src/components/splitter-pane.d.ts +1 -1
  424. package/types/splitter/src/d-resize-directive.d.ts +1 -1
  425. package/types/splitter/src/splitter-store.d.ts +1 -1
  426. package/types/splitter/src/splitter-types.d.ts +3 -3
  427. package/types/splitter/src/splitter.d.ts +1 -1
  428. package/types/statistic/src/statistic-types.d.ts +1 -1
  429. package/types/statistic/src/statistic.d.ts +1 -1
  430. package/types/statistic/src/utils/animation.d.ts +5 -5
  431. package/types/statistic/src/utils/separator.d.ts +1 -1
  432. package/types/status/src/status-types.d.ts +1 -1
  433. package/types/status/src/status.d.ts +1 -1
  434. package/types/steps/src/step-types.d.ts +2 -2
  435. package/types/steps/src/step.d.ts +1 -1
  436. package/types/steps/src/steps-types.d.ts +2 -2
  437. package/types/steps/src/steps.d.ts +1 -1
  438. package/types/steps-guide/__tests__/steps-guide-demo.d.ts +1 -1
  439. package/types/steps-guide/src/steps-guide-types.d.ts +4 -4
  440. package/types/steps-guide/src/steps-guide.d.ts +1 -1
  441. package/types/sticky/src/sticky.d.ts +1 -1
  442. package/types/switch/src/switch-types.d.ts +3 -3
  443. package/types/switch/src/switch.d.ts +1 -1
  444. package/types/table/src/components/body/body.d.ts +1 -1
  445. package/types/table/src/components/body-td/body-td-types.d.ts +1 -1
  446. package/types/table/src/components/body-td/body-td.d.ts +1 -1
  447. package/types/table/src/components/colgroup/colgroup.d.ts +1 -1
  448. package/types/table/src/components/column/column-types.d.ts +8 -8
  449. package/types/table/src/components/column/column.d.ts +1 -1
  450. package/types/table/src/components/filter/filter-types.d.ts +1 -1
  451. package/types/table/src/components/filter/filter.d.ts +1 -1
  452. package/types/table/src/components/filter/multiple-filter.d.ts +1 -1
  453. package/types/table/src/components/filter/single-filter.d.ts +1 -1
  454. package/types/table/src/components/fix-header.d.ts +1 -1
  455. package/types/table/src/components/header/header.d.ts +1 -1
  456. package/types/table/src/components/header/header.type.d.ts +1 -1
  457. package/types/table/src/components/header-th/header-th-types.d.ts +1 -1
  458. package/types/table/src/components/header-th/header-th.d.ts +1 -1
  459. package/types/table/src/components/normal-header.d.ts +1 -1
  460. package/types/table/src/components/sort/sort-types.d.ts +1 -1
  461. package/types/table/src/components/sort/sort.d.ts +1 -1
  462. package/types/table/src/table-types.d.ts +8 -8
  463. package/types/table/src/table.d.ts +1 -1
  464. package/types/tabs/src/components/tab/tab-types.d.ts +1 -1
  465. package/types/tabs/src/components/tab/tab.d.ts +1 -1
  466. package/types/tabs/src/components/tab-nav/tab-nav.d.ts +1 -1
  467. package/types/tabs/src/tabs-types.d.ts +5 -5
  468. package/types/tabs/src/tabs.d.ts +1 -1
  469. package/types/tag/src/tag-types.d.ts +3 -3
  470. package/types/tag/src/tag.d.ts +1 -1
  471. package/types/tag-input/src/components/icon-remove.d.ts +1 -1
  472. package/types/tag-input/src/tag-input-types.d.ts +3 -3
  473. package/types/tag-input/src/tag-input.d.ts +1 -1
  474. package/types/textarea/src/textarea-types.d.ts +3 -3
  475. package/types/textarea/src/textarea.d.ts +1 -1
  476. package/types/textarea/src/utils.d.ts +1 -1
  477. package/types/time-picker/src/components/popup-line/index.d.ts +1 -1
  478. package/types/time-picker/src/components/popup-line/popup-line-types.d.ts +1 -1
  479. package/types/time-picker/src/components/time-popup/index.d.ts +1 -1
  480. package/types/time-picker/src/components/time-popup/time-popup-types.d.ts +1 -1
  481. package/types/time-picker/src/components/time-scroll/index.d.ts +1 -1
  482. package/types/time-picker/src/time-picker-types.d.ts +2 -2
  483. package/types/time-picker/src/time-picker.d.ts +1 -1
  484. package/types/time-picker/src/types.d.ts +8 -8
  485. package/types/time-select/src/time-select-types.d.ts +3 -3
  486. package/types/time-select/src/time-select.d.ts +1 -1
  487. package/types/timeline/src/components/timeline-item-types.d.ts +3 -3
  488. package/types/timeline/src/components/timeline-item.d.ts +1 -1
  489. package/types/timeline/src/timeline-types.d.ts +5 -5
  490. package/types/timeline/src/timeline.d.ts +1 -1
  491. package/types/tooltip/src/tooltip-types.d.ts +3 -3
  492. package/types/tooltip/src/tooltip.d.ts +1 -1
  493. package/types/transfer/src/components/transfer-body.d.ts +1 -1
  494. package/types/transfer/src/components/transfer-header.d.ts +1 -1
  495. package/types/transfer/src/components/transfer-operate.d.ts +1 -1
  496. package/types/transfer/src/components/transfer-panel.d.ts +1 -1
  497. package/types/transfer/src/composables/use-transfer-body.d.ts +80 -0
  498. package/types/transfer/src/composables/use-transfer-header.d.ts +1 -1
  499. package/types/transfer/src/composables/use-transfer-operate.d.ts +1 -1
  500. package/types/transfer/src/composables/use-transfer-panel.d.ts +1 -1
  501. package/types/transfer/src/transfer-types.d.ts +3 -3
  502. package/types/transfer/src/transfer.d.ts +1 -1
  503. package/types/tree/src/components/tree-node-content.d.ts +1 -1
  504. package/types/tree/src/components/tree-node-loading.d.ts +1 -1
  505. package/types/tree/src/components/tree-node-toggle.d.ts +1 -1
  506. package/types/tree/src/components/tree-node.d.ts +1 -1
  507. package/types/tree/src/composables/use-tree-types.d.ts +7 -7
  508. package/types/tree/src/tree-types.d.ts +2 -2
  509. package/types/tree/src/tree.d.ts +1 -1
  510. package/types/tree/src/utils.d.ts +1 -1
  511. package/types/tree-select/assets/close.d.ts +1 -1
  512. package/types/tree-select/assets/open.d.ts +1 -1
  513. package/types/tree-select/src/tree-select-types.d.ts +3 -3
  514. package/types/tree-select/src/tree-select.d.ts +1 -1
  515. package/types/upload/src/composables/use-select-files.d.ts +1 -1
  516. package/types/upload/src/upload-types.d.ts +4 -4
  517. package/types/upload/src/upload.d.ts +11 -34
  518. package/types/virtual-list/src/components/container.d.ts +1 -1
  519. package/types/virtual-list/src/components/resize-observer.d.ts +1 -1
  520. package/types/virtual-list/src/components/scroll-bar.d.ts +1 -1
  521. package/types/virtual-list/src/utils.d.ts +2 -6
  522. package/types/virtual-list/src/virtual-list-types.d.ts +4 -4
  523. package/types/virtual-list/src/virtual-list.d.ts +1 -1
  524. package/upload/index.es.js +28 -63
  525. package/upload/index.umd.js +3 -3
  526. package/vue-devui.es.js +3276 -3728
  527. package/vue-devui.umd.js +103 -107
  528. package/types/carousel/src/components/carousel-icons.d.ts +0 -2
  529. package/types/category-search/src/components/category-search-icons.d.ts +0 -4
  530. package/types/code-review/src/components/code-review-icons.d.ts +0 -6
  531. package/types/data-grid/src/components/grid-icons.d.ts +0 -4
  532. package/types/form/src/components/form-icons.d.ts +0 -4
  533. package/types/icon/src/icon-types.d.ts +0 -54
  534. package/types/input-number/src/input-number-icons.d.ts +0 -2
  535. package/types/menu/src/composables/use-layer-operate.d.ts +0 -9
  536. package/types/message/src/message-icons.d.ts +0 -4
  537. package/types/modal/src/components/modal-icons.d.ts +0 -1
  538. package/types/notification/src/notification-icons.d.ts +0 -4
  539. package/types/pagination/src/components/page-link-icons.d.ts +0 -2
  540. package/types/popover/src/popover-icons.d.ts +0 -4
  541. package/types/shared/hooks/use-demo.d.ts +0 -9
  542. package/types/skeleton/src/components/image-icon.d.ts +0 -1
  543. package/types/svg-icons/index.d.ts +0 -3
@@ -1,19 +1,6 @@
1
- var xr=Object.defineProperty;var Pr=(g,D,L)=>D in g?xr(g,D,{enumerable:!0,configurable:!0,writable:!0,value:L}):g[D]=L;var o=(g,D,L)=>(Pr(g,typeof D!="symbol"?D+"":D,L),L);(function(g,D){typeof exports=="object"&&typeof module!="undefined"?D(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],D):(g=typeof globalThis!="undefined"?globalThis:g||self,D(g.index={},g.Vue))})(this,function(g,D){var _r;"use strict";/*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */var L=function(i,e){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},L(i,e)};function R(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");L(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function yt(i,e,t,r){function n(s){return s instanceof t?s:new t(function(a){a(s)})}return new(t||(t=Promise))(function(s,a){function l(h){try{d(r.next(h))}catch(u){a(u)}}function c(h){try{d(r.throw(h))}catch(u){a(u)}}function d(h){h.done?s(h.value):n(h.value).then(l,c)}d((r=r.apply(i,e||[])).next())})}function xe(i,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,n,s,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(d){return function(h){return c([d,h])}}function c(d){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(s=d[0]&2?n.return:d[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,d[1])).done)return s;switch(n=0,s&&(d=[d[0]&2,s.value]),d[0]){case 0:case 1:s=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,n=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]<s[3])){t.label=d[1];break}if(d[0]===6&&t.label<s[1]){t.label=s[1],s=d;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(d);break}s[2]&&t.ops.pop(),t.trys.pop();continue}d=e.call(i,t)}catch(h){d=[6,h],n=0}finally{r=s=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function U(i){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&i[e],r=0;if(t)return t.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function H(i,e){var t=typeof Symbol=="function"&&i[Symbol.iterator];if(!t)return i;var r=t.call(i),n,s=[],a;try{for(;(e===void 0||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return s}function k(i,e,t){if(t||arguments.length===2)for(var r=0,n=e.length,s;r<n;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return i.concat(s||Array.prototype.slice.call(e))}function q(i){return this instanceof q?(this.v=i,this):new q(i)}function bt(i,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(i,e||[]),n,s=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(f){r[f]&&(n[f]=function(y){return new Promise(function(w,S){s.push([f,y,w,S])>1||l(f,y)})})}function l(f,y){try{c(r[f](y))}catch(w){u(s[0][3],w)}}function c(f){f.value instanceof q?Promise.resolve(f.value.v).then(d,h):u(s[0][2],f)}function d(f){l("next",f)}function h(f){l("throw",f)}function u(f,y){f(y),s.shift(),s.length&&l(s[0][0],s[0][1])}}function Et(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=i[Symbol.asyncIterator],t;return e?e.call(i):(i=typeof U=="function"?U(i):i[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=i[s]&&function(a){return new Promise(function(l,c){a=i[s](a),n(l,c,a.done,a.value)})}}function n(s,a,l,c){Promise.resolve(c).then(function(d){s({value:d,done:l})},a)}}function v(i){return typeof i=="function"}function Pe(i){var e=function(r){Error.call(r),r.stack=new Error().stack},t=i(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var ge=Pe(function(i){return function(t){i(this),this.message=t?t.length+` errors occurred during unsubscription:
1
+ (function(u,m){typeof exports=="object"&&typeof module!="undefined"?m(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],m):(u=typeof globalThis!="undefined"?globalThis:u||self,m(u.index={},u.Vue))})(this,function(u,m){"use strict";var Ir=Object.defineProperty;var Cr=(u,m,N)=>m in u?Ir(u,m,{enumerable:!0,configurable:!0,writable:!0,value:N}):u[m]=N;var Ce=(u,m,N)=>(Cr(u,typeof m!="symbol"?m+"":m,N),N);var N=function(i,e){return N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},N(i,e)};function L(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");N(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Dt(i,e,t,r){function n(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function a(d){try{c(r.next(d))}catch(h){o(h)}}function l(d){try{c(r.throw(d))}catch(h){o(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})}function Oe(i,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,n,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(d){return l([c,d])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(t=0)),t;)try{if(r=1,n&&(s=c[0]&2?n.return:c[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,c[1])).done)return s;switch(n=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,n=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){t.label=c[1];break}if(c[0]===6&&t.label<s[1]){t.label=s[1],s=c;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(c);break}s[2]&&t.ops.pop(),t.trys.pop();continue}c=e.call(i,t)}catch(d){c=[6,d],n=0}finally{r=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function W(i){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&i[e],r=0;if(t)return t.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function K(i,e){var t=typeof Symbol=="function"&&i[Symbol.iterator];if(!t)return i;var r=t.call(i),n,s=[],o;try{for(;(e===void 0||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(o)throw o.error}}return s}function Y(i,e,t){if(t||arguments.length===2)for(var r=0,n=e.length,s;r<n;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return i.concat(s||Array.prototype.slice.call(e))}function U(i){return this instanceof U?(this.v=i,this):new U(i)}function mt(i,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(i,e||[]),n,s=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(g){r[g]&&(n[g]=function(S){return new Promise(function(b,D){s.push([g,S,b,D])>1||a(g,S)})})}function a(g,S){try{l(r[g](S))}catch(b){h(s[0][3],b)}}function l(g){g.value instanceof U?Promise.resolve(g.value.v).then(c,d):h(s[0][2],g)}function c(g){a("next",g)}function d(g){a("throw",g)}function h(g,S){g(S),s.shift(),s.length&&a(s[0][0],s[0][1])}}function St(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=i[Symbol.asyncIterator],t;return e?e.call(i):(i=typeof W=="function"?W(i):i[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=i[s]&&function(o){return new Promise(function(a,l){o=i[s](o),n(a,l,o.done,o.value)})}}function n(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}}typeof SuppressedError=="function"&&SuppressedError;function p(i){return typeof i=="function"}function Te(i){var e=function(r){Error.call(r),r.stack=new Error().stack},t=i(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var de=Te(function(i){return function(t){i(this),this.message=t?t.length+` errors occurred during unsubscription:
15
2
  `+t.map(function(r,n){return n+1+") "+r.toString()}).join(`
16
- `):"",this.name="UnsubscriptionError",this.errors=t}});function se(i,e){if(i){var t=i.indexOf(e);0<=t&&i.splice(t,1)}}var C=function(){function i(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var e,t,r,n,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var l=U(a),c=l.next();!c.done;c=l.next()){var d=c.value;d.remove(this)}}catch(S){e={error:S}}finally{try{c&&!c.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}else a.remove(this);var h=this.initialTeardown;if(v(h))try{h()}catch(S){s=S instanceof ge?S.errors:[S]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var f=U(u),y=f.next();!y.done;y=f.next()){var w=y.value;try{Le(w)}catch(S){s=s!=null?s:[],S instanceof ge?s=k(k([],H(s)),H(S.errors)):s.push(S)}}}catch(S){r={error:S}}finally{try{y&&!y.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}}if(s)throw new ge(s)}},i.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Le(e);else{if(e instanceof i){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},i.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},i.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},i.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&se(t,e)},i.prototype.remove=function(e){var t=this._finalizers;t&&se(t,e),e instanceof i&&e._removeParent(this)},i.EMPTY=function(){var e=new i;return e.closed=!0,e}(),i}(),_e=C.EMPTY;function Ne(i){return i instanceof C||i&&"closed"in i&&v(i.remove)&&v(i.add)&&v(i.unsubscribe)}function Le(i){v(i)?i():i.unsubscribe()}var re={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},oe={setTimeout:function(i,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var n=oe.delegate;return(n==null?void 0:n.setTimeout)?n.setTimeout.apply(n,k([i,e],H(t))):setTimeout.apply(void 0,k([i,e],H(t)))},clearTimeout:function(i){var e=oe.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(i)},delegate:void 0};function Re(i){oe.setTimeout(function(){var e=re.onUnhandledError;if(e)e(i);else throw i})}function Fe(){}var wt=function(){return fe("C",void 0,void 0)}();function It(i){return fe("E",void 0,i)}function Ot(i){return fe("N",i,void 0)}function fe(i,e,t){return{kind:i,value:e,error:t}}var ae=null;function le(i){if(re.useDeprecatedSynchronousErrorHandling){var e=!ae;if(e&&(ae={errorThrown:!1,error:null}),i(),e){var t=ae,r=t.errorThrown,n=t.error;if(ae=null,r)throw n}}else i()}var pe=function(i){R(e,i);function e(t){var r=i.call(this)||this;return r.isStopped=!1,t?(r.destination=t,Ne(t)&&t.add(r)):r.destination=xt,r}return e.create=function(t,r,n){return new me(t,r,n)},e.prototype.next=function(t){this.isStopped?Se(Ot(t),this):this._next(t)},e.prototype.error=function(t){this.isStopped?Se(It(t),this):(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped?Se(wt,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(C),Ct=Function.prototype.bind;function ve(i,e){return Ct.call(i,e)}var At=function(){function i(e){this.partialObserver=e}return i.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(r){ce(r)}},i.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){ce(r)}else ce(e)},i.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){ce(t)}},i}(),me=function(i){R(e,i);function e(t,r,n){var s=i.call(this)||this,a;if(v(t)||!t)a={next:t!=null?t:void 0,error:r!=null?r:void 0,complete:n!=null?n:void 0};else{var l;s&&re.useDeprecatedNextContext?(l=Object.create(t),l.unsubscribe=function(){return s.unsubscribe()},a={next:t.next&&ve(t.next,l),error:t.error&&ve(t.error,l),complete:t.complete&&ve(t.complete,l)}):a=t}return s.destination=new At(a),s}return e}(pe);function ce(i){Re(i)}function Tt(i){throw i}function Se(i,e){var t=re.onStoppedNotification;t&&oe.setTimeout(function(){return t(i,e)})}var xt={closed:!0,next:Fe,error:Tt,complete:Fe},De=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function de(i){return i}function Pt(i){return i.length===0?de:i.length===1?i[0]:function(t){return i.reduce(function(r,n){return n(r)},t)}}var T=function(){function i(e){e&&(this._subscribe=e)}return i.prototype.lift=function(e){var t=new i;return t.source=this,t.operator=e,t},i.prototype.subscribe=function(e,t,r){var n=this,s=Nt(e)?e:new me(e,t,r);return le(function(){var a=n,l=a.operator,c=a.source;s.add(l?l.call(s,c):c?n._subscribe(s):n._trySubscribe(s))}),s},i.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},i.prototype.forEach=function(e,t){var r=this;return t=Me(t),new t(function(n,s){var a=new me({next:function(l){try{e(l)}catch(c){s(c),a.unsubscribe()}},error:s,complete:n});r.subscribe(a)})},i.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},i.prototype[De]=function(){return this},i.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Pt(e)(this)},i.prototype.toPromise=function(e){var t=this;return e=Me(e),new e(function(r,n){var s;t.subscribe(function(a){return s=a},function(a){return n(a)},function(){return r(s)})})},i.create=function(e){return new i(e)},i}();function Me(i){var e;return(e=i!=null?i:re.Promise)!==null&&e!==void 0?e:Promise}function _t(i){return i&&v(i.next)&&v(i.error)&&v(i.complete)}function Nt(i){return i&&i instanceof pe||_t(i)&&Ne(i)}function Lt(i){return v(i==null?void 0:i.lift)}function F(i){return function(e){if(Lt(e))return e.lift(function(t){try{return i(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function _(i,e,t,r,n){return new Rt(i,e,t,r,n)}var Rt=function(i){R(e,i);function e(t,r,n,s,a,l){var c=i.call(this,t)||this;return c.onFinalize=a,c.shouldUnsubscribe=l,c._next=r?function(d){try{r(d)}catch(h){t.error(h)}}:i.prototype._next,c._error=s?function(d){try{s(d)}catch(h){t.error(h)}finally{this.unsubscribe()}}:i.prototype._error,c._complete=n?function(){try{n()}catch(d){t.error(d)}finally{this.unsubscribe()}}:i.prototype._complete,c}return e.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;i.prototype.unsubscribe.call(this),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},e}(pe),Ft=Pe(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),P=function(i){R(e,i);function e(){var t=i.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var r=new Be(this,this);return r.operator=t,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new Ft},e.prototype.next=function(t){var r=this;le(function(){var n,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var a=U(r.currentObservers),l=a.next();!l.done;l=a.next()){var c=l.value;c.next(t)}}catch(d){n={error:d}}finally{try{l&&!l.done&&(s=a.return)&&s.call(a)}finally{if(n)throw n.error}}}})},e.prototype.error=function(t){var r=this;le(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var n=r.observers;n.length;)n.shift().error(t)}})},e.prototype.complete=function(){var t=this;le(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var r=this,n=this,s=n.hasError,a=n.isStopped,l=n.observers;return s||a?_e:(this.currentObservers=null,l.push(t),new C(function(){r.currentObservers=null,se(l,t)}))},e.prototype._checkFinalizedStatuses=function(t){var r=this,n=r.hasError,s=r.thrownError,a=r.isStopped;n?t.error(s):a&&t.complete()},e.prototype.asObservable=function(){var t=new T;return t.source=this,t},e.create=function(t,r){return new Be(t,r)},e}(T),Be=function(i){R(e,i);function e(t,r){var n=i.call(this)||this;return n.destination=t,n.source=r,n}return e.prototype.next=function(t){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,t)},e.prototype.error=function(t){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,t)},e.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},e.prototype._subscribe=function(t){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&n!==void 0?n:_e},e}(P),Mt=function(i){R(e,i);function e(t){var r=i.call(this)||this;return r._value=t,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(t){var r=i.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},e.prototype.getValue=function(){var t=this,r=t.hasError,n=t.thrownError,s=t._value;if(r)throw n;return this._throwIfClosed(),s},e.prototype.next=function(t){i.prototype.next.call(this,this._value=t)},e}(P),Ke={now:function(){return(Ke.delegate||Date).now()},delegate:void 0},Bt=function(i){R(e,i);function e(t,r){return i.call(this)||this}return e.prototype.schedule=function(t,r){return this},e}(C),he={setInterval:function(i,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var n=he.delegate;return(n==null?void 0:n.setInterval)?n.setInterval.apply(n,k([i,e],H(t))):setInterval.apply(void 0,k([i,e],H(t)))},clearInterval:function(i){var e=he.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(i)},delegate:void 0},Kt=function(i){R(e,i);function e(t,r){var n=i.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return e.prototype.schedule=function(t,r){var n;if(r===void 0&&(r=0),this.closed)return this;this.state=t;var s=this.id,a=this.scheduler;return s!=null&&(this.id=this.recycleAsyncId(a,s,r)),this.pending=!0,this.delay=r,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(a,this.id,r),this},e.prototype.requestAsyncId=function(t,r,n){return n===void 0&&(n=0),he.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,r,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return r;r!=null&&he.clearInterval(r)},e.prototype.execute=function(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,r);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,r){var n=!1,s;try{this.work(t)}catch(a){n=!0,s=a||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),s},e.prototype.unsubscribe=function(){if(!this.closed){var t=this,r=t.id,n=t.scheduler,s=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,se(s,this),r!=null&&(this.id=this.recycleAsyncId(n,r,null)),this.delay=null,i.prototype.unsubscribe.call(this)}},e}(Bt),He=function(){function i(e,t){t===void 0&&(t=i.now),this.schedulerActionCtor=e,this.now=t}return i.prototype.schedule=function(e,t,r){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},i.now=Ke.now,i}(),Ht=function(i){R(e,i);function e(t,r){r===void 0&&(r=He.now);var n=i.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return e.prototype.flush=function(t){var r=this.actions;if(this._active){r.push(t);return}var n;this._active=!0;do if(n=t.execute(t.state,t.delay))break;while(t=r.shift());if(this._active=!1,n){for(;t=r.shift();)t.unsubscribe();throw n}},e}(He),ye=new Ht(Kt),Vt=ye,Gt=new T(function(i){return i.complete()});function Ve(i){return i&&v(i.schedule)}function Ge(i){return i[i.length-1]}function Yt(i){return Ve(Ge(i))?i.pop():void 0}function kt(i,e){return typeof Ge(i)=="number"?i.pop():e}var be=function(i){return i&&typeof i.length=="number"&&typeof i!="function"};function Ye(i){return v(i==null?void 0:i.then)}function ke(i){return v(i[De])}function je(i){return Symbol.asyncIterator&&v(i==null?void 0:i[Symbol.asyncIterator])}function We(i){return new TypeError("You provided "+(i!==null&&typeof i=="object"?"an invalid object":"'"+i+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function jt(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ue=jt();function qe(i){return v(i==null?void 0:i[Ue])}function Xe(i){return bt(this,arguments,function(){var t,r,n,s;return xe(this,function(a){switch(a.label){case 0:t=i.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,q(t.read())];case 3:return r=a.sent(),n=r.value,s=r.done,s?[4,q(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,q(n)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function ze(i){return v(i==null?void 0:i.getReader)}function V(i){if(i instanceof T)return i;if(i!=null){if(ke(i))return Wt(i);if(be(i))return Ut(i);if(Ye(i))return qt(i);if(je(i))return Ze(i);if(qe(i))return Xt(i);if(ze(i))return zt(i)}throw We(i)}function Wt(i){return new T(function(e){var t=i[De]();if(v(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ut(i){return new T(function(e){for(var t=0;t<i.length&&!e.closed;t++)e.next(i[t]);e.complete()})}function qt(i){return new T(function(e){i.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,Re)})}function Xt(i){return new T(function(e){var t,r;try{for(var n=U(i),s=n.next();!s.done;s=n.next()){var a=s.value;if(e.next(a),e.closed)return}}catch(l){t={error:l}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}e.complete()})}function Ze(i){return new T(function(e){Zt(i,e).catch(function(t){return e.error(t)})})}function zt(i){return Ze(Xe(i))}function Zt(i,e){var t,r,n,s;return yt(this,void 0,void 0,function(){var a,l;return xe(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),t=Et(i),c.label=1;case 1:return[4,t.next()];case 2:if(r=c.sent(),!!r.done)return[3,4];if(a=r.value,e.next(a),e.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=c.sent(),n={error:l},[3,11];case 6:return c.trys.push([6,,9,10]),r&&!r.done&&(s=t.return)?[4,s.call(t)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function G(i,e,t,r,n){r===void 0&&(r=0),n===void 0&&(n=!1);var s=e.schedule(function(){t(),n?i.add(this.schedule(null,r)):this.unsubscribe()},r);if(i.add(s),!n)return s}function Qe(i,e){return e===void 0&&(e=0),F(function(t,r){t.subscribe(_(r,function(n){return G(r,i,function(){return r.next(n)},e)},function(){return G(r,i,function(){return r.complete()},e)},function(n){return G(r,i,function(){return r.error(n)},e)}))})}function Je(i,e){return e===void 0&&(e=0),F(function(t,r){r.add(i.schedule(function(){return t.subscribe(r)},e))})}function Qt(i,e){return V(i).pipe(Je(e),Qe(e))}function Jt(i,e){return V(i).pipe(Je(e),Qe(e))}function $t(i,e){return new T(function(t){var r=0;return e.schedule(function(){r===i.length?t.complete():(t.next(i[r++]),t.closed||this.schedule())})})}function er(i,e){return new T(function(t){var r;return G(t,e,function(){r=i[Ue](),G(t,e,function(){var n,s,a;try{n=r.next(),s=n.value,a=n.done}catch(l){t.error(l);return}a?t.complete():t.next(s)},0,!0)}),function(){return v(r==null?void 0:r.return)&&r.return()}})}function $e(i,e){if(!i)throw new Error("Iterable cannot be null");return new T(function(t){G(t,e,function(){var r=i[Symbol.asyncIterator]();G(t,e,function(){r.next().then(function(n){n.done?t.complete():t.next(n.value)})},0,!0)})})}function tr(i,e){return $e(Xe(i),e)}function rr(i,e){if(i!=null){if(ke(i))return Qt(i,e);if(be(i))return $t(i,e);if(Ye(i))return Jt(i,e);if(je(i))return $e(i,e);if(qe(i))return er(i,e);if(ze(i))return tr(i,e)}throw We(i)}function ir(i,e){return e?rr(i,e):V(i)}function nr(i){return i instanceof Date&&!isNaN(i)}function et(i,e){return F(function(t,r){var n=0;t.subscribe(_(r,function(s){r.next(i.call(e,s,n++))}))})}var sr=Array.isArray;function or(i,e){return sr(e)?i.apply(void 0,k([],H(e))):i(e)}function ar(i){return et(function(e){return or(i,e)})}function lr(i,e,t,r,n,s,a,l){var c=[],d=0,h=0,u=!1,f=function(){u&&!c.length&&!d&&e.complete()},y=function(S){return d<r?w(S):c.push(S)},w=function(S){s&&e.next(S),d++;var x=!1;V(t(S,h++)).subscribe(_(e,function(O){n==null||n(O),s?y(O):e.next(O)},function(){x=!0},void 0,function(){if(x)try{d--;for(var O=function(){var te=c.shift();a?G(e,a,function(){return w(te)}):w(te)};c.length&&d<r;)O();f()}catch(te){e.error(te)}}))};return i.subscribe(_(e,y,function(){u=!0,f()})),function(){l==null||l()}}function Ee(i,e,t){return t===void 0&&(t=1/0),v(e)?Ee(function(r,n){return et(function(s,a){return e(r,s,n,a)})(V(i(r,n)))},t):(typeof e=="number"&&(t=e),F(function(r,n){return lr(r,n,i,t)}))}function cr(i){return i===void 0&&(i=1/0),Ee(de,i)}var dr=["addListener","removeListener"],hr=["addEventListener","removeEventListener"],ur=["on","off"];function I(i,e,t,r){if(v(t)&&(r=t,t=void 0),r)return I(i,e,t).pipe(ar(r));var n=H(pr(i)?hr.map(function(l){return function(c){return i[l](e,c,t)}}):gr(i)?dr.map(tt(i,e)):fr(i)?ur.map(tt(i,e)):[],2),s=n[0],a=n[1];if(!s&&be(i))return Ee(function(l){return I(l,e,t)})(V(i));if(!s)throw new TypeError("Invalid event target");return new T(function(l){var c=function(){for(var d=[],h=0;h<arguments.length;h++)d[h]=arguments[h];return l.next(1<d.length?d:d[0])};return s(c),function(){return a(c)}})}function tt(i,e){return function(t){return function(r){return i[t](e,r)}}}function gr(i){return v(i.addListener)&&v(i.removeListener)}function fr(i){return v(i.on)&&v(i.off)}function pr(i){return v(i.addEventListener)&&v(i.removeEventListener)}function vr(i,e,t){i===void 0&&(i=0),t===void 0&&(t=Vt);var r=-1;return e!=null&&(Ve(e)?t=e:r=e),new T(function(n){var s=nr(i)?+i-t.now():i;s<0&&(s=0);var a=0;return t.schedule(function(){n.closed||(n.next(a++),0<=r?this.schedule(void 0,r):n.complete())},s)})}function we(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];var t=Yt(i),r=kt(i,1/0),n=i;return n.length?n.length===1?V(n[0]):cr(r)(ir(n,t)):Gt}function mr(i,e){return F(function(t,r){var n=0;t.subscribe(_(r,function(s){return i.call(e,s,n++)&&r.next(s)}))})}function Sr(i,e){return e===void 0&&(e=ye),F(function(t,r){var n=null,s=null,a=null,l=function(){if(n){n.unsubscribe(),n=null;var d=s;s=null,r.next(d)}};function c(){var d=a+i,h=e.now();if(h<d){n=this.schedule(void 0,d-h),r.add(n);return}l()}t.subscribe(_(r,function(d){s=d,a=e.now(),n||(n=e.schedule(c,i),r.add(n))},function(){l(),r.complete()},void 0,function(){s=n=null}))})}function Dr(i,e){return e===void 0&&(e=de),i=i!=null?i:yr,F(function(t,r){var n,s=!0;t.subscribe(_(r,function(a){var l=e(a);(s||!i(n,l))&&(s=!1,n=l,r.next(a))}))})}function yr(i,e){return i===e}function rt(i,e,t){var r=v(i)||e||t?{next:i,error:e,complete:t}:i;return r?F(function(n,s){var a;(a=r.subscribe)===null||a===void 0||a.call(r);var l=!0;n.subscribe(_(s,function(c){var d;(d=r.next)===null||d===void 0||d.call(r,c),s.next(c)},function(){var c;l=!1,(c=r.complete)===null||c===void 0||c.call(r),s.complete()},function(c){var d;l=!1,(d=r.error)===null||d===void 0||d.call(r,c),s.error(c)},function(){var c,d;l&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(d=r.finalize)===null||d===void 0||d.call(r)}))}):de}function br(i,e){return F(function(t,r){var n=e!=null?e:{},s=n.leading,a=s===void 0?!0:s,l=n.trailing,c=l===void 0?!1:l,d=!1,h=null,u=null,f=!1,y=function(){u==null||u.unsubscribe(),u=null,c&&(x(),f&&r.complete())},w=function(){u=null,f&&r.complete()},S=function(O){return u=V(i(O)).subscribe(_(r,y,w))},x=function(){if(d){d=!1;var O=h;h=null,r.next(O),!f&&S(O)}};t.subscribe(_(r,function(O){d=!0,h=O,!(u&&!u.closed)&&(a?x():S(O))},function(){f=!0,!(c&&d&&u&&!u.closed)&&r.complete()}))})}function ue(i,e,t){e===void 0&&(e=ye);var r=vr(i,e);return br(function(){return r},t)}class p{static matches(e,t){const r=Element.prototype;return(r.matches||r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector||function(s){const a=(this.document||this.ownerDocument).querySelectorAll(s);let l=a.length;for(;--l>=0&&a.item(l)!==this;);return l>-1}).call(e,t)}static addClass(e,t){if(t===void 0)return;const r=this.getElementWithValidClassList(e);r&&r.classList.add(t)}static removeClass(e,t){if(t===void 0)return;const r=this.getElementWithValidClassList(e);r&&r.classList.remove(t)}static getElementWithValidClassList(e){const t=e.nativeElement?e.nativeElement:e;return t.classList!==void 0&&t.classList!==null?t:null}static slice(e,t,r){const n=[];let s=e.length;if(s===0)return n;const a=t<0?Math.max(0,t+s):t||0;for(r!==void 0&&(s=r<0?r+s:r);s-- >a;)n[s-a]=e[s];return n}static addElStyles(e,t){if(t instanceof Object)for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(Array.isArray(t[r])?t[r].forEach(n=>{e.style[r]=n}):e.style[r]=t[r])}static dispatchEventToUnderElement(e,t,r){const n=t||e.target;n.style.display="none";const{x:s,y:a}={x:e.clientX,y:e.clientY},l=document.elementFromPoint(s,a);if(n.style.display="",!l)return e;const c=document.createEvent("DragEvent");return c.initMouseEvent(r||e.type,!0,!0,window,0,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),c.dataTransfer!==null&&(c.dataTransfer.setData("text",""),c.dataTransfer.effectAllowed=e.dataTransfer.effectAllowed),setTimeout(()=>{l.dispatchEvent(c)},0),e}}function b(i,e){return e[i]}function X(i,e,t){t[i]=e}const m=class{constructor(){o(this,"dataTransfer");o(this,"lastClick",0);o(this,"lastTouch");o(this,"lastTarget");o(this,"dragSource");o(this,"ptDown");o(this,"isDragEnabled");o(this,"isDropZone");o(this,"pressHoldInterval");o(this,"img");o(this,"imgCustom");o(this,"imgOffset");o(this,"dragoverTimer");o(this,"touchTarget");o(this,"touchmoveListener");o(this,"touchendListener");o(this,"listenerOpt");o(this,"touchstart",e=>{if(this.shouldHandle(e)){if(Date.now()-this.lastClick<m.DBLCLICK&&this.dispatchEvent(e,"dblclick",e.target)){e.preventDefault(),this.reset();return}this.reset();const t=this.closestDraggable(e.target);t&&(this.dragSource=t,this.ptDown=this.getPoint(e),this.lastTouch=e,m.IS_PRESS_HOLD_MODE?this.pressHoldInterval=setTimeout(()=>{this.bindTouchmoveTouchend(e),this.isDragEnabled=!0,this.touchmove(e)},m.PRESS_HOLD_AWAIT):(e.preventDefault(),this.bindTouchmoveTouchend(e)))}});o(this,"touchmoveOnDocument",e=>{if(this.shouldCancelPressHoldMove(e)){this.reset();return}});o(this,"touchmove",e=>{if(this.shouldCancelPressHoldMove(e)){this.reset();return}if(this.shouldHandleMove(e)||this.shouldHandlePressHoldMove(e)){const t=this.getTarget(e);this.dragSource&&!this.img&&this.shouldStartDragging(e)&&(this.dispatchEvent(e,"dragstart",this.dragSource),this.createImage(e)),this.img&&(this.clearDragoverInterval(),this.lastTouch=e,e.preventDefault(),t!==this.lastTarget&&(this.dispatchEvent(e,"dragenter",t),this.dispatchEvent(this.lastTouch,"dragleave",this.lastTarget),this.lastTarget=t),this.moveImage(e),this.isDropZone=this.dispatchEvent(e,"dragover",t),this.setDragoverInterval(e))}});o(this,"touchendOnDocument",e=>{this.shouldHandle(e)&&(this.img||(this.dragSource=null,this.lastClick=Date.now()),this.destroyImage(),this.dragSource&&this.reset())});o(this,"touchend",e=>{this.shouldHandle(e)&&(this.img||(this.dragSource=null,this.lastClick=Date.now()),this.destroyImage(),this.dragSource&&(e.type.indexOf("cancel")<0&&this.isDropZone&&this.dispatchEvent(this.lastTouch,"drop",this.lastTarget),this.dispatchEvent(this.lastTouch,"dragend",this.dragSource),this.reset()))});if(m.instance)throw new Error("DragDropTouch instance already created.");let e=!1;if(typeof document!="undefined"&&(document.addEventListener("test",()=>{},{get passive(){return e=!0,!0}}),m.isTouchDevice())){const t=document,r=this.touchstart,n=this.touchmoveOnDocument,s=this.touchendOnDocument,a=e?{passive:!1,capture:!1}:!1,l=e?{passive:!0}:!1;t.addEventListener("touchstart",r,a),t.addEventListener("touchmove",n,l),t.addEventListener("touchend",s),t.addEventListener("touchcancel",s),this.touchmoveListener=this.touchmove,this.touchendListener=this.touchend,this.listenerOpt=a}}static getInstance(){return m.instance||(m.instance=new m),m.instance}static isTouchDevice(){var n;if(typeof window=="undefined"||typeof document=="undefined")return!1;const e=document,t=window;let r;if("ontouchstart"in e||"ontouchstart"in t||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch)r=!0;else{const s=document.createElement("fakebody");s.innerHTML+=`
3
+ `):"",this.name="UnsubscriptionError",this.errors=t}});function ie(i,e){if(i){var t=i.indexOf(e);0<=t&&i.splice(t,1)}}var C=function(){function i(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var e,t,r,n,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=W(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(D){e={error:D}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var d=this.initialTeardown;if(p(d))try{d()}catch(D){s=D instanceof de?D.errors:[D]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var g=W(h),S=g.next();!S.done;S=g.next()){var b=S.value;try{Pe(b)}catch(D){s=s!=null?s:[],D instanceof de?s=Y(Y([],K(s)),K(D.errors)):s.push(D)}}}catch(D){r={error:D}}finally{try{S&&!S.done&&(n=g.return)&&n.call(g)}finally{if(r)throw r.error}}}if(s)throw new de(s)}},i.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Pe(e);else{if(e instanceof i){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},i.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},i.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},i.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&ie(t,e)},i.prototype.remove=function(e){var t=this._finalizers;t&&ie(t,e),e instanceof i&&e._removeParent(this)},i.EMPTY=function(){var e=new i;return e.closed=!0,e}(),i}(),Ae=C.EMPTY;function xe(i){return i instanceof C||i&&"closed"in i&&p(i.remove)&&p(i.add)&&p(i.unsubscribe)}function Pe(i){p(i)?i():i.unsubscribe()}var he={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ue={setTimeout:function(i,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var n=ue.delegate;return n!=null&&n.setTimeout?n.setTimeout.apply(n,Y([i,e],K(t))):setTimeout.apply(void 0,Y([i,e],K(t)))},clearTimeout:function(i){var e=ue.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(i)},delegate:void 0};function _e(i){ue.setTimeout(function(){throw i})}function Ne(){}var ne=null;function se(i){if(he.useDeprecatedSynchronousErrorHandling){var e=!ne;if(e&&(ne={errorThrown:!1,error:null}),i(),e){var t=ne,r=t.errorThrown,n=t.error;if(ne=null,r)throw n}}else i()}var ge=function(i){L(e,i);function e(t){var r=i.call(this)||this;return r.isStopped=!1,t?(r.destination=t,xe(t)&&t.add(r)):r.destination=wt,r}return e.create=function(t,r,n){return new pe(t,r,n)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(C),yt=Function.prototype.bind;function fe(i,e){return yt.call(i,e)}var bt=function(){function i(e){this.partialObserver=e}return i.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(r){oe(r)}},i.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){oe(r)}else oe(e)},i.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){oe(t)}},i}(),pe=function(i){L(e,i);function e(t,r,n){var s=i.call(this)||this,o;if(p(t)||!t)o={next:t!=null?t:void 0,error:r!=null?r:void 0,complete:n!=null?n:void 0};else{var a;s&&he.useDeprecatedNextContext?(a=Object.create(t),a.unsubscribe=function(){return s.unsubscribe()},o={next:t.next&&fe(t.next,a),error:t.error&&fe(t.error,a),complete:t.complete&&fe(t.complete,a)}):o=t}return s.destination=new bt(o),s}return e}(ge);function oe(i){_e(i)}function Et(i){throw i}var wt={closed:!0,next:Ne,error:Et,complete:Ne},ve=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ae(i){return i}function It(i){return i.length===0?ae:i.length===1?i[0]:function(t){return i.reduce(function(r,n){return n(r)},t)}}var T=function(){function i(e){e&&(this._subscribe=e)}return i.prototype.lift=function(e){var t=new i;return t.source=this,t.operator=e,t},i.prototype.subscribe=function(e,t,r){var n=this,s=Ot(e)?e:new pe(e,t,r);return se(function(){var o=n,a=o.operator,l=o.source;s.add(a?a.call(s,l):l?n._subscribe(s):n._trySubscribe(s))}),s},i.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},i.prototype.forEach=function(e,t){var r=this;return t=Le(t),new t(function(n,s){var o=new pe({next:function(a){try{e(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:n});r.subscribe(o)})},i.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},i.prototype[ve]=function(){return this},i.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return It(e)(this)},i.prototype.toPromise=function(e){var t=this;return e=Le(e),new e(function(r,n){var s;t.subscribe(function(o){return s=o},function(o){return n(o)},function(){return r(s)})})},i.create=function(e){return new i(e)},i}();function Le(i){var e;return(e=i!=null?i:he.Promise)!==null&&e!==void 0?e:Promise}function Ct(i){return i&&p(i.next)&&p(i.error)&&p(i.complete)}function Ot(i){return i&&i instanceof ge||Ct(i)&&xe(i)}function Tt(i){return p(i==null?void 0:i.lift)}function R(i){return function(e){if(Tt(e))return e.lift(function(t){try{return i(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function P(i,e,t,r,n){return new At(i,e,t,r,n)}var At=function(i){L(e,i);function e(t,r,n,s,o,a){var l=i.call(this,t)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=r?function(c){try{r(c)}catch(d){t.error(d)}}:i.prototype._next,l._error=s?function(c){try{s(c)}catch(d){t.error(d)}finally{this.unsubscribe()}}:i.prototype._error,l._complete=n?function(){try{n()}catch(c){t.error(c)}finally{this.unsubscribe()}}:i.prototype._complete,l}return e.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;i.prototype.unsubscribe.call(this),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},e}(ge),xt=Te(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),x=function(i){L(e,i);function e(){var t=i.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var r=new Re(this,this);return r.operator=t,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new xt},e.prototype.next=function(t){var r=this;se(function(){var n,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var o=W(r.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(t)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(n)throw n.error}}}})},e.prototype.error=function(t){var r=this;se(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var n=r.observers;n.length;)n.shift().error(t)}})},e.prototype.complete=function(){var t=this;se(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var r=this,n=this,s=n.hasError,o=n.isStopped,a=n.observers;return s||o?Ae:(this.currentObservers=null,a.push(t),new C(function(){r.currentObservers=null,ie(a,t)}))},e.prototype._checkFinalizedStatuses=function(t){var r=this,n=r.hasError,s=r.thrownError,o=r.isStopped;n?t.error(s):o&&t.complete()},e.prototype.asObservable=function(){var t=new T;return t.source=this,t},e.create=function(t,r){return new Re(t,r)},e}(T),Re=function(i){L(e,i);function e(t,r){var n=i.call(this)||this;return n.destination=t,n.source=r,n}return e.prototype.next=function(t){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,t)},e.prototype.error=function(t){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,t)},e.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},e.prototype._subscribe=function(t){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&n!==void 0?n:Ae},e}(x),Pt=function(i){L(e,i);function e(t){var r=i.call(this)||this;return r._value=t,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(t){var r=i.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},e.prototype.getValue=function(){var t=this,r=t.hasError,n=t.thrownError,s=t._value;if(r)throw n;return this._throwIfClosed(),s},e.prototype.next=function(t){i.prototype.next.call(this,this._value=t)},e}(x),Fe={now:function(){return(Fe.delegate||Date).now()},delegate:void 0},_t=function(i){L(e,i);function e(t,r){return i.call(this)||this}return e.prototype.schedule=function(t,r){return this},e}(C),le={setInterval:function(i,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var n=le.delegate;return n!=null&&n.setInterval?n.setInterval.apply(n,Y([i,e],K(t))):setInterval.apply(void 0,Y([i,e],K(t)))},clearInterval:function(i){var e=le.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(i)},delegate:void 0},Nt=function(i){L(e,i);function e(t,r){var n=i.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return e.prototype.schedule=function(t,r){var n;if(r===void 0&&(r=0),this.closed)return this;this.state=t;var s=this.id,o=this.scheduler;return s!=null&&(this.id=this.recycleAsyncId(o,s,r)),this.pending=!0,this.delay=r,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,r),this},e.prototype.requestAsyncId=function(t,r,n){return n===void 0&&(n=0),le.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,r,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return r;r!=null&&le.clearInterval(r)},e.prototype.execute=function(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,r);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,r){var n=!1,s;try{this.work(t)}catch(o){n=!0,s=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),s},e.prototype.unsubscribe=function(){if(!this.closed){var t=this,r=t.id,n=t.scheduler,s=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,ie(s,this),r!=null&&(this.id=this.recycleAsyncId(n,r,null)),this.delay=null,i.prototype.unsubscribe.call(this)}},e}(_t),Me=function(){function i(e,t){t===void 0&&(t=i.now),this.schedulerActionCtor=e,this.now=t}return i.prototype.schedule=function(e,t,r){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},i.now=Fe.now,i}(),Lt=function(i){L(e,i);function e(t,r){r===void 0&&(r=Me.now);var n=i.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return e.prototype.flush=function(t){var r=this.actions;if(this._active){r.push(t);return}var n;this._active=!0;do if(n=t.execute(t.state,t.delay))break;while(t=r.shift());if(this._active=!1,n){for(;t=r.shift();)t.unsubscribe();throw n}},e}(Me),De=new Lt(Nt),Rt=De,Ft=new T(function(i){return i.complete()});function Be(i){return i&&p(i.schedule)}function Ke(i){return i[i.length-1]}function Mt(i){return Be(Ke(i))?i.pop():void 0}function Bt(i,e){return typeof Ke(i)=="number"?i.pop():e}var me=function(i){return i&&typeof i.length=="number"&&typeof i!="function"};function He(i){return p(i==null?void 0:i.then)}function Ve(i){return p(i[ve])}function Ge(i){return Symbol.asyncIterator&&p(i==null?void 0:i[Symbol.asyncIterator])}function Ye(i){return new TypeError("You provided "+(i!==null&&typeof i=="object"?"an invalid object":"'"+i+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Kt(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ke=Kt();function je(i){return p(i==null?void 0:i[ke])}function We(i){return mt(this,arguments,function(){var t,r,n,s;return Oe(this,function(o){switch(o.label){case 0:t=i.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,U(t.read())];case 3:return r=o.sent(),n=r.value,s=r.done,s?[4,U(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,U(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function Ue(i){return p(i==null?void 0:i.getReader)}function H(i){if(i instanceof T)return i;if(i!=null){if(Ve(i))return Ht(i);if(me(i))return Vt(i);if(He(i))return Gt(i);if(Ge(i))return qe(i);if(je(i))return Yt(i);if(Ue(i))return kt(i)}throw Ye(i)}function Ht(i){return new T(function(e){var t=i[ve]();if(p(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Vt(i){return new T(function(e){for(var t=0;t<i.length&&!e.closed;t++)e.next(i[t]);e.complete()})}function Gt(i){return new T(function(e){i.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,_e)})}function Yt(i){return new T(function(e){var t,r;try{for(var n=W(i),s=n.next();!s.done;s=n.next()){var o=s.value;if(e.next(o),e.closed)return}}catch(a){t={error:a}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}e.complete()})}function qe(i){return new T(function(e){jt(i,e).catch(function(t){return e.error(t)})})}function kt(i){return qe(We(i))}function jt(i,e){var t,r,n,s;return Dt(this,void 0,void 0,function(){var o,a;return Oe(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),t=St(i),l.label=1;case 1:return[4,t.next()];case 2:if(r=l.sent(),!!r.done)return[3,4];if(o=r.value,e.next(o),e.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),n={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),r&&!r.done&&(s=t.return)?[4,s.call(t)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function V(i,e,t,r,n){r===void 0&&(r=0),n===void 0&&(n=!1);var s=e.schedule(function(){t(),n?i.add(this.schedule(null,r)):this.unsubscribe()},r);if(i.add(s),!n)return s}function Xe(i,e){return e===void 0&&(e=0),R(function(t,r){t.subscribe(P(r,function(n){return V(r,i,function(){return r.next(n)},e)},function(){return V(r,i,function(){return r.complete()},e)},function(n){return V(r,i,function(){return r.error(n)},e)}))})}function ze(i,e){return e===void 0&&(e=0),R(function(t,r){r.add(i.schedule(function(){return t.subscribe(r)},e))})}function Wt(i,e){return H(i).pipe(ze(e),Xe(e))}function Ut(i,e){return H(i).pipe(ze(e),Xe(e))}function qt(i,e){return new T(function(t){var r=0;return e.schedule(function(){r===i.length?t.complete():(t.next(i[r++]),t.closed||this.schedule())})})}function Xt(i,e){return new T(function(t){var r;return V(t,e,function(){r=i[ke](),V(t,e,function(){var n,s,o;try{n=r.next(),s=n.value,o=n.done}catch(a){t.error(a);return}o?t.complete():t.next(s)},0,!0)}),function(){return p(r==null?void 0:r.return)&&r.return()}})}function Qe(i,e){if(!i)throw new Error("Iterable cannot be null");return new T(function(t){V(t,e,function(){var r=i[Symbol.asyncIterator]();V(t,e,function(){r.next().then(function(n){n.done?t.complete():t.next(n.value)})},0,!0)})})}function zt(i,e){return Qe(We(i),e)}function Qt(i,e){if(i!=null){if(Ve(i))return Wt(i,e);if(me(i))return qt(i,e);if(He(i))return Ut(i,e);if(Ge(i))return Qe(i,e);if(je(i))return Xt(i,e);if(Ue(i))return zt(i,e)}throw Ye(i)}function Zt(i,e){return e?Qt(i,e):H(i)}function Jt(i){return i instanceof Date&&!isNaN(i)}function Ze(i,e){return R(function(t,r){var n=0;t.subscribe(P(r,function(s){r.next(i.call(e,s,n++))}))})}var $t=Array.isArray;function er(i,e){return $t(e)?i.apply(void 0,Y([],K(e))):i(e)}function tr(i){return Ze(function(e){return er(i,e)})}function rr(i,e,t,r,n,s,o,a){var l=[],c=0,d=0,h=!1,g=function(){h&&!l.length&&!c&&e.complete()},S=function(D){return c<r?b(D):l.push(D)},b=function(D){s&&e.next(D),c++;var A=!1;H(t(D,d++)).subscribe(P(e,function(I){n==null||n(I),s?S(I):e.next(I)},function(){A=!0},void 0,function(){if(A)try{c--;for(var I=function(){var ee=l.shift();o?V(e,o,function(){return b(ee)}):b(ee)};l.length&&c<r;)I();g()}catch(ee){e.error(ee)}}))};return i.subscribe(P(e,S,function(){h=!0,g()})),function(){a==null||a()}}function Se(i,e,t){return t===void 0&&(t=1/0),p(e)?Se(function(r,n){return Ze(function(s,o){return e(r,s,n,o)})(H(i(r,n)))},t):(typeof e=="number"&&(t=e),R(function(r,n){return rr(r,n,i,t)}))}function ir(i){return i===void 0&&(i=1/0),Se(ae,i)}var nr=["addListener","removeListener"],sr=["addEventListener","removeEventListener"],or=["on","off"];function E(i,e,t,r){if(p(t)&&(r=t,t=void 0),r)return E(i,e,t).pipe(tr(r));var n=K(cr(i)?sr.map(function(a){return function(l){return i[a](e,l,t)}}):ar(i)?nr.map(Je(i,e)):lr(i)?or.map(Je(i,e)):[],2),s=n[0],o=n[1];if(!s&&me(i))return Se(function(a){return E(a,e,t)})(H(i));if(!s)throw new TypeError("Invalid event target");return new T(function(a){var l=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];return a.next(1<c.length?c:c[0])};return s(l),function(){return o(l)}})}function Je(i,e){return function(t){return function(r){return i[t](e,r)}}}function ar(i){return p(i.addListener)&&p(i.removeListener)}function lr(i){return p(i.on)&&p(i.off)}function cr(i){return p(i.addEventListener)&&p(i.removeEventListener)}function dr(i,e,t){i===void 0&&(i=0),t===void 0&&(t=Rt);var r=-1;return e!=null&&(Be(e)?t=e:r=e),new T(function(n){var s=Jt(i)?+i-t.now():i;s<0&&(s=0);var o=0;return t.schedule(function(){n.closed||(n.next(o++),0<=r?this.schedule(void 0,r):n.complete())},s)})}function ye(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];var t=Mt(i),r=Bt(i,1/0),n=i;return n.length?n.length===1?H(n[0]):ir(r)(Zt(n,t)):Ft}function hr(i,e){return R(function(t,r){var n=0;t.subscribe(P(r,function(s){return i.call(e,s,n++)&&r.next(s)}))})}function ur(i,e){return e===void 0&&(e=De),R(function(t,r){var n=null,s=null,o=null,a=function(){if(n){n.unsubscribe(),n=null;var c=s;s=null,r.next(c)}};function l(){var c=o+i,d=e.now();if(d<c){n=this.schedule(void 0,c-d),r.add(n);return}a()}t.subscribe(P(r,function(c){s=c,o=e.now(),n||(n=e.schedule(l,i),r.add(n))},function(){a(),r.complete()},void 0,function(){s=n=null}))})}function gr(i,e){return e===void 0&&(e=ae),i=i!=null?i:fr,R(function(t,r){var n,s=!0;t.subscribe(P(r,function(o){var a=e(o);(s||!i(n,a))&&(s=!1,n=a,r.next(o))}))})}function fr(i,e){return i===e}function $e(i,e,t){var r=p(i)||e||t?{next:i,error:e,complete:t}:i;return r?R(function(n,s){var o;(o=r.subscribe)===null||o===void 0||o.call(r);var a=!0;n.subscribe(P(s,function(l){var c;(c=r.next)===null||c===void 0||c.call(r,l),s.next(l)},function(){var l;a=!1,(l=r.complete)===null||l===void 0||l.call(r),s.complete()},function(l){var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,l),s.error(l)},function(){var l,c;a&&((l=r.unsubscribe)===null||l===void 0||l.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):ae}function pr(i,e){return R(function(t,r){var n=e!=null?e:{},s=n.leading,o=s===void 0?!0:s,a=n.trailing,l=a===void 0?!1:a,c=!1,d=null,h=null,g=!1,S=function(){h==null||h.unsubscribe(),h=null,l&&(A(),g&&r.complete())},b=function(){h=null,g&&r.complete()},D=function(I){return h=H(i(I)).subscribe(P(r,S,b))},A=function(){if(c){c=!1;var I=d;d=null,r.next(I),!g&&D(I)}};t.subscribe(P(r,function(I){c=!0,d=I,!(h&&!h.closed)&&(o?A():D(I))},function(){g=!0,!(l&&c&&h&&!h.closed)&&r.complete()}))})}function ce(i,e,t){e===void 0&&(e=De);var r=dr(i,e);return pr(function(){return r},t)}class f{static matches(e,t){const r=Element.prototype;return(r.matches||r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector||function(s){const o=(this.document||this.ownerDocument).querySelectorAll(s);let a=o.length;for(;--a>=0&&o.item(a)!==this;);return a>-1}).call(e,t)}static addClass(e,t){if(t===void 0)return;const r=this.getElementWithValidClassList(e);r&&r.classList.add(t)}static removeClass(e,t){if(t===void 0)return;const r=this.getElementWithValidClassList(e);r&&r.classList.remove(t)}static getElementWithValidClassList(e){const t=e.nativeElement?e.nativeElement:e;return t.classList!==void 0&&t.classList!==null?t:null}static slice(e,t,r){const n=[];let s=e.length;if(s===0)return n;const o=t<0?Math.max(0,t+s):t||0;for(r!==void 0&&(s=r<0?r+s:r);s-- >o;)n[s-o]=e[s];return n}static addElStyles(e,t){if(t instanceof Object)for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(Array.isArray(t[r])?t[r].forEach(n=>{e.style[r]=n}):e.style[r]=t[r])}static dispatchEventToUnderElement(e,t,r){const n=t||e.target;n.style.display="none";const{x:s,y:o}={x:e.clientX,y:e.clientY},a=document.elementFromPoint(s,o);if(n.style.display="",!a)return e;const l=document.createEvent("DragEvent");return l.initMouseEvent(r||e.type,!0,!0,window,0,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),l.dataTransfer!==null&&(l.dataTransfer.setData("text",""),l.dataTransfer.effectAllowed=e.dataTransfer.effectAllowed),setTimeout(()=>{a.dispatchEvent(l)},0),e}}function y(i,e){return e[i]}function q(i,e,t){t[i]=e}const v=class{constructor(){if(this.lastClick=0,this.touchstart=e=>{if(this.shouldHandle(e)){if(Date.now()-this.lastClick<v.DBLCLICK&&this.dispatchEvent(e,"dblclick",e.target)){e.preventDefault(),this.reset();return}this.reset();const t=this.closestDraggable(e.target);t&&(this.dragSource=t,this.ptDown=this.getPoint(e),this.lastTouch=e,v.IS_PRESS_HOLD_MODE?this.pressHoldInterval=setTimeout(()=>{this.bindTouchmoveTouchend(e),this.isDragEnabled=!0,this.touchmove(e)},v.PRESS_HOLD_AWAIT):(e.preventDefault(),this.bindTouchmoveTouchend(e)))}},this.touchmoveOnDocument=e=>{if(this.shouldCancelPressHoldMove(e)){this.reset();return}},this.touchmove=e=>{if(this.shouldCancelPressHoldMove(e)){this.reset();return}if(this.shouldHandleMove(e)||this.shouldHandlePressHoldMove(e)){const t=this.getTarget(e);this.dragSource&&!this.img&&this.shouldStartDragging(e)&&(this.dispatchEvent(e,"dragstart",this.dragSource),this.createImage(e)),this.img&&(this.clearDragoverInterval(),this.lastTouch=e,e.preventDefault(),t!==this.lastTarget&&(this.dispatchEvent(e,"dragenter",t),this.dispatchEvent(this.lastTouch,"dragleave",this.lastTarget),this.lastTarget=t),this.moveImage(e),this.isDropZone=this.dispatchEvent(e,"dragover",t),this.setDragoverInterval(e))}},this.touchendOnDocument=e=>{this.shouldHandle(e)&&(this.img||(this.dragSource=null,this.lastClick=Date.now()),this.destroyImage(),this.dragSource&&this.reset())},this.touchend=e=>{this.shouldHandle(e)&&(this.img||(this.dragSource=null,this.lastClick=Date.now()),this.destroyImage(),this.dragSource&&(e.type.indexOf("cancel")<0&&this.isDropZone&&this.dispatchEvent(this.lastTouch,"drop",this.lastTarget),this.dispatchEvent(this.lastTouch,"dragend",this.dragSource),this.reset()))},v.instance)throw new Error("DragDropTouch instance already created.");let i=!1;if(typeof document!="undefined"&&(document.addEventListener("test",()=>{},{get passive(){return i=!0,!0}}),v.isTouchDevice())){const e=document,t=this.touchstart,r=this.touchmoveOnDocument,n=this.touchendOnDocument,s=i?{passive:!1,capture:!1}:!1,o=i?{passive:!0}:!1;e.addEventListener("touchstart",t,s),e.addEventListener("touchmove",r,o),e.addEventListener("touchend",n),e.addEventListener("touchcancel",n),this.touchmoveListener=this.touchmove,this.touchendListener=this.touchend,this.listenerOpt=s}}static getInstance(){return v.instance||(v.instance=new v),v.instance}static isTouchDevice(){var r;if(typeof window=="undefined"||typeof document=="undefined")return!1;const i=document,e=window;let t;if("ontouchstart"in i||"ontouchstart"in e||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch)t=!0;else{const n=document.createElement("fakebody");n.innerHTML+=`
17
4
  <style>
18
5
  @media (touch-enabled),(-webkit-touch-enabled),(-moz-touch-enabled),(-o-touch-enabled){
19
6
  #touch_test {
@@ -21,4 +8,4 @@ var xr=Object.defineProperty;var Pr=(g,D,L)=>D in g?xr(g,D,{enumerable:!0,config
21
8
  position: absolute;
22
9
  }
23
10
  }
24
- </style>`,document.documentElement.appendChild(s);const a=document.createElement("div");a.id="touch_test",s.appendChild(a),r=a.offsetTop===42,(n=s.parentElement)==null||n.removeChild(s)}return r}bindTouchmoveTouchend(e){this.touchTarget=e.target,e.target.addEventListener("touchmove",this.touchmoveListener,this.listenerOpt),e.target.addEventListener("touchend",this.touchendListener),e.target.addEventListener("touchcancel",this.touchendListener)}removeTouchmoveTouchend(){this.touchTarget&&(this.touchTarget.removeEventListener("touchmove",this.touchmoveListener),this.touchTarget.removeEventListener("touchend",this.touchendListener),this.touchTarget.removeEventListener("touchcancel",this.touchendListener),this.touchTarget=void 0)}shouldHandle(e){return e&&!e.defaultPrevented&&e.touches&&e.touches.length<2}shouldHandleMove(e){return!m.IS_PRESS_HOLD_MODE&&this.shouldHandle(e)}shouldHandlePressHoldMove(e){return m.IS_PRESS_HOLD_MODE&&this.isDragEnabled&&e&&e.touches&&e.touches.length}shouldCancelPressHoldMove(e){return m.IS_PRESS_HOLD_MODE&&!this.isDragEnabled&&this.getDelta(e)>m.PRESS_HOLD_MARGIN}shouldStartDragging(e){const t=this.getDragHandle();if(t&&!this.matchSelector(e.target,t))return!1;const r=this.getDelta(e);return r>m.THRESHOLD||m.IS_PRESS_HOLD_MODE&&r>=m.PRESS_HOLD_THRESHOLD}getDragHandle(){return this.dragSource&&this.dragSource.getAttribute(m.DRAG_HANDLE_ATTR)||""}matchSelector(e,t){if(t){const r=Element.prototype;return(r.matches||r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector||function(s){const a=(this.document||this.ownerDocument).querySelectorAll(s);let l=a.length;for(;--l>=0&&a.item(l)!==this;);return l>-1}).call(e,t)}return!0}reset(){this.removeTouchmoveTouchend(),this.destroyImage(),this.dragSource=null,this.lastTouch=null,this.lastTarget=null,this.ptDown=null,this.isDragEnabled=!1,this.isDropZone=!1,this.dataTransfer=new m.DataTransfer,clearInterval(this.pressHoldInterval),this.clearDragoverInterval()}getPoint(e,t){return e&&e.touches&&(e=e.touches[0]),{x:t?e.pageX:e.clientX,y:t?e.pageY:e.clientY}}getDelta(e){if(m.IS_PRESS_HOLD_MODE&&!this.ptDown)return 0;const t=this.getPoint(e);return Math.abs(t.x-this.ptDown.x)+Math.abs(t.y-this.ptDown.y)}getTarget(e){const t=this.getPoint(e);let r=document.elementFromPoint(t.x,t.y);for(;r&&getComputedStyle(r).pointerEvents==="none";)r=r.parentElement;return r}createImage(e){this.img&&this.destroyImage();const t=this.imgCustom||this.dragSource;if(this.img=t.cloneNode(!0),this.copyStyle(t,this.img),this.img.style.top=this.img.style.left="-9999px",!this.imgCustom){const r=t.getBoundingClientRect(),n=this.getPoint(e);this.imgOffset={x:n.x-r.left,y:n.y-r.top},this.img.style.opacity=m.OPACITY.toString()}this.moveImage(e),document.body.appendChild(this.img)}destroyImage(){this.img&&this.img.parentElement&&this.img.parentElement.removeChild(this.img),this.img=null,this.imgCustom=null}moveImage(e){requestAnimationFrame(()=>{if(this.img){const t=this.getPoint(e,!0),r=this.img.style;r.position="absolute",r.pointerEvents="none",r.zIndex="999999",r.left=Math.round(t.x-this.imgOffset.x)+"px",r.top=Math.round(t.y-this.imgOffset.y)+"px"}})}copyProps(e,t,r){for(let n=0;n<r.length;n++){const s=r[n];e[s]=t[s]}}copyStyle(e,t){if(m.rmvAttrs.forEach(function(s){t.removeAttribute(s)}),e instanceof HTMLCanvasElement){const s=e,a=t;a.width=s.width,a.height=s.height,a.getContext("2d").drawImage(s,0,0)}const r=e.querySelectorAll("canvas");if(r.length>0){const s=t.querySelectorAll("canvas");for(let a=0;a<s.length;a++){const l=r[a];s[a].getContext("2d").drawImage(l,0,0)}}const n=getComputedStyle(e);for(let s=0;s<n.length;s++){const a=n[s];a.indexOf("transition")<0&&(t.style[a]=n[a])}t.style.pointerEvents="none";for(let s=0;s<e.children.length;s++)this.copyStyle(e.children[s],t.children[s])}dispatchEvent(e,t,r){if(e&&r){const n=document.createEvent("Event"),s=e.touches?e.touches[0]:e;n.initEvent(t,!0,!0);const a={button:0,which:0,buttons:1,dataTransfer:this.dataTransfer};return this.copyProps(n,e,m.kbdProps),this.copyProps(n,s,m.ptProps),this.copyProps(n,{fromTouch:!0},["fromTouch"]),this.copyProps(n,a,Object.keys(a)),r.dispatchEvent(n),n.defaultPrevented}return!1}closestDraggable(e){for(;e;e=e.parentElement)if(e.hasAttribute("draggable")&&e.draggable)return e;return null}setDragoverInterval(e){this.dragoverTimer=setInterval(()=>{const t=this.getTarget(e);t!==this.lastTarget&&(this.dispatchEvent(e,"dragenter",t),this.dispatchEvent(e,"dragleave",this.lastTarget),this.lastTarget=t),this.isDropZone=this.dispatchEvent(e,"dragover",t)},m.DRAG_OVER_TIME)}clearDragoverInterval(){this.dragoverTimer&&(clearInterval(this.dragoverTimer),this.dragoverTimer=void 0)}};let E=m;o(E,"THRESHOLD",5),o(E,"OPACITY",.5),o(E,"DBLCLICK",500),o(E,"DRAG_OVER_TIME",300),o(E,"CTX_MENU",900),o(E,"IS_PRESS_HOLD_MODE",!0),o(E,"PRESS_HOLD_AWAIT",400),o(E,"PRESS_HOLD_MARGIN",25),o(E,"PRESS_HOLD_THRESHOLD",0),o(E,"DRAG_HANDLE_ATTR","data-drag-handle-selector"),o(E,"rmvAttrs","id,class,style,draggable".split(",")),o(E,"kbdProps","altKey,ctrlKey,metaKey,shiftKey".split(",")),o(E,"ptProps","pageX,pageY,clientX,clientY,screenX,screenY".split(",")),o(E,"instance",null),(i=>{class e{constructor(){o(this,"files");o(this,"items");o(this,"_data");o(this,"_dropEffect");o(this,"_effectAllowed");o(this,"_types");this._dropEffect="move",this._effectAllowed="all",this._data={}}get dropEffect(){return this._dropEffect}set dropEffect(r){this._dropEffect=r}get effectAllowed(){return this._effectAllowed}set effectAllowed(r){this._effectAllowed=r}get types(){return Object.keys(this._data)}clearData(r){r!==null?delete this._data[r]:this._data=null}getData(r){return this._data[r]||""}setData(r,n){this._data[r]=n}setDragImage(r,n,s){const a=i.getInstance();a.imgCustom=r,a.imgOffset={x:n,y:s}}}i.DataTransfer=e})(E||(E={}));class A{constructor(){o(this,"dragData");o(this,"draggedEl");o(this,"draggedElIdentity");o(this,"batchDragData");o(this,"batchDragGroup");o(this,"batchDragStyle");o(this,"batchDragging");o(this,"scope");o(this,"dropTargets",[]);o(this,"dropEvent",new P);o(this,"dragEndEvent",new P);o(this,"dragStartEvent",new P);o(this,"dropOnItem");o(this,"dragFollow");o(this,"dragFollowOptions");o(this,"dropOnOrigin");o(this,"draggedElFollowingMouse");o(this,"dragOffset");o(this,"subscription",new C);o(this,"_dragEmptyImage");o(this,"dragCloneNode");o(this,"dragOriginPlaceholder");o(this,"dragItemContainer");o(this,"dragItemParentName","");o(this,"dragItemChildrenName","");o(this,"intersectionObserver",null);o(this,"sub");o(this,"dragOriginPlaceholderNextSibling");o(this,"touchInstance");o(this,"dragElShowHideEvent",new P);o(this,"dragSyncGroupDirectives");o(this,"dragPreviewDirective");o(this,"followMouse4CloneNode",e=>{const{offsetLeft:t,offsetTop:r}=this.dragOffset,{clientX:n,clientY:s}=e;requestAnimationFrame(()=>{!this.dragCloneNode||(this.dragCloneNode.style.left=n-t+"px",this.dragCloneNode.style.top=s-r+"px")})});this.touchInstance=E.getInstance()}get dragEmptyImage(){return this._dragEmptyImage||(this._dragEmptyImage=new Image,this._dragEmptyImage.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg=="),this._dragEmptyImage}get document(){return window.document}newSubscription(){return this.subscription.unsubscribe(),this.subscription=new C}enableDraggedCloneNodeFollowMouse(){if(!this.dragCloneNode){if(this.dragItemContainer=this.draggedEl.parentElement,this.dragPreviewDirective&&this.dragPreviewDirective.dragPreviewTemplate?(this.dragPreviewDirective.createPreview(),this.dragCloneNode=this.dragPreviewDirective.getPreviewElement(),this.dragItemContainer=this.document.body):this.dragCloneNode=this.draggedEl.cloneNode(!0),this.dragCloneNode.style.margin="0",this.dragFollowOptions&&this.dragFollowOptions.appendToBody&&(this.dragItemContainer=this.document.body,this.copyStyle(this.draggedEl,this.dragCloneNode)),this.dragItemChildrenName!==""){const r=this.dragItemParentName===""?this.dragCloneNode:this.document.querySelector(this.dragItemParentName),n=r.querySelectorAll(this.dragItemChildrenName);this.interceptChildNode(r,n)}const e=this.draggedEl.querySelectorAll("canvas"),t=this.dragCloneNode.querySelectorAll("canvas");if([].forEach.call(t,(r,n)=>{r.getContext("2d").drawImage(e[n],0,0)}),this.document.addEventListener("dragover",this.followMouse4CloneNode,{capture:!0,passive:!0}),this.dragCloneNode.style.width=this.dragOffset.width+"px",this.dragCloneNode.style.height=this.dragOffset.height+"px",!(this.dragPreviewDirective&&this.dragPreviewDirective.dragPreviewTemplate&&this.dragPreviewDirective.dragPreviewOptions&&this.dragPreviewDirective.dragPreviewOptions.skipBatchPreview)&&this.batchDragging&&this.batchDragData&&this.batchDragData.length>1){const r=this.document.createElement("div");if(r.appendChild(this.dragCloneNode),r.classList.add("batch-dragged-node"),this.batchDragStyle&&this.batchDragStyle.length&&this.batchDragStyle.indexOf("badge")>-1){const n=this.document.createElement("div");n.innerText=String(this.batchDragData.length),n.classList.add("batch-dragged-node-count"),r.style.position="relative";const s={position:"absolute",right:"5px",top:"-12px",height:"24px",width:"24px",borderRadius:"12px",fontSize:"14px",lineHeight:"24px",textAlign:"center",color:"#fff",background:["#5170ff","var(--brand-1, #5170ff)"]};p.addElStyles(n,s),r.appendChild(n)}if(this.batchDragStyle&&this.batchDragStyle.length&&this.batchDragStyle.indexOf("stack")>-1){let n=2;this.batchDragData.length===2&&(n=1);for(let s=0;s<n;s++){const a=this.dragCloneNode.cloneNode(!1),l={position:"absolute",left:-5*(s+1)+"px",top:-5*(s+1)+"px",zIndex:String(-(s+1)),width:this.dragOffset.width+"px",height:this.dragOffset.height+"px",background:"#fff",border:["1px solid #5170ff","1px solid var(--brand-1, #5170ff)"]};p.addElStyles(a,l),r.appendChild(a)}}this.dragCloneNode=r}this.dragCloneNode.classList.add("drag-clone-node"),this.dragPreviewDirective&&this.dragPreviewDirective.dragPreviewTemplate||(this.dragCloneNode.style.width=this.dragOffset.width+"px",this.dragCloneNode.style.height=this.dragOffset.height+"px"),this.dragCloneNode.style.position="fixed",this.dragCloneNode.style.zIndex="1090",this.dragCloneNode.style.pointerEvents="none",this.dragCloneNode.style.top=this.dragOffset.top+"px",this.dragCloneNode.style.left=this.dragOffset.left+"px",this.dragCloneNode.style.willChange="left, top",this.dragItemContainer.appendChild(this.dragCloneNode),setTimeout(()=>{this.draggedEl&&(this.draggedEl.style.display="none",this.dragElShowHideEvent.next(!1),this.dragOriginPlaceholder&&(this.dragOriginPlaceholder.style.display="block"))})}}disableDraggedCloneNodeFollowMouse(){this.dragCloneNode&&(this.document.removeEventListener("dragover",this.followMouse4CloneNode,{capture:!0}),this.dragItemContainer.removeChild(this.dragCloneNode),this.draggedEl.style.display="",this.dragElShowHideEvent.next(!0)),this.dragPreviewDirective&&this.dragPreviewDirective.dragPreviewTemplate&&this.dragPreviewDirective.destroyPreview(),this.dragCloneNode=void 0,this.dragItemContainer=void 0,this.intersectionObserver&&this.intersectionObserver.disconnect()}interceptChildNode(e,t){const r={root:e};this.intersectionObserver=new IntersectionObserver(this.setChildNodeHide,r),[].forEach.call(t,n=>{this.intersectionObserver.observe(n)})}setChildNodeHide(e){e.forEach(t=>{const{isIntersecting:r,target:n}=t;r?n.style.display="block":n.style.display="none"})}getBatchDragData(e,t="draggedElFirst"){const r=this.batchDragData.map(n=>n.dragData);if(typeof t=="function")r.sort(t);else if(t==="draggedElFirst"){let n=this.dragData;e&&(n=this.batchDragData.filter(a=>a.identity===e).pop().dragData),r.splice(r.indexOf(n),1),r.splice(0,0,n)}return r}cleanBatchDragData(){const e=this.batchDragData;return this.batchDragData&&(this.batchDragData.filter(t=>t.draggable).map(t=>t.draggable).forEach(t=>{t.batchDraggable.dragData=void 0}),this.batchDragData=void 0,this.batchDragGroup=void 0),e}copyStyle(e,t){["id","class","style","draggable"].forEach(function(n){t.removeAttribute(n)});const r=getComputedStyle(e);for(let n=0;n<r.length;n++){const s=r[n];s.indexOf("transition")<0&&(t.style[s]=r[s])}t.style.pointerEvents="none";for(let n=0;n<e.children.length;n++)this.copyStyle(e.children[n],t.children[n])}}o(A,"TOKEN",Symbol("DRAG_DROP_SERVICE_TOKEN"));function Er(){const i=new A;return D.provide(A.TOKEN,new A),i}class M extends P{constructor(e=!1){super();o(this,"__isAsync");this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,r){let n,s=c=>null,a=()=>null;e&&typeof e=="object"?(n=this.__isAsync?c=>{setTimeout(()=>e.next(c))}:c=>{e.next(c)},e.error&&(s=this.__isAsync?c=>{setTimeout(()=>e.error(c))}:c=>{e.error(c)}),e.complete&&(s=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(n=this.__isAsync?c=>{setTimeout(()=>e(c))}:c=>{e(c)},t&&(s=this.__isAsync?c=>{setTimeout(()=>t(c))}:c=>{t(c)}),r&&(a=this.__isAsync?()=>{setTimeout(()=>r())}:()=>{r()}));const l=super.subscribe(n,s,a);return e instanceof C&&e.add(l),l}}class it extends M{constructor(){super(...arguments);o(this,"_schedulerFns");o(this,"_isAsync",!1)}get schedulerFns(){return this._schedulerFns}forceCallback(e,t=!1){this.schedulerFns&&this.schedulerFns.size&&(this.schedulerFns.forEach(r=>{r(e)}),t&&this.cleanCallbackFn())}cleanCallbackFn(){this._schedulerFns=void 0}subscribe(e,t,r){let n;return e&&typeof e=="object"?n=this._isAsync?s=>{setTimeout(()=>e.next(s))}:s=>{e.next(s)}:n=this._isAsync?s=>{setTimeout(()=>e(s))}:s=>{e(s)},this._schedulerFns||(this._schedulerFns=new Set),this._schedulerFns.add(n),super.subscribe(e,t,r)}}class wr{constructor(e,t,r){this.previousValue=e,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}class B{constructor(){o(this,"__eventListenerMap",new Map);o(this,"el",{nativeElement:null});o(this,"hostBindingMap");o(this,"hostListenerMap");o(this,"inputNameMap");o(this,"outputNameMap")}mounted(){this.hostBindingMap&&this.el.nativeElement&&Object.keys(this.hostBindingMap).forEach(e=>{this[e]!==void 0&&this.hostBinding(this.hostBindingMap[e],e)}),this.hostListenerMap&&this.el.nativeElement&&Object.keys(this.hostListenerMap).forEach(e=>{this[e]&&this.hostListener(this.hostListenerMap[e],e)})}setInput(e){if(!e)return;const t=new Map;Object.keys(e).forEach(r=>{if(r.startsWith("@")){const n=this.getOutputKey(r.slice(1));this.eventListener(n,e[r])}else{const n=this.getInputKey(r),s=this[n];this[n]=e[r],t.set(n,{previousValue:s,currentValue:e[r],firstChange:!0})}}),this.notifyOnChanges(t),this.hostBindingMap&&this.el.nativeElement&&Object.keys(this.hostBindingMap).forEach(r=>{e[r]&&this.hostBinding(this.hostBindingMap[r],r)})}updateInput(e,t){const r=new Map;e&&Object.keys(e).forEach(n=>{const s=this.getInputKey(n);e[n]!==(t==null?void 0:t[n])&&r.set(s,{previousValue:t[n],currentValue:e[n],firstChange:t[n]===void 0})}),t&&Object.keys(t).filter(n=>!Object.keys(e).includes(n)).forEach(n=>{if(t[n]!==(e==null?void 0:e[n])){const s=this.getInputKey(n);r.set(s,{previousValue:t[n],currentValue:e[n],firstChange:t[n]===void 0})}}),r.forEach((n,s)=>{s.startsWith("@")?this.eventListener(s.slice(1),n.currentValue):this[s]=n.currentValue}),this.notifyOnChanges(r),this.hostBindingMap&&this.el.nativeElement&&Object.keys(this.hostBindingMap).forEach(n=>{r.get(n)&&this.hostBinding(this.hostBindingMap[n],n)})}hostBinding(e,t){const r=this.el.nativeElement,n=this[t];r.setAttribute(e,n)}hostListener(e,t){this.el.nativeElement.addEventListener(e,this[t].bind(this))}eventListener(e,t){var n;const r=this[e].subscribe(s=>{t(s)});this.__eventListenerMap.get(e)&&((n=this.__eventListenerMap.get(e))==null||n.unsubscribe(),this.__eventListenerMap.delete(e)),this.__eventListenerMap.set(e,r)}getInputKey(e){return this.inputNameMap&&this.inputNameMap[e]||e}getOutputKey(e){return this.outputNameMap&&this.outputNameMap[e]||e}notifyOnChanges(e){if(this.ngOnChanges){const t=[...e.entries()].filter(([r,n])=>!r.startsWith("@")).reduce((r,[n,s])=>{const{previousValue:a,currentValue:l,firstChange:c}=s;return r[n]=new wr(a,l,c),r},{});Object.keys(t).length&&this.ngOnChanges(t)}}}const nt=D.defineComponent({name:"DDragPreviewTemplate",setup(i,{slots:e,expose:t}){return t({template:e.default}),()=>null}}),st=D.defineComponent({name:"DDragPreviewContainer",props:{template:Function,context:Object},setup(i){return()=>{var e;return(e=i.template)==null?void 0:e.call(i,i.context)}}});class Y extends B{constructor(e,t){super();o(this,"inputNameMap",{dragPreview:"dragPreviewTemplate"});o(this,"dragPreviewTemplate");o(this,"dragPreviewData");o(this,"dragPreviewOptions",{skipBatchPreview:!1});o(this,"previewRef");o(this,"context");o(this,"el",{nativeElement:null});this.dragDropService=t,this.el.nativeElement=e}createPreview(){var a;const e={data:this.dragPreviewData,draggedEl:this.dragDropService.draggedEl,dragData:this.dragDropService.dragData,batchDragData:this.dragDropService.batchDragData&&this.dragDropService.getBatchDragData(),dragSyncDOMElements:this.dragDropService.dragSyncGroupDirectives&&this.getDragSyncDOMElements()},t=D.createApp(st,{context:e,template:(a=this.dragPreviewTemplate)==null?void 0:a.template});t._context.provides=Object.create(this.context);const r=document.createElement("div"),n=t.mount(r),s=()=>{t.unmount()};this.previewRef={instance:n,element:r,unmount:s}}destroyPreview(){this.previewRef&&(this.previewRef.unmount(),this.previewRef=void 0)}getPreviewElement(){return this.previewRef&&this.previewRef.element}getDragSyncDOMElements(){return this.dragDropService.dragSyncGroupDirectives.map(e=>e.el.nativeElement)}}o(Y,"INSTANCE_KEY","__vueDevuiDragPreviewDirectiveInstance"),o(Y,"TOKEN",Symbol("DRAG_PREVIEW_DIRECTIVE_TOKEN"));var Ir={mounted(i,e,t){const r=t.ctx.provides,n=b(A.TOKEN,r),s=i[Y.INSTANCE_KEY]=new Y(i,n);X(Y.TOKEN,s,r),s.setInput({context:r}),s.setInput(e.value),s.mounted()},updated(i,e){i[Y.INSTANCE_KEY].updateInput(e.value,e.oldValue)}};class N extends B{constructor(e,t,r){super();o(this,"hostBindingMap",{draggable:"draggable","data-drag-handle-selector":"dragHandle"});o(this,"draggable",!0);o(this,"dragData");o(this,"dragScope","default");o(this,"dragHandle");o(this,"dragHandleClass","drag-handle");o(this,"dragOverClass");o(this,"dragEffect","move");o(this,"_disabled",!1);o(this,"dragStartEvent",new M);o(this,"dragEvent",new it);o(this,"dragEndEvent",new M);o(this,"dropEndEvent",new it);o(this,"document",window.document);o(this,"mouseOverElement");o(this,"enableDragFollow",!1);o(this,"dragFollowOptions");o(this,"originPlaceholder");o(this,"dragIdentity");o(this,"dragItemParentName","");o(this,"dragItemChildrenName","");o(this,"dragsSub",new C);o(this,"destroyDragEndSub",new C);o(this,"isDestroyed");o(this,"delayRemoveOriginPlaceholderTimer");o(this,"batchDraggable");o(this,"dragOriginPlaceholder");o(this,"dragOriginPlaceholderNextSibling");o(this,"dragElShowHideEvent",new P);o(this,"beforeDragStartEvent",new P);o(this,"el",{nativeElement:null});o(this,"dragDropService");o(this,"dragPreviewDirective");o(this,"insertOriginPlaceholder",(e=!0,t=!0)=>{var s,a,l;this.delayRemoveOriginPlaceholderTimer&&(clearTimeout(this.delayRemoveOriginPlaceholderTimer),this.delayRemoveOriginPlaceholderTimer=void 0);const r=this.document.createElement(((s=this.originPlaceholder)==null?void 0:s.tag)||"div"),n=this.el.nativeElement.getBoundingClientRect();if(e?r.style.display="block":r.style.display="none",r.style.width=n.width+"px",r.style.height=n.height+"px",r.classList.add("drag-origin-placeholder"),((a=this.originPlaceholder)==null?void 0:a.text)&&(r.innerText=this.originPlaceholder.text),((l=this.originPlaceholder)==null?void 0:l.style)&&p.addElStyles(r,this.originPlaceholder.style),t)this.dragDropService.dragOriginPlaceholder=r,this.dragDropService.dragOriginPlaceholderNextSibling=this.el.nativeElement.nextSibling;else{r.classList.add("side-drag-origin-placeholder");const c=this.el.nativeElement.cloneNode(!0);c.style.margin=0,c.style.pointerEvents="none",c.style.opacity="0.3",r.appendChild(c)}this.dragOriginPlaceholder=r,this.dragOriginPlaceholderNextSibling=this.el.nativeElement.nextSibling,this.el.nativeElement.parentElement.insertBefore(r,this.el.nativeElement.nextSibling)});o(this,"removeOriginPlaceholder",(e=!0)=>{var t;this.dragOriginPlaceholder&&((t=this.dragOriginPlaceholder.parentElement)==null||t.removeChild(this.dragOriginPlaceholder)),e&&(this.dragDropService.dragOriginPlaceholder=void 0,this.dragDropService.dragOriginPlaceholderNextSibling=void 0),this.dragOriginPlaceholder=void 0,this.dragOriginPlaceholderNextSibling=void 0});o(this,"delayRemoveOriginPlaceholder",(e=!0)=>{var s,a;const t=(s=this.originPlaceholder)==null?void 0:s.removeDelay,r=this.dragOriginPlaceholder,n=this.findNextSibling(this.dragOriginPlaceholderNextSibling);((a=r==null?void 0:r.parentElement)==null?void 0:a.contains(n))&&r.parentElement.insertBefore(r,n),setTimeout(()=>{var l;((l=r==null?void 0:r.parentElement)==null?void 0:l.contains(n))&&r.parentElement.insertBefore(r,n),r==null||r.classList.add("delay-deletion"),this.delayRemoveOriginPlaceholderTimer=setTimeout(()=>{var c;(c=r==null?void 0:r.parentElement)==null||c.removeChild(r),this.document.body.contains(this.el.nativeElement)&&(this.el.nativeElement.style.display="",this.dragDropService.dragElShowHideEvent.next(!1))},t),e&&(this.dragDropService.dragOriginPlaceholder=void 0,this.dragDropService.dragOriginPlaceholderNextSibling=void 0),this.dragOriginPlaceholder=void 0,this.dragOriginPlaceholderNextSibling=void 0})});this.el.nativeElement=e,this.dragDropService=t,this.dragPreviewDirective=r}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.draggable=!this._disabled}ngOnInit(){this.dragsSub.add(I(this.el.nativeElement,"mouseover").subscribe(e=>this.mouseover(e))),this.dragsSub.add(I(this.el.nativeElement,"dragstart").subscribe(e=>this.dragStart(e))),this.dragsSub.add(I(this.el.nativeElement,"dragend").subscribe(e=>this.dragEnd(e)))}dropSubscription(){const e=this.dragDropService.newSubscription();e.add(this.dragDropService.dropEvent.subscribe(t=>{this.mouseOverElement=void 0,p.removeClass(this.el.nativeElement,this.dragOverClass),this.dropEndEvent.emit(t),this.isDestroyed&&this.dropEndEvent.schedulerFns&&this.dropEndEvent.schedulerFns.size>0&&this.dropEndEvent.forceCallback(t,!0),this.dragDropService.dragOriginPlaceholder&&(this.originPlaceholder&&this.originPlaceholder.removeDelay>0&&!this.dragDropService.dropOnOrigin?this.delayRemoveOriginPlaceholder():this.removeOriginPlaceholder(),this.dragDropService.draggedElIdentity=void 0),this.dragDropService.subscription.unsubscribe()})),e.add(this.dragDropService.dragElShowHideEvent.subscribe(this.dragElShowHideEvent))}ngAfterViewInit(){this.applyDragHandleClass(),this.dragIdentity&&this.dragDropService.draggedEl&&this.dragIdentity===this.dragDropService.draggedElIdentity&&(this.originPlaceholder&&this.originPlaceholder.show!==!1&&this.insertOriginPlaceholder(),this.dragDropService.draggedEl=this.el.nativeElement,this.el.nativeElement.style.display="none")}ngOnDestroy(){this.isDestroyed=!0,this.dragDropService.draggedEl===this.el.nativeElement&&(this.destroyDragEndSub=new C,this.destroyDragEndSub.add(I(this.el.nativeElement,"dragend").subscribe(e=>{this.dragEnd(e),this.dropEndEvent.schedulerFns&&this.dropEndEvent.schedulerFns.size>0&&this.dropEndEvent.forceCallback(e,!0),this.destroyDragEndSub.unsubscribe(),this.destroyDragEndSub=void 0})),this.originPlaceholder&&this.originPlaceholder.show!==!1&&this.dragDropService.dragOriginPlaceholder&&this.dragDropService.draggedElIdentity&&this.removeOriginPlaceholder()),this.dragsSub.unsubscribe()}dragStart(e){var t;if(this.allowDrag(e)){p.addClass(this.el.nativeElement,this.dragOverClass),this.dragDropService.dragData=this.dragData,this.dragDropService.scope=this.dragScope,this.dragDropService.draggedEl=this.el.nativeElement,this.dragDropService.draggedElIdentity=this.dragIdentity,this.dragDropService.dragFollow=this.enableDragFollow,this.dragDropService.dragFollowOptions=this.dragFollowOptions,this.dragDropService.dragItemParentName=this.dragItemParentName,this.dragDropService.dragItemChildrenName=this.dragItemChildrenName,this.beforeDragStartEvent.next(!0),this.dragPreviewDirective&&((t=this.dragPreviewDirective)==null?void 0:t.dragPreviewTemplate)&&(this.dragDropService.dragFollow=!0,this.dragDropService.dragPreviewDirective=this.dragPreviewDirective),this.batchDraggable&&(this.batchDraggable.dragData?this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>1&&(this.dragDropService.batchDragging=!0,this.dragDropService.batchDragStyle=this.batchDraggable.batchDragStyle):this.batchDraggable.batchDragLastOneAutoActiveEventKeys&&this.batchDraggable.batchDragLastOneAutoActiveEventKeys.map(s=>e[s]).some(s=>s===!0)&&this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>0&&(this.batchDraggable.active(),this.batchDraggable.dragData||this.batchDraggable.addToBatchGroup(),this.dragDropService.batchDragData.some(s=>s.draggable===this)&&(this.dragDropService.batchDragging=!0,this.dragDropService.batchDragStyle=this.batchDraggable.batchDragStyle)));const r=this.el.nativeElement.getBoundingClientRect();if(this.dragDropService.dragFollow){const n=this.mousePosition(e),s=this.checkAndGetViewPointChange(this.el.nativeElement);this.dragDropService.dragOffset={left:r.left,top:r.top,offsetLeft:n.x-r.left+s.offsetX,offsetTop:n.y-r.top+s.offsetY,width:r.width,height:r.height},this.dragDropService.enableDraggedCloneNodeFollowMouse()}else this.dragDropService.dragOffset={left:r.left,top:r.top,offsetLeft:null,offsetTop:null,width:r.width,height:r.height};this.originPlaceholder&&this.originPlaceholder.show!==!1&&this.insertOriginPlaceholder(!1),this.dragDropService.batchDragging&&this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>1&&this.dragDropService.batchDragData.map(n=>n.draggable).filter(n=>n&&n!==this).forEach(n=>{n.originPlaceholder&&n.originPlaceholder.show!==!1?(n.insertOriginPlaceholder(!0,!1),n.el.nativeElement.style.display="none"):setTimeout(()=>{n.el.nativeElement.style.display="none"})}),e.dataTransfer!==null&&e.dataTransfer.setData("text",""),e.dataTransfer.effectAllowed=this.dragEffect,this.dropSubscription(),this.dragDropService.dragFollow&&(typeof DataTransfer.prototype.setDragImage=="function"?e.dataTransfer.setDragImage(this.dragDropService.dragEmptyImage,0,0):(e.srcElement.style.display="none",this.dragDropService.dragElShowHideEvent.next(!1))),e.stopPropagation(),this.dragStartEvent.emit(e),this.dragDropService.dragStartEvent.next(e)}else e.preventDefault()}dragEnd(e){p.removeClass(this.el.nativeElement,this.dragOverClass),this.dragDropService.dragEndEvent.next(e),this.mouseOverElement=void 0,this.dragDropService.draggedEl&&(this.dragDropService.dragFollow&&this.dragDropService.disableDraggedCloneNodeFollowMouse(),this.dragDropService.dragOriginPlaceholder&&this.removeOriginPlaceholder(),this.dragDropService.batchDragging&&this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>1&&this.dragDropService.batchDragData.map(t=>t.draggable).filter(t=>t&&t!==this).forEach(t=>{t.originPlaceholder&&t.originPlaceholder.show!==!1?(t.el.nativeElement.style.display="",t.removeOriginPlaceholder()):t.el.nativeElement.style.display=""}),this.batchDraggable&&!this.batchDraggable.batchDragActive&&(this.batchDraggable.removeFromBatchGroup(),this.dragDropService.batchDragging=!1,this.dragDropService.batchDragStyle=void 0),this.dragDropService.subscription&&this.dragDropService.subscription.unsubscribe(),this.dragDropService.dragData=void 0,this.dragDropService.scope=void 0,this.dragDropService.draggedEl=void 0,this.dragDropService.dragFollow=void 0,this.dragDropService.dragFollowOptions=void 0,this.dragDropService.dragOffset=void 0,this.dragDropService.draggedElIdentity=void 0,this.dragDropService.dragPreviewDirective=void 0),e.stopPropagation(),e.preventDefault(),this.dragEndEvent.emit(e)}mouseover(e){this.mouseOverElement=e.target}allowDrag(e){return!this.draggable||this.batchDraggable&&!this.batchDraggable.allowAddToBatchGroup()?!1:this.dragHandle?e&&e.fromTouch?!0:this.mouseOverElement?p.matches(this.mouseOverElement,this.dragHandle):!1:!0}applyDragHandleClass(){const e=this.getDragHandleElement();!e||(this.draggable?p.addClass(e,this.dragHandleClass):p.removeClass(this.el,this.dragHandleClass))}getDragHandleElement(){let e=this.el;return this.dragHandle&&(e=this.el.nativeElement.querySelector(this.dragHandle)),e}mousePosition(e){return{x:e.clientX,y:e.clientY}}findNextSibling(e){return this.dragDropService.batchDragData&&this.dragDropService.batchDragData.map(t=>t.draggable&&t.draggable.el.nativeElement).indexOf(e)>-1&&(e=e.nextSibling),e}checkAndGetViewPointChange(e){if(!e.parentNode)return null;const t=e.getBoundingClientRect(),r=this.document.createElement("div");p.addElStyles(r,{opacity:"0",position:"fixed",top:t.top+"px",left:t.left+"px",width:"1px",height:"1px",zIndex:"-999999"}),e.parentNode.appendChild(r);const n=r.getBoundingClientRect();return e.parentNode.removeChild(r),{offsetX:n.left-t.left,offsetY:n.top-t.top}}}o(N,"INSTANCE_KEY","__vueDevuiDraggableDirectiveInstance"),o(N,"TOKEN",Symbol("DRAGGABLE_DIRECTIVE_TOKEN"));var ot={mounted(i,e,t){var l,c,d;const r=(l=t.ctx)==null?void 0:l.provides,n=b(A.TOKEN,r);let s=b(Y.TOKEN,r);(s==null?void 0:s.el.nativeElement)!==i&&(s=void 0);const a=i[N.INSTANCE_KEY]=new N(i,n,s);X(N.TOKEN,a,r),a.setInput(e.value),a.mounted(),(c=a.ngOnInit)==null||c.call(a),(d=a.ngAfterViewInit)==null||d.call(a)},updated(i,e){i[N.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[N.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class at{constructor(e,t,r,n,s,a,l,c){o(this,"nativeEvent");o(this,"dragData");o(this,"batchDragData");o(this,"dropSubject");o(this,"dropIndex");o(this,"dragFromIndex");o(this,"dropOnItem");o(this,"dropOnOrigin");this.nativeEvent=e,this.dragData=t,this.dropSubject=r,this.dropIndex=n,this.dragFromIndex=s,this.dropOnItem=a,this.dropOnOrigin=l,this.batchDragData=c}}class K extends B{constructor(e,t){super();o(this,"hostListenerMap",{drop:"drop"});o(this,"dragEnterEvent",new M);o(this,"dragOverEvent",new M);o(this,"dragLeaveEvent",new M);o(this,"dropEvent",new M);o(this,"dragOverClass");o(this,"dropScope","default");o(this,"placeholderTag","div");o(this,"placeholderStyle",{backgroundColor:["#859bff","var(--devui-brand-foil, #859bff)"],opacity:".4"});o(this,"placeholderText","");o(this,"allowDropOnItem",!1);o(this,"dragOverItemClass");o(this,"nestingTargetRect");o(this,"switchWhileCrossEdge",!1);o(this,"defaultDropPosition","closest");o(this,"dropSortCountSelector");o(this,"dropSortVirtualScrollOption");o(this,"dropFlag");o(this,"sortContainer");o(this,"sortDirection");o(this,"sortDirectionZMode");o(this,"placeholder");o(this,"dragCount",0);o(this,"dropIndex");o(this,"dragStartSubscription");o(this,"dragEndSubscription");o(this,"dropEndSubscription");o(this,"overElement");o(this,"dragPartEventSub");o(this,"allowDropCache");o(this,"dragElIndex");o(this,"placeholderInsertionEvent",new P);o(this,"placeholderRenderEvent",new P);o(this,"document");o(this,"el",{nativeElement:null});o(this,"dragDropService");o(this,"dropSortCountSelectorFilterFn",e=>p.matches(e,this.dropSortCountSelector)||e.contains(this.placeholder)||e===this.dragDropService.dragOriginPlaceholder);o(this,"setPlaceholder",()=>{this.placeholder.style.width=this.dragDropService.dragOffset.width+"px",this.placeholder.style.height=this.dragDropService.dragOffset.height+"px",p.addElStyles(this.placeholder,this.placeholderStyle),this.placeholderRenderEvent.next({width:this.dragDropService.dragOffset.width,height:this.dragDropService.dragOffset.height})});this.document=window.document,this.el.nativeElement=e,this.dragDropService=t}ngOnInit(){this.placeholder=this.document.createElement(this.placeholderTag),this.placeholder.className="drag-placeholder",this.placeholder.innerText=this.placeholderText,this.dragStartSubscription=this.dragDropService.dragStartEvent.subscribe(()=>this.setPlaceholder()),this.dragDropService.draggedEl&&this.setPlaceholder(),this.dropEndSubscription=this.dragDropService.dropEvent.subscribe(()=>{this.dragDropService.draggedEl&&(this.dragDropService.dragFollow||(p.addElStyles(this.dragDropService.draggedEl,{display:""}),this.dragDropService.dragElShowHideEvent.next(!0))),this.removePlaceholder(),this.overElement=void 0,this.allowDropCache=void 0,this.dragElIndex=void 0,this.dropIndex=void 0}),this.dragEndSubscription=this.dragDropService.dragEndEvent.subscribe(()=>{this.dragDropService.draggedEl&&(this.dragDropService.dragFollow||(p.addElStyles(this.dragDropService.draggedEl,{display:""}),this.dragDropService.dragElShowHideEvent.next(!0))),this.removePlaceholder(),this.dragCount=0,this.overElement=void 0,this.allowDropCache=void 0,this.dragElIndex=void 0,this.dropIndex=void 0}),this.dragPartEventSub=new C,this.dragPartEventSub.add(I(this.el.nativeElement,"dragover").pipe(mr(e=>this.allowDrop(e)),Dr((e,t)=>{const r=e.clientX===t.clientX&&e.clientY===t.clientY&&e.target===t.target;return r&&(t.preventDefault(),t.stopPropagation()),r})).subscribe(e=>this.dragOver(e))),this.dragPartEventSub.add(I(this.el.nativeElement,"dragenter").subscribe(e=>this.dragEnter(e))),this.dragPartEventSub.add(I(this.el.nativeElement,"dragleave").subscribe(e=>this.dragLeave(e)))}ngAfterViewInit(){this.el.nativeElement.hasAttribute("d-sortable")?this.sortContainer=this.el.nativeElement:this.sortContainer=this.el.nativeElement.querySelector("[d-sortable]"),this.sortDirection=this.sortContainer&&this.sortContainer.getAttribute("dsortable")||"v",this.sortDirectionZMode=this.sortContainer&&this.sortContainer.getAttribute("d-sortable-zmode")==="true"||!1}ngOnDestroy(){var e,t,r;(e=this.dragStartSubscription)==null||e.unsubscribe(),(t=this.dragEndSubscription)==null||t.unsubscribe(),(r=this.dropEndSubscription)==null||r.unsubscribe(),this.dragPartEventSub&&this.dragPartEventSub.unsubscribe()}dragEnter(e){this.dragCount++,e.preventDefault(),this.dragEnterEvent.emit(e)}dragOver(e){if(this.allowDrop(e)){this.dragDropService.dropTargets.indexOf(this.el)===-1&&(this.dragDropService.dropTargets.forEach(r=>{const n=r.nativeElement.querySelector(".drag-placeholder");n&&n.parentElement.removeChild(n),p.removeClass(r,this.dragOverClass),this.removeDragoverItemClass(r.nativeElement)}),this.dragDropService.dropTargets=[this.el],this.overElement=void 0),p.addClass(this.el,this.dragOverClass);const t=this.dragDropService.dragOriginPlaceholder&&this.dragDropService.dragOriginPlaceholder.contains(e.target);if(this.sortContainer&&(t&&this.overElement===void 0||!(e.target.contains(this.placeholder)||t)||this.switchWhileCrossEdge&&!this.placeholder.contains(e.target)&&!t||!this.sortContainer.contains(e.target)&&this.defaultDropPosition==="closest")){const r=this.findSortableEl(e);!(this.overElement&&r)||this.overElement.index!==r.index||this.allowDropOnItem&&this.overElement.position!==r.position&&(this.overElement.position==="inside"||r.position==="inside")?(this.overElement=r,this.insertPlaceholder(r),this.removeDragoverItemClass(this.sortContainer,r),r.position==="inside"&&this.dragOverItemClass&&p.addClass(r.el,this.dragOverItemClass)):this.overElement=r}else this.sortContainer&&this.overElement&&this.overElement.el&&(this.overElement.el.contains(e.target)?this.overElement.realEl=void 0:this.overElement.realEl=e.target);this.dragDropService.draggedEl&&(this.dragDropService.dragFollow||(p.addElStyles(this.dragDropService.draggedEl,{display:"none"}),this.dragDropService.dragElShowHideEvent.next(!1),this.dragDropService.dragOriginPlaceholder&&p.addElStyles(this.dragDropService.dragOriginPlaceholder,{display:"block"}))),e.preventDefault(),e.stopPropagation(),this.dragOverEvent.emit(e)}}dragLeave(e){this.dragCount--,this.dragCount===0&&(this.dragDropService.dropTargets.indexOf(this.el)!==-1&&(this.dragDropService.dropTargets=[]),p.removeClass(this.el,this.dragOverClass),this.removePlaceholder(),this.removeDragoverItemClass(this.el.nativeElement),this.overElement=void 0,this.dragElIndex=void 0,this.dropIndex=void 0),e.preventDefault(),this.dragLeaveEvent.emit(e)}drop(e){if(!this.allowDrop(e))return;this.dragCount=0,p.removeClass(this.el,this.dragOverClass),this.removeDragoverItemClass(this.sortContainer),this.removePlaceholder(),e.preventDefault(),e.stopPropagation(),this.dragDropService.dropOnOrigin=this.isDragPlaceholderPosition(this.dropIndex);const t=this.dragDropService.draggedElIdentity;this.dragDropService.draggedElIdentity=void 0;let r=[];this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>1&&(r=this.dragDropService.batchDragData.map(n=>n.draggable).filter(n=>n&&n.el.nativeElement!==this.dragDropService.draggedEl)),this.dropEvent.emit(new at(e,this.dragDropService.dragData,this.dragDropService.dropEvent,this.dropSortVirtualScrollOption?this.getRealIndex(this.dropIndex,this.dropFlag):this.dropIndex,this.sortContainer?this.checkSelfFromIndex(this.dragDropService.draggedEl):-1,this.dragDropService.dropOnItem,this.dragDropService.dropOnOrigin,this.dragDropService.batchDragging?this.dragDropService.getBatchDragData(t):void 0)),this.dragDropService.dragFollow?this.dragDropService.disableDraggedCloneNodeFollowMouse():(p.addElStyles(this.dragDropService.draggedEl,{display:void 0}),this.dragDropService.dragElShowHideEvent.next(!1)),r.length>0&&this.dragDropService.batchDragging&&r.forEach(n=>{!n.originPlaceholder||n.originPlaceholder.show===!1?n.el.nativeElement.style.display="":n.originPlaceholder.removeDelay>0&&!this.dragDropService.dropOnOrigin?n.delayRemoveOriginPlaceholder(!1):(n.el.nativeElement.style.display="",n.removeOriginPlaceholder(!1))}),this.dragDropService.dropEvent.next(e),this.dragDropService.dragData=void 0,this.dragDropService.scope=void 0,this.dragDropService.draggedEl=void 0,this.dragDropService.dragFollow=void 0,this.dragDropService.dragFollowOptions=void 0,this.dragDropService.dragOffset=void 0,this.dragDropService.dropOnOrigin=void 0,this.dragDropService.batchDragging=!1,this.dragDropService.batchDragStyle=void 0,this.dragDropService.dragPreviewDirective=void 0}allowDrop(e){if(!e)return!1;if(this.allowDropCache!==void 0)return this.allowDropCache;let t=!1;return typeof this.dropScope=="string"&&(typeof this.dragDropService.scope=="string"&&(t=this.dragDropService.scope===this.dropScope),this.dragDropService.scope instanceof Array&&(t=this.dragDropService.scope.indexOf(this.dropScope)>-1)),this.dropScope instanceof Array&&(typeof this.dragDropService.scope=="string"&&(t=this.dropScope.indexOf(this.dragDropService.scope)>-1),this.dragDropService.scope instanceof Array&&(t=this.dropScope.filter(r=>this.dragDropService.scope.indexOf(r)!==-1).length>0)),this.allowDropCache=t,t}findSortableEl(e){var d;const t=e.target;let r=null;if(!this.sortContainer)return r;r={index:0,el:null,position:"before"},this.dropIndex=0,this.dropFlag=void 0;let n=p.slice(this.sortContainer.children);if(this.dropSortCountSelector&&(n=n.filter(this.dropSortCountSelectorFilterFn)),n.some(h=>h!==this.dragDropService.dragOriginPlaceholder&&h.classList.contains("drag-origin-placeholder"))&&(n=n.filter(h=>!(h.classList.contains("drag-origin-placeholder")&&h!==this.dragDropService.dragOriginPlaceholder))),this.dragDropService.dragFollow&&this.dragDropService.dragCloneNode){const h=n.findIndex(u=>u===this.dragDropService.dragCloneNode);h!==-1&&n.splice(h,1)}if(this.dragDropService.dragOriginPlaceholder){const h=n.findIndex(u=>u===this.dragDropService.dragOriginPlaceholder);h!==-1?(this.dragElIndex=h-1,n.splice(h,1)):this.dragElIndex=-1}else this.dragElIndex=-1;const s=n.findIndex(h=>h.contains(this.placeholder));s!==-1&&n.splice(s,1),s!==-1&&this.dragElIndex!==-1&&s<this.dragElIndex&&this.dragElIndex--;const a=s!==-1?s:this.dragElIndex,l=n.findIndex(h=>h.contains(t)||h.nextElementSibling===t&&h.nextElementSibling.classList.contains("drag-origin-placeholder"));if(this.switchWhileCrossEdge&&!this.allowDropOnItem&&n.length&&a!==-1&&l>-1){const h=a,u=this.overElement&&(this.overElement.realEl||this.overElement.el);return l!==-1&&u===n[l]?(this.dropIndex=this.overElement.index,this.overElement):(r={index:h>l?l:l+1,el:n[l],position:h>l?"before":"after"},this.dragDropService.dropOnItem=!1,this.dropIndex=r.index,r)}if(t===this.sortContainer||((d=t.classList)==null?void 0:d.contains("drag-origin-placeholder"))||t===(this.dragDropService&&this.dragDropService.dragOriginPlaceholder)||!this.sortContainer.contains(t)&&this.defaultDropPosition==="closest"){if(!n.length)return this.dropIndex=0,this.dragDropService.dropOnItem=!1,r;let h=!1;for(let u=0;u<n.length;u++){const f=n[u];if(n[u].nextSibling===t&&t.classList.contains("drag-origin-placeholder")){const w=this.calcPosition(e,t);return this.dragDropService.dropOnItem=w==="inside",r={index:w==="after"?u+1:u,el:n[u],position:w},this.dropIndex=r.index,r}const y=this.calcPositionOutside(e,f);if(y==="before"){this.dragDropService.dropOnItem=!1,r={index:u,el:n[u],position:y,realEl:t},this.dropIndex=r.index,h=!0;break}}return h||(this.dragDropService.dropOnItem=!1,r={index:n.length,el:n[n.length-1],position:"after",realEl:t},this.dropIndex=n.length),r}if(!this.sortContainer.contains(t))return this.defaultDropPosition==="before"?(r={index:0,el:n.length?n[0]:null,position:"before",realEl:t},this.dropFlag="beforeAll"):(r={index:n.length,el:n.length?n[n.length-1]:null,position:"after",realEl:t},this.dropFlag="afterAll"),this.dropIndex=r.index,r;let c=!1;for(let h=0;h<n.length;h++)if(n[h].contains(t)){const u=n[h],f=this.calcPosition(e,u);this.dragDropService.dropOnItem=f==="inside",r={index:f==="after"?h+1:h,el:n[h],position:f},this.dropIndex=r.index,c=!0;break}return c||(n.length&&(r={index:n.length,el:n[n.length-1],position:"after"}),this.dropIndex=n.length,this.dragDropService.dropOnItem=!1),r}calcPosition(e,t){const r=t.getBoundingClientRect(),n=e.clientY-(r.y||r.top),s=e.clientX-(r.x||r.left);if(this.allowDropOnItem){const a={height:this.nestingTargetRect&&this.nestingTargetRect.height||r.height,width:this.nestingTargetRect&&this.nestingTargetRect.width||r.width},l=a.height*3/4,c=a.width*3/4,d=Number(a.height)/4,h=Number(a.width)/4;if(this.sortDirectionZMode){const u=n/a.height+s/a.width;if(u>.3&&u<=.7)return"inside";if(u>.7&&(n-r.height+a.height)/a.height+(s-r.width+a.width)/a.width<=.7)return"inside"}if(this.sortDirection==="v"&&n>d&&n<=l||this.sortDirection!=="v"&&s>h&&s<=c)return"inside";if(this.sortDirection==="v"&&n>l&&n<=r.height-d||this.sortDirection!=="v"&&s>c&&s<=r.width-h)return"inside"}return this.sortDirectionZMode?n/r.height+s/r.width<1?"before":"after":this.sortDirection==="v"&&n>r.height/2||this.sortDirection!=="v"&&s>r.width/2?"after":"before"}calcPositionOutside(e,t){const r=this.getBoundingRectAndRealPosition(t),n=e.clientY-(r.y||r.top),s=e.clientX-(r.x||r.left);return this.sortDirectionZMode?this.sortDirection==="v"&&(n<0||n<r.height&&s<0)||this.sortDirection!=="v"&&(s<0||s<r.width&&n<0)?"before":"notsure":this.sortDirection==="v"&&n<r.height/2||this.sortDirection!=="v"&&s<r.width/2?"before":"notsure"}insertPlaceholder(e){const t=this.sortContainer.scrollTop,r=this.sortContainer.scrollLeft;let n=!1,s;const a=(l,c,d)=>{const h=l.indexOf(c);return h>-1?h:d};if(e!==null){const l=p.slice(this.sortContainer.children).filter(c=>c!==this.dragDropService.dragCloneNode);e.el===null?(s={command:"append"},this.sortContainer.appendChild(this.placeholder)):e.position==="inside"?(s={command:"remove"},this.removePlaceholder()):this.dragDropService.dragOriginPlaceholder&&this.isDragPlaceholderPosition(e.index)?(s={command:"remove"},this.removePlaceholder(),n=!0):e.position==="after"?e.el.nextSibling&&e.el.nextSibling.classList&&e.el.nextSibling.classList.contains("drag-origin-placeholder")?(s={command:"insertBefore",index:a(l,e.el.nextSibling,l.length)+1},this.sortContainer.insertBefore(this.placeholder,e.el.nextSibling.nextSibling)):(s={command:"insertBefore",index:a(l,e.el,l.length)+1},this.sortContainer.insertBefore(this.placeholder,e.el.nextSibling)):(s={command:"insertBefore",index:a(l,e.el,l.length)},this.sortContainer.insertBefore(this.placeholder,e.el))}this.placeholderInsertionEvent.next(s),this.sortContainer.scrollTop=t,this.sortContainer.scrollLeft=r,this.dragDropService.dragOriginPlaceholder&&(n?this.hitDragOriginPlaceholder():this.hitDragOriginPlaceholder(!1))}isDragPlaceholderPosition(e){return this.dragElIndex>-1&&(e===this.dragElIndex||e===this.dragElIndex+1)}hitDragOriginPlaceholder(e=!0){const t=this.dragDropService.dragOriginPlaceholder;e?t.classList.add("hit-origin-placeholder"):t.classList.remove("hit-origin-placeholder")}removePlaceholder(){this.sortContainer&&this.sortContainer.contains(this.placeholder)&&(this.sortContainer.removeChild(this.placeholder),this.placeholderInsertionEvent.next({command:"remove"}))}removeDragoverItemClass(e,t){if(this.dragOverItemClass){const r=e.querySelectorAll("."+this.dragOverItemClass);if(r&&r.length>0)for(const n of r)t?(n!==t.el||t.position!=="inside")&&p.removeClass(n,this.dragOverItemClass):p.removeClass(n,this.dragOverItemClass)}}checkSelfFromIndex(e){let t=-1;if(!this.sortContainer.contains(e))return t;let r=p.slice(this.sortContainer.children);this.dropSortCountSelector&&(r=r.filter(this.dropSortCountSelectorFilterFn));for(let n=0;n<r.length;n++)if(r[n].contains(this.dragDropService.draggedEl)){t=n;break}return this.getRealIndex(t)}getRealIndex(e,t){let r;const n=this.dropSortVirtualScrollOption&&this.dropSortVirtualScrollOption.startIndex||0,s=this.dropSortVirtualScrollOption&&this.dropSortVirtualScrollOption.totalLength;return t==="beforeAll"?r=0:t==="afterAll"?r=s||e:r=n+e,r}getBoundingRectAndRealPosition(e){let t=e.getBoundingClientRect();const{bottom:r,right:n,width:s,height:a}=t;if(t.width===0&&t.height===0&&(e.style.display==="none"||getComputedStyle(e).display==="none")&&e.nextElementSibling){const{top:l,left:c}=e.nextElementSibling.getBoundingClientRect();t={x:c,y:l,top:l,left:c,bottom:r,right:n,width:s,height:a}}return t}getSortContainer(){return this.sortContainer}}o(K,"INSTANCE_KEY","__vueDevuiDroppableDirectiveInstance"),o(K,"TOKEN",Symbol("DROPPABLE_DIRECTIVE_TOKEN"));var lt={mounted(i,e,t){var a;const r=t.ctx.provides,n=b(A.TOKEN,r),s=i[K.INSTANCE_KEY]=new K(i,n);X(K.TOKEN,s,r),s.setInput(e.value),s.mounted(),(a=s.ngOnInit)==null||a.call(s),setTimeout(()=>{var l;(l=s.ngAfterViewInit)==null||l.call(s)},0)},updated(i,e){i[K.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[K.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class ie extends B{constructor(e){super();o(this,"dSortDirection","v");o(this,"dSortableZMode",!1);o(this,"dSortable",!0);o(this,"hostBindingMap",{dSortDirection:"dsortable",dSortableZMode:"d-sortable-zmode",dSortable:"d-sortable"});o(this,"inputNameMap",{dSortable:"dSortDirection"});o(this,"el",{nativeElement:null});this.el.nativeElement=e}}o(ie,"INSTANCE_KEY","__vueDevuiSortableDirectiveInstance");var ct={mounted(i,e){const t=i[ie.INSTANCE_KEY]=new ie(i);t.setInput(e.value),t.mounted()},updated(i,e){i[ie.INSTANCE_KEY].updateInput(e.value,e.oldValue)}},dt=(i=>(i[i.forward=0]="forward",i[i.backward=1]="backward",i))(dt||{});const ht={default:i=>Math.ceil((1-i)*18)*100};class j extends B{constructor(e,t){super();o(this,"minSpeed",50);o(this,"maxSpeed",1e3);o(this,"responseEdgeWidth","100px");o(this,"speedFn",ht.default);o(this,"direction","v");o(this,"viewOffset");o(this,"dropScrollScope");o(this,"backSpaceDroppable",!0);o(this,"forwardScrollArea");o(this,"backwardScrollArea");o(this,"subscription",new C);o(this,"forwardScrollFn");o(this,"backwardScrollFn");o(this,"lastScrollTime");o(this,"animationFrameId");o(this,"document");o(this,"el",{nativeElement:null});o(this,"dragDropService");this.el.nativeElement=e,this.dragDropService=t,this.document=window.document}ngAfterViewInit(){this.el.nativeElement.parentNode.style.position="relative",this.el.nativeElement.parentNode.style.display="block",this.forwardScrollArea=this.createScrollArea(this.direction,0),this.backwardScrollArea=this.createScrollArea(this.direction,1),this.forwardScrollFn=this.createScrollFn(this.direction,0,this.speedFn),this.backwardScrollFn=this.createScrollFn(this.direction,1,this.speedFn),this.subscription.add(I(this.forwardScrollArea,"dragover").pipe(rt(e=>{e.preventDefault(),e.stopPropagation()}),ue(100,void 0,{leading:!0,trailing:!1})).subscribe(e=>this.forwardScrollFn(e))),this.subscription.add(I(this.backwardScrollArea,"dragover").pipe(rt(e=>{e.preventDefault(),e.stopPropagation()}),ue(100,void 0,{leading:!0,trailing:!1})).subscribe(e=>this.backwardScrollFn(e))),this.subscription.add(we(I(this.forwardScrollArea,"drop"),I(this.backwardScrollArea,"drop")).subscribe(e=>this.delegateDropEvent(e))),this.subscription.add(we(I(this.forwardScrollArea,"dragleave",{passive:!0}),I(this.backwardScrollArea,"dragleave",{passive:!0})).subscribe(e=>this.cleanLastScrollTime())),this.subscription.add(I(this.el.nativeElement,"scroll",{passive:!0}).pipe(ue(300,void 0,{leading:!0,trailing:!0})).subscribe(e=>{this.toggleScrollToOneEnd(this.el.nativeElement,this.forwardScrollArea,this.direction,0),this.toggleScrollToOneEnd(this.el.nativeElement,this.backwardScrollArea,this.direction,1)})),this.subscription.add(I(window,"resize",{passive:!0}).pipe(ue(300,void 0,{leading:!0,trailing:!0})).subscribe(e=>this.resizeArea())),this.subscription.add(this.dragDropService.dragStartEvent.subscribe(()=>{!this.allowScroll()||setTimeout(()=>{this.forwardScrollArea.style.display="block",this.backwardScrollArea.style.display="block"})})),this.subscription.add(we(this.dragDropService.dragEndEvent,this.dragDropService.dropEvent).subscribe(()=>{this.forwardScrollArea.style.display="none",this.backwardScrollArea.style.display="none",this.lastScrollTime=void 0})),setTimeout(()=>{this.resizeArea()},0)}ngOnDestroy(){this.subscription.unsubscribe()}createScrollFn(e,t,r){if(typeof window=="undefined")return;const n=e==="v"?"scrollTop":"scrollLeft",s=e==="v"?"clientY":"clientX",a=e==="v"?"scrollHeight":"scrollWidth",l=e==="v"?"offsetHeight":"offsetWidth",c=e==="v"?"clientHeight":"clientWidth",d=e==="v"?"height":"width",h=t===0?this.forwardScrollArea:this.backwardScrollArea,u=this.getCriticalEdge(e,t),f=this.el.nativeElement;return y=>{const w=h.getBoundingClientRect(),S=y[s]-w[u];let x=r(Math.abs(S/(w[d]||1)));x<this.minSpeed&&(x=this.minSpeed),x>this.maxSpeed&&(x=this.maxSpeed),S<0&&(x=-x),this.animationFrameId&&(window.cancelAnimationFrame(this.animationFrameId),this.animationFrameId=void 0),this.animationFrameId=requestAnimationFrame(()=>{const O=new Date().getTime(),te=Math.ceil(x*(O-(this.lastScrollTime||O))/1e3);f[n]-=te,this.lastScrollTime=O,(f[n]===0&&t===1||f[n]+f.getBoundingClientRect()[d]-f[l]+f[c]===f[a]&&t===0)&&(h.style.pointerEvents="none",this.toggleActiveClass(h,!1)),this.animationFrameId=void 0}),this.backSpaceDroppable&&p.dispatchEventToUnderElement(y)}}delegateDropEvent(e){this.backSpaceDroppable&&p.dispatchEventToUnderElement(e).defaultPrevented&&(e.preventDefault(),e.stopPropagation())}getCriticalEdge(e,t){return e==="v"&&t===0&&"bottom"||e==="v"&&t===1&&"top"||e!=="v"&&t===0&&"right"||e!=="v"&&t===1&&"left"||"bottom"}getSecondEdge(e){return e==="v"&&"left"||e!=="v"&&"top"||"left"}createScrollArea(e,t){const r=this.document.createElement("div");return r.className=`dropover-scroll-area dropover-scroll-area-${this.getCriticalEdge(e,t)}`,r.classList.add("active"),this.setAreaSize(r,e,t),r.style.position="absolute",this.setAreaStyleLayout(r,e,t),r.style.display="none",this.el.nativeElement.parentNode.appendChild(r,this.el.nativeElement),r}setAreaSize(e,t,r){const n=this.el.nativeElement.getBoundingClientRect(),s=t==="v"?"height":"width",a=typeof this.responseEdgeWidth=="string"?this.responseEdgeWidth:this.responseEdgeWidth(n[s]),l=this.viewOffset&&(r===0?this.viewOffset.forward:this.viewOffset.backward);let c=t==="v"?n.width+"px":a,d=t==="v"?a:n.height+"px";l&&(l.widthOffset&&(c="calc("+c+" + "+l.widthOffset+"px)"),l.heightOffset&&(d="calc("+d+" + "+l.heightOffset+"px)")),e.style.width=c,e.style.height=d}setAreaStyleLayout(e,t,r){const n=this.el.nativeElement,s=this.el.nativeElement.parentNode,a={left:0,right:0,top:0,bottom:0},l=this.viewOffset&&(r===0?this.viewOffset.forward:this.viewOffset.backward)||a,c=this.getCriticalEdge(t,r),d=this.getSecondEdge(t);[c,d].forEach(h=>{e.style[h]=this.getRelatedPosition(n,s,h,l[h])})}getRelatedPosition(e,t,r,n){if(typeof window=="undefined")return"0px";const s=window.getComputedStyle(t),a=t.getBoundingClientRect(),l=e.getBoundingClientRect(),c={left:["left","Left"],right:["right","Right"],top:["top","Top"],bottom:["bottom","Bottom"]};let d=1;return(r==="right"||r==="bottom")&&(d=-1),(l[c[r][0]]-a[c[r][0]]+parseInt(s["border"+c[r][1]+"Width"],10))*d+(n||0)+"px"}resizeArea(){[{area:this.forwardScrollArea,orientation:0},{area:this.backwardScrollArea,orientation:1}].forEach(e=>{this.setAreaSize(e.area,this.direction,e.orientation),this.setAreaStyleLayout(e.area,this.direction,e.orientation)})}toggleScrollToOneEnd(e,t,r,n){const s=r==="v"?"scrollTop":"scrollLeft",a=r==="v"?"scrollHeight":"scrollWidth",l=r==="v"?"offsetHeight":"offsetWidth",c=r==="v"?"clientHeight":"clientWidth",d=r==="v"?"height":"width";e[s]===0&&n===1||Math.abs(e[s]+e.getBoundingClientRect()[d]-e[a]-e[l]+e[c])<1&&n===0?(t.style.pointerEvents="none",this.toggleActiveClass(t,!1)):(t.style.pointerEvents="auto",this.toggleActiveClass(t,!0))}cleanLastScrollTime(){this.animationFrameId&&typeof window!="undefined"&&(window.cancelAnimationFrame(this.animationFrameId),this.animationFrameId=void 0),this.lastScrollTime=void 0}toggleActiveClass(e,t){t?(e.classList.remove("inactive"),e.classList.add("active")):(e.classList.remove("active"),e.classList.add("inactive"))}allowScroll(){if(!this.dropScrollScope)return!0;let e=!1;return typeof this.dropScrollScope=="string"&&(typeof this.dragDropService.scope=="string"&&(e=this.dragDropService.scope===this.dropScrollScope),this.dragDropService.scope instanceof Array&&(e=this.dragDropService.scope.indexOf(this.dropScrollScope)>-1)),this.dropScrollScope instanceof Array&&(typeof this.dragDropService.scope=="string"&&(e=this.dropScrollScope.indexOf(this.dragDropService.scope)>-1),this.dragDropService.scope instanceof Array&&(e=this.dropScrollScope.filter(t=>this.dragDropService.scope.indexOf(t)!==-1).length>0)),e}}o(j,"INSTANCE_KEY","__vueDevuiDropScrollEnhancedDirectiveInstance");var ut={mounted(i,e,t){const r=t.ctx.provides,n=b(A.TOKEN,r),s=i[j.INSTANCE_KEY]=new j(i,n);s.setInput(e.value),s.mounted(),setTimeout(()=>{var a;(a=s.ngAfterViewInit)==null||a.call(s)},0)},updated(i,e){i[j.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[j.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class ne extends j{constructor(){super(...arguments);o(this,"inputNameMap",{direction:"sideDirection"});o(this,"sideDirection","h");o(this,"direction","v")}ngOnInit(){this.direction=this.sideDirection==="v"?"h":"v"}}const gt={mounted(i,e,t){const r=t.ctx.provides,n=b(A.TOKEN,r),s=i[ne.INSTANCE_KEY]=new ne(i,n);s.setInput(e.value),s.mounted(),setTimeout(()=>{var a;(a=s.ngAfterViewInit)==null||a.call(s)},0)},updated(i,e){i[ne.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[ne.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class z extends B{constructor(e,t){super();o(this,"batchDragGroup","default");o(this,"batchDragActive",!1);o(this,"batchDragLastOneAutoActiveEventKeys",["ctrlKey"]);o(this,"batchDragStyle",["badge","stack"]);o(this,"batchDragActiveEvent",new M);o(this,"dragData");o(this,"needToRestore",!1);this.draggable=e,this.dragDropService=t,this.draggable.batchDraggable=this}ngOnInit(){this.initDragDataByIdentity()}ngOnDestroy(){this.draggable.batchDraggable=void 0,this.dragData&&this.dragData.draggable===this.draggable&&(this.dragData.draggable=void 0,this.dragData.identity||this.removeFromBatchGroup())}ngOnChanges(e){e.batchDragActive&&(this.initDragDataByIdentity()||(this.batchDragActive?!this.dragData&&this.allowAddToBatchGroup()&&this.addToBatchGroup():this.removeFromBatchGroup()))}ngAfterViewInit(){this.needToRestore&&(this.restoreDragDataViewAfterViewInit(),this.needToRestore=!1)}initDragDataByIdentity(){const e=this.findInBatchDragDataByIdentities();return e&&(this.batchDragActive?this.dragData||(this.addToBatchGroup(e),this.registerRestoreDragDataViewAfterViewInitWhiteDragging()):this.removeFromBatchGroup(e)),e}registerRestoreDragDataViewAfterViewInitWhiteDragging(){this.dragDropService.draggedEl&&this.dragDropService.draggedElIdentity&&this.dragDropService.draggedEl!==this.draggable.el.nativeElement&&(this.needToRestore=!0)}restoreDragDataViewAfterViewInit(){const e=this.draggable;e.originPlaceholder&&e.originPlaceholder.show!==!1&&e.insertOriginPlaceholder(!0,!1),e.el.nativeElement.style.display="none"}allowAddToBatchGroup(){return this.dragDropService.batchDragGroup?this.batchDragGroup===this.dragDropService.batchDragGroup:!0}addToBatchGroup(e){this.dragDropService.batchDragGroup=this.dragDropService.batchDragGroup||this.batchDragGroup,e?(e.draggable=this.draggable,e.dragData=this.draggable.dragData,this.dragData=e):(this.dragData=this.dragData||{identity:this.draggable.dragIdentity||void 0,draggable:this.draggable,dragData:this.draggable.dragData},this.dragDropService.batchDragData=this.addToArrayIfNotExist(this.dragDropService.batchDragData,this.dragData))}removeFromBatchGroup(e){this.deleteFromArrayIfExist(this.dragDropService.batchDragData,e||this.dragData),this.dragData=void 0,this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length||(this.dragDropService.batchDragGroup=void 0)}addToArrayIfNotExist(e,t){return e=e||[],e.indexOf(t)===-1&&e.push(t),e}deleteFromArrayIfExist(e,t){if(!!e){if(e.length>0){const r=e.indexOf(t);r>-1&&e.splice(r,1)}return e}}findInBatchDragDataByIdentities(){return this.draggable.dragIdentity?this.dragDropService.batchDragData?this.dragDropService.batchDragData.filter(e=>e.identity===this.draggable.dragIdentity).pop():void 0:null}active(){this.batchDragActiveEvent.emit({el:this.draggable.el.nativeElement,data:this.draggable.dragData})}updateDragData(){!this.dragData||Object.assign(this.dragData,{identity:this.draggable.dragIdentity||void 0,draggable:this.draggable,dragData:this.draggable.dragData})}}o(z,"INSTANCE_KEY","__vueDevuiBatchDraggableDirectiveInstance");var Or={mounted(i,e,t){var l;const r=t.ctx.provides,n=b(A.TOKEN,r),s=b(N.TOKEN,r),a=i[z.INSTANCE_KEY]=new z(s,n);a.setInput(e.value),a.mounted(),(l=a.ngOnInit)==null||l.call(a),setTimeout(()=>{var c;(c=a.ngAfterViewInit)==null||c.call(a)},0)},updated(i,e){i[z.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[z.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class Ie extends B{constructor(e,t){super();o(this,"copyStyle",!0);this.el=e,this.dragDropService=t}ngAfterViewInit(){this.cloneNode||this.createView()}ngOnChanges(e){e.domRef&&(this.cloneNode?(this.destroyView(),this.createView()):this.createView())}ngOnDestroy(){this.cloneNode&&this.destroyView()}createView(){this.domRef&&(this.cloneNode=this.domRef.cloneNode(!0),this.copyStyle&&this.dragDropService.copyStyle(this.domRef,this.cloneNode),setTimeout(()=>{this.el.nativeElement.appendChild(this.cloneNode)},0))}destroyView(){this.cloneNode&&(this.el.nativeElement.contains(this.cloneNode)&&this.el.nativeElement.removeChild(this.cloneNode),this.cloneNode=void 0)}updateTemplate(){}}o(Ie,"NAME","d-drag-preview-clone-dom-ref");var ft=D.defineComponent({name:"DDragPreviewCloneDomRef",props:{domRef:Object,copyStyle:{type:Boolean,default:!0}},setup(i,{expose:e}){const t={nativeElement:null},r=D.inject(A.TOKEN),n=new Ie(t,r);return n.setInput(i),D.onMounted(()=>{n.mounted(),D.nextTick(()=>{var s;(s=n.ngAfterViewInit)==null||s.call(n)})}),D.watch(()=>i,(s,a)=>{n.updateInput(s,a)}),D.onBeforeUnmount(()=>{var s;(s=n.ngOnDestroy)==null||s.call(n)}),e({instance:n}),()=>D.createVNode("div",{ref:s=>t.nativeElement=s},null)}});function pt(i,e){e===void 0&&(e=i);for(let t=0;t<i.length;t++){let r=i[t];Array.isArray(r)?(e===i&&(e=i.slice(0,t)),pt(r,e)):e!==i&&e.push(r)}return e}function Cr(){return this._results[Symbol.iterator]()}const Te=class{constructor(){o(this,"dirty",!0);o(this,"_results",[]);o(this,"changes",new M);o(this,"length",0);o(this,"first");o(this,"last");o(this,_r);const e=Symbol.iterator,t=Te.prototype;t[e]||(t[e]=Cr)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=pt(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}};let vt=Te;_r=Symbol.iterator;class Oe{constructor(){o(this,"_result",[]);o(this,"changeSubject",new Mt([]));o(this,"changes",this.changeSubject.asObservable().pipe(Sr(200)))}register(e){if(!e)return;this._result.indexOf(e)===-1&&(this._result.push(e),this.changeSubject.next(this._result))}unregister(e){if(!e)return;const t=this._result.indexOf(e);t>-1&&(this._result.splice(t,1),this.changeSubject.next(this._result))}queryResult(){return this._result.concat([])}}class Ce extends B{constructor(e){super();o(this,"descendantItem");this.drs=e}ngOnInit(){this.drs.register(this.descendantItem)}ngOnDestroy(){this.drs.unregister(this.descendantItem)}}class Ae extends vt{constructor(e){super();o(this,"sub");this.drs=e}on(){this.sub||(this.reset(this.drs.queryResult()),this.sub=this.drs.changes.subscribe(e=>{this.reset(e)}))}off(){this.sub&&this.sub.unsubscribe()}}class Z extends Oe{}o(Z,"TOKEN",Symbol("DRAG_SYNC_DR_SERVICE"));class Q extends Oe{}o(Q,"TOKEN",Symbol("DROP_SORT_SYNC_DR_SERVICE"));class W{constructor(){o(this,"dragSyncList");o(this,"dropSortSyncList")}updateDragSyncList(e){this.dragSyncList=e}getDragSyncByGroup(e){return e?[]:this.dragSyncList?this.dragSyncList.filter(t=>t.dragSyncGroup===e):[]}updateDropSyncList(e){this.dropSortSyncList=e}getDropSyncByGroup(e){return e?[]:this.dropSortSyncList?this.dropSortSyncList.filter(t=>t.dropSyncGroup===e):[]}}o(W,"TOKEN",Symbol("DRAG_DROP_SYNC_SERVICE"));class J extends B{constructor(e,t,r){super();o(this,"sub",new C);o(this,"dragSyncList");o(this,"dropSyncList");this.dragDropSyncService=e,this.dragSyncDrs=t,this.dropSortSyncDrs=r}ngOnInit(){this.dragSyncList=new Ae(this.dragSyncDrs),this.dropSyncList=new Ae(this.dropSortSyncDrs)}ngAfterViewInit(){this.dragSyncList.on(),this.dropSyncList.on(),this.dragDropSyncService.updateDragSyncList(this.dragSyncList),this.dragDropSyncService.updateDropSyncList(this.dropSyncList),this.sub.add(this.dragSyncList.changes.subscribe(e=>this.dragDropSyncService.updateDragSyncList(e))),this.sub.add(this.dropSyncList.changes.subscribe(e=>this.dragDropSyncService.updateDropSyncList(e)))}ngOnDestroy(){this.sub&&this.sub.unsubscribe(),this.dragSyncList.off(),this.dropSyncList.off()}}o(J,"INSTANCE_KEY","__vueDevuiDragDropSyncBoxDirectiveInstance");var mt={created(i,e,t){const r=t.ctx.provides,n=new W,s=new Z,a=new Q;X(W.TOKEN,n,r),X(Z.TOKEN,s,r),X(Q.TOKEN,a,r)},mounted(i,e,t){var c;const r=t.ctx.provides,n=b(W.TOKEN,r),s=b(Z.TOKEN,r),a=b(Q.TOKEN,r),l=i[J.INSTANCE_KEY]=new J(n,s,a);l.setInput(e.value),l.mounted(),(c=l.ngOnInit)==null||c.call(l),setTimeout(()=>{var d;(d=l.ngAfterViewInit)==null||d.call(l)},0)},updated(i,e){i[J.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[J.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class $ extends Ce{constructor(e,t,r,n,s){super(s);o(this,"inputNameMap",{dragSync:"dragSyncGroup",dragSyncGroup:"dragSyncGroup"});o(this,"dragSyncGroup","");o(this,"subscription",new C);o(this,"syncGroupDirectives");o(this,"el",{nativeElement:null});o(this,"subDragElEvent",e=>{this.syncGroupDirectives.forEach(t=>this.renderDisplay(t.el.nativeElement,e))});this.draggable=t,this.dragDropSyncService=r,this.dragDropService=n,this.el.nativeElement=e,this.descendantItem=this}ngOnInit(){this.draggable&&(this.subscription.add(this.draggable.dragElShowHideEvent.subscribe(this.subDragElEvent)),this.subscription.add(this.draggable.beforeDragStartEvent.subscribe(()=>{this.syncGroupDirectives=this.dragDropSyncService.getDragSyncByGroup(this.dragSyncGroup).filter(e=>e!==this),this.dragDropService.dragSyncGroupDirectives=this.syncGroupDirectives})),this.subscription.add(this.draggable.dropEndEvent.subscribe(()=>{this.dragDropService.dragSyncGroupDirectives=void 0,this.syncGroupDirectives=void 0}))),super.ngOnInit()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}renderDisplay(e,t){e.style.display=t?"":"none"}}o($,"INSTANCE_KEY","__vueDevuiDragSyncDirectiveInstance");var St={mounted(i,e,t){var d;const r=t.ctx.provides;let n=b(N.TOKEN,r);(n==null?void 0:n.el.nativeElement)!==i&&(n=void 0);const s=b(W.TOKEN,r),a=b(A.TOKEN,r),l=b(Z.TOKEN,r),c=i[$.INSTANCE_KEY]=new $(i,n,s,a,l);c.setInput(e.value),c.mounted(),(d=c.ngOnInit)==null||d.call(c)},updated(i,e){i[$.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[$.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class ee extends Ce{constructor(e,t,r,n){super(n);o(this,"inputNameMap",{dropSortSync:"dropSyncGroup",dropSyncGroup:"dropSyncGroup",dropSyncDirection:"direction"});o(this,"dropSyncGroup","");o(this,"direction","v");o(this,"subscription",new C);o(this,"syncGroupDirectives");o(this,"placeholder");o(this,"sortContainer");o(this,"el",{nativeElement:null});o(this,"subRenderEvent",e=>{this.syncGroupDirectives=this.dragDropSyncService.getDropSyncByGroup(this.dropSyncGroup).filter(t=>t!==this),this.syncGroupDirectives.forEach(t=>{t.renderPlaceholder(e,this.droppable)})});o(this,"subInsertionEvent",e=>{this.syncGroupDirectives=this.dragDropSyncService.getDropSyncByGroup(this.dropSyncGroup).filter(t=>t!==this),this.syncGroupDirectives.forEach(t=>{t.insertPlaceholderCommand({command:e.command,container:t.sortContainer,relatedEl:t.getChildrenElByIndex(t.sortContainer,e.index)})})});this.droppable=t,this.dragDropSyncService=r,this.el.nativeElement=e,this.descendantItem=this}ngOnInit(){this.sortContainer=this.el.nativeElement,this.droppable&&(this.sortContainer=this.droppable.getSortContainer(),this.subscription.add(this.droppable.placeholderInsertionEvent.subscribe(this.subInsertionEvent)),this.subscription.add(this.droppable.placeholderRenderEvent.subscribe(this.subRenderEvent))),super.ngOnInit()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}getChildrenElByIndex(e,t){return t===void 0||e&&e.children&&e.children.length<t||t<0?null:this.sortContainer.children.item(t)}renderPlaceholder(e,t){this.placeholder||(this.placeholder=document.createElement(t.placeholderTag),this.placeholder.className="drag-placeholder",this.placeholder.classList.add("drag-sync-placeholder"),this.placeholder.innerText=t.placeholderText);const{width:r,height:n}=e;this.direction==="v"?(this.placeholder.style.width=r+"px",this.placeholder.style.height=this.sortContainer.getBoundingClientRect().height+"px"):(this.placeholder.style.height=n+"px",this.placeholder.style.width=this.sortContainer.getBoundingClientRect().width+"px"),p.addElStyles(this.placeholder,t.placeholderStyle)}insertPlaceholderCommand(e){if(e.command==="insertBefore"&&e.container){e.container.insertBefore(this.placeholder,e.relatedEl);return}if(e.command==="append"&&e.container){e.container.appendChild(this.placeholder);return}if(e.command==="remove"&&e.container){e.container.contains(this.placeholder)&&e.container.removeChild(this.placeholder);return}}}o(ee,"INSTANCE_KEY","__vueDevuiDropSortSyncDirectiveInstance");var Dt={mounted(i,e,t){var c;const r=t.ctx.provides;let n=b(K.TOKEN,r);(n==null?void 0:n.el.nativeElement)!==i&&(n=void 0);const s=b(W.TOKEN,r),a=b(Q.TOKEN,r),l=i[ee.INSTANCE_KEY]=new ee(i,n,s,a);l.setInput(e.value),l.mounted(),(c=l.ngOnInit)==null||c.call(l)},updated(i,e){i[ee.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[ee.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}},Ar={title:"DragDropSync \u62D6\u62FD\u540C\u6B65",category:"\u57FA\u7840\u7EC4\u4EF6",install(i){i.directive("dDragDropSyncBox",mt),i.directive("dDragSync",St),i.directive("dDropSortSync",Dt)}},Tr={title:"DragDrop 2.0 \u62D6\u62FD",category:"\u901A\u7528",status:"100%",install(i){i.directive("dDraggable",ot),i.directive("dDroppable",lt),i.directive("dSortable",ct),i.directive("dDropScrollEnhanced",ut),i.directive("dDropScrollEnhancedSide",gt),i.directive("dDraggableBatchDrag",Or),i.directive("dDragPreview",Ir),i.component("DDragPreviewTemplate",nt),i.component(ft.name,ft),i.provide(A.TOKEN,new A),i.use(Ar)}};g.BatchDraggableDirective=z,g.DescendantChildren=Ce,g.DescendantRegisterService=Oe,g.DescendantRoot=Ae,g.DragDropService=A,g.DragDropSyncBox=mt,g.DragDropSyncBoxDirective=J,g.DragDropSyncService=W,g.DragPreviewCloneDomRefComponent=Ie,g.DragPreviewComponent=st,g.DragPreviewDirective=Y,g.DragPreviewTemplate=nt,g.DragSync=St,g.DragSyncDescendantRegisterService=Z,g.DragSyncDirective=$,g.Draggable=ot,g.DraggableDirective=N,g.DropEvent=at,g.DropScrollEnhanceTimingFunctionGroup=ht,g.DropScrollEnhanced=ut,g.DropScrollEnhancedDirective=j,g.DropScrollEnhancedSide=gt,g.DropScrollEnhancedSideDirective=ne,g.DropScrollOrientation=dt,g.DropSortSync=Dt,g.DropSortSyncDescendantRegisterService=Q,g.DropSortSyncDirective=ee,g.Droppable=lt,g.DroppableDirective=K,g.Sortable=ct,g.SortableDirective=ie,g.default=Tr,g.useDragDropService=Er,Object.defineProperty(g,"__esModule",{value:!0}),g[Symbol.toStringTag]="Module"});
11
+ </style>`,document.documentElement.appendChild(n);const s=document.createElement("div");s.id="touch_test",n.appendChild(s),t=s.offsetTop===42,(r=n.parentElement)==null||r.removeChild(n)}return t}bindTouchmoveTouchend(i){this.touchTarget=i.target,i.target.addEventListener("touchmove",this.touchmoveListener,this.listenerOpt),i.target.addEventListener("touchend",this.touchendListener),i.target.addEventListener("touchcancel",this.touchendListener)}removeTouchmoveTouchend(){this.touchTarget&&(this.touchTarget.removeEventListener("touchmove",this.touchmoveListener),this.touchTarget.removeEventListener("touchend",this.touchendListener),this.touchTarget.removeEventListener("touchcancel",this.touchendListener),this.touchTarget=void 0)}shouldHandle(i){return i&&!i.defaultPrevented&&i.touches&&i.touches.length<2}shouldHandleMove(i){return!v.IS_PRESS_HOLD_MODE&&this.shouldHandle(i)}shouldHandlePressHoldMove(i){return v.IS_PRESS_HOLD_MODE&&this.isDragEnabled&&i&&i.touches&&i.touches.length}shouldCancelPressHoldMove(i){return v.IS_PRESS_HOLD_MODE&&!this.isDragEnabled&&this.getDelta(i)>v.PRESS_HOLD_MARGIN}shouldStartDragging(i){const e=this.getDragHandle();if(e&&!this.matchSelector(i.target,e))return!1;const t=this.getDelta(i);return t>v.THRESHOLD||v.IS_PRESS_HOLD_MODE&&t>=v.PRESS_HOLD_THRESHOLD}getDragHandle(){return this.dragSource&&this.dragSource.getAttribute(v.DRAG_HANDLE_ATTR)||""}matchSelector(i,e){if(e){const t=Element.prototype;return(t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector||function(n){const s=(this.document||this.ownerDocument).querySelectorAll(n);let o=s.length;for(;--o>=0&&s.item(o)!==this;);return o>-1}).call(i,e)}return!0}reset(){this.removeTouchmoveTouchend(),this.destroyImage(),this.dragSource=null,this.lastTouch=null,this.lastTarget=null,this.ptDown=null,this.isDragEnabled=!1,this.isDropZone=!1,this.dataTransfer=new v.DataTransfer,clearInterval(this.pressHoldInterval),this.clearDragoverInterval()}getPoint(i,e){return i&&i.touches&&(i=i.touches[0]),{x:e?i.pageX:i.clientX,y:e?i.pageY:i.clientY}}getDelta(i){if(v.IS_PRESS_HOLD_MODE&&!this.ptDown)return 0;const e=this.getPoint(i);return Math.abs(e.x-this.ptDown.x)+Math.abs(e.y-this.ptDown.y)}getTarget(i){const e=this.getPoint(i);let t=document.elementFromPoint(e.x,e.y);for(;t&&getComputedStyle(t).pointerEvents==="none";)t=t.parentElement;return t}createImage(i){this.img&&this.destroyImage();const e=this.imgCustom||this.dragSource;if(this.img=e.cloneNode(!0),this.copyStyle(e,this.img),this.img.style.top=this.img.style.left="-9999px",!this.imgCustom){const t=e.getBoundingClientRect(),r=this.getPoint(i);this.imgOffset={x:r.x-t.left,y:r.y-t.top},this.img.style.opacity=v.OPACITY.toString()}this.moveImage(i),document.body.appendChild(this.img)}destroyImage(){this.img&&this.img.parentElement&&this.img.parentElement.removeChild(this.img),this.img=null,this.imgCustom=null}moveImage(i){requestAnimationFrame(()=>{if(this.img){const e=this.getPoint(i,!0),t=this.img.style;t.position="absolute",t.pointerEvents="none",t.zIndex="999999",t.left=Math.round(e.x-this.imgOffset.x)+"px",t.top=Math.round(e.y-this.imgOffset.y)+"px"}})}copyProps(i,e,t){for(let r=0;r<t.length;r++){const n=t[r];i[n]=e[n]}}copyStyle(i,e){if(v.rmvAttrs.forEach(function(n){e.removeAttribute(n)}),i instanceof HTMLCanvasElement){const n=i,s=e;s.width=n.width,s.height=n.height,s.getContext("2d").drawImage(n,0,0)}const t=i.querySelectorAll("canvas");if(t.length>0){const n=e.querySelectorAll("canvas");for(let s=0;s<n.length;s++){const o=t[s];n[s].getContext("2d").drawImage(o,0,0)}}const r=getComputedStyle(i);for(let n=0;n<r.length;n++){const s=r[n];s.indexOf("transition")<0&&(e.style[s]=r[s])}e.style.pointerEvents="none";for(let n=0;n<i.children.length;n++)this.copyStyle(i.children[n],e.children[n])}dispatchEvent(i,e,t){if(i&&t){const r=document.createEvent("Event"),n=i.touches?i.touches[0]:i;r.initEvent(e,!0,!0);const s={button:0,which:0,buttons:1,dataTransfer:this.dataTransfer};return this.copyProps(r,i,v.kbdProps),this.copyProps(r,n,v.ptProps),this.copyProps(r,{fromTouch:!0},["fromTouch"]),this.copyProps(r,s,Object.keys(s)),t.dispatchEvent(r),r.defaultPrevented}return!1}closestDraggable(i){for(;i;i=i.parentElement)if(i.hasAttribute("draggable")&&i.draggable)return i;return null}setDragoverInterval(i){this.dragoverTimer=setInterval(()=>{const e=this.getTarget(i);e!==this.lastTarget&&(this.dispatchEvent(i,"dragenter",e),this.dispatchEvent(i,"dragleave",this.lastTarget),this.lastTarget=e),this.isDropZone=this.dispatchEvent(i,"dragover",e)},v.DRAG_OVER_TIME)}clearDragoverInterval(){this.dragoverTimer&&(clearInterval(this.dragoverTimer),this.dragoverTimer=void 0)}};let w=v;w.THRESHOLD=5,w.OPACITY=.5,w.DBLCLICK=500,w.DRAG_OVER_TIME=300,w.CTX_MENU=900,w.IS_PRESS_HOLD_MODE=!0,w.PRESS_HOLD_AWAIT=400,w.PRESS_HOLD_MARGIN=25,w.PRESS_HOLD_THRESHOLD=0,w.DRAG_HANDLE_ATTR="data-drag-handle-selector",w.rmvAttrs="id,class,style,draggable".split(","),w.kbdProps="altKey,ctrlKey,metaKey,shiftKey".split(","),w.ptProps="pageX,pageY,clientX,clientY,screenX,screenY".split(","),w.instance=null,(i=>{class e{get dropEffect(){return this._dropEffect}set dropEffect(r){this._dropEffect=r}get effectAllowed(){return this._effectAllowed}set effectAllowed(r){this._effectAllowed=r}get types(){return Object.keys(this._data)}constructor(){this._dropEffect="move",this._effectAllowed="all",this._data={}}clearData(r){r!==null?delete this._data[r]:this._data=null}getData(r){return this._data[r]||""}setData(r,n){this._data[r]=n}setDragImage(r,n,s){const o=i.getInstance();o.imgCustom=r,o.imgOffset={x:n,y:s}}}i.DataTransfer=e})(w||(w={}));class O{constructor(){this.dropTargets=[],this.dropEvent=new x,this.dragEndEvent=new x,this.dragStartEvent=new x,this.subscription=new C,this.dragItemParentName="",this.dragItemChildrenName="",this.intersectionObserver=null,this.dragElShowHideEvent=new x,this.followMouse4CloneNode=e=>{const{offsetLeft:t,offsetTop:r}=this.dragOffset,{clientX:n,clientY:s}=e;requestAnimationFrame(()=>{!this.dragCloneNode||(this.dragCloneNode.style.left=n-t+"px",this.dragCloneNode.style.top=s-r+"px")})},this.touchInstance=w.getInstance()}get dragEmptyImage(){return this._dragEmptyImage||(this._dragEmptyImage=new Image,this._dragEmptyImage.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg=="),this._dragEmptyImage}get document(){return window.document}newSubscription(){return this.subscription.unsubscribe(),this.subscription=new C}enableDraggedCloneNodeFollowMouse(){if(!this.dragCloneNode){if(this.dragItemContainer=this.draggedEl.parentElement,this.dragPreviewDirective&&this.dragPreviewDirective.dragPreviewTemplate?(this.dragPreviewDirective.createPreview(),this.dragCloneNode=this.dragPreviewDirective.getPreviewElement(),this.dragItemContainer=this.document.body):this.dragCloneNode=this.draggedEl.cloneNode(!0),this.dragCloneNode.style.margin="0",this.dragFollowOptions&&this.dragFollowOptions.appendToBody&&(this.dragItemContainer=this.document.body,this.copyStyle(this.draggedEl,this.dragCloneNode)),this.dragItemChildrenName!==""){const r=this.dragItemParentName===""?this.dragCloneNode:this.document.querySelector(this.dragItemParentName),n=r.querySelectorAll(this.dragItemChildrenName);this.interceptChildNode(r,n)}const e=this.draggedEl.querySelectorAll("canvas"),t=this.dragCloneNode.querySelectorAll("canvas");if([].forEach.call(t,(r,n)=>{r.getContext("2d").drawImage(e[n],0,0)}),this.document.addEventListener("dragover",this.followMouse4CloneNode,{capture:!0,passive:!0}),this.dragCloneNode.style.width=this.dragOffset.width+"px",this.dragCloneNode.style.height=this.dragOffset.height+"px",!(this.dragPreviewDirective&&this.dragPreviewDirective.dragPreviewTemplate&&this.dragPreviewDirective.dragPreviewOptions&&this.dragPreviewDirective.dragPreviewOptions.skipBatchPreview)&&this.batchDragging&&this.batchDragData&&this.batchDragData.length>1){const r=this.document.createElement("div");if(r.appendChild(this.dragCloneNode),r.classList.add("batch-dragged-node"),this.batchDragStyle&&this.batchDragStyle.length&&this.batchDragStyle.indexOf("badge")>-1){const n=this.document.createElement("div");n.innerText=String(this.batchDragData.length),n.classList.add("batch-dragged-node-count"),r.style.position="relative";const s={position:"absolute",right:"5px",top:"-12px",height:"24px",width:"24px",borderRadius:"12px",fontSize:"14px",lineHeight:"24px",textAlign:"center",color:"#fff",background:["#5170ff","var(--brand-1, #5170ff)"]};f.addElStyles(n,s),r.appendChild(n)}if(this.batchDragStyle&&this.batchDragStyle.length&&this.batchDragStyle.indexOf("stack")>-1){let n=2;this.batchDragData.length===2&&(n=1);for(let s=0;s<n;s++){const o=this.dragCloneNode.cloneNode(!1),a={position:"absolute",left:-5*(s+1)+"px",top:-5*(s+1)+"px",zIndex:String(-(s+1)),width:this.dragOffset.width+"px",height:this.dragOffset.height+"px",background:"#fff",border:["1px solid #5170ff","1px solid var(--brand-1, #5170ff)"]};f.addElStyles(o,a),r.appendChild(o)}}this.dragCloneNode=r}this.dragCloneNode.classList.add("drag-clone-node"),this.dragPreviewDirective&&this.dragPreviewDirective.dragPreviewTemplate||(this.dragCloneNode.style.width=this.dragOffset.width+"px",this.dragCloneNode.style.height=this.dragOffset.height+"px"),this.dragCloneNode.style.position="fixed",this.dragCloneNode.style.zIndex="1090",this.dragCloneNode.style.pointerEvents="none",this.dragCloneNode.style.top=this.dragOffset.top+"px",this.dragCloneNode.style.left=this.dragOffset.left+"px",this.dragCloneNode.style.willChange="left, top",this.dragItemContainer.appendChild(this.dragCloneNode),setTimeout(()=>{this.draggedEl&&(this.draggedEl.style.display="none",this.dragElShowHideEvent.next(!1),this.dragOriginPlaceholder&&(this.dragOriginPlaceholder.style.display="block"))})}}disableDraggedCloneNodeFollowMouse(){this.dragCloneNode&&(this.document.removeEventListener("dragover",this.followMouse4CloneNode,{capture:!0}),this.dragItemContainer.removeChild(this.dragCloneNode),this.draggedEl.style.display="",this.dragElShowHideEvent.next(!0)),this.dragPreviewDirective&&this.dragPreviewDirective.dragPreviewTemplate&&this.dragPreviewDirective.destroyPreview(),this.dragCloneNode=void 0,this.dragItemContainer=void 0,this.intersectionObserver&&this.intersectionObserver.disconnect()}interceptChildNode(e,t){const r={root:e};this.intersectionObserver=new IntersectionObserver(this.setChildNodeHide,r),[].forEach.call(t,n=>{this.intersectionObserver.observe(n)})}setChildNodeHide(e){e.forEach(t=>{const{isIntersecting:r,target:n}=t;r?n.style.display="block":n.style.display="none"})}getBatchDragData(e,t="draggedElFirst"){const r=this.batchDragData.map(n=>n.dragData);if(typeof t=="function")r.sort(t);else if(t==="draggedElFirst"){let n=this.dragData;e&&(n=this.batchDragData.filter(o=>o.identity===e).pop().dragData),r.splice(r.indexOf(n),1),r.splice(0,0,n)}return r}cleanBatchDragData(){const e=this.batchDragData;return this.batchDragData&&(this.batchDragData.filter(t=>t.draggable).map(t=>t.draggable).forEach(t=>{t.batchDraggable.dragData=void 0}),this.batchDragData=void 0,this.batchDragGroup=void 0),e}copyStyle(e,t){["id","class","style","draggable"].forEach(function(n){t.removeAttribute(n)});const r=getComputedStyle(e);for(let n=0;n<r.length;n++){const s=r[n];s.indexOf("transition")<0&&(t.style[s]=r[s])}t.style.pointerEvents="none";for(let n=0;n<e.children.length;n++)this.copyStyle(e.children[n],t.children[n])}}O.TOKEN=Symbol("DRAG_DROP_SERVICE_TOKEN");function vr(){const i=new O;return m.provide(O.TOKEN,new O),i}class F extends x{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,r){let n,s=l=>null,o=()=>null;e&&typeof e=="object"?(n=this.__isAsync?l=>{setTimeout(()=>e.next(l))}:l=>{e.next(l)},e.error&&(s=this.__isAsync?l=>{setTimeout(()=>e.error(l))}:l=>{e.error(l)}),e.complete&&(s=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(n=this.__isAsync?l=>{setTimeout(()=>e(l))}:l=>{e(l)},t&&(s=this.__isAsync?l=>{setTimeout(()=>t(l))}:l=>{t(l)}),r&&(o=this.__isAsync?()=>{setTimeout(()=>r())}:()=>{r()}));const a=super.subscribe(n,s,o);return e instanceof C&&e.add(a),a}}class et extends F{constructor(){super(...arguments),this._isAsync=!1}get schedulerFns(){return this._schedulerFns}forceCallback(e,t=!1){this.schedulerFns&&this.schedulerFns.size&&(this.schedulerFns.forEach(r=>{r(e)}),t&&this.cleanCallbackFn())}cleanCallbackFn(){this._schedulerFns=void 0}subscribe(e,t,r){let n;return e&&typeof e=="object"?n=this._isAsync?s=>{setTimeout(()=>e.next(s))}:s=>{e.next(s)}:n=this._isAsync?s=>{setTimeout(()=>e(s))}:s=>{e(s)},this._schedulerFns||(this._schedulerFns=new Set),this._schedulerFns.add(n),super.subscribe(e,t,r)}}class Dr{constructor(e,t,r){this.previousValue=e,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}class M{constructor(){this.__eventListenerMap=new Map,this.el={nativeElement:null},this.hostBindingMap=void 0,this.hostListenerMap=void 0,this.inputNameMap=void 0,this.outputNameMap=void 0}mounted(){this.hostBindingMap&&this.el.nativeElement&&Object.keys(this.hostBindingMap).forEach(e=>{this[e]!==void 0&&this.hostBinding(this.hostBindingMap[e],e)}),this.hostListenerMap&&this.el.nativeElement&&Object.keys(this.hostListenerMap).forEach(e=>{this[e]&&this.hostListener(this.hostListenerMap[e],e)})}setInput(e){if(!e)return;const t=new Map;Object.keys(e).forEach(r=>{if(r.startsWith("@")){const n=this.getOutputKey(r.slice(1));this.eventListener(n,e[r])}else{const n=this.getInputKey(r),s=this[n];this[n]=e[r],t.set(n,{previousValue:s,currentValue:e[r],firstChange:!0})}}),this.notifyOnChanges(t),this.hostBindingMap&&this.el.nativeElement&&Object.keys(this.hostBindingMap).forEach(r=>{e[r]&&this.hostBinding(this.hostBindingMap[r],r)})}updateInput(e,t){const r=new Map;e&&Object.keys(e).forEach(n=>{const s=this.getInputKey(n);e[n]!==(t==null?void 0:t[n])&&r.set(s,{previousValue:t[n],currentValue:e[n],firstChange:t[n]===void 0})}),t&&Object.keys(t).filter(n=>!Object.keys(e).includes(n)).forEach(n=>{if(t[n]!==(e==null?void 0:e[n])){const s=this.getInputKey(n);r.set(s,{previousValue:t[n],currentValue:e[n],firstChange:t[n]===void 0})}}),r.forEach((n,s)=>{s.startsWith("@")?this.eventListener(s.slice(1),n.currentValue):this[s]=n.currentValue}),this.notifyOnChanges(r),this.hostBindingMap&&this.el.nativeElement&&Object.keys(this.hostBindingMap).forEach(n=>{r.get(n)&&this.hostBinding(this.hostBindingMap[n],n)})}hostBinding(e,t){const r=this.el.nativeElement,n=this[t];r.setAttribute(e,n)}hostListener(e,t){this.el.nativeElement.addEventListener(e,this[t].bind(this))}eventListener(e,t){var n;const r=this[e].subscribe(s=>{t(s)});this.__eventListenerMap.get(e)&&((n=this.__eventListenerMap.get(e))==null||n.unsubscribe(),this.__eventListenerMap.delete(e)),this.__eventListenerMap.set(e,r)}getInputKey(e){return this.inputNameMap&&this.inputNameMap[e]||e}getOutputKey(e){return this.outputNameMap&&this.outputNameMap[e]||e}notifyOnChanges(e){if(this.ngOnChanges){const t=[...e.entries()].filter(([r,n])=>!r.startsWith("@")).reduce((r,[n,s])=>{const{previousValue:o,currentValue:a,firstChange:l}=s;return r[n]=new Dr(o,a,l),r},{});Object.keys(t).length&&this.ngOnChanges(t)}}}const tt=m.defineComponent({name:"DDragPreviewTemplate",setup(i,{slots:e,expose:t}){return t({template:e.default}),()=>null}}),rt=m.defineComponent({name:"DDragPreviewContainer",props:{template:Function,context:Object},setup(i){return()=>{var e;return(e=i.template)==null?void 0:e.call(i,i.context)}}});class G extends M{constructor(e,t){super(),this.dragDropService=t,this.inputNameMap={dragPreview:"dragPreviewTemplate"},this.dragPreviewOptions={skipBatchPreview:!1},this.el={nativeElement:null},this.el.nativeElement=e}createPreview(){var o;const e={data:this.dragPreviewData,draggedEl:this.dragDropService.draggedEl,dragData:this.dragDropService.dragData,batchDragData:this.dragDropService.batchDragData&&this.dragDropService.getBatchDragData(),dragSyncDOMElements:this.dragDropService.dragSyncGroupDirectives&&this.getDragSyncDOMElements()},t=m.createApp(rt,{context:e,template:(o=this.dragPreviewTemplate)==null?void 0:o.template});t._context.provides=Object.create(this.context);const r=document.createElement("div"),n=t.mount(r),s=()=>{t.unmount()};this.previewRef={instance:n,element:r,unmount:s}}destroyPreview(){this.previewRef&&(this.previewRef.unmount(),this.previewRef=void 0)}getPreviewElement(){return this.previewRef&&this.previewRef.element}getDragSyncDOMElements(){return this.dragDropService.dragSyncGroupDirectives.map(e=>e.el.nativeElement)}}G.INSTANCE_KEY="__vueDevuiDragPreviewDirectiveInstance",G.TOKEN=Symbol("DRAG_PREVIEW_DIRECTIVE_TOKEN");var mr={mounted(i,e,t){const r=t.ctx.provides,n=y(O.TOKEN,r),s=i[G.INSTANCE_KEY]=new G(i,n);q(G.TOKEN,s,r),s.setInput({context:r}),s.setInput(e.value),s.mounted()},updated(i,e){i[G.INSTANCE_KEY].updateInput(e.value,e.oldValue)}};class _ extends M{constructor(e,t,r){super(),this.hostBindingMap={draggable:"draggable","data-drag-handle-selector":"dragHandle"},this.draggable=!0,this.dragScope="default",this.dragHandleClass="drag-handle",this.dragEffect="move",this._disabled=!1,this.dragStartEvent=new F,this.dragEvent=new et,this.dragEndEvent=new F,this.dropEndEvent=new et,this.document=window.document,this.enableDragFollow=!1,this.dragItemParentName="",this.dragItemChildrenName="",this.dragsSub=new C,this.destroyDragEndSub=new C,this.dragElShowHideEvent=new x,this.beforeDragStartEvent=new x,this.el={nativeElement:null},this.insertOriginPlaceholder=(n=!0,s=!0)=>{var l,c,d;this.delayRemoveOriginPlaceholderTimer&&(clearTimeout(this.delayRemoveOriginPlaceholderTimer),this.delayRemoveOriginPlaceholderTimer=void 0);const o=this.document.createElement(((l=this.originPlaceholder)==null?void 0:l.tag)||"div"),a=this.el.nativeElement.getBoundingClientRect();if(n?o.style.display="block":o.style.display="none",o.style.width=a.width+"px",o.style.height=a.height+"px",o.classList.add("drag-origin-placeholder"),(c=this.originPlaceholder)!=null&&c.text&&(o.innerText=this.originPlaceholder.text),(d=this.originPlaceholder)!=null&&d.style&&f.addElStyles(o,this.originPlaceholder.style),s)this.dragDropService.dragOriginPlaceholder=o,this.dragDropService.dragOriginPlaceholderNextSibling=this.el.nativeElement.nextSibling;else{o.classList.add("side-drag-origin-placeholder");const h=this.el.nativeElement.cloneNode(!0);h.style.margin=0,h.style.pointerEvents="none",h.style.opacity="0.3",o.appendChild(h)}this.dragOriginPlaceholder=o,this.dragOriginPlaceholderNextSibling=this.el.nativeElement.nextSibling,this.el.nativeElement.parentElement.insertBefore(o,this.el.nativeElement.nextSibling)},this.removeOriginPlaceholder=(n=!0)=>{var s;this.dragOriginPlaceholder&&((s=this.dragOriginPlaceholder.parentElement)==null||s.removeChild(this.dragOriginPlaceholder)),n&&(this.dragDropService.dragOriginPlaceholder=void 0,this.dragDropService.dragOriginPlaceholderNextSibling=void 0),this.dragOriginPlaceholder=void 0,this.dragOriginPlaceholderNextSibling=void 0},this.delayRemoveOriginPlaceholder=(n=!0)=>{var l,c;const s=(l=this.originPlaceholder)==null?void 0:l.removeDelay,o=this.dragOriginPlaceholder,a=this.findNextSibling(this.dragOriginPlaceholderNextSibling);(c=o==null?void 0:o.parentElement)!=null&&c.contains(a)&&o.parentElement.insertBefore(o,a),setTimeout(()=>{var d;(d=o==null?void 0:o.parentElement)!=null&&d.contains(a)&&o.parentElement.insertBefore(o,a),o==null||o.classList.add("delay-deletion"),this.delayRemoveOriginPlaceholderTimer=setTimeout(()=>{var h;(h=o==null?void 0:o.parentElement)==null||h.removeChild(o),this.document.body.contains(this.el.nativeElement)&&(this.el.nativeElement.style.display="",this.dragDropService.dragElShowHideEvent.next(!1))},s),n&&(this.dragDropService.dragOriginPlaceholder=void 0,this.dragDropService.dragOriginPlaceholderNextSibling=void 0),this.dragOriginPlaceholder=void 0,this.dragOriginPlaceholderNextSibling=void 0})},this.el.nativeElement=e,this.dragDropService=t,this.dragPreviewDirective=r}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.draggable=!this._disabled}ngOnInit(){this.dragsSub.add(E(this.el.nativeElement,"mouseover").subscribe(e=>this.mouseover(e))),this.dragsSub.add(E(this.el.nativeElement,"dragstart").subscribe(e=>this.dragStart(e))),this.dragsSub.add(E(this.el.nativeElement,"dragend").subscribe(e=>this.dragEnd(e)))}dropSubscription(){const e=this.dragDropService.newSubscription();e.add(this.dragDropService.dropEvent.subscribe(t=>{this.mouseOverElement=void 0,f.removeClass(this.el.nativeElement,this.dragOverClass),this.dropEndEvent.emit(t),this.isDestroyed&&this.dropEndEvent.schedulerFns&&this.dropEndEvent.schedulerFns.size>0&&this.dropEndEvent.forceCallback(t,!0),this.dragDropService.dragOriginPlaceholder&&(this.originPlaceholder&&this.originPlaceholder.removeDelay>0&&!this.dragDropService.dropOnOrigin?this.delayRemoveOriginPlaceholder():this.removeOriginPlaceholder(),this.dragDropService.draggedElIdentity=void 0),this.dragDropService.subscription.unsubscribe()})),e.add(this.dragDropService.dragElShowHideEvent.subscribe(this.dragElShowHideEvent))}ngAfterViewInit(){this.applyDragHandleClass(),this.dragIdentity&&this.dragDropService.draggedEl&&this.dragIdentity===this.dragDropService.draggedElIdentity&&(this.originPlaceholder&&this.originPlaceholder.show!==!1&&this.insertOriginPlaceholder(),this.dragDropService.draggedEl=this.el.nativeElement,this.el.nativeElement.style.display="none")}ngOnDestroy(){this.isDestroyed=!0,this.dragDropService.draggedEl===this.el.nativeElement&&(this.destroyDragEndSub=new C,this.destroyDragEndSub.add(E(this.el.nativeElement,"dragend").subscribe(e=>{this.dragEnd(e),this.dropEndEvent.schedulerFns&&this.dropEndEvent.schedulerFns.size>0&&this.dropEndEvent.forceCallback(e,!0),this.destroyDragEndSub.unsubscribe(),this.destroyDragEndSub=void 0})),this.originPlaceholder&&this.originPlaceholder.show!==!1&&this.dragDropService.dragOriginPlaceholder&&this.dragDropService.draggedElIdentity&&this.removeOriginPlaceholder()),this.dragsSub.unsubscribe()}dragStart(e){var t;if(this.allowDrag(e)){f.addClass(this.el.nativeElement,this.dragOverClass),this.dragDropService.dragData=this.dragData,this.dragDropService.scope=this.dragScope,this.dragDropService.draggedEl=this.el.nativeElement,this.dragDropService.draggedElIdentity=this.dragIdentity,this.dragDropService.dragFollow=this.enableDragFollow,this.dragDropService.dragFollowOptions=this.dragFollowOptions,this.dragDropService.dragItemParentName=this.dragItemParentName,this.dragDropService.dragItemChildrenName=this.dragItemChildrenName,this.beforeDragStartEvent.next(!0),this.dragPreviewDirective&&((t=this.dragPreviewDirective)==null?void 0:t.dragPreviewTemplate)&&(this.dragDropService.dragFollow=!0,this.dragDropService.dragPreviewDirective=this.dragPreviewDirective),this.batchDraggable&&(this.batchDraggable.dragData?this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>1&&(this.dragDropService.batchDragging=!0,this.dragDropService.batchDragStyle=this.batchDraggable.batchDragStyle):this.batchDraggable.batchDragLastOneAutoActiveEventKeys&&this.batchDraggable.batchDragLastOneAutoActiveEventKeys.map(s=>e[s]).some(s=>s===!0)&&this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>0&&(this.batchDraggable.active(),this.batchDraggable.dragData||this.batchDraggable.addToBatchGroup(),this.dragDropService.batchDragData.some(s=>s.draggable===this)&&(this.dragDropService.batchDragging=!0,this.dragDropService.batchDragStyle=this.batchDraggable.batchDragStyle)));const r=this.el.nativeElement.getBoundingClientRect();if(this.dragDropService.dragFollow){const n=this.mousePosition(e),s=this.checkAndGetViewPointChange(this.el.nativeElement);this.dragDropService.dragOffset={left:r.left,top:r.top,offsetLeft:n.x-r.left+s.offsetX,offsetTop:n.y-r.top+s.offsetY,width:r.width,height:r.height},this.dragDropService.enableDraggedCloneNodeFollowMouse()}else this.dragDropService.dragOffset={left:r.left,top:r.top,offsetLeft:null,offsetTop:null,width:r.width,height:r.height};this.originPlaceholder&&this.originPlaceholder.show!==!1&&this.insertOriginPlaceholder(!1),this.dragDropService.batchDragging&&this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>1&&this.dragDropService.batchDragData.map(n=>n.draggable).filter(n=>n&&n!==this).forEach(n=>{n.originPlaceholder&&n.originPlaceholder.show!==!1?(n.insertOriginPlaceholder(!0,!1),n.el.nativeElement.style.display="none"):setTimeout(()=>{n.el.nativeElement.style.display="none"})}),e.dataTransfer!==null&&e.dataTransfer.setData("text",""),e.dataTransfer.effectAllowed=this.dragEffect,this.dropSubscription(),this.dragDropService.dragFollow&&(typeof DataTransfer.prototype.setDragImage=="function"?e.dataTransfer.setDragImage(this.dragDropService.dragEmptyImage,0,0):(e.srcElement.style.display="none",this.dragDropService.dragElShowHideEvent.next(!1))),e.stopPropagation(),this.dragStartEvent.emit(e),this.dragDropService.dragStartEvent.next(e)}else e.preventDefault()}dragEnd(e){f.removeClass(this.el.nativeElement,this.dragOverClass),this.dragDropService.dragEndEvent.next(e),this.mouseOverElement=void 0,this.dragDropService.draggedEl&&(this.dragDropService.dragFollow&&this.dragDropService.disableDraggedCloneNodeFollowMouse(),this.dragDropService.dragOriginPlaceholder&&this.removeOriginPlaceholder(),this.dragDropService.batchDragging&&this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>1&&this.dragDropService.batchDragData.map(t=>t.draggable).filter(t=>t&&t!==this).forEach(t=>{t.originPlaceholder&&t.originPlaceholder.show!==!1?(t.el.nativeElement.style.display="",t.removeOriginPlaceholder()):t.el.nativeElement.style.display=""}),this.batchDraggable&&!this.batchDraggable.batchDragActive&&(this.batchDraggable.removeFromBatchGroup(),this.dragDropService.batchDragging=!1,this.dragDropService.batchDragStyle=void 0),this.dragDropService.subscription&&this.dragDropService.subscription.unsubscribe(),this.dragDropService.dragData=void 0,this.dragDropService.scope=void 0,this.dragDropService.draggedEl=void 0,this.dragDropService.dragFollow=void 0,this.dragDropService.dragFollowOptions=void 0,this.dragDropService.dragOffset=void 0,this.dragDropService.draggedElIdentity=void 0,this.dragDropService.dragPreviewDirective=void 0),e.stopPropagation(),e.preventDefault(),this.dragEndEvent.emit(e)}mouseover(e){this.mouseOverElement=e.target}allowDrag(e){return!this.draggable||this.batchDraggable&&!this.batchDraggable.allowAddToBatchGroup()?!1:this.dragHandle?e&&e.fromTouch?!0:this.mouseOverElement?f.matches(this.mouseOverElement,this.dragHandle):!1:!0}applyDragHandleClass(){const e=this.getDragHandleElement();!e||(this.draggable?f.addClass(e,this.dragHandleClass):f.removeClass(this.el,this.dragHandleClass))}getDragHandleElement(){let e=this.el;return this.dragHandle&&(e=this.el.nativeElement.querySelector(this.dragHandle)),e}mousePosition(e){return{x:e.clientX,y:e.clientY}}findNextSibling(e){return this.dragDropService.batchDragData&&this.dragDropService.batchDragData.map(t=>t.draggable&&t.draggable.el.nativeElement).indexOf(e)>-1&&(e=e.nextSibling),e}checkAndGetViewPointChange(e){if(!e.parentNode)return null;const t=e.getBoundingClientRect(),r=this.document.createElement("div");f.addElStyles(r,{opacity:"0",position:"fixed",top:t.top+"px",left:t.left+"px",width:"1px",height:"1px",zIndex:"-999999"}),e.parentNode.appendChild(r);const n=r.getBoundingClientRect();return e.parentNode.removeChild(r),{offsetX:n.left-t.left,offsetY:n.top-t.top}}}_.INSTANCE_KEY="__vueDevuiDraggableDirectiveInstance",_.TOKEN=Symbol("DRAGGABLE_DIRECTIVE_TOKEN");var it={mounted(i,e,t){var a,l,c;const r=(a=t.ctx)==null?void 0:a.provides,n=y(O.TOKEN,r);let s=y(G.TOKEN,r);(s==null?void 0:s.el.nativeElement)!==i&&(s=void 0);const o=i[_.INSTANCE_KEY]=new _(i,n,s);q(_.TOKEN,o,r),o.setInput(e.value),o.mounted(),(l=o.ngOnInit)==null||l.call(o),(c=o.ngAfterViewInit)==null||c.call(o)},updated(i,e){i[_.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[_.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class nt{constructor(e,t,r,n,s,o,a,l){this.nativeEvent=e,this.dragData=t,this.dropSubject=r,this.dropIndex=n,this.dragFromIndex=s,this.dropOnItem=o,this.dropOnOrigin=a,this.batchDragData=l}}class B extends M{constructor(e,t){super(),this.hostListenerMap={drop:"drop"},this.dragEnterEvent=new F,this.dragOverEvent=new F,this.dragLeaveEvent=new F,this.dropEvent=new F,this.dropScope="default",this.placeholderTag="div",this.placeholderStyle={backgroundColor:["#859bff","var(--devui-brand-foil, #859bff)"],opacity:".4"},this.placeholderText="",this.allowDropOnItem=!1,this.switchWhileCrossEdge=!1,this.defaultDropPosition="closest",this.dragCount=0,this.dropIndex=void 0,this.placeholderInsertionEvent=new x,this.placeholderRenderEvent=new x,this.el={nativeElement:null},this.dropSortCountSelectorFilterFn=r=>f.matches(r,this.dropSortCountSelector)||r.contains(this.placeholder)||r===this.dragDropService.dragOriginPlaceholder,this.setPlaceholder=()=>{this.placeholder.style.width=this.dragDropService.dragOffset.width+"px",this.placeholder.style.height=this.dragDropService.dragOffset.height+"px",f.addElStyles(this.placeholder,this.placeholderStyle),this.placeholderRenderEvent.next({width:this.dragDropService.dragOffset.width,height:this.dragDropService.dragOffset.height})},this.document=window.document,this.el.nativeElement=e,this.dragDropService=t}ngOnInit(){this.placeholder=this.document.createElement(this.placeholderTag),this.placeholder.className="drag-placeholder",this.placeholder.innerText=this.placeholderText,this.dragStartSubscription=this.dragDropService.dragStartEvent.subscribe(()=>this.setPlaceholder()),this.dragDropService.draggedEl&&this.setPlaceholder(),this.dropEndSubscription=this.dragDropService.dropEvent.subscribe(()=>{this.dragDropService.draggedEl&&(this.dragDropService.dragFollow||(f.addElStyles(this.dragDropService.draggedEl,{display:""}),this.dragDropService.dragElShowHideEvent.next(!0))),this.removePlaceholder(),this.overElement=void 0,this.allowDropCache=void 0,this.dragElIndex=void 0,this.dropIndex=void 0}),this.dragEndSubscription=this.dragDropService.dragEndEvent.subscribe(()=>{this.dragDropService.draggedEl&&(this.dragDropService.dragFollow||(f.addElStyles(this.dragDropService.draggedEl,{display:""}),this.dragDropService.dragElShowHideEvent.next(!0))),this.removePlaceholder(),this.dragCount=0,this.overElement=void 0,this.allowDropCache=void 0,this.dragElIndex=void 0,this.dropIndex=void 0}),this.dragPartEventSub=new C,this.dragPartEventSub.add(E(this.el.nativeElement,"dragover").pipe(hr(e=>this.allowDrop(e)),gr((e,t)=>{const r=e.clientX===t.clientX&&e.clientY===t.clientY&&e.target===t.target;return r&&(t.preventDefault(),t.stopPropagation()),r})).subscribe(e=>this.dragOver(e))),this.dragPartEventSub.add(E(this.el.nativeElement,"dragenter").subscribe(e=>this.dragEnter(e))),this.dragPartEventSub.add(E(this.el.nativeElement,"dragleave").subscribe(e=>this.dragLeave(e)))}ngAfterViewInit(){this.el.nativeElement.hasAttribute("d-sortable")?this.sortContainer=this.el.nativeElement:this.sortContainer=this.el.nativeElement.querySelector("[d-sortable]"),this.sortDirection=this.sortContainer&&this.sortContainer.getAttribute("dsortable")||"v",this.sortDirectionZMode=this.sortContainer&&this.sortContainer.getAttribute("d-sortable-zmode")==="true"||!1}ngOnDestroy(){var e,t,r;(e=this.dragStartSubscription)==null||e.unsubscribe(),(t=this.dragEndSubscription)==null||t.unsubscribe(),(r=this.dropEndSubscription)==null||r.unsubscribe(),this.dragPartEventSub&&this.dragPartEventSub.unsubscribe()}dragEnter(e){this.dragCount++,e.preventDefault(),this.dragEnterEvent.emit(e)}dragOver(e){if(this.allowDrop(e)){this.dragDropService.dropTargets.indexOf(this.el)===-1&&(this.dragDropService.dropTargets.forEach(r=>{const n=r.nativeElement.querySelector(".drag-placeholder");n&&n.parentElement.removeChild(n),f.removeClass(r,this.dragOverClass),this.removeDragoverItemClass(r.nativeElement)}),this.dragDropService.dropTargets=[this.el],this.overElement=void 0),f.addClass(this.el,this.dragOverClass);const t=this.dragDropService.dragOriginPlaceholder&&this.dragDropService.dragOriginPlaceholder.contains(e.target);if(this.sortContainer&&(t&&this.overElement===void 0||!(e.target.contains(this.placeholder)||t)||this.switchWhileCrossEdge&&!this.placeholder.contains(e.target)&&!t||!this.sortContainer.contains(e.target)&&this.defaultDropPosition==="closest")){const r=this.findSortableEl(e);!(this.overElement&&r)||this.overElement.index!==r.index||this.allowDropOnItem&&this.overElement.position!==r.position&&(this.overElement.position==="inside"||r.position==="inside")?(this.overElement=r,this.insertPlaceholder(r),this.removeDragoverItemClass(this.sortContainer,r),r.position==="inside"&&this.dragOverItemClass&&f.addClass(r.el,this.dragOverItemClass)):this.overElement=r}else this.sortContainer&&this.overElement&&this.overElement.el&&(this.overElement.el.contains(e.target)?this.overElement.realEl=void 0:this.overElement.realEl=e.target);this.dragDropService.draggedEl&&(this.dragDropService.dragFollow||(f.addElStyles(this.dragDropService.draggedEl,{display:"none"}),this.dragDropService.dragElShowHideEvent.next(!1),this.dragDropService.dragOriginPlaceholder&&f.addElStyles(this.dragDropService.dragOriginPlaceholder,{display:"block"}))),e.preventDefault(),e.stopPropagation(),this.dragOverEvent.emit(e)}}dragLeave(e){this.dragCount--,this.dragCount===0&&(this.dragDropService.dropTargets.indexOf(this.el)!==-1&&(this.dragDropService.dropTargets=[]),f.removeClass(this.el,this.dragOverClass),this.removePlaceholder(),this.removeDragoverItemClass(this.el.nativeElement),this.overElement=void 0,this.dragElIndex=void 0,this.dropIndex=void 0),e.preventDefault(),this.dragLeaveEvent.emit(e)}drop(e){if(!this.allowDrop(e))return;this.dragCount=0,f.removeClass(this.el,this.dragOverClass),this.removeDragoverItemClass(this.sortContainer),this.removePlaceholder(),e.preventDefault(),e.stopPropagation(),this.dragDropService.dropOnOrigin=this.isDragPlaceholderPosition(this.dropIndex);const t=this.dragDropService.draggedElIdentity;this.dragDropService.draggedElIdentity=void 0;let r=[];this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>1&&(r=this.dragDropService.batchDragData.map(n=>n.draggable).filter(n=>n&&n.el.nativeElement!==this.dragDropService.draggedEl)),this.dropEvent.emit(new nt(e,this.dragDropService.dragData,this.dragDropService.dropEvent,this.dropSortVirtualScrollOption?this.getRealIndex(this.dropIndex,this.dropFlag):this.dropIndex,this.sortContainer?this.checkSelfFromIndex(this.dragDropService.draggedEl):-1,this.dragDropService.dropOnItem,this.dragDropService.dropOnOrigin,this.dragDropService.batchDragging?this.dragDropService.getBatchDragData(t):void 0)),this.dragDropService.dragFollow?this.dragDropService.disableDraggedCloneNodeFollowMouse():(f.addElStyles(this.dragDropService.draggedEl,{display:void 0}),this.dragDropService.dragElShowHideEvent.next(!1)),r.length>0&&this.dragDropService.batchDragging&&r.forEach(n=>{!n.originPlaceholder||n.originPlaceholder.show===!1?n.el.nativeElement.style.display="":n.originPlaceholder.removeDelay>0&&!this.dragDropService.dropOnOrigin?n.delayRemoveOriginPlaceholder(!1):(n.el.nativeElement.style.display="",n.removeOriginPlaceholder(!1))}),this.dragDropService.dropEvent.next(e),this.dragDropService.dragData=void 0,this.dragDropService.scope=void 0,this.dragDropService.draggedEl=void 0,this.dragDropService.dragFollow=void 0,this.dragDropService.dragFollowOptions=void 0,this.dragDropService.dragOffset=void 0,this.dragDropService.dropOnOrigin=void 0,this.dragDropService.batchDragging=!1,this.dragDropService.batchDragStyle=void 0,this.dragDropService.dragPreviewDirective=void 0}allowDrop(e){if(!e)return!1;if(this.allowDropCache!==void 0)return this.allowDropCache;let t=!1;return typeof this.dropScope=="string"&&(typeof this.dragDropService.scope=="string"&&(t=this.dragDropService.scope===this.dropScope),this.dragDropService.scope instanceof Array&&(t=this.dragDropService.scope.indexOf(this.dropScope)>-1)),this.dropScope instanceof Array&&(typeof this.dragDropService.scope=="string"&&(t=this.dropScope.indexOf(this.dragDropService.scope)>-1),this.dragDropService.scope instanceof Array&&(t=this.dropScope.filter(r=>this.dragDropService.scope.indexOf(r)!==-1).length>0)),this.allowDropCache=t,t}findSortableEl(e){var c;const t=e.target;let r=null;if(!this.sortContainer)return r;r={index:0,el:null,position:"before"},this.dropIndex=0,this.dropFlag=void 0;let n=f.slice(this.sortContainer.children);if(this.dropSortCountSelector&&(n=n.filter(this.dropSortCountSelectorFilterFn)),n.some(d=>d!==this.dragDropService.dragOriginPlaceholder&&d.classList.contains("drag-origin-placeholder"))&&(n=n.filter(d=>!(d.classList.contains("drag-origin-placeholder")&&d!==this.dragDropService.dragOriginPlaceholder))),this.dragDropService.dragFollow&&this.dragDropService.dragCloneNode){const d=n.findIndex(h=>h===this.dragDropService.dragCloneNode);d!==-1&&n.splice(d,1)}if(this.dragDropService.dragOriginPlaceholder){const d=n.findIndex(h=>h===this.dragDropService.dragOriginPlaceholder);d!==-1?(this.dragElIndex=d-1,n.splice(d,1)):this.dragElIndex=-1}else this.dragElIndex=-1;const s=n.findIndex(d=>d.contains(this.placeholder));s!==-1&&n.splice(s,1),s!==-1&&this.dragElIndex!==-1&&s<this.dragElIndex&&this.dragElIndex--;const o=s!==-1?s:this.dragElIndex,a=n.findIndex(d=>d.contains(t)||d.nextElementSibling===t&&d.nextElementSibling.classList.contains("drag-origin-placeholder"));if(this.switchWhileCrossEdge&&!this.allowDropOnItem&&n.length&&o!==-1&&a>-1){const d=o,h=this.overElement&&(this.overElement.realEl||this.overElement.el);return a!==-1&&h===n[a]?(this.dropIndex=this.overElement.index,this.overElement):(r={index:d>a?a:a+1,el:n[a],position:d>a?"before":"after"},this.dragDropService.dropOnItem=!1,this.dropIndex=r.index,r)}if(t===this.sortContainer||((c=t.classList)==null?void 0:c.contains("drag-origin-placeholder"))||t===(this.dragDropService&&this.dragDropService.dragOriginPlaceholder)||!this.sortContainer.contains(t)&&this.defaultDropPosition==="closest"){if(!n.length)return this.dropIndex=0,this.dragDropService.dropOnItem=!1,r;let d=!1;for(let h=0;h<n.length;h++){const g=n[h];if(n[h].nextSibling===t&&t.classList.contains("drag-origin-placeholder")){const b=this.calcPosition(e,t);return this.dragDropService.dropOnItem=b==="inside",r={index:b==="after"?h+1:h,el:n[h],position:b},this.dropIndex=r.index,r}const S=this.calcPositionOutside(e,g);if(S==="before"){this.dragDropService.dropOnItem=!1,r={index:h,el:n[h],position:S,realEl:t},this.dropIndex=r.index,d=!0;break}}return d||(this.dragDropService.dropOnItem=!1,r={index:n.length,el:n[n.length-1],position:"after",realEl:t},this.dropIndex=n.length),r}if(!this.sortContainer.contains(t))return this.defaultDropPosition==="before"?(r={index:0,el:n.length?n[0]:null,position:"before",realEl:t},this.dropFlag="beforeAll"):(r={index:n.length,el:n.length?n[n.length-1]:null,position:"after",realEl:t},this.dropFlag="afterAll"),this.dropIndex=r.index,r;let l=!1;for(let d=0;d<n.length;d++)if(n[d].contains(t)){const h=n[d],g=this.calcPosition(e,h);this.dragDropService.dropOnItem=g==="inside",r={index:g==="after"?d+1:d,el:n[d],position:g},this.dropIndex=r.index,l=!0;break}return l||(n.length&&(r={index:n.length,el:n[n.length-1],position:"after"}),this.dropIndex=n.length,this.dragDropService.dropOnItem=!1),r}calcPosition(e,t){const r=t.getBoundingClientRect(),n=e.clientY-(r.y||r.top),s=e.clientX-(r.x||r.left);if(this.allowDropOnItem){const o={height:this.nestingTargetRect&&this.nestingTargetRect.height||r.height,width:this.nestingTargetRect&&this.nestingTargetRect.width||r.width},a=o.height*3/4,l=o.width*3/4,c=Number(o.height)/4,d=Number(o.width)/4;if(this.sortDirectionZMode){const h=n/o.height+s/o.width;if(h>.3&&h<=.7)return"inside";if(h>.7&&(n-r.height+o.height)/o.height+(s-r.width+o.width)/o.width<=.7)return"inside"}if(this.sortDirection==="v"&&n>c&&n<=a||this.sortDirection!=="v"&&s>d&&s<=l)return"inside";if(this.sortDirection==="v"&&n>a&&n<=r.height-c||this.sortDirection!=="v"&&s>l&&s<=r.width-d)return"inside"}return this.sortDirectionZMode?n/r.height+s/r.width<1?"before":"after":this.sortDirection==="v"&&n>r.height/2||this.sortDirection!=="v"&&s>r.width/2?"after":"before"}calcPositionOutside(e,t){const r=this.getBoundingRectAndRealPosition(t),n=e.clientY-(r.y||r.top),s=e.clientX-(r.x||r.left);return this.sortDirectionZMode?this.sortDirection==="v"&&(n<0||n<r.height&&s<0)||this.sortDirection!=="v"&&(s<0||s<r.width&&n<0)?"before":"notsure":this.sortDirection==="v"&&n<r.height/2||this.sortDirection!=="v"&&s<r.width/2?"before":"notsure"}insertPlaceholder(e){const t=this.sortContainer.scrollTop,r=this.sortContainer.scrollLeft;let n=!1,s;const o=(a,l,c)=>{const d=a.indexOf(l);return d>-1?d:c};if(e!==null){const a=f.slice(this.sortContainer.children).filter(l=>l!==this.dragDropService.dragCloneNode);e.el===null?(s={command:"append"},this.sortContainer.appendChild(this.placeholder)):e.position==="inside"?(s={command:"remove"},this.removePlaceholder()):this.dragDropService.dragOriginPlaceholder&&this.isDragPlaceholderPosition(e.index)?(s={command:"remove"},this.removePlaceholder(),n=!0):e.position==="after"?e.el.nextSibling&&e.el.nextSibling.classList&&e.el.nextSibling.classList.contains("drag-origin-placeholder")?(s={command:"insertBefore",index:o(a,e.el.nextSibling,a.length)+1},this.sortContainer.insertBefore(this.placeholder,e.el.nextSibling.nextSibling)):(s={command:"insertBefore",index:o(a,e.el,a.length)+1},this.sortContainer.insertBefore(this.placeholder,e.el.nextSibling)):(s={command:"insertBefore",index:o(a,e.el,a.length)},this.sortContainer.insertBefore(this.placeholder,e.el))}this.placeholderInsertionEvent.next(s),this.sortContainer.scrollTop=t,this.sortContainer.scrollLeft=r,this.dragDropService.dragOriginPlaceholder&&(n?this.hitDragOriginPlaceholder():this.hitDragOriginPlaceholder(!1))}isDragPlaceholderPosition(e){return this.dragElIndex>-1&&(e===this.dragElIndex||e===this.dragElIndex+1)}hitDragOriginPlaceholder(e=!0){const t=this.dragDropService.dragOriginPlaceholder;e?t.classList.add("hit-origin-placeholder"):t.classList.remove("hit-origin-placeholder")}removePlaceholder(){this.sortContainer&&this.sortContainer.contains(this.placeholder)&&(this.sortContainer.removeChild(this.placeholder),this.placeholderInsertionEvent.next({command:"remove"}))}removeDragoverItemClass(e,t){if(this.dragOverItemClass){const r=e.querySelectorAll("."+this.dragOverItemClass);if(r&&r.length>0)for(const n of r)t?(n!==t.el||t.position!=="inside")&&f.removeClass(n,this.dragOverItemClass):f.removeClass(n,this.dragOverItemClass)}}checkSelfFromIndex(e){let t=-1;if(!this.sortContainer.contains(e))return t;let r=f.slice(this.sortContainer.children);this.dropSortCountSelector&&(r=r.filter(this.dropSortCountSelectorFilterFn));for(let n=0;n<r.length;n++)if(r[n].contains(this.dragDropService.draggedEl)){t=n;break}return this.getRealIndex(t)}getRealIndex(e,t){let r;const n=this.dropSortVirtualScrollOption&&this.dropSortVirtualScrollOption.startIndex||0,s=this.dropSortVirtualScrollOption&&this.dropSortVirtualScrollOption.totalLength;return t==="beforeAll"?r=0:t==="afterAll"?r=s||e:r=n+e,r}getBoundingRectAndRealPosition(e){let t=e.getBoundingClientRect();const{bottom:r,right:n,width:s,height:o}=t;if(t.width===0&&t.height===0&&(e.style.display==="none"||getComputedStyle(e).display==="none")&&e.nextElementSibling){const{top:a,left:l}=e.nextElementSibling.getBoundingClientRect();t={x:l,y:a,top:a,left:l,bottom:r,right:n,width:s,height:o}}return t}getSortContainer(){return this.sortContainer}}B.INSTANCE_KEY="__vueDevuiDroppableDirectiveInstance",B.TOKEN=Symbol("DROPPABLE_DIRECTIVE_TOKEN");var st={mounted(i,e,t){var o;const r=t.ctx.provides,n=y(O.TOKEN,r),s=i[B.INSTANCE_KEY]=new B(i,n);q(B.TOKEN,s,r),s.setInput(e.value),s.mounted(),(o=s.ngOnInit)==null||o.call(s),setTimeout(()=>{var a;(a=s.ngAfterViewInit)==null||a.call(s)},0)},updated(i,e){i[B.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[B.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class te extends M{constructor(e){super(),this.dSortDirection="v",this.dSortableZMode=!1,this.dSortable=!0,this.hostBindingMap={dSortDirection:"dsortable",dSortableZMode:"d-sortable-zmode",dSortable:"d-sortable"},this.inputNameMap={dSortable:"dSortDirection"},this.el={nativeElement:null},this.el.nativeElement=e}}te.INSTANCE_KEY="__vueDevuiSortableDirectiveInstance";var ot={mounted(i,e){const t=i[te.INSTANCE_KEY]=new te(i);t.setInput(e.value),t.mounted()},updated(i,e){i[te.INSTANCE_KEY].updateInput(e.value,e.oldValue)}},at=(i=>(i[i.forward=0]="forward",i[i.backward=1]="backward",i))(at||{});const lt={default:i=>Math.ceil((1-i)*18)*100};class k extends M{constructor(e,t){super(),this.minSpeed=50,this.maxSpeed=1e3,this.responseEdgeWidth="100px",this.speedFn=lt.default,this.direction="v",this.backSpaceDroppable=!0,this.subscription=new C,this.el={nativeElement:null},this.el.nativeElement=e,this.dragDropService=t,this.document=window.document}ngAfterViewInit(){this.el.nativeElement.parentNode.style.position="relative",this.el.nativeElement.parentNode.style.display="block",this.forwardScrollArea=this.createScrollArea(this.direction,0),this.backwardScrollArea=this.createScrollArea(this.direction,1),this.forwardScrollFn=this.createScrollFn(this.direction,0,this.speedFn),this.backwardScrollFn=this.createScrollFn(this.direction,1,this.speedFn),this.subscription.add(E(this.forwardScrollArea,"dragover").pipe($e(e=>{e.preventDefault(),e.stopPropagation()}),ce(100,void 0,{leading:!0,trailing:!1})).subscribe(e=>this.forwardScrollFn(e))),this.subscription.add(E(this.backwardScrollArea,"dragover").pipe($e(e=>{e.preventDefault(),e.stopPropagation()}),ce(100,void 0,{leading:!0,trailing:!1})).subscribe(e=>this.backwardScrollFn(e))),this.subscription.add(ye(E(this.forwardScrollArea,"drop"),E(this.backwardScrollArea,"drop")).subscribe(e=>this.delegateDropEvent(e))),this.subscription.add(ye(E(this.forwardScrollArea,"dragleave",{passive:!0}),E(this.backwardScrollArea,"dragleave",{passive:!0})).subscribe(e=>this.cleanLastScrollTime())),this.subscription.add(E(this.el.nativeElement,"scroll",{passive:!0}).pipe(ce(300,void 0,{leading:!0,trailing:!0})).subscribe(e=>{this.toggleScrollToOneEnd(this.el.nativeElement,this.forwardScrollArea,this.direction,0),this.toggleScrollToOneEnd(this.el.nativeElement,this.backwardScrollArea,this.direction,1)})),this.subscription.add(E(window,"resize",{passive:!0}).pipe(ce(300,void 0,{leading:!0,trailing:!0})).subscribe(e=>this.resizeArea())),this.subscription.add(this.dragDropService.dragStartEvent.subscribe(()=>{!this.allowScroll()||setTimeout(()=>{this.forwardScrollArea.style.display="block",this.backwardScrollArea.style.display="block"})})),this.subscription.add(ye(this.dragDropService.dragEndEvent,this.dragDropService.dropEvent).subscribe(()=>{this.forwardScrollArea.style.display="none",this.backwardScrollArea.style.display="none",this.lastScrollTime=void 0})),setTimeout(()=>{this.resizeArea()},0)}ngOnDestroy(){this.subscription.unsubscribe()}createScrollFn(e,t,r){if(typeof window=="undefined")return;const n=e==="v"?"scrollTop":"scrollLeft",s=e==="v"?"clientY":"clientX",o=e==="v"?"scrollHeight":"scrollWidth",a=e==="v"?"offsetHeight":"offsetWidth",l=e==="v"?"clientHeight":"clientWidth",c=e==="v"?"height":"width",d=t===0?this.forwardScrollArea:this.backwardScrollArea,h=this.getCriticalEdge(e,t),g=this.el.nativeElement;return S=>{const b=d.getBoundingClientRect(),D=S[s]-b[h];let A=r(Math.abs(D/(b[c]||1)));A<this.minSpeed&&(A=this.minSpeed),A>this.maxSpeed&&(A=this.maxSpeed),D<0&&(A=-A),this.animationFrameId&&(window.cancelAnimationFrame(this.animationFrameId),this.animationFrameId=void 0),this.animationFrameId=requestAnimationFrame(()=>{const I=new Date().getTime(),ee=Math.ceil(A*(I-(this.lastScrollTime||I))/1e3);g[n]-=ee,this.lastScrollTime=I,(g[n]===0&&t===1||g[n]+g.getBoundingClientRect()[c]-g[a]+g[l]===g[o]&&t===0)&&(d.style.pointerEvents="none",this.toggleActiveClass(d,!1)),this.animationFrameId=void 0}),this.backSpaceDroppable&&f.dispatchEventToUnderElement(S)}}delegateDropEvent(e){this.backSpaceDroppable&&f.dispatchEventToUnderElement(e).defaultPrevented&&(e.preventDefault(),e.stopPropagation())}getCriticalEdge(e,t){return e==="v"&&t===0&&"bottom"||e==="v"&&t===1&&"top"||e!=="v"&&t===0&&"right"||e!=="v"&&t===1&&"left"||"bottom"}getSecondEdge(e){return e==="v"&&"left"||e!=="v"&&"top"||"left"}createScrollArea(e,t){const r=this.document.createElement("div");return r.className=`dropover-scroll-area dropover-scroll-area-${this.getCriticalEdge(e,t)}`,r.classList.add("active"),this.setAreaSize(r,e,t),r.style.position="absolute",this.setAreaStyleLayout(r,e,t),r.style.display="none",this.el.nativeElement.parentNode.appendChild(r,this.el.nativeElement),r}setAreaSize(e,t,r){const n=this.el.nativeElement.getBoundingClientRect(),s=t==="v"?"height":"width",o=typeof this.responseEdgeWidth=="string"?this.responseEdgeWidth:this.responseEdgeWidth(n[s]),a=this.viewOffset&&(r===0?this.viewOffset.forward:this.viewOffset.backward);let l=t==="v"?n.width+"px":o,c=t==="v"?o:n.height+"px";a&&(a.widthOffset&&(l="calc("+l+" + "+a.widthOffset+"px)"),a.heightOffset&&(c="calc("+c+" + "+a.heightOffset+"px)")),e.style.width=l,e.style.height=c}setAreaStyleLayout(e,t,r){const n=this.el.nativeElement,s=this.el.nativeElement.parentNode,o={left:0,right:0,top:0,bottom:0},a=this.viewOffset&&(r===0?this.viewOffset.forward:this.viewOffset.backward)||o,l=this.getCriticalEdge(t,r),c=this.getSecondEdge(t);[l,c].forEach(d=>{e.style[d]=this.getRelatedPosition(n,s,d,a[d])})}getRelatedPosition(e,t,r,n){if(typeof window=="undefined")return"0px";const s=window.getComputedStyle(t),o=t.getBoundingClientRect(),a=e.getBoundingClientRect(),l={left:["left","Left"],right:["right","Right"],top:["top","Top"],bottom:["bottom","Bottom"]};let c=1;return(r==="right"||r==="bottom")&&(c=-1),(a[l[r][0]]-o[l[r][0]]+parseInt(s["border"+l[r][1]+"Width"],10))*c+(n||0)+"px"}resizeArea(){[{area:this.forwardScrollArea,orientation:0},{area:this.backwardScrollArea,orientation:1}].forEach(e=>{this.setAreaSize(e.area,this.direction,e.orientation),this.setAreaStyleLayout(e.area,this.direction,e.orientation)})}toggleScrollToOneEnd(e,t,r,n){const s=r==="v"?"scrollTop":"scrollLeft",o=r==="v"?"scrollHeight":"scrollWidth",a=r==="v"?"offsetHeight":"offsetWidth",l=r==="v"?"clientHeight":"clientWidth",c=r==="v"?"height":"width";e[s]===0&&n===1||Math.abs(e[s]+e.getBoundingClientRect()[c]-e[o]-e[a]+e[l])<1&&n===0?(t.style.pointerEvents="none",this.toggleActiveClass(t,!1)):(t.style.pointerEvents="auto",this.toggleActiveClass(t,!0))}cleanLastScrollTime(){this.animationFrameId&&typeof window!="undefined"&&(window.cancelAnimationFrame(this.animationFrameId),this.animationFrameId=void 0),this.lastScrollTime=void 0}toggleActiveClass(e,t){t?(e.classList.remove("inactive"),e.classList.add("active")):(e.classList.remove("active"),e.classList.add("inactive"))}allowScroll(){if(!this.dropScrollScope)return!0;let e=!1;return typeof this.dropScrollScope=="string"&&(typeof this.dragDropService.scope=="string"&&(e=this.dragDropService.scope===this.dropScrollScope),this.dragDropService.scope instanceof Array&&(e=this.dragDropService.scope.indexOf(this.dropScrollScope)>-1)),this.dropScrollScope instanceof Array&&(typeof this.dragDropService.scope=="string"&&(e=this.dropScrollScope.indexOf(this.dragDropService.scope)>-1),this.dragDropService.scope instanceof Array&&(e=this.dropScrollScope.filter(t=>this.dragDropService.scope.indexOf(t)!==-1).length>0)),e}}k.INSTANCE_KEY="__vueDevuiDropScrollEnhancedDirectiveInstance";var ct={mounted(i,e,t){const r=t.ctx.provides,n=y(O.TOKEN,r),s=i[k.INSTANCE_KEY]=new k(i,n);s.setInput(e.value),s.mounted(),setTimeout(()=>{var o;(o=s.ngAfterViewInit)==null||o.call(s)},0)},updated(i,e){i[k.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[k.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class re extends k{constructor(){super(...arguments),this.inputNameMap={direction:"sideDirection"},this.sideDirection="h",this.direction="v"}ngOnInit(){this.direction=this.sideDirection==="v"?"h":"v"}}const dt={mounted(i,e,t){const r=t.ctx.provides,n=y(O.TOKEN,r),s=i[re.INSTANCE_KEY]=new re(i,n);s.setInput(e.value),s.mounted(),setTimeout(()=>{var o;(o=s.ngAfterViewInit)==null||o.call(s)},0)},updated(i,e){i[re.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[re.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class X extends M{constructor(e,t){super(),this.draggable=e,this.dragDropService=t,this.batchDragGroup="default",this.batchDragActive=!1,this.batchDragLastOneAutoActiveEventKeys=["ctrlKey"],this.batchDragStyle=["badge","stack"],this.batchDragActiveEvent=new F,this.needToRestore=!1,this.draggable.batchDraggable=this}ngOnInit(){this.initDragDataByIdentity()}ngOnDestroy(){this.draggable.batchDraggable=void 0,this.dragData&&this.dragData.draggable===this.draggable&&(this.dragData.draggable=void 0,this.dragData.identity||this.removeFromBatchGroup())}ngOnChanges(e){e.batchDragActive&&(this.initDragDataByIdentity()||(this.batchDragActive?!this.dragData&&this.allowAddToBatchGroup()&&this.addToBatchGroup():this.removeFromBatchGroup()))}ngAfterViewInit(){this.needToRestore&&(this.restoreDragDataViewAfterViewInit(),this.needToRestore=!1)}initDragDataByIdentity(){const e=this.findInBatchDragDataByIdentities();return e&&(this.batchDragActive?this.dragData||(this.addToBatchGroup(e),this.registerRestoreDragDataViewAfterViewInitWhiteDragging()):this.removeFromBatchGroup(e)),e}registerRestoreDragDataViewAfterViewInitWhiteDragging(){this.dragDropService.draggedEl&&this.dragDropService.draggedElIdentity&&this.dragDropService.draggedEl!==this.draggable.el.nativeElement&&(this.needToRestore=!0)}restoreDragDataViewAfterViewInit(){const e=this.draggable;e.originPlaceholder&&e.originPlaceholder.show!==!1&&e.insertOriginPlaceholder(!0,!1),e.el.nativeElement.style.display="none"}allowAddToBatchGroup(){return this.dragDropService.batchDragGroup?this.batchDragGroup===this.dragDropService.batchDragGroup:!0}addToBatchGroup(e){this.dragDropService.batchDragGroup=this.dragDropService.batchDragGroup||this.batchDragGroup,e?(e.draggable=this.draggable,e.dragData=this.draggable.dragData,this.dragData=e):(this.dragData=this.dragData||{identity:this.draggable.dragIdentity||void 0,draggable:this.draggable,dragData:this.draggable.dragData},this.dragDropService.batchDragData=this.addToArrayIfNotExist(this.dragDropService.batchDragData,this.dragData))}removeFromBatchGroup(e){this.deleteFromArrayIfExist(this.dragDropService.batchDragData,e||this.dragData),this.dragData=void 0,this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length||(this.dragDropService.batchDragGroup=void 0)}addToArrayIfNotExist(e,t){return e=e||[],e.indexOf(t)===-1&&e.push(t),e}deleteFromArrayIfExist(e,t){if(!!e){if(e.length>0){const r=e.indexOf(t);r>-1&&e.splice(r,1)}return e}}findInBatchDragDataByIdentities(){return this.draggable.dragIdentity?this.dragDropService.batchDragData?this.dragDropService.batchDragData.filter(e=>e.identity===this.draggable.dragIdentity).pop():void 0:null}active(){this.batchDragActiveEvent.emit({el:this.draggable.el.nativeElement,data:this.draggable.dragData})}updateDragData(){!this.dragData||Object.assign(this.dragData,{identity:this.draggable.dragIdentity||void 0,draggable:this.draggable,dragData:this.draggable.dragData})}}X.INSTANCE_KEY="__vueDevuiBatchDraggableDirectiveInstance";var Sr={mounted(i,e,t){var a;const r=t.ctx.provides,n=y(O.TOKEN,r),s=y(_.TOKEN,r),o=i[X.INSTANCE_KEY]=new X(s,n);o.setInput(e.value),o.mounted(),(a=o.ngOnInit)==null||a.call(o),setTimeout(()=>{var l;(l=o.ngAfterViewInit)==null||l.call(o)},0)},updated(i,e){i[X.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[X.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class be extends M{constructor(t,r){super();Ce(this,"copyStyle",!0);this.el=t,this.dragDropService=r}ngAfterViewInit(){this.cloneNode||this.createView()}ngOnChanges(t){t.domRef&&(this.cloneNode?(this.destroyView(),this.createView()):this.createView())}ngOnDestroy(){this.cloneNode&&this.destroyView()}createView(){this.domRef&&(this.cloneNode=this.domRef.cloneNode(!0),this.copyStyle&&this.dragDropService.copyStyle(this.domRef,this.cloneNode),setTimeout(()=>{this.el.nativeElement.appendChild(this.cloneNode)},0))}destroyView(){this.cloneNode&&(this.el.nativeElement.contains(this.cloneNode)&&this.el.nativeElement.removeChild(this.cloneNode),this.cloneNode=void 0)}updateTemplate(){}}Ce(be,"NAME","d-drag-preview-clone-dom-ref");var ht=m.defineComponent({name:"DDragPreviewCloneDomRef",props:{domRef:Object,copyStyle:{type:Boolean,default:!0}},setup(i,{expose:e}){const t={nativeElement:null},r=m.inject(O.TOKEN),n=new be(t,r);return n.setInput(i),m.onMounted(()=>{n.mounted(),m.nextTick(()=>{var s;(s=n.ngAfterViewInit)==null||s.call(n)})}),m.watch(()=>i,(s,o)=>{n.updateInput(s,o)}),m.onBeforeUnmount(()=>{var s;(s=n.ngOnDestroy)==null||s.call(n)}),e({instance:n}),()=>m.createVNode("div",{ref:s=>t.nativeElement=s},null)}});function ut(i,e){e===void 0&&(e=i);for(let t=0;t<i.length;t++){let r=i[t];Array.isArray(r)?(e===i&&(e=i.slice(0,t)),ut(r,e)):e!==i&&e.push(r)}return e}function yr(){return this._results[Symbol.iterator]()}const gt=class{constructor(){this.dirty=!0,this._results=[],this.changes=new F,this.length=0;const i=Symbol.iterator,e=gt.prototype;e[i]||(e[i]=yr)}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i){this._results=ut(i),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}};let br=gt;class Ee{constructor(){this._result=[],this.changeSubject=new Pt([]),this.changes=this.changeSubject.asObservable().pipe(ur(200))}register(e){if(!e)return;this._result.indexOf(e)===-1&&(this._result.push(e),this.changeSubject.next(this._result))}unregister(e){if(!e)return;const t=this._result.indexOf(e);t>-1&&(this._result.splice(t,1),this.changeSubject.next(this._result))}queryResult(){return this._result.concat([])}}class we extends M{constructor(e){super(),this.drs=e}ngOnInit(){this.drs.register(this.descendantItem)}ngOnDestroy(){this.drs.unregister(this.descendantItem)}}class Ie extends br{constructor(e){super(),this.drs=e}on(){this.sub||(this.reset(this.drs.queryResult()),this.sub=this.drs.changes.subscribe(e=>{this.reset(e)}))}off(){this.sub&&this.sub.unsubscribe()}}class z extends Ee{}z.TOKEN=Symbol("DRAG_SYNC_DR_SERVICE");class Q extends Ee{}Q.TOKEN=Symbol("DROP_SORT_SYNC_DR_SERVICE");class j{updateDragSyncList(e){this.dragSyncList=e}getDragSyncByGroup(e){return e?[]:this.dragSyncList?this.dragSyncList.filter(t=>t.dragSyncGroup===e):[]}updateDropSyncList(e){this.dropSortSyncList=e}getDropSyncByGroup(e){return e?[]:this.dropSortSyncList?this.dropSortSyncList.filter(t=>t.dropSyncGroup===e):[]}}j.TOKEN=Symbol("DRAG_DROP_SYNC_SERVICE");class Z extends M{constructor(e,t,r){super(),this.dragDropSyncService=e,this.dragSyncDrs=t,this.dropSortSyncDrs=r,this.sub=new C}ngOnInit(){this.dragSyncList=new Ie(this.dragSyncDrs),this.dropSyncList=new Ie(this.dropSortSyncDrs)}ngAfterViewInit(){this.dragSyncList.on(),this.dropSyncList.on(),this.dragDropSyncService.updateDragSyncList(this.dragSyncList),this.dragDropSyncService.updateDropSyncList(this.dropSyncList),this.sub.add(this.dragSyncList.changes.subscribe(e=>this.dragDropSyncService.updateDragSyncList(e))),this.sub.add(this.dropSyncList.changes.subscribe(e=>this.dragDropSyncService.updateDropSyncList(e)))}ngOnDestroy(){this.sub&&this.sub.unsubscribe(),this.dragSyncList.off(),this.dropSyncList.off()}}Z.INSTANCE_KEY="__vueDevuiDragDropSyncBoxDirectiveInstance";var ft={created(i,e,t){const r=t.ctx.provides,n=new j,s=new z,o=new Q;q(j.TOKEN,n,r),q(z.TOKEN,s,r),q(Q.TOKEN,o,r)},mounted(i,e,t){var l;const r=t.ctx.provides,n=y(j.TOKEN,r),s=y(z.TOKEN,r),o=y(Q.TOKEN,r),a=i[Z.INSTANCE_KEY]=new Z(n,s,o);a.setInput(e.value),a.mounted(),(l=a.ngOnInit)==null||l.call(a),setTimeout(()=>{var c;(c=a.ngAfterViewInit)==null||c.call(a)},0)},updated(i,e){i[Z.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[Z.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class J extends we{constructor(e,t,r,n,s){super(s),this.draggable=t,this.dragDropSyncService=r,this.dragDropService=n,this.inputNameMap={dragSync:"dragSyncGroup",dragSyncGroup:"dragSyncGroup"},this.dragSyncGroup="",this.subscription=new C,this.el={nativeElement:null},this.subDragElEvent=o=>{this.syncGroupDirectives.forEach(a=>this.renderDisplay(a.el.nativeElement,o))},this.el.nativeElement=e,this.descendantItem=this}ngOnInit(){this.draggable&&(this.subscription.add(this.draggable.dragElShowHideEvent.subscribe(this.subDragElEvent)),this.subscription.add(this.draggable.beforeDragStartEvent.subscribe(()=>{this.syncGroupDirectives=this.dragDropSyncService.getDragSyncByGroup(this.dragSyncGroup).filter(e=>e!==this),this.dragDropService.dragSyncGroupDirectives=this.syncGroupDirectives})),this.subscription.add(this.draggable.dropEndEvent.subscribe(()=>{this.dragDropService.dragSyncGroupDirectives=void 0,this.syncGroupDirectives=void 0}))),super.ngOnInit()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}renderDisplay(e,t){e.style.display=t?"":"none"}}J.INSTANCE_KEY="__vueDevuiDragSyncDirectiveInstance";var pt={mounted(i,e,t){var c;const r=t.ctx.provides;let n=y(_.TOKEN,r);(n==null?void 0:n.el.nativeElement)!==i&&(n=void 0);const s=y(j.TOKEN,r),o=y(O.TOKEN,r),a=y(z.TOKEN,r),l=i[J.INSTANCE_KEY]=new J(i,n,s,o,a);l.setInput(e.value),l.mounted(),(c=l.ngOnInit)==null||c.call(l)},updated(i,e){i[J.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[J.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class $ extends we{constructor(e,t,r,n){super(n),this.droppable=t,this.dragDropSyncService=r,this.inputNameMap={dropSortSync:"dropSyncGroup",dropSyncGroup:"dropSyncGroup",dropSyncDirection:"direction"},this.dropSyncGroup="",this.direction="v",this.subscription=new C,this.el={nativeElement:null},this.subRenderEvent=s=>{this.syncGroupDirectives=this.dragDropSyncService.getDropSyncByGroup(this.dropSyncGroup).filter(o=>o!==this),this.syncGroupDirectives.forEach(o=>{o.renderPlaceholder(s,this.droppable)})},this.subInsertionEvent=s=>{this.syncGroupDirectives=this.dragDropSyncService.getDropSyncByGroup(this.dropSyncGroup).filter(o=>o!==this),this.syncGroupDirectives.forEach(o=>{o.insertPlaceholderCommand({command:s.command,container:o.sortContainer,relatedEl:o.getChildrenElByIndex(o.sortContainer,s.index)})})},this.el.nativeElement=e,this.descendantItem=this}ngOnInit(){this.sortContainer=this.el.nativeElement,this.droppable&&(this.sortContainer=this.droppable.getSortContainer(),this.subscription.add(this.droppable.placeholderInsertionEvent.subscribe(this.subInsertionEvent)),this.subscription.add(this.droppable.placeholderRenderEvent.subscribe(this.subRenderEvent))),super.ngOnInit()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}getChildrenElByIndex(e,t){return t===void 0||e&&e.children&&e.children.length<t||t<0?null:this.sortContainer.children.item(t)}renderPlaceholder(e,t){this.placeholder||(this.placeholder=document.createElement(t.placeholderTag),this.placeholder.className="drag-placeholder",this.placeholder.classList.add("drag-sync-placeholder"),this.placeholder.innerText=t.placeholderText);const{width:r,height:n}=e;this.direction==="v"?(this.placeholder.style.width=r+"px",this.placeholder.style.height=this.sortContainer.getBoundingClientRect().height+"px"):(this.placeholder.style.height=n+"px",this.placeholder.style.width=this.sortContainer.getBoundingClientRect().width+"px"),f.addElStyles(this.placeholder,t.placeholderStyle)}insertPlaceholderCommand(e){if(e.command==="insertBefore"&&e.container){e.container.insertBefore(this.placeholder,e.relatedEl);return}if(e.command==="append"&&e.container){e.container.appendChild(this.placeholder);return}if(e.command==="remove"&&e.container){e.container.contains(this.placeholder)&&e.container.removeChild(this.placeholder);return}}}$.INSTANCE_KEY="__vueDevuiDropSortSyncDirectiveInstance";var vt={mounted(i,e,t){var l;const r=t.ctx.provides;let n=y(B.TOKEN,r);(n==null?void 0:n.el.nativeElement)!==i&&(n=void 0);const s=y(j.TOKEN,r),o=y(Q.TOKEN,r),a=i[$.INSTANCE_KEY]=new $(i,n,s,o);a.setInput(e.value),a.mounted(),(l=a.ngOnInit)==null||l.call(a)},updated(i,e){i[$.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[$.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}},Er={title:"DragDropSync \u62D6\u62FD\u540C\u6B65",category:"\u57FA\u7840\u7EC4\u4EF6",install(i){i.directive("dDragDropSyncBox",ft),i.directive("dDragSync",pt),i.directive("dDropSortSync",vt)}},wr={title:"DragDrop 2.0 \u62D6\u62FD",category:"\u901A\u7528",status:"100%",install(i){i.directive("dDraggable",it),i.directive("dDroppable",st),i.directive("dSortable",ot),i.directive("dDropScrollEnhanced",ct),i.directive("dDropScrollEnhancedSide",dt),i.directive("dDraggableBatchDrag",Sr),i.directive("dDragPreview",mr),i.component("DDragPreviewTemplate",tt),i.component(ht.name,ht),i.provide(O.TOKEN,new O),i.use(Er)}};u.BatchDraggableDirective=X,u.DescendantChildren=we,u.DescendantRegisterService=Ee,u.DescendantRoot=Ie,u.DragDropService=O,u.DragDropSyncBox=ft,u.DragDropSyncBoxDirective=Z,u.DragDropSyncService=j,u.DragPreviewCloneDomRefComponent=be,u.DragPreviewComponent=rt,u.DragPreviewDirective=G,u.DragPreviewTemplate=tt,u.DragSync=pt,u.DragSyncDescendantRegisterService=z,u.DragSyncDirective=J,u.Draggable=it,u.DraggableDirective=_,u.DropEvent=nt,u.DropScrollEnhanceTimingFunctionGroup=lt,u.DropScrollEnhanced=ct,u.DropScrollEnhancedDirective=k,u.DropScrollEnhancedSide=dt,u.DropScrollEnhancedSideDirective=re,u.DropScrollOrientation=at,u.DropSortSync=vt,u.DropSortSyncDescendantRegisterService=Q,u.DropSortSyncDirective=$,u.Droppable=st,u.DroppableDirective=B,u.Sortable=ot,u.SortableDirective=te,u.default=wr,u.useDragDropService=vr,Object.defineProperties(u,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1,19 +1,3 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
- var __hasOwnProp = Object.prototype.hasOwnProperty;
4
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
- var __spreadValues = (a, b) => {
7
- for (var prop in b || (b = {}))
8
- if (__hasOwnProp.call(b, prop))
9
- __defNormalProp(a, prop, b[prop]);
10
- if (__getOwnPropSymbols)
11
- for (var prop of __getOwnPropSymbols(b)) {
12
- if (__propIsEnum.call(b, prop))
13
- __defNormalProp(a, prop, b[prop]);
14
- }
15
- return a;
16
- };
17
1
  import { defineComponent, createVNode, Transition, ref, computed, watch, onUnmounted, Teleport, mergeProps, reactive, createApp, isVNode } from "vue";
18
2
  import { onClickOutside } from "@vueuse/core";
19
3
  const drawerProps = {
@@ -161,15 +145,18 @@ function useDrawer(props, emit) {
161
145
  lockScrollCb == null ? void 0 : lockScrollCb();
162
146
  document.removeEventListener("keyup", handleEscClose);
163
147
  };
164
- watch(() => props.modelValue, (val) => {
165
- if (val) {
166
- emit("open");
167
- props.lockScroll && (lockScrollCb = lockScroll());
168
- props.escKeyCloseable && document.addEventListener("keyup", handleEscClose);
169
- } else {
170
- removeBodyAdditions();
148
+ watch(
149
+ () => props.modelValue,
150
+ (val) => {
151
+ if (val) {
152
+ emit("open");
153
+ props.lockScroll && (lockScrollCb = lockScroll());
154
+ props.escKeyCloseable && document.addEventListener("keyup", handleEscClose);
155
+ } else {
156
+ removeBodyAdditions();
157
+ }
171
158
  }
172
- });
159
+ );
173
160
  onUnmounted(removeBodyAdditions);
174
161
  return { overlayRef, drawerRef, drawerClasses, handleOverlayClick };
175
162
  }
@@ -255,7 +242,10 @@ function initInstance(state) {
255
242
  }
256
243
  class DrawerService {
257
244
  open(options) {
258
- const state = reactive(__spreadValues(__spreadValues({}, defaultOptions), options));
245
+ const state = reactive({
246
+ ...defaultOptions,
247
+ ...options
248
+ });
259
249
  const app = initInstance(state);
260
250
  state.modelValue = true;
261
251
  return {