@eox/layercontrol 0.28.1 → 0.28.2-dev.1736966655.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- var Kr = Object.defineProperty;
1
+ var Qr = Object.defineProperty;
2
2
  var yn = (i) => {
3
3
  throw TypeError(i);
4
4
  };
5
- var Qr = (i, t, e) => t in i ? Kr(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
6
- var F = (i, t, e) => Qr(i, typeof t != "symbol" ? t + "" : t, e), Ci = (i, t, e) => t.has(i) || yn("Cannot " + e);
7
- var T = (i, t, e) => (Ci(i, t, "read from private field"), e ? e.call(i) : t.get(i)), P = (i, t, e) => t.has(i) ? yn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), Qt = (i, t, e, n) => (Ci(i, t, "write to private field"), n ? n.call(i, e) : t.set(i, e), e), j = (i, t, e) => (Ci(i, t, "access private method"), e);
5
+ var to = (i, t, e) => t in i ? Qr(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
6
+ var j = (i, t, e) => to(i, typeof t != "symbol" ? t + "" : t, e), Ci = (i, t, e) => t.has(i) || yn("Cannot " + e);
7
+ var T = (i, t, e) => (Ci(i, t, "read from private field"), e ? e.call(i) : t.get(i)), P = (i, t, e) => t.has(i) ? yn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), ee = (i, t, e, n) => (Ci(i, t, "write to private field"), n ? n.call(i, e) : t.set(i, e), e), B = (i, t, e) => (Ci(i, t, "access private method"), e);
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2019 Google LLC
@@ -29,14 +29,14 @@ let Zn = class {
29
29
  return this.cssText;
30
30
  }
31
31
  };
32
- const to = (i) => new Zn(typeof i == "string" ? i : i + "", void 0, en), qn = (i, ...t) => {
32
+ const eo = (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, r, o) => 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
  })(r) + i[o + 1], i[0]);
38
38
  return new Zn(e, i, en);
39
- }, eo = (i, t) => {
39
+ }, io = (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) {
42
42
  const n = document.createElement("style"), r = Fe.litNonce;
@@ -45,17 +45,17 @@ const to = (i) => new Zn(typeof i == "string" ? i : i + "", void 0, en), qn = (i
45
45
  }, vn = tn ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
46
46
  let e = "";
47
47
  for (const n of t.cssRules) e += n.cssText;
48
- return to(e);
48
+ return eo(e);
49
49
  })(i) : i;
50
50
  /**
51
51
  * @license
52
52
  * Copyright 2017 Google LLC
53
53
  * SPDX-License-Identifier: BSD-3-Clause
54
54
  */
55
- const { is: io, defineProperty: no, getOwnPropertyDescriptor: ro, getOwnPropertyNames: oo, getOwnPropertySymbols: so, getPrototypeOf: ao } = Object, Bt = globalThis, wn = Bt.trustedTypes, lo = wn ? wn.emptyScript : "", Ti = Bt.reactiveElementPolyfillSupport, be = (i, t) => i, qi = { toAttribute(i, t) {
55
+ const { is: no, defineProperty: ro, getOwnPropertyDescriptor: oo, getOwnPropertyNames: so, getOwnPropertySymbols: ao, getPrototypeOf: lo } = Object, Ut = globalThis, wn = Ut.trustedTypes, co = wn ? wn.emptyScript : "", Ti = Ut.reactiveElementPolyfillSupport, ve = (i, t) => i, qi = { toAttribute(i, t) {
56
56
  switch (t) {
57
57
  case Boolean:
58
- i = i ? lo : null;
58
+ i = i ? co : null;
59
59
  break;
60
60
  case Object:
61
61
  case Array:
@@ -80,9 +80,9 @@ const { is: io, defineProperty: no, getOwnPropertyDescriptor: ro, getOwnProperty
80
80
  }
81
81
  }
82
82
  return e;
83
- } }, Xn = (i, t) => !io(i, t), xn = { attribute: !0, type: String, converter: qi, reflect: !1, hasChanged: Xn };
84
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Bt.litPropertyMetadata ?? (Bt.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
85
- class ie extends HTMLElement {
83
+ } }, Xn = (i, t) => !no(i, t), xn = { attribute: !0, type: String, converter: qi, reflect: !1, hasChanged: Xn };
84
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Ut.litPropertyMetadata ?? (Ut.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
85
+ class re extends HTMLElement {
86
86
  static addInitializer(t) {
87
87
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
88
88
  }
@@ -92,11 +92,11 @@ class ie extends HTMLElement {
92
92
  static createProperty(t, e = xn) {
93
93
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
94
94
  const n = Symbol(), r = this.getPropertyDescriptor(t, n, e);
95
- r !== void 0 && no(this.prototype, t, r);
95
+ r !== void 0 && ro(this.prototype, t, r);
96
96
  }
97
97
  }
98
98
  static getPropertyDescriptor(t, e, n) {
99
- const { get: r, set: o } = ro(this.prototype, t) ?? { get() {
99
+ const { get: r, set: o } = oo(this.prototype, t) ?? { get() {
100
100
  return this[e];
101
101
  }, set(s) {
102
102
  this[e] = s;
@@ -112,14 +112,14 @@ class ie extends HTMLElement {
112
112
  return this.elementProperties.get(t) ?? xn;
113
113
  }
114
114
  static _$Ei() {
115
- if (this.hasOwnProperty(be("elementProperties"))) return;
116
- const t = ao(this);
115
+ if (this.hasOwnProperty(ve("elementProperties"))) return;
116
+ const t = lo(this);
117
117
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
118
118
  }
119
119
  static finalize() {
120
- if (this.hasOwnProperty(be("finalized"))) return;
121
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(be("properties"))) {
122
- const e = this.properties, n = [...oo(e), ...so(e)];
120
+ if (this.hasOwnProperty(ve("finalized"))) return;
121
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ve("properties"))) {
122
+ const e = this.properties, n = [...so(e), ...ao(e)];
123
123
  for (const r of n) this.createProperty(r, e[r]);
124
124
  }
125
125
  const t = this[Symbol.metadata];
@@ -168,7 +168,7 @@ class ie extends HTMLElement {
168
168
  }
169
169
  createRenderRoot() {
170
170
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
171
- return eo(t, this.constructor.elementStyles), t;
171
+ return io(t, this.constructor.elementStyles), t;
172
172
  }
173
173
  connectedCallback() {
174
174
  var t;
@@ -280,53 +280,53 @@ class ie extends HTMLElement {
280
280
  firstUpdated(t) {
281
281
  }
282
282
  }
283
- ie.elementStyles = [], ie.shadowRootOptions = { mode: "open" }, ie[be("elementProperties")] = /* @__PURE__ */ new Map(), ie[be("finalized")] = /* @__PURE__ */ new Map(), Ti == null || Ti({ ReactiveElement: ie }), (Bt.reactiveElementVersions ?? (Bt.reactiveElementVersions = [])).push("2.0.4");
283
+ re.elementStyles = [], re.shadowRootOptions = { mode: "open" }, re[ve("elementProperties")] = /* @__PURE__ */ new Map(), re[ve("finalized")] = /* @__PURE__ */ new Map(), Ti == null || Ti({ ReactiveElement: re }), (Ut.reactiveElementVersions ?? (Ut.reactiveElementVersions = [])).push("2.0.4");
284
284
  /**
285
285
  * @license
286
286
  * Copyright 2017 Google LLC
287
287
  * SPDX-License-Identifier: BSD-3-Clause
288
288
  */
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)}$`, rn = "?" + Ct, co = `<${rn}>`, Jt = document, Ae = () => Jt.createComment(""), _e = (i) => i === null || typeof i != "object" && typeof i != "function", on = Array.isArray, Yn = (i) => on(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}*(?:[^
291
- \f\r"'\`<>=]|("|')|))|$)`, "g"), An = /'/g, _n = /"/g, Wn = /^(?:script|style|textarea|title)$/i, uo = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), x = uo(1), vt = Symbol.for("lit-noChange"), O = Symbol.for("lit-nothing"), Cn = /* @__PURE__ */ new WeakMap(), Wt = Jt.createTreeWalker(Jt, 129);
289
+ const we = globalThis, Ge = we.trustedTypes, $n = Ge ? Ge.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, nn = "$lit$", Ct = `lit$${Math.random().toFixed(9).slice(2)}$`, rn = "?" + Ct, uo = `<${rn}>`, Qt = document, _e = () => Qt.createComment(""), Ce = (i) => i === null || typeof i != "object" && typeof i != "function", on = Array.isArray, Yn = (i) => on(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Di = `[
290
+ \f\r]`, fe = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, En = /-->/g, Sn = />/g, qt = RegExp(`>|${Di}(?:([^\\s"'>=/]+)(${Di}*=${Di}*(?:[^
291
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), An = /'/g, _n = /"/g, Wn = /^(?:script|style|textarea|title)$/i, ho = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), x = ho(1), vt = Symbol.for("lit-noChange"), L = Symbol.for("lit-nothing"), Cn = /* @__PURE__ */ new WeakMap(), Jt = Qt.createTreeWalker(Qt, 129);
292
292
  function Gn(i, t) {
293
293
  if (!on(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
294
- return En !== void 0 ? En.createHTML(t) : t;
294
+ return $n !== void 0 ? $n.createHTML(t) : t;
295
295
  }
296
296
  const Jn = (i, t) => {
297
297
  const e = i.length - 1, n = [];
298
- let r, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = pe;
298
+ let r, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = fe;
299
299
  for (let a = 0; a < e; a++) {
300
300
  const l = i[a];
301
301
  let d, u, c = -1, p = 0;
302
- for (; p < l.length && (s.lastIndex = p, u = s.exec(l), u !== null); ) p = s.lastIndex, s === pe ? u[1] === "!--" ? s = $n : u[1] !== void 0 ? s = Sn : u[2] !== void 0 ? (Wn.test(u[2]) && (r = RegExp("</" + u[2], "g")), s = zt) : u[3] !== void 0 && (s = zt) : s === zt ? u[0] === ">" ? (s = r ?? pe, c = -1) : u[1] === void 0 ? c = -2 : (c = s.lastIndex - u[2].length, d = u[1], s = u[3] === void 0 ? zt : u[3] === '"' ? _n : An) : s === _n || s === An ? s = zt : s === $n || s === Sn ? s = pe : (s = zt, r = void 0);
303
- const f = s === zt && i[a + 1].startsWith("/>") ? " " : "";
304
- o += s === pe ? l + co : c >= 0 ? (n.push(d), l.slice(0, c) + nn + l.slice(c) + Ct + f) : l + Ct + (c === -2 ? a : f);
302
+ for (; p < l.length && (s.lastIndex = p, u = s.exec(l), u !== null); ) p = s.lastIndex, s === fe ? u[1] === "!--" ? s = En : u[1] !== void 0 ? s = Sn : u[2] !== void 0 ? (Wn.test(u[2]) && (r = RegExp("</" + u[2], "g")), s = qt) : u[3] !== void 0 && (s = qt) : s === qt ? u[0] === ">" ? (s = r ?? fe, c = -1) : u[1] === void 0 ? c = -2 : (c = s.lastIndex - u[2].length, d = u[1], s = u[3] === void 0 ? qt : u[3] === '"' ? _n : An) : s === _n || s === An ? s = qt : s === En || s === Sn ? s = fe : (s = qt, r = void 0);
303
+ const f = s === qt && i[a + 1].startsWith("/>") ? " " : "";
304
+ o += s === fe ? l + uo : c >= 0 ? (n.push(d), l.slice(0, c) + nn + l.slice(c) + Ct + f) : l + Ct + (c === -2 ? a : f);
305
305
  }
306
306
  return [Gn(i, o + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
307
307
  };
308
- class Ce {
308
+ class Te {
309
309
  constructor({ strings: t, _$litType$: e }, n) {
310
310
  let r;
311
311
  this.parts = [];
312
312
  let o = 0, s = 0;
313
313
  const a = t.length - 1, l = this.parts, [d, u] = Jn(t, e);
314
- if (this.el = Ce.createElement(d, n), Wt.currentNode = this.el.content, e === 2 || e === 3) {
314
+ if (this.el = Te.createElement(d, n), Jt.currentNode = this.el.content, e === 2 || e === 3) {
315
315
  const c = this.el.content.firstChild;
316
316
  c.replaceWith(...c.childNodes);
317
317
  }
318
- for (; (r = Wt.nextNode()) !== null && l.length < a; ) {
318
+ for (; (r = Jt.nextNode()) !== null && l.length < a; ) {
319
319
  if (r.nodeType === 1) {
320
320
  if (r.hasAttributes()) for (const c of r.getAttributeNames()) if (c.endsWith(nn)) {
321
321
  const p = u[s++], f = r.getAttribute(c).split(Ct), g = /([.?@])?(.*)/.exec(p);
322
- l.push({ type: 1, index: o, name: g[2], strings: f, ctor: g[1] === "." ? Qn : g[1] === "?" ? tr : g[1] === "@" ? er : Le }), r.removeAttribute(c);
322
+ l.push({ type: 1, index: o, name: g[2], strings: f, ctor: g[1] === "." ? Qn : g[1] === "?" ? tr : g[1] === "@" ? er : Re }), r.removeAttribute(c);
323
323
  } else c.startsWith(Ct) && (l.push({ type: 6, index: o }), r.removeAttribute(c));
324
324
  if (Wn.test(r.tagName)) {
325
325
  const c = r.textContent.split(Ct), p = c.length - 1;
326
326
  if (p > 0) {
327
327
  r.textContent = Ge ? Ge.emptyScript : "";
328
- for (let f = 0; f < p; f++) r.append(c[f], Ae()), Wt.nextNode(), l.push({ type: 2, index: ++o });
329
- r.append(c[p], Ae());
328
+ for (let f = 0; f < p; f++) r.append(c[f], _e()), Jt.nextNode(), l.push({ type: 2, index: ++o });
329
+ r.append(c[p], _e());
330
330
  }
331
331
  }
332
332
  } else if (r.nodeType === 8) if (r.data === rn) l.push({ type: 2, index: o });
@@ -338,16 +338,16 @@ class Ce {
338
338
  }
339
339
  }
340
340
  static createElement(t, e) {
341
- const n = Jt.createElement("template");
341
+ const n = Qt.createElement("template");
342
342
  return n.innerHTML = t, n;
343
343
  }
344
344
  }
345
- function Kt(i, t, e = i, n) {
345
+ function te(i, t, e = i, n) {
346
346
  var s, a;
347
347
  if (t === vt) return t;
348
348
  let r = n !== void 0 ? (s = e._$Co) == null ? void 0 : s[n] : e._$Cl;
349
- const o = _e(t) ? void 0 : t._$litDirective$;
350
- return (r == null ? void 0 : r.constructor) !== o && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), o === void 0 ? r = void 0 : (r = new o(i), r._$AT(i, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = r : e._$Cl = r), r !== void 0 && (t = Kt(i, r._$AS(i, t.values), r, n)), t;
349
+ const o = Ce(t) ? void 0 : t._$litDirective$;
350
+ return (r == null ? void 0 : r.constructor) !== o && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), o === void 0 ? r = void 0 : (r = new o(i), r._$AT(i, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = r : e._$Cl = r), r !== void 0 && (t = te(i, r._$AS(i, t.values), r, n)), t;
351
351
  }
352
352
  let Kn = class {
353
353
  constructor(t, e) {
@@ -360,30 +360,30 @@ let Kn = class {
360
360
  return this._$AM._$AU;
361
361
  }
362
362
  u(t) {
363
- const { el: { content: e }, parts: n } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? Jt).importNode(e, !0);
364
- Wt.currentNode = r;
365
- let o = Wt.nextNode(), s = 0, a = 0, l = n[0];
363
+ const { el: { content: e }, parts: n } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? Qt).importNode(e, !0);
364
+ Jt.currentNode = r;
365
+ let o = Jt.nextNode(), s = 0, a = 0, l = n[0];
366
366
  for (; l !== void 0; ) {
367
367
  if (s === l.index) {
368
368
  let d;
369
- l.type === 2 ? d = new ue(o, o.nextSibling, this, t) : l.type === 1 ? d = new l.ctor(o, l.name, l.strings, this, t) : l.type === 6 && (d = new ir(o, this, t)), this._$AV.push(d), l = n[++a];
369
+ l.type === 2 ? d = new he(o, o.nextSibling, this, t) : l.type === 1 ? d = new l.ctor(o, l.name, l.strings, this, t) : l.type === 6 && (d = new ir(o, this, t)), this._$AV.push(d), l = n[++a];
370
370
  }
371
- s !== (l == null ? void 0 : l.index) && (o = Wt.nextNode(), s++);
371
+ s !== (l == null ? void 0 : l.index) && (o = Jt.nextNode(), s++);
372
372
  }
373
- return Wt.currentNode = Jt, r;
373
+ return Jt.currentNode = Qt, r;
374
374
  }
375
375
  p(t) {
376
376
  let e = 0;
377
377
  for (const n of this._$AV) n !== void 0 && (n.strings !== void 0 ? (n._$AI(t, n, e), e += n.strings.length - 2) : n._$AI(t[e])), e++;
378
378
  }
379
379
  };
380
- class ue {
380
+ class he {
381
381
  get _$AU() {
382
382
  var t;
383
383
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
384
384
  }
385
385
  constructor(t, e, n, r) {
386
- this.type = 2, this._$AH = O, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
386
+ this.type = 2, this._$AH = L, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
387
387
  }
388
388
  get parentNode() {
389
389
  let t = this._$AA.parentNode;
@@ -397,7 +397,7 @@ class ue {
397
397
  return this._$AB;
398
398
  }
399
399
  _$AI(t, e = this) {
400
- t = Kt(this, t, e), _e(t) ? t === O || t == null || t === "" ? (this._$AH !== O && this._$AR(), this._$AH = O) : t !== this._$AH && t !== vt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Yn(t) ? this.k(t) : this._(t);
400
+ t = te(this, t, e), Ce(t) ? t === L || t == null || t === "" ? (this._$AH !== L && this._$AR(), this._$AH = L) : t !== this._$AH && t !== vt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Yn(t) ? this.k(t) : this._(t);
401
401
  }
402
402
  O(t) {
403
403
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -406,11 +406,11 @@ class ue {
406
406
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
407
407
  }
408
408
  _(t) {
409
- this._$AH !== O && _e(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Jt.createTextNode(t)), this._$AH = t;
409
+ this._$AH !== L && Ce(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Qt.createTextNode(t)), this._$AH = t;
410
410
  }
411
411
  $(t) {
412
412
  var o;
413
- const { values: e, _$litType$: n } = t, r = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = Ce.createElement(Gn(n.h, n.h[0]), this.options)), n);
413
+ const { values: e, _$litType$: n } = t, r = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = Te.createElement(Gn(n.h, n.h[0]), this.options)), n);
414
414
  if (((o = this._$AH) == null ? void 0 : o._$AD) === r) this._$AH.p(e);
415
415
  else {
416
416
  const s = new Kn(r, this), a = s.u(this.options);
@@ -419,13 +419,13 @@ class ue {
419
419
  }
420
420
  _$AC(t) {
421
421
  let e = Cn.get(t.strings);
422
- return e === void 0 && Cn.set(t.strings, e = new Ce(t)), e;
422
+ return e === void 0 && Cn.set(t.strings, e = new Te(t)), e;
423
423
  }
424
424
  k(t) {
425
425
  on(this._$AH) || (this._$AH = [], this._$AR());
426
426
  const e = this._$AH;
427
427
  let n, r = 0;
428
- for (const o of t) r === e.length ? e.push(n = new ue(this.O(Ae()), this.O(Ae()), this, this.options)) : n = e[r], n._$AI(o), r++;
428
+ for (const o of t) r === e.length ? e.push(n = new he(this.O(_e()), this.O(_e()), this, this.options)) : n = e[r], n._$AI(o), r++;
429
429
  r < e.length && (this._$AR(n && n._$AB.nextSibling, r), e.length = r);
430
430
  }
431
431
  _$AR(t = this._$AA.nextSibling, e) {
@@ -440,7 +440,7 @@ class ue {
440
440
  this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
441
441
  }
442
442
  }
443
- class Le {
443
+ class Re {
444
444
  get tagName() {
445
445
  return this.element.tagName;
446
446
  }
@@ -448,46 +448,46 @@ class Le {
448
448
  return this._$AM._$AU;
449
449
  }
450
450
  constructor(t, e, n, r, o) {
451
- this.type = 1, this._$AH = O, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = o, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = O;
451
+ this.type = 1, this._$AH = L, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = o, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = L;
452
452
  }
453
453
  _$AI(t, e = this, n, r) {
454
454
  const o = this.strings;
455
455
  let s = !1;
456
- if (o === void 0) t = Kt(this, t, e, 0), s = !_e(t) || t !== this._$AH && t !== vt, s && (this._$AH = t);
456
+ if (o === void 0) t = te(this, t, e, 0), s = !Ce(t) || t !== this._$AH && t !== vt, s && (this._$AH = t);
457
457
  else {
458
458
  const a = t;
459
459
  let l, d;
460
- for (t = o[0], l = 0; l < o.length - 1; l++) d = Kt(this, a[n + l], e, l), d === vt && (d = this._$AH[l]), s || (s = !_e(d) || d !== this._$AH[l]), d === O ? t = O : t !== O && (t += (d ?? "") + o[l + 1]), this._$AH[l] = d;
460
+ for (t = o[0], l = 0; l < o.length - 1; l++) d = te(this, a[n + l], e, l), d === vt && (d = this._$AH[l]), s || (s = !Ce(d) || d !== this._$AH[l]), d === L ? t = L : t !== L && (t += (d ?? "") + o[l + 1]), this._$AH[l] = d;
461
461
  }
462
462
  s && !r && this.j(t);
463
463
  }
464
464
  j(t) {
465
- t === O ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
465
+ t === L ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
466
466
  }
467
467
  }
468
- class Qn extends Le {
468
+ class Qn extends Re {
469
469
  constructor() {
470
470
  super(...arguments), this.type = 3;
471
471
  }
472
472
  j(t) {
473
- this.element[this.name] = t === O ? void 0 : t;
473
+ this.element[this.name] = t === L ? void 0 : t;
474
474
  }
475
475
  }
476
- class tr extends Le {
476
+ class tr extends Re {
477
477
  constructor() {
478
478
  super(...arguments), this.type = 4;
479
479
  }
480
480
  j(t) {
481
- this.element.toggleAttribute(this.name, !!t && t !== O);
481
+ this.element.toggleAttribute(this.name, !!t && t !== L);
482
482
  }
483
483
  }
484
- class er extends Le {
484
+ class er extends Re {
485
485
  constructor(t, e, n, r, o) {
486
486
  super(t, e, n, r, o), this.type = 5;
487
487
  }
488
488
  _$AI(t, e = this) {
489
- if ((t = Kt(this, t, e, 0) ?? O) === vt) return;
490
- const n = this._$AH, r = t === O && n !== O || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, o = t !== O && (n === O || r);
489
+ if ((t = te(this, t, e, 0) ?? L) === vt) return;
490
+ const n = this._$AH, r = t === L && n !== L || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, o = t !== L && (n === L || r);
491
491
  r && this.element.removeEventListener(this.name, this, n), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
492
492
  }
493
493
  handleEvent(t) {
@@ -503,17 +503,17 @@ class ir {
503
503
  return this._$AM._$AU;
504
504
  }
505
505
  _$AI(t) {
506
- Kt(this, t);
506
+ te(this, t);
507
507
  }
508
508
  }
509
- const ho = { M: nn, P: Ct, A: rn, C: 1, L: Jn, R: Kn, D: Yn, V: Kt, I: ue, H: Le, N: tr, U: er, B: Qn, F: ir }, Pi = ve.litHtmlPolyfillSupport;
510
- Pi == null || Pi(Ce, ue), (ve.litHtmlVersions ?? (ve.litHtmlVersions = [])).push("3.2.1");
511
- const po = (i, t, e) => {
509
+ const po = { M: nn, P: Ct, A: rn, C: 1, L: Jn, R: Kn, D: Yn, V: te, I: he, H: Re, N: tr, U: er, B: Qn, F: ir }, Pi = we.litHtmlPolyfillSupport;
510
+ Pi == null || Pi(Te, he), (we.litHtmlVersions ?? (we.litHtmlVersions = [])).push("3.2.1");
511
+ const fo = (i, t, e) => {
512
512
  const n = (e == null ? void 0 : e.renderBefore) ?? t;
513
513
  let r = n._$litPart$;
514
514
  if (r === void 0) {
515
515
  const o = (e == null ? void 0 : e.renderBefore) ?? null;
516
- n._$litPart$ = r = new ue(t.insertBefore(Ae(), o), o, void 0, e ?? {});
516
+ n._$litPart$ = r = new he(t.insertBefore(_e(), o), o, void 0, e ?? {});
517
517
  }
518
518
  return r._$AI(i), r;
519
519
  };
@@ -522,7 +522,7 @@ const po = (i, t, e) => {
522
522
  * Copyright 2017 Google LLC
523
523
  * SPDX-License-Identifier: BSD-3-Clause
524
524
  */
525
- let lt = class extends ie {
525
+ let lt = class extends re {
526
526
  constructor() {
527
527
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
528
528
  }
@@ -533,7 +533,7 @@ let lt = class extends ie {
533
533
  }
534
534
  update(t) {
535
535
  const e = this.render();
536
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = po(e, this.renderRoot, this.renderOptions);
536
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = fo(e, this.renderRoot, this.renderOptions);
537
537
  }
538
538
  connectedCallback() {
539
539
  var t;
@@ -549,8 +549,8 @@ let lt = class extends ie {
549
549
  };
550
550
  var zn;
551
551
  lt._$litElement$ = !0, lt.finalized = !0, (zn = globalThis.litElementHydrateSupport) == null || zn.call(globalThis, { LitElement: lt });
552
- const Oi = globalThis.litElementPolyfillSupport;
553
- Oi == null || Oi({ LitElement: lt });
552
+ const Li = globalThis.litElementPolyfillSupport;
553
+ Li == null || Li({ LitElement: lt });
554
554
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
555
555
  /**
556
556
  * @license
@@ -565,7 +565,7 @@ function G(i, t, e) {
565
565
  * Copyright 2017 Google LLC
566
566
  * SPDX-License-Identifier: BSD-3-Clause
567
567
  */
568
- const Mt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, sn = (i) => (...t) => ({ _$litDirective$: i, values: t });
568
+ const It = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, sn = (i) => (...t) => ({ _$litDirective$: i, values: t });
569
569
  class an {
570
570
  constructor(t) {
571
571
  }
@@ -587,12 +587,12 @@ class an {
587
587
  * Copyright 2020 Google LLC
588
588
  * SPDX-License-Identifier: BSD-3-Clause
589
589
  */
590
- const { I: fo } = ho, go = (i) => i.strings === void 0, Tn = () => document.createComment(""), fe = (i, t, e) => {
590
+ const { I: go } = po, mo = (i) => i.strings === void 0, Tn = () => document.createComment(""), ge = (i, t, e) => {
591
591
  var o;
592
592
  const n = i._$AA.parentNode, r = t === void 0 ? i._$AB : t._$AA;
593
593
  if (e === void 0) {
594
594
  const s = n.insertBefore(Tn(), r), a = n.insertBefore(Tn(), r);
595
- e = new fo(s, a, i, i.options);
595
+ e = new go(s, a, i, i.options);
596
596
  } else {
597
597
  const s = e._$AB.nextSibling, a = e._$AM, l = a !== i;
598
598
  if (l) {
@@ -608,7 +608,7 @@ const { I: fo } = ho, go = (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), mo = {}, nr = (i, t = mo) => i._$AH = t, yo = (i) => i._$AH, Li = (i) => {
611
+ }, Xt = (i, t, e = i) => (i._$AI(t, e), i), yo = {}, nr = (i, t = yo) => i._$AH = t, bo = (i) => i._$AH, Oi = (i) => {
612
612
  var n;
613
613
  (n = i._$AP) == null || n.call(i, !1, !0);
614
614
  let t = i._$AA;
@@ -627,9 +627,9 @@ const Dn = (i, t, e) => {
627
627
  const n = /* @__PURE__ */ new Map();
628
628
  for (let r = t; r <= e; r++) n.set(i[r], r);
629
629
  return n;
630
- }, bo = sn(class extends an {
630
+ }, vo = sn(class extends an {
631
631
  constructor(i) {
632
- if (super(i), i.type !== Mt.CHILD) throw Error("repeat() can only be used in text expressions");
632
+ if (super(i), i.type !== It.CHILD) throw Error("repeat() can only be used in text expressions");
633
633
  }
634
634
  dt(i, t, e) {
635
635
  let n;
@@ -643,32 +643,32 @@ const Dn = (i, t, e) => {
643
643
  return this.dt(i, t, e).values;
644
644
  }
645
645
  update(i, [t, e, n]) {
646
- const r = yo(i), { values: o, keys: s } = this.dt(t, e, n);
646
+ const r = bo(i), { values: o, keys: s } = this.dt(t, e, n);
647
647
  if (!Array.isArray(r)) return this.ut = s, o;
648
648
  const a = this.ut ?? (this.ut = []), l = [];
649
649
  let d, u, c = 0, p = r.length - 1, f = 0, g = o.length - 1;
650
650
  for (; c <= p && f <= g; ) if (r[c] === null) c++;
651
651
  else if (r[p] === null) p--;
652
- else if (a[c] === s[f]) l[f] = Zt(r[c], o[f]), c++, f++;
653
- else if (a[p] === s[g]) l[g] = Zt(r[p], o[g]), p--, g--;
654
- else if (a[c] === s[g]) l[g] = Zt(r[c], o[g]), fe(i, l[g + 1], r[c]), c++, g--;
655
- else if (a[p] === s[f]) l[f] = Zt(r[p], o[f]), fe(i, r[c], r[p]), p--, f++;
652
+ else if (a[c] === s[f]) l[f] = Xt(r[c], o[f]), c++, f++;
653
+ else if (a[p] === s[g]) l[g] = Xt(r[p], o[g]), p--, g--;
654
+ else if (a[c] === s[g]) l[g] = Xt(r[c], o[g]), ge(i, l[g + 1], r[c]), c++, g--;
655
+ else if (a[p] === s[f]) l[f] = Xt(r[p], o[f]), ge(i, r[c], r[p]), p--, f++;
656
656
  else if (d === void 0 && (d = Dn(s, f, g), u = Dn(a, c, p)), d.has(a[c])) if (d.has(a[p])) {
657
657
  const b = u.get(s[f]), N = b !== void 0 ? r[b] : null;
658
658
  if (N === null) {
659
- const J = fe(i, r[c]);
660
- Zt(J, o[f]), l[f] = J;
661
- } else l[f] = Zt(N, o[f]), fe(i, r[c], N), r[b] = null;
659
+ const J = ge(i, r[c]);
660
+ Xt(J, o[f]), l[f] = J;
661
+ } else l[f] = Xt(N, o[f]), ge(i, r[c], N), r[b] = null;
662
662
  f++;
663
- } else Li(r[p]), p--;
664
- else Li(r[c]), c++;
663
+ } else Oi(r[p]), p--;
664
+ else Oi(r[c]), c++;
665
665
  for (; f <= g; ) {
666
- const b = fe(i, l[g + 1]);
667
- Zt(b, o[f]), l[f++] = b;
666
+ const b = ge(i, l[g + 1]);
667
+ Xt(b, o[f]), l[f++] = b;
668
668
  }
669
669
  for (; c <= p; ) {
670
670
  const b = r[c++];
671
- b !== null && Li(b);
671
+ b !== null && Oi(b);
672
672
  }
673
673
  return this.ut = s, nr(i, l), vt;
674
674
  }
@@ -680,7 +680,7 @@ const Dn = (i, t, e) => {
680
680
  * @preserve
681
681
  */
682
682
  var S = (i) => i !== void 0, rr = (i, t, e) => t in i ? i[t] : i[t] = e;
683
- const Te = {
683
+ const De = {
684
684
  ELEMENT: 1,
685
685
  ATTRIBUTE: 2,
686
686
  TEXT: 3,
@@ -694,7 +694,7 @@ const Te = {
694
694
  DOCUMENT_FRAGMENT: 11,
695
695
  NOTATION: 12
696
696
  };
697
- class vo {
697
+ class wo {
698
698
  /**
699
699
  * XML DOM parser
700
700
  * @constructor
@@ -726,7 +726,7 @@ function Si(i, t) {
726
726
  return or(i, t, []).join("");
727
727
  }
728
728
  function or(i, t, e) {
729
- if (i.nodeType === Te.CDATA_SECTION || i.nodeType === Te.TEXT)
729
+ if (i.nodeType === De.CDATA_SECTION || i.nodeType === De.TEXT)
730
730
  t ? e.push(String(i.nodeValue).replace(/(\r\n|\r|\n)/g, "")) : e.push(i.nodeValue);
731
731
  else {
732
732
  var n;
@@ -735,8 +735,8 @@ function or(i, t, e) {
735
735
  }
736
736
  return e;
737
737
  }
738
- function wo(i, t, e, n) {
739
- for (var r = xo(t); r; r = Eo(r)) {
738
+ function xo(i, t, e, n) {
739
+ for (var r = $o(t); r; r = Eo(r)) {
740
740
  var o = r.namespaceURI || null, s = i[o];
741
741
  if (S(s)) {
742
742
  var a = s[r.localName];
@@ -744,25 +744,25 @@ function wo(i, t, e, n) {
744
744
  }
745
745
  }
746
746
  }
747
- function xo(i) {
747
+ function $o(i) {
748
748
  let t = i.firstElementChild || i.firstChild;
749
- for (; t && t.nodeType !== Te.ELEMENT; )
749
+ for (; t && t.nodeType !== De.ELEMENT; )
750
750
  t = t.nextSibling;
751
751
  return t;
752
752
  }
753
753
  function Eo(i) {
754
754
  let t = i.nextElementSibling || i.nextSibling;
755
- for (; t && t.nodeType !== Te.ELEMENT; )
755
+ for (; t && t.nodeType !== De.ELEMENT; )
756
756
  t = t.nextSibling;
757
757
  return t;
758
758
  }
759
759
  function nt(i, t, e) {
760
760
  return (
761
761
  /** @type {Object.<string, Object.<string, XMLParser.Parser>>} */
762
- $o(i, t, e)
762
+ So(i, t, e)
763
763
  );
764
764
  }
765
- function $o(i, t, e) {
765
+ function So(i, t, e) {
766
766
  var n = S(e) ? e : {}, r, o;
767
767
  for (r = 0, o = i.length; r < o; ++r)
768
768
  n[i[r]] = t;
@@ -788,7 +788,7 @@ function sr(i, t) {
788
788
  );
789
789
  }
790
790
  function Q(i, t, e, n, r) {
791
- return n.push(i), wo(t, e, n, r), n.pop();
791
+ return n.push(i), xo(t, e, n, r), n.pop();
792
792
  }
793
793
  function y(i, t, e) {
794
794
  return (
@@ -834,16 +834,16 @@ function pt(i, t, e) {
834
834
  }
835
835
  );
836
836
  }
837
- const So = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
838
- function Ao(i) {
839
- return i.replace(So, "");
837
+ const Ao = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
838
+ function _o(i) {
839
+ return i.replace(Ao, "");
840
840
  }
841
- function Gt(i) {
841
+ function Kt(i) {
842
842
  const t = /^\s*(true|1)|(false|0)\s*$/.exec(i);
843
843
  if (t)
844
844
  return S(t[1]) || !1;
845
845
  }
846
- function oe(i) {
846
+ function ae(i) {
847
847
  return Tt(Si(i, !1));
848
848
  }
849
849
  function Tt(i) {
@@ -860,14 +860,14 @@ function Je(i) {
860
860
  return parseInt(t[1], 10);
861
861
  }
862
862
  function D(i) {
863
- return Ao(Si(i, !1));
863
+ return _o(Si(i, !1));
864
864
  }
865
- const _o = "http://www.w3.org/1999/xlink";
865
+ const Co = "http://www.w3.org/1999/xlink";
866
866
  function ln(i) {
867
- return i.getAttributeNS(_o, "href");
867
+ return i.getAttributeNS(Co, "href");
868
868
  }
869
- function Co(i, t) {
870
- return Q({}, ts, i, t);
869
+ function To(i, t) {
870
+ return Q({}, es, i, t);
871
871
  }
872
872
  function ar(i) {
873
873
  return [
@@ -877,7 +877,7 @@ function ar(i) {
877
877
  Tt(i.getAttribute("maxy"))
878
878
  ];
879
879
  }
880
- function To(i, t) {
880
+ function Do(i, t) {
881
881
  const e = ar(i), n = [
882
882
  Tt(i.getAttribute("resx")),
883
883
  Tt(i.getAttribute("resy"))
@@ -888,19 +888,19 @@ function To(i, t) {
888
888
  res: n
889
889
  };
890
890
  }
891
- function Do(i, t) {
891
+ function Po(i, t) {
892
892
  const e = ar(i);
893
893
  if (!(!S(e[0]) || !S(e[1]) || !S(e[2]) || !S(e[3])))
894
894
  return e;
895
895
  }
896
- function Po(i, t) {
896
+ function Lo(i, t) {
897
897
  const e = parseFloat(i.getAttribute("min")), n = parseFloat(i.getAttribute("max"));
898
898
  return { min: e, max: n };
899
899
  }
900
900
  function Oo(i, t) {
901
901
  const e = Q(
902
902
  {},
903
- es,
903
+ is,
904
904
  i,
905
905
  t
906
906
  );
@@ -926,19 +926,11 @@ function Oo(i, t) {
926
926
  s
927
927
  ];
928
928
  }
929
- function Lo(i, t) {
930
- return Q({}, Yo, i, t);
931
- }
932
929
  function Ro(i, t) {
933
930
  return Q({}, Wo, i, t);
934
931
  }
935
932
  function Mo(i, t) {
936
- return Q(
937
- {},
938
- Go,
939
- i,
940
- t
941
- );
933
+ return Q({}, Go, i, t);
942
934
  }
943
935
  function Io(i, t) {
944
936
  return Q(
@@ -958,14 +950,22 @@ function No(i, t) {
958
950
  }
959
951
  function Ho(i, t) {
960
952
  return Q(
961
- [],
953
+ {},
962
954
  Qo,
963
955
  i,
964
956
  t
965
957
  );
966
958
  }
959
+ function ko(i, t) {
960
+ return Q(
961
+ [],
962
+ ts,
963
+ i,
964
+ t
965
+ );
966
+ }
967
967
  function Vo(i, t) {
968
- const e = Gt(i.getAttribute("queryable"));
968
+ const e = Kt(i.getAttribute("queryable"));
969
969
  return Q(
970
970
  {
971
971
  queryable: S(e) ? e : !1
@@ -975,7 +975,7 @@ function Vo(i, t) {
975
975
  t
976
976
  );
977
977
  }
978
- function ko(i, t) {
978
+ function Bo(i, t) {
979
979
  var e = (
980
980
  /** @type {Object.<string,*>} */
981
981
  t[t.length - 1]
@@ -990,13 +990,13 @@ function ko(i, t) {
990
990
  )
991
991
  );
992
992
  if (!S(n)) return;
993
- let r = Gt(i.getAttribute("queryable"));
993
+ let r = Kt(i.getAttribute("queryable"));
994
994
  S(r) || (r = e.queryable), n.queryable = S(r) ? r : !1;
995
995
  let o = Je(i.getAttribute("cascaded"));
996
996
  S(o) || (o = e.cascaded), n.cascaded = o;
997
- let s = Gt(i.getAttribute("opaque"));
997
+ let s = Kt(i.getAttribute("opaque"));
998
998
  S(s) || (s = e.opaque), n.opaque = S(s) ? s : !1;
999
- let a = Gt(i.getAttribute("noSubsets"));
999
+ let a = Kt(i.getAttribute("noSubsets"));
1000
1000
  S(a) || (a = e.noSubsets), n.noSubsets = S(a) ? a : !1;
1001
1001
  let l = Tt(i.getAttribute("fixedWidth"));
1002
1002
  S(l) || (l = e.fixedWidth), n.fixedWidth = l;
@@ -1027,37 +1027,37 @@ function ko(i, t) {
1027
1027
  }
1028
1028
  return n;
1029
1029
  }
1030
- function Bo(i, t) {
1030
+ function Uo(i, t) {
1031
1031
  return {
1032
1032
  name: i.getAttribute("name"),
1033
1033
  units: i.getAttribute("units"),
1034
1034
  unitSymbol: i.getAttribute("unitSymbol"),
1035
1035
  default: i.getAttribute("default"),
1036
- multipleValues: Gt(i.getAttribute("multipleValues")),
1037
- nearestValue: Gt(i.getAttribute("nearestValue")),
1038
- current: Gt(i.getAttribute("current")),
1036
+ multipleValues: Kt(i.getAttribute("multipleValues")),
1037
+ nearestValue: Kt(i.getAttribute("nearestValue")),
1038
+ current: Kt(i.getAttribute("current")),
1039
1039
  values: D(i)
1040
1040
  };
1041
1041
  }
1042
1042
  function Pt(i, t) {
1043
1043
  return Q(
1044
1044
  {},
1045
- as,
1045
+ ls,
1046
1046
  i,
1047
1047
  t
1048
1048
  );
1049
1049
  }
1050
- function Uo(i, t) {
1051
- return Q({}, is, i, t);
1052
- }
1053
1050
  function Fo(i, t) {
1054
- return Q({}, rs, i, t);
1051
+ return Q({}, ns, i, t);
1055
1052
  }
1056
1053
  function jo(i, t) {
1057
1054
  return Q({}, os, i, t);
1058
1055
  }
1056
+ function zo(i, t) {
1057
+ return Q({}, ss, i, t);
1058
+ }
1059
1059
  function Mi(i, t) {
1060
- return Q({}, ns, i, t);
1060
+ return Q({}, rs, i, t);
1061
1061
  }
1062
1062
  function lr(i, t) {
1063
1063
  var e = Pt(i, t);
@@ -1069,23 +1069,23 @@ function lr(i, t) {
1069
1069
  return e.size = n, e;
1070
1070
  }
1071
1071
  }
1072
- function zo(i, t) {
1072
+ function Zo(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 Zo(i, t) {
1077
+ function qo(i, t) {
1078
1078
  var e = Pt(i, t);
1079
1079
  if (S(e))
1080
1080
  return e.type = i.getAttribute("type"), e;
1081
1081
  }
1082
- function qo(i, t) {
1083
- return Q({}, ss, i, t);
1082
+ function Xo(i, t) {
1083
+ return Q({}, as, i, t);
1084
1084
  }
1085
1085
  function dr(i, t) {
1086
1086
  return Q(
1087
1087
  [],
1088
- ls,
1088
+ ds,
1089
1089
  i,
1090
1090
  t
1091
1091
  );
@@ -1093,20 +1093,20 @@ function dr(i, t) {
1093
1093
  const rt = [
1094
1094
  null,
1095
1095
  "http://www.opengis.net/wms"
1096
- ], Xo = nt(
1096
+ ], Yo = nt(
1097
1097
  rt,
1098
1098
  {
1099
- Service: y(Ro),
1100
- Capability: y(Lo)
1099
+ Service: y(Mo),
1100
+ Capability: y(Ro)
1101
1101
  }
1102
- ), Yo = nt(
1102
+ ), Wo = nt(
1103
1103
  rt,
1104
1104
  {
1105
- Request: y(Uo),
1106
- Exception: y(Ho),
1105
+ Request: y(Fo),
1106
+ Exception: y(ko),
1107
1107
  Layer: y(Vo)
1108
1108
  }
1109
- ), Wo = nt(
1109
+ ), Go = nt(
1110
1110
  rt,
1111
1111
  {
1112
1112
  Name: y(D),
@@ -1114,30 +1114,30 @@ const rt = [
1114
1114
  Abstract: y(D),
1115
1115
  KeywordList: y(dr),
1116
1116
  OnlineResource: y(ln),
1117
- ContactInformation: y(Mo),
1117
+ ContactInformation: y(Io),
1118
1118
  Fees: y(D),
1119
1119
  AccessConstraints: y(D),
1120
1120
  LayerLimit: y(Ri),
1121
1121
  MaxWidth: y(Ri),
1122
1122
  MaxHeight: y(Ri)
1123
1123
  }
1124
- ), Go = nt(
1124
+ ), Jo = nt(
1125
1125
  rt,
1126
1126
  {
1127
- ContactPersonPrimary: y(Io),
1127
+ ContactPersonPrimary: y(No),
1128
1128
  ContactPosition: y(D),
1129
- ContactAddress: y(No),
1129
+ ContactAddress: y(Ho),
1130
1130
  ContactVoiceTelephone: y(D),
1131
1131
  ContactFacsimileTelephone: y(D),
1132
1132
  ContactElectronicMailAddress: y(D)
1133
1133
  }
1134
- ), Jo = nt(
1134
+ ), Ko = nt(
1135
1135
  rt,
1136
1136
  {
1137
1137
  ContactPerson: y(D),
1138
1138
  ContactOrganization: y(D)
1139
1139
  }
1140
- ), Ko = nt(
1140
+ ), Qo = nt(
1141
1141
  rt,
1142
1142
  {
1143
1143
  AddressType: y(D),
@@ -1147,7 +1147,7 @@ const rt = [
1147
1147
  PostCode: y(D),
1148
1148
  Country: y(D)
1149
1149
  }
1150
- ), Qo = nt(
1150
+ ), ts = nt(
1151
1151
  rt,
1152
1152
  {
1153
1153
  Format: sr(D)
@@ -1162,34 +1162,34 @@ const rt = [
1162
1162
  CRS: pt(D),
1163
1163
  SRS: pt(D),
1164
1164
  EX_GeographicBoundingBox: y(Oo),
1165
- LatLonBoundingBox: y(Do),
1166
- BoundingBox: pt(To),
1167
- Dimension: pt(Bo),
1168
- Attribution: y(Co),
1169
- AuthorityURL: pt(zo),
1165
+ LatLonBoundingBox: y(Po),
1166
+ BoundingBox: pt(Do),
1167
+ Dimension: pt(Uo),
1168
+ Attribution: y(To),
1169
+ AuthorityURL: pt(Zo),
1170
1170
  Identifier: pt(D),
1171
- MetadataURL: pt(Zo),
1171
+ MetadataURL: pt(qo),
1172
1172
  DataURL: pt(Pt),
1173
1173
  FeatureListURL: pt(Pt),
1174
- Style: pt(qo),
1175
- MinScaleDenominator: y(oe),
1176
- MaxScaleDenominator: y(oe),
1177
- ScaleHint: y(Po),
1178
- Layer: pt(ko)
1174
+ Style: pt(Xo),
1175
+ MinScaleDenominator: y(ae),
1176
+ MaxScaleDenominator: y(ae),
1177
+ ScaleHint: y(Lo),
1178
+ Layer: pt(Bo)
1179
1179
  }
1180
- ), ts = nt(
1180
+ ), es = nt(
1181
1181
  rt,
1182
1182
  {
1183
1183
  Title: y(D),
1184
1184
  OnlineResource: y(ln),
1185
1185
  LogoURL: y(lr)
1186
1186
  }
1187
- ), es = nt(rt, {
1188
- westBoundLongitude: y(oe),
1189
- eastBoundLongitude: y(oe),
1190
- southBoundLatitude: y(oe),
1191
- northBoundLatitude: y(oe)
1192
- }), is = nt(
1187
+ ), is = nt(rt, {
1188
+ westBoundLongitude: y(ae),
1189
+ eastBoundLongitude: y(ae),
1190
+ southBoundLatitude: y(ae),
1191
+ northBoundLatitude: y(ae)
1192
+ }), ns = nt(
1193
1193
  rt,
1194
1194
  {
1195
1195
  GetCapabilities: y(
@@ -1202,22 +1202,22 @@ const rt = [
1202
1202
  Mi
1203
1203
  )
1204
1204
  }
1205
- ), ns = nt(
1205
+ ), rs = nt(
1206
1206
  rt,
1207
1207
  {
1208
1208
  Format: pt(D),
1209
1209
  DCPType: pt(
1210
- Fo
1210
+ jo
1211
1211
  )
1212
1212
  }
1213
- ), rs = nt(
1213
+ ), os = nt(
1214
1214
  rt,
1215
1215
  {
1216
1216
  HTTP: y(
1217
- jo
1217
+ zo
1218
1218
  )
1219
1219
  }
1220
- ), os = nt(
1220
+ ), ss = nt(
1221
1221
  rt,
1222
1222
  {
1223
1223
  Get: y(
@@ -1227,7 +1227,7 @@ const rt = [
1227
1227
  Pt
1228
1228
  )
1229
1229
  }
1230
- ), ss = nt(
1230
+ ), as = nt(
1231
1231
  rt,
1232
1232
  {
1233
1233
  Name: y(D),
@@ -1237,19 +1237,19 @@ const rt = [
1237
1237
  StyleSheetURL: y(Pt),
1238
1238
  StyleURL: y(Pt)
1239
1239
  }
1240
- ), as = nt(
1240
+ ), ls = nt(
1241
1241
  rt,
1242
1242
  {
1243
1243
  Format: y(D),
1244
1244
  OnlineResource: y(ln)
1245
1245
  }
1246
- ), ls = nt(
1246
+ ), ds = nt(
1247
1247
  rt,
1248
1248
  {
1249
1249
  Keyword: sr(D)
1250
1250
  }
1251
1251
  );
1252
- class ds {
1252
+ class cs {
1253
1253
  /**
1254
1254
  * WMS Capabilities parser
1255
1255
  *
@@ -1257,7 +1257,7 @@ class ds {
1257
1257
  * @constructor
1258
1258
  */
1259
1259
  constructor(t, e) {
1260
- !e && typeof window < "u" && (e = window.DOMParser), this.version = void 0, this._parser = new vo(e), this._data = t;
1260
+ !e && typeof window < "u" && (e = window.DOMParser), this.version = void 0, this._parser = new wo(e), this._data = t;
1261
1261
  }
1262
1262
  /**
1263
1263
  * @param {String} xmlString
@@ -1286,7 +1286,7 @@ class ds {
1286
1286
  */
1287
1287
  readFromDocument(t) {
1288
1288
  for (let e = t.firstChild; e; e = e.nextSibling)
1289
- if (e.nodeType == Te.ELEMENT)
1289
+ if (e.nodeType == De.ELEMENT)
1290
1290
  return this.readFromNode(e);
1291
1291
  return null;
1292
1292
  }
@@ -1297,17 +1297,17 @@ class ds {
1297
1297
  readFromNode(t) {
1298
1298
  return this.version = t.getAttribute("version"), Q({
1299
1299
  version: this.version
1300
- }, Xo, t, []) || null;
1300
+ }, Yo, t, []) || null;
1301
1301
  }
1302
1302
  }
1303
- async function cs(i) {
1303
+ async function us(i) {
1304
1304
  let t = new URL(i), e = t.searchParams;
1305
1305
  e.set("SERVICE", "WMS"), e.set("REQUEST", "GetCapabilities");
1306
1306
  let n = t.toString();
1307
1307
  const r = await fetch(n);
1308
1308
  if (r.ok) {
1309
1309
  const o = await r.text();
1310
- return new ds(o).toJSON();
1310
+ return new cs(o).toJSON();
1311
1311
  } else
1312
1312
  throw new Error(`Error: ${r.status}`);
1313
1313
  }
@@ -1315,7 +1315,7 @@ function dn(i) {
1315
1315
  const t = /\b(?:wms|ows)\b/i, e = /{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;
1316
1316
  return t.test(i) ? "TileWMS" : e.test(i) ? "XYZ" : !1;
1317
1317
  }
1318
- function us(i) {
1318
+ function hs(i) {
1319
1319
  const e = /^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(i), n = dn(i);
1320
1320
  return !!(i && e && n);
1321
1321
  }
@@ -1325,14 +1325,14 @@ function ur(i) {
1325
1325
  '"$2": '
1326
1326
  ).replace(/,\s*}/g, "}").replace(/,\s*]/g, "]").replace(/\s*(\{|}|\[|\]|,)\s*/g, "$1").replaceAll('": //', "://");
1327
1327
  }
1328
- function hs(i) {
1328
+ function ps(i) {
1329
1329
  try {
1330
1330
  return JSON.parse(ur(i)), !!i;
1331
1331
  } catch {
1332
1332
  return !1;
1333
1333
  }
1334
1334
  }
1335
- function ps(i, t) {
1335
+ function fs(i, t) {
1336
1336
  const e = new URL(i).searchParams;
1337
1337
  Object.entries(t).forEach(([s, a]) => {
1338
1338
  typeof a == "object" && !Array.isArray(a) && a !== null ? Object.keys(a).forEach((l) => {
@@ -1362,7 +1362,7 @@ function St(i) {
1362
1362
  for (var t = 1; t < arguments.length; t++) {
1363
1363
  var e = arguments[t] != null ? arguments[t] : {};
1364
1364
  t % 2 ? Pn(Object(e), !0).forEach(function(n) {
1365
- fs(i, n, e[n]);
1365
+ gs(i, n, e[n]);
1366
1366
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(e)) : Pn(Object(e)).forEach(function(n) {
1367
1367
  Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(e, n));
1368
1368
  });
@@ -1377,7 +1377,7 @@ function je(i) {
1377
1377
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1378
1378
  }, je(i);
1379
1379
  }
1380
- function fs(i, t, e) {
1380
+ function gs(i, t, e) {
1381
1381
  return t in i ? Object.defineProperty(i, t, {
1382
1382
  value: e,
1383
1383
  enumerable: !0,
@@ -1385,26 +1385,26 @@ function fs(i, t, e) {
1385
1385
  writable: !0
1386
1386
  }) : i[t] = e, i;
1387
1387
  }
1388
- function Ot() {
1389
- return Ot = Object.assign || function(i) {
1388
+ function Lt() {
1389
+ return Lt = Object.assign || function(i) {
1390
1390
  for (var t = 1; t < arguments.length; t++) {
1391
1391
  var e = arguments[t];
1392
1392
  for (var n in e)
1393
1393
  Object.prototype.hasOwnProperty.call(e, n) && (i[n] = e[n]);
1394
1394
  }
1395
1395
  return i;
1396
- }, Ot.apply(this, arguments);
1396
+ }, Lt.apply(this, arguments);
1397
1397
  }
1398
- function gs(i, t) {
1398
+ function ms(i, t) {
1399
1399
  if (i == null) return {};
1400
1400
  var e = {}, n = Object.keys(i), r, o;
1401
1401
  for (o = 0; o < n.length; o++)
1402
1402
  r = n[o], !(t.indexOf(r) >= 0) && (e[r] = i[r]);
1403
1403
  return e;
1404
1404
  }
1405
- function ms(i, t) {
1405
+ function ys(i, t) {
1406
1406
  if (i == null) return {};
1407
- var e = gs(i, t), n, r;
1407
+ var e = ms(i, t), n, r;
1408
1408
  if (Object.getOwnPropertySymbols) {
1409
1409
  var o = Object.getOwnPropertySymbols(i);
1410
1410
  for (r = 0; r < o.length; r++)
@@ -1412,20 +1412,20 @@ function ms(i, t) {
1412
1412
  }
1413
1413
  return e;
1414
1414
  }
1415
- var ys = "1.15.6";
1415
+ var bs = "1.15.6";
1416
1416
  function Dt(i) {
1417
1417
  if (typeof window < "u" && window.navigator)
1418
1418
  return !!/* @__PURE__ */ navigator.userAgent.match(i);
1419
1419
  }
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), cn = Dt(/iP(ad|od|hone)/i), hr = Dt(/chrome/i) && Dt(/android/i), pr = {
1420
+ var Ot = Dt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Me = Dt(/Edge/i), Ln = Dt(/firefox/i), xe = Dt(/safari/i) && !Dt(/chrome/i) && !Dt(/android/i), cn = Dt(/iP(ad|od|hone)/i), hr = Dt(/chrome/i) && Dt(/android/i), pr = {
1421
1421
  capture: !1,
1422
1422
  passive: !1
1423
1423
  };
1424
1424
  function C(i, t, e) {
1425
- i.addEventListener(t, e, !Lt && pr);
1425
+ i.addEventListener(t, e, !Ot && pr);
1426
1426
  }
1427
1427
  function _(i, t, e) {
1428
- i.removeEventListener(t, e, !Lt && pr);
1428
+ i.removeEventListener(t, e, !Ot && pr);
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 Ln = /\s+/g;
1460
+ var On = /\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(Ln, " ").replace(" " + t + " ", " ");
1467
- i.className = (n + (e ? " " + t : "")).replace(Ln, " ");
1466
+ var n = (" " + i.className + " ").replace(On, " ").replace(" " + t + " ", " ");
1467
+ i.className = (n + (e ? " " + t : "")).replace(On, " ");
1468
1468
  }
1469
1469
  }
1470
1470
  function v(i, t, e) {
@@ -1475,7 +1475,7 @@ function v(i, t, e) {
1475
1475
  !(t in n) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), n[t] = e + (typeof e == "string" ? "" : "px");
1476
1476
  }
1477
1477
  }
1478
- function ae(i, t) {
1478
+ function de(i, t) {
1479
1479
  var e = "";
1480
1480
  if (typeof i == "string")
1481
1481
  e = i;
@@ -1497,14 +1497,14 @@ function gr(i, t, e) {
1497
1497
  }
1498
1498
  return [];
1499
1499
  }
1500
- function $t() {
1500
+ function Et() {
1501
1501
  var i = document.scrollingElement;
1502
1502
  return i || document.documentElement;
1503
1503
  }
1504
1504
  function W(i, t, e, n, r) {
1505
1505
  if (!(!i.getBoundingClientRect && i !== window)) {
1506
1506
  var o, s, a, l, d, u, c;
1507
- if (i !== window && i.parentNode && i !== $t() ? (o = i.getBoundingClientRect(), s = o.top, a = o.left, l = o.bottom, d = o.right, u = o.height, c = o.width) : (s = 0, a = 0, l = window.innerHeight, d = window.innerWidth, u = window.innerHeight, c = window.innerWidth), (t || e) && i !== window && (r = r || i.parentNode, !Lt))
1507
+ if (i !== window && i.parentNode && i !== Et() ? (o = i.getBoundingClientRect(), s = o.top, a = o.left, l = o.bottom, d = o.right, u = o.height, c = o.width) : (s = 0, a = 0, l = window.innerHeight, d = window.innerWidth, u = window.innerHeight, c = window.innerWidth), (t || e) && i !== window && (r = r || i.parentNode, !Ot))
1508
1508
  do
1509
1509
  if (r && r.getBoundingClientRect && (v(r, "transform") !== "none" || e && v(r, "position") !== "static")) {
1510
1510
  var p = r.getBoundingClientRect();
@@ -1513,7 +1513,7 @@ function W(i, t, e, n, r) {
1513
1513
  }
1514
1514
  while (r = r.parentNode);
1515
1515
  if (n && i !== window) {
1516
- var f = ae(r || i), g = f && f.a, b = f && f.d;
1516
+ var f = de(r || i), g = f && f.a, b = f && f.d;
1517
1517
  f && (s /= b, a /= g, c /= g, u /= b, l = s + u, d = a + c);
1518
1518
  }
1519
1519
  return {
@@ -1530,12 +1530,12 @@ function Rn(i, t, e) {
1530
1530
  for (var n = Vt(i, !0), r = W(i)[t]; n; ) {
1531
1531
  var o = W(n)[e], s = void 0;
1532
1532
  if (s = r >= o, !s) return n;
1533
- if (n === $t()) break;
1533
+ if (n === Et()) break;
1534
1534
  n = Vt(n, !1);
1535
1535
  }
1536
1536
  return !1;
1537
1537
  }
1538
- function de(i, t, e, n) {
1538
+ function ue(i, t, e, n) {
1539
1539
  for (var r = 0, o = 0, s = i.children; o < s.length; ) {
1540
1540
  if (s[o].style.display !== "none" && s[o] !== w.ghost && (n || s[o] !== w.dragged) && xt(s[o], e.draggable, i, !1)) {
1541
1541
  if (r === t)
@@ -1560,15 +1560,15 @@ function bt(i, t) {
1560
1560
  return e;
1561
1561
  }
1562
1562
  function Mn(i) {
1563
- var t = 0, e = 0, n = $t();
1563
+ var t = 0, e = 0, n = Et();
1564
1564
  if (i)
1565
1565
  do {
1566
- var r = ae(i), o = r.a, s = r.d;
1566
+ var r = de(i), o = r.a, s = r.d;
1567
1567
  t += i.scrollLeft * o, e += i.scrollTop * s;
1568
1568
  } while (i !== n && (i = i.parentNode));
1569
1569
  return [t, e];
1570
1570
  }
1571
- function bs(i, t) {
1571
+ function vs(i, t) {
1572
1572
  for (var e in i)
1573
1573
  if (i.hasOwnProperty(e)) {
1574
1574
  for (var n in t)
@@ -1577,21 +1577,21 @@ function bs(i, t) {
1577
1577
  return -1;
1578
1578
  }
1579
1579
  function Vt(i, t) {
1580
- if (!i || !i.getBoundingClientRect) return $t();
1580
+ if (!i || !i.getBoundingClientRect) return Et();
1581
1581
  var e = i, n = !1;
1582
1582
  do
1583
1583
  if (e.clientWidth < e.scrollWidth || e.clientHeight < e.scrollHeight) {
1584
1584
  var r = v(e);
1585
1585
  if (e.clientWidth < e.scrollWidth && (r.overflowX == "auto" || r.overflowX == "scroll") || e.clientHeight < e.scrollHeight && (r.overflowY == "auto" || r.overflowY == "scroll")) {
1586
- if (!e.getBoundingClientRect || e === document.body) return $t();
1586
+ if (!e.getBoundingClientRect || e === document.body) return Et();
1587
1587
  if (n || t) return e;
1588
1588
  n = !0;
1589
1589
  }
1590
1590
  }
1591
1591
  while (e = e.parentNode);
1592
- return $t();
1592
+ return Et();
1593
1593
  }
1594
- function vs(i, t) {
1594
+ function ws(i, t) {
1595
1595
  if (i && t)
1596
1596
  for (var e in t)
1597
1597
  t.hasOwnProperty(e) && (i[e] = t[e]);
@@ -1600,19 +1600,19 @@ function vs(i, t) {
1600
1600
  function Ii(i, t) {
1601
1601
  return Math.round(i.top) === Math.round(t.top) && Math.round(i.left) === Math.round(t.left) && Math.round(i.height) === Math.round(t.height) && Math.round(i.width) === Math.round(t.width);
1602
1602
  }
1603
- var xe;
1603
+ var $e;
1604
1604
  function mr(i, t) {
1605
1605
  return function() {
1606
- if (!xe) {
1606
+ if (!$e) {
1607
1607
  var e = arguments, n = this;
1608
- e.length === 1 ? i.call(n, e[0]) : i.apply(n, e), xe = setTimeout(function() {
1609
- xe = void 0;
1608
+ e.length === 1 ? i.call(n, e[0]) : i.apply(n, e), $e = setTimeout(function() {
1609
+ $e = void 0;
1610
1610
  }, t);
1611
1611
  }
1612
1612
  };
1613
1613
  }
1614
- function ws() {
1615
- clearTimeout(xe), xe = void 0;
1614
+ function xs() {
1615
+ clearTimeout($e), $e = void 0;
1616
1616
  }
1617
1617
  function yr(i, t, e) {
1618
1618
  i.scrollLeft += t, i.scrollTop += e;
@@ -1632,7 +1632,7 @@ function vr(i, t, e) {
1632
1632
  }), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
1633
1633
  }
1634
1634
  var ft = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
1635
- function xs() {
1635
+ function $s() {
1636
1636
  var i = [], t;
1637
1637
  return {
1638
1638
  captureAnimationState: function() {
@@ -1646,7 +1646,7 @@ function xs() {
1646
1646
  });
1647
1647
  var o = St({}, i[i.length - 1].rect);
1648
1648
  if (r.thisAnimationDuration) {
1649
- var s = ae(r, !0);
1649
+ var s = de(r, !0);
1650
1650
  s && (o.top -= s.f, o.left -= s.e);
1651
1651
  }
1652
1652
  r.fromRect = o;
@@ -1658,7 +1658,7 @@ function xs() {
1658
1658
  i.push(n);
1659
1659
  },
1660
1660
  removeAnimationState: function(n) {
1661
- i.splice(bs(i, {
1661
+ i.splice(vs(i, {
1662
1662
  target: n
1663
1663
  }), 1);
1664
1664
  },
@@ -1670,9 +1670,9 @@ function xs() {
1670
1670
  }
1671
1671
  var o = !1, s = 0;
1672
1672
  i.forEach(function(a) {
1673
- var l = 0, d = a.target, u = d.fromRect, c = W(d), p = d.prevFromRect, f = d.prevToRect, g = a.rect, b = ae(d, !0);
1673
+ var l = 0, d = a.target, u = d.fromRect, c = W(d), p = d.prevFromRect, f = d.prevToRect, g = a.rect, b = de(d, !0);
1674
1674
  b && (c.top -= b.f, c.left -= b.e), d.toRect = c, d.thisAnimationDuration && Ii(p, c) && !Ii(u, c) && // Make sure animatingRect is on line between toRect & fromRect
1675
- (g.top - c.top) / (g.left - c.left) === (u.top - c.top) / (u.left - c.left) && (l = $s(g, p, f, r.options)), Ii(c, u) || (d.prevFromRect = u, d.prevToRect = c, l || (l = r.options.animation), r.animate(d, g, c, l)), l && (o = !0, s = Math.max(s, l), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
1675
+ (g.top - c.top) / (g.left - c.left) === (u.top - c.top) / (u.left - c.left) && (l = Ss(g, p, f, r.options)), Ii(c, u) || (d.prevFromRect = u, d.prevToRect = c, l || (l = r.options.animation), r.animate(d, g, c, l)), l && (o = !0, s = Math.max(s, l), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
1676
1676
  d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
1677
1677
  }, l), d.thisAnimationDuration = l);
1678
1678
  }), clearTimeout(t), o ? t = setTimeout(function() {
@@ -1682,7 +1682,7 @@ function xs() {
1682
1682
  animate: function(n, r, o, s) {
1683
1683
  if (s) {
1684
1684
  v(n, "transition", ""), v(n, "transform", "");
1685
- var a = ae(this.el), l = a && a.a, d = a && a.d, u = (r.left - o.left) / (l || 1), c = (r.top - o.top) / (d || 1);
1685
+ var a = de(this.el), l = a && a.a, d = a && a.d, u = (r.left - o.left) / (l || 1), c = (r.top - o.top) / (d || 1);
1686
1686
  n.animatingX = !!u, n.animatingY = !!c, v(n, "transform", "translate3d(" + u + "px," + c + "px,0)"), this.forRepaintDummy = Es(n), v(n, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
1687
1687
  v(n, "transition", ""), v(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
1688
1688
  }, s);
@@ -1693,19 +1693,19 @@ function xs() {
1693
1693
  function Es(i) {
1694
1694
  return i.offsetWidth;
1695
1695
  }
1696
- function $s(i, t, e, n) {
1696
+ function Ss(i, t, e, n) {
1697
1697
  return Math.sqrt(Math.pow(t.top - i.top, 2) + Math.pow(t.left - i.left, 2)) / Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) * n.animation;
1698
1698
  }
1699
- var te = [], Ni = {
1699
+ var ie = [], Ni = {
1700
1700
  initializeByDefault: !0
1701
- }, Me = {
1701
+ }, Ie = {
1702
1702
  mount: function(t) {
1703
1703
  for (var e in Ni)
1704
1704
  Ni.hasOwnProperty(e) && !(e in t) && (t[e] = Ni[e]);
1705
- te.forEach(function(n) {
1705
+ ie.forEach(function(n) {
1706
1706
  if (n.pluginName === t.pluginName)
1707
1707
  throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
1708
- }), te.push(t);
1708
+ }), ie.push(t);
1709
1709
  },
1710
1710
  pluginEvent: function(t, e, n) {
1711
1711
  var r = this;
@@ -1713,7 +1713,7 @@ var te = [], Ni = {
1713
1713
  r.eventCanceled = !0;
1714
1714
  };
1715
1715
  var o = t + "Global";
1716
- te.forEach(function(s) {
1716
+ ie.forEach(function(s) {
1717
1717
  e[s.pluginName] && (e[s.pluginName][o] && e[s.pluginName][o](St({
1718
1718
  sortable: e
1719
1719
  }, n)), e.options[s.pluginName] && e[s.pluginName][t] && e[s.pluginName][t](St({
@@ -1722,11 +1722,11 @@ var te = [], Ni = {
1722
1722
  });
1723
1723
  },
1724
1724
  initializePlugins: function(t, e, n, r) {
1725
- te.forEach(function(a) {
1725
+ ie.forEach(function(a) {
1726
1726
  var l = a.pluginName;
1727
1727
  if (!(!t.options[l] && !a.initializeByDefault)) {
1728
1728
  var d = new a(t, e, t.options);
1729
- d.sortable = t, d.options = t.options, t[l] = d, Ot(n, d.defaults);
1729
+ d.sortable = t, d.options = t.options, t[l] = d, Lt(n, d.defaults);
1730
1730
  }
1731
1731
  });
1732
1732
  for (var o in t.options)
@@ -1737,57 +1737,57 @@ var te = [], Ni = {
1737
1737
  },
1738
1738
  getEventProperties: function(t, e) {
1739
1739
  var n = {};
1740
- return te.forEach(function(r) {
1741
- typeof r.eventProperties == "function" && Ot(n, r.eventProperties.call(e[r.pluginName], t));
1740
+ return ie.forEach(function(r) {
1741
+ typeof r.eventProperties == "function" && Lt(n, r.eventProperties.call(e[r.pluginName], t));
1742
1742
  }), n;
1743
1743
  },
1744
1744
  modifyOption: function(t, e, n) {
1745
1745
  var r;
1746
- return te.forEach(function(o) {
1746
+ return ie.forEach(function(o) {
1747
1747
  t[o.pluginName] && o.optionListeners && typeof o.optionListeners[e] == "function" && (r = o.optionListeners[e].call(t[o.pluginName], n));
1748
1748
  }), r;
1749
1749
  }
1750
1750
  };
1751
- function Ss(i) {
1751
+ function As(i) {
1752
1752
  var t = i.sortable, e = i.rootEl, n = i.name, r = i.targetEl, o = i.cloneEl, s = i.toEl, a = i.fromEl, l = i.oldIndex, d = i.newIndex, u = i.oldDraggableIndex, c = 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 && !Lt && !Re ? b = new CustomEvent(n, {
1755
+ window.CustomEvent && !Ot && !Me ? 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 = r || e, b.clone = o, b.oldIndex = l, b.newIndex = d, b.oldDraggableIndex = u, b.newDraggableIndex = c, b.originalEvent = p, b.pullMode = f ? f.lastPutMode : void 0;
1759
- var U = St(St({}, g), Me.getEventProperties(n, t));
1760
- for (var st in U)
1761
- b[st] = U[st];
1759
+ var F = St(St({}, g), Ie.getEventProperties(n, t));
1760
+ for (var st in F)
1761
+ b[st] = F[st];
1762
1762
  e && e.dispatchEvent(b), N[J] && N[J].call(t, b);
1763
1763
  }
1764
1764
  }
1765
- var As = ["evt"], ht = function(t, e) {
1766
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = ms(n, As);
1767
- Me.pluginEvent.bind(w)(t, e, St({
1765
+ var _s = ["evt"], ht = function(t, e) {
1766
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = ys(n, _s);
1767
+ Ie.pluginEvent.bind(w)(t, e, St({
1768
1768
  dragEl: h,
1769
1769
  parentEl: z,
1770
- ghostEl: E,
1771
- rootEl: V,
1772
- nextEl: Yt,
1770
+ ghostEl: $,
1771
+ rootEl: k,
1772
+ nextEl: Gt,
1773
1773
  lastDownEl: ze,
1774
- cloneEl: B,
1775
- cloneHidden: Nt,
1776
- dragStarted: ge,
1774
+ cloneEl: U,
1775
+ cloneHidden: Ht,
1776
+ dragStarted: me,
1777
1777
  putSortable: et,
1778
1778
  activeSortable: w.active,
1779
1779
  originalEvent: r,
1780
- oldIndex: se,
1780
+ oldIndex: le,
1781
1781
  oldDraggableIndex: Ee,
1782
1782
  newIndex: yt,
1783
- newDraggableIndex: It,
1784
- hideGhostForTarget: $r,
1783
+ newDraggableIndex: Nt,
1784
+ hideGhostForTarget: Er,
1785
1785
  unhideGhostForTarget: Sr,
1786
1786
  cloneNowHidden: function() {
1787
- Nt = !0;
1787
+ Ht = !0;
1788
1788
  },
1789
1789
  cloneNowShown: function() {
1790
- Nt = !1;
1790
+ Ht = !1;
1791
1791
  },
1792
1792
  dispatchSortableEvent: function(a) {
1793
1793
  at({
@@ -1799,26 +1799,26 @@ var As = ["evt"], ht = function(t, e) {
1799
1799
  }, o));
1800
1800
  };
1801
1801
  function at(i) {
1802
- Ss(St({
1802
+ As(St({
1803
1803
  putSortable: et,
1804
- cloneEl: B,
1804
+ cloneEl: U,
1805
1805
  targetEl: h,
1806
- rootEl: V,
1807
- oldIndex: se,
1806
+ rootEl: k,
1807
+ oldIndex: le,
1808
1808
  oldDraggableIndex: Ee,
1809
1809
  newIndex: yt,
1810
- newDraggableIndex: It
1810
+ newDraggableIndex: Nt
1811
1811
  }, i));
1812
1812
  }
1813
- var h, z, E, V, Yt, ze, B, 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, ot, ki = [], Xi = !1, ei = [], Ai = typeof document < "u", ke = cn, Hn = Re || Lt ? "cssFloat" : "float", _s = Ai && !hr && !cn && "draggable" in document.createElement("div"), wr = function() {
1813
+ var h, z, $, k, Gt, ze, U, Ht, le, yt, Ee, Nt, ke, et, oe = !1, Qe = !1, ti = [], Yt, wt, Hi, ki, In, Nn, me, ne, Se, Ae = !1, Ve = !1, Ze, ot, Vi = [], Xi = !1, ei = [], Ai = typeof document < "u", Be = cn, Hn = Me || Ot ? "cssFloat" : "float", Cs = Ai && !hr && !cn && "draggable" in document.createElement("div"), wr = function() {
1814
1814
  if (Ai) {
1815
- if (Lt)
1815
+ if (Ot)
1816
1816
  return !1;
1817
1817
  var i = document.createElement("x");
1818
1818
  return i.style.cssText = "pointer-events:auto", i.style.pointerEvents === "auto";
1819
1819
  }
1820
1820
  }(), xr = function(t, e) {
1821
- var n = v(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o = de(t, 0, e), s = de(t, 1, e), a = o && v(o), l = s && v(s), d = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + W(o).width, u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + W(s).width;
1821
+ var n = v(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o = ue(t, 0, e), s = ue(t, 1, e), a = o && v(o), l = s && v(s), d = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + W(o).width, u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + W(s).width;
1822
1822
  if (n.display === "flex")
1823
1823
  return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
1824
1824
  if (n.display === "grid")
@@ -1828,10 +1828,10 @@ var h, z, E, V, Yt, ze, B, Nt, se, yt, Ee, It, He, et, ne = !1, Qe = !1, ti = []
1828
1828
  return s && (l.clear === "both" || l.clear === c) ? "vertical" : "horizontal";
1829
1829
  }
1830
1830
  return o && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || d >= r && n[Hn] === "none" || s && n[Hn] === "none" && d + u > r) ? "vertical" : "horizontal";
1831
- }, Cs = function(t, e, n) {
1831
+ }, Ts = function(t, e, n) {
1832
1832
  var r = n ? t.left : t.top, o = n ? t.right : t.bottom, s = n ? t.width : t.height, a = n ? e.left : e.top, l = n ? e.right : e.bottom, d = n ? e.width : e.height;
1833
1833
  return r === a || o === l || r + s / 2 === a + d / 2;
1834
- }, Ts = function(t, e) {
1834
+ }, Ds = function(t, e) {
1835
1835
  var n;
1836
1836
  return ti.some(function(r) {
1837
1837
  var o = r[ft].options.emptyInsertThreshold;
@@ -1841,7 +1841,7 @@ var h, z, E, V, Yt, ze, B, Nt, se, yt, Ee, It, He, et, ne = !1, Qe = !1, ti = []
1841
1841
  return n = r;
1842
1842
  }
1843
1843
  }), n;
1844
- }, Er = function(t) {
1844
+ }, $r = function(t) {
1845
1845
  function e(o, s) {
1846
1846
  return function(a, l, d, u) {
1847
1847
  var c = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
@@ -1861,19 +1861,19 @@ var h, z, E, V, Yt, ze, B, Nt, se, yt, Ee, It, He, et, ne = !1, Qe = !1, ti = []
1861
1861
  (!r || je(r) != "object") && (r = {
1862
1862
  name: r
1863
1863
  }), n.name = r.name, n.checkPull = e(r.pull, !0), n.checkPut = e(r.put), n.revertClone = r.revertClone, t.group = n;
1864
- }, $r = function() {
1865
- !wr && E && v(E, "display", "none");
1864
+ }, Er = function() {
1865
+ !wr && $ && v($, "display", "none");
1866
1866
  }, Sr = function() {
1867
- !wr && E && v(E, "display", "");
1867
+ !wr && $ && v($, "display", "");
1868
1868
  };
1869
1869
  Ai && !hr && document.addEventListener("click", function(i) {
1870
1870
  if (Qe)
1871
1871
  return i.preventDefault(), i.stopPropagation && i.stopPropagation(), i.stopImmediatePropagation && i.stopImmediatePropagation(), Qe = !1, !1;
1872
1872
  }, !0);
1873
- var Xt = function(t) {
1873
+ var Wt = function(t) {
1874
1874
  if (h) {
1875
1875
  t = t.touches ? t.touches[0] : t;
1876
- var e = Ts(t.clientX, t.clientY);
1876
+ var e = Ds(t.clientX, t.clientY);
1877
1877
  if (e) {
1878
1878
  var n = {};
1879
1879
  for (var r in t)
@@ -1881,13 +1881,13 @@ var Xt = function(t) {
1881
1881
  n.target = n.rootEl = e, n.preventDefault = void 0, n.stopPropagation = void 0, e[ft]._onDragOver(n);
1882
1882
  }
1883
1883
  }
1884
- }, Ds = function(t) {
1884
+ }, Ps = function(t) {
1885
1885
  h && h.parentNode[ft]._isOutsideThisEl(t.target);
1886
1886
  };
1887
1887
  function w(i, t) {
1888
1888
  if (!(i && i.nodeType && i.nodeType === 1))
1889
1889
  throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));
1890
- this.el = i, this.options = t = Ot({}, t), i[ft] = this;
1890
+ this.el = i, this.options = t = Lt({}, t), i[ft] = this;
1891
1891
  var e = {
1892
1892
  group: null,
1893
1893
  sort: !0,
@@ -1931,22 +1931,22 @@ function w(i, t) {
1931
1931
  y: 0
1932
1932
  },
1933
1933
  // Disabled on Safari: #1571; Enabled on Safari IOS: #2244
1934
- supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && (!we || cn),
1934
+ supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && (!xe || cn),
1935
1935
  emptyInsertThreshold: 5
1936
1936
  };
1937
- Me.initializePlugins(this, i, e);
1937
+ Ie.initializePlugins(this, i, e);
1938
1938
  for (var n in e)
1939
1939
  !(n in t) && (t[n] = e[n]);
1940
- Er(t);
1940
+ $r(t);
1941
1941
  for (var r in this)
1942
1942
  r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
1943
- this.nativeDraggable = t.forceFallback ? !1 : _s, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? C(i, "pointerdown", this._onTapStart) : (C(i, "mousedown", this._onTapStart), C(i, "touchstart", this._onTapStart)), this.nativeDraggable && (C(i, "dragover", this), C(i, "dragenter", this)), ti.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Ot(this, xs());
1943
+ this.nativeDraggable = t.forceFallback ? !1 : Cs, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? C(i, "pointerdown", this._onTapStart) : (C(i, "mousedown", this._onTapStart), C(i, "touchstart", this._onTapStart)), this.nativeDraggable && (C(i, "dragover", this), C(i, "dragenter", this)), ti.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Lt(this, $s());
1944
1944
  }
1945
1945
  w.prototype = /** @lends Sortable.prototype */
1946
1946
  {
1947
1947
  constructor: w,
1948
1948
  _isOutsideThisEl: function(t) {
1949
- !this.el.contains(t) && t !== this.el && (ee = null);
1949
+ !this.el.contains(t) && t !== this.el && (ne = null);
1950
1950
  },
1951
1951
  _getDirection: function(t, e) {
1952
1952
  return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e, h) : this.options.direction;
@@ -1954,8 +1954,8 @@ w.prototype = /** @lends Sortable.prototype */
1954
1954
  _onTapStart: function(t) {
1955
1955
  if (t.cancelable) {
1956
1956
  var e = this, n = this.el, r = this.options, o = r.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, u = r.filter;
1957
- if (Hs(n), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable && we && l && l.tagName.toUpperCase() === "SELECT") && (l = xt(l, r.draggable, n, !1), !(l && l.animated) && ze !== l)) {
1958
- if (se = bt(l), Ee = bt(l, r.draggable), typeof u == "function") {
1957
+ if (ks(n), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable && xe && l && l.tagName.toUpperCase() === "SELECT") && (l = xt(l, r.draggable, n, !1), !(l && l.animated) && ze !== l)) {
1958
+ if (le = bt(l), Ee = bt(l, r.draggable), typeof u == "function") {
1959
1959
  if (u.call(this, t, l, this)) {
1960
1960
  at({
1961
1961
  sortable: e,
@@ -1993,27 +1993,27 @@ w.prototype = /** @lends Sortable.prototype */
1993
1993
  var r = this, o = r.el, s = r.options, a = o.ownerDocument, l;
1994
1994
  if (n && !h && n.parentNode === o) {
1995
1995
  var d = W(n);
1996
- if (V = o, h = n, z = h.parentNode, Yt = h.nextSibling, ze = n, He = s.group, w.dragged = h, qt = {
1996
+ if (k = o, h = n, z = h.parentNode, Gt = h.nextSibling, ze = n, ke = s.group, w.dragged = h, Yt = {
1997
1997
  target: h,
1998
1998
  clientX: (e || t).clientX,
1999
1999
  clientY: (e || t).clientY
2000
- }, In = qt.clientX - d.left, Nn = qt.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, h.style["will-change"] = "all", l = function() {
2000
+ }, In = Yt.clientX - d.left, Nn = Yt.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, h.style["will-change"] = "all", l = function() {
2001
2001
  if (ht("delayEnded", r, {
2002
2002
  evt: t
2003
2003
  }), w.eventCanceled) {
2004
2004
  r._onDrop();
2005
2005
  return;
2006
2006
  }
2007
- r._disableDelayedDragEvents(), !On && r.nativeDraggable && (h.draggable = !0), r._triggerDragStart(t, e), at({
2007
+ r._disableDelayedDragEvents(), !Ln && r.nativeDraggable && (h.draggable = !0), r._triggerDragStart(t, e), at({
2008
2008
  sortable: r,
2009
2009
  name: "choose",
2010
2010
  originalEvent: t
2011
2011
  }), mt(h, s.chosenClass, !0);
2012
2012
  }, s.ignore.split(",").forEach(function(u) {
2013
2013
  gr(h, u.trim(), Bi);
2014
- }), C(a, "dragover", Xt), C(a, "mousemove", Xt), C(a, "touchmove", Xt), s.supportPointer ? (C(a, "pointerup", r._onDrop), !this.nativeDraggable && C(a, "pointercancel", r._onDrop)) : (C(a, "mouseup", r._onDrop), C(a, "touchend", r._onDrop), C(a, "touchcancel", r._onDrop)), On && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), ht("delayStart", this, {
2014
+ }), C(a, "dragover", Wt), C(a, "mousemove", Wt), C(a, "touchmove", Wt), s.supportPointer ? (C(a, "pointerup", r._onDrop), !this.nativeDraggable && C(a, "pointercancel", r._onDrop)) : (C(a, "mouseup", r._onDrop), C(a, "touchend", r._onDrop), C(a, "touchcancel", r._onDrop)), Ln && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), ht("delayStart", this, {
2015
2015
  evt: t
2016
- }), s.delay && (!s.delayOnTouchOnly || e) && (!this.nativeDraggable || !(Re || Lt))) {
2016
+ }), s.delay && (!s.delayOnTouchOnly || e) && (!this.nativeDraggable || !(Me || Ot))) {
2017
2017
  if (w.eventCanceled) {
2018
2018
  this._onDrop();
2019
2019
  return;
@@ -2035,7 +2035,7 @@ w.prototype = /** @lends Sortable.prototype */
2035
2035
  _(t, "mouseup", this._disableDelayedDrag), _(t, "touchend", this._disableDelayedDrag), _(t, "touchcancel", this._disableDelayedDrag), _(t, "pointerup", this._disableDelayedDrag), _(t, "pointercancel", this._disableDelayedDrag), _(t, "mousemove", this._delayedDragTouchMoveHandler), _(t, "touchmove", this._delayedDragTouchMoveHandler), _(t, "pointermove", this._delayedDragTouchMoveHandler);
2036
2036
  },
2037
2037
  _triggerDragStart: function(t, e) {
2038
- e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? C(document, "pointermove", this._onTouchMove) : e ? C(document, "touchmove", this._onTouchMove) : C(document, "mousemove", this._onTouchMove) : (C(h, "dragend", this), C(V, "dragstart", this._onDragStart));
2038
+ e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? C(document, "pointermove", this._onTouchMove) : e ? C(document, "touchmove", this._onTouchMove) : C(document, "mousemove", this._onTouchMove) : (C(h, "dragend", this), C(k, "dragstart", this._onDragStart));
2039
2039
  try {
2040
2040
  document.selection ? qe(function() {
2041
2041
  document.selection.empty();
@@ -2044,10 +2044,10 @@ w.prototype = /** @lends Sortable.prototype */
2044
2044
  }
2045
2045
  },
2046
2046
  _dragStarted: function(t, e) {
2047
- if (ne = !1, V && h) {
2047
+ if (oe = !1, k && h) {
2048
2048
  ht("dragStarted", this, {
2049
2049
  evt: e
2050
- }), this.nativeDraggable && C(document, "dragover", Ds);
2050
+ }), this.nativeDraggable && C(document, "dragover", Ps);
2051
2051
  var n = this.options;
2052
2052
  !t && mt(h, n.dragClass, !1), mt(h, n.ghostClass, !0), w.active = this, t && this._appendGhost(), at({
2053
2053
  sortable: this,
@@ -2059,7 +2059,7 @@ w.prototype = /** @lends Sortable.prototype */
2059
2059
  },
2060
2060
  _emulateDragOver: function() {
2061
2061
  if (wt) {
2062
- this._lastX = wt.clientX, this._lastY = wt.clientY, $r();
2062
+ this._lastX = wt.clientX, this._lastY = wt.clientY, Er();
2063
2063
  for (var t = document.elementFromPoint(wt.clientX, wt.clientY), e = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(wt.clientX, wt.clientY), t !== e); )
2064
2064
  e = t;
2065
2065
  if (h.parentNode[ft]._isOutsideThisEl(t), e)
@@ -2080,15 +2080,15 @@ w.prototype = /** @lends Sortable.prototype */
2080
2080
  }
2081
2081
  },
2082
2082
  _onTouchMove: function(t) {
2083
- if (qt) {
2084
- var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t, s = E && ae(E, !0), a = E && s && s.a, l = E && s && s.d, d = ke && ot && Mn(ot), u = (o.clientX - qt.clientX + r.x) / (a || 1) + (d ? d[0] - ki[0] : 0) / (a || 1), c = (o.clientY - qt.clientY + r.y) / (l || 1) + (d ? d[1] - ki[1] : 0) / (l || 1);
2085
- if (!w.active && !ne) {
2083
+ if (Yt) {
2084
+ var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t, s = $ && de($, !0), a = $ && s && s.a, l = $ && s && s.d, d = Be && ot && Mn(ot), u = (o.clientX - Yt.clientX + r.x) / (a || 1) + (d ? d[0] - Vi[0] : 0) / (a || 1), c = (o.clientY - Yt.clientY + r.y) / (l || 1) + (d ? d[1] - Vi[1] : 0) / (l || 1);
2085
+ if (!w.active && !oe) {
2086
2086
  if (n && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < n)
2087
2087
  return;
2088
2088
  this._onDragStart(t, !0);
2089
2089
  }
2090
- if (E) {
2091
- s ? (s.e += u - (Hi || 0), s.f += c - (Vi || 0)) : s = {
2090
+ if ($) {
2091
+ s ? (s.e += u - (Hi || 0), s.f += c - (ki || 0)) : s = {
2092
2092
  a: 1,
2093
2093
  b: 0,
2094
2094
  c: 0,
@@ -2097,20 +2097,20 @@ w.prototype = /** @lends Sortable.prototype */
2097
2097
  f: c
2098
2098
  };
2099
2099
  var p = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
2100
- v(E, "webkitTransform", p), v(E, "mozTransform", p), v(E, "msTransform", p), v(E, "transform", p), Hi = u, Vi = c, wt = o;
2100
+ v($, "webkitTransform", p), v($, "mozTransform", p), v($, "msTransform", p), v($, "transform", p), Hi = u, ki = c, wt = o;
2101
2101
  }
2102
2102
  t.cancelable && t.preventDefault();
2103
2103
  }
2104
2104
  },
2105
2105
  _appendGhost: function() {
2106
- if (!E) {
2107
- var t = this.options.fallbackOnBody ? document.body : V, e = W(h, !0, ke, !0, t), n = this.options;
2108
- if (ke) {
2106
+ if (!$) {
2107
+ var t = this.options.fallbackOnBody ? document.body : k, e = W(h, !0, Be, !0, t), n = this.options;
2108
+ if (Be) {
2109
2109
  for (ot = t; v(ot, "position") === "static" && v(ot, "transform") === "none" && ot !== document; )
2110
2110
  ot = ot.parentNode;
2111
- ot !== document.body && ot !== document.documentElement ? (ot === document && (ot = $t()), e.top += ot.scrollTop, e.left += ot.scrollLeft) : ot = $t(), ki = Mn(ot);
2111
+ ot !== document.body && ot !== document.documentElement ? (ot === document && (ot = Et()), e.top += ot.scrollTop, e.left += ot.scrollLeft) : ot = Et(), Vi = Mn(ot);
2112
2112
  }
2113
- E = h.cloneNode(!0), mt(E, n.ghostClass, !1), mt(E, n.fallbackClass, !0), mt(E, n.dragClass, !0), v(E, "transition", ""), v(E, "transform", ""), v(E, "box-sizing", "border-box"), v(E, "margin", 0), v(E, "top", e.top), v(E, "left", e.left), v(E, "width", e.width), v(E, "height", e.height), v(E, "opacity", "0.8"), v(E, "position", ke ? "absolute" : "fixed"), v(E, "zIndex", "100000"), v(E, "pointerEvents", "none"), w.ghost = E, t.appendChild(E), v(E, "transform-origin", In / parseInt(E.style.width) * 100 + "% " + Nn / parseInt(E.style.height) * 100 + "%");
2113
+ $ = h.cloneNode(!0), mt($, n.ghostClass, !1), mt($, n.fallbackClass, !0), mt($, n.dragClass, !0), v($, "transition", ""), v($, "transform", ""), v($, "box-sizing", "border-box"), v($, "margin", 0), v($, "top", e.top), v($, "left", e.left), v($, "width", e.width), v($, "height", e.height), v($, "opacity", "0.8"), v($, "position", Be ? "absolute" : "fixed"), v($, "zIndex", "100000"), v($, "pointerEvents", "none"), w.ghost = $, t.appendChild($), v($, "transform-origin", In / parseInt($.style.width) * 100 + "% " + Nn / parseInt($.style.height) * 100 + "%");
2114
2114
  }
2115
2115
  },
2116
2116
  _onDragStart: function(t, e) {
@@ -2121,18 +2121,18 @@ w.prototype = /** @lends Sortable.prototype */
2121
2121
  this._onDrop();
2122
2122
  return;
2123
2123
  }
2124
- ht("setupClone", this), w.eventCanceled || (B = br(h), B.removeAttribute("id"), B.draggable = !1, B.style["will-change"] = "", this._hideClone(), mt(B, this.options.chosenClass, !1), w.clone = B), n.cloneId = qe(function() {
2125
- ht("clone", n), !w.eventCanceled && (n.options.removeCloneOnHide || V.insertBefore(B, h), n._hideClone(), at({
2124
+ ht("setupClone", this), w.eventCanceled || (U = br(h), U.removeAttribute("id"), U.draggable = !1, U.style["will-change"] = "", this._hideClone(), mt(U, this.options.chosenClass, !1), w.clone = U), n.cloneId = qe(function() {
2125
+ ht("clone", n), !w.eventCanceled && (n.options.removeCloneOnHide || k.insertBefore(U, h), n._hideClone(), at({
2126
2126
  sortable: n,
2127
2127
  name: "clone"
2128
2128
  }));
2129
- }), !e && mt(h, o.dragClass, !0), e ? (Qe = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (_(document, "mouseup", n._onDrop), _(document, "touchend", n._onDrop), _(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, h)), C(document, "drop", n), v(h, "transform", "translateZ(0)")), ne = !0, n._dragStartId = qe(n._dragStarted.bind(n, e, t)), C(document, "selectstart", n), ge = !0, window.getSelection().removeAllRanges(), we && v(document.body, "user-select", "none");
2129
+ }), !e && mt(h, o.dragClass, !0), e ? (Qe = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (_(document, "mouseup", n._onDrop), _(document, "touchend", n._onDrop), _(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, h)), C(document, "drop", n), v(h, "transform", "translateZ(0)")), oe = !0, n._dragStartId = qe(n._dragStarted.bind(n, e, t)), C(document, "selectstart", n), me = !0, window.getSelection().removeAllRanges(), xe && v(document.body, "user-select", "none");
2130
2130
  },
2131
2131
  // Returns true - if no further action is needed (either inserted or another condition)
2132
2132
  _onDragOver: function(t) {
2133
- var e = this.el, n = t.target, r, o, s, a = this.options, l = a.group, d = w.active, u = He === l, c = a.sort, p = et || d, f, g = this, b = !1;
2133
+ var e = this.el, n = t.target, r, o, s, a = this.options, l = a.group, d = w.active, u = ke === l, c = a.sort, p = et || d, f, g = this, b = !1;
2134
2134
  if (Xi) return;
2135
- function N(gt, Ut) {
2135
+ function N(gt, jt) {
2136
2136
  ht(gt, g, St({
2137
2137
  evt: t,
2138
2138
  isOwner: u,
@@ -2143,80 +2143,80 @@ w.prototype = /** @lends Sortable.prototype */
2143
2143
  canSort: c,
2144
2144
  fromSortable: p,
2145
2145
  target: n,
2146
- completed: U,
2147
- onMove: function(Ft, At) {
2148
- return Be(V, e, h, r, Ft, W(Ft), t, At);
2146
+ completed: F,
2147
+ onMove: function(zt, At) {
2148
+ return Ue(k, e, h, r, zt, W(zt), t, At);
2149
2149
  },
2150
2150
  changed: st
2151
- }, Ut));
2151
+ }, jt));
2152
2152
  }
2153
2153
  function J() {
2154
2154
  N("dragOverAnimationCapture"), g.captureAnimationState(), g !== p && p.captureAnimationState();
2155
2155
  }
2156
- function U(gt) {
2156
+ function F(gt) {
2157
2157
  return N("dragOverCompleted", {
2158
2158
  insertion: gt
2159
2159
  }), gt && (u ? d._hideClone() : d._showClone(g), g !== p && (mt(h, et ? et.options.ghostClass : d.options.ghostClass, !1), mt(h, a.ghostClass, !0)), et !== g && g !== w.active ? et = g : g === w.active && et && (et = null), p === g && (g._ignoreWhileAnimating = n), g.animateAll(function() {
2160
2160
  N("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
2161
- }), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (ee = null), !a.dragoverBubble && !t.rootEl && n !== document && (h.parentNode[ft]._isOutsideThisEl(t.target), !gt && Xt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), b = !0;
2161
+ }), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (ne = null), !a.dragoverBubble && !t.rootEl && n !== document && (h.parentNode[ft]._isOutsideThisEl(t.target), !gt && Wt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), b = !0;
2162
2162
  }
2163
2163
  function st() {
2164
- yt = bt(h), It = bt(h, a.draggable), at({
2164
+ yt = bt(h), Nt = bt(h, a.draggable), at({
2165
2165
  sortable: g,
2166
2166
  name: "change",
2167
2167
  toEl: e,
2168
2168
  newIndex: yt,
2169
- newDraggableIndex: It,
2169
+ newDraggableIndex: Nt,
2170
2170
  originalEvent: t
2171
2171
  });
2172
2172
  }
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
- return U(!1);
2176
- if (Qe = !1, d && !a.disabled && (u ? c || (s = z !== V) : et === this || (this.lastPutMode = He.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
2175
+ return F(!1);
2176
+ if (Qe = !1, d && !a.disabled && (u ? c || (s = z !== k) : et === this || (this.lastPutMode = ke.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
2177
2177
  if (f = this._getDirection(t, n) === "vertical", r = 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 = k, J(), this._hideClone(), N("revert"), w.eventCanceled || (Gt ? k.insertBefore(h, Gt) : k.appendChild(h)), F(!0);
2180
2180
  var K = un(e, a.draggable);
2181
- if (!K || Rs(t, f, this) && !K.animated) {
2181
+ if (!K || Ms(t, f, this) && !K.animated) {
2182
2182
  if (K === h)
2183
- return U(!1);
2184
- if (K && e === t.target && (n = K), n && (o = W(n)), Be(V, e, h, r, n, o, 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 && Ls(t, f, this)) {
2187
- var $ = de(e, 0, a, !0);
2188
- if ($ === h)
2189
- return U(!1);
2190
- if (n = $, o = W(n), Be(V, e, h, r, n, o, t, !1) !== !1)
2191
- return J(), e.insertBefore(h, $), z = e, st(), U(!0);
2183
+ return F(!1);
2184
+ if (K && e === t.target && (n = K), n && (o = W(n)), Ue(k, e, h, r, n, o, t, !!n) !== !1)
2185
+ return J(), K && K.nextSibling ? e.insertBefore(h, K.nextSibling) : e.appendChild(h), z = e, st(), F(!0);
2186
+ } else if (K && Rs(t, f, this)) {
2187
+ var E = ue(e, 0, a, !0);
2188
+ if (E === h)
2189
+ return F(!1);
2190
+ if (n = E, o = W(n), Ue(k, e, h, r, n, o, t, !1) !== !1)
2191
+ return J(), e.insertBefore(h, E), z = e, st(), F(!0);
2192
2192
  } else if (n.parentNode === e) {
2193
2193
  o = W(n);
2194
- var m = 0, A, M = h.parentNode !== e, L = !Cs(h.animated && h.toRect || r, n.animated && n.toRect || o, f), q = f ? "top" : "left", X = Rn(n, "top", "top") || Rn(h, "top", "top"), H = X ? X.scrollTop : void 0;
2195
- ee !== n && (A = o[q], Se = !1, Ve = !L && a.invertSwap || M), m = Ms(t, n, o, f, L ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ve, ee === n);
2194
+ var m = 0, A, M = h.parentNode !== e, O = !Ts(h.animated && h.toRect || r, n.animated && n.toRect || o, f), q = f ? "top" : "left", X = Rn(n, "top", "top") || Rn(h, "top", "top"), H = X ? X.scrollTop : void 0;
2195
+ ne !== n && (A = o[q], Ae = !1, Ve = !O && a.invertSwap || M), m = Is(t, n, o, f, O ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ve, ne === n);
2196
2196
  var R;
2197
2197
  if (m !== 0) {
2198
2198
  var Z = bt(h);
2199
2199
  do
2200
2200
  Z -= m, R = z.children[Z];
2201
- while (R && (v(R, "display") === "none" || R === E));
2201
+ while (R && (v(R, "display") === "none" || R === $));
2202
2202
  }
2203
2203
  if (m === 0 || R === n)
2204
- return U(!1);
2205
- ee = n, $e = m;
2204
+ return F(!1);
2205
+ ne = n, Se = m;
2206
2206
  var dt = n.nextElementSibling, tt = !1;
2207
2207
  tt = m === 1;
2208
- var ct = Be(V, e, h, r, n, o, t, tt);
2208
+ var ct = Ue(k, e, h, r, n, o, t, tt);
2209
2209
  if (ct !== !1)
2210
- return (ct === 1 || ct === -1) && (tt = ct === 1), Xi = !0, setTimeout(Os, 30), J(), tt && !dt ? e.appendChild(h) : n.parentNode.insertBefore(h, tt ? dt : n), X && yr(X, 0, H - X.scrollTop), z = h.parentNode, A !== void 0 && !Ve && (Ze = Math.abs(A - W(n)[q])), st(), U(!0);
2210
+ return (ct === 1 || ct === -1) && (tt = ct === 1), Xi = !0, setTimeout(Os, 30), J(), tt && !dt ? e.appendChild(h) : n.parentNode.insertBefore(h, tt ? dt : n), X && yr(X, 0, H - X.scrollTop), z = h.parentNode, A !== void 0 && !Ve && (Ze = Math.abs(A - W(n)[q])), st(), F(!0);
2211
2211
  }
2212
2212
  if (e.contains(h))
2213
- return U(!1);
2213
+ return F(!1);
2214
2214
  }
2215
2215
  return !1;
2216
2216
  },
2217
2217
  _ignoreWhileAnimating: null,
2218
2218
  _offMoveEvents: function() {
2219
- _(document, "mousemove", this._onTouchMove), _(document, "touchmove", this._onTouchMove), _(document, "pointermove", this._onTouchMove), _(document, "dragover", Xt), _(document, "mousemove", Xt), _(document, "touchmove", Xt);
2219
+ _(document, "mousemove", this._onTouchMove), _(document, "touchmove", this._onTouchMove), _(document, "pointermove", this._onTouchMove), _(document, "dragover", Wt), _(document, "mousemove", Wt), _(document, "touchmove", Wt);
2220
2220
  },
2221
2221
  _offUpEvents: function() {
2222
2222
  var t = this.el.ownerDocument;
@@ -2224,24 +2224,24 @@ w.prototype = /** @lends Sortable.prototype */
2224
2224
  },
2225
2225
  _onDrop: function(t) {
2226
2226
  var e = this.el, n = this.options;
2227
- if (yt = bt(h), It = bt(h, n.draggable), ht("drop", this, {
2227
+ if (yt = bt(h), Nt = 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), Nt = 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 && (_(document, "drop", this), _(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") && B && B.parentNode && B.parentNode.removeChild(B), h && (this.nativeDraggable && _(h, "dragend", this), Bi(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
+ oe = !1, Ve = !1, Ae = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Yi(this.cloneId), Yi(this._dragStartId), this.nativeDraggable && (_(document, "drop", this), _(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), xe && v(document.body, "user-select", ""), v(h, "transform", ""), t && (me && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), $ && $.parentNode && $.parentNode.removeChild($), (k === z || et && et.lastPutMode !== "clone") && U && U.parentNode && U.parentNode.removeChild(U), h && (this.nativeDraggable && _(h, "dragend", this), Bi(h), h.style["will-change"] = "", me && !oe && 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
2236
  toEl: z,
2237
2237
  newIndex: null,
2238
2238
  newDraggableIndex: null,
2239
2239
  originalEvent: t
2240
- }), V !== z ? (yt >= 0 && (at({
2240
+ }), k !== z ? (yt >= 0 && (at({
2241
2241
  rootEl: z,
2242
2242
  name: "add",
2243
2243
  toEl: z,
2244
- fromEl: V,
2244
+ fromEl: k,
2245
2245
  originalEvent: t
2246
2246
  }), at({
2247
2247
  sortable: this,
@@ -2252,14 +2252,14 @@ w.prototype = /** @lends Sortable.prototype */
2252
2252
  rootEl: z,
2253
2253
  name: "sort",
2254
2254
  toEl: z,
2255
- fromEl: V,
2255
+ fromEl: k,
2256
2256
  originalEvent: t
2257
2257
  }), at({
2258
2258
  sortable: this,
2259
2259
  name: "sort",
2260
2260
  toEl: z,
2261
2261
  originalEvent: t
2262
- })), et && et.save()) : yt !== se && yt >= 0 && (at({
2262
+ })), et && et.save()) : yt !== le && yt >= 0 && (at({
2263
2263
  sortable: this,
2264
2264
  name: "update",
2265
2265
  toEl: z,
@@ -2269,7 +2269,7 @@ w.prototype = /** @lends Sortable.prototype */
2269
2269
  name: "sort",
2270
2270
  toEl: z,
2271
2271
  originalEvent: t
2272
- })), w.active && ((yt == null || yt === -1) && (yt = se, It = Ee), at({
2272
+ })), w.active && ((yt == null || yt === -1) && (yt = le, Nt = Ee), at({
2273
2273
  sortable: this,
2274
2274
  name: "end",
2275
2275
  toEl: z,
@@ -2277,9 +2277,9 @@ w.prototype = /** @lends Sortable.prototype */
2277
2277
  }), this.save()))), this._nulling();
2278
2278
  },
2279
2279
  _nulling: function() {
2280
- ht("nulling", this), V = h = z = E = Yt = B = 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), k = h = z = $ = Gt = U = ze = Ht = Yt = wt = me = yt = Nt = le = Ee = ne = Se = et = ke = w.dragged = w.ghost = w.clone = w.active = null, ei.forEach(function(t) {
2281
2281
  t.checked = !0;
2282
- }), ei.length = Hi = Vi = 0;
2282
+ }), ei.length = Hi = ki = 0;
2283
2283
  },
2284
2284
  handleEvent: function(t) {
2285
2285
  switch (t.type) {
@@ -2289,7 +2289,7 @@ w.prototype = /** @lends Sortable.prototype */
2289
2289
  break;
2290
2290
  case "dragenter":
2291
2291
  case "dragover":
2292
- h && (this._onDragOver(t), Ps(t));
2292
+ h && (this._onDragOver(t), Ls(t));
2293
2293
  break;
2294
2294
  case "selectstart":
2295
2295
  t.preventDefault();
@@ -2302,7 +2302,7 @@ w.prototype = /** @lends Sortable.prototype */
2302
2302
  */
2303
2303
  toArray: function() {
2304
2304
  for (var t = [], e, n = this.el.children, r = 0, o = n.length, s = this.options; r < o; r++)
2305
- e = n[r], xt(e, s.draggable, this.el, !1) && t.push(e.getAttribute(s.dataIdAttr) || Ns(e));
2305
+ e = n[r], xt(e, s.draggable, this.el, !1) && t.push(e.getAttribute(s.dataIdAttr) || Hs(e));
2306
2306
  return t;
2307
2307
  },
2308
2308
  /**
@@ -2344,8 +2344,8 @@ w.prototype = /** @lends Sortable.prototype */
2344
2344
  var n = this.options;
2345
2345
  if (e === void 0)
2346
2346
  return n[t];
2347
- var r = Me.modifyOption(this, t, e);
2348
- typeof r < "u" ? n[t] = r : n[t] = e, t === "group" && Er(n);
2347
+ var r = Ie.modifyOption(this, t, e);
2348
+ typeof r < "u" ? n[t] = r : n[t] = e, t === "group" && $r(n);
2349
2349
  },
2350
2350
  /**
2351
2351
  * Destroy
@@ -2358,9 +2358,9 @@ w.prototype = /** @lends Sortable.prototype */
2358
2358
  }), this._onDrop(), this._disableDelayedDragEvents(), ti.splice(ti.indexOf(this.el), 1), this.el = t = null;
2359
2359
  },
2360
2360
  _hideClone: function() {
2361
- if (!Nt) {
2361
+ if (!Ht) {
2362
2362
  if (ht("hideClone", this), w.eventCanceled) return;
2363
- v(B, "display", "none"), this.options.removeCloneOnHide && B.parentNode && B.parentNode.removeChild(B), Nt = !0;
2363
+ v(U, "display", "none"), this.options.removeCloneOnHide && U.parentNode && U.parentNode.removeChild(U), Ht = !0;
2364
2364
  }
2365
2365
  },
2366
2366
  _showClone: function(t) {
@@ -2368,18 +2368,18 @@ w.prototype = /** @lends Sortable.prototype */
2368
2368
  this._hideClone();
2369
2369
  return;
2370
2370
  }
2371
- if (Nt) {
2371
+ if (Ht) {
2372
2372
  if (ht("showClone", this), w.eventCanceled) return;
2373
- h.parentNode == V && !this.options.group.revertClone ? V.insertBefore(B, h) : Yt ? V.insertBefore(B, Yt) : V.appendChild(B), this.options.group.revertClone && this.animate(h, B), v(B, "display", ""), Nt = !1;
2373
+ h.parentNode == k && !this.options.group.revertClone ? k.insertBefore(U, h) : Gt ? k.insertBefore(U, Gt) : k.appendChild(U), this.options.group.revertClone && this.animate(h, U), v(U, "display", ""), Ht = !1;
2374
2374
  }
2375
2375
  }
2376
2376
  };
2377
- function Ps(i) {
2377
+ function Ls(i) {
2378
2378
  i.dataTransfer && (i.dataTransfer.dropEffect = "move"), i.cancelable && i.preventDefault();
2379
2379
  }
2380
- function Be(i, t, e, n, r, o, s, a) {
2380
+ function Ue(i, t, e, n, r, o, s, a) {
2381
2381
  var l, d = i[ft], u = d.options.onMove, c;
2382
- return window.CustomEvent && !Lt && !Re ? l = new CustomEvent("move", {
2382
+ return window.CustomEvent && !Ot && !Me ? 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 = r || t, l.relatedRect = o || W(t), l.willInsertAfter = a, l.originalEvent = s, i.dispatchEvent(l), u && (c = u.call(d, l, s)), c;
@@ -2390,36 +2390,36 @@ function Bi(i) {
2390
2390
  function Os() {
2391
2391
  Xi = !1;
2392
2392
  }
2393
- function Ls(i, t, e) {
2394
- var n = W(de(e.el, 0, e.options, !0)), r = vr(e.el, e.options, E), o = 10;
2393
+ function Rs(i, t, e) {
2394
+ var n = W(ue(e.el, 0, e.options, !0)), r = vr(e.el, e.options, $), o = 10;
2395
2395
  return t ? i.clientX < r.left - o || i.clientY < n.top && i.clientX < n.right : i.clientY < r.top - o || i.clientY < n.bottom && i.clientX < n.left;
2396
2396
  }
2397
- function Rs(i, t, e) {
2398
- var n = W(un(e.el, e.options.draggable)), r = vr(e.el, e.options, E), o = 10;
2397
+ function Ms(i, t, e) {
2398
+ var n = W(un(e.el, e.options.draggable)), r = vr(e.el, e.options, $), o = 10;
2399
2399
  return t ? i.clientX > r.right + o || i.clientY > n.bottom && i.clientX > n.left : i.clientY > r.bottom + o || i.clientX > n.right && i.clientY > n.top;
2400
2400
  }
2401
- function Ms(i, t, e, n, r, o, s, a) {
2401
+ function Is(i, t, e, n, r, o, s, a) {
2402
2402
  var l = n ? i.clientY : i.clientX, d = n ? e.height : e.width, u = n ? e.top : e.left, c = n ? e.bottom : e.right, p = !1;
2403
2403
  if (!s) {
2404
2404
  if (a && Ze < d * r) {
2405
- if (!Se && ($e === 1 ? l > u + d * o / 2 : l < c - d * o / 2) && (Se = !0), Se)
2405
+ if (!Ae && (Se === 1 ? l > u + d * o / 2 : l < c - d * o / 2) && (Ae = !0), Ae)
2406
2406
  p = !0;
2407
- else if ($e === 1 ? l < u + Ze : l > c - Ze)
2408
- return -$e;
2407
+ else if (Se === 1 ? l < u + Ze : l > c - Ze)
2408
+ return -Se;
2409
2409
  } else if (l > u + d * (1 - r) / 2 && l < c - d * (1 - r) / 2)
2410
- return Is(t);
2410
+ return Ns(t);
2411
2411
  }
2412
2412
  return p = p || s, p && (l < u + d * o / 2 || l > c - d * o / 2) ? l > u + d / 2 ? 1 : -1 : 0;
2413
2413
  }
2414
- function Is(i) {
2414
+ function Ns(i) {
2415
2415
  return bt(h) < bt(i) ? 1 : -1;
2416
2416
  }
2417
- function Ns(i) {
2417
+ function Hs(i) {
2418
2418
  for (var t = i.tagName + i.className + i.src + i.href + i.textContent, e = t.length, n = 0; e--; )
2419
2419
  n += t.charCodeAt(e);
2420
2420
  return n.toString(36);
2421
2421
  }
2422
- function Hs(i) {
2422
+ function ks(i) {
2423
2423
  ei.length = 0;
2424
2424
  for (var t = i.getElementsByTagName("input"), e = t.length; e--; ) {
2425
2425
  var n = t[e];
@@ -2433,7 +2433,7 @@ function Yi(i) {
2433
2433
  return clearTimeout(i);
2434
2434
  }
2435
2435
  Ai && C(document, "touchmove", function(i) {
2436
- (w.active || ne) && i.cancelable && i.preventDefault();
2436
+ (w.active || oe) && i.cancelable && i.preventDefault();
2437
2437
  });
2438
2438
  w.utils = {
2439
2439
  on: C,
@@ -2443,7 +2443,7 @@ w.utils = {
2443
2443
  is: function(t, e) {
2444
2444
  return !!xt(t, e, t, !1);
2445
2445
  },
2446
- extend: vs,
2446
+ extend: ws,
2447
2447
  throttle: mr,
2448
2448
  closest: xt,
2449
2449
  toggleClass: mt,
@@ -2452,7 +2452,7 @@ w.utils = {
2452
2452
  nextTick: qe,
2453
2453
  cancelNextTick: Yi,
2454
2454
  detectDirection: xr,
2455
- getChild: de,
2455
+ getChild: ue,
2456
2456
  expando: ft
2457
2457
  };
2458
2458
  w.get = function(i) {
@@ -2464,14 +2464,14 @@ w.mount = function() {
2464
2464
  t[0].constructor === Array && (t = t[0]), t.forEach(function(n) {
2465
2465
  if (!n.prototype || !n.prototype.constructor)
2466
2466
  throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
2467
- n.utils && (w.utils = St(St({}, w.utils), n.utils)), Me.mount(n);
2467
+ n.utils && (w.utils = St(St({}, w.utils), n.utils)), Ie.mount(n);
2468
2468
  });
2469
2469
  };
2470
2470
  w.create = function(i, t) {
2471
2471
  return new w(i, t);
2472
2472
  };
2473
- w.version = ys;
2474
- var Y = [], me, Wi, Gi = !1, Ui, Fi, ii, ye;
2473
+ w.version = bs;
2474
+ var Y = [], ye, Wi, Gi = !1, Ui, Fi, ii, be;
2475
2475
  function Vs() {
2476
2476
  function i() {
2477
2477
  this.defaults = {
@@ -2494,32 +2494,32 @@ function Vs() {
2494
2494
  !this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
2495
2495
  },
2496
2496
  drop: function() {
2497
- this.sortable.nativeDraggable ? _(document, "dragover", this._handleAutoScroll) : (_(document, "pointermove", this._handleFallbackAutoScroll), _(document, "touchmove", this._handleFallbackAutoScroll), _(document, "mousemove", this._handleFallbackAutoScroll)), Vn(), Xe(), ws();
2497
+ this.sortable.nativeDraggable ? _(document, "dragover", this._handleAutoScroll) : (_(document, "pointermove", this._handleFallbackAutoScroll), _(document, "touchmove", this._handleFallbackAutoScroll), _(document, "mousemove", this._handleFallbackAutoScroll)), kn(), Xe(), xs();
2498
2498
  },
2499
2499
  nulling: function() {
2500
- ii = Wi = me = Gi = ye = Ui = Fi = null, Y.length = 0;
2500
+ ii = Wi = ye = Gi = be = Ui = Fi = null, Y.length = 0;
2501
2501
  },
2502
2502
  _handleFallbackAutoScroll: function(e) {
2503
2503
  this._handleAutoScroll(e, !0);
2504
2504
  },
2505
2505
  _handleAutoScroll: function(e, n) {
2506
2506
  var r = this, o = (e.touches ? e.touches[0] : e).clientX, s = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(o, s);
2507
- if (ii = e, n || this.options.forceAutoScrollFallback || Re || Lt || we) {
2507
+ if (ii = e, n || this.options.forceAutoScrollFallback || Me || Ot || xe) {
2508
2508
  ji(e, this.options, a, n);
2509
2509
  var l = Vt(a, !0);
2510
- Gi && (!ye || o !== Ui || s !== Fi) && (ye && Vn(), ye = setInterval(function() {
2510
+ Gi && (!be || o !== Ui || s !== Fi) && (be && kn(), be = setInterval(function() {
2511
2511
  var d = Vt(document.elementFromPoint(o, s), !0);
2512
2512
  d !== l && (l = d, Xe()), ji(e, r.options, d, n);
2513
2513
  }, 10), Ui = o, Fi = s);
2514
2514
  } else {
2515
- if (!this.options.bubbleScroll || Vt(a, !0) === $t()) {
2515
+ if (!this.options.bubbleScroll || Vt(a, !0) === Et()) {
2516
2516
  Xe();
2517
2517
  return;
2518
2518
  }
2519
2519
  ji(e, this.options, Vt(a, !1), !1);
2520
2520
  }
2521
2521
  }
2522
- }, Ot(i, {
2522
+ }, Lt(i, {
2523
2523
  pluginName: "scroll",
2524
2524
  initializeByDefault: !0
2525
2525
  });
@@ -2529,18 +2529,18 @@ function Xe() {
2529
2529
  clearInterval(i.pid);
2530
2530
  }), Y = [];
2531
2531
  }
2532
- function Vn() {
2533
- clearInterval(ye);
2532
+ function kn() {
2533
+ clearInterval(be);
2534
2534
  }
2535
2535
  var ji = mr(function(i, t, e, n) {
2536
2536
  if (t.scroll) {
2537
- var r = (i.touches ? i.touches[0] : i).clientX, o = (i.touches ? i.touches[0] : i).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = $t(), d = !1, u;
2538
- Wi !== e && (Wi = e, Xe(), me = t.scroll, u = t.scrollFn, me === !0 && (me = Vt(e, !0)));
2539
- var c = 0, p = me;
2537
+ var r = (i.touches ? i.touches[0] : i).clientX, o = (i.touches ? i.touches[0] : i).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = Et(), d = !1, u;
2538
+ Wi !== e && (Wi = e, Xe(), ye = t.scroll, u = t.scrollFn, ye === !0 && (ye = Vt(e, !0)));
2539
+ var c = 0, p = ye;
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, A = f.scrollWidth, M = f.scrollHeight, L = v(f), q = f.scrollLeft, X = f.scrollTop;
2542
- f === l ? ($ = st < A && (L.overflowX === "auto" || L.overflowX === "scroll" || L.overflowX === "visible"), m = K < M && (L.overflowY === "auto" || L.overflowY === "scroll" || L.overflowY === "visible")) : ($ = st < A && (L.overflowX === "auto" || L.overflowX === "scroll"), m = K < M && (L.overflowY === "auto" || L.overflowY === "scroll"));
2543
- var H = $ && (Math.abs(U - r) <= s && q + st < A) - (Math.abs(J - r) <= s && !!q), R = m && (Math.abs(N - o) <= s && X + K < M) - (Math.abs(b - o) <= s && !!X);
2541
+ var f = p, g = W(f), b = g.top, N = g.bottom, J = g.left, F = g.right, st = g.width, K = g.height, E = void 0, m = void 0, A = f.scrollWidth, M = f.scrollHeight, O = v(f), q = f.scrollLeft, X = f.scrollTop;
2542
+ f === l ? (E = st < A && (O.overflowX === "auto" || O.overflowX === "scroll" || O.overflowX === "visible"), m = K < M && (O.overflowY === "auto" || O.overflowY === "scroll" || O.overflowY === "visible")) : (E = st < A && (O.overflowX === "auto" || O.overflowX === "scroll"), m = K < M && (O.overflowY === "auto" || O.overflowY === "scroll"));
2543
+ var H = E && (Math.abs(F - r) <= s && q + st < A) - (Math.abs(J - r) <= s && !!q), R = m && (Math.abs(N - o) <= s && X + K < M) - (Math.abs(b - o) <= s && !!X);
2544
2544
  if (!Y[c])
2545
2545
  for (var Z = 0; Z <= c; Z++)
2546
2546
  Y[Z] || (Y[Z] = {});
@@ -2577,12 +2577,12 @@ hn.prototype = {
2577
2577
  onSpill: function(t) {
2578
2578
  var e = t.dragEl, n = t.putSortable;
2579
2579
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
2580
- var r = de(this.sortable.el, this.startIndex, this.options);
2580
+ var r = ue(this.sortable.el, this.startIndex, this.options);
2581
2581
  r ? this.sortable.el.insertBefore(e, r) : this.sortable.el.appendChild(e), this.sortable.animateAll(), n && n.animateAll();
2582
2582
  },
2583
2583
  drop: Ar
2584
2584
  };
2585
- Ot(hn, {
2585
+ Lt(hn, {
2586
2586
  pluginName: "revertOnSpill"
2587
2587
  });
2588
2588
  function pn() {
@@ -2594,18 +2594,18 @@ pn.prototype = {
2594
2594
  },
2595
2595
  drop: Ar
2596
2596
  };
2597
- Ot(pn, {
2597
+ Lt(pn, {
2598
2598
  pluginName: "removeOnSpill"
2599
2599
  });
2600
2600
  w.mount(new Vs());
2601
2601
  w.mount(pn, hn);
2602
- const ks = (i) => {
2602
+ const Bs = (i) => {
2603
2603
  const t = i.item;
2604
2604
  let e = Array.prototype.slice.call(t.parentNode.childNodes);
2605
2605
  return e = e.filter(
2606
2606
  (n) => n.nodeType != Node.ELEMENT_NODE || !n.classList.contains("sortable-fallback")
2607
2607
  ), e;
2608
- }, Bs = (i, t, e, n, r, o) => {
2608
+ }, Us = (i, t, e, n, r, o) => {
2609
2609
  const a = i.item.parentNode;
2610
2610
  for (const b of e)
2611
2611
  a.appendChild(b);
@@ -2629,7 +2629,7 @@ const ks = (i) => {
2629
2629
  }
2630
2630
  t.requestUpdate();
2631
2631
  };
2632
- function Us(i, t, e, n) {
2632
+ function Fs(i, t, e, n) {
2633
2633
  let r = [], o = null;
2634
2634
  i._sortable = w.create(i, {
2635
2635
  handle: ".drag-handle",
@@ -2637,14 +2637,14 @@ function Us(i, t, e, n) {
2637
2637
  swapThreshold: 0.5,
2638
2638
  animation: 150,
2639
2639
  easing: "cubic-bezier(1, 0, 0, 1)",
2640
- onStart: (s) => r = ks(s),
2640
+ onStart: (s) => r = Bs(s),
2641
2641
  onMove: (s) => {
2642
2642
  o = s.related;
2643
2643
  },
2644
- onEnd: (s) => Bs(s, n, r, t, e, o)
2644
+ onEnd: (s) => Us(s, n, r, t, e, o)
2645
2645
  });
2646
2646
  }
2647
- function Fs(i, t, e, n) {
2647
+ function js(i, t, e, n) {
2648
2648
  const r = i.getArray();
2649
2649
  let o = !1;
2650
2650
  r.forEach((s) => {
@@ -2674,7 +2674,7 @@ function fn(i, t, e) {
2674
2674
  };
2675
2675
  return r(i, t, e), n;
2676
2676
  }
2677
- function js(i, t, e) {
2677
+ function zs(i, t, e) {
2678
2678
  if (!i || !t) return !1;
2679
2679
  if (!_r(i, e)) return !0;
2680
2680
  const n = i.get("minZoom"), r = i.get("maxZoom"), o = t.getView().getZoom();
@@ -2684,20 +2684,20 @@ function _r(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 r, o, s;
2689
2689
  return !i || !t ? void 0 : i.getLayers ? "group" : ((s = (r = t.getInteractions().getArray().filter((a) => a.freehand_ !== void 0).map((a) => a.source_)) == null ? void 0 : r.ol_uid) == null ? void 0 : s.includes(
2690
2690
  // @ts-expect-error TODO
2691
2691
  i.getSource ? (o = i.getSource()) == null ? void 0 : o.ol_uid : void 0
2692
2692
  )) ? "draw" : i.declutter_ !== void 0 ? "vector" : "raster";
2693
2693
  }
2694
- const Zs = (i, t, e) => {
2694
+ const qs = (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
- (...r) => ps(n(...r), i)
2697
+ (...r) => fs(n(...r), i)
2698
2698
  ), e.layer.getSource().setKey(/* @__PURE__ */ new Date())), n;
2699
2699
  };
2700
- function qs(i, t, e) {
2700
+ function Xs(i, t, e) {
2701
2701
  const n = "updateStyleVariables" in t, r = "setStyle" in t, o = n ? (
2702
2702
  /** @type {import('ol/layer/WebGLTile').default} */
2703
2703
  t.style_
@@ -2711,7 +2711,7 @@ function qs(i, t, e) {
2711
2711
  }, n)
2712
2712
  t.updateStyleVariables(a);
2713
2713
  else if (r) {
2714
- const l = Xs(o);
2714
+ const l = Ys(o);
2715
2715
  t.setStyle(
2716
2716
  l
2717
2717
  );
@@ -2732,7 +2732,7 @@ const gn = (i) => {
2732
2732
  t[e] = i == null ? void 0 : i[e];
2733
2733
  return t;
2734
2734
  };
2735
- function Xs(i) {
2735
+ function Ys(i) {
2736
2736
  let t = i;
2737
2737
  if ("variables" in i) {
2738
2738
  let e = JSON.stringify(i);
@@ -2746,21 +2746,21 @@ function Xs(i) {
2746
2746
  }
2747
2747
  return t;
2748
2748
  }
2749
- const Ys = (i, t) => {
2750
- var e;
2751
- if (i)
2752
- return !("domainProperties" in i) || "domain" in i ? { ...i } : (e = Object.keys(i)) == null ? void 0 : e.reduce(
2753
- (n, r) => {
2754
- if (r === "domainProperties") {
2755
- const o = gn(t);
2756
- n.domain = i[r].map((s) => o[s]);
2757
- } else
2758
- n[r] = i[r];
2759
- return n;
2760
- },
2749
+ const Ws = (i, t) => {
2750
+ if (!i) return;
2751
+ let e;
2752
+ const n = gn(t);
2753
+ return Array.isArray(i) && i.length ? (e = i.find((r) => {
2754
+ const o = r.boundTo.key, s = r.boundTo.value;
2755
+ return n[o] == s;
2756
+ }), e || (e = i)) : e = i, Array.isArray(e) || (e = [e]), e.map((r) => {
2757
+ var o;
2758
+ return !("domainProperties" in r) || "domain" in r ? { ...r } : (o = Object.keys(r)) == null ? void 0 : o.reduce(
2759
+ (s, a) => (a === "domainProperties" ? s.domain = r[a].map((l) => n[l]) : s[a] = r[a], s),
2761
2760
  /** @type {import("../components/layer-legend").LegendConfig} */
2762
2761
  {}
2763
2762
  );
2763
+ });
2764
2764
  };
2765
2765
  function Cr(i, t) {
2766
2766
  var n;
@@ -2779,7 +2779,7 @@ function Cr(i, t) {
2779
2779
  }
2780
2780
  return e;
2781
2781
  }
2782
- function Ws(i, t) {
2782
+ function Gs(i, t) {
2783
2783
  var o, s, a, l, d;
2784
2784
  if (!t) return null;
2785
2785
  let e = {}, n = "updateStyleVariables" in i ? (
@@ -2798,14 +2798,14 @@ function Ws(i, t) {
2798
2798
  );
2799
2799
  return Object.keys(r).length ? r : null;
2800
2800
  }
2801
- const Gs = (i, t) => i == null ? void 0 : i.filter(
2801
+ const Js = (i, t) => i == null ? void 0 : i.filter(
2802
2802
  (e) => ["remove", "sort"].filter((n) => t != null && t.get("layerControlDisable") ? n !== "sort" : !0).includes(e)
2803
- ), Js = (i, t) => i == null ? void 0 : i.filter((e) => {
2803
+ ), Ks = (i, t) => i == null ? void 0 : i.filter((e) => {
2804
2804
  let n = !0;
2805
2805
  return ["remove", "sort"].includes(e) && (n = !1), e === "info" && (n = t.get("description")), e === "config" && (n = t.get("layerConfig")), e === "datetime" && (n = t.get("layerDatetime")), e === "legend" && (n = t.get("layerLegend")), n;
2806
- }), Ks = (i, t) => x`
2807
- <button slot="${i}-icon" class="icon">${t ? i : O}</button>
2808
- `, Qs = (i) => x`
2806
+ }), Qs = (i, t) => x`
2807
+ <button slot="${i}-icon" class="icon">${t ? i : L}</button>
2808
+ `, ta = (i) => x`
2809
2809
  <button
2810
2810
  class="remove-icon icon"
2811
2811
  @click=${() => {
@@ -2818,11 +2818,11 @@ const Gs = (i, t) => i == null ? void 0 : i.filter(
2818
2818
  );
2819
2819
  }}
2820
2820
  >
2821
- ${i.unstyled ? "x" : O}
2821
+ ${i.unstyled ? "x" : L}
2822
2822
  </button>
2823
- `, ta = (i) => x`
2823
+ `, ea = (i) => x`
2824
2824
  <span class="button sort-icon icon drag-handle">
2825
- ${i ? "═" : O}
2825
+ ${i ? "═" : L}
2826
2826
  </span>
2827
2827
  `, Tr = (i) => {
2828
2828
  var e;
@@ -2836,20 +2836,20 @@ const Gs = (i, t) => i == null ? void 0 : i.filter(
2836
2836
  */
2837
2837
  const Dr = sn(class extends an {
2838
2838
  constructor(i) {
2839
- if (super(i), i.type !== Mt.PROPERTY && i.type !== Mt.ATTRIBUTE && i.type !== Mt.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
2840
- if (!go(i)) throw Error("`live` bindings can only contain a single expression");
2839
+ if (super(i), i.type !== It.PROPERTY && i.type !== It.ATTRIBUTE && i.type !== It.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
2840
+ if (!mo(i)) throw Error("`live` bindings can only contain a single expression");
2841
2841
  }
2842
2842
  render(i) {
2843
2843
  return i;
2844
2844
  }
2845
2845
  update(i, [t]) {
2846
- if (t === vt || t === O) return t;
2846
+ if (t === vt || t === L) return t;
2847
2847
  const e = i.element, n = i.name;
2848
- if (i.type === Mt.PROPERTY) {
2848
+ if (i.type === It.PROPERTY) {
2849
2849
  if (t === e[n]) return vt;
2850
- } else if (i.type === Mt.BOOLEAN_ATTRIBUTE) {
2850
+ } else if (i.type === It.BOOLEAN_ATTRIBUTE) {
2851
2851
  if (!!t === e.hasAttribute(n)) return vt;
2852
- } else if (i.type === Mt.ATTRIBUTE && e.getAttribute(n) === t + "") return vt;
2852
+ } else if (i.type === It.ATTRIBUTE && e.getAttribute(n) === t + "") return vt;
2853
2853
  return nr(i), t;
2854
2854
  }
2855
2855
  });
@@ -2860,10 +2860,10 @@ const Dr = sn(class extends an {
2860
2860
  */
2861
2861
  class Ji extends an {
2862
2862
  constructor(t) {
2863
- if (super(t), this.it = O, t.type !== Mt.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
2863
+ if (super(t), this.it = L, t.type !== It.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
2864
2864
  }
2865
2865
  render(t) {
2866
- if (t === O || t == null) return this._t = void 0, this.it = t;
2866
+ if (t === L || t == null) return this._t = void 0, this.it = t;
2867
2867
  if (t === vt) return t;
2868
2868
  if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
2869
2869
  if (t === this.it) return this._t;
@@ -2873,7 +2873,7 @@ class Ji extends an {
2873
2873
  }
2874
2874
  }
2875
2875
  Ji.directiveName = "unsafeHTML", Ji.resultType = 1;
2876
- const ea = sn(Ji);
2876
+ const ia = sn(Ji);
2877
2877
  /**
2878
2878
  * @license
2879
2879
  * Copyright 2021 Google LLC
@@ -2885,30 +2885,30 @@ function* Ye(i, t) {
2885
2885
  for (const n of i) yield t(n, e++);
2886
2886
  }
2887
2887
  }
2888
- var kt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2888
+ var Bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2889
2889
  function Pr(i) {
2890
2890
  return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
2891
2891
  }
2892
- var zi, kn;
2893
- function ia() {
2894
- if (kn) return zi;
2895
- kn = 1;
2896
- var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, r = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, s = /^0o[0-7]+$/i, a = parseInt, l = typeof kt == "object" && kt && kt.Object === Object && kt, d = typeof self == "object" && self && self.Object === Object && self, u = l || d || Function("return this")(), c = Object.prototype, p = c.toString, f = Math.max, g = Math.min, b = function() {
2892
+ var zi, Vn;
2893
+ function na() {
2894
+ if (Vn) return zi;
2895
+ Vn = 1;
2896
+ var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, r = /^[-+]0x[0-9a-f]+$/i, o = /^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, u = l || d || Function("return this")(), c = Object.prototype, p = c.toString, f = Math.max, g = Math.min, b = function() {
2897
2897
  return u.Date.now();
2898
2898
  };
2899
2899
  function N(m, A, M) {
2900
- var L, q, X, H, R, Z, dt = 0, tt = !1, ct = !1, gt = !0;
2900
+ var O, q, X, H, R, Z, dt = 0, tt = !1, ct = !1, gt = !0;
2901
2901
  if (typeof m != "function")
2902
2902
  throw new TypeError(i);
2903
- A = $(A) || 0, U(M) && (tt = !!M.leading, ct = "maxWait" in M, X = ct ? f($(M.maxWait) || 0, A) : X, gt = "trailing" in M ? !!M.trailing : gt);
2904
- function Ut(I) {
2905
- var ut = L, Rt = q;
2906
- return L = q = void 0, dt = I, H = m.apply(Rt, ut), H;
2903
+ A = E(A) || 0, F(M) && (tt = !!M.leading, ct = "maxWait" in M, X = ct ? f(E(M.maxWait) || 0, A) : X, gt = "trailing" in M ? !!M.trailing : gt);
2904
+ function jt(I) {
2905
+ var ut = O, Rt = q;
2906
+ return O = q = void 0, dt = I, H = m.apply(Rt, ut), H;
2907
2907
  }
2908
- function Ie(I) {
2909
- return dt = I, R = setTimeout(jt, A), tt ? Ut(I) : H;
2908
+ function Ne(I) {
2909
+ return dt = I, R = setTimeout(Zt, A), tt ? jt(I) : H;
2910
2910
  }
2911
- function Ft(I) {
2911
+ function zt(I) {
2912
2912
  var ut = I - Z, Rt = I - dt, mn = A - ut;
2913
2913
  return ct ? g(mn, X - Rt) : mn;
2914
2914
  }
@@ -2916,44 +2916,44 @@ function ia() {
2916
2916
  var ut = I - Z, Rt = I - dt;
2917
2917
  return Z === void 0 || ut >= A || ut < 0 || ct && Rt >= X;
2918
2918
  }
2919
- function jt() {
2919
+ function Zt() {
2920
2920
  var I = b();
2921
2921
  if (At(I))
2922
- return Ne(I);
2923
- R = setTimeout(jt, Ft(I));
2922
+ return He(I);
2923
+ R = setTimeout(Zt, zt(I));
2924
2924
  }
2925
- function Ne(I) {
2926
- return R = void 0, gt && L ? Ut(I) : (L = q = void 0, H);
2925
+ function He(I) {
2926
+ return R = void 0, gt && O ? jt(I) : (O = q = void 0, H);
2927
2927
  }
2928
2928
  function _i() {
2929
- R !== void 0 && clearTimeout(R), dt = 0, L = Z = q = R = void 0;
2929
+ R !== void 0 && clearTimeout(R), dt = 0, O = Z = q = R = void 0;
2930
2930
  }
2931
- function he() {
2932
- return R === void 0 ? H : Ne(b());
2931
+ function pe() {
2932
+ return R === void 0 ? H : He(b());
2933
2933
  }
2934
- function k() {
2934
+ function V() {
2935
2935
  var I = b(), ut = At(I);
2936
- if (L = arguments, q = this, Z = I, ut) {
2936
+ if (O = arguments, q = this, Z = I, ut) {
2937
2937
  if (R === void 0)
2938
- return Ie(Z);
2938
+ return Ne(Z);
2939
2939
  if (ct)
2940
- return R = setTimeout(jt, A), Ut(Z);
2940
+ return R = setTimeout(Zt, A), jt(Z);
2941
2941
  }
2942
- return R === void 0 && (R = setTimeout(jt, A)), H;
2942
+ return R === void 0 && (R = setTimeout(Zt, A)), H;
2943
2943
  }
2944
- return k.cancel = _i, k.flush = he, k;
2944
+ return V.cancel = _i, V.flush = pe, V;
2945
2945
  }
2946
2946
  function J(m, A, M) {
2947
- var L = !0, q = !0;
2947
+ var O = !0, q = !0;
2948
2948
  if (typeof m != "function")
2949
2949
  throw new TypeError(i);
2950
- return U(M) && (L = "leading" in M ? !!M.leading : L, q = "trailing" in M ? !!M.trailing : q), N(m, A, {
2951
- leading: L,
2950
+ return F(M) && (O = "leading" in M ? !!M.leading : O, q = "trailing" in M ? !!M.trailing : q), N(m, A, {
2951
+ leading: O,
2952
2952
  maxWait: A,
2953
2953
  trailing: q
2954
2954
  });
2955
2955
  }
2956
- function U(m) {
2956
+ function F(m) {
2957
2957
  var A = typeof m;
2958
2958
  return !!m && (A == "object" || A == "function");
2959
2959
  }
@@ -2963,14 +2963,14 @@ function ia() {
2963
2963
  function K(m) {
2964
2964
  return typeof m == "symbol" || st(m) && p.call(m) == e;
2965
2965
  }
2966
- function $(m) {
2966
+ function E(m) {
2967
2967
  if (typeof m == "number")
2968
2968
  return m;
2969
2969
  if (K(m))
2970
2970
  return t;
2971
- if (U(m)) {
2971
+ if (F(m)) {
2972
2972
  var A = typeof m.valueOf == "function" ? m.valueOf() : m;
2973
- m = U(A) ? A + "" : A;
2973
+ m = F(A) ? A + "" : A;
2974
2974
  }
2975
2975
  if (typeof m != "string")
2976
2976
  return m === 0 ? m : +m;
@@ -2980,16 +2980,16 @@ function ia() {
2980
2980
  }
2981
2981
  return zi = J, zi;
2982
2982
  }
2983
- var na = ia();
2984
- const Bn = /* @__PURE__ */ Pr(na);
2983
+ var ra = na();
2984
+ const Bn = /* @__PURE__ */ Pr(ra);
2985
2985
  /**
2986
2986
  * @license
2987
2987
  * Copyright 2018 Google LLC
2988
2988
  * SPDX-License-Identifier: BSD-3-Clause
2989
2989
  */
2990
- const Ue = (i) => i ?? O;
2990
+ const Mt = (i) => i ?? L;
2991
2991
  var ni, ri;
2992
- class Or extends lt {
2992
+ class Lr extends lt {
2993
2993
  constructor() {
2994
2994
  super();
2995
2995
  P(this, ni, qn`
@@ -3032,21 +3032,49 @@ class Or extends lt {
3032
3032
  () => x`
3033
3033
  <div class="legend-container">
3034
3034
  <!-- Render color-legend-->
3035
- <color-legend
3036
- id="${this.layer.get("id")}"
3037
- width=${this.layerLegend.width ?? 325}
3038
- scaleType="${Ue(this.layerLegend.scaleType)}"
3039
- markType="${Ue(this.layerLegend.markType)}"
3040
- titleText="${Ue(this.layerLegend.title)}"
3041
- .range=${this.layerLegend.range}
3042
- .domain=${this.layerLegend.domain}
3043
- tickFormat="${Ue(this.layerLegend.tickFormat)}"
3044
- .ticks=${this.layerLegend.ticks ?? 5}
3045
- .tickValues=${this.layerLegend.tickValues}
3046
- .marginLeft=${0}
3047
- .marginRight=${0}
3048
- >
3049
- </color-legend>
3035
+ ${G(
3036
+ Array.isArray(this.layerLegend),
3037
+ () => (
3038
+ /** @type {LegendConfig[]} */
3039
+ this.layerLegend.map(
3040
+ (e, n) => x`
3041
+ <color-legend
3042
+ id="${this.layer.get("id") + n}"
3043
+ width=${e.width ?? 325}
3044
+ scaleType="${Mt(e.scaleType)}"
3045
+ markType="${Mt(e.markType)}"
3046
+ titleText="${Mt(e.title)}"
3047
+ .range=${e.range}
3048
+ .domain=${e.domain}
3049
+ tickFormat="${Mt(e.tickFormat)}"
3050
+ .ticks=${e.ticks ?? 5}
3051
+ .tickValues=${e.tickValues}
3052
+ .marginLeft=${0}
3053
+ .marginRight=${0}
3054
+ >
3055
+ </color-legend>
3056
+ <div></div>
3057
+ `
3058
+ )
3059
+ ),
3060
+ () => x`
3061
+ <color-legend
3062
+ id="${this.layer.get("id")}"
3063
+ width=${this.layerLegend.width ?? 325}
3064
+ scaleType="${Mt(this.layerLegend.scaleType)}"
3065
+ markType="${Mt(this.layerLegend.markType)}"
3066
+ titleText="${Mt(this.layerLegend.title)}"
3067
+ .range=${this.layerLegend.range}
3068
+ .domain=${this.layerLegend.domain}
3069
+ tickFormat="${Mt(this.layerLegend.tickFormat)}"
3070
+ .ticks=${this.layerLegend.ticks ?? 5}
3071
+ .tickValues=${this.layerLegend.tickValues}
3072
+ .marginLeft=${0}
3073
+ .marginRight=${0}
3074
+ >
3075
+ </color-legend>
3076
+ `
3077
+ )}
3050
3078
  </div>
3051
3079
  `
3052
3080
  )}
@@ -3054,7 +3082,7 @@ class Or extends lt {
3054
3082
  }
3055
3083
  }
3056
3084
  ni = new WeakMap(), ri = new WeakMap(), // Define static properties for the component
3057
- F(Or, "properties", {
3085
+ j(Lr, "properties", {
3058
3086
  unstyled: { type: Boolean },
3059
3087
  noShadow: { type: Boolean },
3060
3088
  layerLegend: { attribute: !1 },
@@ -3062,13 +3090,13 @@ F(Or, "properties", {
3062
3090
  });
3063
3091
  customElements.define(
3064
3092
  "eox-layercontrol-layer-legend",
3065
- Or
3093
+ Lr
3066
3094
  );
3067
- var _t, le, De, Pe, Ki, oi, si;
3068
- class Lr extends lt {
3095
+ var _t, ce, Pe, Le, Ki, oi, si;
3096
+ class Or extends lt {
3069
3097
  constructor() {
3070
3098
  super();
3071
- P(this, Pe);
3099
+ P(this, Le);
3072
3100
  /**
3073
3101
  * data input by the user
3074
3102
  *
@@ -3080,13 +3108,13 @@ class Lr extends lt {
3080
3108
  *
3081
3109
  * @type {{[key: string]: any}}
3082
3110
  */
3083
- P(this, le, null);
3111
+ P(this, ce, null);
3084
3112
  /**
3085
3113
  * Original tile url function, if it exist
3086
3114
  *
3087
3115
  * @type {Function}
3088
3116
  */
3089
- P(this, De);
3117
+ P(this, Pe);
3090
3118
  P(this, oi, qn`
3091
3119
  color-legend {
3092
3120
  --cle-background: transparent;
@@ -3097,7 +3125,7 @@ class Lr extends lt {
3097
3125
  }
3098
3126
  `);
3099
3127
  P(this, si, "");
3100
- this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = Bn(j(this, Pe, Ki), 1e3);
3128
+ this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = Bn(B(this, Le, Ki), 1e3);
3101
3129
  }
3102
3130
  /** Decide what type of throttling to do based on layerConfig type
3103
3131
  *
@@ -3106,7 +3134,7 @@ class Lr extends lt {
3106
3134
  updated(e) {
3107
3135
  if (e.has("layerConfig")) {
3108
3136
  const n = this.layerConfig.type === "style" || this.layerConfig.style ? 100 : 1e3;
3109
- this.throttleDataChange = Bn(j(this, Pe, Ki), n), this.requestUpdate();
3137
+ this.throttleDataChange = Bn(B(this, Le, Ki), n), this.requestUpdate();
3110
3138
  }
3111
3139
  }
3112
3140
  /**
@@ -3119,7 +3147,7 @@ class Lr extends lt {
3119
3147
  * Renders a JSON form for configuration options of a layer.
3120
3148
  */
3121
3149
  render() {
3122
- Qt(this, le, Ws(this.layer, this.layerConfig)), Object.keys(T(this, _t)).length !== 0 && Qt(this, le, T(this, _t)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
3150
+ ee(this, ce, Gs(this.layer, this.layerConfig)), Object.keys(T(this, _t)).length !== 0 && ee(this, ce, T(this, _t)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
3123
3151
  const e = {
3124
3152
  disable_edit_json: !0,
3125
3153
  disable_collapse: !0,
@@ -3140,7 +3168,7 @@ class Lr extends lt {
3140
3168
  .noShadow=${!0}
3141
3169
  .unstyled=${this.unstyled}
3142
3170
  .layer=${this.layer}
3143
- .layerLegend=${Ys(
3171
+ .layerLegend=${Ws(
3144
3172
  this.layerConfig.legend,
3145
3173
  T(this, _t)
3146
3174
  )}
@@ -3150,7 +3178,7 @@ class Lr extends lt {
3150
3178
  <!-- Render a JSON form for layer configuration -->
3151
3179
  <eox-jsonform
3152
3180
  .schema=${this.layerConfig.schema}
3153
- .value=${T(this, le)}
3181
+ .value=${T(this, ce)}
3154
3182
  .options=${e}
3155
3183
  @change=${this.throttleDataChange}
3156
3184
  ></eox-jsonform>
@@ -3159,21 +3187,29 @@ class Lr extends lt {
3159
3187
  `;
3160
3188
  }
3161
3189
  }
3162
- _t = new WeakMap(), le = new WeakMap(), De = new WeakMap(), Pe = new WeakSet(), /**
3190
+ _t = new WeakMap(), ce = new WeakMap(), Pe = new WeakMap(), Le = new WeakSet(), /**
3163
3191
  * Handles changes in eox-jsonform values.
3164
3192
  *
3165
3193
  * @param {{ detail: { value: string; }; }} e
3166
3194
  */
3167
3195
  Ki = function(e) {
3168
- Qt(this, _t, e.detail), this.layerConfig.type === "style" || this.layerConfig.style ? "setStyle" in this.layer || "updateStyleVariables" in this.layer ? qs(T(this, _t), this.layer, this.layerConfig) : console.error(
3196
+ ee(this, _t, e.detail), this.layerConfig.type === "style" || this.layerConfig.style ? "setStyle" in this.layer || "updateStyleVariables" in this.layer ? Xs(T(this, _t), this.layer, this.layerConfig) : console.error(
3169
3197
  `Layer type ${this.layer.get("type") ?? ""} does not support styles configuration`
3170
- ) : Qt(this, De, Zs(
3198
+ ) : ee(this, Pe, qs(
3171
3199
  T(this, _t),
3172
- T(this, De),
3200
+ T(this, Pe),
3173
3201
  this
3174
- )), this.requestUpdate();
3202
+ )), this.dispatchEvent(
3203
+ new CustomEvent("layerConfig:change", {
3204
+ bubbles: !0,
3205
+ detail: {
3206
+ jsonformValue: e.detail,
3207
+ layer: this.layer
3208
+ }
3209
+ })
3210
+ ), this.requestUpdate();
3175
3211
  }, oi = new WeakMap(), si = new WeakMap(), // Define static properties for the component
3176
- F(Lr, "properties", {
3212
+ j(Or, "properties", {
3177
3213
  layer: { attribute: !1 },
3178
3214
  unstyled: { type: Boolean },
3179
3215
  noShadow: { type: Boolean },
@@ -3181,7 +3217,7 @@ F(Lr, "properties", {
3181
3217
  });
3182
3218
  customElements.define(
3183
3219
  "eox-layercontrol-layerconfig",
3184
- Lr
3220
+ Or
3185
3221
  );
3186
3222
  var ai, Mr, li, di;
3187
3223
  class Rr extends lt {
@@ -3224,7 +3260,7 @@ class Rr extends lt {
3224
3260
  .controlProperty=${void 0}
3225
3261
  current-step=${this.layerDatetime.currentStep}
3226
3262
  .displayFormat=${this.layerDatetime.displayFormat}
3227
- @stepchange=${j(this, ai, Mr)}
3263
+ @stepchange=${B(this, ai, Mr)}
3228
3264
  ></eox-timecontrol>
3229
3265
  `
3230
3266
  )}
@@ -3248,7 +3284,7 @@ Mr = function(e) {
3248
3284
  })
3249
3285
  ), this.layerDatetime.currentStep = e.detail.currentStep, this.requestUpdate();
3250
3286
  }, li = new WeakMap(), di = new WeakMap(), // Define static properties for the component
3251
- F(Rr, "properties", {
3287
+ j(Rr, "properties", {
3252
3288
  unstyled: { type: Boolean },
3253
3289
  noShadow: { type: Boolean },
3254
3290
  layerDatetime: { attribute: !1 },
@@ -3413,7 +3449,7 @@ class Ir extends lt {
3413
3449
  }
3414
3450
  }
3415
3451
  Oe = new WeakMap(), ci = new WeakMap(), ui = new WeakMap(), // Define static properties for the component
3416
- F(Ir, "properties", {
3452
+ j(Ir, "properties", {
3417
3453
  actions: { attribute: !1 },
3418
3454
  selectedTab: { state: !0 },
3419
3455
  tabs: { attribute: !1 },
@@ -3422,15 +3458,15 @@ F(Ir, "properties", {
3422
3458
  toolsAsList: { type: Boolean }
3423
3459
  });
3424
3460
  customElements.define("eox-layercontrol-tools-items", Ir);
3425
- const ra = "button,.button { /* TODO: why does this only work here and not from :root? */ --primary-color: #004170; --primary-color-hover: #004170cc; --error-color: #ff5252; display: inline-flex; position: relative; align-items: center; color: #fff; border-width: 0; outline: none; border-radius: 4px; padding: 16px; height: 36px; cursor: pointer; font-family: inherit; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 500; box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); transition-property: box-shadow, transform, opacity, background; transition-duration: 0.28s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);}button:hover:not([disabled]):not(.icon),.button:hover:not([disabled]):not(.icon) { box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); background: var(--primary-color-hover);}button,button:active,.button,.button:active { background: var(--primary-color);}button[disabled],.button[disabled] { opacity: 0.5; cursor: not-allowed;}button.block,.button.block { display: block;}button.outline,.button.outline { background: transparent; box-shadow: none; color: var(--primary-color); outline: 1px solid var(--primary-color);}button.outline:hover,.button.outline:hover { background: transparent;}button.icon,.button.icon { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 50%; width: 24px; height: 24px; text-indent: -9999px;}button.icon-text,.button.icon-text { text-indent: 26px;}button.icon-text.block,.button.icon-text.block { text-indent: 20px;}button.icon:before,button.icon-text:before,.button.icon:before,.button.icon-text:before { position: absolute; text-indent: 0; line-height: initial;}button.icon-text.block:before,.button.icon-text.block:before { text-indent: -54px;}button.icon:before,.button.icon:before { width: 24px; height: 24px; margin-right: 0;}button.icon-text:before,.button.icon-text:before { width: 18px; height: 18px;}button.small,.button.small { height: 28px; padding: 12.4px; font-size: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0px;}", oa = `input[type="radio"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}label span { font-size: small;}input[type="radio"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="radio"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");}`, Nr = `input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}input[type="checkbox"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="checkbox"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");}`, sa = ':root,:host { --range-slider-height: 6px; --range-slider-thumb-size: 15px; --range-slider-thumb-border-radius: 50%; --range-slider-color: #004170; --range-slider-track-color: #d7dcdf; --range-slider-track-border-radius: 0;}input[type="range"] { -webkit-appearance: none; border: none; color: var(--range-slider-color); overflow: hidden; padding-left: 0; margin-left: 7px;}/*webkit*/input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: var(--range-slider-thumb-size); height: var(--range-slider-thumb-size); border-radius: var(--range-slider-thumb-border-radius); background: var(--range-slider-color); border: none; box-shadow: none; margin-top: calc( var(--range-slider-height) * 0.5 - var(--range-slider-thumb-size) * 0.5 );}input[type="range"]::-webkit-slider-runnable-track { height: var(--range-slider-height); border: none; border-radius: var(--range-slider-track-border-radius); background: var(--range-slider-track-color); box-shadow: none;}input[type="range"]::-webkit-slider-thumb { cursor: grab; --clip-edges: 4px; --clip-top: calc( (var(--range-slider-thumb-size) - var(--range-slider-height)) * 0.5 ); --clip-bottom: calc(var(--range-slider-thumb-size) - var(--clip-top)); --clip-further: calc(100% + 1px); --box-fill: calc( -100vmax - var(--range-slider-thumb-size, var(--range-slider-thumb-size)) + 1px ) 0 0 100vmax currentColor; background: linear-gradient(currentColor 0 0) scroll no-repeat left center / 50% calc(var(--range-slider-height) + 1px); background-color: currentColor; box-shadow: var(--box-fill); border-radius: var(--range-slider-thumb-size, var(--range-slider-thumb-size)); filter: brightness(100%); clip-path: polygon( 100% -1px, var(--clip-edges) -1px, 0 var(--clip-top), -100vmax var(--clip-top), -100vmax var(--clip-bottom), 0 var(--clip-bottom), var(--clip-edges) 100%, var(--clip-further) var(--clip-further) );}/*mozilla*/input[type="range"]::-moz-range-thumb { width: var(--range-slider-thumb-size); height: var(--range-slider-thumb-size); border-radius: var(--range-slider-thumb-border-radius); background: var(--range-slider-color); border: none; box-shadow: none; cursor: grab;}input[type="range"]::-moz-range-track { border: none; border-radius: var(--range-slider-track-border-radius); background: var(--range-slider-track-color); box-shadow: none;}input[type="range"]::-moz-range-progress { appearance: none; background: currentColor; transition-delay: 30ms;}input[type="range"]::-moz-range-track,input[type="range"]::-moz-range-progress { height: calc(var(--range-slider-height)); border-radius: var(--range-slider-track-border-radius);}/*toolcool slider*/tc-range-slider { --height: var(--range-slider-height); --panel-bg: var(--range-slider-track-color); --panel-bg-hover: var(--range-slider-track-color); --panel-bg-fill: var(--range-slider-color); --panel-bg-border-radius: var(--range-slider-track-border-radius); --pointer-bg: var(--range-slider-color); --pointer-bg-hover: var(--range-slider-color); --pointer-bg-focus: var(--range-slider-color); --pointer-width: var(--range-slider-thumb-size); --pointer-height: var(--range-slider-thumb-size); --pointer-shadow: none; --pointer-shadow-hover: none; --pointer-shadow-focus: none; --pointer-border: none; --pointer-border-hover: 0; --pointer-border-focus: 0; --pointer-border-radius: var(--range-slider-thumb-border-radius);}';
3461
+ const oa = "button,.button { /* TODO: why does this only work here and not from :root? */ --primary-color: #004170; --primary-color-hover: #004170cc; --error-color: #ff5252; display: inline-flex; position: relative; align-items: center; color: #fff; border-width: 0; outline: none; border-radius: 4px; padding: 16px; height: 36px; cursor: pointer; font-family: inherit; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 500; box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); transition-property: box-shadow, transform, opacity, background; transition-duration: 0.28s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);}button:hover:not([disabled]):not(.icon),.button:hover:not([disabled]):not(.icon) { box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); background: var(--primary-color-hover);}button,button:active,.button,.button:active { background: var(--primary-color);}button[disabled],.button[disabled] { opacity: 0.5; cursor: not-allowed;}button.block,.button.block { display: block;}button.outline,.button.outline { background: transparent; box-shadow: none; color: var(--primary-color); outline: 1px solid var(--primary-color);}button.outline:hover,.button.outline:hover { background: transparent;}button.icon,.button.icon { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 50%; width: 24px; height: 24px; text-indent: -9999px;}button.icon-text,.button.icon-text { text-indent: 26px;}button.icon-text.block,.button.icon-text.block { text-indent: 20px;}button.icon:before,button.icon-text:before,.button.icon:before,.button.icon-text:before { position: absolute; text-indent: 0; line-height: initial;}button.icon-text.block:before,.button.icon-text.block:before { text-indent: -54px;}button.icon:before,.button.icon:before { width: 24px; height: 24px; margin-right: 0;}button.icon-text:before,.button.icon-text:before { width: 18px; height: 18px;}button.small,.button.small { height: 28px; padding: 12.4px; font-size: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0px;}", sa = `input[type="radio"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}label span { font-size: small;}input[type="radio"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="radio"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");}`, Nr = `input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}input[type="checkbox"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="checkbox"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");}`, aa = ':root,:host { --range-slider-height: 6px; --range-slider-thumb-size: 15px; --range-slider-thumb-border-radius: 50%; --range-slider-color: #004170; --range-slider-track-color: #d7dcdf; --range-slider-track-border-radius: 0;}input[type="range"] { -webkit-appearance: none; border: none; color: var(--range-slider-color); overflow: hidden; padding-left: 0; margin-left: 7px;}/*webkit*/input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: var(--range-slider-thumb-size); height: var(--range-slider-thumb-size); border-radius: var(--range-slider-thumb-border-radius); background: var(--range-slider-color); border: none; box-shadow: none; margin-top: calc( var(--range-slider-height) * 0.5 - var(--range-slider-thumb-size) * 0.5 );}input[type="range"]::-webkit-slider-runnable-track { height: var(--range-slider-height); border: none; border-radius: var(--range-slider-track-border-radius); background: var(--range-slider-track-color); box-shadow: none;}input[type="range"]::-webkit-slider-thumb { cursor: grab; --clip-edges: 4px; --clip-top: calc( (var(--range-slider-thumb-size) - var(--range-slider-height)) * 0.5 ); --clip-bottom: calc(var(--range-slider-thumb-size) - var(--clip-top)); --clip-further: calc(100% + 1px); --box-fill: calc( -100vmax - var(--range-slider-thumb-size, var(--range-slider-thumb-size)) + 1px ) 0 0 100vmax currentColor; background: linear-gradient(currentColor 0 0) scroll no-repeat left center / 50% calc(var(--range-slider-height) + 1px); background-color: currentColor; box-shadow: var(--box-fill); border-radius: var(--range-slider-thumb-size, var(--range-slider-thumb-size)); filter: brightness(100%); clip-path: polygon( 100% -1px, var(--clip-edges) -1px, 0 var(--clip-top), -100vmax var(--clip-top), -100vmax var(--clip-bottom), 0 var(--clip-bottom), var(--clip-edges) 100%, var(--clip-further) var(--clip-further) );}/*mozilla*/input[type="range"]::-moz-range-thumb { width: var(--range-slider-thumb-size); height: var(--range-slider-thumb-size); border-radius: var(--range-slider-thumb-border-radius); background: var(--range-slider-color); border: none; box-shadow: none; cursor: grab;}input[type="range"]::-moz-range-track { border: none; border-radius: var(--range-slider-track-border-radius); background: var(--range-slider-track-color); box-shadow: none;}input[type="range"]::-moz-range-progress { appearance: none; background: currentColor; transition-delay: 30ms;}input[type="range"]::-moz-range-track,input[type="range"]::-moz-range-progress { height: calc(var(--range-slider-height)); border-radius: var(--range-slider-track-border-radius);}/*toolcool slider*/tc-range-slider { --height: var(--range-slider-height); --panel-bg: var(--range-slider-track-color); --panel-bg-hover: var(--range-slider-track-color); --panel-bg-fill: var(--range-slider-color); --panel-bg-border-radius: var(--range-slider-track-border-radius); --pointer-bg: var(--range-slider-color); --pointer-bg-hover: var(--range-slider-color); --pointer-bg-focus: var(--range-slider-color); --pointer-width: var(--range-slider-thumb-size); --pointer-height: var(--range-slider-thumb-size); --pointer-shadow: none; --pointer-shadow-hover: none; --pointer-shadow-focus: none; --pointer-border: none; --pointer-border-hover: 0; --pointer-border-focus: 0; --pointer-border-radius: var(--range-slider-thumb-border-radius);}';
3426
3462
  var hi, pi;
3427
3463
  class Hr extends lt {
3428
3464
  constructor() {
3429
3465
  super();
3430
3466
  // Initializes '_removeButton' invoking 'removeButton' function with 'this' context.
3431
- F(this, "_removeButton", () => Qs(this));
3467
+ j(this, "_removeButton", () => ta(this));
3432
3468
  // Initializes '_sortButton' invoking 'sortButton' function with 'unstyled' property as a parameter.
3433
- F(this, "_sortButton", () => ta(this.unstyled));
3469
+ j(this, "_sortButton", () => ea(this.unstyled));
3434
3470
  /**
3435
3471
  * Initializes '_button' as a function accepting 'tool' parameter to generate a Button.
3436
3472
  * Uses 'this.unstyled' as a context parameter for Button generation.
@@ -3438,12 +3474,12 @@ class Hr extends lt {
3438
3474
  * @param {string} tool - Tool parameter for Button generation.
3439
3475
  * @returns {import("lit").HTMLTemplateResult} - The generated Button element.
3440
3476
  */
3441
- F(this, "_button", (e) => Ks(e, this.unstyled));
3442
- F(this, "_getDefaultTools", () => {
3477
+ j(this, "_button", (e) => Qs(e, this.unstyled));
3478
+ j(this, "_getDefaultTools", () => {
3443
3479
  var e;
3444
3480
  return x`
3445
3481
  <div slot="info-content">
3446
- ${ea(this.layer.get("description"))}
3482
+ ${ia(this.layer.get("description"))}
3447
3483
  </div>
3448
3484
  <div slot="opacity-content">
3449
3485
  <!-- Input for opacity -->
@@ -3510,10 +3546,10 @@ class Hr extends lt {
3510
3546
  });
3511
3547
  P(this, hi, "");
3512
3548
  P(this, pi, `
3513
- ${ra}
3514
- ${oa}
3515
- ${Nr}
3549
+ ${oa}
3516
3550
  ${sa}
3551
+ ${Nr}
3552
+ ${aa}
3517
3553
  .drag-handle {
3518
3554
  cursor: n-resize;
3519
3555
  }
@@ -3641,10 +3677,10 @@ class Hr extends lt {
3641
3677
  }
3642
3678
  render() {
3643
3679
  var l;
3644
- const e = Gs(this.tools, this.layer), n = Js(this.tools, this.layer), r = this[`_${e == null ? void 0 : e[0]}Button`] ? (
3680
+ const e = Js(this.tools, this.layer), n = Ks(this.tools, this.layer), r = this[`_${e == null ? void 0 : e[0]}Button`] ? (
3645
3681
  // @ts-expect-error TODO
3646
3682
  this[`_${e == null ? void 0 : e[0]}Button`]()
3647
- ) : O, o = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", s = e == null ? void 0 : e.length, a = n == null ? void 0 : n.length;
3683
+ ) : L, o = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", s = e == null ? void 0 : e.length, a = n == null ? void 0 : n.length;
3648
3684
  return x`
3649
3685
  <style>
3650
3686
  ${T(this, hi)}
@@ -3663,7 +3699,7 @@ class Hr extends lt {
3663
3699
  () => x`
3664
3700
  <details
3665
3701
  class="tools"
3666
- open=${this.layer.get("layerControlToolsExpand") || O}
3702
+ open=${this.layer.get("layerControlToolsExpand") || L}
3667
3703
  >
3668
3704
  <summary>
3669
3705
  <button class="icon ${o}">Tools</button>
@@ -3690,7 +3726,7 @@ class Hr extends lt {
3690
3726
  }
3691
3727
  }
3692
3728
  hi = new WeakMap(), pi = new WeakMap(), // Define static properties for the component
3693
- F(Hr, "properties", {
3729
+ j(Hr, "properties", {
3694
3730
  layer: { attribute: !1 },
3695
3731
  tools: { attribute: !1 },
3696
3732
  unstyled: { type: Boolean },
@@ -3701,9 +3737,9 @@ customElements.define(
3701
3737
  "eox-layercontrol-layer-tools",
3702
3738
  Hr
3703
3739
  );
3704
- const aa = (i) => {
3740
+ const la = (i) => {
3705
3741
  const t = () => {
3706
- const e = js(
3742
+ const e = zs(
3707
3743
  i.layer,
3708
3744
  i.map,
3709
3745
  i.showLayerZoomState
@@ -3717,7 +3753,7 @@ const aa = (i) => {
3717
3753
  i.layer,
3718
3754
  i.showLayerZoomState
3719
3755
  ) && (t(), i.map.getView().on("change:resolution", () => t()));
3720
- }, la = (i, t) => {
3756
+ }, da = (i, t) => {
3721
3757
  const e = t.layer;
3722
3758
  e.setVisible(i.target.checked), i.target.checked && e.get("layerControlExclusive") && t.closest(
3723
3759
  ".layers > ul"
@@ -3728,17 +3764,17 @@ const aa = (i) => {
3728
3764
  new CustomEvent("changed", { bubbles: !0, detail: e })
3729
3765
  ), t.requestUpdate();
3730
3766
  };
3731
- var Et, re, kr, fi, gi;
3732
- class Vr extends lt {
3767
+ var $t, se, Vr, fi, gi;
3768
+ class kr extends lt {
3733
3769
  constructor() {
3734
3770
  super();
3735
- P(this, Et);
3771
+ P(this, $t);
3736
3772
  /**
3737
3773
  * Represents the current layer visibility based on zoom level.
3738
3774
  *
3739
3775
  * @type {Boolean}
3740
3776
  */
3741
- F(this, "currLayerVisibilityBasedOnZoom", !0);
3777
+ j(this, "currLayerVisibilityBasedOnZoom", !0);
3742
3778
  P(this, fi, "");
3743
3779
  P(this, gi, `
3744
3780
  ${Nr}
@@ -3813,7 +3849,7 @@ class Vr extends lt {
3813
3849
  * and register "change:resolution" ones at the beginning if `showLayerZoomState` is present
3814
3850
  */
3815
3851
  firstUpdated() {
3816
- aa(this);
3852
+ la(this);
3817
3853
  }
3818
3854
  /**
3819
3855
  * Renders layer controls and tools with conditional display based on certain properties.
@@ -3822,7 +3858,7 @@ class Vr extends lt {
3822
3858
  */
3823
3859
  render() {
3824
3860
  var l;
3825
- const e = this.layer.getVisible(), n = e ? "visible" : "", r = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", o = j(this, Et, re).call(this, "layerControlDisable") ? "disabled" : "", s = j(this, Et, re).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
3861
+ const e = this.layer.getVisible(), n = e ? "visible" : "", r = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", o = B(this, $t, se).call(this, "layerControlDisable") ? "disabled" : "", s = B(this, $t, se).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
3826
3862
  return x`
3827
3863
  <style>
3828
3864
  ${T(this, fi)}
@@ -3838,15 +3874,15 @@ class Vr extends lt {
3838
3874
  <input
3839
3875
  type=${s}
3840
3876
  .checked=${Dr(e)}
3841
- @click=${j(this, Et, kr)}
3877
+ @click=${B(this, $t, Vr)}
3842
3878
  />
3843
3879
 
3844
3880
  <!-- Layer title -->
3845
3881
  <span
3846
- class="title ${j(this, Et, re).call(this, "color") ? "color-swatch" : ""}"
3847
- style="--layer-color: ${j(this, Et, re).call(this, "color")}"
3882
+ class="title ${B(this, $t, se).call(this, "color") ? "color-swatch" : ""}"
3883
+ style="--layer-color: ${B(this, $t, se).call(this, "color")}"
3848
3884
  >
3849
- ${j(this, Et, re).call(this, this.titleProperty)}
3885
+ ${B(this, $t, se).call(this, this.titleProperty)}
3850
3886
  </span>
3851
3887
  ${G(
3852
3888
  a,
@@ -3868,13 +3904,13 @@ class Vr extends lt {
3868
3904
  `;
3869
3905
  }
3870
3906
  }
3871
- Et = new WeakSet(), /**
3907
+ $t = new WeakSet(), /**
3872
3908
  * Private method to get layer property by key if available.
3873
3909
  *
3874
3910
  * @param {string} key - The key for the layer property.
3875
3911
  * @returns {any} - The value of the layer property if exists, otherwise undefined.
3876
3912
  */
3877
- re = function(e) {
3913
+ se = function(e) {
3878
3914
  var n;
3879
3915
  return (n = this.layer) == null ? void 0 : n.get(e);
3880
3916
  }, /**
@@ -3882,10 +3918,10 @@ re = function(e) {
3882
3918
  *
3883
3919
  * @param {{target: { checked: boolean }}} evt - The input change event.
3884
3920
  */
3885
- kr = function(e) {
3886
- la(e, this);
3921
+ Vr = function(e) {
3922
+ da(e, this);
3887
3923
  }, fi = new WeakMap(), gi = new WeakMap(), // Define static properties for the component
3888
- F(Vr, "properties", {
3924
+ j(kr, "properties", {
3889
3925
  layer: { attribute: !1 },
3890
3926
  map: { attribute: !1, state: !0 },
3891
3927
  titleProperty: { attribute: "title-property", type: String },
@@ -3895,7 +3931,7 @@ F(Vr, "properties", {
3895
3931
  noShadow: { type: Boolean },
3896
3932
  toolsAsList: { type: Boolean }
3897
3933
  });
3898
- customElements.define("eox-layercontrol-layer", Vr);
3934
+ customElements.define("eox-layercontrol-layer", kr);
3899
3935
  var mi, yi;
3900
3936
  class Br extends lt {
3901
3937
  constructor() {
@@ -3954,7 +3990,7 @@ class Br extends lt {
3954
3990
  () => x`
3955
3991
  <!-- Render the details element with the layer control -->
3956
3992
  <details
3957
- open=${e || O}
3993
+ open=${e || L}
3958
3994
  data-children-length=${n}
3959
3995
  >
3960
3996
  <summary>
@@ -3992,7 +4028,7 @@ class Br extends lt {
3992
4028
  }
3993
4029
  }
3994
4030
  mi = new WeakMap(), yi = new WeakMap(), // Define static properties for the component
3995
- F(Br, "properties", {
4031
+ j(Br, "properties", {
3996
4032
  group: { attribute: !1 },
3997
4033
  idProperty: { attribute: "id-property" },
3998
4034
  map: { attribute: !1, state: !0 },
@@ -4008,101 +4044,101 @@ customElements.define(
4008
4044
  Br
4009
4045
  );
4010
4046
  var Zi, Un;
4011
- function da() {
4047
+ function ca() {
4012
4048
  if (Un) return Zi;
4013
4049
  Un = 1;
4014
- var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, r = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, s = /^0o[0-7]+$/i, a = parseInt, l = typeof kt == "object" && kt && kt.Object === Object && kt, d = typeof self == "object" && self && self.Object === Object && self, u = l || d || Function("return this")(), c = Object.prototype, p = c.toString, f = Math.max, g = Math.min, b = function() {
4050
+ var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, r = /^[-+]0x[0-9a-f]+$/i, o = /^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, u = l || d || Function("return this")(), c = Object.prototype, p = c.toString, f = Math.max, g = Math.min, b = function() {
4015
4051
  return u.Date.now();
4016
4052
  };
4017
- function N($, m, A) {
4018
- var M, L, q, X, H, R, Z = 0, dt = !1, tt = !1, ct = !0;
4019
- if (typeof $ != "function")
4053
+ function N(E, m, A) {
4054
+ var M, O, q, X, H, R, Z = 0, dt = !1, tt = !1, ct = !0;
4055
+ if (typeof E != "function")
4020
4056
  throw new TypeError(i);
4021
4057
  m = K(m) || 0, J(A) && (dt = !!A.leading, tt = "maxWait" in A, q = tt ? f(K(A.maxWait) || 0, m) : q, ct = "trailing" in A ? !!A.trailing : ct);
4022
- function gt(k) {
4023
- var I = M, ut = L;
4024
- return M = L = void 0, Z = k, X = $.apply(ut, I), X;
4058
+ function gt(V) {
4059
+ var I = M, ut = O;
4060
+ return M = O = void 0, Z = V, X = E.apply(ut, I), X;
4025
4061
  }
4026
- function Ut(k) {
4027
- return Z = k, H = setTimeout(At, m), dt ? gt(k) : X;
4062
+ function jt(V) {
4063
+ return Z = V, H = setTimeout(At, m), dt ? gt(V) : X;
4028
4064
  }
4029
- function Ie(k) {
4030
- var I = k - R, ut = k - Z, Rt = m - I;
4065
+ function Ne(V) {
4066
+ var I = V - R, ut = V - Z, Rt = m - I;
4031
4067
  return tt ? g(Rt, q - ut) : Rt;
4032
4068
  }
4033
- function Ft(k) {
4034
- var I = k - R, ut = k - Z;
4069
+ function zt(V) {
4070
+ var I = V - R, ut = V - Z;
4035
4071
  return R === void 0 || I >= m || I < 0 || tt && ut >= q;
4036
4072
  }
4037
4073
  function At() {
4038
- var k = b();
4039
- if (Ft(k))
4040
- return jt(k);
4041
- H = setTimeout(At, Ie(k));
4074
+ var V = b();
4075
+ if (zt(V))
4076
+ return Zt(V);
4077
+ H = setTimeout(At, Ne(V));
4042
4078
  }
4043
- function jt(k) {
4044
- return H = void 0, ct && M ? gt(k) : (M = L = void 0, X);
4079
+ function Zt(V) {
4080
+ return H = void 0, ct && M ? gt(V) : (M = O = void 0, X);
4045
4081
  }
4046
- function Ne() {
4047
- H !== void 0 && clearTimeout(H), Z = 0, M = R = L = H = void 0;
4082
+ function He() {
4083
+ H !== void 0 && clearTimeout(H), Z = 0, M = R = O = H = void 0;
4048
4084
  }
4049
4085
  function _i() {
4050
- return H === void 0 ? X : jt(b());
4086
+ return H === void 0 ? X : Zt(b());
4051
4087
  }
4052
- function he() {
4053
- var k = b(), I = Ft(k);
4054
- if (M = arguments, L = this, R = k, I) {
4088
+ function pe() {
4089
+ var V = b(), I = zt(V);
4090
+ if (M = arguments, O = this, R = V, I) {
4055
4091
  if (H === void 0)
4056
- return Ut(R);
4092
+ return jt(R);
4057
4093
  if (tt)
4058
4094
  return H = setTimeout(At, m), gt(R);
4059
4095
  }
4060
4096
  return H === void 0 && (H = setTimeout(At, m)), X;
4061
4097
  }
4062
- return he.cancel = Ne, he.flush = _i, he;
4098
+ return pe.cancel = He, pe.flush = _i, pe;
4063
4099
  }
4064
- function J($) {
4065
- var m = typeof $;
4066
- return !!$ && (m == "object" || m == "function");
4100
+ function J(E) {
4101
+ var m = typeof E;
4102
+ return !!E && (m == "object" || m == "function");
4067
4103
  }
4068
- function U($) {
4069
- return !!$ && typeof $ == "object";
4104
+ function F(E) {
4105
+ return !!E && typeof E == "object";
4070
4106
  }
4071
- function st($) {
4072
- return typeof $ == "symbol" || U($) && p.call($) == e;
4107
+ function st(E) {
4108
+ return typeof E == "symbol" || F(E) && p.call(E) == e;
4073
4109
  }
4074
- function K($) {
4075
- if (typeof $ == "number")
4076
- return $;
4077
- if (st($))
4110
+ function K(E) {
4111
+ if (typeof E == "number")
4112
+ return E;
4113
+ if (st(E))
4078
4114
  return t;
4079
- if (J($)) {
4080
- var m = typeof $.valueOf == "function" ? $.valueOf() : $;
4081
- $ = J(m) ? m + "" : m;
4115
+ if (J(E)) {
4116
+ var m = typeof E.valueOf == "function" ? E.valueOf() : E;
4117
+ E = J(m) ? m + "" : m;
4082
4118
  }
4083
- if (typeof $ != "string")
4084
- return $ === 0 ? $ : +$;
4085
- $ = $.replace(n, "");
4086
- var A = o.test($);
4087
- return A || s.test($) ? a($.slice(2), A ? 2 : 8) : r.test($) ? t : +$;
4119
+ if (typeof E != "string")
4120
+ return E === 0 ? E : +E;
4121
+ E = E.replace(n, "");
4122
+ var A = o.test(E);
4123
+ return A || s.test(E) ? a(E.slice(2), A ? 2 : 8) : r.test(E) ? t : +E;
4088
4124
  }
4089
4125
  return Zi = N, Zi;
4090
4126
  }
4091
- var ca = da();
4092
- const ua = /* @__PURE__ */ Pr(ca), ha = (i) => {
4093
- const { layers: t, idProperty: e, titleProperty: n, renderRoot: r } = i, o = ua(() => {
4127
+ var ua = ca();
4128
+ const ha = /* @__PURE__ */ Pr(ua), pa = (i) => {
4129
+ const { layers: t, idProperty: e, titleProperty: n, renderRoot: r } = i, o = ha(() => {
4094
4130
  i.requestUpdate(), i.dispatchEvent(
4095
4131
  new CustomEvent("changed", { bubbles: !0 })
4096
4132
  );
4097
4133
  }, 50), s = () => o();
4098
4134
  if (t && (t.hasListener("change:length") && (t == null || t.un("change:length", s)), t.on("change:length", s), t)) {
4099
4135
  const a = r.querySelector("ul");
4100
- Fs(
4136
+ js(
4101
4137
  t,
4102
4138
  e,
4103
4139
  n,
4104
4140
  i
4105
- ), Us(a, t, e, i);
4141
+ ), Fs(a, t, e, i);
4106
4142
  }
4107
4143
  };
4108
4144
  var bi, vi;
@@ -4144,7 +4180,7 @@ class Ur extends lt {
4144
4180
  * Executes specific logic after the initial render of the component.
4145
4181
  */
4146
4182
  firstUpdated() {
4147
- ha(this);
4183
+ pa(this);
4148
4184
  }
4149
4185
  /**
4150
4186
  * Overrides createRenderRoot to handle shadow DOM creation based on the noShadow property.
@@ -4167,13 +4203,13 @@ class Ur extends lt {
4167
4203
  ${G(
4168
4204
  this.layers,
4169
4205
  () => x`
4170
- ${bo(
4206
+ ${vo(
4171
4207
  e,
4172
4208
  (n) => n,
4173
4209
  (n) => x`
4174
4210
  <li
4175
4211
  data-layer="${n.get(this.idProperty)}"
4176
- data-type="${zs(n, this.map)}"
4212
+ data-type="${Zs(n, this.map)}"
4177
4213
  >
4178
4214
  ${/** Checks if the layer is a group or individual layer and renders accordingly */
4179
4215
  /** @type {import("ol/layer").Group} */
@@ -4214,7 +4250,7 @@ class Ur extends lt {
4214
4250
  }
4215
4251
  }
4216
4252
  bi = new WeakMap(), vi = new WeakMap(), // Define static properties for the component
4217
- F(Ur, "properties", {
4253
+ j(Ur, "properties", {
4218
4254
  idProperty: { attribute: "id-property" },
4219
4255
  layers: { attribute: !1 },
4220
4256
  map: { attribute: !1, state: !0 },
@@ -4226,7 +4262,7 @@ F(Ur, "properties", {
4226
4262
  toolsAsList: { type: Boolean }
4227
4263
  });
4228
4264
  customElements.define("eox-layercontrol-layer-list", Ur);
4229
- const pa = (i) => {
4265
+ const fa = (i) => {
4230
4266
  const t = i.querySelector(
4231
4267
  "select[name=optional]"
4232
4268
  ), e = t ? t.value : null, n = fn(
@@ -4291,7 +4327,7 @@ class Fr extends lt {
4291
4327
  </select>
4292
4328
 
4293
4329
  <!-- Button to handle adding layers -->
4294
- <button @click="${j(this, wi, jr)}">add</button>
4330
+ <button @click="${B(this, wi, jr)}">add</button>
4295
4331
  `;
4296
4332
  }
4297
4333
  }
@@ -4300,9 +4336,9 @@ wi = new WeakSet(), /**
4300
4336
  * Invokes the 'addToListMethod' with the current context.
4301
4337
  */
4302
4338
  jr = function() {
4303
- pa(this);
4339
+ fa(this);
4304
4340
  }, // Define static properties for the component
4305
- F(Fr, "properties", {
4341
+ j(Fr, "properties", {
4306
4342
  idProperty: { attribute: "id-property" },
4307
4343
  layers: { attribute: !1 },
4308
4344
  titleProperty: { attribute: "title-property", type: String },
@@ -4313,7 +4349,7 @@ customElements.define(
4313
4349
  "eox-layercontrol-optional-list",
4314
4350
  Fr
4315
4351
  );
4316
- const fa = (i, t) => {
4352
+ const ga = (i, t) => {
4317
4353
  t.jsonInput = i.target.value, t.requestUpdate();
4318
4354
  }, Fn = (i) => {
4319
4355
  const t = JSON.parse(
@@ -4322,16 +4358,16 @@ const fa = (i, t) => {
4322
4358
  Array.isArray(t.data) ? t.data.forEach((e) => {
4323
4359
  i.eoxMap.addOrUpdateLayer(e);
4324
4360
  }) : i.eoxMap.addOrUpdateLayer(t.data), i.jsonInput = null, i.requestUpdate();
4325
- }, ga = (i, t) => {
4361
+ }, ma = (i, t) => {
4326
4362
  t.urlInput = i.target.value, t.requestUpdate();
4327
4363
  };
4328
- async function ma(i) {
4364
+ async function ya(i) {
4329
4365
  const t = i.urlInput;
4330
4366
  if (i.wmsCapabilities = null, i.searchLoad = !0, i.requestUpdate(), !t) return !1;
4331
4367
  if (dn(t) === "XYZ")
4332
4368
  return { Name: t };
4333
4369
  try {
4334
- const e = await cs(t);
4370
+ const e = await us(t);
4335
4371
  i.wmsCapabilities = e;
4336
4372
  } catch {
4337
4373
  } finally {
@@ -4339,7 +4375,7 @@ async function ma(i) {
4339
4375
  }
4340
4376
  return !1;
4341
4377
  }
4342
- const ya = (i, t) => {
4378
+ const ba = (i, t) => {
4343
4379
  const { Name: e } = i, n = dn(t.urlInput) || "XYZ", r = {
4344
4380
  type: "Tile",
4345
4381
  properties: {
@@ -4358,10 +4394,10 @@ const ya = (i, t) => {
4358
4394
  }
4359
4395
  };
4360
4396
  t.jsonInput = JSON.stringify(r);
4361
- }, ba = (i, t) => {
4397
+ }, va = (i, t) => {
4362
4398
  t.open = i || null, t.urlInput = null, t.jsonInput = null, t.wmsCapabilities = null, t.requestUpdate();
4363
4399
  };
4364
- var it, Zr, qr, Qi, Xr, Yr, We, xi, Ei;
4400
+ var it, Zr, qr, Qi, Xr, Yr, We, xi, $i;
4365
4401
  class zr extends lt {
4366
4402
  constructor() {
4367
4403
  super();
@@ -4371,31 +4407,31 @@ class zr extends lt {
4371
4407
  *
4372
4408
  * @type {String}
4373
4409
  */
4374
- F(this, "urlInput", null);
4410
+ j(this, "urlInput", null);
4375
4411
  /**
4376
4412
  * State for JSON Textarea - For EOxMap JSON
4377
4413
  *
4378
4414
  * @type {String}
4379
4415
  */
4380
- F(this, "jsonInput", null);
4416
+ j(this, "jsonInput", null);
4381
4417
  /**
4382
4418
  * State for add layer - consist of url/json
4383
4419
  *
4384
4420
  * @type {"url" | "json" | null}
4385
4421
  */
4386
- F(this, "open", null);
4422
+ j(this, "open", null);
4387
4423
  /**
4388
4424
  * Loader state when search is triggered
4389
4425
  *
4390
4426
  * @type {Boolean}
4391
4427
  */
4392
- F(this, "searchLoad", !1);
4428
+ j(this, "searchLoad", !1);
4393
4429
  /**
4394
4430
  * State for `WMS Capabilities JSON`
4395
4431
  *
4396
4432
  * @type {import("wms-capabilities").WMSCapabilitiesJSON}
4397
4433
  */
4398
- F(this, "wmsCapabilities", null);
4434
+ j(this, "wmsCapabilities", null);
4399
4435
  P(this, xi, `
4400
4436
  .eox-add-layer-main .open {
4401
4437
  position: relative;
@@ -4404,7 +4440,7 @@ class zr extends lt {
4404
4440
  display: none;
4405
4441
  }
4406
4442
  `);
4407
- P(this, Ei, `
4443
+ P(this, $i, `
4408
4444
  .eox-add {
4409
4445
  background: #f0f2f5;
4410
4446
  border-top: 1px solid #0041701a;
@@ -4553,24 +4589,24 @@ class zr extends lt {
4553
4589
  * Handles input fields, search, and addition of layers.
4554
4590
  */
4555
4591
  render() {
4556
- const e = this.open ? "open" : "close", n = this.open === "url", r = this.open === "json", o = !us(this.urlInput) || this.searchLoad ? !0 : O;
4592
+ const e = this.open ? "open" : "close", n = this.open === "url", r = this.open === "json", o = !hs(this.urlInput) || this.searchLoad ? !0 : L;
4557
4593
  return x`
4558
4594
  <style>
4559
4595
  ${T(this, xi)}
4560
- ${!this.unstyled && T(this, Ei)}
4596
+ ${!this.unstyled && T(this, $i)}
4561
4597
  </style>
4562
4598
  <div class="eox-add-layer-main">
4563
4599
  <div class="eox-add-layer-col">
4564
4600
  <!-- Tabbed interface for URL and JSON -->
4565
4601
  <ul class="eox-add-layer-tab ${e}">
4566
4602
  <li
4567
- @click=${() => j(this, it, We).call(this, "url")}
4603
+ @click=${() => B(this, it, We).call(this, "url")}
4568
4604
  class="${n ? "active" : ""}"
4569
4605
  >
4570
4606
  URL
4571
4607
  </li>
4572
4608
  <li
4573
- @click=${() => j(this, it, We).call(this, "json")}
4609
+ @click=${() => B(this, it, We).call(this, "json")}
4574
4610
  class="${r ? "active" : ""}"
4575
4611
  >
4576
4612
  JSON
@@ -4580,7 +4616,7 @@ class zr extends lt {
4580
4616
  <!-- Button to toggle tabs -->
4581
4617
  <button
4582
4618
  class="add-icon icon"
4583
- @click=${() => j(this, it, We).call(this, this.open ? null : "url")}
4619
+ @click=${() => B(this, it, We).call(this, this.open ? null : "url")}
4584
4620
  >
4585
4621
  ${this.unstyled ? "Add Layer" : ""}
4586
4622
  </button>
@@ -4594,14 +4630,14 @@ class zr extends lt {
4594
4630
  class="add-url"
4595
4631
  placeholder="Add URL (WMS/XYZ)"
4596
4632
  .value="${this.urlInput}"
4597
- @input=${j(this, it, Zr)}
4633
+ @input=${B(this, it, Zr)}
4598
4634
  >
4599
4635
  </input>
4600
4636
  <!-- Search button for URL -->
4601
4637
  <button
4602
4638
  class="search-icon"
4603
4639
  disabled=${o}
4604
- @click=${j(this, it, qr)}
4640
+ @click=${B(this, it, qr)}
4605
4641
  >
4606
4642
  ${this.unstyled ? "Search" : ""}
4607
4643
  </button>
@@ -4620,7 +4656,7 @@ class zr extends lt {
4620
4656
  class="add-layer-icon icon"
4621
4657
  @click=${() => (
4622
4658
  // @ts-expect-error TODO
4623
- j(this, it, Qi).call(this, s)
4659
+ B(this, it, Qi).call(this, s)
4624
4660
  )}
4625
4661
  >
4626
4662
  ${this.unstyled ? "+" : ""}
@@ -4629,21 +4665,21 @@ class zr extends lt {
4629
4665
  `;
4630
4666
  }
4631
4667
  )}
4632
- </ul>` : O}
4668
+ </ul>` : L}
4633
4669
  ` : x`
4634
4670
  <!-- Textarea for JSON input -->
4635
4671
  <textarea
4636
4672
  class="add-layer-input"
4637
4673
  placeholder="Please put a valid eox-map layer JSON."
4638
- @input=${j(this, it, Yr)}
4674
+ @input=${B(this, it, Yr)}
4639
4675
  .value=${this.jsonInput}
4640
4676
  ></textarea>
4641
4677
 
4642
4678
  <!-- Button to add JSON layer -->
4643
4679
  <button
4644
4680
  class="add-layer-icon json-add-layer"
4645
- disabled=${hs(this.jsonInput) ? O : !0}
4646
- @click=${j(this, it, Xr)}
4681
+ disabled=${ps(this.jsonInput) ? L : !0}
4682
+ @click=${B(this, it, Xr)}
4647
4683
  >
4648
4684
  ${this.unstyled ? "Add JSON" : ""}
4649
4685
  </button>
@@ -4660,17 +4696,17 @@ it = new WeakSet(), /**
4660
4696
  * @param {Event} evt - The input change event triggering the method.
4661
4697
  */
4662
4698
  Zr = function(e) {
4663
- ga(e, this);
4699
+ ma(e, this);
4664
4700
  }, qr = async function() {
4665
- const e = await ma(this);
4666
- e && j(this, it, Qi).call(this, e);
4701
+ const e = await ya(this);
4702
+ e && B(this, it, Qi).call(this, e);
4667
4703
  }, /**
4668
4704
  * Handles input field changes by triggering layer processing and adding layers.
4669
4705
  *
4670
4706
  * @param {{"Name": string}} layer - The layer information triggering the method.
4671
4707
  */
4672
4708
  Qi = function(e) {
4673
- ya(e, this), Fn(this);
4709
+ ba(e, this), Fn(this);
4674
4710
  }, /**
4675
4711
  * Initiates the addition of layers, triggering the handleAddLayerMethod.
4676
4712
  */
@@ -4682,49 +4718,49 @@ Xr = function() {
4682
4718
  * @param {{target: { value: string }}} evt - The input change event triggering the method.
4683
4719
  */
4684
4720
  Yr = function(e) {
4685
- fa(e, this);
4721
+ ga(e, this);
4686
4722
  }, /**
4687
4723
  * Handles tab changes by invoking the 'openCloseTabMethod'.
4688
4724
  *
4689
4725
  * @param {"url" | "json" | null} tab - The tab identifier triggering the method.
4690
4726
  */
4691
4727
  We = function(e) {
4692
- ba(e, this);
4693
- }, xi = new WeakMap(), Ei = new WeakMap(), // Define static properties for the component
4694
- F(zr, "properties", {
4728
+ va(e, this);
4729
+ }, xi = new WeakMap(), $i = new WeakMap(), // Define static properties for the component
4730
+ j(zr, "properties", {
4695
4731
  eoxMap: { attribute: !1, state: !0 },
4696
4732
  unstyled: { type: Boolean },
4697
4733
  noShadow: { type: Boolean }
4698
4734
  });
4699
4735
  customElements.define("eox-layercontrol-add-layers", zr);
4700
- const va = (i, t) => {
4736
+ const wa = (i, t) => {
4701
4737
  if (t.requestUpdate(), i.target.tagName === "EOX-LAYERCONTROL-LAYER-TOOLS") {
4702
4738
  const e = t.renderRoot.querySelector(
4703
4739
  "eox-layercontrol-optional-list"
4704
4740
  );
4705
4741
  e == null || e.requestUpdate();
4706
4742
  }
4707
- }, wa = (i) => {
4743
+ }, xa = (i) => {
4708
4744
  let t;
4709
4745
  return typeof i == "string" ? t = /** @type {HTMLElement} */
4710
4746
  document.querySelector(i) : t = i, t;
4711
4747
  }, jn = (i) => {
4712
- const t = wa(i.for);
4748
+ const t = xa(i.for);
4713
4749
  return t && t.map !== i.map && (i.map = t.map), t;
4714
4750
  };
4715
- var Ht, ce, Gr, Jr, $i;
4751
+ var kt, Ft, Gr, Jr, Kr, Ei;
4716
4752
  class Wr extends lt {
4717
4753
  // Constructor to set default values for properties
4718
4754
  constructor() {
4719
4755
  super();
4720
- P(this, ce);
4756
+ P(this, Ft);
4721
4757
  /**
4722
4758
  * Instance of `eox-map` which is a wrapper for the OL
4723
4759
  *
4724
4760
  * @type {import("../../map/src/main").EOxMap}
4725
4761
  */
4726
- P(this, Ht);
4727
- P(this, $i, `
4762
+ P(this, kt);
4763
+ P(this, Ei, `
4728
4764
  :host, :root {
4729
4765
  font-family: Roboto, sans-serif;
4730
4766
  --padding: 0.5rem;
@@ -4759,28 +4795,28 @@ class Wr extends lt {
4759
4795
  e.has("for") && (this.eoxMap = jn(this));
4760
4796
  }
4761
4797
  get eoxMap() {
4762
- return T(this, Ht);
4798
+ return T(this, kt);
4763
4799
  }
4764
4800
  set eoxMap(e) {
4765
- const n = T(this, Ht);
4766
- Qt(this, Ht, e), this.requestUpdate("eoxMap", n);
4801
+ const n = T(this, kt);
4802
+ ee(this, kt, e), this.requestUpdate("eoxMap", n);
4767
4803
  }
4768
4804
  render() {
4769
4805
  var r, o, s;
4770
4806
  const e = (r = this.map) == null ? void 0 : r.getLayers().getArray(), n = e && ((o = fn(e, "layerControlOptional", !0)) == null ? void 0 : o.length) > 0;
4771
4807
  return x`
4772
4808
  <style>
4773
- ${!this.unstyled && T(this, $i)}
4809
+ ${!this.unstyled && T(this, Ei)}
4774
4810
  ${this.styleOverride}
4775
4811
  </style>
4776
4812
 
4777
4813
  <!-- Conditional rendering of add layers component -->
4778
4814
  ${G(
4779
- this.addExternalLayers && ((s = T(this, Ht)) == null ? void 0 : s.addOrUpdateLayer),
4815
+ this.addExternalLayers && ((s = T(this, kt)) == null ? void 0 : s.addOrUpdateLayer),
4780
4816
  () => x`
4781
4817
  <eox-layercontrol-add-layers
4782
4818
  .noShadow=${!0}
4783
- .eoxMap=${T(this, Ht)}
4819
+ .eoxMap=${T(this, kt)}
4784
4820
  .unstyled=${this.unstyled}
4785
4821
  ></eox-layercontrol-add-layers>
4786
4822
  `
@@ -4801,8 +4837,9 @@ class Wr extends lt {
4801
4837
  .tools=${this.tools}
4802
4838
  .unstyled=${this.unstyled}
4803
4839
  .toolsAsList=${this.toolsAsList}
4804
- @changed=${j(this, ce, Gr)}
4805
- @datetime:updated=${j(this, ce, Jr)}
4840
+ @changed=${B(this, Ft, Gr)}
4841
+ @datetime:updated=${B(this, Ft, Jr)}
4842
+ @layerConfig:change=${B(this, Ft, Kr)}
4806
4843
  ></eox-layercontrol-layer-list>
4807
4844
  `
4808
4845
  )}
@@ -4823,13 +4860,13 @@ class Wr extends lt {
4823
4860
  `;
4824
4861
  }
4825
4862
  }
4826
- Ht = new WeakMap(), ce = new WeakSet(), /**
4863
+ kt = new WeakMap(), Ft = new WeakSet(), /**
4827
4864
  * Event handler for changes in the layer list
4828
4865
  *
4829
4866
  * @param {CustomEvent & {target: Element}} evt
4830
4867
  */
4831
4868
  Gr = function(e) {
4832
- va(e, this), this.dispatchEvent(new CustomEvent("layerchange", { detail: e.detail }));
4869
+ wa(e, this), this.dispatchEvent(new CustomEvent("layerchange", { detail: e.detail }));
4833
4870
  }, /**
4834
4871
  * Dispatches datetime updates from layer datetime to the layercontrol
4835
4872
  * @param {CustomEvent} evt
@@ -4838,8 +4875,16 @@ Jr = function(e) {
4838
4875
  this.dispatchEvent(
4839
4876
  new CustomEvent("datetime:updated", { detail: e.detail })
4840
4877
  );
4841
- }, $i = new WeakMap(), // Define static properties for the component
4842
- F(Wr, "properties", {
4878
+ }, /**
4879
+ * Dispatches jsonform updates from layer config to the layercontrol
4880
+ * @param {CustomEvent} evt
4881
+ */
4882
+ Kr = function(e) {
4883
+ this.dispatchEvent(
4884
+ new CustomEvent("layerConfig:change", { detail: e.detail })
4885
+ );
4886
+ }, Ei = new WeakMap(), // Define static properties for the component
4887
+ j(Wr, "properties", {
4843
4888
  for: { type: String },
4844
4889
  idProperty: { attribute: "id-property" },
4845
4890
  map: { attribute: !1, state: !0 },