@hybridcore/ui 1.6.3 → 1.6.4

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.
@@ -1,126 +1,125 @@
1
- var Z = Object.defineProperty;
2
- var ee = (r, l, c) => l in r ? Z(r, l, { enumerable: !0, configurable: !0, writable: !0, value: c }) : r[l] = c;
3
- var q = (r, l, c) => ee(r, typeof l != "symbol" ? l + "" : l, c);
4
- import { jsx as C, jsxs as B } from "react/jsx-runtime";
5
- import te from "sortablejs";
6
- import * as se from "react";
7
- import oe from "react";
8
- import { g as ne } from "../../_commonjsHelpers-BVfed4GL.js";
9
- import { useSortableListLogic as re } from "./logic.js";
10
- import { SortableListRoot as ae, SortableListItem as le } from "./styled.js";
11
- import { a as M, _ as ie } from "../../objectWithoutPropertiesLoose-DJteAcBH.js";
12
- import { P as f } from "../../index-C__OZmYy.js";
13
- import { c as ce } from "../../clsx-OuTLNxxd.js";
14
- import { g as de, a as pe, s as j, u as fe, c as ue } from "../../generateUtilityClasses-C3ivN9Ie.js";
15
- import { T as R } from "../../Typography-DgsSLCFC.js";
16
- function be(r) {
17
- return pe("MuiCardHeader", r);
18
- }
19
- const G = de("MuiCardHeader", ["root", "avatar", "action", "content", "title", "subheader"]), he = ["action", "avatar", "className", "component", "disableTypography", "subheader", "subheaderTypographyProps", "title", "titleTypographyProps"], me = (r) => {
1
+ var pn = Object.defineProperty;
2
+ var hn = (n, e, t) => e in n ? pn(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var $t = (n, e, t) => hn(n, typeof e != "symbol" ? e + "" : e, t);
4
+ import { jsx as ge, jsxs as Rt } from "react/jsx-runtime";
5
+ import { g as Kt } from "../../_commonjsHelpers-BVfed4GL.js";
6
+ import * as gn from "react";
7
+ import mn from "react";
8
+ import { useSortableListLogic as bn } from "./logic.js";
9
+ import { SortableListRoot as vn, SortableListItem as yn } from "./styled.js";
10
+ import { a as Me, _ as wn } from "../../objectWithoutPropertiesLoose-DJteAcBH.js";
11
+ import { P as z } from "../../index-C__OZmYy.js";
12
+ import { c as En } from "../../clsx-OuTLNxxd.js";
13
+ import { g as Sn, a as Dn, s as ct, u as _n, c as Cn } from "../../generateUtilityClasses-C3ivN9Ie.js";
14
+ import { T as We } from "../../Typography-DgsSLCFC.js";
15
+ function xn(n) {
16
+ return Dn("MuiCardHeader", n);
17
+ }
18
+ const Ht = Sn("MuiCardHeader", ["root", "avatar", "action", "content", "title", "subheader"]), On = ["action", "avatar", "className", "component", "disableTypography", "subheader", "subheaderTypographyProps", "title", "titleTypographyProps"], In = (n) => {
20
19
  const {
21
- classes: l
22
- } = r;
23
- return ue({
20
+ classes: e
21
+ } = n;
22
+ return Cn({
24
23
  root: ["root"],
25
24
  avatar: ["avatar"],
26
25
  action: ["action"],
27
26
  content: ["content"],
28
27
  title: ["title"],
29
28
  subheader: ["subheader"]
30
- }, be, l);
31
- }, xe = j("div", {
29
+ }, xn, e);
30
+ }, Tn = ct("div", {
32
31
  name: "MuiCardHeader",
33
32
  slot: "Root",
34
- overridesResolver: (r, l) => M({
35
- [`& .${G.title}`]: l.title,
36
- [`& .${G.subheader}`]: l.subheader
37
- }, l.root)
33
+ overridesResolver: (n, e) => Me({
34
+ [`& .${Ht.title}`]: e.title,
35
+ [`& .${Ht.subheader}`]: e.subheader
36
+ }, e.root)
38
37
  })({
39
38
  display: "flex",
40
39
  alignItems: "center",
41
40
  padding: 16
42
- }), $e = j("div", {
41
+ }), An = ct("div", {
43
42
  name: "MuiCardHeader",
44
43
  slot: "Avatar",
45
- overridesResolver: (r, l) => l.avatar
44
+ overridesResolver: (n, e) => e.avatar
46
45
  })({
47
46
  display: "flex",
48
47
  flex: "0 0 auto",
49
48
  marginRight: 16
50
- }), ge = j("div", {
49
+ }), Pn = ct("div", {
51
50
  name: "MuiCardHeader",
52
51
  slot: "Action",
53
- overridesResolver: (r, l) => l.action
52
+ overridesResolver: (n, e) => e.action
54
53
  })({
55
54
  flex: "0 0 auto",
56
55
  alignSelf: "flex-start",
57
56
  marginTop: -4,
58
57
  marginRight: -8,
59
58
  marginBottom: -4
60
- }), ye = j("div", {
59
+ }), Nn = ct("div", {
61
60
  name: "MuiCardHeader",
62
61
  slot: "Content",
63
- overridesResolver: (r, l) => l.content
62
+ overridesResolver: (n, e) => e.content
64
63
  })({
65
64
  flex: "1 1 auto"
66
- }), W = /* @__PURE__ */ se.forwardRef(function(l, c) {
67
- const b = fe({
68
- props: l,
65
+ }), qt = /* @__PURE__ */ gn.forwardRef(function(e, t) {
66
+ const o = _n({
67
+ props: e,
69
68
  name: "MuiCardHeader"
70
69
  }), {
71
- action: g,
72
- avatar: d,
73
- className: u,
74
- component: O = "div",
75
- disableTypography: $ = !1,
76
- subheader: N,
77
- subheaderTypographyProps: E,
78
- title: H,
79
- titleTypographyProps: L
80
- } = b, D = ie(b, he), w = M({}, b, {
81
- component: O,
82
- disableTypography: $
83
- }), y = me(w);
84
- let v = H;
85
- v != null && v.type !== R && !$ && (v = /* @__PURE__ */ C(R, M({
86
- variant: d ? "body2" : "h5",
87
- className: y.title,
70
+ action: r,
71
+ avatar: i,
72
+ className: a,
73
+ component: s = "div",
74
+ disableTypography: l = !1,
75
+ subheader: c,
76
+ subheaderTypographyProps: p,
77
+ title: f,
78
+ titleTypographyProps: v
79
+ } = o, A = wn(o, On), E = Me({}, o, {
80
+ component: s,
81
+ disableTypography: l
82
+ }), _ = In(E);
83
+ let R = f;
84
+ R != null && R.type !== We && !l && (R = /* @__PURE__ */ ge(We, Me({
85
+ variant: i ? "body2" : "h5",
86
+ className: _.title,
88
87
  component: "span",
89
88
  display: "block"
90
- }, L, {
91
- children: v
89
+ }, v, {
90
+ children: R
92
91
  })));
93
- let S = N;
94
- return S != null && S.type !== R && !$ && (S = /* @__PURE__ */ C(R, M({
95
- variant: d ? "body2" : "body1",
96
- className: y.subheader,
92
+ let Y = c;
93
+ return Y != null && Y.type !== We && !l && (Y = /* @__PURE__ */ ge(We, Me({
94
+ variant: i ? "body2" : "body1",
95
+ className: _.subheader,
97
96
  color: "text.secondary",
98
97
  component: "span",
99
98
  display: "block"
100
- }, E, {
101
- children: S
102
- }))), /* @__PURE__ */ B(xe, M({
103
- className: ce(y.root, u),
104
- as: O,
105
- ref: c,
106
- ownerState: w
107
- }, D, {
108
- children: [d && /* @__PURE__ */ C($e, {
109
- className: y.avatar,
110
- ownerState: w,
111
- children: d
112
- }), /* @__PURE__ */ B(ye, {
113
- className: y.content,
114
- ownerState: w,
115
- children: [v, S]
116
- }), g && /* @__PURE__ */ C(ge, {
117
- className: y.action,
118
- ownerState: w,
119
- children: g
99
+ }, p, {
100
+ children: Y
101
+ }))), /* @__PURE__ */ Rt(Tn, Me({
102
+ className: En(_.root, a),
103
+ as: s,
104
+ ref: t,
105
+ ownerState: E
106
+ }, A, {
107
+ children: [i && /* @__PURE__ */ ge(An, {
108
+ className: _.avatar,
109
+ ownerState: E,
110
+ children: i
111
+ }), /* @__PURE__ */ Rt(Nn, {
112
+ className: _.content,
113
+ ownerState: E,
114
+ children: [R, Y]
115
+ }), r && /* @__PURE__ */ ge(Pn, {
116
+ className: _.action,
117
+ ownerState: E,
118
+ children: r
120
119
  })]
121
120
  }));
122
121
  });
123
- process.env.NODE_ENV !== "production" && (W.propTypes = {
122
+ process.env.NODE_ENV !== "production" && (qt.propTypes = {
124
123
  // ┌────────────────────────────── Warning ──────────────────────────────┐
125
124
  // │ These PropTypes are generated from the TypeScript type definitions. │
126
125
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -128,28 +127,28 @@ process.env.NODE_ENV !== "production" && (W.propTypes = {
128
127
  /**
129
128
  * The action to display in the card header.
130
129
  */
131
- action: f.node,
130
+ action: z.node,
132
131
  /**
133
132
  * The Avatar element to display.
134
133
  */
135
- avatar: f.node,
134
+ avatar: z.node,
136
135
  /**
137
136
  * @ignore
138
137
  */
139
- children: f.node,
138
+ children: z.node,
140
139
  /**
141
140
  * Override or extend the styles applied to the component.
142
141
  */
143
- classes: f.object,
142
+ classes: z.object,
144
143
  /**
145
144
  * @ignore
146
145
  */
147
- className: f.string,
146
+ className: z.string,
148
147
  /**
149
148
  * The component used for the root node.
150
149
  * Either a string to use a HTML element or a component.
151
150
  */
152
- component: f.elementType,
151
+ component: z.elementType,
153
152
  /**
154
153
  * If `true`, `subheader` and `title` won't be wrapped by a Typography component.
155
154
  * This can be useful to render an alternative Typography variant by wrapping
@@ -157,202 +156,1849 @@ process.env.NODE_ENV !== "production" && (W.propTypes = {
157
156
  * with the Typography component.
158
157
  * @default false
159
158
  */
160
- disableTypography: f.bool,
159
+ disableTypography: z.bool,
161
160
  /**
162
161
  * The content of the component.
163
162
  */
164
- subheader: f.node,
163
+ subheader: z.node,
165
164
  /**
166
165
  * These props will be forwarded to the subheader
167
166
  * (as long as disableTypography is not `true`).
168
167
  */
169
- subheaderTypographyProps: f.object,
168
+ subheaderTypographyProps: z.object,
170
169
  /**
171
170
  * The system prop that allows defining system overrides as well as additional CSS styles.
172
171
  */
173
- sx: f.oneOfType([f.arrayOf(f.oneOfType([f.func, f.object, f.bool])), f.func, f.object]),
172
+ sx: z.oneOfType([z.arrayOf(z.oneOfType([z.func, z.object, z.bool])), z.func, z.object]),
174
173
  /**
175
174
  * The content of the component.
176
175
  */
177
- title: f.node,
176
+ title: z.node,
178
177
  /**
179
178
  * These props will be forwarded to the title
180
179
  * (as long as disableTypography is not `true`).
181
180
  */
182
- titleTypographyProps: f.object
181
+ titleTypographyProps: z.object
182
+ });
183
+ var Vt = { exports: {} };
184
+ /**!
185
+ * Sortable 1.15.7
186
+ * @author RubaXa <trash@rubaxa.org>
187
+ * @author owenm <owen23355@gmail.com>
188
+ * @license MIT
189
+ */
190
+ function St(n, e) {
191
+ (e == null || e > n.length) && (e = n.length);
192
+ for (var t = 0, o = Array(e); t < e; t++) o[t] = n[t];
193
+ return o;
194
+ }
195
+ function Mn(n) {
196
+ if (Array.isArray(n)) return St(n);
197
+ }
198
+ function $n(n, e, t) {
199
+ return (e = Bn(e)) in n ? Object.defineProperty(n, e, {
200
+ value: t,
201
+ enumerable: !0,
202
+ configurable: !0,
203
+ writable: !0
204
+ }) : n[e] = t, n;
205
+ }
206
+ function re() {
207
+ return re = Object.assign ? Object.assign.bind() : function(n) {
208
+ for (var e = 1; e < arguments.length; e++) {
209
+ var t = arguments[e];
210
+ for (var o in t) ({}).hasOwnProperty.call(t, o) && (n[o] = t[o]);
211
+ }
212
+ return n;
213
+ }, re.apply(null, arguments);
214
+ }
215
+ function Rn(n) {
216
+ if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n);
217
+ }
218
+ function Hn() {
219
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
220
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
221
+ }
222
+ function Lt(n, e) {
223
+ var t = Object.keys(n);
224
+ if (Object.getOwnPropertySymbols) {
225
+ var o = Object.getOwnPropertySymbols(n);
226
+ e && (o = o.filter(function(r) {
227
+ return Object.getOwnPropertyDescriptor(n, r).enumerable;
228
+ })), t.push.apply(t, o);
229
+ }
230
+ return t;
231
+ }
232
+ function ue(n) {
233
+ for (var e = 1; e < arguments.length; e++) {
234
+ var t = arguments[e] != null ? arguments[e] : {};
235
+ e % 2 ? Lt(Object(t), !0).forEach(function(o) {
236
+ $n(n, o, t[o]);
237
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : Lt(Object(t)).forEach(function(o) {
238
+ Object.defineProperty(n, o, Object.getOwnPropertyDescriptor(t, o));
239
+ });
240
+ }
241
+ return n;
242
+ }
243
+ function Ln(n, e) {
244
+ if (n == null) return {};
245
+ var t, o, r = jn(n, e);
246
+ if (Object.getOwnPropertySymbols) {
247
+ var i = Object.getOwnPropertySymbols(n);
248
+ for (o = 0; o < i.length; o++) t = i[o], e.indexOf(t) === -1 && {}.propertyIsEnumerable.call(n, t) && (r[t] = n[t]);
249
+ }
250
+ return r;
251
+ }
252
+ function jn(n, e) {
253
+ if (n == null) return {};
254
+ var t = {};
255
+ for (var o in n) if ({}.hasOwnProperty.call(n, o)) {
256
+ if (e.indexOf(o) !== -1) continue;
257
+ t[o] = n[o];
258
+ }
259
+ return t;
260
+ }
261
+ function Fn(n) {
262
+ return Mn(n) || Rn(n) || Xn(n) || Hn();
263
+ }
264
+ function kn(n, e) {
265
+ if (typeof n != "object" || !n) return n;
266
+ var t = n[Symbol.toPrimitive];
267
+ if (t !== void 0) {
268
+ var o = t.call(n, e || "default");
269
+ if (typeof o != "object") return o;
270
+ throw new TypeError("@@toPrimitive must return a primitive value.");
271
+ }
272
+ return (e === "string" ? String : Number)(n);
273
+ }
274
+ function Bn(n) {
275
+ var e = kn(n, "string");
276
+ return typeof e == "symbol" ? e : e + "";
277
+ }
278
+ function Dt(n) {
279
+ "@babel/helpers - typeof";
280
+ return Dt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
281
+ return typeof e;
282
+ } : function(e) {
283
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
284
+ }, Dt(n);
285
+ }
286
+ function Xn(n, e) {
287
+ if (n) {
288
+ if (typeof n == "string") return St(n, e);
289
+ var t = {}.toString.call(n).slice(8, -1);
290
+ return t === "Object" && n.constructor && (t = n.constructor.name), t === "Map" || t === "Set" ? Array.from(n) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? St(n, e) : void 0;
291
+ }
292
+ }
293
+ var Yn = "1.15.7";
294
+ function de(n) {
295
+ if (typeof window < "u" && window.navigator)
296
+ return !!/* @__PURE__ */ navigator.userAgent.match(n);
297
+ }
298
+ var fe = de(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ye = de(/Edge/i), jt = de(/firefox/i), je = de(/safari/i) && !de(/chrome/i) && !de(/android/i), It = de(/iP(ad|od|hone)/i), Zt = de(/chrome/i) && de(/android/i), Jt = {
299
+ capture: !1,
300
+ passive: !1
301
+ };
302
+ function I(n, e, t) {
303
+ n.addEventListener(e, t, !fe && Jt);
304
+ }
305
+ function x(n, e, t) {
306
+ n.removeEventListener(e, t, !fe && Jt);
307
+ }
308
+ function rt(n, e) {
309
+ if (e) {
310
+ if (e[0] === ">" && (e = e.substring(1)), n)
311
+ try {
312
+ if (n.matches)
313
+ return n.matches(e);
314
+ if (n.msMatchesSelector)
315
+ return n.msMatchesSelector(e);
316
+ if (n.webkitMatchesSelector)
317
+ return n.webkitMatchesSelector(e);
318
+ } catch {
319
+ return !1;
320
+ }
321
+ return !1;
322
+ }
323
+ }
324
+ function Qt(n) {
325
+ return n.host && n !== document && n.host.nodeType && n.host !== n ? n.host : n.parentNode;
326
+ }
327
+ function ee(n, e, t, o) {
328
+ if (n) {
329
+ t = t || document;
330
+ do {
331
+ if (e != null && (e[0] === ">" ? n.parentNode === t && rt(n, e) : rt(n, e)) || o && n === t)
332
+ return n;
333
+ if (n === t) break;
334
+ } while (n = Qt(n));
335
+ }
336
+ return null;
337
+ }
338
+ var Ft = /\s+/g;
339
+ function j(n, e, t) {
340
+ if (n && e)
341
+ if (n.classList)
342
+ n.classList[t ? "add" : "remove"](e);
343
+ else {
344
+ var o = (" " + n.className + " ").replace(Ft, " ").replace(" " + e + " ", " ");
345
+ n.className = (o + (t ? " " + e : "")).replace(Ft, " ");
346
+ }
347
+ }
348
+ function b(n, e, t) {
349
+ var o = n && n.style;
350
+ if (o) {
351
+ if (t === void 0)
352
+ return document.defaultView && document.defaultView.getComputedStyle ? t = document.defaultView.getComputedStyle(n, "") : n.currentStyle && (t = n.currentStyle), e === void 0 ? t : t[e];
353
+ !(e in o) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), o[e] = t + (typeof t == "string" ? "" : "px");
354
+ }
355
+ }
356
+ function Ee(n, e) {
357
+ var t = "";
358
+ if (typeof n == "string")
359
+ t = n;
360
+ else
361
+ do {
362
+ var o = b(n, "transform");
363
+ o && o !== "none" && (t = o + " " + t);
364
+ } while (!e && (n = n.parentNode));
365
+ var r = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
366
+ return r && new r(t);
367
+ }
368
+ function en(n, e, t) {
369
+ if (n) {
370
+ var o = n.getElementsByTagName(e), r = 0, i = o.length;
371
+ if (t)
372
+ for (; r < i; r++)
373
+ t(o[r], r);
374
+ return o;
375
+ }
376
+ return [];
377
+ }
378
+ function ce() {
379
+ var n = document.scrollingElement;
380
+ return n || document.documentElement;
381
+ }
382
+ function $(n, e, t, o, r) {
383
+ if (!(!n.getBoundingClientRect && n !== window)) {
384
+ var i, a, s, l, c, p, f;
385
+ if (n !== window && n.parentNode && n !== ce() ? (i = n.getBoundingClientRect(), a = i.top, s = i.left, l = i.bottom, c = i.right, p = i.height, f = i.width) : (a = 0, s = 0, l = window.innerHeight, c = window.innerWidth, p = window.innerHeight, f = window.innerWidth), (e || t) && n !== window && (r = r || n.parentNode, !fe))
386
+ do
387
+ if (r && r.getBoundingClientRect && (b(r, "transform") !== "none" || t && b(r, "position") !== "static")) {
388
+ var v = r.getBoundingClientRect();
389
+ a -= v.top + parseInt(b(r, "border-top-width")), s -= v.left + parseInt(b(r, "border-left-width")), l = a + i.height, c = s + i.width;
390
+ break;
391
+ }
392
+ while (r = r.parentNode);
393
+ if (o && n !== window) {
394
+ var A = Ee(r || n), E = A && A.a, _ = A && A.d;
395
+ A && (a /= _, s /= E, f /= E, p /= _, l = a + p, c = s + f);
396
+ }
397
+ return {
398
+ top: a,
399
+ left: s,
400
+ bottom: l,
401
+ right: c,
402
+ width: f,
403
+ height: p
404
+ };
405
+ }
406
+ }
407
+ function kt(n, e, t) {
408
+ for (var o = me(n, !0), r = $(n)[e]; o; ) {
409
+ var i = $(o)[t], a = void 0;
410
+ if (a = r >= i, !a) return o;
411
+ if (o === ce()) break;
412
+ o = me(o, !1);
413
+ }
414
+ return !1;
415
+ }
416
+ function Oe(n, e, t, o) {
417
+ for (var r = 0, i = 0, a = n.children; i < a.length; ) {
418
+ if (a[i].style.display !== "none" && a[i] !== w.ghost && (o || a[i] !== w.dragged) && ee(a[i], t.draggable, n, !1)) {
419
+ if (r === e)
420
+ return a[i];
421
+ r++;
422
+ }
423
+ i++;
424
+ }
425
+ return null;
426
+ }
427
+ function Tt(n, e) {
428
+ for (var t = n.lastElementChild; t && (t === w.ghost || b(t, "display") === "none" || e && !rt(t, e)); )
429
+ t = t.previousElementSibling;
430
+ return t || null;
431
+ }
432
+ function B(n, e) {
433
+ var t = 0;
434
+ if (!n || !n.parentNode)
435
+ return -1;
436
+ for (; n = n.previousElementSibling; )
437
+ n.nodeName.toUpperCase() !== "TEMPLATE" && n !== w.clone && (!e || rt(n, e)) && t++;
438
+ return t;
439
+ }
440
+ function Bt(n) {
441
+ var e = 0, t = 0, o = ce();
442
+ if (n)
443
+ do {
444
+ var r = Ee(n), i = r.a, a = r.d;
445
+ e += n.scrollLeft * i, t += n.scrollTop * a;
446
+ } while (n !== o && (n = n.parentNode));
447
+ return [e, t];
448
+ }
449
+ function Un(n, e) {
450
+ for (var t in n)
451
+ if (n.hasOwnProperty(t)) {
452
+ for (var o in e)
453
+ if (e.hasOwnProperty(o) && e[o] === n[t][o]) return Number(t);
454
+ }
455
+ return -1;
456
+ }
457
+ function me(n, e) {
458
+ if (!n || !n.getBoundingClientRect) return ce();
459
+ var t = n, o = !1;
460
+ do
461
+ if (t.clientWidth < t.scrollWidth || t.clientHeight < t.scrollHeight) {
462
+ var r = b(t);
463
+ if (t.clientWidth < t.scrollWidth && (r.overflowX == "auto" || r.overflowX == "scroll") || t.clientHeight < t.scrollHeight && (r.overflowY == "auto" || r.overflowY == "scroll")) {
464
+ if (!t.getBoundingClientRect || t === document.body) return ce();
465
+ if (o || e) return t;
466
+ o = !0;
467
+ }
468
+ }
469
+ while (t = t.parentNode);
470
+ return ce();
471
+ }
472
+ function Gn(n, e) {
473
+ if (n && e)
474
+ for (var t in e)
475
+ e.hasOwnProperty(t) && (n[t] = e[t]);
476
+ return n;
477
+ }
478
+ function dt(n, e) {
479
+ return Math.round(n.top) === Math.round(e.top) && Math.round(n.left) === Math.round(e.left) && Math.round(n.height) === Math.round(e.height) && Math.round(n.width) === Math.round(e.width);
480
+ }
481
+ var Fe;
482
+ function tn(n, e) {
483
+ return function() {
484
+ if (!Fe) {
485
+ var t = arguments, o = this;
486
+ t.length === 1 ? n.call(o, t[0]) : n.apply(o, t), Fe = setTimeout(function() {
487
+ Fe = void 0;
488
+ }, e);
489
+ }
490
+ };
491
+ }
492
+ function zn() {
493
+ clearTimeout(Fe), Fe = void 0;
494
+ }
495
+ function nn(n, e, t) {
496
+ n.scrollLeft += e, n.scrollTop += t;
497
+ }
498
+ function At(n) {
499
+ var e = window.Polymer, t = window.jQuery || window.Zepto;
500
+ return e && e.dom ? e.dom(n).cloneNode(!0) : t ? t(n).clone(!0)[0] : n.cloneNode(!0);
501
+ }
502
+ function Xt(n, e) {
503
+ b(n, "position", "absolute"), b(n, "top", e.top), b(n, "left", e.left), b(n, "width", e.width), b(n, "height", e.height);
504
+ }
505
+ function ft(n) {
506
+ b(n, "position", ""), b(n, "top", ""), b(n, "left", ""), b(n, "width", ""), b(n, "height", "");
507
+ }
508
+ function on(n, e, t) {
509
+ var o = {};
510
+ return Array.from(n.children).forEach(function(r) {
511
+ var i, a, s, l;
512
+ if (!(!ee(r, e.draggable, n, !1) || r.animated || r === t)) {
513
+ var c = $(r);
514
+ o.left = Math.min((i = o.left) !== null && i !== void 0 ? i : 1 / 0, c.left), o.top = Math.min((a = o.top) !== null && a !== void 0 ? a : 1 / 0, c.top), o.right = Math.max((s = o.right) !== null && s !== void 0 ? s : -1 / 0, c.right), o.bottom = Math.max((l = o.bottom) !== null && l !== void 0 ? l : -1 / 0, c.bottom);
515
+ }
516
+ }), o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
517
+ }
518
+ var K = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
519
+ function Wn() {
520
+ var n = [], e;
521
+ return {
522
+ captureAnimationState: function() {
523
+ if (n = [], !!this.options.animation) {
524
+ var o = [].slice.call(this.el.children);
525
+ o.forEach(function(r) {
526
+ if (!(b(r, "display") === "none" || r === w.ghost)) {
527
+ n.push({
528
+ target: r,
529
+ rect: $(r)
530
+ });
531
+ var i = ue({}, n[n.length - 1].rect);
532
+ if (r.thisAnimationDuration) {
533
+ var a = Ee(r, !0);
534
+ a && (i.top -= a.f, i.left -= a.e);
535
+ }
536
+ r.fromRect = i;
537
+ }
538
+ });
539
+ }
540
+ },
541
+ addAnimationState: function(o) {
542
+ n.push(o);
543
+ },
544
+ removeAnimationState: function(o) {
545
+ n.splice(Un(n, {
546
+ target: o
547
+ }), 1);
548
+ },
549
+ animateAll: function(o) {
550
+ var r = this;
551
+ if (!this.options.animation) {
552
+ clearTimeout(e), typeof o == "function" && o();
553
+ return;
554
+ }
555
+ var i = !1, a = 0;
556
+ n.forEach(function(s) {
557
+ var l = 0, c = s.target, p = c.fromRect, f = $(c), v = c.prevFromRect, A = c.prevToRect, E = s.rect, _ = Ee(c, !0);
558
+ _ && (f.top -= _.f, f.left -= _.e), c.toRect = f, c.thisAnimationDuration && dt(v, f) && !dt(p, f) && // Make sure animatingRect is on line between toRect & fromRect
559
+ (E.top - f.top) / (E.left - f.left) === (p.top - f.top) / (p.left - f.left) && (l = qn(E, v, A, r.options)), dt(f, p) || (c.prevFromRect = p, c.prevToRect = f, l || (l = r.options.animation), r.animate(c, E, f, l)), l && (i = !0, a = Math.max(a, l), clearTimeout(c.animationResetTimer), c.animationResetTimer = setTimeout(function() {
560
+ c.animationTime = 0, c.prevFromRect = null, c.fromRect = null, c.prevToRect = null, c.thisAnimationDuration = null;
561
+ }, l), c.thisAnimationDuration = l);
562
+ }), clearTimeout(e), i ? e = setTimeout(function() {
563
+ typeof o == "function" && o();
564
+ }, a) : typeof o == "function" && o(), n = [];
565
+ },
566
+ animate: function(o, r, i, a) {
567
+ if (a) {
568
+ b(o, "transition", ""), b(o, "transform", "");
569
+ var s = Ee(this.el), l = s && s.a, c = s && s.d, p = (r.left - i.left) / (l || 1), f = (r.top - i.top) / (c || 1);
570
+ o.animatingX = !!p, o.animatingY = !!f, b(o, "transform", "translate3d(" + p + "px," + f + "px,0)"), this.forRepaintDummy = Kn(o), b(o, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), b(o, "transform", "translate3d(0,0,0)"), typeof o.animated == "number" && clearTimeout(o.animated), o.animated = setTimeout(function() {
571
+ b(o, "transition", ""), b(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
572
+ }, a);
573
+ }
574
+ }
575
+ };
576
+ }
577
+ function Kn(n) {
578
+ return n.offsetWidth;
579
+ }
580
+ function qn(n, e, t, o) {
581
+ return Math.sqrt(Math.pow(e.top - n.top, 2) + Math.pow(e.left - n.left, 2)) / Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) * o.animation;
582
+ }
583
+ var Se = [], pt = {
584
+ initializeByDefault: !0
585
+ }, Ue = {
586
+ mount: function(e) {
587
+ for (var t in pt)
588
+ pt.hasOwnProperty(t) && !(t in e) && (e[t] = pt[t]);
589
+ Se.forEach(function(o) {
590
+ if (o.pluginName === e.pluginName)
591
+ throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
592
+ }), Se.push(e);
593
+ },
594
+ pluginEvent: function(e, t, o) {
595
+ var r = this;
596
+ this.eventCanceled = !1, o.cancel = function() {
597
+ r.eventCanceled = !0;
598
+ };
599
+ var i = e + "Global";
600
+ Se.forEach(function(a) {
601
+ t[a.pluginName] && (t[a.pluginName][i] && t[a.pluginName][i](ue({
602
+ sortable: t
603
+ }, o)), t.options[a.pluginName] && t[a.pluginName][e] && t[a.pluginName][e](ue({
604
+ sortable: t
605
+ }, o)));
606
+ });
607
+ },
608
+ initializePlugins: function(e, t, o, r) {
609
+ Se.forEach(function(s) {
610
+ var l = s.pluginName;
611
+ if (!(!e.options[l] && !s.initializeByDefault)) {
612
+ var c = new s(e, t, e.options);
613
+ c.sortable = e, c.options = e.options, e[l] = c, re(o, c.defaults);
614
+ }
615
+ });
616
+ for (var i in e.options)
617
+ if (e.options.hasOwnProperty(i)) {
618
+ var a = this.modifyOption(e, i, e.options[i]);
619
+ typeof a < "u" && (e.options[i] = a);
620
+ }
621
+ },
622
+ getEventProperties: function(e, t) {
623
+ var o = {};
624
+ return Se.forEach(function(r) {
625
+ typeof r.eventProperties == "function" && re(o, r.eventProperties.call(t[r.pluginName], e));
626
+ }), o;
627
+ },
628
+ modifyOption: function(e, t, o) {
629
+ var r;
630
+ return Se.forEach(function(i) {
631
+ e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], o));
632
+ }), r;
633
+ }
634
+ };
635
+ function $e(n) {
636
+ var e = n.sortable, t = n.rootEl, o = n.name, r = n.targetEl, i = n.cloneEl, a = n.toEl, s = n.fromEl, l = n.oldIndex, c = n.newIndex, p = n.oldDraggableIndex, f = n.newDraggableIndex, v = n.originalEvent, A = n.putSortable, E = n.extraEventProperties;
637
+ if (e = e || t && t[K], !!e) {
638
+ var _, R = e.options, Y = "on" + o.charAt(0).toUpperCase() + o.substr(1);
639
+ window.CustomEvent && !fe && !Ye ? _ = new CustomEvent(o, {
640
+ bubbles: !0,
641
+ cancelable: !0
642
+ }) : (_ = document.createEvent("Event"), _.initEvent(o, !0, !0)), _.to = a || t, _.from = s || t, _.item = r || t, _.clone = i, _.oldIndex = l, _.newIndex = c, _.oldDraggableIndex = p, _.newDraggableIndex = f, _.originalEvent = v, _.pullMode = A ? A.lastPutMode : void 0;
643
+ var T = ue(ue({}, E), Ue.getEventProperties(o, e));
644
+ for (var O in T)
645
+ _[O] = T[O];
646
+ t && t.dispatchEvent(_), R[Y] && R[Y].call(e, _);
647
+ }
648
+ }
649
+ var Vn = ["evt"], J = function(e, t) {
650
+ var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = o.evt, i = Ln(o, Vn);
651
+ Ue.pluginEvent.bind(w)(e, t, ue({
652
+ dragEl: d,
653
+ parentEl: k,
654
+ ghostEl: D,
655
+ rootEl: H,
656
+ nextEl: we,
657
+ lastDownEl: et,
658
+ cloneEl: L,
659
+ cloneHidden: he,
660
+ dragStarted: Re,
661
+ putSortable: W,
662
+ activeSortable: w.active,
663
+ originalEvent: r,
664
+ oldIndex: xe,
665
+ oldDraggableIndex: ke,
666
+ newIndex: ne,
667
+ newDraggableIndex: pe,
668
+ hideGhostForTarget: ln,
669
+ unhideGhostForTarget: cn,
670
+ cloneNowHidden: function() {
671
+ he = !0;
672
+ },
673
+ cloneNowShown: function() {
674
+ he = !1;
675
+ },
676
+ dispatchSortableEvent: function(s) {
677
+ Z({
678
+ sortable: t,
679
+ name: s,
680
+ originalEvent: r
681
+ });
682
+ }
683
+ }, i));
684
+ };
685
+ function Z(n) {
686
+ $e(ue({
687
+ putSortable: W,
688
+ cloneEl: L,
689
+ targetEl: d,
690
+ rootEl: H,
691
+ oldIndex: xe,
692
+ oldDraggableIndex: ke,
693
+ newIndex: ne,
694
+ newDraggableIndex: pe
695
+ }, n));
696
+ }
697
+ var d, k, D, H, we, et, L, he, xe, ne, ke, pe, Ke, W, Ce = !1, it = !1, at = [], ve, se, ht, gt, Yt, Ut, Re, De, Be, Xe = !1, qe = !1, tt, q, mt = [], _t = !1, st = [], ut = typeof document < "u", Ve = It, Gt = Ye || fe ? "cssFloat" : "float", Zn = ut && !Zt && !It && "draggable" in document.createElement("div"), rn = function() {
698
+ if (ut) {
699
+ if (fe)
700
+ return !1;
701
+ var n = document.createElement("x");
702
+ return n.style.cssText = "pointer-events:auto", n.style.pointerEvents === "auto";
703
+ }
704
+ }(), an = function(e, t) {
705
+ var o = b(e), r = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), i = Oe(e, 0, t), a = Oe(e, 1, t), s = i && b(i), l = a && b(a), c = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + $(i).width, p = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + $(a).width;
706
+ if (o.display === "flex")
707
+ return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
708
+ if (o.display === "grid")
709
+ return o.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
710
+ if (i && s.float && s.float !== "none") {
711
+ var f = s.float === "left" ? "left" : "right";
712
+ return a && (l.clear === "both" || l.clear === f) ? "vertical" : "horizontal";
713
+ }
714
+ return i && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || c >= r && o[Gt] === "none" || a && o[Gt] === "none" && c + p > r) ? "vertical" : "horizontal";
715
+ }, Jn = function(e, t, o) {
716
+ var r = o ? e.left : e.top, i = o ? e.right : e.bottom, a = o ? e.width : e.height, s = o ? t.left : t.top, l = o ? t.right : t.bottom, c = o ? t.width : t.height;
717
+ return r === s || i === l || r + a / 2 === s + c / 2;
718
+ }, Qn = function(e, t) {
719
+ var o;
720
+ return at.some(function(r) {
721
+ var i = r[K].options.emptyInsertThreshold;
722
+ if (!(!i || Tt(r))) {
723
+ var a = $(r), s = e >= a.left - i && e <= a.right + i, l = t >= a.top - i && t <= a.bottom + i;
724
+ if (s && l)
725
+ return o = r;
726
+ }
727
+ }), o;
728
+ }, sn = function(e) {
729
+ function t(i, a) {
730
+ return function(s, l, c, p) {
731
+ var f = s.options.group.name && l.options.group.name && s.options.group.name === l.options.group.name;
732
+ if (i == null && (a || f))
733
+ return !0;
734
+ if (i == null || i === !1)
735
+ return !1;
736
+ if (a && i === "clone")
737
+ return i;
738
+ if (typeof i == "function")
739
+ return t(i(s, l, c, p), a)(s, l, c, p);
740
+ var v = (a ? s : l).options.group.name;
741
+ return i === !0 || typeof i == "string" && i === v || i.join && i.indexOf(v) > -1;
742
+ };
743
+ }
744
+ var o = {}, r = e.group;
745
+ (!r || Dt(r) != "object") && (r = {
746
+ name: r
747
+ }), o.name = r.name, o.checkPull = t(r.pull, !0), o.checkPut = t(r.put), o.revertClone = r.revertClone, e.group = o;
748
+ }, ln = function() {
749
+ !rn && D && b(D, "display", "none");
750
+ }, cn = function() {
751
+ !rn && D && b(D, "display", "");
752
+ };
753
+ ut && !Zt && document.addEventListener("click", function(n) {
754
+ if (it)
755
+ return n.preventDefault(), n.stopPropagation && n.stopPropagation(), n.stopImmediatePropagation && n.stopImmediatePropagation(), it = !1, !1;
756
+ }, !0);
757
+ var ye = function(e) {
758
+ if (d) {
759
+ e = e.touches ? e.touches[0] : e;
760
+ var t = Qn(e.clientX, e.clientY);
761
+ if (t) {
762
+ var o = {};
763
+ for (var r in e)
764
+ e.hasOwnProperty(r) && (o[r] = e[r]);
765
+ o.target = o.rootEl = t, o.preventDefault = void 0, o.stopPropagation = void 0, t[K]._onDragOver(o);
766
+ }
767
+ }
768
+ }, eo = function(e) {
769
+ d && d.parentNode[K]._isOutsideThisEl(e.target);
770
+ };
771
+ function w(n, e) {
772
+ if (!(n && n.nodeType && n.nodeType === 1))
773
+ throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));
774
+ this.el = n, this.options = e = re({}, e), n[K] = this;
775
+ var t = {
776
+ group: null,
777
+ sort: !0,
778
+ disabled: !1,
779
+ store: null,
780
+ handle: null,
781
+ draggable: /^[uo]l$/i.test(n.nodeName) ? ">li" : ">*",
782
+ swapThreshold: 1,
783
+ // percentage; 0 <= x <= 1
784
+ invertSwap: !1,
785
+ // invert always
786
+ invertedSwapThreshold: null,
787
+ // will be set to same as swapThreshold if default
788
+ removeCloneOnHide: !0,
789
+ direction: function() {
790
+ return an(n, this.options);
791
+ },
792
+ ghostClass: "sortable-ghost",
793
+ chosenClass: "sortable-chosen",
794
+ dragClass: "sortable-drag",
795
+ ignore: "a, img",
796
+ filter: null,
797
+ preventOnFilter: !0,
798
+ animation: 0,
799
+ easing: null,
800
+ setData: function(a, s) {
801
+ a.setData("Text", s.textContent);
802
+ },
803
+ dropBubble: !1,
804
+ dragoverBubble: !1,
805
+ dataIdAttr: "data-id",
806
+ delay: 0,
807
+ delayOnTouchOnly: !1,
808
+ touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
809
+ forceFallback: !1,
810
+ fallbackClass: "sortable-fallback",
811
+ fallbackOnBody: !1,
812
+ fallbackTolerance: 0,
813
+ fallbackOffset: {
814
+ x: 0,
815
+ y: 0
816
+ },
817
+ // Disabled on Safari: #1571; Enabled on Safari IOS: #2244
818
+ supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && (!je || It),
819
+ emptyInsertThreshold: 5
820
+ };
821
+ Ue.initializePlugins(this, n, t);
822
+ for (var o in t)
823
+ !(o in e) && (e[o] = t[o]);
824
+ sn(e);
825
+ for (var r in this)
826
+ r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
827
+ this.nativeDraggable = e.forceFallback ? !1 : Zn, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? I(n, "pointerdown", this._onTapStart) : (I(n, "mousedown", this._onTapStart), I(n, "touchstart", this._onTapStart)), this.nativeDraggable && (I(n, "dragover", this), I(n, "dragenter", this)), at.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), re(this, Wn());
828
+ }
829
+ w.prototype = /** @lends Sortable.prototype */
830
+ {
831
+ constructor: w,
832
+ _isOutsideThisEl: function(e) {
833
+ !this.el.contains(e) && e !== this.el && (De = null);
834
+ },
835
+ _getDirection: function(e, t) {
836
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, d) : this.options.direction;
837
+ },
838
+ _onTapStart: function(e) {
839
+ if (e.cancelable) {
840
+ var t = this, o = this.el, r = this.options, i = r.preventOnFilter, a = e.type, s = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, l = (s || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || l, p = r.filter;
841
+ if (lo(o), !d && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && je && l && l.tagName.toUpperCase() === "SELECT") && (l = ee(l, r.draggable, o, !1), !(l && l.animated) && et !== l)) {
842
+ if (xe = B(l), ke = B(l, r.draggable), typeof p == "function") {
843
+ if (p.call(this, e, l, this)) {
844
+ Z({
845
+ sortable: t,
846
+ rootEl: c,
847
+ name: "filter",
848
+ targetEl: l,
849
+ toEl: o,
850
+ fromEl: o
851
+ }), J("filter", t, {
852
+ evt: e
853
+ }), i && e.preventDefault();
854
+ return;
855
+ }
856
+ } else if (p && (p = p.split(",").some(function(f) {
857
+ if (f = ee(c, f.trim(), o, !1), f)
858
+ return Z({
859
+ sortable: t,
860
+ rootEl: f,
861
+ name: "filter",
862
+ targetEl: l,
863
+ fromEl: o,
864
+ toEl: o
865
+ }), J("filter", t, {
866
+ evt: e
867
+ }), !0;
868
+ }), p)) {
869
+ i && e.preventDefault();
870
+ return;
871
+ }
872
+ r.handle && !ee(c, r.handle, o, !1) || this._prepareDragStart(e, s, l);
873
+ }
874
+ }
875
+ },
876
+ _prepareDragStart: function(e, t, o) {
877
+ var r = this, i = r.el, a = r.options, s = i.ownerDocument, l;
878
+ if (o && !d && o.parentNode === i) {
879
+ var c = $(o);
880
+ if (H = i, d = o, k = d.parentNode, we = d.nextSibling, et = o, Ke = a.group, w.dragged = d, ve = {
881
+ target: d,
882
+ clientX: (t || e).clientX,
883
+ clientY: (t || e).clientY
884
+ }, Yt = ve.clientX - c.left, Ut = ve.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, d.style["will-change"] = "all", l = function() {
885
+ if (J("delayEnded", r, {
886
+ evt: e
887
+ }), w.eventCanceled) {
888
+ r._onDrop();
889
+ return;
890
+ }
891
+ r._disableDelayedDragEvents(), !jt && r.nativeDraggable && (d.draggable = !0), r._triggerDragStart(e, t), Z({
892
+ sortable: r,
893
+ name: "choose",
894
+ originalEvent: e
895
+ }), j(d, a.chosenClass, !0);
896
+ }, a.ignore.split(",").forEach(function(p) {
897
+ en(d, p.trim(), bt);
898
+ }), I(s, "dragover", ye), I(s, "mousemove", ye), I(s, "touchmove", ye), a.supportPointer ? (I(s, "pointerup", r._onDrop), !this.nativeDraggable && I(s, "pointercancel", r._onDrop)) : (I(s, "mouseup", r._onDrop), I(s, "touchend", r._onDrop), I(s, "touchcancel", r._onDrop)), jt && this.nativeDraggable && (this.options.touchStartThreshold = 4, d.draggable = !0), J("delayStart", this, {
899
+ evt: e
900
+ }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Ye || fe))) {
901
+ if (w.eventCanceled) {
902
+ this._onDrop();
903
+ return;
904
+ }
905
+ a.supportPointer ? (I(s, "pointerup", r._disableDelayedDrag), I(s, "pointercancel", r._disableDelayedDrag)) : (I(s, "mouseup", r._disableDelayedDrag), I(s, "touchend", r._disableDelayedDrag), I(s, "touchcancel", r._disableDelayedDrag)), I(s, "mousemove", r._delayedDragTouchMoveHandler), I(s, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && I(s, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(l, a.delay);
906
+ } else
907
+ l();
908
+ }
909
+ },
910
+ _delayedDragTouchMoveHandler: function(e) {
911
+ var t = e.touches ? e.touches[0] : e;
912
+ Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
913
+ },
914
+ _disableDelayedDrag: function() {
915
+ d && bt(d), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
916
+ },
917
+ _disableDelayedDragEvents: function() {
918
+ var e = this.el.ownerDocument;
919
+ x(e, "mouseup", this._disableDelayedDrag), x(e, "touchend", this._disableDelayedDrag), x(e, "touchcancel", this._disableDelayedDrag), x(e, "pointerup", this._disableDelayedDrag), x(e, "pointercancel", this._disableDelayedDrag), x(e, "mousemove", this._delayedDragTouchMoveHandler), x(e, "touchmove", this._delayedDragTouchMoveHandler), x(e, "pointermove", this._delayedDragTouchMoveHandler);
920
+ },
921
+ _triggerDragStart: function(e, t) {
922
+ t = t || e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? I(document, "pointermove", this._onTouchMove) : t ? I(document, "touchmove", this._onTouchMove) : I(document, "mousemove", this._onTouchMove) : (I(d, "dragend", this), I(H, "dragstart", this._onDragStart));
923
+ try {
924
+ document.selection ? nt(function() {
925
+ document.selection.empty();
926
+ }) : window.getSelection().removeAllRanges();
927
+ } catch {
928
+ }
929
+ },
930
+ _dragStarted: function(e, t) {
931
+ if (Ce = !1, H && d) {
932
+ J("dragStarted", this, {
933
+ evt: t
934
+ }), this.nativeDraggable && I(document, "dragover", eo);
935
+ var o = this.options;
936
+ !e && j(d, o.dragClass, !1), j(d, o.ghostClass, !0), w.active = this, e && this._appendGhost(), Z({
937
+ sortable: this,
938
+ name: "start",
939
+ originalEvent: t
940
+ });
941
+ } else
942
+ this._nulling();
943
+ },
944
+ _emulateDragOver: function() {
945
+ if (se) {
946
+ this._lastX = se.clientX, this._lastY = se.clientY, ln();
947
+ for (var e = document.elementFromPoint(se.clientX, se.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(se.clientX, se.clientY), e !== t); )
948
+ t = e;
949
+ if (d.parentNode[K]._isOutsideThisEl(e), t)
950
+ do {
951
+ if (t[K]) {
952
+ var o = void 0;
953
+ if (o = t[K]._onDragOver({
954
+ clientX: se.clientX,
955
+ clientY: se.clientY,
956
+ target: e,
957
+ rootEl: t
958
+ }), o && !this.options.dragoverBubble)
959
+ break;
960
+ }
961
+ e = t;
962
+ } while (t = Qt(t));
963
+ cn();
964
+ }
965
+ },
966
+ _onTouchMove: function(e) {
967
+ if (ve) {
968
+ var t = this.options, o = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = D && Ee(D, !0), s = D && a && a.a, l = D && a && a.d, c = Ve && q && Bt(q), p = (i.clientX - ve.clientX + r.x) / (s || 1) + (c ? c[0] - mt[0] : 0) / (s || 1), f = (i.clientY - ve.clientY + r.y) / (l || 1) + (c ? c[1] - mt[1] : 0) / (l || 1);
969
+ if (!w.active && !Ce) {
970
+ if (o && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < o)
971
+ return;
972
+ this._onDragStart(e, !0);
973
+ }
974
+ if (D) {
975
+ a ? (a.e += p - (ht || 0), a.f += f - (gt || 0)) : a = {
976
+ a: 1,
977
+ b: 0,
978
+ c: 0,
979
+ d: 1,
980
+ e: p,
981
+ f
982
+ };
983
+ var v = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
984
+ b(D, "webkitTransform", v), b(D, "mozTransform", v), b(D, "msTransform", v), b(D, "transform", v), ht = p, gt = f, se = i;
985
+ }
986
+ e.cancelable && e.preventDefault();
987
+ }
988
+ },
989
+ _appendGhost: function() {
990
+ if (!D) {
991
+ var e = this.options.fallbackOnBody ? document.body : H, t = $(d, !0, Ve, !0, e), o = this.options;
992
+ if (Ve) {
993
+ for (q = e; b(q, "position") === "static" && b(q, "transform") === "none" && q !== document; )
994
+ q = q.parentNode;
995
+ q !== document.body && q !== document.documentElement ? (q === document && (q = ce()), t.top += q.scrollTop, t.left += q.scrollLeft) : q = ce(), mt = Bt(q);
996
+ }
997
+ D = d.cloneNode(!0), j(D, o.ghostClass, !1), j(D, o.fallbackClass, !0), j(D, o.dragClass, !0), b(D, "transition", ""), b(D, "transform", ""), b(D, "box-sizing", "border-box"), b(D, "margin", 0), b(D, "top", t.top), b(D, "left", t.left), b(D, "width", t.width), b(D, "height", t.height), b(D, "opacity", "0.8"), b(D, "position", Ve ? "absolute" : "fixed"), b(D, "zIndex", "100000"), b(D, "pointerEvents", "none"), w.ghost = D, e.appendChild(D), b(D, "transform-origin", Yt / parseInt(D.style.width) * 100 + "% " + Ut / parseInt(D.style.height) * 100 + "%");
998
+ }
999
+ },
1000
+ _onDragStart: function(e, t) {
1001
+ var o = this, r = e.dataTransfer, i = o.options;
1002
+ if (J("dragStart", this, {
1003
+ evt: e
1004
+ }), w.eventCanceled) {
1005
+ this._onDrop();
1006
+ return;
1007
+ }
1008
+ J("setupClone", this), w.eventCanceled || (L = At(d), L.removeAttribute("id"), L.draggable = !1, L.style["will-change"] = "", this._hideClone(), j(L, this.options.chosenClass, !1), w.clone = L), o.cloneId = nt(function() {
1009
+ J("clone", o), !w.eventCanceled && (o.options.removeCloneOnHide || H.insertBefore(L, d), o._hideClone(), Z({
1010
+ sortable: o,
1011
+ name: "clone"
1012
+ }));
1013
+ }), !t && j(d, i.dragClass, !0), t ? (it = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (x(document, "mouseup", o._onDrop), x(document, "touchend", o._onDrop), x(document, "touchcancel", o._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(o, r, d)), I(document, "drop", o), b(d, "transform", "translateZ(0)")), Ce = !0, o._dragStartId = nt(o._dragStarted.bind(o, t, e)), I(document, "selectstart", o), Re = !0, window.getSelection().removeAllRanges(), je && b(document.body, "user-select", "none");
1014
+ },
1015
+ // Returns true - if no further action is needed (either inserted or another condition)
1016
+ _onDragOver: function(e) {
1017
+ var t = this.el, o = e.target, r, i, a, s = this.options, l = s.group, c = w.active, p = Ke === l, f = s.sort, v = W || c, A, E = this, _ = !1;
1018
+ if (_t) return;
1019
+ function R(ae, Ge) {
1020
+ J(ae, E, ue({
1021
+ evt: e,
1022
+ isOwner: p,
1023
+ axis: A ? "vertical" : "horizontal",
1024
+ revert: a,
1025
+ dragRect: r,
1026
+ targetRect: i,
1027
+ canSort: f,
1028
+ fromSortable: v,
1029
+ target: o,
1030
+ completed: T,
1031
+ onMove: function(Te, ze) {
1032
+ return Ze(H, t, d, r, Te, $(Te), e, ze);
1033
+ },
1034
+ changed: O
1035
+ }, Ge));
1036
+ }
1037
+ function Y() {
1038
+ R("dragOverAnimationCapture"), E.captureAnimationState(), E !== v && v.captureAnimationState();
1039
+ }
1040
+ function T(ae) {
1041
+ return R("dragOverCompleted", {
1042
+ insertion: ae
1043
+ }), ae && (p ? c._hideClone() : c._showClone(E), E !== v && (j(d, W ? W.options.ghostClass : c.options.ghostClass, !1), j(d, s.ghostClass, !0)), W !== E && E !== w.active ? W = E : E === w.active && W && (W = null), v === E && (E._ignoreWhileAnimating = o), E.animateAll(function() {
1044
+ R("dragOverAnimationComplete"), E._ignoreWhileAnimating = null;
1045
+ }), E !== v && (v.animateAll(), v._ignoreWhileAnimating = null)), (o === d && !d.animated || o === t && !o.animated) && (De = null), !s.dragoverBubble && !e.rootEl && o !== document && (d.parentNode[K]._isOutsideThisEl(e.target), !ae && ye(e)), !s.dragoverBubble && e.stopPropagation && e.stopPropagation(), _ = !0;
1046
+ }
1047
+ function O() {
1048
+ ne = B(d), pe = B(d, s.draggable), Z({
1049
+ sortable: E,
1050
+ name: "change",
1051
+ toEl: t,
1052
+ newIndex: ne,
1053
+ newDraggableIndex: pe,
1054
+ originalEvent: e
1055
+ });
1056
+ }
1057
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = ee(o, s.draggable, t, !0), R("dragOver"), w.eventCanceled) return _;
1058
+ if (d.contains(e.target) || o.animated && o.animatingX && o.animatingY || E._ignoreWhileAnimating === o)
1059
+ return T(!1);
1060
+ if (it = !1, c && !s.disabled && (p ? f || (a = k !== H) : W === this || (this.lastPutMode = Ke.checkPull(this, c, d, e)) && l.checkPut(this, c, d, e))) {
1061
+ if (A = this._getDirection(e, o) === "vertical", r = $(d), R("dragOverValid"), w.eventCanceled) return _;
1062
+ if (a)
1063
+ return k = H, Y(), this._hideClone(), R("revert"), w.eventCanceled || (we ? H.insertBefore(d, we) : H.appendChild(d)), T(!0);
1064
+ var X = Tt(t, s.draggable);
1065
+ if (!X || ro(e, A, this) && !X.animated) {
1066
+ if (X === d)
1067
+ return T(!1);
1068
+ if (X && t === e.target && (o = X), o && (i = $(o)), Ze(H, t, d, r, o, i, e, !!o) !== !1)
1069
+ return Y(), X && X.nextSibling ? t.insertBefore(d, X.nextSibling) : t.appendChild(d), k = t, O(), T(!0);
1070
+ } else if (X && oo(e, A, this)) {
1071
+ var ie = Oe(t, 0, s, !0);
1072
+ if (ie === d)
1073
+ return T(!1);
1074
+ if (o = ie, i = $(o), Ze(H, t, d, r, o, i, e, !1) !== !1)
1075
+ return Y(), t.insertBefore(d, ie), k = t, O(), T(!0);
1076
+ } else if (o.parentNode === t) {
1077
+ i = $(o);
1078
+ var h = 0, u, m = d.parentNode !== t, g = !Jn(d.animated && d.toRect || r, o.animated && o.toRect || i, A), C = A ? "top" : "left", y = kt(o, "top", "top") || kt(d, "top", "top"), P = y ? y.scrollTop : void 0;
1079
+ De !== o && (u = i[C], Xe = !1, qe = !g && s.invertSwap || m), h = io(e, o, i, A, g ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, qe, De === o);
1080
+ var N;
1081
+ if (h !== 0) {
1082
+ var F = B(d);
1083
+ do
1084
+ F -= h, N = k.children[F];
1085
+ while (N && (b(N, "display") === "none" || N === D));
1086
+ }
1087
+ if (h === 0 || N === o)
1088
+ return T(!1);
1089
+ De = o, Be = h;
1090
+ var G = o.nextElementSibling, V = !1;
1091
+ V = h === 1;
1092
+ var be = Ze(H, t, d, r, o, i, e, V);
1093
+ if (be !== !1)
1094
+ return (be === 1 || be === -1) && (V = be === 1), _t = !0, setTimeout(no, 30), Y(), V && !G ? t.appendChild(d) : o.parentNode.insertBefore(d, V ? G : o), y && nn(y, 0, P - y.scrollTop), k = d.parentNode, u !== void 0 && !qe && (tt = Math.abs(u - $(o)[C])), O(), T(!0);
1095
+ }
1096
+ if (t.contains(d))
1097
+ return T(!1);
1098
+ }
1099
+ return !1;
1100
+ },
1101
+ _ignoreWhileAnimating: null,
1102
+ _offMoveEvents: function() {
1103
+ x(document, "mousemove", this._onTouchMove), x(document, "touchmove", this._onTouchMove), x(document, "pointermove", this._onTouchMove), x(document, "dragover", ye), x(document, "mousemove", ye), x(document, "touchmove", ye);
1104
+ },
1105
+ _offUpEvents: function() {
1106
+ var e = this.el.ownerDocument;
1107
+ x(e, "mouseup", this._onDrop), x(e, "touchend", this._onDrop), x(e, "pointerup", this._onDrop), x(e, "pointercancel", this._onDrop), x(e, "touchcancel", this._onDrop), x(document, "selectstart", this);
1108
+ },
1109
+ _onDrop: function(e) {
1110
+ var t = this.el, o = this.options;
1111
+ if (ne = B(d), pe = B(d, o.draggable), J("drop", this, {
1112
+ evt: e
1113
+ }), k = d && d.parentNode, ne = B(d), pe = B(d, o.draggable), w.eventCanceled) {
1114
+ this._nulling();
1115
+ return;
1116
+ }
1117
+ Ce = !1, qe = !1, Xe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Ct(this.cloneId), Ct(this._dragStartId), this.nativeDraggable && (x(document, "drop", this), x(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), je && b(document.body, "user-select", ""), b(d, "transform", ""), e && (Re && (e.cancelable && e.preventDefault(), !o.dropBubble && e.stopPropagation()), D && D.parentNode && D.parentNode.removeChild(D), (H === k || W && W.lastPutMode !== "clone") && L && L.parentNode && L.parentNode.removeChild(L), d && (this.nativeDraggable && x(d, "dragend", this), bt(d), d.style["will-change"] = "", Re && !Ce && j(d, W ? W.options.ghostClass : this.options.ghostClass, !1), j(d, this.options.chosenClass, !1), Z({
1118
+ sortable: this,
1119
+ name: "unchoose",
1120
+ toEl: k,
1121
+ newIndex: null,
1122
+ newDraggableIndex: null,
1123
+ originalEvent: e
1124
+ }), H !== k ? (ne >= 0 && (Z({
1125
+ rootEl: k,
1126
+ name: "add",
1127
+ toEl: k,
1128
+ fromEl: H,
1129
+ originalEvent: e
1130
+ }), Z({
1131
+ sortable: this,
1132
+ name: "remove",
1133
+ toEl: k,
1134
+ originalEvent: e
1135
+ }), Z({
1136
+ rootEl: k,
1137
+ name: "sort",
1138
+ toEl: k,
1139
+ fromEl: H,
1140
+ originalEvent: e
1141
+ }), Z({
1142
+ sortable: this,
1143
+ name: "sort",
1144
+ toEl: k,
1145
+ originalEvent: e
1146
+ })), W && W.save()) : ne !== xe && ne >= 0 && (Z({
1147
+ sortable: this,
1148
+ name: "update",
1149
+ toEl: k,
1150
+ originalEvent: e
1151
+ }), Z({
1152
+ sortable: this,
1153
+ name: "sort",
1154
+ toEl: k,
1155
+ originalEvent: e
1156
+ })), w.active && ((ne == null || ne === -1) && (ne = xe, pe = ke), Z({
1157
+ sortable: this,
1158
+ name: "end",
1159
+ toEl: k,
1160
+ originalEvent: e
1161
+ }), this.save()))), this._nulling();
1162
+ },
1163
+ _nulling: function() {
1164
+ J("nulling", this), H = d = k = D = we = L = et = he = ve = se = Re = ne = pe = xe = ke = De = Be = W = Ke = w.dragged = w.ghost = w.clone = w.active = null;
1165
+ var e = this.el;
1166
+ st.forEach(function(t) {
1167
+ e.contains(t) && (t.checked = !0);
1168
+ }), st.length = ht = gt = 0;
1169
+ },
1170
+ handleEvent: function(e) {
1171
+ switch (e.type) {
1172
+ case "drop":
1173
+ case "dragend":
1174
+ this._onDrop(e);
1175
+ break;
1176
+ case "dragenter":
1177
+ case "dragover":
1178
+ d && (this._onDragOver(e), to(e));
1179
+ break;
1180
+ case "selectstart":
1181
+ e.preventDefault();
1182
+ break;
1183
+ }
1184
+ },
1185
+ /**
1186
+ * Serializes the item into an array of string.
1187
+ * @returns {String[]}
1188
+ */
1189
+ toArray: function() {
1190
+ for (var e = [], t, o = this.el.children, r = 0, i = o.length, a = this.options; r < i; r++)
1191
+ t = o[r], ee(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || so(t));
1192
+ return e;
1193
+ },
1194
+ /**
1195
+ * Sorts the elements according to the array.
1196
+ * @param {String[]} order order of the items
1197
+ */
1198
+ sort: function(e, t) {
1199
+ var o = {}, r = this.el;
1200
+ this.toArray().forEach(function(i, a) {
1201
+ var s = r.children[a];
1202
+ ee(s, this.options.draggable, r, !1) && (o[i] = s);
1203
+ }, this), t && this.captureAnimationState(), e.forEach(function(i) {
1204
+ o[i] && (r.removeChild(o[i]), r.appendChild(o[i]));
1205
+ }), t && this.animateAll();
1206
+ },
1207
+ /**
1208
+ * Save the current sorting
1209
+ */
1210
+ save: function() {
1211
+ var e = this.options.store;
1212
+ e && e.set && e.set(this);
1213
+ },
1214
+ /**
1215
+ * 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.
1216
+ * @param {HTMLElement} el
1217
+ * @param {String} [selector] default: `options.draggable`
1218
+ * @returns {HTMLElement|null}
1219
+ */
1220
+ closest: function(e, t) {
1221
+ return ee(e, t || this.options.draggable, this.el, !1);
1222
+ },
1223
+ /**
1224
+ * Set/get option
1225
+ * @param {string} name
1226
+ * @param {*} [value]
1227
+ * @returns {*}
1228
+ */
1229
+ option: function(e, t) {
1230
+ var o = this.options;
1231
+ if (t === void 0)
1232
+ return o[e];
1233
+ var r = Ue.modifyOption(this, e, t);
1234
+ typeof r < "u" ? o[e] = r : o[e] = t, e === "group" && sn(o);
1235
+ },
1236
+ /**
1237
+ * Destroy
1238
+ */
1239
+ destroy: function() {
1240
+ J("destroy", this);
1241
+ var e = this.el;
1242
+ e[K] = null, x(e, "mousedown", this._onTapStart), x(e, "touchstart", this._onTapStart), x(e, "pointerdown", this._onTapStart), this.nativeDraggable && (x(e, "dragover", this), x(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(t) {
1243
+ t.removeAttribute("draggable");
1244
+ }), this._onDrop(), this._disableDelayedDragEvents(), at.splice(at.indexOf(this.el), 1), this.el = e = null;
1245
+ },
1246
+ _hideClone: function() {
1247
+ if (!he) {
1248
+ if (J("hideClone", this), w.eventCanceled) return;
1249
+ b(L, "display", "none"), this.options.removeCloneOnHide && L.parentNode && L.parentNode.removeChild(L), he = !0;
1250
+ }
1251
+ },
1252
+ _showClone: function(e) {
1253
+ if (e.lastPutMode !== "clone") {
1254
+ this._hideClone();
1255
+ return;
1256
+ }
1257
+ if (he) {
1258
+ if (J("showClone", this), w.eventCanceled) return;
1259
+ d.parentNode == H && !this.options.group.revertClone ? H.insertBefore(L, d) : we ? H.insertBefore(L, we) : H.appendChild(L), this.options.group.revertClone && this.animate(d, L), b(L, "display", ""), he = !1;
1260
+ }
1261
+ }
1262
+ };
1263
+ function to(n) {
1264
+ n.dataTransfer && (n.dataTransfer.dropEffect = "move"), n.cancelable && n.preventDefault();
1265
+ }
1266
+ function Ze(n, e, t, o, r, i, a, s) {
1267
+ var l, c = n[K], p = c.options.onMove, f;
1268
+ return window.CustomEvent && !fe && !Ye ? l = new CustomEvent("move", {
1269
+ bubbles: !0,
1270
+ cancelable: !0
1271
+ }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = e, l.from = n, l.dragged = t, l.draggedRect = o, l.related = r || e, l.relatedRect = i || $(e), l.willInsertAfter = s, l.originalEvent = a, n.dispatchEvent(l), p && (f = p.call(c, l, a)), f;
1272
+ }
1273
+ function bt(n) {
1274
+ n.draggable = !1;
1275
+ }
1276
+ function no() {
1277
+ _t = !1;
1278
+ }
1279
+ function oo(n, e, t) {
1280
+ var o = $(Oe(t.el, 0, t.options, !0)), r = on(t.el, t.options, D), i = 10;
1281
+ return e ? n.clientX < r.left - i || n.clientY < o.top && n.clientX < o.right : n.clientY < r.top - i || n.clientY < o.bottom && n.clientX < o.left;
1282
+ }
1283
+ function ro(n, e, t) {
1284
+ var o = $(Tt(t.el, t.options.draggable)), r = on(t.el, t.options, D), i = 10;
1285
+ return e ? n.clientX > r.right + i || n.clientY > o.bottom && n.clientX > o.left : n.clientY > r.bottom + i || n.clientX > o.right && n.clientY > o.top;
1286
+ }
1287
+ function io(n, e, t, o, r, i, a, s) {
1288
+ var l = o ? n.clientY : n.clientX, c = o ? t.height : t.width, p = o ? t.top : t.left, f = o ? t.bottom : t.right, v = !1;
1289
+ if (!a) {
1290
+ if (s && tt < c * r) {
1291
+ if (!Xe && (Be === 1 ? l > p + c * i / 2 : l < f - c * i / 2) && (Xe = !0), Xe)
1292
+ v = !0;
1293
+ else if (Be === 1 ? l < p + tt : l > f - tt)
1294
+ return -Be;
1295
+ } else if (l > p + c * (1 - r) / 2 && l < f - c * (1 - r) / 2)
1296
+ return ao(e);
1297
+ }
1298
+ return v = v || a, v && (l < p + c * i / 2 || l > f - c * i / 2) ? l > p + c / 2 ? 1 : -1 : 0;
1299
+ }
1300
+ function ao(n) {
1301
+ return B(d) < B(n) ? 1 : -1;
1302
+ }
1303
+ function so(n) {
1304
+ for (var e = n.tagName + n.className + n.src + n.href + n.textContent, t = e.length, o = 0; t--; )
1305
+ o += e.charCodeAt(t);
1306
+ return o.toString(36);
1307
+ }
1308
+ function lo(n) {
1309
+ st.length = 0;
1310
+ for (var e = n.getElementsByTagName("input"), t = e.length; t--; ) {
1311
+ var o = e[t];
1312
+ o.checked && st.push(o);
1313
+ }
1314
+ }
1315
+ function nt(n) {
1316
+ return setTimeout(n, 0);
1317
+ }
1318
+ function Ct(n) {
1319
+ return clearTimeout(n);
1320
+ }
1321
+ ut && I(document, "touchmove", function(n) {
1322
+ (w.active || Ce) && n.cancelable && n.preventDefault();
183
1323
  });
184
- var J = { exports: {} }, K = { exports: {} };
1324
+ w.utils = {
1325
+ on: I,
1326
+ off: x,
1327
+ css: b,
1328
+ find: en,
1329
+ is: function(e, t) {
1330
+ return !!ee(e, t, e, !1);
1331
+ },
1332
+ extend: Gn,
1333
+ throttle: tn,
1334
+ closest: ee,
1335
+ toggleClass: j,
1336
+ clone: At,
1337
+ index: B,
1338
+ nextTick: nt,
1339
+ cancelNextTick: Ct,
1340
+ detectDirection: an,
1341
+ getChild: Oe,
1342
+ expando: K
1343
+ };
1344
+ w.get = function(n) {
1345
+ return n[K];
1346
+ };
1347
+ w.mount = function() {
1348
+ for (var n = arguments.length, e = new Array(n), t = 0; t < n; t++)
1349
+ e[t] = arguments[t];
1350
+ e[0].constructor === Array && (e = e[0]), e.forEach(function(o) {
1351
+ if (!o.prototype || !o.prototype.constructor)
1352
+ throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
1353
+ o.utils && (w.utils = ue(ue({}, w.utils), o.utils)), Ue.mount(o);
1354
+ });
1355
+ };
1356
+ w.create = function(n, e) {
1357
+ return new w(n, e);
1358
+ };
1359
+ w.version = Yn;
1360
+ var U = [], He, xt, Ot = !1, vt, yt, lt, Le;
1361
+ function co() {
1362
+ function n() {
1363
+ this.defaults = {
1364
+ scroll: !0,
1365
+ forceAutoScrollFallback: !1,
1366
+ scrollSensitivity: 30,
1367
+ scrollSpeed: 10,
1368
+ bubbleScroll: !0
1369
+ };
1370
+ for (var e in this)
1371
+ e.charAt(0) === "_" && typeof this[e] == "function" && (this[e] = this[e].bind(this));
1372
+ }
1373
+ return n.prototype = {
1374
+ dragStarted: function(t) {
1375
+ var o = t.originalEvent;
1376
+ this.sortable.nativeDraggable ? I(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? I(document, "pointermove", this._handleFallbackAutoScroll) : o.touches ? I(document, "touchmove", this._handleFallbackAutoScroll) : I(document, "mousemove", this._handleFallbackAutoScroll);
1377
+ },
1378
+ dragOverCompleted: function(t) {
1379
+ var o = t.originalEvent;
1380
+ !this.options.dragOverBubble && !o.rootEl && this._handleAutoScroll(o);
1381
+ },
1382
+ drop: function() {
1383
+ this.sortable.nativeDraggable ? x(document, "dragover", this._handleAutoScroll) : (x(document, "pointermove", this._handleFallbackAutoScroll), x(document, "touchmove", this._handleFallbackAutoScroll), x(document, "mousemove", this._handleFallbackAutoScroll)), zt(), ot(), zn();
1384
+ },
1385
+ nulling: function() {
1386
+ lt = xt = He = Ot = Le = vt = yt = null, U.length = 0;
1387
+ },
1388
+ _handleFallbackAutoScroll: function(t) {
1389
+ this._handleAutoScroll(t, !0);
1390
+ },
1391
+ _handleAutoScroll: function(t, o) {
1392
+ var r = this, i = (t.touches ? t.touches[0] : t).clientX, a = (t.touches ? t.touches[0] : t).clientY, s = document.elementFromPoint(i, a);
1393
+ if (lt = t, o || this.options.forceAutoScrollFallback || Ye || fe || je) {
1394
+ wt(t, this.options, s, o);
1395
+ var l = me(s, !0);
1396
+ Ot && (!Le || i !== vt || a !== yt) && (Le && zt(), Le = setInterval(function() {
1397
+ var c = me(document.elementFromPoint(i, a), !0);
1398
+ c !== l && (l = c, ot()), wt(t, r.options, c, o);
1399
+ }, 10), vt = i, yt = a);
1400
+ } else {
1401
+ if (!this.options.bubbleScroll || me(s, !0) === ce()) {
1402
+ ot();
1403
+ return;
1404
+ }
1405
+ wt(t, this.options, me(s, !1), !1);
1406
+ }
1407
+ }
1408
+ }, re(n, {
1409
+ pluginName: "scroll",
1410
+ initializeByDefault: !0
1411
+ });
1412
+ }
1413
+ function ot() {
1414
+ U.forEach(function(n) {
1415
+ clearInterval(n.pid);
1416
+ }), U = [];
1417
+ }
1418
+ function zt() {
1419
+ clearInterval(Le);
1420
+ }
1421
+ var wt = tn(function(n, e, t, o) {
1422
+ if (e.scroll) {
1423
+ var r = (n.touches ? n.touches[0] : n).clientX, i = (n.touches ? n.touches[0] : n).clientY, a = e.scrollSensitivity, s = e.scrollSpeed, l = ce(), c = !1, p;
1424
+ xt !== t && (xt = t, ot(), He = e.scroll, p = e.scrollFn, He === !0 && (He = me(t, !0)));
1425
+ var f = 0, v = He;
1426
+ do {
1427
+ var A = v, E = $(A), _ = E.top, R = E.bottom, Y = E.left, T = E.right, O = E.width, X = E.height, ie = void 0, h = void 0, u = A.scrollWidth, m = A.scrollHeight, g = b(A), C = A.scrollLeft, y = A.scrollTop;
1428
+ A === l ? (ie = O < u && (g.overflowX === "auto" || g.overflowX === "scroll" || g.overflowX === "visible"), h = X < m && (g.overflowY === "auto" || g.overflowY === "scroll" || g.overflowY === "visible")) : (ie = O < u && (g.overflowX === "auto" || g.overflowX === "scroll"), h = X < m && (g.overflowY === "auto" || g.overflowY === "scroll"));
1429
+ var P = ie && (Math.abs(T - r) <= a && C + O < u) - (Math.abs(Y - r) <= a && !!C), N = h && (Math.abs(R - i) <= a && y + X < m) - (Math.abs(_ - i) <= a && !!y);
1430
+ if (!U[f])
1431
+ for (var F = 0; F <= f; F++)
1432
+ U[F] || (U[F] = {});
1433
+ (U[f].vx != P || U[f].vy != N || U[f].el !== A) && (U[f].el = A, U[f].vx = P, U[f].vy = N, clearInterval(U[f].pid), (P != 0 || N != 0) && (c = !0, U[f].pid = setInterval((function() {
1434
+ o && this.layer === 0 && w.active._onTouchMove(lt);
1435
+ var G = U[this.layer].vy ? U[this.layer].vy * s : 0, V = U[this.layer].vx ? U[this.layer].vx * s : 0;
1436
+ typeof p == "function" && p.call(w.dragged.parentNode[K], V, G, n, lt, U[this.layer].el) !== "continue" || nn(U[this.layer].el, V, G);
1437
+ }).bind({
1438
+ layer: f
1439
+ }), 24))), f++;
1440
+ } while (e.bubbleScroll && v !== l && (v = me(v, !1)));
1441
+ Ot = c;
1442
+ }
1443
+ }, 30), un = function(e) {
1444
+ var t = e.originalEvent, o = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, s = e.hideGhostForTarget, l = e.unhideGhostForTarget;
1445
+ if (t) {
1446
+ var c = o || i;
1447
+ s();
1448
+ var p = t.changedTouches && t.changedTouches.length ? t.changedTouches[0] : t, f = document.elementFromPoint(p.clientX, p.clientY);
1449
+ l(), c && !c.el.contains(f) && (a("spill"), this.onSpill({
1450
+ dragEl: r,
1451
+ putSortable: o
1452
+ }));
1453
+ }
1454
+ };
1455
+ function Pt() {
1456
+ }
1457
+ Pt.prototype = {
1458
+ startIndex: null,
1459
+ dragStart: function(e) {
1460
+ var t = e.oldDraggableIndex;
1461
+ this.startIndex = t;
1462
+ },
1463
+ onSpill: function(e) {
1464
+ var t = e.dragEl, o = e.putSortable;
1465
+ this.sortable.captureAnimationState(), o && o.captureAnimationState();
1466
+ var r = Oe(this.sortable.el, this.startIndex, this.options);
1467
+ r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), o && o.animateAll();
1468
+ },
1469
+ drop: un
1470
+ };
1471
+ re(Pt, {
1472
+ pluginName: "revertOnSpill"
1473
+ });
1474
+ function Nt() {
1475
+ }
1476
+ Nt.prototype = {
1477
+ onSpill: function(e) {
1478
+ var t = e.dragEl, o = e.putSortable, r = o || this.sortable;
1479
+ r.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), r.animateAll();
1480
+ },
1481
+ drop: un
1482
+ };
1483
+ re(Nt, {
1484
+ pluginName: "removeOnSpill"
1485
+ });
1486
+ var oe;
1487
+ function uo() {
1488
+ function n() {
1489
+ this.defaults = {
1490
+ swapClass: "sortable-swap-highlight"
1491
+ };
1492
+ }
1493
+ return n.prototype = {
1494
+ dragStart: function(t) {
1495
+ var o = t.dragEl;
1496
+ oe = o;
1497
+ },
1498
+ dragOverValid: function(t) {
1499
+ var o = t.completed, r = t.target, i = t.onMove, a = t.activeSortable, s = t.changed, l = t.cancel;
1500
+ if (a.options.swap) {
1501
+ var c = this.sortable.el, p = this.options;
1502
+ if (r && r !== c) {
1503
+ var f = oe;
1504
+ i(r) !== !1 ? (j(r, p.swapClass, !0), oe = r) : oe = null, f && f !== oe && j(f, p.swapClass, !1);
1505
+ }
1506
+ s(), o(!0), l();
1507
+ }
1508
+ },
1509
+ drop: function(t) {
1510
+ var o = t.activeSortable, r = t.putSortable, i = t.dragEl, a = r || this.sortable, s = this.options;
1511
+ oe && j(oe, s.swapClass, !1), oe && (s.swap || r && r.options.swap) && i !== oe && (a.captureAnimationState(), a !== o && o.captureAnimationState(), fo(i, oe), a.animateAll(), a !== o && o.animateAll());
1512
+ },
1513
+ nulling: function() {
1514
+ oe = null;
1515
+ }
1516
+ }, re(n, {
1517
+ pluginName: "swap",
1518
+ eventProperties: function() {
1519
+ return {
1520
+ swapItem: oe
1521
+ };
1522
+ }
1523
+ });
1524
+ }
1525
+ function fo(n, e) {
1526
+ var t = n.parentNode, o = e.parentNode, r, i;
1527
+ !t || !o || t.isEqualNode(e) || o.isEqualNode(n) || (r = B(n), i = B(e), t.isEqualNode(o) && r < i && i++, t.insertBefore(e, t.children[r]), o.insertBefore(n, o.children[i]));
1528
+ }
1529
+ var S = [], te = [], Ae, le, Pe = !1, Q = !1, _e = !1, M, Ne, Je;
1530
+ function po() {
1531
+ function n(e) {
1532
+ for (var t in this)
1533
+ t.charAt(0) === "_" && typeof this[t] == "function" && (this[t] = this[t].bind(this));
1534
+ e.options.avoidImplicitDeselect || (e.options.supportPointer ? I(document, "pointerup", this._deselectMultiDrag) : (I(document, "mouseup", this._deselectMultiDrag), I(document, "touchend", this._deselectMultiDrag))), I(document, "keydown", this._checkKeyDown), I(document, "keyup", this._checkKeyUp), this.defaults = {
1535
+ selectedClass: "sortable-selected",
1536
+ multiDragKey: null,
1537
+ avoidImplicitDeselect: !1,
1538
+ setData: function(r, i) {
1539
+ var a = "";
1540
+ S.length && le === e ? S.forEach(function(s, l) {
1541
+ a += (l ? ", " : "") + s.textContent;
1542
+ }) : a = i.textContent, r.setData("Text", a);
1543
+ }
1544
+ };
1545
+ }
1546
+ return n.prototype = {
1547
+ multiDragKeyDown: !1,
1548
+ isMultiDrag: !1,
1549
+ delayStartGlobal: function(t) {
1550
+ var o = t.dragEl;
1551
+ M = o;
1552
+ },
1553
+ delayEnded: function() {
1554
+ this.isMultiDrag = ~S.indexOf(M);
1555
+ },
1556
+ setupClone: function(t) {
1557
+ var o = t.sortable, r = t.cancel;
1558
+ if (this.isMultiDrag) {
1559
+ for (var i = 0; i < S.length; i++)
1560
+ te.push(At(S[i])), te[i].sortableIndex = S[i].sortableIndex, te[i].draggable = !1, te[i].style["will-change"] = "", j(te[i], this.options.selectedClass, !1), S[i] === M && j(te[i], this.options.chosenClass, !1);
1561
+ o._hideClone(), r();
1562
+ }
1563
+ },
1564
+ clone: function(t) {
1565
+ var o = t.sortable, r = t.rootEl, i = t.dispatchSortableEvent, a = t.cancel;
1566
+ this.isMultiDrag && (this.options.removeCloneOnHide || S.length && le === o && (Wt(!0, r), i("clone"), a()));
1567
+ },
1568
+ showClone: function(t) {
1569
+ var o = t.cloneNowShown, r = t.rootEl, i = t.cancel;
1570
+ this.isMultiDrag && (Wt(!1, r), te.forEach(function(a) {
1571
+ b(a, "display", "");
1572
+ }), o(), Je = !1, i());
1573
+ },
1574
+ hideClone: function(t) {
1575
+ var o = this;
1576
+ t.sortable;
1577
+ var r = t.cloneNowHidden, i = t.cancel;
1578
+ this.isMultiDrag && (te.forEach(function(a) {
1579
+ b(a, "display", "none"), o.options.removeCloneOnHide && a.parentNode && a.parentNode.removeChild(a);
1580
+ }), r(), Je = !0, i());
1581
+ },
1582
+ dragStartGlobal: function(t) {
1583
+ t.sortable, !this.isMultiDrag && le && le.multiDrag._deselectMultiDrag(), S.forEach(function(o) {
1584
+ o.sortableIndex = B(o);
1585
+ }), S = S.sort(function(o, r) {
1586
+ return o.sortableIndex - r.sortableIndex;
1587
+ }), _e = !0;
1588
+ },
1589
+ dragStarted: function(t) {
1590
+ var o = this, r = t.sortable;
1591
+ if (this.isMultiDrag) {
1592
+ if (this.options.sort && (r.captureAnimationState(), this.options.animation)) {
1593
+ S.forEach(function(a) {
1594
+ a !== M && b(a, "position", "absolute");
1595
+ });
1596
+ var i = $(M, !1, !0, !0);
1597
+ S.forEach(function(a) {
1598
+ a !== M && Xt(a, i);
1599
+ }), Q = !0, Pe = !0;
1600
+ }
1601
+ r.animateAll(function() {
1602
+ Q = !1, Pe = !1, o.options.animation && S.forEach(function(a) {
1603
+ ft(a);
1604
+ }), o.options.sort && Qe();
1605
+ });
1606
+ }
1607
+ },
1608
+ dragOver: function(t) {
1609
+ var o = t.target, r = t.completed, i = t.cancel;
1610
+ Q && ~S.indexOf(o) && (r(!1), i());
1611
+ },
1612
+ revert: function(t) {
1613
+ var o = t.fromSortable, r = t.rootEl, i = t.sortable, a = t.dragRect;
1614
+ S.length > 1 && (S.forEach(function(s) {
1615
+ i.addAnimationState({
1616
+ target: s,
1617
+ rect: Q ? $(s) : a
1618
+ }), ft(s), s.fromRect = a, o.removeAnimationState(s);
1619
+ }), Q = !1, ho(!this.options.removeCloneOnHide, r));
1620
+ },
1621
+ dragOverCompleted: function(t) {
1622
+ var o = t.sortable, r = t.isOwner, i = t.insertion, a = t.activeSortable, s = t.parentEl, l = t.putSortable, c = this.options;
1623
+ if (i) {
1624
+ if (r && a._hideClone(), Pe = !1, c.animation && S.length > 1 && (Q || !r && !a.options.sort && !l)) {
1625
+ var p = $(M, !1, !0, !0);
1626
+ S.forEach(function(v) {
1627
+ v !== M && (Xt(v, p), s.appendChild(v));
1628
+ }), Q = !0;
1629
+ }
1630
+ if (!r)
1631
+ if (Q || Qe(), S.length > 1) {
1632
+ var f = Je;
1633
+ a._showClone(o), a.options.animation && !Je && f && te.forEach(function(v) {
1634
+ a.addAnimationState({
1635
+ target: v,
1636
+ rect: Ne
1637
+ }), v.fromRect = Ne, v.thisAnimationDuration = null;
1638
+ });
1639
+ } else
1640
+ a._showClone(o);
1641
+ }
1642
+ },
1643
+ dragOverAnimationCapture: function(t) {
1644
+ var o = t.dragRect, r = t.isOwner, i = t.activeSortable;
1645
+ if (S.forEach(function(s) {
1646
+ s.thisAnimationDuration = null;
1647
+ }), i.options.animation && !r && i.multiDrag.isMultiDrag) {
1648
+ Ne = re({}, o);
1649
+ var a = Ee(M, !0);
1650
+ Ne.top -= a.f, Ne.left -= a.e;
1651
+ }
1652
+ },
1653
+ dragOverAnimationComplete: function() {
1654
+ Q && (Q = !1, Qe());
1655
+ },
1656
+ drop: function(t) {
1657
+ var o = t.originalEvent, r = t.rootEl, i = t.parentEl, a = t.sortable, s = t.dispatchSortableEvent, l = t.oldIndex, c = t.putSortable, p = c || this.sortable;
1658
+ if (o) {
1659
+ var f = this.options, v = i.children;
1660
+ if (!_e)
1661
+ if (f.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(), j(M, f.selectedClass, !~S.indexOf(M)), ~S.indexOf(M))
1662
+ S.splice(S.indexOf(M), 1), Ae = null, $e({
1663
+ sortable: a,
1664
+ rootEl: r,
1665
+ name: "deselect",
1666
+ targetEl: M,
1667
+ originalEvent: o
1668
+ });
1669
+ else {
1670
+ if (S.push(M), $e({
1671
+ sortable: a,
1672
+ rootEl: r,
1673
+ name: "select",
1674
+ targetEl: M,
1675
+ originalEvent: o
1676
+ }), o.shiftKey && Ae && a.el.contains(Ae)) {
1677
+ var A = B(Ae), E = B(M);
1678
+ ~A && ~E && A !== E && function() {
1679
+ var T, O;
1680
+ E > A ? (O = A, T = E) : (O = E, T = A + 1);
1681
+ for (var X = f.filter; O < T; O++)
1682
+ if (!~S.indexOf(v[O]) && ee(v[O], f.draggable, i, !1)) {
1683
+ var ie = X && (typeof X == "function" ? X.call(a, o, v[O], a) : X.split(",").some(function(h) {
1684
+ return ee(v[O], h.trim(), i, !1);
1685
+ }));
1686
+ ie || (j(v[O], f.selectedClass, !0), S.push(v[O]), $e({
1687
+ sortable: a,
1688
+ rootEl: r,
1689
+ name: "select",
1690
+ targetEl: v[O],
1691
+ originalEvent: o
1692
+ }));
1693
+ }
1694
+ }();
1695
+ } else
1696
+ Ae = M;
1697
+ le = p;
1698
+ }
1699
+ if (_e && this.isMultiDrag) {
1700
+ if (Q = !1, (i[K].options.sort || i !== r) && S.length > 1) {
1701
+ var _ = $(M), R = B(M, ":not(." + this.options.selectedClass + ")");
1702
+ if (!Pe && f.animation && (M.thisAnimationDuration = null), p.captureAnimationState(), !Pe && (f.animation && (M.fromRect = _, S.forEach(function(T) {
1703
+ if (T.thisAnimationDuration = null, T !== M) {
1704
+ var O = Q ? $(T) : _;
1705
+ T.fromRect = O, p.addAnimationState({
1706
+ target: T,
1707
+ rect: O
1708
+ });
1709
+ }
1710
+ })), Qe(), S.forEach(function(T) {
1711
+ v[R] ? i.insertBefore(T, v[R]) : i.appendChild(T), R++;
1712
+ }), l === B(M))) {
1713
+ var Y = !1;
1714
+ S.forEach(function(T) {
1715
+ if (T.sortableIndex !== B(T)) {
1716
+ Y = !0;
1717
+ return;
1718
+ }
1719
+ }), Y && (s("update"), s("sort"));
1720
+ }
1721
+ S.forEach(function(T) {
1722
+ ft(T);
1723
+ }), p.animateAll();
1724
+ }
1725
+ le = p;
1726
+ }
1727
+ (r === i || c && c.lastPutMode !== "clone") && te.forEach(function(T) {
1728
+ T.parentNode && T.parentNode.removeChild(T);
1729
+ });
1730
+ }
1731
+ },
1732
+ nullingGlobal: function() {
1733
+ this.isMultiDrag = _e = !1, te.length = 0;
1734
+ },
1735
+ destroyGlobal: function() {
1736
+ this._deselectMultiDrag(), x(document, "pointerup", this._deselectMultiDrag), x(document, "mouseup", this._deselectMultiDrag), x(document, "touchend", this._deselectMultiDrag), x(document, "keydown", this._checkKeyDown), x(document, "keyup", this._checkKeyUp);
1737
+ },
1738
+ _deselectMultiDrag: function(t) {
1739
+ if (!(typeof _e < "u" && _e) && le === this.sortable && !(t && ee(t.target, this.options.draggable, this.sortable.el, !1)) && !(t && t.button !== 0))
1740
+ for (; S.length; ) {
1741
+ var o = S[0];
1742
+ j(o, this.options.selectedClass, !1), S.shift(), $e({
1743
+ sortable: this.sortable,
1744
+ rootEl: this.sortable.el,
1745
+ name: "deselect",
1746
+ targetEl: o,
1747
+ originalEvent: t
1748
+ });
1749
+ }
1750
+ },
1751
+ _checkKeyDown: function(t) {
1752
+ t.key === this.options.multiDragKey && (this.multiDragKeyDown = !0);
1753
+ },
1754
+ _checkKeyUp: function(t) {
1755
+ t.key === this.options.multiDragKey && (this.multiDragKeyDown = !1);
1756
+ }
1757
+ }, re(n, {
1758
+ // Static methods & properties
1759
+ pluginName: "multiDrag",
1760
+ utils: {
1761
+ /**
1762
+ * Selects the provided multi-drag item
1763
+ * @param {HTMLElement} el The element to be selected
1764
+ */
1765
+ select: function(t) {
1766
+ var o = t.parentNode[K];
1767
+ !o || !o.options.multiDrag || ~S.indexOf(t) || (le && le !== o && (le.multiDrag._deselectMultiDrag(), le = o), j(t, o.options.selectedClass, !0), S.push(t));
1768
+ },
1769
+ /**
1770
+ * Deselects the provided multi-drag item
1771
+ * @param {HTMLElement} el The element to be deselected
1772
+ */
1773
+ deselect: function(t) {
1774
+ var o = t.parentNode[K], r = S.indexOf(t);
1775
+ !o || !o.options.multiDrag || !~r || (j(t, o.options.selectedClass, !1), S.splice(r, 1));
1776
+ }
1777
+ },
1778
+ eventProperties: function() {
1779
+ var t = this, o = [], r = [];
1780
+ return S.forEach(function(i) {
1781
+ o.push({
1782
+ multiDragElement: i,
1783
+ index: i.sortableIndex
1784
+ });
1785
+ var a;
1786
+ Q && i !== M ? a = -1 : Q ? a = B(i, ":not(." + t.options.selectedClass + ")") : a = B(i), r.push({
1787
+ multiDragElement: i,
1788
+ index: a
1789
+ });
1790
+ }), {
1791
+ items: Fn(S),
1792
+ clones: [].concat(te),
1793
+ oldIndicies: o,
1794
+ newIndicies: r
1795
+ };
1796
+ },
1797
+ optionListeners: {
1798
+ multiDragKey: function(t) {
1799
+ return t = t.toLowerCase(), t === "ctrl" ? t = "Control" : t.length > 1 && (t = t.charAt(0).toUpperCase() + t.substr(1)), t;
1800
+ }
1801
+ }
1802
+ });
1803
+ }
1804
+ function ho(n, e) {
1805
+ S.forEach(function(t, o) {
1806
+ var r = e.children[t.sortableIndex + (n ? Number(o) : 0)];
1807
+ r ? e.insertBefore(t, r) : e.appendChild(t);
1808
+ });
1809
+ }
1810
+ function Wt(n, e) {
1811
+ te.forEach(function(t, o) {
1812
+ var r = e.children[t.sortableIndex + (n ? Number(o) : 0)];
1813
+ r ? e.insertBefore(t, r) : e.appendChild(t);
1814
+ });
1815
+ }
1816
+ function Qe() {
1817
+ S.forEach(function(n) {
1818
+ n !== M && n.parentNode && n.parentNode.removeChild(n);
1819
+ });
1820
+ }
1821
+ w.mount(new co());
1822
+ w.mount(Nt, Pt);
1823
+ const go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1824
+ __proto__: null,
1825
+ MultiDrag: po,
1826
+ Sortable: w,
1827
+ Swap: uo,
1828
+ default: w
1829
+ }, Symbol.toStringTag, { value: "Module" })), mo = /* @__PURE__ */ Kt(go);
1830
+ var dn = { exports: {} };
185
1831
  /*!
186
1832
  Copyright (c) 2018 Jed Watson.
187
1833
  Licensed under the MIT License (MIT), see
188
1834
  http://jedwatson.github.io/classnames
189
1835
  */
190
- (function(r) {
1836
+ (function(n) {
191
1837
  (function() {
192
- var l = {}.hasOwnProperty;
193
- function c() {
194
- for (var b = [], g = 0; g < arguments.length; g++) {
195
- var d = arguments[g];
196
- if (d) {
197
- var u = typeof d;
198
- if (u === "string" || u === "number")
199
- b.push(d);
200
- else if (Array.isArray(d)) {
201
- if (d.length) {
202
- var O = c.apply(null, d);
203
- O && b.push(O);
1838
+ var e = {}.hasOwnProperty;
1839
+ function t() {
1840
+ for (var o = [], r = 0; r < arguments.length; r++) {
1841
+ var i = arguments[r];
1842
+ if (i) {
1843
+ var a = typeof i;
1844
+ if (a === "string" || a === "number")
1845
+ o.push(i);
1846
+ else if (Array.isArray(i)) {
1847
+ if (i.length) {
1848
+ var s = t.apply(null, i);
1849
+ s && o.push(s);
204
1850
  }
205
- } else if (u === "object")
206
- if (d.toString === Object.prototype.toString)
207
- for (var $ in d)
208
- l.call(d, $) && d[$] && b.push($);
1851
+ } else if (a === "object")
1852
+ if (i.toString === Object.prototype.toString)
1853
+ for (var l in i)
1854
+ e.call(i, l) && i[l] && o.push(l);
209
1855
  else
210
- b.push(d.toString());
1856
+ o.push(i.toString());
211
1857
  }
212
1858
  }
213
- return b.join(" ");
1859
+ return o.join(" ");
214
1860
  }
215
- r.exports ? (c.default = c, r.exports = c) : window.classNames = c;
1861
+ n.exports ? (t.default = t, n.exports = t) : window.classNames = t;
216
1862
  })();
217
- })(K);
218
- var we = K.exports, ve = process.env.NODE_ENV === "production", U = "Invariant failed";
219
- function Ce(r, l) {
220
- if (!r) {
221
- if (ve)
222
- throw new Error(U);
223
- var c = typeof l == "function" ? l() : l, b = c ? U + ": " + c : U;
224
- throw new Error(b);
1863
+ })(dn);
1864
+ var bo = dn.exports, vo = process.env.NODE_ENV === "production", Et = "Invariant failed";
1865
+ function yo(n, e) {
1866
+ if (!n) {
1867
+ if (vo)
1868
+ throw new Error(Et);
1869
+ var t = typeof e == "function" ? e() : e, o = t ? Et + ": " + t : Et;
1870
+ throw new Error(o);
225
1871
  }
226
1872
  }
227
- const Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1873
+ const wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
228
1874
  __proto__: null,
229
- default: Ce
230
- }, Symbol.toStringTag, { value: "Module" })), Se = /* @__PURE__ */ ne(Oe);
231
- (function(r) {
232
- var l = te, c = we, b = oe, g = Se;
233
- function d(s) {
234
- return s && s.__esModule ? s.default : s;
235
- }
236
- function u(s, e, t, o) {
237
- Object.defineProperty(s, e, { get: t, set: o, enumerable: !0, configurable: !0 });
238
- }
239
- function O(s, e) {
240
- return Object.keys(e).forEach(function(t) {
241
- t === "default" || t === "__esModule" || s.hasOwnProperty(t) || Object.defineProperty(s, t, {
1875
+ default: yo
1876
+ }, Symbol.toStringTag, { value: "Module" })), Eo = /* @__PURE__ */ Kt(wo);
1877
+ (function(n) {
1878
+ var e = mo, t = bo, o = mn, r = Eo;
1879
+ function i(h) {
1880
+ return h && h.__esModule ? h.default : h;
1881
+ }
1882
+ function a(h, u, m, g) {
1883
+ Object.defineProperty(h, u, { get: m, set: g, enumerable: !0, configurable: !0 });
1884
+ }
1885
+ function s(h, u) {
1886
+ return Object.keys(u).forEach(function(m) {
1887
+ m === "default" || m === "__esModule" || h.hasOwnProperty(m) || Object.defineProperty(h, m, {
242
1888
  enumerable: !0,
243
1889
  get: function() {
244
- return e[t];
1890
+ return u[m];
245
1891
  }
246
1892
  });
247
- }), s;
1893
+ }), h;
248
1894
  }
249
- u(r.exports, "Sortable", () => $882b6d93070905b3$re_export$Sortable), u(r.exports, "Direction", () => $882b6d93070905b3$re_export$Direction), u(r.exports, "DOMRect", () => $882b6d93070905b3$re_export$DOMRect), u(r.exports, "GroupOptions", () => $882b6d93070905b3$re_export$GroupOptions), u(r.exports, "MoveEvent", () => $882b6d93070905b3$re_export$MoveEvent), u(r.exports, "Options", () => $882b6d93070905b3$re_export$Options), u(r.exports, "PullResult", () => $882b6d93070905b3$re_export$PullResult), u(r.exports, "PutResult", () => $882b6d93070905b3$re_export$PutResult), u(r.exports, "SortableEvent", () => $882b6d93070905b3$re_export$SortableEvent), u(r.exports, "SortableOptions", () => $882b6d93070905b3$re_export$SortableOptions), u(r.exports, "Utils", () => $882b6d93070905b3$re_export$Utils), u(r.exports, "ReactSortable", () => T);
250
- function $(s) {
251
- s.parentElement !== null && s.parentElement.removeChild(s);
1895
+ a(n.exports, "Sortable", () => $882b6d93070905b3$re_export$Sortable), a(n.exports, "Direction", () => $882b6d93070905b3$re_export$Direction), a(n.exports, "DOMRect", () => $882b6d93070905b3$re_export$DOMRect), a(n.exports, "GroupOptions", () => $882b6d93070905b3$re_export$GroupOptions), a(n.exports, "MoveEvent", () => $882b6d93070905b3$re_export$MoveEvent), a(n.exports, "Options", () => $882b6d93070905b3$re_export$Options), a(n.exports, "PullResult", () => $882b6d93070905b3$re_export$PullResult), a(n.exports, "PutResult", () => $882b6d93070905b3$re_export$PutResult), a(n.exports, "SortableEvent", () => $882b6d93070905b3$re_export$SortableEvent), a(n.exports, "SortableOptions", () => $882b6d93070905b3$re_export$SortableOptions), a(n.exports, "Utils", () => $882b6d93070905b3$re_export$Utils), a(n.exports, "ReactSortable", () => X);
1896
+ function l(h) {
1897
+ h.parentElement !== null && h.parentElement.removeChild(h);
252
1898
  }
253
- function N(s, e, t) {
254
- const o = s.children[t] || null;
255
- s.insertBefore(e, o);
1899
+ function c(h, u, m) {
1900
+ const g = h.children[m] || null;
1901
+ h.insertBefore(u, g);
256
1902
  }
257
- function E(s) {
258
- s.forEach((e) => $(e.element));
1903
+ function p(h) {
1904
+ h.forEach((u) => l(u.element));
259
1905
  }
260
- function H(s) {
261
- s.forEach((e) => {
262
- N(e.parentElement, e.element, e.oldIndex);
1906
+ function f(h) {
1907
+ h.forEach((u) => {
1908
+ c(u.parentElement, u.element, u.oldIndex);
263
1909
  });
264
1910
  }
265
- function L(s, e) {
266
- const t = v(s), o = {
267
- parentElement: s.from
1911
+ function v(h, u) {
1912
+ const m = R(h), g = {
1913
+ parentElement: h.from
268
1914
  };
269
- let a = [];
270
- switch (t) {
1915
+ let C = [];
1916
+ switch (m) {
271
1917
  case "normal":
272
- a = [
1918
+ C = [
273
1919
  {
274
- element: s.item,
275
- newIndex: s.newIndex,
276
- oldIndex: s.oldIndex,
277
- parentElement: s.from
1920
+ element: h.item,
1921
+ newIndex: h.newIndex,
1922
+ oldIndex: h.oldIndex,
1923
+ parentElement: h.from
278
1924
  }
279
1925
  ];
280
1926
  break;
281
1927
  case "swap":
282
- const p = {
283
- element: s.item,
284
- oldIndex: s.oldIndex,
285
- newIndex: s.newIndex,
286
- ...o
287
- }, h = {
288
- element: s.swapItem,
289
- oldIndex: s.newIndex,
290
- newIndex: s.oldIndex,
291
- ...o
1928
+ const N = {
1929
+ element: h.item,
1930
+ oldIndex: h.oldIndex,
1931
+ newIndex: h.newIndex,
1932
+ ...g
1933
+ }, F = {
1934
+ element: h.swapItem,
1935
+ oldIndex: h.newIndex,
1936
+ newIndex: h.oldIndex,
1937
+ ...g
292
1938
  };
293
- a = [
294
- p,
295
- h
1939
+ C = [
1940
+ N,
1941
+ F
296
1942
  ];
297
1943
  break;
298
1944
  case "multidrag":
299
- a = s.oldIndicies.map((x, I) => ({
300
- element: x.multiDragElement,
301
- oldIndex: x.index,
302
- newIndex: s.newIndicies[I].index,
303
- ...o
1945
+ C = h.oldIndicies.map((G, V) => ({
1946
+ element: G.multiDragElement,
1947
+ oldIndex: G.index,
1948
+ newIndex: h.newIndicies[V].index,
1949
+ ...g
304
1950
  }));
305
1951
  break;
306
1952
  }
307
- return S(a, e);
1953
+ return Y(C, u);
308
1954
  }
309
- function D(s, e) {
310
- const t = w(s, e);
311
- return y(s, t);
1955
+ function A(h, u) {
1956
+ const m = E(h, u);
1957
+ return _(h, m);
312
1958
  }
313
- function w(s, e) {
314
- const t = [
315
- ...e
1959
+ function E(h, u) {
1960
+ const m = [
1961
+ ...u
316
1962
  ];
317
- return s.concat().reverse().forEach((o) => t.splice(o.oldIndex, 1)), t;
1963
+ return h.concat().reverse().forEach((g) => m.splice(g.oldIndex, 1)), m;
318
1964
  }
319
- function y(s, e, t, o) {
320
- const a = [
321
- ...e
1965
+ function _(h, u, m, g) {
1966
+ const C = [
1967
+ ...u
322
1968
  ];
323
- return s.forEach((n) => {
324
- const i = o && t && o(n.item, t);
325
- a.splice(n.newIndex, 0, i || n.item);
326
- }), a;
1969
+ return h.forEach((y) => {
1970
+ const P = g && m && g(y.item, m);
1971
+ C.splice(y.newIndex, 0, P || y.item);
1972
+ }), C;
327
1973
  }
328
- function v(s) {
329
- return s.oldIndicies && s.oldIndicies.length > 0 ? "multidrag" : s.swapItem ? "swap" : "normal";
1974
+ function R(h) {
1975
+ return h.oldIndicies && h.oldIndicies.length > 0 ? "multidrag" : h.swapItem ? "swap" : "normal";
330
1976
  }
331
- function S(s, e) {
332
- return s.map((o) => ({
333
- ...o,
334
- item: e[o.oldIndex]
335
- })).sort((o, a) => o.oldIndex - a.oldIndex);
1977
+ function Y(h, u) {
1978
+ return h.map((g) => ({
1979
+ ...g,
1980
+ item: u[g.oldIndex]
1981
+ })).sort((g, C) => g.oldIndex - C.oldIndex);
336
1982
  }
337
- function Q(s) {
338
- const { list: e, setList: t, children: o, tag: a, style: n, className: i, clone: p, onAdd: h, onChange: x, onChoose: I, onClone: A, onEnd: P, onFilter: k, onRemove: _, onSort: z, onStart: F, onUnchoose: V, onUpdate: Ee, onMove: Le, onSpill: Pe, onSelect: Me, onDeselect: He, ...Y } = s;
339
- return Y;
1983
+ function T(h) {
1984
+ const { list: u, setList: m, children: g, tag: C, style: y, className: P, clone: N, onAdd: F, onChange: G, onChoose: V, onClone: be, onEnd: ae, onFilter: Ge, onRemove: Ie, onSort: Te, onStart: ze, onUnchoose: Mt, onUpdate: Do, onMove: _o, onSpill: Co, onSelect: xo, onDeselect: Oo, ...fn } = h;
1985
+ return fn;
340
1986
  }
341
- const m = {
1987
+ const O = {
342
1988
  dragging: null
343
1989
  };
344
- class T extends b.Component {
345
- constructor(e) {
346
- super(e), this.ref = /* @__PURE__ */ (0, b.createRef)();
347
- const t = [
348
- ...e.list
349
- ].map((o) => Object.assign(o, {
1990
+ class X extends o.Component {
1991
+ constructor(u) {
1992
+ super(u), this.ref = /* @__PURE__ */ (0, o.createRef)();
1993
+ const m = [
1994
+ ...u.list
1995
+ ].map((g) => Object.assign(g, {
350
1996
  chosen: !1,
351
1997
  selected: !1
352
1998
  }));
353
- e.setList(t, this.sortable, m), d(g)(
1999
+ u.setList(m, this.sortable, O), i(r)(
354
2000
  //@ts-expect-error: Doesn't exist. Will deprecate soon.
355
- !e.plugins,
2001
+ !u.plugins,
356
2002
  `
357
2003
  Plugins prop is no longer supported.
358
2004
  Instead, mount it with "Sortable.mount(new MultiDrag())"
@@ -362,53 +2008,53 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
362
2008
  }
363
2009
  componentDidMount() {
364
2010
  if (this.ref.current === null) return;
365
- const e = this.makeOptions();
366
- d(l).create(this.ref.current, e);
2011
+ const u = this.makeOptions();
2012
+ i(e).create(this.ref.current, u);
367
2013
  }
368
- componentDidUpdate(e) {
369
- e.disabled !== this.props.disabled && this.sortable && this.sortable.option("disabled", this.props.disabled);
2014
+ componentDidUpdate(u) {
2015
+ u.disabled !== this.props.disabled && this.sortable && this.sortable.option("disabled", this.props.disabled);
370
2016
  }
371
2017
  render() {
372
- const { tag: e, style: t, className: o, id: a } = this.props, n = {
373
- style: t,
374
- className: o,
375
- id: a
376
- }, i = !e || e === null ? "div" : e;
377
- return /* @__PURE__ */ (0, b.createElement)(i, {
2018
+ const { tag: u, style: m, className: g, id: C } = this.props, y = {
2019
+ style: m,
2020
+ className: g,
2021
+ id: C
2022
+ }, P = !u || u === null ? "div" : u;
2023
+ return /* @__PURE__ */ (0, o.createElement)(P, {
378
2024
  // @todo - find a way (perhaps with the callback) to allow AntD components to work
379
2025
  ref: this.ref,
380
- ...n
2026
+ ...y
381
2027
  }, this.getChildren());
382
2028
  }
383
2029
  getChildren() {
384
- const { children: e, dataIdAttr: t, selectedClass: o = "sortable-selected", chosenClass: a = "sortable-chosen", dragClass: n = "sortable-drag", fallbackClass: i = "sortable-falback", ghostClass: p = "sortable-ghost", swapClass: h = "sortable-swap-highlight", filter: x = "sortable-filter", list: I } = this.props;
385
- if (!e || e == null) return null;
386
- const A = t || "data-id";
387
- return b.Children.map(e, (P, k) => {
388
- if (P === void 0) return;
389
- const _ = I[k] || {}, { className: z } = P.props, F = typeof x == "string" && {
390
- [x.replace(".", "")]: !!_.filtered
391
- }, V = d(c)(z, {
392
- [o]: _.selected,
393
- [a]: _.chosen,
394
- ...F
2030
+ const { children: u, dataIdAttr: m, selectedClass: g = "sortable-selected", chosenClass: C = "sortable-chosen", dragClass: y = "sortable-drag", fallbackClass: P = "sortable-falback", ghostClass: N = "sortable-ghost", swapClass: F = "sortable-swap-highlight", filter: G = "sortable-filter", list: V } = this.props;
2031
+ if (!u || u == null) return null;
2032
+ const be = m || "data-id";
2033
+ return o.Children.map(u, (ae, Ge) => {
2034
+ if (ae === void 0) return;
2035
+ const Ie = V[Ge] || {}, { className: Te } = ae.props, ze = typeof G == "string" && {
2036
+ [G.replace(".", "")]: !!Ie.filtered
2037
+ }, Mt = i(t)(Te, {
2038
+ [g]: Ie.selected,
2039
+ [C]: Ie.chosen,
2040
+ ...ze
395
2041
  });
396
- return /* @__PURE__ */ (0, b.cloneElement)(P, {
397
- [A]: P.key,
398
- className: V
2042
+ return /* @__PURE__ */ (0, o.cloneElement)(ae, {
2043
+ [be]: ae.key,
2044
+ className: Mt
399
2045
  });
400
2046
  });
401
2047
  }
402
2048
  /** Appends the `sortable` property to this component */
403
2049
  get sortable() {
404
- const e = this.ref.current;
405
- if (e === null) return null;
406
- const t = Object.keys(e).find((o) => o.includes("Sortable"));
407
- return t ? e[t] : null;
2050
+ const u = this.ref.current;
2051
+ if (u === null) return null;
2052
+ const m = Object.keys(u).find((g) => g.includes("Sortable"));
2053
+ return m ? u[m] : null;
408
2054
  }
409
2055
  /** Converts all the props from `ReactSortable` into the `options` object that `Sortable.create(el, [options])` can use. */
410
2056
  makeOptions() {
411
- const e = [
2057
+ const u = [
412
2058
  "onAdd",
413
2059
  "onChoose",
414
2060
  "onDeselect",
@@ -419,169 +2065,169 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
419
2065
  "onStart",
420
2066
  "onUnchoose",
421
2067
  "onUpdate"
422
- ], t = [
2068
+ ], m = [
423
2069
  "onChange",
424
2070
  "onClone",
425
2071
  "onFilter",
426
2072
  "onSort"
427
- ], o = Q(this.props);
428
- return e.forEach((n) => o[n] = this.prepareOnHandlerPropAndDOM(n)), t.forEach((n) => o[n] = this.prepareOnHandlerProp(n)), {
429
- ...o,
430
- onMove: (n, i) => {
431
- const { onMove: p } = this.props, h = n.willInsertAfter || -1;
432
- if (!p) return h;
433
- const x = p(n, i, this.sortable, m);
434
- return typeof x > "u" ? !1 : x;
2073
+ ], g = T(this.props);
2074
+ return u.forEach((y) => g[y] = this.prepareOnHandlerPropAndDOM(y)), m.forEach((y) => g[y] = this.prepareOnHandlerProp(y)), {
2075
+ ...g,
2076
+ onMove: (y, P) => {
2077
+ const { onMove: N } = this.props, F = y.willInsertAfter || -1;
2078
+ if (!N) return F;
2079
+ const G = N(y, P, this.sortable, O);
2080
+ return typeof G > "u" ? !1 : G;
435
2081
  }
436
2082
  };
437
2083
  }
438
2084
  /** Prepares a method that will be used in the sortable options to call an `on[Handler]` prop & an `on[Handler]` ReactSortable method. */
439
- prepareOnHandlerPropAndDOM(e) {
440
- return (t) => {
441
- this.callOnHandlerProp(t, e), this[e](t);
2085
+ prepareOnHandlerPropAndDOM(u) {
2086
+ return (m) => {
2087
+ this.callOnHandlerProp(m, u), this[u](m);
442
2088
  };
443
2089
  }
444
2090
  /** Prepares a method that will be used in the sortable options to call an `on[Handler]` prop */
445
- prepareOnHandlerProp(e) {
446
- return (t) => {
447
- this.callOnHandlerProp(t, e);
2091
+ prepareOnHandlerProp(u) {
2092
+ return (m) => {
2093
+ this.callOnHandlerProp(m, u);
448
2094
  };
449
2095
  }
450
2096
  /** Calls the `props.on[Handler]` function */
451
- callOnHandlerProp(e, t) {
452
- const o = this.props[t];
453
- o && o(e, this.sortable, m);
2097
+ callOnHandlerProp(u, m) {
2098
+ const g = this.props[m];
2099
+ g && g(u, this.sortable, O);
454
2100
  }
455
2101
  // SORTABLE DOM HANDLING
456
- onAdd(e) {
457
- const { list: t, setList: o, clone: a } = this.props, n = [
458
- ...m.dragging.props.list
459
- ], i = L(e, n);
460
- E(i);
461
- const p = y(i, t, e, a).map((h) => Object.assign(h, {
2102
+ onAdd(u) {
2103
+ const { list: m, setList: g, clone: C } = this.props, y = [
2104
+ ...O.dragging.props.list
2105
+ ], P = v(u, y);
2106
+ p(P);
2107
+ const N = _(P, m, u, C).map((F) => Object.assign(F, {
462
2108
  selected: !1
463
2109
  }));
464
- o(p, this.sortable, m);
2110
+ g(N, this.sortable, O);
465
2111
  }
466
- onRemove(e) {
467
- const { list: t, setList: o } = this.props, a = v(e), n = L(e, t);
468
- H(n);
469
- let i = [
470
- ...t
2112
+ onRemove(u) {
2113
+ const { list: m, setList: g } = this.props, C = R(u), y = v(u, m);
2114
+ f(y);
2115
+ let P = [
2116
+ ...m
471
2117
  ];
472
- if (e.pullMode !== "clone") i = w(n, i);
2118
+ if (u.pullMode !== "clone") P = E(y, P);
473
2119
  else {
474
- let p = n;
475
- switch (a) {
2120
+ let N = y;
2121
+ switch (C) {
476
2122
  case "multidrag":
477
- p = n.map((h, x) => ({
478
- ...h,
479
- element: e.clones[x]
2123
+ N = y.map((F, G) => ({
2124
+ ...F,
2125
+ element: u.clones[G]
480
2126
  }));
481
2127
  break;
482
2128
  case "normal":
483
- p = n.map((h) => ({
484
- ...h,
485
- element: e.clone
2129
+ N = y.map((F) => ({
2130
+ ...F,
2131
+ element: u.clone
486
2132
  }));
487
2133
  break;
488
2134
  case "swap":
489
2135
  default:
490
- d(g)(!0, `mode "${a}" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "${a}" plugin`);
2136
+ i(r)(!0, `mode "${C}" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "${C}" plugin`);
491
2137
  }
492
- E(p), n.forEach((h) => {
493
- const x = h.oldIndex, I = this.props.clone(h.item, e);
494
- i.splice(x, 1, I);
2138
+ p(N), y.forEach((F) => {
2139
+ const G = F.oldIndex, V = this.props.clone(F.item, u);
2140
+ P.splice(G, 1, V);
495
2141
  });
496
2142
  }
497
- i = i.map((p) => Object.assign(p, {
2143
+ P = P.map((N) => Object.assign(N, {
498
2144
  selected: !1
499
- })), o(i, this.sortable, m);
2145
+ })), g(P, this.sortable, O);
500
2146
  }
501
- onUpdate(e) {
502
- const { list: t, setList: o } = this.props, a = L(e, t);
503
- E(a), H(a);
504
- const n = D(a, t);
505
- return o(n, this.sortable, m);
2147
+ onUpdate(u) {
2148
+ const { list: m, setList: g } = this.props, C = v(u, m);
2149
+ p(C), f(C);
2150
+ const y = A(C, m);
2151
+ return g(y, this.sortable, O);
506
2152
  }
507
2153
  onStart() {
508
- m.dragging = this;
2154
+ O.dragging = this;
509
2155
  }
510
2156
  onEnd() {
511
- m.dragging = null;
2157
+ O.dragging = null;
512
2158
  }
513
- onChoose(e) {
514
- const { list: t, setList: o } = this.props, a = t.map((n, i) => {
515
- let p = n;
516
- return i === e.oldIndex && (p = Object.assign(n, {
2159
+ onChoose(u) {
2160
+ const { list: m, setList: g } = this.props, C = m.map((y, P) => {
2161
+ let N = y;
2162
+ return P === u.oldIndex && (N = Object.assign(y, {
517
2163
  chosen: !0
518
- })), p;
2164
+ })), N;
519
2165
  });
520
- o(a, this.sortable, m);
2166
+ g(C, this.sortable, O);
521
2167
  }
522
- onUnchoose(e) {
523
- const { list: t, setList: o } = this.props, a = t.map((n, i) => {
524
- let p = n;
525
- return i === e.oldIndex && (p = Object.assign(p, {
2168
+ onUnchoose(u) {
2169
+ const { list: m, setList: g } = this.props, C = m.map((y, P) => {
2170
+ let N = y;
2171
+ return P === u.oldIndex && (N = Object.assign(N, {
526
2172
  chosen: !1
527
- })), p;
2173
+ })), N;
528
2174
  });
529
- o(a, this.sortable, m);
2175
+ g(C, this.sortable, O);
530
2176
  }
531
- onSpill(e) {
532
- const { removeOnSpill: t, revertOnSpill: o } = this.props;
533
- t && !o && $(e.item);
2177
+ onSpill(u) {
2178
+ const { removeOnSpill: m, revertOnSpill: g } = this.props;
2179
+ m && !g && l(u.item);
534
2180
  }
535
- onSelect(e) {
536
- const { list: t, setList: o } = this.props, a = t.map((n) => Object.assign(n, {
2181
+ onSelect(u) {
2182
+ const { list: m, setList: g } = this.props, C = m.map((y) => Object.assign(y, {
537
2183
  selected: !1
538
2184
  }));
539
- e.newIndicies.forEach((n) => {
540
- const i = n.index;
541
- if (i === -1) {
542
- console.log(`"${e.type}" had indice of "${n.index}", which is probably -1 and doesn't usually happen here.`), console.log(e);
2185
+ u.newIndicies.forEach((y) => {
2186
+ const P = y.index;
2187
+ if (P === -1) {
2188
+ console.log(`"${u.type}" had indice of "${y.index}", which is probably -1 and doesn't usually happen here.`), console.log(u);
543
2189
  return;
544
2190
  }
545
- a[i].selected = !0;
546
- }), o(a, this.sortable, m);
2191
+ C[P].selected = !0;
2192
+ }), g(C, this.sortable, O);
547
2193
  }
548
- onDeselect(e) {
549
- const { list: t, setList: o } = this.props, a = t.map((n) => Object.assign(n, {
2194
+ onDeselect(u) {
2195
+ const { list: m, setList: g } = this.props, C = m.map((y) => Object.assign(y, {
550
2196
  selected: !1
551
2197
  }));
552
- e.newIndicies.forEach((n) => {
553
- const i = n.index;
554
- i !== -1 && (a[i].selected = !0);
555
- }), o(a, this.sortable, m);
2198
+ u.newIndicies.forEach((y) => {
2199
+ const P = y.index;
2200
+ P !== -1 && (C[P].selected = !0);
2201
+ }), g(C, this.sortable, O);
556
2202
  }
557
2203
  }
558
2204
  /* eslint-disable-next-line */
559
- q(T, "defaultProps", {
560
- clone: (e) => e
2205
+ $t(X, "defaultProps", {
2206
+ clone: (u) => u
561
2207
  });
562
- var X = {};
563
- O(r.exports, X);
564
- })(J);
565
- var Ie = J.exports;
566
- const qe = (r) => {
567
- const { actions: l } = re(r);
568
- return /* @__PURE__ */ C(ae, { sx: r.sx, children: /* @__PURE__ */ C(
569
- Ie.ReactSortable,
2208
+ var ie = {};
2209
+ s(n.exports, ie);
2210
+ })(Vt);
2211
+ var So = Vt.exports;
2212
+ const Fo = (n) => {
2213
+ const { actions: e } = bn(n);
2214
+ return /* @__PURE__ */ ge(vn, { sx: n.sx, children: /* @__PURE__ */ ge(
2215
+ So.ReactSortable,
570
2216
  {
571
- list: r.items,
572
- setList: l.handleSetList,
573
- disabled: r.disabled,
574
- children: r.items.map((c) => /* @__PURE__ */ C(
575
- le,
2217
+ list: n.items,
2218
+ setList: e.handleSetList,
2219
+ disabled: n.disabled,
2220
+ children: n.items.map((t) => /* @__PURE__ */ ge(
2221
+ yn,
576
2222
  {
577
- selected: c.selected,
578
- onClick: l.handleClick(c),
579
- children: /* @__PURE__ */ C(
580
- W,
2223
+ selected: t.selected,
2224
+ onClick: e.handleClick(t),
2225
+ children: /* @__PURE__ */ ge(
2226
+ qt,
581
2227
  {
582
- title: c.name,
583
- avatar: c.icon,
584
- action: c.actions,
2228
+ title: t.name,
2229
+ avatar: t.icon,
2230
+ action: t.actions,
585
2231
  titleTypographyProps: {
586
2232
  variant: "body2",
587
2233
  fontSize: 12
@@ -589,11 +2235,11 @@ const qe = (r) => {
589
2235
  }
590
2236
  )
591
2237
  },
592
- c.id
2238
+ t.id
593
2239
  ))
594
2240
  }
595
2241
  ) });
596
2242
  };
597
2243
  export {
598
- qe as SortableList
2244
+ Fo as SortableList
599
2245
  };