@glandais/vcyclist-engine 6.7.0 → 6.9.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/README.md +3 -3
- package/fit-kotlin-sdk.js +3736 -3736
- package/index.d.ts +20 -2
- package/kotlin-kotlin-stdlib.js +7 -7
- package/kotlinx-coroutines-core.js +2 -2
- package/package.json +1 -1
- package/vcyclist-elevation.js +617 -598
- package/vcyclist-elevation.js.map +1 -1
- package/vcyclist-engine.js +2019 -1788
- package/vcyclist-engine.js.map +1 -1
- package/vcyclist-fit.js +197 -197
- package/vcyclist-gpx.js +1213 -1208
- package/vcyclist-gpx.js.map +1 -1
- package/xmlutil-core.js +2393 -2393
package/vcyclist-elevation.js
CHANGED
|
@@ -1392,14 +1392,14 @@
|
|
|
1392
1392
|
function ElevationProvider_init_$Init$(config, fetcher, $this) {
|
|
1393
1393
|
config = config === VOID ? new ElevationProviderConfig() : config;
|
|
1394
1394
|
fetcher = fetcher === VOID ? defaultTileFetcher(config) : fetcher;
|
|
1395
|
-
ElevationProvider.call($this, config, fetcher, null, false, null);
|
|
1395
|
+
ElevationProvider.call($this, config, fetcher, null, false, null, null);
|
|
1396
1396
|
return $this;
|
|
1397
1397
|
}
|
|
1398
1398
|
function ElevationProvider_init_$Create$(config, fetcher) {
|
|
1399
1399
|
return ElevationProvider_init_$Init$(config, fetcher, objectCreate(protoOf(ElevationProvider)));
|
|
1400
1400
|
}
|
|
1401
1401
|
function ElevationProvider_init_$Init$_0(config, fetcher, keepNoData, $this) {
|
|
1402
|
-
ElevationProvider.call($this, config, fetcher, null, keepNoData, null);
|
|
1402
|
+
ElevationProvider.call($this, config, fetcher, null, keepNoData, null, null);
|
|
1403
1403
|
return $this;
|
|
1404
1404
|
}
|
|
1405
1405
|
function ElevationProvider_init_$Create$_0(config, fetcher, keepNoData) {
|
|
@@ -1434,7 +1434,7 @@
|
|
|
1434
1434
|
case 0:
|
|
1435
1435
|
this.k7_1 = 2;
|
|
1436
1436
|
this.j7_1 = 1;
|
|
1437
|
-
suspendResult = this.o17_1.w17_1.
|
|
1437
|
+
suspendResult = this.o17_1.w17_1.d18(this.p17_1.xz(), this.p17_1.yz(), this.q17_1, this);
|
|
1438
1438
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1439
1439
|
return suspendResult;
|
|
1440
1440
|
}
|
|
@@ -1500,8 +1500,8 @@
|
|
|
1500
1500
|
};
|
|
1501
1501
|
protoOf(ElevationProvider$calculator$slambda_1).s17 = function (_unused_var__etf5q3, _unused_var__etf5q3_0, completion) {
|
|
1502
1502
|
var i = new ElevationProvider$calculator$slambda_1(completion);
|
|
1503
|
-
i.
|
|
1504
|
-
i.
|
|
1503
|
+
i.m18_1 = _unused_var__etf5q3;
|
|
1504
|
+
i.n18_1 = _unused_var__etf5q3_0;
|
|
1505
1505
|
return i;
|
|
1506
1506
|
};
|
|
1507
1507
|
function ElevationProvider$calculator$slambda_2(resultContinuation) {
|
|
@@ -1511,18 +1511,18 @@
|
|
|
1511
1511
|
}, 2);
|
|
1512
1512
|
}
|
|
1513
1513
|
function ElevationProvider$setElevationsWithOrigin$slambda(this$0, $interpolation, resultContinuation) {
|
|
1514
|
-
this.
|
|
1515
|
-
this.
|
|
1514
|
+
this.w18_1 = this$0;
|
|
1515
|
+
this.x18_1 = $interpolation;
|
|
1516
1516
|
CoroutineImpl.call(this, resultContinuation);
|
|
1517
1517
|
}
|
|
1518
|
-
protoOf(ElevationProvider$setElevationsWithOrigin$slambda).
|
|
1518
|
+
protoOf(ElevationProvider$setElevationsWithOrigin$slambda).z18 = function (it, $completion) {
|
|
1519
1519
|
var tmp = this.wz(it, $completion);
|
|
1520
1520
|
tmp.l7_1 = Unit_instance;
|
|
1521
1521
|
tmp.m7_1 = null;
|
|
1522
1522
|
return tmp.r7();
|
|
1523
1523
|
};
|
|
1524
1524
|
protoOf(ElevationProvider$setElevationsWithOrigin$slambda).z7 = function (p1, $completion) {
|
|
1525
|
-
return this.
|
|
1525
|
+
return this.z18((!(p1 == null) ? isInterface(p1, Coordinates) : false) ? p1 : THROW_CCE(), $completion);
|
|
1526
1526
|
};
|
|
1527
1527
|
protoOf(ElevationProvider$setElevationsWithOrigin$slambda).r7 = function () {
|
|
1528
1528
|
var suspendResult = this.l7_1;
|
|
@@ -1533,7 +1533,7 @@
|
|
|
1533
1533
|
case 0:
|
|
1534
1534
|
this.k7_1 = 2;
|
|
1535
1535
|
this.j7_1 = 1;
|
|
1536
|
-
suspendResult = sample(this.
|
|
1536
|
+
suspendResult = sample(this.w18_1, this.y18_1, this.x18_1, this);
|
|
1537
1537
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1538
1538
|
return suspendResult;
|
|
1539
1539
|
}
|
|
@@ -1556,14 +1556,14 @@
|
|
|
1556
1556
|
while (true);
|
|
1557
1557
|
};
|
|
1558
1558
|
protoOf(ElevationProvider$setElevationsWithOrigin$slambda).wz = function (it, completion) {
|
|
1559
|
-
var i = new ElevationProvider$setElevationsWithOrigin$slambda(this.
|
|
1560
|
-
i.
|
|
1559
|
+
var i = new ElevationProvider$setElevationsWithOrigin$slambda(this.w18_1, this.x18_1, completion);
|
|
1560
|
+
i.y18_1 = it;
|
|
1561
1561
|
return i;
|
|
1562
1562
|
};
|
|
1563
1563
|
function ElevationProvider$setElevationsWithOrigin$slambda_0(this$0, $interpolation, resultContinuation) {
|
|
1564
1564
|
var i = new ElevationProvider$setElevationsWithOrigin$slambda(this$0, $interpolation, resultContinuation);
|
|
1565
1565
|
return constructCallableReference(function (it, $completion) {
|
|
1566
|
-
return i.
|
|
1566
|
+
return i.z18(it, $completion);
|
|
1567
1567
|
}, 1);
|
|
1568
1568
|
}
|
|
1569
1569
|
function $sampleCOROUTINE$(_this__u8e3s4, coords, interpolation, resultContinuation) {
|
|
@@ -1582,7 +1582,7 @@
|
|
|
1582
1582
|
this.k7_1 = 4;
|
|
1583
1583
|
this.e17_1 = new UnreadableFlag();
|
|
1584
1584
|
this.j7_1 = 1;
|
|
1585
|
-
suspendResult = this.b17_1.
|
|
1585
|
+
suspendResult = this.b17_1.b18_1.y14(this.c17_1, this.b17_1.u17_1.a19_1, this.d17_1, this.e17_1, this);
|
|
1586
1586
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1587
1587
|
return suspendResult;
|
|
1588
1588
|
}
|
|
@@ -1591,7 +1591,8 @@
|
|
|
1591
1591
|
case 1:
|
|
1592
1592
|
var own = suspendResult;
|
|
1593
1593
|
if (!isNaN_0(own)) {
|
|
1594
|
-
|
|
1594
|
+
var origin = Companion_getInstance_1().i19(this.b17_1.u17_1, this.b17_1.z17_1, this.c17_1.xz(), this.c17_1.yz());
|
|
1595
|
+
return new TerrainSample(this.c17_1.xz(), this.c17_1.yz(), own, origin, false);
|
|
1595
1596
|
}
|
|
1596
1597
|
|
|
1597
1598
|
var tmp0_safe_receiver = this.b17_1.w17_1;
|
|
@@ -1615,7 +1616,7 @@
|
|
|
1615
1616
|
case 3:
|
|
1616
1617
|
var next = this.f17_1;
|
|
1617
1618
|
if (!(next == null))
|
|
1618
|
-
return this.e17_1.d13_1 ? next.
|
|
1619
|
+
return this.e17_1.d13_1 ? next.o19(VOID, VOID, VOID, VOID, true) : next;
|
|
1619
1620
|
return new TerrainSample(this.c17_1.xz(), this.c17_1.yz(), this.b17_1.x17_1 ? NaN : 0.0, TerrainOrigin_NONE_getInstance(), this.e17_1.d13_1);
|
|
1620
1621
|
case 4:
|
|
1621
1622
|
throw this.m7_1;
|
|
@@ -1631,38 +1632,39 @@
|
|
|
1631
1632
|
}
|
|
1632
1633
|
while (true);
|
|
1633
1634
|
};
|
|
1634
|
-
function ElevationProvider(config, fetcher, fallback, keepNoData, surfaceModel) {
|
|
1635
|
+
function ElevationProvider(config, fetcher, fallback, keepNoData, surfaceModel, declaredSource) {
|
|
1635
1636
|
this.u17_1 = config;
|
|
1636
1637
|
this.v17_1 = fetcher;
|
|
1637
1638
|
this.w17_1 = fallback;
|
|
1638
1639
|
this.x17_1 = keepNoData;
|
|
1639
1640
|
this.y17_1 = surfaceModel;
|
|
1641
|
+
this.z17_1 = declaredSource;
|
|
1640
1642
|
// Inline function 'kotlin.require' call
|
|
1641
|
-
if (!ElevationFunctions_instance.m16(this.u17_1.
|
|
1642
|
-
var message = 'Invalid zoom level: ' + this.u17_1.
|
|
1643
|
+
if (!ElevationFunctions_instance.m16(this.u17_1.a19_1)) {
|
|
1644
|
+
var message = 'Invalid zoom level: ' + this.u17_1.a19_1 + '. Must be an integer between ' + '0 and 15';
|
|
1643
1645
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1644
1646
|
}
|
|
1645
1647
|
// Inline function 'kotlin.require' call
|
|
1646
|
-
if (!(this.u17_1.
|
|
1647
|
-
var message_0 = 'Invalid cache size: ' + this.u17_1.
|
|
1648
|
+
if (!(this.u17_1.b19_1 > 0)) {
|
|
1649
|
+
var message_0 = 'Invalid cache size: ' + this.u17_1.b19_1 + '. Must be a positive integer';
|
|
1648
1650
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1649
1651
|
}
|
|
1650
1652
|
// Inline function 'kotlin.require' call
|
|
1651
|
-
if (!(this.u17_1.
|
|
1652
|
-
var message_1 = 'Invalid tile size: ' + this.u17_1.
|
|
1653
|
+
if (!(this.u17_1.d19_1 > 0 && (this.u17_1.d19_1 & (this.u17_1.d19_1 - 1 | 0)) === 0)) {
|
|
1654
|
+
var message_1 = 'Invalid tile size: ' + this.u17_1.d19_1 + '. Must be a positive power of 2';
|
|
1653
1655
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1654
1656
|
}
|
|
1655
1657
|
// Inline function 'kotlin.require' call
|
|
1656
|
-
if (!(this.u17_1.
|
|
1657
|
-
var message_2 = 'Invalid maxRequestsPerSecond: ' + this.u17_1.
|
|
1658
|
+
if (!(this.u17_1.g19_1 >= 0)) {
|
|
1659
|
+
var message_2 = 'Invalid maxRequestsPerSecond: ' + this.u17_1.g19_1 + '. Must be 0 (no limit) or positive';
|
|
1658
1660
|
throw IllegalArgumentException_init_$Create$(toString(message_2));
|
|
1659
1661
|
}
|
|
1660
1662
|
var tmp = this;
|
|
1661
1663
|
// Inline function 'kotlin.apply' call
|
|
1662
|
-
var this_0 = new TileManager(this.u17_1.
|
|
1664
|
+
var this_0 = new TileManager(this.u17_1.c19_1, this.u17_1.b19_1, this.v17_1);
|
|
1663
1665
|
if (!(this.w17_1 == null))
|
|
1664
|
-
this_0.z15_1 = new UnreadableTiles(this.u17_1.
|
|
1665
|
-
tmp.
|
|
1666
|
+
this_0.z15_1 = new UnreadableTiles(this.u17_1.c19_1, this.u17_1.d19_1);
|
|
1667
|
+
tmp.a18_1 = this_0;
|
|
1666
1668
|
var tmp_0 = this;
|
|
1667
1669
|
var tmp_1;
|
|
1668
1670
|
if (!(this.w17_1 == null)) {
|
|
@@ -1672,18 +1674,18 @@
|
|
|
1672
1674
|
} else {
|
|
1673
1675
|
tmp_1 = null;
|
|
1674
1676
|
}
|
|
1675
|
-
tmp_0.
|
|
1676
|
-
this.
|
|
1677
|
+
tmp_0.b18_1 = new ElevationCalculator(this.a18_1, this.u17_1.d19_1, tmp_1);
|
|
1678
|
+
this.c18_1 = new BatchCalculator(this.b18_1);
|
|
1677
1679
|
}
|
|
1678
|
-
protoOf(ElevationProvider).
|
|
1680
|
+
protoOf(ElevationProvider).p19 = function (other) {
|
|
1679
1681
|
// Inline function 'kotlin.require' call
|
|
1680
1682
|
if (!!this.x17_1) {
|
|
1681
1683
|
var message = 'a raw IGN LiDAR HD layer takes no fallback: its no-data must stay NaN';
|
|
1682
1684
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1683
1685
|
}
|
|
1684
|
-
return new ElevationProvider(this.u17_1, this.v17_1, other, false, this.y17_1);
|
|
1686
|
+
return new ElevationProvider(this.u17_1, this.v17_1, other, false, this.y17_1, this.z17_1);
|
|
1685
1687
|
};
|
|
1686
|
-
protoOf(ElevationProvider).
|
|
1688
|
+
protoOf(ElevationProvider).q19 = function (surface) {
|
|
1687
1689
|
// Inline function 'kotlin.require' call
|
|
1688
1690
|
if (!(surface == null || surface.x17_1)) {
|
|
1689
1691
|
var message = 'a surface model must keep its no-data as NaN';
|
|
@@ -1694,38 +1696,38 @@
|
|
|
1694
1696
|
var message_0 = 'a raw IGN LiDAR HD layer carries no surface model';
|
|
1695
1697
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1696
1698
|
}
|
|
1697
|
-
return new ElevationProvider(this.u17_1, this.v17_1, this.w17_1, false, surface);
|
|
1699
|
+
return new ElevationProvider(this.u17_1, this.v17_1, this.w17_1, false, surface, this.z17_1);
|
|
1698
1700
|
};
|
|
1699
|
-
protoOf(ElevationProvider).
|
|
1700
|
-
return this.u17_1.
|
|
1701
|
+
protoOf(ElevationProvider).r19 = function () {
|
|
1702
|
+
return this.u17_1.e19_1;
|
|
1701
1703
|
};
|
|
1702
|
-
protoOf(ElevationProvider).
|
|
1703
|
-
return this.
|
|
1704
|
+
protoOf(ElevationProvider).d18 = function (latitude, longitude, interpolation, $completion) {
|
|
1705
|
+
return this.b18_1.d10(new LatLon(latitude, longitude), this.u17_1.a19_1, interpolation, $completion);
|
|
1704
1706
|
};
|
|
1705
|
-
protoOf(ElevationProvider).
|
|
1706
|
-
return this.
|
|
1707
|
+
protoOf(ElevationProvider).s19 = function (coordinates, interpolation, $completion) {
|
|
1708
|
+
return this.c18_1.g12(coordinates, this.u17_1.a19_1, interpolation, VOID, $completion);
|
|
1707
1709
|
};
|
|
1708
|
-
protoOf(ElevationProvider).
|
|
1710
|
+
protoOf(ElevationProvider).t19 = function (coordinates, interpolation, $completion, $super) {
|
|
1709
1711
|
interpolation = interpolation === VOID ? true : interpolation;
|
|
1710
|
-
return $super === VOID ? this.
|
|
1712
|
+
return $super === VOID ? this.s19(coordinates, interpolation, $completion) : $super.s19.call(this, coordinates, interpolation, $completion);
|
|
1711
1713
|
};
|
|
1712
|
-
protoOf(ElevationProvider).
|
|
1713
|
-
return this.
|
|
1714
|
+
protoOf(ElevationProvider).u19 = function (coordinates, interpolation, $completion) {
|
|
1715
|
+
return this.c18_1.l12(coordinates, this.u17_1.a19_1, VOID, ElevationProvider$setElevationsWithOrigin$slambda_0(this, interpolation, null), $completion);
|
|
1714
1716
|
};
|
|
1715
|
-
protoOf(ElevationProvider).
|
|
1717
|
+
protoOf(ElevationProvider).v19 = function (coordinates, interpolation, $completion, $super) {
|
|
1716
1718
|
interpolation = interpolation === VOID ? true : interpolation;
|
|
1717
|
-
return $super === VOID ? this.
|
|
1719
|
+
return $super === VOID ? this.u19(coordinates, interpolation, $completion) : $super.u19.call(this, coordinates, interpolation, $completion);
|
|
1718
1720
|
};
|
|
1719
|
-
protoOf(ElevationProvider).
|
|
1720
|
-
return this.
|
|
1721
|
+
protoOf(ElevationProvider).w19 = function (path, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion) {
|
|
1722
|
+
return this.c18_1.m12(path, this.u17_1.a19_1, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion);
|
|
1721
1723
|
};
|
|
1722
1724
|
function defaultTileFetcher(config) {
|
|
1723
|
-
if (config.
|
|
1725
|
+
if (config.f19_1.equals(TileEncoding_TERRARIUM_getInstance()) && config.g19_1 === 0) {
|
|
1724
1726
|
return fetchAndDecodeTile$ref_1();
|
|
1725
1727
|
}
|
|
1726
|
-
var bytes = pacedTileBytesFetcher(config.
|
|
1728
|
+
var bytes = pacedTileBytesFetcher(config.g19_1);
|
|
1727
1729
|
var tmp;
|
|
1728
|
-
switch (config.
|
|
1730
|
+
switch (config.f19_1.y1_1) {
|
|
1729
1731
|
case 0:
|
|
1730
1732
|
tmp = defaultTileFetcher$slambda_0(bytes, null);
|
|
1731
1733
|
break;
|
|
@@ -1741,24 +1743,24 @@
|
|
|
1741
1743
|
function fetchAndDecodeTile$ref() {
|
|
1742
1744
|
KFunctionImpl.call(this, 1, 2, 2);
|
|
1743
1745
|
}
|
|
1744
|
-
protoOf(fetchAndDecodeTile$ref).
|
|
1746
|
+
protoOf(fetchAndDecodeTile$ref).a1a = function (p0, $completion) {
|
|
1745
1747
|
return fetchAndDecodeTile(p0, $completion);
|
|
1746
1748
|
};
|
|
1747
1749
|
protoOf(fetchAndDecodeTile$ref).z7 = function (p1, $completion) {
|
|
1748
|
-
return this.
|
|
1750
|
+
return this.a1a((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
1749
1751
|
};
|
|
1750
1752
|
function defaultTileFetcher$slambda($bytes, resultContinuation) {
|
|
1751
|
-
this.
|
|
1753
|
+
this.j1a_1 = $bytes;
|
|
1752
1754
|
CoroutineImpl.call(this, resultContinuation);
|
|
1753
1755
|
}
|
|
1754
|
-
protoOf(defaultTileFetcher$slambda).
|
|
1755
|
-
var tmp = this.
|
|
1756
|
+
protoOf(defaultTileFetcher$slambda).a1a = function (url, $completion) {
|
|
1757
|
+
var tmp = this.l1a(url, $completion);
|
|
1756
1758
|
tmp.l7_1 = Unit_instance;
|
|
1757
1759
|
tmp.m7_1 = null;
|
|
1758
1760
|
return tmp.r7();
|
|
1759
1761
|
};
|
|
1760
1762
|
protoOf(defaultTileFetcher$slambda).z7 = function (p1, $completion) {
|
|
1761
|
-
return this.
|
|
1763
|
+
return this.a1a((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
1762
1764
|
};
|
|
1763
1765
|
protoOf(defaultTileFetcher$slambda).r7 = function () {
|
|
1764
1766
|
var suspendResult = this.l7_1;
|
|
@@ -1769,7 +1771,7 @@
|
|
|
1769
1771
|
case 0:
|
|
1770
1772
|
this.k7_1 = 3;
|
|
1771
1773
|
this.j7_1 = 1;
|
|
1772
|
-
suspendResult = this.
|
|
1774
|
+
suspendResult = this.j1a_1(this.k1a_1, this);
|
|
1773
1775
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1774
1776
|
return suspendResult;
|
|
1775
1777
|
}
|
|
@@ -1778,7 +1780,7 @@
|
|
|
1778
1780
|
case 1:
|
|
1779
1781
|
var ARGUMENT = suspendResult;
|
|
1780
1782
|
this.j7_1 = 2;
|
|
1781
|
-
suspendResult = decodeTileBytes(ARGUMENT, this.
|
|
1783
|
+
suspendResult = decodeTileBytes(ARGUMENT, this.k1a_1, this);
|
|
1782
1784
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1783
1785
|
return suspendResult;
|
|
1784
1786
|
}
|
|
@@ -1800,30 +1802,30 @@
|
|
|
1800
1802
|
}
|
|
1801
1803
|
while (true);
|
|
1802
1804
|
};
|
|
1803
|
-
protoOf(defaultTileFetcher$slambda).
|
|
1804
|
-
var i = new defaultTileFetcher$slambda(this.
|
|
1805
|
-
i.
|
|
1805
|
+
protoOf(defaultTileFetcher$slambda).l1a = function (url, completion) {
|
|
1806
|
+
var i = new defaultTileFetcher$slambda(this.j1a_1, completion);
|
|
1807
|
+
i.k1a_1 = url;
|
|
1806
1808
|
return i;
|
|
1807
1809
|
};
|
|
1808
1810
|
function defaultTileFetcher$slambda_0($bytes, resultContinuation) {
|
|
1809
1811
|
var i = new defaultTileFetcher$slambda($bytes, resultContinuation);
|
|
1810
1812
|
return constructCallableReference(function (url, $completion) {
|
|
1811
|
-
return i.
|
|
1813
|
+
return i.a1a(url, $completion);
|
|
1812
1814
|
}, 1);
|
|
1813
1815
|
}
|
|
1814
1816
|
function defaultTileFetcher$slambda_1($bytes, $config, resultContinuation) {
|
|
1815
|
-
this.
|
|
1816
|
-
this.
|
|
1817
|
+
this.u1a_1 = $bytes;
|
|
1818
|
+
this.v1a_1 = $config;
|
|
1817
1819
|
CoroutineImpl.call(this, resultContinuation);
|
|
1818
1820
|
}
|
|
1819
|
-
protoOf(defaultTileFetcher$slambda_1).
|
|
1820
|
-
var tmp = this.
|
|
1821
|
+
protoOf(defaultTileFetcher$slambda_1).a1a = function (url, $completion) {
|
|
1822
|
+
var tmp = this.l1a(url, $completion);
|
|
1821
1823
|
tmp.l7_1 = Unit_instance;
|
|
1822
1824
|
tmp.m7_1 = null;
|
|
1823
1825
|
return tmp.r7();
|
|
1824
1826
|
};
|
|
1825
1827
|
protoOf(defaultTileFetcher$slambda_1).z7 = function (p1, $completion) {
|
|
1826
|
-
return this.
|
|
1828
|
+
return this.a1a((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
1827
1829
|
};
|
|
1828
1830
|
protoOf(defaultTileFetcher$slambda_1).r7 = function () {
|
|
1829
1831
|
var suspendResult = this.l7_1;
|
|
@@ -1834,7 +1836,7 @@
|
|
|
1834
1836
|
case 0:
|
|
1835
1837
|
this.k7_1 = 2;
|
|
1836
1838
|
this.j7_1 = 1;
|
|
1837
|
-
suspendResult = this.
|
|
1839
|
+
suspendResult = this.u1a_1(this.w1a_1, this);
|
|
1838
1840
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1839
1841
|
return suspendResult;
|
|
1840
1842
|
}
|
|
@@ -1842,7 +1844,7 @@
|
|
|
1842
1844
|
continue $sm;
|
|
1843
1845
|
case 1:
|
|
1844
1846
|
var ARGUMENT = suspendResult;
|
|
1845
|
-
return decodeBil32Tile(ARGUMENT, this.
|
|
1847
|
+
return decodeBil32Tile(ARGUMENT, this.v1a_1.d19_1, this.w1a_1);
|
|
1846
1848
|
case 2:
|
|
1847
1849
|
throw this.m7_1;
|
|
1848
1850
|
}
|
|
@@ -1857,15 +1859,15 @@
|
|
|
1857
1859
|
}
|
|
1858
1860
|
while (true);
|
|
1859
1861
|
};
|
|
1860
|
-
protoOf(defaultTileFetcher$slambda_1).
|
|
1861
|
-
var i = new defaultTileFetcher$slambda_1(this.
|
|
1862
|
-
i.
|
|
1862
|
+
protoOf(defaultTileFetcher$slambda_1).l1a = function (url, completion) {
|
|
1863
|
+
var i = new defaultTileFetcher$slambda_1(this.u1a_1, this.v1a_1, completion);
|
|
1864
|
+
i.w1a_1 = url;
|
|
1863
1865
|
return i;
|
|
1864
1866
|
};
|
|
1865
1867
|
function defaultTileFetcher$slambda_2($bytes, $config, resultContinuation) {
|
|
1866
1868
|
var i = new defaultTileFetcher$slambda_1($bytes, $config, resultContinuation);
|
|
1867
1869
|
return constructCallableReference(function (url, $completion) {
|
|
1868
|
-
return i.
|
|
1870
|
+
return i.a1a(url, $completion);
|
|
1869
1871
|
}, 1);
|
|
1870
1872
|
}
|
|
1871
1873
|
function defaultTileFetcher$ref() {
|
|
@@ -1881,38 +1883,38 @@
|
|
|
1881
1883
|
attribution = attribution === VOID ? new Attribution('Mapterhorn elevation data. See mapterhorn.com/attribution/ for details.', 'https://mapterhorn.com/attribution/') : attribution;
|
|
1882
1884
|
encoding = encoding === VOID ? TileEncoding_TERRARIUM_getInstance() : encoding;
|
|
1883
1885
|
maxRequestsPerSecond = maxRequestsPerSecond === VOID ? 0 : maxRequestsPerSecond;
|
|
1884
|
-
this.
|
|
1885
|
-
this.
|
|
1886
|
-
this.
|
|
1887
|
-
this.
|
|
1888
|
-
this.
|
|
1889
|
-
this.
|
|
1890
|
-
this.
|
|
1891
|
-
}
|
|
1892
|
-
protoOf(ElevationProviderConfig).
|
|
1886
|
+
this.a19_1 = zoomLevel;
|
|
1887
|
+
this.b19_1 = cacheSize;
|
|
1888
|
+
this.c19_1 = tileUrlTemplate;
|
|
1889
|
+
this.d19_1 = tileSize;
|
|
1890
|
+
this.e19_1 = attribution;
|
|
1891
|
+
this.f19_1 = encoding;
|
|
1892
|
+
this.g19_1 = maxRequestsPerSecond;
|
|
1893
|
+
}
|
|
1894
|
+
protoOf(ElevationProviderConfig).x1a = function (zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond) {
|
|
1893
1895
|
return new ElevationProviderConfig(zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond);
|
|
1894
1896
|
};
|
|
1895
|
-
protoOf(ElevationProviderConfig).
|
|
1896
|
-
zoomLevel = zoomLevel === VOID ? this.
|
|
1897
|
-
cacheSize = cacheSize === VOID ? this.
|
|
1898
|
-
tileUrlTemplate = tileUrlTemplate === VOID ? this.
|
|
1899
|
-
tileSize = tileSize === VOID ? this.
|
|
1900
|
-
attribution = attribution === VOID ? this.
|
|
1901
|
-
encoding = encoding === VOID ? this.
|
|
1902
|
-
maxRequestsPerSecond = maxRequestsPerSecond === VOID ? this.
|
|
1903
|
-
return $super === VOID ? this.
|
|
1897
|
+
protoOf(ElevationProviderConfig).y1a = function (zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond, $super) {
|
|
1898
|
+
zoomLevel = zoomLevel === VOID ? this.a19_1 : zoomLevel;
|
|
1899
|
+
cacheSize = cacheSize === VOID ? this.b19_1 : cacheSize;
|
|
1900
|
+
tileUrlTemplate = tileUrlTemplate === VOID ? this.c19_1 : tileUrlTemplate;
|
|
1901
|
+
tileSize = tileSize === VOID ? this.d19_1 : tileSize;
|
|
1902
|
+
attribution = attribution === VOID ? this.e19_1 : attribution;
|
|
1903
|
+
encoding = encoding === VOID ? this.f19_1 : encoding;
|
|
1904
|
+
maxRequestsPerSecond = maxRequestsPerSecond === VOID ? this.g19_1 : maxRequestsPerSecond;
|
|
1905
|
+
return $super === VOID ? this.x1a(zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond) : $super.x1a.call(this, zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond);
|
|
1904
1906
|
};
|
|
1905
1907
|
protoOf(ElevationProviderConfig).toString = function () {
|
|
1906
|
-
return 'ElevationProviderConfig(zoomLevel=' + this.
|
|
1908
|
+
return 'ElevationProviderConfig(zoomLevel=' + this.a19_1 + ', cacheSize=' + this.b19_1 + ', tileUrlTemplate=' + this.c19_1 + ', tileSize=' + this.d19_1 + ', attribution=' + this.e19_1.toString() + ', encoding=' + this.f19_1.toString() + ', maxRequestsPerSecond=' + this.g19_1 + ')';
|
|
1907
1909
|
};
|
|
1908
1910
|
protoOf(ElevationProviderConfig).hashCode = function () {
|
|
1909
|
-
var result = this.
|
|
1910
|
-
result = imul(result, 31) + this.
|
|
1911
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1912
|
-
result = imul(result, 31) + this.
|
|
1913
|
-
result = imul(result, 31) + this.d19_1.hashCode() | 0;
|
|
1911
|
+
var result = this.a19_1;
|
|
1912
|
+
result = imul(result, 31) + this.b19_1 | 0;
|
|
1913
|
+
result = imul(result, 31) + getStringHashCode(this.c19_1) | 0;
|
|
1914
|
+
result = imul(result, 31) + this.d19_1 | 0;
|
|
1914
1915
|
result = imul(result, 31) + this.e19_1.hashCode() | 0;
|
|
1915
|
-
result = imul(result, 31) + this.f19_1 | 0;
|
|
1916
|
+
result = imul(result, 31) + this.f19_1.hashCode() | 0;
|
|
1917
|
+
result = imul(result, 31) + this.g19_1 | 0;
|
|
1916
1918
|
return result;
|
|
1917
1919
|
};
|
|
1918
1920
|
protoOf(ElevationProviderConfig).equals = function (other) {
|
|
@@ -1920,33 +1922,33 @@
|
|
|
1920
1922
|
return true;
|
|
1921
1923
|
if (!(other instanceof ElevationProviderConfig))
|
|
1922
1924
|
return false;
|
|
1923
|
-
if (!(this.z18_1 === other.z18_1))
|
|
1924
|
-
return false;
|
|
1925
1925
|
if (!(this.a19_1 === other.a19_1))
|
|
1926
1926
|
return false;
|
|
1927
1927
|
if (!(this.b19_1 === other.b19_1))
|
|
1928
1928
|
return false;
|
|
1929
1929
|
if (!(this.c19_1 === other.c19_1))
|
|
1930
1930
|
return false;
|
|
1931
|
-
if (!this.d19_1
|
|
1931
|
+
if (!(this.d19_1 === other.d19_1))
|
|
1932
1932
|
return false;
|
|
1933
1933
|
if (!this.e19_1.equals(other.e19_1))
|
|
1934
1934
|
return false;
|
|
1935
|
-
if (!
|
|
1935
|
+
if (!this.f19_1.equals(other.f19_1))
|
|
1936
|
+
return false;
|
|
1937
|
+
if (!(this.g19_1 === other.g19_1))
|
|
1936
1938
|
return false;
|
|
1937
1939
|
return true;
|
|
1938
1940
|
};
|
|
1939
1941
|
function Attribution(text, url) {
|
|
1940
1942
|
url = url === VOID ? null : url;
|
|
1941
|
-
this.
|
|
1942
|
-
this.
|
|
1943
|
+
this.z1a_1 = text;
|
|
1944
|
+
this.a1b_1 = url;
|
|
1943
1945
|
}
|
|
1944
1946
|
protoOf(Attribution).toString = function () {
|
|
1945
|
-
return 'Attribution(text=' + this.
|
|
1947
|
+
return 'Attribution(text=' + this.z1a_1 + ', url=' + this.a1b_1 + ')';
|
|
1946
1948
|
};
|
|
1947
1949
|
protoOf(Attribution).hashCode = function () {
|
|
1948
|
-
var result = getStringHashCode(this.
|
|
1949
|
-
result = imul(result, 31) + (this.
|
|
1950
|
+
var result = getStringHashCode(this.z1a_1);
|
|
1951
|
+
result = imul(result, 31) + (this.a1b_1 == null ? 0 : getStringHashCode(this.a1b_1)) | 0;
|
|
1950
1952
|
return result;
|
|
1951
1953
|
};
|
|
1952
1954
|
protoOf(Attribution).equals = function (other) {
|
|
@@ -1954,9 +1956,9 @@
|
|
|
1954
1956
|
return true;
|
|
1955
1957
|
if (!(other instanceof Attribution))
|
|
1956
1958
|
return false;
|
|
1957
|
-
if (!(this.
|
|
1959
|
+
if (!(this.z1a_1 === other.z1a_1))
|
|
1958
1960
|
return false;
|
|
1959
|
-
if (!(this.
|
|
1961
|
+
if (!(this.a1b_1 == other.a1b_1))
|
|
1960
1962
|
return false;
|
|
1961
1963
|
return true;
|
|
1962
1964
|
};
|
|
@@ -1984,7 +1986,7 @@
|
|
|
1984
1986
|
tmp = tmp + 1 | 0;
|
|
1985
1987
|
}
|
|
1986
1988
|
var elevations = tmp_1;
|
|
1987
|
-
var smoothed = this.
|
|
1989
|
+
var smoothed = this.b1b(distances, elevations, windowSize);
|
|
1988
1990
|
// Inline function 'kotlin.collections.List' call
|
|
1989
1991
|
// Inline function 'kotlin.collections.MutableList' call
|
|
1990
1992
|
var size = points.o();
|
|
@@ -2001,7 +2003,7 @@
|
|
|
2001
2003
|
while (inductionVariable < size);
|
|
2002
2004
|
return list;
|
|
2003
2005
|
};
|
|
2004
|
-
protoOf(ElevationSmoother).
|
|
2006
|
+
protoOf(ElevationSmoother).b1b = function (distanceM, elevationM, windowSize) {
|
|
2005
2007
|
// Inline function 'kotlin.require' call
|
|
2006
2008
|
if (!(distanceM.length === elevationM.length)) {
|
|
2007
2009
|
var message = 'distanceM (' + distanceM.length + ') and elevationM (' + elevationM.length + ') must have the same length';
|
|
@@ -2100,9 +2102,10 @@
|
|
|
2100
2102
|
var ElevationSource_IGN_LIDAR_HD_instance;
|
|
2101
2103
|
function Companion() {
|
|
2102
2104
|
Companion_instance_0 = this;
|
|
2103
|
-
this.
|
|
2105
|
+
this.c1b_1 = ElevationSource_IGN_LIDAR_HD_getInstance();
|
|
2106
|
+
this.d1b_1 = ElevationSource_MAPTERHORN_getInstance();
|
|
2104
2107
|
}
|
|
2105
|
-
protoOf(Companion).
|
|
2108
|
+
protoOf(Companion).e1b = function () {
|
|
2106
2109
|
// Inline function 'kotlin.collections.map' call
|
|
2107
2110
|
var this_0 = get_entries();
|
|
2108
2111
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2110,12 +2113,12 @@
|
|
|
2110
2113
|
var _iterator__ex2g4s = this_0.l();
|
|
2111
2114
|
while (_iterator__ex2g4s.m()) {
|
|
2112
2115
|
var item = _iterator__ex2g4s.n();
|
|
2113
|
-
var tmp$ret$2 = item.
|
|
2116
|
+
var tmp$ret$2 = item.h1b_1;
|
|
2114
2117
|
destination.k(tmp$ret$2);
|
|
2115
2118
|
}
|
|
2116
2119
|
return destination;
|
|
2117
2120
|
};
|
|
2118
|
-
protoOf(Companion).
|
|
2121
|
+
protoOf(Companion).i1b = function (id) {
|
|
2119
2122
|
var tmp0 = get_entries();
|
|
2120
2123
|
var tmp$ret$0;
|
|
2121
2124
|
$l$block: {
|
|
@@ -2123,7 +2126,7 @@
|
|
|
2123
2126
|
var _iterator__ex2g4s = tmp0.l();
|
|
2124
2127
|
while (_iterator__ex2g4s.m()) {
|
|
2125
2128
|
var element = _iterator__ex2g4s.n();
|
|
2126
|
-
if (element.
|
|
2129
|
+
if (element.h1b_1 === id) {
|
|
2127
2130
|
tmp$ret$0 = element;
|
|
2128
2131
|
break $l$block;
|
|
2129
2132
|
}
|
|
@@ -2133,7 +2136,7 @@
|
|
|
2133
2136
|
var tmp0_elvis_lhs = tmp$ret$0;
|
|
2134
2137
|
var tmp;
|
|
2135
2138
|
if (tmp0_elvis_lhs == null) {
|
|
2136
|
-
throw IllegalArgumentException_init_$Create$("Unknown DEM source '" + id + "' \u2014 expected one of " + joinToString(this.
|
|
2139
|
+
throw IllegalArgumentException_init_$Create$("Unknown DEM source '" + id + "' \u2014 expected one of " + joinToString(this.e1b()));
|
|
2137
2140
|
} else {
|
|
2138
2141
|
tmp = tmp0_elvis_lhs;
|
|
2139
2142
|
}
|
|
@@ -2157,9 +2160,9 @@
|
|
|
2157
2160
|
var $ENTRIES;
|
|
2158
2161
|
function ElevationSource(name, ordinal, id) {
|
|
2159
2162
|
Enum.call(this, name, ordinal);
|
|
2160
|
-
this.
|
|
2163
|
+
this.h1b_1 = id;
|
|
2161
2164
|
}
|
|
2162
|
-
protoOf(ElevationSource).
|
|
2165
|
+
protoOf(ElevationSource).j1b = function () {
|
|
2163
2166
|
var tmp;
|
|
2164
2167
|
switch (this.y1_1) {
|
|
2165
2168
|
case 0:
|
|
@@ -2174,14 +2177,14 @@
|
|
|
2174
2177
|
}
|
|
2175
2178
|
return tmp;
|
|
2176
2179
|
};
|
|
2177
|
-
protoOf(ElevationSource).
|
|
2180
|
+
protoOf(ElevationSource).k1b = function () {
|
|
2178
2181
|
var tmp;
|
|
2179
2182
|
switch (this.y1_1) {
|
|
2180
2183
|
case 0:
|
|
2181
|
-
tmp = (new ElevationProviderConfig()).
|
|
2184
|
+
tmp = (new ElevationProviderConfig()).a19_1;
|
|
2182
2185
|
break;
|
|
2183
2186
|
case 1:
|
|
2184
|
-
tmp = IgnLidarHdLayer_MNT_getInstance().
|
|
2187
|
+
tmp = IgnLidarHdLayer_MNT_getInstance().k1b();
|
|
2185
2188
|
break;
|
|
2186
2189
|
default:
|
|
2187
2190
|
noWhenBranchMatchedException();
|
|
@@ -2189,15 +2192,15 @@
|
|
|
2189
2192
|
}
|
|
2190
2193
|
return tmp;
|
|
2191
2194
|
};
|
|
2192
|
-
protoOf(ElevationSource).
|
|
2195
|
+
protoOf(ElevationSource).o1b = function (zoomLevel) {
|
|
2193
2196
|
var tmp;
|
|
2194
2197
|
switch (this.y1_1) {
|
|
2195
2198
|
case 0:
|
|
2196
|
-
tmp = new ElevationProviderConfig(zoomLevel == null ? this.
|
|
2199
|
+
tmp = new ElevationProviderConfig(zoomLevel == null ? this.k1b() : zoomLevel);
|
|
2197
2200
|
break;
|
|
2198
2201
|
case 1:
|
|
2199
2202
|
var tmp_0 = IgnLidarHdLayer_MNT_getInstance();
|
|
2200
|
-
tmp = tmp_0.
|
|
2203
|
+
tmp = tmp_0.o1b(zoomLevel == null ? this.k1b() : zoomLevel);
|
|
2201
2204
|
break;
|
|
2202
2205
|
default:
|
|
2203
2206
|
noWhenBranchMatchedException();
|
|
@@ -2214,22 +2217,22 @@
|
|
|
2214
2217
|
tmp = fetcherFor;
|
|
2215
2218
|
}
|
|
2216
2219
|
fetcherFor = tmp;
|
|
2217
|
-
var config = _this__u8e3s4.
|
|
2220
|
+
var config = _this__u8e3s4.o1b(zoomLevel);
|
|
2218
2221
|
var fetcher = _this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) ? ignCoverageFiltered(config, fetcherFor(config)) : fetcherFor(config);
|
|
2219
2222
|
var primary = ElevationProvider_init_$Create$(config, fetcher);
|
|
2220
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2223
|
+
var tmp0_safe_receiver = _this__u8e3s4.j1b();
|
|
2221
2224
|
var tmp_0;
|
|
2222
2225
|
if (tmp0_safe_receiver == null) {
|
|
2223
2226
|
tmp_0 = null;
|
|
2224
2227
|
} else {
|
|
2225
2228
|
// Inline function 'kotlin.let' call
|
|
2226
|
-
tmp_0 = primary.
|
|
2229
|
+
tmp_0 = primary.p19(provider(tmp0_safe_receiver, null, fetcherFor));
|
|
2227
2230
|
}
|
|
2228
2231
|
var tmp1_elvis_lhs = tmp_0;
|
|
2229
2232
|
var withFallback = tmp1_elvis_lhs == null ? primary : tmp1_elvis_lhs;
|
|
2230
2233
|
var tmp_1;
|
|
2231
|
-
if (_this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) && config.
|
|
2232
|
-
tmp_1 = withFallback.
|
|
2234
|
+
if (_this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) && config.a19_1 === IgnLidarHdLayer_MNS_getInstance().k1b()) {
|
|
2235
|
+
tmp_1 = withFallback.q19(provider_0(IgnLidarHdLayer_MNS_getInstance(), null, fetcherFor));
|
|
2233
2236
|
} else {
|
|
2234
2237
|
tmp_1 = withFallback;
|
|
2235
2238
|
}
|
|
@@ -2257,19 +2260,19 @@
|
|
|
2257
2260
|
return ElevationSource_IGN_LIDAR_HD_instance;
|
|
2258
2261
|
}
|
|
2259
2262
|
function Flux$forEachParallel$slambda$slambda($semaphore, $action, $item, resultContinuation) {
|
|
2260
|
-
this.
|
|
2261
|
-
this.
|
|
2262
|
-
this.
|
|
2263
|
+
this.x1b_1 = $semaphore;
|
|
2264
|
+
this.y1b_1 = $action;
|
|
2265
|
+
this.z1b_1 = $item;
|
|
2263
2266
|
CoroutineImpl.call(this, resultContinuation);
|
|
2264
2267
|
}
|
|
2265
|
-
protoOf(Flux$forEachParallel$slambda$slambda).
|
|
2266
|
-
var tmp = this.
|
|
2268
|
+
protoOf(Flux$forEachParallel$slambda$slambda).d1c = function ($this$async, $completion) {
|
|
2269
|
+
var tmp = this.e1c($this$async, $completion);
|
|
2267
2270
|
tmp.l7_1 = Unit_instance;
|
|
2268
2271
|
tmp.m7_1 = null;
|
|
2269
2272
|
return tmp.r7();
|
|
2270
2273
|
};
|
|
2271
2274
|
protoOf(Flux$forEachParallel$slambda$slambda).z7 = function (p1, $completion) {
|
|
2272
|
-
return this.
|
|
2275
|
+
return this.d1c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2273
2276
|
};
|
|
2274
2277
|
protoOf(Flux$forEachParallel$slambda$slambda).r7 = function () {
|
|
2275
2278
|
var suspendResult = this.l7_1;
|
|
@@ -2279,41 +2282,41 @@
|
|
|
2279
2282
|
switch (tmp) {
|
|
2280
2283
|
case 0:
|
|
2281
2284
|
this.k7_1 = 6;
|
|
2282
|
-
this.
|
|
2285
|
+
this.b1c_1 = this.x1b_1;
|
|
2283
2286
|
this.j7_1 = 1;
|
|
2284
|
-
suspendResult = this.
|
|
2287
|
+
suspendResult = this.b1c_1.yw(this);
|
|
2285
2288
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2286
2289
|
return suspendResult;
|
|
2287
2290
|
}
|
|
2288
2291
|
|
|
2289
2292
|
continue $sm;
|
|
2290
2293
|
case 1:
|
|
2291
|
-
this.
|
|
2294
|
+
this.c1c_1 = Unit_instance;
|
|
2292
2295
|
this.j7_1 = 2;
|
|
2293
2296
|
continue $sm;
|
|
2294
2297
|
case 2:
|
|
2295
2298
|
this.k7_1 = 5;
|
|
2296
2299
|
this.j7_1 = 3;
|
|
2297
|
-
suspendResult = this.
|
|
2300
|
+
suspendResult = this.y1b_1(this.z1b_1, this);
|
|
2298
2301
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2299
2302
|
return suspendResult;
|
|
2300
2303
|
}
|
|
2301
2304
|
|
|
2302
2305
|
continue $sm;
|
|
2303
2306
|
case 3:
|
|
2304
|
-
this.
|
|
2307
|
+
this.c1c_1 = Unit_instance;
|
|
2305
2308
|
this.k7_1 = 6;
|
|
2306
2309
|
this.j7_1 = 4;
|
|
2307
2310
|
continue $sm;
|
|
2308
2311
|
case 4:
|
|
2309
|
-
this.
|
|
2312
|
+
this.c1c_1;
|
|
2310
2313
|
this.k7_1 = 6;
|
|
2311
|
-
this.
|
|
2314
|
+
this.b1c_1.sw();
|
|
2312
2315
|
return Unit_instance;
|
|
2313
2316
|
case 5:
|
|
2314
2317
|
this.k7_1 = 6;
|
|
2315
2318
|
var t = this.m7_1;
|
|
2316
|
-
this.
|
|
2319
|
+
this.b1c_1.sw();
|
|
2317
2320
|
throw t;
|
|
2318
2321
|
case 6:
|
|
2319
2322
|
throw this.m7_1;
|
|
@@ -2329,31 +2332,31 @@
|
|
|
2329
2332
|
}
|
|
2330
2333
|
while (true);
|
|
2331
2334
|
};
|
|
2332
|
-
protoOf(Flux$forEachParallel$slambda$slambda).
|
|
2333
|
-
var i = new Flux$forEachParallel$slambda$slambda(this.
|
|
2334
|
-
i.
|
|
2335
|
+
protoOf(Flux$forEachParallel$slambda$slambda).e1c = function ($this$async, completion) {
|
|
2336
|
+
var i = new Flux$forEachParallel$slambda$slambda(this.x1b_1, this.y1b_1, this.z1b_1, completion);
|
|
2337
|
+
i.a1c_1 = $this$async;
|
|
2335
2338
|
return i;
|
|
2336
2339
|
};
|
|
2337
2340
|
function Flux$forEachParallel$slambda$slambda_0($semaphore, $action, $item, resultContinuation) {
|
|
2338
2341
|
var i = new Flux$forEachParallel$slambda$slambda($semaphore, $action, $item, resultContinuation);
|
|
2339
2342
|
return constructCallableReference(function ($this$async, $completion) {
|
|
2340
|
-
return i.
|
|
2343
|
+
return i.d1c($this$async, $completion);
|
|
2341
2344
|
}, 1);
|
|
2342
2345
|
}
|
|
2343
2346
|
function Flux$forEachParallel$slambda($maxParallel, $items, $action, resultContinuation) {
|
|
2344
|
-
this.
|
|
2345
|
-
this.
|
|
2346
|
-
this.
|
|
2347
|
+
this.n1c_1 = $maxParallel;
|
|
2348
|
+
this.o1c_1 = $items;
|
|
2349
|
+
this.p1c_1 = $action;
|
|
2347
2350
|
CoroutineImpl.call(this, resultContinuation);
|
|
2348
2351
|
}
|
|
2349
|
-
protoOf(Flux$forEachParallel$slambda).
|
|
2350
|
-
var tmp = this.
|
|
2352
|
+
protoOf(Flux$forEachParallel$slambda).r1c = function ($this$coroutineScope, $completion) {
|
|
2353
|
+
var tmp = this.e1c($this$coroutineScope, $completion);
|
|
2351
2354
|
tmp.l7_1 = Unit_instance;
|
|
2352
2355
|
tmp.m7_1 = null;
|
|
2353
2356
|
return tmp.r7();
|
|
2354
2357
|
};
|
|
2355
2358
|
protoOf(Flux$forEachParallel$slambda).z7 = function (p1, $completion) {
|
|
2356
|
-
return this.
|
|
2359
|
+
return this.r1c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2357
2360
|
};
|
|
2358
2361
|
protoOf(Flux$forEachParallel$slambda).r7 = function () {
|
|
2359
2362
|
var suspendResult = this.l7_1;
|
|
@@ -2363,14 +2366,14 @@
|
|
|
2363
2366
|
switch (tmp) {
|
|
2364
2367
|
case 0:
|
|
2365
2368
|
this.k7_1 = 2;
|
|
2366
|
-
var semaphore = Semaphore(this.
|
|
2369
|
+
var semaphore = Semaphore(this.n1c_1);
|
|
2367
2370
|
this.j7_1 = 1;
|
|
2368
|
-
var this_0 = this.
|
|
2371
|
+
var this_0 = this.o1c_1;
|
|
2369
2372
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2370
2373
|
var _iterator__ex2g4s = this_0.l();
|
|
2371
2374
|
while (_iterator__ex2g4s.m()) {
|
|
2372
2375
|
var item = _iterator__ex2g4s.n();
|
|
2373
|
-
destination.k(async(this.
|
|
2376
|
+
destination.k(async(this.q1c_1, VOID, VOID, Flux$forEachParallel$slambda$slambda_0(semaphore, this.p1c_1, item, null)));
|
|
2374
2377
|
}
|
|
2375
2378
|
|
|
2376
2379
|
suspendResult = awaitAll(destination, this);
|
|
@@ -2395,23 +2398,23 @@
|
|
|
2395
2398
|
}
|
|
2396
2399
|
while (true);
|
|
2397
2400
|
};
|
|
2398
|
-
protoOf(Flux$forEachParallel$slambda).
|
|
2399
|
-
var i = new Flux$forEachParallel$slambda(this.
|
|
2400
|
-
i.
|
|
2401
|
+
protoOf(Flux$forEachParallel$slambda).e1c = function ($this$coroutineScope, completion) {
|
|
2402
|
+
var i = new Flux$forEachParallel$slambda(this.n1c_1, this.o1c_1, this.p1c_1, completion);
|
|
2403
|
+
i.q1c_1 = $this$coroutineScope;
|
|
2401
2404
|
return i;
|
|
2402
2405
|
};
|
|
2403
2406
|
function Flux$forEachParallel$slambda_0($maxParallel, $items, $action, resultContinuation) {
|
|
2404
2407
|
var i = new Flux$forEachParallel$slambda($maxParallel, $items, $action, resultContinuation);
|
|
2405
2408
|
return constructCallableReference(function ($this$coroutineScope, $completion) {
|
|
2406
|
-
return i.
|
|
2409
|
+
return i.r1c($this$coroutineScope, $completion);
|
|
2407
2410
|
}, 1);
|
|
2408
2411
|
}
|
|
2409
2412
|
function $forEachParallelCOROUTINE$(_this__u8e3s4, items, maxParallel, action, resultContinuation) {
|
|
2410
2413
|
CoroutineImpl.call(this, resultContinuation);
|
|
2411
|
-
this.
|
|
2412
|
-
this.
|
|
2413
|
-
this.
|
|
2414
|
-
this.
|
|
2414
|
+
this.a1d_1 = _this__u8e3s4;
|
|
2415
|
+
this.b1d_1 = items;
|
|
2416
|
+
this.c1d_1 = maxParallel;
|
|
2417
|
+
this.d1d_1 = action;
|
|
2415
2418
|
}
|
|
2416
2419
|
protoOf($forEachParallelCOROUTINE$).r7 = function () {
|
|
2417
2420
|
var suspendResult = this.l7_1;
|
|
@@ -2421,13 +2424,13 @@
|
|
|
2421
2424
|
switch (tmp) {
|
|
2422
2425
|
case 0:
|
|
2423
2426
|
this.k7_1 = 2;
|
|
2424
|
-
if (!(this.
|
|
2425
|
-
var message = 'maxParallel must be >= 1, got ' + this.
|
|
2427
|
+
if (!(this.c1d_1 >= 1)) {
|
|
2428
|
+
var message = 'maxParallel must be >= 1, got ' + this.c1d_1;
|
|
2426
2429
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2427
2430
|
}
|
|
2428
2431
|
|
|
2429
2432
|
this.j7_1 = 1;
|
|
2430
|
-
suspendResult = coroutineScope(Flux$forEachParallel$slambda_0(this.
|
|
2433
|
+
suspendResult = coroutineScope(Flux$forEachParallel$slambda_0(this.c1d_1, this.b1d_1, this.d1d_1, null), this);
|
|
2431
2434
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2432
2435
|
return suspendResult;
|
|
2433
2436
|
}
|
|
@@ -2598,14 +2601,14 @@
|
|
|
2598
2601
|
IgnLidarHdCoverage_instance = this;
|
|
2599
2602
|
var tmp = this;
|
|
2600
2603
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
2601
|
-
tmp.
|
|
2604
|
+
tmp.e1d_1 = new Float64Array([2.4, 51.4, 3.0, 51.15, 3.4, 50.85, 4.3, 50.55, 4.7, 50.35, 5.0, 50.25, 5.2, 49.95, 5.85, 49.62, 6.4, 49.56, 7.4, 49.3, 8.35, 49.1, 8.0, 48.4, 7.75, 47.75, 7.7, 47.6, 6.95, 47.2, 6.55, 46.75, 7.0, 46.45, 7.15, 46.0, 7.05, 45.6, 7.35, 45.3, 7.15, 44.9, 7.15, 44.6, 7.85, 44.2, 7.7, 43.65, 7.7, 43.3, 6.5, 42.9, 4.5, 43.1, 3.4, 42.9, 3.4, 42.35, 2.3, 42.25, 1.3, 42.35, 0.4, 42.55, -0.7, 42.65, -1.4, 42.9, -1.9, 43.2, -2.1, 43.5, -1.7, 44.5, -2.6, 46.6, -3.4, 47.2, -5.3, 47.8, -5.35, 48.65, -4.2, 48.95, -2.4, 49.05, -2.1, 49.8, -0.2, 49.85, 1.2, 50.25, 1.4, 51.05]);
|
|
2602
2605
|
var tmp_0 = this;
|
|
2603
2606
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
2604
|
-
tmp_0.
|
|
2605
|
-
this.
|
|
2607
|
+
tmp_0.f1d_1 = new Float64Array([8.4, 43.15, 9.7, 43.15, 9.7, 41.25, 8.4, 41.25]);
|
|
2608
|
+
this.g1d_1 = listOf([this.e1d_1, this.f1d_1]);
|
|
2606
2609
|
}
|
|
2607
|
-
protoOf(IgnLidarHdCoverage).
|
|
2608
|
-
var tmp0 = this.
|
|
2610
|
+
protoOf(IgnLidarHdCoverage).h1d = function (latitude, longitude) {
|
|
2611
|
+
var tmp0 = this.g1d_1;
|
|
2609
2612
|
var tmp$ret$0;
|
|
2610
2613
|
$l$block_0: {
|
|
2611
2614
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -2631,13 +2634,13 @@
|
|
|
2631
2634
|
}
|
|
2632
2635
|
return tmp$ret$0;
|
|
2633
2636
|
};
|
|
2634
|
-
protoOf(IgnLidarHdCoverage).
|
|
2637
|
+
protoOf(IgnLidarHdCoverage).i1d = function (tc) {
|
|
2635
2638
|
var tiles = 1 << tc.n11_1;
|
|
2636
2639
|
var west = tc.l11_1 / tiles * 360.0 - 180.0;
|
|
2637
2640
|
var east = (tc.l11_1 + 1 | 0) / tiles * 360.0 - 180.0;
|
|
2638
2641
|
var north = latitudeOfRow(this, tc.m11_1, tiles);
|
|
2639
2642
|
var south = latitudeOfRow(this, tc.m11_1 + 1 | 0, tiles);
|
|
2640
|
-
var tmp0 = this.
|
|
2643
|
+
var tmp0 = this.g1d_1;
|
|
2641
2644
|
var tmp$ret$0;
|
|
2642
2645
|
$l$block_0: {
|
|
2643
2646
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -2670,18 +2673,18 @@
|
|
|
2670
2673
|
return IgnLidarHdCoverage_instance;
|
|
2671
2674
|
}
|
|
2672
2675
|
function ignCoverageFiltered$slambda($config, $fetcher, resultContinuation) {
|
|
2673
|
-
this.
|
|
2674
|
-
this.
|
|
2676
|
+
this.r1d_1 = $config;
|
|
2677
|
+
this.s1d_1 = $fetcher;
|
|
2675
2678
|
CoroutineImpl.call(this, resultContinuation);
|
|
2676
2679
|
}
|
|
2677
|
-
protoOf(ignCoverageFiltered$slambda).
|
|
2678
|
-
var tmp = this.
|
|
2680
|
+
protoOf(ignCoverageFiltered$slambda).a1a = function (url, $completion) {
|
|
2681
|
+
var tmp = this.l1a(url, $completion);
|
|
2679
2682
|
tmp.l7_1 = Unit_instance;
|
|
2680
2683
|
tmp.m7_1 = null;
|
|
2681
2684
|
return tmp.r7();
|
|
2682
2685
|
};
|
|
2683
2686
|
protoOf(ignCoverageFiltered$slambda).z7 = function (p1, $completion) {
|
|
2684
|
-
return this.
|
|
2687
|
+
return this.a1a((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
2685
2688
|
};
|
|
2686
2689
|
protoOf(ignCoverageFiltered$slambda).r7 = function () {
|
|
2687
2690
|
var suspendResult = this.l7_1;
|
|
@@ -2691,25 +2694,25 @@
|
|
|
2691
2694
|
switch (tmp) {
|
|
2692
2695
|
case 0:
|
|
2693
2696
|
this.k7_1 = 3;
|
|
2694
|
-
if (IgnLidarHdCoverage_getInstance().
|
|
2697
|
+
if (IgnLidarHdCoverage_getInstance().i1d(tileCoordinatesOf(this.t1d_1, this.r1d_1))) {
|
|
2695
2698
|
this.j7_1 = 1;
|
|
2696
|
-
suspendResult = this.
|
|
2699
|
+
suspendResult = this.s1d_1(this.t1d_1, this);
|
|
2697
2700
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2698
2701
|
return suspendResult;
|
|
2699
2702
|
}
|
|
2700
2703
|
continue $sm;
|
|
2701
2704
|
} else {
|
|
2702
|
-
this.
|
|
2705
|
+
this.u1d_1 = noDataTile(this.r1d_1.d19_1);
|
|
2703
2706
|
this.j7_1 = 2;
|
|
2704
2707
|
continue $sm;
|
|
2705
2708
|
}
|
|
2706
2709
|
|
|
2707
2710
|
case 1:
|
|
2708
|
-
this.
|
|
2711
|
+
this.u1d_1 = suspendResult;
|
|
2709
2712
|
this.j7_1 = 2;
|
|
2710
2713
|
continue $sm;
|
|
2711
2714
|
case 2:
|
|
2712
|
-
return this.
|
|
2715
|
+
return this.u1d_1;
|
|
2713
2716
|
case 3:
|
|
2714
2717
|
throw this.m7_1;
|
|
2715
2718
|
}
|
|
@@ -2724,15 +2727,15 @@
|
|
|
2724
2727
|
}
|
|
2725
2728
|
while (true);
|
|
2726
2729
|
};
|
|
2727
|
-
protoOf(ignCoverageFiltered$slambda).
|
|
2728
|
-
var i = new ignCoverageFiltered$slambda(this.
|
|
2729
|
-
i.
|
|
2730
|
+
protoOf(ignCoverageFiltered$slambda).l1a = function (url, completion) {
|
|
2731
|
+
var i = new ignCoverageFiltered$slambda(this.r1d_1, this.s1d_1, completion);
|
|
2732
|
+
i.t1d_1 = url;
|
|
2730
2733
|
return i;
|
|
2731
2734
|
};
|
|
2732
2735
|
function ignCoverageFiltered$slambda_0($config, $fetcher, resultContinuation) {
|
|
2733
2736
|
var i = new ignCoverageFiltered$slambda($config, $fetcher, resultContinuation);
|
|
2734
2737
|
return constructCallableReference(function (url, $completion) {
|
|
2735
|
-
return i.
|
|
2738
|
+
return i.a1a(url, $completion);
|
|
2736
2739
|
}, 1);
|
|
2737
2740
|
}
|
|
2738
2741
|
var static_init_called_1;
|
|
@@ -2760,14 +2763,14 @@
|
|
|
2760
2763
|
var $ENTRIES_0;
|
|
2761
2764
|
function IgnLidarHdLayer(name, ordinal, wmsLayer) {
|
|
2762
2765
|
Enum.call(this, name, ordinal);
|
|
2763
|
-
this.
|
|
2766
|
+
this.n1b_1 = wmsLayer;
|
|
2764
2767
|
}
|
|
2765
|
-
protoOf(IgnLidarHdLayer).
|
|
2768
|
+
protoOf(IgnLidarHdLayer).k1b = function () {
|
|
2766
2769
|
return 15;
|
|
2767
2770
|
};
|
|
2768
|
-
protoOf(IgnLidarHdLayer).
|
|
2769
|
-
var tmp1_zoomLevel = zoomLevel == null ? this.
|
|
2770
|
-
var tmp3_tileUrlTemplate = ignWmsTemplate(this.
|
|
2771
|
+
protoOf(IgnLidarHdLayer).o1b = function (zoomLevel) {
|
|
2772
|
+
var tmp1_zoomLevel = zoomLevel == null ? this.k1b() : zoomLevel;
|
|
2773
|
+
var tmp3_tileUrlTemplate = ignWmsTemplate(this.n1b_1, 256);
|
|
2771
2774
|
var tmp4_encoding = TileEncoding_BIL32_getInstance();
|
|
2772
2775
|
var tmp5_attribution = new Attribution('\xA9 IGN \u2014 LiDAR HD ' + this.x1_1 + ', Licence Ouverte Etalab 2.0', 'https://geoservices.ign.fr/lidarhd');
|
|
2773
2776
|
return new ElevationProviderConfig(tmp1_zoomLevel, VOID, tmp3_tileUrlTemplate, 256, tmp5_attribution, tmp4_encoding, 20);
|
|
@@ -2781,7 +2784,7 @@
|
|
|
2781
2784
|
tmp = fetcherFor;
|
|
2782
2785
|
}
|
|
2783
2786
|
fetcherFor = tmp;
|
|
2784
|
-
var config = _this__u8e3s4.
|
|
2787
|
+
var config = _this__u8e3s4.o1b(zoomLevel);
|
|
2785
2788
|
return ElevationProvider_init_$Create$_0(config, ignCoverageFiltered(config, fetcherFor(config)), true);
|
|
2786
2789
|
}
|
|
2787
2790
|
function ignWmsTemplate(layer, tileSize) {
|
|
@@ -2800,13 +2803,13 @@
|
|
|
2800
2803
|
return IgnLidarHdLayer_MNH_instance;
|
|
2801
2804
|
}
|
|
2802
2805
|
function Hit(value) {
|
|
2803
|
-
this.
|
|
2806
|
+
this.v1d_1 = value;
|
|
2804
2807
|
}
|
|
2805
2808
|
function Await(deferred) {
|
|
2806
|
-
this.
|
|
2809
|
+
this.w1d_1 = deferred;
|
|
2807
2810
|
}
|
|
2808
2811
|
function Owner(deferred) {
|
|
2809
|
-
this.
|
|
2812
|
+
this.x1d_1 = deferred;
|
|
2810
2813
|
}
|
|
2811
2814
|
function LoadAbandoned() {
|
|
2812
2815
|
Exception_init_$Init$('load abandoned by its cancelled owner', this);
|
|
@@ -2825,18 +2828,18 @@
|
|
|
2825
2828
|
return tmp.r7();
|
|
2826
2829
|
}
|
|
2827
2830
|
function LruCache$load$slambda(this$0, $key, resultContinuation) {
|
|
2828
|
-
this.
|
|
2829
|
-
this.
|
|
2831
|
+
this.g1f_1 = this$0;
|
|
2832
|
+
this.h1f_1 = $key;
|
|
2830
2833
|
CoroutineImpl.call(this, resultContinuation);
|
|
2831
2834
|
}
|
|
2832
|
-
protoOf(LruCache$load$slambda).
|
|
2833
|
-
var tmp = this.
|
|
2835
|
+
protoOf(LruCache$load$slambda).l1f = function ($this$withContext, $completion) {
|
|
2836
|
+
var tmp = this.e1c($this$withContext, $completion);
|
|
2834
2837
|
tmp.l7_1 = Unit_instance;
|
|
2835
2838
|
tmp.m7_1 = null;
|
|
2836
2839
|
return tmp.r7();
|
|
2837
2840
|
};
|
|
2838
2841
|
protoOf(LruCache$load$slambda).z7 = function (p1, $completion) {
|
|
2839
|
-
return this.
|
|
2842
|
+
return this.l1f((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2840
2843
|
};
|
|
2841
2844
|
protoOf(LruCache$load$slambda).r7 = function () {
|
|
2842
2845
|
var suspendResult = this.l7_1;
|
|
@@ -2846,10 +2849,10 @@
|
|
|
2846
2849
|
switch (tmp) {
|
|
2847
2850
|
case 0:
|
|
2848
2851
|
this.k7_1 = 2;
|
|
2849
|
-
this.
|
|
2850
|
-
this.
|
|
2852
|
+
this.k1f_1 = this.g1f_1.p1f_1;
|
|
2853
|
+
this.j1f_1 = null;
|
|
2851
2854
|
this.j7_1 = 1;
|
|
2852
|
-
suspendResult = this.
|
|
2855
|
+
suspendResult = this.k1f_1.qw(this.j1f_1, this);
|
|
2853
2856
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2854
2857
|
return suspendResult;
|
|
2855
2858
|
}
|
|
@@ -2860,18 +2863,18 @@
|
|
|
2860
2863
|
l$ret$1: do {
|
|
2861
2864
|
var tmp_0;
|
|
2862
2865
|
try {
|
|
2863
|
-
tmp$ret$0 = this.
|
|
2866
|
+
tmp$ret$0 = this.g1f_1.r1f_1.w3(this.h1f_1);
|
|
2864
2867
|
break l$ret$1;
|
|
2865
2868
|
} catch ($p) {
|
|
2866
2869
|
var tmp_1;
|
|
2867
2870
|
var t = $p;
|
|
2868
|
-
this.
|
|
2871
|
+
this.k1f_1.bw(this.j1f_1);
|
|
2869
2872
|
throw t;
|
|
2870
2873
|
}
|
|
2871
2874
|
}
|
|
2872
2875
|
while (false);
|
|
2873
2876
|
var tmp_2 = tmp$ret$0;
|
|
2874
|
-
this.
|
|
2877
|
+
this.k1f_1.bw(this.j1f_1);
|
|
2875
2878
|
return tmp_2;
|
|
2876
2879
|
case 2:
|
|
2877
2880
|
throw this.m7_1;
|
|
@@ -2887,31 +2890,31 @@
|
|
|
2887
2890
|
}
|
|
2888
2891
|
while (true);
|
|
2889
2892
|
};
|
|
2890
|
-
protoOf(LruCache$load$slambda).
|
|
2891
|
-
var i = new LruCache$load$slambda(this.
|
|
2892
|
-
i.
|
|
2893
|
+
protoOf(LruCache$load$slambda).e1c = function ($this$withContext, completion) {
|
|
2894
|
+
var i = new LruCache$load$slambda(this.g1f_1, this.h1f_1, completion);
|
|
2895
|
+
i.i1f_1 = $this$withContext;
|
|
2893
2896
|
return i;
|
|
2894
2897
|
};
|
|
2895
2898
|
function LruCache$load$slambda_0(this$0, $key, resultContinuation) {
|
|
2896
2899
|
var i = new LruCache$load$slambda(this$0, $key, resultContinuation);
|
|
2897
2900
|
return constructCallableReference(function ($this$withContext, $completion) {
|
|
2898
|
-
return i.
|
|
2901
|
+
return i.l1f($this$withContext, $completion);
|
|
2899
2902
|
}, 1);
|
|
2900
2903
|
}
|
|
2901
2904
|
function LruCache$load$slambda_1(this$0, $key, $value, resultContinuation) {
|
|
2902
|
-
this.
|
|
2903
|
-
this.
|
|
2904
|
-
this.
|
|
2905
|
+
this.a1g_1 = this$0;
|
|
2906
|
+
this.b1g_1 = $key;
|
|
2907
|
+
this.c1g_1 = $value;
|
|
2905
2908
|
CoroutineImpl.call(this, resultContinuation);
|
|
2906
2909
|
}
|
|
2907
|
-
protoOf(LruCache$load$slambda_1).
|
|
2908
|
-
var tmp = this.
|
|
2910
|
+
protoOf(LruCache$load$slambda_1).g1g = function ($this$withContext, $completion) {
|
|
2911
|
+
var tmp = this.e1c($this$withContext, $completion);
|
|
2909
2912
|
tmp.l7_1 = Unit_instance;
|
|
2910
2913
|
tmp.m7_1 = null;
|
|
2911
2914
|
return tmp.r7();
|
|
2912
2915
|
};
|
|
2913
2916
|
protoOf(LruCache$load$slambda_1).z7 = function (p1, $completion) {
|
|
2914
|
-
return this.
|
|
2917
|
+
return this.g1g((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2915
2918
|
};
|
|
2916
2919
|
protoOf(LruCache$load$slambda_1).r7 = function () {
|
|
2917
2920
|
var suspendResult = this.l7_1;
|
|
@@ -2921,10 +2924,10 @@
|
|
|
2921
2924
|
switch (tmp) {
|
|
2922
2925
|
case 0:
|
|
2923
2926
|
this.k7_1 = 2;
|
|
2924
|
-
this.
|
|
2925
|
-
this.
|
|
2927
|
+
this.f1g_1 = this.a1g_1.p1f_1;
|
|
2928
|
+
this.e1g_1 = null;
|
|
2926
2929
|
this.j7_1 = 1;
|
|
2927
|
-
suspendResult = this.
|
|
2930
|
+
suspendResult = this.f1g_1.qw(this.e1g_1, this);
|
|
2928
2931
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2929
2932
|
return suspendResult;
|
|
2930
2933
|
}
|
|
@@ -2935,37 +2938,37 @@
|
|
|
2935
2938
|
l$ret$1: do {
|
|
2936
2939
|
var tmp_0;
|
|
2937
2940
|
try {
|
|
2938
|
-
this.
|
|
2941
|
+
this.a1g_1.r1f_1.w3(this.b1g_1);
|
|
2939
2942
|
var oldest = null;
|
|
2940
2943
|
var tmp_1;
|
|
2941
|
-
if (this.
|
|
2942
|
-
var tmp0 = this.
|
|
2943
|
-
var key = this.
|
|
2944
|
+
if (this.a1g_1.q1f_1.o() >= this.a1g_1.m1f_1) {
|
|
2945
|
+
var tmp0 = this.a1g_1.q1f_1;
|
|
2946
|
+
var key = this.b1g_1;
|
|
2944
2947
|
tmp_1 = !(isInterface(tmp0, KtMap) ? tmp0 : THROW_CCE()).r1(key);
|
|
2945
2948
|
} else {
|
|
2946
2949
|
tmp_1 = false;
|
|
2947
2950
|
}
|
|
2948
2951
|
if (tmp_1) {
|
|
2949
|
-
var iter = this.
|
|
2952
|
+
var iter = this.a1g_1.q1f_1.w1().l();
|
|
2950
2953
|
oldest = iter.n().q1();
|
|
2951
2954
|
iter.v2();
|
|
2952
2955
|
}
|
|
2953
|
-
var tmp0_0 = this.
|
|
2954
|
-
var tmp2 = this.
|
|
2955
|
-
var value = this.
|
|
2956
|
+
var tmp0_0 = this.a1g_1.q1f_1;
|
|
2957
|
+
var tmp2 = this.b1g_1;
|
|
2958
|
+
var value = this.c1g_1;
|
|
2956
2959
|
tmp0_0.v3(tmp2, value);
|
|
2957
2960
|
tmp$ret$0 = oldest;
|
|
2958
2961
|
break l$ret$1;
|
|
2959
2962
|
} catch ($p) {
|
|
2960
2963
|
var tmp_2;
|
|
2961
2964
|
var t = $p;
|
|
2962
|
-
this.
|
|
2965
|
+
this.f1g_1.bw(this.e1g_1);
|
|
2963
2966
|
throw t;
|
|
2964
2967
|
}
|
|
2965
2968
|
}
|
|
2966
2969
|
while (false);
|
|
2967
2970
|
var tmp_3 = tmp$ret$0;
|
|
2968
|
-
this.
|
|
2971
|
+
this.f1g_1.bw(this.e1g_1);
|
|
2969
2972
|
return tmp_3;
|
|
2970
2973
|
case 2:
|
|
2971
2974
|
throw this.m7_1;
|
|
@@ -2981,21 +2984,21 @@
|
|
|
2981
2984
|
}
|
|
2982
2985
|
while (true);
|
|
2983
2986
|
};
|
|
2984
|
-
protoOf(LruCache$load$slambda_1).
|
|
2985
|
-
var i = new LruCache$load$slambda_1(this.
|
|
2986
|
-
i.
|
|
2987
|
+
protoOf(LruCache$load$slambda_1).e1c = function ($this$withContext, completion) {
|
|
2988
|
+
var i = new LruCache$load$slambda_1(this.a1g_1, this.b1g_1, this.c1g_1, completion);
|
|
2989
|
+
i.d1g_1 = $this$withContext;
|
|
2987
2990
|
return i;
|
|
2988
2991
|
};
|
|
2989
2992
|
function LruCache$load$slambda_2(this$0, $key, $value, resultContinuation) {
|
|
2990
2993
|
var i = new LruCache$load$slambda_1(this$0, $key, $value, resultContinuation);
|
|
2991
2994
|
return constructCallableReference(function ($this$withContext, $completion) {
|
|
2992
|
-
return i.
|
|
2995
|
+
return i.g1g($this$withContext, $completion);
|
|
2993
2996
|
}, 1);
|
|
2994
2997
|
}
|
|
2995
2998
|
function $getCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
|
|
2996
2999
|
CoroutineImpl.call(this, resultContinuation);
|
|
2997
|
-
this.
|
|
2998
|
-
this.
|
|
3000
|
+
this.p1g_1 = _this__u8e3s4;
|
|
3001
|
+
this.q1g_1 = key;
|
|
2999
3002
|
}
|
|
3000
3003
|
protoOf($getCOROUTINE$).r7 = function () {
|
|
3001
3004
|
var suspendResult = this.l7_1;
|
|
@@ -3014,7 +3017,7 @@
|
|
|
3014
3017
|
}
|
|
3015
3018
|
|
|
3016
3019
|
this.j7_1 = 2;
|
|
3017
|
-
suspendResult = lookupOrClaim(this.
|
|
3020
|
+
suspendResult = lookupOrClaim(this.p1g_1, this.q1g_1, this);
|
|
3018
3021
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3019
3022
|
return suspendResult;
|
|
3020
3023
|
}
|
|
@@ -3023,11 +3026,11 @@
|
|
|
3023
3026
|
case 2:
|
|
3024
3027
|
var lookup = suspendResult;
|
|
3025
3028
|
if (lookup instanceof Hit) {
|
|
3026
|
-
return lookup.
|
|
3029
|
+
return lookup.v1d_1;
|
|
3027
3030
|
} else {
|
|
3028
3031
|
if (lookup instanceof Owner) {
|
|
3029
3032
|
this.j7_1 = 7;
|
|
3030
|
-
suspendResult = load(this.
|
|
3033
|
+
suspendResult = load(this.p1g_1, this.q1g_1, lookup.x1d_1, this);
|
|
3031
3034
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3032
3035
|
return suspendResult;
|
|
3033
3036
|
}
|
|
@@ -3036,7 +3039,7 @@
|
|
|
3036
3039
|
if (lookup instanceof Await) {
|
|
3037
3040
|
this.k7_1 = 4;
|
|
3038
3041
|
this.j7_1 = 3;
|
|
3039
|
-
suspendResult = lookup.
|
|
3042
|
+
suspendResult = lookup.w1d_1.fo(this);
|
|
3040
3043
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3041
3044
|
return suspendResult;
|
|
3042
3045
|
}
|
|
@@ -3088,8 +3091,8 @@
|
|
|
3088
3091
|
};
|
|
3089
3092
|
function $lookupOrClaimCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
|
|
3090
3093
|
CoroutineImpl.call(this, resultContinuation);
|
|
3091
|
-
this.
|
|
3092
|
-
this.
|
|
3094
|
+
this.g1e_1 = _this__u8e3s4;
|
|
3095
|
+
this.h1e_1 = key;
|
|
3093
3096
|
}
|
|
3094
3097
|
protoOf($lookupOrClaimCOROUTINE$).r7 = function () {
|
|
3095
3098
|
var suspendResult = this.l7_1;
|
|
@@ -3099,10 +3102,10 @@
|
|
|
3099
3102
|
switch (tmp) {
|
|
3100
3103
|
case 0:
|
|
3101
3104
|
this.k7_1 = 2;
|
|
3102
|
-
this.
|
|
3103
|
-
this.
|
|
3105
|
+
this.j1e_1 = this.g1e_1.p1f_1;
|
|
3106
|
+
this.i1e_1 = null;
|
|
3104
3107
|
this.j7_1 = 1;
|
|
3105
|
-
suspendResult = this.
|
|
3108
|
+
suspendResult = this.j1e_1.qw(this.i1e_1, this);
|
|
3106
3109
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3107
3110
|
return suspendResult;
|
|
3108
3111
|
}
|
|
@@ -3115,22 +3118,22 @@
|
|
|
3115
3118
|
try {
|
|
3116
3119
|
var tmp$ret$0 = Unit_instance;
|
|
3117
3120
|
l$ret$1: do {
|
|
3118
|
-
var hit = this.
|
|
3121
|
+
var hit = this.g1e_1.q1f_1.w3(this.h1e_1);
|
|
3119
3122
|
if (!(hit == null)) {
|
|
3120
|
-
var tmp0 = this.
|
|
3121
|
-
var key = this.
|
|
3123
|
+
var tmp0 = this.g1e_1.q1f_1;
|
|
3124
|
+
var key = this.h1e_1;
|
|
3122
3125
|
tmp0.v3(key, hit);
|
|
3123
3126
|
tmp$ret$0 = new Hit(hit);
|
|
3124
3127
|
break l$ret$1;
|
|
3125
3128
|
}
|
|
3126
|
-
var raced = this.
|
|
3129
|
+
var raced = this.g1e_1.r1f_1.t1(this.h1e_1);
|
|
3127
3130
|
var tmp_1;
|
|
3128
3131
|
if (!(raced == null)) {
|
|
3129
3132
|
tmp_1 = new Await(raced);
|
|
3130
3133
|
} else {
|
|
3131
3134
|
var ours = CompletableDeferred();
|
|
3132
|
-
var tmp0_0 = this.
|
|
3133
|
-
var key_0 = this.
|
|
3135
|
+
var tmp0_0 = this.g1e_1.r1f_1;
|
|
3136
|
+
var key_0 = this.h1e_1;
|
|
3134
3137
|
tmp0_0.v3(key_0, ours);
|
|
3135
3138
|
tmp_1 = new Owner(ours);
|
|
3136
3139
|
}
|
|
@@ -3142,13 +3145,13 @@
|
|
|
3142
3145
|
} catch ($p) {
|
|
3143
3146
|
var tmp_2;
|
|
3144
3147
|
var t = $p;
|
|
3145
|
-
this.
|
|
3148
|
+
this.j1e_1.bw(this.i1e_1);
|
|
3146
3149
|
throw t;
|
|
3147
3150
|
}
|
|
3148
3151
|
}
|
|
3149
3152
|
while (false);
|
|
3150
3153
|
var tmp_3 = tmp$ret$2;
|
|
3151
|
-
this.
|
|
3154
|
+
this.j1e_1.bw(this.i1e_1);
|
|
3152
3155
|
return tmp_3;
|
|
3153
3156
|
case 2:
|
|
3154
3157
|
throw this.m7_1;
|
|
@@ -3166,9 +3169,9 @@
|
|
|
3166
3169
|
};
|
|
3167
3170
|
function $loadCOROUTINE$(_this__u8e3s4, key, ours, resultContinuation) {
|
|
3168
3171
|
CoroutineImpl.call(this, resultContinuation);
|
|
3169
|
-
this.
|
|
3170
|
-
this.
|
|
3171
|
-
this.
|
|
3172
|
+
this.s1e_1 = _this__u8e3s4;
|
|
3173
|
+
this.t1e_1 = key;
|
|
3174
|
+
this.u1e_1 = ours;
|
|
3172
3175
|
}
|
|
3173
3176
|
protoOf($loadCOROUTINE$).r7 = function () {
|
|
3174
3177
|
var suspendResult = this.l7_1;
|
|
@@ -3180,14 +3183,14 @@
|
|
|
3180
3183
|
this.k7_1 = 6;
|
|
3181
3184
|
this.k7_1 = 2;
|
|
3182
3185
|
this.j7_1 = 1;
|
|
3183
|
-
suspendResult = this.
|
|
3186
|
+
suspendResult = this.s1e_1.n1f_1(this.t1e_1, this);
|
|
3184
3187
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3185
3188
|
return suspendResult;
|
|
3186
3189
|
}
|
|
3187
3190
|
|
|
3188
3191
|
continue $sm;
|
|
3189
3192
|
case 1:
|
|
3190
|
-
this.
|
|
3193
|
+
this.w1e_1 = suspendResult;
|
|
3191
3194
|
this.k7_1 = 6;
|
|
3192
3195
|
this.j7_1 = 4;
|
|
3193
3196
|
continue $sm;
|
|
@@ -3195,10 +3198,10 @@
|
|
|
3195
3198
|
this.k7_1 = 6;
|
|
3196
3199
|
var tmp_0 = this.m7_1;
|
|
3197
3200
|
if (tmp_0 instanceof Error) {
|
|
3198
|
-
this.
|
|
3201
|
+
this.x1e_1 = this.m7_1;
|
|
3199
3202
|
this.j7_1 = 3;
|
|
3200
3203
|
var tmp_1 = NonCancellable_getInstance();
|
|
3201
|
-
suspendResult = withContext(tmp_1, LruCache$load$slambda_0(this.
|
|
3204
|
+
suspendResult = withContext(tmp_1, LruCache$load$slambda_0(this.s1e_1, this.t1e_1, null), this);
|
|
3202
3205
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3203
3206
|
return suspendResult;
|
|
3204
3207
|
}
|
|
@@ -3209,22 +3212,22 @@
|
|
|
3209
3212
|
|
|
3210
3213
|
case 3:
|
|
3211
3214
|
var tmp_2;
|
|
3212
|
-
var tmp_3 = this.
|
|
3215
|
+
var tmp_3 = this.x1e_1;
|
|
3213
3216
|
if (tmp_3 instanceof CancellationException) {
|
|
3214
3217
|
tmp_2 = new LoadAbandoned();
|
|
3215
3218
|
} else {
|
|
3216
|
-
tmp_2 = this.
|
|
3219
|
+
tmp_2 = this.x1e_1;
|
|
3217
3220
|
}
|
|
3218
3221
|
|
|
3219
|
-
this.
|
|
3222
|
+
this.u1e_1.jr(tmp_2);
|
|
3220
3223
|
var tmp_4 = this;
|
|
3221
|
-
throw this.
|
|
3224
|
+
throw this.x1e_1;
|
|
3222
3225
|
case 4:
|
|
3223
3226
|
this.k7_1 = 6;
|
|
3224
|
-
this.
|
|
3227
|
+
this.v1e_1 = this.w1e_1;
|
|
3225
3228
|
this.j7_1 = 5;
|
|
3226
3229
|
var tmp_5 = NonCancellable_getInstance();
|
|
3227
|
-
suspendResult = withContext(tmp_5, LruCache$load$slambda_2(this.
|
|
3230
|
+
suspendResult = withContext(tmp_5, LruCache$load$slambda_2(this.s1e_1, this.t1e_1, this.v1e_1, null), this);
|
|
3228
3231
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3229
3232
|
return suspendResult;
|
|
3230
3233
|
}
|
|
@@ -3232,16 +3235,16 @@
|
|
|
3232
3235
|
continue $sm;
|
|
3233
3236
|
case 5:
|
|
3234
3237
|
var evicted = suspendResult;
|
|
3235
|
-
this.
|
|
3238
|
+
this.u1e_1.ir(this.v1e_1);
|
|
3236
3239
|
if (!(evicted == null)) {
|
|
3237
|
-
var tmp0_safe_receiver = this.
|
|
3240
|
+
var tmp0_safe_receiver = this.s1e_1.o1f_1;
|
|
3238
3241
|
if (tmp0_safe_receiver == null)
|
|
3239
3242
|
null;
|
|
3240
3243
|
else
|
|
3241
3244
|
tmp0_safe_receiver(evicted);
|
|
3242
3245
|
}
|
|
3243
3246
|
|
|
3244
|
-
return this.
|
|
3247
|
+
return this.v1e_1;
|
|
3245
3248
|
case 6:
|
|
3246
3249
|
throw this.m7_1;
|
|
3247
3250
|
}
|
|
@@ -3258,33 +3261,33 @@
|
|
|
3258
3261
|
};
|
|
3259
3262
|
function LruCache(maxSize, loader, onEvict) {
|
|
3260
3263
|
onEvict = onEvict === VOID ? null : onEvict;
|
|
3261
|
-
this.
|
|
3262
|
-
this.
|
|
3263
|
-
this.
|
|
3264
|
+
this.m1f_1 = maxSize;
|
|
3265
|
+
this.n1f_1 = loader;
|
|
3266
|
+
this.o1f_1 = onEvict;
|
|
3264
3267
|
// Inline function 'kotlin.require' call
|
|
3265
|
-
if (!(this.
|
|
3268
|
+
if (!(this.m1f_1 > 0)) {
|
|
3266
3269
|
var message = 'Cache size must be greater than 0';
|
|
3267
3270
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3268
3271
|
}
|
|
3269
|
-
this.
|
|
3270
|
-
this.
|
|
3272
|
+
this.p1f_1 = Mutex();
|
|
3273
|
+
this.q1f_1 = LinkedHashMap_init_$Create$();
|
|
3271
3274
|
var tmp = this;
|
|
3272
3275
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
3273
|
-
tmp.
|
|
3276
|
+
tmp.r1f_1 = LinkedHashMap_init_$Create$();
|
|
3274
3277
|
}
|
|
3275
|
-
protoOf(LruCache).
|
|
3278
|
+
protoOf(LruCache).r1g = function (key, $completion) {
|
|
3276
3279
|
var tmp = new $getCOROUTINE$(this, key, $completion);
|
|
3277
3280
|
tmp.l7_1 = Unit_instance;
|
|
3278
3281
|
tmp.m7_1 = null;
|
|
3279
3282
|
return tmp.r7();
|
|
3280
3283
|
};
|
|
3281
3284
|
function RawTile(width, height, rgba) {
|
|
3282
|
-
this.
|
|
3283
|
-
this.
|
|
3284
|
-
this.
|
|
3285
|
+
this.s1g_1 = width;
|
|
3286
|
+
this.t1g_1 = height;
|
|
3287
|
+
this.u1g_1 = rgba;
|
|
3285
3288
|
// Inline function 'kotlin.require' call
|
|
3286
|
-
if (!(this.
|
|
3287
|
-
var message = 'rgba size ' + this.
|
|
3289
|
+
if (!(this.u1g_1.length === imul(imul(this.s1g_1, this.t1g_1), 4))) {
|
|
3290
|
+
var message = 'rgba size ' + this.u1g_1.length + ' does not match width*height*4 (' + imul(imul(this.s1g_1, this.t1g_1), 4) + ')';
|
|
3288
3291
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3289
3292
|
}
|
|
3290
3293
|
}
|
|
@@ -3293,41 +3296,41 @@
|
|
|
3293
3296
|
return true;
|
|
3294
3297
|
if (!(other instanceof RawTile))
|
|
3295
3298
|
return false;
|
|
3296
|
-
return this.
|
|
3299
|
+
return this.s1g_1 === other.s1g_1 && this.t1g_1 === other.t1g_1 && contentEquals(this.u1g_1, other.u1g_1);
|
|
3297
3300
|
};
|
|
3298
3301
|
protoOf(RawTile).hashCode = function () {
|
|
3299
|
-
var result = this.
|
|
3300
|
-
result = imul(31, result) + this.
|
|
3301
|
-
result = imul(31, result) + contentHashCode(this.
|
|
3302
|
+
var result = this.s1g_1;
|
|
3303
|
+
result = imul(31, result) + this.t1g_1 | 0;
|
|
3304
|
+
result = imul(31, result) + contentHashCode(this.u1g_1) | 0;
|
|
3302
3305
|
return result;
|
|
3303
3306
|
};
|
|
3304
3307
|
function TerrainSample(latitude, longitude, elevation, origin, afterError) {
|
|
3305
|
-
this.
|
|
3306
|
-
this.
|
|
3307
|
-
this.
|
|
3308
|
-
this.
|
|
3309
|
-
this.
|
|
3308
|
+
this.j19_1 = latitude;
|
|
3309
|
+
this.k19_1 = longitude;
|
|
3310
|
+
this.l19_1 = elevation;
|
|
3311
|
+
this.m19_1 = origin;
|
|
3312
|
+
this.n19_1 = afterError;
|
|
3310
3313
|
}
|
|
3311
|
-
protoOf(TerrainSample).
|
|
3314
|
+
protoOf(TerrainSample).v1g = function (latitude, longitude, elevation, origin, afterError) {
|
|
3312
3315
|
return new TerrainSample(latitude, longitude, elevation, origin, afterError);
|
|
3313
3316
|
};
|
|
3314
|
-
protoOf(TerrainSample).
|
|
3315
|
-
latitude = latitude === VOID ? this.
|
|
3316
|
-
longitude = longitude === VOID ? this.
|
|
3317
|
-
elevation = elevation === VOID ? this.
|
|
3318
|
-
origin = origin === VOID ? this.
|
|
3319
|
-
afterError = afterError === VOID ? this.
|
|
3320
|
-
return $super === VOID ? this.
|
|
3317
|
+
protoOf(TerrainSample).o19 = function (latitude, longitude, elevation, origin, afterError, $super) {
|
|
3318
|
+
latitude = latitude === VOID ? this.j19_1 : latitude;
|
|
3319
|
+
longitude = longitude === VOID ? this.k19_1 : longitude;
|
|
3320
|
+
elevation = elevation === VOID ? this.l19_1 : elevation;
|
|
3321
|
+
origin = origin === VOID ? this.m19_1 : origin;
|
|
3322
|
+
afterError = afterError === VOID ? this.n19_1 : afterError;
|
|
3323
|
+
return $super === VOID ? this.v1g(latitude, longitude, elevation, origin, afterError) : $super.v1g.call(this, latitude, longitude, elevation, origin, afterError);
|
|
3321
3324
|
};
|
|
3322
3325
|
protoOf(TerrainSample).toString = function () {
|
|
3323
|
-
return 'TerrainSample(latitude=' + this.
|
|
3326
|
+
return 'TerrainSample(latitude=' + this.j19_1 + ', longitude=' + this.k19_1 + ', elevation=' + this.l19_1 + ', origin=' + this.m19_1.toString() + ', afterError=' + this.n19_1 + ')';
|
|
3324
3327
|
};
|
|
3325
3328
|
protoOf(TerrainSample).hashCode = function () {
|
|
3326
|
-
var result = getNumberHashCode(this.
|
|
3327
|
-
result = imul(result, 31) + getNumberHashCode(this.j19_1) | 0;
|
|
3329
|
+
var result = getNumberHashCode(this.j19_1);
|
|
3328
3330
|
result = imul(result, 31) + getNumberHashCode(this.k19_1) | 0;
|
|
3329
|
-
result = imul(result, 31) + this.l19_1
|
|
3330
|
-
result = imul(result, 31) +
|
|
3331
|
+
result = imul(result, 31) + getNumberHashCode(this.l19_1) | 0;
|
|
3332
|
+
result = imul(result, 31) + this.m19_1.hashCode() | 0;
|
|
3333
|
+
result = imul(result, 31) + getBooleanHashCode(this.n19_1) | 0;
|
|
3331
3334
|
return result;
|
|
3332
3335
|
};
|
|
3333
3336
|
protoOf(TerrainSample).equals = function (other) {
|
|
@@ -3335,15 +3338,15 @@
|
|
|
3335
3338
|
return true;
|
|
3336
3339
|
if (!(other instanceof TerrainSample))
|
|
3337
3340
|
return false;
|
|
3338
|
-
if (!equals(this.i19_1, other.i19_1))
|
|
3339
|
-
return false;
|
|
3340
3341
|
if (!equals(this.j19_1, other.j19_1))
|
|
3341
3342
|
return false;
|
|
3342
3343
|
if (!equals(this.k19_1, other.k19_1))
|
|
3343
3344
|
return false;
|
|
3344
|
-
if (!this.l19_1
|
|
3345
|
+
if (!equals(this.l19_1, other.l19_1))
|
|
3346
|
+
return false;
|
|
3347
|
+
if (!this.m19_1.equals(other.m19_1))
|
|
3345
3348
|
return false;
|
|
3346
|
-
if (!(this.
|
|
3349
|
+
if (!(this.n19_1 === other.n19_1))
|
|
3347
3350
|
return false;
|
|
3348
3351
|
return true;
|
|
3349
3352
|
};
|
|
@@ -3377,13 +3380,13 @@
|
|
|
3377
3380
|
var _iterator__ex2g4s = this_0.l();
|
|
3378
3381
|
while (_iterator__ex2g4s.m()) {
|
|
3379
3382
|
var item = _iterator__ex2g4s.n();
|
|
3380
|
-
var tmp$ret$2 = item.
|
|
3383
|
+
var tmp$ret$2 = item.y1g_1;
|
|
3381
3384
|
destination.k(tmp$ret$2);
|
|
3382
3385
|
}
|
|
3383
|
-
tmp.
|
|
3386
|
+
tmp.h19_1 = destination;
|
|
3384
3387
|
}
|
|
3385
|
-
protoOf(Companion_0).
|
|
3386
|
-
var template = config.
|
|
3388
|
+
protoOf(Companion_0).i19 = function (config, declared, latitude, longitude) {
|
|
3389
|
+
var template = config.c19_1;
|
|
3387
3390
|
var tmp;
|
|
3388
3391
|
var tmp0 = get_entries_0();
|
|
3389
3392
|
var tmp$ret$0;
|
|
@@ -3402,7 +3405,7 @@
|
|
|
3402
3405
|
var _iterator__ex2g4s = tmp0.l();
|
|
3403
3406
|
while (_iterator__ex2g4s.m()) {
|
|
3404
3407
|
var element = _iterator__ex2g4s.n();
|
|
3405
|
-
if (element.
|
|
3408
|
+
if (element.o1b(config.a19_1).c19_1 === template) {
|
|
3406
3409
|
tmp$ret$0 = true;
|
|
3407
3410
|
break $l$block_0;
|
|
3408
3411
|
}
|
|
@@ -3410,15 +3413,31 @@
|
|
|
3410
3413
|
tmp$ret$0 = false;
|
|
3411
3414
|
}
|
|
3412
3415
|
if (tmp$ret$0) {
|
|
3413
|
-
tmp =
|
|
3416
|
+
tmp = ElevationSource_IGN_LIDAR_HD_getInstance();
|
|
3414
3417
|
} else {
|
|
3415
|
-
if (template === ElevationSource_MAPTERHORN_getInstance().
|
|
3416
|
-
tmp =
|
|
3418
|
+
if (template === ElevationSource_MAPTERHORN_getInstance().o1b(config.a19_1).c19_1) {
|
|
3419
|
+
tmp = ElevationSource_MAPTERHORN_getInstance();
|
|
3417
3420
|
} else {
|
|
3418
|
-
tmp =
|
|
3421
|
+
tmp = declared;
|
|
3419
3422
|
}
|
|
3420
3423
|
}
|
|
3421
|
-
|
|
3424
|
+
var source = tmp;
|
|
3425
|
+
var tmp_1;
|
|
3426
|
+
switch (source == null ? -1 : source.y1_1) {
|
|
3427
|
+
case 1:
|
|
3428
|
+
tmp_1 = TerrainOrigin_IGN_LIDAR_HD_getInstance();
|
|
3429
|
+
break;
|
|
3430
|
+
case 0:
|
|
3431
|
+
tmp_1 = IgnLidarHdCoverage_getInstance().h1d(latitude, longitude) ? TerrainOrigin_MAPTERHORN_MEASURED_getInstance() : TerrainOrigin_MAPTERHORN_getInstance();
|
|
3432
|
+
break;
|
|
3433
|
+
case -1:
|
|
3434
|
+
tmp_1 = TerrainOrigin_OTHER_getInstance();
|
|
3435
|
+
break;
|
|
3436
|
+
default:
|
|
3437
|
+
noWhenBranchMatchedException();
|
|
3438
|
+
break;
|
|
3439
|
+
}
|
|
3440
|
+
return tmp_1;
|
|
3422
3441
|
};
|
|
3423
3442
|
var Companion_instance_1;
|
|
3424
3443
|
function Companion_getInstance_1() {
|
|
@@ -3438,8 +3457,8 @@
|
|
|
3438
3457
|
var $ENTRIES_1;
|
|
3439
3458
|
function TerrainOrigin(name, ordinal, id, measured) {
|
|
3440
3459
|
Enum.call(this, name, ordinal);
|
|
3441
|
-
this.
|
|
3442
|
-
this.
|
|
3460
|
+
this.y1g_1 = id;
|
|
3461
|
+
this.z1g_1 = measured;
|
|
3443
3462
|
}
|
|
3444
3463
|
function TerrainOrigin_IGN_LIDAR_HD_getInstance() {
|
|
3445
3464
|
static_init_2();
|
|
@@ -3462,7 +3481,7 @@
|
|
|
3462
3481
|
return TerrainOrigin_NONE_instance;
|
|
3463
3482
|
}
|
|
3464
3483
|
function Tile_init_$Init$(raw, $this) {
|
|
3465
|
-
Tile.call($this, raw.
|
|
3484
|
+
Tile.call($this, raw.s1g_1, raw.t1g_1, raw.u1g_1);
|
|
3466
3485
|
return $this;
|
|
3467
3486
|
}
|
|
3468
3487
|
function Tile_init_$Create$(raw) {
|
|
@@ -3470,7 +3489,7 @@
|
|
|
3470
3489
|
}
|
|
3471
3490
|
function Companion_1() {
|
|
3472
3491
|
}
|
|
3473
|
-
protoOf(Companion_1).
|
|
3492
|
+
protoOf(Companion_1).a1h = function (r, g, b) {
|
|
3474
3493
|
var raw = r * 256.0 + g + b / 256.0 - 32768.0;
|
|
3475
3494
|
return round(raw * 100.0) / 100.0;
|
|
3476
3495
|
};
|
|
@@ -3517,7 +3536,7 @@
|
|
|
3517
3536
|
var r = this.e16_1[byteOffset] & 255;
|
|
3518
3537
|
var g = this.e16_1[byteOffset + 1 | 0] & 255;
|
|
3519
3538
|
var b = this.e16_1[byteOffset + 2 | 0] & 255;
|
|
3520
|
-
var elevation = r === 0 && g === 0 && b === 0 ? NaN : Companion_instance_2.
|
|
3539
|
+
var elevation = r === 0 && g === 0 && b === 0 ? NaN : Companion_instance_2.a1h(r, g, b);
|
|
3521
3540
|
this.g16_1[idx] = elevation;
|
|
3522
3541
|
this.h16_1 = this.h16_1 + 1 | 0;
|
|
3523
3542
|
return elevation;
|
|
@@ -3528,11 +3547,11 @@
|
|
|
3528
3547
|
};
|
|
3529
3548
|
}
|
|
3530
3549
|
function Entry(failure, untilMs) {
|
|
3531
|
-
this.
|
|
3532
|
-
this.
|
|
3550
|
+
this.b1h_1 = failure;
|
|
3551
|
+
this.c1h_1 = untilMs;
|
|
3533
3552
|
}
|
|
3534
3553
|
function _get_empty__hz710c($this) {
|
|
3535
|
-
var tmp0 = $this.
|
|
3554
|
+
var tmp0 = $this.j1h_1;
|
|
3536
3555
|
var tmp = KProperty1;
|
|
3537
3556
|
// Inline function 'kotlin.getValue' call
|
|
3538
3557
|
getPropertyCallableRef('empty', 1, tmp, UnreadableTiles$_get_empty_$ref_9kivqt(), null);
|
|
@@ -3540,11 +3559,11 @@
|
|
|
3540
3559
|
}
|
|
3541
3560
|
function Companion_2() {
|
|
3542
3561
|
Companion_instance_3 = this;
|
|
3543
|
-
this.
|
|
3562
|
+
this.k1h_1 = new Long(60000, 0);
|
|
3544
3563
|
var tmp = this;
|
|
3545
3564
|
// Inline function 'kotlin.let' call
|
|
3546
3565
|
var origin = Monotonic_instance.wb();
|
|
3547
|
-
tmp.
|
|
3566
|
+
tmp.l1h_1 = UnreadableTiles$Companion$monotonicClock$lambda(origin);
|
|
3548
3567
|
}
|
|
3549
3568
|
var Companion_instance_3;
|
|
3550
3569
|
function Companion_getInstance_3() {
|
|
@@ -3555,7 +3574,7 @@
|
|
|
3555
3574
|
function UnreadableTiles$empty$delegate$lambda(this$0) {
|
|
3556
3575
|
return function () {
|
|
3557
3576
|
// Inline function 'kotlin.also' call
|
|
3558
|
-
var this_0 = Tile_init_$Create$(noDataTile(this$0.
|
|
3577
|
+
var this_0 = Tile_init_$Create$(noDataTile(this$0.e1h_1));
|
|
3559
3578
|
this_0.f16_1 = true;
|
|
3560
3579
|
return this_0;
|
|
3561
3580
|
};
|
|
@@ -3567,8 +3586,8 @@
|
|
|
3567
3586
|
}
|
|
3568
3587
|
function $cachedCOROUTINE$(_this__u8e3s4, tc, resultContinuation) {
|
|
3569
3588
|
CoroutineImpl.call(this, resultContinuation);
|
|
3570
|
-
this.
|
|
3571
|
-
this.
|
|
3589
|
+
this.u1h_1 = _this__u8e3s4;
|
|
3590
|
+
this.v1h_1 = tc;
|
|
3572
3591
|
}
|
|
3573
3592
|
protoOf($cachedCOROUTINE$).r7 = function () {
|
|
3574
3593
|
var suspendResult = this.l7_1;
|
|
@@ -3578,10 +3597,10 @@
|
|
|
3578
3597
|
switch (tmp) {
|
|
3579
3598
|
case 0:
|
|
3580
3599
|
this.k7_1 = 4;
|
|
3581
|
-
this.
|
|
3582
|
-
this.
|
|
3600
|
+
this.y1h_1 = this.u1h_1.h1h_1;
|
|
3601
|
+
this.x1h_1 = null;
|
|
3583
3602
|
this.j7_1 = 1;
|
|
3584
|
-
suspendResult = this.
|
|
3603
|
+
suspendResult = this.y1h_1.qw(this.x1h_1, this);
|
|
3585
3604
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3586
3605
|
return suspendResult;
|
|
3587
3606
|
}
|
|
@@ -3594,7 +3613,7 @@
|
|
|
3594
3613
|
l$ret$1: do {
|
|
3595
3614
|
var tmp_0;
|
|
3596
3615
|
try {
|
|
3597
|
-
var tmp0_elvis_lhs = this.
|
|
3616
|
+
var tmp0_elvis_lhs = this.u1h_1.i1h_1.t1(this.v1h_1);
|
|
3598
3617
|
var tmp_1;
|
|
3599
3618
|
if (tmp0_elvis_lhs == null) {
|
|
3600
3619
|
tmp$ret$0 = null;
|
|
@@ -3603,8 +3622,8 @@
|
|
|
3603
3622
|
tmp_1 = tmp0_elvis_lhs;
|
|
3604
3623
|
}
|
|
3605
3624
|
var e = tmp_1;
|
|
3606
|
-
if (compare(this.
|
|
3607
|
-
this.
|
|
3625
|
+
if (compare(this.u1h_1.g1h_1(), e.c1h_1) >= 0) {
|
|
3626
|
+
this.u1h_1.i1h_1.w3(this.v1h_1);
|
|
3608
3627
|
tmp$ret$0 = null;
|
|
3609
3628
|
break l$ret$1;
|
|
3610
3629
|
}
|
|
@@ -3613,27 +3632,27 @@
|
|
|
3613
3632
|
} catch ($p) {
|
|
3614
3633
|
var tmp_2;
|
|
3615
3634
|
var t = $p;
|
|
3616
|
-
this.
|
|
3635
|
+
this.y1h_1.bw(this.x1h_1);
|
|
3617
3636
|
throw t;
|
|
3618
3637
|
}
|
|
3619
3638
|
}
|
|
3620
3639
|
while (false);
|
|
3621
3640
|
var tmp_3 = tmp$ret$0;
|
|
3622
|
-
this.
|
|
3641
|
+
this.y1h_1.bw(this.x1h_1);
|
|
3623
3642
|
return tmp_3;
|
|
3624
3643
|
}
|
|
3625
3644
|
while (false);
|
|
3626
3645
|
var tmp_4 = tmp$ret$2;
|
|
3627
|
-
this.
|
|
3646
|
+
this.y1h_1.bw(this.x1h_1);
|
|
3628
3647
|
var entry = tmp_4;
|
|
3629
3648
|
var tmp0_safe_receiver = this.p7().w7(Key_instance);
|
|
3630
3649
|
if (tmp0_safe_receiver == null) {
|
|
3631
|
-
this.
|
|
3650
|
+
this.w1h_1 = null;
|
|
3632
3651
|
this.j7_1 = 3;
|
|
3633
3652
|
continue $sm;
|
|
3634
3653
|
} else {
|
|
3635
3654
|
this.j7_1 = 2;
|
|
3636
|
-
suspendResult = tmp0_safe_receiver.
|
|
3655
|
+
suspendResult = tmp0_safe_receiver.c1i(entry.b1h_1, this);
|
|
3637
3656
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3638
3657
|
return suspendResult;
|
|
3639
3658
|
}
|
|
@@ -3642,11 +3661,11 @@
|
|
|
3642
3661
|
|
|
3643
3662
|
case 2:
|
|
3644
3663
|
var tmp_5 = this;
|
|
3645
|
-
tmp_5.
|
|
3664
|
+
tmp_5.w1h_1 = Unit_instance;
|
|
3646
3665
|
this.j7_1 = 3;
|
|
3647
3666
|
continue $sm;
|
|
3648
3667
|
case 3:
|
|
3649
|
-
return _get_empty__hz710c(this.
|
|
3668
|
+
return _get_empty__hz710c(this.u1h_1);
|
|
3650
3669
|
case 4:
|
|
3651
3670
|
throw this.m7_1;
|
|
3652
3671
|
}
|
|
@@ -3663,9 +3682,9 @@
|
|
|
3663
3682
|
};
|
|
3664
3683
|
function $rememberCOROUTINE$(_this__u8e3s4, tc, error, resultContinuation) {
|
|
3665
3684
|
CoroutineImpl.call(this, resultContinuation);
|
|
3666
|
-
this.
|
|
3667
|
-
this.
|
|
3668
|
-
this.
|
|
3685
|
+
this.l1i_1 = _this__u8e3s4;
|
|
3686
|
+
this.m1i_1 = tc;
|
|
3687
|
+
this.n1i_1 = error;
|
|
3669
3688
|
}
|
|
3670
3689
|
protoOf($rememberCOROUTINE$).r7 = function () {
|
|
3671
3690
|
var suspendResult = this.l7_1;
|
|
@@ -3676,13 +3695,13 @@
|
|
|
3676
3695
|
case 0:
|
|
3677
3696
|
this.k7_1 = 4;
|
|
3678
3697
|
var tmp_0 = this;
|
|
3679
|
-
var tmp0_elvis_lhs = this.
|
|
3680
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? getKClassFromExpression(this.
|
|
3681
|
-
tmp_0.
|
|
3682
|
-
this.
|
|
3683
|
-
this.
|
|
3698
|
+
var tmp0_elvis_lhs = this.n1i_1.message;
|
|
3699
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? getKClassFromExpression(this.n1i_1).t8() : tmp0_elvis_lhs;
|
|
3700
|
+
tmp_0.p1i_1 = new TileFailure(this.l1i_1.d1h_1, this.m1i_1, tmp1_elvis_lhs == null ? 'error' : tmp1_elvis_lhs);
|
|
3701
|
+
this.r1i_1 = this.l1i_1.h1h_1;
|
|
3702
|
+
this.q1i_1 = null;
|
|
3684
3703
|
this.j7_1 = 1;
|
|
3685
|
-
suspendResult = this.
|
|
3704
|
+
suspendResult = this.r1i_1.qw(this.q1i_1, this);
|
|
3686
3705
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3687
3706
|
return suspendResult;
|
|
3688
3707
|
}
|
|
@@ -3692,28 +3711,28 @@
|
|
|
3692
3711
|
l$ret$1: do {
|
|
3693
3712
|
var tmp_1;
|
|
3694
3713
|
try {
|
|
3695
|
-
var tmp0 = this.
|
|
3696
|
-
var tmp2 = this.
|
|
3697
|
-
var value = new Entry(this.
|
|
3714
|
+
var tmp0 = this.l1i_1.i1h_1;
|
|
3715
|
+
var tmp2 = this.m1i_1;
|
|
3716
|
+
var value = new Entry(this.p1i_1, add(this.l1i_1.g1h_1(), this.l1i_1.f1h_1));
|
|
3698
3717
|
tmp0.v3(tmp2, value);
|
|
3699
3718
|
break l$ret$1;
|
|
3700
3719
|
} catch ($p) {
|
|
3701
3720
|
var tmp_2;
|
|
3702
3721
|
var t = $p;
|
|
3703
|
-
this.
|
|
3722
|
+
this.r1i_1.bw(this.q1i_1);
|
|
3704
3723
|
throw t;
|
|
3705
3724
|
}
|
|
3706
3725
|
}
|
|
3707
3726
|
while (false);
|
|
3708
|
-
this.
|
|
3727
|
+
this.r1i_1.bw(this.q1i_1);
|
|
3709
3728
|
var tmp2_safe_receiver = this.p7().w7(Key_instance);
|
|
3710
3729
|
if (tmp2_safe_receiver == null) {
|
|
3711
|
-
this.
|
|
3730
|
+
this.o1i_1 = null;
|
|
3712
3731
|
this.j7_1 = 3;
|
|
3713
3732
|
continue $sm;
|
|
3714
3733
|
} else {
|
|
3715
3734
|
this.j7_1 = 2;
|
|
3716
|
-
suspendResult = tmp2_safe_receiver.
|
|
3735
|
+
suspendResult = tmp2_safe_receiver.c1i(this.p1i_1, this);
|
|
3717
3736
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3718
3737
|
return suspendResult;
|
|
3719
3738
|
}
|
|
@@ -3722,11 +3741,11 @@
|
|
|
3722
3741
|
|
|
3723
3742
|
case 2:
|
|
3724
3743
|
var tmp_3 = this;
|
|
3725
|
-
tmp_3.
|
|
3744
|
+
tmp_3.o1i_1 = Unit_instance;
|
|
3726
3745
|
this.j7_1 = 3;
|
|
3727
3746
|
continue $sm;
|
|
3728
3747
|
case 3:
|
|
3729
|
-
return _get_empty__hz710c(this.
|
|
3748
|
+
return _get_empty__hz710c(this.l1i_1);
|
|
3730
3749
|
case 4:
|
|
3731
3750
|
throw this.m7_1;
|
|
3732
3751
|
}
|
|
@@ -3744,40 +3763,40 @@
|
|
|
3744
3763
|
function UnreadableTiles(urlTemplate, tileSize, retryAfterMs, now) {
|
|
3745
3764
|
Companion_getInstance_3();
|
|
3746
3765
|
retryAfterMs = retryAfterMs === VOID ? new Long(60000, 0) : retryAfterMs;
|
|
3747
|
-
now = now === VOID ? Companion_getInstance_3().
|
|
3748
|
-
this.
|
|
3749
|
-
this.
|
|
3750
|
-
this.
|
|
3751
|
-
this.
|
|
3752
|
-
this.
|
|
3753
|
-
this.
|
|
3766
|
+
now = now === VOID ? Companion_getInstance_3().l1h_1 : now;
|
|
3767
|
+
this.d1h_1 = urlTemplate;
|
|
3768
|
+
this.e1h_1 = tileSize;
|
|
3769
|
+
this.f1h_1 = retryAfterMs;
|
|
3770
|
+
this.g1h_1 = now;
|
|
3771
|
+
this.h1h_1 = Mutex();
|
|
3772
|
+
this.i1h_1 = HashMap_init_$Create$();
|
|
3754
3773
|
var tmp = this;
|
|
3755
|
-
tmp.
|
|
3774
|
+
tmp.j1h_1 = lazy(UnreadableTiles$empty$delegate$lambda(this));
|
|
3756
3775
|
}
|
|
3757
|
-
protoOf(UnreadableTiles).
|
|
3776
|
+
protoOf(UnreadableTiles).s1i = function (tc, $completion) {
|
|
3758
3777
|
var tmp = new $cachedCOROUTINE$(this, tc, $completion);
|
|
3759
3778
|
tmp.l7_1 = Unit_instance;
|
|
3760
3779
|
tmp.m7_1 = null;
|
|
3761
3780
|
return tmp.r7();
|
|
3762
3781
|
};
|
|
3763
|
-
protoOf(UnreadableTiles).
|
|
3782
|
+
protoOf(UnreadableTiles).t1i = function (tc, error, $completion) {
|
|
3764
3783
|
var tmp = new $rememberCOROUTINE$(this, tc, error, $completion);
|
|
3765
3784
|
tmp.l7_1 = Unit_instance;
|
|
3766
3785
|
tmp.m7_1 = null;
|
|
3767
3786
|
return tmp.r7();
|
|
3768
3787
|
};
|
|
3769
3788
|
function TileFailure(urlTemplate, tile, message) {
|
|
3770
|
-
this.
|
|
3771
|
-
this.
|
|
3772
|
-
this.
|
|
3789
|
+
this.u1i_1 = urlTemplate;
|
|
3790
|
+
this.v1i_1 = tile;
|
|
3791
|
+
this.w1i_1 = message;
|
|
3773
3792
|
}
|
|
3774
3793
|
protoOf(TileFailure).toString = function () {
|
|
3775
|
-
return 'TileFailure(urlTemplate=' + this.
|
|
3794
|
+
return 'TileFailure(urlTemplate=' + this.u1i_1 + ', tile=' + this.v1i_1.toString() + ', message=' + this.w1i_1 + ')';
|
|
3776
3795
|
};
|
|
3777
3796
|
protoOf(TileFailure).hashCode = function () {
|
|
3778
|
-
var result = getStringHashCode(this.
|
|
3779
|
-
result = imul(result, 31) + this.
|
|
3780
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3797
|
+
var result = getStringHashCode(this.u1i_1);
|
|
3798
|
+
result = imul(result, 31) + this.v1i_1.hashCode() | 0;
|
|
3799
|
+
result = imul(result, 31) + getStringHashCode(this.w1i_1) | 0;
|
|
3781
3800
|
return result;
|
|
3782
3801
|
};
|
|
3783
3802
|
protoOf(TileFailure).equals = function (other) {
|
|
@@ -3785,11 +3804,11 @@
|
|
|
3785
3804
|
return true;
|
|
3786
3805
|
if (!(other instanceof TileFailure))
|
|
3787
3806
|
return false;
|
|
3788
|
-
if (!(this.
|
|
3807
|
+
if (!(this.u1i_1 === other.u1i_1))
|
|
3789
3808
|
return false;
|
|
3790
|
-
if (!this.
|
|
3809
|
+
if (!this.v1i_1.equals(other.v1i_1))
|
|
3791
3810
|
return false;
|
|
3792
|
-
if (!(this.
|
|
3811
|
+
if (!(this.w1i_1 === other.w1i_1))
|
|
3793
3812
|
return false;
|
|
3794
3813
|
return true;
|
|
3795
3814
|
};
|
|
@@ -3801,8 +3820,8 @@
|
|
|
3801
3820
|
}
|
|
3802
3821
|
function $recordCOROUTINE$(_this__u8e3s4, failure, resultContinuation) {
|
|
3803
3822
|
CoroutineImpl.call(this, resultContinuation);
|
|
3804
|
-
this.
|
|
3805
|
-
this.
|
|
3823
|
+
this.f1j_1 = _this__u8e3s4;
|
|
3824
|
+
this.g1j_1 = failure;
|
|
3806
3825
|
}
|
|
3807
3826
|
protoOf($recordCOROUTINE$).r7 = function () {
|
|
3808
3827
|
var suspendResult = this.l7_1;
|
|
@@ -3812,10 +3831,10 @@
|
|
|
3812
3831
|
switch (tmp) {
|
|
3813
3832
|
case 0:
|
|
3814
3833
|
this.k7_1 = 2;
|
|
3815
|
-
this.
|
|
3816
|
-
this.
|
|
3834
|
+
this.i1j_1 = this.f1j_1.a1i_1;
|
|
3835
|
+
this.h1j_1 = null;
|
|
3817
3836
|
this.j7_1 = 1;
|
|
3818
|
-
suspendResult = this.
|
|
3837
|
+
suspendResult = this.i1j_1.qw(this.h1j_1, this);
|
|
3819
3838
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3820
3839
|
return suspendResult;
|
|
3821
3840
|
}
|
|
@@ -3825,12 +3844,12 @@
|
|
|
3825
3844
|
l$ret$1: do {
|
|
3826
3845
|
var tmp_0;
|
|
3827
3846
|
try {
|
|
3828
|
-
var tmp0 = this.
|
|
3829
|
-
var key = this.
|
|
3847
|
+
var tmp0 = this.f1j_1.b1i_1;
|
|
3848
|
+
var key = this.g1j_1.u1i_1 + '|' + this.g1j_1.v1i_1.toString();
|
|
3830
3849
|
var value = tmp0.t1(key);
|
|
3831
3850
|
var tmp_1;
|
|
3832
3851
|
if (value == null) {
|
|
3833
|
-
var answer = this.
|
|
3852
|
+
var answer = this.g1j_1;
|
|
3834
3853
|
tmp0.v3(key, answer);
|
|
3835
3854
|
tmp_1 = answer;
|
|
3836
3855
|
} else {
|
|
@@ -3840,12 +3859,12 @@
|
|
|
3840
3859
|
} catch ($p) {
|
|
3841
3860
|
var tmp_2;
|
|
3842
3861
|
var t = $p;
|
|
3843
|
-
this.
|
|
3862
|
+
this.i1j_1.bw(this.h1j_1);
|
|
3844
3863
|
throw t;
|
|
3845
3864
|
}
|
|
3846
3865
|
}
|
|
3847
3866
|
while (false);
|
|
3848
|
-
this.
|
|
3867
|
+
this.i1j_1.bw(this.h1j_1);
|
|
3849
3868
|
return Unit_instance;
|
|
3850
3869
|
case 2:
|
|
3851
3870
|
throw this.m7_1;
|
|
@@ -3863,17 +3882,17 @@
|
|
|
3863
3882
|
};
|
|
3864
3883
|
function TileFailureLog() {
|
|
3865
3884
|
AbstractCoroutineContextElement.call(this, Key_instance);
|
|
3866
|
-
this.
|
|
3867
|
-
this.
|
|
3885
|
+
this.a1i_1 = Mutex();
|
|
3886
|
+
this.b1i_1 = LinkedHashMap_init_$Create$();
|
|
3868
3887
|
}
|
|
3869
|
-
protoOf(TileFailureLog).
|
|
3888
|
+
protoOf(TileFailureLog).c1i = function (failure, $completion) {
|
|
3870
3889
|
var tmp = new $recordCOROUTINE$(this, failure, $completion);
|
|
3871
3890
|
tmp.l7_1 = Unit_instance;
|
|
3872
3891
|
tmp.m7_1 = null;
|
|
3873
3892
|
return tmp.r7();
|
|
3874
3893
|
};
|
|
3875
|
-
protoOf(TileFailureLog).
|
|
3876
|
-
return toList_0(this.
|
|
3894
|
+
protoOf(TileFailureLog).j1j = function () {
|
|
3895
|
+
return toList_0(this.b1i_1.v1());
|
|
3877
3896
|
};
|
|
3878
3897
|
function buildUrl($this, tc) {
|
|
3879
3898
|
// Inline function 'kotlin.let' call
|
|
@@ -3883,24 +3902,24 @@
|
|
|
3883
3902
|
function fetchAndDecodeTile$ref_0() {
|
|
3884
3903
|
KFunctionImpl.call(this, 1, 2, 2);
|
|
3885
3904
|
}
|
|
3886
|
-
protoOf(fetchAndDecodeTile$ref_0).
|
|
3905
|
+
protoOf(fetchAndDecodeTile$ref_0).a1a = function (p0, $completion) {
|
|
3887
3906
|
return fetchAndDecodeTile(p0, $completion);
|
|
3888
3907
|
};
|
|
3889
3908
|
protoOf(fetchAndDecodeTile$ref_0).z7 = function (p1, $completion) {
|
|
3890
|
-
return this.
|
|
3909
|
+
return this.a1a((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
3891
3910
|
};
|
|
3892
3911
|
function TileManager$cache$slambda(this$0, resultContinuation) {
|
|
3893
|
-
this.
|
|
3912
|
+
this.v1j_1 = this$0;
|
|
3894
3913
|
CoroutineImpl.call(this, resultContinuation);
|
|
3895
3914
|
}
|
|
3896
|
-
protoOf(TileManager$cache$slambda).
|
|
3897
|
-
var tmp = this.
|
|
3915
|
+
protoOf(TileManager$cache$slambda).x1j = function (tc, $completion) {
|
|
3916
|
+
var tmp = this.y1j(tc, $completion);
|
|
3898
3917
|
tmp.l7_1 = Unit_instance;
|
|
3899
3918
|
tmp.m7_1 = null;
|
|
3900
3919
|
return tmp.r7();
|
|
3901
3920
|
};
|
|
3902
3921
|
protoOf(TileManager$cache$slambda).z7 = function (p1, $completion) {
|
|
3903
|
-
return this.
|
|
3922
|
+
return this.x1j(p1 instanceof TileCoordinates ? p1 : THROW_CCE(), $completion);
|
|
3904
3923
|
};
|
|
3905
3924
|
protoOf(TileManager$cache$slambda).r7 = function () {
|
|
3906
3925
|
var suspendResult = this.l7_1;
|
|
@@ -3911,7 +3930,7 @@
|
|
|
3911
3930
|
case 0:
|
|
3912
3931
|
this.k7_1 = 2;
|
|
3913
3932
|
this.j7_1 = 1;
|
|
3914
|
-
suspendResult = this.
|
|
3933
|
+
suspendResult = this.v1j_1.y15_1(buildUrl(this.v1j_1, this.w1j_1), this);
|
|
3915
3934
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3916
3935
|
return suspendResult;
|
|
3917
3936
|
}
|
|
@@ -3934,21 +3953,21 @@
|
|
|
3934
3953
|
}
|
|
3935
3954
|
while (true);
|
|
3936
3955
|
};
|
|
3937
|
-
protoOf(TileManager$cache$slambda).
|
|
3938
|
-
var i = new TileManager$cache$slambda(this.
|
|
3939
|
-
i.
|
|
3956
|
+
protoOf(TileManager$cache$slambda).y1j = function (tc, completion) {
|
|
3957
|
+
var i = new TileManager$cache$slambda(this.v1j_1, completion);
|
|
3958
|
+
i.w1j_1 = tc;
|
|
3940
3959
|
return i;
|
|
3941
3960
|
};
|
|
3942
3961
|
function TileManager$cache$slambda_0(this$0, resultContinuation) {
|
|
3943
3962
|
var i = new TileManager$cache$slambda(this$0, resultContinuation);
|
|
3944
3963
|
return constructCallableReference(function (tc, $completion) {
|
|
3945
|
-
return i.
|
|
3964
|
+
return i.x1j(tc, $completion);
|
|
3946
3965
|
}, 1);
|
|
3947
3966
|
}
|
|
3948
3967
|
function $getTileCOROUTINE$(_this__u8e3s4, tileCoords, resultContinuation) {
|
|
3949
3968
|
CoroutineImpl.call(this, resultContinuation);
|
|
3950
|
-
this.
|
|
3951
|
-
this.
|
|
3969
|
+
this.h1k_1 = _this__u8e3s4;
|
|
3970
|
+
this.i1k_1 = tileCoords;
|
|
3952
3971
|
}
|
|
3953
3972
|
protoOf($getTileCOROUTINE$).r7 = function () {
|
|
3954
3973
|
var suspendResult = this.l7_1;
|
|
@@ -3958,16 +3977,16 @@
|
|
|
3958
3977
|
switch (tmp) {
|
|
3959
3978
|
case 0:
|
|
3960
3979
|
this.k7_1 = 8;
|
|
3961
|
-
var tmp0_elvis_lhs = this.
|
|
3980
|
+
var tmp0_elvis_lhs = this.h1k_1.z15_1;
|
|
3962
3981
|
if (tmp0_elvis_lhs == null) {
|
|
3963
3982
|
this.j7_1 = 1;
|
|
3964
|
-
suspendResult = this.
|
|
3983
|
+
suspendResult = this.h1k_1.a16_1.r1g(this.i1k_1, this);
|
|
3965
3984
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3966
3985
|
return suspendResult;
|
|
3967
3986
|
}
|
|
3968
3987
|
continue $sm;
|
|
3969
3988
|
} else {
|
|
3970
|
-
this.
|
|
3989
|
+
this.l1k_1 = tmp0_elvis_lhs;
|
|
3971
3990
|
this.j7_1 = 2;
|
|
3972
3991
|
continue $sm;
|
|
3973
3992
|
}
|
|
@@ -3976,9 +3995,9 @@
|
|
|
3976
3995
|
var tmp_0 = this;
|
|
3977
3996
|
return suspendResult;
|
|
3978
3997
|
case 2:
|
|
3979
|
-
this.
|
|
3998
|
+
this.k1k_1 = this.l1k_1;
|
|
3980
3999
|
this.j7_1 = 3;
|
|
3981
|
-
suspendResult = this.
|
|
4000
|
+
suspendResult = this.k1k_1.s1i(this.i1k_1, this);
|
|
3982
4001
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3983
4002
|
return suspendResult;
|
|
3984
4003
|
}
|
|
@@ -3994,14 +4013,14 @@
|
|
|
3994
4013
|
|
|
3995
4014
|
this.k7_1 = 5;
|
|
3996
4015
|
this.j7_1 = 4;
|
|
3997
|
-
suspendResult = this.
|
|
4016
|
+
suspendResult = this.h1k_1.a16_1.r1g(this.i1k_1, this);
|
|
3998
4017
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3999
4018
|
return suspendResult;
|
|
4000
4019
|
}
|
|
4001
4020
|
|
|
4002
4021
|
continue $sm;
|
|
4003
4022
|
case 4:
|
|
4004
|
-
this.
|
|
4023
|
+
this.j1k_1 = suspendResult;
|
|
4005
4024
|
this.k7_1 = 8;
|
|
4006
4025
|
this.j7_1 = 7;
|
|
4007
4026
|
continue $sm;
|
|
@@ -4018,7 +4037,7 @@
|
|
|
4018
4037
|
var e_0 = this.m7_1;
|
|
4019
4038
|
ensureActive(this.p7());
|
|
4020
4039
|
this.j7_1 = 6;
|
|
4021
|
-
suspendResult = this.
|
|
4040
|
+
suspendResult = this.k1k_1.t1i(this.i1k_1, e_0, this);
|
|
4022
4041
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4023
4042
|
return suspendResult;
|
|
4024
4043
|
}
|
|
@@ -4029,12 +4048,12 @@
|
|
|
4029
4048
|
}
|
|
4030
4049
|
|
|
4031
4050
|
case 6:
|
|
4032
|
-
this.
|
|
4051
|
+
this.j1k_1 = suspendResult;
|
|
4033
4052
|
this.j7_1 = 7;
|
|
4034
4053
|
continue $sm;
|
|
4035
4054
|
case 7:
|
|
4036
4055
|
this.k7_1 = 8;
|
|
4037
|
-
return this.
|
|
4056
|
+
return this.j1k_1;
|
|
4038
4057
|
case 8:
|
|
4039
4058
|
throw this.m7_1;
|
|
4040
4059
|
}
|
|
@@ -4106,13 +4125,13 @@
|
|
|
4106
4125
|
retryAfterSeconds = retryAfterSeconds === VOID ? null : retryAfterSeconds;
|
|
4107
4126
|
IllegalStateException_init_$Init$('Tile fetch failed for ' + url + ': HTTP ' + status, this);
|
|
4108
4127
|
captureStack(this, TileFetchException);
|
|
4109
|
-
this.
|
|
4110
|
-
this.
|
|
4111
|
-
this.
|
|
4128
|
+
this.m1k_1 = url;
|
|
4129
|
+
this.n1k_1 = status;
|
|
4130
|
+
this.o1k_1 = retryAfterSeconds;
|
|
4112
4131
|
}
|
|
4113
4132
|
function $awaitTurnCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
4114
4133
|
CoroutineImpl.call(this, resultContinuation);
|
|
4115
|
-
this.
|
|
4134
|
+
this.x1k_1 = _this__u8e3s4;
|
|
4116
4135
|
}
|
|
4117
4136
|
protoOf($awaitTurnCOROUTINE$).r7 = function () {
|
|
4118
4137
|
var suspendResult = this.l7_1;
|
|
@@ -4122,10 +4141,10 @@
|
|
|
4122
4141
|
switch (tmp) {
|
|
4123
4142
|
case 0:
|
|
4124
4143
|
this.k7_1 = 4;
|
|
4125
|
-
this.
|
|
4126
|
-
this.
|
|
4144
|
+
this.z1k_1 = this.x1k_1.c1l_1;
|
|
4145
|
+
this.y1k_1 = null;
|
|
4127
4146
|
this.j7_1 = 1;
|
|
4128
|
-
suspendResult = this.
|
|
4147
|
+
suspendResult = this.z1k_1.qw(this.y1k_1, this);
|
|
4129
4148
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4130
4149
|
return suspendResult;
|
|
4131
4150
|
}
|
|
@@ -4136,22 +4155,22 @@
|
|
|
4136
4155
|
l$ret$1: do {
|
|
4137
4156
|
var tmp_0;
|
|
4138
4157
|
try {
|
|
4139
|
-
var t = toNumber(this.
|
|
4140
|
-
var b = this.
|
|
4158
|
+
var t = toNumber(this.x1k_1.a1l_1());
|
|
4159
|
+
var b = this.x1k_1.d1l_1;
|
|
4141
4160
|
var slot = Math.max(t, b);
|
|
4142
|
-
this.
|
|
4161
|
+
this.x1k_1.d1l_1 = slot + this.x1k_1.b1l_1;
|
|
4143
4162
|
tmp$ret$0 = slot - t;
|
|
4144
4163
|
break l$ret$1;
|
|
4145
4164
|
} catch ($p) {
|
|
4146
4165
|
var tmp_1;
|
|
4147
4166
|
var t_0 = $p;
|
|
4148
|
-
this.
|
|
4167
|
+
this.z1k_1.bw(this.y1k_1);
|
|
4149
4168
|
throw t_0;
|
|
4150
4169
|
}
|
|
4151
4170
|
}
|
|
4152
4171
|
while (false);
|
|
4153
4172
|
var tmp_2 = tmp$ret$0;
|
|
4154
|
-
this.
|
|
4173
|
+
this.z1k_1.bw(this.y1k_1);
|
|
4155
4174
|
var waitMs = tmp_2;
|
|
4156
4175
|
if (waitMs > 0) {
|
|
4157
4176
|
this.j7_1 = 2;
|
|
@@ -4185,29 +4204,29 @@
|
|
|
4185
4204
|
while (true);
|
|
4186
4205
|
};
|
|
4187
4206
|
function RequestPacer(perSecond, now) {
|
|
4188
|
-
this.
|
|
4189
|
-
this.
|
|
4190
|
-
this.
|
|
4191
|
-
this.
|
|
4207
|
+
this.a1l_1 = now;
|
|
4208
|
+
this.b1l_1 = 1000.0 / perSecond;
|
|
4209
|
+
this.c1l_1 = Mutex();
|
|
4210
|
+
this.d1l_1 = -Infinity;
|
|
4192
4211
|
}
|
|
4193
|
-
protoOf(RequestPacer).
|
|
4212
|
+
protoOf(RequestPacer).e1l = function ($completion) {
|
|
4194
4213
|
var tmp = new $awaitTurnCOROUTINE$(this, $completion);
|
|
4195
4214
|
tmp.l7_1 = Unit_instance;
|
|
4196
4215
|
tmp.m7_1 = null;
|
|
4197
4216
|
return tmp.r7();
|
|
4198
4217
|
};
|
|
4199
4218
|
function Key_0(host, perSecond, clock) {
|
|
4200
|
-
this.
|
|
4201
|
-
this.
|
|
4202
|
-
this.
|
|
4219
|
+
this.f1l_1 = host;
|
|
4220
|
+
this.g1l_1 = perSecond;
|
|
4221
|
+
this.h1l_1 = clock;
|
|
4203
4222
|
}
|
|
4204
4223
|
protoOf(Key_0).toString = function () {
|
|
4205
|
-
return 'Key(host=' + this.
|
|
4224
|
+
return 'Key(host=' + this.f1l_1 + ', perSecond=' + this.g1l_1 + ', clock=' + toString(this.h1l_1) + ')';
|
|
4206
4225
|
};
|
|
4207
4226
|
protoOf(Key_0).hashCode = function () {
|
|
4208
|
-
var result = getStringHashCode(this.
|
|
4209
|
-
result = imul(result, 31) + this.
|
|
4210
|
-
result = imul(result, 31) + hashCode(this.
|
|
4227
|
+
var result = getStringHashCode(this.f1l_1);
|
|
4228
|
+
result = imul(result, 31) + this.g1l_1 | 0;
|
|
4229
|
+
result = imul(result, 31) + hashCode(this.h1l_1) | 0;
|
|
4211
4230
|
return result;
|
|
4212
4231
|
};
|
|
4213
4232
|
protoOf(Key_0).equals = function (other) {
|
|
@@ -4215,20 +4234,20 @@
|
|
|
4215
4234
|
return true;
|
|
4216
4235
|
if (!(other instanceof Key_0))
|
|
4217
4236
|
return false;
|
|
4218
|
-
if (!(this.
|
|
4237
|
+
if (!(this.f1l_1 === other.f1l_1))
|
|
4219
4238
|
return false;
|
|
4220
|
-
if (!(this.
|
|
4239
|
+
if (!(this.g1l_1 === other.g1l_1))
|
|
4221
4240
|
return false;
|
|
4222
|
-
if (!equals(this.
|
|
4241
|
+
if (!equals(this.h1l_1, other.h1l_1))
|
|
4223
4242
|
return false;
|
|
4224
4243
|
return true;
|
|
4225
4244
|
};
|
|
4226
4245
|
function $ofCOROUTINE$(_this__u8e3s4, host, perSecond, clock, resultContinuation) {
|
|
4227
4246
|
CoroutineImpl.call(this, resultContinuation);
|
|
4228
|
-
this.
|
|
4229
|
-
this.
|
|
4230
|
-
this.
|
|
4231
|
-
this.
|
|
4247
|
+
this.q1l_1 = _this__u8e3s4;
|
|
4248
|
+
this.r1l_1 = host;
|
|
4249
|
+
this.s1l_1 = perSecond;
|
|
4250
|
+
this.t1l_1 = clock;
|
|
4232
4251
|
}
|
|
4233
4252
|
protoOf($ofCOROUTINE$).r7 = function () {
|
|
4234
4253
|
var suspendResult = this.l7_1;
|
|
@@ -4238,10 +4257,10 @@
|
|
|
4238
4257
|
switch (tmp) {
|
|
4239
4258
|
case 0:
|
|
4240
4259
|
this.k7_1 = 2;
|
|
4241
|
-
this.
|
|
4242
|
-
this.
|
|
4260
|
+
this.v1l_1 = this.q1l_1.w1l_1;
|
|
4261
|
+
this.u1l_1 = null;
|
|
4243
4262
|
this.j7_1 = 1;
|
|
4244
|
-
suspendResult = this.
|
|
4263
|
+
suspendResult = this.v1l_1.qw(this.u1l_1, this);
|
|
4245
4264
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4246
4265
|
return suspendResult;
|
|
4247
4266
|
}
|
|
@@ -4252,12 +4271,12 @@
|
|
|
4252
4271
|
l$ret$1: do {
|
|
4253
4272
|
var tmp_0;
|
|
4254
4273
|
try {
|
|
4255
|
-
var tmp0 = HostPacers_getInstance().
|
|
4256
|
-
var key = new Key_0(this.
|
|
4274
|
+
var tmp0 = HostPacers_getInstance().x1l_1;
|
|
4275
|
+
var key = new Key_0(this.r1l_1, this.s1l_1, this.t1l_1);
|
|
4257
4276
|
var value = tmp0.t1(key);
|
|
4258
4277
|
var tmp_1;
|
|
4259
4278
|
if (value == null) {
|
|
4260
|
-
var answer = new RequestPacer(this.
|
|
4279
|
+
var answer = new RequestPacer(this.s1l_1, this.t1l_1);
|
|
4261
4280
|
tmp0.v3(key, answer);
|
|
4262
4281
|
tmp_1 = answer;
|
|
4263
4282
|
} else {
|
|
@@ -4268,13 +4287,13 @@
|
|
|
4268
4287
|
} catch ($p) {
|
|
4269
4288
|
var tmp_2;
|
|
4270
4289
|
var t = $p;
|
|
4271
|
-
this.
|
|
4290
|
+
this.v1l_1.bw(this.u1l_1);
|
|
4272
4291
|
throw t;
|
|
4273
4292
|
}
|
|
4274
4293
|
}
|
|
4275
4294
|
while (false);
|
|
4276
4295
|
var tmp_3 = tmp$ret$0;
|
|
4277
|
-
this.
|
|
4296
|
+
this.v1l_1.bw(this.u1l_1);
|
|
4278
4297
|
return tmp_3;
|
|
4279
4298
|
case 2:
|
|
4280
4299
|
throw this.m7_1;
|
|
@@ -4292,10 +4311,10 @@
|
|
|
4292
4311
|
};
|
|
4293
4312
|
function HostPacers() {
|
|
4294
4313
|
HostPacers_instance = this;
|
|
4295
|
-
this.
|
|
4296
|
-
this.
|
|
4314
|
+
this.w1l_1 = Mutex();
|
|
4315
|
+
this.x1l_1 = HashMap_init_$Create$();
|
|
4297
4316
|
}
|
|
4298
|
-
protoOf(HostPacers).
|
|
4317
|
+
protoOf(HostPacers).y1l = function (host, perSecond, clock, $completion) {
|
|
4299
4318
|
var tmp = new $ofCOROUTINE$(this, host, perSecond, clock, $completion);
|
|
4300
4319
|
tmp.l7_1 = Unit_instance;
|
|
4301
4320
|
tmp.m7_1 = null;
|
|
@@ -4319,27 +4338,27 @@
|
|
|
4319
4338
|
function fetchTileBytes$ref() {
|
|
4320
4339
|
KFunctionImpl.call(this, 1, 2, 5);
|
|
4321
4340
|
}
|
|
4322
|
-
protoOf(fetchTileBytes$ref).
|
|
4341
|
+
protoOf(fetchTileBytes$ref).c1m = function (p0, $completion) {
|
|
4323
4342
|
return fetchTileBytes(p0, $completion);
|
|
4324
4343
|
};
|
|
4325
4344
|
protoOf(fetchTileBytes$ref).z7 = function (p1, $completion) {
|
|
4326
|
-
return this.
|
|
4345
|
+
return this.c1m((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
4327
4346
|
};
|
|
4328
4347
|
function pacedTileBytesFetcher$slambda($maxRequestsPerSecond, $now, $fetch, $maxAttempts, resultContinuation) {
|
|
4329
|
-
this.
|
|
4330
|
-
this.
|
|
4331
|
-
this.
|
|
4332
|
-
this.
|
|
4348
|
+
this.l1m_1 = $maxRequestsPerSecond;
|
|
4349
|
+
this.m1m_1 = $now;
|
|
4350
|
+
this.n1m_1 = $fetch;
|
|
4351
|
+
this.o1m_1 = $maxAttempts;
|
|
4333
4352
|
CoroutineImpl.call(this, resultContinuation);
|
|
4334
4353
|
}
|
|
4335
|
-
protoOf(pacedTileBytesFetcher$slambda).
|
|
4336
|
-
var tmp = this.
|
|
4354
|
+
protoOf(pacedTileBytesFetcher$slambda).c1m = function (url, $completion) {
|
|
4355
|
+
var tmp = this.l1a(url, $completion);
|
|
4337
4356
|
tmp.l7_1 = Unit_instance;
|
|
4338
4357
|
tmp.m7_1 = null;
|
|
4339
4358
|
return tmp.r7();
|
|
4340
4359
|
};
|
|
4341
4360
|
protoOf(pacedTileBytesFetcher$slambda).z7 = function (p1, $completion) {
|
|
4342
|
-
return this.
|
|
4361
|
+
return this.c1m((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
4343
4362
|
};
|
|
4344
4363
|
protoOf(pacedTileBytesFetcher$slambda).r7 = function () {
|
|
4345
4364
|
var suspendResult = this.l7_1;
|
|
@@ -4349,43 +4368,43 @@
|
|
|
4349
4368
|
switch (tmp) {
|
|
4350
4369
|
case 0:
|
|
4351
4370
|
this.k7_1 = 11;
|
|
4352
|
-
if (this.
|
|
4371
|
+
if (this.l1m_1 > 0) {
|
|
4353
4372
|
this.j7_1 = 1;
|
|
4354
|
-
suspendResult = HostPacers_getInstance().
|
|
4373
|
+
suspendResult = HostPacers_getInstance().y1l(hostOf(this.p1m_1), this.l1m_1, this.m1m_1, this);
|
|
4355
4374
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4356
4375
|
return suspendResult;
|
|
4357
4376
|
}
|
|
4358
4377
|
continue $sm;
|
|
4359
4378
|
} else {
|
|
4360
|
-
this.
|
|
4379
|
+
this.v1m_1 = null;
|
|
4361
4380
|
this.j7_1 = 2;
|
|
4362
4381
|
continue $sm;
|
|
4363
4382
|
}
|
|
4364
4383
|
|
|
4365
4384
|
case 1:
|
|
4366
|
-
this.
|
|
4385
|
+
this.v1m_1 = suspendResult;
|
|
4367
4386
|
this.j7_1 = 2;
|
|
4368
4387
|
continue $sm;
|
|
4369
4388
|
case 2:
|
|
4370
|
-
this.
|
|
4371
|
-
this.
|
|
4372
|
-
this.
|
|
4389
|
+
this.u1m_1 = this.v1m_1;
|
|
4390
|
+
this.s1m_1 = 1;
|
|
4391
|
+
this.q1m_1 = null;
|
|
4373
4392
|
this.j7_1 = 3;
|
|
4374
4393
|
continue $sm;
|
|
4375
4394
|
case 3:
|
|
4376
|
-
if (!(this.
|
|
4395
|
+
if (!(this.q1m_1 == null)) {
|
|
4377
4396
|
this.j7_1 = 10;
|
|
4378
4397
|
continue $sm;
|
|
4379
4398
|
}
|
|
4380
4399
|
|
|
4381
|
-
var tmp0_safe_receiver = this.
|
|
4400
|
+
var tmp0_safe_receiver = this.u1m_1;
|
|
4382
4401
|
if (tmp0_safe_receiver == null) {
|
|
4383
|
-
this.
|
|
4402
|
+
this.t1m_1 = null;
|
|
4384
4403
|
this.j7_1 = 5;
|
|
4385
4404
|
continue $sm;
|
|
4386
4405
|
} else {
|
|
4387
4406
|
this.j7_1 = 4;
|
|
4388
|
-
suspendResult = tmp0_safe_receiver.
|
|
4407
|
+
suspendResult = tmp0_safe_receiver.e1l(this);
|
|
4389
4408
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4390
4409
|
return suspendResult;
|
|
4391
4410
|
}
|
|
@@ -4394,13 +4413,13 @@
|
|
|
4394
4413
|
|
|
4395
4414
|
case 4:
|
|
4396
4415
|
var tmp_0 = this;
|
|
4397
|
-
tmp_0.
|
|
4416
|
+
tmp_0.t1m_1 = Unit_instance;
|
|
4398
4417
|
this.j7_1 = 5;
|
|
4399
4418
|
continue $sm;
|
|
4400
4419
|
case 5:
|
|
4401
4420
|
this.k7_1 = 7;
|
|
4402
4421
|
this.j7_1 = 6;
|
|
4403
|
-
suspendResult = this.
|
|
4422
|
+
suspendResult = this.n1m_1(this.p1m_1, this);
|
|
4404
4423
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4405
4424
|
return suspendResult;
|
|
4406
4425
|
}
|
|
@@ -4408,8 +4427,8 @@
|
|
|
4408
4427
|
continue $sm;
|
|
4409
4428
|
case 6:
|
|
4410
4429
|
var tmp_1 = this;
|
|
4411
|
-
this.
|
|
4412
|
-
tmp_1.
|
|
4430
|
+
this.q1m_1 = suspendResult;
|
|
4431
|
+
tmp_1.r1m_1 = Unit_instance;
|
|
4413
4432
|
this.k7_1 = 11;
|
|
4414
4433
|
this.j7_1 = 9;
|
|
4415
4434
|
continue $sm;
|
|
@@ -4418,11 +4437,11 @@
|
|
|
4418
4437
|
var tmp_2 = this.m7_1;
|
|
4419
4438
|
if (tmp_2 instanceof TileFetchException) {
|
|
4420
4439
|
var e = this.m7_1;
|
|
4421
|
-
if (!(e.
|
|
4440
|
+
if (!(e.n1k_1 === 429) && !(e.n1k_1 === 503) || this.s1m_1 >= this.o1m_1)
|
|
4422
4441
|
throw e;
|
|
4423
4442
|
this.j7_1 = 8;
|
|
4424
|
-
var tmp1_elvis_lhs = e.
|
|
4425
|
-
suspendResult = delay(multiply(tmp1_elvis_lhs == null ? shiftLeft(new Long(1, 0), this.
|
|
4443
|
+
var tmp1_elvis_lhs = e.o1k_1;
|
|
4444
|
+
suspendResult = delay(multiply(tmp1_elvis_lhs == null ? shiftLeft(new Long(1, 0), this.s1m_1 - 1 | 0) : tmp1_elvis_lhs, new Long(1000, 0)), this);
|
|
4426
4445
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4427
4446
|
return suspendResult;
|
|
4428
4447
|
}
|
|
@@ -4433,9 +4452,9 @@
|
|
|
4433
4452
|
|
|
4434
4453
|
case 8:
|
|
4435
4454
|
var tmp_3 = this;
|
|
4436
|
-
var _unary__edvuaz = this.
|
|
4437
|
-
this.
|
|
4438
|
-
tmp_3.
|
|
4455
|
+
var _unary__edvuaz = this.s1m_1;
|
|
4456
|
+
this.s1m_1 = _unary__edvuaz + 1 | 0;
|
|
4457
|
+
tmp_3.r1m_1 = _unary__edvuaz;
|
|
4439
4458
|
this.j7_1 = 9;
|
|
4440
4459
|
continue $sm;
|
|
4441
4460
|
case 9:
|
|
@@ -4443,7 +4462,7 @@
|
|
|
4443
4462
|
this.j7_1 = 3;
|
|
4444
4463
|
continue $sm;
|
|
4445
4464
|
case 10:
|
|
4446
|
-
return this.
|
|
4465
|
+
return this.q1m_1;
|
|
4447
4466
|
case 11:
|
|
4448
4467
|
throw this.m7_1;
|
|
4449
4468
|
}
|
|
@@ -4458,15 +4477,15 @@
|
|
|
4458
4477
|
}
|
|
4459
4478
|
while (true);
|
|
4460
4479
|
};
|
|
4461
|
-
protoOf(pacedTileBytesFetcher$slambda).
|
|
4462
|
-
var i = new pacedTileBytesFetcher$slambda(this.
|
|
4463
|
-
i.
|
|
4480
|
+
protoOf(pacedTileBytesFetcher$slambda).l1a = function (url, completion) {
|
|
4481
|
+
var i = new pacedTileBytesFetcher$slambda(this.l1m_1, this.m1m_1, this.n1m_1, this.o1m_1, completion);
|
|
4482
|
+
i.p1m_1 = url;
|
|
4464
4483
|
return i;
|
|
4465
4484
|
};
|
|
4466
4485
|
function pacedTileBytesFetcher$slambda_0($maxRequestsPerSecond, $now, $fetch, $maxAttempts, resultContinuation) {
|
|
4467
4486
|
var i = new pacedTileBytesFetcher$slambda($maxRequestsPerSecond, $now, $fetch, $maxAttempts, resultContinuation);
|
|
4468
4487
|
return constructCallableReference(function (url, $completion) {
|
|
4469
|
-
return i.
|
|
4488
|
+
return i.c1m(url, $completion);
|
|
4470
4489
|
}, 1);
|
|
4471
4490
|
}
|
|
4472
4491
|
var properties_initialized_TileRequestPacing_kt_zdwibl;
|
|
@@ -4479,7 +4498,7 @@
|
|
|
4479
4498
|
function tileCoordinatesOf(url, config) {
|
|
4480
4499
|
var names = ArrayList_init_$Create$();
|
|
4481
4500
|
var pattern = StringBuilder_init_$Create$();
|
|
4482
|
-
var rest = config.
|
|
4501
|
+
var rest = config.c19_1;
|
|
4483
4502
|
var placeholder = Regex_init_$Create$('\\{(z|x|y|bbox)\\}');
|
|
4484
4503
|
$l$loop: while (true) {
|
|
4485
4504
|
var tmp0_elvis_lhs = placeholder.ta(rest);
|
|
@@ -4501,7 +4520,7 @@
|
|
|
4501
4520
|
var tmp1_elvis_lhs = Regex_init_$Create$(pattern.toString()).ua(url);
|
|
4502
4521
|
var tmp_0;
|
|
4503
4522
|
if (tmp1_elvis_lhs == null) {
|
|
4504
|
-
throw IllegalArgumentException_init_$Create$('Tile URL ' + url + ' does not match the template ' + config.
|
|
4523
|
+
throw IllegalArgumentException_init_$Create$('Tile URL ' + url + ' does not match the template ' + config.c19_1);
|
|
4505
4524
|
} else {
|
|
4506
4525
|
tmp_0 = tmp1_elvis_lhs;
|
|
4507
4526
|
}
|
|
@@ -4509,7 +4528,7 @@
|
|
|
4509
4528
|
var values = toMap(zip(names, drop(match.kb(), 1)));
|
|
4510
4529
|
var tmp2_safe_receiver = values.t1('z');
|
|
4511
4530
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : toInt(tmp2_safe_receiver);
|
|
4512
|
-
var z = tmp3_elvis_lhs == null ? config.
|
|
4531
|
+
var z = tmp3_elvis_lhs == null ? config.a19_1 : tmp3_elvis_lhs;
|
|
4513
4532
|
var bbox = values.t1('bbox');
|
|
4514
4533
|
if (bbox == null)
|
|
4515
4534
|
return new TileCoordinates(toInt(getValue(values, 'x')), toInt(getValue(values, 'y')), z);
|
|
@@ -4657,7 +4676,7 @@
|
|
|
4657
4676
|
};
|
|
4658
4677
|
function Companion_3() {
|
|
4659
4678
|
Companion_instance_4 = this;
|
|
4660
|
-
this.
|
|
4679
|
+
this.w1m_1 = new Vector3D(0.0, 0.0, 0.0);
|
|
4661
4680
|
}
|
|
4662
4681
|
var Companion_instance_4;
|
|
4663
4682
|
function Companion_getInstance_4() {
|
|
@@ -4671,7 +4690,7 @@
|
|
|
4671
4690
|
this.y12_1 = y;
|
|
4672
4691
|
this.z12_1 = z;
|
|
4673
4692
|
}
|
|
4674
|
-
protoOf(Vector3D).
|
|
4693
|
+
protoOf(Vector3D).x1m = function (other) {
|
|
4675
4694
|
var tmp0 = this.x12_1 - other.x12_1;
|
|
4676
4695
|
// Inline function 'kotlin.math.hypot' call
|
|
4677
4696
|
var y = this.y12_1 - other.y12_1;
|
|
@@ -4680,28 +4699,28 @@
|
|
|
4680
4699
|
var y_0 = this.z12_1 - other.z12_1;
|
|
4681
4700
|
return hypot(tmp0_0, y_0);
|
|
4682
4701
|
};
|
|
4683
|
-
protoOf(Vector3D).
|
|
4702
|
+
protoOf(Vector3D).y1m = function (other) {
|
|
4684
4703
|
return new Vector3D(this.x12_1 - other.x12_1, this.y12_1 - other.y12_1, this.z12_1 - other.z12_1);
|
|
4685
4704
|
};
|
|
4686
|
-
protoOf(Vector3D).
|
|
4705
|
+
protoOf(Vector3D).z1m = function (other) {
|
|
4687
4706
|
return new Vector3D(this.x12_1 + other.x12_1, this.y12_1 + other.y12_1, this.z12_1 + other.z12_1);
|
|
4688
4707
|
};
|
|
4689
|
-
protoOf(Vector3D).
|
|
4708
|
+
protoOf(Vector3D).a1n = function (scalar) {
|
|
4690
4709
|
return new Vector3D(this.x12_1 * scalar, this.y12_1 * scalar, this.z12_1 * scalar);
|
|
4691
4710
|
};
|
|
4692
|
-
protoOf(Vector3D).
|
|
4711
|
+
protoOf(Vector3D).b1n = function (other) {
|
|
4693
4712
|
return this.x12_1 * other.x12_1 + this.y12_1 * other.y12_1 + this.z12_1 * other.z12_1;
|
|
4694
4713
|
};
|
|
4695
4714
|
protoOf(Vector3D).a13 = function (segmentStart, segmentEnd) {
|
|
4696
|
-
var segmentVector = segmentEnd.
|
|
4697
|
-
var segmentLengthSq = segmentVector.
|
|
4715
|
+
var segmentVector = segmentEnd.y1m(segmentStart);
|
|
4716
|
+
var segmentLengthSq = segmentVector.b1n(segmentVector);
|
|
4698
4717
|
if (segmentLengthSq === 0.0)
|
|
4699
|
-
return this.
|
|
4700
|
-
var pointVector = this.
|
|
4701
|
-
var projection = pointVector.
|
|
4718
|
+
return this.x1m(segmentStart);
|
|
4719
|
+
var pointVector = this.y1m(segmentStart);
|
|
4720
|
+
var projection = pointVector.b1n(segmentVector) / segmentLengthSq;
|
|
4702
4721
|
var clamped = coerceIn_0(projection, 0.0, 1.0);
|
|
4703
|
-
var closest = segmentStart.
|
|
4704
|
-
return this.
|
|
4722
|
+
var closest = segmentStart.z1m(segmentVector.a1n(clamped));
|
|
4723
|
+
return this.x1m(closest);
|
|
4705
4724
|
};
|
|
4706
4725
|
protoOf(Vector3D).toString = function () {
|
|
4707
4726
|
return 'Vector3D(x=' + this.x12_1 + ', y=' + this.y12_1 + ', z=' + this.z12_1 + ')';
|
|
@@ -4758,25 +4777,25 @@
|
|
|
4758
4777
|
tmp = null;
|
|
4759
4778
|
} else {
|
|
4760
4779
|
// Inline function 'kotlin.let' call
|
|
4761
|
-
tmp = Companion_getInstance_0().
|
|
4780
|
+
tmp = Companion_getInstance_0().i1b(tmp2_safe_receiver);
|
|
4762
4781
|
}
|
|
4763
4782
|
var tmp3_elvis_lhs = tmp;
|
|
4764
|
-
var source = tmp3_elvis_lhs == null ? Companion_getInstance_0().
|
|
4765
|
-
var base = source.
|
|
4783
|
+
var source = tmp3_elvis_lhs == null ? Companion_getInstance_0().c1b_1 : tmp3_elvis_lhs;
|
|
4784
|
+
var base = source.o1b(configDto == null ? null : configDto.zoomLevel);
|
|
4766
4785
|
var tmp6_elvis_lhs = configDto == null ? null : configDto.cacheSize;
|
|
4767
|
-
var tmp_0 = tmp6_elvis_lhs == null ? base.
|
|
4786
|
+
var tmp_0 = tmp6_elvis_lhs == null ? base.b19_1 : tmp6_elvis_lhs;
|
|
4768
4787
|
var tmp8_elvis_lhs = configDto == null ? null : configDto.tileUrlTemplate;
|
|
4769
|
-
var tmp_1 = tmp8_elvis_lhs == null ? base.
|
|
4788
|
+
var tmp_1 = tmp8_elvis_lhs == null ? base.c19_1 : tmp8_elvis_lhs;
|
|
4770
4789
|
var tmp10_elvis_lhs = configDto == null ? null : configDto.tileSize;
|
|
4771
|
-
var cfg = base.
|
|
4790
|
+
var cfg = base.y1a(VOID, tmp_0, tmp_1, tmp10_elvis_lhs == null ? base.d19_1 : tmp10_elvis_lhs);
|
|
4772
4791
|
var primary = ElevationProvider_init_$Create$(cfg);
|
|
4773
|
-
var tmp11_safe_receiver = source.
|
|
4792
|
+
var tmp11_safe_receiver = source.j1b();
|
|
4774
4793
|
var tmp_2;
|
|
4775
4794
|
if (tmp11_safe_receiver == null) {
|
|
4776
4795
|
tmp_2 = null;
|
|
4777
4796
|
} else {
|
|
4778
4797
|
// Inline function 'kotlin.let' call
|
|
4779
|
-
tmp_2 = primary.
|
|
4798
|
+
tmp_2 = primary.p19(provider(tmp11_safe_receiver));
|
|
4780
4799
|
}
|
|
4781
4800
|
var tmp12_elvis_lhs = tmp_2;
|
|
4782
4801
|
return tmp12_elvis_lhs == null ? primary : tmp12_elvis_lhs;
|
|
@@ -4784,8 +4803,8 @@
|
|
|
4784
4803
|
function elevationAttribution(provider) {
|
|
4785
4804
|
_init_properties_ElevationJsApi_kt__1yyas4();
|
|
4786
4805
|
var o = {};
|
|
4787
|
-
o.text = provider.
|
|
4788
|
-
o.url = provider.
|
|
4806
|
+
o.text = provider.r19().z1a_1;
|
|
4807
|
+
o.url = provider.r19().a1b_1;
|
|
4789
4808
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
4790
4809
|
return o;
|
|
4791
4810
|
}
|
|
@@ -4858,20 +4877,20 @@
|
|
|
4858
4877
|
return o;
|
|
4859
4878
|
}
|
|
4860
4879
|
function getElevation$slambda($provider, $latitude, $longitude, $interpolation, resultContinuation) {
|
|
4861
|
-
this.
|
|
4862
|
-
this.
|
|
4863
|
-
this.
|
|
4864
|
-
this.
|
|
4880
|
+
this.k1n_1 = $provider;
|
|
4881
|
+
this.l1n_1 = $latitude;
|
|
4882
|
+
this.m1n_1 = $longitude;
|
|
4883
|
+
this.n1n_1 = $interpolation;
|
|
4865
4884
|
CoroutineImpl.call(this, resultContinuation);
|
|
4866
4885
|
}
|
|
4867
|
-
protoOf(getElevation$slambda).
|
|
4868
|
-
var tmp = this.
|
|
4886
|
+
protoOf(getElevation$slambda).p1n = function ($this$promise, $completion) {
|
|
4887
|
+
var tmp = this.e1c($this$promise, $completion);
|
|
4869
4888
|
tmp.l7_1 = Unit_instance;
|
|
4870
4889
|
tmp.m7_1 = null;
|
|
4871
4890
|
return tmp.r7();
|
|
4872
4891
|
};
|
|
4873
4892
|
protoOf(getElevation$slambda).z7 = function (p1, $completion) {
|
|
4874
|
-
return this.
|
|
4893
|
+
return this.p1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
4875
4894
|
};
|
|
4876
4895
|
protoOf(getElevation$slambda).r7 = function () {
|
|
4877
4896
|
var suspendResult = this.l7_1;
|
|
@@ -4882,7 +4901,7 @@
|
|
|
4882
4901
|
case 0:
|
|
4883
4902
|
this.k7_1 = 2;
|
|
4884
4903
|
this.j7_1 = 1;
|
|
4885
|
-
suspendResult = this.
|
|
4904
|
+
suspendResult = this.k1n_1.d18(this.l1n_1, this.m1n_1, this.n1n_1, this);
|
|
4886
4905
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4887
4906
|
return suspendResult;
|
|
4888
4907
|
}
|
|
@@ -4904,31 +4923,31 @@
|
|
|
4904
4923
|
}
|
|
4905
4924
|
while (true);
|
|
4906
4925
|
};
|
|
4907
|
-
protoOf(getElevation$slambda).
|
|
4908
|
-
var i = new getElevation$slambda(this.
|
|
4909
|
-
i.
|
|
4926
|
+
protoOf(getElevation$slambda).e1c = function ($this$promise, completion) {
|
|
4927
|
+
var i = new getElevation$slambda(this.k1n_1, this.l1n_1, this.m1n_1, this.n1n_1, completion);
|
|
4928
|
+
i.o1n_1 = $this$promise;
|
|
4910
4929
|
return i;
|
|
4911
4930
|
};
|
|
4912
4931
|
function getElevation$slambda_0($provider, $latitude, $longitude, $interpolation, resultContinuation) {
|
|
4913
4932
|
var i = new getElevation$slambda($provider, $latitude, $longitude, $interpolation, resultContinuation);
|
|
4914
4933
|
return constructCallableReference(function ($this$promise, $completion) {
|
|
4915
|
-
return i.
|
|
4934
|
+
return i.p1n($this$promise, $completion);
|
|
4916
4935
|
}, 1);
|
|
4917
4936
|
}
|
|
4918
4937
|
function getElevationsAlong$slambda($path, $provider, $options, resultContinuation) {
|
|
4919
|
-
this.
|
|
4920
|
-
this.
|
|
4921
|
-
this.
|
|
4938
|
+
this.y1n_1 = $path;
|
|
4939
|
+
this.z1n_1 = $provider;
|
|
4940
|
+
this.a1o_1 = $options;
|
|
4922
4941
|
CoroutineImpl.call(this, resultContinuation);
|
|
4923
4942
|
}
|
|
4924
|
-
protoOf(getElevationsAlong$slambda).
|
|
4925
|
-
var tmp = this.
|
|
4943
|
+
protoOf(getElevationsAlong$slambda).c1o = function ($this$promise, $completion) {
|
|
4944
|
+
var tmp = this.e1c($this$promise, $completion);
|
|
4926
4945
|
tmp.l7_1 = Unit_instance;
|
|
4927
4946
|
tmp.m7_1 = null;
|
|
4928
4947
|
return tmp.r7();
|
|
4929
4948
|
};
|
|
4930
4949
|
protoOf(getElevationsAlong$slambda).z7 = function (p1, $completion) {
|
|
4931
|
-
return this.
|
|
4950
|
+
return this.c1o((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
4932
4951
|
};
|
|
4933
4952
|
protoOf(getElevationsAlong$slambda).r7 = function () {
|
|
4934
4953
|
var suspendResult = this.l7_1;
|
|
@@ -4938,7 +4957,7 @@
|
|
|
4938
4957
|
switch (tmp) {
|
|
4939
4958
|
case 0:
|
|
4940
4959
|
this.k7_1 = 2;
|
|
4941
|
-
var this_0 = this.
|
|
4960
|
+
var this_0 = this.y1n_1;
|
|
4942
4961
|
var destination = ArrayList_init_$Create$_0(this_0.length);
|
|
4943
4962
|
var inductionVariable = 0;
|
|
4944
4963
|
var last = this_0.length;
|
|
@@ -4950,21 +4969,21 @@
|
|
|
4950
4969
|
|
|
4951
4970
|
var coords = destination;
|
|
4952
4971
|
this.j7_1 = 1;
|
|
4953
|
-
var tmp0_safe_receiver = this.
|
|
4972
|
+
var tmp0_safe_receiver = this.a1o_1;
|
|
4954
4973
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.step;
|
|
4955
4974
|
var tmp_0 = tmp1_elvis_lhs == null ? 10.0 : tmp1_elvis_lhs;
|
|
4956
|
-
var tmp2_safe_receiver = this.
|
|
4975
|
+
var tmp2_safe_receiver = this.a1o_1;
|
|
4957
4976
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.minDistance;
|
|
4958
4977
|
var tmp_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
|
|
4959
|
-
var tmp4_safe_receiver = this.
|
|
4978
|
+
var tmp4_safe_receiver = this.a1o_1;
|
|
4960
4979
|
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.interpolation;
|
|
4961
4980
|
var tmp_2 = tmp5_elvis_lhs == null ? true : tmp5_elvis_lhs;
|
|
4962
|
-
var tmp6_safe_receiver = this.
|
|
4981
|
+
var tmp6_safe_receiver = this.a1o_1;
|
|
4963
4982
|
var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.smoothingOptions;
|
|
4964
4983
|
var tmp_3 = tmp7_safe_receiver == null ? null : toKotlin(tmp7_safe_receiver);
|
|
4965
|
-
var tmp8_safe_receiver = this.
|
|
4984
|
+
var tmp8_safe_receiver = this.a1o_1;
|
|
4966
4985
|
var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.filterOptions;
|
|
4967
|
-
suspendResult = this.
|
|
4986
|
+
suspendResult = this.z1n_1.w19(coords, tmp_0, tmp_1, tmp_2, tmp_3, tmp9_safe_receiver == null ? null : toKotlin_0(tmp9_safe_receiver), this);
|
|
4968
4987
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4969
4988
|
return suspendResult;
|
|
4970
4989
|
}
|
|
@@ -4997,15 +5016,15 @@
|
|
|
4997
5016
|
}
|
|
4998
5017
|
while (true);
|
|
4999
5018
|
};
|
|
5000
|
-
protoOf(getElevationsAlong$slambda).
|
|
5001
|
-
var i = new getElevationsAlong$slambda(this.
|
|
5002
|
-
i.
|
|
5019
|
+
protoOf(getElevationsAlong$slambda).e1c = function ($this$promise, completion) {
|
|
5020
|
+
var i = new getElevationsAlong$slambda(this.y1n_1, this.z1n_1, this.a1o_1, completion);
|
|
5021
|
+
i.b1o_1 = $this$promise;
|
|
5003
5022
|
return i;
|
|
5004
5023
|
};
|
|
5005
5024
|
function getElevationsAlong$slambda_0($path, $provider, $options, resultContinuation) {
|
|
5006
5025
|
var i = new getElevationsAlong$slambda($path, $provider, $options, resultContinuation);
|
|
5007
5026
|
return constructCallableReference(function ($this$promise, $completion) {
|
|
5008
|
-
return i.
|
|
5027
|
+
return i.c1o($this$promise, $completion);
|
|
5009
5028
|
}, 1);
|
|
5010
5029
|
}
|
|
5011
5030
|
var properties_initialized_ElevationJsApi_kt_8pvyh6;
|
|
@@ -5159,7 +5178,7 @@
|
|
|
5159
5178
|
}
|
|
5160
5179
|
function $fetchAndDecodeTileCOROUTINE$(url, resultContinuation) {
|
|
5161
5180
|
CoroutineImpl.call(this, resultContinuation);
|
|
5162
|
-
this.
|
|
5181
|
+
this.l1o_1 = url;
|
|
5163
5182
|
}
|
|
5164
5183
|
protoOf($fetchAndDecodeTileCOROUTINE$).r7 = function () {
|
|
5165
5184
|
var suspendResult = this.l7_1;
|
|
@@ -5171,14 +5190,14 @@
|
|
|
5171
5190
|
this.k7_1 = 4;
|
|
5172
5191
|
if (get_isNode()) {
|
|
5173
5192
|
this.j7_1 = 2;
|
|
5174
|
-
suspendResult = decodeNode(this.
|
|
5193
|
+
suspendResult = decodeNode(this.l1o_1, this);
|
|
5175
5194
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5176
5195
|
return suspendResult;
|
|
5177
5196
|
}
|
|
5178
5197
|
continue $sm;
|
|
5179
5198
|
} else {
|
|
5180
5199
|
this.j7_1 = 1;
|
|
5181
|
-
suspendResult = decodeBrowser(this.
|
|
5200
|
+
suspendResult = decodeBrowser(this.l1o_1, this);
|
|
5182
5201
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5183
5202
|
return suspendResult;
|
|
5184
5203
|
}
|
|
@@ -5186,15 +5205,15 @@
|
|
|
5186
5205
|
}
|
|
5187
5206
|
|
|
5188
5207
|
case 1:
|
|
5189
|
-
this.
|
|
5208
|
+
this.m1o_1 = suspendResult;
|
|
5190
5209
|
this.j7_1 = 3;
|
|
5191
5210
|
continue $sm;
|
|
5192
5211
|
case 2:
|
|
5193
|
-
this.
|
|
5212
|
+
this.m1o_1 = suspendResult;
|
|
5194
5213
|
this.j7_1 = 3;
|
|
5195
5214
|
continue $sm;
|
|
5196
5215
|
case 3:
|
|
5197
|
-
return this.
|
|
5216
|
+
return this.m1o_1;
|
|
5198
5217
|
case 4:
|
|
5199
5218
|
throw this.m7_1;
|
|
5200
5219
|
}
|
|
@@ -5211,8 +5230,8 @@
|
|
|
5211
5230
|
};
|
|
5212
5231
|
function $decodeTileBytesCOROUTINE$(bytes, sourceUrl, resultContinuation) {
|
|
5213
5232
|
CoroutineImpl.call(this, resultContinuation);
|
|
5214
|
-
this.
|
|
5215
|
-
this.
|
|
5233
|
+
this.v1o_1 = bytes;
|
|
5234
|
+
this.w1o_1 = sourceUrl;
|
|
5216
5235
|
}
|
|
5217
5236
|
protoOf($decodeTileBytesCOROUTINE$).r7 = function () {
|
|
5218
5237
|
var suspendResult = this.l7_1;
|
|
@@ -5224,14 +5243,14 @@
|
|
|
5224
5243
|
this.k7_1 = 4;
|
|
5225
5244
|
if (get_isNode()) {
|
|
5226
5245
|
this.j7_1 = 2;
|
|
5227
|
-
suspendResult = decodeBytesNode(this.
|
|
5246
|
+
suspendResult = decodeBytesNode(this.v1o_1, this.w1o_1, this);
|
|
5228
5247
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5229
5248
|
return suspendResult;
|
|
5230
5249
|
}
|
|
5231
5250
|
continue $sm;
|
|
5232
5251
|
} else {
|
|
5233
5252
|
this.j7_1 = 1;
|
|
5234
|
-
suspendResult = decodeBlob(blobOf(this.
|
|
5253
|
+
suspendResult = decodeBlob(blobOf(this.v1o_1), this.w1o_1, this);
|
|
5235
5254
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5236
5255
|
return suspendResult;
|
|
5237
5256
|
}
|
|
@@ -5239,15 +5258,15 @@
|
|
|
5239
5258
|
}
|
|
5240
5259
|
|
|
5241
5260
|
case 1:
|
|
5242
|
-
this.
|
|
5261
|
+
this.x1o_1 = suspendResult;
|
|
5243
5262
|
this.j7_1 = 3;
|
|
5244
5263
|
continue $sm;
|
|
5245
5264
|
case 2:
|
|
5246
|
-
this.
|
|
5265
|
+
this.x1o_1 = suspendResult;
|
|
5247
5266
|
this.j7_1 = 3;
|
|
5248
5267
|
continue $sm;
|
|
5249
5268
|
case 3:
|
|
5250
|
-
return this.
|
|
5269
|
+
return this.x1o_1;
|
|
5251
5270
|
case 4:
|
|
5252
5271
|
throw this.m7_1;
|
|
5253
5272
|
}
|
|
@@ -5264,7 +5283,7 @@
|
|
|
5264
5283
|
};
|
|
5265
5284
|
function $decodeNodeCOROUTINE$(url, resultContinuation) {
|
|
5266
5285
|
CoroutineImpl.call(this, resultContinuation);
|
|
5267
|
-
this.
|
|
5286
|
+
this.g1p_1 = url;
|
|
5268
5287
|
}
|
|
5269
5288
|
protoOf($decodeNodeCOROUTINE$).r7 = function () {
|
|
5270
5289
|
var suspendResult = this.l7_1;
|
|
@@ -5275,7 +5294,7 @@
|
|
|
5275
5294
|
case 0:
|
|
5276
5295
|
this.k7_1 = 4;
|
|
5277
5296
|
this.j7_1 = 1;
|
|
5278
|
-
suspendResult = await_0(fetchUrlNode(this.
|
|
5297
|
+
suspendResult = await_0(fetchUrlNode(this.g1p_1), this);
|
|
5279
5298
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5280
5299
|
return suspendResult;
|
|
5281
5300
|
}
|
|
@@ -5283,7 +5302,7 @@
|
|
|
5283
5302
|
continue $sm;
|
|
5284
5303
|
case 1:
|
|
5285
5304
|
var res = suspendResult;
|
|
5286
|
-
requireOk(res, this.
|
|
5305
|
+
requireOk(res, this.g1p_1);
|
|
5287
5306
|
this.j7_1 = 2;
|
|
5288
5307
|
suspendResult = await_0(responseArrayBuffer(res), this);
|
|
5289
5308
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -5319,7 +5338,7 @@
|
|
|
5319
5338
|
};
|
|
5320
5339
|
function $decodeBrowserCOROUTINE$(url, resultContinuation) {
|
|
5321
5340
|
CoroutineImpl.call(this, resultContinuation);
|
|
5322
|
-
this.
|
|
5341
|
+
this.p1p_1 = url;
|
|
5323
5342
|
}
|
|
5324
5343
|
protoOf($decodeBrowserCOROUTINE$).r7 = function () {
|
|
5325
5344
|
var suspendResult = this.l7_1;
|
|
@@ -5330,7 +5349,7 @@
|
|
|
5330
5349
|
case 0:
|
|
5331
5350
|
this.k7_1 = 4;
|
|
5332
5351
|
this.j7_1 = 1;
|
|
5333
|
-
suspendResult = await_0(fetchUrlBrowser(this.
|
|
5352
|
+
suspendResult = await_0(fetchUrlBrowser(this.p1p_1), this);
|
|
5334
5353
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5335
5354
|
return suspendResult;
|
|
5336
5355
|
}
|
|
@@ -5338,7 +5357,7 @@
|
|
|
5338
5357
|
continue $sm;
|
|
5339
5358
|
case 1:
|
|
5340
5359
|
var res = suspendResult;
|
|
5341
|
-
requireOk(res, this.
|
|
5360
|
+
requireOk(res, this.p1p_1);
|
|
5342
5361
|
this.j7_1 = 2;
|
|
5343
5362
|
suspendResult = await_0(res.blob(), this);
|
|
5344
5363
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -5349,7 +5368,7 @@
|
|
|
5349
5368
|
case 2:
|
|
5350
5369
|
var ARGUMENT = suspendResult;
|
|
5351
5370
|
this.j7_1 = 3;
|
|
5352
|
-
suspendResult = decodeBlob(ARGUMENT, this.
|
|
5371
|
+
suspendResult = decodeBlob(ARGUMENT, this.p1p_1, this);
|
|
5353
5372
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5354
5373
|
return suspendResult;
|
|
5355
5374
|
}
|
|
@@ -5373,8 +5392,8 @@
|
|
|
5373
5392
|
};
|
|
5374
5393
|
function $decodeBytesNodeCOROUTINE$(bytes, sourceUrl, resultContinuation) {
|
|
5375
5394
|
CoroutineImpl.call(this, resultContinuation);
|
|
5376
|
-
this.
|
|
5377
|
-
this.
|
|
5395
|
+
this.y1p_1 = bytes;
|
|
5396
|
+
this.z1p_1 = sourceUrl;
|
|
5378
5397
|
}
|
|
5379
5398
|
protoOf($decodeBytesNodeCOROUTINE$).r7 = function () {
|
|
5380
5399
|
var suspendResult = this.l7_1;
|
|
@@ -5384,7 +5403,7 @@
|
|
|
5384
5403
|
switch (tmp) {
|
|
5385
5404
|
case 0:
|
|
5386
5405
|
this.k7_1 = 4;
|
|
5387
|
-
var view = this.
|
|
5406
|
+
var view = this.y1p_1;
|
|
5388
5407
|
var buffer = view.buffer.slice(view.byteOffset, view.byteOffset + view.byteLength);
|
|
5389
5408
|
this.k7_1 = 2;
|
|
5390
5409
|
this.j7_1 = 1;
|
|
@@ -5395,7 +5414,7 @@
|
|
|
5395
5414
|
|
|
5396
5415
|
continue $sm;
|
|
5397
5416
|
case 1:
|
|
5398
|
-
this.
|
|
5417
|
+
this.a1q_1 = suspendResult;
|
|
5399
5418
|
this.k7_1 = 4;
|
|
5400
5419
|
this.j7_1 = 3;
|
|
5401
5420
|
continue $sm;
|
|
@@ -5405,7 +5424,7 @@
|
|
|
5405
5424
|
if (tmp_0 instanceof Error) {
|
|
5406
5425
|
var e = this.m7_1;
|
|
5407
5426
|
var tmp_1 = this;
|
|
5408
|
-
var this_0 = this.
|
|
5427
|
+
var this_0 = this.z1p_1;
|
|
5409
5428
|
var tmp_2;
|
|
5410
5429
|
if (charSequenceLength(this_0) === 0) {
|
|
5411
5430
|
tmp_2 = '<unnamed bytes>';
|
|
@@ -5420,7 +5439,7 @@
|
|
|
5420
5439
|
|
|
5421
5440
|
case 3:
|
|
5422
5441
|
this.k7_1 = 4;
|
|
5423
|
-
var image = this.
|
|
5442
|
+
var image = this.a1q_1;
|
|
5424
5443
|
return rawTileFromJsquash(image);
|
|
5425
5444
|
case 4:
|
|
5426
5445
|
throw this.m7_1;
|
|
@@ -5438,8 +5457,8 @@
|
|
|
5438
5457
|
};
|
|
5439
5458
|
function $decodeBlobCOROUTINE$(blob, sourceUrl, resultContinuation) {
|
|
5440
5459
|
CoroutineImpl.call(this, resultContinuation);
|
|
5441
|
-
this.
|
|
5442
|
-
this.
|
|
5460
|
+
this.j1q_1 = blob;
|
|
5461
|
+
this.k1q_1 = sourceUrl;
|
|
5443
5462
|
}
|
|
5444
5463
|
protoOf($decodeBlobCOROUTINE$).r7 = function () {
|
|
5445
5464
|
var suspendResult = this.l7_1;
|
|
@@ -5451,14 +5470,14 @@
|
|
|
5451
5470
|
this.k7_1 = 3;
|
|
5452
5471
|
this.k7_1 = 2;
|
|
5453
5472
|
this.j7_1 = 1;
|
|
5454
|
-
suspendResult = await_0(window.createImageBitmap(this.
|
|
5473
|
+
suspendResult = await_0(window.createImageBitmap(this.j1q_1), this);
|
|
5455
5474
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5456
5475
|
return suspendResult;
|
|
5457
5476
|
}
|
|
5458
5477
|
|
|
5459
5478
|
continue $sm;
|
|
5460
5479
|
case 1:
|
|
5461
|
-
this.
|
|
5480
|
+
this.l1q_1 = suspendResult;
|
|
5462
5481
|
this.k7_1 = 3;
|
|
5463
5482
|
this.j7_1 = 4;
|
|
5464
5483
|
continue $sm;
|
|
@@ -5468,7 +5487,7 @@
|
|
|
5468
5487
|
if (tmp_0 instanceof Error) {
|
|
5469
5488
|
var e = this.m7_1;
|
|
5470
5489
|
var tmp_1 = this;
|
|
5471
|
-
var this_0 = this.
|
|
5490
|
+
var this_0 = this.k1q_1;
|
|
5472
5491
|
var tmp_2;
|
|
5473
5492
|
if (charSequenceLength(this_0) === 0) {
|
|
5474
5493
|
tmp_2 = '<unnamed bytes>';
|
|
@@ -5485,7 +5504,7 @@
|
|
|
5485
5504
|
throw this.m7_1;
|
|
5486
5505
|
case 4:
|
|
5487
5506
|
this.k7_1 = 3;
|
|
5488
|
-
var bitmap = this.
|
|
5507
|
+
var bitmap = this.l1q_1;
|
|
5489
5508
|
l$ret$3: do {
|
|
5490
5509
|
var tmp$ret$0;
|
|
5491
5510
|
l$ret$1: do {
|
|
@@ -5533,7 +5552,7 @@
|
|
|
5533
5552
|
};
|
|
5534
5553
|
function $decodeWebpNodeCOROUTINE$(buffer, resultContinuation) {
|
|
5535
5554
|
CoroutineImpl.call(this, resultContinuation);
|
|
5536
|
-
this.
|
|
5555
|
+
this.u1q_1 = buffer;
|
|
5537
5556
|
}
|
|
5538
5557
|
protoOf($decodeWebpNodeCOROUTINE$).r7 = function () {
|
|
5539
5558
|
var suspendResult = this.l7_1;
|
|
@@ -5552,7 +5571,7 @@
|
|
|
5552
5571
|
continue $sm;
|
|
5553
5572
|
case 1:
|
|
5554
5573
|
var decode = suspendResult;
|
|
5555
|
-
var resultPromise = decode(this.
|
|
5574
|
+
var resultPromise = decode(this.u1q_1);
|
|
5556
5575
|
this.j7_1 = 2;
|
|
5557
5576
|
suspendResult = await_0(resultPromise, this);
|
|
5558
5577
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -5578,7 +5597,7 @@
|
|
|
5578
5597
|
};
|
|
5579
5598
|
function $fetchTileBytesCOROUTINE$(url, resultContinuation) {
|
|
5580
5599
|
CoroutineImpl.call(this, resultContinuation);
|
|
5581
|
-
this.
|
|
5600
|
+
this.d1r_1 = url;
|
|
5582
5601
|
}
|
|
5583
5602
|
protoOf($fetchTileBytesCOROUTINE$).r7 = function () {
|
|
5584
5603
|
var suspendResult = this.l7_1;
|
|
@@ -5590,14 +5609,14 @@
|
|
|
5590
5609
|
this.k7_1 = 5;
|
|
5591
5610
|
if (get_isNode()) {
|
|
5592
5611
|
this.j7_1 = 2;
|
|
5593
|
-
suspendResult = await_0(fetchUrlNode(this.
|
|
5612
|
+
suspendResult = await_0(fetchUrlNode(this.d1r_1), this);
|
|
5594
5613
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5595
5614
|
return suspendResult;
|
|
5596
5615
|
}
|
|
5597
5616
|
continue $sm;
|
|
5598
5617
|
} else {
|
|
5599
5618
|
this.j7_1 = 1;
|
|
5600
|
-
suspendResult = await_0(fetchUrlBrowser(this.
|
|
5619
|
+
suspendResult = await_0(fetchUrlBrowser(this.d1r_1), this);
|
|
5601
5620
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5602
5621
|
return suspendResult;
|
|
5603
5622
|
}
|
|
@@ -5605,16 +5624,16 @@
|
|
|
5605
5624
|
}
|
|
5606
5625
|
|
|
5607
5626
|
case 1:
|
|
5608
|
-
this.
|
|
5627
|
+
this.e1r_1 = suspendResult;
|
|
5609
5628
|
this.j7_1 = 3;
|
|
5610
5629
|
continue $sm;
|
|
5611
5630
|
case 2:
|
|
5612
|
-
this.
|
|
5631
|
+
this.e1r_1 = suspendResult;
|
|
5613
5632
|
this.j7_1 = 3;
|
|
5614
5633
|
continue $sm;
|
|
5615
5634
|
case 3:
|
|
5616
|
-
var res = this.
|
|
5617
|
-
requireOk(res, this.
|
|
5635
|
+
var res = this.e1r_1;
|
|
5636
|
+
requireOk(res, this.d1r_1);
|
|
5618
5637
|
this.j7_1 = 4;
|
|
5619
5638
|
suspendResult = await_0(responseArrayBuffer(res), this);
|
|
5620
5639
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -5651,13 +5670,13 @@
|
|
|
5651
5670
|
function fetchAndDecodeTile$ref_1() {
|
|
5652
5671
|
var i = new fetchAndDecodeTile$ref();
|
|
5653
5672
|
return constructCallableReference(function (p0, $completion) {
|
|
5654
|
-
return i.
|
|
5673
|
+
return i.a1a(p0, $completion);
|
|
5655
5674
|
}, 1, 1, 2, 'fetchAndDecodeTile');
|
|
5656
5675
|
}
|
|
5657
5676
|
function fetchTileBytes$ref_0() {
|
|
5658
5677
|
var i = new fetchTileBytes$ref();
|
|
5659
5678
|
return constructCallableReference(function (p0, $completion) {
|
|
5660
|
-
return i.
|
|
5679
|
+
return i.c1m(p0, $completion);
|
|
5661
5680
|
}, 1, 1, 5, 'fetchTileBytes');
|
|
5662
5681
|
}
|
|
5663
5682
|
//region block: init
|