@ozdao/prometheus-framework 0.1.61 → 0.1.63

Sign up to get free protection for your applications and to get access to all the features.
Files changed (259) hide show
  1. package/dist/BackofficeGallery-30022293.js +1 -0
  2. package/dist/BackofficeGallery-f64daa0d.mjs +264 -0
  3. package/dist/BackofficeReports-cb4b180d.mjs +44 -0
  4. package/dist/BackofficeReports-d021871f.js +1 -0
  5. package/dist/BlockTags-8cddaef7.js +1 -0
  6. package/dist/BlockTags-ee310572.mjs +853 -0
  7. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  8. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  9. package/dist/Button-7643c9aa.js +1 -0
  10. package/dist/Button-9e1a9284.mjs +226 -0
  11. package/dist/Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  12. package/dist/Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  13. package/dist/ButtonToggleMembership-7ee4dc8e.mjs +90 -0
  14. package/dist/ButtonToggleMembership-b9352cec.js +1 -0
  15. package/dist/CardBlogpost-3c92fbc9.mjs +246 -0
  16. package/dist/CardBlogpost-c7364b1e.js +1 -0
  17. package/dist/CardOrganization-647cb571.js +1 -0
  18. package/dist/CardOrganization-facb77f7.mjs +234 -0
  19. package/dist/CardProduct-92affca1.js +1 -0
  20. package/dist/CardProduct-fca53299.mjs +193 -0
  21. package/dist/Checkbox-5dbe7b23.mjs +62 -0
  22. package/dist/Checkbox-76f09248.js +1 -0
  23. package/dist/Chips-0fdb31c9.js +1 -0
  24. package/dist/Chips-f1a0d085.mjs +214 -0
  25. package/dist/Community-534d473c.mjs +132 -0
  26. package/dist/Community-e9aff969.js +1 -0
  27. package/dist/Dashboard-91d73bc5.js +1 -0
  28. package/dist/Dashboard-ea9035bc.mjs +152 -0
  29. package/dist/Dropdown-31115457.js +1 -0
  30. package/dist/Dropdown-cab3605b.mjs +146 -0
  31. package/dist/EULA-aba6a807.js +1 -0
  32. package/dist/EULA-e05236af.mjs +4210 -0
  33. package/dist/EditOrder-94bbebff.mjs +221 -0
  34. package/dist/EditOrder-c070d474.js +1 -0
  35. package/dist/EmptyState-d65bab5b.js +1 -0
  36. package/dist/EmptyState-e404b05d.mjs +36 -0
  37. package/dist/Events-46ae8fc6.mjs +123 -0
  38. package/dist/Events-813c8c7b.js +1 -0
  39. package/dist/Feed-2d443ad2.mjs +146 -0
  40. package/dist/Feed-3a4e7a9c.js +1 -0
  41. package/dist/Feed-8b554fc1.js +1 -0
  42. package/dist/Feed-98b47c6f.js +1 -0
  43. package/dist/Feed-a21d6007.mjs +124 -0
  44. package/dist/Feed-b39138c8.js +1 -0
  45. package/dist/Feed-c41ef736.mjs +361 -0
  46. package/dist/Feed-d114330c.mjs +112 -0
  47. package/dist/Field-e2a43424.js +1 -0
  48. package/dist/Field-e5ad88d3.mjs +75 -0
  49. package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js +1 -0
  50. package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs +1 -0
  51. package/dist/Gallery-46b5f939.js +1 -0
  52. package/dist/Gallery-762a9c2d.mjs +241 -0
  53. package/dist/IconChevronRight-a55f838e.js +1 -0
  54. package/dist/IconChevronRight-fae9d012.mjs +28 -0
  55. package/dist/IconCommunity-468dc457.mjs +65 -0
  56. package/dist/IconCommunity-b339e806.js +1 -0
  57. package/dist/IconCross-5bf93179.js +1 -0
  58. package/dist/IconCross-84cb1292.mjs +28 -0
  59. package/dist/IconEdit-9edfd74d.mjs +21 -0
  60. package/dist/IconEdit-c0469b45.js +1 -0
  61. package/dist/Image-4dcfddb8.js +9 -0
  62. package/dist/Image-e0da17ac.mjs +571 -0
  63. package/dist/LabelGooglePlay-24feb437.mjs +31 -0
  64. package/dist/LabelGooglePlay-f80e5ff0.js +1 -0
  65. package/dist/LeftoverAdd-5a8988d9.js +1 -0
  66. package/dist/LeftoverAdd-c4f37f47.mjs +227 -0
  67. package/dist/Leftovers-470a1689.js +1 -0
  68. package/dist/Leftovers-69c7dcd9.mjs +136 -0
  69. package/dist/Loader-21f016da.js +1 -0
  70. package/dist/Loader-cd422786.mjs +41 -0
  71. package/dist/Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  72. package/dist/Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  73. package/dist/Members-04273cd4.mjs +114 -0
  74. package/dist/Members-0685a15f.js +1 -0
  75. package/dist/Menu-b5d6a0c7.js +1 -0
  76. package/dist/Menu-dd7645c1.mjs +13 -0
  77. package/dist/MenuItem-56ae7f94.js +1 -0
  78. package/dist/MenuItem-6296d02f.mjs +63 -0
  79. package/dist/Orders-b64e8cb9.js +1 -0
  80. package/dist/Orders-ff30db05.mjs +75 -0
  81. package/dist/Organizations-46aab2c8.mjs +73 -0
  82. package/dist/Organizations-a8627bc5.js +1 -0
  83. package/dist/Payments-53e5fecf.js +1 -0
  84. package/dist/Payments-82e545e1.mjs +87 -0
  85. package/dist/PlaceholderUserpic-14c6ea7e.mjs +28 -0
  86. package/dist/PlaceholderUserpic-47f6f319.js +1 -0
  87. package/dist/Popup-0915427c.mjs +74 -0
  88. package/dist/Popup-795f5c88.js +1 -0
  89. package/dist/Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  90. package/dist/Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  91. package/dist/Product-7e001b81.js +7 -0
  92. package/dist/Product-f3f42158.mjs +653 -0
  93. package/dist/ProductEdit-959b3cd3.mjs +295 -0
  94. package/dist/ProductEdit-bae5e898.js +1 -0
  95. package/dist/ProductsBackoffice-0716123f.js +1 -0
  96. package/dist/ProductsBackoffice-a36ecbc6.mjs +85 -0
  97. package/dist/ProfileBlogposts-c790d1b2.js +1 -0
  98. package/dist/ProfileBlogposts-f43cf32e.mjs +79 -0
  99. package/dist/ProfileEvents-12f80fff.mjs +70 -0
  100. package/dist/ProfileEvents-585570a3.js +1 -0
  101. package/dist/ProfileOrganizations-bbc2cf40.mjs +73 -0
  102. package/dist/ProfileOrganizations-d7103514.js +1 -0
  103. package/dist/Publics-094f3c2c.mjs +45 -0
  104. package/dist/Publics-1032c0f4.js +1 -0
  105. package/dist/Select-11ddabf5.mjs +79 -0
  106. package/dist/Select-3ca5ab39.js +1 -0
  107. package/dist/SelectMulti-58704d69.mjs +1038 -0
  108. package/dist/SelectMulti-c25765cf.js +1 -0
  109. package/dist/SkeletonBlogpost-95db0fa9.js +1 -0
  110. package/dist/SkeletonBlogpost-e0621af7.mjs +16 -0
  111. package/dist/SkeletonEvent-8690422d.mjs +16 -0
  112. package/dist/SkeletonEvent-eb284de8.js +1 -0
  113. package/dist/SkeletonEventShort-6c9e3940.js +1 -0
  114. package/dist/SkeletonEventShort-f030e56f.mjs +16 -0
  115. package/dist/SkeletonOrganization-5c09cfc5.js +1 -0
  116. package/dist/SkeletonOrganization-8690422d.mjs +16 -0
  117. package/dist/Socials-31c06635.mjs +74 -0
  118. package/dist/Socials-cceaeaf2.js +1 -0
  119. package/dist/Tab-054b61f7.mjs +46 -0
  120. package/dist/Tab-2c1e4224.js +1 -0
  121. package/dist/Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  122. package/dist/Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  123. package/dist/Upload-06d93178.js +1 -0
  124. package/dist/Upload-23212d9d.mjs +74 -0
  125. package/dist/UploadImage-0f488170.js +1 -0
  126. package/dist/UploadImage-3c627d89.mjs +83 -0
  127. package/dist/UploadImageMultiple-cb6c7188.mjs +58 -0
  128. package/dist/UploadImageMultiple-eddaac87.js +1 -0
  129. package/dist/Wallet-2043b611.mjs +24682 -0
  130. package/dist/Wallet-8fa7386a.js +55 -0
  131. package/dist/_plugin-vue_export-helper-dad06003.mjs +9 -0
  132. package/dist/_plugin-vue_export-helper-f246444f.js +1 -0
  133. package/dist/auth-56dc2ba7.mjs +607 -0
  134. package/dist/auth-f018f5b3.js +7 -0
  135. package/dist/auth.client.cjs +7 -0
  136. package/dist/auth.client.js +3874 -0
  137. package/dist/auth.validation-c31a60e7.mjs +24 -0
  138. package/dist/auth.validation-d049b341.js +1 -0
  139. package/dist/backoffice.client.cjs +1 -0
  140. package/dist/backoffice.client.js +265 -0
  141. package/dist/carousel.es-44c501bc.mjs +383 -0
  142. package/dist/carousel.es-cdfb392c.js +5 -0
  143. package/dist/categories-5b08da53.mjs +121 -0
  144. package/dist/categories-7ccd6be9.js +1 -0
  145. package/dist/click-outside-0b0727d1.js +2 -0
  146. package/dist/click-outside-6101836c.mjs +19 -0
  147. package/dist/community.client.cjs +1 -0
  148. package/dist/community.client.js +692 -0
  149. package/dist/dribbble-8e8e169b.js +1 -0
  150. package/dist/dribbble-ae37c2ac.mjs +127 -0
  151. package/dist/events.client.cjs +2 -0
  152. package/dist/events.client.js +8885 -0
  153. package/dist/files.client.cjs +1 -0
  154. package/dist/files.client.js +1 -0
  155. package/dist/gallery-d4297191.mjs +54 -0
  156. package/dist/gallery-f92912df.js +1 -0
  157. package/dist/gallery.client.cjs +1 -0
  158. package/dist/gallery.client.js +18 -0
  159. package/dist/globals-928eb13c.js +1 -0
  160. package/dist/globals-96ba60e4.mjs +91 -0
  161. package/dist/globals.client.cjs +1 -0
  162. package/dist/globals.client.js +12 -0
  163. package/dist/icons.client.cjs +1 -0
  164. package/dist/icons.client.js +84 -0
  165. package/dist/index-a661083c.mjs +934 -0
  166. package/dist/index-b41aac19.js +2 -0
  167. package/dist/inputs.validation-d7cef32b.js +1 -0
  168. package/dist/inputs.validation-db65277a.mjs +83 -0
  169. package/dist/landing.client.cjs +1 -0
  170. package/dist/landing.client.js +111 -0
  171. package/dist/leftovers-5d1ff88b.mjs +67 -0
  172. package/dist/leftovers-b60180cf.js +1 -0
  173. package/dist/legal.client.cjs +1 -0
  174. package/dist/legal.client.js +8512 -0
  175. package/dist/memberships-12210953.mjs +68 -0
  176. package/dist/memberships-393765d8.js +1 -0
  177. package/dist/middlewares.client.cjs +1 -0
  178. package/dist/middlewares.client.js +1 -0
  179. package/dist/orders-13c10d49.mjs +85 -0
  180. package/dist/orders-37f041aa.js +1 -0
  181. package/dist/organizations-587d5a4d.mjs +122 -0
  182. package/dist/organizations-b4d902a2.js +1 -0
  183. package/dist/organizations.client-35b74e44.mjs +2997 -0
  184. package/dist/organizations.client-f982f55a.js +3 -0
  185. package/dist/organizations.client.cjs +1 -0
  186. package/dist/organizations.client.js +86 -0
  187. package/dist/products-3c43eb18.js +1 -0
  188. package/dist/products-943fb95e.mjs +107 -0
  189. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  190. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +72 -2
  191. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  192. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -72
  193. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  194. package/dist/prometheus-framework/src/components/Select/Select.vue.js +78 -2
  195. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  196. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -78
  197. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/auth/store/auth.js +75 -93
  199. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  200. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  201. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  202. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  203. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -1
  204. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +61 -2
  205. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -4
  206. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +2 -61
  207. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  208. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  209. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  211. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  212. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  213. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  214. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  215. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  216. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  217. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  218. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  219. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  220. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  221. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  222. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  223. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  224. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  225. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  226. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  227. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  228. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  229. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  230. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  231. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  232. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  233. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  234. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  235. package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.cjs +1 -1
  236. package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.js +1 -1
  237. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  238. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
  239. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  240. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  241. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  242. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  243. package/dist/prometheus-framework.cjs.js +19 -19
  244. package/dist/prometheus-framework.es.js +2208 -2198
  245. package/dist/reports-270f69df.js +1 -0
  246. package/dist/reports-79cd9459.mjs +91 -0
  247. package/dist/reports.client.cjs +1 -0
  248. package/dist/reports.client.js +8 -0
  249. package/dist/states.validation-3b70f83a.js +1 -0
  250. package/dist/states.validation-944e334c.mjs +13 -0
  251. package/dist/style.css +1 -1
  252. package/dist/users.client.cjs +1 -0
  253. package/dist/users.client.js +632 -0
  254. package/dist/vue-draggable-next.esm-bundler-21a209c6.js +10 -0
  255. package/dist/vue-draggable-next.esm-bundler-ff6e3f52.mjs +1557 -0
  256. package/dist/vuex.esm-bundler-57d8b6ba.mjs +750 -0
  257. package/dist/vuex.esm-bundler-685cf29f.js +5 -0
  258. package/package.json +1 -1
  259. package/src/modules/auth/store/auth.js +20 -20
@@ -0,0 +1,1557 @@
1
+ import { defineComponent as Rt, h as ct, resolveComponent as Yt } from "vue";
2
+ /*!
3
+ * vue-draggable-next v2.1.0
4
+ * (c) 2021 Anish George
5
+ * @license MIT
6
+ */
7
+ /**!
8
+ * Sortable 1.14.0
9
+ * @author RubaXa <trash@rubaxa.org>
10
+ * @author owenm <owen23355@gmail.com>
11
+ * @license MIT
12
+ */
13
+ function ft(t, e) {
14
+ var n = Object.keys(t);
15
+ if (Object.getOwnPropertySymbols) {
16
+ var o = Object.getOwnPropertySymbols(t);
17
+ e && (o = o.filter(function(i) {
18
+ return Object.getOwnPropertyDescriptor(t, i).enumerable;
19
+ })), n.push.apply(n, o);
20
+ }
21
+ return n;
22
+ }
23
+ function G(t) {
24
+ for (var e = 1; e < arguments.length; e++) {
25
+ var n = arguments[e] != null ? arguments[e] : {};
26
+ e % 2 ? ft(Object(n), !0).forEach(function(o) {
27
+ Bt(t, o, n[o]);
28
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : ft(Object(n)).forEach(function(o) {
29
+ Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(n, o));
30
+ });
31
+ }
32
+ return t;
33
+ }
34
+ function Me(t) {
35
+ "@babel/helpers - typeof";
36
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Me = function(e) {
37
+ return typeof e;
38
+ } : Me = function(e) {
39
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
40
+ }, Me(t);
41
+ }
42
+ function Bt(t, e, n) {
43
+ return e in t ? Object.defineProperty(t, e, {
44
+ value: n,
45
+ enumerable: !0,
46
+ configurable: !0,
47
+ writable: !0
48
+ }) : t[e] = n, t;
49
+ }
50
+ function U() {
51
+ return U = Object.assign || function(t) {
52
+ for (var e = 1; e < arguments.length; e++) {
53
+ var n = arguments[e];
54
+ for (var o in n)
55
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
56
+ }
57
+ return t;
58
+ }, U.apply(this, arguments);
59
+ }
60
+ function jt(t, e) {
61
+ if (t == null)
62
+ return {};
63
+ var n = {}, o = Object.keys(t), i, r;
64
+ for (r = 0; r < o.length; r++)
65
+ i = o[r], !(e.indexOf(i) >= 0) && (n[i] = t[i]);
66
+ return n;
67
+ }
68
+ function $t(t, e) {
69
+ if (t == null)
70
+ return {};
71
+ var n = jt(t, e), o, i;
72
+ if (Object.getOwnPropertySymbols) {
73
+ var r = Object.getOwnPropertySymbols(t);
74
+ for (i = 0; i < r.length; i++)
75
+ o = r[i], !(e.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(t, o) && (n[o] = t[o]);
76
+ }
77
+ return n;
78
+ }
79
+ var Ht = "1.14.0";
80
+ function z(t) {
81
+ if (typeof window < "u" && window.navigator)
82
+ return !!/* @__PURE__ */ navigator.userAgent.match(t);
83
+ }
84
+ var q = z(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ce = z(/Edge/i), ht = z(/firefox/i), Ee = z(/safari/i) && !z(/chrome/i) && !z(/android/i), Dt = z(/iP(ad|od|hone)/i), Gt = z(/chrome/i) && z(/android/i), St = {
85
+ capture: !1,
86
+ passive: !1
87
+ };
88
+ function y(t, e, n) {
89
+ t.addEventListener(e, n, !q && St);
90
+ }
91
+ function b(t, e, n) {
92
+ t.removeEventListener(e, n, !q && St);
93
+ }
94
+ function Re(t, e) {
95
+ if (e) {
96
+ if (e[0] === ">" && (e = e.substring(1)), t)
97
+ try {
98
+ if (t.matches)
99
+ return t.matches(e);
100
+ if (t.msMatchesSelector)
101
+ return t.msMatchesSelector(e);
102
+ if (t.webkitMatchesSelector)
103
+ return t.webkitMatchesSelector(e);
104
+ } catch {
105
+ return !1;
106
+ }
107
+ return !1;
108
+ }
109
+ }
110
+ function Wt(t) {
111
+ return t.host && t !== document && t.host.nodeType ? t.host : t.parentNode;
112
+ }
113
+ function $(t, e, n, o) {
114
+ if (t) {
115
+ n = n || document;
116
+ do {
117
+ if (e != null && (e[0] === ">" ? t.parentNode === n && Re(t, e) : Re(t, e)) || o && t === n)
118
+ return t;
119
+ if (t === n)
120
+ break;
121
+ } while (t = Wt(t));
122
+ }
123
+ return null;
124
+ }
125
+ var pt = /\s+/g;
126
+ function M(t, e, n) {
127
+ if (t && e)
128
+ if (t.classList)
129
+ t.classList[n ? "add" : "remove"](e);
130
+ else {
131
+ var o = (" " + t.className + " ").replace(pt, " ").replace(" " + e + " ", " ");
132
+ t.className = (o + (n ? " " + e : "")).replace(pt, " ");
133
+ }
134
+ }
135
+ function h(t, e, n) {
136
+ var o = t && t.style;
137
+ if (o) {
138
+ if (n === void 0)
139
+ return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(t, "") : t.currentStyle && (n = t.currentStyle), e === void 0 ? n : n[e];
140
+ !(e in o) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), o[e] = n + (typeof n == "string" ? "" : "px");
141
+ }
142
+ }
143
+ function ce(t, e) {
144
+ var n = "";
145
+ if (typeof t == "string")
146
+ n = t;
147
+ else
148
+ do {
149
+ var o = h(t, "transform");
150
+ o && o !== "none" && (n = o + " " + n);
151
+ } while (!e && (t = t.parentNode));
152
+ var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
153
+ return i && new i(n);
154
+ }
155
+ function Tt(t, e, n) {
156
+ if (t) {
157
+ var o = t.getElementsByTagName(e), i = 0, r = o.length;
158
+ if (n)
159
+ for (; i < r; i++)
160
+ n(o[i], i);
161
+ return o;
162
+ }
163
+ return [];
164
+ }
165
+ function H() {
166
+ var t = document.scrollingElement;
167
+ return t || document.documentElement;
168
+ }
169
+ function C(t, e, n, o, i) {
170
+ if (!(!t.getBoundingClientRect && t !== window)) {
171
+ var r, a, l, s, u, f, c;
172
+ if (t !== window && t.parentNode && t !== H() ? (r = t.getBoundingClientRect(), a = r.top, l = r.left, s = r.bottom, u = r.right, f = r.height, c = r.width) : (a = 0, l = 0, s = window.innerHeight, u = window.innerWidth, f = window.innerHeight, c = window.innerWidth), (e || n) && t !== window && (i = i || t.parentNode, !q))
173
+ do
174
+ if (i && i.getBoundingClientRect && (h(i, "transform") !== "none" || n && h(i, "position") !== "static")) {
175
+ var m = i.getBoundingClientRect();
176
+ a -= m.top + parseInt(h(i, "border-top-width")), l -= m.left + parseInt(h(i, "border-left-width")), s = a + r.height, u = l + r.width;
177
+ break;
178
+ }
179
+ while (i = i.parentNode);
180
+ if (o && t !== window) {
181
+ var E = ce(i || t), v = E && E.a, w = E && E.d;
182
+ E && (a /= w, l /= v, c /= v, f /= w, s = a + f, u = l + c);
183
+ }
184
+ return {
185
+ top: a,
186
+ left: l,
187
+ bottom: s,
188
+ right: u,
189
+ width: c,
190
+ height: f
191
+ };
192
+ }
193
+ }
194
+ function gt(t, e, n) {
195
+ for (var o = ee(t, !0), i = C(t)[e]; o; ) {
196
+ var r = C(o)[n], a = void 0;
197
+ if (n === "top" || n === "left" ? a = i >= r : a = i <= r, !a)
198
+ return o;
199
+ if (o === H())
200
+ break;
201
+ o = ee(o, !1);
202
+ }
203
+ return !1;
204
+ }
205
+ function fe(t, e, n, o) {
206
+ for (var i = 0, r = 0, a = t.children; r < a.length; ) {
207
+ if (a[r].style.display !== "none" && a[r] !== p.ghost && (o || a[r] !== p.dragged) && $(a[r], n.draggable, t, !1)) {
208
+ if (i === e)
209
+ return a[r];
210
+ i++;
211
+ }
212
+ r++;
213
+ }
214
+ return null;
215
+ }
216
+ function lt(t, e) {
217
+ for (var n = t.lastElementChild; n && (n === p.ghost || h(n, "display") === "none" || e && !Re(n, e)); )
218
+ n = n.previousElementSibling;
219
+ return n || null;
220
+ }
221
+ function X(t, e) {
222
+ var n = 0;
223
+ if (!t || !t.parentNode)
224
+ return -1;
225
+ for (; t = t.previousElementSibling; )
226
+ t.nodeName.toUpperCase() !== "TEMPLATE" && t !== p.clone && (!e || Re(t, e)) && n++;
227
+ return n;
228
+ }
229
+ function mt(t) {
230
+ var e = 0, n = 0, o = H();
231
+ if (t)
232
+ do {
233
+ var i = ce(t), r = i.a, a = i.d;
234
+ e += t.scrollLeft * r, n += t.scrollTop * a;
235
+ } while (t !== o && (t = t.parentNode));
236
+ return [e, n];
237
+ }
238
+ function Vt(t, e) {
239
+ for (var n in t)
240
+ if (t.hasOwnProperty(n)) {
241
+ for (var o in e)
242
+ if (e.hasOwnProperty(o) && e[o] === t[n][o])
243
+ return Number(n);
244
+ }
245
+ return -1;
246
+ }
247
+ function ee(t, e) {
248
+ if (!t || !t.getBoundingClientRect)
249
+ return H();
250
+ var n = t, o = !1;
251
+ do
252
+ if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
253
+ var i = h(n);
254
+ if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
255
+ if (!n.getBoundingClientRect || n === document.body)
256
+ return H();
257
+ if (o || e)
258
+ return n;
259
+ o = !0;
260
+ }
261
+ }
262
+ while (n = n.parentNode);
263
+ return H();
264
+ }
265
+ function zt(t, e) {
266
+ if (t && e)
267
+ for (var n in e)
268
+ e.hasOwnProperty(n) && (t[n] = e[n]);
269
+ return t;
270
+ }
271
+ function Ge(t, e) {
272
+ return Math.round(t.top) === Math.round(e.top) && Math.round(t.left) === Math.round(e.left) && Math.round(t.height) === Math.round(e.height) && Math.round(t.width) === Math.round(e.width);
273
+ }
274
+ var _e;
275
+ function Ct(t, e) {
276
+ return function() {
277
+ if (!_e) {
278
+ var n = arguments, o = this;
279
+ n.length === 1 ? t.call(o, n[0]) : t.apply(o, n), _e = setTimeout(function() {
280
+ _e = void 0;
281
+ }, e);
282
+ }
283
+ };
284
+ }
285
+ function Ut() {
286
+ clearTimeout(_e), _e = void 0;
287
+ }
288
+ function xt(t, e, n) {
289
+ t.scrollLeft += e, t.scrollTop += n;
290
+ }
291
+ function It(t) {
292
+ var e = window.Polymer, n = window.jQuery || window.Zepto;
293
+ return e && e.dom ? e.dom(t).cloneNode(!0) : n ? n(t).clone(!0)[0] : t.cloneNode(!0);
294
+ }
295
+ var L = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
296
+ function qt() {
297
+ var t = [], e;
298
+ return {
299
+ captureAnimationState: function() {
300
+ if (t = [], !!this.options.animation) {
301
+ var o = [].slice.call(this.el.children);
302
+ o.forEach(function(i) {
303
+ if (!(h(i, "display") === "none" || i === p.ghost)) {
304
+ t.push({
305
+ target: i,
306
+ rect: C(i)
307
+ });
308
+ var r = G({}, t[t.length - 1].rect);
309
+ if (i.thisAnimationDuration) {
310
+ var a = ce(i, !0);
311
+ a && (r.top -= a.f, r.left -= a.e);
312
+ }
313
+ i.fromRect = r;
314
+ }
315
+ });
316
+ }
317
+ },
318
+ addAnimationState: function(o) {
319
+ t.push(o);
320
+ },
321
+ removeAnimationState: function(o) {
322
+ t.splice(Vt(t, {
323
+ target: o
324
+ }), 1);
325
+ },
326
+ animateAll: function(o) {
327
+ var i = this;
328
+ if (!this.options.animation) {
329
+ clearTimeout(e), typeof o == "function" && o();
330
+ return;
331
+ }
332
+ var r = !1, a = 0;
333
+ t.forEach(function(l) {
334
+ var s = 0, u = l.target, f = u.fromRect, c = C(u), m = u.prevFromRect, E = u.prevToRect, v = l.rect, w = ce(u, !0);
335
+ w && (c.top -= w.f, c.left -= w.e), u.toRect = c, u.thisAnimationDuration && Ge(m, c) && !Ge(f, c) && // Make sure animatingRect is on line between toRect & fromRect
336
+ (v.top - c.top) / (v.left - c.left) === (f.top - c.top) / (f.left - c.left) && (s = Zt(v, m, E, i.options)), Ge(c, f) || (u.prevFromRect = f, u.prevToRect = c, s || (s = i.options.animation), i.animate(u, v, c, s)), s && (r = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
337
+ u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
338
+ }, s), u.thisAnimationDuration = s);
339
+ }), clearTimeout(e), r ? e = setTimeout(function() {
340
+ typeof o == "function" && o();
341
+ }, a) : typeof o == "function" && o(), t = [];
342
+ },
343
+ animate: function(o, i, r, a) {
344
+ if (a) {
345
+ h(o, "transition", ""), h(o, "transform", "");
346
+ var l = ce(this.el), s = l && l.a, u = l && l.d, f = (i.left - r.left) / (s || 1), c = (i.top - r.top) / (u || 1);
347
+ o.animatingX = !!f, o.animatingY = !!c, h(o, "transform", "translate3d(" + f + "px," + c + "px,0)"), this.forRepaintDummy = Kt(o), h(o, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), h(o, "transform", "translate3d(0,0,0)"), typeof o.animated == "number" && clearTimeout(o.animated), o.animated = setTimeout(function() {
348
+ h(o, "transition", ""), h(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
349
+ }, a);
350
+ }
351
+ }
352
+ };
353
+ }
354
+ function Kt(t) {
355
+ return t.offsetWidth;
356
+ }
357
+ function Zt(t, e, n, o) {
358
+ return Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) / Math.sqrt(Math.pow(e.top - n.top, 2) + Math.pow(e.left - n.left, 2)) * o.animation;
359
+ }
360
+ var le = [], We = {
361
+ initializeByDefault: !0
362
+ }, xe = {
363
+ mount: function(e) {
364
+ for (var n in We)
365
+ We.hasOwnProperty(n) && !(n in e) && (e[n] = We[n]);
366
+ le.forEach(function(o) {
367
+ if (o.pluginName === e.pluginName)
368
+ throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
369
+ }), le.push(e);
370
+ },
371
+ pluginEvent: function(e, n, o) {
372
+ var i = this;
373
+ this.eventCanceled = !1, o.cancel = function() {
374
+ i.eventCanceled = !0;
375
+ };
376
+ var r = e + "Global";
377
+ le.forEach(function(a) {
378
+ n[a.pluginName] && (n[a.pluginName][r] && n[a.pluginName][r](G({
379
+ sortable: n
380
+ }, o)), n.options[a.pluginName] && n[a.pluginName][e] && n[a.pluginName][e](G({
381
+ sortable: n
382
+ }, o)));
383
+ });
384
+ },
385
+ initializePlugins: function(e, n, o, i) {
386
+ le.forEach(function(l) {
387
+ var s = l.pluginName;
388
+ if (!(!e.options[s] && !l.initializeByDefault)) {
389
+ var u = new l(e, n, e.options);
390
+ u.sortable = e, u.options = e.options, e[s] = u, U(o, u.defaults);
391
+ }
392
+ });
393
+ for (var r in e.options)
394
+ if (e.options.hasOwnProperty(r)) {
395
+ var a = this.modifyOption(e, r, e.options[r]);
396
+ typeof a < "u" && (e.options[r] = a);
397
+ }
398
+ },
399
+ getEventProperties: function(e, n) {
400
+ var o = {};
401
+ return le.forEach(function(i) {
402
+ typeof i.eventProperties == "function" && U(o, i.eventProperties.call(n[i.pluginName], e));
403
+ }), o;
404
+ },
405
+ modifyOption: function(e, n, o) {
406
+ var i;
407
+ return le.forEach(function(r) {
408
+ e[r.pluginName] && r.optionListeners && typeof r.optionListeners[n] == "function" && (i = r.optionListeners[n].call(e[r.pluginName], o));
409
+ }), i;
410
+ }
411
+ };
412
+ function Qt(t) {
413
+ var e = t.sortable, n = t.rootEl, o = t.name, i = t.targetEl, r = t.cloneEl, a = t.toEl, l = t.fromEl, s = t.oldIndex, u = t.newIndex, f = t.oldDraggableIndex, c = t.newDraggableIndex, m = t.originalEvent, E = t.putSortable, v = t.extraEventProperties;
414
+ if (e = e || n && n[L], !!e) {
415
+ var w, k = e.options, W = "on" + o.charAt(0).toUpperCase() + o.substr(1);
416
+ window.CustomEvent && !q && !Ce ? w = new CustomEvent(o, {
417
+ bubbles: !0,
418
+ cancelable: !0
419
+ }) : (w = document.createEvent("Event"), w.initEvent(o, !0, !0)), w.to = a || n, w.from = l || n, w.item = i || n, w.clone = r, w.oldIndex = s, w.newIndex = u, w.oldDraggableIndex = f, w.newDraggableIndex = c, w.originalEvent = m, w.pullMode = E ? E.lastPutMode : void 0;
420
+ var O = G(G({}, v), xe.getEventProperties(o, e));
421
+ for (var R in O)
422
+ w[R] = O[R];
423
+ n && n.dispatchEvent(w), k[W] && k[W].call(e, w);
424
+ }
425
+ }
426
+ var Jt = ["evt"], P = function(e, n) {
427
+ var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = o.evt, r = $t(o, Jt);
428
+ xe.pluginEvent.bind(p)(e, n, G({
429
+ dragEl: d,
430
+ parentEl: D,
431
+ ghostEl: g,
432
+ rootEl: _,
433
+ nextEl: ae,
434
+ lastDownEl: Fe,
435
+ cloneEl: S,
436
+ cloneHidden: J,
437
+ dragStarted: be,
438
+ putSortable: x,
439
+ activeSortable: p.active,
440
+ originalEvent: i,
441
+ oldIndex: de,
442
+ oldDraggableIndex: De,
443
+ newIndex: F,
444
+ newDraggableIndex: Q,
445
+ hideGhostForTarget: Nt,
446
+ unhideGhostForTarget: Mt,
447
+ cloneNowHidden: function() {
448
+ J = !0;
449
+ },
450
+ cloneNowShown: function() {
451
+ J = !1;
452
+ },
453
+ dispatchSortableEvent: function(l) {
454
+ A({
455
+ sortable: n,
456
+ name: l,
457
+ originalEvent: i
458
+ });
459
+ }
460
+ }, r));
461
+ };
462
+ function A(t) {
463
+ Qt(G({
464
+ putSortable: x,
465
+ cloneEl: S,
466
+ targetEl: d,
467
+ rootEl: _,
468
+ oldIndex: de,
469
+ oldDraggableIndex: De,
470
+ newIndex: F,
471
+ newDraggableIndex: Q
472
+ }, t));
473
+ }
474
+ var d, D, g, _, ae, Fe, S, J, de, F, De, Q, Oe, x, ue = !1, Ye = !1, Be = [], ie, Y, Ve, ze, vt, bt, be, se, Se, Te = !1, Ae = !1, Le, I, Ue = [], tt = !1, je = [], He = typeof document < "u", Pe = Dt, yt = Ce || q ? "cssFloat" : "float", en = He && !Gt && !Dt && "draggable" in document.createElement("div"), Ot = function() {
475
+ if (He) {
476
+ if (q)
477
+ return !1;
478
+ var t = document.createElement("x");
479
+ return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
480
+ }
481
+ }(), At = function(e, n) {
482
+ var o = h(e), i = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), r = fe(e, 0, n), a = fe(e, 1, n), l = r && h(r), s = a && h(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + C(r).width, f = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + C(a).width;
483
+ if (o.display === "flex")
484
+ return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
485
+ if (o.display === "grid")
486
+ return o.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
487
+ if (r && l.float && l.float !== "none") {
488
+ var c = l.float === "left" ? "left" : "right";
489
+ return a && (s.clear === "both" || s.clear === c) ? "vertical" : "horizontal";
490
+ }
491
+ return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= i && o[yt] === "none" || a && o[yt] === "none" && u + f > i) ? "vertical" : "horizontal";
492
+ }, tn = function(e, n, o) {
493
+ var i = o ? e.left : e.top, r = o ? e.right : e.bottom, a = o ? e.width : e.height, l = o ? n.left : n.top, s = o ? n.right : n.bottom, u = o ? n.width : n.height;
494
+ return i === l || r === s || i + a / 2 === l + u / 2;
495
+ }, nn = function(e, n) {
496
+ var o;
497
+ return Be.some(function(i) {
498
+ var r = i[L].options.emptyInsertThreshold;
499
+ if (!(!r || lt(i))) {
500
+ var a = C(i), l = e >= a.left - r && e <= a.right + r, s = n >= a.top - r && n <= a.bottom + r;
501
+ if (l && s)
502
+ return o = i;
503
+ }
504
+ }), o;
505
+ }, Pt = function(e) {
506
+ function n(r, a) {
507
+ return function(l, s, u, f) {
508
+ var c = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
509
+ if (r == null && (a || c))
510
+ return !0;
511
+ if (r == null || r === !1)
512
+ return !1;
513
+ if (a && r === "clone")
514
+ return r;
515
+ if (typeof r == "function")
516
+ return n(r(l, s, u, f), a)(l, s, u, f);
517
+ var m = (a ? l : s).options.group.name;
518
+ return r === !0 || typeof r == "string" && r === m || r.join && r.indexOf(m) > -1;
519
+ };
520
+ }
521
+ var o = {}, i = e.group;
522
+ (!i || Me(i) != "object") && (i = {
523
+ name: i
524
+ }), o.name = i.name, o.checkPull = n(i.pull, !0), o.checkPut = n(i.put), o.revertClone = i.revertClone, e.group = o;
525
+ }, Nt = function() {
526
+ !Ot && g && h(g, "display", "none");
527
+ }, Mt = function() {
528
+ !Ot && g && h(g, "display", "");
529
+ };
530
+ He && document.addEventListener("click", function(t) {
531
+ if (Ye)
532
+ return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), Ye = !1, !1;
533
+ }, !0);
534
+ var re = function(e) {
535
+ if (d) {
536
+ e = e.touches ? e.touches[0] : e;
537
+ var n = nn(e.clientX, e.clientY);
538
+ if (n) {
539
+ var o = {};
540
+ for (var i in e)
541
+ e.hasOwnProperty(i) && (o[i] = e[i]);
542
+ o.target = o.rootEl = n, o.preventDefault = void 0, o.stopPropagation = void 0, n[L]._onDragOver(o);
543
+ }
544
+ }
545
+ }, on = function(e) {
546
+ d && d.parentNode[L]._isOutsideThisEl(e.target);
547
+ };
548
+ function p(t, e) {
549
+ if (!(t && t.nodeType && t.nodeType === 1))
550
+ throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));
551
+ this.el = t, this.options = e = U({}, e), t[L] = this;
552
+ var n = {
553
+ group: null,
554
+ sort: !0,
555
+ disabled: !1,
556
+ store: null,
557
+ handle: null,
558
+ draggable: /^[uo]l$/i.test(t.nodeName) ? ">li" : ">*",
559
+ swapThreshold: 1,
560
+ // percentage; 0 <= x <= 1
561
+ invertSwap: !1,
562
+ // invert always
563
+ invertedSwapThreshold: null,
564
+ // will be set to same as swapThreshold if default
565
+ removeCloneOnHide: !0,
566
+ direction: function() {
567
+ return At(t, this.options);
568
+ },
569
+ ghostClass: "sortable-ghost",
570
+ chosenClass: "sortable-chosen",
571
+ dragClass: "sortable-drag",
572
+ ignore: "a, img",
573
+ filter: null,
574
+ preventOnFilter: !0,
575
+ animation: 0,
576
+ easing: null,
577
+ setData: function(a, l) {
578
+ a.setData("Text", l.textContent);
579
+ },
580
+ dropBubble: !1,
581
+ dragoverBubble: !1,
582
+ dataIdAttr: "data-id",
583
+ delay: 0,
584
+ delayOnTouchOnly: !1,
585
+ touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
586
+ forceFallback: !1,
587
+ fallbackClass: "sortable-fallback",
588
+ fallbackOnBody: !1,
589
+ fallbackTolerance: 0,
590
+ fallbackOffset: {
591
+ x: 0,
592
+ y: 0
593
+ },
594
+ supportPointer: p.supportPointer !== !1 && "PointerEvent" in window && !Ee,
595
+ emptyInsertThreshold: 5
596
+ };
597
+ xe.initializePlugins(this, t, n);
598
+ for (var o in n)
599
+ !(o in e) && (e[o] = n[o]);
600
+ Pt(e);
601
+ for (var i in this)
602
+ i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
603
+ this.nativeDraggable = e.forceFallback ? !1 : en, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? y(t, "pointerdown", this._onTapStart) : (y(t, "mousedown", this._onTapStart), y(t, "touchstart", this._onTapStart)), this.nativeDraggable && (y(t, "dragover", this), y(t, "dragenter", this)), Be.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), U(this, qt());
604
+ }
605
+ p.prototype = /** @lends Sortable.prototype */
606
+ {
607
+ constructor: p,
608
+ _isOutsideThisEl: function(e) {
609
+ !this.el.contains(e) && e !== this.el && (se = null);
610
+ },
611
+ _getDirection: function(e, n) {
612
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, e, n, d) : this.options.direction;
613
+ },
614
+ _onTapStart: function(e) {
615
+ if (e.cancelable) {
616
+ var n = this, o = this.el, i = this.options, r = i.preventOnFilter, a = e.type, l = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (l || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, f = i.filter;
617
+ if (fn(o), !d && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || i.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Ee && s && s.tagName.toUpperCase() === "SELECT") && (s = $(s, i.draggable, o, !1), !(s && s.animated) && Fe !== s)) {
618
+ if (de = X(s), De = X(s, i.draggable), typeof f == "function") {
619
+ if (f.call(this, e, s, this)) {
620
+ A({
621
+ sortable: n,
622
+ rootEl: u,
623
+ name: "filter",
624
+ targetEl: s,
625
+ toEl: o,
626
+ fromEl: o
627
+ }), P("filter", n, {
628
+ evt: e
629
+ }), r && e.cancelable && e.preventDefault();
630
+ return;
631
+ }
632
+ } else if (f && (f = f.split(",").some(function(c) {
633
+ if (c = $(u, c.trim(), o, !1), c)
634
+ return A({
635
+ sortable: n,
636
+ rootEl: c,
637
+ name: "filter",
638
+ targetEl: s,
639
+ fromEl: o,
640
+ toEl: o
641
+ }), P("filter", n, {
642
+ evt: e
643
+ }), !0;
644
+ }), f)) {
645
+ r && e.cancelable && e.preventDefault();
646
+ return;
647
+ }
648
+ i.handle && !$(u, i.handle, o, !1) || this._prepareDragStart(e, l, s);
649
+ }
650
+ }
651
+ },
652
+ _prepareDragStart: function(e, n, o) {
653
+ var i = this, r = i.el, a = i.options, l = r.ownerDocument, s;
654
+ if (o && !d && o.parentNode === r) {
655
+ var u = C(o);
656
+ if (_ = r, d = o, D = d.parentNode, ae = d.nextSibling, Fe = o, Oe = a.group, p.dragged = d, ie = {
657
+ target: d,
658
+ clientX: (n || e).clientX,
659
+ clientY: (n || e).clientY
660
+ }, vt = ie.clientX - u.left, bt = ie.clientY - u.top, this._lastX = (n || e).clientX, this._lastY = (n || e).clientY, d.style["will-change"] = "all", s = function() {
661
+ if (P("delayEnded", i, {
662
+ evt: e
663
+ }), p.eventCanceled) {
664
+ i._onDrop();
665
+ return;
666
+ }
667
+ i._disableDelayedDragEvents(), !ht && i.nativeDraggable && (d.draggable = !0), i._triggerDragStart(e, n), A({
668
+ sortable: i,
669
+ name: "choose",
670
+ originalEvent: e
671
+ }), M(d, a.chosenClass, !0);
672
+ }, a.ignore.split(",").forEach(function(f) {
673
+ Tt(d, f.trim(), qe);
674
+ }), y(l, "dragover", re), y(l, "mousemove", re), y(l, "touchmove", re), y(l, "mouseup", i._onDrop), y(l, "touchend", i._onDrop), y(l, "touchcancel", i._onDrop), ht && this.nativeDraggable && (this.options.touchStartThreshold = 4, d.draggable = !0), P("delayStart", this, {
675
+ evt: e
676
+ }), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(Ce || q))) {
677
+ if (p.eventCanceled) {
678
+ this._onDrop();
679
+ return;
680
+ }
681
+ y(l, "mouseup", i._disableDelayedDrag), y(l, "touchend", i._disableDelayedDrag), y(l, "touchcancel", i._disableDelayedDrag), y(l, "mousemove", i._delayedDragTouchMoveHandler), y(l, "touchmove", i._delayedDragTouchMoveHandler), a.supportPointer && y(l, "pointermove", i._delayedDragTouchMoveHandler), i._dragStartTimer = setTimeout(s, a.delay);
682
+ } else
683
+ s();
684
+ }
685
+ },
686
+ _delayedDragTouchMoveHandler: function(e) {
687
+ var n = e.touches ? e.touches[0] : e;
688
+ Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
689
+ },
690
+ _disableDelayedDrag: function() {
691
+ d && qe(d), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
692
+ },
693
+ _disableDelayedDragEvents: function() {
694
+ var e = this.el.ownerDocument;
695
+ b(e, "mouseup", this._disableDelayedDrag), b(e, "touchend", this._disableDelayedDrag), b(e, "touchcancel", this._disableDelayedDrag), b(e, "mousemove", this._delayedDragTouchMoveHandler), b(e, "touchmove", this._delayedDragTouchMoveHandler), b(e, "pointermove", this._delayedDragTouchMoveHandler);
696
+ },
697
+ _triggerDragStart: function(e, n) {
698
+ n = n || e.pointerType == "touch" && e, !this.nativeDraggable || n ? this.options.supportPointer ? y(document, "pointermove", this._onTouchMove) : n ? y(document, "touchmove", this._onTouchMove) : y(document, "mousemove", this._onTouchMove) : (y(d, "dragend", this), y(_, "dragstart", this._onDragStart));
699
+ try {
700
+ document.selection ? Xe(function() {
701
+ document.selection.empty();
702
+ }) : window.getSelection().removeAllRanges();
703
+ } catch {
704
+ }
705
+ },
706
+ _dragStarted: function(e, n) {
707
+ if (ue = !1, _ && d) {
708
+ P("dragStarted", this, {
709
+ evt: n
710
+ }), this.nativeDraggable && y(document, "dragover", on);
711
+ var o = this.options;
712
+ !e && M(d, o.dragClass, !1), M(d, o.ghostClass, !0), p.active = this, e && this._appendGhost(), A({
713
+ sortable: this,
714
+ name: "start",
715
+ originalEvent: n
716
+ });
717
+ } else
718
+ this._nulling();
719
+ },
720
+ _emulateDragOver: function() {
721
+ if (Y) {
722
+ this._lastX = Y.clientX, this._lastY = Y.clientY, Nt();
723
+ for (var e = document.elementFromPoint(Y.clientX, Y.clientY), n = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Y.clientX, Y.clientY), e !== n); )
724
+ n = e;
725
+ if (d.parentNode[L]._isOutsideThisEl(e), n)
726
+ do {
727
+ if (n[L]) {
728
+ var o = void 0;
729
+ if (o = n[L]._onDragOver({
730
+ clientX: Y.clientX,
731
+ clientY: Y.clientY,
732
+ target: e,
733
+ rootEl: n
734
+ }), o && !this.options.dragoverBubble)
735
+ break;
736
+ }
737
+ e = n;
738
+ } while (n = n.parentNode);
739
+ Mt();
740
+ }
741
+ },
742
+ _onTouchMove: function(e) {
743
+ if (ie) {
744
+ var n = this.options, o = n.fallbackTolerance, i = n.fallbackOffset, r = e.touches ? e.touches[0] : e, a = g && ce(g, !0), l = g && a && a.a, s = g && a && a.d, u = Pe && I && mt(I), f = (r.clientX - ie.clientX + i.x) / (l || 1) + (u ? u[0] - Ue[0] : 0) / (l || 1), c = (r.clientY - ie.clientY + i.y) / (s || 1) + (u ? u[1] - Ue[1] : 0) / (s || 1);
745
+ if (!p.active && !ue) {
746
+ if (o && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < o)
747
+ return;
748
+ this._onDragStart(e, !0);
749
+ }
750
+ if (g) {
751
+ a ? (a.e += f - (Ve || 0), a.f += c - (ze || 0)) : a = {
752
+ a: 1,
753
+ b: 0,
754
+ c: 0,
755
+ d: 1,
756
+ e: f,
757
+ f: c
758
+ };
759
+ var m = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
760
+ h(g, "webkitTransform", m), h(g, "mozTransform", m), h(g, "msTransform", m), h(g, "transform", m), Ve = f, ze = c, Y = r;
761
+ }
762
+ e.cancelable && e.preventDefault();
763
+ }
764
+ },
765
+ _appendGhost: function() {
766
+ if (!g) {
767
+ var e = this.options.fallbackOnBody ? document.body : _, n = C(d, !0, Pe, !0, e), o = this.options;
768
+ if (Pe) {
769
+ for (I = e; h(I, "position") === "static" && h(I, "transform") === "none" && I !== document; )
770
+ I = I.parentNode;
771
+ I !== document.body && I !== document.documentElement ? (I === document && (I = H()), n.top += I.scrollTop, n.left += I.scrollLeft) : I = H(), Ue = mt(I);
772
+ }
773
+ g = d.cloneNode(!0), M(g, o.ghostClass, !1), M(g, o.fallbackClass, !0), M(g, o.dragClass, !0), h(g, "transition", ""), h(g, "transform", ""), h(g, "box-sizing", "border-box"), h(g, "margin", 0), h(g, "top", n.top), h(g, "left", n.left), h(g, "width", n.width), h(g, "height", n.height), h(g, "opacity", "0.8"), h(g, "position", Pe ? "absolute" : "fixed"), h(g, "zIndex", "100000"), h(g, "pointerEvents", "none"), p.ghost = g, e.appendChild(g), h(g, "transform-origin", vt / parseInt(g.style.width) * 100 + "% " + bt / parseInt(g.style.height) * 100 + "%");
774
+ }
775
+ },
776
+ _onDragStart: function(e, n) {
777
+ var o = this, i = e.dataTransfer, r = o.options;
778
+ if (P("dragStart", this, {
779
+ evt: e
780
+ }), p.eventCanceled) {
781
+ this._onDrop();
782
+ return;
783
+ }
784
+ P("setupClone", this), p.eventCanceled || (S = It(d), S.draggable = !1, S.style["will-change"] = "", this._hideClone(), M(S, this.options.chosenClass, !1), p.clone = S), o.cloneId = Xe(function() {
785
+ P("clone", o), !p.eventCanceled && (o.options.removeCloneOnHide || _.insertBefore(S, d), o._hideClone(), A({
786
+ sortable: o,
787
+ name: "clone"
788
+ }));
789
+ }), !n && M(d, r.dragClass, !0), n ? (Ye = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (b(document, "mouseup", o._onDrop), b(document, "touchend", o._onDrop), b(document, "touchcancel", o._onDrop), i && (i.effectAllowed = "move", r.setData && r.setData.call(o, i, d)), y(document, "drop", o), h(d, "transform", "translateZ(0)")), ue = !0, o._dragStartId = Xe(o._dragStarted.bind(o, n, e)), y(document, "selectstart", o), be = !0, Ee && h(document.body, "user-select", "none");
790
+ },
791
+ // Returns true - if no further action is needed (either inserted or another condition)
792
+ _onDragOver: function(e) {
793
+ var n = this.el, o = e.target, i, r, a, l = this.options, s = l.group, u = p.active, f = Oe === s, c = l.sort, m = x || u, E, v = this, w = !1;
794
+ if (tt)
795
+ return;
796
+ function k(ve, Xt) {
797
+ P(ve, v, G({
798
+ evt: e,
799
+ isOwner: f,
800
+ axis: E ? "vertical" : "horizontal",
801
+ revert: a,
802
+ dragRect: i,
803
+ targetRect: r,
804
+ canSort: c,
805
+ fromSortable: m,
806
+ target: o,
807
+ completed: O,
808
+ onMove: function(dt, kt) {
809
+ return Ne(_, n, d, i, dt, C(dt), e, kt);
810
+ },
811
+ changed: R
812
+ }, Xt));
813
+ }
814
+ function W() {
815
+ k("dragOverAnimationCapture"), v.captureAnimationState(), v !== m && m.captureAnimationState();
816
+ }
817
+ function O(ve) {
818
+ return k("dragOverCompleted", {
819
+ insertion: ve
820
+ }), ve && (f ? u._hideClone() : u._showClone(v), v !== m && (M(d, x ? x.options.ghostClass : u.options.ghostClass, !1), M(d, l.ghostClass, !0)), x !== v && v !== p.active ? x = v : v === p.active && x && (x = null), m === v && (v._ignoreWhileAnimating = o), v.animateAll(function() {
821
+ k("dragOverAnimationComplete"), v._ignoreWhileAnimating = null;
822
+ }), v !== m && (m.animateAll(), m._ignoreWhileAnimating = null)), (o === d && !d.animated || o === n && !o.animated) && (se = null), !l.dragoverBubble && !e.rootEl && o !== document && (d.parentNode[L]._isOutsideThisEl(e.target), !ve && re(e)), !l.dragoverBubble && e.stopPropagation && e.stopPropagation(), w = !0;
823
+ }
824
+ function R() {
825
+ F = X(d), Q = X(d, l.draggable), A({
826
+ sortable: v,
827
+ name: "change",
828
+ toEl: n,
829
+ newIndex: F,
830
+ newDraggableIndex: Q,
831
+ originalEvent: e
832
+ });
833
+ }
834
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = $(o, l.draggable, n, !0), k("dragOver"), p.eventCanceled)
835
+ return w;
836
+ if (d.contains(e.target) || o.animated && o.animatingX && o.animatingY || v._ignoreWhileAnimating === o)
837
+ return O(!1);
838
+ if (Ye = !1, u && !l.disabled && (f ? c || (a = D !== _) : x === this || (this.lastPutMode = Oe.checkPull(this, u, d, e)) && s.checkPut(this, u, d, e))) {
839
+ if (E = this._getDirection(e, o) === "vertical", i = C(d), k("dragOverValid"), p.eventCanceled)
840
+ return w;
841
+ if (a)
842
+ return D = _, W(), this._hideClone(), k("revert"), p.eventCanceled || (ae ? _.insertBefore(d, ae) : _.appendChild(d)), O(!0);
843
+ var B = lt(n, l.draggable);
844
+ if (!B || sn(e, E, this) && !B.animated) {
845
+ if (B === d)
846
+ return O(!1);
847
+ if (B && n === e.target && (o = B), o && (r = C(o)), Ne(_, n, d, i, o, r, e, !!o) !== !1)
848
+ return W(), n.appendChild(d), D = n, R(), O(!0);
849
+ } else if (B && ln(e, E, this)) {
850
+ var te = fe(n, 0, l, !0);
851
+ if (te === d)
852
+ return O(!1);
853
+ if (o = te, r = C(o), Ne(_, n, d, i, o, r, e, !1) !== !1)
854
+ return W(), n.insertBefore(d, te), D = n, R(), O(!0);
855
+ } else if (o.parentNode === n) {
856
+ r = C(o);
857
+ var j = 0, ne, he = d.parentNode !== n, N = !tn(d.animated && d.toRect || i, o.animated && o.toRect || r, E), pe = E ? "top" : "left", K = gt(o, "top", "top") || gt(d, "top", "top"), ge = K ? K.scrollTop : void 0;
858
+ se !== o && (ne = r[pe], Te = !1, Ae = !N && l.invertSwap || he), j = un(e, o, r, E, N ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Ae, se === o);
859
+ var V;
860
+ if (j !== 0) {
861
+ var oe = X(d);
862
+ do
863
+ oe -= j, V = D.children[oe];
864
+ while (V && (h(V, "display") === "none" || V === g));
865
+ }
866
+ if (j === 0 || V === o)
867
+ return O(!1);
868
+ se = o, Se = j;
869
+ var me = o.nextElementSibling, Z = !1;
870
+ Z = j === 1;
871
+ var Ie = Ne(_, n, d, i, o, r, e, Z);
872
+ if (Ie !== !1)
873
+ return (Ie === 1 || Ie === -1) && (Z = Ie === 1), tt = !0, setTimeout(an, 30), W(), Z && !me ? n.appendChild(d) : o.parentNode.insertBefore(d, Z ? me : o), K && xt(K, 0, ge - K.scrollTop), D = d.parentNode, ne !== void 0 && !Ae && (Le = Math.abs(ne - C(o)[pe])), R(), O(!0);
874
+ }
875
+ if (n.contains(d))
876
+ return O(!1);
877
+ }
878
+ return !1;
879
+ },
880
+ _ignoreWhileAnimating: null,
881
+ _offMoveEvents: function() {
882
+ b(document, "mousemove", this._onTouchMove), b(document, "touchmove", this._onTouchMove), b(document, "pointermove", this._onTouchMove), b(document, "dragover", re), b(document, "mousemove", re), b(document, "touchmove", re);
883
+ },
884
+ _offUpEvents: function() {
885
+ var e = this.el.ownerDocument;
886
+ b(e, "mouseup", this._onDrop), b(e, "touchend", this._onDrop), b(e, "pointerup", this._onDrop), b(e, "touchcancel", this._onDrop), b(document, "selectstart", this);
887
+ },
888
+ _onDrop: function(e) {
889
+ var n = this.el, o = this.options;
890
+ if (F = X(d), Q = X(d, o.draggable), P("drop", this, {
891
+ evt: e
892
+ }), D = d && d.parentNode, F = X(d), Q = X(d, o.draggable), p.eventCanceled) {
893
+ this._nulling();
894
+ return;
895
+ }
896
+ ue = !1, Ae = !1, Te = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), nt(this.cloneId), nt(this._dragStartId), this.nativeDraggable && (b(document, "drop", this), b(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ee && h(document.body, "user-select", ""), h(d, "transform", ""), e && (be && (e.cancelable && e.preventDefault(), !o.dropBubble && e.stopPropagation()), g && g.parentNode && g.parentNode.removeChild(g), (_ === D || x && x.lastPutMode !== "clone") && S && S.parentNode && S.parentNode.removeChild(S), d && (this.nativeDraggable && b(d, "dragend", this), qe(d), d.style["will-change"] = "", be && !ue && M(d, x ? x.options.ghostClass : this.options.ghostClass, !1), M(d, this.options.chosenClass, !1), A({
897
+ sortable: this,
898
+ name: "unchoose",
899
+ toEl: D,
900
+ newIndex: null,
901
+ newDraggableIndex: null,
902
+ originalEvent: e
903
+ }), _ !== D ? (F >= 0 && (A({
904
+ rootEl: D,
905
+ name: "add",
906
+ toEl: D,
907
+ fromEl: _,
908
+ originalEvent: e
909
+ }), A({
910
+ sortable: this,
911
+ name: "remove",
912
+ toEl: D,
913
+ originalEvent: e
914
+ }), A({
915
+ rootEl: D,
916
+ name: "sort",
917
+ toEl: D,
918
+ fromEl: _,
919
+ originalEvent: e
920
+ }), A({
921
+ sortable: this,
922
+ name: "sort",
923
+ toEl: D,
924
+ originalEvent: e
925
+ })), x && x.save()) : F !== de && F >= 0 && (A({
926
+ sortable: this,
927
+ name: "update",
928
+ toEl: D,
929
+ originalEvent: e
930
+ }), A({
931
+ sortable: this,
932
+ name: "sort",
933
+ toEl: D,
934
+ originalEvent: e
935
+ })), p.active && ((F == null || F === -1) && (F = de, Q = De), A({
936
+ sortable: this,
937
+ name: "end",
938
+ toEl: D,
939
+ originalEvent: e
940
+ }), this.save()))), this._nulling();
941
+ },
942
+ _nulling: function() {
943
+ P("nulling", this), _ = d = D = g = ae = S = Fe = J = ie = Y = be = F = Q = de = De = se = Se = x = Oe = p.dragged = p.ghost = p.clone = p.active = null, je.forEach(function(e) {
944
+ e.checked = !0;
945
+ }), je.length = Ve = ze = 0;
946
+ },
947
+ handleEvent: function(e) {
948
+ switch (e.type) {
949
+ case "drop":
950
+ case "dragend":
951
+ this._onDrop(e);
952
+ break;
953
+ case "dragenter":
954
+ case "dragover":
955
+ d && (this._onDragOver(e), rn(e));
956
+ break;
957
+ case "selectstart":
958
+ e.preventDefault();
959
+ break;
960
+ }
961
+ },
962
+ /**
963
+ * Serializes the item into an array of string.
964
+ * @returns {String[]}
965
+ */
966
+ toArray: function() {
967
+ for (var e = [], n, o = this.el.children, i = 0, r = o.length, a = this.options; i < r; i++)
968
+ n = o[i], $(n, a.draggable, this.el, !1) && e.push(n.getAttribute(a.dataIdAttr) || cn(n));
969
+ return e;
970
+ },
971
+ /**
972
+ * Sorts the elements according to the array.
973
+ * @param {String[]} order order of the items
974
+ */
975
+ sort: function(e, n) {
976
+ var o = {}, i = this.el;
977
+ this.toArray().forEach(function(r, a) {
978
+ var l = i.children[a];
979
+ $(l, this.options.draggable, i, !1) && (o[r] = l);
980
+ }, this), n && this.captureAnimationState(), e.forEach(function(r) {
981
+ o[r] && (i.removeChild(o[r]), i.appendChild(o[r]));
982
+ }), n && this.animateAll();
983
+ },
984
+ /**
985
+ * Save the current sorting
986
+ */
987
+ save: function() {
988
+ var e = this.options.store;
989
+ e && e.set && e.set(this);
990
+ },
991
+ /**
992
+ * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
993
+ * @param {HTMLElement} el
994
+ * @param {String} [selector] default: `options.draggable`
995
+ * @returns {HTMLElement|null}
996
+ */
997
+ closest: function(e, n) {
998
+ return $(e, n || this.options.draggable, this.el, !1);
999
+ },
1000
+ /**
1001
+ * Set/get option
1002
+ * @param {string} name
1003
+ * @param {*} [value]
1004
+ * @returns {*}
1005
+ */
1006
+ option: function(e, n) {
1007
+ var o = this.options;
1008
+ if (n === void 0)
1009
+ return o[e];
1010
+ var i = xe.modifyOption(this, e, n);
1011
+ typeof i < "u" ? o[e] = i : o[e] = n, e === "group" && Pt(o);
1012
+ },
1013
+ /**
1014
+ * Destroy
1015
+ */
1016
+ destroy: function() {
1017
+ P("destroy", this);
1018
+ var e = this.el;
1019
+ e[L] = null, b(e, "mousedown", this._onTapStart), b(e, "touchstart", this._onTapStart), b(e, "pointerdown", this._onTapStart), this.nativeDraggable && (b(e, "dragover", this), b(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(n) {
1020
+ n.removeAttribute("draggable");
1021
+ }), this._onDrop(), this._disableDelayedDragEvents(), Be.splice(Be.indexOf(this.el), 1), this.el = e = null;
1022
+ },
1023
+ _hideClone: function() {
1024
+ if (!J) {
1025
+ if (P("hideClone", this), p.eventCanceled)
1026
+ return;
1027
+ h(S, "display", "none"), this.options.removeCloneOnHide && S.parentNode && S.parentNode.removeChild(S), J = !0;
1028
+ }
1029
+ },
1030
+ _showClone: function(e) {
1031
+ if (e.lastPutMode !== "clone") {
1032
+ this._hideClone();
1033
+ return;
1034
+ }
1035
+ if (J) {
1036
+ if (P("showClone", this), p.eventCanceled)
1037
+ return;
1038
+ d.parentNode == _ && !this.options.group.revertClone ? _.insertBefore(S, d) : ae ? _.insertBefore(S, ae) : _.appendChild(S), this.options.group.revertClone && this.animate(d, S), h(S, "display", ""), J = !1;
1039
+ }
1040
+ }
1041
+ };
1042
+ function rn(t) {
1043
+ t.dataTransfer && (t.dataTransfer.dropEffect = "move"), t.cancelable && t.preventDefault();
1044
+ }
1045
+ function Ne(t, e, n, o, i, r, a, l) {
1046
+ var s, u = t[L], f = u.options.onMove, c;
1047
+ return window.CustomEvent && !q && !Ce ? s = new CustomEvent("move", {
1048
+ bubbles: !0,
1049
+ cancelable: !0
1050
+ }) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = t, s.dragged = n, s.draggedRect = o, s.related = i || e, s.relatedRect = r || C(e), s.willInsertAfter = l, s.originalEvent = a, t.dispatchEvent(s), f && (c = f.call(u, s, a)), c;
1051
+ }
1052
+ function qe(t) {
1053
+ t.draggable = !1;
1054
+ }
1055
+ function an() {
1056
+ tt = !1;
1057
+ }
1058
+ function ln(t, e, n) {
1059
+ var o = C(fe(n.el, 0, n.options, !0)), i = 10;
1060
+ return e ? t.clientX < o.left - i || t.clientY < o.top && t.clientX < o.right : t.clientY < o.top - i || t.clientY < o.bottom && t.clientX < o.left;
1061
+ }
1062
+ function sn(t, e, n) {
1063
+ var o = C(lt(n.el, n.options.draggable)), i = 10;
1064
+ return e ? t.clientX > o.right + i || t.clientX <= o.right && t.clientY > o.bottom && t.clientX >= o.left : t.clientX > o.right && t.clientY > o.top || t.clientX <= o.right && t.clientY > o.bottom + i;
1065
+ }
1066
+ function un(t, e, n, o, i, r, a, l) {
1067
+ var s = o ? t.clientY : t.clientX, u = o ? n.height : n.width, f = o ? n.top : n.left, c = o ? n.bottom : n.right, m = !1;
1068
+ if (!a) {
1069
+ if (l && Le < u * i) {
1070
+ if (!Te && (Se === 1 ? s > f + u * r / 2 : s < c - u * r / 2) && (Te = !0), Te)
1071
+ m = !0;
1072
+ else if (Se === 1 ? s < f + Le : s > c - Le)
1073
+ return -Se;
1074
+ } else if (s > f + u * (1 - i) / 2 && s < c - u * (1 - i) / 2)
1075
+ return dn(e);
1076
+ }
1077
+ return m = m || a, m && (s < f + u * r / 2 || s > c - u * r / 2) ? s > f + u / 2 ? 1 : -1 : 0;
1078
+ }
1079
+ function dn(t) {
1080
+ return X(d) < X(t) ? 1 : -1;
1081
+ }
1082
+ function cn(t) {
1083
+ for (var e = t.tagName + t.className + t.src + t.href + t.textContent, n = e.length, o = 0; n--; )
1084
+ o += e.charCodeAt(n);
1085
+ return o.toString(36);
1086
+ }
1087
+ function fn(t) {
1088
+ je.length = 0;
1089
+ for (var e = t.getElementsByTagName("input"), n = e.length; n--; ) {
1090
+ var o = e[n];
1091
+ o.checked && je.push(o);
1092
+ }
1093
+ }
1094
+ function Xe(t) {
1095
+ return setTimeout(t, 0);
1096
+ }
1097
+ function nt(t) {
1098
+ return clearTimeout(t);
1099
+ }
1100
+ He && y(document, "touchmove", function(t) {
1101
+ (p.active || ue) && t.cancelable && t.preventDefault();
1102
+ });
1103
+ p.utils = {
1104
+ on: y,
1105
+ off: b,
1106
+ css: h,
1107
+ find: Tt,
1108
+ is: function(e, n) {
1109
+ return !!$(e, n, e, !1);
1110
+ },
1111
+ extend: zt,
1112
+ throttle: Ct,
1113
+ closest: $,
1114
+ toggleClass: M,
1115
+ clone: It,
1116
+ index: X,
1117
+ nextTick: Xe,
1118
+ cancelNextTick: nt,
1119
+ detectDirection: At,
1120
+ getChild: fe
1121
+ };
1122
+ p.get = function(t) {
1123
+ return t[L];
1124
+ };
1125
+ p.mount = function() {
1126
+ for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
1127
+ e[n] = arguments[n];
1128
+ e[0].constructor === Array && (e = e[0]), e.forEach(function(o) {
1129
+ if (!o.prototype || !o.prototype.constructor)
1130
+ throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
1131
+ o.utils && (p.utils = G(G({}, p.utils), o.utils)), xe.mount(o);
1132
+ });
1133
+ };
1134
+ p.create = function(t, e) {
1135
+ return new p(t, e);
1136
+ };
1137
+ p.version = Ht;
1138
+ var T = [], ye, ot, it = !1, Ke, Ze, $e, we;
1139
+ function hn() {
1140
+ function t() {
1141
+ this.defaults = {
1142
+ scroll: !0,
1143
+ forceAutoScrollFallback: !1,
1144
+ scrollSensitivity: 30,
1145
+ scrollSpeed: 10,
1146
+ bubbleScroll: !0
1147
+ };
1148
+ for (var e in this)
1149
+ e.charAt(0) === "_" && typeof this[e] == "function" && (this[e] = this[e].bind(this));
1150
+ }
1151
+ return t.prototype = {
1152
+ dragStarted: function(n) {
1153
+ var o = n.originalEvent;
1154
+ this.sortable.nativeDraggable ? y(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? y(document, "pointermove", this._handleFallbackAutoScroll) : o.touches ? y(document, "touchmove", this._handleFallbackAutoScroll) : y(document, "mousemove", this._handleFallbackAutoScroll);
1155
+ },
1156
+ dragOverCompleted: function(n) {
1157
+ var o = n.originalEvent;
1158
+ !this.options.dragOverBubble && !o.rootEl && this._handleAutoScroll(o);
1159
+ },
1160
+ drop: function() {
1161
+ this.sortable.nativeDraggable ? b(document, "dragover", this._handleAutoScroll) : (b(document, "pointermove", this._handleFallbackAutoScroll), b(document, "touchmove", this._handleFallbackAutoScroll), b(document, "mousemove", this._handleFallbackAutoScroll)), wt(), ke(), Ut();
1162
+ },
1163
+ nulling: function() {
1164
+ $e = ot = ye = it = we = Ke = Ze = null, T.length = 0;
1165
+ },
1166
+ _handleFallbackAutoScroll: function(n) {
1167
+ this._handleAutoScroll(n, !0);
1168
+ },
1169
+ _handleAutoScroll: function(n, o) {
1170
+ var i = this, r = (n.touches ? n.touches[0] : n).clientX, a = (n.touches ? n.touches[0] : n).clientY, l = document.elementFromPoint(r, a);
1171
+ if ($e = n, o || this.options.forceAutoScrollFallback || Ce || q || Ee) {
1172
+ Qe(n, this.options, l, o);
1173
+ var s = ee(l, !0);
1174
+ it && (!we || r !== Ke || a !== Ze) && (we && wt(), we = setInterval(function() {
1175
+ var u = ee(document.elementFromPoint(r, a), !0);
1176
+ u !== s && (s = u, ke()), Qe(n, i.options, u, o);
1177
+ }, 10), Ke = r, Ze = a);
1178
+ } else {
1179
+ if (!this.options.bubbleScroll || ee(l, !0) === H()) {
1180
+ ke();
1181
+ return;
1182
+ }
1183
+ Qe(n, this.options, ee(l, !1), !1);
1184
+ }
1185
+ }
1186
+ }, U(t, {
1187
+ pluginName: "scroll",
1188
+ initializeByDefault: !0
1189
+ });
1190
+ }
1191
+ function ke() {
1192
+ T.forEach(function(t) {
1193
+ clearInterval(t.pid);
1194
+ }), T = [];
1195
+ }
1196
+ function wt() {
1197
+ clearInterval(we);
1198
+ }
1199
+ var Qe = Ct(function(t, e, n, o) {
1200
+ if (e.scroll) {
1201
+ var i = (t.touches ? t.touches[0] : t).clientX, r = (t.touches ? t.touches[0] : t).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s = H(), u = !1, f;
1202
+ ot !== n && (ot = n, ke(), ye = e.scroll, f = e.scrollFn, ye === !0 && (ye = ee(n, !0)));
1203
+ var c = 0, m = ye;
1204
+ do {
1205
+ var E = m, v = C(E), w = v.top, k = v.bottom, W = v.left, O = v.right, R = v.width, B = v.height, te = void 0, j = void 0, ne = E.scrollWidth, he = E.scrollHeight, N = h(E), pe = E.scrollLeft, K = E.scrollTop;
1206
+ E === s ? (te = R < ne && (N.overflowX === "auto" || N.overflowX === "scroll" || N.overflowX === "visible"), j = B < he && (N.overflowY === "auto" || N.overflowY === "scroll" || N.overflowY === "visible")) : (te = R < ne && (N.overflowX === "auto" || N.overflowX === "scroll"), j = B < he && (N.overflowY === "auto" || N.overflowY === "scroll"));
1207
+ var ge = te && (Math.abs(O - i) <= a && pe + R < ne) - (Math.abs(W - i) <= a && !!pe), V = j && (Math.abs(k - r) <= a && K + B < he) - (Math.abs(w - r) <= a && !!K);
1208
+ if (!T[c])
1209
+ for (var oe = 0; oe <= c; oe++)
1210
+ T[oe] || (T[oe] = {});
1211
+ (T[c].vx != ge || T[c].vy != V || T[c].el !== E) && (T[c].el = E, T[c].vx = ge, T[c].vy = V, clearInterval(T[c].pid), (ge != 0 || V != 0) && (u = !0, T[c].pid = setInterval((function() {
1212
+ o && this.layer === 0 && p.active._onTouchMove($e);
1213
+ var me = T[this.layer].vy ? T[this.layer].vy * l : 0, Z = T[this.layer].vx ? T[this.layer].vx * l : 0;
1214
+ typeof f == "function" && f.call(p.dragged.parentNode[L], Z, me, t, $e, T[this.layer].el) !== "continue" || xt(T[this.layer].el, Z, me);
1215
+ }).bind({
1216
+ layer: c
1217
+ }), 24))), c++;
1218
+ } while (e.bubbleScroll && m !== s && (m = ee(m, !1)));
1219
+ it = u;
1220
+ }
1221
+ }, 30), Ft = function(e) {
1222
+ var n = e.originalEvent, o = e.putSortable, i = e.dragEl, r = e.activeSortable, a = e.dispatchSortableEvent, l = e.hideGhostForTarget, s = e.unhideGhostForTarget;
1223
+ if (n) {
1224
+ var u = o || r;
1225
+ l();
1226
+ var f = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, c = document.elementFromPoint(f.clientX, f.clientY);
1227
+ s(), u && !u.el.contains(c) && (a("spill"), this.onSpill({
1228
+ dragEl: i,
1229
+ putSortable: o
1230
+ }));
1231
+ }
1232
+ };
1233
+ function st() {
1234
+ }
1235
+ st.prototype = {
1236
+ startIndex: null,
1237
+ dragStart: function(e) {
1238
+ var n = e.oldDraggableIndex;
1239
+ this.startIndex = n;
1240
+ },
1241
+ onSpill: function(e) {
1242
+ var n = e.dragEl, o = e.putSortable;
1243
+ this.sortable.captureAnimationState(), o && o.captureAnimationState();
1244
+ var i = fe(this.sortable.el, this.startIndex, this.options);
1245
+ i ? this.sortable.el.insertBefore(n, i) : this.sortable.el.appendChild(n), this.sortable.animateAll(), o && o.animateAll();
1246
+ },
1247
+ drop: Ft
1248
+ };
1249
+ U(st, {
1250
+ pluginName: "revertOnSpill"
1251
+ });
1252
+ function ut() {
1253
+ }
1254
+ ut.prototype = {
1255
+ onSpill: function(e) {
1256
+ var n = e.dragEl, o = e.putSortable, i = o || this.sortable;
1257
+ i.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), i.animateAll();
1258
+ },
1259
+ drop: Ft
1260
+ };
1261
+ U(ut, {
1262
+ pluginName: "removeOnSpill"
1263
+ });
1264
+ p.mount(new hn());
1265
+ p.mount(ut, st);
1266
+ function pn() {
1267
+ return typeof window < "u" ? window.console : global.console;
1268
+ }
1269
+ const gn = pn();
1270
+ function mn(t) {
1271
+ const e = /* @__PURE__ */ Object.create(null);
1272
+ return function(o) {
1273
+ return e[o] || (e[o] = t(o));
1274
+ };
1275
+ }
1276
+ const vn = /-(\w)/g, Et = mn((t) => t.replace(vn, (e, n) => n ? n.toUpperCase() : ""));
1277
+ function Je(t) {
1278
+ t.parentElement !== null && t.parentElement.removeChild(t);
1279
+ }
1280
+ function _t(t, e, n) {
1281
+ const o = n === 0 ? t.children[0] : t.children[n - 1].nextSibling;
1282
+ t.insertBefore(e, o);
1283
+ }
1284
+ function bn(t, e) {
1285
+ return Object.values(t).indexOf(e);
1286
+ }
1287
+ function yn(t, e, n, o) {
1288
+ if (!t)
1289
+ return [];
1290
+ const i = Object.values(t), r = e.length - o;
1291
+ return [...e].map((l, s) => s >= r ? i.length : i.indexOf(l));
1292
+ }
1293
+ function Lt(t, e) {
1294
+ this.$nextTick(() => this.$emit(t.toLowerCase(), e));
1295
+ }
1296
+ function wn(t) {
1297
+ return (e) => {
1298
+ this.realList !== null && this["onDrag" + t](e), Lt.call(this, t, e);
1299
+ };
1300
+ }
1301
+ function En(t) {
1302
+ return ["transition-group", "TransitionGroup"].includes(t);
1303
+ }
1304
+ function _n(t) {
1305
+ if (!t || t.length !== 1)
1306
+ return !1;
1307
+ const [{ type: e }] = t;
1308
+ return e ? En(e.name) : !1;
1309
+ }
1310
+ function Dn(t, e) {
1311
+ return e ? { ...e.props, ...e.attrs } : t;
1312
+ }
1313
+ const rt = ["Start", "Add", "Remove", "Update", "End"], at = ["Choose", "Unchoose", "Sort", "Filter", "Clone"], Sn = ["Move", ...rt, ...at].map((t) => "on" + t);
1314
+ let et = null;
1315
+ const Tn = {
1316
+ options: Object,
1317
+ list: {
1318
+ type: Array,
1319
+ required: !1,
1320
+ default: null
1321
+ },
1322
+ noTransitionOnDrag: {
1323
+ type: Boolean,
1324
+ default: !1
1325
+ },
1326
+ clone: {
1327
+ type: Function,
1328
+ default: (t) => t
1329
+ },
1330
+ tag: {
1331
+ type: String,
1332
+ default: "div"
1333
+ },
1334
+ move: {
1335
+ type: Function,
1336
+ default: null
1337
+ },
1338
+ componentData: {
1339
+ type: Object,
1340
+ required: !1,
1341
+ default: null
1342
+ },
1343
+ component: {
1344
+ type: String,
1345
+ default: null
1346
+ },
1347
+ modelValue: {
1348
+ type: Array,
1349
+ required: !1,
1350
+ default: null
1351
+ }
1352
+ }, In = Rt({
1353
+ name: "VueDraggableNext",
1354
+ inheritAttrs: !1,
1355
+ emits: [
1356
+ "update:modelValue",
1357
+ "move",
1358
+ "change",
1359
+ ...rt.map((t) => t.toLowerCase()),
1360
+ ...at.map((t) => t.toLowerCase())
1361
+ ],
1362
+ props: Tn,
1363
+ data() {
1364
+ return {
1365
+ transitionMode: !1,
1366
+ noneFunctionalComponentMode: !1,
1367
+ headerOffset: 0,
1368
+ footerOffset: 0,
1369
+ _sortable: {},
1370
+ visibleIndexes: [],
1371
+ context: {}
1372
+ };
1373
+ },
1374
+ render() {
1375
+ const t = this.$slots.default ? this.$slots.default() : null, e = Dn(this.$attrs, this.componentData);
1376
+ return t ? (this.transitionMode = _n(t), ct(this.getTag(), e, t)) : ct(this.getTag(), e, []);
1377
+ },
1378
+ created() {
1379
+ this.list !== null && this.modelValue !== null && gn.error("list props are mutually exclusive! Please set one.");
1380
+ },
1381
+ mounted() {
1382
+ const t = {};
1383
+ rt.forEach((i) => {
1384
+ t["on" + i] = wn.call(this, i);
1385
+ }), at.forEach((i) => {
1386
+ t["on" + i] = Lt.bind(this, i);
1387
+ });
1388
+ const e = Object.keys(this.$attrs).reduce((i, r) => (i[Et(r)] = this.$attrs[r], i), {}), n = Object.assign({}, e, t, {
1389
+ onMove: (i, r) => this.onDragMove(i, r)
1390
+ });
1391
+ !("draggable" in n) && (n.draggable = ">*");
1392
+ const o = this.$el.nodeType === 1 ? this.$el : this.$el.parentElement;
1393
+ this._sortable = new p(o, n), o.__draggable_component__ = this, this.computeIndexes();
1394
+ },
1395
+ beforeUnmount() {
1396
+ try {
1397
+ this._sortable !== void 0 && this._sortable.destroy();
1398
+ } catch {
1399
+ }
1400
+ },
1401
+ computed: {
1402
+ realList() {
1403
+ return this.list ? this.list : this.modelValue;
1404
+ }
1405
+ },
1406
+ watch: {
1407
+ $attrs: {
1408
+ handler(t) {
1409
+ this.updateOptions(t);
1410
+ },
1411
+ deep: !0
1412
+ },
1413
+ realList() {
1414
+ this.computeIndexes();
1415
+ }
1416
+ },
1417
+ methods: {
1418
+ getTag() {
1419
+ return this.component ? Yt(this.component) : this.tag;
1420
+ },
1421
+ updateOptions(t) {
1422
+ for (var e in t) {
1423
+ const n = Et(e);
1424
+ Sn.indexOf(n) === -1 && this._sortable.option(n, t[e]);
1425
+ }
1426
+ },
1427
+ getChildrenNodes() {
1428
+ return this.$el.children;
1429
+ },
1430
+ computeIndexes() {
1431
+ this.$nextTick(() => {
1432
+ this.visibleIndexes = yn(this.getChildrenNodes(), this.$el.children, this.transitionMode, this.footerOffset);
1433
+ });
1434
+ },
1435
+ getUnderlyingVm(t) {
1436
+ const e = bn(this.getChildrenNodes() || [], t);
1437
+ if (e === -1)
1438
+ return null;
1439
+ const n = this.realList[e];
1440
+ return { index: e, element: n };
1441
+ },
1442
+ emitChanges(t) {
1443
+ this.$nextTick(() => {
1444
+ this.$emit("change", t);
1445
+ });
1446
+ },
1447
+ alterList(t) {
1448
+ if (this.list) {
1449
+ t(this.list);
1450
+ return;
1451
+ }
1452
+ const e = [...this.modelValue];
1453
+ t(e), this.$emit("update:modelValue", e);
1454
+ },
1455
+ spliceList() {
1456
+ const t = (e) => e.splice(...arguments);
1457
+ this.alterList(t);
1458
+ },
1459
+ updatePosition(t, e) {
1460
+ const n = (o) => o.splice(e, 0, o.splice(t, 1)[0]);
1461
+ this.alterList(n);
1462
+ },
1463
+ getVmIndex(t) {
1464
+ const e = this.visibleIndexes, n = e.length;
1465
+ return t > n - 1 ? n : e[t];
1466
+ },
1467
+ getComponent() {
1468
+ return this.$slots.default ? (
1469
+ //@ts-ignore
1470
+ this.$slots.default()[0].componentInstance
1471
+ ) : null;
1472
+ },
1473
+ resetTransitionData(t) {
1474
+ if (!this.noTransitionOnDrag || !this.transitionMode)
1475
+ return;
1476
+ var e = this.getChildrenNodes();
1477
+ e[t].data = null;
1478
+ const n = this.getComponent();
1479
+ n.children = [], n.kept = void 0;
1480
+ },
1481
+ onDragStart(t) {
1482
+ this.context = this.getUnderlyingVm(t.item), this.context && (t.item._underlying_vm_ = this.clone(this.context.element), et = t.item);
1483
+ },
1484
+ onDragAdd(t) {
1485
+ const e = t.item._underlying_vm_;
1486
+ if (e === void 0)
1487
+ return;
1488
+ Je(t.item);
1489
+ const n = this.getVmIndex(t.newIndex);
1490
+ this.spliceList(n, 0, e), this.computeIndexes();
1491
+ const o = { element: e, newIndex: n };
1492
+ this.emitChanges({ added: o });
1493
+ },
1494
+ onDragRemove(t) {
1495
+ if (_t(this.$el, t.item, t.oldIndex), t.pullMode === "clone") {
1496
+ Je(t.clone);
1497
+ return;
1498
+ }
1499
+ if (!this.context)
1500
+ return;
1501
+ const e = this.context.index;
1502
+ this.spliceList(e, 1);
1503
+ const n = { element: this.context.element, oldIndex: e };
1504
+ this.resetTransitionData(e), this.emitChanges({ removed: n });
1505
+ },
1506
+ onDragUpdate(t) {
1507
+ Je(t.item), _t(t.from, t.item, t.oldIndex);
1508
+ const e = this.context.index, n = this.getVmIndex(t.newIndex);
1509
+ this.updatePosition(e, n);
1510
+ const o = { element: this.context.element, oldIndex: e, newIndex: n };
1511
+ this.emitChanges({ moved: o });
1512
+ },
1513
+ updateProperty(t, e) {
1514
+ t.hasOwnProperty(e) && (t[e] += this.headerOffset);
1515
+ },
1516
+ onDragMove(t, e) {
1517
+ const n = this.move;
1518
+ if (!n || !this.realList)
1519
+ return !0;
1520
+ const o = this.getRelatedContextFromMoveEvent(t), i = this.context, r = this.computeFutureIndex(o, t);
1521
+ Object.assign(i, { futureIndex: r });
1522
+ const a = Object.assign({}, t, {
1523
+ relatedContext: o,
1524
+ draggedContext: i
1525
+ });
1526
+ return n(a, e);
1527
+ },
1528
+ onDragEnd() {
1529
+ this.computeIndexes(), et = null;
1530
+ },
1531
+ getTrargetedComponent(t) {
1532
+ return t.__draggable_component__;
1533
+ },
1534
+ getRelatedContextFromMoveEvent({ to: t, related: e }) {
1535
+ const n = this.getTrargetedComponent(t);
1536
+ if (!n)
1537
+ return { component: n };
1538
+ const o = n.realList, i = { list: o, component: n };
1539
+ if (t !== e && o && n.getUnderlyingVm) {
1540
+ const r = n.getUnderlyingVm(e);
1541
+ if (r)
1542
+ return Object.assign(r, i);
1543
+ }
1544
+ return i;
1545
+ },
1546
+ computeFutureIndex(t, e) {
1547
+ const n = [...e.to.children].filter((a) => a.style.display !== "none");
1548
+ if (n.length === 0)
1549
+ return 0;
1550
+ const o = n.indexOf(e.related), i = t.component.getVmIndex(o);
1551
+ return n.indexOf(et) !== -1 || !e.willInsertAfter ? i : i + 1;
1552
+ }
1553
+ }
1554
+ });
1555
+ export {
1556
+ In as V
1557
+ };