@eox/layercontrol 0.26.0 → 0.27.1

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.
@@ -11,7 +11,7 @@ var T = (i, t, e) => (Ci(i, t, "read from private field"), e ? e.call(i) : t.get
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
13
  const Fe = globalThis, tn = Fe.ShadowRoot && (Fe.ShadyCSS === void 0 || Fe.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, en = Symbol(), bn = /* @__PURE__ */ new WeakMap();
14
- let zn = class {
14
+ let Zn = class {
15
15
  constructor(t, e, n) {
16
16
  if (this._$cssResult$ = !0, n !== en) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
17
17
  this.cssText = t, this.t = e;
@@ -29,13 +29,13 @@ let zn = class {
29
29
  return this.cssText;
30
30
  }
31
31
  };
32
- const er = (i) => new zn(typeof i == "string" ? i : i + "", void 0, en), qn = (i, ...t) => {
32
+ const er = (i) => new Zn(typeof i == "string" ? i : i + "", void 0, en), qn = (i, ...t) => {
33
33
  const e = i.length === 1 ? i[0] : t.reduce((n, o, r) => n + ((s) => {
34
34
  if (s._$cssResult$ === !0) return s.cssText;
35
35
  if (typeof s == "number") return s;
36
36
  throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
37
37
  })(o) + i[r + 1], i[0]);
38
- return new zn(e, i, en);
38
+ return new Zn(e, i, en);
39
39
  }, ir = (i, t) => {
40
40
  if (tn) i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
41
41
  else for (const e of t) {
@@ -287,7 +287,7 @@ ie.elementStyles = [], ie.shadowRootOptions = { mode: "open" }, ie[be("elementPr
287
287
  * SPDX-License-Identifier: BSD-3-Clause
288
288
  */
289
289
  const ve = globalThis, Ge = ve.trustedTypes, En = Ge ? Ge.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, nn = "$lit$", Ct = `lit$${Math.random().toFixed(9).slice(2)}$`, on = "?" + Ct, ur = `<${on}>`, Jt = document, _e = () => Jt.createComment(""), Ae = (i) => i === null || typeof i != "object" && typeof i != "function", rn = Array.isArray, Yn = (i) => rn(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Di = `[
290
- \f\r]`, pe = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $n = /-->/g, Sn = />/g, Zt = RegExp(`>|${Di}(?:([^\\s"'>=/]+)(${Di}*=${Di}*(?:[^
290
+ \f\r]`, pe = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $n = /-->/g, Sn = />/g, zt = RegExp(`>|${Di}(?:([^\\s"'>=/]+)(${Di}*=${Di}*(?:[^
291
291
  \f\r"'\`<>=]|("|')|))|$)`, "g"), _n = /'/g, An = /"/g, Wn = /^(?:script|style|textarea|title)$/i, cr = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), x = cr(1), vt = Symbol.for("lit-noChange"), O = Symbol.for("lit-nothing"), Cn = /* @__PURE__ */ new WeakMap(), Wt = Jt.createTreeWalker(Jt, 129);
292
292
  function Gn(i, t) {
293
293
  if (!rn(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
@@ -299,8 +299,8 @@ const Jn = (i, t) => {
299
299
  for (let a = 0; a < e; a++) {
300
300
  const l = i[a];
301
301
  let d, c, u = -1, p = 0;
302
- for (; p < l.length && (s.lastIndex = p, c = s.exec(l), c !== null); ) p = s.lastIndex, s === pe ? c[1] === "!--" ? s = $n : c[1] !== void 0 ? s = Sn : c[2] !== void 0 ? (Wn.test(c[2]) && (o = RegExp("</" + c[2], "g")), s = Zt) : c[3] !== void 0 && (s = Zt) : s === Zt ? c[0] === ">" ? (s = o ?? pe, u = -1) : c[1] === void 0 ? u = -2 : (u = s.lastIndex - c[2].length, d = c[1], s = c[3] === void 0 ? Zt : c[3] === '"' ? An : _n) : s === An || s === _n ? s = Zt : s === $n || s === Sn ? s = pe : (s = Zt, o = void 0);
303
- const f = s === Zt && i[a + 1].startsWith("/>") ? " " : "";
302
+ for (; p < l.length && (s.lastIndex = p, c = s.exec(l), c !== null); ) p = s.lastIndex, s === pe ? c[1] === "!--" ? s = $n : c[1] !== void 0 ? s = Sn : c[2] !== void 0 ? (Wn.test(c[2]) && (o = RegExp("</" + c[2], "g")), s = zt) : c[3] !== void 0 && (s = zt) : s === zt ? c[0] === ">" ? (s = o ?? pe, u = -1) : c[1] === void 0 ? u = -2 : (u = s.lastIndex - c[2].length, d = c[1], s = c[3] === void 0 ? zt : c[3] === '"' ? An : _n) : s === An || s === _n ? s = zt : s === $n || s === Sn ? s = pe : (s = zt, o = void 0);
303
+ const f = s === zt && i[a + 1].startsWith("/>") ? " " : "";
304
304
  r += s === pe ? l + ur : u >= 0 ? (n.push(d), l.slice(0, u) + nn + l.slice(u) + Ct + f) : l + Ct + (u === -2 ? a : f);
305
305
  }
306
306
  return [Gn(i, r + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
@@ -319,7 +319,7 @@ class Ce {
319
319
  if (o.nodeType === 1) {
320
320
  if (o.hasAttributes()) for (const u of o.getAttributeNames()) if (u.endsWith(nn)) {
321
321
  const p = c[s++], f = o.getAttribute(u).split(Ct), g = /([.?@])?(.*)/.exec(p);
322
- l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Qn : g[1] === "?" ? to : g[1] === "@" ? eo : Re }), o.removeAttribute(u);
322
+ l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Qn : g[1] === "?" ? to : g[1] === "@" ? eo : Le }), o.removeAttribute(u);
323
323
  } else u.startsWith(Ct) && (l.push({ type: 6, index: r }), o.removeAttribute(u));
324
324
  if (Wn.test(o.tagName)) {
325
325
  const u = o.textContent.split(Ct), p = u.length - 1;
@@ -440,7 +440,7 @@ class ce {
440
440
  this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
441
441
  }
442
442
  }
443
- class Re {
443
+ class Le {
444
444
  get tagName() {
445
445
  return this.element.tagName;
446
446
  }
@@ -465,7 +465,7 @@ class Re {
465
465
  t === O ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
466
466
  }
467
467
  }
468
- class Qn extends Re {
468
+ class Qn extends Le {
469
469
  constructor() {
470
470
  super(...arguments), this.type = 3;
471
471
  }
@@ -473,7 +473,7 @@ class Qn extends Re {
473
473
  this.element[this.name] = t === O ? void 0 : t;
474
474
  }
475
475
  }
476
- class to extends Re {
476
+ class to extends Le {
477
477
  constructor() {
478
478
  super(...arguments), this.type = 4;
479
479
  }
@@ -481,7 +481,7 @@ class to extends Re {
481
481
  this.element.toggleAttribute(this.name, !!t && t !== O);
482
482
  }
483
483
  }
484
- class eo extends Re {
484
+ class eo extends Le {
485
485
  constructor(t, e, n, o, r) {
486
486
  super(t, e, n, o, r), this.type = 5;
487
487
  }
@@ -506,7 +506,7 @@ class io {
506
506
  Kt(this, t);
507
507
  }
508
508
  }
509
- const hr = { M: nn, P: Ct, A: on, C: 1, L: Jn, R: Kn, D: Yn, V: Kt, I: ce, H: Re, N: to, U: eo, B: Qn, F: io }, Pi = ve.litHtmlPolyfillSupport;
509
+ const hr = { M: nn, P: Ct, A: on, C: 1, L: Jn, R: Kn, D: Yn, V: Kt, I: ce, H: Le, N: to, U: eo, B: Qn, F: io }, Pi = ve.litHtmlPolyfillSupport;
510
510
  Pi == null || Pi(Ce, ce), (ve.litHtmlVersions ?? (ve.litHtmlVersions = [])).push("3.2.1");
511
511
  const pr = (i, t, e) => {
512
512
  const n = (e == null ? void 0 : e.renderBefore) ?? t;
@@ -547,8 +547,8 @@ let lt = class extends ie {
547
547
  return vt;
548
548
  }
549
549
  };
550
- var Zn;
551
- lt._$litElement$ = !0, lt.finalized = !0, (Zn = globalThis.litElementHydrateSupport) == null || Zn.call(globalThis, { LitElement: lt });
550
+ var zn;
551
+ lt._$litElement$ = !0, lt.finalized = !0, (zn = globalThis.litElementHydrateSupport) == null || zn.call(globalThis, { LitElement: lt });
552
552
  const Oi = globalThis.litElementPolyfillSupport;
553
553
  Oi == null || Oi({ LitElement: lt });
554
554
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
@@ -608,7 +608,7 @@ const { I: fr } = hr, gr = (i) => i.strings === void 0, Tn = () => document.crea
608
608
  }
609
609
  }
610
610
  return e;
611
- }, zt = (i, t, e = i) => (i._$AI(t, e), i), mr = {}, no = (i, t = mr) => i._$AH = t, yr = (i) => i._$AH, Ri = (i) => {
611
+ }, Zt = (i, t, e = i) => (i._$AI(t, e), i), mr = {}, no = (i, t = mr) => i._$AH = t, yr = (i) => i._$AH, Li = (i) => {
612
612
  var n;
613
613
  (n = i._$AP) == null || n.call(i, !1, !0);
614
614
  let t = i._$AA;
@@ -649,26 +649,26 @@ const Dn = (i, t, e) => {
649
649
  let d, c, u = 0, p = o.length - 1, f = 0, g = r.length - 1;
650
650
  for (; u <= p && f <= g; ) if (o[u] === null) u++;
651
651
  else if (o[p] === null) p--;
652
- else if (a[u] === s[f]) l[f] = zt(o[u], r[f]), u++, f++;
653
- else if (a[p] === s[g]) l[g] = zt(o[p], r[g]), p--, g--;
654
- else if (a[u] === s[g]) l[g] = zt(o[u], r[g]), fe(i, l[g + 1], o[u]), u++, g--;
655
- else if (a[p] === s[f]) l[f] = zt(o[p], r[f]), fe(i, o[u], o[p]), p--, f++;
652
+ else if (a[u] === s[f]) l[f] = Zt(o[u], r[f]), u++, f++;
653
+ else if (a[p] === s[g]) l[g] = Zt(o[p], r[g]), p--, g--;
654
+ else if (a[u] === s[g]) l[g] = Zt(o[u], r[g]), fe(i, l[g + 1], o[u]), u++, g--;
655
+ else if (a[p] === s[f]) l[f] = Zt(o[p], r[f]), fe(i, o[u], o[p]), p--, f++;
656
656
  else if (d === void 0 && (d = Dn(s, f, g), c = Dn(a, u, p)), d.has(a[u])) if (d.has(a[p])) {
657
657
  const b = c.get(s[f]), N = b !== void 0 ? o[b] : null;
658
658
  if (N === null) {
659
659
  const J = fe(i, o[u]);
660
- zt(J, r[f]), l[f] = J;
661
- } else l[f] = zt(N, r[f]), fe(i, o[u], N), o[b] = null;
660
+ Zt(J, r[f]), l[f] = J;
661
+ } else l[f] = Zt(N, r[f]), fe(i, o[u], N), o[b] = null;
662
662
  f++;
663
- } else Ri(o[p]), p--;
664
- else Ri(o[u]), u++;
663
+ } else Li(o[p]), p--;
664
+ else Li(o[u]), u++;
665
665
  for (; f <= g; ) {
666
666
  const b = fe(i, l[g + 1]);
667
- zt(b, r[f]), l[f++] = b;
667
+ Zt(b, r[f]), l[f++] = b;
668
668
  }
669
669
  for (; u <= p; ) {
670
670
  const b = o[u++];
671
- b !== null && Ri(b);
671
+ b !== null && Li(b);
672
672
  }
673
673
  return this.ut = s, no(i, l), vt;
674
674
  }
@@ -851,7 +851,7 @@ function Tt(i) {
851
851
  if (t)
852
852
  return parseFloat(t[1]);
853
853
  }
854
- function Li(i) {
854
+ function Ri(i) {
855
855
  return Je(Si(i, !1));
856
856
  }
857
857
  function Je(i) {
@@ -926,10 +926,10 @@ function Or(i, t) {
926
926
  s
927
927
  ];
928
928
  }
929
- function Rr(i, t) {
929
+ function Lr(i, t) {
930
930
  return Q({}, Yr, i, t);
931
931
  }
932
- function Lr(i, t) {
932
+ function Rr(i, t) {
933
933
  return Q({}, Wr, i, t);
934
934
  }
935
935
  function Mr(i, t) {
@@ -1069,12 +1069,12 @@ function lo(i, t) {
1069
1069
  return e.size = n, e;
1070
1070
  }
1071
1071
  }
1072
- function Zr(i, t) {
1072
+ function zr(i, t) {
1073
1073
  var e = Pt(i, t);
1074
1074
  if (S(e))
1075
1075
  return e.name = i.getAttribute("name"), e;
1076
1076
  }
1077
- function zr(i, t) {
1077
+ function Zr(i, t) {
1078
1078
  var e = Pt(i, t);
1079
1079
  if (S(e))
1080
1080
  return e.type = i.getAttribute("type"), e;
@@ -1096,8 +1096,8 @@ const ot = [
1096
1096
  ], Xr = nt(
1097
1097
  ot,
1098
1098
  {
1099
- Service: y(Lr),
1100
- Capability: y(Rr)
1099
+ Service: y(Rr),
1100
+ Capability: y(Lr)
1101
1101
  }
1102
1102
  ), Yr = nt(
1103
1103
  ot,
@@ -1117,9 +1117,9 @@ const ot = [
1117
1117
  ContactInformation: y(Mr),
1118
1118
  Fees: y(D),
1119
1119
  AccessConstraints: y(D),
1120
- LayerLimit: y(Li),
1121
- MaxWidth: y(Li),
1122
- MaxHeight: y(Li)
1120
+ LayerLimit: y(Ri),
1121
+ MaxWidth: y(Ri),
1122
+ MaxHeight: y(Ri)
1123
1123
  }
1124
1124
  ), Gr = nt(
1125
1125
  ot,
@@ -1166,9 +1166,9 @@ const ot = [
1166
1166
  BoundingBox: pt(Tr),
1167
1167
  Dimension: pt(kr),
1168
1168
  Attribution: y(Cr),
1169
- AuthorityURL: pt(Zr),
1169
+ AuthorityURL: pt(zr),
1170
1170
  Identifier: pt(D),
1171
- MetadataURL: pt(zr),
1171
+ MetadataURL: pt(Zr),
1172
1172
  DataURL: pt(Pt),
1173
1173
  FeatureListURL: pt(Pt),
1174
1174
  Style: pt(qr),
@@ -1417,15 +1417,15 @@ function Dt(i) {
1417
1417
  if (typeof window < "u" && window.navigator)
1418
1418
  return !!/* @__PURE__ */ navigator.userAgent.match(i);
1419
1419
  }
1420
- var Rt = Dt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Le = Dt(/Edge/i), On = Dt(/firefox/i), we = Dt(/safari/i) && !Dt(/chrome/i) && !Dt(/android/i), un = Dt(/iP(ad|od|hone)/i), po = Dt(/chrome/i) && Dt(/android/i), fo = {
1420
+ var Lt = Dt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Re = Dt(/Edge/i), On = Dt(/firefox/i), we = Dt(/safari/i) && !Dt(/chrome/i) && !Dt(/android/i), un = Dt(/iP(ad|od|hone)/i), po = Dt(/chrome/i) && Dt(/android/i), fo = {
1421
1421
  capture: !1,
1422
1422
  passive: !1
1423
1423
  };
1424
1424
  function C(i, t, e) {
1425
- i.addEventListener(t, e, !Rt && fo);
1425
+ i.addEventListener(t, e, !Lt && fo);
1426
1426
  }
1427
1427
  function A(i, t, e) {
1428
- i.removeEventListener(t, e, !Rt && fo);
1428
+ i.removeEventListener(t, e, !Lt && fo);
1429
1429
  }
1430
1430
  function Ke(i, t) {
1431
1431
  if (t) {
@@ -1457,14 +1457,14 @@ function xt(i, t, e, n) {
1457
1457
  }
1458
1458
  return null;
1459
1459
  }
1460
- var Rn = /\s+/g;
1460
+ var Ln = /\s+/g;
1461
1461
  function mt(i, t, e) {
1462
1462
  if (i && t)
1463
1463
  if (i.classList)
1464
1464
  i.classList[e ? "add" : "remove"](t);
1465
1465
  else {
1466
- var n = (" " + i.className + " ").replace(Rn, " ").replace(" " + t + " ", " ");
1467
- i.className = (n + (e ? " " + t : "")).replace(Rn, " ");
1466
+ var n = (" " + i.className + " ").replace(Ln, " ").replace(" " + t + " ", " ");
1467
+ i.className = (n + (e ? " " + t : "")).replace(Ln, " ");
1468
1468
  }
1469
1469
  }
1470
1470
  function v(i, t, e) {
@@ -1504,7 +1504,7 @@ function $t() {
1504
1504
  function W(i, t, e, n, o) {
1505
1505
  if (!(!i.getBoundingClientRect && i !== window)) {
1506
1506
  var r, s, a, l, d, c, u;
1507
- if (i !== window && i.parentNode && i !== $t() ? (r = i.getBoundingClientRect(), s = r.top, a = r.left, l = r.bottom, d = r.right, c = r.height, u = r.width) : (s = 0, a = 0, l = window.innerHeight, d = window.innerWidth, c = window.innerHeight, u = window.innerWidth), (t || e) && i !== window && (o = o || i.parentNode, !Rt))
1507
+ if (i !== window && i.parentNode && i !== $t() ? (r = i.getBoundingClientRect(), s = r.top, a = r.left, l = r.bottom, d = r.right, c = r.height, u = r.width) : (s = 0, a = 0, l = window.innerHeight, d = window.innerWidth, c = window.innerHeight, u = window.innerWidth), (t || e) && i !== window && (o = o || i.parentNode, !Lt))
1508
1508
  do
1509
1509
  if (o && o.getBoundingClientRect && (v(o, "transform") !== "none" || e && v(o, "position") !== "static")) {
1510
1510
  var p = o.getBoundingClientRect();
@@ -1526,7 +1526,7 @@ function W(i, t, e, n, o) {
1526
1526
  };
1527
1527
  }
1528
1528
  }
1529
- function Ln(i, t, e) {
1529
+ function Rn(i, t, e) {
1530
1530
  for (var n = Vt(i, !0), o = W(i)[t]; n; ) {
1531
1531
  var r = W(n)[e], s = void 0;
1532
1532
  if (s = o >= r, !s) return n;
@@ -1752,7 +1752,7 @@ function Ss(i) {
1752
1752
  var t = i.sortable, e = i.rootEl, n = i.name, o = i.targetEl, r = i.cloneEl, s = i.toEl, a = i.fromEl, l = i.oldIndex, d = i.newIndex, c = i.oldDraggableIndex, u = i.newDraggableIndex, p = i.originalEvent, f = i.putSortable, g = i.extraEventProperties;
1753
1753
  if (t = t || e && e[ft], !!t) {
1754
1754
  var b, N = t.options, J = "on" + n.charAt(0).toUpperCase() + n.substr(1);
1755
- window.CustomEvent && !Rt && !Le ? b = new CustomEvent(n, {
1755
+ window.CustomEvent && !Lt && !Re ? b = new CustomEvent(n, {
1756
1756
  bubbles: !0,
1757
1757
  cancelable: !0
1758
1758
  }) : (b = document.createEvent("Event"), b.initEvent(n, !0, !0)), b.to = s || e, b.from = a || e, b.item = o || e, b.clone = r, b.oldIndex = l, b.newIndex = d, b.oldDraggableIndex = c, b.newDraggableIndex = u, b.originalEvent = p, b.pullMode = f ? f.lastPutMode : void 0;
@@ -1766,11 +1766,11 @@ var _s = ["evt"], ht = function(t, e) {
1766
1766
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = n.evt, r = ms(n, _s);
1767
1767
  Me.pluginEvent.bind(w)(t, e, St({
1768
1768
  dragEl: h,
1769
- parentEl: Z,
1769
+ parentEl: z,
1770
1770
  ghostEl: E,
1771
1771
  rootEl: V,
1772
1772
  nextEl: Yt,
1773
- lastDownEl: Ze,
1773
+ lastDownEl: ze,
1774
1774
  cloneEl: k,
1775
1775
  cloneHidden: Nt,
1776
1776
  dragStarted: ge,
@@ -1810,9 +1810,9 @@ function at(i) {
1810
1810
  newDraggableIndex: It
1811
1811
  }, i));
1812
1812
  }
1813
- var h, Z, E, V, Yt, Ze, k, Nt, se, yt, Ee, It, He, et, ne = !1, Qe = !1, ti = [], qt, wt, Hi, Vi, In, Nn, ge, ee, $e, Se = !1, Ve = !1, ze, rt, Bi = [], Xi = !1, ei = [], _i = typeof document < "u", Be = un, Hn = Le || Rt ? "cssFloat" : "float", As = _i && !po && !un && "draggable" in document.createElement("div"), xo = function() {
1813
+ var h, z, E, V, Yt, ze, k, Nt, se, yt, Ee, It, He, et, ne = !1, Qe = !1, ti = [], qt, wt, Hi, Vi, In, Nn, ge, ee, $e, Se = !1, Ve = !1, Ze, rt, Bi = [], Xi = !1, ei = [], _i = typeof document < "u", Be = un, Hn = Re || Lt ? "cssFloat" : "float", As = _i && !po && !un && "draggable" in document.createElement("div"), xo = function() {
1814
1814
  if (_i) {
1815
- if (Rt)
1815
+ if (Lt)
1816
1816
  return !1;
1817
1817
  var i = document.createElement("x");
1818
1818
  return i.style.cssText = "pointer-events:auto", i.style.pointerEvents === "auto";
@@ -1954,7 +1954,7 @@ w.prototype = /** @lends Sortable.prototype */
1954
1954
  _onTapStart: function(t) {
1955
1955
  if (t.cancelable) {
1956
1956
  var e = this, n = this.el, o = this.options, r = o.preventOnFilter, s = t.type, a = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (a || t).target, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, c = o.filter;
1957
- if (Hs(n), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || o.disabled) && !d.isContentEditable && !(!this.nativeDraggable && we && l && l.tagName.toUpperCase() === "SELECT") && (l = xt(l, o.draggable, n, !1), !(l && l.animated) && Ze !== l)) {
1957
+ if (Hs(n), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || o.disabled) && !d.isContentEditable && !(!this.nativeDraggable && we && l && l.tagName.toUpperCase() === "SELECT") && (l = xt(l, o.draggable, n, !1), !(l && l.animated) && ze !== l)) {
1958
1958
  if (se = bt(l), Ee = bt(l, o.draggable), typeof c == "function") {
1959
1959
  if (c.call(this, t, l, this)) {
1960
1960
  at({
@@ -1993,7 +1993,7 @@ w.prototype = /** @lends Sortable.prototype */
1993
1993
  var o = this, r = o.el, s = o.options, a = r.ownerDocument, l;
1994
1994
  if (n && !h && n.parentNode === r) {
1995
1995
  var d = W(n);
1996
- if (V = r, h = n, Z = h.parentNode, Yt = h.nextSibling, Ze = n, He = s.group, w.dragged = h, qt = {
1996
+ if (V = r, h = n, z = h.parentNode, Yt = h.nextSibling, ze = n, He = s.group, w.dragged = h, qt = {
1997
1997
  target: h,
1998
1998
  clientX: (e || t).clientX,
1999
1999
  clientY: (e || t).clientY
@@ -2013,7 +2013,7 @@ w.prototype = /** @lends Sortable.prototype */
2013
2013
  mo(h, c.trim(), ki);
2014
2014
  }), C(a, "dragover", Xt), C(a, "mousemove", Xt), C(a, "touchmove", Xt), s.supportPointer ? (C(a, "pointerup", o._onDrop), !this.nativeDraggable && C(a, "pointercancel", o._onDrop)) : (C(a, "mouseup", o._onDrop), C(a, "touchend", o._onDrop), C(a, "touchcancel", o._onDrop)), On && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), ht("delayStart", this, {
2015
2015
  evt: t
2016
- }), s.delay && (!s.delayOnTouchOnly || e) && (!this.nativeDraggable || !(Le || Rt))) {
2016
+ }), s.delay && (!s.delayOnTouchOnly || e) && (!this.nativeDraggable || !(Re || Lt))) {
2017
2017
  if (w.eventCanceled) {
2018
2018
  this._onDrop();
2019
2019
  return;
@@ -2173,41 +2173,41 @@ w.prototype = /** @lends Sortable.prototype */
2173
2173
  if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = xt(n, a.draggable, e, !0), N("dragOver"), w.eventCanceled) return b;
2174
2174
  if (h.contains(t.target) || n.animated && n.animatingX && n.animatingY || g._ignoreWhileAnimating === n)
2175
2175
  return U(!1);
2176
- if (Qe = !1, d && !a.disabled && (c ? u || (s = Z !== V) : et === this || (this.lastPutMode = He.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
2176
+ if (Qe = !1, d && !a.disabled && (c ? u || (s = z !== V) : et === this || (this.lastPutMode = He.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
2177
2177
  if (f = this._getDirection(t, n) === "vertical", o = W(h), N("dragOverValid"), w.eventCanceled) return b;
2178
2178
  if (s)
2179
- return Z = V, J(), this._hideClone(), N("revert"), w.eventCanceled || (Yt ? V.insertBefore(h, Yt) : V.appendChild(h)), U(!0);
2179
+ return z = V, J(), this._hideClone(), N("revert"), w.eventCanceled || (Yt ? V.insertBefore(h, Yt) : V.appendChild(h)), U(!0);
2180
2180
  var K = cn(e, a.draggable);
2181
- if (!K || Ls(t, f, this) && !K.animated) {
2181
+ if (!K || Rs(t, f, this) && !K.animated) {
2182
2182
  if (K === h)
2183
2183
  return U(!1);
2184
2184
  if (K && e === t.target && (n = K), n && (r = W(n)), ke(V, e, h, o, n, r, t, !!n) !== !1)
2185
- return J(), K && K.nextSibling ? e.insertBefore(h, K.nextSibling) : e.appendChild(h), Z = e, st(), U(!0);
2186
- } else if (K && Rs(t, f, this)) {
2185
+ return J(), K && K.nextSibling ? e.insertBefore(h, K.nextSibling) : e.appendChild(h), z = e, st(), U(!0);
2186
+ } else if (K && Ls(t, f, this)) {
2187
2187
  var $ = de(e, 0, a, !0);
2188
2188
  if ($ === h)
2189
2189
  return U(!1);
2190
2190
  if (n = $, r = W(n), ke(V, e, h, o, n, r, t, !1) !== !1)
2191
- return J(), e.insertBefore(h, $), Z = e, st(), U(!0);
2191
+ return J(), e.insertBefore(h, $), z = e, st(), U(!0);
2192
2192
  } else if (n.parentNode === e) {
2193
2193
  r = W(n);
2194
- var m = 0, _, M = h.parentNode !== e, R = !Cs(h.animated && h.toRect || o, n.animated && n.toRect || r, f), q = f ? "top" : "left", X = Ln(n, "top", "top") || Ln(h, "top", "top"), H = X ? X.scrollTop : void 0;
2195
- ee !== n && (_ = r[q], Se = !1, Ve = !R && a.invertSwap || M), m = Ms(t, n, r, f, R ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ve, ee === n);
2196
- var L;
2194
+ var m = 0, _, M = h.parentNode !== e, L = !Cs(h.animated && h.toRect || o, n.animated && n.toRect || r, f), q = f ? "top" : "left", X = Rn(n, "top", "top") || Rn(h, "top", "top"), H = X ? X.scrollTop : void 0;
2195
+ ee !== n && (_ = r[q], Se = !1, Ve = !L && a.invertSwap || M), m = Ms(t, n, r, f, L ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ve, ee === n);
2196
+ var R;
2197
2197
  if (m !== 0) {
2198
- var z = bt(h);
2198
+ var Z = bt(h);
2199
2199
  do
2200
- z -= m, L = Z.children[z];
2201
- while (L && (v(L, "display") === "none" || L === E));
2200
+ Z -= m, R = z.children[Z];
2201
+ while (R && (v(R, "display") === "none" || R === E));
2202
2202
  }
2203
- if (m === 0 || L === n)
2203
+ if (m === 0 || R === n)
2204
2204
  return U(!1);
2205
2205
  ee = n, $e = m;
2206
2206
  var dt = n.nextElementSibling, tt = !1;
2207
2207
  tt = m === 1;
2208
2208
  var ut = ke(V, e, h, o, n, r, t, tt);
2209
2209
  if (ut !== !1)
2210
- return (ut === 1 || ut === -1) && (tt = ut === 1), Xi = !0, setTimeout(Os, 30), J(), tt && !dt ? e.appendChild(h) : n.parentNode.insertBefore(h, tt ? dt : n), X && bo(X, 0, H - X.scrollTop), Z = h.parentNode, _ !== void 0 && !Ve && (ze = Math.abs(_ - W(n)[q])), st(), U(!0);
2210
+ return (ut === 1 || ut === -1) && (tt = ut === 1), Xi = !0, setTimeout(Os, 30), J(), tt && !dt ? e.appendChild(h) : n.parentNode.insertBefore(h, tt ? dt : n), X && bo(X, 0, H - X.scrollTop), z = h.parentNode, _ !== void 0 && !Ve && (Ze = Math.abs(_ - W(n)[q])), st(), U(!0);
2211
2211
  }
2212
2212
  if (e.contains(h))
2213
2213
  return U(!1);
@@ -2226,58 +2226,58 @@ w.prototype = /** @lends Sortable.prototype */
2226
2226
  var e = this.el, n = this.options;
2227
2227
  if (yt = bt(h), It = bt(h, n.draggable), ht("drop", this, {
2228
2228
  evt: t
2229
- }), Z = h && h.parentNode, yt = bt(h), It = bt(h, n.draggable), w.eventCanceled) {
2229
+ }), z = h && h.parentNode, yt = bt(h), It = bt(h, n.draggable), w.eventCanceled) {
2230
2230
  this._nulling();
2231
2231
  return;
2232
2232
  }
2233
- ne = !1, Ve = !1, Se = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Yi(this.cloneId), Yi(this._dragStartId), this.nativeDraggable && (A(document, "drop", this), A(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), we && v(document.body, "user-select", ""), v(h, "transform", ""), t && (ge && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), E && E.parentNode && E.parentNode.removeChild(E), (V === Z || et && et.lastPutMode !== "clone") && k && k.parentNode && k.parentNode.removeChild(k), h && (this.nativeDraggable && A(h, "dragend", this), ki(h), h.style["will-change"] = "", ge && !ne && mt(h, et ? et.options.ghostClass : this.options.ghostClass, !1), mt(h, this.options.chosenClass, !1), at({
2233
+ ne = !1, Ve = !1, Se = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Yi(this.cloneId), Yi(this._dragStartId), this.nativeDraggable && (A(document, "drop", this), A(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), we && v(document.body, "user-select", ""), v(h, "transform", ""), t && (ge && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), E && E.parentNode && E.parentNode.removeChild(E), (V === z || et && et.lastPutMode !== "clone") && k && k.parentNode && k.parentNode.removeChild(k), h && (this.nativeDraggable && A(h, "dragend", this), ki(h), h.style["will-change"] = "", ge && !ne && mt(h, et ? et.options.ghostClass : this.options.ghostClass, !1), mt(h, this.options.chosenClass, !1), at({
2234
2234
  sortable: this,
2235
2235
  name: "unchoose",
2236
- toEl: Z,
2236
+ toEl: z,
2237
2237
  newIndex: null,
2238
2238
  newDraggableIndex: null,
2239
2239
  originalEvent: t
2240
- }), V !== Z ? (yt >= 0 && (at({
2241
- rootEl: Z,
2240
+ }), V !== z ? (yt >= 0 && (at({
2241
+ rootEl: z,
2242
2242
  name: "add",
2243
- toEl: Z,
2243
+ toEl: z,
2244
2244
  fromEl: V,
2245
2245
  originalEvent: t
2246
2246
  }), at({
2247
2247
  sortable: this,
2248
2248
  name: "remove",
2249
- toEl: Z,
2249
+ toEl: z,
2250
2250
  originalEvent: t
2251
2251
  }), at({
2252
- rootEl: Z,
2252
+ rootEl: z,
2253
2253
  name: "sort",
2254
- toEl: Z,
2254
+ toEl: z,
2255
2255
  fromEl: V,
2256
2256
  originalEvent: t
2257
2257
  }), at({
2258
2258
  sortable: this,
2259
2259
  name: "sort",
2260
- toEl: Z,
2260
+ toEl: z,
2261
2261
  originalEvent: t
2262
2262
  })), et && et.save()) : yt !== se && yt >= 0 && (at({
2263
2263
  sortable: this,
2264
2264
  name: "update",
2265
- toEl: Z,
2265
+ toEl: z,
2266
2266
  originalEvent: t
2267
2267
  }), at({
2268
2268
  sortable: this,
2269
2269
  name: "sort",
2270
- toEl: Z,
2270
+ toEl: z,
2271
2271
  originalEvent: t
2272
2272
  })), w.active && ((yt == null || yt === -1) && (yt = se, It = Ee), at({
2273
2273
  sortable: this,
2274
2274
  name: "end",
2275
- toEl: Z,
2275
+ toEl: z,
2276
2276
  originalEvent: t
2277
2277
  }), this.save()))), this._nulling();
2278
2278
  },
2279
2279
  _nulling: function() {
2280
- ht("nulling", this), V = h = Z = E = Yt = k = Ze = Nt = qt = wt = ge = yt = It = se = Ee = ee = $e = et = He = w.dragged = w.ghost = w.clone = w.active = null, ei.forEach(function(t) {
2280
+ ht("nulling", this), V = h = z = E = Yt = k = ze = Nt = qt = wt = ge = yt = It = se = Ee = ee = $e = et = He = w.dragged = w.ghost = w.clone = w.active = null, ei.forEach(function(t) {
2281
2281
  t.checked = !0;
2282
2282
  }), ei.length = Hi = Vi = 0;
2283
2283
  },
@@ -2379,7 +2379,7 @@ function Ps(i) {
2379
2379
  }
2380
2380
  function ke(i, t, e, n, o, r, s, a) {
2381
2381
  var l, d = i[ft], c = d.options.onMove, u;
2382
- return window.CustomEvent && !Rt && !Le ? l = new CustomEvent("move", {
2382
+ return window.CustomEvent && !Lt && !Re ? l = new CustomEvent("move", {
2383
2383
  bubbles: !0,
2384
2384
  cancelable: !0
2385
2385
  }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = i, l.dragged = e, l.draggedRect = n, l.related = o || t, l.relatedRect = r || W(t), l.willInsertAfter = a, l.originalEvent = s, i.dispatchEvent(l), c && (u = c.call(d, l, s)), u;
@@ -2390,21 +2390,21 @@ function ki(i) {
2390
2390
  function Os() {
2391
2391
  Xi = !1;
2392
2392
  }
2393
- function Rs(i, t, e) {
2393
+ function Ls(i, t, e) {
2394
2394
  var n = W(de(e.el, 0, e.options, !0)), o = wo(e.el, e.options, E), r = 10;
2395
2395
  return t ? i.clientX < o.left - r || i.clientY < n.top && i.clientX < n.right : i.clientY < o.top - r || i.clientY < n.bottom && i.clientX < n.left;
2396
2396
  }
2397
- function Ls(i, t, e) {
2397
+ function Rs(i, t, e) {
2398
2398
  var n = W(cn(e.el, e.options.draggable)), o = wo(e.el, e.options, E), r = 10;
2399
2399
  return t ? i.clientX > o.right + r || i.clientY > n.bottom && i.clientX > n.left : i.clientY > o.bottom + r || i.clientX > n.right && i.clientY > n.top;
2400
2400
  }
2401
2401
  function Ms(i, t, e, n, o, r, s, a) {
2402
2402
  var l = n ? i.clientY : i.clientX, d = n ? e.height : e.width, c = n ? e.top : e.left, u = n ? e.bottom : e.right, p = !1;
2403
2403
  if (!s) {
2404
- if (a && ze < d * o) {
2404
+ if (a && Ze < d * o) {
2405
2405
  if (!Se && ($e === 1 ? l > c + d * r / 2 : l < u - d * r / 2) && (Se = !0), Se)
2406
2406
  p = !0;
2407
- else if ($e === 1 ? l < c + ze : l > u - ze)
2407
+ else if ($e === 1 ? l < c + Ze : l > u - Ze)
2408
2408
  return -$e;
2409
2409
  } else if (l > c + d * (1 - o) / 2 && l < u - d * (1 - o) / 2)
2410
2410
  return Is(t);
@@ -2504,7 +2504,7 @@ function Vs() {
2504
2504
  },
2505
2505
  _handleAutoScroll: function(e, n) {
2506
2506
  var o = this, r = (e.touches ? e.touches[0] : e).clientX, s = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, s);
2507
- if (ii = e, n || this.options.forceAutoScrollFallback || Le || Rt || we) {
2507
+ if (ii = e, n || this.options.forceAutoScrollFallback || Re || Lt || we) {
2508
2508
  ji(e, this.options, a, n);
2509
2509
  var l = Vt(a, !0);
2510
2510
  Gi && (!ye || r !== Ui || s !== Fi) && (ye && Vn(), ye = setInterval(function() {
@@ -2538,13 +2538,13 @@ var ji = yo(function(i, t, e, n) {
2538
2538
  Wi !== e && (Wi = e, Xe(), me = t.scroll, c = t.scrollFn, me === !0 && (me = Vt(e, !0)));
2539
2539
  var u = 0, p = me;
2540
2540
  do {
2541
- var f = p, g = W(f), b = g.top, N = g.bottom, J = g.left, U = g.right, st = g.width, K = g.height, $ = void 0, m = void 0, _ = f.scrollWidth, M = f.scrollHeight, R = v(f), q = f.scrollLeft, X = f.scrollTop;
2542
- f === l ? ($ = st < _ && (R.overflowX === "auto" || R.overflowX === "scroll" || R.overflowX === "visible"), m = K < M && (R.overflowY === "auto" || R.overflowY === "scroll" || R.overflowY === "visible")) : ($ = st < _ && (R.overflowX === "auto" || R.overflowX === "scroll"), m = K < M && (R.overflowY === "auto" || R.overflowY === "scroll"));
2543
- var H = $ && (Math.abs(U - o) <= s && q + st < _) - (Math.abs(J - o) <= s && !!q), L = m && (Math.abs(N - r) <= s && X + K < M) - (Math.abs(b - r) <= s && !!X);
2541
+ var f = p, g = W(f), b = g.top, N = g.bottom, J = g.left, U = g.right, st = g.width, K = g.height, $ = void 0, m = void 0, _ = f.scrollWidth, M = f.scrollHeight, L = v(f), q = f.scrollLeft, X = f.scrollTop;
2542
+ f === l ? ($ = st < _ && (L.overflowX === "auto" || L.overflowX === "scroll" || L.overflowX === "visible"), m = K < M && (L.overflowY === "auto" || L.overflowY === "scroll" || L.overflowY === "visible")) : ($ = st < _ && (L.overflowX === "auto" || L.overflowX === "scroll"), m = K < M && (L.overflowY === "auto" || L.overflowY === "scroll"));
2543
+ var H = $ && (Math.abs(U - o) <= s && q + st < _) - (Math.abs(J - o) <= s && !!q), R = m && (Math.abs(N - r) <= s && X + K < M) - (Math.abs(b - r) <= s && !!X);
2544
2544
  if (!Y[u])
2545
- for (var z = 0; z <= u; z++)
2546
- Y[z] || (Y[z] = {});
2547
- (Y[u].vx != H || Y[u].vy != L || Y[u].el !== f) && (Y[u].el = f, Y[u].vx = H, Y[u].vy = L, clearInterval(Y[u].pid), (H != 0 || L != 0) && (d = !0, Y[u].pid = setInterval((function() {
2545
+ for (var Z = 0; Z <= u; Z++)
2546
+ Y[Z] || (Y[Z] = {});
2547
+ (Y[u].vx != H || Y[u].vy != R || Y[u].el !== f) && (Y[u].el = f, Y[u].vx = H, Y[u].vy = R, clearInterval(Y[u].pid), (H != 0 || R != 0) && (d = !0, Y[u].pid = setInterval((function() {
2548
2548
  n && this.layer === 0 && w.active._onTouchMove(ii);
2549
2549
  var dt = Y[this.layer].vy ? Y[this.layer].vy * a : 0, tt = Y[this.layer].vx ? Y[this.layer].vx * a : 0;
2550
2550
  typeof c == "function" && c.call(w.dragged.parentNode[ft], tt, dt, i, ii, Y[this.layer].el) !== "continue" || bo(Y[this.layer].el, tt, dt);
@@ -2684,14 +2684,14 @@ function Co(i, t) {
2684
2684
  const e = i.get("minZoom"), n = i.get("maxZoom");
2685
2685
  return !!(t && (e !== -1 / 0 || n !== 1 / 0));
2686
2686
  }
2687
- function Zs(i, t) {
2687
+ function zs(i, t) {
2688
2688
  var o, r, s;
2689
2689
  return !i || !t ? void 0 : i.getLayers ? "group" : ((s = (o = t.getInteractions().getArray().filter((a) => a.freehand_ !== void 0).map((a) => a.source_)) == null ? void 0 : o.ol_uid) == null ? void 0 : s.includes(
2690
2690
  // @ts-expect-error TODO
2691
2691
  i.getSource ? (r = i.getSource()) == null ? void 0 : r.ol_uid : void 0
2692
2692
  )) ? "draw" : i.declutter_ !== void 0 ? "vector" : "raster";
2693
2693
  }
2694
- const zs = (i, t, e) => {
2694
+ const Zs = (i, t, e) => {
2695
2695
  let n = t;
2696
2696
  return e.layer.getSource().getTileUrlFunction() && (n || (n = e.layer.getSource().getTileUrlFunction()), e.layer.getSource().setTileUrlFunction(
2697
2697
  (...o) => ps(n(...o), i)
@@ -2889,66 +2889,66 @@ var Bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2889
2889
  function Oo(i) {
2890
2890
  return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
2891
2891
  }
2892
- var Zi, Bn;
2892
+ var zi, Bn;
2893
2893
  function ia() {
2894
- if (Bn) return Zi;
2894
+ if (Bn) return zi;
2895
2895
  Bn = 1;
2896
2896
  var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, r = /^0b[01]+$/i, s = /^0o[0-7]+$/i, a = parseInt, l = typeof Bt == "object" && Bt && Bt.Object === Object && Bt, d = typeof self == "object" && self && self.Object === Object && self, c = l || d || Function("return this")(), u = Object.prototype, p = u.toString, f = Math.max, g = Math.min, b = function() {
2897
2897
  return c.Date.now();
2898
2898
  };
2899
2899
  function N(m, _, M) {
2900
- var R, q, X, H, L, z, dt = 0, tt = !1, ut = !1, gt = !0;
2900
+ var L, q, X, H, R, Z, dt = 0, tt = !1, ut = !1, gt = !0;
2901
2901
  if (typeof m != "function")
2902
2902
  throw new TypeError(i);
2903
2903
  _ = $(_) || 0, U(M) && (tt = !!M.leading, ut = "maxWait" in M, X = ut ? f($(M.maxWait) || 0, _) : X, gt = "trailing" in M ? !!M.trailing : gt);
2904
2904
  function Ut(I) {
2905
- var ct = R, Lt = q;
2906
- return R = q = void 0, dt = I, H = m.apply(Lt, ct), H;
2905
+ var ct = L, Rt = q;
2906
+ return L = q = void 0, dt = I, H = m.apply(Rt, ct), H;
2907
2907
  }
2908
2908
  function Ie(I) {
2909
- return dt = I, L = setTimeout(jt, _), tt ? Ut(I) : H;
2909
+ return dt = I, R = setTimeout(jt, _), tt ? Ut(I) : H;
2910
2910
  }
2911
2911
  function Ft(I) {
2912
- var ct = I - z, Lt = I - dt, mn = _ - ct;
2913
- return ut ? g(mn, X - Lt) : mn;
2912
+ var ct = I - Z, Rt = I - dt, mn = _ - ct;
2913
+ return ut ? g(mn, X - Rt) : mn;
2914
2914
  }
2915
2915
  function _t(I) {
2916
- var ct = I - z, Lt = I - dt;
2917
- return z === void 0 || ct >= _ || ct < 0 || ut && Lt >= X;
2916
+ var ct = I - Z, Rt = I - dt;
2917
+ return Z === void 0 || ct >= _ || ct < 0 || ut && Rt >= X;
2918
2918
  }
2919
2919
  function jt() {
2920
2920
  var I = b();
2921
2921
  if (_t(I))
2922
2922
  return Ne(I);
2923
- L = setTimeout(jt, Ft(I));
2923
+ R = setTimeout(jt, Ft(I));
2924
2924
  }
2925
2925
  function Ne(I) {
2926
- return L = void 0, gt && R ? Ut(I) : (R = q = void 0, H);
2926
+ return R = void 0, gt && L ? Ut(I) : (L = q = void 0, H);
2927
2927
  }
2928
2928
  function Ai() {
2929
- L !== void 0 && clearTimeout(L), dt = 0, R = z = q = L = void 0;
2929
+ R !== void 0 && clearTimeout(R), dt = 0, L = Z = q = R = void 0;
2930
2930
  }
2931
2931
  function he() {
2932
- return L === void 0 ? H : Ne(b());
2932
+ return R === void 0 ? H : Ne(b());
2933
2933
  }
2934
2934
  function B() {
2935
2935
  var I = b(), ct = _t(I);
2936
- if (R = arguments, q = this, z = I, ct) {
2937
- if (L === void 0)
2938
- return Ie(z);
2936
+ if (L = arguments, q = this, Z = I, ct) {
2937
+ if (R === void 0)
2938
+ return Ie(Z);
2939
2939
  if (ut)
2940
- return L = setTimeout(jt, _), Ut(z);
2940
+ return R = setTimeout(jt, _), Ut(Z);
2941
2941
  }
2942
- return L === void 0 && (L = setTimeout(jt, _)), H;
2942
+ return R === void 0 && (R = setTimeout(jt, _)), H;
2943
2943
  }
2944
2944
  return B.cancel = Ai, B.flush = he, B;
2945
2945
  }
2946
2946
  function J(m, _, M) {
2947
- var R = !0, q = !0;
2947
+ var L = !0, q = !0;
2948
2948
  if (typeof m != "function")
2949
2949
  throw new TypeError(i);
2950
- return U(M) && (R = "leading" in M ? !!M.leading : R, q = "trailing" in M ? !!M.trailing : q), N(m, _, {
2951
- leading: R,
2950
+ return U(M) && (L = "leading" in M ? !!M.leading : L, q = "trailing" in M ? !!M.trailing : q), N(m, _, {
2951
+ leading: L,
2952
2952
  maxWait: _,
2953
2953
  trailing: q
2954
2954
  });
@@ -2978,7 +2978,7 @@ function ia() {
2978
2978
  var M = r.test(m);
2979
2979
  return M || s.test(m) ? a(m.slice(2), M ? 2 : 8) : o.test(m) ? t : +m;
2980
2980
  }
2981
- return Zi = J, Zi;
2981
+ return zi = J, zi;
2982
2982
  }
2983
2983
  var na = ia();
2984
2984
  const kn = /* @__PURE__ */ Oo(na);
@@ -2989,21 +2989,17 @@ const kn = /* @__PURE__ */ Oo(na);
2989
2989
  */
2990
2990
  const Ue = (i) => i ?? O;
2991
2991
  var ni, oi;
2992
- class Ro extends lt {
2992
+ class Lo extends lt {
2993
2993
  constructor() {
2994
2994
  super();
2995
2995
  P(this, ni, qn`
2996
- .legend-container {
2997
- display: flex;
2998
- justify-content: center;
2999
- }
3000
-
3001
2996
  color-legend {
3002
2997
  --cle-background: transparent;
3003
2998
  --cle-font-family: inherit;
3004
2999
  --cle-font-size: inherit;
3005
3000
  --cle-font-weight: inherit --cle-letter-spacing: inherit;
3006
3001
  --cle-letter-spacing-title: inherit;
3002
+ --cle-padding: 0;
3007
3003
  }
3008
3004
  `);
3009
3005
  P(this, oi, "");
@@ -3015,6 +3011,11 @@ class Ro extends lt {
3015
3011
  createRenderRoot() {
3016
3012
  return this.noShadow ? this : super.createRenderRoot();
3017
3013
  }
3014
+ firstUpdated() {
3015
+ this.layerLegend.width || new ResizeObserver(() => {
3016
+ this.offsetWidth !== this.layerLegend.width && (this.layerLegend.width = this.offsetWidth, this.requestUpdate());
3017
+ }).observe(this.renderRoot.querySelector(".legend-container"));
3018
+ }
3018
3019
  /**
3019
3020
  * Renders a Time Control for datetime options of a layer.
3020
3021
  */
@@ -3042,6 +3043,8 @@ class Ro extends lt {
3042
3043
  tickFormat="${Ue(this.layerLegend.tickFormat)}"
3043
3044
  .ticks=${this.layerLegend.ticks ?? 5}
3044
3045
  .tickValues=${this.layerLegend.tickValues}
3046
+ .marginLeft=${0}
3047
+ .marginRight=${0}
3045
3048
  >
3046
3049
  </color-legend>
3047
3050
  </div>
@@ -3051,7 +3054,7 @@ class Ro extends lt {
3051
3054
  }
3052
3055
  }
3053
3056
  ni = new WeakMap(), oi = new WeakMap(), // Define static properties for the component
3054
- F(Ro, "properties", {
3057
+ F(Lo, "properties", {
3055
3058
  unstyled: { type: Boolean },
3056
3059
  noShadow: { type: Boolean },
3057
3060
  layerLegend: { attribute: !1 },
@@ -3059,10 +3062,10 @@ F(Ro, "properties", {
3059
3062
  });
3060
3063
  customElements.define(
3061
3064
  "eox-layercontrol-layer-legend",
3062
- Ro
3065
+ Lo
3063
3066
  );
3064
3067
  var At, le, De, Pe, Ki, ri, si;
3065
- class Lo extends lt {
3068
+ class Ro extends lt {
3066
3069
  constructor() {
3067
3070
  super();
3068
3071
  P(this, Pe);
@@ -3164,13 +3167,13 @@ At = new WeakMap(), le = new WeakMap(), De = new WeakMap(), Pe = new WeakSet(),
3164
3167
  Ki = function(e) {
3165
3168
  Qt(this, At, e.detail), this.layerConfig.type === "style" || this.layerConfig.style ? "setStyle" in this.layer || "updateStyleVariables" in this.layer ? qs(T(this, At), this.layer, this.layerConfig) : console.error(
3166
3169
  `Layer type ${this.layer.get("type") ?? ""} does not support styles configuration`
3167
- ) : Qt(this, De, zs(
3170
+ ) : Qt(this, De, Zs(
3168
3171
  T(this, At),
3169
3172
  T(this, De),
3170
3173
  this
3171
3174
  )), this.requestUpdate();
3172
3175
  }, ri = new WeakMap(), si = new WeakMap(), // Define static properties for the component
3173
- F(Lo, "properties", {
3176
+ F(Ro, "properties", {
3174
3177
  layer: { attribute: !1 },
3175
3178
  unstyled: { type: Boolean },
3176
3179
  noShadow: { type: Boolean },
@@ -3178,7 +3181,7 @@ F(Lo, "properties", {
3178
3181
  });
3179
3182
  customElements.define(
3180
3183
  "eox-layercontrol-layerconfig",
3181
- Lo
3184
+ Ro
3182
3185
  );
3183
3186
  var ai, Io, li, di;
3184
3187
  class Mo extends lt {
@@ -3260,33 +3263,47 @@ class No extends lt {
3260
3263
  /** @param {number} index */
3261
3264
  P(this, Oe, (e) => (this.selectedTab === e || this.toolsAsList) && "highlighted");
3262
3265
  P(this, ui, `
3263
- .tabbed figure {
3266
+ .tabbed figure,
3267
+ .listed figure {
3264
3268
  margin: 0;
3265
3269
  }
3266
- .tabbed nav {
3270
+ .tabbed nav,
3271
+ .listed nav {
3267
3272
  display: flex;
3268
3273
  justify-content: space-between;
3269
3274
  }
3270
- .tabbed nav div {
3275
+ .tabbed nav div,
3276
+ .listed nav div {
3271
3277
  display: flex;
3272
3278
  }
3273
- .tabbed .tab {
3279
+ .tabbed .tab,
3280
+ .listed .tab {
3274
3281
  display: none;
3275
3282
  }
3276
- .tabbed .tab.highlighted {
3283
+ .tabbed .tab.highlighted,
3284
+ .listed .tab.highlighted {
3277
3285
  display: block;
3278
3286
  }
3279
- .tabbed label.highlighted {
3287
+ .tabbed label.highlighted,
3288
+ .listed label.highlighted {
3280
3289
  background: lightgrey;
3281
3290
  }
3282
3291
  `);
3283
3292
  P(this, ci, `
3284
- .listed {
3285
- background: #ffffff !important;
3293
+ .listed label {
3286
3294
  display: flex;
3287
- justify-content: end;
3295
+ justify-content: start;
3296
+ align-items: center;
3297
+ background: var(--background-color) !important;
3298
+ }
3299
+ .listed label:not(:first-of-type) {
3300
+ margin-top: 10px;
3301
+ }
3302
+ .listed label span {
3303
+ text-transform: capitalize;
3304
+ font-weight: 300;
3288
3305
  }
3289
- .tabbed {
3306
+ .tabbed, .listed {
3290
3307
  font-size: small;
3291
3308
  }
3292
3309
  .tabbed label.highlighted {
@@ -3303,8 +3320,9 @@ class No extends lt {
3303
3320
  cursor: pointer;
3304
3321
  }
3305
3322
  figure {
3306
- background: #00417011;
3323
+ background: var(--background-color);
3307
3324
  border-top: 1px solid #0041701a;
3325
+ padding: 8px var(--padding);
3308
3326
  }
3309
3327
  `);
3310
3328
  this.actions = [], this.selectedTab = 0, this.tabs = [], this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1;
@@ -3326,7 +3344,7 @@ class No extends lt {
3326
3344
  ${T(this, ui)}
3327
3345
  ${!this.unstyled && T(this, ci)}
3328
3346
  </style>
3329
- <div class="tabbed">
3347
+ <div class="${this.toolsAsList ? "listed" : "tabbed"}">
3330
3348
  <!-- Navigation for tabs and actions -->
3331
3349
  ${G(
3332
3350
  o,
@@ -3375,9 +3393,10 @@ class No extends lt {
3375
3393
  ${G(
3376
3394
  this.toolsAsList,
3377
3395
  () => x`
3378
- <label class="listed">
3396
+ <label>
3379
3397
  <!-- Customizable icon for each tab -->
3380
3398
  <slot name=${`${r}-icon`}>${r}</slot>
3399
+ <span>${r}</span>
3381
3400
  </label>
3382
3401
  `
3383
3402
  )}
@@ -3815,6 +3834,10 @@ class Vo extends lt {
3815
3834
  display: flex;
3816
3835
  justify-content: center;
3817
3836
  }
3837
+ eox-layercontrol-tools-items.tools-list button.icon,
3838
+ eox-layercontrol-tools-items.tools-list .button.icon {
3839
+ margin-left: -6px;
3840
+ }
3818
3841
  eox-layercontrol-tools-items button.icon::before,
3819
3842
  eox-layercontrol-tools-items .button.icon::before {
3820
3843
  width: 16px;
@@ -3849,8 +3872,14 @@ class Vo extends lt {
3849
3872
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Edrag-horizontal-variant%3C/title%3E%3Cpath d='M21 11H3V9H21V11M21 13H3V15H21V13Z' /%3E%3C/svg%3E");
3850
3873
  }
3851
3874
  [slot=info-content],
3852
- [slot=opacity-content] {
3853
- padding: 12px 6px;
3875
+ [slot=opacity-content],
3876
+ [slot=config-content],
3877
+ [slot=datetime-content],
3878
+ [slot=legend-content] {
3879
+ padding: 6px 0;
3880
+ }
3881
+ [slot=info-content] * {
3882
+ max-width: 100%;
3854
3883
  }
3855
3884
  `);
3856
3885
  this.layer = null, this.tools = [], this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1;
@@ -4229,32 +4258,32 @@ customElements.define(
4229
4258
  "eox-layercontrol-layer-group",
4230
4259
  Uo
4231
4260
  );
4232
- var zi, Un;
4261
+ var Zi, Un;
4233
4262
  function da() {
4234
- if (Un) return zi;
4263
+ if (Un) return Zi;
4235
4264
  Un = 1;
4236
4265
  var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, r = /^0b[01]+$/i, s = /^0o[0-7]+$/i, a = parseInt, l = typeof Bt == "object" && Bt && Bt.Object === Object && Bt, d = typeof self == "object" && self && self.Object === Object && self, c = l || d || Function("return this")(), u = Object.prototype, p = u.toString, f = Math.max, g = Math.min, b = function() {
4237
4266
  return c.Date.now();
4238
4267
  };
4239
4268
  function N($, m, _) {
4240
- var M, R, q, X, H, L, z = 0, dt = !1, tt = !1, ut = !0;
4269
+ var M, L, q, X, H, R, Z = 0, dt = !1, tt = !1, ut = !0;
4241
4270
  if (typeof $ != "function")
4242
4271
  throw new TypeError(i);
4243
4272
  m = K(m) || 0, J(_) && (dt = !!_.leading, tt = "maxWait" in _, q = tt ? f(K(_.maxWait) || 0, m) : q, ut = "trailing" in _ ? !!_.trailing : ut);
4244
4273
  function gt(B) {
4245
- var I = M, ct = R;
4246
- return M = R = void 0, z = B, X = $.apply(ct, I), X;
4274
+ var I = M, ct = L;
4275
+ return M = L = void 0, Z = B, X = $.apply(ct, I), X;
4247
4276
  }
4248
4277
  function Ut(B) {
4249
- return z = B, H = setTimeout(_t, m), dt ? gt(B) : X;
4278
+ return Z = B, H = setTimeout(_t, m), dt ? gt(B) : X;
4250
4279
  }
4251
4280
  function Ie(B) {
4252
- var I = B - L, ct = B - z, Lt = m - I;
4253
- return tt ? g(Lt, q - ct) : Lt;
4281
+ var I = B - R, ct = B - Z, Rt = m - I;
4282
+ return tt ? g(Rt, q - ct) : Rt;
4254
4283
  }
4255
4284
  function Ft(B) {
4256
- var I = B - L, ct = B - z;
4257
- return L === void 0 || I >= m || I < 0 || tt && ct >= q;
4285
+ var I = B - R, ct = B - Z;
4286
+ return R === void 0 || I >= m || I < 0 || tt && ct >= q;
4258
4287
  }
4259
4288
  function _t() {
4260
4289
  var B = b();
@@ -4263,21 +4292,21 @@ function da() {
4263
4292
  H = setTimeout(_t, Ie(B));
4264
4293
  }
4265
4294
  function jt(B) {
4266
- return H = void 0, ut && M ? gt(B) : (M = R = void 0, X);
4295
+ return H = void 0, ut && M ? gt(B) : (M = L = void 0, X);
4267
4296
  }
4268
4297
  function Ne() {
4269
- H !== void 0 && clearTimeout(H), z = 0, M = L = R = H = void 0;
4298
+ H !== void 0 && clearTimeout(H), Z = 0, M = R = L = H = void 0;
4270
4299
  }
4271
4300
  function Ai() {
4272
4301
  return H === void 0 ? X : jt(b());
4273
4302
  }
4274
4303
  function he() {
4275
4304
  var B = b(), I = Ft(B);
4276
- if (M = arguments, R = this, L = B, I) {
4305
+ if (M = arguments, L = this, R = B, I) {
4277
4306
  if (H === void 0)
4278
- return Ut(L);
4307
+ return Ut(R);
4279
4308
  if (tt)
4280
- return H = setTimeout(_t, m), gt(L);
4309
+ return H = setTimeout(_t, m), gt(R);
4281
4310
  }
4282
4311
  return H === void 0 && (H = setTimeout(_t, m)), X;
4283
4312
  }
@@ -4308,7 +4337,7 @@ function da() {
4308
4337
  var _ = r.test($);
4309
4338
  return _ || s.test($) ? a($.slice(2), _ ? 2 : 8) : o.test($) ? t : +$;
4310
4339
  }
4311
- return zi = N, zi;
4340
+ return Zi = N, Zi;
4312
4341
  }
4313
4342
  var ua = da();
4314
4343
  const ca = /* @__PURE__ */ Oo(ua), ha = (i) => {
@@ -4395,7 +4424,7 @@ class Fo extends lt {
4395
4424
  (n) => x`
4396
4425
  <li
4397
4426
  data-layer="${n.get(this.idProperty)}"
4398
- data-type="${Zs(n, this.map)}"
4427
+ data-type="${zs(n, this.map)}"
4399
4428
  >
4400
4429
  ${/** Checks if the layer is a group or individual layer and renders accordingly */
4401
4430
  /** @type {import("ol/layer").Group} */
@@ -4470,7 +4499,7 @@ const pa = (i) => {
4470
4499
  )
4471
4500
  ), i.requestUpdate();
4472
4501
  };
4473
- var wi, Zo;
4502
+ var wi, zo;
4474
4503
  class jo extends lt {
4475
4504
  constructor() {
4476
4505
  super();
@@ -4513,7 +4542,7 @@ class jo extends lt {
4513
4542
  </select>
4514
4543
 
4515
4544
  <!-- Button to handle adding layers -->
4516
- <button @click="${j(this, wi, Zo)}">add</button>
4545
+ <button @click="${j(this, wi, zo)}">add</button>
4517
4546
  `;
4518
4547
  }
4519
4548
  }
@@ -4521,7 +4550,7 @@ wi = new WeakSet(), /**
4521
4550
  * Handles the addition of selected layers to a list.
4522
4551
  * Invokes the 'addToListMethod' with the current context.
4523
4552
  */
4524
- Zo = function() {
4553
+ zo = function() {
4525
4554
  pa(this);
4526
4555
  }, // Define static properties for the component
4527
4556
  F(jo, "properties", {
@@ -4584,7 +4613,7 @@ const ya = (i, t) => {
4584
4613
  t.open = i || null, t.urlInput = null, t.jsonInput = null, t.wmsCapabilities = null, t.requestUpdate();
4585
4614
  };
4586
4615
  var it, qo, Xo, Qi, Yo, Wo, We, xi, Ei;
4587
- class zo extends lt {
4616
+ class Zo extends lt {
4588
4617
  constructor() {
4589
4618
  super();
4590
4619
  P(this, it);
@@ -4913,12 +4942,12 @@ Wo = function(e) {
4913
4942
  We = function(e) {
4914
4943
  ba(e, this);
4915
4944
  }, xi = new WeakMap(), Ei = new WeakMap(), // Define static properties for the component
4916
- F(zo, "properties", {
4945
+ F(Zo, "properties", {
4917
4946
  eoxMap: { attribute: !1, state: !0 },
4918
4947
  unstyled: { type: Boolean },
4919
4948
  noShadow: { type: Boolean }
4920
4949
  });
4921
- customElements.define("eox-layercontrol-add-layers", zo);
4950
+ customElements.define("eox-layercontrol-add-layers", Zo);
4922
4951
  const va = (i, t) => {
4923
4952
  if (t.requestUpdate(), i.target.tagName === "EOX-LAYERCONTROL-LAYER-TOOLS") {
4924
4953
  const e = t.renderRoot.querySelector(
@@ -4959,6 +4988,11 @@ class Go extends lt {
4959
4988
 
4960
4989
  display: block;
4961
4990
  padding: var(--padding) 0;
4991
+ --background-color: var(--eox-background-color, transparent);
4992
+ background-color: var(--background-color, transparent);
4993
+ }
4994
+ select {
4995
+ background-color: var(--background-color);
4962
4996
  }
4963
4997
  `);
4964
4998
  this.for = "eox-map", this.idProperty = "id", this.map = null, this.titleProperty = "title", this.showLayerZoomState = !1, this.tools = ["info", "opacity", "datetime", "config", "remove", "sort"], this.addExternalLayers = !1, this.unstyled = !1, this.styleOverride = "", this.toolsAsList = !1;