@eox/drawtools 0.14.1-dev.1740731700.0 → 0.14.2

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,17 +1,17 @@
1
- var vn = Object.defineProperty;
1
+ var _n = Object.defineProperty;
2
2
  var Ue = (n) => {
3
3
  throw TypeError(n);
4
4
  };
5
- var Cn = (n, t, e) => t in n ? vn(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
6
- var R = (n, t, e) => Cn(n, typeof t != "symbol" ? t + "" : t, e), Xe = (n, t, e) => t.has(n) || Ue("Cannot " + e);
5
+ var vn = (n, t, e) => t in n ? _n(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
6
+ var R = (n, t, e) => vn(n, typeof t != "symbol" ? t + "" : t, e), Xe = (n, t, e) => t.has(n) || Ue("Cannot " + e);
7
7
  var M = (n, t, e) => (Xe(n, t, "read from private field"), e ? e.call(n) : t.get(n)), F = (n, t, e) => t.has(n) ? Ue("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, e), $ = (n, t, e, i) => (Xe(n, t, "write to private field"), i ? i.call(n, e) : t.set(n, e), e);
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2019 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const Lt = globalThis, fe = Lt.ShadowRoot && (Lt.ShadyCSS === void 0 || Lt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, bi = Symbol(), Ye = /* @__PURE__ */ new WeakMap();
14
- let wn = class {
13
+ const It = globalThis, fe = It.ShadowRoot && (It.ShadyCSS === void 0 || It.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, bi = Symbol(), Ye = /* @__PURE__ */ new WeakMap();
14
+ let Cn = class {
15
15
  constructor(t, e, i) {
16
16
  if (this._$cssResult$ = !0, i !== bi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
17
17
  this.cssText = t, this.t = e;
@@ -29,26 +29,26 @@ let wn = class {
29
29
  return this.cssText;
30
30
  }
31
31
  };
32
- const bn = (n) => new wn(typeof n == "string" ? n : n + "", void 0, bi), En = (n, t) => {
32
+ const wn = (n) => new Cn(typeof n == "string" ? n : n + "", void 0, bi), bn = (n, t) => {
33
33
  if (fe) n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
34
34
  else for (const e of t) {
35
- const i = document.createElement("style"), r = Lt.litNonce;
35
+ const i = document.createElement("style"), r = It.litNonce;
36
36
  r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, n.appendChild(i);
37
37
  }
38
38
  }, Be = fe ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
39
39
  let e = "";
40
40
  for (const i of t.cssRules) e += i.cssText;
41
- return bn(e);
41
+ return wn(e);
42
42
  })(n) : n;
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: xn, defineProperty: Pn, getOwnPropertyDescriptor: Mn, getOwnPropertyNames: Sn, getOwnPropertySymbols: $n, getPrototypeOf: An } = Object, I = globalThis, Ve = I.trustedTypes, Fn = Ve ? Ve.emptyScript : "", Dt = I.reactiveElementPolyfillSupport, dt = (n, t) => n, se = { toAttribute(n, t) {
48
+ const { is: En, defineProperty: xn, getOwnPropertyDescriptor: Pn, getOwnPropertyNames: Mn, getOwnPropertySymbols: Sn, getPrototypeOf: $n } = Object, L = globalThis, Ve = L.trustedTypes, An = Ve ? Ve.emptyScript : "", Kt = L.reactiveElementPolyfillSupport, dt = (n, t) => n, se = { toAttribute(n, t) {
49
49
  switch (t) {
50
50
  case Boolean:
51
- n = n ? Fn : null;
51
+ n = n ? An : null;
52
52
  break;
53
53
  case Object:
54
54
  case Array:
@@ -73,8 +73,8 @@ const { is: xn, defineProperty: Pn, getOwnPropertyDescriptor: Mn, getOwnProperty
73
73
  }
74
74
  }
75
75
  return e;
76
- } }, Ei = (n, t) => !xn(n, t), ze = { attribute: !0, type: String, converter: se, reflect: !1, hasChanged: Ei };
77
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), I.litPropertyMetadata ?? (I.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
76
+ } }, Ei = (n, t) => !En(n, t), ze = { attribute: !0, type: String, converter: se, reflect: !1, hasChanged: Ei };
77
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), L.litPropertyMetadata ?? (L.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
78
  class tt extends HTMLElement {
79
79
  static addInitializer(t) {
80
80
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
@@ -85,11 +85,11 @@ class tt extends HTMLElement {
85
85
  static createProperty(t, e = ze) {
86
86
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
87
87
  const i = Symbol(), r = this.getPropertyDescriptor(t, i, e);
88
- r !== void 0 && Pn(this.prototype, t, r);
88
+ r !== void 0 && xn(this.prototype, t, r);
89
89
  }
90
90
  }
91
91
  static getPropertyDescriptor(t, e, i) {
92
- const { get: r, set: s } = Mn(this.prototype, t) ?? { get() {
92
+ const { get: r, set: s } = Pn(this.prototype, t) ?? { get() {
93
93
  return this[e];
94
94
  }, set(o) {
95
95
  this[e] = o;
@@ -106,13 +106,13 @@ class tt extends HTMLElement {
106
106
  }
107
107
  static _$Ei() {
108
108
  if (this.hasOwnProperty(dt("elementProperties"))) return;
109
- const t = An(this);
109
+ const t = $n(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
113
  if (this.hasOwnProperty(dt("finalized"))) return;
114
114
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(dt("properties"))) {
115
- const e = this.properties, i = [...Sn(e), ...$n(e)];
115
+ const e = this.properties, i = [...Mn(e), ...Sn(e)];
116
116
  for (const r of i) this.createProperty(r, e[r]);
117
117
  }
118
118
  const t = this[Symbol.metadata];
@@ -161,7 +161,7 @@ class tt extends HTMLElement {
161
161
  }
162
162
  createRenderRoot() {
163
163
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
164
- return En(t, this.constructor.elementStyles), t;
164
+ return bn(t, this.constructor.elementStyles), t;
165
165
  }
166
166
  connectedCallback() {
167
167
  var t;
@@ -273,28 +273,28 @@ class tt extends HTMLElement {
273
273
  firstUpdated(t) {
274
274
  }
275
275
  }
276
- tt.elementStyles = [], tt.shadowRootOptions = { mode: "open" }, tt[dt("elementProperties")] = /* @__PURE__ */ new Map(), tt[dt("finalized")] = /* @__PURE__ */ new Map(), Dt == null || Dt({ ReactiveElement: tt }), (I.reactiveElementVersions ?? (I.reactiveElementVersions = [])).push("2.0.4");
276
+ tt.elementStyles = [], tt.shadowRootOptions = { mode: "open" }, tt[dt("elementProperties")] = /* @__PURE__ */ new Map(), tt[dt("finalized")] = /* @__PURE__ */ new Map(), Kt == null || Kt({ ReactiveElement: tt }), (L.reactiveElementVersions ?? (L.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 gt = globalThis, Tt = gt.trustedTypes, Je = Tt ? Tt.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, xi = "$lit$", G = `lit$${Math.random().toFixed(9).slice(2)}$`, Pi = "?" + G, Gn = `<${Pi}>`, Y = document, ft = () => Y.createComment(""), pt = (n) => n === null || typeof n != "object" && typeof n != "function", pe = Array.isArray, In = (n) => pe(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", Qt = `[
282
+ const gt = globalThis, Tt = gt.trustedTypes, Je = Tt ? Tt.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, xi = "$lit$", G = `lit$${Math.random().toFixed(9).slice(2)}$`, Pi = "?" + G, Fn = `<${Pi}>`, Y = document, ft = () => Y.createComment(""), pt = (n) => n === null || typeof n != "object" && typeof n != "function", pe = Array.isArray, Gn = (n) => pe(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", Qt = `[
283
283
  \f\r]`, ut = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, We = /-->/g, qe = />/g, T = RegExp(`>|${Qt}(?:([^\\s"'>=/]+)(${Qt}*=${Qt}*(?:[^
284
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Ze = /'/g, Ke = /"/g, Mi = /^(?:script|style|textarea|title)$/i, Ln = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), H = Ln(1), ot = Symbol.for("lit-noChange"), C = Symbol.for("lit-nothing"), De = /* @__PURE__ */ new WeakMap(), O = Y.createTreeWalker(Y, 129);
284
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Ze = /'/g, De = /"/g, Mi = /^(?:script|style|textarea|title)$/i, Ln = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), H = Ln(1), ot = Symbol.for("lit-noChange"), C = Symbol.for("lit-nothing"), Ke = /* @__PURE__ */ new WeakMap(), O = Y.createTreeWalker(Y, 129);
285
285
  function Si(n, t) {
286
286
  if (!pe(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
287
287
  return Je !== void 0 ? Je.createHTML(t) : t;
288
288
  }
289
- const Rn = (n, t) => {
289
+ const In = (n, t) => {
290
290
  const e = n.length - 1, i = [];
291
291
  let r, s = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = ut;
292
292
  for (let a = 0; a < e; a++) {
293
293
  const l = n[a];
294
294
  let h, c, u = -1, d = 0;
295
- for (; d < l.length && (o.lastIndex = d, c = o.exec(l), c !== null); ) d = o.lastIndex, o === ut ? c[1] === "!--" ? o = We : c[1] !== void 0 ? o = qe : c[2] !== void 0 ? (Mi.test(c[2]) && (r = RegExp("</" + c[2], "g")), o = T) : c[3] !== void 0 && (o = T) : o === T ? c[0] === ">" ? (o = r ?? ut, u = -1) : c[1] === void 0 ? u = -2 : (u = o.lastIndex - c[2].length, h = c[1], o = c[3] === void 0 ? T : c[3] === '"' ? Ke : Ze) : o === Ke || o === Ze ? o = T : o === We || o === qe ? o = ut : (o = T, r = void 0);
295
+ for (; d < l.length && (o.lastIndex = d, c = o.exec(l), c !== null); ) d = o.lastIndex, o === ut ? c[1] === "!--" ? o = We : c[1] !== void 0 ? o = qe : c[2] !== void 0 ? (Mi.test(c[2]) && (r = RegExp("</" + c[2], "g")), o = T) : c[3] !== void 0 && (o = T) : o === T ? c[0] === ">" ? (o = r ?? ut, u = -1) : c[1] === void 0 ? u = -2 : (u = o.lastIndex - c[2].length, h = c[1], o = c[3] === void 0 ? T : c[3] === '"' ? De : Ze) : o === De || o === Ze ? o = T : o === We || o === qe ? o = ut : (o = T, r = void 0);
296
296
  const g = o === T && n[a + 1].startsWith("/>") ? " " : "";
297
- s += o === ut ? l + Gn : u >= 0 ? (i.push(h), l.slice(0, u) + xi + l.slice(u) + G + g) : l + G + (u === -2 ? a : g);
297
+ s += o === ut ? l + Fn : u >= 0 ? (i.push(h), l.slice(0, u) + xi + l.slice(u) + G + g) : l + G + (u === -2 ? a : g);
298
298
  }
299
299
  return [Si(n, s + (n[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
300
300
  };
@@ -303,7 +303,7 @@ class yt {
303
303
  let r;
304
304
  this.parts = [];
305
305
  let s = 0, o = 0;
306
- const a = t.length - 1, l = this.parts, [h, c] = Rn(t, e);
306
+ const a = t.length - 1, l = this.parts, [h, c] = In(t, e);
307
307
  if (this.el = yt.createElement(h, i), O.currentNode = this.el.content, e === 2 || e === 3) {
308
308
  const u = this.el.content.firstChild;
309
309
  u.replaceWith(...u.childNodes);
@@ -312,7 +312,7 @@ class yt {
312
312
  if (r.nodeType === 1) {
313
313
  if (r.hasAttributes()) for (const u of r.getAttributeNames()) if (u.endsWith(xi)) {
314
314
  const d = c[o++], g = r.getAttribute(u).split(G), f = /([.?@])?(.*)/.exec(d);
315
- l.push({ type: 1, index: s, name: f[2], strings: g, ctor: f[1] === "." ? Nn : f[1] === "?" ? On : f[1] === "@" ? kn : Xt }), r.removeAttribute(u);
315
+ l.push({ type: 1, index: s, name: f[2], strings: g, ctor: f[1] === "." ? Tn : f[1] === "?" ? Nn : f[1] === "@" ? On : Xt }), r.removeAttribute(u);
316
316
  } else u.startsWith(G) && (l.push({ type: 6, index: s }), r.removeAttribute(u));
317
317
  if (Mi.test(r.tagName)) {
318
318
  const u = r.textContent.split(G), d = u.length - 1;
@@ -342,7 +342,7 @@ function at(n, t, e = n, i) {
342
342
  const s = pt(t) ? void 0 : t._$litDirective$;
343
343
  return (r == null ? void 0 : r.constructor) !== s && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), s === void 0 ? r = void 0 : (r = new s(n), r._$AT(n, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t = at(n, r._$AS(n, t.values), r, i)), t;
344
344
  }
345
- let Tn = class {
345
+ let Rn = class {
346
346
  constructor(t, e) {
347
347
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
348
348
  }
@@ -359,7 +359,7 @@ let Tn = class {
359
359
  for (; l !== void 0; ) {
360
360
  if (o === l.index) {
361
361
  let h;
362
- l.type === 2 ? h = new ye(s, s.nextSibling, this, t) : l.type === 1 ? h = new l.ctor(s, l.name, l.strings, this, t) : l.type === 6 && (h = new jn(s, this, t)), this._$AV.push(h), l = i[++a];
362
+ l.type === 2 ? h = new ye(s, s.nextSibling, this, t) : l.type === 1 ? h = new l.ctor(s, l.name, l.strings, this, t) : l.type === 6 && (h = new kn(s, this, t)), this._$AV.push(h), l = i[++a];
363
363
  }
364
364
  o !== (l == null ? void 0 : l.index) && (s = O.nextNode(), o++);
365
365
  }
@@ -389,7 +389,7 @@ let Tn = class {
389
389
  return this._$AB;
390
390
  }
391
391
  _$AI(t, e = this) {
392
- t = at(this, t, e), pt(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) : In(t) ? this.k(t) : this._(t);
392
+ t = at(this, t, e), pt(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) : Gn(t) ? this.k(t) : this._(t);
393
393
  }
394
394
  O(t) {
395
395
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -405,13 +405,13 @@ let Tn = class {
405
405
  const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = yt.createElement(Si(i.h, i.h[0]), this.options)), i);
406
406
  if (((s = this._$AH) == null ? void 0 : s._$AD) === r) this._$AH.p(e);
407
407
  else {
408
- const o = new Tn(r, this), a = o.u(this.options);
408
+ const o = new Rn(r, this), a = o.u(this.options);
409
409
  o.p(e), this.T(a), this._$AH = o;
410
410
  }
411
411
  }
412
412
  _$AC(t) {
413
- let e = De.get(t.strings);
414
- return e === void 0 && De.set(t.strings, e = new yt(t)), e;
413
+ let e = Ke.get(t.strings);
414
+ return e === void 0 && Ke.set(t.strings, e = new yt(t)), e;
415
415
  }
416
416
  k(t) {
417
417
  pe(this._$AH) || (this._$AH = [], this._$AR());
@@ -457,7 +457,7 @@ class Xt {
457
457
  t === C ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
458
458
  }
459
459
  }
460
- class Nn extends Xt {
460
+ class Tn extends Xt {
461
461
  constructor() {
462
462
  super(...arguments), this.type = 3;
463
463
  }
@@ -465,7 +465,7 @@ class Nn extends Xt {
465
465
  this.element[this.name] = t === C ? void 0 : t;
466
466
  }
467
467
  }
468
- class On extends Xt {
468
+ class Nn extends Xt {
469
469
  constructor() {
470
470
  super(...arguments), this.type = 4;
471
471
  }
@@ -473,7 +473,7 @@ class On extends Xt {
473
473
  this.element.toggleAttribute(this.name, !!t && t !== C);
474
474
  }
475
475
  }
476
- class kn extends Xt {
476
+ class On extends Xt {
477
477
  constructor(t, e, i, r, s) {
478
478
  super(t, e, i, r, s), this.type = 5;
479
479
  }
@@ -487,7 +487,7 @@ class kn extends Xt {
487
487
  typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
488
488
  }
489
489
  }
490
- class jn {
490
+ class kn {
491
491
  constructor(t, e, i) {
492
492
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
493
493
  }
@@ -500,7 +500,7 @@ class jn {
500
500
  }
501
501
  const te = gt.litHtmlPolyfillSupport;
502
502
  te == null || te(yt, ye), (gt.litHtmlVersions ?? (gt.litHtmlVersions = [])).push("3.2.1");
503
- const Hn = (n, t, e) => {
503
+ const jn = (n, t, e) => {
504
504
  const i = (e == null ? void 0 : e.renderBefore) ?? t;
505
505
  let r = i._$litPart$;
506
506
  if (r === void 0) {
@@ -525,7 +525,7 @@ class U extends tt {
525
525
  }
526
526
  update(t) {
527
527
  const e = this.render();
528
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Hn(e, this.renderRoot, this.renderOptions);
528
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = jn(e, this.renderRoot, this.renderOptions);
529
529
  }
530
530
  connectedCallback() {
531
531
  var t;
@@ -549,8 +549,8 @@ ee == null || ee({ LitElement: U });
549
549
  * Copyright 2017 Google LLC
550
550
  * SPDX-License-Identifier: BSD-3-Clause
551
551
  */
552
- const Un = (n) => (...t) => ({ _$litDirective$: n, values: t });
553
- let Xn = class {
552
+ const Hn = (n) => (...t) => ({ _$litDirective$: n, values: t });
553
+ let Un = class {
554
554
  constructor(t) {
555
555
  }
556
556
  get _$AU() {
@@ -571,13 +571,13 @@ let Xn = class {
571
571
  * Copyright 2020 Google LLC
572
572
  * SPDX-License-Identifier: BSD-3-Clause
573
573
  */
574
- const Yn = {}, Bn = (n, t = Yn) => n._$AH = t;
574
+ const Xn = {}, Yn = (n, t = Xn) => n._$AH = t;
575
575
  /**
576
576
  * @license
577
577
  * Copyright 2021 Google LLC
578
578
  * SPDX-License-Identifier: BSD-3-Clause
579
579
  */
580
- const Vn = Un(class extends Xn {
580
+ const Bn = Hn(class extends Un {
581
581
  constructor() {
582
582
  super(...arguments), this.key = C;
583
583
  }
@@ -585,10 +585,10 @@ const Vn = Un(class extends Xn {
585
585
  return this.key = n, t;
586
586
  }
587
587
  update(n, [t, e]) {
588
- return t !== this.key && (Bn(n), this.key = t), e;
588
+ return t !== this.key && (Yn(n), this.key = t), e;
589
589
  }
590
- }), zn = (n) => {
591
- n.hoverInteraction = n.eoxMap.selectInteractions.selectHover, n.clickInteraction = n.eoxMap.selectInteractions.selectClick;
590
+ }), Vn = (n) => {
591
+ n.hoverInteraction = n.eoxMap.selectInteractions.SelectLayerHoverInteraction, n.clickInteraction = n.eoxMap.selectInteractions.SelectLayerClickInteraction;
592
592
  const t = () => {
593
593
  n.requestUpdate();
594
594
  };
@@ -599,13 +599,13 @@ const Vn = Un(class extends Xn {
599
599
  "change",
600
600
  t
601
601
  );
602
- }, Jn = (n, t, e) => {
602
+ }, zn = (n, t, e) => {
603
603
  if (n.clickId === t) return;
604
604
  const i = e ? [] : [t];
605
605
  n.hoverInteraction.highlightById(i);
606
- }, Wn = (n, t) => {
606
+ }, Jn = (n, t) => {
607
607
  n.stopPropagation();
608
- const e = Number(n.target.getAttribute("index")), i = t.drawnFeatures[e];
608
+ const e = Number(n.target.getAttribute("index")), i = t.drawLayer.getSource().getFeatures()[e];
609
609
  t.drawLayer.getSource().removeFeature(i), t.drawnFeatures.splice(e, 1), t.requestUpdate();
610
610
  }, Qe = {
611
611
  duration: 750,
@@ -613,7 +613,7 @@ const Vn = Un(class extends Xn {
613
613
  }, ti = {
614
614
  type: "FeatureCollection",
615
615
  features: []
616
- }, qn = (n, t) => {
616
+ }, Wn = (n, t) => {
617
617
  const { clickId: e, drawLayer: i, olMap: r, clickInteraction: s } = t, o = s.getId(n);
618
618
  if (e === o) {
619
619
  const l = i.getSource().getExtent();
@@ -623,7 +623,7 @@ const Vn = Un(class extends Xn {
623
623
  s.highlightById([o]), r.getView().fit(c, Qe);
624
624
  }
625
625
  t.requestUpdate();
626
- }, Zn = "ul.list-wrap { padding: 0;}ul.list-wrap li:hover,ul.list-wrap li.selected { background: var(--secondary-bg-color-hover);}ul.list-wrap li { list-style: none; padding: 4px;}ul.list-wrap li { border-bottom: 1.2px solid var(--secondary-color);}ul.list-wrap li:first-child { border-top: 1.2px solid var(--secondary-color);}ul.list-wrap li .list { width: 100%; align-items: center; justify-content: space-between; display: flex; align-items: center; cursor: pointer; font-size: small; gap: 10px;}ul.list-wrap li .list span { display: flex; align-items: center; cursor: pointer; font-size: small; flex-grow: 1;}";
626
+ }, qn = "ul.list-wrap { padding: 0;}ul.list-wrap li:hover,ul.list-wrap li.selected { background: var(--secondary-bg-color-hover);}ul.list-wrap li { list-style: none; padding: 4px;}ul.list-wrap li { border-bottom: 1.2px solid var(--secondary-color);}ul.list-wrap li:first-child { border-top: 1.2px solid var(--secondary-color);}ul.list-wrap li .list { width: 100%; align-items: center; justify-content: space-between; display: flex; align-items: center; cursor: pointer; font-size: small; gap: 10px;}ul.list-wrap li .list span { display: flex; align-items: center; cursor: pointer; font-size: small; flex-grow: 1;}";
627
627
  class Ai extends U {
628
628
  constructor() {
629
629
  super();
@@ -651,7 +651,7 @@ class Ai extends U {
651
651
  * @param {Event & { target: HTMLButtonElement }} evt - Event object containing button target.
652
652
  */
653
653
  _handleDelete(e) {
654
- Wn(e, this), this.dispatchEvent(new CustomEvent("changed", { bubbles: !0 }));
654
+ Jn(e, this), this.dispatchEvent(new CustomEvent("changed", { bubbles: !0 }));
655
655
  }
656
656
  /**
657
657
  * Handles the selection and deselection of a feature from the list.
@@ -659,7 +659,7 @@ class Ai extends U {
659
659
  * @param {import("ol").Feature} feature - The selected feature.
660
660
  */
661
661
  _handleFeatureSelectAndDeselect(e) {
662
- qn(e, this);
662
+ Wn(e, this);
663
663
  }
664
664
  /**
665
665
  *
@@ -667,13 +667,13 @@ class Ai extends U {
667
667
  * @param {Boolean} mouseOut - Flag indicating mouse out event.
668
668
  */
669
669
  _handleHoverFeature(e, i = !1) {
670
- Jn(this, e, i);
670
+ zn(this, e, i);
671
671
  }
672
672
  /**
673
673
  * Initiates initial settings and event triggers upon the component's first update.
674
674
  */
675
675
  firstUpdated() {
676
- zn(this);
676
+ Vn(this);
677
677
  }
678
678
  /**
679
679
  * Overrides createRenderRoot to handle shadow DOM.
@@ -685,14 +685,14 @@ class Ai extends U {
685
685
  var e, i;
686
686
  return this.hoverId = (e = this.hoverInteraction) == null ? void 0 : e.selectedFids[0], this.clickId = (i = this.clickInteraction) == null ? void 0 : i.selectedFids[0], H`
687
687
  <style>
688
- ${!this.unstyled && Zn}
688
+ ${!this.unstyled && qn}
689
689
  </style>
690
690
  <ul class="list-wrap">
691
691
  ${this.drawnFeatures.map((r, s) => {
692
692
  const o = s + 1, a = Object.values(
693
693
  this.eoxMap.selectInteractions
694
694
  )[0].getId(r), l = this.hoverId === a, h = this.clickId === a;
695
- return Vn(
695
+ return Bn(
696
696
  o,
697
697
  H`
698
698
  <li
@@ -709,6 +709,7 @@ class Ai extends U {
709
709
  >
710
710
  <button
711
711
  index=${s}
712
+ data-cy="deleteFeatureBtn"
712
713
  class="icon smallest discard"
713
714
  @click="${this._handleDelete}"
714
715
  >
@@ -735,11 +736,11 @@ R(Ai, "properties", {
735
736
  unstyled: { type: Boolean }
736
737
  });
737
738
  customElements.define("eox-drawtools-list", Ai);
738
- const Kn = (n) => {
739
+ const Zn = (n) => {
739
740
  const { multipleFeatures: t, drawnFeatures: e, currentlyDrawing: i } = n, r = !t && (e == null ? void 0 : e.length) > 0 || i, s = !(e != null && e.length) && !i;
740
741
  return { drawDisabled: r, discardDisabled: s };
741
- }, Dn = "button,.button { /* TODO: why does this only work here and not from :root? */ --primary-color: #004170; --primary-color-hover: #004170cc; --error-color: #ff5252; display: inline-flex; position: relative; align-items: center; color: #fff; border-width: 0; outline: none; border-radius: 4px; padding: 16px; height: 36px; cursor: pointer; font-family: inherit; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 500; box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); transition-property: box-shadow, transform, opacity, background; transition-duration: 0.28s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);}button:hover:not([disabled]):not(.icon),.button:hover:not([disabled]):not(.icon) { box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); background: var(--primary-color-hover);}button,button:active,.button,.button:active { background: var(--primary-color);}button[disabled],.button[disabled] { opacity: 0.5; cursor: not-allowed;}button.block,.button.block { display: block;}button.outline,.button.outline { background: transparent; box-shadow: none; color: var(--primary-color); outline: 1px solid var(--primary-color);}button.outline:hover,.button.outline:hover { background: transparent;}button.icon,.button.icon { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 50%; width: 24px; height: 24px; text-indent: -9999px;}button.icon-text,.button.icon-text { text-indent: 26px;}button.icon-text.block,.button.icon-text.block { text-indent: 20px;}button.icon:before,button.icon-text:before,.button.icon:before,.button.icon-text:before { position: absolute; text-indent: 0; line-height: initial;}button.icon-text.block:before,.button.icon-text.block:before { text-indent: -54px;}button.icon:before,.button.icon:before { width: 24px; height: 24px; margin-right: 0;}button.icon-text:before,.button.icon-text:before { width: 18px; height: 18px;}button.small,.button.small { height: 28px; padding: 12.4px; font-size: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0px;}", Qn = 'textarea { height: 90px; resize: none; border-radius: 4px; box-sizing: border-box !important; width: 100%; padding: 5px 7px; border: 1px solid var(--secondary-color); font-size: smaller; background: var(--background-color);}input,input[type="text"],input[type="url"],input[type="email"],input[type="password"],input[type="text"],input[type="number"],input[type="search"],input[type="tel"],select { box-sizing: border-box; width: 100%; margin-top: 0.5rem; margin-bottom: 0.5rem; padding: 5px 7px; border-radius: 4px; border: 1px solid #0004; background-color: var(--background-color);}';
742
- function tr(n) {
742
+ }, Dn = "button,.button { /* TODO: why does this only work here and not from :root? */ --primary-color: #004170; --primary-color-hover: #004170cc; --error-color: #ff5252; display: inline-flex; position: relative; align-items: center; color: #fff; border-width: 0; outline: none; border-radius: 4px; padding: 16px; height: 36px; cursor: pointer; font-family: inherit; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 500; box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); transition-property: box-shadow, transform, opacity, background; transition-duration: 0.28s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);}button:hover:not([disabled]):not(.icon),.button:hover:not([disabled]):not(.icon) { box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); background: var(--primary-color-hover);}button,button:active,.button,.button:active { background: var(--primary-color);}button[disabled],.button[disabled] { opacity: 0.5; cursor: not-allowed;}button.block,.button.block { display: block;}button.outline,.button.outline { background: transparent; box-shadow: none; color: var(--primary-color); outline: 1px solid var(--primary-color);}button.outline:hover,.button.outline:hover { background: transparent;}button.icon,.button.icon { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 50%; width: 24px; height: 24px; text-indent: -9999px;}button.icon-text,.button.icon-text { text-indent: 26px;}button.icon-text.block,.button.icon-text.block { text-indent: 20px;}button.icon:before,button.icon-text:before,.button.icon:before,.button.icon-text:before { position: absolute; text-indent: 0; line-height: initial;}button.icon-text.block:before,.button.icon-text.block:before { text-indent: -54px;}button.icon:before,.button.icon:before { width: 24px; height: 24px; margin-right: 0;}button.icon-text:before,.button.icon-text:before { width: 18px; height: 18px;}button.small,.button.small { height: 28px; padding: 12.4px; font-size: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0px;}", Kn = 'textarea { height: 90px; resize: none; border-radius: 4px; box-sizing: border-box !important; width: 100%; padding: 5px 7px; border: 1px solid var(--secondary-color); font-size: smaller; background: var(--background-color);}input,input[type="text"],input[type="url"],input[type="email"],input[type="password"],input[type="text"],input[type="number"],input[type="search"],input[type="tel"],select { box-sizing: border-box; width: 100%; margin-top: 0.5rem; margin-bottom: 0.5rem; padding: 5px 7px; border-radius: 4px; border: 1px solid #0004; background-color: var(--background-color);}';
743
+ function Qn(n) {
743
744
  navigator.clipboard.writeText(n).then(
744
745
  function() {
745
746
  },
@@ -748,7 +749,7 @@ function tr(n) {
748
749
  }
749
750
  );
750
751
  }
751
- const er = {
752
+ const tr = {
752
753
  /**
753
754
  * Triggered when a property is changed.
754
755
  * @event module:ol/Object.ObjectEvent#propertychange
@@ -763,7 +764,7 @@ const er = {
763
764
  */
764
765
  CHANGE: "change"
765
766
  };
766
- class ir {
767
+ class er {
767
768
  constructor() {
768
769
  this.disposed = !1;
769
770
  }
@@ -780,7 +781,7 @@ class ir {
780
781
  disposeInternal() {
781
782
  }
782
783
  }
783
- function nr(n, t, e) {
784
+ function ir(n, t, e) {
784
785
  let i, r;
785
786
  e = e || Fi;
786
787
  let s = 0, o = n.length, a = !1;
@@ -796,7 +797,7 @@ function A(n, t) {
796
797
  for (let r = 0; r < i; r++)
797
798
  n[n.length] = e[r];
798
799
  }
799
- function rr(n, t) {
800
+ function nr(n, t) {
800
801
  const e = n.length;
801
802
  if (e !== t.length)
802
803
  return !1;
@@ -811,14 +812,14 @@ function Gi(n) {
811
812
  let t, e, i;
812
813
  return function() {
813
814
  const r = Array.prototype.slice.call(arguments);
814
- return (!e || this !== i || !rr(r, e)) && (i = this, e = r, t = n.apply(this, arguments)), t;
815
+ return (!e || this !== i || !nr(r, e)) && (i = this, e = r, t = n.apply(this, arguments)), t;
815
816
  };
816
817
  }
817
- function Ii(n) {
818
+ function Li(n) {
818
819
  for (const t in n)
819
820
  delete n[t];
820
821
  }
821
- function Li(n) {
822
+ function Ii(n) {
822
823
  let t;
823
824
  for (t in n)
824
825
  return !1;
@@ -847,7 +848,7 @@ class Ri {
847
848
  this.propagationStopped = !0;
848
849
  }
849
850
  }
850
- class sr extends ir {
851
+ class rr extends er {
851
852
  /**
852
853
  * @param {*} [target] Default event target for dispatched events.
853
854
  */
@@ -906,7 +907,7 @@ class sr extends ir {
906
907
  * @override
907
908
  */
908
909
  disposeInternal() {
909
- this.listeners_ && Ii(this.listeners_);
910
+ this.listeners_ && Li(this.listeners_);
910
911
  }
911
912
  /**
912
913
  * Get the listeners for a specified event type. Listeners are returned in the
@@ -958,9 +959,9 @@ function ii(n, t, e, i) {
958
959
  return mt(n, t, e, i, !0);
959
960
  }
960
961
  function Nt(n) {
961
- n && n.target && (n.target.removeEventListener(n.type, n.listener), Ii(n));
962
+ n && n.target && (n.target.removeEventListener(n.type, n.listener), Li(n));
962
963
  }
963
- class Yt extends sr {
964
+ class Yt extends rr {
964
965
  constructor() {
965
966
  super(), this.on = /** @type {ObservableOnSignature<import("./events").EventsKey>} */
966
967
  this.onInternal, this.once = /** @type {ObservableOnSignature<import("./events").EventsKey>} */
@@ -1037,7 +1038,7 @@ class Yt extends sr {
1037
1038
  e.ol_key
1038
1039
  );
1039
1040
  if (i)
1040
- or(i);
1041
+ sr(i);
1041
1042
  else if (Array.isArray(t))
1042
1043
  for (let r = 0, s = t.length; r < s; ++r)
1043
1044
  this.removeEventListener(t[r], e);
@@ -1048,7 +1049,7 @@ class Yt extends sr {
1048
1049
  Yt.prototype.on;
1049
1050
  Yt.prototype.once;
1050
1051
  Yt.prototype.un;
1051
- function or(n) {
1052
+ function sr(n) {
1052
1053
  if (Array.isArray(n))
1053
1054
  for (let t = 0, e = n.length; t < e; ++t)
1054
1055
  Nt(n[t]);
@@ -1061,9 +1062,9 @@ function or(n) {
1061
1062
  function y() {
1062
1063
  throw new Error("Unimplemented abstract method.");
1063
1064
  }
1064
- let ar = 0;
1065
- function lr(n) {
1066
- return n.ol_uid || (n.ol_uid = String(++ar));
1065
+ let or = 0;
1066
+ function ar(n) {
1067
+ return n.ol_uid || (n.ol_uid = String(++or));
1067
1068
  }
1068
1069
  class ni extends Ri {
1069
1070
  /**
@@ -1080,7 +1081,7 @@ class Ti extends Yt {
1080
1081
  * @param {Object<string, *>} [values] An object with key-value pairs.
1081
1082
  */
1082
1083
  constructor(t) {
1083
- super(), this.on, this.once, this.un, lr(this), this.values_ = null, t !== void 0 && this.setProperties(t);
1084
+ super(), this.on, this.once, this.un, ar(this), this.values_ = null, t !== void 0 && this.setProperties(t);
1084
1085
  }
1085
1086
  /**
1086
1087
  * Gets a value.
@@ -1127,7 +1128,7 @@ class Ti extends Yt {
1127
1128
  */
1128
1129
  notify(t, e) {
1129
1130
  let i;
1130
- i = `change:${t}`, this.hasListener(i) && this.dispatchEvent(new ni(i, t, e)), i = er.PROPERTYCHANGE, this.hasListener(i) && this.dispatchEvent(new ni(i, t, e));
1131
+ i = `change:${t}`, this.hasListener(i) && this.dispatchEvent(new ni(i, t, e)), i = tr.PROPERTYCHANGE, this.hasListener(i) && this.dispatchEvent(new ni(i, t, e));
1131
1132
  }
1132
1133
  /**
1133
1134
  * @param {string} key Key name.
@@ -1187,11 +1188,11 @@ class Ti extends Yt {
1187
1188
  unset(t, e) {
1188
1189
  if (this.values_ && t in this.values_) {
1189
1190
  const i = this.values_[t];
1190
- delete this.values_[t], Li(this.values_) && (this.values_ = null), e || this.notify(t, i);
1191
+ delete this.values_[t], Ii(this.values_) && (this.values_ = null), e || this.notify(t, i);
1191
1192
  }
1192
1193
  }
1193
1194
  }
1194
- function hr(n, t) {
1195
+ function lr(n, t) {
1195
1196
  if (!n)
1196
1197
  throw new Error(t);
1197
1198
  }
@@ -1327,7 +1328,7 @@ class lt extends Ti {
1327
1328
  * @fires module:ol/events/Event~BaseEvent#event:change
1328
1329
  */
1329
1330
  setStyle(t) {
1330
- this.style_ = t, this.styleFunction_ = t ? cr(t) : void 0, this.changed();
1331
+ this.style_ = t, this.styleFunction_ = t ? hr(t) : void 0, this.changed();
1331
1332
  }
1332
1333
  /**
1333
1334
  * Set the feature id. The feature id is considered stable and may be used when
@@ -1352,11 +1353,11 @@ class lt extends Ti {
1352
1353
  this.removeChangeListener(this.geometryName_, this.handleGeometryChanged_), this.geometryName_ = t, this.addChangeListener(this.geometryName_, this.handleGeometryChanged_), this.handleGeometryChanged_();
1353
1354
  }
1354
1355
  }
1355
- function cr(n) {
1356
+ function hr(n) {
1356
1357
  if (typeof n == "function")
1357
1358
  return n;
1358
1359
  let t;
1359
- return Array.isArray(n) ? t = n : (hr(
1360
+ return Array.isArray(n) ? t = n : (lr(
1360
1361
  typeof /** @type {?} */
1361
1362
  n.getZIndex == "function",
1362
1363
  "Expected an `ol/style/Style` or an array of `ol/style/Style.js`"
@@ -1404,25 +1405,25 @@ function Ce(n, t, e, i, r) {
1404
1405
  const s = ve(r);
1405
1406
  return ji(s, n, t, e, i);
1406
1407
  }
1407
- function ur(n, t) {
1408
+ function cr(n, t) {
1408
1409
  return t[0] < n[0] && (n[0] = t[0]), t[2] > n[2] && (n[2] = t[2]), t[1] < n[1] && (n[1] = t[1]), t[3] > n[3] && (n[3] = t[3]), n;
1409
1410
  }
1410
1411
  function ji(n, t, e, i, r) {
1411
1412
  for (; e < i; e += r)
1412
- dr(n, t[e], t[e + 1]);
1413
+ ur(n, t[e], t[e + 1]);
1413
1414
  return n;
1414
1415
  }
1415
- function dr(n, t, e) {
1416
+ function ur(n, t, e) {
1416
1417
  n[0] = Math.min(n[0], t), n[1] = Math.min(n[1], e), n[2] = Math.max(n[2], t), n[3] = Math.max(n[3], e);
1417
1418
  }
1418
- function gr(n, t) {
1419
+ function dr(n, t) {
1419
1420
  let e;
1420
- return e = t(fr(n)), e || (e = t(pr(n)), e) || (e = t(mr(n)), e) || (e = t(yr(n)), e) ? e : !1;
1421
+ return e = t(gr(n)), e || (e = t(fr(n)), e) || (e = t(yr(n)), e) || (e = t(pr(n)), e) ? e : !1;
1421
1422
  }
1422
- function fr(n) {
1423
+ function gr(n) {
1423
1424
  return [n[0], n[1]];
1424
1425
  }
1425
- function pr(n) {
1426
+ function fr(n) {
1426
1427
  return [n[2], n[1]];
1427
1428
  }
1428
1429
  function Bt(n) {
@@ -1431,19 +1432,19 @@ function Bt(n) {
1431
1432
  function Ot(n) {
1432
1433
  return n[3] - n[1];
1433
1434
  }
1434
- function yr(n) {
1435
+ function pr(n) {
1435
1436
  return [n[0], n[3]];
1436
1437
  }
1437
- function mr(n) {
1438
+ function yr(n) {
1438
1439
  return [n[2], n[3]];
1439
1440
  }
1440
- function _r(n, t) {
1441
+ function mr(n, t) {
1441
1442
  return n[0] <= t[2] && n[2] >= t[0] && n[1] <= t[3] && n[3] >= t[1];
1442
1443
  }
1443
- function vr(n, t) {
1444
+ function _r(n, t) {
1444
1445
  return t ? (t[0] = n[0], t[1] = n[1], t[2] = n[2], t[3] = n[3], t) : n;
1445
1446
  }
1446
- function Cr(n, t, e) {
1447
+ function vr(n, t, e) {
1447
1448
  let i = !1;
1448
1449
  const r = ri(n, t), s = ri(n, e);
1449
1450
  if (r === w.INTERSECTING || s === w.INTERSECTING)
@@ -1455,7 +1456,7 @@ function Cr(n, t, e) {
1455
1456
  }
1456
1457
  return i;
1457
1458
  }
1458
- function wr(n, t, e, i, r, s) {
1459
+ function Cr(n, t, e, i, r, s) {
1459
1460
  const o = r - e, a = s - i;
1460
1461
  if (o !== 0 || a !== 0) {
1461
1462
  const l = ((n - e) * o + (t - i) * a) / (o * o + a * a);
@@ -1482,7 +1483,7 @@ function oe(n, t, e) {
1482
1483
  const i = e - t;
1483
1484
  return ((n - t) % i + i) % i + t;
1484
1485
  }
1485
- const br = {
1486
+ const wr = {
1486
1487
  // use the radius of the Normal sphere
1487
1488
  radians: 6370997 / (2 * Math.PI),
1488
1489
  degrees: 2 * Math.PI * 6370997 / 360,
@@ -1536,7 +1537,7 @@ class be {
1536
1537
  * @api
1537
1538
  */
1538
1539
  getMetersPerUnit() {
1539
- return this.metersPerUnit_ || br[this.units_];
1540
+ return this.metersPerUnit_ || wr[this.units_];
1540
1541
  }
1541
1542
  /**
1542
1543
  * Get the world extent for this projection.
@@ -1623,8 +1624,8 @@ class be {
1623
1624
  return this.getPointResolutionFunc_;
1624
1625
  }
1625
1626
  }
1626
- const St = 6378137, et = Math.PI * St, Er = [-et, -et, et, et], xr = [-180, -85, 180, 85], Ft = St * Math.log(Math.tan(Math.PI / 2));
1627
- class D extends be {
1627
+ const St = 6378137, et = Math.PI * St, br = [-et, -et, et, et], Er = [-180, -85, 180, 85], Ft = St * Math.log(Math.tan(Math.PI / 2));
1628
+ class K extends be {
1628
1629
  /**
1629
1630
  * @param {string} code Code.
1630
1631
  */
@@ -1632,9 +1633,9 @@ class D extends be {
1632
1633
  super({
1633
1634
  code: t,
1634
1635
  units: "m",
1635
- extent: Er,
1636
+ extent: br,
1636
1637
  global: !0,
1637
- worldExtent: xr,
1638
+ worldExtent: Er,
1638
1639
  getPointResolution: function(e, i) {
1639
1640
  return e / Math.cosh(i[1] / St);
1640
1641
  }
@@ -1642,14 +1643,14 @@ class D extends be {
1642
1643
  }
1643
1644
  }
1644
1645
  const oi = [
1645
- new D("EPSG:3857"),
1646
- new D("EPSG:102100"),
1647
- new D("EPSG:102113"),
1648
- new D("EPSG:900913"),
1649
- new D("http://www.opengis.net/def/crs/EPSG/0/3857"),
1650
- new D("http://www.opengis.net/gml/srs/epsg.xml#3857")
1646
+ new K("EPSG:3857"),
1647
+ new K("EPSG:102100"),
1648
+ new K("EPSG:102113"),
1649
+ new K("EPSG:900913"),
1650
+ new K("http://www.opengis.net/def/crs/EPSG/0/3857"),
1651
+ new K("http://www.opengis.net/gml/srs/epsg.xml#3857")
1651
1652
  ];
1652
- function Pr(n, t, e, i) {
1653
+ function xr(n, t, e, i) {
1653
1654
  const r = n.length;
1654
1655
  e = e > 1 ? e : 2, i = i ?? e, t === void 0 && (e > 2 ? t = n.slice() : t = new Array(r));
1655
1656
  for (let s = 0; s < r; s += i) {
@@ -1659,14 +1660,14 @@ function Pr(n, t, e, i) {
1659
1660
  }
1660
1661
  return t;
1661
1662
  }
1662
- function Mr(n, t, e, i) {
1663
+ function Pr(n, t, e, i) {
1663
1664
  const r = n.length;
1664
1665
  e = e > 1 ? e : 2, i = i ?? e, t === void 0 && (e > 2 ? t = n.slice() : t = new Array(r));
1665
1666
  for (let s = 0; s < r; s += i)
1666
1667
  t[s] = 180 * n[s] / et, t[s + 1] = 360 * Math.atan(Math.exp(n[s + 1] / St)) / Math.PI - 90;
1667
1668
  return t;
1668
1669
  }
1669
- const Sr = 6378137, ai = [-180, -90, 180, 90], $r = Math.PI * Sr / 180;
1670
+ const Mr = 6378137, ai = [-180, -90, 180, 90], Sr = Math.PI * Mr / 180;
1670
1671
  class N extends be {
1671
1672
  /**
1672
1673
  * @param {string} code Code.
@@ -1679,7 +1680,7 @@ class N extends be {
1679
1680
  extent: ai,
1680
1681
  axisOrientation: e,
1681
1682
  global: !0,
1682
- metersPerUnit: $r,
1683
+ metersPerUnit: Sr,
1683
1684
  worldExtent: ai
1684
1685
  });
1685
1686
  }
@@ -1694,10 +1695,10 @@ const li = [
1694
1695
  new N("http://www.opengis.net/def/crs/EPSG/0/4326", "neu")
1695
1696
  ];
1696
1697
  let ae = {};
1697
- function Ar(n) {
1698
+ function $r(n) {
1698
1699
  return ae[n] || ae[n.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/, "EPSG:$3")] || null;
1699
1700
  }
1700
- function Fr(n, t) {
1701
+ function Ar(n, t) {
1701
1702
  ae[n] = t;
1702
1703
  }
1703
1704
  let it = {};
@@ -1708,34 +1709,34 @@ function _t(n, t, e) {
1708
1709
  function ie(n, t) {
1709
1710
  return n in it && t in it[n] ? it[n][t] : null;
1710
1711
  }
1711
- const kt = 0.9996, P = 669438e-8, Vt = P * P, zt = Vt * P, k = P / (1 - P), hi = Math.sqrt(1 - P), ht = (1 - hi) / (1 + hi), Hi = ht * ht, Ee = Hi * ht, xe = Ee * ht, Ui = xe * ht, Xi = 1 - P / 4 - 3 * Vt / 64 - 5 * zt / 256, Gr = 3 * P / 8 + 3 * Vt / 32 + 45 * zt / 1024, Ir = 15 * Vt / 256 + 45 * zt / 1024, Lr = 35 * zt / 3072, Rr = 3 / 2 * ht - 27 / 32 * Ee + 269 / 512 * Ui, Tr = 21 / 16 * Hi - 55 / 32 * xe, Nr = 151 / 96 * Ee - 417 / 128 * Ui, Or = 1097 / 512 * xe, jt = 6378137;
1712
- function kr(n, t, e) {
1713
- const i = n - 5e5, o = (e.north ? t : t - 1e7) / kt / (jt * Xi), a = o + Rr * Math.sin(2 * o) + Tr * Math.sin(4 * o) + Nr * Math.sin(6 * o) + Or * Math.sin(8 * o), l = Math.sin(a), h = l * l, c = Math.cos(a), u = l / c, d = u * u, g = d * d, f = 1 - P * h, p = Math.sqrt(1 - P * h), _ = jt / p, b = (1 - P) / f, v = k * c ** 2, S = v * v, E = i / (_ * kt), L = E * E, ct = L * E, je = ct * E, He = je * E, mn = He * E, _n = a - u / b * (L / 2 - je / 24 * (5 + 3 * d + 10 * v - 4 * S - 9 * k)) + mn / 720 * (61 + 90 * d + 298 * v + 45 * g - 252 * k - 3 * S);
1714
- let Kt = (E - ct / 6 * (1 + 2 * d + v) + He / 120 * (5 - 2 * v + 28 * d - 3 * S + 8 * k + 24 * g)) / c;
1715
- return Kt = oe(
1716
- Kt + Rt(Yi(e.number)),
1712
+ const kt = 0.9996, P = 669438e-8, Vt = P * P, zt = Vt * P, k = P / (1 - P), hi = Math.sqrt(1 - P), ht = (1 - hi) / (1 + hi), Hi = ht * ht, Ee = Hi * ht, xe = Ee * ht, Ui = xe * ht, Xi = 1 - P / 4 - 3 * Vt / 64 - 5 * zt / 256, Fr = 3 * P / 8 + 3 * Vt / 32 + 45 * zt / 1024, Gr = 15 * Vt / 256 + 45 * zt / 1024, Lr = 35 * zt / 3072, Ir = 3 / 2 * ht - 27 / 32 * Ee + 269 / 512 * Ui, Rr = 21 / 16 * Hi - 55 / 32 * xe, Tr = 151 / 96 * Ee - 417 / 128 * Ui, Nr = 1097 / 512 * xe, jt = 6378137;
1713
+ function Or(n, t, e) {
1714
+ const i = n - 5e5, o = (e.north ? t : t - 1e7) / kt / (jt * Xi), a = o + Ir * Math.sin(2 * o) + Rr * Math.sin(4 * o) + Tr * Math.sin(6 * o) + Nr * Math.sin(8 * o), l = Math.sin(a), h = l * l, c = Math.cos(a), u = l / c, d = u * u, g = d * d, f = 1 - P * h, p = Math.sqrt(1 - P * h), _ = jt / p, b = (1 - P) / f, v = k * c ** 2, S = v * v, E = i / (_ * kt), I = E * E, ct = I * E, je = ct * E, He = je * E, yn = He * E, mn = a - u / b * (I / 2 - je / 24 * (5 + 3 * d + 10 * v - 4 * S - 9 * k)) + yn / 720 * (61 + 90 * d + 298 * v + 45 * g - 252 * k - 3 * S);
1715
+ let Dt = (E - ct / 6 * (1 + 2 * d + v) + He / 120 * (5 - 2 * v + 28 * d - 3 * S + 8 * k + 24 * g)) / c;
1716
+ return Dt = oe(
1717
+ Dt + Rt(Yi(e.number)),
1717
1718
  -Math.PI,
1718
1719
  Math.PI
1719
- ), [si(Kt), si(_n)];
1720
+ ), [si(Dt), si(mn)];
1720
1721
  }
1721
- const ci = -80, ui = 84, jr = -180, Hr = 180;
1722
- function Ur(n, t, e) {
1723
- n = oe(n, jr, Hr), t < ci ? t = ci : t > ui && (t = ui);
1724
- const i = Rt(t), r = Math.sin(i), s = Math.cos(i), o = r / s, a = o * o, l = a * a, h = Rt(n), c = Yi(e.number), u = Rt(c), d = jt / Math.sqrt(1 - P * r ** 2), g = k * s ** 2, f = s * oe(h - u, -Math.PI, Math.PI), p = f * f, _ = p * f, b = _ * f, v = b * f, S = v * f, E = jt * (Xi * i - Gr * Math.sin(2 * i) + Ir * Math.sin(4 * i) - Lr * Math.sin(6 * i)), L = kt * d * (f + _ / 6 * (1 - a + g) + v / 120 * (5 - 18 * a + l + 72 * g - 58 * k)) + 5e5;
1722
+ const ci = -80, ui = 84, kr = -180, jr = 180;
1723
+ function Hr(n, t, e) {
1724
+ n = oe(n, kr, jr), t < ci ? t = ci : t > ui && (t = ui);
1725
+ const i = Rt(t), r = Math.sin(i), s = Math.cos(i), o = r / s, a = o * o, l = a * a, h = Rt(n), c = Yi(e.number), u = Rt(c), d = jt / Math.sqrt(1 - P * r ** 2), g = k * s ** 2, f = s * oe(h - u, -Math.PI, Math.PI), p = f * f, _ = p * f, b = _ * f, v = b * f, S = v * f, E = jt * (Xi * i - Fr * Math.sin(2 * i) + Gr * Math.sin(4 * i) - Lr * Math.sin(6 * i)), I = kt * d * (f + _ / 6 * (1 - a + g) + v / 120 * (5 - 18 * a + l + 72 * g - 58 * k)) + 5e5;
1725
1726
  let ct = kt * (E + d * o * (p / 2 + b / 24 * (5 - a + 9 * g + 4 * g ** 2) + S / 720 * (61 - 58 * a + l + 600 * g - 330 * k)));
1726
- return e.north || (ct += 1e7), [L, ct];
1727
+ return e.north || (ct += 1e7), [I, ct];
1727
1728
  }
1728
1729
  function Yi(n) {
1729
1730
  return (n - 1) * 6 - 180 + 3;
1730
1731
  }
1731
- const Xr = [
1732
+ const Ur = [
1732
1733
  /^EPSG:(\d+)$/,
1733
1734
  /^urn:ogc:def:crs:EPSG::(\d+)$/,
1734
1735
  /^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/
1735
1736
  ];
1736
1737
  function Bi(n) {
1737
1738
  let t = 0;
1738
- for (const r of Xr) {
1739
+ for (const r of Ur) {
1739
1740
  const s = n.match(r);
1740
1741
  if (s) {
1741
1742
  t = parseInt(s[1]);
@@ -1758,17 +1759,17 @@ function di(n, t) {
1758
1759
  return i;
1759
1760
  };
1760
1761
  }
1761
- function Yr(n) {
1762
+ function Xr(n) {
1762
1763
  return Bi(n) ? new be({ code: n, units: "m" }) : null;
1763
1764
  }
1764
- function Br(n) {
1765
+ function Yr(n) {
1765
1766
  const t = Bi(n.getCode());
1766
1767
  return t ? {
1767
- forward: di(Ur, t),
1768
- inverse: di(kr, t)
1768
+ forward: di(Hr, t),
1769
+ inverse: di(Or, t)
1769
1770
  } : null;
1770
1771
  }
1771
- const Vr = [Br], zr = [Yr];
1772
+ const Br = [Yr], Vr = [Xr];
1772
1773
  function Pe(n, t) {
1773
1774
  if (t !== void 0) {
1774
1775
  for (let e = 0, i = n.length; e < i; ++e)
@@ -1779,18 +1780,18 @@ function Pe(n, t) {
1779
1780
  return t;
1780
1781
  }
1781
1782
  function le(n) {
1782
- Fr(n.getCode(), n), _t(n, n, Pe);
1783
+ Ar(n.getCode(), n), _t(n, n, Pe);
1783
1784
  }
1784
- function Jr(n) {
1785
+ function zr(n) {
1785
1786
  n.forEach(le);
1786
1787
  }
1787
1788
  function x(n) {
1788
1789
  if (typeof n != "string")
1789
1790
  return n;
1790
- const t = Ar(n);
1791
+ const t = $r(n);
1791
1792
  if (t)
1792
1793
  return t;
1793
- for (const e of zr) {
1794
+ for (const e of Vr) {
1794
1795
  const i = e(n);
1795
1796
  if (i)
1796
1797
  return i;
@@ -1798,20 +1799,20 @@ function x(n) {
1798
1799
  return null;
1799
1800
  }
1800
1801
  function gi(n) {
1801
- Jr(n), n.forEach(function(t) {
1802
+ zr(n), n.forEach(function(t) {
1802
1803
  n.forEach(function(e) {
1803
1804
  t !== e && _t(t, e, Pe);
1804
1805
  });
1805
1806
  });
1806
1807
  }
1807
- function Wr(n, t, e, i) {
1808
+ function Jr(n, t, e, i) {
1808
1809
  n.forEach(function(r) {
1809
1810
  t.forEach(function(s) {
1810
1811
  _t(r, s, e), _t(s, r, i);
1811
1812
  });
1812
1813
  });
1813
1814
  }
1814
- function qr(n, t) {
1815
+ function Wr(n, t) {
1815
1816
  if (n === t)
1816
1817
  return !0;
1817
1818
  const e = n.getUnits() === t.getUnits();
@@ -1823,7 +1824,7 @@ function Vi(n, t) {
1823
1824
  if (r)
1824
1825
  return r;
1825
1826
  let s = null, o = null;
1826
- for (const l of Vr)
1827
+ for (const l of Br)
1827
1828
  s || (s = l(n)), o || (o = l(t));
1828
1829
  if (!s && !o)
1829
1830
  return null;
@@ -1859,15 +1860,15 @@ function he(n, t) {
1859
1860
  const e = x(n), i = x(t);
1860
1861
  return Vi(e, i);
1861
1862
  }
1862
- function Zr() {
1863
- gi(oi), gi(li), Wr(
1863
+ function qr() {
1864
+ gi(oi), gi(li), Jr(
1864
1865
  li,
1865
1866
  oi,
1866
- Pr,
1867
- Mr
1867
+ xr,
1868
+ Pr
1868
1869
  );
1869
1870
  }
1870
- Zr();
1871
+ qr();
1871
1872
  new Array(6);
1872
1873
  function zi() {
1873
1874
  return [1, 0, 0, 1, 0, 0];
@@ -1887,7 +1888,7 @@ function Wi(n, t, e, i, r, s, o) {
1887
1888
  }
1888
1889
  return s && s.length != a && (s.length = a), s;
1889
1890
  }
1890
- function Kr(n, t, e, i, r, s, o) {
1891
+ function Zr(n, t, e, i, r, s, o) {
1891
1892
  o = o || [];
1892
1893
  const a = Math.cos(r), l = Math.sin(r), h = s[0], c = s[1];
1893
1894
  let u = 0;
@@ -1911,7 +1912,7 @@ function Dr(n, t, e, i, r, s, o, a) {
1911
1912
  }
1912
1913
  return a && a.length != c && (a.length = c), a;
1913
1914
  }
1914
- function Qr(n, t, e, i, r, s, o) {
1915
+ function Kr(n, t, e, i, r, s, o) {
1915
1916
  o = o || [];
1916
1917
  let a = 0;
1917
1918
  for (let l = t; l < e; l += i) {
@@ -1921,7 +1922,7 @@ function Qr(n, t, e, i, r, s, o) {
1921
1922
  }
1922
1923
  return o && o.length != a && (o.length = a), o;
1923
1924
  }
1924
- const fi = zi(), ts = [NaN, NaN];
1925
+ const fi = zi(), Qr = [NaN, NaN];
1925
1926
  class qi extends Ti {
1926
1927
  constructor() {
1927
1928
  super(), this.extent_ = _e(), this.extentRevision_ = -1, this.simplifiedGeometryMaxMinSquaredTolerance = 0, this.simplifiedGeometryRevision = 0, this.simplifyTransformedInternal = Gi(
@@ -1972,7 +1973,7 @@ class qi extends Ti {
1972
1973
  * @return {boolean} Contains (x, y).
1973
1974
  */
1974
1975
  containsXY(t, e) {
1975
- return this.closestPointXY(t, e, ts, Number.MIN_VALUE) === 0;
1976
+ return this.closestPointXY(t, e, Qr, Number.MIN_VALUE) === 0;
1976
1977
  }
1977
1978
  /**
1978
1979
  * Return the closest point of the geometry to the passed point as
@@ -2015,7 +2016,7 @@ class qi extends Ti {
2015
2016
  const e = this.computeExtent(this.extent_);
2016
2017
  (isNaN(e[0]) || isNaN(e[1])) && ve(e), this.extentRevision_ = this.getRevision();
2017
2018
  }
2018
- return vr(this.extent_, t);
2019
+ return _r(this.extent_, t);
2019
2020
  }
2020
2021
  /**
2021
2022
  * Rotate the geometry around a given coordinate. This modifies the geometry
@@ -2263,7 +2264,7 @@ class Z extends qi {
2263
2264
  e = /** @type {Array<unknown>} */
2264
2265
  e[0];
2265
2266
  }
2266
- r = e.length, t = K(r);
2267
+ r = e.length, t = D(r);
2267
2268
  }
2268
2269
  this.layout = t, this.stride = r;
2269
2270
  }
@@ -2297,7 +2298,7 @@ class Z extends qi {
2297
2298
  const i = this.getFlatCoordinates();
2298
2299
  if (i) {
2299
2300
  const r = this.getStride();
2300
- Kr(
2301
+ Zr(
2301
2302
  i,
2302
2303
  0,
2303
2304
  i.length,
@@ -2347,7 +2348,7 @@ class Z extends qi {
2347
2348
  const i = this.getFlatCoordinates();
2348
2349
  if (i) {
2349
2350
  const r = this.getStride();
2350
- Qr(
2351
+ Kr(
2351
2352
  i,
2352
2353
  0,
2353
2354
  i.length,
@@ -2359,7 +2360,7 @@ class Z extends qi {
2359
2360
  }
2360
2361
  }
2361
2362
  }
2362
- function K(n) {
2363
+ function D(n) {
2363
2364
  let t;
2364
2365
  return n == 2 ? t = "XY" : n == 3 ? t = "XYZ" : n == 4 && (t = "XYZM"), /** @type {import("./Geometry.js").GeometryLayout} */
2365
2366
  t;
@@ -2369,7 +2370,7 @@ function pi(n) {
2369
2370
  return n == "XY" ? t = 2 : n == "XYZ" || n == "XYM" ? t = 3 : n == "XYZM" && (t = 4), /** @type {number} */
2370
2371
  t;
2371
2372
  }
2372
- function es(n, t, e, i) {
2373
+ function ts(n, t, e, i) {
2373
2374
  for (let r = 0, s = e.length; r < s; ++r)
2374
2375
  n[t++] = e[r];
2375
2376
  return t;
@@ -2411,7 +2412,7 @@ function Zi(n, t, e, i, r) {
2411
2412
  }
2412
2413
  return r.length = s, r;
2413
2414
  }
2414
- function Ki(n, t, e, i) {
2415
+ function Di(n, t, e, i) {
2415
2416
  const r = [];
2416
2417
  let s = _e();
2417
2418
  for (let o = 0, a = e.length; o < a; ++o) {
@@ -2425,8 +2426,8 @@ function Ki(n, t, e, i) {
2425
2426
  }
2426
2427
  return r;
2427
2428
  }
2428
- function is(n, t, e, i, r) {
2429
- return !gr(
2429
+ function es(n, t, e, i, r) {
2430
+ return !dr(
2430
2431
  r,
2431
2432
  /**
2432
2433
  * @param {import("../../coordinate.js").Coordinate} coordinate Coordinate.
@@ -2460,7 +2461,7 @@ function Me(n, t, e, i, r, s) {
2460
2461
  return !1;
2461
2462
  return !0;
2462
2463
  }
2463
- function ns(n, t, e, i, r, s) {
2464
+ function is(n, t, e, i, r, s) {
2464
2465
  if (e.length === 0)
2465
2466
  return !1;
2466
2467
  for (let o = 0, a = e.length; o < a; ++o) {
@@ -2487,7 +2488,7 @@ function Se(n, t, e, i, r, s, o) {
2487
2488
  }
2488
2489
  return isNaN(_) && (_ = r[s]), o ? (o.push(_, f, b), o) : [_, f, b];
2489
2490
  }
2490
- function Di(n, t, e, i, r) {
2491
+ function Ki(n, t, e, i, r) {
2491
2492
  let s = [];
2492
2493
  for (let o = 0, a = e.length; o < a; ++o) {
2493
2494
  const l = e[o];
@@ -2517,7 +2518,7 @@ function Ht(n, t, e, i, r, s, o) {
2517
2518
  const b = n[_], v = n[_ + 1];
2518
2519
  d += Math.sqrt((b - c) * (b - c) + (v - u) * (v - u)), g.push(d), c = b, u = v;
2519
2520
  }
2520
- const f = r * d, p = nr(g, f);
2521
+ const f = r * d, p = ir(g, f);
2521
2522
  p < 0 ? (l = (f - g[-p - 2]) / (g[-p - 1] - g[-p - 2]), a = t + (-p - 2) * i) : a = t + p * i;
2522
2523
  }
2523
2524
  o = o > 1 ? o : 2, s = s || new Array(o);
@@ -2555,7 +2556,7 @@ function ce(n, t, e, i, r, s) {
2555
2556
  );
2556
2557
  return o.push(r), o;
2557
2558
  }
2558
- function rs(n, t, e, i, r, s, o) {
2559
+ function ns(n, t, e, i, r, s, o) {
2559
2560
  if (o)
2560
2561
  return ce(
2561
2562
  n,
@@ -2589,7 +2590,7 @@ function rs(n, t, e, i, r, s, o) {
2589
2590
  }
2590
2591
  return null;
2591
2592
  }
2592
- function ss(n, t, e, i) {
2593
+ function rs(n, t, e, i) {
2593
2594
  for (; t < e - i; ) {
2594
2595
  for (let r = 0; r < i; ++r) {
2595
2596
  const s = n[t + r];
@@ -2642,7 +2643,7 @@ function Ut(n, t, e, i, r) {
2642
2643
  a,
2643
2644
  i
2644
2645
  );
2645
- (s === 0 ? r && l || !r && !l : r && !l || !r && l) && ss(n, t, a, i), t = a;
2646
+ (s === 0 ? r && l || !r && !l : r && !l || !r && l) && rs(n, t, a, i), t = a;
2646
2647
  }
2647
2648
  return t;
2648
2649
  }
@@ -2657,7 +2658,7 @@ function ue(n, t, e, i, r) {
2657
2658
  );
2658
2659
  return t;
2659
2660
  }
2660
- function os(n, t) {
2661
+ function ss(n, t) {
2661
2662
  const e = [];
2662
2663
  let i = 0, r = 0, s;
2663
2664
  for (let o = 0, a = t.length; o < a; ++o) {
@@ -2689,8 +2690,8 @@ function Wt(n, t, e, i, r, s, o) {
2689
2690
  let g = 0;
2690
2691
  const f = n[d], p = n[d + 1], _ = n[u], b = n[u + 1];
2691
2692
  for (let v = d + i; v < u; v += i) {
2692
- const S = n[v], E = n[v + 1], L = wr(S, E, f, p, _, b);
2693
- L > g && (c = v, g = L);
2693
+ const S = n[v], E = n[v + 1], I = Cr(S, E, f, p, _, b);
2694
+ I > g && (c = v, g = I);
2694
2695
  }
2695
2696
  g > r && (l[(c - t) / i] = 1, d + i < c && h.push(d, c), c + i < u && h.push(c, u));
2696
2697
  }
@@ -2716,7 +2717,7 @@ function tn(n, t, e, i, r, s, o, a) {
2716
2717
  function Q(n, t) {
2717
2718
  return t * Math.round(n / t);
2718
2719
  }
2719
- function as(n, t, e, i, r, s, o) {
2720
+ function os(n, t, e, i, r, s, o) {
2720
2721
  if (t == e)
2721
2722
  return o;
2722
2723
  let a = Q(n[t], r), l = Q(n[t + 1], r);
@@ -2742,7 +2743,7 @@ function as(n, t, e, i, r, s, o) {
2742
2743
  function Fe(n, t, e, i, r, s, o, a) {
2743
2744
  for (let l = 0, h = e.length; l < h; ++l) {
2744
2745
  const c = e[l];
2745
- o = as(
2746
+ o = os(
2746
2747
  n,
2747
2748
  t,
2748
2749
  c,
@@ -2754,7 +2755,7 @@ function Fe(n, t, e, i, r, s, o, a) {
2754
2755
  }
2755
2756
  return o;
2756
2757
  }
2757
- function ls(n, t, e, i, r, s, o, a) {
2758
+ function as(n, t, e, i, r, s, o, a) {
2758
2759
  for (let l = 0, h = e.length; l < h; ++l) {
2759
2760
  const c = e[l], u = [];
2760
2761
  o = Fe(
@@ -2849,7 +2850,7 @@ class B extends qi {
2849
2850
  ve(t);
2850
2851
  const e = this.geometries_;
2851
2852
  for (let i = 0, r = e.length; i < r; ++i)
2852
- ur(t, e[i].getExtent());
2853
+ cr(t, e[i].getExtent());
2853
2854
  return t;
2854
2855
  }
2855
2856
  /**
@@ -3032,7 +3033,7 @@ function nn(n, t, e, i) {
3032
3033
  }
3033
3034
  return r;
3034
3035
  }
3035
- function hs(n, t, e, i) {
3036
+ function ls(n, t, e, i) {
3036
3037
  let r = 0;
3037
3038
  for (let s = 0, o = e.length; s < o; ++s) {
3038
3039
  const a = e[s];
@@ -3073,21 +3074,21 @@ function Ge(n, t, e, i, r) {
3073
3074
  }
3074
3075
  return r;
3075
3076
  }
3076
- function Ie(n, t, e, i, r) {
3077
+ function Le(n, t, e, i, r) {
3077
3078
  for (let s = 0, o = e.length; s < o; ++s) {
3078
3079
  const a = e[s];
3079
3080
  r = Ge(n, t, a, i, r), t = a;
3080
3081
  }
3081
3082
  return r;
3082
3083
  }
3083
- function cs(n, t, e, i, r) {
3084
+ function hs(n, t, e, i, r) {
3084
3085
  for (let s = 0, o = e.length; s < o; ++s) {
3085
3086
  const a = e[s];
3086
- r = Ie(n, t, a, i, r), t = a[a.length - 1];
3087
+ r = Le(n, t, a, i, r), t = a[a.length - 1];
3087
3088
  }
3088
3089
  return r;
3089
3090
  }
3090
- function Le(n, t, e, i, r, s, o, a, l, h, c) {
3091
+ function Ie(n, t, e, i, r, s, o, a, l, h, c) {
3091
3092
  if (t == e)
3092
3093
  return h;
3093
3094
  let u, d;
@@ -3143,7 +3144,7 @@ function Re(n, t, e, i, r, s, o, a, l, h, c) {
3143
3144
  c = c || [NaN, NaN];
3144
3145
  for (let u = 0, d = e.length; u < d; ++u) {
3145
3146
  const g = e[u];
3146
- h = Le(
3147
+ h = Ie(
3147
3148
  n,
3148
3149
  t,
3149
3150
  g,
@@ -3159,7 +3160,7 @@ function Re(n, t, e, i, r, s, o, a, l, h, c) {
3159
3160
  }
3160
3161
  return h;
3161
3162
  }
3162
- function us(n, t, e, i, r, s, o, a, l, h, c) {
3163
+ function cs(n, t, e, i, r, s, o, a, l, h, c) {
3163
3164
  c = c || [NaN, NaN];
3164
3165
  for (let u = 0, d = e.length; u < d; ++u) {
3165
3166
  const g = e[u];
@@ -3201,7 +3202,7 @@ function Te(n, t, e, i, r) {
3201
3202
  }
3202
3203
  return r.length = s, r;
3203
3204
  }
3204
- function ds(n, t, e, i, r) {
3205
+ function us(n, t, e, i, r) {
3205
3206
  r = r !== void 0 ? r : [];
3206
3207
  let s = 0;
3207
3208
  for (let o = 0, a = e.length; o < a; ++o) {
@@ -3259,7 +3260,7 @@ class vt extends Z {
3259
3260
  this.stride,
3260
3261
  0
3261
3262
  )
3262
- ), this.maxDeltaRevision_ = this.getRevision()), Le(
3263
+ ), this.maxDeltaRevision_ = this.getRevision()), Ie(
3263
3264
  this.flatCoordinates,
3264
3265
  0,
3265
3266
  this.flatCoordinates.length,
@@ -3363,7 +3364,7 @@ function rn(n, t, e, i, r) {
3363
3364
  return !1;
3364
3365
  }
3365
3366
  function Zt(n, t, e, i, r, s) {
3366
- return s = s ?? ji(_e(), n, t, e, i), _r(r, s) ? s[0] >= r[0] && s[2] <= r[2] || s[1] >= r[1] && s[3] <= r[3] ? !0 : rn(
3367
+ return s = s ?? ji(_e(), n, t, e, i), mr(r, s) ? s[0] >= r[0] && s[2] <= r[2] || s[1] >= r[1] && s[3] <= r[3] ? !0 : rn(
3367
3368
  n,
3368
3369
  t,
3369
3370
  e,
@@ -3375,11 +3376,11 @@ function Zt(n, t, e, i, r, s) {
3375
3376
  * `false` otherwise.
3376
3377
  */
3377
3378
  function(o, a) {
3378
- return Cr(r, o, a);
3379
+ return vr(r, o, a);
3379
3380
  }
3380
3381
  ) : !1;
3381
3382
  }
3382
- function gs(n, t, e, i, r) {
3383
+ function ds(n, t, e, i, r) {
3383
3384
  for (let s = 0, o = e.length; s < o; ++s) {
3384
3385
  if (Zt(n, t, e[s], i, r))
3385
3386
  return !0;
@@ -3387,7 +3388,7 @@ function gs(n, t, e, i, r) {
3387
3388
  }
3388
3389
  return !1;
3389
3390
  }
3390
- function fs(n, t, e, i, r) {
3391
+ function gs(n, t, e, i, r) {
3391
3392
  return !!(Zt(n, t, e, i, r) || j(
3392
3393
  n,
3393
3394
  t,
@@ -3419,12 +3420,12 @@ function fs(n, t, e, i, r) {
3419
3420
  ));
3420
3421
  }
3421
3422
  function sn(n, t, e, i, r) {
3422
- if (!fs(n, t, e[0], i, r))
3423
+ if (!gs(n, t, e[0], i, r))
3423
3424
  return !1;
3424
3425
  if (e.length === 1)
3425
3426
  return !0;
3426
3427
  for (let s = 1, o = e.length; s < o; ++s)
3427
- if (is(
3428
+ if (es(
3428
3429
  n,
3429
3430
  e[s - 1],
3430
3431
  e[s],
@@ -3440,7 +3441,7 @@ function sn(n, t, e, i, r) {
3440
3441
  return !1;
3441
3442
  return !0;
3442
3443
  }
3443
- function ps(n, t, e, i, r) {
3444
+ function fs(n, t, e, i, r) {
3444
3445
  for (let s = 0, o = e.length; s < o; ++s) {
3445
3446
  const a = e[s];
3446
3447
  if (sn(n, t, a, i, r))
@@ -3449,7 +3450,7 @@ function ps(n, t, e, i, r) {
3449
3450
  }
3450
3451
  return !1;
3451
3452
  }
3452
- function ys(n, t, e, i) {
3453
+ function ps(n, t, e, i) {
3453
3454
  let r = n[t], s = n[t + 1], o = 0;
3454
3455
  for (let a = t + i; a < e; a += i) {
3455
3456
  const l = n[a], h = n[a + 1];
@@ -3512,7 +3513,7 @@ class V extends Z {
3512
3513
  this.stride,
3513
3514
  0
3514
3515
  )
3515
- ), this.maxDeltaRevision_ = this.getRevision()), Le(
3516
+ ), this.maxDeltaRevision_ = this.getRevision()), Ie(
3516
3517
  this.flatCoordinates,
3517
3518
  0,
3518
3519
  this.flatCoordinates.length,
@@ -3610,7 +3611,7 @@ class V extends Z {
3610
3611
  * @api
3611
3612
  */
3612
3613
  getLength() {
3613
- return ys(
3614
+ return ps(
3614
3615
  this.flatCoordinates,
3615
3616
  0,
3616
3617
  this.flatCoordinates.length,
@@ -3753,7 +3754,7 @@ class Ct extends Z {
3753
3754
  */
3754
3755
  closestPointXY(t, e, i, r) {
3755
3756
  return r < q(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
3756
- Ie(
3757
+ Le(
3757
3758
  this.flatCoordinates,
3758
3759
  0,
3759
3760
  this.ends_,
@@ -3796,7 +3797,7 @@ class Ct extends Z {
3796
3797
  * @api
3797
3798
  */
3798
3799
  getCoordinateAtM(t, e, i) {
3799
- return this.layout != "XYM" && this.layout != "XYZM" || this.flatCoordinates.length === 0 ? null : (e = e !== void 0 ? e : !1, i = i !== void 0 ? i : !1, rs(
3800
+ return this.layout != "XYM" && this.layout != "XYZM" || this.flatCoordinates.length === 0 ? null : (e = e !== void 0 ? e : !1, i = i !== void 0 ? i : !1, ns(
3800
3801
  this.flatCoordinates,
3801
3802
  0,
3802
3803
  this.ends_,
@@ -3913,7 +3914,7 @@ class Ct extends Z {
3913
3914
  * @override
3914
3915
  */
3915
3916
  intersectsExtent(t) {
3916
- return gs(
3917
+ return ds(
3917
3918
  this.flatCoordinates,
3918
3919
  0,
3919
3920
  this.ends_,
@@ -4025,7 +4026,7 @@ class z extends Z {
4025
4026
  * @override
4026
4027
  */
4027
4028
  setCoordinates(t, e) {
4028
- this.setLayout(e, t, 0), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = es(
4029
+ this.setLayout(e, t, 0), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = ts(
4029
4030
  this.flatCoordinates,
4030
4031
  0,
4031
4032
  t,
@@ -4238,7 +4239,7 @@ class J extends Z {
4238
4239
  */
4239
4240
  closestPointXY(t, e, i, r) {
4240
4241
  return r < q(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
4241
- Ie(
4242
+ Le(
4242
4243
  this.flatCoordinates,
4243
4244
  0,
4244
4245
  this.ends_,
@@ -4542,14 +4543,14 @@ class wt extends Z {
4542
4543
  */
4543
4544
  closestPointXY(t, e, i, r) {
4544
4545
  return r < q(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
4545
- cs(
4546
+ hs(
4546
4547
  this.flatCoordinates,
4547
4548
  0,
4548
4549
  this.endss_,
4549
4550
  this.stride,
4550
4551
  0
4551
4552
  )
4552
- ), this.maxDeltaRevision_ = this.getRevision()), us(
4553
+ ), this.maxDeltaRevision_ = this.getRevision()), cs(
4553
4554
  this.getOrientedFlatCoordinates(),
4554
4555
  0,
4555
4556
  this.endss_,
@@ -4569,7 +4570,7 @@ class wt extends Z {
4569
4570
  * @override
4570
4571
  */
4571
4572
  containsXY(t, e) {
4572
- return ns(
4573
+ return is(
4573
4574
  this.getOrientedFlatCoordinates(),
4574
4575
  0,
4575
4576
  this.endss_,
@@ -4584,7 +4585,7 @@ class wt extends Z {
4584
4585
  * @api
4585
4586
  */
4586
4587
  getArea() {
4587
- return hs(
4588
+ return ls(
4588
4589
  this.getOrientedFlatCoordinates(),
4589
4590
  0,
4590
4591
  this.endss_,
@@ -4613,7 +4614,7 @@ class wt extends Z {
4613
4614
  this.endss_,
4614
4615
  this.stride,
4615
4616
  t
4616
- )) : e = this.flatCoordinates, ds(
4617
+ )) : e = this.flatCoordinates, us(
4617
4618
  e,
4618
4619
  0,
4619
4620
  this.endss_,
@@ -4631,13 +4632,13 @@ class wt extends Z {
4631
4632
  */
4632
4633
  getFlatInteriorPoints() {
4633
4634
  if (this.flatInteriorPointsRevision_ != this.getRevision()) {
4634
- const t = Ki(
4635
+ const t = Di(
4635
4636
  this.flatCoordinates,
4636
4637
  0,
4637
4638
  this.endss_,
4638
4639
  this.stride
4639
4640
  );
4640
- this.flatInteriorPoints_ = Di(
4641
+ this.flatInteriorPoints_ = Ki(
4641
4642
  this.getOrientedFlatCoordinates(),
4642
4643
  0,
4643
4644
  this.endss_,
@@ -4685,7 +4686,7 @@ class wt extends Z {
4685
4686
  */
4686
4687
  getSimplifiedGeometryInternal(t) {
4687
4688
  const e = [], i = [];
4688
- return e.length = ls(
4689
+ return e.length = as(
4689
4690
  this.flatCoordinates,
4690
4691
  0,
4691
4692
  this.endss_,
@@ -4761,7 +4762,7 @@ class wt extends Z {
4761
4762
  * @override
4762
4763
  */
4763
4764
  intersectsExtent(t) {
4764
- return ps(
4765
+ return fs(
4765
4766
  this.getOrientedFlatCoordinates(),
4766
4767
  0,
4767
4768
  this.endss_,
@@ -4852,8 +4853,8 @@ class W {
4852
4853
  */
4853
4854
  getFlatInteriorPoints() {
4854
4855
  if (!this.flatInteriorPoints_) {
4855
- const t = os(this.flatCoordinates_, this.ends_), e = Ki(this.flatCoordinates_, 0, t, 2);
4856
- this.flatInteriorPoints_ = Di(
4856
+ const t = ss(this.flatCoordinates_, this.ends_), e = Di(this.flatCoordinates_, 0, t, 2);
4857
+ this.flatInteriorPoints_ = Ki(
4857
4858
  this.flatCoordinates_,
4858
4859
  0,
4859
4860
  t,
@@ -5217,7 +5218,7 @@ class on {
5217
5218
  function bt(n, t, e) {
5218
5219
  const i = e ? x(e.featureProjection) : null, r = e ? x(e.dataProjection) : null;
5219
5220
  let s = n;
5220
- if (i && r && !qr(i, r)) {
5221
+ if (i && r && !Wr(i, r)) {
5221
5222
  t && (s = /** @type {T} */
5222
5223
  n.clone());
5223
5224
  const o = t ? i : r, a = t ? r : i;
@@ -5239,7 +5240,7 @@ function bt(n, t, e) {
5239
5240
  }
5240
5241
  return s;
5241
5242
  }
5242
- const ms = {
5243
+ const ys = {
5243
5244
  Point: z,
5244
5245
  LineString: V,
5245
5246
  Polygon: J,
@@ -5247,7 +5248,7 @@ const ms = {
5247
5248
  MultiLineString: Ct,
5248
5249
  MultiPolygon: wt
5249
5250
  };
5250
- function _s(n, t, e) {
5251
+ function ms(n, t, e) {
5251
5252
  return Array.isArray(t[0]) ? (Qi(n, 0, t, e) || (n = n.slice(), ue(n, 0, t, e)), n) : (Ae(n, 0, t, e) || (n = n.slice(), Ut(n, 0, t, e)), n);
5252
5253
  }
5253
5254
  function an(n, t) {
@@ -5264,7 +5265,7 @@ function an(n, t) {
5264
5265
  return bt(
5265
5266
  new W(
5266
5267
  i,
5267
- i === "Polygon" ? _s(e.flatCoordinates, e.ends, r) : e.flatCoordinates,
5268
+ i === "Polygon" ? ms(e.flatCoordinates, e.ends, r) : e.flatCoordinates,
5268
5269
  (s = e.ends) == null ? void 0 : s.flat(),
5269
5270
  r,
5270
5271
  n.properties || {},
@@ -5283,14 +5284,14 @@ function Ne(n, t) {
5283
5284
  );
5284
5285
  return new B(i);
5285
5286
  }
5286
- const e = ms[n.type];
5287
+ const e = ys[n.type];
5287
5288
  return bt(
5288
5289
  new e(n.flatCoordinates, n.layout || "XY", n.ends),
5289
5290
  !1,
5290
5291
  t
5291
5292
  );
5292
5293
  }
5293
- class vs extends on {
5294
+ class _s extends on {
5294
5295
  constructor() {
5295
5296
  super();
5296
5297
  }
@@ -5469,7 +5470,7 @@ function Gt(n) {
5469
5470
  }
5470
5471
  return n !== null ? n : null;
5471
5472
  }
5472
- class Cs extends vs {
5473
+ class vs extends _s {
5473
5474
  /**
5474
5475
  * @param {Options<FeatureType>} [options] Options.
5475
5476
  */
@@ -5558,7 +5559,7 @@ class Cs extends vs {
5558
5559
  * @override
5559
5560
  */
5560
5561
  readGeometryFromObject(t, e) {
5561
- return ws(t, e);
5562
+ return Cs(t, e);
5562
5563
  }
5563
5564
  /**
5564
5565
  * @param {Object} object Object.
@@ -5602,7 +5603,7 @@ class Cs extends vs {
5602
5603
  if (r !== void 0 && (i.id = r), !t.hasProperties())
5603
5604
  return i;
5604
5605
  const s = t.getProperties(), o = t.getGeometry();
5605
- return o && (i.geometry = de(o, e), delete s[t.getGeometryName()]), Li(s) || (i.properties = s), i;
5606
+ return o && (i.geometry = de(o, e), delete s[t.getGeometryName()]), Ii(s) || (i.properties = s), i;
5606
5607
  }
5607
5608
  /**
5608
5609
  * Encode an array of features as a GeoJSON object.
@@ -5642,49 +5643,49 @@ function Oe(n, t) {
5642
5643
  let e;
5643
5644
  switch (n.type) {
5644
5645
  case "Point": {
5645
- e = Es(
5646
+ e = bs(
5646
5647
  /** @type {GeoJSONPoint} */
5647
5648
  n
5648
5649
  );
5649
5650
  break;
5650
5651
  }
5651
5652
  case "LineString": {
5652
- e = xs(
5653
+ e = Es(
5653
5654
  /** @type {GeoJSONLineString} */
5654
5655
  n
5655
5656
  );
5656
5657
  break;
5657
5658
  }
5658
5659
  case "Polygon": {
5659
- e = $s(
5660
+ e = Ss(
5660
5661
  /** @type {GeoJSONPolygon} */
5661
5662
  n
5662
5663
  );
5663
5664
  break;
5664
5665
  }
5665
5666
  case "MultiPoint": {
5666
- e = Ms(
5667
+ e = Ps(
5667
5668
  /** @type {GeoJSONMultiPoint} */
5668
5669
  n
5669
5670
  );
5670
5671
  break;
5671
5672
  }
5672
5673
  case "MultiLineString": {
5673
- e = Ps(
5674
+ e = xs(
5674
5675
  /** @type {GeoJSONMultiLineString} */
5675
5676
  n
5676
5677
  );
5677
5678
  break;
5678
5679
  }
5679
5680
  case "MultiPolygon": {
5680
- e = Ss(
5681
+ e = Ms(
5681
5682
  /** @type {GeoJSONMultiPolygon} */
5682
5683
  n
5683
5684
  );
5684
5685
  break;
5685
5686
  }
5686
5687
  case "GeometryCollection": {
5687
- e = bs(
5688
+ e = ws(
5688
5689
  /** @type {GeoJSONGeometryCollection} */
5689
5690
  n
5690
5691
  );
@@ -5695,11 +5696,11 @@ function Oe(n, t) {
5695
5696
  }
5696
5697
  return e;
5697
5698
  }
5698
- function ws(n, t) {
5699
+ function Cs(n, t) {
5699
5700
  const e = Oe(n);
5700
5701
  return Ne(e, t);
5701
5702
  }
5702
- function bs(n, t) {
5703
+ function ws(n, t) {
5703
5704
  return n.geometries.map(
5704
5705
  /**
5705
5706
  * @param {GeoJSONGeometry} geometry Geometry.
@@ -5710,44 +5711,44 @@ function bs(n, t) {
5710
5711
  }
5711
5712
  );
5712
5713
  }
5713
- function Es(n) {
5714
+ function bs(n) {
5714
5715
  const t = n.coordinates;
5715
5716
  return {
5716
5717
  type: "Point",
5717
5718
  flatCoordinates: t,
5718
- layout: K(t.length)
5719
+ layout: D(t.length)
5719
5720
  };
5720
5721
  }
5721
- function xs(n) {
5722
+ function Es(n) {
5722
5723
  var i;
5723
5724
  const t = n.coordinates, e = t.flat();
5724
5725
  return {
5725
5726
  type: "LineString",
5726
5727
  flatCoordinates: e,
5727
5728
  ends: [e.length],
5728
- layout: K(((i = t[0]) == null ? void 0 : i.length) || 2)
5729
+ layout: D(((i = t[0]) == null ? void 0 : i.length) || 2)
5729
5730
  };
5730
5731
  }
5731
- function Ps(n) {
5732
+ function xs(n) {
5732
5733
  var s, o;
5733
5734
  const t = n.coordinates, e = ((o = (s = t[0]) == null ? void 0 : s[0]) == null ? void 0 : o.length) || 2, i = [], r = $t(i, 0, t, e);
5734
5735
  return {
5735
5736
  type: "MultiLineString",
5736
5737
  flatCoordinates: i,
5737
5738
  ends: r,
5738
- layout: K(e)
5739
+ layout: D(e)
5739
5740
  };
5740
5741
  }
5741
- function Ms(n) {
5742
+ function Ps(n) {
5742
5743
  var e;
5743
5744
  const t = n.coordinates;
5744
5745
  return {
5745
5746
  type: "MultiPoint",
5746
5747
  flatCoordinates: t.flat(),
5747
- layout: K(((e = t[0]) == null ? void 0 : e.length) || 2)
5748
+ layout: D(((e = t[0]) == null ? void 0 : e.length) || 2)
5748
5749
  };
5749
5750
  }
5750
- function Ss(n) {
5751
+ function Ms(n) {
5751
5752
  var s, o;
5752
5753
  const t = n.coordinates, e = [], i = ((o = (s = t[0]) == null ? void 0 : s[0]) == null ? void 0 : o[0].length) || 2, r = Zi(
5753
5754
  e,
@@ -5759,17 +5760,17 @@ function Ss(n) {
5759
5760
  type: "MultiPolygon",
5760
5761
  flatCoordinates: e,
5761
5762
  ends: r,
5762
- layout: K(i)
5763
+ layout: D(i)
5763
5764
  };
5764
5765
  }
5765
- function $s(n) {
5766
+ function Ss(n) {
5766
5767
  var s, o;
5767
5768
  const t = n.coordinates, e = [], i = (o = (s = t[0]) == null ? void 0 : s[0]) == null ? void 0 : o.length, r = $t(e, 0, t, i);
5768
5769
  return {
5769
5770
  type: "Polygon",
5770
5771
  flatCoordinates: e,
5771
5772
  ends: r,
5772
- layout: K(i)
5773
+ layout: D(i)
5773
5774
  };
5774
5775
  }
5775
5776
  function de(n, t) {
@@ -5778,21 +5779,21 @@ function de(n, t) {
5778
5779
  let i;
5779
5780
  switch (e) {
5780
5781
  case "Point": {
5781
- i = Rs(
5782
+ i = Is(
5782
5783
  /** @type {import("../geom/Point.js").default} */
5783
5784
  n
5784
5785
  );
5785
5786
  break;
5786
5787
  }
5787
5788
  case "LineString": {
5788
- i = Fs(
5789
+ i = As(
5789
5790
  /** @type {import("../geom/LineString.js").default} */
5790
5791
  n
5791
5792
  );
5792
5793
  break;
5793
5794
  }
5794
5795
  case "Polygon": {
5795
- i = Ts(
5796
+ i = Rs(
5796
5797
  /** @type {import("../geom/Polygon.js").default} */
5797
5798
  n,
5798
5799
  t
@@ -5800,14 +5801,14 @@ function de(n, t) {
5800
5801
  break;
5801
5802
  }
5802
5803
  case "MultiPoint": {
5803
- i = Is(
5804
+ i = Gs(
5804
5805
  /** @type {import("../geom/MultiPoint.js").default} */
5805
5806
  n
5806
5807
  );
5807
5808
  break;
5808
5809
  }
5809
5810
  case "MultiLineString": {
5810
- i = Gs(
5811
+ i = Fs(
5811
5812
  /** @type {import("../geom/MultiLineString.js").default} */
5812
5813
  n
5813
5814
  );
@@ -5822,7 +5823,7 @@ function de(n, t) {
5822
5823
  break;
5823
5824
  }
5824
5825
  case "GeometryCollection": {
5825
- i = As(
5826
+ i = $s(
5826
5827
  /** @type {import("../geom/GeometryCollection.js").default} */
5827
5828
  n,
5828
5829
  t
@@ -5841,7 +5842,7 @@ function de(n, t) {
5841
5842
  }
5842
5843
  return i;
5843
5844
  }
5844
- function As(n, t) {
5845
+ function $s(n, t) {
5845
5846
  return t = Object.assign({}, t), delete t.featureProjection, {
5846
5847
  type: "GeometryCollection",
5847
5848
  geometries: n.getGeometriesArray().map(function(i) {
@@ -5849,19 +5850,19 @@ function As(n, t) {
5849
5850
  })
5850
5851
  };
5851
5852
  }
5852
- function Fs(n, t) {
5853
+ function As(n, t) {
5853
5854
  return {
5854
5855
  type: "LineString",
5855
5856
  coordinates: n.getCoordinates()
5856
5857
  };
5857
5858
  }
5858
- function Gs(n, t) {
5859
+ function Fs(n, t) {
5859
5860
  return {
5860
5861
  type: "MultiLineString",
5861
5862
  coordinates: n.getCoordinates()
5862
5863
  };
5863
5864
  }
5864
- function Is(n, t) {
5865
+ function Gs(n, t) {
5865
5866
  return {
5866
5867
  type: "MultiPoint",
5867
5868
  coordinates: n.getCoordinates()
@@ -5874,21 +5875,21 @@ function Ls(n, t) {
5874
5875
  coordinates: n.getCoordinates(e)
5875
5876
  };
5876
5877
  }
5877
- function Rs(n, t) {
5878
+ function Is(n, t) {
5878
5879
  return {
5879
5880
  type: "Point",
5880
5881
  coordinates: n.getCoordinates()
5881
5882
  };
5882
5883
  }
5883
- function Ts(n, t) {
5884
+ function Rs(n, t) {
5884
5885
  let e;
5885
5886
  return t && (e = t.rightHanded), {
5886
5887
  type: "Polygon",
5887
5888
  coordinates: n.getCoordinates(e)
5888
5889
  };
5889
5890
  }
5890
- const Ns = (n, t) => new Cs().writeFeaturesObject(n, t);
5891
- class Os extends on {
5891
+ const Ts = (n, t) => new vs().writeFeaturesObject(n, t);
5892
+ class Ns extends on {
5892
5893
  constructor() {
5893
5894
  super();
5894
5895
  }
@@ -5910,7 +5911,7 @@ class Os extends on {
5910
5911
  */
5911
5912
  readFeature(t, e) {
5912
5913
  return this.readFeatureFromText(
5913
- It(t),
5914
+ Lt(t),
5914
5915
  this.adaptOptions(e)
5915
5916
  );
5916
5917
  }
@@ -5935,7 +5936,7 @@ class Os extends on {
5935
5936
  */
5936
5937
  readFeatures(t, e) {
5937
5938
  return this.readFeaturesFromText(
5938
- It(t),
5939
+ Lt(t),
5939
5940
  this.adaptOptions(e)
5940
5941
  );
5941
5942
  }
@@ -5960,7 +5961,7 @@ class Os extends on {
5960
5961
  */
5961
5962
  readGeometry(t, e) {
5962
5963
  return this.readGeometryFromText(
5963
- It(t),
5964
+ Lt(t),
5964
5965
  this.adaptOptions(e)
5965
5966
  );
5966
5967
  }
@@ -5983,7 +5984,7 @@ class Os extends on {
5983
5984
  * @override
5984
5985
  */
5985
5986
  readProjection(t) {
5986
- return this.readProjectionFromText(It(t));
5987
+ return this.readProjectionFromText(Lt(t));
5987
5988
  }
5988
5989
  /**
5989
5990
  * @param {string} text Text.
@@ -6060,17 +6061,17 @@ class Os extends on {
6060
6061
  return y();
6061
6062
  }
6062
6063
  }
6063
- function It(n) {
6064
+ function Lt(n) {
6064
6065
  return typeof n == "string" ? n : "";
6065
6066
  }
6066
- const ks = {
6067
+ const Os = {
6067
6068
  POINT: z,
6068
6069
  LINESTRING: V,
6069
6070
  POLYGON: J,
6070
6071
  MULTIPOINT: At,
6071
6072
  MULTILINESTRING: Ct,
6072
6073
  MULTIPOLYGON: wt
6073
- }, ln = "EMPTY", hn = "Z", cn = "M", js = "ZM", m = {
6074
+ }, ln = "EMPTY", hn = "Z", cn = "M", ks = "ZM", m = {
6074
6075
  START: 0,
6075
6076
  TEXT: 1,
6076
6077
  LEFT_PAREN: 2,
@@ -6078,7 +6079,7 @@ const ks = {
6078
6079
  NUMBER: 4,
6079
6080
  COMMA: 5,
6080
6081
  EOF: 6
6081
- }, Hs = {
6082
+ }, js = {
6082
6083
  Point: "POINT",
6083
6084
  LineString: "LINESTRING",
6084
6085
  Polygon: "POLYGON",
@@ -6088,7 +6089,7 @@ const ks = {
6088
6089
  GeometryCollection: "GEOMETRYCOLLECTION",
6089
6090
  Circle: "CIRCLE"
6090
6091
  };
6091
- class Us {
6092
+ class Hs {
6092
6093
  /**
6093
6094
  * @param {string} wkt WKT string.
6094
6095
  */
@@ -6186,7 +6187,7 @@ class Us {
6186
6187
  return this.wkt.substring(e, this.index_--).toUpperCase();
6187
6188
  }
6188
6189
  }
6189
- class Xs {
6190
+ class Us {
6190
6191
  /**
6191
6192
  * @param {Lexer} lexer The lexer.
6192
6193
  */
@@ -6237,7 +6238,7 @@ class Xs {
6237
6238
  const e = this.token_;
6238
6239
  if (this.isTokenType(m.TEXT)) {
6239
6240
  const i = e.value;
6240
- i === hn ? t = "XYZ" : i === cn ? t = "XYM" : i === js && (t = "XYZM"), t !== "XY" && this.consume_();
6241
+ i === hn ? t = "XYZ" : i === cn ? t = "XYM" : i === ks && (t = "XYZM"), t !== "XY" && this.consume_();
6241
6242
  }
6242
6243
  return t;
6243
6244
  }
@@ -6424,7 +6425,7 @@ class Xs {
6424
6425
  const o = this.parseGeometryCollectionText_();
6425
6426
  return new B(o);
6426
6427
  }
6427
- const r = ks[e];
6428
+ const r = Os[e];
6428
6429
  if (!r)
6429
6430
  throw new Error("Invalid geometry type: " + e);
6430
6431
  let s;
@@ -6462,7 +6463,7 @@ class Xs {
6462
6463
  throw new Error(this.formatErrorMessage_());
6463
6464
  }
6464
6465
  }
6465
- class Ys extends Os {
6466
+ class Xs extends Ns {
6466
6467
  /**
6467
6468
  * @param {Options} [options] Options.
6468
6469
  */
@@ -6477,8 +6478,8 @@ class Ys extends Os {
6477
6478
  * @private
6478
6479
  */
6479
6480
  parse_(t) {
6480
- const e = new Us(t);
6481
- return new Xs(e).parse();
6481
+ const e = new Hs(t);
6482
+ return new Us(e).parse();
6482
6483
  }
6483
6484
  /**
6484
6485
  * @protected
@@ -6563,13 +6564,13 @@ function un(n) {
6563
6564
  const t = n.getCoordinates();
6564
6565
  return t.length === 0 ? "" : t.join(" ");
6565
6566
  }
6566
- function Bs(n) {
6567
+ function Ys(n) {
6567
6568
  const t = [], e = n.getPoints();
6568
6569
  for (let i = 0, r = e.length; i < r; ++i)
6569
6570
  t.push("(" + un(e[i]) + ")");
6570
6571
  return t.join(",");
6571
6572
  }
6572
- function Vs(n) {
6573
+ function Bs(n) {
6573
6574
  const t = [], e = n.getGeometries();
6574
6575
  for (let i = 0, r = e.length; i < r; ++i)
6575
6576
  t.push(gn(e[i]));
@@ -6581,7 +6582,7 @@ function ke(n) {
6581
6582
  e.push(t[i].join(" "));
6582
6583
  return e.join(",");
6583
6584
  }
6584
- function zs(n) {
6585
+ function Vs(n) {
6585
6586
  const t = [], e = n.getLineStrings();
6586
6587
  for (let i = 0, r = e.length; i < r; ++i)
6587
6588
  t.push("(" + ke(e[i]) + ")");
@@ -6593,32 +6594,32 @@ function dn(n) {
6593
6594
  t.push("(" + ke(e[i]) + ")");
6594
6595
  return t.join(",");
6595
6596
  }
6596
- function Js(n) {
6597
+ function zs(n) {
6597
6598
  const t = [], e = n.getPolygons();
6598
6599
  for (let i = 0, r = e.length; i < r; ++i)
6599
6600
  t.push("(" + dn(e[i]) + ")");
6600
6601
  return t.join(",");
6601
6602
  }
6602
- function Ws(n) {
6603
+ function Js(n) {
6603
6604
  const t = n.getLayout();
6604
6605
  let e = "";
6605
6606
  return (t === "XYZ" || t === "XYZM") && (e += hn), (t === "XYM" || t === "XYZM") && (e += cn), e;
6606
6607
  }
6607
- const qs = {
6608
+ const Ws = {
6608
6609
  Point: un,
6609
6610
  LineString: ke,
6610
6611
  Polygon: dn,
6611
- MultiPoint: Bs,
6612
- MultiLineString: zs,
6613
- MultiPolygon: Js,
6614
- GeometryCollection: Vs
6612
+ MultiPoint: Ys,
6613
+ MultiLineString: Vs,
6614
+ MultiPolygon: zs,
6615
+ GeometryCollection: Bs
6615
6616
  };
6616
6617
  function gn(n) {
6617
- const t = n.getType(), e = qs[t], i = e(n);
6618
- let r = Hs[t];
6618
+ const t = n.getType(), e = Ws[t], i = e(n);
6619
+ let r = js[t];
6619
6620
  if (typeof /** @type {?} */
6620
6621
  n.getFlatCoordinates == "function") {
6621
- const s = Ws(
6622
+ const s = Js(
6622
6623
  /** @type {import("../geom/SimpleGeometry.js").default} */
6623
6624
  n
6624
6625
  );
@@ -6626,7 +6627,7 @@ function gn(n) {
6626
6627
  }
6627
6628
  return i.length === 0 ? r + " " + ln : r + "(" + i + ")";
6628
6629
  }
6629
- const Zs = (n, t) => new Ys().writeFeatures(n, t);
6630
+ const qs = (n, t) => new Xs().writeFeatures(n, t);
6630
6631
  /**
6631
6632
  * @license
6632
6633
  * Copyright 2021 Google LLC
@@ -6653,7 +6654,7 @@ class fn extends U {
6653
6654
  * Updates button states based on conditions
6654
6655
  */
6655
6656
  updateButtonStates() {
6656
- const { drawDisabled: e, discardDisabled: i } = Kn(this);
6657
+ const { drawDisabled: e, discardDisabled: i } = Zn(this);
6657
6658
  $(this, Et, e), $(this, xt, i);
6658
6659
  }
6659
6660
  /**
@@ -6668,7 +6669,7 @@ class fn extends U {
6668
6669
  return H`
6669
6670
  <style>
6670
6671
  ${!this.unstyled && Dn}
6671
- ${!this.unstyled && Qn}
6672
+ ${!this.unstyled && Kn}
6672
6673
  </style>
6673
6674
  <div class="wrap-btn">
6674
6675
  <slot></slot>
@@ -6737,7 +6738,7 @@ class fn extends U {
6737
6738
  <button
6738
6739
  data-cy="copyBtn"
6739
6740
  class="icon-copy"
6740
- @click=${() => tr(this.geoJSON)}
6741
+ @click=${() => Qn(this.geoJSON)}
6741
6742
  >
6742
6743
  ${this.unstyled ? "copy" : C}
6743
6744
  </button>
@@ -6760,7 +6761,7 @@ R(fn, "properties", {
6760
6761
  unstyled: { type: Boolean }
6761
6762
  });
6762
6763
  customElements.define("eox-drawtools-controller", fn);
6763
- const Ks = `
6764
+ const Zs = `
6764
6765
  button.discard:before {
6765
6766
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23FF5252' viewBox='0 0 24 24'%3E%3Ctitle%3Etrash-can-outline%3C/title%3E%3Cpath d='M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z' /%3E%3C/svg%3E")
6766
6767
  }
@@ -6805,19 +6806,19 @@ const Ks = `
6805
6806
  color: white;
6806
6807
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Econtent-copy%3C/title%3E%3Cpath d='M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z' fill='white' /%3E%3C/svg%3E")
6807
6808
  }
6808
- `, pn = (n, t) => {
6809
+ `, Ds = (n) => {
6809
6810
  (() => {
6810
- if (n.emitDrawnFeatures(t), !n.multipleFeatures)
6811
+ if (n.emitDrawnFeatures(), !n.multipleFeatures)
6811
6812
  n.draw.setActive(!1), n.selectionEvents.removeSelectionEvent(), n.currentlyDrawing = !1;
6812
6813
  else if (n.continuous)
6813
6814
  if (!n.layerId)
6814
- n.drawLayer.getSource().clear(!0), n.drawnFeatures = [];
6815
+ n.drawLayer.getSource().clear(), n.drawnFeatures = [];
6815
6816
  else {
6816
- let i;
6817
- t ? i = n.drawnFeatures.at(-1) : (i = n.drawLayer.getSource().getFeatures().at(-1), n.drawLayer.getSource().clear(!0), n.drawLayer.getSource().addFeature(i)), n.drawnFeatures = [i];
6817
+ const i = n.drawLayer.getSource().getFeatures().at(-1);
6818
+ n.drawLayer.getSource().clear(), n.drawLayer.getSource().addFeature(i), n.drawnFeatures = [i];
6818
6819
  }
6819
6820
  })(), n.requestUpdate();
6820
- }, Ds = (n) => {
6821
+ }, Ks = (n) => {
6821
6822
  const t = () => {
6822
6823
  n.drawLayer.set("isDrawingEnabled", !0), n.draw.setActive(!0), n.selectionEvents.addSelectionEvent();
6823
6824
  }, e = () => {
@@ -6859,7 +6860,7 @@ const Ks = `
6859
6860
  {
6860
6861
  type: "select",
6861
6862
  options: {
6862
- id: "selectHover",
6863
+ id: "SelectLayerHoverInteraction",
6863
6864
  condition: "pointermove",
6864
6865
  style: ((a = n.featureStyles) == null ? void 0 : a.hover) || {
6865
6866
  "fill-color": "rgba(51, 153, 204,0.5)",
@@ -6872,7 +6873,7 @@ const Ks = `
6872
6873
  {
6873
6874
  type: "select",
6874
6875
  options: {
6875
- id: "selectClick",
6876
+ id: "SelectLayerClickInteraction",
6876
6877
  condition: "click",
6877
6878
  panIn: !0,
6878
6879
  style: ((l = n.featureStyles) == null ? void 0 : l.click) || {
@@ -6887,7 +6888,7 @@ const Ks = `
6887
6888
  /** @type {unknown} */
6888
6889
  i.interactions.drawInteraction, n.modify = /** @type {import("ol/interaction").Modify} */
6889
6890
  /** @type {unknown} */
6890
- i.interactions.drawInteractionmodify, ge(n, i, n.layerId), (h = n.modify) == null || h.on("modifyend", () => n.onModifyEnd()), i.addEventListener("addfeatures", () => pn(n)), { EoxMap: i, OlMap: r };
6891
+ i.interactions.drawInteractionmodify, ge(n, i, n.layerId), (h = n.modify) == null || h.on("modifyend", () => n.onModifyEnd()), i.addEventListener("addfeatures", () => Ds(n)), { EoxMap: i, OlMap: r };
6891
6892
  }, to = (n) => {
6892
6893
  const t = () => {
6893
6894
  n.drawnFeatures = [], n.draw.setActive(!1), n.selectionEvents.removeSelectionEvent(), n.drawLayer.getSource().clear(), n.geoJSON = null;
@@ -6895,34 +6896,36 @@ const Ks = `
6895
6896
  n.emitDrawnFeatures(), n.currentlyDrawing = !1, n.requestUpdate();
6896
6897
  };
6897
6898
  t(), e();
6898
- }, eo = (n, t, e) => {
6899
+ }, eo = (n, t) => {
6899
6900
  setTimeout(() => {
6900
- const r = e ? n.drawnFeatures : n.drawLayer.getSource().getFeatures(), s = n.eoxMap.projection || "EPSG:3857", o = n.projection;
6901
- n.drawnFeatures = o ? r.map((l) => {
6902
- l = l.clone();
6903
- const h = l.getGeometry().transform(s, o);
6904
- return l.setGeometry(h), l;
6905
- }) : r;
6906
- let a;
6901
+ const i = n.drawLayer.getSource().getFeatures(), r = n.eoxMap.projection || "EPSG:3857", s = n.projection;
6902
+ n.drawnFeatures = s ? i.map((a) => {
6903
+ a = a.clone();
6904
+ const l = a.getGeometry().transform(r, s);
6905
+ return a.setGeometry(l), a;
6906
+ }) : i;
6907
+ let o;
6907
6908
  switch (n.format) {
6908
6909
  case "geojson":
6909
- a = Ns(n.drawnFeatures);
6910
+ o = Ts(n.drawnFeatures);
6910
6911
  break;
6911
6912
  case "wkt":
6912
- a = Zs(n.drawnFeatures);
6913
+ o = qs(n.drawnFeatures);
6913
6914
  break;
6914
6915
  case "feature":
6915
- a = n.drawnFeatures;
6916
+ o = n.drawnFeatures;
6916
6917
  break;
6917
6918
  default:
6918
- a = n.drawnFeatures;
6919
+ o = n.drawnFeatures;
6919
6920
  break;
6920
6921
  }
6921
- n.updateGeoJSON(), n.requestUpdate(), t(a);
6922
+ n.updateGeoJSON(), n.requestUpdate(), t(o);
6922
6923
  }, 0);
6923
6924
  }, io = (n) => {
6924
6925
  const t = (r) => {
6925
- (r == null ? void 0 : r.detail.id) !== "SelectLayerClickInteraction" || !r.detail.feature || (n.drawnFeatures.push(r.detail.feature), pn(n, r.detail.feature));
6926
+ (r == null ? void 0 : r.detail.id) !== "SelectLayerClickInteraction" || !r.detail.feature || (n.drawLayer.getSource().addFeature(r.detail.feature), n.eoxMap.dispatchEvent(
6927
+ new CustomEvent("addfeatures", { detail: r.detail })
6928
+ ));
6926
6929
  };
6927
6930
  return { addSelectionEvent: () => {
6928
6931
  n.layerId && (n.eoxMap.selectInteractions.SelectLayerHoverInteraction.setActive(!0), n.eoxMap.addEventListener("select", t));
@@ -7004,12 +7007,12 @@ function so(n, t) {
7004
7007
  }
7005
7008
  ["dragenter", "dragover", "dragleave", "drop"].forEach((s) => {
7006
7009
  t.addEventListener(s, e, !1), ["dragenter", "dragover"].includes(s) ? t.addEventListener(s, i, !1) : t.addEventListener(s, r, !1);
7007
- }), t.addEventListener("drop", (s) => yn(s, n), !1);
7010
+ }), t.addEventListener("drop", (s) => pn(s, n), !1);
7008
7011
  }
7009
7012
  function oo(n) {
7010
7013
  n.preventDefault(), n.stopPropagation();
7011
7014
  }
7012
- function yn(n, t) {
7015
+ function pn(n, t) {
7013
7016
  oo(n);
7014
7017
  const e = n.dataTransfer ? n.dataTransfer.files : (
7015
7018
  /**@type {HTMLInputElement}*/
@@ -7099,7 +7102,7 @@ class lo extends U {
7099
7102
  * @onClick Event handler triggered to start drawing on the map.
7100
7103
  */
7101
7104
  startDrawing() {
7102
- Ds(this);
7105
+ Ks(this);
7103
7106
  }
7104
7107
  /**
7105
7108
  * @onClick Event handler triggered to discard/stop drawing
@@ -7111,20 +7114,26 @@ class lo extends U {
7111
7114
  /**
7112
7115
  * @param {string} text - The string representation of the features to be parsed.
7113
7116
  * @param {boolean} replaceFeatures - A boolean flag indicating whether to replace the existing features.
7117
+ * @param {boolean} animate - A boolean flag indicating whether to animate the map on feature change.
7114
7118
  */
7115
- handleFeatureChange(e, i = !1) {
7119
+ handleFeatureChange(e, i = !1, r = !0) {
7116
7120
  this.eoxMap.parseTextToFeature(
7117
7121
  e || JSON.stringify(ti),
7118
7122
  this.drawLayer,
7119
7123
  this.eoxMap,
7120
- i
7124
+ i,
7125
+ {
7126
+ dataProjection: this.eoxMap.projection,
7127
+ featureProjection: this.projection
7128
+ },
7129
+ r
7121
7130
  );
7122
7131
  }
7123
7132
  /**
7124
7133
  * @param {DragEvent} evt - The event object from the file input interaction.
7125
7134
  */
7126
7135
  handleFilesChange(e) {
7127
- yn(e, this);
7136
+ pn(e, this);
7128
7137
  }
7129
7138
  /**
7130
7139
  * @event onModifyEnd triggered when the modification of a shape is completed.
@@ -7144,12 +7153,11 @@ class lo extends U {
7144
7153
  }
7145
7154
  /**
7146
7155
  * Triggers different events when the drawing of a shape is completed.
7147
- * @param {import("ol/Feature").default} [selectedFeature] - The feature that was selected by the user.
7148
7156
  */
7149
- emitDrawnFeatures(e) {
7150
- eo(this, (r) => {
7151
- this.dispatchEvent(new CustomEvent("drawupdate", { detail: r }));
7152
- }, e);
7157
+ emitDrawnFeatures() {
7158
+ eo(this, (i) => {
7159
+ this.dispatchEvent(new CustomEvent("drawupdate", { detail: i }));
7160
+ });
7153
7161
  }
7154
7162
  /**
7155
7163
  * Overrides createRenderRoot to handle shadow DOM creation based on the noShadow property.
@@ -7190,7 +7198,7 @@ class lo extends U {
7190
7198
  <style>
7191
7199
  :host { display: block; }
7192
7200
  ${!this.unstyled && ro}
7193
- ${!this.unstyled && Ks}
7201
+ ${!this.unstyled && Zs}
7194
7202
  </style>
7195
7203
 
7196
7204
  <!-- Controller Component -->