@hybridcore/ui 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/{ButtonBase-B6WYZgVU.js → ButtonBase-BYmh3G5j.js} +3 -3
  2. package/dist/{Checkbox-CxbQ9tJ5.js → Checkbox-DostZSwR.js} +1 -1
  3. package/dist/{Button-BZR43NHz.js → DialogContent-2aPOjKE7.js} +1252 -1252
  4. package/dist/{FormControl-C4PmH1vh.js → FormControl-BiAFm76F.js} +1 -1
  5. package/dist/{IconButton-CKHPuOyh.js → IconButton-CQJ8wZE8.js} +1 -1
  6. package/dist/{Input-CH_JyT5B.js → Input-Bf5G3tFN.js} +2 -2
  7. package/dist/{OutlinedInput-gnp48tDo.js → OutlinedInput-BEVE8VZQ.js} +2 -2
  8. package/dist/{Select-DOyHt8I_.js → Select-DxpxZbJp.js} +8 -8
  9. package/dist/{Source-Bo1Eq6y-.js → Source-CnCcu5UP.js} +275 -275
  10. package/dist/{Text-DVP2PrYM.js → Text-BT5kPHOo.js} +1156 -1156
  11. package/dist/assets/index.css +1 -1
  12. package/dist/assets/index2.css +1 -1
  13. package/dist/components/confirm/dialog.js +1 -1
  14. package/dist/components/context-menu/index.js +642 -642
  15. package/dist/components/data-management/instance-form/components/composite-list/index.js +1 -1
  16. package/dist/components/data-management/instance-form/components/variable/index.js +4 -4
  17. package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
  18. package/dist/components/geometry-picker/coordinate/index.js +1 -1
  19. package/dist/components/geometry-picker/edit/index.js +3 -3
  20. package/dist/components/geometry-picker/geometry/index.js +1 -1
  21. package/dist/components/geometry-picker/index.js +2 -2
  22. package/dist/components/geometry-picker/kml/index.js +7 -7
  23. package/dist/components/geometry-picker/map/index.js +1 -1
  24. package/dist/components/geometry-picker/map/logic.js +4 -4
  25. package/dist/components/geometry-picker/map/style.js +1 -1
  26. package/dist/components/icon-button/index.js +1 -1
  27. package/dist/components/map/helpers/mapbox.js +1 -1
  28. package/dist/components/map/helpers/ol.js +4 -4
  29. package/dist/components/map/index.js +6 -28
  30. package/dist/components/map/logic.js +62 -62
  31. package/dist/components/map/styled.js +2 -2
  32. package/dist/components/phone-input/index.js +1 -1
  33. package/dist/components/search-input/index.js +3 -3
  34. package/dist/components/tree-select/index.js +3 -3
  35. package/dist/components/treeview-filter/index.js +4 -4
  36. package/dist/components/treeview-filter/item/index.js +1 -1
  37. package/dist/components/treeview-filter/item-label/index.js +1 -1
  38. package/dist/{Object-DBPgar-D.js → has-9_asnBxn.js} +108 -108
  39. package/dist/{index-DHFb1Qpn.js → index-Bw_m9ult.js} +7 -7
  40. package/dist/index-IvOfmM1F.js +34 -0
  41. package/dist/{index-BQE8B4sc.js → index-wW2D1aTG.js} +2 -2
  42. package/dist/{List-BX_5LP1i.js → listItemTextClasses-BvXFz-Oc.js} +16 -16
  43. package/dist/main.d.ts +677 -6
  44. package/dist/main.js +41 -2
  45. package/dist/{ol-CMEkXXLJ.js → ol-DXmSLlWv.js} +8 -8
  46. package/dist/{styled-B22KrhDR.js → styled-C43K9x7T.js} +1 -1
  47. package/dist/{utils-C13eMoWa.js → utils-DLpkeyhZ.js} +1 -1
  48. package/package.json +1 -1
@@ -1,221 +1,5 @@
1
- import { k as W, m as K, f as p, W as ce, h as H, b as S, d as E, n as Lt, o as ge, s as j, p as fe, q as de, r as Re, e as _e, V as me, u as nt, l as it, E as Ct } from "./Object-DBPgar-D.js";
2
- const C = {
3
- UNKNOWN: 0,
4
- INTERSECTING: 1,
5
- ABOVE: 2,
6
- RIGHT: 4,
7
- BELOW: 8,
8
- LEFT: 16
9
- };
10
- function Gn(n) {
11
- const t = $();
12
- for (let e = 0, i = n.length; e < i; ++e)
13
- Ie(t, n[e]);
14
- return t;
15
- }
16
- function ye(n, t, e) {
17
- const i = Math.min.apply(null, n), r = Math.min.apply(null, t), s = Math.max.apply(null, n), o = Math.max.apply(null, t);
18
- return J(i, r, s, o, e);
19
- }
20
- function jn(n, t, e) {
21
- return e ? (e[0] = n[0] - t, e[1] = n[1] - t, e[2] = n[2] + t, e[3] = n[3] + t, e) : [
22
- n[0] - t,
23
- n[1] - t,
24
- n[2] + t,
25
- n[3] + t
26
- ];
27
- }
28
- function Ln(n, t) {
29
- return t ? (t[0] = n[0], t[1] = n[1], t[2] = n[2], t[3] = n[3], t) : n.slice();
30
- }
31
- function vt(n, t, e) {
32
- let i, r;
33
- 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;
34
- }
35
- function vn(n, t) {
36
- return Yt(n, t[0], t[1]);
37
- }
38
- function Me(n, t) {
39
- return n[0] <= t[0] && t[2] <= n[2] && n[1] <= t[1] && t[3] <= n[3];
40
- }
41
- function Yt(n, t, e) {
42
- return n[0] <= t && t <= n[2] && n[1] <= e && e <= n[3];
43
- }
44
- function Et(n, t) {
45
- const e = n[0], i = n[1], r = n[2], s = n[3], o = t[0], u = t[1];
46
- let a = C.UNKNOWN;
47
- return o < e ? a = a | C.LEFT : o > r && (a = a | C.RIGHT), u < i ? a = a | C.BELOW : u > s && (a = a | C.ABOVE), a === C.UNKNOWN && (a = C.INTERSECTING), a;
48
- }
49
- function $() {
50
- return [1 / 0, 1 / 0, -1 / 0, -1 / 0];
51
- }
52
- function J(n, t, e, i, r) {
53
- return r ? (r[0] = n, r[1] = t, r[2] = e, r[3] = i, r) : [n, t, e, i];
54
- }
55
- function Q(n) {
56
- return J(1 / 0, 1 / 0, -1 / 0, -1 / 0, n);
57
- }
58
- function Ce(n, t) {
59
- const e = n[0], i = n[1];
60
- return J(e, i, e, i, t);
61
- }
62
- function Ee(n, t, e, i, r) {
63
- const s = Q(r);
64
- return zt(s, n, t, e, i);
65
- }
66
- function Yn(n, t) {
67
- return n[0] == t[0] && n[2] == t[2] && n[1] == t[1] && n[3] == t[3];
68
- }
69
- function zn(n, t) {
70
- 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;
71
- }
72
- function Ie(n, t) {
73
- t[0] < n[0] && (n[0] = t[0]), t[0] > n[2] && (n[2] = t[0]), t[1] < n[1] && (n[1] = t[1]), t[1] > n[3] && (n[3] = t[1]);
74
- }
75
- function zt(n, t, e, i, r) {
76
- for (; e < i; e += r)
77
- Se(n, t[e], t[e + 1]);
78
- return n;
79
- }
80
- function Se(n, t, e) {
81
- 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);
82
- }
83
- function pe(n, t) {
84
- let e;
85
- return e = t(Ae(n)), e || (e = t(we(n)), e) || (e = t(Oe(n)), e) || (e = t(Ne(n)), e) ? e : !1;
86
- }
87
- function Un(n) {
88
- let t = 0;
89
- return tt(n) || (t = A(n) * X(n)), t;
90
- }
91
- function Ae(n) {
92
- return [n[0], n[1]];
93
- }
94
- function we(n) {
95
- return [n[2], n[1]];
96
- }
97
- function L(n) {
98
- return [(n[0] + n[2]) / 2, (n[1] + n[3]) / 2];
99
- }
100
- function Pe(n, t, e, i, r) {
101
- const [s, o, u, a, h, l, c, g] = Te(
102
- n,
103
- t,
104
- e,
105
- i
106
- );
107
- return J(
108
- Math.min(s, u, h, c),
109
- Math.min(o, a, l, g),
110
- Math.max(s, u, h, c),
111
- Math.max(o, a, l, g),
112
- r
113
- );
114
- }
115
- function Te(n, t, e, i) {
116
- const r = t * i[0] / 2, s = t * i[1] / 2, o = Math.cos(e), u = Math.sin(e), a = r * o, h = r * u, l = s * o, c = s * u, g = n[0], f = n[1];
117
- return [
118
- g - a + c,
119
- f - h - l,
120
- g - a - c,
121
- f - h + l,
122
- g + a - c,
123
- f + h + l,
124
- g + a + c,
125
- f + h - l,
126
- g - a + c,
127
- f - h - l
128
- ];
129
- }
130
- function X(n) {
131
- return n[3] - n[1];
132
- }
133
- function Vn(n, t, e) {
134
- const i = e || $();
135
- return lt(n, t) ? (n[0] > t[0] ? i[0] = n[0] : i[0] = t[0], n[1] > t[1] ? i[1] = n[1] : i[1] = t[1], n[2] < t[2] ? i[2] = n[2] : i[2] = t[2], n[3] < t[3] ? i[3] = n[3] : i[3] = t[3]) : Q(i), i;
136
- }
137
- function Ne(n) {
138
- return [n[0], n[3]];
139
- }
140
- function Oe(n) {
141
- return [n[2], n[3]];
142
- }
143
- function A(n) {
144
- return n[2] - n[0];
145
- }
146
- function lt(n, t) {
147
- return n[0] <= t[2] && n[2] >= t[0] && n[1] <= t[3] && n[3] >= t[1];
148
- }
149
- function tt(n) {
150
- return n[2] < n[0] || n[3] < n[1];
151
- }
152
- function xe(n, t) {
153
- return t ? (t[0] = n[0], t[1] = n[1], t[2] = n[2], t[3] = n[3], t) : n;
154
- }
155
- function Fe(n, t, e) {
156
- let i = !1;
157
- const r = Et(n, t), s = Et(n, e);
158
- if (r === C.INTERSECTING || s === C.INTERSECTING)
159
- i = !0;
160
- else {
161
- const o = n[0], u = n[1], a = n[2], h = n[3], l = t[0], c = t[1], g = e[0], f = e[1], d = (f - c) / (g - l);
162
- let R, _;
163
- s & C.ABOVE && !(r & C.ABOVE) && (R = g - (f - h) / d, i = R >= o && R <= a), !i && s & C.RIGHT && !(r & C.RIGHT) && (_ = f - (g - a) * d, i = _ >= u && _ <= h), !i && s & C.BELOW && !(r & C.BELOW) && (R = g - (f - u) / d, i = R >= o && R <= a), !i && s & C.LEFT && !(r & C.LEFT) && (_ = f - (g - o) * d, i = _ >= u && _ <= h);
164
- }
165
- return i;
166
- }
167
- function Ze(n, t, e, i) {
168
- if (tt(n))
169
- return Q(e);
170
- let r = [];
171
- r = [
172
- n[0],
173
- n[1],
174
- n[2],
175
- n[1],
176
- n[2],
177
- n[3],
178
- n[0],
179
- n[3]
180
- ], t(r, r, 2);
181
- const s = [], o = [];
182
- for (let u = 0, a = r.length; u < a; u += 2)
183
- s.push(r[u]), o.push(r[u + 1]);
184
- return ye(s, o, e);
185
- }
186
- function be(n, t) {
187
- const e = t.getExtent(), i = L(n);
188
- if (t.canWrapX() && (i[0] < e[0] || i[0] >= e[2])) {
189
- const r = A(e), o = Math.floor(
190
- (i[0] - e[0]) / r
191
- ) * r;
192
- n[0] -= o, n[2] -= o;
193
- }
194
- return n;
195
- }
196
- function Dn(n, t) {
197
- if (t.canWrapX()) {
198
- const e = t.getExtent();
199
- if (!isFinite(n[0]) || !isFinite(n[2]))
200
- return [[e[0], n[1], e[2], n[3]]];
201
- be(n, t);
202
- const i = A(e);
203
- if (A(n) > i)
204
- return [[e[0], n[1], e[2], n[3]]];
205
- if (n[0] < e[0])
206
- return [
207
- [n[0] + i, n[1], e[2], n[3]],
208
- [e[0], n[1], n[2], n[3]]
209
- ];
210
- if (n[2] > e[2])
211
- return [
212
- [n[0], n[1], e[2], n[3]],
213
- [e[0], n[1], n[2] - i, n[3]]
214
- ];
215
- }
216
- return [n];
217
- }
218
- const Ut = {
1
+ import { k as W, m as K, d as p, W as ce, f as H, b as S, i as E, n as Lt, o as ge, s as j, p as fe, q as de, r as Re, e as _e, V as me, u as nt, l as it, E as Ct } from "./has-9_asnBxn.js";
2
+ const vt = {
219
3
  // use the radius of the Normal sphere
220
4
  radians: 6370997 / (2 * Math.PI),
221
5
  degrees: 2 * Math.PI * 6370997 / 360,
@@ -223,7 +7,7 @@ const Ut = {
223
7
  m: 1,
224
8
  "us-ft": 1200 / 3937
225
9
  };
226
- class Vt {
10
+ class Yt {
227
11
  /**
228
12
  * @param {Options} options Projection options.
229
13
  */
@@ -269,7 +53,7 @@ class Vt {
269
53
  * @api
270
54
  */
271
55
  getMetersPerUnit() {
272
- return this.metersPerUnit_ || Ut[this.units_];
56
+ return this.metersPerUnit_ || vt[this.units_];
273
57
  }
274
58
  /**
275
59
  * Get the world extent for this projection.
@@ -356,8 +140,8 @@ class Vt {
356
140
  return this.getPointResolutionFunc_;
357
141
  }
358
142
  }
359
- const z = 6378137, Z = Math.PI * z, Xe = [-Z, -Z, Z, Z], Ge = [-180, -85, 180, 85], U = z * Math.log(Math.tan(Math.PI / 2));
360
- class x extends Vt {
143
+ const z = 6378137, Z = Math.PI * z, ye = [-Z, -Z, Z, Z], Me = [-180, -85, 180, 85], U = z * Math.log(Math.tan(Math.PI / 2));
144
+ class x extends Yt {
361
145
  /**
362
146
  * @param {string} code Code.
363
147
  */
@@ -365,16 +149,16 @@ class x extends Vt {
365
149
  super({
366
150
  code: t,
367
151
  units: "m",
368
- extent: Xe,
152
+ extent: ye,
369
153
  global: !0,
370
- worldExtent: Ge,
154
+ worldExtent: Me,
371
155
  getPointResolution: function(e, i) {
372
156
  return e / Math.cosh(i[1] / z);
373
157
  }
374
158
  });
375
159
  }
376
160
  }
377
- const It = [
161
+ const Et = [
378
162
  new x("EPSG:3857"),
379
163
  new x("EPSG:102100"),
380
164
  new x("EPSG:102113"),
@@ -382,7 +166,7 @@ const It = [
382
166
  new x("http://www.opengis.net/def/crs/EPSG/0/3857"),
383
167
  new x("http://www.opengis.net/gml/srs/epsg.xml#3857")
384
168
  ];
385
- function je(n, t, e) {
169
+ function Ce(n, t, e) {
386
170
  const i = n.length;
387
171
  e = e > 1 ? e : 2, t === void 0 && (e > 2 ? t = n.slice() : t = new Array(i));
388
172
  for (let r = 0; r < i; r += e) {
@@ -392,15 +176,15 @@ function je(n, t, e) {
392
176
  }
393
177
  return t;
394
178
  }
395
- function Le(n, t, e) {
179
+ function Ee(n, t, e) {
396
180
  const i = n.length;
397
181
  e = e > 1 ? e : 2, t === void 0 && (e > 2 ? t = n.slice() : t = new Array(i));
398
182
  for (let r = 0; r < i; r += e)
399
183
  t[r] = 180 * n[r] / Z, t[r + 1] = 360 * Math.atan(Math.exp(n[r + 1] / z)) / Math.PI - 90;
400
184
  return t;
401
185
  }
402
- const ve = 6378137, St = [-180, -90, 180, 90], Ye = Math.PI * ve / 180;
403
- class N extends Vt {
186
+ const Ie = 6378137, It = [-180, -90, 180, 90], Se = Math.PI * Ie / 180;
187
+ class N extends Yt {
404
188
  /**
405
189
  * @param {string} code Code.
406
190
  * @param {string} [axisOrientation] Axis orientation.
@@ -409,15 +193,15 @@ class N extends Vt {
409
193
  super({
410
194
  code: t,
411
195
  units: "degrees",
412
- extent: St,
196
+ extent: It,
413
197
  axisOrientation: e,
414
198
  global: !0,
415
- metersPerUnit: Ye,
416
- worldExtent: St
199
+ metersPerUnit: Se,
200
+ worldExtent: It
417
201
  });
418
202
  }
419
203
  }
420
- const pt = [
204
+ const St = [
421
205
  new N("CRS:84"),
422
206
  new N("EPSG:4326", "neu"),
423
207
  new N("urn:ogc:def:crs:OGC:1.3:CRS84"),
@@ -427,10 +211,10 @@ const pt = [
427
211
  new N("http://www.opengis.net/def/crs/EPSG/0/4326", "neu")
428
212
  ];
429
213
  let ot = {};
430
- function ze(n) {
214
+ function pe(n) {
431
215
  return ot[n] || ot[n.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/, "EPSG:$3")] || null;
432
216
  }
433
- function Ue(n, t) {
217
+ function Ae(n, t) {
434
218
  ot[n] = t;
435
219
  }
436
220
  let b = {};
@@ -438,10 +222,226 @@ function k(n, t, e) {
438
222
  const i = n.getCode(), r = t.getCode();
439
223
  i in b || (b[i] = {}), b[i][r] = e;
440
224
  }
441
- function Ve(n, t) {
225
+ function we(n, t) {
442
226
  let e;
443
227
  return n in b && t in b[n] && (e = b[n][t]), e;
444
228
  }
229
+ const C = {
230
+ UNKNOWN: 0,
231
+ INTERSECTING: 1,
232
+ ABOVE: 2,
233
+ RIGHT: 4,
234
+ BELOW: 8,
235
+ LEFT: 16
236
+ };
237
+ function Gn(n) {
238
+ const t = $();
239
+ for (let e = 0, i = n.length; e < i; ++e)
240
+ xe(t, n[e]);
241
+ return t;
242
+ }
243
+ function Pe(n, t, e) {
244
+ const i = Math.min.apply(null, n), r = Math.min.apply(null, t), s = Math.max.apply(null, n), o = Math.max.apply(null, t);
245
+ return J(i, r, s, o, e);
246
+ }
247
+ function jn(n, t, e) {
248
+ return e ? (e[0] = n[0] - t, e[1] = n[1] - t, e[2] = n[2] + t, e[3] = n[3] + t, e) : [
249
+ n[0] - t,
250
+ n[1] - t,
251
+ n[2] + t,
252
+ n[3] + t
253
+ ];
254
+ }
255
+ function Ln(n, t) {
256
+ return t ? (t[0] = n[0], t[1] = n[1], t[2] = n[2], t[3] = n[3], t) : n.slice();
257
+ }
258
+ function zt(n, t, e) {
259
+ let i, r;
260
+ 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;
261
+ }
262
+ function vn(n, t) {
263
+ return Ut(n, t[0], t[1]);
264
+ }
265
+ function Te(n, t) {
266
+ return n[0] <= t[0] && t[2] <= n[2] && n[1] <= t[1] && t[3] <= n[3];
267
+ }
268
+ function Ut(n, t, e) {
269
+ return n[0] <= t && t <= n[2] && n[1] <= e && e <= n[3];
270
+ }
271
+ function pt(n, t) {
272
+ const e = n[0], i = n[1], r = n[2], s = n[3], o = t[0], u = t[1];
273
+ let a = C.UNKNOWN;
274
+ return o < e ? a = a | C.LEFT : o > r && (a = a | C.RIGHT), u < i ? a = a | C.BELOW : u > s && (a = a | C.ABOVE), a === C.UNKNOWN && (a = C.INTERSECTING), a;
275
+ }
276
+ function $() {
277
+ return [1 / 0, 1 / 0, -1 / 0, -1 / 0];
278
+ }
279
+ function J(n, t, e, i, r) {
280
+ return r ? (r[0] = n, r[1] = t, r[2] = e, r[3] = i, r) : [n, t, e, i];
281
+ }
282
+ function Q(n) {
283
+ return J(1 / 0, 1 / 0, -1 / 0, -1 / 0, n);
284
+ }
285
+ function Ne(n, t) {
286
+ const e = n[0], i = n[1];
287
+ return J(e, i, e, i, t);
288
+ }
289
+ function Oe(n, t, e, i, r) {
290
+ const s = Q(r);
291
+ return Vt(s, n, t, e, i);
292
+ }
293
+ function Yn(n, t) {
294
+ return n[0] == t[0] && n[2] == t[2] && n[1] == t[1] && n[3] == t[3];
295
+ }
296
+ function zn(n, t) {
297
+ 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;
298
+ }
299
+ function xe(n, t) {
300
+ t[0] < n[0] && (n[0] = t[0]), t[0] > n[2] && (n[2] = t[0]), t[1] < n[1] && (n[1] = t[1]), t[1] > n[3] && (n[3] = t[1]);
301
+ }
302
+ function Vt(n, t, e, i, r) {
303
+ for (; e < i; e += r)
304
+ Fe(n, t[e], t[e + 1]);
305
+ return n;
306
+ }
307
+ function Fe(n, t, e) {
308
+ 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);
309
+ }
310
+ function Ze(n, t) {
311
+ let e;
312
+ return e = t(be(n)), e || (e = t(Xe(n)), e) || (e = t(ve(n)), e) || (e = t(Le(n)), e) ? e : !1;
313
+ }
314
+ function Un(n) {
315
+ let t = 0;
316
+ return tt(n) || (t = A(n) * X(n)), t;
317
+ }
318
+ function be(n) {
319
+ return [n[0], n[1]];
320
+ }
321
+ function Xe(n) {
322
+ return [n[2], n[1]];
323
+ }
324
+ function L(n) {
325
+ return [(n[0] + n[2]) / 2, (n[1] + n[3]) / 2];
326
+ }
327
+ function Ge(n, t, e, i, r) {
328
+ const [s, o, u, a, h, l, c, g] = je(
329
+ n,
330
+ t,
331
+ e,
332
+ i
333
+ );
334
+ return J(
335
+ Math.min(s, u, h, c),
336
+ Math.min(o, a, l, g),
337
+ Math.max(s, u, h, c),
338
+ Math.max(o, a, l, g),
339
+ r
340
+ );
341
+ }
342
+ function je(n, t, e, i) {
343
+ const r = t * i[0] / 2, s = t * i[1] / 2, o = Math.cos(e), u = Math.sin(e), a = r * o, h = r * u, l = s * o, c = s * u, g = n[0], f = n[1];
344
+ return [
345
+ g - a + c,
346
+ f - h - l,
347
+ g - a - c,
348
+ f - h + l,
349
+ g + a - c,
350
+ f + h + l,
351
+ g + a + c,
352
+ f + h - l,
353
+ g - a + c,
354
+ f - h - l
355
+ ];
356
+ }
357
+ function X(n) {
358
+ return n[3] - n[1];
359
+ }
360
+ function Vn(n, t, e) {
361
+ const i = e || $();
362
+ return lt(n, t) ? (n[0] > t[0] ? i[0] = n[0] : i[0] = t[0], n[1] > t[1] ? i[1] = n[1] : i[1] = t[1], n[2] < t[2] ? i[2] = n[2] : i[2] = t[2], n[3] < t[3] ? i[3] = n[3] : i[3] = t[3]) : Q(i), i;
363
+ }
364
+ function Le(n) {
365
+ return [n[0], n[3]];
366
+ }
367
+ function ve(n) {
368
+ return [n[2], n[3]];
369
+ }
370
+ function A(n) {
371
+ return n[2] - n[0];
372
+ }
373
+ function lt(n, t) {
374
+ return n[0] <= t[2] && n[2] >= t[0] && n[1] <= t[3] && n[3] >= t[1];
375
+ }
376
+ function tt(n) {
377
+ return n[2] < n[0] || n[3] < n[1];
378
+ }
379
+ function Ye(n, t) {
380
+ return t ? (t[0] = n[0], t[1] = n[1], t[2] = n[2], t[3] = n[3], t) : n;
381
+ }
382
+ function ze(n, t, e) {
383
+ let i = !1;
384
+ const r = pt(n, t), s = pt(n, e);
385
+ if (r === C.INTERSECTING || s === C.INTERSECTING)
386
+ i = !0;
387
+ else {
388
+ const o = n[0], u = n[1], a = n[2], h = n[3], l = t[0], c = t[1], g = e[0], f = e[1], d = (f - c) / (g - l);
389
+ let R, _;
390
+ s & C.ABOVE && !(r & C.ABOVE) && (R = g - (f - h) / d, i = R >= o && R <= a), !i && s & C.RIGHT && !(r & C.RIGHT) && (_ = f - (g - a) * d, i = _ >= u && _ <= h), !i && s & C.BELOW && !(r & C.BELOW) && (R = g - (f - u) / d, i = R >= o && R <= a), !i && s & C.LEFT && !(r & C.LEFT) && (_ = f - (g - o) * d, i = _ >= u && _ <= h);
391
+ }
392
+ return i;
393
+ }
394
+ function Ue(n, t, e, i) {
395
+ if (tt(n))
396
+ return Q(e);
397
+ let r = [];
398
+ r = [
399
+ n[0],
400
+ n[1],
401
+ n[2],
402
+ n[1],
403
+ n[2],
404
+ n[3],
405
+ n[0],
406
+ n[3]
407
+ ], t(r, r, 2);
408
+ const s = [], o = [];
409
+ for (let u = 0, a = r.length; u < a; u += 2)
410
+ s.push(r[u]), o.push(r[u + 1]);
411
+ return Pe(s, o, e);
412
+ }
413
+ function Ve(n, t) {
414
+ const e = t.getExtent(), i = L(n);
415
+ if (t.canWrapX() && (i[0] < e[0] || i[0] >= e[2])) {
416
+ const r = A(e), o = Math.floor(
417
+ (i[0] - e[0]) / r
418
+ ) * r;
419
+ n[0] -= o, n[2] -= o;
420
+ }
421
+ return n;
422
+ }
423
+ function Dn(n, t) {
424
+ if (t.canWrapX()) {
425
+ const e = t.getExtent();
426
+ if (!isFinite(n[0]) || !isFinite(n[2]))
427
+ return [[e[0], n[1], e[2], n[3]]];
428
+ Ve(n, t);
429
+ const i = A(e);
430
+ if (A(n) > i)
431
+ return [[e[0], n[1], e[2], n[3]]];
432
+ if (n[0] < e[0])
433
+ return [
434
+ [n[0] + i, n[1], e[2], n[3]],
435
+ [e[0], n[1], n[2], n[3]]
436
+ ];
437
+ if (n[2] > e[2])
438
+ return [
439
+ [n[0], n[1], e[2], n[3]],
440
+ [e[0], n[1], n[2] - i, n[3]]
441
+ ];
442
+ }
443
+ return [n];
444
+ }
445
445
  function De(n, t) {
446
446
  return n[0] += +t[0], n[1] += +t[1], n;
447
447
  }
@@ -529,13 +529,13 @@ function Kt(n, t) {
529
529
  return n;
530
530
  }
531
531
  function He(n) {
532
- Ue(n.getCode(), n), k(n, n, ht);
532
+ Ae(n.getCode(), n), k(n, n, ht);
533
533
  }
534
534
  function $e(n) {
535
535
  n.forEach(He);
536
536
  }
537
537
  function T(n) {
538
- return typeof n == "string" ? ze(
538
+ return typeof n == "string" ? pe(
539
539
  /** @type {string} */
540
540
  n
541
541
  ) : (
@@ -624,7 +624,7 @@ function Qn(n, t) {
624
624
  }
625
625
  function gt(n, t) {
626
626
  const e = n.getCode(), i = t.getCode();
627
- let r = Ve(e, i);
627
+ let r = we(e, i);
628
628
  return r || (r = Kt), r;
629
629
  }
630
630
  function q(n, t) {
@@ -636,7 +636,7 @@ function kt(n, t, e) {
636
636
  }
637
637
  function ti(n, t, e, i) {
638
638
  const r = q(t, e);
639
- return Ze(n, r, void 0);
639
+ return Ue(n, r, void 0);
640
640
  }
641
641
  function Pt(n, t) {
642
642
  return n;
@@ -653,11 +653,11 @@ function V(n, t) {
653
653
  return n;
654
654
  }
655
655
  function tn() {
656
- wt(It), wt(pt), Je(
657
- pt,
658
- It,
659
- je,
660
- Le
656
+ wt(Et), wt(St), Je(
657
+ St,
658
+ Et,
659
+ Ce,
660
+ Ee
661
661
  );
662
662
  }
663
663
  tn();
@@ -1315,7 +1315,7 @@ class En extends H {
1315
1315
  const e = this.computeExtent(this.extent_);
1316
1316
  (isNaN(e[0]) || isNaN(e[1])) && Q(e), this.extentRevision_ = this.getRevision();
1317
1317
  }
1318
- return xe(this.extent_, t);
1318
+ return Ye(this.extent_, t);
1319
1319
  }
1320
1320
  /**
1321
1321
  * Rotate the geometry around a given coordinate. This modifies the geometry
@@ -1457,7 +1457,7 @@ class Rt extends En {
1457
1457
  * @return {import("../extent.js").Extent} extent Extent.
1458
1458
  */
1459
1459
  computeExtent(t) {
1460
- return Ee(
1460
+ return Oe(
1461
1461
  this.flatCoordinates,
1462
1462
  0,
1463
1463
  this.flatCoordinates.length,
@@ -2046,7 +2046,7 @@ class v extends Rt {
2046
2046
  * @return {number} Minimum squared distance.
2047
2047
  */
2048
2048
  closestPointXY(t, e, i, r) {
2049
- return r < vt(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
2049
+ return r < zt(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
2050
2050
  qt(
2051
2051
  this.flatCoordinates,
2052
2052
  0,
@@ -2195,7 +2195,7 @@ class _t extends Rt {
2195
2195
  * @return {import("../extent.js").Extent} extent Extent.
2196
2196
  */
2197
2197
  computeExtent(t) {
2198
- return Ce(this.flatCoordinates, t);
2198
+ return Ne(this.flatCoordinates, t);
2199
2199
  }
2200
2200
  /**
2201
2201
  * Get the type of this geometry.
@@ -2212,7 +2212,7 @@ class _t extends Rt {
2212
2212
  * @api
2213
2213
  */
2214
2214
  intersectsExtent(t) {
2215
- return Yt(t, this.flatCoordinates[0], this.flatCoordinates[1]);
2215
+ return Ut(t, this.flatCoordinates[0], this.flatCoordinates[1]);
2216
2216
  }
2217
2217
  /**
2218
2218
  * @param {!Array<*>} coordinates Coordinates.
@@ -2229,7 +2229,7 @@ class _t extends Rt {
2229
2229
  }
2230
2230
  }
2231
2231
  function An(n, t, e, i, r) {
2232
- return !pe(
2232
+ return !Ze(
2233
2233
  r,
2234
2234
  /**
2235
2235
  * @param {import("../../coordinate.js").Coordinate} coordinate Coordinate.
@@ -2317,14 +2317,14 @@ function wn(n, t, e, i, r) {
2317
2317
  return !1;
2318
2318
  }
2319
2319
  function yt(n, t, e, i, r) {
2320
- const s = zt(
2320
+ const s = Vt(
2321
2321
  $(),
2322
2322
  n,
2323
2323
  t,
2324
2324
  e,
2325
2325
  i
2326
2326
  );
2327
- return lt(r, s) ? Me(r, s) || s[0] >= r[0] && s[2] <= r[2] || s[1] >= r[1] && s[3] <= r[3] ? !0 : wn(
2327
+ return lt(r, s) ? Te(r, s) || s[0] >= r[0] && s[2] <= r[2] || s[1] >= r[1] && s[3] <= r[3] ? !0 : wn(
2328
2328
  n,
2329
2329
  t,
2330
2330
  e,
@@ -2336,7 +2336,7 @@ function yt(n, t, e, i, r) {
2336
2336
  * `false` otherwise.
2337
2337
  */
2338
2338
  function(o, u) {
2339
- return Fe(r, o, u);
2339
+ return ze(r, o, u);
2340
2340
  }
2341
2341
  ) : !1;
2342
2342
  }
@@ -2530,7 +2530,7 @@ class Y extends Rt {
2530
2530
  * @return {number} Minimum squared distance.
2531
2531
  */
2532
2532
  closestPointXY(t, e, i, r) {
2533
- return r < vt(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
2533
+ return r < zt(this.getExtent(), t, e) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(
2534
2534
  Ht(
2535
2535
  this.flatCoordinates,
2536
2536
  0,
@@ -3162,7 +3162,7 @@ class Gt extends H {
3162
3162
  /** @type {!number} */
3163
3163
  this.getRotation()
3164
3164
  );
3165
- return p(r !== void 0, 3), Pe(e, i, r, t);
3165
+ return p(r !== void 0, 3), Ge(e, i, r, t);
3166
3166
  }
3167
3167
  /**
3168
3168
  * Get the maximum resolution of the view.
@@ -3881,7 +3881,7 @@ function xn(n) {
3881
3881
  } else {
3882
3882
  const M = (f ? Math.max(A(f), X(f)) : (
3883
3883
  // use an extent that can fit the whole world if need be
3884
- 360 * Ut.degrees / g.getMetersPerUnit()
3884
+ 360 * vt.degrees / g.getMetersPerUnit()
3885
3885
  )) / un / Math.pow(2, rt), y = M / Math.pow(2, 28 - rt);
3886
3886
  e = n.maxResolution, e !== void 0 ? o = 0 : e = M / Math.pow(a, o), i = n.minResolution, i === void 0 && (n.maxZoom !== void 0 ? n.maxResolution !== void 0 ? i = e / Math.pow(a, u) : i = M / Math.pow(a, u) : i = y), u = o + Math.floor(
3887
3887
  Math.log(e / i) / Math.log(a)
@@ -4272,7 +4272,7 @@ export {
4272
4272
  en as G,
4273
4273
  ni as H,
4274
4274
  P as I,
4275
- Pe as J,
4275
+ Ge as J,
4276
4276
  tt as K,
4277
4277
  Ii as L,
4278
4278
  Yn as M,
@@ -4282,23 +4282,23 @@ export {
4282
4282
  qe as Q,
4283
4283
  an as R,
4284
4284
  Si as S,
4285
- Ne as T,
4286
- Oe as U,
4285
+ Le as T,
4286
+ ve as U,
4287
4287
  Gt as V,
4288
- we as W,
4289
- Ae as X,
4288
+ Xe as W,
4289
+ be as X,
4290
4290
  Rn as Y,
4291
4291
  q as Z,
4292
4292
  Un as _,
4293
- Jn as a,
4294
- Ie as a0,
4293
+ ti as a,
4294
+ xe as a0,
4295
4295
  zn as a1,
4296
4296
  X as a2,
4297
4297
  L as a3,
4298
- pe as a4,
4298
+ Ze as a4,
4299
4299
  Hn as a5,
4300
4300
  vn as a6,
4301
- Te as a7,
4301
+ je as a7,
4302
4302
  si as a8,
4303
4303
  T as a9,
4304
4304
  gi as aA,
@@ -4309,20 +4309,20 @@ export {
4309
4309
  Sn as aF,
4310
4310
  yn as aG,
4311
4311
  Dn as aH,
4312
- Me as aI,
4312
+ Te as aI,
4313
4313
  De as aJ,
4314
- Et as aK,
4314
+ pt as aK,
4315
4315
  C as aL,
4316
4316
  F as aM,
4317
4317
  Bt as aN,
4318
4318
  ei as aO,
4319
4319
  ai as aP,
4320
4320
  ii as aQ,
4321
- be as aR,
4321
+ Ve as aR,
4322
4322
  $n as aS,
4323
4323
  Qn as aa,
4324
4324
  Rt as ab,
4325
- vt as ac,
4325
+ zt as ac,
4326
4326
  qt as ad,
4327
4327
  $t as ae,
4328
4328
  wn as af,
@@ -4336,8 +4336,8 @@ export {
4336
4336
  ci as an,
4337
4337
  mi as ao,
4338
4338
  te as ap,
4339
- Yt as aq,
4340
- Ee as ar,
4339
+ Ut as aq,
4340
+ Oe as ar,
4341
4341
  ui as as,
4342
4342
  li as at,
4343
4343
  Ri as au,
@@ -4346,9 +4346,9 @@ export {
4346
4346
  fi as ax,
4347
4347
  _i as ay,
4348
4348
  Mi as az,
4349
- kt as b,
4349
+ Jn as b,
4350
4350
  Gn as c,
4351
- Ce as d,
4351
+ Ne as d,
4352
4352
  kn as e,
4353
4353
  w as f,
4354
4354
  B as g,
@@ -4364,7 +4364,7 @@ export {
4364
4364
  Wn as q,
4365
4365
  Ei as r,
4366
4366
  Dt as s,
4367
- ti as t,
4367
+ kt as t,
4368
4368
  rn as u,
4369
4369
  ri as v,
4370
4370
  qn as w,