@eox/drawtools 0.14.2 → 0.14.3

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.
Files changed (40) hide show
  1. package/dist/eox-drawtools.js +866 -831
  2. package/dist/eox-drawtools.umd.cjs +29 -29
  3. package/package.json +1 -1
  4. package/src/methods/draw/init-selection.js +40 -11
  5. package/src/methods/draw/on-draw-end.js +3 -0
  6. package/types/drawtools/src/methods/draw/init-selection.d.ts +2 -1
  7. package/types/drawtools/src/methods/draw/init-selection.d.ts.map +1 -1
  8. package/types/drawtools/src/methods/draw/on-draw-end.d.ts.map +1 -1
  9. package/types/map/src/components/compare.d.ts +2 -2
  10. package/types/map/src/components/compare.d.ts.map +1 -1
  11. package/types/map/src/components/tooltip.d.ts +7 -2
  12. package/types/map/src/components/tooltip.d.ts.map +1 -1
  13. package/types/map/src/controls/controls.d.ts +0 -6
  14. package/types/map/src/controls/controls.d.ts.map +1 -1
  15. package/types/map/src/controls/geo-location.d.ts +3 -3
  16. package/types/map/src/controls/geo-location.d.ts.map +1 -1
  17. package/types/map/src/controls/loading-indicator.d.ts +1 -1
  18. package/types/map/src/controls/loading-indicator.d.ts.map +1 -1
  19. package/types/map/src/custom/sources/FlatGeoBuf.d.ts +27 -0
  20. package/types/map/src/custom/sources/FlatGeoBuf.d.ts.map +1 -0
  21. package/types/map/src/custom/sources/WMTSCapabilities.d.ts +35 -0
  22. package/types/map/src/custom/sources/WMTSCapabilities.d.ts.map +1 -0
  23. package/types/map/src/helpers/add-new-feature.d.ts.map +1 -1
  24. package/types/map/src/helpers/generate.d.ts +5 -4
  25. package/types/map/src/helpers/generate.d.ts.map +1 -1
  26. package/types/map/src/helpers/interactions.d.ts.map +1 -1
  27. package/types/map/src/helpers/select.d.ts +5 -5
  28. package/types/map/src/helpers/select.d.ts.map +1 -1
  29. package/types/map/src/helpers/tile-grid.d.ts +2 -2
  30. package/types/map/src/helpers/tile-grid.d.ts.map +1 -1
  31. package/types/map/src/layers.d.ts +116 -0
  32. package/types/map/src/layers.d.ts.map +1 -0
  33. package/types/map/src/main.d.ts +6 -6
  34. package/types/map/src/main.d.ts.map +1 -1
  35. package/types/map/src/methods/map/add-update-layer.d.ts +2 -2
  36. package/types/map/src/methods/map/add-update-layer.d.ts.map +1 -1
  37. package/types/map/src/methods/map/setters.d.ts +2 -2
  38. package/types/map/src/methods/map/setters.d.ts.map +1 -1
  39. package/types/map/src/types.d.ts +28 -38
  40. package/types/map/src/types.d.ts.map +1 -1
@@ -1,27 +1,27 @@
1
- var _n = Object.defineProperty;
2
- var Ue = (n) => {
1
+ var Cn = Object.defineProperty;
2
+ var Xe = (n) => {
3
3
  throw TypeError(n);
4
4
  };
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
- 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);
5
+ var bn = (n, t, e) => t in n ? Cn(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
6
+ var R = (n, t, e) => bn(n, typeof t != "symbol" ? t + "" : t, e), Ye = (n, t, e) => t.has(n) || Xe("Cannot " + e);
7
+ var M = (n, t, e) => (Ye(n, t, "read from private field"), e ? e.call(n) : t.get(n)), F = (n, t, e) => t.has(n) ? Xe("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, e), $ = (n, t, e, i) => (Ye(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 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 {
13
+ const Rt = globalThis, pe = Rt.ShadowRoot && (Rt.ShadyCSS === void 0 || Rt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ei = Symbol(), Be = /* @__PURE__ */ new WeakMap();
14
+ let En = class {
15
15
  constructor(t, e, i) {
16
- if (this._$cssResult$ = !0, i !== bi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
16
+ if (this._$cssResult$ = !0, i !== Ei) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
17
17
  this.cssText = t, this.t = e;
18
18
  }
19
19
  get styleSheet() {
20
20
  let t = this.o;
21
21
  const e = this.t;
22
- if (fe && t === void 0) {
22
+ if (pe && t === void 0) {
23
23
  const i = e !== void 0 && e.length === 1;
24
- i && (t = Ye.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Ye.set(e, t));
24
+ i && (t = Be.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Be.set(e, t));
25
25
  }
26
26
  return t;
27
27
  }
@@ -29,26 +29,26 @@ let Cn = class {
29
29
  return this.cssText;
30
30
  }
31
31
  };
32
- const wn = (n) => new Cn(typeof n == "string" ? n : n + "", void 0, bi), bn = (n, t) => {
33
- if (fe) n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
32
+ const xn = (n) => new En(typeof n == "string" ? n : n + "", void 0, Ei), Pn = (n, t) => {
33
+ if (pe) 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 = It.litNonce;
35
+ const i = document.createElement("style"), r = Rt.litNonce;
36
36
  r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, n.appendChild(i);
37
37
  }
38
- }, Be = fe ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
38
+ }, Ve = pe ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
39
39
  let e = "";
40
40
  for (const i of t.cssRules) e += i.cssText;
41
- return wn(e);
41
+ return xn(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: 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) {
48
+ const { is: Mn, defineProperty: Sn, getOwnPropertyDescriptor: $n, getOwnPropertyNames: An, getOwnPropertySymbols: Fn, getPrototypeOf: Gn } = Object, I = globalThis, ze = I.trustedTypes, In = ze ? ze.emptyScript : "", Qt = I.reactiveElementPolyfillSupport, ft = (n, t) => n, oe = { toAttribute(n, t) {
49
49
  switch (t) {
50
50
  case Boolean:
51
- n = n ? An : null;
51
+ n = n ? In : null;
52
52
  break;
53
53
  case Object:
54
54
  case Array:
@@ -73,46 +73,44 @@ const { is: En, defineProperty: xn, getOwnPropertyDescriptor: Pn, getOwnProperty
73
73
  }
74
74
  }
75
75
  return e;
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
- class tt extends HTMLElement {
76
+ } }, xi = (n, t) => !Mn(n, t), Je = { attribute: !0, type: String, converter: oe, reflect: !1, useDefault: !1, hasChanged: xi };
77
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), I.litPropertyMetadata ?? (I.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
+ let et = class extends HTMLElement {
79
79
  static addInitializer(t) {
80
80
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
81
81
  }
82
82
  static get observedAttributes() {
83
83
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
84
84
  }
85
- static createProperty(t, e = ze) {
86
- if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
85
+ static createProperty(t, e = Je) {
86
+ if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
87
87
  const i = Symbol(), r = this.getPropertyDescriptor(t, i, e);
88
- r !== void 0 && xn(this.prototype, t, r);
88
+ r !== void 0 && Sn(this.prototype, t, r);
89
89
  }
90
90
  }
91
91
  static getPropertyDescriptor(t, e, i) {
92
- const { get: r, set: s } = Pn(this.prototype, t) ?? { get() {
92
+ const { get: r, set: s } = $n(this.prototype, t) ?? { get() {
93
93
  return this[e];
94
94
  }, set(o) {
95
95
  this[e] = o;
96
96
  } };
97
- return { get() {
98
- return r == null ? void 0 : r.call(this);
99
- }, set(o) {
97
+ return { get: r, set(o) {
100
98
  const a = r == null ? void 0 : r.call(this);
101
- s.call(this, o), this.requestUpdate(t, a, i);
99
+ s == null || s.call(this, o), this.requestUpdate(t, a, i);
102
100
  }, configurable: !0, enumerable: !0 };
103
101
  }
104
102
  static getPropertyOptions(t) {
105
- return this.elementProperties.get(t) ?? ze;
103
+ return this.elementProperties.get(t) ?? Je;
106
104
  }
107
105
  static _$Ei() {
108
- if (this.hasOwnProperty(dt("elementProperties"))) return;
109
- const t = $n(this);
106
+ if (this.hasOwnProperty(ft("elementProperties"))) return;
107
+ const t = Gn(this);
110
108
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
111
109
  }
112
110
  static finalize() {
113
- if (this.hasOwnProperty(dt("finalized"))) return;
114
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(dt("properties"))) {
115
- const e = this.properties, i = [...Mn(e), ...Sn(e)];
111
+ if (this.hasOwnProperty(ft("finalized"))) return;
112
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ft("properties"))) {
113
+ const e = this.properties, i = [...An(e), ...Fn(e)];
116
114
  for (const r of i) this.createProperty(r, e[r]);
117
115
  }
118
116
  const t = this[Symbol.metadata];
@@ -131,8 +129,8 @@ class tt extends HTMLElement {
131
129
  const e = [];
132
130
  if (Array.isArray(t)) {
133
131
  const i = new Set(t.flat(1 / 0).reverse());
134
- for (const r of i) e.unshift(Be(r));
135
- } else t !== void 0 && e.push(Be(t));
132
+ for (const r of i) e.unshift(Ve(r));
133
+ } else t !== void 0 && e.push(Ve(t));
136
134
  return e;
137
135
  }
138
136
  static _$Eu(t, e) {
@@ -161,7 +159,7 @@ class tt extends HTMLElement {
161
159
  }
162
160
  createRenderRoot() {
163
161
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
164
- return bn(t, this.constructor.elementStyles), t;
162
+ return Pn(t, this.constructor.elementStyles), t;
165
163
  }
166
164
  connectedCallback() {
167
165
  var t;
@@ -182,33 +180,35 @@ class tt extends HTMLElement {
182
180
  attributeChangedCallback(t, e, i) {
183
181
  this._$AK(t, i);
184
182
  }
185
- _$EC(t, e) {
183
+ _$ET(t, e) {
186
184
  var s;
187
185
  const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
188
186
  if (r !== void 0 && i.reflect === !0) {
189
- const o = (((s = i.converter) == null ? void 0 : s.toAttribute) !== void 0 ? i.converter : se).toAttribute(e, i.type);
187
+ const o = (((s = i.converter) == null ? void 0 : s.toAttribute) !== void 0 ? i.converter : oe).toAttribute(e, i.type);
190
188
  this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
191
189
  }
192
190
  }
193
191
  _$AK(t, e) {
194
- var s;
192
+ var s, o;
195
193
  const i = this.constructor, r = i._$Eh.get(t);
196
194
  if (r !== void 0 && this._$Em !== r) {
197
- const o = i.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? o.converter : se;
198
- this._$Em = r, this[r] = a.fromAttribute(e, o.type), this._$Em = null;
195
+ const a = i.getPropertyOptions(r), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((s = a.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? a.converter : oe;
196
+ this._$Em = r, this[r] = l.fromAttribute(e, a.type) ?? ((o = this._$Ej) == null ? void 0 : o.get(r)) ?? null, this._$Em = null;
199
197
  }
200
198
  }
201
199
  requestUpdate(t, e, i) {
200
+ var r;
202
201
  if (t !== void 0) {
203
- if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? Ei)(this[t], e)) return;
204
- this.P(t, e, i);
202
+ const s = this.constructor, o = this[t];
203
+ if (i ?? (i = s.getPropertyOptions(t)), !((i.hasChanged ?? xi)(o, e) || i.useDefault && i.reflect && o === ((r = this._$Ej) == null ? void 0 : r.get(t)) && !this.hasAttribute(s._$Eu(t, i)))) return;
204
+ this.C(t, e, i);
205
205
  }
206
- this.isUpdatePending === !1 && (this._$ES = this._$ET());
206
+ this.isUpdatePending === !1 && (this._$ES = this._$EP());
207
207
  }
208
- P(t, e, i) {
209
- this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
208
+ C(t, e, { useDefault: i, reflect: r, wrapped: s }, o) {
209
+ i && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, o ?? e ?? this[t]), s !== !0 || o !== void 0) || (this._$AL.has(t) || (this.hasUpdated || i || (e = void 0), this._$AL.set(t, e)), r === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
210
210
  }
211
- async _$ET() {
211
+ async _$EP() {
212
212
  this.isUpdatePending = !0;
213
213
  try {
214
214
  await this._$ES;
@@ -230,7 +230,10 @@ class tt extends HTMLElement {
230
230
  this._$Ep = void 0;
231
231
  }
232
232
  const r = this.constructor.elementProperties;
233
- if (r.size > 0) for (const [s, o] of r) o.wrapped !== !0 || this._$AL.has(s) || this[s] === void 0 || this.P(s, this[s], o);
233
+ if (r.size > 0) for (const [s, o] of r) {
234
+ const { wrapped: a } = o, l = this[s];
235
+ a !== !0 || this._$AL.has(s) || l === void 0 || this.C(s, void 0, o, l);
236
+ }
234
237
  }
235
238
  let t = !1;
236
239
  const e = this._$AL;
@@ -238,9 +241,9 @@ class tt extends HTMLElement {
238
241
  t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((r) => {
239
242
  var s;
240
243
  return (s = r.hostUpdate) == null ? void 0 : s.call(r);
241
- }), this.update(e)) : this._$EU();
244
+ }), this.update(e)) : this._$EM();
242
245
  } catch (r) {
243
- throw t = !1, this._$EU(), r;
246
+ throw t = !1, this._$EM(), r;
244
247
  }
245
248
  t && this._$AE(e);
246
249
  }
@@ -253,7 +256,7 @@ class tt extends HTMLElement {
253
256
  return (r = i.hostUpdated) == null ? void 0 : r.call(i);
254
257
  }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
255
258
  }
256
- _$EU() {
259
+ _$EM() {
257
260
  this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
258
261
  }
259
262
  get updateComplete() {
@@ -266,63 +269,63 @@ class tt extends HTMLElement {
266
269
  return !0;
267
270
  }
268
271
  update(t) {
269
- this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
272
+ this._$Eq && (this._$Eq = this._$Eq.forEach((e) => this._$ET(e, this[e]))), this._$EM();
270
273
  }
271
274
  updated(t) {
272
275
  }
273
276
  firstUpdated(t) {
274
277
  }
275
- }
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");
278
+ };
279
+ et.elementStyles = [], et.shadowRootOptions = { mode: "open" }, et[ft("elementProperties")] = /* @__PURE__ */ new Map(), et[ft("finalized")] = /* @__PURE__ */ new Map(), Qt == null || Qt({ ReactiveElement: et }), (I.reactiveElementVersions ?? (I.reactiveElementVersions = [])).push("2.1.0");
277
280
  /**
278
281
  * @license
279
282
  * Copyright 2017 Google LLC
280
283
  * SPDX-License-Identifier: BSD-3-Clause
281
284
  */
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
- \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, 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
- function Si(n, t) {
286
- if (!pe(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
287
- return Je !== void 0 ? Je.createHTML(t) : t;
288
- }
289
- const In = (n, t) => {
285
+ const gt = globalThis, Nt = gt.trustedTypes, We = Nt ? Nt.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Pi = "$lit$", G = `lit$${Math.random().toFixed(9).slice(2)}$`, Mi = "?" + G, Ln = `<${Mi}>`, B = document, pt = () => B.createComment(""), yt = (n) => n === null || typeof n != "object" && typeof n != "function", ye = Array.isArray, Rn = (n) => ye(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", te = `[
286
+ \f\r]`, dt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, qe = /-->/g, De = />/g, T = RegExp(`>|${te}(?:([^\\s"'>=/]+)(${te}*=${te}*(?:[^
287
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Ze = /'/g, Ke = /"/g, Si = /^(?:script|style|textarea|title)$/i, Tn = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), H = Tn(1), at = Symbol.for("lit-noChange"), w = Symbol.for("lit-nothing"), Qe = /* @__PURE__ */ new WeakMap(), O = B.createTreeWalker(B, 129);
288
+ function $i(n, t) {
289
+ if (!ye(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
290
+ return We !== void 0 ? We.createHTML(t) : t;
291
+ }
292
+ const Nn = (n, t) => {
290
293
  const e = n.length - 1, i = [];
291
- let r, s = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = ut;
294
+ let r, s = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = dt;
292
295
  for (let a = 0; a < e; a++) {
293
296
  const l = n[a];
294
297
  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] === '"' ? De : Ze) : o === De || o === Ze ? o = T : o === We || o === qe ? o = ut : (o = T, r = void 0);
296
- const g = o === T && n[a + 1].startsWith("/>") ? " " : "";
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
+ for (; d < l.length && (o.lastIndex = d, c = o.exec(l), c !== null); ) d = o.lastIndex, o === dt ? c[1] === "!--" ? o = qe : c[1] !== void 0 ? o = De : c[2] !== void 0 ? (Si.test(c[2]) && (r = RegExp("</" + c[2], "g")), o = T) : c[3] !== void 0 && (o = T) : o === T ? c[0] === ">" ? (o = r ?? dt, 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 === qe || o === De ? o = dt : (o = T, r = void 0);
299
+ const f = o === T && n[a + 1].startsWith("/>") ? " " : "";
300
+ s += o === dt ? l + Ln : u >= 0 ? (i.push(h), l.slice(0, u) + Pi + l.slice(u) + G + f) : l + G + (u === -2 ? a : f);
298
301
  }
299
- return [Si(n, s + (n[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
302
+ return [$i(n, s + (n[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
300
303
  };
301
- class yt {
304
+ class mt {
302
305
  constructor({ strings: t, _$litType$: e }, i) {
303
306
  let r;
304
307
  this.parts = [];
305
308
  let s = 0, o = 0;
306
- const a = t.length - 1, l = this.parts, [h, c] = In(t, e);
307
- if (this.el = yt.createElement(h, i), O.currentNode = this.el.content, e === 2 || e === 3) {
309
+ const a = t.length - 1, l = this.parts, [h, c] = Nn(t, e);
310
+ if (this.el = mt.createElement(h, i), O.currentNode = this.el.content, e === 2 || e === 3) {
308
311
  const u = this.el.content.firstChild;
309
312
  u.replaceWith(...u.childNodes);
310
313
  }
311
314
  for (; (r = O.nextNode()) !== null && l.length < a; ) {
312
315
  if (r.nodeType === 1) {
313
- if (r.hasAttributes()) for (const u of r.getAttributeNames()) if (u.endsWith(xi)) {
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] === "." ? Tn : f[1] === "?" ? Nn : f[1] === "@" ? On : Xt }), r.removeAttribute(u);
316
+ if (r.hasAttributes()) for (const u of r.getAttributeNames()) if (u.endsWith(Pi)) {
317
+ const d = c[o++], f = r.getAttribute(u).split(G), g = /([.?@])?(.*)/.exec(d);
318
+ l.push({ type: 1, index: s, name: g[2], strings: f, ctor: g[1] === "." ? kn : g[1] === "?" ? jn : g[1] === "@" ? Hn : Yt }), r.removeAttribute(u);
316
319
  } else u.startsWith(G) && (l.push({ type: 6, index: s }), r.removeAttribute(u));
317
- if (Mi.test(r.tagName)) {
320
+ if (Si.test(r.tagName)) {
318
321
  const u = r.textContent.split(G), d = u.length - 1;
319
322
  if (d > 0) {
320
- r.textContent = Tt ? Tt.emptyScript : "";
321
- for (let g = 0; g < d; g++) r.append(u[g], ft()), O.nextNode(), l.push({ type: 2, index: ++s });
322
- r.append(u[d], ft());
323
+ r.textContent = Nt ? Nt.emptyScript : "";
324
+ for (let f = 0; f < d; f++) r.append(u[f], pt()), O.nextNode(), l.push({ type: 2, index: ++s });
325
+ r.append(u[d], pt());
323
326
  }
324
327
  }
325
- } else if (r.nodeType === 8) if (r.data === Pi) l.push({ type: 2, index: s });
328
+ } else if (r.nodeType === 8) if (r.data === Mi) l.push({ type: 2, index: s });
326
329
  else {
327
330
  let u = -1;
328
331
  for (; (u = r.data.indexOf(G, u + 1)) !== -1; ) l.push({ type: 7, index: s }), u += G.length - 1;
@@ -331,18 +334,18 @@ class yt {
331
334
  }
332
335
  }
333
336
  static createElement(t, e) {
334
- const i = Y.createElement("template");
337
+ const i = B.createElement("template");
335
338
  return i.innerHTML = t, i;
336
339
  }
337
340
  }
338
- function at(n, t, e = n, i) {
341
+ function lt(n, t, e = n, i) {
339
342
  var o, a;
340
- if (t === ot) return t;
343
+ if (t === at) return t;
341
344
  let r = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
342
- const s = pt(t) ? void 0 : t._$litDirective$;
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;
345
+ const s = yt(t) ? void 0 : t._$litDirective$;
346
+ 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 = lt(n, r._$AS(n, t.values), r, i)), t;
344
347
  }
345
- let Rn = class {
348
+ let On = class {
346
349
  constructor(t, e) {
347
350
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
348
351
  }
@@ -353,29 +356,29 @@ let Rn = class {
353
356
  return this._$AM._$AU;
354
357
  }
355
358
  u(t) {
356
- const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? Y).importNode(e, !0);
359
+ const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? B).importNode(e, !0);
357
360
  O.currentNode = r;
358
361
  let s = O.nextNode(), o = 0, a = 0, l = i[0];
359
362
  for (; l !== void 0; ) {
360
363
  if (o === l.index) {
361
364
  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 kn(s, this, t)), this._$AV.push(h), l = i[++a];
365
+ l.type === 2 ? h = new me(s, s.nextSibling, this, t) : l.type === 1 ? h = new l.ctor(s, l.name, l.strings, this, t) : l.type === 6 && (h = new Un(s, this, t)), this._$AV.push(h), l = i[++a];
363
366
  }
364
367
  o !== (l == null ? void 0 : l.index) && (s = O.nextNode(), o++);
365
368
  }
366
- return O.currentNode = Y, r;
369
+ return O.currentNode = B, r;
367
370
  }
368
371
  p(t) {
369
372
  let e = 0;
370
373
  for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
371
374
  }
372
- }, ye = class $i {
375
+ }, me = class Ai {
373
376
  get _$AU() {
374
377
  var t;
375
378
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
376
379
  }
377
380
  constructor(t, e, i, r) {
378
- this.type = 2, this._$AH = C, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
381
+ this.type = 2, this._$AH = w, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
379
382
  }
380
383
  get parentNode() {
381
384
  let t = this._$AA.parentNode;
@@ -389,7 +392,7 @@ let Rn = class {
389
392
  return this._$AB;
390
393
  }
391
394
  _$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) : Gn(t) ? this.k(t) : this._(t);
395
+ t = lt(this, t, e), yt(t) ? t === w || t == null || t === "" ? (this._$AH !== w && this._$AR(), this._$AH = w) : t !== this._$AH && t !== at && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Rn(t) ? this.k(t) : this._(t);
393
396
  }
394
397
  O(t) {
395
398
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -398,26 +401,26 @@ let Rn = class {
398
401
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
399
402
  }
400
403
  _(t) {
401
- this._$AH !== C && pt(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Y.createTextNode(t)), this._$AH = t;
404
+ this._$AH !== w && yt(this._$AH) ? this._$AA.nextSibling.data = t : this.T(B.createTextNode(t)), this._$AH = t;
402
405
  }
403
406
  $(t) {
404
407
  var s;
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);
408
+ const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = mt.createElement($i(i.h, i.h[0]), this.options)), i);
406
409
  if (((s = this._$AH) == null ? void 0 : s._$AD) === r) this._$AH.p(e);
407
410
  else {
408
- const o = new Rn(r, this), a = o.u(this.options);
411
+ const o = new On(r, this), a = o.u(this.options);
409
412
  o.p(e), this.T(a), this._$AH = o;
410
413
  }
411
414
  }
412
415
  _$AC(t) {
413
- let e = Ke.get(t.strings);
414
- return e === void 0 && Ke.set(t.strings, e = new yt(t)), e;
416
+ let e = Qe.get(t.strings);
417
+ return e === void 0 && Qe.set(t.strings, e = new mt(t)), e;
415
418
  }
416
419
  k(t) {
417
- pe(this._$AH) || (this._$AH = [], this._$AR());
420
+ ye(this._$AH) || (this._$AH = [], this._$AR());
418
421
  const e = this._$AH;
419
422
  let i, r = 0;
420
- for (const s of t) r === e.length ? e.push(i = new $i(this.O(ft()), this.O(ft()), this, this.options)) : i = e[r], i._$AI(s), r++;
423
+ for (const s of t) r === e.length ? e.push(i = new Ai(this.O(pt()), this.O(pt()), this, this.options)) : i = e[r], i._$AI(s), r++;
421
424
  r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
422
425
  }
423
426
  _$AR(t = this._$AA.nextSibling, e) {
@@ -432,7 +435,7 @@ let Rn = class {
432
435
  this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
433
436
  }
434
437
  };
435
- class Xt {
438
+ class Yt {
436
439
  get tagName() {
437
440
  return this.element.tagName;
438
441
  }
@@ -440,46 +443,46 @@ class Xt {
440
443
  return this._$AM._$AU;
441
444
  }
442
445
  constructor(t, e, i, r, s) {
443
- this.type = 1, this._$AH = C, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = s, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = C;
446
+ this.type = 1, this._$AH = w, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = s, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = w;
444
447
  }
445
448
  _$AI(t, e = this, i, r) {
446
449
  const s = this.strings;
447
450
  let o = !1;
448
- if (s === void 0) t = at(this, t, e, 0), o = !pt(t) || t !== this._$AH && t !== ot, o && (this._$AH = t);
451
+ if (s === void 0) t = lt(this, t, e, 0), o = !yt(t) || t !== this._$AH && t !== at, o && (this._$AH = t);
449
452
  else {
450
453
  const a = t;
451
454
  let l, h;
452
- for (t = s[0], l = 0; l < s.length - 1; l++) h = at(this, a[i + l], e, l), h === ot && (h = this._$AH[l]), o || (o = !pt(h) || h !== this._$AH[l]), h === C ? t = C : t !== C && (t += (h ?? "") + s[l + 1]), this._$AH[l] = h;
455
+ for (t = s[0], l = 0; l < s.length - 1; l++) h = lt(this, a[i + l], e, l), h === at && (h = this._$AH[l]), o || (o = !yt(h) || h !== this._$AH[l]), h === w ? t = w : t !== w && (t += (h ?? "") + s[l + 1]), this._$AH[l] = h;
453
456
  }
454
457
  o && !r && this.j(t);
455
458
  }
456
459
  j(t) {
457
- t === C ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
460
+ t === w ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
458
461
  }
459
462
  }
460
- class Tn extends Xt {
463
+ class kn extends Yt {
461
464
  constructor() {
462
465
  super(...arguments), this.type = 3;
463
466
  }
464
467
  j(t) {
465
- this.element[this.name] = t === C ? void 0 : t;
468
+ this.element[this.name] = t === w ? void 0 : t;
466
469
  }
467
470
  }
468
- class Nn extends Xt {
471
+ class jn extends Yt {
469
472
  constructor() {
470
473
  super(...arguments), this.type = 4;
471
474
  }
472
475
  j(t) {
473
- this.element.toggleAttribute(this.name, !!t && t !== C);
476
+ this.element.toggleAttribute(this.name, !!t && t !== w);
474
477
  }
475
478
  }
476
- class On extends Xt {
479
+ class Hn extends Yt {
477
480
  constructor(t, e, i, r, s) {
478
481
  super(t, e, i, r, s), this.type = 5;
479
482
  }
480
483
  _$AI(t, e = this) {
481
- if ((t = at(this, t, e, 0) ?? C) === ot) return;
482
- const i = this._$AH, r = t === C && i !== C || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, s = t !== C && (i === C || r);
484
+ if ((t = lt(this, t, e, 0) ?? w) === at) return;
485
+ const i = this._$AH, r = t === w && i !== w || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, s = t !== w && (i === w || r);
483
486
  r && this.element.removeEventListener(this.name, this, i), s && this.element.addEventListener(this.name, this, t), this._$AH = t;
484
487
  }
485
488
  handleEvent(t) {
@@ -487,7 +490,7 @@ class On extends Xt {
487
490
  typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
488
491
  }
489
492
  }
490
- class kn {
493
+ class Un {
491
494
  constructor(t, e, i) {
492
495
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
493
496
  }
@@ -495,17 +498,17 @@ class kn {
495
498
  return this._$AM._$AU;
496
499
  }
497
500
  _$AI(t) {
498
- at(this, t);
501
+ lt(this, t);
499
502
  }
500
503
  }
501
- const te = gt.litHtmlPolyfillSupport;
502
- te == null || te(yt, ye), (gt.litHtmlVersions ?? (gt.litHtmlVersions = [])).push("3.2.1");
503
- const jn = (n, t, e) => {
504
+ const ee = gt.litHtmlPolyfillSupport;
505
+ ee == null || ee(mt, me), (gt.litHtmlVersions ?? (gt.litHtmlVersions = [])).push("3.3.0");
506
+ const Xn = (n, t, e) => {
504
507
  const i = (e == null ? void 0 : e.renderBefore) ?? t;
505
508
  let r = i._$litPart$;
506
509
  if (r === void 0) {
507
510
  const s = (e == null ? void 0 : e.renderBefore) ?? null;
508
- i._$litPart$ = r = new ye(t.insertBefore(ft(), s), s, void 0, e ?? {});
511
+ i._$litPart$ = r = new me(t.insertBefore(pt(), s), s, void 0, e ?? {});
509
512
  }
510
513
  return r._$AI(n), r;
511
514
  };
@@ -514,7 +517,8 @@ const jn = (n, t, e) => {
514
517
  * Copyright 2017 Google LLC
515
518
  * SPDX-License-Identifier: BSD-3-Clause
516
519
  */
517
- class U extends tt {
520
+ const U = globalThis;
521
+ let X = class extends et {
518
522
  constructor() {
519
523
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
520
524
  }
@@ -525,7 +529,7 @@ class U extends tt {
525
529
  }
526
530
  update(t) {
527
531
  const e = this.render();
528
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = jn(e, this.renderRoot, this.renderOptions);
532
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Xn(e, this.renderRoot, this.renderOptions);
529
533
  }
530
534
  connectedCallback() {
531
535
  var t;
@@ -536,21 +540,21 @@ class U extends tt {
536
540
  super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
537
541
  }
538
542
  render() {
539
- return ot;
543
+ return at;
540
544
  }
541
- }
542
- var wi;
543
- U._$litElement$ = !0, U.finalized = !0, (wi = globalThis.litElementHydrateSupport) == null || wi.call(globalThis, { LitElement: U });
544
- const ee = globalThis.litElementPolyfillSupport;
545
- ee == null || ee({ LitElement: U });
546
- (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
545
+ };
546
+ var bi;
547
+ X._$litElement$ = !0, X.finalized = !0, (bi = U.litElementHydrateSupport) == null || bi.call(U, { LitElement: X });
548
+ const ie = U.litElementPolyfillSupport;
549
+ ie == null || ie({ LitElement: X });
550
+ (U.litElementVersions ?? (U.litElementVersions = [])).push("4.2.0");
547
551
  /**
548
552
  * @license
549
553
  * Copyright 2017 Google LLC
550
554
  * SPDX-License-Identifier: BSD-3-Clause
551
555
  */
552
- const Hn = (n) => (...t) => ({ _$litDirective$: n, values: t });
553
- let Un = class {
556
+ const Yn = (n) => (...t) => ({ _$litDirective$: n, values: t });
557
+ let Bn = class {
554
558
  constructor(t) {
555
559
  }
556
560
  get _$AU() {
@@ -571,23 +575,23 @@ let Un = class {
571
575
  * Copyright 2020 Google LLC
572
576
  * SPDX-License-Identifier: BSD-3-Clause
573
577
  */
574
- const Xn = {}, Yn = (n, t = Xn) => n._$AH = t;
578
+ const Vn = {}, zn = (n, t = Vn) => n._$AH = t;
575
579
  /**
576
580
  * @license
577
581
  * Copyright 2021 Google LLC
578
582
  * SPDX-License-Identifier: BSD-3-Clause
579
583
  */
580
- const Bn = Hn(class extends Un {
584
+ const Jn = Yn(class extends Bn {
581
585
  constructor() {
582
- super(...arguments), this.key = C;
586
+ super(...arguments), this.key = w;
583
587
  }
584
588
  render(n, t) {
585
589
  return this.key = n, t;
586
590
  }
587
591
  update(n, [t, e]) {
588
- return t !== this.key && (Yn(n), this.key = t), e;
592
+ return t !== this.key && (zn(n), this.key = t), e;
589
593
  }
590
- }), Vn = (n) => {
594
+ }), Wn = (n) => {
591
595
  n.hoverInteraction = n.eoxMap.selectInteractions.SelectLayerHoverInteraction, n.clickInteraction = n.eoxMap.selectInteractions.SelectLayerClickInteraction;
592
596
  const t = () => {
593
597
  n.requestUpdate();
@@ -599,32 +603,32 @@ const Bn = Hn(class extends Un {
599
603
  "change",
600
604
  t
601
605
  );
602
- }, zn = (n, t, e) => {
606
+ }, qn = (n, t, e) => {
603
607
  if (n.clickId === t) return;
604
608
  const i = e ? [] : [t];
605
609
  n.hoverInteraction.highlightById(i);
606
- }, Jn = (n, t) => {
610
+ }, Dn = (n, t) => {
607
611
  n.stopPropagation();
608
612
  const e = Number(n.target.getAttribute("index")), i = t.drawLayer.getSource().getFeatures()[e];
609
613
  t.drawLayer.getSource().removeFeature(i), t.drawnFeatures.splice(e, 1), t.requestUpdate();
610
- }, Qe = {
614
+ }, ti = {
611
615
  duration: 750,
612
616
  padding: [20, 20, 20, 20]
613
- }, ti = {
617
+ }, ei = {
614
618
  type: "FeatureCollection",
615
619
  features: []
616
- }, Wn = (n, t) => {
620
+ }, Zn = (n, t) => {
617
621
  const { clickId: e, drawLayer: i, olMap: r, clickInteraction: s } = t, o = s.getId(n);
618
622
  if (e === o) {
619
623
  const l = i.getSource().getExtent();
620
- r.getView().fit(l, Qe), s.highlightById([]);
624
+ r.getView().fit(l, ti), s.highlightById([]);
621
625
  } else {
622
626
  const l = t.eoxMap.projection || "EPSG:3857", h = t.eoxDrawTools.projection, c = n.clone().getGeometry().transform(h, l).getExtent();
623
- s.highlightById([o]), r.getView().fit(c, Qe);
627
+ s.highlightById([o]), r.getView().fit(c, ti);
624
628
  }
625
629
  t.requestUpdate();
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
- class Ai extends U {
630
+ }, Kn = "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;}";
631
+ class Fi extends X {
628
632
  constructor() {
629
633
  super();
630
634
  /**
@@ -651,7 +655,7 @@ class Ai extends U {
651
655
  * @param {Event & { target: HTMLButtonElement }} evt - Event object containing button target.
652
656
  */
653
657
  _handleDelete(e) {
654
- Jn(e, this), this.dispatchEvent(new CustomEvent("changed", { bubbles: !0 }));
658
+ Dn(e, this), this.dispatchEvent(new CustomEvent("changed", { bubbles: !0 }));
655
659
  }
656
660
  /**
657
661
  * Handles the selection and deselection of a feature from the list.
@@ -659,7 +663,7 @@ class Ai extends U {
659
663
  * @param {import("ol").Feature} feature - The selected feature.
660
664
  */
661
665
  _handleFeatureSelectAndDeselect(e) {
662
- Wn(e, this);
666
+ Zn(e, this);
663
667
  }
664
668
  /**
665
669
  *
@@ -667,13 +671,13 @@ class Ai extends U {
667
671
  * @param {Boolean} mouseOut - Flag indicating mouse out event.
668
672
  */
669
673
  _handleHoverFeature(e, i = !1) {
670
- zn(this, e, i);
674
+ qn(this, e, i);
671
675
  }
672
676
  /**
673
677
  * Initiates initial settings and event triggers upon the component's first update.
674
678
  */
675
679
  firstUpdated() {
676
- Vn(this);
680
+ Wn(this);
677
681
  }
678
682
  /**
679
683
  * Overrides createRenderRoot to handle shadow DOM.
@@ -685,18 +689,18 @@ class Ai extends U {
685
689
  var e, i;
686
690
  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
691
  <style>
688
- ${!this.unstyled && qn}
692
+ ${!this.unstyled && Kn}
689
693
  </style>
690
694
  <ul class="list-wrap">
691
695
  ${this.drawnFeatures.map((r, s) => {
692
696
  const o = s + 1, a = Object.values(
693
697
  this.eoxMap.selectInteractions
694
698
  )[0].getId(r), l = this.hoverId === a, h = this.clickId === a;
695
- return Bn(
699
+ return Jn(
696
700
  o,
697
701
  H`
698
702
  <li
699
- class="${l || h ? "selected" : C}"
703
+ class="${l || h ? "selected" : w}"
700
704
  @mouseover=${() => this._handleHoverFeature(a)}
701
705
  @mouseout=${() => this._handleHoverFeature(a, !0)}
702
706
  >
@@ -724,7 +728,7 @@ class Ai extends U {
724
728
  `;
725
729
  }
726
730
  }
727
- R(Ai, "properties", {
731
+ R(Fi, "properties", {
728
732
  eoxDrawTools: { attribute: !1, state: !0 },
729
733
  eoxMap: { attribute: !1, state: !0 },
730
734
  olMap: { attribute: !1, state: !0 },
@@ -735,12 +739,12 @@ R(Ai, "properties", {
735
739
  modify: { attribute: !1, state: !0 },
736
740
  unstyled: { type: Boolean }
737
741
  });
738
- customElements.define("eox-drawtools-list", Ai);
739
- const Zn = (n) => {
742
+ customElements.define("eox-drawtools-list", Fi);
743
+ const Qn = (n) => {
740
744
  const { multipleFeatures: t, drawnFeatures: e, currentlyDrawing: i } = n, r = !t && (e == null ? void 0 : e.length) > 0 || i, s = !(e != null && e.length) && !i;
741
745
  return { drawDisabled: r, discardDisabled: s };
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) {
746
+ }, tr = "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;}", er = '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);}';
747
+ function ir(n) {
744
748
  navigator.clipboard.writeText(n).then(
745
749
  function() {
746
750
  },
@@ -749,14 +753,14 @@ function Qn(n) {
749
753
  }
750
754
  );
751
755
  }
752
- const tr = {
756
+ const nr = {
753
757
  /**
754
758
  * Triggered when a property is changed.
755
759
  * @event module:ol/Object.ObjectEvent#propertychange
756
760
  * @api
757
761
  */
758
762
  PROPERTYCHANGE: "propertychange"
759
- }, me = {
763
+ }, _e = {
760
764
  /**
761
765
  * Generic change event. Triggered when the revision counter is increased.
762
766
  * @event module:ol/events/Event~BaseEvent#change
@@ -764,7 +768,7 @@ const tr = {
764
768
  */
765
769
  CHANGE: "change"
766
770
  };
767
- class er {
771
+ class rr {
768
772
  constructor() {
769
773
  this.disposed = !1;
770
774
  }
@@ -781,15 +785,15 @@ class er {
781
785
  disposeInternal() {
782
786
  }
783
787
  }
784
- function ir(n, t, e) {
788
+ function sr(n, t, e) {
785
789
  let i, r;
786
- e = e || Fi;
790
+ e = e || Gi;
787
791
  let s = 0, o = n.length, a = !1;
788
792
  for (; s < o; )
789
793
  i = s + (o - s >> 1), r = +e(n[i], t), r < 0 ? s = i + 1 : (o = i, a = !r);
790
794
  return a ? s : ~s;
791
795
  }
792
- function Fi(n, t) {
796
+ function Gi(n, t) {
793
797
  return n > t ? 1 : n < t ? -1 : 0;
794
798
  }
795
799
  function A(n, t) {
@@ -797,7 +801,7 @@ function A(n, t) {
797
801
  for (let r = 0; r < i; r++)
798
802
  n[n.length] = e[r];
799
803
  }
800
- function nr(n, t) {
804
+ function or(n, t) {
801
805
  const e = n.length;
802
806
  if (e !== t.length)
803
807
  return !1;
@@ -806,26 +810,26 @@ function nr(n, t) {
806
810
  return !1;
807
811
  return !0;
808
812
  }
809
- function ei() {
813
+ function ii() {
810
814
  }
811
- function Gi(n) {
815
+ function Ii(n) {
812
816
  let t, e, i;
813
817
  return function() {
814
818
  const r = Array.prototype.slice.call(arguments);
815
- return (!e || this !== i || !nr(r, e)) && (i = this, e = r, t = n.apply(this, arguments)), t;
819
+ return (!e || this !== i || !or(r, e)) && (i = this, e = r, t = n.apply(this, arguments)), t;
816
820
  };
817
821
  }
818
822
  function Li(n) {
819
823
  for (const t in n)
820
824
  delete n[t];
821
825
  }
822
- function Ii(n) {
826
+ function Ri(n) {
823
827
  let t;
824
828
  for (t in n)
825
829
  return !1;
826
830
  return !t;
827
831
  }
828
- class Ri {
832
+ class Ti {
829
833
  /**
830
834
  * @param {string} type Type.
831
835
  */
@@ -848,7 +852,7 @@ class Ri {
848
852
  this.propagationStopped = !0;
849
853
  }
850
854
  }
851
- class rr extends er {
855
+ class ar extends rr {
852
856
  /**
853
857
  * @param {*} [target] Default event target for dispatched events.
854
858
  */
@@ -879,7 +883,7 @@ class rr extends er {
879
883
  const e = typeof t == "string", i = e ? t : t.type, r = this.listeners_ && this.listeners_[i];
880
884
  if (!r)
881
885
  return;
882
- const s = e ? new Ri(t) : (
886
+ const s = e ? new Ti(t) : (
883
887
  /** @type {Event} */
884
888
  t
885
889
  );
@@ -897,7 +901,7 @@ class rr extends er {
897
901
  if (--o[i] === 0) {
898
902
  let h = a[i];
899
903
  for (delete a[i]; h--; )
900
- this.removeEventListener(i, ei);
904
+ this.removeEventListener(i, ii);
901
905
  delete o[i];
902
906
  }
903
907
  return l;
@@ -938,10 +942,10 @@ class rr extends er {
938
942
  if (!i)
939
943
  return;
940
944
  const r = i.indexOf(e);
941
- r !== -1 && (this.pendingRemovals_ && t in this.pendingRemovals_ ? (i[r] = ei, ++this.pendingRemovals_[t]) : (i.splice(r, 1), i.length === 0 && delete this.listeners_[t]));
945
+ r !== -1 && (this.pendingRemovals_ && t in this.pendingRemovals_ ? (i[r] = ii, ++this.pendingRemovals_[t]) : (i.splice(r, 1), i.length === 0 && delete this.listeners_[t]));
942
946
  }
943
947
  }
944
- function mt(n, t, e, i, r) {
948
+ function _t(n, t, e, i, r) {
945
949
  if (r) {
946
950
  const o = e;
947
951
  e = function(a) {
@@ -955,13 +959,13 @@ function mt(n, t, e, i, r) {
955
959
  };
956
960
  return n.addEventListener(t, e), s;
957
961
  }
958
- function ii(n, t, e, i) {
959
- return mt(n, t, e, i, !0);
962
+ function ni(n, t, e, i) {
963
+ return _t(n, t, e, i, !0);
960
964
  }
961
- function Nt(n) {
965
+ function Ot(n) {
962
966
  n && n.target && (n.target.removeEventListener(n.type, n.listener), Li(n));
963
967
  }
964
- class Yt extends rr {
968
+ class Bt extends ar {
965
969
  constructor() {
966
970
  super(), this.on = /** @type {ObservableOnSignature<import("./events").EventsKey>} */
967
971
  this.onInternal, this.once = /** @type {ObservableOnSignature<import("./events").EventsKey>} */
@@ -973,7 +977,7 @@ class Yt extends rr {
973
977
  * @api
974
978
  */
975
979
  changed() {
976
- ++this.revision_, this.dispatchEvent(me.CHANGE);
980
+ ++this.revision_, this.dispatchEvent(_e.CHANGE);
977
981
  }
978
982
  /**
979
983
  * Get the version number for this object. Each time the object is modified,
@@ -994,10 +998,10 @@ class Yt extends rr {
994
998
  if (Array.isArray(t)) {
995
999
  const i = t.length, r = new Array(i);
996
1000
  for (let s = 0; s < i; ++s)
997
- r[s] = mt(this, t[s], e);
1001
+ r[s] = _t(this, t[s], e);
998
1002
  return r;
999
1003
  }
1000
- return mt(
1004
+ return _t(
1001
1005
  this,
1002
1006
  /** @type {string} */
1003
1007
  t,
@@ -1016,9 +1020,9 @@ class Yt extends rr {
1016
1020
  const r = t.length;
1017
1021
  i = new Array(r);
1018
1022
  for (let s = 0; s < r; ++s)
1019
- i[s] = ii(this, t[s], e);
1023
+ i[s] = ni(this, t[s], e);
1020
1024
  } else
1021
- i = ii(
1025
+ i = ni(
1022
1026
  this,
1023
1027
  /** @type {string} */
1024
1028
  t,
@@ -1038,7 +1042,7 @@ class Yt extends rr {
1038
1042
  e.ol_key
1039
1043
  );
1040
1044
  if (i)
1041
- sr(i);
1045
+ lr(i);
1042
1046
  else if (Array.isArray(t))
1043
1047
  for (let r = 0, s = t.length; r < s; ++r)
1044
1048
  this.removeEventListener(t[r], e);
@@ -1046,15 +1050,15 @@ class Yt extends rr {
1046
1050
  this.removeEventListener(t, e);
1047
1051
  }
1048
1052
  }
1049
- Yt.prototype.on;
1050
- Yt.prototype.once;
1051
- Yt.prototype.un;
1052
- function sr(n) {
1053
+ Bt.prototype.on;
1054
+ Bt.prototype.once;
1055
+ Bt.prototype.un;
1056
+ function lr(n) {
1053
1057
  if (Array.isArray(n))
1054
1058
  for (let t = 0, e = n.length; t < e; ++t)
1055
- Nt(n[t]);
1059
+ Ot(n[t]);
1056
1060
  else
1057
- Nt(
1061
+ Ot(
1058
1062
  /** @type {import("./events.js").EventsKey} */
1059
1063
  n
1060
1064
  );
@@ -1062,11 +1066,11 @@ function sr(n) {
1062
1066
  function y() {
1063
1067
  throw new Error("Unimplemented abstract method.");
1064
1068
  }
1065
- let or = 0;
1066
- function ar(n) {
1067
- return n.ol_uid || (n.ol_uid = String(++or));
1069
+ let hr = 0;
1070
+ function cr(n) {
1071
+ return n.ol_uid || (n.ol_uid = String(++hr));
1068
1072
  }
1069
- class ni extends Ri {
1073
+ class ri extends Ti {
1070
1074
  /**
1071
1075
  * @param {string} type The event type.
1072
1076
  * @param {string} key The property name.
@@ -1076,12 +1080,12 @@ class ni extends Ri {
1076
1080
  super(t), this.key = e, this.oldValue = i;
1077
1081
  }
1078
1082
  }
1079
- class Ti extends Yt {
1083
+ class Ni extends Bt {
1080
1084
  /**
1081
1085
  * @param {Object<string, *>} [values] An object with key-value pairs.
1082
1086
  */
1083
1087
  constructor(t) {
1084
- super(), this.on, this.once, this.un, ar(this), this.values_ = null, t !== void 0 && this.setProperties(t);
1088
+ super(), this.on, this.once, this.un, cr(this), this.values_ = null, t !== void 0 && this.setProperties(t);
1085
1089
  }
1086
1090
  /**
1087
1091
  * Gets a value.
@@ -1128,7 +1132,7 @@ class Ti extends Yt {
1128
1132
  */
1129
1133
  notify(t, e) {
1130
1134
  let i;
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));
1135
+ i = `change:${t}`, this.hasListener(i) && this.dispatchEvent(new ri(i, t, e)), i = nr.PROPERTYCHANGE, this.hasListener(i) && this.dispatchEvent(new ri(i, t, e));
1132
1136
  }
1133
1137
  /**
1134
1138
  * @param {string} key Key name.
@@ -1188,15 +1192,15 @@ class Ti extends Yt {
1188
1192
  unset(t, e) {
1189
1193
  if (this.values_ && t in this.values_) {
1190
1194
  const i = this.values_[t];
1191
- delete this.values_[t], Ii(this.values_) && (this.values_ = null), e || this.notify(t, i);
1195
+ delete this.values_[t], Ri(this.values_) && (this.values_ = null), e || this.notify(t, i);
1192
1196
  }
1193
1197
  }
1194
1198
  }
1195
- function lr(n, t) {
1199
+ function ur(n, t) {
1196
1200
  if (!n)
1197
1201
  throw new Error(t);
1198
1202
  }
1199
- class lt extends Ti {
1203
+ class ht extends Ni {
1200
1204
  /**
1201
1205
  * @param {Geometry|ObjectWithGeometry<Geometry>} [geometryOrProperties]
1202
1206
  * You may pass a Geometry object directly, or an object literal containing
@@ -1226,7 +1230,7 @@ class lt extends Ti {
1226
1230
  clone() {
1227
1231
  const t = (
1228
1232
  /** @type {Feature<Geometry>} */
1229
- new lt(this.hasProperties() ? this.getProperties() : null)
1233
+ new ht(this.hasProperties() ? this.getProperties() : null)
1230
1234
  );
1231
1235
  t.setGeometryName(this.getGeometryName());
1232
1236
  const e = this.getGeometry();
@@ -1299,11 +1303,11 @@ class lt extends Ti {
1299
1303
  * @private
1300
1304
  */
1301
1305
  handleGeometryChanged_() {
1302
- this.geometryChangeKey_ && (Nt(this.geometryChangeKey_), this.geometryChangeKey_ = null);
1306
+ this.geometryChangeKey_ && (Ot(this.geometryChangeKey_), this.geometryChangeKey_ = null);
1303
1307
  const t = this.getGeometry();
1304
- t && (this.geometryChangeKey_ = mt(
1308
+ t && (this.geometryChangeKey_ = _t(
1305
1309
  t,
1306
- me.CHANGE,
1310
+ _e.CHANGE,
1307
1311
  this.handleGeometryChange_,
1308
1312
  this
1309
1313
  )), this.changed();
@@ -1328,7 +1332,7 @@ class lt extends Ti {
1328
1332
  * @fires module:ol/events/Event~BaseEvent#event:change
1329
1333
  */
1330
1334
  setStyle(t) {
1331
- this.style_ = t, this.styleFunction_ = t ? hr(t) : void 0, this.changed();
1335
+ this.style_ = t, this.styleFunction_ = t ? dr(t) : void 0, this.changed();
1332
1336
  }
1333
1337
  /**
1334
1338
  * Set the feature id. The feature id is considered stable and may be used when
@@ -1353,11 +1357,11 @@ class lt extends Ti {
1353
1357
  this.removeChangeListener(this.geometryName_, this.handleGeometryChanged_), this.geometryName_ = t, this.addChangeListener(this.geometryName_, this.handleGeometryChanged_), this.handleGeometryChanged_();
1354
1358
  }
1355
1359
  }
1356
- function hr(n) {
1360
+ function dr(n) {
1357
1361
  if (typeof n == "function")
1358
1362
  return n;
1359
1363
  let t;
1360
- return Array.isArray(n) ? t = n : (lr(
1364
+ return Array.isArray(n) ? t = n : (ur(
1361
1365
  typeof /** @type {?} */
1362
1366
  n.getZIndex == "function",
1363
1367
  "Expected an `ol/style/Style` or an array of `ol/style/Style.js`"
@@ -1368,7 +1372,7 @@ function hr(n) {
1368
1372
  return t;
1369
1373
  };
1370
1374
  }
1371
- const w = {
1375
+ const C = {
1372
1376
  UNKNOWN: 0,
1373
1377
  INTERSECTING: 1,
1374
1378
  ABOVE: 2,
@@ -1376,114 +1380,114 @@ const w = {
1376
1380
  BELOW: 8,
1377
1381
  LEFT: 16
1378
1382
  };
1379
- function q(n, t, e) {
1383
+ function D(n, t, e) {
1380
1384
  let i, r;
1381
1385
  return t < n[0] ? i = n[0] - t : n[2] < t ? i = t - n[2] : i = 0, e < n[1] ? r = n[1] - e : n[3] < e ? r = e - n[3] : r = 0, i * i + r * r;
1382
1386
  }
1383
- function Ni(n, t, e) {
1387
+ function Oi(n, t, e) {
1384
1388
  return n[0] <= t && t <= n[2] && n[1] <= e && e <= n[3];
1385
1389
  }
1386
- function ri(n, t) {
1390
+ function si(n, t) {
1387
1391
  const e = n[0], i = n[1], r = n[2], s = n[3], o = t[0], a = t[1];
1388
- let l = w.UNKNOWN;
1389
- return o < e ? l = l | w.LEFT : o > r && (l = l | w.RIGHT), a < i ? l = l | w.BELOW : a > s && (l = l | w.ABOVE), l === w.UNKNOWN && (l = w.INTERSECTING), l;
1392
+ let l = C.UNKNOWN;
1393
+ return o < e ? l = l | C.LEFT : o > r && (l = l | C.RIGHT), a < i ? l = l | C.BELOW : a > s && (l = l | C.ABOVE), l === C.UNKNOWN && (l = C.INTERSECTING), l;
1390
1394
  }
1391
- function _e() {
1395
+ function ve() {
1392
1396
  return [1 / 0, 1 / 0, -1 / 0, -1 / 0];
1393
1397
  }
1394
- function Oi(n, t, e, i, r) {
1398
+ function ki(n, t, e, i, r) {
1395
1399
  return r ? (r[0] = n, r[1] = t, r[2] = e, r[3] = i, r) : [n, t, e, i];
1396
1400
  }
1397
- function ve(n) {
1398
- return Oi(1 / 0, 1 / 0, -1 / 0, -1 / 0, n);
1401
+ function we(n) {
1402
+ return ki(1 / 0, 1 / 0, -1 / 0, -1 / 0, n);
1399
1403
  }
1400
- function ki(n, t) {
1404
+ function ji(n, t) {
1401
1405
  const e = n[0], i = n[1];
1402
- return Oi(e, i, e, i, t);
1406
+ return ki(e, i, e, i, t);
1403
1407
  }
1404
1408
  function Ce(n, t, e, i, r) {
1405
- const s = ve(r);
1406
- return ji(s, n, t, e, i);
1409
+ const s = we(r);
1410
+ return Hi(s, n, t, e, i);
1407
1411
  }
1408
- function cr(n, t) {
1412
+ function fr(n, t) {
1409
1413
  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;
1410
1414
  }
1411
- function ji(n, t, e, i, r) {
1415
+ function Hi(n, t, e, i, r) {
1412
1416
  for (; e < i; e += r)
1413
- ur(n, t[e], t[e + 1]);
1417
+ gr(n, t[e], t[e + 1]);
1414
1418
  return n;
1415
1419
  }
1416
- function ur(n, t, e) {
1420
+ function gr(n, t, e) {
1417
1421
  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);
1418
1422
  }
1419
- function dr(n, t) {
1423
+ function pr(n, t) {
1420
1424
  let e;
1421
- return e = t(gr(n)), e || (e = t(fr(n)), e) || (e = t(yr(n)), e) || (e = t(pr(n)), e) ? e : !1;
1425
+ return e = t(yr(n)), e || (e = t(mr(n)), e) || (e = t(vr(n)), e) || (e = t(_r(n)), e) ? e : !1;
1422
1426
  }
1423
- function gr(n) {
1427
+ function yr(n) {
1424
1428
  return [n[0], n[1]];
1425
1429
  }
1426
- function fr(n) {
1430
+ function mr(n) {
1427
1431
  return [n[2], n[1]];
1428
1432
  }
1429
- function Bt(n) {
1433
+ function Vt(n) {
1430
1434
  return [(n[0] + n[2]) / 2, (n[1] + n[3]) / 2];
1431
1435
  }
1432
- function Ot(n) {
1436
+ function kt(n) {
1433
1437
  return n[3] - n[1];
1434
1438
  }
1435
- function pr(n) {
1439
+ function _r(n) {
1436
1440
  return [n[0], n[3]];
1437
1441
  }
1438
- function yr(n) {
1442
+ function vr(n) {
1439
1443
  return [n[2], n[3]];
1440
1444
  }
1441
- function mr(n, t) {
1445
+ function wr(n, t) {
1442
1446
  return n[0] <= t[2] && n[2] >= t[0] && n[1] <= t[3] && n[3] >= t[1];
1443
1447
  }
1444
- function _r(n, t) {
1448
+ function Cr(n, t) {
1445
1449
  return t ? (t[0] = n[0], t[1] = n[1], t[2] = n[2], t[3] = n[3], t) : n;
1446
1450
  }
1447
- function vr(n, t, e) {
1451
+ function br(n, t, e) {
1448
1452
  let i = !1;
1449
- const r = ri(n, t), s = ri(n, e);
1450
- if (r === w.INTERSECTING || s === w.INTERSECTING)
1453
+ const r = si(n, t), s = si(n, e);
1454
+ if (r === C.INTERSECTING || s === C.INTERSECTING)
1451
1455
  i = !0;
1452
1456
  else {
1453
- const o = n[0], a = n[1], l = n[2], h = n[3], c = t[0], u = t[1], d = e[0], g = e[1], f = (g - u) / (d - c);
1457
+ const o = n[0], a = n[1], l = n[2], h = n[3], c = t[0], u = t[1], d = e[0], f = e[1], g = (f - u) / (d - c);
1454
1458
  let p, _;
1455
- s & w.ABOVE && !(r & w.ABOVE) && (p = d - (g - h) / f, i = p >= o && p <= l), !i && s & w.RIGHT && !(r & w.RIGHT) && (_ = g - (d - l) * f, i = _ >= a && _ <= h), !i && s & w.BELOW && !(r & w.BELOW) && (p = d - (g - a) / f, i = p >= o && p <= l), !i && s & w.LEFT && !(r & w.LEFT) && (_ = g - (d - o) * f, i = _ >= a && _ <= h);
1459
+ s & C.ABOVE && !(r & C.ABOVE) && (p = d - (f - h) / g, i = p >= o && p <= l), !i && s & C.RIGHT && !(r & C.RIGHT) && (_ = f - (d - l) * g, i = _ >= a && _ <= h), !i && s & C.BELOW && !(r & C.BELOW) && (p = d - (f - a) / g, i = p >= o && p <= l), !i && s & C.LEFT && !(r & C.LEFT) && (_ = f - (d - o) * g, i = _ >= a && _ <= h);
1456
1460
  }
1457
1461
  return i;
1458
1462
  }
1459
- function Cr(n, t, e, i, r, s) {
1463
+ function Er(n, t, e, i, r, s) {
1460
1464
  const o = r - e, a = s - i;
1461
1465
  if (o !== 0 || a !== 0) {
1462
1466
  const l = ((n - e) * o + (t - i) * a) / (o * o + a * a);
1463
1467
  l > 1 ? (e = r, i = s) : l > 0 && (e += o * l, i += a * l);
1464
1468
  }
1465
- return X(n, t, e, i);
1469
+ return Y(n, t, e, i);
1466
1470
  }
1467
- function X(n, t, e, i) {
1471
+ function Y(n, t, e, i) {
1468
1472
  const r = e - n, s = i - t;
1469
1473
  return r * r + s * s;
1470
1474
  }
1471
- function si(n) {
1475
+ function oi(n) {
1472
1476
  return n * 180 / Math.PI;
1473
1477
  }
1474
- function Rt(n) {
1478
+ function Tt(n) {
1475
1479
  return n * Math.PI / 180;
1476
1480
  }
1477
- function we(n, t, e) {
1481
+ function be(n, t, e) {
1478
1482
  return n + e * (t - n);
1479
1483
  }
1480
- function oe(n, t, e) {
1484
+ function ae(n, t, e) {
1481
1485
  if (n >= t && n < e)
1482
1486
  return n;
1483
1487
  const i = e - t;
1484
1488
  return ((n - t) % i + i) % i + t;
1485
1489
  }
1486
- const wr = {
1490
+ const xr = {
1487
1491
  // use the radius of the Normal sphere
1488
1492
  radians: 6370997 / (2 * Math.PI),
1489
1493
  degrees: 2 * Math.PI * 6370997 / 360,
@@ -1491,7 +1495,7 @@ const wr = {
1491
1495
  m: 1,
1492
1496
  "us-ft": 1200 / 3937
1493
1497
  };
1494
- class be {
1498
+ class Ee {
1495
1499
  /**
1496
1500
  * @param {Options} options Projection options.
1497
1501
  */
@@ -1537,7 +1541,7 @@ class be {
1537
1541
  * @api
1538
1542
  */
1539
1543
  getMetersPerUnit() {
1540
- return this.metersPerUnit_ || wr[this.units_];
1544
+ return this.metersPerUnit_ || xr[this.units_];
1541
1545
  }
1542
1546
  /**
1543
1547
  * Get the world extent for this projection.
@@ -1624,8 +1628,8 @@ class be {
1624
1628
  return this.getPointResolutionFunc_;
1625
1629
  }
1626
1630
  }
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 {
1631
+ const $t = 6378137, it = Math.PI * $t, Pr = [-it, -it, it, it], Mr = [-180, -85, 180, 85], Gt = $t * Math.log(Math.tan(Math.PI / 2));
1632
+ class Q extends Ee {
1629
1633
  /**
1630
1634
  * @param {string} code Code.
1631
1635
  */
@@ -1633,42 +1637,42 @@ class K extends be {
1633
1637
  super({
1634
1638
  code: t,
1635
1639
  units: "m",
1636
- extent: br,
1640
+ extent: Pr,
1637
1641
  global: !0,
1638
- worldExtent: Er,
1642
+ worldExtent: Mr,
1639
1643
  getPointResolution: function(e, i) {
1640
- return e / Math.cosh(i[1] / St);
1644
+ return e / Math.cosh(i[1] / $t);
1641
1645
  }
1642
1646
  });
1643
1647
  }
1644
1648
  }
1645
- const oi = [
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")
1649
+ const ai = [
1650
+ new Q("EPSG:3857"),
1651
+ new Q("EPSG:102100"),
1652
+ new Q("EPSG:102113"),
1653
+ new Q("EPSG:900913"),
1654
+ new Q("http://www.opengis.net/def/crs/EPSG/0/3857"),
1655
+ new Q("http://www.opengis.net/gml/srs/epsg.xml#3857")
1652
1656
  ];
1653
- function xr(n, t, e, i) {
1657
+ function Sr(n, t, e, i) {
1654
1658
  const r = n.length;
1655
1659
  e = e > 1 ? e : 2, i = i ?? e, t === void 0 && (e > 2 ? t = n.slice() : t = new Array(r));
1656
1660
  for (let s = 0; s < r; s += i) {
1657
- t[s] = et * n[s] / 180;
1658
- let o = St * Math.log(Math.tan(Math.PI * (+n[s + 1] + 90) / 360));
1659
- o > Ft ? o = Ft : o < -Ft && (o = -Ft), t[s + 1] = o;
1661
+ t[s] = it * n[s] / 180;
1662
+ let o = $t * Math.log(Math.tan(Math.PI * (+n[s + 1] + 90) / 360));
1663
+ o > Gt ? o = Gt : o < -Gt && (o = -Gt), t[s + 1] = o;
1660
1664
  }
1661
1665
  return t;
1662
1666
  }
1663
- function Pr(n, t, e, i) {
1667
+ function $r(n, t, e, i) {
1664
1668
  const r = n.length;
1665
1669
  e = e > 1 ? e : 2, i = i ?? e, t === void 0 && (e > 2 ? t = n.slice() : t = new Array(r));
1666
1670
  for (let s = 0; s < r; s += i)
1667
- t[s] = 180 * n[s] / et, t[s + 1] = 360 * Math.atan(Math.exp(n[s + 1] / St)) / Math.PI - 90;
1671
+ t[s] = 180 * n[s] / it, t[s + 1] = 360 * Math.atan(Math.exp(n[s + 1] / $t)) / Math.PI - 90;
1668
1672
  return t;
1669
1673
  }
1670
- const Mr = 6378137, ai = [-180, -90, 180, 90], Sr = Math.PI * Mr / 180;
1671
- class N extends be {
1674
+ const Ar = 6378137, li = [-180, -90, 180, 90], Fr = Math.PI * Ar / 180;
1675
+ class N extends Ee {
1672
1676
  /**
1673
1677
  * @param {string} code Code.
1674
1678
  * @param {string} [axisOrientation] Axis orientation.
@@ -1677,15 +1681,15 @@ class N extends be {
1677
1681
  super({
1678
1682
  code: t,
1679
1683
  units: "degrees",
1680
- extent: ai,
1684
+ extent: li,
1681
1685
  axisOrientation: e,
1682
1686
  global: !0,
1683
- metersPerUnit: Sr,
1684
- worldExtent: ai
1687
+ metersPerUnit: Fr,
1688
+ worldExtent: li
1685
1689
  });
1686
1690
  }
1687
1691
  }
1688
- const li = [
1692
+ const hi = [
1689
1693
  new N("CRS:84"),
1690
1694
  new N("EPSG:4326", "neu"),
1691
1695
  new N("urn:ogc:def:crs:OGC:1.3:CRS84"),
@@ -1694,49 +1698,49 @@ const li = [
1694
1698
  new N("http://www.opengis.net/gml/srs/epsg.xml#4326", "neu"),
1695
1699
  new N("http://www.opengis.net/def/crs/EPSG/0/4326", "neu")
1696
1700
  ];
1697
- let ae = {};
1698
- function $r(n) {
1699
- return ae[n] || ae[n.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/, "EPSG:$3")] || null;
1701
+ let le = {};
1702
+ function Gr(n) {
1703
+ return le[n] || le[n.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/, "EPSG:$3")] || null;
1700
1704
  }
1701
- function Ar(n, t) {
1702
- ae[n] = t;
1705
+ function Ir(n, t) {
1706
+ le[n] = t;
1703
1707
  }
1704
- let it = {};
1705
- function _t(n, t, e) {
1708
+ let nt = {};
1709
+ function vt(n, t, e) {
1706
1710
  const i = n.getCode(), r = t.getCode();
1707
- i in it || (it[i] = {}), it[i][r] = e;
1711
+ i in nt || (nt[i] = {}), nt[i][r] = e;
1708
1712
  }
1709
- function ie(n, t) {
1710
- return n in it && t in it[n] ? it[n][t] : null;
1713
+ function ne(n, t) {
1714
+ return n in nt && t in nt[n] ? nt[n][t] : null;
1711
1715
  }
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)),
1716
+ const jt = 0.9996, P = 669438e-8, zt = P * P, Jt = zt * P, k = P / (1 - P), ci = Math.sqrt(1 - P), ct = (1 - ci) / (1 + ci), Ui = ct * ct, xe = Ui * ct, Pe = xe * ct, Xi = Pe * ct, Yi = 1 - P / 4 - 3 * zt / 64 - 5 * Jt / 256, Lr = 3 * P / 8 + 3 * zt / 32 + 45 * Jt / 1024, Rr = 15 * zt / 256 + 45 * Jt / 1024, Tr = 35 * Jt / 3072, Nr = 3 / 2 * ct - 27 / 32 * xe + 269 / 512 * Xi, Or = 21 / 16 * Ui - 55 / 32 * Pe, kr = 151 / 96 * xe - 417 / 128 * Xi, jr = 1097 / 512 * Pe, Ht = 6378137;
1717
+ function Hr(n, t, e) {
1718
+ const i = n - 5e5, o = (e.north ? t : t - 1e7) / jt / (Ht * Yi), a = o + Nr * Math.sin(2 * o) + Or * Math.sin(4 * o) + kr * Math.sin(6 * o) + jr * Math.sin(8 * o), l = Math.sin(a), h = l * l, c = Math.cos(a), u = l / c, d = u * u, f = d * d, g = 1 - P * h, p = Math.sqrt(1 - P * h), _ = Ht / p, b = (1 - P) / g, v = k * c ** 2, S = v * v, E = i / (_ * jt), L = E * E, ut = L * E, He = ut * E, Ue = He * E, vn = Ue * E, wn = a - u / b * (L / 2 - He / 24 * (5 + 3 * d + 10 * v - 4 * S - 9 * k)) + vn / 720 * (61 + 90 * d + 298 * v + 45 * f - 252 * k - 3 * S);
1719
+ let Kt = (E - ut / 6 * (1 + 2 * d + v) + Ue / 120 * (5 - 2 * v + 28 * d - 3 * S + 8 * k + 24 * f)) / c;
1720
+ return Kt = ae(
1721
+ Kt + Tt(Bi(e.number)),
1718
1722
  -Math.PI,
1719
1723
  Math.PI
1720
- ), [si(Dt), si(mn)];
1724
+ ), [oi(Kt), oi(wn)];
1721
1725
  }
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;
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)));
1727
- return e.north || (ct += 1e7), [I, ct];
1726
+ const ui = -80, di = 84, Ur = -180, Xr = 180;
1727
+ function Yr(n, t, e) {
1728
+ n = ae(n, Ur, Xr), t < ui ? t = ui : t > di && (t = di);
1729
+ const i = Tt(t), r = Math.sin(i), s = Math.cos(i), o = r / s, a = o * o, l = a * a, h = Tt(n), c = Bi(e.number), u = Tt(c), d = Ht / Math.sqrt(1 - P * r ** 2), f = k * s ** 2, g = s * ae(h - u, -Math.PI, Math.PI), p = g * g, _ = p * g, b = _ * g, v = b * g, S = v * g, E = Ht * (Yi * i - Lr * Math.sin(2 * i) + Rr * Math.sin(4 * i) - Tr * Math.sin(6 * i)), L = jt * d * (g + _ / 6 * (1 - a + f) + v / 120 * (5 - 18 * a + l + 72 * f - 58 * k)) + 5e5;
1730
+ let ut = jt * (E + d * o * (p / 2 + b / 24 * (5 - a + 9 * f + 4 * f ** 2) + S / 720 * (61 - 58 * a + l + 600 * f - 330 * k)));
1731
+ return e.north || (ut += 1e7), [L, ut];
1728
1732
  }
1729
- function Yi(n) {
1733
+ function Bi(n) {
1730
1734
  return (n - 1) * 6 - 180 + 3;
1731
1735
  }
1732
- const Ur = [
1736
+ const Br = [
1733
1737
  /^EPSG:(\d+)$/,
1734
1738
  /^urn:ogc:def:crs:EPSG::(\d+)$/,
1735
1739
  /^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/
1736
1740
  ];
1737
- function Bi(n) {
1741
+ function Vi(n) {
1738
1742
  let t = 0;
1739
- for (const r of Ur) {
1743
+ for (const r of Br) {
1740
1744
  const s = n.match(r);
1741
1745
  if (s) {
1742
1746
  t = parseInt(s[1]);
@@ -1748,7 +1752,7 @@ function Bi(n) {
1748
1752
  let e = 0, i = !1;
1749
1753
  return t > 32700 && t < 32761 ? e = t - 32700 : t > 32600 && t < 32661 && (i = !0, e = t - 32600), e ? { number: e, north: i } : null;
1750
1754
  }
1751
- function di(n, t) {
1755
+ function fi(n, t) {
1752
1756
  return function(e, i, r, s) {
1753
1757
  const o = e.length;
1754
1758
  r = r > 1 ? r : 2, s = s ?? r, i || (r > 2 ? i = e.slice() : i = new Array(o));
@@ -1759,18 +1763,18 @@ function di(n, t) {
1759
1763
  return i;
1760
1764
  };
1761
1765
  }
1762
- function Xr(n) {
1763
- return Bi(n) ? new be({ code: n, units: "m" }) : null;
1766
+ function Vr(n) {
1767
+ return Vi(n) ? new Ee({ code: n, units: "m" }) : null;
1764
1768
  }
1765
- function Yr(n) {
1766
- const t = Bi(n.getCode());
1769
+ function zr(n) {
1770
+ const t = Vi(n.getCode());
1767
1771
  return t ? {
1768
- forward: di(Hr, t),
1769
- inverse: di(Or, t)
1772
+ forward: fi(Yr, t),
1773
+ inverse: fi(Hr, t)
1770
1774
  } : null;
1771
1775
  }
1772
- const Br = [Yr], Vr = [Xr];
1773
- function Pe(n, t) {
1776
+ const Jr = [zr], Wr = [Vr];
1777
+ function Me(n, t) {
1774
1778
  if (t !== void 0) {
1775
1779
  for (let e = 0, i = n.length; e < i; ++e)
1776
1780
  t[e] = n[e];
@@ -1779,19 +1783,19 @@ function Pe(n, t) {
1779
1783
  t = n.slice();
1780
1784
  return t;
1781
1785
  }
1782
- function le(n) {
1783
- Ar(n.getCode(), n), _t(n, n, Pe);
1786
+ function he(n) {
1787
+ Ir(n.getCode(), n), vt(n, n, Me);
1784
1788
  }
1785
- function zr(n) {
1786
- n.forEach(le);
1789
+ function qr(n) {
1790
+ n.forEach(he);
1787
1791
  }
1788
1792
  function x(n) {
1789
1793
  if (typeof n != "string")
1790
1794
  return n;
1791
- const t = $r(n);
1795
+ const t = Gr(n);
1792
1796
  if (t)
1793
1797
  return t;
1794
- for (const e of Vr) {
1798
+ for (const e of Wr) {
1795
1799
  const i = e(n);
1796
1800
  if (i)
1797
1801
  return i;
@@ -1799,85 +1803,85 @@ function x(n) {
1799
1803
  return null;
1800
1804
  }
1801
1805
  function gi(n) {
1802
- zr(n), n.forEach(function(t) {
1806
+ qr(n), n.forEach(function(t) {
1803
1807
  n.forEach(function(e) {
1804
- t !== e && _t(t, e, Pe);
1808
+ t !== e && vt(t, e, Me);
1805
1809
  });
1806
1810
  });
1807
1811
  }
1808
- function Jr(n, t, e, i) {
1812
+ function Dr(n, t, e, i) {
1809
1813
  n.forEach(function(r) {
1810
1814
  t.forEach(function(s) {
1811
- _t(r, s, e), _t(s, r, i);
1815
+ vt(r, s, e), vt(s, r, i);
1812
1816
  });
1813
1817
  });
1814
1818
  }
1815
- function Wr(n, t) {
1819
+ function Zr(n, t) {
1816
1820
  if (n === t)
1817
1821
  return !0;
1818
1822
  const e = n.getUnits() === t.getUnits();
1819
- return (n.getCode() === t.getCode() || Vi(n, t) === Pe) && e;
1823
+ return (n.getCode() === t.getCode() || zi(n, t) === Me) && e;
1820
1824
  }
1821
- function Vi(n, t) {
1825
+ function zi(n, t) {
1822
1826
  const e = n.getCode(), i = t.getCode();
1823
- let r = ie(e, i);
1827
+ let r = ne(e, i);
1824
1828
  if (r)
1825
1829
  return r;
1826
1830
  let s = null, o = null;
1827
- for (const l of Br)
1831
+ for (const l of Jr)
1828
1832
  s || (s = l(n)), o || (o = l(t));
1829
1833
  if (!s && !o)
1830
1834
  return null;
1831
1835
  const a = "EPSG:4326";
1832
1836
  if (o)
1833
1837
  if (s)
1834
- r = ne(
1838
+ r = re(
1835
1839
  s.inverse,
1836
1840
  o.forward
1837
1841
  );
1838
1842
  else {
1839
- const l = ie(e, a);
1840
- l && (r = ne(
1843
+ const l = ne(e, a);
1844
+ l && (r = re(
1841
1845
  l,
1842
1846
  o.forward
1843
1847
  ));
1844
1848
  }
1845
1849
  else {
1846
- const l = ie(a, i);
1847
- l && (r = ne(
1850
+ const l = ne(a, i);
1851
+ l && (r = re(
1848
1852
  s.inverse,
1849
1853
  l
1850
1854
  ));
1851
1855
  }
1852
- return r && (le(n), le(t), _t(n, t, r)), r;
1856
+ return r && (he(n), he(t), vt(n, t, r)), r;
1853
1857
  }
1854
- function ne(n, t) {
1858
+ function re(n, t) {
1855
1859
  return function(e, i, r, s) {
1856
1860
  return i = n(e, i, r, s), t(i, i, r, s);
1857
1861
  };
1858
1862
  }
1859
- function he(n, t) {
1863
+ function ce(n, t) {
1860
1864
  const e = x(n), i = x(t);
1861
- return Vi(e, i);
1862
- }
1863
- function qr() {
1864
- gi(oi), gi(li), Jr(
1865
- li,
1866
- oi,
1867
- xr,
1868
- Pr
1865
+ return zi(e, i);
1866
+ }
1867
+ function Kr() {
1868
+ gi(ai), gi(hi), Dr(
1869
+ hi,
1870
+ ai,
1871
+ Sr,
1872
+ $r
1869
1873
  );
1870
1874
  }
1871
- qr();
1875
+ Kr();
1872
1876
  new Array(6);
1873
- function zi() {
1877
+ function Ji() {
1874
1878
  return [1, 0, 0, 1, 0, 0];
1875
1879
  }
1876
- function Ji(n, t, e, i, r, s, o, a) {
1880
+ function Wi(n, t, e, i, r, s, o, a) {
1877
1881
  const l = Math.sin(s), h = Math.cos(s);
1878
1882
  return n[0] = i * h, n[1] = r * l, n[2] = -i * l, n[3] = r * h, n[4] = o * i * h - a * i * l + t, n[5] = o * r * l + a * r * h + e, n;
1879
1883
  }
1880
- function Wi(n, t, e, i, r, s, o) {
1884
+ function qi(n, t, e, i, r, s, o) {
1881
1885
  s = s || [], o = o || 2;
1882
1886
  let a = 0;
1883
1887
  for (let l = t; l < e; l += i) {
@@ -1888,31 +1892,31 @@ function Wi(n, t, e, i, r, s, o) {
1888
1892
  }
1889
1893
  return s && s.length != a && (s.length = a), s;
1890
1894
  }
1891
- function Zr(n, t, e, i, r, s, o) {
1895
+ function Qr(n, t, e, i, r, s, o) {
1892
1896
  o = o || [];
1893
1897
  const a = Math.cos(r), l = Math.sin(r), h = s[0], c = s[1];
1894
1898
  let u = 0;
1895
1899
  for (let d = t; d < e; d += i) {
1896
- const g = n[d] - h, f = n[d + 1] - c;
1897
- o[u++] = h + g * a - f * l, o[u++] = c + g * l + f * a;
1900
+ const f = n[d] - h, g = n[d + 1] - c;
1901
+ o[u++] = h + f * a - g * l, o[u++] = c + f * l + g * a;
1898
1902
  for (let p = d + 2; p < d + i; ++p)
1899
1903
  o[u++] = n[p];
1900
1904
  }
1901
1905
  return o && o.length != u && (o.length = u), o;
1902
1906
  }
1903
- function Dr(n, t, e, i, r, s, o, a) {
1907
+ function ts(n, t, e, i, r, s, o, a) {
1904
1908
  a = a || [];
1905
1909
  const l = o[0], h = o[1];
1906
1910
  let c = 0;
1907
1911
  for (let u = t; u < e; u += i) {
1908
- const d = n[u] - l, g = n[u + 1] - h;
1909
- a[c++] = l + r * d, a[c++] = h + s * g;
1910
- for (let f = u + 2; f < u + i; ++f)
1911
- a[c++] = n[f];
1912
+ const d = n[u] - l, f = n[u + 1] - h;
1913
+ a[c++] = l + r * d, a[c++] = h + s * f;
1914
+ for (let g = u + 2; g < u + i; ++g)
1915
+ a[c++] = n[g];
1912
1916
  }
1913
1917
  return a && a.length != c && (a.length = c), a;
1914
1918
  }
1915
- function Kr(n, t, e, i, r, s, o) {
1919
+ function es(n, t, e, i, r, s, o) {
1916
1920
  o = o || [];
1917
1921
  let a = 0;
1918
1922
  for (let l = t; l < e; l += i) {
@@ -1922,10 +1926,10 @@ function Kr(n, t, e, i, r, s, o) {
1922
1926
  }
1923
1927
  return o && o.length != a && (o.length = a), o;
1924
1928
  }
1925
- const fi = zi(), Qr = [NaN, NaN];
1926
- class qi extends Ti {
1929
+ const pi = Ji(), is = [NaN, NaN];
1930
+ class Di extends Ni {
1927
1931
  constructor() {
1928
- super(), this.extent_ = _e(), this.extentRevision_ = -1, this.simplifiedGeometryMaxMinSquaredTolerance = 0, this.simplifiedGeometryRevision = 0, this.simplifyTransformedInternal = Gi(
1932
+ super(), this.extent_ = ve(), this.extentRevision_ = -1, this.simplifiedGeometryMaxMinSquaredTolerance = 0, this.simplifiedGeometryRevision = 0, this.simplifyTransformedInternal = Ii(
1929
1933
  (t, e, i) => {
1930
1934
  if (!i)
1931
1935
  return this.getSimplifiedGeometry(e);
@@ -1973,7 +1977,7 @@ class qi extends Ti {
1973
1977
  * @return {boolean} Contains (x, y).
1974
1978
  */
1975
1979
  containsXY(t, e) {
1976
- return this.closestPointXY(t, e, Qr, Number.MIN_VALUE) === 0;
1980
+ return this.closestPointXY(t, e, is, Number.MIN_VALUE) === 0;
1977
1981
  }
1978
1982
  /**
1979
1983
  * Return the closest point of the geometry to the passed point as
@@ -2014,9 +2018,9 @@ class qi extends Ti {
2014
2018
  getExtent(t) {
2015
2019
  if (this.extentRevision_ != this.getRevision()) {
2016
2020
  const e = this.computeExtent(this.extent_);
2017
- (isNaN(e[0]) || isNaN(e[1])) && ve(e), this.extentRevision_ = this.getRevision();
2021
+ (isNaN(e[0]) || isNaN(e[1])) && we(e), this.extentRevision_ = this.getRevision();
2018
2022
  }
2019
- return _r(this.extent_, t);
2023
+ return Cr(this.extent_, t);
2020
2024
  }
2021
2025
  /**
2022
2026
  * Rotate the geometry around a given coordinate. This modifies the geometry
@@ -2122,9 +2126,9 @@ class qi extends Ti {
2122
2126
  */
2123
2127
  transform(t, e) {
2124
2128
  const i = x(t), r = i.getUnits() == "tile-pixels" ? function(s, o, a) {
2125
- const l = i.getExtent(), h = i.getWorldExtent(), c = Ot(h) / Ot(l);
2126
- Ji(
2127
- fi,
2129
+ const l = i.getExtent(), h = i.getWorldExtent(), c = kt(h) / kt(l);
2130
+ Wi(
2131
+ pi,
2128
2132
  h[0],
2129
2133
  h[3],
2130
2134
  c,
@@ -2133,20 +2137,20 @@ class qi extends Ti {
2133
2137
  0,
2134
2138
  0
2135
2139
  );
2136
- const u = Wi(
2140
+ const u = qi(
2137
2141
  s,
2138
2142
  0,
2139
2143
  s.length,
2140
2144
  a,
2141
- fi,
2145
+ pi,
2142
2146
  o
2143
- ), d = he(i, e);
2147
+ ), d = ce(i, e);
2144
2148
  return d ? d(u, u, a) : u;
2145
- } : he(i, e);
2149
+ } : ce(i, e);
2146
2150
  return this.applyTransform(r), this;
2147
2151
  }
2148
2152
  }
2149
- class Z extends qi {
2153
+ class Z extends Di {
2150
2154
  constructor() {
2151
2155
  super(), this.layout = "XY", this.stride = 2, this.flatCoordinates;
2152
2156
  }
@@ -2235,7 +2239,7 @@ class Z extends qi {
2235
2239
  * @param {Array<number>} flatCoordinates Flat coordinates.
2236
2240
  */
2237
2241
  setFlatCoordinates(t, e) {
2238
- this.stride = pi(t), this.layout = t, this.flatCoordinates = e;
2242
+ this.stride = yi(t), this.layout = t, this.flatCoordinates = e;
2239
2243
  }
2240
2244
  /**
2241
2245
  * @abstract
@@ -2254,7 +2258,7 @@ class Z extends qi {
2254
2258
  setLayout(t, e, i) {
2255
2259
  let r;
2256
2260
  if (t)
2257
- r = pi(t);
2261
+ r = yi(t);
2258
2262
  else {
2259
2263
  for (let s = 0; s < i; ++s) {
2260
2264
  if (e.length === 0) {
@@ -2264,7 +2268,7 @@ class Z extends qi {
2264
2268
  e = /** @type {Array<unknown>} */
2265
2269
  e[0];
2266
2270
  }
2267
- r = e.length, t = D(r);
2271
+ r = e.length, t = K(r);
2268
2272
  }
2269
2273
  this.layout = t, this.stride = r;
2270
2274
  }
@@ -2298,7 +2302,7 @@ class Z extends qi {
2298
2302
  const i = this.getFlatCoordinates();
2299
2303
  if (i) {
2300
2304
  const r = this.getStride();
2301
- Zr(
2305
+ Qr(
2302
2306
  i,
2303
2307
  0,
2304
2308
  i.length,
@@ -2320,11 +2324,11 @@ class Z extends qi {
2320
2324
  * @override
2321
2325
  */
2322
2326
  scale(t, e, i) {
2323
- e === void 0 && (e = t), i || (i = Bt(this.getExtent()));
2327
+ e === void 0 && (e = t), i || (i = Vt(this.getExtent()));
2324
2328
  const r = this.getFlatCoordinates();
2325
2329
  if (r) {
2326
2330
  const s = this.getStride();
2327
- Dr(
2331
+ ts(
2328
2332
  r,
2329
2333
  0,
2330
2334
  r.length,
@@ -2348,7 +2352,7 @@ class Z extends qi {
2348
2352
  const i = this.getFlatCoordinates();
2349
2353
  if (i) {
2350
2354
  const r = this.getStride();
2351
- Kr(
2355
+ es(
2352
2356
  i,
2353
2357
  0,
2354
2358
  i.length,
@@ -2360,22 +2364,22 @@ class Z extends qi {
2360
2364
  }
2361
2365
  }
2362
2366
  }
2363
- function D(n) {
2367
+ function K(n) {
2364
2368
  let t;
2365
2369
  return n == 2 ? t = "XY" : n == 3 ? t = "XYZ" : n == 4 && (t = "XYZM"), /** @type {import("./Geometry.js").GeometryLayout} */
2366
2370
  t;
2367
2371
  }
2368
- function pi(n) {
2372
+ function yi(n) {
2369
2373
  let t;
2370
2374
  return n == "XY" ? t = 2 : n == "XYZ" || n == "XYM" ? t = 3 : n == "XYZM" && (t = 4), /** @type {number} */
2371
2375
  t;
2372
2376
  }
2373
- function ts(n, t, e, i) {
2377
+ function ns(n, t, e, i) {
2374
2378
  for (let r = 0, s = e.length; r < s; ++r)
2375
2379
  n[t++] = e[r];
2376
2380
  return t;
2377
2381
  }
2378
- function Jt(n, t, e, i) {
2382
+ function Wt(n, t, e, i) {
2379
2383
  for (let r = 0, s = e.length; r < s; ++r) {
2380
2384
  const o = e[r];
2381
2385
  for (let a = 0; a < i; ++a)
@@ -2383,11 +2387,11 @@ function Jt(n, t, e, i) {
2383
2387
  }
2384
2388
  return t;
2385
2389
  }
2386
- function $t(n, t, e, i, r) {
2390
+ function At(n, t, e, i, r) {
2387
2391
  r = r || [];
2388
2392
  let s = 0;
2389
2393
  for (let o = 0, a = e.length; o < a; ++o) {
2390
- const l = Jt(
2394
+ const l = Wt(
2391
2395
  n,
2392
2396
  t,
2393
2397
  e[o],
@@ -2401,7 +2405,7 @@ function Zi(n, t, e, i, r) {
2401
2405
  r = r || [];
2402
2406
  let s = 0;
2403
2407
  for (let o = 0, a = e.length; o < a; ++o) {
2404
- const l = $t(
2408
+ const l = At(
2405
2409
  n,
2406
2410
  t,
2407
2411
  e[o],
@@ -2412,9 +2416,9 @@ function Zi(n, t, e, i, r) {
2412
2416
  }
2413
2417
  return r.length = s, r;
2414
2418
  }
2415
- function Di(n, t, e, i) {
2419
+ function Ki(n, t, e, i) {
2416
2420
  const r = [];
2417
- let s = _e();
2421
+ let s = ve();
2418
2422
  for (let o = 0, a = e.length; o < a; ++o) {
2419
2423
  const l = e[o];
2420
2424
  s = Ce(
@@ -2426,8 +2430,8 @@ function Di(n, t, e, i) {
2426
2430
  }
2427
2431
  return r;
2428
2432
  }
2429
- function es(n, t, e, i, r) {
2430
- return !dr(
2433
+ function rs(n, t, e, i, r) {
2434
+ return !pr(
2431
2435
  r,
2432
2436
  /**
2433
2437
  * @param {import("../../coordinate.js").Coordinate} coordinate Coordinate.
@@ -2453,7 +2457,7 @@ function j(n, t, e, i, r, s) {
2453
2457
  }
2454
2458
  return o !== 0;
2455
2459
  }
2456
- function Me(n, t, e, i, r, s) {
2460
+ function Se(n, t, e, i, r, s) {
2457
2461
  if (e.length === 0 || !j(n, t, e[0], i, r, s))
2458
2462
  return !1;
2459
2463
  for (let o = 1, a = e.length; o < a; ++o)
@@ -2461,38 +2465,38 @@ function Me(n, t, e, i, r, s) {
2461
2465
  return !1;
2462
2466
  return !0;
2463
2467
  }
2464
- function is(n, t, e, i, r, s) {
2468
+ function ss(n, t, e, i, r, s) {
2465
2469
  if (e.length === 0)
2466
2470
  return !1;
2467
2471
  for (let o = 0, a = e.length; o < a; ++o) {
2468
2472
  const l = e[o];
2469
- if (Me(n, t, l, i, r, s))
2473
+ if (Se(n, t, l, i, r, s))
2470
2474
  return !0;
2471
2475
  t = l[l.length - 1];
2472
2476
  }
2473
2477
  return !1;
2474
2478
  }
2475
- function Se(n, t, e, i, r, s, o) {
2476
- let a, l, h, c, u, d, g;
2477
- const f = r[s + 1], p = [];
2479
+ function $e(n, t, e, i, r, s, o) {
2480
+ let a, l, h, c, u, d, f;
2481
+ const g = r[s + 1], p = [];
2478
2482
  for (let v = 0, S = e.length; v < S; ++v) {
2479
2483
  const E = e[v];
2480
2484
  for (c = n[E - i], d = n[E - i + 1], a = t; a < E; a += i)
2481
- u = n[a], g = n[a + 1], (f <= d && g <= f || d <= f && f <= g) && (h = (f - d) / (g - d) * (u - c) + c, p.push(h)), c = u, d = g;
2485
+ u = n[a], f = n[a + 1], (g <= d && f <= g || d <= g && g <= f) && (h = (g - d) / (f - d) * (u - c) + c, p.push(h)), c = u, d = f;
2482
2486
  }
2483
2487
  let _ = NaN, b = -1 / 0;
2484
- for (p.sort(Fi), c = p[0], a = 1, l = p.length; a < l; ++a) {
2488
+ for (p.sort(Gi), c = p[0], a = 1, l = p.length; a < l; ++a) {
2485
2489
  u = p[a];
2486
2490
  const v = Math.abs(u - c);
2487
- v > b && (h = (c + u) / 2, Me(n, t, e, i, h, f) && (_ = h, b = v)), c = u;
2491
+ v > b && (h = (c + u) / 2, Se(n, t, e, i, h, g) && (_ = h, b = v)), c = u;
2488
2492
  }
2489
- return isNaN(_) && (_ = r[s]), o ? (o.push(_, f, b), o) : [_, f, b];
2493
+ return isNaN(_) && (_ = r[s]), o ? (o.push(_, g, b), o) : [_, g, b];
2490
2494
  }
2491
- function Ki(n, t, e, i, r) {
2495
+ function Qi(n, t, e, i, r) {
2492
2496
  let s = [];
2493
2497
  for (let o = 0, a = e.length; o < a; ++o) {
2494
2498
  const l = e[o];
2495
- s = Se(
2499
+ s = $e(
2496
2500
  n,
2497
2501
  t,
2498
2502
  l,
@@ -2504,7 +2508,7 @@ function Ki(n, t, e, i, r) {
2504
2508
  }
2505
2509
  return s;
2506
2510
  }
2507
- function Ht(n, t, e, i, r, s, o) {
2511
+ function Ut(n, t, e, i, r, s, o) {
2508
2512
  let a, l;
2509
2513
  const h = (e - t) / i;
2510
2514
  if (h === 1)
@@ -2513,20 +2517,20 @@ function Ht(n, t, e, i, r, s, o) {
2513
2517
  a = t, l = r;
2514
2518
  else if (h !== 0) {
2515
2519
  let c = n[t], u = n[t + 1], d = 0;
2516
- const g = [0];
2520
+ const f = [0];
2517
2521
  for (let _ = t + i; _ < e; _ += i) {
2518
2522
  const b = n[_], v = n[_ + 1];
2519
- d += Math.sqrt((b - c) * (b - c) + (v - u) * (v - u)), g.push(d), c = b, u = v;
2523
+ d += Math.sqrt((b - c) * (b - c) + (v - u) * (v - u)), f.push(d), c = b, u = v;
2520
2524
  }
2521
- const f = r * d, p = ir(g, f);
2522
- p < 0 ? (l = (f - g[-p - 2]) / (g[-p - 1] - g[-p - 2]), a = t + (-p - 2) * i) : a = t + p * i;
2525
+ const g = r * d, p = sr(f, g);
2526
+ p < 0 ? (l = (g - f[-p - 2]) / (f[-p - 1] - f[-p - 2]), a = t + (-p - 2) * i) : a = t + p * i;
2523
2527
  }
2524
2528
  o = o > 1 ? o : 2, s = s || new Array(o);
2525
2529
  for (let c = 0; c < o; ++c)
2526
- s[c] = a === void 0 ? NaN : l === void 0 ? n[a + c] : we(n[a + c], n[a + i + c], l);
2530
+ s[c] = a === void 0 ? NaN : l === void 0 ? n[a + c] : be(n[a + c], n[a + i + c], l);
2527
2531
  return s;
2528
2532
  }
2529
- function ce(n, t, e, i, r, s) {
2533
+ function ue(n, t, e, i, r, s) {
2530
2534
  if (e == t)
2531
2535
  return null;
2532
2536
  let o;
@@ -2548,7 +2552,7 @@ function ce(n, t, e, i, r, s) {
2548
2552
  o = [];
2549
2553
  for (let d = 0; d < i - 1; ++d)
2550
2554
  o.push(
2551
- we(
2555
+ be(
2552
2556
  n[(a - 1) * i + d],
2553
2557
  n[a * i + d],
2554
2558
  u
@@ -2556,9 +2560,9 @@ function ce(n, t, e, i, r, s) {
2556
2560
  );
2557
2561
  return o.push(r), o;
2558
2562
  }
2559
- function ns(n, t, e, i, r, s, o) {
2563
+ function os(n, t, e, i, r, s, o) {
2560
2564
  if (o)
2561
- return ce(
2565
+ return ue(
2562
2566
  n,
2563
2567
  t,
2564
2568
  e[e.length - 1],
@@ -2577,7 +2581,7 @@ function ns(n, t, e, i, r, s, o) {
2577
2581
  if (r < n[t + i - 1])
2578
2582
  return null;
2579
2583
  if (r <= n[c - 1])
2580
- return ce(
2584
+ return ue(
2581
2585
  n,
2582
2586
  t,
2583
2587
  c,
@@ -2590,7 +2594,7 @@ function ns(n, t, e, i, r, s, o) {
2590
2594
  }
2591
2595
  return null;
2592
2596
  }
2593
- function rs(n, t, e, i) {
2597
+ function as(n, t, e, i) {
2594
2598
  for (; t < e - i; ) {
2595
2599
  for (let r = 0; r < i; ++r) {
2596
2600
  const s = n[t + r];
@@ -2599,7 +2603,7 @@ function rs(n, t, e, i) {
2599
2603
  t += i, e -= i;
2600
2604
  }
2601
2605
  }
2602
- function $e(n, t, e, i) {
2606
+ function Ae(n, t, e, i) {
2603
2607
  let r = 0, s = n[e - i], o = n[e - i + 1];
2604
2608
  for (; t < e; t += i) {
2605
2609
  const a = n[t], l = n[t + 1];
@@ -2607,10 +2611,10 @@ function $e(n, t, e, i) {
2607
2611
  }
2608
2612
  return r === 0 ? void 0 : r > 0;
2609
2613
  }
2610
- function Ae(n, t, e, i, r) {
2614
+ function Fe(n, t, e, i, r) {
2611
2615
  r = r !== void 0 ? r : !1;
2612
2616
  for (let s = 0, o = e.length; s < o; ++s) {
2613
- const a = e[s], l = $e(
2617
+ const a = e[s], l = Ae(
2614
2618
  n,
2615
2619
  t,
2616
2620
  a,
@@ -2625,31 +2629,31 @@ function Ae(n, t, e, i, r) {
2625
2629
  }
2626
2630
  return !0;
2627
2631
  }
2628
- function Qi(n, t, e, i, r) {
2632
+ function tn(n, t, e, i, r) {
2629
2633
  for (let s = 0, o = e.length; s < o; ++s) {
2630
2634
  const a = e[s];
2631
- if (!Ae(n, t, a, i, r))
2635
+ if (!Fe(n, t, a, i, r))
2632
2636
  return !1;
2633
2637
  a.length && (t = a[a.length - 1]);
2634
2638
  }
2635
2639
  return !0;
2636
2640
  }
2637
- function Ut(n, t, e, i, r) {
2641
+ function Xt(n, t, e, i, r) {
2638
2642
  r = r !== void 0 ? r : !1;
2639
2643
  for (let s = 0, o = e.length; s < o; ++s) {
2640
- const a = e[s], l = $e(
2644
+ const a = e[s], l = Ae(
2641
2645
  n,
2642
2646
  t,
2643
2647
  a,
2644
2648
  i
2645
2649
  );
2646
- (s === 0 ? r && l || !r && !l : r && !l || !r && l) && rs(n, t, a, i), t = a;
2650
+ (s === 0 ? r && l || !r && !l : r && !l || !r && l) && as(n, t, a, i), t = a;
2647
2651
  }
2648
2652
  return t;
2649
2653
  }
2650
- function ue(n, t, e, i, r) {
2654
+ function de(n, t, e, i, r) {
2651
2655
  for (let s = 0, o = e.length; s < o; ++s)
2652
- t = Ut(
2656
+ t = Xt(
2653
2657
  n,
2654
2658
  t,
2655
2659
  e[s],
@@ -2658,11 +2662,11 @@ function ue(n, t, e, i, r) {
2658
2662
  );
2659
2663
  return t;
2660
2664
  }
2661
- function ss(n, t) {
2665
+ function ls(n, t) {
2662
2666
  const e = [];
2663
2667
  let i = 0, r = 0, s;
2664
2668
  for (let o = 0, a = t.length; o < a; ++o) {
2665
- const l = t[o], h = $e(n, i, l, 2);
2669
+ const l = t[o], h = Ae(n, i, l, 2);
2666
2670
  if (s === void 0 && (s = h), h === s)
2667
2671
  e.push(t.slice(r, o + 1));
2668
2672
  else {
@@ -2674,7 +2678,7 @@ function ss(n, t) {
2674
2678
  }
2675
2679
  return e;
2676
2680
  }
2677
- function Wt(n, t, e, i, r, s, o) {
2681
+ function qt(n, t, e, i, r, s, o) {
2678
2682
  const a = (e - t) / i;
2679
2683
  if (a < 3) {
2680
2684
  for (; t < e; t += i)
@@ -2687,22 +2691,22 @@ function Wt(n, t, e, i, r, s, o) {
2687
2691
  let c = 0;
2688
2692
  for (; h.length > 0; ) {
2689
2693
  const u = h.pop(), d = h.pop();
2690
- let g = 0;
2691
- const f = n[d], p = n[d + 1], _ = n[u], b = n[u + 1];
2694
+ let f = 0;
2695
+ const g = n[d], p = n[d + 1], _ = n[u], b = n[u + 1];
2692
2696
  for (let v = d + i; v < u; v += i) {
2693
- const S = n[v], E = n[v + 1], I = Cr(S, E, f, p, _, b);
2694
- I > g && (c = v, g = I);
2697
+ const S = n[v], E = n[v + 1], L = Er(S, E, g, p, _, b);
2698
+ L > f && (c = v, f = L);
2695
2699
  }
2696
- g > r && (l[(c - t) / i] = 1, d + i < c && h.push(d, c), c + i < u && h.push(c, u));
2700
+ f > r && (l[(c - t) / i] = 1, d + i < c && h.push(d, c), c + i < u && h.push(c, u));
2697
2701
  }
2698
2702
  for (let u = 0; u < a; ++u)
2699
2703
  l[u] && (s[o++] = n[t + u * i], s[o++] = n[t + u * i + 1]);
2700
2704
  return o;
2701
2705
  }
2702
- function tn(n, t, e, i, r, s, o, a) {
2706
+ function en(n, t, e, i, r, s, o, a) {
2703
2707
  for (let l = 0, h = e.length; l < h; ++l) {
2704
2708
  const c = e[l];
2705
- o = Wt(
2709
+ o = qt(
2706
2710
  n,
2707
2711
  t,
2708
2712
  c,
@@ -2714,25 +2718,25 @@ function tn(n, t, e, i, r, s, o, a) {
2714
2718
  }
2715
2719
  return o;
2716
2720
  }
2717
- function Q(n, t) {
2721
+ function tt(n, t) {
2718
2722
  return t * Math.round(n / t);
2719
2723
  }
2720
- function os(n, t, e, i, r, s, o) {
2724
+ function hs(n, t, e, i, r, s, o) {
2721
2725
  if (t == e)
2722
2726
  return o;
2723
- let a = Q(n[t], r), l = Q(n[t + 1], r);
2727
+ let a = tt(n[t], r), l = tt(n[t + 1], r);
2724
2728
  t += i, s[o++] = a, s[o++] = l;
2725
2729
  let h, c;
2726
2730
  do
2727
- if (h = Q(n[t], r), c = Q(n[t + 1], r), t += i, t == e)
2731
+ if (h = tt(n[t], r), c = tt(n[t + 1], r), t += i, t == e)
2728
2732
  return s[o++] = h, s[o++] = c, o;
2729
2733
  while (h == a && c == l);
2730
2734
  for (; t < e; ) {
2731
- const u = Q(n[t], r), d = Q(n[t + 1], r);
2735
+ const u = tt(n[t], r), d = tt(n[t + 1], r);
2732
2736
  if (t += i, u == h && d == c)
2733
2737
  continue;
2734
- const g = h - a, f = c - l, p = u - a, _ = d - l;
2735
- if (g * _ == f * p && (g < 0 && p < g || g == p || g > 0 && p > g) && (f < 0 && _ < f || f == _ || f > 0 && _ > f)) {
2738
+ const f = h - a, g = c - l, p = u - a, _ = d - l;
2739
+ if (f * _ == g * p && (f < 0 && p < f || f == p || f > 0 && p > f) && (g < 0 && _ < g || g == _ || g > 0 && _ > g)) {
2736
2740
  h = u, c = d;
2737
2741
  continue;
2738
2742
  }
@@ -2740,10 +2744,10 @@ function os(n, t, e, i, r, s, o) {
2740
2744
  }
2741
2745
  return s[o++] = h, s[o++] = c, o;
2742
2746
  }
2743
- function Fe(n, t, e, i, r, s, o, a) {
2747
+ function Ge(n, t, e, i, r, s, o, a) {
2744
2748
  for (let l = 0, h = e.length; l < h; ++l) {
2745
2749
  const c = e[l];
2746
- o = os(
2750
+ o = hs(
2747
2751
  n,
2748
2752
  t,
2749
2753
  c,
@@ -2755,10 +2759,10 @@ function Fe(n, t, e, i, r, s, o, a) {
2755
2759
  }
2756
2760
  return o;
2757
2761
  }
2758
- function as(n, t, e, i, r, s, o, a) {
2762
+ function cs(n, t, e, i, r, s, o, a) {
2759
2763
  for (let l = 0, h = e.length; l < h; ++l) {
2760
2764
  const c = e[l], u = [];
2761
- o = Fe(
2765
+ o = Ge(
2762
2766
  n,
2763
2767
  t,
2764
2768
  c,
@@ -2771,7 +2775,7 @@ function as(n, t, e, i, r, s, o, a) {
2771
2775
  }
2772
2776
  return o;
2773
2777
  }
2774
- class B extends qi {
2778
+ class V extends Di {
2775
2779
  /**
2776
2780
  * @param {Array<Geometry>} geometries Geometries.
2777
2781
  */
@@ -2782,7 +2786,7 @@ class B extends qi {
2782
2786
  * @private
2783
2787
  */
2784
2788
  unlistenGeometriesChange_() {
2785
- this.changeEventsKeys_.forEach(Nt), this.changeEventsKeys_.length = 0;
2789
+ this.changeEventsKeys_.forEach(Ot), this.changeEventsKeys_.length = 0;
2786
2790
  }
2787
2791
  /**
2788
2792
  * @private
@@ -2791,7 +2795,7 @@ class B extends qi {
2791
2795
  const t = this.geometries_;
2792
2796
  for (let e = 0, i = t.length; e < i; ++e)
2793
2797
  this.changeEventsKeys_.push(
2794
- mt(t[e], me.CHANGE, this.changed, this)
2798
+ _t(t[e], _e.CHANGE, this.changed, this)
2795
2799
  );
2796
2800
  }
2797
2801
  /**
@@ -2801,8 +2805,8 @@ class B extends qi {
2801
2805
  * @override
2802
2806
  */
2803
2807
  clone() {
2804
- const t = new B(
2805
- re(this.geometries_)
2808
+ const t = new V(
2809
+ se(this.geometries_)
2806
2810
  );
2807
2811
  return t.applyProperties(this), t;
2808
2812
  }
@@ -2815,7 +2819,7 @@ class B extends qi {
2815
2819
  * @override
2816
2820
  */
2817
2821
  closestPointXY(t, e, i, r) {
2818
- if (r < q(this.getExtent(), t, e))
2822
+ if (r < D(this.getExtent(), t, e))
2819
2823
  return r;
2820
2824
  const s = this.geometries_;
2821
2825
  for (let o = 0, a = s.length; o < a; ++o)
@@ -2847,10 +2851,10 @@ class B extends qi {
2847
2851
  * @override
2848
2852
  */
2849
2853
  computeExtent(t) {
2850
- ve(t);
2854
+ we(t);
2851
2855
  const e = this.geometries_;
2852
2856
  for (let i = 0, r = e.length; i < r; ++i)
2853
- cr(t, e[i].getExtent());
2857
+ fr(t, e[i].getExtent());
2854
2858
  return t;
2855
2859
  }
2856
2860
  /**
@@ -2859,7 +2863,7 @@ class B extends qi {
2859
2863
  * @api
2860
2864
  */
2861
2865
  getGeometries() {
2862
- return re(this.geometries_);
2866
+ return se(this.geometries_);
2863
2867
  }
2864
2868
  /**
2865
2869
  * @return {Array<Geometry>} Geometries.
@@ -2895,7 +2899,7 @@ class B extends qi {
2895
2899
  const a = i[s], l = a.getSimplifiedGeometry(t);
2896
2900
  e.push(l), l !== a && (r = !0);
2897
2901
  }
2898
- return r ? new B(
2902
+ return r ? new V(
2899
2903
  e
2900
2904
  ) : (this.simplifiedGeometryMaxMinSquaredTolerance = t, this);
2901
2905
  }
@@ -2954,7 +2958,7 @@ class B extends qi {
2954
2958
  * @override
2955
2959
  */
2956
2960
  scale(t, e, i) {
2957
- i || (i = Bt(this.getExtent()));
2961
+ i || (i = Vt(this.getExtent()));
2958
2962
  const r = this.geometries_;
2959
2963
  for (let s = 0, o = r.length; s < o; ++s)
2960
2964
  r[s].scale(t, e, i);
@@ -2966,7 +2970,7 @@ class B extends qi {
2966
2970
  * @api
2967
2971
  */
2968
2972
  setGeometries(t) {
2969
- this.setGeometriesArray(re(t));
2973
+ this.setGeometriesArray(se(t));
2970
2974
  }
2971
2975
  /**
2972
2976
  * @param {Array<Geometry>} geometries Geometries.
@@ -3012,10 +3016,10 @@ class B extends qi {
3012
3016
  this.unlistenGeometriesChange_(), super.disposeInternal();
3013
3017
  }
3014
3018
  }
3015
- function re(n) {
3019
+ function se(n) {
3016
3020
  return n.map((t) => t.clone());
3017
3021
  }
3018
- function en(n, t, e, i) {
3022
+ function nn(n, t, e, i) {
3019
3023
  let r = 0;
3020
3024
  const s = n[e - i], o = n[e - i + 1];
3021
3025
  let a = 0, l = 0;
@@ -3025,23 +3029,23 @@ function en(n, t, e, i) {
3025
3029
  }
3026
3030
  return r / 2;
3027
3031
  }
3028
- function nn(n, t, e, i) {
3032
+ function rn(n, t, e, i) {
3029
3033
  let r = 0;
3030
3034
  for (let s = 0, o = e.length; s < o; ++s) {
3031
3035
  const a = e[s];
3032
- r += en(n, t, a, i), t = a;
3036
+ r += nn(n, t, a, i), t = a;
3033
3037
  }
3034
3038
  return r;
3035
3039
  }
3036
- function ls(n, t, e, i) {
3040
+ function us(n, t, e, i) {
3037
3041
  let r = 0;
3038
3042
  for (let s = 0, o = e.length; s < o; ++s) {
3039
3043
  const a = e[s];
3040
- r += nn(n, t, a, i), t = a[a.length - 1];
3044
+ r += rn(n, t, a, i), t = a[a.length - 1];
3041
3045
  }
3042
3046
  return r;
3043
3047
  }
3044
- function yi(n, t, e, i, r, s, o) {
3048
+ function mi(n, t, e, i, r, s, o) {
3045
3049
  const a = n[t], l = n[t + 1], h = n[e] - a, c = n[e + 1] - l;
3046
3050
  let u;
3047
3051
  if (h === 0 && c === 0)
@@ -3051,10 +3055,10 @@ function yi(n, t, e, i, r, s, o) {
3051
3055
  if (d > 1)
3052
3056
  u = e;
3053
3057
  else if (d > 0) {
3054
- for (let g = 0; g < i; ++g)
3055
- o[g] = we(
3056
- n[t + g],
3057
- n[e + g],
3058
+ for (let f = 0; f < i; ++f)
3059
+ o[f] = be(
3060
+ n[t + f],
3061
+ n[e + f],
3058
3062
  d
3059
3063
  );
3060
3064
  o.length = i;
@@ -3066,10 +3070,10 @@ function yi(n, t, e, i, r, s, o) {
3066
3070
  o[d] = n[u + d];
3067
3071
  o.length = i;
3068
3072
  }
3069
- function Ge(n, t, e, i, r) {
3073
+ function Ie(n, t, e, i, r) {
3070
3074
  let s = n[t], o = n[t + 1];
3071
3075
  for (t += i; t < e; t += i) {
3072
- const a = n[t], l = n[t + 1], h = X(s, o, a, l);
3076
+ const a = n[t], l = n[t + 1], h = Y(s, o, a, l);
3073
3077
  h > r && (r = h), s = a, o = l;
3074
3078
  }
3075
3079
  return r;
@@ -3077,23 +3081,23 @@ function Ge(n, t, e, i, r) {
3077
3081
  function Le(n, t, e, i, r) {
3078
3082
  for (let s = 0, o = e.length; s < o; ++s) {
3079
3083
  const a = e[s];
3080
- r = Ge(n, t, a, i, r), t = a;
3084
+ r = Ie(n, t, a, i, r), t = a;
3081
3085
  }
3082
3086
  return r;
3083
3087
  }
3084
- function hs(n, t, e, i, r) {
3088
+ function ds(n, t, e, i, r) {
3085
3089
  for (let s = 0, o = e.length; s < o; ++s) {
3086
3090
  const a = e[s];
3087
3091
  r = Le(n, t, a, i, r), t = a[a.length - 1];
3088
3092
  }
3089
3093
  return r;
3090
3094
  }
3091
- function Ie(n, t, e, i, r, s, o, a, l, h, c) {
3095
+ function Re(n, t, e, i, r, s, o, a, l, h, c) {
3092
3096
  if (t == e)
3093
3097
  return h;
3094
3098
  let u, d;
3095
3099
  if (r === 0) {
3096
- if (d = X(
3100
+ if (d = Y(
3097
3101
  o,
3098
3102
  a,
3099
3103
  n[t],
@@ -3106,26 +3110,26 @@ function Ie(n, t, e, i, r, s, o, a, l, h, c) {
3106
3110
  return h;
3107
3111
  }
3108
3112
  c = c || [NaN, NaN];
3109
- let g = t + i;
3110
- for (; g < e; )
3111
- if (yi(
3113
+ let f = t + i;
3114
+ for (; f < e; )
3115
+ if (mi(
3112
3116
  n,
3113
- g - i,
3114
- g,
3117
+ f - i,
3118
+ f,
3115
3119
  i,
3116
3120
  o,
3117
3121
  a,
3118
3122
  c
3119
- ), d = X(o, a, c[0], c[1]), d < h) {
3123
+ ), d = Y(o, a, c[0], c[1]), d < h) {
3120
3124
  for (h = d, u = 0; u < i; ++u)
3121
3125
  l[u] = c[u];
3122
- l.length = i, g += i;
3126
+ l.length = i, f += i;
3123
3127
  } else
3124
- g += i * Math.max(
3128
+ f += i * Math.max(
3125
3129
  (Math.sqrt(d) - Math.sqrt(h)) / r | 0,
3126
3130
  1
3127
3131
  );
3128
- if (s && (yi(
3132
+ if (s && (mi(
3129
3133
  n,
3130
3134
  e - i,
3131
3135
  t,
@@ -3133,21 +3137,21 @@ function Ie(n, t, e, i, r, s, o, a, l, h, c) {
3133
3137
  o,
3134
3138
  a,
3135
3139
  c
3136
- ), d = X(o, a, c[0], c[1]), d < h)) {
3140
+ ), d = Y(o, a, c[0], c[1]), d < h)) {
3137
3141
  for (h = d, u = 0; u < i; ++u)
3138
3142
  l[u] = c[u];
3139
3143
  l.length = i;
3140
3144
  }
3141
3145
  return h;
3142
3146
  }
3143
- function Re(n, t, e, i, r, s, o, a, l, h, c) {
3147
+ function Te(n, t, e, i, r, s, o, a, l, h, c) {
3144
3148
  c = c || [NaN, NaN];
3145
3149
  for (let u = 0, d = e.length; u < d; ++u) {
3146
- const g = e[u];
3147
- h = Ie(
3150
+ const f = e[u];
3151
+ h = Re(
3148
3152
  n,
3149
3153
  t,
3150
- g,
3154
+ f,
3151
3155
  i,
3152
3156
  r,
3153
3157
  s,
@@ -3156,18 +3160,18 @@ function Re(n, t, e, i, r, s, o, a, l, h, c) {
3156
3160
  l,
3157
3161
  h,
3158
3162
  c
3159
- ), t = g;
3163
+ ), t = f;
3160
3164
  }
3161
3165
  return h;
3162
3166
  }
3163
- function cs(n, t, e, i, r, s, o, a, l, h, c) {
3167
+ function fs(n, t, e, i, r, s, o, a, l, h, c) {
3164
3168
  c = c || [NaN, NaN];
3165
3169
  for (let u = 0, d = e.length; u < d; ++u) {
3166
- const g = e[u];
3167
- h = Re(
3170
+ const f = e[u];
3171
+ h = Te(
3168
3172
  n,
3169
3173
  t,
3170
- g,
3174
+ f,
3171
3175
  i,
3172
3176
  r,
3173
3177
  s,
@@ -3176,23 +3180,23 @@ function cs(n, t, e, i, r, s, o, a, l, h, c) {
3176
3180
  l,
3177
3181
  h,
3178
3182
  c
3179
- ), t = g[g.length - 1];
3183
+ ), t = f[f.length - 1];
3180
3184
  }
3181
3185
  return h;
3182
3186
  }
3183
- function qt(n, t, e, i, r) {
3187
+ function Dt(n, t, e, i, r) {
3184
3188
  r = r !== void 0 ? r : [];
3185
3189
  let s = 0;
3186
3190
  for (let o = t; o < e; o += i)
3187
3191
  r[s++] = n.slice(o, o + i);
3188
3192
  return r.length = s, r;
3189
3193
  }
3190
- function Te(n, t, e, i, r) {
3194
+ function Ne(n, t, e, i, r) {
3191
3195
  r = r !== void 0 ? r : [];
3192
3196
  let s = 0;
3193
3197
  for (let o = 0, a = e.length; o < a; ++o) {
3194
3198
  const l = e[o];
3195
- r[s++] = qt(
3199
+ r[s++] = Dt(
3196
3200
  n,
3197
3201
  t,
3198
3202
  l,
@@ -3202,12 +3206,12 @@ function Te(n, t, e, i, r) {
3202
3206
  }
3203
3207
  return r.length = s, r;
3204
3208
  }
3205
- function us(n, t, e, i, r) {
3209
+ function gs(n, t, e, i, r) {
3206
3210
  r = r !== void 0 ? r : [];
3207
3211
  let s = 0;
3208
3212
  for (let o = 0, a = e.length; o < a; ++o) {
3209
3213
  const l = e[o];
3210
- r[s++] = l.length === 1 && l[0] === t ? [] : Te(
3214
+ r[s++] = l.length === 1 && l[0] === t ? [] : Ne(
3211
3215
  n,
3212
3216
  t,
3213
3217
  l,
@@ -3217,7 +3221,7 @@ function us(n, t, e, i, r) {
3217
3221
  }
3218
3222
  return r.length = s, r;
3219
3223
  }
3220
- class vt extends Z {
3224
+ class wt extends Z {
3221
3225
  /**
3222
3226
  * @param {Array<import("../coordinate.js").Coordinate>|Array<number>} coordinates Coordinates.
3223
3227
  * For internal use, flat coordinates in combination with `layout` are also accepted.
@@ -3241,7 +3245,7 @@ class vt extends Z {
3241
3245
  * @override
3242
3246
  */
3243
3247
  clone() {
3244
- return new vt(this.flatCoordinates.slice(), this.layout);
3248
+ return new wt(this.flatCoordinates.slice(), this.layout);
3245
3249
  }
3246
3250
  /**
3247
3251
  * @param {number} x X.
@@ -3252,15 +3256,15 @@ class vt extends Z {
3252
3256
  * @override
3253
3257
  */
3254
3258
  closestPointXY(t, e, i, r) {
3255
- return r < q(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
3256
- Ge(
3259
+ return r < D(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
3260
+ Ie(
3257
3261
  this.flatCoordinates,
3258
3262
  0,
3259
3263
  this.flatCoordinates.length,
3260
3264
  this.stride,
3261
3265
  0
3262
3266
  )
3263
- ), this.maxDeltaRevision_ = this.getRevision()), Ie(
3267
+ ), this.maxDeltaRevision_ = this.getRevision()), Re(
3264
3268
  this.flatCoordinates,
3265
3269
  0,
3266
3270
  this.flatCoordinates.length,
@@ -3279,7 +3283,7 @@ class vt extends Z {
3279
3283
  * @api
3280
3284
  */
3281
3285
  getArea() {
3282
- return en(
3286
+ return nn(
3283
3287
  this.flatCoordinates,
3284
3288
  0,
3285
3289
  this.flatCoordinates.length,
@@ -3293,7 +3297,7 @@ class vt extends Z {
3293
3297
  * @override
3294
3298
  */
3295
3299
  getCoordinates() {
3296
- return qt(
3300
+ return Dt(
3297
3301
  this.flatCoordinates,
3298
3302
  0,
3299
3303
  this.flatCoordinates.length,
@@ -3308,7 +3312,7 @@ class vt extends Z {
3308
3312
  */
3309
3313
  getSimplifiedGeometryInternal(t) {
3310
3314
  const e = [];
3311
- return e.length = Wt(
3315
+ return e.length = qt(
3312
3316
  this.flatCoordinates,
3313
3317
  0,
3314
3318
  this.flatCoordinates.length,
@@ -3316,7 +3320,7 @@ class vt extends Z {
3316
3320
  t,
3317
3321
  e,
3318
3322
  0
3319
- ), new vt(e, "XY");
3323
+ ), new wt(e, "XY");
3320
3324
  }
3321
3325
  /**
3322
3326
  * Get the type of this geometry.
@@ -3345,7 +3349,7 @@ class vt extends Z {
3345
3349
  * @override
3346
3350
  */
3347
3351
  setCoordinates(t, e) {
3348
- this.setLayout(e, t, 1), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = Jt(
3352
+ this.setLayout(e, t, 1), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = Wt(
3349
3353
  this.flatCoordinates,
3350
3354
  0,
3351
3355
  t,
@@ -3353,7 +3357,7 @@ class vt extends Z {
3353
3357
  ), this.changed();
3354
3358
  }
3355
3359
  }
3356
- function rn(n, t, e, i, r) {
3360
+ function sn(n, t, e, i, r) {
3357
3361
  let s;
3358
3362
  for (t += i; t < e; t += i)
3359
3363
  if (s = r(
@@ -3364,7 +3368,7 @@ function rn(n, t, e, i, r) {
3364
3368
  return !1;
3365
3369
  }
3366
3370
  function Zt(n, t, e, i, r, s) {
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(
3371
+ return s = s ?? Hi(ve(), n, t, e, i), wr(r, s) ? s[0] >= r[0] && s[2] <= r[2] || s[1] >= r[1] && s[3] <= r[3] ? !0 : sn(
3368
3372
  n,
3369
3373
  t,
3370
3374
  e,
@@ -3376,11 +3380,11 @@ function Zt(n, t, e, i, r, s) {
3376
3380
  * `false` otherwise.
3377
3381
  */
3378
3382
  function(o, a) {
3379
- return vr(r, o, a);
3383
+ return br(r, o, a);
3380
3384
  }
3381
3385
  ) : !1;
3382
3386
  }
3383
- function ds(n, t, e, i, r) {
3387
+ function ps(n, t, e, i, r) {
3384
3388
  for (let s = 0, o = e.length; s < o; ++s) {
3385
3389
  if (Zt(n, t, e[s], i, r))
3386
3390
  return !0;
@@ -3388,7 +3392,7 @@ function ds(n, t, e, i, r) {
3388
3392
  }
3389
3393
  return !1;
3390
3394
  }
3391
- function gs(n, t, e, i, r) {
3395
+ function ys(n, t, e, i, r) {
3392
3396
  return !!(Zt(n, t, e, i, r) || j(
3393
3397
  n,
3394
3398
  t,
@@ -3419,13 +3423,13 @@ function gs(n, t, e, i, r) {
3419
3423
  r[3]
3420
3424
  ));
3421
3425
  }
3422
- function sn(n, t, e, i, r) {
3423
- if (!gs(n, t, e[0], i, r))
3426
+ function on(n, t, e, i, r) {
3427
+ if (!ys(n, t, e[0], i, r))
3424
3428
  return !1;
3425
3429
  if (e.length === 1)
3426
3430
  return !0;
3427
3431
  for (let s = 1, o = e.length; s < o; ++s)
3428
- if (es(
3432
+ if (rs(
3429
3433
  n,
3430
3434
  e[s - 1],
3431
3435
  e[s],
@@ -3441,16 +3445,16 @@ function sn(n, t, e, i, r) {
3441
3445
  return !1;
3442
3446
  return !0;
3443
3447
  }
3444
- function fs(n, t, e, i, r) {
3448
+ function ms(n, t, e, i, r) {
3445
3449
  for (let s = 0, o = e.length; s < o; ++s) {
3446
3450
  const a = e[s];
3447
- if (sn(n, t, a, i, r))
3451
+ if (on(n, t, a, i, r))
3448
3452
  return !0;
3449
3453
  t = a[a.length - 1];
3450
3454
  }
3451
3455
  return !1;
3452
3456
  }
3453
- function ps(n, t, e, i) {
3457
+ function an(n, t, e, i) {
3454
3458
  let r = n[t], s = n[t + 1], o = 0;
3455
3459
  for (let a = t + i; a < e; a += i) {
3456
3460
  const l = n[a], h = n[a + 1];
@@ -3458,7 +3462,7 @@ function ps(n, t, e, i) {
3458
3462
  }
3459
3463
  return o;
3460
3464
  }
3461
- class V extends Z {
3465
+ class z extends Z {
3462
3466
  /**
3463
3467
  * @param {Array<import("../coordinate.js").Coordinate>|Array<number>} coordinates Coordinates.
3464
3468
  * For internal use, flat coordinates in combination with `layout` are also accepted.
@@ -3490,7 +3494,7 @@ class V extends Z {
3490
3494
  * @override
3491
3495
  */
3492
3496
  clone() {
3493
- const t = new V(
3497
+ const t = new z(
3494
3498
  this.flatCoordinates.slice(),
3495
3499
  this.layout
3496
3500
  );
@@ -3505,15 +3509,15 @@ class V extends Z {
3505
3509
  * @override
3506
3510
  */
3507
3511
  closestPointXY(t, e, i, r) {
3508
- return r < q(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
3509
- Ge(
3512
+ return r < D(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
3513
+ Ie(
3510
3514
  this.flatCoordinates,
3511
3515
  0,
3512
3516
  this.flatCoordinates.length,
3513
3517
  this.stride,
3514
3518
  0
3515
3519
  )
3516
- ), this.maxDeltaRevision_ = this.getRevision()), Ie(
3520
+ ), this.maxDeltaRevision_ = this.getRevision()), Re(
3517
3521
  this.flatCoordinates,
3518
3522
  0,
3519
3523
  this.flatCoordinates.length,
@@ -3538,7 +3542,7 @@ class V extends Z {
3538
3542
  * @api
3539
3543
  */
3540
3544
  forEachSegment(t) {
3541
- return rn(
3545
+ return sn(
3542
3546
  this.flatCoordinates,
3543
3547
  0,
3544
3548
  this.flatCoordinates.length,
@@ -3561,7 +3565,7 @@ class V extends Z {
3561
3565
  * @api
3562
3566
  */
3563
3567
  getCoordinateAtM(t, e) {
3564
- return this.layout != "XYM" && this.layout != "XYZM" ? null : (e = e !== void 0 ? e : !1, ce(
3568
+ return this.layout != "XYM" && this.layout != "XYZM" ? null : (e = e !== void 0 ? e : !1, ue(
3565
3569
  this.flatCoordinates,
3566
3570
  0,
3567
3571
  this.flatCoordinates.length,
@@ -3577,7 +3581,7 @@ class V extends Z {
3577
3581
  * @override
3578
3582
  */
3579
3583
  getCoordinates() {
3580
- return qt(
3584
+ return Dt(
3581
3585
  this.flatCoordinates,
3582
3586
  0,
3583
3587
  this.flatCoordinates.length,
@@ -3595,7 +3599,7 @@ class V extends Z {
3595
3599
  * @api
3596
3600
  */
3597
3601
  getCoordinateAt(t, e) {
3598
- return Ht(
3602
+ return Ut(
3599
3603
  this.flatCoordinates,
3600
3604
  0,
3601
3605
  this.flatCoordinates.length,
@@ -3611,7 +3615,7 @@ class V extends Z {
3611
3615
  * @api
3612
3616
  */
3613
3617
  getLength() {
3614
- return ps(
3618
+ return an(
3615
3619
  this.flatCoordinates,
3616
3620
  0,
3617
3621
  this.flatCoordinates.length,
@@ -3636,7 +3640,7 @@ class V extends Z {
3636
3640
  */
3637
3641
  getSimplifiedGeometryInternal(t) {
3638
3642
  const e = [];
3639
- return e.length = Wt(
3643
+ return e.length = qt(
3640
3644
  this.flatCoordinates,
3641
3645
  0,
3642
3646
  this.flatCoordinates.length,
@@ -3644,7 +3648,7 @@ class V extends Z {
3644
3648
  t,
3645
3649
  e,
3646
3650
  0
3647
- ), new V(e, "XY");
3651
+ ), new z(e, "XY");
3648
3652
  }
3649
3653
  /**
3650
3654
  * Get the type of this geometry.
@@ -3680,7 +3684,7 @@ class V extends Z {
3680
3684
  * @override
3681
3685
  */
3682
3686
  setCoordinates(t, e) {
3683
- this.setLayout(e, t, 1), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = Jt(
3687
+ this.setLayout(e, t, 1), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = Wt(
3684
3688
  this.flatCoordinates,
3685
3689
  0,
3686
3690
  t,
@@ -3753,7 +3757,7 @@ class Ct extends Z {
3753
3757
  * @override
3754
3758
  */
3755
3759
  closestPointXY(t, e, i, r) {
3756
- return r < q(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
3760
+ return r < D(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
3757
3761
  Le(
3758
3762
  this.flatCoordinates,
3759
3763
  0,
@@ -3761,7 +3765,7 @@ class Ct extends Z {
3761
3765
  this.stride,
3762
3766
  0
3763
3767
  )
3764
- ), this.maxDeltaRevision_ = this.getRevision()), Re(
3768
+ ), this.maxDeltaRevision_ = this.getRevision()), Te(
3765
3769
  this.flatCoordinates,
3766
3770
  0,
3767
3771
  this.ends_,
@@ -3797,7 +3801,7 @@ class Ct extends Z {
3797
3801
  * @api
3798
3802
  */
3799
3803
  getCoordinateAtM(t, e, i) {
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(
3804
+ return this.layout != "XYM" && this.layout != "XYZM" || this.flatCoordinates.length === 0 ? null : (e = e !== void 0 ? e : !1, i = i !== void 0 ? i : !1, os(
3801
3805
  this.flatCoordinates,
3802
3806
  0,
3803
3807
  this.ends_,
@@ -3814,7 +3818,7 @@ class Ct extends Z {
3814
3818
  * @override
3815
3819
  */
3816
3820
  getCoordinates() {
3817
- return Te(
3821
+ return Ne(
3818
3822
  this.flatCoordinates,
3819
3823
  0,
3820
3824
  this.ends_,
@@ -3834,7 +3838,7 @@ class Ct extends Z {
3834
3838
  * @api
3835
3839
  */
3836
3840
  getLineString(t) {
3837
- return t < 0 || this.ends_.length <= t ? null : new V(
3841
+ return t < 0 || this.ends_.length <= t ? null : new z(
3838
3842
  this.flatCoordinates.slice(
3839
3843
  t === 0 ? 0 : this.ends_[t - 1],
3840
3844
  this.ends_[t]
@@ -3851,7 +3855,7 @@ class Ct extends Z {
3851
3855
  const t = this.flatCoordinates, e = this.ends_, i = this.layout, r = [];
3852
3856
  let s = 0;
3853
3857
  for (let o = 0, a = e.length; o < a; ++o) {
3854
- const l = e[o], h = new V(
3858
+ const l = e[o], h = new z(
3855
3859
  t.slice(s, l),
3856
3860
  i
3857
3861
  );
@@ -3859,6 +3863,23 @@ class Ct extends Z {
3859
3863
  }
3860
3864
  return r;
3861
3865
  }
3866
+ /**
3867
+ * Return the sum of all line string lengths
3868
+ * @return {number} Length (on projected plane).
3869
+ * @api
3870
+ */
3871
+ getLength() {
3872
+ const t = this.ends_;
3873
+ let e = 0, i = 0;
3874
+ for (let r = 0, s = t.length; r < s; ++r)
3875
+ i += an(
3876
+ this.flatCoordinates,
3877
+ e,
3878
+ t[r],
3879
+ this.stride
3880
+ ), e = t[r];
3881
+ return i;
3882
+ }
3862
3883
  /**
3863
3884
  * @return {Array<number>} Flat midpoints.
3864
3885
  */
@@ -3867,7 +3888,7 @@ class Ct extends Z {
3867
3888
  let i = 0;
3868
3889
  const r = this.ends_, s = this.stride;
3869
3890
  for (let o = 0, a = r.length; o < a; ++o) {
3870
- const l = r[o], h = Ht(
3891
+ const l = r[o], h = Ut(
3871
3892
  e,
3872
3893
  i,
3873
3894
  l,
@@ -3886,7 +3907,7 @@ class Ct extends Z {
3886
3907
  */
3887
3908
  getSimplifiedGeometryInternal(t) {
3888
3909
  const e = [], i = [];
3889
- return e.length = tn(
3910
+ return e.length = en(
3890
3911
  this.flatCoordinates,
3891
3912
  0,
3892
3913
  this.ends_,
@@ -3914,7 +3935,7 @@ class Ct extends Z {
3914
3935
  * @override
3915
3936
  */
3916
3937
  intersectsExtent(t) {
3917
- return ds(
3938
+ return ps(
3918
3939
  this.flatCoordinates,
3919
3940
  0,
3920
3941
  this.ends_,
@@ -3931,7 +3952,7 @@ class Ct extends Z {
3931
3952
  */
3932
3953
  setCoordinates(t, e) {
3933
3954
  this.setLayout(e, t, 2), this.flatCoordinates || (this.flatCoordinates = []);
3934
- const i = $t(
3955
+ const i = At(
3935
3956
  this.flatCoordinates,
3936
3957
  0,
3937
3958
  t,
@@ -3941,7 +3962,7 @@ class Ct extends Z {
3941
3962
  this.flatCoordinates.length = i.length === 0 ? 0 : i[i.length - 1], this.changed();
3942
3963
  }
3943
3964
  }
3944
- class z extends Z {
3965
+ class J extends Z {
3945
3966
  /**
3946
3967
  * @param {import("../coordinate.js").Coordinate} coordinates Coordinates.
3947
3968
  * @param {import("./Geometry.js").GeometryLayout} [layout] Layout.
@@ -3956,7 +3977,7 @@ class z extends Z {
3956
3977
  * @override
3957
3978
  */
3958
3979
  clone() {
3959
- const t = new z(this.flatCoordinates.slice(), this.layout);
3980
+ const t = new J(this.flatCoordinates.slice(), this.layout);
3960
3981
  return t.applyProperties(this), t;
3961
3982
  }
3962
3983
  /**
@@ -3968,7 +3989,7 @@ class z extends Z {
3968
3989
  * @override
3969
3990
  */
3970
3991
  closestPointXY(t, e, i, r) {
3971
- const s = this.flatCoordinates, o = X(
3992
+ const s = this.flatCoordinates, o = Y(
3972
3993
  t,
3973
3994
  e,
3974
3995
  s[0],
@@ -3998,7 +4019,7 @@ class z extends Z {
3998
4019
  * @override
3999
4020
  */
4000
4021
  computeExtent(t) {
4001
- return ki(this.flatCoordinates, t);
4022
+ return ji(this.flatCoordinates, t);
4002
4023
  }
4003
4024
  /**
4004
4025
  * Get the type of this geometry.
@@ -4017,7 +4038,7 @@ class z extends Z {
4017
4038
  * @override
4018
4039
  */
4019
4040
  intersectsExtent(t) {
4020
- return Ni(t, this.flatCoordinates[0], this.flatCoordinates[1]);
4041
+ return Oi(t, this.flatCoordinates[0], this.flatCoordinates[1]);
4021
4042
  }
4022
4043
  /**
4023
4044
  * @param {!Array<*>} coordinates Coordinates.
@@ -4026,7 +4047,7 @@ class z extends Z {
4026
4047
  * @override
4027
4048
  */
4028
4049
  setCoordinates(t, e) {
4029
- this.setLayout(e, t, 0), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = ts(
4050
+ this.setLayout(e, t, 0), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = ns(
4030
4051
  this.flatCoordinates,
4031
4052
  0,
4032
4053
  t,
@@ -4034,7 +4055,7 @@ class z extends Z {
4034
4055
  ), this.changed();
4035
4056
  }
4036
4057
  }
4037
- class At extends Z {
4058
+ class Ft extends Z {
4038
4059
  /**
4039
4060
  * @param {Array<import("../coordinate.js").Coordinate>|Array<number>} coordinates Coordinates.
4040
4061
  * For internal use, flat coordinates in combination with `layout` are also accepted.
@@ -4066,7 +4087,7 @@ class At extends Z {
4066
4087
  * @override
4067
4088
  */
4068
4089
  clone() {
4069
- const t = new At(
4090
+ const t = new Ft(
4070
4091
  this.flatCoordinates.slice(),
4071
4092
  this.layout
4072
4093
  );
@@ -4081,11 +4102,11 @@ class At extends Z {
4081
4102
  * @override
4082
4103
  */
4083
4104
  closestPointXY(t, e, i, r) {
4084
- if (r < q(this.getExtent(), t, e))
4105
+ if (r < D(this.getExtent(), t, e))
4085
4106
  return r;
4086
4107
  const s = this.flatCoordinates, o = this.stride;
4087
4108
  for (let a = 0, l = s.length; a < l; a += o) {
4088
- const h = X(
4109
+ const h = Y(
4089
4110
  t,
4090
4111
  e,
4091
4112
  s[a],
@@ -4107,7 +4128,7 @@ class At extends Z {
4107
4128
  * @override
4108
4129
  */
4109
4130
  getCoordinates() {
4110
- return qt(
4131
+ return Dt(
4111
4132
  this.flatCoordinates,
4112
4133
  0,
4113
4134
  this.flatCoordinates.length,
@@ -4122,7 +4143,7 @@ class At extends Z {
4122
4143
  */
4123
4144
  getPoint(t) {
4124
4145
  const e = this.flatCoordinates.length / this.stride;
4125
- return t < 0 || e <= t ? null : new z(
4146
+ return t < 0 || e <= t ? null : new J(
4126
4147
  this.flatCoordinates.slice(
4127
4148
  t * this.stride,
4128
4149
  (t + 1) * this.stride
@@ -4138,7 +4159,7 @@ class At extends Z {
4138
4159
  getPoints() {
4139
4160
  const t = this.flatCoordinates, e = this.layout, i = this.stride, r = [];
4140
4161
  for (let s = 0, o = t.length; s < o; s += i) {
4141
- const a = new z(t.slice(s, s + i), e);
4162
+ const a = new J(t.slice(s, s + i), e);
4142
4163
  r.push(a);
4143
4164
  }
4144
4165
  return r;
@@ -4163,7 +4184,7 @@ class At extends Z {
4163
4184
  const e = this.flatCoordinates, i = this.stride;
4164
4185
  for (let r = 0, s = e.length; r < s; r += i) {
4165
4186
  const o = e[r], a = e[r + 1];
4166
- if (Ni(t, o, a))
4187
+ if (Oi(t, o, a))
4167
4188
  return !0;
4168
4189
  }
4169
4190
  return !1;
@@ -4176,7 +4197,7 @@ class At extends Z {
4176
4197
  * @override
4177
4198
  */
4178
4199
  setCoordinates(t, e) {
4179
- this.setLayout(e, t, 1), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = Jt(
4200
+ this.setLayout(e, t, 1), this.flatCoordinates || (this.flatCoordinates = []), this.flatCoordinates.length = Wt(
4180
4201
  this.flatCoordinates,
4181
4202
  0,
4182
4203
  t,
@@ -4184,7 +4205,7 @@ class At extends Z {
4184
4205
  ), this.changed();
4185
4206
  }
4186
4207
  }
4187
- class J extends Z {
4208
+ class W extends Z {
4188
4209
  /**
4189
4210
  * @param {!Array<Array<import("../coordinate.js").Coordinate>>|!Array<number>} coordinates
4190
4211
  * Array of linear rings that define the polygon. The first linear ring of the
@@ -4222,7 +4243,7 @@ class J extends Z {
4222
4243
  * @override
4223
4244
  */
4224
4245
  clone() {
4225
- const t = new J(
4246
+ const t = new W(
4226
4247
  this.flatCoordinates.slice(),
4227
4248
  this.layout,
4228
4249
  this.ends_.slice()
@@ -4238,7 +4259,7 @@ class J extends Z {
4238
4259
  * @override
4239
4260
  */
4240
4261
  closestPointXY(t, e, i, r) {
4241
- return r < q(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
4262
+ return r < D(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
4242
4263
  Le(
4243
4264
  this.flatCoordinates,
4244
4265
  0,
@@ -4246,7 +4267,7 @@ class J extends Z {
4246
4267
  this.stride,
4247
4268
  0
4248
4269
  )
4249
- ), this.maxDeltaRevision_ = this.getRevision()), Re(
4270
+ ), this.maxDeltaRevision_ = this.getRevision()), Te(
4250
4271
  this.flatCoordinates,
4251
4272
  0,
4252
4273
  this.ends_,
@@ -4266,7 +4287,7 @@ class J extends Z {
4266
4287
  * @override
4267
4288
  */
4268
4289
  containsXY(t, e) {
4269
- return Me(
4290
+ return Se(
4270
4291
  this.getOrientedFlatCoordinates(),
4271
4292
  0,
4272
4293
  this.ends_,
@@ -4281,7 +4302,7 @@ class J extends Z {
4281
4302
  * @api
4282
4303
  */
4283
4304
  getArea() {
4284
- return nn(
4305
+ return rn(
4285
4306
  this.getOrientedFlatCoordinates(),
4286
4307
  0,
4287
4308
  this.ends_,
@@ -4304,7 +4325,7 @@ class J extends Z {
4304
4325
  */
4305
4326
  getCoordinates(t) {
4306
4327
  let e;
4307
- return t !== void 0 ? (e = this.getOrientedFlatCoordinates().slice(), Ut(e, 0, this.ends_, this.stride, t)) : e = this.flatCoordinates, Te(e, 0, this.ends_, this.stride);
4328
+ return t !== void 0 ? (e = this.getOrientedFlatCoordinates().slice(), Xt(e, 0, this.ends_, this.stride, t)) : e = this.flatCoordinates, Ne(e, 0, this.ends_, this.stride);
4308
4329
  }
4309
4330
  /**
4310
4331
  * @return {Array<number>} Ends.
@@ -4317,8 +4338,8 @@ class J extends Z {
4317
4338
  */
4318
4339
  getFlatInteriorPoint() {
4319
4340
  if (this.flatInteriorPointRevision_ != this.getRevision()) {
4320
- const t = Bt(this.getExtent());
4321
- this.flatInteriorPoint_ = Se(
4341
+ const t = Vt(this.getExtent());
4342
+ this.flatInteriorPoint_ = $e(
4322
4343
  this.getOrientedFlatCoordinates(),
4323
4344
  0,
4324
4345
  this.ends_,
@@ -4339,7 +4360,7 @@ class J extends Z {
4339
4360
  * @api
4340
4361
  */
4341
4362
  getInteriorPoint() {
4342
- return new z(this.getFlatInteriorPoint(), "XYM");
4363
+ return new J(this.getFlatInteriorPoint(), "XYM");
4343
4364
  }
4344
4365
  /**
4345
4366
  * Return the number of rings of the polygon, this includes the exterior
@@ -4362,7 +4383,7 @@ class J extends Z {
4362
4383
  * @api
4363
4384
  */
4364
4385
  getLinearRing(t) {
4365
- return t < 0 || this.ends_.length <= t ? null : new vt(
4386
+ return t < 0 || this.ends_.length <= t ? null : new wt(
4366
4387
  this.flatCoordinates.slice(
4367
4388
  t === 0 ? 0 : this.ends_[t - 1],
4368
4389
  this.ends_[t]
@@ -4379,7 +4400,7 @@ class J extends Z {
4379
4400
  const t = this.layout, e = this.flatCoordinates, i = this.ends_, r = [];
4380
4401
  let s = 0;
4381
4402
  for (let o = 0, a = i.length; o < a; ++o) {
4382
- const l = i[o], h = new vt(
4403
+ const l = i[o], h = new wt(
4383
4404
  e.slice(s, l),
4384
4405
  t
4385
4406
  );
@@ -4393,7 +4414,7 @@ class J extends Z {
4393
4414
  getOrientedFlatCoordinates() {
4394
4415
  if (this.orientedRevision_ != this.getRevision()) {
4395
4416
  const t = this.flatCoordinates;
4396
- Ae(t, 0, this.ends_, this.stride) ? this.orientedFlatCoordinates_ = t : (this.orientedFlatCoordinates_ = t.slice(), this.orientedFlatCoordinates_.length = Ut(
4417
+ Fe(t, 0, this.ends_, this.stride) ? this.orientedFlatCoordinates_ = t : (this.orientedFlatCoordinates_ = t.slice(), this.orientedFlatCoordinates_.length = Xt(
4397
4418
  this.orientedFlatCoordinates_,
4398
4419
  0,
4399
4420
  this.ends_,
@@ -4413,7 +4434,7 @@ class J extends Z {
4413
4434
  */
4414
4435
  getSimplifiedGeometryInternal(t) {
4415
4436
  const e = [], i = [];
4416
- return e.length = Fe(
4437
+ return e.length = Ge(
4417
4438
  this.flatCoordinates,
4418
4439
  0,
4419
4440
  this.ends_,
@@ -4422,7 +4443,7 @@ class J extends Z {
4422
4443
  e,
4423
4444
  0,
4424
4445
  i
4425
- ), new J(e, "XY", i);
4446
+ ), new W(e, "XY", i);
4426
4447
  }
4427
4448
  /**
4428
4449
  * Get the type of this geometry.
@@ -4441,7 +4462,7 @@ class J extends Z {
4441
4462
  * @override
4442
4463
  */
4443
4464
  intersectsExtent(t) {
4444
- return sn(
4465
+ return on(
4445
4466
  this.getOrientedFlatCoordinates(),
4446
4467
  0,
4447
4468
  this.ends_,
@@ -4458,7 +4479,7 @@ class J extends Z {
4458
4479
  */
4459
4480
  setCoordinates(t, e) {
4460
4481
  this.setLayout(e, t, 2), this.flatCoordinates || (this.flatCoordinates = []);
4461
- const i = $t(
4482
+ const i = At(
4462
4483
  this.flatCoordinates,
4463
4484
  0,
4464
4485
  t,
@@ -4468,7 +4489,7 @@ class J extends Z {
4468
4489
  this.flatCoordinates.length = i.length === 0 ? 0 : i[i.length - 1], this.changed();
4469
4490
  }
4470
4491
  }
4471
- class wt extends Z {
4492
+ class bt extends Z {
4472
4493
  /**
4473
4494
  * @param {Array<Array<Array<import("../coordinate.js").Coordinate>>|Polygon>|Array<number>} coordinates Coordinates.
4474
4495
  * For internal use, flat coordinates in combination with `layout` and `endss` are also accepted.
@@ -4483,7 +4504,7 @@ class wt extends Z {
4483
4504
  ), s = [], o = [];
4484
4505
  for (let a = 0, l = r.length; a < l; ++a) {
4485
4506
  const h = r[a], c = s.length, u = h.getEnds();
4486
- for (let d = 0, g = u.length; d < g; ++d)
4507
+ for (let d = 0, f = u.length; d < f; ++d)
4487
4508
  u[d] += c;
4488
4509
  A(s, h.getFlatCoordinates()), o.push(u);
4489
4510
  }
@@ -4526,7 +4547,7 @@ class wt extends Z {
4526
4547
  const t = this.endss_.length, e = new Array(t);
4527
4548
  for (let r = 0; r < t; ++r)
4528
4549
  e[r] = this.endss_[r].slice();
4529
- const i = new wt(
4550
+ const i = new bt(
4530
4551
  this.flatCoordinates.slice(),
4531
4552
  this.layout,
4532
4553
  e
@@ -4542,15 +4563,15 @@ class wt extends Z {
4542
4563
  * @override
4543
4564
  */
4544
4565
  closestPointXY(t, e, i, r) {
4545
- return r < q(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
4546
- hs(
4566
+ return r < D(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
4567
+ ds(
4547
4568
  this.flatCoordinates,
4548
4569
  0,
4549
4570
  this.endss_,
4550
4571
  this.stride,
4551
4572
  0
4552
4573
  )
4553
- ), this.maxDeltaRevision_ = this.getRevision()), cs(
4574
+ ), this.maxDeltaRevision_ = this.getRevision()), fs(
4554
4575
  this.getOrientedFlatCoordinates(),
4555
4576
  0,
4556
4577
  this.endss_,
@@ -4570,7 +4591,7 @@ class wt extends Z {
4570
4591
  * @override
4571
4592
  */
4572
4593
  containsXY(t, e) {
4573
- return is(
4594
+ return ss(
4574
4595
  this.getOrientedFlatCoordinates(),
4575
4596
  0,
4576
4597
  this.endss_,
@@ -4585,7 +4606,7 @@ class wt extends Z {
4585
4606
  * @api
4586
4607
  */
4587
4608
  getArea() {
4588
- return ls(
4609
+ return us(
4589
4610
  this.getOrientedFlatCoordinates(),
4590
4611
  0,
4591
4612
  this.endss_,
@@ -4608,13 +4629,13 @@ class wt extends Z {
4608
4629
  */
4609
4630
  getCoordinates(t) {
4610
4631
  let e;
4611
- return t !== void 0 ? (e = this.getOrientedFlatCoordinates().slice(), ue(
4632
+ return t !== void 0 ? (e = this.getOrientedFlatCoordinates().slice(), de(
4612
4633
  e,
4613
4634
  0,
4614
4635
  this.endss_,
4615
4636
  this.stride,
4616
4637
  t
4617
- )) : e = this.flatCoordinates, us(
4638
+ )) : e = this.flatCoordinates, gs(
4618
4639
  e,
4619
4640
  0,
4620
4641
  this.endss_,
@@ -4632,13 +4653,13 @@ class wt extends Z {
4632
4653
  */
4633
4654
  getFlatInteriorPoints() {
4634
4655
  if (this.flatInteriorPointsRevision_ != this.getRevision()) {
4635
- const t = Di(
4656
+ const t = Ki(
4636
4657
  this.flatCoordinates,
4637
4658
  0,
4638
4659
  this.endss_,
4639
4660
  this.stride
4640
4661
  );
4641
- this.flatInteriorPoints_ = Ki(
4662
+ this.flatInteriorPoints_ = Qi(
4642
4663
  this.getOrientedFlatCoordinates(),
4643
4664
  0,
4644
4665
  this.endss_,
@@ -4658,7 +4679,7 @@ class wt extends Z {
4658
4679
  * @api
4659
4680
  */
4660
4681
  getInteriorPoints() {
4661
- return new At(this.getFlatInteriorPoints().slice(), "XYM");
4682
+ return new Ft(this.getFlatInteriorPoints().slice(), "XYM");
4662
4683
  }
4663
4684
  /**
4664
4685
  * @return {Array<number>} Oriented flat coordinates.
@@ -4666,7 +4687,7 @@ class wt extends Z {
4666
4687
  getOrientedFlatCoordinates() {
4667
4688
  if (this.orientedRevision_ != this.getRevision()) {
4668
4689
  const t = this.flatCoordinates;
4669
- Qi(t, 0, this.endss_, this.stride) ? this.orientedFlatCoordinates_ = t : (this.orientedFlatCoordinates_ = t.slice(), this.orientedFlatCoordinates_.length = ue(
4690
+ tn(t, 0, this.endss_, this.stride) ? this.orientedFlatCoordinates_ = t : (this.orientedFlatCoordinates_ = t.slice(), this.orientedFlatCoordinates_.length = de(
4670
4691
  this.orientedFlatCoordinates_,
4671
4692
  0,
4672
4693
  this.endss_,
@@ -4686,7 +4707,7 @@ class wt extends Z {
4686
4707
  */
4687
4708
  getSimplifiedGeometryInternal(t) {
4688
4709
  const e = [], i = [];
4689
- return e.length = as(
4710
+ return e.length = cs(
4690
4711
  this.flatCoordinates,
4691
4712
  0,
4692
4713
  this.endss_,
@@ -4695,7 +4716,7 @@ class wt extends Z {
4695
4716
  e,
4696
4717
  0,
4697
4718
  i
4698
- ), new wt(e, "XY", i);
4719
+ ), new bt(e, "XY", i);
4699
4720
  }
4700
4721
  /**
4701
4722
  * Return the polygon at the specified index.
@@ -4717,7 +4738,7 @@ class wt extends Z {
4717
4738
  if (e !== 0)
4718
4739
  for (let s = 0, o = i.length; s < o; ++s)
4719
4740
  i[s] -= e;
4720
- return new J(
4741
+ return new W(
4721
4742
  this.flatCoordinates.slice(e, r),
4722
4743
  this.layout,
4723
4744
  i
@@ -4736,7 +4757,7 @@ class wt extends Z {
4736
4757
  if (s !== 0)
4737
4758
  for (let u = 0, d = l.length; u < d; ++u)
4738
4759
  l[u] -= s;
4739
- const c = new J(
4760
+ const c = new W(
4740
4761
  e.slice(s, h),
4741
4762
  t,
4742
4763
  l
@@ -4762,7 +4783,7 @@ class wt extends Z {
4762
4783
  * @override
4763
4784
  */
4764
4785
  intersectsExtent(t) {
4765
- return fs(
4786
+ return ms(
4766
4787
  this.getOrientedFlatCoordinates(),
4767
4788
  0,
4768
4789
  this.endss_,
@@ -4795,8 +4816,8 @@ class wt extends Z {
4795
4816
  this.changed();
4796
4817
  }
4797
4818
  }
4798
- const mi = zi();
4799
- class W {
4819
+ const _i = Ji();
4820
+ class q {
4800
4821
  /**
4801
4822
  * @param {Type} type Geometry type.
4802
4823
  * @param {Array<number>} flatCoordinates Flat coordinates. These always need
@@ -4824,7 +4845,7 @@ class W {
4824
4845
  * @api
4825
4846
  */
4826
4847
  getExtent() {
4827
- return this.extent_ || (this.extent_ = this.type_ === "Point" ? ki(this.flatCoordinates_) : Ce(
4848
+ return this.extent_ || (this.extent_ = this.type_ === "Point" ? ji(this.flatCoordinates_) : Ce(
4828
4849
  this.flatCoordinates_,
4829
4850
  0,
4830
4851
  this.flatCoordinates_.length,
@@ -4836,8 +4857,8 @@ class W {
4836
4857
  */
4837
4858
  getFlatInteriorPoint() {
4838
4859
  if (!this.flatInteriorPoints_) {
4839
- const t = Bt(this.getExtent());
4840
- this.flatInteriorPoints_ = Se(
4860
+ const t = Vt(this.getExtent());
4861
+ this.flatInteriorPoints_ = $e(
4841
4862
  this.flatCoordinates_,
4842
4863
  0,
4843
4864
  this.ends_,
@@ -4853,8 +4874,8 @@ class W {
4853
4874
  */
4854
4875
  getFlatInteriorPoints() {
4855
4876
  if (!this.flatInteriorPoints_) {
4856
- const t = ss(this.flatCoordinates_, this.ends_), e = Di(this.flatCoordinates_, 0, t, 2);
4857
- this.flatInteriorPoints_ = Ki(
4877
+ const t = ls(this.flatCoordinates_, this.ends_), e = Ki(this.flatCoordinates_, 0, t, 2);
4878
+ this.flatInteriorPoints_ = Qi(
4858
4879
  this.flatCoordinates_,
4859
4880
  0,
4860
4881
  t,
@@ -4868,7 +4889,7 @@ class W {
4868
4889
  * @return {Array<number>} Flat midpoint.
4869
4890
  */
4870
4891
  getFlatMidpoint() {
4871
- return this.flatMidpoints_ || (this.flatMidpoints_ = Ht(
4892
+ return this.flatMidpoints_ || (this.flatMidpoints_ = Ut(
4872
4893
  this.flatCoordinates_,
4873
4894
  0,
4874
4895
  this.flatCoordinates_.length,
@@ -4889,7 +4910,7 @@ class W {
4889
4910
  this.ends_
4890
4911
  );
4891
4912
  for (let r = 0, s = i.length; r < s; ++r) {
4892
- const o = i[r], a = Ht(t, e, o, 2, 0.5);
4913
+ const o = i[r], a = Ut(t, e, o, 2, 0.5);
4893
4914
  A(this.flatMidpoints_, a), e = o;
4894
4915
  }
4895
4916
  }
@@ -4980,9 +5001,9 @@ class W {
4980
5001
  t = x(t);
4981
5002
  const e = t.getExtent(), i = t.getWorldExtent();
4982
5003
  if (e && i) {
4983
- const r = Ot(i) / Ot(e);
4984
- Ji(
4985
- mi,
5004
+ const r = kt(i) / kt(e);
5005
+ Wi(
5006
+ _i,
4986
5007
  i[0],
4987
5008
  i[3],
4988
5009
  r,
@@ -4990,12 +5011,12 @@ class W {
4990
5011
  0,
4991
5012
  0,
4992
5013
  0
4993
- ), Wi(
5014
+ ), qi(
4994
5015
  this.flatCoordinates_,
4995
5016
  0,
4996
5017
  this.flatCoordinates_.length,
4997
5018
  2,
4998
- mi,
5019
+ _i,
4999
5020
  this.flatCoordinates_
5000
5021
  );
5001
5022
  }
@@ -5015,7 +5036,7 @@ class W {
5015
5036
  */
5016
5037
  clone() {
5017
5038
  var t;
5018
- return new W(
5039
+ return new q(
5019
5040
  this.type_,
5020
5041
  this.flatCoordinates_.slice(),
5021
5042
  (t = this.ends_) == null ? void 0 : t.slice(),
@@ -5035,7 +5056,7 @@ class W {
5035
5056
  * @return {RenderFeature} This render feature.
5036
5057
  */
5037
5058
  enableSimplifyTransformed() {
5038
- return this.simplifyTransformed = Gi((t, e) => {
5059
+ return this.simplifyTransformed = Ii((t, e) => {
5039
5060
  if (t === this.squaredTolerance_)
5040
5061
  return this.simplifiedGeometry_;
5041
5062
  this.simplifiedGeometry_ = this.clone(), e && this.simplifiedGeometry_.applyTransform(e);
@@ -5043,7 +5064,7 @@ class W {
5043
5064
  let r;
5044
5065
  switch (this.type_) {
5045
5066
  case "LineString":
5046
- i.length = Wt(
5067
+ i.length = qt(
5047
5068
  i,
5048
5069
  0,
5049
5070
  this.simplifiedGeometry_.flatCoordinates_.length,
@@ -5054,7 +5075,7 @@ class W {
5054
5075
  ), r = [i.length];
5055
5076
  break;
5056
5077
  case "MultiLineString":
5057
- r = [], i.length = tn(
5078
+ r = [], i.length = en(
5058
5079
  i,
5059
5080
  0,
5060
5081
  this.simplifiedGeometry_.ends_,
@@ -5066,7 +5087,7 @@ class W {
5066
5087
  );
5067
5088
  break;
5068
5089
  case "Polygon":
5069
- r = [], i.length = Fe(
5090
+ r = [], i.length = Ge(
5070
5091
  i,
5071
5092
  0,
5072
5093
  this.simplifiedGeometry_.ends_,
@@ -5078,7 +5099,7 @@ class W {
5078
5099
  );
5079
5100
  break;
5080
5101
  }
5081
- return r && (this.simplifiedGeometry_ = new W(
5102
+ return r && (this.simplifiedGeometry_ = new q(
5082
5103
  this.type_,
5083
5104
  i,
5084
5105
  r,
@@ -5089,11 +5110,11 @@ class W {
5089
5110
  }), this;
5090
5111
  }
5091
5112
  }
5092
- W.prototype.getFlatCoordinates = W.prototype.getOrientedFlatCoordinates;
5093
- class on {
5113
+ q.prototype.getFlatCoordinates = q.prototype.getOrientedFlatCoordinates;
5114
+ class ln {
5094
5115
  constructor() {
5095
5116
  this.dataProjection = void 0, this.defaultFeatureProjection = void 0, this.featureClass = /** @type {FeatureToFeatureClass<FeatureType>} */
5096
- lt, this.supportedMediaTypes = null;
5117
+ ht, this.supportedMediaTypes = null;
5097
5118
  }
5098
5119
  /**
5099
5120
  * Adds the data projection to the read options.
@@ -5215,14 +5236,14 @@ class on {
5215
5236
  return y();
5216
5237
  }
5217
5238
  }
5218
- function bt(n, t, e) {
5239
+ function Et(n, t, e) {
5219
5240
  const i = e ? x(e.featureProjection) : null, r = e ? x(e.dataProjection) : null;
5220
5241
  let s = n;
5221
- if (i && r && !Wr(i, r)) {
5242
+ if (i && r && !Zr(i, r)) {
5222
5243
  t && (s = /** @type {T} */
5223
5244
  n.clone());
5224
5245
  const o = t ? i : r, a = t ? r : i;
5225
- o.getUnits() === "tile-pixels" ? s.transform(o, a) : s.applyTransform(he(o, a));
5246
+ o.getUnits() === "tile-pixels" ? s.transform(o, a) : s.applyTransform(ce(o, a));
5226
5247
  }
5227
5248
  if (t && e && /** @type {WriteOptions} */
5228
5249
  e.decimals !== void 0) {
@@ -5240,32 +5261,32 @@ function bt(n, t, e) {
5240
5261
  }
5241
5262
  return s;
5242
5263
  }
5243
- const ys = {
5244
- Point: z,
5245
- LineString: V,
5246
- Polygon: J,
5247
- MultiPoint: At,
5264
+ const _s = {
5265
+ Point: J,
5266
+ LineString: z,
5267
+ Polygon: W,
5268
+ MultiPoint: Ft,
5248
5269
  MultiLineString: Ct,
5249
- MultiPolygon: wt
5270
+ MultiPolygon: bt
5250
5271
  };
5251
- function ms(n, t, e) {
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);
5272
+ function vs(n, t, e) {
5273
+ return Array.isArray(t[0]) ? (tn(n, 0, t, e) || (n = n.slice(), de(n, 0, t, e)), n) : (Fe(n, 0, t, e) || (n = n.slice(), Xt(n, 0, t, e)), n);
5253
5274
  }
5254
- function an(n, t) {
5275
+ function hn(n, t) {
5255
5276
  var s;
5256
5277
  const e = n.geometry;
5257
5278
  if (!e)
5258
5279
  return [];
5259
5280
  if (Array.isArray(e))
5260
- return e.map((o) => an({ ...n, geometry: o })).flat();
5281
+ return e.map((o) => hn({ ...n, geometry: o })).flat();
5261
5282
  const i = e.type === "MultiPolygon" ? "Polygon" : e.type;
5262
5283
  if (i === "GeometryCollection" || i === "Circle")
5263
5284
  throw new Error("Unsupported geometry type: " + i);
5264
5285
  const r = e.layout.length;
5265
- return bt(
5266
- new W(
5286
+ return Et(
5287
+ new q(
5267
5288
  i,
5268
- i === "Polygon" ? ms(e.flatCoordinates, e.ends, r) : e.flatCoordinates,
5289
+ i === "Polygon" ? vs(e.flatCoordinates, e.ends, r) : e.flatCoordinates,
5269
5290
  (s = e.ends) == null ? void 0 : s.flat(),
5270
5291
  r,
5271
5292
  n.properties || {},
@@ -5275,23 +5296,23 @@ function an(n, t) {
5275
5296
  t
5276
5297
  );
5277
5298
  }
5278
- function Ne(n, t) {
5299
+ function Oe(n, t) {
5279
5300
  if (!n)
5280
5301
  return null;
5281
5302
  if (Array.isArray(n)) {
5282
5303
  const i = n.map(
5283
- (r) => Ne(r, t)
5304
+ (r) => Oe(r, t)
5284
5305
  );
5285
- return new B(i);
5306
+ return new V(i);
5286
5307
  }
5287
- const e = ys[n.type];
5288
- return bt(
5308
+ const e = _s[n.type];
5309
+ return Et(
5289
5310
  new e(n.flatCoordinates, n.layout || "XY", n.ends),
5290
5311
  !1,
5291
5312
  t
5292
5313
  );
5293
5314
  }
5294
- class _s extends on {
5315
+ class ws extends ln {
5295
5316
  constructor() {
5296
5317
  super();
5297
5318
  }
@@ -5314,7 +5335,7 @@ class _s extends on {
5314
5335
  */
5315
5336
  readFeature(t, e) {
5316
5337
  return this.readFeatureFromObject(
5317
- Gt(t),
5338
+ It(t),
5318
5339
  this.getReadOptions(t, e)
5319
5340
  );
5320
5341
  }
@@ -5330,7 +5351,7 @@ class _s extends on {
5330
5351
  */
5331
5352
  readFeatures(t, e) {
5332
5353
  return this.readFeaturesFromObject(
5333
- Gt(t),
5354
+ It(t),
5334
5355
  this.getReadOptions(t, e)
5335
5356
  );
5336
5357
  }
@@ -5365,7 +5386,7 @@ class _s extends on {
5365
5386
  */
5366
5387
  readGeometry(t, e) {
5367
5388
  return this.readGeometryFromObject(
5368
- Gt(t),
5389
+ It(t),
5369
5390
  this.getReadOptions(t, e)
5370
5391
  );
5371
5392
  }
@@ -5388,7 +5409,7 @@ class _s extends on {
5388
5409
  * @override
5389
5410
  */
5390
5411
  readProjection(t) {
5391
- return this.readProjectionFromObject(Gt(t));
5412
+ return this.readProjectionFromObject(It(t));
5392
5413
  }
5393
5414
  /**
5394
5415
  * @abstract
@@ -5463,14 +5484,14 @@ class _s extends on {
5463
5484
  return y();
5464
5485
  }
5465
5486
  }
5466
- function Gt(n) {
5487
+ function It(n) {
5467
5488
  if (typeof n == "string") {
5468
5489
  const t = JSON.parse(n);
5469
5490
  return t || null;
5470
5491
  }
5471
5492
  return n !== null ? n : null;
5472
5493
  }
5473
- class vs extends _s {
5494
+ class Cs extends ws {
5474
5495
  /**
5475
5496
  * @param {Options<FeatureType>} [options] Options.
5476
5497
  */
@@ -5500,11 +5521,11 @@ class vs extends _s {
5500
5521
  ),
5501
5522
  properties: null
5502
5523
  };
5503
- const r = Oe(i.geometry);
5504
- if (this.featureClass === W)
5524
+ const r = ke(i.geometry);
5525
+ if (this.featureClass === q)
5505
5526
  return (
5506
5527
  /** @type {FeatureType|Array<FeatureType>} */
5507
- an(
5528
+ hn(
5508
5529
  {
5509
5530
  geometry: r,
5510
5531
  id: i.id,
@@ -5513,8 +5534,8 @@ class vs extends _s {
5513
5534
  e
5514
5535
  )
5515
5536
  );
5516
- const s = new lt();
5517
- return this.geometryName_ ? s.setGeometryName(this.geometryName_) : this.extractGeometryName_ && i.geometry_name && s.setGeometryName(i.geometry_name), s.setGeometry(Ne(r, e)), "id" in i && s.setId(i.id), i.properties && s.setProperties(i.properties, !0), /** @type {FeatureType|Array<FeatureType>} */
5537
+ const s = new ht();
5538
+ return this.geometryName_ ? s.setGeometryName(this.geometryName_) : this.extractGeometryName_ && i.geometry_name && s.setGeometryName(i.geometry_name), s.setGeometry(Oe(r, e)), "id" in i && s.setId(i.id), i.properties && s.setProperties(i.properties, !0), /** @type {FeatureType|Array<FeatureType>} */
5518
5539
  s;
5519
5540
  }
5520
5541
  /**
@@ -5559,7 +5580,7 @@ class vs extends _s {
5559
5580
  * @override
5560
5581
  */
5561
5582
  readGeometryFromObject(t, e) {
5562
- return Cs(t, e);
5583
+ return bs(t, e);
5563
5584
  }
5564
5585
  /**
5565
5586
  * @param {Object} object Object.
@@ -5603,7 +5624,7 @@ class vs extends _s {
5603
5624
  if (r !== void 0 && (i.id = r), !t.hasProperties())
5604
5625
  return i;
5605
5626
  const s = t.getProperties(), o = t.getGeometry();
5606
- return o && (i.geometry = de(o, e), delete s[t.getGeometryName()]), Ii(s) || (i.properties = s), i;
5627
+ return o && (i.geometry = fe(o, e), delete s[t.getGeometryName()]), Ri(s) || (i.properties = s), i;
5607
5628
  }
5608
5629
  /**
5609
5630
  * Encode an array of features as a GeoJSON object.
@@ -5634,58 +5655,58 @@ class vs extends _s {
5634
5655
  * @override
5635
5656
  */
5636
5657
  writeGeometryObject(t, e) {
5637
- return de(t, this.adaptOptions(e));
5658
+ return fe(t, this.adaptOptions(e));
5638
5659
  }
5639
5660
  }
5640
- function Oe(n, t) {
5661
+ function ke(n, t) {
5641
5662
  if (!n)
5642
5663
  return null;
5643
5664
  let e;
5644
5665
  switch (n.type) {
5645
5666
  case "Point": {
5646
- e = bs(
5667
+ e = xs(
5647
5668
  /** @type {GeoJSONPoint} */
5648
5669
  n
5649
5670
  );
5650
5671
  break;
5651
5672
  }
5652
5673
  case "LineString": {
5653
- e = Es(
5674
+ e = Ps(
5654
5675
  /** @type {GeoJSONLineString} */
5655
5676
  n
5656
5677
  );
5657
5678
  break;
5658
5679
  }
5659
5680
  case "Polygon": {
5660
- e = Ss(
5681
+ e = As(
5661
5682
  /** @type {GeoJSONPolygon} */
5662
5683
  n
5663
5684
  );
5664
5685
  break;
5665
5686
  }
5666
5687
  case "MultiPoint": {
5667
- e = Ps(
5688
+ e = Ss(
5668
5689
  /** @type {GeoJSONMultiPoint} */
5669
5690
  n
5670
5691
  );
5671
5692
  break;
5672
5693
  }
5673
5694
  case "MultiLineString": {
5674
- e = xs(
5695
+ e = Ms(
5675
5696
  /** @type {GeoJSONMultiLineString} */
5676
5697
  n
5677
5698
  );
5678
5699
  break;
5679
5700
  }
5680
5701
  case "MultiPolygon": {
5681
- e = Ms(
5702
+ e = $s(
5682
5703
  /** @type {GeoJSONMultiPolygon} */
5683
5704
  n
5684
5705
  );
5685
5706
  break;
5686
5707
  }
5687
5708
  case "GeometryCollection": {
5688
- e = ws(
5709
+ e = Es(
5689
5710
  /** @type {GeoJSONGeometryCollection} */
5690
5711
  n
5691
5712
  );
@@ -5696,59 +5717,59 @@ function Oe(n, t) {
5696
5717
  }
5697
5718
  return e;
5698
5719
  }
5699
- function Cs(n, t) {
5700
- const e = Oe(n);
5701
- return Ne(e, t);
5720
+ function bs(n, t) {
5721
+ const e = ke(n);
5722
+ return Oe(e, t);
5702
5723
  }
5703
- function ws(n, t) {
5724
+ function Es(n, t) {
5704
5725
  return n.geometries.map(
5705
5726
  /**
5706
5727
  * @param {GeoJSONGeometry} geometry Geometry.
5707
5728
  * @return {import("./Feature.js").GeometryObject} geometry Geometry.
5708
5729
  */
5709
5730
  function(i) {
5710
- return Oe(i);
5731
+ return ke(i);
5711
5732
  }
5712
5733
  );
5713
5734
  }
5714
- function bs(n) {
5735
+ function xs(n) {
5715
5736
  const t = n.coordinates;
5716
5737
  return {
5717
5738
  type: "Point",
5718
5739
  flatCoordinates: t,
5719
- layout: D(t.length)
5740
+ layout: K(t.length)
5720
5741
  };
5721
5742
  }
5722
- function Es(n) {
5743
+ function Ps(n) {
5723
5744
  var i;
5724
5745
  const t = n.coordinates, e = t.flat();
5725
5746
  return {
5726
5747
  type: "LineString",
5727
5748
  flatCoordinates: e,
5728
5749
  ends: [e.length],
5729
- layout: D(((i = t[0]) == null ? void 0 : i.length) || 2)
5750
+ layout: K(((i = t[0]) == null ? void 0 : i.length) || 2)
5730
5751
  };
5731
5752
  }
5732
- function xs(n) {
5753
+ function Ms(n) {
5733
5754
  var s, o;
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);
5755
+ const t = n.coordinates, e = ((o = (s = t[0]) == null ? void 0 : s[0]) == null ? void 0 : o.length) || 2, i = [], r = At(i, 0, t, e);
5735
5756
  return {
5736
5757
  type: "MultiLineString",
5737
5758
  flatCoordinates: i,
5738
5759
  ends: r,
5739
- layout: D(e)
5760
+ layout: K(e)
5740
5761
  };
5741
5762
  }
5742
- function Ps(n) {
5763
+ function Ss(n) {
5743
5764
  var e;
5744
5765
  const t = n.coordinates;
5745
5766
  return {
5746
5767
  type: "MultiPoint",
5747
5768
  flatCoordinates: t.flat(),
5748
- layout: D(((e = t[0]) == null ? void 0 : e.length) || 2)
5769
+ layout: K(((e = t[0]) == null ? void 0 : e.length) || 2)
5749
5770
  };
5750
5771
  }
5751
- function Ms(n) {
5772
+ function $s(n) {
5752
5773
  var s, o;
5753
5774
  const t = n.coordinates, e = [], i = ((o = (s = t[0]) == null ? void 0 : s[0]) == null ? void 0 : o[0].length) || 2, r = Zi(
5754
5775
  e,
@@ -5760,40 +5781,40 @@ function Ms(n) {
5760
5781
  type: "MultiPolygon",
5761
5782
  flatCoordinates: e,
5762
5783
  ends: r,
5763
- layout: D(i)
5784
+ layout: K(i)
5764
5785
  };
5765
5786
  }
5766
- function Ss(n) {
5787
+ function As(n) {
5767
5788
  var s, o;
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);
5789
+ const t = n.coordinates, e = [], i = (o = (s = t[0]) == null ? void 0 : s[0]) == null ? void 0 : o.length, r = At(e, 0, t, i);
5769
5790
  return {
5770
5791
  type: "Polygon",
5771
5792
  flatCoordinates: e,
5772
5793
  ends: r,
5773
- layout: D(i)
5794
+ layout: K(i)
5774
5795
  };
5775
5796
  }
5776
- function de(n, t) {
5777
- n = bt(n, !0, t);
5797
+ function fe(n, t) {
5798
+ n = Et(n, !0, t);
5778
5799
  const e = n.getType();
5779
5800
  let i;
5780
5801
  switch (e) {
5781
5802
  case "Point": {
5782
- i = Is(
5803
+ i = Ts(
5783
5804
  /** @type {import("../geom/Point.js").default} */
5784
5805
  n
5785
5806
  );
5786
5807
  break;
5787
5808
  }
5788
5809
  case "LineString": {
5789
- i = As(
5810
+ i = Gs(
5790
5811
  /** @type {import("../geom/LineString.js").default} */
5791
5812
  n
5792
5813
  );
5793
5814
  break;
5794
5815
  }
5795
5816
  case "Polygon": {
5796
- i = Rs(
5817
+ i = Ns(
5797
5818
  /** @type {import("../geom/Polygon.js").default} */
5798
5819
  n,
5799
5820
  t
@@ -5801,21 +5822,21 @@ function de(n, t) {
5801
5822
  break;
5802
5823
  }
5803
5824
  case "MultiPoint": {
5804
- i = Gs(
5825
+ i = Ls(
5805
5826
  /** @type {import("../geom/MultiPoint.js").default} */
5806
5827
  n
5807
5828
  );
5808
5829
  break;
5809
5830
  }
5810
5831
  case "MultiLineString": {
5811
- i = Fs(
5832
+ i = Is(
5812
5833
  /** @type {import("../geom/MultiLineString.js").default} */
5813
5834
  n
5814
5835
  );
5815
5836
  break;
5816
5837
  }
5817
5838
  case "MultiPolygon": {
5818
- i = Ls(
5839
+ i = Rs(
5819
5840
  /** @type {import("../geom/MultiPolygon.js").default} */
5820
5841
  n,
5821
5842
  t
@@ -5823,7 +5844,7 @@ function de(n, t) {
5823
5844
  break;
5824
5845
  }
5825
5846
  case "GeometryCollection": {
5826
- i = $s(
5847
+ i = Fs(
5827
5848
  /** @type {import("../geom/GeometryCollection.js").default} */
5828
5849
  n,
5829
5850
  t
@@ -5842,54 +5863,54 @@ function de(n, t) {
5842
5863
  }
5843
5864
  return i;
5844
5865
  }
5845
- function $s(n, t) {
5866
+ function Fs(n, t) {
5846
5867
  return t = Object.assign({}, t), delete t.featureProjection, {
5847
5868
  type: "GeometryCollection",
5848
5869
  geometries: n.getGeometriesArray().map(function(i) {
5849
- return de(i, t);
5870
+ return fe(i, t);
5850
5871
  })
5851
5872
  };
5852
5873
  }
5853
- function As(n, t) {
5874
+ function Gs(n, t) {
5854
5875
  return {
5855
5876
  type: "LineString",
5856
5877
  coordinates: n.getCoordinates()
5857
5878
  };
5858
5879
  }
5859
- function Fs(n, t) {
5880
+ function Is(n, t) {
5860
5881
  return {
5861
5882
  type: "MultiLineString",
5862
5883
  coordinates: n.getCoordinates()
5863
5884
  };
5864
5885
  }
5865
- function Gs(n, t) {
5886
+ function Ls(n, t) {
5866
5887
  return {
5867
5888
  type: "MultiPoint",
5868
5889
  coordinates: n.getCoordinates()
5869
5890
  };
5870
5891
  }
5871
- function Ls(n, t) {
5892
+ function Rs(n, t) {
5872
5893
  let e;
5873
5894
  return t && (e = t.rightHanded), {
5874
5895
  type: "MultiPolygon",
5875
5896
  coordinates: n.getCoordinates(e)
5876
5897
  };
5877
5898
  }
5878
- function Is(n, t) {
5899
+ function Ts(n, t) {
5879
5900
  return {
5880
5901
  type: "Point",
5881
5902
  coordinates: n.getCoordinates()
5882
5903
  };
5883
5904
  }
5884
- function Rs(n, t) {
5905
+ function Ns(n, t) {
5885
5906
  let e;
5886
5907
  return t && (e = t.rightHanded), {
5887
5908
  type: "Polygon",
5888
5909
  coordinates: n.getCoordinates(e)
5889
5910
  };
5890
5911
  }
5891
- const Ts = (n, t) => new vs().writeFeaturesObject(n, t);
5892
- class Ns extends on {
5912
+ const Os = (n, t) => new Cs().writeFeaturesObject(n, t);
5913
+ class ks extends ln {
5893
5914
  constructor() {
5894
5915
  super();
5895
5916
  }
@@ -6064,14 +6085,14 @@ class Ns extends on {
6064
6085
  function Lt(n) {
6065
6086
  return typeof n == "string" ? n : "";
6066
6087
  }
6067
- const Os = {
6068
- POINT: z,
6069
- LINESTRING: V,
6070
- POLYGON: J,
6071
- MULTIPOINT: At,
6088
+ const js = {
6089
+ POINT: J,
6090
+ LINESTRING: z,
6091
+ POLYGON: W,
6092
+ MULTIPOINT: Ft,
6072
6093
  MULTILINESTRING: Ct,
6073
- MULTIPOLYGON: wt
6074
- }, ln = "EMPTY", hn = "Z", cn = "M", ks = "ZM", m = {
6094
+ MULTIPOLYGON: bt
6095
+ }, cn = "EMPTY", un = "Z", dn = "M", Hs = "ZM", m = {
6075
6096
  START: 0,
6076
6097
  TEXT: 1,
6077
6098
  LEFT_PAREN: 2,
@@ -6079,7 +6100,7 @@ const Os = {
6079
6100
  NUMBER: 4,
6080
6101
  COMMA: 5,
6081
6102
  EOF: 6
6082
- }, js = {
6103
+ }, Us = {
6083
6104
  Point: "POINT",
6084
6105
  LineString: "LINESTRING",
6085
6106
  Polygon: "POLYGON",
@@ -6089,7 +6110,7 @@ const Os = {
6089
6110
  GeometryCollection: "GEOMETRYCOLLECTION",
6090
6111
  Circle: "CIRCLE"
6091
6112
  };
6092
- class Hs {
6113
+ class Xs {
6093
6114
  /**
6094
6115
  * @param {string} wkt WKT string.
6095
6116
  */
@@ -6187,7 +6208,7 @@ class Hs {
6187
6208
  return this.wkt.substring(e, this.index_--).toUpperCase();
6188
6209
  }
6189
6210
  }
6190
- class Us {
6211
+ class Ys {
6191
6212
  /**
6192
6213
  * @param {Lexer} lexer The lexer.
6193
6214
  */
@@ -6238,7 +6259,7 @@ class Us {
6238
6259
  const e = this.token_;
6239
6260
  if (this.isTokenType(m.TEXT)) {
6240
6261
  const i = e.value;
6241
- i === hn ? t = "XYZ" : i === cn ? t = "XYM" : i === ks && (t = "XYZM"), t !== "XY" && this.consume_();
6262
+ i === un ? t = "XYZ" : i === dn ? t = "XYM" : i === Hs && (t = "XYZM"), t !== "XY" && this.consume_();
6242
6263
  }
6243
6264
  return t;
6244
6265
  }
@@ -6395,7 +6416,7 @@ class Us {
6395
6416
  * @private
6396
6417
  */
6397
6418
  isEmptyGeometry_() {
6398
- const t = this.isTokenType(m.TEXT) && this.token_.value == ln;
6419
+ const t = this.isTokenType(m.TEXT) && this.token_.value == cn;
6399
6420
  return t && this.consume_(), t;
6400
6421
  }
6401
6422
  /**
@@ -6421,11 +6442,11 @@ class Us {
6421
6442
  const i = this.isEmptyGeometry_();
6422
6443
  if (e == "GEOMETRYCOLLECTION") {
6423
6444
  if (i)
6424
- return new B([]);
6445
+ return new V([]);
6425
6446
  const o = this.parseGeometryCollectionText_();
6426
- return new B(o);
6447
+ return new V(o);
6427
6448
  }
6428
- const r = Os[e];
6449
+ const r = js[e];
6429
6450
  if (!r)
6430
6451
  throw new Error("Invalid geometry type: " + e);
6431
6452
  let s;
@@ -6463,7 +6484,7 @@ class Us {
6463
6484
  throw new Error(this.formatErrorMessage_());
6464
6485
  }
6465
6486
  }
6466
- class Xs extends Ns {
6487
+ class Bs extends ks {
6467
6488
  /**
6468
6489
  * @param {Options} [options] Options.
6469
6490
  */
@@ -6478,8 +6499,8 @@ class Xs extends Ns {
6478
6499
  * @private
6479
6500
  */
6480
6501
  parse_(t) {
6481
- const e = new Hs(t);
6482
- return new Us(e).parse();
6502
+ const e = new Xs(t);
6503
+ return new Ys(e).parse();
6483
6504
  }
6484
6505
  /**
6485
6506
  * @protected
@@ -6489,7 +6510,7 @@ class Xs extends Ns {
6489
6510
  * @override
6490
6511
  */
6491
6512
  readFeatureFromText(t, e) {
6492
- const i = this.readGeometryFromText(t, e), r = new lt();
6513
+ const i = this.readGeometryFromText(t, e), r = new ht();
6493
6514
  return r.setGeometry(i), r;
6494
6515
  }
6495
6516
  /**
@@ -6506,7 +6527,7 @@ class Xs extends Ns {
6506
6527
  r.getGeometriesArray() : i = [r];
6507
6528
  const s = [];
6508
6529
  for (let o = 0, a = i.length; o < a; ++o) {
6509
- const l = new lt();
6530
+ const l = new ht();
6510
6531
  l.setGeometry(i[o]), s.push(l);
6511
6532
  }
6512
6533
  return s;
@@ -6520,7 +6541,7 @@ class Xs extends Ns {
6520
6541
  */
6521
6542
  readGeometryFromText(t, e) {
6522
6543
  const i = this.parse_(t);
6523
- return bt(i, !1, e);
6544
+ return Et(i, !1, e);
6524
6545
  }
6525
6546
  /**
6526
6547
  * @param {import("../Feature.js").default} feature Features.
@@ -6546,7 +6567,7 @@ class Xs extends Ns {
6546
6567
  const i = [];
6547
6568
  for (let s = 0, o = t.length; s < o; ++s)
6548
6569
  i.push(t[s].getGeometry());
6549
- const r = new B(i);
6570
+ const r = new V(i);
6550
6571
  return this.writeGeometryText(r, e);
6551
6572
  }
6552
6573
  /**
@@ -6557,105 +6578,105 @@ class Xs extends Ns {
6557
6578
  * @override
6558
6579
  */
6559
6580
  writeGeometryText(t, e) {
6560
- return gn(bt(t, !0, e));
6581
+ return pn(Et(t, !0, e));
6561
6582
  }
6562
6583
  }
6563
- function un(n) {
6584
+ function fn(n) {
6564
6585
  const t = n.getCoordinates();
6565
6586
  return t.length === 0 ? "" : t.join(" ");
6566
6587
  }
6567
- function Ys(n) {
6588
+ function Vs(n) {
6568
6589
  const t = [], e = n.getPoints();
6569
6590
  for (let i = 0, r = e.length; i < r; ++i)
6570
- t.push("(" + un(e[i]) + ")");
6591
+ t.push("(" + fn(e[i]) + ")");
6571
6592
  return t.join(",");
6572
6593
  }
6573
- function Bs(n) {
6594
+ function zs(n) {
6574
6595
  const t = [], e = n.getGeometries();
6575
6596
  for (let i = 0, r = e.length; i < r; ++i)
6576
- t.push(gn(e[i]));
6597
+ t.push(pn(e[i]));
6577
6598
  return t.join(",");
6578
6599
  }
6579
- function ke(n) {
6600
+ function je(n) {
6580
6601
  const t = n.getCoordinates(), e = [];
6581
6602
  for (let i = 0, r = t.length; i < r; ++i)
6582
6603
  e.push(t[i].join(" "));
6583
6604
  return e.join(",");
6584
6605
  }
6585
- function Vs(n) {
6606
+ function Js(n) {
6586
6607
  const t = [], e = n.getLineStrings();
6587
6608
  for (let i = 0, r = e.length; i < r; ++i)
6588
- t.push("(" + ke(e[i]) + ")");
6609
+ t.push("(" + je(e[i]) + ")");
6589
6610
  return t.join(",");
6590
6611
  }
6591
- function dn(n) {
6612
+ function gn(n) {
6592
6613
  const t = [], e = n.getLinearRings();
6593
6614
  for (let i = 0, r = e.length; i < r; ++i)
6594
- t.push("(" + ke(e[i]) + ")");
6615
+ t.push("(" + je(e[i]) + ")");
6595
6616
  return t.join(",");
6596
6617
  }
6597
- function zs(n) {
6618
+ function Ws(n) {
6598
6619
  const t = [], e = n.getPolygons();
6599
6620
  for (let i = 0, r = e.length; i < r; ++i)
6600
- t.push("(" + dn(e[i]) + ")");
6621
+ t.push("(" + gn(e[i]) + ")");
6601
6622
  return t.join(",");
6602
6623
  }
6603
- function Js(n) {
6624
+ function qs(n) {
6604
6625
  const t = n.getLayout();
6605
6626
  let e = "";
6606
- return (t === "XYZ" || t === "XYZM") && (e += hn), (t === "XYM" || t === "XYZM") && (e += cn), e;
6607
- }
6608
- const Ws = {
6609
- Point: un,
6610
- LineString: ke,
6611
- Polygon: dn,
6612
- MultiPoint: Ys,
6613
- MultiLineString: Vs,
6614
- MultiPolygon: zs,
6615
- GeometryCollection: Bs
6627
+ return (t === "XYZ" || t === "XYZM") && (e += un), (t === "XYM" || t === "XYZM") && (e += dn), e;
6628
+ }
6629
+ const Ds = {
6630
+ Point: fn,
6631
+ LineString: je,
6632
+ Polygon: gn,
6633
+ MultiPoint: Vs,
6634
+ MultiLineString: Js,
6635
+ MultiPolygon: Ws,
6636
+ GeometryCollection: zs
6616
6637
  };
6617
- function gn(n) {
6618
- const t = n.getType(), e = Ws[t], i = e(n);
6619
- let r = js[t];
6638
+ function pn(n) {
6639
+ const t = n.getType(), e = Ds[t], i = e(n);
6640
+ let r = Us[t];
6620
6641
  if (typeof /** @type {?} */
6621
6642
  n.getFlatCoordinates == "function") {
6622
- const s = Js(
6643
+ const s = qs(
6623
6644
  /** @type {import("../geom/SimpleGeometry.js").default} */
6624
6645
  n
6625
6646
  );
6626
6647
  s.length > 0 && (r += " " + s);
6627
6648
  }
6628
- return i.length === 0 ? r + " " + ln : r + "(" + i + ")";
6649
+ return i.length === 0 ? r + " " + cn : r + "(" + i + ")";
6629
6650
  }
6630
- const qs = (n, t) => new Xs().writeFeatures(n, t);
6651
+ const Zs = (n, t) => new Bs().writeFeatures(n, t);
6631
6652
  /**
6632
6653
  * @license
6633
6654
  * Copyright 2021 Google LLC
6634
6655
  * SPDX-License-Identifier: BSD-3-Clause
6635
6656
  */
6636
- function _i(n, t, e) {
6657
+ function vi(n, t, e) {
6637
6658
  return n ? t(n) : e == null ? void 0 : e(n);
6638
6659
  }
6639
- var Et, xt;
6640
- class fn extends U {
6660
+ var xt, Pt;
6661
+ class yn extends X {
6641
6662
  constructor() {
6642
6663
  super();
6643
6664
  /**
6644
6665
  * @type boolean | import("lit").nothing
6645
6666
  */
6646
- F(this, Et, !0);
6667
+ F(this, xt, !0);
6647
6668
  /**
6648
6669
  * @type boolean | import("lit").nothing
6649
6670
  */
6650
- F(this, xt, !0);
6671
+ F(this, Pt, !0);
6651
6672
  this.multipleFeatures = !1, this.drawnFeatures = [], this.importFeatures = !1, this.showEditor = !1, this.currentlyDrawing = !1, this.drawFunc = null, this.geoJSON = "", this.unstyled = !1, this.select = !1;
6652
6673
  }
6653
6674
  /**
6654
6675
  * Updates button states based on conditions
6655
6676
  */
6656
6677
  updateButtonStates() {
6657
- const { drawDisabled: e, discardDisabled: i } = Zn(this);
6658
- $(this, Et, e), $(this, xt, i);
6678
+ const { drawDisabled: e, discardDisabled: i } = Qn(this);
6679
+ $(this, xt, e), $(this, Pt, i);
6659
6680
  }
6660
6681
  /**
6661
6682
  * Overrides createRenderRoot to handle shadow DOM
@@ -6668,8 +6689,8 @@ class fn extends U {
6668
6689
  const e = this.currentlyDrawing ? "drawing" : "draw";
6669
6690
  return H`
6670
6691
  <style>
6671
- ${!this.unstyled && Dn}
6672
- ${!this.unstyled && Kn}
6692
+ ${!this.unstyled && tr}
6693
+ ${!this.unstyled && er}
6673
6694
  </style>
6674
6695
  <div class="wrap-btn">
6675
6696
  <slot></slot>
@@ -6678,7 +6699,7 @@ class fn extends U {
6678
6699
  <button
6679
6700
  data-cy="drawBtn"
6680
6701
  class="${this.select ? "pointer" : "polygon"} icon"
6681
- ?disabled="${M(this, Et) || C}"
6702
+ ?disabled="${M(this, xt) || w}"
6682
6703
  @click="${() => this.drawFunc.start()}"
6683
6704
  >
6684
6705
  ${e}
@@ -6688,7 +6709,7 @@ class fn extends U {
6688
6709
  <button
6689
6710
  data-cy="discardBtn"
6690
6711
  class="discard icon"
6691
- ?disabled="${M(this, xt) || C}"
6712
+ ?disabled="${M(this, Pt) || w}"
6692
6713
  @click="${() => this.drawFunc.discard()}"
6693
6714
  >
6694
6715
  discard
@@ -6696,7 +6717,7 @@ class fn extends U {
6696
6717
  </div>
6697
6718
 
6698
6719
  <!-- Import Button -->
6699
- ${_i(
6720
+ ${vi(
6700
6721
  this.importFeatures,
6701
6722
  () => H`
6702
6723
  <!-- Import Input Field : Hidden -->
@@ -6723,7 +6744,7 @@ class fn extends U {
6723
6744
  </div>
6724
6745
 
6725
6746
  <!-- Geo JSON Wrapper -->
6726
- ${_i(
6747
+ ${vi(
6727
6748
  this.showEditor,
6728
6749
  () => H`
6729
6750
  <div class="json-wrapper">
@@ -6738,9 +6759,9 @@ class fn extends U {
6738
6759
  <button
6739
6760
  data-cy="copyBtn"
6740
6761
  class="icon-copy"
6741
- @click=${() => Qn(this.geoJSON)}
6762
+ @click=${() => ir(this.geoJSON)}
6742
6763
  >
6743
- ${this.unstyled ? "copy" : C}
6764
+ ${this.unstyled ? "copy" : w}
6744
6765
  </button>
6745
6766
  </div>
6746
6767
  `
@@ -6748,8 +6769,8 @@ class fn extends U {
6748
6769
  `;
6749
6770
  }
6750
6771
  }
6751
- Et = new WeakMap(), xt = new WeakMap(), // Define properties with default values and types
6752
- R(fn, "properties", {
6772
+ xt = new WeakMap(), Pt = new WeakMap(), // Define properties with default values and types
6773
+ R(yn, "properties", {
6753
6774
  multipleFeatures: { attribute: !1, type: Boolean },
6754
6775
  drawnFeatures: { attribute: !1, state: !0, type: Array },
6755
6776
  currentlyDrawing: { attribute: !1, state: !0, type: Boolean },
@@ -6760,8 +6781,8 @@ R(fn, "properties", {
6760
6781
  geoJSON: { attribute: "geo-json", type: String },
6761
6782
  unstyled: { type: Boolean }
6762
6783
  });
6763
- customElements.define("eox-drawtools-controller", fn);
6764
- const Zs = `
6784
+ customElements.define("eox-drawtools-controller", yn);
6785
+ const Ks = `
6765
6786
  button.discard:before {
6766
6787
  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")
6767
6788
  }
@@ -6806,7 +6827,7 @@ const Zs = `
6806
6827
  color: white;
6807
6828
  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")
6808
6829
  }
6809
- `, Ds = (n) => {
6830
+ `, Qs = (n) => {
6810
6831
  (() => {
6811
6832
  if (n.emitDrawnFeatures(), !n.multipleFeatures)
6812
6833
  n.draw.setActive(!1), n.selectionEvents.removeSelectionEvent(), n.currentlyDrawing = !1;
@@ -6815,23 +6836,25 @@ const Zs = `
6815
6836
  n.drawLayer.getSource().clear(), n.drawnFeatures = [];
6816
6837
  else {
6817
6838
  const i = n.drawLayer.getSource().getFeatures().at(-1);
6818
- n.drawLayer.getSource().clear(), n.drawLayer.getSource().addFeature(i), n.drawnFeatures = [i];
6839
+ if (n.drawLayer.getSource().clear(), !i)
6840
+ return;
6841
+ n.drawLayer.getSource().addFeature(i), n.drawnFeatures = [i];
6819
6842
  }
6820
6843
  })(), n.requestUpdate();
6821
- }, Ks = (n) => {
6844
+ }, to = (n) => {
6822
6845
  const t = () => {
6823
6846
  n.drawLayer.set("isDrawingEnabled", !0), n.draw.setActive(!0), n.selectionEvents.addSelectionEvent();
6824
6847
  }, e = () => {
6825
6848
  n.currentlyDrawing = !0, n.requestUpdate();
6826
6849
  };
6827
6850
  t(), e();
6828
- }, Qs = (n) => {
6851
+ }, eo = (n) => {
6829
6852
  let t;
6830
6853
  return typeof n == "string" ? t = /** @type {HTMLElement} */
6831
6854
  document.querySelector(n) : t = n, t;
6832
- }, vi = (n, t) => {
6855
+ }, wi = (n, t) => {
6833
6856
  var s, o, a, l, h;
6834
- const i = Qs(n.for), r = i.map;
6857
+ const i = eo(n.for), r = i.map;
6835
6858
  return n.drawLayer = i.addOrUpdateLayer({
6836
6859
  zIndex: 100,
6837
6860
  type: "Vector",
@@ -6888,15 +6911,15 @@ const Zs = `
6888
6911
  /** @type {unknown} */
6889
6912
  i.interactions.drawInteraction, n.modify = /** @type {import("ol/interaction").Modify} */
6890
6913
  /** @type {unknown} */
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 };
6892
- }, to = (n) => {
6914
+ i.interactions.drawInteractionmodify, ge(n, i, n.layerId), (h = n.modify) == null || h.on("modifyend", () => n.onModifyEnd()), i.addEventListener("addfeatures", () => Qs(n)), { EoxMap: i, OlMap: r };
6915
+ }, io = (n) => {
6893
6916
  const t = () => {
6894
6917
  n.drawnFeatures = [], n.draw.setActive(!1), n.selectionEvents.removeSelectionEvent(), n.drawLayer.getSource().clear(), n.geoJSON = null;
6895
6918
  }, e = () => {
6896
6919
  n.emitDrawnFeatures(), n.currentlyDrawing = !1, n.requestUpdate();
6897
6920
  };
6898
6921
  t(), e();
6899
- }, eo = (n, t) => {
6922
+ }, no = (n, t) => {
6900
6923
  setTimeout(() => {
6901
6924
  const i = n.drawLayer.getSource().getFeatures(), r = n.eoxMap.projection || "EPSG:3857", s = n.projection;
6902
6925
  n.drawnFeatures = s ? i.map((a) => {
@@ -6907,10 +6930,10 @@ const Zs = `
6907
6930
  let o;
6908
6931
  switch (n.format) {
6909
6932
  case "geojson":
6910
- o = Ts(n.drawnFeatures);
6933
+ o = Os(n.drawnFeatures);
6911
6934
  break;
6912
6935
  case "wkt":
6913
- o = qs(n.drawnFeatures);
6936
+ o = Zs(n.drawnFeatures);
6914
6937
  break;
6915
6938
  case "feature":
6916
6939
  o = n.drawnFeatures;
@@ -6921,7 +6944,7 @@ const Zs = `
6921
6944
  }
6922
6945
  n.updateGeoJSON(), n.requestUpdate(), t(o);
6923
6946
  }, 0);
6924
- }, io = (n) => {
6947
+ }, ro = (n) => {
6925
6948
  const t = (r) => {
6926
6949
  (r == null ? void 0 : r.detail.id) !== "SelectLayerClickInteraction" || !r.detail.feature || (n.drawLayer.getSource().addFeature(r.detail.feature), n.eoxMap.dispatchEvent(
6927
6950
  new CustomEvent("addfeatures", { detail: r.detail })
@@ -6935,33 +6958,31 @@ const Zs = `
6935
6958
  r && (r.selectedFids = [], r.setActive(!1)), n.eoxMap.removeEventListener("select", t);
6936
6959
  } };
6937
6960
  }, ge = (n, t, e) => {
6938
- var a, l;
6961
+ var l, h;
6939
6962
  if (!e || !t)
6940
6963
  return;
6941
- const i = JSON.parse(
6942
- JSON.stringify(
6943
- /** @type {import("@eox/map").EoxLayer} */
6944
- t.getLayerById(e).get("_jsonDefinition")
6945
- )
6946
- ) || null;
6947
- if (!i) {
6964
+ const i = t.getLayerById(e), r = i ? (
6965
+ /** @type {import("@eox/map").EoxLayer} */
6966
+ JSON.parse(JSON.stringify(i.get("_jsonDefinition")))
6967
+ ) : null;
6968
+ if (!r) {
6948
6969
  console.error(`Layer with id ${e} not found`);
6949
6970
  return;
6950
6971
  }
6951
- const r = {
6972
+ const s = {
6952
6973
  type: "select",
6953
6974
  active: !1,
6954
6975
  options: {
6955
6976
  id: "SelectLayerHoverInteraction",
6956
6977
  condition: "pointermove",
6957
6978
  active: !1,
6958
- style: ((a = n.featureStyles) == null ? void 0 : a.hover) || {
6979
+ style: ((l = n.featureStyles) == null ? void 0 : l.hover) || {
6959
6980
  "fill-color": "rgba(0, 0, 0,0.0)",
6960
6981
  "stroke-color": "#3399CC",
6961
6982
  "stroke-width": 2.5
6962
6983
  }
6963
6984
  }
6964
- }, s = {
6985
+ }, o = {
6965
6986
  type: "select",
6966
6987
  options: {
6967
6988
  id: "SelectLayerClickInteraction",
@@ -6969,16 +6990,30 @@ const Zs = `
6969
6990
  multi: n.multipleFeatures,
6970
6991
  modify: n.allowModify,
6971
6992
  active: !1,
6972
- style: ((l = n.featureStyles) == null ? void 0 : l.click) || {
6993
+ style: ((h = n.featureStyles) == null ? void 0 : h.click) || {
6973
6994
  "fill-color": "rgba(0, 0, 0,0.0)",
6974
6995
  "stroke-color": "rgba(0, 0, 0,0.0)"
6975
6996
  }
6976
6997
  }
6977
6998
  };
6978
- i.interactions = [r, s], t.addOrUpdateLayer(i);
6979
- const o = n.draw;
6980
- n.draw = t.selectInteractions.SelectLayerClickInteraction, o.setActive(!1), t.selectInteractions.SelectLayerClickInteraction.setActive(!1), t.selectInteractions.SelectLayerHoverInteraction.setActive(!1);
6981
- }, no = (n, t, e, i) => {
6999
+ r.interactions = [s, o], t.addOrUpdateLayer(r), mn(t.layers, e, [r]);
7000
+ const a = n.draw;
7001
+ n.draw = t.selectInteractions.SelectLayerClickInteraction, a.setActive(!1), t.selectInteractions.SelectLayerClickInteraction.setActive(!1), t.selectInteractions.SelectLayerHoverInteraction.setActive(!1);
7002
+ };
7003
+ function mn(n, t, e) {
7004
+ const i = n.findIndex(
7005
+ (r) => r.properties.id === t
7006
+ );
7007
+ if (i !== -1)
7008
+ return n.splice(i, 1, ...e), n;
7009
+ for (const r of n)
7010
+ if (r.type === "Group") {
7011
+ const s = mn(r.layers, t, e);
7012
+ s != null && s.length && (r.layers = s);
7013
+ }
7014
+ return n;
7015
+ }
7016
+ const so = (n, t, e, i) => {
6982
7017
  if (t) {
6983
7018
  if (e) {
6984
7019
  i && e !== i && Ci(n, t), ge(n, t, e);
@@ -6994,8 +7029,8 @@ function Ci(n, t) {
6994
7029
  t && (n.discardDrawing(), n.selectionEvents.removeSelectionEvent(), n.draw = /** @type {import("ol/interaction").Draw} */
6995
7030
  t.interactions.drawInteraction, t.selectInteractions.SelectLayerClickInteraction.remove(), t.selectInteractions.SelectLayerHoverInteraction.remove());
6996
7031
  }
6997
- const ro = ':root,:host { --spacing: 1rem; --block-spacing-vertical: calc(var(--spacing) * 2); --block-spacing-horizontal: var(--spacing); --background-color: var(--eox-background-color, transparent); --color: var(--eox-color, #2c3d49); --h-color: var(--eox-h-color, var(--color)); --hover-transparency: var(--eox-hover-transparency, 20%); --bg-hover-transparency: var(--eox-bg-hover-transparency, 40%); --btn-hover-transparency: var(--eox-btn-hover-transparency, 80%); --primary-color: var(--eox-primary-color, #004170); --primary-color-hover: color-mix( in srgb, var(--primary-color) var(--hover-transparency), transparent ); --primary-bg-color-hover: color-mix( in srgb, var(--primary-color) var(--bg-hover-transparency), transparent ); --primary-btn-color-hover: color-mix( in srgb, var(--primary-color) var(--btn-hover-transparency), transparent ); --secondary-color: var(--eox-secondary-color, #c6d4df); --secondary-color-hover: color-mix( in srgb, var(--secondary-color) var(--hover-transparency), transparent ); --secondary-bg-color-hover: color-mix( in srgb, var(--secondary-color) var(--bg-hover-transparency), transparent ); --secondary-btn-color-hover: color-mix( in srgb, var(--secondary-color) var(--btn-hover-transparency), transparent ); --success: var(--eox-success, #26cc0f); --warning: var(--eox-warning, #f18e32); --error: var(--eox-error, #ff5252); --header-font-family: var(--eox-header-font-family, "Roboto", sans-serif); --body-font-family: var(--eox-body-font-family, "Roboto", sans-serif);}* { font-size: normal; font-family: var(--body-font-family); color: var(--eox-color);}h1,h2,h3,h4,h5,h6 { font-family: var(--header-font-family);}span,p,div,main,label { font-family: var(--body-font-family);}@media (min-width: 576px) { .container { max-width: 510px; padding-right: 0; padding-left: 0; --block-spacing-vertical: calc(var(--spacing) * 2.5); }}@media (min-width: 768px) { .container { max-width: 700px; --block-spacing-vertical: calc(var(--spacing) * 3); }}@media (min-width: 992px) { .container { max-width: 920px; --block-spacing-vertical: calc(var(--spacing) * 3.5); }}@media (min-width: 1200px) { .container { max-width: 1130px; --block-spacing-vertical: calc(var(--spacing) * 4); }}.container { width: 100%; margin-right: auto; margin-left: auto; display: block; padding: var(--block-spacing-vertical) var(--block-spacing-horizontal);}h1,h2,h3 { line-height: 120%; margin-top: 0.8rem; margin-bottom: 0.8rem;}p { --font-size: 1rem; font-weight: 400; line-height: 170%; margin-top: 0.8rem; margin-bottom: 1.6rem; font-size: var(--font-size);}body { padding: 0; margin: 0;}.sb-show-main.sb-main-padded { padding: 0;}h1,h2,h3,h4,h5,h6 { --font-weight: 700;}h1 { --font-size: 3rem; --typography-spacing-vertical: 0.5rem;}h2 { --font-size: 2rem; --typography-spacing-vertical: 0.5rem;}h3 { --font-size: 1.75rem; --typography-spacing-vertical: 0.5rem;}h4 { --font-size: 1.5rem; --typography-spacing-vertical: 0.5rem;}h5 { --font-size: 1.25rem; --typography-spacing-vertical: 0.5rem;}h1,h2,h3,h4,h5,h6 { margin-top: 0; margin-bottom: var(--typography-spacing-vertical); color: var(--h-color); font-weight: var(--font-weight); font-size: var(--font-size); font-family: var(--header-font-family);}pre { position: relative; border-radius: 4px; z-index: 1; margin: 0; padding: 20px 0; background: transparent; background: var(--code-bg-color, #8e96aa24); overflow: auto;}code { display: block; padding: 0 24px; width: fit-content; min-width: 100%; line-height: var(--code-line-height, 1.7); font-family: var(--code-font-family, monospace); font-size: var(--code-font-size, var(--font-size)); color: var(--code-color, #004170);}:not(pre) > code { display: inline; border-radius: 4px; background: var(--code-bg-color, #8e96aa24); padding: var(--code-padding, 3px 6px);}';
6998
- function so(n, t) {
7032
+ const oo = ':root,:host { --spacing: 1rem; --block-spacing-vertical: calc(var(--spacing) * 2); --block-spacing-horizontal: var(--spacing); --background-color: var(--eox-background-color, transparent); --color: var(--eox-color, #2c3d49); --h-color: var(--eox-h-color, var(--color)); --hover-transparency: var(--eox-hover-transparency, 20%); --bg-hover-transparency: var(--eox-bg-hover-transparency, 40%); --btn-hover-transparency: var(--eox-btn-hover-transparency, 80%); --primary-color: var(--eox-primary-color, #004170); --primary-color-hover: color-mix( in srgb, var(--primary-color) var(--hover-transparency), transparent ); --primary-bg-color-hover: color-mix( in srgb, var(--primary-color) var(--bg-hover-transparency), transparent ); --primary-btn-color-hover: color-mix( in srgb, var(--primary-color) var(--btn-hover-transparency), transparent ); --secondary-color: var(--eox-secondary-color, #c6d4df); --secondary-color-hover: color-mix( in srgb, var(--secondary-color) var(--hover-transparency), transparent ); --secondary-bg-color-hover: color-mix( in srgb, var(--secondary-color) var(--bg-hover-transparency), transparent ); --secondary-btn-color-hover: color-mix( in srgb, var(--secondary-color) var(--btn-hover-transparency), transparent ); --success: var(--eox-success, #26cc0f); --warning: var(--eox-warning, #f18e32); --error: var(--eox-error, #ff5252); --header-font-family: var(--eox-header-font-family, "Roboto", sans-serif); --body-font-family: var(--eox-body-font-family, "Roboto", sans-serif);}* { font-size: normal; font-family: var(--body-font-family); color: var(--eox-color);}h1,h2,h3,h4,h5,h6 { font-family: var(--header-font-family);}span,p,div,main,label { font-family: var(--body-font-family);}@media (min-width: 576px) { .container { max-width: 510px; padding-right: 0; padding-left: 0; --block-spacing-vertical: calc(var(--spacing) * 2.5); }}@media (min-width: 768px) { .container { max-width: 700px; --block-spacing-vertical: calc(var(--spacing) * 3); }}@media (min-width: 992px) { .container { max-width: 920px; --block-spacing-vertical: calc(var(--spacing) * 3.5); }}@media (min-width: 1200px) { .container { max-width: 1130px; --block-spacing-vertical: calc(var(--spacing) * 4); }}.container { width: 100%; margin-right: auto; margin-left: auto; display: block; padding: var(--block-spacing-vertical) var(--block-spacing-horizontal);}h1,h2,h3 { line-height: 120%; margin-top: 0.8rem; margin-bottom: 0.8rem;}p { --font-size: 1rem; font-weight: 400; line-height: 170%; margin-top: 0.8rem; margin-bottom: 1.6rem; font-size: var(--font-size);}body { padding: 0; margin: 0;}.sb-show-main.sb-main-padded { padding: 0;}h1,h2,h3,h4,h5,h6 { --font-weight: 700;}h1 { --font-size: 3rem; --typography-spacing-vertical: 0.5rem;}h2 { --font-size: 2rem; --typography-spacing-vertical: 0.5rem;}h3 { --font-size: 1.75rem; --typography-spacing-vertical: 0.5rem;}h4 { --font-size: 1.5rem; --typography-spacing-vertical: 0.5rem;}h5 { --font-size: 1.25rem; --typography-spacing-vertical: 0.5rem;}h1,h2,h3,h4,h5,h6 { margin-top: 0; margin-bottom: var(--typography-spacing-vertical); color: var(--h-color); font-weight: var(--font-weight); font-size: var(--font-size); font-family: var(--header-font-family);}pre { position: relative; border-radius: 4px; z-index: 1; margin: 0; padding: 20px 0; background: transparent; background: var(--code-bg-color, #8e96aa24); overflow: auto;}code { display: block; padding: 0 24px; width: fit-content; min-width: 100%; line-height: var(--code-line-height, 1.7); font-family: var(--code-font-family, monospace); font-size: var(--code-font-size, var(--font-size)); color: var(--code-color, #004170);}:not(pre) > code { display: inline; border-radius: 4px; background: var(--code-bg-color, #8e96aa24); padding: var(--code-padding, 3px 6px);}';
7033
+ function ao(n, t) {
6999
7034
  function e(s) {
7000
7035
  s.preventDefault(), s.stopPropagation();
7001
7036
  }
@@ -7007,49 +7042,49 @@ function so(n, t) {
7007
7042
  }
7008
7043
  ["dragenter", "dragover", "dragleave", "drop"].forEach((s) => {
7009
7044
  t.addEventListener(s, e, !1), ["dragenter", "dragover"].includes(s) ? t.addEventListener(s, i, !1) : t.addEventListener(s, r, !1);
7010
- }), t.addEventListener("drop", (s) => pn(s, n), !1);
7045
+ }), t.addEventListener("drop", (s) => _n(s, n), !1);
7011
7046
  }
7012
- function oo(n) {
7047
+ function lo(n) {
7013
7048
  n.preventDefault(), n.stopPropagation();
7014
7049
  }
7015
- function pn(n, t) {
7016
- oo(n);
7050
+ function _n(n, t) {
7051
+ lo(n);
7017
7052
  const e = n.dataTransfer ? n.dataTransfer.files : (
7018
7053
  /**@type {HTMLInputElement}*/
7019
7054
  n.target.files
7020
7055
  );
7021
- Array.from(e).forEach((i) => ao(i, t));
7056
+ Array.from(e).forEach((i) => ho(i, t));
7022
7057
  }
7023
- function ao(n, t) {
7058
+ function ho(n, t) {
7024
7059
  const e = new FileReader();
7025
7060
  e.readAsText(n), e.onloadend = function() {
7026
7061
  typeof e.result == "string" && t.handleFeatureChange(e.result);
7027
7062
  };
7028
7063
  }
7029
- var nt, rt, Pt, st, Mt;
7030
- class lo extends U {
7064
+ var rt, st, Mt, ot, St;
7065
+ class co extends X {
7031
7066
  constructor() {
7032
7067
  super();
7033
7068
  /**
7034
7069
  * @type import("@eox/map").EOxMap
7035
7070
  */
7036
- F(this, nt);
7071
+ F(this, rt);
7037
7072
  /**
7038
7073
  * @type import("ol").Map
7039
7074
  */
7040
- F(this, rt);
7075
+ F(this, st);
7041
7076
  /**
7042
7077
  * @type string
7043
7078
  */
7044
- F(this, Pt);
7079
+ F(this, Mt);
7045
7080
  /**
7046
7081
  * @type string
7047
7082
  */
7048
- F(this, st);
7083
+ F(this, ot);
7049
7084
  /**
7050
7085
  * @type boolean
7051
7086
  */
7052
- F(this, Mt);
7087
+ F(this, St);
7053
7088
  this.allowModify = !1, this.for = "eox-map", this.currentlyDrawing = !1, this.draw = null, this.drawLayer = null, this.layerId = "", this.drawnFeatures = [], this.featureName = "Feature", this.featureStyles = null, this.modify = null, this.multipleFeatures = !1, this.importFeatures = !1, this.showEditor = !1, this.showList = !1, this.projection = "EPSG:4326", this.type = "Polygon", this.selectionEvents = null, this.format = "feature", this.unstyled = !1, this.noShadow = !1;
7054
7089
  }
7055
7090
  // Define properties with defaults and types
@@ -7083,33 +7118,33 @@ class lo extends U {
7083
7118
  * @type {boolean}
7084
7119
  */
7085
7120
  set continuous(e) {
7086
- $(this, Mt, e), e && (this.multipleFeatures = !0);
7121
+ $(this, St, e), e && (this.multipleFeatures = !0);
7087
7122
  }
7088
7123
  get continuous() {
7089
- return M(this, Mt);
7124
+ return M(this, St);
7090
7125
  }
7091
7126
  /**
7092
7127
  * Enables selection mode for the passed layer
7093
7128
  * @type {string}
7094
7129
  */
7095
7130
  set layerId(e) {
7096
- no(this, this.eoxMap, e, M(this, st)), $(this, st, e);
7131
+ so(this, this.eoxMap, e, M(this, ot)), $(this, ot, e);
7097
7132
  }
7098
7133
  get layerId() {
7099
- return M(this, st);
7134
+ return M(this, ot);
7100
7135
  }
7101
7136
  /**
7102
7137
  * @onClick Event handler triggered to start drawing on the map.
7103
7138
  */
7104
7139
  startDrawing() {
7105
- Ks(this);
7140
+ to(this);
7106
7141
  }
7107
7142
  /**
7108
7143
  * @onClick Event handler triggered to discard/stop drawing
7109
7144
  * on the map and delete the drawn shapes.
7110
7145
  */
7111
7146
  discardDrawing() {
7112
- to(this);
7147
+ io(this);
7113
7148
  }
7114
7149
  /**
7115
7150
  * @param {string} text - The string representation of the features to be parsed.
@@ -7118,7 +7153,7 @@ class lo extends U {
7118
7153
  */
7119
7154
  handleFeatureChange(e, i = !1, r = !0) {
7120
7155
  this.eoxMap.parseTextToFeature(
7121
- e || JSON.stringify(ti),
7156
+ e || JSON.stringify(ei),
7122
7157
  this.drawLayer,
7123
7158
  this.eoxMap,
7124
7159
  i,
@@ -7133,7 +7168,7 @@ class lo extends U {
7133
7168
  * @param {DragEvent} evt - The event object from the file input interaction.
7134
7169
  */
7135
7170
  handleFilesChange(e) {
7136
- pn(e, this);
7171
+ _n(e, this);
7137
7172
  }
7138
7173
  /**
7139
7174
  * @event onModifyEnd triggered when the modification of a shape is completed.
@@ -7145,8 +7180,8 @@ class lo extends U {
7145
7180
  * Update #geoJSON with stringify feature.
7146
7181
  */
7147
7182
  updateGeoJSON() {
7148
- $(this, Pt, JSON.stringify(
7149
- this.eoxMap.parseFeature(this.drawnFeatures) || ti,
7183
+ $(this, Mt, JSON.stringify(
7184
+ this.eoxMap.parseFeature(this.drawnFeatures) || ei,
7150
7185
  void 0,
7151
7186
  2
7152
7187
  ));
@@ -7155,7 +7190,7 @@ class lo extends U {
7155
7190
  * Triggers different events when the drawing of a shape is completed.
7156
7191
  */
7157
7192
  emitDrawnFeatures() {
7158
- eo(this, (i) => {
7193
+ no(this, (i) => {
7159
7194
  this.dispatchEvent(new CustomEvent("drawupdate", { detail: i }));
7160
7195
  });
7161
7196
  }
@@ -7171,21 +7206,21 @@ class lo extends U {
7171
7206
  * It then calls requestUpdate to trigger a re-render.
7172
7207
  */
7173
7208
  firstUpdated() {
7174
- const { EoxMap: e, OlMap: i } = vi(this, this.multipleFeatures);
7175
- this.eoxMap = e, $(this, rt, i), this.selectionEvents = io(this), this.importFeatures && so(this, this.eoxMap), this.updateGeoJSON(), this.requestUpdate();
7209
+ const { EoxMap: e, OlMap: i } = wi(this, this.multipleFeatures);
7210
+ this.eoxMap = e, $(this, st, i), this.selectionEvents = ro(this), this.importFeatures && ao(this, this.eoxMap), this.updateGeoJSON(), this.requestUpdate();
7176
7211
  }
7177
7212
  updated(e) {
7178
7213
  if (e.has("for")) {
7179
- const { EoxMap: i, OlMap: r } = vi(this, this.multipleFeatures);
7180
- this.eoxMap = i, $(this, rt, r);
7214
+ const { EoxMap: i, OlMap: r } = wi(this, this.multipleFeatures);
7215
+ this.eoxMap = i, $(this, st, r);
7181
7216
  }
7182
7217
  }
7183
7218
  get eoxMap() {
7184
- return M(this, nt);
7219
+ return M(this, rt);
7185
7220
  }
7186
7221
  set eoxMap(e) {
7187
- const i = M(this, nt);
7188
- $(this, nt, e), this.requestUpdate("eoxMap", i);
7222
+ const i = M(this, rt);
7223
+ $(this, rt, e), this.requestUpdate("eoxMap", i);
7189
7224
  }
7190
7225
  disconnectedCallback() {
7191
7226
  var e;
@@ -7197,8 +7232,8 @@ class lo extends U {
7197
7232
  return H`
7198
7233
  <style>
7199
7234
  :host { display: block; }
7200
- ${!this.unstyled && ro}
7201
- ${!this.unstyled && Zs}
7235
+ ${!this.unstyled && oo}
7236
+ ${!this.unstyled && Ks}
7202
7237
  </style>
7203
7238
 
7204
7239
  <!-- Controller Component -->
@@ -7216,14 +7251,14 @@ class lo extends U {
7216
7251
  .multipleFeatures=${this.multipleFeatures}
7217
7252
  .importFeatures=${this.importFeatures}
7218
7253
  .showEditor=${this.showEditor}
7219
- .geoJSON=${M(this, Pt)}
7254
+ .geoJSON=${M(this, Mt)}
7220
7255
  ></eox-drawtools-controller>
7221
7256
 
7222
7257
  <!-- List Component -->
7223
7258
  ${this.showList && ((e = this.drawnFeatures) != null && e.length) ? H`<eox-drawtools-list
7224
7259
  .eoxDrawTools=${this}
7225
7260
  .eoxMap=${this.eoxMap}
7226
- .olMap=${M(this, rt)}
7261
+ .olMap=${M(this, st)}
7227
7262
  .draw=${this.draw}
7228
7263
  .drawLayer=${this.drawLayer}
7229
7264
  .drawnFeatures=${this.drawnFeatures}
@@ -7233,12 +7268,12 @@ class lo extends U {
7233
7268
  @changed=${() => {
7234
7269
  this.updateGeoJSON(), this.requestUpdate();
7235
7270
  }}
7236
- ></eox-drawtools-list>` : C}
7271
+ ></eox-drawtools-list>` : w}
7237
7272
  `;
7238
7273
  }
7239
7274
  }
7240
- nt = new WeakMap(), rt = new WeakMap(), Pt = new WeakMap(), st = new WeakMap(), Mt = new WeakMap();
7241
- customElements.define("eox-drawtools", lo);
7275
+ rt = new WeakMap(), st = new WeakMap(), Mt = new WeakMap(), ot = new WeakMap(), St = new WeakMap();
7276
+ customElements.define("eox-drawtools", co);
7242
7277
  export {
7243
- lo as EOxDrawTools
7278
+ co as EOxDrawTools
7244
7279
  };