@glandais/vcyclist-engine 6.8.0 → 6.9.1
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 +3706 -3706
- package/index.d.ts +3 -2
- package/kotlin-kotlin-stdlib.js +7 -7
- package/kotlinx-coroutines-core.js +2 -2
- package/package.json +1 -1
- package/vcyclist-elevation.js +675 -691
- package/vcyclist-elevation.js.map +1 -1
- package/vcyclist-engine.js +1467 -1467
- package/vcyclist-engine.js.map +1 -1
- package/vcyclist-fit.js +177 -177
- package/vcyclist-gpx.js +1129 -1129
- package/xmlutil-core.js +2373 -2373
package/vcyclist-elevation.js
CHANGED
|
@@ -1236,7 +1236,7 @@
|
|
|
1236
1236
|
var tile = suspendResult;
|
|
1237
1237
|
if (!(this.k14_1 == null) && tile.f16_1)
|
|
1238
1238
|
this.k14_1.d13_1 = true;
|
|
1239
|
-
return tile.
|
|
1239
|
+
return tile.g16(this.j14_1);
|
|
1240
1240
|
case 2:
|
|
1241
1241
|
throw this.m7_1;
|
|
1242
1242
|
}
|
|
@@ -1278,16 +1278,16 @@
|
|
|
1278
1278
|
this.i11_1 = 0;
|
|
1279
1279
|
this.j11_1 = 15;
|
|
1280
1280
|
}
|
|
1281
|
-
protoOf(ElevationFunctions).
|
|
1281
|
+
protoOf(ElevationFunctions).h16 = function (degrees) {
|
|
1282
1282
|
return degrees * 0.017453292519943295;
|
|
1283
1283
|
};
|
|
1284
|
-
protoOf(ElevationFunctions).
|
|
1284
|
+
protoOf(ElevationFunctions).i16 = function (lat) {
|
|
1285
1285
|
return lat >= -85.0511 && lat <= 85.0511;
|
|
1286
1286
|
};
|
|
1287
|
-
protoOf(ElevationFunctions).
|
|
1287
|
+
protoOf(ElevationFunctions).j16 = function (lon) {
|
|
1288
1288
|
return -180.0 <= lon ? lon <= 180.0 : false;
|
|
1289
1289
|
};
|
|
1290
|
-
protoOf(ElevationFunctions).
|
|
1290
|
+
protoOf(ElevationFunctions).k16 = function (zoom) {
|
|
1291
1291
|
return 0 <= zoom ? zoom <= 15 : false;
|
|
1292
1292
|
};
|
|
1293
1293
|
protoOf(ElevationFunctions).t15 = function (pixel, tileSize) {
|
|
@@ -1329,23 +1329,23 @@
|
|
|
1329
1329
|
}
|
|
1330
1330
|
return new Pixel(new TileCoordinates(tileX, tileY, z), x, y);
|
|
1331
1331
|
};
|
|
1332
|
-
protoOf(ElevationFunctions).
|
|
1332
|
+
protoOf(ElevationFunctions).l16 = function (coords, z) {
|
|
1333
1333
|
// Inline function 'kotlin.require' call
|
|
1334
|
-
if (!this.
|
|
1334
|
+
if (!this.i16(coords.xz())) {
|
|
1335
1335
|
var message = 'Invalid latitude: ' + formatNumber_0(ElevationFunctions_instance, coords.xz()) + '. Must be between -85.0511 and 85.0511';
|
|
1336
1336
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1337
1337
|
}
|
|
1338
1338
|
// Inline function 'kotlin.require' call
|
|
1339
|
-
if (!this.
|
|
1339
|
+
if (!this.j16(coords.yz())) {
|
|
1340
1340
|
var message_0 = 'Invalid longitude: ' + formatNumber_0(ElevationFunctions_instance, coords.yz()) + '. Must be between -180 and 180';
|
|
1341
1341
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1342
1342
|
}
|
|
1343
1343
|
// Inline function 'kotlin.require' call
|
|
1344
|
-
if (!this.
|
|
1344
|
+
if (!this.k16(z)) {
|
|
1345
1345
|
var message_1 = 'Invalid zoom level: ' + z + '. Must be between 0 and 15';
|
|
1346
1346
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1347
1347
|
}
|
|
1348
|
-
var lat = this.
|
|
1348
|
+
var lat = this.h16(coords.xz());
|
|
1349
1349
|
var n = 1 << z;
|
|
1350
1350
|
var xFloat = (coords.yz() + 180.0) / 360.0 * n;
|
|
1351
1351
|
// Inline function 'kotlin.math.tan' call
|
|
@@ -1364,26 +1364,26 @@
|
|
|
1364
1364
|
return new TileCoordinatesFloat(x_0, y, xFloat, yFloat, z);
|
|
1365
1365
|
};
|
|
1366
1366
|
protoOf(ElevationFunctions).k11 = function (coords, z) {
|
|
1367
|
-
var tile = this.
|
|
1368
|
-
return new TileCoordinates(tile.
|
|
1367
|
+
var tile = this.l16(coords, z);
|
|
1368
|
+
return new TileCoordinates(tile.m16_1, tile.n16_1, tile.q16_1);
|
|
1369
1369
|
};
|
|
1370
1370
|
protoOf(ElevationFunctions).o15 = function (coords, z, tileSize) {
|
|
1371
|
-
var tile = this.
|
|
1371
|
+
var tile = this.l16(coords, z);
|
|
1372
1372
|
// Inline function 'kotlin.math.floor' call
|
|
1373
|
-
var x = (tile.
|
|
1373
|
+
var x = (tile.o16_1 - tile.m16_1) * tileSize;
|
|
1374
1374
|
var tmp$ret$0 = Math.floor(x);
|
|
1375
1375
|
var px = coerceIn_1(numberToInt(tmp$ret$0), 0, tileSize - 1 | 0);
|
|
1376
1376
|
// Inline function 'kotlin.math.floor' call
|
|
1377
|
-
var x_0 = (tile.
|
|
1377
|
+
var x_0 = (tile.p16_1 - tile.n16_1) * tileSize;
|
|
1378
1378
|
var tmp$ret$1 = Math.floor(x_0);
|
|
1379
1379
|
var py = coerceIn_1(numberToInt(tmp$ret$1), 0, tileSize - 1 | 0);
|
|
1380
|
-
return new Pixel(new TileCoordinates(tile.
|
|
1380
|
+
return new Pixel(new TileCoordinates(tile.m16_1, tile.n16_1, z), px, py);
|
|
1381
1381
|
};
|
|
1382
1382
|
protoOf(ElevationFunctions).p15 = function (coords, z, tileSize) {
|
|
1383
|
-
var tile = this.
|
|
1384
|
-
var px = (tile.
|
|
1385
|
-
var py = (tile.
|
|
1386
|
-
return new PixelFloat(new TileCoordinates(tile.
|
|
1383
|
+
var tile = this.l16(coords, z);
|
|
1384
|
+
var px = (tile.o16_1 - tile.m16_1) * tileSize;
|
|
1385
|
+
var py = (tile.p16_1 - tile.n16_1) * tileSize;
|
|
1386
|
+
return new PixelFloat(new TileCoordinates(tile.m16_1, tile.n16_1, z), px, py);
|
|
1387
1387
|
};
|
|
1388
1388
|
var ElevationFunctions_instance;
|
|
1389
1389
|
function ElevationFunctions_getInstance() {
|
|
@@ -1412,18 +1412,18 @@
|
|
|
1412
1412
|
return tmp.r7();
|
|
1413
1413
|
}
|
|
1414
1414
|
function ElevationProvider$calculator$slambda(this$0, resultContinuation) {
|
|
1415
|
-
this.
|
|
1415
|
+
this.m17_1 = this$0;
|
|
1416
1416
|
CoroutineImpl.call(this, resultContinuation);
|
|
1417
1417
|
}
|
|
1418
|
-
protoOf(ElevationProvider$calculator$slambda).
|
|
1419
|
-
var tmp = this.
|
|
1418
|
+
protoOf(ElevationProvider$calculator$slambda).p17 = function (coords, interpolation, $completion) {
|
|
1419
|
+
var tmp = this.q17(coords, interpolation, $completion);
|
|
1420
1420
|
tmp.l7_1 = Unit_instance;
|
|
1421
1421
|
tmp.m7_1 = null;
|
|
1422
1422
|
return tmp.r7();
|
|
1423
1423
|
};
|
|
1424
|
-
protoOf(ElevationProvider$calculator$slambda).
|
|
1424
|
+
protoOf(ElevationProvider$calculator$slambda).r17 = function (p1, p2, $completion) {
|
|
1425
1425
|
var tmp = (!(p1 == null) ? isInterface(p1, Coordinates) : false) ? p1 : THROW_CCE();
|
|
1426
|
-
return this.
|
|
1426
|
+
return this.p17(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion);
|
|
1427
1427
|
};
|
|
1428
1428
|
protoOf(ElevationProvider$calculator$slambda).r7 = function () {
|
|
1429
1429
|
var suspendResult = this.l7_1;
|
|
@@ -1434,7 +1434,7 @@
|
|
|
1434
1434
|
case 0:
|
|
1435
1435
|
this.k7_1 = 2;
|
|
1436
1436
|
this.j7_1 = 1;
|
|
1437
|
-
suspendResult = this.
|
|
1437
|
+
suspendResult = this.m17_1.u17_1.b18(this.n17_1.xz(), this.n17_1.yz(), this.o17_1, this);
|
|
1438
1438
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1439
1439
|
return suspendResult;
|
|
1440
1440
|
}
|
|
@@ -1456,30 +1456,30 @@
|
|
|
1456
1456
|
}
|
|
1457
1457
|
while (true);
|
|
1458
1458
|
};
|
|
1459
|
-
protoOf(ElevationProvider$calculator$slambda).
|
|
1460
|
-
var i = new ElevationProvider$calculator$slambda(this.
|
|
1461
|
-
i.
|
|
1462
|
-
i.
|
|
1459
|
+
protoOf(ElevationProvider$calculator$slambda).q17 = function (coords, interpolation, completion) {
|
|
1460
|
+
var i = new ElevationProvider$calculator$slambda(this.m17_1, completion);
|
|
1461
|
+
i.n17_1 = coords;
|
|
1462
|
+
i.o17_1 = interpolation;
|
|
1463
1463
|
return i;
|
|
1464
1464
|
};
|
|
1465
1465
|
function ElevationProvider$calculator$slambda_0(this$0, resultContinuation) {
|
|
1466
1466
|
var i = new ElevationProvider$calculator$slambda(this$0, resultContinuation);
|
|
1467
1467
|
return constructCallableReference(function (coords, interpolation, $completion) {
|
|
1468
|
-
return i.
|
|
1468
|
+
return i.p17(coords, interpolation, $completion);
|
|
1469
1469
|
}, 2);
|
|
1470
1470
|
}
|
|
1471
1471
|
function ElevationProvider$calculator$slambda_1(resultContinuation) {
|
|
1472
1472
|
CoroutineImpl.call(this, resultContinuation);
|
|
1473
1473
|
}
|
|
1474
|
-
protoOf(ElevationProvider$calculator$slambda_1).
|
|
1475
|
-
var tmp = this.
|
|
1474
|
+
protoOf(ElevationProvider$calculator$slambda_1).p17 = function (_unused_var__etf5q3, _unused_var__etf5q3_0, $completion) {
|
|
1475
|
+
var tmp = this.q17(_unused_var__etf5q3, _unused_var__etf5q3_0, $completion);
|
|
1476
1476
|
tmp.l7_1 = Unit_instance;
|
|
1477
1477
|
tmp.m7_1 = null;
|
|
1478
1478
|
return tmp.r7();
|
|
1479
1479
|
};
|
|
1480
|
-
protoOf(ElevationProvider$calculator$slambda_1).
|
|
1480
|
+
protoOf(ElevationProvider$calculator$slambda_1).r17 = function (p1, p2, $completion) {
|
|
1481
1481
|
var tmp = (!(p1 == null) ? isInterface(p1, Coordinates) : false) ? p1 : THROW_CCE();
|
|
1482
|
-
return this.
|
|
1482
|
+
return this.p17(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion);
|
|
1483
1483
|
};
|
|
1484
1484
|
protoOf(ElevationProvider$calculator$slambda_1).r7 = function () {
|
|
1485
1485
|
var suspendResult = this.l7_1;
|
|
@@ -1498,31 +1498,31 @@
|
|
|
1498
1498
|
}
|
|
1499
1499
|
while (true);
|
|
1500
1500
|
};
|
|
1501
|
-
protoOf(ElevationProvider$calculator$slambda_1).
|
|
1501
|
+
protoOf(ElevationProvider$calculator$slambda_1).q17 = 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.k18_1 = _unused_var__etf5q3;
|
|
1504
|
+
i.l18_1 = _unused_var__etf5q3_0;
|
|
1505
1505
|
return i;
|
|
1506
1506
|
};
|
|
1507
1507
|
function ElevationProvider$calculator$slambda_2(resultContinuation) {
|
|
1508
1508
|
var i = new ElevationProvider$calculator$slambda_1(resultContinuation);
|
|
1509
1509
|
return constructCallableReference(function (_unused_var__etf5q3, _unused_var__etf5q3_0, $completion) {
|
|
1510
|
-
return i.
|
|
1510
|
+
return i.p17(_unused_var__etf5q3, _unused_var__etf5q3_0, $completion);
|
|
1511
1511
|
}, 2);
|
|
1512
1512
|
}
|
|
1513
1513
|
function ElevationProvider$setElevationsWithOrigin$slambda(this$0, $interpolation, resultContinuation) {
|
|
1514
|
-
this.
|
|
1515
|
-
this.
|
|
1514
|
+
this.u18_1 = this$0;
|
|
1515
|
+
this.v18_1 = $interpolation;
|
|
1516
1516
|
CoroutineImpl.call(this, resultContinuation);
|
|
1517
1517
|
}
|
|
1518
|
-
protoOf(ElevationProvider$setElevationsWithOrigin$slambda).
|
|
1518
|
+
protoOf(ElevationProvider$setElevationsWithOrigin$slambda).x18 = 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.x18((!(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.u18_1, this.w18_1, this.v18_1, this);
|
|
1537
1537
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1538
1538
|
return suspendResult;
|
|
1539
1539
|
}
|
|
@@ -1556,21 +1556,21 @@
|
|
|
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.u18_1, this.v18_1, completion);
|
|
1560
|
+
i.w18_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.x18(it, $completion);
|
|
1567
1567
|
}, 1);
|
|
1568
1568
|
}
|
|
1569
1569
|
function $sampleCOROUTINE$(_this__u8e3s4, coords, interpolation, resultContinuation) {
|
|
1570
1570
|
CoroutineImpl.call(this, resultContinuation);
|
|
1571
|
-
this.
|
|
1572
|
-
this.
|
|
1573
|
-
this.
|
|
1571
|
+
this.z16_1 = _this__u8e3s4;
|
|
1572
|
+
this.a17_1 = coords;
|
|
1573
|
+
this.b17_1 = interpolation;
|
|
1574
1574
|
}
|
|
1575
1575
|
protoOf($sampleCOROUTINE$).r7 = function () {
|
|
1576
1576
|
var suspendResult = this.l7_1;
|
|
@@ -1580,9 +1580,9 @@
|
|
|
1580
1580
|
switch (tmp) {
|
|
1581
1581
|
case 0:
|
|
1582
1582
|
this.k7_1 = 4;
|
|
1583
|
-
this.
|
|
1583
|
+
this.c17_1 = new UnreadableFlag();
|
|
1584
1584
|
this.j7_1 = 1;
|
|
1585
|
-
suspendResult = this.
|
|
1585
|
+
suspendResult = this.z16_1.z17_1.y14(this.a17_1, this.z16_1.s17_1.y18_1, this.b17_1, this.c17_1, this);
|
|
1586
1586
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1587
1587
|
return suspendResult;
|
|
1588
1588
|
}
|
|
@@ -1591,18 +1591,18 @@
|
|
|
1591
1591
|
case 1:
|
|
1592
1592
|
var own = suspendResult;
|
|
1593
1593
|
if (!isNaN_0(own)) {
|
|
1594
|
-
var origin = Companion_getInstance_1().
|
|
1595
|
-
return new TerrainSample(this.
|
|
1594
|
+
var origin = Companion_getInstance_1().g19(this.z16_1.s17_1, this.z16_1.x17_1, this.a17_1.xz(), this.a17_1.yz());
|
|
1595
|
+
return new TerrainSample(this.a17_1.xz(), this.a17_1.yz(), own, origin, false);
|
|
1596
1596
|
}
|
|
1597
1597
|
|
|
1598
|
-
var tmp0_safe_receiver = this.
|
|
1598
|
+
var tmp0_safe_receiver = this.z16_1.u17_1;
|
|
1599
1599
|
if (tmp0_safe_receiver == null) {
|
|
1600
|
-
this.
|
|
1600
|
+
this.d17_1 = null;
|
|
1601
1601
|
this.j7_1 = 3;
|
|
1602
1602
|
continue $sm;
|
|
1603
1603
|
} else {
|
|
1604
1604
|
this.j7_1 = 2;
|
|
1605
|
-
suspendResult = sample(tmp0_safe_receiver, this.
|
|
1605
|
+
suspendResult = sample(tmp0_safe_receiver, this.a17_1, this.b17_1, this);
|
|
1606
1606
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1607
1607
|
return suspendResult;
|
|
1608
1608
|
}
|
|
@@ -1610,14 +1610,14 @@
|
|
|
1610
1610
|
}
|
|
1611
1611
|
|
|
1612
1612
|
case 2:
|
|
1613
|
-
this.
|
|
1613
|
+
this.d17_1 = suspendResult;
|
|
1614
1614
|
this.j7_1 = 3;
|
|
1615
1615
|
continue $sm;
|
|
1616
1616
|
case 3:
|
|
1617
|
-
var next = this.
|
|
1617
|
+
var next = this.d17_1;
|
|
1618
1618
|
if (!(next == null))
|
|
1619
|
-
return this.
|
|
1620
|
-
return new TerrainSample(this.
|
|
1619
|
+
return this.c17_1.d13_1 ? next.m19(VOID, VOID, VOID, VOID, true) : next;
|
|
1620
|
+
return new TerrainSample(this.a17_1.xz(), this.a17_1.yz(), this.z16_1.v17_1 ? NaN : 0.0, TerrainOrigin_NONE_getInstance(), this.c17_1.d13_1);
|
|
1621
1621
|
case 4:
|
|
1622
1622
|
throw this.m7_1;
|
|
1623
1623
|
}
|
|
@@ -1633,101 +1633,101 @@
|
|
|
1633
1633
|
while (true);
|
|
1634
1634
|
};
|
|
1635
1635
|
function ElevationProvider(config, fetcher, fallback, keepNoData, surfaceModel, declaredSource) {
|
|
1636
|
-
this.
|
|
1637
|
-
this.
|
|
1638
|
-
this.
|
|
1639
|
-
this.
|
|
1640
|
-
this.
|
|
1641
|
-
this.
|
|
1636
|
+
this.s17_1 = config;
|
|
1637
|
+
this.t17_1 = fetcher;
|
|
1638
|
+
this.u17_1 = fallback;
|
|
1639
|
+
this.v17_1 = keepNoData;
|
|
1640
|
+
this.w17_1 = surfaceModel;
|
|
1641
|
+
this.x17_1 = declaredSource;
|
|
1642
1642
|
// Inline function 'kotlin.require' call
|
|
1643
|
-
if (!ElevationFunctions_instance.
|
|
1644
|
-
var message = 'Invalid zoom level: ' + this.
|
|
1643
|
+
if (!ElevationFunctions_instance.k16(this.s17_1.y18_1)) {
|
|
1644
|
+
var message = 'Invalid zoom level: ' + this.s17_1.y18_1 + '. Must be an integer between ' + '0 and 15';
|
|
1645
1645
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1646
1646
|
}
|
|
1647
1647
|
// Inline function 'kotlin.require' call
|
|
1648
|
-
if (!(this.
|
|
1649
|
-
var message_0 = 'Invalid cache size: ' + this.
|
|
1648
|
+
if (!(this.s17_1.z18_1 > 0)) {
|
|
1649
|
+
var message_0 = 'Invalid cache size: ' + this.s17_1.z18_1 + '. Must be a positive integer';
|
|
1650
1650
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1651
1651
|
}
|
|
1652
1652
|
// Inline function 'kotlin.require' call
|
|
1653
|
-
if (!(this.
|
|
1654
|
-
var message_1 = 'Invalid tile size: ' + this.
|
|
1653
|
+
if (!(this.s17_1.b19_1 > 0 && (this.s17_1.b19_1 & (this.s17_1.b19_1 - 1 | 0)) === 0)) {
|
|
1654
|
+
var message_1 = 'Invalid tile size: ' + this.s17_1.b19_1 + '. Must be a positive power of 2';
|
|
1655
1655
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1656
1656
|
}
|
|
1657
1657
|
// Inline function 'kotlin.require' call
|
|
1658
|
-
if (!(this.
|
|
1659
|
-
var message_2 = 'Invalid maxRequestsPerSecond: ' + this.
|
|
1658
|
+
if (!(this.s17_1.e19_1 >= 0)) {
|
|
1659
|
+
var message_2 = 'Invalid maxRequestsPerSecond: ' + this.s17_1.e19_1 + '. Must be 0 (no limit) or positive';
|
|
1660
1660
|
throw IllegalArgumentException_init_$Create$(toString(message_2));
|
|
1661
1661
|
}
|
|
1662
1662
|
var tmp = this;
|
|
1663
1663
|
// Inline function 'kotlin.apply' call
|
|
1664
|
-
var this_0 = new TileManager(this.
|
|
1665
|
-
if (!(this.
|
|
1666
|
-
this_0.z15_1 = new UnreadableTiles(this.
|
|
1667
|
-
tmp.
|
|
1664
|
+
var this_0 = new TileManager(this.s17_1.a19_1, this.s17_1.z18_1, this.t17_1);
|
|
1665
|
+
if (!(this.u17_1 == null))
|
|
1666
|
+
this_0.z15_1 = new UnreadableTiles(this.s17_1.a19_1, this.s17_1.b19_1);
|
|
1667
|
+
tmp.y17_1 = this_0;
|
|
1668
1668
|
var tmp_0 = this;
|
|
1669
1669
|
var tmp_1;
|
|
1670
|
-
if (!(this.
|
|
1670
|
+
if (!(this.u17_1 == null)) {
|
|
1671
1671
|
tmp_1 = ElevationProvider$calculator$slambda_0(this, null);
|
|
1672
|
-
} else if (this.
|
|
1672
|
+
} else if (this.v17_1) {
|
|
1673
1673
|
tmp_1 = ElevationProvider$calculator$slambda_2(null);
|
|
1674
1674
|
} else {
|
|
1675
1675
|
tmp_1 = null;
|
|
1676
1676
|
}
|
|
1677
|
-
tmp_0.
|
|
1678
|
-
this.
|
|
1677
|
+
tmp_0.z17_1 = new ElevationCalculator(this.y17_1, this.s17_1.b19_1, tmp_1);
|
|
1678
|
+
this.a18_1 = new BatchCalculator(this.z17_1);
|
|
1679
1679
|
}
|
|
1680
|
-
protoOf(ElevationProvider).
|
|
1680
|
+
protoOf(ElevationProvider).n19 = function (other) {
|
|
1681
1681
|
// Inline function 'kotlin.require' call
|
|
1682
|
-
if (!!this.
|
|
1682
|
+
if (!!this.v17_1) {
|
|
1683
1683
|
var message = 'a raw IGN LiDAR HD layer takes no fallback: its no-data must stay NaN';
|
|
1684
1684
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1685
1685
|
}
|
|
1686
|
-
return new ElevationProvider(this.
|
|
1686
|
+
return new ElevationProvider(this.s17_1, this.t17_1, other, false, this.w17_1, this.x17_1);
|
|
1687
1687
|
};
|
|
1688
|
-
protoOf(ElevationProvider).
|
|
1688
|
+
protoOf(ElevationProvider).o19 = function (surface) {
|
|
1689
1689
|
// Inline function 'kotlin.require' call
|
|
1690
|
-
if (!(surface == null || surface.
|
|
1690
|
+
if (!(surface == null || surface.v17_1)) {
|
|
1691
1691
|
var message = 'a surface model must keep its no-data as NaN';
|
|
1692
1692
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1693
1693
|
}
|
|
1694
1694
|
// Inline function 'kotlin.require' call
|
|
1695
|
-
if (!!this.
|
|
1695
|
+
if (!!this.v17_1) {
|
|
1696
1696
|
var message_0 = 'a raw IGN LiDAR HD layer carries no surface model';
|
|
1697
1697
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1698
1698
|
}
|
|
1699
|
-
return new ElevationProvider(this.
|
|
1699
|
+
return new ElevationProvider(this.s17_1, this.t17_1, this.u17_1, false, surface, this.x17_1);
|
|
1700
1700
|
};
|
|
1701
|
-
protoOf(ElevationProvider).
|
|
1702
|
-
return this.
|
|
1701
|
+
protoOf(ElevationProvider).p19 = function () {
|
|
1702
|
+
return this.s17_1.c19_1;
|
|
1703
1703
|
};
|
|
1704
|
-
protoOf(ElevationProvider).
|
|
1705
|
-
return this.
|
|
1704
|
+
protoOf(ElevationProvider).b18 = function (latitude, longitude, interpolation, $completion) {
|
|
1705
|
+
return this.z17_1.d10(new LatLon(latitude, longitude), this.s17_1.y18_1, interpolation, $completion);
|
|
1706
1706
|
};
|
|
1707
|
-
protoOf(ElevationProvider).
|
|
1708
|
-
return this.
|
|
1707
|
+
protoOf(ElevationProvider).q19 = function (coordinates, interpolation, $completion) {
|
|
1708
|
+
return this.a18_1.g12(coordinates, this.s17_1.y18_1, interpolation, VOID, $completion);
|
|
1709
1709
|
};
|
|
1710
|
-
protoOf(ElevationProvider).
|
|
1710
|
+
protoOf(ElevationProvider).r19 = function (coordinates, interpolation, $completion, $super) {
|
|
1711
1711
|
interpolation = interpolation === VOID ? true : interpolation;
|
|
1712
|
-
return $super === VOID ? this.
|
|
1712
|
+
return $super === VOID ? this.q19(coordinates, interpolation, $completion) : $super.q19.call(this, coordinates, interpolation, $completion);
|
|
1713
1713
|
};
|
|
1714
|
-
protoOf(ElevationProvider).
|
|
1715
|
-
return this.
|
|
1714
|
+
protoOf(ElevationProvider).s19 = function (coordinates, interpolation, $completion) {
|
|
1715
|
+
return this.a18_1.l12(coordinates, this.s17_1.y18_1, VOID, ElevationProvider$setElevationsWithOrigin$slambda_0(this, interpolation, null), $completion);
|
|
1716
1716
|
};
|
|
1717
|
-
protoOf(ElevationProvider).
|
|
1717
|
+
protoOf(ElevationProvider).t19 = function (coordinates, interpolation, $completion, $super) {
|
|
1718
1718
|
interpolation = interpolation === VOID ? true : interpolation;
|
|
1719
|
-
return $super === VOID ? this.
|
|
1719
|
+
return $super === VOID ? this.s19(coordinates, interpolation, $completion) : $super.s19.call(this, coordinates, interpolation, $completion);
|
|
1720
1720
|
};
|
|
1721
|
-
protoOf(ElevationProvider).
|
|
1722
|
-
return this.
|
|
1721
|
+
protoOf(ElevationProvider).u19 = function (path, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion) {
|
|
1722
|
+
return this.a18_1.m12(path, this.s17_1.y18_1, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion);
|
|
1723
1723
|
};
|
|
1724
1724
|
function defaultTileFetcher(config) {
|
|
1725
|
-
if (config.
|
|
1725
|
+
if (config.d19_1.equals(TileEncoding_TERRARIUM_getInstance()) && config.e19_1 === 0) {
|
|
1726
1726
|
return fetchAndDecodeTile$ref_1();
|
|
1727
1727
|
}
|
|
1728
|
-
var bytes = pacedTileBytesFetcher(config.
|
|
1728
|
+
var bytes = pacedTileBytesFetcher(config.e19_1);
|
|
1729
1729
|
var tmp;
|
|
1730
|
-
switch (config.
|
|
1730
|
+
switch (config.d19_1.y1_1) {
|
|
1731
1731
|
case 0:
|
|
1732
1732
|
tmp = defaultTileFetcher$slambda_0(bytes, null);
|
|
1733
1733
|
break;
|
|
@@ -1743,24 +1743,24 @@
|
|
|
1743
1743
|
function fetchAndDecodeTile$ref() {
|
|
1744
1744
|
KFunctionImpl.call(this, 1, 2, 2);
|
|
1745
1745
|
}
|
|
1746
|
-
protoOf(fetchAndDecodeTile$ref).
|
|
1746
|
+
protoOf(fetchAndDecodeTile$ref).y19 = function (p0, $completion) {
|
|
1747
1747
|
return fetchAndDecodeTile(p0, $completion);
|
|
1748
1748
|
};
|
|
1749
1749
|
protoOf(fetchAndDecodeTile$ref).z7 = function (p1, $completion) {
|
|
1750
|
-
return this.
|
|
1750
|
+
return this.y19((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
1751
1751
|
};
|
|
1752
1752
|
function defaultTileFetcher$slambda($bytes, resultContinuation) {
|
|
1753
|
-
this.
|
|
1753
|
+
this.h1a_1 = $bytes;
|
|
1754
1754
|
CoroutineImpl.call(this, resultContinuation);
|
|
1755
1755
|
}
|
|
1756
|
-
protoOf(defaultTileFetcher$slambda).
|
|
1757
|
-
var tmp = this.
|
|
1756
|
+
protoOf(defaultTileFetcher$slambda).y19 = function (url, $completion) {
|
|
1757
|
+
var tmp = this.j1a(url, $completion);
|
|
1758
1758
|
tmp.l7_1 = Unit_instance;
|
|
1759
1759
|
tmp.m7_1 = null;
|
|
1760
1760
|
return tmp.r7();
|
|
1761
1761
|
};
|
|
1762
1762
|
protoOf(defaultTileFetcher$slambda).z7 = function (p1, $completion) {
|
|
1763
|
-
return this.
|
|
1763
|
+
return this.y19((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
1764
1764
|
};
|
|
1765
1765
|
protoOf(defaultTileFetcher$slambda).r7 = function () {
|
|
1766
1766
|
var suspendResult = this.l7_1;
|
|
@@ -1771,7 +1771,7 @@
|
|
|
1771
1771
|
case 0:
|
|
1772
1772
|
this.k7_1 = 3;
|
|
1773
1773
|
this.j7_1 = 1;
|
|
1774
|
-
suspendResult = this.
|
|
1774
|
+
suspendResult = this.h1a_1(this.i1a_1, this);
|
|
1775
1775
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1776
1776
|
return suspendResult;
|
|
1777
1777
|
}
|
|
@@ -1780,7 +1780,7 @@
|
|
|
1780
1780
|
case 1:
|
|
1781
1781
|
var ARGUMENT = suspendResult;
|
|
1782
1782
|
this.j7_1 = 2;
|
|
1783
|
-
suspendResult = decodeTileBytes(ARGUMENT, this.
|
|
1783
|
+
suspendResult = decodeTileBytes(ARGUMENT, this.i1a_1, this);
|
|
1784
1784
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1785
1785
|
return suspendResult;
|
|
1786
1786
|
}
|
|
@@ -1802,30 +1802,30 @@
|
|
|
1802
1802
|
}
|
|
1803
1803
|
while (true);
|
|
1804
1804
|
};
|
|
1805
|
-
protoOf(defaultTileFetcher$slambda).
|
|
1806
|
-
var i = new defaultTileFetcher$slambda(this.
|
|
1807
|
-
i.
|
|
1805
|
+
protoOf(defaultTileFetcher$slambda).j1a = function (url, completion) {
|
|
1806
|
+
var i = new defaultTileFetcher$slambda(this.h1a_1, completion);
|
|
1807
|
+
i.i1a_1 = url;
|
|
1808
1808
|
return i;
|
|
1809
1809
|
};
|
|
1810
1810
|
function defaultTileFetcher$slambda_0($bytes, resultContinuation) {
|
|
1811
1811
|
var i = new defaultTileFetcher$slambda($bytes, resultContinuation);
|
|
1812
1812
|
return constructCallableReference(function (url, $completion) {
|
|
1813
|
-
return i.
|
|
1813
|
+
return i.y19(url, $completion);
|
|
1814
1814
|
}, 1);
|
|
1815
1815
|
}
|
|
1816
1816
|
function defaultTileFetcher$slambda_1($bytes, $config, resultContinuation) {
|
|
1817
|
-
this.
|
|
1818
|
-
this.
|
|
1817
|
+
this.s1a_1 = $bytes;
|
|
1818
|
+
this.t1a_1 = $config;
|
|
1819
1819
|
CoroutineImpl.call(this, resultContinuation);
|
|
1820
1820
|
}
|
|
1821
|
-
protoOf(defaultTileFetcher$slambda_1).
|
|
1822
|
-
var tmp = this.
|
|
1821
|
+
protoOf(defaultTileFetcher$slambda_1).y19 = function (url, $completion) {
|
|
1822
|
+
var tmp = this.j1a(url, $completion);
|
|
1823
1823
|
tmp.l7_1 = Unit_instance;
|
|
1824
1824
|
tmp.m7_1 = null;
|
|
1825
1825
|
return tmp.r7();
|
|
1826
1826
|
};
|
|
1827
1827
|
protoOf(defaultTileFetcher$slambda_1).z7 = function (p1, $completion) {
|
|
1828
|
-
return this.
|
|
1828
|
+
return this.y19((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
1829
1829
|
};
|
|
1830
1830
|
protoOf(defaultTileFetcher$slambda_1).r7 = function () {
|
|
1831
1831
|
var suspendResult = this.l7_1;
|
|
@@ -1836,7 +1836,7 @@
|
|
|
1836
1836
|
case 0:
|
|
1837
1837
|
this.k7_1 = 2;
|
|
1838
1838
|
this.j7_1 = 1;
|
|
1839
|
-
suspendResult = this.
|
|
1839
|
+
suspendResult = this.s1a_1(this.u1a_1, this);
|
|
1840
1840
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1841
1841
|
return suspendResult;
|
|
1842
1842
|
}
|
|
@@ -1844,7 +1844,7 @@
|
|
|
1844
1844
|
continue $sm;
|
|
1845
1845
|
case 1:
|
|
1846
1846
|
var ARGUMENT = suspendResult;
|
|
1847
|
-
return decodeBil32Tile(ARGUMENT, this.
|
|
1847
|
+
return decodeBil32Tile(ARGUMENT, this.t1a_1.b19_1, this.u1a_1);
|
|
1848
1848
|
case 2:
|
|
1849
1849
|
throw this.m7_1;
|
|
1850
1850
|
}
|
|
@@ -1859,15 +1859,15 @@
|
|
|
1859
1859
|
}
|
|
1860
1860
|
while (true);
|
|
1861
1861
|
};
|
|
1862
|
-
protoOf(defaultTileFetcher$slambda_1).
|
|
1863
|
-
var i = new defaultTileFetcher$slambda_1(this.
|
|
1864
|
-
i.
|
|
1862
|
+
protoOf(defaultTileFetcher$slambda_1).j1a = function (url, completion) {
|
|
1863
|
+
var i = new defaultTileFetcher$slambda_1(this.s1a_1, this.t1a_1, completion);
|
|
1864
|
+
i.u1a_1 = url;
|
|
1865
1865
|
return i;
|
|
1866
1866
|
};
|
|
1867
1867
|
function defaultTileFetcher$slambda_2($bytes, $config, resultContinuation) {
|
|
1868
1868
|
var i = new defaultTileFetcher$slambda_1($bytes, $config, resultContinuation);
|
|
1869
1869
|
return constructCallableReference(function (url, $completion) {
|
|
1870
|
-
return i.
|
|
1870
|
+
return i.y19(url, $completion);
|
|
1871
1871
|
}, 1);
|
|
1872
1872
|
}
|
|
1873
1873
|
function defaultTileFetcher$ref() {
|
|
@@ -1883,38 +1883,38 @@
|
|
|
1883
1883
|
attribution = attribution === VOID ? new Attribution('Mapterhorn elevation data. See mapterhorn.com/attribution/ for details.', 'https://mapterhorn.com/attribution/') : attribution;
|
|
1884
1884
|
encoding = encoding === VOID ? TileEncoding_TERRARIUM_getInstance() : encoding;
|
|
1885
1885
|
maxRequestsPerSecond = maxRequestsPerSecond === VOID ? 0 : maxRequestsPerSecond;
|
|
1886
|
-
this.
|
|
1887
|
-
this.
|
|
1888
|
-
this.
|
|
1889
|
-
this.
|
|
1890
|
-
this.
|
|
1891
|
-
this.
|
|
1892
|
-
this.
|
|
1893
|
-
}
|
|
1894
|
-
protoOf(ElevationProviderConfig).
|
|
1886
|
+
this.y18_1 = zoomLevel;
|
|
1887
|
+
this.z18_1 = cacheSize;
|
|
1888
|
+
this.a19_1 = tileUrlTemplate;
|
|
1889
|
+
this.b19_1 = tileSize;
|
|
1890
|
+
this.c19_1 = attribution;
|
|
1891
|
+
this.d19_1 = encoding;
|
|
1892
|
+
this.e19_1 = maxRequestsPerSecond;
|
|
1893
|
+
}
|
|
1894
|
+
protoOf(ElevationProviderConfig).v1a = function (zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond) {
|
|
1895
1895
|
return new ElevationProviderConfig(zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond);
|
|
1896
1896
|
};
|
|
1897
|
-
protoOf(ElevationProviderConfig).
|
|
1898
|
-
zoomLevel = zoomLevel === VOID ? this.
|
|
1899
|
-
cacheSize = cacheSize === VOID ? this.
|
|
1900
|
-
tileUrlTemplate = tileUrlTemplate === VOID ? this.
|
|
1901
|
-
tileSize = tileSize === VOID ? this.
|
|
1902
|
-
attribution = attribution === VOID ? this.
|
|
1903
|
-
encoding = encoding === VOID ? this.
|
|
1904
|
-
maxRequestsPerSecond = maxRequestsPerSecond === VOID ? this.
|
|
1905
|
-
return $super === VOID ? this.
|
|
1897
|
+
protoOf(ElevationProviderConfig).w1a = function (zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond, $super) {
|
|
1898
|
+
zoomLevel = zoomLevel === VOID ? this.y18_1 : zoomLevel;
|
|
1899
|
+
cacheSize = cacheSize === VOID ? this.z18_1 : cacheSize;
|
|
1900
|
+
tileUrlTemplate = tileUrlTemplate === VOID ? this.a19_1 : tileUrlTemplate;
|
|
1901
|
+
tileSize = tileSize === VOID ? this.b19_1 : tileSize;
|
|
1902
|
+
attribution = attribution === VOID ? this.c19_1 : attribution;
|
|
1903
|
+
encoding = encoding === VOID ? this.d19_1 : encoding;
|
|
1904
|
+
maxRequestsPerSecond = maxRequestsPerSecond === VOID ? this.e19_1 : maxRequestsPerSecond;
|
|
1905
|
+
return $super === VOID ? this.v1a(zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond) : $super.v1a.call(this, zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond);
|
|
1906
1906
|
};
|
|
1907
1907
|
protoOf(ElevationProviderConfig).toString = function () {
|
|
1908
|
-
return 'ElevationProviderConfig(zoomLevel=' + this.
|
|
1908
|
+
return 'ElevationProviderConfig(zoomLevel=' + this.y18_1 + ', cacheSize=' + this.z18_1 + ', tileUrlTemplate=' + this.a19_1 + ', tileSize=' + this.b19_1 + ', attribution=' + this.c19_1.toString() + ', encoding=' + this.d19_1.toString() + ', maxRequestsPerSecond=' + this.e19_1 + ')';
|
|
1909
1909
|
};
|
|
1910
1910
|
protoOf(ElevationProviderConfig).hashCode = function () {
|
|
1911
|
-
var result = this.
|
|
1911
|
+
var result = this.y18_1;
|
|
1912
|
+
result = imul(result, 31) + this.z18_1 | 0;
|
|
1913
|
+
result = imul(result, 31) + getStringHashCode(this.a19_1) | 0;
|
|
1912
1914
|
result = imul(result, 31) + this.b19_1 | 0;
|
|
1913
|
-
result = imul(result, 31) +
|
|
1914
|
-
result = imul(result, 31) + this.d19_1 | 0;
|
|
1915
|
-
result = imul(result, 31) + this.e19_1
|
|
1916
|
-
result = imul(result, 31) + this.f19_1.hashCode() | 0;
|
|
1917
|
-
result = imul(result, 31) + this.g19_1 | 0;
|
|
1915
|
+
result = imul(result, 31) + this.c19_1.hashCode() | 0;
|
|
1916
|
+
result = imul(result, 31) + this.d19_1.hashCode() | 0;
|
|
1917
|
+
result = imul(result, 31) + this.e19_1 | 0;
|
|
1918
1918
|
return result;
|
|
1919
1919
|
};
|
|
1920
1920
|
protoOf(ElevationProviderConfig).equals = function (other) {
|
|
@@ -1922,33 +1922,33 @@
|
|
|
1922
1922
|
return true;
|
|
1923
1923
|
if (!(other instanceof ElevationProviderConfig))
|
|
1924
1924
|
return false;
|
|
1925
|
-
if (!(this.
|
|
1925
|
+
if (!(this.y18_1 === other.y18_1))
|
|
1926
1926
|
return false;
|
|
1927
|
-
if (!(this.
|
|
1927
|
+
if (!(this.z18_1 === other.z18_1))
|
|
1928
1928
|
return false;
|
|
1929
|
-
if (!(this.
|
|
1929
|
+
if (!(this.a19_1 === other.a19_1))
|
|
1930
1930
|
return false;
|
|
1931
|
-
if (!(this.
|
|
1931
|
+
if (!(this.b19_1 === other.b19_1))
|
|
1932
1932
|
return false;
|
|
1933
|
-
if (!this.
|
|
1933
|
+
if (!this.c19_1.equals(other.c19_1))
|
|
1934
1934
|
return false;
|
|
1935
|
-
if (!this.
|
|
1935
|
+
if (!this.d19_1.equals(other.d19_1))
|
|
1936
1936
|
return false;
|
|
1937
|
-
if (!(this.
|
|
1937
|
+
if (!(this.e19_1 === other.e19_1))
|
|
1938
1938
|
return false;
|
|
1939
1939
|
return true;
|
|
1940
1940
|
};
|
|
1941
1941
|
function Attribution(text, url) {
|
|
1942
1942
|
url = url === VOID ? null : url;
|
|
1943
|
-
this.
|
|
1944
|
-
this.
|
|
1943
|
+
this.x1a_1 = text;
|
|
1944
|
+
this.y1a_1 = url;
|
|
1945
1945
|
}
|
|
1946
1946
|
protoOf(Attribution).toString = function () {
|
|
1947
|
-
return 'Attribution(text=' + this.
|
|
1947
|
+
return 'Attribution(text=' + this.x1a_1 + ', url=' + this.y1a_1 + ')';
|
|
1948
1948
|
};
|
|
1949
1949
|
protoOf(Attribution).hashCode = function () {
|
|
1950
|
-
var result = getStringHashCode(this.
|
|
1951
|
-
result = imul(result, 31) + (this.
|
|
1950
|
+
var result = getStringHashCode(this.x1a_1);
|
|
1951
|
+
result = imul(result, 31) + (this.y1a_1 == null ? 0 : getStringHashCode(this.y1a_1)) | 0;
|
|
1952
1952
|
return result;
|
|
1953
1953
|
};
|
|
1954
1954
|
protoOf(Attribution).equals = function (other) {
|
|
@@ -1956,9 +1956,9 @@
|
|
|
1956
1956
|
return true;
|
|
1957
1957
|
if (!(other instanceof Attribution))
|
|
1958
1958
|
return false;
|
|
1959
|
-
if (!(this.
|
|
1959
|
+
if (!(this.x1a_1 === other.x1a_1))
|
|
1960
1960
|
return false;
|
|
1961
|
-
if (!(this.
|
|
1961
|
+
if (!(this.y1a_1 == other.y1a_1))
|
|
1962
1962
|
return false;
|
|
1963
1963
|
return true;
|
|
1964
1964
|
};
|
|
@@ -1986,7 +1986,7 @@
|
|
|
1986
1986
|
tmp = tmp + 1 | 0;
|
|
1987
1987
|
}
|
|
1988
1988
|
var elevations = tmp_1;
|
|
1989
|
-
var smoothed = this.
|
|
1989
|
+
var smoothed = this.z1a(distances, elevations, windowSize);
|
|
1990
1990
|
// Inline function 'kotlin.collections.List' call
|
|
1991
1991
|
// Inline function 'kotlin.collections.MutableList' call
|
|
1992
1992
|
var size = points.o();
|
|
@@ -2003,7 +2003,7 @@
|
|
|
2003
2003
|
while (inductionVariable < size);
|
|
2004
2004
|
return list;
|
|
2005
2005
|
};
|
|
2006
|
-
protoOf(ElevationSmoother).
|
|
2006
|
+
protoOf(ElevationSmoother).z1a = function (distanceM, elevationM, windowSize) {
|
|
2007
2007
|
// Inline function 'kotlin.require' call
|
|
2008
2008
|
if (!(distanceM.length === elevationM.length)) {
|
|
2009
2009
|
var message = 'distanceM (' + distanceM.length + ') and elevationM (' + elevationM.length + ') must have the same length';
|
|
@@ -2102,9 +2102,10 @@
|
|
|
2102
2102
|
var ElevationSource_IGN_LIDAR_HD_instance;
|
|
2103
2103
|
function Companion() {
|
|
2104
2104
|
Companion_instance_0 = this;
|
|
2105
|
-
this.
|
|
2105
|
+
this.a1b_1 = ElevationSource_IGN_LIDAR_HD_getInstance();
|
|
2106
|
+
this.b1b_1 = ElevationSource_MAPTERHORN_getInstance();
|
|
2106
2107
|
}
|
|
2107
|
-
protoOf(Companion).
|
|
2108
|
+
protoOf(Companion).c1b = function () {
|
|
2108
2109
|
// Inline function 'kotlin.collections.map' call
|
|
2109
2110
|
var this_0 = get_entries();
|
|
2110
2111
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2112,12 +2113,12 @@
|
|
|
2112
2113
|
var _iterator__ex2g4s = this_0.l();
|
|
2113
2114
|
while (_iterator__ex2g4s.m()) {
|
|
2114
2115
|
var item = _iterator__ex2g4s.n();
|
|
2115
|
-
var tmp$ret$2 = item.
|
|
2116
|
+
var tmp$ret$2 = item.f1b_1;
|
|
2116
2117
|
destination.k(tmp$ret$2);
|
|
2117
2118
|
}
|
|
2118
2119
|
return destination;
|
|
2119
2120
|
};
|
|
2120
|
-
protoOf(Companion).
|
|
2121
|
+
protoOf(Companion).g1b = function (id) {
|
|
2121
2122
|
var tmp0 = get_entries();
|
|
2122
2123
|
var tmp$ret$0;
|
|
2123
2124
|
$l$block: {
|
|
@@ -2125,7 +2126,7 @@
|
|
|
2125
2126
|
var _iterator__ex2g4s = tmp0.l();
|
|
2126
2127
|
while (_iterator__ex2g4s.m()) {
|
|
2127
2128
|
var element = _iterator__ex2g4s.n();
|
|
2128
|
-
if (element.
|
|
2129
|
+
if (element.f1b_1 === id) {
|
|
2129
2130
|
tmp$ret$0 = element;
|
|
2130
2131
|
break $l$block;
|
|
2131
2132
|
}
|
|
@@ -2135,7 +2136,7 @@
|
|
|
2135
2136
|
var tmp0_elvis_lhs = tmp$ret$0;
|
|
2136
2137
|
var tmp;
|
|
2137
2138
|
if (tmp0_elvis_lhs == null) {
|
|
2138
|
-
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.c1b()));
|
|
2139
2140
|
} else {
|
|
2140
2141
|
tmp = tmp0_elvis_lhs;
|
|
2141
2142
|
}
|
|
@@ -2159,9 +2160,9 @@
|
|
|
2159
2160
|
var $ENTRIES;
|
|
2160
2161
|
function ElevationSource(name, ordinal, id) {
|
|
2161
2162
|
Enum.call(this, name, ordinal);
|
|
2162
|
-
this.
|
|
2163
|
+
this.f1b_1 = id;
|
|
2163
2164
|
}
|
|
2164
|
-
protoOf(ElevationSource).
|
|
2165
|
+
protoOf(ElevationSource).h1b = function () {
|
|
2165
2166
|
var tmp;
|
|
2166
2167
|
switch (this.y1_1) {
|
|
2167
2168
|
case 0:
|
|
@@ -2176,14 +2177,14 @@
|
|
|
2176
2177
|
}
|
|
2177
2178
|
return tmp;
|
|
2178
2179
|
};
|
|
2179
|
-
protoOf(ElevationSource).
|
|
2180
|
+
protoOf(ElevationSource).i1b = function () {
|
|
2180
2181
|
var tmp;
|
|
2181
2182
|
switch (this.y1_1) {
|
|
2182
2183
|
case 0:
|
|
2183
|
-
tmp = (new ElevationProviderConfig()).
|
|
2184
|
+
tmp = (new ElevationProviderConfig()).y18_1;
|
|
2184
2185
|
break;
|
|
2185
2186
|
case 1:
|
|
2186
|
-
tmp = IgnLidarHdLayer_MNT_getInstance().
|
|
2187
|
+
tmp = IgnLidarHdLayer_MNT_getInstance().i1b();
|
|
2187
2188
|
break;
|
|
2188
2189
|
default:
|
|
2189
2190
|
noWhenBranchMatchedException();
|
|
@@ -2191,15 +2192,15 @@
|
|
|
2191
2192
|
}
|
|
2192
2193
|
return tmp;
|
|
2193
2194
|
};
|
|
2194
|
-
protoOf(ElevationSource).
|
|
2195
|
+
protoOf(ElevationSource).m1b = function (zoomLevel) {
|
|
2195
2196
|
var tmp;
|
|
2196
2197
|
switch (this.y1_1) {
|
|
2197
2198
|
case 0:
|
|
2198
|
-
tmp = new ElevationProviderConfig(zoomLevel == null ? this.
|
|
2199
|
+
tmp = new ElevationProviderConfig(zoomLevel == null ? this.i1b() : zoomLevel);
|
|
2199
2200
|
break;
|
|
2200
2201
|
case 1:
|
|
2201
2202
|
var tmp_0 = IgnLidarHdLayer_MNT_getInstance();
|
|
2202
|
-
tmp = tmp_0.
|
|
2203
|
+
tmp = tmp_0.m1b(zoomLevel == null ? this.i1b() : zoomLevel);
|
|
2203
2204
|
break;
|
|
2204
2205
|
default:
|
|
2205
2206
|
noWhenBranchMatchedException();
|
|
@@ -2216,22 +2217,22 @@
|
|
|
2216
2217
|
tmp = fetcherFor;
|
|
2217
2218
|
}
|
|
2218
2219
|
fetcherFor = tmp;
|
|
2219
|
-
var config = _this__u8e3s4.
|
|
2220
|
+
var config = _this__u8e3s4.m1b(zoomLevel);
|
|
2220
2221
|
var fetcher = _this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) ? ignCoverageFiltered(config, fetcherFor(config)) : fetcherFor(config);
|
|
2221
2222
|
var primary = ElevationProvider_init_$Create$(config, fetcher);
|
|
2222
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2223
|
+
var tmp0_safe_receiver = _this__u8e3s4.h1b();
|
|
2223
2224
|
var tmp_0;
|
|
2224
2225
|
if (tmp0_safe_receiver == null) {
|
|
2225
2226
|
tmp_0 = null;
|
|
2226
2227
|
} else {
|
|
2227
2228
|
// Inline function 'kotlin.let' call
|
|
2228
|
-
tmp_0 = primary.
|
|
2229
|
+
tmp_0 = primary.n19(provider(tmp0_safe_receiver, null, fetcherFor));
|
|
2229
2230
|
}
|
|
2230
2231
|
var tmp1_elvis_lhs = tmp_0;
|
|
2231
2232
|
var withFallback = tmp1_elvis_lhs == null ? primary : tmp1_elvis_lhs;
|
|
2232
2233
|
var tmp_1;
|
|
2233
|
-
if (_this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) && config.
|
|
2234
|
-
tmp_1 = withFallback.
|
|
2234
|
+
if (_this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) && config.y18_1 === IgnLidarHdLayer_MNS_getInstance().i1b()) {
|
|
2235
|
+
tmp_1 = withFallback.o19(provider_0(IgnLidarHdLayer_MNS_getInstance(), null, fetcherFor));
|
|
2235
2236
|
} else {
|
|
2236
2237
|
tmp_1 = withFallback;
|
|
2237
2238
|
}
|
|
@@ -2259,19 +2260,19 @@
|
|
|
2259
2260
|
return ElevationSource_IGN_LIDAR_HD_instance;
|
|
2260
2261
|
}
|
|
2261
2262
|
function Flux$forEachParallel$slambda$slambda($semaphore, $action, $item, resultContinuation) {
|
|
2262
|
-
this.
|
|
2263
|
-
this.
|
|
2264
|
-
this.
|
|
2263
|
+
this.v1b_1 = $semaphore;
|
|
2264
|
+
this.w1b_1 = $action;
|
|
2265
|
+
this.x1b_1 = $item;
|
|
2265
2266
|
CoroutineImpl.call(this, resultContinuation);
|
|
2266
2267
|
}
|
|
2267
|
-
protoOf(Flux$forEachParallel$slambda$slambda).
|
|
2268
|
-
var tmp = this.
|
|
2268
|
+
protoOf(Flux$forEachParallel$slambda$slambda).b1c = function ($this$async, $completion) {
|
|
2269
|
+
var tmp = this.c1c($this$async, $completion);
|
|
2269
2270
|
tmp.l7_1 = Unit_instance;
|
|
2270
2271
|
tmp.m7_1 = null;
|
|
2271
2272
|
return tmp.r7();
|
|
2272
2273
|
};
|
|
2273
2274
|
protoOf(Flux$forEachParallel$slambda$slambda).z7 = function (p1, $completion) {
|
|
2274
|
-
return this.
|
|
2275
|
+
return this.b1c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2275
2276
|
};
|
|
2276
2277
|
protoOf(Flux$forEachParallel$slambda$slambda).r7 = function () {
|
|
2277
2278
|
var suspendResult = this.l7_1;
|
|
@@ -2281,41 +2282,41 @@
|
|
|
2281
2282
|
switch (tmp) {
|
|
2282
2283
|
case 0:
|
|
2283
2284
|
this.k7_1 = 6;
|
|
2284
|
-
this.
|
|
2285
|
+
this.z1b_1 = this.v1b_1;
|
|
2285
2286
|
this.j7_1 = 1;
|
|
2286
|
-
suspendResult = this.
|
|
2287
|
+
suspendResult = this.z1b_1.yw(this);
|
|
2287
2288
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2288
2289
|
return suspendResult;
|
|
2289
2290
|
}
|
|
2290
2291
|
|
|
2291
2292
|
continue $sm;
|
|
2292
2293
|
case 1:
|
|
2293
|
-
this.
|
|
2294
|
+
this.a1c_1 = Unit_instance;
|
|
2294
2295
|
this.j7_1 = 2;
|
|
2295
2296
|
continue $sm;
|
|
2296
2297
|
case 2:
|
|
2297
2298
|
this.k7_1 = 5;
|
|
2298
2299
|
this.j7_1 = 3;
|
|
2299
|
-
suspendResult = this.
|
|
2300
|
+
suspendResult = this.w1b_1(this.x1b_1, this);
|
|
2300
2301
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2301
2302
|
return suspendResult;
|
|
2302
2303
|
}
|
|
2303
2304
|
|
|
2304
2305
|
continue $sm;
|
|
2305
2306
|
case 3:
|
|
2306
|
-
this.
|
|
2307
|
+
this.a1c_1 = Unit_instance;
|
|
2307
2308
|
this.k7_1 = 6;
|
|
2308
2309
|
this.j7_1 = 4;
|
|
2309
2310
|
continue $sm;
|
|
2310
2311
|
case 4:
|
|
2311
|
-
this.
|
|
2312
|
+
this.a1c_1;
|
|
2312
2313
|
this.k7_1 = 6;
|
|
2313
|
-
this.
|
|
2314
|
+
this.z1b_1.sw();
|
|
2314
2315
|
return Unit_instance;
|
|
2315
2316
|
case 5:
|
|
2316
2317
|
this.k7_1 = 6;
|
|
2317
2318
|
var t = this.m7_1;
|
|
2318
|
-
this.
|
|
2319
|
+
this.z1b_1.sw();
|
|
2319
2320
|
throw t;
|
|
2320
2321
|
case 6:
|
|
2321
2322
|
throw this.m7_1;
|
|
@@ -2331,31 +2332,31 @@
|
|
|
2331
2332
|
}
|
|
2332
2333
|
while (true);
|
|
2333
2334
|
};
|
|
2334
|
-
protoOf(Flux$forEachParallel$slambda$slambda).
|
|
2335
|
-
var i = new Flux$forEachParallel$slambda$slambda(this.
|
|
2336
|
-
i.
|
|
2335
|
+
protoOf(Flux$forEachParallel$slambda$slambda).c1c = function ($this$async, completion) {
|
|
2336
|
+
var i = new Flux$forEachParallel$slambda$slambda(this.v1b_1, this.w1b_1, this.x1b_1, completion);
|
|
2337
|
+
i.y1b_1 = $this$async;
|
|
2337
2338
|
return i;
|
|
2338
2339
|
};
|
|
2339
2340
|
function Flux$forEachParallel$slambda$slambda_0($semaphore, $action, $item, resultContinuation) {
|
|
2340
2341
|
var i = new Flux$forEachParallel$slambda$slambda($semaphore, $action, $item, resultContinuation);
|
|
2341
2342
|
return constructCallableReference(function ($this$async, $completion) {
|
|
2342
|
-
return i.
|
|
2343
|
+
return i.b1c($this$async, $completion);
|
|
2343
2344
|
}, 1);
|
|
2344
2345
|
}
|
|
2345
2346
|
function Flux$forEachParallel$slambda($maxParallel, $items, $action, resultContinuation) {
|
|
2346
|
-
this.
|
|
2347
|
-
this.
|
|
2348
|
-
this.
|
|
2347
|
+
this.l1c_1 = $maxParallel;
|
|
2348
|
+
this.m1c_1 = $items;
|
|
2349
|
+
this.n1c_1 = $action;
|
|
2349
2350
|
CoroutineImpl.call(this, resultContinuation);
|
|
2350
2351
|
}
|
|
2351
|
-
protoOf(Flux$forEachParallel$slambda).
|
|
2352
|
-
var tmp = this.
|
|
2352
|
+
protoOf(Flux$forEachParallel$slambda).p1c = function ($this$coroutineScope, $completion) {
|
|
2353
|
+
var tmp = this.c1c($this$coroutineScope, $completion);
|
|
2353
2354
|
tmp.l7_1 = Unit_instance;
|
|
2354
2355
|
tmp.m7_1 = null;
|
|
2355
2356
|
return tmp.r7();
|
|
2356
2357
|
};
|
|
2357
2358
|
protoOf(Flux$forEachParallel$slambda).z7 = function (p1, $completion) {
|
|
2358
|
-
return this.
|
|
2359
|
+
return this.p1c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2359
2360
|
};
|
|
2360
2361
|
protoOf(Flux$forEachParallel$slambda).r7 = function () {
|
|
2361
2362
|
var suspendResult = this.l7_1;
|
|
@@ -2365,14 +2366,14 @@
|
|
|
2365
2366
|
switch (tmp) {
|
|
2366
2367
|
case 0:
|
|
2367
2368
|
this.k7_1 = 2;
|
|
2368
|
-
var semaphore = Semaphore(this.
|
|
2369
|
+
var semaphore = Semaphore(this.l1c_1);
|
|
2369
2370
|
this.j7_1 = 1;
|
|
2370
|
-
var this_0 = this.
|
|
2371
|
+
var this_0 = this.m1c_1;
|
|
2371
2372
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2372
2373
|
var _iterator__ex2g4s = this_0.l();
|
|
2373
2374
|
while (_iterator__ex2g4s.m()) {
|
|
2374
2375
|
var item = _iterator__ex2g4s.n();
|
|
2375
|
-
destination.k(async(this.
|
|
2376
|
+
destination.k(async(this.o1c_1, VOID, VOID, Flux$forEachParallel$slambda$slambda_0(semaphore, this.n1c_1, item, null)));
|
|
2376
2377
|
}
|
|
2377
2378
|
|
|
2378
2379
|
suspendResult = awaitAll(destination, this);
|
|
@@ -2397,23 +2398,23 @@
|
|
|
2397
2398
|
}
|
|
2398
2399
|
while (true);
|
|
2399
2400
|
};
|
|
2400
|
-
protoOf(Flux$forEachParallel$slambda).
|
|
2401
|
-
var i = new Flux$forEachParallel$slambda(this.
|
|
2402
|
-
i.
|
|
2401
|
+
protoOf(Flux$forEachParallel$slambda).c1c = function ($this$coroutineScope, completion) {
|
|
2402
|
+
var i = new Flux$forEachParallel$slambda(this.l1c_1, this.m1c_1, this.n1c_1, completion);
|
|
2403
|
+
i.o1c_1 = $this$coroutineScope;
|
|
2403
2404
|
return i;
|
|
2404
2405
|
};
|
|
2405
2406
|
function Flux$forEachParallel$slambda_0($maxParallel, $items, $action, resultContinuation) {
|
|
2406
2407
|
var i = new Flux$forEachParallel$slambda($maxParallel, $items, $action, resultContinuation);
|
|
2407
2408
|
return constructCallableReference(function ($this$coroutineScope, $completion) {
|
|
2408
|
-
return i.
|
|
2409
|
+
return i.p1c($this$coroutineScope, $completion);
|
|
2409
2410
|
}, 1);
|
|
2410
2411
|
}
|
|
2411
2412
|
function $forEachParallelCOROUTINE$(_this__u8e3s4, items, maxParallel, action, resultContinuation) {
|
|
2412
2413
|
CoroutineImpl.call(this, resultContinuation);
|
|
2413
|
-
this.
|
|
2414
|
-
this.
|
|
2415
|
-
this.
|
|
2416
|
-
this.
|
|
2414
|
+
this.y1c_1 = _this__u8e3s4;
|
|
2415
|
+
this.z1c_1 = items;
|
|
2416
|
+
this.a1d_1 = maxParallel;
|
|
2417
|
+
this.b1d_1 = action;
|
|
2417
2418
|
}
|
|
2418
2419
|
protoOf($forEachParallelCOROUTINE$).r7 = function () {
|
|
2419
2420
|
var suspendResult = this.l7_1;
|
|
@@ -2423,13 +2424,13 @@
|
|
|
2423
2424
|
switch (tmp) {
|
|
2424
2425
|
case 0:
|
|
2425
2426
|
this.k7_1 = 2;
|
|
2426
|
-
if (!(this.
|
|
2427
|
-
var message = 'maxParallel must be >= 1, got ' + this.
|
|
2427
|
+
if (!(this.a1d_1 >= 1)) {
|
|
2428
|
+
var message = 'maxParallel must be >= 1, got ' + this.a1d_1;
|
|
2428
2429
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2429
2430
|
}
|
|
2430
2431
|
|
|
2431
2432
|
this.j7_1 = 1;
|
|
2432
|
-
suspendResult = coroutineScope(Flux$forEachParallel$slambda_0(this.
|
|
2433
|
+
suspendResult = coroutineScope(Flux$forEachParallel$slambda_0(this.a1d_1, this.z1c_1, this.b1d_1, null), this);
|
|
2433
2434
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2434
2435
|
return suspendResult;
|
|
2435
2436
|
}
|
|
@@ -2600,14 +2601,14 @@
|
|
|
2600
2601
|
IgnLidarHdCoverage_instance = this;
|
|
2601
2602
|
var tmp = this;
|
|
2602
2603
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
2603
|
-
tmp.
|
|
2604
|
+
tmp.c1d_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]);
|
|
2604
2605
|
var tmp_0 = this;
|
|
2605
2606
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
2606
|
-
tmp_0.
|
|
2607
|
-
this.
|
|
2607
|
+
tmp_0.d1d_1 = new Float64Array([8.4, 43.15, 9.7, 43.15, 9.7, 41.25, 8.4, 41.25]);
|
|
2608
|
+
this.e1d_1 = listOf([this.c1d_1, this.d1d_1]);
|
|
2608
2609
|
}
|
|
2609
|
-
protoOf(IgnLidarHdCoverage).
|
|
2610
|
-
var tmp0 = this.
|
|
2610
|
+
protoOf(IgnLidarHdCoverage).f1d = function (latitude, longitude) {
|
|
2611
|
+
var tmp0 = this.e1d_1;
|
|
2611
2612
|
var tmp$ret$0;
|
|
2612
2613
|
$l$block_0: {
|
|
2613
2614
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -2633,13 +2634,13 @@
|
|
|
2633
2634
|
}
|
|
2634
2635
|
return tmp$ret$0;
|
|
2635
2636
|
};
|
|
2636
|
-
protoOf(IgnLidarHdCoverage).
|
|
2637
|
+
protoOf(IgnLidarHdCoverage).g1d = function (tc) {
|
|
2637
2638
|
var tiles = 1 << tc.n11_1;
|
|
2638
2639
|
var west = tc.l11_1 / tiles * 360.0 - 180.0;
|
|
2639
2640
|
var east = (tc.l11_1 + 1 | 0) / tiles * 360.0 - 180.0;
|
|
2640
2641
|
var north = latitudeOfRow(this, tc.m11_1, tiles);
|
|
2641
2642
|
var south = latitudeOfRow(this, tc.m11_1 + 1 | 0, tiles);
|
|
2642
|
-
var tmp0 = this.
|
|
2643
|
+
var tmp0 = this.e1d_1;
|
|
2643
2644
|
var tmp$ret$0;
|
|
2644
2645
|
$l$block_0: {
|
|
2645
2646
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -2672,18 +2673,18 @@
|
|
|
2672
2673
|
return IgnLidarHdCoverage_instance;
|
|
2673
2674
|
}
|
|
2674
2675
|
function ignCoverageFiltered$slambda($config, $fetcher, resultContinuation) {
|
|
2675
|
-
this.
|
|
2676
|
-
this.
|
|
2676
|
+
this.p1d_1 = $config;
|
|
2677
|
+
this.q1d_1 = $fetcher;
|
|
2677
2678
|
CoroutineImpl.call(this, resultContinuation);
|
|
2678
2679
|
}
|
|
2679
|
-
protoOf(ignCoverageFiltered$slambda).
|
|
2680
|
-
var tmp = this.
|
|
2680
|
+
protoOf(ignCoverageFiltered$slambda).y19 = function (url, $completion) {
|
|
2681
|
+
var tmp = this.j1a(url, $completion);
|
|
2681
2682
|
tmp.l7_1 = Unit_instance;
|
|
2682
2683
|
tmp.m7_1 = null;
|
|
2683
2684
|
return tmp.r7();
|
|
2684
2685
|
};
|
|
2685
2686
|
protoOf(ignCoverageFiltered$slambda).z7 = function (p1, $completion) {
|
|
2686
|
-
return this.
|
|
2687
|
+
return this.y19((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
2687
2688
|
};
|
|
2688
2689
|
protoOf(ignCoverageFiltered$slambda).r7 = function () {
|
|
2689
2690
|
var suspendResult = this.l7_1;
|
|
@@ -2693,25 +2694,25 @@
|
|
|
2693
2694
|
switch (tmp) {
|
|
2694
2695
|
case 0:
|
|
2695
2696
|
this.k7_1 = 3;
|
|
2696
|
-
if (IgnLidarHdCoverage_getInstance().
|
|
2697
|
+
if (IgnLidarHdCoverage_getInstance().g1d(tileCoordinatesOf(this.r1d_1, this.p1d_1))) {
|
|
2697
2698
|
this.j7_1 = 1;
|
|
2698
|
-
suspendResult = this.
|
|
2699
|
+
suspendResult = this.q1d_1(this.r1d_1, this);
|
|
2699
2700
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2700
2701
|
return suspendResult;
|
|
2701
2702
|
}
|
|
2702
2703
|
continue $sm;
|
|
2703
2704
|
} else {
|
|
2704
|
-
this.
|
|
2705
|
+
this.s1d_1 = noDataTile(this.p1d_1.b19_1);
|
|
2705
2706
|
this.j7_1 = 2;
|
|
2706
2707
|
continue $sm;
|
|
2707
2708
|
}
|
|
2708
2709
|
|
|
2709
2710
|
case 1:
|
|
2710
|
-
this.
|
|
2711
|
+
this.s1d_1 = suspendResult;
|
|
2711
2712
|
this.j7_1 = 2;
|
|
2712
2713
|
continue $sm;
|
|
2713
2714
|
case 2:
|
|
2714
|
-
return this.
|
|
2715
|
+
return this.s1d_1;
|
|
2715
2716
|
case 3:
|
|
2716
2717
|
throw this.m7_1;
|
|
2717
2718
|
}
|
|
@@ -2726,15 +2727,15 @@
|
|
|
2726
2727
|
}
|
|
2727
2728
|
while (true);
|
|
2728
2729
|
};
|
|
2729
|
-
protoOf(ignCoverageFiltered$slambda).
|
|
2730
|
-
var i = new ignCoverageFiltered$slambda(this.
|
|
2731
|
-
i.
|
|
2730
|
+
protoOf(ignCoverageFiltered$slambda).j1a = function (url, completion) {
|
|
2731
|
+
var i = new ignCoverageFiltered$slambda(this.p1d_1, this.q1d_1, completion);
|
|
2732
|
+
i.r1d_1 = url;
|
|
2732
2733
|
return i;
|
|
2733
2734
|
};
|
|
2734
2735
|
function ignCoverageFiltered$slambda_0($config, $fetcher, resultContinuation) {
|
|
2735
2736
|
var i = new ignCoverageFiltered$slambda($config, $fetcher, resultContinuation);
|
|
2736
2737
|
return constructCallableReference(function (url, $completion) {
|
|
2737
|
-
return i.
|
|
2738
|
+
return i.y19(url, $completion);
|
|
2738
2739
|
}, 1);
|
|
2739
2740
|
}
|
|
2740
2741
|
var static_init_called_1;
|
|
@@ -2762,14 +2763,14 @@
|
|
|
2762
2763
|
var $ENTRIES_0;
|
|
2763
2764
|
function IgnLidarHdLayer(name, ordinal, wmsLayer) {
|
|
2764
2765
|
Enum.call(this, name, ordinal);
|
|
2765
|
-
this.
|
|
2766
|
+
this.l1b_1 = wmsLayer;
|
|
2766
2767
|
}
|
|
2767
|
-
protoOf(IgnLidarHdLayer).
|
|
2768
|
+
protoOf(IgnLidarHdLayer).i1b = function () {
|
|
2768
2769
|
return 15;
|
|
2769
2770
|
};
|
|
2770
|
-
protoOf(IgnLidarHdLayer).
|
|
2771
|
-
var tmp1_zoomLevel = zoomLevel == null ? this.
|
|
2772
|
-
var tmp3_tileUrlTemplate = ignWmsTemplate(this.
|
|
2771
|
+
protoOf(IgnLidarHdLayer).m1b = function (zoomLevel) {
|
|
2772
|
+
var tmp1_zoomLevel = zoomLevel == null ? this.i1b() : zoomLevel;
|
|
2773
|
+
var tmp3_tileUrlTemplate = ignWmsTemplate(this.l1b_1, 256);
|
|
2773
2774
|
var tmp4_encoding = TileEncoding_BIL32_getInstance();
|
|
2774
2775
|
var tmp5_attribution = new Attribution('\xA9 IGN \u2014 LiDAR HD ' + this.x1_1 + ', Licence Ouverte Etalab 2.0', 'https://geoservices.ign.fr/lidarhd');
|
|
2775
2776
|
return new ElevationProviderConfig(tmp1_zoomLevel, VOID, tmp3_tileUrlTemplate, 256, tmp5_attribution, tmp4_encoding, 20);
|
|
@@ -2783,7 +2784,7 @@
|
|
|
2783
2784
|
tmp = fetcherFor;
|
|
2784
2785
|
}
|
|
2785
2786
|
fetcherFor = tmp;
|
|
2786
|
-
var config = _this__u8e3s4.
|
|
2787
|
+
var config = _this__u8e3s4.m1b(zoomLevel);
|
|
2787
2788
|
return ElevationProvider_init_$Create$_0(config, ignCoverageFiltered(config, fetcherFor(config)), true);
|
|
2788
2789
|
}
|
|
2789
2790
|
function ignWmsTemplate(layer, tileSize) {
|
|
@@ -2802,13 +2803,13 @@
|
|
|
2802
2803
|
return IgnLidarHdLayer_MNH_instance;
|
|
2803
2804
|
}
|
|
2804
2805
|
function Hit(value) {
|
|
2805
|
-
this.
|
|
2806
|
+
this.t1d_1 = value;
|
|
2806
2807
|
}
|
|
2807
2808
|
function Await(deferred) {
|
|
2808
|
-
this.
|
|
2809
|
+
this.u1d_1 = deferred;
|
|
2809
2810
|
}
|
|
2810
2811
|
function Owner(deferred) {
|
|
2811
|
-
this.
|
|
2812
|
+
this.v1d_1 = deferred;
|
|
2812
2813
|
}
|
|
2813
2814
|
function LoadAbandoned() {
|
|
2814
2815
|
Exception_init_$Init$('load abandoned by its cancelled owner', this);
|
|
@@ -2827,18 +2828,18 @@
|
|
|
2827
2828
|
return tmp.r7();
|
|
2828
2829
|
}
|
|
2829
2830
|
function LruCache$load$slambda(this$0, $key, resultContinuation) {
|
|
2830
|
-
this.
|
|
2831
|
-
this.
|
|
2831
|
+
this.e1f_1 = this$0;
|
|
2832
|
+
this.f1f_1 = $key;
|
|
2832
2833
|
CoroutineImpl.call(this, resultContinuation);
|
|
2833
2834
|
}
|
|
2834
|
-
protoOf(LruCache$load$slambda).
|
|
2835
|
-
var tmp = this.
|
|
2835
|
+
protoOf(LruCache$load$slambda).j1f = function ($this$withContext, $completion) {
|
|
2836
|
+
var tmp = this.c1c($this$withContext, $completion);
|
|
2836
2837
|
tmp.l7_1 = Unit_instance;
|
|
2837
2838
|
tmp.m7_1 = null;
|
|
2838
2839
|
return tmp.r7();
|
|
2839
2840
|
};
|
|
2840
2841
|
protoOf(LruCache$load$slambda).z7 = function (p1, $completion) {
|
|
2841
|
-
return this.
|
|
2842
|
+
return this.j1f((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2842
2843
|
};
|
|
2843
2844
|
protoOf(LruCache$load$slambda).r7 = function () {
|
|
2844
2845
|
var suspendResult = this.l7_1;
|
|
@@ -2848,10 +2849,10 @@
|
|
|
2848
2849
|
switch (tmp) {
|
|
2849
2850
|
case 0:
|
|
2850
2851
|
this.k7_1 = 2;
|
|
2851
|
-
this.
|
|
2852
|
-
this.
|
|
2852
|
+
this.i1f_1 = this.e1f_1.n1f_1;
|
|
2853
|
+
this.h1f_1 = null;
|
|
2853
2854
|
this.j7_1 = 1;
|
|
2854
|
-
suspendResult = this.
|
|
2855
|
+
suspendResult = this.i1f_1.qw(this.h1f_1, this);
|
|
2855
2856
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2856
2857
|
return suspendResult;
|
|
2857
2858
|
}
|
|
@@ -2862,18 +2863,18 @@
|
|
|
2862
2863
|
l$ret$1: do {
|
|
2863
2864
|
var tmp_0;
|
|
2864
2865
|
try {
|
|
2865
|
-
tmp$ret$0 = this.
|
|
2866
|
+
tmp$ret$0 = this.e1f_1.p1f_1.w3(this.f1f_1);
|
|
2866
2867
|
break l$ret$1;
|
|
2867
2868
|
} catch ($p) {
|
|
2868
2869
|
var tmp_1;
|
|
2869
2870
|
var t = $p;
|
|
2870
|
-
this.
|
|
2871
|
+
this.i1f_1.bw(this.h1f_1);
|
|
2871
2872
|
throw t;
|
|
2872
2873
|
}
|
|
2873
2874
|
}
|
|
2874
2875
|
while (false);
|
|
2875
2876
|
var tmp_2 = tmp$ret$0;
|
|
2876
|
-
this.
|
|
2877
|
+
this.i1f_1.bw(this.h1f_1);
|
|
2877
2878
|
return tmp_2;
|
|
2878
2879
|
case 2:
|
|
2879
2880
|
throw this.m7_1;
|
|
@@ -2889,31 +2890,31 @@
|
|
|
2889
2890
|
}
|
|
2890
2891
|
while (true);
|
|
2891
2892
|
};
|
|
2892
|
-
protoOf(LruCache$load$slambda).
|
|
2893
|
-
var i = new LruCache$load$slambda(this.
|
|
2894
|
-
i.
|
|
2893
|
+
protoOf(LruCache$load$slambda).c1c = function ($this$withContext, completion) {
|
|
2894
|
+
var i = new LruCache$load$slambda(this.e1f_1, this.f1f_1, completion);
|
|
2895
|
+
i.g1f_1 = $this$withContext;
|
|
2895
2896
|
return i;
|
|
2896
2897
|
};
|
|
2897
2898
|
function LruCache$load$slambda_0(this$0, $key, resultContinuation) {
|
|
2898
2899
|
var i = new LruCache$load$slambda(this$0, $key, resultContinuation);
|
|
2899
2900
|
return constructCallableReference(function ($this$withContext, $completion) {
|
|
2900
|
-
return i.
|
|
2901
|
+
return i.j1f($this$withContext, $completion);
|
|
2901
2902
|
}, 1);
|
|
2902
2903
|
}
|
|
2903
2904
|
function LruCache$load$slambda_1(this$0, $key, $value, resultContinuation) {
|
|
2904
|
-
this.
|
|
2905
|
-
this.
|
|
2906
|
-
this.
|
|
2905
|
+
this.y1f_1 = this$0;
|
|
2906
|
+
this.z1f_1 = $key;
|
|
2907
|
+
this.a1g_1 = $value;
|
|
2907
2908
|
CoroutineImpl.call(this, resultContinuation);
|
|
2908
2909
|
}
|
|
2909
|
-
protoOf(LruCache$load$slambda_1).
|
|
2910
|
-
var tmp = this.
|
|
2910
|
+
protoOf(LruCache$load$slambda_1).e1g = function ($this$withContext, $completion) {
|
|
2911
|
+
var tmp = this.c1c($this$withContext, $completion);
|
|
2911
2912
|
tmp.l7_1 = Unit_instance;
|
|
2912
2913
|
tmp.m7_1 = null;
|
|
2913
2914
|
return tmp.r7();
|
|
2914
2915
|
};
|
|
2915
2916
|
protoOf(LruCache$load$slambda_1).z7 = function (p1, $completion) {
|
|
2916
|
-
return this.
|
|
2917
|
+
return this.e1g((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2917
2918
|
};
|
|
2918
2919
|
protoOf(LruCache$load$slambda_1).r7 = function () {
|
|
2919
2920
|
var suspendResult = this.l7_1;
|
|
@@ -2923,10 +2924,10 @@
|
|
|
2923
2924
|
switch (tmp) {
|
|
2924
2925
|
case 0:
|
|
2925
2926
|
this.k7_1 = 2;
|
|
2926
|
-
this.
|
|
2927
|
-
this.
|
|
2927
|
+
this.d1g_1 = this.y1f_1.n1f_1;
|
|
2928
|
+
this.c1g_1 = null;
|
|
2928
2929
|
this.j7_1 = 1;
|
|
2929
|
-
suspendResult = this.
|
|
2930
|
+
suspendResult = this.d1g_1.qw(this.c1g_1, this);
|
|
2930
2931
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2931
2932
|
return suspendResult;
|
|
2932
2933
|
}
|
|
@@ -2937,37 +2938,37 @@
|
|
|
2937
2938
|
l$ret$1: do {
|
|
2938
2939
|
var tmp_0;
|
|
2939
2940
|
try {
|
|
2940
|
-
this.
|
|
2941
|
+
this.y1f_1.p1f_1.w3(this.z1f_1);
|
|
2941
2942
|
var oldest = null;
|
|
2942
2943
|
var tmp_1;
|
|
2943
|
-
if (this.
|
|
2944
|
-
var tmp0 = this.
|
|
2945
|
-
var key = this.
|
|
2944
|
+
if (this.y1f_1.o1f_1.o() >= this.y1f_1.k1f_1) {
|
|
2945
|
+
var tmp0 = this.y1f_1.o1f_1;
|
|
2946
|
+
var key = this.z1f_1;
|
|
2946
2947
|
tmp_1 = !(isInterface(tmp0, KtMap) ? tmp0 : THROW_CCE()).r1(key);
|
|
2947
2948
|
} else {
|
|
2948
2949
|
tmp_1 = false;
|
|
2949
2950
|
}
|
|
2950
2951
|
if (tmp_1) {
|
|
2951
|
-
var iter = this.
|
|
2952
|
+
var iter = this.y1f_1.o1f_1.w1().l();
|
|
2952
2953
|
oldest = iter.n().q1();
|
|
2953
2954
|
iter.v2();
|
|
2954
2955
|
}
|
|
2955
|
-
var tmp0_0 = this.
|
|
2956
|
-
var tmp2 = this.
|
|
2957
|
-
var value = this.
|
|
2956
|
+
var tmp0_0 = this.y1f_1.o1f_1;
|
|
2957
|
+
var tmp2 = this.z1f_1;
|
|
2958
|
+
var value = this.a1g_1;
|
|
2958
2959
|
tmp0_0.v3(tmp2, value);
|
|
2959
2960
|
tmp$ret$0 = oldest;
|
|
2960
2961
|
break l$ret$1;
|
|
2961
2962
|
} catch ($p) {
|
|
2962
2963
|
var tmp_2;
|
|
2963
2964
|
var t = $p;
|
|
2964
|
-
this.
|
|
2965
|
+
this.d1g_1.bw(this.c1g_1);
|
|
2965
2966
|
throw t;
|
|
2966
2967
|
}
|
|
2967
2968
|
}
|
|
2968
2969
|
while (false);
|
|
2969
2970
|
var tmp_3 = tmp$ret$0;
|
|
2970
|
-
this.
|
|
2971
|
+
this.d1g_1.bw(this.c1g_1);
|
|
2971
2972
|
return tmp_3;
|
|
2972
2973
|
case 2:
|
|
2973
2974
|
throw this.m7_1;
|
|
@@ -2983,21 +2984,21 @@
|
|
|
2983
2984
|
}
|
|
2984
2985
|
while (true);
|
|
2985
2986
|
};
|
|
2986
|
-
protoOf(LruCache$load$slambda_1).
|
|
2987
|
-
var i = new LruCache$load$slambda_1(this.
|
|
2988
|
-
i.
|
|
2987
|
+
protoOf(LruCache$load$slambda_1).c1c = function ($this$withContext, completion) {
|
|
2988
|
+
var i = new LruCache$load$slambda_1(this.y1f_1, this.z1f_1, this.a1g_1, completion);
|
|
2989
|
+
i.b1g_1 = $this$withContext;
|
|
2989
2990
|
return i;
|
|
2990
2991
|
};
|
|
2991
2992
|
function LruCache$load$slambda_2(this$0, $key, $value, resultContinuation) {
|
|
2992
2993
|
var i = new LruCache$load$slambda_1(this$0, $key, $value, resultContinuation);
|
|
2993
2994
|
return constructCallableReference(function ($this$withContext, $completion) {
|
|
2994
|
-
return i.
|
|
2995
|
+
return i.e1g($this$withContext, $completion);
|
|
2995
2996
|
}, 1);
|
|
2996
2997
|
}
|
|
2997
2998
|
function $getCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
|
|
2998
2999
|
CoroutineImpl.call(this, resultContinuation);
|
|
2999
|
-
this.
|
|
3000
|
-
this.
|
|
3000
|
+
this.n1g_1 = _this__u8e3s4;
|
|
3001
|
+
this.o1g_1 = key;
|
|
3001
3002
|
}
|
|
3002
3003
|
protoOf($getCOROUTINE$).r7 = function () {
|
|
3003
3004
|
var suspendResult = this.l7_1;
|
|
@@ -3016,7 +3017,7 @@
|
|
|
3016
3017
|
}
|
|
3017
3018
|
|
|
3018
3019
|
this.j7_1 = 2;
|
|
3019
|
-
suspendResult = lookupOrClaim(this.
|
|
3020
|
+
suspendResult = lookupOrClaim(this.n1g_1, this.o1g_1, this);
|
|
3020
3021
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3021
3022
|
return suspendResult;
|
|
3022
3023
|
}
|
|
@@ -3025,11 +3026,11 @@
|
|
|
3025
3026
|
case 2:
|
|
3026
3027
|
var lookup = suspendResult;
|
|
3027
3028
|
if (lookup instanceof Hit) {
|
|
3028
|
-
return lookup.
|
|
3029
|
+
return lookup.t1d_1;
|
|
3029
3030
|
} else {
|
|
3030
3031
|
if (lookup instanceof Owner) {
|
|
3031
3032
|
this.j7_1 = 7;
|
|
3032
|
-
suspendResult = load(this.
|
|
3033
|
+
suspendResult = load(this.n1g_1, this.o1g_1, lookup.v1d_1, this);
|
|
3033
3034
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3034
3035
|
return suspendResult;
|
|
3035
3036
|
}
|
|
@@ -3038,7 +3039,7 @@
|
|
|
3038
3039
|
if (lookup instanceof Await) {
|
|
3039
3040
|
this.k7_1 = 4;
|
|
3040
3041
|
this.j7_1 = 3;
|
|
3041
|
-
suspendResult = lookup.
|
|
3042
|
+
suspendResult = lookup.u1d_1.fo(this);
|
|
3042
3043
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3043
3044
|
return suspendResult;
|
|
3044
3045
|
}
|
|
@@ -3090,8 +3091,8 @@
|
|
|
3090
3091
|
};
|
|
3091
3092
|
function $lookupOrClaimCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
|
|
3092
3093
|
CoroutineImpl.call(this, resultContinuation);
|
|
3093
|
-
this.
|
|
3094
|
-
this.
|
|
3094
|
+
this.e1e_1 = _this__u8e3s4;
|
|
3095
|
+
this.f1e_1 = key;
|
|
3095
3096
|
}
|
|
3096
3097
|
protoOf($lookupOrClaimCOROUTINE$).r7 = function () {
|
|
3097
3098
|
var suspendResult = this.l7_1;
|
|
@@ -3101,10 +3102,10 @@
|
|
|
3101
3102
|
switch (tmp) {
|
|
3102
3103
|
case 0:
|
|
3103
3104
|
this.k7_1 = 2;
|
|
3104
|
-
this.
|
|
3105
|
-
this.
|
|
3105
|
+
this.h1e_1 = this.e1e_1.n1f_1;
|
|
3106
|
+
this.g1e_1 = null;
|
|
3106
3107
|
this.j7_1 = 1;
|
|
3107
|
-
suspendResult = this.
|
|
3108
|
+
suspendResult = this.h1e_1.qw(this.g1e_1, this);
|
|
3108
3109
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3109
3110
|
return suspendResult;
|
|
3110
3111
|
}
|
|
@@ -3117,22 +3118,22 @@
|
|
|
3117
3118
|
try {
|
|
3118
3119
|
var tmp$ret$0 = Unit_instance;
|
|
3119
3120
|
l$ret$1: do {
|
|
3120
|
-
var hit = this.
|
|
3121
|
+
var hit = this.e1e_1.o1f_1.w3(this.f1e_1);
|
|
3121
3122
|
if (!(hit == null)) {
|
|
3122
|
-
var tmp0 = this.
|
|
3123
|
-
var key = this.
|
|
3123
|
+
var tmp0 = this.e1e_1.o1f_1;
|
|
3124
|
+
var key = this.f1e_1;
|
|
3124
3125
|
tmp0.v3(key, hit);
|
|
3125
3126
|
tmp$ret$0 = new Hit(hit);
|
|
3126
3127
|
break l$ret$1;
|
|
3127
3128
|
}
|
|
3128
|
-
var raced = this.
|
|
3129
|
+
var raced = this.e1e_1.p1f_1.t1(this.f1e_1);
|
|
3129
3130
|
var tmp_1;
|
|
3130
3131
|
if (!(raced == null)) {
|
|
3131
3132
|
tmp_1 = new Await(raced);
|
|
3132
3133
|
} else {
|
|
3133
3134
|
var ours = CompletableDeferred();
|
|
3134
|
-
var tmp0_0 = this.
|
|
3135
|
-
var key_0 = this.
|
|
3135
|
+
var tmp0_0 = this.e1e_1.p1f_1;
|
|
3136
|
+
var key_0 = this.f1e_1;
|
|
3136
3137
|
tmp0_0.v3(key_0, ours);
|
|
3137
3138
|
tmp_1 = new Owner(ours);
|
|
3138
3139
|
}
|
|
@@ -3144,13 +3145,13 @@
|
|
|
3144
3145
|
} catch ($p) {
|
|
3145
3146
|
var tmp_2;
|
|
3146
3147
|
var t = $p;
|
|
3147
|
-
this.
|
|
3148
|
+
this.h1e_1.bw(this.g1e_1);
|
|
3148
3149
|
throw t;
|
|
3149
3150
|
}
|
|
3150
3151
|
}
|
|
3151
3152
|
while (false);
|
|
3152
3153
|
var tmp_3 = tmp$ret$2;
|
|
3153
|
-
this.
|
|
3154
|
+
this.h1e_1.bw(this.g1e_1);
|
|
3154
3155
|
return tmp_3;
|
|
3155
3156
|
case 2:
|
|
3156
3157
|
throw this.m7_1;
|
|
@@ -3168,9 +3169,9 @@
|
|
|
3168
3169
|
};
|
|
3169
3170
|
function $loadCOROUTINE$(_this__u8e3s4, key, ours, resultContinuation) {
|
|
3170
3171
|
CoroutineImpl.call(this, resultContinuation);
|
|
3171
|
-
this.
|
|
3172
|
-
this.
|
|
3173
|
-
this.
|
|
3172
|
+
this.q1e_1 = _this__u8e3s4;
|
|
3173
|
+
this.r1e_1 = key;
|
|
3174
|
+
this.s1e_1 = ours;
|
|
3174
3175
|
}
|
|
3175
3176
|
protoOf($loadCOROUTINE$).r7 = function () {
|
|
3176
3177
|
var suspendResult = this.l7_1;
|
|
@@ -3182,14 +3183,14 @@
|
|
|
3182
3183
|
this.k7_1 = 6;
|
|
3183
3184
|
this.k7_1 = 2;
|
|
3184
3185
|
this.j7_1 = 1;
|
|
3185
|
-
suspendResult = this.
|
|
3186
|
+
suspendResult = this.q1e_1.l1f_1(this.r1e_1, this);
|
|
3186
3187
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3187
3188
|
return suspendResult;
|
|
3188
3189
|
}
|
|
3189
3190
|
|
|
3190
3191
|
continue $sm;
|
|
3191
3192
|
case 1:
|
|
3192
|
-
this.
|
|
3193
|
+
this.u1e_1 = suspendResult;
|
|
3193
3194
|
this.k7_1 = 6;
|
|
3194
3195
|
this.j7_1 = 4;
|
|
3195
3196
|
continue $sm;
|
|
@@ -3197,10 +3198,10 @@
|
|
|
3197
3198
|
this.k7_1 = 6;
|
|
3198
3199
|
var tmp_0 = this.m7_1;
|
|
3199
3200
|
if (tmp_0 instanceof Error) {
|
|
3200
|
-
this.
|
|
3201
|
+
this.v1e_1 = this.m7_1;
|
|
3201
3202
|
this.j7_1 = 3;
|
|
3202
3203
|
var tmp_1 = NonCancellable_getInstance();
|
|
3203
|
-
suspendResult = withContext(tmp_1, LruCache$load$slambda_0(this.
|
|
3204
|
+
suspendResult = withContext(tmp_1, LruCache$load$slambda_0(this.q1e_1, this.r1e_1, null), this);
|
|
3204
3205
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3205
3206
|
return suspendResult;
|
|
3206
3207
|
}
|
|
@@ -3211,22 +3212,22 @@
|
|
|
3211
3212
|
|
|
3212
3213
|
case 3:
|
|
3213
3214
|
var tmp_2;
|
|
3214
|
-
var tmp_3 = this.
|
|
3215
|
+
var tmp_3 = this.v1e_1;
|
|
3215
3216
|
if (tmp_3 instanceof CancellationException) {
|
|
3216
3217
|
tmp_2 = new LoadAbandoned();
|
|
3217
3218
|
} else {
|
|
3218
|
-
tmp_2 = this.
|
|
3219
|
+
tmp_2 = this.v1e_1;
|
|
3219
3220
|
}
|
|
3220
3221
|
|
|
3221
|
-
this.
|
|
3222
|
+
this.s1e_1.jr(tmp_2);
|
|
3222
3223
|
var tmp_4 = this;
|
|
3223
|
-
throw this.
|
|
3224
|
+
throw this.v1e_1;
|
|
3224
3225
|
case 4:
|
|
3225
3226
|
this.k7_1 = 6;
|
|
3226
|
-
this.
|
|
3227
|
+
this.t1e_1 = this.u1e_1;
|
|
3227
3228
|
this.j7_1 = 5;
|
|
3228
3229
|
var tmp_5 = NonCancellable_getInstance();
|
|
3229
|
-
suspendResult = withContext(tmp_5, LruCache$load$slambda_2(this.
|
|
3230
|
+
suspendResult = withContext(tmp_5, LruCache$load$slambda_2(this.q1e_1, this.r1e_1, this.t1e_1, null), this);
|
|
3230
3231
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3231
3232
|
return suspendResult;
|
|
3232
3233
|
}
|
|
@@ -3234,16 +3235,16 @@
|
|
|
3234
3235
|
continue $sm;
|
|
3235
3236
|
case 5:
|
|
3236
3237
|
var evicted = suspendResult;
|
|
3237
|
-
this.
|
|
3238
|
+
this.s1e_1.ir(this.t1e_1);
|
|
3238
3239
|
if (!(evicted == null)) {
|
|
3239
|
-
var tmp0_safe_receiver = this.
|
|
3240
|
+
var tmp0_safe_receiver = this.q1e_1.m1f_1;
|
|
3240
3241
|
if (tmp0_safe_receiver == null)
|
|
3241
3242
|
null;
|
|
3242
3243
|
else
|
|
3243
3244
|
tmp0_safe_receiver(evicted);
|
|
3244
3245
|
}
|
|
3245
3246
|
|
|
3246
|
-
return this.
|
|
3247
|
+
return this.t1e_1;
|
|
3247
3248
|
case 6:
|
|
3248
3249
|
throw this.m7_1;
|
|
3249
3250
|
}
|
|
@@ -3260,33 +3261,33 @@
|
|
|
3260
3261
|
};
|
|
3261
3262
|
function LruCache(maxSize, loader, onEvict) {
|
|
3262
3263
|
onEvict = onEvict === VOID ? null : onEvict;
|
|
3263
|
-
this.
|
|
3264
|
-
this.
|
|
3265
|
-
this.
|
|
3264
|
+
this.k1f_1 = maxSize;
|
|
3265
|
+
this.l1f_1 = loader;
|
|
3266
|
+
this.m1f_1 = onEvict;
|
|
3266
3267
|
// Inline function 'kotlin.require' call
|
|
3267
|
-
if (!(this.
|
|
3268
|
+
if (!(this.k1f_1 > 0)) {
|
|
3268
3269
|
var message = 'Cache size must be greater than 0';
|
|
3269
3270
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3270
3271
|
}
|
|
3271
|
-
this.
|
|
3272
|
-
this.
|
|
3272
|
+
this.n1f_1 = Mutex();
|
|
3273
|
+
this.o1f_1 = LinkedHashMap_init_$Create$();
|
|
3273
3274
|
var tmp = this;
|
|
3274
3275
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
3275
|
-
tmp.
|
|
3276
|
+
tmp.p1f_1 = LinkedHashMap_init_$Create$();
|
|
3276
3277
|
}
|
|
3277
|
-
protoOf(LruCache).
|
|
3278
|
+
protoOf(LruCache).p1g = function (key, $completion) {
|
|
3278
3279
|
var tmp = new $getCOROUTINE$(this, key, $completion);
|
|
3279
3280
|
tmp.l7_1 = Unit_instance;
|
|
3280
3281
|
tmp.m7_1 = null;
|
|
3281
3282
|
return tmp.r7();
|
|
3282
3283
|
};
|
|
3283
3284
|
function RawTile(width, height, rgba) {
|
|
3284
|
-
this.
|
|
3285
|
-
this.
|
|
3286
|
-
this.
|
|
3285
|
+
this.q1g_1 = width;
|
|
3286
|
+
this.r1g_1 = height;
|
|
3287
|
+
this.s1g_1 = rgba;
|
|
3287
3288
|
// Inline function 'kotlin.require' call
|
|
3288
|
-
if (!(this.
|
|
3289
|
-
var message = 'rgba size ' + this.
|
|
3289
|
+
if (!(this.s1g_1.length === imul(imul(this.q1g_1, this.r1g_1), 4))) {
|
|
3290
|
+
var message = 'rgba size ' + this.s1g_1.length + ' does not match width*height*4 (' + imul(imul(this.q1g_1, this.r1g_1), 4) + ')';
|
|
3290
3291
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3291
3292
|
}
|
|
3292
3293
|
}
|
|
@@ -3295,41 +3296,41 @@
|
|
|
3295
3296
|
return true;
|
|
3296
3297
|
if (!(other instanceof RawTile))
|
|
3297
3298
|
return false;
|
|
3298
|
-
return this.
|
|
3299
|
+
return this.q1g_1 === other.q1g_1 && this.r1g_1 === other.r1g_1 && contentEquals(this.s1g_1, other.s1g_1);
|
|
3299
3300
|
};
|
|
3300
3301
|
protoOf(RawTile).hashCode = function () {
|
|
3301
|
-
var result = this.
|
|
3302
|
-
result = imul(31, result) + this.
|
|
3303
|
-
result = imul(31, result) + contentHashCode(this.
|
|
3302
|
+
var result = this.q1g_1;
|
|
3303
|
+
result = imul(31, result) + this.r1g_1 | 0;
|
|
3304
|
+
result = imul(31, result) + contentHashCode(this.s1g_1) | 0;
|
|
3304
3305
|
return result;
|
|
3305
3306
|
};
|
|
3306
3307
|
function TerrainSample(latitude, longitude, elevation, origin, afterError) {
|
|
3307
|
-
this.
|
|
3308
|
-
this.
|
|
3309
|
-
this.
|
|
3310
|
-
this.
|
|
3311
|
-
this.
|
|
3308
|
+
this.h19_1 = latitude;
|
|
3309
|
+
this.i19_1 = longitude;
|
|
3310
|
+
this.j19_1 = elevation;
|
|
3311
|
+
this.k19_1 = origin;
|
|
3312
|
+
this.l19_1 = afterError;
|
|
3312
3313
|
}
|
|
3313
|
-
protoOf(TerrainSample).
|
|
3314
|
+
protoOf(TerrainSample).t1g = function (latitude, longitude, elevation, origin, afterError) {
|
|
3314
3315
|
return new TerrainSample(latitude, longitude, elevation, origin, afterError);
|
|
3315
3316
|
};
|
|
3316
|
-
protoOf(TerrainSample).
|
|
3317
|
-
latitude = latitude === VOID ? this.
|
|
3318
|
-
longitude = longitude === VOID ? this.
|
|
3319
|
-
elevation = elevation === VOID ? this.
|
|
3320
|
-
origin = origin === VOID ? this.
|
|
3321
|
-
afterError = afterError === VOID ? this.
|
|
3322
|
-
return $super === VOID ? this.
|
|
3317
|
+
protoOf(TerrainSample).m19 = function (latitude, longitude, elevation, origin, afterError, $super) {
|
|
3318
|
+
latitude = latitude === VOID ? this.h19_1 : latitude;
|
|
3319
|
+
longitude = longitude === VOID ? this.i19_1 : longitude;
|
|
3320
|
+
elevation = elevation === VOID ? this.j19_1 : elevation;
|
|
3321
|
+
origin = origin === VOID ? this.k19_1 : origin;
|
|
3322
|
+
afterError = afterError === VOID ? this.l19_1 : afterError;
|
|
3323
|
+
return $super === VOID ? this.t1g(latitude, longitude, elevation, origin, afterError) : $super.t1g.call(this, latitude, longitude, elevation, origin, afterError);
|
|
3323
3324
|
};
|
|
3324
3325
|
protoOf(TerrainSample).toString = function () {
|
|
3325
|
-
return 'TerrainSample(latitude=' + this.
|
|
3326
|
+
return 'TerrainSample(latitude=' + this.h19_1 + ', longitude=' + this.i19_1 + ', elevation=' + this.j19_1 + ', origin=' + this.k19_1.toString() + ', afterError=' + this.l19_1 + ')';
|
|
3326
3327
|
};
|
|
3327
3328
|
protoOf(TerrainSample).hashCode = function () {
|
|
3328
|
-
var result = getNumberHashCode(this.
|
|
3329
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3330
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3331
|
-
result = imul(result, 31) + this.
|
|
3332
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
3329
|
+
var result = getNumberHashCode(this.h19_1);
|
|
3330
|
+
result = imul(result, 31) + getNumberHashCode(this.i19_1) | 0;
|
|
3331
|
+
result = imul(result, 31) + getNumberHashCode(this.j19_1) | 0;
|
|
3332
|
+
result = imul(result, 31) + this.k19_1.hashCode() | 0;
|
|
3333
|
+
result = imul(result, 31) + getBooleanHashCode(this.l19_1) | 0;
|
|
3333
3334
|
return result;
|
|
3334
3335
|
};
|
|
3335
3336
|
protoOf(TerrainSample).equals = function (other) {
|
|
@@ -3337,15 +3338,15 @@
|
|
|
3337
3338
|
return true;
|
|
3338
3339
|
if (!(other instanceof TerrainSample))
|
|
3339
3340
|
return false;
|
|
3340
|
-
if (!equals(this.
|
|
3341
|
+
if (!equals(this.h19_1, other.h19_1))
|
|
3341
3342
|
return false;
|
|
3342
|
-
if (!equals(this.
|
|
3343
|
+
if (!equals(this.i19_1, other.i19_1))
|
|
3343
3344
|
return false;
|
|
3344
|
-
if (!equals(this.
|
|
3345
|
+
if (!equals(this.j19_1, other.j19_1))
|
|
3345
3346
|
return false;
|
|
3346
|
-
if (!this.
|
|
3347
|
+
if (!this.k19_1.equals(other.k19_1))
|
|
3347
3348
|
return false;
|
|
3348
|
-
if (!(this.
|
|
3349
|
+
if (!(this.l19_1 === other.l19_1))
|
|
3349
3350
|
return false;
|
|
3350
3351
|
return true;
|
|
3351
3352
|
};
|
|
@@ -3379,13 +3380,13 @@
|
|
|
3379
3380
|
var _iterator__ex2g4s = this_0.l();
|
|
3380
3381
|
while (_iterator__ex2g4s.m()) {
|
|
3381
3382
|
var item = _iterator__ex2g4s.n();
|
|
3382
|
-
var tmp$ret$2 = item.
|
|
3383
|
+
var tmp$ret$2 = item.w1g_1;
|
|
3383
3384
|
destination.k(tmp$ret$2);
|
|
3384
3385
|
}
|
|
3385
|
-
tmp.
|
|
3386
|
+
tmp.f19_1 = destination;
|
|
3386
3387
|
}
|
|
3387
|
-
protoOf(Companion_0).
|
|
3388
|
-
var template = config.
|
|
3388
|
+
protoOf(Companion_0).g19 = function (config, declared, latitude, longitude) {
|
|
3389
|
+
var template = config.a19_1;
|
|
3389
3390
|
var tmp;
|
|
3390
3391
|
var tmp0 = get_entries_0();
|
|
3391
3392
|
var tmp$ret$0;
|
|
@@ -3404,7 +3405,7 @@
|
|
|
3404
3405
|
var _iterator__ex2g4s = tmp0.l();
|
|
3405
3406
|
while (_iterator__ex2g4s.m()) {
|
|
3406
3407
|
var element = _iterator__ex2g4s.n();
|
|
3407
|
-
if (element.
|
|
3408
|
+
if (element.m1b(config.y18_1).a19_1 === template) {
|
|
3408
3409
|
tmp$ret$0 = true;
|
|
3409
3410
|
break $l$block_0;
|
|
3410
3411
|
}
|
|
@@ -3414,7 +3415,7 @@
|
|
|
3414
3415
|
if (tmp$ret$0) {
|
|
3415
3416
|
tmp = ElevationSource_IGN_LIDAR_HD_getInstance();
|
|
3416
3417
|
} else {
|
|
3417
|
-
if (template === ElevationSource_MAPTERHORN_getInstance().
|
|
3418
|
+
if (template === ElevationSource_MAPTERHORN_getInstance().m1b(config.y18_1).a19_1) {
|
|
3418
3419
|
tmp = ElevationSource_MAPTERHORN_getInstance();
|
|
3419
3420
|
} else {
|
|
3420
3421
|
tmp = declared;
|
|
@@ -3427,7 +3428,7 @@
|
|
|
3427
3428
|
tmp_1 = TerrainOrigin_IGN_LIDAR_HD_getInstance();
|
|
3428
3429
|
break;
|
|
3429
3430
|
case 0:
|
|
3430
|
-
tmp_1 = IgnLidarHdCoverage_getInstance().
|
|
3431
|
+
tmp_1 = IgnLidarHdCoverage_getInstance().f1d(latitude, longitude) ? TerrainOrigin_MAPTERHORN_MEASURED_getInstance() : TerrainOrigin_MAPTERHORN_getInstance();
|
|
3431
3432
|
break;
|
|
3432
3433
|
case -1:
|
|
3433
3434
|
tmp_1 = TerrainOrigin_OTHER_getInstance();
|
|
@@ -3456,8 +3457,8 @@
|
|
|
3456
3457
|
var $ENTRIES_1;
|
|
3457
3458
|
function TerrainOrigin(name, ordinal, id, measured) {
|
|
3458
3459
|
Enum.call(this, name, ordinal);
|
|
3459
|
-
this.
|
|
3460
|
-
this.
|
|
3460
|
+
this.w1g_1 = id;
|
|
3461
|
+
this.x1g_1 = measured;
|
|
3461
3462
|
}
|
|
3462
3463
|
function TerrainOrigin_IGN_LIDAR_HD_getInstance() {
|
|
3463
3464
|
static_init_2();
|
|
@@ -3480,7 +3481,7 @@
|
|
|
3480
3481
|
return TerrainOrigin_NONE_instance;
|
|
3481
3482
|
}
|
|
3482
3483
|
function Tile_init_$Init$(raw, $this) {
|
|
3483
|
-
Tile.call($this, raw.
|
|
3484
|
+
Tile.call($this, raw.q1g_1, raw.r1g_1, raw.s1g_1);
|
|
3484
3485
|
return $this;
|
|
3485
3486
|
}
|
|
3486
3487
|
function Tile_init_$Create$(raw) {
|
|
@@ -3488,7 +3489,7 @@
|
|
|
3488
3489
|
}
|
|
3489
3490
|
function Companion_1() {
|
|
3490
3491
|
}
|
|
3491
|
-
protoOf(Companion_1).
|
|
3492
|
+
protoOf(Companion_1).y1g = function (r, g, b) {
|
|
3492
3493
|
var raw = r * 256.0 + g + b / 256.0 - 32768.0;
|
|
3493
3494
|
return round(raw * 100.0) / 100.0;
|
|
3494
3495
|
};
|
|
@@ -3501,18 +3502,8 @@
|
|
|
3501
3502
|
this.d16_1 = height;
|
|
3502
3503
|
this.e16_1 = rgba;
|
|
3503
3504
|
this.f16_1 = false;
|
|
3504
|
-
var tmp = this;
|
|
3505
|
-
var tmp_0 = 0;
|
|
3506
|
-
var tmp_1 = imul(this.c16_1, this.d16_1);
|
|
3507
|
-
var tmp_2 = new Float64Array(tmp_1);
|
|
3508
|
-
while (tmp_0 < tmp_1) {
|
|
3509
|
-
tmp_2[tmp_0] = NaN;
|
|
3510
|
-
tmp_0 = tmp_0 + 1 | 0;
|
|
3511
|
-
}
|
|
3512
|
-
tmp.g16_1 = tmp_2;
|
|
3513
|
-
this.h16_1 = 0;
|
|
3514
3505
|
}
|
|
3515
|
-
protoOf(Tile).
|
|
3506
|
+
protoOf(Tile).g16 = function (pixel) {
|
|
3516
3507
|
var containsUpper = this.c16_1;
|
|
3517
3508
|
var containsArg = pixel.v15_1;
|
|
3518
3509
|
// Inline function 'kotlin.require' call
|
|
@@ -3527,18 +3518,11 @@
|
|
|
3527
3518
|
var message_0 = 'Invalid y position: ' + pixel.w15_1 + '. Must be between 0 and ' + (this.d16_1 - 1 | 0);
|
|
3528
3519
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
3529
3520
|
}
|
|
3530
|
-
var
|
|
3531
|
-
var cached = this.g16_1[idx];
|
|
3532
|
-
if (!isNaN_0(cached))
|
|
3533
|
-
return cached;
|
|
3534
|
-
var byteOffset = imul(idx, 4);
|
|
3521
|
+
var byteOffset = imul(imul(pixel.w15_1, this.c16_1) + pixel.v15_1 | 0, 4);
|
|
3535
3522
|
var r = this.e16_1[byteOffset] & 255;
|
|
3536
3523
|
var g = this.e16_1[byteOffset + 1 | 0] & 255;
|
|
3537
3524
|
var b = this.e16_1[byteOffset + 2 | 0] & 255;
|
|
3538
|
-
|
|
3539
|
-
this.g16_1[idx] = elevation;
|
|
3540
|
-
this.h16_1 = this.h16_1 + 1 | 0;
|
|
3541
|
-
return elevation;
|
|
3525
|
+
return r === 0 && g === 0 && b === 0 ? NaN : Companion_instance_2.y1g(r, g, b);
|
|
3542
3526
|
};
|
|
3543
3527
|
function UnreadableTiles$Companion$monotonicClock$lambda($origin) {
|
|
3544
3528
|
return function () {
|
|
@@ -3546,11 +3530,11 @@
|
|
|
3546
3530
|
};
|
|
3547
3531
|
}
|
|
3548
3532
|
function Entry(failure, untilMs) {
|
|
3549
|
-
this.
|
|
3550
|
-
this.
|
|
3533
|
+
this.z1g_1 = failure;
|
|
3534
|
+
this.a1h_1 = untilMs;
|
|
3551
3535
|
}
|
|
3552
3536
|
function _get_empty__hz710c($this) {
|
|
3553
|
-
var tmp0 = $this.
|
|
3537
|
+
var tmp0 = $this.h1h_1;
|
|
3554
3538
|
var tmp = KProperty1;
|
|
3555
3539
|
// Inline function 'kotlin.getValue' call
|
|
3556
3540
|
getPropertyCallableRef('empty', 1, tmp, UnreadableTiles$_get_empty_$ref_9kivqt(), null);
|
|
@@ -3558,11 +3542,11 @@
|
|
|
3558
3542
|
}
|
|
3559
3543
|
function Companion_2() {
|
|
3560
3544
|
Companion_instance_3 = this;
|
|
3561
|
-
this.
|
|
3545
|
+
this.i1h_1 = new Long(60000, 0);
|
|
3562
3546
|
var tmp = this;
|
|
3563
3547
|
// Inline function 'kotlin.let' call
|
|
3564
3548
|
var origin = Monotonic_instance.wb();
|
|
3565
|
-
tmp.
|
|
3549
|
+
tmp.j1h_1 = UnreadableTiles$Companion$monotonicClock$lambda(origin);
|
|
3566
3550
|
}
|
|
3567
3551
|
var Companion_instance_3;
|
|
3568
3552
|
function Companion_getInstance_3() {
|
|
@@ -3573,7 +3557,7 @@
|
|
|
3573
3557
|
function UnreadableTiles$empty$delegate$lambda(this$0) {
|
|
3574
3558
|
return function () {
|
|
3575
3559
|
// Inline function 'kotlin.also' call
|
|
3576
|
-
var this_0 = Tile_init_$Create$(noDataTile(this$0.
|
|
3560
|
+
var this_0 = Tile_init_$Create$(noDataTile(this$0.c1h_1));
|
|
3577
3561
|
this_0.f16_1 = true;
|
|
3578
3562
|
return this_0;
|
|
3579
3563
|
};
|
|
@@ -3585,8 +3569,8 @@
|
|
|
3585
3569
|
}
|
|
3586
3570
|
function $cachedCOROUTINE$(_this__u8e3s4, tc, resultContinuation) {
|
|
3587
3571
|
CoroutineImpl.call(this, resultContinuation);
|
|
3588
|
-
this.
|
|
3589
|
-
this.
|
|
3572
|
+
this.s1h_1 = _this__u8e3s4;
|
|
3573
|
+
this.t1h_1 = tc;
|
|
3590
3574
|
}
|
|
3591
3575
|
protoOf($cachedCOROUTINE$).r7 = function () {
|
|
3592
3576
|
var suspendResult = this.l7_1;
|
|
@@ -3596,10 +3580,10 @@
|
|
|
3596
3580
|
switch (tmp) {
|
|
3597
3581
|
case 0:
|
|
3598
3582
|
this.k7_1 = 4;
|
|
3599
|
-
this.
|
|
3600
|
-
this.
|
|
3583
|
+
this.w1h_1 = this.s1h_1.f1h_1;
|
|
3584
|
+
this.v1h_1 = null;
|
|
3601
3585
|
this.j7_1 = 1;
|
|
3602
|
-
suspendResult = this.
|
|
3586
|
+
suspendResult = this.w1h_1.qw(this.v1h_1, this);
|
|
3603
3587
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3604
3588
|
return suspendResult;
|
|
3605
3589
|
}
|
|
@@ -3612,7 +3596,7 @@
|
|
|
3612
3596
|
l$ret$1: do {
|
|
3613
3597
|
var tmp_0;
|
|
3614
3598
|
try {
|
|
3615
|
-
var tmp0_elvis_lhs = this.
|
|
3599
|
+
var tmp0_elvis_lhs = this.s1h_1.g1h_1.t1(this.t1h_1);
|
|
3616
3600
|
var tmp_1;
|
|
3617
3601
|
if (tmp0_elvis_lhs == null) {
|
|
3618
3602
|
tmp$ret$0 = null;
|
|
@@ -3621,8 +3605,8 @@
|
|
|
3621
3605
|
tmp_1 = tmp0_elvis_lhs;
|
|
3622
3606
|
}
|
|
3623
3607
|
var e = tmp_1;
|
|
3624
|
-
if (compare(this.
|
|
3625
|
-
this.
|
|
3608
|
+
if (compare(this.s1h_1.e1h_1(), e.a1h_1) >= 0) {
|
|
3609
|
+
this.s1h_1.g1h_1.w3(this.t1h_1);
|
|
3626
3610
|
tmp$ret$0 = null;
|
|
3627
3611
|
break l$ret$1;
|
|
3628
3612
|
}
|
|
@@ -3631,27 +3615,27 @@
|
|
|
3631
3615
|
} catch ($p) {
|
|
3632
3616
|
var tmp_2;
|
|
3633
3617
|
var t = $p;
|
|
3634
|
-
this.
|
|
3618
|
+
this.w1h_1.bw(this.v1h_1);
|
|
3635
3619
|
throw t;
|
|
3636
3620
|
}
|
|
3637
3621
|
}
|
|
3638
3622
|
while (false);
|
|
3639
3623
|
var tmp_3 = tmp$ret$0;
|
|
3640
|
-
this.
|
|
3624
|
+
this.w1h_1.bw(this.v1h_1);
|
|
3641
3625
|
return tmp_3;
|
|
3642
3626
|
}
|
|
3643
3627
|
while (false);
|
|
3644
3628
|
var tmp_4 = tmp$ret$2;
|
|
3645
|
-
this.
|
|
3629
|
+
this.w1h_1.bw(this.v1h_1);
|
|
3646
3630
|
var entry = tmp_4;
|
|
3647
3631
|
var tmp0_safe_receiver = this.p7().w7(Key_instance);
|
|
3648
3632
|
if (tmp0_safe_receiver == null) {
|
|
3649
|
-
this.
|
|
3633
|
+
this.u1h_1 = null;
|
|
3650
3634
|
this.j7_1 = 3;
|
|
3651
3635
|
continue $sm;
|
|
3652
3636
|
} else {
|
|
3653
3637
|
this.j7_1 = 2;
|
|
3654
|
-
suspendResult = tmp0_safe_receiver.
|
|
3638
|
+
suspendResult = tmp0_safe_receiver.a1i(entry.z1g_1, this);
|
|
3655
3639
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3656
3640
|
return suspendResult;
|
|
3657
3641
|
}
|
|
@@ -3660,11 +3644,11 @@
|
|
|
3660
3644
|
|
|
3661
3645
|
case 2:
|
|
3662
3646
|
var tmp_5 = this;
|
|
3663
|
-
tmp_5.
|
|
3647
|
+
tmp_5.u1h_1 = Unit_instance;
|
|
3664
3648
|
this.j7_1 = 3;
|
|
3665
3649
|
continue $sm;
|
|
3666
3650
|
case 3:
|
|
3667
|
-
return _get_empty__hz710c(this.
|
|
3651
|
+
return _get_empty__hz710c(this.s1h_1);
|
|
3668
3652
|
case 4:
|
|
3669
3653
|
throw this.m7_1;
|
|
3670
3654
|
}
|
|
@@ -3681,9 +3665,9 @@
|
|
|
3681
3665
|
};
|
|
3682
3666
|
function $rememberCOROUTINE$(_this__u8e3s4, tc, error, resultContinuation) {
|
|
3683
3667
|
CoroutineImpl.call(this, resultContinuation);
|
|
3684
|
-
this.
|
|
3685
|
-
this.
|
|
3686
|
-
this.
|
|
3668
|
+
this.j1i_1 = _this__u8e3s4;
|
|
3669
|
+
this.k1i_1 = tc;
|
|
3670
|
+
this.l1i_1 = error;
|
|
3687
3671
|
}
|
|
3688
3672
|
protoOf($rememberCOROUTINE$).r7 = function () {
|
|
3689
3673
|
var suspendResult = this.l7_1;
|
|
@@ -3694,13 +3678,13 @@
|
|
|
3694
3678
|
case 0:
|
|
3695
3679
|
this.k7_1 = 4;
|
|
3696
3680
|
var tmp_0 = this;
|
|
3697
|
-
var tmp0_elvis_lhs = this.
|
|
3698
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? getKClassFromExpression(this.
|
|
3699
|
-
tmp_0.
|
|
3700
|
-
this.
|
|
3701
|
-
this.
|
|
3681
|
+
var tmp0_elvis_lhs = this.l1i_1.message;
|
|
3682
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? getKClassFromExpression(this.l1i_1).t8() : tmp0_elvis_lhs;
|
|
3683
|
+
tmp_0.n1i_1 = new TileFailure(this.j1i_1.b1h_1, this.k1i_1, tmp1_elvis_lhs == null ? 'error' : tmp1_elvis_lhs);
|
|
3684
|
+
this.p1i_1 = this.j1i_1.f1h_1;
|
|
3685
|
+
this.o1i_1 = null;
|
|
3702
3686
|
this.j7_1 = 1;
|
|
3703
|
-
suspendResult = this.
|
|
3687
|
+
suspendResult = this.p1i_1.qw(this.o1i_1, this);
|
|
3704
3688
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3705
3689
|
return suspendResult;
|
|
3706
3690
|
}
|
|
@@ -3710,28 +3694,28 @@
|
|
|
3710
3694
|
l$ret$1: do {
|
|
3711
3695
|
var tmp_1;
|
|
3712
3696
|
try {
|
|
3713
|
-
var tmp0 = this.
|
|
3714
|
-
var tmp2 = this.
|
|
3715
|
-
var value = new Entry(this.
|
|
3697
|
+
var tmp0 = this.j1i_1.g1h_1;
|
|
3698
|
+
var tmp2 = this.k1i_1;
|
|
3699
|
+
var value = new Entry(this.n1i_1, add(this.j1i_1.e1h_1(), this.j1i_1.d1h_1));
|
|
3716
3700
|
tmp0.v3(tmp2, value);
|
|
3717
3701
|
break l$ret$1;
|
|
3718
3702
|
} catch ($p) {
|
|
3719
3703
|
var tmp_2;
|
|
3720
3704
|
var t = $p;
|
|
3721
|
-
this.
|
|
3705
|
+
this.p1i_1.bw(this.o1i_1);
|
|
3722
3706
|
throw t;
|
|
3723
3707
|
}
|
|
3724
3708
|
}
|
|
3725
3709
|
while (false);
|
|
3726
|
-
this.
|
|
3710
|
+
this.p1i_1.bw(this.o1i_1);
|
|
3727
3711
|
var tmp2_safe_receiver = this.p7().w7(Key_instance);
|
|
3728
3712
|
if (tmp2_safe_receiver == null) {
|
|
3729
|
-
this.
|
|
3713
|
+
this.m1i_1 = null;
|
|
3730
3714
|
this.j7_1 = 3;
|
|
3731
3715
|
continue $sm;
|
|
3732
3716
|
} else {
|
|
3733
3717
|
this.j7_1 = 2;
|
|
3734
|
-
suspendResult = tmp2_safe_receiver.
|
|
3718
|
+
suspendResult = tmp2_safe_receiver.a1i(this.n1i_1, this);
|
|
3735
3719
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3736
3720
|
return suspendResult;
|
|
3737
3721
|
}
|
|
@@ -3740,11 +3724,11 @@
|
|
|
3740
3724
|
|
|
3741
3725
|
case 2:
|
|
3742
3726
|
var tmp_3 = this;
|
|
3743
|
-
tmp_3.
|
|
3727
|
+
tmp_3.m1i_1 = Unit_instance;
|
|
3744
3728
|
this.j7_1 = 3;
|
|
3745
3729
|
continue $sm;
|
|
3746
3730
|
case 3:
|
|
3747
|
-
return _get_empty__hz710c(this.
|
|
3731
|
+
return _get_empty__hz710c(this.j1i_1);
|
|
3748
3732
|
case 4:
|
|
3749
3733
|
throw this.m7_1;
|
|
3750
3734
|
}
|
|
@@ -3762,40 +3746,40 @@
|
|
|
3762
3746
|
function UnreadableTiles(urlTemplate, tileSize, retryAfterMs, now) {
|
|
3763
3747
|
Companion_getInstance_3();
|
|
3764
3748
|
retryAfterMs = retryAfterMs === VOID ? new Long(60000, 0) : retryAfterMs;
|
|
3765
|
-
now = now === VOID ? Companion_getInstance_3().
|
|
3766
|
-
this.
|
|
3767
|
-
this.
|
|
3768
|
-
this.
|
|
3769
|
-
this.
|
|
3770
|
-
this.
|
|
3771
|
-
this.
|
|
3749
|
+
now = now === VOID ? Companion_getInstance_3().j1h_1 : now;
|
|
3750
|
+
this.b1h_1 = urlTemplate;
|
|
3751
|
+
this.c1h_1 = tileSize;
|
|
3752
|
+
this.d1h_1 = retryAfterMs;
|
|
3753
|
+
this.e1h_1 = now;
|
|
3754
|
+
this.f1h_1 = Mutex();
|
|
3755
|
+
this.g1h_1 = HashMap_init_$Create$();
|
|
3772
3756
|
var tmp = this;
|
|
3773
|
-
tmp.
|
|
3757
|
+
tmp.h1h_1 = lazy(UnreadableTiles$empty$delegate$lambda(this));
|
|
3774
3758
|
}
|
|
3775
|
-
protoOf(UnreadableTiles).
|
|
3759
|
+
protoOf(UnreadableTiles).q1i = function (tc, $completion) {
|
|
3776
3760
|
var tmp = new $cachedCOROUTINE$(this, tc, $completion);
|
|
3777
3761
|
tmp.l7_1 = Unit_instance;
|
|
3778
3762
|
tmp.m7_1 = null;
|
|
3779
3763
|
return tmp.r7();
|
|
3780
3764
|
};
|
|
3781
|
-
protoOf(UnreadableTiles).
|
|
3765
|
+
protoOf(UnreadableTiles).r1i = function (tc, error, $completion) {
|
|
3782
3766
|
var tmp = new $rememberCOROUTINE$(this, tc, error, $completion);
|
|
3783
3767
|
tmp.l7_1 = Unit_instance;
|
|
3784
3768
|
tmp.m7_1 = null;
|
|
3785
3769
|
return tmp.r7();
|
|
3786
3770
|
};
|
|
3787
3771
|
function TileFailure(urlTemplate, tile, message) {
|
|
3788
|
-
this.
|
|
3789
|
-
this.
|
|
3790
|
-
this.
|
|
3772
|
+
this.s1i_1 = urlTemplate;
|
|
3773
|
+
this.t1i_1 = tile;
|
|
3774
|
+
this.u1i_1 = message;
|
|
3791
3775
|
}
|
|
3792
3776
|
protoOf(TileFailure).toString = function () {
|
|
3793
|
-
return 'TileFailure(urlTemplate=' + this.
|
|
3777
|
+
return 'TileFailure(urlTemplate=' + this.s1i_1 + ', tile=' + this.t1i_1.toString() + ', message=' + this.u1i_1 + ')';
|
|
3794
3778
|
};
|
|
3795
3779
|
protoOf(TileFailure).hashCode = function () {
|
|
3796
|
-
var result = getStringHashCode(this.
|
|
3797
|
-
result = imul(result, 31) + this.
|
|
3798
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3780
|
+
var result = getStringHashCode(this.s1i_1);
|
|
3781
|
+
result = imul(result, 31) + this.t1i_1.hashCode() | 0;
|
|
3782
|
+
result = imul(result, 31) + getStringHashCode(this.u1i_1) | 0;
|
|
3799
3783
|
return result;
|
|
3800
3784
|
};
|
|
3801
3785
|
protoOf(TileFailure).equals = function (other) {
|
|
@@ -3803,11 +3787,11 @@
|
|
|
3803
3787
|
return true;
|
|
3804
3788
|
if (!(other instanceof TileFailure))
|
|
3805
3789
|
return false;
|
|
3806
|
-
if (!(this.
|
|
3790
|
+
if (!(this.s1i_1 === other.s1i_1))
|
|
3807
3791
|
return false;
|
|
3808
|
-
if (!this.
|
|
3792
|
+
if (!this.t1i_1.equals(other.t1i_1))
|
|
3809
3793
|
return false;
|
|
3810
|
-
if (!(this.
|
|
3794
|
+
if (!(this.u1i_1 === other.u1i_1))
|
|
3811
3795
|
return false;
|
|
3812
3796
|
return true;
|
|
3813
3797
|
};
|
|
@@ -3819,8 +3803,8 @@
|
|
|
3819
3803
|
}
|
|
3820
3804
|
function $recordCOROUTINE$(_this__u8e3s4, failure, resultContinuation) {
|
|
3821
3805
|
CoroutineImpl.call(this, resultContinuation);
|
|
3822
|
-
this.
|
|
3823
|
-
this.
|
|
3806
|
+
this.d1j_1 = _this__u8e3s4;
|
|
3807
|
+
this.e1j_1 = failure;
|
|
3824
3808
|
}
|
|
3825
3809
|
protoOf($recordCOROUTINE$).r7 = function () {
|
|
3826
3810
|
var suspendResult = this.l7_1;
|
|
@@ -3830,10 +3814,10 @@
|
|
|
3830
3814
|
switch (tmp) {
|
|
3831
3815
|
case 0:
|
|
3832
3816
|
this.k7_1 = 2;
|
|
3833
|
-
this.
|
|
3834
|
-
this.
|
|
3817
|
+
this.g1j_1 = this.d1j_1.y1h_1;
|
|
3818
|
+
this.f1j_1 = null;
|
|
3835
3819
|
this.j7_1 = 1;
|
|
3836
|
-
suspendResult = this.
|
|
3820
|
+
suspendResult = this.g1j_1.qw(this.f1j_1, this);
|
|
3837
3821
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3838
3822
|
return suspendResult;
|
|
3839
3823
|
}
|
|
@@ -3843,12 +3827,12 @@
|
|
|
3843
3827
|
l$ret$1: do {
|
|
3844
3828
|
var tmp_0;
|
|
3845
3829
|
try {
|
|
3846
|
-
var tmp0 = this.
|
|
3847
|
-
var key = this.
|
|
3830
|
+
var tmp0 = this.d1j_1.z1h_1;
|
|
3831
|
+
var key = this.e1j_1.s1i_1 + '|' + this.e1j_1.t1i_1.toString();
|
|
3848
3832
|
var value = tmp0.t1(key);
|
|
3849
3833
|
var tmp_1;
|
|
3850
3834
|
if (value == null) {
|
|
3851
|
-
var answer = this.
|
|
3835
|
+
var answer = this.e1j_1;
|
|
3852
3836
|
tmp0.v3(key, answer);
|
|
3853
3837
|
tmp_1 = answer;
|
|
3854
3838
|
} else {
|
|
@@ -3858,12 +3842,12 @@
|
|
|
3858
3842
|
} catch ($p) {
|
|
3859
3843
|
var tmp_2;
|
|
3860
3844
|
var t = $p;
|
|
3861
|
-
this.
|
|
3845
|
+
this.g1j_1.bw(this.f1j_1);
|
|
3862
3846
|
throw t;
|
|
3863
3847
|
}
|
|
3864
3848
|
}
|
|
3865
3849
|
while (false);
|
|
3866
|
-
this.
|
|
3850
|
+
this.g1j_1.bw(this.f1j_1);
|
|
3867
3851
|
return Unit_instance;
|
|
3868
3852
|
case 2:
|
|
3869
3853
|
throw this.m7_1;
|
|
@@ -3881,17 +3865,17 @@
|
|
|
3881
3865
|
};
|
|
3882
3866
|
function TileFailureLog() {
|
|
3883
3867
|
AbstractCoroutineContextElement.call(this, Key_instance);
|
|
3884
|
-
this.
|
|
3885
|
-
this.
|
|
3868
|
+
this.y1h_1 = Mutex();
|
|
3869
|
+
this.z1h_1 = LinkedHashMap_init_$Create$();
|
|
3886
3870
|
}
|
|
3887
|
-
protoOf(TileFailureLog).
|
|
3871
|
+
protoOf(TileFailureLog).a1i = function (failure, $completion) {
|
|
3888
3872
|
var tmp = new $recordCOROUTINE$(this, failure, $completion);
|
|
3889
3873
|
tmp.l7_1 = Unit_instance;
|
|
3890
3874
|
tmp.m7_1 = null;
|
|
3891
3875
|
return tmp.r7();
|
|
3892
3876
|
};
|
|
3893
|
-
protoOf(TileFailureLog).
|
|
3894
|
-
return toList_0(this.
|
|
3877
|
+
protoOf(TileFailureLog).h1j = function () {
|
|
3878
|
+
return toList_0(this.z1h_1.v1());
|
|
3895
3879
|
};
|
|
3896
3880
|
function buildUrl($this, tc) {
|
|
3897
3881
|
// Inline function 'kotlin.let' call
|
|
@@ -3901,24 +3885,24 @@
|
|
|
3901
3885
|
function fetchAndDecodeTile$ref_0() {
|
|
3902
3886
|
KFunctionImpl.call(this, 1, 2, 2);
|
|
3903
3887
|
}
|
|
3904
|
-
protoOf(fetchAndDecodeTile$ref_0).
|
|
3888
|
+
protoOf(fetchAndDecodeTile$ref_0).y19 = function (p0, $completion) {
|
|
3905
3889
|
return fetchAndDecodeTile(p0, $completion);
|
|
3906
3890
|
};
|
|
3907
3891
|
protoOf(fetchAndDecodeTile$ref_0).z7 = function (p1, $completion) {
|
|
3908
|
-
return this.
|
|
3892
|
+
return this.y19((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
3909
3893
|
};
|
|
3910
3894
|
function TileManager$cache$slambda(this$0, resultContinuation) {
|
|
3911
|
-
this.
|
|
3895
|
+
this.t1j_1 = this$0;
|
|
3912
3896
|
CoroutineImpl.call(this, resultContinuation);
|
|
3913
3897
|
}
|
|
3914
|
-
protoOf(TileManager$cache$slambda).
|
|
3915
|
-
var tmp = this.
|
|
3898
|
+
protoOf(TileManager$cache$slambda).v1j = function (tc, $completion) {
|
|
3899
|
+
var tmp = this.w1j(tc, $completion);
|
|
3916
3900
|
tmp.l7_1 = Unit_instance;
|
|
3917
3901
|
tmp.m7_1 = null;
|
|
3918
3902
|
return tmp.r7();
|
|
3919
3903
|
};
|
|
3920
3904
|
protoOf(TileManager$cache$slambda).z7 = function (p1, $completion) {
|
|
3921
|
-
return this.
|
|
3905
|
+
return this.v1j(p1 instanceof TileCoordinates ? p1 : THROW_CCE(), $completion);
|
|
3922
3906
|
};
|
|
3923
3907
|
protoOf(TileManager$cache$slambda).r7 = function () {
|
|
3924
3908
|
var suspendResult = this.l7_1;
|
|
@@ -3929,7 +3913,7 @@
|
|
|
3929
3913
|
case 0:
|
|
3930
3914
|
this.k7_1 = 2;
|
|
3931
3915
|
this.j7_1 = 1;
|
|
3932
|
-
suspendResult = this.
|
|
3916
|
+
suspendResult = this.t1j_1.y15_1(buildUrl(this.t1j_1, this.u1j_1), this);
|
|
3933
3917
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3934
3918
|
return suspendResult;
|
|
3935
3919
|
}
|
|
@@ -3952,21 +3936,21 @@
|
|
|
3952
3936
|
}
|
|
3953
3937
|
while (true);
|
|
3954
3938
|
};
|
|
3955
|
-
protoOf(TileManager$cache$slambda).
|
|
3956
|
-
var i = new TileManager$cache$slambda(this.
|
|
3957
|
-
i.
|
|
3939
|
+
protoOf(TileManager$cache$slambda).w1j = function (tc, completion) {
|
|
3940
|
+
var i = new TileManager$cache$slambda(this.t1j_1, completion);
|
|
3941
|
+
i.u1j_1 = tc;
|
|
3958
3942
|
return i;
|
|
3959
3943
|
};
|
|
3960
3944
|
function TileManager$cache$slambda_0(this$0, resultContinuation) {
|
|
3961
3945
|
var i = new TileManager$cache$slambda(this$0, resultContinuation);
|
|
3962
3946
|
return constructCallableReference(function (tc, $completion) {
|
|
3963
|
-
return i.
|
|
3947
|
+
return i.v1j(tc, $completion);
|
|
3964
3948
|
}, 1);
|
|
3965
3949
|
}
|
|
3966
3950
|
function $getTileCOROUTINE$(_this__u8e3s4, tileCoords, resultContinuation) {
|
|
3967
3951
|
CoroutineImpl.call(this, resultContinuation);
|
|
3968
|
-
this.
|
|
3969
|
-
this.
|
|
3952
|
+
this.f1k_1 = _this__u8e3s4;
|
|
3953
|
+
this.g1k_1 = tileCoords;
|
|
3970
3954
|
}
|
|
3971
3955
|
protoOf($getTileCOROUTINE$).r7 = function () {
|
|
3972
3956
|
var suspendResult = this.l7_1;
|
|
@@ -3976,16 +3960,16 @@
|
|
|
3976
3960
|
switch (tmp) {
|
|
3977
3961
|
case 0:
|
|
3978
3962
|
this.k7_1 = 8;
|
|
3979
|
-
var tmp0_elvis_lhs = this.
|
|
3963
|
+
var tmp0_elvis_lhs = this.f1k_1.z15_1;
|
|
3980
3964
|
if (tmp0_elvis_lhs == null) {
|
|
3981
3965
|
this.j7_1 = 1;
|
|
3982
|
-
suspendResult = this.
|
|
3966
|
+
suspendResult = this.f1k_1.a16_1.p1g(this.g1k_1, this);
|
|
3983
3967
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3984
3968
|
return suspendResult;
|
|
3985
3969
|
}
|
|
3986
3970
|
continue $sm;
|
|
3987
3971
|
} else {
|
|
3988
|
-
this.
|
|
3972
|
+
this.j1k_1 = tmp0_elvis_lhs;
|
|
3989
3973
|
this.j7_1 = 2;
|
|
3990
3974
|
continue $sm;
|
|
3991
3975
|
}
|
|
@@ -3994,9 +3978,9 @@
|
|
|
3994
3978
|
var tmp_0 = this;
|
|
3995
3979
|
return suspendResult;
|
|
3996
3980
|
case 2:
|
|
3997
|
-
this.
|
|
3981
|
+
this.i1k_1 = this.j1k_1;
|
|
3998
3982
|
this.j7_1 = 3;
|
|
3999
|
-
suspendResult = this.
|
|
3983
|
+
suspendResult = this.i1k_1.q1i(this.g1k_1, this);
|
|
4000
3984
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4001
3985
|
return suspendResult;
|
|
4002
3986
|
}
|
|
@@ -4012,14 +3996,14 @@
|
|
|
4012
3996
|
|
|
4013
3997
|
this.k7_1 = 5;
|
|
4014
3998
|
this.j7_1 = 4;
|
|
4015
|
-
suspendResult = this.
|
|
3999
|
+
suspendResult = this.f1k_1.a16_1.p1g(this.g1k_1, this);
|
|
4016
4000
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4017
4001
|
return suspendResult;
|
|
4018
4002
|
}
|
|
4019
4003
|
|
|
4020
4004
|
continue $sm;
|
|
4021
4005
|
case 4:
|
|
4022
|
-
this.
|
|
4006
|
+
this.h1k_1 = suspendResult;
|
|
4023
4007
|
this.k7_1 = 8;
|
|
4024
4008
|
this.j7_1 = 7;
|
|
4025
4009
|
continue $sm;
|
|
@@ -4036,7 +4020,7 @@
|
|
|
4036
4020
|
var e_0 = this.m7_1;
|
|
4037
4021
|
ensureActive(this.p7());
|
|
4038
4022
|
this.j7_1 = 6;
|
|
4039
|
-
suspendResult = this.
|
|
4023
|
+
suspendResult = this.i1k_1.r1i(this.g1k_1, e_0, this);
|
|
4040
4024
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4041
4025
|
return suspendResult;
|
|
4042
4026
|
}
|
|
@@ -4047,12 +4031,12 @@
|
|
|
4047
4031
|
}
|
|
4048
4032
|
|
|
4049
4033
|
case 6:
|
|
4050
|
-
this.
|
|
4034
|
+
this.h1k_1 = suspendResult;
|
|
4051
4035
|
this.j7_1 = 7;
|
|
4052
4036
|
continue $sm;
|
|
4053
4037
|
case 7:
|
|
4054
4038
|
this.k7_1 = 8;
|
|
4055
|
-
return this.
|
|
4039
|
+
return this.h1k_1;
|
|
4056
4040
|
case 8:
|
|
4057
4041
|
throw this.m7_1;
|
|
4058
4042
|
}
|
|
@@ -4124,13 +4108,13 @@
|
|
|
4124
4108
|
retryAfterSeconds = retryAfterSeconds === VOID ? null : retryAfterSeconds;
|
|
4125
4109
|
IllegalStateException_init_$Init$('Tile fetch failed for ' + url + ': HTTP ' + status, this);
|
|
4126
4110
|
captureStack(this, TileFetchException);
|
|
4127
|
-
this.
|
|
4128
|
-
this.
|
|
4129
|
-
this.
|
|
4111
|
+
this.k1k_1 = url;
|
|
4112
|
+
this.l1k_1 = status;
|
|
4113
|
+
this.m1k_1 = retryAfterSeconds;
|
|
4130
4114
|
}
|
|
4131
4115
|
function $awaitTurnCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
4132
4116
|
CoroutineImpl.call(this, resultContinuation);
|
|
4133
|
-
this.
|
|
4117
|
+
this.v1k_1 = _this__u8e3s4;
|
|
4134
4118
|
}
|
|
4135
4119
|
protoOf($awaitTurnCOROUTINE$).r7 = function () {
|
|
4136
4120
|
var suspendResult = this.l7_1;
|
|
@@ -4140,10 +4124,10 @@
|
|
|
4140
4124
|
switch (tmp) {
|
|
4141
4125
|
case 0:
|
|
4142
4126
|
this.k7_1 = 4;
|
|
4143
|
-
this.
|
|
4144
|
-
this.
|
|
4127
|
+
this.x1k_1 = this.v1k_1.a1l_1;
|
|
4128
|
+
this.w1k_1 = null;
|
|
4145
4129
|
this.j7_1 = 1;
|
|
4146
|
-
suspendResult = this.
|
|
4130
|
+
suspendResult = this.x1k_1.qw(this.w1k_1, this);
|
|
4147
4131
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4148
4132
|
return suspendResult;
|
|
4149
4133
|
}
|
|
@@ -4154,22 +4138,22 @@
|
|
|
4154
4138
|
l$ret$1: do {
|
|
4155
4139
|
var tmp_0;
|
|
4156
4140
|
try {
|
|
4157
|
-
var t = toNumber(this.
|
|
4158
|
-
var b = this.
|
|
4141
|
+
var t = toNumber(this.v1k_1.y1k_1());
|
|
4142
|
+
var b = this.v1k_1.b1l_1;
|
|
4159
4143
|
var slot = Math.max(t, b);
|
|
4160
|
-
this.
|
|
4144
|
+
this.v1k_1.b1l_1 = slot + this.v1k_1.z1k_1;
|
|
4161
4145
|
tmp$ret$0 = slot - t;
|
|
4162
4146
|
break l$ret$1;
|
|
4163
4147
|
} catch ($p) {
|
|
4164
4148
|
var tmp_1;
|
|
4165
4149
|
var t_0 = $p;
|
|
4166
|
-
this.
|
|
4150
|
+
this.x1k_1.bw(this.w1k_1);
|
|
4167
4151
|
throw t_0;
|
|
4168
4152
|
}
|
|
4169
4153
|
}
|
|
4170
4154
|
while (false);
|
|
4171
4155
|
var tmp_2 = tmp$ret$0;
|
|
4172
|
-
this.
|
|
4156
|
+
this.x1k_1.bw(this.w1k_1);
|
|
4173
4157
|
var waitMs = tmp_2;
|
|
4174
4158
|
if (waitMs > 0) {
|
|
4175
4159
|
this.j7_1 = 2;
|
|
@@ -4203,29 +4187,29 @@
|
|
|
4203
4187
|
while (true);
|
|
4204
4188
|
};
|
|
4205
4189
|
function RequestPacer(perSecond, now) {
|
|
4206
|
-
this.
|
|
4207
|
-
this.
|
|
4208
|
-
this.
|
|
4209
|
-
this.
|
|
4190
|
+
this.y1k_1 = now;
|
|
4191
|
+
this.z1k_1 = 1000.0 / perSecond;
|
|
4192
|
+
this.a1l_1 = Mutex();
|
|
4193
|
+
this.b1l_1 = -Infinity;
|
|
4210
4194
|
}
|
|
4211
|
-
protoOf(RequestPacer).
|
|
4195
|
+
protoOf(RequestPacer).c1l = function ($completion) {
|
|
4212
4196
|
var tmp = new $awaitTurnCOROUTINE$(this, $completion);
|
|
4213
4197
|
tmp.l7_1 = Unit_instance;
|
|
4214
4198
|
tmp.m7_1 = null;
|
|
4215
4199
|
return tmp.r7();
|
|
4216
4200
|
};
|
|
4217
4201
|
function Key_0(host, perSecond, clock) {
|
|
4218
|
-
this.
|
|
4219
|
-
this.
|
|
4220
|
-
this.
|
|
4202
|
+
this.d1l_1 = host;
|
|
4203
|
+
this.e1l_1 = perSecond;
|
|
4204
|
+
this.f1l_1 = clock;
|
|
4221
4205
|
}
|
|
4222
4206
|
protoOf(Key_0).toString = function () {
|
|
4223
|
-
return 'Key(host=' + this.
|
|
4207
|
+
return 'Key(host=' + this.d1l_1 + ', perSecond=' + this.e1l_1 + ', clock=' + toString(this.f1l_1) + ')';
|
|
4224
4208
|
};
|
|
4225
4209
|
protoOf(Key_0).hashCode = function () {
|
|
4226
|
-
var result = getStringHashCode(this.
|
|
4227
|
-
result = imul(result, 31) + this.
|
|
4228
|
-
result = imul(result, 31) + hashCode(this.
|
|
4210
|
+
var result = getStringHashCode(this.d1l_1);
|
|
4211
|
+
result = imul(result, 31) + this.e1l_1 | 0;
|
|
4212
|
+
result = imul(result, 31) + hashCode(this.f1l_1) | 0;
|
|
4229
4213
|
return result;
|
|
4230
4214
|
};
|
|
4231
4215
|
protoOf(Key_0).equals = function (other) {
|
|
@@ -4233,20 +4217,20 @@
|
|
|
4233
4217
|
return true;
|
|
4234
4218
|
if (!(other instanceof Key_0))
|
|
4235
4219
|
return false;
|
|
4236
|
-
if (!(this.
|
|
4220
|
+
if (!(this.d1l_1 === other.d1l_1))
|
|
4237
4221
|
return false;
|
|
4238
|
-
if (!(this.
|
|
4222
|
+
if (!(this.e1l_1 === other.e1l_1))
|
|
4239
4223
|
return false;
|
|
4240
|
-
if (!equals(this.
|
|
4224
|
+
if (!equals(this.f1l_1, other.f1l_1))
|
|
4241
4225
|
return false;
|
|
4242
4226
|
return true;
|
|
4243
4227
|
};
|
|
4244
4228
|
function $ofCOROUTINE$(_this__u8e3s4, host, perSecond, clock, resultContinuation) {
|
|
4245
4229
|
CoroutineImpl.call(this, resultContinuation);
|
|
4246
|
-
this.
|
|
4247
|
-
this.
|
|
4248
|
-
this.
|
|
4249
|
-
this.
|
|
4230
|
+
this.o1l_1 = _this__u8e3s4;
|
|
4231
|
+
this.p1l_1 = host;
|
|
4232
|
+
this.q1l_1 = perSecond;
|
|
4233
|
+
this.r1l_1 = clock;
|
|
4250
4234
|
}
|
|
4251
4235
|
protoOf($ofCOROUTINE$).r7 = function () {
|
|
4252
4236
|
var suspendResult = this.l7_1;
|
|
@@ -4256,10 +4240,10 @@
|
|
|
4256
4240
|
switch (tmp) {
|
|
4257
4241
|
case 0:
|
|
4258
4242
|
this.k7_1 = 2;
|
|
4259
|
-
this.
|
|
4260
|
-
this.
|
|
4243
|
+
this.t1l_1 = this.o1l_1.u1l_1;
|
|
4244
|
+
this.s1l_1 = null;
|
|
4261
4245
|
this.j7_1 = 1;
|
|
4262
|
-
suspendResult = this.
|
|
4246
|
+
suspendResult = this.t1l_1.qw(this.s1l_1, this);
|
|
4263
4247
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4264
4248
|
return suspendResult;
|
|
4265
4249
|
}
|
|
@@ -4270,12 +4254,12 @@
|
|
|
4270
4254
|
l$ret$1: do {
|
|
4271
4255
|
var tmp_0;
|
|
4272
4256
|
try {
|
|
4273
|
-
var tmp0 = HostPacers_getInstance().
|
|
4274
|
-
var key = new Key_0(this.
|
|
4257
|
+
var tmp0 = HostPacers_getInstance().v1l_1;
|
|
4258
|
+
var key = new Key_0(this.p1l_1, this.q1l_1, this.r1l_1);
|
|
4275
4259
|
var value = tmp0.t1(key);
|
|
4276
4260
|
var tmp_1;
|
|
4277
4261
|
if (value == null) {
|
|
4278
|
-
var answer = new RequestPacer(this.
|
|
4262
|
+
var answer = new RequestPacer(this.q1l_1, this.r1l_1);
|
|
4279
4263
|
tmp0.v3(key, answer);
|
|
4280
4264
|
tmp_1 = answer;
|
|
4281
4265
|
} else {
|
|
@@ -4286,13 +4270,13 @@
|
|
|
4286
4270
|
} catch ($p) {
|
|
4287
4271
|
var tmp_2;
|
|
4288
4272
|
var t = $p;
|
|
4289
|
-
this.
|
|
4273
|
+
this.t1l_1.bw(this.s1l_1);
|
|
4290
4274
|
throw t;
|
|
4291
4275
|
}
|
|
4292
4276
|
}
|
|
4293
4277
|
while (false);
|
|
4294
4278
|
var tmp_3 = tmp$ret$0;
|
|
4295
|
-
this.
|
|
4279
|
+
this.t1l_1.bw(this.s1l_1);
|
|
4296
4280
|
return tmp_3;
|
|
4297
4281
|
case 2:
|
|
4298
4282
|
throw this.m7_1;
|
|
@@ -4310,10 +4294,10 @@
|
|
|
4310
4294
|
};
|
|
4311
4295
|
function HostPacers() {
|
|
4312
4296
|
HostPacers_instance = this;
|
|
4313
|
-
this.
|
|
4314
|
-
this.
|
|
4297
|
+
this.u1l_1 = Mutex();
|
|
4298
|
+
this.v1l_1 = HashMap_init_$Create$();
|
|
4315
4299
|
}
|
|
4316
|
-
protoOf(HostPacers).
|
|
4300
|
+
protoOf(HostPacers).w1l = function (host, perSecond, clock, $completion) {
|
|
4317
4301
|
var tmp = new $ofCOROUTINE$(this, host, perSecond, clock, $completion);
|
|
4318
4302
|
tmp.l7_1 = Unit_instance;
|
|
4319
4303
|
tmp.m7_1 = null;
|
|
@@ -4337,27 +4321,27 @@
|
|
|
4337
4321
|
function fetchTileBytes$ref() {
|
|
4338
4322
|
KFunctionImpl.call(this, 1, 2, 5);
|
|
4339
4323
|
}
|
|
4340
|
-
protoOf(fetchTileBytes$ref).
|
|
4324
|
+
protoOf(fetchTileBytes$ref).a1m = function (p0, $completion) {
|
|
4341
4325
|
return fetchTileBytes(p0, $completion);
|
|
4342
4326
|
};
|
|
4343
4327
|
protoOf(fetchTileBytes$ref).z7 = function (p1, $completion) {
|
|
4344
|
-
return this.
|
|
4328
|
+
return this.a1m((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
4345
4329
|
};
|
|
4346
4330
|
function pacedTileBytesFetcher$slambda($maxRequestsPerSecond, $now, $fetch, $maxAttempts, resultContinuation) {
|
|
4347
|
-
this.
|
|
4348
|
-
this.
|
|
4349
|
-
this.
|
|
4350
|
-
this.
|
|
4331
|
+
this.j1m_1 = $maxRequestsPerSecond;
|
|
4332
|
+
this.k1m_1 = $now;
|
|
4333
|
+
this.l1m_1 = $fetch;
|
|
4334
|
+
this.m1m_1 = $maxAttempts;
|
|
4351
4335
|
CoroutineImpl.call(this, resultContinuation);
|
|
4352
4336
|
}
|
|
4353
|
-
protoOf(pacedTileBytesFetcher$slambda).
|
|
4354
|
-
var tmp = this.
|
|
4337
|
+
protoOf(pacedTileBytesFetcher$slambda).a1m = function (url, $completion) {
|
|
4338
|
+
var tmp = this.j1a(url, $completion);
|
|
4355
4339
|
tmp.l7_1 = Unit_instance;
|
|
4356
4340
|
tmp.m7_1 = null;
|
|
4357
4341
|
return tmp.r7();
|
|
4358
4342
|
};
|
|
4359
4343
|
protoOf(pacedTileBytesFetcher$slambda).z7 = function (p1, $completion) {
|
|
4360
|
-
return this.
|
|
4344
|
+
return this.a1m((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
4361
4345
|
};
|
|
4362
4346
|
protoOf(pacedTileBytesFetcher$slambda).r7 = function () {
|
|
4363
4347
|
var suspendResult = this.l7_1;
|
|
@@ -4367,43 +4351,43 @@
|
|
|
4367
4351
|
switch (tmp) {
|
|
4368
4352
|
case 0:
|
|
4369
4353
|
this.k7_1 = 11;
|
|
4370
|
-
if (this.
|
|
4354
|
+
if (this.j1m_1 > 0) {
|
|
4371
4355
|
this.j7_1 = 1;
|
|
4372
|
-
suspendResult = HostPacers_getInstance().
|
|
4356
|
+
suspendResult = HostPacers_getInstance().w1l(hostOf(this.n1m_1), this.j1m_1, this.k1m_1, this);
|
|
4373
4357
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4374
4358
|
return suspendResult;
|
|
4375
4359
|
}
|
|
4376
4360
|
continue $sm;
|
|
4377
4361
|
} else {
|
|
4378
|
-
this.
|
|
4362
|
+
this.t1m_1 = null;
|
|
4379
4363
|
this.j7_1 = 2;
|
|
4380
4364
|
continue $sm;
|
|
4381
4365
|
}
|
|
4382
4366
|
|
|
4383
4367
|
case 1:
|
|
4384
|
-
this.
|
|
4368
|
+
this.t1m_1 = suspendResult;
|
|
4385
4369
|
this.j7_1 = 2;
|
|
4386
4370
|
continue $sm;
|
|
4387
4371
|
case 2:
|
|
4388
|
-
this.
|
|
4389
|
-
this.
|
|
4390
|
-
this.
|
|
4372
|
+
this.s1m_1 = this.t1m_1;
|
|
4373
|
+
this.q1m_1 = 1;
|
|
4374
|
+
this.o1m_1 = null;
|
|
4391
4375
|
this.j7_1 = 3;
|
|
4392
4376
|
continue $sm;
|
|
4393
4377
|
case 3:
|
|
4394
|
-
if (!(this.
|
|
4378
|
+
if (!(this.o1m_1 == null)) {
|
|
4395
4379
|
this.j7_1 = 10;
|
|
4396
4380
|
continue $sm;
|
|
4397
4381
|
}
|
|
4398
4382
|
|
|
4399
|
-
var tmp0_safe_receiver = this.
|
|
4383
|
+
var tmp0_safe_receiver = this.s1m_1;
|
|
4400
4384
|
if (tmp0_safe_receiver == null) {
|
|
4401
|
-
this.
|
|
4385
|
+
this.r1m_1 = null;
|
|
4402
4386
|
this.j7_1 = 5;
|
|
4403
4387
|
continue $sm;
|
|
4404
4388
|
} else {
|
|
4405
4389
|
this.j7_1 = 4;
|
|
4406
|
-
suspendResult = tmp0_safe_receiver.
|
|
4390
|
+
suspendResult = tmp0_safe_receiver.c1l(this);
|
|
4407
4391
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4408
4392
|
return suspendResult;
|
|
4409
4393
|
}
|
|
@@ -4412,13 +4396,13 @@
|
|
|
4412
4396
|
|
|
4413
4397
|
case 4:
|
|
4414
4398
|
var tmp_0 = this;
|
|
4415
|
-
tmp_0.
|
|
4399
|
+
tmp_0.r1m_1 = Unit_instance;
|
|
4416
4400
|
this.j7_1 = 5;
|
|
4417
4401
|
continue $sm;
|
|
4418
4402
|
case 5:
|
|
4419
4403
|
this.k7_1 = 7;
|
|
4420
4404
|
this.j7_1 = 6;
|
|
4421
|
-
suspendResult = this.
|
|
4405
|
+
suspendResult = this.l1m_1(this.n1m_1, this);
|
|
4422
4406
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4423
4407
|
return suspendResult;
|
|
4424
4408
|
}
|
|
@@ -4426,8 +4410,8 @@
|
|
|
4426
4410
|
continue $sm;
|
|
4427
4411
|
case 6:
|
|
4428
4412
|
var tmp_1 = this;
|
|
4429
|
-
this.
|
|
4430
|
-
tmp_1.
|
|
4413
|
+
this.o1m_1 = suspendResult;
|
|
4414
|
+
tmp_1.p1m_1 = Unit_instance;
|
|
4431
4415
|
this.k7_1 = 11;
|
|
4432
4416
|
this.j7_1 = 9;
|
|
4433
4417
|
continue $sm;
|
|
@@ -4436,11 +4420,11 @@
|
|
|
4436
4420
|
var tmp_2 = this.m7_1;
|
|
4437
4421
|
if (tmp_2 instanceof TileFetchException) {
|
|
4438
4422
|
var e = this.m7_1;
|
|
4439
|
-
if (!(e.
|
|
4423
|
+
if (!(e.l1k_1 === 429) && !(e.l1k_1 === 503) || this.q1m_1 >= this.m1m_1)
|
|
4440
4424
|
throw e;
|
|
4441
4425
|
this.j7_1 = 8;
|
|
4442
|
-
var tmp1_elvis_lhs = e.
|
|
4443
|
-
suspendResult = delay(multiply(tmp1_elvis_lhs == null ? shiftLeft(new Long(1, 0), this.
|
|
4426
|
+
var tmp1_elvis_lhs = e.m1k_1;
|
|
4427
|
+
suspendResult = delay(multiply(tmp1_elvis_lhs == null ? shiftLeft(new Long(1, 0), this.q1m_1 - 1 | 0) : tmp1_elvis_lhs, new Long(1000, 0)), this);
|
|
4444
4428
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4445
4429
|
return suspendResult;
|
|
4446
4430
|
}
|
|
@@ -4451,9 +4435,9 @@
|
|
|
4451
4435
|
|
|
4452
4436
|
case 8:
|
|
4453
4437
|
var tmp_3 = this;
|
|
4454
|
-
var _unary__edvuaz = this.
|
|
4455
|
-
this.
|
|
4456
|
-
tmp_3.
|
|
4438
|
+
var _unary__edvuaz = this.q1m_1;
|
|
4439
|
+
this.q1m_1 = _unary__edvuaz + 1 | 0;
|
|
4440
|
+
tmp_3.p1m_1 = _unary__edvuaz;
|
|
4457
4441
|
this.j7_1 = 9;
|
|
4458
4442
|
continue $sm;
|
|
4459
4443
|
case 9:
|
|
@@ -4461,7 +4445,7 @@
|
|
|
4461
4445
|
this.j7_1 = 3;
|
|
4462
4446
|
continue $sm;
|
|
4463
4447
|
case 10:
|
|
4464
|
-
return this.
|
|
4448
|
+
return this.o1m_1;
|
|
4465
4449
|
case 11:
|
|
4466
4450
|
throw this.m7_1;
|
|
4467
4451
|
}
|
|
@@ -4476,15 +4460,15 @@
|
|
|
4476
4460
|
}
|
|
4477
4461
|
while (true);
|
|
4478
4462
|
};
|
|
4479
|
-
protoOf(pacedTileBytesFetcher$slambda).
|
|
4480
|
-
var i = new pacedTileBytesFetcher$slambda(this.
|
|
4481
|
-
i.
|
|
4463
|
+
protoOf(pacedTileBytesFetcher$slambda).j1a = function (url, completion) {
|
|
4464
|
+
var i = new pacedTileBytesFetcher$slambda(this.j1m_1, this.k1m_1, this.l1m_1, this.m1m_1, completion);
|
|
4465
|
+
i.n1m_1 = url;
|
|
4482
4466
|
return i;
|
|
4483
4467
|
};
|
|
4484
4468
|
function pacedTileBytesFetcher$slambda_0($maxRequestsPerSecond, $now, $fetch, $maxAttempts, resultContinuation) {
|
|
4485
4469
|
var i = new pacedTileBytesFetcher$slambda($maxRequestsPerSecond, $now, $fetch, $maxAttempts, resultContinuation);
|
|
4486
4470
|
return constructCallableReference(function (url, $completion) {
|
|
4487
|
-
return i.
|
|
4471
|
+
return i.a1m(url, $completion);
|
|
4488
4472
|
}, 1);
|
|
4489
4473
|
}
|
|
4490
4474
|
var properties_initialized_TileRequestPacing_kt_zdwibl;
|
|
@@ -4497,7 +4481,7 @@
|
|
|
4497
4481
|
function tileCoordinatesOf(url, config) {
|
|
4498
4482
|
var names = ArrayList_init_$Create$();
|
|
4499
4483
|
var pattern = StringBuilder_init_$Create$();
|
|
4500
|
-
var rest = config.
|
|
4484
|
+
var rest = config.a19_1;
|
|
4501
4485
|
var placeholder = Regex_init_$Create$('\\{(z|x|y|bbox)\\}');
|
|
4502
4486
|
$l$loop: while (true) {
|
|
4503
4487
|
var tmp0_elvis_lhs = placeholder.ta(rest);
|
|
@@ -4519,7 +4503,7 @@
|
|
|
4519
4503
|
var tmp1_elvis_lhs = Regex_init_$Create$(pattern.toString()).ua(url);
|
|
4520
4504
|
var tmp_0;
|
|
4521
4505
|
if (tmp1_elvis_lhs == null) {
|
|
4522
|
-
throw IllegalArgumentException_init_$Create$('Tile URL ' + url + ' does not match the template ' + config.
|
|
4506
|
+
throw IllegalArgumentException_init_$Create$('Tile URL ' + url + ' does not match the template ' + config.a19_1);
|
|
4523
4507
|
} else {
|
|
4524
4508
|
tmp_0 = tmp1_elvis_lhs;
|
|
4525
4509
|
}
|
|
@@ -4527,7 +4511,7 @@
|
|
|
4527
4511
|
var values = toMap(zip(names, drop(match.kb(), 1)));
|
|
4528
4512
|
var tmp2_safe_receiver = values.t1('z');
|
|
4529
4513
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : toInt(tmp2_safe_receiver);
|
|
4530
|
-
var z = tmp3_elvis_lhs == null ? config.
|
|
4514
|
+
var z = tmp3_elvis_lhs == null ? config.y18_1 : tmp3_elvis_lhs;
|
|
4531
4515
|
var bbox = values.t1('bbox');
|
|
4532
4516
|
if (bbox == null)
|
|
4533
4517
|
return new TileCoordinates(toInt(getValue(values, 'x')), toInt(getValue(values, 'y')), z);
|
|
@@ -4612,21 +4596,21 @@
|
|
|
4612
4596
|
return true;
|
|
4613
4597
|
};
|
|
4614
4598
|
function TileCoordinatesFloat(x, y, xFloat, yFloat, z) {
|
|
4615
|
-
this.
|
|
4616
|
-
this.
|
|
4617
|
-
this.
|
|
4618
|
-
this.
|
|
4619
|
-
this.
|
|
4599
|
+
this.m16_1 = x;
|
|
4600
|
+
this.n16_1 = y;
|
|
4601
|
+
this.o16_1 = xFloat;
|
|
4602
|
+
this.p16_1 = yFloat;
|
|
4603
|
+
this.q16_1 = z;
|
|
4620
4604
|
}
|
|
4621
4605
|
protoOf(TileCoordinatesFloat).toString = function () {
|
|
4622
|
-
return 'TileCoordinatesFloat(x=' + this.
|
|
4606
|
+
return 'TileCoordinatesFloat(x=' + this.m16_1 + ', y=' + this.n16_1 + ', xFloat=' + this.o16_1 + ', yFloat=' + this.p16_1 + ', z=' + this.q16_1 + ')';
|
|
4623
4607
|
};
|
|
4624
4608
|
protoOf(TileCoordinatesFloat).hashCode = function () {
|
|
4625
|
-
var result = this.
|
|
4626
|
-
result = imul(result, 31) + this.
|
|
4627
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
4628
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
4629
|
-
result = imul(result, 31) + this.
|
|
4609
|
+
var result = this.m16_1;
|
|
4610
|
+
result = imul(result, 31) + this.n16_1 | 0;
|
|
4611
|
+
result = imul(result, 31) + getNumberHashCode(this.o16_1) | 0;
|
|
4612
|
+
result = imul(result, 31) + getNumberHashCode(this.p16_1) | 0;
|
|
4613
|
+
result = imul(result, 31) + this.q16_1 | 0;
|
|
4630
4614
|
return result;
|
|
4631
4615
|
};
|
|
4632
4616
|
protoOf(TileCoordinatesFloat).equals = function (other) {
|
|
@@ -4634,15 +4618,15 @@
|
|
|
4634
4618
|
return true;
|
|
4635
4619
|
if (!(other instanceof TileCoordinatesFloat))
|
|
4636
4620
|
return false;
|
|
4637
|
-
if (!(this.
|
|
4621
|
+
if (!(this.m16_1 === other.m16_1))
|
|
4638
4622
|
return false;
|
|
4639
|
-
if (!(this.
|
|
4623
|
+
if (!(this.n16_1 === other.n16_1))
|
|
4640
4624
|
return false;
|
|
4641
|
-
if (!equals(this.
|
|
4625
|
+
if (!equals(this.o16_1, other.o16_1))
|
|
4642
4626
|
return false;
|
|
4643
|
-
if (!equals(this.
|
|
4627
|
+
if (!equals(this.p16_1, other.p16_1))
|
|
4644
4628
|
return false;
|
|
4645
|
-
if (!(this.
|
|
4629
|
+
if (!(this.q16_1 === other.q16_1))
|
|
4646
4630
|
return false;
|
|
4647
4631
|
return true;
|
|
4648
4632
|
};
|
|
@@ -4675,7 +4659,7 @@
|
|
|
4675
4659
|
};
|
|
4676
4660
|
function Companion_3() {
|
|
4677
4661
|
Companion_instance_4 = this;
|
|
4678
|
-
this.
|
|
4662
|
+
this.u1m_1 = new Vector3D(0.0, 0.0, 0.0);
|
|
4679
4663
|
}
|
|
4680
4664
|
var Companion_instance_4;
|
|
4681
4665
|
function Companion_getInstance_4() {
|
|
@@ -4689,7 +4673,7 @@
|
|
|
4689
4673
|
this.y12_1 = y;
|
|
4690
4674
|
this.z12_1 = z;
|
|
4691
4675
|
}
|
|
4692
|
-
protoOf(Vector3D).
|
|
4676
|
+
protoOf(Vector3D).v1m = function (other) {
|
|
4693
4677
|
var tmp0 = this.x12_1 - other.x12_1;
|
|
4694
4678
|
// Inline function 'kotlin.math.hypot' call
|
|
4695
4679
|
var y = this.y12_1 - other.y12_1;
|
|
@@ -4698,28 +4682,28 @@
|
|
|
4698
4682
|
var y_0 = this.z12_1 - other.z12_1;
|
|
4699
4683
|
return hypot(tmp0_0, y_0);
|
|
4700
4684
|
};
|
|
4701
|
-
protoOf(Vector3D).
|
|
4685
|
+
protoOf(Vector3D).w1m = function (other) {
|
|
4702
4686
|
return new Vector3D(this.x12_1 - other.x12_1, this.y12_1 - other.y12_1, this.z12_1 - other.z12_1);
|
|
4703
4687
|
};
|
|
4704
|
-
protoOf(Vector3D).
|
|
4688
|
+
protoOf(Vector3D).x1m = function (other) {
|
|
4705
4689
|
return new Vector3D(this.x12_1 + other.x12_1, this.y12_1 + other.y12_1, this.z12_1 + other.z12_1);
|
|
4706
4690
|
};
|
|
4707
|
-
protoOf(Vector3D).
|
|
4691
|
+
protoOf(Vector3D).y1m = function (scalar) {
|
|
4708
4692
|
return new Vector3D(this.x12_1 * scalar, this.y12_1 * scalar, this.z12_1 * scalar);
|
|
4709
4693
|
};
|
|
4710
|
-
protoOf(Vector3D).
|
|
4694
|
+
protoOf(Vector3D).z1m = function (other) {
|
|
4711
4695
|
return this.x12_1 * other.x12_1 + this.y12_1 * other.y12_1 + this.z12_1 * other.z12_1;
|
|
4712
4696
|
};
|
|
4713
4697
|
protoOf(Vector3D).a13 = function (segmentStart, segmentEnd) {
|
|
4714
|
-
var segmentVector = segmentEnd.
|
|
4715
|
-
var segmentLengthSq = segmentVector.
|
|
4698
|
+
var segmentVector = segmentEnd.w1m(segmentStart);
|
|
4699
|
+
var segmentLengthSq = segmentVector.z1m(segmentVector);
|
|
4716
4700
|
if (segmentLengthSq === 0.0)
|
|
4717
|
-
return this.
|
|
4718
|
-
var pointVector = this.
|
|
4719
|
-
var projection = pointVector.
|
|
4701
|
+
return this.v1m(segmentStart);
|
|
4702
|
+
var pointVector = this.w1m(segmentStart);
|
|
4703
|
+
var projection = pointVector.z1m(segmentVector) / segmentLengthSq;
|
|
4720
4704
|
var clamped = coerceIn_0(projection, 0.0, 1.0);
|
|
4721
|
-
var closest = segmentStart.
|
|
4722
|
-
return this.
|
|
4705
|
+
var closest = segmentStart.x1m(segmentVector.y1m(clamped));
|
|
4706
|
+
return this.v1m(closest);
|
|
4723
4707
|
};
|
|
4724
4708
|
protoOf(Vector3D).toString = function () {
|
|
4725
4709
|
return 'Vector3D(x=' + this.x12_1 + ', y=' + this.y12_1 + ', z=' + this.z12_1 + ')';
|
|
@@ -4776,25 +4760,25 @@
|
|
|
4776
4760
|
tmp = null;
|
|
4777
4761
|
} else {
|
|
4778
4762
|
// Inline function 'kotlin.let' call
|
|
4779
|
-
tmp = Companion_getInstance_0().
|
|
4763
|
+
tmp = Companion_getInstance_0().g1b(tmp2_safe_receiver);
|
|
4780
4764
|
}
|
|
4781
4765
|
var tmp3_elvis_lhs = tmp;
|
|
4782
|
-
var source = tmp3_elvis_lhs == null ? Companion_getInstance_0().
|
|
4783
|
-
var base = source.
|
|
4766
|
+
var source = tmp3_elvis_lhs == null ? Companion_getInstance_0().a1b_1 : tmp3_elvis_lhs;
|
|
4767
|
+
var base = source.m1b(configDto == null ? null : configDto.zoomLevel);
|
|
4784
4768
|
var tmp6_elvis_lhs = configDto == null ? null : configDto.cacheSize;
|
|
4785
|
-
var tmp_0 = tmp6_elvis_lhs == null ? base.
|
|
4769
|
+
var tmp_0 = tmp6_elvis_lhs == null ? base.z18_1 : tmp6_elvis_lhs;
|
|
4786
4770
|
var tmp8_elvis_lhs = configDto == null ? null : configDto.tileUrlTemplate;
|
|
4787
|
-
var tmp_1 = tmp8_elvis_lhs == null ? base.
|
|
4771
|
+
var tmp_1 = tmp8_elvis_lhs == null ? base.a19_1 : tmp8_elvis_lhs;
|
|
4788
4772
|
var tmp10_elvis_lhs = configDto == null ? null : configDto.tileSize;
|
|
4789
|
-
var cfg = base.
|
|
4773
|
+
var cfg = base.w1a(VOID, tmp_0, tmp_1, tmp10_elvis_lhs == null ? base.b19_1 : tmp10_elvis_lhs);
|
|
4790
4774
|
var primary = ElevationProvider_init_$Create$(cfg);
|
|
4791
|
-
var tmp11_safe_receiver = source.
|
|
4775
|
+
var tmp11_safe_receiver = source.h1b();
|
|
4792
4776
|
var tmp_2;
|
|
4793
4777
|
if (tmp11_safe_receiver == null) {
|
|
4794
4778
|
tmp_2 = null;
|
|
4795
4779
|
} else {
|
|
4796
4780
|
// Inline function 'kotlin.let' call
|
|
4797
|
-
tmp_2 = primary.
|
|
4781
|
+
tmp_2 = primary.n19(provider(tmp11_safe_receiver));
|
|
4798
4782
|
}
|
|
4799
4783
|
var tmp12_elvis_lhs = tmp_2;
|
|
4800
4784
|
return tmp12_elvis_lhs == null ? primary : tmp12_elvis_lhs;
|
|
@@ -4802,8 +4786,8 @@
|
|
|
4802
4786
|
function elevationAttribution(provider) {
|
|
4803
4787
|
_init_properties_ElevationJsApi_kt__1yyas4();
|
|
4804
4788
|
var o = {};
|
|
4805
|
-
o.text = provider.
|
|
4806
|
-
o.url = provider.
|
|
4789
|
+
o.text = provider.p19().x1a_1;
|
|
4790
|
+
o.url = provider.p19().y1a_1;
|
|
4807
4791
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
4808
4792
|
return o;
|
|
4809
4793
|
}
|
|
@@ -4876,20 +4860,20 @@
|
|
|
4876
4860
|
return o;
|
|
4877
4861
|
}
|
|
4878
4862
|
function getElevation$slambda($provider, $latitude, $longitude, $interpolation, resultContinuation) {
|
|
4879
|
-
this.
|
|
4880
|
-
this.
|
|
4881
|
-
this.
|
|
4882
|
-
this.
|
|
4863
|
+
this.i1n_1 = $provider;
|
|
4864
|
+
this.j1n_1 = $latitude;
|
|
4865
|
+
this.k1n_1 = $longitude;
|
|
4866
|
+
this.l1n_1 = $interpolation;
|
|
4883
4867
|
CoroutineImpl.call(this, resultContinuation);
|
|
4884
4868
|
}
|
|
4885
|
-
protoOf(getElevation$slambda).
|
|
4886
|
-
var tmp = this.
|
|
4869
|
+
protoOf(getElevation$slambda).n1n = function ($this$promise, $completion) {
|
|
4870
|
+
var tmp = this.c1c($this$promise, $completion);
|
|
4887
4871
|
tmp.l7_1 = Unit_instance;
|
|
4888
4872
|
tmp.m7_1 = null;
|
|
4889
4873
|
return tmp.r7();
|
|
4890
4874
|
};
|
|
4891
4875
|
protoOf(getElevation$slambda).z7 = function (p1, $completion) {
|
|
4892
|
-
return this.
|
|
4876
|
+
return this.n1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
4893
4877
|
};
|
|
4894
4878
|
protoOf(getElevation$slambda).r7 = function () {
|
|
4895
4879
|
var suspendResult = this.l7_1;
|
|
@@ -4900,7 +4884,7 @@
|
|
|
4900
4884
|
case 0:
|
|
4901
4885
|
this.k7_1 = 2;
|
|
4902
4886
|
this.j7_1 = 1;
|
|
4903
|
-
suspendResult = this.
|
|
4887
|
+
suspendResult = this.i1n_1.b18(this.j1n_1, this.k1n_1, this.l1n_1, this);
|
|
4904
4888
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4905
4889
|
return suspendResult;
|
|
4906
4890
|
}
|
|
@@ -4922,31 +4906,31 @@
|
|
|
4922
4906
|
}
|
|
4923
4907
|
while (true);
|
|
4924
4908
|
};
|
|
4925
|
-
protoOf(getElevation$slambda).
|
|
4926
|
-
var i = new getElevation$slambda(this.
|
|
4927
|
-
i.
|
|
4909
|
+
protoOf(getElevation$slambda).c1c = function ($this$promise, completion) {
|
|
4910
|
+
var i = new getElevation$slambda(this.i1n_1, this.j1n_1, this.k1n_1, this.l1n_1, completion);
|
|
4911
|
+
i.m1n_1 = $this$promise;
|
|
4928
4912
|
return i;
|
|
4929
4913
|
};
|
|
4930
4914
|
function getElevation$slambda_0($provider, $latitude, $longitude, $interpolation, resultContinuation) {
|
|
4931
4915
|
var i = new getElevation$slambda($provider, $latitude, $longitude, $interpolation, resultContinuation);
|
|
4932
4916
|
return constructCallableReference(function ($this$promise, $completion) {
|
|
4933
|
-
return i.
|
|
4917
|
+
return i.n1n($this$promise, $completion);
|
|
4934
4918
|
}, 1);
|
|
4935
4919
|
}
|
|
4936
4920
|
function getElevationsAlong$slambda($path, $provider, $options, resultContinuation) {
|
|
4937
|
-
this.
|
|
4938
|
-
this.
|
|
4939
|
-
this.
|
|
4921
|
+
this.w1n_1 = $path;
|
|
4922
|
+
this.x1n_1 = $provider;
|
|
4923
|
+
this.y1n_1 = $options;
|
|
4940
4924
|
CoroutineImpl.call(this, resultContinuation);
|
|
4941
4925
|
}
|
|
4942
|
-
protoOf(getElevationsAlong$slambda).
|
|
4943
|
-
var tmp = this.
|
|
4926
|
+
protoOf(getElevationsAlong$slambda).a1o = function ($this$promise, $completion) {
|
|
4927
|
+
var tmp = this.c1c($this$promise, $completion);
|
|
4944
4928
|
tmp.l7_1 = Unit_instance;
|
|
4945
4929
|
tmp.m7_1 = null;
|
|
4946
4930
|
return tmp.r7();
|
|
4947
4931
|
};
|
|
4948
4932
|
protoOf(getElevationsAlong$slambda).z7 = function (p1, $completion) {
|
|
4949
|
-
return this.
|
|
4933
|
+
return this.a1o((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
4950
4934
|
};
|
|
4951
4935
|
protoOf(getElevationsAlong$slambda).r7 = function () {
|
|
4952
4936
|
var suspendResult = this.l7_1;
|
|
@@ -4956,7 +4940,7 @@
|
|
|
4956
4940
|
switch (tmp) {
|
|
4957
4941
|
case 0:
|
|
4958
4942
|
this.k7_1 = 2;
|
|
4959
|
-
var this_0 = this.
|
|
4943
|
+
var this_0 = this.w1n_1;
|
|
4960
4944
|
var destination = ArrayList_init_$Create$_0(this_0.length);
|
|
4961
4945
|
var inductionVariable = 0;
|
|
4962
4946
|
var last = this_0.length;
|
|
@@ -4968,21 +4952,21 @@
|
|
|
4968
4952
|
|
|
4969
4953
|
var coords = destination;
|
|
4970
4954
|
this.j7_1 = 1;
|
|
4971
|
-
var tmp0_safe_receiver = this.
|
|
4955
|
+
var tmp0_safe_receiver = this.y1n_1;
|
|
4972
4956
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.step;
|
|
4973
4957
|
var tmp_0 = tmp1_elvis_lhs == null ? 10.0 : tmp1_elvis_lhs;
|
|
4974
|
-
var tmp2_safe_receiver = this.
|
|
4958
|
+
var tmp2_safe_receiver = this.y1n_1;
|
|
4975
4959
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.minDistance;
|
|
4976
4960
|
var tmp_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
|
|
4977
|
-
var tmp4_safe_receiver = this.
|
|
4961
|
+
var tmp4_safe_receiver = this.y1n_1;
|
|
4978
4962
|
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.interpolation;
|
|
4979
4963
|
var tmp_2 = tmp5_elvis_lhs == null ? true : tmp5_elvis_lhs;
|
|
4980
|
-
var tmp6_safe_receiver = this.
|
|
4964
|
+
var tmp6_safe_receiver = this.y1n_1;
|
|
4981
4965
|
var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.smoothingOptions;
|
|
4982
4966
|
var tmp_3 = tmp7_safe_receiver == null ? null : toKotlin(tmp7_safe_receiver);
|
|
4983
|
-
var tmp8_safe_receiver = this.
|
|
4967
|
+
var tmp8_safe_receiver = this.y1n_1;
|
|
4984
4968
|
var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.filterOptions;
|
|
4985
|
-
suspendResult = this.
|
|
4969
|
+
suspendResult = this.x1n_1.u19(coords, tmp_0, tmp_1, tmp_2, tmp_3, tmp9_safe_receiver == null ? null : toKotlin_0(tmp9_safe_receiver), this);
|
|
4986
4970
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4987
4971
|
return suspendResult;
|
|
4988
4972
|
}
|
|
@@ -5015,15 +4999,15 @@
|
|
|
5015
4999
|
}
|
|
5016
5000
|
while (true);
|
|
5017
5001
|
};
|
|
5018
|
-
protoOf(getElevationsAlong$slambda).
|
|
5019
|
-
var i = new getElevationsAlong$slambda(this.
|
|
5020
|
-
i.
|
|
5002
|
+
protoOf(getElevationsAlong$slambda).c1c = function ($this$promise, completion) {
|
|
5003
|
+
var i = new getElevationsAlong$slambda(this.w1n_1, this.x1n_1, this.y1n_1, completion);
|
|
5004
|
+
i.z1n_1 = $this$promise;
|
|
5021
5005
|
return i;
|
|
5022
5006
|
};
|
|
5023
5007
|
function getElevationsAlong$slambda_0($path, $provider, $options, resultContinuation) {
|
|
5024
5008
|
var i = new getElevationsAlong$slambda($path, $provider, $options, resultContinuation);
|
|
5025
5009
|
return constructCallableReference(function ($this$promise, $completion) {
|
|
5026
|
-
return i.
|
|
5010
|
+
return i.a1o($this$promise, $completion);
|
|
5027
5011
|
}, 1);
|
|
5028
5012
|
}
|
|
5029
5013
|
var properties_initialized_ElevationJsApi_kt_8pvyh6;
|
|
@@ -5177,7 +5161,7 @@
|
|
|
5177
5161
|
}
|
|
5178
5162
|
function $fetchAndDecodeTileCOROUTINE$(url, resultContinuation) {
|
|
5179
5163
|
CoroutineImpl.call(this, resultContinuation);
|
|
5180
|
-
this.
|
|
5164
|
+
this.j1o_1 = url;
|
|
5181
5165
|
}
|
|
5182
5166
|
protoOf($fetchAndDecodeTileCOROUTINE$).r7 = function () {
|
|
5183
5167
|
var suspendResult = this.l7_1;
|
|
@@ -5189,14 +5173,14 @@
|
|
|
5189
5173
|
this.k7_1 = 4;
|
|
5190
5174
|
if (get_isNode()) {
|
|
5191
5175
|
this.j7_1 = 2;
|
|
5192
|
-
suspendResult = decodeNode(this.
|
|
5176
|
+
suspendResult = decodeNode(this.j1o_1, this);
|
|
5193
5177
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5194
5178
|
return suspendResult;
|
|
5195
5179
|
}
|
|
5196
5180
|
continue $sm;
|
|
5197
5181
|
} else {
|
|
5198
5182
|
this.j7_1 = 1;
|
|
5199
|
-
suspendResult = decodeBrowser(this.
|
|
5183
|
+
suspendResult = decodeBrowser(this.j1o_1, this);
|
|
5200
5184
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5201
5185
|
return suspendResult;
|
|
5202
5186
|
}
|
|
@@ -5204,15 +5188,15 @@
|
|
|
5204
5188
|
}
|
|
5205
5189
|
|
|
5206
5190
|
case 1:
|
|
5207
|
-
this.
|
|
5191
|
+
this.k1o_1 = suspendResult;
|
|
5208
5192
|
this.j7_1 = 3;
|
|
5209
5193
|
continue $sm;
|
|
5210
5194
|
case 2:
|
|
5211
|
-
this.
|
|
5195
|
+
this.k1o_1 = suspendResult;
|
|
5212
5196
|
this.j7_1 = 3;
|
|
5213
5197
|
continue $sm;
|
|
5214
5198
|
case 3:
|
|
5215
|
-
return this.
|
|
5199
|
+
return this.k1o_1;
|
|
5216
5200
|
case 4:
|
|
5217
5201
|
throw this.m7_1;
|
|
5218
5202
|
}
|
|
@@ -5229,8 +5213,8 @@
|
|
|
5229
5213
|
};
|
|
5230
5214
|
function $decodeTileBytesCOROUTINE$(bytes, sourceUrl, resultContinuation) {
|
|
5231
5215
|
CoroutineImpl.call(this, resultContinuation);
|
|
5232
|
-
this.
|
|
5233
|
-
this.
|
|
5216
|
+
this.t1o_1 = bytes;
|
|
5217
|
+
this.u1o_1 = sourceUrl;
|
|
5234
5218
|
}
|
|
5235
5219
|
protoOf($decodeTileBytesCOROUTINE$).r7 = function () {
|
|
5236
5220
|
var suspendResult = this.l7_1;
|
|
@@ -5242,14 +5226,14 @@
|
|
|
5242
5226
|
this.k7_1 = 4;
|
|
5243
5227
|
if (get_isNode()) {
|
|
5244
5228
|
this.j7_1 = 2;
|
|
5245
|
-
suspendResult = decodeBytesNode(this.
|
|
5229
|
+
suspendResult = decodeBytesNode(this.t1o_1, this.u1o_1, this);
|
|
5246
5230
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5247
5231
|
return suspendResult;
|
|
5248
5232
|
}
|
|
5249
5233
|
continue $sm;
|
|
5250
5234
|
} else {
|
|
5251
5235
|
this.j7_1 = 1;
|
|
5252
|
-
suspendResult = decodeBlob(blobOf(this.
|
|
5236
|
+
suspendResult = decodeBlob(blobOf(this.t1o_1), this.u1o_1, this);
|
|
5253
5237
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5254
5238
|
return suspendResult;
|
|
5255
5239
|
}
|
|
@@ -5257,15 +5241,15 @@
|
|
|
5257
5241
|
}
|
|
5258
5242
|
|
|
5259
5243
|
case 1:
|
|
5260
|
-
this.
|
|
5244
|
+
this.v1o_1 = suspendResult;
|
|
5261
5245
|
this.j7_1 = 3;
|
|
5262
5246
|
continue $sm;
|
|
5263
5247
|
case 2:
|
|
5264
|
-
this.
|
|
5248
|
+
this.v1o_1 = suspendResult;
|
|
5265
5249
|
this.j7_1 = 3;
|
|
5266
5250
|
continue $sm;
|
|
5267
5251
|
case 3:
|
|
5268
|
-
return this.
|
|
5252
|
+
return this.v1o_1;
|
|
5269
5253
|
case 4:
|
|
5270
5254
|
throw this.m7_1;
|
|
5271
5255
|
}
|
|
@@ -5282,7 +5266,7 @@
|
|
|
5282
5266
|
};
|
|
5283
5267
|
function $decodeNodeCOROUTINE$(url, resultContinuation) {
|
|
5284
5268
|
CoroutineImpl.call(this, resultContinuation);
|
|
5285
|
-
this.
|
|
5269
|
+
this.e1p_1 = url;
|
|
5286
5270
|
}
|
|
5287
5271
|
protoOf($decodeNodeCOROUTINE$).r7 = function () {
|
|
5288
5272
|
var suspendResult = this.l7_1;
|
|
@@ -5293,7 +5277,7 @@
|
|
|
5293
5277
|
case 0:
|
|
5294
5278
|
this.k7_1 = 4;
|
|
5295
5279
|
this.j7_1 = 1;
|
|
5296
|
-
suspendResult = await_0(fetchUrlNode(this.
|
|
5280
|
+
suspendResult = await_0(fetchUrlNode(this.e1p_1), this);
|
|
5297
5281
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5298
5282
|
return suspendResult;
|
|
5299
5283
|
}
|
|
@@ -5301,7 +5285,7 @@
|
|
|
5301
5285
|
continue $sm;
|
|
5302
5286
|
case 1:
|
|
5303
5287
|
var res = suspendResult;
|
|
5304
|
-
requireOk(res, this.
|
|
5288
|
+
requireOk(res, this.e1p_1);
|
|
5305
5289
|
this.j7_1 = 2;
|
|
5306
5290
|
suspendResult = await_0(responseArrayBuffer(res), this);
|
|
5307
5291
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -5337,7 +5321,7 @@
|
|
|
5337
5321
|
};
|
|
5338
5322
|
function $decodeBrowserCOROUTINE$(url, resultContinuation) {
|
|
5339
5323
|
CoroutineImpl.call(this, resultContinuation);
|
|
5340
|
-
this.
|
|
5324
|
+
this.n1p_1 = url;
|
|
5341
5325
|
}
|
|
5342
5326
|
protoOf($decodeBrowserCOROUTINE$).r7 = function () {
|
|
5343
5327
|
var suspendResult = this.l7_1;
|
|
@@ -5348,7 +5332,7 @@
|
|
|
5348
5332
|
case 0:
|
|
5349
5333
|
this.k7_1 = 4;
|
|
5350
5334
|
this.j7_1 = 1;
|
|
5351
|
-
suspendResult = await_0(fetchUrlBrowser(this.
|
|
5335
|
+
suspendResult = await_0(fetchUrlBrowser(this.n1p_1), this);
|
|
5352
5336
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5353
5337
|
return suspendResult;
|
|
5354
5338
|
}
|
|
@@ -5356,7 +5340,7 @@
|
|
|
5356
5340
|
continue $sm;
|
|
5357
5341
|
case 1:
|
|
5358
5342
|
var res = suspendResult;
|
|
5359
|
-
requireOk(res, this.
|
|
5343
|
+
requireOk(res, this.n1p_1);
|
|
5360
5344
|
this.j7_1 = 2;
|
|
5361
5345
|
suspendResult = await_0(res.blob(), this);
|
|
5362
5346
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -5367,7 +5351,7 @@
|
|
|
5367
5351
|
case 2:
|
|
5368
5352
|
var ARGUMENT = suspendResult;
|
|
5369
5353
|
this.j7_1 = 3;
|
|
5370
|
-
suspendResult = decodeBlob(ARGUMENT, this.
|
|
5354
|
+
suspendResult = decodeBlob(ARGUMENT, this.n1p_1, this);
|
|
5371
5355
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5372
5356
|
return suspendResult;
|
|
5373
5357
|
}
|
|
@@ -5391,8 +5375,8 @@
|
|
|
5391
5375
|
};
|
|
5392
5376
|
function $decodeBytesNodeCOROUTINE$(bytes, sourceUrl, resultContinuation) {
|
|
5393
5377
|
CoroutineImpl.call(this, resultContinuation);
|
|
5394
|
-
this.
|
|
5395
|
-
this.
|
|
5378
|
+
this.w1p_1 = bytes;
|
|
5379
|
+
this.x1p_1 = sourceUrl;
|
|
5396
5380
|
}
|
|
5397
5381
|
protoOf($decodeBytesNodeCOROUTINE$).r7 = function () {
|
|
5398
5382
|
var suspendResult = this.l7_1;
|
|
@@ -5402,7 +5386,7 @@
|
|
|
5402
5386
|
switch (tmp) {
|
|
5403
5387
|
case 0:
|
|
5404
5388
|
this.k7_1 = 4;
|
|
5405
|
-
var view = this.
|
|
5389
|
+
var view = this.w1p_1;
|
|
5406
5390
|
var buffer = view.buffer.slice(view.byteOffset, view.byteOffset + view.byteLength);
|
|
5407
5391
|
this.k7_1 = 2;
|
|
5408
5392
|
this.j7_1 = 1;
|
|
@@ -5413,7 +5397,7 @@
|
|
|
5413
5397
|
|
|
5414
5398
|
continue $sm;
|
|
5415
5399
|
case 1:
|
|
5416
|
-
this.
|
|
5400
|
+
this.y1p_1 = suspendResult;
|
|
5417
5401
|
this.k7_1 = 4;
|
|
5418
5402
|
this.j7_1 = 3;
|
|
5419
5403
|
continue $sm;
|
|
@@ -5423,7 +5407,7 @@
|
|
|
5423
5407
|
if (tmp_0 instanceof Error) {
|
|
5424
5408
|
var e = this.m7_1;
|
|
5425
5409
|
var tmp_1 = this;
|
|
5426
|
-
var this_0 = this.
|
|
5410
|
+
var this_0 = this.x1p_1;
|
|
5427
5411
|
var tmp_2;
|
|
5428
5412
|
if (charSequenceLength(this_0) === 0) {
|
|
5429
5413
|
tmp_2 = '<unnamed bytes>';
|
|
@@ -5438,7 +5422,7 @@
|
|
|
5438
5422
|
|
|
5439
5423
|
case 3:
|
|
5440
5424
|
this.k7_1 = 4;
|
|
5441
|
-
var image = this.
|
|
5425
|
+
var image = this.y1p_1;
|
|
5442
5426
|
return rawTileFromJsquash(image);
|
|
5443
5427
|
case 4:
|
|
5444
5428
|
throw this.m7_1;
|
|
@@ -5456,8 +5440,8 @@
|
|
|
5456
5440
|
};
|
|
5457
5441
|
function $decodeBlobCOROUTINE$(blob, sourceUrl, resultContinuation) {
|
|
5458
5442
|
CoroutineImpl.call(this, resultContinuation);
|
|
5459
|
-
this.
|
|
5460
|
-
this.
|
|
5443
|
+
this.h1q_1 = blob;
|
|
5444
|
+
this.i1q_1 = sourceUrl;
|
|
5461
5445
|
}
|
|
5462
5446
|
protoOf($decodeBlobCOROUTINE$).r7 = function () {
|
|
5463
5447
|
var suspendResult = this.l7_1;
|
|
@@ -5469,14 +5453,14 @@
|
|
|
5469
5453
|
this.k7_1 = 3;
|
|
5470
5454
|
this.k7_1 = 2;
|
|
5471
5455
|
this.j7_1 = 1;
|
|
5472
|
-
suspendResult = await_0(window.createImageBitmap(this.
|
|
5456
|
+
suspendResult = await_0(window.createImageBitmap(this.h1q_1), this);
|
|
5473
5457
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5474
5458
|
return suspendResult;
|
|
5475
5459
|
}
|
|
5476
5460
|
|
|
5477
5461
|
continue $sm;
|
|
5478
5462
|
case 1:
|
|
5479
|
-
this.
|
|
5463
|
+
this.j1q_1 = suspendResult;
|
|
5480
5464
|
this.k7_1 = 3;
|
|
5481
5465
|
this.j7_1 = 4;
|
|
5482
5466
|
continue $sm;
|
|
@@ -5486,7 +5470,7 @@
|
|
|
5486
5470
|
if (tmp_0 instanceof Error) {
|
|
5487
5471
|
var e = this.m7_1;
|
|
5488
5472
|
var tmp_1 = this;
|
|
5489
|
-
var this_0 = this.
|
|
5473
|
+
var this_0 = this.i1q_1;
|
|
5490
5474
|
var tmp_2;
|
|
5491
5475
|
if (charSequenceLength(this_0) === 0) {
|
|
5492
5476
|
tmp_2 = '<unnamed bytes>';
|
|
@@ -5503,7 +5487,7 @@
|
|
|
5503
5487
|
throw this.m7_1;
|
|
5504
5488
|
case 4:
|
|
5505
5489
|
this.k7_1 = 3;
|
|
5506
|
-
var bitmap = this.
|
|
5490
|
+
var bitmap = this.j1q_1;
|
|
5507
5491
|
l$ret$3: do {
|
|
5508
5492
|
var tmp$ret$0;
|
|
5509
5493
|
l$ret$1: do {
|
|
@@ -5551,7 +5535,7 @@
|
|
|
5551
5535
|
};
|
|
5552
5536
|
function $decodeWebpNodeCOROUTINE$(buffer, resultContinuation) {
|
|
5553
5537
|
CoroutineImpl.call(this, resultContinuation);
|
|
5554
|
-
this.
|
|
5538
|
+
this.s1q_1 = buffer;
|
|
5555
5539
|
}
|
|
5556
5540
|
protoOf($decodeWebpNodeCOROUTINE$).r7 = function () {
|
|
5557
5541
|
var suspendResult = this.l7_1;
|
|
@@ -5570,7 +5554,7 @@
|
|
|
5570
5554
|
continue $sm;
|
|
5571
5555
|
case 1:
|
|
5572
5556
|
var decode = suspendResult;
|
|
5573
|
-
var resultPromise = decode(this.
|
|
5557
|
+
var resultPromise = decode(this.s1q_1);
|
|
5574
5558
|
this.j7_1 = 2;
|
|
5575
5559
|
suspendResult = await_0(resultPromise, this);
|
|
5576
5560
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -5596,7 +5580,7 @@
|
|
|
5596
5580
|
};
|
|
5597
5581
|
function $fetchTileBytesCOROUTINE$(url, resultContinuation) {
|
|
5598
5582
|
CoroutineImpl.call(this, resultContinuation);
|
|
5599
|
-
this.
|
|
5583
|
+
this.b1r_1 = url;
|
|
5600
5584
|
}
|
|
5601
5585
|
protoOf($fetchTileBytesCOROUTINE$).r7 = function () {
|
|
5602
5586
|
var suspendResult = this.l7_1;
|
|
@@ -5608,14 +5592,14 @@
|
|
|
5608
5592
|
this.k7_1 = 5;
|
|
5609
5593
|
if (get_isNode()) {
|
|
5610
5594
|
this.j7_1 = 2;
|
|
5611
|
-
suspendResult = await_0(fetchUrlNode(this.
|
|
5595
|
+
suspendResult = await_0(fetchUrlNode(this.b1r_1), this);
|
|
5612
5596
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5613
5597
|
return suspendResult;
|
|
5614
5598
|
}
|
|
5615
5599
|
continue $sm;
|
|
5616
5600
|
} else {
|
|
5617
5601
|
this.j7_1 = 1;
|
|
5618
|
-
suspendResult = await_0(fetchUrlBrowser(this.
|
|
5602
|
+
suspendResult = await_0(fetchUrlBrowser(this.b1r_1), this);
|
|
5619
5603
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5620
5604
|
return suspendResult;
|
|
5621
5605
|
}
|
|
@@ -5623,16 +5607,16 @@
|
|
|
5623
5607
|
}
|
|
5624
5608
|
|
|
5625
5609
|
case 1:
|
|
5626
|
-
this.
|
|
5610
|
+
this.c1r_1 = suspendResult;
|
|
5627
5611
|
this.j7_1 = 3;
|
|
5628
5612
|
continue $sm;
|
|
5629
5613
|
case 2:
|
|
5630
|
-
this.
|
|
5614
|
+
this.c1r_1 = suspendResult;
|
|
5631
5615
|
this.j7_1 = 3;
|
|
5632
5616
|
continue $sm;
|
|
5633
5617
|
case 3:
|
|
5634
|
-
var res = this.
|
|
5635
|
-
requireOk(res, this.
|
|
5618
|
+
var res = this.c1r_1;
|
|
5619
|
+
requireOk(res, this.b1r_1);
|
|
5636
5620
|
this.j7_1 = 4;
|
|
5637
5621
|
suspendResult = await_0(responseArrayBuffer(res), this);
|
|
5638
5622
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -5669,13 +5653,13 @@
|
|
|
5669
5653
|
function fetchAndDecodeTile$ref_1() {
|
|
5670
5654
|
var i = new fetchAndDecodeTile$ref();
|
|
5671
5655
|
return constructCallableReference(function (p0, $completion) {
|
|
5672
|
-
return i.
|
|
5656
|
+
return i.y19(p0, $completion);
|
|
5673
5657
|
}, 1, 1, 2, 'fetchAndDecodeTile');
|
|
5674
5658
|
}
|
|
5675
5659
|
function fetchTileBytes$ref_0() {
|
|
5676
5660
|
var i = new fetchTileBytes$ref();
|
|
5677
5661
|
return constructCallableReference(function (p0, $completion) {
|
|
5678
|
-
return i.
|
|
5662
|
+
return i.a1m(p0, $completion);
|
|
5679
5663
|
}, 1, 1, 5, 'fetchTileBytes');
|
|
5680
5664
|
}
|
|
5681
5665
|
//region block: init
|