@eox/layercontrol 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,7 +40,7 @@ const Ri = (i) => new Bi(typeof i == "string" ? i : i + "", void 0, ri), Ui = (i
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
41
  */
42
42
  var ae;
43
- const Zt = window, ke = Zt.trustedTypes, Fi = ke ? ke.emptyScript : "", Ve = Zt.reactiveElementPolyfillSupport, Ee = { toAttribute(i, t) {
43
+ const qt = window, ke = qt.trustedTypes, Fi = ke ? ke.emptyScript : "", Ve = qt.reactiveElementPolyfillSupport, Ee = { toAttribute(i, t) {
44
44
  switch (t) {
45
45
  case Boolean:
46
46
  i = i ? Fi : null;
@@ -248,23 +248,23 @@ let ft = class extends HTMLElement {
248
248
  firstUpdated(t) {
249
249
  }
250
250
  };
251
- ft[we] = !0, ft.elementProperties = /* @__PURE__ */ new Map(), ft.elementStyles = [], ft.shadowRootOptions = { mode: "open" }, Ve == null || Ve({ ReactiveElement: ft }), ((ae = Zt.reactiveElementVersions) !== null && ae !== void 0 ? ae : Zt.reactiveElementVersions = []).push("1.6.2");
251
+ ft[we] = !0, ft.elementProperties = /* @__PURE__ */ new Map(), ft.elementStyles = [], ft.shadowRootOptions = { mode: "open" }, Ve == null || Ve({ ReactiveElement: ft }), ((ae = qt.reactiveElementVersions) !== null && ae !== void 0 ? ae : qt.reactiveElementVersions = []).push("1.6.2");
252
252
  /**
253
253
  * @license
254
254
  * Copyright 2017 Google LLC
255
255
  * SPDX-License-Identifier: BSD-3-Clause
256
256
  */
257
257
  var le;
258
- const qt = window, bt = qt.trustedTypes, Be = bt ? bt.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Kt = "$lit$", G = `lit$${(Math.random() + "").slice(9)}$`, De = "?" + G, zi = `<${De}>`, dt = document, Pt = () => dt.createComment(""), It = (i) => i === null || typeof i != "object" && typeof i != "function", ai = Array.isArray, si = (i) => ai(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", de = `[
258
+ const Zt = window, bt = Zt.trustedTypes, Be = bt ? bt.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Kt = "$lit$", G = `lit$${(Math.random() + "").slice(9)}$`, De = "?" + G, zi = `<${De}>`, dt = document, It = () => dt.createComment(""), Pt = (i) => i === null || typeof i != "object" && typeof i != "function", ai = Array.isArray, si = (i) => ai(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", de = `[
259
259
  \f\r]`, St = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Re = /-->/g, Ue = />/g, it = RegExp(`>|${de}(?:([^\\s"'>=/]+)(${de}*=${de}*(?:[^
260
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Fe = /'/g, ze = /"/g, li = /^(?:script|style|textarea|title)$/i, ji = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), L = ji(1), z = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), je = /* @__PURE__ */ new WeakMap(), lt = dt.createTreeWalker(dt, 129, null, !1), di = (i, t) => {
260
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Fe = /'/g, ze = /"/g, li = /^(?:script|style|textarea|title)$/i, ji = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), O = ji(1), z = Symbol.for("lit-noChange"), _ = Symbol.for("lit-nothing"), je = /* @__PURE__ */ new WeakMap(), lt = dt.createTreeWalker(dt, 129, null, !1), di = (i, t) => {
261
261
  const e = i.length - 1, n = [];
262
262
  let r, o = t === 2 ? "<svg>" : "", a = St;
263
263
  for (let s = 0; s < e; s++) {
264
264
  const d = i[s];
265
- let p, h, c = -1, m = 0;
266
- for (; m < d.length && (a.lastIndex = m, h = a.exec(d), h !== null); )
267
- m = a.lastIndex, a === St ? h[1] === "!--" ? a = Re : h[1] !== void 0 ? a = Ue : h[2] !== void 0 ? (li.test(h[2]) && (r = RegExp("</" + h[2], "g")), a = it) : h[3] !== void 0 && (a = it) : a === it ? h[0] === ">" ? (a = r ?? St, c = -1) : h[1] === void 0 ? c = -2 : (c = a.lastIndex - h[2].length, p = h[1], a = h[3] === void 0 ? it : h[3] === '"' ? ze : Fe) : a === ze || a === Fe ? a = it : a === Re || a === Ue ? a = St : (a = it, r = void 0);
265
+ let p, u, c = -1, m = 0;
266
+ for (; m < d.length && (a.lastIndex = m, u = a.exec(d), u !== null); )
267
+ m = a.lastIndex, a === St ? u[1] === "!--" ? a = Re : u[1] !== void 0 ? a = Ue : u[2] !== void 0 ? (li.test(u[2]) && (r = RegExp("</" + u[2], "g")), a = it) : u[3] !== void 0 && (a = it) : a === it ? u[0] === ">" ? (a = r ?? St, c = -1) : u[1] === void 0 ? c = -2 : (c = a.lastIndex - u[2].length, p = u[1], a = u[3] === void 0 ? it : u[3] === '"' ? ze : Fe) : a === ze || a === Fe ? a = it : a === Re || a === Ue ? a = St : (a = it, r = void 0);
268
268
  const f = a === it && i[s + 1].startsWith("/>") ? " " : "";
269
269
  o += a === St ? d + zi : c >= 0 ? (n.push(p), d.slice(0, c) + Kt + d.slice(c) + G + f) : d + G + (c === -2 ? (n.push(void 0), s) : f);
270
270
  }
@@ -280,41 +280,41 @@ class Mt {
280
280
  let o = 0, a = 0;
281
281
  const l = t.length - 1, s = this.parts, [d, p] = di(t, e);
282
282
  if (this.el = Mt.createElement(d, n), lt.currentNode = this.el.content, e === 2) {
283
- const h = this.el.content, c = h.firstChild;
284
- c.remove(), h.append(...c.childNodes);
283
+ const u = this.el.content, c = u.firstChild;
284
+ c.remove(), u.append(...c.childNodes);
285
285
  }
286
286
  for (; (r = lt.nextNode()) !== null && s.length < l; ) {
287
287
  if (r.nodeType === 1) {
288
288
  if (r.hasAttributes()) {
289
- const h = [];
289
+ const u = [];
290
290
  for (const c of r.getAttributeNames())
291
291
  if (c.endsWith(Kt) || c.startsWith(G)) {
292
292
  const m = p[a++];
293
- if (h.push(c), m !== void 0) {
293
+ if (u.push(c), m !== void 0) {
294
294
  const f = r.getAttribute(m.toLowerCase() + Kt).split(G), v = /([.?@])?(.*)/.exec(m);
295
- s.push({ type: 1, index: o, name: v[2], strings: f, ctor: v[1] === "." ? hi : v[1] === "?" ? ci : v[1] === "@" ? pi : Nt });
295
+ s.push({ type: 1, index: o, name: v[2], strings: f, ctor: v[1] === "." ? ui : v[1] === "?" ? ci : v[1] === "@" ? pi : Nt });
296
296
  } else
297
297
  s.push({ type: 6, index: o });
298
298
  }
299
- for (const c of h)
299
+ for (const c of u)
300
300
  r.removeAttribute(c);
301
301
  }
302
302
  if (li.test(r.tagName)) {
303
- const h = r.textContent.split(G), c = h.length - 1;
303
+ const u = r.textContent.split(G), c = u.length - 1;
304
304
  if (c > 0) {
305
305
  r.textContent = bt ? bt.emptyScript : "";
306
306
  for (let m = 0; m < c; m++)
307
- r.append(h[m], Pt()), lt.nextNode(), s.push({ type: 2, index: ++o });
308
- r.append(h[c], Pt());
307
+ r.append(u[m], It()), lt.nextNode(), s.push({ type: 2, index: ++o });
308
+ r.append(u[c], It());
309
309
  }
310
310
  }
311
311
  } else if (r.nodeType === 8)
312
312
  if (r.data === De)
313
313
  s.push({ type: 2, index: o });
314
314
  else {
315
- let h = -1;
316
- for (; (h = r.data.indexOf(G, h + 1)) !== -1; )
317
- s.push({ type: 7, index: o }), h += G.length - 1;
315
+ let u = -1;
316
+ for (; (u = r.data.indexOf(G, u + 1)) !== -1; )
317
+ s.push({ type: 7, index: o }), u += G.length - 1;
318
318
  }
319
319
  o++;
320
320
  }
@@ -324,15 +324,15 @@ class Mt {
324
324
  return n.innerHTML = t, n;
325
325
  }
326
326
  }
327
- function ut(i, t, e = i, n) {
327
+ function ht(i, t, e = i, n) {
328
328
  var r, o, a, l;
329
329
  if (t === z)
330
330
  return t;
331
331
  let s = n !== void 0 ? (r = e._$Co) === null || r === void 0 ? void 0 : r[n] : e._$Cl;
332
- const d = It(t) ? void 0 : t._$litDirective$;
333
- return (s == null ? void 0 : s.constructor) !== d && ((o = s == null ? void 0 : s._$AO) === null || o === void 0 || o.call(s, !1), d === void 0 ? s = void 0 : (s = new d(i), s._$AT(i, e, n)), n !== void 0 ? ((a = (l = e)._$Co) !== null && a !== void 0 ? a : l._$Co = [])[n] = s : e._$Cl = s), s !== void 0 && (t = ut(i, s._$AS(i, t.values), s, n)), t;
332
+ const d = Pt(t) ? void 0 : t._$litDirective$;
333
+ return (s == null ? void 0 : s.constructor) !== d && ((o = s == null ? void 0 : s._$AO) === null || o === void 0 || o.call(s, !1), d === void 0 ? s = void 0 : (s = new d(i), s._$AT(i, e, n)), n !== void 0 ? ((a = (l = e)._$Co) !== null && a !== void 0 ? a : l._$Co = [])[n] = s : e._$Cl = s), s !== void 0 && (t = ht(i, s._$AS(i, t.values), s, n)), t;
334
334
  }
335
- class ui {
335
+ class hi {
336
336
  constructor(t, e) {
337
337
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
338
338
  }
@@ -365,7 +365,7 @@ class ui {
365
365
  class Et {
366
366
  constructor(t, e, n, r) {
367
367
  var o;
368
- this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, this.options = r, this._$Cp = (o = r == null ? void 0 : r.isConnected) === null || o === void 0 || o;
368
+ this.type = 2, this._$AH = _, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, this.options = r, this._$Cp = (o = r == null ? void 0 : r.isConnected) === null || o === void 0 || o;
369
369
  }
370
370
  get _$AU() {
371
371
  var t, e;
@@ -383,7 +383,7 @@ class Et {
383
383
  return this._$AB;
384
384
  }
385
385
  _$AI(t, e = this) {
386
- t = ut(this, t, e), It(t) ? t === E || t == null || t === "" ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== z && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : si(t) ? this.T(t) : this._(t);
386
+ t = ht(this, t, e), Pt(t) ? t === _ || t == null || t === "" ? (this._$AH !== _ && this._$AR(), this._$AH = _) : t !== this._$AH && t !== z && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : si(t) ? this.T(t) : this._(t);
387
387
  }
388
388
  k(t) {
389
389
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -392,7 +392,7 @@ class Et {
392
392
  this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
393
393
  }
394
394
  _(t) {
395
- this._$AH !== E && It(this._$AH) ? this._$AA.nextSibling.data = t : this.$(dt.createTextNode(t)), this._$AH = t;
395
+ this._$AH !== _ && Pt(this._$AH) ? this._$AA.nextSibling.data = t : this.$(dt.createTextNode(t)), this._$AH = t;
396
396
  }
397
397
  g(t) {
398
398
  var e;
@@ -400,7 +400,7 @@ class Et {
400
400
  if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === o)
401
401
  this._$AH.v(n);
402
402
  else {
403
- const a = new ui(o, this), l = a.u(this.options);
403
+ const a = new hi(o, this), l = a.u(this.options);
404
404
  a.v(n), this.$(l), this._$AH = a;
405
405
  }
406
406
  }
@@ -413,7 +413,7 @@ class Et {
413
413
  const e = this._$AH;
414
414
  let n, r = 0;
415
415
  for (const o of t)
416
- r === e.length ? e.push(n = new Et(this.k(Pt()), this.k(Pt()), this, this.options)) : n = e[r], n._$AI(o), r++;
416
+ r === e.length ? e.push(n = new Et(this.k(It()), this.k(It()), this, this.options)) : n = e[r], n._$AI(o), r++;
417
417
  r < e.length && (this._$AR(n && n._$AB.nextSibling, r), e.length = r);
418
418
  }
419
419
  _$AR(t = this._$AA.nextSibling, e) {
@@ -430,7 +430,7 @@ class Et {
430
430
  }
431
431
  class Nt {
432
432
  constructor(t, e, n, r, o) {
433
- this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = o, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = E;
433
+ this.type = 1, this._$AH = _, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = o, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = _;
434
434
  }
435
435
  get tagName() {
436
436
  return this.element.tagName;
@@ -442,25 +442,25 @@ class Nt {
442
442
  const o = this.strings;
443
443
  let a = !1;
444
444
  if (o === void 0)
445
- t = ut(this, t, e, 0), a = !It(t) || t !== this._$AH && t !== z, a && (this._$AH = t);
445
+ t = ht(this, t, e, 0), a = !Pt(t) || t !== this._$AH && t !== z, a && (this._$AH = t);
446
446
  else {
447
447
  const l = t;
448
448
  let s, d;
449
449
  for (t = o[0], s = 0; s < o.length - 1; s++)
450
- d = ut(this, l[n + s], e, s), d === z && (d = this._$AH[s]), a || (a = !It(d) || d !== this._$AH[s]), d === E ? t = E : t !== E && (t += (d ?? "") + o[s + 1]), this._$AH[s] = d;
450
+ d = ht(this, l[n + s], e, s), d === z && (d = this._$AH[s]), a || (a = !Pt(d) || d !== this._$AH[s]), d === _ ? t = _ : t !== _ && (t += (d ?? "") + o[s + 1]), this._$AH[s] = d;
451
451
  }
452
452
  a && !r && this.j(t);
453
453
  }
454
454
  j(t) {
455
- t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
455
+ t === _ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
456
456
  }
457
457
  }
458
- class hi extends Nt {
458
+ class ui extends Nt {
459
459
  constructor() {
460
460
  super(...arguments), this.type = 3;
461
461
  }
462
462
  j(t) {
463
- this.element[this.name] = t === E ? void 0 : t;
463
+ this.element[this.name] = t === _ ? void 0 : t;
464
464
  }
465
465
  }
466
466
  const Xi = bt ? bt.emptyScript : "";
@@ -469,7 +469,7 @@ class ci extends Nt {
469
469
  super(...arguments), this.type = 4;
470
470
  }
471
471
  j(t) {
472
- t && t !== E ? this.element.setAttribute(this.name, Xi) : this.element.removeAttribute(this.name);
472
+ t && t !== _ ? this.element.setAttribute(this.name, Xi) : this.element.removeAttribute(this.name);
473
473
  }
474
474
  }
475
475
  class pi extends Nt {
@@ -478,9 +478,9 @@ class pi extends Nt {
478
478
  }
479
479
  _$AI(t, e = this) {
480
480
  var n;
481
- if ((t = (n = ut(this, t, e, 0)) !== null && n !== void 0 ? n : E) === z)
481
+ if ((t = (n = ht(this, t, e, 0)) !== null && n !== void 0 ? n : _) === z)
482
482
  return;
483
- const r = this._$AH, o = t === E && r !== E || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, a = t !== E && (r === E || o);
483
+ const r = this._$AH, o = t === _ && r !== _ || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, a = t !== _ && (r === _ || o);
484
484
  o && this.element.removeEventListener(this.name, this, r), a && this.element.addEventListener(this.name, this, t), this._$AH = t;
485
485
  }
486
486
  handleEvent(t) {
@@ -496,18 +496,18 @@ class fi {
496
496
  return this._$AM._$AU;
497
497
  }
498
498
  _$AI(t) {
499
- ut(this, t);
499
+ ht(this, t);
500
500
  }
501
501
  }
502
- const Yi = { O: Kt, P: G, A: De, C: 1, M: di, L: ui, D: si, R: ut, I: Et, V: Nt, H: ci, N: pi, U: hi, F: fi }, Xe = qt.litHtmlPolyfillSupport;
503
- Xe == null || Xe(Mt, Et), ((le = qt.litHtmlVersions) !== null && le !== void 0 ? le : qt.litHtmlVersions = []).push("2.7.4");
502
+ const Yi = { O: Kt, P: G, A: De, C: 1, M: di, L: hi, D: si, R: ht, I: Et, V: Nt, H: ci, N: pi, U: ui, F: fi }, Xe = Zt.litHtmlPolyfillSupport;
503
+ Xe == null || Xe(Mt, Et), ((le = Zt.litHtmlVersions) !== null && le !== void 0 ? le : Zt.litHtmlVersions = []).push("2.7.4");
504
504
  const Wi = (i, t, e) => {
505
505
  var n, r;
506
506
  const o = (n = e == null ? void 0 : e.renderBefore) !== null && n !== void 0 ? n : t;
507
507
  let a = o._$litPart$;
508
508
  if (a === void 0) {
509
509
  const l = (r = e == null ? void 0 : e.renderBefore) !== null && r !== void 0 ? r : null;
510
- o._$litPart$ = a = new Et(t.insertBefore(Pt(), l), l, void 0, e ?? {});
510
+ o._$litPart$ = a = new Et(t.insertBefore(It(), l), l, void 0, e ?? {});
511
511
  }
512
512
  return a._$AI(i), a;
513
513
  };
@@ -516,7 +516,7 @@ const Wi = (i, t, e) => {
516
516
  * Copyright 2017 Google LLC
517
517
  * SPDX-License-Identifier: BSD-3-Clause
518
518
  */
519
- var ue, he;
519
+ var he, ue;
520
520
  let vt = class extends ft {
521
521
  constructor() {
522
522
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
@@ -542,10 +542,10 @@ let vt = class extends ft {
542
542
  return z;
543
543
  }
544
544
  };
545
- vt.finalized = !0, vt._$litElement$ = !0, (ue = globalThis.litElementHydrateSupport) === null || ue === void 0 || ue.call(globalThis, { LitElement: vt });
545
+ vt.finalized = !0, vt._$litElement$ = !0, (he = globalThis.litElementHydrateSupport) === null || he === void 0 || he.call(globalThis, { LitElement: vt });
546
546
  const Ye = globalThis.litElementPolyfillSupport;
547
547
  Ye == null || Ye({ LitElement: vt });
548
- ((he = globalThis.litElementVersions) !== null && he !== void 0 ? he : globalThis.litElementVersions = []).push("3.3.2");
548
+ ((ue = globalThis.litElementVersions) !== null && ue !== void 0 ? ue : globalThis.litElementVersions = []).push("3.3.2");
549
549
  /**
550
550
  * @license
551
551
  * Copyright 2017 Google LLC
@@ -568,11 +568,11 @@ const Gi = (i, t) => t.kind === "method" && t.descriptor && !("value" in t.descr
568
568
  typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
569
569
  }, finisher(e) {
570
570
  e.createProperty(t.key, i);
571
- } }, Zi = (i, t, e) => {
571
+ } }, qi = (i, t, e) => {
572
572
  t.constructor.createProperty(e, i);
573
573
  };
574
574
  function M(i) {
575
- return (t, e) => e !== void 0 ? Zi(i, t, e) : Gi(i, t);
575
+ return (t, e) => e !== void 0 ? qi(i, t, e) : Gi(i, t);
576
576
  }
577
577
  /**
578
578
  * @license
@@ -616,12 +616,12 @@ class vi {
616
616
  * Copyright 2020 Google LLC
617
617
  * SPDX-License-Identifier: BSD-3-Clause
618
618
  */
619
- const { I: qi } = Yi, Ki = (i) => i.strings === void 0, We = () => document.createComment(""), Dt = (i, t, e) => {
619
+ const { I: Zi } = Yi, Ki = (i) => i.strings === void 0, We = () => document.createComment(""), Dt = (i, t, e) => {
620
620
  var n;
621
621
  const r = i._$AA.parentNode, o = t === void 0 ? i._$AB : t._$AA;
622
622
  if (e === void 0) {
623
623
  const a = r.insertBefore(We(), o), l = r.insertBefore(We(), o);
624
- e = new qi(a, l, i, i.options);
624
+ e = new Zi(a, l, i, i.options);
625
625
  } else {
626
626
  const a = e._$AB.nextSibling, l = e._$AM, s = l !== i;
627
627
  if (s) {
@@ -637,7 +637,7 @@ const { I: qi } = Yi, Ki = (i) => i.strings === void 0, We = () => document.crea
637
637
  }
638
638
  }
639
639
  return e;
640
- }, nt = (i, t, e = i) => (i._$AI(t, e), i), Qi = {}, yi = (i, t = Qi) => i._$AH = t, Ji = (i) => i._$AH, pe = (i) => {
640
+ }, nt = (i, t, e = i) => (i._$AI(t, e), i), Ji = {}, yi = (i, t = Ji) => i._$AH = t, Qi = (i) => i._$AH, pe = (i) => {
641
641
  var t;
642
642
  (t = i._$AP) === null || t === void 0 || t.call(i, !1, !0);
643
643
  let e = i._$AA;
@@ -676,11 +676,11 @@ const Ge = (i, t, e) => {
676
676
  }
677
677
  update(i, [t, e, n]) {
678
678
  var r;
679
- const o = Ji(i), { values: a, keys: l } = this.dt(t, e, n);
679
+ const o = Qi(i), { values: a, keys: l } = this.dt(t, e, n);
680
680
  if (!Array.isArray(o))
681
681
  return this.ht = l, a;
682
682
  const s = (r = this.ht) !== null && r !== void 0 ? r : this.ht = [], d = [];
683
- let p, h, c = 0, m = o.length - 1, f = 0, v = a.length - 1;
683
+ let p, u, c = 0, m = o.length - 1, f = 0, v = a.length - 1;
684
684
  for (; c <= m && f <= v; )
685
685
  if (o[c] === null)
686
686
  c++;
@@ -694,12 +694,12 @@ const Ge = (i, t, e) => {
694
694
  d[v] = nt(o[c], a[v]), Dt(i, d[v + 1], o[c]), c++, v--;
695
695
  else if (s[m] === l[f])
696
696
  d[f] = nt(o[m], a[f]), Dt(i, o[c], o[m]), m--, f++;
697
- else if (p === void 0 && (p = Ge(l, f, v), h = Ge(s, c, m)), p.has(s[c]))
697
+ else if (p === void 0 && (p = Ge(l, f, v), u = Ge(s, c, m)), p.has(s[c]))
698
698
  if (p.has(s[m])) {
699
- const S = h.get(l[f]), U = S !== void 0 ? o[S] : null;
699
+ const S = u.get(l[f]), U = S !== void 0 ? o[S] : null;
700
700
  if (U === null) {
701
- const O = Dt(i, o[c]);
702
- nt(O, a[f]), d[f] = O;
701
+ const H = Dt(i, o[c]);
702
+ nt(H, a[f]), d[f] = H;
703
703
  } else
704
704
  d[f] = nt(U, a[f]), Dt(i, o[c], U), o[S] = null;
705
705
  f++;
@@ -734,7 +734,7 @@ const $e = mi(class extends vi {
734
734
  return i;
735
735
  }
736
736
  update(i, [t]) {
737
- if (t === z || t === E)
737
+ if (t === z || t === _)
738
738
  return t;
739
739
  const e = i.element, n = i.name;
740
740
  if (i.type === at.PROPERTY) {
@@ -762,7 +762,7 @@ function bi(i, t, e) {
762
762
  * @author owenm <owen23355@gmail.com>
763
763
  * @license MIT
764
764
  */
765
- function Ze(i, t) {
765
+ function qe(i, t) {
766
766
  var e = Object.keys(i);
767
767
  if (Object.getOwnPropertySymbols) {
768
768
  var n = Object.getOwnPropertySymbols(i);
@@ -775,9 +775,9 @@ function Ze(i, t) {
775
775
  function X(i) {
776
776
  for (var t = 1; t < arguments.length; t++) {
777
777
  var e = arguments[t] != null ? arguments[t] : {};
778
- t % 2 ? Ze(Object(e), !0).forEach(function(n) {
778
+ t % 2 ? qe(Object(e), !0).forEach(function(n) {
779
779
  tn(i, n, e[n]);
780
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(e)) : Ze(Object(e)).forEach(function(n) {
780
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(e)) : qe(Object(e)).forEach(function(n) {
781
781
  Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(e, n));
782
782
  });
783
783
  }
@@ -799,15 +799,15 @@ function tn(i, t, e) {
799
799
  writable: !0
800
800
  }) : i[t] = e, i;
801
801
  }
802
- function J() {
803
- return J = Object.assign || function(i) {
802
+ function Q() {
803
+ return Q = Object.assign || function(i) {
804
804
  for (var t = 1; t < arguments.length; t++) {
805
805
  var e = arguments[t];
806
806
  for (var n in e)
807
807
  Object.prototype.hasOwnProperty.call(e, n) && (i[n] = e[n]);
808
808
  }
809
809
  return i;
810
- }, J.apply(this, arguments);
810
+ }, Q.apply(this, arguments);
811
811
  }
812
812
  function en(i, t) {
813
813
  if (i == null)
@@ -829,21 +829,21 @@ function nn(i, t) {
829
829
  return e;
830
830
  }
831
831
  var rn = "1.15.0";
832
- function Z(i) {
832
+ function q(i) {
833
833
  if (typeof window < "u" && window.navigator)
834
834
  return !!/* @__PURE__ */ navigator.userAgent.match(i);
835
835
  }
836
- var tt = Z(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ie = Z(/Edge/i), qe = Z(/firefox/i), Xt = Z(/safari/i) && !Z(/chrome/i) && !Z(/android/i), _i = Z(/iP(ad|od|hone)/i), Ei = Z(/chrome/i) && Z(/android/i), wi = {
836
+ var tt = q(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ie = q(/Edge/i), Ze = q(/firefox/i), Xt = q(/safari/i) && !q(/chrome/i) && !q(/android/i), _i = q(/iP(ad|od|hone)/i), Ei = q(/chrome/i) && q(/android/i), wi = {
837
837
  capture: !1,
838
838
  passive: !1
839
839
  };
840
840
  function w(i, t, e) {
841
841
  i.addEventListener(t, e, !tt && wi);
842
842
  }
843
- function _(i, t, e) {
843
+ function E(i, t, e) {
844
844
  i.removeEventListener(t, e, !tt && wi);
845
845
  }
846
- function Qt(i, t) {
846
+ function Jt(i, t) {
847
847
  if (t) {
848
848
  if (t[0] === ">" && (t = t.substring(1)), i)
849
849
  try {
@@ -866,7 +866,7 @@ function j(i, t, e, n) {
866
866
  if (i) {
867
867
  e = e || document;
868
868
  do {
869
- if (t != null && (t[0] === ">" ? i.parentNode === e && Qt(i, t) : Qt(i, t)) || n && i === e)
869
+ if (t != null && (t[0] === ">" ? i.parentNode === e && Jt(i, t) : Jt(i, t)) || n && i === e)
870
870
  return i;
871
871
  if (i === e)
872
872
  break;
@@ -914,14 +914,14 @@ function Ci(i, t, e) {
914
914
  }
915
915
  return [];
916
916
  }
917
- function Q() {
917
+ function J() {
918
918
  var i = document.scrollingElement;
919
919
  return i || document.documentElement;
920
920
  }
921
921
  function D(i, t, e, n, r) {
922
922
  if (!(!i.getBoundingClientRect && i !== window)) {
923
- var o, a, l, s, d, p, h;
924
- if (i !== window && i.parentNode && i !== Q() ? (o = i.getBoundingClientRect(), a = o.top, l = o.left, s = o.bottom, d = o.right, p = o.height, h = o.width) : (a = 0, l = 0, s = window.innerHeight, d = window.innerWidth, p = window.innerHeight, h = window.innerWidth), (t || e) && i !== window && (r = r || i.parentNode, !tt))
923
+ var o, a, l, s, d, p, u;
924
+ if (i !== window && i.parentNode && i !== J() ? (o = i.getBoundingClientRect(), a = o.top, l = o.left, s = o.bottom, d = o.right, p = o.height, u = o.width) : (a = 0, l = 0, s = window.innerHeight, d = window.innerWidth, p = window.innerHeight, u = window.innerWidth), (t || e) && i !== window && (r = r || i.parentNode, !tt))
925
925
  do
926
926
  if (r && r.getBoundingClientRect && (g(r, "transform") !== "none" || e && g(r, "position") !== "static")) {
927
927
  var c = r.getBoundingClientRect();
@@ -931,24 +931,24 @@ function D(i, t, e, n, r) {
931
931
  while (r = r.parentNode);
932
932
  if (n && i !== window) {
933
933
  var m = yt(r || i), f = m && m.a, v = m && m.d;
934
- m && (a /= v, l /= f, h /= f, p /= v, s = a + p, d = l + h);
934
+ m && (a /= v, l /= f, u /= f, p /= v, s = a + p, d = l + u);
935
935
  }
936
936
  return {
937
937
  top: a,
938
938
  left: l,
939
939
  bottom: s,
940
940
  right: d,
941
- width: h,
941
+ width: u,
942
942
  height: p
943
943
  };
944
944
  }
945
945
  }
946
- function Qe(i, t, e) {
946
+ function Je(i, t, e) {
947
947
  for (var n = ti(i, !0), r = D(i)[t]; n; ) {
948
948
  var o = D(n)[e], a = void 0;
949
949
  if (e === "top" || e === "left" ? a = r >= o : a = r <= o, !a)
950
950
  return n;
951
- if (n === Q())
951
+ if (n === J())
952
952
  break;
953
953
  n = ti(n, !1);
954
954
  }
@@ -966,7 +966,7 @@ function _t(i, t, e, n) {
966
966
  return null;
967
967
  }
968
968
  function Te(i, t) {
969
- for (var e = i.lastElementChild; e && (e === y.ghost || g(e, "display") === "none" || t && !Qt(e, t)); )
969
+ for (var e = i.lastElementChild; e && (e === y.ghost || g(e, "display") === "none" || t && !Jt(e, t)); )
970
970
  e = e.previousElementSibling;
971
971
  return e || null;
972
972
  }
@@ -975,11 +975,11 @@ function B(i, t) {
975
975
  if (!i || !i.parentNode)
976
976
  return -1;
977
977
  for (; i = i.previousElementSibling; )
978
- i.nodeName.toUpperCase() !== "TEMPLATE" && i !== y.clone && (!t || Qt(i, t)) && e++;
978
+ i.nodeName.toUpperCase() !== "TEMPLATE" && i !== y.clone && (!t || Jt(i, t)) && e++;
979
979
  return e;
980
980
  }
981
- function Je(i) {
982
- var t = 0, e = 0, n = Q();
981
+ function Qe(i) {
982
+ var t = 0, e = 0, n = J();
983
983
  if (i)
984
984
  do {
985
985
  var r = yt(i), o = r.a, a = r.d;
@@ -998,21 +998,21 @@ function an(i, t) {
998
998
  }
999
999
  function ti(i, t) {
1000
1000
  if (!i || !i.getBoundingClientRect)
1001
- return Q();
1001
+ return J();
1002
1002
  var e = i, n = !1;
1003
1003
  do
1004
1004
  if (e.clientWidth < e.scrollWidth || e.clientHeight < e.scrollHeight) {
1005
1005
  var r = g(e);
1006
1006
  if (e.clientWidth < e.scrollWidth && (r.overflowX == "auto" || r.overflowX == "scroll") || e.clientHeight < e.scrollHeight && (r.overflowY == "auto" || r.overflowY == "scroll")) {
1007
1007
  if (!e.getBoundingClientRect || e === document.body)
1008
- return Q();
1008
+ return J();
1009
1009
  if (n || t)
1010
1010
  return e;
1011
1011
  n = !0;
1012
1012
  }
1013
1013
  }
1014
1014
  while (e = e.parentNode);
1015
- return Q();
1015
+ return J();
1016
1016
  }
1017
1017
  function sn(i, t) {
1018
1018
  if (i && t)
@@ -1042,7 +1042,7 @@ function $i(i) {
1042
1042
  return t && t.dom ? t.dom(i).cloneNode(!0) : e ? e(i).clone(!0)[0] : i.cloneNode(!0);
1043
1043
  }
1044
1044
  var R = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
1045
- function un() {
1045
+ function hn() {
1046
1046
  var i = [], t;
1047
1047
  return {
1048
1048
  captureAnimationState: function() {
@@ -1080,9 +1080,9 @@ function un() {
1080
1080
  }
1081
1081
  var o = !1, a = 0;
1082
1082
  i.forEach(function(l) {
1083
- var s = 0, d = l.target, p = d.fromRect, h = D(d), c = d.prevFromRect, m = d.prevToRect, f = l.rect, v = yt(d, !0);
1084
- v && (h.top -= v.f, h.left -= v.e), d.toRect = h, d.thisAnimationDuration && fe(c, h) && !fe(p, h) && // Make sure animatingRect is on line between toRect & fromRect
1085
- (f.top - h.top) / (f.left - h.left) === (p.top - h.top) / (p.left - h.left) && (s = cn(f, c, m, r.options)), fe(h, p) || (d.prevFromRect = p, d.prevToRect = h, s || (s = r.options.animation), r.animate(d, f, h, s)), s && (o = !0, a = Math.max(a, s), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
1083
+ var s = 0, d = l.target, p = d.fromRect, u = D(d), c = d.prevFromRect, m = d.prevToRect, f = l.rect, v = yt(d, !0);
1084
+ v && (u.top -= v.f, u.left -= v.e), d.toRect = u, d.thisAnimationDuration && fe(c, u) && !fe(p, u) && // Make sure animatingRect is on line between toRect & fromRect
1085
+ (f.top - u.top) / (f.left - u.left) === (p.top - u.top) / (p.left - u.left) && (s = cn(f, c, m, r.options)), fe(u, p) || (d.prevFromRect = p, d.prevToRect = u, s || (s = r.options.animation), r.animate(d, f, u, s)), s && (o = !0, a = Math.max(a, s), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
1086
1086
  d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
1087
1087
  }, s), d.thisAnimationDuration = s);
1088
1088
  }), clearTimeout(t), o ? t = setTimeout(function() {
@@ -1092,15 +1092,15 @@ function un() {
1092
1092
  animate: function(n, r, o, a) {
1093
1093
  if (a) {
1094
1094
  g(n, "transition", ""), g(n, "transform", "");
1095
- var l = yt(this.el), s = l && l.a, d = l && l.d, p = (r.left - o.left) / (s || 1), h = (r.top - o.top) / (d || 1);
1096
- n.animatingX = !!p, n.animatingY = !!h, g(n, "transform", "translate3d(" + p + "px," + h + "px,0)"), this.forRepaintDummy = hn(n), g(n, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), g(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
1095
+ var l = yt(this.el), s = l && l.a, d = l && l.d, p = (r.left - o.left) / (s || 1), u = (r.top - o.top) / (d || 1);
1096
+ n.animatingX = !!p, n.animatingY = !!u, g(n, "transform", "translate3d(" + p + "px," + u + "px,0)"), this.forRepaintDummy = un(n), g(n, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), g(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
1097
1097
  g(n, "transition", ""), g(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
1098
1098
  }, a);
1099
1099
  }
1100
1100
  }
1101
1101
  };
1102
1102
  }
1103
- function hn(i) {
1103
+ function un(i) {
1104
1104
  return i.offsetWidth;
1105
1105
  }
1106
1106
  function cn(i, t, e, n) {
@@ -1136,7 +1136,7 @@ var ct = [], me = {
1136
1136
  var s = l.pluginName;
1137
1137
  if (!(!t.options[s] && !l.initializeByDefault)) {
1138
1138
  var d = new l(t, e, t.options);
1139
- d.sortable = t, d.options = t.options, t[s] = d, J(n, d.defaults);
1139
+ d.sortable = t, d.options = t.options, t[s] = d, Q(n, d.defaults);
1140
1140
  }
1141
1141
  });
1142
1142
  for (var o in t.options)
@@ -1148,7 +1148,7 @@ var ct = [], me = {
1148
1148
  getEventProperties: function(t, e) {
1149
1149
  var n = {};
1150
1150
  return ct.forEach(function(r) {
1151
- typeof r.eventProperties == "function" && J(n, r.eventProperties.call(e[r.pluginName], t));
1151
+ typeof r.eventProperties == "function" && Q(n, r.eventProperties.call(e[r.pluginName], t));
1152
1152
  }), n;
1153
1153
  },
1154
1154
  modifyOption: function(t, e, n) {
@@ -1159,23 +1159,23 @@ var ct = [], me = {
1159
1159
  }
1160
1160
  };
1161
1161
  function pn(i) {
1162
- var t = i.sortable, e = i.rootEl, n = i.name, r = i.targetEl, o = i.cloneEl, a = i.toEl, l = i.fromEl, s = i.oldIndex, d = i.newIndex, p = i.oldDraggableIndex, h = i.newDraggableIndex, c = i.originalEvent, m = i.putSortable, f = i.extraEventProperties;
1162
+ var t = i.sortable, e = i.rootEl, n = i.name, r = i.targetEl, o = i.cloneEl, a = i.toEl, l = i.fromEl, s = i.oldIndex, d = i.newIndex, p = i.oldDraggableIndex, u = i.newDraggableIndex, c = i.originalEvent, m = i.putSortable, f = i.extraEventProperties;
1163
1163
  if (t = t || e && e[R], !!t) {
1164
1164
  var v, S = t.options, U = "on" + n.charAt(0).toUpperCase() + n.substr(1);
1165
1165
  window.CustomEvent && !tt && !ie ? v = new CustomEvent(n, {
1166
1166
  bubbles: !0,
1167
1167
  cancelable: !0
1168
- }) : (v = document.createEvent("Event"), v.initEvent(n, !0, !0)), v.to = a || e, v.from = l || e, v.item = r || e, v.clone = o, v.oldIndex = s, v.newIndex = d, v.oldDraggableIndex = p, v.newDraggableIndex = h, v.originalEvent = c, v.pullMode = m ? m.lastPutMode : void 0;
1169
- var O = X(X({}, f), kt.getEventProperties(n, t));
1170
- for (var et in O)
1171
- v[et] = O[et];
1168
+ }) : (v = document.createEvent("Event"), v.initEvent(n, !0, !0)), v.to = a || e, v.from = l || e, v.item = r || e, v.clone = o, v.oldIndex = s, v.newIndex = d, v.oldDraggableIndex = p, v.newDraggableIndex = u, v.originalEvent = c, v.pullMode = m ? m.lastPutMode : void 0;
1169
+ var H = X(X({}, f), kt.getEventProperties(n, t));
1170
+ for (var et in H)
1171
+ v[et] = H[et];
1172
1172
  e && e.dispatchEvent(v), S[U] && S[U].call(t, v);
1173
1173
  }
1174
1174
  }
1175
- var fn = ["evt"], I = function(t, e) {
1175
+ var fn = ["evt"], P = function(t, e) {
1176
1176
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = nn(n, fn);
1177
1177
  kt.pluginEvent.bind(y)(t, e, X({
1178
- dragEl: u,
1178
+ dragEl: h,
1179
1179
  parentEl: A,
1180
1180
  ghostEl: b,
1181
1181
  rootEl: C,
@@ -1190,7 +1190,7 @@ var fn = ["evt"], I = function(t, e) {
1190
1190
  oldIndex: mt,
1191
1191
  oldDraggableIndex: Ot,
1192
1192
  newIndex: k,
1193
- newDraggableIndex: q,
1193
+ newDraggableIndex: Z,
1194
1194
  hideGhostForTarget: Di,
1195
1195
  unhideGhostForTarget: Ti,
1196
1196
  cloneNowHidden: function() {
@@ -1200,7 +1200,7 @@ var fn = ["evt"], I = function(t, e) {
1200
1200
  K = !1;
1201
1201
  },
1202
1202
  dispatchSortableEvent: function(l) {
1203
- P({
1203
+ I({
1204
1204
  sortable: e,
1205
1205
  name: l,
1206
1206
  originalEvent: r
@@ -1208,19 +1208,19 @@ var fn = ["evt"], I = function(t, e) {
1208
1208
  }
1209
1209
  }, o));
1210
1210
  };
1211
- function P(i) {
1211
+ function I(i) {
1212
1212
  pn(X({
1213
1213
  putSortable: T,
1214
1214
  cloneEl: $,
1215
- targetEl: u,
1215
+ targetEl: h,
1216
1216
  rootEl: C,
1217
1217
  oldIndex: mt,
1218
1218
  oldDraggableIndex: Ot,
1219
1219
  newIndex: k,
1220
- newDraggableIndex: q
1220
+ newDraggableIndex: Z
1221
1221
  }, i));
1222
1222
  }
1223
- var u, A, b, C, st, Yt, $, K, mt, k, Ot, q, Bt, T, gt = !1, Jt = !1, te = [], rt, F, ve, ye, ei, ii, Tt, pt, Ht, Lt = !1, Rt = !1, Wt, H, be = [], Ae = !1, ee = [], ne = typeof document < "u", Ut = _i, ni = ie || tt ? "cssFloat" : "float", gn = ne && !Ei && !_i && "draggable" in document.createElement("div"), Ai = function() {
1223
+ var h, A, b, C, st, Yt, $, K, mt, k, Ot, Z, Bt, T, gt = !1, Qt = !1, te = [], rt, F, ve, ye, ei, ii, Tt, pt, Ht, Lt = !1, Rt = !1, Wt, L, be = [], Ae = !1, ee = [], ne = typeof document < "u", Ut = _i, ni = ie || tt ? "cssFloat" : "float", gn = ne && !Ei && !_i && "draggable" in document.createElement("div"), Ai = function() {
1224
1224
  if (ne) {
1225
1225
  if (tt)
1226
1226
  return !1;
@@ -1234,8 +1234,8 @@ var u, A, b, C, st, Yt, $, K, mt, k, Ot, q, Bt, T, gt = !1, Jt = !1, te = [], rt
1234
1234
  if (n.display === "grid")
1235
1235
  return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
1236
1236
  if (o && l.float && l.float !== "none") {
1237
- var h = l.float === "left" ? "left" : "right";
1238
- return a && (s.clear === "both" || s.clear === h) ? "vertical" : "horizontal";
1237
+ var u = l.float === "left" ? "left" : "right";
1238
+ return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
1239
1239
  }
1240
1240
  return o && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || d >= r && n[ni] === "none" || a && n[ni] === "none" && d + p > r) ? "vertical" : "horizontal";
1241
1241
  }, mn = function(t, e, n) {
@@ -1254,8 +1254,8 @@ var u, A, b, C, st, Yt, $, K, mt, k, Ot, q, Bt, T, gt = !1, Jt = !1, te = [], rt
1254
1254
  }, Si = function(t) {
1255
1255
  function e(o, a) {
1256
1256
  return function(l, s, d, p) {
1257
- var h = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
1258
- if (o == null && (a || h))
1257
+ var u = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
1258
+ if (o == null && (a || u))
1259
1259
  return !0;
1260
1260
  if (o == null || o === !1)
1261
1261
  return !1;
@@ -1277,11 +1277,11 @@ var u, A, b, C, st, Yt, $, K, mt, k, Ot, q, Bt, T, gt = !1, Jt = !1, te = [], rt
1277
1277
  !Ai && b && g(b, "display", "");
1278
1278
  };
1279
1279
  ne && !Ei && document.addEventListener("click", function(i) {
1280
- if (Jt)
1281
- return i.preventDefault(), i.stopPropagation && i.stopPropagation(), i.stopImmediatePropagation && i.stopImmediatePropagation(), Jt = !1, !1;
1280
+ if (Qt)
1281
+ return i.preventDefault(), i.stopPropagation && i.stopPropagation(), i.stopImmediatePropagation && i.stopImmediatePropagation(), Qt = !1, !1;
1282
1282
  }, !0);
1283
1283
  var ot = function(t) {
1284
- if (u) {
1284
+ if (h) {
1285
1285
  t = t.touches ? t.touches[0] : t;
1286
1286
  var e = vn(t.clientX, t.clientY);
1287
1287
  if (e) {
@@ -1292,12 +1292,12 @@ var ot = function(t) {
1292
1292
  }
1293
1293
  }
1294
1294
  }, yn = function(t) {
1295
- u && u.parentNode[R]._isOutsideThisEl(t.target);
1295
+ h && h.parentNode[R]._isOutsideThisEl(t.target);
1296
1296
  };
1297
1297
  function y(i, t) {
1298
1298
  if (!(i && i.nodeType && i.nodeType === 1))
1299
1299
  throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));
1300
- this.el = i, this.options = t = J({}, t), i[R] = this;
1300
+ this.el = i, this.options = t = Q({}, t), i[R] = this;
1301
1301
  var e = {
1302
1302
  group: null,
1303
1303
  sort: !0,
@@ -1349,7 +1349,7 @@ function y(i, t) {
1349
1349
  Si(t);
1350
1350
  for (var r in this)
1351
1351
  r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
1352
- this.nativeDraggable = t.forceFallback ? !1 : gn, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? w(i, "pointerdown", this._onTapStart) : (w(i, "mousedown", this._onTapStart), w(i, "touchstart", this._onTapStart)), this.nativeDraggable && (w(i, "dragover", this), w(i, "dragenter", this)), te.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), J(this, un());
1352
+ this.nativeDraggable = t.forceFallback ? !1 : gn, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? w(i, "pointerdown", this._onTapStart) : (w(i, "mousedown", this._onTapStart), w(i, "touchstart", this._onTapStart)), this.nativeDraggable && (w(i, "dragover", this), w(i, "dragenter", this)), te.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Q(this, hn());
1353
1353
  }
1354
1354
  y.prototype = /** @lends Sortable.prototype */
1355
1355
  {
@@ -1358,36 +1358,36 @@ y.prototype = /** @lends Sortable.prototype */
1358
1358
  !this.el.contains(t) && t !== this.el && (pt = null);
1359
1359
  },
1360
1360
  _getDirection: function(t, e) {
1361
- return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e, u) : this.options.direction;
1361
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e, h) : this.options.direction;
1362
1362
  },
1363
1363
  _onTapStart: function(t) {
1364
1364
  if (t.cancelable) {
1365
1365
  var e = this, n = this.el, r = this.options, o = r.preventOnFilter, a = t.type, l = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, s = (l || t).target, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || s, p = r.filter;
1366
- if (xn(n), !u && !(/mousedown|pointerdown/.test(a) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable && Xt && s && s.tagName.toUpperCase() === "SELECT") && (s = j(s, r.draggable, n, !1), !(s && s.animated) && Yt !== s)) {
1366
+ if (xn(n), !h && !(/mousedown|pointerdown/.test(a) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable && Xt && s && s.tagName.toUpperCase() === "SELECT") && (s = j(s, r.draggable, n, !1), !(s && s.animated) && Yt !== s)) {
1367
1367
  if (mt = B(s), Ot = B(s, r.draggable), typeof p == "function") {
1368
1368
  if (p.call(this, t, s, this)) {
1369
- P({
1369
+ I({
1370
1370
  sortable: e,
1371
1371
  rootEl: d,
1372
1372
  name: "filter",
1373
1373
  targetEl: s,
1374
1374
  toEl: n,
1375
1375
  fromEl: n
1376
- }), I("filter", e, {
1376
+ }), P("filter", e, {
1377
1377
  evt: t
1378
1378
  }), o && t.cancelable && t.preventDefault();
1379
1379
  return;
1380
1380
  }
1381
- } else if (p && (p = p.split(",").some(function(h) {
1382
- if (h = j(d, h.trim(), n, !1), h)
1383
- return P({
1381
+ } else if (p && (p = p.split(",").some(function(u) {
1382
+ if (u = j(d, u.trim(), n, !1), u)
1383
+ return I({
1384
1384
  sortable: e,
1385
- rootEl: h,
1385
+ rootEl: u,
1386
1386
  name: "filter",
1387
1387
  targetEl: s,
1388
1388
  fromEl: n,
1389
1389
  toEl: n
1390
- }), I("filter", e, {
1390
+ }), P("filter", e, {
1391
1391
  evt: t
1392
1392
  }), !0;
1393
1393
  }), p)) {
@@ -1400,27 +1400,27 @@ y.prototype = /** @lends Sortable.prototype */
1400
1400
  },
1401
1401
  _prepareDragStart: function(t, e, n) {
1402
1402
  var r = this, o = r.el, a = r.options, l = o.ownerDocument, s;
1403
- if (n && !u && n.parentNode === o) {
1403
+ if (n && !h && n.parentNode === o) {
1404
1404
  var d = D(n);
1405
- if (C = o, u = n, A = u.parentNode, st = u.nextSibling, Yt = n, Bt = a.group, y.dragged = u, rt = {
1406
- target: u,
1405
+ if (C = o, h = n, A = h.parentNode, st = h.nextSibling, Yt = n, Bt = a.group, y.dragged = h, rt = {
1406
+ target: h,
1407
1407
  clientX: (e || t).clientX,
1408
1408
  clientY: (e || t).clientY
1409
- }, ei = rt.clientX - d.left, ii = rt.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, u.style["will-change"] = "all", s = function() {
1410
- if (I("delayEnded", r, {
1409
+ }, ei = rt.clientX - d.left, ii = rt.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, h.style["will-change"] = "all", s = function() {
1410
+ if (P("delayEnded", r, {
1411
1411
  evt: t
1412
1412
  }), y.eventCanceled) {
1413
1413
  r._onDrop();
1414
1414
  return;
1415
1415
  }
1416
- r._disableDelayedDragEvents(), !qe && r.nativeDraggable && (u.draggable = !0), r._triggerDragStart(t, e), P({
1416
+ r._disableDelayedDragEvents(), !Ze && r.nativeDraggable && (h.draggable = !0), r._triggerDragStart(t, e), I({
1417
1417
  sortable: r,
1418
1418
  name: "choose",
1419
1419
  originalEvent: t
1420
- }), N(u, a.chosenClass, !0);
1420
+ }), N(h, a.chosenClass, !0);
1421
1421
  }, a.ignore.split(",").forEach(function(p) {
1422
- Ci(u, p.trim(), _e);
1423
- }), w(l, "dragover", ot), w(l, "mousemove", ot), w(l, "touchmove", ot), w(l, "mouseup", r._onDrop), w(l, "touchend", r._onDrop), w(l, "touchcancel", r._onDrop), qe && this.nativeDraggable && (this.options.touchStartThreshold = 4, u.draggable = !0), I("delayStart", this, {
1422
+ Ci(h, p.trim(), _e);
1423
+ }), w(l, "dragover", ot), w(l, "mousemove", ot), w(l, "touchmove", ot), w(l, "mouseup", r._onDrop), w(l, "touchend", r._onDrop), w(l, "touchcancel", r._onDrop), Ze && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), P("delayStart", this, {
1424
1424
  evt: t
1425
1425
  }), a.delay && (!a.delayOnTouchOnly || e) && (!this.nativeDraggable || !(ie || tt))) {
1426
1426
  if (y.eventCanceled) {
@@ -1437,14 +1437,14 @@ y.prototype = /** @lends Sortable.prototype */
1437
1437
  Math.max(Math.abs(e.clientX - this._lastX), Math.abs(e.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
1438
1438
  },
1439
1439
  _disableDelayedDrag: function() {
1440
- u && _e(u), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
1440
+ h && _e(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
1441
1441
  },
1442
1442
  _disableDelayedDragEvents: function() {
1443
1443
  var t = this.el.ownerDocument;
1444
- _(t, "mouseup", this._disableDelayedDrag), _(t, "touchend", this._disableDelayedDrag), _(t, "touchcancel", this._disableDelayedDrag), _(t, "mousemove", this._delayedDragTouchMoveHandler), _(t, "touchmove", this._delayedDragTouchMoveHandler), _(t, "pointermove", this._delayedDragTouchMoveHandler);
1444
+ E(t, "mouseup", this._disableDelayedDrag), E(t, "touchend", this._disableDelayedDrag), E(t, "touchcancel", this._disableDelayedDrag), E(t, "mousemove", this._delayedDragTouchMoveHandler), E(t, "touchmove", this._delayedDragTouchMoveHandler), E(t, "pointermove", this._delayedDragTouchMoveHandler);
1445
1445
  },
1446
1446
  _triggerDragStart: function(t, e) {
1447
- e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? w(document, "pointermove", this._onTouchMove) : e ? w(document, "touchmove", this._onTouchMove) : w(document, "mousemove", this._onTouchMove) : (w(u, "dragend", this), w(C, "dragstart", this._onDragStart));
1447
+ e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? w(document, "pointermove", this._onTouchMove) : e ? w(document, "touchmove", this._onTouchMove) : w(document, "mousemove", this._onTouchMove) : (w(h, "dragend", this), w(C, "dragstart", this._onDragStart));
1448
1448
  try {
1449
1449
  document.selection ? Gt(function() {
1450
1450
  document.selection.empty();
@@ -1453,12 +1453,12 @@ y.prototype = /** @lends Sortable.prototype */
1453
1453
  }
1454
1454
  },
1455
1455
  _dragStarted: function(t, e) {
1456
- if (gt = !1, C && u) {
1457
- I("dragStarted", this, {
1456
+ if (gt = !1, C && h) {
1457
+ P("dragStarted", this, {
1458
1458
  evt: e
1459
1459
  }), this.nativeDraggable && w(document, "dragover", yn);
1460
1460
  var n = this.options;
1461
- !t && N(u, n.dragClass, !1), N(u, n.ghostClass, !0), y.active = this, t && this._appendGhost(), P({
1461
+ !t && N(h, n.dragClass, !1), N(h, n.ghostClass, !0), y.active = this, t && this._appendGhost(), I({
1462
1462
  sortable: this,
1463
1463
  name: "start",
1464
1464
  originalEvent: e
@@ -1471,7 +1471,7 @@ y.prototype = /** @lends Sortable.prototype */
1471
1471
  this._lastX = F.clientX, this._lastY = F.clientY, Di();
1472
1472
  for (var t = document.elementFromPoint(F.clientX, F.clientY), e = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(F.clientX, F.clientY), t !== e); )
1473
1473
  e = t;
1474
- if (u.parentNode[R]._isOutsideThisEl(t), e)
1474
+ if (h.parentNode[R]._isOutsideThisEl(t), e)
1475
1475
  do {
1476
1476
  if (e[R]) {
1477
1477
  var n = void 0;
@@ -1490,72 +1490,72 @@ y.prototype = /** @lends Sortable.prototype */
1490
1490
  },
1491
1491
  _onTouchMove: function(t) {
1492
1492
  if (rt) {
1493
- var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t, a = b && yt(b, !0), l = b && a && a.a, s = b && a && a.d, d = Ut && H && Je(H), p = (o.clientX - rt.clientX + r.x) / (l || 1) + (d ? d[0] - be[0] : 0) / (l || 1), h = (o.clientY - rt.clientY + r.y) / (s || 1) + (d ? d[1] - be[1] : 0) / (s || 1);
1493
+ var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t, a = b && yt(b, !0), l = b && a && a.a, s = b && a && a.d, d = Ut && L && Qe(L), p = (o.clientX - rt.clientX + r.x) / (l || 1) + (d ? d[0] - be[0] : 0) / (l || 1), u = (o.clientY - rt.clientY + r.y) / (s || 1) + (d ? d[1] - be[1] : 0) / (s || 1);
1494
1494
  if (!y.active && !gt) {
1495
1495
  if (n && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < n)
1496
1496
  return;
1497
1497
  this._onDragStart(t, !0);
1498
1498
  }
1499
1499
  if (b) {
1500
- a ? (a.e += p - (ve || 0), a.f += h - (ye || 0)) : a = {
1500
+ a ? (a.e += p - (ve || 0), a.f += u - (ye || 0)) : a = {
1501
1501
  a: 1,
1502
1502
  b: 0,
1503
1503
  c: 0,
1504
1504
  d: 1,
1505
1505
  e: p,
1506
- f: h
1506
+ f: u
1507
1507
  };
1508
1508
  var c = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
1509
- g(b, "webkitTransform", c), g(b, "mozTransform", c), g(b, "msTransform", c), g(b, "transform", c), ve = p, ye = h, F = o;
1509
+ g(b, "webkitTransform", c), g(b, "mozTransform", c), g(b, "msTransform", c), g(b, "transform", c), ve = p, ye = u, F = o;
1510
1510
  }
1511
1511
  t.cancelable && t.preventDefault();
1512
1512
  }
1513
1513
  },
1514
1514
  _appendGhost: function() {
1515
1515
  if (!b) {
1516
- var t = this.options.fallbackOnBody ? document.body : C, e = D(u, !0, Ut, !0, t), n = this.options;
1516
+ var t = this.options.fallbackOnBody ? document.body : C, e = D(h, !0, Ut, !0, t), n = this.options;
1517
1517
  if (Ut) {
1518
- for (H = t; g(H, "position") === "static" && g(H, "transform") === "none" && H !== document; )
1519
- H = H.parentNode;
1520
- H !== document.body && H !== document.documentElement ? (H === document && (H = Q()), e.top += H.scrollTop, e.left += H.scrollLeft) : H = Q(), be = Je(H);
1518
+ for (L = t; g(L, "position") === "static" && g(L, "transform") === "none" && L !== document; )
1519
+ L = L.parentNode;
1520
+ L !== document.body && L !== document.documentElement ? (L === document && (L = J()), e.top += L.scrollTop, e.left += L.scrollLeft) : L = J(), be = Qe(L);
1521
1521
  }
1522
- b = u.cloneNode(!0), N(b, n.ghostClass, !1), N(b, n.fallbackClass, !0), N(b, n.dragClass, !0), g(b, "transition", ""), g(b, "transform", ""), g(b, "box-sizing", "border-box"), g(b, "margin", 0), g(b, "top", e.top), g(b, "left", e.left), g(b, "width", e.width), g(b, "height", e.height), g(b, "opacity", "0.8"), g(b, "position", Ut ? "absolute" : "fixed"), g(b, "zIndex", "100000"), g(b, "pointerEvents", "none"), y.ghost = b, t.appendChild(b), g(b, "transform-origin", ei / parseInt(b.style.width) * 100 + "% " + ii / parseInt(b.style.height) * 100 + "%");
1522
+ b = h.cloneNode(!0), N(b, n.ghostClass, !1), N(b, n.fallbackClass, !0), N(b, n.dragClass, !0), g(b, "transition", ""), g(b, "transform", ""), g(b, "box-sizing", "border-box"), g(b, "margin", 0), g(b, "top", e.top), g(b, "left", e.left), g(b, "width", e.width), g(b, "height", e.height), g(b, "opacity", "0.8"), g(b, "position", Ut ? "absolute" : "fixed"), g(b, "zIndex", "100000"), g(b, "pointerEvents", "none"), y.ghost = b, t.appendChild(b), g(b, "transform-origin", ei / parseInt(b.style.width) * 100 + "% " + ii / parseInt(b.style.height) * 100 + "%");
1523
1523
  }
1524
1524
  },
1525
1525
  _onDragStart: function(t, e) {
1526
1526
  var n = this, r = t.dataTransfer, o = n.options;
1527
- if (I("dragStart", this, {
1527
+ if (P("dragStart", this, {
1528
1528
  evt: t
1529
1529
  }), y.eventCanceled) {
1530
1530
  this._onDrop();
1531
1531
  return;
1532
1532
  }
1533
- I("setupClone", this), y.eventCanceled || ($ = $i(u), $.removeAttribute("id"), $.draggable = !1, $.style["will-change"] = "", this._hideClone(), N($, this.options.chosenClass, !1), y.clone = $), n.cloneId = Gt(function() {
1534
- I("clone", n), !y.eventCanceled && (n.options.removeCloneOnHide || C.insertBefore($, u), n._hideClone(), P({
1533
+ P("setupClone", this), y.eventCanceled || ($ = $i(h), $.removeAttribute("id"), $.draggable = !1, $.style["will-change"] = "", this._hideClone(), N($, this.options.chosenClass, !1), y.clone = $), n.cloneId = Gt(function() {
1534
+ P("clone", n), !y.eventCanceled && (n.options.removeCloneOnHide || C.insertBefore($, h), n._hideClone(), I({
1535
1535
  sortable: n,
1536
1536
  name: "clone"
1537
1537
  }));
1538
- }), !e && N(u, o.dragClass, !0), e ? (Jt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (_(document, "mouseup", n._onDrop), _(document, "touchend", n._onDrop), _(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, u)), w(document, "drop", n), g(u, "transform", "translateZ(0)")), gt = !0, n._dragStartId = Gt(n._dragStarted.bind(n, e, t)), w(document, "selectstart", n), Tt = !0, Xt && g(document.body, "user-select", "none");
1538
+ }), !e && N(h, o.dragClass, !0), e ? (Qt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (E(document, "mouseup", n._onDrop), E(document, "touchend", n._onDrop), E(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, h)), w(document, "drop", n), g(h, "transform", "translateZ(0)")), gt = !0, n._dragStartId = Gt(n._dragStarted.bind(n, e, t)), w(document, "selectstart", n), Tt = !0, Xt && g(document.body, "user-select", "none");
1539
1539
  },
1540
1540
  // Returns true - if no further action is needed (either inserted or another condition)
1541
1541
  _onDragOver: function(t) {
1542
- var e = this.el, n = t.target, r, o, a, l = this.options, s = l.group, d = y.active, p = Bt === s, h = l.sort, c = T || d, m, f = this, v = !1;
1542
+ var e = this.el, n = t.target, r, o, a, l = this.options, s = l.group, d = y.active, p = Bt === s, u = l.sort, c = T || d, m, f = this, v = !1;
1543
1543
  if (Ae)
1544
1544
  return;
1545
1545
  function S(xt, ki) {
1546
- I(xt, f, X({
1546
+ P(xt, f, X({
1547
1547
  evt: t,
1548
1548
  isOwner: p,
1549
1549
  axis: m ? "vertical" : "horizontal",
1550
1550
  revert: a,
1551
1551
  dragRect: r,
1552
1552
  targetRect: o,
1553
- canSort: h,
1553
+ canSort: u,
1554
1554
  fromSortable: c,
1555
1555
  target: n,
1556
- completed: O,
1557
- onMove: function(Ie, Vi) {
1558
- return Ft(C, e, u, r, Ie, D(Ie), t, Vi);
1556
+ completed: H,
1557
+ onMove: function(Pe, Vi) {
1558
+ return Ft(C, e, h, r, Pe, D(Pe), t, Vi);
1559
1559
  },
1560
1560
  changed: et
1561
1561
  }, ki));
@@ -1563,125 +1563,125 @@ y.prototype = /** @lends Sortable.prototype */
1563
1563
  function U() {
1564
1564
  S("dragOverAnimationCapture"), f.captureAnimationState(), f !== c && c.captureAnimationState();
1565
1565
  }
1566
- function O(xt) {
1566
+ function H(xt) {
1567
1567
  return S("dragOverCompleted", {
1568
1568
  insertion: xt
1569
- }), xt && (p ? d._hideClone() : d._showClone(f), f !== c && (N(u, T ? T.options.ghostClass : d.options.ghostClass, !1), N(u, l.ghostClass, !0)), T !== f && f !== y.active ? T = f : f === y.active && T && (T = null), c === f && (f._ignoreWhileAnimating = n), f.animateAll(function() {
1569
+ }), xt && (p ? d._hideClone() : d._showClone(f), f !== c && (N(h, T ? T.options.ghostClass : d.options.ghostClass, !1), N(h, l.ghostClass, !0)), T !== f && f !== y.active ? T = f : f === y.active && T && (T = null), c === f && (f._ignoreWhileAnimating = n), f.animateAll(function() {
1570
1570
  S("dragOverAnimationComplete"), f._ignoreWhileAnimating = null;
1571
- }), f !== c && (c.animateAll(), c._ignoreWhileAnimating = null)), (n === u && !u.animated || n === e && !n.animated) && (pt = null), !l.dragoverBubble && !t.rootEl && n !== document && (u.parentNode[R]._isOutsideThisEl(t.target), !xt && ot(t)), !l.dragoverBubble && t.stopPropagation && t.stopPropagation(), v = !0;
1571
+ }), f !== c && (c.animateAll(), c._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (pt = null), !l.dragoverBubble && !t.rootEl && n !== document && (h.parentNode[R]._isOutsideThisEl(t.target), !xt && ot(t)), !l.dragoverBubble && t.stopPropagation && t.stopPropagation(), v = !0;
1572
1572
  }
1573
1573
  function et() {
1574
- k = B(u), q = B(u, l.draggable), P({
1574
+ k = B(h), Z = B(h, l.draggable), I({
1575
1575
  sortable: f,
1576
1576
  name: "change",
1577
1577
  toEl: e,
1578
1578
  newIndex: k,
1579
- newDraggableIndex: q,
1579
+ newDraggableIndex: Z,
1580
1580
  originalEvent: t
1581
1581
  });
1582
1582
  }
1583
1583
  if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = j(n, l.draggable, e, !0), S("dragOver"), y.eventCanceled)
1584
1584
  return v;
1585
- if (u.contains(t.target) || n.animated && n.animatingX && n.animatingY || f._ignoreWhileAnimating === n)
1586
- return O(!1);
1587
- if (Jt = !1, d && !l.disabled && (p ? h || (a = A !== C) : T === this || (this.lastPutMode = Bt.checkPull(this, d, u, t)) && s.checkPut(this, d, u, t))) {
1588
- if (m = this._getDirection(t, n) === "vertical", r = D(u), S("dragOverValid"), y.eventCanceled)
1585
+ if (h.contains(t.target) || n.animated && n.animatingX && n.animatingY || f._ignoreWhileAnimating === n)
1586
+ return H(!1);
1587
+ if (Qt = !1, d && !l.disabled && (p ? u || (a = A !== C) : T === this || (this.lastPutMode = Bt.checkPull(this, d, h, t)) && s.checkPut(this, d, h, t))) {
1588
+ if (m = this._getDirection(t, n) === "vertical", r = D(h), S("dragOverValid"), y.eventCanceled)
1589
1589
  return v;
1590
1590
  if (a)
1591
- return A = C, U(), this._hideClone(), S("revert"), y.eventCanceled || (st ? C.insertBefore(u, st) : C.appendChild(u)), O(!0);
1591
+ return A = C, U(), this._hideClone(), S("revert"), y.eventCanceled || (st ? C.insertBefore(h, st) : C.appendChild(h)), H(!0);
1592
1592
  var W = Te(e, l.draggable);
1593
1593
  if (!W || wn(t, m, this) && !W.animated) {
1594
- if (W === u)
1595
- return O(!1);
1596
- if (W && e === t.target && (n = W), n && (o = D(n)), Ft(C, e, u, r, n, o, t, !!n) !== !1)
1597
- return U(), W && W.nextSibling ? e.insertBefore(u, W.nextSibling) : e.appendChild(u), A = e, et(), O(!0);
1594
+ if (W === h)
1595
+ return H(!1);
1596
+ if (W && e === t.target && (n = W), n && (o = D(n)), Ft(C, e, h, r, n, o, t, !!n) !== !1)
1597
+ return U(), W && W.nextSibling ? e.insertBefore(h, W.nextSibling) : e.appendChild(h), A = e, et(), H(!0);
1598
1598
  } else if (W && En(t, m, this)) {
1599
1599
  var re = _t(e, 0, l, !0);
1600
- if (re === u)
1601
- return O(!1);
1602
- if (n = re, o = D(n), Ft(C, e, u, r, n, o, t, !1) !== !1)
1603
- return U(), e.insertBefore(u, re), A = e, et(), O(!0);
1600
+ if (re === h)
1601
+ return H(!1);
1602
+ if (n = re, o = D(n), Ft(C, e, h, r, n, o, t, !1) !== !1)
1603
+ return U(), e.insertBefore(h, re), A = e, et(), H(!0);
1604
1604
  } else if (n.parentNode === e) {
1605
1605
  o = D(n);
1606
- var ht = 0, oe, Mi = u.parentNode !== e, Oe = !mn(u.animated && u.toRect || r, n.animated && n.toRect || o, m), He = m ? "top" : "left", Ct = Qe(n, "top", "top") || Qe(u, "top", "top"), Ni = Ct ? Ct.scrollTop : void 0;
1607
- pt !== n && (oe = o[He], Lt = !1, Rt = !Oe && l.invertSwap || Mi), ht = Cn(t, n, o, m, Oe ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Rt, pt === n);
1606
+ var ut = 0, oe, Mi = h.parentNode !== e, Oe = !mn(h.animated && h.toRect || r, n.animated && n.toRect || o, m), He = m ? "top" : "left", Ct = Je(n, "top", "top") || Je(h, "top", "top"), Ni = Ct ? Ct.scrollTop : void 0;
1607
+ pt !== n && (oe = o[He], Lt = !1, Rt = !Oe && l.invertSwap || Mi), ut = Cn(t, n, o, m, Oe ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Rt, pt === n);
1608
1608
  var $t;
1609
- if (ht !== 0) {
1610
- var Le = B(u);
1609
+ if (ut !== 0) {
1610
+ var Le = B(h);
1611
1611
  do
1612
- Le -= ht, $t = A.children[Le];
1612
+ Le -= ut, $t = A.children[Le];
1613
1613
  while ($t && (g($t, "display") === "none" || $t === b));
1614
1614
  }
1615
- if (ht === 0 || $t === n)
1616
- return O(!1);
1617
- pt = n, Ht = ht;
1618
- var Pe = n.nextElementSibling, At = !1;
1619
- At = ht === 1;
1620
- var Vt = Ft(C, e, u, r, n, o, t, At);
1615
+ if (ut === 0 || $t === n)
1616
+ return H(!1);
1617
+ pt = n, Ht = ut;
1618
+ var Ie = n.nextElementSibling, At = !1;
1619
+ At = ut === 1;
1620
+ var Vt = Ft(C, e, h, r, n, o, t, At);
1621
1621
  if (Vt !== !1)
1622
- return (Vt === 1 || Vt === -1) && (At = Vt === 1), Ae = !0, setTimeout(_n, 30), U(), At && !Pe ? e.appendChild(u) : n.parentNode.insertBefore(u, At ? Pe : n), Ct && dn(Ct, 0, Ni - Ct.scrollTop), A = u.parentNode, oe !== void 0 && !Rt && (Wt = Math.abs(oe - D(n)[He])), et(), O(!0);
1622
+ return (Vt === 1 || Vt === -1) && (At = Vt === 1), Ae = !0, setTimeout(_n, 30), U(), At && !Ie ? e.appendChild(h) : n.parentNode.insertBefore(h, At ? Ie : n), Ct && dn(Ct, 0, Ni - Ct.scrollTop), A = h.parentNode, oe !== void 0 && !Rt && (Wt = Math.abs(oe - D(n)[He])), et(), H(!0);
1623
1623
  }
1624
- if (e.contains(u))
1625
- return O(!1);
1624
+ if (e.contains(h))
1625
+ return H(!1);
1626
1626
  }
1627
1627
  return !1;
1628
1628
  },
1629
1629
  _ignoreWhileAnimating: null,
1630
1630
  _offMoveEvents: function() {
1631
- _(document, "mousemove", this._onTouchMove), _(document, "touchmove", this._onTouchMove), _(document, "pointermove", this._onTouchMove), _(document, "dragover", ot), _(document, "mousemove", ot), _(document, "touchmove", ot);
1631
+ E(document, "mousemove", this._onTouchMove), E(document, "touchmove", this._onTouchMove), E(document, "pointermove", this._onTouchMove), E(document, "dragover", ot), E(document, "mousemove", ot), E(document, "touchmove", ot);
1632
1632
  },
1633
1633
  _offUpEvents: function() {
1634
1634
  var t = this.el.ownerDocument;
1635
- _(t, "mouseup", this._onDrop), _(t, "touchend", this._onDrop), _(t, "pointerup", this._onDrop), _(t, "touchcancel", this._onDrop), _(document, "selectstart", this);
1635
+ E(t, "mouseup", this._onDrop), E(t, "touchend", this._onDrop), E(t, "pointerup", this._onDrop), E(t, "touchcancel", this._onDrop), E(document, "selectstart", this);
1636
1636
  },
1637
1637
  _onDrop: function(t) {
1638
1638
  var e = this.el, n = this.options;
1639
- if (k = B(u), q = B(u, n.draggable), I("drop", this, {
1639
+ if (k = B(h), Z = B(h, n.draggable), P("drop", this, {
1640
1640
  evt: t
1641
- }), A = u && u.parentNode, k = B(u), q = B(u, n.draggable), y.eventCanceled) {
1641
+ }), A = h && h.parentNode, k = B(h), Z = B(h, n.draggable), y.eventCanceled) {
1642
1642
  this._nulling();
1643
1643
  return;
1644
1644
  }
1645
- gt = !1, Rt = !1, Lt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), xe(this.cloneId), xe(this._dragStartId), this.nativeDraggable && (_(document, "drop", this), _(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Xt && g(document.body, "user-select", ""), g(u, "transform", ""), t && (Tt && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), b && b.parentNode && b.parentNode.removeChild(b), (C === A || T && T.lastPutMode !== "clone") && $ && $.parentNode && $.parentNode.removeChild($), u && (this.nativeDraggable && _(u, "dragend", this), _e(u), u.style["will-change"] = "", Tt && !gt && N(u, T ? T.options.ghostClass : this.options.ghostClass, !1), N(u, this.options.chosenClass, !1), P({
1645
+ gt = !1, Rt = !1, Lt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), xe(this.cloneId), xe(this._dragStartId), this.nativeDraggable && (E(document, "drop", this), E(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Xt && g(document.body, "user-select", ""), g(h, "transform", ""), t && (Tt && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), b && b.parentNode && b.parentNode.removeChild(b), (C === A || T && T.lastPutMode !== "clone") && $ && $.parentNode && $.parentNode.removeChild($), h && (this.nativeDraggable && E(h, "dragend", this), _e(h), h.style["will-change"] = "", Tt && !gt && N(h, T ? T.options.ghostClass : this.options.ghostClass, !1), N(h, this.options.chosenClass, !1), I({
1646
1646
  sortable: this,
1647
1647
  name: "unchoose",
1648
1648
  toEl: A,
1649
1649
  newIndex: null,
1650
1650
  newDraggableIndex: null,
1651
1651
  originalEvent: t
1652
- }), C !== A ? (k >= 0 && (P({
1652
+ }), C !== A ? (k >= 0 && (I({
1653
1653
  rootEl: A,
1654
1654
  name: "add",
1655
1655
  toEl: A,
1656
1656
  fromEl: C,
1657
1657
  originalEvent: t
1658
- }), P({
1658
+ }), I({
1659
1659
  sortable: this,
1660
1660
  name: "remove",
1661
1661
  toEl: A,
1662
1662
  originalEvent: t
1663
- }), P({
1663
+ }), I({
1664
1664
  rootEl: A,
1665
1665
  name: "sort",
1666
1666
  toEl: A,
1667
1667
  fromEl: C,
1668
1668
  originalEvent: t
1669
- }), P({
1669
+ }), I({
1670
1670
  sortable: this,
1671
1671
  name: "sort",
1672
1672
  toEl: A,
1673
1673
  originalEvent: t
1674
- })), T && T.save()) : k !== mt && k >= 0 && (P({
1674
+ })), T && T.save()) : k !== mt && k >= 0 && (I({
1675
1675
  sortable: this,
1676
1676
  name: "update",
1677
1677
  toEl: A,
1678
1678
  originalEvent: t
1679
- }), P({
1679
+ }), I({
1680
1680
  sortable: this,
1681
1681
  name: "sort",
1682
1682
  toEl: A,
1683
1683
  originalEvent: t
1684
- })), y.active && ((k == null || k === -1) && (k = mt, q = Ot), P({
1684
+ })), y.active && ((k == null || k === -1) && (k = mt, Z = Ot), I({
1685
1685
  sortable: this,
1686
1686
  name: "end",
1687
1687
  toEl: A,
@@ -1689,7 +1689,7 @@ y.prototype = /** @lends Sortable.prototype */
1689
1689
  }), this.save()))), this._nulling();
1690
1690
  },
1691
1691
  _nulling: function() {
1692
- I("nulling", this), C = u = A = b = st = $ = Yt = K = rt = F = Tt = k = q = mt = Ot = pt = Ht = T = Bt = y.dragged = y.ghost = y.clone = y.active = null, ee.forEach(function(t) {
1692
+ P("nulling", this), C = h = A = b = st = $ = Yt = K = rt = F = Tt = k = Z = mt = Ot = pt = Ht = T = Bt = y.dragged = y.ghost = y.clone = y.active = null, ee.forEach(function(t) {
1693
1693
  t.checked = !0;
1694
1694
  }), ee.length = ve = ye = 0;
1695
1695
  },
@@ -1701,7 +1701,7 @@ y.prototype = /** @lends Sortable.prototype */
1701
1701
  break;
1702
1702
  case "dragenter":
1703
1703
  case "dragover":
1704
- u && (this._onDragOver(t), bn(t));
1704
+ h && (this._onDragOver(t), bn(t));
1705
1705
  break;
1706
1706
  case "selectstart":
1707
1707
  t.preventDefault();
@@ -1763,15 +1763,15 @@ y.prototype = /** @lends Sortable.prototype */
1763
1763
  * Destroy
1764
1764
  */
1765
1765
  destroy: function() {
1766
- I("destroy", this);
1766
+ P("destroy", this);
1767
1767
  var t = this.el;
1768
- t[R] = null, _(t, "mousedown", this._onTapStart), _(t, "touchstart", this._onTapStart), _(t, "pointerdown", this._onTapStart), this.nativeDraggable && (_(t, "dragover", this), _(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(e) {
1768
+ t[R] = null, E(t, "mousedown", this._onTapStart), E(t, "touchstart", this._onTapStart), E(t, "pointerdown", this._onTapStart), this.nativeDraggable && (E(t, "dragover", this), E(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(e) {
1769
1769
  e.removeAttribute("draggable");
1770
1770
  }), this._onDrop(), this._disableDelayedDragEvents(), te.splice(te.indexOf(this.el), 1), this.el = t = null;
1771
1771
  },
1772
1772
  _hideClone: function() {
1773
1773
  if (!K) {
1774
- if (I("hideClone", this), y.eventCanceled)
1774
+ if (P("hideClone", this), y.eventCanceled)
1775
1775
  return;
1776
1776
  g($, "display", "none"), this.options.removeCloneOnHide && $.parentNode && $.parentNode.removeChild($), K = !0;
1777
1777
  }
@@ -1782,9 +1782,9 @@ y.prototype = /** @lends Sortable.prototype */
1782
1782
  return;
1783
1783
  }
1784
1784
  if (K) {
1785
- if (I("showClone", this), y.eventCanceled)
1785
+ if (P("showClone", this), y.eventCanceled)
1786
1786
  return;
1787
- u.parentNode == C && !this.options.group.revertClone ? C.insertBefore($, u) : st ? C.insertBefore($, st) : C.appendChild($), this.options.group.revertClone && this.animate(u, $), g($, "display", ""), K = !1;
1787
+ h.parentNode == C && !this.options.group.revertClone ? C.insertBefore($, h) : st ? C.insertBefore($, st) : C.appendChild($), this.options.group.revertClone && this.animate(h, $), g($, "display", ""), K = !1;
1788
1788
  }
1789
1789
  }
1790
1790
  };
@@ -1792,11 +1792,11 @@ function bn(i) {
1792
1792
  i.dataTransfer && (i.dataTransfer.dropEffect = "move"), i.cancelable && i.preventDefault();
1793
1793
  }
1794
1794
  function Ft(i, t, e, n, r, o, a, l) {
1795
- var s, d = i[R], p = d.options.onMove, h;
1795
+ var s, d = i[R], p = d.options.onMove, u;
1796
1796
  return window.CustomEvent && !tt && !ie ? s = new CustomEvent("move", {
1797
1797
  bubbles: !0,
1798
1798
  cancelable: !0
1799
- }) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = t, s.from = i, s.dragged = e, s.draggedRect = n, s.related = r || t, s.relatedRect = o || D(t), s.willInsertAfter = l, s.originalEvent = a, i.dispatchEvent(s), p && (h = p.call(d, s, a)), h;
1799
+ }) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = t, s.from = i, s.dragged = e, s.draggedRect = n, s.related = r || t, s.relatedRect = o || D(t), s.willInsertAfter = l, s.originalEvent = a, i.dispatchEvent(s), p && (u = p.call(d, s, a)), u;
1800
1800
  }
1801
1801
  function _e(i) {
1802
1802
  i.draggable = !1;
@@ -1813,20 +1813,20 @@ function wn(i, t, e) {
1813
1813
  return t ? i.clientX > n.right + r || i.clientX <= n.right && i.clientY > n.bottom && i.clientX >= n.left : i.clientX > n.right && i.clientY > n.top || i.clientX <= n.right && i.clientY > n.bottom + r;
1814
1814
  }
1815
1815
  function Cn(i, t, e, n, r, o, a, l) {
1816
- var s = n ? i.clientY : i.clientX, d = n ? e.height : e.width, p = n ? e.top : e.left, h = n ? e.bottom : e.right, c = !1;
1816
+ var s = n ? i.clientY : i.clientX, d = n ? e.height : e.width, p = n ? e.top : e.left, u = n ? e.bottom : e.right, c = !1;
1817
1817
  if (!a) {
1818
1818
  if (l && Wt < d * r) {
1819
- if (!Lt && (Ht === 1 ? s > p + d * o / 2 : s < h - d * o / 2) && (Lt = !0), Lt)
1819
+ if (!Lt && (Ht === 1 ? s > p + d * o / 2 : s < u - d * o / 2) && (Lt = !0), Lt)
1820
1820
  c = !0;
1821
- else if (Ht === 1 ? s < p + Wt : s > h - Wt)
1821
+ else if (Ht === 1 ? s < p + Wt : s > u - Wt)
1822
1822
  return -Ht;
1823
- } else if (s > p + d * (1 - r) / 2 && s < h - d * (1 - r) / 2)
1823
+ } else if (s > p + d * (1 - r) / 2 && s < u - d * (1 - r) / 2)
1824
1824
  return $n(t);
1825
1825
  }
1826
- return c = c || a, c && (s < p + d * o / 2 || s > h - d * o / 2) ? s > p + d / 2 ? 1 : -1 : 0;
1826
+ return c = c || a, c && (s < p + d * o / 2 || s > u - d * o / 2) ? s > p + d / 2 ? 1 : -1 : 0;
1827
1827
  }
1828
1828
  function $n(i) {
1829
- return B(u) < B(i) ? 1 : -1;
1829
+ return B(h) < B(i) ? 1 : -1;
1830
1830
  }
1831
1831
  function An(i) {
1832
1832
  for (var t = i.tagName + i.className + i.src + i.href + i.textContent, e = t.length, n = 0; e--; )
@@ -1851,7 +1851,7 @@ ne && w(document, "touchmove", function(i) {
1851
1851
  });
1852
1852
  y.utils = {
1853
1853
  on: w,
1854
- off: _,
1854
+ off: E,
1855
1855
  css: g,
1856
1856
  find: Ci,
1857
1857
  is: function(t, e) {
@@ -1889,8 +1889,8 @@ var Oi = function(t) {
1889
1889
  if (e) {
1890
1890
  var d = n || o;
1891
1891
  l();
1892
- var p = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, h = document.elementFromPoint(p.clientX, p.clientY);
1893
- s(), d && !d.el.contains(h) && (a("spill"), this.onSpill({
1892
+ var p = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, u = document.elementFromPoint(p.clientX, p.clientY);
1893
+ s(), d && !d.el.contains(u) && (a("spill"), this.onSpill({
1894
1894
  dragEl: r,
1895
1895
  putSortable: n
1896
1896
  }));
@@ -1912,7 +1912,7 @@ Hi.prototype = {
1912
1912
  },
1913
1913
  drop: Oi
1914
1914
  };
1915
- J(Hi, {
1915
+ Q(Hi, {
1916
1916
  pluginName: "revertOnSpill"
1917
1917
  });
1918
1918
  function Li() {
@@ -1924,10 +1924,10 @@ Li.prototype = {
1924
1924
  },
1925
1925
  drop: Oi
1926
1926
  };
1927
- J(Li, {
1927
+ Q(Li, {
1928
1928
  pluginName: "removeOnSpill"
1929
1929
  });
1930
- const Pi = `
1930
+ const Ii = `
1931
1931
  :host {
1932
1932
  display: block;
1933
1933
  }
@@ -2131,7 +2131,7 @@ input[type=checkbox]:checked:after {
2131
2131
  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");
2132
2132
 
2133
2133
  }
2134
- `, Ii = `
2134
+ `, Pi = `
2135
2135
  * {
2136
2136
  font-family: Roboto, sans-serif;
2137
2137
  }
@@ -2305,7 +2305,7 @@ var Hn = Object.defineProperty, Ln = Object.getOwnPropertyDescriptor, x = (i, t,
2305
2305
  };
2306
2306
  let V = class extends vt {
2307
2307
  constructor() {
2308
- super(...arguments), this.layerIdentifier = "ol_uid", this.layerTitle = "title", this.sortBy = "layerOrder", this.layerConfig = ["opacity"], this.externalLayerConfig = void 0, this.filterLayers = (i, t, e) => {
2308
+ super(...arguments), this.for = "eox-map", this.layerIdentifier = "id", this.layerTitle = "title", this.sortBy = "layerOrder", this.layerConfig = ["opacity"], this.externalLayerConfig = void 0, this.filterLayers = (i, t, e) => {
2309
2309
  let n = [];
2310
2310
  const r = (o, a, l) => {
2311
2311
  n = [...n, ...o.filter((d) => d.get(a) === l)];
@@ -2323,8 +2323,16 @@ let V = class extends vt {
2323
2323
  i.declutter_ !== void 0 ? "vector" : "raster"
2324
2324
  );
2325
2325
  }
2326
+ attachTo(i) {
2327
+ this.olMap = i, this.requestUpdate();
2328
+ }
2326
2329
  _updateControl(i) {
2327
- this.layerCollection = i, this.optionalLayerArray = this.filterLayers(
2330
+ const t = (e) => {
2331
+ e.forEach((n) => {
2332
+ n.get(this.layerIdentifier) || n.set(this.layerIdentifier, n.ol_uid), n.get(this.layerTitle) || n.set(this.layerTitle, `layer ${n.ol_uid}`), n.getLayers && t(n.getLayers().getArray());
2333
+ });
2334
+ };
2335
+ t(i.getArray()), this.layerCollection = i, this.optionalLayerArray = this.filterLayers(
2328
2336
  i.getArray(),
2329
2337
  "layerControlOptional",
2330
2338
  !0
@@ -2372,104 +2380,106 @@ let V = class extends vt {
2372
2380
  this.requestUpdate();
2373
2381
  }
2374
2382
  render() {
2375
- var o;
2376
- const i = document.querySelector(this.for), t = i.map || i, e = t.getLayers();
2377
- this._updateControl(e), e.on("change:length", () => {
2378
- this._currentlySorting || this._updateControl(e);
2383
+ var r;
2384
+ const i = document.querySelector(this.for);
2385
+ if (i && (this.olMap = (i == null ? void 0 : i.map) || i), !this.olMap)
2386
+ return _;
2387
+ const t = this.olMap.getLayers();
2388
+ this._updateControl(t), t.on("change:length", () => {
2389
+ this._currentlySorting || this._updateControl(t);
2379
2390
  });
2380
- const n = (a, l) => {
2381
- var s;
2382
- return L`
2391
+ const e = (o, a) => {
2392
+ var l;
2393
+ return O`
2383
2394
  <details>
2384
2395
  <summary>
2385
2396
  <div class="layer">
2386
2397
  <div class="left">
2387
2398
  <input
2388
- type="${a.get("layerControlExclusive") ? "radio" : "checkbox"}"
2389
- .checked="${$e(a.getVisible())}"
2399
+ type="${o.get("layerControlExclusive") ? "radio" : "checkbox"}"
2400
+ .checked="${$e(o.getVisible())}"
2390
2401
  @click=${() => {
2391
- this.toggleLayerVisibility(a, l);
2402
+ this.toggleLayerVisibility(o, a);
2392
2403
  }}
2393
2404
  />
2394
2405
  <span class="title"
2395
- >${a.get(this.layerTitle) || `${// @ts-ignore
2396
- a.get(this.layerIdentifier)}`}
2406
+ >${o.get(this.layerTitle) || `${o.get(this.layerIdentifier)}`}
2397
2407
  </span>
2398
2408
  </div>
2399
2409
  <div class="right">
2400
- ${this.sortBy === "layerOrder" && !this.unstyled ? L` <div
2401
- class="drag-handle ${a.get("layerControlDisable") ? "disabled" : ""}"
2410
+ ${this.sortBy === "layerOrder" && !this.unstyled ? O` <div
2411
+ class="drag-handle ${o.get("layerControlDisable") ? "disabled" : ""}"
2402
2412
  >
2403
2413
  <span>=</span>
2404
- </div>` : E}
2414
+ </div>` : _}
2405
2415
  </div>
2406
2416
  </div>
2407
2417
  </summary>
2408
- ${this.layerConfig ? L`
2418
+ ${this.layerConfig ? O`
2409
2419
  <eox-layerconfig
2410
2420
  .layerConfig="${this.layerConfig}"
2411
2421
  .layerControl="${this}"
2412
- .layer=${a}
2422
+ .layer=${o}
2413
2423
  .external=${this.externalLayerConfig}
2414
2424
  .unstyled="${this.unstyled}"
2415
2425
  ></eox-layerconfig>
2416
- ` : E}
2426
+ ` : _}
2417
2427
  ${// @ts-ignore
2418
- this.externalLayerConfig && ((s = a.style_) != null && s.color) ? L`
2419
- <button @click=${() => this._emitLayerconfig(a)}>
2428
+ this.externalLayerConfig && ((l = o.style_) != null && l.color) ? O`
2429
+ <button @click=${() => this._emitLayerconfig(o)}>
2420
2430
  configure
2421
2431
  </button>
2422
- ` : E}
2432
+ ` : _}
2423
2433
  ${// @ts-ignore
2424
- a.getLayers ? L`
2425
- ${r(
2434
+ o.getLayers ? O`
2435
+ ${n(
2426
2436
  this.preFilterLayers(
2427
2437
  // @ts-ignore
2428
- [...a.getLayers().getArray()].reverse()
2438
+ [...o.getLayers().getArray()].reverse()
2429
2439
  ),
2430
- a.get("id")
2440
+ o.get(this.layerIdentifier)
2431
2441
  )}
2432
- ` : E}
2442
+ ` : _}
2433
2443
  </details>
2434
2444
  `;
2435
- }, r = (a, l) => L`
2436
- <ul data-group="${l ?? E}">
2445
+ }, n = (o, a) => O`
2446
+ <ul data-group="${a ?? _}">
2437
2447
  ${Ce(
2438
- a,
2439
- (s) => s.get(this.layerIdentifier),
2440
- (s) => {
2441
- var d;
2442
- return L`
2448
+ o,
2449
+ (l) => l.get(this.layerIdentifier),
2450
+ (l) => {
2451
+ var s;
2452
+ return O`
2443
2453
  <li
2444
2454
  data-layer="${//@ts-ignore
2445
- s.get(this.layerIdentifier)}"
2446
- data-disabled="${s.get("layerControlDisable") || E}"
2447
- data-type="${this.getLayerType(s, t)}"
2448
- data-layerconfig="${((d = this.layerConfig) == null ? void 0 : d.length) > 0}"
2455
+ l.get(this.layerIdentifier)}"
2456
+ data-disabled="${l.get("layerControlDisable") || _}"
2457
+ data-type="${this.getLayerType(l, this.olMap)}"
2458
+ data-layerconfig="${((s = this.layerConfig) == null ? void 0 : s.length) > 0}"
2449
2459
  >
2450
- ${n(s, l)}
2460
+ ${e(l, a)}
2451
2461
  </li>
2452
2462
  `;
2453
2463
  }
2454
2464
  )}
2455
2465
  </ul>
2456
2466
  `;
2457
- return L`
2467
+ return O`
2458
2468
  <style>
2459
- ${Pi}
2460
- ${!this.unstyled && Ii}
2469
+ ${Ii}
2470
+ ${!this.unstyled && Pi}
2461
2471
  </style>
2462
2472
  <div>
2463
2473
  <slot></slot>
2464
- <input type="text" placeholder="Find layer" />
2474
+ ${this.layerCollection.getArray().length > 10 ? O`<input type="text" placeholder="Find layer" />` : _}
2465
2475
  <div class="layers">
2466
- ${r(
2467
- this.preFilterLayers(e.getArray())
2476
+ ${n(
2477
+ this.preFilterLayers(t.getArray())
2468
2478
  )}
2469
2479
  </div>
2470
2480
  ${bi(
2471
- ((o = this.optionalLayerArray) == null ? void 0 : o.length) > 0,
2472
- () => L`
2481
+ ((r = this.optionalLayerArray) == null ? void 0 : r.length) > 0,
2482
+ () => O`
2473
2483
  <label for="optional">Optional layers</label>
2474
2484
 
2475
2485
  <select name="optional">
@@ -2477,36 +2487,36 @@ let V = class extends vt {
2477
2487
  -- select an optional layer to add --
2478
2488
  </option>
2479
2489
  ${this.optionalLayerArray.map(
2480
- (a) => L`
2490
+ (o) => O`
2481
2491
  <option
2482
2492
  value="${// @ts-ignore
2483
- a.get(this.layerIdentifier)}"
2493
+ o.get(this.layerIdentifier)}"
2484
2494
  >
2485
- ${a.get(this.layerTitle) || `layer ${// @ts-ignore
2486
- a.get(this.layerIdentifier)}`}
2495
+ ${o.get(this.layerTitle) || `layer ${// @ts-ignore
2496
+ o.get(this.layerIdentifier)}`}
2487
2497
  </option>
2488
2498
  `
2489
2499
  )}
2490
2500
  </select>
2491
2501
  <button
2492
2502
  @click="${() => {
2493
- const a = this.optionalLayerArray.find(
2503
+ const o = this.optionalLayerArray.find(
2494
2504
  // @ts-ignore
2495
- (l) => l.get(this.layerIdentifier) === // @ts-ignore
2505
+ (a) => a.get(this.layerIdentifier) === // @ts-ignore
2496
2506
  this.shadowRoot.querySelector("select[name=optional]").value
2497
2507
  );
2498
- if (a.get("group")) {
2499
- const l = this.findLayerById(
2508
+ if (o.get("group")) {
2509
+ const a = this.findLayerById(
2500
2510
  this.layerCollection.getArray(),
2501
- a.get("group")
2511
+ o.get("group")
2502
2512
  );
2503
- l.getLayers().remove(a), l.getLayers().insertAt(l.getLayers().getLength(), a);
2513
+ a.getLayers().remove(o), a.getLayers().insertAt(a.getLayers().getLength(), o);
2504
2514
  } else
2505
- this.layerCollection.remove(a), this.layerCollection.insertAt(
2515
+ this.layerCollection.remove(o), this.layerCollection.insertAt(
2506
2516
  this.layerCollection.getLength(),
2507
- a
2517
+ o
2508
2518
  );
2509
- a.set("layerControlOptional", !1), a.setVisible(!0);
2519
+ o.set("layerControlOptional", !1), o.setVisible(!0);
2510
2520
  }}"
2511
2521
  >
2512
2522
  add
@@ -2624,23 +2634,23 @@ let Y = class extends vt {
2624
2634
  }))) : (this._layerControlElement = this.layerControl, this._currentLayer = this.layer, this._parseConfigs(this._currentLayer));
2625
2635
  }
2626
2636
  render() {
2627
- return L`
2637
+ return O`
2628
2638
  <style>
2629
- ${Pi}
2630
- ${!this.unstyled && Ii}
2639
+ ${Ii}
2640
+ ${!this.unstyled && Pi}
2631
2641
  </style>
2632
2642
  ${bi(
2633
2643
  this._currentLayer,
2634
- () => L`
2644
+ () => O`
2635
2645
  <div>
2636
2646
  <slot></slot>
2637
- ${this.for ? L`layer: ${this._currentLayer.get("name")}` : E}
2647
+ ${this.for ? O`layer: ${this._currentLayer.get("name")}` : _}
2638
2648
  ${Ce(
2639
2649
  this.layerConfig.filter(
2640
2650
  (i) => this.for ? i !== "opacity" : !0
2641
2651
  ),
2642
2652
  (i) => i,
2643
- (i) => L`
2653
+ (i) => O`
2644
2654
  <div class="slider-control">
2645
2655
  <div class="slider-property">${i}</div>
2646
2656
  <input
@@ -2654,14 +2664,14 @@ let Y = class extends vt {
2654
2664
  </div>
2655
2665
  `
2656
2666
  )}
2657
- ${Object.keys(this._configList).length > 0 && !this.external ? L`
2658
- <details open="${this.for ? !0 : E}">
2667
+ ${Object.keys(this._configList).length > 0 && !this.external ? O`
2668
+ <details open="${this.for ? !0 : _}">
2659
2669
  <summary>Layer config</summary>
2660
2670
  <ul>
2661
2671
  ${Ce(
2662
2672
  Object.keys(this._configList),
2663
2673
  (i) => i,
2664
- (i) => L` <li>
2674
+ (i) => O` <li>
2665
2675
  <div>${i}</div>
2666
2676
  <input
2667
2677
  type="range"
@@ -2677,7 +2687,7 @@ let Y = class extends vt {
2677
2687
  )}
2678
2688
  </ul>
2679
2689
  </details>
2680
- ` : E}
2690
+ ` : _}
2681
2691
  </div>
2682
2692
  `
2683
2693
  )}