@eox/layercontrol 0.28.0 → 0.28.2-dev.1736961804.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- var Qo = Object.defineProperty;
1
+ var Kr = Object.defineProperty;
2
2
  var yn = (i) => {
3
3
  throw TypeError(i);
4
4
  };
5
- var tr = (i, t, e) => t in i ? Qo(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
6
- var F = (i, t, e) => tr(i, typeof t != "symbol" ? t + "" : t, e), Ci = (i, t, e) => t.has(i) || yn("Cannot " + e);
7
- var T = (i, t, e) => (Ci(i, t, "read from private field"), e ? e.call(i) : t.get(i)), P = (i, t, e) => t.has(i) ? yn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), Qt = (i, t, e, n) => (Ci(i, t, "write to private field"), n ? n.call(i, e) : t.set(i, e), e), j = (i, t, e) => (Ci(i, t, "access private method"), e);
5
+ var Qr = (i, t, e) => t in i ? Kr(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
6
+ var F = (i, t, e) => Qr(i, typeof t != "symbol" ? t + "" : t, e), Ci = (i, t, e) => t.has(i) || yn("Cannot " + e);
7
+ var T = (i, t, e) => (Ci(i, t, "read from private field"), e ? e.call(i) : t.get(i)), P = (i, t, e) => t.has(i) ? yn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), te = (i, t, e, n) => (Ci(i, t, "write to private field"), n ? n.call(i, e) : t.set(i, e), e), j = (i, t, e) => (Ci(i, t, "access private method"), e);
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2019 Google LLC
@@ -29,33 +29,33 @@ let Zn = class {
29
29
  return this.cssText;
30
30
  }
31
31
  };
32
- const er = (i) => new Zn(typeof i == "string" ? i : i + "", void 0, en), qn = (i, ...t) => {
33
- const e = i.length === 1 ? i[0] : t.reduce((n, o, r) => n + ((s) => {
32
+ const to = (i) => new Zn(typeof i == "string" ? i : i + "", void 0, en), qn = (i, ...t) => {
33
+ const e = i.length === 1 ? i[0] : t.reduce((n, r, o) => n + ((s) => {
34
34
  if (s._$cssResult$ === !0) return s.cssText;
35
35
  if (typeof s == "number") return s;
36
36
  throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
37
- })(o) + i[r + 1], i[0]);
37
+ })(r) + i[o + 1], i[0]);
38
38
  return new Zn(e, i, en);
39
- }, ir = (i, t) => {
39
+ }, eo = (i, t) => {
40
40
  if (tn) i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
41
41
  else for (const e of t) {
42
- const n = document.createElement("style"), o = Fe.litNonce;
43
- o !== void 0 && n.setAttribute("nonce", o), n.textContent = e.cssText, i.appendChild(n);
42
+ const n = document.createElement("style"), r = Fe.litNonce;
43
+ r !== void 0 && n.setAttribute("nonce", r), n.textContent = e.cssText, i.appendChild(n);
44
44
  }
45
45
  }, vn = tn ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
46
46
  let e = "";
47
47
  for (const n of t.cssRules) e += n.cssText;
48
- return er(e);
48
+ return to(e);
49
49
  })(i) : i;
50
50
  /**
51
51
  * @license
52
52
  * Copyright 2017 Google LLC
53
53
  * SPDX-License-Identifier: BSD-3-Clause
54
54
  */
55
- const { is: nr, defineProperty: or, getOwnPropertyDescriptor: rr, getOwnPropertyNames: sr, getOwnPropertySymbols: ar, getPrototypeOf: lr } = Object, kt = globalThis, wn = kt.trustedTypes, dr = wn ? wn.emptyScript : "", Ti = kt.reactiveElementPolyfillSupport, be = (i, t) => i, qi = { toAttribute(i, t) {
55
+ const { is: io, defineProperty: no, getOwnPropertyDescriptor: ro, getOwnPropertyNames: oo, getOwnPropertySymbols: so, getPrototypeOf: ao } = Object, Ut = globalThis, wn = Ut.trustedTypes, lo = wn ? wn.emptyScript : "", Ti = Ut.reactiveElementPolyfillSupport, ve = (i, t) => i, qi = { toAttribute(i, t) {
56
56
  switch (t) {
57
57
  case Boolean:
58
- i = i ? dr : null;
58
+ i = i ? lo : null;
59
59
  break;
60
60
  case Object:
61
61
  case Array:
@@ -80,9 +80,9 @@ const { is: nr, defineProperty: or, getOwnPropertyDescriptor: rr, getOwnProperty
80
80
  }
81
81
  }
82
82
  return e;
83
- } }, Xn = (i, t) => !nr(i, t), xn = { attribute: !0, type: String, converter: qi, reflect: !1, hasChanged: Xn };
84
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), kt.litPropertyMetadata ?? (kt.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
85
- class ie extends HTMLElement {
83
+ } }, Xn = (i, t) => !io(i, t), xn = { attribute: !0, type: String, converter: qi, reflect: !1, hasChanged: Xn };
84
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Ut.litPropertyMetadata ?? (Ut.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
85
+ class ne extends HTMLElement {
86
86
  static addInitializer(t) {
87
87
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
88
88
  }
@@ -91,46 +91,46 @@ class ie extends HTMLElement {
91
91
  }
92
92
  static createProperty(t, e = xn) {
93
93
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
94
- const n = Symbol(), o = this.getPropertyDescriptor(t, n, e);
95
- o !== void 0 && or(this.prototype, t, o);
94
+ const n = Symbol(), r = this.getPropertyDescriptor(t, n, e);
95
+ r !== void 0 && no(this.prototype, t, r);
96
96
  }
97
97
  }
98
98
  static getPropertyDescriptor(t, e, n) {
99
- const { get: o, set: r } = rr(this.prototype, t) ?? { get() {
99
+ const { get: r, set: o } = ro(this.prototype, t) ?? { get() {
100
100
  return this[e];
101
101
  }, set(s) {
102
102
  this[e] = s;
103
103
  } };
104
104
  return { get() {
105
- return o == null ? void 0 : o.call(this);
105
+ return r == null ? void 0 : r.call(this);
106
106
  }, set(s) {
107
- const a = o == null ? void 0 : o.call(this);
108
- r.call(this, s), this.requestUpdate(t, a, n);
107
+ const a = r == null ? void 0 : r.call(this);
108
+ o.call(this, s), this.requestUpdate(t, a, n);
109
109
  }, configurable: !0, enumerable: !0 };
110
110
  }
111
111
  static getPropertyOptions(t) {
112
112
  return this.elementProperties.get(t) ?? xn;
113
113
  }
114
114
  static _$Ei() {
115
- if (this.hasOwnProperty(be("elementProperties"))) return;
116
- const t = lr(this);
115
+ if (this.hasOwnProperty(ve("elementProperties"))) return;
116
+ const t = ao(this);
117
117
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
118
118
  }
119
119
  static finalize() {
120
- if (this.hasOwnProperty(be("finalized"))) return;
121
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(be("properties"))) {
122
- const e = this.properties, n = [...sr(e), ...ar(e)];
123
- for (const o of n) this.createProperty(o, e[o]);
120
+ if (this.hasOwnProperty(ve("finalized"))) return;
121
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ve("properties"))) {
122
+ const e = this.properties, n = [...oo(e), ...so(e)];
123
+ for (const r of n) this.createProperty(r, e[r]);
124
124
  }
125
125
  const t = this[Symbol.metadata];
126
126
  if (t !== null) {
127
127
  const e = litPropertyMetadata.get(t);
128
- if (e !== void 0) for (const [n, o] of e) this.elementProperties.set(n, o);
128
+ if (e !== void 0) for (const [n, r] of e) this.elementProperties.set(n, r);
129
129
  }
130
130
  this._$Eh = /* @__PURE__ */ new Map();
131
131
  for (const [e, n] of this.elementProperties) {
132
- const o = this._$Eu(e, n);
133
- o !== void 0 && this._$Eh.set(o, e);
132
+ const r = this._$Eu(e, n);
133
+ r !== void 0 && this._$Eh.set(r, e);
134
134
  }
135
135
  this.elementStyles = this.finalizeStyles(this.styles);
136
136
  }
@@ -138,7 +138,7 @@ class ie extends HTMLElement {
138
138
  const e = [];
139
139
  if (Array.isArray(t)) {
140
140
  const n = new Set(t.flat(1 / 0).reverse());
141
- for (const o of n) e.unshift(vn(o));
141
+ for (const r of n) e.unshift(vn(r));
142
142
  } else t !== void 0 && e.push(vn(t));
143
143
  return e;
144
144
  }
@@ -168,7 +168,7 @@ class ie extends HTMLElement {
168
168
  }
169
169
  createRenderRoot() {
170
170
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
171
- return ir(t, this.constructor.elementStyles), t;
171
+ return eo(t, this.constructor.elementStyles), t;
172
172
  }
173
173
  connectedCallback() {
174
174
  var t;
@@ -190,19 +190,19 @@ class ie extends HTMLElement {
190
190
  this._$AK(t, n);
191
191
  }
192
192
  _$EC(t, e) {
193
- var r;
194
- const n = this.constructor.elementProperties.get(t), o = this.constructor._$Eu(t, n);
195
- if (o !== void 0 && n.reflect === !0) {
196
- const s = (((r = n.converter) == null ? void 0 : r.toAttribute) !== void 0 ? n.converter : qi).toAttribute(e, n.type);
197
- this._$Em = t, s == null ? this.removeAttribute(o) : this.setAttribute(o, s), this._$Em = null;
193
+ var o;
194
+ const n = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, n);
195
+ if (r !== void 0 && n.reflect === !0) {
196
+ const s = (((o = n.converter) == null ? void 0 : o.toAttribute) !== void 0 ? n.converter : qi).toAttribute(e, n.type);
197
+ this._$Em = t, s == null ? this.removeAttribute(r) : this.setAttribute(r, s), this._$Em = null;
198
198
  }
199
199
  }
200
200
  _$AK(t, e) {
201
- var r;
202
- const n = this.constructor, o = n._$Eh.get(t);
203
- if (o !== void 0 && this._$Em !== o) {
204
- const s = n.getPropertyOptions(o), a = typeof s.converter == "function" ? { fromAttribute: s.converter } : ((r = s.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? s.converter : qi;
205
- this._$Em = o, this[o] = a.fromAttribute(e, s.type), this._$Em = null;
201
+ var o;
202
+ const n = this.constructor, r = n._$Eh.get(t);
203
+ if (r !== void 0 && this._$Em !== r) {
204
+ const s = n.getPropertyOptions(r), a = typeof s.converter == "function" ? { fromAttribute: s.converter } : ((o = s.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? s.converter : qi;
205
+ this._$Em = r, this[r] = a.fromAttribute(e, s.type), this._$Em = null;
206
206
  }
207
207
  }
208
208
  requestUpdate(t, e, n) {
@@ -233,21 +233,21 @@ class ie extends HTMLElement {
233
233
  if (!this.isUpdatePending) return;
234
234
  if (!this.hasUpdated) {
235
235
  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
236
- for (const [r, s] of this._$Ep) this[r] = s;
236
+ for (const [o, s] of this._$Ep) this[o] = s;
237
237
  this._$Ep = void 0;
238
238
  }
239
- const o = this.constructor.elementProperties;
240
- if (o.size > 0) for (const [r, s] of o) s.wrapped !== !0 || this._$AL.has(r) || this[r] === void 0 || this.P(r, this[r], s);
239
+ const r = this.constructor.elementProperties;
240
+ if (r.size > 0) for (const [o, s] of r) s.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], s);
241
241
  }
242
242
  let t = !1;
243
243
  const e = this._$AL;
244
244
  try {
245
- t = this.shouldUpdate(e), t ? (this.willUpdate(e), (n = this._$EO) == null || n.forEach((o) => {
246
- var r;
247
- return (r = o.hostUpdate) == null ? void 0 : r.call(o);
245
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (n = this._$EO) == null || n.forEach((r) => {
246
+ var o;
247
+ return (o = r.hostUpdate) == null ? void 0 : o.call(r);
248
248
  }), this.update(e)) : this._$EU();
249
- } catch (o) {
250
- throw t = !1, this._$EU(), o;
249
+ } catch (r) {
250
+ throw t = !1, this._$EU(), r;
251
251
  }
252
252
  t && this._$AE(e);
253
253
  }
@@ -256,8 +256,8 @@ class ie extends HTMLElement {
256
256
  _$AE(t) {
257
257
  var e;
258
258
  (e = this._$EO) == null || e.forEach((n) => {
259
- var o;
260
- return (o = n.hostUpdated) == null ? void 0 : o.call(n);
259
+ var r;
260
+ return (r = n.hostUpdated) == null ? void 0 : r.call(n);
261
261
  }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
262
262
  }
263
263
  _$EU() {
@@ -280,74 +280,74 @@ class ie extends HTMLElement {
280
280
  firstUpdated(t) {
281
281
  }
282
282
  }
283
- ie.elementStyles = [], ie.shadowRootOptions = { mode: "open" }, ie[be("elementProperties")] = /* @__PURE__ */ new Map(), ie[be("finalized")] = /* @__PURE__ */ new Map(), Ti == null || Ti({ ReactiveElement: ie }), (kt.reactiveElementVersions ?? (kt.reactiveElementVersions = [])).push("2.0.4");
283
+ ne.elementStyles = [], ne.shadowRootOptions = { mode: "open" }, ne[ve("elementProperties")] = /* @__PURE__ */ new Map(), ne[ve("finalized")] = /* @__PURE__ */ new Map(), Ti == null || Ti({ ReactiveElement: ne }), (Ut.reactiveElementVersions ?? (Ut.reactiveElementVersions = [])).push("2.0.4");
284
284
  /**
285
285
  * @license
286
286
  * Copyright 2017 Google LLC
287
287
  * SPDX-License-Identifier: BSD-3-Clause
288
288
  */
289
- const ve = globalThis, Ge = ve.trustedTypes, En = Ge ? Ge.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, nn = "$lit$", Ct = `lit$${Math.random().toFixed(9).slice(2)}$`, on = "?" + Ct, ur = `<${on}>`, Jt = document, _e = () => Jt.createComment(""), Ae = (i) => i === null || typeof i != "object" && typeof i != "function", rn = Array.isArray, Yn = (i) => rn(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Di = `[
290
- \f\r]`, pe = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $n = /-->/g, Sn = />/g, zt = RegExp(`>|${Di}(?:([^\\s"'>=/]+)(${Di}*=${Di}*(?:[^
291
- \f\r"'\`<>=]|("|')|))|$)`, "g"), _n = /'/g, An = /"/g, Wn = /^(?:script|style|textarea|title)$/i, cr = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), x = cr(1), vt = Symbol.for("lit-noChange"), O = Symbol.for("lit-nothing"), Cn = /* @__PURE__ */ new WeakMap(), Wt = Jt.createTreeWalker(Jt, 129);
289
+ const we = globalThis, Ge = we.trustedTypes, $n = Ge ? Ge.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, nn = "$lit$", Ct = `lit$${Math.random().toFixed(9).slice(2)}$`, rn = "?" + Ct, co = `<${rn}>`, Kt = document, _e = () => Kt.createComment(""), Ce = (i) => i === null || typeof i != "object" && typeof i != "function", on = Array.isArray, Yn = (i) => on(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Di = `[
290
+ \f\r]`, fe = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, En = /-->/g, Sn = />/g, Zt = RegExp(`>|${Di}(?:([^\\s"'>=/]+)(${Di}*=${Di}*(?:[^
291
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), An = /'/g, _n = /"/g, Wn = /^(?:script|style|textarea|title)$/i, uo = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), x = uo(1), vt = Symbol.for("lit-noChange"), L = Symbol.for("lit-nothing"), Cn = /* @__PURE__ */ new WeakMap(), Gt = Kt.createTreeWalker(Kt, 129);
292
292
  function Gn(i, t) {
293
- if (!rn(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
294
- return En !== void 0 ? En.createHTML(t) : t;
293
+ if (!on(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
294
+ return $n !== void 0 ? $n.createHTML(t) : t;
295
295
  }
296
296
  const Jn = (i, t) => {
297
297
  const e = i.length - 1, n = [];
298
- let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = pe;
298
+ let r, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = fe;
299
299
  for (let a = 0; a < e; a++) {
300
300
  const l = i[a];
301
- let d, c, u = -1, p = 0;
302
- for (; p < l.length && (s.lastIndex = p, c = s.exec(l), c !== null); ) p = s.lastIndex, s === pe ? c[1] === "!--" ? s = $n : c[1] !== void 0 ? s = Sn : c[2] !== void 0 ? (Wn.test(c[2]) && (o = RegExp("</" + c[2], "g")), s = zt) : c[3] !== void 0 && (s = zt) : s === zt ? c[0] === ">" ? (s = o ?? pe, u = -1) : c[1] === void 0 ? u = -2 : (u = s.lastIndex - c[2].length, d = c[1], s = c[3] === void 0 ? zt : c[3] === '"' ? An : _n) : s === An || s === _n ? s = zt : s === $n || s === Sn ? s = pe : (s = zt, o = void 0);
303
- const f = s === zt && i[a + 1].startsWith("/>") ? " " : "";
304
- r += s === pe ? l + ur : u >= 0 ? (n.push(d), l.slice(0, u) + nn + l.slice(u) + Ct + f) : l + Ct + (u === -2 ? a : f);
301
+ let d, u, c = -1, p = 0;
302
+ for (; p < l.length && (s.lastIndex = p, u = s.exec(l), u !== null); ) p = s.lastIndex, s === fe ? u[1] === "!--" ? s = En : u[1] !== void 0 ? s = Sn : u[2] !== void 0 ? (Wn.test(u[2]) && (r = RegExp("</" + u[2], "g")), s = Zt) : u[3] !== void 0 && (s = Zt) : s === Zt ? u[0] === ">" ? (s = r ?? fe, c = -1) : u[1] === void 0 ? c = -2 : (c = s.lastIndex - u[2].length, d = u[1], s = u[3] === void 0 ? Zt : u[3] === '"' ? _n : An) : s === _n || s === An ? s = Zt : s === En || s === Sn ? s = fe : (s = Zt, r = void 0);
303
+ const f = s === Zt && i[a + 1].startsWith("/>") ? " " : "";
304
+ o += s === fe ? l + co : c >= 0 ? (n.push(d), l.slice(0, c) + nn + l.slice(c) + Ct + f) : l + Ct + (c === -2 ? a : f);
305
305
  }
306
- return [Gn(i, r + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
306
+ return [Gn(i, o + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
307
307
  };
308
- class Ce {
308
+ class Te {
309
309
  constructor({ strings: t, _$litType$: e }, n) {
310
- let o;
310
+ let r;
311
311
  this.parts = [];
312
- let r = 0, s = 0;
313
- const a = t.length - 1, l = this.parts, [d, c] = Jn(t, e);
314
- if (this.el = Ce.createElement(d, n), Wt.currentNode = this.el.content, e === 2 || e === 3) {
315
- const u = this.el.content.firstChild;
316
- u.replaceWith(...u.childNodes);
317
- }
318
- for (; (o = Wt.nextNode()) !== null && l.length < a; ) {
319
- if (o.nodeType === 1) {
320
- if (o.hasAttributes()) for (const u of o.getAttributeNames()) if (u.endsWith(nn)) {
321
- const p = c[s++], f = o.getAttribute(u).split(Ct), g = /([.?@])?(.*)/.exec(p);
322
- l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Qn : g[1] === "?" ? to : g[1] === "@" ? eo : Le }), o.removeAttribute(u);
323
- } else u.startsWith(Ct) && (l.push({ type: 6, index: r }), o.removeAttribute(u));
324
- if (Wn.test(o.tagName)) {
325
- const u = o.textContent.split(Ct), p = u.length - 1;
312
+ let o = 0, s = 0;
313
+ const a = t.length - 1, l = this.parts, [d, u] = Jn(t, e);
314
+ if (this.el = Te.createElement(d, n), Gt.currentNode = this.el.content, e === 2 || e === 3) {
315
+ const c = this.el.content.firstChild;
316
+ c.replaceWith(...c.childNodes);
317
+ }
318
+ for (; (r = Gt.nextNode()) !== null && l.length < a; ) {
319
+ if (r.nodeType === 1) {
320
+ if (r.hasAttributes()) for (const c of r.getAttributeNames()) if (c.endsWith(nn)) {
321
+ const p = u[s++], f = r.getAttribute(c).split(Ct), g = /([.?@])?(.*)/.exec(p);
322
+ l.push({ type: 1, index: o, name: g[2], strings: f, ctor: g[1] === "." ? Qn : g[1] === "?" ? tr : g[1] === "@" ? er : Re }), r.removeAttribute(c);
323
+ } else c.startsWith(Ct) && (l.push({ type: 6, index: o }), r.removeAttribute(c));
324
+ if (Wn.test(r.tagName)) {
325
+ const c = r.textContent.split(Ct), p = c.length - 1;
326
326
  if (p > 0) {
327
- o.textContent = Ge ? Ge.emptyScript : "";
328
- for (let f = 0; f < p; f++) o.append(u[f], _e()), Wt.nextNode(), l.push({ type: 2, index: ++r });
329
- o.append(u[p], _e());
327
+ r.textContent = Ge ? Ge.emptyScript : "";
328
+ for (let f = 0; f < p; f++) r.append(c[f], _e()), Gt.nextNode(), l.push({ type: 2, index: ++o });
329
+ r.append(c[p], _e());
330
330
  }
331
331
  }
332
- } else if (o.nodeType === 8) if (o.data === on) l.push({ type: 2, index: r });
332
+ } else if (r.nodeType === 8) if (r.data === rn) l.push({ type: 2, index: o });
333
333
  else {
334
- let u = -1;
335
- for (; (u = o.data.indexOf(Ct, u + 1)) !== -1; ) l.push({ type: 7, index: r }), u += Ct.length - 1;
334
+ let c = -1;
335
+ for (; (c = r.data.indexOf(Ct, c + 1)) !== -1; ) l.push({ type: 7, index: o }), c += Ct.length - 1;
336
336
  }
337
- r++;
337
+ o++;
338
338
  }
339
339
  }
340
340
  static createElement(t, e) {
341
- const n = Jt.createElement("template");
341
+ const n = Kt.createElement("template");
342
342
  return n.innerHTML = t, n;
343
343
  }
344
344
  }
345
- function Kt(i, t, e = i, n) {
345
+ function Qt(i, t, e = i, n) {
346
346
  var s, a;
347
347
  if (t === vt) return t;
348
- let o = n !== void 0 ? (s = e._$Co) == null ? void 0 : s[n] : e._$Cl;
349
- const r = Ae(t) ? void 0 : t._$litDirective$;
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(i), o._$AT(i, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = o : e._$Cl = o), o !== void 0 && (t = Kt(i, o._$AS(i, t.values), o, n)), t;
348
+ let r = n !== void 0 ? (s = e._$Co) == null ? void 0 : s[n] : e._$Cl;
349
+ const o = Ce(t) ? void 0 : t._$litDirective$;
350
+ return (r == null ? void 0 : r.constructor) !== o && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), o === void 0 ? r = void 0 : (r = new o(i), r._$AT(i, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = r : e._$Cl = r), r !== void 0 && (t = Qt(i, r._$AS(i, t.values), r, n)), t;
351
351
  }
352
352
  let Kn = class {
353
353
  constructor(t, e) {
@@ -360,30 +360,30 @@ let Kn = class {
360
360
  return this._$AM._$AU;
361
361
  }
362
362
  u(t) {
363
- const { el: { content: e }, parts: n } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ?? Jt).importNode(e, !0);
364
- Wt.currentNode = o;
365
- let r = Wt.nextNode(), s = 0, a = 0, l = n[0];
363
+ const { el: { content: e }, parts: n } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? Kt).importNode(e, !0);
364
+ Gt.currentNode = r;
365
+ let o = Gt.nextNode(), s = 0, a = 0, l = n[0];
366
366
  for (; l !== void 0; ) {
367
367
  if (s === l.index) {
368
368
  let d;
369
- l.type === 2 ? d = new ce(r, r.nextSibling, this, t) : l.type === 1 ? d = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (d = new io(r, this, t)), this._$AV.push(d), l = n[++a];
369
+ l.type === 2 ? d = new he(o, o.nextSibling, this, t) : l.type === 1 ? d = new l.ctor(o, l.name, l.strings, this, t) : l.type === 6 && (d = new ir(o, this, t)), this._$AV.push(d), l = n[++a];
370
370
  }
371
- s !== (l == null ? void 0 : l.index) && (r = Wt.nextNode(), s++);
371
+ s !== (l == null ? void 0 : l.index) && (o = Gt.nextNode(), s++);
372
372
  }
373
- return Wt.currentNode = Jt, o;
373
+ return Gt.currentNode = Kt, r;
374
374
  }
375
375
  p(t) {
376
376
  let e = 0;
377
377
  for (const n of this._$AV) n !== void 0 && (n.strings !== void 0 ? (n._$AI(t, n, e), e += n.strings.length - 2) : n._$AI(t[e])), e++;
378
378
  }
379
379
  };
380
- class ce {
380
+ class he {
381
381
  get _$AU() {
382
382
  var t;
383
383
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
384
384
  }
385
- constructor(t, e, n, o) {
386
- this.type = 2, this._$AH = O, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, this.options = o, this._$Cv = (o == null ? void 0 : o.isConnected) ?? !0;
385
+ constructor(t, e, n, r) {
386
+ this.type = 2, this._$AH = L, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
387
387
  }
388
388
  get parentNode() {
389
389
  let t = this._$AA.parentNode;
@@ -397,7 +397,7 @@ class ce {
397
397
  return this._$AB;
398
398
  }
399
399
  _$AI(t, e = this) {
400
- t = Kt(this, t, e), Ae(t) ? t === O || t == null || t === "" ? (this._$AH !== O && this._$AR(), this._$AH = O) : t !== this._$AH && t !== vt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Yn(t) ? this.k(t) : this._(t);
400
+ t = Qt(this, t, e), Ce(t) ? t === L || t == null || t === "" ? (this._$AH !== L && this._$AR(), this._$AH = L) : t !== this._$AH && t !== vt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Yn(t) ? this.k(t) : this._(t);
401
401
  }
402
402
  O(t) {
403
403
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -406,33 +406,33 @@ class ce {
406
406
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
407
407
  }
408
408
  _(t) {
409
- this._$AH !== O && Ae(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Jt.createTextNode(t)), this._$AH = t;
409
+ this._$AH !== L && Ce(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Kt.createTextNode(t)), this._$AH = t;
410
410
  }
411
411
  $(t) {
412
- var r;
413
- const { values: e, _$litType$: n } = t, o = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = Ce.createElement(Gn(n.h, n.h[0]), this.options)), n);
414
- if (((r = this._$AH) == null ? void 0 : r._$AD) === o) this._$AH.p(e);
412
+ var o;
413
+ const { values: e, _$litType$: n } = t, r = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = Te.createElement(Gn(n.h, n.h[0]), this.options)), n);
414
+ if (((o = this._$AH) == null ? void 0 : o._$AD) === r) this._$AH.p(e);
415
415
  else {
416
- const s = new Kn(o, this), a = s.u(this.options);
416
+ const s = new Kn(r, this), a = s.u(this.options);
417
417
  s.p(e), this.T(a), this._$AH = s;
418
418
  }
419
419
  }
420
420
  _$AC(t) {
421
421
  let e = Cn.get(t.strings);
422
- return e === void 0 && Cn.set(t.strings, e = new Ce(t)), e;
422
+ return e === void 0 && Cn.set(t.strings, e = new Te(t)), e;
423
423
  }
424
424
  k(t) {
425
- rn(this._$AH) || (this._$AH = [], this._$AR());
425
+ on(this._$AH) || (this._$AH = [], this._$AR());
426
426
  const e = this._$AH;
427
- let n, o = 0;
428
- for (const r of t) o === e.length ? e.push(n = new ce(this.O(_e()), this.O(_e()), this, this.options)) : n = e[o], n._$AI(r), o++;
429
- o < e.length && (this._$AR(n && n._$AB.nextSibling, o), e.length = o);
427
+ let n, r = 0;
428
+ for (const o of t) r === e.length ? e.push(n = new he(this.O(_e()), this.O(_e()), this, this.options)) : n = e[r], n._$AI(o), r++;
429
+ r < e.length && (this._$AR(n && n._$AB.nextSibling, r), e.length = r);
430
430
  }
431
431
  _$AR(t = this._$AA.nextSibling, e) {
432
432
  var n;
433
433
  for ((n = this._$AP) == null ? void 0 : n.call(this, !1, !0, e); t && t !== this._$AB; ) {
434
- const o = t.nextSibling;
435
- t.remove(), t = o;
434
+ const r = t.nextSibling;
435
+ t.remove(), t = r;
436
436
  }
437
437
  }
438
438
  setConnected(t) {
@@ -440,62 +440,62 @@ class ce {
440
440
  this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
441
441
  }
442
442
  }
443
- class Le {
443
+ class Re {
444
444
  get tagName() {
445
445
  return this.element.tagName;
446
446
  }
447
447
  get _$AU() {
448
448
  return this._$AM._$AU;
449
449
  }
450
- constructor(t, e, n, o, r) {
451
- this.type = 1, this._$AH = O, this._$AN = void 0, this.element = t, this.name = e, this._$AM = o, this.options = r, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = O;
450
+ constructor(t, e, n, r, o) {
451
+ this.type = 1, this._$AH = L, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = o, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = L;
452
452
  }
453
- _$AI(t, e = this, n, o) {
454
- const r = this.strings;
453
+ _$AI(t, e = this, n, r) {
454
+ const o = this.strings;
455
455
  let s = !1;
456
- if (r === void 0) t = Kt(this, t, e, 0), s = !Ae(t) || t !== this._$AH && t !== vt, s && (this._$AH = t);
456
+ if (o === void 0) t = Qt(this, t, e, 0), s = !Ce(t) || t !== this._$AH && t !== vt, s && (this._$AH = t);
457
457
  else {
458
458
  const a = t;
459
459
  let l, d;
460
- for (t = r[0], l = 0; l < r.length - 1; l++) d = Kt(this, a[n + l], e, l), d === vt && (d = this._$AH[l]), s || (s = !Ae(d) || d !== this._$AH[l]), d === O ? t = O : t !== O && (t += (d ?? "") + r[l + 1]), this._$AH[l] = d;
460
+ for (t = o[0], l = 0; l < o.length - 1; l++) d = Qt(this, a[n + l], e, l), d === vt && (d = this._$AH[l]), s || (s = !Ce(d) || d !== this._$AH[l]), d === L ? t = L : t !== L && (t += (d ?? "") + o[l + 1]), this._$AH[l] = d;
461
461
  }
462
- s && !o && this.j(t);
462
+ s && !r && this.j(t);
463
463
  }
464
464
  j(t) {
465
- t === O ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
465
+ t === L ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
466
466
  }
467
467
  }
468
- class Qn extends Le {
468
+ class Qn extends Re {
469
469
  constructor() {
470
470
  super(...arguments), this.type = 3;
471
471
  }
472
472
  j(t) {
473
- this.element[this.name] = t === O ? void 0 : t;
473
+ this.element[this.name] = t === L ? void 0 : t;
474
474
  }
475
475
  }
476
- class to extends Le {
476
+ class tr extends Re {
477
477
  constructor() {
478
478
  super(...arguments), this.type = 4;
479
479
  }
480
480
  j(t) {
481
- this.element.toggleAttribute(this.name, !!t && t !== O);
481
+ this.element.toggleAttribute(this.name, !!t && t !== L);
482
482
  }
483
483
  }
484
- class eo extends Le {
485
- constructor(t, e, n, o, r) {
486
- super(t, e, n, o, r), this.type = 5;
484
+ class er extends Re {
485
+ constructor(t, e, n, r, o) {
486
+ super(t, e, n, r, o), this.type = 5;
487
487
  }
488
488
  _$AI(t, e = this) {
489
- if ((t = Kt(this, t, e, 0) ?? O) === vt) return;
490
- const n = this._$AH, o = t === O && n !== O || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, r = t !== O && (n === O || o);
491
- o && this.element.removeEventListener(this.name, this, n), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
489
+ if ((t = Qt(this, t, e, 0) ?? L) === vt) return;
490
+ const n = this._$AH, r = t === L && n !== L || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, o = t !== L && (n === L || r);
491
+ r && this.element.removeEventListener(this.name, this, n), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
492
492
  }
493
493
  handleEvent(t) {
494
494
  var e;
495
495
  typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
496
496
  }
497
497
  }
498
- class io {
498
+ class ir {
499
499
  constructor(t, e, n) {
500
500
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = n;
501
501
  }
@@ -503,26 +503,26 @@ class io {
503
503
  return this._$AM._$AU;
504
504
  }
505
505
  _$AI(t) {
506
- Kt(this, t);
506
+ Qt(this, t);
507
507
  }
508
508
  }
509
- const hr = { M: nn, P: Ct, A: on, C: 1, L: Jn, R: Kn, D: Yn, V: Kt, I: ce, H: Le, N: to, U: eo, B: Qn, F: io }, Pi = ve.litHtmlPolyfillSupport;
510
- Pi == null || Pi(Ce, ce), (ve.litHtmlVersions ?? (ve.litHtmlVersions = [])).push("3.2.1");
511
- const pr = (i, t, e) => {
509
+ const ho = { M: nn, P: Ct, A: rn, C: 1, L: Jn, R: Kn, D: Yn, V: Qt, I: he, H: Re, N: tr, U: er, B: Qn, F: ir }, Pi = we.litHtmlPolyfillSupport;
510
+ Pi == null || Pi(Te, he), (we.litHtmlVersions ?? (we.litHtmlVersions = [])).push("3.2.1");
511
+ const po = (i, t, e) => {
512
512
  const n = (e == null ? void 0 : e.renderBefore) ?? t;
513
- let o = n._$litPart$;
514
- if (o === void 0) {
515
- const r = (e == null ? void 0 : e.renderBefore) ?? null;
516
- n._$litPart$ = o = new ce(t.insertBefore(_e(), r), r, void 0, e ?? {});
513
+ let r = n._$litPart$;
514
+ if (r === void 0) {
515
+ const o = (e == null ? void 0 : e.renderBefore) ?? null;
516
+ n._$litPart$ = r = new he(t.insertBefore(_e(), o), o, void 0, e ?? {});
517
517
  }
518
- return o._$AI(i), o;
518
+ return r._$AI(i), r;
519
519
  };
520
520
  /**
521
521
  * @license
522
522
  * Copyright 2017 Google LLC
523
523
  * SPDX-License-Identifier: BSD-3-Clause
524
524
  */
525
- let lt = class extends ie {
525
+ let lt = class extends ne {
526
526
  constructor() {
527
527
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
528
528
  }
@@ -533,7 +533,7 @@ let lt = class extends ie {
533
533
  }
534
534
  update(t) {
535
535
  const e = this.render();
536
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = pr(e, this.renderRoot, this.renderOptions);
536
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = po(e, this.renderRoot, this.renderOptions);
537
537
  }
538
538
  connectedCallback() {
539
539
  var t;
@@ -549,8 +549,8 @@ let lt = class extends ie {
549
549
  };
550
550
  var zn;
551
551
  lt._$litElement$ = !0, lt.finalized = !0, (zn = globalThis.litElementHydrateSupport) == null || zn.call(globalThis, { LitElement: lt });
552
- const Oi = globalThis.litElementPolyfillSupport;
553
- Oi == null || Oi({ LitElement: lt });
552
+ const Li = globalThis.litElementPolyfillSupport;
553
+ Li == null || Li({ LitElement: lt });
554
554
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
555
555
  /**
556
556
  * @license
@@ -565,7 +565,7 @@ function G(i, t, e) {
565
565
  * Copyright 2017 Google LLC
566
566
  * SPDX-License-Identifier: BSD-3-Clause
567
567
  */
568
- const Mt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, sn = (i) => (...t) => ({ _$litDirective$: i, values: t });
568
+ const It = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, sn = (i) => (...t) => ({ _$litDirective$: i, values: t });
569
569
  class an {
570
570
  constructor(t) {
571
571
  }
@@ -587,35 +587,35 @@ class an {
587
587
  * Copyright 2020 Google LLC
588
588
  * SPDX-License-Identifier: BSD-3-Clause
589
589
  */
590
- const { I: fr } = hr, gr = (i) => i.strings === void 0, Tn = () => document.createComment(""), fe = (i, t, e) => {
591
- var r;
592
- const n = i._$AA.parentNode, o = t === void 0 ? i._$AB : t._$AA;
590
+ const { I: fo } = ho, go = (i) => i.strings === void 0, Tn = () => document.createComment(""), ge = (i, t, e) => {
591
+ var o;
592
+ const n = i._$AA.parentNode, r = t === void 0 ? i._$AB : t._$AA;
593
593
  if (e === void 0) {
594
- const s = n.insertBefore(Tn(), o), a = n.insertBefore(Tn(), o);
595
- e = new fr(s, a, i, i.options);
594
+ const s = n.insertBefore(Tn(), r), a = n.insertBefore(Tn(), r);
595
+ e = new fo(s, a, i, i.options);
596
596
  } else {
597
597
  const s = e._$AB.nextSibling, a = e._$AM, l = a !== i;
598
598
  if (l) {
599
599
  let d;
600
- (r = e._$AQ) == null || r.call(e, i), e._$AM = i, e._$AP !== void 0 && (d = i._$AU) !== a._$AU && e._$AP(d);
600
+ (o = e._$AQ) == null || o.call(e, i), e._$AM = i, e._$AP !== void 0 && (d = i._$AU) !== a._$AU && e._$AP(d);
601
601
  }
602
- if (s !== o || l) {
602
+ if (s !== r || l) {
603
603
  let d = e._$AA;
604
604
  for (; d !== s; ) {
605
- const c = d.nextSibling;
606
- n.insertBefore(d, o), d = c;
605
+ const u = d.nextSibling;
606
+ n.insertBefore(d, r), d = u;
607
607
  }
608
608
  }
609
609
  }
610
610
  return e;
611
- }, Zt = (i, t, e = i) => (i._$AI(t, e), i), mr = {}, no = (i, t = mr) => i._$AH = t, yr = (i) => i._$AH, Li = (i) => {
611
+ }, qt = (i, t, e = i) => (i._$AI(t, e), i), mo = {}, nr = (i, t = mo) => i._$AH = t, yo = (i) => i._$AH, Oi = (i) => {
612
612
  var n;
613
613
  (n = i._$AP) == null || n.call(i, !1, !0);
614
614
  let t = i._$AA;
615
615
  const e = i._$AB.nextSibling;
616
616
  for (; t !== e; ) {
617
- const o = t.nextSibling;
618
- t.remove(), t = o;
617
+ const r = t.nextSibling;
618
+ t.remove(), t = r;
619
619
  }
620
620
  };
621
621
  /**
@@ -625,52 +625,52 @@ const { I: fr } = hr, gr = (i) => i.strings === void 0, Tn = () => document.crea
625
625
  */
626
626
  const Dn = (i, t, e) => {
627
627
  const n = /* @__PURE__ */ new Map();
628
- for (let o = t; o <= e; o++) n.set(i[o], o);
628
+ for (let r = t; r <= e; r++) n.set(i[r], r);
629
629
  return n;
630
- }, br = sn(class extends an {
630
+ }, bo = sn(class extends an {
631
631
  constructor(i) {
632
- if (super(i), i.type !== Mt.CHILD) throw Error("repeat() can only be used in text expressions");
632
+ if (super(i), i.type !== It.CHILD) throw Error("repeat() can only be used in text expressions");
633
633
  }
634
634
  dt(i, t, e) {
635
635
  let n;
636
636
  e === void 0 ? e = t : t !== void 0 && (n = t);
637
- const o = [], r = [];
637
+ const r = [], o = [];
638
638
  let s = 0;
639
- for (const a of i) o[s] = n ? n(a, s) : s, r[s] = e(a, s), s++;
640
- return { values: r, keys: o };
639
+ for (const a of i) r[s] = n ? n(a, s) : s, o[s] = e(a, s), s++;
640
+ return { values: o, keys: r };
641
641
  }
642
642
  render(i, t, e) {
643
643
  return this.dt(i, t, e).values;
644
644
  }
645
645
  update(i, [t, e, n]) {
646
- const o = yr(i), { values: r, keys: s } = this.dt(t, e, n);
647
- if (!Array.isArray(o)) return this.ut = s, r;
646
+ const r = yo(i), { values: o, keys: s } = this.dt(t, e, n);
647
+ if (!Array.isArray(r)) return this.ut = s, o;
648
648
  const a = this.ut ?? (this.ut = []), l = [];
649
- let d, c, u = 0, p = o.length - 1, f = 0, g = r.length - 1;
650
- for (; u <= p && f <= g; ) if (o[u] === null) u++;
651
- else if (o[p] === null) p--;
652
- else if (a[u] === s[f]) l[f] = Zt(o[u], r[f]), u++, f++;
653
- else if (a[p] === s[g]) l[g] = Zt(o[p], r[g]), p--, g--;
654
- else if (a[u] === s[g]) l[g] = Zt(o[u], r[g]), fe(i, l[g + 1], o[u]), u++, g--;
655
- else if (a[p] === s[f]) l[f] = Zt(o[p], r[f]), fe(i, o[u], o[p]), p--, f++;
656
- else if (d === void 0 && (d = Dn(s, f, g), c = Dn(a, u, p)), d.has(a[u])) if (d.has(a[p])) {
657
- const b = c.get(s[f]), N = b !== void 0 ? o[b] : null;
649
+ let d, u, c = 0, p = r.length - 1, f = 0, g = o.length - 1;
650
+ for (; c <= p && f <= g; ) if (r[c] === null) c++;
651
+ else if (r[p] === null) p--;
652
+ else if (a[c] === s[f]) l[f] = qt(r[c], o[f]), c++, f++;
653
+ else if (a[p] === s[g]) l[g] = qt(r[p], o[g]), p--, g--;
654
+ else if (a[c] === s[g]) l[g] = qt(r[c], o[g]), ge(i, l[g + 1], r[c]), c++, g--;
655
+ else if (a[p] === s[f]) l[f] = qt(r[p], o[f]), ge(i, r[c], r[p]), p--, f++;
656
+ else if (d === void 0 && (d = Dn(s, f, g), u = Dn(a, c, p)), d.has(a[c])) if (d.has(a[p])) {
657
+ const b = u.get(s[f]), N = b !== void 0 ? r[b] : null;
658
658
  if (N === null) {
659
- const J = fe(i, o[u]);
660
- Zt(J, r[f]), l[f] = J;
661
- } else l[f] = Zt(N, r[f]), fe(i, o[u], N), o[b] = null;
659
+ const J = ge(i, r[c]);
660
+ qt(J, o[f]), l[f] = J;
661
+ } else l[f] = qt(N, o[f]), ge(i, r[c], N), r[b] = null;
662
662
  f++;
663
- } else Li(o[p]), p--;
664
- else Li(o[u]), u++;
663
+ } else Oi(r[p]), p--;
664
+ else Oi(r[c]), c++;
665
665
  for (; f <= g; ) {
666
- const b = fe(i, l[g + 1]);
667
- Zt(b, r[f]), l[f++] = b;
666
+ const b = ge(i, l[g + 1]);
667
+ qt(b, o[f]), l[f++] = b;
668
668
  }
669
- for (; u <= p; ) {
670
- const b = o[u++];
671
- b !== null && Li(b);
669
+ for (; c <= p; ) {
670
+ const b = r[c++];
671
+ b !== null && Oi(b);
672
672
  }
673
- return this.ut = s, no(i, l), vt;
673
+ return this.ut = s, nr(i, l), vt;
674
674
  }
675
675
  });
676
676
  /**
@@ -679,8 +679,8 @@ const Dn = (i, t, e) => {
679
679
  * @license BSD-2-Clause
680
680
  * @preserve
681
681
  */
682
- var S = (i) => i !== void 0, oo = (i, t, e) => t in i ? i[t] : i[t] = e;
683
- const Te = {
682
+ var S = (i) => i !== void 0, rr = (i, t, e) => t in i ? i[t] : i[t] = e;
683
+ const De = {
684
684
  ELEMENT: 1,
685
685
  ATTRIBUTE: 2,
686
686
  TEXT: 3,
@@ -694,7 +694,7 @@ const Te = {
694
694
  DOCUMENT_FRAGMENT: 11,
695
695
  NOTATION: 12
696
696
  };
697
- class vr {
697
+ class vo {
698
698
  /**
699
699
  * XML DOM parser
700
700
  * @constructor
@@ -723,72 +723,72 @@ class vr {
723
723
  }
724
724
  }
725
725
  function Si(i, t) {
726
- return ro(i, t, []).join("");
726
+ return or(i, t, []).join("");
727
727
  }
728
- function ro(i, t, e) {
729
- if (i.nodeType === Te.CDATA_SECTION || i.nodeType === Te.TEXT)
728
+ function or(i, t, e) {
729
+ if (i.nodeType === De.CDATA_SECTION || i.nodeType === De.TEXT)
730
730
  t ? e.push(String(i.nodeValue).replace(/(\r\n|\r|\n)/g, "")) : e.push(i.nodeValue);
731
731
  else {
732
732
  var n;
733
733
  for (n = i.firstChild; n; n = n.nextSibling)
734
- ro(n, t, e);
734
+ or(n, t, e);
735
735
  }
736
736
  return e;
737
737
  }
738
- function wr(i, t, e, n) {
739
- for (var o = xr(t); o; o = Er(o)) {
740
- var r = o.namespaceURI || null, s = i[r];
738
+ function wo(i, t, e, n) {
739
+ for (var r = xo(t); r; r = $o(r)) {
740
+ var o = r.namespaceURI || null, s = i[o];
741
741
  if (S(s)) {
742
- var a = s[o.localName];
743
- S(a) && a.call(n, o, e);
742
+ var a = s[r.localName];
743
+ S(a) && a.call(n, r, e);
744
744
  }
745
745
  }
746
746
  }
747
- function xr(i) {
747
+ function xo(i) {
748
748
  let t = i.firstElementChild || i.firstChild;
749
- for (; t && t.nodeType !== Te.ELEMENT; )
749
+ for (; t && t.nodeType !== De.ELEMENT; )
750
750
  t = t.nextSibling;
751
751
  return t;
752
752
  }
753
- function Er(i) {
753
+ function $o(i) {
754
754
  let t = i.nextElementSibling || i.nextSibling;
755
- for (; t && t.nodeType !== Te.ELEMENT; )
755
+ for (; t && t.nodeType !== De.ELEMENT; )
756
756
  t = t.nextSibling;
757
757
  return t;
758
758
  }
759
759
  function nt(i, t, e) {
760
760
  return (
761
761
  /** @type {Object.<string, Object.<string, XMLParser.Parser>>} */
762
- $r(i, t, e)
762
+ Eo(i, t, e)
763
763
  );
764
764
  }
765
- function $r(i, t, e) {
766
- var n = S(e) ? e : {}, o, r;
767
- for (o = 0, r = i.length; o < r; ++o)
768
- n[i[o]] = t;
765
+ function Eo(i, t, e) {
766
+ var n = S(e) ? e : {}, r, o;
767
+ for (r = 0, o = i.length; r < o; ++r)
768
+ n[i[r]] = t;
769
769
  return n;
770
770
  }
771
- function so(i, t) {
771
+ function sr(i, t) {
772
772
  return (
773
773
  /**
774
774
  * @param {Node} node Node.
775
775
  * @param {Array.<*>} objectStack Object stack.
776
776
  */
777
777
  function(e, n) {
778
- var o = i.call(
778
+ var r = i.call(
779
779
  S(t) ? t : this,
780
780
  e,
781
781
  n
782
782
  );
783
- if (S(o)) {
784
- var r = n[n.length - 1];
785
- r.push(o);
783
+ if (S(r)) {
784
+ var o = n[n.length - 1];
785
+ o.push(r);
786
786
  }
787
787
  }
788
788
  );
789
789
  }
790
- function Q(i, t, e, n, o) {
791
- return n.push(i), wr(t, e, n, o), n.pop();
790
+ function Q(i, t, e, n, r) {
791
+ return n.push(i), wo(t, e, n, r), n.pop();
792
792
  }
793
793
  function y(i, t, e) {
794
794
  return (
@@ -796,18 +796,18 @@ function y(i, t, e) {
796
796
  * @param {Node} node Node.
797
797
  * @param {Array.<*>} objectStack Object stack.
798
798
  */
799
- function(n, o) {
800
- let r = i.call(
799
+ function(n, r) {
800
+ let o = i.call(
801
801
  S(e) ? e : this,
802
802
  n,
803
- o
803
+ r
804
804
  );
805
- if (S(r)) {
805
+ if (S(o)) {
806
806
  var s = (
807
807
  /** @type {Object} */
808
- o[o.length - 1]
808
+ r[r.length - 1]
809
809
  ), a = S(t) ? t : n.localName;
810
- s[a] = r;
810
+ s[a] = o;
811
811
  }
812
812
  }
813
813
  );
@@ -818,32 +818,32 @@ function pt(i, t, e) {
818
818
  * @param {Node} node Node.
819
819
  * @param {Array.<*>} objectStack Object stack.
820
820
  */
821
- function(n, o) {
822
- var r = i.call(
821
+ function(n, r) {
822
+ var o = i.call(
823
823
  S(e) ? e : this,
824
824
  n,
825
- o
825
+ r
826
826
  );
827
- if (S(r)) {
827
+ if (S(o)) {
828
828
  var s = (
829
829
  /** @type {Object} */
830
- o[o.length - 1]
831
- ), a = S(t) ? t : n.localName, l = oo(s, a, []);
832
- l.push(r);
830
+ r[r.length - 1]
831
+ ), a = S(t) ? t : n.localName, l = rr(s, a, []);
832
+ l.push(o);
833
833
  }
834
834
  }
835
835
  );
836
836
  }
837
- const Sr = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
838
- function _r(i) {
839
- return i.replace(Sr, "");
837
+ const So = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
838
+ function Ao(i) {
839
+ return i.replace(So, "");
840
840
  }
841
- function Gt(i) {
841
+ function Jt(i) {
842
842
  const t = /^\s*(true|1)|(false|0)\s*$/.exec(i);
843
843
  if (t)
844
844
  return S(t[1]) || !1;
845
845
  }
846
- function re(i) {
846
+ function se(i) {
847
847
  return Tt(Si(i, !1));
848
848
  }
849
849
  function Tt(i) {
@@ -860,16 +860,16 @@ function Je(i) {
860
860
  return parseInt(t[1], 10);
861
861
  }
862
862
  function D(i) {
863
- return _r(Si(i, !1));
863
+ return Ao(Si(i, !1));
864
864
  }
865
- const Ar = "http://www.w3.org/1999/xlink";
865
+ const _o = "http://www.w3.org/1999/xlink";
866
866
  function ln(i) {
867
- return i.getAttributeNS(Ar, "href");
867
+ return i.getAttributeNS(_o, "href");
868
868
  }
869
- function Cr(i, t) {
869
+ function Co(i, t) {
870
870
  return Q({}, ts, i, t);
871
871
  }
872
- function ao(i) {
872
+ function ar(i) {
873
873
  return [
874
874
  Tt(i.getAttribute("minx")),
875
875
  Tt(i.getAttribute("miny")),
@@ -877,8 +877,8 @@ function ao(i) {
877
877
  Tt(i.getAttribute("maxy"))
878
878
  ];
879
879
  }
880
- function Tr(i, t) {
881
- const e = ao(i), n = [
880
+ function To(i, t) {
881
+ const e = ar(i), n = [
882
882
  Tt(i.getAttribute("resx")),
883
883
  Tt(i.getAttribute("resy"))
884
884
  ];
@@ -888,16 +888,16 @@ function Tr(i, t) {
888
888
  res: n
889
889
  };
890
890
  }
891
- function Dr(i, t) {
892
- const e = ao(i);
891
+ function Do(i, t) {
892
+ const e = ar(i);
893
893
  if (!(!S(e[0]) || !S(e[1]) || !S(e[2]) || !S(e[3])))
894
894
  return e;
895
895
  }
896
- function Pr(i, t) {
896
+ function Po(i, t) {
897
897
  const e = parseFloat(i.getAttribute("min")), n = parseFloat(i.getAttribute("max"));
898
898
  return { min: e, max: n };
899
899
  }
900
- function Or(i, t) {
900
+ function Lo(i, t) {
901
901
  const e = Q(
902
902
  {},
903
903
  es,
@@ -908,74 +908,74 @@ function Or(i, t) {
908
908
  const n = (
909
909
  /** @type {number|undefined} */
910
910
  e.westBoundLongitude
911
- ), o = (
911
+ ), r = (
912
912
  /** @type {number|undefined} */
913
913
  e.southBoundLatitude
914
- ), r = (
914
+ ), o = (
915
915
  /** @type {number|undefined} */
916
916
  e.eastBoundLongitude
917
917
  ), s = (
918
918
  /** @type {number|undefined} */
919
919
  e.northBoundLatitude
920
920
  );
921
- if (!(!S(n) || !S(o) || !S(r) || !S(s)))
921
+ if (!(!S(n) || !S(r) || !S(o) || !S(s)))
922
922
  return [
923
923
  n,
924
- o,
925
924
  r,
925
+ o,
926
926
  s
927
927
  ];
928
928
  }
929
- function Lr(i, t) {
930
- return Q({}, Yr, i, t);
929
+ function Oo(i, t) {
930
+ return Q({}, Yo, i, t);
931
931
  }
932
- function Rr(i, t) {
933
- return Q({}, Wr, i, t);
932
+ function Ro(i, t) {
933
+ return Q({}, Wo, i, t);
934
934
  }
935
- function Mr(i, t) {
935
+ function Mo(i, t) {
936
936
  return Q(
937
937
  {},
938
- Gr,
938
+ Go,
939
939
  i,
940
940
  t
941
941
  );
942
942
  }
943
- function Ir(i, t) {
943
+ function Io(i, t) {
944
944
  return Q(
945
945
  {},
946
- Jr,
946
+ Jo,
947
947
  i,
948
948
  t
949
949
  );
950
950
  }
951
- function Nr(i, t) {
951
+ function No(i, t) {
952
952
  return Q(
953
953
  {},
954
- Kr,
954
+ Ko,
955
955
  i,
956
956
  t
957
957
  );
958
958
  }
959
- function Hr(i, t) {
959
+ function Ho(i, t) {
960
960
  return Q(
961
961
  [],
962
- Qr,
962
+ Qo,
963
963
  i,
964
964
  t
965
965
  );
966
966
  }
967
- function Vr(i, t) {
968
- const e = Gt(i.getAttribute("queryable"));
967
+ function ko(i, t) {
968
+ const e = Jt(i.getAttribute("queryable"));
969
969
  return Q(
970
970
  {
971
971
  queryable: S(e) ? e : !1
972
972
  },
973
- co,
973
+ cr,
974
974
  i,
975
975
  t
976
976
  );
977
977
  }
978
- function Br(i, t) {
978
+ function Vo(i, t) {
979
979
  var e = (
980
980
  /** @type {Object.<string,*>} */
981
981
  t[t.length - 1]
@@ -984,33 +984,33 @@ function Br(i, t) {
984
984
  /** @type {Object.<string,*>} */
985
985
  Q(
986
986
  {},
987
- co,
987
+ cr,
988
988
  i,
989
989
  t
990
990
  )
991
991
  );
992
992
  if (!S(n)) return;
993
- let o = Gt(i.getAttribute("queryable"));
994
- S(o) || (o = e.queryable), n.queryable = S(o) ? o : !1;
995
- let r = Je(i.getAttribute("cascaded"));
996
- S(r) || (r = e.cascaded), n.cascaded = r;
997
- let s = Gt(i.getAttribute("opaque"));
993
+ let r = Jt(i.getAttribute("queryable"));
994
+ S(r) || (r = e.queryable), n.queryable = S(r) ? r : !1;
995
+ let o = Je(i.getAttribute("cascaded"));
996
+ S(o) || (o = e.cascaded), n.cascaded = o;
997
+ let s = Jt(i.getAttribute("opaque"));
998
998
  S(s) || (s = e.opaque), n.opaque = S(s) ? s : !1;
999
- let a = Gt(i.getAttribute("noSubsets"));
999
+ let a = Jt(i.getAttribute("noSubsets"));
1000
1000
  S(a) || (a = e.noSubsets), n.noSubsets = S(a) ? a : !1;
1001
1001
  let l = Tt(i.getAttribute("fixedWidth"));
1002
1002
  S(l) || (l = e.fixedWidth), n.fixedWidth = l;
1003
1003
  let d = Tt(i.getAttribute("fixedHeight"));
1004
1004
  S(d) || (d = e.fixedHeight), n.fixedHeight = d;
1005
- const c = ["Style", "CRS", "AuthorityURL"];
1006
- for (let p = 0, f = c.length; p < f; p++) {
1007
- const g = c[p], b = e[g];
1005
+ const u = ["Style", "CRS", "AuthorityURL"];
1006
+ for (let p = 0, f = u.length; p < f; p++) {
1007
+ const g = u[p], b = e[g];
1008
1008
  if (S(b)) {
1009
- let N = oo(n, g, []);
1009
+ let N = rr(n, g, []);
1010
1010
  N = N.concat(b), n[g] = N;
1011
1011
  }
1012
1012
  }
1013
- const u = [
1013
+ const c = [
1014
1014
  "EX_GeographicBoundingBox",
1015
1015
  "BoundingBox",
1016
1016
  "Dimension",
@@ -1018,8 +1018,8 @@ function Br(i, t) {
1018
1018
  "MinScaleDenominator",
1019
1019
  "MaxScaleDenominator"
1020
1020
  ];
1021
- for (let p = 0, f = u.length; p < f; p++) {
1022
- const g = u[p], b = n[g];
1021
+ for (let p = 0, f = c.length; p < f; p++) {
1022
+ const g = c[p], b = n[g];
1023
1023
  if (!S(b)) {
1024
1024
  const N = e[g];
1025
1025
  n[g] = N;
@@ -1027,15 +1027,15 @@ function Br(i, t) {
1027
1027
  }
1028
1028
  return n;
1029
1029
  }
1030
- function kr(i, t) {
1030
+ function Bo(i, t) {
1031
1031
  return {
1032
1032
  name: i.getAttribute("name"),
1033
1033
  units: i.getAttribute("units"),
1034
1034
  unitSymbol: i.getAttribute("unitSymbol"),
1035
1035
  default: i.getAttribute("default"),
1036
- multipleValues: Gt(i.getAttribute("multipleValues")),
1037
- nearestValue: Gt(i.getAttribute("nearestValue")),
1038
- current: Gt(i.getAttribute("current")),
1036
+ multipleValues: Jt(i.getAttribute("multipleValues")),
1037
+ nearestValue: Jt(i.getAttribute("nearestValue")),
1038
+ current: Jt(i.getAttribute("current")),
1039
1039
  values: D(i)
1040
1040
  };
1041
1041
  }
@@ -1047,19 +1047,19 @@ function Pt(i, t) {
1047
1047
  t
1048
1048
  );
1049
1049
  }
1050
- function Ur(i, t) {
1050
+ function Uo(i, t) {
1051
1051
  return Q({}, is, i, t);
1052
1052
  }
1053
- function Fr(i, t) {
1054
- return Q({}, os, i, t);
1055
- }
1056
- function jr(i, t) {
1053
+ function Fo(i, t) {
1057
1054
  return Q({}, rs, i, t);
1058
1055
  }
1056
+ function jo(i, t) {
1057
+ return Q({}, os, i, t);
1058
+ }
1059
1059
  function Mi(i, t) {
1060
1060
  return Q({}, ns, i, t);
1061
1061
  }
1062
- function lo(i, t) {
1062
+ function lr(i, t) {
1063
1063
  var e = Pt(i, t);
1064
1064
  if (S(e)) {
1065
1065
  const n = [
@@ -1069,20 +1069,20 @@ function lo(i, t) {
1069
1069
  return e.size = n, e;
1070
1070
  }
1071
1071
  }
1072
- function zr(i, t) {
1072
+ function zo(i, t) {
1073
1073
  var e = Pt(i, t);
1074
1074
  if (S(e))
1075
1075
  return e.name = i.getAttribute("name"), e;
1076
1076
  }
1077
- function Zr(i, t) {
1077
+ function Zo(i, t) {
1078
1078
  var e = Pt(i, t);
1079
1079
  if (S(e))
1080
1080
  return e.type = i.getAttribute("type"), e;
1081
1081
  }
1082
- function qr(i, t) {
1082
+ function qo(i, t) {
1083
1083
  return Q({}, ss, i, t);
1084
1084
  }
1085
- function uo(i, t) {
1085
+ function dr(i, t) {
1086
1086
  return Q(
1087
1087
  [],
1088
1088
  ls,
@@ -1090,55 +1090,55 @@ function uo(i, t) {
1090
1090
  t
1091
1091
  );
1092
1092
  }
1093
- const ot = [
1093
+ const rt = [
1094
1094
  null,
1095
1095
  "http://www.opengis.net/wms"
1096
- ], Xr = nt(
1097
- ot,
1096
+ ], Xo = nt(
1097
+ rt,
1098
1098
  {
1099
- Service: y(Rr),
1100
- Capability: y(Lr)
1099
+ Service: y(Ro),
1100
+ Capability: y(Oo)
1101
1101
  }
1102
- ), Yr = nt(
1103
- ot,
1102
+ ), Yo = nt(
1103
+ rt,
1104
1104
  {
1105
- Request: y(Ur),
1106
- Exception: y(Hr),
1107
- Layer: y(Vr)
1105
+ Request: y(Uo),
1106
+ Exception: y(Ho),
1107
+ Layer: y(ko)
1108
1108
  }
1109
- ), Wr = nt(
1110
- ot,
1109
+ ), Wo = nt(
1110
+ rt,
1111
1111
  {
1112
1112
  Name: y(D),
1113
1113
  Title: y(D),
1114
1114
  Abstract: y(D),
1115
- KeywordList: y(uo),
1115
+ KeywordList: y(dr),
1116
1116
  OnlineResource: y(ln),
1117
- ContactInformation: y(Mr),
1117
+ ContactInformation: y(Mo),
1118
1118
  Fees: y(D),
1119
1119
  AccessConstraints: y(D),
1120
1120
  LayerLimit: y(Ri),
1121
1121
  MaxWidth: y(Ri),
1122
1122
  MaxHeight: y(Ri)
1123
1123
  }
1124
- ), Gr = nt(
1125
- ot,
1124
+ ), Go = nt(
1125
+ rt,
1126
1126
  {
1127
- ContactPersonPrimary: y(Ir),
1127
+ ContactPersonPrimary: y(Io),
1128
1128
  ContactPosition: y(D),
1129
- ContactAddress: y(Nr),
1129
+ ContactAddress: y(No),
1130
1130
  ContactVoiceTelephone: y(D),
1131
1131
  ContactFacsimileTelephone: y(D),
1132
1132
  ContactElectronicMailAddress: y(D)
1133
1133
  }
1134
- ), Jr = nt(
1135
- ot,
1134
+ ), Jo = nt(
1135
+ rt,
1136
1136
  {
1137
1137
  ContactPerson: y(D),
1138
1138
  ContactOrganization: y(D)
1139
1139
  }
1140
- ), Kr = nt(
1141
- ot,
1140
+ ), Ko = nt(
1141
+ rt,
1142
1142
  {
1143
1143
  AddressType: y(D),
1144
1144
  Address: y(D),
@@ -1147,50 +1147,50 @@ const ot = [
1147
1147
  PostCode: y(D),
1148
1148
  Country: y(D)
1149
1149
  }
1150
- ), Qr = nt(
1151
- ot,
1150
+ ), Qo = nt(
1151
+ rt,
1152
1152
  {
1153
- Format: so(D)
1153
+ Format: sr(D)
1154
1154
  }
1155
- ), co = nt(
1156
- ot,
1155
+ ), cr = nt(
1156
+ rt,
1157
1157
  {
1158
1158
  Name: y(D),
1159
1159
  Title: y(D),
1160
1160
  Abstract: y(D),
1161
- KeywordList: y(uo),
1161
+ KeywordList: y(dr),
1162
1162
  CRS: pt(D),
1163
1163
  SRS: pt(D),
1164
- EX_GeographicBoundingBox: y(Or),
1165
- LatLonBoundingBox: y(Dr),
1166
- BoundingBox: pt(Tr),
1167
- Dimension: pt(kr),
1168
- Attribution: y(Cr),
1169
- AuthorityURL: pt(zr),
1164
+ EX_GeographicBoundingBox: y(Lo),
1165
+ LatLonBoundingBox: y(Do),
1166
+ BoundingBox: pt(To),
1167
+ Dimension: pt(Bo),
1168
+ Attribution: y(Co),
1169
+ AuthorityURL: pt(zo),
1170
1170
  Identifier: pt(D),
1171
- MetadataURL: pt(Zr),
1171
+ MetadataURL: pt(Zo),
1172
1172
  DataURL: pt(Pt),
1173
1173
  FeatureListURL: pt(Pt),
1174
- Style: pt(qr),
1175
- MinScaleDenominator: y(re),
1176
- MaxScaleDenominator: y(re),
1177
- ScaleHint: y(Pr),
1178
- Layer: pt(Br)
1174
+ Style: pt(qo),
1175
+ MinScaleDenominator: y(se),
1176
+ MaxScaleDenominator: y(se),
1177
+ ScaleHint: y(Po),
1178
+ Layer: pt(Vo)
1179
1179
  }
1180
1180
  ), ts = nt(
1181
- ot,
1181
+ rt,
1182
1182
  {
1183
1183
  Title: y(D),
1184
1184
  OnlineResource: y(ln),
1185
- LogoURL: y(lo)
1185
+ LogoURL: y(lr)
1186
1186
  }
1187
- ), es = nt(ot, {
1188
- westBoundLongitude: y(re),
1189
- eastBoundLongitude: y(re),
1190
- southBoundLatitude: y(re),
1191
- northBoundLatitude: y(re)
1187
+ ), es = nt(rt, {
1188
+ westBoundLongitude: y(se),
1189
+ eastBoundLongitude: y(se),
1190
+ southBoundLatitude: y(se),
1191
+ northBoundLatitude: y(se)
1192
1192
  }), is = nt(
1193
- ot,
1193
+ rt,
1194
1194
  {
1195
1195
  GetCapabilities: y(
1196
1196
  Mi
@@ -1203,22 +1203,22 @@ const ot = [
1203
1203
  )
1204
1204
  }
1205
1205
  ), ns = nt(
1206
- ot,
1206
+ rt,
1207
1207
  {
1208
1208
  Format: pt(D),
1209
1209
  DCPType: pt(
1210
- Fr
1210
+ Fo
1211
1211
  )
1212
1212
  }
1213
- ), os = nt(
1214
- ot,
1213
+ ), rs = nt(
1214
+ rt,
1215
1215
  {
1216
1216
  HTTP: y(
1217
- jr
1217
+ jo
1218
1218
  )
1219
1219
  }
1220
- ), rs = nt(
1221
- ot,
1220
+ ), os = nt(
1221
+ rt,
1222
1222
  {
1223
1223
  Get: y(
1224
1224
  Pt
@@ -1228,25 +1228,25 @@ const ot = [
1228
1228
  )
1229
1229
  }
1230
1230
  ), ss = nt(
1231
- ot,
1231
+ rt,
1232
1232
  {
1233
1233
  Name: y(D),
1234
1234
  Title: y(D),
1235
1235
  Abstract: y(D),
1236
- LegendURL: pt(lo),
1236
+ LegendURL: pt(lr),
1237
1237
  StyleSheetURL: y(Pt),
1238
1238
  StyleURL: y(Pt)
1239
1239
  }
1240
1240
  ), as = nt(
1241
- ot,
1241
+ rt,
1242
1242
  {
1243
1243
  Format: y(D),
1244
1244
  OnlineResource: y(ln)
1245
1245
  }
1246
1246
  ), ls = nt(
1247
- ot,
1247
+ rt,
1248
1248
  {
1249
- Keyword: so(D)
1249
+ Keyword: sr(D)
1250
1250
  }
1251
1251
  );
1252
1252
  class ds {
@@ -1257,7 +1257,7 @@ class ds {
1257
1257
  * @constructor
1258
1258
  */
1259
1259
  constructor(t, e) {
1260
- !e && typeof window < "u" && (e = window.DOMParser), this.version = void 0, this._parser = new vr(e), this._data = t;
1260
+ !e && typeof window < "u" && (e = window.DOMParser), this.version = void 0, this._parser = new vo(e), this._data = t;
1261
1261
  }
1262
1262
  /**
1263
1263
  * @param {String} xmlString
@@ -1286,7 +1286,7 @@ class ds {
1286
1286
  */
1287
1287
  readFromDocument(t) {
1288
1288
  for (let e = t.firstChild; e; e = e.nextSibling)
1289
- if (e.nodeType == Te.ELEMENT)
1289
+ if (e.nodeType == De.ELEMENT)
1290
1290
  return this.readFromNode(e);
1291
1291
  return null;
1292
1292
  }
@@ -1297,29 +1297,29 @@ class ds {
1297
1297
  readFromNode(t) {
1298
1298
  return this.version = t.getAttribute("version"), Q({
1299
1299
  version: this.version
1300
- }, Xr, t, []) || null;
1300
+ }, Xo, t, []) || null;
1301
1301
  }
1302
1302
  }
1303
- async function us(i) {
1303
+ async function cs(i) {
1304
1304
  let t = new URL(i), e = t.searchParams;
1305
1305
  e.set("SERVICE", "WMS"), e.set("REQUEST", "GetCapabilities");
1306
1306
  let n = t.toString();
1307
- const o = await fetch(n);
1308
- if (o.ok) {
1309
- const r = await o.text();
1310
- return new ds(r).toJSON();
1307
+ const r = await fetch(n);
1308
+ if (r.ok) {
1309
+ const o = await r.text();
1310
+ return new ds(o).toJSON();
1311
1311
  } else
1312
- throw new Error(`Error: ${o.status}`);
1312
+ throw new Error(`Error: ${r.status}`);
1313
1313
  }
1314
1314
  function dn(i) {
1315
1315
  const t = /\b(?:wms|ows)\b/i, e = /{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;
1316
1316
  return t.test(i) ? "TileWMS" : e.test(i) ? "XYZ" : !1;
1317
1317
  }
1318
- function cs(i) {
1318
+ function us(i) {
1319
1319
  const e = /^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(i), n = dn(i);
1320
1320
  return !!(i && e && n);
1321
1321
  }
1322
- function ho(i) {
1322
+ function ur(i) {
1323
1323
  return i.replace(
1324
1324
  /(['"])?([a-zA-Z0-9_]+)(['"])?:/g,
1325
1325
  '"$2": '
@@ -1327,7 +1327,7 @@ function ho(i) {
1327
1327
  }
1328
1328
  function hs(i) {
1329
1329
  try {
1330
- return JSON.parse(ho(i)), !!i;
1330
+ return JSON.parse(ur(i)), !!i;
1331
1331
  } catch {
1332
1332
  return !1;
1333
1333
  }
@@ -1339,8 +1339,8 @@ function ps(i, t) {
1339
1339
  e.set(l, a[l]);
1340
1340
  }) : e.set(s, a);
1341
1341
  });
1342
- const n = i.split("?")[0], o = e.toString();
1343
- return `${n}?${o}`;
1342
+ const n = i.split("?")[0], r = e.toString();
1343
+ return `${n}?${r}`;
1344
1344
  }
1345
1345
  /**!
1346
1346
  * Sortable 1.15.6
@@ -1352,8 +1352,8 @@ function Pn(i, t) {
1352
1352
  var e = Object.keys(i);
1353
1353
  if (Object.getOwnPropertySymbols) {
1354
1354
  var n = Object.getOwnPropertySymbols(i);
1355
- t && (n = n.filter(function(o) {
1356
- return Object.getOwnPropertyDescriptor(i, o).enumerable;
1355
+ t && (n = n.filter(function(r) {
1356
+ return Object.getOwnPropertyDescriptor(i, r).enumerable;
1357
1357
  })), e.push.apply(e, n);
1358
1358
  }
1359
1359
  return e;
@@ -1385,30 +1385,30 @@ function fs(i, t, e) {
1385
1385
  writable: !0
1386
1386
  }) : i[t] = e, i;
1387
1387
  }
1388
- function Ot() {
1389
- return Ot = Object.assign || function(i) {
1388
+ function Lt() {
1389
+ return Lt = Object.assign || function(i) {
1390
1390
  for (var t = 1; t < arguments.length; t++) {
1391
1391
  var e = arguments[t];
1392
1392
  for (var n in e)
1393
1393
  Object.prototype.hasOwnProperty.call(e, n) && (i[n] = e[n]);
1394
1394
  }
1395
1395
  return i;
1396
- }, Ot.apply(this, arguments);
1396
+ }, Lt.apply(this, arguments);
1397
1397
  }
1398
1398
  function gs(i, t) {
1399
1399
  if (i == null) return {};
1400
- var e = {}, n = Object.keys(i), o, r;
1401
- for (r = 0; r < n.length; r++)
1402
- o = n[r], !(t.indexOf(o) >= 0) && (e[o] = i[o]);
1400
+ var e = {}, n = Object.keys(i), r, o;
1401
+ for (o = 0; o < n.length; o++)
1402
+ r = n[o], !(t.indexOf(r) >= 0) && (e[r] = i[r]);
1403
1403
  return e;
1404
1404
  }
1405
1405
  function ms(i, t) {
1406
1406
  if (i == null) return {};
1407
- var e = gs(i, t), n, o;
1407
+ var e = gs(i, t), n, r;
1408
1408
  if (Object.getOwnPropertySymbols) {
1409
- var r = Object.getOwnPropertySymbols(i);
1410
- for (o = 0; o < r.length; o++)
1411
- n = r[o], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(i, n) && (e[n] = i[n]);
1409
+ var o = Object.getOwnPropertySymbols(i);
1410
+ for (r = 0; r < o.length; r++)
1411
+ n = o[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(i, n) && (e[n] = i[n]);
1412
1412
  }
1413
1413
  return e;
1414
1414
  }
@@ -1417,15 +1417,15 @@ function Dt(i) {
1417
1417
  if (typeof window < "u" && window.navigator)
1418
1418
  return !!/* @__PURE__ */ navigator.userAgent.match(i);
1419
1419
  }
1420
- var Lt = Dt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Re = Dt(/Edge/i), On = Dt(/firefox/i), we = Dt(/safari/i) && !Dt(/chrome/i) && !Dt(/android/i), un = Dt(/iP(ad|od|hone)/i), po = Dt(/chrome/i) && Dt(/android/i), fo = {
1420
+ var Ot = Dt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Me = Dt(/Edge/i), Ln = Dt(/firefox/i), xe = Dt(/safari/i) && !Dt(/chrome/i) && !Dt(/android/i), cn = Dt(/iP(ad|od|hone)/i), hr = Dt(/chrome/i) && Dt(/android/i), pr = {
1421
1421
  capture: !1,
1422
1422
  passive: !1
1423
1423
  };
1424
1424
  function C(i, t, e) {
1425
- i.addEventListener(t, e, !Lt && fo);
1425
+ i.addEventListener(t, e, !Ot && pr);
1426
1426
  }
1427
- function A(i, t, e) {
1428
- i.removeEventListener(t, e, !Lt && fo);
1427
+ function _(i, t, e) {
1428
+ i.removeEventListener(t, e, !Ot && pr);
1429
1429
  }
1430
1430
  function Ke(i, t) {
1431
1431
  if (t) {
@@ -1443,7 +1443,7 @@ function Ke(i, t) {
1443
1443
  return !1;
1444
1444
  }
1445
1445
  }
1446
- function go(i) {
1446
+ function fr(i) {
1447
1447
  return i.host && i !== document && i.host.nodeType ? i.host : i.parentNode;
1448
1448
  }
1449
1449
  function xt(i, t, e, n) {
@@ -1453,18 +1453,18 @@ function xt(i, t, e, n) {
1453
1453
  if (t != null && (t[0] === ">" ? i.parentNode === e && Ke(i, t) : Ke(i, t)) || n && i === e)
1454
1454
  return i;
1455
1455
  if (i === e) break;
1456
- } while (i = go(i));
1456
+ } while (i = fr(i));
1457
1457
  }
1458
1458
  return null;
1459
1459
  }
1460
- var Ln = /\s+/g;
1460
+ var On = /\s+/g;
1461
1461
  function mt(i, t, e) {
1462
1462
  if (i && t)
1463
1463
  if (i.classList)
1464
1464
  i.classList[e ? "add" : "remove"](t);
1465
1465
  else {
1466
- var n = (" " + i.className + " ").replace(Ln, " ").replace(" " + t + " ", " ");
1467
- i.className = (n + (e ? " " + t : "")).replace(Ln, " ");
1466
+ var n = (" " + i.className + " ").replace(On, " ").replace(" " + t + " ", " ");
1467
+ i.className = (n + (e ? " " + t : "")).replace(On, " ");
1468
1468
  }
1469
1469
  }
1470
1470
  function v(i, t, e) {
@@ -1475,7 +1475,7 @@ function v(i, t, e) {
1475
1475
  !(t in n) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), n[t] = e + (typeof e == "string" ? "" : "px");
1476
1476
  }
1477
1477
  }
1478
- function ae(i, t) {
1478
+ function le(i, t) {
1479
1479
  var e = "";
1480
1480
  if (typeof i == "string")
1481
1481
  e = i;
@@ -1484,69 +1484,69 @@ function ae(i, t) {
1484
1484
  var n = v(i, "transform");
1485
1485
  n && n !== "none" && (e = n + " " + e);
1486
1486
  } while (!t && (i = i.parentNode));
1487
- var o = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
1488
- return o && new o(e);
1487
+ var r = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
1488
+ return r && new r(e);
1489
1489
  }
1490
- function mo(i, t, e) {
1490
+ function gr(i, t, e) {
1491
1491
  if (i) {
1492
- var n = i.getElementsByTagName(t), o = 0, r = n.length;
1492
+ var n = i.getElementsByTagName(t), r = 0, o = n.length;
1493
1493
  if (e)
1494
- for (; o < r; o++)
1495
- e(n[o], o);
1494
+ for (; r < o; r++)
1495
+ e(n[r], r);
1496
1496
  return n;
1497
1497
  }
1498
1498
  return [];
1499
1499
  }
1500
- function $t() {
1500
+ function Et() {
1501
1501
  var i = document.scrollingElement;
1502
1502
  return i || document.documentElement;
1503
1503
  }
1504
- function W(i, t, e, n, o) {
1504
+ function W(i, t, e, n, r) {
1505
1505
  if (!(!i.getBoundingClientRect && i !== window)) {
1506
- var r, s, a, l, d, c, u;
1507
- if (i !== window && i.parentNode && i !== $t() ? (r = i.getBoundingClientRect(), s = r.top, a = r.left, l = r.bottom, d = r.right, c = r.height, u = r.width) : (s = 0, a = 0, l = window.innerHeight, d = window.innerWidth, c = window.innerHeight, u = window.innerWidth), (t || e) && i !== window && (o = o || i.parentNode, !Lt))
1506
+ var o, s, a, l, d, u, c;
1507
+ if (i !== window && i.parentNode && i !== Et() ? (o = i.getBoundingClientRect(), s = o.top, a = o.left, l = o.bottom, d = o.right, u = o.height, c = o.width) : (s = 0, a = 0, l = window.innerHeight, d = window.innerWidth, u = window.innerHeight, c = window.innerWidth), (t || e) && i !== window && (r = r || i.parentNode, !Ot))
1508
1508
  do
1509
- if (o && o.getBoundingClientRect && (v(o, "transform") !== "none" || e && v(o, "position") !== "static")) {
1510
- var p = o.getBoundingClientRect();
1511
- s -= p.top + parseInt(v(o, "border-top-width")), a -= p.left + parseInt(v(o, "border-left-width")), l = s + r.height, d = a + r.width;
1509
+ if (r && r.getBoundingClientRect && (v(r, "transform") !== "none" || e && v(r, "position") !== "static")) {
1510
+ var p = r.getBoundingClientRect();
1511
+ s -= p.top + parseInt(v(r, "border-top-width")), a -= p.left + parseInt(v(r, "border-left-width")), l = s + o.height, d = a + o.width;
1512
1512
  break;
1513
1513
  }
1514
- while (o = o.parentNode);
1514
+ while (r = r.parentNode);
1515
1515
  if (n && i !== window) {
1516
- var f = ae(o || i), g = f && f.a, b = f && f.d;
1517
- f && (s /= b, a /= g, u /= g, c /= b, l = s + c, d = a + u);
1516
+ var f = le(r || i), g = f && f.a, b = f && f.d;
1517
+ f && (s /= b, a /= g, c /= g, u /= b, l = s + u, d = a + c);
1518
1518
  }
1519
1519
  return {
1520
1520
  top: s,
1521
1521
  left: a,
1522
1522
  bottom: l,
1523
1523
  right: d,
1524
- width: u,
1525
- height: c
1524
+ width: c,
1525
+ height: u
1526
1526
  };
1527
1527
  }
1528
1528
  }
1529
1529
  function Rn(i, t, e) {
1530
- for (var n = Vt(i, !0), o = W(i)[t]; n; ) {
1531
- var r = W(n)[e], s = void 0;
1532
- if (s = o >= r, !s) return n;
1533
- if (n === $t()) break;
1530
+ for (var n = Vt(i, !0), r = W(i)[t]; n; ) {
1531
+ var o = W(n)[e], s = void 0;
1532
+ if (s = r >= o, !s) return n;
1533
+ if (n === Et()) break;
1534
1534
  n = Vt(n, !1);
1535
1535
  }
1536
1536
  return !1;
1537
1537
  }
1538
- function de(i, t, e, n) {
1539
- for (var o = 0, r = 0, s = i.children; r < s.length; ) {
1540
- if (s[r].style.display !== "none" && s[r] !== w.ghost && (n || s[r] !== w.dragged) && xt(s[r], e.draggable, i, !1)) {
1541
- if (o === t)
1542
- return s[r];
1543
- o++;
1538
+ function ce(i, t, e, n) {
1539
+ for (var r = 0, o = 0, s = i.children; o < s.length; ) {
1540
+ if (s[o].style.display !== "none" && s[o] !== w.ghost && (n || s[o] !== w.dragged) && xt(s[o], e.draggable, i, !1)) {
1541
+ if (r === t)
1542
+ return s[o];
1543
+ r++;
1544
1544
  }
1545
- r++;
1545
+ o++;
1546
1546
  }
1547
1547
  return null;
1548
1548
  }
1549
- function cn(i, t) {
1549
+ function un(i, t) {
1550
1550
  for (var e = i.lastElementChild; e && (e === w.ghost || v(e, "display") === "none" || t && !Ke(e, t)); )
1551
1551
  e = e.previousElementSibling;
1552
1552
  return e || null;
@@ -1560,11 +1560,11 @@ function bt(i, t) {
1560
1560
  return e;
1561
1561
  }
1562
1562
  function Mn(i) {
1563
- var t = 0, e = 0, n = $t();
1563
+ var t = 0, e = 0, n = Et();
1564
1564
  if (i)
1565
1565
  do {
1566
- var o = ae(i), r = o.a, s = o.d;
1567
- t += i.scrollLeft * r, e += i.scrollTop * s;
1566
+ var r = le(i), o = r.a, s = r.d;
1567
+ t += i.scrollLeft * o, e += i.scrollTop * s;
1568
1568
  } while (i !== n && (i = i.parentNode));
1569
1569
  return [t, e];
1570
1570
  }
@@ -1577,19 +1577,19 @@ function bs(i, t) {
1577
1577
  return -1;
1578
1578
  }
1579
1579
  function Vt(i, t) {
1580
- if (!i || !i.getBoundingClientRect) return $t();
1580
+ if (!i || !i.getBoundingClientRect) return Et();
1581
1581
  var e = i, n = !1;
1582
1582
  do
1583
1583
  if (e.clientWidth < e.scrollWidth || e.clientHeight < e.scrollHeight) {
1584
- var o = v(e);
1585
- if (e.clientWidth < e.scrollWidth && (o.overflowX == "auto" || o.overflowX == "scroll") || e.clientHeight < e.scrollHeight && (o.overflowY == "auto" || o.overflowY == "scroll")) {
1586
- if (!e.getBoundingClientRect || e === document.body) return $t();
1584
+ var r = v(e);
1585
+ if (e.clientWidth < e.scrollWidth && (r.overflowX == "auto" || r.overflowX == "scroll") || e.clientHeight < e.scrollHeight && (r.overflowY == "auto" || r.overflowY == "scroll")) {
1586
+ if (!e.getBoundingClientRect || e === document.body) return Et();
1587
1587
  if (n || t) return e;
1588
1588
  n = !0;
1589
1589
  }
1590
1590
  }
1591
1591
  while (e = e.parentNode);
1592
- return $t();
1592
+ return Et();
1593
1593
  }
1594
1594
  function vs(i, t) {
1595
1595
  if (i && t)
@@ -1600,34 +1600,34 @@ function vs(i, t) {
1600
1600
  function Ii(i, t) {
1601
1601
  return Math.round(i.top) === Math.round(t.top) && Math.round(i.left) === Math.round(t.left) && Math.round(i.height) === Math.round(t.height) && Math.round(i.width) === Math.round(t.width);
1602
1602
  }
1603
- var xe;
1604
- function yo(i, t) {
1603
+ var $e;
1604
+ function mr(i, t) {
1605
1605
  return function() {
1606
- if (!xe) {
1606
+ if (!$e) {
1607
1607
  var e = arguments, n = this;
1608
- e.length === 1 ? i.call(n, e[0]) : i.apply(n, e), xe = setTimeout(function() {
1609
- xe = void 0;
1608
+ e.length === 1 ? i.call(n, e[0]) : i.apply(n, e), $e = setTimeout(function() {
1609
+ $e = void 0;
1610
1610
  }, t);
1611
1611
  }
1612
1612
  };
1613
1613
  }
1614
1614
  function ws() {
1615
- clearTimeout(xe), xe = void 0;
1615
+ clearTimeout($e), $e = void 0;
1616
1616
  }
1617
- function bo(i, t, e) {
1617
+ function yr(i, t, e) {
1618
1618
  i.scrollLeft += t, i.scrollTop += e;
1619
1619
  }
1620
- function vo(i) {
1620
+ function br(i) {
1621
1621
  var t = window.Polymer, e = window.jQuery || window.Zepto;
1622
1622
  return t && t.dom ? t.dom(i).cloneNode(!0) : e ? e(i).clone(!0)[0] : i.cloneNode(!0);
1623
1623
  }
1624
- function wo(i, t, e) {
1624
+ function vr(i, t, e) {
1625
1625
  var n = {};
1626
- return Array.from(i.children).forEach(function(o) {
1627
- var r, s, a, l;
1628
- if (!(!xt(o, t.draggable, i, !1) || o.animated || o === e)) {
1629
- var d = W(o);
1630
- n.left = Math.min((r = n.left) !== null && r !== void 0 ? r : 1 / 0, d.left), n.top = Math.min((s = n.top) !== null && s !== void 0 ? s : 1 / 0, d.top), n.right = Math.max((a = n.right) !== null && a !== void 0 ? a : -1 / 0, d.right), n.bottom = Math.max((l = n.bottom) !== null && l !== void 0 ? l : -1 / 0, d.bottom);
1626
+ return Array.from(i.children).forEach(function(r) {
1627
+ var o, s, a, l;
1628
+ if (!(!xt(r, t.draggable, i, !1) || r.animated || r === e)) {
1629
+ var d = W(r);
1630
+ n.left = Math.min((o = n.left) !== null && o !== void 0 ? o : 1 / 0, d.left), n.top = Math.min((s = n.top) !== null && s !== void 0 ? s : 1 / 0, d.top), n.right = Math.max((a = n.right) !== null && a !== void 0 ? a : -1 / 0, d.right), n.bottom = Math.max((l = n.bottom) !== null && l !== void 0 ? l : -1 / 0, d.bottom);
1631
1631
  }
1632
1632
  }), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
1633
1633
  }
@@ -1638,18 +1638,18 @@ function xs() {
1638
1638
  captureAnimationState: function() {
1639
1639
  if (i = [], !!this.options.animation) {
1640
1640
  var n = [].slice.call(this.el.children);
1641
- n.forEach(function(o) {
1642
- if (!(v(o, "display") === "none" || o === w.ghost)) {
1641
+ n.forEach(function(r) {
1642
+ if (!(v(r, "display") === "none" || r === w.ghost)) {
1643
1643
  i.push({
1644
- target: o,
1645
- rect: W(o)
1644
+ target: r,
1645
+ rect: W(r)
1646
1646
  });
1647
- var r = St({}, i[i.length - 1].rect);
1648
- if (o.thisAnimationDuration) {
1649
- var s = ae(o, !0);
1650
- s && (r.top -= s.f, r.left -= s.e);
1647
+ var o = St({}, i[i.length - 1].rect);
1648
+ if (r.thisAnimationDuration) {
1649
+ var s = le(r, !0);
1650
+ s && (o.top -= s.f, o.left -= s.e);
1651
1651
  }
1652
- o.fromRect = r;
1652
+ r.fromRect = o;
1653
1653
  }
1654
1654
  });
1655
1655
  }
@@ -1663,221 +1663,221 @@ function xs() {
1663
1663
  }), 1);
1664
1664
  },
1665
1665
  animateAll: function(n) {
1666
- var o = this;
1666
+ var r = this;
1667
1667
  if (!this.options.animation) {
1668
1668
  clearTimeout(t), typeof n == "function" && n();
1669
1669
  return;
1670
1670
  }
1671
- var r = !1, s = 0;
1671
+ var o = !1, s = 0;
1672
1672
  i.forEach(function(a) {
1673
- var l = 0, d = a.target, c = d.fromRect, u = W(d), p = d.prevFromRect, f = d.prevToRect, g = a.rect, b = ae(d, !0);
1674
- b && (u.top -= b.f, u.left -= b.e), d.toRect = u, d.thisAnimationDuration && Ii(p, u) && !Ii(c, u) && // Make sure animatingRect is on line between toRect & fromRect
1675
- (g.top - u.top) / (g.left - u.left) === (c.top - u.top) / (c.left - u.left) && (l = $s(g, p, f, o.options)), Ii(u, c) || (d.prevFromRect = c, d.prevToRect = u, l || (l = o.options.animation), o.animate(d, g, u, l)), l && (r = !0, s = Math.max(s, l), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
1673
+ var l = 0, d = a.target, u = d.fromRect, c = W(d), p = d.prevFromRect, f = d.prevToRect, g = a.rect, b = le(d, !0);
1674
+ b && (c.top -= b.f, c.left -= b.e), d.toRect = c, d.thisAnimationDuration && Ii(p, c) && !Ii(u, c) && // Make sure animatingRect is on line between toRect & fromRect
1675
+ (g.top - c.top) / (g.left - c.left) === (u.top - c.top) / (u.left - c.left) && (l = Es(g, p, f, r.options)), Ii(c, u) || (d.prevFromRect = u, d.prevToRect = c, l || (l = r.options.animation), r.animate(d, g, c, l)), l && (o = !0, s = Math.max(s, l), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
1676
1676
  d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
1677
1677
  }, l), d.thisAnimationDuration = l);
1678
- }), clearTimeout(t), r ? t = setTimeout(function() {
1678
+ }), clearTimeout(t), o ? t = setTimeout(function() {
1679
1679
  typeof n == "function" && n();
1680
1680
  }, s) : typeof n == "function" && n(), i = [];
1681
1681
  },
1682
- animate: function(n, o, r, s) {
1682
+ animate: function(n, r, o, s) {
1683
1683
  if (s) {
1684
1684
  v(n, "transition", ""), v(n, "transform", "");
1685
- var a = ae(this.el), l = a && a.a, d = a && a.d, c = (o.left - r.left) / (l || 1), u = (o.top - r.top) / (d || 1);
1686
- n.animatingX = !!c, n.animatingY = !!u, v(n, "transform", "translate3d(" + c + "px," + u + "px,0)"), this.forRepaintDummy = Es(n), v(n, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
1685
+ var a = le(this.el), l = a && a.a, d = a && a.d, u = (r.left - o.left) / (l || 1), c = (r.top - o.top) / (d || 1);
1686
+ n.animatingX = !!u, n.animatingY = !!c, v(n, "transform", "translate3d(" + u + "px," + c + "px,0)"), this.forRepaintDummy = $s(n), v(n, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
1687
1687
  v(n, "transition", ""), v(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
1688
1688
  }, s);
1689
1689
  }
1690
1690
  }
1691
1691
  };
1692
1692
  }
1693
- function Es(i) {
1693
+ function $s(i) {
1694
1694
  return i.offsetWidth;
1695
1695
  }
1696
- function $s(i, t, e, n) {
1696
+ function Es(i, t, e, n) {
1697
1697
  return Math.sqrt(Math.pow(t.top - i.top, 2) + Math.pow(t.left - i.left, 2)) / Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) * n.animation;
1698
1698
  }
1699
- var te = [], Ni = {
1699
+ var ee = [], Ni = {
1700
1700
  initializeByDefault: !0
1701
- }, Me = {
1701
+ }, Ie = {
1702
1702
  mount: function(t) {
1703
1703
  for (var e in Ni)
1704
1704
  Ni.hasOwnProperty(e) && !(e in t) && (t[e] = Ni[e]);
1705
- te.forEach(function(n) {
1705
+ ee.forEach(function(n) {
1706
1706
  if (n.pluginName === t.pluginName)
1707
1707
  throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
1708
- }), te.push(t);
1708
+ }), ee.push(t);
1709
1709
  },
1710
1710
  pluginEvent: function(t, e, n) {
1711
- var o = this;
1711
+ var r = this;
1712
1712
  this.eventCanceled = !1, n.cancel = function() {
1713
- o.eventCanceled = !0;
1713
+ r.eventCanceled = !0;
1714
1714
  };
1715
- var r = t + "Global";
1716
- te.forEach(function(s) {
1717
- e[s.pluginName] && (e[s.pluginName][r] && e[s.pluginName][r](St({
1715
+ var o = t + "Global";
1716
+ ee.forEach(function(s) {
1717
+ e[s.pluginName] && (e[s.pluginName][o] && e[s.pluginName][o](St({
1718
1718
  sortable: e
1719
1719
  }, n)), e.options[s.pluginName] && e[s.pluginName][t] && e[s.pluginName][t](St({
1720
1720
  sortable: e
1721
1721
  }, n)));
1722
1722
  });
1723
1723
  },
1724
- initializePlugins: function(t, e, n, o) {
1725
- te.forEach(function(a) {
1724
+ initializePlugins: function(t, e, n, r) {
1725
+ ee.forEach(function(a) {
1726
1726
  var l = a.pluginName;
1727
1727
  if (!(!t.options[l] && !a.initializeByDefault)) {
1728
1728
  var d = new a(t, e, t.options);
1729
- d.sortable = t, d.options = t.options, t[l] = d, Ot(n, d.defaults);
1729
+ d.sortable = t, d.options = t.options, t[l] = d, Lt(n, d.defaults);
1730
1730
  }
1731
1731
  });
1732
- for (var r in t.options)
1733
- if (t.options.hasOwnProperty(r)) {
1734
- var s = this.modifyOption(t, r, t.options[r]);
1735
- typeof s < "u" && (t.options[r] = s);
1732
+ for (var o in t.options)
1733
+ if (t.options.hasOwnProperty(o)) {
1734
+ var s = this.modifyOption(t, o, t.options[o]);
1735
+ typeof s < "u" && (t.options[o] = s);
1736
1736
  }
1737
1737
  },
1738
1738
  getEventProperties: function(t, e) {
1739
1739
  var n = {};
1740
- return te.forEach(function(o) {
1741
- typeof o.eventProperties == "function" && Ot(n, o.eventProperties.call(e[o.pluginName], t));
1740
+ return ee.forEach(function(r) {
1741
+ typeof r.eventProperties == "function" && Lt(n, r.eventProperties.call(e[r.pluginName], t));
1742
1742
  }), n;
1743
1743
  },
1744
1744
  modifyOption: function(t, e, n) {
1745
- var o;
1746
- return te.forEach(function(r) {
1747
- t[r.pluginName] && r.optionListeners && typeof r.optionListeners[e] == "function" && (o = r.optionListeners[e].call(t[r.pluginName], n));
1748
- }), o;
1745
+ var r;
1746
+ return ee.forEach(function(o) {
1747
+ t[o.pluginName] && o.optionListeners && typeof o.optionListeners[e] == "function" && (r = o.optionListeners[e].call(t[o.pluginName], n));
1748
+ }), r;
1749
1749
  }
1750
1750
  };
1751
1751
  function Ss(i) {
1752
- var t = i.sortable, e = i.rootEl, n = i.name, o = i.targetEl, r = i.cloneEl, s = i.toEl, a = i.fromEl, l = i.oldIndex, d = i.newIndex, c = i.oldDraggableIndex, u = i.newDraggableIndex, p = i.originalEvent, f = i.putSortable, g = i.extraEventProperties;
1752
+ var t = i.sortable, e = i.rootEl, n = i.name, r = i.targetEl, o = i.cloneEl, s = i.toEl, a = i.fromEl, l = i.oldIndex, d = i.newIndex, u = i.oldDraggableIndex, c = i.newDraggableIndex, p = i.originalEvent, f = i.putSortable, g = i.extraEventProperties;
1753
1753
  if (t = t || e && e[ft], !!t) {
1754
1754
  var b, N = t.options, J = "on" + n.charAt(0).toUpperCase() + n.substr(1);
1755
- window.CustomEvent && !Lt && !Re ? b = new CustomEvent(n, {
1755
+ window.CustomEvent && !Ot && !Me ? b = new CustomEvent(n, {
1756
1756
  bubbles: !0,
1757
1757
  cancelable: !0
1758
- }) : (b = document.createEvent("Event"), b.initEvent(n, !0, !0)), b.to = s || e, b.from = a || e, b.item = o || e, b.clone = r, b.oldIndex = l, b.newIndex = d, b.oldDraggableIndex = c, b.newDraggableIndex = u, b.originalEvent = p, b.pullMode = f ? f.lastPutMode : void 0;
1759
- var U = St(St({}, g), Me.getEventProperties(n, t));
1758
+ }) : (b = document.createEvent("Event"), b.initEvent(n, !0, !0)), b.to = s || e, b.from = a || e, b.item = r || e, b.clone = o, b.oldIndex = l, b.newIndex = d, b.oldDraggableIndex = u, b.newDraggableIndex = c, b.originalEvent = p, b.pullMode = f ? f.lastPutMode : void 0;
1759
+ var U = St(St({}, g), Ie.getEventProperties(n, t));
1760
1760
  for (var st in U)
1761
1761
  b[st] = U[st];
1762
1762
  e && e.dispatchEvent(b), N[J] && N[J].call(t, b);
1763
1763
  }
1764
1764
  }
1765
- var _s = ["evt"], ht = function(t, e) {
1766
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = n.evt, r = ms(n, _s);
1767
- Me.pluginEvent.bind(w)(t, e, St({
1765
+ var As = ["evt"], ht = function(t, e) {
1766
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = ms(n, As);
1767
+ Ie.pluginEvent.bind(w)(t, e, St({
1768
1768
  dragEl: h,
1769
1769
  parentEl: z,
1770
- ghostEl: E,
1771
- rootEl: V,
1772
- nextEl: Yt,
1770
+ ghostEl: $,
1771
+ rootEl: k,
1772
+ nextEl: Wt,
1773
1773
  lastDownEl: ze,
1774
- cloneEl: k,
1775
- cloneHidden: Nt,
1776
- dragStarted: ge,
1774
+ cloneEl: B,
1775
+ cloneHidden: Ht,
1776
+ dragStarted: me,
1777
1777
  putSortable: et,
1778
1778
  activeSortable: w.active,
1779
- originalEvent: o,
1780
- oldIndex: se,
1779
+ originalEvent: r,
1780
+ oldIndex: ae,
1781
1781
  oldDraggableIndex: Ee,
1782
1782
  newIndex: yt,
1783
- newDraggableIndex: It,
1784
- hideGhostForTarget: So,
1785
- unhideGhostForTarget: _o,
1783
+ newDraggableIndex: Nt,
1784
+ hideGhostForTarget: Er,
1785
+ unhideGhostForTarget: Sr,
1786
1786
  cloneNowHidden: function() {
1787
- Nt = !0;
1787
+ Ht = !0;
1788
1788
  },
1789
1789
  cloneNowShown: function() {
1790
- Nt = !1;
1790
+ Ht = !1;
1791
1791
  },
1792
1792
  dispatchSortableEvent: function(a) {
1793
1793
  at({
1794
1794
  sortable: e,
1795
1795
  name: a,
1796
- originalEvent: o
1796
+ originalEvent: r
1797
1797
  });
1798
1798
  }
1799
- }, r));
1799
+ }, o));
1800
1800
  };
1801
1801
  function at(i) {
1802
1802
  Ss(St({
1803
1803
  putSortable: et,
1804
- cloneEl: k,
1804
+ cloneEl: B,
1805
1805
  targetEl: h,
1806
- rootEl: V,
1807
- oldIndex: se,
1806
+ rootEl: k,
1807
+ oldIndex: ae,
1808
1808
  oldDraggableIndex: Ee,
1809
1809
  newIndex: yt,
1810
- newDraggableIndex: It
1810
+ newDraggableIndex: Nt
1811
1811
  }, i));
1812
1812
  }
1813
- var h, z, E, V, Yt, ze, k, Nt, se, yt, Ee, It, He, et, ne = !1, Qe = !1, ti = [], qt, wt, Hi, Vi, In, Nn, ge, ee, $e, Se = !1, Ve = !1, Ze, rt, Bi = [], Xi = !1, ei = [], _i = typeof document < "u", Be = un, Hn = Re || Lt ? "cssFloat" : "float", As = _i && !po && !un && "draggable" in document.createElement("div"), xo = function() {
1814
- if (_i) {
1815
- if (Lt)
1813
+ var h, z, $, k, Wt, ze, B, Ht, ae, yt, Ee, Nt, ke, et, re = !1, Qe = !1, ti = [], Xt, wt, Hi, ki, In, Nn, me, ie, Se, Ae = !1, Ve = !1, Ze, ot, Vi = [], Xi = !1, ei = [], Ai = typeof document < "u", Be = cn, Hn = Me || Ot ? "cssFloat" : "float", _s = Ai && !hr && !cn && "draggable" in document.createElement("div"), wr = function() {
1814
+ if (Ai) {
1815
+ if (Ot)
1816
1816
  return !1;
1817
1817
  var i = document.createElement("x");
1818
1818
  return i.style.cssText = "pointer-events:auto", i.style.pointerEvents === "auto";
1819
1819
  }
1820
- }(), Eo = function(t, e) {
1821
- var n = v(t), o = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), r = de(t, 0, e), s = de(t, 1, e), a = r && v(r), l = s && v(s), d = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + W(r).width, c = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + W(s).width;
1820
+ }(), xr = function(t, e) {
1821
+ var n = v(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o = ce(t, 0, e), s = ce(t, 1, e), a = o && v(o), l = s && v(s), d = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + W(o).width, u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + W(s).width;
1822
1822
  if (n.display === "flex")
1823
1823
  return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
1824
1824
  if (n.display === "grid")
1825
1825
  return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
1826
- if (r && a.float && a.float !== "none") {
1827
- var u = a.float === "left" ? "left" : "right";
1828
- return s && (l.clear === "both" || l.clear === u) ? "vertical" : "horizontal";
1826
+ if (o && a.float && a.float !== "none") {
1827
+ var c = a.float === "left" ? "left" : "right";
1828
+ return s && (l.clear === "both" || l.clear === c) ? "vertical" : "horizontal";
1829
1829
  }
1830
- return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || d >= o && n[Hn] === "none" || s && n[Hn] === "none" && d + c > o) ? "vertical" : "horizontal";
1830
+ return o && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || d >= r && n[Hn] === "none" || s && n[Hn] === "none" && d + u > r) ? "vertical" : "horizontal";
1831
1831
  }, Cs = function(t, e, n) {
1832
- var o = n ? t.left : t.top, r = n ? t.right : t.bottom, s = n ? t.width : t.height, a = n ? e.left : e.top, l = n ? e.right : e.bottom, d = n ? e.width : e.height;
1833
- return o === a || r === l || o + s / 2 === a + d / 2;
1832
+ var r = n ? t.left : t.top, o = n ? t.right : t.bottom, s = n ? t.width : t.height, a = n ? e.left : e.top, l = n ? e.right : e.bottom, d = n ? e.width : e.height;
1833
+ return r === a || o === l || r + s / 2 === a + d / 2;
1834
1834
  }, Ts = function(t, e) {
1835
1835
  var n;
1836
- return ti.some(function(o) {
1837
- var r = o[ft].options.emptyInsertThreshold;
1838
- if (!(!r || cn(o))) {
1839
- var s = W(o), a = t >= s.left - r && t <= s.right + r, l = e >= s.top - r && e <= s.bottom + r;
1836
+ return ti.some(function(r) {
1837
+ var o = r[ft].options.emptyInsertThreshold;
1838
+ if (!(!o || un(r))) {
1839
+ var s = W(r), a = t >= s.left - o && t <= s.right + o, l = e >= s.top - o && e <= s.bottom + o;
1840
1840
  if (a && l)
1841
- return n = o;
1841
+ return n = r;
1842
1842
  }
1843
1843
  }), n;
1844
- }, $o = function(t) {
1845
- function e(r, s) {
1846
- return function(a, l, d, c) {
1847
- var u = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
1848
- if (r == null && (s || u))
1844
+ }, $r = function(t) {
1845
+ function e(o, s) {
1846
+ return function(a, l, d, u) {
1847
+ var c = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
1848
+ if (o == null && (s || c))
1849
1849
  return !0;
1850
- if (r == null || r === !1)
1850
+ if (o == null || o === !1)
1851
1851
  return !1;
1852
- if (s && r === "clone")
1853
- return r;
1854
- if (typeof r == "function")
1855
- return e(r(a, l, d, c), s)(a, l, d, c);
1852
+ if (s && o === "clone")
1853
+ return o;
1854
+ if (typeof o == "function")
1855
+ return e(o(a, l, d, u), s)(a, l, d, u);
1856
1856
  var p = (s ? a : l).options.group.name;
1857
- return r === !0 || typeof r == "string" && r === p || r.join && r.indexOf(p) > -1;
1857
+ return o === !0 || typeof o == "string" && o === p || o.join && o.indexOf(p) > -1;
1858
1858
  };
1859
1859
  }
1860
- var n = {}, o = t.group;
1861
- (!o || je(o) != "object") && (o = {
1862
- name: o
1863
- }), n.name = o.name, n.checkPull = e(o.pull, !0), n.checkPut = e(o.put), n.revertClone = o.revertClone, t.group = n;
1864
- }, So = function() {
1865
- !xo && E && v(E, "display", "none");
1866
- }, _o = function() {
1867
- !xo && E && v(E, "display", "");
1860
+ var n = {}, r = t.group;
1861
+ (!r || je(r) != "object") && (r = {
1862
+ name: r
1863
+ }), n.name = r.name, n.checkPull = e(r.pull, !0), n.checkPut = e(r.put), n.revertClone = r.revertClone, t.group = n;
1864
+ }, Er = function() {
1865
+ !wr && $ && v($, "display", "none");
1866
+ }, Sr = function() {
1867
+ !wr && $ && v($, "display", "");
1868
1868
  };
1869
- _i && !po && document.addEventListener("click", function(i) {
1869
+ Ai && !hr && document.addEventListener("click", function(i) {
1870
1870
  if (Qe)
1871
1871
  return i.preventDefault(), i.stopPropagation && i.stopPropagation(), i.stopImmediatePropagation && i.stopImmediatePropagation(), Qe = !1, !1;
1872
1872
  }, !0);
1873
- var Xt = function(t) {
1873
+ var Yt = function(t) {
1874
1874
  if (h) {
1875
1875
  t = t.touches ? t.touches[0] : t;
1876
1876
  var e = Ts(t.clientX, t.clientY);
1877
1877
  if (e) {
1878
1878
  var n = {};
1879
- for (var o in t)
1880
- t.hasOwnProperty(o) && (n[o] = t[o]);
1879
+ for (var r in t)
1880
+ t.hasOwnProperty(r) && (n[r] = t[r]);
1881
1881
  n.target = n.rootEl = e, n.preventDefault = void 0, n.stopPropagation = void 0, e[ft]._onDragOver(n);
1882
1882
  }
1883
1883
  }
@@ -1887,7 +1887,7 @@ var Xt = function(t) {
1887
1887
  function w(i, t) {
1888
1888
  if (!(i && i.nodeType && i.nodeType === 1))
1889
1889
  throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));
1890
- this.el = i, this.options = t = Ot({}, t), i[ft] = this;
1890
+ this.el = i, this.options = t = Lt({}, t), i[ft] = this;
1891
1891
  var e = {
1892
1892
  group: null,
1893
1893
  sort: !0,
@@ -1903,7 +1903,7 @@ function w(i, t) {
1903
1903
  // will be set to same as swapThreshold if default
1904
1904
  removeCloneOnHide: !0,
1905
1905
  direction: function() {
1906
- return Eo(i, this.options);
1906
+ return xr(i, this.options);
1907
1907
  },
1908
1908
  ghostClass: "sortable-ghost",
1909
1909
  chosenClass: "sortable-chosen",
@@ -1931,32 +1931,32 @@ function w(i, t) {
1931
1931
  y: 0
1932
1932
  },
1933
1933
  // Disabled on Safari: #1571; Enabled on Safari IOS: #2244
1934
- supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && (!we || un),
1934
+ supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && (!xe || cn),
1935
1935
  emptyInsertThreshold: 5
1936
1936
  };
1937
- Me.initializePlugins(this, i, e);
1937
+ Ie.initializePlugins(this, i, e);
1938
1938
  for (var n in e)
1939
1939
  !(n in t) && (t[n] = e[n]);
1940
- $o(t);
1941
- for (var o in this)
1942
- o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
1943
- this.nativeDraggable = t.forceFallback ? !1 : As, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? C(i, "pointerdown", this._onTapStart) : (C(i, "mousedown", this._onTapStart), C(i, "touchstart", this._onTapStart)), this.nativeDraggable && (C(i, "dragover", this), C(i, "dragenter", this)), ti.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Ot(this, xs());
1940
+ $r(t);
1941
+ for (var r in this)
1942
+ r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
1943
+ this.nativeDraggable = t.forceFallback ? !1 : _s, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? C(i, "pointerdown", this._onTapStart) : (C(i, "mousedown", this._onTapStart), C(i, "touchstart", this._onTapStart)), this.nativeDraggable && (C(i, "dragover", this), C(i, "dragenter", this)), ti.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Lt(this, xs());
1944
1944
  }
1945
1945
  w.prototype = /** @lends Sortable.prototype */
1946
1946
  {
1947
1947
  constructor: w,
1948
1948
  _isOutsideThisEl: function(t) {
1949
- !this.el.contains(t) && t !== this.el && (ee = null);
1949
+ !this.el.contains(t) && t !== this.el && (ie = null);
1950
1950
  },
1951
1951
  _getDirection: function(t, e) {
1952
1952
  return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e, h) : this.options.direction;
1953
1953
  },
1954
1954
  _onTapStart: function(t) {
1955
1955
  if (t.cancelable) {
1956
- var e = this, n = this.el, o = this.options, r = o.preventOnFilter, s = t.type, a = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (a || t).target, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, c = o.filter;
1957
- if (Hs(n), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || o.disabled) && !d.isContentEditable && !(!this.nativeDraggable && we && l && l.tagName.toUpperCase() === "SELECT") && (l = xt(l, o.draggable, n, !1), !(l && l.animated) && ze !== l)) {
1958
- if (se = bt(l), Ee = bt(l, o.draggable), typeof c == "function") {
1959
- if (c.call(this, t, l, this)) {
1956
+ var e = this, n = this.el, r = this.options, o = r.preventOnFilter, s = t.type, a = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (a || t).target, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, u = r.filter;
1957
+ if (Hs(n), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable && xe && l && l.tagName.toUpperCase() === "SELECT") && (l = xt(l, r.draggable, n, !1), !(l && l.animated) && ze !== l)) {
1958
+ if (ae = bt(l), Ee = bt(l, r.draggable), typeof u == "function") {
1959
+ if (u.call(this, t, l, this)) {
1960
1960
  at({
1961
1961
  sortable: e,
1962
1962
  rootEl: d,
@@ -1966,14 +1966,14 @@ w.prototype = /** @lends Sortable.prototype */
1966
1966
  fromEl: n
1967
1967
  }), ht("filter", e, {
1968
1968
  evt: t
1969
- }), r && t.preventDefault();
1969
+ }), o && t.preventDefault();
1970
1970
  return;
1971
1971
  }
1972
- } else if (c && (c = c.split(",").some(function(u) {
1973
- if (u = xt(d, u.trim(), n, !1), u)
1972
+ } else if (u && (u = u.split(",").some(function(c) {
1973
+ if (c = xt(d, c.trim(), n, !1), c)
1974
1974
  return at({
1975
1975
  sortable: e,
1976
- rootEl: u,
1976
+ rootEl: c,
1977
1977
  name: "filter",
1978
1978
  targetEl: l,
1979
1979
  fromEl: n,
@@ -1981,44 +1981,44 @@ w.prototype = /** @lends Sortable.prototype */
1981
1981
  }), ht("filter", e, {
1982
1982
  evt: t
1983
1983
  }), !0;
1984
- }), c)) {
1985
- r && t.preventDefault();
1984
+ }), u)) {
1985
+ o && t.preventDefault();
1986
1986
  return;
1987
1987
  }
1988
- o.handle && !xt(d, o.handle, n, !1) || this._prepareDragStart(t, a, l);
1988
+ r.handle && !xt(d, r.handle, n, !1) || this._prepareDragStart(t, a, l);
1989
1989
  }
1990
1990
  }
1991
1991
  },
1992
1992
  _prepareDragStart: function(t, e, n) {
1993
- var o = this, r = o.el, s = o.options, a = r.ownerDocument, l;
1994
- if (n && !h && n.parentNode === r) {
1993
+ var r = this, o = r.el, s = r.options, a = o.ownerDocument, l;
1994
+ if (n && !h && n.parentNode === o) {
1995
1995
  var d = W(n);
1996
- if (V = r, h = n, z = h.parentNode, Yt = h.nextSibling, ze = n, He = s.group, w.dragged = h, qt = {
1996
+ if (k = o, h = n, z = h.parentNode, Wt = h.nextSibling, ze = n, ke = s.group, w.dragged = h, Xt = {
1997
1997
  target: h,
1998
1998
  clientX: (e || t).clientX,
1999
1999
  clientY: (e || t).clientY
2000
- }, In = qt.clientX - d.left, Nn = qt.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, h.style["will-change"] = "all", l = function() {
2001
- if (ht("delayEnded", o, {
2000
+ }, In = Xt.clientX - d.left, Nn = Xt.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, h.style["will-change"] = "all", l = function() {
2001
+ if (ht("delayEnded", r, {
2002
2002
  evt: t
2003
2003
  }), w.eventCanceled) {
2004
- o._onDrop();
2004
+ r._onDrop();
2005
2005
  return;
2006
2006
  }
2007
- o._disableDelayedDragEvents(), !On && o.nativeDraggable && (h.draggable = !0), o._triggerDragStart(t, e), at({
2008
- sortable: o,
2007
+ r._disableDelayedDragEvents(), !Ln && r.nativeDraggable && (h.draggable = !0), r._triggerDragStart(t, e), at({
2008
+ sortable: r,
2009
2009
  name: "choose",
2010
2010
  originalEvent: t
2011
2011
  }), mt(h, s.chosenClass, !0);
2012
- }, s.ignore.split(",").forEach(function(c) {
2013
- mo(h, c.trim(), ki);
2014
- }), C(a, "dragover", Xt), C(a, "mousemove", Xt), C(a, "touchmove", Xt), s.supportPointer ? (C(a, "pointerup", o._onDrop), !this.nativeDraggable && C(a, "pointercancel", o._onDrop)) : (C(a, "mouseup", o._onDrop), C(a, "touchend", o._onDrop), C(a, "touchcancel", o._onDrop)), On && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), ht("delayStart", this, {
2012
+ }, s.ignore.split(",").forEach(function(u) {
2013
+ gr(h, u.trim(), Bi);
2014
+ }), C(a, "dragover", Yt), C(a, "mousemove", Yt), C(a, "touchmove", Yt), s.supportPointer ? (C(a, "pointerup", r._onDrop), !this.nativeDraggable && C(a, "pointercancel", r._onDrop)) : (C(a, "mouseup", r._onDrop), C(a, "touchend", r._onDrop), C(a, "touchcancel", r._onDrop)), Ln && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), ht("delayStart", this, {
2015
2015
  evt: t
2016
- }), s.delay && (!s.delayOnTouchOnly || e) && (!this.nativeDraggable || !(Re || Lt))) {
2016
+ }), s.delay && (!s.delayOnTouchOnly || e) && (!this.nativeDraggable || !(Me || Ot))) {
2017
2017
  if (w.eventCanceled) {
2018
2018
  this._onDrop();
2019
2019
  return;
2020
2020
  }
2021
- s.supportPointer ? (C(a, "pointerup", o._disableDelayedDrag), C(a, "pointercancel", o._disableDelayedDrag)) : (C(a, "mouseup", o._disableDelayedDrag), C(a, "touchend", o._disableDelayedDrag), C(a, "touchcancel", o._disableDelayedDrag)), C(a, "mousemove", o._delayedDragTouchMoveHandler), C(a, "touchmove", o._delayedDragTouchMoveHandler), s.supportPointer && C(a, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(l, s.delay);
2021
+ s.supportPointer ? (C(a, "pointerup", r._disableDelayedDrag), C(a, "pointercancel", r._disableDelayedDrag)) : (C(a, "mouseup", r._disableDelayedDrag), C(a, "touchend", r._disableDelayedDrag), C(a, "touchcancel", r._disableDelayedDrag)), C(a, "mousemove", r._delayedDragTouchMoveHandler), C(a, "touchmove", r._delayedDragTouchMoveHandler), s.supportPointer && C(a, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(l, s.delay);
2022
2022
  } else
2023
2023
  l();
2024
2024
  }
@@ -2028,14 +2028,14 @@ w.prototype = /** @lends Sortable.prototype */
2028
2028
  Math.max(Math.abs(e.clientX - this._lastX), Math.abs(e.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
2029
2029
  },
2030
2030
  _disableDelayedDrag: function() {
2031
- h && ki(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2031
+ h && Bi(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2032
2032
  },
2033
2033
  _disableDelayedDragEvents: function() {
2034
2034
  var t = this.el.ownerDocument;
2035
- A(t, "mouseup", this._disableDelayedDrag), A(t, "touchend", this._disableDelayedDrag), A(t, "touchcancel", this._disableDelayedDrag), A(t, "pointerup", this._disableDelayedDrag), A(t, "pointercancel", this._disableDelayedDrag), A(t, "mousemove", this._delayedDragTouchMoveHandler), A(t, "touchmove", this._delayedDragTouchMoveHandler), A(t, "pointermove", this._delayedDragTouchMoveHandler);
2035
+ _(t, "mouseup", this._disableDelayedDrag), _(t, "touchend", this._disableDelayedDrag), _(t, "touchcancel", this._disableDelayedDrag), _(t, "pointerup", this._disableDelayedDrag), _(t, "pointercancel", this._disableDelayedDrag), _(t, "mousemove", this._delayedDragTouchMoveHandler), _(t, "touchmove", this._delayedDragTouchMoveHandler), _(t, "pointermove", this._delayedDragTouchMoveHandler);
2036
2036
  },
2037
2037
  _triggerDragStart: function(t, e) {
2038
- e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? C(document, "pointermove", this._onTouchMove) : e ? C(document, "touchmove", this._onTouchMove) : C(document, "mousemove", this._onTouchMove) : (C(h, "dragend", this), C(V, "dragstart", this._onDragStart));
2038
+ e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? C(document, "pointermove", this._onTouchMove) : e ? C(document, "touchmove", this._onTouchMove) : C(document, "mousemove", this._onTouchMove) : (C(h, "dragend", this), C(k, "dragstart", this._onDragStart));
2039
2039
  try {
2040
2040
  document.selection ? qe(function() {
2041
2041
  document.selection.empty();
@@ -2044,7 +2044,7 @@ w.prototype = /** @lends Sortable.prototype */
2044
2044
  }
2045
2045
  },
2046
2046
  _dragStarted: function(t, e) {
2047
- if (ne = !1, V && h) {
2047
+ if (re = !1, k && h) {
2048
2048
  ht("dragStarted", this, {
2049
2049
  evt: e
2050
2050
  }), this.nativeDraggable && C(document, "dragover", Ds);
@@ -2059,7 +2059,7 @@ w.prototype = /** @lends Sortable.prototype */
2059
2059
  },
2060
2060
  _emulateDragOver: function() {
2061
2061
  if (wt) {
2062
- this._lastX = wt.clientX, this._lastY = wt.clientY, So();
2062
+ this._lastX = wt.clientX, this._lastY = wt.clientY, Er();
2063
2063
  for (var t = document.elementFromPoint(wt.clientX, wt.clientY), e = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(wt.clientX, wt.clientY), t !== e); )
2064
2064
  e = t;
2065
2065
  if (h.parentNode[ft]._isOutsideThisEl(t), e)
@@ -2075,80 +2075,80 @@ w.prototype = /** @lends Sortable.prototype */
2075
2075
  break;
2076
2076
  }
2077
2077
  t = e;
2078
- } while (e = go(e));
2079
- _o();
2078
+ } while (e = fr(e));
2079
+ Sr();
2080
2080
  }
2081
2081
  },
2082
2082
  _onTouchMove: function(t) {
2083
- if (qt) {
2084
- var e = this.options, n = e.fallbackTolerance, o = e.fallbackOffset, r = t.touches ? t.touches[0] : t, s = E && ae(E, !0), a = E && s && s.a, l = E && s && s.d, d = Be && rt && Mn(rt), c = (r.clientX - qt.clientX + o.x) / (a || 1) + (d ? d[0] - Bi[0] : 0) / (a || 1), u = (r.clientY - qt.clientY + o.y) / (l || 1) + (d ? d[1] - Bi[1] : 0) / (l || 1);
2085
- if (!w.active && !ne) {
2086
- if (n && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < n)
2083
+ if (Xt) {
2084
+ var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t, s = $ && le($, !0), a = $ && s && s.a, l = $ && s && s.d, d = Be && ot && Mn(ot), u = (o.clientX - Xt.clientX + r.x) / (a || 1) + (d ? d[0] - Vi[0] : 0) / (a || 1), c = (o.clientY - Xt.clientY + r.y) / (l || 1) + (d ? d[1] - Vi[1] : 0) / (l || 1);
2085
+ if (!w.active && !re) {
2086
+ if (n && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < n)
2087
2087
  return;
2088
2088
  this._onDragStart(t, !0);
2089
2089
  }
2090
- if (E) {
2091
- s ? (s.e += c - (Hi || 0), s.f += u - (Vi || 0)) : s = {
2090
+ if ($) {
2091
+ s ? (s.e += u - (Hi || 0), s.f += c - (ki || 0)) : s = {
2092
2092
  a: 1,
2093
2093
  b: 0,
2094
2094
  c: 0,
2095
2095
  d: 1,
2096
- e: c,
2097
- f: u
2096
+ e: u,
2097
+ f: c
2098
2098
  };
2099
2099
  var p = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
2100
- v(E, "webkitTransform", p), v(E, "mozTransform", p), v(E, "msTransform", p), v(E, "transform", p), Hi = c, Vi = u, wt = r;
2100
+ v($, "webkitTransform", p), v($, "mozTransform", p), v($, "msTransform", p), v($, "transform", p), Hi = u, ki = c, wt = o;
2101
2101
  }
2102
2102
  t.cancelable && t.preventDefault();
2103
2103
  }
2104
2104
  },
2105
2105
  _appendGhost: function() {
2106
- if (!E) {
2107
- var t = this.options.fallbackOnBody ? document.body : V, e = W(h, !0, Be, !0, t), n = this.options;
2106
+ if (!$) {
2107
+ var t = this.options.fallbackOnBody ? document.body : k, e = W(h, !0, Be, !0, t), n = this.options;
2108
2108
  if (Be) {
2109
- for (rt = t; v(rt, "position") === "static" && v(rt, "transform") === "none" && rt !== document; )
2110
- rt = rt.parentNode;
2111
- rt !== document.body && rt !== document.documentElement ? (rt === document && (rt = $t()), e.top += rt.scrollTop, e.left += rt.scrollLeft) : rt = $t(), Bi = Mn(rt);
2109
+ for (ot = t; v(ot, "position") === "static" && v(ot, "transform") === "none" && ot !== document; )
2110
+ ot = ot.parentNode;
2111
+ ot !== document.body && ot !== document.documentElement ? (ot === document && (ot = Et()), e.top += ot.scrollTop, e.left += ot.scrollLeft) : ot = Et(), Vi = Mn(ot);
2112
2112
  }
2113
- E = h.cloneNode(!0), mt(E, n.ghostClass, !1), mt(E, n.fallbackClass, !0), mt(E, n.dragClass, !0), v(E, "transition", ""), v(E, "transform", ""), v(E, "box-sizing", "border-box"), v(E, "margin", 0), v(E, "top", e.top), v(E, "left", e.left), v(E, "width", e.width), v(E, "height", e.height), v(E, "opacity", "0.8"), v(E, "position", Be ? "absolute" : "fixed"), v(E, "zIndex", "100000"), v(E, "pointerEvents", "none"), w.ghost = E, t.appendChild(E), v(E, "transform-origin", In / parseInt(E.style.width) * 100 + "% " + Nn / parseInt(E.style.height) * 100 + "%");
2113
+ $ = h.cloneNode(!0), mt($, n.ghostClass, !1), mt($, n.fallbackClass, !0), mt($, n.dragClass, !0), v($, "transition", ""), v($, "transform", ""), v($, "box-sizing", "border-box"), v($, "margin", 0), v($, "top", e.top), v($, "left", e.left), v($, "width", e.width), v($, "height", e.height), v($, "opacity", "0.8"), v($, "position", Be ? "absolute" : "fixed"), v($, "zIndex", "100000"), v($, "pointerEvents", "none"), w.ghost = $, t.appendChild($), v($, "transform-origin", In / parseInt($.style.width) * 100 + "% " + Nn / parseInt($.style.height) * 100 + "%");
2114
2114
  }
2115
2115
  },
2116
2116
  _onDragStart: function(t, e) {
2117
- var n = this, o = t.dataTransfer, r = n.options;
2117
+ var n = this, r = t.dataTransfer, o = n.options;
2118
2118
  if (ht("dragStart", this, {
2119
2119
  evt: t
2120
2120
  }), w.eventCanceled) {
2121
2121
  this._onDrop();
2122
2122
  return;
2123
2123
  }
2124
- ht("setupClone", this), w.eventCanceled || (k = vo(h), k.removeAttribute("id"), k.draggable = !1, k.style["will-change"] = "", this._hideClone(), mt(k, this.options.chosenClass, !1), w.clone = k), n.cloneId = qe(function() {
2125
- ht("clone", n), !w.eventCanceled && (n.options.removeCloneOnHide || V.insertBefore(k, h), n._hideClone(), at({
2124
+ ht("setupClone", this), w.eventCanceled || (B = br(h), B.removeAttribute("id"), B.draggable = !1, B.style["will-change"] = "", this._hideClone(), mt(B, this.options.chosenClass, !1), w.clone = B), n.cloneId = qe(function() {
2125
+ ht("clone", n), !w.eventCanceled && (n.options.removeCloneOnHide || k.insertBefore(B, h), n._hideClone(), at({
2126
2126
  sortable: n,
2127
2127
  name: "clone"
2128
2128
  }));
2129
- }), !e && mt(h, r.dragClass, !0), e ? (Qe = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (A(document, "mouseup", n._onDrop), A(document, "touchend", n._onDrop), A(document, "touchcancel", n._onDrop), o && (o.effectAllowed = "move", r.setData && r.setData.call(n, o, h)), C(document, "drop", n), v(h, "transform", "translateZ(0)")), ne = !0, n._dragStartId = qe(n._dragStarted.bind(n, e, t)), C(document, "selectstart", n), ge = !0, window.getSelection().removeAllRanges(), we && v(document.body, "user-select", "none");
2129
+ }), !e && mt(h, o.dragClass, !0), e ? (Qe = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (_(document, "mouseup", n._onDrop), _(document, "touchend", n._onDrop), _(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, h)), C(document, "drop", n), v(h, "transform", "translateZ(0)")), re = !0, n._dragStartId = qe(n._dragStarted.bind(n, e, t)), C(document, "selectstart", n), me = !0, window.getSelection().removeAllRanges(), xe && v(document.body, "user-select", "none");
2130
2130
  },
2131
2131
  // Returns true - if no further action is needed (either inserted or another condition)
2132
2132
  _onDragOver: function(t) {
2133
- var e = this.el, n = t.target, o, r, s, a = this.options, l = a.group, d = w.active, c = He === l, u = a.sort, p = et || d, f, g = this, b = !1;
2133
+ var e = this.el, n = t.target, r, o, s, a = this.options, l = a.group, d = w.active, u = ke === l, c = a.sort, p = et || d, f, g = this, b = !1;
2134
2134
  if (Xi) return;
2135
- function N(gt, Ut) {
2135
+ function N(gt, Ft) {
2136
2136
  ht(gt, g, St({
2137
2137
  evt: t,
2138
- isOwner: c,
2138
+ isOwner: u,
2139
2139
  axis: f ? "vertical" : "horizontal",
2140
2140
  revert: s,
2141
- dragRect: o,
2142
- targetRect: r,
2143
- canSort: u,
2141
+ dragRect: r,
2142
+ targetRect: o,
2143
+ canSort: c,
2144
2144
  fromSortable: p,
2145
2145
  target: n,
2146
2146
  completed: U,
2147
- onMove: function(Ft, _t) {
2148
- return ke(V, e, h, o, Ft, W(Ft), t, _t);
2147
+ onMove: function(jt, At) {
2148
+ return Ue(k, e, h, r, jt, W(jt), t, At);
2149
2149
  },
2150
2150
  changed: st
2151
- }, Ut));
2151
+ }, Ft));
2152
2152
  }
2153
2153
  function J() {
2154
2154
  N("dragOverAnimationCapture"), g.captureAnimationState(), g !== p && p.captureAnimationState();
@@ -2156,58 +2156,58 @@ w.prototype = /** @lends Sortable.prototype */
2156
2156
  function U(gt) {
2157
2157
  return N("dragOverCompleted", {
2158
2158
  insertion: gt
2159
- }), gt && (c ? d._hideClone() : d._showClone(g), g !== p && (mt(h, et ? et.options.ghostClass : d.options.ghostClass, !1), mt(h, a.ghostClass, !0)), et !== g && g !== w.active ? et = g : g === w.active && et && (et = null), p === g && (g._ignoreWhileAnimating = n), g.animateAll(function() {
2159
+ }), gt && (u ? d._hideClone() : d._showClone(g), g !== p && (mt(h, et ? et.options.ghostClass : d.options.ghostClass, !1), mt(h, a.ghostClass, !0)), et !== g && g !== w.active ? et = g : g === w.active && et && (et = null), p === g && (g._ignoreWhileAnimating = n), g.animateAll(function() {
2160
2160
  N("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
2161
- }), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (ee = null), !a.dragoverBubble && !t.rootEl && n !== document && (h.parentNode[ft]._isOutsideThisEl(t.target), !gt && Xt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), b = !0;
2161
+ }), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (ie = null), !a.dragoverBubble && !t.rootEl && n !== document && (h.parentNode[ft]._isOutsideThisEl(t.target), !gt && Yt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), b = !0;
2162
2162
  }
2163
2163
  function st() {
2164
- yt = bt(h), It = bt(h, a.draggable), at({
2164
+ yt = bt(h), Nt = bt(h, a.draggable), at({
2165
2165
  sortable: g,
2166
2166
  name: "change",
2167
2167
  toEl: e,
2168
2168
  newIndex: yt,
2169
- newDraggableIndex: It,
2169
+ newDraggableIndex: Nt,
2170
2170
  originalEvent: t
2171
2171
  });
2172
2172
  }
2173
2173
  if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = xt(n, a.draggable, e, !0), N("dragOver"), w.eventCanceled) return b;
2174
2174
  if (h.contains(t.target) || n.animated && n.animatingX && n.animatingY || g._ignoreWhileAnimating === n)
2175
2175
  return U(!1);
2176
- if (Qe = !1, d && !a.disabled && (c ? u || (s = z !== V) : et === this || (this.lastPutMode = He.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
2177
- if (f = this._getDirection(t, n) === "vertical", o = W(h), N("dragOverValid"), w.eventCanceled) return b;
2176
+ if (Qe = !1, d && !a.disabled && (u ? c || (s = z !== k) : et === this || (this.lastPutMode = ke.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
2177
+ if (f = this._getDirection(t, n) === "vertical", r = W(h), N("dragOverValid"), w.eventCanceled) return b;
2178
2178
  if (s)
2179
- return z = V, J(), this._hideClone(), N("revert"), w.eventCanceled || (Yt ? V.insertBefore(h, Yt) : V.appendChild(h)), U(!0);
2180
- var K = cn(e, a.draggable);
2179
+ return z = k, J(), this._hideClone(), N("revert"), w.eventCanceled || (Wt ? k.insertBefore(h, Wt) : k.appendChild(h)), U(!0);
2180
+ var K = un(e, a.draggable);
2181
2181
  if (!K || Rs(t, f, this) && !K.animated) {
2182
2182
  if (K === h)
2183
2183
  return U(!1);
2184
- if (K && e === t.target && (n = K), n && (r = W(n)), ke(V, e, h, o, n, r, t, !!n) !== !1)
2184
+ if (K && e === t.target && (n = K), n && (o = W(n)), Ue(k, e, h, r, n, o, t, !!n) !== !1)
2185
2185
  return J(), K && K.nextSibling ? e.insertBefore(h, K.nextSibling) : e.appendChild(h), z = e, st(), U(!0);
2186
- } else if (K && Ls(t, f, this)) {
2187
- var $ = de(e, 0, a, !0);
2188
- if ($ === h)
2186
+ } else if (K && Os(t, f, this)) {
2187
+ var E = ce(e, 0, a, !0);
2188
+ if (E === h)
2189
2189
  return U(!1);
2190
- if (n = $, r = W(n), ke(V, e, h, o, n, r, t, !1) !== !1)
2191
- return J(), e.insertBefore(h, $), z = e, st(), U(!0);
2190
+ if (n = E, o = W(n), Ue(k, e, h, r, n, o, t, !1) !== !1)
2191
+ return J(), e.insertBefore(h, E), z = e, st(), U(!0);
2192
2192
  } else if (n.parentNode === e) {
2193
- r = W(n);
2194
- var m = 0, _, M = h.parentNode !== e, L = !Cs(h.animated && h.toRect || o, n.animated && n.toRect || r, f), q = f ? "top" : "left", X = Rn(n, "top", "top") || Rn(h, "top", "top"), H = X ? X.scrollTop : void 0;
2195
- ee !== n && (_ = r[q], Se = !1, Ve = !L && a.invertSwap || M), m = Ms(t, n, r, f, L ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ve, ee === n);
2193
+ o = W(n);
2194
+ var m = 0, A, M = h.parentNode !== e, O = !Cs(h.animated && h.toRect || r, n.animated && n.toRect || o, f), q = f ? "top" : "left", X = Rn(n, "top", "top") || Rn(h, "top", "top"), H = X ? X.scrollTop : void 0;
2195
+ ie !== n && (A = o[q], Ae = !1, Ve = !O && a.invertSwap || M), m = Ms(t, n, o, f, O ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ve, ie === n);
2196
2196
  var R;
2197
2197
  if (m !== 0) {
2198
2198
  var Z = bt(h);
2199
2199
  do
2200
2200
  Z -= m, R = z.children[Z];
2201
- while (R && (v(R, "display") === "none" || R === E));
2201
+ while (R && (v(R, "display") === "none" || R === $));
2202
2202
  }
2203
2203
  if (m === 0 || R === n)
2204
2204
  return U(!1);
2205
- ee = n, $e = m;
2205
+ ie = n, Se = m;
2206
2206
  var dt = n.nextElementSibling, tt = !1;
2207
2207
  tt = m === 1;
2208
- var ut = ke(V, e, h, o, n, r, t, tt);
2209
- if (ut !== !1)
2210
- return (ut === 1 || ut === -1) && (tt = ut === 1), Xi = !0, setTimeout(Os, 30), J(), tt && !dt ? e.appendChild(h) : n.parentNode.insertBefore(h, tt ? dt : n), X && bo(X, 0, H - X.scrollTop), z = h.parentNode, _ !== void 0 && !Ve && (Ze = Math.abs(_ - W(n)[q])), st(), U(!0);
2208
+ var ct = Ue(k, e, h, r, n, o, t, tt);
2209
+ if (ct !== !1)
2210
+ return (ct === 1 || ct === -1) && (tt = ct === 1), Xi = !0, setTimeout(Ls, 30), J(), tt && !dt ? e.appendChild(h) : n.parentNode.insertBefore(h, tt ? dt : n), X && yr(X, 0, H - X.scrollTop), z = h.parentNode, A !== void 0 && !Ve && (Ze = Math.abs(A - W(n)[q])), st(), U(!0);
2211
2211
  }
2212
2212
  if (e.contains(h))
2213
2213
  return U(!1);
@@ -2216,32 +2216,32 @@ w.prototype = /** @lends Sortable.prototype */
2216
2216
  },
2217
2217
  _ignoreWhileAnimating: null,
2218
2218
  _offMoveEvents: function() {
2219
- A(document, "mousemove", this._onTouchMove), A(document, "touchmove", this._onTouchMove), A(document, "pointermove", this._onTouchMove), A(document, "dragover", Xt), A(document, "mousemove", Xt), A(document, "touchmove", Xt);
2219
+ _(document, "mousemove", this._onTouchMove), _(document, "touchmove", this._onTouchMove), _(document, "pointermove", this._onTouchMove), _(document, "dragover", Yt), _(document, "mousemove", Yt), _(document, "touchmove", Yt);
2220
2220
  },
2221
2221
  _offUpEvents: function() {
2222
2222
  var t = this.el.ownerDocument;
2223
- A(t, "mouseup", this._onDrop), A(t, "touchend", this._onDrop), A(t, "pointerup", this._onDrop), A(t, "pointercancel", this._onDrop), A(t, "touchcancel", this._onDrop), A(document, "selectstart", this);
2223
+ _(t, "mouseup", this._onDrop), _(t, "touchend", this._onDrop), _(t, "pointerup", this._onDrop), _(t, "pointercancel", this._onDrop), _(t, "touchcancel", this._onDrop), _(document, "selectstart", this);
2224
2224
  },
2225
2225
  _onDrop: function(t) {
2226
2226
  var e = this.el, n = this.options;
2227
- if (yt = bt(h), It = bt(h, n.draggable), ht("drop", this, {
2227
+ if (yt = bt(h), Nt = bt(h, n.draggable), ht("drop", this, {
2228
2228
  evt: t
2229
- }), z = h && h.parentNode, yt = bt(h), It = bt(h, n.draggable), w.eventCanceled) {
2229
+ }), z = h && h.parentNode, yt = bt(h), Nt = bt(h, n.draggable), w.eventCanceled) {
2230
2230
  this._nulling();
2231
2231
  return;
2232
2232
  }
2233
- ne = !1, Ve = !1, Se = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Yi(this.cloneId), Yi(this._dragStartId), this.nativeDraggable && (A(document, "drop", this), A(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), we && v(document.body, "user-select", ""), v(h, "transform", ""), t && (ge && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), E && E.parentNode && E.parentNode.removeChild(E), (V === z || et && et.lastPutMode !== "clone") && k && k.parentNode && k.parentNode.removeChild(k), h && (this.nativeDraggable && A(h, "dragend", this), ki(h), h.style["will-change"] = "", ge && !ne && mt(h, et ? et.options.ghostClass : this.options.ghostClass, !1), mt(h, this.options.chosenClass, !1), at({
2233
+ re = !1, Ve = !1, Ae = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Yi(this.cloneId), Yi(this._dragStartId), this.nativeDraggable && (_(document, "drop", this), _(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), xe && v(document.body, "user-select", ""), v(h, "transform", ""), t && (me && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), $ && $.parentNode && $.parentNode.removeChild($), (k === z || et && et.lastPutMode !== "clone") && B && B.parentNode && B.parentNode.removeChild(B), h && (this.nativeDraggable && _(h, "dragend", this), Bi(h), h.style["will-change"] = "", me && !re && mt(h, et ? et.options.ghostClass : this.options.ghostClass, !1), mt(h, this.options.chosenClass, !1), at({
2234
2234
  sortable: this,
2235
2235
  name: "unchoose",
2236
2236
  toEl: z,
2237
2237
  newIndex: null,
2238
2238
  newDraggableIndex: null,
2239
2239
  originalEvent: t
2240
- }), V !== z ? (yt >= 0 && (at({
2240
+ }), k !== z ? (yt >= 0 && (at({
2241
2241
  rootEl: z,
2242
2242
  name: "add",
2243
2243
  toEl: z,
2244
- fromEl: V,
2244
+ fromEl: k,
2245
2245
  originalEvent: t
2246
2246
  }), at({
2247
2247
  sortable: this,
@@ -2252,14 +2252,14 @@ w.prototype = /** @lends Sortable.prototype */
2252
2252
  rootEl: z,
2253
2253
  name: "sort",
2254
2254
  toEl: z,
2255
- fromEl: V,
2255
+ fromEl: k,
2256
2256
  originalEvent: t
2257
2257
  }), at({
2258
2258
  sortable: this,
2259
2259
  name: "sort",
2260
2260
  toEl: z,
2261
2261
  originalEvent: t
2262
- })), et && et.save()) : yt !== se && yt >= 0 && (at({
2262
+ })), et && et.save()) : yt !== ae && yt >= 0 && (at({
2263
2263
  sortable: this,
2264
2264
  name: "update",
2265
2265
  toEl: z,
@@ -2269,7 +2269,7 @@ w.prototype = /** @lends Sortable.prototype */
2269
2269
  name: "sort",
2270
2270
  toEl: z,
2271
2271
  originalEvent: t
2272
- })), w.active && ((yt == null || yt === -1) && (yt = se, It = Ee), at({
2272
+ })), w.active && ((yt == null || yt === -1) && (yt = ae, Nt = Ee), at({
2273
2273
  sortable: this,
2274
2274
  name: "end",
2275
2275
  toEl: z,
@@ -2277,9 +2277,9 @@ w.prototype = /** @lends Sortable.prototype */
2277
2277
  }), this.save()))), this._nulling();
2278
2278
  },
2279
2279
  _nulling: function() {
2280
- ht("nulling", this), V = h = z = E = Yt = k = ze = Nt = qt = wt = ge = yt = It = se = Ee = ee = $e = et = He = w.dragged = w.ghost = w.clone = w.active = null, ei.forEach(function(t) {
2280
+ ht("nulling", this), k = h = z = $ = Wt = B = ze = Ht = Xt = wt = me = yt = Nt = ae = Ee = ie = Se = et = ke = w.dragged = w.ghost = w.clone = w.active = null, ei.forEach(function(t) {
2281
2281
  t.checked = !0;
2282
- }), ei.length = Hi = Vi = 0;
2282
+ }), ei.length = Hi = ki = 0;
2283
2283
  },
2284
2284
  handleEvent: function(t) {
2285
2285
  switch (t.type) {
@@ -2301,8 +2301,8 @@ w.prototype = /** @lends Sortable.prototype */
2301
2301
  * @returns {String[]}
2302
2302
  */
2303
2303
  toArray: function() {
2304
- for (var t = [], e, n = this.el.children, o = 0, r = n.length, s = this.options; o < r; o++)
2305
- e = n[o], xt(e, s.draggable, this.el, !1) && t.push(e.getAttribute(s.dataIdAttr) || Ns(e));
2304
+ for (var t = [], e, n = this.el.children, r = 0, o = n.length, s = this.options; r < o; r++)
2305
+ e = n[r], xt(e, s.draggable, this.el, !1) && t.push(e.getAttribute(s.dataIdAttr) || Ns(e));
2306
2306
  return t;
2307
2307
  },
2308
2308
  /**
@@ -2310,12 +2310,12 @@ w.prototype = /** @lends Sortable.prototype */
2310
2310
  * @param {String[]} order order of the items
2311
2311
  */
2312
2312
  sort: function(t, e) {
2313
- var n = {}, o = this.el;
2314
- this.toArray().forEach(function(r, s) {
2315
- var a = o.children[s];
2316
- xt(a, this.options.draggable, o, !1) && (n[r] = a);
2317
- }, this), e && this.captureAnimationState(), t.forEach(function(r) {
2318
- n[r] && (o.removeChild(n[r]), o.appendChild(n[r]));
2313
+ var n = {}, r = this.el;
2314
+ this.toArray().forEach(function(o, s) {
2315
+ var a = r.children[s];
2316
+ xt(a, this.options.draggable, r, !1) && (n[o] = a);
2317
+ }, this), e && this.captureAnimationState(), t.forEach(function(o) {
2318
+ n[o] && (r.removeChild(n[o]), r.appendChild(n[o]));
2319
2319
  }), e && this.animateAll();
2320
2320
  },
2321
2321
  /**
@@ -2344,8 +2344,8 @@ w.prototype = /** @lends Sortable.prototype */
2344
2344
  var n = this.options;
2345
2345
  if (e === void 0)
2346
2346
  return n[t];
2347
- var o = Me.modifyOption(this, t, e);
2348
- typeof o < "u" ? n[t] = o : n[t] = e, t === "group" && $o(n);
2347
+ var r = Ie.modifyOption(this, t, e);
2348
+ typeof r < "u" ? n[t] = r : n[t] = e, t === "group" && $r(n);
2349
2349
  },
2350
2350
  /**
2351
2351
  * Destroy
@@ -2353,14 +2353,14 @@ w.prototype = /** @lends Sortable.prototype */
2353
2353
  destroy: function() {
2354
2354
  ht("destroy", this);
2355
2355
  var t = this.el;
2356
- t[ft] = 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(e) {
2356
+ t[ft] = 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(e) {
2357
2357
  e.removeAttribute("draggable");
2358
2358
  }), this._onDrop(), this._disableDelayedDragEvents(), ti.splice(ti.indexOf(this.el), 1), this.el = t = null;
2359
2359
  },
2360
2360
  _hideClone: function() {
2361
- if (!Nt) {
2361
+ if (!Ht) {
2362
2362
  if (ht("hideClone", this), w.eventCanceled) return;
2363
- v(k, "display", "none"), this.options.removeCloneOnHide && k.parentNode && k.parentNode.removeChild(k), Nt = !0;
2363
+ v(B, "display", "none"), this.options.removeCloneOnHide && B.parentNode && B.parentNode.removeChild(B), Ht = !0;
2364
2364
  }
2365
2365
  },
2366
2366
  _showClone: function(t) {
@@ -2368,48 +2368,48 @@ w.prototype = /** @lends Sortable.prototype */
2368
2368
  this._hideClone();
2369
2369
  return;
2370
2370
  }
2371
- if (Nt) {
2371
+ if (Ht) {
2372
2372
  if (ht("showClone", this), w.eventCanceled) return;
2373
- h.parentNode == V && !this.options.group.revertClone ? V.insertBefore(k, h) : Yt ? V.insertBefore(k, Yt) : V.appendChild(k), this.options.group.revertClone && this.animate(h, k), v(k, "display", ""), Nt = !1;
2373
+ h.parentNode == k && !this.options.group.revertClone ? k.insertBefore(B, h) : Wt ? k.insertBefore(B, Wt) : k.appendChild(B), this.options.group.revertClone && this.animate(h, B), v(B, "display", ""), Ht = !1;
2374
2374
  }
2375
2375
  }
2376
2376
  };
2377
2377
  function Ps(i) {
2378
2378
  i.dataTransfer && (i.dataTransfer.dropEffect = "move"), i.cancelable && i.preventDefault();
2379
2379
  }
2380
- function ke(i, t, e, n, o, r, s, a) {
2381
- var l, d = i[ft], c = d.options.onMove, u;
2382
- return window.CustomEvent && !Lt && !Re ? l = new CustomEvent("move", {
2380
+ function Ue(i, t, e, n, r, o, s, a) {
2381
+ var l, d = i[ft], u = d.options.onMove, c;
2382
+ return window.CustomEvent && !Ot && !Me ? l = new CustomEvent("move", {
2383
2383
  bubbles: !0,
2384
2384
  cancelable: !0
2385
- }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = i, l.dragged = e, l.draggedRect = n, l.related = o || t, l.relatedRect = r || W(t), l.willInsertAfter = a, l.originalEvent = s, i.dispatchEvent(l), c && (u = c.call(d, l, s)), u;
2385
+ }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = i, l.dragged = e, l.draggedRect = n, l.related = r || t, l.relatedRect = o || W(t), l.willInsertAfter = a, l.originalEvent = s, i.dispatchEvent(l), u && (c = u.call(d, l, s)), c;
2386
2386
  }
2387
- function ki(i) {
2387
+ function Bi(i) {
2388
2388
  i.draggable = !1;
2389
2389
  }
2390
- function Os() {
2390
+ function Ls() {
2391
2391
  Xi = !1;
2392
2392
  }
2393
- function Ls(i, t, e) {
2394
- var n = W(de(e.el, 0, e.options, !0)), o = wo(e.el, e.options, E), r = 10;
2395
- return t ? i.clientX < o.left - r || i.clientY < n.top && i.clientX < n.right : i.clientY < o.top - r || i.clientY < n.bottom && i.clientX < n.left;
2393
+ function Os(i, t, e) {
2394
+ var n = W(ce(e.el, 0, e.options, !0)), r = vr(e.el, e.options, $), o = 10;
2395
+ return t ? i.clientX < r.left - o || i.clientY < n.top && i.clientX < n.right : i.clientY < r.top - o || i.clientY < n.bottom && i.clientX < n.left;
2396
2396
  }
2397
2397
  function Rs(i, t, e) {
2398
- var n = W(cn(e.el, e.options.draggable)), o = wo(e.el, e.options, E), r = 10;
2399
- return t ? i.clientX > o.right + r || i.clientY > n.bottom && i.clientX > n.left : i.clientY > o.bottom + r || i.clientX > n.right && i.clientY > n.top;
2398
+ var n = W(un(e.el, e.options.draggable)), r = vr(e.el, e.options, $), o = 10;
2399
+ return t ? i.clientX > r.right + o || i.clientY > n.bottom && i.clientX > n.left : i.clientY > r.bottom + o || i.clientX > n.right && i.clientY > n.top;
2400
2400
  }
2401
- function Ms(i, t, e, n, o, r, s, a) {
2402
- var l = n ? i.clientY : i.clientX, d = n ? e.height : e.width, c = n ? e.top : e.left, u = n ? e.bottom : e.right, p = !1;
2401
+ function Ms(i, t, e, n, r, o, s, a) {
2402
+ var l = n ? i.clientY : i.clientX, d = n ? e.height : e.width, u = n ? e.top : e.left, c = n ? e.bottom : e.right, p = !1;
2403
2403
  if (!s) {
2404
- if (a && Ze < d * o) {
2405
- if (!Se && ($e === 1 ? l > c + d * r / 2 : l < u - d * r / 2) && (Se = !0), Se)
2404
+ if (a && Ze < d * r) {
2405
+ if (!Ae && (Se === 1 ? l > u + d * o / 2 : l < c - d * o / 2) && (Ae = !0), Ae)
2406
2406
  p = !0;
2407
- else if ($e === 1 ? l < c + Ze : l > u - Ze)
2408
- return -$e;
2409
- } else if (l > c + d * (1 - o) / 2 && l < u - d * (1 - o) / 2)
2407
+ else if (Se === 1 ? l < u + Ze : l > c - Ze)
2408
+ return -Se;
2409
+ } else if (l > u + d * (1 - r) / 2 && l < c - d * (1 - r) / 2)
2410
2410
  return Is(t);
2411
2411
  }
2412
- return p = p || s, p && (l < c + d * r / 2 || l > u - d * r / 2) ? l > c + d / 2 ? 1 : -1 : 0;
2412
+ return p = p || s, p && (l < u + d * o / 2 || l > c - d * o / 2) ? l > u + d / 2 ? 1 : -1 : 0;
2413
2413
  }
2414
2414
  function Is(i) {
2415
2415
  return bt(h) < bt(i) ? 1 : -1;
@@ -2432,27 +2432,27 @@ function qe(i) {
2432
2432
  function Yi(i) {
2433
2433
  return clearTimeout(i);
2434
2434
  }
2435
- _i && C(document, "touchmove", function(i) {
2436
- (w.active || ne) && i.cancelable && i.preventDefault();
2435
+ Ai && C(document, "touchmove", function(i) {
2436
+ (w.active || re) && i.cancelable && i.preventDefault();
2437
2437
  });
2438
2438
  w.utils = {
2439
2439
  on: C,
2440
- off: A,
2440
+ off: _,
2441
2441
  css: v,
2442
- find: mo,
2442
+ find: gr,
2443
2443
  is: function(t, e) {
2444
2444
  return !!xt(t, e, t, !1);
2445
2445
  },
2446
2446
  extend: vs,
2447
- throttle: yo,
2447
+ throttle: mr,
2448
2448
  closest: xt,
2449
2449
  toggleClass: mt,
2450
- clone: vo,
2450
+ clone: br,
2451
2451
  index: bt,
2452
2452
  nextTick: qe,
2453
2453
  cancelNextTick: Yi,
2454
- detectDirection: Eo,
2455
- getChild: de,
2454
+ detectDirection: xr,
2455
+ getChild: ce,
2456
2456
  expando: ft
2457
2457
  };
2458
2458
  w.get = function(i) {
@@ -2464,15 +2464,15 @@ w.mount = function() {
2464
2464
  t[0].constructor === Array && (t = t[0]), t.forEach(function(n) {
2465
2465
  if (!n.prototype || !n.prototype.constructor)
2466
2466
  throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
2467
- n.utils && (w.utils = St(St({}, w.utils), n.utils)), Me.mount(n);
2467
+ n.utils && (w.utils = St(St({}, w.utils), n.utils)), Ie.mount(n);
2468
2468
  });
2469
2469
  };
2470
2470
  w.create = function(i, t) {
2471
2471
  return new w(i, t);
2472
2472
  };
2473
2473
  w.version = ys;
2474
- var Y = [], me, Wi, Gi = !1, Ui, Fi, ii, ye;
2475
- function Vs() {
2474
+ var Y = [], ye, Wi, Gi = !1, Ui, Fi, ii, be;
2475
+ function ks() {
2476
2476
  function i() {
2477
2477
  this.defaults = {
2478
2478
  scroll: !0,
@@ -2494,32 +2494,32 @@ function Vs() {
2494
2494
  !this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
2495
2495
  },
2496
2496
  drop: function() {
2497
- this.sortable.nativeDraggable ? A(document, "dragover", this._handleAutoScroll) : (A(document, "pointermove", this._handleFallbackAutoScroll), A(document, "touchmove", this._handleFallbackAutoScroll), A(document, "mousemove", this._handleFallbackAutoScroll)), Vn(), Xe(), ws();
2497
+ this.sortable.nativeDraggable ? _(document, "dragover", this._handleAutoScroll) : (_(document, "pointermove", this._handleFallbackAutoScroll), _(document, "touchmove", this._handleFallbackAutoScroll), _(document, "mousemove", this._handleFallbackAutoScroll)), kn(), Xe(), ws();
2498
2498
  },
2499
2499
  nulling: function() {
2500
- ii = Wi = me = Gi = ye = Ui = Fi = null, Y.length = 0;
2500
+ ii = Wi = ye = Gi = be = Ui = Fi = null, Y.length = 0;
2501
2501
  },
2502
2502
  _handleFallbackAutoScroll: function(e) {
2503
2503
  this._handleAutoScroll(e, !0);
2504
2504
  },
2505
2505
  _handleAutoScroll: function(e, n) {
2506
- var o = this, r = (e.touches ? e.touches[0] : e).clientX, s = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, s);
2507
- if (ii = e, n || this.options.forceAutoScrollFallback || Re || Lt || we) {
2506
+ var r = this, o = (e.touches ? e.touches[0] : e).clientX, s = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(o, s);
2507
+ if (ii = e, n || this.options.forceAutoScrollFallback || Me || Ot || xe) {
2508
2508
  ji(e, this.options, a, n);
2509
2509
  var l = Vt(a, !0);
2510
- Gi && (!ye || r !== Ui || s !== Fi) && (ye && Vn(), ye = setInterval(function() {
2511
- var d = Vt(document.elementFromPoint(r, s), !0);
2512
- d !== l && (l = d, Xe()), ji(e, o.options, d, n);
2513
- }, 10), Ui = r, Fi = s);
2510
+ Gi && (!be || o !== Ui || s !== Fi) && (be && kn(), be = setInterval(function() {
2511
+ var d = Vt(document.elementFromPoint(o, s), !0);
2512
+ d !== l && (l = d, Xe()), ji(e, r.options, d, n);
2513
+ }, 10), Ui = o, Fi = s);
2514
2514
  } else {
2515
- if (!this.options.bubbleScroll || Vt(a, !0) === $t()) {
2515
+ if (!this.options.bubbleScroll || Vt(a, !0) === Et()) {
2516
2516
  Xe();
2517
2517
  return;
2518
2518
  }
2519
2519
  ji(e, this.options, Vt(a, !1), !1);
2520
2520
  }
2521
2521
  }
2522
- }, Ot(i, {
2522
+ }, Lt(i, {
2523
2523
  pluginName: "scroll",
2524
2524
  initializeByDefault: !0
2525
2525
  });
@@ -2529,39 +2529,39 @@ function Xe() {
2529
2529
  clearInterval(i.pid);
2530
2530
  }), Y = [];
2531
2531
  }
2532
- function Vn() {
2533
- clearInterval(ye);
2532
+ function kn() {
2533
+ clearInterval(be);
2534
2534
  }
2535
- var ji = yo(function(i, t, e, n) {
2535
+ var ji = mr(function(i, t, e, n) {
2536
2536
  if (t.scroll) {
2537
- var o = (i.touches ? i.touches[0] : i).clientX, r = (i.touches ? i.touches[0] : i).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = $t(), d = !1, c;
2538
- Wi !== e && (Wi = e, Xe(), me = t.scroll, c = t.scrollFn, me === !0 && (me = Vt(e, !0)));
2539
- var u = 0, p = me;
2537
+ var r = (i.touches ? i.touches[0] : i).clientX, o = (i.touches ? i.touches[0] : i).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = Et(), d = !1, u;
2538
+ Wi !== e && (Wi = e, Xe(), ye = t.scroll, u = t.scrollFn, ye === !0 && (ye = Vt(e, !0)));
2539
+ var c = 0, p = ye;
2540
2540
  do {
2541
- var f = p, g = W(f), b = g.top, N = g.bottom, J = g.left, U = g.right, st = g.width, K = g.height, $ = void 0, m = void 0, _ = f.scrollWidth, M = f.scrollHeight, L = v(f), q = f.scrollLeft, X = f.scrollTop;
2542
- f === l ? ($ = st < _ && (L.overflowX === "auto" || L.overflowX === "scroll" || L.overflowX === "visible"), m = K < M && (L.overflowY === "auto" || L.overflowY === "scroll" || L.overflowY === "visible")) : ($ = st < _ && (L.overflowX === "auto" || L.overflowX === "scroll"), m = K < M && (L.overflowY === "auto" || L.overflowY === "scroll"));
2543
- var H = $ && (Math.abs(U - o) <= s && q + st < _) - (Math.abs(J - o) <= s && !!q), R = m && (Math.abs(N - r) <= s && X + K < M) - (Math.abs(b - r) <= s && !!X);
2544
- if (!Y[u])
2545
- for (var Z = 0; Z <= u; Z++)
2541
+ var f = p, g = W(f), b = g.top, N = g.bottom, J = g.left, U = g.right, st = g.width, K = g.height, E = void 0, m = void 0, A = f.scrollWidth, M = f.scrollHeight, O = v(f), q = f.scrollLeft, X = f.scrollTop;
2542
+ f === l ? (E = st < A && (O.overflowX === "auto" || O.overflowX === "scroll" || O.overflowX === "visible"), m = K < M && (O.overflowY === "auto" || O.overflowY === "scroll" || O.overflowY === "visible")) : (E = st < A && (O.overflowX === "auto" || O.overflowX === "scroll"), m = K < M && (O.overflowY === "auto" || O.overflowY === "scroll"));
2543
+ var H = E && (Math.abs(U - r) <= s && q + st < A) - (Math.abs(J - r) <= s && !!q), R = m && (Math.abs(N - o) <= s && X + K < M) - (Math.abs(b - o) <= s && !!X);
2544
+ if (!Y[c])
2545
+ for (var Z = 0; Z <= c; Z++)
2546
2546
  Y[Z] || (Y[Z] = {});
2547
- (Y[u].vx != H || Y[u].vy != R || Y[u].el !== f) && (Y[u].el = f, Y[u].vx = H, Y[u].vy = R, clearInterval(Y[u].pid), (H != 0 || R != 0) && (d = !0, Y[u].pid = setInterval((function() {
2547
+ (Y[c].vx != H || Y[c].vy != R || Y[c].el !== f) && (Y[c].el = f, Y[c].vx = H, Y[c].vy = R, clearInterval(Y[c].pid), (H != 0 || R != 0) && (d = !0, Y[c].pid = setInterval((function() {
2548
2548
  n && this.layer === 0 && w.active._onTouchMove(ii);
2549
2549
  var dt = Y[this.layer].vy ? Y[this.layer].vy * a : 0, tt = Y[this.layer].vx ? Y[this.layer].vx * a : 0;
2550
- typeof c == "function" && c.call(w.dragged.parentNode[ft], tt, dt, i, ii, Y[this.layer].el) !== "continue" || bo(Y[this.layer].el, tt, dt);
2550
+ typeof u == "function" && u.call(w.dragged.parentNode[ft], tt, dt, i, ii, Y[this.layer].el) !== "continue" || yr(Y[this.layer].el, tt, dt);
2551
2551
  }).bind({
2552
- layer: u
2553
- }), 24))), u++;
2552
+ layer: c
2553
+ }), 24))), c++;
2554
2554
  } while (t.bubbleScroll && p !== l && (p = Vt(p, !1)));
2555
2555
  Gi = d;
2556
2556
  }
2557
- }, 30), Ao = function(t) {
2558
- var e = t.originalEvent, n = t.putSortable, o = t.dragEl, r = t.activeSortable, s = t.dispatchSortableEvent, a = t.hideGhostForTarget, l = t.unhideGhostForTarget;
2557
+ }, 30), Ar = function(t) {
2558
+ var e = t.originalEvent, n = t.putSortable, r = t.dragEl, o = t.activeSortable, s = t.dispatchSortableEvent, a = t.hideGhostForTarget, l = t.unhideGhostForTarget;
2559
2559
  if (e) {
2560
- var d = n || r;
2560
+ var d = n || o;
2561
2561
  a();
2562
- var c = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, u = document.elementFromPoint(c.clientX, c.clientY);
2563
- l(), d && !d.el.contains(u) && (s("spill"), this.onSpill({
2564
- dragEl: o,
2562
+ var u = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, c = document.elementFromPoint(u.clientX, u.clientY);
2563
+ l(), d && !d.el.contains(c) && (s("spill"), this.onSpill({
2564
+ dragEl: r,
2565
2565
  putSortable: n
2566
2566
  }));
2567
2567
  }
@@ -2577,89 +2577,89 @@ hn.prototype = {
2577
2577
  onSpill: function(t) {
2578
2578
  var e = t.dragEl, n = t.putSortable;
2579
2579
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
2580
- var o = de(this.sortable.el, this.startIndex, this.options);
2581
- o ? this.sortable.el.insertBefore(e, o) : this.sortable.el.appendChild(e), this.sortable.animateAll(), n && n.animateAll();
2580
+ var r = ce(this.sortable.el, this.startIndex, this.options);
2581
+ r ? this.sortable.el.insertBefore(e, r) : this.sortable.el.appendChild(e), this.sortable.animateAll(), n && n.animateAll();
2582
2582
  },
2583
- drop: Ao
2583
+ drop: Ar
2584
2584
  };
2585
- Ot(hn, {
2585
+ Lt(hn, {
2586
2586
  pluginName: "revertOnSpill"
2587
2587
  });
2588
2588
  function pn() {
2589
2589
  }
2590
2590
  pn.prototype = {
2591
2591
  onSpill: function(t) {
2592
- var e = t.dragEl, n = t.putSortable, o = n || this.sortable;
2593
- o.captureAnimationState(), e.parentNode && e.parentNode.removeChild(e), o.animateAll();
2592
+ var e = t.dragEl, n = t.putSortable, r = n || this.sortable;
2593
+ r.captureAnimationState(), e.parentNode && e.parentNode.removeChild(e), r.animateAll();
2594
2594
  },
2595
- drop: Ao
2595
+ drop: Ar
2596
2596
  };
2597
- Ot(pn, {
2597
+ Lt(pn, {
2598
2598
  pluginName: "removeOnSpill"
2599
2599
  });
2600
- w.mount(new Vs());
2600
+ w.mount(new ks());
2601
2601
  w.mount(pn, hn);
2602
- const Bs = (i) => {
2602
+ const Vs = (i) => {
2603
2603
  const t = i.item;
2604
2604
  let e = Array.prototype.slice.call(t.parentNode.childNodes);
2605
2605
  return e = e.filter(
2606
2606
  (n) => n.nodeType != Node.ELEMENT_NODE || !n.classList.contains("sortable-fallback")
2607
2607
  ), e;
2608
- }, ks = (i, t, e, n, o, r) => {
2608
+ }, Bs = (i, t, e, n, r, o) => {
2609
2609
  const a = i.item.parentNode;
2610
2610
  for (const b of e)
2611
2611
  a.appendChild(b);
2612
2612
  if (i.oldIndex == i.newIndex) return;
2613
2613
  const l = n.getArray(), d = (
2614
2614
  /** @type {Element & {layer: import("ol/layer").Layer}} */
2615
- i.item.querySelector("eox-layercontrol-layer").layer.get(o)
2616
- ), c = l.find((b) => b.get(o) === d), u = r.dataset.layer, p = l.find(
2617
- (b) => b.get(o) == u
2615
+ i.item.querySelector("eox-layercontrol-layer").layer.get(r)
2616
+ ), u = l.find((b) => b.get(r) === d), c = o.dataset.layer, p = l.find(
2617
+ (b) => b.get(r) == c
2618
2618
  );
2619
2619
  let f, g;
2620
2620
  for (f = 0; f < l.length; f++)
2621
- if (l[f] == c) {
2621
+ if (l[f] == u) {
2622
2622
  n.removeAt(f);
2623
2623
  break;
2624
2624
  }
2625
2625
  for (g = 0; g < l.length; g++)
2626
2626
  if (l[g] === p) {
2627
- f > g ? n.insertAt(g, c) : n.insertAt(g + 1, c);
2627
+ f > g ? n.insertAt(g, u) : n.insertAt(g + 1, u);
2628
2628
  break;
2629
2629
  }
2630
2630
  t.requestUpdate();
2631
2631
  };
2632
2632
  function Us(i, t, e, n) {
2633
- let o = [], r = null;
2633
+ let r = [], o = null;
2634
2634
  i._sortable = w.create(i, {
2635
2635
  handle: ".drag-handle",
2636
2636
  filter: ".drag-handle.disabled",
2637
2637
  swapThreshold: 0.5,
2638
2638
  animation: 150,
2639
2639
  easing: "cubic-bezier(1, 0, 0, 1)",
2640
- onStart: (s) => o = Bs(s),
2640
+ onStart: (s) => r = Vs(s),
2641
2641
  onMove: (s) => {
2642
- r = s.related;
2642
+ o = s.related;
2643
2643
  },
2644
- onEnd: (s) => ks(s, n, o, t, e, r)
2644
+ onEnd: (s) => Bs(s, n, r, t, e, o)
2645
2645
  });
2646
2646
  }
2647
2647
  function Fs(i, t, e, n) {
2648
- const o = i.getArray();
2649
- let r = !1;
2650
- o.forEach((s) => {
2648
+ const r = i.getArray();
2649
+ let o = !1;
2650
+ r.forEach((s) => {
2651
2651
  const a = s.ol_uid;
2652
- s.get(t) || (s.set(t, a), r = !0), s.get(e) || (s.set(e, `layer ${a}`), r = !0), r && n.requestUpdate();
2652
+ s.get(t) || (s.set(t, a), o = !0), s.get(e) || (s.set(e, `layer ${a}`), o = !0), o && n.requestUpdate();
2653
2653
  });
2654
2654
  }
2655
2655
  function fn(i, t, e) {
2656
2656
  let n = [];
2657
- const o = (r, s, a) => {
2657
+ const r = (o, s, a) => {
2658
2658
  n = [
2659
2659
  ...n,
2660
- ...r.filter((d) => d.get(s) === a)
2660
+ ...o.filter((d) => d.get(s) === a)
2661
2661
  ];
2662
- const l = r.filter(
2662
+ const l = o.filter(
2663
2663
  (d) => (
2664
2664
  /** @type {import("ol/layer").Group} */
2665
2665
  d.getLayers
@@ -2668,50 +2668,50 @@ function fn(i, t, e) {
2668
2668
  return l.length > 0 && l.forEach(
2669
2669
  (d) => (
2670
2670
  // @ts-expect-error TODO
2671
- o(d.getLayers().getArray(), s, a)
2671
+ r(d.getLayers().getArray(), s, a)
2672
2672
  )
2673
2673
  ), n;
2674
2674
  };
2675
- return o(i, t, e), n;
2675
+ return r(i, t, e), n;
2676
2676
  }
2677
2677
  function js(i, t, e) {
2678
2678
  if (!i || !t) return !1;
2679
- if (!Co(i, e)) return !0;
2680
- const n = i.get("minZoom"), o = i.get("maxZoom"), r = t.getView().getZoom();
2681
- return r > n && r < o;
2679
+ if (!_r(i, e)) return !0;
2680
+ const n = i.get("minZoom"), r = i.get("maxZoom"), o = t.getView().getZoom();
2681
+ return o > n && o < r;
2682
2682
  }
2683
- function Co(i, t) {
2683
+ function _r(i, t) {
2684
2684
  const e = i.get("minZoom"), n = i.get("maxZoom");
2685
2685
  return !!(t && (e !== -1 / 0 || n !== 1 / 0));
2686
2686
  }
2687
2687
  function zs(i, t) {
2688
- var o, r, s;
2689
- return !i || !t ? void 0 : i.getLayers ? "group" : ((s = (o = t.getInteractions().getArray().filter((a) => a.freehand_ !== void 0).map((a) => a.source_)) == null ? void 0 : o.ol_uid) == null ? void 0 : s.includes(
2688
+ var r, o, s;
2689
+ return !i || !t ? void 0 : i.getLayers ? "group" : ((s = (r = t.getInteractions().getArray().filter((a) => a.freehand_ !== void 0).map((a) => a.source_)) == null ? void 0 : r.ol_uid) == null ? void 0 : s.includes(
2690
2690
  // @ts-expect-error TODO
2691
- i.getSource ? (r = i.getSource()) == null ? void 0 : r.ol_uid : void 0
2691
+ i.getSource ? (o = i.getSource()) == null ? void 0 : o.ol_uid : void 0
2692
2692
  )) ? "draw" : i.declutter_ !== void 0 ? "vector" : "raster";
2693
2693
  }
2694
2694
  const Zs = (i, t, e) => {
2695
2695
  let n = t;
2696
2696
  return e.layer.getSource().getTileUrlFunction() && (n || (n = e.layer.getSource().getTileUrlFunction()), e.layer.getSource().setTileUrlFunction(
2697
- (...o) => ps(n(...o), i)
2697
+ (...r) => ps(n(...r), i)
2698
2698
  ), e.layer.getSource().setKey(/* @__PURE__ */ new Date())), n;
2699
2699
  };
2700
2700
  function qs(i, t, e) {
2701
- const n = "updateStyleVariables" in t, o = "setStyle" in t, r = n ? (
2701
+ const n = "updateStyleVariables" in t, r = "setStyle" in t, o = n ? (
2702
2702
  /** @type {import('ol/layer/WebGLTile').default} */
2703
2703
  t.style_
2704
2704
  ) : e.style;
2705
- let s = r == null ? void 0 : r.variables;
2705
+ let s = o == null ? void 0 : o.variables;
2706
2706
  if (s) {
2707
2707
  const a = gn(i);
2708
- if (r.variables = {
2708
+ if (o.variables = {
2709
2709
  ...s,
2710
2710
  ...a
2711
2711
  }, n)
2712
2712
  t.updateStyleVariables(a);
2713
- else if (o) {
2714
- const l = Xs(r);
2713
+ else if (r) {
2714
+ const l = Xs(o);
2715
2715
  t.setStyle(
2716
2716
  l
2717
2717
  );
@@ -2726,8 +2726,8 @@ const gn = (i) => {
2726
2726
  /** @type {Record<string,any>} */
2727
2727
  i[e]
2728
2728
  );
2729
- for (const o in n)
2730
- t[o] = n == null ? void 0 : n[o];
2729
+ for (const r in n)
2730
+ t[r] = n == null ? void 0 : n[r];
2731
2731
  } else
2732
2732
  t[e] = i == null ? void 0 : i[e];
2733
2733
  return t;
@@ -2737,66 +2737,66 @@ function Xs(i) {
2737
2737
  if ("variables" in i) {
2738
2738
  let e = JSON.stringify(i);
2739
2739
  const { variables: n } = i;
2740
- for (const o in n)
2741
- typeof n[o] == "number" ? e = e.replaceAll(`["var","${o}"]`, n[o]) : e = e.replaceAll(
2742
- `["var","${o}"]`,
2743
- `"${n[o]}"`
2740
+ for (const r in n)
2741
+ typeof n[r] == "number" ? e = e.replaceAll(`["var","${r}"]`, n[r]) : e = e.replaceAll(
2742
+ `["var","${r}"]`,
2743
+ `"${n[r]}"`
2744
2744
  );
2745
2745
  t = JSON.parse(e);
2746
2746
  }
2747
2747
  return t;
2748
2748
  }
2749
2749
  const Ys = (i, t) => {
2750
- var e;
2751
- if (i)
2752
- return !("domainProperties" in i) || "domain" in i ? { ...i } : (e = Object.keys(i)) == null ? void 0 : e.reduce(
2753
- (n, o) => {
2754
- if (o === "domainProperties") {
2755
- const r = gn(t);
2756
- n.domain = i[o].map((s) => r[s]);
2757
- } else
2758
- n[o] = i[o];
2759
- return n;
2760
- },
2750
+ if (!i) return;
2751
+ let e;
2752
+ const n = gn(t);
2753
+ return Array.isArray(i) && i.length ? (e = i.find((r) => {
2754
+ const o = r.boundTo.key, s = r.boundTo.value;
2755
+ return n[o] == s;
2756
+ }), e || (e = i)) : e = i, Array.isArray(e) || (e = [e]), e.map((r) => {
2757
+ var o;
2758
+ return !("domainProperties" in r) || "domain" in r ? { ...r } : (o = Object.keys(r)) == null ? void 0 : o.reduce(
2759
+ (s, a) => (a === "domainProperties" ? s.domain = r[a].map((l) => n[l]) : s[a] = r[a], s),
2761
2760
  /** @type {import("../components/layer-legend").LegendConfig} */
2762
2761
  {}
2763
2762
  );
2763
+ });
2764
2764
  };
2765
- function To(i, t) {
2765
+ function Cr(i, t) {
2766
2766
  var n;
2767
2767
  let e = {};
2768
- for (const o in i) {
2769
- const r = i[o].type;
2770
- if (r && r !== "object")
2771
- e[o] = r === "number" ? Number(t[o]) : t[o];
2772
- else if (typeof i[o] == "object" && ((n = i[o]) != null && n.properties)) {
2773
- const s = To(
2774
- i[o].properties,
2768
+ for (const r in i) {
2769
+ const o = i[r].type;
2770
+ if (o && o !== "object")
2771
+ e[r] = o === "number" ? Number(t[r]) : t[r];
2772
+ else if (typeof i[r] == "object" && ((n = i[r]) != null && n.properties)) {
2773
+ const s = Cr(
2774
+ i[r].properties,
2775
2775
  t
2776
2776
  );
2777
- Object.keys(s).length > 0 && (e[o] = s);
2777
+ Object.keys(s).length > 0 && (e[r] = s);
2778
2778
  }
2779
2779
  }
2780
2780
  return e;
2781
2781
  }
2782
2782
  function Ws(i, t) {
2783
- var r, s, a, l, d;
2783
+ var o, s, a, l, d;
2784
2784
  if (!t) return null;
2785
2785
  let e = {}, n = "updateStyleVariables" in i ? (
2786
2786
  /** @type {import("ol/layer/WebGLTile").default} */
2787
- (r = i.style_) == null ? void 0 : r.variables
2787
+ (o = i.style_) == null ? void 0 : o.variables
2788
2788
  ) : (s = t.style) == null ? void 0 : s.variables;
2789
2789
  if ((t.type === "style" || t.style) && n)
2790
2790
  e = n;
2791
2791
  else if ((l = (a = i.getSource()) == null ? void 0 : a.getTileUrlFunction) != null && l.call(a)) {
2792
- const c = new URL(i.getSource().getTileUrlFunction()([0, 0, 0]));
2793
- e = Object.fromEntries(c.searchParams.entries());
2792
+ const u = new URL(i.getSource().getTileUrlFunction()([0, 0, 0]));
2793
+ e = Object.fromEntries(u.searchParams.entries());
2794
2794
  } else return null;
2795
- const o = To(
2795
+ const r = Cr(
2796
2796
  ((d = t.schema) == null ? void 0 : d.properties) || t.schema,
2797
2797
  e
2798
2798
  );
2799
- return Object.keys(o).length ? o : null;
2799
+ return Object.keys(r).length ? r : null;
2800
2800
  }
2801
2801
  const Gs = (i, t) => i == null ? void 0 : i.filter(
2802
2802
  (e) => ["remove", "sort"].filter((n) => t != null && t.get("layerControlDisable") ? n !== "sort" : !0).includes(e)
@@ -2804,7 +2804,7 @@ const Gs = (i, t) => i == null ? void 0 : i.filter(
2804
2804
  let n = !0;
2805
2805
  return ["remove", "sort"].includes(e) && (n = !1), e === "info" && (n = t.get("description")), e === "config" && (n = t.get("layerConfig")), e === "datetime" && (n = t.get("layerDatetime")), e === "legend" && (n = t.get("layerLegend")), n;
2806
2806
  }), Ks = (i, t) => x`
2807
- <button slot="${i}-icon" class="icon">${t ? i : O}</button>
2807
+ <button slot="${i}-icon" class="icon">${t ? i : L}</button>
2808
2808
  `, Qs = (i) => x`
2809
2809
  <button
2810
2810
  class="remove-icon icon"
@@ -2818,39 +2818,39 @@ const Gs = (i, t) => i == null ? void 0 : i.filter(
2818
2818
  );
2819
2819
  }}
2820
2820
  >
2821
- ${i.unstyled ? "x" : O}
2821
+ ${i.unstyled ? "x" : L}
2822
2822
  </button>
2823
2823
  `, ta = (i) => x`
2824
2824
  <span class="button sort-icon icon drag-handle">
2825
- ${i ? "═" : O}
2825
+ ${i ? "═" : L}
2826
2826
  </span>
2827
- `, Do = (i) => {
2827
+ `, Tr = (i) => {
2828
2828
  var e;
2829
2829
  const t = ["layerControlHide", "layerControlOptional"];
2830
- return (e = i == null ? void 0 : i.getArray()) == null ? void 0 : e.filter((n) => t.every((o) => !n.get(o)));
2830
+ return (e = i == null ? void 0 : i.getArray()) == null ? void 0 : e.filter((n) => t.every((r) => !n.get(r)));
2831
2831
  };
2832
2832
  /**
2833
2833
  * @license
2834
2834
  * Copyright 2020 Google LLC
2835
2835
  * SPDX-License-Identifier: BSD-3-Clause
2836
2836
  */
2837
- const Po = sn(class extends an {
2837
+ const Dr = sn(class extends an {
2838
2838
  constructor(i) {
2839
- if (super(i), i.type !== Mt.PROPERTY && i.type !== Mt.ATTRIBUTE && i.type !== Mt.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
2840
- if (!gr(i)) throw Error("`live` bindings can only contain a single expression");
2839
+ if (super(i), i.type !== It.PROPERTY && i.type !== It.ATTRIBUTE && i.type !== It.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
2840
+ if (!go(i)) throw Error("`live` bindings can only contain a single expression");
2841
2841
  }
2842
2842
  render(i) {
2843
2843
  return i;
2844
2844
  }
2845
2845
  update(i, [t]) {
2846
- if (t === vt || t === O) return t;
2846
+ if (t === vt || t === L) return t;
2847
2847
  const e = i.element, n = i.name;
2848
- if (i.type === Mt.PROPERTY) {
2848
+ if (i.type === It.PROPERTY) {
2849
2849
  if (t === e[n]) return vt;
2850
- } else if (i.type === Mt.BOOLEAN_ATTRIBUTE) {
2850
+ } else if (i.type === It.BOOLEAN_ATTRIBUTE) {
2851
2851
  if (!!t === e.hasAttribute(n)) return vt;
2852
- } else if (i.type === Mt.ATTRIBUTE && e.getAttribute(n) === t + "") return vt;
2853
- return no(i), t;
2852
+ } else if (i.type === It.ATTRIBUTE && e.getAttribute(n) === t + "") return vt;
2853
+ return nr(i), t;
2854
2854
  }
2855
2855
  });
2856
2856
  /**
@@ -2860,10 +2860,10 @@ const Po = sn(class extends an {
2860
2860
  */
2861
2861
  class Ji extends an {
2862
2862
  constructor(t) {
2863
- if (super(t), this.it = O, t.type !== Mt.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
2863
+ if (super(t), this.it = L, t.type !== It.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
2864
2864
  }
2865
2865
  render(t) {
2866
- if (t === O || t == null) return this._t = void 0, this.it = t;
2866
+ if (t === L || t == null) return this._t = void 0, this.it = t;
2867
2867
  if (t === vt) return t;
2868
2868
  if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
2869
2869
  if (t === this.it) return this._t;
@@ -2886,76 +2886,76 @@ function* Ye(i, t) {
2886
2886
  }
2887
2887
  }
2888
2888
  var Bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2889
- function Oo(i) {
2889
+ function Pr(i) {
2890
2890
  return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
2891
2891
  }
2892
- var zi, Bn;
2892
+ var zi, Vn;
2893
2893
  function ia() {
2894
- if (Bn) return zi;
2895
- Bn = 1;
2896
- var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, r = /^0b[01]+$/i, s = /^0o[0-7]+$/i, a = parseInt, l = typeof Bt == "object" && Bt && Bt.Object === Object && Bt, d = typeof self == "object" && self && self.Object === Object && self, c = l || d || Function("return this")(), u = Object.prototype, p = u.toString, f = Math.max, g = Math.min, b = function() {
2897
- return c.Date.now();
2894
+ if (Vn) return zi;
2895
+ Vn = 1;
2896
+ var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, r = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, s = /^0o[0-7]+$/i, a = parseInt, l = typeof Bt == "object" && Bt && Bt.Object === Object && Bt, d = typeof self == "object" && self && self.Object === Object && self, u = l || d || Function("return this")(), c = Object.prototype, p = c.toString, f = Math.max, g = Math.min, b = function() {
2897
+ return u.Date.now();
2898
2898
  };
2899
- function N(m, _, M) {
2900
- var L, q, X, H, R, Z, dt = 0, tt = !1, ut = !1, gt = !0;
2899
+ function N(m, A, M) {
2900
+ var O, q, X, H, R, Z, dt = 0, tt = !1, ct = !1, gt = !0;
2901
2901
  if (typeof m != "function")
2902
2902
  throw new TypeError(i);
2903
- _ = $(_) || 0, U(M) && (tt = !!M.leading, ut = "maxWait" in M, X = ut ? f($(M.maxWait) || 0, _) : X, gt = "trailing" in M ? !!M.trailing : gt);
2904
- function Ut(I) {
2905
- var ct = L, Rt = q;
2906
- return L = q = void 0, dt = I, H = m.apply(Rt, ct), H;
2903
+ A = E(A) || 0, U(M) && (tt = !!M.leading, ct = "maxWait" in M, X = ct ? f(E(M.maxWait) || 0, A) : X, gt = "trailing" in M ? !!M.trailing : gt);
2904
+ function Ft(I) {
2905
+ var ut = O, Rt = q;
2906
+ return O = q = void 0, dt = I, H = m.apply(Rt, ut), H;
2907
2907
  }
2908
- function Ie(I) {
2909
- return dt = I, R = setTimeout(jt, _), tt ? Ut(I) : H;
2908
+ function Ne(I) {
2909
+ return dt = I, R = setTimeout(zt, A), tt ? Ft(I) : H;
2910
2910
  }
2911
- function Ft(I) {
2912
- var ct = I - Z, Rt = I - dt, mn = _ - ct;
2913
- return ut ? g(mn, X - Rt) : mn;
2911
+ function jt(I) {
2912
+ var ut = I - Z, Rt = I - dt, mn = A - ut;
2913
+ return ct ? g(mn, X - Rt) : mn;
2914
2914
  }
2915
- function _t(I) {
2916
- var ct = I - Z, Rt = I - dt;
2917
- return Z === void 0 || ct >= _ || ct < 0 || ut && Rt >= X;
2915
+ function At(I) {
2916
+ var ut = I - Z, Rt = I - dt;
2917
+ return Z === void 0 || ut >= A || ut < 0 || ct && Rt >= X;
2918
2918
  }
2919
- function jt() {
2919
+ function zt() {
2920
2920
  var I = b();
2921
- if (_t(I))
2922
- return Ne(I);
2923
- R = setTimeout(jt, Ft(I));
2921
+ if (At(I))
2922
+ return He(I);
2923
+ R = setTimeout(zt, jt(I));
2924
2924
  }
2925
- function Ne(I) {
2926
- return R = void 0, gt && L ? Ut(I) : (L = q = void 0, H);
2925
+ function He(I) {
2926
+ return R = void 0, gt && O ? Ft(I) : (O = q = void 0, H);
2927
2927
  }
2928
- function Ai() {
2929
- R !== void 0 && clearTimeout(R), dt = 0, L = Z = q = R = void 0;
2928
+ function _i() {
2929
+ R !== void 0 && clearTimeout(R), dt = 0, O = Z = q = R = void 0;
2930
2930
  }
2931
- function he() {
2932
- return R === void 0 ? H : Ne(b());
2931
+ function pe() {
2932
+ return R === void 0 ? H : He(b());
2933
2933
  }
2934
- function B() {
2935
- var I = b(), ct = _t(I);
2936
- if (L = arguments, q = this, Z = I, ct) {
2934
+ function V() {
2935
+ var I = b(), ut = At(I);
2936
+ if (O = arguments, q = this, Z = I, ut) {
2937
2937
  if (R === void 0)
2938
- return Ie(Z);
2939
- if (ut)
2940
- return R = setTimeout(jt, _), Ut(Z);
2938
+ return Ne(Z);
2939
+ if (ct)
2940
+ return R = setTimeout(zt, A), Ft(Z);
2941
2941
  }
2942
- return R === void 0 && (R = setTimeout(jt, _)), H;
2942
+ return R === void 0 && (R = setTimeout(zt, A)), H;
2943
2943
  }
2944
- return B.cancel = Ai, B.flush = he, B;
2944
+ return V.cancel = _i, V.flush = pe, V;
2945
2945
  }
2946
- function J(m, _, M) {
2947
- var L = !0, q = !0;
2946
+ function J(m, A, M) {
2947
+ var O = !0, q = !0;
2948
2948
  if (typeof m != "function")
2949
2949
  throw new TypeError(i);
2950
- return U(M) && (L = "leading" in M ? !!M.leading : L, q = "trailing" in M ? !!M.trailing : q), N(m, _, {
2951
- leading: L,
2952
- maxWait: _,
2950
+ return U(M) && (O = "leading" in M ? !!M.leading : O, q = "trailing" in M ? !!M.trailing : q), N(m, A, {
2951
+ leading: O,
2952
+ maxWait: A,
2953
2953
  trailing: q
2954
2954
  });
2955
2955
  }
2956
2956
  function U(m) {
2957
- var _ = typeof m;
2958
- return !!m && (_ == "object" || _ == "function");
2957
+ var A = typeof m;
2958
+ return !!m && (A == "object" || A == "function");
2959
2959
  }
2960
2960
  function st(m) {
2961
2961
  return !!m && typeof m == "object";
@@ -2963,33 +2963,33 @@ function ia() {
2963
2963
  function K(m) {
2964
2964
  return typeof m == "symbol" || st(m) && p.call(m) == e;
2965
2965
  }
2966
- function $(m) {
2966
+ function E(m) {
2967
2967
  if (typeof m == "number")
2968
2968
  return m;
2969
2969
  if (K(m))
2970
2970
  return t;
2971
2971
  if (U(m)) {
2972
- var _ = typeof m.valueOf == "function" ? m.valueOf() : m;
2973
- m = U(_) ? _ + "" : _;
2972
+ var A = typeof m.valueOf == "function" ? m.valueOf() : m;
2973
+ m = U(A) ? A + "" : A;
2974
2974
  }
2975
2975
  if (typeof m != "string")
2976
2976
  return m === 0 ? m : +m;
2977
2977
  m = m.replace(n, "");
2978
- var M = r.test(m);
2979
- return M || s.test(m) ? a(m.slice(2), M ? 2 : 8) : o.test(m) ? t : +m;
2978
+ var M = o.test(m);
2979
+ return M || s.test(m) ? a(m.slice(2), M ? 2 : 8) : r.test(m) ? t : +m;
2980
2980
  }
2981
2981
  return zi = J, zi;
2982
2982
  }
2983
2983
  var na = ia();
2984
- const kn = /* @__PURE__ */ Oo(na);
2984
+ const Bn = /* @__PURE__ */ Pr(na);
2985
2985
  /**
2986
2986
  * @license
2987
2987
  * Copyright 2018 Google LLC
2988
2988
  * SPDX-License-Identifier: BSD-3-Clause
2989
2989
  */
2990
- const Ue = (i) => i ?? O;
2991
- var ni, oi;
2992
- class Lo extends lt {
2990
+ const Mt = (i) => i ?? L;
2991
+ var ni, ri;
2992
+ class Lr extends lt {
2993
2993
  constructor() {
2994
2994
  super();
2995
2995
  P(this, ni, qn`
@@ -3002,7 +3002,7 @@ class Lo extends lt {
3002
3002
  --cle-padding: 0;
3003
3003
  }
3004
3004
  `);
3005
- P(this, oi, "");
3005
+ P(this, ri, "");
3006
3006
  this.unstyled = !1, this.noShadow = !1, this.layerLegend = null, this.layer = null;
3007
3007
  }
3008
3008
  /**
@@ -3025,36 +3025,64 @@ class Lo extends lt {
3025
3025
  ), x`
3026
3026
  <style>
3027
3027
  ${T(this, ni)}
3028
- ${!this.unstyled && T(this, oi)}
3028
+ ${!this.unstyled && T(this, ri)}
3029
3029
  </style>
3030
3030
  ${G(
3031
3031
  this.layerLegend,
3032
3032
  () => x`
3033
3033
  <div class="legend-container">
3034
3034
  <!-- Render color-legend-->
3035
- <color-legend
3036
- id="${this.layer.get("id")}"
3037
- width=${this.layerLegend.width ?? 325}
3038
- scaleType="${Ue(this.layerLegend.scaleType)}"
3039
- markType="${Ue(this.layerLegend.markType)}"
3040
- titleText="${Ue(this.layerLegend.title)}"
3041
- .range=${this.layerLegend.range}
3042
- .domain=${this.layerLegend.domain}
3043
- tickFormat="${Ue(this.layerLegend.tickFormat)}"
3044
- .ticks=${this.layerLegend.ticks ?? 5}
3045
- .tickValues=${this.layerLegend.tickValues}
3046
- .marginLeft=${0}
3047
- .marginRight=${0}
3048
- >
3049
- </color-legend>
3035
+ ${G(
3036
+ Array.isArray(this.layerLegend),
3037
+ () => (
3038
+ /** @type {LegendConfig[]} */
3039
+ this.layerLegend.map(
3040
+ (e, n) => x`
3041
+ <color-legend
3042
+ id="${this.layer.get("id") + n}"
3043
+ width=${e.width ?? 325}
3044
+ scaleType="${Mt(e.scaleType)}"
3045
+ markType="${Mt(e.markType)}"
3046
+ titleText="${Mt(e.title)}"
3047
+ .range=${e.range}
3048
+ .domain=${e.domain}
3049
+ tickFormat="${Mt(e.tickFormat)}"
3050
+ .ticks=${e.ticks ?? 5}
3051
+ .tickValues=${e.tickValues}
3052
+ .marginLeft=${0}
3053
+ .marginRight=${0}
3054
+ >
3055
+ </color-legend>
3056
+ <div></div>
3057
+ `
3058
+ )
3059
+ ),
3060
+ () => x`
3061
+ <color-legend
3062
+ id="${this.layer.get("id")}"
3063
+ width=${this.layerLegend.width ?? 325}
3064
+ scaleType="${Mt(this.layerLegend.scaleType)}"
3065
+ markType="${Mt(this.layerLegend.markType)}"
3066
+ titleText="${Mt(this.layerLegend.title)}"
3067
+ .range=${this.layerLegend.range}
3068
+ .domain=${this.layerLegend.domain}
3069
+ tickFormat="${Mt(this.layerLegend.tickFormat)}"
3070
+ .ticks=${this.layerLegend.ticks ?? 5}
3071
+ .tickValues=${this.layerLegend.tickValues}
3072
+ .marginLeft=${0}
3073
+ .marginRight=${0}
3074
+ >
3075
+ </color-legend>
3076
+ `
3077
+ )}
3050
3078
  </div>
3051
3079
  `
3052
3080
  )}
3053
3081
  `;
3054
3082
  }
3055
3083
  }
3056
- ni = new WeakMap(), oi = new WeakMap(), // Define static properties for the component
3057
- F(Lo, "properties", {
3084
+ ni = new WeakMap(), ri = new WeakMap(), // Define static properties for the component
3085
+ F(Lr, "properties", {
3058
3086
  unstyled: { type: Boolean },
3059
3087
  noShadow: { type: Boolean },
3060
3088
  layerLegend: { attribute: !1 },
@@ -3062,32 +3090,32 @@ F(Lo, "properties", {
3062
3090
  });
3063
3091
  customElements.define(
3064
3092
  "eox-layercontrol-layer-legend",
3065
- Lo
3093
+ Lr
3066
3094
  );
3067
- var At, le, De, Pe, Ki, ri, si;
3068
- class Ro extends lt {
3095
+ var _t, de, Pe, Le, Ki, oi, si;
3096
+ class Or extends lt {
3069
3097
  constructor() {
3070
3098
  super();
3071
- P(this, Pe);
3099
+ P(this, Le);
3072
3100
  /**
3073
3101
  * data input by the user
3074
3102
  *
3075
3103
  * @type {{[key: string]: any}}
3076
3104
  */
3077
- P(this, At, {});
3105
+ P(this, _t, {});
3078
3106
  /**
3079
3107
  * data input by the user
3080
3108
  *
3081
3109
  * @type {{[key: string]: any}}
3082
3110
  */
3083
- P(this, le, null);
3111
+ P(this, de, null);
3084
3112
  /**
3085
3113
  * Original tile url function, if it exist
3086
3114
  *
3087
3115
  * @type {Function}
3088
3116
  */
3089
- P(this, De);
3090
- P(this, ri, qn`
3117
+ P(this, Pe);
3118
+ P(this, oi, qn`
3091
3119
  color-legend {
3092
3120
  --cle-background: transparent;
3093
3121
  --cle-font-family: inherit;
@@ -3097,7 +3125,7 @@ class Ro extends lt {
3097
3125
  }
3098
3126
  `);
3099
3127
  P(this, si, "");
3100
- this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = kn(j(this, Pe, Ki), 1e3);
3128
+ this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = Bn(j(this, Le, Ki), 1e3);
3101
3129
  }
3102
3130
  /** Decide what type of throttling to do based on layerConfig type
3103
3131
  *
@@ -3106,7 +3134,7 @@ class Ro extends lt {
3106
3134
  updated(e) {
3107
3135
  if (e.has("layerConfig")) {
3108
3136
  const n = this.layerConfig.type === "style" || this.layerConfig.style ? 100 : 1e3;
3109
- this.throttleDataChange = kn(j(this, Pe, Ki), n), this.requestUpdate();
3137
+ this.throttleDataChange = Bn(j(this, Le, Ki), n), this.requestUpdate();
3110
3138
  }
3111
3139
  }
3112
3140
  /**
@@ -3119,7 +3147,7 @@ class Ro extends lt {
3119
3147
  * Renders a JSON form for configuration options of a layer.
3120
3148
  */
3121
3149
  render() {
3122
- Qt(this, le, Ws(this.layer, this.layerConfig)), Object.keys(T(this, At)).length !== 0 && Qt(this, le, T(this, At)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
3150
+ te(this, de, Ws(this.layer, this.layerConfig)), Object.keys(T(this, _t)).length !== 0 && te(this, de, T(this, _t)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
3123
3151
  const e = {
3124
3152
  disable_edit_json: !0,
3125
3153
  disable_collapse: !0,
@@ -3127,7 +3155,7 @@ class Ro extends lt {
3127
3155
  };
3128
3156
  return x`
3129
3157
  <style>
3130
- ${T(this, ri)}
3158
+ ${T(this, oi)}
3131
3159
  ${!this.unstyled && T(this, si)}
3132
3160
  </style>
3133
3161
  ${G(
@@ -3142,7 +3170,7 @@ class Ro extends lt {
3142
3170
  .layer=${this.layer}
3143
3171
  .layerLegend=${Ys(
3144
3172
  this.layerConfig.legend,
3145
- T(this, At)
3173
+ T(this, _t)
3146
3174
  )}
3147
3175
  ></eox-layercontrol-layer-legend>
3148
3176
  `
@@ -3150,7 +3178,7 @@ class Ro extends lt {
3150
3178
  <!-- Render a JSON form for layer configuration -->
3151
3179
  <eox-jsonform
3152
3180
  .schema=${this.layerConfig.schema}
3153
- .value=${T(this, le)}
3181
+ .value=${T(this, de)}
3154
3182
  .options=${e}
3155
3183
  @change=${this.throttleDataChange}
3156
3184
  ></eox-jsonform>
@@ -3159,21 +3187,21 @@ class Ro extends lt {
3159
3187
  `;
3160
3188
  }
3161
3189
  }
3162
- At = new WeakMap(), le = new WeakMap(), De = new WeakMap(), Pe = new WeakSet(), /**
3190
+ _t = new WeakMap(), de = new WeakMap(), Pe = new WeakMap(), Le = new WeakSet(), /**
3163
3191
  * Handles changes in eox-jsonform values.
3164
3192
  *
3165
3193
  * @param {{ detail: { value: string; }; }} e
3166
3194
  */
3167
3195
  Ki = function(e) {
3168
- Qt(this, At, e.detail), this.layerConfig.type === "style" || this.layerConfig.style ? "setStyle" in this.layer || "updateStyleVariables" in this.layer ? qs(T(this, At), this.layer, this.layerConfig) : console.error(
3196
+ te(this, _t, e.detail), this.layerConfig.type === "style" || this.layerConfig.style ? "setStyle" in this.layer || "updateStyleVariables" in this.layer ? qs(T(this, _t), this.layer, this.layerConfig) : console.error(
3169
3197
  `Layer type ${this.layer.get("type") ?? ""} does not support styles configuration`
3170
- ) : Qt(this, De, Zs(
3171
- T(this, At),
3172
- T(this, De),
3198
+ ) : te(this, Pe, Zs(
3199
+ T(this, _t),
3200
+ T(this, Pe),
3173
3201
  this
3174
3202
  )), this.requestUpdate();
3175
- }, ri = new WeakMap(), si = new WeakMap(), // Define static properties for the component
3176
- F(Ro, "properties", {
3203
+ }, oi = new WeakMap(), si = new WeakMap(), // Define static properties for the component
3204
+ F(Or, "properties", {
3177
3205
  layer: { attribute: !1 },
3178
3206
  unstyled: { type: Boolean },
3179
3207
  noShadow: { type: Boolean },
@@ -3181,10 +3209,10 @@ F(Ro, "properties", {
3181
3209
  });
3182
3210
  customElements.define(
3183
3211
  "eox-layercontrol-layerconfig",
3184
- Ro
3212
+ Or
3185
3213
  );
3186
- var ai, Io, li, di;
3187
- class Mo extends lt {
3214
+ var ai, Mr, li, di;
3215
+ class Rr extends lt {
3188
3216
  constructor() {
3189
3217
  super();
3190
3218
  P(this, ai);
@@ -3224,7 +3252,7 @@ class Mo extends lt {
3224
3252
  .controlProperty=${void 0}
3225
3253
  current-step=${this.layerDatetime.currentStep}
3226
3254
  .displayFormat=${this.layerDatetime.displayFormat}
3227
- @stepchange=${j(this, ai, Io)}
3255
+ @stepchange=${j(this, ai, Mr)}
3228
3256
  ></eox-timecontrol>
3229
3257
  `
3230
3258
  )}
@@ -3237,7 +3265,7 @@ ai = new WeakSet(), /**
3237
3265
  *
3238
3266
  * @param {CustomEvent<{currentStep:string|number}>} evt
3239
3267
  **/
3240
- Io = function(e) {
3268
+ Mr = function(e) {
3241
3269
  this.dispatchEvent(
3242
3270
  new CustomEvent("datetime:updated", {
3243
3271
  bubbles: !0,
@@ -3248,7 +3276,7 @@ Io = function(e) {
3248
3276
  })
3249
3277
  ), this.layerDatetime.currentStep = e.detail.currentStep, this.requestUpdate();
3250
3278
  }, li = new WeakMap(), di = new WeakMap(), // Define static properties for the component
3251
- F(Mo, "properties", {
3279
+ F(Rr, "properties", {
3252
3280
  unstyled: { type: Boolean },
3253
3281
  noShadow: { type: Boolean },
3254
3282
  layerDatetime: { attribute: !1 },
@@ -3256,15 +3284,15 @@ F(Mo, "properties", {
3256
3284
  });
3257
3285
  customElements.define(
3258
3286
  "eox-layercontrol-layer-datetime",
3259
- Mo
3287
+ Rr
3260
3288
  );
3261
- var Oe, ui, ci;
3262
- class No extends lt {
3289
+ var Oe, ci, ui;
3290
+ class Ir extends lt {
3263
3291
  constructor() {
3264
3292
  super();
3265
3293
  /** @param {number} index */
3266
3294
  P(this, Oe, (e) => (this.selectedTab === e || this.toolsAsList) && "highlighted");
3267
- P(this, ui, `
3295
+ P(this, ci, `
3268
3296
  .tabbed figure,
3269
3297
  .listed figure {
3270
3298
  margin: 0;
@@ -3287,7 +3315,7 @@ class No extends lt {
3287
3315
  display: block;
3288
3316
  }
3289
3317
  `);
3290
- P(this, ci, `
3318
+ P(this, ui, `
3291
3319
  .listed label {
3292
3320
  display: flex;
3293
3321
  justify-content: start;
@@ -3339,16 +3367,16 @@ class No extends lt {
3339
3367
  * It sets up navigation for switching between tabs and offers customizable icons for tabs and actions.
3340
3368
  */
3341
3369
  render() {
3342
- const e = this.tabs, n = this.actions, o = n.length + e.length > 1;
3370
+ const e = this.tabs, n = this.actions, r = n.length + e.length > 1;
3343
3371
  return x`
3344
3372
  <style>
3345
- ${T(this, ui)}
3346
- ${!this.unstyled && T(this, ci)}
3373
+ ${T(this, ci)}
3374
+ ${!this.unstyled && T(this, ui)}
3347
3375
  </style>
3348
3376
  <div class="${this.toolsAsList ? "listed" : "tabbed"}">
3349
3377
  <!-- Navigation for tabs and actions -->
3350
3378
  ${G(
3351
- o,
3379
+ r,
3352
3380
  () => x`
3353
3381
  <nav>
3354
3382
  ${G(
@@ -3358,13 +3386,13 @@ class No extends lt {
3358
3386
  <!-- Labels for tabs -->
3359
3387
  ${Ye(
3360
3388
  e,
3361
- (r, s) => x`
3389
+ (o, s) => x`
3362
3390
  <label
3363
3391
  class=${T(this, Oe).call(this, s)}
3364
3392
  @click=${() => this.selectedTab = s}
3365
3393
  >
3366
3394
  <!-- Customizable icon for each tab -->
3367
- <slot name=${`${r}-icon`}>${r}</slot>
3395
+ <slot name=${`${o}-icon`}>${o}</slot>
3368
3396
  </label>
3369
3397
  `
3370
3398
  )}
@@ -3373,10 +3401,10 @@ class No extends lt {
3373
3401
  <!-- Icons for actions -->
3374
3402
  ${Ye(
3375
3403
  n,
3376
- (r) => x`
3404
+ (o) => x`
3377
3405
  <span>
3378
3406
  <!-- Customizable icon for each action -->
3379
- <slot name=${`${r}-icon`}>${r}</slot>
3407
+ <slot name=${`${o}-icon`}>${o}</slot>
3380
3408
  </span>
3381
3409
  `
3382
3410
  )}
@@ -3390,20 +3418,20 @@ class No extends lt {
3390
3418
  <!-- Content for each tab -->
3391
3419
  ${Ye(
3392
3420
  e,
3393
- (r, s) => x`
3421
+ (o, s) => x`
3394
3422
  ${G(
3395
3423
  this.toolsAsList,
3396
3424
  () => x`
3397
3425
  <label>
3398
3426
  <!-- Customizable icon for each tab -->
3399
- <slot name=${`${r}-icon`}>${r}</slot>
3400
- <span>${r}</span>
3427
+ <slot name=${`${o}-icon`}>${o}</slot>
3428
+ <span>${o}</span>
3401
3429
  </label>
3402
3430
  `
3403
3431
  )}
3404
3432
  <div class="tab ${T(this, Oe).call(this, s)}">
3405
3433
  <!-- Content slot for each tab -->
3406
- <slot name=${`${r}-content`}>${r}</slot>
3434
+ <slot name=${`${o}-content`}>${o}</slot>
3407
3435
  </div>
3408
3436
  `
3409
3437
  )}
@@ -3412,8 +3440,8 @@ class No extends lt {
3412
3440
  `;
3413
3441
  }
3414
3442
  }
3415
- Oe = new WeakMap(), ui = new WeakMap(), ci = new WeakMap(), // Define static properties for the component
3416
- F(No, "properties", {
3443
+ Oe = new WeakMap(), ci = new WeakMap(), ui = new WeakMap(), // Define static properties for the component
3444
+ F(Ir, "properties", {
3417
3445
  actions: { attribute: !1 },
3418
3446
  selectedTab: { state: !0 },
3419
3447
  tabs: { attribute: !1 },
@@ -3421,262 +3449,10 @@ F(No, "properties", {
3421
3449
  noShadow: { type: Boolean },
3422
3450
  toolsAsList: { type: Boolean }
3423
3451
  });
3424
- customElements.define("eox-layercontrol-tools-items", No);
3425
- const oa = `
3426
- button,
3427
- .button {
3428
- /* TODO: why does this only work here and not from :root? */
3429
- --primary-color: #004170;
3430
- --primary-color-hover: #004170CC;
3431
- --error-color: #FF5252;
3432
-
3433
- display: inline-flex;
3434
- position: relative;
3435
- align-items: center;
3436
- color: #fff;
3437
- border-width: 0;
3438
- outline: none;
3439
- border-radius: 4px;
3440
- padding: 16px;
3441
- height: 36px;
3442
- cursor: pointer;
3443
- font-family: inherit;
3444
- font-size: 0.875rem;
3445
- text-transform: uppercase;
3446
- letter-spacing: 1.25px;
3447
- font-weight: 500;
3448
- box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
3449
- transition-property: box-shadow, transform, opacity, background;
3450
- transition-duration: 0.28s;
3451
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
3452
- }
3453
-
3454
- button:hover:not([disabled]):not(.icon),
3455
- .button:hover:not([disabled]):not(.icon) {
3456
- box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
3457
- background: var(--primary-color-hover);
3458
- }
3459
-
3460
- button, button:active,
3461
- .button, .button:active {
3462
- background: var(--primary-color);
3463
- }
3464
-
3465
- button[disabled],
3466
- .button[disabled] {
3467
- opacity: 0.5;
3468
- cursor: not-allowed;
3469
- }
3470
-
3471
- button.block,
3472
- .button.block {
3473
- display: block;
3474
- }
3475
-
3476
- button.outline,
3477
- .button.outline {
3478
- background: transparent;
3479
- box-shadow: none;
3480
- color: var(--primary-color);
3481
- outline: 1px solid var(--primary-color);
3482
- }
3483
-
3484
- button.outline:hover,
3485
- .button.outline:hover {
3486
- background: transparent;
3487
- }
3488
-
3489
- button.icon,
3490
- .button.icon {
3491
- background: transparent;
3492
- border: none;
3493
- box-shadow: none;
3494
- padding: 0;
3495
- border-radius: 50%;
3496
- width: 24px;
3497
- height: 24px;
3498
- text-indent: -9999px;
3499
- }
3500
-
3501
- button.icon-text,
3502
- .button.icon-text {
3503
- text-indent: 26px;
3504
- }
3505
-
3506
- button.icon-text.block,
3507
- .button.icon-text.block {
3508
- text-indent: 20px;
3509
- }
3510
-
3511
- button.icon:before, button.icon-text:before,
3512
- .button.icon:before, .button.icon-text:before {
3513
- position: absolute;
3514
- text-indent: 0;
3515
- line-height: initial;
3516
- }
3517
-
3518
- button.icon-text.block:before,
3519
- .button.icon-text.block:before {
3520
- text-indent: -54px;
3521
- }
3522
-
3523
- button.icon:before,
3524
- .button.icon:before {
3525
- width: 24px;
3526
- height: 24px;
3527
- margin-right: 0;
3528
- }
3529
-
3530
- button.icon-text:before,
3531
- .button.icon-text:before {
3532
- width: 18px;
3533
- height: 18px;
3534
- }
3535
-
3536
- button.small,
3537
- .button.small {
3538
- height: 28px;
3539
- padding: 12.4px;
3540
- font-size: .75rem;
3541
- }
3542
-
3543
- button.smallest.icon,
3544
- button.smallest.icon::before {
3545
- height: 16px;
3546
- width: 16px;
3547
- padding: 0px;
3548
- }
3549
- `, ra = `
3550
- input[type=radio] {
3551
- appearance: none;
3552
- -webkit-appearance: none;
3553
- margin: 0;
3554
- cursor: pointer;
3555
- display: flex;
3556
- flex-direction: row;
3557
- align-items: center;
3558
- width: 24px;
3559
- height: 24px;
3560
- }
3561
-
3562
- label span {
3563
- font-size: small;
3564
- }
3565
-
3566
- input[type=radio]:after {
3567
- display: block;
3568
- content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E");
3569
- width: 20px;
3570
- height: 20px;
3571
- margin-right: 4px;
3572
- }
3573
- input[type=radio]:checked:after {
3574
- 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");
3575
-
3576
- }
3577
- `, Ho = `
3578
- input[type=checkbox] {
3579
- appearance: none;
3580
- -webkit-appearance: none;
3581
- margin: 0;
3582
- cursor: pointer;
3583
- display: flex;
3584
- flex-direction: row;
3585
- align-items: center;
3586
- width: 24px;
3587
- height: 24px;
3588
- }
3589
- input[type=checkbox]:after {
3590
- display: block;
3591
- content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E");
3592
- width: 20px;
3593
- height: 20px;
3594
- margin-right: 4px;
3595
- }
3596
- input[type=checkbox]:checked:after {
3597
- 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");
3598
-
3599
- }
3600
- `, sa = `
3601
- input[type="range"] {
3602
- -webkit-appearance: none;
3603
- width: 90%;
3604
- margin-left: 5%;
3605
- height: 6px;
3606
- border-radius: 5px;
3607
- background: #d7dcdf;
3608
- outline: none;
3609
- padding: 0;
3610
- }
3611
- input[type="range"]::-webkit-slider-thumb {
3612
- appearance: none;
3613
- width: 15px;
3614
- height: 15px;
3615
- border-radius: 50%;
3616
- background: #2c3e50;
3617
- cursor: pointer;
3618
- transition: background 0.15s ease-in-out;
3619
- }
3620
- .range-slider {
3621
- margin: 60px 0 0 0;
3622
- }
3623
- .range-slider {
3624
- width: 100%;
3625
- }
3626
- input[type="range"]::-webkit-slider-thumb:hover {
3627
- background: #00416F;
3628
- }
3629
- input[type="range"]:active::-webkit-slider-thumb {
3630
- background: #00416F;
3631
- }
3632
- input[type="range"]::-moz-range-thumb {
3633
- width: 15px;
3634
- height: 15px;
3635
- border: 0;
3636
- border-radius: 50%;
3637
- background: #2c3e50;
3638
- cursor: pointer;
3639
- transition: background 0.15s ease-in-out;
3640
- }
3641
- input[type="range"]::-moz-range-thumb:hover {
3642
- background: #00416F;
3643
- }
3644
- input[type="range"]:active::-moz-range-thumb {
3645
- background: #00416F;
3646
- }
3647
- input[type="range"]:focus::-webkit-slider-thumb {
3648
- box-shadow: 0 0 0 3px #fff0, 0 0 0 6px #00416F00;
3649
- }
3650
- .range-slider__value {
3651
- display: inline-block;
3652
- position: relative;
3653
- width: 60px;
3654
- color: #fff;
3655
- line-height: 20px;
3656
- text-align: center;
3657
- border-radius: 3px;
3658
- background: #2c3e50;
3659
- padding: 5px 10px;
3660
- margin-left: 8px;
3661
- }
3662
- .range-slider__value:after {
3663
- position: absolute;
3664
- top: 8px;
3665
- left: -7px;
3666
- width: 0;
3667
- height: 0;
3668
- border-top: 7px solid transparent;
3669
- border-right: 7px solid #2c3e50;
3670
- border-bottom: 7px solid transparent;
3671
- content: '';
3672
- }
3673
-
3674
- input::-moz-focus-inner, input::-moz-focus-outer {
3675
- border: 0;
3676
- }
3677
- `;
3452
+ customElements.define("eox-layercontrol-tools-items", Ir);
3453
+ const ra = "button,.button { /* TODO: why does this only work here and not from :root? */ --primary-color: #004170; --primary-color-hover: #004170cc; --error-color: #ff5252; display: inline-flex; position: relative; align-items: center; color: #fff; border-width: 0; outline: none; border-radius: 4px; padding: 16px; height: 36px; cursor: pointer; font-family: inherit; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 500; box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); transition-property: box-shadow, transform, opacity, background; transition-duration: 0.28s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);}button:hover:not([disabled]):not(.icon),.button:hover:not([disabled]):not(.icon) { box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); background: var(--primary-color-hover);}button,button:active,.button,.button:active { background: var(--primary-color);}button[disabled],.button[disabled] { opacity: 0.5; cursor: not-allowed;}button.block,.button.block { display: block;}button.outline,.button.outline { background: transparent; box-shadow: none; color: var(--primary-color); outline: 1px solid var(--primary-color);}button.outline:hover,.button.outline:hover { background: transparent;}button.icon,.button.icon { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 50%; width: 24px; height: 24px; text-indent: -9999px;}button.icon-text,.button.icon-text { text-indent: 26px;}button.icon-text.block,.button.icon-text.block { text-indent: 20px;}button.icon:before,button.icon-text:before,.button.icon:before,.button.icon-text:before { position: absolute; text-indent: 0; line-height: initial;}button.icon-text.block:before,.button.icon-text.block:before { text-indent: -54px;}button.icon:before,.button.icon:before { width: 24px; height: 24px; margin-right: 0;}button.icon-text:before,.button.icon-text:before { width: 18px; height: 18px;}button.small,.button.small { height: 28px; padding: 12.4px; font-size: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0px;}", oa = `input[type="radio"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}label span { font-size: small;}input[type="radio"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="radio"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");}`, Nr = `input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}input[type="checkbox"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="checkbox"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");}`, sa = ':root,:host { --range-slider-height: 6px; --range-slider-thumb-size: 15px; --range-slider-thumb-border-radius: 50%; --range-slider-color: #004170; --range-slider-track-color: #d7dcdf; --range-slider-track-border-radius: 0;}input[type="range"] { -webkit-appearance: none; border: none; color: var(--range-slider-color); overflow: hidden; padding-left: 0; margin-left: 7px;}/*webkit*/input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: var(--range-slider-thumb-size); height: var(--range-slider-thumb-size); border-radius: var(--range-slider-thumb-border-radius); background: var(--range-slider-color); border: none; box-shadow: none; margin-top: calc( var(--range-slider-height) * 0.5 - var(--range-slider-thumb-size) * 0.5 );}input[type="range"]::-webkit-slider-runnable-track { height: var(--range-slider-height); border: none; border-radius: var(--range-slider-track-border-radius); background: var(--range-slider-track-color); box-shadow: none;}input[type="range"]::-webkit-slider-thumb { cursor: grab; --clip-edges: 4px; --clip-top: calc( (var(--range-slider-thumb-size) - var(--range-slider-height)) * 0.5 ); --clip-bottom: calc(var(--range-slider-thumb-size) - var(--clip-top)); --clip-further: calc(100% + 1px); --box-fill: calc( -100vmax - var(--range-slider-thumb-size, var(--range-slider-thumb-size)) + 1px ) 0 0 100vmax currentColor; background: linear-gradient(currentColor 0 0) scroll no-repeat left center / 50% calc(var(--range-slider-height) + 1px); background-color: currentColor; box-shadow: var(--box-fill); border-radius: var(--range-slider-thumb-size, var(--range-slider-thumb-size)); filter: brightness(100%); clip-path: polygon( 100% -1px, var(--clip-edges) -1px, 0 var(--clip-top), -100vmax var(--clip-top), -100vmax var(--clip-bottom), 0 var(--clip-bottom), var(--clip-edges) 100%, var(--clip-further) var(--clip-further) );}/*mozilla*/input[type="range"]::-moz-range-thumb { width: var(--range-slider-thumb-size); height: var(--range-slider-thumb-size); border-radius: var(--range-slider-thumb-border-radius); background: var(--range-slider-color); border: none; box-shadow: none; cursor: grab;}input[type="range"]::-moz-range-track { border: none; border-radius: var(--range-slider-track-border-radius); background: var(--range-slider-track-color); box-shadow: none;}input[type="range"]::-moz-range-progress { appearance: none; background: currentColor; transition-delay: 30ms;}input[type="range"]::-moz-range-track,input[type="range"]::-moz-range-progress { height: calc(var(--range-slider-height)); border-radius: var(--range-slider-track-border-radius);}/*toolcool slider*/tc-range-slider { --height: var(--range-slider-height); --panel-bg: var(--range-slider-track-color); --panel-bg-hover: var(--range-slider-track-color); --panel-bg-fill: var(--range-slider-color); --panel-bg-border-radius: var(--range-slider-track-border-radius); --pointer-bg: var(--range-slider-color); --pointer-bg-hover: var(--range-slider-color); --pointer-bg-focus: var(--range-slider-color); --pointer-width: var(--range-slider-thumb-size); --pointer-height: var(--range-slider-thumb-size); --pointer-shadow: none; --pointer-shadow-hover: none; --pointer-shadow-focus: none; --pointer-border: none; --pointer-border-hover: 0; --pointer-border-focus: 0; --pointer-border-radius: var(--range-slider-thumb-border-radius);}';
3678
3454
  var hi, pi;
3679
- class Vo extends lt {
3455
+ class Hr extends lt {
3680
3456
  constructor() {
3681
3457
  super();
3682
3458
  // Initializes '_removeButton' invoking 'removeButton' function with 'this' context.
@@ -3704,7 +3480,7 @@ class Vo extends lt {
3704
3480
  min="0"
3705
3481
  max="1"
3706
3482
  step="0.01"
3707
- value=${Po((e = this.layer) == null ? void 0 : e.getOpacity())}
3483
+ value=${Dr((e = this.layer) == null ? void 0 : e.getOpacity())}
3708
3484
  @input=${(n) => this.layer.setOpacity(parseFloat(n.target.value))}
3709
3485
  />
3710
3486
  </div>
@@ -3762,9 +3538,9 @@ class Vo extends lt {
3762
3538
  });
3763
3539
  P(this, hi, "");
3764
3540
  P(this, pi, `
3765
- ${oa}
3766
- ${ra}
3767
- ${Ho}
3541
+ ${ra}
3542
+ ${oa}
3543
+ ${Nr}
3768
3544
  ${sa}
3769
3545
  .drag-handle {
3770
3546
  cursor: n-resize;
@@ -3893,10 +3669,10 @@ class Vo extends lt {
3893
3669
  }
3894
3670
  render() {
3895
3671
  var l;
3896
- const e = Gs(this.tools, this.layer), n = Js(this.tools, this.layer), o = this[`_${e == null ? void 0 : e[0]}Button`] ? (
3672
+ const e = Gs(this.tools, this.layer), n = Js(this.tools, this.layer), r = this[`_${e == null ? void 0 : e[0]}Button`] ? (
3897
3673
  // @ts-expect-error TODO
3898
3674
  this[`_${e == null ? void 0 : e[0]}Button`]()
3899
- ) : O, r = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", s = e == null ? void 0 : e.length, a = n == null ? void 0 : n.length;
3675
+ ) : L, o = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", s = e == null ? void 0 : e.length, a = n == null ? void 0 : n.length;
3900
3676
  return x`
3901
3677
  <style>
3902
3678
  ${T(this, hi)}
@@ -3909,16 +3685,16 @@ class Vo extends lt {
3909
3685
  s === 1 && a === 0,
3910
3686
  () => x`
3911
3687
  <div class="single-action-container">
3912
- <div class="single-action">${o}</div>
3688
+ <div class="single-action">${r}</div>
3913
3689
  </div>
3914
3690
  `,
3915
3691
  () => x`
3916
3692
  <details
3917
3693
  class="tools"
3918
- open=${this.layer.get("layerControlToolsExpand") || O}
3694
+ open=${this.layer.get("layerControlToolsExpand") || L}
3919
3695
  >
3920
3696
  <summary>
3921
- <button class="icon ${r}">Tools</button>
3697
+ <button class="icon ${o}">Tools</button>
3922
3698
  </summary>
3923
3699
  <eox-layercontrol-tools-items
3924
3700
  class="${this.toolsAsList ? "tools-list" : "tools-tab"}"
@@ -3942,7 +3718,7 @@ class Vo extends lt {
3942
3718
  }
3943
3719
  }
3944
3720
  hi = new WeakMap(), pi = new WeakMap(), // Define static properties for the component
3945
- F(Vo, "properties", {
3721
+ F(Hr, "properties", {
3946
3722
  layer: { attribute: !1 },
3947
3723
  tools: { attribute: !1 },
3948
3724
  unstyled: { type: Boolean },
@@ -3951,7 +3727,7 @@ F(Vo, "properties", {
3951
3727
  });
3952
3728
  customElements.define(
3953
3729
  "eox-layercontrol-layer-tools",
3954
- Vo
3730
+ Hr
3955
3731
  );
3956
3732
  const aa = (i) => {
3957
3733
  const t = () => {
@@ -3965,7 +3741,7 @@ const aa = (i) => {
3965
3741
  new CustomEvent("change:resolution", { bubbles: !0 })
3966
3742
  ));
3967
3743
  };
3968
- Co(
3744
+ _r(
3969
3745
  i.layer,
3970
3746
  i.showLayerZoomState
3971
3747
  ) && (t(), i.map.getView().on("change:resolution", () => t()));
@@ -3973,18 +3749,18 @@ const aa = (i) => {
3973
3749
  const e = t.layer;
3974
3750
  e.setVisible(i.target.checked), i.target.checked && e.get("layerControlExclusive") && t.closest(
3975
3751
  ".layers > ul"
3976
- ).querySelectorAll("eox-layercontrol-layer").forEach((o) => {
3977
- var r;
3978
- o.layer !== e && ((r = o.layer) != null && r.get("layerControlExclusive")) && (o.layer.setVisible(!1), o.requestUpdate());
3752
+ ).querySelectorAll("eox-layercontrol-layer").forEach((r) => {
3753
+ var o;
3754
+ r.layer !== e && ((o = r.layer) != null && o.get("layerControlExclusive")) && (r.layer.setVisible(!1), r.requestUpdate());
3979
3755
  }), t.dispatchEvent(
3980
3756
  new CustomEvent("changed", { bubbles: !0, detail: e })
3981
3757
  ), t.requestUpdate();
3982
3758
  };
3983
- var Et, oe, ko, fi, gi;
3984
- class Bo extends lt {
3759
+ var $t, oe, Vr, fi, gi;
3760
+ class kr extends lt {
3985
3761
  constructor() {
3986
3762
  super();
3987
- P(this, Et);
3763
+ P(this, $t);
3988
3764
  /**
3989
3765
  * Represents the current layer visibility based on zoom level.
3990
3766
  *
@@ -3993,7 +3769,7 @@ class Bo extends lt {
3993
3769
  F(this, "currLayerVisibilityBasedOnZoom", !0);
3994
3770
  P(this, fi, "");
3995
3771
  P(this, gi, `
3996
- ${Ho}
3772
+ ${Nr}
3997
3773
  eox-layercontrol-layer {
3998
3774
  width: 100%;
3999
3775
  position: relative;
@@ -4074,7 +3850,7 @@ class Bo extends lt {
4074
3850
  */
4075
3851
  render() {
4076
3852
  var l;
4077
- const e = this.layer.getVisible(), n = e ? "visible" : "", o = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", r = j(this, Et, oe).call(this, "layerControlDisable") ? "disabled" : "", s = j(this, Et, oe).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
3853
+ const e = this.layer.getVisible(), n = e ? "visible" : "", r = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", o = j(this, $t, oe).call(this, "layerControlDisable") ? "disabled" : "", s = j(this, $t, oe).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
4078
3854
  return x`
4079
3855
  <style>
4080
3856
  ${T(this, fi)}
@@ -4084,21 +3860,21 @@ class Bo extends lt {
4084
3860
  this.layer,
4085
3861
  () => x`
4086
3862
  <!-- Render the layer -->
4087
- <div class="layer ${n} ${o}">
4088
- <label class="drag-handle ${r}">
3863
+ <div class="layer ${n} ${r}">
3864
+ <label class="drag-handle ${o}">
4089
3865
  <!-- Input element for layer visibility -->
4090
3866
  <input
4091
3867
  type=${s}
4092
- .checked=${Po(e)}
4093
- @click=${j(this, Et, ko)}
3868
+ .checked=${Dr(e)}
3869
+ @click=${j(this, $t, Vr)}
4094
3870
  />
4095
3871
 
4096
3872
  <!-- Layer title -->
4097
3873
  <span
4098
- class="title ${j(this, Et, oe).call(this, "color") ? "color-swatch" : ""}"
4099
- style="--layer-color: ${j(this, Et, oe).call(this, "color")}"
3874
+ class="title ${j(this, $t, oe).call(this, "color") ? "color-swatch" : ""}"
3875
+ style="--layer-color: ${j(this, $t, oe).call(this, "color")}"
4100
3876
  >
4101
- ${j(this, Et, oe).call(this, this.titleProperty)}
3877
+ ${j(this, $t, oe).call(this, this.titleProperty)}
4102
3878
  </span>
4103
3879
  ${G(
4104
3880
  a,
@@ -4120,7 +3896,7 @@ class Bo extends lt {
4120
3896
  `;
4121
3897
  }
4122
3898
  }
4123
- Et = new WeakSet(), /**
3899
+ $t = new WeakSet(), /**
4124
3900
  * Private method to get layer property by key if available.
4125
3901
  *
4126
3902
  * @param {string} key - The key for the layer property.
@@ -4134,10 +3910,10 @@ oe = function(e) {
4134
3910
  *
4135
3911
  * @param {{target: { checked: boolean }}} evt - The input change event.
4136
3912
  */
4137
- ko = function(e) {
3913
+ Vr = function(e) {
4138
3914
  la(e, this);
4139
3915
  }, fi = new WeakMap(), gi = new WeakMap(), // Define static properties for the component
4140
- F(Bo, "properties", {
3916
+ F(kr, "properties", {
4141
3917
  layer: { attribute: !1 },
4142
3918
  map: { attribute: !1, state: !0 },
4143
3919
  titleProperty: { attribute: "title-property", type: String },
@@ -4147,9 +3923,9 @@ F(Bo, "properties", {
4147
3923
  noShadow: { type: Boolean },
4148
3924
  toolsAsList: { type: Boolean }
4149
3925
  });
4150
- customElements.define("eox-layercontrol-layer", Bo);
3926
+ customElements.define("eox-layercontrol-layer", kr);
4151
3927
  var mi, yi;
4152
- class Uo extends lt {
3928
+ class Br extends lt {
4153
3929
  constructor() {
4154
3930
  super();
4155
3931
  P(this, mi, "");
@@ -4192,10 +3968,10 @@ class Uo extends lt {
4192
3968
  * Renders a layer control group with expandable details containing layers.
4193
3969
  */
4194
3970
  render() {
4195
- var o, r;
4196
- const e = !!((o = this.group) != null && o.get("layerControlExpand")), n = (r = Do(
3971
+ var r, o;
3972
+ const e = !!((r = this.group) != null && r.get("layerControlExpand")), n = (o = Tr(
4197
3973
  this.group.getLayers()
4198
- )) == null ? void 0 : r.length;
3974
+ )) == null ? void 0 : o.length;
4199
3975
  return x`
4200
3976
  <style>
4201
3977
  ${T(this, mi)}
@@ -4206,7 +3982,7 @@ class Uo extends lt {
4206
3982
  () => x`
4207
3983
  <!-- Render the details element with the layer control -->
4208
3984
  <details
4209
- open=${e || O}
3985
+ open=${e || L}
4210
3986
  data-children-length=${n}
4211
3987
  >
4212
3988
  <summary>
@@ -4244,7 +4020,7 @@ class Uo extends lt {
4244
4020
  }
4245
4021
  }
4246
4022
  mi = new WeakMap(), yi = new WeakMap(), // Define static properties for the component
4247
- F(Uo, "properties", {
4023
+ F(Br, "properties", {
4248
4024
  group: { attribute: !1 },
4249
4025
  idProperty: { attribute: "id-property" },
4250
4026
  map: { attribute: !1, state: !0 },
@@ -4257,98 +4033,98 @@ F(Uo, "properties", {
4257
4033
  });
4258
4034
  customElements.define(
4259
4035
  "eox-layercontrol-layer-group",
4260
- Uo
4036
+ Br
4261
4037
  );
4262
4038
  var Zi, Un;
4263
4039
  function da() {
4264
4040
  if (Un) return Zi;
4265
4041
  Un = 1;
4266
- var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, r = /^0b[01]+$/i, s = /^0o[0-7]+$/i, a = parseInt, l = typeof Bt == "object" && Bt && Bt.Object === Object && Bt, d = typeof self == "object" && self && self.Object === Object && self, c = l || d || Function("return this")(), u = Object.prototype, p = u.toString, f = Math.max, g = Math.min, b = function() {
4267
- return c.Date.now();
4042
+ var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, r = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, s = /^0o[0-7]+$/i, a = parseInt, l = typeof Bt == "object" && Bt && Bt.Object === Object && Bt, d = typeof self == "object" && self && self.Object === Object && self, u = l || d || Function("return this")(), c = Object.prototype, p = c.toString, f = Math.max, g = Math.min, b = function() {
4043
+ return u.Date.now();
4268
4044
  };
4269
- function N($, m, _) {
4270
- var M, L, q, X, H, R, Z = 0, dt = !1, tt = !1, ut = !0;
4271
- if (typeof $ != "function")
4045
+ function N(E, m, A) {
4046
+ var M, O, q, X, H, R, Z = 0, dt = !1, tt = !1, ct = !0;
4047
+ if (typeof E != "function")
4272
4048
  throw new TypeError(i);
4273
- m = K(m) || 0, J(_) && (dt = !!_.leading, tt = "maxWait" in _, q = tt ? f(K(_.maxWait) || 0, m) : q, ut = "trailing" in _ ? !!_.trailing : ut);
4274
- function gt(B) {
4275
- var I = M, ct = L;
4276
- return M = L = void 0, Z = B, X = $.apply(ct, I), X;
4049
+ m = K(m) || 0, J(A) && (dt = !!A.leading, tt = "maxWait" in A, q = tt ? f(K(A.maxWait) || 0, m) : q, ct = "trailing" in A ? !!A.trailing : ct);
4050
+ function gt(V) {
4051
+ var I = M, ut = O;
4052
+ return M = O = void 0, Z = V, X = E.apply(ut, I), X;
4277
4053
  }
4278
- function Ut(B) {
4279
- return Z = B, H = setTimeout(_t, m), dt ? gt(B) : X;
4054
+ function Ft(V) {
4055
+ return Z = V, H = setTimeout(At, m), dt ? gt(V) : X;
4280
4056
  }
4281
- function Ie(B) {
4282
- var I = B - R, ct = B - Z, Rt = m - I;
4283
- return tt ? g(Rt, q - ct) : Rt;
4057
+ function Ne(V) {
4058
+ var I = V - R, ut = V - Z, Rt = m - I;
4059
+ return tt ? g(Rt, q - ut) : Rt;
4284
4060
  }
4285
- function Ft(B) {
4286
- var I = B - R, ct = B - Z;
4287
- return R === void 0 || I >= m || I < 0 || tt && ct >= q;
4061
+ function jt(V) {
4062
+ var I = V - R, ut = V - Z;
4063
+ return R === void 0 || I >= m || I < 0 || tt && ut >= q;
4288
4064
  }
4289
- function _t() {
4290
- var B = b();
4291
- if (Ft(B))
4292
- return jt(B);
4293
- H = setTimeout(_t, Ie(B));
4065
+ function At() {
4066
+ var V = b();
4067
+ if (jt(V))
4068
+ return zt(V);
4069
+ H = setTimeout(At, Ne(V));
4294
4070
  }
4295
- function jt(B) {
4296
- return H = void 0, ut && M ? gt(B) : (M = L = void 0, X);
4071
+ function zt(V) {
4072
+ return H = void 0, ct && M ? gt(V) : (M = O = void 0, X);
4297
4073
  }
4298
- function Ne() {
4299
- H !== void 0 && clearTimeout(H), Z = 0, M = R = L = H = void 0;
4074
+ function He() {
4075
+ H !== void 0 && clearTimeout(H), Z = 0, M = R = O = H = void 0;
4300
4076
  }
4301
- function Ai() {
4302
- return H === void 0 ? X : jt(b());
4077
+ function _i() {
4078
+ return H === void 0 ? X : zt(b());
4303
4079
  }
4304
- function he() {
4305
- var B = b(), I = Ft(B);
4306
- if (M = arguments, L = this, R = B, I) {
4080
+ function pe() {
4081
+ var V = b(), I = jt(V);
4082
+ if (M = arguments, O = this, R = V, I) {
4307
4083
  if (H === void 0)
4308
- return Ut(R);
4084
+ return Ft(R);
4309
4085
  if (tt)
4310
- return H = setTimeout(_t, m), gt(R);
4086
+ return H = setTimeout(At, m), gt(R);
4311
4087
  }
4312
- return H === void 0 && (H = setTimeout(_t, m)), X;
4088
+ return H === void 0 && (H = setTimeout(At, m)), X;
4313
4089
  }
4314
- return he.cancel = Ne, he.flush = Ai, he;
4090
+ return pe.cancel = He, pe.flush = _i, pe;
4315
4091
  }
4316
- function J($) {
4317
- var m = typeof $;
4318
- return !!$ && (m == "object" || m == "function");
4092
+ function J(E) {
4093
+ var m = typeof E;
4094
+ return !!E && (m == "object" || m == "function");
4319
4095
  }
4320
- function U($) {
4321
- return !!$ && typeof $ == "object";
4096
+ function U(E) {
4097
+ return !!E && typeof E == "object";
4322
4098
  }
4323
- function st($) {
4324
- return typeof $ == "symbol" || U($) && p.call($) == e;
4099
+ function st(E) {
4100
+ return typeof E == "symbol" || U(E) && p.call(E) == e;
4325
4101
  }
4326
- function K($) {
4327
- if (typeof $ == "number")
4328
- return $;
4329
- if (st($))
4102
+ function K(E) {
4103
+ if (typeof E == "number")
4104
+ return E;
4105
+ if (st(E))
4330
4106
  return t;
4331
- if (J($)) {
4332
- var m = typeof $.valueOf == "function" ? $.valueOf() : $;
4333
- $ = J(m) ? m + "" : m;
4107
+ if (J(E)) {
4108
+ var m = typeof E.valueOf == "function" ? E.valueOf() : E;
4109
+ E = J(m) ? m + "" : m;
4334
4110
  }
4335
- if (typeof $ != "string")
4336
- return $ === 0 ? $ : +$;
4337
- $ = $.replace(n, "");
4338
- var _ = r.test($);
4339
- return _ || s.test($) ? a($.slice(2), _ ? 2 : 8) : o.test($) ? t : +$;
4111
+ if (typeof E != "string")
4112
+ return E === 0 ? E : +E;
4113
+ E = E.replace(n, "");
4114
+ var A = o.test(E);
4115
+ return A || s.test(E) ? a(E.slice(2), A ? 2 : 8) : r.test(E) ? t : +E;
4340
4116
  }
4341
4117
  return Zi = N, Zi;
4342
4118
  }
4343
- var ua = da();
4344
- const ca = /* @__PURE__ */ Oo(ua), ha = (i) => {
4345
- const { layers: t, idProperty: e, titleProperty: n, renderRoot: o } = i, r = ca(() => {
4119
+ var ca = da();
4120
+ const ua = /* @__PURE__ */ Pr(ca), ha = (i) => {
4121
+ const { layers: t, idProperty: e, titleProperty: n, renderRoot: r } = i, o = ua(() => {
4346
4122
  i.requestUpdate(), i.dispatchEvent(
4347
4123
  new CustomEvent("changed", { bubbles: !0 })
4348
4124
  );
4349
- }, 50), s = () => r();
4125
+ }, 50), s = () => o();
4350
4126
  if (t && (t.hasListener("change:length") && (t == null || t.un("change:length", s)), t.on("change:length", s), t)) {
4351
- const a = o.querySelector("ul");
4127
+ const a = r.querySelector("ul");
4352
4128
  Fs(
4353
4129
  t,
4354
4130
  e,
@@ -4358,7 +4134,7 @@ const ca = /* @__PURE__ */ Oo(ua), ha = (i) => {
4358
4134
  }
4359
4135
  };
4360
4136
  var bi, vi;
4361
- class Fo extends lt {
4137
+ class Ur extends lt {
4362
4138
  constructor() {
4363
4139
  super();
4364
4140
  P(this, bi, "");
@@ -4409,7 +4185,7 @@ class Fo extends lt {
4409
4185
  * layer groups or individual layers accordingly. Utilizes conditional rendering and iterates through available layers.
4410
4186
  */
4411
4187
  render() {
4412
- const e = this.layers ? Do(this.layers).reverse() : [];
4188
+ const e = this.layers ? Tr(this.layers).reverse() : [];
4413
4189
  return x`
4414
4190
  <style>
4415
4191
  ${T(this, bi)}
@@ -4419,7 +4195,7 @@ class Fo extends lt {
4419
4195
  ${G(
4420
4196
  this.layers,
4421
4197
  () => x`
4422
- ${br(
4198
+ ${bo(
4423
4199
  e,
4424
4200
  (n) => n,
4425
4201
  (n) => x`
@@ -4466,7 +4242,7 @@ class Fo extends lt {
4466
4242
  }
4467
4243
  }
4468
4244
  bi = new WeakMap(), vi = new WeakMap(), // Define static properties for the component
4469
- F(Fo, "properties", {
4245
+ F(Ur, "properties", {
4470
4246
  idProperty: { attribute: "id-property" },
4471
4247
  layers: { attribute: !1 },
4472
4248
  map: { attribute: !1, state: !0 },
@@ -4477,7 +4253,7 @@ F(Fo, "properties", {
4477
4253
  noShadow: { type: Boolean },
4478
4254
  toolsAsList: { type: Boolean }
4479
4255
  });
4480
- customElements.define("eox-layercontrol-layer-list", Fo);
4256
+ customElements.define("eox-layercontrol-layer-list", Ur);
4481
4257
  const pa = (i) => {
4482
4258
  const t = i.querySelector(
4483
4259
  "select[name=optional]"
@@ -4486,22 +4262,22 @@ const pa = (i) => {
4486
4262
  "layerControlOptional",
4487
4263
  !0
4488
4264
  ).find(
4489
- (o) => (
4265
+ (r) => (
4490
4266
  // @ts-expect-error TODO
4491
- (o.get(i.idProperty) || o.ol_uid) === e
4267
+ (r.get(i.idProperty) || r.ol_uid) === e
4492
4268
  )
4493
4269
  );
4494
4270
  n == null || n.set("layerControlOptional", !1), n == null || n.setVisible(!0), i.dispatchEvent(
4495
4271
  new CustomEvent("changed", { bubbles: !0 })
4496
4272
  ), i.renderRoot.parentNode.querySelectorAll("eox-layercontrol-layer-list").forEach(
4497
- (o) => (
4273
+ (r) => (
4498
4274
  /** @type {import("lit").LitElement} */
4499
- o.requestUpdate()
4275
+ r.requestUpdate()
4500
4276
  )
4501
4277
  ), i.requestUpdate();
4502
4278
  };
4503
- var wi, zo;
4504
- class jo extends lt {
4279
+ var wi, jr;
4280
+ class Fr extends lt {
4505
4281
  constructor() {
4506
4282
  super();
4507
4283
  P(this, wi);
@@ -4537,13 +4313,13 @@ class jo extends lt {
4537
4313
 
4538
4314
  <!-- Mapping through filtered layers list to generate dropdown options -->
4539
4315
  ${e.map((n) => {
4540
- const o = n.get(this.idProperty) || n.ol_uid, r = n.get(this.titleProperty), s = `layer ${n.get(this.idProperty)}`;
4541
- return x` <option value="${o}">${r || s}</option> `;
4316
+ const r = n.get(this.idProperty) || n.ol_uid, o = n.get(this.titleProperty), s = `layer ${n.get(this.idProperty)}`;
4317
+ return x` <option value="${r}">${o || s}</option> `;
4542
4318
  })}
4543
4319
  </select>
4544
4320
 
4545
4321
  <!-- Button to handle adding layers -->
4546
- <button @click="${j(this, wi, zo)}">add</button>
4322
+ <button @click="${j(this, wi, jr)}">add</button>
4547
4323
  `;
4548
4324
  }
4549
4325
  }
@@ -4551,10 +4327,10 @@ wi = new WeakSet(), /**
4551
4327
  * Handles the addition of selected layers to a list.
4552
4328
  * Invokes the 'addToListMethod' with the current context.
4553
4329
  */
4554
- zo = function() {
4330
+ jr = function() {
4555
4331
  pa(this);
4556
4332
  }, // Define static properties for the component
4557
- F(jo, "properties", {
4333
+ F(Fr, "properties", {
4558
4334
  idProperty: { attribute: "id-property" },
4559
4335
  layers: { attribute: !1 },
4560
4336
  titleProperty: { attribute: "title-property", type: String },
@@ -4563,13 +4339,13 @@ F(jo, "properties", {
4563
4339
  });
4564
4340
  customElements.define(
4565
4341
  "eox-layercontrol-optional-list",
4566
- jo
4342
+ Fr
4567
4343
  );
4568
4344
  const fa = (i, t) => {
4569
4345
  t.jsonInput = i.target.value, t.requestUpdate();
4570
4346
  }, Fn = (i) => {
4571
4347
  const t = JSON.parse(
4572
- `{"data":${ho(i.jsonInput)}}`
4348
+ `{"data":${ur(i.jsonInput)}}`
4573
4349
  );
4574
4350
  Array.isArray(t.data) ? t.data.forEach((e) => {
4575
4351
  i.eoxMap.addOrUpdateLayer(e);
@@ -4583,7 +4359,7 @@ async function ma(i) {
4583
4359
  if (dn(t) === "XYZ")
4584
4360
  return { Name: t };
4585
4361
  try {
4586
- const e = await us(t);
4362
+ const e = await cs(t);
4587
4363
  i.wmsCapabilities = e;
4588
4364
  } catch {
4589
4365
  } finally {
@@ -4592,7 +4368,7 @@ async function ma(i) {
4592
4368
  return !1;
4593
4369
  }
4594
4370
  const ya = (i, t) => {
4595
- const { Name: e } = i, n = dn(t.urlInput) || "XYZ", o = {
4371
+ const { Name: e } = i, n = dn(t.urlInput) || "XYZ", r = {
4596
4372
  type: "Tile",
4597
4373
  properties: {
4598
4374
  id: e,
@@ -4609,12 +4385,12 @@ const ya = (i, t) => {
4609
4385
  }
4610
4386
  }
4611
4387
  };
4612
- t.jsonInput = JSON.stringify(o);
4388
+ t.jsonInput = JSON.stringify(r);
4613
4389
  }, ba = (i, t) => {
4614
4390
  t.open = i || null, t.urlInput = null, t.jsonInput = null, t.wmsCapabilities = null, t.requestUpdate();
4615
4391
  };
4616
- var it, qo, Xo, Qi, Yo, Wo, We, xi, Ei;
4617
- class Zo extends lt {
4392
+ var it, Zr, qr, Qi, Xr, Yr, We, xi, $i;
4393
+ class zr extends lt {
4618
4394
  constructor() {
4619
4395
  super();
4620
4396
  P(this, it);
@@ -4656,7 +4432,7 @@ class Zo extends lt {
4656
4432
  display: none;
4657
4433
  }
4658
4434
  `);
4659
- P(this, Ei, `
4435
+ P(this, $i, `
4660
4436
  .eox-add {
4661
4437
  background: #f0f2f5;
4662
4438
  border-top: 1px solid #0041701a;
@@ -4805,11 +4581,11 @@ class Zo extends lt {
4805
4581
  * Handles input fields, search, and addition of layers.
4806
4582
  */
4807
4583
  render() {
4808
- const e = this.open ? "open" : "close", n = this.open === "url", o = this.open === "json", r = !cs(this.urlInput) || this.searchLoad ? !0 : O;
4584
+ const e = this.open ? "open" : "close", n = this.open === "url", r = this.open === "json", o = !us(this.urlInput) || this.searchLoad ? !0 : L;
4809
4585
  return x`
4810
4586
  <style>
4811
4587
  ${T(this, xi)}
4812
- ${!this.unstyled && T(this, Ei)}
4588
+ ${!this.unstyled && T(this, $i)}
4813
4589
  </style>
4814
4590
  <div class="eox-add-layer-main">
4815
4591
  <div class="eox-add-layer-col">
@@ -4823,7 +4599,7 @@ class Zo extends lt {
4823
4599
  </li>
4824
4600
  <li
4825
4601
  @click=${() => j(this, it, We).call(this, "json")}
4826
- class="${o ? "active" : ""}"
4602
+ class="${r ? "active" : ""}"
4827
4603
  >
4828
4604
  JSON
4829
4605
  </li>
@@ -4846,14 +4622,14 @@ class Zo extends lt {
4846
4622
  class="add-url"
4847
4623
  placeholder="Add URL (WMS/XYZ)"
4848
4624
  .value="${this.urlInput}"
4849
- @input=${j(this, it, qo)}
4625
+ @input=${j(this, it, Zr)}
4850
4626
  >
4851
4627
  </input>
4852
4628
  <!-- Search button for URL -->
4853
4629
  <button
4854
4630
  class="search-icon"
4855
- disabled=${r}
4856
- @click=${j(this, it, Xo)}
4631
+ disabled=${o}
4632
+ @click=${j(this, it, qr)}
4857
4633
  >
4858
4634
  ${this.unstyled ? "Search" : ""}
4859
4635
  </button>
@@ -4881,21 +4657,21 @@ class Zo extends lt {
4881
4657
  `;
4882
4658
  }
4883
4659
  )}
4884
- </ul>` : O}
4660
+ </ul>` : L}
4885
4661
  ` : x`
4886
4662
  <!-- Textarea for JSON input -->
4887
4663
  <textarea
4888
4664
  class="add-layer-input"
4889
4665
  placeholder="Please put a valid eox-map layer JSON."
4890
- @input=${j(this, it, Wo)}
4666
+ @input=${j(this, it, Yr)}
4891
4667
  .value=${this.jsonInput}
4892
4668
  ></textarea>
4893
4669
 
4894
4670
  <!-- Button to add JSON layer -->
4895
4671
  <button
4896
4672
  class="add-layer-icon json-add-layer"
4897
- disabled=${hs(this.jsonInput) ? O : !0}
4898
- @click=${j(this, it, Yo)}
4673
+ disabled=${hs(this.jsonInput) ? L : !0}
4674
+ @click=${j(this, it, Xr)}
4899
4675
  >
4900
4676
  ${this.unstyled ? "Add JSON" : ""}
4901
4677
  </button>
@@ -4911,9 +4687,9 @@ it = new WeakSet(), /**
4911
4687
  *
4912
4688
  * @param {Event} evt - The input change event triggering the method.
4913
4689
  */
4914
- qo = function(e) {
4690
+ Zr = function(e) {
4915
4691
  ga(e, this);
4916
- }, Xo = async function() {
4692
+ }, qr = async function() {
4917
4693
  const e = await ma(this);
4918
4694
  e && j(this, it, Qi).call(this, e);
4919
4695
  }, /**
@@ -4926,14 +4702,14 @@ Qi = function(e) {
4926
4702
  }, /**
4927
4703
  * Initiates the addition of layers, triggering the handleAddLayerMethod.
4928
4704
  */
4929
- Yo = function() {
4705
+ Xr = function() {
4930
4706
  Fn(this);
4931
4707
  }, /**
4932
4708
  * Handles input field changes by invoking the 'handleJsonInputChangeMethod'.
4933
4709
  *
4934
4710
  * @param {{target: { value: string }}} evt - The input change event triggering the method.
4935
4711
  */
4936
- Wo = function(e) {
4712
+ Yr = function(e) {
4937
4713
  fa(e, this);
4938
4714
  }, /**
4939
4715
  * Handles tab changes by invoking the 'openCloseTabMethod'.
@@ -4942,13 +4718,13 @@ Wo = function(e) {
4942
4718
  */
4943
4719
  We = function(e) {
4944
4720
  ba(e, this);
4945
- }, xi = new WeakMap(), Ei = new WeakMap(), // Define static properties for the component
4946
- F(Zo, "properties", {
4721
+ }, xi = new WeakMap(), $i = new WeakMap(), // Define static properties for the component
4722
+ F(zr, "properties", {
4947
4723
  eoxMap: { attribute: !1, state: !0 },
4948
4724
  unstyled: { type: Boolean },
4949
4725
  noShadow: { type: Boolean }
4950
4726
  });
4951
- customElements.define("eox-layercontrol-add-layers", Zo);
4727
+ customElements.define("eox-layercontrol-add-layers", zr);
4952
4728
  const va = (i, t) => {
4953
4729
  if (t.requestUpdate(), i.target.tagName === "EOX-LAYERCONTROL-LAYER-TOOLS") {
4954
4730
  const e = t.renderRoot.querySelector(
@@ -4964,8 +4740,8 @@ const va = (i, t) => {
4964
4740
  const t = wa(i.for);
4965
4741
  return t && t.map !== i.map && (i.map = t.map), t;
4966
4742
  };
4967
- var Ht, ue, Jo, Ko, $i;
4968
- class Go extends lt {
4743
+ var kt, ue, Gr, Jr, Ei;
4744
+ class Wr extends lt {
4969
4745
  // Constructor to set default values for properties
4970
4746
  constructor() {
4971
4747
  super();
@@ -4975,8 +4751,8 @@ class Go extends lt {
4975
4751
  *
4976
4752
  * @type {import("../../map/src/main").EOxMap}
4977
4753
  */
4978
- P(this, Ht);
4979
- P(this, $i, `
4754
+ P(this, kt);
4755
+ P(this, Ei, `
4980
4756
  :host, :root {
4981
4757
  font-family: Roboto, sans-serif;
4982
4758
  --padding: 0.5rem;
@@ -5011,28 +4787,28 @@ class Go extends lt {
5011
4787
  e.has("for") && (this.eoxMap = jn(this));
5012
4788
  }
5013
4789
  get eoxMap() {
5014
- return T(this, Ht);
4790
+ return T(this, kt);
5015
4791
  }
5016
4792
  set eoxMap(e) {
5017
- const n = T(this, Ht);
5018
- Qt(this, Ht, e), this.requestUpdate("eoxMap", n);
4793
+ const n = T(this, kt);
4794
+ te(this, kt, e), this.requestUpdate("eoxMap", n);
5019
4795
  }
5020
4796
  render() {
5021
- var o, r, s;
5022
- const e = (o = this.map) == null ? void 0 : o.getLayers().getArray(), n = e && ((r = fn(e, "layerControlOptional", !0)) == null ? void 0 : r.length) > 0;
4797
+ var r, o, s;
4798
+ const e = (r = this.map) == null ? void 0 : r.getLayers().getArray(), n = e && ((o = fn(e, "layerControlOptional", !0)) == null ? void 0 : o.length) > 0;
5023
4799
  return x`
5024
4800
  <style>
5025
- ${!this.unstyled && T(this, $i)}
4801
+ ${!this.unstyled && T(this, Ei)}
5026
4802
  ${this.styleOverride}
5027
4803
  </style>
5028
4804
 
5029
4805
  <!-- Conditional rendering of add layers component -->
5030
4806
  ${G(
5031
- this.addExternalLayers && ((s = T(this, Ht)) == null ? void 0 : s.addOrUpdateLayer),
4807
+ this.addExternalLayers && ((s = T(this, kt)) == null ? void 0 : s.addOrUpdateLayer),
5032
4808
  () => x`
5033
4809
  <eox-layercontrol-add-layers
5034
4810
  .noShadow=${!0}
5035
- .eoxMap=${T(this, Ht)}
4811
+ .eoxMap=${T(this, kt)}
5036
4812
  .unstyled=${this.unstyled}
5037
4813
  ></eox-layercontrol-add-layers>
5038
4814
  `
@@ -5053,8 +4829,8 @@ class Go extends lt {
5053
4829
  .tools=${this.tools}
5054
4830
  .unstyled=${this.unstyled}
5055
4831
  .toolsAsList=${this.toolsAsList}
5056
- @changed=${j(this, ue, Jo)}
5057
- @datetime:updated=${j(this, ue, Ko)}
4832
+ @changed=${j(this, ue, Gr)}
4833
+ @datetime:updated=${j(this, ue, Jr)}
5058
4834
  ></eox-layercontrol-layer-list>
5059
4835
  `
5060
4836
  )}
@@ -5075,23 +4851,23 @@ class Go extends lt {
5075
4851
  `;
5076
4852
  }
5077
4853
  }
5078
- Ht = new WeakMap(), ue = new WeakSet(), /**
4854
+ kt = new WeakMap(), ue = new WeakSet(), /**
5079
4855
  * Event handler for changes in the layer list
5080
4856
  *
5081
4857
  * @param {CustomEvent & {target: Element}} evt
5082
4858
  */
5083
- Jo = function(e) {
4859
+ Gr = function(e) {
5084
4860
  va(e, this), this.dispatchEvent(new CustomEvent("layerchange", { detail: e.detail }));
5085
4861
  }, /**
5086
4862
  * Dispatches datetime updates from layer datetime to the layercontrol
5087
4863
  * @param {CustomEvent} evt
5088
4864
  */
5089
- Ko = function(e) {
4865
+ Jr = function(e) {
5090
4866
  this.dispatchEvent(
5091
4867
  new CustomEvent("datetime:updated", { detail: e.detail })
5092
4868
  );
5093
- }, $i = new WeakMap(), // Define static properties for the component
5094
- F(Go, "properties", {
4869
+ }, Ei = new WeakMap(), // Define static properties for the component
4870
+ F(Wr, "properties", {
5095
4871
  for: { type: String },
5096
4872
  idProperty: { attribute: "id-property" },
5097
4873
  map: { attribute: !1, state: !0 },
@@ -5103,7 +4879,7 @@ F(Go, "properties", {
5103
4879
  styleOverride: { type: String },
5104
4880
  toolsAsList: { type: Boolean }
5105
4881
  });
5106
- customElements.define("eox-layercontrol", Go);
4882
+ customElements.define("eox-layercontrol", Wr);
5107
4883
  export {
5108
- Go as EOxLayerControl
4884
+ Wr as EOxLayerControl
5109
4885
  };