@glandais/vcyclist-engine 6.2.0 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fit-kotlin-sdk.js +3734 -3734
- package/kotlin-kotlin-stdlib.js +21 -21
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +3 -3
- package/package.json +1 -1
- package/vcyclist-elevation.js +686 -685
- package/vcyclist-elevation.js.map +1 -1
- package/vcyclist-engine.js +1435 -1432
- package/vcyclist-engine.js.map +1 -1
- package/vcyclist-fit.js +187 -187
- package/vcyclist-gpx.js +1142 -1141
- package/vcyclist-gpx.js.map +1 -1
- package/xmlutil-core.js +2393 -2393
package/vcyclist-elevation.js
CHANGED
|
@@ -175,8 +175,8 @@
|
|
|
175
175
|
initMetadataForLambda(pacedTileBytesFetcher$slambda, CoroutineImpl, VOID, [1]);
|
|
176
176
|
initMetadataForClass(TileCoordinates, 'TileCoordinates');
|
|
177
177
|
initMetadataForClass(Pixel, 'Pixel');
|
|
178
|
-
initMetadataForClass(PixelFloat, 'PixelFloat');
|
|
179
178
|
initMetadataForClass(TileCoordinatesFloat, 'TileCoordinatesFloat');
|
|
179
|
+
initMetadataForClass(PixelFloat, 'PixelFloat');
|
|
180
180
|
initMetadataForCompanion(Companion_1);
|
|
181
181
|
initMetadataForClass(Vector3D, 'Vector3D');
|
|
182
182
|
initMetadataForLambda(getElevation$slambda, CoroutineImpl, VOID, [1]);
|
|
@@ -353,8 +353,8 @@
|
|
|
353
353
|
var i = index;
|
|
354
354
|
index = index + 1 | 0;
|
|
355
355
|
var p = iterator.n();
|
|
356
|
-
var tile = ElevationFunctions_instance.
|
|
357
|
-
var key = '' + tile.
|
|
356
|
+
var tile = ElevationFunctions_instance.yz(p, this.sz_1);
|
|
357
|
+
var key = '' + tile.b10_1 + '/' + tile.zz_1 + '/' + tile.a10_1;
|
|
358
358
|
var value = byTile.q1(key);
|
|
359
359
|
var tmp_1;
|
|
360
360
|
if (value == null) {
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
this.g7_1 = 1;
|
|
371
371
|
var tmp_2 = Flux_instance;
|
|
372
372
|
var tmp_3 = byTile.t1();
|
|
373
|
-
suspendResult = tmp_2.
|
|
373
|
+
suspendResult = tmp_2.c10(tmp_3, this.uz_1, BatchCalculator$setElevations$slambda_0(this.rz_1, this.qz_1, this.sz_1, this.tz_1, this.vz_1, null), this);
|
|
374
374
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
375
375
|
return suspendResult;
|
|
376
376
|
}
|
|
@@ -395,14 +395,14 @@
|
|
|
395
395
|
};
|
|
396
396
|
function $getElevationsAlongCOROUTINE$(_this__u8e3s4, path, zoomLevel, step, minDistance, interpolation, smoothingOptions, filterOptions, resultContinuation) {
|
|
397
397
|
CoroutineImpl.call(this, resultContinuation);
|
|
398
|
-
this.
|
|
399
|
-
this.
|
|
400
|
-
this.
|
|
401
|
-
this.
|
|
402
|
-
this.
|
|
403
|
-
this.
|
|
404
|
-
this.
|
|
405
|
-
this.
|
|
398
|
+
this.l10_1 = _this__u8e3s4;
|
|
399
|
+
this.m10_1 = path;
|
|
400
|
+
this.n10_1 = zoomLevel;
|
|
401
|
+
this.o10_1 = step;
|
|
402
|
+
this.p10_1 = minDistance;
|
|
403
|
+
this.q10_1 = interpolation;
|
|
404
|
+
this.r10_1 = smoothingOptions;
|
|
405
|
+
this.s10_1 = filterOptions;
|
|
406
406
|
}
|
|
407
407
|
protoOf($getElevationsAlongCOROUTINE$).o7 = function () {
|
|
408
408
|
var suspendResult = this.i7_1;
|
|
@@ -412,19 +412,19 @@
|
|
|
412
412
|
switch (tmp) {
|
|
413
413
|
case 0:
|
|
414
414
|
this.h7_1 = 2;
|
|
415
|
-
if (!(this.
|
|
415
|
+
if (!(this.m10_1.o() >= 2)) {
|
|
416
416
|
var message = 'Path must contain at least 2 coordinates';
|
|
417
417
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
418
418
|
}
|
|
419
419
|
|
|
420
|
-
if (!(this.
|
|
421
|
-
var message_0 = 'Step is too small: ' + formatNumber(this.
|
|
420
|
+
if (!(this.o10_1 > 1.0)) {
|
|
421
|
+
var message_0 = 'Step is too small: ' + formatNumber(this.l10_1, this.o10_1) + ' meters';
|
|
422
422
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
423
423
|
}
|
|
424
424
|
|
|
425
|
-
var densified = this.
|
|
425
|
+
var densified = this.l10_1.t10(this.m10_1, this.o10_1, this.p10_1);
|
|
426
426
|
this.g7_1 = 1;
|
|
427
|
-
suspendResult = this.
|
|
427
|
+
suspendResult = this.l10_1.u10(densified, this.n10_1, this.q10_1, VOID, this);
|
|
428
428
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
429
429
|
return suspendResult;
|
|
430
430
|
}
|
|
@@ -433,7 +433,7 @@
|
|
|
433
433
|
case 1:
|
|
434
434
|
var withElevation = suspendResult;
|
|
435
435
|
var tmp_0;
|
|
436
|
-
var tmp1_safe_receiver = this.
|
|
436
|
+
var tmp1_safe_receiver = this.r10_1;
|
|
437
437
|
if ((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ey_1) === true) {
|
|
438
438
|
tmp_0 = withElevation.o() >= 3;
|
|
439
439
|
} else {
|
|
@@ -443,12 +443,12 @@
|
|
|
443
443
|
if (tmp_0) {
|
|
444
444
|
var tmp_1 = ElevationSmoother_instance;
|
|
445
445
|
var tmp_2 = withElevation;
|
|
446
|
-
var tmp0_elvis_lhs = this.
|
|
447
|
-
withElevation = tmp_1.
|
|
446
|
+
var tmp0_elvis_lhs = this.r10_1.dy_1;
|
|
447
|
+
withElevation = tmp_1.v10(tmp_2, tmp0_elvis_lhs == null ? 50.0 : tmp0_elvis_lhs);
|
|
448
448
|
}
|
|
449
449
|
|
|
450
450
|
var tmp_3;
|
|
451
|
-
var tmp4_safe_receiver = this.
|
|
451
|
+
var tmp4_safe_receiver = this.s10_1;
|
|
452
452
|
if ((tmp4_safe_receiver == null ? null : tmp4_safe_receiver.hy_1) === true) {
|
|
453
453
|
tmp_3 = withElevation.o() > 2;
|
|
454
454
|
} else {
|
|
@@ -458,10 +458,10 @@
|
|
|
458
458
|
if (tmp_3) {
|
|
459
459
|
var tmp_4 = DouglasPeucker_instance;
|
|
460
460
|
var tmp_5 = withElevation;
|
|
461
|
-
var tmp2_elvis_lhs = this.
|
|
461
|
+
var tmp2_elvis_lhs = this.s10_1.fy_1;
|
|
462
462
|
var tmp_6 = tmp2_elvis_lhs == null ? 10.0 : tmp2_elvis_lhs;
|
|
463
|
-
var tmp3_elvis_lhs = this.
|
|
464
|
-
withElevation = tmp_4.
|
|
463
|
+
var tmp3_elvis_lhs = this.s10_1.gy_1;
|
|
464
|
+
withElevation = tmp_4.w10(tmp_5, tmp_6, tmp3_elvis_lhs == null ? 3.0 : tmp3_elvis_lhs);
|
|
465
465
|
}
|
|
466
466
|
|
|
467
467
|
return withElevation;
|
|
@@ -482,23 +482,23 @@
|
|
|
482
482
|
function BatchCalculator(calculator) {
|
|
483
483
|
this.bz_1 = calculator;
|
|
484
484
|
}
|
|
485
|
-
protoOf(BatchCalculator).
|
|
485
|
+
protoOf(BatchCalculator).x10 = function (coordinates, zoomLevel, interpolation, maxParallelTiles, $completion) {
|
|
486
486
|
var tmp = new $setElevationsCOROUTINE$(this, coordinates, zoomLevel, interpolation, maxParallelTiles, $completion);
|
|
487
487
|
tmp.i7_1 = Unit_instance;
|
|
488
488
|
tmp.j7_1 = null;
|
|
489
489
|
return tmp.o7();
|
|
490
490
|
};
|
|
491
|
-
protoOf(BatchCalculator).
|
|
491
|
+
protoOf(BatchCalculator).u10 = function (coordinates, zoomLevel, interpolation, maxParallelTiles, $completion, $super) {
|
|
492
492
|
maxParallelTiles = maxParallelTiles === VOID ? 10 : maxParallelTiles;
|
|
493
|
-
return $super === VOID ? this.
|
|
493
|
+
return $super === VOID ? this.x10(coordinates, zoomLevel, interpolation, maxParallelTiles, $completion) : $super.x10.call(this, coordinates, zoomLevel, interpolation, maxParallelTiles, $completion);
|
|
494
494
|
};
|
|
495
|
-
protoOf(BatchCalculator).
|
|
495
|
+
protoOf(BatchCalculator).y10 = function (path, zoomLevel, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion) {
|
|
496
496
|
var tmp = new $getElevationsAlongCOROUTINE$(this, path, zoomLevel, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion);
|
|
497
497
|
tmp.i7_1 = Unit_instance;
|
|
498
498
|
tmp.j7_1 = null;
|
|
499
499
|
return tmp.o7();
|
|
500
500
|
};
|
|
501
|
-
protoOf(BatchCalculator).
|
|
501
|
+
protoOf(BatchCalculator).t10 = function (path, step, minDistance) {
|
|
502
502
|
if (path.q())
|
|
503
503
|
return emptyList();
|
|
504
504
|
var out = ArrayList_init_$Create$_0(imul(path.o(), 2));
|
|
@@ -513,10 +513,10 @@
|
|
|
513
513
|
var i = inductionVariable;
|
|
514
514
|
inductionVariable = inductionVariable + 1 | 0;
|
|
515
515
|
var b = path.p(i);
|
|
516
|
-
var d = Distance_instance.
|
|
516
|
+
var d = Distance_instance.z10(anchor, b);
|
|
517
517
|
if (d < minDistance)
|
|
518
518
|
continue $l$loop;
|
|
519
|
-
var between = this.
|
|
519
|
+
var between = this.a11(anchor, b, step, d);
|
|
520
520
|
var inductionVariable_0 = 1;
|
|
521
521
|
var last_0 = between.o();
|
|
522
522
|
if (inductionVariable_0 < last_0)
|
|
@@ -533,7 +533,7 @@
|
|
|
533
533
|
while (inductionVariable < last);
|
|
534
534
|
return out;
|
|
535
535
|
};
|
|
536
|
-
protoOf(BatchCalculator).
|
|
536
|
+
protoOf(BatchCalculator).a11 = function (a, b, step, distance) {
|
|
537
537
|
if (distance <= step)
|
|
538
538
|
return listOf([a, b]);
|
|
539
539
|
var numSteps = numberToInt(distance / step);
|
|
@@ -641,26 +641,26 @@
|
|
|
641
641
|
}
|
|
642
642
|
function LatLon(latitude, longitude, elevation) {
|
|
643
643
|
elevation = elevation === VOID ? null : elevation;
|
|
644
|
-
this.
|
|
645
|
-
this.
|
|
646
|
-
this.
|
|
644
|
+
this.b11_1 = latitude;
|
|
645
|
+
this.c11_1 = longitude;
|
|
646
|
+
this.d11_1 = elevation;
|
|
647
647
|
}
|
|
648
648
|
protoOf(LatLon).gz = function () {
|
|
649
|
-
return this.
|
|
649
|
+
return this.b11_1;
|
|
650
650
|
};
|
|
651
651
|
protoOf(LatLon).hz = function () {
|
|
652
|
-
return this.
|
|
652
|
+
return this.c11_1;
|
|
653
653
|
};
|
|
654
|
-
protoOf(LatLon).
|
|
655
|
-
return this.
|
|
654
|
+
protoOf(LatLon).e11 = function () {
|
|
655
|
+
return this.d11_1;
|
|
656
656
|
};
|
|
657
657
|
protoOf(LatLon).toString = function () {
|
|
658
|
-
return 'LatLon(latitude=' + this.
|
|
658
|
+
return 'LatLon(latitude=' + this.b11_1 + ', longitude=' + this.c11_1 + ', elevation=' + this.d11_1 + ')';
|
|
659
659
|
};
|
|
660
660
|
protoOf(LatLon).hashCode = function () {
|
|
661
|
-
var result = getNumberHashCode(this.
|
|
662
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
663
|
-
result = imul(result, 31) + (this.
|
|
661
|
+
var result = getNumberHashCode(this.b11_1);
|
|
662
|
+
result = imul(result, 31) + getNumberHashCode(this.c11_1) | 0;
|
|
663
|
+
result = imul(result, 31) + (this.d11_1 == null ? 0 : getNumberHashCode(this.d11_1)) | 0;
|
|
664
664
|
return result;
|
|
665
665
|
};
|
|
666
666
|
protoOf(LatLon).equals = function (other) {
|
|
@@ -668,37 +668,37 @@
|
|
|
668
668
|
return true;
|
|
669
669
|
if (!(other instanceof LatLon))
|
|
670
670
|
return false;
|
|
671
|
-
if (!equals(this.
|
|
671
|
+
if (!equals(this.b11_1, other.b11_1))
|
|
672
672
|
return false;
|
|
673
|
-
if (!equals(this.
|
|
673
|
+
if (!equals(this.c11_1, other.c11_1))
|
|
674
674
|
return false;
|
|
675
|
-
if (!equals(this.
|
|
675
|
+
if (!equals(this.d11_1, other.d11_1))
|
|
676
676
|
return false;
|
|
677
677
|
return true;
|
|
678
678
|
};
|
|
679
679
|
function Coordinates() {
|
|
680
680
|
}
|
|
681
681
|
function LatLonElevation(latitude, longitude, elevation) {
|
|
682
|
-
this.
|
|
683
|
-
this.
|
|
684
|
-
this.
|
|
682
|
+
this.f11_1 = latitude;
|
|
683
|
+
this.g11_1 = longitude;
|
|
684
|
+
this.h11_1 = elevation;
|
|
685
685
|
}
|
|
686
686
|
protoOf(LatLonElevation).gz = function () {
|
|
687
|
-
return this.
|
|
687
|
+
return this.f11_1;
|
|
688
688
|
};
|
|
689
689
|
protoOf(LatLonElevation).hz = function () {
|
|
690
|
-
return this.
|
|
690
|
+
return this.g11_1;
|
|
691
691
|
};
|
|
692
|
-
protoOf(LatLonElevation).
|
|
693
|
-
return this.
|
|
692
|
+
protoOf(LatLonElevation).e11 = function () {
|
|
693
|
+
return this.h11_1;
|
|
694
694
|
};
|
|
695
695
|
protoOf(LatLonElevation).toString = function () {
|
|
696
|
-
return 'LatLonElevation(latitude=' + this.
|
|
696
|
+
return 'LatLonElevation(latitude=' + this.f11_1 + ', longitude=' + this.g11_1 + ', elevation=' + this.h11_1 + ')';
|
|
697
697
|
};
|
|
698
698
|
protoOf(LatLonElevation).hashCode = function () {
|
|
699
|
-
var result = getNumberHashCode(this.
|
|
700
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
701
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
699
|
+
var result = getNumberHashCode(this.f11_1);
|
|
700
|
+
result = imul(result, 31) + getNumberHashCode(this.g11_1) | 0;
|
|
701
|
+
result = imul(result, 31) + getNumberHashCode(this.h11_1) | 0;
|
|
702
702
|
return result;
|
|
703
703
|
};
|
|
704
704
|
protoOf(LatLonElevation).equals = function (other) {
|
|
@@ -706,17 +706,17 @@
|
|
|
706
706
|
return true;
|
|
707
707
|
if (!(other instanceof LatLonElevation))
|
|
708
708
|
return false;
|
|
709
|
-
if (!equals(this.
|
|
709
|
+
if (!equals(this.f11_1, other.f11_1))
|
|
710
710
|
return false;
|
|
711
|
-
if (!equals(this.
|
|
711
|
+
if (!equals(this.g11_1, other.g11_1))
|
|
712
712
|
return false;
|
|
713
|
-
if (!equals(this.
|
|
713
|
+
if (!equals(this.h11_1, other.h11_1))
|
|
714
714
|
return false;
|
|
715
715
|
return true;
|
|
716
716
|
};
|
|
717
717
|
function Distance() {
|
|
718
718
|
}
|
|
719
|
-
protoOf(Distance).
|
|
719
|
+
protoOf(Distance).z10 = function (coord1, coord2) {
|
|
720
720
|
var lat1Rad = coord1.gz() * 0.017453292519943295;
|
|
721
721
|
var lat2Rad = coord2.gz() * 0.017453292519943295;
|
|
722
722
|
var deltaLat = (coord2.gz() - coord1.gz()) * 0.017453292519943295;
|
|
@@ -742,7 +742,7 @@
|
|
|
742
742
|
var c = 2.0 * Math.atan2(tmp0, x_2);
|
|
743
743
|
return 6371000.0 * c;
|
|
744
744
|
};
|
|
745
|
-
protoOf(Distance).
|
|
745
|
+
protoOf(Distance).i11 = function (points) {
|
|
746
746
|
if (points.q()) {
|
|
747
747
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
748
748
|
return new Float64Array([0.0]);
|
|
@@ -754,7 +754,7 @@
|
|
|
754
754
|
do {
|
|
755
755
|
var i = inductionVariable;
|
|
756
756
|
inductionVariable = inductionVariable + 1 | 0;
|
|
757
|
-
out[i] = out[i - 1 | 0] + this.
|
|
757
|
+
out[i] = out[i - 1 | 0] + this.z10(points.p(i - 1 | 0), points.p(i));
|
|
758
758
|
}
|
|
759
759
|
while (inductionVariable < last);
|
|
760
760
|
return out;
|
|
@@ -773,7 +773,7 @@
|
|
|
773
773
|
do {
|
|
774
774
|
var i = inductionVariable;
|
|
775
775
|
inductionVariable = inductionVariable + 1 | 0;
|
|
776
|
-
var d = points.p(i).
|
|
776
|
+
var d = points.p(i).m11(first, last);
|
|
777
777
|
if (d > maxDistance) {
|
|
778
778
|
maxDistance = d;
|
|
779
779
|
maxIndex = i;
|
|
@@ -792,7 +792,7 @@
|
|
|
792
792
|
}
|
|
793
793
|
function DouglasPeucker() {
|
|
794
794
|
}
|
|
795
|
-
protoOf(DouglasPeucker).
|
|
795
|
+
protoOf(DouglasPeucker).w10 = function (points, tolerance, zExaggeration) {
|
|
796
796
|
if (points.o() <= 2)
|
|
797
797
|
return toList_0(points);
|
|
798
798
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -801,12 +801,12 @@
|
|
|
801
801
|
var _iterator__ex2g4s = points.l();
|
|
802
802
|
while (_iterator__ex2g4s.m()) {
|
|
803
803
|
var item = _iterator__ex2g4s.n();
|
|
804
|
-
var tmp$ret$2 = EcefConverter_instance.
|
|
804
|
+
var tmp$ret$2 = EcefConverter_instance.n11(item, zExaggeration);
|
|
805
805
|
destination.k(tmp$ret$2);
|
|
806
806
|
}
|
|
807
807
|
var ecef = destination;
|
|
808
808
|
// Inline function 'kotlin.collections.map' call
|
|
809
|
-
var this_0 = this.
|
|
809
|
+
var this_0 = this.o11(ecef, tolerance);
|
|
810
810
|
// Inline function 'kotlin.collections.mapTo' call
|
|
811
811
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
812
812
|
var _iterator__ex2g4s_0 = this_0.l();
|
|
@@ -817,7 +817,7 @@
|
|
|
817
817
|
}
|
|
818
818
|
return destination_0;
|
|
819
819
|
};
|
|
820
|
-
protoOf(DouglasPeucker).
|
|
820
|
+
protoOf(DouglasPeucker).o11 = function (points, tolerance) {
|
|
821
821
|
if (points.o() <= 2)
|
|
822
822
|
return toList_0(get_indices(points));
|
|
823
823
|
var lastIndex = get_lastIndex(points);
|
|
@@ -838,10 +838,10 @@
|
|
|
838
838
|
}
|
|
839
839
|
function EcefConverter() {
|
|
840
840
|
}
|
|
841
|
-
protoOf(EcefConverter).
|
|
841
|
+
protoOf(EcefConverter).n11 = function (coordinates, zExaggeration) {
|
|
842
842
|
var latRad = coordinates.gz() * 0.017453292519943295;
|
|
843
843
|
var lonRad = coordinates.hz() * 0.017453292519943295;
|
|
844
|
-
var tmp0_elvis_lhs = coordinates.
|
|
844
|
+
var tmp0_elvis_lhs = coordinates.e11();
|
|
845
845
|
var elevationExaggerated = zExaggeration * (tmp0_elvis_lhs == null ? 0.0 : tmp0_elvis_lhs);
|
|
846
846
|
// Inline function 'kotlin.math.sin' call
|
|
847
847
|
var sinLat = Math.sin(latRad);
|
|
@@ -877,10 +877,10 @@
|
|
|
877
877
|
}
|
|
878
878
|
function $getElevationCOROUTINE$(_this__u8e3s4, coords, zoomLevel, interpolation, resultContinuation) {
|
|
879
879
|
CoroutineImpl.call(this, resultContinuation);
|
|
880
|
-
this.
|
|
881
|
-
this.
|
|
882
|
-
this.
|
|
883
|
-
this.
|
|
880
|
+
this.c13_1 = _this__u8e3s4;
|
|
881
|
+
this.d13_1 = coords;
|
|
882
|
+
this.e13_1 = zoomLevel;
|
|
883
|
+
this.f13_1 = interpolation;
|
|
884
884
|
}
|
|
885
885
|
protoOf($getElevationCOROUTINE$).o7 = function () {
|
|
886
886
|
var suspendResult = this.i7_1;
|
|
@@ -891,17 +891,17 @@
|
|
|
891
891
|
case 0:
|
|
892
892
|
this.h7_1 = 8;
|
|
893
893
|
this.h7_1 = 4;
|
|
894
|
-
if (this.
|
|
894
|
+
if (this.f13_1) {
|
|
895
895
|
this.g7_1 = 2;
|
|
896
|
-
suspendResult = getInterpolatedElevation(this.
|
|
896
|
+
suspendResult = getInterpolatedElevation(this.c13_1, this.d13_1, this.e13_1, this);
|
|
897
897
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
898
898
|
return suspendResult;
|
|
899
899
|
}
|
|
900
900
|
continue $sm;
|
|
901
901
|
} else {
|
|
902
|
-
var pixel = ElevationFunctions_instance.
|
|
902
|
+
var pixel = ElevationFunctions_instance.j13(this.d13_1, this.e13_1, this.c13_1.dz_1);
|
|
903
903
|
this.g7_1 = 1;
|
|
904
|
-
suspendResult = elevationFromPixel(this.
|
|
904
|
+
suspendResult = elevationFromPixel(this.c13_1, pixel, this);
|
|
905
905
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
906
906
|
return suspendResult;
|
|
907
907
|
}
|
|
@@ -909,15 +909,15 @@
|
|
|
909
909
|
}
|
|
910
910
|
|
|
911
911
|
case 1:
|
|
912
|
-
this.
|
|
912
|
+
this.i13_1 = suspendResult;
|
|
913
913
|
this.g7_1 = 3;
|
|
914
914
|
continue $sm;
|
|
915
915
|
case 2:
|
|
916
|
-
this.
|
|
916
|
+
this.i13_1 = suspendResult;
|
|
917
917
|
this.g7_1 = 3;
|
|
918
918
|
continue $sm;
|
|
919
919
|
case 3:
|
|
920
|
-
this.
|
|
920
|
+
this.h13_1 = this.i13_1;
|
|
921
921
|
this.h7_1 = 8;
|
|
922
922
|
this.g7_1 = 5;
|
|
923
923
|
continue $sm;
|
|
@@ -934,17 +934,17 @@
|
|
|
934
934
|
|
|
935
935
|
case 5:
|
|
936
936
|
this.h7_1 = 8;
|
|
937
|
-
var own = this.
|
|
937
|
+
var own = this.h13_1;
|
|
938
938
|
if (!isNaN_0(own))
|
|
939
939
|
return own;
|
|
940
|
-
var tmp0_safe_receiver = this.
|
|
940
|
+
var tmp0_safe_receiver = this.c13_1.ez_1;
|
|
941
941
|
if (tmp0_safe_receiver == null) {
|
|
942
|
-
this.
|
|
942
|
+
this.g13_1 = null;
|
|
943
943
|
this.g7_1 = 7;
|
|
944
944
|
continue $sm;
|
|
945
945
|
} else {
|
|
946
946
|
this.g7_1 = 6;
|
|
947
|
-
suspendResult = tmp0_safe_receiver(this.
|
|
947
|
+
suspendResult = tmp0_safe_receiver(this.d13_1, this.f13_1, this);
|
|
948
948
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
949
949
|
return suspendResult;
|
|
950
950
|
}
|
|
@@ -952,11 +952,11 @@
|
|
|
952
952
|
}
|
|
953
953
|
|
|
954
954
|
case 6:
|
|
955
|
-
this.
|
|
955
|
+
this.g13_1 = suspendResult;
|
|
956
956
|
this.g7_1 = 7;
|
|
957
957
|
continue $sm;
|
|
958
958
|
case 7:
|
|
959
|
-
var tmp1_elvis_lhs = this.
|
|
959
|
+
var tmp1_elvis_lhs = this.g13_1;
|
|
960
960
|
return tmp1_elvis_lhs == null ? 0.0 : tmp1_elvis_lhs;
|
|
961
961
|
case 8:
|
|
962
962
|
throw this.j7_1;
|
|
@@ -974,9 +974,9 @@
|
|
|
974
974
|
};
|
|
975
975
|
function $getInterpolatedElevationCOROUTINE$(_this__u8e3s4, coords, zoomLevel, resultContinuation) {
|
|
976
976
|
CoroutineImpl.call(this, resultContinuation);
|
|
977
|
-
this.
|
|
978
|
-
this.
|
|
979
|
-
this.
|
|
977
|
+
this.x11_1 = _this__u8e3s4;
|
|
978
|
+
this.y11_1 = coords;
|
|
979
|
+
this.z11_1 = zoomLevel;
|
|
980
980
|
}
|
|
981
981
|
protoOf($getInterpolatedElevationCOROUTINE$).o7 = function () {
|
|
982
982
|
var suspendResult = this.i7_1;
|
|
@@ -986,46 +986,46 @@
|
|
|
986
986
|
switch (tmp) {
|
|
987
987
|
case 0:
|
|
988
988
|
this.h7_1 = 5;
|
|
989
|
-
this.
|
|
990
|
-
var fx = this.
|
|
991
|
-
var fy = this.
|
|
989
|
+
this.h12_1 = ElevationFunctions_instance.k13(this.y11_1, this.z11_1, this.x11_1.dz_1);
|
|
990
|
+
var fx = this.h12_1.m13_1 - 0.5;
|
|
991
|
+
var fy = this.h12_1.n13_1 - 0.5;
|
|
992
992
|
var tmp_0 = this;
|
|
993
|
-
tmp_0.
|
|
993
|
+
tmp_0.i12_1 = numberToInt(Math.floor(fx));
|
|
994
994
|
var tmp_1 = this;
|
|
995
|
-
tmp_1.
|
|
996
|
-
this.
|
|
997
|
-
this.
|
|
998
|
-
this.
|
|
999
|
-
this.
|
|
995
|
+
tmp_1.j12_1 = numberToInt(Math.floor(fy));
|
|
996
|
+
this.g12_1 = this.i12_1 + 1 | 0;
|
|
997
|
+
this.f12_1 = this.j12_1 + 1 | 0;
|
|
998
|
+
this.b12_1 = fx - this.i12_1;
|
|
999
|
+
this.a12_1 = fy - this.j12_1;
|
|
1000
1000
|
this.g7_1 = 1;
|
|
1001
|
-
suspendResult = elevationFromPixel(this.
|
|
1001
|
+
suspendResult = elevationFromPixel(this.x11_1, ElevationFunctions_instance.o13(new Pixel(this.h12_1.l13_1, this.i12_1, this.j12_1), this.x11_1.dz_1), this);
|
|
1002
1002
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1003
1003
|
return suspendResult;
|
|
1004
1004
|
}
|
|
1005
1005
|
|
|
1006
1006
|
continue $sm;
|
|
1007
1007
|
case 1:
|
|
1008
|
-
this.
|
|
1008
|
+
this.e12_1 = suspendResult;
|
|
1009
1009
|
this.g7_1 = 2;
|
|
1010
|
-
suspendResult = elevationFromPixel(this.
|
|
1010
|
+
suspendResult = elevationFromPixel(this.x11_1, ElevationFunctions_instance.o13(new Pixel(this.h12_1.l13_1, this.g12_1, this.j12_1), this.x11_1.dz_1), this);
|
|
1011
1011
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1012
1012
|
return suspendResult;
|
|
1013
1013
|
}
|
|
1014
1014
|
|
|
1015
1015
|
continue $sm;
|
|
1016
1016
|
case 2:
|
|
1017
|
-
this.
|
|
1017
|
+
this.d12_1 = suspendResult;
|
|
1018
1018
|
this.g7_1 = 3;
|
|
1019
|
-
suspendResult = elevationFromPixel(this.
|
|
1019
|
+
suspendResult = elevationFromPixel(this.x11_1, ElevationFunctions_instance.o13(new Pixel(this.h12_1.l13_1, this.i12_1, this.f12_1), this.x11_1.dz_1), this);
|
|
1020
1020
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1021
1021
|
return suspendResult;
|
|
1022
1022
|
}
|
|
1023
1023
|
|
|
1024
1024
|
continue $sm;
|
|
1025
1025
|
case 3:
|
|
1026
|
-
this.
|
|
1026
|
+
this.c12_1 = suspendResult;
|
|
1027
1027
|
this.g7_1 = 4;
|
|
1028
|
-
suspendResult = elevationFromPixel(this.
|
|
1028
|
+
suspendResult = elevationFromPixel(this.x11_1, ElevationFunctions_instance.o13(new Pixel(this.h12_1.l13_1, this.g12_1, this.f12_1), this.x11_1.dz_1), this);
|
|
1029
1029
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1030
1030
|
return suspendResult;
|
|
1031
1031
|
}
|
|
@@ -1033,9 +1033,9 @@
|
|
|
1033
1033
|
continue $sm;
|
|
1034
1034
|
case 4:
|
|
1035
1035
|
var p11 = suspendResult;
|
|
1036
|
-
var top = this.
|
|
1037
|
-
var bottom = this.
|
|
1038
|
-
return top * (1.0 - this.
|
|
1036
|
+
var top = this.e12_1 * (1.0 - this.b12_1) + this.d12_1 * this.b12_1;
|
|
1037
|
+
var bottom = this.c12_1 * (1.0 - this.b12_1) + p11 * this.b12_1;
|
|
1038
|
+
return top * (1.0 - this.a12_1) + bottom * this.a12_1;
|
|
1039
1039
|
case 5:
|
|
1040
1040
|
throw this.j7_1;
|
|
1041
1041
|
}
|
|
@@ -1052,8 +1052,8 @@
|
|
|
1052
1052
|
};
|
|
1053
1053
|
function $elevationFromPixelCOROUTINE$(_this__u8e3s4, pixel, resultContinuation) {
|
|
1054
1054
|
CoroutineImpl.call(this, resultContinuation);
|
|
1055
|
-
this.
|
|
1056
|
-
this.
|
|
1055
|
+
this.s12_1 = _this__u8e3s4;
|
|
1056
|
+
this.t12_1 = pixel;
|
|
1057
1057
|
}
|
|
1058
1058
|
protoOf($elevationFromPixelCOROUTINE$).o7 = function () {
|
|
1059
1059
|
var suspendResult = this.i7_1;
|
|
@@ -1064,14 +1064,14 @@
|
|
|
1064
1064
|
case 0:
|
|
1065
1065
|
this.h7_1 = 2;
|
|
1066
1066
|
this.g7_1 = 1;
|
|
1067
|
-
suspendResult = this.
|
|
1067
|
+
suspendResult = this.s12_1.cz_1.v13(this.t12_1.p13_1, this);
|
|
1068
1068
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1069
1069
|
return suspendResult;
|
|
1070
1070
|
}
|
|
1071
1071
|
|
|
1072
1072
|
continue $sm;
|
|
1073
1073
|
case 1:
|
|
1074
|
-
return suspendResult.
|
|
1074
|
+
return suspendResult.b14(this.t12_1);
|
|
1075
1075
|
case 2:
|
|
1076
1076
|
throw this.j7_1;
|
|
1077
1077
|
}
|
|
@@ -1104,25 +1104,27 @@
|
|
|
1104
1104
|
return toNumber(asLong) === d ? asLong.toString() : d.toString();
|
|
1105
1105
|
}
|
|
1106
1106
|
function ElevationFunctions() {
|
|
1107
|
+
this.wz_1 = 0;
|
|
1108
|
+
this.xz_1 = 15;
|
|
1107
1109
|
}
|
|
1108
|
-
protoOf(ElevationFunctions).
|
|
1110
|
+
protoOf(ElevationFunctions).c14 = function (degrees) {
|
|
1109
1111
|
return degrees * 0.017453292519943295;
|
|
1110
1112
|
};
|
|
1111
|
-
protoOf(ElevationFunctions).
|
|
1113
|
+
protoOf(ElevationFunctions).d14 = function (lat) {
|
|
1112
1114
|
return lat >= -85.0511 && lat <= 85.0511;
|
|
1113
1115
|
};
|
|
1114
|
-
protoOf(ElevationFunctions).
|
|
1116
|
+
protoOf(ElevationFunctions).e14 = function (lon) {
|
|
1115
1117
|
return -180.0 <= lon ? lon <= 180.0 : false;
|
|
1116
1118
|
};
|
|
1117
|
-
protoOf(ElevationFunctions).
|
|
1119
|
+
protoOf(ElevationFunctions).f14 = function (zoom) {
|
|
1118
1120
|
return 0 <= zoom ? zoom <= 15 : false;
|
|
1119
1121
|
};
|
|
1120
|
-
protoOf(ElevationFunctions).
|
|
1121
|
-
var x = pixel.
|
|
1122
|
-
var y = pixel.
|
|
1123
|
-
var tileX = pixel.
|
|
1124
|
-
var tileY = pixel.
|
|
1125
|
-
var z = pixel.
|
|
1122
|
+
protoOf(ElevationFunctions).o13 = function (pixel, tileSize) {
|
|
1123
|
+
var x = pixel.q13_1;
|
|
1124
|
+
var y = pixel.r13_1;
|
|
1125
|
+
var tileX = pixel.p13_1.zz_1;
|
|
1126
|
+
var tileY = pixel.p13_1.a10_1;
|
|
1127
|
+
var z = pixel.p13_1.b10_1;
|
|
1126
1128
|
if (x < 0) {
|
|
1127
1129
|
x = x + tileSize | 0;
|
|
1128
1130
|
tileX = tileX - 1 | 0;
|
|
@@ -1156,23 +1158,23 @@
|
|
|
1156
1158
|
}
|
|
1157
1159
|
return new Pixel(new TileCoordinates(tileX, tileY, z), x, y);
|
|
1158
1160
|
};
|
|
1159
|
-
protoOf(ElevationFunctions).
|
|
1161
|
+
protoOf(ElevationFunctions).g14 = function (coords, z) {
|
|
1160
1162
|
// Inline function 'kotlin.require' call
|
|
1161
|
-
if (!this.
|
|
1163
|
+
if (!this.d14(coords.gz())) {
|
|
1162
1164
|
var message = 'Invalid latitude: ' + formatNumber_0(ElevationFunctions_instance, coords.gz()) + '. Must be between -85.0511 and 85.0511';
|
|
1163
1165
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1164
1166
|
}
|
|
1165
1167
|
// Inline function 'kotlin.require' call
|
|
1166
|
-
if (!this.
|
|
1168
|
+
if (!this.e14(coords.hz())) {
|
|
1167
1169
|
var message_0 = 'Invalid longitude: ' + formatNumber_0(ElevationFunctions_instance, coords.hz()) + '. Must be between -180 and 180';
|
|
1168
1170
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1169
1171
|
}
|
|
1170
1172
|
// Inline function 'kotlin.require' call
|
|
1171
|
-
if (!this.
|
|
1173
|
+
if (!this.f14(z)) {
|
|
1172
1174
|
var message_1 = 'Invalid zoom level: ' + z + '. Must be between 0 and 15';
|
|
1173
1175
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1174
1176
|
}
|
|
1175
|
-
var lat = this.
|
|
1177
|
+
var lat = this.c14(coords.gz());
|
|
1176
1178
|
var n = 1 << z;
|
|
1177
1179
|
var xFloat = (coords.hz() + 180.0) / 360.0 * n;
|
|
1178
1180
|
// Inline function 'kotlin.math.tan' call
|
|
@@ -1190,27 +1192,27 @@
|
|
|
1190
1192
|
var y = coerceIn_1(numberToInt(tmp$ret$10), 0, maxTile);
|
|
1191
1193
|
return new TileCoordinatesFloat(x_0, y, xFloat, yFloat, z);
|
|
1192
1194
|
};
|
|
1193
|
-
protoOf(ElevationFunctions).
|
|
1194
|
-
var tile = this.
|
|
1195
|
-
return new TileCoordinates(tile.
|
|
1195
|
+
protoOf(ElevationFunctions).yz = function (coords, z) {
|
|
1196
|
+
var tile = this.g14(coords, z);
|
|
1197
|
+
return new TileCoordinates(tile.h14_1, tile.i14_1, tile.l14_1);
|
|
1196
1198
|
};
|
|
1197
|
-
protoOf(ElevationFunctions).
|
|
1198
|
-
var tile = this.
|
|
1199
|
+
protoOf(ElevationFunctions).j13 = function (coords, z, tileSize) {
|
|
1200
|
+
var tile = this.g14(coords, z);
|
|
1199
1201
|
// Inline function 'kotlin.math.floor' call
|
|
1200
|
-
var x = (tile.
|
|
1202
|
+
var x = (tile.j14_1 - tile.h14_1) * tileSize;
|
|
1201
1203
|
var tmp$ret$0 = Math.floor(x);
|
|
1202
1204
|
var px = coerceIn_1(numberToInt(tmp$ret$0), 0, tileSize - 1 | 0);
|
|
1203
1205
|
// Inline function 'kotlin.math.floor' call
|
|
1204
|
-
var x_0 = (tile.
|
|
1206
|
+
var x_0 = (tile.k14_1 - tile.i14_1) * tileSize;
|
|
1205
1207
|
var tmp$ret$1 = Math.floor(x_0);
|
|
1206
1208
|
var py = coerceIn_1(numberToInt(tmp$ret$1), 0, tileSize - 1 | 0);
|
|
1207
|
-
return new Pixel(new TileCoordinates(tile.
|
|
1209
|
+
return new Pixel(new TileCoordinates(tile.h14_1, tile.i14_1, z), px, py);
|
|
1208
1210
|
};
|
|
1209
|
-
protoOf(ElevationFunctions).
|
|
1210
|
-
var tile = this.
|
|
1211
|
-
var px = (tile.
|
|
1212
|
-
var py = (tile.
|
|
1213
|
-
return new PixelFloat(new TileCoordinates(tile.
|
|
1211
|
+
protoOf(ElevationFunctions).k13 = function (coords, z, tileSize) {
|
|
1212
|
+
var tile = this.g14(coords, z);
|
|
1213
|
+
var px = (tile.j14_1 - tile.h14_1) * tileSize;
|
|
1214
|
+
var py = (tile.k14_1 - tile.i14_1) * tileSize;
|
|
1215
|
+
return new PixelFloat(new TileCoordinates(tile.h14_1, tile.i14_1, z), px, py);
|
|
1214
1216
|
};
|
|
1215
1217
|
var ElevationFunctions_instance;
|
|
1216
1218
|
function ElevationFunctions_getInstance() {
|
|
@@ -1233,18 +1235,18 @@
|
|
|
1233
1235
|
return ElevationProvider_init_$Init$_0(config, fetcher, keepNoData, objectCreate(protoOf(ElevationProvider)));
|
|
1234
1236
|
}
|
|
1235
1237
|
function ElevationProvider$calculator$slambda(this$0, resultContinuation) {
|
|
1236
|
-
this.
|
|
1238
|
+
this.u14_1 = this$0;
|
|
1237
1239
|
CoroutineImpl.call(this, resultContinuation);
|
|
1238
1240
|
}
|
|
1239
|
-
protoOf(ElevationProvider$calculator$slambda).
|
|
1240
|
-
var tmp = this.
|
|
1241
|
+
protoOf(ElevationProvider$calculator$slambda).x14 = function (coords, interpolation, $completion) {
|
|
1242
|
+
var tmp = this.y14(coords, interpolation, $completion);
|
|
1241
1243
|
tmp.i7_1 = Unit_instance;
|
|
1242
1244
|
tmp.j7_1 = null;
|
|
1243
1245
|
return tmp.o7();
|
|
1244
1246
|
};
|
|
1245
|
-
protoOf(ElevationProvider$calculator$slambda).
|
|
1247
|
+
protoOf(ElevationProvider$calculator$slambda).z14 = function (p1, p2, $completion) {
|
|
1246
1248
|
var tmp = (!(p1 == null) ? isInterface(p1, Coordinates) : false) ? p1 : THROW_CCE();
|
|
1247
|
-
return this.
|
|
1249
|
+
return this.x14(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion);
|
|
1248
1250
|
};
|
|
1249
1251
|
protoOf(ElevationProvider$calculator$slambda).o7 = function () {
|
|
1250
1252
|
var suspendResult = this.i7_1;
|
|
@@ -1255,7 +1257,7 @@
|
|
|
1255
1257
|
case 0:
|
|
1256
1258
|
this.h7_1 = 2;
|
|
1257
1259
|
this.g7_1 = 1;
|
|
1258
|
-
suspendResult = this.
|
|
1260
|
+
suspendResult = this.u14_1.c15_1.i15(this.v14_1.gz(), this.v14_1.hz(), this.w14_1, this);
|
|
1259
1261
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1260
1262
|
return suspendResult;
|
|
1261
1263
|
}
|
|
@@ -1277,30 +1279,30 @@
|
|
|
1277
1279
|
}
|
|
1278
1280
|
while (true);
|
|
1279
1281
|
};
|
|
1280
|
-
protoOf(ElevationProvider$calculator$slambda).
|
|
1281
|
-
var i = new ElevationProvider$calculator$slambda(this.
|
|
1282
|
-
i.
|
|
1283
|
-
i.
|
|
1282
|
+
protoOf(ElevationProvider$calculator$slambda).y14 = function (coords, interpolation, completion) {
|
|
1283
|
+
var i = new ElevationProvider$calculator$slambda(this.u14_1, completion);
|
|
1284
|
+
i.v14_1 = coords;
|
|
1285
|
+
i.w14_1 = interpolation;
|
|
1284
1286
|
return i;
|
|
1285
1287
|
};
|
|
1286
1288
|
function ElevationProvider$calculator$slambda_0(this$0, resultContinuation) {
|
|
1287
1289
|
var i = new ElevationProvider$calculator$slambda(this$0, resultContinuation);
|
|
1288
1290
|
return constructCallableReference(function (coords, interpolation, $completion) {
|
|
1289
|
-
return i.
|
|
1291
|
+
return i.x14(coords, interpolation, $completion);
|
|
1290
1292
|
}, 2);
|
|
1291
1293
|
}
|
|
1292
1294
|
function ElevationProvider$calculator$slambda_1(resultContinuation) {
|
|
1293
1295
|
CoroutineImpl.call(this, resultContinuation);
|
|
1294
1296
|
}
|
|
1295
|
-
protoOf(ElevationProvider$calculator$slambda_1).
|
|
1296
|
-
var tmp = this.
|
|
1297
|
+
protoOf(ElevationProvider$calculator$slambda_1).x14 = function (_unused_var__etf5q3, _unused_var__etf5q3_0, $completion) {
|
|
1298
|
+
var tmp = this.y14(_unused_var__etf5q3, _unused_var__etf5q3_0, $completion);
|
|
1297
1299
|
tmp.i7_1 = Unit_instance;
|
|
1298
1300
|
tmp.j7_1 = null;
|
|
1299
1301
|
return tmp.o7();
|
|
1300
1302
|
};
|
|
1301
|
-
protoOf(ElevationProvider$calculator$slambda_1).
|
|
1303
|
+
protoOf(ElevationProvider$calculator$slambda_1).z14 = function (p1, p2, $completion) {
|
|
1302
1304
|
var tmp = (!(p1 == null) ? isInterface(p1, Coordinates) : false) ? p1 : THROW_CCE();
|
|
1303
|
-
return this.
|
|
1305
|
+
return this.x14(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion);
|
|
1304
1306
|
};
|
|
1305
1307
|
protoOf(ElevationProvider$calculator$slambda_1).o7 = function () {
|
|
1306
1308
|
var suspendResult = this.i7_1;
|
|
@@ -1319,102 +1321,101 @@
|
|
|
1319
1321
|
}
|
|
1320
1322
|
while (true);
|
|
1321
1323
|
};
|
|
1322
|
-
protoOf(ElevationProvider$calculator$slambda_1).
|
|
1324
|
+
protoOf(ElevationProvider$calculator$slambda_1).y14 = function (_unused_var__etf5q3, _unused_var__etf5q3_0, completion) {
|
|
1323
1325
|
var i = new ElevationProvider$calculator$slambda_1(completion);
|
|
1324
|
-
i.
|
|
1325
|
-
i.
|
|
1326
|
+
i.r15_1 = _unused_var__etf5q3;
|
|
1327
|
+
i.s15_1 = _unused_var__etf5q3_0;
|
|
1326
1328
|
return i;
|
|
1327
1329
|
};
|
|
1328
1330
|
function ElevationProvider$calculator$slambda_2(resultContinuation) {
|
|
1329
1331
|
var i = new ElevationProvider$calculator$slambda_1(resultContinuation);
|
|
1330
1332
|
return constructCallableReference(function (_unused_var__etf5q3, _unused_var__etf5q3_0, $completion) {
|
|
1331
|
-
return i.
|
|
1333
|
+
return i.x14(_unused_var__etf5q3, _unused_var__etf5q3_0, $completion);
|
|
1332
1334
|
}, 2);
|
|
1333
1335
|
}
|
|
1334
1336
|
function ElevationProvider(config, fetcher, fallback, keepNoData, surfaceModel) {
|
|
1335
|
-
this.
|
|
1336
|
-
this.
|
|
1337
|
-
this.
|
|
1338
|
-
this.
|
|
1339
|
-
this.
|
|
1340
|
-
var containsArg = this.y14_1.r15_1;
|
|
1337
|
+
this.a15_1 = config;
|
|
1338
|
+
this.b15_1 = fetcher;
|
|
1339
|
+
this.c15_1 = fallback;
|
|
1340
|
+
this.d15_1 = keepNoData;
|
|
1341
|
+
this.e15_1 = surfaceModel;
|
|
1341
1342
|
// Inline function 'kotlin.require' call
|
|
1342
|
-
if (!(
|
|
1343
|
-
var message = 'Invalid zoom level: ' + this.
|
|
1343
|
+
if (!ElevationFunctions_instance.f14(this.a15_1.t15_1)) {
|
|
1344
|
+
var message = 'Invalid zoom level: ' + this.a15_1.t15_1 + '. Must be an integer between ' + '0 and 15';
|
|
1344
1345
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1345
1346
|
}
|
|
1346
1347
|
// Inline function 'kotlin.require' call
|
|
1347
|
-
if (!(this.
|
|
1348
|
-
var message_0 = 'Invalid cache size: ' + this.
|
|
1348
|
+
if (!(this.a15_1.u15_1 > 0)) {
|
|
1349
|
+
var message_0 = 'Invalid cache size: ' + this.a15_1.u15_1 + '. Must be a positive integer';
|
|
1349
1350
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1350
1351
|
}
|
|
1351
1352
|
// Inline function 'kotlin.require' call
|
|
1352
|
-
if (!(this.
|
|
1353
|
-
var message_1 = 'Invalid tile size: ' + this.
|
|
1353
|
+
if (!(this.a15_1.w15_1 > 0 && (this.a15_1.w15_1 & (this.a15_1.w15_1 - 1 | 0)) === 0)) {
|
|
1354
|
+
var message_1 = 'Invalid tile size: ' + this.a15_1.w15_1 + '. Must be a positive power of 2';
|
|
1354
1355
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1355
1356
|
}
|
|
1356
1357
|
// Inline function 'kotlin.require' call
|
|
1357
|
-
if (!(this.
|
|
1358
|
-
var message_2 = 'Invalid maxRequestsPerSecond: ' + this.
|
|
1358
|
+
if (!(this.a15_1.z15_1 >= 0)) {
|
|
1359
|
+
var message_2 = 'Invalid maxRequestsPerSecond: ' + this.a15_1.z15_1 + '. Must be 0 (no limit) or positive';
|
|
1359
1360
|
throw IllegalArgumentException_init_$Create$(toString(message_2));
|
|
1360
1361
|
}
|
|
1361
|
-
this.
|
|
1362
|
+
this.f15_1 = new TileManager(this.a15_1.v15_1, this.a15_1.u15_1, this.b15_1);
|
|
1362
1363
|
var tmp = this;
|
|
1363
1364
|
var tmp_0;
|
|
1364
|
-
if (!(this.
|
|
1365
|
+
if (!(this.c15_1 == null)) {
|
|
1365
1366
|
tmp_0 = ElevationProvider$calculator$slambda_0(this, null);
|
|
1366
|
-
} else if (this.
|
|
1367
|
+
} else if (this.d15_1) {
|
|
1367
1368
|
tmp_0 = ElevationProvider$calculator$slambda_2(null);
|
|
1368
1369
|
} else {
|
|
1369
1370
|
tmp_0 = null;
|
|
1370
1371
|
}
|
|
1371
|
-
tmp.
|
|
1372
|
-
this.
|
|
1372
|
+
tmp.g15_1 = new ElevationCalculator(this.f15_1, this.a15_1.w15_1, tmp_0);
|
|
1373
|
+
this.h15_1 = new BatchCalculator(this.g15_1);
|
|
1373
1374
|
}
|
|
1374
|
-
protoOf(ElevationProvider).
|
|
1375
|
+
protoOf(ElevationProvider).a16 = function (other) {
|
|
1375
1376
|
// Inline function 'kotlin.require' call
|
|
1376
|
-
if (!!this.
|
|
1377
|
+
if (!!this.d15_1) {
|
|
1377
1378
|
var message = 'a raw IGN LiDAR HD layer takes no fallback: its no-data must stay NaN';
|
|
1378
1379
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1379
1380
|
}
|
|
1380
|
-
return new ElevationProvider(this.
|
|
1381
|
+
return new ElevationProvider(this.a15_1, this.b15_1, other, false, this.e15_1);
|
|
1381
1382
|
};
|
|
1382
|
-
protoOf(ElevationProvider).
|
|
1383
|
+
protoOf(ElevationProvider).b16 = function (surface) {
|
|
1383
1384
|
// Inline function 'kotlin.require' call
|
|
1384
|
-
if (!(surface == null || surface.
|
|
1385
|
+
if (!(surface == null || surface.d15_1)) {
|
|
1385
1386
|
var message = 'a surface model must keep its no-data as NaN';
|
|
1386
1387
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1387
1388
|
}
|
|
1388
1389
|
// Inline function 'kotlin.require' call
|
|
1389
|
-
if (!!this.
|
|
1390
|
+
if (!!this.d15_1) {
|
|
1390
1391
|
var message_0 = 'a raw IGN LiDAR HD layer carries no surface model';
|
|
1391
1392
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1392
1393
|
}
|
|
1393
|
-
return new ElevationProvider(this.
|
|
1394
|
+
return new ElevationProvider(this.a15_1, this.b15_1, this.c15_1, false, surface);
|
|
1394
1395
|
};
|
|
1395
|
-
protoOf(ElevationProvider).
|
|
1396
|
-
return this.
|
|
1396
|
+
protoOf(ElevationProvider).c16 = function () {
|
|
1397
|
+
return this.a15_1.x15_1;
|
|
1397
1398
|
};
|
|
1398
|
-
protoOf(ElevationProvider).
|
|
1399
|
-
return this.
|
|
1399
|
+
protoOf(ElevationProvider).i15 = function (latitude, longitude, interpolation, $completion) {
|
|
1400
|
+
return this.g15_1.fz(new LatLon(latitude, longitude), this.a15_1.t15_1, interpolation, $completion);
|
|
1400
1401
|
};
|
|
1401
|
-
protoOf(ElevationProvider).
|
|
1402
|
-
return this.
|
|
1402
|
+
protoOf(ElevationProvider).d16 = function (coordinates, interpolation, $completion) {
|
|
1403
|
+
return this.h15_1.u10(coordinates, this.a15_1.t15_1, interpolation, VOID, $completion);
|
|
1403
1404
|
};
|
|
1404
|
-
protoOf(ElevationProvider).
|
|
1405
|
+
protoOf(ElevationProvider).e16 = function (coordinates, interpolation, $completion, $super) {
|
|
1405
1406
|
interpolation = interpolation === VOID ? true : interpolation;
|
|
1406
|
-
return $super === VOID ? this.
|
|
1407
|
+
return $super === VOID ? this.d16(coordinates, interpolation, $completion) : $super.d16.call(this, coordinates, interpolation, $completion);
|
|
1407
1408
|
};
|
|
1408
|
-
protoOf(ElevationProvider).
|
|
1409
|
-
return this.
|
|
1409
|
+
protoOf(ElevationProvider).f16 = function (path, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion) {
|
|
1410
|
+
return this.h15_1.y10(path, this.a15_1.t15_1, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion);
|
|
1410
1411
|
};
|
|
1411
1412
|
function defaultTileFetcher(config) {
|
|
1412
|
-
if (config.
|
|
1413
|
+
if (config.y15_1.equals(TileEncoding_TERRARIUM_getInstance()) && config.z15_1 === 0) {
|
|
1413
1414
|
return fetchAndDecodeTile$ref_1();
|
|
1414
1415
|
}
|
|
1415
|
-
var bytes = pacedTileBytesFetcher(config.
|
|
1416
|
+
var bytes = pacedTileBytesFetcher(config.z15_1);
|
|
1416
1417
|
var tmp;
|
|
1417
|
-
switch (config.
|
|
1418
|
+
switch (config.y15_1.v1_1) {
|
|
1418
1419
|
case 0:
|
|
1419
1420
|
tmp = defaultTileFetcher$slambda_0(bytes, null);
|
|
1420
1421
|
break;
|
|
@@ -1430,24 +1431,24 @@
|
|
|
1430
1431
|
function fetchAndDecodeTile$ref() {
|
|
1431
1432
|
KFunctionImpl.call(this, 1, 2, 2);
|
|
1432
1433
|
}
|
|
1433
|
-
protoOf(fetchAndDecodeTile$ref).
|
|
1434
|
+
protoOf(fetchAndDecodeTile$ref).j16 = function (p0, $completion) {
|
|
1434
1435
|
return fetchAndDecodeTile(p0, $completion);
|
|
1435
1436
|
};
|
|
1436
1437
|
protoOf(fetchAndDecodeTile$ref).w7 = function (p1, $completion) {
|
|
1437
|
-
return this.
|
|
1438
|
+
return this.j16((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
1438
1439
|
};
|
|
1439
1440
|
function defaultTileFetcher$slambda($bytes, resultContinuation) {
|
|
1440
|
-
this.
|
|
1441
|
+
this.s16_1 = $bytes;
|
|
1441
1442
|
CoroutineImpl.call(this, resultContinuation);
|
|
1442
1443
|
}
|
|
1443
|
-
protoOf(defaultTileFetcher$slambda).
|
|
1444
|
-
var tmp = this.
|
|
1444
|
+
protoOf(defaultTileFetcher$slambda).j16 = function (url, $completion) {
|
|
1445
|
+
var tmp = this.u16(url, $completion);
|
|
1445
1446
|
tmp.i7_1 = Unit_instance;
|
|
1446
1447
|
tmp.j7_1 = null;
|
|
1447
1448
|
return tmp.o7();
|
|
1448
1449
|
};
|
|
1449
1450
|
protoOf(defaultTileFetcher$slambda).w7 = function (p1, $completion) {
|
|
1450
|
-
return this.
|
|
1451
|
+
return this.j16((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
1451
1452
|
};
|
|
1452
1453
|
protoOf(defaultTileFetcher$slambda).o7 = function () {
|
|
1453
1454
|
var suspendResult = this.i7_1;
|
|
@@ -1458,7 +1459,7 @@
|
|
|
1458
1459
|
case 0:
|
|
1459
1460
|
this.h7_1 = 3;
|
|
1460
1461
|
this.g7_1 = 1;
|
|
1461
|
-
suspendResult = this.
|
|
1462
|
+
suspendResult = this.s16_1(this.t16_1, this);
|
|
1462
1463
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1463
1464
|
return suspendResult;
|
|
1464
1465
|
}
|
|
@@ -1467,7 +1468,7 @@
|
|
|
1467
1468
|
case 1:
|
|
1468
1469
|
var ARGUMENT = suspendResult;
|
|
1469
1470
|
this.g7_1 = 2;
|
|
1470
|
-
suspendResult = decodeTileBytes(ARGUMENT, this.
|
|
1471
|
+
suspendResult = decodeTileBytes(ARGUMENT, this.t16_1, this);
|
|
1471
1472
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1472
1473
|
return suspendResult;
|
|
1473
1474
|
}
|
|
@@ -1489,30 +1490,30 @@
|
|
|
1489
1490
|
}
|
|
1490
1491
|
while (true);
|
|
1491
1492
|
};
|
|
1492
|
-
protoOf(defaultTileFetcher$slambda).
|
|
1493
|
-
var i = new defaultTileFetcher$slambda(this.
|
|
1494
|
-
i.
|
|
1493
|
+
protoOf(defaultTileFetcher$slambda).u16 = function (url, completion) {
|
|
1494
|
+
var i = new defaultTileFetcher$slambda(this.s16_1, completion);
|
|
1495
|
+
i.t16_1 = url;
|
|
1495
1496
|
return i;
|
|
1496
1497
|
};
|
|
1497
1498
|
function defaultTileFetcher$slambda_0($bytes, resultContinuation) {
|
|
1498
1499
|
var i = new defaultTileFetcher$slambda($bytes, resultContinuation);
|
|
1499
1500
|
return constructCallableReference(function (url, $completion) {
|
|
1500
|
-
return i.
|
|
1501
|
+
return i.j16(url, $completion);
|
|
1501
1502
|
}, 1);
|
|
1502
1503
|
}
|
|
1503
1504
|
function defaultTileFetcher$slambda_1($bytes, $config, resultContinuation) {
|
|
1504
|
-
this.
|
|
1505
|
-
this.
|
|
1505
|
+
this.d17_1 = $bytes;
|
|
1506
|
+
this.e17_1 = $config;
|
|
1506
1507
|
CoroutineImpl.call(this, resultContinuation);
|
|
1507
1508
|
}
|
|
1508
|
-
protoOf(defaultTileFetcher$slambda_1).
|
|
1509
|
-
var tmp = this.
|
|
1509
|
+
protoOf(defaultTileFetcher$slambda_1).j16 = function (url, $completion) {
|
|
1510
|
+
var tmp = this.u16(url, $completion);
|
|
1510
1511
|
tmp.i7_1 = Unit_instance;
|
|
1511
1512
|
tmp.j7_1 = null;
|
|
1512
1513
|
return tmp.o7();
|
|
1513
1514
|
};
|
|
1514
1515
|
protoOf(defaultTileFetcher$slambda_1).w7 = function (p1, $completion) {
|
|
1515
|
-
return this.
|
|
1516
|
+
return this.j16((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
1516
1517
|
};
|
|
1517
1518
|
protoOf(defaultTileFetcher$slambda_1).o7 = function () {
|
|
1518
1519
|
var suspendResult = this.i7_1;
|
|
@@ -1523,7 +1524,7 @@
|
|
|
1523
1524
|
case 0:
|
|
1524
1525
|
this.h7_1 = 2;
|
|
1525
1526
|
this.g7_1 = 1;
|
|
1526
|
-
suspendResult = this.
|
|
1527
|
+
suspendResult = this.d17_1(this.f17_1, this);
|
|
1527
1528
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1528
1529
|
return suspendResult;
|
|
1529
1530
|
}
|
|
@@ -1531,7 +1532,7 @@
|
|
|
1531
1532
|
continue $sm;
|
|
1532
1533
|
case 1:
|
|
1533
1534
|
var ARGUMENT = suspendResult;
|
|
1534
|
-
return decodeBil32Tile(ARGUMENT, this.
|
|
1535
|
+
return decodeBil32Tile(ARGUMENT, this.e17_1.w15_1, this.f17_1);
|
|
1535
1536
|
case 2:
|
|
1536
1537
|
throw this.j7_1;
|
|
1537
1538
|
}
|
|
@@ -1546,15 +1547,15 @@
|
|
|
1546
1547
|
}
|
|
1547
1548
|
while (true);
|
|
1548
1549
|
};
|
|
1549
|
-
protoOf(defaultTileFetcher$slambda_1).
|
|
1550
|
-
var i = new defaultTileFetcher$slambda_1(this.
|
|
1551
|
-
i.
|
|
1550
|
+
protoOf(defaultTileFetcher$slambda_1).u16 = function (url, completion) {
|
|
1551
|
+
var i = new defaultTileFetcher$slambda_1(this.d17_1, this.e17_1, completion);
|
|
1552
|
+
i.f17_1 = url;
|
|
1552
1553
|
return i;
|
|
1553
1554
|
};
|
|
1554
1555
|
function defaultTileFetcher$slambda_2($bytes, $config, resultContinuation) {
|
|
1555
1556
|
var i = new defaultTileFetcher$slambda_1($bytes, $config, resultContinuation);
|
|
1556
1557
|
return constructCallableReference(function (url, $completion) {
|
|
1557
|
-
return i.
|
|
1558
|
+
return i.j16(url, $completion);
|
|
1558
1559
|
}, 1);
|
|
1559
1560
|
}
|
|
1560
1561
|
function defaultTileFetcher$ref() {
|
|
@@ -1570,38 +1571,38 @@
|
|
|
1570
1571
|
attribution = attribution === VOID ? new Attribution('Mapterhorn elevation data. See mapterhorn.com/attribution/ for details.', 'https://mapterhorn.com/attribution/') : attribution;
|
|
1571
1572
|
encoding = encoding === VOID ? TileEncoding_TERRARIUM_getInstance() : encoding;
|
|
1572
1573
|
maxRequestsPerSecond = maxRequestsPerSecond === VOID ? 0 : maxRequestsPerSecond;
|
|
1573
|
-
this.
|
|
1574
|
-
this.
|
|
1575
|
-
this.
|
|
1576
|
-
this.
|
|
1577
|
-
this.
|
|
1578
|
-
this.
|
|
1579
|
-
this.
|
|
1580
|
-
}
|
|
1581
|
-
protoOf(ElevationProviderConfig).
|
|
1574
|
+
this.t15_1 = zoomLevel;
|
|
1575
|
+
this.u15_1 = cacheSize;
|
|
1576
|
+
this.v15_1 = tileUrlTemplate;
|
|
1577
|
+
this.w15_1 = tileSize;
|
|
1578
|
+
this.x15_1 = attribution;
|
|
1579
|
+
this.y15_1 = encoding;
|
|
1580
|
+
this.z15_1 = maxRequestsPerSecond;
|
|
1581
|
+
}
|
|
1582
|
+
protoOf(ElevationProviderConfig).g17 = function (zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond) {
|
|
1582
1583
|
return new ElevationProviderConfig(zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond);
|
|
1583
1584
|
};
|
|
1584
|
-
protoOf(ElevationProviderConfig).
|
|
1585
|
-
zoomLevel = zoomLevel === VOID ? this.
|
|
1586
|
-
cacheSize = cacheSize === VOID ? this.
|
|
1587
|
-
tileUrlTemplate = tileUrlTemplate === VOID ? this.
|
|
1588
|
-
tileSize = tileSize === VOID ? this.
|
|
1589
|
-
attribution = attribution === VOID ? this.
|
|
1590
|
-
encoding = encoding === VOID ? this.
|
|
1591
|
-
maxRequestsPerSecond = maxRequestsPerSecond === VOID ? this.
|
|
1592
|
-
return $super === VOID ? this.
|
|
1585
|
+
protoOf(ElevationProviderConfig).h17 = function (zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond, $super) {
|
|
1586
|
+
zoomLevel = zoomLevel === VOID ? this.t15_1 : zoomLevel;
|
|
1587
|
+
cacheSize = cacheSize === VOID ? this.u15_1 : cacheSize;
|
|
1588
|
+
tileUrlTemplate = tileUrlTemplate === VOID ? this.v15_1 : tileUrlTemplate;
|
|
1589
|
+
tileSize = tileSize === VOID ? this.w15_1 : tileSize;
|
|
1590
|
+
attribution = attribution === VOID ? this.x15_1 : attribution;
|
|
1591
|
+
encoding = encoding === VOID ? this.y15_1 : encoding;
|
|
1592
|
+
maxRequestsPerSecond = maxRequestsPerSecond === VOID ? this.z15_1 : maxRequestsPerSecond;
|
|
1593
|
+
return $super === VOID ? this.g17(zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond) : $super.g17.call(this, zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond);
|
|
1593
1594
|
};
|
|
1594
1595
|
protoOf(ElevationProviderConfig).toString = function () {
|
|
1595
|
-
return 'ElevationProviderConfig(zoomLevel=' + this.
|
|
1596
|
+
return 'ElevationProviderConfig(zoomLevel=' + this.t15_1 + ', cacheSize=' + this.u15_1 + ', tileUrlTemplate=' + this.v15_1 + ', tileSize=' + this.w15_1 + ', attribution=' + this.x15_1.toString() + ', encoding=' + this.y15_1.toString() + ', maxRequestsPerSecond=' + this.z15_1 + ')';
|
|
1596
1597
|
};
|
|
1597
1598
|
protoOf(ElevationProviderConfig).hashCode = function () {
|
|
1598
|
-
var result = this.
|
|
1599
|
-
result = imul(result, 31) + this.s15_1 | 0;
|
|
1600
|
-
result = imul(result, 31) + getStringHashCode(this.t15_1) | 0;
|
|
1599
|
+
var result = this.t15_1;
|
|
1601
1600
|
result = imul(result, 31) + this.u15_1 | 0;
|
|
1602
|
-
result = imul(result, 31) + this.v15_1
|
|
1603
|
-
result = imul(result, 31) + this.w15_1
|
|
1604
|
-
result = imul(result, 31) + this.x15_1 | 0;
|
|
1601
|
+
result = imul(result, 31) + getStringHashCode(this.v15_1) | 0;
|
|
1602
|
+
result = imul(result, 31) + this.w15_1 | 0;
|
|
1603
|
+
result = imul(result, 31) + this.x15_1.hashCode() | 0;
|
|
1604
|
+
result = imul(result, 31) + this.y15_1.hashCode() | 0;
|
|
1605
|
+
result = imul(result, 31) + this.z15_1 | 0;
|
|
1605
1606
|
return result;
|
|
1606
1607
|
};
|
|
1607
1608
|
protoOf(ElevationProviderConfig).equals = function (other) {
|
|
@@ -1609,33 +1610,33 @@
|
|
|
1609
1610
|
return true;
|
|
1610
1611
|
if (!(other instanceof ElevationProviderConfig))
|
|
1611
1612
|
return false;
|
|
1612
|
-
if (!(this.r15_1 === other.r15_1))
|
|
1613
|
-
return false;
|
|
1614
|
-
if (!(this.s15_1 === other.s15_1))
|
|
1615
|
-
return false;
|
|
1616
1613
|
if (!(this.t15_1 === other.t15_1))
|
|
1617
1614
|
return false;
|
|
1618
1615
|
if (!(this.u15_1 === other.u15_1))
|
|
1619
1616
|
return false;
|
|
1620
|
-
if (!this.v15_1
|
|
1617
|
+
if (!(this.v15_1 === other.v15_1))
|
|
1621
1618
|
return false;
|
|
1622
|
-
if (!this.w15_1
|
|
1619
|
+
if (!(this.w15_1 === other.w15_1))
|
|
1623
1620
|
return false;
|
|
1624
|
-
if (!
|
|
1621
|
+
if (!this.x15_1.equals(other.x15_1))
|
|
1622
|
+
return false;
|
|
1623
|
+
if (!this.y15_1.equals(other.y15_1))
|
|
1624
|
+
return false;
|
|
1625
|
+
if (!(this.z15_1 === other.z15_1))
|
|
1625
1626
|
return false;
|
|
1626
1627
|
return true;
|
|
1627
1628
|
};
|
|
1628
1629
|
function Attribution(text, url) {
|
|
1629
1630
|
url = url === VOID ? null : url;
|
|
1630
|
-
this.
|
|
1631
|
-
this.
|
|
1631
|
+
this.i17_1 = text;
|
|
1632
|
+
this.j17_1 = url;
|
|
1632
1633
|
}
|
|
1633
1634
|
protoOf(Attribution).toString = function () {
|
|
1634
|
-
return 'Attribution(text=' + this.
|
|
1635
|
+
return 'Attribution(text=' + this.i17_1 + ', url=' + this.j17_1 + ')';
|
|
1635
1636
|
};
|
|
1636
1637
|
protoOf(Attribution).hashCode = function () {
|
|
1637
|
-
var result = getStringHashCode(this.
|
|
1638
|
-
result = imul(result, 31) + (this.
|
|
1638
|
+
var result = getStringHashCode(this.i17_1);
|
|
1639
|
+
result = imul(result, 31) + (this.j17_1 == null ? 0 : getStringHashCode(this.j17_1)) | 0;
|
|
1639
1640
|
return result;
|
|
1640
1641
|
};
|
|
1641
1642
|
protoOf(Attribution).equals = function (other) {
|
|
@@ -1643,9 +1644,9 @@
|
|
|
1643
1644
|
return true;
|
|
1644
1645
|
if (!(other instanceof Attribution))
|
|
1645
1646
|
return false;
|
|
1646
|
-
if (!(this.
|
|
1647
|
+
if (!(this.i17_1 === other.i17_1))
|
|
1647
1648
|
return false;
|
|
1648
|
-
if (!(this.
|
|
1649
|
+
if (!(this.j17_1 == other.j17_1))
|
|
1649
1650
|
return false;
|
|
1650
1651
|
return true;
|
|
1651
1652
|
};
|
|
@@ -1655,7 +1656,7 @@
|
|
|
1655
1656
|
}
|
|
1656
1657
|
function ElevationSmoother() {
|
|
1657
1658
|
}
|
|
1658
|
-
protoOf(ElevationSmoother).
|
|
1659
|
+
protoOf(ElevationSmoother).v10 = function (points, windowSize) {
|
|
1659
1660
|
if (points.o() < 3)
|
|
1660
1661
|
return points;
|
|
1661
1662
|
// Inline function 'kotlin.require' call
|
|
@@ -1663,17 +1664,17 @@
|
|
|
1663
1664
|
var message = 'Invalid window size: ' + formatWindow(ElevationSmoother_instance, windowSize) + '. Must be positive';
|
|
1664
1665
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1665
1666
|
}
|
|
1666
|
-
var distances = Distance_instance.
|
|
1667
|
+
var distances = Distance_instance.i11(points);
|
|
1667
1668
|
var tmp = 0;
|
|
1668
1669
|
var tmp_0 = points.o();
|
|
1669
1670
|
var tmp_1 = new Float64Array(tmp_0);
|
|
1670
1671
|
while (tmp < tmp_0) {
|
|
1671
1672
|
var tmp_2 = tmp;
|
|
1672
|
-
tmp_1[tmp_2] = points.p(tmp_2).
|
|
1673
|
+
tmp_1[tmp_2] = points.p(tmp_2).e11();
|
|
1673
1674
|
tmp = tmp + 1 | 0;
|
|
1674
1675
|
}
|
|
1675
1676
|
var elevations = tmp_1;
|
|
1676
|
-
var smoothed = this.
|
|
1677
|
+
var smoothed = this.k17(distances, elevations, windowSize);
|
|
1677
1678
|
// Inline function 'kotlin.collections.List' call
|
|
1678
1679
|
// Inline function 'kotlin.collections.MutableList' call
|
|
1679
1680
|
var size = points.o();
|
|
@@ -1690,7 +1691,7 @@
|
|
|
1690
1691
|
while (inductionVariable < size);
|
|
1691
1692
|
return list;
|
|
1692
1693
|
};
|
|
1693
|
-
protoOf(ElevationSmoother).
|
|
1694
|
+
protoOf(ElevationSmoother).k17 = function (distanceM, elevationM, windowSize) {
|
|
1694
1695
|
// Inline function 'kotlin.require' call
|
|
1695
1696
|
if (!(distanceM.length === elevationM.length)) {
|
|
1696
1697
|
var message = 'distanceM (' + distanceM.length + ') and elevationM (' + elevationM.length + ') must have the same length';
|
|
@@ -1789,9 +1790,9 @@
|
|
|
1789
1790
|
var ElevationSource_IGN_LIDAR_HD_instance;
|
|
1790
1791
|
function Companion() {
|
|
1791
1792
|
Companion_instance_0 = this;
|
|
1792
|
-
this.
|
|
1793
|
+
this.l17_1 = ElevationSource_MAPTERHORN_getInstance();
|
|
1793
1794
|
}
|
|
1794
|
-
protoOf(Companion).
|
|
1795
|
+
protoOf(Companion).m17 = function () {
|
|
1795
1796
|
// Inline function 'kotlin.collections.map' call
|
|
1796
1797
|
var this_0 = get_entries();
|
|
1797
1798
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1799,12 +1800,12 @@
|
|
|
1799
1800
|
var _iterator__ex2g4s = this_0.l();
|
|
1800
1801
|
while (_iterator__ex2g4s.m()) {
|
|
1801
1802
|
var item = _iterator__ex2g4s.n();
|
|
1802
|
-
var tmp$ret$2 = item.
|
|
1803
|
+
var tmp$ret$2 = item.p17_1;
|
|
1803
1804
|
destination.k(tmp$ret$2);
|
|
1804
1805
|
}
|
|
1805
1806
|
return destination;
|
|
1806
1807
|
};
|
|
1807
|
-
protoOf(Companion).
|
|
1808
|
+
protoOf(Companion).q17 = function (id) {
|
|
1808
1809
|
var tmp0 = get_entries();
|
|
1809
1810
|
var tmp$ret$0;
|
|
1810
1811
|
$l$block: {
|
|
@@ -1812,7 +1813,7 @@
|
|
|
1812
1813
|
var _iterator__ex2g4s = tmp0.l();
|
|
1813
1814
|
while (_iterator__ex2g4s.m()) {
|
|
1814
1815
|
var element = _iterator__ex2g4s.n();
|
|
1815
|
-
if (element.
|
|
1816
|
+
if (element.p17_1 === id) {
|
|
1816
1817
|
tmp$ret$0 = element;
|
|
1817
1818
|
break $l$block;
|
|
1818
1819
|
}
|
|
@@ -1822,7 +1823,7 @@
|
|
|
1822
1823
|
var tmp0_elvis_lhs = tmp$ret$0;
|
|
1823
1824
|
var tmp;
|
|
1824
1825
|
if (tmp0_elvis_lhs == null) {
|
|
1825
|
-
throw IllegalArgumentException_init_$Create$("Unknown DEM source '" + id + "' \u2014 expected one of " + joinToString(this.
|
|
1826
|
+
throw IllegalArgumentException_init_$Create$("Unknown DEM source '" + id + "' \u2014 expected one of " + joinToString(this.m17()));
|
|
1826
1827
|
} else {
|
|
1827
1828
|
tmp = tmp0_elvis_lhs;
|
|
1828
1829
|
}
|
|
@@ -1846,9 +1847,9 @@
|
|
|
1846
1847
|
var $ENTRIES;
|
|
1847
1848
|
function ElevationSource(name, ordinal, id) {
|
|
1848
1849
|
Enum.call(this, name, ordinal);
|
|
1849
|
-
this.
|
|
1850
|
+
this.p17_1 = id;
|
|
1850
1851
|
}
|
|
1851
|
-
protoOf(ElevationSource).
|
|
1852
|
+
protoOf(ElevationSource).r17 = function () {
|
|
1852
1853
|
var tmp;
|
|
1853
1854
|
switch (this.v1_1) {
|
|
1854
1855
|
case 0:
|
|
@@ -1863,14 +1864,14 @@
|
|
|
1863
1864
|
}
|
|
1864
1865
|
return tmp;
|
|
1865
1866
|
};
|
|
1866
|
-
protoOf(ElevationSource).
|
|
1867
|
+
protoOf(ElevationSource).s17 = function () {
|
|
1867
1868
|
var tmp;
|
|
1868
1869
|
switch (this.v1_1) {
|
|
1869
1870
|
case 0:
|
|
1870
|
-
tmp = (new ElevationProviderConfig()).
|
|
1871
|
+
tmp = (new ElevationProviderConfig()).t15_1;
|
|
1871
1872
|
break;
|
|
1872
1873
|
case 1:
|
|
1873
|
-
tmp = IgnLidarHdLayer_MNT_getInstance().
|
|
1874
|
+
tmp = IgnLidarHdLayer_MNT_getInstance().s17();
|
|
1874
1875
|
break;
|
|
1875
1876
|
default:
|
|
1876
1877
|
noWhenBranchMatchedException();
|
|
@@ -1878,15 +1879,15 @@
|
|
|
1878
1879
|
}
|
|
1879
1880
|
return tmp;
|
|
1880
1881
|
};
|
|
1881
|
-
protoOf(ElevationSource).
|
|
1882
|
+
protoOf(ElevationSource).w17 = function (zoomLevel) {
|
|
1882
1883
|
var tmp;
|
|
1883
1884
|
switch (this.v1_1) {
|
|
1884
1885
|
case 0:
|
|
1885
|
-
tmp = new ElevationProviderConfig(zoomLevel == null ? this.
|
|
1886
|
+
tmp = new ElevationProviderConfig(zoomLevel == null ? this.s17() : zoomLevel);
|
|
1886
1887
|
break;
|
|
1887
1888
|
case 1:
|
|
1888
1889
|
var tmp_0 = IgnLidarHdLayer_MNT_getInstance();
|
|
1889
|
-
tmp = tmp_0.
|
|
1890
|
+
tmp = tmp_0.w17(zoomLevel == null ? this.s17() : zoomLevel);
|
|
1890
1891
|
break;
|
|
1891
1892
|
default:
|
|
1892
1893
|
noWhenBranchMatchedException();
|
|
@@ -1903,31 +1904,31 @@
|
|
|
1903
1904
|
tmp = fetcherFor;
|
|
1904
1905
|
}
|
|
1905
1906
|
fetcherFor = tmp;
|
|
1906
|
-
var config = _this__u8e3s4.
|
|
1907
|
+
var config = _this__u8e3s4.w17(zoomLevel);
|
|
1907
1908
|
var primary = ElevationProvider_init_$Create$(config, fetcherFor(config));
|
|
1908
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1909
|
+
var tmp0_safe_receiver = _this__u8e3s4.r17();
|
|
1909
1910
|
var tmp_0;
|
|
1910
1911
|
if (tmp0_safe_receiver == null) {
|
|
1911
1912
|
tmp_0 = null;
|
|
1912
1913
|
} else {
|
|
1913
1914
|
// Inline function 'kotlin.let' call
|
|
1914
|
-
tmp_0 = primary.
|
|
1915
|
+
tmp_0 = primary.a16(provider(tmp0_safe_receiver, null, fetcherFor));
|
|
1915
1916
|
}
|
|
1916
1917
|
var tmp1_elvis_lhs = tmp_0;
|
|
1917
1918
|
var withFallback = tmp1_elvis_lhs == null ? primary : tmp1_elvis_lhs;
|
|
1918
1919
|
var tmp_1;
|
|
1919
|
-
if (_this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) && config.
|
|
1920
|
-
tmp_1 = withFallback.
|
|
1920
|
+
if (_this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) && config.t15_1 === IgnLidarHdLayer_MNS_getInstance().s17()) {
|
|
1921
|
+
tmp_1 = withFallback.b16(provider_0(IgnLidarHdLayer_MNS_getInstance(), null, fetcherFor));
|
|
1921
1922
|
} else {
|
|
1922
1923
|
tmp_1 = withFallback;
|
|
1923
1924
|
}
|
|
1924
1925
|
return tmp_1;
|
|
1925
1926
|
}
|
|
1926
1927
|
function wmsBbox4326(tc) {
|
|
1927
|
-
var tiles = 1 << tc.
|
|
1928
|
-
var west = tc.
|
|
1929
|
-
var east = (tc.
|
|
1930
|
-
return '' + tileNorthLatitude(tc.
|
|
1928
|
+
var tiles = 1 << tc.b10_1;
|
|
1929
|
+
var west = tc.zz_1 / tiles * 360.0 - 180.0;
|
|
1930
|
+
var east = (tc.zz_1 + 1 | 0) / tiles * 360.0 - 180.0;
|
|
1931
|
+
return '' + tileNorthLatitude(tc.a10_1 + 1 | 0, tiles) + ',' + west + ',' + tileNorthLatitude(tc.a10_1, tiles) + ',' + east;
|
|
1931
1932
|
}
|
|
1932
1933
|
function tileNorthLatitude(y, tiles) {
|
|
1933
1934
|
// Inline function 'kotlin.math.sinh' call
|
|
@@ -1945,19 +1946,19 @@
|
|
|
1945
1946
|
return ElevationSource_IGN_LIDAR_HD_instance;
|
|
1946
1947
|
}
|
|
1947
1948
|
function Flux$forEachParallel$slambda$slambda($semaphore, $action, $item, resultContinuation) {
|
|
1948
|
-
this.
|
|
1949
|
-
this.
|
|
1950
|
-
this.
|
|
1949
|
+
this.f18_1 = $semaphore;
|
|
1950
|
+
this.g18_1 = $action;
|
|
1951
|
+
this.h18_1 = $item;
|
|
1951
1952
|
CoroutineImpl.call(this, resultContinuation);
|
|
1952
1953
|
}
|
|
1953
|
-
protoOf(Flux$forEachParallel$slambda$slambda).
|
|
1954
|
-
var tmp = this.
|
|
1954
|
+
protoOf(Flux$forEachParallel$slambda$slambda).l18 = function ($this$async, $completion) {
|
|
1955
|
+
var tmp = this.m18($this$async, $completion);
|
|
1955
1956
|
tmp.i7_1 = Unit_instance;
|
|
1956
1957
|
tmp.j7_1 = null;
|
|
1957
1958
|
return tmp.o7();
|
|
1958
1959
|
};
|
|
1959
1960
|
protoOf(Flux$forEachParallel$slambda$slambda).w7 = function (p1, $completion) {
|
|
1960
|
-
return this.
|
|
1961
|
+
return this.l18((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1961
1962
|
};
|
|
1962
1963
|
protoOf(Flux$forEachParallel$slambda$slambda).o7 = function () {
|
|
1963
1964
|
var suspendResult = this.i7_1;
|
|
@@ -1967,41 +1968,41 @@
|
|
|
1967
1968
|
switch (tmp) {
|
|
1968
1969
|
case 0:
|
|
1969
1970
|
this.h7_1 = 6;
|
|
1970
|
-
this.
|
|
1971
|
+
this.j18_1 = this.f18_1;
|
|
1971
1972
|
this.g7_1 = 1;
|
|
1972
|
-
suspendResult = this.
|
|
1973
|
+
suspendResult = this.j18_1.zv(this);
|
|
1973
1974
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1974
1975
|
return suspendResult;
|
|
1975
1976
|
}
|
|
1976
1977
|
|
|
1977
1978
|
continue $sm;
|
|
1978
1979
|
case 1:
|
|
1979
|
-
this.
|
|
1980
|
+
this.k18_1 = Unit_instance;
|
|
1980
1981
|
this.g7_1 = 2;
|
|
1981
1982
|
continue $sm;
|
|
1982
1983
|
case 2:
|
|
1983
1984
|
this.h7_1 = 5;
|
|
1984
1985
|
this.g7_1 = 3;
|
|
1985
|
-
suspendResult = this.
|
|
1986
|
+
suspendResult = this.g18_1(this.h18_1, this);
|
|
1986
1987
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1987
1988
|
return suspendResult;
|
|
1988
1989
|
}
|
|
1989
1990
|
|
|
1990
1991
|
continue $sm;
|
|
1991
1992
|
case 3:
|
|
1992
|
-
this.
|
|
1993
|
+
this.k18_1 = Unit_instance;
|
|
1993
1994
|
this.h7_1 = 6;
|
|
1994
1995
|
this.g7_1 = 4;
|
|
1995
1996
|
continue $sm;
|
|
1996
1997
|
case 4:
|
|
1997
|
-
this.
|
|
1998
|
+
this.k18_1;
|
|
1998
1999
|
this.h7_1 = 6;
|
|
1999
|
-
this.
|
|
2000
|
+
this.j18_1.tv();
|
|
2000
2001
|
return Unit_instance;
|
|
2001
2002
|
case 5:
|
|
2002
2003
|
this.h7_1 = 6;
|
|
2003
2004
|
var t = this.j7_1;
|
|
2004
|
-
this.
|
|
2005
|
+
this.j18_1.tv();
|
|
2005
2006
|
throw t;
|
|
2006
2007
|
case 6:
|
|
2007
2008
|
throw this.j7_1;
|
|
@@ -2017,31 +2018,31 @@
|
|
|
2017
2018
|
}
|
|
2018
2019
|
while (true);
|
|
2019
2020
|
};
|
|
2020
|
-
protoOf(Flux$forEachParallel$slambda$slambda).
|
|
2021
|
-
var i = new Flux$forEachParallel$slambda$slambda(this.
|
|
2022
|
-
i.
|
|
2021
|
+
protoOf(Flux$forEachParallel$slambda$slambda).m18 = function ($this$async, completion) {
|
|
2022
|
+
var i = new Flux$forEachParallel$slambda$slambda(this.f18_1, this.g18_1, this.h18_1, completion);
|
|
2023
|
+
i.i18_1 = $this$async;
|
|
2023
2024
|
return i;
|
|
2024
2025
|
};
|
|
2025
2026
|
function Flux$forEachParallel$slambda$slambda_0($semaphore, $action, $item, resultContinuation) {
|
|
2026
2027
|
var i = new Flux$forEachParallel$slambda$slambda($semaphore, $action, $item, resultContinuation);
|
|
2027
2028
|
return constructCallableReference(function ($this$async, $completion) {
|
|
2028
|
-
return i.
|
|
2029
|
+
return i.l18($this$async, $completion);
|
|
2029
2030
|
}, 1);
|
|
2030
2031
|
}
|
|
2031
2032
|
function Flux$forEachParallel$slambda($maxParallel, $items, $action, resultContinuation) {
|
|
2032
|
-
this.
|
|
2033
|
-
this.
|
|
2034
|
-
this.
|
|
2033
|
+
this.v18_1 = $maxParallel;
|
|
2034
|
+
this.w18_1 = $items;
|
|
2035
|
+
this.x18_1 = $action;
|
|
2035
2036
|
CoroutineImpl.call(this, resultContinuation);
|
|
2036
2037
|
}
|
|
2037
|
-
protoOf(Flux$forEachParallel$slambda).
|
|
2038
|
-
var tmp = this.
|
|
2038
|
+
protoOf(Flux$forEachParallel$slambda).z18 = function ($this$coroutineScope, $completion) {
|
|
2039
|
+
var tmp = this.m18($this$coroutineScope, $completion);
|
|
2039
2040
|
tmp.i7_1 = Unit_instance;
|
|
2040
2041
|
tmp.j7_1 = null;
|
|
2041
2042
|
return tmp.o7();
|
|
2042
2043
|
};
|
|
2043
2044
|
protoOf(Flux$forEachParallel$slambda).w7 = function (p1, $completion) {
|
|
2044
|
-
return this.
|
|
2045
|
+
return this.z18((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2045
2046
|
};
|
|
2046
2047
|
protoOf(Flux$forEachParallel$slambda).o7 = function () {
|
|
2047
2048
|
var suspendResult = this.i7_1;
|
|
@@ -2051,14 +2052,14 @@
|
|
|
2051
2052
|
switch (tmp) {
|
|
2052
2053
|
case 0:
|
|
2053
2054
|
this.h7_1 = 2;
|
|
2054
|
-
var semaphore = Semaphore(this.
|
|
2055
|
+
var semaphore = Semaphore(this.v18_1);
|
|
2055
2056
|
this.g7_1 = 1;
|
|
2056
|
-
var this_0 = this.
|
|
2057
|
+
var this_0 = this.w18_1;
|
|
2057
2058
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2058
2059
|
var _iterator__ex2g4s = this_0.l();
|
|
2059
2060
|
while (_iterator__ex2g4s.m()) {
|
|
2060
2061
|
var item = _iterator__ex2g4s.n();
|
|
2061
|
-
destination.k(async(this.
|
|
2062
|
+
destination.k(async(this.y18_1, VOID, VOID, Flux$forEachParallel$slambda$slambda_0(semaphore, this.x18_1, item, null)));
|
|
2062
2063
|
}
|
|
2063
2064
|
|
|
2064
2065
|
suspendResult = awaitAll(destination, this);
|
|
@@ -2083,23 +2084,23 @@
|
|
|
2083
2084
|
}
|
|
2084
2085
|
while (true);
|
|
2085
2086
|
};
|
|
2086
|
-
protoOf(Flux$forEachParallel$slambda).
|
|
2087
|
-
var i = new Flux$forEachParallel$slambda(this.
|
|
2088
|
-
i.
|
|
2087
|
+
protoOf(Flux$forEachParallel$slambda).m18 = function ($this$coroutineScope, completion) {
|
|
2088
|
+
var i = new Flux$forEachParallel$slambda(this.v18_1, this.w18_1, this.x18_1, completion);
|
|
2089
|
+
i.y18_1 = $this$coroutineScope;
|
|
2089
2090
|
return i;
|
|
2090
2091
|
};
|
|
2091
2092
|
function Flux$forEachParallel$slambda_0($maxParallel, $items, $action, resultContinuation) {
|
|
2092
2093
|
var i = new Flux$forEachParallel$slambda($maxParallel, $items, $action, resultContinuation);
|
|
2093
2094
|
return constructCallableReference(function ($this$coroutineScope, $completion) {
|
|
2094
|
-
return i.
|
|
2095
|
+
return i.z18($this$coroutineScope, $completion);
|
|
2095
2096
|
}, 1);
|
|
2096
2097
|
}
|
|
2097
2098
|
function $forEachParallelCOROUTINE$(_this__u8e3s4, items, maxParallel, action, resultContinuation) {
|
|
2098
2099
|
CoroutineImpl.call(this, resultContinuation);
|
|
2099
|
-
this.
|
|
2100
|
-
this.
|
|
2101
|
-
this.
|
|
2102
|
-
this.
|
|
2100
|
+
this.i19_1 = _this__u8e3s4;
|
|
2101
|
+
this.j19_1 = items;
|
|
2102
|
+
this.k19_1 = maxParallel;
|
|
2103
|
+
this.l19_1 = action;
|
|
2103
2104
|
}
|
|
2104
2105
|
protoOf($forEachParallelCOROUTINE$).o7 = function () {
|
|
2105
2106
|
var suspendResult = this.i7_1;
|
|
@@ -2109,13 +2110,13 @@
|
|
|
2109
2110
|
switch (tmp) {
|
|
2110
2111
|
case 0:
|
|
2111
2112
|
this.h7_1 = 2;
|
|
2112
|
-
if (!(this.
|
|
2113
|
-
var message = 'maxParallel must be >= 1, got ' + this.
|
|
2113
|
+
if (!(this.k19_1 >= 1)) {
|
|
2114
|
+
var message = 'maxParallel must be >= 1, got ' + this.k19_1;
|
|
2114
2115
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2115
2116
|
}
|
|
2116
2117
|
|
|
2117
2118
|
this.g7_1 = 1;
|
|
2118
|
-
suspendResult = coroutineScope(Flux$forEachParallel$slambda_0(this.
|
|
2119
|
+
suspendResult = coroutineScope(Flux$forEachParallel$slambda_0(this.k19_1, this.j19_1, this.l19_1, null), this);
|
|
2119
2120
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2120
2121
|
return suspendResult;
|
|
2121
2122
|
}
|
|
@@ -2139,7 +2140,7 @@
|
|
|
2139
2140
|
};
|
|
2140
2141
|
function Flux() {
|
|
2141
2142
|
}
|
|
2142
|
-
protoOf(Flux).
|
|
2143
|
+
protoOf(Flux).c10 = function (items, maxParallel, action, $completion) {
|
|
2143
2144
|
var tmp = new $forEachParallelCOROUTINE$(this, items, maxParallel, action, $completion);
|
|
2144
2145
|
tmp.i7_1 = Unit_instance;
|
|
2145
2146
|
tmp.j7_1 = null;
|
|
@@ -2163,14 +2164,14 @@
|
|
|
2163
2164
|
var IgnLidarHdLayer_MNH_instance;
|
|
2164
2165
|
function IgnLidarHdLayer(name, ordinal, wmsLayer) {
|
|
2165
2166
|
Enum.call(this, name, ordinal);
|
|
2166
|
-
this.
|
|
2167
|
+
this.v17_1 = wmsLayer;
|
|
2167
2168
|
}
|
|
2168
|
-
protoOf(IgnLidarHdLayer).
|
|
2169
|
+
protoOf(IgnLidarHdLayer).s17 = function () {
|
|
2169
2170
|
return 15;
|
|
2170
2171
|
};
|
|
2171
|
-
protoOf(IgnLidarHdLayer).
|
|
2172
|
-
var tmp1_zoomLevel = zoomLevel == null ? this.
|
|
2173
|
-
var tmp3_tileUrlTemplate = ignWmsTemplate(this.
|
|
2172
|
+
protoOf(IgnLidarHdLayer).w17 = function (zoomLevel) {
|
|
2173
|
+
var tmp1_zoomLevel = zoomLevel == null ? this.s17() : zoomLevel;
|
|
2174
|
+
var tmp3_tileUrlTemplate = ignWmsTemplate(this.v17_1, 256);
|
|
2174
2175
|
var tmp4_encoding = TileEncoding_BIL32_getInstance();
|
|
2175
2176
|
var tmp5_attribution = new Attribution('\xA9 IGN \u2014 LiDAR HD ' + this.u1_1 + ', Licence Ouverte Etalab 2.0', 'https://geoservices.ign.fr/lidarhd');
|
|
2176
2177
|
return new ElevationProviderConfig(tmp1_zoomLevel, VOID, tmp3_tileUrlTemplate, 256, tmp5_attribution, tmp4_encoding, 20);
|
|
@@ -2184,7 +2185,7 @@
|
|
|
2184
2185
|
tmp = fetcherFor;
|
|
2185
2186
|
}
|
|
2186
2187
|
fetcherFor = tmp;
|
|
2187
|
-
var config = _this__u8e3s4.
|
|
2188
|
+
var config = _this__u8e3s4.w17(zoomLevel);
|
|
2188
2189
|
return ElevationProvider_init_$Create$_0(config, fetcherFor(config), true);
|
|
2189
2190
|
}
|
|
2190
2191
|
function ignWmsTemplate(layer, tileSize) {
|
|
@@ -2199,13 +2200,13 @@
|
|
|
2199
2200
|
return IgnLidarHdLayer_MNS_instance;
|
|
2200
2201
|
}
|
|
2201
2202
|
function Hit(value) {
|
|
2202
|
-
this.
|
|
2203
|
+
this.m19_1 = value;
|
|
2203
2204
|
}
|
|
2204
2205
|
function Await(deferred) {
|
|
2205
|
-
this.
|
|
2206
|
+
this.n19_1 = deferred;
|
|
2206
2207
|
}
|
|
2207
2208
|
function Owner(deferred) {
|
|
2208
|
-
this.
|
|
2209
|
+
this.o19_1 = deferred;
|
|
2209
2210
|
}
|
|
2210
2211
|
function LoadAbandoned() {
|
|
2211
2212
|
Exception_init_$Init$('load abandoned by its cancelled owner', this);
|
|
@@ -2224,18 +2225,18 @@
|
|
|
2224
2225
|
return tmp.o7();
|
|
2225
2226
|
}
|
|
2226
2227
|
function LruCache$load$slambda(this$0, $key, resultContinuation) {
|
|
2227
|
-
this.
|
|
2228
|
-
this.
|
|
2228
|
+
this.x1a_1 = this$0;
|
|
2229
|
+
this.y1a_1 = $key;
|
|
2229
2230
|
CoroutineImpl.call(this, resultContinuation);
|
|
2230
2231
|
}
|
|
2231
|
-
protoOf(LruCache$load$slambda).
|
|
2232
|
-
var tmp = this.
|
|
2232
|
+
protoOf(LruCache$load$slambda).c1b = function ($this$withContext, $completion) {
|
|
2233
|
+
var tmp = this.m18($this$withContext, $completion);
|
|
2233
2234
|
tmp.i7_1 = Unit_instance;
|
|
2234
2235
|
tmp.j7_1 = null;
|
|
2235
2236
|
return tmp.o7();
|
|
2236
2237
|
};
|
|
2237
2238
|
protoOf(LruCache$load$slambda).w7 = function (p1, $completion) {
|
|
2238
|
-
return this.
|
|
2239
|
+
return this.c1b((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2239
2240
|
};
|
|
2240
2241
|
protoOf(LruCache$load$slambda).o7 = function () {
|
|
2241
2242
|
var suspendResult = this.i7_1;
|
|
@@ -2245,10 +2246,10 @@
|
|
|
2245
2246
|
switch (tmp) {
|
|
2246
2247
|
case 0:
|
|
2247
2248
|
this.h7_1 = 2;
|
|
2248
|
-
this.
|
|
2249
|
-
this.
|
|
2249
|
+
this.b1b_1 = this.x1a_1.g1b_1;
|
|
2250
|
+
this.a1b_1 = null;
|
|
2250
2251
|
this.g7_1 = 1;
|
|
2251
|
-
suspendResult = this.
|
|
2252
|
+
suspendResult = this.b1b_1.rv(this.a1b_1, this);
|
|
2252
2253
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2253
2254
|
return suspendResult;
|
|
2254
2255
|
}
|
|
@@ -2259,18 +2260,18 @@
|
|
|
2259
2260
|
l$ret$1: do {
|
|
2260
2261
|
var tmp_0;
|
|
2261
2262
|
try {
|
|
2262
|
-
tmp$ret$0 = this.
|
|
2263
|
+
tmp$ret$0 = this.x1a_1.i1b_1.t3(this.y1a_1);
|
|
2263
2264
|
break l$ret$1;
|
|
2264
2265
|
} catch ($p) {
|
|
2265
2266
|
var tmp_1;
|
|
2266
2267
|
var t = $p;
|
|
2267
|
-
this.
|
|
2268
|
+
this.b1b_1.cv(this.a1b_1);
|
|
2268
2269
|
throw t;
|
|
2269
2270
|
}
|
|
2270
2271
|
}
|
|
2271
2272
|
while (false);
|
|
2272
2273
|
var tmp_2 = tmp$ret$0;
|
|
2273
|
-
this.
|
|
2274
|
+
this.b1b_1.cv(this.a1b_1);
|
|
2274
2275
|
return tmp_2;
|
|
2275
2276
|
case 2:
|
|
2276
2277
|
throw this.j7_1;
|
|
@@ -2286,31 +2287,31 @@
|
|
|
2286
2287
|
}
|
|
2287
2288
|
while (true);
|
|
2288
2289
|
};
|
|
2289
|
-
protoOf(LruCache$load$slambda).
|
|
2290
|
-
var i = new LruCache$load$slambda(this.
|
|
2291
|
-
i.
|
|
2290
|
+
protoOf(LruCache$load$slambda).m18 = function ($this$withContext, completion) {
|
|
2291
|
+
var i = new LruCache$load$slambda(this.x1a_1, this.y1a_1, completion);
|
|
2292
|
+
i.z1a_1 = $this$withContext;
|
|
2292
2293
|
return i;
|
|
2293
2294
|
};
|
|
2294
2295
|
function LruCache$load$slambda_0(this$0, $key, resultContinuation) {
|
|
2295
2296
|
var i = new LruCache$load$slambda(this$0, $key, resultContinuation);
|
|
2296
2297
|
return constructCallableReference(function ($this$withContext, $completion) {
|
|
2297
|
-
return i.
|
|
2298
|
+
return i.c1b($this$withContext, $completion);
|
|
2298
2299
|
}, 1);
|
|
2299
2300
|
}
|
|
2300
2301
|
function LruCache$load$slambda_1(this$0, $key, $value, resultContinuation) {
|
|
2301
|
-
this.
|
|
2302
|
-
this.
|
|
2303
|
-
this.
|
|
2302
|
+
this.r1b_1 = this$0;
|
|
2303
|
+
this.s1b_1 = $key;
|
|
2304
|
+
this.t1b_1 = $value;
|
|
2304
2305
|
CoroutineImpl.call(this, resultContinuation);
|
|
2305
2306
|
}
|
|
2306
|
-
protoOf(LruCache$load$slambda_1).
|
|
2307
|
-
var tmp = this.
|
|
2307
|
+
protoOf(LruCache$load$slambda_1).x1b = function ($this$withContext, $completion) {
|
|
2308
|
+
var tmp = this.m18($this$withContext, $completion);
|
|
2308
2309
|
tmp.i7_1 = Unit_instance;
|
|
2309
2310
|
tmp.j7_1 = null;
|
|
2310
2311
|
return tmp.o7();
|
|
2311
2312
|
};
|
|
2312
2313
|
protoOf(LruCache$load$slambda_1).w7 = function (p1, $completion) {
|
|
2313
|
-
return this.
|
|
2314
|
+
return this.x1b((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2314
2315
|
};
|
|
2315
2316
|
protoOf(LruCache$load$slambda_1).o7 = function () {
|
|
2316
2317
|
var suspendResult = this.i7_1;
|
|
@@ -2320,10 +2321,10 @@
|
|
|
2320
2321
|
switch (tmp) {
|
|
2321
2322
|
case 0:
|
|
2322
2323
|
this.h7_1 = 2;
|
|
2323
|
-
this.
|
|
2324
|
-
this.
|
|
2324
|
+
this.w1b_1 = this.r1b_1.g1b_1;
|
|
2325
|
+
this.v1b_1 = null;
|
|
2325
2326
|
this.g7_1 = 1;
|
|
2326
|
-
suspendResult = this.
|
|
2327
|
+
suspendResult = this.w1b_1.rv(this.v1b_1, this);
|
|
2327
2328
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2328
2329
|
return suspendResult;
|
|
2329
2330
|
}
|
|
@@ -2334,37 +2335,37 @@
|
|
|
2334
2335
|
l$ret$1: do {
|
|
2335
2336
|
var tmp_0;
|
|
2336
2337
|
try {
|
|
2337
|
-
this.
|
|
2338
|
+
this.r1b_1.i1b_1.t3(this.s1b_1);
|
|
2338
2339
|
var oldest = null;
|
|
2339
2340
|
var tmp_1;
|
|
2340
|
-
if (this.
|
|
2341
|
-
var tmp0 = this.
|
|
2342
|
-
var key = this.
|
|
2341
|
+
if (this.r1b_1.h1b_1.o() >= this.r1b_1.d1b_1) {
|
|
2342
|
+
var tmp0 = this.r1b_1.h1b_1;
|
|
2343
|
+
var key = this.s1b_1;
|
|
2343
2344
|
tmp_1 = !(isInterface(tmp0, KtMap) ? tmp0 : THROW_CCE()).o1(key);
|
|
2344
2345
|
} else {
|
|
2345
2346
|
tmp_1 = false;
|
|
2346
2347
|
}
|
|
2347
2348
|
if (tmp_1) {
|
|
2348
|
-
var iter = this.
|
|
2349
|
+
var iter = this.r1b_1.h1b_1.t1().l();
|
|
2349
2350
|
oldest = iter.n().n1();
|
|
2350
2351
|
iter.s2();
|
|
2351
2352
|
}
|
|
2352
|
-
var tmp0_0 = this.
|
|
2353
|
-
var tmp2 = this.
|
|
2354
|
-
var value = this.
|
|
2353
|
+
var tmp0_0 = this.r1b_1.h1b_1;
|
|
2354
|
+
var tmp2 = this.s1b_1;
|
|
2355
|
+
var value = this.t1b_1;
|
|
2355
2356
|
tmp0_0.s3(tmp2, value);
|
|
2356
2357
|
tmp$ret$0 = oldest;
|
|
2357
2358
|
break l$ret$1;
|
|
2358
2359
|
} catch ($p) {
|
|
2359
2360
|
var tmp_2;
|
|
2360
2361
|
var t = $p;
|
|
2361
|
-
this.
|
|
2362
|
+
this.w1b_1.cv(this.v1b_1);
|
|
2362
2363
|
throw t;
|
|
2363
2364
|
}
|
|
2364
2365
|
}
|
|
2365
2366
|
while (false);
|
|
2366
2367
|
var tmp_3 = tmp$ret$0;
|
|
2367
|
-
this.
|
|
2368
|
+
this.w1b_1.cv(this.v1b_1);
|
|
2368
2369
|
return tmp_3;
|
|
2369
2370
|
case 2:
|
|
2370
2371
|
throw this.j7_1;
|
|
@@ -2380,21 +2381,21 @@
|
|
|
2380
2381
|
}
|
|
2381
2382
|
while (true);
|
|
2382
2383
|
};
|
|
2383
|
-
protoOf(LruCache$load$slambda_1).
|
|
2384
|
-
var i = new LruCache$load$slambda_1(this.
|
|
2385
|
-
i.
|
|
2384
|
+
protoOf(LruCache$load$slambda_1).m18 = function ($this$withContext, completion) {
|
|
2385
|
+
var i = new LruCache$load$slambda_1(this.r1b_1, this.s1b_1, this.t1b_1, completion);
|
|
2386
|
+
i.u1b_1 = $this$withContext;
|
|
2386
2387
|
return i;
|
|
2387
2388
|
};
|
|
2388
2389
|
function LruCache$load$slambda_2(this$0, $key, $value, resultContinuation) {
|
|
2389
2390
|
var i = new LruCache$load$slambda_1(this$0, $key, $value, resultContinuation);
|
|
2390
2391
|
return constructCallableReference(function ($this$withContext, $completion) {
|
|
2391
|
-
return i.
|
|
2392
|
+
return i.x1b($this$withContext, $completion);
|
|
2392
2393
|
}, 1);
|
|
2393
2394
|
}
|
|
2394
2395
|
function $getCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
|
|
2395
2396
|
CoroutineImpl.call(this, resultContinuation);
|
|
2396
|
-
this.
|
|
2397
|
-
this.
|
|
2397
|
+
this.g1c_1 = _this__u8e3s4;
|
|
2398
|
+
this.h1c_1 = key;
|
|
2398
2399
|
}
|
|
2399
2400
|
protoOf($getCOROUTINE$).o7 = function () {
|
|
2400
2401
|
var suspendResult = this.i7_1;
|
|
@@ -2413,7 +2414,7 @@
|
|
|
2413
2414
|
}
|
|
2414
2415
|
|
|
2415
2416
|
this.g7_1 = 2;
|
|
2416
|
-
suspendResult = lookupOrClaim(this.
|
|
2417
|
+
suspendResult = lookupOrClaim(this.g1c_1, this.h1c_1, this);
|
|
2417
2418
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2418
2419
|
return suspendResult;
|
|
2419
2420
|
}
|
|
@@ -2422,11 +2423,11 @@
|
|
|
2422
2423
|
case 2:
|
|
2423
2424
|
var lookup = suspendResult;
|
|
2424
2425
|
if (lookup instanceof Hit) {
|
|
2425
|
-
return lookup.
|
|
2426
|
+
return lookup.m19_1;
|
|
2426
2427
|
} else {
|
|
2427
2428
|
if (lookup instanceof Owner) {
|
|
2428
2429
|
this.g7_1 = 7;
|
|
2429
|
-
suspendResult = load(this.
|
|
2430
|
+
suspendResult = load(this.g1c_1, this.h1c_1, lookup.o19_1, this);
|
|
2430
2431
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2431
2432
|
return suspendResult;
|
|
2432
2433
|
}
|
|
@@ -2435,7 +2436,7 @@
|
|
|
2435
2436
|
if (lookup instanceof Await) {
|
|
2436
2437
|
this.h7_1 = 4;
|
|
2437
2438
|
this.g7_1 = 3;
|
|
2438
|
-
suspendResult = lookup.
|
|
2439
|
+
suspendResult = lookup.n19_1.gn(this);
|
|
2439
2440
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2440
2441
|
return suspendResult;
|
|
2441
2442
|
}
|
|
@@ -2487,8 +2488,8 @@
|
|
|
2487
2488
|
};
|
|
2488
2489
|
function $lookupOrClaimCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
|
|
2489
2490
|
CoroutineImpl.call(this, resultContinuation);
|
|
2490
|
-
this.
|
|
2491
|
-
this.
|
|
2491
|
+
this.x19_1 = _this__u8e3s4;
|
|
2492
|
+
this.y19_1 = key;
|
|
2492
2493
|
}
|
|
2493
2494
|
protoOf($lookupOrClaimCOROUTINE$).o7 = function () {
|
|
2494
2495
|
var suspendResult = this.i7_1;
|
|
@@ -2498,10 +2499,10 @@
|
|
|
2498
2499
|
switch (tmp) {
|
|
2499
2500
|
case 0:
|
|
2500
2501
|
this.h7_1 = 2;
|
|
2501
|
-
this.
|
|
2502
|
-
this.
|
|
2502
|
+
this.a1a_1 = this.x19_1.g1b_1;
|
|
2503
|
+
this.z19_1 = null;
|
|
2503
2504
|
this.g7_1 = 1;
|
|
2504
|
-
suspendResult = this.
|
|
2505
|
+
suspendResult = this.a1a_1.rv(this.z19_1, this);
|
|
2505
2506
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2506
2507
|
return suspendResult;
|
|
2507
2508
|
}
|
|
@@ -2514,22 +2515,22 @@
|
|
|
2514
2515
|
try {
|
|
2515
2516
|
var tmp$ret$0 = Unit_instance;
|
|
2516
2517
|
l$ret$1: do {
|
|
2517
|
-
var hit = this.
|
|
2518
|
+
var hit = this.x19_1.h1b_1.t3(this.y19_1);
|
|
2518
2519
|
if (!(hit == null)) {
|
|
2519
|
-
var tmp0 = this.
|
|
2520
|
-
var key = this.
|
|
2520
|
+
var tmp0 = this.x19_1.h1b_1;
|
|
2521
|
+
var key = this.y19_1;
|
|
2521
2522
|
tmp0.s3(key, hit);
|
|
2522
2523
|
tmp$ret$0 = new Hit(hit);
|
|
2523
2524
|
break l$ret$1;
|
|
2524
2525
|
}
|
|
2525
|
-
var raced = this.
|
|
2526
|
+
var raced = this.x19_1.i1b_1.q1(this.y19_1);
|
|
2526
2527
|
var tmp_1;
|
|
2527
2528
|
if (!(raced == null)) {
|
|
2528
2529
|
tmp_1 = new Await(raced);
|
|
2529
2530
|
} else {
|
|
2530
2531
|
var ours = CompletableDeferred();
|
|
2531
|
-
var tmp0_0 = this.
|
|
2532
|
-
var key_0 = this.
|
|
2532
|
+
var tmp0_0 = this.x19_1.i1b_1;
|
|
2533
|
+
var key_0 = this.y19_1;
|
|
2533
2534
|
tmp0_0.s3(key_0, ours);
|
|
2534
2535
|
tmp_1 = new Owner(ours);
|
|
2535
2536
|
}
|
|
@@ -2541,13 +2542,13 @@
|
|
|
2541
2542
|
} catch ($p) {
|
|
2542
2543
|
var tmp_2;
|
|
2543
2544
|
var t = $p;
|
|
2544
|
-
this.
|
|
2545
|
+
this.a1a_1.cv(this.z19_1);
|
|
2545
2546
|
throw t;
|
|
2546
2547
|
}
|
|
2547
2548
|
}
|
|
2548
2549
|
while (false);
|
|
2549
2550
|
var tmp_3 = tmp$ret$2;
|
|
2550
|
-
this.
|
|
2551
|
+
this.a1a_1.cv(this.z19_1);
|
|
2551
2552
|
return tmp_3;
|
|
2552
2553
|
case 2:
|
|
2553
2554
|
throw this.j7_1;
|
|
@@ -2565,9 +2566,9 @@
|
|
|
2565
2566
|
};
|
|
2566
2567
|
function $loadCOROUTINE$(_this__u8e3s4, key, ours, resultContinuation) {
|
|
2567
2568
|
CoroutineImpl.call(this, resultContinuation);
|
|
2568
|
-
this.
|
|
2569
|
-
this.
|
|
2570
|
-
this.
|
|
2569
|
+
this.j1a_1 = _this__u8e3s4;
|
|
2570
|
+
this.k1a_1 = key;
|
|
2571
|
+
this.l1a_1 = ours;
|
|
2571
2572
|
}
|
|
2572
2573
|
protoOf($loadCOROUTINE$).o7 = function () {
|
|
2573
2574
|
var suspendResult = this.i7_1;
|
|
@@ -2579,14 +2580,14 @@
|
|
|
2579
2580
|
this.h7_1 = 6;
|
|
2580
2581
|
this.h7_1 = 2;
|
|
2581
2582
|
this.g7_1 = 1;
|
|
2582
|
-
suspendResult = this.
|
|
2583
|
+
suspendResult = this.j1a_1.e1b_1(this.k1a_1, this);
|
|
2583
2584
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2584
2585
|
return suspendResult;
|
|
2585
2586
|
}
|
|
2586
2587
|
|
|
2587
2588
|
continue $sm;
|
|
2588
2589
|
case 1:
|
|
2589
|
-
this.
|
|
2590
|
+
this.n1a_1 = suspendResult;
|
|
2590
2591
|
this.h7_1 = 6;
|
|
2591
2592
|
this.g7_1 = 4;
|
|
2592
2593
|
continue $sm;
|
|
@@ -2594,10 +2595,10 @@
|
|
|
2594
2595
|
this.h7_1 = 6;
|
|
2595
2596
|
var tmp_0 = this.j7_1;
|
|
2596
2597
|
if (tmp_0 instanceof Error) {
|
|
2597
|
-
this.
|
|
2598
|
+
this.o1a_1 = this.j7_1;
|
|
2598
2599
|
this.g7_1 = 3;
|
|
2599
2600
|
var tmp_1 = NonCancellable_getInstance();
|
|
2600
|
-
suspendResult = withContext(tmp_1, LruCache$load$slambda_0(this.
|
|
2601
|
+
suspendResult = withContext(tmp_1, LruCache$load$slambda_0(this.j1a_1, this.k1a_1, null), this);
|
|
2601
2602
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2602
2603
|
return suspendResult;
|
|
2603
2604
|
}
|
|
@@ -2608,22 +2609,22 @@
|
|
|
2608
2609
|
|
|
2609
2610
|
case 3:
|
|
2610
2611
|
var tmp_2;
|
|
2611
|
-
var tmp_3 = this.
|
|
2612
|
+
var tmp_3 = this.o1a_1;
|
|
2612
2613
|
if (tmp_3 instanceof CancellationException) {
|
|
2613
2614
|
tmp_2 = new LoadAbandoned();
|
|
2614
2615
|
} else {
|
|
2615
|
-
tmp_2 = this.
|
|
2616
|
+
tmp_2 = this.o1a_1;
|
|
2616
2617
|
}
|
|
2617
2618
|
|
|
2618
|
-
this.
|
|
2619
|
+
this.l1a_1.kq(tmp_2);
|
|
2619
2620
|
var tmp_4 = this;
|
|
2620
|
-
throw this.
|
|
2621
|
+
throw this.o1a_1;
|
|
2621
2622
|
case 4:
|
|
2622
2623
|
this.h7_1 = 6;
|
|
2623
|
-
this.
|
|
2624
|
+
this.m1a_1 = this.n1a_1;
|
|
2624
2625
|
this.g7_1 = 5;
|
|
2625
2626
|
var tmp_5 = NonCancellable_getInstance();
|
|
2626
|
-
suspendResult = withContext(tmp_5, LruCache$load$slambda_2(this.
|
|
2627
|
+
suspendResult = withContext(tmp_5, LruCache$load$slambda_2(this.j1a_1, this.k1a_1, this.m1a_1, null), this);
|
|
2627
2628
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2628
2629
|
return suspendResult;
|
|
2629
2630
|
}
|
|
@@ -2631,16 +2632,16 @@
|
|
|
2631
2632
|
continue $sm;
|
|
2632
2633
|
case 5:
|
|
2633
2634
|
var evicted = suspendResult;
|
|
2634
|
-
this.
|
|
2635
|
+
this.l1a_1.jq(this.m1a_1);
|
|
2635
2636
|
if (!(evicted == null)) {
|
|
2636
|
-
var tmp0_safe_receiver = this.
|
|
2637
|
+
var tmp0_safe_receiver = this.j1a_1.f1b_1;
|
|
2637
2638
|
if (tmp0_safe_receiver == null)
|
|
2638
2639
|
null;
|
|
2639
2640
|
else
|
|
2640
2641
|
tmp0_safe_receiver(evicted);
|
|
2641
2642
|
}
|
|
2642
2643
|
|
|
2643
|
-
return this.
|
|
2644
|
+
return this.m1a_1;
|
|
2644
2645
|
case 6:
|
|
2645
2646
|
throw this.j7_1;
|
|
2646
2647
|
}
|
|
@@ -2657,33 +2658,33 @@
|
|
|
2657
2658
|
};
|
|
2658
2659
|
function LruCache(maxSize, loader, onEvict) {
|
|
2659
2660
|
onEvict = onEvict === VOID ? null : onEvict;
|
|
2660
|
-
this.
|
|
2661
|
-
this.
|
|
2662
|
-
this.
|
|
2661
|
+
this.d1b_1 = maxSize;
|
|
2662
|
+
this.e1b_1 = loader;
|
|
2663
|
+
this.f1b_1 = onEvict;
|
|
2663
2664
|
// Inline function 'kotlin.require' call
|
|
2664
|
-
if (!(this.
|
|
2665
|
+
if (!(this.d1b_1 > 0)) {
|
|
2665
2666
|
var message = 'Cache size must be greater than 0';
|
|
2666
2667
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2667
2668
|
}
|
|
2668
|
-
this.
|
|
2669
|
-
this.
|
|
2669
|
+
this.g1b_1 = Mutex();
|
|
2670
|
+
this.h1b_1 = LinkedHashMap_init_$Create$();
|
|
2670
2671
|
var tmp = this;
|
|
2671
2672
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2672
|
-
tmp.
|
|
2673
|
+
tmp.i1b_1 = LinkedHashMap_init_$Create$();
|
|
2673
2674
|
}
|
|
2674
|
-
protoOf(LruCache).
|
|
2675
|
+
protoOf(LruCache).i1c = function (key, $completion) {
|
|
2675
2676
|
var tmp = new $getCOROUTINE$(this, key, $completion);
|
|
2676
2677
|
tmp.i7_1 = Unit_instance;
|
|
2677
2678
|
tmp.j7_1 = null;
|
|
2678
2679
|
return tmp.o7();
|
|
2679
2680
|
};
|
|
2680
2681
|
function RawTile(width, height, rgba) {
|
|
2681
|
-
this.
|
|
2682
|
-
this.
|
|
2683
|
-
this.
|
|
2682
|
+
this.j1c_1 = width;
|
|
2683
|
+
this.k1c_1 = height;
|
|
2684
|
+
this.l1c_1 = rgba;
|
|
2684
2685
|
// Inline function 'kotlin.require' call
|
|
2685
|
-
if (!(this.
|
|
2686
|
-
var message = 'rgba size ' + this.
|
|
2686
|
+
if (!(this.l1c_1.length === imul(imul(this.j1c_1, this.k1c_1), 4))) {
|
|
2687
|
+
var message = 'rgba size ' + this.l1c_1.length + ' does not match width*height*4 (' + imul(imul(this.j1c_1, this.k1c_1), 4) + ')';
|
|
2687
2688
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2688
2689
|
}
|
|
2689
2690
|
}
|
|
@@ -2692,16 +2693,16 @@
|
|
|
2692
2693
|
return true;
|
|
2693
2694
|
if (!(other instanceof RawTile))
|
|
2694
2695
|
return false;
|
|
2695
|
-
return this.
|
|
2696
|
+
return this.j1c_1 === other.j1c_1 && this.k1c_1 === other.k1c_1 && contentEquals(this.l1c_1, other.l1c_1);
|
|
2696
2697
|
};
|
|
2697
2698
|
protoOf(RawTile).hashCode = function () {
|
|
2698
|
-
var result = this.
|
|
2699
|
-
result = imul(31, result) + this.
|
|
2700
|
-
result = imul(31, result) + contentHashCode(this.
|
|
2699
|
+
var result = this.j1c_1;
|
|
2700
|
+
result = imul(31, result) + this.k1c_1 | 0;
|
|
2701
|
+
result = imul(31, result) + contentHashCode(this.l1c_1) | 0;
|
|
2701
2702
|
return result;
|
|
2702
2703
|
};
|
|
2703
2704
|
function Tile_init_$Init$(raw, $this) {
|
|
2704
|
-
Tile.call($this, raw.
|
|
2705
|
+
Tile.call($this, raw.j1c_1, raw.k1c_1, raw.l1c_1);
|
|
2705
2706
|
return $this;
|
|
2706
2707
|
}
|
|
2707
2708
|
function Tile_init_$Create$(raw) {
|
|
@@ -2709,7 +2710,7 @@
|
|
|
2709
2710
|
}
|
|
2710
2711
|
function Companion_0() {
|
|
2711
2712
|
}
|
|
2712
|
-
protoOf(Companion_0).
|
|
2713
|
+
protoOf(Companion_0).m1c = function (r, g, b) {
|
|
2713
2714
|
var raw = r * 256.0 + g + b / 256.0 - 32768.0;
|
|
2714
2715
|
return round(raw * 100.0) / 100.0;
|
|
2715
2716
|
};
|
|
@@ -2718,74 +2719,74 @@
|
|
|
2718
2719
|
return Companion_instance_1;
|
|
2719
2720
|
}
|
|
2720
2721
|
function Tile(width, height, rgba) {
|
|
2721
|
-
this.
|
|
2722
|
-
this.
|
|
2723
|
-
this.
|
|
2722
|
+
this.w13_1 = width;
|
|
2723
|
+
this.x13_1 = height;
|
|
2724
|
+
this.y13_1 = rgba;
|
|
2724
2725
|
var tmp = this;
|
|
2725
2726
|
var tmp_0 = 0;
|
|
2726
|
-
var tmp_1 = imul(this.
|
|
2727
|
+
var tmp_1 = imul(this.w13_1, this.x13_1);
|
|
2727
2728
|
var tmp_2 = new Float64Array(tmp_1);
|
|
2728
2729
|
while (tmp_0 < tmp_1) {
|
|
2729
2730
|
tmp_2[tmp_0] = NaN;
|
|
2730
2731
|
tmp_0 = tmp_0 + 1 | 0;
|
|
2731
2732
|
}
|
|
2732
|
-
tmp.
|
|
2733
|
-
this.
|
|
2733
|
+
tmp.z13_1 = tmp_2;
|
|
2734
|
+
this.a14_1 = 0;
|
|
2734
2735
|
}
|
|
2735
|
-
protoOf(Tile).
|
|
2736
|
-
var containsUpper = this.
|
|
2737
|
-
var containsArg = pixel.
|
|
2736
|
+
protoOf(Tile).b14 = function (pixel) {
|
|
2737
|
+
var containsUpper = this.w13_1;
|
|
2738
|
+
var containsArg = pixel.q13_1;
|
|
2738
2739
|
// Inline function 'kotlin.require' call
|
|
2739
2740
|
if (!(0 <= containsArg ? containsArg < containsUpper : false)) {
|
|
2740
|
-
var message = 'Invalid x position: ' + pixel.
|
|
2741
|
+
var message = 'Invalid x position: ' + pixel.q13_1 + '. Must be between 0 and ' + (this.w13_1 - 1 | 0);
|
|
2741
2742
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2742
2743
|
}
|
|
2743
|
-
var containsUpper_0 = this.
|
|
2744
|
-
var containsArg_0 = pixel.
|
|
2744
|
+
var containsUpper_0 = this.x13_1;
|
|
2745
|
+
var containsArg_0 = pixel.r13_1;
|
|
2745
2746
|
// Inline function 'kotlin.require' call
|
|
2746
2747
|
if (!(0 <= containsArg_0 ? containsArg_0 < containsUpper_0 : false)) {
|
|
2747
|
-
var message_0 = 'Invalid y position: ' + pixel.
|
|
2748
|
+
var message_0 = 'Invalid y position: ' + pixel.r13_1 + '. Must be between 0 and ' + (this.x13_1 - 1 | 0);
|
|
2748
2749
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
2749
2750
|
}
|
|
2750
|
-
var idx = imul(pixel.
|
|
2751
|
-
var cached = this.
|
|
2751
|
+
var idx = imul(pixel.r13_1, this.w13_1) + pixel.q13_1 | 0;
|
|
2752
|
+
var cached = this.z13_1[idx];
|
|
2752
2753
|
if (!isNaN_0(cached))
|
|
2753
2754
|
return cached;
|
|
2754
2755
|
var byteOffset = imul(idx, 4);
|
|
2755
|
-
var r = this.
|
|
2756
|
-
var g = this.
|
|
2757
|
-
var b = this.
|
|
2758
|
-
var elevation = r === 0 && g === 0 && b === 0 ? NaN : Companion_instance_1.
|
|
2759
|
-
this.
|
|
2760
|
-
this.
|
|
2756
|
+
var r = this.y13_1[byteOffset] & 255;
|
|
2757
|
+
var g = this.y13_1[byteOffset + 1 | 0] & 255;
|
|
2758
|
+
var b = this.y13_1[byteOffset + 2 | 0] & 255;
|
|
2759
|
+
var elevation = r === 0 && g === 0 && b === 0 ? NaN : Companion_instance_1.m1c(r, g, b);
|
|
2760
|
+
this.z13_1[idx] = elevation;
|
|
2761
|
+
this.a14_1 = this.a14_1 + 1 | 0;
|
|
2761
2762
|
return elevation;
|
|
2762
2763
|
};
|
|
2763
2764
|
function buildUrl($this, tc) {
|
|
2764
2765
|
// Inline function 'kotlin.let' call
|
|
2765
|
-
var it = replace(replace(replace($this.
|
|
2766
|
+
var it = replace(replace(replace($this.s13_1, '{z}', tc.b10_1.toString()), '{x}', tc.zz_1.toString()), '{y}', tc.a10_1.toString());
|
|
2766
2767
|
return contains(it, '{bbox}') ? replace(it, '{bbox}', wmsBbox4326(tc)) : it;
|
|
2767
2768
|
}
|
|
2768
2769
|
function fetchAndDecodeTile$ref_0() {
|
|
2769
2770
|
KFunctionImpl.call(this, 1, 2, 2);
|
|
2770
2771
|
}
|
|
2771
|
-
protoOf(fetchAndDecodeTile$ref_0).
|
|
2772
|
+
protoOf(fetchAndDecodeTile$ref_0).j16 = function (p0, $completion) {
|
|
2772
2773
|
return fetchAndDecodeTile(p0, $completion);
|
|
2773
2774
|
};
|
|
2774
2775
|
protoOf(fetchAndDecodeTile$ref_0).w7 = function (p1, $completion) {
|
|
2775
|
-
return this.
|
|
2776
|
+
return this.j16((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
2776
2777
|
};
|
|
2777
2778
|
function TileManager$cache$slambda(this$0, resultContinuation) {
|
|
2778
|
-
this.
|
|
2779
|
+
this.y1c_1 = this$0;
|
|
2779
2780
|
CoroutineImpl.call(this, resultContinuation);
|
|
2780
2781
|
}
|
|
2781
|
-
protoOf(TileManager$cache$slambda).
|
|
2782
|
-
var tmp = this.
|
|
2782
|
+
protoOf(TileManager$cache$slambda).a1d = function (tc, $completion) {
|
|
2783
|
+
var tmp = this.b1d(tc, $completion);
|
|
2783
2784
|
tmp.i7_1 = Unit_instance;
|
|
2784
2785
|
tmp.j7_1 = null;
|
|
2785
2786
|
return tmp.o7();
|
|
2786
2787
|
};
|
|
2787
2788
|
protoOf(TileManager$cache$slambda).w7 = function (p1, $completion) {
|
|
2788
|
-
return this.
|
|
2789
|
+
return this.a1d(p1 instanceof TileCoordinates ? p1 : THROW_CCE(), $completion);
|
|
2789
2790
|
};
|
|
2790
2791
|
protoOf(TileManager$cache$slambda).o7 = function () {
|
|
2791
2792
|
var suspendResult = this.i7_1;
|
|
@@ -2796,7 +2797,7 @@
|
|
|
2796
2797
|
case 0:
|
|
2797
2798
|
this.h7_1 = 2;
|
|
2798
2799
|
this.g7_1 = 1;
|
|
2799
|
-
suspendResult = this.
|
|
2800
|
+
suspendResult = this.y1c_1.t13_1(buildUrl(this.y1c_1, this.z1c_1), this);
|
|
2800
2801
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2801
2802
|
return suspendResult;
|
|
2802
2803
|
}
|
|
@@ -2819,15 +2820,15 @@
|
|
|
2819
2820
|
}
|
|
2820
2821
|
while (true);
|
|
2821
2822
|
};
|
|
2822
|
-
protoOf(TileManager$cache$slambda).
|
|
2823
|
-
var i = new TileManager$cache$slambda(this.
|
|
2824
|
-
i.
|
|
2823
|
+
protoOf(TileManager$cache$slambda).b1d = function (tc, completion) {
|
|
2824
|
+
var i = new TileManager$cache$slambda(this.y1c_1, completion);
|
|
2825
|
+
i.z1c_1 = tc;
|
|
2825
2826
|
return i;
|
|
2826
2827
|
};
|
|
2827
2828
|
function TileManager$cache$slambda_0(this$0, resultContinuation) {
|
|
2828
2829
|
var i = new TileManager$cache$slambda(this$0, resultContinuation);
|
|
2829
2830
|
return constructCallableReference(function (tc, $completion) {
|
|
2830
|
-
return i.
|
|
2831
|
+
return i.a1d(tc, $completion);
|
|
2831
2832
|
}, 1);
|
|
2832
2833
|
}
|
|
2833
2834
|
function TileManager(urlTemplate, cacheSize, fetcher) {
|
|
@@ -2838,13 +2839,13 @@
|
|
|
2838
2839
|
tmp = fetcher;
|
|
2839
2840
|
}
|
|
2840
2841
|
fetcher = tmp;
|
|
2841
|
-
this.
|
|
2842
|
-
this.
|
|
2842
|
+
this.s13_1 = urlTemplate;
|
|
2843
|
+
this.t13_1 = fetcher;
|
|
2843
2844
|
var tmp_0 = this;
|
|
2844
|
-
tmp_0.
|
|
2845
|
+
tmp_0.u13_1 = new LruCache(cacheSize, TileManager$cache$slambda_0(this, null));
|
|
2845
2846
|
}
|
|
2846
|
-
protoOf(TileManager).
|
|
2847
|
-
return this.
|
|
2847
|
+
protoOf(TileManager).v13 = function (tileCoords, $completion) {
|
|
2848
|
+
return this.u13_1.i1c(tileCoords, $completion);
|
|
2848
2849
|
};
|
|
2849
2850
|
function pacedTileBytesFetcher(maxRequestsPerSecond, fetch, maxAttempts, now) {
|
|
2850
2851
|
var tmp;
|
|
@@ -2873,9 +2874,9 @@
|
|
|
2873
2874
|
retryAfterSeconds = retryAfterSeconds === VOID ? null : retryAfterSeconds;
|
|
2874
2875
|
IllegalStateException_init_$Init$('Tile fetch failed for ' + url + ': HTTP ' + status, this);
|
|
2875
2876
|
captureStack(this, TileFetchException);
|
|
2876
|
-
this.
|
|
2877
|
-
this.
|
|
2878
|
-
this.
|
|
2877
|
+
this.c1d_1 = url;
|
|
2878
|
+
this.d1d_1 = status;
|
|
2879
|
+
this.e1d_1 = retryAfterSeconds;
|
|
2879
2880
|
}
|
|
2880
2881
|
function monotonicMillis() {
|
|
2881
2882
|
var origin = Monotonic_instance.va();
|
|
@@ -2883,7 +2884,7 @@
|
|
|
2883
2884
|
}
|
|
2884
2885
|
function $awaitTurnCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2885
2886
|
CoroutineImpl.call(this, resultContinuation);
|
|
2886
|
-
this.
|
|
2887
|
+
this.n1d_1 = _this__u8e3s4;
|
|
2887
2888
|
}
|
|
2888
2889
|
protoOf($awaitTurnCOROUTINE$).o7 = function () {
|
|
2889
2890
|
var suspendResult = this.i7_1;
|
|
@@ -2893,10 +2894,10 @@
|
|
|
2893
2894
|
switch (tmp) {
|
|
2894
2895
|
case 0:
|
|
2895
2896
|
this.h7_1 = 4;
|
|
2896
|
-
this.
|
|
2897
|
-
this.
|
|
2897
|
+
this.p1d_1 = this.n1d_1.s1d_1;
|
|
2898
|
+
this.o1d_1 = null;
|
|
2898
2899
|
this.g7_1 = 1;
|
|
2899
|
-
suspendResult = this.
|
|
2900
|
+
suspendResult = this.p1d_1.rv(this.o1d_1, this);
|
|
2900
2901
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2901
2902
|
return suspendResult;
|
|
2902
2903
|
}
|
|
@@ -2907,22 +2908,22 @@
|
|
|
2907
2908
|
l$ret$1: do {
|
|
2908
2909
|
var tmp_0;
|
|
2909
2910
|
try {
|
|
2910
|
-
var t = toNumber(this.
|
|
2911
|
-
var b = this.
|
|
2911
|
+
var t = toNumber(this.n1d_1.q1d_1());
|
|
2912
|
+
var b = this.n1d_1.t1d_1;
|
|
2912
2913
|
var slot = Math.max(t, b);
|
|
2913
|
-
this.
|
|
2914
|
+
this.n1d_1.t1d_1 = slot + this.n1d_1.r1d_1;
|
|
2914
2915
|
tmp$ret$0 = slot - t;
|
|
2915
2916
|
break l$ret$1;
|
|
2916
2917
|
} catch ($p) {
|
|
2917
2918
|
var tmp_1;
|
|
2918
2919
|
var t_0 = $p;
|
|
2919
|
-
this.
|
|
2920
|
+
this.p1d_1.cv(this.o1d_1);
|
|
2920
2921
|
throw t_0;
|
|
2921
2922
|
}
|
|
2922
2923
|
}
|
|
2923
2924
|
while (false);
|
|
2924
2925
|
var tmp_2 = tmp$ret$0;
|
|
2925
|
-
this.
|
|
2926
|
+
this.p1d_1.cv(this.o1d_1);
|
|
2926
2927
|
var waitMs = tmp_2;
|
|
2927
2928
|
if (waitMs > 0) {
|
|
2928
2929
|
this.g7_1 = 2;
|
|
@@ -2956,12 +2957,12 @@
|
|
|
2956
2957
|
while (true);
|
|
2957
2958
|
};
|
|
2958
2959
|
function RequestPacer(perSecond, now) {
|
|
2959
|
-
this.
|
|
2960
|
-
this.
|
|
2961
|
-
this.
|
|
2962
|
-
this.
|
|
2960
|
+
this.q1d_1 = now;
|
|
2961
|
+
this.r1d_1 = 1000.0 / perSecond;
|
|
2962
|
+
this.s1d_1 = Mutex();
|
|
2963
|
+
this.t1d_1 = -Infinity;
|
|
2963
2964
|
}
|
|
2964
|
-
protoOf(RequestPacer).
|
|
2965
|
+
protoOf(RequestPacer).u1d = function ($completion) {
|
|
2965
2966
|
var tmp = new $awaitTurnCOROUTINE$(this, $completion);
|
|
2966
2967
|
tmp.i7_1 = Unit_instance;
|
|
2967
2968
|
tmp.j7_1 = null;
|
|
@@ -2970,26 +2971,26 @@
|
|
|
2970
2971
|
function fetchTileBytes$ref() {
|
|
2971
2972
|
KFunctionImpl.call(this, 1, 2, 4);
|
|
2972
2973
|
}
|
|
2973
|
-
protoOf(fetchTileBytes$ref).
|
|
2974
|
+
protoOf(fetchTileBytes$ref).y1d = function (p0, $completion) {
|
|
2974
2975
|
return fetchTileBytes(p0, $completion);
|
|
2975
2976
|
};
|
|
2976
2977
|
protoOf(fetchTileBytes$ref).w7 = function (p1, $completion) {
|
|
2977
|
-
return this.
|
|
2978
|
+
return this.y1d((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
2978
2979
|
};
|
|
2979
2980
|
function pacedTileBytesFetcher$slambda($pacer, $fetch, $maxAttempts, resultContinuation) {
|
|
2980
|
-
this.
|
|
2981
|
-
this.
|
|
2982
|
-
this.
|
|
2981
|
+
this.h1e_1 = $pacer;
|
|
2982
|
+
this.i1e_1 = $fetch;
|
|
2983
|
+
this.j1e_1 = $maxAttempts;
|
|
2983
2984
|
CoroutineImpl.call(this, resultContinuation);
|
|
2984
2985
|
}
|
|
2985
|
-
protoOf(pacedTileBytesFetcher$slambda).
|
|
2986
|
-
var tmp = this.
|
|
2986
|
+
protoOf(pacedTileBytesFetcher$slambda).y1d = function (url, $completion) {
|
|
2987
|
+
var tmp = this.u16(url, $completion);
|
|
2987
2988
|
tmp.i7_1 = Unit_instance;
|
|
2988
2989
|
tmp.j7_1 = null;
|
|
2989
2990
|
return tmp.o7();
|
|
2990
2991
|
};
|
|
2991
2992
|
protoOf(pacedTileBytesFetcher$slambda).w7 = function (p1, $completion) {
|
|
2992
|
-
return this.
|
|
2993
|
+
return this.y1d((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
2993
2994
|
};
|
|
2994
2995
|
protoOf(pacedTileBytesFetcher$slambda).o7 = function () {
|
|
2995
2996
|
var suspendResult = this.i7_1;
|
|
@@ -2999,24 +3000,24 @@
|
|
|
2999
3000
|
switch (tmp) {
|
|
3000
3001
|
case 0:
|
|
3001
3002
|
this.h7_1 = 9;
|
|
3002
|
-
this.
|
|
3003
|
-
this.
|
|
3003
|
+
this.n1e_1 = 1;
|
|
3004
|
+
this.l1e_1 = null;
|
|
3004
3005
|
this.g7_1 = 1;
|
|
3005
3006
|
continue $sm;
|
|
3006
3007
|
case 1:
|
|
3007
|
-
if (!(this.
|
|
3008
|
+
if (!(this.l1e_1 == null)) {
|
|
3008
3009
|
this.g7_1 = 8;
|
|
3009
3010
|
continue $sm;
|
|
3010
3011
|
}
|
|
3011
3012
|
|
|
3012
|
-
var tmp0_safe_receiver = this.
|
|
3013
|
+
var tmp0_safe_receiver = this.h1e_1;
|
|
3013
3014
|
if (tmp0_safe_receiver == null) {
|
|
3014
|
-
this.
|
|
3015
|
+
this.o1e_1 = null;
|
|
3015
3016
|
this.g7_1 = 3;
|
|
3016
3017
|
continue $sm;
|
|
3017
3018
|
} else {
|
|
3018
3019
|
this.g7_1 = 2;
|
|
3019
|
-
suspendResult = tmp0_safe_receiver.
|
|
3020
|
+
suspendResult = tmp0_safe_receiver.u1d(this);
|
|
3020
3021
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3021
3022
|
return suspendResult;
|
|
3022
3023
|
}
|
|
@@ -3025,13 +3026,13 @@
|
|
|
3025
3026
|
|
|
3026
3027
|
case 2:
|
|
3027
3028
|
var tmp_0 = this;
|
|
3028
|
-
tmp_0.
|
|
3029
|
+
tmp_0.o1e_1 = Unit_instance;
|
|
3029
3030
|
this.g7_1 = 3;
|
|
3030
3031
|
continue $sm;
|
|
3031
3032
|
case 3:
|
|
3032
3033
|
this.h7_1 = 5;
|
|
3033
3034
|
this.g7_1 = 4;
|
|
3034
|
-
suspendResult = this.
|
|
3035
|
+
suspendResult = this.i1e_1(this.k1e_1, this);
|
|
3035
3036
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3036
3037
|
return suspendResult;
|
|
3037
3038
|
}
|
|
@@ -3039,8 +3040,8 @@
|
|
|
3039
3040
|
continue $sm;
|
|
3040
3041
|
case 4:
|
|
3041
3042
|
var tmp_1 = this;
|
|
3042
|
-
this.
|
|
3043
|
-
tmp_1.
|
|
3043
|
+
this.l1e_1 = suspendResult;
|
|
3044
|
+
tmp_1.m1e_1 = Unit_instance;
|
|
3044
3045
|
this.h7_1 = 9;
|
|
3045
3046
|
this.g7_1 = 7;
|
|
3046
3047
|
continue $sm;
|
|
@@ -3049,11 +3050,11 @@
|
|
|
3049
3050
|
var tmp_2 = this.j7_1;
|
|
3050
3051
|
if (tmp_2 instanceof TileFetchException) {
|
|
3051
3052
|
var e = this.j7_1;
|
|
3052
|
-
if (!(e.
|
|
3053
|
+
if (!(e.d1d_1 === 429) && !(e.d1d_1 === 503) || this.n1e_1 >= this.j1e_1)
|
|
3053
3054
|
throw e;
|
|
3054
3055
|
this.g7_1 = 6;
|
|
3055
|
-
var tmp1_elvis_lhs = e.
|
|
3056
|
-
suspendResult = delay(multiply(tmp1_elvis_lhs == null ? shiftLeft(new Long(1, 0), this.
|
|
3056
|
+
var tmp1_elvis_lhs = e.e1d_1;
|
|
3057
|
+
suspendResult = delay(multiply(tmp1_elvis_lhs == null ? shiftLeft(new Long(1, 0), this.n1e_1 - 1 | 0) : tmp1_elvis_lhs, new Long(1000, 0)), this);
|
|
3057
3058
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3058
3059
|
return suspendResult;
|
|
3059
3060
|
}
|
|
@@ -3064,9 +3065,9 @@
|
|
|
3064
3065
|
|
|
3065
3066
|
case 6:
|
|
3066
3067
|
var tmp_3 = this;
|
|
3067
|
-
var _unary__edvuaz = this.
|
|
3068
|
-
this.
|
|
3069
|
-
tmp_3.
|
|
3068
|
+
var _unary__edvuaz = this.n1e_1;
|
|
3069
|
+
this.n1e_1 = _unary__edvuaz + 1 | 0;
|
|
3070
|
+
tmp_3.m1e_1 = _unary__edvuaz;
|
|
3070
3071
|
this.g7_1 = 7;
|
|
3071
3072
|
continue $sm;
|
|
3072
3073
|
case 7:
|
|
@@ -3074,7 +3075,7 @@
|
|
|
3074
3075
|
this.g7_1 = 1;
|
|
3075
3076
|
continue $sm;
|
|
3076
3077
|
case 8:
|
|
3077
|
-
return this.
|
|
3078
|
+
return this.l1e_1;
|
|
3078
3079
|
case 9:
|
|
3079
3080
|
throw this.j7_1;
|
|
3080
3081
|
}
|
|
@@ -3089,15 +3090,15 @@
|
|
|
3089
3090
|
}
|
|
3090
3091
|
while (true);
|
|
3091
3092
|
};
|
|
3092
|
-
protoOf(pacedTileBytesFetcher$slambda).
|
|
3093
|
-
var i = new pacedTileBytesFetcher$slambda(this.
|
|
3094
|
-
i.
|
|
3093
|
+
protoOf(pacedTileBytesFetcher$slambda).u16 = function (url, completion) {
|
|
3094
|
+
var i = new pacedTileBytesFetcher$slambda(this.h1e_1, this.i1e_1, this.j1e_1, completion);
|
|
3095
|
+
i.k1e_1 = url;
|
|
3095
3096
|
return i;
|
|
3096
3097
|
};
|
|
3097
3098
|
function pacedTileBytesFetcher$slambda_0($pacer, $fetch, $maxAttempts, resultContinuation) {
|
|
3098
3099
|
var i = new pacedTileBytesFetcher$slambda($pacer, $fetch, $maxAttempts, resultContinuation);
|
|
3099
3100
|
return constructCallableReference(function (url, $completion) {
|
|
3100
|
-
return i.
|
|
3101
|
+
return i.y1d(url, $completion);
|
|
3101
3102
|
}, 1);
|
|
3102
3103
|
}
|
|
3103
3104
|
function monotonicMillis$lambda($origin) {
|
|
@@ -3106,17 +3107,17 @@
|
|
|
3106
3107
|
};
|
|
3107
3108
|
}
|
|
3108
3109
|
function TileCoordinates(x, y, z) {
|
|
3109
|
-
this.
|
|
3110
|
-
this.
|
|
3111
|
-
this.
|
|
3110
|
+
this.zz_1 = x;
|
|
3111
|
+
this.a10_1 = y;
|
|
3112
|
+
this.b10_1 = z;
|
|
3112
3113
|
}
|
|
3113
3114
|
protoOf(TileCoordinates).toString = function () {
|
|
3114
|
-
return 'TileCoordinates(x=' + this.
|
|
3115
|
+
return 'TileCoordinates(x=' + this.zz_1 + ', y=' + this.a10_1 + ', z=' + this.b10_1 + ')';
|
|
3115
3116
|
};
|
|
3116
3117
|
protoOf(TileCoordinates).hashCode = function () {
|
|
3117
|
-
var result = this.
|
|
3118
|
-
result = imul(result, 31) + this.
|
|
3119
|
-
result = imul(result, 31) + this.
|
|
3118
|
+
var result = this.zz_1;
|
|
3119
|
+
result = imul(result, 31) + this.a10_1 | 0;
|
|
3120
|
+
result = imul(result, 31) + this.b10_1 | 0;
|
|
3120
3121
|
return result;
|
|
3121
3122
|
};
|
|
3122
3123
|
protoOf(TileCoordinates).equals = function (other) {
|
|
@@ -3124,26 +3125,26 @@
|
|
|
3124
3125
|
return true;
|
|
3125
3126
|
if (!(other instanceof TileCoordinates))
|
|
3126
3127
|
return false;
|
|
3127
|
-
if (!(this.
|
|
3128
|
+
if (!(this.zz_1 === other.zz_1))
|
|
3128
3129
|
return false;
|
|
3129
|
-
if (!(this.
|
|
3130
|
+
if (!(this.a10_1 === other.a10_1))
|
|
3130
3131
|
return false;
|
|
3131
|
-
if (!(this.
|
|
3132
|
+
if (!(this.b10_1 === other.b10_1))
|
|
3132
3133
|
return false;
|
|
3133
3134
|
return true;
|
|
3134
3135
|
};
|
|
3135
3136
|
function Pixel(tile, x, y) {
|
|
3136
|
-
this.
|
|
3137
|
-
this.
|
|
3138
|
-
this.
|
|
3137
|
+
this.p13_1 = tile;
|
|
3138
|
+
this.q13_1 = x;
|
|
3139
|
+
this.r13_1 = y;
|
|
3139
3140
|
}
|
|
3140
3141
|
protoOf(Pixel).toString = function () {
|
|
3141
|
-
return 'Pixel(tile=' + this.
|
|
3142
|
+
return 'Pixel(tile=' + this.p13_1.toString() + ', x=' + this.q13_1 + ', y=' + this.r13_1 + ')';
|
|
3142
3143
|
};
|
|
3143
3144
|
protoOf(Pixel).hashCode = function () {
|
|
3144
|
-
var result = this.
|
|
3145
|
-
result = imul(result, 31) + this.
|
|
3146
|
-
result = imul(result, 31) + this.
|
|
3145
|
+
var result = this.p13_1.hashCode();
|
|
3146
|
+
result = imul(result, 31) + this.q13_1 | 0;
|
|
3147
|
+
result = imul(result, 31) + this.r13_1 | 0;
|
|
3147
3148
|
return result;
|
|
3148
3149
|
};
|
|
3149
3150
|
protoOf(Pixel).equals = function (other) {
|
|
@@ -3151,79 +3152,79 @@
|
|
|
3151
3152
|
return true;
|
|
3152
3153
|
if (!(other instanceof Pixel))
|
|
3153
3154
|
return false;
|
|
3154
|
-
if (!this.
|
|
3155
|
+
if (!this.p13_1.equals(other.p13_1))
|
|
3155
3156
|
return false;
|
|
3156
|
-
if (!(this.
|
|
3157
|
+
if (!(this.q13_1 === other.q13_1))
|
|
3157
3158
|
return false;
|
|
3158
|
-
if (!(this.
|
|
3159
|
+
if (!(this.r13_1 === other.r13_1))
|
|
3159
3160
|
return false;
|
|
3160
3161
|
return true;
|
|
3161
3162
|
};
|
|
3162
|
-
function
|
|
3163
|
-
this.
|
|
3164
|
-
this.
|
|
3165
|
-
this.
|
|
3163
|
+
function TileCoordinatesFloat(x, y, xFloat, yFloat, z) {
|
|
3164
|
+
this.h14_1 = x;
|
|
3165
|
+
this.i14_1 = y;
|
|
3166
|
+
this.j14_1 = xFloat;
|
|
3167
|
+
this.k14_1 = yFloat;
|
|
3168
|
+
this.l14_1 = z;
|
|
3166
3169
|
}
|
|
3167
|
-
protoOf(
|
|
3168
|
-
return '
|
|
3170
|
+
protoOf(TileCoordinatesFloat).toString = function () {
|
|
3171
|
+
return 'TileCoordinatesFloat(x=' + this.h14_1 + ', y=' + this.i14_1 + ', xFloat=' + this.j14_1 + ', yFloat=' + this.k14_1 + ', z=' + this.l14_1 + ')';
|
|
3169
3172
|
};
|
|
3170
|
-
protoOf(
|
|
3171
|
-
var result = this.
|
|
3172
|
-
result = imul(result, 31) +
|
|
3173
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3173
|
+
protoOf(TileCoordinatesFloat).hashCode = function () {
|
|
3174
|
+
var result = this.h14_1;
|
|
3175
|
+
result = imul(result, 31) + this.i14_1 | 0;
|
|
3176
|
+
result = imul(result, 31) + getNumberHashCode(this.j14_1) | 0;
|
|
3177
|
+
result = imul(result, 31) + getNumberHashCode(this.k14_1) | 0;
|
|
3178
|
+
result = imul(result, 31) + this.l14_1 | 0;
|
|
3174
3179
|
return result;
|
|
3175
3180
|
};
|
|
3176
|
-
protoOf(
|
|
3181
|
+
protoOf(TileCoordinatesFloat).equals = function (other) {
|
|
3177
3182
|
if (this === other)
|
|
3178
3183
|
return true;
|
|
3179
|
-
if (!(other instanceof
|
|
3184
|
+
if (!(other instanceof TileCoordinatesFloat))
|
|
3180
3185
|
return false;
|
|
3181
|
-
if (!this.
|
|
3186
|
+
if (!(this.h14_1 === other.h14_1))
|
|
3182
3187
|
return false;
|
|
3183
|
-
if (!
|
|
3188
|
+
if (!(this.i14_1 === other.i14_1))
|
|
3184
3189
|
return false;
|
|
3185
|
-
if (!equals(this.
|
|
3190
|
+
if (!equals(this.j14_1, other.j14_1))
|
|
3191
|
+
return false;
|
|
3192
|
+
if (!equals(this.k14_1, other.k14_1))
|
|
3193
|
+
return false;
|
|
3194
|
+
if (!(this.l14_1 === other.l14_1))
|
|
3186
3195
|
return false;
|
|
3187
3196
|
return true;
|
|
3188
3197
|
};
|
|
3189
|
-
function
|
|
3190
|
-
this.
|
|
3191
|
-
this.
|
|
3192
|
-
this.
|
|
3193
|
-
this.i14_1 = yFloat;
|
|
3194
|
-
this.j14_1 = z;
|
|
3198
|
+
function PixelFloat(tile, x, y) {
|
|
3199
|
+
this.l13_1 = tile;
|
|
3200
|
+
this.m13_1 = x;
|
|
3201
|
+
this.n13_1 = y;
|
|
3195
3202
|
}
|
|
3196
|
-
protoOf(
|
|
3197
|
-
return '
|
|
3203
|
+
protoOf(PixelFloat).toString = function () {
|
|
3204
|
+
return 'PixelFloat(tile=' + this.l13_1.toString() + ', x=' + this.m13_1 + ', y=' + this.n13_1 + ')';
|
|
3198
3205
|
};
|
|
3199
|
-
protoOf(
|
|
3200
|
-
var result = this.
|
|
3201
|
-
result = imul(result, 31) + this.
|
|
3202
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3203
|
-
result = imul(result, 31) + getNumberHashCode(this.i14_1) | 0;
|
|
3204
|
-
result = imul(result, 31) + this.j14_1 | 0;
|
|
3206
|
+
protoOf(PixelFloat).hashCode = function () {
|
|
3207
|
+
var result = this.l13_1.hashCode();
|
|
3208
|
+
result = imul(result, 31) + getNumberHashCode(this.m13_1) | 0;
|
|
3209
|
+
result = imul(result, 31) + getNumberHashCode(this.n13_1) | 0;
|
|
3205
3210
|
return result;
|
|
3206
3211
|
};
|
|
3207
|
-
protoOf(
|
|
3212
|
+
protoOf(PixelFloat).equals = function (other) {
|
|
3208
3213
|
if (this === other)
|
|
3209
3214
|
return true;
|
|
3210
|
-
if (!(other instanceof
|
|
3211
|
-
return false;
|
|
3212
|
-
if (!(this.f14_1 === other.f14_1))
|
|
3213
|
-
return false;
|
|
3214
|
-
if (!(this.g14_1 === other.g14_1))
|
|
3215
|
+
if (!(other instanceof PixelFloat))
|
|
3215
3216
|
return false;
|
|
3216
|
-
if (!equals(
|
|
3217
|
+
if (!this.l13_1.equals(other.l13_1))
|
|
3217
3218
|
return false;
|
|
3218
|
-
if (!equals(this.
|
|
3219
|
+
if (!equals(this.m13_1, other.m13_1))
|
|
3219
3220
|
return false;
|
|
3220
|
-
if (!(this.
|
|
3221
|
+
if (!equals(this.n13_1, other.n13_1))
|
|
3221
3222
|
return false;
|
|
3222
3223
|
return true;
|
|
3223
3224
|
};
|
|
3224
3225
|
function Companion_1() {
|
|
3225
3226
|
Companion_instance_2 = this;
|
|
3226
|
-
this.
|
|
3227
|
+
this.p1e_1 = new Vector3D(0.0, 0.0, 0.0);
|
|
3227
3228
|
}
|
|
3228
3229
|
var Companion_instance_2;
|
|
3229
3230
|
function Companion_getInstance_1() {
|
|
@@ -3233,49 +3234,49 @@
|
|
|
3233
3234
|
}
|
|
3234
3235
|
function Vector3D(x, y, z) {
|
|
3235
3236
|
Companion_getInstance_1();
|
|
3236
|
-
this.
|
|
3237
|
-
this.
|
|
3238
|
-
this.
|
|
3237
|
+
this.j11_1 = x;
|
|
3238
|
+
this.k11_1 = y;
|
|
3239
|
+
this.l11_1 = z;
|
|
3239
3240
|
}
|
|
3240
|
-
protoOf(Vector3D).
|
|
3241
|
-
var tmp0 = this.
|
|
3241
|
+
protoOf(Vector3D).q1e = function (other) {
|
|
3242
|
+
var tmp0 = this.j11_1 - other.j11_1;
|
|
3242
3243
|
// Inline function 'kotlin.math.hypot' call
|
|
3243
|
-
var y = this.
|
|
3244
|
+
var y = this.k11_1 - other.k11_1;
|
|
3244
3245
|
var tmp0_0 = hypot(tmp0, y);
|
|
3245
3246
|
// Inline function 'kotlin.math.hypot' call
|
|
3246
|
-
var y_0 = this.
|
|
3247
|
+
var y_0 = this.l11_1 - other.l11_1;
|
|
3247
3248
|
return hypot(tmp0_0, y_0);
|
|
3248
3249
|
};
|
|
3249
|
-
protoOf(Vector3D).
|
|
3250
|
-
return new Vector3D(this.
|
|
3250
|
+
protoOf(Vector3D).r1e = function (other) {
|
|
3251
|
+
return new Vector3D(this.j11_1 - other.j11_1, this.k11_1 - other.k11_1, this.l11_1 - other.l11_1);
|
|
3251
3252
|
};
|
|
3252
|
-
protoOf(Vector3D).
|
|
3253
|
-
return new Vector3D(this.
|
|
3253
|
+
protoOf(Vector3D).s1e = function (other) {
|
|
3254
|
+
return new Vector3D(this.j11_1 + other.j11_1, this.k11_1 + other.k11_1, this.l11_1 + other.l11_1);
|
|
3254
3255
|
};
|
|
3255
|
-
protoOf(Vector3D).
|
|
3256
|
-
return new Vector3D(this.
|
|
3256
|
+
protoOf(Vector3D).t1e = function (scalar) {
|
|
3257
|
+
return new Vector3D(this.j11_1 * scalar, this.k11_1 * scalar, this.l11_1 * scalar);
|
|
3257
3258
|
};
|
|
3258
|
-
protoOf(Vector3D).
|
|
3259
|
-
return this.
|
|
3259
|
+
protoOf(Vector3D).u1e = function (other) {
|
|
3260
|
+
return this.j11_1 * other.j11_1 + this.k11_1 * other.k11_1 + this.l11_1 * other.l11_1;
|
|
3260
3261
|
};
|
|
3261
|
-
protoOf(Vector3D).
|
|
3262
|
-
var segmentVector = segmentEnd.
|
|
3263
|
-
var segmentLengthSq = segmentVector.
|
|
3262
|
+
protoOf(Vector3D).m11 = function (segmentStart, segmentEnd) {
|
|
3263
|
+
var segmentVector = segmentEnd.r1e(segmentStart);
|
|
3264
|
+
var segmentLengthSq = segmentVector.u1e(segmentVector);
|
|
3264
3265
|
if (segmentLengthSq === 0.0)
|
|
3265
|
-
return this.
|
|
3266
|
-
var pointVector = this.
|
|
3267
|
-
var projection = pointVector.
|
|
3266
|
+
return this.q1e(segmentStart);
|
|
3267
|
+
var pointVector = this.r1e(segmentStart);
|
|
3268
|
+
var projection = pointVector.u1e(segmentVector) / segmentLengthSq;
|
|
3268
3269
|
var clamped = coerceIn_0(projection, 0.0, 1.0);
|
|
3269
|
-
var closest = segmentStart.
|
|
3270
|
-
return this.
|
|
3270
|
+
var closest = segmentStart.s1e(segmentVector.t1e(clamped));
|
|
3271
|
+
return this.q1e(closest);
|
|
3271
3272
|
};
|
|
3272
3273
|
protoOf(Vector3D).toString = function () {
|
|
3273
|
-
return 'Vector3D(x=' + this.
|
|
3274
|
+
return 'Vector3D(x=' + this.j11_1 + ', y=' + this.k11_1 + ', z=' + this.l11_1 + ')';
|
|
3274
3275
|
};
|
|
3275
3276
|
protoOf(Vector3D).hashCode = function () {
|
|
3276
|
-
var result = getNumberHashCode(this.
|
|
3277
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3278
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3277
|
+
var result = getNumberHashCode(this.j11_1);
|
|
3278
|
+
result = imul(result, 31) + getNumberHashCode(this.k11_1) | 0;
|
|
3279
|
+
result = imul(result, 31) + getNumberHashCode(this.l11_1) | 0;
|
|
3279
3280
|
return result;
|
|
3280
3281
|
};
|
|
3281
3282
|
protoOf(Vector3D).equals = function (other) {
|
|
@@ -3283,11 +3284,11 @@
|
|
|
3283
3284
|
return true;
|
|
3284
3285
|
if (!(other instanceof Vector3D))
|
|
3285
3286
|
return false;
|
|
3286
|
-
if (!equals(this.
|
|
3287
|
+
if (!equals(this.j11_1, other.j11_1))
|
|
3287
3288
|
return false;
|
|
3288
|
-
if (!equals(this.
|
|
3289
|
+
if (!equals(this.k11_1, other.k11_1))
|
|
3289
3290
|
return false;
|
|
3290
|
-
if (!equals(this.
|
|
3291
|
+
if (!equals(this.l11_1, other.l11_1))
|
|
3291
3292
|
return false;
|
|
3292
3293
|
return true;
|
|
3293
3294
|
};
|
|
@@ -3324,25 +3325,25 @@
|
|
|
3324
3325
|
tmp = null;
|
|
3325
3326
|
} else {
|
|
3326
3327
|
// Inline function 'kotlin.let' call
|
|
3327
|
-
tmp = Companion_getInstance().
|
|
3328
|
+
tmp = Companion_getInstance().q17(tmp2_safe_receiver);
|
|
3328
3329
|
}
|
|
3329
3330
|
var tmp3_elvis_lhs = tmp;
|
|
3330
|
-
var source = tmp3_elvis_lhs == null ? Companion_getInstance().
|
|
3331
|
-
var base = source.
|
|
3331
|
+
var source = tmp3_elvis_lhs == null ? Companion_getInstance().l17_1 : tmp3_elvis_lhs;
|
|
3332
|
+
var base = source.w17(configDto == null ? null : configDto.zoomLevel);
|
|
3332
3333
|
var tmp6_elvis_lhs = configDto == null ? null : configDto.cacheSize;
|
|
3333
|
-
var tmp_0 = tmp6_elvis_lhs == null ? base.
|
|
3334
|
+
var tmp_0 = tmp6_elvis_lhs == null ? base.u15_1 : tmp6_elvis_lhs;
|
|
3334
3335
|
var tmp8_elvis_lhs = configDto == null ? null : configDto.tileUrlTemplate;
|
|
3335
|
-
var tmp_1 = tmp8_elvis_lhs == null ? base.
|
|
3336
|
+
var tmp_1 = tmp8_elvis_lhs == null ? base.v15_1 : tmp8_elvis_lhs;
|
|
3336
3337
|
var tmp10_elvis_lhs = configDto == null ? null : configDto.tileSize;
|
|
3337
|
-
var cfg = base.
|
|
3338
|
+
var cfg = base.h17(VOID, tmp_0, tmp_1, tmp10_elvis_lhs == null ? base.w15_1 : tmp10_elvis_lhs);
|
|
3338
3339
|
var primary = ElevationProvider_init_$Create$(cfg);
|
|
3339
|
-
var tmp11_safe_receiver = source.
|
|
3340
|
+
var tmp11_safe_receiver = source.r17();
|
|
3340
3341
|
var tmp_2;
|
|
3341
3342
|
if (tmp11_safe_receiver == null) {
|
|
3342
3343
|
tmp_2 = null;
|
|
3343
3344
|
} else {
|
|
3344
3345
|
// Inline function 'kotlin.let' call
|
|
3345
|
-
tmp_2 = primary.
|
|
3346
|
+
tmp_2 = primary.a16(provider(tmp11_safe_receiver));
|
|
3346
3347
|
}
|
|
3347
3348
|
var tmp12_elvis_lhs = tmp_2;
|
|
3348
3349
|
return tmp12_elvis_lhs == null ? primary : tmp12_elvis_lhs;
|
|
@@ -3350,8 +3351,8 @@
|
|
|
3350
3351
|
function elevationAttribution(provider) {
|
|
3351
3352
|
_init_properties_ElevationJsApi_kt__1yyas4();
|
|
3352
3353
|
var o = {};
|
|
3353
|
-
o.text = provider.
|
|
3354
|
-
o.url = provider.
|
|
3354
|
+
o.text = provider.c16().i17_1;
|
|
3355
|
+
o.url = provider.c16().j17_1;
|
|
3355
3356
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3356
3357
|
return o;
|
|
3357
3358
|
}
|
|
@@ -3424,20 +3425,20 @@
|
|
|
3424
3425
|
return o;
|
|
3425
3426
|
}
|
|
3426
3427
|
function getElevation$slambda($provider, $latitude, $longitude, $interpolation, resultContinuation) {
|
|
3427
|
-
this.
|
|
3428
|
-
this.
|
|
3429
|
-
this.
|
|
3430
|
-
this.
|
|
3428
|
+
this.d1f_1 = $provider;
|
|
3429
|
+
this.e1f_1 = $latitude;
|
|
3430
|
+
this.f1f_1 = $longitude;
|
|
3431
|
+
this.g1f_1 = $interpolation;
|
|
3431
3432
|
CoroutineImpl.call(this, resultContinuation);
|
|
3432
3433
|
}
|
|
3433
|
-
protoOf(getElevation$slambda).
|
|
3434
|
-
var tmp = this.
|
|
3434
|
+
protoOf(getElevation$slambda).i1f = function ($this$promise, $completion) {
|
|
3435
|
+
var tmp = this.m18($this$promise, $completion);
|
|
3435
3436
|
tmp.i7_1 = Unit_instance;
|
|
3436
3437
|
tmp.j7_1 = null;
|
|
3437
3438
|
return tmp.o7();
|
|
3438
3439
|
};
|
|
3439
3440
|
protoOf(getElevation$slambda).w7 = function (p1, $completion) {
|
|
3440
|
-
return this.
|
|
3441
|
+
return this.i1f((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
3441
3442
|
};
|
|
3442
3443
|
protoOf(getElevation$slambda).o7 = function () {
|
|
3443
3444
|
var suspendResult = this.i7_1;
|
|
@@ -3448,7 +3449,7 @@
|
|
|
3448
3449
|
case 0:
|
|
3449
3450
|
this.h7_1 = 2;
|
|
3450
3451
|
this.g7_1 = 1;
|
|
3451
|
-
suspendResult = this.
|
|
3452
|
+
suspendResult = this.d1f_1.i15(this.e1f_1, this.f1f_1, this.g1f_1, this);
|
|
3452
3453
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3453
3454
|
return suspendResult;
|
|
3454
3455
|
}
|
|
@@ -3470,31 +3471,31 @@
|
|
|
3470
3471
|
}
|
|
3471
3472
|
while (true);
|
|
3472
3473
|
};
|
|
3473
|
-
protoOf(getElevation$slambda).
|
|
3474
|
-
var i = new getElevation$slambda(this.
|
|
3475
|
-
i.
|
|
3474
|
+
protoOf(getElevation$slambda).m18 = function ($this$promise, completion) {
|
|
3475
|
+
var i = new getElevation$slambda(this.d1f_1, this.e1f_1, this.f1f_1, this.g1f_1, completion);
|
|
3476
|
+
i.h1f_1 = $this$promise;
|
|
3476
3477
|
return i;
|
|
3477
3478
|
};
|
|
3478
3479
|
function getElevation$slambda_0($provider, $latitude, $longitude, $interpolation, resultContinuation) {
|
|
3479
3480
|
var i = new getElevation$slambda($provider, $latitude, $longitude, $interpolation, resultContinuation);
|
|
3480
3481
|
return constructCallableReference(function ($this$promise, $completion) {
|
|
3481
|
-
return i.
|
|
3482
|
+
return i.i1f($this$promise, $completion);
|
|
3482
3483
|
}, 1);
|
|
3483
3484
|
}
|
|
3484
3485
|
function getElevationsAlong$slambda($path, $provider, $options, resultContinuation) {
|
|
3485
|
-
this.
|
|
3486
|
-
this.
|
|
3487
|
-
this.
|
|
3486
|
+
this.r1f_1 = $path;
|
|
3487
|
+
this.s1f_1 = $provider;
|
|
3488
|
+
this.t1f_1 = $options;
|
|
3488
3489
|
CoroutineImpl.call(this, resultContinuation);
|
|
3489
3490
|
}
|
|
3490
|
-
protoOf(getElevationsAlong$slambda).
|
|
3491
|
-
var tmp = this.
|
|
3491
|
+
protoOf(getElevationsAlong$slambda).v1f = function ($this$promise, $completion) {
|
|
3492
|
+
var tmp = this.m18($this$promise, $completion);
|
|
3492
3493
|
tmp.i7_1 = Unit_instance;
|
|
3493
3494
|
tmp.j7_1 = null;
|
|
3494
3495
|
return tmp.o7();
|
|
3495
3496
|
};
|
|
3496
3497
|
protoOf(getElevationsAlong$slambda).w7 = function (p1, $completion) {
|
|
3497
|
-
return this.
|
|
3498
|
+
return this.v1f((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
3498
3499
|
};
|
|
3499
3500
|
protoOf(getElevationsAlong$slambda).o7 = function () {
|
|
3500
3501
|
var suspendResult = this.i7_1;
|
|
@@ -3504,7 +3505,7 @@
|
|
|
3504
3505
|
switch (tmp) {
|
|
3505
3506
|
case 0:
|
|
3506
3507
|
this.h7_1 = 2;
|
|
3507
|
-
var this_0 = this.
|
|
3508
|
+
var this_0 = this.r1f_1;
|
|
3508
3509
|
var destination = ArrayList_init_$Create$_0(this_0.length);
|
|
3509
3510
|
var inductionVariable = 0;
|
|
3510
3511
|
var last = this_0.length;
|
|
@@ -3516,21 +3517,21 @@
|
|
|
3516
3517
|
|
|
3517
3518
|
var coords = destination;
|
|
3518
3519
|
this.g7_1 = 1;
|
|
3519
|
-
var tmp0_safe_receiver = this.
|
|
3520
|
+
var tmp0_safe_receiver = this.t1f_1;
|
|
3520
3521
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.step;
|
|
3521
3522
|
var tmp_0 = tmp1_elvis_lhs == null ? 10.0 : tmp1_elvis_lhs;
|
|
3522
|
-
var tmp2_safe_receiver = this.
|
|
3523
|
+
var tmp2_safe_receiver = this.t1f_1;
|
|
3523
3524
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.minDistance;
|
|
3524
3525
|
var tmp_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
|
|
3525
|
-
var tmp4_safe_receiver = this.
|
|
3526
|
+
var tmp4_safe_receiver = this.t1f_1;
|
|
3526
3527
|
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.interpolation;
|
|
3527
3528
|
var tmp_2 = tmp5_elvis_lhs == null ? true : tmp5_elvis_lhs;
|
|
3528
|
-
var tmp6_safe_receiver = this.
|
|
3529
|
+
var tmp6_safe_receiver = this.t1f_1;
|
|
3529
3530
|
var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.smoothingOptions;
|
|
3530
3531
|
var tmp_3 = tmp7_safe_receiver == null ? null : toKotlin(tmp7_safe_receiver);
|
|
3531
|
-
var tmp8_safe_receiver = this.
|
|
3532
|
+
var tmp8_safe_receiver = this.t1f_1;
|
|
3532
3533
|
var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.filterOptions;
|
|
3533
|
-
suspendResult = this.
|
|
3534
|
+
suspendResult = this.s1f_1.f16(coords, tmp_0, tmp_1, tmp_2, tmp_3, tmp9_safe_receiver == null ? null : toKotlin_0(tmp9_safe_receiver), this);
|
|
3534
3535
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3535
3536
|
return suspendResult;
|
|
3536
3537
|
}
|
|
@@ -3544,7 +3545,7 @@
|
|
|
3544
3545
|
while (tmp_4 < tmp_5) {
|
|
3545
3546
|
var tmp_7 = tmp_4;
|
|
3546
3547
|
var c = results.p(tmp_7);
|
|
3547
|
-
tmp_6[tmp_7] = coordsEle(c.gz(), c.hz(), c.
|
|
3548
|
+
tmp_6[tmp_7] = coordsEle(c.gz(), c.hz(), c.e11());
|
|
3548
3549
|
tmp_4 = tmp_4 + 1 | 0;
|
|
3549
3550
|
}
|
|
3550
3551
|
|
|
@@ -3563,15 +3564,15 @@
|
|
|
3563
3564
|
}
|
|
3564
3565
|
while (true);
|
|
3565
3566
|
};
|
|
3566
|
-
protoOf(getElevationsAlong$slambda).
|
|
3567
|
-
var i = new getElevationsAlong$slambda(this.
|
|
3568
|
-
i.
|
|
3567
|
+
protoOf(getElevationsAlong$slambda).m18 = function ($this$promise, completion) {
|
|
3568
|
+
var i = new getElevationsAlong$slambda(this.r1f_1, this.s1f_1, this.t1f_1, completion);
|
|
3569
|
+
i.u1f_1 = $this$promise;
|
|
3569
3570
|
return i;
|
|
3570
3571
|
};
|
|
3571
3572
|
function getElevationsAlong$slambda_0($path, $provider, $options, resultContinuation) {
|
|
3572
3573
|
var i = new getElevationsAlong$slambda($path, $provider, $options, resultContinuation);
|
|
3573
3574
|
return constructCallableReference(function ($this$promise, $completion) {
|
|
3574
|
-
return i.
|
|
3575
|
+
return i.v1f($this$promise, $completion);
|
|
3575
3576
|
}, 1);
|
|
3576
3577
|
}
|
|
3577
3578
|
var properties_initialized_ElevationJsApi_kt_8pvyh6;
|
|
@@ -3725,7 +3726,7 @@
|
|
|
3725
3726
|
}
|
|
3726
3727
|
function $fetchAndDecodeTileCOROUTINE$(url, resultContinuation) {
|
|
3727
3728
|
CoroutineImpl.call(this, resultContinuation);
|
|
3728
|
-
this.
|
|
3729
|
+
this.e1g_1 = url;
|
|
3729
3730
|
}
|
|
3730
3731
|
protoOf($fetchAndDecodeTileCOROUTINE$).o7 = function () {
|
|
3731
3732
|
var suspendResult = this.i7_1;
|
|
@@ -3737,14 +3738,14 @@
|
|
|
3737
3738
|
this.h7_1 = 4;
|
|
3738
3739
|
if (get_isNode()) {
|
|
3739
3740
|
this.g7_1 = 2;
|
|
3740
|
-
suspendResult = decodeNode(this.
|
|
3741
|
+
suspendResult = decodeNode(this.e1g_1, this);
|
|
3741
3742
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3742
3743
|
return suspendResult;
|
|
3743
3744
|
}
|
|
3744
3745
|
continue $sm;
|
|
3745
3746
|
} else {
|
|
3746
3747
|
this.g7_1 = 1;
|
|
3747
|
-
suspendResult = decodeBrowser(this.
|
|
3748
|
+
suspendResult = decodeBrowser(this.e1g_1, this);
|
|
3748
3749
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3749
3750
|
return suspendResult;
|
|
3750
3751
|
}
|
|
@@ -3752,15 +3753,15 @@
|
|
|
3752
3753
|
}
|
|
3753
3754
|
|
|
3754
3755
|
case 1:
|
|
3755
|
-
this.
|
|
3756
|
+
this.f1g_1 = suspendResult;
|
|
3756
3757
|
this.g7_1 = 3;
|
|
3757
3758
|
continue $sm;
|
|
3758
3759
|
case 2:
|
|
3759
|
-
this.
|
|
3760
|
+
this.f1g_1 = suspendResult;
|
|
3760
3761
|
this.g7_1 = 3;
|
|
3761
3762
|
continue $sm;
|
|
3762
3763
|
case 3:
|
|
3763
|
-
return this.
|
|
3764
|
+
return this.f1g_1;
|
|
3764
3765
|
case 4:
|
|
3765
3766
|
throw this.j7_1;
|
|
3766
3767
|
}
|
|
@@ -3777,8 +3778,8 @@
|
|
|
3777
3778
|
};
|
|
3778
3779
|
function $decodeTileBytesCOROUTINE$(bytes, sourceUrl, resultContinuation) {
|
|
3779
3780
|
CoroutineImpl.call(this, resultContinuation);
|
|
3780
|
-
this.
|
|
3781
|
-
this.
|
|
3781
|
+
this.o1g_1 = bytes;
|
|
3782
|
+
this.p1g_1 = sourceUrl;
|
|
3782
3783
|
}
|
|
3783
3784
|
protoOf($decodeTileBytesCOROUTINE$).o7 = function () {
|
|
3784
3785
|
var suspendResult = this.i7_1;
|
|
@@ -3790,14 +3791,14 @@
|
|
|
3790
3791
|
this.h7_1 = 4;
|
|
3791
3792
|
if (get_isNode()) {
|
|
3792
3793
|
this.g7_1 = 2;
|
|
3793
|
-
suspendResult = decodeBytesNode(this.
|
|
3794
|
+
suspendResult = decodeBytesNode(this.o1g_1, this.p1g_1, this);
|
|
3794
3795
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3795
3796
|
return suspendResult;
|
|
3796
3797
|
}
|
|
3797
3798
|
continue $sm;
|
|
3798
3799
|
} else {
|
|
3799
3800
|
this.g7_1 = 1;
|
|
3800
|
-
suspendResult = decodeBlob(blobOf(this.
|
|
3801
|
+
suspendResult = decodeBlob(blobOf(this.o1g_1), this.p1g_1, this);
|
|
3801
3802
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3802
3803
|
return suspendResult;
|
|
3803
3804
|
}
|
|
@@ -3805,15 +3806,15 @@
|
|
|
3805
3806
|
}
|
|
3806
3807
|
|
|
3807
3808
|
case 1:
|
|
3808
|
-
this.
|
|
3809
|
+
this.q1g_1 = suspendResult;
|
|
3809
3810
|
this.g7_1 = 3;
|
|
3810
3811
|
continue $sm;
|
|
3811
3812
|
case 2:
|
|
3812
|
-
this.
|
|
3813
|
+
this.q1g_1 = suspendResult;
|
|
3813
3814
|
this.g7_1 = 3;
|
|
3814
3815
|
continue $sm;
|
|
3815
3816
|
case 3:
|
|
3816
|
-
return this.
|
|
3817
|
+
return this.q1g_1;
|
|
3817
3818
|
case 4:
|
|
3818
3819
|
throw this.j7_1;
|
|
3819
3820
|
}
|
|
@@ -3830,7 +3831,7 @@
|
|
|
3830
3831
|
};
|
|
3831
3832
|
function $decodeNodeCOROUTINE$(url, resultContinuation) {
|
|
3832
3833
|
CoroutineImpl.call(this, resultContinuation);
|
|
3833
|
-
this.
|
|
3834
|
+
this.z1g_1 = url;
|
|
3834
3835
|
}
|
|
3835
3836
|
protoOf($decodeNodeCOROUTINE$).o7 = function () {
|
|
3836
3837
|
var suspendResult = this.i7_1;
|
|
@@ -3841,7 +3842,7 @@
|
|
|
3841
3842
|
case 0:
|
|
3842
3843
|
this.h7_1 = 4;
|
|
3843
3844
|
this.g7_1 = 1;
|
|
3844
|
-
suspendResult = await_0(fetchUrlNode(this.
|
|
3845
|
+
suspendResult = await_0(fetchUrlNode(this.z1g_1), this);
|
|
3845
3846
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3846
3847
|
return suspendResult;
|
|
3847
3848
|
}
|
|
@@ -3849,7 +3850,7 @@
|
|
|
3849
3850
|
continue $sm;
|
|
3850
3851
|
case 1:
|
|
3851
3852
|
var res = suspendResult;
|
|
3852
|
-
requireOk(res, this.
|
|
3853
|
+
requireOk(res, this.z1g_1);
|
|
3853
3854
|
this.g7_1 = 2;
|
|
3854
3855
|
suspendResult = await_0(responseArrayBuffer(res), this);
|
|
3855
3856
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -3885,7 +3886,7 @@
|
|
|
3885
3886
|
};
|
|
3886
3887
|
function $decodeBrowserCOROUTINE$(url, resultContinuation) {
|
|
3887
3888
|
CoroutineImpl.call(this, resultContinuation);
|
|
3888
|
-
this.
|
|
3889
|
+
this.i1h_1 = url;
|
|
3889
3890
|
}
|
|
3890
3891
|
protoOf($decodeBrowserCOROUTINE$).o7 = function () {
|
|
3891
3892
|
var suspendResult = this.i7_1;
|
|
@@ -3896,7 +3897,7 @@
|
|
|
3896
3897
|
case 0:
|
|
3897
3898
|
this.h7_1 = 4;
|
|
3898
3899
|
this.g7_1 = 1;
|
|
3899
|
-
suspendResult = await_0(fetchUrlBrowser(this.
|
|
3900
|
+
suspendResult = await_0(fetchUrlBrowser(this.i1h_1), this);
|
|
3900
3901
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3901
3902
|
return suspendResult;
|
|
3902
3903
|
}
|
|
@@ -3904,7 +3905,7 @@
|
|
|
3904
3905
|
continue $sm;
|
|
3905
3906
|
case 1:
|
|
3906
3907
|
var res = suspendResult;
|
|
3907
|
-
requireOk(res, this.
|
|
3908
|
+
requireOk(res, this.i1h_1);
|
|
3908
3909
|
this.g7_1 = 2;
|
|
3909
3910
|
suspendResult = await_0(res.blob(), this);
|
|
3910
3911
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -3915,7 +3916,7 @@
|
|
|
3915
3916
|
case 2:
|
|
3916
3917
|
var ARGUMENT = suspendResult;
|
|
3917
3918
|
this.g7_1 = 3;
|
|
3918
|
-
suspendResult = decodeBlob(ARGUMENT, this.
|
|
3919
|
+
suspendResult = decodeBlob(ARGUMENT, this.i1h_1, this);
|
|
3919
3920
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3920
3921
|
return suspendResult;
|
|
3921
3922
|
}
|
|
@@ -3939,8 +3940,8 @@
|
|
|
3939
3940
|
};
|
|
3940
3941
|
function $decodeBytesNodeCOROUTINE$(bytes, sourceUrl, resultContinuation) {
|
|
3941
3942
|
CoroutineImpl.call(this, resultContinuation);
|
|
3942
|
-
this.
|
|
3943
|
-
this.
|
|
3943
|
+
this.r1h_1 = bytes;
|
|
3944
|
+
this.s1h_1 = sourceUrl;
|
|
3944
3945
|
}
|
|
3945
3946
|
protoOf($decodeBytesNodeCOROUTINE$).o7 = function () {
|
|
3946
3947
|
var suspendResult = this.i7_1;
|
|
@@ -3950,7 +3951,7 @@
|
|
|
3950
3951
|
switch (tmp) {
|
|
3951
3952
|
case 0:
|
|
3952
3953
|
this.h7_1 = 4;
|
|
3953
|
-
var view = this.
|
|
3954
|
+
var view = this.r1h_1;
|
|
3954
3955
|
var buffer = view.buffer.slice(view.byteOffset, view.byteOffset + view.byteLength);
|
|
3955
3956
|
this.h7_1 = 2;
|
|
3956
3957
|
this.g7_1 = 1;
|
|
@@ -3961,7 +3962,7 @@
|
|
|
3961
3962
|
|
|
3962
3963
|
continue $sm;
|
|
3963
3964
|
case 1:
|
|
3964
|
-
this.
|
|
3965
|
+
this.t1h_1 = suspendResult;
|
|
3965
3966
|
this.h7_1 = 4;
|
|
3966
3967
|
this.g7_1 = 3;
|
|
3967
3968
|
continue $sm;
|
|
@@ -3971,7 +3972,7 @@
|
|
|
3971
3972
|
if (tmp_0 instanceof Error) {
|
|
3972
3973
|
var e = this.j7_1;
|
|
3973
3974
|
var tmp_1 = this;
|
|
3974
|
-
var this_0 = this.
|
|
3975
|
+
var this_0 = this.s1h_1;
|
|
3975
3976
|
var tmp_2;
|
|
3976
3977
|
if (charSequenceLength(this_0) === 0) {
|
|
3977
3978
|
tmp_2 = '<unnamed bytes>';
|
|
@@ -3986,7 +3987,7 @@
|
|
|
3986
3987
|
|
|
3987
3988
|
case 3:
|
|
3988
3989
|
this.h7_1 = 4;
|
|
3989
|
-
var image = this.
|
|
3990
|
+
var image = this.t1h_1;
|
|
3990
3991
|
return rawTileFromJsquash(image);
|
|
3991
3992
|
case 4:
|
|
3992
3993
|
throw this.j7_1;
|
|
@@ -4004,8 +4005,8 @@
|
|
|
4004
4005
|
};
|
|
4005
4006
|
function $decodeBlobCOROUTINE$(blob, sourceUrl, resultContinuation) {
|
|
4006
4007
|
CoroutineImpl.call(this, resultContinuation);
|
|
4007
|
-
this.
|
|
4008
|
-
this.
|
|
4008
|
+
this.c1i_1 = blob;
|
|
4009
|
+
this.d1i_1 = sourceUrl;
|
|
4009
4010
|
}
|
|
4010
4011
|
protoOf($decodeBlobCOROUTINE$).o7 = function () {
|
|
4011
4012
|
var suspendResult = this.i7_1;
|
|
@@ -4017,14 +4018,14 @@
|
|
|
4017
4018
|
this.h7_1 = 3;
|
|
4018
4019
|
this.h7_1 = 2;
|
|
4019
4020
|
this.g7_1 = 1;
|
|
4020
|
-
suspendResult = await_0(window.createImageBitmap(this.
|
|
4021
|
+
suspendResult = await_0(window.createImageBitmap(this.c1i_1), this);
|
|
4021
4022
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4022
4023
|
return suspendResult;
|
|
4023
4024
|
}
|
|
4024
4025
|
|
|
4025
4026
|
continue $sm;
|
|
4026
4027
|
case 1:
|
|
4027
|
-
this.
|
|
4028
|
+
this.e1i_1 = suspendResult;
|
|
4028
4029
|
this.h7_1 = 3;
|
|
4029
4030
|
this.g7_1 = 4;
|
|
4030
4031
|
continue $sm;
|
|
@@ -4034,7 +4035,7 @@
|
|
|
4034
4035
|
if (tmp_0 instanceof Error) {
|
|
4035
4036
|
var e = this.j7_1;
|
|
4036
4037
|
var tmp_1 = this;
|
|
4037
|
-
var this_0 = this.
|
|
4038
|
+
var this_0 = this.d1i_1;
|
|
4038
4039
|
var tmp_2;
|
|
4039
4040
|
if (charSequenceLength(this_0) === 0) {
|
|
4040
4041
|
tmp_2 = '<unnamed bytes>';
|
|
@@ -4051,7 +4052,7 @@
|
|
|
4051
4052
|
throw this.j7_1;
|
|
4052
4053
|
case 4:
|
|
4053
4054
|
this.h7_1 = 3;
|
|
4054
|
-
var bitmap = this.
|
|
4055
|
+
var bitmap = this.e1i_1;
|
|
4055
4056
|
l$ret$3: do {
|
|
4056
4057
|
var tmp$ret$0;
|
|
4057
4058
|
l$ret$1: do {
|
|
@@ -4099,7 +4100,7 @@
|
|
|
4099
4100
|
};
|
|
4100
4101
|
function $decodeWebpNodeCOROUTINE$(buffer, resultContinuation) {
|
|
4101
4102
|
CoroutineImpl.call(this, resultContinuation);
|
|
4102
|
-
this.
|
|
4103
|
+
this.n1i_1 = buffer;
|
|
4103
4104
|
}
|
|
4104
4105
|
protoOf($decodeWebpNodeCOROUTINE$).o7 = function () {
|
|
4105
4106
|
var suspendResult = this.i7_1;
|
|
@@ -4118,7 +4119,7 @@
|
|
|
4118
4119
|
continue $sm;
|
|
4119
4120
|
case 1:
|
|
4120
4121
|
var decode = suspendResult;
|
|
4121
|
-
var resultPromise = decode(this.
|
|
4122
|
+
var resultPromise = decode(this.n1i_1);
|
|
4122
4123
|
this.g7_1 = 2;
|
|
4123
4124
|
suspendResult = await_0(resultPromise, this);
|
|
4124
4125
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -4144,7 +4145,7 @@
|
|
|
4144
4145
|
};
|
|
4145
4146
|
function $fetchTileBytesCOROUTINE$(url, resultContinuation) {
|
|
4146
4147
|
CoroutineImpl.call(this, resultContinuation);
|
|
4147
|
-
this.
|
|
4148
|
+
this.w1i_1 = url;
|
|
4148
4149
|
}
|
|
4149
4150
|
protoOf($fetchTileBytesCOROUTINE$).o7 = function () {
|
|
4150
4151
|
var suspendResult = this.i7_1;
|
|
@@ -4156,14 +4157,14 @@
|
|
|
4156
4157
|
this.h7_1 = 5;
|
|
4157
4158
|
if (get_isNode()) {
|
|
4158
4159
|
this.g7_1 = 2;
|
|
4159
|
-
suspendResult = await_0(fetchUrlNode(this.
|
|
4160
|
+
suspendResult = await_0(fetchUrlNode(this.w1i_1), this);
|
|
4160
4161
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4161
4162
|
return suspendResult;
|
|
4162
4163
|
}
|
|
4163
4164
|
continue $sm;
|
|
4164
4165
|
} else {
|
|
4165
4166
|
this.g7_1 = 1;
|
|
4166
|
-
suspendResult = await_0(fetchUrlBrowser(this.
|
|
4167
|
+
suspendResult = await_0(fetchUrlBrowser(this.w1i_1), this);
|
|
4167
4168
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4168
4169
|
return suspendResult;
|
|
4169
4170
|
}
|
|
@@ -4171,16 +4172,16 @@
|
|
|
4171
4172
|
}
|
|
4172
4173
|
|
|
4173
4174
|
case 1:
|
|
4174
|
-
this.
|
|
4175
|
+
this.x1i_1 = suspendResult;
|
|
4175
4176
|
this.g7_1 = 3;
|
|
4176
4177
|
continue $sm;
|
|
4177
4178
|
case 2:
|
|
4178
|
-
this.
|
|
4179
|
+
this.x1i_1 = suspendResult;
|
|
4179
4180
|
this.g7_1 = 3;
|
|
4180
4181
|
continue $sm;
|
|
4181
4182
|
case 3:
|
|
4182
|
-
var res = this.
|
|
4183
|
-
requireOk(res, this.
|
|
4183
|
+
var res = this.x1i_1;
|
|
4184
|
+
requireOk(res, this.w1i_1);
|
|
4184
4185
|
this.g7_1 = 4;
|
|
4185
4186
|
suspendResult = await_0(responseArrayBuffer(res), this);
|
|
4186
4187
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -4217,13 +4218,13 @@
|
|
|
4217
4218
|
function fetchAndDecodeTile$ref_1() {
|
|
4218
4219
|
var i = new fetchAndDecodeTile$ref();
|
|
4219
4220
|
return constructCallableReference(function (p0, $completion) {
|
|
4220
|
-
return i.
|
|
4221
|
+
return i.j16(p0, $completion);
|
|
4221
4222
|
}, 1, 1, 2, 'fetchAndDecodeTile');
|
|
4222
4223
|
}
|
|
4223
4224
|
function fetchTileBytes$ref_0() {
|
|
4224
4225
|
var i = new fetchTileBytes$ref();
|
|
4225
4226
|
return constructCallableReference(function (p0, $completion) {
|
|
4226
|
-
return i.
|
|
4227
|
+
return i.y1d(p0, $completion);
|
|
4227
4228
|
}, 1, 1, 4, 'fetchTileBytes');
|
|
4228
4229
|
}
|
|
4229
4230
|
//region block: init
|