@eox/layercontrol 0.21.0 → 0.22.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,27 +1,27 @@
1
- var jo = Object.defineProperty;
2
- var ei = (e) => {
1
+ var Wo = Object.defineProperty;
2
+ var si = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var Zo = (e, t, n) => t in e ? jo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var L = (e, t, n) => Zo(e, typeof t != "symbol" ? t + "" : t, n), fn = (e, t, n) => t.has(e) || ei("Cannot " + n);
7
- var P = (e, t, n) => (fn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), T = (e, t, n) => t.has(e) ? ei("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Qt = (e, t, n, i) => (fn(e, t, "write to private field"), i ? i.call(e, n) : t.set(e, n), n), B = (e, t, n) => (fn(e, t, "access private method"), n);
5
+ var Go = (e, t, n) => t in e ? Wo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
+ var I = (e, t, n) => Go(e, typeof t != "symbol" ? t + "" : t, n), yn = (e, t, n) => t.has(e) || si("Cannot " + n);
7
+ var S = (e, t, n) => (yn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), _ = (e, t, n) => t.has(e) ? si("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), kt = (e, t, n, i) => (yn(e, t, "write to private field"), i ? i.call(e, n) : t.set(e, n), n), V = (e, t, n) => (yn(e, t, "access private method"), n);
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2019 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const Te = globalThis, Fn = Te.ShadowRoot && (Te.ShadyCSS === void 0 || Te.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Di = Symbol(), ni = /* @__PURE__ */ new WeakMap();
14
- let zo = class {
13
+ const Pe = globalThis, zn = Pe.ShadowRoot && (Pe.ShadyCSS === void 0 || Pe.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Xn = Symbol(), ai = /* @__PURE__ */ new WeakMap();
14
+ let Ni = class {
15
15
  constructor(t, n, i) {
16
- if (this._$cssResult$ = !0, i !== Di) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
16
+ if (this._$cssResult$ = !0, i !== Xn) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
17
17
  this.cssText = t, this.t = n;
18
18
  }
19
19
  get styleSheet() {
20
20
  let t = this.o;
21
21
  const n = this.t;
22
- if (Fn && t === void 0) {
22
+ if (zn && t === void 0) {
23
23
  const i = n !== void 0 && n.length === 1;
24
- i && (t = ni.get(n)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && ni.set(n, t));
24
+ i && (t = ai.get(n)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && ai.set(n, t));
25
25
  }
26
26
  return t;
27
27
  }
@@ -29,26 +29,33 @@ let zo = class {
29
29
  return this.cssText;
30
30
  }
31
31
  };
32
- const Xo = (e) => new zo(typeof e == "string" ? e : e + "", void 0, Di), qo = (e, t) => {
33
- if (Fn) e.adoptedStyleSheets = t.map((n) => n instanceof CSSStyleSheet ? n : n.styleSheet);
32
+ const Jo = (e) => new Ni(typeof e == "string" ? e : e + "", void 0, Xn), Hi = (e, ...t) => {
33
+ const n = e.length === 1 ? e[0] : t.reduce((i, o, r) => i + ((s) => {
34
+ if (s._$cssResult$ === !0) return s.cssText;
35
+ if (typeof s == "number") return s;
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
+ })(o) + e[r + 1], e[0]);
38
+ return new Ni(n, e, Xn);
39
+ }, Ko = (e, t) => {
40
+ if (zn) e.adoptedStyleSheets = t.map((n) => n instanceof CSSStyleSheet ? n : n.styleSheet);
34
41
  else for (const n of t) {
35
- const i = document.createElement("style"), o = Te.litNonce;
42
+ const i = document.createElement("style"), o = Pe.litNonce;
36
43
  o !== void 0 && i.setAttribute("nonce", o), i.textContent = n.cssText, e.appendChild(i);
37
44
  }
38
- }, ii = Fn ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
45
+ }, li = zn ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
39
46
  let n = "";
40
47
  for (const i of t.cssRules) n += i.cssText;
41
- return Xo(n);
48
+ return Jo(n);
42
49
  })(e) : e;
43
50
  /**
44
51
  * @license
45
52
  * Copyright 2017 Google LLC
46
53
  * SPDX-License-Identifier: BSD-3-Clause
47
54
  */
48
- const { is: Yo, defineProperty: Wo, getOwnPropertyDescriptor: Go, getOwnPropertyNames: Jo, getOwnPropertySymbols: Ko, getPrototypeOf: Qo } = Object, Ct = globalThis, oi = Ct.trustedTypes, tr = oi ? oi.emptyScript : "", gn = Ct.reactiveElementPolyfillSupport, re = (e, t) => e, Mn = { toAttribute(e, t) {
55
+ const { is: Qo, defineProperty: tr, getOwnPropertyDescriptor: er, getOwnPropertyNames: nr, getOwnPropertySymbols: ir, getPrototypeOf: or } = Object, Tt = globalThis, ui = Tt.trustedTypes, rr = ui ? ui.emptyScript : "", bn = Tt.reactiveElementPolyfillSupport, se = (e, t) => e, Nn = { toAttribute(e, t) {
49
56
  switch (t) {
50
57
  case Boolean:
51
- e = e ? tr : null;
58
+ e = e ? rr : null;
52
59
  break;
53
60
  case Object:
54
61
  case Array:
@@ -73,23 +80,23 @@ const { is: Yo, defineProperty: Wo, getOwnPropertyDescriptor: Go, getOwnProperty
73
80
  }
74
81
  }
75
82
  return n;
76
- } }, Ri = (e, t) => !Yo(e, t), ri = { attribute: !0, type: String, converter: Mn, reflect: !1, hasChanged: Ri };
77
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Ct.litPropertyMetadata ?? (Ct.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
- class Ut extends HTMLElement {
83
+ } }, Vi = (e, t) => !Qo(e, t), di = { attribute: !0, type: String, converter: Nn, reflect: !1, hasChanged: Vi };
84
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Tt.litPropertyMetadata ?? (Tt.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
85
+ class jt extends HTMLElement {
79
86
  static addInitializer(t) {
80
87
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
81
88
  }
82
89
  static get observedAttributes() {
83
90
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
84
91
  }
85
- static createProperty(t, n = ri) {
92
+ static createProperty(t, n = di) {
86
93
  if (n.state && (n.attribute = !1), this._$Ei(), this.elementProperties.set(t, n), !n.noAccessor) {
87
94
  const i = Symbol(), o = this.getPropertyDescriptor(t, i, n);
88
- o !== void 0 && Wo(this.prototype, t, o);
95
+ o !== void 0 && tr(this.prototype, t, o);
89
96
  }
90
97
  }
91
98
  static getPropertyDescriptor(t, n, i) {
92
- const { get: o, set: r } = Go(this.prototype, t) ?? { get() {
99
+ const { get: o, set: r } = er(this.prototype, t) ?? { get() {
93
100
  return this[n];
94
101
  }, set(s) {
95
102
  this[n] = s;
@@ -102,17 +109,17 @@ class Ut extends HTMLElement {
102
109
  }, configurable: !0, enumerable: !0 };
103
110
  }
104
111
  static getPropertyOptions(t) {
105
- return this.elementProperties.get(t) ?? ri;
112
+ return this.elementProperties.get(t) ?? di;
106
113
  }
107
114
  static _$Ei() {
108
- if (this.hasOwnProperty(re("elementProperties"))) return;
109
- const t = Qo(this);
115
+ if (this.hasOwnProperty(se("elementProperties"))) return;
116
+ const t = or(this);
110
117
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
111
118
  }
112
119
  static finalize() {
113
- if (this.hasOwnProperty(re("finalized"))) return;
114
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(re("properties"))) {
115
- const n = this.properties, i = [...Jo(n), ...Ko(n)];
120
+ if (this.hasOwnProperty(se("finalized"))) return;
121
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(se("properties"))) {
122
+ const n = this.properties, i = [...nr(n), ...ir(n)];
116
123
  for (const o of i) this.createProperty(o, n[o]);
117
124
  }
118
125
  const t = this[Symbol.metadata];
@@ -131,8 +138,8 @@ class Ut extends HTMLElement {
131
138
  const n = [];
132
139
  if (Array.isArray(t)) {
133
140
  const i = new Set(t.flat(1 / 0).reverse());
134
- for (const o of i) n.unshift(ii(o));
135
- } else t !== void 0 && n.push(ii(t));
141
+ for (const o of i) n.unshift(li(o));
142
+ } else t !== void 0 && n.push(li(t));
136
143
  return n;
137
144
  }
138
145
  static _$Eu(t, n) {
@@ -161,7 +168,7 @@ class Ut extends HTMLElement {
161
168
  }
162
169
  createRenderRoot() {
163
170
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
164
- return qo(t, this.constructor.elementStyles), t;
171
+ return Ko(t, this.constructor.elementStyles), t;
165
172
  }
166
173
  connectedCallback() {
167
174
  var t;
@@ -186,7 +193,7 @@ class Ut extends HTMLElement {
186
193
  var r;
187
194
  const i = this.constructor.elementProperties.get(t), o = this.constructor._$Eu(t, i);
188
195
  if (o !== void 0 && i.reflect === !0) {
189
- const s = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : Mn).toAttribute(n, i.type);
196
+ const s = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : Nn).toAttribute(n, i.type);
190
197
  this._$Em = t, s == null ? this.removeAttribute(o) : this.setAttribute(o, s), this._$Em = null;
191
198
  }
192
199
  }
@@ -194,13 +201,13 @@ class Ut extends HTMLElement {
194
201
  var r;
195
202
  const i = this.constructor, o = i._$Eh.get(t);
196
203
  if (o !== void 0 && this._$Em !== o) {
197
- const s = i.getPropertyOptions(o), a = typeof s.converter == "function" ? { fromAttribute: s.converter } : ((r = s.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? s.converter : Mn;
204
+ const s = i.getPropertyOptions(o), a = typeof s.converter == "function" ? { fromAttribute: s.converter } : ((r = s.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? s.converter : Nn;
198
205
  this._$Em = o, this[o] = a.fromAttribute(n, s.type), this._$Em = null;
199
206
  }
200
207
  }
201
208
  requestUpdate(t, n, i) {
202
209
  if (t !== void 0) {
203
- if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? Ri)(this[t], n)) return;
210
+ if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? Vi)(this[t], n)) return;
204
211
  this.P(t, n, i);
205
212
  }
206
213
  this.isUpdatePending === !1 && (this._$ES = this._$ET());
@@ -273,65 +280,65 @@ class Ut extends HTMLElement {
273
280
  firstUpdated(t) {
274
281
  }
275
282
  }
276
- Ut.elementStyles = [], Ut.shadowRootOptions = { mode: "open" }, Ut[re("elementProperties")] = /* @__PURE__ */ new Map(), Ut[re("finalized")] = /* @__PURE__ */ new Map(), gn == null || gn({ ReactiveElement: Ut }), (Ct.reactiveElementVersions ?? (Ct.reactiveElementVersions = [])).push("2.0.4");
283
+ jt.elementStyles = [], jt.shadowRootOptions = { mode: "open" }, jt[se("elementProperties")] = /* @__PURE__ */ new Map(), jt[se("finalized")] = /* @__PURE__ */ new Map(), bn == null || bn({ ReactiveElement: jt }), (Tt.reactiveElementVersions ?? (Tt.reactiveElementVersions = [])).push("2.0.4");
277
284
  /**
278
285
  * @license
279
286
  * Copyright 2017 Google LLC
280
287
  * SPDX-License-Identifier: BSD-3-Clause
281
288
  */
282
- const se = globalThis, Le = se.trustedTypes, si = Le ? Le.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, jn = "$lit$", pt = `lit$${Math.random().toFixed(9).slice(2)}$`, Zn = "?" + pt, er = `<${Zn}>`, Lt = document, he = () => Lt.createComment(""), pe = (e) => e === null || typeof e != "object" && typeof e != "function", zn = Array.isArray, Mi = (e) => zn(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", mn = `[
283
- \f\r]`, te = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ai = /-->/g, li = />/g, Ot = RegExp(`>|${mn}(?:([^\\s"'>=/]+)(${mn}*=${mn}*(?:[^
284
- \f\r"'\`<>=]|("|')|))|$)`, "g"), ui = /'/g, ci = /"/g, Ii = /^(?:script|style|textarea|title)$/i, nr = (e) => (t, ...n) => ({ _$litType$: e, strings: t, values: n }), x = nr(1), at = Symbol.for("lit-noChange"), C = Symbol.for("lit-nothing"), di = /* @__PURE__ */ new WeakMap(), Nt = Lt.createTreeWalker(Lt, 129);
285
- function Ni(e, t) {
286
- if (!zn(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
287
- return si !== void 0 ? si.createHTML(t) : t;
288
- }
289
- const Hi = (e, t) => {
289
+ const ae = globalThis, Ve = ae.trustedTypes, ci = Ve ? Ve.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, qn = "$lit$", ft = `lit$${Math.random().toFixed(9).slice(2)}$`, Yn = "?" + ft, sr = `<${Yn}>`, Vt = document, pe = () => Vt.createComment(""), fe = (e) => e === null || typeof e != "object" && typeof e != "function", Wn = Array.isArray, Bi = (e) => Wn(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", vn = `[
290
+ \f\r]`, ee = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, hi = /-->/g, pi = />/g, Dt = RegExp(`>|${vn}(?:([^\\s"'>=/]+)(${vn}*=${vn}*(?:[^
291
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), fi = /'/g, gi = /"/g, ki = /^(?:script|style|textarea|title)$/i, ar = (e) => (t, ...n) => ({ _$litType$: e, strings: t, values: n }), x = ar(1), at = Symbol.for("lit-noChange"), P = Symbol.for("lit-nothing"), mi = /* @__PURE__ */ new WeakMap(), Nt = Vt.createTreeWalker(Vt, 129);
292
+ function Ui(e, t) {
293
+ if (!Wn(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
294
+ return ci !== void 0 ? ci.createHTML(t) : t;
295
+ }
296
+ const Fi = (e, t) => {
290
297
  const n = e.length - 1, i = [];
291
- let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = te;
298
+ let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = ee;
292
299
  for (let a = 0; a < n; a++) {
293
300
  const l = e[a];
294
- let u, d, c = -1, p = 0;
295
- for (; p < l.length && (s.lastIndex = p, d = s.exec(l), d !== null); ) p = s.lastIndex, s === te ? d[1] === "!--" ? s = ai : d[1] !== void 0 ? s = li : d[2] !== void 0 ? (Ii.test(d[2]) && (o = RegExp("</" + d[2], "g")), s = Ot) : d[3] !== void 0 && (s = Ot) : s === Ot ? d[0] === ">" ? (s = o ?? te, c = -1) : d[1] === void 0 ? c = -2 : (c = s.lastIndex - d[2].length, u = d[1], s = d[3] === void 0 ? Ot : d[3] === '"' ? ci : ui) : s === ci || s === ui ? s = Ot : s === ai || s === li ? s = te : (s = Ot, o = void 0);
296
- const f = s === Ot && e[a + 1].startsWith("/>") ? " " : "";
297
- r += s === te ? l + er : c >= 0 ? (i.push(u), l.slice(0, c) + jn + l.slice(c) + pt + f) : l + pt + (c === -2 ? a : f);
301
+ let u, c, d = -1, p = 0;
302
+ for (; p < l.length && (s.lastIndex = p, c = s.exec(l), c !== null); ) p = s.lastIndex, s === ee ? c[1] === "!--" ? s = hi : c[1] !== void 0 ? s = pi : c[2] !== void 0 ? (ki.test(c[2]) && (o = RegExp("</" + c[2], "g")), s = Dt) : c[3] !== void 0 && (s = Dt) : s === Dt ? c[0] === ">" ? (s = o ?? ee, d = -1) : c[1] === void 0 ? d = -2 : (d = s.lastIndex - c[2].length, u = c[1], s = c[3] === void 0 ? Dt : c[3] === '"' ? gi : fi) : s === gi || s === fi ? s = Dt : s === hi || s === pi ? s = ee : (s = Dt, o = void 0);
303
+ const f = s === Dt && e[a + 1].startsWith("/>") ? " " : "";
304
+ r += s === ee ? l + sr : d >= 0 ? (i.push(u), l.slice(0, d) + qn + l.slice(d) + ft + f) : l + ft + (d === -2 ? a : f);
298
305
  }
299
- return [Ni(e, r + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
306
+ return [Ui(e, r + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
300
307
  };
301
- class fe {
308
+ class ge {
302
309
  constructor({ strings: t, _$litType$: n }, i) {
303
310
  let o;
304
311
  this.parts = [];
305
312
  let r = 0, s = 0;
306
- const a = t.length - 1, l = this.parts, [u, d] = Hi(t, n);
307
- if (this.el = fe.createElement(u, i), Nt.currentNode = this.el.content, n === 2 || n === 3) {
308
- const c = this.el.content.firstChild;
309
- c.replaceWith(...c.childNodes);
313
+ const a = t.length - 1, l = this.parts, [u, c] = Fi(t, n);
314
+ if (this.el = ge.createElement(u, i), Nt.currentNode = this.el.content, n === 2 || n === 3) {
315
+ const d = this.el.content.firstChild;
316
+ d.replaceWith(...d.childNodes);
310
317
  }
311
318
  for (; (o = Nt.nextNode()) !== null && l.length < a; ) {
312
319
  if (o.nodeType === 1) {
313
- if (o.hasAttributes()) for (const c of o.getAttributeNames()) if (c.endsWith(jn)) {
314
- const p = d[s++], f = o.getAttribute(c).split(pt), g = /([.?@])?(.*)/.exec(p);
315
- l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Vi : g[1] === "?" ? ki : g[1] === "@" ? Ui : we }), o.removeAttribute(c);
316
- } else c.startsWith(pt) && (l.push({ type: 6, index: r }), o.removeAttribute(c));
317
- if (Ii.test(o.tagName)) {
318
- const c = o.textContent.split(pt), p = c.length - 1;
320
+ if (o.hasAttributes()) for (const d of o.getAttributeNames()) if (d.endsWith(qn)) {
321
+ const p = c[s++], f = o.getAttribute(d).split(ft), g = /([.?@])?(.*)/.exec(p);
322
+ l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? zi : g[1] === "?" ? Xi : g[1] === "@" ? qi : we }), o.removeAttribute(d);
323
+ } else d.startsWith(ft) && (l.push({ type: 6, index: r }), o.removeAttribute(d));
324
+ if (ki.test(o.tagName)) {
325
+ const d = o.textContent.split(ft), p = d.length - 1;
319
326
  if (p > 0) {
320
- o.textContent = Le ? Le.emptyScript : "";
321
- for (let f = 0; f < p; f++) o.append(c[f], he()), Nt.nextNode(), l.push({ type: 2, index: ++r });
322
- o.append(c[p], he());
327
+ o.textContent = Ve ? Ve.emptyScript : "";
328
+ for (let f = 0; f < p; f++) o.append(d[f], pe()), Nt.nextNode(), l.push({ type: 2, index: ++r });
329
+ o.append(d[p], pe());
323
330
  }
324
331
  }
325
- } else if (o.nodeType === 8) if (o.data === Zn) l.push({ type: 2, index: r });
332
+ } else if (o.nodeType === 8) if (o.data === Yn) l.push({ type: 2, index: r });
326
333
  else {
327
- let c = -1;
328
- for (; (c = o.data.indexOf(pt, c + 1)) !== -1; ) l.push({ type: 7, index: r }), c += pt.length - 1;
334
+ let d = -1;
335
+ for (; (d = o.data.indexOf(ft, d + 1)) !== -1; ) l.push({ type: 7, index: r }), d += ft.length - 1;
329
336
  }
330
337
  r++;
331
338
  }
332
339
  }
333
340
  static createElement(t, n) {
334
- const i = Lt.createElement("template");
341
+ const i = Vt.createElement("template");
335
342
  return i.innerHTML = t, i;
336
343
  }
337
344
  }
@@ -339,10 +346,10 @@ function Bt(e, t, n = e, i) {
339
346
  var s, a;
340
347
  if (t === at) return t;
341
348
  let o = i !== void 0 ? (s = n.o) == null ? void 0 : s[i] : n.l;
342
- const r = pe(t) ? void 0 : t._$litDirective$;
349
+ const r = fe(t) ? void 0 : t._$litDirective$;
343
350
  return (o == null ? void 0 : o.constructor) !== r && ((a = o == null ? void 0 : o._$AO) == null || a.call(o, !1), r === void 0 ? o = void 0 : (o = new r(e), o._$AT(e, n, i)), i !== void 0 ? (n.o ?? (n.o = []))[i] = o : n.l = o), o !== void 0 && (t = Bt(e, o._$AS(e, t.values), o, i)), t;
344
351
  }
345
- class Li {
352
+ class ji {
346
353
  constructor(t, n) {
347
354
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = n;
348
355
  }
@@ -353,30 +360,30 @@ class Li {
353
360
  return this._$AM._$AU;
354
361
  }
355
362
  u(t) {
356
- const { el: { content: n }, parts: i } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ?? Lt).importNode(n, !0);
363
+ const { el: { content: n }, parts: i } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ?? Vt).importNode(n, !0);
357
364
  Nt.currentNode = o;
358
365
  let r = Nt.nextNode(), s = 0, a = 0, l = i[0];
359
366
  for (; l !== void 0; ) {
360
367
  if (s === l.index) {
361
368
  let u;
362
- l.type === 2 ? u = new dn(r, r.nextSibling, this, t) : l.type === 1 ? u = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (u = new Fi(r, this, t)), this._$AV.push(u), l = i[++a];
369
+ l.type === 2 ? u = new fn(r, r.nextSibling, this, t) : l.type === 1 ? u = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (u = new Yi(r, this, t)), this._$AV.push(u), l = i[++a];
363
370
  }
364
371
  s !== (l == null ? void 0 : l.index) && (r = Nt.nextNode(), s++);
365
372
  }
366
- return Nt.currentNode = Lt, o;
373
+ return Nt.currentNode = Vt, o;
367
374
  }
368
375
  p(t) {
369
376
  let n = 0;
370
377
  for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, n), n += i.strings.length - 2) : i._$AI(t[n])), n++;
371
378
  }
372
379
  }
373
- let dn = class Bi {
380
+ let fn = class Zi {
374
381
  get _$AU() {
375
382
  var t;
376
383
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this.v;
377
384
  }
378
385
  constructor(t, n, i, o) {
379
- this.type = 2, this._$AH = C, this._$AN = void 0, this._$AA = t, this._$AB = n, this._$AM = i, this.options = o, this.v = (o == null ? void 0 : o.isConnected) ?? !0;
386
+ this.type = 2, this._$AH = P, this._$AN = void 0, this._$AA = t, this._$AB = n, this._$AM = i, this.options = o, this.v = (o == null ? void 0 : o.isConnected) ?? !0;
380
387
  }
381
388
  get parentNode() {
382
389
  let t = this._$AA.parentNode;
@@ -390,7 +397,7 @@ let dn = class Bi {
390
397
  return this._$AB;
391
398
  }
392
399
  _$AI(t, n = this) {
393
- t = Bt(this, t, n), pe(t) ? t === C || t == null || t === "" ? (this._$AH !== C && this._$AR(), this._$AH = C) : t !== this._$AH && t !== at && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Mi(t) ? this.k(t) : this._(t);
400
+ t = Bt(this, t, n), fe(t) ? t === P || t == null || t === "" ? (this._$AH !== P && this._$AR(), this._$AH = P) : t !== this._$AH && t !== at && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Bi(t) ? this.k(t) : this._(t);
394
401
  }
395
402
  O(t) {
396
403
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -399,26 +406,26 @@ let dn = class Bi {
399
406
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
400
407
  }
401
408
  _(t) {
402
- this._$AH !== C && pe(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Lt.createTextNode(t)), this._$AH = t;
409
+ this._$AH !== P && fe(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Vt.createTextNode(t)), this._$AH = t;
403
410
  }
404
411
  $(t) {
405
412
  var r;
406
- const { values: n, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = fe.createElement(Ni(i.h, i.h[0]), this.options)), i);
413
+ const { values: n, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = ge.createElement(Ui(i.h, i.h[0]), this.options)), i);
407
414
  if (((r = this._$AH) == null ? void 0 : r._$AD) === o) this._$AH.p(n);
408
415
  else {
409
- const s = new Li(o, this), a = s.u(this.options);
416
+ const s = new ji(o, this), a = s.u(this.options);
410
417
  s.p(n), this.T(a), this._$AH = s;
411
418
  }
412
419
  }
413
420
  _$AC(t) {
414
- let n = di.get(t.strings);
415
- return n === void 0 && di.set(t.strings, n = new fe(t)), n;
421
+ let n = mi.get(t.strings);
422
+ return n === void 0 && mi.set(t.strings, n = new ge(t)), n;
416
423
  }
417
424
  k(t) {
418
- zn(this._$AH) || (this._$AH = [], this._$AR());
425
+ Wn(this._$AH) || (this._$AH = [], this._$AR());
419
426
  const n = this._$AH;
420
427
  let i, o = 0;
421
- for (const r of t) o === n.length ? n.push(i = new Bi(this.O(he()), this.O(he()), this, this.options)) : i = n[o], i._$AI(r), o++;
428
+ for (const r of t) o === n.length ? n.push(i = new Zi(this.O(pe()), this.O(pe()), this, this.options)) : i = n[o], i._$AI(r), o++;
422
429
  o < n.length && (this._$AR(i && i._$AB.nextSibling, o), n.length = o);
423
430
  }
424
431
  _$AR(t = this._$AA.nextSibling, n) {
@@ -441,46 +448,46 @@ class we {
441
448
  return this._$AM._$AU;
442
449
  }
443
450
  constructor(t, n, i, o, r) {
444
- this.type = 1, this._$AH = C, this._$AN = void 0, this.element = t, this.name = n, this._$AM = o, this.options = r, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = C;
451
+ this.type = 1, this._$AH = P, this._$AN = void 0, this.element = t, this.name = n, this._$AM = o, this.options = r, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = P;
445
452
  }
446
453
  _$AI(t, n = this, i, o) {
447
454
  const r = this.strings;
448
455
  let s = !1;
449
- if (r === void 0) t = Bt(this, t, n, 0), s = !pe(t) || t !== this._$AH && t !== at, s && (this._$AH = t);
456
+ if (r === void 0) t = Bt(this, t, n, 0), s = !fe(t) || t !== this._$AH && t !== at, s && (this._$AH = t);
450
457
  else {
451
458
  const a = t;
452
459
  let l, u;
453
- for (t = r[0], l = 0; l < r.length - 1; l++) u = Bt(this, a[i + l], n, l), u === at && (u = this._$AH[l]), s || (s = !pe(u) || u !== this._$AH[l]), u === C ? t = C : t !== C && (t += (u ?? "") + r[l + 1]), this._$AH[l] = u;
460
+ for (t = r[0], l = 0; l < r.length - 1; l++) u = Bt(this, a[i + l], n, l), u === at && (u = this._$AH[l]), s || (s = !fe(u) || u !== this._$AH[l]), u === P ? t = P : t !== P && (t += (u ?? "") + r[l + 1]), this._$AH[l] = u;
454
461
  }
455
462
  s && !o && this.j(t);
456
463
  }
457
464
  j(t) {
458
- t === C ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
465
+ t === P ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
459
466
  }
460
467
  }
461
- class Vi extends we {
468
+ class zi extends we {
462
469
  constructor() {
463
470
  super(...arguments), this.type = 3;
464
471
  }
465
472
  j(t) {
466
- this.element[this.name] = t === C ? void 0 : t;
473
+ this.element[this.name] = t === P ? void 0 : t;
467
474
  }
468
475
  }
469
- class ki extends we {
476
+ class Xi extends we {
470
477
  constructor() {
471
478
  super(...arguments), this.type = 4;
472
479
  }
473
480
  j(t) {
474
- this.element.toggleAttribute(this.name, !!t && t !== C);
481
+ this.element.toggleAttribute(this.name, !!t && t !== P);
475
482
  }
476
483
  }
477
- class Ui extends we {
484
+ class qi extends we {
478
485
  constructor(t, n, i, o, r) {
479
486
  super(t, n, i, o, r), this.type = 5;
480
487
  }
481
488
  _$AI(t, n = this) {
482
- if ((t = Bt(this, t, n, 0) ?? C) === at) return;
483
- const i = this._$AH, o = t === C && i !== C || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, r = t !== C && (i === C || o);
489
+ if ((t = Bt(this, t, n, 0) ?? P) === at) return;
490
+ const i = this._$AH, o = t === P && i !== P || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, r = t !== P && (i === P || o);
484
491
  o && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
485
492
  }
486
493
  handleEvent(t) {
@@ -488,7 +495,7 @@ class Ui extends we {
488
495
  typeof this._$AH == "function" ? this._$AH.call(((n = this.options) == null ? void 0 : n.host) ?? this.element, t) : this._$AH.handleEvent(t);
489
496
  }
490
497
  }
491
- class Fi {
498
+ class Yi {
492
499
  constructor(t, n, i) {
493
500
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = n, this.options = i;
494
501
  }
@@ -499,14 +506,14 @@ class Fi {
499
506
  Bt(this, t);
500
507
  }
501
508
  }
502
- const ir = { M: jn, P: pt, A: Zn, C: 1, L: Hi, R: Li, D: Mi, V: Bt, I: dn, H: we, N: ki, U: Ui, B: Vi, F: Fi }, yn = se.litHtmlPolyfillSupport;
503
- yn == null || yn(fe, dn), (se.litHtmlVersions ?? (se.litHtmlVersions = [])).push("3.2.0");
504
- const or = (e, t, n) => {
509
+ const lr = { M: qn, P: ft, A: Yn, C: 1, L: Fi, R: ji, D: Bi, V: Bt, I: fn, H: we, N: Xi, U: qi, B: zi, F: Yi }, wn = ae.litHtmlPolyfillSupport;
510
+ wn == null || wn(ge, fn), (ae.litHtmlVersions ?? (ae.litHtmlVersions = [])).push("3.2.0");
511
+ const ur = (e, t, n) => {
505
512
  const i = (n == null ? void 0 : n.renderBefore) ?? t;
506
513
  let o = i._$litPart$;
507
514
  if (o === void 0) {
508
515
  const r = (n == null ? void 0 : n.renderBefore) ?? null;
509
- i._$litPart$ = o = new dn(t.insertBefore(he(), r), r, void 0, n ?? {});
516
+ i._$litPart$ = o = new fn(t.insertBefore(pe(), r), r, void 0, n ?? {});
510
517
  }
511
518
  return o._$AI(e), o;
512
519
  };
@@ -515,7 +522,7 @@ const or = (e, t, n) => {
515
522
  * Copyright 2017 Google LLC
516
523
  * SPDX-License-Identifier: BSD-3-Clause
517
524
  */
518
- class it extends Ut {
525
+ class tt extends jt {
519
526
  constructor() {
520
527
  super(...arguments), this.renderOptions = { host: this }, this.o = void 0;
521
528
  }
@@ -526,7 +533,7 @@ class it extends Ut {
526
533
  }
527
534
  update(t) {
528
535
  const n = this.render();
529
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this.o = or(n, this.renderRoot, this.renderOptions);
536
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this.o = ur(n, this.renderRoot, this.renderOptions);
530
537
  }
531
538
  connectedCallback() {
532
539
  var t;
@@ -540,17 +547,17 @@ class it extends Ut {
540
547
  return at;
541
548
  }
542
549
  }
543
- var Oi;
544
- it._$litElement$ = !0, it.finalized = !0, (Oi = globalThis.litElementHydrateSupport) == null || Oi.call(globalThis, { LitElement: it });
545
- const bn = globalThis.litElementPolyfillSupport;
546
- bn == null || bn({ LitElement: it });
550
+ var Ii;
551
+ tt._$litElement$ = !0, tt.finalized = !0, (Ii = globalThis.litElementHydrateSupport) == null || Ii.call(globalThis, { LitElement: tt });
552
+ const xn = globalThis.litElementPolyfillSupport;
553
+ xn == null || xn({ LitElement: tt });
547
554
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.0");
548
555
  /**
549
556
  * @license
550
557
  * Copyright 2021 Google LLC
551
558
  * SPDX-License-Identifier: BSD-3-Clause
552
559
  */
553
- function G(e, t, n) {
560
+ function F(e, t, n) {
554
561
  return e ? t(e) : n == null ? void 0 : n(e);
555
562
  }
556
563
  /**
@@ -558,8 +565,8 @@ function G(e, t, n) {
558
565
  * Copyright 2017 Google LLC
559
566
  * SPDX-License-Identifier: BSD-3-Clause
560
567
  */
561
- const Et = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Xn = (e) => (...t) => ({ _$litDirective$: e, values: t });
562
- class qn {
568
+ const Et = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Gn = (e) => (...t) => ({ _$litDirective$: e, values: t });
569
+ class Jn {
563
570
  constructor(t) {
564
571
  }
565
572
  get _$AU() {
@@ -580,12 +587,12 @@ class qn {
580
587
  * Copyright 2020 Google LLC
581
588
  * SPDX-License-Identifier: BSD-3-Clause
582
589
  */
583
- const { I: rr } = ir, sr = (e) => e.strings === void 0, hi = () => document.createComment(""), ee = (e, t, n) => {
590
+ const { I: dr } = lr, cr = (e) => e.strings === void 0, yi = () => document.createComment(""), ne = (e, t, n) => {
584
591
  var r;
585
592
  const i = e._$AA.parentNode, o = t === void 0 ? e._$AB : t._$AA;
586
593
  if (n === void 0) {
587
- const s = i.insertBefore(hi(), o), a = i.insertBefore(hi(), o);
588
- n = new rr(s, a, e, e.options);
594
+ const s = i.insertBefore(yi(), o), a = i.insertBefore(yi(), o);
595
+ n = new dr(s, a, e, e.options);
589
596
  } else {
590
597
  const s = n._$AB.nextSibling, a = n._$AM, l = a !== e;
591
598
  if (l) {
@@ -595,13 +602,13 @@ const { I: rr } = ir, sr = (e) => e.strings === void 0, hi = () => document.crea
595
602
  if (s !== o || l) {
596
603
  let u = n._$AA;
597
604
  for (; u !== s; ) {
598
- const d = u.nextSibling;
599
- i.insertBefore(u, o), u = d;
605
+ const c = u.nextSibling;
606
+ i.insertBefore(u, o), u = c;
600
607
  }
601
608
  }
602
609
  }
603
610
  return n;
604
- }, Dt = (e, t, n = e) => (e._$AI(t, n), e), ar = {}, ji = (e, t = ar) => e._$AH = t, lr = (e) => e._$AH, vn = (e) => {
611
+ }, Rt = (e, t, n = e) => (e._$AI(t, n), e), hr = {}, Wi = (e, t = hr) => e._$AH = t, pr = (e) => e._$AH, En = (e) => {
605
612
  var i;
606
613
  (i = e._$AP) == null || i.call(e, !1, !0);
607
614
  let t = e._$AA;
@@ -616,11 +623,11 @@ const { I: rr } = ir, sr = (e) => e.strings === void 0, hi = () => document.crea
616
623
  * Copyright 2017 Google LLC
617
624
  * SPDX-License-Identifier: BSD-3-Clause
618
625
  */
619
- const pi = (e, t, n) => {
626
+ const bi = (e, t, n) => {
620
627
  const i = /* @__PURE__ */ new Map();
621
628
  for (let o = t; o <= n; o++) i.set(e[o], o);
622
629
  return i;
623
- }, ur = Xn(class extends qn {
630
+ }, fr = Gn(class extends Jn {
624
631
  constructor(e) {
625
632
  if (super(e), e.type !== Et.CHILD) throw Error("repeat() can only be used in text expressions");
626
633
  }
@@ -636,34 +643,34 @@ const pi = (e, t, n) => {
636
643
  return this.dt(e, t, n).values;
637
644
  }
638
645
  update(e, [t, n, i]) {
639
- const o = lr(e), { values: r, keys: s } = this.dt(t, n, i);
646
+ const o = pr(e), { values: r, keys: s } = this.dt(t, n, i);
640
647
  if (!Array.isArray(o)) return this.ut = s, r;
641
648
  const a = this.ut ?? (this.ut = []), l = [];
642
- let u, d, c = 0, p = o.length - 1, f = 0, g = r.length - 1;
643
- for (; c <= p && f <= g; ) if (o[c] === null) c++;
649
+ let u, c, d = 0, p = o.length - 1, f = 0, g = r.length - 1;
650
+ for (; d <= p && f <= g; ) if (o[d] === null) d++;
644
651
  else if (o[p] === null) p--;
645
- else if (a[c] === s[f]) l[f] = Dt(o[c], r[f]), c++, f++;
646
- else if (a[p] === s[g]) l[g] = Dt(o[p], r[g]), p--, g--;
647
- else if (a[c] === s[g]) l[g] = Dt(o[c], r[g]), ee(e, l[g + 1], o[c]), c++, g--;
648
- else if (a[p] === s[f]) l[f] = Dt(o[p], r[f]), ee(e, o[c], o[p]), p--, f++;
649
- else if (u === void 0 && (u = pi(s, f, g), d = pi(a, c, p)), u.has(a[c])) if (u.has(a[p])) {
650
- const y = d.get(s[f]), O = y !== void 0 ? o[y] : null;
652
+ else if (a[d] === s[f]) l[f] = Rt(o[d], r[f]), d++, f++;
653
+ else if (a[p] === s[g]) l[g] = Rt(o[p], r[g]), p--, g--;
654
+ else if (a[d] === s[g]) l[g] = Rt(o[d], r[g]), ne(e, l[g + 1], o[d]), d++, g--;
655
+ else if (a[p] === s[f]) l[f] = Rt(o[p], r[f]), ne(e, o[d], o[p]), p--, f++;
656
+ else if (u === void 0 && (u = bi(s, f, g), c = bi(a, d, p)), u.has(a[d])) if (u.has(a[p])) {
657
+ const y = c.get(s[f]), O = y !== void 0 ? o[y] : null;
651
658
  if (O === null) {
652
- const I = ee(e, o[c]);
653
- Dt(I, r[f]), l[f] = I;
654
- } else l[f] = Dt(O, r[f]), ee(e, o[c], O), o[y] = null;
659
+ const M = ne(e, o[d]);
660
+ Rt(M, r[f]), l[f] = M;
661
+ } else l[f] = Rt(O, r[f]), ne(e, o[d], O), o[y] = null;
655
662
  f++;
656
- } else vn(o[p]), p--;
657
- else vn(o[c]), c++;
663
+ } else En(o[p]), p--;
664
+ else En(o[d]), d++;
658
665
  for (; f <= g; ) {
659
- const y = ee(e, l[g + 1]);
660
- Dt(y, r[f]), l[f++] = y;
666
+ const y = ne(e, l[g + 1]);
667
+ Rt(y, r[f]), l[f++] = y;
661
668
  }
662
- for (; c <= p; ) {
663
- const y = o[c++];
664
- y !== null && vn(y);
669
+ for (; d <= p; ) {
670
+ const y = o[d++];
671
+ y !== null && En(y);
665
672
  }
666
- return this.ut = s, ji(e, l), at;
673
+ return this.ut = s, Wi(e, l), at;
667
674
  }
668
675
  });
669
676
  /**
@@ -672,8 +679,8 @@ const pi = (e, t, n) => {
672
679
  * @license BSD-2-Clause
673
680
  * @preserve
674
681
  */
675
- var S = (e) => e !== void 0, Zi = (e, t, n) => t in e ? e[t] : e[t] = n;
676
- const ge = {
682
+ var $ = (e) => e !== void 0, Gi = (e, t, n) => t in e ? e[t] : e[t] = n;
683
+ const me = {
677
684
  ELEMENT: 1,
678
685
  ATTRIBUTE: 2,
679
686
  TEXT: 3,
@@ -687,7 +694,7 @@ const ge = {
687
694
  DOCUMENT_FRAGMENT: 11,
688
695
  NOTATION: 12
689
696
  };
690
- class cr {
697
+ class gr {
691
698
  /**
692
699
  * XML DOM parser
693
700
  * @constructor
@@ -712,56 +719,56 @@ class cr {
712
719
  * @api
713
720
  */
714
721
  getAllTextContent(t, n) {
715
- return hn(t, n).join("");
722
+ return gn(t, n).join("");
716
723
  }
717
724
  }
718
- function hn(e, t) {
719
- return zi(e, t, []).join("");
725
+ function gn(e, t) {
726
+ return Ji(e, t, []).join("");
720
727
  }
721
- function zi(e, t, n) {
722
- if (e.nodeType === ge.CDATA_SECTION || e.nodeType === ge.TEXT)
728
+ function Ji(e, t, n) {
729
+ if (e.nodeType === me.CDATA_SECTION || e.nodeType === me.TEXT)
723
730
  t ? n.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g, "")) : n.push(e.nodeValue);
724
731
  else {
725
732
  var i;
726
733
  for (i = e.firstChild; i; i = i.nextSibling)
727
- zi(i, t, n);
734
+ Ji(i, t, n);
728
735
  }
729
736
  return n;
730
737
  }
731
- function dr(e, t, n, i) {
732
- for (var o = hr(t); o; o = pr(o)) {
738
+ function mr(e, t, n, i) {
739
+ for (var o = yr(t); o; o = br(o)) {
733
740
  var r = o.namespaceURI || null, s = e[r];
734
- if (S(s)) {
741
+ if ($(s)) {
735
742
  var a = s[o.localName];
736
- S(a) && a.call(i, o, n);
743
+ $(a) && a.call(i, o, n);
737
744
  }
738
745
  }
739
746
  }
740
- function hr(e) {
747
+ function yr(e) {
741
748
  let t = e.firstElementChild || e.firstChild;
742
- for (; t && t.nodeType !== ge.ELEMENT; )
749
+ for (; t && t.nodeType !== me.ELEMENT; )
743
750
  t = t.nextSibling;
744
751
  return t;
745
752
  }
746
- function pr(e) {
753
+ function br(e) {
747
754
  let t = e.nextElementSibling || e.nextSibling;
748
- for (; t && t.nodeType !== ge.ELEMENT; )
755
+ for (; t && t.nodeType !== me.ELEMENT; )
749
756
  t = t.nextSibling;
750
757
  return t;
751
758
  }
752
- function q(e, t, n) {
759
+ function Y(e, t, n) {
753
760
  return (
754
761
  /** @type {Object.<string, Object.<string, XMLParser.Parser>>} */
755
- fr(e, t, n)
762
+ vr(e, t, n)
756
763
  );
757
764
  }
758
- function fr(e, t, n) {
759
- var i = S(n) ? n : {}, o, r;
765
+ function vr(e, t, n) {
766
+ var i = $(n) ? n : {}, o, r;
760
767
  for (o = 0, r = e.length; o < r; ++o)
761
768
  i[e[o]] = t;
762
769
  return i;
763
770
  }
764
- function Xi(e, t) {
771
+ function Ki(e, t) {
765
772
  return (
766
773
  /**
767
774
  * @param {Node} node Node.
@@ -769,19 +776,19 @@ function Xi(e, t) {
769
776
  */
770
777
  function(n, i) {
771
778
  var o = e.call(
772
- S(t) ? t : this,
779
+ $(t) ? t : this,
773
780
  n,
774
781
  i
775
782
  );
776
- if (S(o)) {
783
+ if ($(o)) {
777
784
  var r = i[i.length - 1];
778
785
  r.push(o);
779
786
  }
780
787
  }
781
788
  );
782
789
  }
783
- function F(e, t, n, i, o) {
784
- return i.push(e), dr(t, n, i, o), i.pop();
790
+ function j(e, t, n, i, o) {
791
+ return i.push(e), mr(t, n, i, o), i.pop();
785
792
  }
786
793
  function m(e, t, n) {
787
794
  return (
@@ -791,21 +798,21 @@ function m(e, t, n) {
791
798
  */
792
799
  function(i, o) {
793
800
  let r = e.call(
794
- S(n) ? n : this,
801
+ $(n) ? n : this,
795
802
  i,
796
803
  o
797
804
  );
798
- if (S(r)) {
805
+ if ($(r)) {
799
806
  var s = (
800
807
  /** @type {Object} */
801
808
  o[o.length - 1]
802
- ), a = S(t) ? t : i.localName;
809
+ ), a = $(t) ? t : i.localName;
803
810
  s[a] = r;
804
811
  }
805
812
  }
806
813
  );
807
814
  }
808
- function et(e, t, n) {
815
+ function nt(e, t, n) {
809
816
  return (
810
817
  /**
811
818
  * @param {Node} node Node.
@@ -813,67 +820,67 @@ function et(e, t, n) {
813
820
  */
814
821
  function(i, o) {
815
822
  var r = e.call(
816
- S(n) ? n : this,
823
+ $(n) ? n : this,
817
824
  i,
818
825
  o
819
826
  );
820
- if (S(r)) {
827
+ if ($(r)) {
821
828
  var s = (
822
829
  /** @type {Object} */
823
830
  o[o.length - 1]
824
- ), a = S(t) ? t : i.localName, l = Zi(s, a, []);
831
+ ), a = $(t) ? t : i.localName, l = Gi(s, a, []);
825
832
  l.push(r);
826
833
  }
827
834
  }
828
835
  );
829
836
  }
830
- const gr = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
831
- function mr(e) {
832
- return e.replace(gr, "");
837
+ const wr = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
838
+ function xr(e) {
839
+ return e.replace(wr, "");
833
840
  }
834
841
  function Ht(e) {
835
842
  const t = /^\s*(true|1)|(false|0)\s*$/.exec(e);
836
843
  if (t)
837
- return S(t[1]) || !1;
844
+ return $(t[1]) || !1;
838
845
  }
839
- function jt(e) {
840
- return ft(hn(e, !1));
846
+ function zt(e) {
847
+ return gt(gn(e, !1));
841
848
  }
842
- function ft(e) {
849
+ function gt(e) {
843
850
  const t = /^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(e);
844
851
  if (t)
845
852
  return parseFloat(t[1]);
846
853
  }
847
- function wn(e) {
848
- return Be(hn(e, !1));
854
+ function $n(e) {
855
+ return Be(gn(e, !1));
849
856
  }
850
857
  function Be(e) {
851
858
  const t = /^\s*(\d+)\s*$/.exec(e);
852
859
  if (t)
853
860
  return parseInt(t[1], 10);
854
861
  }
855
- function A(e) {
856
- return mr(hn(e, !1));
862
+ function C(e) {
863
+ return xr(gn(e, !1));
857
864
  }
858
- const yr = "http://www.w3.org/1999/xlink";
859
- function Yn(e) {
860
- return e.getAttributeNS(yr, "href");
865
+ const Er = "http://www.w3.org/1999/xlink";
866
+ function Kn(e) {
867
+ return e.getAttributeNS(Er, "href");
861
868
  }
862
- function br(e, t) {
863
- return F({}, zr, e, t);
869
+ function $r(e, t) {
870
+ return j({}, Gr, e, t);
864
871
  }
865
- function qi(e) {
872
+ function Qi(e) {
866
873
  return [
867
- ft(e.getAttribute("minx")),
868
- ft(e.getAttribute("miny")),
869
- ft(e.getAttribute("maxx")),
870
- ft(e.getAttribute("maxy"))
874
+ gt(e.getAttribute("minx")),
875
+ gt(e.getAttribute("miny")),
876
+ gt(e.getAttribute("maxx")),
877
+ gt(e.getAttribute("maxy"))
871
878
  ];
872
879
  }
873
- function vr(e, t) {
874
- const n = qi(e), i = [
875
- ft(e.getAttribute("resx")),
876
- ft(e.getAttribute("resy"))
880
+ function Sr(e, t) {
881
+ const n = Qi(e), i = [
882
+ gt(e.getAttribute("resx")),
883
+ gt(e.getAttribute("resy"))
877
884
  ];
878
885
  return {
879
886
  crs: e.getAttribute("CRS") || e.getAttribute("SRS"),
@@ -881,23 +888,23 @@ function vr(e, t) {
881
888
  res: i
882
889
  };
883
890
  }
884
- function wr(e, t) {
885
- const n = qi(e);
886
- if (!(!S(n[0]) || !S(n[1]) || !S(n[2]) || !S(n[3])))
891
+ function Ar(e, t) {
892
+ const n = Qi(e);
893
+ if (!(!$(n[0]) || !$(n[1]) || !$(n[2]) || !$(n[3])))
887
894
  return n;
888
895
  }
889
- function Er(e, t) {
896
+ function Cr(e, t) {
890
897
  const n = parseFloat(e.getAttribute("min")), i = parseFloat(e.getAttribute("max"));
891
898
  return { min: n, max: i };
892
899
  }
893
- function xr(e, t) {
894
- const n = F(
900
+ function _r(e, t) {
901
+ const n = j(
895
902
  {},
896
- Xr,
903
+ Jr,
897
904
  e,
898
905
  t
899
906
  );
900
- if (!S(n)) return;
907
+ if (!$(n)) return;
901
908
  const i = (
902
909
  /** @type {number|undefined} */
903
910
  n.westBoundLongitude
@@ -911,7 +918,7 @@ function xr(e, t) {
911
918
  /** @type {number|undefined} */
912
919
  n.northBoundLatitude
913
920
  );
914
- if (!(!S(i) || !S(o) || !S(r) || !S(s)))
921
+ if (!(!$(i) || !$(o) || !$(r) || !$(s)))
915
922
  return [
916
923
  i,
917
924
  o,
@@ -919,91 +926,91 @@ function xr(e, t) {
919
926
  s
920
927
  ];
921
928
  }
922
- function Sr(e, t) {
923
- return F({}, Vr, e, t);
929
+ function Tr(e, t) {
930
+ return j({}, Zr, e, t);
924
931
  }
925
- function $r(e, t) {
926
- return F({}, kr, e, t);
932
+ function Pr(e, t) {
933
+ return j({}, zr, e, t);
927
934
  }
928
- function Ar(e, t) {
929
- return F(
935
+ function Or(e, t) {
936
+ return j(
930
937
  {},
931
- Ur,
938
+ Xr,
932
939
  e,
933
940
  t
934
941
  );
935
942
  }
936
- function _r(e, t) {
937
- return F(
943
+ function Dr(e, t) {
944
+ return j(
938
945
  {},
939
- Fr,
946
+ qr,
940
947
  e,
941
948
  t
942
949
  );
943
950
  }
944
- function Cr(e, t) {
945
- return F(
951
+ function Rr(e, t) {
952
+ return j(
946
953
  {},
947
- jr,
954
+ Yr,
948
955
  e,
949
956
  t
950
957
  );
951
958
  }
952
- function Tr(e, t) {
953
- return F(
959
+ function Lr(e, t) {
960
+ return j(
954
961
  [],
955
- Zr,
962
+ Wr,
956
963
  e,
957
964
  t
958
965
  );
959
966
  }
960
- function Pr(e, t) {
967
+ function Mr(e, t) {
961
968
  const n = Ht(e.getAttribute("queryable"));
962
- return F(
969
+ return j(
963
970
  {
964
- queryable: S(n) ? n : !1
971
+ queryable: $(n) ? n : !1
965
972
  },
966
- Gi,
973
+ no,
967
974
  e,
968
975
  t
969
976
  );
970
977
  }
971
- function Or(e, t) {
978
+ function Ir(e, t) {
972
979
  var n = (
973
980
  /** @type {Object.<string,*>} */
974
981
  t[t.length - 1]
975
982
  );
976
983
  const i = (
977
984
  /** @type {Object.<string,*>} */
978
- F(
985
+ j(
979
986
  {},
980
- Gi,
987
+ no,
981
988
  e,
982
989
  t
983
990
  )
984
991
  );
985
- if (!S(i)) return;
992
+ if (!$(i)) return;
986
993
  let o = Ht(e.getAttribute("queryable"));
987
- S(o) || (o = n.queryable), i.queryable = S(o) ? o : !1;
994
+ $(o) || (o = n.queryable), i.queryable = $(o) ? o : !1;
988
995
  let r = Be(e.getAttribute("cascaded"));
989
- S(r) || (r = n.cascaded), i.cascaded = r;
996
+ $(r) || (r = n.cascaded), i.cascaded = r;
990
997
  let s = Ht(e.getAttribute("opaque"));
991
- S(s) || (s = n.opaque), i.opaque = S(s) ? s : !1;
998
+ $(s) || (s = n.opaque), i.opaque = $(s) ? s : !1;
992
999
  let a = Ht(e.getAttribute("noSubsets"));
993
- S(a) || (a = n.noSubsets), i.noSubsets = S(a) ? a : !1;
994
- let l = ft(e.getAttribute("fixedWidth"));
995
- S(l) || (l = n.fixedWidth), i.fixedWidth = l;
996
- let u = ft(e.getAttribute("fixedHeight"));
997
- S(u) || (u = n.fixedHeight), i.fixedHeight = u;
998
- const d = ["Style", "CRS", "AuthorityURL"];
999
- for (let p = 0, f = d.length; p < f; p++) {
1000
- const g = d[p], y = n[g];
1001
- if (S(y)) {
1002
- let O = Zi(i, g, []);
1000
+ $(a) || (a = n.noSubsets), i.noSubsets = $(a) ? a : !1;
1001
+ let l = gt(e.getAttribute("fixedWidth"));
1002
+ $(l) || (l = n.fixedWidth), i.fixedWidth = l;
1003
+ let u = gt(e.getAttribute("fixedHeight"));
1004
+ $(u) || (u = n.fixedHeight), i.fixedHeight = u;
1005
+ const c = ["Style", "CRS", "AuthorityURL"];
1006
+ for (let p = 0, f = c.length; p < f; p++) {
1007
+ const g = c[p], y = n[g];
1008
+ if ($(y)) {
1009
+ let O = Gi(i, g, []);
1003
1010
  O = O.concat(y), i[g] = O;
1004
1011
  }
1005
1012
  }
1006
- const c = [
1013
+ const d = [
1007
1014
  "EX_GeographicBoundingBox",
1008
1015
  "BoundingBox",
1009
1016
  "Dimension",
@@ -1011,16 +1018,16 @@ function Or(e, t) {
1011
1018
  "MinScaleDenominator",
1012
1019
  "MaxScaleDenominator"
1013
1020
  ];
1014
- for (let p = 0, f = c.length; p < f; p++) {
1015
- const g = c[p], y = i[g];
1016
- if (!S(y)) {
1021
+ for (let p = 0, f = d.length; p < f; p++) {
1022
+ const g = d[p], y = i[g];
1023
+ if (!$(y)) {
1017
1024
  const O = n[g];
1018
1025
  i[g] = O;
1019
1026
  }
1020
1027
  }
1021
1028
  return i;
1022
1029
  }
1023
- function Dr(e, t) {
1030
+ function Nr(e, t) {
1024
1031
  return {
1025
1032
  name: e.getAttribute("name"),
1026
1033
  units: e.getAttribute("units"),
@@ -1029,32 +1036,32 @@ function Dr(e, t) {
1029
1036
  multipleValues: Ht(e.getAttribute("multipleValues")),
1030
1037
  nearestValue: Ht(e.getAttribute("nearestValue")),
1031
1038
  current: Ht(e.getAttribute("current")),
1032
- values: A(e)
1039
+ values: C(e)
1033
1040
  };
1034
1041
  }
1035
- function mt(e, t) {
1036
- return F(
1042
+ function yt(e, t) {
1043
+ return j(
1037
1044
  {},
1038
- Kr,
1045
+ is,
1039
1046
  e,
1040
1047
  t
1041
1048
  );
1042
1049
  }
1043
- function Rr(e, t) {
1044
- return F({}, qr, e, t);
1050
+ function Hr(e, t) {
1051
+ return j({}, Kr, e, t);
1045
1052
  }
1046
- function Mr(e, t) {
1047
- return F({}, Wr, e, t);
1053
+ function Vr(e, t) {
1054
+ return j({}, ts, e, t);
1048
1055
  }
1049
- function Ir(e, t) {
1050
- return F({}, Gr, e, t);
1056
+ function Br(e, t) {
1057
+ return j({}, es, e, t);
1051
1058
  }
1052
- function En(e, t) {
1053
- return F({}, Yr, e, t);
1059
+ function Sn(e, t) {
1060
+ return j({}, Qr, e, t);
1054
1061
  }
1055
- function Yi(e, t) {
1056
- var n = mt(e, t);
1057
- if (S(n)) {
1062
+ function to(e, t) {
1063
+ var n = yt(e, t);
1064
+ if ($(n)) {
1058
1065
  const i = [
1059
1066
  Be(e.getAttribute("width")),
1060
1067
  Be(e.getAttribute("height"))
@@ -1062,187 +1069,187 @@ function Yi(e, t) {
1062
1069
  return n.size = i, n;
1063
1070
  }
1064
1071
  }
1065
- function Nr(e, t) {
1066
- var n = mt(e, t);
1067
- if (S(n))
1072
+ function kr(e, t) {
1073
+ var n = yt(e, t);
1074
+ if ($(n))
1068
1075
  return n.name = e.getAttribute("name"), n;
1069
1076
  }
1070
- function Hr(e, t) {
1071
- var n = mt(e, t);
1072
- if (S(n))
1077
+ function Ur(e, t) {
1078
+ var n = yt(e, t);
1079
+ if ($(n))
1073
1080
  return n.type = e.getAttribute("type"), n;
1074
1081
  }
1075
- function Lr(e, t) {
1076
- return F({}, Jr, e, t);
1082
+ function Fr(e, t) {
1083
+ return j({}, ns, e, t);
1077
1084
  }
1078
- function Wi(e, t) {
1079
- return F(
1085
+ function eo(e, t) {
1086
+ return j(
1080
1087
  [],
1081
- Qr,
1088
+ os,
1082
1089
  e,
1083
1090
  t
1084
1091
  );
1085
1092
  }
1086
- const Y = [
1093
+ const W = [
1087
1094
  null,
1088
1095
  "http://www.opengis.net/wms"
1089
- ], Br = q(
1090
- Y,
1096
+ ], jr = Y(
1097
+ W,
1091
1098
  {
1092
- Service: m($r),
1093
- Capability: m(Sr)
1099
+ Service: m(Pr),
1100
+ Capability: m(Tr)
1094
1101
  }
1095
- ), Vr = q(
1096
- Y,
1102
+ ), Zr = Y(
1103
+ W,
1097
1104
  {
1098
- Request: m(Rr),
1099
- Exception: m(Tr),
1100
- Layer: m(Pr)
1105
+ Request: m(Hr),
1106
+ Exception: m(Lr),
1107
+ Layer: m(Mr)
1101
1108
  }
1102
- ), kr = q(
1103
- Y,
1109
+ ), zr = Y(
1110
+ W,
1104
1111
  {
1105
- Name: m(A),
1106
- Title: m(A),
1107
- Abstract: m(A),
1108
- KeywordList: m(Wi),
1109
- OnlineResource: m(Yn),
1110
- ContactInformation: m(Ar),
1111
- Fees: m(A),
1112
- AccessConstraints: m(A),
1113
- LayerLimit: m(wn),
1114
- MaxWidth: m(wn),
1115
- MaxHeight: m(wn)
1116
- }
1117
- ), Ur = q(
1118
- Y,
1112
+ Name: m(C),
1113
+ Title: m(C),
1114
+ Abstract: m(C),
1115
+ KeywordList: m(eo),
1116
+ OnlineResource: m(Kn),
1117
+ ContactInformation: m(Or),
1118
+ Fees: m(C),
1119
+ AccessConstraints: m(C),
1120
+ LayerLimit: m($n),
1121
+ MaxWidth: m($n),
1122
+ MaxHeight: m($n)
1123
+ }
1124
+ ), Xr = Y(
1125
+ W,
1119
1126
  {
1120
- ContactPersonPrimary: m(_r),
1121
- ContactPosition: m(A),
1122
- ContactAddress: m(Cr),
1123
- ContactVoiceTelephone: m(A),
1124
- ContactFacsimileTelephone: m(A),
1125
- ContactElectronicMailAddress: m(A)
1126
- }
1127
- ), Fr = q(
1128
- Y,
1127
+ ContactPersonPrimary: m(Dr),
1128
+ ContactPosition: m(C),
1129
+ ContactAddress: m(Rr),
1130
+ ContactVoiceTelephone: m(C),
1131
+ ContactFacsimileTelephone: m(C),
1132
+ ContactElectronicMailAddress: m(C)
1133
+ }
1134
+ ), qr = Y(
1135
+ W,
1129
1136
  {
1130
- ContactPerson: m(A),
1131
- ContactOrganization: m(A)
1137
+ ContactPerson: m(C),
1138
+ ContactOrganization: m(C)
1132
1139
  }
1133
- ), jr = q(
1134
- Y,
1140
+ ), Yr = Y(
1141
+ W,
1135
1142
  {
1136
- AddressType: m(A),
1137
- Address: m(A),
1138
- City: m(A),
1139
- StateOrProvince: m(A),
1140
- PostCode: m(A),
1141
- Country: m(A)
1142
- }
1143
- ), Zr = q(
1144
- Y,
1143
+ AddressType: m(C),
1144
+ Address: m(C),
1145
+ City: m(C),
1146
+ StateOrProvince: m(C),
1147
+ PostCode: m(C),
1148
+ Country: m(C)
1149
+ }
1150
+ ), Wr = Y(
1151
+ W,
1145
1152
  {
1146
- Format: Xi(A)
1153
+ Format: Ki(C)
1147
1154
  }
1148
- ), Gi = q(
1149
- Y,
1155
+ ), no = Y(
1156
+ W,
1150
1157
  {
1151
- Name: m(A),
1152
- Title: m(A),
1153
- Abstract: m(A),
1154
- KeywordList: m(Wi),
1155
- CRS: et(A),
1156
- SRS: et(A),
1157
- EX_GeographicBoundingBox: m(xr),
1158
- LatLonBoundingBox: m(wr),
1159
- BoundingBox: et(vr),
1160
- Dimension: et(Dr),
1161
- Attribution: m(br),
1162
- AuthorityURL: et(Nr),
1163
- Identifier: et(A),
1164
- MetadataURL: et(Hr),
1165
- DataURL: et(mt),
1166
- FeatureListURL: et(mt),
1167
- Style: et(Lr),
1168
- MinScaleDenominator: m(jt),
1169
- MaxScaleDenominator: m(jt),
1170
- ScaleHint: m(Er),
1171
- Layer: et(Or)
1172
- }
1173
- ), zr = q(
1174
- Y,
1158
+ Name: m(C),
1159
+ Title: m(C),
1160
+ Abstract: m(C),
1161
+ KeywordList: m(eo),
1162
+ CRS: nt(C),
1163
+ SRS: nt(C),
1164
+ EX_GeographicBoundingBox: m(_r),
1165
+ LatLonBoundingBox: m(Ar),
1166
+ BoundingBox: nt(Sr),
1167
+ Dimension: nt(Nr),
1168
+ Attribution: m($r),
1169
+ AuthorityURL: nt(kr),
1170
+ Identifier: nt(C),
1171
+ MetadataURL: nt(Ur),
1172
+ DataURL: nt(yt),
1173
+ FeatureListURL: nt(yt),
1174
+ Style: nt(Fr),
1175
+ MinScaleDenominator: m(zt),
1176
+ MaxScaleDenominator: m(zt),
1177
+ ScaleHint: m(Cr),
1178
+ Layer: nt(Ir)
1179
+ }
1180
+ ), Gr = Y(
1181
+ W,
1175
1182
  {
1176
- Title: m(A),
1177
- OnlineResource: m(Yn),
1178
- LogoURL: m(Yi)
1179
- }
1180
- ), Xr = q(Y, {
1181
- westBoundLongitude: m(jt),
1182
- eastBoundLongitude: m(jt),
1183
- southBoundLatitude: m(jt),
1184
- northBoundLatitude: m(jt)
1185
- }), qr = q(
1186
- Y,
1183
+ Title: m(C),
1184
+ OnlineResource: m(Kn),
1185
+ LogoURL: m(to)
1186
+ }
1187
+ ), Jr = Y(W, {
1188
+ westBoundLongitude: m(zt),
1189
+ eastBoundLongitude: m(zt),
1190
+ southBoundLatitude: m(zt),
1191
+ northBoundLatitude: m(zt)
1192
+ }), Kr = Y(
1193
+ W,
1187
1194
  {
1188
1195
  GetCapabilities: m(
1189
- En
1196
+ Sn
1190
1197
  ),
1191
1198
  GetMap: m(
1192
- En
1199
+ Sn
1193
1200
  ),
1194
1201
  GetFeatureInfo: m(
1195
- En
1202
+ Sn
1196
1203
  )
1197
1204
  }
1198
- ), Yr = q(
1199
- Y,
1205
+ ), Qr = Y(
1206
+ W,
1200
1207
  {
1201
- Format: et(A),
1202
- DCPType: et(
1203
- Mr
1208
+ Format: nt(C),
1209
+ DCPType: nt(
1210
+ Vr
1204
1211
  )
1205
1212
  }
1206
- ), Wr = q(
1207
- Y,
1213
+ ), ts = Y(
1214
+ W,
1208
1215
  {
1209
1216
  HTTP: m(
1210
- Ir
1217
+ Br
1211
1218
  )
1212
1219
  }
1213
- ), Gr = q(
1214
- Y,
1220
+ ), es = Y(
1221
+ W,
1215
1222
  {
1216
1223
  Get: m(
1217
- mt
1224
+ yt
1218
1225
  ),
1219
1226
  Post: m(
1220
- mt
1227
+ yt
1221
1228
  )
1222
1229
  }
1223
- ), Jr = q(
1224
- Y,
1230
+ ), ns = Y(
1231
+ W,
1225
1232
  {
1226
- Name: m(A),
1227
- Title: m(A),
1228
- Abstract: m(A),
1229
- LegendURL: et(Yi),
1230
- StyleSheetURL: m(mt),
1231
- StyleURL: m(mt)
1232
- }
1233
- ), Kr = q(
1234
- Y,
1233
+ Name: m(C),
1234
+ Title: m(C),
1235
+ Abstract: m(C),
1236
+ LegendURL: nt(to),
1237
+ StyleSheetURL: m(yt),
1238
+ StyleURL: m(yt)
1239
+ }
1240
+ ), is = Y(
1241
+ W,
1235
1242
  {
1236
- Format: m(A),
1237
- OnlineResource: m(Yn)
1243
+ Format: m(C),
1244
+ OnlineResource: m(Kn)
1238
1245
  }
1239
- ), Qr = q(
1240
- Y,
1246
+ ), os = Y(
1247
+ W,
1241
1248
  {
1242
- Keyword: Xi(A)
1249
+ Keyword: Ki(C)
1243
1250
  }
1244
1251
  );
1245
- class ts {
1252
+ class rs {
1246
1253
  /**
1247
1254
  * WMS Capabilities parser
1248
1255
  *
@@ -1250,7 +1257,7 @@ class ts {
1250
1257
  * @constructor
1251
1258
  */
1252
1259
  constructor(t, n) {
1253
- !n && typeof window < "u" && (n = window.DOMParser), this.version = void 0, this._parser = new cr(n), this._data = t;
1260
+ !n && typeof window < "u" && (n = window.DOMParser), this.version = void 0, this._parser = new gr(n), this._data = t;
1254
1261
  }
1255
1262
  /**
1256
1263
  * @param {String} xmlString
@@ -1279,7 +1286,7 @@ class ts {
1279
1286
  */
1280
1287
  readFromDocument(t) {
1281
1288
  for (let n = t.firstChild; n; n = n.nextSibling)
1282
- if (n.nodeType == ge.ELEMENT)
1289
+ if (n.nodeType == me.ELEMENT)
1283
1290
  return this.readFromNode(n);
1284
1291
  return null;
1285
1292
  }
@@ -1288,44 +1295,44 @@ class ts {
1288
1295
  * @return {Object}
1289
1296
  */
1290
1297
  readFromNode(t) {
1291
- return this.version = t.getAttribute("version"), F({
1298
+ return this.version = t.getAttribute("version"), j({
1292
1299
  version: this.version
1293
- }, Br, t, []) || null;
1300
+ }, jr, t, []) || null;
1294
1301
  }
1295
1302
  }
1296
- async function es(e) {
1303
+ async function ss(e) {
1297
1304
  let t = new URL(e), n = t.searchParams;
1298
1305
  n.set("SERVICE", "WMS"), n.set("REQUEST", "GetCapabilities");
1299
1306
  let i = t.toString();
1300
1307
  const o = await fetch(i);
1301
1308
  if (o.ok) {
1302
1309
  const r = await o.text();
1303
- return new ts(r).toJSON();
1310
+ return new rs(r).toJSON();
1304
1311
  } else
1305
1312
  throw new Error(`Error: ${o.status}`);
1306
1313
  }
1307
- function Wn(e) {
1314
+ function Qn(e) {
1308
1315
  const t = /\b(?:wms|ows)\b/i, n = /{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;
1309
1316
  return t.test(e) ? "TileWMS" : n.test(e) ? "XYZ" : !1;
1310
1317
  }
1311
- function ns(e) {
1312
- const n = /^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(e), i = Wn(e);
1318
+ function as(e) {
1319
+ const n = /^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(e), i = Qn(e);
1313
1320
  return !!(e && n && i);
1314
1321
  }
1315
- function Ji(e) {
1322
+ function io(e) {
1316
1323
  return e.replace(
1317
1324
  /(['"])?([a-zA-Z0-9_]+)(['"])?:/g,
1318
1325
  '"$2": '
1319
1326
  ).replace(/,\s*}/g, "}").replace(/,\s*]/g, "]").replace(/\s*(\{|}|\[|\]|,)\s*/g, "$1").replaceAll('": //', "://");
1320
1327
  }
1321
- function is(e) {
1328
+ function ls(e) {
1322
1329
  try {
1323
- return JSON.parse(Ji(e)), !!e;
1330
+ return JSON.parse(io(e)), !!e;
1324
1331
  } catch {
1325
1332
  return !1;
1326
1333
  }
1327
1334
  }
1328
- function os(e, t) {
1335
+ function us(e, t) {
1329
1336
  const n = new URL(e).searchParams;
1330
1337
  Object.entries(t).forEach(([s, a]) => {
1331
1338
  typeof a == "object" && !Array.isArray(a) && a !== null ? Object.keys(a).forEach((l) => {
@@ -1341,7 +1348,7 @@ function os(e, t) {
1341
1348
  * @author owenm <owen23355@gmail.com>
1342
1349
  * @license MIT
1343
1350
  */
1344
- function fi(e, t) {
1351
+ function vi(e, t) {
1345
1352
  var n = Object.keys(e);
1346
1353
  if (Object.getOwnPropertySymbols) {
1347
1354
  var i = Object.getOwnPropertySymbols(e);
@@ -1351,26 +1358,26 @@ function fi(e, t) {
1351
1358
  }
1352
1359
  return n;
1353
1360
  }
1354
- function dt(e) {
1361
+ function ct(e) {
1355
1362
  for (var t = 1; t < arguments.length; t++) {
1356
1363
  var n = arguments[t] != null ? arguments[t] : {};
1357
- t % 2 ? fi(Object(n), !0).forEach(function(i) {
1358
- rs(e, i, n[i]);
1359
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fi(Object(n)).forEach(function(i) {
1364
+ t % 2 ? vi(Object(n), !0).forEach(function(i) {
1365
+ ds(e, i, n[i]);
1366
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : vi(Object(n)).forEach(function(i) {
1360
1367
  Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(n, i));
1361
1368
  });
1362
1369
  }
1363
1370
  return e;
1364
1371
  }
1365
- function Pe(e) {
1372
+ function Oe(e) {
1366
1373
  "@babel/helpers - typeof";
1367
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Pe = function(t) {
1374
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Oe = function(t) {
1368
1375
  return typeof t;
1369
- } : Pe = function(t) {
1376
+ } : Oe = function(t) {
1370
1377
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1371
- }, Pe(e);
1378
+ }, Oe(e);
1372
1379
  }
1373
- function rs(e, t, n) {
1380
+ function ds(e, t, n) {
1374
1381
  return t in e ? Object.defineProperty(e, t, {
1375
1382
  value: n,
1376
1383
  enumerable: !0,
@@ -1378,26 +1385,26 @@ function rs(e, t, n) {
1378
1385
  writable: !0
1379
1386
  }) : e[t] = n, e;
1380
1387
  }
1381
- function yt() {
1382
- return yt = Object.assign || function(e) {
1388
+ function bt() {
1389
+ return bt = Object.assign || function(e) {
1383
1390
  for (var t = 1; t < arguments.length; t++) {
1384
1391
  var n = arguments[t];
1385
1392
  for (var i in n)
1386
1393
  Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
1387
1394
  }
1388
1395
  return e;
1389
- }, yt.apply(this, arguments);
1396
+ }, bt.apply(this, arguments);
1390
1397
  }
1391
- function ss(e, t) {
1398
+ function cs(e, t) {
1392
1399
  if (e == null) return {};
1393
1400
  var n = {}, i = Object.keys(e), o, r;
1394
1401
  for (r = 0; r < i.length; r++)
1395
1402
  o = i[r], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
1396
1403
  return n;
1397
1404
  }
1398
- function as(e, t) {
1405
+ function hs(e, t) {
1399
1406
  if (e == null) return {};
1400
- var n = ss(e, t), i, o;
1407
+ var n = cs(e, t), i, o;
1401
1408
  if (Object.getOwnPropertySymbols) {
1402
1409
  var r = Object.getOwnPropertySymbols(e);
1403
1410
  for (o = 0; o < r.length; o++)
@@ -1405,22 +1412,22 @@ function as(e, t) {
1405
1412
  }
1406
1413
  return n;
1407
1414
  }
1408
- var ls = "1.15.3";
1409
- function gt(e) {
1415
+ var ps = "1.15.3";
1416
+ function mt(e) {
1410
1417
  if (typeof window < "u" && window.navigator)
1411
1418
  return !!/* @__PURE__ */ navigator.userAgent.match(e);
1412
1419
  }
1413
- var bt = gt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ee = gt(/Edge/i), gi = gt(/firefox/i), ae = gt(/safari/i) && !gt(/chrome/i) && !gt(/android/i), Ki = gt(/iP(ad|od|hone)/i), Qi = gt(/chrome/i) && gt(/android/i), to = {
1420
+ var vt = mt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), xe = mt(/Edge/i), wi = mt(/firefox/i), le = mt(/safari/i) && !mt(/chrome/i) && !mt(/android/i), oo = mt(/iP(ad|od|hone)/i), ro = mt(/chrome/i) && mt(/android/i), so = {
1414
1421
  capture: !1,
1415
1422
  passive: !1
1416
1423
  };
1417
- function _(e, t, n) {
1418
- e.addEventListener(t, n, !bt && to);
1424
+ function T(e, t, n) {
1425
+ e.addEventListener(t, n, !vt && so);
1419
1426
  }
1420
- function $(e, t, n) {
1421
- e.removeEventListener(t, n, !bt && to);
1427
+ function A(e, t, n) {
1428
+ e.removeEventListener(t, n, !vt && so);
1422
1429
  }
1423
- function Ve(e, t) {
1430
+ function ke(e, t) {
1424
1431
  if (t) {
1425
1432
  if (t[0] === ">" && (t = t.substring(1)), e)
1426
1433
  try {
@@ -1436,28 +1443,28 @@ function Ve(e, t) {
1436
1443
  return !1;
1437
1444
  }
1438
1445
  }
1439
- function eo(e) {
1446
+ function ao(e) {
1440
1447
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
1441
1448
  }
1442
1449
  function ut(e, t, n, i) {
1443
1450
  if (e) {
1444
1451
  n = n || document;
1445
1452
  do {
1446
- if (t != null && (t[0] === ">" ? e.parentNode === n && Ve(e, t) : Ve(e, t)) || i && e === n)
1453
+ if (t != null && (t[0] === ">" ? e.parentNode === n && ke(e, t) : ke(e, t)) || i && e === n)
1447
1454
  return e;
1448
1455
  if (e === n) break;
1449
- } while (e = eo(e));
1456
+ } while (e = ao(e));
1450
1457
  }
1451
1458
  return null;
1452
1459
  }
1453
- var mi = /\s+/g;
1460
+ var xi = /\s+/g;
1454
1461
  function ot(e, t, n) {
1455
1462
  if (e && t)
1456
1463
  if (e.classList)
1457
1464
  e.classList[n ? "add" : "remove"](t);
1458
1465
  else {
1459
- var i = (" " + e.className + " ").replace(mi, " ").replace(" " + t + " ", " ");
1460
- e.className = (i + (n ? " " + t : "")).replace(mi, " ");
1466
+ var i = (" " + e.className + " ").replace(xi, " ").replace(" " + t + " ", " ");
1467
+ e.className = (i + (n ? " " + t : "")).replace(xi, " ");
1461
1468
  }
1462
1469
  }
1463
1470
  function v(e, t, n) {
@@ -1468,7 +1475,7 @@ function v(e, t, n) {
1468
1475
  !(t in i) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), i[t] = n + (typeof n == "string" ? "" : "px");
1469
1476
  }
1470
1477
  }
1471
- function zt(e, t) {
1478
+ function qt(e, t) {
1472
1479
  var n = "";
1473
1480
  if (typeof e == "string")
1474
1481
  n = e;
@@ -1480,7 +1487,7 @@ function zt(e, t) {
1480
1487
  var o = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
1481
1488
  return o && new o(n);
1482
1489
  }
1483
- function no(e, t, n) {
1490
+ function lo(e, t, n) {
1484
1491
  if (e) {
1485
1492
  var i = e.getElementsByTagName(t), o = 0, r = i.length;
1486
1493
  if (n)
@@ -1490,14 +1497,14 @@ function no(e, t, n) {
1490
1497
  }
1491
1498
  return [];
1492
1499
  }
1493
- function ct() {
1500
+ function dt() {
1494
1501
  var e = document.scrollingElement;
1495
1502
  return e || document.documentElement;
1496
1503
  }
1497
1504
  function k(e, t, n, i, o) {
1498
1505
  if (!(!e.getBoundingClientRect && e !== window)) {
1499
- var r, s, a, l, u, d, c;
1500
- if (e !== window && e.parentNode && e !== ct() ? (r = e.getBoundingClientRect(), s = r.top, a = r.left, l = r.bottom, u = r.right, d = r.height, c = r.width) : (s = 0, a = 0, l = window.innerHeight, u = window.innerWidth, d = window.innerHeight, c = window.innerWidth), (t || n) && e !== window && (o = o || e.parentNode, !bt))
1506
+ var r, s, a, l, u, c, d;
1507
+ if (e !== window && e.parentNode && e !== dt() ? (r = e.getBoundingClientRect(), s = r.top, a = r.left, l = r.bottom, u = r.right, c = r.height, d = r.width) : (s = 0, a = 0, l = window.innerHeight, u = window.innerWidth, c = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (o = o || e.parentNode, !vt))
1501
1508
  do
1502
1509
  if (o && o.getBoundingClientRect && (v(o, "transform") !== "none" || n && v(o, "position") !== "static")) {
1503
1510
  var p = o.getBoundingClientRect();
@@ -1506,29 +1513,29 @@ function k(e, t, n, i, o) {
1506
1513
  }
1507
1514
  while (o = o.parentNode);
1508
1515
  if (i && e !== window) {
1509
- var f = zt(o || e), g = f && f.a, y = f && f.d;
1510
- f && (s /= y, a /= g, c /= g, d /= y, l = s + d, u = a + c);
1516
+ var f = qt(o || e), g = f && f.a, y = f && f.d;
1517
+ f && (s /= y, a /= g, d /= g, c /= y, l = s + c, u = a + d);
1511
1518
  }
1512
1519
  return {
1513
1520
  top: s,
1514
1521
  left: a,
1515
1522
  bottom: l,
1516
1523
  right: u,
1517
- width: c,
1518
- height: d
1524
+ width: d,
1525
+ height: c
1519
1526
  };
1520
1527
  }
1521
1528
  }
1522
- function yi(e, t, n) {
1523
- for (var i = At(e, !0), o = k(e)[t]; i; ) {
1529
+ function Ei(e, t, n) {
1530
+ for (var i = Ct(e, !0), o = k(e)[t]; i; ) {
1524
1531
  var r = k(i)[n], s = void 0;
1525
1532
  if (s = o >= r, !s) return i;
1526
- if (i === ct()) break;
1527
- i = At(i, !1);
1533
+ if (i === dt()) break;
1534
+ i = Ct(i, !1);
1528
1535
  }
1529
1536
  return !1;
1530
1537
  }
1531
- function qt(e, t, n, i) {
1538
+ function Wt(e, t, n, i) {
1532
1539
  for (var o = 0, r = 0, s = e.children; r < s.length; ) {
1533
1540
  if (s[r].style.display !== "none" && s[r] !== w.ghost && (i || s[r] !== w.dragged) && ut(s[r], n.draggable, e, !1)) {
1534
1541
  if (o === t)
@@ -1539,8 +1546,8 @@ function qt(e, t, n, i) {
1539
1546
  }
1540
1547
  return null;
1541
1548
  }
1542
- function Gn(e, t) {
1543
- for (var n = e.lastElementChild; n && (n === w.ghost || v(n, "display") === "none" || t && !Ve(n, t)); )
1549
+ function ti(e, t) {
1550
+ for (var n = e.lastElementChild; n && (n === w.ghost || v(n, "display") === "none" || t && !ke(n, t)); )
1544
1551
  n = n.previousElementSibling;
1545
1552
  return n || null;
1546
1553
  }
@@ -1549,19 +1556,19 @@ function st(e, t) {
1549
1556
  if (!e || !e.parentNode)
1550
1557
  return -1;
1551
1558
  for (; e = e.previousElementSibling; )
1552
- e.nodeName.toUpperCase() !== "TEMPLATE" && e !== w.clone && (!t || Ve(e, t)) && n++;
1559
+ e.nodeName.toUpperCase() !== "TEMPLATE" && e !== w.clone && (!t || ke(e, t)) && n++;
1553
1560
  return n;
1554
1561
  }
1555
- function bi(e) {
1556
- var t = 0, n = 0, i = ct();
1562
+ function $i(e) {
1563
+ var t = 0, n = 0, i = dt();
1557
1564
  if (e)
1558
1565
  do {
1559
- var o = zt(e), r = o.a, s = o.d;
1566
+ var o = qt(e), r = o.a, s = o.d;
1560
1567
  t += e.scrollLeft * r, n += e.scrollTop * s;
1561
1568
  } while (e !== i && (e = e.parentNode));
1562
1569
  return [t, n];
1563
1570
  }
1564
- function us(e, t) {
1571
+ function fs(e, t) {
1565
1572
  for (var n in e)
1566
1573
  if (e.hasOwnProperty(n)) {
1567
1574
  for (var i in t)
@@ -1569,52 +1576,52 @@ function us(e, t) {
1569
1576
  }
1570
1577
  return -1;
1571
1578
  }
1572
- function At(e, t) {
1573
- if (!e || !e.getBoundingClientRect) return ct();
1579
+ function Ct(e, t) {
1580
+ if (!e || !e.getBoundingClientRect) return dt();
1574
1581
  var n = e, i = !1;
1575
1582
  do
1576
1583
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
1577
1584
  var o = v(n);
1578
1585
  if (n.clientWidth < n.scrollWidth && (o.overflowX == "auto" || o.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (o.overflowY == "auto" || o.overflowY == "scroll")) {
1579
- if (!n.getBoundingClientRect || n === document.body) return ct();
1586
+ if (!n.getBoundingClientRect || n === document.body) return dt();
1580
1587
  if (i || t) return n;
1581
1588
  i = !0;
1582
1589
  }
1583
1590
  }
1584
1591
  while (n = n.parentNode);
1585
- return ct();
1592
+ return dt();
1586
1593
  }
1587
- function cs(e, t) {
1594
+ function gs(e, t) {
1588
1595
  if (e && t)
1589
1596
  for (var n in t)
1590
1597
  t.hasOwnProperty(n) && (e[n] = t[n]);
1591
1598
  return e;
1592
1599
  }
1593
- function xn(e, t) {
1600
+ function An(e, t) {
1594
1601
  return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
1595
1602
  }
1596
- var le;
1597
- function io(e, t) {
1603
+ var ue;
1604
+ function uo(e, t) {
1598
1605
  return function() {
1599
- if (!le) {
1606
+ if (!ue) {
1600
1607
  var n = arguments, i = this;
1601
- n.length === 1 ? e.call(i, n[0]) : e.apply(i, n), le = setTimeout(function() {
1602
- le = void 0;
1608
+ n.length === 1 ? e.call(i, n[0]) : e.apply(i, n), ue = setTimeout(function() {
1609
+ ue = void 0;
1603
1610
  }, t);
1604
1611
  }
1605
1612
  };
1606
1613
  }
1607
- function ds() {
1608
- clearTimeout(le), le = void 0;
1614
+ function ms() {
1615
+ clearTimeout(ue), ue = void 0;
1609
1616
  }
1610
- function oo(e, t, n) {
1617
+ function co(e, t, n) {
1611
1618
  e.scrollLeft += t, e.scrollTop += n;
1612
1619
  }
1613
- function ro(e) {
1620
+ function ho(e) {
1614
1621
  var t = window.Polymer, n = window.jQuery || window.Zepto;
1615
1622
  return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
1616
1623
  }
1617
- function so(e, t, n) {
1624
+ function po(e, t, n) {
1618
1625
  var i = {};
1619
1626
  return Array.from(e.children).forEach(function(o) {
1620
1627
  var r, s, a, l;
@@ -1624,8 +1631,8 @@ function so(e, t, n) {
1624
1631
  }
1625
1632
  }), i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
1626
1633
  }
1627
- var nt = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
1628
- function hs() {
1634
+ var it = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
1635
+ function ys() {
1629
1636
  var e = [], t;
1630
1637
  return {
1631
1638
  captureAnimationState: function() {
@@ -1637,9 +1644,9 @@ function hs() {
1637
1644
  target: o,
1638
1645
  rect: k(o)
1639
1646
  });
1640
- var r = dt({}, e[e.length - 1].rect);
1647
+ var r = ct({}, e[e.length - 1].rect);
1641
1648
  if (o.thisAnimationDuration) {
1642
- var s = zt(o, !0);
1649
+ var s = qt(o, !0);
1643
1650
  s && (r.top -= s.f, r.left -= s.e);
1644
1651
  }
1645
1652
  o.fromRect = r;
@@ -1651,7 +1658,7 @@ function hs() {
1651
1658
  e.push(i);
1652
1659
  },
1653
1660
  removeAnimationState: function(i) {
1654
- e.splice(us(e, {
1661
+ e.splice(fs(e, {
1655
1662
  target: i
1656
1663
  }), 1);
1657
1664
  },
@@ -1663,9 +1670,9 @@ function hs() {
1663
1670
  }
1664
1671
  var r = !1, s = 0;
1665
1672
  e.forEach(function(a) {
1666
- var l = 0, u = a.target, d = u.fromRect, c = k(u), p = u.prevFromRect, f = u.prevToRect, g = a.rect, y = zt(u, !0);
1667
- y && (c.top -= y.f, c.left -= y.e), u.toRect = c, u.thisAnimationDuration && xn(p, c) && !xn(d, c) && // Make sure animatingRect is on line between toRect & fromRect
1668
- (g.top - c.top) / (g.left - c.left) === (d.top - c.top) / (d.left - c.left) && (l = fs(g, p, f, o.options)), xn(c, d) || (u.prevFromRect = d, u.prevToRect = c, l || (l = o.options.animation), o.animate(u, g, c, l)), l && (r = !0, s = Math.max(s, l), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
1673
+ var l = 0, u = a.target, c = u.fromRect, d = k(u), p = u.prevFromRect, f = u.prevToRect, g = a.rect, y = qt(u, !0);
1674
+ y && (d.top -= y.f, d.left -= y.e), u.toRect = d, u.thisAnimationDuration && An(p, d) && !An(c, d) && // Make sure animatingRect is on line between toRect & fromRect
1675
+ (g.top - d.top) / (g.left - d.left) === (c.top - d.top) / (c.left - d.left) && (l = vs(g, p, f, o.options)), An(d, c) || (u.prevFromRect = c, u.prevToRect = d, l || (l = o.options.animation), o.animate(u, g, d, l)), l && (r = !0, s = Math.max(s, l), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
1669
1676
  u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
1670
1677
  }, l), u.thisAnimationDuration = l);
1671
1678
  }), clearTimeout(t), r ? t = setTimeout(function() {
@@ -1675,30 +1682,30 @@ function hs() {
1675
1682
  animate: function(i, o, r, s) {
1676
1683
  if (s) {
1677
1684
  v(i, "transition", ""), v(i, "transform", "");
1678
- var a = zt(this.el), l = a && a.a, u = a && a.d, d = (o.left - r.left) / (l || 1), c = (o.top - r.top) / (u || 1);
1679
- i.animatingX = !!d, i.animatingY = !!c, v(i, "transform", "translate3d(" + d + "px," + c + "px,0)"), this.forRepaintDummy = ps(i), v(i, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(i, "transform", "translate3d(0,0,0)"), typeof i.animated == "number" && clearTimeout(i.animated), i.animated = setTimeout(function() {
1685
+ var a = qt(this.el), l = a && a.a, u = a && a.d, c = (o.left - r.left) / (l || 1), d = (o.top - r.top) / (u || 1);
1686
+ i.animatingX = !!c, i.animatingY = !!d, v(i, "transform", "translate3d(" + c + "px," + d + "px,0)"), this.forRepaintDummy = bs(i), v(i, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(i, "transform", "translate3d(0,0,0)"), typeof i.animated == "number" && clearTimeout(i.animated), i.animated = setTimeout(function() {
1680
1687
  v(i, "transition", ""), v(i, "transform", ""), i.animated = !1, i.animatingX = !1, i.animatingY = !1;
1681
1688
  }, s);
1682
1689
  }
1683
1690
  }
1684
1691
  };
1685
1692
  }
1686
- function ps(e) {
1693
+ function bs(e) {
1687
1694
  return e.offsetWidth;
1688
1695
  }
1689
- function fs(e, t, n, i) {
1696
+ function vs(e, t, n, i) {
1690
1697
  return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - n.top, 2) + Math.pow(t.left - n.left, 2)) * i.animation;
1691
1698
  }
1692
- var Vt = [], Sn = {
1699
+ var Ut = [], Cn = {
1693
1700
  initializeByDefault: !0
1694
- }, xe = {
1701
+ }, Ee = {
1695
1702
  mount: function(t) {
1696
- for (var n in Sn)
1697
- Sn.hasOwnProperty(n) && !(n in t) && (t[n] = Sn[n]);
1698
- Vt.forEach(function(i) {
1703
+ for (var n in Cn)
1704
+ Cn.hasOwnProperty(n) && !(n in t) && (t[n] = Cn[n]);
1705
+ Ut.forEach(function(i) {
1699
1706
  if (i.pluginName === t.pluginName)
1700
1707
  throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
1701
- }), Vt.push(t);
1708
+ }), Ut.push(t);
1702
1709
  },
1703
1710
  pluginEvent: function(t, n, i) {
1704
1711
  var o = this;
@@ -1706,20 +1713,20 @@ var Vt = [], Sn = {
1706
1713
  o.eventCanceled = !0;
1707
1714
  };
1708
1715
  var r = t + "Global";
1709
- Vt.forEach(function(s) {
1710
- n[s.pluginName] && (n[s.pluginName][r] && n[s.pluginName][r](dt({
1716
+ Ut.forEach(function(s) {
1717
+ n[s.pluginName] && (n[s.pluginName][r] && n[s.pluginName][r](ct({
1711
1718
  sortable: n
1712
- }, i)), n.options[s.pluginName] && n[s.pluginName][t] && n[s.pluginName][t](dt({
1719
+ }, i)), n.options[s.pluginName] && n[s.pluginName][t] && n[s.pluginName][t](ct({
1713
1720
  sortable: n
1714
1721
  }, i)));
1715
1722
  });
1716
1723
  },
1717
1724
  initializePlugins: function(t, n, i, o) {
1718
- Vt.forEach(function(a) {
1725
+ Ut.forEach(function(a) {
1719
1726
  var l = a.pluginName;
1720
1727
  if (!(!t.options[l] && !a.initializeByDefault)) {
1721
1728
  var u = new a(t, n, t.options);
1722
- u.sortable = t, u.options = t.options, t[l] = u, yt(i, u.defaults);
1729
+ u.sortable = t, u.options = t.options, t[l] = u, bt(i, u.defaults);
1723
1730
  }
1724
1731
  });
1725
1732
  for (var r in t.options)
@@ -1730,52 +1737,52 @@ var Vt = [], Sn = {
1730
1737
  },
1731
1738
  getEventProperties: function(t, n) {
1732
1739
  var i = {};
1733
- return Vt.forEach(function(o) {
1734
- typeof o.eventProperties == "function" && yt(i, o.eventProperties.call(n[o.pluginName], t));
1740
+ return Ut.forEach(function(o) {
1741
+ typeof o.eventProperties == "function" && bt(i, o.eventProperties.call(n[o.pluginName], t));
1735
1742
  }), i;
1736
1743
  },
1737
1744
  modifyOption: function(t, n, i) {
1738
1745
  var o;
1739
- return Vt.forEach(function(r) {
1746
+ return Ut.forEach(function(r) {
1740
1747
  t[r.pluginName] && r.optionListeners && typeof r.optionListeners[n] == "function" && (o = r.optionListeners[n].call(t[r.pluginName], i));
1741
1748
  }), o;
1742
1749
  }
1743
1750
  };
1744
- function gs(e) {
1745
- var t = e.sortable, n = e.rootEl, i = e.name, o = e.targetEl, r = e.cloneEl, s = e.toEl, a = e.fromEl, l = e.oldIndex, u = e.newIndex, d = e.oldDraggableIndex, c = e.newDraggableIndex, p = e.originalEvent, f = e.putSortable, g = e.extraEventProperties;
1746
- if (t = t || n && n[nt], !!t) {
1747
- var y, O = t.options, I = "on" + i.charAt(0).toUpperCase() + i.substr(1);
1748
- window.CustomEvent && !bt && !Ee ? y = new CustomEvent(i, {
1751
+ function ws(e) {
1752
+ var t = e.sortable, n = e.rootEl, i = e.name, o = e.targetEl, r = e.cloneEl, s = e.toEl, a = e.fromEl, l = e.oldIndex, u = e.newIndex, c = e.oldDraggableIndex, d = e.newDraggableIndex, p = e.originalEvent, f = e.putSortable, g = e.extraEventProperties;
1753
+ if (t = t || n && n[it], !!t) {
1754
+ var y, O = t.options, M = "on" + i.charAt(0).toUpperCase() + i.substr(1);
1755
+ window.CustomEvent && !vt && !xe ? y = new CustomEvent(i, {
1749
1756
  bubbles: !0,
1750
1757
  cancelable: !0
1751
- }) : (y = document.createEvent("Event"), y.initEvent(i, !0, !0)), y.to = s || n, y.from = a || n, y.item = o || n, y.clone = r, y.oldIndex = l, y.newIndex = u, y.oldDraggableIndex = d, y.newDraggableIndex = c, y.originalEvent = p, y.pullMode = f ? f.lastPutMode : void 0;
1752
- var H = dt(dt({}, g), xe.getEventProperties(i, t));
1758
+ }) : (y = document.createEvent("Event"), y.initEvent(i, !0, !0)), y.to = s || n, y.from = a || n, y.item = o || n, y.clone = r, y.oldIndex = l, y.newIndex = u, y.oldDraggableIndex = c, y.newDraggableIndex = d, y.originalEvent = p, y.pullMode = f ? f.lastPutMode : void 0;
1759
+ var H = ct(ct({}, g), Ee.getEventProperties(i, t));
1753
1760
  for (var J in H)
1754
1761
  y[J] = H[J];
1755
- n && n.dispatchEvent(y), O[I] && O[I].call(t, y);
1762
+ n && n.dispatchEvent(y), O[M] && O[M].call(t, y);
1756
1763
  }
1757
1764
  }
1758
- var ms = ["evt"], tt = function(t, n) {
1759
- var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.evt, r = as(i, ms);
1760
- xe.pluginEvent.bind(w)(t, n, dt({
1765
+ var xs = ["evt"], et = function(t, n) {
1766
+ var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.evt, r = hs(i, xs);
1767
+ Ee.pluginEvent.bind(w)(t, n, ct({
1761
1768
  dragEl: h,
1762
1769
  parentEl: N,
1763
1770
  ghostEl: E,
1764
1771
  rootEl: R,
1765
1772
  nextEl: It,
1766
- lastDownEl: Oe,
1767
- cloneEl: M,
1773
+ lastDownEl: De,
1774
+ cloneEl: L,
1768
1775
  cloneHidden: St,
1769
- dragStarted: ne,
1770
- putSortable: z,
1776
+ dragStarted: ie,
1777
+ putSortable: X,
1771
1778
  activeSortable: w.active,
1772
1779
  originalEvent: o,
1773
- oldIndex: Zt,
1774
- oldDraggableIndex: ue,
1780
+ oldIndex: Xt,
1781
+ oldDraggableIndex: de,
1775
1782
  newIndex: rt,
1776
- newDraggableIndex: xt,
1777
- hideGhostForTarget: co,
1778
- unhideGhostForTarget: ho,
1783
+ newDraggableIndex: $t,
1784
+ hideGhostForTarget: yo,
1785
+ unhideGhostForTarget: bo,
1779
1786
  cloneNowHidden: function() {
1780
1787
  St = !0;
1781
1788
  },
@@ -1792,95 +1799,95 @@ var ms = ["evt"], tt = function(t, n) {
1792
1799
  }, r));
1793
1800
  };
1794
1801
  function Q(e) {
1795
- gs(dt({
1796
- putSortable: z,
1797
- cloneEl: M,
1802
+ ws(ct({
1803
+ putSortable: X,
1804
+ cloneEl: L,
1798
1805
  targetEl: h,
1799
1806
  rootEl: R,
1800
- oldIndex: Zt,
1801
- oldDraggableIndex: ue,
1807
+ oldIndex: Xt,
1808
+ oldDraggableIndex: de,
1802
1809
  newIndex: rt,
1803
- newDraggableIndex: xt
1810
+ newDraggableIndex: $t
1804
1811
  }, e));
1805
1812
  }
1806
- var h, N, E, R, It, Oe, M, St, Zt, rt, ue, xt, $e, z, Ft = !1, ke = !1, Ue = [], Rt, lt, $n, An, vi, wi, ne, kt, ce, de = !1, Ae = !1, De, W, _n = [], In = !1, Fe = [], pn = typeof document < "u", _e = Ki, Ei = Ee || bt ? "cssFloat" : "float", ys = pn && !Qi && !Ki && "draggable" in document.createElement("div"), ao = function() {
1807
- if (pn) {
1808
- if (bt)
1813
+ var h, N, E, R, It, De, L, St, Xt, rt, de, $t, Se, X, Zt = !1, Ue = !1, Fe = [], Lt, lt, _n, Tn, Si, Ai, ie, Ft, ce, he = !1, Ae = !1, Re, G, Pn = [], Hn = !1, je = [], mn = typeof document < "u", Ce = oo, Ci = xe || vt ? "cssFloat" : "float", Es = mn && !ro && !oo && "draggable" in document.createElement("div"), fo = function() {
1814
+ if (mn) {
1815
+ if (vt)
1809
1816
  return !1;
1810
1817
  var e = document.createElement("x");
1811
1818
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
1812
1819
  }
1813
- }(), lo = function(t, n) {
1814
- var i = v(t), o = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), r = qt(t, 0, n), s = qt(t, 1, n), a = r && v(r), l = s && v(s), u = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + k(r).width, d = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + k(s).width;
1820
+ }(), go = function(t, n) {
1821
+ var i = v(t), o = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), r = Wt(t, 0, n), s = Wt(t, 1, n), a = r && v(r), l = s && v(s), u = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + k(r).width, c = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + k(s).width;
1815
1822
  if (i.display === "flex")
1816
1823
  return i.flexDirection === "column" || i.flexDirection === "column-reverse" ? "vertical" : "horizontal";
1817
1824
  if (i.display === "grid")
1818
1825
  return i.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
1819
1826
  if (r && a.float && a.float !== "none") {
1820
- var c = a.float === "left" ? "left" : "right";
1821
- return s && (l.clear === "both" || l.clear === c) ? "vertical" : "horizontal";
1827
+ var d = a.float === "left" ? "left" : "right";
1828
+ return s && (l.clear === "both" || l.clear === d) ? "vertical" : "horizontal";
1822
1829
  }
1823
- return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || u >= o && i[Ei] === "none" || s && i[Ei] === "none" && u + d > o) ? "vertical" : "horizontal";
1824
- }, bs = function(t, n, i) {
1830
+ return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || u >= o && i[Ci] === "none" || s && i[Ci] === "none" && u + c > o) ? "vertical" : "horizontal";
1831
+ }, $s = function(t, n, i) {
1825
1832
  var o = i ? t.left : t.top, r = i ? t.right : t.bottom, s = i ? t.width : t.height, a = i ? n.left : n.top, l = i ? n.right : n.bottom, u = i ? n.width : n.height;
1826
1833
  return o === a || r === l || o + s / 2 === a + u / 2;
1827
- }, vs = function(t, n) {
1834
+ }, Ss = function(t, n) {
1828
1835
  var i;
1829
- return Ue.some(function(o) {
1830
- var r = o[nt].options.emptyInsertThreshold;
1831
- if (!(!r || Gn(o))) {
1836
+ return Fe.some(function(o) {
1837
+ var r = o[it].options.emptyInsertThreshold;
1838
+ if (!(!r || ti(o))) {
1832
1839
  var s = k(o), a = t >= s.left - r && t <= s.right + r, l = n >= s.top - r && n <= s.bottom + r;
1833
1840
  if (a && l)
1834
1841
  return i = o;
1835
1842
  }
1836
1843
  }), i;
1837
- }, uo = function(t) {
1844
+ }, mo = function(t) {
1838
1845
  function n(r, s) {
1839
- return function(a, l, u, d) {
1840
- var c = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
1841
- if (r == null && (s || c))
1846
+ return function(a, l, u, c) {
1847
+ var d = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
1848
+ if (r == null && (s || d))
1842
1849
  return !0;
1843
1850
  if (r == null || r === !1)
1844
1851
  return !1;
1845
1852
  if (s && r === "clone")
1846
1853
  return r;
1847
1854
  if (typeof r == "function")
1848
- return n(r(a, l, u, d), s)(a, l, u, d);
1855
+ return n(r(a, l, u, c), s)(a, l, u, c);
1849
1856
  var p = (s ? a : l).options.group.name;
1850
1857
  return r === !0 || typeof r == "string" && r === p || r.join && r.indexOf(p) > -1;
1851
1858
  };
1852
1859
  }
1853
1860
  var i = {}, o = t.group;
1854
- (!o || Pe(o) != "object") && (o = {
1861
+ (!o || Oe(o) != "object") && (o = {
1855
1862
  name: o
1856
1863
  }), i.name = o.name, i.checkPull = n(o.pull, !0), i.checkPut = n(o.put), i.revertClone = o.revertClone, t.group = i;
1857
- }, co = function() {
1858
- !ao && E && v(E, "display", "none");
1859
- }, ho = function() {
1860
- !ao && E && v(E, "display", "");
1864
+ }, yo = function() {
1865
+ !fo && E && v(E, "display", "none");
1866
+ }, bo = function() {
1867
+ !fo && E && v(E, "display", "");
1861
1868
  };
1862
- pn && !Qi && document.addEventListener("click", function(e) {
1863
- if (ke)
1864
- return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), ke = !1, !1;
1869
+ mn && !ro && document.addEventListener("click", function(e) {
1870
+ if (Ue)
1871
+ return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Ue = !1, !1;
1865
1872
  }, !0);
1866
1873
  var Mt = function(t) {
1867
1874
  if (h) {
1868
1875
  t = t.touches ? t.touches[0] : t;
1869
- var n = vs(t.clientX, t.clientY);
1876
+ var n = Ss(t.clientX, t.clientY);
1870
1877
  if (n) {
1871
1878
  var i = {};
1872
1879
  for (var o in t)
1873
1880
  t.hasOwnProperty(o) && (i[o] = t[o]);
1874
- i.target = i.rootEl = n, i.preventDefault = void 0, i.stopPropagation = void 0, n[nt]._onDragOver(i);
1881
+ i.target = i.rootEl = n, i.preventDefault = void 0, i.stopPropagation = void 0, n[it]._onDragOver(i);
1875
1882
  }
1876
1883
  }
1877
- }, ws = function(t) {
1878
- h && h.parentNode[nt]._isOutsideThisEl(t.target);
1884
+ }, As = function(t) {
1885
+ h && h.parentNode[it]._isOutsideThisEl(t.target);
1879
1886
  };
1880
1887
  function w(e, t) {
1881
1888
  if (!(e && e.nodeType && e.nodeType === 1))
1882
1889
  throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
1883
- this.el = e, this.options = t = yt({}, t), e[nt] = this;
1890
+ this.el = e, this.options = t = bt({}, t), e[it] = this;
1884
1891
  var n = {
1885
1892
  group: null,
1886
1893
  sort: !0,
@@ -1896,7 +1903,7 @@ function w(e, t) {
1896
1903
  // will be set to same as swapThreshold if default
1897
1904
  removeCloneOnHide: !0,
1898
1905
  direction: function() {
1899
- return lo(e, this.options);
1906
+ return go(e, this.options);
1900
1907
  },
1901
1908
  ghostClass: "sortable-ghost",
1902
1909
  chosenClass: "sortable-chosen",
@@ -1923,32 +1930,32 @@ function w(e, t) {
1923
1930
  x: 0,
1924
1931
  y: 0
1925
1932
  },
1926
- supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && !ae,
1933
+ supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && !le,
1927
1934
  emptyInsertThreshold: 5
1928
1935
  };
1929
- xe.initializePlugins(this, e, n);
1936
+ Ee.initializePlugins(this, e, n);
1930
1937
  for (var i in n)
1931
1938
  !(i in t) && (t[i] = n[i]);
1932
- uo(t);
1939
+ mo(t);
1933
1940
  for (var o in this)
1934
1941
  o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
1935
- this.nativeDraggable = t.forceFallback ? !1 : ys, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? _(e, "pointerdown", this._onTapStart) : (_(e, "mousedown", this._onTapStart), _(e, "touchstart", this._onTapStart)), this.nativeDraggable && (_(e, "dragover", this), _(e, "dragenter", this)), Ue.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), yt(this, hs());
1942
+ this.nativeDraggable = t.forceFallback ? !1 : Es, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? T(e, "pointerdown", this._onTapStart) : (T(e, "mousedown", this._onTapStart), T(e, "touchstart", this._onTapStart)), this.nativeDraggable && (T(e, "dragover", this), T(e, "dragenter", this)), Fe.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), bt(this, ys());
1936
1943
  }
1937
1944
  w.prototype = /** @lends Sortable.prototype */
1938
1945
  {
1939
1946
  constructor: w,
1940
1947
  _isOutsideThisEl: function(t) {
1941
- !this.el.contains(t) && t !== this.el && (kt = null);
1948
+ !this.el.contains(t) && t !== this.el && (Ft = null);
1942
1949
  },
1943
1950
  _getDirection: function(t, n) {
1944
1951
  return typeof this.options.direction == "function" ? this.options.direction.call(this, t, n, h) : this.options.direction;
1945
1952
  },
1946
1953
  _onTapStart: function(t) {
1947
1954
  if (t.cancelable) {
1948
- var n = this, i = this.el, o = this.options, r = o.preventOnFilter, s = t.type, a = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (a || t).target, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, d = o.filter;
1949
- if (Ts(i), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || o.disabled) && !u.isContentEditable && !(!this.nativeDraggable && ae && l && l.tagName.toUpperCase() === "SELECT") && (l = ut(l, o.draggable, i, !1), !(l && l.animated) && Oe !== l)) {
1950
- if (Zt = st(l), ue = st(l, o.draggable), typeof d == "function") {
1951
- if (d.call(this, t, l, this)) {
1955
+ var n = this, i = this.el, o = this.options, r = o.preventOnFilter, s = t.type, a = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (a || t).target, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, c = o.filter;
1956
+ if (Ls(i), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || o.disabled) && !u.isContentEditable && !(!this.nativeDraggable && le && l && l.tagName.toUpperCase() === "SELECT") && (l = ut(l, o.draggable, i, !1), !(l && l.animated) && De !== l)) {
1957
+ if (Xt = st(l), de = st(l, o.draggable), typeof c == "function") {
1958
+ if (c.call(this, t, l, this)) {
1952
1959
  Q({
1953
1960
  sortable: n,
1954
1961
  rootEl: u,
@@ -1956,24 +1963,24 @@ w.prototype = /** @lends Sortable.prototype */
1956
1963
  targetEl: l,
1957
1964
  toEl: i,
1958
1965
  fromEl: i
1959
- }), tt("filter", n, {
1966
+ }), et("filter", n, {
1960
1967
  evt: t
1961
1968
  }), r && t.cancelable && t.preventDefault();
1962
1969
  return;
1963
1970
  }
1964
- } else if (d && (d = d.split(",").some(function(c) {
1965
- if (c = ut(u, c.trim(), i, !1), c)
1971
+ } else if (c && (c = c.split(",").some(function(d) {
1972
+ if (d = ut(u, d.trim(), i, !1), d)
1966
1973
  return Q({
1967
1974
  sortable: n,
1968
- rootEl: c,
1975
+ rootEl: d,
1969
1976
  name: "filter",
1970
1977
  targetEl: l,
1971
1978
  fromEl: i,
1972
1979
  toEl: i
1973
- }), tt("filter", n, {
1980
+ }), et("filter", n, {
1974
1981
  evt: t
1975
1982
  }), !0;
1976
- }), d)) {
1983
+ }), c)) {
1977
1984
  r && t.cancelable && t.preventDefault();
1978
1985
  return;
1979
1986
  }
@@ -1985,32 +1992,32 @@ w.prototype = /** @lends Sortable.prototype */
1985
1992
  var o = this, r = o.el, s = o.options, a = r.ownerDocument, l;
1986
1993
  if (i && !h && i.parentNode === r) {
1987
1994
  var u = k(i);
1988
- if (R = r, h = i, N = h.parentNode, It = h.nextSibling, Oe = i, $e = s.group, w.dragged = h, Rt = {
1995
+ if (R = r, h = i, N = h.parentNode, It = h.nextSibling, De = i, Se = s.group, w.dragged = h, Lt = {
1989
1996
  target: h,
1990
1997
  clientX: (n || t).clientX,
1991
1998
  clientY: (n || t).clientY
1992
- }, vi = Rt.clientX - u.left, wi = Rt.clientY - u.top, this._lastX = (n || t).clientX, this._lastY = (n || t).clientY, h.style["will-change"] = "all", l = function() {
1993
- if (tt("delayEnded", o, {
1999
+ }, Si = Lt.clientX - u.left, Ai = Lt.clientY - u.top, this._lastX = (n || t).clientX, this._lastY = (n || t).clientY, h.style["will-change"] = "all", l = function() {
2000
+ if (et("delayEnded", o, {
1994
2001
  evt: t
1995
2002
  }), w.eventCanceled) {
1996
2003
  o._onDrop();
1997
2004
  return;
1998
2005
  }
1999
- o._disableDelayedDragEvents(), !gi && o.nativeDraggable && (h.draggable = !0), o._triggerDragStart(t, n), Q({
2006
+ o._disableDelayedDragEvents(), !wi && o.nativeDraggable && (h.draggable = !0), o._triggerDragStart(t, n), Q({
2000
2007
  sortable: o,
2001
2008
  name: "choose",
2002
2009
  originalEvent: t
2003
2010
  }), ot(h, s.chosenClass, !0);
2004
- }, s.ignore.split(",").forEach(function(d) {
2005
- no(h, d.trim(), Cn);
2006
- }), _(a, "dragover", Mt), _(a, "mousemove", Mt), _(a, "touchmove", Mt), _(a, "mouseup", o._onDrop), _(a, "touchend", o._onDrop), _(a, "touchcancel", o._onDrop), gi && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), tt("delayStart", this, {
2011
+ }, s.ignore.split(",").forEach(function(c) {
2012
+ lo(h, c.trim(), On);
2013
+ }), T(a, "dragover", Mt), T(a, "mousemove", Mt), T(a, "touchmove", Mt), T(a, "mouseup", o._onDrop), T(a, "touchend", o._onDrop), T(a, "touchcancel", o._onDrop), wi && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), et("delayStart", this, {
2007
2014
  evt: t
2008
- }), s.delay && (!s.delayOnTouchOnly || n) && (!this.nativeDraggable || !(Ee || bt))) {
2015
+ }), s.delay && (!s.delayOnTouchOnly || n) && (!this.nativeDraggable || !(xe || vt))) {
2009
2016
  if (w.eventCanceled) {
2010
2017
  this._onDrop();
2011
2018
  return;
2012
2019
  }
2013
- _(a, "mouseup", o._disableDelayedDrag), _(a, "touchend", o._disableDelayedDrag), _(a, "touchcancel", o._disableDelayedDrag), _(a, "mousemove", o._delayedDragTouchMoveHandler), _(a, "touchmove", o._delayedDragTouchMoveHandler), s.supportPointer && _(a, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(l, s.delay);
2020
+ T(a, "mouseup", o._disableDelayedDrag), T(a, "touchend", o._disableDelayedDrag), T(a, "touchcancel", o._disableDelayedDrag), T(a, "mousemove", o._delayedDragTouchMoveHandler), T(a, "touchmove", o._delayedDragTouchMoveHandler), s.supportPointer && T(a, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(l, s.delay);
2014
2021
  } else
2015
2022
  l();
2016
2023
  }
@@ -2020,26 +2027,26 @@ w.prototype = /** @lends Sortable.prototype */
2020
2027
  Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
2021
2028
  },
2022
2029
  _disableDelayedDrag: function() {
2023
- h && Cn(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2030
+ h && On(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2024
2031
  },
2025
2032
  _disableDelayedDragEvents: function() {
2026
2033
  var t = this.el.ownerDocument;
2027
- $(t, "mouseup", this._disableDelayedDrag), $(t, "touchend", this._disableDelayedDrag), $(t, "touchcancel", this._disableDelayedDrag), $(t, "mousemove", this._delayedDragTouchMoveHandler), $(t, "touchmove", this._delayedDragTouchMoveHandler), $(t, "pointermove", this._delayedDragTouchMoveHandler);
2034
+ A(t, "mouseup", this._disableDelayedDrag), A(t, "touchend", this._disableDelayedDrag), A(t, "touchcancel", this._disableDelayedDrag), A(t, "mousemove", this._delayedDragTouchMoveHandler), A(t, "touchmove", this._delayedDragTouchMoveHandler), A(t, "pointermove", this._delayedDragTouchMoveHandler);
2028
2035
  },
2029
2036
  _triggerDragStart: function(t, n) {
2030
- n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? _(document, "pointermove", this._onTouchMove) : n ? _(document, "touchmove", this._onTouchMove) : _(document, "mousemove", this._onTouchMove) : (_(h, "dragend", this), _(R, "dragstart", this._onDragStart));
2037
+ n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? T(document, "pointermove", this._onTouchMove) : n ? T(document, "touchmove", this._onTouchMove) : T(document, "mousemove", this._onTouchMove) : (T(h, "dragend", this), T(R, "dragstart", this._onDragStart));
2031
2038
  try {
2032
- document.selection ? Re(function() {
2039
+ document.selection ? Le(function() {
2033
2040
  document.selection.empty();
2034
2041
  }) : window.getSelection().removeAllRanges();
2035
2042
  } catch {
2036
2043
  }
2037
2044
  },
2038
2045
  _dragStarted: function(t, n) {
2039
- if (Ft = !1, R && h) {
2040
- tt("dragStarted", this, {
2046
+ if (Zt = !1, R && h) {
2047
+ et("dragStarted", this, {
2041
2048
  evt: n
2042
- }), this.nativeDraggable && _(document, "dragover", ws);
2049
+ }), this.nativeDraggable && T(document, "dragover", As);
2043
2050
  var i = this.options;
2044
2051
  !t && ot(h, i.dragClass, !1), ot(h, i.ghostClass, !0), w.active = this, t && this._appendGhost(), Q({
2045
2052
  sortable: this,
@@ -2051,14 +2058,14 @@ w.prototype = /** @lends Sortable.prototype */
2051
2058
  },
2052
2059
  _emulateDragOver: function() {
2053
2060
  if (lt) {
2054
- this._lastX = lt.clientX, this._lastY = lt.clientY, co();
2061
+ this._lastX = lt.clientX, this._lastY = lt.clientY, yo();
2055
2062
  for (var t = document.elementFromPoint(lt.clientX, lt.clientY), n = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(lt.clientX, lt.clientY), t !== n); )
2056
2063
  n = t;
2057
- if (h.parentNode[nt]._isOutsideThisEl(t), n)
2064
+ if (h.parentNode[it]._isOutsideThisEl(t), n)
2058
2065
  do {
2059
- if (n[nt]) {
2066
+ if (n[it]) {
2060
2067
  var i = void 0;
2061
- if (i = n[nt]._onDragOver({
2068
+ if (i = n[it]._onDragOver({
2062
2069
  clientX: lt.clientX,
2063
2070
  clientY: lt.clientY,
2064
2071
  target: t,
@@ -2067,139 +2074,139 @@ w.prototype = /** @lends Sortable.prototype */
2067
2074
  break;
2068
2075
  }
2069
2076
  t = n;
2070
- } while (n = eo(n));
2071
- ho();
2077
+ } while (n = ao(n));
2078
+ bo();
2072
2079
  }
2073
2080
  },
2074
2081
  _onTouchMove: function(t) {
2075
- if (Rt) {
2076
- var n = this.options, i = n.fallbackTolerance, o = n.fallbackOffset, r = t.touches ? t.touches[0] : t, s = E && zt(E, !0), a = E && s && s.a, l = E && s && s.d, u = _e && W && bi(W), d = (r.clientX - Rt.clientX + o.x) / (a || 1) + (u ? u[0] - _n[0] : 0) / (a || 1), c = (r.clientY - Rt.clientY + o.y) / (l || 1) + (u ? u[1] - _n[1] : 0) / (l || 1);
2077
- if (!w.active && !Ft) {
2082
+ if (Lt) {
2083
+ var n = this.options, i = n.fallbackTolerance, o = n.fallbackOffset, r = t.touches ? t.touches[0] : t, s = E && qt(E, !0), a = E && s && s.a, l = E && s && s.d, u = Ce && G && $i(G), c = (r.clientX - Lt.clientX + o.x) / (a || 1) + (u ? u[0] - Pn[0] : 0) / (a || 1), d = (r.clientY - Lt.clientY + o.y) / (l || 1) + (u ? u[1] - Pn[1] : 0) / (l || 1);
2084
+ if (!w.active && !Zt) {
2078
2085
  if (i && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < i)
2079
2086
  return;
2080
2087
  this._onDragStart(t, !0);
2081
2088
  }
2082
2089
  if (E) {
2083
- s ? (s.e += d - ($n || 0), s.f += c - (An || 0)) : s = {
2090
+ s ? (s.e += c - (_n || 0), s.f += d - (Tn || 0)) : s = {
2084
2091
  a: 1,
2085
2092
  b: 0,
2086
2093
  c: 0,
2087
2094
  d: 1,
2088
- e: d,
2089
- f: c
2095
+ e: c,
2096
+ f: d
2090
2097
  };
2091
2098
  var p = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
2092
- v(E, "webkitTransform", p), v(E, "mozTransform", p), v(E, "msTransform", p), v(E, "transform", p), $n = d, An = c, lt = r;
2099
+ v(E, "webkitTransform", p), v(E, "mozTransform", p), v(E, "msTransform", p), v(E, "transform", p), _n = c, Tn = d, lt = r;
2093
2100
  }
2094
2101
  t.cancelable && t.preventDefault();
2095
2102
  }
2096
2103
  },
2097
2104
  _appendGhost: function() {
2098
2105
  if (!E) {
2099
- var t = this.options.fallbackOnBody ? document.body : R, n = k(h, !0, _e, !0, t), i = this.options;
2100
- if (_e) {
2101
- for (W = t; v(W, "position") === "static" && v(W, "transform") === "none" && W !== document; )
2102
- W = W.parentNode;
2103
- W !== document.body && W !== document.documentElement ? (W === document && (W = ct()), n.top += W.scrollTop, n.left += W.scrollLeft) : W = ct(), _n = bi(W);
2106
+ var t = this.options.fallbackOnBody ? document.body : R, n = k(h, !0, Ce, !0, t), i = this.options;
2107
+ if (Ce) {
2108
+ for (G = t; v(G, "position") === "static" && v(G, "transform") === "none" && G !== document; )
2109
+ G = G.parentNode;
2110
+ G !== document.body && G !== document.documentElement ? (G === document && (G = dt()), n.top += G.scrollTop, n.left += G.scrollLeft) : G = dt(), Pn = $i(G);
2104
2111
  }
2105
- E = h.cloneNode(!0), ot(E, i.ghostClass, !1), ot(E, i.fallbackClass, !0), ot(E, i.dragClass, !0), v(E, "transition", ""), v(E, "transform", ""), v(E, "box-sizing", "border-box"), v(E, "margin", 0), v(E, "top", n.top), v(E, "left", n.left), v(E, "width", n.width), v(E, "height", n.height), v(E, "opacity", "0.8"), v(E, "position", _e ? "absolute" : "fixed"), v(E, "zIndex", "100000"), v(E, "pointerEvents", "none"), w.ghost = E, t.appendChild(E), v(E, "transform-origin", vi / parseInt(E.style.width) * 100 + "% " + wi / parseInt(E.style.height) * 100 + "%");
2112
+ E = h.cloneNode(!0), ot(E, i.ghostClass, !1), ot(E, i.fallbackClass, !0), ot(E, i.dragClass, !0), v(E, "transition", ""), v(E, "transform", ""), v(E, "box-sizing", "border-box"), v(E, "margin", 0), v(E, "top", n.top), v(E, "left", n.left), v(E, "width", n.width), v(E, "height", n.height), v(E, "opacity", "0.8"), v(E, "position", Ce ? "absolute" : "fixed"), v(E, "zIndex", "100000"), v(E, "pointerEvents", "none"), w.ghost = E, t.appendChild(E), v(E, "transform-origin", Si / parseInt(E.style.width) * 100 + "% " + Ai / parseInt(E.style.height) * 100 + "%");
2106
2113
  }
2107
2114
  },
2108
2115
  _onDragStart: function(t, n) {
2109
2116
  var i = this, o = t.dataTransfer, r = i.options;
2110
- if (tt("dragStart", this, {
2117
+ if (et("dragStart", this, {
2111
2118
  evt: t
2112
2119
  }), w.eventCanceled) {
2113
2120
  this._onDrop();
2114
2121
  return;
2115
2122
  }
2116
- tt("setupClone", this), w.eventCanceled || (M = ro(h), M.removeAttribute("id"), M.draggable = !1, M.style["will-change"] = "", this._hideClone(), ot(M, this.options.chosenClass, !1), w.clone = M), i.cloneId = Re(function() {
2117
- tt("clone", i), !w.eventCanceled && (i.options.removeCloneOnHide || R.insertBefore(M, h), i._hideClone(), Q({
2123
+ et("setupClone", this), w.eventCanceled || (L = ho(h), L.removeAttribute("id"), L.draggable = !1, L.style["will-change"] = "", this._hideClone(), ot(L, this.options.chosenClass, !1), w.clone = L), i.cloneId = Le(function() {
2124
+ et("clone", i), !w.eventCanceled && (i.options.removeCloneOnHide || R.insertBefore(L, h), i._hideClone(), Q({
2118
2125
  sortable: i,
2119
2126
  name: "clone"
2120
2127
  }));
2121
- }), !n && ot(h, r.dragClass, !0), n ? (ke = !0, i._loopId = setInterval(i._emulateDragOver, 50)) : ($(document, "mouseup", i._onDrop), $(document, "touchend", i._onDrop), $(document, "touchcancel", i._onDrop), o && (o.effectAllowed = "move", r.setData && r.setData.call(i, o, h)), _(document, "drop", i), v(h, "transform", "translateZ(0)")), Ft = !0, i._dragStartId = Re(i._dragStarted.bind(i, n, t)), _(document, "selectstart", i), ne = !0, ae && v(document.body, "user-select", "none");
2128
+ }), !n && ot(h, r.dragClass, !0), n ? (Ue = !0, i._loopId = setInterval(i._emulateDragOver, 50)) : (A(document, "mouseup", i._onDrop), A(document, "touchend", i._onDrop), A(document, "touchcancel", i._onDrop), o && (o.effectAllowed = "move", r.setData && r.setData.call(i, o, h)), T(document, "drop", i), v(h, "transform", "translateZ(0)")), Zt = !0, i._dragStartId = Le(i._dragStarted.bind(i, n, t)), T(document, "selectstart", i), ie = !0, le && v(document.body, "user-select", "none");
2122
2129
  },
2123
2130
  // Returns true - if no further action is needed (either inserted or another condition)
2124
2131
  _onDragOver: function(t) {
2125
- var n = this.el, i = t.target, o, r, s, a = this.options, l = a.group, u = w.active, d = $e === l, c = a.sort, p = z || u, f, g = this, y = !1;
2126
- if (In) return;
2127
- function O(Kt, Uo) {
2128
- tt(Kt, g, dt({
2132
+ var n = this.el, i = t.target, o, r, s, a = this.options, l = a.group, u = w.active, c = Se === l, d = a.sort, p = X || u, f, g = this, y = !1;
2133
+ if (Hn) return;
2134
+ function O(te, qo) {
2135
+ et(te, g, ct({
2129
2136
  evt: t,
2130
- isOwner: d,
2137
+ isOwner: c,
2131
2138
  axis: f ? "vertical" : "horizontal",
2132
2139
  revert: s,
2133
2140
  dragRect: o,
2134
2141
  targetRect: r,
2135
- canSort: c,
2142
+ canSort: d,
2136
2143
  fromSortable: p,
2137
2144
  target: i,
2138
2145
  completed: H,
2139
- onMove: function(ti, Fo) {
2140
- return Ce(R, n, h, o, ti, k(ti), t, Fo);
2146
+ onMove: function(ri, Yo) {
2147
+ return _e(R, n, h, o, ri, k(ri), t, Yo);
2141
2148
  },
2142
2149
  changed: J
2143
- }, Uo));
2150
+ }, qo));
2144
2151
  }
2145
- function I() {
2152
+ function M() {
2146
2153
  O("dragOverAnimationCapture"), g.captureAnimationState(), g !== p && p.captureAnimationState();
2147
2154
  }
2148
- function H(Kt) {
2155
+ function H(te) {
2149
2156
  return O("dragOverCompleted", {
2150
- insertion: Kt
2151
- }), Kt && (d ? u._hideClone() : u._showClone(g), g !== p && (ot(h, z ? z.options.ghostClass : u.options.ghostClass, !1), ot(h, a.ghostClass, !0)), z !== g && g !== w.active ? z = g : g === w.active && z && (z = null), p === g && (g._ignoreWhileAnimating = i), g.animateAll(function() {
2157
+ insertion: te
2158
+ }), te && (c ? u._hideClone() : u._showClone(g), g !== p && (ot(h, X ? X.options.ghostClass : u.options.ghostClass, !1), ot(h, a.ghostClass, !0)), X !== g && g !== w.active ? X = g : g === w.active && X && (X = null), p === g && (g._ignoreWhileAnimating = i), g.animateAll(function() {
2152
2159
  O("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
2153
- }), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (i === h && !h.animated || i === n && !i.animated) && (kt = null), !a.dragoverBubble && !t.rootEl && i !== document && (h.parentNode[nt]._isOutsideThisEl(t.target), !Kt && Mt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), y = !0;
2160
+ }), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (i === h && !h.animated || i === n && !i.animated) && (Ft = null), !a.dragoverBubble && !t.rootEl && i !== document && (h.parentNode[it]._isOutsideThisEl(t.target), !te && Mt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), y = !0;
2154
2161
  }
2155
2162
  function J() {
2156
- rt = st(h), xt = st(h, a.draggable), Q({
2163
+ rt = st(h), $t = st(h, a.draggable), Q({
2157
2164
  sortable: g,
2158
2165
  name: "change",
2159
2166
  toEl: n,
2160
2167
  newIndex: rt,
2161
- newDraggableIndex: xt,
2168
+ newDraggableIndex: $t,
2162
2169
  originalEvent: t
2163
2170
  });
2164
2171
  }
2165
2172
  if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), i = ut(i, a.draggable, n, !0), O("dragOver"), w.eventCanceled) return y;
2166
2173
  if (h.contains(t.target) || i.animated && i.animatingX && i.animatingY || g._ignoreWhileAnimating === i)
2167
2174
  return H(!1);
2168
- if (ke = !1, u && !a.disabled && (d ? c || (s = N !== R) : z === this || (this.lastPutMode = $e.checkPull(this, u, h, t)) && l.checkPut(this, u, h, t))) {
2175
+ if (Ue = !1, u && !a.disabled && (c ? d || (s = N !== R) : X === this || (this.lastPutMode = Se.checkPull(this, u, h, t)) && l.checkPut(this, u, h, t))) {
2169
2176
  if (f = this._getDirection(t, i) === "vertical", o = k(h), O("dragOverValid"), w.eventCanceled) return y;
2170
2177
  if (s)
2171
- return N = R, I(), this._hideClone(), O("revert"), w.eventCanceled || (It ? R.insertBefore(h, It) : R.appendChild(h)), H(!0);
2172
- var j = Gn(n, a.draggable);
2173
- if (!j || $s(t, f, this) && !j.animated) {
2174
- if (j === h)
2178
+ return N = R, M(), this._hideClone(), O("revert"), w.eventCanceled || (It ? R.insertBefore(h, It) : R.appendChild(h)), H(!0);
2179
+ var Z = ti(n, a.draggable);
2180
+ if (!Z || Ps(t, f, this) && !Z.animated) {
2181
+ if (Z === h)
2175
2182
  return H(!1);
2176
- if (j && n === t.target && (i = j), i && (r = k(i)), Ce(R, n, h, o, i, r, t, !!i) !== !1)
2177
- return I(), j && j.nextSibling ? n.insertBefore(h, j.nextSibling) : n.appendChild(h), N = n, J(), H(!0);
2178
- } else if (j && Ss(t, f, this)) {
2179
- var K = qt(n, 0, a, !0);
2183
+ if (Z && n === t.target && (i = Z), i && (r = k(i)), _e(R, n, h, o, i, r, t, !!i) !== !1)
2184
+ return M(), Z && Z.nextSibling ? n.insertBefore(h, Z.nextSibling) : n.appendChild(h), N = n, J(), H(!0);
2185
+ } else if (Z && Ts(t, f, this)) {
2186
+ var K = Wt(n, 0, a, !0);
2180
2187
  if (K === h)
2181
2188
  return H(!1);
2182
- if (i = K, r = k(i), Ce(R, n, h, o, i, r, t, !1) !== !1)
2183
- return I(), n.insertBefore(h, K), N = n, J(), H(!0);
2189
+ if (i = K, r = k(i), _e(R, n, h, o, i, r, t, !1) !== !1)
2190
+ return M(), n.insertBefore(h, K), N = n, J(), H(!0);
2184
2191
  } else if (i.parentNode === n) {
2185
2192
  r = k(i);
2186
- var b = 0, D, Z = h.parentNode !== n, U = !bs(h.animated && h.toRect || o, i.animated && i.toRect || r, f), Wt = f ? "top" : "left", vt = yi(i, "top", "top") || yi(h, "top", "top"), Gt = vt ? vt.scrollTop : void 0;
2187
- kt !== i && (D = r[Wt], de = !1, Ae = !U && a.invertSwap || Z), b = As(t, i, r, f, U ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ae, kt === i);
2193
+ var b = 0, D, z = h.parentNode !== n, U = !$s(h.animated && h.toRect || o, i.animated && i.toRect || r, f), Jt = f ? "top" : "left", wt = Ei(i, "top", "top") || Ei(h, "top", "top"), Kt = wt ? wt.scrollTop : void 0;
2194
+ Ft !== i && (D = r[Jt], he = !1, Ae = !U && a.invertSwap || z), b = Os(t, i, r, f, U ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ae, Ft === i);
2188
2195
  var ht;
2189
2196
  if (b !== 0) {
2190
- var Pt = st(h);
2197
+ var Ot = st(h);
2191
2198
  do
2192
- Pt -= b, ht = N.children[Pt];
2199
+ Ot -= b, ht = N.children[Ot];
2193
2200
  while (ht && (v(ht, "display") === "none" || ht === E));
2194
2201
  }
2195
2202
  if (b === 0 || ht === i)
2196
2203
  return H(!1);
2197
- kt = i, ce = b;
2198
- var Jt = i.nextElementSibling, wt = !1;
2199
- wt = b === 1;
2200
- var Se = Ce(R, n, h, o, i, r, t, wt);
2201
- if (Se !== !1)
2202
- return (Se === 1 || Se === -1) && (wt = Se === 1), In = !0, setTimeout(xs, 30), I(), wt && !Jt ? n.appendChild(h) : i.parentNode.insertBefore(h, wt ? Jt : i), vt && oo(vt, 0, Gt - vt.scrollTop), N = h.parentNode, D !== void 0 && !Ae && (De = Math.abs(D - k(i)[Wt])), J(), H(!0);
2204
+ Ft = i, ce = b;
2205
+ var Qt = i.nextElementSibling, xt = !1;
2206
+ xt = b === 1;
2207
+ var $e = _e(R, n, h, o, i, r, t, xt);
2208
+ if ($e !== !1)
2209
+ return ($e === 1 || $e === -1) && (xt = $e === 1), Hn = !0, setTimeout(_s, 30), M(), xt && !Qt ? n.appendChild(h) : i.parentNode.insertBefore(h, xt ? Qt : i), wt && co(wt, 0, Kt - wt.scrollTop), N = h.parentNode, D !== void 0 && !Ae && (Re = Math.abs(D - k(i)[Jt])), J(), H(!0);
2203
2210
  }
2204
2211
  if (n.contains(h))
2205
2212
  return H(!1);
@@ -2208,21 +2215,21 @@ w.prototype = /** @lends Sortable.prototype */
2208
2215
  },
2209
2216
  _ignoreWhileAnimating: null,
2210
2217
  _offMoveEvents: function() {
2211
- $(document, "mousemove", this._onTouchMove), $(document, "touchmove", this._onTouchMove), $(document, "pointermove", this._onTouchMove), $(document, "dragover", Mt), $(document, "mousemove", Mt), $(document, "touchmove", Mt);
2218
+ A(document, "mousemove", this._onTouchMove), A(document, "touchmove", this._onTouchMove), A(document, "pointermove", this._onTouchMove), A(document, "dragover", Mt), A(document, "mousemove", Mt), A(document, "touchmove", Mt);
2212
2219
  },
2213
2220
  _offUpEvents: function() {
2214
2221
  var t = this.el.ownerDocument;
2215
- $(t, "mouseup", this._onDrop), $(t, "touchend", this._onDrop), $(t, "pointerup", this._onDrop), $(t, "touchcancel", this._onDrop), $(document, "selectstart", this);
2222
+ A(t, "mouseup", this._onDrop), A(t, "touchend", this._onDrop), A(t, "pointerup", this._onDrop), A(t, "touchcancel", this._onDrop), A(document, "selectstart", this);
2216
2223
  },
2217
2224
  _onDrop: function(t) {
2218
2225
  var n = this.el, i = this.options;
2219
- if (rt = st(h), xt = st(h, i.draggable), tt("drop", this, {
2226
+ if (rt = st(h), $t = st(h, i.draggable), et("drop", this, {
2220
2227
  evt: t
2221
- }), N = h && h.parentNode, rt = st(h), xt = st(h, i.draggable), w.eventCanceled) {
2228
+ }), N = h && h.parentNode, rt = st(h), $t = st(h, i.draggable), w.eventCanceled) {
2222
2229
  this._nulling();
2223
2230
  return;
2224
2231
  }
2225
- Ft = !1, Ae = !1, de = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Nn(this.cloneId), Nn(this._dragStartId), this.nativeDraggable && ($(document, "drop", this), $(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), ae && v(document.body, "user-select", ""), v(h, "transform", ""), t && (ne && (t.cancelable && t.preventDefault(), !i.dropBubble && t.stopPropagation()), E && E.parentNode && E.parentNode.removeChild(E), (R === N || z && z.lastPutMode !== "clone") && M && M.parentNode && M.parentNode.removeChild(M), h && (this.nativeDraggable && $(h, "dragend", this), Cn(h), h.style["will-change"] = "", ne && !Ft && ot(h, z ? z.options.ghostClass : this.options.ghostClass, !1), ot(h, this.options.chosenClass, !1), Q({
2232
+ Zt = !1, Ae = !1, he = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Vn(this.cloneId), Vn(this._dragStartId), this.nativeDraggable && (A(document, "drop", this), A(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), le && v(document.body, "user-select", ""), v(h, "transform", ""), t && (ie && (t.cancelable && t.preventDefault(), !i.dropBubble && t.stopPropagation()), E && E.parentNode && E.parentNode.removeChild(E), (R === N || X && X.lastPutMode !== "clone") && L && L.parentNode && L.parentNode.removeChild(L), h && (this.nativeDraggable && A(h, "dragend", this), On(h), h.style["will-change"] = "", ie && !Zt && ot(h, X ? X.options.ghostClass : this.options.ghostClass, !1), ot(h, this.options.chosenClass, !1), Q({
2226
2233
  sortable: this,
2227
2234
  name: "unchoose",
2228
2235
  toEl: N,
@@ -2251,7 +2258,7 @@ w.prototype = /** @lends Sortable.prototype */
2251
2258
  name: "sort",
2252
2259
  toEl: N,
2253
2260
  originalEvent: t
2254
- })), z && z.save()) : rt !== Zt && rt >= 0 && (Q({
2261
+ })), X && X.save()) : rt !== Xt && rt >= 0 && (Q({
2255
2262
  sortable: this,
2256
2263
  name: "update",
2257
2264
  toEl: N,
@@ -2261,7 +2268,7 @@ w.prototype = /** @lends Sortable.prototype */
2261
2268
  name: "sort",
2262
2269
  toEl: N,
2263
2270
  originalEvent: t
2264
- })), w.active && ((rt == null || rt === -1) && (rt = Zt, xt = ue), Q({
2271
+ })), w.active && ((rt == null || rt === -1) && (rt = Xt, $t = de), Q({
2265
2272
  sortable: this,
2266
2273
  name: "end",
2267
2274
  toEl: N,
@@ -2269,9 +2276,9 @@ w.prototype = /** @lends Sortable.prototype */
2269
2276
  }), this.save()))), this._nulling();
2270
2277
  },
2271
2278
  _nulling: function() {
2272
- tt("nulling", this), R = h = N = E = It = M = Oe = St = Rt = lt = ne = rt = xt = Zt = ue = kt = ce = z = $e = w.dragged = w.ghost = w.clone = w.active = null, Fe.forEach(function(t) {
2279
+ et("nulling", this), R = h = N = E = It = L = De = St = Lt = lt = ie = rt = $t = Xt = de = Ft = ce = X = Se = w.dragged = w.ghost = w.clone = w.active = null, je.forEach(function(t) {
2273
2280
  t.checked = !0;
2274
- }), Fe.length = $n = An = 0;
2281
+ }), je.length = _n = Tn = 0;
2275
2282
  },
2276
2283
  handleEvent: function(t) {
2277
2284
  switch (t.type) {
@@ -2281,7 +2288,7 @@ w.prototype = /** @lends Sortable.prototype */
2281
2288
  break;
2282
2289
  case "dragenter":
2283
2290
  case "dragover":
2284
- h && (this._onDragOver(t), Es(t));
2291
+ h && (this._onDragOver(t), Cs(t));
2285
2292
  break;
2286
2293
  case "selectstart":
2287
2294
  t.preventDefault();
@@ -2294,7 +2301,7 @@ w.prototype = /** @lends Sortable.prototype */
2294
2301
  */
2295
2302
  toArray: function() {
2296
2303
  for (var t = [], n, i = this.el.children, o = 0, r = i.length, s = this.options; o < r; o++)
2297
- n = i[o], ut(n, s.draggable, this.el, !1) && t.push(n.getAttribute(s.dataIdAttr) || Cs(n));
2304
+ n = i[o], ut(n, s.draggable, this.el, !1) && t.push(n.getAttribute(s.dataIdAttr) || Rs(n));
2298
2305
  return t;
2299
2306
  },
2300
2307
  /**
@@ -2336,23 +2343,23 @@ w.prototype = /** @lends Sortable.prototype */
2336
2343
  var i = this.options;
2337
2344
  if (n === void 0)
2338
2345
  return i[t];
2339
- var o = xe.modifyOption(this, t, n);
2340
- typeof o < "u" ? i[t] = o : i[t] = n, t === "group" && uo(i);
2346
+ var o = Ee.modifyOption(this, t, n);
2347
+ typeof o < "u" ? i[t] = o : i[t] = n, t === "group" && mo(i);
2341
2348
  },
2342
2349
  /**
2343
2350
  * Destroy
2344
2351
  */
2345
2352
  destroy: function() {
2346
- tt("destroy", this);
2353
+ et("destroy", this);
2347
2354
  var t = this.el;
2348
- t[nt] = null, $(t, "mousedown", this._onTapStart), $(t, "touchstart", this._onTapStart), $(t, "pointerdown", this._onTapStart), this.nativeDraggable && ($(t, "dragover", this), $(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(n) {
2355
+ t[it] = null, A(t, "mousedown", this._onTapStart), A(t, "touchstart", this._onTapStart), A(t, "pointerdown", this._onTapStart), this.nativeDraggable && (A(t, "dragover", this), A(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(n) {
2349
2356
  n.removeAttribute("draggable");
2350
- }), this._onDrop(), this._disableDelayedDragEvents(), Ue.splice(Ue.indexOf(this.el), 1), this.el = t = null;
2357
+ }), this._onDrop(), this._disableDelayedDragEvents(), Fe.splice(Fe.indexOf(this.el), 1), this.el = t = null;
2351
2358
  },
2352
2359
  _hideClone: function() {
2353
2360
  if (!St) {
2354
- if (tt("hideClone", this), w.eventCanceled) return;
2355
- v(M, "display", "none"), this.options.removeCloneOnHide && M.parentNode && M.parentNode.removeChild(M), St = !0;
2361
+ if (et("hideClone", this), w.eventCanceled) return;
2362
+ v(L, "display", "none"), this.options.removeCloneOnHide && L.parentNode && L.parentNode.removeChild(L), St = !0;
2356
2363
  }
2357
2364
  },
2358
2365
  _showClone: function(t) {
@@ -2361,94 +2368,94 @@ w.prototype = /** @lends Sortable.prototype */
2361
2368
  return;
2362
2369
  }
2363
2370
  if (St) {
2364
- if (tt("showClone", this), w.eventCanceled) return;
2365
- h.parentNode == R && !this.options.group.revertClone ? R.insertBefore(M, h) : It ? R.insertBefore(M, It) : R.appendChild(M), this.options.group.revertClone && this.animate(h, M), v(M, "display", ""), St = !1;
2371
+ if (et("showClone", this), w.eventCanceled) return;
2372
+ h.parentNode == R && !this.options.group.revertClone ? R.insertBefore(L, h) : It ? R.insertBefore(L, It) : R.appendChild(L), this.options.group.revertClone && this.animate(h, L), v(L, "display", ""), St = !1;
2366
2373
  }
2367
2374
  }
2368
2375
  };
2369
- function Es(e) {
2376
+ function Cs(e) {
2370
2377
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
2371
2378
  }
2372
- function Ce(e, t, n, i, o, r, s, a) {
2373
- var l, u = e[nt], d = u.options.onMove, c;
2374
- return window.CustomEvent && !bt && !Ee ? l = new CustomEvent("move", {
2379
+ function _e(e, t, n, i, o, r, s, a) {
2380
+ var l, u = e[it], c = u.options.onMove, d;
2381
+ return window.CustomEvent && !vt && !xe ? l = new CustomEvent("move", {
2375
2382
  bubbles: !0,
2376
2383
  cancelable: !0
2377
- }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = e, l.dragged = n, l.draggedRect = i, l.related = o || t, l.relatedRect = r || k(t), l.willInsertAfter = a, l.originalEvent = s, e.dispatchEvent(l), d && (c = d.call(u, l, s)), c;
2384
+ }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = e, l.dragged = n, l.draggedRect = i, l.related = o || t, l.relatedRect = r || k(t), l.willInsertAfter = a, l.originalEvent = s, e.dispatchEvent(l), c && (d = c.call(u, l, s)), d;
2378
2385
  }
2379
- function Cn(e) {
2386
+ function On(e) {
2380
2387
  e.draggable = !1;
2381
2388
  }
2382
- function xs() {
2383
- In = !1;
2389
+ function _s() {
2390
+ Hn = !1;
2384
2391
  }
2385
- function Ss(e, t, n) {
2386
- var i = k(qt(n.el, 0, n.options, !0)), o = so(n.el, n.options, E), r = 10;
2392
+ function Ts(e, t, n) {
2393
+ var i = k(Wt(n.el, 0, n.options, !0)), o = po(n.el, n.options, E), r = 10;
2387
2394
  return t ? e.clientX < o.left - r || e.clientY < i.top && e.clientX < i.right : e.clientY < o.top - r || e.clientY < i.bottom && e.clientX < i.left;
2388
2395
  }
2389
- function $s(e, t, n) {
2390
- var i = k(Gn(n.el, n.options.draggable)), o = so(n.el, n.options, E), r = 10;
2396
+ function Ps(e, t, n) {
2397
+ var i = k(ti(n.el, n.options.draggable)), o = po(n.el, n.options, E), r = 10;
2391
2398
  return t ? e.clientX > o.right + r || e.clientY > i.bottom && e.clientX > i.left : e.clientY > o.bottom + r || e.clientX > i.right && e.clientY > i.top;
2392
2399
  }
2393
- function As(e, t, n, i, o, r, s, a) {
2394
- var l = i ? e.clientY : e.clientX, u = i ? n.height : n.width, d = i ? n.top : n.left, c = i ? n.bottom : n.right, p = !1;
2400
+ function Os(e, t, n, i, o, r, s, a) {
2401
+ var l = i ? e.clientY : e.clientX, u = i ? n.height : n.width, c = i ? n.top : n.left, d = i ? n.bottom : n.right, p = !1;
2395
2402
  if (!s) {
2396
- if (a && De < u * o) {
2397
- if (!de && (ce === 1 ? l > d + u * r / 2 : l < c - u * r / 2) && (de = !0), de)
2403
+ if (a && Re < u * o) {
2404
+ if (!he && (ce === 1 ? l > c + u * r / 2 : l < d - u * r / 2) && (he = !0), he)
2398
2405
  p = !0;
2399
- else if (ce === 1 ? l < d + De : l > c - De)
2406
+ else if (ce === 1 ? l < c + Re : l > d - Re)
2400
2407
  return -ce;
2401
- } else if (l > d + u * (1 - o) / 2 && l < c - u * (1 - o) / 2)
2402
- return _s(t);
2408
+ } else if (l > c + u * (1 - o) / 2 && l < d - u * (1 - o) / 2)
2409
+ return Ds(t);
2403
2410
  }
2404
- return p = p || s, p && (l < d + u * r / 2 || l > c - u * r / 2) ? l > d + u / 2 ? 1 : -1 : 0;
2411
+ return p = p || s, p && (l < c + u * r / 2 || l > d - u * r / 2) ? l > c + u / 2 ? 1 : -1 : 0;
2405
2412
  }
2406
- function _s(e) {
2413
+ function Ds(e) {
2407
2414
  return st(h) < st(e) ? 1 : -1;
2408
2415
  }
2409
- function Cs(e) {
2416
+ function Rs(e) {
2410
2417
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, i = 0; n--; )
2411
2418
  i += t.charCodeAt(n);
2412
2419
  return i.toString(36);
2413
2420
  }
2414
- function Ts(e) {
2415
- Fe.length = 0;
2421
+ function Ls(e) {
2422
+ je.length = 0;
2416
2423
  for (var t = e.getElementsByTagName("input"), n = t.length; n--; ) {
2417
2424
  var i = t[n];
2418
- i.checked && Fe.push(i);
2425
+ i.checked && je.push(i);
2419
2426
  }
2420
2427
  }
2421
- function Re(e) {
2428
+ function Le(e) {
2422
2429
  return setTimeout(e, 0);
2423
2430
  }
2424
- function Nn(e) {
2431
+ function Vn(e) {
2425
2432
  return clearTimeout(e);
2426
2433
  }
2427
- pn && _(document, "touchmove", function(e) {
2428
- (w.active || Ft) && e.cancelable && e.preventDefault();
2434
+ mn && T(document, "touchmove", function(e) {
2435
+ (w.active || Zt) && e.cancelable && e.preventDefault();
2429
2436
  });
2430
2437
  w.utils = {
2431
- on: _,
2432
- off: $,
2438
+ on: T,
2439
+ off: A,
2433
2440
  css: v,
2434
- find: no,
2441
+ find: lo,
2435
2442
  is: function(t, n) {
2436
2443
  return !!ut(t, n, t, !1);
2437
2444
  },
2438
- extend: cs,
2439
- throttle: io,
2445
+ extend: gs,
2446
+ throttle: uo,
2440
2447
  closest: ut,
2441
2448
  toggleClass: ot,
2442
- clone: ro,
2449
+ clone: ho,
2443
2450
  index: st,
2444
- nextTick: Re,
2445
- cancelNextTick: Nn,
2446
- detectDirection: lo,
2447
- getChild: qt,
2448
- expando: nt
2451
+ nextTick: Le,
2452
+ cancelNextTick: Vn,
2453
+ detectDirection: go,
2454
+ getChild: Wt,
2455
+ expando: it
2449
2456
  };
2450
2457
  w.get = function(e) {
2451
- return e[nt];
2458
+ return e[it];
2452
2459
  };
2453
2460
  w.mount = function() {
2454
2461
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
@@ -2456,15 +2463,15 @@ w.mount = function() {
2456
2463
  t[0].constructor === Array && (t = t[0]), t.forEach(function(i) {
2457
2464
  if (!i.prototype || !i.prototype.constructor)
2458
2465
  throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));
2459
- i.utils && (w.utils = dt(dt({}, w.utils), i.utils)), xe.mount(i);
2466
+ i.utils && (w.utils = ct(ct({}, w.utils), i.utils)), Ee.mount(i);
2460
2467
  });
2461
2468
  };
2462
2469
  w.create = function(e, t) {
2463
2470
  return new w(e, t);
2464
2471
  };
2465
- w.version = ls;
2466
- var V = [], ie, Hn, Ln = !1, Tn, Pn, je, oe;
2467
- function Ps() {
2472
+ w.version = ps;
2473
+ var B = [], oe, Bn, kn = !1, Dn, Rn, Ze, re;
2474
+ function Ms() {
2468
2475
  function e() {
2469
2476
  this.defaults = {
2470
2477
  scroll: !0,
@@ -2479,88 +2486,88 @@ function Ps() {
2479
2486
  return e.prototype = {
2480
2487
  dragStarted: function(n) {
2481
2488
  var i = n.originalEvent;
2482
- this.sortable.nativeDraggable ? _(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? _(document, "pointermove", this._handleFallbackAutoScroll) : i.touches ? _(document, "touchmove", this._handleFallbackAutoScroll) : _(document, "mousemove", this._handleFallbackAutoScroll);
2489
+ this.sortable.nativeDraggable ? T(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? T(document, "pointermove", this._handleFallbackAutoScroll) : i.touches ? T(document, "touchmove", this._handleFallbackAutoScroll) : T(document, "mousemove", this._handleFallbackAutoScroll);
2483
2490
  },
2484
2491
  dragOverCompleted: function(n) {
2485
2492
  var i = n.originalEvent;
2486
2493
  !this.options.dragOverBubble && !i.rootEl && this._handleAutoScroll(i);
2487
2494
  },
2488
2495
  drop: function() {
2489
- this.sortable.nativeDraggable ? $(document, "dragover", this._handleAutoScroll) : ($(document, "pointermove", this._handleFallbackAutoScroll), $(document, "touchmove", this._handleFallbackAutoScroll), $(document, "mousemove", this._handleFallbackAutoScroll)), xi(), Me(), ds();
2496
+ this.sortable.nativeDraggable ? A(document, "dragover", this._handleAutoScroll) : (A(document, "pointermove", this._handleFallbackAutoScroll), A(document, "touchmove", this._handleFallbackAutoScroll), A(document, "mousemove", this._handleFallbackAutoScroll)), _i(), Me(), ms();
2490
2497
  },
2491
2498
  nulling: function() {
2492
- je = Hn = ie = Ln = oe = Tn = Pn = null, V.length = 0;
2499
+ Ze = Bn = oe = kn = re = Dn = Rn = null, B.length = 0;
2493
2500
  },
2494
2501
  _handleFallbackAutoScroll: function(n) {
2495
2502
  this._handleAutoScroll(n, !0);
2496
2503
  },
2497
2504
  _handleAutoScroll: function(n, i) {
2498
2505
  var o = this, r = (n.touches ? n.touches[0] : n).clientX, s = (n.touches ? n.touches[0] : n).clientY, a = document.elementFromPoint(r, s);
2499
- if (je = n, i || this.options.forceAutoScrollFallback || Ee || bt || ae) {
2500
- On(n, this.options, a, i);
2501
- var l = At(a, !0);
2502
- Ln && (!oe || r !== Tn || s !== Pn) && (oe && xi(), oe = setInterval(function() {
2503
- var u = At(document.elementFromPoint(r, s), !0);
2504
- u !== l && (l = u, Me()), On(n, o.options, u, i);
2505
- }, 10), Tn = r, Pn = s);
2506
+ if (Ze = n, i || this.options.forceAutoScrollFallback || xe || vt || le) {
2507
+ Ln(n, this.options, a, i);
2508
+ var l = Ct(a, !0);
2509
+ kn && (!re || r !== Dn || s !== Rn) && (re && _i(), re = setInterval(function() {
2510
+ var u = Ct(document.elementFromPoint(r, s), !0);
2511
+ u !== l && (l = u, Me()), Ln(n, o.options, u, i);
2512
+ }, 10), Dn = r, Rn = s);
2506
2513
  } else {
2507
- if (!this.options.bubbleScroll || At(a, !0) === ct()) {
2514
+ if (!this.options.bubbleScroll || Ct(a, !0) === dt()) {
2508
2515
  Me();
2509
2516
  return;
2510
2517
  }
2511
- On(n, this.options, At(a, !1), !1);
2518
+ Ln(n, this.options, Ct(a, !1), !1);
2512
2519
  }
2513
2520
  }
2514
- }, yt(e, {
2521
+ }, bt(e, {
2515
2522
  pluginName: "scroll",
2516
2523
  initializeByDefault: !0
2517
2524
  });
2518
2525
  }
2519
2526
  function Me() {
2520
- V.forEach(function(e) {
2527
+ B.forEach(function(e) {
2521
2528
  clearInterval(e.pid);
2522
- }), V = [];
2529
+ }), B = [];
2523
2530
  }
2524
- function xi() {
2525
- clearInterval(oe);
2531
+ function _i() {
2532
+ clearInterval(re);
2526
2533
  }
2527
- var On = io(function(e, t, n, i) {
2534
+ var Ln = uo(function(e, t, n, i) {
2528
2535
  if (t.scroll) {
2529
- var o = (e.touches ? e.touches[0] : e).clientX, r = (e.touches ? e.touches[0] : e).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = ct(), u = !1, d;
2530
- Hn !== n && (Hn = n, Me(), ie = t.scroll, d = t.scrollFn, ie === !0 && (ie = At(n, !0)));
2531
- var c = 0, p = ie;
2536
+ var o = (e.touches ? e.touches[0] : e).clientX, r = (e.touches ? e.touches[0] : e).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = dt(), u = !1, c;
2537
+ Bn !== n && (Bn = n, Me(), oe = t.scroll, c = t.scrollFn, oe === !0 && (oe = Ct(n, !0)));
2538
+ var d = 0, p = oe;
2532
2539
  do {
2533
- var f = p, g = k(f), y = g.top, O = g.bottom, I = g.left, H = g.right, J = g.width, j = g.height, K = void 0, b = void 0, D = f.scrollWidth, Z = f.scrollHeight, U = v(f), Wt = f.scrollLeft, vt = f.scrollTop;
2534
- f === l ? (K = J < D && (U.overflowX === "auto" || U.overflowX === "scroll" || U.overflowX === "visible"), b = j < Z && (U.overflowY === "auto" || U.overflowY === "scroll" || U.overflowY === "visible")) : (K = J < D && (U.overflowX === "auto" || U.overflowX === "scroll"), b = j < Z && (U.overflowY === "auto" || U.overflowY === "scroll"));
2535
- var Gt = K && (Math.abs(H - o) <= s && Wt + J < D) - (Math.abs(I - o) <= s && !!Wt), ht = b && (Math.abs(O - r) <= s && vt + j < Z) - (Math.abs(y - r) <= s && !!vt);
2536
- if (!V[c])
2537
- for (var Pt = 0; Pt <= c; Pt++)
2538
- V[Pt] || (V[Pt] = {});
2539
- (V[c].vx != Gt || V[c].vy != ht || V[c].el !== f) && (V[c].el = f, V[c].vx = Gt, V[c].vy = ht, clearInterval(V[c].pid), (Gt != 0 || ht != 0) && (u = !0, V[c].pid = setInterval((function() {
2540
- i && this.layer === 0 && w.active._onTouchMove(je);
2541
- var Jt = V[this.layer].vy ? V[this.layer].vy * a : 0, wt = V[this.layer].vx ? V[this.layer].vx * a : 0;
2542
- typeof d == "function" && d.call(w.dragged.parentNode[nt], wt, Jt, e, je, V[this.layer].el) !== "continue" || oo(V[this.layer].el, wt, Jt);
2540
+ var f = p, g = k(f), y = g.top, O = g.bottom, M = g.left, H = g.right, J = g.width, Z = g.height, K = void 0, b = void 0, D = f.scrollWidth, z = f.scrollHeight, U = v(f), Jt = f.scrollLeft, wt = f.scrollTop;
2541
+ f === l ? (K = J < D && (U.overflowX === "auto" || U.overflowX === "scroll" || U.overflowX === "visible"), b = Z < z && (U.overflowY === "auto" || U.overflowY === "scroll" || U.overflowY === "visible")) : (K = J < D && (U.overflowX === "auto" || U.overflowX === "scroll"), b = Z < z && (U.overflowY === "auto" || U.overflowY === "scroll"));
2542
+ var Kt = K && (Math.abs(H - o) <= s && Jt + J < D) - (Math.abs(M - o) <= s && !!Jt), ht = b && (Math.abs(O - r) <= s && wt + Z < z) - (Math.abs(y - r) <= s && !!wt);
2543
+ if (!B[d])
2544
+ for (var Ot = 0; Ot <= d; Ot++)
2545
+ B[Ot] || (B[Ot] = {});
2546
+ (B[d].vx != Kt || B[d].vy != ht || B[d].el !== f) && (B[d].el = f, B[d].vx = Kt, B[d].vy = ht, clearInterval(B[d].pid), (Kt != 0 || ht != 0) && (u = !0, B[d].pid = setInterval((function() {
2547
+ i && this.layer === 0 && w.active._onTouchMove(Ze);
2548
+ var Qt = B[this.layer].vy ? B[this.layer].vy * a : 0, xt = B[this.layer].vx ? B[this.layer].vx * a : 0;
2549
+ typeof c == "function" && c.call(w.dragged.parentNode[it], xt, Qt, e, Ze, B[this.layer].el) !== "continue" || co(B[this.layer].el, xt, Qt);
2543
2550
  }).bind({
2544
- layer: c
2545
- }), 24))), c++;
2546
- } while (t.bubbleScroll && p !== l && (p = At(p, !1)));
2547
- Ln = u;
2551
+ layer: d
2552
+ }), 24))), d++;
2553
+ } while (t.bubbleScroll && p !== l && (p = Ct(p, !1)));
2554
+ kn = u;
2548
2555
  }
2549
- }, 30), po = function(t) {
2556
+ }, 30), vo = function(t) {
2550
2557
  var n = t.originalEvent, i = t.putSortable, o = t.dragEl, r = t.activeSortable, s = t.dispatchSortableEvent, a = t.hideGhostForTarget, l = t.unhideGhostForTarget;
2551
2558
  if (n) {
2552
2559
  var u = i || r;
2553
2560
  a();
2554
- var d = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, c = document.elementFromPoint(d.clientX, d.clientY);
2555
- l(), u && !u.el.contains(c) && (s("spill"), this.onSpill({
2561
+ var c = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, d = document.elementFromPoint(c.clientX, c.clientY);
2562
+ l(), u && !u.el.contains(d) && (s("spill"), this.onSpill({
2556
2563
  dragEl: o,
2557
2564
  putSortable: i
2558
2565
  }));
2559
2566
  }
2560
2567
  };
2561
- function Jn() {
2568
+ function ei() {
2562
2569
  }
2563
- Jn.prototype = {
2570
+ ei.prototype = {
2564
2571
  startIndex: null,
2565
2572
  dragStart: function(t) {
2566
2573
  var n = t.oldDraggableIndex;
@@ -2569,35 +2576,35 @@ Jn.prototype = {
2569
2576
  onSpill: function(t) {
2570
2577
  var n = t.dragEl, i = t.putSortable;
2571
2578
  this.sortable.captureAnimationState(), i && i.captureAnimationState();
2572
- var o = qt(this.sortable.el, this.startIndex, this.options);
2579
+ var o = Wt(this.sortable.el, this.startIndex, this.options);
2573
2580
  o ? this.sortable.el.insertBefore(n, o) : this.sortable.el.appendChild(n), this.sortable.animateAll(), i && i.animateAll();
2574
2581
  },
2575
- drop: po
2582
+ drop: vo
2576
2583
  };
2577
- yt(Jn, {
2584
+ bt(ei, {
2578
2585
  pluginName: "revertOnSpill"
2579
2586
  });
2580
- function Kn() {
2587
+ function ni() {
2581
2588
  }
2582
- Kn.prototype = {
2589
+ ni.prototype = {
2583
2590
  onSpill: function(t) {
2584
2591
  var n = t.dragEl, i = t.putSortable, o = i || this.sortable;
2585
2592
  o.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), o.animateAll();
2586
2593
  },
2587
- drop: po
2594
+ drop: vo
2588
2595
  };
2589
- yt(Kn, {
2596
+ bt(ni, {
2590
2597
  pluginName: "removeOnSpill"
2591
2598
  });
2592
- w.mount(new Ps());
2593
- w.mount(Kn, Jn);
2594
- const Os = (e) => {
2599
+ w.mount(new Ms());
2600
+ w.mount(ni, ei);
2601
+ const Is = (e) => {
2595
2602
  const t = e.item;
2596
2603
  let n = Array.prototype.slice.call(t.parentNode.childNodes);
2597
2604
  return n = n.filter(
2598
2605
  (i) => i.nodeType != Node.ELEMENT_NODE || !i.classList.contains("sortable-fallback")
2599
2606
  ), n;
2600
- }, Ds = (e, t, n, i, o, r) => {
2607
+ }, Ns = (e, t, n, i, o, r) => {
2601
2608
  const a = e.item.parentNode;
2602
2609
  for (const y of n)
2603
2610
  a.appendChild(y);
@@ -2605,23 +2612,23 @@ const Os = (e) => {
2605
2612
  const l = i.getArray(), u = (
2606
2613
  /** @type {Element & {layer: import("ol/layer").Layer}} */
2607
2614
  e.item.querySelector("eox-layercontrol-layer").layer.get(o)
2608
- ), d = l.find((y) => y.get(o) === u), c = r.dataset.layer, p = l.find(
2609
- (y) => y.get(o) == c
2615
+ ), c = l.find((y) => y.get(o) === u), d = r.dataset.layer, p = l.find(
2616
+ (y) => y.get(o) == d
2610
2617
  );
2611
2618
  let f, g;
2612
2619
  for (f = 0; f < l.length; f++)
2613
- if (l[f] == d) {
2620
+ if (l[f] == c) {
2614
2621
  i.removeAt(f);
2615
2622
  break;
2616
2623
  }
2617
2624
  for (g = 0; g < l.length; g++)
2618
2625
  if (l[g] === p) {
2619
- f > g ? i.insertAt(g, d) : i.insertAt(g + 1, d);
2626
+ f > g ? i.insertAt(g, c) : i.insertAt(g + 1, c);
2620
2627
  break;
2621
2628
  }
2622
2629
  t.requestUpdate();
2623
2630
  };
2624
- function Rs(e, t, n, i) {
2631
+ function Hs(e, t, n, i) {
2625
2632
  let o = [], r = null;
2626
2633
  e._sortable = w.create(e, {
2627
2634
  handle: ".drag-handle",
@@ -2629,14 +2636,14 @@ function Rs(e, t, n, i) {
2629
2636
  swapThreshold: 0.5,
2630
2637
  animation: 150,
2631
2638
  easing: "cubic-bezier(1, 0, 0, 1)",
2632
- onStart: (s) => o = Os(s),
2639
+ onStart: (s) => o = Is(s),
2633
2640
  onMove: (s) => {
2634
2641
  r = s.related;
2635
2642
  },
2636
- onEnd: (s) => Ds(s, i, o, t, n, r)
2643
+ onEnd: (s) => Ns(s, i, o, t, n, r)
2637
2644
  });
2638
2645
  }
2639
- function Ms(e, t, n, i) {
2646
+ function Vs(e, t, n, i) {
2640
2647
  const o = e.getArray();
2641
2648
  let r = !1;
2642
2649
  o.forEach((s) => {
@@ -2644,7 +2651,7 @@ function Ms(e, t, n, i) {
2644
2651
  s.get(t) || (s.set(t, a), r = !0), s.get(n) || (s.set(n, `layer ${a}`), r = !0), r && i.requestUpdate();
2645
2652
  });
2646
2653
  }
2647
- function Qn(e, t, n) {
2654
+ function ii(e, t, n) {
2648
2655
  let i = [];
2649
2656
  const o = (r, s, a) => {
2650
2657
  i = [
@@ -2666,24 +2673,95 @@ function Qn(e, t, n) {
2666
2673
  };
2667
2674
  return o(e, t, n), i;
2668
2675
  }
2669
- function Is(e, t, n) {
2676
+ function Bs(e, t, n) {
2670
2677
  if (!e || !t) return !1;
2671
- if (!fo(e, n)) return !0;
2678
+ if (!wo(e, n)) return !0;
2672
2679
  const i = e.get("minZoom"), o = e.get("maxZoom"), r = t.getView().getZoom();
2673
2680
  return r > i && r < o;
2674
2681
  }
2675
- function fo(e, t) {
2682
+ function wo(e, t) {
2676
2683
  const n = e.get("minZoom"), i = e.get("maxZoom");
2677
2684
  return !!(t && (n !== -1 / 0 || i !== 1 / 0));
2678
2685
  }
2679
- function Ns(e, t) {
2686
+ function ks(e, t) {
2680
2687
  var o, r, s;
2681
2688
  return !e || !t ? void 0 : e.getLayers ? "group" : ((s = (o = t.getInteractions().getArray().filter((a) => a.freehand_ !== void 0).map((a) => a.source_)) == null ? void 0 : o.ol_uid) == null ? void 0 : s.includes(
2682
2689
  // @ts-ignore
2683
2690
  e.getSource ? (r = e.getSource()) == null ? void 0 : r.ol_uid : void 0
2684
2691
  )) ? "draw" : e.declutter_ !== void 0 ? "vector" : "raster";
2685
2692
  }
2686
- function go(e, t) {
2693
+ const Us = (e, t, n) => {
2694
+ let i = t;
2695
+ return n.layer.getSource().getTileUrlFunction() && (i || (i = n.layer.getSource().getTileUrlFunction()), n.layer.getSource().setTileUrlFunction(
2696
+ (...o) => us(i(...o), e)
2697
+ ), n.layer.getSource().setKey(/* @__PURE__ */ new Date())), i;
2698
+ };
2699
+ function Fs(e, t, n) {
2700
+ const i = "updateStyleVariables" in t, o = "setStyle" in t, r = i ? (
2701
+ /** @type {import('ol/layer/WebGLTile').default} */
2702
+ t.style_
2703
+ ) : n.style;
2704
+ let s = r == null ? void 0 : r.variables;
2705
+ if (s) {
2706
+ const a = oi(e);
2707
+ if (r.variables = {
2708
+ ...s,
2709
+ ...a
2710
+ }, i)
2711
+ t.updateStyleVariables(a);
2712
+ else if (o) {
2713
+ const l = js(r);
2714
+ t.setStyle(
2715
+ l
2716
+ );
2717
+ }
2718
+ }
2719
+ }
2720
+ const oi = (e) => {
2721
+ const t = {};
2722
+ for (const n in e)
2723
+ if (typeof e[n] == "object" && e[n] !== null) {
2724
+ const i = oi(
2725
+ /** @type {Record<string,any>} */
2726
+ e[n]
2727
+ );
2728
+ for (const o in i)
2729
+ t[o] = i == null ? void 0 : i[o];
2730
+ } else
2731
+ t[n] = e == null ? void 0 : e[n];
2732
+ return t;
2733
+ };
2734
+ function js(e) {
2735
+ let t = e;
2736
+ if ("variables" in e) {
2737
+ let n = JSON.stringify(e);
2738
+ const { variables: i } = e;
2739
+ for (const o in i)
2740
+ typeof i[o] == "number" ? n = n.replaceAll(`["var","${o}"]`, i[o]) : n = n.replaceAll(
2741
+ `["var","${o}"]`,
2742
+ `"${i[o]}"`
2743
+ );
2744
+ t = JSON.parse(n);
2745
+ }
2746
+ return t;
2747
+ }
2748
+ const Zs = (e, t) => {
2749
+ var n;
2750
+ if (e)
2751
+ return !("domainProperties" in e) || "domain" in e ? { ...e } : (n = Object.keys(e)) == null ? void 0 : n.reduce(
2752
+ (i, o) => {
2753
+ if (o === "domainProperties") {
2754
+ const r = oi(t);
2755
+ i.domain = e[o].map((s) => r[s]);
2756
+ } else
2757
+ i[o] = e[o];
2758
+ return i;
2759
+ },
2760
+ /** @type {import("../components/layer-legend").LegendConfig} */
2761
+ {}
2762
+ );
2763
+ };
2764
+ function xo(e, t) {
2687
2765
  var i;
2688
2766
  let n = {};
2689
2767
  for (const o in e) {
@@ -2691,7 +2769,7 @@ function go(e, t) {
2691
2769
  if (r && r !== "object")
2692
2770
  n[o] = r === "number" ? Number(t[o]) : t[o];
2693
2771
  else if (typeof e[o] == "object" && ((i = e[o]) != null && i.properties)) {
2694
- const s = go(
2772
+ const s = xo(
2695
2773
  e[o].properties,
2696
2774
  t
2697
2775
  );
@@ -2700,7 +2778,7 @@ function go(e, t) {
2700
2778
  }
2701
2779
  return n;
2702
2780
  }
2703
- function Hs(e, t) {
2781
+ function zs(e, t) {
2704
2782
  var r, s, a, l, u;
2705
2783
  if (!t) return null;
2706
2784
  let n = {}, i = "updateStyleVariables" in e ? (
@@ -2710,23 +2788,23 @@ function Hs(e, t) {
2710
2788
  if ((t.type === "style" || t.style) && i)
2711
2789
  n = i;
2712
2790
  else if ((l = (a = e.getSource()) == null ? void 0 : a.getTileUrlFunction) != null && l.call(a)) {
2713
- const d = new URL(e.getSource().getTileUrlFunction()([0, 0, 0]));
2714
- n = Object.fromEntries(d.searchParams.entries());
2791
+ const c = new URL(e.getSource().getTileUrlFunction()([0, 0, 0]));
2792
+ n = Object.fromEntries(c.searchParams.entries());
2715
2793
  } else return null;
2716
- const o = go(
2794
+ const o = xo(
2717
2795
  ((u = t.schema) == null ? void 0 : u.properties) || t.schema,
2718
2796
  n
2719
2797
  );
2720
2798
  return Object.keys(o).length ? o : null;
2721
2799
  }
2722
- const Ls = (e, t) => e == null ? void 0 : e.filter(
2800
+ const Xs = (e, t) => e == null ? void 0 : e.filter(
2723
2801
  (n) => ["remove", "sort"].filter((i) => t != null && t.get("layerControlDisable") ? i !== "sort" : !0).includes(n)
2724
- ), Bs = (e, t) => e == null ? void 0 : e.filter((n) => {
2802
+ ), qs = (e, t) => e == null ? void 0 : e.filter((n) => {
2725
2803
  let i = !0;
2726
- return ["remove", "sort"].includes(n) && (i = !1), n === "info" && (i = t.get("description")), n === "config" && (i = t.get("layerConfig")), n === "datetime" && (i = t.get("layerDatetime")), i;
2727
- }), Vs = (e, t) => x`
2728
- <button slot="${e}-icon" class="icon">${t ? e : C}</button>
2729
- `, ks = (e) => x`
2804
+ return ["remove", "sort"].includes(n) && (i = !1), n === "info" && (i = t.get("description")), n === "config" && (i = t.get("layerConfig")), n === "datetime" && (i = t.get("layerDatetime")), n === "legend" && (i = t.get("layerLegend")), i;
2805
+ }), Ys = (e, t) => x`
2806
+ <button slot="${e}-icon" class="icon">${t ? e : P}</button>
2807
+ `, Ws = (e) => x`
2730
2808
  <button
2731
2809
  class="remove-icon icon"
2732
2810
  @click=${() => {
@@ -2739,13 +2817,13 @@ const Ls = (e, t) => e == null ? void 0 : e.filter(
2739
2817
  );
2740
2818
  }}
2741
2819
  >
2742
- ${e.unstyled ? "x" : C}
2820
+ ${e.unstyled ? "x" : P}
2743
2821
  </button>
2744
- `, Us = (e) => x`
2822
+ `, Gs = (e) => x`
2745
2823
  <span class="button sort-icon icon drag-handle">
2746
- ${e ? "═" : C}
2824
+ ${e ? "═" : P}
2747
2825
  </span>
2748
- `, mo = (e) => {
2826
+ `, Eo = (e) => {
2749
2827
  var n;
2750
2828
  const t = ["layerControlHide", "layerControlOptional"];
2751
2829
  return (n = e == null ? void 0 : e.getArray()) == null ? void 0 : n.filter((i) => t.every((o) => !i.get(o)));
@@ -2755,23 +2833,23 @@ const Ls = (e, t) => e == null ? void 0 : e.filter(
2755
2833
  * Copyright 2020 Google LLC
2756
2834
  * SPDX-License-Identifier: BSD-3-Clause
2757
2835
  */
2758
- const yo = Xn(class extends qn {
2836
+ const $o = Gn(class extends Jn {
2759
2837
  constructor(e) {
2760
2838
  if (super(e), e.type !== Et.PROPERTY && e.type !== Et.ATTRIBUTE && e.type !== Et.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
2761
- if (!sr(e)) throw Error("`live` bindings can only contain a single expression");
2839
+ if (!cr(e)) throw Error("`live` bindings can only contain a single expression");
2762
2840
  }
2763
2841
  render(e) {
2764
2842
  return e;
2765
2843
  }
2766
2844
  update(e, [t]) {
2767
- if (t === at || t === C) return t;
2845
+ if (t === at || t === P) return t;
2768
2846
  const n = e.element, i = e.name;
2769
2847
  if (e.type === Et.PROPERTY) {
2770
2848
  if (t === n[i]) return at;
2771
2849
  } else if (e.type === Et.BOOLEAN_ATTRIBUTE) {
2772
2850
  if (!!t === n.hasAttribute(i)) return at;
2773
2851
  } else if (e.type === Et.ATTRIBUTE && n.getAttribute(i) === t + "") return at;
2774
- return ji(e), t;
2852
+ return Wi(e), t;
2775
2853
  }
2776
2854
  });
2777
2855
  /**
@@ -2779,12 +2857,12 @@ const yo = Xn(class extends qn {
2779
2857
  * Copyright 2017 Google LLC
2780
2858
  * SPDX-License-Identifier: BSD-3-Clause
2781
2859
  */
2782
- class Bn extends qn {
2860
+ class Un extends Jn {
2783
2861
  constructor(t) {
2784
- if (super(t), this.it = C, t.type !== Et.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
2862
+ if (super(t), this.it = P, t.type !== Et.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
2785
2863
  }
2786
2864
  render(t) {
2787
- if (t === C || t == null) return this._t = void 0, this.it = t;
2865
+ if (t === P || t == null) return this._t = void 0, this.it = t;
2788
2866
  if (t === at) return t;
2789
2867
  if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
2790
2868
  if (t === this.it) return this._t;
@@ -2793,8 +2871,8 @@ class Bn extends qn {
2793
2871
  return n.raw = n, this._t = { _$litType$: this.constructor.resultType, strings: n, values: [] };
2794
2872
  }
2795
2873
  }
2796
- Bn.directiveName = "unsafeHTML", Bn.resultType = 1;
2797
- const Fs = Xn(Bn);
2874
+ Un.directiveName = "unsafeHTML", Un.resultType = 1;
2875
+ const Js = Gn(Un);
2798
2876
  /**
2799
2877
  * @license
2800
2878
  * Copyright 2021 Google LLC
@@ -2806,93 +2884,38 @@ function* Ie(e, t) {
2806
2884
  for (const i of e) yield t(i, n++);
2807
2885
  }
2808
2886
  }
2809
- const js = (e, t, n) => {
2810
- let i = t;
2811
- return n.layer.getSource().getTileUrlFunction() && (i || (i = n.layer.getSource().getTileUrlFunction()), n.layer.getSource().setTileUrlFunction(
2812
- (...o) => os(i(...o), e)
2813
- ), n.layer.getSource().setKey(/* @__PURE__ */ new Date())), i;
2814
- };
2815
- function Zs(e, t, n) {
2816
- const i = "updateStyleVariables" in t, o = "setStyle" in t, r = i ? (
2817
- /** @type {import('ol/layer/WebGLTile').default} */
2818
- t.style_
2819
- ) : n.style;
2820
- let s = r == null ? void 0 : r.variables;
2821
- if (s) {
2822
- const a = bo(e);
2823
- if (r.variables = {
2824
- ...s,
2825
- ...a
2826
- }, i)
2827
- t.updateStyleVariables(a);
2828
- else if (o) {
2829
- const l = zs(r);
2830
- t.setStyle(
2831
- l
2832
- );
2833
- }
2834
- }
2835
- }
2836
- const bo = (e) => {
2837
- const t = {};
2838
- for (const n in e)
2839
- if (typeof e[n] == "object" && e[n] !== null) {
2840
- const i = bo(
2841
- /** @type {Record<string,any>} */
2842
- e[n]
2843
- );
2844
- for (const o in i)
2845
- t[o] = i == null ? void 0 : i[o];
2846
- } else
2847
- t[n] = e == null ? void 0 : e[n];
2848
- return t;
2849
- };
2850
- function zs(e) {
2851
- let t = e;
2852
- if ("variables" in e) {
2853
- let n = JSON.stringify(e);
2854
- const { variables: i } = e;
2855
- for (const o in i)
2856
- typeof i[o] == "number" ? n = n.replaceAll(`["var","${o}"]`, i[o]) : n = n.replaceAll(
2857
- `["var","${o}"]`,
2858
- `"${i[o]}"`
2859
- );
2860
- t = JSON.parse(n);
2861
- }
2862
- return t;
2863
- }
2864
2887
  var _t = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2865
- function vo(e) {
2888
+ function So(e) {
2866
2889
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2867
2890
  }
2868
- var wo = "Expected a function", Si = NaN, Xs = "[object Symbol]", qs = /^\s+|\s+$/g, Ys = /^[-+]0x[0-9a-f]+$/i, Ws = /^0b[01]+$/i, Gs = /^0o[0-7]+$/i, Js = parseInt, Ks = typeof _t == "object" && _t && _t.Object === Object && _t, Qs = typeof self == "object" && self && self.Object === Object && self, ta = Ks || Qs || Function("return this")(), ea = Object.prototype, na = ea.toString, ia = Math.max, oa = Math.min, Dn = function() {
2869
- return ta.Date.now();
2891
+ var Ao = "Expected a function", Ti = NaN, Ks = "[object Symbol]", Qs = /^\s+|\s+$/g, ta = /^[-+]0x[0-9a-f]+$/i, ea = /^0b[01]+$/i, na = /^0o[0-7]+$/i, ia = parseInt, oa = typeof _t == "object" && _t && _t.Object === Object && _t, ra = typeof self == "object" && self && self.Object === Object && self, sa = oa || ra || Function("return this")(), aa = Object.prototype, la = aa.toString, ua = Math.max, da = Math.min, Mn = function() {
2892
+ return sa.Date.now();
2870
2893
  };
2871
- function ra(e, t, n) {
2872
- var i, o, r, s, a, l, u = 0, d = !1, c = !1, p = !0;
2894
+ function ca(e, t, n) {
2895
+ var i, o, r, s, a, l, u = 0, c = !1, d = !1, p = !0;
2873
2896
  if (typeof e != "function")
2874
- throw new TypeError(wo);
2875
- t = $i(t) || 0, Ze(n) && (d = !!n.leading, c = "maxWait" in n, r = c ? ia($i(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
2897
+ throw new TypeError(Ao);
2898
+ t = Pi(t) || 0, ze(n) && (c = !!n.leading, d = "maxWait" in n, r = d ? ua(Pi(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
2876
2899
  function f(b) {
2877
- var D = i, Z = o;
2878
- return i = o = void 0, u = b, s = e.apply(Z, D), s;
2900
+ var D = i, z = o;
2901
+ return i = o = void 0, u = b, s = e.apply(z, D), s;
2879
2902
  }
2880
2903
  function g(b) {
2881
- return u = b, a = setTimeout(I, t), d ? f(b) : s;
2904
+ return u = b, a = setTimeout(M, t), c ? f(b) : s;
2882
2905
  }
2883
2906
  function y(b) {
2884
- var D = b - l, Z = b - u, U = t - D;
2885
- return c ? oa(U, r - Z) : U;
2907
+ var D = b - l, z = b - u, U = t - D;
2908
+ return d ? da(U, r - z) : U;
2886
2909
  }
2887
2910
  function O(b) {
2888
- var D = b - l, Z = b - u;
2889
- return l === void 0 || D >= t || D < 0 || c && Z >= r;
2911
+ var D = b - l, z = b - u;
2912
+ return l === void 0 || D >= t || D < 0 || d && z >= r;
2890
2913
  }
2891
- function I() {
2892
- var b = Dn();
2914
+ function M() {
2915
+ var b = Mn();
2893
2916
  if (O(b))
2894
2917
  return H(b);
2895
- a = setTimeout(I, y(b));
2918
+ a = setTimeout(M, y(b));
2896
2919
  }
2897
2920
  function H(b) {
2898
2921
  return a = void 0, p && i ? f(b) : (i = o = void 0, s);
@@ -2900,84 +2923,174 @@ function ra(e, t, n) {
2900
2923
  function J() {
2901
2924
  a !== void 0 && clearTimeout(a), u = 0, i = l = o = a = void 0;
2902
2925
  }
2903
- function j() {
2904
- return a === void 0 ? s : H(Dn());
2926
+ function Z() {
2927
+ return a === void 0 ? s : H(Mn());
2905
2928
  }
2906
2929
  function K() {
2907
- var b = Dn(), D = O(b);
2930
+ var b = Mn(), D = O(b);
2908
2931
  if (i = arguments, o = this, l = b, D) {
2909
2932
  if (a === void 0)
2910
2933
  return g(l);
2911
- if (c)
2912
- return a = setTimeout(I, t), f(l);
2934
+ if (d)
2935
+ return a = setTimeout(M, t), f(l);
2913
2936
  }
2914
- return a === void 0 && (a = setTimeout(I, t)), s;
2937
+ return a === void 0 && (a = setTimeout(M, t)), s;
2915
2938
  }
2916
- return K.cancel = J, K.flush = j, K;
2939
+ return K.cancel = J, K.flush = Z, K;
2917
2940
  }
2918
- function sa(e, t, n) {
2941
+ function ha(e, t, n) {
2919
2942
  var i = !0, o = !0;
2920
2943
  if (typeof e != "function")
2921
- throw new TypeError(wo);
2922
- return Ze(n) && (i = "leading" in n ? !!n.leading : i, o = "trailing" in n ? !!n.trailing : o), ra(e, t, {
2944
+ throw new TypeError(Ao);
2945
+ return ze(n) && (i = "leading" in n ? !!n.leading : i, o = "trailing" in n ? !!n.trailing : o), ca(e, t, {
2923
2946
  leading: i,
2924
2947
  maxWait: t,
2925
2948
  trailing: o
2926
2949
  });
2927
2950
  }
2928
- function Ze(e) {
2951
+ function ze(e) {
2929
2952
  var t = typeof e;
2930
2953
  return !!e && (t == "object" || t == "function");
2931
2954
  }
2932
- function aa(e) {
2955
+ function pa(e) {
2933
2956
  return !!e && typeof e == "object";
2934
2957
  }
2935
- function la(e) {
2936
- return typeof e == "symbol" || aa(e) && na.call(e) == Xs;
2958
+ function fa(e) {
2959
+ return typeof e == "symbol" || pa(e) && la.call(e) == Ks;
2937
2960
  }
2938
- function $i(e) {
2961
+ function Pi(e) {
2939
2962
  if (typeof e == "number")
2940
2963
  return e;
2941
- if (la(e))
2942
- return Si;
2943
- if (Ze(e)) {
2964
+ if (fa(e))
2965
+ return Ti;
2966
+ if (ze(e)) {
2944
2967
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
2945
- e = Ze(t) ? t + "" : t;
2968
+ e = ze(t) ? t + "" : t;
2946
2969
  }
2947
2970
  if (typeof e != "string")
2948
2971
  return e === 0 ? e : +e;
2949
- e = e.replace(qs, "");
2950
- var n = Ws.test(e);
2951
- return n || Gs.test(e) ? Js(e.slice(2), n ? 2 : 8) : Ys.test(e) ? Si : +e;
2952
- }
2953
- var ua = sa;
2954
- const Ai = /* @__PURE__ */ vo(ua);
2955
- var Xt, me, ye, be, Vn, ze, Xe;
2956
- class Eo extends it {
2972
+ e = e.replace(Qs, "");
2973
+ var n = ea.test(e);
2974
+ return n || na.test(e) ? ia(e.slice(2), n ? 2 : 8) : ta.test(e) ? Ti : +e;
2975
+ }
2976
+ var ga = ha;
2977
+ const Oi = /* @__PURE__ */ So(ga);
2978
+ /**
2979
+ * @license
2980
+ * Copyright 2018 Google LLC
2981
+ * SPDX-License-Identifier: BSD-3-Clause
2982
+ */
2983
+ const Te = (e) => e ?? P;
2984
+ var Xe, qe;
2985
+ class Co extends tt {
2957
2986
  constructor() {
2958
2987
  super();
2959
- T(this, be);
2988
+ _(this, Xe, Hi`
2989
+
2990
+ .legend-container{
2991
+ display:flex;
2992
+ justify-content:center
2993
+ }
2994
+
2995
+ color-legend {
2996
+ --cle-background :transparent;
2997
+ --cle-font-family:inherit;
2998
+ --cle-font-size:inherit;
2999
+ --cle-font-weight :inherit
3000
+ --cle-letter-spacing :inherit;
3001
+ --cle-letter-spacing-title :inherit;
3002
+ }
3003
+ `);
3004
+ _(this, qe, "");
3005
+ this.unstyled = !1, this.noShadow = !1, this.layerLegend = null, this.layer = null;
3006
+ }
3007
+ /**
3008
+ * Overrides createRenderRoot to handle shadow DOM creation based on the noShadow property.
3009
+ */
3010
+ createRenderRoot() {
3011
+ return this.noShadow ? this : super.createRenderRoot();
3012
+ }
3013
+ /**
3014
+ * Renders a Time Control for datetime options of a layer.
3015
+ */
3016
+ render() {
3017
+ return customElements.get("color-legend") || console.error(
3018
+ "Please import `color-legend-element` in order to use layerLegend"
3019
+ ), x`
3020
+ <style>
3021
+ ${S(this, Xe)}
3022
+ ${!this.unstyled && S(this, qe)}
3023
+ </style>
3024
+ ${F(
3025
+ this.layerLegend,
3026
+ () => x`
3027
+ <div class="legend-container">
3028
+ <!-- Render color-legend-->
3029
+ <color-legend
3030
+ id="${this.layer.get("id")}"
3031
+ width=${this.layerLegend.width ?? 325}
3032
+ scaleType="${Te(this.layerLegend.scaleType)}"
3033
+ markType="${Te(this.layerLegend.markType)}"
3034
+ titleText="${Te(this.layerLegend.title)}"
3035
+ .range=${this.layerLegend.range}
3036
+ .domain=${this.layerLegend.domain}
3037
+ tickFormat="${Te(this.layerLegend.tickFormat)}"
3038
+ .ticks=${this.layerLegend.ticks ?? 5}
3039
+ .tickValues=${this.layerLegend.tickValues}
3040
+ >
3041
+ </color-legend>
3042
+ </div>
3043
+ `
3044
+ )}
3045
+ `;
3046
+ }
3047
+ }
3048
+ Xe = new WeakMap(), qe = new WeakMap(), // Define static properties for the component
3049
+ I(Co, "properties", {
3050
+ unstyled: { type: Boolean },
3051
+ noShadow: { type: Boolean },
3052
+ layerLegend: { attribute: !1 },
3053
+ layer: { attribute: !1 }
3054
+ });
3055
+ customElements.define(
3056
+ "eox-layercontrol-layer-legend",
3057
+ Co
3058
+ );
3059
+ var pt, Yt, ye, be, Fn, Ye, We;
3060
+ class _o extends tt {
3061
+ constructor() {
3062
+ super();
3063
+ _(this, be);
2960
3064
  /**
2961
3065
  * data input by the user
2962
3066
  *
2963
3067
  * @type {{[key: string]: any}}
2964
3068
  */
2965
- T(this, Xt, {});
3069
+ _(this, pt, {});
2966
3070
  /**
2967
3071
  * data input by the user
2968
3072
  *
2969
3073
  * @type {{[key: string]: any}}
2970
3074
  */
2971
- T(this, me, null);
3075
+ _(this, Yt, null);
2972
3076
  /**
2973
3077
  * Original tile url function, if it exist
2974
3078
  *
2975
3079
  * @type {Function}
2976
3080
  */
2977
- T(this, ye);
2978
- T(this, ze, "");
2979
- T(this, Xe, "");
2980
- this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = Ai(B(this, be, Vn), 1e3);
3081
+ _(this, ye);
3082
+ _(this, Ye, Hi`
3083
+ color-legend {
3084
+ --cle-background :transparent;
3085
+ --cle-font-family:inherit;
3086
+ --cle-font-size:inherit;
3087
+ --cle-font-weight :inherit
3088
+ --cle-letter-spacing :inherit;
3089
+ --cle-letter-spacing-title :inherit;
3090
+ }
3091
+ `);
3092
+ _(this, We, "");
3093
+ this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = Oi(V(this, be, Fn), 1e3);
2981
3094
  }
2982
3095
  /** Decide what type of throttling to do based on layerConfig type
2983
3096
  *
@@ -2986,7 +3099,7 @@ class Eo extends it {
2986
3099
  updated(n) {
2987
3100
  if (n.has("layerConfig")) {
2988
3101
  const i = this.layerConfig.type === "style" || this.layerConfig.style ? 100 : 1e3;
2989
- this.throttleDataChange = Ai(B(this, be, Vn), i), this.requestUpdate();
3102
+ this.throttleDataChange = Oi(V(this, be, Fn), i), this.requestUpdate();
2990
3103
  }
2991
3104
  }
2992
3105
  /**
@@ -2999,7 +3112,7 @@ class Eo extends it {
2999
3112
  * Renders a JSON form for configuration options of a layer.
3000
3113
  */
3001
3114
  render() {
3002
- Qt(this, me, Hs(this.layer, this.layerConfig)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
3115
+ kt(this, Yt, zs(this.layer, this.layerConfig)), Object.keys(S(this, pt)).length !== 0 && kt(this, Yt, S(this, pt)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
3003
3116
  const n = {
3004
3117
  disable_edit_json: !0,
3005
3118
  disable_collapse: !0,
@@ -3007,16 +3120,30 @@ class Eo extends it {
3007
3120
  };
3008
3121
  return x`
3009
3122
  <style>
3010
- ${P(this, ze)}
3011
- ${!this.unstyled && P(this, Xe)}
3123
+ ${S(this, Ye)}
3124
+ ${!this.unstyled && S(this, We)}
3012
3125
  </style>
3013
- ${G(
3126
+ ${F(
3014
3127
  this.layerConfig,
3015
3128
  () => x`
3129
+ ${F(
3130
+ this.layerConfig.legend,
3131
+ () => x`
3132
+ <eox-layercontrol-layer-legend
3133
+ .noShadow=${!0}
3134
+ .unstyled=${this.unstyled}
3135
+ .layer=${this.layer}
3136
+ .layerLegend=${Zs(
3137
+ this.layerConfig.legend,
3138
+ S(this, pt)
3139
+ )}
3140
+ ></eox-layercontrol-layer-legend>
3141
+ `
3142
+ )}
3016
3143
  <!-- Render a JSON form for layer configuration -->
3017
3144
  <eox-jsonform
3018
3145
  .schema=${this.layerConfig.schema}
3019
- .value=${P(this, me)}
3146
+ .value=${S(this, Yt)}
3020
3147
  .options=${n}
3021
3148
  @change=${this.throttleDataChange}
3022
3149
  ></eox-jsonform>
@@ -3025,21 +3152,21 @@ class Eo extends it {
3025
3152
  `;
3026
3153
  }
3027
3154
  }
3028
- Xt = new WeakMap(), me = new WeakMap(), ye = new WeakMap(), be = new WeakSet(), /**
3155
+ pt = new WeakMap(), Yt = new WeakMap(), ye = new WeakMap(), be = new WeakSet(), /**
3029
3156
  * Handles changes in eox-jsonform values.
3030
3157
  *
3031
3158
  * @param {{ detail: { value: string; }; }} e
3032
3159
  */
3033
- Vn = function(n) {
3034
- Qt(this, Xt, n.detail), this.layerConfig.type === "style" || this.layerConfig.style ? "setStyle" in this.layer || "updateStyleVariables" in this.layer ? Zs(P(this, Xt), this.layer, this.layerConfig) : console.error(
3160
+ Fn = function(n) {
3161
+ kt(this, pt, n.detail), this.layerConfig.type === "style" || this.layerConfig.style ? "setStyle" in this.layer || "updateStyleVariables" in this.layer ? Fs(S(this, pt), this.layer, this.layerConfig) : console.error(
3035
3162
  `Layer type ${this.layer.get("type") ?? ""} does not support styles configuration`
3036
- ) : (Qt(this, ye, js(
3037
- P(this, Xt),
3038
- P(this, ye),
3163
+ ) : kt(this, ye, Us(
3164
+ S(this, pt),
3165
+ S(this, ye),
3039
3166
  this
3040
- )), this.requestUpdate());
3041
- }, ze = new WeakMap(), Xe = new WeakMap(), // Define static properties for the component
3042
- L(Eo, "properties", {
3167
+ )), this.requestUpdate();
3168
+ }, Ye = new WeakMap(), We = new WeakMap(), // Define static properties for the component
3169
+ I(_o, "properties", {
3043
3170
  layer: { attribute: !1 },
3044
3171
  unstyled: { type: Boolean },
3045
3172
  noShadow: { type: Boolean },
@@ -3047,15 +3174,15 @@ L(Eo, "properties", {
3047
3174
  });
3048
3175
  customElements.define(
3049
3176
  "eox-layercontrol-layerconfig",
3050
- Eo
3177
+ _o
3051
3178
  );
3052
- var qe, So, Ye, We;
3053
- class xo extends it {
3179
+ var Ge, Po, Je, Ke;
3180
+ class To extends tt {
3054
3181
  constructor() {
3055
3182
  super();
3056
- T(this, qe);
3057
- T(this, Ye, "");
3058
- T(this, We, "");
3183
+ _(this, Ge);
3184
+ _(this, Je, "");
3185
+ _(this, Ke, "");
3059
3186
  this.unstyled = !1, this.noShadow = !1, this.layerDatetime = null, this.layer = null;
3060
3187
  }
3061
3188
  /**
@@ -3072,10 +3199,10 @@ class xo extends it {
3072
3199
  "Please import @eox/timecontrol in order to use layerDatetime"
3073
3200
  ), x`
3074
3201
  <style>
3075
- ${P(this, Ye)}
3076
- ${!this.unstyled && P(this, We)}
3202
+ ${S(this, Je)}
3203
+ ${!this.unstyled && S(this, Ke)}
3077
3204
  </style>
3078
- ${G(
3205
+ ${F(
3079
3206
  this.layerDatetime,
3080
3207
  () => x`
3081
3208
  <!-- Render a Timecontrol for layer date time -->
@@ -3088,20 +3215,20 @@ class xo extends it {
3088
3215
  .controlValues=${this.layerDatetime.controlValues}
3089
3216
  .controlProperty=${void 0}
3090
3217
  current-step=${this.layerDatetime.currentStep}
3091
- @stepchange=${B(this, qe, So)}
3218
+ @stepchange=${V(this, Ge, Po)}
3092
3219
  ></eox-timecontrol>
3093
3220
  `
3094
3221
  )}
3095
3222
  `;
3096
3223
  }
3097
3224
  }
3098
- qe = new WeakSet(), /**
3225
+ Ge = new WeakSet(), /**
3099
3226
  * Handles timecontrol Stepchange &
3100
3227
  * triggers `datetime:updated` event on step change
3101
3228
  *
3102
3229
  * @param {CustomEvent<{currentStep:string|number}>} evt
3103
3230
  **/
3104
- So = function(n) {
3231
+ Po = function(n) {
3105
3232
  this.dispatchEvent(
3106
3233
  new CustomEvent("datetime:updated", {
3107
3234
  bubbles: !0,
@@ -3111,8 +3238,8 @@ So = function(n) {
3111
3238
  }
3112
3239
  })
3113
3240
  ), this.layerDatetime.currentStep = n.detail.currentStep, this.requestUpdate();
3114
- }, Ye = new WeakMap(), We = new WeakMap(), // Define static properties for the component
3115
- L(xo, "properties", {
3241
+ }, Je = new WeakMap(), Ke = new WeakMap(), // Define static properties for the component
3242
+ I(To, "properties", {
3116
3243
  unstyled: { type: Boolean },
3117
3244
  noShadow: { type: Boolean },
3118
3245
  layerDatetime: { attribute: !1 },
@@ -3120,15 +3247,15 @@ L(xo, "properties", {
3120
3247
  });
3121
3248
  customElements.define(
3122
3249
  "eox-layercontrol-layer-datetime",
3123
- xo
3250
+ To
3124
3251
  );
3125
- var ve, Ge, Je;
3126
- class $o extends it {
3252
+ var ve, Qe, tn;
3253
+ class Oo extends tt {
3127
3254
  constructor() {
3128
3255
  super();
3129
3256
  /** @param {number} index */
3130
- T(this, ve, (n) => (this.selectedTab === n || this.toolsAsList) && "highlighted");
3131
- T(this, Ge, `
3257
+ _(this, ve, (n) => (this.selectedTab === n || this.toolsAsList) && "highlighted");
3258
+ _(this, Qe, `
3132
3259
  .tabbed figure {
3133
3260
  margin: 0;
3134
3261
  }
@@ -3149,7 +3276,7 @@ class $o extends it {
3149
3276
  background: lightgrey;
3150
3277
  }
3151
3278
  `);
3152
- T(this, Je, `
3279
+ _(this, tn, `
3153
3280
  .listed {
3154
3281
  background: #ffffff !important;
3155
3282
  display: flex;
@@ -3192,16 +3319,16 @@ class $o extends it {
3192
3319
  const n = this.tabs, i = this.actions, o = i.length + n.length > 1;
3193
3320
  return x`
3194
3321
  <style>
3195
- ${P(this, Ge)}
3196
- ${!this.unstyled && P(this, Je)}
3322
+ ${S(this, Qe)}
3323
+ ${!this.unstyled && S(this, tn)}
3197
3324
  </style>
3198
3325
  <div class="tabbed">
3199
3326
  <!-- Navigation for tabs and actions -->
3200
- ${G(
3327
+ ${F(
3201
3328
  o,
3202
3329
  () => x`
3203
3330
  <nav>
3204
- ${G(
3331
+ ${F(
3205
3332
  !this.toolsAsList,
3206
3333
  () => x`
3207
3334
  <div>
@@ -3210,7 +3337,7 @@ class $o extends it {
3210
3337
  n,
3211
3338
  (r, s) => x`
3212
3339
  <label
3213
- class=${P(this, ve).call(this, s)}
3340
+ class=${S(this, ve).call(this, s)}
3214
3341
  @click=${() => this.selectedTab = s}
3215
3342
  >
3216
3343
  <!-- Customizable icon for each tab -->
@@ -3241,7 +3368,7 @@ class $o extends it {
3241
3368
  ${Ie(
3242
3369
  n,
3243
3370
  (r, s) => x`
3244
- ${G(
3371
+ ${F(
3245
3372
  this.toolsAsList,
3246
3373
  () => x`
3247
3374
  <label class="listed">
@@ -3250,7 +3377,7 @@ class $o extends it {
3250
3377
  </label>
3251
3378
  `
3252
3379
  )}
3253
- <div class="tab ${P(this, ve).call(this, s)}">
3380
+ <div class="tab ${S(this, ve).call(this, s)}">
3254
3381
  <!-- Content slot for each tab -->
3255
3382
  <slot name=${`${r}-content`}>${r}</slot>
3256
3383
  </div>
@@ -3261,8 +3388,8 @@ class $o extends it {
3261
3388
  `;
3262
3389
  }
3263
3390
  }
3264
- ve = new WeakMap(), Ge = new WeakMap(), Je = new WeakMap(), // Define static properties for the component
3265
- L($o, "properties", {
3391
+ ve = new WeakMap(), Qe = new WeakMap(), tn = new WeakMap(), // Define static properties for the component
3392
+ I(Oo, "properties", {
3266
3393
  actions: { attribute: !1 },
3267
3394
  selectedTab: { state: !0 },
3268
3395
  tabs: { attribute: !1 },
@@ -3270,8 +3397,8 @@ L($o, "properties", {
3270
3397
  noShadow: { type: Boolean },
3271
3398
  toolsAsList: { type: Boolean }
3272
3399
  });
3273
- customElements.define("eox-layercontrol-tools-items", $o);
3274
- const ca = `
3400
+ customElements.define("eox-layercontrol-tools-items", Oo);
3401
+ const ma = `
3275
3402
  button,
3276
3403
  .button {
3277
3404
  /* TODO: why does this only work here and not from :root? */
@@ -3395,7 +3522,7 @@ button.smallest.icon::before {
3395
3522
  width: 16px;
3396
3523
  padding: 0px;
3397
3524
  }
3398
- `, da = `
3525
+ `, ya = `
3399
3526
  input[type=radio] {
3400
3527
  appearance: none;
3401
3528
  -webkit-appearance: none;
@@ -3423,7 +3550,7 @@ input[type=radio]:checked:after {
3423
3550
  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");
3424
3551
 
3425
3552
  }
3426
- `, Ao = `
3553
+ `, Do = `
3427
3554
  input[type=checkbox] {
3428
3555
  appearance: none;
3429
3556
  -webkit-appearance: none;
@@ -3446,7 +3573,7 @@ input[type=checkbox]:checked:after {
3446
3573
  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");
3447
3574
 
3448
3575
  }
3449
- `, ha = `
3576
+ `, ba = `
3450
3577
  input[type="range"] {
3451
3578
  -webkit-appearance: none;
3452
3579
  width: 90%;
@@ -3524,14 +3651,14 @@ input::-moz-focus-inner, input::-moz-focus-outer {
3524
3651
  border: 0;
3525
3652
  }
3526
3653
  `;
3527
- var Ke, Qe;
3528
- class _o extends it {
3654
+ var en, nn;
3655
+ class Ro extends tt {
3529
3656
  constructor() {
3530
3657
  super();
3531
3658
  // Initializes '_removeButton' invoking 'removeButton' function with 'this' context.
3532
- L(this, "_removeButton", () => ks(this));
3659
+ I(this, "_removeButton", () => Ws(this));
3533
3660
  // Initializes '_sortButton' invoking 'sortButton' function with 'unstyled' property as a parameter.
3534
- L(this, "_sortButton", () => Us(this.unstyled));
3661
+ I(this, "_sortButton", () => Gs(this.unstyled));
3535
3662
  /**
3536
3663
  * Initializes '_button' as a function accepting 'tool' parameter to generate a Button.
3537
3664
  * Uses 'this.unstyled' as a context parameter for Button generation.
@@ -3539,28 +3666,12 @@ class _o extends it {
3539
3666
  * @param {string} tool - Tool parameter for Button generation.
3540
3667
  * @returns {import("lit").HTMLTemplateResult} - The generated Button element.
3541
3668
  */
3542
- L(this, "_button", (n) => Vs(n, this.unstyled));
3543
- L(this, "_getDefaultTools", () => {
3669
+ I(this, "_button", (n) => Ys(n, this.unstyled));
3670
+ I(this, "_getDefaultTools", () => {
3544
3671
  var n;
3545
3672
  return x`
3546
3673
  <div slot="info-content">
3547
- ${Fs(this.layer.get("description"))}
3548
- </div>
3549
- <div slot="datetime-content">
3550
- <!-- Layer datetime -->
3551
- ${G(
3552
- this.layer.get("layerDatetime"),
3553
- () => x`
3554
- <eox-layercontrol-layer-datetime
3555
- slot="datetime-content"
3556
- .noShadow=${!0}
3557
- .layerDatetime=${this.layer.get("layerDatetime")}
3558
- .layer=${this.layer}
3559
- .unstyled=${this.unstyled}
3560
- @changed=${() => this.requestUpdate()}
3561
- ></eox-layercontrol-layer-datetime>
3562
- `
3563
- )}
3674
+ ${Js(this.layer.get("description"))}
3564
3675
  </div>
3565
3676
  <div slot="opacity-content">
3566
3677
  <!-- Input for opacity -->
@@ -3569,13 +3680,13 @@ class _o extends it {
3569
3680
  min="0"
3570
3681
  max="1"
3571
3682
  step="0.01"
3572
- value=${yo((n = this.layer) == null ? void 0 : n.getOpacity())}
3683
+ value=${$o((n = this.layer) == null ? void 0 : n.getOpacity())}
3573
3684
  @input=${(i) => this.layer.setOpacity(parseFloat(i.target.value))}
3574
3685
  />
3575
3686
  </div>
3576
3687
  <div slot="config-content">
3577
3688
  <!-- Layer configuration -->
3578
- ${G(
3689
+ ${F(
3579
3690
  this.layer.get("layerConfig"),
3580
3691
  () => x`
3581
3692
  <eox-layercontrol-layerconfig
@@ -3589,16 +3700,48 @@ class _o extends it {
3589
3700
  `
3590
3701
  )}
3591
3702
  </div>
3703
+ <div slot="datetime-content">
3704
+ <!-- Layer datetime -->
3705
+ ${F(
3706
+ this.layer.get("layerDatetime"),
3707
+ () => x`
3708
+ <eox-layercontrol-layer-datetime
3709
+ slot="datetime-content"
3710
+ .noShadow=${!0}
3711
+ .layerDatetime=${this.layer.get("layerDatetime")}
3712
+ .layer=${this.layer}
3713
+ .unstyled=${this.unstyled}
3714
+ @changed=${() => this.requestUpdate()}
3715
+ ></eox-layercontrol-layer-datetime>
3716
+ `
3717
+ )}
3718
+ </div>
3719
+ <div slot="legend-content">
3720
+ <!-- Layer legend -->
3721
+ ${F(
3722
+ this.layer.get("layerLegend"),
3723
+ () => x`
3724
+ <eox-layercontrol-layer-legend
3725
+ slot="legend-content"
3726
+ .noShadow=${!0}
3727
+ .layerLegend=${this.layer.get("layerLegend")}
3728
+ .layer=${this.layer}
3729
+ .unstyled=${this.unstyled}
3730
+ @changed=${() => this.requestUpdate()}
3731
+ ></eox-layercontrol-layer-legend>
3732
+ `
3733
+ )}
3734
+ </div>
3592
3735
  <div slot="remove-icon">${this._removeButton()}</div>
3593
3736
  <div slot="sort-icon">${this._sortButton()}</div>
3594
3737
  `;
3595
3738
  });
3596
- T(this, Ke, "");
3597
- T(this, Qe, `
3598
- ${ca}
3599
- ${da}
3600
- ${Ao}
3601
- ${ha}
3739
+ _(this, en, "");
3740
+ _(this, nn, `
3741
+ ${ma}
3742
+ ${ya}
3743
+ ${Do}
3744
+ ${ba}
3602
3745
  .drag-handle {
3603
3746
  cursor: n-resize;
3604
3747
  }
@@ -3661,6 +3804,7 @@ class _o extends it {
3661
3804
  details.tools summary .icon::before {
3662
3805
  height: 16px;
3663
3806
  width: 16px;
3807
+ margin-right: var(--padding);
3664
3808
  }
3665
3809
  eox-layercontrol-tools-items button.icon,
3666
3810
  eox-layercontrol-tools-items .button.icon {
@@ -3688,6 +3832,10 @@ class _o extends it {
3688
3832
  button.icon[slot=datetime-icon]::before {
3689
3833
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Eclock-outline%3C/title%3E%3Cpath d='M12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C6.47,22 2,17.5 2,12A10,10 0 0,1 12,2M12.5,7V12.25L17,14.92L16.25,16.15L11,13V7H12.5Z' /%3E%3C/svg%3E");
3690
3834
  }
3835
+ details.tools summary .legend-icon,
3836
+ button.icon[slot=legend-icon]::before {
3837
+ content: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ctitle%3Emap-legend%3C%2Ftitle%3E%3Cpath%20d%3D%22M9%2C3L3.36%2C4.9C3.15%2C4.97%203%2C5.15%203%2C5.38V20.5A0.5%2C0.5%200%200%2C0%203.5%2C21L3.66%2C20.97L9%2C18.9L15%2C21L20.64%2C19.1C20.85%2C19.03%2021%2C18.85%2021%2C18.62V3.5A0.5%2C0.5%200%200%2C0%2020.5%2C3L20.34%2C3.03L15%2C5.1L9%2C3M8%2C5.45V17.15L5%2C18.31V6.46L8%2C5.45M10%2C5.47L14%2C6.87V18.53L10%2C17.13V5.47M19%2C5.7V17.54L16%2C18.55V6.86L19%2C5.7M7.46%2C6.3L5.57%2C6.97V9.12L7.46%2C8.45V6.3M7.46%2C9.05L5.57%2C9.72V11.87L7.46%2C11.2V9.05M7.46%2C11.8L5.57%2C12.47V14.62L7.46%2C13.95V11.8M7.46%2C14.55L5.57%2C15.22V17.37L7.46%2C16.7V14.55Z%22%20%2F%3E%3C%2Fsvg%3E");
3838
+ }
3691
3839
  .single-action .remove-icon::before,
3692
3840
  [slot=remove-icon] button.icon::before {
3693
3841
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ff0000' viewBox='0 0 24 24'%3E%3Ctitle%3Edelete-outline%3C/title%3E%3Cpath d='M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8,9H16V19H8V9M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z' /%3E%3C/svg%3E");
@@ -3711,19 +3859,19 @@ class _o extends it {
3711
3859
  }
3712
3860
  render() {
3713
3861
  var l;
3714
- const n = Ls(this.tools, this.layer), i = Bs(this.tools, this.layer), o = this[`_${n == null ? void 0 : n[0]}Button`] ? (
3862
+ const n = Xs(this.tools, this.layer), i = qs(this.tools, this.layer), o = this[`_${n == null ? void 0 : n[0]}Button`] ? (
3715
3863
  // @ts-ignore
3716
3864
  this[`_${n == null ? void 0 : n[0]}Button`]()
3717
- ) : C, r = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", s = n == null ? void 0 : n.length, a = i == null ? void 0 : i.length;
3865
+ ) : P, r = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", s = n == null ? void 0 : n.length, a = i == null ? void 0 : i.length;
3718
3866
  return x`
3719
3867
  <style>
3720
- ${P(this, Ke)}
3721
- ${!this.unstyled && P(this, Qe)}
3868
+ ${S(this, en)}
3869
+ ${!this.unstyled && S(this, nn)}
3722
3870
  </style>
3723
- ${G(
3871
+ ${F(
3724
3872
  s + a > 0,
3725
3873
  () => x`
3726
- ${G(
3874
+ ${F(
3727
3875
  s === 1 && a === 0,
3728
3876
  () => x`
3729
3877
  <div class="single-action-container">
@@ -3733,7 +3881,7 @@ class _o extends it {
3733
3881
  () => x`
3734
3882
  <details
3735
3883
  class="tools"
3736
- open=${this.layer.get("layerControlToolsExpand") || C}
3884
+ open=${this.layer.get("layerControlToolsExpand") || P}
3737
3885
  >
3738
3886
  <summary>
3739
3887
  <button class="icon ${r}">Tools</button>
@@ -3759,8 +3907,8 @@ class _o extends it {
3759
3907
  `;
3760
3908
  }
3761
3909
  }
3762
- Ke = new WeakMap(), Qe = new WeakMap(), // Define static properties for the component
3763
- L(_o, "properties", {
3910
+ en = new WeakMap(), nn = new WeakMap(), // Define static properties for the component
3911
+ I(Ro, "properties", {
3764
3912
  layer: { attribute: !1 },
3765
3913
  tools: { attribute: !1 },
3766
3914
  unstyled: { type: Boolean },
@@ -3769,11 +3917,11 @@ L(_o, "properties", {
3769
3917
  });
3770
3918
  customElements.define(
3771
3919
  "eox-layercontrol-layer-tools",
3772
- _o
3920
+ Ro
3773
3921
  );
3774
- const pa = (e) => {
3922
+ const va = (e) => {
3775
3923
  const t = () => {
3776
- const n = Is(
3924
+ const n = Bs(
3777
3925
  e.layer,
3778
3926
  e.map,
3779
3927
  e.showLayerZoomState
@@ -3783,11 +3931,11 @@ const pa = (e) => {
3783
3931
  new CustomEvent("change:resolution", { bubbles: !0 })
3784
3932
  ));
3785
3933
  };
3786
- fo(
3934
+ wo(
3787
3935
  e.layer,
3788
3936
  e.showLayerZoomState
3789
3937
  ) && (t(), e.map.getView().on("change:resolution", () => t()));
3790
- }, fa = (e, t) => {
3938
+ }, wa = (e, t) => {
3791
3939
  const n = t.layer;
3792
3940
  n.setVisible(e.target.checked), e.target.checked && n.get("layerControlExclusive") && t.closest(
3793
3941
  ".layers > ul"
@@ -3798,20 +3946,20 @@ const pa = (e) => {
3798
3946
  new CustomEvent("changed", { bubbles: !0, detail: n })
3799
3947
  ), t.requestUpdate();
3800
3948
  };
3801
- var Tt, Ne, To, tn, en;
3802
- class Co extends it {
3949
+ var Pt, Ne, Mo, on, rn;
3950
+ class Lo extends tt {
3803
3951
  constructor() {
3804
3952
  super();
3805
- T(this, Tt);
3953
+ _(this, Pt);
3806
3954
  /**
3807
3955
  * Represents the current layer visibility based on zoom level.
3808
3956
  *
3809
3957
  * @type {Boolean}
3810
3958
  */
3811
- L(this, "currLayerVisibilityBasedOnZoom", !0);
3812
- T(this, tn, "");
3813
- T(this, en, `
3814
- ${Ao}
3959
+ I(this, "currLayerVisibilityBasedOnZoom", !0);
3960
+ _(this, on, "");
3961
+ _(this, rn, `
3962
+ ${Do}
3815
3963
  eox-layercontrol-layer {
3816
3964
  width: 100%;
3817
3965
  }
@@ -3865,7 +4013,7 @@ class Co extends it {
3865
4013
  * and register "change:resolution" ones at the beginning if `showLayerZoomState` is present
3866
4014
  */
3867
4015
  firstUpdated() {
3868
- pa(this);
4016
+ va(this);
3869
4017
  }
3870
4018
  /**
3871
4019
  * Renders layer controls and tools with conditional display based on certain properties.
@@ -3874,13 +4022,13 @@ class Co extends it {
3874
4022
  */
3875
4023
  render() {
3876
4024
  var l;
3877
- const n = this.layer.getVisible(), i = n ? "visible" : "", o = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", r = B(this, Tt, Ne).call(this, "layerControlDisable") ? "disabled" : "", s = B(this, Tt, Ne).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
4025
+ const n = this.layer.getVisible(), i = n ? "visible" : "", o = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", r = V(this, Pt, Ne).call(this, "layerControlDisable") ? "disabled" : "", s = V(this, Pt, Ne).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
3878
4026
  return x`
3879
4027
  <style>
3880
- ${P(this, tn)}
3881
- ${!this.unstyled && P(this, en)}
4028
+ ${S(this, on)}
4029
+ ${!this.unstyled && S(this, rn)}
3882
4030
  </style>
3883
- ${G(
4031
+ ${F(
3884
4032
  this.layer,
3885
4033
  () => x`
3886
4034
  <!-- Render the layer -->
@@ -3889,13 +4037,13 @@ class Co extends it {
3889
4037
  <!-- Input element for layer visibility -->
3890
4038
  <input
3891
4039
  type=${s}
3892
- .checked=${yo(n)}
3893
- @click=${B(this, Tt, To)}
4040
+ .checked=${$o(n)}
4041
+ @click=${V(this, Pt, Mo)}
3894
4042
  />
3895
4043
 
3896
4044
  <!-- Layer title -->
3897
- <span class="title">${B(this, Tt, Ne).call(this, this.titleProperty)}</span>
3898
- ${G(
4045
+ <span class="title">${V(this, Pt, Ne).call(this, this.titleProperty)}</span>
4046
+ ${F(
3899
4047
  a,
3900
4048
  () => x`<span class="tools-placeholder"></span>`
3901
4049
  )}
@@ -3915,7 +4063,7 @@ class Co extends it {
3915
4063
  `;
3916
4064
  }
3917
4065
  }
3918
- Tt = new WeakSet(), /**
4066
+ Pt = new WeakSet(), /**
3919
4067
  * Private method to get layer property by key if available.
3920
4068
  *
3921
4069
  * @param {string} key - The key for the layer property.
@@ -3929,10 +4077,10 @@ Ne = function(n) {
3929
4077
  *
3930
4078
  * @param {{target: { checked: boolean }}} evt - The input change event.
3931
4079
  */
3932
- To = function(n) {
3933
- fa(n, this);
3934
- }, tn = new WeakMap(), en = new WeakMap(), // Define static properties for the component
3935
- L(Co, "properties", {
4080
+ Mo = function(n) {
4081
+ wa(n, this);
4082
+ }, on = new WeakMap(), rn = new WeakMap(), // Define static properties for the component
4083
+ I(Lo, "properties", {
3936
4084
  layer: { attribute: !1 },
3937
4085
  map: { attribute: !1, state: !0 },
3938
4086
  titleProperty: { attribute: "title-property", type: String },
@@ -3942,13 +4090,13 @@ L(Co, "properties", {
3942
4090
  noShadow: { type: Boolean },
3943
4091
  toolsAsList: { type: Boolean }
3944
4092
  });
3945
- customElements.define("eox-layercontrol-layer", Co);
3946
- var nn, on;
3947
- class Po extends it {
4093
+ customElements.define("eox-layercontrol-layer", Lo);
4094
+ var sn, an;
4095
+ class Io extends tt {
3948
4096
  constructor() {
3949
4097
  super();
3950
- T(this, nn, "");
3951
- T(this, on, `
4098
+ _(this, sn, "");
4099
+ _(this, an, `
3952
4100
  details summary {
3953
4101
  cursor: pointer;
3954
4102
  display: flex;
@@ -3988,20 +4136,20 @@ class Po extends it {
3988
4136
  */
3989
4137
  render() {
3990
4138
  var o, r;
3991
- const n = !!((o = this.group) != null && o.get("layerControlExpand")), i = (r = mo(
4139
+ const n = !!((o = this.group) != null && o.get("layerControlExpand")), i = (r = Eo(
3992
4140
  this.group.getLayers()
3993
4141
  )) == null ? void 0 : r.length;
3994
4142
  return x`
3995
4143
  <style>
3996
- ${P(this, nn)}
3997
- ${!this.unstyled && P(this, on)}
4144
+ ${S(this, sn)}
4145
+ ${!this.unstyled && S(this, an)}
3998
4146
  </style>
3999
- ${G(
4147
+ ${F(
4000
4148
  this.group,
4001
4149
  () => x`
4002
4150
  <!-- Render the details element with the layer control -->
4003
4151
  <details
4004
- open=${n || C}
4152
+ open=${n || P}
4005
4153
  data-children-length=${i}
4006
4154
  >
4007
4155
  <summary>
@@ -4038,8 +4186,8 @@ class Po extends it {
4038
4186
  `;
4039
4187
  }
4040
4188
  }
4041
- nn = new WeakMap(), on = new WeakMap(), // Define static properties for the component
4042
- L(Po, "properties", {
4189
+ sn = new WeakMap(), an = new WeakMap(), // Define static properties for the component
4190
+ I(Io, "properties", {
4043
4191
  group: { attribute: !1 },
4044
4192
  idProperty: { attribute: "id-property" },
4045
4193
  map: { attribute: !1, state: !0 },
@@ -4052,36 +4200,36 @@ L(Po, "properties", {
4052
4200
  });
4053
4201
  customElements.define(
4054
4202
  "eox-layercontrol-layer-group",
4055
- Po
4203
+ Io
4056
4204
  );
4057
- var ga = "Expected a function", _i = NaN, ma = "[object Symbol]", ya = /^\s+|\s+$/g, ba = /^[-+]0x[0-9a-f]+$/i, va = /^0b[01]+$/i, wa = /^0o[0-7]+$/i, Ea = parseInt, xa = typeof _t == "object" && _t && _t.Object === Object && _t, Sa = typeof self == "object" && self && self.Object === Object && self, $a = xa || Sa || Function("return this")(), Aa = Object.prototype, _a = Aa.toString, Ca = Math.max, Ta = Math.min, Rn = function() {
4058
- return $a.Date.now();
4205
+ var xa = "Expected a function", Di = NaN, Ea = "[object Symbol]", $a = /^\s+|\s+$/g, Sa = /^[-+]0x[0-9a-f]+$/i, Aa = /^0b[01]+$/i, Ca = /^0o[0-7]+$/i, _a = parseInt, Ta = typeof _t == "object" && _t && _t.Object === Object && _t, Pa = typeof self == "object" && self && self.Object === Object && self, Oa = Ta || Pa || Function("return this")(), Da = Object.prototype, Ra = Da.toString, La = Math.max, Ma = Math.min, In = function() {
4206
+ return Oa.Date.now();
4059
4207
  };
4060
- function Pa(e, t, n) {
4061
- var i, o, r, s, a, l, u = 0, d = !1, c = !1, p = !0;
4208
+ function Ia(e, t, n) {
4209
+ var i, o, r, s, a, l, u = 0, c = !1, d = !1, p = !0;
4062
4210
  if (typeof e != "function")
4063
- throw new TypeError(ga);
4064
- t = Ci(t) || 0, kn(n) && (d = !!n.leading, c = "maxWait" in n, r = c ? Ca(Ci(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
4211
+ throw new TypeError(xa);
4212
+ t = Ri(t) || 0, jn(n) && (c = !!n.leading, d = "maxWait" in n, r = d ? La(Ri(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
4065
4213
  function f(b) {
4066
- var D = i, Z = o;
4067
- return i = o = void 0, u = b, s = e.apply(Z, D), s;
4214
+ var D = i, z = o;
4215
+ return i = o = void 0, u = b, s = e.apply(z, D), s;
4068
4216
  }
4069
4217
  function g(b) {
4070
- return u = b, a = setTimeout(I, t), d ? f(b) : s;
4218
+ return u = b, a = setTimeout(M, t), c ? f(b) : s;
4071
4219
  }
4072
4220
  function y(b) {
4073
- var D = b - l, Z = b - u, U = t - D;
4074
- return c ? Ta(U, r - Z) : U;
4221
+ var D = b - l, z = b - u, U = t - D;
4222
+ return d ? Ma(U, r - z) : U;
4075
4223
  }
4076
4224
  function O(b) {
4077
- var D = b - l, Z = b - u;
4078
- return l === void 0 || D >= t || D < 0 || c && Z >= r;
4225
+ var D = b - l, z = b - u;
4226
+ return l === void 0 || D >= t || D < 0 || d && z >= r;
4079
4227
  }
4080
- function I() {
4081
- var b = Rn();
4228
+ function M() {
4229
+ var b = In();
4082
4230
  if (O(b))
4083
4231
  return H(b);
4084
- a = setTimeout(I, y(b));
4232
+ a = setTimeout(M, y(b));
4085
4233
  }
4086
4234
  function H(b) {
4087
4235
  return a = void 0, p && i ? f(b) : (i = o = void 0, s);
@@ -4089,69 +4237,69 @@ function Pa(e, t, n) {
4089
4237
  function J() {
4090
4238
  a !== void 0 && clearTimeout(a), u = 0, i = l = o = a = void 0;
4091
4239
  }
4092
- function j() {
4093
- return a === void 0 ? s : H(Rn());
4240
+ function Z() {
4241
+ return a === void 0 ? s : H(In());
4094
4242
  }
4095
4243
  function K() {
4096
- var b = Rn(), D = O(b);
4244
+ var b = In(), D = O(b);
4097
4245
  if (i = arguments, o = this, l = b, D) {
4098
4246
  if (a === void 0)
4099
4247
  return g(l);
4100
- if (c)
4101
- return a = setTimeout(I, t), f(l);
4248
+ if (d)
4249
+ return a = setTimeout(M, t), f(l);
4102
4250
  }
4103
- return a === void 0 && (a = setTimeout(I, t)), s;
4251
+ return a === void 0 && (a = setTimeout(M, t)), s;
4104
4252
  }
4105
- return K.cancel = J, K.flush = j, K;
4253
+ return K.cancel = J, K.flush = Z, K;
4106
4254
  }
4107
- function kn(e) {
4255
+ function jn(e) {
4108
4256
  var t = typeof e;
4109
4257
  return !!e && (t == "object" || t == "function");
4110
4258
  }
4111
- function Oa(e) {
4259
+ function Na(e) {
4112
4260
  return !!e && typeof e == "object";
4113
4261
  }
4114
- function Da(e) {
4115
- return typeof e == "symbol" || Oa(e) && _a.call(e) == ma;
4262
+ function Ha(e) {
4263
+ return typeof e == "symbol" || Na(e) && Ra.call(e) == Ea;
4116
4264
  }
4117
- function Ci(e) {
4265
+ function Ri(e) {
4118
4266
  if (typeof e == "number")
4119
4267
  return e;
4120
- if (Da(e))
4121
- return _i;
4122
- if (kn(e)) {
4268
+ if (Ha(e))
4269
+ return Di;
4270
+ if (jn(e)) {
4123
4271
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
4124
- e = kn(t) ? t + "" : t;
4272
+ e = jn(t) ? t + "" : t;
4125
4273
  }
4126
4274
  if (typeof e != "string")
4127
4275
  return e === 0 ? e : +e;
4128
- e = e.replace(ya, "");
4129
- var n = va.test(e);
4130
- return n || wa.test(e) ? Ea(e.slice(2), n ? 2 : 8) : ba.test(e) ? _i : +e;
4276
+ e = e.replace($a, "");
4277
+ var n = Aa.test(e);
4278
+ return n || Ca.test(e) ? _a(e.slice(2), n ? 2 : 8) : Sa.test(e) ? Di : +e;
4131
4279
  }
4132
- var Ra = Pa;
4133
- const Ma = /* @__PURE__ */ vo(Ra), Ia = (e) => {
4134
- const { layers: t, idProperty: n, titleProperty: i, renderRoot: o } = e, r = Ma(() => {
4280
+ var Va = Ia;
4281
+ const Ba = /* @__PURE__ */ So(Va), ka = (e) => {
4282
+ const { layers: t, idProperty: n, titleProperty: i, renderRoot: o } = e, r = Ba(() => {
4135
4283
  e.requestUpdate(), e.dispatchEvent(
4136
4284
  new CustomEvent("changed", { bubbles: !0 })
4137
4285
  );
4138
4286
  }, 50), s = () => r();
4139
4287
  if (t && (t.hasListener("change:length") && (t == null || t.un("change:length", s)), t.on("change:length", s), t)) {
4140
4288
  const a = o.querySelector("ul");
4141
- Ms(
4289
+ Vs(
4142
4290
  t,
4143
4291
  n,
4144
4292
  i,
4145
4293
  e
4146
- ), Rs(a, t, n, e);
4294
+ ), Hs(a, t, n, e);
4147
4295
  }
4148
4296
  };
4149
- var rn, sn;
4150
- class Oo extends it {
4297
+ var ln, un;
4298
+ class No extends tt {
4151
4299
  constructor() {
4152
4300
  super();
4153
- T(this, rn, "");
4154
- T(this, sn, `
4301
+ _(this, ln, "");
4302
+ _(this, un, `
4155
4303
  ul {
4156
4304
  padding: 0;
4157
4305
  margin: 0;
@@ -4161,13 +4309,11 @@ class Oo extends it {
4161
4309
  }
4162
4310
  li {
4163
4311
  list-style: none;
4312
+ padding-left: var(--padding);
4164
4313
  }
4165
4314
  li {
4166
4315
  border-bottom: 1px solid #0041703a;
4167
4316
  }
4168
- li:first-child {
4169
- border-top: 1px solid #0041703a;
4170
- }
4171
4317
  li:last-child {
4172
4318
  border: none;
4173
4319
  }
@@ -4186,7 +4332,7 @@ class Oo extends it {
4186
4332
  * Executes specific logic after the initial render of the component.
4187
4333
  */
4188
4334
  firstUpdated() {
4189
- Ia(this);
4335
+ ka(this);
4190
4336
  }
4191
4337
  /**
4192
4338
  * Overrides createRenderRoot to handle shadow DOM creation based on the noShadow property.
@@ -4199,23 +4345,23 @@ class Oo extends it {
4199
4345
  * layer groups or individual layers accordingly. Utilizes conditional rendering and iterates through available layers.
4200
4346
  */
4201
4347
  render() {
4202
- const n = this.layers ? mo(this.layers).reverse() : [];
4348
+ const n = this.layers ? Eo(this.layers).reverse() : [];
4203
4349
  return x`
4204
4350
  <style>
4205
- ${P(this, rn)}
4206
- ${!this.unstyled && P(this, sn)}
4351
+ ${S(this, ln)}
4352
+ ${!this.unstyled && S(this, un)}
4207
4353
  </style>
4208
4354
  <ul>
4209
- ${G(
4355
+ ${F(
4210
4356
  this.layers,
4211
4357
  () => x`
4212
- ${ur(
4358
+ ${fr(
4213
4359
  n,
4214
4360
  (i) => i,
4215
4361
  (i) => x`
4216
4362
  <li
4217
4363
  data-layer="${i.get(this.idProperty)}"
4218
- data-type="${Ns(i, this.map)}"
4364
+ data-type="${ks(i, this.map)}"
4219
4365
  >
4220
4366
  ${/** Checks if the layer is a group or individual layer and renders accordingly */
4221
4367
  /** @type {import("ol/layer").Group} */
@@ -4255,8 +4401,8 @@ class Oo extends it {
4255
4401
  `;
4256
4402
  }
4257
4403
  }
4258
- rn = new WeakMap(), sn = new WeakMap(), // Define static properties for the component
4259
- L(Oo, "properties", {
4404
+ ln = new WeakMap(), un = new WeakMap(), // Define static properties for the component
4405
+ I(No, "properties", {
4260
4406
  idProperty: { attribute: "id-property" },
4261
4407
  layers: { attribute: !1 },
4262
4408
  map: { attribute: !1, state: !0 },
@@ -4267,11 +4413,11 @@ L(Oo, "properties", {
4267
4413
  noShadow: { type: Boolean },
4268
4414
  toolsAsList: { type: Boolean }
4269
4415
  });
4270
- customElements.define("eox-layercontrol-layer-list", Oo);
4271
- const Na = (e) => {
4416
+ customElements.define("eox-layercontrol-layer-list", No);
4417
+ const Ua = (e) => {
4272
4418
  const t = e.querySelector(
4273
4419
  "select[name=optional]"
4274
- ), n = t ? t.value : null, i = Qn(
4420
+ ), n = t ? t.value : null, i = ii(
4275
4421
  e.layers.getArray(),
4276
4422
  "layerControlOptional",
4277
4423
  !0
@@ -4290,11 +4436,11 @@ const Na = (e) => {
4290
4436
  )
4291
4437
  ), e.requestUpdate();
4292
4438
  };
4293
- var an, Ro;
4294
- class Do extends it {
4439
+ var dn, Vo;
4440
+ class Ho extends tt {
4295
4441
  constructor() {
4296
4442
  super();
4297
- T(this, an);
4443
+ _(this, dn);
4298
4444
  this.idProperty = "id", this.layers = null, this.titleProperty = "title", this.unstyled = !1, this.noShadow = !1;
4299
4445
  }
4300
4446
  /**
@@ -4309,7 +4455,7 @@ class Do extends it {
4309
4455
  * Generates dropdown options based on the extracted layer information.
4310
4456
  */
4311
4457
  render() {
4312
- const n = Qn(
4458
+ const n = ii(
4313
4459
  this.layers.getArray(),
4314
4460
  "layerControlOptional",
4315
4461
  !0
@@ -4333,18 +4479,18 @@ class Do extends it {
4333
4479
  </select>
4334
4480
 
4335
4481
  <!-- Button to handle adding layers -->
4336
- <button @click="${B(this, an, Ro)}">add</button>
4482
+ <button @click="${V(this, dn, Vo)}">add</button>
4337
4483
  `;
4338
4484
  }
4339
4485
  }
4340
- an = new WeakSet(), /**
4486
+ dn = new WeakSet(), /**
4341
4487
  * Handles the addition of selected layers to a list.
4342
4488
  * Invokes the 'addToListMethod' with the current context.
4343
4489
  */
4344
- Ro = function() {
4345
- Na(this);
4490
+ Vo = function() {
4491
+ Ua(this);
4346
4492
  }, // Define static properties for the component
4347
- L(Do, "properties", {
4493
+ I(Ho, "properties", {
4348
4494
  idProperty: { attribute: "id-property" },
4349
4495
  layers: { attribute: !1 },
4350
4496
  titleProperty: { attribute: "title-property", type: String },
@@ -4353,27 +4499,27 @@ L(Do, "properties", {
4353
4499
  });
4354
4500
  customElements.define(
4355
4501
  "eox-layercontrol-optional-list",
4356
- Do
4502
+ Ho
4357
4503
  );
4358
- const Ha = (e, t) => {
4504
+ const Fa = (e, t) => {
4359
4505
  t.jsonInput = e.target.value, t.requestUpdate();
4360
- }, Ti = (e) => {
4506
+ }, Li = (e) => {
4361
4507
  const t = JSON.parse(
4362
- `{"data":${Ji(e.jsonInput)}}`
4508
+ `{"data":${io(e.jsonInput)}}`
4363
4509
  );
4364
4510
  Array.isArray(t.data) ? t.data.forEach((n) => {
4365
4511
  e.eoxMap.addOrUpdateLayer(n);
4366
4512
  }) : e.eoxMap.addOrUpdateLayer(t.data), e.jsonInput = null, e.requestUpdate();
4367
- }, La = (e, t) => {
4513
+ }, ja = (e, t) => {
4368
4514
  t.urlInput = e.target.value, t.requestUpdate();
4369
4515
  };
4370
- async function Ba(e) {
4516
+ async function Za(e) {
4371
4517
  const t = e.urlInput;
4372
4518
  if (e.wmsCapabilities = null, e.searchLoad = !0, e.requestUpdate(), !t) return !1;
4373
- if (Wn(t) === "XYZ")
4519
+ if (Qn(t) === "XYZ")
4374
4520
  return { Name: t };
4375
4521
  try {
4376
- const n = await es(t);
4522
+ const n = await ss(t);
4377
4523
  e.wmsCapabilities = n;
4378
4524
  } catch {
4379
4525
  } finally {
@@ -4381,8 +4527,8 @@ async function Ba(e) {
4381
4527
  }
4382
4528
  return !1;
4383
4529
  }
4384
- const Va = (e, t) => {
4385
- const { Name: n } = e, i = Wn(t.urlInput) || "XYZ", o = {
4530
+ const za = (e, t) => {
4531
+ const { Name: n } = e, i = Qn(t.urlInput) || "XYZ", o = {
4386
4532
  type: "Tile",
4387
4533
  properties: {
4388
4534
  id: n,
@@ -4400,45 +4546,45 @@ const Va = (e, t) => {
4400
4546
  }
4401
4547
  };
4402
4548
  t.jsonInput = JSON.stringify(o);
4403
- }, ka = (e, t) => {
4549
+ }, Xa = (e, t) => {
4404
4550
  t.open = e || null, t.urlInput = null, t.jsonInput = null, t.wmsCapabilities = null, t.requestUpdate();
4405
4551
  };
4406
- var X, Io, No, Un, Ho, Lo, He, ln, un;
4407
- class Mo extends it {
4552
+ var q, ko, Uo, Zn, Fo, jo, He, cn, hn;
4553
+ class Bo extends tt {
4408
4554
  constructor() {
4409
4555
  super();
4410
- T(this, X);
4556
+ _(this, q);
4411
4557
  /**
4412
4558
  * State for URL Input for WMS/XYZ URLs
4413
4559
  *
4414
4560
  * @type {String}
4415
4561
  */
4416
- L(this, "urlInput", null);
4562
+ I(this, "urlInput", null);
4417
4563
  /**
4418
4564
  * State for JSON Textarea - For EOxMap JSON
4419
4565
  *
4420
4566
  * @type {String}
4421
4567
  */
4422
- L(this, "jsonInput", null);
4568
+ I(this, "jsonInput", null);
4423
4569
  /**
4424
4570
  * State for add layer - consist of url/json
4425
4571
  *
4426
4572
  * @type {"url" | "json" | null}
4427
4573
  */
4428
- L(this, "open", null);
4574
+ I(this, "open", null);
4429
4575
  /**
4430
4576
  * Loader state when search is triggered
4431
4577
  *
4432
4578
  * @type {Boolean}
4433
4579
  */
4434
- L(this, "searchLoad", !1);
4580
+ I(this, "searchLoad", !1);
4435
4581
  /**
4436
4582
  * State for `WMS Capabilities JSON`
4437
4583
  *
4438
4584
  * @type {import("wms-capabilities").WMSCapabilitiesJSON}
4439
4585
  */
4440
- L(this, "wmsCapabilities", null);
4441
- T(this, ln, `
4586
+ I(this, "wmsCapabilities", null);
4587
+ _(this, cn, `
4442
4588
  .eox-add-layer-main .open {
4443
4589
  position: relative;
4444
4590
  }
@@ -4446,7 +4592,7 @@ class Mo extends it {
4446
4592
  display: none;
4447
4593
  }
4448
4594
  `);
4449
- T(this, un, `
4595
+ _(this, hn, `
4450
4596
  .eox-add {
4451
4597
  background: #f0f2f5;
4452
4598
  border-top: 1px solid #0041701a;
@@ -4595,24 +4741,24 @@ class Mo extends it {
4595
4741
  * Handles input fields, search, and addition of layers.
4596
4742
  */
4597
4743
  render() {
4598
- const n = this.open ? "open" : "close", i = this.open === "url", o = this.open === "json", r = !ns(this.urlInput) || this.searchLoad ? !0 : C;
4744
+ const n = this.open ? "open" : "close", i = this.open === "url", o = this.open === "json", r = !as(this.urlInput) || this.searchLoad ? !0 : P;
4599
4745
  return x`
4600
4746
  <style>
4601
- ${P(this, ln)}
4602
- ${!this.unstyled && P(this, un)}
4747
+ ${S(this, cn)}
4748
+ ${!this.unstyled && S(this, hn)}
4603
4749
  </style>
4604
4750
  <div class="eox-add-layer-main">
4605
4751
  <div class="eox-add-layer-col">
4606
4752
  <!-- Tabbed interface for URL and JSON -->
4607
4753
  <ul class="eox-add-layer-tab ${n}">
4608
4754
  <li
4609
- @click=${() => B(this, X, He).call(this, "url")}
4755
+ @click=${() => V(this, q, He).call(this, "url")}
4610
4756
  class="${i ? "active" : ""}"
4611
4757
  >
4612
4758
  URL
4613
4759
  </li>
4614
4760
  <li
4615
- @click=${() => B(this, X, He).call(this, "json")}
4761
+ @click=${() => V(this, q, He).call(this, "json")}
4616
4762
  class="${o ? "active" : ""}"
4617
4763
  >
4618
4764
  JSON
@@ -4622,7 +4768,7 @@ class Mo extends it {
4622
4768
  <!-- Button to toggle tabs -->
4623
4769
  <button
4624
4770
  class="add-icon icon"
4625
- @click=${() => B(this, X, He).call(this, this.open ? null : "url")}
4771
+ @click=${() => V(this, q, He).call(this, this.open ? null : "url")}
4626
4772
  >
4627
4773
  ${this.unstyled ? "Add Layer" : ""}
4628
4774
  </button>
@@ -4636,14 +4782,14 @@ class Mo extends it {
4636
4782
  class="add-url"
4637
4783
  placeholder="Add URL (WMS/XYZ)"
4638
4784
  .value="${this.urlInput}"
4639
- @input=${B(this, X, Io)}
4785
+ @input=${V(this, q, ko)}
4640
4786
  >
4641
4787
  </input>
4642
4788
  <!-- Search button for URL -->
4643
4789
  <button
4644
4790
  class="search-icon"
4645
4791
  disabled=${r}
4646
- @click=${B(this, X, No)}
4792
+ @click=${V(this, q, Uo)}
4647
4793
  >
4648
4794
  ${this.unstyled ? "Search" : ""}
4649
4795
  </button>
@@ -4662,7 +4808,7 @@ class Mo extends it {
4662
4808
  class="add-layer-icon icon"
4663
4809
  @click=${() => (
4664
4810
  //@ts-ignore
4665
- B(this, X, Un).call(this, s)
4811
+ V(this, q, Zn).call(this, s)
4666
4812
  )}
4667
4813
  >
4668
4814
  ${this.unstyled ? "+" : ""}
@@ -4671,21 +4817,21 @@ class Mo extends it {
4671
4817
  `;
4672
4818
  }
4673
4819
  )}
4674
- </ul>` : C}
4820
+ </ul>` : P}
4675
4821
  ` : x`
4676
4822
  <!-- Textarea for JSON input -->
4677
4823
  <textarea
4678
4824
  class="add-layer-input"
4679
4825
  placeholder="Please put a valid eox-map layer JSON."
4680
- @input=${B(this, X, Lo)}
4826
+ @input=${V(this, q, jo)}
4681
4827
  .value=${this.jsonInput}
4682
4828
  ></textarea>
4683
4829
 
4684
4830
  <!-- Button to add JSON layer -->
4685
4831
  <button
4686
4832
  class="add-layer-icon json-add-layer"
4687
- disabled=${is(this.jsonInput) ? C : !0}
4688
- @click=${B(this, X, Ho)}
4833
+ disabled=${ls(this.jsonInput) ? P : !0}
4834
+ @click=${V(this, q, Fo)}
4689
4835
  >
4690
4836
  ${this.unstyled ? "Add JSON" : ""}
4691
4837
  </button>
@@ -4695,78 +4841,86 @@ class Mo extends it {
4695
4841
  `;
4696
4842
  }
4697
4843
  }
4698
- X = new WeakSet(), /**
4844
+ q = new WeakSet(), /**
4699
4845
  * Handles changes in the input field by invoking the 'urlInputChangeMethod'.
4700
4846
  * This method is triggered upon an @input change event.
4701
4847
  *
4702
4848
  * @param {Event} evt - The input change event triggering the method.
4703
4849
  */
4704
- Io = function(n) {
4705
- La(n, this);
4706
- }, No = async function() {
4707
- const n = await Ba(this);
4708
- n && B(this, X, Un).call(this, n);
4850
+ ko = function(n) {
4851
+ ja(n, this);
4852
+ }, Uo = async function() {
4853
+ const n = await Za(this);
4854
+ n && V(this, q, Zn).call(this, n);
4709
4855
  }, /**
4710
4856
  * Handles input field changes by triggering layer processing and adding layers.
4711
4857
  *
4712
4858
  * @param {{"Name": string}} layer - The layer information triggering the method.
4713
4859
  */
4714
- Un = function(n) {
4715
- Va(n, this), Ti(this);
4860
+ Zn = function(n) {
4861
+ za(n, this), Li(this);
4716
4862
  }, /**
4717
4863
  * Initiates the addition of layers, triggering the handleAddLayerMethod.
4718
4864
  */
4719
- Ho = function() {
4720
- Ti(this);
4865
+ Fo = function() {
4866
+ Li(this);
4721
4867
  }, /**
4722
4868
  * Handles input field changes by invoking the 'handleJsonInputChangeMethod'.
4723
4869
  *
4724
4870
  * @param {{target: { value: string }}} evt - The input change event triggering the method.
4725
4871
  */
4726
- Lo = function(n) {
4727
- Ha(n, this);
4872
+ jo = function(n) {
4873
+ Fa(n, this);
4728
4874
  }, /**
4729
4875
  * Handles tab changes by invoking the 'openCloseTabMethod'.
4730
4876
  *
4731
4877
  * @param {"url" | "json" | null} tab - The tab identifier triggering the method.
4732
4878
  */
4733
4879
  He = function(n) {
4734
- ka(n, this);
4735
- }, ln = new WeakMap(), un = new WeakMap(), // Define static properties for the component
4736
- L(Mo, "properties", {
4880
+ Xa(n, this);
4881
+ }, cn = new WeakMap(), hn = new WeakMap(), // Define static properties for the component
4882
+ I(Bo, "properties", {
4737
4883
  eoxMap: { attribute: !1, state: !0 },
4738
4884
  unstyled: { type: Boolean },
4739
4885
  noShadow: { type: Boolean }
4740
4886
  });
4741
- customElements.define("eox-layercontrol-add-layers", Mo);
4742
- const Ua = (e, t) => {
4887
+ customElements.define("eox-layercontrol-add-layers", Bo);
4888
+ const qa = (e, t) => {
4743
4889
  if (t.requestUpdate(), e.target.tagName === "EOX-LAYERCONTROL-LAYER-TOOLS") {
4744
4890
  const n = t.renderRoot.querySelector(
4745
4891
  "eox-layercontrol-optional-list"
4746
4892
  );
4747
4893
  n == null || n.requestUpdate();
4748
4894
  }
4749
- }, Fa = (e) => {
4895
+ }, Ya = (e) => {
4750
4896
  let t;
4751
4897
  return typeof e == "string" ? t = /** @type {HTMLElement} */
4752
4898
  document.querySelector(e) : t = e, t;
4753
- }, Pi = (e) => {
4754
- const t = Fa(e.for);
4899
+ }, Mi = (e) => {
4900
+ const t = Ya(e.for);
4755
4901
  return t && t.map !== e.map && (e.map = t.map), t;
4756
4902
  };
4757
- var $t, Yt, Vo, ko, cn;
4758
- class Bo extends it {
4903
+ var At, Gt, zo, Xo, pn;
4904
+ class Zo extends tt {
4759
4905
  // Constructor to set default values for properties
4760
4906
  constructor() {
4761
4907
  super();
4762
- T(this, Yt);
4908
+ _(this, Gt);
4763
4909
  /**
4764
4910
  * Instance of `eox-map` which is a wrapper for the OL
4765
4911
  *
4766
- * @type {import("../../map/main").EOxMap}
4912
+ * @type {import("../../map/src/main").EOxMap}
4767
4913
  */
4768
- T(this, $t);
4769
- T(this, cn, "* { font-family: Roboto, sans-serif; }");
4914
+ _(this, At);
4915
+ _(this, pn, `
4916
+ :host, :root {
4917
+ font-family: Roboto, sans-serif;
4918
+ --padding: 0.5rem;
4919
+
4920
+ display: block;
4921
+ padding: var(--padding) 0;
4922
+ }
4923
+ `);
4770
4924
  this.for = "eox-map", this.idProperty = "id", this.map = null, this.titleProperty = "title", this.showLayerZoomState = !1, this.tools = ["info", "opacity", "datetime", "config", "remove", "sort"], this.addExternalLayers = !1, this.unstyled = !1, this.styleOverride = "", this.toolsAsList = !1;
4771
4925
  }
4772
4926
  /**
@@ -4774,41 +4928,41 @@ class Bo extends it {
4774
4928
  * Updated #eoxMap after first update.
4775
4929
  */
4776
4930
  firstUpdated() {
4777
- this.eoxMap = Pi(this);
4931
+ this.eoxMap = Mi(this);
4778
4932
  }
4779
4933
  updated(n) {
4780
- n.has("for") && (this.eoxMap = Pi(this));
4934
+ n.has("for") && (this.eoxMap = Mi(this));
4781
4935
  }
4782
4936
  get eoxMap() {
4783
- return P(this, $t);
4937
+ return S(this, At);
4784
4938
  }
4785
4939
  set eoxMap(n) {
4786
- const i = P(this, $t);
4787
- Qt(this, $t, n), this.requestUpdate("eoxMap", i);
4940
+ const i = S(this, At);
4941
+ kt(this, At, n), this.requestUpdate("eoxMap", i);
4788
4942
  }
4789
4943
  render() {
4790
4944
  var o, r, s;
4791
- const n = (o = this.map) == null ? void 0 : o.getLayers().getArray(), i = n && ((r = Qn(n, "layerControlOptional", !0)) == null ? void 0 : r.length) > 0;
4945
+ const n = (o = this.map) == null ? void 0 : o.getLayers().getArray(), i = n && ((r = ii(n, "layerControlOptional", !0)) == null ? void 0 : r.length) > 0;
4792
4946
  return x`
4793
4947
  <style>
4794
- ${!this.unstyled && P(this, cn)}
4948
+ ${!this.unstyled && S(this, pn)}
4795
4949
  ${this.styleOverride}
4796
4950
  </style>
4797
4951
 
4798
4952
  <!-- Conditional rendering of add layers component -->
4799
- ${G(
4800
- this.addExternalLayers && ((s = P(this, $t)) == null ? void 0 : s.addOrUpdateLayer),
4953
+ ${F(
4954
+ this.addExternalLayers && ((s = S(this, At)) == null ? void 0 : s.addOrUpdateLayer),
4801
4955
  () => x`
4802
4956
  <eox-layercontrol-add-layers
4803
4957
  .noShadow=${!0}
4804
- .eoxMap=${P(this, $t)}
4958
+ .eoxMap=${S(this, At)}
4805
4959
  .unstyled=${this.unstyled}
4806
4960
  ></eox-layercontrol-add-layers>
4807
4961
  `
4808
4962
  )}
4809
4963
 
4810
4964
  <!-- Conditional rendering of layer list component -->
4811
- ${G(
4965
+ ${F(
4812
4966
  this.map,
4813
4967
  () => x`
4814
4968
  <eox-layercontrol-layer-list
@@ -4822,14 +4976,14 @@ class Bo extends it {
4822
4976
  .tools=${this.tools}
4823
4977
  .unstyled=${this.unstyled}
4824
4978
  .toolsAsList=${this.toolsAsList}
4825
- @changed=${B(this, Yt, Vo)}
4826
- @datetime:updated=${B(this, Yt, ko)}
4979
+ @changed=${V(this, Gt, zo)}
4980
+ @datetime:updated=${V(this, Gt, Xo)}
4827
4981
  ></eox-layercontrol-layer-list>
4828
4982
  `
4829
4983
  )}
4830
4984
 
4831
4985
  <!-- Conditional rendering of optional list component -->
4832
- ${G(
4986
+ ${F(
4833
4987
  i,
4834
4988
  () => x`
4835
4989
  <eox-layercontrol-optional-list
@@ -4844,23 +4998,23 @@ class Bo extends it {
4844
4998
  `;
4845
4999
  }
4846
5000
  }
4847
- $t = new WeakMap(), Yt = new WeakSet(), /**
5001
+ At = new WeakMap(), Gt = new WeakSet(), /**
4848
5002
  * Event handler for changes in the layer list
4849
5003
  *
4850
5004
  * @param {CustomEvent & {target: Element}} evt
4851
5005
  */
4852
- Vo = function(n) {
4853
- Ua(n, this), this.dispatchEvent(new CustomEvent("layerchange", { detail: n.detail }));
5006
+ zo = function(n) {
5007
+ qa(n, this), this.dispatchEvent(new CustomEvent("layerchange", { detail: n.detail }));
4854
5008
  }, /**
4855
5009
  * Dispatches datetime updates from layer datetime to the layercontrol
4856
5010
  * @param {CustomEvent} evt
4857
5011
  */
4858
- ko = function(n) {
5012
+ Xo = function(n) {
4859
5013
  this.dispatchEvent(
4860
5014
  new CustomEvent("datetime:updated", { detail: n.detail })
4861
5015
  );
4862
- }, cn = new WeakMap(), // Define static properties for the component
4863
- L(Bo, "properties", {
5016
+ }, pn = new WeakMap(), // Define static properties for the component
5017
+ I(Zo, "properties", {
4864
5018
  for: { type: String },
4865
5019
  idProperty: { attribute: "id-property" },
4866
5020
  map: { attribute: !1, state: !0 },
@@ -4872,7 +5026,7 @@ L(Bo, "properties", {
4872
5026
  styleOverride: { type: String },
4873
5027
  toolsAsList: { type: Boolean }
4874
5028
  });
4875
- customElements.define("eox-layercontrol", Bo);
5029
+ customElements.define("eox-layercontrol", Zo);
4876
5030
  export {
4877
- Bo as EOxLayerControl
5031
+ Zo as EOxLayerControl
4878
5032
  };