@eox/layercontrol 0.6.5 → 0.6.6

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.
@@ -40,7 +40,7 @@ const Ji = (i) => new Qi(typeof i == "string" ? i : i + "", void 0, bi), tn = (i
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
41
  */
42
42
  var be;
43
- const ue = window, Qe = ue.trustedTypes, en = Qe ? Qe.emptyScript : "", Je = ue.reactiveElementPolyfillSupport, ke = { toAttribute(i, t) {
43
+ const ce = window, Qe = ce.trustedTypes, en = Qe ? Qe.emptyScript : "", Je = ce.reactiveElementPolyfillSupport, ke = { toAttribute(i, t) {
44
44
  switch (t) {
45
45
  case Boolean:
46
46
  i = i ? en : null;
@@ -248,25 +248,25 @@ let At = class extends HTMLElement {
248
248
  firstUpdated(t) {
249
249
  }
250
250
  };
251
- At[Ne] = !0, At.elementProperties = /* @__PURE__ */ new Map(), At.elementStyles = [], At.shadowRootOptions = { mode: "open" }, Je == null || Je({ ReactiveElement: At }), ((be = ue.reactiveElementVersions) !== null && be !== void 0 ? be : ue.reactiveElementVersions = []).push("1.6.2");
251
+ At[Ne] = !0, At.elementProperties = /* @__PURE__ */ new Map(), At.elementStyles = [], At.shadowRootOptions = { mode: "open" }, Je == null || Je({ ReactiveElement: At }), ((be = ce.reactiveElementVersions) !== null && be !== void 0 ? be : ce.reactiveElementVersions = []).push("1.6.2");
252
252
  /**
253
253
  * @license
254
254
  * Copyright 2017 Google LLC
255
255
  * SPDX-License-Identifier: BSD-3-Clause
256
256
  */
257
257
  var Ee;
258
- const ce = window, Tt = ce.trustedTypes, ti = Tt ? Tt.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, he = "$lit$", tt = `lit$${(Math.random() + "").slice(9)}$`, Ye = "?" + tt, nn = `<${Ye}>`, bt = document, Wt = () => bt.createComment(""), Gt = (i) => i === null || typeof i != "object" && typeof i != "function", Ei = Array.isArray, wi = (i) => Ei(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", we = `[
259
- \f\r]`, Nt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ei = /-->/g, ii = />/g, ht = RegExp(`>|${we}(?:([^\\s"'>=/]+)(${we}*=${we}*(?:[^
258
+ const he = window, Tt = he.trustedTypes, ti = Tt ? Tt.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, ue = "$lit$", tt = `lit$${(Math.random() + "").slice(9)}$`, Ye = "?" + tt, nn = `<${Ye}>`, bt = document, Wt = () => bt.createComment(""), Gt = (i) => i === null || typeof i != "object" && typeof i != "function", Ei = Array.isArray, wi = (i) => Ei(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", we = `[
259
+ \f\r]`, Nt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ei = /-->/g, ii = />/g, ut = RegExp(`>|${we}(?:([^\\s"'>=/]+)(${we}*=${we}*(?:[^
260
260
  \f\r"'\`<>=]|("|')|))|$)`, "g"), ni = /'/g, ri = /"/g, xi = /^(?:script|style|textarea|title)$/i, rn = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), H = rn(1), W = Symbol.for("lit-noChange"), w = Symbol.for("lit-nothing"), oi = /* @__PURE__ */ new WeakMap(), yt = bt.createTreeWalker(bt, 129, null, !1), Ai = (i, t) => {
261
261
  const e = i.length - 1, n = [];
262
262
  let r, o = t === 2 ? "<svg>" : "", a = Nt;
263
263
  for (let l = 0; l < e; l++) {
264
264
  const d = i[l];
265
- let p, u, h = -1, g = 0;
266
- for (; g < d.length && (a.lastIndex = g, u = a.exec(d), u !== null); )
267
- g = a.lastIndex, a === Nt ? u[1] === "!--" ? a = ei : u[1] !== void 0 ? a = ii : u[2] !== void 0 ? (xi.test(u[2]) && (r = RegExp("</" + u[2], "g")), a = ht) : u[3] !== void 0 && (a = ht) : a === ht ? u[0] === ">" ? (a = r ?? Nt, h = -1) : u[1] === void 0 ? h = -2 : (h = a.lastIndex - u[2].length, p = u[1], a = u[3] === void 0 ? ht : u[3] === '"' ? ri : ni) : a === ri || a === ni ? a = ht : a === ei || a === ii ? a = Nt : (a = ht, r = void 0);
268
- const f = a === ht && i[l + 1].startsWith("/>") ? " " : "";
269
- o += a === Nt ? d + nn : h >= 0 ? (n.push(p), d.slice(0, h) + he + d.slice(h) + tt + f) : d + tt + (h === -2 ? (n.push(void 0), l) : f);
265
+ let u, c, p = -1, g = 0;
266
+ for (; g < d.length && (a.lastIndex = g, c = a.exec(d), c !== null); )
267
+ g = a.lastIndex, a === Nt ? c[1] === "!--" ? a = ei : c[1] !== void 0 ? a = ii : c[2] !== void 0 ? (xi.test(c[2]) && (r = RegExp("</" + c[2], "g")), a = ut) : c[3] !== void 0 && (a = ut) : a === ut ? c[0] === ">" ? (a = r ?? Nt, p = -1) : c[1] === void 0 ? p = -2 : (p = a.lastIndex - c[2].length, u = c[1], a = c[3] === void 0 ? ut : c[3] === '"' ? ri : ni) : a === ri || a === ni ? a = ut : a === ei || a === ii ? a = Nt : (a = ut, r = void 0);
268
+ const f = a === ut && i[l + 1].startsWith("/>") ? " " : "";
269
+ o += a === Nt ? d + nn : p >= 0 ? (n.push(u), d.slice(0, p) + ue + d.slice(p) + tt + f) : d + tt + (p === -2 ? (n.push(void 0), l) : f);
270
270
  }
271
271
  const s = o + (i[e] || "<?>") + (t === 2 ? "</svg>" : "");
272
272
  if (!Array.isArray(i) || !i.hasOwnProperty("raw"))
@@ -278,43 +278,43 @@ class Zt {
278
278
  let r;
279
279
  this.parts = [];
280
280
  let o = 0, a = 0;
281
- const s = t.length - 1, l = this.parts, [d, p] = Ai(t, e);
281
+ const s = t.length - 1, l = this.parts, [d, u] = Ai(t, e);
282
282
  if (this.el = Zt.createElement(d, n), yt.currentNode = this.el.content, e === 2) {
283
- const u = this.el.content, h = u.firstChild;
284
- h.remove(), u.append(...h.childNodes);
283
+ const c = this.el.content, p = c.firstChild;
284
+ p.remove(), c.append(...p.childNodes);
285
285
  }
286
286
  for (; (r = yt.nextNode()) !== null && l.length < s; ) {
287
287
  if (r.nodeType === 1) {
288
288
  if (r.hasAttributes()) {
289
- const u = [];
290
- for (const h of r.getAttributeNames())
291
- if (h.endsWith(he) || h.startsWith(tt)) {
292
- const g = p[a++];
293
- if (u.push(h), g !== void 0) {
294
- const f = r.getAttribute(g.toLowerCase() + he).split(tt), m = /([.?@])?(.*)/.exec(g);
289
+ const c = [];
290
+ for (const p of r.getAttributeNames())
291
+ if (p.endsWith(ue) || p.startsWith(tt)) {
292
+ const g = u[a++];
293
+ if (c.push(p), g !== void 0) {
294
+ const f = r.getAttribute(g.toLowerCase() + ue).split(tt), m = /([.?@])?(.*)/.exec(g);
295
295
  l.push({ type: 1, index: o, name: m[2], strings: f, ctor: m[1] === "." ? $i : m[1] === "?" ? Si : m[1] === "@" ? Di : qt });
296
296
  } else
297
297
  l.push({ type: 6, index: o });
298
298
  }
299
- for (const h of u)
300
- r.removeAttribute(h);
299
+ for (const p of c)
300
+ r.removeAttribute(p);
301
301
  }
302
302
  if (xi.test(r.tagName)) {
303
- const u = r.textContent.split(tt), h = u.length - 1;
304
- if (h > 0) {
303
+ const c = r.textContent.split(tt), p = c.length - 1;
304
+ if (p > 0) {
305
305
  r.textContent = Tt ? Tt.emptyScript : "";
306
- for (let g = 0; g < h; g++)
307
- r.append(u[g], Wt()), yt.nextNode(), l.push({ type: 2, index: ++o });
308
- r.append(u[h], Wt());
306
+ for (let g = 0; g < p; g++)
307
+ r.append(c[g], Wt()), yt.nextNode(), l.push({ type: 2, index: ++o });
308
+ r.append(c[p], Wt());
309
309
  }
310
310
  }
311
311
  } else if (r.nodeType === 8)
312
312
  if (r.data === Ye)
313
313
  l.push({ type: 2, index: o });
314
314
  else {
315
- let u = -1;
316
- for (; (u = r.data.indexOf(tt, u + 1)) !== -1; )
317
- l.push({ type: 7, index: o }), u += tt.length - 1;
315
+ let c = -1;
316
+ for (; (c = r.data.indexOf(tt, c + 1)) !== -1; )
317
+ l.push({ type: 7, index: o }), c += tt.length - 1;
318
318
  }
319
319
  o++;
320
320
  }
@@ -349,8 +349,8 @@ class Ci {
349
349
  let a = yt.nextNode(), s = 0, l = 0, d = r[0];
350
350
  for (; d !== void 0; ) {
351
351
  if (s === d.index) {
352
- let p;
353
- d.type === 2 ? p = new Lt(a, a.nextSibling, this, t) : d.type === 1 ? p = new d.ctor(a, d.name, d.strings, this, t) : d.type === 6 && (p = new Ti(a, this, t)), this._$AV.push(p), d = r[++l];
352
+ let u;
353
+ d.type === 2 ? u = new Lt(a, a.nextSibling, this, t) : d.type === 1 ? u = new d.ctor(a, d.name, d.strings, this, t) : d.type === 6 && (u = new Ti(a, this, t)), this._$AV.push(u), d = r[++l];
354
354
  }
355
355
  s !== (d == null ? void 0 : d.index) && (a = yt.nextNode(), s++);
356
356
  }
@@ -499,8 +499,8 @@ class Ti {
499
499
  _t(this, t);
500
500
  }
501
501
  }
502
- const an = { O: he, P: tt, A: Ye, C: 1, M: Ai, L: Ci, D: wi, R: _t, I: Lt, V: qt, H: Si, N: Di, U: $i, F: Ti }, ai = ce.litHtmlPolyfillSupport;
503
- ai == null || ai(Zt, Lt), ((Ee = ce.litHtmlVersions) !== null && Ee !== void 0 ? Ee : ce.litHtmlVersions = []).push("2.7.4");
502
+ const an = { O: ue, P: tt, A: Ye, C: 1, M: Ai, L: Ci, D: wi, R: _t, I: Lt, V: qt, H: Si, N: Di, U: $i, F: Ti }, ai = he.litHtmlPolyfillSupport;
503
+ ai == null || ai(Zt, Lt), ((Ee = he.litHtmlVersions) !== null && Ee !== void 0 ? Ee : he.litHtmlVersions = []).push("2.7.4");
504
504
  const sn = (i, t, e) => {
505
505
  var n, r;
506
506
  const o = (n = e == null ? void 0 : e.renderBefore) !== null && n !== void 0 ? n : t;
@@ -616,12 +616,12 @@ class Hi {
616
616
  * Copyright 2020 Google LLC
617
617
  * SPDX-License-Identifier: BSD-3-Clause
618
618
  */
619
- const { I: un } = an, cn = (i) => i.strings === void 0, li = () => document.createComment(""), Vt = (i, t, e) => {
619
+ const { I: cn } = an, hn = (i) => i.strings === void 0, li = () => document.createComment(""), Vt = (i, t, e) => {
620
620
  var n;
621
621
  const r = i._$AA.parentNode, o = t === void 0 ? i._$AB : t._$AA;
622
622
  if (e === void 0) {
623
623
  const a = r.insertBefore(li(), o), s = r.insertBefore(li(), o);
624
- e = new un(a, s, i, i.options);
624
+ e = new cn(a, s, i, i.options);
625
625
  } else {
626
626
  const a = e._$AB.nextSibling, s = e._$AM, l = s !== i;
627
627
  if (l) {
@@ -631,13 +631,13 @@ const { I: un } = an, cn = (i) => i.strings === void 0, li = () => document.crea
631
631
  if (a !== o || l) {
632
632
  let d = e._$AA;
633
633
  for (; d !== a; ) {
634
- const p = d.nextSibling;
635
- r.insertBefore(d, o), d = p;
634
+ const u = d.nextSibling;
635
+ r.insertBefore(d, o), d = u;
636
636
  }
637
637
  }
638
638
  }
639
639
  return e;
640
- }, pt = (i, t, e = i) => (i._$AI(t, e), i), hn = {}, Ii = (i, t = hn) => i._$AH = t, pn = (i) => i._$AH, $e = (i) => {
640
+ }, pt = (i, t, e = i) => (i._$AI(t, e), i), un = {}, Ii = (i, t = un) => i._$AH = t, pn = (i) => i._$AH, $e = (i) => {
641
641
  var t;
642
642
  (t = i._$AP) === null || t === void 0 || t.call(i, !1, !0);
643
643
  let e = i._$AA;
@@ -680,39 +680,39 @@ const di = (i, t, e) => {
680
680
  if (!Array.isArray(o))
681
681
  return this.ht = s, a;
682
682
  const l = (r = this.ht) !== null && r !== void 0 ? r : this.ht = [], d = [];
683
- let p, u, h = 0, g = o.length - 1, f = 0, m = a.length - 1;
684
- for (; h <= g && f <= m; )
685
- if (o[h] === null)
686
- h++;
683
+ let u, c, p = 0, g = o.length - 1, f = 0, m = a.length - 1;
684
+ for (; p <= g && f <= m; )
685
+ if (o[p] === null)
686
+ p++;
687
687
  else if (o[g] === null)
688
688
  g--;
689
- else if (l[h] === s[f])
690
- d[f] = pt(o[h], a[f]), h++, f++;
689
+ else if (l[p] === s[f])
690
+ d[f] = pt(o[p], a[f]), p++, f++;
691
691
  else if (l[g] === s[m])
692
692
  d[m] = pt(o[g], a[m]), g--, m--;
693
- else if (l[h] === s[m])
694
- d[m] = pt(o[h], a[m]), Vt(i, d[m + 1], o[h]), h++, m--;
693
+ else if (l[p] === s[m])
694
+ d[m] = pt(o[p], a[m]), Vt(i, d[m + 1], o[p]), p++, m--;
695
695
  else if (l[g] === s[f])
696
- d[f] = pt(o[g], a[f]), Vt(i, o[h], o[g]), g--, f++;
697
- else if (p === void 0 && (p = di(s, f, m), u = di(l, h, g)), p.has(l[h]))
698
- if (p.has(l[g])) {
699
- const S = u.get(s[f]), V = S !== void 0 ? o[S] : null;
696
+ d[f] = pt(o[g], a[f]), Vt(i, o[p], o[g]), g--, f++;
697
+ else if (u === void 0 && (u = di(s, f, m), c = di(l, p, g)), u.has(l[p]))
698
+ if (u.has(l[g])) {
699
+ const S = c.get(s[f]), V = S !== void 0 ? o[S] : null;
700
700
  if (V === null) {
701
- const O = Vt(i, o[h]);
701
+ const O = Vt(i, o[p]);
702
702
  pt(O, a[f]), d[f] = O;
703
703
  } else
704
- d[f] = pt(V, a[f]), Vt(i, o[h], V), o[S] = null;
704
+ d[f] = pt(V, a[f]), Vt(i, o[p], V), o[S] = null;
705
705
  f++;
706
706
  } else
707
707
  $e(o[g]), g--;
708
708
  else
709
- $e(o[h]), h++;
709
+ $e(o[p]), p++;
710
710
  for (; f <= m; ) {
711
711
  const S = Vt(i, d[m + 1]);
712
712
  pt(S, a[f]), d[f++] = S;
713
713
  }
714
- for (; h <= g; ) {
715
- const S = o[h++];
714
+ for (; p <= g; ) {
715
+ const S = o[p++];
716
716
  S !== null && $e(S);
717
717
  }
718
718
  return this.ht = s, Ii(i, d), W;
@@ -727,7 +727,7 @@ const Be = Li(class extends Hi {
727
727
  constructor(i) {
728
728
  if (super(i), i.type !== mt.PROPERTY && i.type !== mt.ATTRIBUTE && i.type !== mt.BOOLEAN_ATTRIBUTE)
729
729
  throw Error("The `live` directive is not allowed on child or event bindings");
730
- if (!cn(i))
730
+ if (!hn(i))
731
731
  throw Error("`live` bindings can only contain a single expression");
732
732
  }
733
733
  render(i) {
@@ -762,7 +762,7 @@ function Pi(i, t, e) {
762
762
  * @author owenm <owen23355@gmail.com>
763
763
  * @license MIT
764
764
  */
765
- function ui(i, t) {
765
+ function ci(i, t) {
766
766
  var e = Object.keys(i);
767
767
  if (Object.getOwnPropertySymbols) {
768
768
  var n = Object.getOwnPropertySymbols(i);
@@ -775,9 +775,9 @@ function ui(i, t) {
775
775
  function K(i) {
776
776
  for (var t = 1; t < arguments.length; t++) {
777
777
  var e = arguments[t] != null ? arguments[t] : {};
778
- t % 2 ? ui(Object(e), !0).forEach(function(n) {
778
+ t % 2 ? ci(Object(e), !0).forEach(function(n) {
779
779
  fn(i, n, e[n]);
780
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(e)) : ui(Object(e)).forEach(function(n) {
780
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(e)) : ci(Object(e)).forEach(function(n) {
781
781
  Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(e, n));
782
782
  });
783
783
  }
@@ -833,7 +833,7 @@ function et(i) {
833
833
  if (typeof window < "u" && window.navigator)
834
834
  return !!/* @__PURE__ */ navigator.userAgent.match(i);
835
835
  }
836
- var nt = et(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Kt = et(/Edge/i), ci = et(/firefox/i), Ut = et(/safari/i) && !et(/chrome/i) && !et(/android/i), Mi = et(/iP(ad|od|hone)/i), ki = et(/chrome/i) && et(/android/i), Ni = {
836
+ var nt = et(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Kt = et(/Edge/i), hi = et(/firefox/i), Ut = et(/safari/i) && !et(/chrome/i) && !et(/android/i), Mi = et(/iP(ad|od|hone)/i), ki = et(/chrome/i) && et(/android/i), Ni = {
837
837
  capture: !1,
838
838
  passive: !1
839
839
  };
@@ -874,14 +874,14 @@ function Z(i, t, e, n) {
874
874
  }
875
875
  return null;
876
876
  }
877
- var hi = /\s+/g;
877
+ var ui = /\s+/g;
878
878
  function F(i, t, e) {
879
879
  if (i && t)
880
880
  if (i.classList)
881
881
  i.classList[e ? "add" : "remove"](t);
882
882
  else {
883
- var n = (" " + i.className + " ").replace(hi, " ").replace(" " + t + " ", " ");
884
- i.className = (n + (e ? " " + t : "")).replace(hi, " ");
883
+ var n = (" " + i.className + " ").replace(ui, " ").replace(" " + t + " ", " ");
884
+ i.className = (n + (e ? " " + t : "")).replace(ui, " ");
885
885
  }
886
886
  }
887
887
  function v(i, t, e) {
@@ -920,26 +920,26 @@ function q() {
920
920
  }
921
921
  function T(i, t, e, n, r) {
922
922
  if (!(!i.getBoundingClientRect && i !== window)) {
923
- var o, a, s, l, d, p, u;
924
- if (i !== window && i.parentNode && i !== q() ? (o = i.getBoundingClientRect(), a = o.top, s = o.left, l = o.bottom, d = o.right, p = o.height, u = o.width) : (a = 0, s = 0, l = window.innerHeight, d = window.innerWidth, p = window.innerHeight, u = window.innerWidth), (t || e) && i !== window && (r = r || i.parentNode, !nt))
923
+ var o, a, s, l, d, u, c;
924
+ if (i !== window && i.parentNode && i !== q() ? (o = i.getBoundingClientRect(), a = o.top, s = o.left, l = o.bottom, d = o.right, u = o.height, c = o.width) : (a = 0, s = 0, l = window.innerHeight, d = window.innerWidth, u = window.innerHeight, c = window.innerWidth), (t || e) && i !== window && (r = r || i.parentNode, !nt))
925
925
  do
926
926
  if (r && r.getBoundingClientRect && (v(r, "transform") !== "none" || e && v(r, "position") !== "static")) {
927
- var h = r.getBoundingClientRect();
928
- a -= h.top + parseInt(v(r, "border-top-width")), s -= h.left + parseInt(v(r, "border-left-width")), l = a + o.height, d = s + o.width;
927
+ var p = r.getBoundingClientRect();
928
+ a -= p.top + parseInt(v(r, "border-top-width")), s -= p.left + parseInt(v(r, "border-left-width")), l = a + o.height, d = s + o.width;
929
929
  break;
930
930
  }
931
931
  while (r = r.parentNode);
932
932
  if (n && i !== window) {
933
933
  var g = Dt(r || i), f = g && g.a, m = g && g.d;
934
- g && (a /= m, s /= f, u /= f, p /= m, l = a + p, d = s + u);
934
+ g && (a /= m, s /= f, c /= f, u /= m, l = a + u, d = s + c);
935
935
  }
936
936
  return {
937
937
  top: a,
938
938
  left: s,
939
939
  bottom: l,
940
940
  right: d,
941
- width: u,
942
- height: p
941
+ width: c,
942
+ height: u
943
943
  };
944
944
  }
945
945
  }
@@ -1083,9 +1083,9 @@ function wn() {
1083
1083
  }
1084
1084
  var o = !1, a = 0;
1085
1085
  i.forEach(function(s) {
1086
- var l = 0, d = s.target, p = d.fromRect, u = T(d), h = d.prevFromRect, g = d.prevToRect, f = s.rect, m = Dt(d, !0);
1087
- m && (u.top -= m.f, u.left -= m.e), d.toRect = u, d.thisAnimationDuration && Se(h, u) && !Se(p, u) && // Make sure animatingRect is on line between toRect & fromRect
1088
- (f.top - u.top) / (f.left - u.left) === (p.top - u.top) / (p.left - u.left) && (l = An(f, h, g, r.options)), Se(u, p) || (d.prevFromRect = p, d.prevToRect = u, l || (l = r.options.animation), r.animate(d, f, u, l)), l && (o = !0, a = Math.max(a, l), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
1086
+ var l = 0, d = s.target, u = d.fromRect, c = T(d), p = d.prevFromRect, g = d.prevToRect, f = s.rect, m = Dt(d, !0);
1087
+ m && (c.top -= m.f, c.left -= m.e), d.toRect = c, d.thisAnimationDuration && Se(p, c) && !Se(u, c) && // Make sure animatingRect is on line between toRect & fromRect
1088
+ (f.top - c.top) / (f.left - c.left) === (u.top - c.top) / (u.left - c.left) && (l = An(f, p, g, r.options)), Se(c, u) || (d.prevFromRect = u, d.prevToRect = c, l || (l = r.options.animation), r.animate(d, f, c, l)), l && (o = !0, a = Math.max(a, l), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
1089
1089
  d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
1090
1090
  }, l), d.thisAnimationDuration = l);
1091
1091
  }), clearTimeout(t), o ? t = setTimeout(function() {
@@ -1095,8 +1095,8 @@ function wn() {
1095
1095
  animate: function(n, r, o, a) {
1096
1096
  if (a) {
1097
1097
  v(n, "transition", ""), v(n, "transform", "");
1098
- var s = Dt(this.el), l = s && s.a, d = s && s.d, p = (r.left - o.left) / (l || 1), u = (r.top - o.top) / (d || 1);
1099
- n.animatingX = !!p, n.animatingY = !!u, v(n, "transform", "translate3d(" + p + "px," + u + "px,0)"), this.forRepaintDummy = xn(n), v(n, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
1098
+ var s = Dt(this.el), l = s && s.a, d = s && s.d, u = (r.left - o.left) / (l || 1), c = (r.top - o.top) / (d || 1);
1099
+ n.animatingX = !!u, n.animatingY = !!c, v(n, "transform", "translate3d(" + u + "px," + c + "px,0)"), this.forRepaintDummy = xn(n), v(n, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
1100
1100
  v(n, "transition", ""), v(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
1101
1101
  }, a);
1102
1102
  }
@@ -1162,13 +1162,13 @@ var wt = [], De = {
1162
1162
  }
1163
1163
  };
1164
1164
  function Cn(i) {
1165
- var t = i.sortable, e = i.rootEl, n = i.name, r = i.targetEl, o = i.cloneEl, a = i.toEl, s = i.fromEl, l = i.oldIndex, d = i.newIndex, p = i.oldDraggableIndex, u = i.newDraggableIndex, h = i.originalEvent, g = i.putSortable, f = i.extraEventProperties;
1165
+ var t = i.sortable, e = i.rootEl, n = i.name, r = i.targetEl, o = i.cloneEl, a = i.toEl, s = i.fromEl, l = i.oldIndex, d = i.newIndex, u = i.oldDraggableIndex, c = i.newDraggableIndex, p = i.originalEvent, g = i.putSortable, f = i.extraEventProperties;
1166
1166
  if (t = t || e && e[z], !!t) {
1167
1167
  var m, S = t.options, V = "on" + n.charAt(0).toUpperCase() + n.substr(1);
1168
1168
  window.CustomEvent && !nt && !Kt ? m = new CustomEvent(n, {
1169
1169
  bubbles: !0,
1170
1170
  cancelable: !0
1171
- }) : (m = document.createEvent("Event"), m.initEvent(n, !0, !0)), m.to = a || e, m.from = s || e, m.item = r || e, m.clone = o, m.oldIndex = l, m.newIndex = d, m.oldDraggableIndex = p, m.newDraggableIndex = u, m.originalEvent = h, m.pullMode = g ? g.lastPutMode : void 0;
1171
+ }) : (m = document.createEvent("Event"), m.initEvent(n, !0, !0)), m.to = a || e, m.from = s || e, m.item = r || e, m.clone = o, m.oldIndex = l, m.newIndex = d, m.oldDraggableIndex = u, m.newDraggableIndex = c, m.originalEvent = p, m.pullMode = g ? g.lastPutMode : void 0;
1172
1172
  var O = K(K({}, f), Qt.getEventProperties(n, t));
1173
1173
  for (var Y in O)
1174
1174
  m[Y] = O[Y];
@@ -1178,7 +1178,7 @@ function Cn(i) {
1178
1178
  var $n = ["evt"], M = function(t, e) {
1179
1179
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = mn(n, $n);
1180
1180
  Qt.pluginEvent.bind(y)(t, e, K({
1181
- dragEl: c,
1181
+ dragEl: h,
1182
1182
  parentEl: C,
1183
1183
  ghostEl: b,
1184
1184
  rootEl: x,
@@ -1215,7 +1215,7 @@ function P(i) {
1215
1215
  Cn(K({
1216
1216
  putSortable: L,
1217
1217
  cloneEl: A,
1218
- targetEl: c,
1218
+ targetEl: h,
1219
1219
  rootEl: x,
1220
1220
  oldIndex: $t,
1221
1221
  oldDraggableIndex: jt,
@@ -1223,7 +1223,7 @@ function P(i) {
1223
1223
  newDraggableIndex: at
1224
1224
  }, i));
1225
1225
  }
1226
- var c, C, b, x, vt, ae, A, st, $t, U, jt, at, te, L, Ct = !1, fe = !1, ge = [], ft, X, Te, Oe, gi, mi, Bt, xt, Yt, Xt = !1, ee = !1, se, I, Le = [], Re = !1, me = [], ye = typeof document < "u", ie = Mi, vi = Kt || nt ? "cssFloat" : "float", Sn = ye && !ki && !Mi && "draggable" in document.createElement("div"), Ui = function() {
1226
+ var h, C, b, x, vt, ae, A, st, $t, U, jt, at, te, L, Ct = !1, fe = !1, ge = [], ft, X, Te, Oe, gi, mi, Bt, xt, Yt, Xt = !1, ee = !1, se, I, Le = [], Re = !1, me = [], ye = typeof document < "u", ie = Mi, vi = Kt || nt ? "cssFloat" : "float", Sn = ye && !ki && !Mi && "draggable" in document.createElement("div"), Ui = function() {
1227
1227
  if (ye) {
1228
1228
  if (nt)
1229
1229
  return !1;
@@ -1231,16 +1231,16 @@ var c, C, b, x, vt, ae, A, st, $t, U, jt, at, te, L, Ct = !1, fe = !1, ge = [],
1231
1231
  return i.style.cssText = "pointer-events:auto", i.style.pointerEvents === "auto";
1232
1232
  }
1233
1233
  }(), zi = function(t, e) {
1234
- var n = v(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o = Ot(t, 0, e), a = Ot(t, 1, e), s = o && v(o), l = a && v(a), d = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + T(o).width, p = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + T(a).width;
1234
+ var n = v(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o = Ot(t, 0, e), a = Ot(t, 1, e), s = o && v(o), l = a && v(a), d = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + T(o).width, u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + T(a).width;
1235
1235
  if (n.display === "flex")
1236
1236
  return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
1237
1237
  if (n.display === "grid")
1238
1238
  return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
1239
1239
  if (o && s.float && s.float !== "none") {
1240
- var u = s.float === "left" ? "left" : "right";
1241
- return a && (l.clear === "both" || l.clear === u) ? "vertical" : "horizontal";
1240
+ var c = s.float === "left" ? "left" : "right";
1241
+ return a && (l.clear === "both" || l.clear === c) ? "vertical" : "horizontal";
1242
1242
  }
1243
- return o && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || d >= r && n[vi] === "none" || a && n[vi] === "none" && d + p > r) ? "vertical" : "horizontal";
1243
+ return o && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || d >= r && n[vi] === "none" || a && n[vi] === "none" && d + u > r) ? "vertical" : "horizontal";
1244
1244
  }, Dn = function(t, e, n) {
1245
1245
  var r = n ? t.left : t.top, o = n ? t.right : t.bottom, a = n ? t.width : t.height, s = n ? e.left : e.top, l = n ? e.right : e.bottom, d = n ? e.width : e.height;
1246
1246
  return r === s || o === l || r + a / 2 === s + d / 2;
@@ -1256,18 +1256,18 @@ var c, C, b, x, vt, ae, A, st, $t, U, jt, at, te, L, Ct = !1, fe = !1, ge = [],
1256
1256
  }), n;
1257
1257
  }, ji = function(t) {
1258
1258
  function e(o, a) {
1259
- return function(s, l, d, p) {
1260
- var u = s.options.group.name && l.options.group.name && s.options.group.name === l.options.group.name;
1261
- if (o == null && (a || u))
1259
+ return function(s, l, d, u) {
1260
+ var c = s.options.group.name && l.options.group.name && s.options.group.name === l.options.group.name;
1261
+ if (o == null && (a || c))
1262
1262
  return !0;
1263
1263
  if (o == null || o === !1)
1264
1264
  return !1;
1265
1265
  if (a && o === "clone")
1266
1266
  return o;
1267
1267
  if (typeof o == "function")
1268
- return e(o(s, l, d, p), a)(s, l, d, p);
1269
- var h = (a ? s : l).options.group.name;
1270
- return o === !0 || typeof o == "string" && o === h || o.join && o.indexOf(h) > -1;
1268
+ return e(o(s, l, d, u), a)(s, l, d, u);
1269
+ var p = (a ? s : l).options.group.name;
1270
+ return o === !0 || typeof o == "string" && o === p || o.join && o.indexOf(p) > -1;
1271
1271
  };
1272
1272
  }
1273
1273
  var n = {}, r = t.group;
@@ -1284,7 +1284,7 @@ ye && !ki && document.addEventListener("click", function(i) {
1284
1284
  return i.preventDefault(), i.stopPropagation && i.stopPropagation(), i.stopImmediatePropagation && i.stopImmediatePropagation(), fe = !1, !1;
1285
1285
  }, !0);
1286
1286
  var gt = function(t) {
1287
- if (c) {
1287
+ if (h) {
1288
1288
  t = t.touches ? t.touches[0] : t;
1289
1289
  var e = Tn(t.clientX, t.clientY);
1290
1290
  if (e) {
@@ -1295,7 +1295,7 @@ var gt = function(t) {
1295
1295
  }
1296
1296
  }
1297
1297
  }, On = function(t) {
1298
- c && c.parentNode[z]._isOutsideThisEl(t.target);
1298
+ h && h.parentNode[z]._isOutsideThisEl(t.target);
1299
1299
  };
1300
1300
  function y(i, t) {
1301
1301
  if (!(i && i.nodeType && i.nodeType === 1))
@@ -1361,14 +1361,14 @@ y.prototype = /** @lends Sortable.prototype */
1361
1361
  !this.el.contains(t) && t !== this.el && (xt = null);
1362
1362
  },
1363
1363
  _getDirection: function(t, e) {
1364
- return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e, c) : this.options.direction;
1364
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e, h) : this.options.direction;
1365
1365
  },
1366
1366
  _onTapStart: function(t) {
1367
1367
  if (t.cancelable) {
1368
- var e = this, n = this.el, r = this.options, o = r.preventOnFilter, a = t.type, s = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (s || t).target, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, p = r.filter;
1369
- if (Vn(n), !c && !(/mousedown|pointerdown/.test(a) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable && Ut && l && l.tagName.toUpperCase() === "SELECT") && (l = Z(l, r.draggable, n, !1), !(l && l.animated) && ae !== l)) {
1370
- if ($t = j(l), jt = j(l, r.draggable), typeof p == "function") {
1371
- if (p.call(this, t, l, this)) {
1368
+ var e = this, n = this.el, r = this.options, o = r.preventOnFilter, a = t.type, s = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (s || t).target, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, u = r.filter;
1369
+ if (Vn(n), !h && !(/mousedown|pointerdown/.test(a) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable && Ut && l && l.tagName.toUpperCase() === "SELECT") && (l = Z(l, r.draggable, n, !1), !(l && l.animated) && ae !== l)) {
1370
+ if ($t = j(l), jt = j(l, r.draggable), typeof u == "function") {
1371
+ if (u.call(this, t, l, this)) {
1372
1372
  P({
1373
1373
  sortable: e,
1374
1374
  rootEl: d,
@@ -1381,11 +1381,11 @@ y.prototype = /** @lends Sortable.prototype */
1381
1381
  }), o && t.cancelable && t.preventDefault();
1382
1382
  return;
1383
1383
  }
1384
- } else if (p && (p = p.split(",").some(function(u) {
1385
- if (u = Z(d, u.trim(), n, !1), u)
1384
+ } else if (u && (u = u.split(",").some(function(c) {
1385
+ if (c = Z(d, c.trim(), n, !1), c)
1386
1386
  return P({
1387
1387
  sortable: e,
1388
- rootEl: u,
1388
+ rootEl: c,
1389
1389
  name: "filter",
1390
1390
  targetEl: l,
1391
1391
  fromEl: n,
@@ -1393,7 +1393,7 @@ y.prototype = /** @lends Sortable.prototype */
1393
1393
  }), M("filter", e, {
1394
1394
  evt: t
1395
1395
  }), !0;
1396
- }), p)) {
1396
+ }), u)) {
1397
1397
  o && t.cancelable && t.preventDefault();
1398
1398
  return;
1399
1399
  }
@@ -1403,27 +1403,27 @@ y.prototype = /** @lends Sortable.prototype */
1403
1403
  },
1404
1404
  _prepareDragStart: function(t, e, n) {
1405
1405
  var r = this, o = r.el, a = r.options, s = o.ownerDocument, l;
1406
- if (n && !c && n.parentNode === o) {
1406
+ if (n && !h && n.parentNode === o) {
1407
1407
  var d = T(n);
1408
- if (x = o, c = n, C = c.parentNode, vt = c.nextSibling, ae = n, te = a.group, y.dragged = c, ft = {
1409
- target: c,
1408
+ if (x = o, h = n, C = h.parentNode, vt = h.nextSibling, ae = n, te = a.group, y.dragged = h, ft = {
1409
+ target: h,
1410
1410
  clientX: (e || t).clientX,
1411
1411
  clientY: (e || t).clientY
1412
- }, gi = ft.clientX - d.left, mi = ft.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, c.style["will-change"] = "all", l = function() {
1412
+ }, gi = ft.clientX - d.left, mi = ft.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, h.style["will-change"] = "all", l = function() {
1413
1413
  if (M("delayEnded", r, {
1414
1414
  evt: t
1415
1415
  }), y.eventCanceled) {
1416
1416
  r._onDrop();
1417
1417
  return;
1418
1418
  }
1419
- r._disableDelayedDragEvents(), !ci && r.nativeDraggable && (c.draggable = !0), r._triggerDragStart(t, e), P({
1419
+ r._disableDelayedDragEvents(), !hi && r.nativeDraggable && (h.draggable = !0), r._triggerDragStart(t, e), P({
1420
1420
  sortable: r,
1421
1421
  name: "choose",
1422
1422
  originalEvent: t
1423
- }), F(c, a.chosenClass, !0);
1424
- }, a.ignore.split(",").forEach(function(p) {
1425
- Vi(c, p.trim(), He);
1426
- }), E(s, "dragover", gt), E(s, "mousemove", gt), E(s, "touchmove", gt), E(s, "mouseup", r._onDrop), E(s, "touchend", r._onDrop), E(s, "touchcancel", r._onDrop), ci && this.nativeDraggable && (this.options.touchStartThreshold = 4, c.draggable = !0), M("delayStart", this, {
1423
+ }), F(h, a.chosenClass, !0);
1424
+ }, a.ignore.split(",").forEach(function(u) {
1425
+ Vi(h, u.trim(), He);
1426
+ }), E(s, "dragover", gt), E(s, "mousemove", gt), E(s, "touchmove", gt), E(s, "mouseup", r._onDrop), E(s, "touchend", r._onDrop), E(s, "touchcancel", r._onDrop), hi && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), M("delayStart", this, {
1427
1427
  evt: t
1428
1428
  }), a.delay && (!a.delayOnTouchOnly || e) && (!this.nativeDraggable || !(Kt || nt))) {
1429
1429
  if (y.eventCanceled) {
@@ -1440,14 +1440,14 @@ y.prototype = /** @lends Sortable.prototype */
1440
1440
  Math.max(Math.abs(e.clientX - this._lastX), Math.abs(e.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
1441
1441
  },
1442
1442
  _disableDelayedDrag: function() {
1443
- c && He(c), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
1443
+ h && He(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
1444
1444
  },
1445
1445
  _disableDelayedDragEvents: function() {
1446
1446
  var t = this.el.ownerDocument;
1447
1447
  _(t, "mouseup", this._disableDelayedDrag), _(t, "touchend", this._disableDelayedDrag), _(t, "touchcancel", this._disableDelayedDrag), _(t, "mousemove", this._delayedDragTouchMoveHandler), _(t, "touchmove", this._delayedDragTouchMoveHandler), _(t, "pointermove", this._delayedDragTouchMoveHandler);
1448
1448
  },
1449
1449
  _triggerDragStart: function(t, e) {
1450
- e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? E(document, "pointermove", this._onTouchMove) : e ? E(document, "touchmove", this._onTouchMove) : E(document, "mousemove", this._onTouchMove) : (E(c, "dragend", this), E(x, "dragstart", this._onDragStart));
1450
+ e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? E(document, "pointermove", this._onTouchMove) : e ? E(document, "touchmove", this._onTouchMove) : E(document, "mousemove", this._onTouchMove) : (E(h, "dragend", this), E(x, "dragstart", this._onDragStart));
1451
1451
  try {
1452
1452
  document.selection ? le(function() {
1453
1453
  document.selection.empty();
@@ -1456,12 +1456,12 @@ y.prototype = /** @lends Sortable.prototype */
1456
1456
  }
1457
1457
  },
1458
1458
  _dragStarted: function(t, e) {
1459
- if (Ct = !1, x && c) {
1459
+ if (Ct = !1, x && h) {
1460
1460
  M("dragStarted", this, {
1461
1461
  evt: e
1462
1462
  }), this.nativeDraggable && E(document, "dragover", On);
1463
1463
  var n = this.options;
1464
- !t && F(c, n.dragClass, !1), F(c, n.ghostClass, !0), y.active = this, t && this._appendGhost(), P({
1464
+ !t && F(h, n.dragClass, !1), F(h, n.ghostClass, !0), y.active = this, t && this._appendGhost(), P({
1465
1465
  sortable: this,
1466
1466
  name: "start",
1467
1467
  originalEvent: e
@@ -1474,7 +1474,7 @@ y.prototype = /** @lends Sortable.prototype */
1474
1474
  this._lastX = X.clientX, this._lastY = X.clientY, Yi();
1475
1475
  for (var t = document.elementFromPoint(X.clientX, X.clientY), e = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(X.clientX, X.clientY), t !== e); )
1476
1476
  e = t;
1477
- if (c.parentNode[z]._isOutsideThisEl(t), e)
1477
+ if (h.parentNode[z]._isOutsideThisEl(t), e)
1478
1478
  do {
1479
1479
  if (e[z]) {
1480
1480
  var n = void 0;
@@ -1493,36 +1493,36 @@ y.prototype = /** @lends Sortable.prototype */
1493
1493
  },
1494
1494
  _onTouchMove: function(t) {
1495
1495
  if (ft) {
1496
- var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t, a = b && Dt(b, !0), s = b && a && a.a, l = b && a && a.d, d = ie && I && fi(I), p = (o.clientX - ft.clientX + r.x) / (s || 1) + (d ? d[0] - Le[0] : 0) / (s || 1), u = (o.clientY - ft.clientY + r.y) / (l || 1) + (d ? d[1] - Le[1] : 0) / (l || 1);
1496
+ var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t, a = b && Dt(b, !0), s = b && a && a.a, l = b && a && a.d, d = ie && I && fi(I), u = (o.clientX - ft.clientX + r.x) / (s || 1) + (d ? d[0] - Le[0] : 0) / (s || 1), c = (o.clientY - ft.clientY + r.y) / (l || 1) + (d ? d[1] - Le[1] : 0) / (l || 1);
1497
1497
  if (!y.active && !Ct) {
1498
1498
  if (n && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < n)
1499
1499
  return;
1500
1500
  this._onDragStart(t, !0);
1501
1501
  }
1502
1502
  if (b) {
1503
- a ? (a.e += p - (Te || 0), a.f += u - (Oe || 0)) : a = {
1503
+ a ? (a.e += u - (Te || 0), a.f += c - (Oe || 0)) : a = {
1504
1504
  a: 1,
1505
1505
  b: 0,
1506
1506
  c: 0,
1507
1507
  d: 1,
1508
- e: p,
1509
- f: u
1508
+ e: u,
1509
+ f: c
1510
1510
  };
1511
- var h = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
1512
- v(b, "webkitTransform", h), v(b, "mozTransform", h), v(b, "msTransform", h), v(b, "transform", h), Te = p, Oe = u, X = o;
1511
+ var p = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
1512
+ v(b, "webkitTransform", p), v(b, "mozTransform", p), v(b, "msTransform", p), v(b, "transform", p), Te = u, Oe = c, X = o;
1513
1513
  }
1514
1514
  t.cancelable && t.preventDefault();
1515
1515
  }
1516
1516
  },
1517
1517
  _appendGhost: function() {
1518
1518
  if (!b) {
1519
- var t = this.options.fallbackOnBody ? document.body : x, e = T(c, !0, ie, !0, t), n = this.options;
1519
+ var t = this.options.fallbackOnBody ? document.body : x, e = T(h, !0, ie, !0, t), n = this.options;
1520
1520
  if (ie) {
1521
1521
  for (I = t; v(I, "position") === "static" && v(I, "transform") === "none" && I !== document; )
1522
1522
  I = I.parentNode;
1523
1523
  I !== document.body && I !== document.documentElement ? (I === document && (I = q()), e.top += I.scrollTop, e.left += I.scrollLeft) : I = q(), Le = fi(I);
1524
1524
  }
1525
- b = c.cloneNode(!0), F(b, n.ghostClass, !1), F(b, n.fallbackClass, !0), F(b, n.dragClass, !0), v(b, "transition", ""), v(b, "transform", ""), v(b, "box-sizing", "border-box"), v(b, "margin", 0), v(b, "top", e.top), v(b, "left", e.left), v(b, "width", e.width), v(b, "height", e.height), v(b, "opacity", "0.8"), v(b, "position", ie ? "absolute" : "fixed"), v(b, "zIndex", "100000"), v(b, "pointerEvents", "none"), y.ghost = b, t.appendChild(b), v(b, "transform-origin", gi / parseInt(b.style.width) * 100 + "% " + mi / parseInt(b.style.height) * 100 + "%");
1525
+ b = h.cloneNode(!0), F(b, n.ghostClass, !1), F(b, n.fallbackClass, !0), F(b, n.dragClass, !0), v(b, "transition", ""), v(b, "transform", ""), v(b, "box-sizing", "border-box"), v(b, "margin", 0), v(b, "top", e.top), v(b, "left", e.left), v(b, "width", e.width), v(b, "height", e.height), v(b, "opacity", "0.8"), v(b, "position", ie ? "absolute" : "fixed"), v(b, "zIndex", "100000"), v(b, "pointerEvents", "none"), y.ghost = b, t.appendChild(b), v(b, "transform-origin", gi / parseInt(b.style.width) * 100 + "% " + mi / parseInt(b.style.height) * 100 + "%");
1526
1526
  }
1527
1527
  },
1528
1528
  _onDragStart: function(t, e) {
@@ -1533,48 +1533,48 @@ y.prototype = /** @lends Sortable.prototype */
1533
1533
  this._onDrop();
1534
1534
  return;
1535
1535
  }
1536
- M("setupClone", this), y.eventCanceled || (A = Fi(c), A.removeAttribute("id"), A.draggable = !1, A.style["will-change"] = "", this._hideClone(), F(A, this.options.chosenClass, !1), y.clone = A), n.cloneId = le(function() {
1537
- M("clone", n), !y.eventCanceled && (n.options.removeCloneOnHide || x.insertBefore(A, c), n._hideClone(), P({
1536
+ M("setupClone", this), y.eventCanceled || (A = Fi(h), A.removeAttribute("id"), A.draggable = !1, A.style["will-change"] = "", this._hideClone(), F(A, this.options.chosenClass, !1), y.clone = A), n.cloneId = le(function() {
1537
+ M("clone", n), !y.eventCanceled && (n.options.removeCloneOnHide || x.insertBefore(A, h), n._hideClone(), P({
1538
1538
  sortable: n,
1539
1539
  name: "clone"
1540
1540
  }));
1541
- }), !e && F(c, o.dragClass, !0), e ? (fe = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (_(document, "mouseup", n._onDrop), _(document, "touchend", n._onDrop), _(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, c)), E(document, "drop", n), v(c, "transform", "translateZ(0)")), Ct = !0, n._dragStartId = le(n._dragStarted.bind(n, e, t)), E(document, "selectstart", n), Bt = !0, Ut && v(document.body, "user-select", "none");
1541
+ }), !e && F(h, o.dragClass, !0), e ? (fe = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (_(document, "mouseup", n._onDrop), _(document, "touchend", n._onDrop), _(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, h)), E(document, "drop", n), v(h, "transform", "translateZ(0)")), Ct = !0, n._dragStartId = le(n._dragStarted.bind(n, e, t)), E(document, "selectstart", n), Bt = !0, Ut && v(document.body, "user-select", "none");
1542
1542
  },
1543
1543
  // Returns true - if no further action is needed (either inserted or another condition)
1544
1544
  _onDragOver: function(t) {
1545
- var e = this.el, n = t.target, r, o, a, s = this.options, l = s.group, d = y.active, p = te === l, u = s.sort, h = L || d, g, f = this, m = !1;
1545
+ var e = this.el, n = t.target, r, o, a, s = this.options, l = s.group, d = y.active, u = te === l, c = s.sort, p = L || d, g, f = this, m = !1;
1546
1546
  if (Re)
1547
1547
  return;
1548
1548
  function S(kt, qi) {
1549
1549
  M(kt, f, K({
1550
1550
  evt: t,
1551
- isOwner: p,
1551
+ isOwner: u,
1552
1552
  axis: g ? "vertical" : "horizontal",
1553
1553
  revert: a,
1554
1554
  dragRect: r,
1555
1555
  targetRect: o,
1556
- canSort: u,
1557
- fromSortable: h,
1556
+ canSort: c,
1557
+ fromSortable: p,
1558
1558
  target: n,
1559
1559
  completed: O,
1560
1560
  onMove: function(Ze, Ki) {
1561
- return ne(x, e, c, r, Ze, T(Ze), t, Ki);
1561
+ return ne(x, e, h, r, Ze, T(Ze), t, Ki);
1562
1562
  },
1563
1563
  changed: Y
1564
1564
  }, qi));
1565
1565
  }
1566
1566
  function V() {
1567
- S("dragOverAnimationCapture"), f.captureAnimationState(), f !== h && h.captureAnimationState();
1567
+ S("dragOverAnimationCapture"), f.captureAnimationState(), f !== p && p.captureAnimationState();
1568
1568
  }
1569
1569
  function O(kt) {
1570
1570
  return S("dragOverCompleted", {
1571
1571
  insertion: kt
1572
- }), kt && (p ? d._hideClone() : d._showClone(f), f !== h && (F(c, L ? L.options.ghostClass : d.options.ghostClass, !1), F(c, s.ghostClass, !0)), L !== f && f !== y.active ? L = f : f === y.active && L && (L = null), h === f && (f._ignoreWhileAnimating = n), f.animateAll(function() {
1572
+ }), kt && (u ? d._hideClone() : d._showClone(f), f !== p && (F(h, L ? L.options.ghostClass : d.options.ghostClass, !1), F(h, s.ghostClass, !0)), L !== f && f !== y.active ? L = f : f === y.active && L && (L = null), p === f && (f._ignoreWhileAnimating = n), f.animateAll(function() {
1573
1573
  S("dragOverAnimationComplete"), f._ignoreWhileAnimating = null;
1574
- }), f !== h && (h.animateAll(), h._ignoreWhileAnimating = null)), (n === c && !c.animated || n === e && !n.animated) && (xt = null), !s.dragoverBubble && !t.rootEl && n !== document && (c.parentNode[z]._isOutsideThisEl(t.target), !kt && gt(t)), !s.dragoverBubble && t.stopPropagation && t.stopPropagation(), m = !0;
1574
+ }), f !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (xt = null), !s.dragoverBubble && !t.rootEl && n !== document && (h.parentNode[z]._isOutsideThisEl(t.target), !kt && gt(t)), !s.dragoverBubble && t.stopPropagation && t.stopPropagation(), m = !0;
1575
1575
  }
1576
1576
  function Y() {
1577
- U = j(c), at = j(c, s.draggable), P({
1577
+ U = j(h), at = j(h, s.draggable), P({
1578
1578
  sortable: f,
1579
1579
  name: "change",
1580
1580
  toEl: e,
@@ -1585,34 +1585,34 @@ y.prototype = /** @lends Sortable.prototype */
1585
1585
  }
1586
1586
  if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = Z(n, s.draggable, e, !0), S("dragOver"), y.eventCanceled)
1587
1587
  return m;
1588
- if (c.contains(t.target) || n.animated && n.animatingX && n.animatingY || f._ignoreWhileAnimating === n)
1588
+ if (h.contains(t.target) || n.animated && n.animatingX && n.animatingY || f._ignoreWhileAnimating === n)
1589
1589
  return O(!1);
1590
- if (fe = !1, d && !s.disabled && (p ? u || (a = C !== x) : L === this || (this.lastPutMode = te.checkPull(this, d, c, t)) && l.checkPut(this, d, c, t))) {
1591
- if (g = this._getDirection(t, n) === "vertical", r = T(c), S("dragOverValid"), y.eventCanceled)
1590
+ if (fe = !1, d && !s.disabled && (u ? c || (a = C !== x) : L === this || (this.lastPutMode = te.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
1591
+ if (g = this._getDirection(t, n) === "vertical", r = T(h), S("dragOverValid"), y.eventCanceled)
1592
1592
  return m;
1593
1593
  if (a)
1594
- return C = x, V(), this._hideClone(), S("revert"), y.eventCanceled || (vt ? x.insertBefore(c, vt) : x.appendChild(c)), O(!0);
1594
+ return C = x, V(), this._hideClone(), S("revert"), y.eventCanceled || (vt ? x.insertBefore(h, vt) : x.appendChild(h)), O(!0);
1595
1595
  var B = Xe(e, s.draggable);
1596
1596
  if (!B || Pn(t, g, this) && !B.animated) {
1597
- if (B === c)
1597
+ if (B === h)
1598
1598
  return O(!1);
1599
- if (B && e === t.target && (n = B), n && (o = T(n)), ne(x, e, c, r, n, o, t, !!n) !== !1)
1600
- return V(), B && B.nextSibling ? e.insertBefore(c, B.nextSibling) : e.appendChild(c), C = e, Y(), O(!0);
1599
+ if (B && e === t.target && (n = B), n && (o = T(n)), ne(x, e, h, r, n, o, t, !!n) !== !1)
1600
+ return V(), B && B.nextSibling ? e.insertBefore(h, B.nextSibling) : e.appendChild(h), C = e, Y(), O(!0);
1601
1601
  } else if (B && In(t, g, this)) {
1602
1602
  var dt = Ot(e, 0, s, !0);
1603
- if (dt === c)
1603
+ if (dt === h)
1604
1604
  return O(!1);
1605
- if (n = dt, o = T(n), ne(x, e, c, r, n, o, t, !1) !== !1)
1606
- return V(), e.insertBefore(c, dt), C = e, Y(), O(!0);
1605
+ if (n = dt, o = T(n), ne(x, e, h, r, n, o, t, !1) !== !1)
1606
+ return V(), e.insertBefore(h, dt), C = e, Y(), O(!0);
1607
1607
  } else if (n.parentNode === e) {
1608
1608
  o = T(n);
1609
- var G = 0, ut, Ht = c.parentNode !== e, R = !Dn(c.animated && c.toRect || r, n.animated && n.toRect || o, g), It = g ? "top" : "left", rt = pi(n, "top", "top") || pi(c, "top", "top"), Pt = rt ? rt.scrollTop : void 0;
1610
- xt !== n && (ut = o[It], Xt = !1, ee = !R && s.invertSwap || Ht), G = Mn(t, n, o, g, R ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, ee, xt === n);
1609
+ var G = 0, ct, Ht = h.parentNode !== e, R = !Dn(h.animated && h.toRect || r, n.animated && n.toRect || o, g), It = g ? "top" : "left", rt = pi(n, "top", "top") || pi(h, "top", "top"), Pt = rt ? rt.scrollTop : void 0;
1610
+ xt !== n && (ct = o[It], Xt = !1, ee = !R && s.invertSwap || Ht), G = Mn(t, n, o, g, R ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, ee, xt === n);
1611
1611
  var J;
1612
1612
  if (G !== 0) {
1613
- var ct = j(c);
1613
+ var ht = j(h);
1614
1614
  do
1615
- ct -= G, J = C.children[ct];
1615
+ ht -= G, J = C.children[ht];
1616
1616
  while (J && (v(J, "display") === "none" || J === b));
1617
1617
  }
1618
1618
  if (G === 0 || J === n)
@@ -1620,11 +1620,11 @@ y.prototype = /** @lends Sortable.prototype */
1620
1620
  xt = n, Yt = G;
1621
1621
  var Mt = n.nextElementSibling, ot = !1;
1622
1622
  ot = G === 1;
1623
- var Jt = ne(x, e, c, r, n, o, t, ot);
1623
+ var Jt = ne(x, e, h, r, n, o, t, ot);
1624
1624
  if (Jt !== !1)
1625
- return (Jt === 1 || Jt === -1) && (ot = Jt === 1), Re = !0, setTimeout(Hn, 30), V(), ot && !Mt ? e.appendChild(c) : n.parentNode.insertBefore(c, ot ? Mt : n), rt && Ri(rt, 0, Pt - rt.scrollTop), C = c.parentNode, ut !== void 0 && !ee && (se = Math.abs(ut - T(n)[It])), Y(), O(!0);
1625
+ return (Jt === 1 || Jt === -1) && (ot = Jt === 1), Re = !0, setTimeout(Hn, 30), V(), ot && !Mt ? e.appendChild(h) : n.parentNode.insertBefore(h, ot ? Mt : n), rt && Ri(rt, 0, Pt - rt.scrollTop), C = h.parentNode, ct !== void 0 && !ee && (se = Math.abs(ct - T(n)[It])), Y(), O(!0);
1626
1626
  }
1627
- if (e.contains(c))
1627
+ if (e.contains(h))
1628
1628
  return O(!1);
1629
1629
  }
1630
1630
  return !1;
@@ -1639,13 +1639,13 @@ y.prototype = /** @lends Sortable.prototype */
1639
1639
  },
1640
1640
  _onDrop: function(t) {
1641
1641
  var e = this.el, n = this.options;
1642
- if (U = j(c), at = j(c, n.draggable), M("drop", this, {
1642
+ if (U = j(h), at = j(h, n.draggable), M("drop", this, {
1643
1643
  evt: t
1644
- }), C = c && c.parentNode, U = j(c), at = j(c, n.draggable), y.eventCanceled) {
1644
+ }), C = h && h.parentNode, U = j(h), at = j(h, n.draggable), y.eventCanceled) {
1645
1645
  this._nulling();
1646
1646
  return;
1647
1647
  }
1648
- Ct = !1, ee = !1, Xt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Fe(this.cloneId), Fe(this._dragStartId), this.nativeDraggable && (_(document, "drop", this), _(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ut && v(document.body, "user-select", ""), v(c, "transform", ""), t && (Bt && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), b && b.parentNode && b.parentNode.removeChild(b), (x === C || L && L.lastPutMode !== "clone") && A && A.parentNode && A.parentNode.removeChild(A), c && (this.nativeDraggable && _(c, "dragend", this), He(c), c.style["will-change"] = "", Bt && !Ct && F(c, L ? L.options.ghostClass : this.options.ghostClass, !1), F(c, this.options.chosenClass, !1), P({
1648
+ Ct = !1, ee = !1, Xt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Fe(this.cloneId), Fe(this._dragStartId), this.nativeDraggable && (_(document, "drop", this), _(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ut && v(document.body, "user-select", ""), v(h, "transform", ""), t && (Bt && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), b && b.parentNode && b.parentNode.removeChild(b), (x === C || L && L.lastPutMode !== "clone") && A && A.parentNode && A.parentNode.removeChild(A), h && (this.nativeDraggable && _(h, "dragend", this), He(h), h.style["will-change"] = "", Bt && !Ct && F(h, L ? L.options.ghostClass : this.options.ghostClass, !1), F(h, this.options.chosenClass, !1), P({
1649
1649
  sortable: this,
1650
1650
  name: "unchoose",
1651
1651
  toEl: C,
@@ -1692,7 +1692,7 @@ y.prototype = /** @lends Sortable.prototype */
1692
1692
  }), this.save()))), this._nulling();
1693
1693
  },
1694
1694
  _nulling: function() {
1695
- M("nulling", this), x = c = C = b = vt = A = ae = st = ft = X = Bt = U = at = $t = jt = xt = Yt = L = te = y.dragged = y.ghost = y.clone = y.active = null, me.forEach(function(t) {
1695
+ M("nulling", this), x = h = C = b = vt = A = ae = st = ft = X = Bt = U = at = $t = jt = xt = Yt = L = te = y.dragged = y.ghost = y.clone = y.active = null, me.forEach(function(t) {
1696
1696
  t.checked = !0;
1697
1697
  }), me.length = Te = Oe = 0;
1698
1698
  },
@@ -1704,7 +1704,7 @@ y.prototype = /** @lends Sortable.prototype */
1704
1704
  break;
1705
1705
  case "dragenter":
1706
1706
  case "dragover":
1707
- c && (this._onDragOver(t), Ln(t));
1707
+ h && (this._onDragOver(t), Ln(t));
1708
1708
  break;
1709
1709
  case "selectstart":
1710
1710
  t.preventDefault();
@@ -1787,7 +1787,7 @@ y.prototype = /** @lends Sortable.prototype */
1787
1787
  if (st) {
1788
1788
  if (M("showClone", this), y.eventCanceled)
1789
1789
  return;
1790
- c.parentNode == x && !this.options.group.revertClone ? x.insertBefore(A, c) : vt ? x.insertBefore(A, vt) : x.appendChild(A), this.options.group.revertClone && this.animate(c, A), v(A, "display", ""), st = !1;
1790
+ h.parentNode == x && !this.options.group.revertClone ? x.insertBefore(A, h) : vt ? x.insertBefore(A, vt) : x.appendChild(A), this.options.group.revertClone && this.animate(h, A), v(A, "display", ""), st = !1;
1791
1791
  }
1792
1792
  }
1793
1793
  };
@@ -1795,11 +1795,11 @@ function Ln(i) {
1795
1795
  i.dataTransfer && (i.dataTransfer.dropEffect = "move"), i.cancelable && i.preventDefault();
1796
1796
  }
1797
1797
  function ne(i, t, e, n, r, o, a, s) {
1798
- var l, d = i[z], p = d.options.onMove, u;
1798
+ var l, d = i[z], u = d.options.onMove, c;
1799
1799
  return window.CustomEvent && !nt && !Kt ? l = new CustomEvent("move", {
1800
1800
  bubbles: !0,
1801
1801
  cancelable: !0
1802
- }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = i, l.dragged = e, l.draggedRect = n, l.related = r || t, l.relatedRect = o || T(t), l.willInsertAfter = s, l.originalEvent = a, i.dispatchEvent(l), p && (u = p.call(d, l, a)), u;
1802
+ }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = i, l.dragged = e, l.draggedRect = n, l.related = r || t, l.relatedRect = o || T(t), l.willInsertAfter = s, l.originalEvent = a, i.dispatchEvent(l), u && (c = u.call(d, l, a)), c;
1803
1803
  }
1804
1804
  function He(i) {
1805
1805
  i.draggable = !1;
@@ -1816,20 +1816,20 @@ function Pn(i, t, e) {
1816
1816
  return t ? i.clientX > n.right + r || i.clientX <= n.right && i.clientY > n.bottom && i.clientX >= n.left : i.clientX > n.right && i.clientY > n.top || i.clientX <= n.right && i.clientY > n.bottom + r;
1817
1817
  }
1818
1818
  function Mn(i, t, e, n, r, o, a, s) {
1819
- var l = n ? i.clientY : i.clientX, d = n ? e.height : e.width, p = n ? e.top : e.left, u = n ? e.bottom : e.right, h = !1;
1819
+ var l = n ? i.clientY : i.clientX, d = n ? e.height : e.width, u = n ? e.top : e.left, c = n ? e.bottom : e.right, p = !1;
1820
1820
  if (!a) {
1821
1821
  if (s && se < d * r) {
1822
- if (!Xt && (Yt === 1 ? l > p + d * o / 2 : l < u - d * o / 2) && (Xt = !0), Xt)
1823
- h = !0;
1824
- else if (Yt === 1 ? l < p + se : l > u - se)
1822
+ if (!Xt && (Yt === 1 ? l > u + d * o / 2 : l < c - d * o / 2) && (Xt = !0), Xt)
1823
+ p = !0;
1824
+ else if (Yt === 1 ? l < u + se : l > c - se)
1825
1825
  return -Yt;
1826
- } else if (l > p + d * (1 - r) / 2 && l < u - d * (1 - r) / 2)
1826
+ } else if (l > u + d * (1 - r) / 2 && l < c - d * (1 - r) / 2)
1827
1827
  return kn(t);
1828
1828
  }
1829
- return h = h || a, h && (l < p + d * o / 2 || l > u - d * o / 2) ? l > p + d / 2 ? 1 : -1 : 0;
1829
+ return p = p || a, p && (l < u + d * o / 2 || l > c - d * o / 2) ? l > u + d / 2 ? 1 : -1 : 0;
1830
1830
  }
1831
1831
  function kn(i) {
1832
- return j(c) < j(i) ? 1 : -1;
1832
+ return j(h) < j(i) ? 1 : -1;
1833
1833
  }
1834
1834
  function Nn(i) {
1835
1835
  for (var t = i.tagName + i.className + i.src + i.href + i.textContent, e = t.length, n = 0; e--; )
@@ -1950,24 +1950,24 @@ function yi() {
1950
1950
  }
1951
1951
  var Me = Bi(function(i, t, e, n) {
1952
1952
  if (t.scroll) {
1953
- var r = (i.touches ? i.touches[0] : i).clientX, o = (i.touches ? i.touches[0] : i).clientY, a = t.scrollSensitivity, s = t.scrollSpeed, l = q(), d = !1, p;
1954
- Ue !== e && (Ue = e, de(), Rt = t.scroll, p = t.scrollFn, Rt === !0 && (Rt = lt(e, !0)));
1955
- var u = 0, h = Rt;
1953
+ var r = (i.touches ? i.touches[0] : i).clientX, o = (i.touches ? i.touches[0] : i).clientY, a = t.scrollSensitivity, s = t.scrollSpeed, l = q(), d = !1, u;
1954
+ Ue !== e && (Ue = e, de(), Rt = t.scroll, u = t.scrollFn, Rt === !0 && (Rt = lt(e, !0)));
1955
+ var c = 0, p = Rt;
1956
1956
  do {
1957
- var g = h, f = T(g), m = f.top, S = f.bottom, V = f.left, O = f.right, Y = f.width, B = f.height, dt = void 0, G = void 0, ut = g.scrollWidth, Ht = g.scrollHeight, R = v(g), It = g.scrollLeft, rt = g.scrollTop;
1958
- g === l ? (dt = Y < ut && (R.overflowX === "auto" || R.overflowX === "scroll" || R.overflowX === "visible"), G = B < Ht && (R.overflowY === "auto" || R.overflowY === "scroll" || R.overflowY === "visible")) : (dt = Y < ut && (R.overflowX === "auto" || R.overflowX === "scroll"), G = B < Ht && (R.overflowY === "auto" || R.overflowY === "scroll"));
1959
- var Pt = dt && (Math.abs(O - r) <= a && It + Y < ut) - (Math.abs(V - r) <= a && !!It), J = G && (Math.abs(S - o) <= a && rt + B < Ht) - (Math.abs(m - o) <= a && !!rt);
1960
- if (!D[u])
1961
- for (var ct = 0; ct <= u; ct++)
1962
- D[ct] || (D[ct] = {});
1963
- (D[u].vx != Pt || D[u].vy != J || D[u].el !== g) && (D[u].el = g, D[u].vx = Pt, D[u].vy = J, clearInterval(D[u].pid), (Pt != 0 || J != 0) && (d = !0, D[u].pid = setInterval(function() {
1957
+ var g = p, f = T(g), m = f.top, S = f.bottom, V = f.left, O = f.right, Y = f.width, B = f.height, dt = void 0, G = void 0, ct = g.scrollWidth, Ht = g.scrollHeight, R = v(g), It = g.scrollLeft, rt = g.scrollTop;
1958
+ g === l ? (dt = Y < ct && (R.overflowX === "auto" || R.overflowX === "scroll" || R.overflowX === "visible"), G = B < Ht && (R.overflowY === "auto" || R.overflowY === "scroll" || R.overflowY === "visible")) : (dt = Y < ct && (R.overflowX === "auto" || R.overflowX === "scroll"), G = B < Ht && (R.overflowY === "auto" || R.overflowY === "scroll"));
1959
+ var Pt = dt && (Math.abs(O - r) <= a && It + Y < ct) - (Math.abs(V - r) <= a && !!It), J = G && (Math.abs(S - o) <= a && rt + B < Ht) - (Math.abs(m - o) <= a && !!rt);
1960
+ if (!D[c])
1961
+ for (var ht = 0; ht <= c; ht++)
1962
+ D[ht] || (D[ht] = {});
1963
+ (D[c].vx != Pt || D[c].vy != J || D[c].el !== g) && (D[c].el = g, D[c].vx = Pt, D[c].vy = J, clearInterval(D[c].pid), (Pt != 0 || J != 0) && (d = !0, D[c].pid = setInterval(function() {
1964
1964
  n && this.layer === 0 && y.active._onTouchMove(ve);
1965
1965
  var Mt = D[this.layer].vy ? D[this.layer].vy * s : 0, ot = D[this.layer].vx ? D[this.layer].vx * s : 0;
1966
- typeof p == "function" && p.call(y.dragged.parentNode[z], ot, Mt, i, ve, D[this.layer].el) !== "continue" || Ri(D[this.layer].el, ot, Mt);
1966
+ typeof u == "function" && u.call(y.dragged.parentNode[z], ot, Mt, i, ve, D[this.layer].el) !== "continue" || Ri(D[this.layer].el, ot, Mt);
1967
1967
  }.bind({
1968
- layer: u
1969
- }), 24))), u++;
1970
- } while (t.bubbleScroll && h !== l && (h = lt(h, !1)));
1968
+ layer: c
1969
+ }), 24))), c++;
1970
+ } while (t.bubbleScroll && p !== l && (p = lt(p, !1)));
1971
1971
  ze = d;
1972
1972
  }
1973
1973
  }, 30), Wi = function(t) {
@@ -1975,8 +1975,8 @@ var Me = Bi(function(i, t, e, n) {
1975
1975
  if (e) {
1976
1976
  var d = n || o;
1977
1977
  s();
1978
- var p = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, u = document.elementFromPoint(p.clientX, p.clientY);
1979
- l(), d && !d.el.contains(u) && (a("spill"), this.onSpill({
1978
+ var u = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, c = document.elementFromPoint(u.clientX, u.clientY);
1979
+ l(), d && !d.el.contains(c) && (a("spill"), this.onSpill({
1980
1980
  dragEl: r,
1981
1981
  putSortable: n
1982
1982
  }));
@@ -2573,37 +2573,50 @@ let k = class extends St {
2573
2573
  this.resizeObserver && (this.resizeObserver.disconnect(), this.resizeObserver = null), super.disconnectedCallback();
2574
2574
  }
2575
2575
  render() {
2576
- var r;
2576
+ var a;
2577
2577
  const i = document.querySelector(this.for);
2578
2578
  if (i && (i.map ? this.olMap = i.map : this.olMap = i), !this.olMap)
2579
2579
  return w;
2580
2580
  const t = this.olMap.getLayers();
2581
- this._updateControl(t), t.on("change:length", () => {
2582
- this._currentlySorting || this._updateControl(t);
2583
- });
2584
- const e = (o, a) => {
2585
- var s;
2581
+ this._updateControl(t);
2582
+ const e = (s) => {
2583
+ s.on("change:length", () => {
2584
+ this._currentlySorting || this._updateControl(s);
2585
+ });
2586
+ };
2587
+ e(t);
2588
+ const n = (s) => {
2589
+ s.getArray().forEach((l) => {
2590
+ if (l.getLayers) {
2591
+ const d = l.getLayers();
2592
+ e(d), n(d);
2593
+ }
2594
+ });
2595
+ };
2596
+ n(t);
2597
+ const r = (s, l) => {
2598
+ var d;
2586
2599
  return H`
2587
- <details open="${o.get("layerControlExpanded") ? !0 : w}">
2600
+ <details open="${s.get("layerControlExpanded") ? !0 : w}">
2588
2601
  <summary>
2589
2602
  <div class="layer">
2590
2603
  <div class="left">
2591
2604
  <input
2592
- type="${o.get("layerControlExclusive") ? "radio" : "checkbox"}"
2593
- .checked="${Be(o.getVisible())}"
2605
+ type="${s.get("layerControlExclusive") ? "radio" : "checkbox"}"
2606
+ .checked="${Be(s.getVisible())}"
2594
2607
  @click=${() => {
2595
- this.toggleLayerVisibility(o, a);
2608
+ this.toggleLayerVisibility(s, l);
2596
2609
  }}
2597
2610
  />
2598
2611
  <span class="title"
2599
2612
  ><span
2600
- >${o.get(this.layerTitle) || `${o.get(this.layerIdentifier)}`}</span
2613
+ >${s.get(this.layerTitle) || `${s.get(this.layerIdentifier)}`}</span
2601
2614
  >
2602
2615
  </span>
2603
2616
  </div>
2604
2617
  <div class="right">
2605
2618
  ${this.sortBy === "layerOrder" && !this.unstyled ? H` <div
2606
- class="drag-handle ${o.get("layerControlDisable") ? "disabled" : ""}"
2619
+ class="drag-handle ${s.get("layerControlDisable") ? "disabled" : ""}"
2607
2620
  >
2608
2621
  <span>=</span>
2609
2622
  </div>` : w}
@@ -2614,43 +2627,43 @@ let k = class extends St {
2614
2627
  <eox-layerconfig
2615
2628
  .layerConfig="${this.layerConfig}"
2616
2629
  .layerControl="${this}"
2617
- .layer=${o}
2630
+ .layer=${s}
2618
2631
  .external=${this.externalLayerConfig}
2619
2632
  .unstyled="${this.unstyled}"
2620
2633
  ></eox-layerconfig>
2621
2634
  ` : w}
2622
- ${this.externalLayerConfig && ((s = o.style_) != null && s.color) ? H`
2623
- <button @click=${() => this._emitLayerconfig(o)}>
2635
+ ${this.externalLayerConfig && ((d = s.style_) != null && d.color) ? H`
2636
+ <button @click=${() => this._emitLayerconfig(s)}>
2624
2637
  configure
2625
2638
  </button>
2626
2639
  ` : w}
2627
- ${o.getLayers ? H`
2628
- ${n(
2640
+ ${s.getLayers ? H`
2641
+ ${o(
2629
2642
  this.preFilterLayers(
2630
2643
  [
2631
- ...o.getLayers().getArray()
2644
+ ...s.getLayers().getArray()
2632
2645
  ].reverse()
2633
2646
  ),
2634
- o.get(this.layerIdentifier)
2647
+ s.get(this.layerIdentifier)
2635
2648
  )}
2636
2649
  ` : w}
2637
2650
  </details>
2638
2651
  `;
2639
- }, n = (o, a) => H`
2640
- <ul data-group="${a ?? w}">
2652
+ }, o = (s, l) => H`
2653
+ <ul data-group="${l ?? w}">
2641
2654
  ${Ve(
2642
- o,
2643
- (s) => s.get(this.layerIdentifier),
2644
- (s) => {
2645
- var l;
2655
+ s,
2656
+ (d) => d.get(this.layerIdentifier),
2657
+ (d) => {
2658
+ var u;
2646
2659
  return H`
2647
2660
  <li
2648
- data-layer="${s.get(this.layerIdentifier)}"
2649
- data-disabled="${s.get("layerControlDisable") || w}"
2650
- data-type="${this.getLayerType(s, this.olMap)}"
2651
- data-layerconfig="${((l = this.layerConfig) == null ? void 0 : l.length) > 0}"
2661
+ data-layer="${d.get(this.layerIdentifier)}"
2662
+ data-disabled="${d.get("layerControlDisable") || w}"
2663
+ data-type="${this.getLayerType(d, this.olMap)}"
2664
+ data-layerconfig="${((u = this.layerConfig) == null ? void 0 : u.length) > 0}"
2652
2665
  >
2653
- ${e(s, a)}
2666
+ ${r(d, l)}
2654
2667
  </li>
2655
2668
  `;
2656
2669
  }
@@ -2666,12 +2679,12 @@ let k = class extends St {
2666
2679
  <slot></slot>
2667
2680
  ${this.layerCollection.getArray().length > 10 ? H`<input type="text" placeholder="Find layer" />` : w}
2668
2681
  <div class="layers">
2669
- ${n(
2682
+ ${o(
2670
2683
  this.preFilterLayers(t.getArray())
2671
2684
  )}
2672
2685
  </div>
2673
2686
  ${Pi(
2674
- ((r = this.optionalLayerArray) == null ? void 0 : r.length) > 0,
2687
+ ((a = this.optionalLayerArray) == null ? void 0 : a.length) > 0,
2675
2688
  () => H`
2676
2689
  <label for="optional">Optional layers</label>
2677
2690
 
@@ -2680,30 +2693,30 @@ let k = class extends St {
2680
2693
  -- select an optional layer to add --
2681
2694
  </option>
2682
2695
  ${this.optionalLayerArray.map(
2683
- (o) => H`
2684
- <option value="${o.get(this.layerIdentifier)}">
2685
- ${o.get(this.layerTitle) || `layer ${o.get(this.layerIdentifier)}`}
2696
+ (s) => H`
2697
+ <option value="${s.get(this.layerIdentifier)}">
2698
+ ${s.get(this.layerTitle) || `layer ${s.get(this.layerIdentifier)}`}
2686
2699
  </option>
2687
2700
  `
2688
2701
  )}
2689
2702
  </select>
2690
2703
  <button
2691
2704
  @click="${() => {
2692
- const o = this.optionalLayerArray.find(
2693
- (a) => a.get(this.layerIdentifier) === this.shadowRoot.querySelector("select[name=optional]").value
2705
+ const s = this.optionalLayerArray.find(
2706
+ (l) => l.get(this.layerIdentifier) === this.shadowRoot.querySelector("select[name=optional]").value
2694
2707
  );
2695
- if (o.get("group")) {
2696
- const a = this.findLayerById(
2708
+ if (s.get("group")) {
2709
+ const l = this.findLayerById(
2697
2710
  this.layerCollection.getArray(),
2698
- o.get("group")
2711
+ s.get("group")
2699
2712
  );
2700
- a.getLayers().remove(o), a.getLayers().insertAt(a.getLayers().getLength(), o);
2713
+ l.getLayers().remove(s), l.getLayers().insertAt(l.getLayers().getLength(), s);
2701
2714
  } else
2702
- this.layerCollection.remove(o), this.layerCollection.insertAt(
2715
+ this.layerCollection.remove(s), this.layerCollection.insertAt(
2703
2716
  this.layerCollection.getLength(),
2704
- o
2717
+ s
2705
2718
  );
2706
- o.set("layerControlOptional", !1), o.setVisible(!0);
2719
+ s.set("layerControlOptional", !1), s.setVisible(!0);
2707
2720
  }}"
2708
2721
  >
2709
2722
  add
@@ -2724,14 +2737,20 @@ let k = class extends St {
2724
2737
  animation: 150,
2725
2738
  easing: "cubic-bezier(1, 0, 0, 1)",
2726
2739
  store: {
2727
- get: () => e ? [
2728
- ...this.findLayerById(
2729
- this.layerCollection.getArray(),
2730
- e
2731
- ).getLayers().getArray().map((o) => o.get(this.layerIdentifier))
2732
- ].reverse() : [
2733
- ...this.layerCollection.getArray().map((n) => n.get(this.layerIdentifier))
2734
- ].reverse(),
2740
+ get: () => {
2741
+ if (e) {
2742
+ const n = this.findLayerById(
2743
+ this.layerCollection.getArray(),
2744
+ e
2745
+ ), r = n == null ? void 0 : n.getLayers();
2746
+ return r ? [
2747
+ ...r.getArray().map((o) => o.get(this.layerIdentifier))
2748
+ ].reverse() : void 0;
2749
+ } else
2750
+ return [
2751
+ ...this.layerCollection.getArray().map((n) => n.get(this.layerIdentifier))
2752
+ ].reverse();
2753
+ },
2735
2754
  set: (n) => {
2736
2755
  n.toArray().reverse().forEach((o, a) => {
2737
2756
  if (e) {