@eox/layercontrol 0.6.1 → 0.6.3

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 Ri = (i) => new Bi(typeof i == "string" ? i : i + "", void 0, ri), Ui = (i
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
41
  */
42
42
  var ae;
43
- const qt = window, ke = qt.trustedTypes, Fi = ke ? ke.emptyScript : "", Ve = qt.reactiveElementPolyfillSupport, Ee = { toAttribute(i, t) {
43
+ const Zt = window, ke = Zt.trustedTypes, Fi = ke ? ke.emptyScript : "", Ve = Zt.reactiveElementPolyfillSupport, Ee = { toAttribute(i, t) {
44
44
  switch (t) {
45
45
  case Boolean:
46
46
  i = i ? Fi : null;
@@ -248,14 +248,14 @@ let ft = class extends HTMLElement {
248
248
  firstUpdated(t) {
249
249
  }
250
250
  };
251
- ft[we] = !0, ft.elementProperties = /* @__PURE__ */ new Map(), ft.elementStyles = [], ft.shadowRootOptions = { mode: "open" }, Ve == null || Ve({ ReactiveElement: ft }), ((ae = qt.reactiveElementVersions) !== null && ae !== void 0 ? ae : qt.reactiveElementVersions = []).push("1.6.2");
251
+ ft[we] = !0, ft.elementProperties = /* @__PURE__ */ new Map(), ft.elementStyles = [], ft.shadowRootOptions = { mode: "open" }, Ve == null || Ve({ ReactiveElement: ft }), ((ae = Zt.reactiveElementVersions) !== null && ae !== void 0 ? ae : Zt.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 le;
258
- const Zt = window, bt = Zt.trustedTypes, Be = bt ? bt.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Kt = "$lit$", G = `lit$${(Math.random() + "").slice(9)}$`, De = "?" + G, zi = `<${De}>`, dt = document, It = () => dt.createComment(""), Pt = (i) => i === null || typeof i != "object" && typeof i != "function", ai = Array.isArray, si = (i) => ai(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", de = `[
258
+ const qt = window, bt = qt.trustedTypes, Be = bt ? bt.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Kt = "$lit$", G = `lit$${(Math.random() + "").slice(9)}$`, De = "?" + G, zi = `<${De}>`, dt = document, It = () => dt.createComment(""), Pt = (i) => i === null || typeof i != "object" && typeof i != "function", ai = Array.isArray, si = (i) => ai(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", de = `[
259
259
  \f\r]`, St = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Re = /-->/g, Ue = />/g, it = RegExp(`>|${de}(?:([^\\s"'>=/]+)(${de}*=${de}*(?:[^
260
260
  \f\r"'\`<>=]|("|')|))|$)`, "g"), Fe = /'/g, ze = /"/g, li = /^(?:script|style|textarea|title)$/i, ji = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), O = ji(1), z = Symbol.for("lit-noChange"), _ = Symbol.for("lit-nothing"), je = /* @__PURE__ */ new WeakMap(), lt = dt.createTreeWalker(dt, 129, null, !1), di = (i, t) => {
261
261
  const e = i.length - 1, n = [];
@@ -499,8 +499,8 @@ class fi {
499
499
  ht(this, t);
500
500
  }
501
501
  }
502
- const Yi = { O: Kt, P: G, A: De, C: 1, M: di, L: hi, D: si, R: ht, I: Et, V: Nt, H: ci, N: pi, U: ui, F: fi }, Xe = Zt.litHtmlPolyfillSupport;
503
- Xe == null || Xe(Mt, Et), ((le = Zt.litHtmlVersions) !== null && le !== void 0 ? le : Zt.litHtmlVersions = []).push("2.7.4");
502
+ const Yi = { O: Kt, P: G, A: De, C: 1, M: di, L: hi, D: si, R: ht, I: Et, V: Nt, H: ci, N: pi, U: ui, F: fi }, Xe = qt.litHtmlPolyfillSupport;
503
+ Xe == null || Xe(Mt, Et), ((le = qt.litHtmlVersions) !== null && le !== void 0 ? le : qt.litHtmlVersions = []).push("2.7.4");
504
504
  const Wi = (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;
@@ -568,11 +568,11 @@ const Gi = (i, t) => t.kind === "method" && t.descriptor && !("value" in t.descr
568
568
  typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
569
569
  }, finisher(e) {
570
570
  e.createProperty(t.key, i);
571
- } }, qi = (i, t, e) => {
571
+ } }, Zi = (i, t, e) => {
572
572
  t.constructor.createProperty(e, i);
573
573
  };
574
574
  function M(i) {
575
- return (t, e) => e !== void 0 ? qi(i, t, e) : Gi(i, t);
575
+ return (t, e) => e !== void 0 ? Zi(i, t, e) : Gi(i, t);
576
576
  }
577
577
  /**
578
578
  * @license
@@ -616,12 +616,12 @@ class vi {
616
616
  * Copyright 2020 Google LLC
617
617
  * SPDX-License-Identifier: BSD-3-Clause
618
618
  */
619
- const { I: Zi } = Yi, Ki = (i) => i.strings === void 0, We = () => document.createComment(""), Dt = (i, t, e) => {
619
+ const { I: qi } = Yi, Ki = (i) => i.strings === void 0, We = () => document.createComment(""), Dt = (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(We(), o), l = r.insertBefore(We(), o);
624
- e = new Zi(a, l, i, i.options);
624
+ e = new qi(a, l, i, i.options);
625
625
  } else {
626
626
  const a = e._$AB.nextSibling, l = e._$AM, s = l !== i;
627
627
  if (s) {
@@ -657,7 +657,7 @@ const Ge = (i, t, e) => {
657
657
  for (let r = t; r <= e; r++)
658
658
  n.set(i[r], r);
659
659
  return n;
660
- }, Ce = mi(class extends vi {
660
+ }, xe = mi(class extends vi {
661
661
  constructor(i) {
662
662
  if (super(i), i.type !== at.CHILD)
663
663
  throw Error("repeat() can only be used in text expressions");
@@ -723,7 +723,7 @@ const Ge = (i, t, e) => {
723
723
  * Copyright 2020 Google LLC
724
724
  * SPDX-License-Identifier: BSD-3-Clause
725
725
  */
726
- const $e = mi(class extends vi {
726
+ const Ce = mi(class extends vi {
727
727
  constructor(i) {
728
728
  if (super(i), i.type !== at.PROPERTY && i.type !== at.ATTRIBUTE && i.type !== at.BOOLEAN_ATTRIBUTE)
729
729
  throw Error("The `live` directive is not allowed on child or event bindings");
@@ -762,7 +762,7 @@ function bi(i, t, e) {
762
762
  * @author owenm <owen23355@gmail.com>
763
763
  * @license MIT
764
764
  */
765
- function qe(i, t) {
765
+ function Ze(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 qe(i, t) {
775
775
  function X(i) {
776
776
  for (var t = 1; t < arguments.length; t++) {
777
777
  var e = arguments[t] != null ? arguments[t] : {};
778
- t % 2 ? qe(Object(e), !0).forEach(function(n) {
778
+ t % 2 ? Ze(Object(e), !0).forEach(function(n) {
779
779
  tn(i, n, e[n]);
780
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(e)) : qe(Object(e)).forEach(function(n) {
780
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(e)) : Ze(Object(e)).forEach(function(n) {
781
781
  Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(e, n));
782
782
  });
783
783
  }
@@ -829,11 +829,11 @@ function nn(i, t) {
829
829
  return e;
830
830
  }
831
831
  var rn = "1.15.0";
832
- function q(i) {
832
+ function Z(i) {
833
833
  if (typeof window < "u" && window.navigator)
834
834
  return !!/* @__PURE__ */ navigator.userAgent.match(i);
835
835
  }
836
- var tt = q(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ie = q(/Edge/i), Ze = q(/firefox/i), Xt = q(/safari/i) && !q(/chrome/i) && !q(/android/i), _i = q(/iP(ad|od|hone)/i), Ei = q(/chrome/i) && q(/android/i), wi = {
836
+ var tt = Z(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ie = Z(/Edge/i), qe = Z(/firefox/i), Xt = Z(/safari/i) && !Z(/chrome/i) && !Z(/android/i), _i = Z(/iP(ad|od|hone)/i), Ei = Z(/chrome/i) && Z(/android/i), wi = {
837
837
  capture: !1,
838
838
  passive: !1
839
839
  };
@@ -904,7 +904,7 @@ function yt(i, t) {
904
904
  var r = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
905
905
  return r && new r(e);
906
906
  }
907
- function Ci(i, t, e) {
907
+ function xi(i, t, e) {
908
908
  if (i) {
909
909
  var n = i.getElementsByTagName(t), r = 0, o = n.length;
910
910
  if (e)
@@ -1037,7 +1037,7 @@ function ln(i, t) {
1037
1037
  function dn(i, t, e) {
1038
1038
  i.scrollLeft += t, i.scrollTop += e;
1039
1039
  }
1040
- function $i(i) {
1040
+ function Ci(i) {
1041
1041
  var t = window.Polymer, e = window.jQuery || window.Zepto;
1042
1042
  return t && t.dom ? t.dom(i).cloneNode(!0) : e ? e(i).clone(!0)[0] : i.cloneNode(!0);
1043
1043
  }
@@ -1176,12 +1176,12 @@ var fn = ["evt"], P = function(t, e) {
1176
1176
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = nn(n, fn);
1177
1177
  kt.pluginEvent.bind(y)(t, e, X({
1178
1178
  dragEl: h,
1179
- parentEl: A,
1179
+ parentEl: $,
1180
1180
  ghostEl: b,
1181
- rootEl: C,
1181
+ rootEl: x,
1182
1182
  nextEl: st,
1183
1183
  lastDownEl: Yt,
1184
- cloneEl: $,
1184
+ cloneEl: C,
1185
1185
  cloneHidden: K,
1186
1186
  dragStarted: Tt,
1187
1187
  putSortable: T,
@@ -1190,7 +1190,7 @@ var fn = ["evt"], P = function(t, e) {
1190
1190
  oldIndex: mt,
1191
1191
  oldDraggableIndex: Ot,
1192
1192
  newIndex: k,
1193
- newDraggableIndex: Z,
1193
+ newDraggableIndex: q,
1194
1194
  hideGhostForTarget: Di,
1195
1195
  unhideGhostForTarget: Ti,
1196
1196
  cloneNowHidden: function() {
@@ -1211,23 +1211,23 @@ var fn = ["evt"], P = function(t, e) {
1211
1211
  function I(i) {
1212
1212
  pn(X({
1213
1213
  putSortable: T,
1214
- cloneEl: $,
1214
+ cloneEl: C,
1215
1215
  targetEl: h,
1216
- rootEl: C,
1216
+ rootEl: x,
1217
1217
  oldIndex: mt,
1218
1218
  oldDraggableIndex: Ot,
1219
1219
  newIndex: k,
1220
- newDraggableIndex: Z
1220
+ newDraggableIndex: q
1221
1221
  }, i));
1222
1222
  }
1223
- var h, A, b, C, st, Yt, $, K, mt, k, Ot, Z, Bt, T, gt = !1, Qt = !1, te = [], rt, F, ve, ye, ei, ii, Tt, pt, Ht, Lt = !1, Rt = !1, Wt, L, be = [], Ae = !1, ee = [], ne = typeof document < "u", Ut = _i, ni = ie || tt ? "cssFloat" : "float", gn = ne && !Ei && !_i && "draggable" in document.createElement("div"), Ai = function() {
1223
+ var h, $, b, x, st, Yt, C, K, mt, k, Ot, q, Bt, T, gt = !1, Qt = !1, te = [], rt, F, ve, ye, ei, ii, Tt, pt, Ht, Lt = !1, Rt = !1, Wt, L, be = [], $e = !1, ee = [], ne = typeof document < "u", Ut = _i, ni = ie || tt ? "cssFloat" : "float", gn = ne && !Ei && !_i && "draggable" in document.createElement("div"), $i = function() {
1224
1224
  if (ne) {
1225
1225
  if (tt)
1226
1226
  return !1;
1227
1227
  var i = document.createElement("x");
1228
1228
  return i.style.cssText = "pointer-events:auto", i.style.pointerEvents === "auto";
1229
1229
  }
1230
- }(), xi = function(t, e) {
1230
+ }(), Ai = function(t, e) {
1231
1231
  var n = g(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o = _t(t, 0, e), a = _t(t, 1, e), l = o && g(o), s = a && g(a), d = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + D(o).width, p = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + D(a).width;
1232
1232
  if (n.display === "flex")
1233
1233
  return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
@@ -1272,9 +1272,9 @@ var h, A, b, C, st, Yt, $, K, mt, k, Ot, Z, Bt, T, gt = !1, Qt = !1, te = [], rt
1272
1272
  name: r
1273
1273
  }), n.name = r.name, n.checkPull = e(r.pull, !0), n.checkPut = e(r.put), n.revertClone = r.revertClone, t.group = n;
1274
1274
  }, Di = function() {
1275
- !Ai && b && g(b, "display", "none");
1275
+ !$i && b && g(b, "display", "none");
1276
1276
  }, Ti = function() {
1277
- !Ai && b && g(b, "display", "");
1277
+ !$i && b && g(b, "display", "");
1278
1278
  };
1279
1279
  ne && !Ei && document.addEventListener("click", function(i) {
1280
1280
  if (Qt)
@@ -1313,7 +1313,7 @@ function y(i, t) {
1313
1313
  // will be set to same as swapThreshold if default
1314
1314
  removeCloneOnHide: !0,
1315
1315
  direction: function() {
1316
- return xi(i, this.options);
1316
+ return Ai(i, this.options);
1317
1317
  },
1318
1318
  ghostClass: "sortable-ghost",
1319
1319
  chosenClass: "sortable-chosen",
@@ -1363,7 +1363,7 @@ y.prototype = /** @lends Sortable.prototype */
1363
1363
  _onTapStart: function(t) {
1364
1364
  if (t.cancelable) {
1365
1365
  var e = this, n = this.el, r = this.options, o = r.preventOnFilter, a = t.type, l = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, s = (l || t).target, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || s, p = r.filter;
1366
- if (xn(n), !h && !(/mousedown|pointerdown/.test(a) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable && Xt && s && s.tagName.toUpperCase() === "SELECT") && (s = j(s, r.draggable, n, !1), !(s && s.animated) && Yt !== s)) {
1366
+ if (An(n), !h && !(/mousedown|pointerdown/.test(a) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable && Xt && s && s.tagName.toUpperCase() === "SELECT") && (s = j(s, r.draggable, n, !1), !(s && s.animated) && Yt !== s)) {
1367
1367
  if (mt = B(s), Ot = B(s, r.draggable), typeof p == "function") {
1368
1368
  if (p.call(this, t, s, this)) {
1369
1369
  I({
@@ -1402,7 +1402,7 @@ y.prototype = /** @lends Sortable.prototype */
1402
1402
  var r = this, o = r.el, a = r.options, l = o.ownerDocument, s;
1403
1403
  if (n && !h && n.parentNode === o) {
1404
1404
  var d = D(n);
1405
- if (C = o, h = n, A = h.parentNode, st = h.nextSibling, Yt = n, Bt = a.group, y.dragged = h, rt = {
1405
+ if (x = o, h = n, $ = h.parentNode, st = h.nextSibling, Yt = n, Bt = a.group, y.dragged = h, rt = {
1406
1406
  target: h,
1407
1407
  clientX: (e || t).clientX,
1408
1408
  clientY: (e || t).clientY
@@ -1413,14 +1413,14 @@ y.prototype = /** @lends Sortable.prototype */
1413
1413
  r._onDrop();
1414
1414
  return;
1415
1415
  }
1416
- r._disableDelayedDragEvents(), !Ze && r.nativeDraggable && (h.draggable = !0), r._triggerDragStart(t, e), I({
1416
+ r._disableDelayedDragEvents(), !qe && r.nativeDraggable && (h.draggable = !0), r._triggerDragStart(t, e), I({
1417
1417
  sortable: r,
1418
1418
  name: "choose",
1419
1419
  originalEvent: t
1420
1420
  }), N(h, a.chosenClass, !0);
1421
1421
  }, a.ignore.split(",").forEach(function(p) {
1422
- Ci(h, p.trim(), _e);
1423
- }), w(l, "dragover", ot), w(l, "mousemove", ot), w(l, "touchmove", ot), w(l, "mouseup", r._onDrop), w(l, "touchend", r._onDrop), w(l, "touchcancel", r._onDrop), Ze && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), P("delayStart", this, {
1422
+ xi(h, p.trim(), _e);
1423
+ }), w(l, "dragover", ot), w(l, "mousemove", ot), w(l, "touchmove", ot), w(l, "mouseup", r._onDrop), w(l, "touchend", r._onDrop), w(l, "touchcancel", r._onDrop), qe && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), P("delayStart", this, {
1424
1424
  evt: t
1425
1425
  }), a.delay && (!a.delayOnTouchOnly || e) && (!this.nativeDraggable || !(ie || tt))) {
1426
1426
  if (y.eventCanceled) {
@@ -1444,7 +1444,7 @@ y.prototype = /** @lends Sortable.prototype */
1444
1444
  E(t, "mouseup", this._disableDelayedDrag), E(t, "touchend", this._disableDelayedDrag), E(t, "touchcancel", this._disableDelayedDrag), E(t, "mousemove", this._delayedDragTouchMoveHandler), E(t, "touchmove", this._delayedDragTouchMoveHandler), E(t, "pointermove", this._delayedDragTouchMoveHandler);
1445
1445
  },
1446
1446
  _triggerDragStart: function(t, e) {
1447
- e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? w(document, "pointermove", this._onTouchMove) : e ? w(document, "touchmove", this._onTouchMove) : w(document, "mousemove", this._onTouchMove) : (w(h, "dragend", this), w(C, "dragstart", this._onDragStart));
1447
+ e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? w(document, "pointermove", this._onTouchMove) : e ? w(document, "touchmove", this._onTouchMove) : w(document, "mousemove", this._onTouchMove) : (w(h, "dragend", this), w(x, "dragstart", this._onDragStart));
1448
1448
  try {
1449
1449
  document.selection ? Gt(function() {
1450
1450
  document.selection.empty();
@@ -1453,7 +1453,7 @@ y.prototype = /** @lends Sortable.prototype */
1453
1453
  }
1454
1454
  },
1455
1455
  _dragStarted: function(t, e) {
1456
- if (gt = !1, C && h) {
1456
+ if (gt = !1, x && h) {
1457
1457
  P("dragStarted", this, {
1458
1458
  evt: e
1459
1459
  }), this.nativeDraggable && w(document, "dragover", yn);
@@ -1513,7 +1513,7 @@ y.prototype = /** @lends Sortable.prototype */
1513
1513
  },
1514
1514
  _appendGhost: function() {
1515
1515
  if (!b) {
1516
- var t = this.options.fallbackOnBody ? document.body : C, e = D(h, !0, Ut, !0, t), n = this.options;
1516
+ var t = this.options.fallbackOnBody ? document.body : x, e = D(h, !0, Ut, !0, t), n = this.options;
1517
1517
  if (Ut) {
1518
1518
  for (L = t; g(L, "position") === "static" && g(L, "transform") === "none" && L !== document; )
1519
1519
  L = L.parentNode;
@@ -1530,8 +1530,8 @@ y.prototype = /** @lends Sortable.prototype */
1530
1530
  this._onDrop();
1531
1531
  return;
1532
1532
  }
1533
- P("setupClone", this), y.eventCanceled || ($ = $i(h), $.removeAttribute("id"), $.draggable = !1, $.style["will-change"] = "", this._hideClone(), N($, this.options.chosenClass, !1), y.clone = $), n.cloneId = Gt(function() {
1534
- P("clone", n), !y.eventCanceled && (n.options.removeCloneOnHide || C.insertBefore($, h), n._hideClone(), I({
1533
+ P("setupClone", this), y.eventCanceled || (C = Ci(h), C.removeAttribute("id"), C.draggable = !1, C.style["will-change"] = "", this._hideClone(), N(C, this.options.chosenClass, !1), y.clone = C), n.cloneId = Gt(function() {
1534
+ P("clone", n), !y.eventCanceled && (n.options.removeCloneOnHide || x.insertBefore(C, h), n._hideClone(), I({
1535
1535
  sortable: n,
1536
1536
  name: "clone"
1537
1537
  }));
@@ -1540,10 +1540,10 @@ y.prototype = /** @lends Sortable.prototype */
1540
1540
  // Returns true - if no further action is needed (either inserted or another condition)
1541
1541
  _onDragOver: function(t) {
1542
1542
  var e = this.el, n = t.target, r, o, a, l = this.options, s = l.group, d = y.active, p = Bt === s, u = l.sort, c = T || d, m, f = this, v = !1;
1543
- if (Ae)
1543
+ if ($e)
1544
1544
  return;
1545
- function S(xt, ki) {
1546
- P(xt, f, X({
1545
+ function S(At, ki) {
1546
+ P(At, f, X({
1547
1547
  evt: t,
1548
1548
  isOwner: p,
1549
1549
  axis: m ? "vertical" : "horizontal",
@@ -1555,7 +1555,7 @@ y.prototype = /** @lends Sortable.prototype */
1555
1555
  target: n,
1556
1556
  completed: H,
1557
1557
  onMove: function(Pe, Vi) {
1558
- return Ft(C, e, h, r, Pe, D(Pe), t, Vi);
1558
+ return Ft(x, e, h, r, Pe, D(Pe), t, Vi);
1559
1559
  },
1560
1560
  changed: et
1561
1561
  }, ki));
@@ -1563,20 +1563,20 @@ y.prototype = /** @lends Sortable.prototype */
1563
1563
  function U() {
1564
1564
  S("dragOverAnimationCapture"), f.captureAnimationState(), f !== c && c.captureAnimationState();
1565
1565
  }
1566
- function H(xt) {
1566
+ function H(At) {
1567
1567
  return S("dragOverCompleted", {
1568
- insertion: xt
1569
- }), xt && (p ? d._hideClone() : d._showClone(f), f !== c && (N(h, T ? T.options.ghostClass : d.options.ghostClass, !1), N(h, l.ghostClass, !0)), T !== f && f !== y.active ? T = f : f === y.active && T && (T = null), c === f && (f._ignoreWhileAnimating = n), f.animateAll(function() {
1568
+ insertion: At
1569
+ }), At && (p ? d._hideClone() : d._showClone(f), f !== c && (N(h, T ? T.options.ghostClass : d.options.ghostClass, !1), N(h, l.ghostClass, !0)), T !== f && f !== y.active ? T = f : f === y.active && T && (T = null), c === f && (f._ignoreWhileAnimating = n), f.animateAll(function() {
1570
1570
  S("dragOverAnimationComplete"), f._ignoreWhileAnimating = null;
1571
- }), f !== c && (c.animateAll(), c._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (pt = null), !l.dragoverBubble && !t.rootEl && n !== document && (h.parentNode[R]._isOutsideThisEl(t.target), !xt && ot(t)), !l.dragoverBubble && t.stopPropagation && t.stopPropagation(), v = !0;
1571
+ }), f !== c && (c.animateAll(), c._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (pt = null), !l.dragoverBubble && !t.rootEl && n !== document && (h.parentNode[R]._isOutsideThisEl(t.target), !At && ot(t)), !l.dragoverBubble && t.stopPropagation && t.stopPropagation(), v = !0;
1572
1572
  }
1573
1573
  function et() {
1574
- k = B(h), Z = B(h, l.draggable), I({
1574
+ k = B(h), q = B(h, l.draggable), I({
1575
1575
  sortable: f,
1576
1576
  name: "change",
1577
1577
  toEl: e,
1578
1578
  newIndex: k,
1579
- newDraggableIndex: Z,
1579
+ newDraggableIndex: q,
1580
1580
  originalEvent: t
1581
1581
  });
1582
1582
  }
@@ -1584,42 +1584,42 @@ y.prototype = /** @lends Sortable.prototype */
1584
1584
  return v;
1585
1585
  if (h.contains(t.target) || n.animated && n.animatingX && n.animatingY || f._ignoreWhileAnimating === n)
1586
1586
  return H(!1);
1587
- if (Qt = !1, d && !l.disabled && (p ? u || (a = A !== C) : T === this || (this.lastPutMode = Bt.checkPull(this, d, h, t)) && s.checkPut(this, d, h, t))) {
1587
+ if (Qt = !1, d && !l.disabled && (p ? u || (a = $ !== x) : T === this || (this.lastPutMode = Bt.checkPull(this, d, h, t)) && s.checkPut(this, d, h, t))) {
1588
1588
  if (m = this._getDirection(t, n) === "vertical", r = D(h), S("dragOverValid"), y.eventCanceled)
1589
1589
  return v;
1590
1590
  if (a)
1591
- return A = C, U(), this._hideClone(), S("revert"), y.eventCanceled || (st ? C.insertBefore(h, st) : C.appendChild(h)), H(!0);
1591
+ return $ = x, U(), this._hideClone(), S("revert"), y.eventCanceled || (st ? x.insertBefore(h, st) : x.appendChild(h)), H(!0);
1592
1592
  var W = Te(e, l.draggable);
1593
1593
  if (!W || wn(t, m, this) && !W.animated) {
1594
1594
  if (W === h)
1595
1595
  return H(!1);
1596
- if (W && e === t.target && (n = W), n && (o = D(n)), Ft(C, e, h, r, n, o, t, !!n) !== !1)
1597
- return U(), W && W.nextSibling ? e.insertBefore(h, W.nextSibling) : e.appendChild(h), A = e, et(), H(!0);
1596
+ if (W && e === t.target && (n = W), n && (o = D(n)), Ft(x, e, h, r, n, o, t, !!n) !== !1)
1597
+ return U(), W && W.nextSibling ? e.insertBefore(h, W.nextSibling) : e.appendChild(h), $ = e, et(), H(!0);
1598
1598
  } else if (W && En(t, m, this)) {
1599
1599
  var re = _t(e, 0, l, !0);
1600
1600
  if (re === h)
1601
1601
  return H(!1);
1602
- if (n = re, o = D(n), Ft(C, e, h, r, n, o, t, !1) !== !1)
1603
- return U(), e.insertBefore(h, re), A = e, et(), H(!0);
1602
+ if (n = re, o = D(n), Ft(x, e, h, r, n, o, t, !1) !== !1)
1603
+ return U(), e.insertBefore(h, re), $ = e, et(), H(!0);
1604
1604
  } else if (n.parentNode === e) {
1605
1605
  o = D(n);
1606
- var ut = 0, oe, Mi = h.parentNode !== e, Oe = !mn(h.animated && h.toRect || r, n.animated && n.toRect || o, m), He = m ? "top" : "left", Ct = Je(n, "top", "top") || Je(h, "top", "top"), Ni = Ct ? Ct.scrollTop : void 0;
1607
- pt !== n && (oe = o[He], Lt = !1, Rt = !Oe && l.invertSwap || Mi), ut = Cn(t, n, o, m, Oe ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Rt, pt === n);
1608
- var $t;
1606
+ var ut = 0, oe, Mi = h.parentNode !== e, Oe = !mn(h.animated && h.toRect || r, n.animated && n.toRect || o, m), He = m ? "top" : "left", xt = Je(n, "top", "top") || Je(h, "top", "top"), Ni = xt ? xt.scrollTop : void 0;
1607
+ pt !== n && (oe = o[He], Lt = !1, Rt = !Oe && l.invertSwap || Mi), ut = xn(t, n, o, m, Oe ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Rt, pt === n);
1608
+ var Ct;
1609
1609
  if (ut !== 0) {
1610
1610
  var Le = B(h);
1611
1611
  do
1612
- Le -= ut, $t = A.children[Le];
1613
- while ($t && (g($t, "display") === "none" || $t === b));
1612
+ Le -= ut, Ct = $.children[Le];
1613
+ while (Ct && (g(Ct, "display") === "none" || Ct === b));
1614
1614
  }
1615
- if (ut === 0 || $t === n)
1615
+ if (ut === 0 || Ct === n)
1616
1616
  return H(!1);
1617
1617
  pt = n, Ht = ut;
1618
- var Ie = n.nextElementSibling, At = !1;
1619
- At = ut === 1;
1620
- var Vt = Ft(C, e, h, r, n, o, t, At);
1618
+ var Ie = n.nextElementSibling, $t = !1;
1619
+ $t = ut === 1;
1620
+ var Vt = Ft(x, e, h, r, n, o, t, $t);
1621
1621
  if (Vt !== !1)
1622
- return (Vt === 1 || Vt === -1) && (At = Vt === 1), Ae = !0, setTimeout(_n, 30), U(), At && !Ie ? e.appendChild(h) : n.parentNode.insertBefore(h, At ? Ie : n), Ct && dn(Ct, 0, Ni - Ct.scrollTop), A = h.parentNode, oe !== void 0 && !Rt && (Wt = Math.abs(oe - D(n)[He])), et(), H(!0);
1622
+ return (Vt === 1 || Vt === -1) && ($t = Vt === 1), $e = !0, setTimeout(_n, 30), U(), $t && !Ie ? e.appendChild(h) : n.parentNode.insertBefore(h, $t ? Ie : n), xt && dn(xt, 0, Ni - xt.scrollTop), $ = h.parentNode, oe !== void 0 && !Rt && (Wt = Math.abs(oe - D(n)[He])), et(), H(!0);
1623
1623
  }
1624
1624
  if (e.contains(h))
1625
1625
  return H(!1);
@@ -1636,60 +1636,60 @@ y.prototype = /** @lends Sortable.prototype */
1636
1636
  },
1637
1637
  _onDrop: function(t) {
1638
1638
  var e = this.el, n = this.options;
1639
- if (k = B(h), Z = B(h, n.draggable), P("drop", this, {
1639
+ if (k = B(h), q = B(h, n.draggable), P("drop", this, {
1640
1640
  evt: t
1641
- }), A = h && h.parentNode, k = B(h), Z = B(h, n.draggable), y.eventCanceled) {
1641
+ }), $ = h && h.parentNode, k = B(h), q = B(h, n.draggable), y.eventCanceled) {
1642
1642
  this._nulling();
1643
1643
  return;
1644
1644
  }
1645
- gt = !1, Rt = !1, Lt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), xe(this.cloneId), xe(this._dragStartId), this.nativeDraggable && (E(document, "drop", this), E(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Xt && g(document.body, "user-select", ""), g(h, "transform", ""), t && (Tt && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), b && b.parentNode && b.parentNode.removeChild(b), (C === A || T && T.lastPutMode !== "clone") && $ && $.parentNode && $.parentNode.removeChild($), h && (this.nativeDraggable && E(h, "dragend", this), _e(h), h.style["will-change"] = "", Tt && !gt && N(h, T ? T.options.ghostClass : this.options.ghostClass, !1), N(h, this.options.chosenClass, !1), I({
1645
+ gt = !1, Rt = !1, Lt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Ae(this.cloneId), Ae(this._dragStartId), this.nativeDraggable && (E(document, "drop", this), E(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Xt && g(document.body, "user-select", ""), g(h, "transform", ""), t && (Tt && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), b && b.parentNode && b.parentNode.removeChild(b), (x === $ || T && T.lastPutMode !== "clone") && C && C.parentNode && C.parentNode.removeChild(C), h && (this.nativeDraggable && E(h, "dragend", this), _e(h), h.style["will-change"] = "", Tt && !gt && N(h, T ? T.options.ghostClass : this.options.ghostClass, !1), N(h, this.options.chosenClass, !1), I({
1646
1646
  sortable: this,
1647
1647
  name: "unchoose",
1648
- toEl: A,
1648
+ toEl: $,
1649
1649
  newIndex: null,
1650
1650
  newDraggableIndex: null,
1651
1651
  originalEvent: t
1652
- }), C !== A ? (k >= 0 && (I({
1653
- rootEl: A,
1652
+ }), x !== $ ? (k >= 0 && (I({
1653
+ rootEl: $,
1654
1654
  name: "add",
1655
- toEl: A,
1656
- fromEl: C,
1655
+ toEl: $,
1656
+ fromEl: x,
1657
1657
  originalEvent: t
1658
1658
  }), I({
1659
1659
  sortable: this,
1660
1660
  name: "remove",
1661
- toEl: A,
1661
+ toEl: $,
1662
1662
  originalEvent: t
1663
1663
  }), I({
1664
- rootEl: A,
1664
+ rootEl: $,
1665
1665
  name: "sort",
1666
- toEl: A,
1667
- fromEl: C,
1666
+ toEl: $,
1667
+ fromEl: x,
1668
1668
  originalEvent: t
1669
1669
  }), I({
1670
1670
  sortable: this,
1671
1671
  name: "sort",
1672
- toEl: A,
1672
+ toEl: $,
1673
1673
  originalEvent: t
1674
1674
  })), T && T.save()) : k !== mt && k >= 0 && (I({
1675
1675
  sortable: this,
1676
1676
  name: "update",
1677
- toEl: A,
1677
+ toEl: $,
1678
1678
  originalEvent: t
1679
1679
  }), I({
1680
1680
  sortable: this,
1681
1681
  name: "sort",
1682
- toEl: A,
1682
+ toEl: $,
1683
1683
  originalEvent: t
1684
- })), y.active && ((k == null || k === -1) && (k = mt, Z = Ot), I({
1684
+ })), y.active && ((k == null || k === -1) && (k = mt, q = Ot), I({
1685
1685
  sortable: this,
1686
1686
  name: "end",
1687
- toEl: A,
1687
+ toEl: $,
1688
1688
  originalEvent: t
1689
1689
  }), this.save()))), this._nulling();
1690
1690
  },
1691
1691
  _nulling: function() {
1692
- P("nulling", this), C = h = A = b = st = $ = Yt = K = rt = F = Tt = k = Z = mt = Ot = pt = Ht = T = Bt = y.dragged = y.ghost = y.clone = y.active = null, ee.forEach(function(t) {
1692
+ P("nulling", this), x = h = $ = b = st = C = Yt = K = rt = F = Tt = k = q = mt = Ot = pt = Ht = T = Bt = y.dragged = y.ghost = y.clone = y.active = null, ee.forEach(function(t) {
1693
1693
  t.checked = !0;
1694
1694
  }), ee.length = ve = ye = 0;
1695
1695
  },
@@ -1714,7 +1714,7 @@ y.prototype = /** @lends Sortable.prototype */
1714
1714
  */
1715
1715
  toArray: function() {
1716
1716
  for (var t = [], e, n = this.el.children, r = 0, o = n.length, a = this.options; r < o; r++)
1717
- e = n[r], j(e, a.draggable, this.el, !1) && t.push(e.getAttribute(a.dataIdAttr) || An(e));
1717
+ e = n[r], j(e, a.draggable, this.el, !1) && t.push(e.getAttribute(a.dataIdAttr) || $n(e));
1718
1718
  return t;
1719
1719
  },
1720
1720
  /**
@@ -1773,7 +1773,7 @@ y.prototype = /** @lends Sortable.prototype */
1773
1773
  if (!K) {
1774
1774
  if (P("hideClone", this), y.eventCanceled)
1775
1775
  return;
1776
- g($, "display", "none"), this.options.removeCloneOnHide && $.parentNode && $.parentNode.removeChild($), K = !0;
1776
+ g(C, "display", "none"), this.options.removeCloneOnHide && C.parentNode && C.parentNode.removeChild(C), K = !0;
1777
1777
  }
1778
1778
  },
1779
1779
  _showClone: function(t) {
@@ -1784,7 +1784,7 @@ y.prototype = /** @lends Sortable.prototype */
1784
1784
  if (K) {
1785
1785
  if (P("showClone", this), y.eventCanceled)
1786
1786
  return;
1787
- h.parentNode == C && !this.options.group.revertClone ? C.insertBefore($, h) : st ? C.insertBefore($, st) : C.appendChild($), this.options.group.revertClone && this.animate(h, $), g($, "display", ""), K = !1;
1787
+ h.parentNode == x && !this.options.group.revertClone ? x.insertBefore(C, h) : st ? x.insertBefore(C, st) : x.appendChild(C), this.options.group.revertClone && this.animate(h, C), g(C, "display", ""), K = !1;
1788
1788
  }
1789
1789
  }
1790
1790
  };
@@ -1802,7 +1802,7 @@ function _e(i) {
1802
1802
  i.draggable = !1;
1803
1803
  }
1804
1804
  function _n() {
1805
- Ae = !1;
1805
+ $e = !1;
1806
1806
  }
1807
1807
  function En(i, t, e) {
1808
1808
  var n = D(_t(e.el, 0, e.options, !0)), r = 10;
@@ -1812,7 +1812,7 @@ function wn(i, t, e) {
1812
1812
  var n = D(Te(e.el, e.options.draggable)), r = 10;
1813
1813
  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;
1814
1814
  }
1815
- function Cn(i, t, e, n, r, o, a, l) {
1815
+ function xn(i, t, e, n, r, o, a, l) {
1816
1816
  var s = n ? i.clientY : i.clientX, d = n ? e.height : e.width, p = n ? e.top : e.left, u = n ? e.bottom : e.right, c = !1;
1817
1817
  if (!a) {
1818
1818
  if (l && Wt < d * r) {
@@ -1821,19 +1821,19 @@ function Cn(i, t, e, n, r, o, a, l) {
1821
1821
  else if (Ht === 1 ? s < p + Wt : s > u - Wt)
1822
1822
  return -Ht;
1823
1823
  } else if (s > p + d * (1 - r) / 2 && s < u - d * (1 - r) / 2)
1824
- return $n(t);
1824
+ return Cn(t);
1825
1825
  }
1826
1826
  return c = c || a, c && (s < p + d * o / 2 || s > u - d * o / 2) ? s > p + d / 2 ? 1 : -1 : 0;
1827
1827
  }
1828
- function $n(i) {
1828
+ function Cn(i) {
1829
1829
  return B(h) < B(i) ? 1 : -1;
1830
1830
  }
1831
- function An(i) {
1831
+ function $n(i) {
1832
1832
  for (var t = i.tagName + i.className + i.src + i.href + i.textContent, e = t.length, n = 0; e--; )
1833
1833
  n += t.charCodeAt(e);
1834
1834
  return n.toString(36);
1835
1835
  }
1836
- function xn(i) {
1836
+ function An(i) {
1837
1837
  ee.length = 0;
1838
1838
  for (var t = i.getElementsByTagName("input"), e = t.length; e--; ) {
1839
1839
  var n = t[e];
@@ -1843,7 +1843,7 @@ function xn(i) {
1843
1843
  function Gt(i) {
1844
1844
  return setTimeout(i, 0);
1845
1845
  }
1846
- function xe(i) {
1846
+ function Ae(i) {
1847
1847
  return clearTimeout(i);
1848
1848
  }
1849
1849
  ne && w(document, "touchmove", function(i) {
@@ -1853,7 +1853,7 @@ y.utils = {
1853
1853
  on: w,
1854
1854
  off: E,
1855
1855
  css: g,
1856
- find: Ci,
1856
+ find: xi,
1857
1857
  is: function(t, e) {
1858
1858
  return !!j(t, e, t, !1);
1859
1859
  },
@@ -1861,11 +1861,11 @@ y.utils = {
1861
1861
  throttle: ln,
1862
1862
  closest: j,
1863
1863
  toggleClass: N,
1864
- clone: $i,
1864
+ clone: Ci,
1865
1865
  index: B,
1866
1866
  nextTick: Gt,
1867
- cancelNextTick: xe,
1868
- detectDirection: xi,
1867
+ cancelNextTick: Ae,
1868
+ detectDirection: Ai,
1869
1869
  getChild: _t
1870
1870
  };
1871
1871
  y.get = function(i) {
@@ -2161,6 +2161,67 @@ summary > .layer {
2161
2161
  margin-left: -1px;
2162
2162
  }
2163
2163
 
2164
+ [data-layerconfig] button {
2165
+ margin-left: 64px;
2166
+ margin-bottom: 21px;
2167
+ margin-top: 9px;
2168
+ }
2169
+
2170
+ label[for=optional] {
2171
+ font-size: 21px;
2172
+ font-weight: 400;
2173
+ margin-bottom: 9px;
2174
+ display: block;
2175
+ }
2176
+ select[name=optional] {
2177
+ margin-right: 6px;
2178
+ margin-bottom: 18px;
2179
+ height: 36px;
2180
+ }
2181
+
2182
+ // Style adjacent button
2183
+ select[name=optional] + button {
2184
+ width: 20px;
2185
+ }
2186
+
2187
+ .slider-control + details {
2188
+ margin-left: 60px;
2189
+ }
2190
+
2191
+ .slider-control + details summary {
2192
+ color: #3B6289;
2193
+ font-size: 14px;
2194
+ display: flex;
2195
+ flex-direction: row;
2196
+ align-items: center;
2197
+ font-weight: 500;
2198
+ margin-bottom: 15px;
2199
+ }
2200
+
2201
+ .slider-control + details li {
2202
+ display: flex;
2203
+ height: 30px;
2204
+ flex-direction: row;
2205
+ align-items: center;
2206
+ border-top: none;
2207
+ }
2208
+
2209
+ .slider-control + details li > div {
2210
+ width: 124px;
2211
+ }
2212
+
2213
+ .slider-control + details summary::before {
2214
+ display: block;
2215
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echevron-right%3C/title%3E%3Cpath d='M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z' /%3E%3C/svg%3E");
2216
+ font-size: 13px;
2217
+ width: 24px;
2218
+ height: 24px;
2219
+ transform-origin: center;
2220
+ }
2221
+ .slider-control + details[open] > summary:before {
2222
+ transform: rotate(90deg);
2223
+ }
2224
+
2164
2225
  [data-type=group] .title::before {
2165
2226
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236889A0' viewBox='0 0 24 24'%3E%3Ctitle%3Efolder-outline%3C/title%3E%3Cpath d='M20,18H4V8H20M20,6H12L10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6Z' /%3E%3C/svg%3E");
2166
2227
  }
@@ -2298,7 +2359,7 @@ li.sortable-drag {
2298
2359
  li.sortable-ghost {
2299
2360
  }
2300
2361
  `;
2301
- var Hn = Object.defineProperty, Ln = Object.getOwnPropertyDescriptor, x = (i, t, e, n) => {
2362
+ var Hn = Object.defineProperty, Ln = Object.getOwnPropertyDescriptor, A = (i, t, e, n) => {
2302
2363
  for (var r = n > 1 ? void 0 : n ? Ln(t, e) : t, o = i.length - 1, a; o >= 0; o--)
2303
2364
  (a = i[o]) && (r = (n ? a(t, e, r) : a(r)) || r);
2304
2365
  return n && r && Hn(t, e, r), r;
@@ -2318,13 +2379,16 @@ let V = class extends vt {
2318
2379
  ), n;
2319
2380
  };
2320
2381
  return r(i, t, e), n;
2321
- }, this.findLayerById = (i, t) => this.filterLayers(i, "id", t)[0], this.getLayerType = (i, t) => i.getLayers ? "group" : t.getInteractions().getArray().filter((e) => e.freehand_ !== void 0).map((e) => e.source_.ol_uid).includes(i.getSource ? i.getSource().ol_uid : !1) ? "draw" : (
2322
- // @ts-ignore
2323
- i.declutter_ !== void 0 ? "vector" : "raster"
2324
- );
2325
- }
2326
- attachTo(i) {
2327
- this.olMap = i, this.requestUpdate();
2382
+ }, this.findLayerById = (i, t) => this.filterLayers(i, "id", t)[0], this.getLayerType = (i, t) => {
2383
+ var e;
2384
+ return i.getLayers ? "group" : t.getInteractions().getArray().filter((n) => n.freehand_ !== void 0).map((n) => {
2385
+ var r;
2386
+ return (r = n.source_) == null ? void 0 : r.ol_uid;
2387
+ }).includes(i.getSource ? (e = i.getSource()) == null ? void 0 : e.ol_uid : !1) ? "draw" : (
2388
+ // @ts-ignore
2389
+ i.declutter_ !== void 0 ? "vector" : "raster"
2390
+ );
2391
+ };
2328
2392
  }
2329
2393
  _updateControl(i) {
2330
2394
  const t = (e) => {
@@ -2397,7 +2461,7 @@ let V = class extends vt {
2397
2461
  <div class="left">
2398
2462
  <input
2399
2463
  type="${o.get("layerControlExclusive") ? "radio" : "checkbox"}"
2400
- .checked="${$e(o.getVisible())}"
2464
+ .checked="${Ce(o.getVisible())}"
2401
2465
  @click=${() => {
2402
2466
  this.toggleLayerVisibility(o, a);
2403
2467
  }}
@@ -2444,7 +2508,7 @@ let V = class extends vt {
2444
2508
  `;
2445
2509
  }, n = (o, a) => O`
2446
2510
  <ul data-group="${a ?? _}">
2447
- ${Ce(
2511
+ ${xe(
2448
2512
  o,
2449
2513
  (l) => l.get(this.layerIdentifier),
2450
2514
  (l) => {
@@ -2482,7 +2546,7 @@ let V = class extends vt {
2482
2546
  () => O`
2483
2547
  <label for="optional">Optional layers</label>
2484
2548
 
2485
- <select name="optional">
2549
+ <select name="optional" data-cy="optionalLayers">
2486
2550
  <option disabled selected value>
2487
2551
  -- select an optional layer to add --
2488
2552
  </option>
@@ -2546,8 +2610,7 @@ let V = class extends vt {
2546
2610
  ...this.layerCollection.getArray().map((n) => n.get(this.layerIdentifier))
2547
2611
  ].reverse(),
2548
2612
  set: (n) => {
2549
- var r = n.toArray().reverse();
2550
- r.forEach((o, a) => {
2613
+ n.toArray().reverse().forEach((o, a) => {
2551
2614
  if (e) {
2552
2615
  const s = this.findLayerById(
2553
2616
  this.layerCollection.getArray(),
@@ -2572,40 +2635,40 @@ let V = class extends vt {
2572
2635
  });
2573
2636
  }
2574
2637
  };
2575
- x([
2638
+ A([
2576
2639
  wt()
2577
2640
  ], V.prototype, "olMap", 2);
2578
- x([
2641
+ A([
2579
2642
  wt()
2580
2643
  ], V.prototype, "layerCollection", 2);
2581
- x([
2644
+ A([
2582
2645
  wt()
2583
2646
  ], V.prototype, "layerArray", 2);
2584
- x([
2647
+ A([
2585
2648
  wt()
2586
2649
  ], V.prototype, "optionalLayerArray", 2);
2587
- x([
2650
+ A([
2588
2651
  M()
2589
2652
  ], V.prototype, "for", 2);
2590
- x([
2653
+ A([
2591
2654
  M()
2592
2655
  ], V.prototype, "layerIdentifier", 2);
2593
- x([
2656
+ A([
2594
2657
  M()
2595
2658
  ], V.prototype, "layerTitle", 2);
2596
- x([
2659
+ A([
2597
2660
  M()
2598
2661
  ], V.prototype, "sortBy", 2);
2599
- x([
2662
+ A([
2600
2663
  M({ type: Array })
2601
2664
  ], V.prototype, "layerConfig", 2);
2602
- x([
2665
+ A([
2603
2666
  M({ type: Boolean })
2604
2667
  ], V.prototype, "externalLayerConfig", 2);
2605
- x([
2668
+ A([
2606
2669
  M({ type: Boolean })
2607
2670
  ], V.prototype, "unstyled", 2);
2608
- V = x([
2671
+ V = A([
2609
2672
  gi("eox-layercontrol")
2610
2673
  ], V);
2611
2674
  let Y = class extends vt {
@@ -2645,7 +2708,7 @@ let Y = class extends vt {
2645
2708
  <div>
2646
2709
  <slot></slot>
2647
2710
  ${this.for ? O`layer: ${this._currentLayer.get("name")}` : _}
2648
- ${Ce(
2711
+ ${xe(
2649
2712
  this.layerConfig.filter(
2650
2713
  (i) => this.for ? i !== "opacity" : !0
2651
2714
  ),
@@ -2658,7 +2721,7 @@ let Y = class extends vt {
2658
2721
  min="0"
2659
2722
  max="1"
2660
2723
  step="0.01"
2661
- value="${$e(this._currentLayer.getOpacity())}"
2724
+ value="${Ce(this._currentLayer.getOpacity())}"
2662
2725
  @input=${(t) => this._handleInput(t, i)}
2663
2726
  />
2664
2727
  </div>
@@ -2668,7 +2731,7 @@ let Y = class extends vt {
2668
2731
  <details open="${this.for ? !0 : _}">
2669
2732
  <summary>Layer config</summary>
2670
2733
  <ul>
2671
- ${Ce(
2734
+ ${xe(
2672
2735
  Object.keys(this._configList),
2673
2736
  (i) => i,
2674
2737
  (i) => O` <li>
@@ -2677,7 +2740,7 @@ let Y = class extends vt {
2677
2740
  type="range"
2678
2741
  min="${["red", "green", "blue"].includes(i) ? 1 : 2e3}"
2679
2742
  max="${["red", "green", "blue"].includes(i) ? 4 : 5e3}"
2680
- value="${$e(
2743
+ value="${Ce(
2681
2744
  // @ts-ignore
2682
2745
  this._configList[i]
2683
2746
  )}"
@@ -2694,31 +2757,31 @@ let Y = class extends vt {
2694
2757
  `;
2695
2758
  }
2696
2759
  };
2697
- x([
2760
+ A([
2698
2761
  M()
2699
2762
  ], Y.prototype, "for", 2);
2700
- x([
2763
+ A([
2701
2764
  M({ type: Array })
2702
2765
  ], Y.prototype, "layerConfig", 2);
2703
- x([
2766
+ A([
2704
2767
  M({ type: Object, attribute: !1 })
2705
2768
  ], Y.prototype, "layerControl", 2);
2706
- x([
2769
+ A([
2707
2770
  M({ type: Object, attribute: !1 })
2708
2771
  ], Y.prototype, "layer", 2);
2709
- x([
2772
+ A([
2710
2773
  M({ type: Boolean })
2711
2774
  ], Y.prototype, "external", 2);
2712
- x([
2775
+ A([
2713
2776
  M({ type: Boolean })
2714
2777
  ], Y.prototype, "unstyled", 2);
2715
- x([
2778
+ A([
2716
2779
  wt()
2717
2780
  ], Y.prototype, "_currentLayer", 2);
2718
- x([
2781
+ A([
2719
2782
  wt()
2720
2783
  ], Y.prototype, "_configList", 2);
2721
- Y = x([
2784
+ Y = A([
2722
2785
  gi("eox-layerconfig")
2723
2786
  ], Y);
2724
2787
  export {