@eox/layercontrol 0.18.0 → 0.18.1-dev.1722353171.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,27 +1,27 @@
1
- var Co = Object.defineProperty;
2
- var qn = (e) => {
1
+ var Mo = Object.defineProperty;
2
+ var Jn = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var To = (e, t, n) => t in e ? Co(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var H = (e, t, n) => To(e, typeof t != "symbol" ? t + "" : t, n), cn = (e, t, n) => t.has(e) || qn("Cannot " + n);
7
- var D = (e, t, n) => (cn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), T = (e, t, n) => t.has(e) ? qn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Jt = (e, t, n, i) => (cn(e, t, "write to private field"), i ? i.call(e, n) : t.set(e, n), n), k = (e, t, n) => (cn(e, t, "access private method"), n);
5
+ var No = (e, t, n) => t in e ? Mo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
+ var N = (e, t, n) => No(e, typeof t != "symbol" ? t + "" : t, n), pn = (e, t, n) => t.has(e) || Jn("Cannot " + n);
7
+ var P = (e, t, n) => (pn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), T = (e, t, n) => t.has(e) ? Jn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Kt = (e, t, n, i) => (pn(e, t, "write to private field"), i ? i.call(e, n) : t.set(e, n), n), B = (e, t, n) => (pn(e, t, "access private method"), n);
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2019 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const Ce = globalThis, Hn = Ce.ShadowRoot && (Ce.ShadyCSS === void 0 || Ce.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, wi = Symbol(), Wn = /* @__PURE__ */ new WeakMap();
14
- let Po = class {
13
+ const Te = globalThis, Ln = Te.ShadowRoot && (Te.ShadyCSS === void 0 || Te.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, $i = Symbol(), Kn = /* @__PURE__ */ new WeakMap();
14
+ let Io = class {
15
15
  constructor(t, n, i) {
16
- if (this._$cssResult$ = !0, i !== wi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
16
+ if (this._$cssResult$ = !0, i !== $i) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
17
17
  this.cssText = t, this.t = n;
18
18
  }
19
19
  get styleSheet() {
20
20
  let t = this.o;
21
21
  const n = this.t;
22
- if (Hn && t === void 0) {
22
+ if (Ln && t === void 0) {
23
23
  const i = n !== void 0 && n.length === 1;
24
- i && (t = Wn.get(n)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Wn.set(n, t));
24
+ i && (t = Kn.get(n)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Kn.set(n, t));
25
25
  }
26
26
  return t;
27
27
  }
@@ -29,26 +29,26 @@ let Po = class {
29
29
  return this.cssText;
30
30
  }
31
31
  };
32
- const Ro = (e) => new Po(typeof e == "string" ? e : e + "", void 0, wi), Do = (e, t) => {
33
- if (Hn) e.adoptedStyleSheets = t.map((n) => n instanceof CSSStyleSheet ? n : n.styleSheet);
32
+ const Ho = (e) => new Io(typeof e == "string" ? e : e + "", void 0, $i), Bo = (e, t) => {
33
+ if (Ln) e.adoptedStyleSheets = t.map((n) => n instanceof CSSStyleSheet ? n : n.styleSheet);
34
34
  else for (const n of t) {
35
- const i = document.createElement("style"), o = Ce.litNonce;
35
+ const i = document.createElement("style"), o = Te.litNonce;
36
36
  o !== void 0 && i.setAttribute("nonce", o), i.textContent = n.cssText, e.appendChild(i);
37
37
  }
38
- }, Gn = Hn ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
38
+ }, Qn = Ln ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
39
39
  let n = "";
40
40
  for (const i of t.cssRules) n += i.cssText;
41
- return Ro(n);
41
+ return Ho(n);
42
42
  })(e) : e;
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: Oo, defineProperty: No, getOwnPropertyDescriptor: Mo, getOwnPropertyNames: Io, getOwnPropertySymbols: Ho, getPrototypeOf: Bo } = Object, _t = globalThis, Jn = _t.trustedTypes, Vo = Jn ? Jn.emptyScript : "", dn = _t.reactiveElementPolyfillSupport, ie = (e, t) => e, Tn = { toAttribute(e, t) {
48
+ const { is: Vo, defineProperty: Lo, getOwnPropertyDescriptor: Uo, getOwnPropertyNames: ko, getOwnPropertySymbols: Fo, getPrototypeOf: jo } = Object, _t = globalThis, ti = _t.trustedTypes, Zo = ti ? ti.emptyScript : "", fn = _t.reactiveElementPolyfillSupport, oe = (e, t) => e, Rn = { toAttribute(e, t) {
49
49
  switch (t) {
50
50
  case Boolean:
51
- e = e ? Vo : null;
51
+ e = e ? Zo : null;
52
52
  break;
53
53
  case Object:
54
54
  case Array:
@@ -73,7 +73,7 @@ const { is: Oo, defineProperty: No, getOwnPropertyDescriptor: Mo, getOwnProperty
73
73
  }
74
74
  }
75
75
  return n;
76
- } }, Ei = (e, t) => !Oo(e, t), Kn = { attribute: !0, type: String, converter: Tn, reflect: !1, hasChanged: Ei };
76
+ } }, Si = (e, t) => !Vo(e, t), ei = { attribute: !0, type: String, converter: Rn, reflect: !1, hasChanged: Si };
77
77
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _t.litPropertyMetadata ?? (_t.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
78
  class Lt extends HTMLElement {
79
79
  static addInitializer(t) {
@@ -82,37 +82,37 @@ class Lt extends HTMLElement {
82
82
  static get observedAttributes() {
83
83
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
84
84
  }
85
- static createProperty(t, n = Kn) {
85
+ static createProperty(t, n = ei) {
86
86
  if (n.state && (n.attribute = !1), this._$Ei(), this.elementProperties.set(t, n), !n.noAccessor) {
87
87
  const i = Symbol(), o = this.getPropertyDescriptor(t, i, n);
88
- o !== void 0 && No(this.prototype, t, o);
88
+ o !== void 0 && Lo(this.prototype, t, o);
89
89
  }
90
90
  }
91
91
  static getPropertyDescriptor(t, n, i) {
92
- const { get: o, set: r } = Mo(this.prototype, t) ?? { get() {
92
+ const { get: o, set: r } = Uo(this.prototype, t) ?? { get() {
93
93
  return this[n];
94
- }, set(s) {
95
- this[n] = s;
94
+ }, set(a) {
95
+ this[n] = a;
96
96
  } };
97
97
  return { get() {
98
98
  return o == null ? void 0 : o.call(this);
99
- }, set(s) {
100
- const a = o == null ? void 0 : o.call(this);
101
- r.call(this, s), this.requestUpdate(t, a, i);
99
+ }, set(a) {
100
+ const s = o == null ? void 0 : o.call(this);
101
+ r.call(this, a), this.requestUpdate(t, s, i);
102
102
  }, configurable: !0, enumerable: !0 };
103
103
  }
104
104
  static getPropertyOptions(t) {
105
- return this.elementProperties.get(t) ?? Kn;
105
+ return this.elementProperties.get(t) ?? ei;
106
106
  }
107
107
  static _$Ei() {
108
- if (this.hasOwnProperty(ie("elementProperties"))) return;
109
- const t = Bo(this);
108
+ if (this.hasOwnProperty(oe("elementProperties"))) return;
109
+ const t = jo(this);
110
110
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
111
111
  }
112
112
  static finalize() {
113
- if (this.hasOwnProperty(ie("finalized"))) return;
114
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ie("properties"))) {
115
- const n = this.properties, i = [...Io(n), ...Ho(n)];
113
+ if (this.hasOwnProperty(oe("finalized"))) return;
114
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(oe("properties"))) {
115
+ const n = this.properties, i = [...ko(n), ...Fo(n)];
116
116
  for (const o of i) this.createProperty(o, n[o]);
117
117
  }
118
118
  const t = this[Symbol.metadata];
@@ -131,8 +131,8 @@ class Lt extends HTMLElement {
131
131
  const n = [];
132
132
  if (Array.isArray(t)) {
133
133
  const i = new Set(t.flat(1 / 0).reverse());
134
- for (const o of i) n.unshift(Gn(o));
135
- } else t !== void 0 && n.push(Gn(t));
134
+ for (const o of i) n.unshift(Qn(o));
135
+ } else t !== void 0 && n.push(Qn(t));
136
136
  return n;
137
137
  }
138
138
  static _$Eu(t, n) {
@@ -161,7 +161,7 @@ class Lt extends HTMLElement {
161
161
  }
162
162
  createRenderRoot() {
163
163
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
164
- return Do(t, this.constructor.elementStyles), t;
164
+ return Bo(t, this.constructor.elementStyles), t;
165
165
  }
166
166
  connectedCallback() {
167
167
  var t;
@@ -186,21 +186,21 @@ class Lt extends HTMLElement {
186
186
  var r;
187
187
  const i = this.constructor.elementProperties.get(t), o = this.constructor._$Eu(t, i);
188
188
  if (o !== void 0 && i.reflect === !0) {
189
- const s = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : Tn).toAttribute(n, i.type);
190
- this._$Em = t, s == null ? this.removeAttribute(o) : this.setAttribute(o, s), this._$Em = null;
189
+ const a = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : Rn).toAttribute(n, i.type);
190
+ this._$Em = t, a == null ? this.removeAttribute(o) : this.setAttribute(o, a), this._$Em = null;
191
191
  }
192
192
  }
193
193
  _$AK(t, n) {
194
194
  var r;
195
195
  const i = this.constructor, o = i._$Eh.get(t);
196
196
  if (o !== void 0 && this._$Em !== o) {
197
- const s = i.getPropertyOptions(o), a = typeof s.converter == "function" ? { fromAttribute: s.converter } : ((r = s.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? s.converter : Tn;
198
- this._$Em = o, this[o] = a.fromAttribute(n, s.type), this._$Em = null;
197
+ const a = i.getPropertyOptions(o), s = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : Rn;
198
+ this._$Em = o, this[o] = s.fromAttribute(n, a.type), this._$Em = null;
199
199
  }
200
200
  }
201
201
  requestUpdate(t, n, i) {
202
202
  if (t !== void 0) {
203
- if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? Ei)(this[t], n)) return;
203
+ if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? Si)(this[t], n)) return;
204
204
  this.P(t, n, i);
205
205
  }
206
206
  this.isUpdatePending === !1 && (this._$ES = this._$ET());
@@ -226,11 +226,11 @@ class Lt extends HTMLElement {
226
226
  if (!this.isUpdatePending) return;
227
227
  if (!this.hasUpdated) {
228
228
  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
229
- for (const [r, s] of this._$Ep) this[r] = s;
229
+ for (const [r, a] of this._$Ep) this[r] = a;
230
230
  this._$Ep = void 0;
231
231
  }
232
232
  const o = this.constructor.elementProperties;
233
- 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);
233
+ if (o.size > 0) for (const [r, a] of o) a.wrapped !== !0 || this._$AL.has(r) || this[r] === void 0 || this.P(r, this[r], a);
234
234
  }
235
235
  let t = !1;
236
236
  const n = this._$AL;
@@ -273,59 +273,59 @@ class Lt extends HTMLElement {
273
273
  firstUpdated(t) {
274
274
  }
275
275
  }
276
- Lt.elementStyles = [], Lt.shadowRootOptions = { mode: "open" }, Lt[ie("elementProperties")] = /* @__PURE__ */ new Map(), Lt[ie("finalized")] = /* @__PURE__ */ new Map(), dn == null || dn({ ReactiveElement: Lt }), (_t.reactiveElementVersions ?? (_t.reactiveElementVersions = [])).push("2.0.4");
276
+ Lt.elementStyles = [], Lt.shadowRootOptions = { mode: "open" }, Lt[oe("elementProperties")] = /* @__PURE__ */ new Map(), Lt[oe("finalized")] = /* @__PURE__ */ new Map(), fn == null || fn({ ReactiveElement: Lt }), (_t.reactiveElementVersions ?? (_t.reactiveElementVersions = [])).push("2.0.4");
277
277
  /**
278
278
  * @license
279
279
  * Copyright 2017 Google LLC
280
280
  * SPDX-License-Identifier: BSD-3-Clause
281
281
  */
282
- const oe = globalThis, He = oe.trustedTypes, Qn = He ? He.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Bn = "$lit$", pt = `lit$${(Math.random() + "").slice(9)}$`, Vn = "?" + pt, Lo = `<${Vn}>`, It = document, ce = () => It.createComment(""), de = (e) => e === null || typeof e != "object" && typeof e != "function", xi = Array.isArray, Si = (e) => xi(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", hn = `[
283
- \f\r]`, Kt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ti = /-->/g, ei = />/g, Tt = RegExp(`>|${hn}(?:([^\\s"'>=/]+)(${hn}*=${hn}*(?:[^
284
- \f\r"'\`<>=]|("|')|))|$)`, "g"), ni = /'/g, ii = /"/g, $i = /^(?:script|style|textarea|title)$/i, ko = (e) => (t, ...n) => ({ _$litType$: e, strings: t, values: n }), x = ko(1), ot = Symbol.for("lit-noChange"), C = Symbol.for("lit-nothing"), oi = /* @__PURE__ */ new WeakMap(), Nt = It.createTreeWalker(It, 129);
285
- function _i(e, t) {
282
+ const re = globalThis, Be = re.trustedTypes, ni = Be ? Be.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Un = "$lit$", pt = `lit$${Math.random().toFixed(9).slice(2)}$`, kn = "?" + pt, zo = `<${kn}>`, It = document, ce = () => It.createComment(""), he = (e) => e === null || typeof e != "object" && typeof e != "function", _i = Array.isArray, Ai = (e) => _i(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", gn = `[
283
+ \f\r]`, Qt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ii = /-->/g, oi = />/g, Tt = RegExp(`>|${gn}(?:([^\\s"'>=/]+)(${gn}*=${gn}*(?:[^
284
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), ri = /'/g, ai = /"/g, Ci = /^(?:script|style|textarea|title)$/i, Xo = (e) => (t, ...n) => ({ _$litType$: e, strings: t, values: n }), E = Xo(1), rt = Symbol.for("lit-noChange"), C = Symbol.for("lit-nothing"), si = /* @__PURE__ */ new WeakMap(), Mt = It.createTreeWalker(It, 129);
285
+ function Ti(e, t) {
286
286
  if (!Array.isArray(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
287
- return Qn !== void 0 ? Qn.createHTML(t) : t;
287
+ return ni !== void 0 ? ni.createHTML(t) : t;
288
288
  }
289
- const Ai = (e, t) => {
289
+ const Pi = (e, t) => {
290
290
  const n = e.length - 1, i = [];
291
- let o, r = t === 2 ? "<svg>" : "", s = Kt;
292
- for (let a = 0; a < n; a++) {
293
- const l = e[a];
294
- let u, d, c = -1, p = 0;
295
- for (; p < l.length && (s.lastIndex = p, d = s.exec(l), d !== null); ) p = s.lastIndex, s === Kt ? d[1] === "!--" ? s = ti : d[1] !== void 0 ? s = ei : d[2] !== void 0 ? ($i.test(d[2]) && (o = RegExp("</" + d[2], "g")), s = Tt) : d[3] !== void 0 && (s = Tt) : s === Tt ? d[0] === ">" ? (s = o ?? Kt, c = -1) : d[1] === void 0 ? c = -2 : (c = s.lastIndex - d[2].length, u = d[1], s = d[3] === void 0 ? Tt : d[3] === '"' ? ii : ni) : s === ii || s === ni ? s = Tt : s === ti || s === ei ? s = Kt : (s = Tt, o = void 0);
296
- const f = s === Tt && e[a + 1].startsWith("/>") ? " " : "";
297
- r += s === Kt ? l + Lo : c >= 0 ? (i.push(u), l.slice(0, c) + Bn + l.slice(c) + pt + f) : l + pt + (c === -2 ? a : f);
298
- }
299
- return [_i(e, r + (e[n] || "<?>") + (t === 2 ? "</svg>" : "")), i];
291
+ let o, r = t === 2 ? "<svg>" : "", a = Qt;
292
+ for (let s = 0; s < n; s++) {
293
+ const l = e[s];
294
+ let u, c, d = -1, p = 0;
295
+ for (; p < l.length && (a.lastIndex = p, c = a.exec(l), c !== null); ) p = a.lastIndex, a === Qt ? c[1] === "!--" ? a = ii : c[1] !== void 0 ? a = oi : c[2] !== void 0 ? (Ci.test(c[2]) && (o = RegExp("</" + c[2], "g")), a = Tt) : c[3] !== void 0 && (a = Tt) : a === Tt ? c[0] === ">" ? (a = o ?? Qt, d = -1) : c[1] === void 0 ? d = -2 : (d = a.lastIndex - c[2].length, u = c[1], a = c[3] === void 0 ? Tt : c[3] === '"' ? ai : ri) : a === ai || a === ri ? a = Tt : a === ii || a === oi ? a = Qt : (a = Tt, o = void 0);
296
+ const f = a === Tt && e[s + 1].startsWith("/>") ? " " : "";
297
+ r += a === Qt ? l + zo : d >= 0 ? (i.push(u), l.slice(0, d) + Un + l.slice(d) + pt + f) : l + pt + (d === -2 ? s : f);
298
+ }
299
+ return [Ti(e, r + (e[n] || "<?>") + (t === 2 ? "</svg>" : "")), i];
300
300
  };
301
- class he {
301
+ class pe {
302
302
  constructor({ strings: t, _$litType$: n }, i) {
303
303
  let o;
304
304
  this.parts = [];
305
- let r = 0, s = 0;
306
- const a = t.length - 1, l = this.parts, [u, d] = Ai(t, n);
307
- if (this.el = he.createElement(u, i), Nt.currentNode = this.el.content, n === 2) {
308
- const c = this.el.content.firstChild;
309
- c.replaceWith(...c.childNodes);
305
+ let r = 0, a = 0;
306
+ const s = t.length - 1, l = this.parts, [u, c] = Pi(t, n);
307
+ if (this.el = pe.createElement(u, i), Mt.currentNode = this.el.content, n === 2) {
308
+ const d = this.el.content.firstChild;
309
+ d.replaceWith(...d.childNodes);
310
310
  }
311
- for (; (o = Nt.nextNode()) !== null && l.length < a; ) {
311
+ for (; (o = Mt.nextNode()) !== null && l.length < s; ) {
312
312
  if (o.nodeType === 1) {
313
- if (o.hasAttributes()) for (const c of o.getAttributeNames()) if (c.endsWith(Bn)) {
314
- const p = d[s++], f = o.getAttribute(c).split(pt), g = /([.?@])?(.*)/.exec(p);
315
- l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Ti : g[1] === "?" ? Pi : g[1] === "@" ? Ri : be }), o.removeAttribute(c);
316
- } else c.startsWith(pt) && (l.push({ type: 6, index: r }), o.removeAttribute(c));
317
- if ($i.test(o.tagName)) {
318
- const c = o.textContent.split(pt), p = c.length - 1;
313
+ if (o.hasAttributes()) for (const d of o.getAttributeNames()) if (d.endsWith(Un)) {
314
+ const p = c[a++], f = o.getAttribute(d).split(pt), g = /([.?@])?(.*)/.exec(p);
315
+ l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Ri : g[1] === "?" ? Oi : g[1] === "@" ? Mi : ve }), o.removeAttribute(d);
316
+ } else d.startsWith(pt) && (l.push({ type: 6, index: r }), o.removeAttribute(d));
317
+ if (Ci.test(o.tagName)) {
318
+ const d = o.textContent.split(pt), p = d.length - 1;
319
319
  if (p > 0) {
320
- o.textContent = He ? He.emptyScript : "";
321
- for (let f = 0; f < p; f++) o.append(c[f], ce()), Nt.nextNode(), l.push({ type: 2, index: ++r });
322
- o.append(c[p], ce());
320
+ o.textContent = Be ? Be.emptyScript : "";
321
+ for (let f = 0; f < p; f++) o.append(d[f], ce()), Mt.nextNode(), l.push({ type: 2, index: ++r });
322
+ o.append(d[p], ce());
323
323
  }
324
324
  }
325
- } else if (o.nodeType === 8) if (o.data === Vn) l.push({ type: 2, index: r });
325
+ } else if (o.nodeType === 8) if (o.data === kn) l.push({ type: 2, index: r });
326
326
  else {
327
- let c = -1;
328
- for (; (c = o.data.indexOf(pt, c + 1)) !== -1; ) l.push({ type: 7, index: r }), c += pt.length - 1;
327
+ let d = -1;
328
+ for (; (d = o.data.indexOf(pt, d + 1)) !== -1; ) l.push({ type: 7, index: r }), d += pt.length - 1;
329
329
  }
330
330
  r++;
331
331
  }
@@ -336,13 +336,13 @@ class he {
336
336
  }
337
337
  }
338
338
  function Ht(e, t, n = e, i) {
339
- var s, a;
340
- if (t === ot) return t;
341
- let o = i !== void 0 ? (s = n._$Co) == null ? void 0 : s[i] : n._$Cl;
342
- const r = de(t) ? void 0 : t._$litDirective$;
343
- return (o == null ? void 0 : o.constructor) !== r && ((a = o == null ? void 0 : o._$AO) == null || a.call(o, !1), r === void 0 ? o = void 0 : (o = new r(e), o._$AT(e, n, i)), i !== void 0 ? (n._$Co ?? (n._$Co = []))[i] = o : n._$Cl = o), o !== void 0 && (t = Ht(e, o._$AS(e, t.values), o, i)), t;
339
+ var a, s;
340
+ if (t === rt) return t;
341
+ let o = i !== void 0 ? (a = n._$Co) == null ? void 0 : a[i] : n._$Cl;
342
+ const r = he(t) ? void 0 : t._$litDirective$;
343
+ return (o == null ? void 0 : o.constructor) !== r && ((s = o == null ? void 0 : o._$AO) == null || s.call(o, !1), r === void 0 ? o = void 0 : (o = new r(e), o._$AT(e, n, i)), i !== void 0 ? (n._$Co ?? (n._$Co = []))[i] = o : n._$Cl = o), o !== void 0 && (t = Ht(e, o._$AS(e, t.values), o, i)), t;
344
344
  }
345
- class Ci {
345
+ class Di {
346
346
  constructor(t, n) {
347
347
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = n;
348
348
  }
@@ -354,23 +354,23 @@ class Ci {
354
354
  }
355
355
  u(t) {
356
356
  const { el: { content: n }, parts: i } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ?? It).importNode(n, !0);
357
- Nt.currentNode = o;
358
- let r = Nt.nextNode(), s = 0, a = 0, l = i[0];
357
+ Mt.currentNode = o;
358
+ let r = Mt.nextNode(), a = 0, s = 0, l = i[0];
359
359
  for (; l !== void 0; ) {
360
- if (s === l.index) {
360
+ if (a === l.index) {
361
361
  let u;
362
- l.type === 2 ? u = new Xt(r, r.nextSibling, this, t) : l.type === 1 ? u = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (u = new Di(r, this, t)), this._$AV.push(u), l = i[++a];
362
+ l.type === 2 ? u = new qt(r, r.nextSibling, this, t) : l.type === 1 ? u = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (u = new Ni(r, this, t)), this._$AV.push(u), l = i[++s];
363
363
  }
364
- s !== (l == null ? void 0 : l.index) && (r = Nt.nextNode(), s++);
364
+ a !== (l == null ? void 0 : l.index) && (r = Mt.nextNode(), a++);
365
365
  }
366
- return Nt.currentNode = It, o;
366
+ return Mt.currentNode = It, o;
367
367
  }
368
368
  p(t) {
369
369
  let n = 0;
370
370
  for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, n), n += i.strings.length - 2) : i._$AI(t[n])), n++;
371
371
  }
372
372
  }
373
- class Xt {
373
+ class qt {
374
374
  get _$AU() {
375
375
  var t;
376
376
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
@@ -390,7 +390,7 @@ class Xt {
390
390
  return this._$AB;
391
391
  }
392
392
  _$AI(t, n = this) {
393
- t = Ht(this, t, n), de(t) ? t === C || t == null || t === "" ? (this._$AH !== C && this._$AR(), this._$AH = C) : t !== this._$AH && t !== ot && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Si(t) ? this.k(t) : this._(t);
393
+ t = Ht(this, t, n), he(t) ? t === C || t == null || t === "" ? (this._$AH !== C && this._$AR(), this._$AH = C) : t !== this._$AH && t !== rt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ai(t) ? this.k(t) : this._(t);
394
394
  }
395
395
  S(t) {
396
396
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -399,26 +399,26 @@ class Xt {
399
399
  this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
400
400
  }
401
401
  _(t) {
402
- this._$AH !== C && de(this._$AH) ? this._$AA.nextSibling.data = t : this.T(It.createTextNode(t)), this._$AH = t;
402
+ this._$AH !== C && he(this._$AH) ? this._$AA.nextSibling.data = t : this.T(It.createTextNode(t)), this._$AH = t;
403
403
  }
404
404
  $(t) {
405
405
  var r;
406
- const { values: n, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = he.createElement(_i(i.h, i.h[0]), this.options)), i);
406
+ const { values: n, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = pe.createElement(Ti(i.h, i.h[0]), this.options)), i);
407
407
  if (((r = this._$AH) == null ? void 0 : r._$AD) === o) this._$AH.p(n);
408
408
  else {
409
- const s = new Ci(o, this), a = s.u(this.options);
410
- s.p(n), this.T(a), this._$AH = s;
409
+ const a = new Di(o, this), s = a.u(this.options);
410
+ a.p(n), this.T(s), this._$AH = a;
411
411
  }
412
412
  }
413
413
  _$AC(t) {
414
- let n = oi.get(t.strings);
415
- return n === void 0 && oi.set(t.strings, n = new he(t)), n;
414
+ let n = si.get(t.strings);
415
+ return n === void 0 && si.set(t.strings, n = new pe(t)), n;
416
416
  }
417
417
  k(t) {
418
- xi(this._$AH) || (this._$AH = [], this._$AR());
418
+ _i(this._$AH) || (this._$AH = [], this._$AR());
419
419
  const n = this._$AH;
420
420
  let i, o = 0;
421
- for (const r of t) o === n.length ? n.push(i = new Xt(this.S(ce()), this.S(ce()), this, this.options)) : i = n[o], i._$AI(r), o++;
421
+ for (const r of t) o === n.length ? n.push(i = new qt(this.S(ce()), this.S(ce()), this, this.options)) : i = n[o], i._$AI(r), o++;
422
422
  o < n.length && (this._$AR(i && i._$AB.nextSibling, o), n.length = o);
423
423
  }
424
424
  _$AR(t = this._$AA.nextSibling, n) {
@@ -433,7 +433,7 @@ class Xt {
433
433
  this._$AM === void 0 && (this._$Cv = t, (n = this._$AP) == null || n.call(this, t));
434
434
  }
435
435
  }
436
- class be {
436
+ class ve {
437
437
  get tagName() {
438
438
  return this.element.tagName;
439
439
  }
@@ -445,20 +445,20 @@ class be {
445
445
  }
446
446
  _$AI(t, n = this, i, o) {
447
447
  const r = this.strings;
448
- let s = !1;
449
- if (r === void 0) t = Ht(this, t, n, 0), s = !de(t) || t !== this._$AH && t !== ot, s && (this._$AH = t);
448
+ let a = !1;
449
+ if (r === void 0) t = Ht(this, t, n, 0), a = !he(t) || t !== this._$AH && t !== rt, a && (this._$AH = t);
450
450
  else {
451
- const a = t;
451
+ const s = t;
452
452
  let l, u;
453
- for (t = r[0], l = 0; l < r.length - 1; l++) u = Ht(this, a[i + l], n, l), u === ot && (u = this._$AH[l]), s || (s = !de(u) || u !== this._$AH[l]), u === C ? t = C : t !== C && (t += (u ?? "") + r[l + 1]), this._$AH[l] = u;
453
+ for (t = r[0], l = 0; l < r.length - 1; l++) u = Ht(this, s[i + l], n, l), u === rt && (u = this._$AH[l]), a || (a = !he(u) || u !== this._$AH[l]), u === C ? t = C : t !== C && (t += (u ?? "") + r[l + 1]), this._$AH[l] = u;
454
454
  }
455
- s && !o && this.j(t);
455
+ a && !o && this.j(t);
456
456
  }
457
457
  j(t) {
458
458
  t === C ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
459
459
  }
460
460
  }
461
- class Ti extends be {
461
+ class Ri extends ve {
462
462
  constructor() {
463
463
  super(...arguments), this.type = 3;
464
464
  }
@@ -466,7 +466,7 @@ class Ti extends be {
466
466
  this.element[this.name] = t === C ? void 0 : t;
467
467
  }
468
468
  }
469
- class Pi extends be {
469
+ class Oi extends ve {
470
470
  constructor() {
471
471
  super(...arguments), this.type = 4;
472
472
  }
@@ -474,12 +474,12 @@ class Pi extends be {
474
474
  this.element.toggleAttribute(this.name, !!t && t !== C);
475
475
  }
476
476
  }
477
- class Ri extends be {
477
+ class Mi extends ve {
478
478
  constructor(t, n, i, o, r) {
479
479
  super(t, n, i, o, r), this.type = 5;
480
480
  }
481
481
  _$AI(t, n = this) {
482
- if ((t = Ht(this, t, n, 0) ?? C) === ot) return;
482
+ if ((t = Ht(this, t, n, 0) ?? C) === rt) return;
483
483
  const i = this._$AH, o = t === C && i !== C || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, r = t !== C && (i === C || o);
484
484
  o && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
485
485
  }
@@ -488,7 +488,7 @@ class Ri extends be {
488
488
  typeof this._$AH == "function" ? this._$AH.call(((n = this.options) == null ? void 0 : n.host) ?? this.element, t) : this._$AH.handleEvent(t);
489
489
  }
490
490
  }
491
- class Di {
491
+ class Ni {
492
492
  constructor(t, n, i) {
493
493
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = n, this.options = i;
494
494
  }
@@ -499,14 +499,14 @@ class Di {
499
499
  Ht(this, t);
500
500
  }
501
501
  }
502
- const Uo = { P: Bn, A: pt, C: Vn, M: 1, L: Ai, R: Ci, D: Si, V: Ht, I: Xt, H: be, N: Pi, U: Ri, B: Ti, F: Di }, pn = oe.litHtmlPolyfillSupport;
503
- pn == null || pn(he, Xt), (oe.litHtmlVersions ?? (oe.litHtmlVersions = [])).push("3.1.2");
504
- const Fo = (e, t, n) => {
502
+ const qo = { P: Un, A: pt, C: kn, M: 1, L: Pi, R: Di, D: Ai, V: Ht, I: qt, H: ve, N: Oi, U: Mi, B: Ri, F: Ni }, mn = re.litHtmlPolyfillSupport;
503
+ mn == null || mn(pe, qt), (re.litHtmlVersions ?? (re.litHtmlVersions = [])).push("3.1.4");
504
+ const Yo = (e, t, n) => {
505
505
  const i = (n == null ? void 0 : n.renderBefore) ?? t;
506
506
  let o = i._$litPart$;
507
507
  if (o === void 0) {
508
508
  const r = (n == null ? void 0 : n.renderBefore) ?? null;
509
- i._$litPart$ = o = new Xt(t.insertBefore(ce(), r), r, void 0, n ?? {});
509
+ i._$litPart$ = o = new qt(t.insertBefore(ce(), r), r, void 0, n ?? {});
510
510
  }
511
511
  return o._$AI(e), o;
512
512
  };
@@ -515,7 +515,7 @@ const Fo = (e, t, n) => {
515
515
  * Copyright 2017 Google LLC
516
516
  * SPDX-License-Identifier: BSD-3-Clause
517
517
  */
518
- let nt = class extends Lt {
518
+ let Q = class extends Lt {
519
519
  constructor() {
520
520
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
521
521
  }
@@ -526,7 +526,7 @@ let nt = class extends Lt {
526
526
  }
527
527
  update(t) {
528
528
  const n = this.render();
529
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Fo(n, this.renderRoot, this.renderOptions);
529
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Yo(n, this.renderRoot, this.renderOptions);
530
530
  }
531
531
  connectedCallback() {
532
532
  var t;
@@ -537,20 +537,20 @@ let nt = class extends Lt {
537
537
  super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
538
538
  }
539
539
  render() {
540
- return ot;
540
+ return rt;
541
541
  }
542
542
  };
543
- var vi;
544
- nt._$litElement$ = !0, nt.finalized = !0, (vi = globalThis.litElementHydrateSupport) == null || vi.call(globalThis, { LitElement: nt });
545
- const fn = globalThis.litElementPolyfillSupport;
546
- fn == null || fn({ LitElement: nt });
547
- (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
543
+ var xi;
544
+ Q._$litElement$ = !0, Q.finalized = !0, (xi = globalThis.litElementHydrateSupport) == null || xi.call(globalThis, { LitElement: Q });
545
+ const yn = globalThis.litElementPolyfillSupport;
546
+ yn == null || yn({ LitElement: Q });
547
+ (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.6");
548
548
  /**
549
549
  * @license
550
550
  * Copyright 2021 Google LLC
551
551
  * SPDX-License-Identifier: BSD-3-Clause
552
552
  */
553
- function rt(e, t, n) {
553
+ function K(e, t, n) {
554
554
  return e ? t(e) : n == null ? void 0 : n(e);
555
555
  }
556
556
  /**
@@ -558,8 +558,8 @@ function rt(e, t, n) {
558
558
  * Copyright 2017 Google LLC
559
559
  * SPDX-License-Identifier: BSD-3-Clause
560
560
  */
561
- const Et = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Ln = (e) => (...t) => ({ _$litDirective$: e, values: t });
562
- class kn {
561
+ const Et = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Fn = (e) => (...t) => ({ _$litDirective$: e, values: t });
562
+ class jn {
563
563
  constructor(t) {
564
564
  }
565
565
  get _$AU() {
@@ -580,28 +580,28 @@ class kn {
580
580
  * Copyright 2020 Google LLC
581
581
  * SPDX-License-Identifier: BSD-3-Clause
582
582
  */
583
- const { I: jo } = Uo, zo = (e) => e.strings === void 0, ri = () => document.createComment(""), Qt = (e, t, n) => {
583
+ const { I: Wo } = qo, Go = (e) => e.strings === void 0, li = () => document.createComment(""), te = (e, t, n) => {
584
584
  var r;
585
585
  const i = e._$AA.parentNode, o = t === void 0 ? e._$AB : t._$AA;
586
586
  if (n === void 0) {
587
- const s = i.insertBefore(ri(), o), a = i.insertBefore(ri(), o);
588
- n = new jo(s, a, e, e.options);
587
+ const a = i.insertBefore(li(), o), s = i.insertBefore(li(), o);
588
+ n = new Wo(a, s, e, e.options);
589
589
  } else {
590
- const s = n._$AB.nextSibling, a = n._$AM, l = a !== e;
590
+ const a = n._$AB.nextSibling, s = n._$AM, l = s !== e;
591
591
  if (l) {
592
592
  let u;
593
- (r = n._$AQ) == null || r.call(n, e), n._$AM = e, n._$AP !== void 0 && (u = e._$AU) !== a._$AU && n._$AP(u);
593
+ (r = n._$AQ) == null || r.call(n, e), n._$AM = e, n._$AP !== void 0 && (u = e._$AU) !== s._$AU && n._$AP(u);
594
594
  }
595
- if (s !== o || l) {
595
+ if (a !== o || l) {
596
596
  let u = n._$AA;
597
- for (; u !== s; ) {
598
- const d = u.nextSibling;
599
- i.insertBefore(u, o), u = d;
597
+ for (; u !== a; ) {
598
+ const c = u.nextSibling;
599
+ i.insertBefore(u, o), u = c;
600
600
  }
601
601
  }
602
602
  }
603
603
  return n;
604
- }, Pt = (e, t, n = e) => (e._$AI(t, n), e), Zo = {}, Oi = (e, t = Zo) => e._$AH = t, Xo = (e) => e._$AH, gn = (e) => {
604
+ }, Pt = (e, t, n = e) => (e._$AI(t, n), e), Jo = {}, Ii = (e, t = Jo) => e._$AH = t, Ko = (e) => e._$AH, bn = (e) => {
605
605
  var i;
606
606
  (i = e._$AP) == null || i.call(e, !1, !0);
607
607
  let t = e._$AA;
@@ -616,11 +616,11 @@ const { I: jo } = Uo, zo = (e) => e.strings === void 0, ri = () => document.crea
616
616
  * Copyright 2017 Google LLC
617
617
  * SPDX-License-Identifier: BSD-3-Clause
618
618
  */
619
- const si = (e, t, n) => {
619
+ const ui = (e, t, n) => {
620
620
  const i = /* @__PURE__ */ new Map();
621
621
  for (let o = t; o <= n; o++) i.set(e[o], o);
622
622
  return i;
623
- }, Yo = Ln(class extends kn {
623
+ }, Qo = Fn(class extends jn {
624
624
  constructor(e) {
625
625
  if (super(e), e.type !== Et.CHILD) throw Error("repeat() can only be used in text expressions");
626
626
  }
@@ -628,42 +628,42 @@ const si = (e, t, n) => {
628
628
  let i;
629
629
  n === void 0 ? n = t : t !== void 0 && (i = t);
630
630
  const o = [], r = [];
631
- let s = 0;
632
- for (const a of e) o[s] = i ? i(a, s) : s, r[s] = n(a, s), s++;
631
+ let a = 0;
632
+ for (const s of e) o[a] = i ? i(s, a) : a, r[a] = n(s, a), a++;
633
633
  return { values: r, keys: o };
634
634
  }
635
635
  render(e, t, n) {
636
636
  return this.dt(e, t, n).values;
637
637
  }
638
638
  update(e, [t, n, i]) {
639
- const o = Xo(e), { values: r, keys: s } = this.dt(t, n, i);
640
- if (!Array.isArray(o)) return this.ut = s, r;
641
- const a = this.ut ?? (this.ut = []), l = [];
642
- let u, d, c = 0, p = o.length - 1, f = 0, g = r.length - 1;
643
- for (; c <= p && f <= g; ) if (o[c] === null) c++;
639
+ const o = Ko(e), { values: r, keys: a } = this.dt(t, n, i);
640
+ if (!Array.isArray(o)) return this.ut = a, r;
641
+ const s = this.ut ?? (this.ut = []), l = [];
642
+ let u, c, d = 0, p = o.length - 1, f = 0, g = r.length - 1;
643
+ for (; d <= p && f <= g; ) if (o[d] === null) d++;
644
644
  else if (o[p] === null) p--;
645
- else if (a[c] === s[f]) l[f] = Pt(o[c], r[f]), c++, f++;
646
- else if (a[p] === s[g]) l[g] = Pt(o[p], r[g]), p--, g--;
647
- else if (a[c] === s[g]) l[g] = Pt(o[c], r[g]), Qt(e, l[g + 1], o[c]), c++, g--;
648
- else if (a[p] === s[f]) l[f] = Pt(o[p], r[f]), Qt(e, o[c], o[p]), p--, f++;
649
- else if (u === void 0 && (u = si(s, f, g), d = si(a, c, p)), u.has(a[c])) if (u.has(a[p])) {
650
- const y = d.get(s[f]), P = y !== void 0 ? o[y] : null;
651
- if (P === null) {
652
- const L = Qt(e, o[c]);
653
- Pt(L, r[f]), l[f] = L;
654
- } else l[f] = Pt(P, r[f]), Qt(e, o[c], P), o[y] = null;
645
+ else if (s[d] === a[f]) l[f] = Pt(o[d], r[f]), d++, f++;
646
+ else if (s[p] === a[g]) l[g] = Pt(o[p], r[g]), p--, g--;
647
+ else if (s[d] === a[g]) l[g] = Pt(o[d], r[g]), te(e, l[g + 1], o[d]), d++, g--;
648
+ else if (s[p] === a[f]) l[f] = Pt(o[p], r[f]), te(e, o[d], o[p]), p--, f++;
649
+ else if (u === void 0 && (u = ui(a, f, g), c = ui(s, d, p)), u.has(s[d])) if (u.has(s[p])) {
650
+ const y = c.get(a[f]), D = y !== void 0 ? o[y] : null;
651
+ if (D === null) {
652
+ const U = te(e, o[d]);
653
+ Pt(U, r[f]), l[f] = U;
654
+ } else l[f] = Pt(D, r[f]), te(e, o[d], D), o[y] = null;
655
655
  f++;
656
- } else gn(o[p]), p--;
657
- else gn(o[c]), c++;
656
+ } else bn(o[p]), p--;
657
+ else bn(o[d]), d++;
658
658
  for (; f <= g; ) {
659
- const y = Qt(e, l[g + 1]);
659
+ const y = te(e, l[g + 1]);
660
660
  Pt(y, r[f]), l[f++] = y;
661
661
  }
662
- for (; c <= p; ) {
663
- const y = o[c++];
664
- y !== null && gn(y);
662
+ for (; d <= p; ) {
663
+ const y = o[d++];
664
+ y !== null && bn(y);
665
665
  }
666
- return this.ut = s, Oi(e, l), ot;
666
+ return this.ut = a, Ii(e, l), rt;
667
667
  }
668
668
  });
669
669
  /**
@@ -672,8 +672,8 @@ const si = (e, t, n) => {
672
672
  * @license BSD-2-Clause
673
673
  * @preserve
674
674
  */
675
- var E = (e) => e !== void 0, Ni = (e, t, n) => t in e ? e[t] : e[t] = n;
676
- const pe = {
675
+ var x = (e) => e !== void 0, Hi = (e, t, n) => t in e ? e[t] : e[t] = n;
676
+ const fe = {
677
677
  ELEMENT: 1,
678
678
  ATTRIBUTE: 2,
679
679
  TEXT: 3,
@@ -687,7 +687,7 @@ const pe = {
687
687
  DOCUMENT_FRAGMENT: 11,
688
688
  NOTATION: 12
689
689
  };
690
- class qo {
690
+ class tr {
691
691
  /**
692
692
  * XML DOM parser
693
693
  * @constructor
@@ -712,56 +712,56 @@ class qo {
712
712
  * @api
713
713
  */
714
714
  getAllTextContent(t, n) {
715
- return ln(t, n).join("");
715
+ return cn(t, n).join("");
716
716
  }
717
717
  }
718
- function ln(e, t) {
719
- return Mi(e, t, []).join("");
718
+ function cn(e, t) {
719
+ return Bi(e, t, []).join("");
720
720
  }
721
- function Mi(e, t, n) {
722
- if (e.nodeType === pe.CDATA_SECTION || e.nodeType === pe.TEXT)
721
+ function Bi(e, t, n) {
722
+ if (e.nodeType === fe.CDATA_SECTION || e.nodeType === fe.TEXT)
723
723
  t ? n.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g, "")) : n.push(e.nodeValue);
724
724
  else {
725
725
  var i;
726
726
  for (i = e.firstChild; i; i = i.nextSibling)
727
- Mi(i, t, n);
727
+ Bi(i, t, n);
728
728
  }
729
729
  return n;
730
730
  }
731
- function Wo(e, t, n, i) {
732
- for (var o = Go(t); o; o = Jo(o)) {
733
- var r = o.namespaceURI || null, s = e[r];
734
- if (E(s)) {
735
- var a = s[o.localName];
736
- E(a) && a.call(i, o, n);
731
+ function er(e, t, n, i) {
732
+ for (var o = nr(t); o; o = ir(o)) {
733
+ var r = o.namespaceURI || null, a = e[r];
734
+ if (x(a)) {
735
+ var s = a[o.localName];
736
+ x(s) && s.call(i, o, n);
737
737
  }
738
738
  }
739
739
  }
740
- function Go(e) {
740
+ function nr(e) {
741
741
  let t = e.firstElementChild || e.firstChild;
742
- for (; t && t.nodeType !== pe.ELEMENT; )
742
+ for (; t && t.nodeType !== fe.ELEMENT; )
743
743
  t = t.nextSibling;
744
744
  return t;
745
745
  }
746
- function Jo(e) {
746
+ function ir(e) {
747
747
  let t = e.nextElementSibling || e.nextSibling;
748
- for (; t && t.nodeType !== pe.ELEMENT; )
748
+ for (; t && t.nodeType !== fe.ELEMENT; )
749
749
  t = t.nextSibling;
750
750
  return t;
751
751
  }
752
752
  function j(e, t, n) {
753
753
  return (
754
754
  /** @type {Object.<string, Object.<string, XMLParser.Parser>>} */
755
- Ko(e, t, n)
755
+ or(e, t, n)
756
756
  );
757
757
  }
758
- function Ko(e, t, n) {
759
- var i = E(n) ? n : {}, o, r;
758
+ function or(e, t, n) {
759
+ var i = x(n) ? n : {}, o, r;
760
760
  for (o = 0, r = e.length; o < r; ++o)
761
761
  i[e[o]] = t;
762
762
  return i;
763
763
  }
764
- function Ii(e, t) {
764
+ function Vi(e, t) {
765
765
  return (
766
766
  /**
767
767
  * @param {Node} node Node.
@@ -769,19 +769,19 @@ function Ii(e, t) {
769
769
  */
770
770
  function(n, i) {
771
771
  var o = e.call(
772
- E(t) ? t : this,
772
+ x(t) ? t : this,
773
773
  n,
774
774
  i
775
775
  );
776
- if (E(o)) {
776
+ if (x(o)) {
777
777
  var r = i[i.length - 1];
778
778
  r.push(o);
779
779
  }
780
780
  }
781
781
  );
782
782
  }
783
- function V(e, t, n, i, o) {
784
- return i.push(e), Wo(t, n, i, o), i.pop();
783
+ function L(e, t, n, i, o) {
784
+ return i.push(e), er(t, n, i, o), i.pop();
785
785
  }
786
786
  function m(e, t, n) {
787
787
  return (
@@ -791,16 +791,16 @@ function m(e, t, n) {
791
791
  */
792
792
  function(i, o) {
793
793
  let r = e.call(
794
- E(n) ? n : this,
794
+ x(n) ? n : this,
795
795
  i,
796
796
  o
797
797
  );
798
- if (E(r)) {
799
- var s = (
798
+ if (x(r)) {
799
+ var a = (
800
800
  /** @type {Object} */
801
801
  o[o.length - 1]
802
- ), a = E(t) ? t : i.localName;
803
- s[a] = r;
802
+ ), s = x(t) ? t : i.localName;
803
+ a[s] = r;
804
804
  }
805
805
  }
806
806
  );
@@ -813,56 +813,56 @@ function J(e, t, n) {
813
813
  */
814
814
  function(i, o) {
815
815
  var r = e.call(
816
- E(n) ? n : this,
816
+ x(n) ? n : this,
817
817
  i,
818
818
  o
819
819
  );
820
- if (E(r)) {
821
- var s = (
820
+ if (x(r)) {
821
+ var a = (
822
822
  /** @type {Object} */
823
823
  o[o.length - 1]
824
- ), a = E(t) ? t : i.localName, l = Ni(s, a, []);
824
+ ), s = x(t) ? t : i.localName, l = Hi(a, s, []);
825
825
  l.push(r);
826
826
  }
827
827
  }
828
828
  );
829
829
  }
830
- const Qo = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
831
- function tr(e) {
832
- return e.replace(Qo, "");
830
+ const rr = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
831
+ function ar(e) {
832
+ return e.replace(rr, "");
833
833
  }
834
- function Mt(e) {
834
+ function Nt(e) {
835
835
  const t = /^\s*(true|1)|(false|0)\s*$/.exec(e);
836
836
  if (t)
837
- return E(t[1]) || !1;
837
+ return x(t[1]) || !1;
838
838
  }
839
- function Ut(e) {
840
- return ft(ln(e, !1));
839
+ function kt(e) {
840
+ return ft(cn(e, !1));
841
841
  }
842
842
  function ft(e) {
843
843
  const t = /^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(e);
844
844
  if (t)
845
845
  return parseFloat(t[1]);
846
846
  }
847
- function mn(e) {
848
- return Be(ln(e, !1));
847
+ function vn(e) {
848
+ return Ve(cn(e, !1));
849
849
  }
850
- function Be(e) {
850
+ function Ve(e) {
851
851
  const t = /^\s*(\d+)\s*$/.exec(e);
852
852
  if (t)
853
853
  return parseInt(t[1], 10);
854
854
  }
855
- function $(e) {
856
- return tr(ln(e, !1));
855
+ function S(e) {
856
+ return ar(cn(e, !1));
857
857
  }
858
- const er = "http://www.w3.org/1999/xlink";
859
- function Un(e) {
860
- return e.getAttributeNS(er, "href");
858
+ const sr = "http://www.w3.org/1999/xlink";
859
+ function Zn(e) {
860
+ return e.getAttributeNS(sr, "href");
861
861
  }
862
- function nr(e, t) {
863
- return V({}, Pr, e, t);
862
+ function lr(e, t) {
863
+ return L({}, Ir, e, t);
864
864
  }
865
- function Hi(e) {
865
+ function Li(e) {
866
866
  return [
867
867
  ft(e.getAttribute("minx")),
868
868
  ft(e.getAttribute("miny")),
@@ -870,8 +870,8 @@ function Hi(e) {
870
870
  ft(e.getAttribute("maxy"))
871
871
  ];
872
872
  }
873
- function ir(e, t) {
874
- const n = Hi(e), i = [
873
+ function ur(e, t) {
874
+ const n = Li(e), i = [
875
875
  ft(e.getAttribute("resx")),
876
876
  ft(e.getAttribute("resy"))
877
877
  ];
@@ -881,23 +881,23 @@ function ir(e, t) {
881
881
  res: i
882
882
  };
883
883
  }
884
- function or(e, t) {
885
- const n = Hi(e);
886
- if (!(!E(n[0]) || !E(n[1]) || !E(n[2]) || !E(n[3])))
884
+ function dr(e, t) {
885
+ const n = Li(e);
886
+ if (!(!x(n[0]) || !x(n[1]) || !x(n[2]) || !x(n[3])))
887
887
  return n;
888
888
  }
889
- function rr(e, t) {
889
+ function cr(e, t) {
890
890
  const n = parseFloat(e.getAttribute("min")), i = parseFloat(e.getAttribute("max"));
891
891
  return { min: n, max: i };
892
892
  }
893
- function sr(e, t) {
894
- const n = V(
893
+ function hr(e, t) {
894
+ const n = L(
895
895
  {},
896
- Rr,
896
+ Hr,
897
897
  e,
898
898
  t
899
899
  );
900
- if (!E(n)) return;
900
+ if (!x(n)) return;
901
901
  const i = (
902
902
  /** @type {number|undefined} */
903
903
  n.westBoundLongitude
@@ -907,103 +907,103 @@ function sr(e, t) {
907
907
  ), r = (
908
908
  /** @type {number|undefined} */
909
909
  n.eastBoundLongitude
910
- ), s = (
910
+ ), a = (
911
911
  /** @type {number|undefined} */
912
912
  n.northBoundLatitude
913
913
  );
914
- if (!(!E(i) || !E(o) || !E(r) || !E(s)))
914
+ if (!(!x(i) || !x(o) || !x(r) || !x(a)))
915
915
  return [
916
916
  i,
917
917
  o,
918
918
  r,
919
- s
919
+ a
920
920
  ];
921
921
  }
922
- function ar(e, t) {
923
- return V({}, Sr, e, t);
922
+ function pr(e, t) {
923
+ return L({}, Pr, e, t);
924
924
  }
925
- function lr(e, t) {
926
- return V({}, $r, e, t);
925
+ function fr(e, t) {
926
+ return L({}, Dr, e, t);
927
927
  }
928
- function ur(e, t) {
929
- return V(
928
+ function gr(e, t) {
929
+ return L(
930
930
  {},
931
- _r,
931
+ Rr,
932
932
  e,
933
933
  t
934
934
  );
935
935
  }
936
- function cr(e, t) {
937
- return V(
936
+ function mr(e, t) {
937
+ return L(
938
938
  {},
939
- Ar,
939
+ Or,
940
940
  e,
941
941
  t
942
942
  );
943
943
  }
944
- function dr(e, t) {
945
- return V(
944
+ function yr(e, t) {
945
+ return L(
946
946
  {},
947
- Cr,
947
+ Mr,
948
948
  e,
949
949
  t
950
950
  );
951
951
  }
952
- function hr(e, t) {
953
- return V(
952
+ function br(e, t) {
953
+ return L(
954
954
  [],
955
- Tr,
955
+ Nr,
956
956
  e,
957
957
  t
958
958
  );
959
959
  }
960
- function pr(e, t) {
961
- const n = Mt(e.getAttribute("queryable"));
962
- return V(
960
+ function vr(e, t) {
961
+ const n = Nt(e.getAttribute("queryable"));
962
+ return L(
963
963
  {
964
- queryable: E(n) ? n : !1
964
+ queryable: x(n) ? n : !1
965
965
  },
966
- Li,
966
+ Fi,
967
967
  e,
968
968
  t
969
969
  );
970
970
  }
971
- function fr(e, t) {
971
+ function wr(e, t) {
972
972
  var n = (
973
973
  /** @type {Object.<string,*>} */
974
974
  t[t.length - 1]
975
975
  );
976
976
  const i = (
977
977
  /** @type {Object.<string,*>} */
978
- V(
978
+ L(
979
979
  {},
980
- Li,
980
+ Fi,
981
981
  e,
982
982
  t
983
983
  )
984
984
  );
985
- if (!E(i)) return;
986
- let o = Mt(e.getAttribute("queryable"));
987
- E(o) || (o = n.queryable), i.queryable = E(o) ? o : !1;
988
- let r = Be(e.getAttribute("cascaded"));
989
- E(r) || (r = n.cascaded), i.cascaded = r;
990
- let s = Mt(e.getAttribute("opaque"));
991
- E(s) || (s = n.opaque), i.opaque = E(s) ? s : !1;
992
- let a = Mt(e.getAttribute("noSubsets"));
993
- E(a) || (a = n.noSubsets), i.noSubsets = E(a) ? a : !1;
985
+ if (!x(i)) return;
986
+ let o = Nt(e.getAttribute("queryable"));
987
+ x(o) || (o = n.queryable), i.queryable = x(o) ? o : !1;
988
+ let r = Ve(e.getAttribute("cascaded"));
989
+ x(r) || (r = n.cascaded), i.cascaded = r;
990
+ let a = Nt(e.getAttribute("opaque"));
991
+ x(a) || (a = n.opaque), i.opaque = x(a) ? a : !1;
992
+ let s = Nt(e.getAttribute("noSubsets"));
993
+ x(s) || (s = n.noSubsets), i.noSubsets = x(s) ? s : !1;
994
994
  let l = ft(e.getAttribute("fixedWidth"));
995
- E(l) || (l = n.fixedWidth), i.fixedWidth = l;
995
+ x(l) || (l = n.fixedWidth), i.fixedWidth = l;
996
996
  let u = ft(e.getAttribute("fixedHeight"));
997
- E(u) || (u = n.fixedHeight), i.fixedHeight = u;
998
- const d = ["Style", "CRS", "AuthorityURL"];
999
- for (let p = 0, f = d.length; p < f; p++) {
1000
- const g = d[p], y = n[g];
1001
- if (E(y)) {
1002
- let P = Ni(i, g, []);
1003
- P = P.concat(y), i[g] = P;
997
+ x(u) || (u = n.fixedHeight), i.fixedHeight = u;
998
+ const c = ["Style", "CRS", "AuthorityURL"];
999
+ for (let p = 0, f = c.length; p < f; p++) {
1000
+ const g = c[p], y = n[g];
1001
+ if (x(y)) {
1002
+ let D = Hi(i, g, []);
1003
+ D = D.concat(y), i[g] = D;
1004
1004
  }
1005
1005
  }
1006
- const c = [
1006
+ const d = [
1007
1007
  "EX_GeographicBoundingBox",
1008
1008
  "BoundingBox",
1009
1009
  "Dimension",
@@ -1011,207 +1011,207 @@ function fr(e, t) {
1011
1011
  "MinScaleDenominator",
1012
1012
  "MaxScaleDenominator"
1013
1013
  ];
1014
- for (let p = 0, f = c.length; p < f; p++) {
1015
- const g = c[p], y = i[g];
1016
- if (!E(y)) {
1017
- const P = n[g];
1018
- i[g] = P;
1014
+ for (let p = 0, f = d.length; p < f; p++) {
1015
+ const g = d[p], y = i[g];
1016
+ if (!x(y)) {
1017
+ const D = n[g];
1018
+ i[g] = D;
1019
1019
  }
1020
1020
  }
1021
1021
  return i;
1022
1022
  }
1023
- function gr(e, t) {
1023
+ function Er(e, t) {
1024
1024
  return {
1025
1025
  name: e.getAttribute("name"),
1026
1026
  units: e.getAttribute("units"),
1027
1027
  unitSymbol: e.getAttribute("unitSymbol"),
1028
1028
  default: e.getAttribute("default"),
1029
- multipleValues: Mt(e.getAttribute("multipleValues")),
1030
- nearestValue: Mt(e.getAttribute("nearestValue")),
1031
- current: Mt(e.getAttribute("current")),
1032
- values: $(e)
1029
+ multipleValues: Nt(e.getAttribute("multipleValues")),
1030
+ nearestValue: Nt(e.getAttribute("nearestValue")),
1031
+ current: Nt(e.getAttribute("current")),
1032
+ values: S(e)
1033
1033
  };
1034
1034
  }
1035
1035
  function mt(e, t) {
1036
- return V(
1036
+ return L(
1037
1037
  {},
1038
- Hr,
1038
+ Fr,
1039
1039
  e,
1040
1040
  t
1041
1041
  );
1042
1042
  }
1043
- function mr(e, t) {
1044
- return V({}, Dr, e, t);
1043
+ function xr(e, t) {
1044
+ return L({}, Br, e, t);
1045
1045
  }
1046
- function yr(e, t) {
1047
- return V({}, Nr, e, t);
1046
+ function $r(e, t) {
1047
+ return L({}, Lr, e, t);
1048
1048
  }
1049
- function br(e, t) {
1050
- return V({}, Mr, e, t);
1049
+ function Sr(e, t) {
1050
+ return L({}, Ur, e, t);
1051
1051
  }
1052
- function yn(e, t) {
1053
- return V({}, Or, e, t);
1052
+ function wn(e, t) {
1053
+ return L({}, Vr, e, t);
1054
1054
  }
1055
- function Bi(e, t) {
1055
+ function Ui(e, t) {
1056
1056
  var n = mt(e, t);
1057
- if (E(n)) {
1057
+ if (x(n)) {
1058
1058
  const i = [
1059
- Be(e.getAttribute("width")),
1060
- Be(e.getAttribute("height"))
1059
+ Ve(e.getAttribute("width")),
1060
+ Ve(e.getAttribute("height"))
1061
1061
  ];
1062
1062
  return n.size = i, n;
1063
1063
  }
1064
1064
  }
1065
- function vr(e, t) {
1065
+ function _r(e, t) {
1066
1066
  var n = mt(e, t);
1067
- if (E(n))
1067
+ if (x(n))
1068
1068
  return n.name = e.getAttribute("name"), n;
1069
1069
  }
1070
- function wr(e, t) {
1070
+ function Ar(e, t) {
1071
1071
  var n = mt(e, t);
1072
- if (E(n))
1072
+ if (x(n))
1073
1073
  return n.type = e.getAttribute("type"), n;
1074
1074
  }
1075
- function Er(e, t) {
1076
- return V({}, Ir, e, t);
1075
+ function Cr(e, t) {
1076
+ return L({}, kr, e, t);
1077
1077
  }
1078
- function Vi(e, t) {
1079
- return V(
1078
+ function ki(e, t) {
1079
+ return L(
1080
1080
  [],
1081
- Br,
1081
+ jr,
1082
1082
  e,
1083
1083
  t
1084
1084
  );
1085
1085
  }
1086
- const z = [
1086
+ const Z = [
1087
1087
  null,
1088
1088
  "http://www.opengis.net/wms"
1089
- ], xr = j(
1090
- z,
1089
+ ], Tr = j(
1090
+ Z,
1091
1091
  {
1092
- Service: m(lr),
1093
- Capability: m(ar)
1092
+ Service: m(fr),
1093
+ Capability: m(pr)
1094
1094
  }
1095
- ), Sr = j(
1096
- z,
1095
+ ), Pr = j(
1096
+ Z,
1097
1097
  {
1098
- Request: m(mr),
1099
- Exception: m(hr),
1100
- Layer: m(pr)
1098
+ Request: m(xr),
1099
+ Exception: m(br),
1100
+ Layer: m(vr)
1101
1101
  }
1102
- ), $r = j(
1103
- z,
1102
+ ), Dr = j(
1103
+ Z,
1104
1104
  {
1105
- Name: m($),
1106
- Title: m($),
1107
- Abstract: m($),
1108
- KeywordList: m(Vi),
1109
- OnlineResource: m(Un),
1110
- ContactInformation: m(ur),
1111
- Fees: m($),
1112
- AccessConstraints: m($),
1113
- LayerLimit: m(mn),
1114
- MaxWidth: m(mn),
1115
- MaxHeight: m(mn)
1116
- }
1117
- ), _r = j(
1118
- z,
1105
+ Name: m(S),
1106
+ Title: m(S),
1107
+ Abstract: m(S),
1108
+ KeywordList: m(ki),
1109
+ OnlineResource: m(Zn),
1110
+ ContactInformation: m(gr),
1111
+ Fees: m(S),
1112
+ AccessConstraints: m(S),
1113
+ LayerLimit: m(vn),
1114
+ MaxWidth: m(vn),
1115
+ MaxHeight: m(vn)
1116
+ }
1117
+ ), Rr = j(
1118
+ Z,
1119
1119
  {
1120
- ContactPersonPrimary: m(cr),
1121
- ContactPosition: m($),
1122
- ContactAddress: m(dr),
1123
- ContactVoiceTelephone: m($),
1124
- ContactFacsimileTelephone: m($),
1125
- ContactElectronicMailAddress: m($)
1126
- }
1127
- ), Ar = j(
1128
- z,
1120
+ ContactPersonPrimary: m(mr),
1121
+ ContactPosition: m(S),
1122
+ ContactAddress: m(yr),
1123
+ ContactVoiceTelephone: m(S),
1124
+ ContactFacsimileTelephone: m(S),
1125
+ ContactElectronicMailAddress: m(S)
1126
+ }
1127
+ ), Or = j(
1128
+ Z,
1129
1129
  {
1130
- ContactPerson: m($),
1131
- ContactOrganization: m($)
1130
+ ContactPerson: m(S),
1131
+ ContactOrganization: m(S)
1132
1132
  }
1133
- ), Cr = j(
1134
- z,
1133
+ ), Mr = j(
1134
+ Z,
1135
1135
  {
1136
- AddressType: m($),
1137
- Address: m($),
1138
- City: m($),
1139
- StateOrProvince: m($),
1140
- PostCode: m($),
1141
- Country: m($)
1142
- }
1143
- ), Tr = j(
1144
- z,
1136
+ AddressType: m(S),
1137
+ Address: m(S),
1138
+ City: m(S),
1139
+ StateOrProvince: m(S),
1140
+ PostCode: m(S),
1141
+ Country: m(S)
1142
+ }
1143
+ ), Nr = j(
1144
+ Z,
1145
1145
  {
1146
- Format: Ii($)
1146
+ Format: Vi(S)
1147
1147
  }
1148
- ), Li = j(
1149
- z,
1148
+ ), Fi = j(
1149
+ Z,
1150
1150
  {
1151
- Name: m($),
1152
- Title: m($),
1153
- Abstract: m($),
1154
- KeywordList: m(Vi),
1155
- CRS: J($),
1156
- SRS: J($),
1157
- EX_GeographicBoundingBox: m(sr),
1158
- LatLonBoundingBox: m(or),
1159
- BoundingBox: J(ir),
1160
- Dimension: J(gr),
1161
- Attribution: m(nr),
1162
- AuthorityURL: J(vr),
1163
- Identifier: J($),
1164
- MetadataURL: J(wr),
1151
+ Name: m(S),
1152
+ Title: m(S),
1153
+ Abstract: m(S),
1154
+ KeywordList: m(ki),
1155
+ CRS: J(S),
1156
+ SRS: J(S),
1157
+ EX_GeographicBoundingBox: m(hr),
1158
+ LatLonBoundingBox: m(dr),
1159
+ BoundingBox: J(ur),
1160
+ Dimension: J(Er),
1161
+ Attribution: m(lr),
1162
+ AuthorityURL: J(_r),
1163
+ Identifier: J(S),
1164
+ MetadataURL: J(Ar),
1165
1165
  DataURL: J(mt),
1166
1166
  FeatureListURL: J(mt),
1167
- Style: J(Er),
1168
- MinScaleDenominator: m(Ut),
1169
- MaxScaleDenominator: m(Ut),
1170
- ScaleHint: m(rr),
1171
- Layer: J(fr)
1167
+ Style: J(Cr),
1168
+ MinScaleDenominator: m(kt),
1169
+ MaxScaleDenominator: m(kt),
1170
+ ScaleHint: m(cr),
1171
+ Layer: J(wr)
1172
1172
  }
1173
- ), Pr = j(
1174
- z,
1173
+ ), Ir = j(
1174
+ Z,
1175
1175
  {
1176
- Title: m($),
1177
- OnlineResource: m(Un),
1178
- LogoURL: m(Bi)
1179
- }
1180
- ), Rr = j(z, {
1181
- westBoundLongitude: m(Ut),
1182
- eastBoundLongitude: m(Ut),
1183
- southBoundLatitude: m(Ut),
1184
- northBoundLatitude: m(Ut)
1185
- }), Dr = j(
1186
- z,
1176
+ Title: m(S),
1177
+ OnlineResource: m(Zn),
1178
+ LogoURL: m(Ui)
1179
+ }
1180
+ ), Hr = j(Z, {
1181
+ westBoundLongitude: m(kt),
1182
+ eastBoundLongitude: m(kt),
1183
+ southBoundLatitude: m(kt),
1184
+ northBoundLatitude: m(kt)
1185
+ }), Br = j(
1186
+ Z,
1187
1187
  {
1188
1188
  GetCapabilities: m(
1189
- yn
1189
+ wn
1190
1190
  ),
1191
1191
  GetMap: m(
1192
- yn
1192
+ wn
1193
1193
  ),
1194
1194
  GetFeatureInfo: m(
1195
- yn
1195
+ wn
1196
1196
  )
1197
1197
  }
1198
- ), Or = j(
1199
- z,
1198
+ ), Vr = j(
1199
+ Z,
1200
1200
  {
1201
- Format: J($),
1201
+ Format: J(S),
1202
1202
  DCPType: J(
1203
- yr
1203
+ $r
1204
1204
  )
1205
1205
  }
1206
- ), Nr = j(
1207
- z,
1206
+ ), Lr = j(
1207
+ Z,
1208
1208
  {
1209
1209
  HTTP: m(
1210
- br
1210
+ Sr
1211
1211
  )
1212
1212
  }
1213
- ), Mr = j(
1214
- z,
1213
+ ), Ur = j(
1214
+ Z,
1215
1215
  {
1216
1216
  Get: m(
1217
1217
  mt
@@ -1220,29 +1220,29 @@ const z = [
1220
1220
  mt
1221
1221
  )
1222
1222
  }
1223
- ), Ir = j(
1224
- z,
1223
+ ), kr = j(
1224
+ Z,
1225
1225
  {
1226
- Name: m($),
1227
- Title: m($),
1228
- Abstract: m($),
1229
- LegendURL: J(Bi),
1226
+ Name: m(S),
1227
+ Title: m(S),
1228
+ Abstract: m(S),
1229
+ LegendURL: J(Ui),
1230
1230
  StyleSheetURL: m(mt),
1231
1231
  StyleURL: m(mt)
1232
1232
  }
1233
- ), Hr = j(
1234
- z,
1233
+ ), Fr = j(
1234
+ Z,
1235
1235
  {
1236
- Format: m($),
1237
- OnlineResource: m(Un)
1236
+ Format: m(S),
1237
+ OnlineResource: m(Zn)
1238
1238
  }
1239
- ), Br = j(
1240
- z,
1239
+ ), jr = j(
1240
+ Z,
1241
1241
  {
1242
- Keyword: Ii($)
1242
+ Keyword: Vi(S)
1243
1243
  }
1244
1244
  );
1245
- class Vr {
1245
+ class Zr {
1246
1246
  /**
1247
1247
  * WMS Capabilities parser
1248
1248
  *
@@ -1250,7 +1250,7 @@ class Vr {
1250
1250
  * @constructor
1251
1251
  */
1252
1252
  constructor(t, n) {
1253
- !n && typeof window < "u" && (n = window.DOMParser), this.version = void 0, this._parser = new qo(n), this._data = t;
1253
+ !n && typeof window < "u" && (n = window.DOMParser), this.version = void 0, this._parser = new tr(n), this._data = t;
1254
1254
  }
1255
1255
  /**
1256
1256
  * @param {String} xmlString
@@ -1279,7 +1279,7 @@ class Vr {
1279
1279
  */
1280
1280
  readFromDocument(t) {
1281
1281
  for (let n = t.firstChild; n; n = n.nextSibling)
1282
- if (n.nodeType == pe.ELEMENT)
1282
+ if (n.nodeType == fe.ELEMENT)
1283
1283
  return this.readFromNode(n);
1284
1284
  return null;
1285
1285
  }
@@ -1288,49 +1288,49 @@ class Vr {
1288
1288
  * @return {Object}
1289
1289
  */
1290
1290
  readFromNode(t) {
1291
- return this.version = t.getAttribute("version"), V({
1291
+ return this.version = t.getAttribute("version"), L({
1292
1292
  version: this.version
1293
- }, xr, t, []) || null;
1293
+ }, Tr, t, []) || null;
1294
1294
  }
1295
1295
  }
1296
- async function Lr(e) {
1296
+ async function zr(e) {
1297
1297
  let t = new URL(e), n = t.searchParams;
1298
1298
  n.set("SERVICE", "WMS"), n.set("REQUEST", "GetCapabilities");
1299
1299
  let i = t.toString();
1300
1300
  const o = await fetch(i);
1301
1301
  if (o.ok) {
1302
1302
  const r = await o.text();
1303
- return new Vr(r).toJSON();
1303
+ return new Zr(r).toJSON();
1304
1304
  } else
1305
1305
  throw new Error(`Error: ${o.status}`);
1306
1306
  }
1307
- function Fn(e) {
1307
+ function zn(e) {
1308
1308
  const t = /\b(?:wms|ows)\b/i, n = /{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;
1309
1309
  return t.test(e) ? "TileWMS" : n.test(e) ? "XYZ" : !1;
1310
1310
  }
1311
- function kr(e) {
1312
- const n = /^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(e), i = Fn(e);
1311
+ function Xr(e) {
1312
+ const n = /^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(e), i = zn(e);
1313
1313
  return !!(e && n && i);
1314
1314
  }
1315
- function ki(e) {
1315
+ function ji(e) {
1316
1316
  return e.replace(
1317
1317
  /(['"])?([a-zA-Z0-9_]+)(['"])?:/g,
1318
1318
  '"$2": '
1319
1319
  ).replace(/,\s*}/g, "}").replace(/,\s*]/g, "]").replace(/\s*(\{|}|\[|\]|,)\s*/g, "$1").replaceAll('": //', "://");
1320
1320
  }
1321
- function Ur(e) {
1321
+ function qr(e) {
1322
1322
  try {
1323
- return JSON.parse(ki(e)), !!e;
1323
+ return JSON.parse(ji(e)), !!e;
1324
1324
  } catch {
1325
1325
  return !1;
1326
1326
  }
1327
1327
  }
1328
- function Fr(e, t) {
1328
+ function Yr(e, t) {
1329
1329
  const n = new URL(e).searchParams;
1330
- Object.entries(t).forEach(([s, a]) => {
1331
- typeof a == "object" && !Array.isArray(a) && a !== null ? Object.keys(a).forEach((l) => {
1332
- n.set(l, a[l]);
1333
- }) : n.set(s, a);
1330
+ Object.entries(t).forEach(([a, s]) => {
1331
+ typeof s == "object" && !Array.isArray(s) && s !== null ? Object.keys(s).forEach((l) => {
1332
+ n.set(l, s[l]);
1333
+ }) : n.set(a, s);
1334
1334
  });
1335
1335
  const i = e.split("?")[0], o = n.toString();
1336
1336
  return `${i}?${o}`;
@@ -1341,7 +1341,7 @@ function Fr(e, t) {
1341
1341
  * @author owenm <owen23355@gmail.com>
1342
1342
  * @license MIT
1343
1343
  */
1344
- function ai(e, t) {
1344
+ function di(e, t) {
1345
1345
  var n = Object.keys(e);
1346
1346
  if (Object.getOwnPropertySymbols) {
1347
1347
  var i = Object.getOwnPropertySymbols(e);
@@ -1351,26 +1351,26 @@ function ai(e, t) {
1351
1351
  }
1352
1352
  return n;
1353
1353
  }
1354
- function dt(e) {
1354
+ function ct(e) {
1355
1355
  for (var t = 1; t < arguments.length; t++) {
1356
1356
  var n = arguments[t] != null ? arguments[t] : {};
1357
- t % 2 ? ai(Object(n), !0).forEach(function(i) {
1358
- jr(e, i, n[i]);
1359
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ai(Object(n)).forEach(function(i) {
1357
+ t % 2 ? di(Object(n), !0).forEach(function(i) {
1358
+ Wr(e, i, n[i]);
1359
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : di(Object(n)).forEach(function(i) {
1360
1360
  Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(n, i));
1361
1361
  });
1362
1362
  }
1363
1363
  return e;
1364
1364
  }
1365
- function Te(e) {
1365
+ function Pe(e) {
1366
1366
  "@babel/helpers - typeof";
1367
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Te = function(t) {
1367
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Pe = function(t) {
1368
1368
  return typeof t;
1369
- } : Te = function(t) {
1369
+ } : Pe = function(t) {
1370
1370
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1371
- }, Te(e);
1371
+ }, Pe(e);
1372
1372
  }
1373
- function jr(e, t, n) {
1373
+ function Wr(e, t, n) {
1374
1374
  return t in e ? Object.defineProperty(e, t, {
1375
1375
  value: n,
1376
1376
  enumerable: !0,
@@ -1388,16 +1388,16 @@ function yt() {
1388
1388
  return e;
1389
1389
  }, yt.apply(this, arguments);
1390
1390
  }
1391
- function zr(e, t) {
1391
+ function Gr(e, t) {
1392
1392
  if (e == null) return {};
1393
1393
  var n = {}, i = Object.keys(e), o, r;
1394
1394
  for (r = 0; r < i.length; r++)
1395
1395
  o = i[r], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
1396
1396
  return n;
1397
1397
  }
1398
- function Zr(e, t) {
1398
+ function Jr(e, t) {
1399
1399
  if (e == null) return {};
1400
- var n = zr(e, t), i, o;
1400
+ var n = Gr(e, t), i, o;
1401
1401
  if (Object.getOwnPropertySymbols) {
1402
1402
  var r = Object.getOwnPropertySymbols(e);
1403
1403
  for (o = 0; o < r.length; o++)
@@ -1405,22 +1405,22 @@ function Zr(e, t) {
1405
1405
  }
1406
1406
  return n;
1407
1407
  }
1408
- var Xr = "1.15.2";
1408
+ var Kr = "1.15.2";
1409
1409
  function gt(e) {
1410
1410
  if (typeof window < "u" && window.navigator)
1411
1411
  return !!/* @__PURE__ */ navigator.userAgent.match(e);
1412
1412
  }
1413
- var bt = gt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ve = gt(/Edge/i), li = gt(/firefox/i), re = gt(/safari/i) && !gt(/chrome/i) && !gt(/android/i), Ui = gt(/iP(ad|od|hone)/i), Fi = gt(/chrome/i) && gt(/android/i), ji = {
1413
+ var bt = gt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), we = gt(/Edge/i), ci = gt(/firefox/i), ae = gt(/safari/i) && !gt(/chrome/i) && !gt(/android/i), Zi = gt(/iP(ad|od|hone)/i), zi = gt(/chrome/i) && gt(/android/i), Xi = {
1414
1414
  capture: !1,
1415
1415
  passive: !1
1416
1416
  };
1417
1417
  function _(e, t, n) {
1418
- e.addEventListener(t, n, !bt && ji);
1418
+ e.addEventListener(t, n, !bt && Xi);
1419
1419
  }
1420
- function S(e, t, n) {
1421
- e.removeEventListener(t, n, !bt && ji);
1420
+ function $(e, t, n) {
1421
+ e.removeEventListener(t, n, !bt && Xi);
1422
1422
  }
1423
- function Ve(e, t) {
1423
+ function Le(e, t) {
1424
1424
  if (t) {
1425
1425
  if (t[0] === ">" && (t = t.substring(1)), e)
1426
1426
  try {
@@ -1436,28 +1436,28 @@ function Ve(e, t) {
1436
1436
  return !1;
1437
1437
  }
1438
1438
  }
1439
- function Yr(e) {
1439
+ function Qr(e) {
1440
1440
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
1441
1441
  }
1442
1442
  function ut(e, t, n, i) {
1443
1443
  if (e) {
1444
1444
  n = n || document;
1445
1445
  do {
1446
- if (t != null && (t[0] === ">" ? e.parentNode === n && Ve(e, t) : Ve(e, t)) || i && e === n)
1446
+ if (t != null && (t[0] === ">" ? e.parentNode === n && Le(e, t) : Le(e, t)) || i && e === n)
1447
1447
  return e;
1448
1448
  if (e === n) break;
1449
- } while (e = Yr(e));
1449
+ } while (e = Qr(e));
1450
1450
  }
1451
1451
  return null;
1452
1452
  }
1453
- var ui = /\s+/g;
1454
- function Q(e, t, n) {
1453
+ var hi = /\s+/g;
1454
+ function et(e, t, n) {
1455
1455
  if (e && t)
1456
1456
  if (e.classList)
1457
1457
  e.classList[n ? "add" : "remove"](t);
1458
1458
  else {
1459
- var i = (" " + e.className + " ").replace(ui, " ").replace(" " + t + " ", " ");
1460
- e.className = (i + (n ? " " + t : "")).replace(ui, " ");
1459
+ var i = (" " + e.className + " ").replace(hi, " ").replace(" " + t + " ", " ");
1460
+ e.className = (i + (n ? " " + t : "")).replace(hi, " ");
1461
1461
  }
1462
1462
  }
1463
1463
  function b(e, t, n) {
@@ -1480,7 +1480,7 @@ function jt(e, t) {
1480
1480
  var o = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
1481
1481
  return o && new o(n);
1482
1482
  }
1483
- function zi(e, t, n) {
1483
+ function qi(e, t, n) {
1484
1484
  if (e) {
1485
1485
  var i = e.getElementsByTagName(t), o = 0, r = i.length;
1486
1486
  if (n)
@@ -1490,78 +1490,78 @@ function zi(e, t, n) {
1490
1490
  }
1491
1491
  return [];
1492
1492
  }
1493
- function ct() {
1493
+ function dt() {
1494
1494
  var e = document.scrollingElement;
1495
1495
  return e || document.documentElement;
1496
1496
  }
1497
- function I(e, t, n, i, o) {
1497
+ function H(e, t, n, i, o) {
1498
1498
  if (!(!e.getBoundingClientRect && e !== window)) {
1499
- var r, s, a, l, u, d, c;
1500
- if (e !== window && e.parentNode && e !== ct() ? (r = e.getBoundingClientRect(), s = r.top, a = r.left, l = r.bottom, u = r.right, d = r.height, c = r.width) : (s = 0, a = 0, l = window.innerHeight, u = window.innerWidth, d = window.innerHeight, c = window.innerWidth), (t || n) && e !== window && (o = o || e.parentNode, !bt))
1499
+ var r, a, s, l, u, c, d;
1500
+ if (e !== window && e.parentNode && e !== dt() ? (r = e.getBoundingClientRect(), a = r.top, s = r.left, l = r.bottom, u = r.right, c = r.height, d = r.width) : (a = 0, s = 0, l = window.innerHeight, u = window.innerWidth, c = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (o = o || e.parentNode, !bt))
1501
1501
  do
1502
1502
  if (o && o.getBoundingClientRect && (b(o, "transform") !== "none" || n && b(o, "position") !== "static")) {
1503
1503
  var p = o.getBoundingClientRect();
1504
- s -= p.top + parseInt(b(o, "border-top-width")), a -= p.left + parseInt(b(o, "border-left-width")), l = s + r.height, u = a + r.width;
1504
+ a -= p.top + parseInt(b(o, "border-top-width")), s -= p.left + parseInt(b(o, "border-left-width")), l = a + r.height, u = s + r.width;
1505
1505
  break;
1506
1506
  }
1507
1507
  while (o = o.parentNode);
1508
1508
  if (i && e !== window) {
1509
1509
  var f = jt(o || e), g = f && f.a, y = f && f.d;
1510
- f && (s /= y, a /= g, c /= g, d /= y, l = s + d, u = a + c);
1510
+ f && (a /= y, s /= g, d /= g, c /= y, l = a + c, u = s + d);
1511
1511
  }
1512
1512
  return {
1513
- top: s,
1514
- left: a,
1513
+ top: a,
1514
+ left: s,
1515
1515
  bottom: l,
1516
1516
  right: u,
1517
- width: c,
1518
- height: d
1517
+ width: d,
1518
+ height: c
1519
1519
  };
1520
1520
  }
1521
1521
  }
1522
- function ci(e, t, n) {
1523
- for (var i = $t(e, !0), o = I(e)[t]; i; ) {
1524
- var r = I(i)[n], s = void 0;
1525
- if (n === "top" || n === "left" ? s = o >= r : s = o <= r, !s) return i;
1526
- if (i === ct()) break;
1527
- i = $t(i, !1);
1522
+ function pi(e, t, n) {
1523
+ for (var i = St(e, !0), o = H(e)[t]; i; ) {
1524
+ var r = H(i)[n], a = void 0;
1525
+ if (a = o >= r, !a) return i;
1526
+ if (i === dt()) break;
1527
+ i = St(i, !1);
1528
1528
  }
1529
1529
  return !1;
1530
1530
  }
1531
- function Zt(e, t, n, i) {
1532
- for (var o = 0, r = 0, s = e.children; r < s.length; ) {
1533
- if (s[r].style.display !== "none" && s[r] !== v.ghost && (i || s[r] !== v.dragged) && ut(s[r], n.draggable, e, !1)) {
1531
+ function zt(e, t, n, i) {
1532
+ for (var o = 0, r = 0, a = e.children; r < a.length; ) {
1533
+ if (a[r].style.display !== "none" && a[r] !== v.ghost && (i || a[r] !== v.dragged) && ut(a[r], n.draggable, e, !1)) {
1534
1534
  if (o === t)
1535
- return s[r];
1535
+ return a[r];
1536
1536
  o++;
1537
1537
  }
1538
1538
  r++;
1539
1539
  }
1540
1540
  return null;
1541
1541
  }
1542
- function jn(e, t) {
1543
- for (var n = e.lastElementChild; n && (n === v.ghost || b(n, "display") === "none" || t && !Ve(n, t)); )
1542
+ function Xn(e, t) {
1543
+ for (var n = e.lastElementChild; n && (n === v.ghost || b(n, "display") === "none" || t && !Le(n, t)); )
1544
1544
  n = n.previousElementSibling;
1545
1545
  return n || null;
1546
1546
  }
1547
- function it(e, t) {
1547
+ function ot(e, t) {
1548
1548
  var n = 0;
1549
1549
  if (!e || !e.parentNode)
1550
1550
  return -1;
1551
1551
  for (; e = e.previousElementSibling; )
1552
- e.nodeName.toUpperCase() !== "TEMPLATE" && e !== v.clone && (!t || Ve(e, t)) && n++;
1552
+ e.nodeName.toUpperCase() !== "TEMPLATE" && e !== v.clone && (!t || Le(e, t)) && n++;
1553
1553
  return n;
1554
1554
  }
1555
- function di(e) {
1556
- var t = 0, n = 0, i = ct();
1555
+ function fi(e) {
1556
+ var t = 0, n = 0, i = dt();
1557
1557
  if (e)
1558
1558
  do {
1559
- var o = jt(e), r = o.a, s = o.d;
1560
- t += e.scrollLeft * r, n += e.scrollTop * s;
1559
+ var o = jt(e), r = o.a, a = o.d;
1560
+ t += e.scrollLeft * r, n += e.scrollTop * a;
1561
1561
  } while (e !== i && (e = e.parentNode));
1562
1562
  return [t, n];
1563
1563
  }
1564
- function qr(e, t) {
1564
+ function ta(e, t) {
1565
1565
  for (var n in e)
1566
1566
  if (e.hasOwnProperty(n)) {
1567
1567
  for (var i in t)
@@ -1569,32 +1569,32 @@ function qr(e, t) {
1569
1569
  }
1570
1570
  return -1;
1571
1571
  }
1572
- function $t(e, t) {
1573
- if (!e || !e.getBoundingClientRect) return ct();
1572
+ function St(e, t) {
1573
+ if (!e || !e.getBoundingClientRect) return dt();
1574
1574
  var n = e, i = !1;
1575
1575
  do
1576
1576
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
1577
1577
  var o = b(n);
1578
1578
  if (n.clientWidth < n.scrollWidth && (o.overflowX == "auto" || o.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (o.overflowY == "auto" || o.overflowY == "scroll")) {
1579
- if (!n.getBoundingClientRect || n === document.body) return ct();
1579
+ if (!n.getBoundingClientRect || n === document.body) return dt();
1580
1580
  if (i || t) return n;
1581
1581
  i = !0;
1582
1582
  }
1583
1583
  }
1584
1584
  while (n = n.parentNode);
1585
- return ct();
1585
+ return dt();
1586
1586
  }
1587
- function Wr(e, t) {
1587
+ function ea(e, t) {
1588
1588
  if (e && t)
1589
1589
  for (var n in t)
1590
1590
  t.hasOwnProperty(n) && (e[n] = t[n]);
1591
1591
  return e;
1592
1592
  }
1593
- function bn(e, t) {
1593
+ function En(e, t) {
1594
1594
  return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
1595
1595
  }
1596
1596
  var se;
1597
- function Zi(e, t) {
1597
+ function Yi(e, t) {
1598
1598
  return function() {
1599
1599
  if (!se) {
1600
1600
  var n = arguments, i = this;
@@ -1604,28 +1604,28 @@ function Zi(e, t) {
1604
1604
  }
1605
1605
  };
1606
1606
  }
1607
- function Gr() {
1607
+ function na() {
1608
1608
  clearTimeout(se), se = void 0;
1609
1609
  }
1610
- function Xi(e, t, n) {
1610
+ function Wi(e, t, n) {
1611
1611
  e.scrollLeft += t, e.scrollTop += n;
1612
1612
  }
1613
- function Yi(e) {
1613
+ function Gi(e) {
1614
1614
  var t = window.Polymer, n = window.jQuery || window.Zepto;
1615
1615
  return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
1616
1616
  }
1617
- function qi(e, t, n) {
1617
+ function Ji(e, t, n) {
1618
1618
  var i = {};
1619
1619
  return Array.from(e.children).forEach(function(o) {
1620
- var r, s, a, l;
1620
+ var r, a, s, l;
1621
1621
  if (!(!ut(o, t.draggable, e, !1) || o.animated || o === n)) {
1622
- var u = I(o);
1623
- i.left = Math.min((r = i.left) !== null && r !== void 0 ? r : 1 / 0, u.left), i.top = Math.min((s = i.top) !== null && s !== void 0 ? s : 1 / 0, u.top), i.right = Math.max((a = i.right) !== null && a !== void 0 ? a : -1 / 0, u.right), i.bottom = Math.max((l = i.bottom) !== null && l !== void 0 ? l : -1 / 0, u.bottom);
1622
+ var u = H(o);
1623
+ i.left = Math.min((r = i.left) !== null && r !== void 0 ? r : 1 / 0, u.left), i.top = Math.min((a = i.top) !== null && a !== void 0 ? a : 1 / 0, u.top), i.right = Math.max((s = i.right) !== null && s !== void 0 ? s : -1 / 0, u.right), i.bottom = Math.max((l = i.bottom) !== null && l !== void 0 ? l : -1 / 0, u.bottom);
1624
1624
  }
1625
1625
  }), i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
1626
1626
  }
1627
- var et = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
1628
- function Jr() {
1627
+ var it = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
1628
+ function ia() {
1629
1629
  var e = [], t;
1630
1630
  return {
1631
1631
  captureAnimationState: function() {
@@ -1635,12 +1635,12 @@ function Jr() {
1635
1635
  if (!(b(o, "display") === "none" || o === v.ghost)) {
1636
1636
  e.push({
1637
1637
  target: o,
1638
- rect: I(o)
1638
+ rect: H(o)
1639
1639
  });
1640
- var r = dt({}, e[e.length - 1].rect);
1640
+ var r = ct({}, e[e.length - 1].rect);
1641
1641
  if (o.thisAnimationDuration) {
1642
- var s = jt(o, !0);
1643
- s && (r.top -= s.f, r.left -= s.e);
1642
+ var a = jt(o, !0);
1643
+ a && (r.top -= a.f, r.left -= a.e);
1644
1644
  }
1645
1645
  o.fromRect = r;
1646
1646
  }
@@ -1651,7 +1651,7 @@ function Jr() {
1651
1651
  e.push(i);
1652
1652
  },
1653
1653
  removeAnimationState: function(i) {
1654
- e.splice(qr(e, {
1654
+ e.splice(ta(e, {
1655
1655
  target: i
1656
1656
  }), 1);
1657
1657
  },
@@ -1661,40 +1661,40 @@ function Jr() {
1661
1661
  clearTimeout(t), typeof i == "function" && i();
1662
1662
  return;
1663
1663
  }
1664
- var r = !1, s = 0;
1665
- e.forEach(function(a) {
1666
- var l = 0, u = a.target, d = u.fromRect, c = I(u), p = u.prevFromRect, f = u.prevToRect, g = a.rect, y = jt(u, !0);
1667
- y && (c.top -= y.f, c.left -= y.e), u.toRect = c, u.thisAnimationDuration && bn(p, c) && !bn(d, c) && // Make sure animatingRect is on line between toRect & fromRect
1668
- (g.top - c.top) / (g.left - c.left) === (d.top - c.top) / (d.left - c.left) && (l = Qr(g, p, f, o.options)), bn(c, d) || (u.prevFromRect = d, u.prevToRect = c, l || (l = o.options.animation), o.animate(u, g, c, l)), l && (r = !0, s = Math.max(s, l), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
1664
+ var r = !1, a = 0;
1665
+ e.forEach(function(s) {
1666
+ var l = 0, u = s.target, c = u.fromRect, d = H(u), p = u.prevFromRect, f = u.prevToRect, g = s.rect, y = jt(u, !0);
1667
+ y && (d.top -= y.f, d.left -= y.e), u.toRect = d, u.thisAnimationDuration && En(p, d) && !En(c, d) && // Make sure animatingRect is on line between toRect & fromRect
1668
+ (g.top - d.top) / (g.left - d.left) === (c.top - d.top) / (c.left - d.left) && (l = ra(g, p, f, o.options)), En(d, c) || (u.prevFromRect = c, u.prevToRect = d, l || (l = o.options.animation), o.animate(u, g, d, l)), l && (r = !0, a = Math.max(a, l), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
1669
1669
  u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
1670
1670
  }, l), u.thisAnimationDuration = l);
1671
1671
  }), clearTimeout(t), r ? t = setTimeout(function() {
1672
1672
  typeof i == "function" && i();
1673
- }, s) : typeof i == "function" && i(), e = [];
1673
+ }, a) : typeof i == "function" && i(), e = [];
1674
1674
  },
1675
- animate: function(i, o, r, s) {
1676
- if (s) {
1675
+ animate: function(i, o, r, a) {
1676
+ if (a) {
1677
1677
  b(i, "transition", ""), b(i, "transform", "");
1678
- var a = jt(this.el), l = a && a.a, u = a && a.d, d = (o.left - r.left) / (l || 1), c = (o.top - r.top) / (u || 1);
1679
- i.animatingX = !!d, i.animatingY = !!c, b(i, "transform", "translate3d(" + d + "px," + c + "px,0)"), this.forRepaintDummy = Kr(i), b(i, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), b(i, "transform", "translate3d(0,0,0)"), typeof i.animated == "number" && clearTimeout(i.animated), i.animated = setTimeout(function() {
1678
+ var s = jt(this.el), l = s && s.a, u = s && s.d, c = (o.left - r.left) / (l || 1), d = (o.top - r.top) / (u || 1);
1679
+ i.animatingX = !!c, i.animatingY = !!d, b(i, "transform", "translate3d(" + c + "px," + d + "px,0)"), this.forRepaintDummy = oa(i), b(i, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), b(i, "transform", "translate3d(0,0,0)"), typeof i.animated == "number" && clearTimeout(i.animated), i.animated = setTimeout(function() {
1680
1680
  b(i, "transition", ""), b(i, "transform", ""), i.animated = !1, i.animatingX = !1, i.animatingY = !1;
1681
- }, s);
1681
+ }, a);
1682
1682
  }
1683
1683
  }
1684
1684
  };
1685
1685
  }
1686
- function Kr(e) {
1686
+ function oa(e) {
1687
1687
  return e.offsetWidth;
1688
1688
  }
1689
- function Qr(e, t, n, i) {
1689
+ function ra(e, t, n, i) {
1690
1690
  return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - n.top, 2) + Math.pow(t.left - n.left, 2)) * i.animation;
1691
1691
  }
1692
- var Bt = [], vn = {
1692
+ var Bt = [], xn = {
1693
1693
  initializeByDefault: !0
1694
- }, we = {
1694
+ }, Ee = {
1695
1695
  mount: function(t) {
1696
- for (var n in vn)
1697
- vn.hasOwnProperty(n) && !(n in t) && (t[n] = vn[n]);
1696
+ for (var n in xn)
1697
+ xn.hasOwnProperty(n) && !(n in t) && (t[n] = xn[n]);
1698
1698
  Bt.forEach(function(i) {
1699
1699
  if (i.pluginName === t.pluginName)
1700
1700
  throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
@@ -1706,26 +1706,26 @@ var Bt = [], vn = {
1706
1706
  o.eventCanceled = !0;
1707
1707
  };
1708
1708
  var r = t + "Global";
1709
- Bt.forEach(function(s) {
1710
- n[s.pluginName] && (n[s.pluginName][r] && n[s.pluginName][r](dt({
1709
+ Bt.forEach(function(a) {
1710
+ n[a.pluginName] && (n[a.pluginName][r] && n[a.pluginName][r](ct({
1711
1711
  sortable: n
1712
- }, i)), n.options[s.pluginName] && n[s.pluginName][t] && n[s.pluginName][t](dt({
1712
+ }, i)), n.options[a.pluginName] && n[a.pluginName][t] && n[a.pluginName][t](ct({
1713
1713
  sortable: n
1714
1714
  }, i)));
1715
1715
  });
1716
1716
  },
1717
1717
  initializePlugins: function(t, n, i, o) {
1718
- Bt.forEach(function(a) {
1719
- var l = a.pluginName;
1720
- if (!(!t.options[l] && !a.initializeByDefault)) {
1721
- var u = new a(t, n, t.options);
1718
+ Bt.forEach(function(s) {
1719
+ var l = s.pluginName;
1720
+ if (!(!t.options[l] && !s.initializeByDefault)) {
1721
+ var u = new s(t, n, t.options);
1722
1722
  u.sortable = t, u.options = t.options, t[l] = u, yt(i, u.defaults);
1723
1723
  }
1724
1724
  });
1725
1725
  for (var r in t.options)
1726
1726
  if (t.options.hasOwnProperty(r)) {
1727
- var s = this.modifyOption(t, r, t.options[r]);
1728
- typeof s < "u" && (t.options[r] = s);
1727
+ var a = this.modifyOption(t, r, t.options[r]);
1728
+ typeof a < "u" && (t.options[r] = a);
1729
1729
  }
1730
1730
  },
1731
1731
  getEventProperties: function(t, n) {
@@ -1741,146 +1741,146 @@ var Bt = [], vn = {
1741
1741
  }), o;
1742
1742
  }
1743
1743
  };
1744
- function ts(e) {
1745
- var t = e.sortable, n = e.rootEl, i = e.name, o = e.targetEl, r = e.cloneEl, s = e.toEl, a = e.fromEl, l = e.oldIndex, u = e.newIndex, d = e.oldDraggableIndex, c = e.newDraggableIndex, p = e.originalEvent, f = e.putSortable, g = e.extraEventProperties;
1746
- if (t = t || n && n[et], !!t) {
1747
- var y, P = t.options, L = "on" + i.charAt(0).toUpperCase() + i.substr(1);
1748
- window.CustomEvent && !bt && !ve ? y = new CustomEvent(i, {
1744
+ function aa(e) {
1745
+ var t = e.sortable, n = e.rootEl, i = e.name, o = e.targetEl, r = e.cloneEl, a = e.toEl, s = e.fromEl, l = e.oldIndex, u = e.newIndex, c = e.oldDraggableIndex, d = e.newDraggableIndex, p = e.originalEvent, f = e.putSortable, g = e.extraEventProperties;
1746
+ if (t = t || n && n[it], !!t) {
1747
+ var y, D = t.options, U = "on" + i.charAt(0).toUpperCase() + i.substr(1);
1748
+ window.CustomEvent && !bt && !we ? y = new CustomEvent(i, {
1749
1749
  bubbles: !0,
1750
1750
  cancelable: !0
1751
- }) : (y = document.createEvent("Event"), y.initEvent(i, !0, !0)), y.to = s || n, y.from = a || n, y.item = o || n, y.clone = r, y.oldIndex = l, y.newIndex = u, y.oldDraggableIndex = d, y.newDraggableIndex = c, y.originalEvent = p, y.pullMode = f ? f.lastPutMode : void 0;
1752
- var B = dt(dt({}, g), we.getEventProperties(i, t));
1753
- for (var K in B)
1754
- y[K] = B[K];
1755
- n && n.dispatchEvent(y), P[L] && P[L].call(t, y);
1751
+ }) : (y = document.createEvent("Event"), y.initEvent(i, !0, !0)), y.to = a || n, y.from = s || n, y.item = o || n, y.clone = r, y.oldIndex = l, y.newIndex = u, y.oldDraggableIndex = c, y.newDraggableIndex = d, y.originalEvent = p, y.pullMode = f ? f.lastPutMode : void 0;
1752
+ var V = ct(ct({}, g), Ee.getEventProperties(i, t));
1753
+ for (var tt in V)
1754
+ y[tt] = V[tt];
1755
+ n && n.dispatchEvent(y), D[U] && D[U].call(t, y);
1756
1756
  }
1757
1757
  }
1758
- var es = ["evt"], G = function(t, n) {
1759
- var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.evt, r = Zr(i, es);
1760
- we.pluginEvent.bind(v)(t, n, dt({
1758
+ var sa = ["evt"], G = function(t, n) {
1759
+ var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.evt, r = Jr(i, sa);
1760
+ Ee.pluginEvent.bind(v)(t, n, ct({
1761
1761
  dragEl: h,
1762
- parentEl: N,
1762
+ parentEl: M,
1763
1763
  ghostEl: w,
1764
1764
  rootEl: R,
1765
1765
  nextEl: Ot,
1766
- lastDownEl: Pe,
1766
+ lastDownEl: De,
1767
1767
  cloneEl: O,
1768
- cloneHidden: St,
1769
- dragStarted: te,
1770
- putSortable: U,
1768
+ cloneHidden: $t,
1769
+ dragStarted: ee,
1770
+ putSortable: k,
1771
1771
  activeSortable: v.active,
1772
1772
  originalEvent: o,
1773
1773
  oldIndex: Ft,
1774
- oldDraggableIndex: ae,
1775
- newIndex: tt,
1774
+ oldDraggableIndex: le,
1775
+ newIndex: nt,
1776
1776
  newDraggableIndex: xt,
1777
- hideGhostForTarget: Ki,
1778
- unhideGhostForTarget: Qi,
1777
+ hideGhostForTarget: eo,
1778
+ unhideGhostForTarget: no,
1779
1779
  cloneNowHidden: function() {
1780
- St = !0;
1780
+ $t = !0;
1781
1781
  },
1782
1782
  cloneNowShown: function() {
1783
- St = !1;
1783
+ $t = !1;
1784
1784
  },
1785
- dispatchSortableEvent: function(a) {
1785
+ dispatchSortableEvent: function(s) {
1786
1786
  W({
1787
1787
  sortable: n,
1788
- name: a,
1788
+ name: s,
1789
1789
  originalEvent: o
1790
1790
  });
1791
1791
  }
1792
1792
  }, r));
1793
1793
  };
1794
1794
  function W(e) {
1795
- ts(dt({
1796
- putSortable: U,
1795
+ aa(ct({
1796
+ putSortable: k,
1797
1797
  cloneEl: O,
1798
1798
  targetEl: h,
1799
1799
  rootEl: R,
1800
1800
  oldIndex: Ft,
1801
- oldDraggableIndex: ae,
1802
- newIndex: tt,
1801
+ oldDraggableIndex: le,
1802
+ newIndex: nt,
1803
1803
  newDraggableIndex: xt
1804
1804
  }, e));
1805
1805
  }
1806
- var h, N, w, R, Ot, Pe, O, St, Ft, tt, ae, xt, xe, U, kt = !1, Le = !1, ke = [], Rt, lt, wn, En, hi, pi, te, Vt, le, ue = !1, Se = !1, Re, Y, xn = [], Pn = !1, Ue = [], un = typeof document < "u", $e = Ui, fi = ve || bt ? "cssFloat" : "float", ns = un && !Fi && !Ui && "draggable" in document.createElement("div"), Wi = function() {
1807
- if (un) {
1806
+ var h, M, w, R, Ot, De, O, $t, Ft, nt, le, xt, $e, k, Ut = !1, Ue = !1, ke = [], Dt, lt, $n, Sn, gi, mi, ee, Vt, ue, de = !1, Se = !1, Re, q, _n = [], On = !1, Fe = [], hn = typeof document < "u", _e = Zi, yi = we || bt ? "cssFloat" : "float", la = hn && !zi && !Zi && "draggable" in document.createElement("div"), Ki = function() {
1807
+ if (hn) {
1808
1808
  if (bt)
1809
1809
  return !1;
1810
1810
  var e = document.createElement("x");
1811
1811
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
1812
1812
  }
1813
- }(), Gi = function(t, n) {
1814
- var i = b(t), o = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), r = Zt(t, 0, n), s = Zt(t, 1, n), a = r && b(r), l = s && b(s), u = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + I(r).width, d = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + I(s).width;
1813
+ }(), Qi = function(t, n) {
1814
+ var i = b(t), o = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), r = zt(t, 0, n), a = zt(t, 1, n), s = r && b(r), l = a && b(a), u = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + H(r).width, c = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + H(a).width;
1815
1815
  if (i.display === "flex")
1816
1816
  return i.flexDirection === "column" || i.flexDirection === "column-reverse" ? "vertical" : "horizontal";
1817
1817
  if (i.display === "grid")
1818
1818
  return i.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
1819
- if (r && a.float && a.float !== "none") {
1820
- var c = a.float === "left" ? "left" : "right";
1821
- return s && (l.clear === "both" || l.clear === c) ? "vertical" : "horizontal";
1822
- }
1823
- return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || u >= o && i[fi] === "none" || s && i[fi] === "none" && u + d > o) ? "vertical" : "horizontal";
1824
- }, is = function(t, n, i) {
1825
- var o = i ? t.left : t.top, r = i ? t.right : t.bottom, s = i ? t.width : t.height, a = i ? n.left : n.top, l = i ? n.right : n.bottom, u = i ? n.width : n.height;
1826
- return o === a || r === l || o + s / 2 === a + u / 2;
1827
- }, os = function(t, n) {
1819
+ if (r && s.float && s.float !== "none") {
1820
+ var d = s.float === "left" ? "left" : "right";
1821
+ return a && (l.clear === "both" || l.clear === d) ? "vertical" : "horizontal";
1822
+ }
1823
+ return r && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || u >= o && i[yi] === "none" || a && i[yi] === "none" && u + c > o) ? "vertical" : "horizontal";
1824
+ }, ua = function(t, n, i) {
1825
+ var o = i ? t.left : t.top, r = i ? t.right : t.bottom, a = i ? t.width : t.height, s = i ? n.left : n.top, l = i ? n.right : n.bottom, u = i ? n.width : n.height;
1826
+ return o === s || r === l || o + a / 2 === s + u / 2;
1827
+ }, da = function(t, n) {
1828
1828
  var i;
1829
1829
  return ke.some(function(o) {
1830
- var r = o[et].options.emptyInsertThreshold;
1831
- if (!(!r || jn(o))) {
1832
- var s = I(o), a = t >= s.left - r && t <= s.right + r, l = n >= s.top - r && n <= s.bottom + r;
1833
- if (a && l)
1830
+ var r = o[it].options.emptyInsertThreshold;
1831
+ if (!(!r || Xn(o))) {
1832
+ var a = H(o), s = t >= a.left - r && t <= a.right + r, l = n >= a.top - r && n <= a.bottom + r;
1833
+ if (s && l)
1834
1834
  return i = o;
1835
1835
  }
1836
1836
  }), i;
1837
- }, Ji = function(t) {
1838
- function n(r, s) {
1839
- return function(a, l, u, d) {
1840
- var c = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
1841
- if (r == null && (s || c))
1837
+ }, to = function(t) {
1838
+ function n(r, a) {
1839
+ return function(s, l, u, c) {
1840
+ var d = s.options.group.name && l.options.group.name && s.options.group.name === l.options.group.name;
1841
+ if (r == null && (a || d))
1842
1842
  return !0;
1843
1843
  if (r == null || r === !1)
1844
1844
  return !1;
1845
- if (s && r === "clone")
1845
+ if (a && r === "clone")
1846
1846
  return r;
1847
1847
  if (typeof r == "function")
1848
- return n(r(a, l, u, d), s)(a, l, u, d);
1849
- var p = (s ? a : l).options.group.name;
1848
+ return n(r(s, l, u, c), a)(s, l, u, c);
1849
+ var p = (a ? s : l).options.group.name;
1850
1850
  return r === !0 || typeof r == "string" && r === p || r.join && r.indexOf(p) > -1;
1851
1851
  };
1852
1852
  }
1853
1853
  var i = {}, o = t.group;
1854
- (!o || Te(o) != "object") && (o = {
1854
+ (!o || Pe(o) != "object") && (o = {
1855
1855
  name: o
1856
1856
  }), i.name = o.name, i.checkPull = n(o.pull, !0), i.checkPut = n(o.put), i.revertClone = o.revertClone, t.group = i;
1857
- }, Ki = function() {
1858
- !Wi && w && b(w, "display", "none");
1859
- }, Qi = function() {
1860
- !Wi && w && b(w, "display", "");
1857
+ }, eo = function() {
1858
+ !Ki && w && b(w, "display", "none");
1859
+ }, no = function() {
1860
+ !Ki && w && b(w, "display", "");
1861
1861
  };
1862
- un && !Fi && document.addEventListener("click", function(e) {
1863
- if (Le)
1864
- return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Le = !1, !1;
1862
+ hn && !zi && document.addEventListener("click", function(e) {
1863
+ if (Ue)
1864
+ return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Ue = !1, !1;
1865
1865
  }, !0);
1866
- var Dt = function(t) {
1866
+ var Rt = function(t) {
1867
1867
  if (h) {
1868
1868
  t = t.touches ? t.touches[0] : t;
1869
- var n = os(t.clientX, t.clientY);
1869
+ var n = da(t.clientX, t.clientY);
1870
1870
  if (n) {
1871
1871
  var i = {};
1872
1872
  for (var o in t)
1873
1873
  t.hasOwnProperty(o) && (i[o] = t[o]);
1874
- i.target = i.rootEl = n, i.preventDefault = void 0, i.stopPropagation = void 0, n[et]._onDragOver(i);
1874
+ i.target = i.rootEl = n, i.preventDefault = void 0, i.stopPropagation = void 0, n[it]._onDragOver(i);
1875
1875
  }
1876
1876
  }
1877
- }, rs = function(t) {
1878
- h && h.parentNode[et]._isOutsideThisEl(t.target);
1877
+ }, ca = function(t) {
1878
+ h && h.parentNode[it]._isOutsideThisEl(t.target);
1879
1879
  };
1880
1880
  function v(e, t) {
1881
1881
  if (!(e && e.nodeType && e.nodeType === 1))
1882
1882
  throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
1883
- this.el = e, this.options = t = yt({}, t), e[et] = this;
1883
+ this.el = e, this.options = t = yt({}, t), e[it] = this;
1884
1884
  var n = {
1885
1885
  group: null,
1886
1886
  sort: !0,
@@ -1896,7 +1896,7 @@ function v(e, t) {
1896
1896
  // will be set to same as swapThreshold if default
1897
1897
  removeCloneOnHide: !0,
1898
1898
  direction: function() {
1899
- return Gi(e, this.options);
1899
+ return Qi(e, this.options);
1900
1900
  },
1901
1901
  ghostClass: "sortable-ghost",
1902
1902
  chosenClass: "sortable-chosen",
@@ -1906,8 +1906,8 @@ function v(e, t) {
1906
1906
  preventOnFilter: !0,
1907
1907
  animation: 0,
1908
1908
  easing: null,
1909
- setData: function(s, a) {
1910
- s.setData("Text", a.textContent);
1909
+ setData: function(a, s) {
1910
+ a.setData("Text", s.textContent);
1911
1911
  },
1912
1912
  dropBubble: !1,
1913
1913
  dragoverBubble: !1,
@@ -1923,16 +1923,16 @@ function v(e, t) {
1923
1923
  x: 0,
1924
1924
  y: 0
1925
1925
  },
1926
- supportPointer: v.supportPointer !== !1 && "PointerEvent" in window && !re,
1926
+ supportPointer: v.supportPointer !== !1 && "PointerEvent" in window && !ae,
1927
1927
  emptyInsertThreshold: 5
1928
1928
  };
1929
- we.initializePlugins(this, e, n);
1929
+ Ee.initializePlugins(this, e, n);
1930
1930
  for (var i in n)
1931
1931
  !(i in t) && (t[i] = n[i]);
1932
- Ji(t);
1932
+ to(t);
1933
1933
  for (var o in this)
1934
1934
  o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
1935
- this.nativeDraggable = t.forceFallback ? !1 : ns, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? _(e, "pointerdown", this._onTapStart) : (_(e, "mousedown", this._onTapStart), _(e, "touchstart", this._onTapStart)), this.nativeDraggable && (_(e, "dragover", this), _(e, "dragenter", this)), ke.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), yt(this, Jr());
1935
+ this.nativeDraggable = t.forceFallback ? !1 : la, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? _(e, "pointerdown", this._onTapStart) : (_(e, "mousedown", this._onTapStart), _(e, "touchstart", this._onTapStart)), this.nativeDraggable && (_(e, "dragover", this), _(e, "dragenter", this)), ke.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), yt(this, ia());
1936
1936
  }
1937
1937
  v.prototype = /** @lends Sortable.prototype */
1938
1938
  {
@@ -1945,10 +1945,10 @@ v.prototype = /** @lends Sortable.prototype */
1945
1945
  },
1946
1946
  _onTapStart: function(t) {
1947
1947
  if (t.cancelable) {
1948
- var n = this, i = this.el, o = this.options, r = o.preventOnFilter, s = t.type, a = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (a || t).target, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, d = o.filter;
1949
- if (ps(i), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || o.disabled) && !u.isContentEditable && !(!this.nativeDraggable && re && l && l.tagName.toUpperCase() === "SELECT") && (l = ut(l, o.draggable, i, !1), !(l && l.animated) && Pe !== l)) {
1950
- if (Ft = it(l), ae = it(l, o.draggable), typeof d == "function") {
1951
- if (d.call(this, t, l, this)) {
1948
+ var n = this, i = this.el, o = this.options, r = o.preventOnFilter, a = t.type, s = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (s || t).target, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, c = o.filter;
1949
+ if (va(i), !h && !(/mousedown|pointerdown/.test(a) && t.button !== 0 || o.disabled) && !u.isContentEditable && !(!this.nativeDraggable && ae && l && l.tagName.toUpperCase() === "SELECT") && (l = ut(l, o.draggable, i, !1), !(l && l.animated) && De !== l)) {
1950
+ if (Ft = ot(l), le = ot(l, o.draggable), typeof c == "function") {
1951
+ if (c.call(this, t, l, this)) {
1952
1952
  W({
1953
1953
  sortable: n,
1954
1954
  rootEl: u,
@@ -1961,11 +1961,11 @@ v.prototype = /** @lends Sortable.prototype */
1961
1961
  }), r && t.cancelable && t.preventDefault();
1962
1962
  return;
1963
1963
  }
1964
- } else if (d && (d = d.split(",").some(function(c) {
1965
- if (c = ut(u, c.trim(), i, !1), c)
1964
+ } else if (c && (c = c.split(",").some(function(d) {
1965
+ if (d = ut(u, d.trim(), i, !1), d)
1966
1966
  return W({
1967
1967
  sortable: n,
1968
- rootEl: c,
1968
+ rootEl: d,
1969
1969
  name: "filter",
1970
1970
  targetEl: l,
1971
1971
  fromEl: i,
@@ -1973,44 +1973,44 @@ v.prototype = /** @lends Sortable.prototype */
1973
1973
  }), G("filter", n, {
1974
1974
  evt: t
1975
1975
  }), !0;
1976
- }), d)) {
1976
+ }), c)) {
1977
1977
  r && t.cancelable && t.preventDefault();
1978
1978
  return;
1979
1979
  }
1980
- o.handle && !ut(u, o.handle, i, !1) || this._prepareDragStart(t, a, l);
1980
+ o.handle && !ut(u, o.handle, i, !1) || this._prepareDragStart(t, s, l);
1981
1981
  }
1982
1982
  }
1983
1983
  },
1984
1984
  _prepareDragStart: function(t, n, i) {
1985
- var o = this, r = o.el, s = o.options, a = r.ownerDocument, l;
1985
+ var o = this, r = o.el, a = o.options, s = r.ownerDocument, l;
1986
1986
  if (i && !h && i.parentNode === r) {
1987
- var u = I(i);
1988
- if (R = r, h = i, N = h.parentNode, Ot = h.nextSibling, Pe = i, xe = s.group, v.dragged = h, Rt = {
1987
+ var u = H(i);
1988
+ if (R = r, h = i, M = h.parentNode, Ot = h.nextSibling, De = i, $e = a.group, v.dragged = h, Dt = {
1989
1989
  target: h,
1990
1990
  clientX: (n || t).clientX,
1991
1991
  clientY: (n || t).clientY
1992
- }, hi = Rt.clientX - u.left, pi = Rt.clientY - u.top, this._lastX = (n || t).clientX, this._lastY = (n || t).clientY, h.style["will-change"] = "all", l = function() {
1992
+ }, gi = Dt.clientX - u.left, mi = Dt.clientY - u.top, this._lastX = (n || t).clientX, this._lastY = (n || t).clientY, h.style["will-change"] = "all", l = function() {
1993
1993
  if (G("delayEnded", o, {
1994
1994
  evt: t
1995
1995
  }), v.eventCanceled) {
1996
1996
  o._onDrop();
1997
1997
  return;
1998
1998
  }
1999
- o._disableDelayedDragEvents(), !li && o.nativeDraggable && (h.draggable = !0), o._triggerDragStart(t, n), W({
1999
+ o._disableDelayedDragEvents(), !ci && o.nativeDraggable && (h.draggable = !0), o._triggerDragStart(t, n), W({
2000
2000
  sortable: o,
2001
2001
  name: "choose",
2002
2002
  originalEvent: t
2003
- }), Q(h, s.chosenClass, !0);
2004
- }, s.ignore.split(",").forEach(function(d) {
2005
- zi(h, d.trim(), Sn);
2006
- }), _(a, "dragover", Dt), _(a, "mousemove", Dt), _(a, "touchmove", Dt), _(a, "mouseup", o._onDrop), _(a, "touchend", o._onDrop), _(a, "touchcancel", o._onDrop), li && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), G("delayStart", this, {
2003
+ }), et(h, a.chosenClass, !0);
2004
+ }, a.ignore.split(",").forEach(function(c) {
2005
+ qi(h, c.trim(), An);
2006
+ }), _(s, "dragover", Rt), _(s, "mousemove", Rt), _(s, "touchmove", Rt), _(s, "mouseup", o._onDrop), _(s, "touchend", o._onDrop), _(s, "touchcancel", o._onDrop), ci && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), G("delayStart", this, {
2007
2007
  evt: t
2008
- }), s.delay && (!s.delayOnTouchOnly || n) && (!this.nativeDraggable || !(ve || bt))) {
2008
+ }), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(we || bt))) {
2009
2009
  if (v.eventCanceled) {
2010
2010
  this._onDrop();
2011
2011
  return;
2012
2012
  }
2013
- _(a, "mouseup", o._disableDelayedDrag), _(a, "touchend", o._disableDelayedDrag), _(a, "touchcancel", o._disableDelayedDrag), _(a, "mousemove", o._delayedDragTouchMoveHandler), _(a, "touchmove", o._delayedDragTouchMoveHandler), s.supportPointer && _(a, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(l, s.delay);
2013
+ _(s, "mouseup", o._disableDelayedDrag), _(s, "touchend", o._disableDelayedDrag), _(s, "touchcancel", o._disableDelayedDrag), _(s, "mousemove", o._delayedDragTouchMoveHandler), _(s, "touchmove", o._delayedDragTouchMoveHandler), a.supportPointer && _(s, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(l, a.delay);
2014
2014
  } else
2015
2015
  l();
2016
2016
  }
@@ -2020,28 +2020,28 @@ v.prototype = /** @lends Sortable.prototype */
2020
2020
  Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
2021
2021
  },
2022
2022
  _disableDelayedDrag: function() {
2023
- h && Sn(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2023
+ h && An(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2024
2024
  },
2025
2025
  _disableDelayedDragEvents: function() {
2026
2026
  var t = this.el.ownerDocument;
2027
- S(t, "mouseup", this._disableDelayedDrag), S(t, "touchend", this._disableDelayedDrag), S(t, "touchcancel", this._disableDelayedDrag), S(t, "mousemove", this._delayedDragTouchMoveHandler), S(t, "touchmove", this._delayedDragTouchMoveHandler), S(t, "pointermove", this._delayedDragTouchMoveHandler);
2027
+ $(t, "mouseup", this._disableDelayedDrag), $(t, "touchend", this._disableDelayedDrag), $(t, "touchcancel", this._disableDelayedDrag), $(t, "mousemove", this._delayedDragTouchMoveHandler), $(t, "touchmove", this._delayedDragTouchMoveHandler), $(t, "pointermove", this._delayedDragTouchMoveHandler);
2028
2028
  },
2029
2029
  _triggerDragStart: function(t, n) {
2030
2030
  n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? _(document, "pointermove", this._onTouchMove) : n ? _(document, "touchmove", this._onTouchMove) : _(document, "mousemove", this._onTouchMove) : (_(h, "dragend", this), _(R, "dragstart", this._onDragStart));
2031
2031
  try {
2032
- document.selection ? De(function() {
2032
+ document.selection ? Oe(function() {
2033
2033
  document.selection.empty();
2034
2034
  }) : window.getSelection().removeAllRanges();
2035
2035
  } catch {
2036
2036
  }
2037
2037
  },
2038
2038
  _dragStarted: function(t, n) {
2039
- if (kt = !1, R && h) {
2039
+ if (Ut = !1, R && h) {
2040
2040
  G("dragStarted", this, {
2041
2041
  evt: n
2042
- }), this.nativeDraggable && _(document, "dragover", rs);
2042
+ }), this.nativeDraggable && _(document, "dragover", ca);
2043
2043
  var i = this.options;
2044
- !t && Q(h, i.dragClass, !1), Q(h, i.ghostClass, !0), v.active = this, t && this._appendGhost(), W({
2044
+ !t && et(h, i.dragClass, !1), et(h, i.ghostClass, !0), v.active = this, t && this._appendGhost(), W({
2045
2045
  sortable: this,
2046
2046
  name: "start",
2047
2047
  originalEvent: n
@@ -2051,14 +2051,14 @@ v.prototype = /** @lends Sortable.prototype */
2051
2051
  },
2052
2052
  _emulateDragOver: function() {
2053
2053
  if (lt) {
2054
- this._lastX = lt.clientX, this._lastY = lt.clientY, Ki();
2054
+ this._lastX = lt.clientX, this._lastY = lt.clientY, eo();
2055
2055
  for (var t = document.elementFromPoint(lt.clientX, lt.clientY), n = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(lt.clientX, lt.clientY), t !== n); )
2056
2056
  n = t;
2057
- if (h.parentNode[et]._isOutsideThisEl(t), n)
2057
+ if (h.parentNode[it]._isOutsideThisEl(t), n)
2058
2058
  do {
2059
- if (n[et]) {
2059
+ if (n[it]) {
2060
2060
  var i = void 0;
2061
- if (i = n[et]._onDragOver({
2061
+ if (i = n[it]._onDragOver({
2062
2062
  clientX: lt.clientX,
2063
2063
  clientY: lt.clientY,
2064
2064
  target: t,
@@ -2068,41 +2068,41 @@ v.prototype = /** @lends Sortable.prototype */
2068
2068
  }
2069
2069
  t = n;
2070
2070
  } while (n = n.parentNode);
2071
- Qi();
2071
+ no();
2072
2072
  }
2073
2073
  },
2074
2074
  _onTouchMove: function(t) {
2075
- if (Rt) {
2076
- var n = this.options, i = n.fallbackTolerance, o = n.fallbackOffset, r = t.touches ? t.touches[0] : t, s = w && jt(w, !0), a = w && s && s.a, l = w && s && s.d, u = $e && Y && di(Y), d = (r.clientX - Rt.clientX + o.x) / (a || 1) + (u ? u[0] - xn[0] : 0) / (a || 1), c = (r.clientY - Rt.clientY + o.y) / (l || 1) + (u ? u[1] - xn[1] : 0) / (l || 1);
2077
- if (!v.active && !kt) {
2075
+ if (Dt) {
2076
+ var n = this.options, i = n.fallbackTolerance, o = n.fallbackOffset, r = t.touches ? t.touches[0] : t, a = w && jt(w, !0), s = w && a && a.a, l = w && a && a.d, u = _e && q && fi(q), c = (r.clientX - Dt.clientX + o.x) / (s || 1) + (u ? u[0] - _n[0] : 0) / (s || 1), d = (r.clientY - Dt.clientY + o.y) / (l || 1) + (u ? u[1] - _n[1] : 0) / (l || 1);
2077
+ if (!v.active && !Ut) {
2078
2078
  if (i && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < i)
2079
2079
  return;
2080
2080
  this._onDragStart(t, !0);
2081
2081
  }
2082
2082
  if (w) {
2083
- s ? (s.e += d - (wn || 0), s.f += c - (En || 0)) : s = {
2083
+ a ? (a.e += c - ($n || 0), a.f += d - (Sn || 0)) : a = {
2084
2084
  a: 1,
2085
2085
  b: 0,
2086
2086
  c: 0,
2087
2087
  d: 1,
2088
- e: d,
2089
- f: c
2088
+ e: c,
2089
+ f: d
2090
2090
  };
2091
- var p = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
2092
- b(w, "webkitTransform", p), b(w, "mozTransform", p), b(w, "msTransform", p), b(w, "transform", p), wn = d, En = c, lt = r;
2091
+ var p = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
2092
+ b(w, "webkitTransform", p), b(w, "mozTransform", p), b(w, "msTransform", p), b(w, "transform", p), $n = c, Sn = d, lt = r;
2093
2093
  }
2094
2094
  t.cancelable && t.preventDefault();
2095
2095
  }
2096
2096
  },
2097
2097
  _appendGhost: function() {
2098
2098
  if (!w) {
2099
- var t = this.options.fallbackOnBody ? document.body : R, n = I(h, !0, $e, !0, t), i = this.options;
2100
- if ($e) {
2101
- for (Y = t; b(Y, "position") === "static" && b(Y, "transform") === "none" && Y !== document; )
2102
- Y = Y.parentNode;
2103
- Y !== document.body && Y !== document.documentElement ? (Y === document && (Y = ct()), n.top += Y.scrollTop, n.left += Y.scrollLeft) : Y = ct(), xn = di(Y);
2099
+ var t = this.options.fallbackOnBody ? document.body : R, n = H(h, !0, _e, !0, t), i = this.options;
2100
+ if (_e) {
2101
+ for (q = t; b(q, "position") === "static" && b(q, "transform") === "none" && q !== document; )
2102
+ q = q.parentNode;
2103
+ q !== document.body && q !== document.documentElement ? (q === document && (q = dt()), n.top += q.scrollTop, n.left += q.scrollLeft) : q = dt(), _n = fi(q);
2104
2104
  }
2105
- w = h.cloneNode(!0), Q(w, i.ghostClass, !1), Q(w, i.fallbackClass, !0), Q(w, i.dragClass, !0), b(w, "transition", ""), b(w, "transform", ""), b(w, "box-sizing", "border-box"), b(w, "margin", 0), b(w, "top", n.top), b(w, "left", n.left), b(w, "width", n.width), b(w, "height", n.height), b(w, "opacity", "0.8"), b(w, "position", $e ? "absolute" : "fixed"), b(w, "zIndex", "100000"), b(w, "pointerEvents", "none"), v.ghost = w, t.appendChild(w), b(w, "transform-origin", hi / parseInt(w.style.width) * 100 + "% " + pi / parseInt(w.style.height) * 100 + "%");
2105
+ w = h.cloneNode(!0), et(w, i.ghostClass, !1), et(w, i.fallbackClass, !0), et(w, i.dragClass, !0), b(w, "transition", ""), b(w, "transform", ""), b(w, "box-sizing", "border-box"), b(w, "margin", 0), b(w, "top", n.top), b(w, "left", n.left), b(w, "width", n.width), b(w, "height", n.height), b(w, "opacity", "0.8"), b(w, "position", _e ? "absolute" : "fixed"), b(w, "zIndex", "100000"), b(w, "pointerEvents", "none"), v.ghost = w, t.appendChild(w), b(w, "transform-origin", gi / parseInt(w.style.width) * 100 + "% " + mi / parseInt(w.style.height) * 100 + "%");
2106
2106
  }
2107
2107
  },
2108
2108
  _onDragStart: function(t, n) {
@@ -2113,165 +2113,165 @@ v.prototype = /** @lends Sortable.prototype */
2113
2113
  this._onDrop();
2114
2114
  return;
2115
2115
  }
2116
- G("setupClone", this), v.eventCanceled || (O = Yi(h), O.removeAttribute("id"), O.draggable = !1, O.style["will-change"] = "", this._hideClone(), Q(O, this.options.chosenClass, !1), v.clone = O), i.cloneId = De(function() {
2116
+ G("setupClone", this), v.eventCanceled || (O = Gi(h), O.removeAttribute("id"), O.draggable = !1, O.style["will-change"] = "", this._hideClone(), et(O, this.options.chosenClass, !1), v.clone = O), i.cloneId = Oe(function() {
2117
2117
  G("clone", i), !v.eventCanceled && (i.options.removeCloneOnHide || R.insertBefore(O, h), i._hideClone(), W({
2118
2118
  sortable: i,
2119
2119
  name: "clone"
2120
2120
  }));
2121
- }), !n && Q(h, r.dragClass, !0), n ? (Le = !0, i._loopId = setInterval(i._emulateDragOver, 50)) : (S(document, "mouseup", i._onDrop), S(document, "touchend", i._onDrop), S(document, "touchcancel", i._onDrop), o && (o.effectAllowed = "move", r.setData && r.setData.call(i, o, h)), _(document, "drop", i), b(h, "transform", "translateZ(0)")), kt = !0, i._dragStartId = De(i._dragStarted.bind(i, n, t)), _(document, "selectstart", i), te = !0, re && b(document.body, "user-select", "none");
2121
+ }), !n && et(h, r.dragClass, !0), n ? (Ue = !0, i._loopId = setInterval(i._emulateDragOver, 50)) : ($(document, "mouseup", i._onDrop), $(document, "touchend", i._onDrop), $(document, "touchcancel", i._onDrop), o && (o.effectAllowed = "move", r.setData && r.setData.call(i, o, h)), _(document, "drop", i), b(h, "transform", "translateZ(0)")), Ut = !0, i._dragStartId = Oe(i._dragStarted.bind(i, n, t)), _(document, "selectstart", i), ee = !0, ae && b(document.body, "user-select", "none");
2122
2122
  },
2123
2123
  // Returns true - if no further action is needed (either inserted or another condition)
2124
2124
  _onDragOver: function(t) {
2125
- var n = this.el, i = t.target, o, r, s, a = this.options, l = a.group, u = v.active, d = xe === l, c = a.sort, p = U || u, f, g = this, y = !1;
2126
- if (Pn) return;
2127
- function P(Gt, _o) {
2128
- G(Gt, g, dt({
2125
+ var n = this.el, i = t.target, o, r, a, s = this.options, l = s.group, u = v.active, c = $e === l, d = s.sort, p = k || u, f, g = this, y = !1;
2126
+ if (On) return;
2127
+ function D(Jt, Ro) {
2128
+ G(Jt, g, ct({
2129
2129
  evt: t,
2130
- isOwner: d,
2130
+ isOwner: c,
2131
2131
  axis: f ? "vertical" : "horizontal",
2132
- revert: s,
2132
+ revert: a,
2133
2133
  dragRect: o,
2134
2134
  targetRect: r,
2135
- canSort: c,
2135
+ canSort: d,
2136
2136
  fromSortable: p,
2137
2137
  target: i,
2138
- completed: B,
2139
- onMove: function(Yn, Ao) {
2140
- return _e(R, n, h, o, Yn, I(Yn), t, Ao);
2138
+ completed: V,
2139
+ onMove: function(Gn, Oo) {
2140
+ return Ae(R, n, h, o, Gn, H(Gn), t, Oo);
2141
2141
  },
2142
- changed: K
2143
- }, _o));
2142
+ changed: tt
2143
+ }, Ro));
2144
2144
  }
2145
- function L() {
2146
- P("dragOverAnimationCapture"), g.captureAnimationState(), g !== p && p.captureAnimationState();
2145
+ function U() {
2146
+ D("dragOverAnimationCapture"), g.captureAnimationState(), g !== p && p.captureAnimationState();
2147
2147
  }
2148
- function B(Gt) {
2149
- return P("dragOverCompleted", {
2150
- insertion: Gt
2151
- }), Gt && (d ? u._hideClone() : u._showClone(g), g !== p && (Q(h, U ? U.options.ghostClass : u.options.ghostClass, !1), Q(h, a.ghostClass, !0)), U !== g && g !== v.active ? U = g : g === v.active && U && (U = null), p === g && (g._ignoreWhileAnimating = i), g.animateAll(function() {
2152
- P("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
2153
- }), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (i === h && !h.animated || i === n && !i.animated) && (Vt = null), !a.dragoverBubble && !t.rootEl && i !== document && (h.parentNode[et]._isOutsideThisEl(t.target), !Gt && Dt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), y = !0;
2148
+ function V(Jt) {
2149
+ return D("dragOverCompleted", {
2150
+ insertion: Jt
2151
+ }), Jt && (c ? u._hideClone() : u._showClone(g), g !== p && (et(h, k ? k.options.ghostClass : u.options.ghostClass, !1), et(h, s.ghostClass, !0)), k !== g && g !== v.active ? k = g : g === v.active && k && (k = null), p === g && (g._ignoreWhileAnimating = i), g.animateAll(function() {
2152
+ D("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
2153
+ }), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (i === h && !h.animated || i === n && !i.animated) && (Vt = null), !s.dragoverBubble && !t.rootEl && i !== document && (h.parentNode[it]._isOutsideThisEl(t.target), !Jt && Rt(t)), !s.dragoverBubble && t.stopPropagation && t.stopPropagation(), y = !0;
2154
2154
  }
2155
- function K() {
2156
- tt = it(h), xt = it(h, a.draggable), W({
2155
+ function tt() {
2156
+ nt = ot(h), xt = ot(h, s.draggable), W({
2157
2157
  sortable: g,
2158
2158
  name: "change",
2159
2159
  toEl: n,
2160
- newIndex: tt,
2160
+ newIndex: nt,
2161
2161
  newDraggableIndex: xt,
2162
2162
  originalEvent: t
2163
2163
  });
2164
2164
  }
2165
- if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), i = ut(i, a.draggable, n, !0), P("dragOver"), v.eventCanceled) return y;
2165
+ if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), i = ut(i, s.draggable, n, !0), D("dragOver"), v.eventCanceled) return y;
2166
2166
  if (h.contains(t.target) || i.animated && i.animatingX && i.animatingY || g._ignoreWhileAnimating === i)
2167
- return B(!1);
2168
- if (Le = !1, u && !a.disabled && (d ? c || (s = N !== R) : U === this || (this.lastPutMode = xe.checkPull(this, u, h, t)) && l.checkPut(this, u, h, t))) {
2169
- if (f = this._getDirection(t, i) === "vertical", o = I(h), P("dragOverValid"), v.eventCanceled) return y;
2170
- if (s)
2171
- return N = R, L(), this._hideClone(), P("revert"), v.eventCanceled || (Ot ? R.insertBefore(h, Ot) : R.appendChild(h)), B(!0);
2172
- var q = jn(n, a.draggable);
2173
- if (!q || us(t, f, this) && !q.animated) {
2174
- if (q === h)
2175
- return B(!1);
2176
- if (q && n === t.target && (i = q), i && (r = I(i)), _e(R, n, h, o, i, r, t, !!i) !== !1)
2177
- return L(), q && q.nextSibling ? n.insertBefore(h, q.nextSibling) : n.appendChild(h), N = n, K(), B(!0);
2178
- } else if (q && ls(t, f, this)) {
2179
- var st = Zt(n, 0, a, !0);
2180
- if (st === h)
2181
- return B(!1);
2182
- if (i = st, r = I(i), _e(R, n, h, o, i, r, t, !1) !== !1)
2183
- return L(), n.insertBefore(h, st), N = n, K(), B(!0);
2167
+ return V(!1);
2168
+ if (Ue = !1, u && !s.disabled && (c ? d || (a = M !== R) : k === this || (this.lastPutMode = $e.checkPull(this, u, h, t)) && l.checkPut(this, u, h, t))) {
2169
+ if (f = this._getDirection(t, i) === "vertical", o = H(h), D("dragOverValid"), v.eventCanceled) return y;
2170
+ if (a)
2171
+ return M = R, U(), this._hideClone(), D("revert"), v.eventCanceled || (Ot ? R.insertBefore(h, Ot) : R.appendChild(h)), V(!0);
2172
+ var Y = Xn(n, s.draggable);
2173
+ if (!Y || ga(t, f, this) && !Y.animated) {
2174
+ if (Y === h)
2175
+ return V(!1);
2176
+ if (Y && n === t.target && (i = Y), i && (r = H(i)), Ae(R, n, h, o, i, r, t, !!i) !== !1)
2177
+ return U(), Y && Y.nextSibling ? n.insertBefore(h, Y.nextSibling) : n.appendChild(h), M = n, tt(), V(!0);
2178
+ } else if (Y && fa(t, f, this)) {
2179
+ var at = zt(n, 0, s, !0);
2180
+ if (at === h)
2181
+ return V(!1);
2182
+ if (i = at, r = H(i), Ae(R, n, h, o, i, r, t, !1) !== !1)
2183
+ return U(), n.insertBefore(h, at), M = n, tt(), V(!0);
2184
2184
  } else if (i.parentNode === n) {
2185
- r = I(i);
2186
- var A = 0, Z, at = h.parentNode !== n, X = !is(h.animated && h.toRect || o, i.animated && i.toRect || r, f), Yt = f ? "top" : "left", vt = ci(i, "top", "top") || ci(h, "top", "top"), qt = vt ? vt.scrollTop : void 0;
2187
- Vt !== i && (Z = r[Yt], ue = !1, Se = !X && a.invertSwap || at), A = cs(t, i, r, f, X ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Se, Vt === i);
2185
+ r = H(i);
2186
+ var A = 0, z, st = h.parentNode !== n, X = !ua(h.animated && h.toRect || o, i.animated && i.toRect || r, f), Yt = f ? "top" : "left", vt = pi(i, "top", "top") || pi(h, "top", "top"), Wt = vt ? vt.scrollTop : void 0;
2187
+ Vt !== i && (z = r[Yt], de = !1, Se = !X && s.invertSwap || st), A = ma(t, i, r, f, X ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, Se, Vt === i);
2188
2188
  var ht;
2189
2189
  if (A !== 0) {
2190
- var Ct = it(h);
2190
+ var Ct = ot(h);
2191
2191
  do
2192
- Ct -= A, ht = N.children[Ct];
2192
+ Ct -= A, ht = M.children[Ct];
2193
2193
  while (ht && (b(ht, "display") === "none" || ht === w));
2194
2194
  }
2195
2195
  if (A === 0 || ht === i)
2196
- return B(!1);
2197
- Vt = i, le = A;
2198
- var Wt = i.nextElementSibling, wt = !1;
2196
+ return V(!1);
2197
+ Vt = i, ue = A;
2198
+ var Gt = i.nextElementSibling, wt = !1;
2199
2199
  wt = A === 1;
2200
- var Ee = _e(R, n, h, o, i, r, t, wt);
2201
- if (Ee !== !1)
2202
- return (Ee === 1 || Ee === -1) && (wt = Ee === 1), Pn = !0, setTimeout(as, 30), L(), wt && !Wt ? n.appendChild(h) : i.parentNode.insertBefore(h, wt ? Wt : i), vt && Xi(vt, 0, qt - vt.scrollTop), N = h.parentNode, Z !== void 0 && !Se && (Re = Math.abs(Z - I(i)[Yt])), K(), B(!0);
2200
+ var xe = Ae(R, n, h, o, i, r, t, wt);
2201
+ if (xe !== !1)
2202
+ return (xe === 1 || xe === -1) && (wt = xe === 1), On = !0, setTimeout(pa, 30), U(), wt && !Gt ? n.appendChild(h) : i.parentNode.insertBefore(h, wt ? Gt : i), vt && Wi(vt, 0, Wt - vt.scrollTop), M = h.parentNode, z !== void 0 && !Se && (Re = Math.abs(z - H(i)[Yt])), tt(), V(!0);
2203
2203
  }
2204
2204
  if (n.contains(h))
2205
- return B(!1);
2205
+ return V(!1);
2206
2206
  }
2207
2207
  return !1;
2208
2208
  },
2209
2209
  _ignoreWhileAnimating: null,
2210
2210
  _offMoveEvents: function() {
2211
- S(document, "mousemove", this._onTouchMove), S(document, "touchmove", this._onTouchMove), S(document, "pointermove", this._onTouchMove), S(document, "dragover", Dt), S(document, "mousemove", Dt), S(document, "touchmove", Dt);
2211
+ $(document, "mousemove", this._onTouchMove), $(document, "touchmove", this._onTouchMove), $(document, "pointermove", this._onTouchMove), $(document, "dragover", Rt), $(document, "mousemove", Rt), $(document, "touchmove", Rt);
2212
2212
  },
2213
2213
  _offUpEvents: function() {
2214
2214
  var t = this.el.ownerDocument;
2215
- S(t, "mouseup", this._onDrop), S(t, "touchend", this._onDrop), S(t, "pointerup", this._onDrop), S(t, "touchcancel", this._onDrop), S(document, "selectstart", this);
2215
+ $(t, "mouseup", this._onDrop), $(t, "touchend", this._onDrop), $(t, "pointerup", this._onDrop), $(t, "touchcancel", this._onDrop), $(document, "selectstart", this);
2216
2216
  },
2217
2217
  _onDrop: function(t) {
2218
2218
  var n = this.el, i = this.options;
2219
- if (tt = it(h), xt = it(h, i.draggable), G("drop", this, {
2219
+ if (nt = ot(h), xt = ot(h, i.draggable), G("drop", this, {
2220
2220
  evt: t
2221
- }), N = h && h.parentNode, tt = it(h), xt = it(h, i.draggable), v.eventCanceled) {
2221
+ }), M = h && h.parentNode, nt = ot(h), xt = ot(h, i.draggable), v.eventCanceled) {
2222
2222
  this._nulling();
2223
2223
  return;
2224
2224
  }
2225
- kt = !1, Se = !1, ue = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Rn(this.cloneId), Rn(this._dragStartId), this.nativeDraggable && (S(document, "drop", this), S(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), re && b(document.body, "user-select", ""), b(h, "transform", ""), t && (te && (t.cancelable && t.preventDefault(), !i.dropBubble && t.stopPropagation()), w && w.parentNode && w.parentNode.removeChild(w), (R === N || U && U.lastPutMode !== "clone") && O && O.parentNode && O.parentNode.removeChild(O), h && (this.nativeDraggable && S(h, "dragend", this), Sn(h), h.style["will-change"] = "", te && !kt && Q(h, U ? U.options.ghostClass : this.options.ghostClass, !1), Q(h, this.options.chosenClass, !1), W({
2225
+ Ut = !1, Se = !1, de = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Mn(this.cloneId), Mn(this._dragStartId), this.nativeDraggable && ($(document, "drop", this), $(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), ae && b(document.body, "user-select", ""), b(h, "transform", ""), t && (ee && (t.cancelable && t.preventDefault(), !i.dropBubble && t.stopPropagation()), w && w.parentNode && w.parentNode.removeChild(w), (R === M || k && k.lastPutMode !== "clone") && O && O.parentNode && O.parentNode.removeChild(O), h && (this.nativeDraggable && $(h, "dragend", this), An(h), h.style["will-change"] = "", ee && !Ut && et(h, k ? k.options.ghostClass : this.options.ghostClass, !1), et(h, this.options.chosenClass, !1), W({
2226
2226
  sortable: this,
2227
2227
  name: "unchoose",
2228
- toEl: N,
2228
+ toEl: M,
2229
2229
  newIndex: null,
2230
2230
  newDraggableIndex: null,
2231
2231
  originalEvent: t
2232
- }), R !== N ? (tt >= 0 && (W({
2233
- rootEl: N,
2232
+ }), R !== M ? (nt >= 0 && (W({
2233
+ rootEl: M,
2234
2234
  name: "add",
2235
- toEl: N,
2235
+ toEl: M,
2236
2236
  fromEl: R,
2237
2237
  originalEvent: t
2238
2238
  }), W({
2239
2239
  sortable: this,
2240
2240
  name: "remove",
2241
- toEl: N,
2241
+ toEl: M,
2242
2242
  originalEvent: t
2243
2243
  }), W({
2244
- rootEl: N,
2244
+ rootEl: M,
2245
2245
  name: "sort",
2246
- toEl: N,
2246
+ toEl: M,
2247
2247
  fromEl: R,
2248
2248
  originalEvent: t
2249
2249
  }), W({
2250
2250
  sortable: this,
2251
2251
  name: "sort",
2252
- toEl: N,
2252
+ toEl: M,
2253
2253
  originalEvent: t
2254
- })), U && U.save()) : tt !== Ft && tt >= 0 && (W({
2254
+ })), k && k.save()) : nt !== Ft && nt >= 0 && (W({
2255
2255
  sortable: this,
2256
2256
  name: "update",
2257
- toEl: N,
2257
+ toEl: M,
2258
2258
  originalEvent: t
2259
2259
  }), W({
2260
2260
  sortable: this,
2261
2261
  name: "sort",
2262
- toEl: N,
2262
+ toEl: M,
2263
2263
  originalEvent: t
2264
- })), v.active && ((tt == null || tt === -1) && (tt = Ft, xt = ae), W({
2264
+ })), v.active && ((nt == null || nt === -1) && (nt = Ft, xt = le), W({
2265
2265
  sortable: this,
2266
2266
  name: "end",
2267
- toEl: N,
2267
+ toEl: M,
2268
2268
  originalEvent: t
2269
2269
  }), this.save()))), this._nulling();
2270
2270
  },
2271
2271
  _nulling: function() {
2272
- G("nulling", this), R = h = N = w = Ot = O = Pe = St = Rt = lt = te = tt = xt = Ft = ae = Vt = le = U = xe = v.dragged = v.ghost = v.clone = v.active = null, Ue.forEach(function(t) {
2272
+ G("nulling", this), R = h = M = w = Ot = O = De = $t = Dt = lt = ee = nt = xt = Ft = le = Vt = ue = k = $e = v.dragged = v.ghost = v.clone = v.active = null, Fe.forEach(function(t) {
2273
2273
  t.checked = !0;
2274
- }), Ue.length = wn = En = 0;
2274
+ }), Fe.length = $n = Sn = 0;
2275
2275
  },
2276
2276
  handleEvent: function(t) {
2277
2277
  switch (t.type) {
@@ -2281,7 +2281,7 @@ v.prototype = /** @lends Sortable.prototype */
2281
2281
  break;
2282
2282
  case "dragenter":
2283
2283
  case "dragover":
2284
- h && (this._onDragOver(t), ss(t));
2284
+ h && (this._onDragOver(t), ha(t));
2285
2285
  break;
2286
2286
  case "selectstart":
2287
2287
  t.preventDefault();
@@ -2293,8 +2293,8 @@ v.prototype = /** @lends Sortable.prototype */
2293
2293
  * @returns {String[]}
2294
2294
  */
2295
2295
  toArray: function() {
2296
- for (var t = [], n, i = this.el.children, o = 0, r = i.length, s = this.options; o < r; o++)
2297
- n = i[o], ut(n, s.draggable, this.el, !1) && t.push(n.getAttribute(s.dataIdAttr) || hs(n));
2296
+ for (var t = [], n, i = this.el.children, o = 0, r = i.length, a = this.options; o < r; o++)
2297
+ n = i[o], ut(n, a.draggable, this.el, !1) && t.push(n.getAttribute(a.dataIdAttr) || ba(n));
2298
2298
  return t;
2299
2299
  },
2300
2300
  /**
@@ -2303,9 +2303,9 @@ v.prototype = /** @lends Sortable.prototype */
2303
2303
  */
2304
2304
  sort: function(t, n) {
2305
2305
  var i = {}, o = this.el;
2306
- this.toArray().forEach(function(r, s) {
2307
- var a = o.children[s];
2308
- ut(a, this.options.draggable, o, !1) && (i[r] = a);
2306
+ this.toArray().forEach(function(r, a) {
2307
+ var s = o.children[a];
2308
+ ut(s, this.options.draggable, o, !1) && (i[r] = s);
2309
2309
  }, this), n && this.captureAnimationState(), t.forEach(function(r) {
2310
2310
  i[r] && (o.removeChild(i[r]), o.appendChild(i[r]));
2311
2311
  }), n && this.animateAll();
@@ -2336,8 +2336,8 @@ v.prototype = /** @lends Sortable.prototype */
2336
2336
  var i = this.options;
2337
2337
  if (n === void 0)
2338
2338
  return i[t];
2339
- var o = we.modifyOption(this, t, n);
2340
- typeof o < "u" ? i[t] = o : i[t] = n, t === "group" && Ji(i);
2339
+ var o = Ee.modifyOption(this, t, n);
2340
+ typeof o < "u" ? i[t] = o : i[t] = n, t === "group" && to(i);
2341
2341
  },
2342
2342
  /**
2343
2343
  * Destroy
@@ -2345,14 +2345,14 @@ v.prototype = /** @lends Sortable.prototype */
2345
2345
  destroy: function() {
2346
2346
  G("destroy", this);
2347
2347
  var t = this.el;
2348
- t[et] = null, S(t, "mousedown", this._onTapStart), S(t, "touchstart", this._onTapStart), S(t, "pointerdown", this._onTapStart), this.nativeDraggable && (S(t, "dragover", this), S(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(n) {
2348
+ t[it] = null, $(t, "mousedown", this._onTapStart), $(t, "touchstart", this._onTapStart), $(t, "pointerdown", this._onTapStart), this.nativeDraggable && ($(t, "dragover", this), $(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(n) {
2349
2349
  n.removeAttribute("draggable");
2350
2350
  }), this._onDrop(), this._disableDelayedDragEvents(), ke.splice(ke.indexOf(this.el), 1), this.el = t = null;
2351
2351
  },
2352
2352
  _hideClone: function() {
2353
- if (!St) {
2353
+ if (!$t) {
2354
2354
  if (G("hideClone", this), v.eventCanceled) return;
2355
- b(O, "display", "none"), this.options.removeCloneOnHide && O.parentNode && O.parentNode.removeChild(O), St = !0;
2355
+ b(O, "display", "none"), this.options.removeCloneOnHide && O.parentNode && O.parentNode.removeChild(O), $t = !0;
2356
2356
  }
2357
2357
  },
2358
2358
  _showClone: function(t) {
@@ -2360,94 +2360,94 @@ v.prototype = /** @lends Sortable.prototype */
2360
2360
  this._hideClone();
2361
2361
  return;
2362
2362
  }
2363
- if (St) {
2363
+ if ($t) {
2364
2364
  if (G("showClone", this), v.eventCanceled) return;
2365
- h.parentNode == R && !this.options.group.revertClone ? R.insertBefore(O, h) : Ot ? R.insertBefore(O, Ot) : R.appendChild(O), this.options.group.revertClone && this.animate(h, O), b(O, "display", ""), St = !1;
2365
+ h.parentNode == R && !this.options.group.revertClone ? R.insertBefore(O, h) : Ot ? R.insertBefore(O, Ot) : R.appendChild(O), this.options.group.revertClone && this.animate(h, O), b(O, "display", ""), $t = !1;
2366
2366
  }
2367
2367
  }
2368
2368
  };
2369
- function ss(e) {
2369
+ function ha(e) {
2370
2370
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
2371
2371
  }
2372
- function _e(e, t, n, i, o, r, s, a) {
2373
- var l, u = e[et], d = u.options.onMove, c;
2374
- return window.CustomEvent && !bt && !ve ? l = new CustomEvent("move", {
2372
+ function Ae(e, t, n, i, o, r, a, s) {
2373
+ var l, u = e[it], c = u.options.onMove, d;
2374
+ return window.CustomEvent && !bt && !we ? l = new CustomEvent("move", {
2375
2375
  bubbles: !0,
2376
2376
  cancelable: !0
2377
- }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = e, l.dragged = n, l.draggedRect = i, l.related = o || t, l.relatedRect = r || I(t), l.willInsertAfter = a, l.originalEvent = s, e.dispatchEvent(l), d && (c = d.call(u, l, s)), c;
2377
+ }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = e, l.dragged = n, l.draggedRect = i, l.related = o || t, l.relatedRect = r || H(t), l.willInsertAfter = s, l.originalEvent = a, e.dispatchEvent(l), c && (d = c.call(u, l, a)), d;
2378
2378
  }
2379
- function Sn(e) {
2379
+ function An(e) {
2380
2380
  e.draggable = !1;
2381
2381
  }
2382
- function as() {
2383
- Pn = !1;
2382
+ function pa() {
2383
+ On = !1;
2384
2384
  }
2385
- function ls(e, t, n) {
2386
- var i = I(Zt(n.el, 0, n.options, !0)), o = qi(n.el, n.options, w), r = 10;
2385
+ function fa(e, t, n) {
2386
+ var i = H(zt(n.el, 0, n.options, !0)), o = Ji(n.el, n.options, w), r = 10;
2387
2387
  return t ? e.clientX < o.left - r || e.clientY < i.top && e.clientX < i.right : e.clientY < o.top - r || e.clientY < i.bottom && e.clientX < i.left;
2388
2388
  }
2389
- function us(e, t, n) {
2390
- var i = I(jn(n.el, n.options.draggable)), o = qi(n.el, n.options, w), r = 10;
2389
+ function ga(e, t, n) {
2390
+ var i = H(Xn(n.el, n.options.draggable)), o = Ji(n.el, n.options, w), r = 10;
2391
2391
  return t ? e.clientX > o.right + r || e.clientY > i.bottom && e.clientX > i.left : e.clientY > o.bottom + r || e.clientX > i.right && e.clientY > i.top;
2392
2392
  }
2393
- function cs(e, t, n, i, o, r, s, a) {
2394
- var l = i ? e.clientY : e.clientX, u = i ? n.height : n.width, d = i ? n.top : n.left, c = i ? n.bottom : n.right, p = !1;
2395
- if (!s) {
2396
- if (a && Re < u * o) {
2397
- if (!ue && (le === 1 ? l > d + u * r / 2 : l < c - u * r / 2) && (ue = !0), ue)
2393
+ function ma(e, t, n, i, o, r, a, s) {
2394
+ var l = i ? e.clientY : e.clientX, u = i ? n.height : n.width, c = i ? n.top : n.left, d = i ? n.bottom : n.right, p = !1;
2395
+ if (!a) {
2396
+ if (s && Re < u * o) {
2397
+ if (!de && (ue === 1 ? l > c + u * r / 2 : l < d - u * r / 2) && (de = !0), de)
2398
2398
  p = !0;
2399
- else if (le === 1 ? l < d + Re : l > c - Re)
2400
- return -le;
2401
- } else if (l > d + u * (1 - o) / 2 && l < c - u * (1 - o) / 2)
2402
- return ds(t);
2399
+ else if (ue === 1 ? l < c + Re : l > d - Re)
2400
+ return -ue;
2401
+ } else if (l > c + u * (1 - o) / 2 && l < d - u * (1 - o) / 2)
2402
+ return ya(t);
2403
2403
  }
2404
- return p = p || s, p && (l < d + u * r / 2 || l > c - u * r / 2) ? l > d + u / 2 ? 1 : -1 : 0;
2404
+ return p = p || a, p && (l < c + u * r / 2 || l > d - u * r / 2) ? l > c + u / 2 ? 1 : -1 : 0;
2405
2405
  }
2406
- function ds(e) {
2407
- return it(h) < it(e) ? 1 : -1;
2406
+ function ya(e) {
2407
+ return ot(h) < ot(e) ? 1 : -1;
2408
2408
  }
2409
- function hs(e) {
2409
+ function ba(e) {
2410
2410
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, i = 0; n--; )
2411
2411
  i += t.charCodeAt(n);
2412
2412
  return i.toString(36);
2413
2413
  }
2414
- function ps(e) {
2415
- Ue.length = 0;
2414
+ function va(e) {
2415
+ Fe.length = 0;
2416
2416
  for (var t = e.getElementsByTagName("input"), n = t.length; n--; ) {
2417
2417
  var i = t[n];
2418
- i.checked && Ue.push(i);
2418
+ i.checked && Fe.push(i);
2419
2419
  }
2420
2420
  }
2421
- function De(e) {
2421
+ function Oe(e) {
2422
2422
  return setTimeout(e, 0);
2423
2423
  }
2424
- function Rn(e) {
2424
+ function Mn(e) {
2425
2425
  return clearTimeout(e);
2426
2426
  }
2427
- un && _(document, "touchmove", function(e) {
2428
- (v.active || kt) && e.cancelable && e.preventDefault();
2427
+ hn && _(document, "touchmove", function(e) {
2428
+ (v.active || Ut) && e.cancelable && e.preventDefault();
2429
2429
  });
2430
2430
  v.utils = {
2431
2431
  on: _,
2432
- off: S,
2432
+ off: $,
2433
2433
  css: b,
2434
- find: zi,
2434
+ find: qi,
2435
2435
  is: function(t, n) {
2436
2436
  return !!ut(t, n, t, !1);
2437
2437
  },
2438
- extend: Wr,
2439
- throttle: Zi,
2438
+ extend: ea,
2439
+ throttle: Yi,
2440
2440
  closest: ut,
2441
- toggleClass: Q,
2442
- clone: Yi,
2443
- index: it,
2444
- nextTick: De,
2445
- cancelNextTick: Rn,
2446
- detectDirection: Gi,
2447
- getChild: Zt
2441
+ toggleClass: et,
2442
+ clone: Gi,
2443
+ index: ot,
2444
+ nextTick: Oe,
2445
+ cancelNextTick: Mn,
2446
+ detectDirection: Qi,
2447
+ getChild: zt
2448
2448
  };
2449
2449
  v.get = function(e) {
2450
- return e[et];
2450
+ return e[it];
2451
2451
  };
2452
2452
  v.mount = function() {
2453
2453
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
@@ -2455,15 +2455,15 @@ v.mount = function() {
2455
2455
  t[0].constructor === Array && (t = t[0]), t.forEach(function(i) {
2456
2456
  if (!i.prototype || !i.prototype.constructor)
2457
2457
  throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));
2458
- i.utils && (v.utils = dt(dt({}, v.utils), i.utils)), we.mount(i);
2458
+ i.utils && (v.utils = ct(ct({}, v.utils), i.utils)), Ee.mount(i);
2459
2459
  });
2460
2460
  };
2461
2461
  v.create = function(e, t) {
2462
2462
  return new v(e, t);
2463
2463
  };
2464
- v.version = Xr;
2465
- var M = [], ee, Dn, On = !1, $n, _n, Fe, ne;
2466
- function fs() {
2464
+ v.version = Kr;
2465
+ var I = [], ne, Nn, In = !1, Cn, Tn, je, ie;
2466
+ function wa() {
2467
2467
  function e() {
2468
2468
  this.defaults = {
2469
2469
  scroll: !0,
@@ -2485,29 +2485,29 @@ function fs() {
2485
2485
  !this.options.dragOverBubble && !i.rootEl && this._handleAutoScroll(i);
2486
2486
  },
2487
2487
  drop: function() {
2488
- this.sortable.nativeDraggable ? S(document, "dragover", this._handleAutoScroll) : (S(document, "pointermove", this._handleFallbackAutoScroll), S(document, "touchmove", this._handleFallbackAutoScroll), S(document, "mousemove", this._handleFallbackAutoScroll)), gi(), Oe(), Gr();
2488
+ this.sortable.nativeDraggable ? $(document, "dragover", this._handleAutoScroll) : ($(document, "pointermove", this._handleFallbackAutoScroll), $(document, "touchmove", this._handleFallbackAutoScroll), $(document, "mousemove", this._handleFallbackAutoScroll)), bi(), Me(), na();
2489
2489
  },
2490
2490
  nulling: function() {
2491
- Fe = Dn = ee = On = ne = $n = _n = null, M.length = 0;
2491
+ je = Nn = ne = In = ie = Cn = Tn = null, I.length = 0;
2492
2492
  },
2493
2493
  _handleFallbackAutoScroll: function(n) {
2494
2494
  this._handleAutoScroll(n, !0);
2495
2495
  },
2496
2496
  _handleAutoScroll: function(n, i) {
2497
- var o = this, r = (n.touches ? n.touches[0] : n).clientX, s = (n.touches ? n.touches[0] : n).clientY, a = document.elementFromPoint(r, s);
2498
- if (Fe = n, i || this.options.forceAutoScrollFallback || ve || bt || re) {
2499
- An(n, this.options, a, i);
2500
- var l = $t(a, !0);
2501
- On && (!ne || r !== $n || s !== _n) && (ne && gi(), ne = setInterval(function() {
2502
- var u = $t(document.elementFromPoint(r, s), !0);
2503
- u !== l && (l = u, Oe()), An(n, o.options, u, i);
2504
- }, 10), $n = r, _n = s);
2497
+ var o = this, r = (n.touches ? n.touches[0] : n).clientX, a = (n.touches ? n.touches[0] : n).clientY, s = document.elementFromPoint(r, a);
2498
+ if (je = n, i || this.options.forceAutoScrollFallback || we || bt || ae) {
2499
+ Pn(n, this.options, s, i);
2500
+ var l = St(s, !0);
2501
+ In && (!ie || r !== Cn || a !== Tn) && (ie && bi(), ie = setInterval(function() {
2502
+ var u = St(document.elementFromPoint(r, a), !0);
2503
+ u !== l && (l = u, Me()), Pn(n, o.options, u, i);
2504
+ }, 10), Cn = r, Tn = a);
2505
2505
  } else {
2506
- if (!this.options.bubbleScroll || $t(a, !0) === ct()) {
2507
- Oe();
2506
+ if (!this.options.bubbleScroll || St(s, !0) === dt()) {
2507
+ Me();
2508
2508
  return;
2509
2509
  }
2510
- An(n, this.options, $t(a, !1), !1);
2510
+ Pn(n, this.options, St(s, !1), !1);
2511
2511
  }
2512
2512
  }
2513
2513
  }, yt(e, {
@@ -2515,51 +2515,51 @@ function fs() {
2515
2515
  initializeByDefault: !0
2516
2516
  });
2517
2517
  }
2518
- function Oe() {
2519
- M.forEach(function(e) {
2518
+ function Me() {
2519
+ I.forEach(function(e) {
2520
2520
  clearInterval(e.pid);
2521
- }), M = [];
2521
+ }), I = [];
2522
2522
  }
2523
- function gi() {
2524
- clearInterval(ne);
2523
+ function bi() {
2524
+ clearInterval(ie);
2525
2525
  }
2526
- var An = Zi(function(e, t, n, i) {
2526
+ var Pn = Yi(function(e, t, n, i) {
2527
2527
  if (t.scroll) {
2528
- var o = (e.touches ? e.touches[0] : e).clientX, r = (e.touches ? e.touches[0] : e).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = ct(), u = !1, d;
2529
- Dn !== n && (Dn = n, Oe(), ee = t.scroll, d = t.scrollFn, ee === !0 && (ee = $t(n, !0)));
2530
- var c = 0, p = ee;
2528
+ var o = (e.touches ? e.touches[0] : e).clientX, r = (e.touches ? e.touches[0] : e).clientY, a = t.scrollSensitivity, s = t.scrollSpeed, l = dt(), u = !1, c;
2529
+ Nn !== n && (Nn = n, Me(), ne = t.scroll, c = t.scrollFn, ne === !0 && (ne = St(n, !0)));
2530
+ var d = 0, p = ne;
2531
2531
  do {
2532
- var f = p, g = I(f), y = g.top, P = g.bottom, L = g.left, B = g.right, K = g.width, q = g.height, st = void 0, A = void 0, Z = f.scrollWidth, at = f.scrollHeight, X = b(f), Yt = f.scrollLeft, vt = f.scrollTop;
2533
- f === l ? (st = K < Z && (X.overflowX === "auto" || X.overflowX === "scroll" || X.overflowX === "visible"), A = q < at && (X.overflowY === "auto" || X.overflowY === "scroll" || X.overflowY === "visible")) : (st = K < Z && (X.overflowX === "auto" || X.overflowX === "scroll"), A = q < at && (X.overflowY === "auto" || X.overflowY === "scroll"));
2534
- var qt = st && (Math.abs(B - o) <= s && Yt + K < Z) - (Math.abs(L - o) <= s && !!Yt), ht = A && (Math.abs(P - r) <= s && vt + q < at) - (Math.abs(y - r) <= s && !!vt);
2535
- if (!M[c])
2536
- for (var Ct = 0; Ct <= c; Ct++)
2537
- M[Ct] || (M[Ct] = {});
2538
- (M[c].vx != qt || M[c].vy != ht || M[c].el !== f) && (M[c].el = f, M[c].vx = qt, M[c].vy = ht, clearInterval(M[c].pid), (qt != 0 || ht != 0) && (u = !0, M[c].pid = setInterval((function() {
2539
- i && this.layer === 0 && v.active._onTouchMove(Fe);
2540
- var Wt = M[this.layer].vy ? M[this.layer].vy * a : 0, wt = M[this.layer].vx ? M[this.layer].vx * a : 0;
2541
- typeof d == "function" && d.call(v.dragged.parentNode[et], wt, Wt, e, Fe, M[this.layer].el) !== "continue" || Xi(M[this.layer].el, wt, Wt);
2532
+ var f = p, g = H(f), y = g.top, D = g.bottom, U = g.left, V = g.right, tt = g.width, Y = g.height, at = void 0, A = void 0, z = f.scrollWidth, st = f.scrollHeight, X = b(f), Yt = f.scrollLeft, vt = f.scrollTop;
2533
+ f === l ? (at = tt < z && (X.overflowX === "auto" || X.overflowX === "scroll" || X.overflowX === "visible"), A = Y < st && (X.overflowY === "auto" || X.overflowY === "scroll" || X.overflowY === "visible")) : (at = tt < z && (X.overflowX === "auto" || X.overflowX === "scroll"), A = Y < st && (X.overflowY === "auto" || X.overflowY === "scroll"));
2534
+ var Wt = at && (Math.abs(V - o) <= a && Yt + tt < z) - (Math.abs(U - o) <= a && !!Yt), ht = A && (Math.abs(D - r) <= a && vt + Y < st) - (Math.abs(y - r) <= a && !!vt);
2535
+ if (!I[d])
2536
+ for (var Ct = 0; Ct <= d; Ct++)
2537
+ I[Ct] || (I[Ct] = {});
2538
+ (I[d].vx != Wt || I[d].vy != ht || I[d].el !== f) && (I[d].el = f, I[d].vx = Wt, I[d].vy = ht, clearInterval(I[d].pid), (Wt != 0 || ht != 0) && (u = !0, I[d].pid = setInterval((function() {
2539
+ i && this.layer === 0 && v.active._onTouchMove(je);
2540
+ var Gt = I[this.layer].vy ? I[this.layer].vy * s : 0, wt = I[this.layer].vx ? I[this.layer].vx * s : 0;
2541
+ typeof c == "function" && c.call(v.dragged.parentNode[it], wt, Gt, e, je, I[this.layer].el) !== "continue" || Wi(I[this.layer].el, wt, Gt);
2542
2542
  }).bind({
2543
- layer: c
2544
- }), 24))), c++;
2545
- } while (t.bubbleScroll && p !== l && (p = $t(p, !1)));
2546
- On = u;
2543
+ layer: d
2544
+ }), 24))), d++;
2545
+ } while (t.bubbleScroll && p !== l && (p = St(p, !1)));
2546
+ In = u;
2547
2547
  }
2548
- }, 30), to = function(t) {
2549
- var n = t.originalEvent, i = t.putSortable, o = t.dragEl, r = t.activeSortable, s = t.dispatchSortableEvent, a = t.hideGhostForTarget, l = t.unhideGhostForTarget;
2548
+ }, 30), io = function(t) {
2549
+ var n = t.originalEvent, i = t.putSortable, o = t.dragEl, r = t.activeSortable, a = t.dispatchSortableEvent, s = t.hideGhostForTarget, l = t.unhideGhostForTarget;
2550
2550
  if (n) {
2551
2551
  var u = i || r;
2552
- a();
2553
- var d = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, c = document.elementFromPoint(d.clientX, d.clientY);
2554
- l(), u && !u.el.contains(c) && (s("spill"), this.onSpill({
2552
+ s();
2553
+ var c = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, d = document.elementFromPoint(c.clientX, c.clientY);
2554
+ l(), u && !u.el.contains(d) && (a("spill"), this.onSpill({
2555
2555
  dragEl: o,
2556
2556
  putSortable: i
2557
2557
  }));
2558
2558
  }
2559
2559
  };
2560
- function zn() {
2560
+ function qn() {
2561
2561
  }
2562
- zn.prototype = {
2562
+ qn.prototype = {
2563
2563
  startIndex: null,
2564
2564
  dragStart: function(t) {
2565
2565
  var n = t.oldDraggableIndex;
@@ -2568,59 +2568,59 @@ zn.prototype = {
2568
2568
  onSpill: function(t) {
2569
2569
  var n = t.dragEl, i = t.putSortable;
2570
2570
  this.sortable.captureAnimationState(), i && i.captureAnimationState();
2571
- var o = Zt(this.sortable.el, this.startIndex, this.options);
2571
+ var o = zt(this.sortable.el, this.startIndex, this.options);
2572
2572
  o ? this.sortable.el.insertBefore(n, o) : this.sortable.el.appendChild(n), this.sortable.animateAll(), i && i.animateAll();
2573
2573
  },
2574
- drop: to
2574
+ drop: io
2575
2575
  };
2576
- yt(zn, {
2576
+ yt(qn, {
2577
2577
  pluginName: "revertOnSpill"
2578
2578
  });
2579
- function Zn() {
2579
+ function Yn() {
2580
2580
  }
2581
- Zn.prototype = {
2581
+ Yn.prototype = {
2582
2582
  onSpill: function(t) {
2583
2583
  var n = t.dragEl, i = t.putSortable, o = i || this.sortable;
2584
2584
  o.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), o.animateAll();
2585
2585
  },
2586
- drop: to
2586
+ drop: io
2587
2587
  };
2588
- yt(Zn, {
2588
+ yt(Yn, {
2589
2589
  pluginName: "removeOnSpill"
2590
2590
  });
2591
- v.mount(new fs());
2592
- v.mount(Zn, zn);
2593
- const gs = (e) => {
2591
+ v.mount(new wa());
2592
+ v.mount(Yn, qn);
2593
+ const Ea = (e) => {
2594
2594
  const t = e.item;
2595
2595
  let n = Array.prototype.slice.call(t.parentNode.childNodes);
2596
2596
  return n = n.filter(
2597
2597
  (i) => i.nodeType != Node.ELEMENT_NODE || !i.classList.contains("sortable-fallback")
2598
2598
  ), n;
2599
- }, ms = (e, t, n, i, o, r) => {
2600
- const a = e.item.parentNode;
2599
+ }, xa = (e, t, n, i, o, r) => {
2600
+ const s = e.item.parentNode;
2601
2601
  for (const y of n)
2602
- a.appendChild(y);
2602
+ s.appendChild(y);
2603
2603
  if (e.oldIndex == e.newIndex) return;
2604
2604
  const l = i.getArray(), u = (
2605
2605
  /** @type {Element & {layer: import("ol/layer").Layer}} */
2606
2606
  e.item.querySelector("eox-layercontrol-layer").layer.get(o)
2607
- ), d = l.find((y) => y.get(o) === u), c = r.dataset.layer, p = l.find(
2608
- (y) => y.get(o) == c
2607
+ ), c = l.find((y) => y.get(o) === u), d = r.dataset.layer, p = l.find(
2608
+ (y) => y.get(o) == d
2609
2609
  );
2610
2610
  let f, g;
2611
2611
  for (f = 0; f < l.length; f++)
2612
- if (l[f] == d) {
2612
+ if (l[f] == c) {
2613
2613
  i.removeAt(f);
2614
2614
  break;
2615
2615
  }
2616
2616
  for (g = 0; g < l.length; g++)
2617
2617
  if (l[g] === p) {
2618
- f > g ? i.insertAt(g, d) : i.insertAt(g + 1, d);
2618
+ f > g ? i.insertAt(g, c) : i.insertAt(g + 1, c);
2619
2619
  break;
2620
2620
  }
2621
2621
  t.requestUpdate();
2622
2622
  };
2623
- function ys(e, t, n, i) {
2623
+ function $a(e, t, n, i) {
2624
2624
  let o = [], r = null;
2625
2625
  e._sortable = v.create(e, {
2626
2626
  handle: ".drag-handle",
@@ -2628,27 +2628,27 @@ function ys(e, t, n, i) {
2628
2628
  swapThreshold: 0.5,
2629
2629
  animation: 150,
2630
2630
  easing: "cubic-bezier(1, 0, 0, 1)",
2631
- onStart: (s) => o = gs(s),
2632
- onMove: (s) => {
2633
- r = s.related;
2631
+ onStart: (a) => o = Ea(a),
2632
+ onMove: (a) => {
2633
+ r = a.related;
2634
2634
  },
2635
- onEnd: (s) => ms(s, i, o, t, n, r)
2635
+ onEnd: (a) => xa(a, i, o, t, n, r)
2636
2636
  });
2637
2637
  }
2638
- function bs(e, t, n, i) {
2638
+ function Sa(e, t, n, i) {
2639
2639
  const o = e.getArray();
2640
2640
  let r = !1;
2641
- o.forEach((s) => {
2642
- const a = s.ol_uid;
2643
- s.get(t) || (s.set(t, a), r = !0), s.get(n) || (s.set(n, `layer ${a}`), r = !0), r && i.requestUpdate();
2641
+ o.forEach((a) => {
2642
+ const s = a.ol_uid;
2643
+ a.get(t) || (a.set(t, s), r = !0), a.get(n) || (a.set(n, `layer ${s}`), r = !0), r && i.requestUpdate();
2644
2644
  });
2645
2645
  }
2646
- function Xn(e, t, n) {
2646
+ function Wn(e, t, n) {
2647
2647
  let i = [];
2648
- const o = (r, s, a) => {
2648
+ const o = (r, a, s) => {
2649
2649
  i = [
2650
2650
  ...i,
2651
- ...r.filter((u) => u.get(s) === a)
2651
+ ...r.filter((u) => u.get(a) === s)
2652
2652
  ];
2653
2653
  const l = r.filter(
2654
2654
  (u) => (
@@ -2659,30 +2659,30 @@ function Xn(e, t, n) {
2659
2659
  return l.length > 0 && l.forEach(
2660
2660
  (u) => (
2661
2661
  // @ts-ignore
2662
- o(u.getLayers().getArray(), s, a)
2662
+ o(u.getLayers().getArray(), a, s)
2663
2663
  )
2664
2664
  ), i;
2665
2665
  };
2666
2666
  return o(e, t, n), i;
2667
2667
  }
2668
- function vs(e, t, n) {
2668
+ function _a(e, t, n) {
2669
2669
  if (!e || !t) return !1;
2670
- if (!eo(e, n)) return !0;
2670
+ if (!oo(e, n)) return !0;
2671
2671
  const i = e.get("minZoom"), o = e.get("maxZoom"), r = t.getView().getZoom();
2672
2672
  return r > i && r < o;
2673
2673
  }
2674
- function eo(e, t) {
2674
+ function oo(e, t) {
2675
2675
  const n = e.get("minZoom"), i = e.get("maxZoom");
2676
2676
  return !!(t && (n !== -1 / 0 || i !== 1 / 0));
2677
2677
  }
2678
- function ws(e, t) {
2679
- var o, r, s;
2680
- return !e || !t ? void 0 : e.getLayers ? "group" : ((s = (o = t.getInteractions().getArray().filter((a) => a.freehand_ !== void 0).map((a) => a.source_)) == null ? void 0 : o.ol_uid) == null ? void 0 : s.includes(
2678
+ function Aa(e, t) {
2679
+ var o, r, a;
2680
+ return !e || !t ? void 0 : e.getLayers ? "group" : ((a = (o = t.getInteractions().getArray().filter((s) => s.freehand_ !== void 0).map((s) => s.source_)) == null ? void 0 : o.ol_uid) == null ? void 0 : a.includes(
2681
2681
  // @ts-ignore
2682
2682
  e.getSource ? (r = e.getSource()) == null ? void 0 : r.ol_uid : void 0
2683
2683
  )) ? "draw" : e.declutter_ !== void 0 ? "vector" : "raster";
2684
2684
  }
2685
- function no(e, t) {
2685
+ function ro(e, t) {
2686
2686
  var i;
2687
2687
  let n = {};
2688
2688
  for (const o in e) {
@@ -2690,32 +2690,32 @@ function no(e, t) {
2690
2690
  if (r && r !== "object")
2691
2691
  n[o] = r === "number" ? Number(t[o]) : t[o];
2692
2692
  else if (typeof e[o] == "object" && ((i = e[o]) != null && i.properties)) {
2693
- const s = no(
2693
+ const a = ro(
2694
2694
  e[o].properties,
2695
2695
  t
2696
2696
  );
2697
- Object.keys(s).length > 0 && (n[o] = s);
2697
+ Object.keys(a).length > 0 && (n[o] = a);
2698
2698
  }
2699
2699
  }
2700
2700
  return n;
2701
2701
  }
2702
- function Es(e, t) {
2702
+ function Ca(e, t) {
2703
2703
  var r;
2704
2704
  if (!t || !e.getSource().getTileUrlFunction()) return null;
2705
- const n = new URL(e.getSource().getTileUrlFunction()([0, 0, 0])), i = Object.fromEntries(n.searchParams.entries()), o = no(
2705
+ const n = new URL(e.getSource().getTileUrlFunction()([0, 0, 0])), i = Object.fromEntries(n.searchParams.entries()), o = ro(
2706
2706
  ((r = t.schema) == null ? void 0 : r.properties) || t.schema,
2707
2707
  i
2708
2708
  );
2709
2709
  return Object.keys(o).length ? o : null;
2710
2710
  }
2711
- const xs = (e, t) => e == null ? void 0 : e.filter(
2711
+ const Ta = (e, t) => e == null ? void 0 : e.filter(
2712
2712
  (n) => ["remove", "sort"].filter((i) => t != null && t.get("layerControlDisable") ? i !== "sort" : !0).includes(n)
2713
- ), Ss = (e, t) => e == null ? void 0 : e.filter((n) => {
2713
+ ), Pa = (e, t) => e == null ? void 0 : e.filter((n) => {
2714
2714
  let i = !0;
2715
- return ["remove", "sort"].includes(n) && (i = !1), n === "info" && (i = t.get("description")), n === "config" && (i = t.get("layerConfig")), i;
2716
- }), $s = (e, t) => x`
2715
+ return ["remove", "sort"].includes(n) && (i = !1), n === "info" && (i = t.get("description")), n === "config" && (i = t.get("layerConfig")), n === "datetime" && (i = t.get("layerDatetime")), i;
2716
+ }), Da = (e, t) => E`
2717
2717
  <button slot="${e}-icon" class="icon">${t ? e : C}</button>
2718
- `, _s = (e) => x`
2718
+ `, Ra = (e) => E`
2719
2719
  <button
2720
2720
  class="remove-icon icon"
2721
2721
  @click=${() => {
@@ -2730,11 +2730,11 @@ const xs = (e, t) => e == null ? void 0 : e.filter(
2730
2730
  >
2731
2731
  ${e.unstyled ? "x" : C}
2732
2732
  </button>
2733
- `, As = (e) => x`
2733
+ `, Oa = (e) => E`
2734
2734
  <span class="button sort-icon icon drag-handle">
2735
2735
  ${e ? "═" : C}
2736
2736
  </span>
2737
- `, io = (e) => {
2737
+ `, ao = (e) => {
2738
2738
  var n;
2739
2739
  const t = ["layerControlHide", "layerControlOptional"];
2740
2740
  return (n = e == null ? void 0 : e.getArray()) == null ? void 0 : n.filter((i) => t.every((o) => !i.get(o)));
@@ -2744,23 +2744,23 @@ const xs = (e, t) => e == null ? void 0 : e.filter(
2744
2744
  * Copyright 2020 Google LLC
2745
2745
  * SPDX-License-Identifier: BSD-3-Clause
2746
2746
  */
2747
- const oo = Ln(class extends kn {
2747
+ const so = Fn(class extends jn {
2748
2748
  constructor(e) {
2749
2749
  if (super(e), e.type !== Et.PROPERTY && e.type !== Et.ATTRIBUTE && e.type !== Et.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
2750
- if (!zo(e)) throw Error("`live` bindings can only contain a single expression");
2750
+ if (!Go(e)) throw Error("`live` bindings can only contain a single expression");
2751
2751
  }
2752
2752
  render(e) {
2753
2753
  return e;
2754
2754
  }
2755
2755
  update(e, [t]) {
2756
- if (t === ot || t === C) return t;
2756
+ if (t === rt || t === C) return t;
2757
2757
  const n = e.element, i = e.name;
2758
2758
  if (e.type === Et.PROPERTY) {
2759
- if (t === n[i]) return ot;
2759
+ if (t === n[i]) return rt;
2760
2760
  } else if (e.type === Et.BOOLEAN_ATTRIBUTE) {
2761
- if (!!t === n.hasAttribute(i)) return ot;
2762
- } else if (e.type === Et.ATTRIBUTE && n.getAttribute(i) === t + "") return ot;
2763
- return Oi(e), t;
2761
+ if (!!t === n.hasAttribute(i)) return rt;
2762
+ } else if (e.type === Et.ATTRIBUTE && n.getAttribute(i) === t + "") return rt;
2763
+ return Ii(e), t;
2764
2764
  }
2765
2765
  });
2766
2766
  /**
@@ -2768,13 +2768,13 @@ const oo = Ln(class extends kn {
2768
2768
  * Copyright 2017 Google LLC
2769
2769
  * SPDX-License-Identifier: BSD-3-Clause
2770
2770
  */
2771
- class Nn extends kn {
2771
+ class Hn extends jn {
2772
2772
  constructor(t) {
2773
2773
  if (super(t), this.it = C, t.type !== Et.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
2774
2774
  }
2775
2775
  render(t) {
2776
2776
  if (t === C || t == null) return this._t = void 0, this.it = t;
2777
- if (t === ot) return t;
2777
+ if (t === rt) return t;
2778
2778
  if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
2779
2779
  if (t === this.it) return this._t;
2780
2780
  this.it = t;
@@ -2782,8 +2782,8 @@ class Nn extends kn {
2782
2782
  return n.raw = n, this._t = { _$litType$: this.constructor.resultType, strings: n, values: [] };
2783
2783
  }
2784
2784
  }
2785
- Nn.directiveName = "unsafeHTML", Nn.resultType = 1;
2786
- const Cs = Ln(Nn);
2785
+ Hn.directiveName = "unsafeHTML", Hn.resultType = 1;
2786
+ const Ma = Fn(Hn);
2787
2787
  /**
2788
2788
  * @license
2789
2789
  * Copyright 2021 Google LLC
@@ -2795,119 +2795,119 @@ function* Ne(e, t) {
2795
2795
  for (const i of e) yield t(i, n++);
2796
2796
  }
2797
2797
  }
2798
- const Ts = (e, t, n) => {
2798
+ const Na = (e, t, n) => {
2799
2799
  let i = t;
2800
2800
  return n.layer.getSource().getTileUrlFunction() && (i || (i = n.layer.getSource().getTileUrlFunction()), n.layer.getSource().setTileUrlFunction(
2801
- (...o) => Fr(i(...o), e)
2801
+ (...o) => Yr(i(...o), e)
2802
2802
  ), n.layer.getSource().setKey(/* @__PURE__ */ new Date())), i;
2803
2803
  };
2804
- var Ae = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2805
- function Ps(e) {
2804
+ var Ce = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2805
+ function Ia(e) {
2806
2806
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2807
2807
  }
2808
- var Rs = "Expected a function", mi = NaN, Ds = "[object Symbol]", Os = /^\s+|\s+$/g, Ns = /^[-+]0x[0-9a-f]+$/i, Ms = /^0b[01]+$/i, Is = /^0o[0-7]+$/i, Hs = parseInt, Bs = typeof Ae == "object" && Ae && Ae.Object === Object && Ae, Vs = typeof self == "object" && self && self.Object === Object && self, Ls = Bs || Vs || Function("return this")(), ks = Object.prototype, Us = ks.toString, Fs = Math.max, js = Math.min, Cn = function() {
2809
- return Ls.Date.now();
2808
+ var Ha = "Expected a function", vi = NaN, Ba = "[object Symbol]", Va = /^\s+|\s+$/g, La = /^[-+]0x[0-9a-f]+$/i, Ua = /^0b[01]+$/i, ka = /^0o[0-7]+$/i, Fa = parseInt, ja = typeof Ce == "object" && Ce && Ce.Object === Object && Ce, Za = typeof self == "object" && self && self.Object === Object && self, za = ja || Za || Function("return this")(), Xa = Object.prototype, qa = Xa.toString, Ya = Math.max, Wa = Math.min, Dn = function() {
2809
+ return za.Date.now();
2810
2810
  };
2811
- function zs(e, t, n) {
2812
- var i, o, r, s, a, l, u = 0, d = !1, c = !1, p = !0;
2811
+ function Ga(e, t, n) {
2812
+ var i, o, r, a, s, l, u = 0, c = !1, d = !1, p = !0;
2813
2813
  if (typeof e != "function")
2814
- throw new TypeError(Rs);
2815
- t = yi(t) || 0, Mn(n) && (d = !!n.leading, c = "maxWait" in n, r = c ? Fs(yi(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
2814
+ throw new TypeError(Ha);
2815
+ t = wi(t) || 0, Bn(n) && (c = !!n.leading, d = "maxWait" in n, r = d ? Ya(wi(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
2816
2816
  function f(A) {
2817
- var Z = i, at = o;
2818
- return i = o = void 0, u = A, s = e.apply(at, Z), s;
2817
+ var z = i, st = o;
2818
+ return i = o = void 0, u = A, a = e.apply(st, z), a;
2819
2819
  }
2820
2820
  function g(A) {
2821
- return u = A, a = setTimeout(L, t), d ? f(A) : s;
2821
+ return u = A, s = setTimeout(U, t), c ? f(A) : a;
2822
2822
  }
2823
2823
  function y(A) {
2824
- var Z = A - l, at = A - u, X = t - Z;
2825
- return c ? js(X, r - at) : X;
2824
+ var z = A - l, st = A - u, X = t - z;
2825
+ return d ? Wa(X, r - st) : X;
2826
2826
  }
2827
- function P(A) {
2828
- var Z = A - l, at = A - u;
2829
- return l === void 0 || Z >= t || Z < 0 || c && at >= r;
2827
+ function D(A) {
2828
+ var z = A - l, st = A - u;
2829
+ return l === void 0 || z >= t || z < 0 || d && st >= r;
2830
2830
  }
2831
- function L() {
2832
- var A = Cn();
2833
- if (P(A))
2834
- return B(A);
2835
- a = setTimeout(L, y(A));
2831
+ function U() {
2832
+ var A = Dn();
2833
+ if (D(A))
2834
+ return V(A);
2835
+ s = setTimeout(U, y(A));
2836
2836
  }
2837
- function B(A) {
2838
- return a = void 0, p && i ? f(A) : (i = o = void 0, s);
2837
+ function V(A) {
2838
+ return s = void 0, p && i ? f(A) : (i = o = void 0, a);
2839
2839
  }
2840
- function K() {
2841
- a !== void 0 && clearTimeout(a), u = 0, i = l = o = a = void 0;
2840
+ function tt() {
2841
+ s !== void 0 && clearTimeout(s), u = 0, i = l = o = s = void 0;
2842
2842
  }
2843
- function q() {
2844
- return a === void 0 ? s : B(Cn());
2843
+ function Y() {
2844
+ return s === void 0 ? a : V(Dn());
2845
2845
  }
2846
- function st() {
2847
- var A = Cn(), Z = P(A);
2848
- if (i = arguments, o = this, l = A, Z) {
2849
- if (a === void 0)
2846
+ function at() {
2847
+ var A = Dn(), z = D(A);
2848
+ if (i = arguments, o = this, l = A, z) {
2849
+ if (s === void 0)
2850
2850
  return g(l);
2851
- if (c)
2852
- return a = setTimeout(L, t), f(l);
2851
+ if (d)
2852
+ return s = setTimeout(U, t), f(l);
2853
2853
  }
2854
- return a === void 0 && (a = setTimeout(L, t)), s;
2854
+ return s === void 0 && (s = setTimeout(U, t)), a;
2855
2855
  }
2856
- return st.cancel = K, st.flush = q, st;
2856
+ return at.cancel = tt, at.flush = Y, at;
2857
2857
  }
2858
- function Mn(e) {
2858
+ function Bn(e) {
2859
2859
  var t = typeof e;
2860
2860
  return !!e && (t == "object" || t == "function");
2861
2861
  }
2862
- function Zs(e) {
2862
+ function Ja(e) {
2863
2863
  return !!e && typeof e == "object";
2864
2864
  }
2865
- function Xs(e) {
2866
- return typeof e == "symbol" || Zs(e) && Us.call(e) == Ds;
2865
+ function Ka(e) {
2866
+ return typeof e == "symbol" || Ja(e) && qa.call(e) == Ba;
2867
2867
  }
2868
- function yi(e) {
2868
+ function wi(e) {
2869
2869
  if (typeof e == "number")
2870
2870
  return e;
2871
- if (Xs(e))
2872
- return mi;
2873
- if (Mn(e)) {
2871
+ if (Ka(e))
2872
+ return vi;
2873
+ if (Bn(e)) {
2874
2874
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
2875
- e = Mn(t) ? t + "" : t;
2875
+ e = Bn(t) ? t + "" : t;
2876
2876
  }
2877
2877
  if (typeof e != "string")
2878
2878
  return e === 0 ? e : +e;
2879
- e = e.replace(Os, "");
2880
- var n = Ms.test(e);
2881
- return n || Is.test(e) ? Hs(e.slice(2), n ? 2 : 8) : Ns.test(e) ? mi : +e;
2882
- }
2883
- var Ys = zs;
2884
- const ro = /* @__PURE__ */ Ps(Ys);
2885
- var fe, ge, me, je, ao, ze, Ze;
2886
- class so extends nt {
2879
+ e = e.replace(Va, "");
2880
+ var n = Ua.test(e);
2881
+ return n || ka.test(e) ? Fa(e.slice(2), n ? 2 : 8) : La.test(e) ? vi : +e;
2882
+ }
2883
+ var Qa = Ga;
2884
+ const lo = /* @__PURE__ */ Ia(Qa);
2885
+ var ge, me, ye, Ze, co, ze, Xe;
2886
+ class uo extends Q {
2887
2887
  constructor() {
2888
2888
  super();
2889
- T(this, je);
2889
+ T(this, Ze);
2890
2890
  /**
2891
2891
  * data input by the user
2892
2892
  *
2893
2893
  * @type {{[key: string]: any}}
2894
2894
  */
2895
- T(this, fe, {});
2895
+ T(this, ge, {});
2896
2896
  /**
2897
2897
  * data input by the user
2898
2898
  *
2899
2899
  * @type {{[key: string]: any}}
2900
2900
  */
2901
- T(this, ge, null);
2901
+ T(this, me, null);
2902
2902
  /**
2903
2903
  * Original tile url function, if it exist
2904
2904
  *
2905
2905
  * @type {Function}
2906
2906
  */
2907
- T(this, me);
2907
+ T(this, ye);
2908
2908
  T(this, ze, "");
2909
- T(this, Ze, "");
2910
- this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.debouncedDataChange = ro(k(this, je, ao), 1e3, {
2909
+ T(this, Xe, "");
2910
+ this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.debouncedDataChange = lo(B(this, Ze, co), 1e3, {
2911
2911
  leading: !0
2912
2912
  });
2913
2913
  }
@@ -2921,24 +2921,24 @@ class so extends nt {
2921
2921
  * Renders a JSON form for configuration options of a layer.
2922
2922
  */
2923
2923
  render() {
2924
- Jt(this, ge, Es(this.layer, this.layerConfig)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
2924
+ Kt(this, me, Ca(this.layer, this.layerConfig)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
2925
2925
  const n = {
2926
2926
  disable_edit_json: !0,
2927
2927
  disable_collapse: !0,
2928
2928
  disable_properties: !0
2929
2929
  };
2930
- return x`
2930
+ return E`
2931
2931
  <style>
2932
- ${D(this, ze)}
2933
- ${!this.unstyled && D(this, Ze)}
2932
+ ${P(this, ze)}
2933
+ ${!this.unstyled && P(this, Xe)}
2934
2934
  </style>
2935
- ${rt(
2935
+ ${K(
2936
2936
  this.layerConfig,
2937
- () => x`
2937
+ () => E`
2938
2938
  <!-- Render a JSON form for layer configuration -->
2939
2939
  <eox-jsonform
2940
2940
  .schema=${this.layerConfig.schema}
2941
- .value=${D(this, ge)}
2941
+ .value=${P(this, me)}
2942
2942
  .options=${n}
2943
2943
  @change=${this.debouncedDataChange}
2944
2944
  ></eox-jsonform>
@@ -2947,19 +2947,19 @@ class so extends nt {
2947
2947
  `;
2948
2948
  }
2949
2949
  }
2950
- fe = new WeakMap(), ge = new WeakMap(), me = new WeakMap(), je = new WeakSet(), /**
2950
+ ge = new WeakMap(), me = new WeakMap(), ye = new WeakMap(), Ze = new WeakSet(), /**
2951
2951
  * Handles changes in eox-jsonform values.
2952
2952
  *
2953
2953
  * @param {{ detail: { value: string; }; }} e
2954
2954
  */
2955
- ao = function(n) {
2956
- Jt(this, fe, n.detail), Jt(this, me, Ts(
2957
- D(this, fe),
2958
- D(this, me),
2955
+ co = function(n) {
2956
+ Kt(this, ge, n.detail), Kt(this, ye, Na(
2957
+ P(this, ge),
2958
+ P(this, ye),
2959
2959
  this
2960
2960
  )), this.requestUpdate();
2961
- }, ze = new WeakMap(), Ze = new WeakMap(), // Define static properties for the component
2962
- H(so, "properties", {
2961
+ }, ze = new WeakMap(), Xe = new WeakMap(), // Define static properties for the component
2962
+ N(uo, "properties", {
2963
2963
  layer: { attribute: !1 },
2964
2964
  unstyled: { type: Boolean },
2965
2965
  noShadow: { type: Boolean },
@@ -2967,15 +2967,88 @@ H(so, "properties", {
2967
2967
  });
2968
2968
  customElements.define(
2969
2969
  "eox-layercontrol-layerconfig",
2970
- so
2970
+ uo
2971
2971
  );
2972
- var ye, Xe, Ye;
2973
- class lo extends nt {
2972
+ var qe, po, Ye, We;
2973
+ class ho extends Q {
2974
+ constructor() {
2975
+ super();
2976
+ T(this, qe);
2977
+ T(this, Ye, "");
2978
+ T(this, We, "");
2979
+ this.unstyled = !1, this.noShadow = !1, this.layerDatetime = null, this.layer = null;
2980
+ }
2981
+ /**
2982
+ * Overrides createRenderRoot to handle shadow DOM creation based on the noShadow property.
2983
+ */
2984
+ createRenderRoot() {
2985
+ return this.noShadow ? this : super.createRenderRoot();
2986
+ }
2987
+ /**
2988
+ * Renders a Time Control for datetime options of a layer.
2989
+ */
2990
+ render() {
2991
+ return customElements.get("eox-timecontrol") || console.error(
2992
+ "Please import @eox/timecontrol in order to use layerDatetime"
2993
+ ), E`
2994
+ <style>
2995
+ ${P(this, Ye)}
2996
+ ${!this.unstyled && P(this, We)}
2997
+ </style>
2998
+ ${K(
2999
+ this.layerDatetime,
3000
+ () => E`
3001
+ <!-- Render a Timecontrol for layer date time -->
3002
+ <eox-timecontrol
3003
+ ?unstyled=${this.unstyled}
3004
+ .for=${void 0}
3005
+ .layer=${void 0}
3006
+ slider=${!0}
3007
+ .disablePlay=${!0}
3008
+ .controlValues=${this.layerDatetime.values}
3009
+ .controlProperty=${void 0}
3010
+ current-step=${this.layerDatetime.current}
3011
+ @stepchange=${B(this, qe, po)}
3012
+ ></eox-timecontrol>
3013
+ `
3014
+ )}
3015
+ `;
3016
+ }
3017
+ }
3018
+ qe = new WeakSet(), /**
3019
+ * Handles timecontrol Stepchange &
3020
+ * triggers `datetime:updated` event on step change
3021
+ *
3022
+ * @param {CustomEvent<{currentStep:string|number}>} evt
3023
+ **/
3024
+ po = function(n) {
3025
+ this.dispatchEvent(
3026
+ new CustomEvent("datetime:updated", {
3027
+ bubbles: !0,
3028
+ detail: {
3029
+ datetime: n.detail.currentStep,
3030
+ layer: this.layer.get("id")
3031
+ }
3032
+ })
3033
+ ), this.layerDatetime.current = n.detail.currentStep, this.requestUpdate();
3034
+ }, Ye = new WeakMap(), We = new WeakMap(), // Define static properties for the component
3035
+ N(ho, "properties", {
3036
+ unstyled: { type: Boolean },
3037
+ noShadow: { type: Boolean },
3038
+ layerDatetime: { attribute: !1 },
3039
+ layer: { attribute: !1 }
3040
+ });
3041
+ customElements.define(
3042
+ "eox-layercontrol-layer-datetime",
3043
+ ho
3044
+ );
3045
+ var be, Ge, Je;
3046
+ class fo extends Q {
2974
3047
  constructor() {
2975
3048
  super();
2976
3049
  /** @param {number} index */
2977
- T(this, ye, (n) => this.selectedTab === n && "highlighted");
2978
- T(this, Xe, `
3050
+ T(this, be, (n) => this.selectedTab === n && "highlighted");
3051
+ T(this, Ge, `
2979
3052
  .tabbed figure {
2980
3053
  margin: 0;
2981
3054
  }
@@ -2996,7 +3069,7 @@ class lo extends nt {
2996
3069
  background: lightgrey;
2997
3070
  }
2998
3071
  `);
2999
- T(this, Ye, `
3072
+ T(this, Je, `
3000
3073
  .tabbed {
3001
3074
  font-size: small;
3002
3075
  }
@@ -3032,25 +3105,25 @@ class lo extends nt {
3032
3105
  */
3033
3106
  render() {
3034
3107
  const n = this.tabs, i = this.actions, o = i.length + n.length > 1;
3035
- return x`
3108
+ return E`
3036
3109
  <style>
3037
- ${D(this, Xe)}
3038
- ${!this.unstyled && D(this, Ye)}
3110
+ ${P(this, Ge)}
3111
+ ${!this.unstyled && P(this, Je)}
3039
3112
  </style>
3040
3113
  <div class="tabbed">
3041
3114
  <!-- Navigation for tabs and actions -->
3042
- ${rt(
3115
+ ${K(
3043
3116
  o,
3044
- () => x`
3117
+ () => E`
3045
3118
  <nav>
3046
3119
  <div>
3047
3120
  <!-- Labels for tabs -->
3048
3121
  ${Ne(
3049
3122
  n,
3050
- (r, s) => x`
3123
+ (r, a) => E`
3051
3124
  <label
3052
- class=${D(this, ye).call(this, s)}
3053
- @click=${() => this.selectedTab = s}
3125
+ class=${P(this, be).call(this, a)}
3126
+ @click=${() => this.selectedTab = a}
3054
3127
  >
3055
3128
  <!-- Customizable icon for each tab -->
3056
3129
  <slot name=${`${r}-icon`}>${r}</slot>
@@ -3062,7 +3135,7 @@ class lo extends nt {
3062
3135
  <!-- Icons for actions -->
3063
3136
  ${Ne(
3064
3137
  i,
3065
- (r) => x`
3138
+ (r) => E`
3066
3139
  <span>
3067
3140
  <!-- Customizable icon for each action -->
3068
3141
  <slot name=${`${r}-icon`}>${r}</slot>
@@ -3077,8 +3150,8 @@ class lo extends nt {
3077
3150
  <!-- Content for each tab -->
3078
3151
  ${Ne(
3079
3152
  n,
3080
- (r, s) => x`
3081
- <div class="tab ${D(this, ye).call(this, s)}">
3153
+ (r, a) => E`
3154
+ <div class="tab ${P(this, be).call(this, a)}">
3082
3155
  <!-- Content slot for each tab -->
3083
3156
  <slot name=${`${r}-content`}>${r}</slot>
3084
3157
  </div>
@@ -3089,16 +3162,16 @@ class lo extends nt {
3089
3162
  `;
3090
3163
  }
3091
3164
  }
3092
- ye = new WeakMap(), Xe = new WeakMap(), Ye = new WeakMap(), // Define static properties for the component
3093
- H(lo, "properties", {
3165
+ be = new WeakMap(), Ge = new WeakMap(), Je = new WeakMap(), // Define static properties for the component
3166
+ N(fo, "properties", {
3094
3167
  actions: { attribute: !1 },
3095
3168
  selectedTab: { state: !0 },
3096
3169
  tabs: { attribute: !1 },
3097
3170
  unstyled: { type: Boolean },
3098
3171
  noShadow: { type: Boolean }
3099
3172
  });
3100
- customElements.define("eox-layercontrol-tabs", lo);
3101
- const qs = `
3173
+ customElements.define("eox-layercontrol-tabs", fo);
3174
+ const ts = `
3102
3175
  button,
3103
3176
  .button {
3104
3177
  /* TODO: why does this only work here and not from :root? */
@@ -3222,7 +3295,7 @@ button.smallest.icon::before {
3222
3295
  width: 16px;
3223
3296
  padding: 0px;
3224
3297
  }
3225
- `, Ws = `
3298
+ `, es = `
3226
3299
  input[type=radio] {
3227
3300
  appearance: none;
3228
3301
  -webkit-appearance: none;
@@ -3250,7 +3323,7 @@ input[type=radio]:checked:after {
3250
3323
  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");
3251
3324
 
3252
3325
  }
3253
- `, uo = `
3326
+ `, go = `
3254
3327
  input[type=checkbox] {
3255
3328
  appearance: none;
3256
3329
  -webkit-appearance: none;
@@ -3273,7 +3346,7 @@ input[type=checkbox]:checked:after {
3273
3346
  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");
3274
3347
 
3275
3348
  }
3276
- `, Gs = `
3349
+ `, ns = `
3277
3350
  input[type="range"] {
3278
3351
  -webkit-appearance: none;
3279
3352
  width: 90%;
@@ -3351,14 +3424,14 @@ input::-moz-focus-inner, input::-moz-focus-outer {
3351
3424
  border: 0;
3352
3425
  }
3353
3426
  `;
3354
- var qe, We;
3355
- class co extends nt {
3427
+ var Ke, Qe;
3428
+ class mo extends Q {
3356
3429
  constructor() {
3357
3430
  super();
3358
3431
  // Initializes '_removeButton' invoking 'removeButton' function with 'this' context.
3359
- H(this, "_removeButton", () => _s(this));
3432
+ N(this, "_removeButton", () => Ra(this));
3360
3433
  // Initializes '_sortButton' invoking 'sortButton' function with 'unstyled' property as a parameter.
3361
- H(this, "_sortButton", () => As(this.unstyled));
3434
+ N(this, "_sortButton", () => Oa(this.unstyled));
3362
3435
  /**
3363
3436
  * Initializes '_button' as a function accepting 'tool' parameter to generate a Button.
3364
3437
  * Uses 'this.unstyled' as a context parameter for Button generation.
@@ -3366,13 +3439,13 @@ class co extends nt {
3366
3439
  * @param {string} tool - Tool parameter for Button generation.
3367
3440
  * @returns {import("lit").HTMLTemplateResult} - The generated Button element.
3368
3441
  */
3369
- H(this, "_button", (n) => $s(n, this.unstyled));
3370
- T(this, qe, "");
3371
- T(this, We, `
3372
- ${qs}
3373
- ${Ws}
3374
- ${uo}
3375
- ${Gs}
3442
+ N(this, "_button", (n) => Da(n, this.unstyled));
3443
+ T(this, Ke, "");
3444
+ T(this, Qe, `
3445
+ ${ts}
3446
+ ${es}
3447
+ ${go}
3448
+ ${ns}
3376
3449
  .drag-handle {
3377
3450
  cursor: n-resize;
3378
3451
  }
@@ -3452,6 +3525,10 @@ class co extends nt {
3452
3525
  button.icon[slot=config-icon]::before {
3453
3526
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Etune%3C/title%3E%3Cpath d='M3,17V19H9V17H3M3,5V7H13V5H3M13,21V19H21V17H13V15H11V21H13M7,9V11H3V13H7V15H9V9H7M21,13V11H11V13H21M15,9H17V7H21V5H17V3H15V9Z' /%3E%3C/svg%3E");
3454
3527
  }
3528
+ details.tools summary .datetime-icon,
3529
+ button.icon[slot=datetime-icon]::before {
3530
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Eclock-outline%3C/title%3E%3Cpath d='M12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C6.47,22 2,17.5 2,12A10,10 0 0,1 12,2M12.5,7V12.25L17,14.92L16.25,16.15L11,13V7H12.5Z' /%3E%3C/svg%3E");
3531
+ }
3455
3532
  .single-action .remove-icon::before,
3456
3533
  [slot=remove-icon] button.icon::before {
3457
3534
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ff0000' viewBox='0 0 24 24'%3E%3Ctitle%3Edelete-outline%3C/title%3E%3Cpath d='M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8,9H16V19H8V9M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z' /%3E%3C/svg%3E");
@@ -3475,28 +3552,28 @@ class co extends nt {
3475
3552
  }
3476
3553
  render() {
3477
3554
  var l;
3478
- const n = xs(this.tools, this.layer), i = Ss(this.tools, this.layer), o = this[`_${n == null ? void 0 : n[0]}Button`] ? (
3555
+ const n = Ta(this.tools, this.layer), i = Pa(this.tools, this.layer), o = this[`_${n == null ? void 0 : n[0]}Button`] ? (
3479
3556
  // @ts-ignore
3480
3557
  this[`_${n == null ? void 0 : n[0]}Button`]()
3481
- ) : C, r = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", s = n == null ? void 0 : n.length, a = i == null ? void 0 : i.length;
3482
- return x`
3558
+ ) : C, r = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", a = n == null ? void 0 : n.length, s = i == null ? void 0 : i.length;
3559
+ return E`
3483
3560
  <style>
3484
- ${D(this, qe)}
3485
- ${!this.unstyled && D(this, We)}
3561
+ ${P(this, Ke)}
3562
+ ${!this.unstyled && P(this, Qe)}
3486
3563
  </style>
3487
- ${rt(
3488
- s + a > 0,
3489
- () => x`
3490
- ${rt(
3491
- s === 1 && a === 0,
3492
- () => x`
3564
+ ${K(
3565
+ a + s > 0,
3566
+ () => E`
3567
+ ${K(
3568
+ a === 1 && s === 0,
3569
+ () => E`
3493
3570
  <div class="single-action-container">
3494
3571
  <div class="single-action">${o}</div>
3495
3572
  </div>
3496
3573
  `,
3497
3574
  () => {
3498
3575
  var u;
3499
- return x`
3576
+ return E`
3500
3577
  <details
3501
3578
  class="tools"
3502
3579
  open=${this.layer.get("layerControlToolsExpand") || C}
@@ -3511,10 +3588,10 @@ class co extends nt {
3511
3588
  .unstyled=${this.unstyled}
3512
3589
  >
3513
3590
  <!-- Rendering tabs and content -->
3514
- ${Ne(i, (d) => this._button(d))}
3591
+ ${Ne(i, (c) => this._button(c))}
3515
3592
 
3516
3593
  <div slot="info-content">
3517
- ${Cs(this.layer.get("description"))}
3594
+ ${Ma(this.layer.get("description"))}
3518
3595
  </div>
3519
3596
  <div slot="opacity-content">
3520
3597
  <!-- Input for opacity -->
@@ -3523,15 +3600,15 @@ class co extends nt {
3523
3600
  min="0"
3524
3601
  max="1"
3525
3602
  step="0.01"
3526
- value=${oo((u = this.layer) == null ? void 0 : u.getOpacity())}
3527
- @input=${(d) => this.layer.setOpacity(parseFloat(d.target.value))}
3603
+ value=${so((u = this.layer) == null ? void 0 : u.getOpacity())}
3604
+ @input=${(c) => this.layer.setOpacity(parseFloat(c.target.value))}
3528
3605
  />
3529
3606
  </div>
3530
3607
  <div slot="config-content">
3531
3608
  <!-- Layer configuration -->
3532
- ${rt(
3609
+ ${K(
3533
3610
  this.layer.get("layerConfig"),
3534
- () => x`
3611
+ () => E`
3535
3612
  <eox-layercontrol-layerconfig
3536
3613
  slot="config-content"
3537
3614
  .layer=${this.layer}
@@ -3541,6 +3618,22 @@ class co extends nt {
3541
3618
  @changed=${() => this.requestUpdate()}
3542
3619
  ></eox-layercontrol-layerconfig>
3543
3620
  `
3621
+ )}
3622
+ </div>
3623
+ <div slot="datetime-content">
3624
+ <!-- Layer datetime -->
3625
+ ${K(
3626
+ this.layer.get("layerDatetime"),
3627
+ () => E`
3628
+ <eox-layercontrol-layer-datetime
3629
+ slot="datetime-content"
3630
+ .noShadow=${!0}
3631
+ .layerDatetime=${this.layer.get("layerDatetime")}
3632
+ .layer=${this.layer}
3633
+ .unstyled=${this.unstyled}
3634
+ @changed=${() => this.requestUpdate()}
3635
+ ></eox-layercontrol-layer-datetime>
3636
+ `
3544
3637
  )}
3545
3638
  </div>
3546
3639
  <div slot="remove-icon">${this._removeButton()}</div>
@@ -3555,8 +3648,8 @@ class co extends nt {
3555
3648
  `;
3556
3649
  }
3557
3650
  }
3558
- qe = new WeakMap(), We = new WeakMap(), // Define static properties for the component
3559
- H(co, "properties", {
3651
+ Ke = new WeakMap(), Qe = new WeakMap(), // Define static properties for the component
3652
+ N(mo, "properties", {
3560
3653
  layer: { attribute: !1 },
3561
3654
  tools: { attribute: !1 },
3562
3655
  unstyled: { type: Boolean },
@@ -3564,11 +3657,11 @@ H(co, "properties", {
3564
3657
  });
3565
3658
  customElements.define(
3566
3659
  "eox-layercontrol-layer-tools",
3567
- co
3660
+ mo
3568
3661
  );
3569
- const Js = (e) => {
3662
+ const is = (e) => {
3570
3663
  const t = () => {
3571
- const n = vs(
3664
+ const n = _a(
3572
3665
  e.layer,
3573
3666
  e.map,
3574
3667
  e.showLayerZoomState
@@ -3578,11 +3671,11 @@ const Js = (e) => {
3578
3671
  new CustomEvent("change:resolution", { bubbles: !0 })
3579
3672
  ));
3580
3673
  };
3581
- eo(
3674
+ oo(
3582
3675
  e.layer,
3583
3676
  e.showLayerZoomState
3584
3677
  ) && (t(), e.map.getView().on("change:resolution", () => t()));
3585
- }, Ks = (e, t) => {
3678
+ }, os = (e, t) => {
3586
3679
  const n = t.layer;
3587
3680
  n.setVisible(e.target.checked), e.target.checked && n.get("layerControlExclusive") && t.closest(
3588
3681
  ".layers > ul"
@@ -3593,8 +3686,8 @@ const Js = (e) => {
3593
3686
  new CustomEvent("changed", { bubbles: !0, detail: n })
3594
3687
  ), t.requestUpdate();
3595
3688
  };
3596
- var At, Me, po, Ge, Je;
3597
- class ho extends nt {
3689
+ var At, Ie, bo, tn, en;
3690
+ class yo extends Q {
3598
3691
  constructor() {
3599
3692
  super();
3600
3693
  T(this, At);
@@ -3603,10 +3696,10 @@ class ho extends nt {
3603
3696
  *
3604
3697
  * @type {Boolean}
3605
3698
  */
3606
- H(this, "currLayerVisibilityBasedOnZoom", !0);
3607
- T(this, Ge, "");
3608
- T(this, Je, `
3609
- ${uo}
3699
+ N(this, "currLayerVisibilityBasedOnZoom", !0);
3700
+ T(this, tn, "");
3701
+ T(this, en, `
3702
+ ${go}
3610
3703
  eox-layercontrol-layer {
3611
3704
  width: 100%;
3612
3705
  }
@@ -3660,7 +3753,7 @@ class ho extends nt {
3660
3753
  * and register "change:resolution" ones at the beginning if `showLayerZoomState` is present
3661
3754
  */
3662
3755
  firstUpdated() {
3663
- Js(this);
3756
+ is(this);
3664
3757
  }
3665
3758
  /**
3666
3759
  * Renders layer controls and tools with conditional display based on certain properties.
@@ -3669,30 +3762,30 @@ class ho extends nt {
3669
3762
  */
3670
3763
  render() {
3671
3764
  var l;
3672
- const n = this.layer.getVisible(), i = n ? "visible" : "", o = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", r = k(this, At, Me).call(this, "layerControlDisable") ? "disabled" : "", s = k(this, At, Me).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
3673
- return x`
3765
+ const n = this.layer.getVisible(), i = n ? "visible" : "", o = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", r = B(this, At, Ie).call(this, "layerControlDisable") ? "disabled" : "", a = B(this, At, Ie).call(this, "layerControlExclusive") ? "radio" : "checkbox", s = ((l = this.tools) == null ? void 0 : l.length) > 0;
3766
+ return E`
3674
3767
  <style>
3675
- ${D(this, Ge)}
3676
- ${!this.unstyled && D(this, Je)}
3768
+ ${P(this, tn)}
3769
+ ${!this.unstyled && P(this, en)}
3677
3770
  </style>
3678
- ${rt(
3771
+ ${K(
3679
3772
  this.layer,
3680
- () => x`
3773
+ () => E`
3681
3774
  <!-- Render the layer -->
3682
3775
  <div class="layer ${i} ${o}">
3683
3776
  <label class="drag-handle ${r}">
3684
3777
  <!-- Input element for layer visibility -->
3685
3778
  <input
3686
- type=${s}
3687
- .checked=${oo(n)}
3688
- @click=${k(this, At, po)}
3779
+ type=${a}
3780
+ .checked=${so(n)}
3781
+ @click=${B(this, At, bo)}
3689
3782
  />
3690
3783
 
3691
3784
  <!-- Layer title -->
3692
- <span class="title">${k(this, At, Me).call(this, this.titleProperty)}</span>
3693
- ${rt(
3694
- a,
3695
- () => x`<span class="tools-placeholder"></span>`
3785
+ <span class="title">${B(this, At, Ie).call(this, this.titleProperty)}</span>
3786
+ ${K(
3787
+ s,
3788
+ () => E`<span class="tools-placeholder"></span>`
3696
3789
  )}
3697
3790
  </label>
3698
3791
  </div>
@@ -3715,7 +3808,7 @@ At = new WeakSet(), /**
3715
3808
  * @param {string} key - The key for the layer property.
3716
3809
  * @returns {any} - The value of the layer property if exists, otherwise undefined.
3717
3810
  */
3718
- Me = function(n) {
3811
+ Ie = function(n) {
3719
3812
  var i;
3720
3813
  return (i = this.layer) == null ? void 0 : i.get(n);
3721
3814
  }, /**
@@ -3723,10 +3816,10 @@ Me = function(n) {
3723
3816
  *
3724
3817
  * @param {{target: { checked: boolean }}} evt - The input change event.
3725
3818
  */
3726
- po = function(n) {
3727
- Ks(n, this);
3728
- }, Ge = new WeakMap(), Je = new WeakMap(), // Define static properties for the component
3729
- H(ho, "properties", {
3819
+ bo = function(n) {
3820
+ os(n, this);
3821
+ }, tn = new WeakMap(), en = new WeakMap(), // Define static properties for the component
3822
+ N(yo, "properties", {
3730
3823
  layer: { attribute: !1 },
3731
3824
  map: { attribute: !1, state: !0 },
3732
3825
  titleProperty: { attribute: "title-property", type: String },
@@ -3735,13 +3828,13 @@ H(ho, "properties", {
3735
3828
  unstyled: { type: Boolean },
3736
3829
  noShadow: { type: Boolean }
3737
3830
  });
3738
- customElements.define("eox-layercontrol-layer", ho);
3739
- var Ke, Qe;
3740
- class fo extends nt {
3831
+ customElements.define("eox-layercontrol-layer", yo);
3832
+ var nn, on;
3833
+ class vo extends Q {
3741
3834
  constructor() {
3742
3835
  super();
3743
- T(this, Ke, "");
3744
- T(this, Qe, `
3836
+ T(this, nn, "");
3837
+ T(this, on, `
3745
3838
  details summary {
3746
3839
  cursor: pointer;
3747
3840
  display: flex;
@@ -3781,17 +3874,17 @@ class fo extends nt {
3781
3874
  */
3782
3875
  render() {
3783
3876
  var o, r;
3784
- const n = !!((o = this.group) != null && o.get("layerControlExpand")), i = (r = io(
3877
+ const n = !!((o = this.group) != null && o.get("layerControlExpand")), i = (r = ao(
3785
3878
  this.group.getLayers()
3786
3879
  )) == null ? void 0 : r.length;
3787
- return x`
3880
+ return E`
3788
3881
  <style>
3789
- ${D(this, Ke)}
3790
- ${!this.unstyled && D(this, Qe)}
3882
+ ${P(this, nn)}
3883
+ ${!this.unstyled && P(this, on)}
3791
3884
  </style>
3792
- ${rt(
3885
+ ${K(
3793
3886
  this.group,
3794
- () => x`
3887
+ () => E`
3795
3888
  <!-- Render the details element with the layer control -->
3796
3889
  <details
3797
3890
  open=${n || C}
@@ -3829,8 +3922,8 @@ class fo extends nt {
3829
3922
  `;
3830
3923
  }
3831
3924
  }
3832
- Ke = new WeakMap(), Qe = new WeakMap(), // Define static properties for the component
3833
- H(fo, "properties", {
3925
+ nn = new WeakMap(), on = new WeakMap(), // Define static properties for the component
3926
+ N(vo, "properties", {
3834
3927
  group: { attribute: !1 },
3835
3928
  idProperty: { attribute: "id-property" },
3836
3929
  map: { attribute: !1, state: !0 },
@@ -3842,30 +3935,30 @@ H(fo, "properties", {
3842
3935
  });
3843
3936
  customElements.define(
3844
3937
  "eox-layercontrol-layer-group",
3845
- fo
3938
+ vo
3846
3939
  );
3847
- const Qs = (e) => {
3848
- const { layers: t, idProperty: n, titleProperty: i, renderRoot: o } = e, r = ro(() => {
3940
+ const rs = (e) => {
3941
+ const { layers: t, idProperty: n, titleProperty: i, renderRoot: o } = e, r = lo(() => {
3849
3942
  e.requestUpdate(), e.dispatchEvent(
3850
3943
  new CustomEvent("changed", { bubbles: !0 })
3851
3944
  );
3852
- }, 50), s = () => r();
3853
- if (t && (t.hasListener("change:length") && (t == null || t.un("change:length", s)), t.on("change:length", s), t)) {
3854
- const a = o.querySelector("ul");
3855
- bs(
3945
+ }, 50), a = () => r();
3946
+ if (t && (t.hasListener("change:length") && (t == null || t.un("change:length", a)), t.on("change:length", a), t)) {
3947
+ const s = o.querySelector("ul");
3948
+ Sa(
3856
3949
  t,
3857
3950
  n,
3858
3951
  i,
3859
3952
  e
3860
- ), ys(a, t, n, e);
3953
+ ), $a(s, t, n, e);
3861
3954
  }
3862
3955
  };
3863
- var tn, en;
3864
- class go extends nt {
3956
+ var rn, an;
3957
+ class wo extends Q {
3865
3958
  constructor() {
3866
3959
  super();
3867
- T(this, tn, "");
3868
- T(this, en, `
3960
+ T(this, rn, "");
3961
+ T(this, an, `
3869
3962
  ul {
3870
3963
  padding: 0;
3871
3964
  margin: 0;
@@ -3900,7 +3993,7 @@ class go extends nt {
3900
3993
  * Executes specific logic after the initial render of the component.
3901
3994
  */
3902
3995
  firstUpdated() {
3903
- Qs(this);
3996
+ rs(this);
3904
3997
  }
3905
3998
  /**
3906
3999
  * Overrides createRenderRoot to handle shadow DOM creation based on the noShadow property.
@@ -3913,27 +4006,27 @@ class go extends nt {
3913
4006
  * layer groups or individual layers accordingly. Utilizes conditional rendering and iterates through available layers.
3914
4007
  */
3915
4008
  render() {
3916
- const n = this.layers ? io(this.layers).reverse() : [];
3917
- return x`
4009
+ const n = this.layers ? ao(this.layers).reverse() : [];
4010
+ return E`
3918
4011
  <style>
3919
- ${D(this, tn)}
3920
- ${!this.unstyled && D(this, en)}
4012
+ ${P(this, rn)}
4013
+ ${!this.unstyled && P(this, an)}
3921
4014
  </style>
3922
4015
  <ul>
3923
- ${rt(
4016
+ ${K(
3924
4017
  this.layers,
3925
- () => x`
3926
- ${Yo(
4018
+ () => E`
4019
+ ${Qo(
3927
4020
  n,
3928
4021
  (i) => i,
3929
- (i) => x`
4022
+ (i) => E`
3930
4023
  <li
3931
4024
  data-layer="${i.get(this.idProperty)}"
3932
- data-type="${ws(i, this.map)}"
4025
+ data-type="${Aa(i, this.map)}"
3933
4026
  >
3934
4027
  ${/** Checks if the layer is a group or individual layer and renders accordingly */
3935
4028
  /** @type {import("ol/layer").Group} */
3936
- i.getLayers ? x`
4029
+ i.getLayers ? E`
3937
4030
  <eox-layercontrol-layer-group
3938
4031
  .noShadow=${!0}
3939
4032
  .group=${i}
@@ -3946,7 +4039,7 @@ class go extends nt {
3946
4039
  @changed=${() => this.requestUpdate()}
3947
4040
  >
3948
4041
  </eox-layercontrol-layer-group>
3949
- ` : x`
4042
+ ` : E`
3950
4043
  <eox-layercontrol-layer
3951
4044
  .noShadow=${!0}
3952
4045
  .layer=${i}
@@ -3967,8 +4060,8 @@ class go extends nt {
3967
4060
  `;
3968
4061
  }
3969
4062
  }
3970
- tn = new WeakMap(), en = new WeakMap(), // Define static properties for the component
3971
- H(go, "properties", {
4063
+ rn = new WeakMap(), an = new WeakMap(), // Define static properties for the component
4064
+ N(wo, "properties", {
3972
4065
  idProperty: { attribute: "id-property" },
3973
4066
  layers: { attribute: !1 },
3974
4067
  map: { attribute: !1, state: !0 },
@@ -3978,11 +4071,11 @@ H(go, "properties", {
3978
4071
  unstyled: { type: Boolean },
3979
4072
  noShadow: { type: Boolean }
3980
4073
  });
3981
- customElements.define("eox-layercontrol-layer-list", go);
3982
- const ta = (e) => {
4074
+ customElements.define("eox-layercontrol-layer-list", wo);
4075
+ const as = (e) => {
3983
4076
  const t = e.querySelector(
3984
4077
  "select[name=optional]"
3985
- ), n = t ? t.value : null, i = Xn(
4078
+ ), n = t ? t.value : null, i = Wn(
3986
4079
  e.layers.getArray(),
3987
4080
  "layerControlOptional",
3988
4081
  !0
@@ -4001,11 +4094,11 @@ const ta = (e) => {
4001
4094
  )
4002
4095
  ), e.requestUpdate();
4003
4096
  };
4004
- var nn, yo;
4005
- class mo extends nt {
4097
+ var sn, xo;
4098
+ class Eo extends Q {
4006
4099
  constructor() {
4007
4100
  super();
4008
- T(this, nn);
4101
+ T(this, sn);
4009
4102
  this.idProperty = "id", this.layers = null, this.titleProperty = "title", this.unstyled = !1, this.noShadow = !1;
4010
4103
  }
4011
4104
  /**
@@ -4020,12 +4113,12 @@ class mo extends nt {
4020
4113
  * Generates dropdown options based on the extracted layer information.
4021
4114
  */
4022
4115
  render() {
4023
- const n = Xn(
4116
+ const n = Wn(
4024
4117
  this.layers.getArray(),
4025
4118
  "layerControlOptional",
4026
4119
  !0
4027
4120
  );
4028
- return x`
4121
+ return E`
4029
4122
  <!-- Label for the dropdown -->
4030
4123
  <label for="optional">Optional layers</label>
4031
4124
 
@@ -4038,24 +4131,24 @@ class mo extends nt {
4038
4131
 
4039
4132
  <!-- Mapping through filtered layers list to generate dropdown options -->
4040
4133
  ${n.map((i) => {
4041
- const o = i.get(this.idProperty) || i.ol_uid, r = i.get(this.titleProperty), s = `layer ${i.get(this.idProperty)}`;
4042
- return x` <option value="${o}">${r || s}</option> `;
4134
+ const o = i.get(this.idProperty) || i.ol_uid, r = i.get(this.titleProperty), a = `layer ${i.get(this.idProperty)}`;
4135
+ return E` <option value="${o}">${r || a}</option> `;
4043
4136
  })}
4044
4137
  </select>
4045
4138
 
4046
4139
  <!-- Button to handle adding layers -->
4047
- <button @click="${k(this, nn, yo)}">add</button>
4140
+ <button @click="${B(this, sn, xo)}">add</button>
4048
4141
  `;
4049
4142
  }
4050
4143
  }
4051
- nn = new WeakSet(), /**
4144
+ sn = new WeakSet(), /**
4052
4145
  * Handles the addition of selected layers to a list.
4053
4146
  * Invokes the 'addToListMethod' with the current context.
4054
4147
  */
4055
- yo = function() {
4056
- ta(this);
4148
+ xo = function() {
4149
+ as(this);
4057
4150
  }, // Define static properties for the component
4058
- H(mo, "properties", {
4151
+ N(Eo, "properties", {
4059
4152
  idProperty: { attribute: "id-property" },
4060
4153
  layers: { attribute: !1 },
4061
4154
  titleProperty: { attribute: "title-property", type: String },
@@ -4064,27 +4157,27 @@ H(mo, "properties", {
4064
4157
  });
4065
4158
  customElements.define(
4066
4159
  "eox-layercontrol-optional-list",
4067
- mo
4160
+ Eo
4068
4161
  );
4069
- const ea = (e, t) => {
4162
+ const ss = (e, t) => {
4070
4163
  t.jsonInput = e.target.value, t.requestUpdate();
4071
- }, bi = (e) => {
4164
+ }, Ei = (e) => {
4072
4165
  const t = JSON.parse(
4073
- `{"data":${ki(e.jsonInput)}}`
4166
+ `{"data":${ji(e.jsonInput)}}`
4074
4167
  );
4075
4168
  Array.isArray(t.data) ? t.data.forEach((n) => {
4076
4169
  e.eoxMap.addOrUpdateLayer(n);
4077
4170
  }) : e.eoxMap.addOrUpdateLayer(t.data), e.jsonInput = null, e.requestUpdate();
4078
- }, na = (e, t) => {
4171
+ }, ls = (e, t) => {
4079
4172
  t.urlInput = e.target.value, t.requestUpdate();
4080
4173
  };
4081
- async function ia(e) {
4174
+ async function us(e) {
4082
4175
  const t = e.urlInput;
4083
4176
  if (e.wmsCapabilities = null, e.searchLoad = !0, e.requestUpdate(), !t) return !1;
4084
- if (Fn(t) === "XYZ")
4177
+ if (zn(t) === "XYZ")
4085
4178
  return { Name: t };
4086
4179
  try {
4087
- const n = await Lr(t);
4180
+ const n = await zr(t);
4088
4181
  e.wmsCapabilities = n;
4089
4182
  } catch {
4090
4183
  } finally {
@@ -4092,8 +4185,8 @@ async function ia(e) {
4092
4185
  }
4093
4186
  return !1;
4094
4187
  }
4095
- const oa = (e, t) => {
4096
- const { Name: n } = e, i = Fn(t.urlInput) || "XYZ", o = {
4188
+ const ds = (e, t) => {
4189
+ const { Name: n } = e, i = zn(t.urlInput) || "XYZ", o = {
4097
4190
  type: "Tile",
4098
4191
  properties: {
4099
4192
  id: n,
@@ -4111,11 +4204,11 @@ const oa = (e, t) => {
4111
4204
  }
4112
4205
  };
4113
4206
  t.jsonInput = JSON.stringify(o);
4114
- }, ra = (e, t) => {
4207
+ }, cs = (e, t) => {
4115
4208
  t.open = e || null, t.urlInput = null, t.jsonInput = null, t.wmsCapabilities = null, t.requestUpdate();
4116
4209
  };
4117
- var F, vo, wo, In, Eo, xo, Ie, on, rn;
4118
- class bo extends nt {
4210
+ var F, So, _o, Vn, Ao, Co, He, ln, un;
4211
+ class $o extends Q {
4119
4212
  constructor() {
4120
4213
  super();
4121
4214
  T(this, F);
@@ -4124,32 +4217,32 @@ class bo extends nt {
4124
4217
  *
4125
4218
  * @type {String}
4126
4219
  */
4127
- H(this, "urlInput", null);
4220
+ N(this, "urlInput", null);
4128
4221
  /**
4129
4222
  * State for JSON Textarea - For EOxMap JSON
4130
4223
  *
4131
4224
  * @type {String}
4132
4225
  */
4133
- H(this, "jsonInput", null);
4226
+ N(this, "jsonInput", null);
4134
4227
  /**
4135
4228
  * State for add layer - consist of url/json
4136
4229
  *
4137
4230
  * @type {"url" | "json" | null}
4138
4231
  */
4139
- H(this, "open", null);
4232
+ N(this, "open", null);
4140
4233
  /**
4141
4234
  * Loader state when search is triggered
4142
4235
  *
4143
4236
  * @type {Boolean}
4144
4237
  */
4145
- H(this, "searchLoad", !1);
4238
+ N(this, "searchLoad", !1);
4146
4239
  /**
4147
4240
  * State for `WMS Capabilities JSON`
4148
4241
  *
4149
4242
  * @type {import("wms-capabilities").WMSCapabilitiesJSON}
4150
4243
  */
4151
- H(this, "wmsCapabilities", null);
4152
- T(this, on, `
4244
+ N(this, "wmsCapabilities", null);
4245
+ T(this, ln, `
4153
4246
  .eox-add-layer-main .open {
4154
4247
  position: relative;
4155
4248
  }
@@ -4157,7 +4250,7 @@ class bo extends nt {
4157
4250
  display: none;
4158
4251
  }
4159
4252
  `);
4160
- T(this, rn, `
4253
+ T(this, un, `
4161
4254
  .eox-add {
4162
4255
  background: #f0f2f5;
4163
4256
  border-top: 1px solid #0041701a;
@@ -4306,24 +4399,24 @@ class bo extends nt {
4306
4399
  * Handles input fields, search, and addition of layers.
4307
4400
  */
4308
4401
  render() {
4309
- const n = this.open ? "open" : "close", i = this.open === "url", o = this.open === "json", r = !kr(this.urlInput) || this.searchLoad ? !0 : C;
4310
- return x`
4402
+ const n = this.open ? "open" : "close", i = this.open === "url", o = this.open === "json", r = !Xr(this.urlInput) || this.searchLoad ? !0 : C;
4403
+ return E`
4311
4404
  <style>
4312
- ${D(this, on)}
4313
- ${!this.unstyled && D(this, rn)}
4405
+ ${P(this, ln)}
4406
+ ${!this.unstyled && P(this, un)}
4314
4407
  </style>
4315
4408
  <div class="eox-add-layer-main">
4316
4409
  <div class="eox-add-layer-col">
4317
4410
  <!-- Tabbed interface for URL and JSON -->
4318
4411
  <ul class="eox-add-layer-tab ${n}">
4319
4412
  <li
4320
- @click=${() => k(this, F, Ie).call(this, "url")}
4413
+ @click=${() => B(this, F, He).call(this, "url")}
4321
4414
  class="${i ? "active" : ""}"
4322
4415
  >
4323
4416
  URL
4324
4417
  </li>
4325
4418
  <li
4326
- @click=${() => k(this, F, Ie).call(this, "json")}
4419
+ @click=${() => B(this, F, He).call(this, "json")}
4327
4420
  class="${o ? "active" : ""}"
4328
4421
  >
4329
4422
  JSON
@@ -4333,13 +4426,13 @@ class bo extends nt {
4333
4426
  <!-- Button to toggle tabs -->
4334
4427
  <button
4335
4428
  class="add-icon icon"
4336
- @click=${() => k(this, F, Ie).call(this, this.open ? null : "url")}
4429
+ @click=${() => B(this, F, He).call(this, this.open ? null : "url")}
4337
4430
  >
4338
4431
  ${this.unstyled ? "Add Layer" : ""}
4339
4432
  </button>
4340
4433
  </div>
4341
4434
  <div class="eox-add ${n}">
4342
- ${i ? x`
4435
+ ${i ? E`
4343
4436
  <!-- Input field for URL -->
4344
4437
  <div class="eox-add-layer-col">
4345
4438
  <input
@@ -4347,33 +4440,33 @@ class bo extends nt {
4347
4440
  class="add-url"
4348
4441
  placeholder="Add URL (WMS/XYZ)"
4349
4442
  .value="${this.urlInput}"
4350
- @input=${k(this, F, vo)}
4443
+ @input=${B(this, F, So)}
4351
4444
  >
4352
4445
  </input>
4353
4446
  <!-- Search button for URL -->
4354
4447
  <button
4355
4448
  class="search-icon"
4356
4449
  disabled=${r}
4357
- @click=${k(this, F, wo)}
4450
+ @click=${B(this, F, _o)}
4358
4451
  >
4359
4452
  ${this.unstyled ? "Search" : ""}
4360
4453
  </button>
4361
4454
  </div>
4362
4455
 
4363
4456
  <!-- Display layers for WMS capabilities -->
4364
- ${this.wmsCapabilities ? x`<ul class="search-lists">
4457
+ ${this.wmsCapabilities ? E`<ul class="search-lists">
4365
4458
  ${this.wmsCapabilities.Capability.Layer.Layer.map(
4366
- (s) => {
4367
- const a = s.Name;
4368
- return x`
4459
+ (a) => {
4460
+ const s = a.Name;
4461
+ return E`
4369
4462
  <li class="search-list">
4370
- ${a}
4463
+ ${s}
4371
4464
  <!-- Button to add layer -->
4372
4465
  <button
4373
4466
  class="add-layer-icon icon"
4374
4467
  @click=${() => (
4375
4468
  //@ts-ignore
4376
- k(this, F, In).call(this, s)
4469
+ B(this, F, Vn).call(this, a)
4377
4470
  )}
4378
4471
  >
4379
4472
  ${this.unstyled ? "+" : ""}
@@ -4383,20 +4476,20 @@ class bo extends nt {
4383
4476
  }
4384
4477
  )}
4385
4478
  </ul>` : C}
4386
- ` : x`
4479
+ ` : E`
4387
4480
  <!-- Textarea for JSON input -->
4388
4481
  <textarea
4389
4482
  class="add-layer-input"
4390
4483
  placeholder="Please put a valid eox-map layer JSON."
4391
- @input=${k(this, F, xo)}
4484
+ @input=${B(this, F, Co)}
4392
4485
  .value=${this.jsonInput}
4393
4486
  ></textarea>
4394
4487
 
4395
4488
  <!-- Button to add JSON layer -->
4396
4489
  <button
4397
4490
  class="add-layer-icon json-add-layer"
4398
- disabled=${Ur(this.jsonInput) ? C : !0}
4399
- @click=${k(this, F, Eo)}
4491
+ disabled=${qr(this.jsonInput) ? C : !0}
4492
+ @click=${B(this, F, Ao)}
4400
4493
  >
4401
4494
  ${this.unstyled ? "Add JSON" : ""}
4402
4495
  </button>
@@ -4412,71 +4505,72 @@ F = new WeakSet(), /**
4412
4505
  *
4413
4506
  * @param {Event} evt - The input change event triggering the method.
4414
4507
  */
4415
- vo = function(n) {
4416
- na(n, this);
4417
- }, wo = async function() {
4418
- const n = await ia(this);
4419
- n && k(this, F, In).call(this, n);
4508
+ So = function(n) {
4509
+ ls(n, this);
4510
+ }, _o = async function() {
4511
+ const n = await us(this);
4512
+ n && B(this, F, Vn).call(this, n);
4420
4513
  }, /**
4421
4514
  * Handles input field changes by triggering layer processing and adding layers.
4422
4515
  *
4423
4516
  * @param {{"Name": string}} layer - The layer information triggering the method.
4424
4517
  */
4425
- In = function(n) {
4426
- oa(n, this), bi(this);
4518
+ Vn = function(n) {
4519
+ ds(n, this), Ei(this);
4427
4520
  }, /**
4428
4521
  * Initiates the addition of layers, triggering the handleAddLayerMethod.
4429
4522
  */
4430
- Eo = function() {
4431
- bi(this);
4523
+ Ao = function() {
4524
+ Ei(this);
4432
4525
  }, /**
4433
4526
  * Handles input field changes by invoking the 'handleJsonInputChangeMethod'.
4434
4527
  *
4435
4528
  * @param {{target: { value: string }}} evt - The input change event triggering the method.
4436
4529
  */
4437
- xo = function(n) {
4438
- ea(n, this);
4530
+ Co = function(n) {
4531
+ ss(n, this);
4439
4532
  }, /**
4440
4533
  * Handles tab changes by invoking the 'openCloseTabMethod'.
4441
4534
  *
4442
4535
  * @param {"url" | "json" | null} tab - The tab identifier triggering the method.
4443
4536
  */
4444
- Ie = function(n) {
4445
- ra(n, this);
4446
- }, on = new WeakMap(), rn = new WeakMap(), // Define static properties for the component
4447
- H(bo, "properties", {
4537
+ He = function(n) {
4538
+ cs(n, this);
4539
+ }, ln = new WeakMap(), un = new WeakMap(), // Define static properties for the component
4540
+ N($o, "properties", {
4448
4541
  eoxMap: { attribute: !1, state: !0 },
4449
4542
  unstyled: { type: Boolean },
4450
4543
  noShadow: { type: Boolean }
4451
4544
  });
4452
- customElements.define("eox-layercontrol-add-layers", bo);
4453
- const sa = (e, t) => {
4545
+ customElements.define("eox-layercontrol-add-layers", $o);
4546
+ const hs = (e, t) => {
4454
4547
  if (t.requestUpdate(), e.target.tagName === "EOX-LAYERCONTROL-LAYER-TOOLS") {
4455
4548
  const n = t.renderRoot.querySelector(
4456
4549
  "eox-layercontrol-optional-list"
4457
4550
  );
4458
4551
  n == null || n.requestUpdate();
4459
4552
  }
4460
- }, aa = (e) => {
4553
+ }, ps = (e) => {
4461
4554
  let t;
4462
- return typeof e == "string" ? t = document.querySelector(e) : t = e, t;
4463
- }, la = (e) => {
4464
- const t = aa(e.for);
4555
+ return typeof e == "string" ? t = /** @type {HTMLElement} */
4556
+ document.querySelector(e) : t = e, t;
4557
+ }, fs = (e) => {
4558
+ const t = ps(e.for);
4465
4559
  return t && t.map !== e.map && (e.map = t.map), t;
4466
4560
  };
4467
- var zt, sn, $o, an;
4468
- class So extends nt {
4561
+ var Zt, Xt, Po, Do, dn;
4562
+ class To extends Q {
4469
4563
  // Constructor to set default values for properties
4470
4564
  constructor() {
4471
4565
  super();
4472
- T(this, sn);
4566
+ T(this, Xt);
4473
4567
  /**
4474
4568
  * Instance of `eox-map` which is a wrapper for the OL
4475
4569
  *
4476
4570
  * @type {import("../../map/main").EOxMap}
4477
4571
  */
4478
- T(this, zt);
4479
- T(this, an, "* { font-family: Roboto, sans-serif; }");
4572
+ T(this, Zt);
4573
+ T(this, dn, "* { font-family: Roboto, sans-serif; }");
4480
4574
  this.for = "eox-map", this.idProperty = "id", this.map = null, this.titleProperty = "title", this.showLayerZoomState = !1, this.tools = ["info", "opacity", "config", "remove", "sort"], this.addExternalLayers = !1, this.unstyled = !1, this.styleOverride = "";
4481
4575
  }
4482
4576
  /**
@@ -4484,33 +4578,33 @@ class So extends nt {
4484
4578
  * Updated #eoxMap after first update.
4485
4579
  */
4486
4580
  firstUpdated() {
4487
- Jt(this, zt, la(this));
4581
+ Kt(this, Zt, fs(this));
4488
4582
  }
4489
4583
  render() {
4490
- var o, r, s;
4491
- const n = (o = this.map) == null ? void 0 : o.getLayers().getArray(), i = n && ((r = Xn(n, "layerControlOptional", !0)) == null ? void 0 : r.length) > 0;
4492
- return x`
4584
+ var o, r, a;
4585
+ const n = (o = this.map) == null ? void 0 : o.getLayers().getArray(), i = n && ((r = Wn(n, "layerControlOptional", !0)) == null ? void 0 : r.length) > 0;
4586
+ return E`
4493
4587
  <style>
4494
- ${!this.unstyled && D(this, an)}
4588
+ ${!this.unstyled && P(this, dn)}
4495
4589
  ${this.styleOverride}
4496
4590
  </style>
4497
4591
 
4498
4592
  <!-- Conditional rendering of add layers component -->
4499
- ${rt(
4500
- this.addExternalLayers && ((s = D(this, zt)) == null ? void 0 : s.addOrUpdateLayer),
4501
- () => x`
4593
+ ${K(
4594
+ this.addExternalLayers && ((a = P(this, Zt)) == null ? void 0 : a.addOrUpdateLayer),
4595
+ () => E`
4502
4596
  <eox-layercontrol-add-layers
4503
4597
  .noShadow=${!0}
4504
- .eoxMap=${D(this, zt)}
4598
+ .eoxMap=${P(this, Zt)}
4505
4599
  .unstyled=${this.unstyled}
4506
4600
  ></eox-layercontrol-add-layers>
4507
4601
  `
4508
4602
  )}
4509
4603
 
4510
4604
  <!-- Conditional rendering of layer list component -->
4511
- ${rt(
4605
+ ${K(
4512
4606
  this.map,
4513
- () => x`
4607
+ () => E`
4514
4608
  <eox-layercontrol-layer-list
4515
4609
  .noShadow=${!0}
4516
4610
  class="layers"
@@ -4521,15 +4615,16 @@ class So extends nt {
4521
4615
  .showLayerZoomState=${this.showLayerZoomState}
4522
4616
  .tools=${this.tools}
4523
4617
  .unstyled=${this.unstyled}
4524
- @changed=${k(this, sn, $o)}
4618
+ @changed=${B(this, Xt, Po)}
4619
+ @datetime:updated=${B(this, Xt, Do)}
4525
4620
  ></eox-layercontrol-layer-list>
4526
4621
  `
4527
4622
  )}
4528
4623
 
4529
4624
  <!-- Conditional rendering of optional list component -->
4530
- ${rt(
4625
+ ${K(
4531
4626
  i,
4532
- () => x`
4627
+ () => E`
4533
4628
  <eox-layercontrol-optional-list
4534
4629
  .noShadow=${!0}
4535
4630
  .idProperty=${this.idProperty}
@@ -4542,15 +4637,23 @@ class So extends nt {
4542
4637
  `;
4543
4638
  }
4544
4639
  }
4545
- zt = new WeakMap(), sn = new WeakSet(), /**
4640
+ Zt = new WeakMap(), Xt = new WeakSet(), /**
4546
4641
  * Event handler for changes in the layer list
4547
4642
  *
4548
4643
  * @param {CustomEvent & {target: Element}} evt
4549
4644
  */
4550
- $o = function(n) {
4551
- sa(n, this), this.dispatchEvent(new CustomEvent("layerchange", { detail: n.detail }));
4552
- }, an = new WeakMap(), // Define static properties for the component
4553
- H(So, "properties", {
4645
+ Po = function(n) {
4646
+ hs(n, this), this.dispatchEvent(new CustomEvent("layerchange", { detail: n.detail }));
4647
+ }, /**
4648
+ * Dispatches datetime updates from layer datetime to the layercontrol
4649
+ * @param {CustomEvent} evt
4650
+ */
4651
+ Do = function(n) {
4652
+ this.dispatchEvent(
4653
+ new CustomEvent("datetime:updated", { detail: n.detail })
4654
+ );
4655
+ }, dn = new WeakMap(), // Define static properties for the component
4656
+ N(To, "properties", {
4554
4657
  for: { type: String },
4555
4658
  idProperty: { attribute: "id-property" },
4556
4659
  map: { attribute: !1, state: !0 },
@@ -4561,7 +4664,7 @@ H(So, "properties", {
4561
4664
  unstyled: { type: Boolean },
4562
4665
  styleOverride: { type: String }
4563
4666
  });
4564
- customElements.define("eox-layercontrol", So);
4667
+ customElements.define("eox-layercontrol", To);
4565
4668
  export {
4566
- So as EOxLayerControl
4669
+ To as EOxLayerControl
4567
4670
  };