@poor-knight/cesium-utils 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,12 +4,12 @@ var z = (s, i, r) => le(s, typeof i != "symbol" ? i + "" : i, r);
4
4
  import * as Cesium from "cesium";
5
5
  import { Cartesian2, Cartesian3, VerticalOrigin, HorizontalOrigin, Color, LabelStyle, defined, DeveloperError, Event, Credit, Ellipsoid, GeographicTilingScheme, TerrainProvider, HeightmapTerrainData, Resource, Rectangle as Rectangle$1, WebMapTileServiceImageryProvider, ScreenSpaceEventHandler, ScreenSpaceEventType, ImageryLayer, WebMapServiceImageryProvider, HeightReference, NearFarScalar, SceneMode, BoundingSphere, Occluder, SceneTransforms } from "cesium";
6
6
  var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, inflate$2 = {};
7
- const adler32$1 = (s, i, r, c) => {
7
+ const adler32$1 = (s, i, r, l) => {
8
8
  let m = s & 65535 | 0, o = s >>> 16 & 65535 | 0, u = 0;
9
9
  for (; r !== 0; ) {
10
10
  u = r > 2e3 ? 2e3 : r, r -= u;
11
11
  do
12
- m = m + i[c++] | 0, o = o + m | 0;
12
+ m = m + i[l++] | 0, o = o + m | 0;
13
13
  while (--u);
14
14
  m %= 65521, o %= 65521;
15
15
  }
@@ -20,34 +20,34 @@ const makeTable = () => {
20
20
  let s, i = [];
21
21
  for (var r = 0; r < 256; r++) {
22
22
  s = r;
23
- for (var c = 0; c < 8; c++)
23
+ for (var l = 0; l < 8; l++)
24
24
  s = s & 1 ? 3988292384 ^ s >>> 1 : s >>> 1;
25
25
  i[r] = s;
26
26
  }
27
27
  return i;
28
- }, crcTable = new Uint32Array(makeTable()), crc32$1 = (s, i, r, c) => {
29
- const m = crcTable, o = c + r;
28
+ }, crcTable = new Uint32Array(makeTable()), crc32$1 = (s, i, r, l) => {
29
+ const m = crcTable, o = l + r;
30
30
  s ^= -1;
31
- for (let u = c; u < o; u++)
31
+ for (let u = l; u < o; u++)
32
32
  s = s >>> 8 ^ m[(s ^ i[u]) & 255];
33
33
  return s ^ -1;
34
34
  };
35
35
  var crc32_1 = crc32$1;
36
36
  const BAD$1 = 16209, TYPE$1 = 16191;
37
37
  var inffast = function(i, r) {
38
- let c, m, o, u, l, d, a, p, y, g, h, v, b, _, T, w, O, x, R, E, A, P, k, D;
38
+ let l, m, o, u, c, d, a, p, y, g, h, v, b, _, T, w, O, x, R, E, A, P, k, D;
39
39
  const N = i.state;
40
- c = i.next_in, k = i.input, m = c + (i.avail_in - 5), o = i.next_out, D = i.output, u = o - (r - i.avail_out), l = o + (i.avail_out - 257), d = N.dmax, a = N.wsize, p = N.whave, y = N.wnext, g = N.window, h = N.hold, v = N.bits, b = N.lencode, _ = N.distcode, T = (1 << N.lenbits) - 1, w = (1 << N.distbits) - 1;
40
+ l = i.next_in, k = i.input, m = l + (i.avail_in - 5), o = i.next_out, D = i.output, u = o - (r - i.avail_out), c = o + (i.avail_out - 257), d = N.dmax, a = N.wsize, p = N.whave, y = N.wnext, g = N.window, h = N.hold, v = N.bits, b = N.lencode, _ = N.distcode, T = (1 << N.lenbits) - 1, w = (1 << N.distbits) - 1;
41
41
  e: do {
42
- v < 15 && (h += k[c++] << v, v += 8, h += k[c++] << v, v += 8), O = b[h & T];
42
+ v < 15 && (h += k[l++] << v, v += 8, h += k[l++] << v, v += 8), O = b[h & T];
43
43
  t: for (; ; ) {
44
44
  if (x = O >>> 24, h >>>= x, v -= x, x = O >>> 16 & 255, x === 0)
45
45
  D[o++] = O & 65535;
46
46
  else if (x & 16) {
47
- R = O & 65535, x &= 15, x && (v < x && (h += k[c++] << v, v += 8), R += h & (1 << x) - 1, h >>>= x, v -= x), v < 15 && (h += k[c++] << v, v += 8, h += k[c++] << v, v += 8), O = _[h & w];
47
+ R = O & 65535, x &= 15, x && (v < x && (h += k[l++] << v, v += 8), R += h & (1 << x) - 1, h >>>= x, v -= x), v < 15 && (h += k[l++] << v, v += 8, h += k[l++] << v, v += 8), O = _[h & w];
48
48
  r: for (; ; ) {
49
49
  if (x = O >>> 24, h >>>= x, v -= x, x = O >>> 16 & 255, x & 16) {
50
- if (E = O & 65535, x &= 15, v < x && (h += k[c++] << v, v += 8, v < x && (h += k[c++] << v, v += 8)), E += h & (1 << x) - 1, E > d) {
50
+ if (E = O & 65535, x &= 15, v < x && (h += k[l++] << v, v += 8, v < x && (h += k[l++] << v, v += 8)), E += h & (1 << x) - 1, E > d) {
51
51
  i.msg = "invalid distance too far back", N.mode = BAD$1;
52
52
  break e;
53
53
  }
@@ -116,8 +116,8 @@ var inffast = function(i, r) {
116
116
  }
117
117
  break;
118
118
  }
119
- } while (c < m && o < l);
120
- R = v >> 3, c -= R, v -= R << 3, h &= (1 << v) - 1, i.next_in = c, i.next_out = o, i.avail_in = c < m ? 5 + (m - c) : 5 - (c - m), i.avail_out = o < l ? 257 + (l - o) : 257 - (o - l), N.hold = h, N.bits = v;
119
+ } while (l < m && o < c);
120
+ R = v >> 3, l -= R, v -= R << 3, h &= (1 << v) - 1, i.next_in = l, i.next_out = o, i.avail_in = l < m ? 5 + (m - l) : 5 - (l - m), i.avail_out = o < c ? 257 + (c - o) : 257 - (o - c), N.hold = h, N.bits = v;
121
121
  };
122
122
  const MAXBITS = 15, ENOUGH_LENS$1 = 852, ENOUGH_DISTS$1 = 592, CODES$1 = 0, LENS$1 = 1, DISTS$1 = 2, lbase = new Uint16Array([
123
123
  /* Length codes 257..285 base */
@@ -253,19 +253,19 @@ const MAXBITS = 15, ENOUGH_LENS$1 = 852, ENOUGH_DISTS$1 = 592, CODES$1 = 0, LENS
253
253
  29,
254
254
  64,
255
255
  64
256
- ]), inflate_table$1 = (s, i, r, c, m, o, u, l) => {
257
- const d = l.bits;
256
+ ]), inflate_table$1 = (s, i, r, l, m, o, u, c) => {
257
+ const d = c.bits;
258
258
  let a = 0, p = 0, y = 0, g = 0, h = 0, v = 0, b = 0, _ = 0, T = 0, w = 0, O, x, R, E, A, P = null, k;
259
259
  const D = new Uint16Array(MAXBITS + 1), N = new Uint16Array(MAXBITS + 1);
260
260
  let L = null, F, M, U;
261
261
  for (a = 0; a <= MAXBITS; a++)
262
262
  D[a] = 0;
263
- for (p = 0; p < c; p++)
263
+ for (p = 0; p < l; p++)
264
264
  D[i[r + p]]++;
265
265
  for (h = d, g = MAXBITS; g >= 1 && D[g] === 0; g--)
266
266
  ;
267
267
  if (h > g && (h = g), g === 0)
268
- return m[o++] = 1 << 24 | 64 << 16 | 0, m[o++] = 1 << 24 | 64 << 16 | 0, l.bits = 1, 0;
268
+ return m[o++] = 1 << 24 | 64 << 16 | 0, m[o++] = 1 << 24 | 64 << 16 | 0, c.bits = 1, 0;
269
269
  for (y = 1; y < g && D[y] === 0; y++)
270
270
  ;
271
271
  for (h < y && (h = y), _ = 1, a = 1; a <= MAXBITS; a++)
@@ -275,7 +275,7 @@ const MAXBITS = 15, ENOUGH_LENS$1 = 852, ENOUGH_DISTS$1 = 592, CODES$1 = 0, LENS
275
275
  return -1;
276
276
  for (N[1] = 0, a = 1; a < MAXBITS; a++)
277
277
  N[a + 1] = N[a] + D[a];
278
- for (p = 0; p < c; p++)
278
+ for (p = 0; p < l; p++)
279
279
  i[r + p] !== 0 && (u[N[i[r + p]]++] = p);
280
280
  if (s === CODES$1 ? (P = L = u, k = 20) : s === LENS$1 ? (P = lbase, L = lext, k = 257) : (P = dbase, L = dext, k = 0), w = 0, p = 0, a = y, A = o, v = h, b = 0, R = -1, T = 1 << h, E = T - 1, s === LENS$1 && T > ENOUGH_LENS$1 || s === DISTS$1 && T > ENOUGH_DISTS$1)
281
281
  return 1;
@@ -299,7 +299,7 @@ const MAXBITS = 15, ENOUGH_LENS$1 = 852, ENOUGH_DISTS$1 = 592, CODES$1 = 0, LENS
299
299
  R = w & E, m[R] = h << 24 | v << 16 | A - o | 0;
300
300
  }
301
301
  }
302
- return w !== 0 && (m[A + w] = a - b << 24 | 64 << 16 | 0), l.bits = h, 0;
302
+ return w !== 0 && (m[A + w] = a - b << 24 | 64 << 16 | 0), c.bits = h, 0;
303
303
  };
304
304
  var inftrees = inflate_table$1, constants = {
305
305
  /* Allowed flush values; see deflate() and inflate() below for details */
@@ -356,15 +356,15 @@ const inflateStateCheck = (s) => {
356
356
  let r;
357
357
  if (inflateStateCheck(s))
358
358
  return Z_STREAM_ERROR$1;
359
- const c = s.state;
360
- return i < 0 ? (r = 0, i = -i) : (r = (i >> 4) + 5, i < 48 && (i &= 15)), i && (i < 8 || i > 15) ? Z_STREAM_ERROR$1 : (c.window !== null && c.wbits !== i && (c.window = null), c.wrap = r, c.wbits = i, inflateReset(s));
359
+ const l = s.state;
360
+ return i < 0 ? (r = 0, i = -i) : (r = (i >> 4) + 5, i < 48 && (i &= 15)), i && (i < 8 || i > 15) ? Z_STREAM_ERROR$1 : (l.window !== null && l.wbits !== i && (l.window = null), l.wrap = r, l.wbits = i, inflateReset(s));
361
361
  }, inflateInit2 = (s, i) => {
362
362
  if (!s)
363
363
  return Z_STREAM_ERROR$1;
364
364
  const r = new InflateState();
365
365
  s.state = r, r.strm = s, r.window = null, r.mode = HEAD;
366
- const c = inflateReset2(s, i);
367
- return c !== Z_OK$1 && (s.state = null), c;
366
+ const l = inflateReset2(s, i);
367
+ return l !== Z_OK$1 && (s.state = null), l;
368
368
  }, inflateInit = (s) => inflateInit2(s, DEF_WBITS);
369
369
  let virgin = !0, lenfix, distfix;
370
370
  const fixedtables = (s) => {
@@ -388,12 +388,12 @@ const fixedtables = (s) => {
388
388
  }), virgin = !1;
389
389
  }
390
390
  s.lencode = lenfix, s.lenbits = 9, s.distcode = distfix, s.distbits = 5;
391
- }, updatewindow = (s, i, r, c) => {
391
+ }, updatewindow = (s, i, r, l) => {
392
392
  let m;
393
393
  const o = s.state;
394
- return o.window === null && (o.wsize = 1 << o.wbits, o.wnext = 0, o.whave = 0, o.window = new Uint8Array(o.wsize)), c >= o.wsize ? (o.window.set(i.subarray(r - o.wsize, r), 0), o.wnext = 0, o.whave = o.wsize) : (m = o.wsize - o.wnext, m > c && (m = c), o.window.set(i.subarray(r - c, r - c + m), o.wnext), c -= m, c ? (o.window.set(i.subarray(r - c, r), 0), o.wnext = c, o.whave = o.wsize) : (o.wnext += m, o.wnext === o.wsize && (o.wnext = 0), o.whave < o.wsize && (o.whave += m))), 0;
394
+ return o.window === null && (o.wsize = 1 << o.wbits, o.wnext = 0, o.whave = 0, o.window = new Uint8Array(o.wsize)), l >= o.wsize ? (o.window.set(i.subarray(r - o.wsize, r), 0), o.wnext = 0, o.whave = o.wsize) : (m = o.wsize - o.wnext, m > l && (m = l), o.window.set(i.subarray(r - l, r - l + m), o.wnext), l -= m, l ? (o.window.set(i.subarray(r - l, r), 0), o.wnext = l, o.whave = o.wsize) : (o.wnext += m, o.wnext === o.wsize && (o.wnext = 0), o.whave < o.wsize && (o.whave += m))), 0;
395
395
  }, inflate$1 = (s, i) => {
396
- let r, c, m, o, u, l, d, a, p, y, g, h, v, b, _ = 0, T, w, O, x, R, E, A, P;
396
+ let r, l, m, o, u, c, d, a, p, y, g, h, v, b, _ = 0, T, w, O, x, R, E, A, P;
397
397
  const k = new Uint8Array(4);
398
398
  let D, N;
399
399
  const L = (
@@ -402,7 +402,7 @@ const fixedtables = (s) => {
402
402
  );
403
403
  if (inflateStateCheck(s) || !s.output || !s.input && s.avail_in !== 0)
404
404
  return Z_STREAM_ERROR$1;
405
- r = s.state, r.mode === TYPE && (r.mode = TYPEDO), u = s.next_out, m = s.output, d = s.avail_out, o = s.next_in, c = s.input, l = s.avail_in, a = r.hold, p = r.bits, y = l, g = d, P = Z_OK$1;
405
+ r = s.state, r.mode === TYPE && (r.mode = TYPEDO), u = s.next_out, m = s.output, d = s.avail_out, o = s.next_in, l = s.input, c = s.avail_in, a = r.hold, p = r.bits, y = c, g = d, P = Z_OK$1;
406
406
  e: for (; ; )
407
407
  switch (r.mode) {
408
408
  case HEAD:
@@ -411,9 +411,9 @@ const fixedtables = (s) => {
411
411
  break;
412
412
  }
413
413
  for (; p < 16; ) {
414
- if (l === 0)
414
+ if (c === 0)
415
415
  break e;
416
- l--, a += c[o++] << p, p += 8;
416
+ c--, a += l[o++] << p, p += 8;
417
417
  }
418
418
  if (r.wrap & 2 && a === 35615) {
419
419
  r.wbits === 0 && (r.wbits = 15), r.check = 0, k[0] = a & 255, k[1] = a >>> 8 & 255, r.check = crc32(r.check, k, 2, 0), a = 0, p = 0, r.mode = FLAGS;
@@ -435,9 +435,9 @@ const fixedtables = (s) => {
435
435
  break;
436
436
  case FLAGS:
437
437
  for (; p < 16; ) {
438
- if (l === 0)
438
+ if (c === 0)
439
439
  break e;
440
- l--, a += c[o++] << p, p += 8;
440
+ c--, a += l[o++] << p, p += 8;
441
441
  }
442
442
  if (r.flags = a, (r.flags & 255) !== Z_DEFLATED) {
443
443
  s.msg = "unknown compression method", r.mode = BAD;
@@ -451,66 +451,66 @@ const fixedtables = (s) => {
451
451
  /* falls through */
452
452
  case TIME:
453
453
  for (; p < 32; ) {
454
- if (l === 0)
454
+ if (c === 0)
455
455
  break e;
456
- l--, a += c[o++] << p, p += 8;
456
+ c--, a += l[o++] << p, p += 8;
457
457
  }
458
458
  r.head && (r.head.time = a), r.flags & 512 && r.wrap & 4 && (k[0] = a & 255, k[1] = a >>> 8 & 255, k[2] = a >>> 16 & 255, k[3] = a >>> 24 & 255, r.check = crc32(r.check, k, 4, 0)), a = 0, p = 0, r.mode = OS;
459
459
  /* falls through */
460
460
  case OS:
461
461
  for (; p < 16; ) {
462
- if (l === 0)
462
+ if (c === 0)
463
463
  break e;
464
- l--, a += c[o++] << p, p += 8;
464
+ c--, a += l[o++] << p, p += 8;
465
465
  }
466
466
  r.head && (r.head.xflags = a & 255, r.head.os = a >> 8), r.flags & 512 && r.wrap & 4 && (k[0] = a & 255, k[1] = a >>> 8 & 255, r.check = crc32(r.check, k, 2, 0)), a = 0, p = 0, r.mode = EXLEN;
467
467
  /* falls through */
468
468
  case EXLEN:
469
469
  if (r.flags & 1024) {
470
470
  for (; p < 16; ) {
471
- if (l === 0)
471
+ if (c === 0)
472
472
  break e;
473
- l--, a += c[o++] << p, p += 8;
473
+ c--, a += l[o++] << p, p += 8;
474
474
  }
475
475
  r.length = a, r.head && (r.head.extra_len = a), r.flags & 512 && r.wrap & 4 && (k[0] = a & 255, k[1] = a >>> 8 & 255, r.check = crc32(r.check, k, 2, 0)), a = 0, p = 0;
476
476
  } else r.head && (r.head.extra = null);
477
477
  r.mode = EXTRA;
478
478
  /* falls through */
479
479
  case EXTRA:
480
- if (r.flags & 1024 && (h = r.length, h > l && (h = l), h && (r.head && (A = r.head.extra_len - r.length, r.head.extra || (r.head.extra = new Uint8Array(r.head.extra_len)), r.head.extra.set(
481
- c.subarray(
480
+ if (r.flags & 1024 && (h = r.length, h > c && (h = c), h && (r.head && (A = r.head.extra_len - r.length, r.head.extra || (r.head.extra = new Uint8Array(r.head.extra_len)), r.head.extra.set(
481
+ l.subarray(
482
482
  o,
483
483
  // extra field is limited to 65536 bytes
484
484
  // - no need for additional size check
485
485
  o + h
486
486
  ),
487
487
  A
488
- )), r.flags & 512 && r.wrap & 4 && (r.check = crc32(r.check, c, h, o)), l -= h, o += h, r.length -= h), r.length))
488
+ )), r.flags & 512 && r.wrap & 4 && (r.check = crc32(r.check, l, h, o)), c -= h, o += h, r.length -= h), r.length))
489
489
  break e;
490
490
  r.length = 0, r.mode = NAME;
491
491
  /* falls through */
492
492
  case NAME:
493
493
  if (r.flags & 2048) {
494
- if (l === 0)
494
+ if (c === 0)
495
495
  break e;
496
496
  h = 0;
497
497
  do
498
- A = c[o + h++], r.head && A && r.length < 65536 && (r.head.name += String.fromCharCode(A));
499
- while (A && h < l);
500
- if (r.flags & 512 && r.wrap & 4 && (r.check = crc32(r.check, c, h, o)), l -= h, o += h, A)
498
+ A = l[o + h++], r.head && A && r.length < 65536 && (r.head.name += String.fromCharCode(A));
499
+ while (A && h < c);
500
+ if (r.flags & 512 && r.wrap & 4 && (r.check = crc32(r.check, l, h, o)), c -= h, o += h, A)
501
501
  break e;
502
502
  } else r.head && (r.head.name = null);
503
503
  r.length = 0, r.mode = COMMENT;
504
504
  /* falls through */
505
505
  case COMMENT:
506
506
  if (r.flags & 4096) {
507
- if (l === 0)
507
+ if (c === 0)
508
508
  break e;
509
509
  h = 0;
510
510
  do
511
- A = c[o + h++], r.head && A && r.length < 65536 && (r.head.comment += String.fromCharCode(A));
512
- while (A && h < l);
513
- if (r.flags & 512 && r.wrap & 4 && (r.check = crc32(r.check, c, h, o)), l -= h, o += h, A)
511
+ A = l[o + h++], r.head && A && r.length < 65536 && (r.head.comment += String.fromCharCode(A));
512
+ while (A && h < c);
513
+ if (r.flags & 512 && r.wrap & 4 && (r.check = crc32(r.check, l, h, o)), c -= h, o += h, A)
514
514
  break e;
515
515
  } else r.head && (r.head.comment = null);
516
516
  r.mode = HCRC;
@@ -518,9 +518,9 @@ const fixedtables = (s) => {
518
518
  case HCRC:
519
519
  if (r.flags & 512) {
520
520
  for (; p < 16; ) {
521
- if (l === 0)
521
+ if (c === 0)
522
522
  break e;
523
- l--, a += c[o++] << p, p += 8;
523
+ c--, a += l[o++] << p, p += 8;
524
524
  }
525
525
  if (r.wrap & 4 && a !== (r.check & 65535)) {
526
526
  s.msg = "header crc mismatch", r.mode = BAD;
@@ -532,15 +532,15 @@ const fixedtables = (s) => {
532
532
  break;
533
533
  case DICTID:
534
534
  for (; p < 32; ) {
535
- if (l === 0)
535
+ if (c === 0)
536
536
  break e;
537
- l--, a += c[o++] << p, p += 8;
537
+ c--, a += l[o++] << p, p += 8;
538
538
  }
539
539
  s.adler = r.check = zswap32(a), a = 0, p = 0, r.mode = DICT;
540
540
  /* falls through */
541
541
  case DICT:
542
542
  if (r.havedict === 0)
543
- return s.next_out = u, s.avail_out = d, s.next_in = o, s.avail_in = l, r.hold = a, r.bits = p, Z_NEED_DICT$1;
543
+ return s.next_out = u, s.avail_out = d, s.next_in = o, s.avail_in = c, r.hold = a, r.bits = p, Z_NEED_DICT$1;
544
544
  s.adler = r.check = 1, r.mode = TYPE;
545
545
  /* falls through */
546
546
  case TYPE:
@@ -553,9 +553,9 @@ const fixedtables = (s) => {
553
553
  break;
554
554
  }
555
555
  for (; p < 3; ) {
556
- if (l === 0)
556
+ if (c === 0)
557
557
  break e;
558
- l--, a += c[o++] << p, p += 8;
558
+ c--, a += l[o++] << p, p += 8;
559
559
  }
560
560
  switch (r.last = a & 1, a >>>= 1, p -= 1, a & 3) {
561
561
  case 0:
@@ -577,9 +577,9 @@ const fixedtables = (s) => {
577
577
  break;
578
578
  case STORED:
579
579
  for (a >>>= p & 7, p -= p & 7; p < 32; ) {
580
- if (l === 0)
580
+ if (c === 0)
581
581
  break e;
582
- l--, a += c[o++] << p, p += 8;
582
+ c--, a += l[o++] << p, p += 8;
583
583
  }
584
584
  if ((a & 65535) !== (a >>> 16 ^ 65535)) {
585
585
  s.msg = "invalid stored block lengths", r.mode = BAD;
@@ -593,18 +593,18 @@ const fixedtables = (s) => {
593
593
  /* falls through */
594
594
  case COPY:
595
595
  if (h = r.length, h) {
596
- if (h > l && (h = l), h > d && (h = d), h === 0)
596
+ if (h > c && (h = c), h > d && (h = d), h === 0)
597
597
  break e;
598
- m.set(c.subarray(o, o + h), u), l -= h, o += h, d -= h, u += h, r.length -= h;
598
+ m.set(l.subarray(o, o + h), u), c -= h, o += h, d -= h, u += h, r.length -= h;
599
599
  break;
600
600
  }
601
601
  r.mode = TYPE;
602
602
  break;
603
603
  case TABLE:
604
604
  for (; p < 14; ) {
605
- if (l === 0)
605
+ if (c === 0)
606
606
  break e;
607
- l--, a += c[o++] << p, p += 8;
607
+ c--, a += l[o++] << p, p += 8;
608
608
  }
609
609
  if (r.nlen = (a & 31) + 257, a >>>= 5, p -= 5, r.ndist = (a & 31) + 1, a >>>= 5, p -= 5, r.ncode = (a & 15) + 4, a >>>= 4, p -= 4, r.nlen > 286 || r.ndist > 30) {
610
610
  s.msg = "too many length or distance symbols", r.mode = BAD;
@@ -615,9 +615,9 @@ const fixedtables = (s) => {
615
615
  case LENLENS:
616
616
  for (; r.have < r.ncode; ) {
617
617
  for (; p < 3; ) {
618
- if (l === 0)
618
+ if (c === 0)
619
619
  break e;
620
- l--, a += c[o++] << p, p += 8;
620
+ c--, a += l[o++] << p, p += 8;
621
621
  }
622
622
  r.lens[L[r.have++]] = a & 7, a >>>= 3, p -= 3;
623
623
  }
@@ -634,18 +634,18 @@ const fixedtables = (s) => {
634
634
  case CODELENS:
635
635
  for (; r.have < r.nlen + r.ndist; ) {
636
636
  for (; _ = r.lencode[a & (1 << r.lenbits) - 1], T = _ >>> 24, w = _ >>> 16 & 255, O = _ & 65535, !(T <= p); ) {
637
- if (l === 0)
637
+ if (c === 0)
638
638
  break e;
639
- l--, a += c[o++] << p, p += 8;
639
+ c--, a += l[o++] << p, p += 8;
640
640
  }
641
641
  if (O < 16)
642
642
  a >>>= T, p -= T, r.lens[r.have++] = O;
643
643
  else {
644
644
  if (O === 16) {
645
645
  for (N = T + 2; p < N; ) {
646
- if (l === 0)
646
+ if (c === 0)
647
647
  break e;
648
- l--, a += c[o++] << p, p += 8;
648
+ c--, a += l[o++] << p, p += 8;
649
649
  }
650
650
  if (a >>>= T, p -= T, r.have === 0) {
651
651
  s.msg = "invalid bit length repeat", r.mode = BAD;
@@ -654,16 +654,16 @@ const fixedtables = (s) => {
654
654
  A = r.lens[r.have - 1], h = 3 + (a & 3), a >>>= 2, p -= 2;
655
655
  } else if (O === 17) {
656
656
  for (N = T + 3; p < N; ) {
657
- if (l === 0)
657
+ if (c === 0)
658
658
  break e;
659
- l--, a += c[o++] << p, p += 8;
659
+ c--, a += l[o++] << p, p += 8;
660
660
  }
661
661
  a >>>= T, p -= T, A = 0, h = 3 + (a & 7), a >>>= 3, p -= 3;
662
662
  } else {
663
663
  for (N = T + 7; p < N; ) {
664
- if (l === 0)
664
+ if (c === 0)
665
665
  break e;
666
- l--, a += c[o++] << p, p += 8;
666
+ c--, a += l[o++] << p, p += 8;
667
667
  }
668
668
  a >>>= T, p -= T, A = 0, h = 11 + (a & 127), a >>>= 7, p -= 7;
669
669
  }
@@ -709,20 +709,20 @@ const fixedtables = (s) => {
709
709
  r.mode = LEN;
710
710
  /* falls through */
711
711
  case LEN:
712
- if (l >= 6 && d >= 258) {
713
- s.next_out = u, s.avail_out = d, s.next_in = o, s.avail_in = l, r.hold = a, r.bits = p, inflate_fast(s, g), u = s.next_out, m = s.output, d = s.avail_out, o = s.next_in, c = s.input, l = s.avail_in, a = r.hold, p = r.bits, r.mode === TYPE && (r.back = -1);
712
+ if (c >= 6 && d >= 258) {
713
+ s.next_out = u, s.avail_out = d, s.next_in = o, s.avail_in = c, r.hold = a, r.bits = p, inflate_fast(s, g), u = s.next_out, m = s.output, d = s.avail_out, o = s.next_in, l = s.input, c = s.avail_in, a = r.hold, p = r.bits, r.mode === TYPE && (r.back = -1);
714
714
  break;
715
715
  }
716
716
  for (r.back = 0; _ = r.lencode[a & (1 << r.lenbits) - 1], T = _ >>> 24, w = _ >>> 16 & 255, O = _ & 65535, !(T <= p); ) {
717
- if (l === 0)
717
+ if (c === 0)
718
718
  break e;
719
- l--, a += c[o++] << p, p += 8;
719
+ c--, a += l[o++] << p, p += 8;
720
720
  }
721
721
  if (w && (w & 240) === 0) {
722
722
  for (x = T, R = w, E = O; _ = r.lencode[E + ((a & (1 << x + R) - 1) >> x)], T = _ >>> 24, w = _ >>> 16 & 255, O = _ & 65535, !(x + T <= p); ) {
723
- if (l === 0)
723
+ if (c === 0)
724
724
  break e;
725
- l--, a += c[o++] << p, p += 8;
725
+ c--, a += l[o++] << p, p += 8;
726
726
  }
727
727
  a >>>= x, p -= x, r.back += x;
728
728
  }
@@ -743,9 +743,9 @@ const fixedtables = (s) => {
743
743
  case LENEXT:
744
744
  if (r.extra) {
745
745
  for (N = r.extra; p < N; ) {
746
- if (l === 0)
746
+ if (c === 0)
747
747
  break e;
748
- l--, a += c[o++] << p, p += 8;
748
+ c--, a += l[o++] << p, p += 8;
749
749
  }
750
750
  r.length += a & (1 << r.extra) - 1, a >>>= r.extra, p -= r.extra, r.back += r.extra;
751
751
  }
@@ -753,15 +753,15 @@ const fixedtables = (s) => {
753
753
  /* falls through */
754
754
  case DIST:
755
755
  for (; _ = r.distcode[a & (1 << r.distbits) - 1], T = _ >>> 24, w = _ >>> 16 & 255, O = _ & 65535, !(T <= p); ) {
756
- if (l === 0)
756
+ if (c === 0)
757
757
  break e;
758
- l--, a += c[o++] << p, p += 8;
758
+ c--, a += l[o++] << p, p += 8;
759
759
  }
760
760
  if ((w & 240) === 0) {
761
761
  for (x = T, R = w, E = O; _ = r.distcode[E + ((a & (1 << x + R) - 1) >> x)], T = _ >>> 24, w = _ >>> 16 & 255, O = _ & 65535, !(x + T <= p); ) {
762
- if (l === 0)
762
+ if (c === 0)
763
763
  break e;
764
- l--, a += c[o++] << p, p += 8;
764
+ c--, a += l[o++] << p, p += 8;
765
765
  }
766
766
  a >>>= x, p -= x, r.back += x;
767
767
  }
@@ -774,9 +774,9 @@ const fixedtables = (s) => {
774
774
  case DISTEXT:
775
775
  if (r.extra) {
776
776
  for (N = r.extra; p < N; ) {
777
- if (l === 0)
777
+ if (c === 0)
778
778
  break e;
779
- l--, a += c[o++] << p, p += 8;
779
+ c--, a += l[o++] << p, p += 8;
780
780
  }
781
781
  r.offset += a & (1 << r.extra) - 1, a >>>= r.extra, p -= r.extra, r.back += r.extra;
782
782
  }
@@ -811,9 +811,9 @@ const fixedtables = (s) => {
811
811
  case CHECK:
812
812
  if (r.wrap) {
813
813
  for (; p < 32; ) {
814
- if (l === 0)
814
+ if (c === 0)
815
815
  break e;
816
- l--, a |= c[o++] << p, p += 8;
816
+ c--, a |= l[o++] << p, p += 8;
817
817
  }
818
818
  if (g -= d, s.total_out += g, r.total += g, r.wrap & 4 && g && (s.adler = r.check = /*UPDATE_CHECK(state.check, put - _out, _out);*/
819
819
  r.flags ? crc32(r.check, m, g, u - g) : adler32(r.check, m, g, u - g)), g = d, r.wrap & 4 && (r.flags ? a : zswap32(a)) !== r.check) {
@@ -827,9 +827,9 @@ const fixedtables = (s) => {
827
827
  case LENGTH:
828
828
  if (r.wrap && r.flags) {
829
829
  for (; p < 32; ) {
830
- if (l === 0)
830
+ if (c === 0)
831
831
  break e;
832
- l--, a += c[o++] << p, p += 8;
832
+ c--, a += l[o++] << p, p += 8;
833
833
  }
834
834
  if (r.wrap & 4 && a !== (r.total & 4294967295)) {
835
835
  s.msg = "incorrect length check", r.mode = BAD;
@@ -852,7 +852,7 @@ const fixedtables = (s) => {
852
852
  default:
853
853
  return Z_STREAM_ERROR$1;
854
854
  }
855
- return s.next_out = u, s.avail_out = d, s.next_in = o, s.avail_in = l, r.hold = a, r.bits = p, (r.wsize || g !== s.avail_out && r.mode < BAD && (r.mode < CHECK || i !== Z_FINISH$1)) && updatewindow(s, s.output, s.next_out, g - s.avail_out), y -= s.avail_in, g -= s.avail_out, s.total_in += y, s.total_out += g, r.total += g, r.wrap & 4 && g && (s.adler = r.check = /*UPDATE_CHECK(state.check, strm.next_out - _out, _out);*/
855
+ return s.next_out = u, s.avail_out = d, s.next_in = o, s.avail_in = c, r.hold = a, r.bits = p, (r.wsize || g !== s.avail_out && r.mode < BAD && (r.mode < CHECK || i !== Z_FINISH$1)) && updatewindow(s, s.output, s.next_out, g - s.avail_out), y -= s.avail_in, g -= s.avail_out, s.total_in += y, s.total_out += g, r.total += g, r.wrap & 4 && g && (s.adler = r.check = /*UPDATE_CHECK(state.check, strm.next_out - _out, _out);*/
856
856
  r.flags ? crc32(r.check, m, g, s.next_out - g) : adler32(r.check, m, g, s.next_out - g)), s.data_type = r.bits + (r.last ? 64 : 0) + (r.mode === TYPE ? 128 : 0) + (r.mode === LEN_ || r.mode === COPY_ ? 256 : 0), (y === 0 && g === 0 || i === Z_FINISH$1) && P === Z_OK$1 && (P = Z_BUF_ERROR), P;
857
857
  }, inflateEnd = (s) => {
858
858
  if (inflateStateCheck(s))
@@ -866,8 +866,8 @@ const fixedtables = (s) => {
866
866
  return (r.wrap & 2) === 0 ? Z_STREAM_ERROR$1 : (r.head = i, i.done = !1, Z_OK$1);
867
867
  }, inflateSetDictionary = (s, i) => {
868
868
  const r = i.length;
869
- let c, m, o;
870
- return inflateStateCheck(s) || (c = s.state, c.wrap !== 0 && c.mode !== DICT) ? Z_STREAM_ERROR$1 : c.mode === DICT && (m = 1, m = adler32(m, i, r, 0), m !== c.check) ? Z_DATA_ERROR$1 : (o = updatewindow(s, i, r, r), o ? (c.mode = MEM, Z_MEM_ERROR$1) : (c.havedict = 1, Z_OK$1));
869
+ let l, m, o;
870
+ return inflateStateCheck(s) || (l = s.state, l.wrap !== 0 && l.mode !== DICT) ? Z_STREAM_ERROR$1 : l.mode === DICT && (m = 1, m = adler32(m, i, r, 0), m !== l.check) ? Z_DATA_ERROR$1 : (o = updatewindow(s, i, r, r), o ? (l.mode = MEM, Z_MEM_ERROR$1) : (l.havedict = 1, Z_OK$1));
871
871
  };
872
872
  inflate$2.inflateReset = inflateReset;
873
873
  inflate$2.inflateReset2 = inflateReset2;
@@ -888,19 +888,19 @@ common$1.assign = function(s) {
888
888
  if (r) {
889
889
  if (typeof r != "object")
890
890
  throw new TypeError(r + "must be non-object");
891
- for (const c in r)
892
- _has(r, c) && (s[c] = r[c]);
891
+ for (const l in r)
892
+ _has(r, l) && (s[l] = r[l]);
893
893
  }
894
894
  }
895
895
  return s;
896
896
  };
897
897
  common$1.flattenChunks = (s) => {
898
898
  let i = 0;
899
- for (let c = 0, m = s.length; c < m; c++)
900
- i += s[c].length;
899
+ for (let l = 0, m = s.length; l < m; l++)
900
+ i += s[l].length;
901
901
  const r = new Uint8Array(i);
902
- for (let c = 0, m = 0, o = s.length; c < o; c++) {
903
- let u = s[c];
902
+ for (let l = 0, m = 0, o = s.length; l < o; l++) {
903
+ let u = s[l];
904
904
  r.set(u, m), m += u.length;
905
905
  }
906
906
  return r;
@@ -919,41 +919,41 @@ _utf8len[254] = _utf8len[254] = 1;
919
919
  strings$1.string2buf = (s) => {
920
920
  if (typeof TextEncoder == "function" && TextEncoder.prototype.encode)
921
921
  return new TextEncoder().encode(s);
922
- let i, r, c, m, o, u = s.length, l = 0;
922
+ let i, r, l, m, o, u = s.length, c = 0;
923
923
  for (m = 0; m < u; m++)
924
- r = s.charCodeAt(m), (r & 64512) === 55296 && m + 1 < u && (c = s.charCodeAt(m + 1), (c & 64512) === 56320 && (r = 65536 + (r - 55296 << 10) + (c - 56320), m++)), l += r < 128 ? 1 : r < 2048 ? 2 : r < 65536 ? 3 : 4;
925
- for (i = new Uint8Array(l), o = 0, m = 0; o < l; m++)
926
- r = s.charCodeAt(m), (r & 64512) === 55296 && m + 1 < u && (c = s.charCodeAt(m + 1), (c & 64512) === 56320 && (r = 65536 + (r - 55296 << 10) + (c - 56320), m++)), r < 128 ? i[o++] = r : r < 2048 ? (i[o++] = 192 | r >>> 6, i[o++] = 128 | r & 63) : r < 65536 ? (i[o++] = 224 | r >>> 12, i[o++] = 128 | r >>> 6 & 63, i[o++] = 128 | r & 63) : (i[o++] = 240 | r >>> 18, i[o++] = 128 | r >>> 12 & 63, i[o++] = 128 | r >>> 6 & 63, i[o++] = 128 | r & 63);
924
+ r = s.charCodeAt(m), (r & 64512) === 55296 && m + 1 < u && (l = s.charCodeAt(m + 1), (l & 64512) === 56320 && (r = 65536 + (r - 55296 << 10) + (l - 56320), m++)), c += r < 128 ? 1 : r < 2048 ? 2 : r < 65536 ? 3 : 4;
925
+ for (i = new Uint8Array(c), o = 0, m = 0; o < c; m++)
926
+ r = s.charCodeAt(m), (r & 64512) === 55296 && m + 1 < u && (l = s.charCodeAt(m + 1), (l & 64512) === 56320 && (r = 65536 + (r - 55296 << 10) + (l - 56320), m++)), r < 128 ? i[o++] = r : r < 2048 ? (i[o++] = 192 | r >>> 6, i[o++] = 128 | r & 63) : r < 65536 ? (i[o++] = 224 | r >>> 12, i[o++] = 128 | r >>> 6 & 63, i[o++] = 128 | r & 63) : (i[o++] = 240 | r >>> 18, i[o++] = 128 | r >>> 12 & 63, i[o++] = 128 | r >>> 6 & 63, i[o++] = 128 | r & 63);
927
927
  return i;
928
928
  };
929
929
  const buf2binstring = (s, i) => {
930
930
  if (i < 65534 && s.subarray && STR_APPLY_UIA_OK)
931
931
  return String.fromCharCode.apply(null, s.length === i ? s : s.subarray(0, i));
932
932
  let r = "";
933
- for (let c = 0; c < i; c++)
934
- r += String.fromCharCode(s[c]);
933
+ for (let l = 0; l < i; l++)
934
+ r += String.fromCharCode(s[l]);
935
935
  return r;
936
936
  };
937
937
  strings$1.buf2string = (s, i) => {
938
938
  const r = i || s.length;
939
939
  if (typeof TextDecoder == "function" && TextDecoder.prototype.decode)
940
940
  return new TextDecoder().decode(s.subarray(0, i));
941
- let c, m;
941
+ let l, m;
942
942
  const o = new Array(r * 2);
943
- for (m = 0, c = 0; c < r; ) {
944
- let u = s[c++];
943
+ for (m = 0, l = 0; l < r; ) {
944
+ let u = s[l++];
945
945
  if (u < 128) {
946
946
  o[m++] = u;
947
947
  continue;
948
948
  }
949
- let l = _utf8len[u];
950
- if (l > 4) {
951
- o[m++] = 65533, c += l - 1;
949
+ let c = _utf8len[u];
950
+ if (c > 4) {
951
+ o[m++] = 65533, l += c - 1;
952
952
  continue;
953
953
  }
954
- for (u &= l === 2 ? 31 : l === 3 ? 15 : 7; l > 1 && c < r; )
955
- u = u << 6 | s[c++] & 63, l--;
956
- if (l > 1) {
954
+ for (u &= c === 2 ? 31 : c === 3 ? 15 : 7; c > 1 && l < r; )
955
+ u = u << 6 | s[l++] & 63, c--;
956
+ if (c > 1) {
957
957
  o[m++] = 65533;
958
958
  continue;
959
959
  }
@@ -1023,11 +1023,11 @@ function Inflate(s) {
1023
1023
  throw new Error(msg[r]);
1024
1024
  }
1025
1025
  Inflate.prototype.push = function(s, i) {
1026
- const r = this.strm, c = this.options.chunkSize, m = this.options.dictionary;
1027
- let o, u, l;
1026
+ const r = this.strm, l = this.options.chunkSize, m = this.options.dictionary;
1027
+ let o, u, c;
1028
1028
  if (this.ended) return !1;
1029
1029
  for (i === ~~i ? u = i : u = i === !0 ? Z_FINISH : Z_NO_FLUSH, toString.call(s) === "[object ArrayBuffer]" ? r.input = new Uint8Array(s) : r.input = s, r.next_in = 0, r.avail_in = r.input.length; ; ) {
1030
- for (r.avail_out === 0 && (r.output = new Uint8Array(c), r.next_out = 0, r.avail_out = c), o = zlib_inflate.inflate(r, u), o === Z_NEED_DICT && m && (o = zlib_inflate.inflateSetDictionary(r, m), o === Z_OK ? o = zlib_inflate.inflate(r, u) : o === Z_DATA_ERROR && (o = Z_NEED_DICT)); r.avail_in > 0 && o === Z_STREAM_END && r.state.wrap > 0 && s[r.next_in] !== 0; )
1030
+ for (r.avail_out === 0 && (r.output = new Uint8Array(l), r.next_out = 0, r.avail_out = l), o = zlib_inflate.inflate(r, u), o === Z_NEED_DICT && m && (o = zlib_inflate.inflateSetDictionary(r, m), o === Z_OK ? o = zlib_inflate.inflate(r, u) : o === Z_DATA_ERROR && (o = Z_NEED_DICT)); r.avail_in > 0 && o === Z_STREAM_END && r.state.wrap > 0 && s[r.next_in] !== 0; )
1031
1031
  zlib_inflate.inflateReset(r), o = zlib_inflate.inflate(r, u);
1032
1032
  switch (o) {
1033
1033
  case Z_STREAM_ERROR:
@@ -1036,15 +1036,15 @@ Inflate.prototype.push = function(s, i) {
1036
1036
  case Z_MEM_ERROR:
1037
1037
  return this.onEnd(o), this.ended = !0, !1;
1038
1038
  }
1039
- if (l = r.avail_out, r.next_out && (r.avail_out === 0 || o === Z_STREAM_END))
1039
+ if (c = r.avail_out, r.next_out && (r.avail_out === 0 || o === Z_STREAM_END))
1040
1040
  if (this.options.to === "string") {
1041
1041
  let d = strings.utf8border(r.output, r.next_out), a = r.next_out - d, p = strings.buf2string(r.output, d);
1042
- r.next_out = a, r.avail_out = c - a, a && r.output.set(r.output.subarray(d, d + a), 0), this.onData(p);
1042
+ r.next_out = a, r.avail_out = l - a, a && r.output.set(r.output.subarray(d, d + a), 0), this.onData(p);
1043
1043
  } else
1044
1044
  this.onData(
1045
1045
  r.output.length === r.next_out ? r.output : r.output.subarray(0, r.next_out)
1046
1046
  );
1047
- if (!(o === Z_OK && l === 0)) {
1047
+ if (!(o === Z_OK && c === 0)) {
1048
1048
  if (o === Z_STREAM_END)
1049
1049
  return o = zlib_inflate.inflateEnd(this.strm), this.onEnd(o), this.ended = !0, !0;
1050
1050
  if (r.avail_in === 0) break;
@@ -1064,8 +1064,8 @@ function inflate(s, i) {
1064
1064
  return r.result;
1065
1065
  }
1066
1066
  var inflate_2 = inflate;
1067
- function f(s, i, r, c, m, o) {
1068
- let u = s.tileXYToRectangle(r, c, m);
1067
+ function f(s, i, r, l, m, o) {
1068
+ let u = s.tileXYToRectangle(r, l, m);
1069
1069
  return defined(Rectangle$1.intersection(u, i, o));
1070
1070
  }
1071
1071
  class GeoTerrainProvider {
@@ -1104,42 +1104,42 @@ class GeoTerrainProvider {
1104
1104
  };
1105
1105
  const r = i.credit;
1106
1106
  typeof r == "string" && (this._credit = new Credit(r)), this._rectangles = [];
1107
- const c = i.ellipsoid ?? Ellipsoid.WGS84;
1107
+ const l = i.ellipsoid ?? Ellipsoid.WGS84;
1108
1108
  this._tilingScheme = new GeographicTilingScheme({
1109
- ellipsoid: c
1109
+ ellipsoid: l
1110
1110
  }), this._heightmapWidth = 64, this._heightmapHeight = 64, this._levelZeroMaximumGeometricError = TerrainProvider.getEstimatedLevelZeroGeometricErrorForAHeightmap(
1111
- c,
1111
+ l,
1112
1112
  Math.min(this._heightmapWidth, this._heightmapHeight),
1113
1113
  this._tilingScheme.getNumberOfXTilesAtLevel(0)
1114
1114
  ), this._ready = !0, this._topLevel = i.topLevel ?? 5, this._bottomLevel = i.bottomLevel ?? 25;
1115
1115
  }
1116
- requestTileGeometry(i, r, c, m) {
1116
+ requestTileGeometry(i, r, l, m) {
1117
1117
  if (!this.ready)
1118
1118
  throw new DeveloperError("requestTileGeometry must not be called before ready returns true.");
1119
- if (c >= this._bottomLevel) return Promise.reject(`${c}该级别不发送请求!`);
1120
- if (c < this._topLevel)
1119
+ if (l >= this._bottomLevel) return Promise.reject(`${l}该级别不发送请求!`);
1120
+ if (l < this._topLevel)
1121
1121
  return Promise.resolve(
1122
1122
  new HeightmapTerrainData({
1123
1123
  buffer: this.getVHeightBuffer(),
1124
1124
  width: this._heightmapWidth,
1125
1125
  height: this._heightmapHeight,
1126
- childTileMask: this.getChildTileMask(i, r, c),
1126
+ childTileMask: this.getChildTileMask(i, r, l),
1127
1127
  structure: this._terrainDataStructure
1128
1128
  })
1129
1129
  );
1130
1130
  let o = "", u = this._url;
1131
- Array.isArray(this._subdomains) && this._subdomains.length && (o = this._subdomains[(i + r) % this._subdomains.length], u = u.replace("{s}", o)), u = u.replace("{token}", this._token).replace("{x}", i).replace("{y}", r).replace("{z}", c + 1);
1132
- const l = Resource.fetchArrayBuffer({
1131
+ Array.isArray(this._subdomains) && this._subdomains.length && (o = this._subdomains[(i + r) % this._subdomains.length], u = u.replace("{s}", o)), u = u.replace("{token}", this._token).replace("{x}", i).replace("{y}", r).replace("{z}", l + 1);
1132
+ const c = Resource.fetchArrayBuffer({
1133
1133
  url: u,
1134
1134
  request: m
1135
1135
  });
1136
- if (l)
1137
- return l.then((d) => d.byteLength < 1e3 ? Promise.reject("无效数据") : inflate_2(d)).then((d) => {
1136
+ if (c)
1137
+ return c.then((d) => d.byteLength < 1e3 ? Promise.reject("无效数据") : inflate_2(d)).then((d) => {
1138
1138
  const a = new HeightmapTerrainData({
1139
1139
  buffer: this.transformBuffer(d),
1140
1140
  width: this._heightmapWidth,
1141
1141
  height: this._heightmapHeight,
1142
- childTileMask: this.getChildTileMask(i, r, c),
1142
+ childTileMask: this.getChildTileMask(i, r, l),
1143
1143
  structure: this._terrainDataStructure
1144
1144
  });
1145
1145
  return a._skirtHeight = 6e3, a;
@@ -1150,18 +1150,18 @@ class GeoTerrainProvider {
1150
1150
  throw new DeveloperError("requestTileGeometry must not be called before ready returns true.");
1151
1151
  return this._levelZeroMaximumGeometricError / (1 << i);
1152
1152
  }
1153
- getTileDataAvailable(i, r, c) {
1154
- if (c < 25) return !0;
1153
+ getTileDataAvailable(i, r, l) {
1154
+ if (l < 25) return !0;
1155
1155
  }
1156
1156
  transformBuffer(i) {
1157
1157
  let r = 2;
1158
1158
  this._dataType === "int" ? r = 2 : this._dataType === "float" && (r = 4);
1159
- let c = i;
1160
- if (c.length !== 22500 * r) return null;
1161
- let m, o, u, l, d = new ArrayBuffer(r), a = new DataView(d), p = this._heightmapWidth, y = this._heightmapHeight, g = new Uint8Array(p * y * 4);
1159
+ let l = i;
1160
+ if (l.length !== 22500 * r) return null;
1161
+ let m, o, u, c, d = new ArrayBuffer(r), a = new DataView(d), p = this._heightmapWidth, y = this._heightmapHeight, g = new Uint8Array(p * y * 4);
1162
1162
  for (let h = 0; h < y; h++)
1163
1163
  for (let v = 0; v < p; v++) {
1164
- u = parseInt(149 * h / (y - 1)), l = parseInt(149 * v / (p - 1)), o = r * (150 * u + l), r === 4 ? (a.setInt8(0, c[o]), a.setInt8(1, c[o + 1]), a.setInt8(2, c[o + 2]), a.setInt8(3, c[o + 3]), m = a.getFloat32(0, !0)) : m = c[o] + 256 * c[o + 1], (1e4 < m || m < -2e3) && (m = 0);
1164
+ u = parseInt(149 * h / (y - 1)), c = parseInt(149 * v / (p - 1)), o = r * (150 * u + c), r === 4 ? (a.setInt8(0, l[o]), a.setInt8(1, l[o + 1]), a.setInt8(2, l[o + 2]), a.setInt8(3, l[o + 3]), m = a.getFloat32(0, !0)) : m = l[o] + 256 * l[o + 1], (1e4 < m || m < -2e3) && (m = 0);
1165
1165
  let b = (m + 1e3) / 1e-3, _ = 4 * (h * p + v);
1166
1166
  g[_] = b / 65536, g[1 + _] = (b - 256 * g[_] * 256) / 256, g[2 + _] = b - 256 * g[_] * 256 - 256 * g[1 + _], g[3 + _] = 255;
1167
1167
  }
@@ -1177,13 +1177,13 @@ class GeoTerrainProvider {
1177
1177
  }
1178
1178
  return i;
1179
1179
  }
1180
- getChildTileMask(i, r, c) {
1181
- let m = new Rectangle$1(), o = this._tilingScheme, u = this._rectangles, l = o.tileXYToRectangle(i, r, c), d = 0;
1180
+ getChildTileMask(i, r, l) {
1181
+ let m = new Rectangle$1(), o = this._tilingScheme, u = this._rectangles, c = o.tileXYToRectangle(i, r, l), d = 0;
1182
1182
  for (let a = 0; a < u.length && d !== 15; ++a) {
1183
1183
  let p = u[a];
1184
- if (!(p.maxLevel <= c)) {
1185
- let y = p.rectangle, g = Rectangle$1.intersection(y, l, m);
1186
- defined(g) && (f(o, y, 2 * i, 2 * r, c + 1, m) && (d |= 4), f(o, y, 2 * i + 1, 2 * r, c + 1, m) && (d |= 8), f(o, y, 2 * i, 2 * r + 1, c + 1, m) && (d |= 1), f(o, y, 2 * i + 1, 2 * r + 1, c + 1, m) && (d |= 2));
1184
+ if (!(p.maxLevel <= l)) {
1185
+ let y = p.rectangle, g = Rectangle$1.intersection(y, c, m);
1186
+ defined(g) && (f(o, y, 2 * i, 2 * r, l + 1, m) && (d |= 4), f(o, y, 2 * i + 1, 2 * r, l + 1, m) && (d |= 8), f(o, y, 2 * i, 2 * r + 1, l + 1, m) && (d |= 1), f(o, y, 2 * i + 1, 2 * r + 1, l + 1, m) && (d |= 2));
1187
1187
  }
1188
1188
  }
1189
1189
  return d;
@@ -1194,9 +1194,9 @@ function requireAspromise() {
1194
1194
  if (hasRequiredAspromise) return aspromise;
1195
1195
  hasRequiredAspromise = 1, aspromise = s;
1196
1196
  function s(i, r) {
1197
- for (var c = new Array(arguments.length - 1), m = 0, o = 2, u = !0; o < arguments.length; ) c[m++] = arguments[o++];
1197
+ for (var l = new Array(arguments.length - 1), m = 0, o = 2, u = !0; o < arguments.length; ) l[m++] = arguments[o++];
1198
1198
  return new Promise(function(d, a) {
1199
- c[m] = function(y) {
1199
+ l[m] = function(y) {
1200
1200
  if (u)
1201
1201
  if (u = !1, y) a(y);
1202
1202
  else {
@@ -1205,7 +1205,7 @@ function requireAspromise() {
1205
1205
  }
1206
1206
  };
1207
1207
  try {
1208
- i.apply(r || null, c);
1208
+ i.apply(r || null, l);
1209
1209
  } catch (p) {
1210
1210
  u && (u = !1, a(p));
1211
1211
  }
@@ -1217,17 +1217,17 @@ var base64$1 = {}, hasRequiredBase64;
1217
1217
  function requireBase64() {
1218
1218
  return hasRequiredBase64 || (hasRequiredBase64 = 1, function(s) {
1219
1219
  var i = s;
1220
- i.length = function(l) {
1221
- var d = l.length;
1220
+ i.length = function(c) {
1221
+ var d = c.length;
1222
1222
  if (!d) return 0;
1223
- for (var a = 0; --d % 4 > 1 && l.charAt(d) === "="; ) ++a;
1224
- return Math.ceil(l.length * 3) / 4 - a;
1223
+ for (var a = 0; --d % 4 > 1 && c.charAt(d) === "="; ) ++a;
1224
+ return Math.ceil(c.length * 3) / 4 - a;
1225
1225
  };
1226
- for (var r = new Array(64), c = new Array(123), m = 0; m < 64; )
1227
- c[r[m] = m < 26 ? m + 65 : m < 52 ? m + 71 : m < 62 ? m - 4 : m - 59 | 43] = m++;
1228
- i.encode = function(l, d, a) {
1226
+ for (var r = new Array(64), l = new Array(123), m = 0; m < 64; )
1227
+ l[r[m] = m < 26 ? m + 65 : m < 52 ? m + 71 : m < 62 ? m - 4 : m - 59 | 43] = m++;
1228
+ i.encode = function(c, d, a) {
1229
1229
  for (var p = null, y = [], g = 0, h = 0, v; d < a; ) {
1230
- var b = l[d++];
1230
+ var b = c[d++];
1231
1231
  switch (h) {
1232
1232
  case 0:
1233
1233
  y[g++] = r[b >> 2], v = (b & 3) << 4, h = 1;
@@ -1244,11 +1244,11 @@ function requireBase64() {
1244
1244
  return h && (y[g++] = r[v], y[g++] = 61, h === 1 && (y[g++] = 61)), p ? (g && p.push(String.fromCharCode.apply(String, y.slice(0, g))), p.join("")) : String.fromCharCode.apply(String, y.slice(0, g));
1245
1245
  };
1246
1246
  var o = "invalid encoding";
1247
- i.decode = function(l, d, a) {
1248
- for (var p = a, y = 0, g, h = 0; h < l.length; ) {
1249
- var v = l.charCodeAt(h++);
1247
+ i.decode = function(c, d, a) {
1248
+ for (var p = a, y = 0, g, h = 0; h < c.length; ) {
1249
+ var v = c.charCodeAt(h++);
1250
1250
  if (v === 61 && y > 1) break;
1251
- if ((v = c[v]) === void 0) throw Error(o);
1251
+ if ((v = l[v]) === void 0) throw Error(o);
1252
1252
  switch (y) {
1253
1253
  case 0:
1254
1254
  g = v, y = 1;
@@ -1266,8 +1266,8 @@ function requireBase64() {
1266
1266
  }
1267
1267
  if (y === 1) throw Error(o);
1268
1268
  return a - p;
1269
- }, i.test = function(l) {
1270
- return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(l);
1269
+ }, i.test = function(c) {
1270
+ return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(c);
1271
1271
  };
1272
1272
  }(base64$1)), base64$1;
1273
1273
  }
@@ -1278,23 +1278,23 @@ function requireEventemitter() {
1278
1278
  function s() {
1279
1279
  this._listeners = {};
1280
1280
  }
1281
- return s.prototype.on = function(r, c, m) {
1281
+ return s.prototype.on = function(r, l, m) {
1282
1282
  return (this._listeners[r] || (this._listeners[r] = [])).push({
1283
- fn: c,
1283
+ fn: l,
1284
1284
  ctx: m || this
1285
1285
  }), this;
1286
- }, s.prototype.off = function(r, c) {
1286
+ }, s.prototype.off = function(r, l) {
1287
1287
  if (r === void 0) this._listeners = {};
1288
- else if (c === void 0) this._listeners[r] = [];
1288
+ else if (l === void 0) this._listeners[r] = [];
1289
1289
  else
1290
1290
  for (var m = this._listeners[r], o = 0; o < m.length; )
1291
- m[o].fn === c ? m.splice(o, 1) : ++o;
1291
+ m[o].fn === l ? m.splice(o, 1) : ++o;
1292
1292
  return this;
1293
1293
  }, s.prototype.emit = function(r) {
1294
- var c = this._listeners[r];
1295
- if (c) {
1294
+ var l = this._listeners[r];
1295
+ if (l) {
1296
1296
  for (var m = [], o = 1; o < arguments.length; ) m.push(arguments[o++]);
1297
- for (o = 0; o < c.length; ) c[o].fn.apply(c[o++].ctx, m);
1297
+ for (o = 0; o < l.length; ) l[o].fn.apply(l[o++].ctx, m);
1298
1298
  }
1299
1299
  return this;
1300
1300
  }, eventemitter;
@@ -1305,19 +1305,19 @@ function requireFloat() {
1305
1305
  hasRequiredFloat = 1, float = s(s);
1306
1306
  function s(o) {
1307
1307
  return typeof Float32Array < "u" ? function() {
1308
- var u = new Float32Array([-0]), l = new Uint8Array(u.buffer), d = l[3] === 128;
1308
+ var u = new Float32Array([-0]), c = new Uint8Array(u.buffer), d = c[3] === 128;
1309
1309
  function a(h, v, b) {
1310
- u[0] = h, v[b] = l[0], v[b + 1] = l[1], v[b + 2] = l[2], v[b + 3] = l[3];
1310
+ u[0] = h, v[b] = c[0], v[b + 1] = c[1], v[b + 2] = c[2], v[b + 3] = c[3];
1311
1311
  }
1312
1312
  function p(h, v, b) {
1313
- u[0] = h, v[b] = l[3], v[b + 1] = l[2], v[b + 2] = l[1], v[b + 3] = l[0];
1313
+ u[0] = h, v[b] = c[3], v[b + 1] = c[2], v[b + 2] = c[1], v[b + 3] = c[0];
1314
1314
  }
1315
1315
  o.writeFloatLE = d ? a : p, o.writeFloatBE = d ? p : a;
1316
1316
  function y(h, v) {
1317
- return l[0] = h[v], l[1] = h[v + 1], l[2] = h[v + 2], l[3] = h[v + 3], u[0];
1317
+ return c[0] = h[v], c[1] = h[v + 1], c[2] = h[v + 2], c[3] = h[v + 3], u[0];
1318
1318
  }
1319
1319
  function g(h, v) {
1320
- return l[3] = h[v], l[2] = h[v + 1], l[1] = h[v + 2], l[0] = h[v + 3], u[0];
1320
+ return c[3] = h[v], c[2] = h[v + 1], c[1] = h[v + 2], c[0] = h[v + 3], u[0];
1321
1321
  }
1322
1322
  o.readFloatLE = d ? y : g, o.readFloatBE = d ? g : y;
1323
1323
  }() : function() {
@@ -1342,25 +1342,25 @@ function requireFloat() {
1342
1342
  }
1343
1343
  }
1344
1344
  o.writeFloatLE = u.bind(null, i), o.writeFloatBE = u.bind(null, r);
1345
- function l(d, a, p) {
1345
+ function c(d, a, p) {
1346
1346
  var y = d(a, p), g = (y >> 31) * 2 + 1, h = y >>> 23 & 255, v = y & 8388607;
1347
1347
  return h === 255 ? v ? NaN : g * (1 / 0) : h === 0 ? g * 1401298464324817e-60 * v : g * Math.pow(2, h - 150) * (v + 8388608);
1348
1348
  }
1349
- o.readFloatLE = l.bind(null, c), o.readFloatBE = l.bind(null, m);
1349
+ o.readFloatLE = c.bind(null, l), o.readFloatBE = c.bind(null, m);
1350
1350
  }(), typeof Float64Array < "u" ? function() {
1351
- var u = new Float64Array([-0]), l = new Uint8Array(u.buffer), d = l[7] === 128;
1351
+ var u = new Float64Array([-0]), c = new Uint8Array(u.buffer), d = c[7] === 128;
1352
1352
  function a(h, v, b) {
1353
- u[0] = h, v[b] = l[0], v[b + 1] = l[1], v[b + 2] = l[2], v[b + 3] = l[3], v[b + 4] = l[4], v[b + 5] = l[5], v[b + 6] = l[6], v[b + 7] = l[7];
1353
+ u[0] = h, v[b] = c[0], v[b + 1] = c[1], v[b + 2] = c[2], v[b + 3] = c[3], v[b + 4] = c[4], v[b + 5] = c[5], v[b + 6] = c[6], v[b + 7] = c[7];
1354
1354
  }
1355
1355
  function p(h, v, b) {
1356
- u[0] = h, v[b] = l[7], v[b + 1] = l[6], v[b + 2] = l[5], v[b + 3] = l[4], v[b + 4] = l[3], v[b + 5] = l[2], v[b + 6] = l[1], v[b + 7] = l[0];
1356
+ u[0] = h, v[b] = c[7], v[b + 1] = c[6], v[b + 2] = c[5], v[b + 3] = c[4], v[b + 4] = c[3], v[b + 5] = c[2], v[b + 6] = c[1], v[b + 7] = c[0];
1357
1357
  }
1358
1358
  o.writeDoubleLE = d ? a : p, o.writeDoubleBE = d ? p : a;
1359
1359
  function y(h, v) {
1360
- return l[0] = h[v], l[1] = h[v + 1], l[2] = h[v + 2], l[3] = h[v + 3], l[4] = h[v + 4], l[5] = h[v + 5], l[6] = h[v + 6], l[7] = h[v + 7], u[0];
1360
+ return c[0] = h[v], c[1] = h[v + 1], c[2] = h[v + 2], c[3] = h[v + 3], c[4] = h[v + 4], c[5] = h[v + 5], c[6] = h[v + 6], c[7] = h[v + 7], u[0];
1361
1361
  }
1362
1362
  function g(h, v) {
1363
- return l[7] = h[v], l[6] = h[v + 1], l[5] = h[v + 2], l[4] = h[v + 3], l[3] = h[v + 4], l[2] = h[v + 5], l[1] = h[v + 6], l[0] = h[v + 7], u[0];
1363
+ return c[7] = h[v], c[6] = h[v + 1], c[5] = h[v + 2], c[4] = h[v + 3], c[3] = h[v + 4], c[2] = h[v + 5], c[1] = h[v + 6], c[0] = h[v + 7], u[0];
1364
1364
  }
1365
1365
  o.readDoubleLE = d ? y : g, o.readDoubleBE = d ? g : y;
1366
1366
  }() : function() {
@@ -1393,20 +1393,20 @@ function requireFloat() {
1393
1393
  }
1394
1394
  }
1395
1395
  o.writeDoubleLE = u.bind(null, i, 0, 4), o.writeDoubleBE = u.bind(null, r, 4, 0);
1396
- function l(d, a, p, y, g) {
1396
+ function c(d, a, p, y, g) {
1397
1397
  var h = d(y, g + a), v = d(y, g + p), b = (v >> 31) * 2 + 1, _ = v >>> 20 & 2047, T = 4294967296 * (v & 1048575) + h;
1398
1398
  return _ === 2047 ? T ? NaN : b * (1 / 0) : _ === 0 ? b * 5e-324 * T : b * Math.pow(2, _ - 1075) * (T + 4503599627370496);
1399
1399
  }
1400
- o.readDoubleLE = l.bind(null, c, 0, 4), o.readDoubleBE = l.bind(null, m, 4, 0);
1400
+ o.readDoubleLE = c.bind(null, l, 0, 4), o.readDoubleBE = c.bind(null, m, 4, 0);
1401
1401
  }(), o;
1402
1402
  }
1403
- function i(o, u, l) {
1404
- u[l] = o & 255, u[l + 1] = o >>> 8 & 255, u[l + 2] = o >>> 16 & 255, u[l + 3] = o >>> 24;
1403
+ function i(o, u, c) {
1404
+ u[c] = o & 255, u[c + 1] = o >>> 8 & 255, u[c + 2] = o >>> 16 & 255, u[c + 3] = o >>> 24;
1405
1405
  }
1406
- function r(o, u, l) {
1407
- u[l] = o >>> 24, u[l + 1] = o >>> 16 & 255, u[l + 2] = o >>> 8 & 255, u[l + 3] = o & 255;
1406
+ function r(o, u, c) {
1407
+ u[c] = o >>> 24, u[c + 1] = o >>> 16 & 255, u[c + 2] = o >>> 8 & 255, u[c + 3] = o & 255;
1408
1408
  }
1409
- function c(o, u) {
1409
+ function l(o, u) {
1410
1410
  return (o[u] | o[u + 1] << 8 | o[u + 2] << 16 | o[u + 3] << 24) >>> 0;
1411
1411
  }
1412
1412
  function m(o, u) {
@@ -1432,19 +1432,19 @@ var utf8$2 = {}, hasRequiredUtf8;
1432
1432
  function requireUtf8() {
1433
1433
  return hasRequiredUtf8 || (hasRequiredUtf8 = 1, function(s) {
1434
1434
  var i = s;
1435
- i.length = function(c) {
1436
- for (var m = 0, o = 0, u = 0; u < c.length; ++u)
1437
- o = c.charCodeAt(u), o < 128 ? m += 1 : o < 2048 ? m += 2 : (o & 64512) === 55296 && (c.charCodeAt(u + 1) & 64512) === 56320 ? (++u, m += 4) : m += 3;
1435
+ i.length = function(l) {
1436
+ for (var m = 0, o = 0, u = 0; u < l.length; ++u)
1437
+ o = l.charCodeAt(u), o < 128 ? m += 1 : o < 2048 ? m += 2 : (o & 64512) === 55296 && (l.charCodeAt(u + 1) & 64512) === 56320 ? (++u, m += 4) : m += 3;
1438
1438
  return m;
1439
- }, i.read = function(c, m, o) {
1439
+ }, i.read = function(l, m, o) {
1440
1440
  var u = o - m;
1441
1441
  if (u < 1) return "";
1442
- for (var l = null, d = [], a = 0, p; m < o; )
1443
- p = c[m++], p < 128 ? d[a++] = p : p > 191 && p < 224 ? d[a++] = (p & 31) << 6 | c[m++] & 63 : p > 239 && p < 365 ? (p = ((p & 7) << 18 | (c[m++] & 63) << 12 | (c[m++] & 63) << 6 | c[m++] & 63) - 65536, d[a++] = 55296 + (p >> 10), d[a++] = 56320 + (p & 1023)) : d[a++] = (p & 15) << 12 | (c[m++] & 63) << 6 | c[m++] & 63, a > 8191 && ((l || (l = [])).push(String.fromCharCode.apply(String, d)), a = 0);
1444
- return l ? (a && l.push(String.fromCharCode.apply(String, d.slice(0, a))), l.join("")) : String.fromCharCode.apply(String, d.slice(0, a));
1445
- }, i.write = function(c, m, o) {
1446
- for (var u = o, l, d, a = 0; a < c.length; ++a)
1447
- l = c.charCodeAt(a), l < 128 ? m[o++] = l : l < 2048 ? (m[o++] = l >> 6 | 192, m[o++] = l & 63 | 128) : (l & 64512) === 55296 && ((d = c.charCodeAt(a + 1)) & 64512) === 56320 ? (l = 65536 + ((l & 1023) << 10) + (d & 1023), ++a, m[o++] = l >> 18 | 240, m[o++] = l >> 12 & 63 | 128, m[o++] = l >> 6 & 63 | 128, m[o++] = l & 63 | 128) : (m[o++] = l >> 12 | 224, m[o++] = l >> 6 & 63 | 128, m[o++] = l & 63 | 128);
1442
+ for (var c = null, d = [], a = 0, p; m < o; )
1443
+ p = l[m++], p < 128 ? d[a++] = p : p > 191 && p < 224 ? d[a++] = (p & 31) << 6 | l[m++] & 63 : p > 239 && p < 365 ? (p = ((p & 7) << 18 | (l[m++] & 63) << 12 | (l[m++] & 63) << 6 | l[m++] & 63) - 65536, d[a++] = 55296 + (p >> 10), d[a++] = 56320 + (p & 1023)) : d[a++] = (p & 15) << 12 | (l[m++] & 63) << 6 | l[m++] & 63, a > 8191 && ((c || (c = [])).push(String.fromCharCode.apply(String, d)), a = 0);
1444
+ return c ? (a && c.push(String.fromCharCode.apply(String, d.slice(0, a))), c.join("")) : String.fromCharCode.apply(String, d.slice(0, a));
1445
+ }, i.write = function(l, m, o) {
1446
+ for (var u = o, c, d, a = 0; a < l.length; ++a)
1447
+ c = l.charCodeAt(a), c < 128 ? m[o++] = c : c < 2048 ? (m[o++] = c >> 6 | 192, m[o++] = c & 63 | 128) : (c & 64512) === 55296 && ((d = l.charCodeAt(a + 1)) & 64512) === 56320 ? (c = 65536 + ((c & 1023) << 10) + (d & 1023), ++a, m[o++] = c >> 18 | 240, m[o++] = c >> 12 & 63 | 128, m[o++] = c >> 6 & 63 | 128, m[o++] = c & 63 | 128) : (m[o++] = c >> 12 | 224, m[o++] = c >> 6 & 63 | 128, m[o++] = c & 63 | 128);
1448
1448
  return o - u;
1449
1449
  };
1450
1450
  }(utf8$2)), utf8$2;
@@ -1453,13 +1453,13 @@ var pool_1, hasRequiredPool;
1453
1453
  function requirePool() {
1454
1454
  if (hasRequiredPool) return pool_1;
1455
1455
  hasRequiredPool = 1, pool_1 = s;
1456
- function s(i, r, c) {
1457
- var m = c || 8192, o = m >>> 1, u = null, l = m;
1456
+ function s(i, r, l) {
1457
+ var m = l || 8192, o = m >>> 1, u = null, c = m;
1458
1458
  return function(a) {
1459
1459
  if (a < 1 || a > o) return i(a);
1460
- l + a > m && (u = i(m), l = 0);
1461
- var p = r.call(u, l, l += a);
1462
- return l & 7 && (l = (l | 7) + 1), p;
1460
+ c + a > m && (u = i(m), c = 0);
1461
+ var p = r.call(u, c, c += a);
1462
+ return c & 7 && (c = (c | 7) + 1), p;
1463
1463
  };
1464
1464
  }
1465
1465
  return pool_1;
@@ -1480,13 +1480,13 @@ function requireLongbits() {
1480
1480
  }, r.length = function() {
1481
1481
  return 1;
1482
1482
  };
1483
- var c = i.zeroHash = "\0\0\0\0\0\0\0\0";
1483
+ var l = i.zeroHash = "\0\0\0\0\0\0\0\0";
1484
1484
  i.fromNumber = function(u) {
1485
1485
  if (u === 0) return r;
1486
- var l = u < 0;
1487
- l && (u = -u);
1486
+ var c = u < 0;
1487
+ c && (u = -u);
1488
1488
  var d = u >>> 0, a = (u - d) / 4294967296 >>> 0;
1489
- return l && (a = ~a >>> 0, d = ~d >>> 0, ++d > 4294967295 && (d = 0, ++a > 4294967295 && (a = 0))), new i(d, a);
1489
+ return c && (a = ~a >>> 0, d = ~d >>> 0, ++d > 4294967295 && (d = 0, ++a > 4294967295 && (a = 0))), new i(d, a);
1490
1490
  }, i.from = function(u) {
1491
1491
  if (typeof u == "number") return i.fromNumber(u);
1492
1492
  if (s.isString(u))
@@ -1495,8 +1495,8 @@ function requireLongbits() {
1495
1495
  return u.low || u.high ? new i(u.low >>> 0, u.high >>> 0) : r;
1496
1496
  }, i.prototype.toNumber = function(u) {
1497
1497
  if (!u && this.hi >>> 31) {
1498
- var l = ~this.lo + 1 >>> 0, d = ~this.hi >>> 0;
1499
- return l || (d = d + 1 >>> 0), -(l + d * 4294967296);
1498
+ var c = ~this.lo + 1 >>> 0, d = ~this.hi >>> 0;
1499
+ return c || (d = d + 1 >>> 0), -(c + d * 4294967296);
1500
1500
  }
1501
1501
  return this.lo + this.hi * 4294967296;
1502
1502
  }, i.prototype.toLong = function(u) {
@@ -1511,7 +1511,7 @@ function requireLongbits() {
1511
1511
  };
1512
1512
  var m = String.prototype.charCodeAt;
1513
1513
  return i.fromHash = function(u) {
1514
- return u === c ? r : new i(
1514
+ return u === l ? r : new i(
1515
1515
  (m.call(u, 0) | m.call(u, 1) << 8 | m.call(u, 2) << 16 | m.call(u, 3) << 24) >>> 0,
1516
1516
  (m.call(u, 4) | m.call(u, 5) << 8 | m.call(u, 6) << 16 | m.call(u, 7) << 24) >>> 0
1517
1517
  );
@@ -1533,8 +1533,8 @@ function requireLongbits() {
1533
1533
  var u = -(this.lo & 1);
1534
1534
  return this.lo = ((this.lo >>> 1 | this.hi << 31) ^ u) >>> 0, this.hi = (this.hi >>> 1 ^ u) >>> 0, this;
1535
1535
  }, i.prototype.length = function() {
1536
- var u = this.lo, l = (this.lo >>> 28 | this.hi << 4) >>> 0, d = this.hi >>> 24;
1537
- return d === 0 ? l === 0 ? u < 16384 ? u < 128 ? 1 : 2 : u < 2097152 ? 3 : 4 : l < 16384 ? l < 128 ? 5 : 6 : l < 2097152 ? 7 : 8 : d < 128 ? 9 : 10;
1536
+ var u = this.lo, c = (this.lo >>> 28 | this.hi << 4) >>> 0, d = this.hi >>> 24;
1537
+ return d === 0 ? c === 0 ? u < 16384 ? u < 128 ? 1 : 2 : u < 2097152 ? 3 : 4 : c < 16384 ? c < 128 ? 5 : 6 : c < 2097152 ? 7 : 8 : d < 128 ? 9 : 10;
1538
1538
  }, longbits;
1539
1539
  }
1540
1540
  var hasRequiredMinimal;
@@ -1561,8 +1561,8 @@ function requireMinimal() {
1561
1561
  * @returns {boolean} `true` if considered to be present, otherwise `false`
1562
1562
  */
1563
1563
  i.isSet = function(o, u) {
1564
- var l = o[u];
1565
- return l != null && o.hasOwnProperty(u) ? typeof l != "object" || (Array.isArray(l) ? l.length : Object.keys(l).length) > 0 : !1;
1564
+ var c = o[u];
1565
+ return c != null && o.hasOwnProperty(u) ? typeof c != "object" || (Array.isArray(c) ? c.length : Object.keys(c).length) > 0 : !1;
1566
1566
  }, i.Buffer = function() {
1567
1567
  try {
1568
1568
  var m = i.inquire("buffer").Buffer;
@@ -1581,27 +1581,27 @@ function requireMinimal() {
1581
1581
  i.global.Long || i.inquire("long"), i.key2Re = /^true|false|0|1$/, i.key32Re = /^-?(?:0|[1-9][0-9]*)$/, i.key64Re = /^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/, i.longToHash = function(o) {
1582
1582
  return o ? i.LongBits.from(o).toHash() : i.LongBits.zeroHash;
1583
1583
  }, i.longFromHash = function(o, u) {
1584
- var l = i.LongBits.fromHash(o);
1585
- return i.Long ? i.Long.fromBits(l.lo, l.hi, u) : l.toNumber(!!u);
1584
+ var c = i.LongBits.fromHash(o);
1585
+ return i.Long ? i.Long.fromBits(c.lo, c.hi, u) : c.toNumber(!!u);
1586
1586
  };
1587
1587
  function r(m, o, u) {
1588
- for (var l = Object.keys(o), d = 0; d < l.length; ++d)
1589
- (m[l[d]] === void 0 || !u) && (m[l[d]] = o[l[d]]);
1588
+ for (var c = Object.keys(o), d = 0; d < c.length; ++d)
1589
+ (m[c[d]] === void 0 || !u) && (m[c[d]] = o[c[d]]);
1590
1590
  return m;
1591
1591
  }
1592
1592
  i.merge = r, i.lcFirst = function(o) {
1593
1593
  return o.charAt(0).toLowerCase() + o.substring(1);
1594
1594
  };
1595
- function c(m) {
1596
- function o(u, l) {
1597
- if (!(this instanceof o)) return new o(u, l);
1595
+ function l(m) {
1596
+ function o(u, c) {
1597
+ if (!(this instanceof o)) return new o(u, c);
1598
1598
  Object.defineProperty(this, "message", {
1599
1599
  get: function() {
1600
1600
  return u;
1601
1601
  }
1602
1602
  }), Error.captureStackTrace ? Error.captureStackTrace(this, o) : Object.defineProperty(this, "stack", {
1603
1603
  value: new Error().stack || ""
1604
- }), l && r(this, l);
1604
+ }), c && r(this, c);
1605
1605
  }
1606
1606
  return o.prototype = Object.create(Error.prototype, {
1607
1607
  constructor: {
@@ -1632,8 +1632,8 @@ function requireMinimal() {
1632
1632
  }
1633
1633
  }), o;
1634
1634
  }
1635
- i.newError = c, i.ProtocolError = c("ProtocolError"), i.oneOfGetter = function(o) {
1636
- for (var u = {}, l = 0; l < o.length; ++l) u[o[l]] = 1;
1635
+ i.newError = l, i.ProtocolError = l("ProtocolError"), i.oneOfGetter = function(o) {
1636
+ for (var u = {}, c = 0; c < o.length; ++c) u[o[c]] = 1;
1637
1637
  return function() {
1638
1638
  for (var d = Object.keys(this), a = d.length - 1; a > -1; --a)
1639
1639
  if (u[d[a]] === 1 && this[d[a]] !== void 0 && this[d[a]] !== null)
@@ -1641,8 +1641,8 @@ function requireMinimal() {
1641
1641
  };
1642
1642
  }, i.oneOfSetter = function(o) {
1643
1643
  return function(u) {
1644
- for (var l = 0; l < o.length; ++l)
1645
- o[l] !== u && delete this[o[l]];
1644
+ for (var c = 0; c < o.length; ++c)
1645
+ o[c] !== u && delete this[o[c]];
1646
1646
  };
1647
1647
  }, i.toJSONOptions = {
1648
1648
  longs: String,
@@ -1655,8 +1655,8 @@ function requireMinimal() {
1655
1655
  i._Buffer_from = i._Buffer_allocUnsafe = null;
1656
1656
  return;
1657
1657
  }
1658
- i._Buffer_from = m.from !== Uint8Array.from && m.from || function(u, l) {
1659
- return new m(u, l);
1658
+ i._Buffer_from = m.from !== Uint8Array.from && m.from || function(u, c) {
1659
+ return new m(u, c);
1660
1660
  }, i._Buffer_allocUnsafe = m.allocUnsafe || function(u) {
1661
1661
  return new m(u);
1662
1662
  };
@@ -1692,8 +1692,8 @@ Writer$1.alloc = function s(i) {
1692
1692
  return new util$7.Array(i);
1693
1693
  };
1694
1694
  util$7.Array !== Array && (Writer$1.alloc = util$7.pool(Writer$1.alloc, util$7.Array.prototype.subarray));
1695
- Writer$1.prototype._push = function s(i, r, c) {
1696
- return this.tail = this.tail.next = new Op(i, r, c), this.len += r, this;
1695
+ Writer$1.prototype._push = function s(i, r, l) {
1696
+ return this.tail = this.tail.next = new Op(i, r, l), this.len += r, this;
1697
1697
  };
1698
1698
  function writeByte(s, i, r) {
1699
1699
  i[r] = s & 255;
@@ -1757,20 +1757,20 @@ Writer$1.prototype.float = function s(i) {
1757
1757
  Writer$1.prototype.double = function s(i) {
1758
1758
  return this._push(util$7.float.writeDoubleLE, 8, i);
1759
1759
  };
1760
- var writeBytes = util$7.Array.prototype.set ? function s(i, r, c) {
1761
- r.set(i, c);
1760
+ var writeBytes = util$7.Array.prototype.set ? function s(i, r, l) {
1761
+ r.set(i, l);
1762
1762
  } : (
1763
1763
  /* istanbul ignore next */
1764
- function s(i, r, c) {
1765
- for (var m = 0; m < i.length; ++m) r[c + m] = i[m];
1764
+ function s(i, r, l) {
1765
+ for (var m = 0; m < i.length; ++m) r[l + m] = i[m];
1766
1766
  }
1767
1767
  );
1768
1768
  Writer$1.prototype.bytes = function s(i) {
1769
1769
  var r = i.length >>> 0;
1770
1770
  if (!r) return this._push(writeByte, 1, 0);
1771
1771
  if (util$7.isString(i)) {
1772
- var c = Writer$1.alloc(r = base64.length(i));
1773
- base64.decode(i, c, 0), i = c;
1772
+ var l = Writer$1.alloc(r = base64.length(i));
1773
+ base64.decode(i, l, 0), i = l;
1774
1774
  }
1775
1775
  return this.uint32(r)._push(writeBytes, r, i);
1776
1776
  };
@@ -1785,12 +1785,12 @@ Writer$1.prototype.reset = function s() {
1785
1785
  return this.states ? (this.head = this.states.head, this.tail = this.states.tail, this.len = this.states.len, this.states = this.states.next) : (this.head = this.tail = new Op(noop, 0, 0), this.len = 0), this;
1786
1786
  };
1787
1787
  Writer$1.prototype.ldelim = function s() {
1788
- var i = this.head, r = this.tail, c = this.len;
1789
- return this.reset().uint32(c), c && (this.tail.next = i.next, this.tail = r, this.len += c), this;
1788
+ var i = this.head, r = this.tail, l = this.len;
1789
+ return this.reset().uint32(l), l && (this.tail.next = i.next, this.tail = r, this.len += l), this;
1790
1790
  };
1791
1791
  Writer$1.prototype.finish = function s() {
1792
- for (var i = this.head.next, r = this.constructor.alloc(this.len), c = 0; i; )
1793
- i.fn(i.val, r, c), c += i.len, i = i.next;
1792
+ for (var i = this.head.next, r = this.constructor.alloc(this.len), l = 0; i; )
1793
+ i.fn(i.val, r, l), l += i.len, i = i.next;
1794
1794
  return r;
1795
1795
  };
1796
1796
  Writer$1._configure = function(s) {
@@ -1803,16 +1803,16 @@ function BufferWriter() {
1803
1803
  Writer.call(this);
1804
1804
  }
1805
1805
  BufferWriter._configure = function() {
1806
- BufferWriter.alloc = util$6._Buffer_allocUnsafe, BufferWriter.writeBytesBuffer = util$6.Buffer && util$6.Buffer.prototype instanceof Uint8Array && util$6.Buffer.prototype.set.name === "set" ? function(i, r, c) {
1807
- r.set(i, c);
1806
+ BufferWriter.alloc = util$6._Buffer_allocUnsafe, BufferWriter.writeBytesBuffer = util$6.Buffer && util$6.Buffer.prototype instanceof Uint8Array && util$6.Buffer.prototype.set.name === "set" ? function(i, r, l) {
1807
+ r.set(i, l);
1808
1808
  } : (
1809
1809
  /* istanbul ignore next */
1810
- function(i, r, c) {
1810
+ function(i, r, l) {
1811
1811
  if (i.copy)
1812
- i.copy(r, c, 0, i.length);
1812
+ i.copy(r, l, 0, i.length);
1813
1813
  else
1814
1814
  for (var m = 0; m < i.length; )
1815
- r[c++] = i[m++];
1815
+ r[l++] = i[m++];
1816
1816
  }
1817
1817
  );
1818
1818
  };
@@ -1935,15 +1935,15 @@ Reader$1.prototype.double = function s() {
1935
1935
  return this.pos += 8, i;
1936
1936
  };
1937
1937
  Reader$1.prototype.bytes = function s() {
1938
- var i = this.uint32(), r = this.pos, c = this.pos + i;
1939
- if (c > this.len) throw indexOutOfRange(this, i);
1938
+ var i = this.uint32(), r = this.pos, l = this.pos + i;
1939
+ if (l > this.len) throw indexOutOfRange(this, i);
1940
1940
  if (this.pos += i, Array.isArray(this.buf))
1941
- return this.buf.slice(r, c);
1942
- if (r === c) {
1941
+ return this.buf.slice(r, l);
1942
+ if (r === l) {
1943
1943
  var m = util$5.Buffer;
1944
1944
  return m ? m.alloc(0) : new this.buf.constructor(0);
1945
1945
  }
1946
- return this._slice.call(this.buf, r, c);
1946
+ return this._slice.call(this.buf, r, l);
1947
1947
  };
1948
1948
  Reader$1.prototype.string = function s() {
1949
1949
  var i = this.bytes();
@@ -2027,10 +2027,10 @@ function Service$1(s, i, r) {
2027
2027
  if (typeof s != "function") throw TypeError("rpcImpl must be a function");
2028
2028
  util$3.EventEmitter.call(this), this.rpcImpl = s, this.requestDelimited = !!i, this.responseDelimited = !!r;
2029
2029
  }
2030
- Service$1.prototype.rpcCall = function s(i, r, c, m, o) {
2030
+ Service$1.prototype.rpcCall = function s(i, r, l, m, o) {
2031
2031
  if (!m) throw TypeError("request must be specified");
2032
2032
  var u = this;
2033
- if (!o) return util$3.asPromise(s, u, i, r, c, m);
2033
+ if (!o) return util$3.asPromise(s, u, i, r, l, m);
2034
2034
  if (!u.rpcImpl) {
2035
2035
  setTimeout(function() {
2036
2036
  o(Error("already ended"));
@@ -2051,18 +2051,18 @@ Service$1.prototype.rpcCall = function s(i, r, c, m, o) {
2051
2051
  );
2052
2052
  return;
2053
2053
  }
2054
- if (!(a instanceof c))
2054
+ if (!(a instanceof l))
2055
2055
  try {
2056
- a = c[u.responseDelimited ? "decodeDelimited" : "decode"](a);
2056
+ a = l[u.responseDelimited ? "decodeDelimited" : "decode"](a);
2057
2057
  } catch (p) {
2058
2058
  return u.emit("error", p, i), o(p);
2059
2059
  }
2060
2060
  return u.emit("data", a, i), o(null, a);
2061
2061
  }
2062
2062
  );
2063
- } catch (l) {
2064
- u.emit("error", l, i), setTimeout(function() {
2065
- o(l);
2063
+ } catch (c) {
2064
+ u.emit("error", c, i), setTimeout(function() {
2065
+ o(c);
2066
2066
  }, 0);
2067
2067
  return;
2068
2068
  }
@@ -2087,12 +2087,12 @@ var util$2 = { exports: {} }, codegen_1 = codegen;
2087
2087
  function codegen(s, i) {
2088
2088
  typeof s == "string" && (i = s, s = void 0);
2089
2089
  var r = [];
2090
- function c(o) {
2090
+ function l(o) {
2091
2091
  if (typeof o != "string") {
2092
2092
  var u = m();
2093
2093
  if (codegen.verbose && console.warn("codegen: " + u), u = "return " + u, o) {
2094
- for (var l = Object.keys(o), d = new Array(l.length + 1), a = new Array(l.length), p = 0; p < l.length; )
2095
- d[p] = l[p], a[p] = o[l[p++]];
2094
+ for (var c = Object.keys(o), d = new Array(c.length + 1), a = new Array(c.length), p = 0; p < c.length; )
2095
+ d[p] = c[p], a[p] = o[c[p++]];
2096
2096
  return d[p] = u, Function.apply(null, d).apply(null, a);
2097
2097
  }
2098
2098
  return Function(u)();
@@ -2114,7 +2114,7 @@ function codegen(s, i) {
2114
2114
  }
2115
2115
  return "%";
2116
2116
  }), g !== y.length) throw Error("parameter count mismatch");
2117
- return r.push(o), c;
2117
+ return r.push(o), l;
2118
2118
  }
2119
2119
  function m(o) {
2120
2120
  return "function " + (o || i || "") + "(" + (s && s.join(",") || "") + `){
@@ -2122,7 +2122,7 @@ function codegen(s, i) {
2122
2122
  `) + `
2123
2123
  }`;
2124
2124
  }
2125
- return c.toString = m, c;
2125
+ return l.toString = m, l;
2126
2126
  }
2127
2127
  codegen.verbose = !1;
2128
2128
  var fetch_1 = fetch, asPromise = requireAspromise(), inquire = requireInquire(), fs = inquire("fs");
@@ -2131,21 +2131,21 @@ function fetch(s, i, r) {
2131
2131
  return m && typeof XMLHttpRequest < "u" ? fetch.xhr(s, i, r) : m ? r(m) : r(null, i.binary ? o : o.toString("utf8"));
2132
2132
  }) : fetch.xhr(s, i, r) : asPromise(fetch, this, s, i);
2133
2133
  }
2134
- fetch.xhr = function s(i, r, c) {
2134
+ fetch.xhr = function s(i, r, l) {
2135
2135
  var m = new XMLHttpRequest();
2136
2136
  m.onreadystatechange = function() {
2137
2137
  if (m.readyState === 4) {
2138
- if (m.status !== 0 && m.status !== 200) return c(Error("status " + m.status));
2138
+ if (m.status !== 0 && m.status !== 200) return l(Error("status " + m.status));
2139
2139
  if (r.binary) {
2140
2140
  var u = m.response;
2141
2141
  if (!u) {
2142
2142
  u = [];
2143
- for (var l = 0; l < m.responseText.length; ++l)
2144
- u.push(m.responseText.charCodeAt(l) & 255);
2143
+ for (var c = 0; c < m.responseText.length; ++c)
2144
+ u.push(m.responseText.charCodeAt(c) & 255);
2145
2145
  }
2146
- return c(null, typeof Uint8Array < "u" ? new Uint8Array(u) : u);
2146
+ return l(null, typeof Uint8Array < "u" ? new Uint8Array(u) : u);
2147
2147
  }
2148
- return c(null, m.responseText);
2148
+ return l(null, m.responseText);
2149
2149
  }
2150
2150
  }, r.binary && ("overrideMimeType" in m && m.overrideMimeType("text/plain; charset=x-user-defined"), m.responseType = "arraybuffer"), m.open("GET", i), m.send();
2151
2151
  };
@@ -2160,7 +2160,7 @@ var path = {};
2160
2160
  i.isAbsolute = function(o) {
2161
2161
  return /^(?:\/|\w+:)/.test(o);
2162
2162
  }
2163
- ), c = (
2163
+ ), l = (
2164
2164
  /**
2165
2165
  * Normalizes the specified path.
2166
2166
  * @param {string} path Path to normalize
@@ -2168,21 +2168,21 @@ var path = {};
2168
2168
  */
2169
2169
  i.normalize = function(o) {
2170
2170
  o = o.replace(/\\/g, "/").replace(/\/{2,}/g, "/");
2171
- var u = o.split("/"), l = r(o), d = "";
2172
- l && (d = u.shift() + "/");
2171
+ var u = o.split("/"), c = r(o), d = "";
2172
+ c && (d = u.shift() + "/");
2173
2173
  for (var a = 0; a < u.length; )
2174
- u[a] === ".." ? a > 0 && u[a - 1] !== ".." ? u.splice(--a, 2) : l ? u.splice(a, 1) : ++a : u[a] === "." ? u.splice(a, 1) : ++a;
2174
+ u[a] === ".." ? a > 0 && u[a - 1] !== ".." ? u.splice(--a, 2) : c ? u.splice(a, 1) : ++a : u[a] === "." ? u.splice(a, 1) : ++a;
2175
2175
  return d + u.join("/");
2176
2176
  }
2177
2177
  );
2178
- i.resolve = function(o, u, l) {
2179
- return l || (u = c(u)), r(u) ? u : (l || (o = c(o)), (o = o.replace(/(?:\/|^)[^/]+$/, "")).length ? c(o + "/" + u) : u);
2178
+ i.resolve = function(o, u, c) {
2179
+ return c || (u = l(u)), r(u) ? u : (c || (o = l(o)), (o = o.replace(/(?:\/|^)[^/]+$/, "")).length ? l(o + "/" + u) : u);
2180
2180
  };
2181
2181
  })(path);
2182
2182
  var types$1 = {}, hasRequiredTypes;
2183
2183
  function requireTypes() {
2184
2184
  return hasRequiredTypes || (hasRequiredTypes = 1, function(s) {
2185
- var i = s, r = requireUtil(), c = [
2185
+ var i = s, r = requireUtil(), l = [
2186
2186
  "double",
2187
2187
  // 0
2188
2188
  "float",
@@ -2215,8 +2215,8 @@ function requireTypes() {
2215
2215
  // 14
2216
2216
  ];
2217
2217
  function m(o, u) {
2218
- var l = 0, d = {};
2219
- for (u |= 0; l < o.length; ) d[c[l + u]] = o[l++];
2218
+ var c = 0, d = {};
2219
+ for (u |= 0; c < o.length; ) d[l[c + u]] = o[c++];
2220
2220
  return d;
2221
2221
  }
2222
2222
  i.basic = m([
@@ -2361,17 +2361,17 @@ function requireField() {
2361
2361
  hasRequiredField = 1, field = u;
2362
2362
  var s = requireObject();
2363
2363
  ((u.prototype = Object.create(s.prototype)).constructor = u).className = "Field";
2364
- var i = require_enum(), r = requireTypes(), c = requireUtil(), m, o = /^required|optional|repeated$/;
2364
+ var i = require_enum(), r = requireTypes(), l = requireUtil(), m, o = /^required|optional|repeated$/;
2365
2365
  u.fromJSON = function(d, a) {
2366
2366
  return new u(d, a.id, a.type, a.rule, a.extend, a.options, a.comment);
2367
2367
  };
2368
- function u(l, d, a, p, y, g, h) {
2369
- if (c.isObject(p) ? (h = y, g = p, p = y = void 0) : c.isObject(y) && (h = g, g = y, y = void 0), s.call(this, l, g), !c.isInteger(d) || d < 0) throw TypeError("id must be a non-negative integer");
2370
- if (!c.isString(a)) throw TypeError("type must be a string");
2368
+ function u(c, d, a, p, y, g, h) {
2369
+ if (l.isObject(p) ? (h = y, g = p, p = y = void 0) : l.isObject(y) && (h = g, g = y, y = void 0), s.call(this, c, g), !l.isInteger(d) || d < 0) throw TypeError("id must be a non-negative integer");
2370
+ if (!l.isString(a)) throw TypeError("type must be a string");
2371
2371
  if (p !== void 0 && !o.test(p = p.toString().toLowerCase()))
2372
2372
  throw TypeError("rule must be a string rule");
2373
- if (y !== void 0 && !c.isString(y)) throw TypeError("extend must be a string");
2374
- p === "proto3_optional" && (p = "optional"), this.rule = p && p !== "optional" ? p : void 0, this.type = a, this.id = d, this.extend = y || void 0, this.required = p === "required", this.optional = !this.required, this.repeated = p === "repeated", this.map = !1, this.message = null, this.partOf = null, this.typeDefault = null, this.defaultValue = null, this.long = c.Long ? r.long[a] !== void 0 : (
2373
+ if (y !== void 0 && !l.isString(y)) throw TypeError("extend must be a string");
2374
+ p === "proto3_optional" && (p = "optional"), this.rule = p && p !== "optional" ? p : void 0, this.type = a, this.id = d, this.extend = y || void 0, this.required = p === "required", this.optional = !this.required, this.repeated = p === "repeated", this.map = !1, this.message = null, this.partOf = null, this.typeDefault = null, this.defaultValue = null, this.long = l.Long ? r.long[a] !== void 0 : (
2375
2375
  /* istanbul ignore next */
2376
2376
  !1
2377
2377
  ), this.bytes = a === "bytes", this.resolvedType = null, this.extensionField = null, this.declaringField = null, this._packed = null, this.comment = h;
@@ -2384,7 +2384,7 @@ function requireField() {
2384
2384
  return d === "packed" && (this._packed = null), s.prototype.setOption.call(this, d, a, p);
2385
2385
  }, u.prototype.toJSON = function(d) {
2386
2386
  var a = d ? !!d.keepComments : !1;
2387
- return c.toObject([
2387
+ return l.toObject([
2388
2388
  "rule",
2389
2389
  this.rule !== "optional" && this.rule || void 0,
2390
2390
  "type",
@@ -2401,23 +2401,23 @@ function requireField() {
2401
2401
  }, u.prototype.resolve = function() {
2402
2402
  if (this.resolved) return this;
2403
2403
  if ((this.typeDefault = r.defaults[this.type]) === void 0 ? (this.resolvedType = (this.declaringField ? this.declaringField.parent : this.parent).lookupTypeOrEnum(this.type), this.resolvedType instanceof m ? this.typeDefault = null : this.typeDefault = this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]) : this.options && this.options.proto3_optional && (this.typeDefault = null), this.options && this.options.default != null && (this.typeDefault = this.options.default, this.resolvedType instanceof i && typeof this.typeDefault == "string" && (this.typeDefault = this.resolvedType.values[this.typeDefault])), this.options && ((this.options.packed === !0 || this.options.packed !== void 0 && this.resolvedType && !(this.resolvedType instanceof i)) && delete this.options.packed, Object.keys(this.options).length || (this.options = void 0)), this.long)
2404
- this.typeDefault = c.Long.fromNumber(this.typeDefault, this.type.charAt(0) === "u"), Object.freeze && Object.freeze(this.typeDefault);
2404
+ this.typeDefault = l.Long.fromNumber(this.typeDefault, this.type.charAt(0) === "u"), Object.freeze && Object.freeze(this.typeDefault);
2405
2405
  else if (this.bytes && typeof this.typeDefault == "string") {
2406
2406
  var d;
2407
- c.base64.test(this.typeDefault) ? c.base64.decode(
2407
+ l.base64.test(this.typeDefault) ? l.base64.decode(
2408
2408
  this.typeDefault,
2409
- d = c.newBuffer(c.base64.length(this.typeDefault)),
2409
+ d = l.newBuffer(l.base64.length(this.typeDefault)),
2410
2410
  0
2411
- ) : c.utf8.write(
2411
+ ) : l.utf8.write(
2412
2412
  this.typeDefault,
2413
- d = c.newBuffer(c.utf8.length(this.typeDefault)),
2413
+ d = l.newBuffer(l.utf8.length(this.typeDefault)),
2414
2414
  0
2415
2415
  ), this.typeDefault = d;
2416
2416
  }
2417
- return this.map ? this.defaultValue = c.emptyObject : this.repeated ? this.defaultValue = c.emptyArray : this.defaultValue = this.typeDefault, this.parent instanceof m && (this.parent.ctor.prototype[this.name] = this.defaultValue), s.prototype.resolve.call(this);
2417
+ return this.map ? this.defaultValue = l.emptyObject : this.repeated ? this.defaultValue = l.emptyArray : this.defaultValue = this.typeDefault, this.parent instanceof m && (this.parent.ctor.prototype[this.name] = this.defaultValue), s.prototype.resolve.call(this);
2418
2418
  }, u.d = function(d, a, p, y) {
2419
- return typeof a == "function" ? a = c.decorateType(a).name : a && typeof a == "object" && (a = c.decorateEnum(a).name), function(h, v) {
2420
- c.decorateType(h.constructor).add(
2419
+ return typeof a == "function" ? a = l.decorateType(a).name : a && typeof a == "object" && (a = l.decorateEnum(a).name), function(h, v) {
2420
+ l.decorateType(h.constructor).add(
2421
2421
  new u(v, d, a, p, {
2422
2422
  default: y
2423
2423
  })
@@ -2430,26 +2430,26 @@ function requireField() {
2430
2430
  var oneof, hasRequiredOneof;
2431
2431
  function requireOneof() {
2432
2432
  if (hasRequiredOneof) return oneof;
2433
- hasRequiredOneof = 1, oneof = c;
2433
+ hasRequiredOneof = 1, oneof = l;
2434
2434
  var s = requireObject();
2435
- ((c.prototype = Object.create(s.prototype)).constructor = c).className = "OneOf";
2435
+ ((l.prototype = Object.create(s.prototype)).constructor = l).className = "OneOf";
2436
2436
  var i = requireField(), r = requireUtil();
2437
- function c(o, u, l, d) {
2438
- if (Array.isArray(u) || (l = u, u = void 0), s.call(this, o, l), !(u === void 0 || Array.isArray(u)))
2437
+ function l(o, u, c, d) {
2438
+ if (Array.isArray(u) || (c = u, u = void 0), s.call(this, o, c), !(u === void 0 || Array.isArray(u)))
2439
2439
  throw TypeError("fieldNames must be an Array");
2440
2440
  this.oneof = u || [], this.fieldsArray = [], this.comment = d;
2441
2441
  }
2442
- c.fromJSON = function(u, l) {
2443
- return new c(u, l.oneof, l.options, l.comment);
2444
- }, c.prototype.toJSON = function(u) {
2445
- var l = u ? !!u.keepComments : !1;
2442
+ l.fromJSON = function(u, c) {
2443
+ return new l(u, c.oneof, c.options, c.comment);
2444
+ }, l.prototype.toJSON = function(u) {
2445
+ var c = u ? !!u.keepComments : !1;
2446
2446
  return r.toObject([
2447
2447
  "options",
2448
2448
  this.options,
2449
2449
  "oneof",
2450
2450
  this.oneof,
2451
2451
  "comment",
2452
- l ? this.comment : void 0
2452
+ c ? this.comment : void 0
2453
2453
  ]);
2454
2454
  };
2455
2455
  function m(o) {
@@ -2457,29 +2457,29 @@ function requireOneof() {
2457
2457
  for (var u = 0; u < o.fieldsArray.length; ++u)
2458
2458
  o.fieldsArray[u].parent || o.parent.add(o.fieldsArray[u]);
2459
2459
  }
2460
- return c.prototype.add = function(u) {
2460
+ return l.prototype.add = function(u) {
2461
2461
  if (!(u instanceof i)) throw TypeError("field must be a Field");
2462
2462
  return u.parent && u.parent !== this.parent && u.parent.remove(u), this.oneof.push(u.name), this.fieldsArray.push(u), u.partOf = this, m(this), this;
2463
- }, c.prototype.remove = function(u) {
2463
+ }, l.prototype.remove = function(u) {
2464
2464
  if (!(u instanceof i)) throw TypeError("field must be a Field");
2465
- var l = this.fieldsArray.indexOf(u);
2466
- if (l < 0) throw Error(u + " is not a member of " + this);
2467
- return this.fieldsArray.splice(l, 1), l = this.oneof.indexOf(u.name), l > -1 && this.oneof.splice(l, 1), u.partOf = null, this;
2468
- }, c.prototype.onAdd = function(u) {
2465
+ var c = this.fieldsArray.indexOf(u);
2466
+ if (c < 0) throw Error(u + " is not a member of " + this);
2467
+ return this.fieldsArray.splice(c, 1), c = this.oneof.indexOf(u.name), c > -1 && this.oneof.splice(c, 1), u.partOf = null, this;
2468
+ }, l.prototype.onAdd = function(u) {
2469
2469
  s.prototype.onAdd.call(this, u);
2470
- for (var l = this, d = 0; d < this.oneof.length; ++d) {
2470
+ for (var c = this, d = 0; d < this.oneof.length; ++d) {
2471
2471
  var a = u.get(this.oneof[d]);
2472
- a && !a.partOf && (a.partOf = l, l.fieldsArray.push(a));
2472
+ a && !a.partOf && (a.partOf = c, c.fieldsArray.push(a));
2473
2473
  }
2474
2474
  m(this);
2475
- }, c.prototype.onRemove = function(u) {
2476
- for (var l = 0, d; l < this.fieldsArray.length; ++l)
2477
- (d = this.fieldsArray[l]).parent && d.parent.remove(d);
2475
+ }, l.prototype.onRemove = function(u) {
2476
+ for (var c = 0, d; c < this.fieldsArray.length; ++c)
2477
+ (d = this.fieldsArray[c]).parent && d.parent.remove(d);
2478
2478
  s.prototype.onRemove.call(this, u);
2479
- }, c.d = function() {
2480
- for (var u = new Array(arguments.length), l = 0; l < arguments.length; ) u[l] = arguments[l++];
2479
+ }, l.d = function() {
2480
+ for (var u = new Array(arguments.length), c = 0; c < arguments.length; ) u[c] = arguments[c++];
2481
2481
  return function(a, p) {
2482
- r.decorateType(a.constructor).add(new c(p, u)), Object.defineProperty(a, p, {
2482
+ r.decorateType(a.constructor).add(new l(p, u)), Object.defineProperty(a, p, {
2483
2483
  get: r.oneOfGetter(u),
2484
2484
  set: r.oneOfSetter(u)
2485
2485
  });
@@ -2492,17 +2492,17 @@ function requireNamespace() {
2492
2492
  hasRequiredNamespace = 1, namespace = d;
2493
2493
  var s = requireObject();
2494
2494
  ((d.prototype = Object.create(s.prototype)).constructor = d).className = "Namespace";
2495
- var i = requireField(), r = requireUtil(), c = requireOneof(), m, o, u;
2495
+ var i = requireField(), r = requireUtil(), l = requireOneof(), m, o, u;
2496
2496
  d.fromJSON = function(y, g) {
2497
2497
  return new d(y, g.options).addJSON(g.nested);
2498
2498
  };
2499
- function l(p, y) {
2499
+ function c(p, y) {
2500
2500
  if (p && p.length) {
2501
2501
  for (var g = {}, h = 0; h < p.length; ++h) g[p[h].name] = p[h].toJSON(y);
2502
2502
  return g;
2503
2503
  }
2504
2504
  }
2505
- d.arrayToJSON = l, d.isReservedId = function(y, g) {
2505
+ d.arrayToJSON = c, d.isReservedId = function(y, g) {
2506
2506
  if (y) {
2507
2507
  for (var h = 0; h < y.length; ++h)
2508
2508
  if (typeof y[h] != "string" && y[h][0] <= g && y[h][1] > g)
@@ -2530,7 +2530,7 @@ function requireNamespace() {
2530
2530
  "options",
2531
2531
  this.options,
2532
2532
  "nested",
2533
- l(this.nestedArray, y)
2533
+ c(this.nestedArray, y)
2534
2534
  ]);
2535
2535
  }, d.prototype.addJSON = function(y) {
2536
2536
  var g = this;
@@ -2547,7 +2547,7 @@ function requireNamespace() {
2547
2547
  if (this.nested && this.nested[y] instanceof u) return this.nested[y].values;
2548
2548
  throw Error("no such enum: " + y);
2549
2549
  }, d.prototype.add = function(y) {
2550
- if (!(y instanceof i && y.extend !== void 0 || y instanceof m || y instanceof c || y instanceof u || y instanceof o || y instanceof d))
2550
+ if (!(y instanceof i && y.extend !== void 0 || y instanceof m || y instanceof l || y instanceof u || y instanceof o || y instanceof d))
2551
2551
  throw TypeError("object must be a valid nested object");
2552
2552
  if (!this.nested) this.nested = {};
2553
2553
  else {
@@ -2618,17 +2618,17 @@ function requireNamespace() {
2618
2618
  var mapfield, hasRequiredMapfield;
2619
2619
  function requireMapfield() {
2620
2620
  if (hasRequiredMapfield) return mapfield;
2621
- hasRequiredMapfield = 1, mapfield = c;
2621
+ hasRequiredMapfield = 1, mapfield = l;
2622
2622
  var s = requireField();
2623
- ((c.prototype = Object.create(s.prototype)).constructor = c).className = "MapField";
2623
+ ((l.prototype = Object.create(s.prototype)).constructor = l).className = "MapField";
2624
2624
  var i = requireTypes(), r = requireUtil();
2625
- function c(m, o, u, l, d, a) {
2626
- if (s.call(this, m, o, l, void 0, void 0, d, a), !r.isString(u)) throw TypeError("keyType must be a string");
2625
+ function l(m, o, u, c, d, a) {
2626
+ if (s.call(this, m, o, c, void 0, void 0, d, a), !r.isString(u)) throw TypeError("keyType must be a string");
2627
2627
  this.keyType = u, this.resolvedKeyType = null, this.map = !0;
2628
2628
  }
2629
- return c.fromJSON = function(o, u) {
2630
- return new c(o, u.id, u.keyType, u.type, u.options, u.comment);
2631
- }, c.prototype.toJSON = function(o) {
2629
+ return l.fromJSON = function(o, u) {
2630
+ return new l(o, u.id, u.keyType, u.type, u.options, u.comment);
2631
+ }, l.prototype.toJSON = function(o) {
2632
2632
  var u = o ? !!o.keepComments : !1;
2633
2633
  return r.toObject([
2634
2634
  "keyType",
@@ -2644,13 +2644,13 @@ function requireMapfield() {
2644
2644
  "comment",
2645
2645
  u ? this.comment : void 0
2646
2646
  ]);
2647
- }, c.prototype.resolve = function() {
2647
+ }, l.prototype.resolve = function() {
2648
2648
  if (this.resolved) return this;
2649
2649
  if (i.mapKey[this.keyType] === void 0) throw Error("invalid key type: " + this.keyType);
2650
2650
  return s.prototype.resolve.call(this);
2651
- }, c.d = function(o, u, l) {
2652
- return typeof l == "function" ? l = r.decorateType(l).name : l && typeof l == "object" && (l = r.decorateEnum(l).name), function(a, p) {
2653
- r.decorateType(a.constructor).add(new c(p, o, u, l));
2651
+ }, l.d = function(o, u, c) {
2652
+ return typeof c == "function" ? c = r.decorateType(c).name : c && typeof c == "object" && (c = r.decorateEnum(c).name), function(a, p) {
2653
+ r.decorateType(a.constructor).add(new l(p, o, u, c));
2654
2654
  };
2655
2655
  }, mapfield;
2656
2656
  }
@@ -2661,11 +2661,11 @@ function requireMethod() {
2661
2661
  var s = requireObject();
2662
2662
  ((r.prototype = Object.create(s.prototype)).constructor = r).className = "Method";
2663
2663
  var i = requireUtil();
2664
- function r(c, m, o, u, l, d, a, p, y) {
2665
- if (i.isObject(l) ? (a = l, l = d = void 0) : i.isObject(d) && (a = d, d = void 0), !(m === void 0 || i.isString(m))) throw TypeError("type must be a string");
2664
+ function r(l, m, o, u, c, d, a, p, y) {
2665
+ if (i.isObject(c) ? (a = c, c = d = void 0) : i.isObject(d) && (a = d, d = void 0), !(m === void 0 || i.isString(m))) throw TypeError("type must be a string");
2666
2666
  if (!i.isString(o)) throw TypeError("requestType must be a string");
2667
2667
  if (!i.isString(u)) throw TypeError("responseType must be a string");
2668
- s.call(this, c, a), this.type = m || "rpc", this.requestType = o, this.requestStream = l ? !0 : void 0, this.responseType = u, this.responseStream = d ? !0 : void 0, this.resolvedRequestType = null, this.resolvedResponseType = null, this.comment = p, this.parsedOptions = y;
2668
+ s.call(this, l, a), this.type = m || "rpc", this.requestType = o, this.requestStream = c ? !0 : void 0, this.responseType = u, this.responseStream = d ? !0 : void 0, this.resolvedRequestType = null, this.resolvedResponseType = null, this.comment = p, this.parsedOptions = y;
2669
2669
  }
2670
2670
  return r.fromJSON = function(m, o) {
2671
2671
  return new r(
@@ -2710,23 +2710,23 @@ function requireService() {
2710
2710
  hasRequiredService = 1, service = m;
2711
2711
  var s = requireNamespace();
2712
2712
  ((m.prototype = Object.create(s.prototype)).constructor = m).className = "Service";
2713
- var i = requireMethod(), r = requireUtil(), c = rpc;
2714
- function m(u, l) {
2715
- s.call(this, u, l), this.methods = {}, this._methodsArray = null;
2713
+ var i = requireMethod(), r = requireUtil(), l = rpc;
2714
+ function m(u, c) {
2715
+ s.call(this, u, c), this.methods = {}, this._methodsArray = null;
2716
2716
  }
2717
- m.fromJSON = function(l, d) {
2718
- var a = new m(l, d.options);
2717
+ m.fromJSON = function(c, d) {
2718
+ var a = new m(c, d.options);
2719
2719
  if (d.methods)
2720
2720
  for (var p = Object.keys(d.methods), y = 0; y < p.length; ++y)
2721
2721
  a.add(i.fromJSON(p[y], d.methods[p[y]]));
2722
2722
  return d.nested && a.addJSON(d.nested), a.comment = d.comment, a;
2723
- }, m.prototype.toJSON = function(l) {
2724
- var d = s.prototype.toJSON.call(this, l), a = l ? !!l.keepComments : !1;
2723
+ }, m.prototype.toJSON = function(c) {
2724
+ var d = s.prototype.toJSON.call(this, c), a = c ? !!c.keepComments : !1;
2725
2725
  return r.toObject([
2726
2726
  "options",
2727
2727
  d && d.options || void 0,
2728
2728
  "methods",
2729
- s.arrayToJSON(this.methodsArray, l) || /* istanbul ignore next */
2729
+ s.arrayToJSON(this.methodsArray, c) || /* istanbul ignore next */
2730
2730
  {},
2731
2731
  "nested",
2732
2732
  d && d.nested || void 0,
@@ -2741,22 +2741,22 @@ function requireService() {
2741
2741
  function o(u) {
2742
2742
  return u._methodsArray = null, u;
2743
2743
  }
2744
- return m.prototype.get = function(l) {
2745
- return this.methods[l] || s.prototype.get.call(this, l);
2744
+ return m.prototype.get = function(c) {
2745
+ return this.methods[c] || s.prototype.get.call(this, c);
2746
2746
  }, m.prototype.resolveAll = function() {
2747
- for (var l = this.methodsArray, d = 0; d < l.length; ++d) l[d].resolve();
2747
+ for (var c = this.methodsArray, d = 0; d < c.length; ++d) c[d].resolve();
2748
2748
  return s.prototype.resolve.call(this);
2749
- }, m.prototype.add = function(l) {
2750
- if (this.get(l.name)) throw Error("duplicate name '" + l.name + "' in " + this);
2751
- return l instanceof i ? (this.methods[l.name] = l, l.parent = this, o(this)) : s.prototype.add.call(this, l);
2752
- }, m.prototype.remove = function(l) {
2753
- if (l instanceof i) {
2754
- if (this.methods[l.name] !== l) throw Error(l + " is not a member of " + this);
2755
- return delete this.methods[l.name], l.parent = null, o(this);
2749
+ }, m.prototype.add = function(c) {
2750
+ if (this.get(c.name)) throw Error("duplicate name '" + c.name + "' in " + this);
2751
+ return c instanceof i ? (this.methods[c.name] = c, c.parent = this, o(this)) : s.prototype.add.call(this, c);
2752
+ }, m.prototype.remove = function(c) {
2753
+ if (c instanceof i) {
2754
+ if (this.methods[c.name] !== c) throw Error(c + " is not a member of " + this);
2755
+ return delete this.methods[c.name], c.parent = null, o(this);
2756
2756
  }
2757
- return s.prototype.remove.call(this, l);
2758
- }, m.prototype.create = function(l, d, a) {
2759
- for (var p = new c.Service(l, d, a), y = 0, g; y < /* initializes */
2757
+ return s.prototype.remove.call(this, c);
2758
+ }, m.prototype.create = function(c, d, a) {
2759
+ for (var p = new l.Service(c, d, a), y = 0, g; y < /* initializes */
2760
2760
  this.methodsArray.length; ++y) {
2761
2761
  var h = r.lcFirst((g = this._methodsArray[y]).resolve().name).replace(/[^$\w_]/g, "");
2762
2762
  p[h] = r.codegen(
@@ -2809,7 +2809,7 @@ function requireDecoder() {
2809
2809
  if (hasRequiredDecoder) return decoder_1;
2810
2810
  hasRequiredDecoder = 1, decoder_1 = m;
2811
2811
  var s = require_enum(), i = requireTypes(), r = requireUtil();
2812
- function c(o) {
2812
+ function l(o) {
2813
2813
  return "missing required '" + o.name + "'";
2814
2814
  }
2815
2815
  function m(o) {
@@ -2821,31 +2821,31 @@ function requireDecoder() {
2821
2821
  }).length ? ",k,value" : "")
2822
2822
  )("while(r.pos<c){")("var t=r.uint32()");
2823
2823
  o.group && u("if((t&7)===4)")("break"), u("switch(t>>>3){");
2824
- for (var l = 0; l < /* initializes */
2825
- o.fieldsArray.length; ++l) {
2826
- var d = o._fieldsArray[l].resolve(), a = d.resolvedType instanceof s ? "int32" : d.type, p = "m" + r.safeProp(d.name);
2824
+ for (var c = 0; c < /* initializes */
2825
+ o.fieldsArray.length; ++c) {
2826
+ var d = o._fieldsArray[c].resolve(), a = d.resolvedType instanceof s ? "int32" : d.type, p = "m" + r.safeProp(d.name);
2827
2827
  u("case %i: {", d.id), d.map ? (u("if(%s===util.emptyObject)", p)("%s={}", p)("var c2 = r.uint32()+r.pos"), i.defaults[d.keyType] !== void 0 ? u("k=%j", i.defaults[d.keyType]) : u("k=null"), i.defaults[a] !== void 0 ? u("value=%j", i.defaults[a]) : u("value=null"), u("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")(
2828
2828
  "case 1: k=r.%s(); break",
2829
2829
  d.keyType
2830
- )("case 2:"), i.basic[a] === void 0 ? u("value=types[%i].decode(r,r.uint32())", l) : u("value=r.%s()", a), u("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"), i.long[d.keyType] !== void 0 ? u('%s[typeof k==="object"?util.longToHash(k):k]=value', p) : u("%s[k]=value", p)) : d.repeated ? (u("if(!(%s&&%s.length))", p, p)("%s=[]", p), i.packed[a] !== void 0 && u("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")(
2830
+ )("case 2:"), i.basic[a] === void 0 ? u("value=types[%i].decode(r,r.uint32())", c) : u("value=r.%s()", a), u("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"), i.long[d.keyType] !== void 0 ? u('%s[typeof k==="object"?util.longToHash(k):k]=value', p) : u("%s[k]=value", p)) : d.repeated ? (u("if(!(%s&&%s.length))", p, p)("%s=[]", p), i.packed[a] !== void 0 && u("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")(
2831
2831
  "%s.push(r.%s())",
2832
2832
  p,
2833
2833
  a
2834
2834
  )("}else"), i.basic[a] === void 0 ? u(
2835
2835
  d.resolvedType.group ? "%s.push(types[%i].decode(r))" : "%s.push(types[%i].decode(r,r.uint32()))",
2836
2836
  p,
2837
- l
2837
+ c
2838
2838
  ) : u("%s.push(r.%s())", p, a)) : i.basic[a] === void 0 ? u(
2839
2839
  d.resolvedType.group ? "%s=types[%i].decode(r)" : "%s=types[%i].decode(r,r.uint32())",
2840
2840
  p,
2841
- l
2841
+ c
2842
2842
  ) : u("%s=r.%s()", p, a), u("break")("}");
2843
2843
  }
2844
- for (u("default:")("r.skipType(t&7)")("break")("}")("}"), l = 0; l < o._fieldsArray.length; ++l) {
2845
- var y = o._fieldsArray[l];
2844
+ for (u("default:")("r.skipType(t&7)")("break")("}")("}"), c = 0; c < o._fieldsArray.length; ++c) {
2845
+ var y = o._fieldsArray[c];
2846
2846
  y.required && u("if(!m.hasOwnProperty(%j))", y.name)(
2847
2847
  "throw util.ProtocolError(%j,{instance:m})",
2848
- c(y)
2848
+ l(y)
2849
2849
  );
2850
2850
  }
2851
2851
  return u("return m");
@@ -2857,29 +2857,29 @@ function requireVerifier() {
2857
2857
  if (hasRequiredVerifier) return verifier_1;
2858
2858
  hasRequiredVerifier = 1, verifier_1 = o;
2859
2859
  var s = require_enum(), i = requireUtil();
2860
- function r(u, l) {
2861
- return u.name + ": " + l + (u.repeated && l !== "array" ? "[]" : u.map && l !== "object" ? "{k:" + u.keyType + "}" : "") + " expected";
2862
- }
2863
- function c(u, l, d, a) {
2864
- if (l.resolvedType)
2865
- if (l.resolvedType instanceof s) {
2866
- u("switch(%s){", a)("default:")("return%j", r(l, "enum value"));
2867
- for (var p = Object.keys(l.resolvedType.values), y = 0; y < p.length; ++y)
2868
- u("case %i:", l.resolvedType.values[p[y]]);
2860
+ function r(u, c) {
2861
+ return u.name + ": " + c + (u.repeated && c !== "array" ? "[]" : u.map && c !== "object" ? "{k:" + u.keyType + "}" : "") + " expected";
2862
+ }
2863
+ function l(u, c, d, a) {
2864
+ if (c.resolvedType)
2865
+ if (c.resolvedType instanceof s) {
2866
+ u("switch(%s){", a)("default:")("return%j", r(c, "enum value"));
2867
+ for (var p = Object.keys(c.resolvedType.values), y = 0; y < p.length; ++y)
2868
+ u("case %i:", c.resolvedType.values[p[y]]);
2869
2869
  u("break")("}");
2870
2870
  } else
2871
2871
  u("{")("var e=types[%i].verify(%s);", d, a)("if(e)")(
2872
2872
  "return%j+e",
2873
- l.name + "."
2873
+ c.name + "."
2874
2874
  )("}");
2875
2875
  else
2876
- switch (l.type) {
2876
+ switch (c.type) {
2877
2877
  case "int32":
2878
2878
  case "uint32":
2879
2879
  case "sint32":
2880
2880
  case "fixed32":
2881
2881
  case "sfixed32":
2882
- u("if(!util.isInteger(%s))", a)("return%j", r(l, "integer"));
2882
+ u("if(!util.isInteger(%s))", a)("return%j", r(c, "integer"));
2883
2883
  break;
2884
2884
  case "int64":
2885
2885
  case "uint64":
@@ -2892,17 +2892,17 @@ function requireVerifier() {
2892
2892
  a,
2893
2893
  a,
2894
2894
  a
2895
- )("return%j", r(l, "integer|Long"));
2895
+ )("return%j", r(c, "integer|Long"));
2896
2896
  break;
2897
2897
  case "float":
2898
2898
  case "double":
2899
- u('if(typeof %s!=="number")', a)("return%j", r(l, "number"));
2899
+ u('if(typeof %s!=="number")', a)("return%j", r(c, "number"));
2900
2900
  break;
2901
2901
  case "bool":
2902
- u('if(typeof %s!=="boolean")', a)("return%j", r(l, "boolean"));
2902
+ u('if(typeof %s!=="boolean")', a)("return%j", r(c, "boolean"));
2903
2903
  break;
2904
2904
  case "string":
2905
- u("if(!util.isString(%s))", a)("return%j", r(l, "string"));
2905
+ u("if(!util.isString(%s))", a)("return%j", r(c, "string"));
2906
2906
  break;
2907
2907
  case "bytes":
2908
2908
  u(
@@ -2910,19 +2910,19 @@ function requireVerifier() {
2910
2910
  a,
2911
2911
  a,
2912
2912
  a
2913
- )("return%j", r(l, "buffer"));
2913
+ )("return%j", r(c, "buffer"));
2914
2914
  break;
2915
2915
  }
2916
2916
  return u;
2917
2917
  }
2918
- function m(u, l, d) {
2919
- switch (l.keyType) {
2918
+ function m(u, c, d) {
2919
+ switch (c.keyType) {
2920
2920
  case "int32":
2921
2921
  case "uint32":
2922
2922
  case "sint32":
2923
2923
  case "fixed32":
2924
2924
  case "sfixed32":
2925
- u("if(!util.key32Re.test(%s))", d)("return%j", r(l, "integer key"));
2925
+ u("if(!util.key32Re.test(%s))", d)("return%j", r(c, "integer key"));
2926
2926
  break;
2927
2927
  case "int64":
2928
2928
  case "uint64":
@@ -2932,58 +2932,58 @@ function requireVerifier() {
2932
2932
  u("if(!util.key64Re.test(%s))", d)(
2933
2933
  // see comment above: x is ok, d is not
2934
2934
  "return%j",
2935
- r(l, "integer|Long key")
2935
+ r(c, "integer|Long key")
2936
2936
  );
2937
2937
  break;
2938
2938
  case "bool":
2939
- u("if(!util.key2Re.test(%s))", d)("return%j", r(l, "boolean key"));
2939
+ u("if(!util.key2Re.test(%s))", d)("return%j", r(c, "boolean key"));
2940
2940
  break;
2941
2941
  }
2942
2942
  return u;
2943
2943
  }
2944
2944
  function o(u) {
2945
- var l = i.codegen(["m"], u.name + "$verify")('if(typeof m!=="object"||m===null)')(
2945
+ var c = i.codegen(["m"], u.name + "$verify")('if(typeof m!=="object"||m===null)')(
2946
2946
  "return%j",
2947
2947
  "object expected"
2948
2948
  ), d = u.oneofsArray, a = {};
2949
- d.length && l("var p={}");
2949
+ d.length && c("var p={}");
2950
2950
  for (var p = 0; p < /* initializes */
2951
2951
  u.fieldsArray.length; ++p) {
2952
2952
  var y = u._fieldsArray[p].resolve(), g = "m" + i.safeProp(y.name);
2953
- if (y.optional && l("if(%s!=null&&m.hasOwnProperty(%j)){", g, y.name), y.map)
2954
- l("if(!util.isObject(%s))", g)("return%j", r(y, "object"))(
2953
+ if (y.optional && c("if(%s!=null&&m.hasOwnProperty(%j)){", g, y.name), y.map)
2954
+ c("if(!util.isObject(%s))", g)("return%j", r(y, "object"))(
2955
2955
  "var k=Object.keys(%s)",
2956
2956
  g
2957
- )("for(var i=0;i<k.length;++i){"), m(l, y, "k[i]"), c(l, y, p, g + "[k[i]]")("}");
2957
+ )("for(var i=0;i<k.length;++i){"), m(c, y, "k[i]"), l(c, y, p, g + "[k[i]]")("}");
2958
2958
  else if (y.repeated)
2959
- l("if(!Array.isArray(%s))", g)("return%j", r(y, "array"))(
2959
+ c("if(!Array.isArray(%s))", g)("return%j", r(y, "array"))(
2960
2960
  "for(var i=0;i<%s.length;++i){",
2961
2961
  g
2962
- ), c(l, y, p, g + "[i]")("}");
2962
+ ), l(c, y, p, g + "[i]")("}");
2963
2963
  else {
2964
2964
  if (y.partOf) {
2965
2965
  var h = i.safeProp(y.partOf.name);
2966
- a[y.partOf.name] === 1 && l("if(p%s===1)", h)("return%j", y.partOf.name + ": multiple values"), a[y.partOf.name] = 1, l("p%s=1", h);
2966
+ a[y.partOf.name] === 1 && c("if(p%s===1)", h)("return%j", y.partOf.name + ": multiple values"), a[y.partOf.name] = 1, c("p%s=1", h);
2967
2967
  }
2968
- c(l, y, p, g);
2968
+ l(c, y, p, g);
2969
2969
  }
2970
- y.optional && l("}");
2970
+ y.optional && c("}");
2971
2971
  }
2972
- return l("return null");
2972
+ return c("return null");
2973
2973
  }
2974
2974
  return verifier_1;
2975
2975
  }
2976
2976
  var converter = {}, hasRequiredConverter;
2977
2977
  function requireConverter() {
2978
2978
  return hasRequiredConverter || (hasRequiredConverter = 1, function(s) {
2979
- var i = s, r = require_enum(), c = requireUtil();
2980
- function m(u, l, d, a) {
2979
+ var i = s, r = require_enum(), l = requireUtil();
2980
+ function m(u, c, d, a) {
2981
2981
  var p = !1;
2982
- if (l.resolvedType)
2983
- if (l.resolvedType instanceof r) {
2982
+ if (c.resolvedType)
2983
+ if (c.resolvedType instanceof r) {
2984
2984
  u("switch(d%s){", a);
2985
- for (var y = l.resolvedType.values, g = Object.keys(y), h = 0; h < g.length; ++h)
2986
- y[g[h]] === l.typeDefault && !p && (u("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}', a, a, a), l.repeated || u(
2985
+ for (var y = c.resolvedType.values, g = Object.keys(y), h = 0; h < g.length; ++h)
2986
+ y[g[h]] === c.typeDefault && !p && (u("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}', a, a, a), c.repeated || u(
2987
2987
  // fallback to default value only for
2988
2988
  // arrays, to avoid leaving holes.
2989
2989
  "break"
@@ -2994,11 +2994,11 @@ function requireConverter() {
2994
2994
  } else
2995
2995
  u('if(typeof d%s!=="object")', a)(
2996
2996
  "throw TypeError(%j)",
2997
- l.fullName + ": object expected"
2997
+ c.fullName + ": object expected"
2998
2998
  )("m%s=types[%i].fromObject(d%s)", a, d, a);
2999
2999
  else {
3000
3000
  var v = !1;
3001
- switch (l.type) {
3001
+ switch (c.type) {
3002
3002
  case "double":
3003
3003
  case "float":
3004
3004
  u("m%s=Number(d%s)", a, a);
@@ -3057,14 +3057,14 @@ function requireConverter() {
3057
3057
  }
3058
3058
  return u;
3059
3059
  }
3060
- i.fromObject = function(l) {
3061
- var d = l.fieldsArray, a = c.codegen(["d"], l.name + "$fromObject")("if(d instanceof this.ctor)")(
3060
+ i.fromObject = function(c) {
3061
+ var d = c.fieldsArray, a = l.codegen(["d"], c.name + "$fromObject")("if(d instanceof this.ctor)")(
3062
3062
  "return d"
3063
3063
  );
3064
3064
  if (!d.length) return a("return new this.ctor");
3065
3065
  a("var m=new this.ctor");
3066
3066
  for (var p = 0; p < d.length; ++p) {
3067
- var y = d[p].resolve(), g = c.safeProp(y.name);
3067
+ var y = d[p].resolve(), g = l.safeProp(y.name);
3068
3068
  y.map ? (a("if(d%s){", g)('if(typeof d%s!=="object")', g)(
3069
3069
  "throw TypeError(%j)",
3070
3070
  y.fullName + ": object expected"
@@ -3097,9 +3097,9 @@ function requireConverter() {
3097
3097
  }
3098
3098
  return a("return m");
3099
3099
  };
3100
- function o(u, l, d, a) {
3101
- if (l.resolvedType)
3102
- l.resolvedType instanceof r ? u(
3100
+ function o(u, c, d, a) {
3101
+ if (c.resolvedType)
3102
+ c.resolvedType instanceof r ? u(
3103
3103
  "d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",
3104
3104
  a,
3105
3105
  d,
@@ -3111,7 +3111,7 @@ function requireConverter() {
3111
3111
  ) : u("d%s=types[%i].toObject(m%s,o)", a, d, a);
3112
3112
  else {
3113
3113
  var p = !1;
3114
- switch (l.type) {
3114
+ switch (c.type) {
3115
3115
  case "double":
3116
3116
  case "float":
3117
3117
  u("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s", a, a, a, a);
@@ -3155,23 +3155,23 @@ function requireConverter() {
3155
3155
  }
3156
3156
  return u;
3157
3157
  }
3158
- i.toObject = function(l) {
3159
- var d = l.fieldsArray.slice().sort(c.compareFieldsById);
3160
- if (!d.length) return c.codegen()("return {}");
3161
- for (var a = c.codegen(["m", "o"], l.name + "$toObject")("if(!o)")("o={}")("var d={}"), p = [], y = [], g = [], h = 0; h < d.length; ++h)
3158
+ i.toObject = function(c) {
3159
+ var d = c.fieldsArray.slice().sort(l.compareFieldsById);
3160
+ if (!d.length) return l.codegen()("return {}");
3161
+ for (var a = l.codegen(["m", "o"], c.name + "$toObject")("if(!o)")("o={}")("var d={}"), p = [], y = [], g = [], h = 0; h < d.length; ++h)
3162
3162
  d[h].partOf || (d[h].resolve().repeated ? p : d[h].map ? y : g).push(d[h]);
3163
3163
  if (p.length) {
3164
3164
  for (a("if(o.arrays||o.defaults){"), h = 0; h < p.length; ++h)
3165
- a("d%s=[]", c.safeProp(p[h].name));
3165
+ a("d%s=[]", l.safeProp(p[h].name));
3166
3166
  a("}");
3167
3167
  }
3168
3168
  if (y.length) {
3169
- for (a("if(o.objects||o.defaults){"), h = 0; h < y.length; ++h) a("d%s={}", c.safeProp(y[h].name));
3169
+ for (a("if(o.objects||o.defaults){"), h = 0; h < y.length; ++h) a("d%s={}", l.safeProp(y[h].name));
3170
3170
  a("}");
3171
3171
  }
3172
3172
  if (g.length) {
3173
3173
  for (a("if(o.defaults){"), h = 0; h < g.length; ++h) {
3174
- var v = g[h], b = c.safeProp(v.name);
3174
+ var v = g[h], b = l.safeProp(v.name);
3175
3175
  if (v.resolvedType instanceof r)
3176
3176
  a(
3177
3177
  "d%s=o.enums===String?%j:%j",
@@ -3211,7 +3211,7 @@ function requireConverter() {
3211
3211
  }
3212
3212
  var T = !1;
3213
3213
  for (h = 0; h < d.length; ++h) {
3214
- var v = d[h], w = l._fieldsArray.indexOf(v), b = c.safeProp(v.name);
3214
+ var v = d[h], w = c._fieldsArray.indexOf(v), b = l.safeProp(v.name);
3215
3215
  v.map ? (T || (T = !0, a("var ks2")), a("if(m%s&&(ks2=Object.keys(m%s)).length){", b, b)("d%s={}", b)(
3216
3216
  "for(var j=0;j<ks2.length;++j){"
3217
3217
  ), o(
@@ -3235,7 +3235,7 @@ function requireConverter() {
3235
3235
  /* sorted */
3236
3236
  w,
3237
3237
  b
3238
- ), v.partOf && a("if(o.oneofs)")("d%s=%j", c.safeProp(v.partOf.name), v.name)), a("}");
3238
+ ), v.partOf && a("if(o.oneofs)")("d%s=%j", l.safeProp(v.partOf.name), v.name)), a("}");
3239
3239
  }
3240
3240
  return a("return d");
3241
3241
  };
@@ -3245,31 +3245,31 @@ var wrappers = {};
3245
3245
  (function(s) {
3246
3246
  var i = s, r = message;
3247
3247
  i[".google.protobuf.Any"] = {
3248
- fromObject: function(c) {
3249
- if (c && c["@type"]) {
3250
- var m = c["@type"].substring(c["@type"].lastIndexOf("/") + 1), o = this.lookup(m);
3248
+ fromObject: function(l) {
3249
+ if (l && l["@type"]) {
3250
+ var m = l["@type"].substring(l["@type"].lastIndexOf("/") + 1), o = this.lookup(m);
3251
3251
  if (o) {
3252
- var u = c["@type"].charAt(0) === "." ? c["@type"].slice(1) : c["@type"];
3252
+ var u = l["@type"].charAt(0) === "." ? l["@type"].slice(1) : l["@type"];
3253
3253
  return u.indexOf("/") === -1 && (u = "/" + u), this.create({
3254
3254
  type_url: u,
3255
- value: o.encode(o.fromObject(c)).finish()
3255
+ value: o.encode(o.fromObject(l)).finish()
3256
3256
  });
3257
3257
  }
3258
3258
  }
3259
- return this.fromObject(c);
3259
+ return this.fromObject(l);
3260
3260
  },
3261
- toObject: function(c, m) {
3262
- var o = "type.googleapis.com/", u = "", l = "";
3263
- if (m && m.json && c.type_url && c.value) {
3264
- l = c.type_url.substring(c.type_url.lastIndexOf("/") + 1), u = c.type_url.substring(0, c.type_url.lastIndexOf("/") + 1);
3265
- var d = this.lookup(l);
3266
- d && (c = d.decode(c.value));
3261
+ toObject: function(l, m) {
3262
+ var o = "type.googleapis.com/", u = "", c = "";
3263
+ if (m && m.json && l.type_url && l.value) {
3264
+ c = l.type_url.substring(l.type_url.lastIndexOf("/") + 1), u = l.type_url.substring(0, l.type_url.lastIndexOf("/") + 1);
3265
+ var d = this.lookup(c);
3266
+ d && (l = d.decode(l.value));
3267
3267
  }
3268
- if (!(c instanceof this.ctor) && c instanceof r) {
3269
- var a = c.$type.toObject(c, m), p = c.$type.fullName[0] === "." ? c.$type.fullName.slice(1) : c.$type.fullName;
3270
- return u === "" && (u = o), l = u + p, a["@type"] = l, a;
3268
+ if (!(l instanceof this.ctor) && l instanceof r) {
3269
+ var a = l.$type.toObject(l, m), p = l.$type.fullName[0] === "." ? l.$type.fullName.slice(1) : l.$type.fullName;
3270
+ return u === "" && (u = o), c = u + p, a["@type"] = c, a;
3271
3271
  }
3272
- return this.toObject(c, m);
3272
+ return this.toObject(l, m);
3273
3273
  }
3274
3274
  };
3275
3275
  })(wrappers);
@@ -3279,7 +3279,7 @@ function requireType() {
3279
3279
  hasRequiredType = 1, type = b;
3280
3280
  var s = requireNamespace();
3281
3281
  ((b.prototype = Object.create(s.prototype)).constructor = b).className = "Type";
3282
- var i = require_enum(), r = requireOneof(), c = requireField(), m = requireMapfield(), o = requireService(), u = message, l = reader, d = writer, a = requireUtil(), p = requireEncoder(), y = requireDecoder(), g = requireVerifier(), h = requireConverter(), v = wrappers;
3282
+ var i = require_enum(), r = requireOneof(), l = requireField(), m = requireMapfield(), o = requireService(), u = message, c = reader, d = writer, a = requireUtil(), p = requireEncoder(), y = requireDecoder(), g = requireVerifier(), h = requireConverter(), v = wrappers;
3283
3283
  function b(T, w) {
3284
3284
  s.call(this, T, w), this.fields = {}, this.oneofs = void 0, this.extensions = void 0, this.reserved = void 0, this.group = void 0, this._fieldsById = null, this._fieldsArray = null, this._oneofsArray = null, this._ctor = null;
3285
3285
  }
@@ -3365,7 +3365,7 @@ function requireType() {
3365
3365
  x.extensions = O.extensions, x.reserved = O.reserved;
3366
3366
  for (var R = Object.keys(O.fields), E = 0; E < R.length; ++E)
3367
3367
  x.add(
3368
- (typeof O.fields[R[E]].keyType < "u" ? m.fromJSON : c.fromJSON)(
3368
+ (typeof O.fields[R[E]].keyType < "u" ? m.fromJSON : l.fromJSON)(
3369
3369
  R[E],
3370
3370
  O.fields[R[E]]
3371
3371
  )
@@ -3378,7 +3378,7 @@ function requireType() {
3378
3378
  var A = O.nested[R[E]];
3379
3379
  x.add(
3380
3380
  // most to least likely
3381
- (A.id !== void 0 ? c.fromJSON : A.fields !== void 0 ? b.fromJSON : A.values !== void 0 ? i.fromJSON : A.methods !== void 0 ? o.fromJSON : s.fromJSON)(R[E], A)
3381
+ (A.id !== void 0 ? l.fromJSON : A.fields !== void 0 ? b.fromJSON : A.values !== void 0 ? i.fromJSON : A.methods !== void 0 ? o.fromJSON : s.fromJSON)(R[E], A)
3382
3382
  );
3383
3383
  }
3384
3384
  return O.extensions && O.extensions.length && (x.extensions = O.extensions), O.reserved && O.reserved.length && (x.reserved = O.reserved), O.group && (x.group = !0), O.comment && (x.comment = O.comment), x;
@@ -3416,7 +3416,7 @@ function requireType() {
3416
3416
  return this.fields[w] || this.oneofs && this.oneofs[w] || this.nested && this.nested[w] || null;
3417
3417
  }, b.prototype.add = function(w) {
3418
3418
  if (this.get(w.name)) throw Error("duplicate name '" + w.name + "' in " + this);
3419
- if (w instanceof c && w.extend === void 0) {
3419
+ if (w instanceof l && w.extend === void 0) {
3420
3420
  if (this._fieldsById ? (
3421
3421
  /* istanbul ignore next */
3422
3422
  this._fieldsById[w.id]
@@ -3429,7 +3429,7 @@ function requireType() {
3429
3429
  }
3430
3430
  return w instanceof r ? (this.oneofs || (this.oneofs = {}), this.oneofs[w.name] = w, w.onAdd(this), _(this)) : s.prototype.add.call(this, w);
3431
3431
  }, b.prototype.remove = function(w) {
3432
- if (w instanceof c && w.extend === void 0) {
3432
+ if (w instanceof l && w.extend === void 0) {
3433
3433
  if (!this.fields || this.fields[w.name] !== w)
3434
3434
  throw Error(w + " is not a member of " + this);
3435
3435
  return delete this.fields[w.name], w.parent = null, w.onRemove(this), _(this);
@@ -3455,7 +3455,7 @@ function requireType() {
3455
3455
  types: O,
3456
3456
  util: a
3457
3457
  }), this.decode = y(this)({
3458
- Reader: l,
3458
+ Reader: c,
3459
3459
  types: O,
3460
3460
  util: a
3461
3461
  }), this.verify = g(this)({
@@ -3481,7 +3481,7 @@ function requireType() {
3481
3481
  }, b.prototype.decode = function(w, O) {
3482
3482
  return this.setup().decode(w, O);
3483
3483
  }, b.prototype.decodeDelimited = function(w) {
3484
- return w instanceof l || (w = l.create(w)), this.decode(w, w.uint32());
3484
+ return w instanceof c || (w = c.create(w)), this.decode(w, w.uint32());
3485
3485
  }, b.prototype.verify = function(w) {
3486
3486
  return this.setup().verify(w);
3487
3487
  }, b.prototype.fromObject = function(w) {
@@ -3500,7 +3500,7 @@ function requireRoot() {
3500
3500
  hasRequiredRoot = 1, root$1 = d;
3501
3501
  var s = requireNamespace();
3502
3502
  ((d.prototype = Object.create(s.prototype)).constructor = d).className = "Root";
3503
- var i = requireField(), r = require_enum(), c = requireOneof(), m = requireUtil(), o, u, l;
3503
+ var i = requireField(), r = require_enum(), l = requireOneof(), m = requireUtil(), o, u, c;
3504
3504
  function d(g) {
3505
3505
  s.call(this, "", g), this.deferred = [], this.files = [];
3506
3506
  }
@@ -3525,7 +3525,7 @@ function requireRoot() {
3525
3525
  var D = k.lastIndexOf("google/protobuf/");
3526
3526
  if (D > -1) {
3527
3527
  var N = k.substring(D);
3528
- if (N in l) return N;
3528
+ if (N in c) return N;
3529
3529
  }
3530
3530
  return null;
3531
3531
  }
@@ -3549,9 +3549,9 @@ function requireRoot() {
3549
3549
  }
3550
3550
  function R(k, D) {
3551
3551
  if (k = O(k) || k, !(_.files.indexOf(k) > -1)) {
3552
- if (_.files.push(k), k in l) {
3553
- T ? x(k, l[k]) : (++E, setTimeout(function() {
3554
- --E, x(k, l[k]);
3552
+ if (_.files.push(k), k in c) {
3553
+ T ? x(k, c[k]) : (++E, setTimeout(function() {
3554
+ --E, x(k, c[k]);
3555
3555
  }));
3556
3556
  return;
3557
3557
  }
@@ -3617,7 +3617,7 @@ function requireRoot() {
3617
3617
  !h.extensionField && (y(this, h) || this.deferred.push(h));
3618
3618
  else if (h instanceof r)
3619
3619
  p.test(h.name) && (h.parent[h.name] = h.values);
3620
- else if (!(h instanceof c)) {
3620
+ else if (!(h instanceof l)) {
3621
3621
  if (h instanceof o)
3622
3622
  for (var v = 0; v < this.deferred.length; )
3623
3623
  y(this, this.deferred[v]) ? this.deferred.splice(v, 1) : ++v;
@@ -3650,14 +3650,14 @@ function requireRoot() {
3650
3650
  p.test(h.name) && delete h.parent[h.name];
3651
3651
  }
3652
3652
  }, d._configure = function(g, h, v) {
3653
- o = g, u = h, l = v;
3653
+ o = g, u = h, c = v;
3654
3654
  }, root$1;
3655
3655
  }
3656
3656
  var hasRequiredUtil;
3657
3657
  function requireUtil() {
3658
3658
  if (hasRequiredUtil) return util$2.exports;
3659
3659
  hasRequiredUtil = 1;
3660
- var s = util$2.exports = requireMinimal(), i = roots, r, c;
3660
+ var s = util$2.exports = requireMinimal(), i = roots, r, l;
3661
3661
  s.codegen = codegen_1, s.fetch = fetch_1, s.path = path, s.fs = s.inquire("fs"), s.toArray = function(a) {
3662
3662
  if (a) {
3663
3663
  for (var p = Object.keys(a), y = new Array(p.length), g = 0; g < p.length; ) y[g] = a[p[g++]];
@@ -3701,11 +3701,11 @@ function requireUtil() {
3701
3701
  enumerable: !1
3702
3702
  }), y;
3703
3703
  };
3704
- var l = 0;
3704
+ var c = 0;
3705
3705
  return s.decorateEnum = function(a) {
3706
3706
  if (a.$type) return a.$type;
3707
- c || (c = require_enum());
3708
- var p = new c("Enum" + l++, a);
3707
+ l || (l = require_enum());
3708
+ var p = new l("Enum" + c++, a);
3709
3709
  return s.decorateRoot.add(p), Object.defineProperty(a, "$type", {
3710
3710
  value: p,
3711
3711
  enumerable: !1
@@ -3737,10 +3737,10 @@ function requireObject() {
3737
3737
  if (hasRequiredObject) return object;
3738
3738
  hasRequiredObject = 1, object = r, r.className = "ReflectionObject";
3739
3739
  var s = requireUtil(), i;
3740
- function r(c, m) {
3741
- if (!s.isString(c)) throw TypeError("name must be a string");
3740
+ function r(l, m) {
3741
+ if (!s.isString(l)) throw TypeError("name must be a string");
3742
3742
  if (m && !s.isObject(m)) throw TypeError("options must be an object");
3743
- this.options = m, this.parsedOptions = null, this.name = c, this.parent = null, this.resolved = !1, this.comment = null, this.filename = null;
3743
+ this.options = m, this.parsedOptions = null, this.name = l, this.parent = null, this.resolved = !1, this.comment = null, this.filename = null;
3744
3744
  }
3745
3745
  return Object.defineProperties(r.prototype, {
3746
3746
  /**
@@ -3751,8 +3751,8 @@ function requireObject() {
3751
3751
  */
3752
3752
  root: {
3753
3753
  get: function() {
3754
- for (var c = this; c.parent !== null; ) c = c.parent;
3755
- return c;
3754
+ for (var l = this; l.parent !== null; ) l = l.parent;
3755
+ return l;
3756
3756
  }
3757
3757
  },
3758
3758
  /**
@@ -3763,9 +3763,9 @@ function requireObject() {
3763
3763
  */
3764
3764
  fullName: {
3765
3765
  get: function() {
3766
- for (var c = [this.name], m = this.parent; m; )
3767
- c.unshift(m.name), m = m.parent;
3768
- return c.join(".");
3766
+ for (var l = [this.name], m = this.parent; m; )
3767
+ l.unshift(m.name), m = m.parent;
3768
+ return l.join(".");
3769
3769
  }
3770
3770
  }
3771
3771
  }), r.prototype.toJSON = /* istanbul ignore next */
@@ -3786,50 +3786,50 @@ function requireObject() {
3786
3786
  return (!u || !this.options || this.options[m] === void 0) && ((this.options || (this.options = {}))[m] = o), this;
3787
3787
  }, r.prototype.setParsedOption = function(m, o, u) {
3788
3788
  this.parsedOptions || (this.parsedOptions = []);
3789
- var l = this.parsedOptions;
3789
+ var c = this.parsedOptions;
3790
3790
  if (u) {
3791
- var d = l.find(function(y) {
3791
+ var d = c.find(function(y) {
3792
3792
  return Object.prototype.hasOwnProperty.call(y, m);
3793
3793
  });
3794
3794
  if (d) {
3795
3795
  var a = d[m];
3796
3796
  s.setProperty(a, u, o);
3797
3797
  } else
3798
- d = {}, d[m] = s.setProperty({}, u, o), l.push(d);
3798
+ d = {}, d[m] = s.setProperty({}, u, o), c.push(d);
3799
3799
  } else {
3800
3800
  var p = {};
3801
- p[m] = o, l.push(p);
3801
+ p[m] = o, c.push(p);
3802
3802
  }
3803
3803
  return this;
3804
3804
  }, r.prototype.setOptions = function(m, o) {
3805
3805
  if (m)
3806
- for (var u = Object.keys(m), l = 0; l < u.length; ++l)
3807
- this.setOption(u[l], m[u[l]], o);
3806
+ for (var u = Object.keys(m), c = 0; c < u.length; ++c)
3807
+ this.setOption(u[c], m[u[c]], o);
3808
3808
  return this;
3809
3809
  }, r.prototype.toString = function() {
3810
3810
  var m = this.constructor.className, o = this.fullName;
3811
3811
  return o.length ? m + " " + o : m;
3812
- }, r._configure = function(c) {
3813
- i = c;
3812
+ }, r._configure = function(l) {
3813
+ i = l;
3814
3814
  }, object;
3815
3815
  }
3816
3816
  var _enum, hasRequired_enum;
3817
3817
  function require_enum() {
3818
3818
  if (hasRequired_enum) return _enum;
3819
- hasRequired_enum = 1, _enum = c;
3819
+ hasRequired_enum = 1, _enum = l;
3820
3820
  var s = requireObject();
3821
- ((c.prototype = Object.create(s.prototype)).constructor = c).className = "Enum";
3821
+ ((l.prototype = Object.create(s.prototype)).constructor = l).className = "Enum";
3822
3822
  var i = requireNamespace(), r = requireUtil();
3823
- function c(m, o, u, l, d, a) {
3823
+ function l(m, o, u, c, d, a) {
3824
3824
  if (s.call(this, m, u), o && typeof o != "object") throw TypeError("values must be an object");
3825
- if (this.valuesById = {}, this.values = Object.create(this.valuesById), this.comment = l, this.comments = d || {}, this.valuesOptions = a, this.reserved = void 0, o)
3825
+ if (this.valuesById = {}, this.values = Object.create(this.valuesById), this.comment = c, this.comments = d || {}, this.valuesOptions = a, this.reserved = void 0, o)
3826
3826
  for (var p = Object.keys(o), y = 0; y < p.length; ++y)
3827
3827
  typeof o[p[y]] == "number" && (this.valuesById[this.values[p[y]] = o[p[y]]] = p[y]);
3828
3828
  }
3829
- return c.fromJSON = function(o, u) {
3830
- var l = new c(o, u.values, u.options, u.comment, u.comments);
3831
- return l.reserved = u.reserved, l;
3832
- }, c.prototype.toJSON = function(o) {
3829
+ return l.fromJSON = function(o, u) {
3830
+ var c = new l(o, u.values, u.options, u.comment, u.comments);
3831
+ return c.reserved = u.reserved, c;
3832
+ }, l.prototype.toJSON = function(o) {
3833
3833
  var u = o ? !!o.keepComments : !1;
3834
3834
  return r.toObject([
3835
3835
  "options",
@@ -3845,7 +3845,7 @@ function require_enum() {
3845
3845
  "comments",
3846
3846
  u ? this.comments : void 0
3847
3847
  ]);
3848
- }, c.prototype.add = function(o, u, l, d) {
3848
+ }, l.prototype.add = function(o, u, c, d) {
3849
3849
  if (!r.isString(o)) throw TypeError("name must be a string");
3850
3850
  if (!r.isInteger(u)) throw TypeError("id must be an integer");
3851
3851
  if (this.values[o] !== void 0) throw Error("duplicate name '" + o + "' in " + this);
@@ -3856,15 +3856,15 @@ function require_enum() {
3856
3856
  throw Error("duplicate id " + u + " in " + this);
3857
3857
  this.values[o] = u;
3858
3858
  } else this.valuesById[this.values[o] = u] = o;
3859
- return d && (this.valuesOptions === void 0 && (this.valuesOptions = {}), this.valuesOptions[o] = d || null), this.comments[o] = l || null, this;
3860
- }, c.prototype.remove = function(o) {
3859
+ return d && (this.valuesOptions === void 0 && (this.valuesOptions = {}), this.valuesOptions[o] = d || null), this.comments[o] = c || null, this;
3860
+ }, l.prototype.remove = function(o) {
3861
3861
  if (!r.isString(o)) throw TypeError("name must be a string");
3862
3862
  var u = this.values[o];
3863
3863
  if (u == null) throw Error("name '" + o + "' does not exist in " + this);
3864
3864
  return delete this.valuesById[u], delete this.values[o], delete this.comments[o], this.valuesOptions && delete this.valuesOptions[o], this;
3865
- }, c.prototype.isReservedId = function(o) {
3865
+ }, l.prototype.isReservedId = function(o) {
3866
3866
  return i.isReservedId(this.reserved, o);
3867
- }, c.prototype.isReservedName = function(o) {
3867
+ }, l.prototype.isReservedName = function(o) {
3868
3868
  return i.isReservedName(this.reserved, o);
3869
3869
  }, _enum;
3870
3870
  }
@@ -3873,26 +3873,26 @@ function requireEncoder() {
3873
3873
  if (hasRequiredEncoder) return encoder_1;
3874
3874
  hasRequiredEncoder = 1, encoder_1 = m;
3875
3875
  var s = require_enum(), i = requireTypes(), r = requireUtil();
3876
- function c(o, u, l, d) {
3876
+ function l(o, u, c, d) {
3877
3877
  return u.resolvedType.group ? o(
3878
3878
  "types[%i].encode(%s,w.uint32(%i)).uint32(%i)",
3879
- l,
3879
+ c,
3880
3880
  d,
3881
3881
  (u.id << 3 | 3) >>> 0,
3882
3882
  (u.id << 3 | 4) >>> 0
3883
3883
  ) : o(
3884
3884
  "types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",
3885
- l,
3885
+ c,
3886
3886
  d,
3887
3887
  (u.id << 3 | 2) >>> 0
3888
3888
  );
3889
3889
  }
3890
3890
  function m(o) {
3891
- for (var u = r.codegen(["m", "w"], o.name + "$encode")("if(!w)")("w=Writer.create()"), l, d, a = (
3891
+ for (var u = r.codegen(["m", "w"], o.name + "$encode")("if(!w)")("w=Writer.create()"), c, d, a = (
3892
3892
  /* initializes */
3893
3893
  o.fieldsArray.slice().sort(r.compareFieldsById)
3894
- ), l = 0; l < a.length; ++l) {
3895
- var p = a[l].resolve(), y = o._fieldsArray.indexOf(p), g = p.resolvedType instanceof s ? "int32" : p.type, h = i.basic[g];
3894
+ ), c = 0; c < a.length; ++c) {
3895
+ var p = a[c].resolve(), y = o._fieldsArray.indexOf(p), g = p.resolvedType instanceof s ? "int32" : p.type, h = i.basic[g];
3896
3896
  d = "m" + r.safeProp(p.name), p.map ? (u(
3897
3897
  "if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",
3898
3898
  d,
@@ -3913,7 +3913,7 @@ function requireEncoder() {
3913
3913
  "w.%s(%s[i])",
3914
3914
  g,
3915
3915
  d
3916
- )("w.ldelim()") : (u("for(var i=0;i<%s.length;++i)", d), h === void 0 ? c(u, p, y, d + "[i]") : u("w.uint32(%i).%s(%s[i])", (p.id << 3 | h) >>> 0, g, d)), u("}")) : (p.optional && u("if(%s!=null&&Object.hasOwnProperty.call(m,%j))", d, p.name), h === void 0 ? c(u, p, y, d) : u("w.uint32(%i).%s(%s)", (p.id << 3 | h) >>> 0, g, d));
3916
+ )("w.ldelim()") : (u("for(var i=0;i<%s.length;++i)", d), h === void 0 ? l(u, p, y, d + "[i]") : u("w.uint32(%i).%s(%s[i])", (p.id << 3 | h) >>> 0, g, d)), u("}")) : (p.optional && u("if(%s!=null&&Object.hasOwnProperty.call(m,%j))", d, p.name), h === void 0 ? l(u, p, y, d) : u("w.uint32(%i).%s(%s)", (p.id << 3 | h) >>> 0, g, d));
3917
3917
  }
3918
3918
  return u("return w");
3919
3919
  }
@@ -3972,7 +3972,7 @@ function unescape(s) {
3972
3972
  tokenize$1.unescape = unescape;
3973
3973
  function tokenize$1(s, i) {
3974
3974
  s = s.toString();
3975
- var r = 0, c = s.length, m = 1, o = 0, u = {}, l = [], d = null;
3975
+ var r = 0, l = s.length, m = 1, o = 0, u = {}, c = [], d = null;
3976
3976
  function a(x) {
3977
3977
  return Error("illegal " + x + " (line " + m + ")");
3978
3978
  }
@@ -4011,38 +4011,38 @@ function tokenize$1(s, i) {
4011
4011
  return A;
4012
4012
  }
4013
4013
  function v(x) {
4014
- for (var R = x; R < c && y(R) !== `
4014
+ for (var R = x; R < l && y(R) !== `
4015
4015
  `; )
4016
4016
  R++;
4017
4017
  return R;
4018
4018
  }
4019
4019
  function b() {
4020
- if (l.length > 0) return l.shift();
4020
+ if (c.length > 0) return c.shift();
4021
4021
  if (d) return p();
4022
4022
  var x, R, E, A, P, k = r === 0;
4023
4023
  do {
4024
- if (r === c) return null;
4024
+ if (r === l) return null;
4025
4025
  for (x = !1; whitespaceRe.test(E = y(r)); )
4026
4026
  if (E === `
4027
- ` && (k = !0, ++m), ++r === c) return null;
4027
+ ` && (k = !0, ++m), ++r === l) return null;
4028
4028
  if (y(r) === "/") {
4029
- if (++r === c)
4029
+ if (++r === l)
4030
4030
  throw a("comment");
4031
4031
  if (y(r) === "/")
4032
4032
  if (i) {
4033
4033
  if (A = r, P = !1, h(r - 1)) {
4034
4034
  P = !0;
4035
4035
  do
4036
- if (r = v(r), r === c || (r++, !k))
4036
+ if (r = v(r), r === l || (r++, !k))
4037
4037
  break;
4038
4038
  while (h(r));
4039
4039
  } else
4040
- r = Math.min(c, v(r) + 1);
4040
+ r = Math.min(l, v(r) + 1);
4041
4041
  P && (g(A, r, k), k = !0), m++, x = !0;
4042
4042
  } else {
4043
4043
  for (P = y(A = r + 1) === "/"; y(++r) !== `
4044
4044
  `; )
4045
- if (r === c)
4045
+ if (r === l)
4046
4046
  return null;
4047
4047
  ++r, P && (g(A, r - 1, k), k = !0), ++m, x = !0;
4048
4048
  }
@@ -4050,7 +4050,7 @@ function tokenize$1(s, i) {
4050
4050
  A = r + 1, P = i || y(A) === "*";
4051
4051
  do {
4052
4052
  if (E === `
4053
- ` && ++m, ++r === c)
4053
+ ` && ++m, ++r === l)
4054
4054
  throw a("comment");
4055
4055
  R = E, E = y(r);
4056
4056
  } while (R !== "*" || E !== "/");
@@ -4062,20 +4062,20 @@ function tokenize$1(s, i) {
4062
4062
  var D = r;
4063
4063
  delimRe.lastIndex = 0;
4064
4064
  var N = delimRe.test(y(D++));
4065
- if (!N) for (; D < c && !delimRe.test(y(D)); ) ++D;
4065
+ if (!N) for (; D < l && !delimRe.test(y(D)); ) ++D;
4066
4066
  var L = s.substring(r, r = D);
4067
4067
  return (L === '"' || L === "'") && (d = L), L;
4068
4068
  }
4069
4069
  function _(x) {
4070
- l.push(x);
4070
+ c.push(x);
4071
4071
  }
4072
4072
  function T() {
4073
- if (!l.length) {
4073
+ if (!c.length) {
4074
4074
  var x = b();
4075
4075
  if (x === null) return null;
4076
4076
  _(x);
4077
4077
  }
4078
- return l[0];
4078
+ return c[0];
4079
4079
  }
4080
4080
  function w(x, R) {
4081
4081
  var E = T(), A = E === x;
@@ -4112,7 +4112,7 @@ parse.defaults = {
4112
4112
  var tokenize = tokenize_1, Root = requireRoot(), Type = requireType(), Field = requireField(), MapField = requireMapfield(), OneOf = requireOneof(), Enum = require_enum(), Service = requireService(), Method = requireMethod(), types = requireTypes(), util = requireUtil(), base10Re = /^[1-9][0-9]*$/, base10NegRe = /^-?[1-9][0-9]*$/, base16Re = /^0[x][0-9a-fA-F]+$/, base16NegRe = /^-?0[x][0-9a-fA-F]+$/, base8Re = /^0[0-7]+$/, base8NegRe = /^-?0[0-7]+$/, numberRe = /^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/, nameRe = /^[a-zA-Z_][a-zA-Z_0-9]*$/, typeRefRe = /^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/, fqTypeRefRe = /^(?:\.[a-zA-Z_][a-zA-Z_0-9]*)+$/;
4113
4113
  function parse(s, i, r) {
4114
4114
  i instanceof Root || (r = i, i = new Root()), r || (r = parse.defaults);
4115
- var c = r.preferTrailingComment || !1, m = tokenize(s, r.alternateCommentMode || !1), o = m.next, u = m.push, l = m.peek, d = m.skip, a = m.cmnt, p = !0, y, g, h, v, b = !1, _ = i, T = r.keepCase ? function(S) {
4115
+ var l = r.preferTrailingComment || !1, m = tokenize(s, r.alternateCommentMode || !1), o = m.next, u = m.push, c = m.peek, d = m.skip, a = m.cmnt, p = !0, y, g, h, v, b = !1, _ = i, T = r.keepCase ? function(S) {
4116
4116
  return S;
4117
4117
  } : util.camelCase;
4118
4118
  function w(S, C, I) {
@@ -4125,7 +4125,7 @@ function parse(s, i, r) {
4125
4125
  var S = [], C;
4126
4126
  do {
4127
4127
  if ((C = o()) !== '"' && C !== "'") throw w(C);
4128
- S.push(o()), d(C), C = l();
4128
+ S.push(o()), d(C), C = c();
4129
4129
  } while (C === '"' || C === "'");
4130
4130
  return S.join("");
4131
4131
  }
@@ -4156,7 +4156,7 @@ function parse(s, i, r) {
4156
4156
  function R(S, C) {
4157
4157
  var I, $;
4158
4158
  do
4159
- C && ((I = l()) === '"' || I === "'") ? S.push(O()) : S.push([$ = A(o()), d("to", !0) ? A(o()) : $]);
4159
+ C && ((I = c()) === '"' || I === "'") ? S.push(O()) : S.push([$ = A(o()), d("to", !0) ? A(o()) : $]);
4160
4160
  while (d(",", !0));
4161
4161
  var B = {
4162
4162
  options: void 0
@@ -4217,7 +4217,7 @@ function parse(s, i, r) {
4217
4217
  _ = _.define(y), d(";");
4218
4218
  }
4219
4219
  function k() {
4220
- var S = l(), C;
4220
+ var S = c(), C;
4221
4221
  switch (S) {
4222
4222
  case "weak":
4223
4223
  C = h || (h = []), o();
@@ -4255,7 +4255,7 @@ function parse(s, i, r) {
4255
4255
  for (var B; (B = o()) !== "}"; ) C(B);
4256
4256
  d(";", !0);
4257
4257
  } else
4258
- I && I(), d(";"), S && (typeof S.comment != "string" || c) && (S.comment = a($) || S.comment);
4258
+ I && I(), d(";"), S && (typeof S.comment != "string" || l) && (S.comment = a($) || S.comment);
4259
4259
  }
4260
4260
  function F(S, C) {
4261
4261
  if (!nameRe.test(C = o())) throw w(C, "type name");
@@ -4295,7 +4295,7 @@ function parse(s, i, r) {
4295
4295
  U(S, C);
4296
4296
  return;
4297
4297
  }
4298
- for (; $.endsWith(".") || l().startsWith("."); )
4298
+ for (; $.endsWith(".") || c().startsWith("."); )
4299
4299
  $ += o();
4300
4300
  if (!typeRefRe.test($)) throw w($, "type");
4301
4301
  var B = o();
@@ -4427,7 +4427,7 @@ function parse(s, i, r) {
4427
4427
  var I = d("(", !0);
4428
4428
  if (!typeRefRe.test(C = o())) throw w(C, "name");
4429
4429
  var $ = C, B = $, q;
4430
- I && (d(")"), $ = "(" + $ + ")", B = $, C = l(), fqTypeRefRe.test(C) && (q = C.slice(1), $ += C, o())), d("=");
4430
+ I && (d(")"), $ = "(" + $ + ")", B = $, C = c(), fqTypeRefRe.test(C) && (q = C.slice(1), $ += C, o())), d("=");
4431
4431
  var j = ee(S, $);
4432
4432
  ne(S, B, j, q);
4433
4433
  }
@@ -4439,8 +4439,8 @@ function parse(s, i, r) {
4439
4439
  if (H === null)
4440
4440
  throw w(H, "end of input");
4441
4441
  var $, B = H;
4442
- if (d(":", !0), l() === "{") $ = ee(S, C + "." + H);
4443
- else if (l() === "[") {
4442
+ if (d(":", !0), c() === "{") $ = ee(S, C + "." + H);
4443
+ else if (c() === "[") {
4444
4444
  $ = [];
4445
4445
  var q;
4446
4446
  if (d("[", !0)) {
@@ -4895,7 +4895,7 @@ var index = {
4895
4895
  GeoTerrainProvider
4896
4896
  };
4897
4897
  function createTdtProvider(s, i) {
4898
- const { token: r, ...c } = i;
4898
+ const { token: r, ...l } = i;
4899
4899
  return new WebMapTileServiceImageryProvider({
4900
4900
  url: `https://t0.tianditu.gov.cn/${s}_w/wmts?tk=${r}`,
4901
4901
  layer: s,
@@ -4904,7 +4904,7 @@ function createTdtProvider(s, i) {
4904
4904
  tileMatrixSetID: "w",
4905
4905
  maximumLevel: 18,
4906
4906
  credit: new Credit("TianDiTu"),
4907
- ...c
4907
+ ...l
4908
4908
  });
4909
4909
  }
4910
4910
  function createTdtTerrain(s) {
@@ -4920,11 +4920,11 @@ function getRawTag(s) {
4920
4920
  var i = hasOwnProperty$6.call(s, symToStringTag$1), r = s[symToStringTag$1];
4921
4921
  try {
4922
4922
  s[symToStringTag$1] = void 0;
4923
- var c = !0;
4923
+ var l = !0;
4924
4924
  } catch {
4925
4925
  }
4926
4926
  var m = nativeObjectToString$1.call(s);
4927
- return c && (i ? s[symToStringTag$1] = r : delete s[symToStringTag$1]), m;
4927
+ return l && (i ? s[symToStringTag$1] = r : delete s[symToStringTag$1]), m;
4928
4928
  }
4929
4929
  var objectProto$7 = Object.prototype, nativeObjectToString = objectProto$7.toString;
4930
4930
  function objectToString(s) {
@@ -5035,8 +5035,8 @@ var HOT_COUNT = 800, HOT_SPAN = 16, nativeNow = Date.now;
5035
5035
  function shortOut(s) {
5036
5036
  var i = 0, r = 0;
5037
5037
  return function() {
5038
- var c = nativeNow(), m = HOT_SPAN - (c - r);
5039
- if (r = c, m > 0) {
5038
+ var l = nativeNow(), m = HOT_SPAN - (l - r);
5039
+ if (r = l, m > 0) {
5040
5040
  if (++i >= HOT_COUNT)
5041
5041
  return arguments[0];
5042
5042
  } else
@@ -5073,12 +5073,12 @@ function eq(s, i) {
5073
5073
  var nativeMax$1 = Math.max;
5074
5074
  function overRest(s, i, r) {
5075
5075
  return i = nativeMax$1(i === void 0 ? s.length - 1 : i, 0), function() {
5076
- for (var c = arguments, m = -1, o = nativeMax$1(c.length - i, 0), u = Array(o); ++m < o; )
5077
- u[m] = c[i + m];
5076
+ for (var l = arguments, m = -1, o = nativeMax$1(l.length - i, 0), u = Array(o); ++m < o; )
5077
+ u[m] = l[i + m];
5078
5078
  m = -1;
5079
- for (var l = Array(i + 1); ++m < i; )
5080
- l[m] = c[m];
5081
- return l[i] = r(u), apply(s, this, l);
5079
+ for (var c = Array(i + 1); ++m < i; )
5080
+ c[m] = l[m];
5081
+ return c[i] = r(u), apply(s, this, c);
5082
5082
  };
5083
5083
  }
5084
5084
  function baseRest(s, i) {
@@ -5094,8 +5094,8 @@ function isArrayLike(s) {
5094
5094
  function isIterateeCall(s, i, r) {
5095
5095
  if (!isObject(r))
5096
5096
  return !1;
5097
- var c = typeof i;
5098
- return (c == "number" ? isArrayLike(r) && isIndex(i, r.length) : c == "string" && i in r) ? eq(r[i], s) : !1;
5097
+ var l = typeof i;
5098
+ return (l == "number" ? isArrayLike(r) && isIndex(i, r.length) : l == "string" && i in r) ? eq(r[i], s) : !1;
5099
5099
  }
5100
5100
  var objectProto$5 = Object.prototype;
5101
5101
  function isPrototype(s) {
@@ -5103,9 +5103,9 @@ function isPrototype(s) {
5103
5103
  return s === r;
5104
5104
  }
5105
5105
  function baseTimes(s, i) {
5106
- for (var r = -1, c = Array(s); ++r < s; )
5107
- c[r] = i(r);
5108
- return c;
5106
+ for (var r = -1, l = Array(s); ++r < s; )
5107
+ l[r] = i(r);
5108
+ return l;
5109
5109
  }
5110
5110
  var argsTag$1 = "[object Arguments]";
5111
5111
  function baseIsArguments(s) {
@@ -5138,14 +5138,14 @@ var freeExports = typeof exports == "object" && exports && !exports.nodeType &&
5138
5138
  }
5139
5139
  }(), nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray, isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
5140
5140
  function arrayLikeKeys(s, i) {
5141
- var r = isArray(s), c = !r && isArguments(s), m = !r && !c && isBuffer(s), o = !r && !c && !m && isTypedArray(s), u = r || c || m || o, l = u ? baseTimes(s.length, String) : [], d = l.length;
5141
+ var r = isArray(s), l = !r && isArguments(s), m = !r && !l && isBuffer(s), o = !r && !l && !m && isTypedArray(s), u = r || l || m || o, c = u ? baseTimes(s.length, String) : [], d = c.length;
5142
5142
  for (var a in s)
5143
5143
  u && // Safari 9 has enumerable `arguments.length` in strict mode.
5144
5144
  (a == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
5145
5145
  m && (a == "offset" || a == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
5146
5146
  o && (a == "buffer" || a == "byteLength" || a == "byteOffset") || // Skip index properties.
5147
- isIndex(a, d)) || l.push(a);
5148
- return l;
5147
+ isIndex(a, d)) || c.push(a);
5148
+ return c;
5149
5149
  }
5150
5150
  function nativeKeysIn(s) {
5151
5151
  var i = [];
@@ -5159,8 +5159,8 @@ function baseKeysIn(s) {
5159
5159
  if (!isObject(s))
5160
5160
  return nativeKeysIn(s);
5161
5161
  var i = isPrototype(s), r = [];
5162
- for (var c in s)
5163
- c == "constructor" && (i || !hasOwnProperty$3.call(s, c)) || r.push(c);
5162
+ for (var l in s)
5163
+ l == "constructor" && (i || !hasOwnProperty$3.call(s, l)) || r.push(l);
5164
5164
  return r;
5165
5165
  }
5166
5166
  function keysIn(s) {
@@ -5196,8 +5196,8 @@ function hashSet(s, i) {
5196
5196
  function Hash(s) {
5197
5197
  var i = -1, r = s == null ? 0 : s.length;
5198
5198
  for (this.clear(); ++i < r; ) {
5199
- var c = s[i];
5200
- this.set(c[0], c[1]);
5199
+ var l = s[i];
5200
+ this.set(l[0], l[1]);
5201
5201
  }
5202
5202
  }
5203
5203
  Hash.prototype.clear = hashClear;
@@ -5219,8 +5219,8 @@ function listCacheDelete(s) {
5219
5219
  var i = this.__data__, r = assocIndexOf(i, s);
5220
5220
  if (r < 0)
5221
5221
  return !1;
5222
- var c = i.length - 1;
5223
- return r == c ? i.pop() : splice.call(i, r, 1), --this.size, !0;
5222
+ var l = i.length - 1;
5223
+ return r == l ? i.pop() : splice.call(i, r, 1), --this.size, !0;
5224
5224
  }
5225
5225
  function listCacheGet(s) {
5226
5226
  var i = this.__data__, r = assocIndexOf(i, s);
@@ -5230,14 +5230,14 @@ function listCacheHas(s) {
5230
5230
  return assocIndexOf(this.__data__, s) > -1;
5231
5231
  }
5232
5232
  function listCacheSet(s, i) {
5233
- var r = this.__data__, c = assocIndexOf(r, s);
5234
- return c < 0 ? (++this.size, r.push([s, i])) : r[c][1] = i, this;
5233
+ var r = this.__data__, l = assocIndexOf(r, s);
5234
+ return l < 0 ? (++this.size, r.push([s, i])) : r[l][1] = i, this;
5235
5235
  }
5236
5236
  function ListCache(s) {
5237
5237
  var i = -1, r = s == null ? 0 : s.length;
5238
5238
  for (this.clear(); ++i < r; ) {
5239
- var c = s[i];
5240
- this.set(c[0], c[1]);
5239
+ var l = s[i];
5240
+ this.set(l[0], l[1]);
5241
5241
  }
5242
5242
  }
5243
5243
  ListCache.prototype.clear = listCacheClear;
@@ -5272,14 +5272,14 @@ function mapCacheHas(s) {
5272
5272
  return getMapData(this, s).has(s);
5273
5273
  }
5274
5274
  function mapCacheSet(s, i) {
5275
- var r = getMapData(this, s), c = r.size;
5276
- return r.set(s, i), this.size += r.size == c ? 0 : 1, this;
5275
+ var r = getMapData(this, s), l = r.size;
5276
+ return r.set(s, i), this.size += r.size == l ? 0 : 1, this;
5277
5277
  }
5278
5278
  function MapCache(s) {
5279
5279
  var i = -1, r = s == null ? 0 : s.length;
5280
5280
  for (this.clear(); ++i < r; ) {
5281
- var c = s[i];
5282
- this.set(c[0], c[1]);
5281
+ var l = s[i];
5282
+ this.set(l[0], l[1]);
5283
5283
  }
5284
5284
  }
5285
5285
  MapCache.prototype.clear = mapCacheClear;
@@ -5292,10 +5292,10 @@ function memoize(s, i) {
5292
5292
  if (typeof s != "function" || i != null && typeof i != "function")
5293
5293
  throw new TypeError(FUNC_ERROR_TEXT$1);
5294
5294
  var r = function() {
5295
- var c = arguments, m = i ? i.apply(this, c) : c[0], o = r.cache;
5295
+ var l = arguments, m = i ? i.apply(this, l) : l[0], o = r.cache;
5296
5296
  if (o.has(m))
5297
5297
  return o.get(m);
5298
- var u = s.apply(this, c);
5298
+ var u = s.apply(this, l);
5299
5299
  return r.cache = o.set(m, u) || o, u;
5300
5300
  };
5301
5301
  return r.cache = new (memoize.Cache || MapCache)(), r;
@@ -5305,16 +5305,16 @@ var now = function() {
5305
5305
  return root.Date.now();
5306
5306
  }, FUNC_ERROR_TEXT = "Expected a function", nativeMax = Math.max, nativeMin = Math.min;
5307
5307
  function debounce(s, i, r) {
5308
- var c, m, o, u, l, d, a = 0, p = !1, y = !1, g = !0;
5308
+ var l, m, o, u, c, d, a = 0, p = !1, y = !1, g = !0;
5309
5309
  if (typeof s != "function")
5310
5310
  throw new TypeError(FUNC_ERROR_TEXT);
5311
5311
  i = toNumber(i) || 0, isObject(r) && (p = !!r.leading, y = "maxWait" in r, o = y ? nativeMax(toNumber(r.maxWait) || 0, i) : o, g = "trailing" in r ? !!r.trailing : g);
5312
5312
  function h(E) {
5313
- var A = c, P = m;
5314
- return c = m = void 0, a = E, u = s.apply(P, A), u;
5313
+ var A = l, P = m;
5314
+ return l = m = void 0, a = E, u = s.apply(P, A), u;
5315
5315
  }
5316
5316
  function v(E) {
5317
- return a = E, l = setTimeout(T, i), p ? h(E) : u;
5317
+ return a = E, c = setTimeout(T, i), p ? h(E) : u;
5318
5318
  }
5319
5319
  function b(E) {
5320
5320
  var A = E - d, P = E - a, k = i - A;
@@ -5328,35 +5328,35 @@ function debounce(s, i, r) {
5328
5328
  var E = now();
5329
5329
  if (_(E))
5330
5330
  return w(E);
5331
- l = setTimeout(T, b(E));
5331
+ c = setTimeout(T, b(E));
5332
5332
  }
5333
5333
  function w(E) {
5334
- return l = void 0, g && c ? h(E) : (c = m = void 0, u);
5334
+ return c = void 0, g && l ? h(E) : (l = m = void 0, u);
5335
5335
  }
5336
5336
  function O() {
5337
- l !== void 0 && clearTimeout(l), a = 0, c = d = m = l = void 0;
5337
+ c !== void 0 && clearTimeout(c), a = 0, l = d = m = c = void 0;
5338
5338
  }
5339
5339
  function x() {
5340
- return l === void 0 ? u : w(now());
5340
+ return c === void 0 ? u : w(now());
5341
5341
  }
5342
5342
  function R() {
5343
5343
  var E = now(), A = _(E);
5344
- if (c = arguments, m = this, d = E, A) {
5345
- if (l === void 0)
5344
+ if (l = arguments, m = this, d = E, A) {
5345
+ if (c === void 0)
5346
5346
  return v(d);
5347
5347
  if (y)
5348
- return clearTimeout(l), l = setTimeout(T, i), h(d);
5348
+ return clearTimeout(c), c = setTimeout(T, i), h(d);
5349
5349
  }
5350
- return l === void 0 && (l = setTimeout(T, i)), u;
5350
+ return c === void 0 && (c = setTimeout(T, i)), u;
5351
5351
  }
5352
5352
  return R.cancel = O, R.flush = x, R;
5353
5353
  }
5354
5354
  var objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty, defaults = baseRest(function(s, i) {
5355
5355
  s = Object(s);
5356
- var r = -1, c = i.length, m = c > 2 ? i[2] : void 0;
5357
- for (m && isIterateeCall(i[0], i[1], m) && (c = 1); ++r < c; )
5358
- for (var o = i[r], u = keysIn(o), l = -1, d = u.length; ++l < d; ) {
5359
- var a = u[l], p = s[a];
5356
+ var r = -1, l = i.length, m = l > 2 ? i[2] : void 0;
5357
+ for (m && isIterateeCall(i[0], i[1], m) && (l = 1); ++r < l; )
5358
+ for (var o = i[r], u = keysIn(o), c = -1, d = u.length; ++c < d; ) {
5359
+ var a = u[c], p = s[a];
5360
5360
  (p === void 0 || eq(p, objectProto[a]) && !hasOwnProperty.call(s, a)) && (s[a] = o[a]);
5361
5361
  }
5362
5362
  return s;
@@ -5368,9 +5368,9 @@ var eventemitter3 = { exports: {} }, hasRequiredEventemitter3;
5368
5368
  function requireEventemitter3() {
5369
5369
  return hasRequiredEventemitter3 || (hasRequiredEventemitter3 = 1, function(s) {
5370
5370
  var i = Object.prototype.hasOwnProperty, r = "~";
5371
- function c() {
5371
+ function l() {
5372
5372
  }
5373
- Object.create && (c.prototype = /* @__PURE__ */ Object.create(null), new c().__proto__ || (r = !1));
5373
+ Object.create && (l.prototype = /* @__PURE__ */ Object.create(null), new l().__proto__ || (r = !1));
5374
5374
  function m(d, a, p) {
5375
5375
  this.fn = d, this.context = a, this.once = p || !1;
5376
5376
  }
@@ -5381,28 +5381,28 @@ function requireEventemitter3() {
5381
5381
  return d._events[v] ? d._events[v].fn ? d._events[v] = [d._events[v], h] : d._events[v].push(h) : (d._events[v] = h, d._eventsCount++), d;
5382
5382
  }
5383
5383
  function u(d, a) {
5384
- --d._eventsCount === 0 ? d._events = new c() : delete d._events[a];
5384
+ --d._eventsCount === 0 ? d._events = new l() : delete d._events[a];
5385
5385
  }
5386
- function l() {
5387
- this._events = new c(), this._eventsCount = 0;
5386
+ function c() {
5387
+ this._events = new l(), this._eventsCount = 0;
5388
5388
  }
5389
- l.prototype.eventNames = function() {
5389
+ c.prototype.eventNames = function() {
5390
5390
  var a = [], p, y;
5391
5391
  if (this._eventsCount === 0) return a;
5392
5392
  for (y in p = this._events)
5393
5393
  i.call(p, y) && a.push(r ? y.slice(1) : y);
5394
5394
  return Object.getOwnPropertySymbols ? a.concat(Object.getOwnPropertySymbols(p)) : a;
5395
- }, l.prototype.listeners = function(a) {
5395
+ }, c.prototype.listeners = function(a) {
5396
5396
  var p = r ? r + a : a, y = this._events[p];
5397
5397
  if (!y) return [];
5398
5398
  if (y.fn) return [y.fn];
5399
5399
  for (var g = 0, h = y.length, v = new Array(h); g < h; g++)
5400
5400
  v[g] = y[g].fn;
5401
5401
  return v;
5402
- }, l.prototype.listenerCount = function(a) {
5402
+ }, c.prototype.listenerCount = function(a) {
5403
5403
  var p = r ? r + a : a, y = this._events[p];
5404
5404
  return y ? y.fn ? 1 : y.length : 0;
5405
- }, l.prototype.emit = function(a, p, y, g, h, v) {
5405
+ }, c.prototype.emit = function(a, p, y, g, h, v) {
5406
5406
  var b = r ? r + a : a;
5407
5407
  if (!this._events[b]) return !1;
5408
5408
  var _ = this._events[b], T = arguments.length, w, O;
@@ -5447,11 +5447,11 @@ function requireEventemitter3() {
5447
5447
  }
5448
5448
  }
5449
5449
  return !0;
5450
- }, l.prototype.on = function(a, p, y) {
5450
+ }, c.prototype.on = function(a, p, y) {
5451
5451
  return o(this, a, p, y, !1);
5452
- }, l.prototype.once = function(a, p, y) {
5452
+ }, c.prototype.once = function(a, p, y) {
5453
5453
  return o(this, a, p, y, !0);
5454
- }, l.prototype.removeListener = function(a, p, y, g) {
5454
+ }, c.prototype.removeListener = function(a, p, y, g) {
5455
5455
  var h = r ? r + a : a;
5456
5456
  if (!this._events[h]) return this;
5457
5457
  if (!p)
@@ -5465,17 +5465,17 @@ function requireEventemitter3() {
5465
5465
  _.length ? this._events[h] = _.length === 1 ? _[0] : _ : u(this, h);
5466
5466
  }
5467
5467
  return this;
5468
- }, l.prototype.removeAllListeners = function(a) {
5468
+ }, c.prototype.removeAllListeners = function(a) {
5469
5469
  var p;
5470
- return a ? (p = r ? r + a : a, this._events[p] && u(this, p)) : (this._events = new c(), this._eventsCount = 0), this;
5471
- }, l.prototype.off = l.prototype.removeListener, l.prototype.addListener = l.prototype.on, l.prefixed = r, l.EventEmitter = l, s.exports = l;
5470
+ return a ? (p = r ? r + a : a, this._events[p] && u(this, p)) : (this._events = new l(), this._eventsCount = 0), this;
5471
+ }, c.prototype.off = c.prototype.removeListener, c.prototype.addListener = c.prototype.on, c.prefixed = r, c.EventEmitter = c, s.exports = c;
5472
5472
  }(eventemitter3)), eventemitter3.exports;
5473
5473
  }
5474
5474
  var eventemitter3Exports = requireEventemitter3();
5475
5475
  const EventEmitter = /* @__PURE__ */ getDefaultExportFromCjs(eventemitter3Exports);
5476
5476
  class WmsLayer {
5477
- constructor(i, r, c, m = 1 / 0) {
5478
- this.ctrl = i, this.key = r, this.layer = c, this.zIndex = m, this.ctrl.registerLayer(this);
5477
+ constructor(i, r, l, m = 1 / 0) {
5478
+ this.ctrl = i, this.key = r, this.layer = l, this.zIndex = m, this.ctrl.registerLayer(this);
5479
5479
  }
5480
5480
  show(i) {
5481
5481
  this.ctrl.showLayer(i, this.key);
@@ -5499,7 +5499,7 @@ class WmsLayerController extends EventEmitter {
5499
5499
  this.handler || this.hookClickEvent(r), this.imgLayer = new ImageryLayer(
5500
5500
  new WebMapServiceImageryProvider({
5501
5501
  ...this.args,
5502
- layers: this.showLayers.map((c) => this.layerMap.get(c).layer).join(",")
5502
+ layers: this.showLayers.map((l) => this.layerMap.get(l).layer).join(",")
5503
5503
  })
5504
5504
  ), this.imgLayer.show = !0, r.imageryLayers.add(this.imgLayer);
5505
5505
  }, 200));
@@ -5521,21 +5521,21 @@ class WmsLayerController extends EventEmitter {
5521
5521
  throw new Error(`Layer with key 【${r.key}】 is already registered`);
5522
5522
  this.layerMap.set(r.key, r);
5523
5523
  }
5524
- showLayer(r, c) {
5525
- if (!this.layerMap.has(c))
5526
- throw new Error(`Layer with key 【${c}】 is not registered`);
5527
- this.showLayers.push(c), this.showLayers.sort((m, o) => {
5528
- const u = this.layerMap.get(m).zIndex, l = this.layerMap.get(o).zIndex;
5529
- return u - l;
5524
+ showLayer(r, l) {
5525
+ if (!this.layerMap.has(l))
5526
+ throw new Error(`Layer with key 【${l}】 is not registered`);
5527
+ this.showLayers.push(l), this.showLayers.sort((m, o) => {
5528
+ const u = this.layerMap.get(m).zIndex, c = this.layerMap.get(o).zIndex;
5529
+ return u - c;
5530
5530
  }), this.update(r);
5531
5531
  }
5532
- hideLayer(r, c) {
5533
- const m = this.showLayers.indexOf(c);
5532
+ hideLayer(r, l) {
5533
+ const m = this.showLayers.indexOf(l);
5534
5534
  m !== -1 && (this.showLayers.splice(m, 1), this.update(r));
5535
5535
  }
5536
5536
  hookClickEvent(r) {
5537
- this.handler = new ScreenSpaceEventHandler(r.scene.canvas), this.handler.setInputAction(async (c) => {
5538
- const m = r.scene, o = m.camera.getPickRay(c.position), u = await m.imageryLayers.pickImageryLayerFeatures(o, r.scene);
5537
+ this.handler = new ScreenSpaceEventHandler(r.scene.canvas), this.handler.setInputAction(async (l) => {
5538
+ const m = r.scene, o = m.camera.getPickRay(l.position), u = await m.imageryLayers.pickImageryLayerFeatures(o, r.scene);
5539
5539
  this.emit("click", u);
5540
5540
  }, ScreenSpaceEventType.LEFT_CLICK);
5541
5541
  }
@@ -5581,15 +5581,15 @@ const createShipIconUrl = memoize(
5581
5581
  (s, i) => `${s},${i}`
5582
5582
  ), createShipIconV2 = memoize(
5583
5583
  (s) => {
5584
- const i = s.designBeam, r = s.designLength, c = s.aisFromBow != null && s.aisFromCenter != null ? { x: s.aisFromCenter, y: s.designLength - s.aisFromBow } : { x: 0, y: r / 2 }, m = `${i / 2 + c.x} ${c.y}`, o = `${-i / 2 + c.x} ${c.y}`, u = `${c.x} ${c.y}`, l = `${c.x} ${-r + c.y}`, d = Math.floor(r * 4 / 5), a = Math.floor((r - d) * 2 / 3), p = `M${u}
5585
- C${m} ${m} ${i / 2 + c.x} ${c.y - 3}
5586
- V${-d + c.y}
5587
- C${i / 2 + c.x} ${c.y - d - a} ${2 + c.x} ${-r + c.y} ${l}
5588
- C${-2 + c.x} ${-r + c.y} ${-i / 2 + c.x} ${c.y - d - a} ${-i / 2 + c.x} ${-d + c.y}
5589
- V${-3 + c.y}
5590
- C${o} ${o} ${u}`, y = Math.max(Math.abs(i / 2 + c.x), Math.abs(-i / 2 + c.x)), g = Math.max(
5591
- Math.abs(-r + c.y + (s.isMoving ? -5 : 0)),
5592
- Math.abs(c.y + (s.isMoving ? 146 / 124 * i : 0))
5584
+ const i = s.designBeam, r = s.designLength, l = s.aisFromBow != null && s.aisFromCenter != null ? { x: s.aisFromCenter, y: s.designLength - s.aisFromBow } : { x: 0, y: r / 2 }, m = `${i / 2 + l.x} ${l.y}`, o = `${-i / 2 + l.x} ${l.y}`, u = `${l.x} ${l.y}`, c = `${l.x} ${-r + l.y}`, d = Math.floor(r * 4 / 5), a = Math.floor((r - d) * 2 / 3), p = `M${u}
5585
+ C${m} ${m} ${i / 2 + l.x} ${l.y - 3}
5586
+ V${-d + l.y}
5587
+ C${i / 2 + l.x} ${l.y - d - a} ${2 + l.x} ${-r + l.y} ${c}
5588
+ C${-2 + l.x} ${-r + l.y} ${-i / 2 + l.x} ${l.y - d - a} ${-i / 2 + l.x} ${-d + l.y}
5589
+ V${-3 + l.y}
5590
+ C${o} ${o} ${u}`, y = Math.max(Math.abs(i / 2 + l.x), Math.abs(-i / 2 + l.x)), g = Math.max(
5591
+ Math.abs(-r + l.y + (s.isMoving ? -5 : 0)),
5592
+ Math.abs(l.y + (s.isMoving ? 146 / 124 * i : 0))
5593
5593
  ), h = [-y * 1.2, -g, 2 * y * 1.2, 2 * g], v = { x: 2 * 1.2 * y / i, y: 2 * g / r }, b = `<?xml version="1.0" encoding="UTF-8"?>
5594
5594
  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="${h.join(" ")}">
5595
5595
  <defs>
@@ -5616,22 +5616,22 @@ const createShipIconUrl = memoize(
5616
5616
  </style>
5617
5617
  </defs>
5618
5618
  <g>
5619
- <path id="svg_1" data-name="svg 1" class="cls-2" d="M${l}v-5"/>
5619
+ <path id="svg_1" data-name="svg 1" class="cls-2" d="M${c}v-5"/>
5620
5620
  <path id="svg_4" data-name="svg 4" class="cls-1" d="${p}"/>
5621
5621
  </g>
5622
- <image id="img_1" width="${i}" height="${146 / 124 * i}" transform="translate(${-i / 2 + c.x} ${c.y})" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHwAAACSCAMAAACwjl5+AAAAq1BMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Nr6iZAAAAOXRSTlMABRshFgkSZg5qJmFdWlEqOXBFPYVJQYB1VXtNLpc1mzKguZCKtJONxc69yaukwa/SqN/k1trs6fBh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cdePQCh42EO+mhO10eeRiMuckRVcnHVXDymg9sr/+pwcn7qmfdepdNWFsbI3w1d3ukv/v6qzoz2lEQBqJoVjQx/P8Hb6/nwoUyK9Xwskd3LYVynNrOxKgoxM3Q6MjZRrM6n5NgvIsjz2oP3u+CMkSuXcffebSnDvQEOtOh0iw5drqT1Yfks9yT4kdgpAmHTkwzw1zLWq/GPyVvWszAO9nMum6hxZSJQ32gXV3hkKkTjTaYzOrI//hJUXKGU+DyoUnVcS+OGe2ZW0PXWO906Y94rXMdY5YABCbu4YZtPqSlPsmx64Xvplz1LO3rrHOjfG/jDq5JGBs0OeCQBtF71SyhNyxf8kwdeOQa4zlDLjC+gcGWK2Ts28jL0JPhCzn2sO/ozmveHLrlOktNQx573Mrw+pMcptd48guaPelIl985n7aOWTGKGmq58jvR42HmeO8fwQBG61bMeuSxJ8NC5I4g8sm4lYamx829vb04/eR33KOc/L6VW0YES0Rn4JY1C/3FstgqeZCcVe3BLmXB5U11GlLXwsxYy5c9Hio3S57gb1DVz/lAd83s2J0ipEaOC3lZW4TlhG8Q5B2khLvZIa/+2GbrLkNdy7Ez89SIL8C9+7yRk0137n7DEXrsPE2a4XD+FjcLXchdE3sv75lug50pZnaf2rPbBfIvwA2jcoh9iZ//PGjxKPu4HHe3yc7cWfPU9+9hlRfZpSZyIH4gkGGezDecu9kGsSt+eGeoScy4R+Ry93v+oWfNozrDEIaiHXRD7DXkDONmzdY7oGbuAxPH/wEwphW49aD/MlAP40uv1I7bCf2a+KP+wF2p1f3pdBHHJfycnf43/AJwK37vPZnSygAAAABJRU5ErkJggg=="/>
5622
+ <image id="img_1" width="${i}" height="${146 / 124 * i}" transform="translate(${-i / 2 + l.x} ${l.y})" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHwAAACSCAMAAACwjl5+AAAAq1BMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Nr6iZAAAAOXRSTlMABR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4LlHgs6i7P6voU3R/VL6WhBW8fx7vVlMuXMnewHuIDzzeBrye1mTW7n94kh/428uTgJaZSdezKkcdePQCh42EO+mhO10eeRiMuckRVcnHVXDymg9sr/+pwcn7qmfdepdNWFsbI3w1d3ukv/v6qzoz2lEQBqJoVjQx/P8Hb6/nwoUyK9Xwskd3LYVynNrOxKgoxM3Q6MjZRrM6n5NgvIsjz2oP3u+CMkSuXcffebSnDvQEOtOh0iw5drqT1Yfks9yT4kdgpAmHTkwzw1zLWq/GPyVvWszAO9nMum6hxZSJQ32gXV3hkKkTjTaYzOrI//hJUXKGU+DyoUnVcS+OGe2ZW0PXWO906Y94rXMdY5YABCbu4YZtPqSlPsmx64Xvplz1LO3rrHOjfG/jDq5JGBs0OeCQBtF71SyhNyxf8kwdeOQa4zlDLjC+gcGWK2Ts28jL0JPhCzn2sO/ozmveHLrlOktNQx573Mrw+pMcptd48guaPelIl985n7aOWTGKGmq58jvR42HmeO8fwQBG61bMeuSxJ8NC5I4g8sm4lYamx829vb04/eR33KOc/L6VW0YES0Rn4JY1C/3FstgqeZCcVe3BLmXB5U11GlLXwsxYy5c9Hio3S57gb1DVz/lAd83s2J0ipEaOC3lZW4TlhG8Q5B2khLvZIa/+2GbrLkNdy7Ez89SIL8C9+7yRk0137n7DEXrsPE2a4XD+FjcLXchdE3sv75lug50pZnaf2rPbBfIvwA2jcoh9iZ//PGjxKPu4HHe3yc7cWfPU9+9hlRfZpSZyIH4gkGGezDecu9kGsSt+eGeoScy4R+Ry93v+oWfNozrDEIaiHXRD7DXkDONmzdY7oGbuAxPH/wEwphW49aD/MlAP40uv1I7bCf2a+KP+wF2p1f3pdBHHJfycnf43/AJwK37vPZnSygAAAABJRU5ErkJggg=="/>
5623
5623
  </svg>`;
5624
5624
  return { url: URL.createObjectURL(new Blob([b], { type: "image/svg+xml" })), viewBox: h, scale: v };
5625
5625
  },
5626
5626
  (s) => `${s.color},${s.isMoving},${s.designBeam ?? 0},${s.designLength ?? 0},${s.aisFromBow ?? 0},${s.aisFromCenter ?? 0}`
5627
5627
  );
5628
5628
  function createAlphaSampled(s) {
5629
- const i = new Cesium.SampledProperty(Cesium.Color), r = (s == null ? void 0 : s.startTime) ?? Cesium.JulianDate.now(), c = Cesium.JulianDate.addMinutes(r, 1, new Cesium.JulianDate()), m = Cesium.JulianDate.addMinutes(r, 5, new Cesium.JulianDate()), o = Cesium.JulianDate.fromIso8601("2100-01-01T00:00:00Z"), u = (s == null ? void 0 : s.color) ?? Cesium.Color.WHITE;
5630
- return i.addSample(r, u.withAlpha(1)), i.addSample(c, u.withAlpha(1)), i.addSample(m, u.withAlpha(0.2)), i.addSample(o, u.withAlpha(0.1)), i;
5629
+ const i = new Cesium.SampledProperty(Cesium.Color), r = (s == null ? void 0 : s.startTime) ?? Cesium.JulianDate.now(), l = Cesium.JulianDate.addMinutes(r, 1, new Cesium.JulianDate()), m = Cesium.JulianDate.addMinutes(r, 5, new Cesium.JulianDate()), o = Cesium.JulianDate.fromIso8601("2100-01-01T00:00:00Z"), u = (s == null ? void 0 : s.color) ?? Cesium.Color.WHITE;
5630
+ return i.addSample(r, u.withAlpha(1)), i.addSample(l, u.withAlpha(1)), i.addSample(m, u.withAlpha(0.2)), i.addSample(o, u.withAlpha(0.1)), i;
5631
5631
  }
5632
5632
  function getHideAfterFiveMinutesProperty(s) {
5633
5633
  const i = s ?? Cesium.JulianDate.now(), r = Cesium.JulianDate.addMinutes(i, 5, new Cesium.JulianDate());
5634
- return new Cesium.CallbackProperty((c) => c ? Cesium.JulianDate.lessThan(c, r) : !0, !1);
5634
+ return new Cesium.CallbackProperty((l) => l ? Cesium.JulianDate.lessThan(l, r) : !0, !1);
5635
5635
  }
5636
5636
  class ShipLayer {
5637
5637
  constructor(i, r) {
@@ -5656,19 +5656,19 @@ class ShipLayer {
5656
5656
  }
5657
5657
  /**渲染feature */
5658
5658
  renderFeature(i) {
5659
- var l, d;
5660
- const r = String(i.id), c = new Cesium.SampledPositionProperty(), m = Cesium.Cartesian3.fromDegrees(
5659
+ var c, d;
5660
+ const r = String(i.id), l = new Cesium.SampledPositionProperty(), m = Cesium.Cartesian3.fromDegrees(
5661
5661
  i.geometry.coordinates[0],
5662
5662
  i.geometry.coordinates[1]
5663
5663
  );
5664
- c.addSample(((l = this._viewer) == null ? void 0 : l.clock.currentTime) ?? Cesium.JulianDate.now(), m), c.addSample(
5664
+ l.addSample(((c = this._viewer) == null ? void 0 : c.clock.currentTime) ?? Cesium.JulianDate.now(), m), l.addSample(
5665
5665
  Cesium.JulianDate.fromIso8601("2100-01-01T00:00:00Z"),
5666
5666
  // 起始时间
5667
5667
  m
5668
5668
  );
5669
5669
  const o = ((d = i.properties) == null ? void 0 : d.courseOverGroundTrue) ?? 0, u = new Cesium.Entity({
5670
5670
  id: r,
5671
- position: c,
5671
+ position: l,
5672
5672
  orientation: Cesium.Transforms.headingPitchRollQuaternion(
5673
5673
  m,
5674
5674
  new Cesium.HeadingPitchRoll(o, 0, 0)
@@ -5679,10 +5679,10 @@ class ShipLayer {
5679
5679
  }
5680
5680
  /**更新or新增feature */
5681
5681
  update(i) {
5682
- var c, m, o, u, l;
5682
+ var l, m, o, u, c;
5683
5683
  const r = this.db.entities.getById(String(i.id));
5684
5684
  if (r) {
5685
- const [d, a] = i.geometry.coordinates, p = ((c = this._viewer) == null ? void 0 : c.clock.currentTime) ?? Cesium.JulianDate.now(), y = (m = r.position) == null ? void 0 : m.getValue(p), g = Cesium.JulianDate.addSeconds(p, 3, new Cesium.JulianDate()), h = Cesium.Cartesian3.fromDegrees(d, a), v = r.position;
5685
+ const [d, a] = i.geometry.coordinates, p = ((l = this._viewer) == null ? void 0 : l.clock.currentTime) ?? Cesium.JulianDate.now(), y = (m = r.position) == null ? void 0 : m.getValue(p), g = Cesium.JulianDate.addSeconds(p, 3, new Cesium.JulianDate()), h = Cesium.Cartesian3.fromDegrees(d, a), v = r.position;
5686
5686
  if (v instanceof Cesium.SampledPositionProperty) {
5687
5687
  for (let b = 0; b < 3; b++)
5688
5688
  r.position._property._values.pop();
@@ -5719,7 +5719,7 @@ class ShipLayer {
5719
5719
  }
5720
5720
  }
5721
5721
  if (b == "courseOverGroundTrue") {
5722
- const T = ((l = i.properties) == null ? void 0 : l.courseOverGroundTrue) ?? 0;
5722
+ const T = ((c = i.properties) == null ? void 0 : c.courseOverGroundTrue) ?? 0;
5723
5723
  r.billboard.rotation = new Cesium.ConstantProperty(
5724
5724
  typeof _ == "number" ? -1 * _ : 0
5725
5725
  ), r.orientation = new Cesium.ConstantProperty(
@@ -5744,20 +5744,20 @@ class ShipLayer {
5744
5744
  }
5745
5745
  // 判定移动的速度阈值(米/秒)
5746
5746
  renderEntity(i) {
5747
- var l, d, a, p, y, g, h;
5748
- const r = (l = i.properties) == null ? void 0 : l.getValue(), c = Number((r == null ? void 0 : r.speedOverGround) ?? 0), m = r != null && r.updateTime ? new Date(r.updateTime) : /* @__PURE__ */ new Date(), o = Cesium.JulianDate.fromDate(m), u = createShipIconUrl("yellow", c > this.IS_MOVING_THRESHOLD);
5747
+ var c, d, a, p, y, g, h;
5748
+ const r = (c = i.properties) == null ? void 0 : c.getValue(), l = Number((r == null ? void 0 : r.speedOverGround) ?? 0), m = r != null && r.updateTime ? new Date(r.updateTime) : /* @__PURE__ */ new Date(), o = Cesium.JulianDate.fromDate(m), u = createShipIconUrl("yellow", l > this.IS_MOVING_THRESHOLD);
5749
5749
  i.point = new Cesium.PointGraphics({
5750
5750
  pixelSize: 4,
5751
5751
  color: Cesium.Color.fromCssColorString("#8AF22C"),
5752
5752
  disableDepthTestDistance: 3e6,
5753
- distanceDisplayCondition: new Cesium.DistanceDisplayCondition(1e4),
5753
+ distanceDisplayCondition: new Cesium.DistanceDisplayCondition(15e3),
5754
5754
  show: getHideAfterFiveMinutesProperty(o)
5755
5755
  }), i.billboard = new Cesium.BillboardGraphics({
5756
5756
  image: u,
5757
- width: 20,
5758
- height: 120,
5757
+ width: 14,
5758
+ height: 70,
5759
5759
  disableDepthTestDistance: 3e6,
5760
- distanceDisplayCondition: new Cesium.DistanceDisplayCondition(3e3, 1e4),
5760
+ distanceDisplayCondition: new Cesium.DistanceDisplayCondition(4e3, 15e3),
5761
5761
  pixelOffset: new Cesium.Cartesian2(0, 0),
5762
5762
  alignedAxis: Cesium.Cartesian3.UNIT_Z,
5763
5763
  color: createAlphaSampled({ startTime: o }),
@@ -5780,37 +5780,36 @@ class ShipLayer {
5780
5780
  scaleByDistance: new Cesium.NearFarScalar(3e3, 1, 1e4, 0.55),
5781
5781
  text: ((y = (p = i.properties) == null ? void 0 : p.getValue()) == null ? void 0 : y.name) ?? ((g = i.properties) != null && g.getValue().mmsi ? "mmsi:" + ((h = i.properties) == null ? void 0 : h.getValue().mmsi) : "未知"),
5782
5782
  horizontalOrigin: Cesium.HorizontalOrigin.CENTER,
5783
- distanceDisplayCondition: new Cesium.DistanceDisplayCondition(0, 1e4),
5783
+ distanceDisplayCondition: new Cesium.DistanceDisplayCondition(0, 15e3),
5784
5784
  disableDepthTestDistance: 5e3,
5785
5785
  show: getHideAfterFiveMinutesProperty(o)
5786
5786
  }), this.createShipPlane(i);
5787
5787
  }
5788
5788
  createShipPlane(i) {
5789
- var l;
5790
- const r = (l = i.properties) == null ? void 0 : l.getValue(), c = Number((r == null ? void 0 : r.speedOverGround) ?? 0), m = (r == null ? void 0 : r.designLength) ?? 20, o = (r == null ? void 0 : r.designBeam) ?? 8, u = createShipIconV2({
5789
+ var a;
5790
+ const r = (a = i.properties) == null ? void 0 : a.getValue(), l = r != null && r.updateTime ? new Date(r.updateTime) : /* @__PURE__ */ new Date(), m = Cesium.JulianDate.fromDate(l), o = Number((r == null ? void 0 : r.speedOverGround) ?? 0), u = (r == null ? void 0 : r.designLength) ?? 20, c = (r == null ? void 0 : r.designBeam) ?? 8, d = createShipIconV2({
5791
5791
  color: "yellow",
5792
- isMoving: c > this.IS_MOVING_THRESHOLD,
5792
+ isMoving: o > this.IS_MOVING_THRESHOLD,
5793
5793
  ...r,
5794
5794
  designBeam: (r == null ? void 0 : r.designBeam) ?? 8,
5795
5795
  designLength: (r == null ? void 0 : r.designLength) ?? 20
5796
5796
  });
5797
5797
  i.plane = new Cesium.PlaneGraphics({
5798
5798
  plane: new Cesium.Plane(Cesium.Cartesian3.UNIT_Z, 0),
5799
- dimensions: new Cesium.Cartesian2(o * u.scale.x, m * u.scale.y),
5799
+ dimensions: new Cesium.Cartesian2(c * d.scale.x, u * d.scale.y),
5800
5800
  show: new Cesium.CallbackProperty(() => {
5801
- var y;
5801
+ var h;
5802
5802
  if (!this._viewer) return !0;
5803
- const d = this._viewer.clock.currentTime, a = (y = i.position) == null ? void 0 : y.getValue(d);
5804
- return a ? Cesium.Cartesian3.distance(this._viewer.camera.positionWC, a) <= 3e3 : !1;
5803
+ const p = this._viewer.clock.currentTime, y = (h = i.position) == null ? void 0 : h.getValue(p);
5804
+ return y ? Cesium.Cartesian3.distance(this._viewer.camera.positionWC, y) <= 4e3 : !1;
5805
5805
  }, !1),
5806
5806
  // 用回调按距离控制显示
5807
5807
  material: new Cesium.ImageMaterialProperty({
5808
- image: u.url,
5808
+ image: d.url,
5809
5809
  transparent: !0,
5810
5810
  // 关键:让 alpha 生效
5811
5811
  repeat: new Cesium.Cartesian2(1, 1),
5812
- color: Cesium.Color.WHITE
5813
- // 保持原图颜色与 alpha,不要设置不透明的 alpha
5812
+ color: createAlphaSampled({ startTime: m })
5814
5813
  })
5815
5814
  });
5816
5815
  }
@@ -5822,17 +5821,17 @@ new Array(4);
5822
5821
  var e$2 = [], t$2 = [];
5823
5822
  function n$2(s, i) {
5824
5823
  if (s && typeof document < "u") {
5825
- var r, c = i.prepend === !0 ? "prepend" : "append", m = i.singleTag === !0, o = typeof i.container == "string" ? document.querySelector(i.container) : document.getElementsByTagName("head")[0];
5824
+ var r, l = i.prepend === !0 ? "prepend" : "append", m = i.singleTag === !0, o = typeof i.container == "string" ? document.querySelector(i.container) : document.getElementsByTagName("head")[0];
5826
5825
  if (m) {
5827
5826
  var u = e$2.indexOf(o);
5828
- u === -1 && (u = e$2.push(o) - 1, t$2[u] = {}), r = t$2[u] && t$2[u][c] ? t$2[u][c] : t$2[u][c] = l();
5829
- } else r = l();
5827
+ u === -1 && (u = e$2.push(o) - 1, t$2[u] = {}), r = t$2[u] && t$2[u][l] ? t$2[u][l] : t$2[u][l] = c();
5828
+ } else r = c();
5830
5829
  s.charCodeAt(0) === 65279 && (s = s.substring(1)), r.styleSheet ? r.styleSheet.cssText += s : r.appendChild(document.createTextNode(s));
5831
5830
  }
5832
- function l() {
5831
+ function c() {
5833
5832
  var d = document.createElement("style");
5834
5833
  if (d.setAttribute("type", "text/css"), i.attributes) for (var a = Object.keys(i.attributes), p = 0; p < a.length; p++) d.setAttribute(a[p], i.attributes[a[p]]);
5835
- var y = c === "prepend" ? "afterbegin" : "beforeend";
5834
+ var y = l === "prepend" ? "afterbegin" : "beforeend";
5836
5835
  return o.insertAdjacentElement(y, d), d;
5837
5836
  }
5838
5837
  }
@@ -5855,11 +5854,11 @@ class Popup {
5855
5854
  z(this, "setPosition", () => {
5856
5855
  if (this._position && this._viewer && this._position) {
5857
5856
  if (this._viewer.scene.mode === SceneMode.SCENE3D) {
5858
- const c = this._viewer.scene.camera.position, m = new BoundingSphere(
5857
+ const l = this._viewer.scene.camera.position, m = new BoundingSphere(
5859
5858
  new Cartesian3(0, 0, 0),
5860
5859
  635e4
5861
5860
  );
5862
- if (!new Occluder(m, c).isPointVisible(this._position)) {
5861
+ if (!new Occluder(m, l).isPointVisible(this._position)) {
5863
5862
  this.switchElementShow(!1);
5864
5863
  return;
5865
5864
  }
@@ -5872,16 +5871,16 @@ class Popup {
5872
5871
  if (this._screenPosition && this._screenPosition.x === i.x && this._screenPosition.y === i.y)
5873
5872
  return;
5874
5873
  this.switchElementShow(!0);
5875
- const c = i.x - r.clientWidth / 2 + this._offset[0], m = i.y - r.clientHeight + this._offset[1];
5876
- r.style.left = `${c}px`, r.style.top = `${m}px`, this._screenPosition = i;
5874
+ const l = i.x - r.clientWidth / 2 + this._offset[0], m = i.y - r.clientHeight + this._offset[1];
5875
+ r.style.left = `${l}px`, r.style.top = `${m}px`, this._screenPosition = i;
5877
5876
  }
5878
5877
  }
5879
5878
  });
5880
5879
  this._viewer = i, this._options = r;
5881
- const { position: c, element: m, offset: o } = r;
5880
+ const { position: l, element: m, offset: o } = r;
5882
5881
  if (!m)
5883
5882
  throw Error("no element!");
5884
- this._position = c ? Cartesian3.fromDegrees(c[0], c[1], c[2]) : null, this._element = m, this._offset = [(o == null ? void 0 : o[0]) ?? 0, (o == null ? void 0 : o[1]) ?? 0], this.addMapListener();
5883
+ this._position = l ? Cartesian3.fromDegrees(l[0], l[1], l[2]) : null, this._element = m, this._offset = [(o == null ? void 0 : o[0]) ?? 0, (o == null ? void 0 : o[1]) ?? 0], this.addMapListener();
5885
5884
  }
5886
5885
  set position(i) {
5887
5886
  if (!i) {
@@ -5913,17 +5912,17 @@ class Popup {
5913
5912
  var e$1 = [], t$1 = [];
5914
5913
  function n$1(s, i) {
5915
5914
  if (s && typeof document < "u") {
5916
- var r, c = i.prepend === !0 ? "prepend" : "append", m = i.singleTag === !0, o = typeof i.container == "string" ? document.querySelector(i.container) : document.getElementsByTagName("head")[0];
5915
+ var r, l = i.prepend === !0 ? "prepend" : "append", m = i.singleTag === !0, o = typeof i.container == "string" ? document.querySelector(i.container) : document.getElementsByTagName("head")[0];
5917
5916
  if (m) {
5918
5917
  var u = e$1.indexOf(o);
5919
- u === -1 && (u = e$1.push(o) - 1, t$1[u] = {}), r = t$1[u] && t$1[u][c] ? t$1[u][c] : t$1[u][c] = l();
5920
- } else r = l();
5918
+ u === -1 && (u = e$1.push(o) - 1, t$1[u] = {}), r = t$1[u] && t$1[u][l] ? t$1[u][l] : t$1[u][l] = c();
5919
+ } else r = c();
5921
5920
  s.charCodeAt(0) === 65279 && (s = s.substring(1)), r.styleSheet ? r.styleSheet.cssText += s : r.appendChild(document.createTextNode(s));
5922
5921
  }
5923
- function l() {
5922
+ function c() {
5924
5923
  var d = document.createElement("style");
5925
5924
  if (d.setAttribute("type", "text/css"), i.attributes) for (var a = Object.keys(i.attributes), p = 0; p < a.length; p++) d.setAttribute(a[p], i.attributes[a[p]]);
5926
- var y = c === "prepend" ? "afterbegin" : "beforeend";
5925
+ var y = l === "prepend" ? "afterbegin" : "beforeend";
5927
5926
  return o.insertAdjacentElement(y, d), d;
5928
5927
  }
5929
5928
  }
@@ -5932,17 +5931,17 @@ n$1(css$1, {});
5932
5931
  var e = [], t = [];
5933
5932
  function n(s, i) {
5934
5933
  if (s && typeof document < "u") {
5935
- var r, c = i.prepend === !0 ? "prepend" : "append", m = i.singleTag === !0, o = typeof i.container == "string" ? document.querySelector(i.container) : document.getElementsByTagName("head")[0];
5934
+ var r, l = i.prepend === !0 ? "prepend" : "append", m = i.singleTag === !0, o = typeof i.container == "string" ? document.querySelector(i.container) : document.getElementsByTagName("head")[0];
5936
5935
  if (m) {
5937
5936
  var u = e.indexOf(o);
5938
- u === -1 && (u = e.push(o) - 1, t[u] = {}), r = t[u] && t[u][c] ? t[u][c] : t[u][c] = l();
5939
- } else r = l();
5937
+ u === -1 && (u = e.push(o) - 1, t[u] = {}), r = t[u] && t[u][l] ? t[u][l] : t[u][l] = c();
5938
+ } else r = c();
5940
5939
  s.charCodeAt(0) === 65279 && (s = s.substring(1)), r.styleSheet ? r.styleSheet.cssText += s : r.appendChild(document.createTextNode(s));
5941
5940
  }
5942
- function l() {
5941
+ function c() {
5943
5942
  var d = document.createElement("style");
5944
5943
  if (d.setAttribute("type", "text/css"), i.attributes) for (var a = Object.keys(i.attributes), p = 0; p < a.length; p++) d.setAttribute(a[p], i.attributes[a[p]]);
5945
- var y = c === "prepend" ? "afterbegin" : "beforeend";
5944
+ var y = l === "prepend" ? "afterbegin" : "beforeend";
5946
5945
  return o.insertAdjacentElement(y, d), d;
5947
5946
  }
5948
5947
  }
@@ -5951,8 +5950,8 @@ n(css, {});
5951
5950
  var heatmap$1 = { exports: {} }, heatmap = heatmap$1.exports, hasRequiredHeatmap;
5952
5951
  function requireHeatmap() {
5953
5952
  return hasRequiredHeatmap || (hasRequiredHeatmap = 1, function(s) {
5954
- (function(i, r, c) {
5955
- s.exports ? s.exports = c() : r[i] = c();
5953
+ (function(i, r, l) {
5954
+ s.exports ? s.exports = l() : r[i] = l();
5956
5955
  })("h337", heatmap, function() {
5957
5956
  var i = {
5958
5957
  defaultRadius: 40,
@@ -6089,7 +6088,7 @@ function requireHeatmap() {
6089
6088
  return false;
6090
6089
  }*/
6091
6090
  }, a;
6092
- }(), c = function() {
6091
+ }(), l = function() {
6093
6092
  var a = function(h) {
6094
6093
  var v = h.gradient || h.defaultGradient, b = document.createElement("canvas"), _ = b.getContext("2d", { willReadFrequently: !0 });
6095
6094
  b.width = 256, b.height = 1;
@@ -6181,7 +6180,7 @@ function requireHeatmap() {
6181
6180
  }, g;
6182
6181
  }(), m = function() {
6183
6182
  var a = !1;
6184
- return i.defaultRenderer === "canvas2d" && (a = c), a;
6183
+ return i.defaultRenderer === "canvas2d" && (a = l), a;
6185
6184
  }(), o = {
6186
6185
  merge: function() {
6187
6186
  for (var d = {}, a = arguments.length, p = 0; p < a; p++) {
@@ -6267,7 +6266,7 @@ function requireHeatmap() {
6267
6266
  return this._store.getValueAt ? this._store.getValueAt(g) : this._renderer.getValueAt ? this._renderer.getValueAt(g) : null;
6268
6267
  }
6269
6268
  }, y;
6270
- }(), l = {
6269
+ }(), c = {
6271
6270
  create: function(d) {
6272
6271
  return new u(d);
6273
6272
  },
@@ -6275,7 +6274,7 @@ function requireHeatmap() {
6275
6274
  i.plugins[d] = a;
6276
6275
  }
6277
6276
  };
6278
- return l;
6277
+ return c;
6279
6278
  });
6280
6279
  }(heatmap$1)), heatmap$1.exports;
6281
6280
  }
@@ -6289,17 +6288,17 @@ const G = class G extends EventEmitter {
6289
6288
  return G.instance || (G.instance = new G()), G.instance;
6290
6289
  }
6291
6290
  popup(r) {
6292
- var l;
6293
- const c = r.element;
6294
- c.style.position = "absolute";
6291
+ var c;
6292
+ const l = r.element;
6293
+ l.style.position = "absolute";
6295
6294
  const m = r.viewer.container, o = () => {
6296
- u && (u.destroy(), m.removeChild(c), this.popupMap.delete(r.id), this.emit("onUnmount", r.id));
6295
+ u && (u.destroy(), m.removeChild(l), this.popupMap.delete(r.id), this.emit("onUnmount", r.id));
6297
6296
  };
6298
- m.appendChild(c), this.emit("onMount", r.id), (l = this.popupMap.get(r.id)) == null || l.destroy();
6297
+ m.appendChild(l), this.emit("onMount", r.id), (c = this.popupMap.get(r.id)) == null || c.destroy();
6299
6298
  const u = new Popup(r.viewer, {
6300
6299
  position: r.position,
6301
6300
  offset: r.offset ?? [0, 0],
6302
- element: c
6301
+ element: l
6303
6302
  });
6304
6303
  this.popupMap.set(r.id, {
6305
6304
  popup: u,
@@ -6307,8 +6306,8 @@ const G = class G extends EventEmitter {
6307
6306
  });
6308
6307
  }
6309
6308
  close(r) {
6310
- const c = this.popupMap.get(r);
6311
- c && (c.destroy(), this.popupMap.delete(r), this.emit("onUnmount", r));
6309
+ const l = this.popupMap.get(r);
6310
+ l && (l.destroy(), this.popupMap.delete(r), this.emit("onUnmount", r));
6312
6311
  }
6313
6312
  closeAll() {
6314
6313
  this.popupMap.forEach((r) => r.destroy()), this.popupMap.clear();
@@ -6343,8 +6342,8 @@ function ListenLeftClick(s) {
6343
6342
  if (memoizeMap.has(s))
6344
6343
  return memoizeMap.get(s);
6345
6344
  const i = new EventEmitter();
6346
- return new Cesium.ScreenSpaceEventHandler(s.scene.canvas).setInputAction((c) => {
6347
- i.emit("click", c);
6345
+ return new Cesium.ScreenSpaceEventHandler(s.scene.canvas).setInputAction((l) => {
6346
+ i.emit("click", l);
6348
6347
  }, Cesium.ScreenSpaceEventType.LEFT_CLICK), memoizeMap.set(s, i), i;
6349
6348
  }
6350
6349
  export {