aviation-chart 0.1.9 → 0.1.11

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.
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
1
1
  import jt from "maplibre-gl";
2
2
  var vt, Rt, Ot;
3
- function Mt(o, r) {
3
+ function Mt(o, a) {
4
4
  if (!vt)
5
- vt = r;
5
+ vt = a;
6
6
  else if (!Rt)
7
- Rt = r;
7
+ Rt = a;
8
8
  else {
9
9
  var u = "var sharedChunk = {}; (" + vt + ")(sharedChunk); (" + Rt + ")(sharedChunk);", g = {};
10
- vt(g), Ot = r(g), typeof window < "u" && (Ot.workerUrl = window.URL.createObjectURL(
10
+ vt(g), Ot = a(g), typeof window < "u" && (Ot.workerUrl = window.URL.createObjectURL(
11
11
  new Blob([u], { type: "text/javascript" })
12
12
  ));
13
13
  }
14
14
  }
15
15
  Mt(["exports"], function(o) {
16
- class r {
16
+ class a {
17
17
  constructor(e, i) {
18
18
  this.start = e, this.end = i, this.points = [], this.append = this.append.bind(this), this.prepend = this.prepend.bind(this);
19
19
  }
@@ -141,21 +141,21 @@ Mt(["exports"], function(o) {
141
141
  function x(t, e, i = 4096, n = 1) {
142
142
  if (!t)
143
143
  return {};
144
- const a = i / (e.width - 1);
145
- let l, s, c, m, h, d;
146
- const f = {}, w = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map();
144
+ const r = i / (e.width - 1);
145
+ let l, s, c, m, f, h;
146
+ const d = {}, w = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map();
147
147
  function C(P, I, k) {
148
- P[0] === 0 ? k(a * (d - 1), a * (h - y(c, I, l))) : P[0] === 2 ? k(a * d, a * (h - y(m, I, s))) : P[1] === 0 ? k(a * (d - y(s, I, l)), a * (h - 1)) : k(a * (d - y(m, I, c)), a * h);
148
+ P[0] === 0 ? k(r * (h - 1), r * (f - y(c, I, l))) : P[0] === 2 ? k(r * h, r * (f - y(m, I, s))) : P[1] === 0 ? k(r * (h - y(s, I, l)), r * (f - 1)) : k(r * (h - y(m, I, c)), r * f);
149
149
  }
150
- for (h = 1 - n; h < e.height + n; h++) {
151
- s = e.get(0, h - 1), m = e.get(0, h);
150
+ for (f = 1 - n; f < e.height + n; f++) {
151
+ s = e.get(0, f - 1), m = e.get(0, f);
152
152
  let P = Math.min(s, m), I = Math.max(s, m);
153
- for (d = 1 - n; d < e.width + n; d++) {
154
- l = s, c = m, s = e.get(d, h - 1), m = e.get(d, h);
153
+ for (h = 1 - n; h < e.width + n; h++) {
154
+ l = s, c = m, s = e.get(h, f - 1), m = e.get(h, f);
155
155
  const k = P, V = I;
156
156
  if (P = Math.min(s, m), I = Math.max(s, m), isNaN(l) || isNaN(s) || isNaN(m) || isNaN(c))
157
157
  continue;
158
- const ft = Math.min(k, P), pt = Math.max(V, I), X = Math.ceil(ft / t) * t, ot = Math.floor(pt / t) * t;
158
+ const dt = Math.min(k, P), pt = Math.max(V, I), X = Math.ceil(dt / t) * t, ot = Math.floor(pt / t) * t;
159
159
  for (let R = X; R <= ot; R += t) {
160
160
  const At = l > R, q = s > R, nt = c > R, _t = m > R;
161
161
  for (const bt of u[(At ? 8 : 0) | (q ? 4 : 0) | (_t ? 2 : 0) | (nt ? 1 : 0)]) {
@@ -163,14 +163,14 @@ Mt(["exports"], function(o) {
163
163
  Y || w.set(R, Y = /* @__PURE__ */ new Map());
164
164
  let lt = F.get(R);
165
165
  lt || F.set(R, lt = /* @__PURE__ */ new Map());
166
- const kt = bt[0], zt = bt[1], yt = g(e.width, d, h, kt), st = g(e.width, d, h, zt);
166
+ const kt = bt[0], zt = bt[1], yt = g(e.width, h, f, kt), st = g(e.width, h, f, zt);
167
167
  let L, Tt;
168
168
  if (L = lt.get(yt))
169
169
  if (lt.delete(yt), Tt = Y.get(st))
170
170
  if (Y.delete(st), L === Tt) {
171
171
  if (C(zt, R, L.append), !L.isEmpty()) {
172
- let rt = f[R];
173
- rt || (f[R] = rt = []), rt.push(L.lineString());
172
+ let rt = d[R];
173
+ rt || (d[R] = rt = []), rt.push(L.lineString());
174
174
  }
175
175
  } else
176
176
  L.appendFragment(Tt), lt.set(L.end = Tt.end, L);
@@ -179,7 +179,7 @@ Mt(["exports"], function(o) {
179
179
  else if (L = Y.get(st))
180
180
  Y.delete(st), C(kt, R, L.prepend), Y.set(L.start = yt, L);
181
181
  else {
182
- const rt = new r(yt, st);
182
+ const rt = new a(yt, st);
183
183
  C(kt, R, rt.append), C(zt, R, rt.append), Y.set(yt, rt), lt.set(st, rt);
184
184
  }
185
185
  }
@@ -189,9 +189,9 @@ Mt(["exports"], function(o) {
189
189
  for (const [P, I] of w.entries()) {
190
190
  let k = null;
191
191
  for (const V of I.values())
192
- V.isEmpty() || (k == null && (k = f[P] || (f[P] = [])), k.push(V.lineString()));
192
+ V.isEmpty() || (k == null && (k = d[P] || (d[P] = [])), k.push(V.lineString()));
193
193
  }
194
- return f;
194
+ return d;
195
195
  }
196
196
  function z(t) {
197
197
  const e = Object.entries(t);
@@ -209,18 +209,18 @@ Mt(["exports"], function(o) {
209
209
  function _(t) {
210
210
  return Object.fromEntries(t.replace(/^.*\?/, "").split("&").map((e) => {
211
211
  const i = e.split("=").map(decodeURIComponent), n = i[0];
212
- let a = i[1];
212
+ let r = i[1];
213
213
  switch (n) {
214
214
  case "thresholds":
215
- a = O(a);
215
+ r = O(r);
216
216
  break;
217
217
  case "extent":
218
218
  case "multiplier":
219
219
  case "overzoom":
220
220
  case "buffer":
221
- a = Number(a);
221
+ r = Number(r);
222
222
  }
223
- return [n, a];
223
+ return [n, r];
224
224
  }));
225
225
  }
226
226
  function p(t) {
@@ -228,12 +228,12 @@ Mt(["exports"], function(o) {
228
228
  }
229
229
  function b(t, e) {
230
230
  const { thresholds: i, ...n } = t;
231
- let a = [], l = -1 / 0;
231
+ let r = [], l = -1 / 0;
232
232
  return Object.entries(i).forEach(([s, c]) => {
233
233
  const m = Number(s);
234
- m <= e && m > l && (l = m, a = typeof c == "number" ? [c] : c);
234
+ m <= e && m > l && (l = m, r = typeof c == "number" ? [c] : c);
235
235
  }), {
236
- levels: a,
236
+ levels: r,
237
237
  ...n
238
238
  };
239
239
  }
@@ -243,8 +243,8 @@ Mt(["exports"], function(o) {
243
243
  }
244
244
  function D(t, e) {
245
245
  return t.then(({ data: i, ...n }) => {
246
- let a = i;
247
- return e && (a = new Float32Array(i.length), a.set(i)), { ...n, data: a, transferrables: [a.buffer] };
246
+ let r = i;
247
+ return e && (r = new Float32Array(i.length), r.set(i)), { ...n, data: r, transferrables: [r.buffer] };
248
248
  });
249
249
  }
250
250
  function M(t) {
@@ -265,13 +265,13 @@ Mt(["exports"], function(o) {
265
265
  if (tt == null && (tt = !1, ct() && typeof VideoFrame < "u")) {
266
266
  const i = new OffscreenCanvas(5, 5).getContext("2d", { willReadFrequently: !0 });
267
267
  if (i) {
268
- for (let a = 0; a < 5 * 5; a++) {
269
- const l = a * 4;
270
- i.fillStyle = `rgb(${l},${l + 1},${l + 2})`, i.fillRect(a % 5, Math.floor(a / 5), 1, 1);
268
+ for (let r = 0; r < 5 * 5; r++) {
269
+ const l = r * 4;
270
+ i.fillStyle = `rgb(${l},${l + 1},${l + 2})`, i.fillRect(r % 5, Math.floor(r / 5), 1, 1);
271
271
  }
272
272
  const n = i.getImageData(0, 0, 5, 5).data;
273
- for (let a = 0; a < 5 * 5 * 4; a++)
274
- if (a % 4 !== 3 && n[a] !== a) {
273
+ for (let r = 0; r < 5 * 5 * 4; r++)
274
+ if (r % 4 !== 3 && n[r] !== r) {
275
275
  tt = !0;
276
276
  break;
277
277
  }
@@ -282,18 +282,18 @@ Mt(["exports"], function(o) {
282
282
  function G(t, e, i) {
283
283
  let n = () => {
284
284
  };
285
- const a = setTimeout(() => {
285
+ const r = setTimeout(() => {
286
286
  n(new Error("timed out")), i == null || i.abort();
287
287
  }, t);
288
288
  U(i, () => {
289
- n(new Error("aborted")), clearTimeout(a);
289
+ n(new Error("aborted")), clearTimeout(r);
290
290
  });
291
291
  const l = new Promise((s, c) => {
292
292
  n = c;
293
293
  });
294
294
  return Promise.race([
295
295
  l,
296
- e.finally(() => clearTimeout(a))
296
+ e.finally(() => clearTimeout(r))
297
297
  ]);
298
298
  }
299
299
  function U(t, e) {
@@ -306,32 +306,32 @@ Mt(["exports"], function(o) {
306
306
  let E = 0;
307
307
  class Z {
308
308
  constructor(e = 100) {
309
- this.size = () => this.items.size, this.get = (i, n, a) => {
309
+ this.size = () => this.items.size, this.get = (i, n, r) => {
310
310
  let l = this.items.get(i);
311
311
  if (l)
312
312
  l.lastUsed = ++E, l.waiting++;
313
313
  else {
314
- const h = new AbortController(), d = n(i, h);
314
+ const f = new AbortController(), h = n(i, f);
315
315
  l = {
316
- abortController: h,
317
- item: d,
316
+ abortController: f,
317
+ item: h,
318
318
  lastUsed: ++E,
319
319
  waiting: 1
320
320
  }, this.items.set(i, l), this.prune();
321
321
  }
322
- const s = this.items, c = l.item.then((h) => h, (h) => (s.delete(i), Promise.reject(h)));
322
+ const s = this.items, c = l.item.then((f) => f, (f) => (s.delete(i), Promise.reject(f)));
323
323
  let m = !1;
324
- return U(a, () => {
325
- var h;
326
- l && l.abortController && !m && (m = !0, --l.waiting <= 0 && ((h = l.abortController) === null || h === void 0 || h.abort(), s.delete(i)));
324
+ return U(r, () => {
325
+ var f;
326
+ l && l.abortController && !m && (m = !0, --l.waiting <= 0 && ((f = l.abortController) === null || f === void 0 || f.abort(), s.delete(i)));
327
327
  }), c;
328
328
  }, this.clear = () => this.items.clear(), this.maxSize = e, this.items = /* @__PURE__ */ new Map();
329
329
  }
330
330
  prune() {
331
331
  if (this.items.size > this.maxSize) {
332
332
  let e, i = 1 / 0;
333
- this.items.forEach((n, a) => {
334
- n.lastUsed < i && (i = n.lastUsed, e = a);
333
+ this.items.forEach((n, r) => {
334
+ n.lastUsed < i && (i = n.lastUsed, e = r);
335
335
  }), typeof e < "u" && this.items.delete(e);
336
336
  }
337
337
  }
@@ -347,21 +347,21 @@ Mt(["exports"], function(o) {
347
347
  })), Lt(t, e, K, et);
348
348
  }
349
349
  async function xt(t, e, i) {
350
- var n, a, l;
350
+ var n, r, l;
351
351
  const s = await createImageBitmap(t);
352
352
  if (B(i))
353
353
  return null;
354
354
  const c = new VideoFrame(s, { timestamp: 0 });
355
355
  try {
356
- if (!(((n = c == null ? void 0 : c.format) === null || n === void 0 ? void 0 : n.startsWith("BGR")) || ((a = c == null ? void 0 : c.format) === null || a === void 0 ? void 0 : a.startsWith("RGB"))))
356
+ if (!(((n = c == null ? void 0 : c.format) === null || n === void 0 ? void 0 : n.startsWith("BGR")) || ((r = c == null ? void 0 : c.format) === null || r === void 0 ? void 0 : r.startsWith("RGB"))))
357
357
  throw new Error(`Unrecognized format: ${c == null ? void 0 : c.format}`);
358
- const h = (l = c == null ? void 0 : c.format) === null || l === void 0 ? void 0 : l.startsWith("BGR"), d = c.allocationSize(), f = new Uint8ClampedArray(d);
359
- if (await c.copyTo(f), h)
360
- for (let w = 0; w < f.length; w += 4) {
361
- const F = f[w];
362
- f[w] = f[w + 2], f[w + 2] = F;
358
+ const f = (l = c == null ? void 0 : c.format) === null || l === void 0 ? void 0 : l.startsWith("BGR"), h = c.allocationSize(), d = new Uint8ClampedArray(h);
359
+ if (await c.copyTo(d), f)
360
+ for (let w = 0; w < d.length; w += 4) {
361
+ const F = d[w];
362
+ d[w] = d[w + 2], d[w + 2] = F;
363
363
  }
364
- return Dt(s.width, s.height, e, f);
364
+ return Dt(s.width, s.height, e, d);
365
365
  } catch {
366
366
  return B(i) ? null : W(s, e);
367
367
  } finally {
@@ -374,12 +374,12 @@ Mt(["exports"], function(o) {
374
374
  }));
375
375
  const n = new Image();
376
376
  U(i, () => n.src = "");
377
- const a = await new Promise((l, s) => {
377
+ const r = await new Promise((l, s) => {
378
378
  n.onload = () => {
379
379
  B(i) || l(n), URL.revokeObjectURL(n.src), n.onload = null;
380
380
  }, n.onerror = () => s(new Error("Could not load image.")), n.src = t.size ? URL.createObjectURL(t) : "";
381
381
  });
382
- return Lt(a, e, N, it);
382
+ return Lt(r, e, N, it);
383
383
  }
384
384
  function te(t, e, i) {
385
385
  return self.actor.send("decodeImage", [], i, void 0, t, e);
@@ -396,13 +396,13 @@ Mt(["exports"], function(o) {
396
396
  if (i.width = t.width, i.height = t.height, !n)
397
397
  throw new Error("failed to get context");
398
398
  n.drawImage(t, 0, 0, t.width, t.height);
399
- const a = n.getImageData(0, 0, t.width, t.height).data;
400
- return Dt(t.width, t.height, e, a);
399
+ const r = n.getImageData(0, 0, t.width, t.height).data;
400
+ return Dt(t.width, t.height, e, r);
401
401
  }
402
402
  function Dt(t, e, i, n) {
403
- const a = i === "mapbox" ? (s, c, m) => -1e4 + (s * 256 * 256 + c * 256 + m) * 0.1 : (s, c, m) => s * 256 + c + m / 256 - 32768, l = new Float32Array(t * e);
403
+ const r = i === "mapbox" ? (s, c, m) => -1e4 + (s * 256 * 256 + c * 256 + m) * 0.1 : (s, c, m) => s * 256 + c + m / 256 - 32768, l = new Float32Array(t * e);
404
404
  for (let s = 0; s < n.length; s += 4)
405
- l[s / 4] = a(n[s], n[s + 1], n[s + 2]);
405
+ l[s / 4] = r(n[s], n[s + 1], n[s + 2]);
406
406
  return { width: t, height: e, data: l };
407
407
  }
408
408
  const ie = -12e3, oe = 9e3;
@@ -411,40 +411,40 @@ Mt(["exports"], function(o) {
411
411
  }
412
412
  class $ {
413
413
  constructor(e, i, n) {
414
- this.split = (a, l, s) => {
415
- if (a === 0)
414
+ this.split = (r, l, s) => {
415
+ if (r === 0)
416
416
  return this;
417
- const c = 1 << a, m = l * this.width / c, h = s * this.height / c;
418
- return new $(this.width / c, this.height / c, (d, f) => this.get(d + m, f + h));
419
- }, this.subsamplePixelCenters = (a) => {
420
- const l = (m, h, d) => isNaN(m) ? h : isNaN(h) ? m : m + (h - m) * d;
421
- if (a <= 1)
417
+ const c = 1 << r, m = l * this.width / c, f = s * this.height / c;
418
+ return new $(this.width / c, this.height / c, (h, d) => this.get(h + m, d + f));
419
+ }, this.subsamplePixelCenters = (r) => {
420
+ const l = (m, f, h) => isNaN(m) ? f : isNaN(f) ? m : m + (f - m) * h;
421
+ if (r <= 1)
422
422
  return this;
423
- const s = 0.5 - 1 / (2 * a), c = (m, h) => {
424
- const d = m / a - s, f = h / a - s, w = Math.floor(d), F = Math.floor(f), C = this.get(w, F), P = this.get(w + 1, F), I = this.get(w, F + 1), k = this.get(w + 1, F + 1), V = d - w, ft = f - F, pt = l(C, P, V), X = l(I, k, V);
425
- return l(pt, X, ft);
423
+ const s = 0.5 - 1 / (2 * r), c = (m, f) => {
424
+ const h = m / r - s, d = f / r - s, w = Math.floor(h), F = Math.floor(d), C = this.get(w, F), P = this.get(w + 1, F), I = this.get(w, F + 1), k = this.get(w + 1, F + 1), V = h - w, dt = d - F, pt = l(C, P, V), X = l(I, k, V);
425
+ return l(pt, X, dt);
426
426
  };
427
- return new $(this.width * a, this.height * a, c);
428
- }, this.averagePixelCentersToGrid = (a = 1) => new $(this.width + 1, this.height + 1, (l, s) => {
429
- let c = 0, m = 0, h = 0;
430
- for (let d = l - a; d < l + a; d++)
431
- for (let f = s - a; f < s + a; f++)
432
- isNaN(h = this.get(d, f)) || (m++, c += h);
427
+ return new $(this.width * r, this.height * r, c);
428
+ }, this.averagePixelCentersToGrid = (r = 1) => new $(this.width + 1, this.height + 1, (l, s) => {
429
+ let c = 0, m = 0, f = 0;
430
+ for (let h = l - r; h < l + r; h++)
431
+ for (let d = s - r; d < s + r; d++)
432
+ isNaN(f = this.get(h, d)) || (m++, c += f);
433
433
  return m === 0 ? NaN : c / m;
434
- }), this.scaleElevation = (a) => a === 1 ? this : new $(this.width, this.height, (l, s) => this.get(l, s) * a), this.materialize = (a = 2) => {
435
- const l = this.width + 2 * a, s = new Float32Array(l * (this.height + 2 * a));
434
+ }), this.scaleElevation = (r) => r === 1 ? this : new $(this.width, this.height, (l, s) => this.get(l, s) * r), this.materialize = (r = 2) => {
435
+ const l = this.width + 2 * r, s = new Float32Array(l * (this.height + 2 * r));
436
436
  let c = 0;
437
- for (let m = -a; m < this.height + a; m++)
438
- for (let h = -a; h < this.width + a; h++)
439
- s[c++] = this.get(h, m);
440
- return new $(this.width, this.height, (m, h) => s[(h + a) * l + m + a]);
437
+ for (let m = -r; m < this.height + r; m++)
438
+ for (let f = -r; f < this.width + r; f++)
439
+ s[c++] = this.get(f, m);
440
+ return new $(this.width, this.height, (m, f) => s[(f + r) * l + m + r]);
441
441
  }, this.get = n, this.width = e, this.height = i;
442
442
  }
443
443
  /** Construct a height tile from raw DEM pixel values */
444
444
  static fromRawDem(e) {
445
445
  return new $(e.width, e.height, (i, n) => {
446
- const a = e.data[n * e.width + i];
447
- return re(a) ? a : NaN;
446
+ const r = e.data[n * e.width + i];
447
+ return re(r) ? r : NaN;
448
448
  });
449
449
  }
450
450
  /**
@@ -459,10 +459,10 @@ Mt(["exports"], function(o) {
459
459
  const i = e[4];
460
460
  if (!i)
461
461
  return;
462
- const n = i.width, a = i.height;
463
- return new $(n, a, (l, s) => {
462
+ const n = i.width, r = i.height;
463
+ return new $(n, r, (l, s) => {
464
464
  let c = 0;
465
- s < 0 ? s += a : s < a ? c += 3 : (s -= a, c += 6), l < 0 ? l += n : l < n ? c += 1 : (l -= n, c += 2);
465
+ s < 0 ? s += r : s < r ? c += 3 : (s -= r, c += 6), l < 0 ? l += n : l < n ? c += 1 : (l -= n, c += 2);
466
466
  const m = e[c];
467
467
  return m ? m.get(l, s) : NaN;
468
468
  });
@@ -473,25 +473,25 @@ Mt(["exports"], function(o) {
473
473
  }
474
474
  var Et = {};
475
475
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
476
- Et.read = function(t, e, i, n, a) {
477
- var l, s, c = a * 8 - n - 1, m = (1 << c) - 1, h = m >> 1, d = -7, f = i ? a - 1 : 0, w = i ? -1 : 1, F = t[e + f];
478
- for (f += w, l = F & (1 << -d) - 1, F >>= -d, d += c; d > 0; l = l * 256 + t[e + f], f += w, d -= 8)
476
+ Et.read = function(t, e, i, n, r) {
477
+ var l, s, c = r * 8 - n - 1, m = (1 << c) - 1, f = m >> 1, h = -7, d = i ? r - 1 : 0, w = i ? -1 : 1, F = t[e + d];
478
+ for (d += w, l = F & (1 << -h) - 1, F >>= -h, h += c; h > 0; l = l * 256 + t[e + d], d += w, h -= 8)
479
479
  ;
480
- for (s = l & (1 << -d) - 1, l >>= -d, d += n; d > 0; s = s * 256 + t[e + f], f += w, d -= 8)
480
+ for (s = l & (1 << -h) - 1, l >>= -h, h += n; h > 0; s = s * 256 + t[e + d], d += w, h -= 8)
481
481
  ;
482
482
  if (l === 0)
483
- l = 1 - h;
483
+ l = 1 - f;
484
484
  else {
485
485
  if (l === m)
486
486
  return s ? NaN : (F ? -1 : 1) * (1 / 0);
487
- s = s + Math.pow(2, n), l = l - h;
487
+ s = s + Math.pow(2, n), l = l - f;
488
488
  }
489
489
  return (F ? -1 : 1) * s * Math.pow(2, l - n);
490
- }, Et.write = function(t, e, i, n, a, l) {
491
- var s, c, m, h = l * 8 - a - 1, d = (1 << h) - 1, f = d >> 1, w = a === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, F = n ? 0 : l - 1, C = n ? 1 : -1, P = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
492
- for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (c = isNaN(e) ? 1 : 0, s = d) : (s = Math.floor(Math.log(e) / Math.LN2), e * (m = Math.pow(2, -s)) < 1 && (s--, m *= 2), s + f >= 1 ? e += w / m : e += w * Math.pow(2, 1 - f), e * m >= 2 && (s++, m /= 2), s + f >= d ? (c = 0, s = d) : s + f >= 1 ? (c = (e * m - 1) * Math.pow(2, a), s = s + f) : (c = e * Math.pow(2, f - 1) * Math.pow(2, a), s = 0)); a >= 8; t[i + F] = c & 255, F += C, c /= 256, a -= 8)
490
+ }, Et.write = function(t, e, i, n, r, l) {
491
+ var s, c, m, f = l * 8 - r - 1, h = (1 << f) - 1, d = h >> 1, w = r === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, F = n ? 0 : l - 1, C = n ? 1 : -1, P = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
492
+ for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (c = isNaN(e) ? 1 : 0, s = h) : (s = Math.floor(Math.log(e) / Math.LN2), e * (m = Math.pow(2, -s)) < 1 && (s--, m *= 2), s + d >= 1 ? e += w / m : e += w * Math.pow(2, 1 - d), e * m >= 2 && (s++, m /= 2), s + d >= h ? (c = 0, s = h) : s + d >= 1 ? (c = (e * m - 1) * Math.pow(2, r), s = s + d) : (c = e * Math.pow(2, d - 1) * Math.pow(2, r), s = 0)); r >= 8; t[i + F] = c & 255, F += C, c /= 256, r -= 8)
493
493
  ;
494
- for (s = s << a | c, h += a; h > 0; t[i + F] = s & 255, F += C, s /= 256, h -= 8)
494
+ for (s = s << r | c, f += r; f > 0; t[i + F] = s & 255, F += C, s /= 256, f -= 8)
495
495
  ;
496
496
  t[i + F - C] |= P * 128;
497
497
  };
@@ -508,8 +508,8 @@ Mt(["exports"], function(o) {
508
508
  // === READING =================================================================
509
509
  readFields: function(t, e, i) {
510
510
  for (i = i || this.length; this.pos < i; ) {
511
- var n = this.readVarint(), a = n >> 3, l = this.pos;
512
- this.type = n & 7, t(a, e, this), this.pos === l && this.skip(n);
511
+ var n = this.readVarint(), r = n >> 3, l = this.pos;
512
+ this.type = n & 7, t(r, e, this), this.pos === l && this.skip(n);
513
513
  }
514
514
  return e;
515
515
  },
@@ -642,16 +642,16 @@ Mt(["exports"], function(o) {
642
642
  return this.length = this.pos, this.pos = 0, this.buf.subarray(0, this.length);
643
643
  },
644
644
  writeFixed32: function(t) {
645
- this.realloc(4), ht(this.buf, t, this.pos), this.pos += 4;
645
+ this.realloc(4), ft(this.buf, t, this.pos), this.pos += 4;
646
646
  },
647
647
  writeSFixed32: function(t) {
648
- this.realloc(4), ht(this.buf, t, this.pos), this.pos += 4;
648
+ this.realloc(4), ft(this.buf, t, this.pos), this.pos += 4;
649
649
  },
650
650
  writeFixed64: function(t) {
651
- this.realloc(8), ht(this.buf, t & -1, this.pos), ht(this.buf, Math.floor(t * Gt), this.pos + 4), this.pos += 8;
651
+ this.realloc(8), ft(this.buf, t & -1, this.pos), ft(this.buf, Math.floor(t * Gt), this.pos + 4), this.pos += 8;
652
652
  },
653
653
  writeSFixed64: function(t) {
654
- this.realloc(8), ht(this.buf, t & -1, this.pos), ht(this.buf, Math.floor(t * Gt), this.pos + 4), this.pos += 8;
654
+ this.realloc(8), ft(this.buf, t & -1, this.pos), ft(this.buf, Math.floor(t * Gt), this.pos + 4), this.pos += 8;
655
655
  },
656
656
  writeVarint: function(t) {
657
657
  if (t = +t || 0, t > 268435455 || t < 0) {
@@ -695,10 +695,10 @@ Mt(["exports"], function(o) {
695
695
  this.writeTag(t, T.Bytes), this.writeRawMessage(e, i);
696
696
  },
697
697
  writePackedVarint: function(t, e) {
698
- e.length && this.writeMessage(t, de, e);
698
+ e.length && this.writeMessage(t, he, e);
699
699
  },
700
700
  writePackedSVarint: function(t, e) {
701
- e.length && this.writeMessage(t, fe, e);
701
+ e.length && this.writeMessage(t, de, e);
702
702
  },
703
703
  writePackedBoolean: function(t, e) {
704
704
  e.length && this.writeMessage(t, ye, e);
@@ -756,8 +756,8 @@ Mt(["exports"], function(o) {
756
756
  }
757
757
  };
758
758
  function se(t, e, i) {
759
- var n = i.buf, a, l;
760
- if (l = n[i.pos++], a = (l & 112) >> 4, l < 128 || (l = n[i.pos++], a |= (l & 127) << 3, l < 128) || (l = n[i.pos++], a |= (l & 127) << 10, l < 128) || (l = n[i.pos++], a |= (l & 127) << 17, l < 128) || (l = n[i.pos++], a |= (l & 127) << 24, l < 128) || (l = n[i.pos++], a |= (l & 1) << 31, l < 128)) return mt(t, a, e);
759
+ var n = i.buf, r, l;
760
+ if (l = n[i.pos++], r = (l & 112) >> 4, l < 128 || (l = n[i.pos++], r |= (l & 127) << 3, l < 128) || (l = n[i.pos++], r |= (l & 127) << 10, l < 128) || (l = n[i.pos++], r |= (l & 127) << 17, l < 128) || (l = n[i.pos++], r |= (l & 127) << 24, l < 128) || (l = n[i.pos++], r |= (l & 1) << 31, l < 128)) return mt(t, r, e);
761
761
  throw new Error("Expected varint not more than 10 bytes");
762
762
  }
763
763
  function J(t) {
@@ -770,24 +770,24 @@ Mt(["exports"], function(o) {
770
770
  var i, n;
771
771
  if (t >= 0 ? (i = t % 4294967296 | 0, n = t / 4294967296 | 0) : (i = ~(-t % 4294967296), n = ~(-t / 4294967296), i ^ 4294967295 ? i = i + 1 | 0 : (i = 0, n = n + 1 | 0)), t >= 18446744073709552e3 || t < -18446744073709552e3)
772
772
  throw new Error("Given varint doesn't fit into 10 bytes");
773
- e.realloc(10), me(i, n, e), he(n, e);
773
+ e.realloc(10), me(i, n, e), fe(n, e);
774
774
  }
775
775
  function me(t, e, i) {
776
776
  i.buf[i.pos++] = t & 127 | 128, t >>>= 7, i.buf[i.pos++] = t & 127 | 128, t >>>= 7, i.buf[i.pos++] = t & 127 | 128, t >>>= 7, i.buf[i.pos++] = t & 127 | 128, t >>>= 7, i.buf[i.pos] = t & 127;
777
777
  }
778
- function he(t, e) {
778
+ function fe(t, e) {
779
779
  var i = (t & 7) << 4;
780
780
  e.buf[e.pos++] |= i | ((t >>>= 3) ? 128 : 0), t && (e.buf[e.pos++] = t & 127 | ((t >>>= 7) ? 128 : 0), t && (e.buf[e.pos++] = t & 127 | ((t >>>= 7) ? 128 : 0), t && (e.buf[e.pos++] = t & 127 | ((t >>>= 7) ? 128 : 0), t && (e.buf[e.pos++] = t & 127 | ((t >>>= 7) ? 128 : 0), t && (e.buf[e.pos++] = t & 127)))));
781
781
  }
782
782
  function Xt(t, e, i) {
783
783
  var n = e <= 16383 ? 1 : e <= 2097151 ? 2 : e <= 268435455 ? 3 : Math.floor(Math.log(e) / (Math.LN2 * 7));
784
784
  i.realloc(n);
785
- for (var a = i.pos - 1; a >= t; a--) i.buf[a + n] = i.buf[a];
785
+ for (var r = i.pos - 1; r >= t; r--) i.buf[r + n] = i.buf[r];
786
786
  }
787
- function de(t, e) {
787
+ function he(t, e) {
788
788
  for (var i = 0; i < t.length; i++) e.writeVarint(t[i]);
789
789
  }
790
- function fe(t, e) {
790
+ function de(t, e) {
791
791
  for (var i = 0; i < t.length; i++) e.writeSVarint(t[i]);
792
792
  }
793
793
  function ue(t, e) {
@@ -814,18 +814,18 @@ Mt(["exports"], function(o) {
814
814
  function wt(t, e) {
815
815
  return (t[e] | t[e + 1] << 8 | t[e + 2] << 16) + t[e + 3] * 16777216;
816
816
  }
817
- function ht(t, e, i) {
817
+ function ft(t, e, i) {
818
818
  t[i] = e, t[i + 1] = e >>> 8, t[i + 2] = e >>> 16, t[i + 3] = e >>> 24;
819
819
  }
820
820
  function Nt(t, e) {
821
821
  return (t[e] | t[e + 1] << 8 | t[e + 2] << 16) + (t[e + 3] << 24);
822
822
  }
823
823
  function be(t, e, i) {
824
- for (var n = "", a = e; a < i; ) {
825
- var l = t[a], s = null, c = l > 239 ? 4 : l > 223 ? 3 : l > 191 ? 2 : 1;
826
- if (a + c > i) break;
827
- var m, h, d;
828
- c === 1 ? l < 128 && (s = l) : c === 2 ? (m = t[a + 1], (m & 192) === 128 && (s = (l & 31) << 6 | m & 63, s <= 127 && (s = null))) : c === 3 ? (m = t[a + 1], h = t[a + 2], (m & 192) === 128 && (h & 192) === 128 && (s = (l & 15) << 12 | (m & 63) << 6 | h & 63, (s <= 2047 || s >= 55296 && s <= 57343) && (s = null))) : c === 4 && (m = t[a + 1], h = t[a + 2], d = t[a + 3], (m & 192) === 128 && (h & 192) === 128 && (d & 192) === 128 && (s = (l & 15) << 18 | (m & 63) << 12 | (h & 63) << 6 | d & 63, (s <= 65535 || s >= 1114112) && (s = null))), s === null ? (s = 65533, c = 1) : s > 65535 && (s -= 65536, n += String.fromCharCode(s >>> 10 & 1023 | 55296), s = 56320 | s & 1023), n += String.fromCharCode(s), a += c;
824
+ for (var n = "", r = e; r < i; ) {
825
+ var l = t[r], s = null, c = l > 239 ? 4 : l > 223 ? 3 : l > 191 ? 2 : 1;
826
+ if (r + c > i) break;
827
+ var m, f, h;
828
+ c === 1 ? l < 128 && (s = l) : c === 2 ? (m = t[r + 1], (m & 192) === 128 && (s = (l & 31) << 6 | m & 63, s <= 127 && (s = null))) : c === 3 ? (m = t[r + 1], f = t[r + 2], (m & 192) === 128 && (f & 192) === 128 && (s = (l & 15) << 12 | (m & 63) << 6 | f & 63, (s <= 2047 || s >= 55296 && s <= 57343) && (s = null))) : c === 4 && (m = t[r + 1], f = t[r + 2], h = t[r + 3], (m & 192) === 128 && (f & 192) === 128 && (h & 192) === 128 && (s = (l & 15) << 18 | (m & 63) << 12 | (f & 63) << 6 | h & 63, (s <= 65535 || s >= 1114112) && (s = null))), s === null ? (s = 65533, c = 1) : s > 65535 && (s -= 65536, n += String.fromCharCode(s >>> 10 & 1023 | 55296), s = 56320 | s & 1023), n += String.fromCharCode(s), r += c;
829
829
  }
830
830
  return n;
831
831
  }
@@ -833,27 +833,27 @@ Mt(["exports"], function(o) {
833
833
  return Bt.decode(t.subarray(e, i));
834
834
  }
835
835
  function Te(t, e, i) {
836
- for (var n = 0, a, l; n < e.length; n++) {
837
- if (a = e.charCodeAt(n), a > 55295 && a < 57344)
836
+ for (var n = 0, r, l; n < e.length; n++) {
837
+ if (r = e.charCodeAt(n), r > 55295 && r < 57344)
838
838
  if (l)
839
- if (a < 56320) {
840
- t[i++] = 239, t[i++] = 191, t[i++] = 189, l = a;
839
+ if (r < 56320) {
840
+ t[i++] = 239, t[i++] = 191, t[i++] = 189, l = r;
841
841
  continue;
842
842
  } else
843
- a = l - 55296 << 10 | a - 56320 | 65536, l = null;
843
+ r = l - 55296 << 10 | r - 56320 | 65536, l = null;
844
844
  else {
845
- a > 56319 || n + 1 === e.length ? (t[i++] = 239, t[i++] = 191, t[i++] = 189) : l = a;
845
+ r > 56319 || n + 1 === e.length ? (t[i++] = 239, t[i++] = 191, t[i++] = 189) : l = r;
846
846
  continue;
847
847
  }
848
848
  else l && (t[i++] = 239, t[i++] = 191, t[i++] = 189, l = null);
849
- a < 128 ? t[i++] = a : (a < 2048 ? t[i++] = a >> 6 | 192 : (a < 65536 ? t[i++] = a >> 12 | 224 : (t[i++] = a >> 18 | 240, t[i++] = a >> 12 & 63 | 128), t[i++] = a >> 6 & 63 | 128), t[i++] = a & 63 | 128);
849
+ r < 128 ? t[i++] = r : (r < 2048 ? t[i++] = r >> 6 | 192 : (r < 65536 ? t[i++] = r >> 12 | 224 : (t[i++] = r >> 18 | 240, t[i++] = r >> 12 & 63 | 128), t[i++] = r >> 6 & 63 | 128), t[i++] = r & 63 | 128);
850
850
  }
851
851
  return i;
852
852
  }
853
- var ve = /* @__PURE__ */ ae(ne), dt;
853
+ var ve = /* @__PURE__ */ ae(ne), ht;
854
854
  (function(t) {
855
855
  t[t.UNKNOWN = 0] = "UNKNOWN", t[t.POINT = 1] = "POINT", t[t.LINESTRING = 2] = "LINESTRING", t[t.POLYGON = 3] = "POLYGON";
856
- })(dt || (dt = {}));
856
+ })(ht || (ht = {}));
857
857
  function De(t) {
858
858
  const e = new ve();
859
859
  for (const i in t.layers) {
@@ -889,17 +889,17 @@ Mt(["exports"], function(o) {
889
889
  const i = t.feature;
890
890
  if (!i || !e)
891
891
  throw new Error();
892
- const n = t.keys, a = t.values, l = t.keycache, s = t.valuecache;
892
+ const n = t.keys, r = t.values, l = t.keycache, s = t.valuecache;
893
893
  for (const c in i.properties) {
894
- let m = i.properties[c], h = l[c];
894
+ let m = i.properties[c], f = l[c];
895
895
  if (m === null)
896
896
  continue;
897
- typeof h > "u" && (n.push(c), h = n.length - 1, l[c] = h), e.writeVarint(h);
898
- const d = typeof m;
899
- d !== "string" && d !== "boolean" && d !== "number" && (m = JSON.stringify(m));
900
- const f = `${d}:${m}`;
901
- let w = s[f];
902
- typeof w > "u" && (a.push(m), w = a.length - 1, s[f] = w), e.writeVarint(w);
897
+ typeof f > "u" && (n.push(c), f = n.length - 1, l[c] = f), e.writeVarint(f);
898
+ const h = typeof m;
899
+ h !== "string" && h !== "boolean" && h !== "number" && (m = JSON.stringify(m));
900
+ const d = `${h}:${m}`;
901
+ let w = s[d];
902
+ typeof w > "u" && (r.push(m), w = r.length - 1, s[d] = w), e.writeVarint(w);
903
903
  }
904
904
  }
905
905
  function St(t, e) {
@@ -912,17 +912,17 @@ Mt(["exports"], function(o) {
912
912
  if (!e)
913
913
  throw new Error();
914
914
  const i = t.geometry, n = t.type;
915
- let a = 0, l = 0;
915
+ let r = 0, l = 0;
916
916
  for (const s of i) {
917
917
  let c = 1;
918
- n === dt.POINT && (c = s.length / 2), e.writeVarint(St(1, c));
919
- const m = s.length / 2, h = n === dt.POLYGON ? m - 1 : m;
920
- for (let d = 0; d < h; d++) {
921
- d === 1 && n !== 1 && e.writeVarint(St(2, h - 1));
922
- const f = s[d * 2] - a, w = s[d * 2 + 1] - l;
923
- e.writeVarint(Vt(f)), e.writeVarint(Vt(w)), a += f, l += w;
918
+ n === ht.POINT && (c = s.length / 2), e.writeVarint(St(1, c));
919
+ const m = s.length / 2, f = n === ht.POLYGON ? m - 1 : m;
920
+ for (let h = 0; h < f; h++) {
921
+ h === 1 && n !== 1 && e.writeVarint(St(2, f - 1));
922
+ const d = s[h * 2] - r, w = s[h * 2 + 1] - l;
923
+ e.writeVarint(Vt(d)), e.writeVarint(Vt(w)), r += d, l += w;
924
924
  }
925
- n === dt.POLYGON && e.writeVarint(St(7, 1));
925
+ n === ht.POLYGON && e.writeVarint(St(7, 1));
926
926
  }
927
927
  }
928
928
  function ke(t, e) {
@@ -931,52 +931,52 @@ Mt(["exports"], function(o) {
931
931
  typeof t == "string" ? e.writeStringField(1, t) : typeof t == "boolean" ? e.writeBooleanField(7, t) : typeof t == "number" && (t % 1 !== 0 ? e.writeDoubleField(3, t) : t < 0 ? e.writeSVarintField(6, t) : e.writeVarintField(5, t));
932
932
  }
933
933
  class Re {
934
- constructor(e, i, n, a, l) {
935
- this.loaded = Promise.resolve(), this.decodeImage = It, this.fetchAndParseTile = (s, c, m, h, d) => {
936
- const f = this, w = this.demUrlPattern.replace("{z}", s.toString()).replace("{x}", c.toString()).replace("{y}", m.toString());
937
- return d == null || d.useTile(w), this.parsedCache.get(w, async (F, C) => {
938
- const P = await f.fetchTile(s, c, m, C, d);
934
+ constructor(e, i, n, r, l) {
935
+ this.loaded = Promise.resolve(), this.decodeImage = It, this.fetchAndParseTile = (s, c, m, f, h) => {
936
+ const d = this, w = this.demUrlPattern.replace("{z}", s.toString()).replace("{x}", c.toString()).replace("{y}", m.toString());
937
+ return h == null || h.useTile(w), this.parsedCache.get(w, async (F, C) => {
938
+ const P = await d.fetchTile(s, c, m, C, h);
939
939
  if (B(C))
940
940
  throw new Error("canceled");
941
- const I = f.decodeImage(P.data, f.encoding, C), k = d == null ? void 0 : d.marker("decode"), V = await I;
941
+ const I = d.decodeImage(P.data, d.encoding, C), k = h == null ? void 0 : h.marker("decode"), V = await I;
942
942
  return k == null || k(), V;
943
- }, h);
944
- }, this.tileCache = new Z(i), this.parsedCache = new Z(i), this.contourCache = new Z(i), this.timeoutMs = l, this.demUrlPattern = e, this.encoding = n, this.maxzoom = a;
943
+ }, f);
944
+ }, this.tileCache = new Z(i), this.parsedCache = new Z(i), this.contourCache = new Z(i), this.timeoutMs = l, this.demUrlPattern = e, this.encoding = n, this.maxzoom = r;
945
945
  }
946
- fetchTile(e, i, n, a, l) {
946
+ fetchTile(e, i, n, r, l) {
947
947
  const s = this.demUrlPattern.replace("{z}", e.toString()).replace("{x}", i.toString()).replace("{y}", n.toString());
948
948
  return l == null || l.useTile(s), this.tileCache.get(s, (c, m) => {
949
- const h = {
949
+ const f = {
950
950
  signal: m.signal
951
951
  };
952
952
  l == null || l.fetchTile(s);
953
- const d = l == null ? void 0 : l.marker("fetch");
954
- return G(this.timeoutMs, fetch(s, h).then(async (f) => {
955
- if (d == null || d(), !f.ok)
956
- throw new Error(`Bad response: ${f.status} for ${s}`);
953
+ const h = l == null ? void 0 : l.marker("fetch");
954
+ return G(this.timeoutMs, fetch(s, f).then(async (d) => {
955
+ if (h == null || h(), !d.ok)
956
+ throw new Error(`Bad response: ${d.status} for ${s}`);
957
957
  return {
958
- data: await f.blob(),
959
- expires: f.headers.get("expires") || void 0,
960
- cacheControl: f.headers.get("cache-control") || void 0
958
+ data: await d.blob(),
959
+ expires: d.headers.get("expires") || void 0,
960
+ cacheControl: d.headers.get("cache-control") || void 0
961
961
  };
962
962
  }), m);
963
- }, a);
963
+ }, r);
964
964
  }
965
- async fetchDem(e, i, n, a, l, s) {
966
- const c = Math.min(e - (a.overzoom || 0), this.maxzoom), m = e - c, h = 1 << m, d = Math.floor(i / h), f = Math.floor(n / h), w = await this.fetchAndParseTile(c, d, f, l, s);
967
- return $.fromRawDem(w).split(m, i % h, n % h);
965
+ async fetchDem(e, i, n, r, l, s) {
966
+ const c = Math.min(e - (r.overzoom || 0), this.maxzoom), m = e - c, f = 1 << m, h = Math.floor(i / f), d = Math.floor(n / f), w = await this.fetchAndParseTile(c, h, d, l, s);
967
+ return $.fromRawDem(w).split(m, i % f, n % f);
968
968
  }
969
- fetchContourTile(e, i, n, a, l, s) {
970
- const { levels: c, multiplier: m = 1, buffer: h = 1, extent: d = 4096, contourLayer: f = "contours", elevationKey: w = "ele", levelKey: F = "level", subsampleBelow: C = 100 } = a;
969
+ fetchContourTile(e, i, n, r, l, s) {
970
+ const { levels: c, multiplier: m = 1, buffer: f = 1, extent: h = 4096, contourLayer: d = "contours", elevationKey: w = "ele", levelKey: F = "level", subsampleBelow: C = 100 } = r;
971
971
  if (!c || c.length === 0)
972
972
  return Promise.resolve({ arrayBuffer: new ArrayBuffer(0) });
973
- const P = [e, i, n, p(a)].join("/");
973
+ const P = [e, i, n, p(r)].join("/");
974
974
  return this.contourCache.get(P, async (I, k) => {
975
- const V = 1 << e, ft = [];
975
+ const V = 1 << e, dt = [];
976
976
  for (let q = n - 1; q <= n + 1; q++)
977
977
  for (let nt = i - 1; nt <= i + 1; nt++)
978
- ft.push(q < 0 || q >= V ? void 0 : this.fetchDem(e, (nt + V) % V, q, a, k, s));
979
- const pt = await Promise.all(ft);
978
+ dt.push(q < 0 || q >= V ? void 0 : this.fetchDem(e, (nt + V) % V, q, r, k, s));
979
+ const pt = await Promise.all(dt);
980
980
  let X = $.combineNeighbors(pt);
981
981
  if (!X || B(k))
982
982
  return { arrayBuffer: new Uint8Array().buffer };
@@ -987,16 +987,16 @@ Mt(["exports"], function(o) {
987
987
  for (; X.width < C; )
988
988
  X = X.subsamplePixelCenters(2).materialize(2);
989
989
  X = X.averagePixelCentersToGrid().scaleElevation(m).materialize(1);
990
- const R = x(c[0], X, d, h);
990
+ const R = x(c[0], X, h, f);
991
991
  ot == null || ot();
992
992
  const At = De({
993
- extent: d,
993
+ extent: h,
994
994
  layers: {
995
- [f]: {
995
+ [d]: {
996
996
  features: Object.entries(R).map(([q, nt]) => {
997
997
  const _t = Number(q);
998
998
  return {
999
- type: dt.LINESTRING,
999
+ type: ht.LINESTRING,
1000
1000
  geometry: nt,
1001
1001
  properties: {
1002
1002
  [w]: _t,
@@ -1030,9 +1030,9 @@ Mt(["exports"], function(o) {
1030
1030
  this.marks = {}, this.urls = [], this.fetched = [], this.resources = [], this.tilesFetched = 0, this.timeOrigin = Ce, this.finish = (i) => {
1031
1031
  this.markFinish();
1032
1032
  const n = (m) => {
1033
- const h = this.marks[m] || [], d = Math.max(...h.map((w) => Math.max(...w))), f = Math.min(...h.map((w) => Math.min(...w)));
1034
- return Number.isFinite(d) ? d - f : void 0;
1035
- }, a = n("main") || 0, l = n("fetch"), s = n("decode"), c = n("isoline");
1033
+ const f = this.marks[m] || [], h = Math.max(...f.map((w) => Math.max(...w))), d = Math.min(...f.map((w) => Math.min(...w)));
1034
+ return Number.isFinite(h) ? h - d : void 0;
1035
+ }, r = n("main") || 0, l = n("fetch"), s = n("decode"), c = n("isoline");
1036
1036
  return {
1037
1037
  url: i,
1038
1038
  tilesUsed: this.tilesFetched,
@@ -1042,17 +1042,17 @@ Mt(["exports"], function(o) {
1042
1042
  ...this.resources,
1043
1043
  ...Oe(this.fetched.map(Pe))
1044
1044
  ],
1045
- duration: a,
1045
+ duration: r,
1046
1046
  fetch: l,
1047
1047
  decode: s,
1048
1048
  process: c,
1049
- wait: a - (l || 0) - (s || 0) - (c || 0)
1049
+ wait: r - (l || 0) - (s || 0) - (c || 0)
1050
1050
  };
1051
1051
  }, this.error = (i) => ({ ...this.finish(i), error: !0 }), this.marker = (i) => {
1052
1052
  var n;
1053
1053
  this.marks[i] || (this.marks[i] = []);
1054
- const a = [Ut()];
1055
- return (n = this.marks[i]) === null || n === void 0 || n.push(a), () => a.push(Ut());
1054
+ const r = [Ut()];
1055
+ return (n = this.marks[i]) === null || n === void 0 || n.push(r), () => r.push(Ut());
1056
1056
  }, this.useTile = (i) => {
1057
1057
  this.urls.indexOf(i) < 0 && (this.urls.push(i), this.tilesFetched++);
1058
1058
  }, this.fetchTile = (i) => {
@@ -1060,12 +1060,12 @@ Mt(["exports"], function(o) {
1060
1060
  }, this.addAll = (i) => {
1061
1061
  var n;
1062
1062
  this.tilesFetched += i.tilesUsed;
1063
- const a = i.origin - this.timeOrigin;
1063
+ const r = i.origin - this.timeOrigin;
1064
1064
  for (const l in i.marks) {
1065
1065
  const s = l;
1066
- (this.marks[s] || (this.marks[s] = [])).push(...((n = i.marks[s]) === null || n === void 0 ? void 0 : n.map((m) => m.map((h) => h + a))) || []);
1066
+ (this.marks[s] || (this.marks[s] = [])).push(...((n = i.marks[s]) === null || n === void 0 ? void 0 : n.map((m) => m.map((f) => f + r))) || []);
1067
1067
  }
1068
- this.resources.push(...i.resources.map((l) => Ie(l, a)));
1068
+ this.resources.push(...i.resources.map((l) => Ie(l, r)));
1069
1069
  }, this.markFinish = this.marker(e);
1070
1070
  }
1071
1071
  }
@@ -1079,8 +1079,8 @@ Mt(["exports"], function(o) {
1079
1079
  let Le = 0;
1080
1080
  class Ge {
1081
1081
  constructor(e, i, n = 2e4) {
1082
- this.callbacks = {}, this.cancels = {}, this.dest = e, this.timeoutMs = n, this.dest.onmessage = async ({ data: a }) => {
1083
- const l = a;
1082
+ this.callbacks = {}, this.cancels = {}, this.dest = e, this.timeoutMs = n, this.dest.onmessage = async ({ data: r }) => {
1083
+ const l = r;
1084
1084
  if (l.type === "cancel") {
1085
1085
  const s = this.cancels[l.id];
1086
1086
  delete this.cancels[l.id], s == null || s.abort();
@@ -1088,27 +1088,27 @@ Mt(["exports"], function(o) {
1088
1088
  const s = this.callbacks[l.id];
1089
1089
  delete this.callbacks[l.id], s && s(l.error ? new Error(l.error) : void 0, l.response, l.timings);
1090
1090
  } else if (l.type === "request") {
1091
- const s = new Wt("worker"), c = i[l.name], m = new AbortController(), h = c.apply(c, [
1091
+ const s = new Wt("worker"), c = i[l.name], m = new AbortController(), f = c.apply(c, [
1092
1092
  ...l.args,
1093
1093
  m,
1094
1094
  s
1095
- ]), d = `${l.name}_${l.id}`;
1096
- if (l.id && h) {
1095
+ ]), h = `${l.name}_${l.id}`;
1096
+ if (l.id && f) {
1097
1097
  this.cancels[l.id] = m;
1098
1098
  try {
1099
- const f = await h, w = f == null ? void 0 : f.transferrables;
1099
+ const d = await f, w = d == null ? void 0 : d.transferrables;
1100
1100
  this.postMessage({
1101
1101
  id: l.id,
1102
1102
  type: "response",
1103
- response: f,
1104
- timings: s.finish(d)
1103
+ response: d,
1104
+ timings: s.finish(h)
1105
1105
  }, w);
1106
- } catch (f) {
1106
+ } catch (d) {
1107
1107
  this.postMessage({
1108
1108
  id: l.id,
1109
1109
  type: "response",
1110
- error: (f == null ? void 0 : f.toString()) || "error",
1111
- timings: s.finish(d)
1110
+ error: (d == null ? void 0 : d.toString()) || "error",
1111
+ timings: s.finish(h)
1112
1112
  });
1113
1113
  }
1114
1114
  delete this.cancels[l.id];
@@ -1120,10 +1120,10 @@ Mt(["exports"], function(o) {
1120
1120
  this.dest.postMessage(e, i || []);
1121
1121
  }
1122
1122
  /** Invokes a method by name with a set of arguments in the remote context. */
1123
- send(e, i, n, a, ...l) {
1124
- const s = ++Le, c = new Promise((m, h) => {
1125
- this.postMessage({ id: s, type: "request", name: e, args: l }, i), this.callbacks[s] = (d, f, w) => {
1126
- a == null || a.addAll(w), d ? h(d) : m(f);
1123
+ send(e, i, n, r, ...l) {
1124
+ const s = ++Le, c = new Promise((m, f) => {
1125
+ this.postMessage({ id: s, type: "request", name: e, args: l }, i), this.callbacks[s] = (h, d, w) => {
1126
+ r == null || r.addAll(w), h ? f(h) : m(d);
1127
1127
  };
1128
1128
  });
1129
1129
  return U(n, () => {
@@ -1134,18 +1134,18 @@ Mt(["exports"], function(o) {
1134
1134
  o.A = Ge, o.H = $, o.L = Re, o.T = Wt, o.a = _, o.b = x, o.c = Dt, o.d = It, o.e = A, o.f = M, o.g = b, o.p = D;
1135
1135
  });
1136
1136
  Mt(["./shared"], function(o) {
1137
- const r = (y) => Promise.reject(new Error(`No manager registered for ${y}`));
1137
+ const a = (y) => Promise.reject(new Error(`No manager registered for ${y}`));
1138
1138
  class u {
1139
1139
  constructor() {
1140
1140
  this.managers = {}, this.init = (x, z) => (this.managers[x.managerId] = new o.L(x.demUrlPattern, x.cacheSize, x.encoding, x.maxzoom, x.timeoutMs), Promise.resolve()), this.fetchTile = (x, z, S, O, A, _) => {
1141
1141
  var p;
1142
- return ((p = this.managers[x]) === null || p === void 0 ? void 0 : p.fetchTile(z, S, O, A, _)) || r(x);
1142
+ return ((p = this.managers[x]) === null || p === void 0 ? void 0 : p.fetchTile(z, S, O, A, _)) || a(x);
1143
1143
  }, this.fetchAndParseTile = (x, z, S, O, A, _) => {
1144
1144
  var p;
1145
- return o.p(((p = this.managers[x]) === null || p === void 0 ? void 0 : p.fetchAndParseTile(z, S, O, A, _)) || r(x), !0);
1145
+ return o.p(((p = this.managers[x]) === null || p === void 0 ? void 0 : p.fetchAndParseTile(z, S, O, A, _)) || a(x), !0);
1146
1146
  }, this.fetchContourTile = (x, z, S, O, A, _, p) => {
1147
1147
  var b;
1148
- return o.f(((b = this.managers[x]) === null || b === void 0 ? void 0 : b.fetchContourTile(z, S, O, A, _, p)) || r(x));
1148
+ return o.f(((b = this.managers[x]) === null || b === void 0 ? void 0 : b.fetchContourTile(z, S, O, A, _, p)) || a(x));
1149
1149
  };
1150
1150
  }
1151
1151
  }
@@ -1153,7 +1153,7 @@ Mt(["./shared"], function(o) {
1153
1153
  g.actor = new o.A(g, new u());
1154
1154
  });
1155
1155
  Mt(["./shared"], function(o) {
1156
- const r = { workerUrl: "" };
1156
+ const a = { workerUrl: "" };
1157
1157
  let u, g = 0;
1158
1158
  class y {
1159
1159
  constructor() {
@@ -1162,7 +1162,7 @@ Mt(["./shared"], function(o) {
1162
1162
  }
1163
1163
  function x() {
1164
1164
  if (!u) {
1165
- const p = new Worker(r.workerUrl), b = new y();
1165
+ const p = new Worker(a.workerUrl), b = new y();
1166
1166
  u = new o.A(p, b);
1167
1167
  }
1168
1168
  return u;
@@ -1253,10 +1253,10 @@ Mt(["./shared"], function(o) {
1253
1253
  LocalDemManager: o.L,
1254
1254
  decodeParsedImage: o.c,
1255
1255
  set workerUrl(p) {
1256
- r.workerUrl = p;
1256
+ a.workerUrl = p;
1257
1257
  },
1258
1258
  get workerUrl() {
1259
- return r.workerUrl;
1259
+ return a.workerUrl;
1260
1260
  }
1261
1261
  };
1262
1262
  });
@@ -1266,27 +1266,27 @@ function Xe(o) {
1266
1266
  }
1267
1267
  function Ne(o) {
1268
1268
  if (o == null) return Xe;
1269
- var r, u, g = o.scale[0], y = o.scale[1], x = o.translate[0], z = o.translate[1];
1269
+ var a, u, g = o.scale[0], y = o.scale[1], x = o.translate[0], z = o.translate[1];
1270
1270
  return function(S, O) {
1271
- O || (r = u = 0);
1271
+ O || (a = u = 0);
1272
1272
  var A = 2, _ = S.length, p = new Array(_);
1273
- for (p[0] = (r += S[0]) * g + x, p[1] = (u += S[1]) * y + z; A < _; ) p[A] = S[A], ++A;
1273
+ for (p[0] = (a += S[0]) * g + x, p[1] = (u += S[1]) * y + z; A < _; ) p[A] = S[A], ++A;
1274
1274
  return p;
1275
1275
  };
1276
1276
  }
1277
- function Ve(o, r) {
1278
- for (var u, g = o.length, y = g - r; y < --g; ) u = o[y], o[y++] = o[g], o[g] = u;
1277
+ function Ve(o, a) {
1278
+ for (var u, g = o.length, y = g - a; y < --g; ) u = o[y], o[y++] = o[g], o[g] = u;
1279
1279
  }
1280
- function $t(o, r) {
1281
- return typeof r == "string" && (r = o.objects[r]), r.type === "GeometryCollection" ? { type: "FeatureCollection", features: r.geometries.map(function(u) {
1280
+ function $t(o, a) {
1281
+ return typeof a == "string" && (a = o.objects[a]), a.type === "GeometryCollection" ? { type: "FeatureCollection", features: a.geometries.map(function(u) {
1282
1282
  return Kt(o, u);
1283
- }) } : Kt(o, r);
1283
+ }) } : Kt(o, a);
1284
1284
  }
1285
- function Kt(o, r) {
1286
- var u = r.id, g = r.bbox, y = r.properties == null ? {} : r.properties, x = Ue(o, r);
1285
+ function Kt(o, a) {
1286
+ var u = a.id, g = a.bbox, y = a.properties == null ? {} : a.properties, x = Ue(o, a);
1287
1287
  return u == null && g == null ? { type: "Feature", properties: y, geometry: x } : g == null ? { type: "Feature", id: u, properties: y, geometry: x } : { type: "Feature", id: u, bbox: g, properties: y, geometry: x };
1288
1288
  }
1289
- function Ue(o, r) {
1289
+ function Ue(o, a) {
1290
1290
  var u = Ne(o.transform), g = o.arcs;
1291
1291
  function y(_, p) {
1292
1292
  p.length && p.pop();
@@ -1336,7 +1336,7 @@ function Ue(o, r) {
1336
1336
  }
1337
1337
  return { type: p, coordinates: b };
1338
1338
  }
1339
- return A(r);
1339
+ return A(a);
1340
1340
  }
1341
1341
  const We = {
1342
1342
  airspaceStroke: "#AAB7B8",
@@ -1351,7 +1351,7 @@ const We = {
1351
1351
  runway: "#333333"
1352
1352
  };
1353
1353
  function je() {
1354
- const o = "navdata", r = We;
1354
+ const o = "navdata", a = We;
1355
1355
  return [
1356
1356
  {
1357
1357
  id: "landLaye",
@@ -1408,7 +1408,7 @@ function je() {
1408
1408
  "source-layer": "fir",
1409
1409
  minzoom: 2,
1410
1410
  // layout: { "line-cap": "butt", "line-join": "miter", "line-miter-limit": 0 },
1411
- paint: { "line-color": r.airspaceStroke, "line-opacity": ["interpolate", ["linear"], ["zoom"], 2, 0, 2.7, 0.8, 9, 0.8, 10, 0.5], "line-width": 0.5, "line-dasharray": [4.2, 4] }
1411
+ paint: { "line-color": a.airspaceStroke, "line-opacity": ["interpolate", ["linear"], ["zoom"], 2, 0, 2.7, 0.8, 9, 0.8, 10, 0.5], "line-width": 0.5, "line-dasharray": [4.2, 4] }
1412
1412
  },
1413
1413
  {
1414
1414
  id: "fir_line_dash",
@@ -1417,7 +1417,7 @@ function je() {
1417
1417
  "source-layer": "fir",
1418
1418
  minzoom: 5,
1419
1419
  layout: { "line-miter-limit": 0, "line-cap": "butt", "line-join": "miter" },
1420
- paint: { "line-color": r.airspaceStroke, "line-opacity": ["interpolate", ["linear"], ["zoom"], 5, 0, 5.5, 0.8, 9, 0.8, 10, 0.5], "line-width": 6, "line-dasharray": [0.2, 5] }
1420
+ paint: { "line-color": a.airspaceStroke, "line-opacity": ["interpolate", ["linear"], ["zoom"], 5, 0, 5.5, 0.8, 9, 0.8, 10, 0.5], "line-width": 6, "line-dasharray": [0.2, 5] }
1421
1421
  },
1422
1422
  {
1423
1423
  id: "fir-label-lineside",
@@ -1426,7 +1426,7 @@ function je() {
1426
1426
  "source-layer": "fir",
1427
1427
  minzoom: 4,
1428
1428
  layout: { "text-field": ["concat", ["get", "TXT_NAME"], "/", ["get", "CODE_ID"], "/", ["get", "CODE_TYPE"]], "text-size": 10, "symbol-placement": "line", "text-max-width": 8, "text-offset": [0, 1], "text-letter-spacing": 0.05, "text-optional": !0 },
1429
- paint: { "text-color": r.airspaceStroke }
1429
+ paint: { "text-color": a.airspaceStroke }
1430
1430
  },
1431
1431
  {
1432
1432
  id: "fir-label",
@@ -1441,7 +1441,7 @@ function je() {
1441
1441
  "text-max-width": 8
1442
1442
  },
1443
1443
  paint: {
1444
- "text-color": r.airspaceStroke,
1444
+ "text-color": a.airspaceStroke,
1445
1445
  "text-opacity": ["interpolate", ["linear"], ["zoom"], 3, 0.85, 8, 0.7, 12, 0.5]
1446
1446
  }
1447
1447
  },
@@ -1474,7 +1474,7 @@ function je() {
1474
1474
  type: "line",
1475
1475
  source: o,
1476
1476
  "source-layer": "restricted",
1477
- paint: { "line-color": r.restrictedStroke, "line-width": 1, "line-dasharray": [2, 2], "line-opacity": ["interpolate", ["linear"], ["zoom"], 4, 0.5, 8, 1] }
1477
+ paint: { "line-color": "#f6bf65", "line-width": 1, "line-dasharray": [2, 2], "line-opacity": ["interpolate", ["linear"], ["zoom"], 4, 0.5, 8, 1] }
1478
1478
  },
1479
1479
  {
1480
1480
  id: "restricted-label",
@@ -1483,7 +1483,7 @@ function je() {
1483
1483
  "source-layer": "restricted",
1484
1484
  minzoom: 6,
1485
1485
  layout: { "text-field": ["concat", ["get", "TXT_NAME"], "/", ["get", "CODE_ID"], "/", ["get", "CODE_TYPE"]], "text-letter-spacing": 0.1, "text-size": 10, "symbol-placement": "line", "text-max-width": 8, "text-offset": [0, 1] },
1486
- paint: { "text-color": r.restrictedStroke }
1486
+ paint: { "text-color": a.restrictedStroke }
1487
1487
  },
1488
1488
  {
1489
1489
  id: "controlled-fill",
@@ -1499,7 +1499,7 @@ function je() {
1499
1499
  ["!=", ["get", "CODE_TYPE"], "TRSA"]
1500
1500
  ],
1501
1501
  paint: {
1502
- "fill-color": r.controlledFill,
1502
+ "fill-color": a.controlledFill,
1503
1503
  "fill-opacity": [
1504
1504
  "interpolate",
1505
1505
  [
@@ -1527,7 +1527,7 @@ function je() {
1527
1527
  ["!=", ["get", "CODE_TYPE"], "TRSA"]
1528
1528
  ],
1529
1529
  paint: {
1530
- "line-color": r.controlledStroke,
1530
+ "line-color": a.controlledStroke,
1531
1531
  "line-width": 1,
1532
1532
  "line-opacity": ["interpolate", ["linear"], ["zoom"], 4, 0.5, 8, 1],
1533
1533
  "line-dasharray": [
@@ -1549,7 +1549,7 @@ function je() {
1549
1549
  "source-layer": "controlled",
1550
1550
  minzoom: 6,
1551
1551
  layout: { "text-field": ["concat", ["get", "TXT_NAME"], "/", ["get", "CODE_ID"], "/", ["get", "CODE_TYPE"]], "text-size": 10, "symbol-placement": "line", "text-letter-spacing": 0.2, "text-max-width": 8, "text-offset": [0, 1] },
1552
- paint: { "text-color": r.controlledStroke }
1552
+ paint: { "text-color": a.controlledStroke }
1553
1553
  },
1554
1554
  {
1555
1555
  id: "segment-line",
@@ -1558,7 +1558,7 @@ function je() {
1558
1558
  "source-layer": "segment",
1559
1559
  minzoom: 5,
1560
1560
  paint: {
1561
- "line-color": ["case", ["==", ["get", "HAS_REMARK"], 1], "#E8A020", r.segment],
1561
+ "line-color": ["case", ["==", ["get", "HAS_REMARK"], 1], "#E8A020", a.segment],
1562
1562
  "line-width": ["interpolate", ["linear"], ["zoom"], 5, 0.2, 8, 0.8],
1563
1563
  "line-blur": 0,
1564
1564
  "line-opacity": [
@@ -1634,7 +1634,7 @@ function je() {
1634
1634
  paint: {
1635
1635
  "text-halo-color": "#ffffff",
1636
1636
  "text-halo-width": 0.1,
1637
- "icon-color": r.segment,
1637
+ "icon-color": a.segment,
1638
1638
  "text-opacity": [
1639
1639
  "interpolate",
1640
1640
  [
@@ -1683,7 +1683,7 @@ function je() {
1683
1683
  "text-offset": [0, -0.6],
1684
1684
  "text-justify": "auto"
1685
1685
  },
1686
- paint: { "text-color": r.segment }
1686
+ paint: { "text-color": a.segment }
1687
1687
  },
1688
1688
  {
1689
1689
  id: "airport-circle",
@@ -1728,7 +1728,7 @@ function je() {
1728
1728
  "case",
1729
1729
  ["has", "has_amm"],
1730
1730
  "#4B2D6E",
1731
- r.airport
1731
+ a.airport
1732
1732
  ],
1733
1733
  "icon-opacity": [
1734
1734
  "interpolate",
@@ -1783,7 +1783,7 @@ function je() {
1783
1783
  "case",
1784
1784
  ["has", "has_amm"],
1785
1785
  "#4B2D6E",
1786
- r.airport
1786
+ a.airport
1787
1787
  ]
1788
1788
  }
1789
1789
  },
@@ -1796,7 +1796,7 @@ function je() {
1796
1796
  minzoom: 4,
1797
1797
  maxzoom: 11,
1798
1798
  paint: {
1799
- "line-color": r.runway,
1799
+ "line-color": a.runway,
1800
1800
  "line-width": ["interpolate", ["linear"], ["zoom"], 4, 1, 13, 10]
1801
1801
  }
1802
1802
  },
@@ -1809,7 +1809,7 @@ function je() {
1809
1809
  minzoom: 4,
1810
1810
  maxzoom: 11,
1811
1811
  paint: {
1812
- "line-color": r.runway,
1812
+ "line-color": a.runway,
1813
1813
  "line-width": ["interpolate", ["linear"], ["zoom"], 4, 1, 10, 4],
1814
1814
  "line-opacity": ["interpolate", ["linear"], ["zoom"], 10.5, 1, 11, 0]
1815
1815
  }
@@ -1828,7 +1828,7 @@ function je() {
1828
1828
  "text-optional": !0
1829
1829
  },
1830
1830
  paint: {
1831
- "text-color": r.runway,
1831
+ "text-color": a.runway,
1832
1832
  "text-halo-width": 1,
1833
1833
  "text-opacity": ["interpolate", ["linear"], ["zoom"], 10.5, 1, 11, 0]
1834
1834
  }
@@ -1880,7 +1880,7 @@ function je() {
1880
1880
  "source-layer": "vor",
1881
1881
  minzoom: 5,
1882
1882
  layout: { "text-field": ["get", "CODE_ID"], "text-size": 10, "text-anchor": "bottom", "text-offset": [0, -0.8] },
1883
- paint: { "text-color": r.vor, "text-halo-color": "#ffffff", "text-halo-width": 1 }
1883
+ paint: { "text-color": a.vor, "text-halo-color": "#ffffff", "text-halo-width": 1 }
1884
1884
  },
1885
1885
  {
1886
1886
  id: "ndb-symbol",
@@ -1900,7 +1900,7 @@ function je() {
1900
1900
  "CODE_ID"
1901
1901
  ],
1902
1902
  {
1903
- "text-color": r.ndb,
1903
+ "text-color": a.ndb,
1904
1904
  "font-scale": 1.1
1905
1905
  },
1906
1906
  "",
@@ -1914,7 +1914,7 @@ function je() {
1914
1914
  ""
1915
1915
  ],
1916
1916
  {
1917
- "text-color": r.ndb,
1917
+ "text-color": a.ndb,
1918
1918
  "font-scale": 0.95
1919
1919
  }
1920
1920
  ],
@@ -1926,11 +1926,11 @@ function je() {
1926
1926
  "text-anchor": "top"
1927
1927
  },
1928
1928
  paint: {
1929
- "text-color": r.ndb,
1929
+ "text-color": a.ndb,
1930
1930
  "text-halo-color": "#ffffff",
1931
1931
  "text-halo-width": 0.5,
1932
1932
  "text-halo-blur": 1,
1933
- "icon-color": r.ndb,
1933
+ "icon-color": a.ndb,
1934
1934
  "text-opacity": [
1935
1935
  "interpolate",
1936
1936
  [
@@ -1993,8 +1993,8 @@ function je() {
1993
1993
  "text-justify": "auto"
1994
1994
  },
1995
1995
  paint: {
1996
- "icon-color": r.waypoint,
1997
- "text-color": r.waypoint,
1996
+ "icon-color": a.waypoint,
1997
+ "text-color": a.waypoint,
1998
1998
  "text-halo-color": "#ffffff",
1999
1999
  "text-halo-width": 1,
2000
2000
  "icon-halo-color": "rgba(0,0,0,0)",
@@ -2041,8 +2041,8 @@ function je() {
2041
2041
  minzoom: 7,
2042
2042
  layout: { "icon-image": ["case", ["==", ["get", "report_type"], "C"], "designate_point_inway", "designate_point_notinway"], "icon-size": 0.6, "icon-allow-overlap": !0, "icon-ignore-placement": !0, "text-field": ["get", "CODE_ID"], "text-size": 9, "text-variable-anchor-offset": ["bottom", [0, -0.6], "top", [0, 0.6], "right", [-0.6, 0], "left", [0.6, 0], "bottom-right", [-0.4, -0.4], "bottom-left", [0.4, -0.4], "top-right", [-0.4, 0.4], "top-left", [0.4, 0.4]], "text-justify": "auto", "text-optional": !0 },
2043
2043
  paint: {
2044
- "icon-color": r.waypoint,
2045
- "text-color": r.waypoint,
2044
+ "icon-color": a.waypoint,
2045
+ "text-color": a.waypoint,
2046
2046
  "text-halo-color": "#ffffff",
2047
2047
  "text-halo-width": 1,
2048
2048
  "icon-opacity": [
@@ -2092,7 +2092,7 @@ const $e = {
2092
2092
  runway: "#64748b"
2093
2093
  };
2094
2094
  function Ke() {
2095
- const o = "navdata", r = $e;
2095
+ const o = "navdata", a = $e;
2096
2096
  return [
2097
2097
  {
2098
2098
  id: "landLaye",
@@ -2150,7 +2150,7 @@ function Ke() {
2150
2150
  "source-layer": "fir",
2151
2151
  minzoom: 2,
2152
2152
  layout: { "line-cap": "butt", "line-join": "miter", "line-miter-limit": 0 },
2153
- paint: { "line-color": r.airspaceStroke, "line-opacity": ["interpolate", ["linear"], ["zoom"], 2, 0, 2.7, 0.8, 9, 0.8, 10, 0.5], "line-width": 0.8, "line-dasharray": [4.2, 4] }
2153
+ paint: { "line-color": a.airspaceStroke, "line-opacity": ["interpolate", ["linear"], ["zoom"], 2, 0, 2.7, 0.8, 9, 0.8, 10, 0.5], "line-width": 0.8, "line-dasharray": [4.2, 4] }
2154
2154
  },
2155
2155
  {
2156
2156
  id: "fir_line_dash",
@@ -2159,7 +2159,7 @@ function Ke() {
2159
2159
  "source-layer": "fir",
2160
2160
  minzoom: 5,
2161
2161
  layout: { "line-miter-limit": 0, "line-cap": "butt", "line-join": "miter" },
2162
- paint: { "line-color": r.airspaceStroke, "line-opacity": ["interpolate", ["linear"], ["zoom"], 5, 0, 5.5, 0.8, 9, 0.8, 10, 0.5], "line-width": 5, "line-dasharray": [0.2, 5] }
2162
+ paint: { "line-color": a.airspaceStroke, "line-opacity": ["interpolate", ["linear"], ["zoom"], 5, 0, 5.5, 0.8, 9, 0.8, 10, 0.5], "line-width": 5, "line-dasharray": [0.2, 5] }
2163
2163
  },
2164
2164
  {
2165
2165
  id: "fir-label-lineside",
@@ -2168,7 +2168,7 @@ function Ke() {
2168
2168
  "source-layer": "fir",
2169
2169
  minzoom: 4,
2170
2170
  layout: { "text-field": ["concat", ["get", "TXT_NAME"], "/", ["get", "CODE_ID"], "/", ["get", "CODE_TYPE"]], "text-size": 10, "symbol-placement": "line", "text-max-width": 8, "text-offset": [0, 1], "text-letter-spacing": 0.05, "text-optional": !0 },
2171
- paint: { "text-color": r.airspaceStroke, "text-halo-color": "#0f172a", "text-halo-width": 1 }
2171
+ paint: { "text-color": a.airspaceStroke, "text-halo-color": "#0f172a", "text-halo-width": 1 }
2172
2172
  },
2173
2173
  {
2174
2174
  id: "fir-label",
@@ -2183,7 +2183,7 @@ function Ke() {
2183
2183
  "text-max-width": 8
2184
2184
  },
2185
2185
  paint: {
2186
- "text-color": r.airspaceStroke,
2186
+ "text-color": a.airspaceStroke,
2187
2187
  "text-halo-color": "#0f172a",
2188
2188
  "text-halo-width": 1.5,
2189
2189
  "text-opacity": ["interpolate", ["linear"], ["zoom"], 3, 0.85, 8, 0.7, 12, 0.5]
@@ -2202,7 +2202,7 @@ function Ke() {
2202
2202
  type: "line",
2203
2203
  source: o,
2204
2204
  "source-layer": "restricted",
2205
- paint: { "line-color": r.restrictedStroke, "line-width": 1, "line-dasharray": [2, 2], "line-opacity": ["interpolate", ["linear"], ["zoom"], 4, 0.6, 8, 1] }
2205
+ paint: { "line-color": a.restrictedStroke, "line-width": 1, "line-dasharray": [2, 2], "line-opacity": ["interpolate", ["linear"], ["zoom"], 4, 0.6, 8, 1] }
2206
2206
  },
2207
2207
  {
2208
2208
  id: "restricted-label",
@@ -2211,7 +2211,7 @@ function Ke() {
2211
2211
  "source-layer": "restricted",
2212
2212
  minzoom: 6,
2213
2213
  layout: { "text-field": ["coalesce", ["get", "TXT_NAME"], ["get", "CODE_ID"]], "text-size": 10, "symbol-placement": "line", "text-max-width": 8, "text-offset": [0, 1] },
2214
- paint: { "text-color": r.restrictedStroke, "text-halo-color": "#0f172a", "text-halo-width": 1 }
2214
+ paint: { "text-color": a.restrictedStroke, "text-halo-color": "#0f172a", "text-halo-width": 1 }
2215
2215
  },
2216
2216
  {
2217
2217
  id: "controlled-fill",
@@ -2219,14 +2219,14 @@ function Ke() {
2219
2219
  source: o,
2220
2220
  "source-layer": "controlled-fill",
2221
2221
  minzoom: 4,
2222
- paint: { "fill-color": r.controlledFill, "fill-opacity": 0.03 }
2222
+ paint: { "fill-color": a.controlledFill, "fill-opacity": 0.03 }
2223
2223
  },
2224
2224
  {
2225
2225
  id: "controlled-stroke",
2226
2226
  type: "line",
2227
2227
  source: o,
2228
2228
  "source-layer": "controlled",
2229
- paint: { "line-color": r.controlledStroke, "line-width": 1, "line-opacity": ["interpolate", ["linear"], ["zoom"], 4, 0.6, 8, 1], "line-dasharray": [2, 2] }
2229
+ paint: { "line-color": a.controlledStroke, "line-width": 1, "line-opacity": ["interpolate", ["linear"], ["zoom"], 4, 0.6, 8, 1], "line-dasharray": [2, 2] }
2230
2230
  },
2231
2231
  {
2232
2232
  id: "controlled-label",
@@ -2235,7 +2235,7 @@ function Ke() {
2235
2235
  "source-layer": "controlled",
2236
2236
  minzoom: 6,
2237
2237
  layout: { "text-field": ["coalesce", ["get", "TXT_NAME"], ["get", "CODE_ID"]], "text-size": 10, "symbol-placement": "point", "text-max-width": 8 },
2238
- paint: { "text-color": r.controlledStroke, "text-halo-color": "#0f172a", "text-halo-width": 1.5 }
2238
+ paint: { "text-color": a.controlledStroke, "text-halo-color": "#0f172a", "text-halo-width": 1.5 }
2239
2239
  },
2240
2240
  {
2241
2241
  id: "segment-line",
@@ -2244,7 +2244,7 @@ function Ke() {
2244
2244
  "source-layer": "segment",
2245
2245
  minzoom: 5,
2246
2246
  paint: {
2247
- "line-color": ["case", ["==", ["get", "HAS_REMARK"], 1], "#fbbf24", r.segment],
2247
+ "line-color": ["case", ["==", ["get", "HAS_REMARK"], 1], "#fbbf24", a.segment],
2248
2248
  "line-width": ["interpolate", ["linear"], ["zoom"], 5, 0.2, 8, 0.8],
2249
2249
  "line-blur": 0,
2250
2250
  "line-opacity": [
@@ -2316,7 +2316,7 @@ function Ke() {
2316
2316
  "text-size": ["interpolate", ["linear"], ["zoom"], 6, 9, 10, 10],
2317
2317
  "icon-text-fit-padding": [0, 3, 0, 3]
2318
2318
  },
2319
- paint: { "icon-color": r.segment }
2319
+ paint: { "icon-color": a.segment }
2320
2320
  },
2321
2321
  {
2322
2322
  id: "segment-radial",
@@ -2325,7 +2325,7 @@ function Ke() {
2325
2325
  "source-layer": "segment-radial",
2326
2326
  minzoom: 10,
2327
2327
  layout: { "text-field": ["concat", ["get", "bearing"], "°"], "text-size": 9, "text-rotate": ["to-number", ["get", "line_angle"], 0], "text-rotation-alignment": "map", "text-allow-overlap": !0, "text-ignore-placement": !0, "text-offset": [0, -1] },
2328
- paint: { "text-color": r.segment, "text-halo-color": "#0f172a", "text-halo-width": 1 }
2328
+ paint: { "text-color": a.segment, "text-halo-color": "#0f172a", "text-halo-width": 1 }
2329
2329
  },
2330
2330
  {
2331
2331
  id: "airport-circle",
@@ -2370,7 +2370,7 @@ function Ke() {
2370
2370
  "case",
2371
2371
  ["has", "has_amm"],
2372
2372
  "#4B2D6E",
2373
- r.airport
2373
+ a.airport
2374
2374
  ],
2375
2375
  "icon-opacity": [
2376
2376
  "interpolate",
@@ -2436,7 +2436,7 @@ function Ke() {
2436
2436
  "source-layer": "runway",
2437
2437
  filter: ["!", ["has", "has_amm"]],
2438
2438
  minzoom: 4,
2439
- paint: { "line-color": r.runway, "line-width": ["interpolate", ["linear"], ["zoom"], 4, 1, 10, 3] }
2439
+ paint: { "line-color": a.runway, "line-width": ["interpolate", ["linear"], ["zoom"], 4, 1, 10, 3] }
2440
2440
  },
2441
2441
  {
2442
2442
  id: "runway-line-amm",
@@ -2445,7 +2445,7 @@ function Ke() {
2445
2445
  "source-layer": "runway",
2446
2446
  filter: ["has", "has_amm"],
2447
2447
  minzoom: 4,
2448
- paint: { "line-color": r.runway, "line-width": ["interpolate", ["linear"], ["zoom"], 4, 1, 10, 3], "line-opacity": ["interpolate", ["linear"], ["zoom"], 10.5, 1, 11, 0] }
2448
+ paint: { "line-color": a.runway, "line-width": ["interpolate", ["linear"], ["zoom"], 4, 1, 10, 3], "line-opacity": ["interpolate", ["linear"], ["zoom"], 10.5, 1, 11, 0] }
2449
2449
  },
2450
2450
  {
2451
2451
  id: "runway-label",
@@ -2454,7 +2454,7 @@ function Ke() {
2454
2454
  "source-layer": "runway",
2455
2455
  minzoom: 10,
2456
2456
  layout: { "text-field": ["concat", ["to-string", ["get", "VAL_LEN"]], "×", ["to-string", ["get", "VAL_WID"]], "m"], "text-size": 10, "text-font": ["Noto Sans Regular"], "symbol-placement": "line-center", "text-rotation-alignment": "map", "text-optional": !0 },
2457
- paint: { "text-color": r.runway, "text-halo-color": "#0f172a", "text-halo-width": 1, "text-opacity": ["interpolate", ["linear"], ["zoom"], 10.5, 1, 11, 0] }
2457
+ paint: { "text-color": a.runway, "text-halo-color": "#0f172a", "text-halo-width": 1, "text-opacity": ["interpolate", ["linear"], ["zoom"], 10.5, 1, 11, 0] }
2458
2458
  },
2459
2459
  {
2460
2460
  id: "vor-symbol",
@@ -2471,7 +2471,7 @@ function Ke() {
2471
2471
  "source-layer": "vor",
2472
2472
  minzoom: 5,
2473
2473
  layout: { "text-field": ["get", "CODE_ID"], "text-size": 10, "text-anchor": "bottom", "text-offset": [0, -0.8] },
2474
- paint: { "text-color": r.vor, "text-halo-color": "#0f172a", "text-halo-width": 1 }
2474
+ paint: { "text-color": a.vor, "text-halo-color": "#0f172a", "text-halo-width": 1 }
2475
2475
  },
2476
2476
  {
2477
2477
  id: "ndb-symbol",
@@ -2481,7 +2481,7 @@ function Ke() {
2481
2481
  "source-layer": "ndb",
2482
2482
  layout: { "icon-image": "ndb-inway", "icon-size": ["interpolate", ["linear"], ["zoom"], 6, 0.5, 10, 1], "symbol-z-order": "viewport-y", "text-field": ["concat", ["get", "CODE_ID"], `
2483
2483
  `, ["get", "VAL_FREQ"], "kHz"], "text-size": 10, "text-offset": [0, 1.4], "text-letter-spacing": 0.05, "text-optional": !0, "icon-allow-overlap": !0 },
2484
- paint: { "text-color": r.ndb, "text-halo-color": "#0f172a", "text-halo-width": 1, "icon-color": r.ndb }
2484
+ paint: { "text-color": a.ndb, "text-halo-color": "#0f172a", "text-halo-width": 1, "icon-color": a.ndb }
2485
2485
  },
2486
2486
  {
2487
2487
  id: "waypoint-symbol",
@@ -2490,7 +2490,7 @@ function Ke() {
2490
2490
  "source-layer": "waypoint",
2491
2491
  minzoom: 5,
2492
2492
  layout: { "icon-image": ["case", ["==", ["get", "report_type"], "C"], "waypoint-compusory", "waypoint"], "icon-size": 0.6, "icon-allow-overlap": !0, "icon-ignore-placement": !0, "text-field": ["get", "CODE_ID"], "text-size": 9, "text-variable-anchor-offset": ["bottom", [0, -0.6], "top", [0, 0.6], "right", [-0.6, 0], "left", [0.6, 0], "bottom-right", [-0.4, -0.4], "bottom-left", [0.4, -0.4], "top-right", [-0.4, 0.4], "top-left", [0.4, 0.4]], "text-justify": "auto", "text-optional": !0 },
2493
- paint: { "icon-color": r.waypoint, "text-color": r.waypoint, "text-halo-color": "#0f172a", "text-halo-width": 1 }
2493
+ paint: { "icon-color": a.waypoint, "text-color": a.waypoint, "text-halo-color": "#0f172a", "text-halo-width": 1 }
2494
2494
  },
2495
2495
  {
2496
2496
  id: "waypoint-off-airway-symbol",
@@ -2499,7 +2499,7 @@ function Ke() {
2499
2499
  "source-layer": "waypoint-off-airway",
2500
2500
  minzoom: 7,
2501
2501
  layout: { "icon-image": ["case", ["==", ["get", "report_type"], "C"], "designate_point_inway", "designate_point_notinway"], "icon-size": 0.6, "icon-allow-overlap": !0, "icon-ignore-placement": !0, "text-field": ["get", "CODE_ID"], "text-size": 9, "text-variable-anchor-offset": ["bottom", [0, -0.6], "top", [0, 0.6], "right", [-0.6, 0], "left", [0.6, 0], "bottom-right", [-0.4, -0.4], "bottom-left", [0.4, -0.4], "top-right", [-0.4, 0.4], "top-left", [0.4, 0.4]], "text-justify": "auto", "text-optional": !0 },
2502
- paint: { "icon-color": r.waypoint, "text-color": r.waypoint, "text-halo-color": "#0f172a", "text-halo-width": 1 }
2502
+ paint: { "icon-color": a.waypoint, "text-color": a.waypoint, "text-halo-color": "#0f172a", "text-halo-width": 1 }
2503
2503
  }
2504
2504
  ];
2505
2505
  }
@@ -2549,7 +2549,7 @@ const Ct = {
2549
2549
  hotspot: "#ea580c"
2550
2550
  };
2551
2551
  function He(o = "amm") {
2552
- const r = Ye;
2552
+ const a = Ye;
2553
2553
  return [
2554
2554
  // ── 机场边界轮廓(z11+)
2555
2555
  {
@@ -2559,7 +2559,7 @@ function He(o = "amm") {
2559
2559
  "source-layer": "amm-airport",
2560
2560
  minzoom: 11,
2561
2561
  paint: {
2562
- "fill-color": r.airport,
2562
+ "fill-color": a.airport,
2563
2563
  "fill-opacity": 0.4
2564
2564
  // 适当调高不透明度,确保白底可见
2565
2565
  }
@@ -2571,7 +2571,7 @@ function He(o = "amm") {
2571
2571
  "source-layer": "amm-airport",
2572
2572
  minzoom: 11,
2573
2573
  paint: {
2574
- "line-color": r.airport,
2574
+ "line-color": a.airport,
2575
2575
  "line-width": 1
2576
2576
  }
2577
2577
  },
@@ -2583,7 +2583,7 @@ function He(o = "amm") {
2583
2583
  "source-layer": "amm-runway",
2584
2584
  minzoom: 11,
2585
2585
  paint: {
2586
- "fill-color": r.runway,
2586
+ "fill-color": a.runway,
2587
2587
  "fill-opacity": 0.9
2588
2588
  }
2589
2589
  },
@@ -2607,7 +2607,7 @@ function He(o = "amm") {
2607
2607
  "source-layer": "amm-apron",
2608
2608
  minzoom: 11,
2609
2609
  paint: {
2610
- "fill-color": r.apron,
2610
+ "fill-color": a.apron,
2611
2611
  "fill-opacity": 0.6
2612
2612
  // 提高透明度浓度
2613
2613
  }
@@ -2632,7 +2632,7 @@ function He(o = "amm") {
2632
2632
  "source-layer": "amm-taxiway",
2633
2633
  minzoom: 11,
2634
2634
  paint: {
2635
- "fill-color": r.taxiway,
2635
+ "fill-color": a.taxiway,
2636
2636
  "fill-opacity": 0.7
2637
2637
  }
2638
2638
  },
@@ -2644,7 +2644,7 @@ function He(o = "amm") {
2644
2644
  "source-layer": "amm-taxiway-line",
2645
2645
  minzoom: 11,
2646
2646
  paint: {
2647
- "line-color": r.taxiwayLine,
2647
+ "line-color": a.taxiwayLine,
2648
2648
  "line-width": ["interpolate", ["linear"], ["zoom"], 15, 0.8, 18, 2]
2649
2649
  }
2650
2650
  },
@@ -2672,7 +2672,7 @@ function He(o = "amm") {
2672
2672
  },
2673
2673
  paint: {
2674
2674
  "text-color": "#FFF",
2675
- "icon-color": r.taxiwayLine
2675
+ "icon-color": a.taxiwayLine
2676
2676
  }
2677
2677
  },
2678
2678
  // ── 等待位(z11+)─────
@@ -2683,7 +2683,7 @@ function He(o = "amm") {
2683
2683
  "source-layer": "amm-holding",
2684
2684
  minzoom: 11,
2685
2685
  paint: {
2686
- "line-color": r.holding,
2686
+ "line-color": a.holding,
2687
2687
  "line-width": 1.5
2688
2688
  }
2689
2689
  },
@@ -2695,7 +2695,7 @@ function He(o = "amm") {
2695
2695
  "source-layer": "amm-runway-marking",
2696
2696
  minzoom: 13,
2697
2697
  paint: {
2698
- "fill-color": r.runwayMarking,
2698
+ "fill-color": a.runwayMarking,
2699
2699
  "fill-opacity": 0.9
2700
2700
  }
2701
2701
  },
@@ -2707,7 +2707,7 @@ function He(o = "amm") {
2707
2707
  "source-layer": "amm-restricted",
2708
2708
  minzoom: 11,
2709
2709
  paint: {
2710
- "fill-color": r.restricted,
2710
+ "fill-color": a.restricted,
2711
2711
  "fill-opacity": 0.08
2712
2712
  // 针对白底降低面纯度
2713
2713
  }
@@ -2719,7 +2719,7 @@ function He(o = "amm") {
2719
2719
  "source-layer": "amm-restricted",
2720
2720
  minzoom: 11,
2721
2721
  paint: {
2722
- "line-color": r.restricted,
2722
+ "line-color": a.restricted,
2723
2723
  "line-width": 1.5,
2724
2724
  "line-dasharray": [4, 2]
2725
2725
  }
@@ -2732,7 +2732,7 @@ function He(o = "amm") {
2732
2732
  "source-layer": "amm-hotspot",
2733
2733
  minzoom: 11,
2734
2734
  paint: {
2735
- "fill-color": r.hotspot,
2735
+ "fill-color": a.hotspot,
2736
2736
  "fill-opacity": 0.1
2737
2737
  // 针对白底轻微淡化面
2738
2738
  }
@@ -2744,7 +2744,7 @@ function He(o = "amm") {
2744
2744
  "source-layer": "amm-hotspot",
2745
2745
  minzoom: 11,
2746
2746
  paint: {
2747
- "line-color": r.hotspot,
2747
+ "line-color": a.hotspot,
2748
2748
  "line-width": 1.5
2749
2749
  }
2750
2750
  },
@@ -2756,7 +2756,7 @@ function He(o = "amm") {
2756
2756
  "source-layer": "amm-runway-centerline",
2757
2757
  minzoom: 11,
2758
2758
  paint: {
2759
- "line-color": r.runwayCenterline,
2759
+ "line-color": a.runwayCenterline,
2760
2760
  "line-width": 1,
2761
2761
  "line-dasharray": [6, 3]
2762
2762
  }
@@ -2808,7 +2808,7 @@ function He(o = "amm") {
2808
2808
  "source-layer": "amm-stand-line",
2809
2809
  minzoom: 13,
2810
2810
  paint: {
2811
- "line-color": r.standLine,
2811
+ "line-color": a.standLine,
2812
2812
  "line-width": 1
2813
2813
  }
2814
2814
  },
@@ -2847,7 +2847,7 @@ function He(o = "amm") {
2847
2847
  "source-layer": "amm-stand",
2848
2848
  minzoom: 12,
2849
2849
  paint: {
2850
- "circle-color": r.stand,
2850
+ "circle-color": a.stand,
2851
2851
  "circle-radius": 1.5
2852
2852
  }
2853
2853
  },
@@ -2866,7 +2866,7 @@ function He(o = "amm") {
2866
2866
  "text-allow-overlap": !1
2867
2867
  },
2868
2868
  paint: {
2869
- "text-color": r.standLine
2869
+ "text-color": a.standLine
2870
2870
  // 改为深墨绿字,白底/浅灰底上高可读
2871
2871
  }
2872
2872
  },
@@ -2988,16 +2988,16 @@ const Ze = {
2988
2988
  hotspot: "#fb923c"
2989
2989
  };
2990
2990
  function Je(o = "amm") {
2991
- const r = Ze;
2991
+ const a = Ze;
2992
2992
  return [
2993
- { id: "amm-airport-fill", type: "fill", source: o, "source-layer": "amm-airport", minzoom: 11, paint: { "fill-color": r.airport, "fill-opacity": 0.3 } },
2993
+ { id: "amm-airport-fill", type: "fill", source: o, "source-layer": "amm-airport", minzoom: 11, paint: { "fill-color": a.airport, "fill-opacity": 0.3 } },
2994
2994
  { id: "amm-airport-stroke", type: "line", source: o, "source-layer": "amm-airport", minzoom: 11, paint: { "line-color": "#475569", "line-width": 1 } },
2995
- { id: "amm-runway-fill", type: "fill", source: o, "source-layer": "amm-runway", minzoom: 11, paint: { "fill-color": r.runway, "fill-opacity": 1 } },
2995
+ { id: "amm-runway-fill", type: "fill", source: o, "source-layer": "amm-runway", minzoom: 11, paint: { "fill-color": a.runway, "fill-opacity": 1 } },
2996
2996
  { id: "amm-runway-stroke", type: "line", source: o, "source-layer": "amm-runway", minzoom: 11, paint: { "line-color": "#64748b", "line-width": 0.5 } },
2997
- { id: "amm-apron-fill", type: "fill", source: o, "source-layer": "amm-apron", minzoom: 11, paint: { "fill-color": r.apron, "fill-opacity": 1 } },
2997
+ { id: "amm-apron-fill", type: "fill", source: o, "source-layer": "amm-apron", minzoom: 11, paint: { "fill-color": a.apron, "fill-opacity": 1 } },
2998
2998
  { id: "amm-apron-stroke", type: "line", source: o, "source-layer": "amm-apron", minzoom: 11, paint: { "line-color": "#334155", "line-width": 0.5 } },
2999
- { id: "amm-taxiway-fill", type: "fill", source: o, "source-layer": "amm-taxiway", minzoom: 11, paint: { "fill-color": r.taxiway, "fill-opacity": 0.8 } },
3000
- { id: "amm-taxiway-line", type: "line", source: o, "source-layer": "amm-taxiway-line", minzoom: 11, paint: { "line-color": r.taxiwayLine, "line-width": ["interpolate", ["linear"], ["zoom"], 15, 0.8, 18, 2] } },
2999
+ { id: "amm-taxiway-fill", type: "fill", source: o, "source-layer": "amm-taxiway", minzoom: 11, paint: { "fill-color": a.taxiway, "fill-opacity": 0.8 } },
3000
+ { id: "amm-taxiway-line", type: "line", source: o, "source-layer": "amm-taxiway-line", minzoom: 11, paint: { "line-color": a.taxiwayLine, "line-width": ["interpolate", ["linear"], ["zoom"], 15, 0.8, 18, 2] } },
3001
3001
  {
3002
3002
  id: "amm-taxiway-label",
3003
3003
  type: "symbol",
@@ -3005,15 +3005,15 @@ function Je(o = "amm") {
3005
3005
  "source-layer": "amm-taxiway-line",
3006
3006
  minzoom: 14,
3007
3007
  layout: { "text-field": ["get", "idlin"], "text-size": 10, "icon-image": "text_bg", "icon-text-fit": "both", "icon-text-fit-padding": [1, 2, 1, 2], "symbol-placement": "line", "text-keep-upright": !0, "text-allow-overlap": !1 },
3008
- paint: { "text-color": "#0f172a", "icon-color": r.taxiwayLine }
3008
+ paint: { "text-color": "#0f172a", "icon-color": a.taxiwayLine }
3009
3009
  },
3010
- { id: "amm-holding", type: "line", source: o, "source-layer": "amm-holding", minzoom: 11, paint: { "line-color": r.holding, "line-width": 1.5 } },
3011
- { id: "amm-runway-marking", type: "fill", source: o, "source-layer": "amm-runway-marking", minzoom: 13, paint: { "fill-color": r.runwayMarking, "fill-opacity": 0.8 } },
3012
- { id: "amm-restricted-fill", type: "fill", source: o, "source-layer": "amm-restricted", minzoom: 11, paint: { "fill-color": r.restricted, "fill-opacity": 0.12 } },
3013
- { id: "amm-restricted-stroke", type: "line", source: o, "source-layer": "amm-restricted", minzoom: 11, paint: { "line-color": r.restricted, "line-width": 1.2, "line-dasharray": [4, 2] } },
3014
- { id: "amm-hotspot-fill", type: "fill", source: o, "source-layer": "amm-hotspot", minzoom: 11, paint: { "fill-color": r.hotspot, "fill-opacity": 0.15 } },
3015
- { id: "amm-hotspot-stroke", type: "line", source: o, "source-layer": "amm-hotspot", minzoom: 11, paint: { "line-color": r.hotspot, "line-width": 1.2 } },
3016
- { id: "amm-runway-centerline", type: "line", source: o, "source-layer": "amm-runway-centerline", minzoom: 11, paint: { "line-color": r.runwayCenterline, "line-width": 1, "line-dasharray": [6, 3] } },
3010
+ { id: "amm-holding", type: "line", source: o, "source-layer": "amm-holding", minzoom: 11, paint: { "line-color": a.holding, "line-width": 1.5 } },
3011
+ { id: "amm-runway-marking", type: "fill", source: o, "source-layer": "amm-runway-marking", minzoom: 13, paint: { "fill-color": a.runwayMarking, "fill-opacity": 0.8 } },
3012
+ { id: "amm-restricted-fill", type: "fill", source: o, "source-layer": "amm-restricted", minzoom: 11, paint: { "fill-color": a.restricted, "fill-opacity": 0.12 } },
3013
+ { id: "amm-restricted-stroke", type: "line", source: o, "source-layer": "amm-restricted", minzoom: 11, paint: { "line-color": a.restricted, "line-width": 1.2, "line-dasharray": [4, 2] } },
3014
+ { id: "amm-hotspot-fill", type: "fill", source: o, "source-layer": "amm-hotspot", minzoom: 11, paint: { "fill-color": a.hotspot, "fill-opacity": 0.15 } },
3015
+ { id: "amm-hotspot-stroke", type: "line", source: o, "source-layer": "amm-hotspot", minzoom: 11, paint: { "line-color": a.hotspot, "line-width": 1.2 } },
3016
+ { id: "amm-runway-centerline", type: "line", source: o, "source-layer": "amm-runway-centerline", minzoom: 11, paint: { "line-color": a.runwayCenterline, "line-width": 1, "line-dasharray": [6, 3] } },
3017
3017
  {
3018
3018
  id: "amm-runway-info",
3019
3019
  type: "symbol",
@@ -3023,7 +3023,7 @@ function Je(o = "amm") {
3023
3023
  layout: { "text-field": ["concat", ["coalesce", ["get", "length"], ""], "×", ["coalesce", ["get", "width"], ""], "m"], "text-size": ["interpolate", ["exponential", 1.5], ["zoom"], 13, 10, 16, 13], "symbol-placement": "point", "text-rotate": ["coalesce", ["get", "bearing"], 0], "text-rotation-alignment": "map", "text-allow-overlap": !0, "text-ignore-placement": !0 },
3024
3024
  paint: { "text-color": "#e2e8f0", "text-halo-color": "#0f172a", "text-halo-width": 2 }
3025
3025
  },
3026
- { id: "amm-stand-line", type: "line", source: o, "source-layer": "amm-stand-line", minzoom: 13, paint: { "line-color": r.standLine, "line-width": 1 } },
3026
+ { id: "amm-stand-line", type: "line", source: o, "source-layer": "amm-stand-line", minzoom: 13, paint: { "line-color": a.standLine, "line-width": 1 } },
3027
3027
  {
3028
3028
  id: "amm-runway-threshold-label",
3029
3029
  type: "symbol",
@@ -3033,7 +3033,7 @@ function Je(o = "amm") {
3033
3033
  layout: { "icon-image": "text_bg", "icon-text-fit": "both", "icon-text-fit-padding": [1, 2, 1, 2], "text-field": ["get", "idthr"], "text-size": 14, "text-allow-overlap": !0, "text-rotation-alignment": "map", "icon-rotation-alignment": "map" },
3034
3034
  paint: { "text-color": "#ffffff", "icon-color": "#ef4444" }
3035
3035
  },
3036
- { id: "amm-stand", type: "circle", source: o, "source-layer": "amm-stand", minzoom: 12, paint: { "circle-color": r.stand, "circle-radius": 1.5 } },
3036
+ { id: "amm-stand", type: "circle", source: o, "source-layer": "amm-stand", minzoom: 12, paint: { "circle-color": a.stand, "circle-radius": 1.5 } },
3037
3037
  {
3038
3038
  id: "amm-stand-label",
3039
3039
  type: "symbol",
@@ -3041,7 +3041,7 @@ function Je(o = "amm") {
3041
3041
  "source-layer": "amm-stand",
3042
3042
  minzoom: 14,
3043
3043
  layout: { "text-field": ["get", "idstd"], "text-size": 9, "text-anchor": "bottom", "text-offset": [0, -0.5], "text-allow-overlap": !1 },
3044
- paint: { "text-color": r.stand, "text-halo-color": "#0f172a", "text-halo-width": 1 }
3044
+ paint: { "text-color": a.stand, "text-halo-color": "#0f172a", "text-halo-width": 1 }
3045
3045
  },
3046
3046
  { id: "amm-obstacle-region-fill", type: "fill", source: o, "source-layer": "amm-obstacle-region", minzoom: 11, paint: { "fill-color": "#fef08a", "fill-opacity": 0.15 } },
3047
3047
  { id: "amm-obstacle-region-stroke", type: "line", source: o, "source-layer": "amm-obstacle-region", minzoom: 11, paint: { "line-color": "#eab308", "line-width": 1.2, "line-dasharray": [1.5, 1] } },
@@ -3084,16 +3084,16 @@ const Qe = {
3084
3084
  hotspot: "#fb923c"
3085
3085
  };
3086
3086
  function qe(o = "amm") {
3087
- const r = Qe, u = "#1f1f23";
3087
+ const a = Qe, u = "#1f1f23";
3088
3088
  return [
3089
- { id: "amm-airport-fill", type: "fill", source: o, "source-layer": "amm-airport", minzoom: 11, paint: { "fill-color": r.airport, "fill-opacity": 0.3 } },
3089
+ { id: "amm-airport-fill", type: "fill", source: o, "source-layer": "amm-airport", minzoom: 11, paint: { "fill-color": a.airport, "fill-opacity": 0.3 } },
3090
3090
  { id: "amm-airport-stroke", type: "line", source: o, "source-layer": "amm-airport", minzoom: 11, paint: { "line-color": "#52525b", "line-width": 1 } },
3091
- { id: "amm-runway-fill", type: "fill", source: o, "source-layer": "amm-runway", minzoom: 11, paint: { "fill-color": r.runway, "fill-opacity": 1 } },
3091
+ { id: "amm-runway-fill", type: "fill", source: o, "source-layer": "amm-runway", minzoom: 11, paint: { "fill-color": a.runway, "fill-opacity": 1 } },
3092
3092
  { id: "amm-runway-stroke", type: "line", source: o, "source-layer": "amm-runway", minzoom: 11, paint: { "line-color": "#52525b", "line-width": 0.5 } },
3093
- { id: "amm-apron-fill", type: "fill", source: o, "source-layer": "amm-apron", minzoom: 11, paint: { "fill-color": r.apron, "fill-opacity": 1 } },
3093
+ { id: "amm-apron-fill", type: "fill", source: o, "source-layer": "amm-apron", minzoom: 11, paint: { "fill-color": a.apron, "fill-opacity": 1 } },
3094
3094
  { id: "amm-apron-stroke", type: "line", source: o, "source-layer": "amm-apron", minzoom: 11, paint: { "line-color": "#3f3f46", "line-width": 0.5 } },
3095
- { id: "amm-taxiway-fill", type: "fill", source: o, "source-layer": "amm-taxiway", minzoom: 11, paint: { "fill-color": r.taxiway, "fill-opacity": 0.9 } },
3096
- { id: "amm-taxiway-line", type: "line", source: o, "source-layer": "amm-taxiway-line", minzoom: 11, paint: { "line-color": r.taxiwayLine, "line-width": ["interpolate", ["linear"], ["zoom"], 15, 0.8, 18, 2] } },
3095
+ { id: "amm-taxiway-fill", type: "fill", source: o, "source-layer": "amm-taxiway", minzoom: 11, paint: { "fill-color": a.taxiway, "fill-opacity": 0.9 } },
3096
+ { id: "amm-taxiway-line", type: "line", source: o, "source-layer": "amm-taxiway-line", minzoom: 11, paint: { "line-color": a.taxiwayLine, "line-width": ["interpolate", ["linear"], ["zoom"], 15, 0.8, 18, 2] } },
3097
3097
  {
3098
3098
  id: "amm-taxiway-label",
3099
3099
  type: "symbol",
@@ -3101,15 +3101,15 @@ function qe(o = "amm") {
3101
3101
  "source-layer": "amm-taxiway-line",
3102
3102
  minzoom: 14,
3103
3103
  layout: { "text-field": ["get", "idlin"], "text-size": 10, "icon-image": "text_bg", "icon-text-fit": "both", "icon-text-fit-padding": [1, 2, 1, 2], "symbol-placement": "line", "text-keep-upright": !0, "text-allow-overlap": !1 },
3104
- paint: { "text-color": u, "icon-color": r.taxiwayLine }
3104
+ paint: { "text-color": u, "icon-color": a.taxiwayLine }
3105
3105
  },
3106
- { id: "amm-holding", type: "line", source: o, "source-layer": "amm-holding", minzoom: 11, paint: { "line-color": r.holding, "line-width": 1.5 } },
3107
- { id: "amm-runway-marking", type: "fill", source: o, "source-layer": "amm-runway-marking", minzoom: 13, paint: { "fill-color": r.runwayMarking, "fill-opacity": 0.85 } },
3108
- { id: "amm-restricted-fill", type: "fill", source: o, "source-layer": "amm-restricted", minzoom: 11, paint: { "fill-color": r.restricted, "fill-opacity": 0.1 } },
3109
- { id: "amm-restricted-stroke", type: "line", source: o, "source-layer": "amm-restricted", minzoom: 11, paint: { "line-color": r.restricted, "line-width": 1.2, "line-dasharray": [4, 2] } },
3110
- { id: "amm-hotspot-fill", type: "fill", source: o, "source-layer": "amm-hotspot", minzoom: 11, paint: { "fill-color": r.hotspot, "fill-opacity": 0.12 } },
3111
- { id: "amm-hotspot-stroke", type: "line", source: o, "source-layer": "amm-hotspot", minzoom: 11, paint: { "line-color": r.hotspot, "line-width": 1.2 } },
3112
- { id: "amm-runway-centerline", type: "line", source: o, "source-layer": "amm-runway-centerline", minzoom: 11, paint: { "line-color": r.runwayCenterline, "line-width": 1, "line-dasharray": [6, 3] } },
3106
+ { id: "amm-holding", type: "line", source: o, "source-layer": "amm-holding", minzoom: 11, paint: { "line-color": a.holding, "line-width": 1.5 } },
3107
+ { id: "amm-runway-marking", type: "fill", source: o, "source-layer": "amm-runway-marking", minzoom: 13, paint: { "fill-color": a.runwayMarking, "fill-opacity": 0.85 } },
3108
+ { id: "amm-restricted-fill", type: "fill", source: o, "source-layer": "amm-restricted", minzoom: 11, paint: { "fill-color": a.restricted, "fill-opacity": 0.1 } },
3109
+ { id: "amm-restricted-stroke", type: "line", source: o, "source-layer": "amm-restricted", minzoom: 11, paint: { "line-color": a.restricted, "line-width": 1.2, "line-dasharray": [4, 2] } },
3110
+ { id: "amm-hotspot-fill", type: "fill", source: o, "source-layer": "amm-hotspot", minzoom: 11, paint: { "fill-color": a.hotspot, "fill-opacity": 0.12 } },
3111
+ { id: "amm-hotspot-stroke", type: "line", source: o, "source-layer": "amm-hotspot", minzoom: 11, paint: { "line-color": a.hotspot, "line-width": 1.2 } },
3112
+ { id: "amm-runway-centerline", type: "line", source: o, "source-layer": "amm-runway-centerline", minzoom: 11, paint: { "line-color": a.runwayCenterline, "line-width": 1, "line-dasharray": [6, 3] } },
3113
3113
  {
3114
3114
  id: "amm-runway-info",
3115
3115
  type: "symbol",
@@ -3119,7 +3119,7 @@ function qe(o = "amm") {
3119
3119
  layout: { "text-field": ["concat", ["coalesce", ["get", "length"], ""], "×", ["coalesce", ["get", "width"], ""], "m"], "text-size": ["interpolate", ["exponential", 1.5], ["zoom"], 13, 10, 16, 13], "symbol-placement": "point", "text-rotate": ["coalesce", ["get", "bearing"], 0], "text-rotation-alignment": "map", "text-allow-overlap": !0, "text-ignore-placement": !0 },
3120
3120
  paint: { "text-color": "#e4e4e7", "text-halo-color": u, "text-halo-width": 2 }
3121
3121
  },
3122
- { id: "amm-stand-line", type: "line", source: o, "source-layer": "amm-stand-line", minzoom: 13, paint: { "line-color": r.standLine, "line-width": 1 } },
3122
+ { id: "amm-stand-line", type: "line", source: o, "source-layer": "amm-stand-line", minzoom: 13, paint: { "line-color": a.standLine, "line-width": 1 } },
3123
3123
  {
3124
3124
  id: "amm-runway-threshold-label",
3125
3125
  type: "symbol",
@@ -3127,9 +3127,9 @@ function qe(o = "amm") {
3127
3127
  "source-layer": "amm-runway-threshold",
3128
3128
  minzoom: 12,
3129
3129
  layout: { "icon-image": "text_bg", "icon-text-fit": "both", "icon-text-fit-padding": [1, 2, 1, 2], "text-field": ["get", "idthr"], "text-size": 14, "text-allow-overlap": !0, "text-rotation-alignment": "map", "icon-rotation-alignment": "map" },
3130
- paint: { "text-color": "#ffffff", "icon-color": r.threshold }
3130
+ paint: { "text-color": "#ffffff", "icon-color": a.threshold }
3131
3131
  },
3132
- { id: "amm-stand", type: "circle", source: o, "source-layer": "amm-stand", minzoom: 12, paint: { "circle-color": r.stand, "circle-radius": 1.5 } },
3132
+ { id: "amm-stand", type: "circle", source: o, "source-layer": "amm-stand", minzoom: 12, paint: { "circle-color": a.stand, "circle-radius": 1.5 } },
3133
3133
  {
3134
3134
  id: "amm-stand-label",
3135
3135
  type: "symbol",
@@ -3137,7 +3137,7 @@ function qe(o = "amm") {
3137
3137
  "source-layer": "amm-stand",
3138
3138
  minzoom: 14,
3139
3139
  layout: { "text-field": ["get", "idstd"], "text-size": 9, "text-anchor": "bottom", "text-offset": [0, -0.5], "text-allow-overlap": !1 },
3140
- paint: { "text-color": r.stand, "text-halo-color": u, "text-halo-width": 1 }
3140
+ paint: { "text-color": a.stand, "text-halo-color": u, "text-halo-width": 1 }
3141
3141
  },
3142
3142
  { id: "amm-obstacle-region-fill", type: "fill", source: o, "source-layer": "amm-obstacle-region", minzoom: 11, paint: { "fill-color": "#fef08a", "fill-opacity": 0.1 } },
3143
3143
  { id: "amm-obstacle-region-stroke", type: "line", source: o, "source-layer": "amm-obstacle-region", minzoom: 11, paint: { "line-color": "#eab308", "line-width": 1.2, "line-dasharray": [1.5, 1] } },
@@ -3164,8 +3164,8 @@ function qe(o = "amm") {
3164
3164
  }
3165
3165
  ];
3166
3166
  }
3167
- function Ht(o = "amm", r = "light") {
3168
- return r === "dark" ? Je(o) : r === "neutral" ? qe(o) : He(o);
3167
+ function Ht(o = "amm", a = "light") {
3168
+ return a === "dark" ? Je(o) : a === "neutral" ? qe(o) : He(o);
3169
3169
  }
3170
3170
  const oi = {
3171
3171
  ammAirport: ["amm-airport-fill", "amm-airport-stroke"],
@@ -3239,12 +3239,12 @@ const oi = {
3239
3239
  "amm-construction-label"
3240
3240
  ], Zt = ["terrain-color", "terrain-hillshade"], Jt = ["contour-line", "contour-label"];
3241
3241
  async function Qt(o) {
3242
- const r = await fetch(o);
3243
- if (!r.ok) throw new Error(`fetch ${o} → ${r.status}`);
3244
- const u = r.headers.get("Content-Encoding"), g = r.headers.get("Content-Type") || "";
3242
+ const a = await fetch(o);
3243
+ if (!a.ok) throw new Error(`fetch ${o} → ${a.status}`);
3244
+ const u = a.headers.get("Content-Encoding"), g = a.headers.get("Content-Type") || "";
3245
3245
  if (u === "gzip" || g.includes("json"))
3246
- return r.json();
3247
- const y = r.body.pipeThrough(new DecompressionStream("gzip"));
3246
+ return a.json();
3247
+ const y = a.body.pipeThrough(new DecompressionStream("gzip"));
3248
3248
  return new Response(y).json();
3249
3249
  }
3250
3250
  class ri {
@@ -3259,7 +3259,7 @@ class ri {
3259
3259
  * @param {[number,number]} [options.center] Initial map center [lng, lat] (default [104, 36])
3260
3260
  * @param {number} [options.zoom] Initial zoom level (default 4)
3261
3261
  */
3262
- constructor(r = {}) {
3262
+ constructor(a = {}) {
3263
3263
  const {
3264
3264
  container: u,
3265
3265
  theme: g = "light",
@@ -3269,7 +3269,7 @@ class ri {
3269
3269
  layers: S = {},
3270
3270
  center: O = [104, 36],
3271
3271
  zoom: A = 4
3272
- } = r;
3272
+ } = a;
3273
3273
  return this._apiUrl = y.replace(/\/$/, ""), this._spriteUrl = (x ?? y).replace(/\/$/, ""), this._theme = g, this._period = z, this._center = O, this._zoom = A, this._ready = !1, this._layerVisible = {
3274
3274
  // aviation groups — all visible by default
3275
3275
  adiz: !0,
@@ -3299,10 +3299,10 @@ class ri {
3299
3299
  });
3300
3300
  }
3301
3301
  // ── Map initialization ────────────────────────────────────────────────────
3302
- _initMap(r) {
3302
+ _initMap(a) {
3303
3303
  const u = ut[this._theme] ?? ut.light;
3304
3304
  this._map = new jt.Map({
3305
- container: r,
3305
+ container: a,
3306
3306
  style: {
3307
3307
  version: 8,
3308
3308
  glyphs: "https://aips.siniswift.com/mapsdk/glyphs/{fontstack}/{range}.pbf",
@@ -3357,15 +3357,15 @@ class ri {
3357
3357
  encoding: "mapbox",
3358
3358
  maxzoom: 8
3359
3359
  });
3360
- const r = new Be.DemSource({
3360
+ const a = new Be.DemSource({
3361
3361
  url: `${this._apiUrl}/api/terrain/{z}/{x}/{y}.png`,
3362
3362
  encoding: "mapbox",
3363
3363
  maxzoom: 8,
3364
3364
  worker: !0
3365
3365
  });
3366
- r.setupMaplibre(jt), this._map.addSource("contour", {
3366
+ a.setupMaplibre(jt), this._map.addSource("contour", {
3367
3367
  type: "vector",
3368
- tiles: [r.contourProtocolUrl({
3368
+ tiles: [a.contourProtocolUrl({
3369
3369
  thresholds: {
3370
3370
  5: [250, 1e3],
3371
3371
  7: [125, 500],
@@ -3381,30 +3381,30 @@ class ri {
3381
3381
  }), await this._loadBaseData();
3382
3382
  }
3383
3383
  async _loadBaseData() {
3384
- var r, u, g, y;
3384
+ var a, u, g, y;
3385
3385
  try {
3386
3386
  const [x, z] = await Promise.all([
3387
3387
  Qt(`${this._apiUrl}/topjson/land.topojson.gz`),
3388
3388
  Qt(`${this._apiUrl}/topjson/boundary.topojson.gz`)
3389
3389
  ]);
3390
- (r = x == null ? void 0 : x.objects) != null && r.land ? (u = this._map.getSource("land")) == null || u.setData($t(x, x.objects.land)) : console.warn("[AviationChart] land topojson missing objects.land"), (g = z == null ? void 0 : z.objects) != null && g.boundary ? (y = this._map.getSource("boundary")) == null || y.setData($t(z, z.objects.boundary)) : console.warn("[AviationChart] boundary topojson missing objects.boundary");
3390
+ (a = x == null ? void 0 : x.objects) != null && a.land ? (u = this._map.getSource("land")) == null || u.setData($t(x, x.objects.land)) : console.warn("[AviationChart] land topojson missing objects.land"), (g = z == null ? void 0 : z.objects) != null && g.boundary ? (y = this._map.getSource("boundary")) == null || y.setData($t(z, z.objects.boundary)) : console.warn("[AviationChart] boundary topojson missing objects.boundary");
3391
3391
  } catch (x) {
3392
3392
  console.error("[AviationChart] loadBaseData failed:", x);
3393
3393
  }
3394
3394
  }
3395
3395
  _initLayers() {
3396
- const r = this._layerVisible.terrain ? "visible" : "none", u = this._layerVisible.contour ? "visible" : "none";
3396
+ const a = this._layerVisible.terrain ? "visible" : "none", u = this._layerVisible.contour ? "visible" : "none";
3397
3397
  this._map.addLayer({
3398
3398
  id: "terrain-color",
3399
3399
  type: "color-relief",
3400
3400
  source: "terrain",
3401
- layout: { visibility: r },
3401
+ layout: { visibility: a },
3402
3402
  paint: { "color-relief-color": ei }
3403
3403
  }), this._map.addLayer({
3404
3404
  id: "terrain-hillshade",
3405
3405
  type: "hillshade",
3406
3406
  source: "terrain",
3407
- layout: { visibility: r },
3407
+ layout: { visibility: a },
3408
3408
  paint: {
3409
3409
  "hillshade-shadow-color": "rgba(74,59,42,0.35)",
3410
3410
  "hillshade-highlight-color": "rgba(255,246,230,0.25)",
@@ -3455,9 +3455,9 @@ class ri {
3455
3455
  for (const S of x)
3456
3456
  this._map.getLayer(S) && this._map.setLayoutProperty(S, "visibility", z);
3457
3457
  }
3458
- const r = this._layerVisible.amm !== !1 ? "visible" : "none";
3458
+ const a = this._layerVisible.amm !== !1 ? "visible" : "none";
3459
3459
  for (const y of Pt)
3460
- this._map.getLayer(y) && this._map.setLayoutProperty(y, "visibility", r);
3460
+ this._map.getLayer(y) && this._map.setLayoutProperty(y, "visibility", a);
3461
3461
  const u = this._layerVisible.terrain ? "visible" : "none";
3462
3462
  for (const y of Zt)
3463
3463
  this._map.getLayer(y) && this._map.setLayoutProperty(y, "visibility", u);
@@ -3482,10 +3482,10 @@ class ri {
3482
3482
  * Switch the chart theme.
3483
3483
  * @param {'light'|'dark'} theme
3484
3484
  */
3485
- setTheme(r) {
3486
- if (r === this._theme) return;
3487
- this._theme = r;
3488
- const u = ut[r] ?? ut.light;
3485
+ setTheme(a) {
3486
+ if (a === this._theme) return;
3487
+ this._theme = a;
3488
+ const u = ut[a] ?? ut.light;
3489
3489
  this._map.setPaintProperty("background", "background-color", u.background);
3490
3490
  const g = [
3491
3491
  "landLaye",
@@ -3512,29 +3512,29 @@ class ri {
3512
3512
  * @param {string} key
3513
3513
  * @param {boolean} visible
3514
3514
  */
3515
- setLayerVisible(r, u) {
3516
- if (this._layerVisible[r] = u, r === "terrain") {
3515
+ setLayerVisible(a, u) {
3516
+ if (this._layerVisible[a] = u, a === "terrain") {
3517
3517
  const x = u ? "visible" : "none";
3518
3518
  for (const z of Zt)
3519
3519
  this._map.getLayer(z) && this._map.setLayoutProperty(z, "visibility", x);
3520
3520
  this._map.setTerrain(u ? { source: "terrain", exaggeration: 4 } : null);
3521
3521
  return;
3522
3522
  }
3523
- if (r === "contour") {
3523
+ if (a === "contour") {
3524
3524
  const x = u ? "visible" : "none";
3525
3525
  for (const z of Jt)
3526
3526
  this._map.getLayer(z) && this._map.setLayoutProperty(z, "visibility", x);
3527
3527
  return;
3528
3528
  }
3529
- if (r === "amm") {
3529
+ if (a === "amm") {
3530
3530
  const x = u ? "visible" : "none";
3531
3531
  for (const z of Pt)
3532
3532
  this._map.getLayer(z) && this._map.setLayoutProperty(z, "visibility", x);
3533
3533
  return;
3534
3534
  }
3535
- const g = Ct[r];
3535
+ const g = Ct[a];
3536
3536
  if (!g) {
3537
- console.warn(`[AviationChart] Unknown layer key: "${r}"`);
3537
+ console.warn(`[AviationChart] Unknown layer key: "${a}"`);
3538
3538
  return;
3539
3539
  }
3540
3540
  const y = u ? "visible" : "none";
@@ -3545,19 +3545,19 @@ class ri {
3545
3545
  * Switch the navdata period. Fetches tiles for the new period immediately.
3546
3546
  * @param {string} period
3547
3547
  */
3548
- setPeriod(r) {
3548
+ setPeriod(a) {
3549
3549
  var g;
3550
- this._period = r;
3550
+ this._period = a;
3551
3551
  const u = (g = this._map) == null ? void 0 : g.getSource("navdata");
3552
- u && u.setTiles([`${this._apiUrl}/api/tiles/${r}/{z}/{x}/{y}.pbf`]);
3552
+ u && u.setTiles([`${this._apiUrl}/api/tiles/${a}/{z}/{x}/{y}.pbf`]);
3553
3553
  }
3554
3554
  /** Proxy to map.on — returns `this` for chaining */
3555
- on(r, u) {
3556
- return this._map.on(r, u), this;
3555
+ on(a, u) {
3556
+ return this._map.on(a, u), this;
3557
3557
  }
3558
3558
  /** Proxy to map.off — returns `this` for chaining */
3559
- off(r, u) {
3560
- return this._map.off(r, u), this;
3559
+ off(a, u) {
3560
+ return this._map.off(a, u), this;
3561
3561
  }
3562
3562
  /** Remove the map and release all resources */
3563
3563
  destroy() {