@glandais/vcyclist-engine 6.6.0 → 6.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fit-kotlin-sdk.js +3744 -3744
- package/index.d.ts +19 -0
- package/kotlin-kotlin-stdlib.js +7 -7
- package/kotlinx-coroutines-core.js +2 -2
- package/package.json +1 -1
- package/vcyclist-elevation.js +1419 -946
- package/vcyclist-elevation.js.map +1 -1
- package/vcyclist-engine.js +1679 -1601
- package/vcyclist-engine.js.map +1 -1
- package/vcyclist-fit.js +204 -204
- package/vcyclist-gpx.js +1363 -1313
- package/vcyclist-gpx.js.map +1 -1
- package/xmlutil-core.js +2401 -2401
package/vcyclist-elevation.js
CHANGED
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
var CoroutineImpl = kotlin_kotlin.$_$.f6;
|
|
30
30
|
var Unit_instance = kotlin_kotlin.$_$.l1;
|
|
31
31
|
var THROW_CCE = kotlin_kotlin.$_$.wb;
|
|
32
|
-
var MutableEntry = kotlin_kotlin.$_$.y2;
|
|
33
32
|
var isInterface = kotlin_kotlin.$_$.f8;
|
|
34
33
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.q5;
|
|
35
34
|
var initMetadataForLambda = kotlin_kotlin.$_$.c8;
|
|
36
35
|
var constructCallableReference = kotlin_kotlin.$_$.n7;
|
|
36
|
+
var MutableEntry = kotlin_kotlin.$_$.y2;
|
|
37
37
|
var emptyList = kotlin_kotlin.$_$.s3;
|
|
38
38
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.u1;
|
|
39
39
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.o1;
|
|
@@ -150,7 +150,8 @@
|
|
|
150
150
|
initMetadataForClass(SmoothingOptions, 'SmoothingOptions', SmoothingOptions);
|
|
151
151
|
initMetadataForClass(FilterOptions, 'FilterOptions', FilterOptions);
|
|
152
152
|
initMetadataForLambda(BatchCalculator$setElevations$slambda, CoroutineImpl, VOID, [1]);
|
|
153
|
-
|
|
153
|
+
initMetadataForLambda(BatchCalculator$mapByTile$slambda, CoroutineImpl, VOID, [1]);
|
|
154
|
+
initMetadataForCoroutine($mapByTileCOROUTINE$, CoroutineImpl);
|
|
154
155
|
initMetadataForCoroutine($getElevationsAlongCOROUTINE$, CoroutineImpl);
|
|
155
156
|
initMetadataForClass(BatchCalculator, 'BatchCalculator', VOID, VOID, VOID, [4, 7]);
|
|
156
157
|
initMetadataForClass(TileEncoding, 'TileEncoding', VOID, Enum);
|
|
@@ -160,13 +161,17 @@
|
|
|
160
161
|
initMetadataForObject(Distance, 'Distance');
|
|
161
162
|
initMetadataForObject(DouglasPeucker, 'DouglasPeucker');
|
|
162
163
|
initMetadataForObject(EcefConverter, 'EcefConverter');
|
|
164
|
+
initMetadataForClass(UnreadableFlag, 'UnreadableFlag', UnreadableFlag);
|
|
163
165
|
initMetadataForCoroutine($getElevationCOROUTINE$, CoroutineImpl);
|
|
166
|
+
initMetadataForCoroutine($readOwnCOROUTINE$, CoroutineImpl);
|
|
164
167
|
initMetadataForCoroutine($getInterpolatedElevationCOROUTINE$, CoroutineImpl);
|
|
165
168
|
initMetadataForCoroutine($elevationFromPixelCOROUTINE$, CoroutineImpl);
|
|
166
|
-
initMetadataForClass(ElevationCalculator, 'ElevationCalculator', VOID, VOID, VOID, [3,
|
|
169
|
+
initMetadataForClass(ElevationCalculator, 'ElevationCalculator', VOID, VOID, VOID, [3, 4, 2]);
|
|
167
170
|
initMetadataForObject(ElevationFunctions, 'ElevationFunctions');
|
|
168
171
|
initMetadataForLambda(ElevationProvider$calculator$slambda, CoroutineImpl, VOID, [2]);
|
|
169
172
|
initMetadataForLambda(ElevationProvider$calculator$slambda_1, CoroutineImpl, VOID, [2]);
|
|
173
|
+
initMetadataForLambda(ElevationProvider$setElevationsWithOrigin$slambda, CoroutineImpl, VOID, [1]);
|
|
174
|
+
initMetadataForCoroutine($sampleCOROUTINE$, CoroutineImpl);
|
|
170
175
|
initMetadataForClass(ElevationProvider, 'ElevationProvider', ElevationProvider_init_$Create$, VOID, VOID, [3, 2, 6]);
|
|
171
176
|
initMetadataForFunctionReference(fetchAndDecodeTile$ref, KFunctionImpl, VOID, [1]);
|
|
172
177
|
initMetadataForLambda(defaultTileFetcher$slambda, CoroutineImpl, VOID, [1]);
|
|
@@ -194,10 +199,13 @@
|
|
|
194
199
|
initMetadataForCoroutine($loadCOROUTINE$, CoroutineImpl);
|
|
195
200
|
initMetadataForClass(LruCache, 'LruCache', VOID, VOID, VOID, [1, 2, 0]);
|
|
196
201
|
initMetadataForClass(RawTile, 'RawTile');
|
|
202
|
+
initMetadataForClass(TerrainSample, 'TerrainSample');
|
|
197
203
|
initMetadataForCompanion(Companion_0);
|
|
204
|
+
initMetadataForClass(TerrainOrigin, 'TerrainOrigin', VOID, Enum);
|
|
205
|
+
initMetadataForCompanion(Companion_1);
|
|
198
206
|
initMetadataForClass(Tile, 'Tile');
|
|
199
207
|
initMetadataForClass(Entry, 'Entry');
|
|
200
|
-
initMetadataForCompanion(
|
|
208
|
+
initMetadataForCompanion(Companion_2);
|
|
201
209
|
initMetadataForCoroutine($cachedCOROUTINE$, CoroutineImpl);
|
|
202
210
|
initMetadataForCoroutine($rememberCOROUTINE$, CoroutineImpl);
|
|
203
211
|
initMetadataForClass(UnreadableTiles, 'UnreadableTiles', VOID, VOID, VOID, [1, 2]);
|
|
@@ -221,7 +229,7 @@
|
|
|
221
229
|
initMetadataForClass(Pixel, 'Pixel');
|
|
222
230
|
initMetadataForClass(TileCoordinatesFloat, 'TileCoordinatesFloat');
|
|
223
231
|
initMetadataForClass(PixelFloat, 'PixelFloat');
|
|
224
|
-
initMetadataForCompanion(
|
|
232
|
+
initMetadataForCompanion(Companion_3);
|
|
225
233
|
initMetadataForClass(Vector3D, 'Vector3D');
|
|
226
234
|
initMetadataForLambda(getElevation$slambda, CoroutineImpl, VOID, [1]);
|
|
227
235
|
initMetadataForLambda(getElevationsAlong$slambda, CoroutineImpl, VOID, [1]);
|
|
@@ -293,24 +301,82 @@
|
|
|
293
301
|
var asLong = numberToLong(d);
|
|
294
302
|
return toNumber(asLong) === d ? asLong.toString() : d.toString();
|
|
295
303
|
}
|
|
296
|
-
function BatchCalculator$setElevations$slambda(
|
|
297
|
-
this.pz_1 = $
|
|
298
|
-
this.qz_1 =
|
|
299
|
-
this.rz_1 = $
|
|
300
|
-
this.sz_1 = $interpolation;
|
|
301
|
-
this.tz_1 = $results;
|
|
304
|
+
function BatchCalculator$setElevations$slambda(this$0, $zoomLevel, $interpolation, resultContinuation) {
|
|
305
|
+
this.pz_1 = this$0;
|
|
306
|
+
this.qz_1 = $zoomLevel;
|
|
307
|
+
this.rz_1 = $interpolation;
|
|
302
308
|
CoroutineImpl.call(this, resultContinuation);
|
|
303
309
|
}
|
|
304
|
-
protoOf(BatchCalculator$setElevations$slambda).
|
|
305
|
-
var tmp = this.
|
|
310
|
+
protoOf(BatchCalculator$setElevations$slambda).vz = function (coord, $completion) {
|
|
311
|
+
var tmp = this.wz(coord, $completion);
|
|
306
312
|
tmp.l7_1 = Unit_instance;
|
|
307
313
|
tmp.m7_1 = null;
|
|
308
314
|
return tmp.r7();
|
|
309
315
|
};
|
|
310
316
|
protoOf(BatchCalculator$setElevations$slambda).z7 = function (p1, $completion) {
|
|
311
|
-
return this.
|
|
317
|
+
return this.vz((!(p1 == null) ? isInterface(p1, Coordinates) : false) ? p1 : THROW_CCE(), $completion);
|
|
312
318
|
};
|
|
313
319
|
protoOf(BatchCalculator$setElevations$slambda).r7 = function () {
|
|
320
|
+
var suspendResult = this.l7_1;
|
|
321
|
+
$sm: do
|
|
322
|
+
try {
|
|
323
|
+
var tmp = this.j7_1;
|
|
324
|
+
switch (tmp) {
|
|
325
|
+
case 0:
|
|
326
|
+
this.k7_1 = 2;
|
|
327
|
+
this.uz_1 = this.sz_1.xz();
|
|
328
|
+
this.tz_1 = this.sz_1.yz();
|
|
329
|
+
this.j7_1 = 1;
|
|
330
|
+
suspendResult = this.pz_1.zz_1.d10(this.sz_1, this.qz_1, this.rz_1, this);
|
|
331
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
332
|
+
return suspendResult;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
continue $sm;
|
|
336
|
+
case 1:
|
|
337
|
+
var ARGUMENT = suspendResult;
|
|
338
|
+
return new LatLonElevation(this.uz_1, this.tz_1, ARGUMENT);
|
|
339
|
+
case 2:
|
|
340
|
+
throw this.m7_1;
|
|
341
|
+
}
|
|
342
|
+
} catch ($p) {
|
|
343
|
+
var e = $p;
|
|
344
|
+
if (this.k7_1 === 2) {
|
|
345
|
+
throw e;
|
|
346
|
+
} else {
|
|
347
|
+
this.j7_1 = this.k7_1;
|
|
348
|
+
this.m7_1 = e;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
while (true);
|
|
352
|
+
};
|
|
353
|
+
protoOf(BatchCalculator$setElevations$slambda).wz = function (coord, completion) {
|
|
354
|
+
var i = new BatchCalculator$setElevations$slambda(this.pz_1, this.qz_1, this.rz_1, completion);
|
|
355
|
+
i.sz_1 = coord;
|
|
356
|
+
return i;
|
|
357
|
+
};
|
|
358
|
+
function BatchCalculator$setElevations$slambda_0(this$0, $zoomLevel, $interpolation, resultContinuation) {
|
|
359
|
+
var i = new BatchCalculator$setElevations$slambda(this$0, $zoomLevel, $interpolation, resultContinuation);
|
|
360
|
+
return constructCallableReference(function (coord, $completion) {
|
|
361
|
+
return i.vz(coord, $completion);
|
|
362
|
+
}, 1);
|
|
363
|
+
}
|
|
364
|
+
function BatchCalculator$mapByTile$slambda($results, $read, $coordinates, resultContinuation) {
|
|
365
|
+
this.m10_1 = $results;
|
|
366
|
+
this.n10_1 = $read;
|
|
367
|
+
this.o10_1 = $coordinates;
|
|
368
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
369
|
+
}
|
|
370
|
+
protoOf(BatchCalculator$mapByTile$slambda).s10 = function (_destruct__k2r9zo, $completion) {
|
|
371
|
+
var tmp = this.t10(_destruct__k2r9zo, $completion);
|
|
372
|
+
tmp.l7_1 = Unit_instance;
|
|
373
|
+
tmp.m7_1 = null;
|
|
374
|
+
return tmp.r7();
|
|
375
|
+
};
|
|
376
|
+
protoOf(BatchCalculator$mapByTile$slambda).z7 = function (p1, $completion) {
|
|
377
|
+
return this.s10((!(p1 == null) ? isInterface(p1, MutableEntry) : false) ? p1 : THROW_CCE(), $completion);
|
|
378
|
+
};
|
|
379
|
+
protoOf(BatchCalculator$mapByTile$slambda).r7 = function () {
|
|
314
380
|
var suspendResult = this.l7_1;
|
|
315
381
|
$sm: do
|
|
316
382
|
try {
|
|
@@ -318,28 +384,27 @@
|
|
|
318
384
|
switch (tmp) {
|
|
319
385
|
case 0:
|
|
320
386
|
this.k7_1 = 4;
|
|
321
|
-
var indices = this.
|
|
322
|
-
this.
|
|
387
|
+
var indices = this.p10_1.q1();
|
|
388
|
+
this.r10_1 = indices.l();
|
|
323
389
|
this.j7_1 = 1;
|
|
324
390
|
continue $sm;
|
|
325
391
|
case 1:
|
|
326
|
-
if (!this.
|
|
392
|
+
if (!this.r10_1.m()) {
|
|
327
393
|
this.j7_1 = 3;
|
|
328
394
|
continue $sm;
|
|
329
395
|
}
|
|
330
396
|
|
|
331
|
-
this.
|
|
332
|
-
this.vz_1 = this.pz_1.p(this.wz_1);
|
|
397
|
+
this.q10_1 = this.r10_1.n();
|
|
333
398
|
this.j7_1 = 2;
|
|
334
|
-
suspendResult = this.
|
|
399
|
+
suspendResult = this.n10_1(this.o10_1.p(this.q10_1), this);
|
|
335
400
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
336
401
|
return suspendResult;
|
|
337
402
|
}
|
|
338
403
|
|
|
339
404
|
continue $sm;
|
|
340
405
|
case 2:
|
|
341
|
-
var
|
|
342
|
-
this.
|
|
406
|
+
var ARGUMENT = suspendResult;
|
|
407
|
+
this.m10_1[this.q10_1] = ARGUMENT;
|
|
343
408
|
this.j7_1 = 1;
|
|
344
409
|
continue $sm;
|
|
345
410
|
case 3:
|
|
@@ -358,26 +423,26 @@
|
|
|
358
423
|
}
|
|
359
424
|
while (true);
|
|
360
425
|
};
|
|
361
|
-
protoOf(BatchCalculator$
|
|
362
|
-
var i = new BatchCalculator$
|
|
363
|
-
i.
|
|
426
|
+
protoOf(BatchCalculator$mapByTile$slambda).t10 = function (_destruct__k2r9zo, completion) {
|
|
427
|
+
var i = new BatchCalculator$mapByTile$slambda(this.m10_1, this.n10_1, this.o10_1, completion);
|
|
428
|
+
i.p10_1 = _destruct__k2r9zo;
|
|
364
429
|
return i;
|
|
365
430
|
};
|
|
366
|
-
function BatchCalculator$
|
|
367
|
-
var i = new BatchCalculator$
|
|
431
|
+
function BatchCalculator$mapByTile$slambda_0($results, $read, $coordinates, resultContinuation) {
|
|
432
|
+
var i = new BatchCalculator$mapByTile$slambda($results, $read, $coordinates, resultContinuation);
|
|
368
433
|
return constructCallableReference(function (_destruct__k2r9zo, $completion) {
|
|
369
|
-
return i.
|
|
434
|
+
return i.s10(_destruct__k2r9zo, $completion);
|
|
370
435
|
}, 1);
|
|
371
436
|
}
|
|
372
|
-
function $
|
|
437
|
+
function $mapByTileCOROUTINE$(_this__u8e3s4, coordinates, zoomLevel, maxParallelTiles, read, resultContinuation) {
|
|
373
438
|
CoroutineImpl.call(this, resultContinuation);
|
|
374
|
-
this.
|
|
375
|
-
this.
|
|
376
|
-
this.
|
|
377
|
-
this.
|
|
378
|
-
this.
|
|
439
|
+
this.c11_1 = _this__u8e3s4;
|
|
440
|
+
this.d11_1 = coordinates;
|
|
441
|
+
this.e11_1 = zoomLevel;
|
|
442
|
+
this.f11_1 = maxParallelTiles;
|
|
443
|
+
this.g11_1 = read;
|
|
379
444
|
}
|
|
380
|
-
protoOf($
|
|
445
|
+
protoOf($mapByTileCOROUTINE$).r7 = function () {
|
|
381
446
|
var suspendResult = this.l7_1;
|
|
382
447
|
$sm: do
|
|
383
448
|
try {
|
|
@@ -385,20 +450,20 @@
|
|
|
385
450
|
switch (tmp) {
|
|
386
451
|
case 0:
|
|
387
452
|
this.k7_1 = 2;
|
|
388
|
-
if (this.
|
|
453
|
+
if (this.d11_1.r())
|
|
389
454
|
return emptyList();
|
|
390
455
|
var tmp_0 = this;
|
|
391
|
-
var size = this.
|
|
392
|
-
tmp_0.
|
|
456
|
+
var size = this.d11_1.o();
|
|
457
|
+
tmp_0.h11_1 = Array(size);
|
|
393
458
|
var byTile = LinkedHashMap_init_$Create$();
|
|
394
|
-
var iterator = this.
|
|
459
|
+
var iterator = this.d11_1.l();
|
|
395
460
|
var index = 0;
|
|
396
461
|
while (iterator.m()) {
|
|
397
462
|
var i = index;
|
|
398
463
|
index = index + 1 | 0;
|
|
399
464
|
var p = iterator.n();
|
|
400
|
-
var tile = ElevationFunctions_instance.
|
|
401
|
-
var key = '' + tile.
|
|
465
|
+
var tile = ElevationFunctions_instance.k11(p, this.e11_1);
|
|
466
|
+
var key = '' + tile.n11_1 + '/' + tile.l11_1 + '/' + tile.m11_1;
|
|
402
467
|
var value = byTile.t1(key);
|
|
403
468
|
var tmp_1;
|
|
404
469
|
if (value == null) {
|
|
@@ -414,14 +479,14 @@
|
|
|
414
479
|
this.j7_1 = 1;
|
|
415
480
|
var tmp_2 = Flux_instance;
|
|
416
481
|
var tmp_3 = byTile.w1();
|
|
417
|
-
suspendResult = tmp_2.
|
|
482
|
+
suspendResult = tmp_2.o11(tmp_3, this.f11_1, BatchCalculator$mapByTile$slambda_0(this.h11_1, this.g11_1, this.d11_1, null), this);
|
|
418
483
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
419
484
|
return suspendResult;
|
|
420
485
|
}
|
|
421
486
|
|
|
422
487
|
continue $sm;
|
|
423
488
|
case 1:
|
|
424
|
-
var tmp_4 = toList(this.
|
|
489
|
+
var tmp_4 = toList(this.h11_1);
|
|
425
490
|
return isInterface(tmp_4, KtList) ? tmp_4 : THROW_CCE();
|
|
426
491
|
case 2:
|
|
427
492
|
throw this.m7_1;
|
|
@@ -439,14 +504,14 @@
|
|
|
439
504
|
};
|
|
440
505
|
function $getElevationsAlongCOROUTINE$(_this__u8e3s4, path, zoomLevel, step, minDistance, interpolation, smoothingOptions, filterOptions, resultContinuation) {
|
|
441
506
|
CoroutineImpl.call(this, resultContinuation);
|
|
442
|
-
this.
|
|
443
|
-
this.
|
|
444
|
-
this.
|
|
445
|
-
this.
|
|
446
|
-
this.
|
|
447
|
-
this.
|
|
448
|
-
this.
|
|
449
|
-
this.
|
|
507
|
+
this.x11_1 = _this__u8e3s4;
|
|
508
|
+
this.y11_1 = path;
|
|
509
|
+
this.z11_1 = zoomLevel;
|
|
510
|
+
this.a12_1 = step;
|
|
511
|
+
this.b12_1 = minDistance;
|
|
512
|
+
this.c12_1 = interpolation;
|
|
513
|
+
this.d12_1 = smoothingOptions;
|
|
514
|
+
this.e12_1 = filterOptions;
|
|
450
515
|
}
|
|
451
516
|
protoOf($getElevationsAlongCOROUTINE$).r7 = function () {
|
|
452
517
|
var suspendResult = this.l7_1;
|
|
@@ -456,19 +521,19 @@
|
|
|
456
521
|
switch (tmp) {
|
|
457
522
|
case 0:
|
|
458
523
|
this.k7_1 = 2;
|
|
459
|
-
if (!(this.
|
|
524
|
+
if (!(this.y11_1.o() >= 2)) {
|
|
460
525
|
var message = 'Path must contain at least 2 coordinates';
|
|
461
526
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
462
527
|
}
|
|
463
528
|
|
|
464
|
-
if (!(this.
|
|
465
|
-
var message_0 = 'Step is too small: ' + formatNumber(this.
|
|
529
|
+
if (!(this.a12_1 > 1.0)) {
|
|
530
|
+
var message_0 = 'Step is too small: ' + formatNumber(this.x11_1, this.a12_1) + ' meters';
|
|
466
531
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
467
532
|
}
|
|
468
533
|
|
|
469
|
-
var densified = this.
|
|
534
|
+
var densified = this.x11_1.f12(this.y11_1, this.a12_1, this.b12_1);
|
|
470
535
|
this.j7_1 = 1;
|
|
471
|
-
suspendResult = this.
|
|
536
|
+
suspendResult = this.x11_1.g12(densified, this.z11_1, this.c12_1, VOID, this);
|
|
472
537
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
473
538
|
return suspendResult;
|
|
474
539
|
}
|
|
@@ -477,7 +542,7 @@
|
|
|
477
542
|
case 1:
|
|
478
543
|
var withElevation = suspendResult;
|
|
479
544
|
var tmp_0;
|
|
480
|
-
var tmp1_safe_receiver = this.
|
|
545
|
+
var tmp1_safe_receiver = this.d12_1;
|
|
481
546
|
if ((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.dz_1) === true) {
|
|
482
547
|
tmp_0 = withElevation.o() >= 3;
|
|
483
548
|
} else {
|
|
@@ -487,12 +552,12 @@
|
|
|
487
552
|
if (tmp_0) {
|
|
488
553
|
var tmp_1 = ElevationSmoother_instance;
|
|
489
554
|
var tmp_2 = withElevation;
|
|
490
|
-
var tmp0_elvis_lhs = this.
|
|
491
|
-
withElevation = tmp_1.
|
|
555
|
+
var tmp0_elvis_lhs = this.d12_1.cz_1;
|
|
556
|
+
withElevation = tmp_1.h12(tmp_2, tmp0_elvis_lhs == null ? 50.0 : tmp0_elvis_lhs);
|
|
492
557
|
}
|
|
493
558
|
|
|
494
559
|
var tmp_3;
|
|
495
|
-
var tmp4_safe_receiver = this.
|
|
560
|
+
var tmp4_safe_receiver = this.e12_1;
|
|
496
561
|
if ((tmp4_safe_receiver == null ? null : tmp4_safe_receiver.gz_1) === true) {
|
|
497
562
|
tmp_3 = withElevation.o() > 2;
|
|
498
563
|
} else {
|
|
@@ -502,10 +567,10 @@
|
|
|
502
567
|
if (tmp_3) {
|
|
503
568
|
var tmp_4 = DouglasPeucker_instance;
|
|
504
569
|
var tmp_5 = withElevation;
|
|
505
|
-
var tmp2_elvis_lhs = this.
|
|
570
|
+
var tmp2_elvis_lhs = this.e12_1.ez_1;
|
|
506
571
|
var tmp_6 = tmp2_elvis_lhs == null ? 10.0 : tmp2_elvis_lhs;
|
|
507
|
-
var tmp3_elvis_lhs = this.
|
|
508
|
-
withElevation = tmp_4.
|
|
572
|
+
var tmp3_elvis_lhs = this.e12_1.fz_1;
|
|
573
|
+
withElevation = tmp_4.i12(tmp_5, tmp_6, tmp3_elvis_lhs == null ? 3.0 : tmp3_elvis_lhs);
|
|
509
574
|
}
|
|
510
575
|
|
|
511
576
|
return withElevation;
|
|
@@ -524,25 +589,34 @@
|
|
|
524
589
|
while (true);
|
|
525
590
|
};
|
|
526
591
|
function BatchCalculator(calculator) {
|
|
527
|
-
this.
|
|
592
|
+
this.zz_1 = calculator;
|
|
528
593
|
}
|
|
529
|
-
protoOf(BatchCalculator).
|
|
530
|
-
|
|
594
|
+
protoOf(BatchCalculator).j12 = function (coordinates, zoomLevel, interpolation, maxParallelTiles, $completion) {
|
|
595
|
+
if (coordinates.r())
|
|
596
|
+
return emptyList();
|
|
597
|
+
return this.k12(coordinates, zoomLevel, maxParallelTiles, BatchCalculator$setElevations$slambda_0(this, zoomLevel, interpolation, null), $completion);
|
|
598
|
+
};
|
|
599
|
+
protoOf(BatchCalculator).g12 = function (coordinates, zoomLevel, interpolation, maxParallelTiles, $completion, $super) {
|
|
600
|
+
maxParallelTiles = maxParallelTiles === VOID ? 10 : maxParallelTiles;
|
|
601
|
+
return $super === VOID ? this.j12(coordinates, zoomLevel, interpolation, maxParallelTiles, $completion) : $super.j12.call(this, coordinates, zoomLevel, interpolation, maxParallelTiles, $completion);
|
|
602
|
+
};
|
|
603
|
+
protoOf(BatchCalculator).k12 = function (coordinates, zoomLevel, maxParallelTiles, read, $completion) {
|
|
604
|
+
var tmp = new $mapByTileCOROUTINE$(this, coordinates, zoomLevel, maxParallelTiles, read, $completion);
|
|
531
605
|
tmp.l7_1 = Unit_instance;
|
|
532
606
|
tmp.m7_1 = null;
|
|
533
607
|
return tmp.r7();
|
|
534
608
|
};
|
|
535
|
-
protoOf(BatchCalculator).
|
|
609
|
+
protoOf(BatchCalculator).l12 = function (coordinates, zoomLevel, maxParallelTiles, read, $completion, $super) {
|
|
536
610
|
maxParallelTiles = maxParallelTiles === VOID ? 10 : maxParallelTiles;
|
|
537
|
-
return $super === VOID ? this.
|
|
611
|
+
return $super === VOID ? this.k12(coordinates, zoomLevel, maxParallelTiles, read, $completion) : $super.k12.call(this, coordinates, zoomLevel, maxParallelTiles, read, $completion);
|
|
538
612
|
};
|
|
539
|
-
protoOf(BatchCalculator).
|
|
613
|
+
protoOf(BatchCalculator).m12 = function (path, zoomLevel, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion) {
|
|
540
614
|
var tmp = new $getElevationsAlongCOROUTINE$(this, path, zoomLevel, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion);
|
|
541
615
|
tmp.l7_1 = Unit_instance;
|
|
542
616
|
tmp.m7_1 = null;
|
|
543
617
|
return tmp.r7();
|
|
544
618
|
};
|
|
545
|
-
protoOf(BatchCalculator).
|
|
619
|
+
protoOf(BatchCalculator).f12 = function (path, step, minDistance) {
|
|
546
620
|
if (path.r())
|
|
547
621
|
return emptyList();
|
|
548
622
|
var out = ArrayList_init_$Create$_0(imul(path.o(), 2));
|
|
@@ -557,10 +631,10 @@
|
|
|
557
631
|
var i = inductionVariable;
|
|
558
632
|
inductionVariable = inductionVariable + 1 | 0;
|
|
559
633
|
var b = path.p(i);
|
|
560
|
-
var d = Distance_instance.
|
|
634
|
+
var d = Distance_instance.n12(anchor, b);
|
|
561
635
|
if (d < minDistance)
|
|
562
636
|
continue $l$loop;
|
|
563
|
-
var between = this.
|
|
637
|
+
var between = this.o12(anchor, b, step, d);
|
|
564
638
|
var inductionVariable_0 = 1;
|
|
565
639
|
var last_0 = between.o();
|
|
566
640
|
if (inductionVariable_0 < last_0)
|
|
@@ -577,15 +651,15 @@
|
|
|
577
651
|
while (inductionVariable < last);
|
|
578
652
|
return out;
|
|
579
653
|
};
|
|
580
|
-
protoOf(BatchCalculator).
|
|
654
|
+
protoOf(BatchCalculator).o12 = function (a, b, step, distance) {
|
|
581
655
|
if (distance <= step)
|
|
582
656
|
return listOf([a, b]);
|
|
583
657
|
var numSteps = numberToInt(distance / step);
|
|
584
658
|
var out = ArrayList_init_$Create$_0(numSteps + 2 | 0);
|
|
585
659
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
586
660
|
out.k(a);
|
|
587
|
-
var latDiff = b.
|
|
588
|
-
var lonDiff = b.
|
|
661
|
+
var latDiff = b.xz() - a.xz();
|
|
662
|
+
var lonDiff = b.yz() - a.yz();
|
|
589
663
|
var inductionVariable = 1;
|
|
590
664
|
if (inductionVariable <= numSteps)
|
|
591
665
|
do {
|
|
@@ -593,7 +667,7 @@
|
|
|
593
667
|
inductionVariable = inductionVariable + 1 | 0;
|
|
594
668
|
var f = i * step / distance;
|
|
595
669
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
596
|
-
var element = new LatLon(a.
|
|
670
|
+
var element = new LatLon(a.xz() + latDiff * f, a.yz() + lonDiff * f);
|
|
597
671
|
out.k(element);
|
|
598
672
|
}
|
|
599
673
|
while (!(i === numSteps));
|
|
@@ -685,26 +759,26 @@
|
|
|
685
759
|
}
|
|
686
760
|
function LatLon(latitude, longitude, elevation) {
|
|
687
761
|
elevation = elevation === VOID ? null : elevation;
|
|
688
|
-
this.
|
|
689
|
-
this.
|
|
690
|
-
this.
|
|
762
|
+
this.p12_1 = latitude;
|
|
763
|
+
this.q12_1 = longitude;
|
|
764
|
+
this.r12_1 = elevation;
|
|
691
765
|
}
|
|
692
|
-
protoOf(LatLon).
|
|
693
|
-
return this.
|
|
766
|
+
protoOf(LatLon).xz = function () {
|
|
767
|
+
return this.p12_1;
|
|
694
768
|
};
|
|
695
|
-
protoOf(LatLon).
|
|
696
|
-
return this.
|
|
769
|
+
protoOf(LatLon).yz = function () {
|
|
770
|
+
return this.q12_1;
|
|
697
771
|
};
|
|
698
|
-
protoOf(LatLon).
|
|
699
|
-
return this.
|
|
772
|
+
protoOf(LatLon).s12 = function () {
|
|
773
|
+
return this.r12_1;
|
|
700
774
|
};
|
|
701
775
|
protoOf(LatLon).toString = function () {
|
|
702
|
-
return 'LatLon(latitude=' + this.
|
|
776
|
+
return 'LatLon(latitude=' + this.p12_1 + ', longitude=' + this.q12_1 + ', elevation=' + this.r12_1 + ')';
|
|
703
777
|
};
|
|
704
778
|
protoOf(LatLon).hashCode = function () {
|
|
705
|
-
var result = getNumberHashCode(this.
|
|
706
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
707
|
-
result = imul(result, 31) + (this.
|
|
779
|
+
var result = getNumberHashCode(this.p12_1);
|
|
780
|
+
result = imul(result, 31) + getNumberHashCode(this.q12_1) | 0;
|
|
781
|
+
result = imul(result, 31) + (this.r12_1 == null ? 0 : getNumberHashCode(this.r12_1)) | 0;
|
|
708
782
|
return result;
|
|
709
783
|
};
|
|
710
784
|
protoOf(LatLon).equals = function (other) {
|
|
@@ -712,37 +786,37 @@
|
|
|
712
786
|
return true;
|
|
713
787
|
if (!(other instanceof LatLon))
|
|
714
788
|
return false;
|
|
715
|
-
if (!equals(this.
|
|
789
|
+
if (!equals(this.p12_1, other.p12_1))
|
|
716
790
|
return false;
|
|
717
|
-
if (!equals(this.
|
|
791
|
+
if (!equals(this.q12_1, other.q12_1))
|
|
718
792
|
return false;
|
|
719
|
-
if (!equals(this.
|
|
793
|
+
if (!equals(this.r12_1, other.r12_1))
|
|
720
794
|
return false;
|
|
721
795
|
return true;
|
|
722
796
|
};
|
|
723
797
|
function Coordinates() {
|
|
724
798
|
}
|
|
725
799
|
function LatLonElevation(latitude, longitude, elevation) {
|
|
726
|
-
this.
|
|
727
|
-
this.
|
|
728
|
-
this.
|
|
800
|
+
this.t12_1 = latitude;
|
|
801
|
+
this.u12_1 = longitude;
|
|
802
|
+
this.v12_1 = elevation;
|
|
729
803
|
}
|
|
730
|
-
protoOf(LatLonElevation).
|
|
731
|
-
return this.
|
|
804
|
+
protoOf(LatLonElevation).xz = function () {
|
|
805
|
+
return this.t12_1;
|
|
732
806
|
};
|
|
733
|
-
protoOf(LatLonElevation).
|
|
734
|
-
return this.
|
|
807
|
+
protoOf(LatLonElevation).yz = function () {
|
|
808
|
+
return this.u12_1;
|
|
735
809
|
};
|
|
736
|
-
protoOf(LatLonElevation).
|
|
737
|
-
return this.
|
|
810
|
+
protoOf(LatLonElevation).s12 = function () {
|
|
811
|
+
return this.v12_1;
|
|
738
812
|
};
|
|
739
813
|
protoOf(LatLonElevation).toString = function () {
|
|
740
|
-
return 'LatLonElevation(latitude=' + this.
|
|
814
|
+
return 'LatLonElevation(latitude=' + this.t12_1 + ', longitude=' + this.u12_1 + ', elevation=' + this.v12_1 + ')';
|
|
741
815
|
};
|
|
742
816
|
protoOf(LatLonElevation).hashCode = function () {
|
|
743
|
-
var result = getNumberHashCode(this.
|
|
744
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
745
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
817
|
+
var result = getNumberHashCode(this.t12_1);
|
|
818
|
+
result = imul(result, 31) + getNumberHashCode(this.u12_1) | 0;
|
|
819
|
+
result = imul(result, 31) + getNumberHashCode(this.v12_1) | 0;
|
|
746
820
|
return result;
|
|
747
821
|
};
|
|
748
822
|
protoOf(LatLonElevation).equals = function (other) {
|
|
@@ -750,21 +824,21 @@
|
|
|
750
824
|
return true;
|
|
751
825
|
if (!(other instanceof LatLonElevation))
|
|
752
826
|
return false;
|
|
753
|
-
if (!equals(this.
|
|
827
|
+
if (!equals(this.t12_1, other.t12_1))
|
|
754
828
|
return false;
|
|
755
|
-
if (!equals(this.
|
|
829
|
+
if (!equals(this.u12_1, other.u12_1))
|
|
756
830
|
return false;
|
|
757
|
-
if (!equals(this.
|
|
831
|
+
if (!equals(this.v12_1, other.v12_1))
|
|
758
832
|
return false;
|
|
759
833
|
return true;
|
|
760
834
|
};
|
|
761
835
|
function Distance() {
|
|
762
836
|
}
|
|
763
|
-
protoOf(Distance).
|
|
764
|
-
var lat1Rad = coord1.
|
|
765
|
-
var lat2Rad = coord2.
|
|
766
|
-
var deltaLat = (coord2.
|
|
767
|
-
var deltaLon = (coord2.
|
|
837
|
+
protoOf(Distance).n12 = function (coord1, coord2) {
|
|
838
|
+
var lat1Rad = coord1.xz() * 0.017453292519943295;
|
|
839
|
+
var lat2Rad = coord2.xz() * 0.017453292519943295;
|
|
840
|
+
var deltaLat = (coord2.xz() - coord1.xz()) * 0.017453292519943295;
|
|
841
|
+
var deltaLon = (coord2.yz() - coord1.yz()) * 0.017453292519943295;
|
|
768
842
|
// Inline function 'kotlin.math.sin' call
|
|
769
843
|
var x = deltaLat / 2.0;
|
|
770
844
|
var sinHalfLat = Math.sin(x);
|
|
@@ -786,7 +860,7 @@
|
|
|
786
860
|
var c = 2.0 * Math.atan2(tmp0, x_2);
|
|
787
861
|
return 6371000.0 * c;
|
|
788
862
|
};
|
|
789
|
-
protoOf(Distance).
|
|
863
|
+
protoOf(Distance).w12 = function (points) {
|
|
790
864
|
if (points.r()) {
|
|
791
865
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
792
866
|
return new Float64Array([0.0]);
|
|
@@ -798,7 +872,7 @@
|
|
|
798
872
|
do {
|
|
799
873
|
var i = inductionVariable;
|
|
800
874
|
inductionVariable = inductionVariable + 1 | 0;
|
|
801
|
-
out[i] = out[i - 1 | 0] + this.
|
|
875
|
+
out[i] = out[i - 1 | 0] + this.n12(points.p(i - 1 | 0), points.p(i));
|
|
802
876
|
}
|
|
803
877
|
while (inductionVariable < last);
|
|
804
878
|
return out;
|
|
@@ -817,7 +891,7 @@
|
|
|
817
891
|
do {
|
|
818
892
|
var i = inductionVariable;
|
|
819
893
|
inductionVariable = inductionVariable + 1 | 0;
|
|
820
|
-
var d = points.p(i).
|
|
894
|
+
var d = points.p(i).a13(first, last);
|
|
821
895
|
if (d > maxDistance) {
|
|
822
896
|
maxDistance = d;
|
|
823
897
|
maxIndex = i;
|
|
@@ -836,7 +910,7 @@
|
|
|
836
910
|
}
|
|
837
911
|
function DouglasPeucker() {
|
|
838
912
|
}
|
|
839
|
-
protoOf(DouglasPeucker).
|
|
913
|
+
protoOf(DouglasPeucker).i12 = function (points, tolerance, zExaggeration) {
|
|
840
914
|
if (points.o() <= 2)
|
|
841
915
|
return toList_0(points);
|
|
842
916
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -845,12 +919,12 @@
|
|
|
845
919
|
var _iterator__ex2g4s = points.l();
|
|
846
920
|
while (_iterator__ex2g4s.m()) {
|
|
847
921
|
var item = _iterator__ex2g4s.n();
|
|
848
|
-
var tmp$ret$2 = EcefConverter_instance.
|
|
922
|
+
var tmp$ret$2 = EcefConverter_instance.b13(item, zExaggeration);
|
|
849
923
|
destination.k(tmp$ret$2);
|
|
850
924
|
}
|
|
851
925
|
var ecef = destination;
|
|
852
926
|
// Inline function 'kotlin.collections.map' call
|
|
853
|
-
var this_0 = this.
|
|
927
|
+
var this_0 = this.c13(ecef, tolerance);
|
|
854
928
|
// Inline function 'kotlin.collections.mapTo' call
|
|
855
929
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
856
930
|
var _iterator__ex2g4s_0 = this_0.l();
|
|
@@ -861,7 +935,7 @@
|
|
|
861
935
|
}
|
|
862
936
|
return destination_0;
|
|
863
937
|
};
|
|
864
|
-
protoOf(DouglasPeucker).
|
|
938
|
+
protoOf(DouglasPeucker).c13 = function (points, tolerance) {
|
|
865
939
|
if (points.o() <= 2)
|
|
866
940
|
return toList_0(get_indices(points));
|
|
867
941
|
var lastIndex = get_lastIndex(points);
|
|
@@ -882,10 +956,10 @@
|
|
|
882
956
|
}
|
|
883
957
|
function EcefConverter() {
|
|
884
958
|
}
|
|
885
|
-
protoOf(EcefConverter).
|
|
886
|
-
var latRad = coordinates.
|
|
887
|
-
var lonRad = coordinates.
|
|
888
|
-
var tmp0_elvis_lhs = coordinates.
|
|
959
|
+
protoOf(EcefConverter).b13 = function (coordinates, zExaggeration) {
|
|
960
|
+
var latRad = coordinates.xz() * 0.017453292519943295;
|
|
961
|
+
var lonRad = coordinates.yz() * 0.017453292519943295;
|
|
962
|
+
var tmp0_elvis_lhs = coordinates.s12();
|
|
889
963
|
var elevationExaggerated = zExaggeration * (tmp0_elvis_lhs == null ? 0.0 : tmp0_elvis_lhs);
|
|
890
964
|
// Inline function 'kotlin.math.sin' call
|
|
891
965
|
var sinLat = Math.sin(latRad);
|
|
@@ -907,24 +981,27 @@
|
|
|
907
981
|
function EcefConverter_getInstance() {
|
|
908
982
|
return EcefConverter_instance;
|
|
909
983
|
}
|
|
910
|
-
function
|
|
911
|
-
|
|
984
|
+
function UnreadableFlag() {
|
|
985
|
+
this.d13_1 = false;
|
|
986
|
+
}
|
|
987
|
+
function getInterpolatedElevation($this, coords, zoomLevel, touched, $completion) {
|
|
988
|
+
var tmp = new $getInterpolatedElevationCOROUTINE$($this, coords, zoomLevel, touched, $completion);
|
|
912
989
|
tmp.l7_1 = Unit_instance;
|
|
913
990
|
tmp.m7_1 = null;
|
|
914
991
|
return tmp.r7();
|
|
915
992
|
}
|
|
916
|
-
function elevationFromPixel($this, pixel, $completion) {
|
|
917
|
-
var tmp = new $elevationFromPixelCOROUTINE$($this, pixel, $completion);
|
|
993
|
+
function elevationFromPixel($this, pixel, touched, $completion) {
|
|
994
|
+
var tmp = new $elevationFromPixelCOROUTINE$($this, pixel, touched, $completion);
|
|
918
995
|
tmp.l7_1 = Unit_instance;
|
|
919
996
|
tmp.m7_1 = null;
|
|
920
997
|
return tmp.r7();
|
|
921
998
|
}
|
|
922
999
|
function $getElevationCOROUTINE$(_this__u8e3s4, coords, zoomLevel, interpolation, resultContinuation) {
|
|
923
1000
|
CoroutineImpl.call(this, resultContinuation);
|
|
924
|
-
this.
|
|
925
|
-
this.
|
|
926
|
-
this.
|
|
927
|
-
this.
|
|
1001
|
+
this.t14_1 = _this__u8e3s4;
|
|
1002
|
+
this.u14_1 = coords;
|
|
1003
|
+
this.v14_1 = zoomLevel;
|
|
1004
|
+
this.w14_1 = interpolation;
|
|
928
1005
|
}
|
|
929
1006
|
protoOf($getElevationCOROUTINE$).r7 = function () {
|
|
930
1007
|
var suspendResult = this.l7_1;
|
|
@@ -933,19 +1010,81 @@
|
|
|
933
1010
|
var tmp = this.j7_1;
|
|
934
1011
|
switch (tmp) {
|
|
935
1012
|
case 0:
|
|
936
|
-
this.k7_1 = 8;
|
|
937
1013
|
this.k7_1 = 4;
|
|
938
|
-
|
|
1014
|
+
this.j7_1 = 1;
|
|
1015
|
+
suspendResult = this.t14_1.y14(this.u14_1, this.v14_1, this.w14_1, null, this);
|
|
1016
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1017
|
+
return suspendResult;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
continue $sm;
|
|
1021
|
+
case 1:
|
|
1022
|
+
var own = suspendResult;
|
|
1023
|
+
if (!isNaN_0(own))
|
|
1024
|
+
return own;
|
|
1025
|
+
var tmp0_safe_receiver = this.t14_1.c10_1;
|
|
1026
|
+
if (tmp0_safe_receiver == null) {
|
|
1027
|
+
this.x14_1 = null;
|
|
1028
|
+
this.j7_1 = 3;
|
|
1029
|
+
continue $sm;
|
|
1030
|
+
} else {
|
|
1031
|
+
this.j7_1 = 2;
|
|
1032
|
+
suspendResult = tmp0_safe_receiver(this.u14_1, this.w14_1, this);
|
|
1033
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1034
|
+
return suspendResult;
|
|
1035
|
+
}
|
|
1036
|
+
continue $sm;
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
case 2:
|
|
1040
|
+
this.x14_1 = suspendResult;
|
|
1041
|
+
this.j7_1 = 3;
|
|
1042
|
+
continue $sm;
|
|
1043
|
+
case 3:
|
|
1044
|
+
var tmp1_elvis_lhs = this.x14_1;
|
|
1045
|
+
return tmp1_elvis_lhs == null ? 0.0 : tmp1_elvis_lhs;
|
|
1046
|
+
case 4:
|
|
1047
|
+
throw this.m7_1;
|
|
1048
|
+
}
|
|
1049
|
+
} catch ($p) {
|
|
1050
|
+
var e = $p;
|
|
1051
|
+
if (this.k7_1 === 4) {
|
|
1052
|
+
throw e;
|
|
1053
|
+
} else {
|
|
1054
|
+
this.j7_1 = this.k7_1;
|
|
1055
|
+
this.m7_1 = e;
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
while (true);
|
|
1059
|
+
};
|
|
1060
|
+
function $readOwnCOROUTINE$(_this__u8e3s4, coords, zoomLevel, interpolation, touched, resultContinuation) {
|
|
1061
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1062
|
+
this.h15_1 = _this__u8e3s4;
|
|
1063
|
+
this.i15_1 = coords;
|
|
1064
|
+
this.j15_1 = zoomLevel;
|
|
1065
|
+
this.k15_1 = interpolation;
|
|
1066
|
+
this.l15_1 = touched;
|
|
1067
|
+
}
|
|
1068
|
+
protoOf($readOwnCOROUTINE$).r7 = function () {
|
|
1069
|
+
var suspendResult = this.l7_1;
|
|
1070
|
+
$sm: do
|
|
1071
|
+
try {
|
|
1072
|
+
var tmp = this.j7_1;
|
|
1073
|
+
switch (tmp) {
|
|
1074
|
+
case 0:
|
|
1075
|
+
this.k7_1 = 5;
|
|
1076
|
+
this.k7_1 = 4;
|
|
1077
|
+
if (this.k15_1) {
|
|
939
1078
|
this.j7_1 = 2;
|
|
940
|
-
suspendResult = getInterpolatedElevation(this.
|
|
1079
|
+
suspendResult = getInterpolatedElevation(this.h15_1, this.i15_1, this.j15_1, this.l15_1, this);
|
|
941
1080
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
942
1081
|
return suspendResult;
|
|
943
1082
|
}
|
|
944
1083
|
continue $sm;
|
|
945
1084
|
} else {
|
|
946
|
-
var pixel = ElevationFunctions_instance.
|
|
1085
|
+
var pixel = ElevationFunctions_instance.o15(this.i15_1, this.j15_1, this.h15_1.b10_1);
|
|
947
1086
|
this.j7_1 = 1;
|
|
948
|
-
suspendResult = elevationFromPixel(this.
|
|
1087
|
+
suspendResult = elevationFromPixel(this.h15_1, pixel, this.l15_1, this);
|
|
949
1088
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
950
1089
|
return suspendResult;
|
|
951
1090
|
}
|
|
@@ -953,20 +1092,20 @@
|
|
|
953
1092
|
}
|
|
954
1093
|
|
|
955
1094
|
case 1:
|
|
956
|
-
this.
|
|
1095
|
+
this.n15_1 = suspendResult;
|
|
957
1096
|
this.j7_1 = 3;
|
|
958
1097
|
continue $sm;
|
|
959
1098
|
case 2:
|
|
960
|
-
this.
|
|
1099
|
+
this.n15_1 = suspendResult;
|
|
961
1100
|
this.j7_1 = 3;
|
|
962
1101
|
continue $sm;
|
|
963
1102
|
case 3:
|
|
964
|
-
this.
|
|
965
|
-
this.k7_1 =
|
|
966
|
-
this.j7_1 =
|
|
1103
|
+
this.m15_1 = this.n15_1;
|
|
1104
|
+
this.k7_1 = 5;
|
|
1105
|
+
this.j7_1 = 6;
|
|
967
1106
|
continue $sm;
|
|
968
1107
|
case 4:
|
|
969
|
-
this.k7_1 =
|
|
1108
|
+
this.k7_1 = 5;
|
|
970
1109
|
var tmp_0 = this.m7_1;
|
|
971
1110
|
if (tmp_0 instanceof Error) {
|
|
972
1111
|
var t = this.m7_1;
|
|
@@ -977,37 +1116,14 @@
|
|
|
977
1116
|
}
|
|
978
1117
|
|
|
979
1118
|
case 5:
|
|
980
|
-
this.k7_1 = 8;
|
|
981
|
-
var own = this.g14_1;
|
|
982
|
-
if (!isNaN_0(own))
|
|
983
|
-
return own;
|
|
984
|
-
var tmp0_safe_receiver = this.b14_1.d10_1;
|
|
985
|
-
if (tmp0_safe_receiver == null) {
|
|
986
|
-
this.f14_1 = null;
|
|
987
|
-
this.j7_1 = 7;
|
|
988
|
-
continue $sm;
|
|
989
|
-
} else {
|
|
990
|
-
this.j7_1 = 6;
|
|
991
|
-
suspendResult = tmp0_safe_receiver(this.c14_1, this.e14_1, this);
|
|
992
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
993
|
-
return suspendResult;
|
|
994
|
-
}
|
|
995
|
-
continue $sm;
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
case 6:
|
|
999
|
-
this.f14_1 = suspendResult;
|
|
1000
|
-
this.j7_1 = 7;
|
|
1001
|
-
continue $sm;
|
|
1002
|
-
case 7:
|
|
1003
|
-
var tmp1_elvis_lhs = this.f14_1;
|
|
1004
|
-
return tmp1_elvis_lhs == null ? 0.0 : tmp1_elvis_lhs;
|
|
1005
|
-
case 8:
|
|
1006
1119
|
throw this.m7_1;
|
|
1120
|
+
case 6:
|
|
1121
|
+
this.k7_1 = 5;
|
|
1122
|
+
return this.m15_1;
|
|
1007
1123
|
}
|
|
1008
1124
|
} catch ($p) {
|
|
1009
1125
|
var e = $p;
|
|
1010
|
-
if (this.k7_1 ===
|
|
1126
|
+
if (this.k7_1 === 5) {
|
|
1011
1127
|
throw e;
|
|
1012
1128
|
} else {
|
|
1013
1129
|
this.j7_1 = this.k7_1;
|
|
@@ -1016,11 +1132,12 @@
|
|
|
1016
1132
|
}
|
|
1017
1133
|
while (true);
|
|
1018
1134
|
};
|
|
1019
|
-
function $getInterpolatedElevationCOROUTINE$(_this__u8e3s4, coords, zoomLevel, resultContinuation) {
|
|
1135
|
+
function $getInterpolatedElevationCOROUTINE$(_this__u8e3s4, coords, zoomLevel, touched, resultContinuation) {
|
|
1020
1136
|
CoroutineImpl.call(this, resultContinuation);
|
|
1021
|
-
this.
|
|
1022
|
-
this.
|
|
1023
|
-
this.
|
|
1137
|
+
this.m13_1 = _this__u8e3s4;
|
|
1138
|
+
this.n13_1 = coords;
|
|
1139
|
+
this.o13_1 = zoomLevel;
|
|
1140
|
+
this.p13_1 = touched;
|
|
1024
1141
|
}
|
|
1025
1142
|
protoOf($getInterpolatedElevationCOROUTINE$).r7 = function () {
|
|
1026
1143
|
var suspendResult = this.l7_1;
|
|
@@ -1030,46 +1147,46 @@
|
|
|
1030
1147
|
switch (tmp) {
|
|
1031
1148
|
case 0:
|
|
1032
1149
|
this.k7_1 = 5;
|
|
1033
|
-
this.
|
|
1034
|
-
var fx = this.
|
|
1035
|
-
var fy = this.
|
|
1150
|
+
this.x13_1 = ElevationFunctions_instance.p15(this.n13_1, this.o13_1, this.m13_1.b10_1);
|
|
1151
|
+
var fx = this.x13_1.r15_1 - 0.5;
|
|
1152
|
+
var fy = this.x13_1.s15_1 - 0.5;
|
|
1036
1153
|
var tmp_0 = this;
|
|
1037
|
-
tmp_0.
|
|
1154
|
+
tmp_0.y13_1 = numberToInt(Math.floor(fx));
|
|
1038
1155
|
var tmp_1 = this;
|
|
1039
|
-
tmp_1.
|
|
1040
|
-
this.
|
|
1041
|
-
this.
|
|
1042
|
-
this.
|
|
1043
|
-
this.
|
|
1156
|
+
tmp_1.z13_1 = numberToInt(Math.floor(fy));
|
|
1157
|
+
this.w13_1 = this.y13_1 + 1 | 0;
|
|
1158
|
+
this.v13_1 = this.z13_1 + 1 | 0;
|
|
1159
|
+
this.r13_1 = fx - this.y13_1;
|
|
1160
|
+
this.q13_1 = fy - this.z13_1;
|
|
1044
1161
|
this.j7_1 = 1;
|
|
1045
|
-
suspendResult = elevationFromPixel(this.
|
|
1162
|
+
suspendResult = elevationFromPixel(this.m13_1, ElevationFunctions_instance.t15(new Pixel(this.x13_1.q15_1, this.y13_1, this.z13_1), this.m13_1.b10_1), this.p13_1, this);
|
|
1046
1163
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1047
1164
|
return suspendResult;
|
|
1048
1165
|
}
|
|
1049
1166
|
|
|
1050
1167
|
continue $sm;
|
|
1051
1168
|
case 1:
|
|
1052
|
-
this.
|
|
1169
|
+
this.u13_1 = suspendResult;
|
|
1053
1170
|
this.j7_1 = 2;
|
|
1054
|
-
suspendResult = elevationFromPixel(this.
|
|
1171
|
+
suspendResult = elevationFromPixel(this.m13_1, ElevationFunctions_instance.t15(new Pixel(this.x13_1.q15_1, this.w13_1, this.z13_1), this.m13_1.b10_1), this.p13_1, this);
|
|
1055
1172
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1056
1173
|
return suspendResult;
|
|
1057
1174
|
}
|
|
1058
1175
|
|
|
1059
1176
|
continue $sm;
|
|
1060
1177
|
case 2:
|
|
1061
|
-
this.
|
|
1178
|
+
this.t13_1 = suspendResult;
|
|
1062
1179
|
this.j7_1 = 3;
|
|
1063
|
-
suspendResult = elevationFromPixel(this.
|
|
1180
|
+
suspendResult = elevationFromPixel(this.m13_1, ElevationFunctions_instance.t15(new Pixel(this.x13_1.q15_1, this.y13_1, this.v13_1), this.m13_1.b10_1), this.p13_1, this);
|
|
1064
1181
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1065
1182
|
return suspendResult;
|
|
1066
1183
|
}
|
|
1067
1184
|
|
|
1068
1185
|
continue $sm;
|
|
1069
1186
|
case 3:
|
|
1070
|
-
this.
|
|
1187
|
+
this.s13_1 = suspendResult;
|
|
1071
1188
|
this.j7_1 = 4;
|
|
1072
|
-
suspendResult = elevationFromPixel(this.
|
|
1189
|
+
suspendResult = elevationFromPixel(this.m13_1, ElevationFunctions_instance.t15(new Pixel(this.x13_1.q15_1, this.w13_1, this.v13_1), this.m13_1.b10_1), this.p13_1, this);
|
|
1073
1190
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1074
1191
|
return suspendResult;
|
|
1075
1192
|
}
|
|
@@ -1077,9 +1194,9 @@
|
|
|
1077
1194
|
continue $sm;
|
|
1078
1195
|
case 4:
|
|
1079
1196
|
var p11 = suspendResult;
|
|
1080
|
-
var top = this.
|
|
1081
|
-
var bottom = this.
|
|
1082
|
-
return top * (1.0 - this.
|
|
1197
|
+
var top = this.u13_1 * (1.0 - this.r13_1) + this.t13_1 * this.r13_1;
|
|
1198
|
+
var bottom = this.s13_1 * (1.0 - this.r13_1) + p11 * this.r13_1;
|
|
1199
|
+
return top * (1.0 - this.q13_1) + bottom * this.q13_1;
|
|
1083
1200
|
case 5:
|
|
1084
1201
|
throw this.m7_1;
|
|
1085
1202
|
}
|
|
@@ -1094,10 +1211,11 @@
|
|
|
1094
1211
|
}
|
|
1095
1212
|
while (true);
|
|
1096
1213
|
};
|
|
1097
|
-
function $elevationFromPixelCOROUTINE$(_this__u8e3s4, pixel, resultContinuation) {
|
|
1214
|
+
function $elevationFromPixelCOROUTINE$(_this__u8e3s4, pixel, touched, resultContinuation) {
|
|
1098
1215
|
CoroutineImpl.call(this, resultContinuation);
|
|
1099
|
-
this.
|
|
1100
|
-
this.
|
|
1216
|
+
this.i14_1 = _this__u8e3s4;
|
|
1217
|
+
this.j14_1 = pixel;
|
|
1218
|
+
this.k14_1 = touched;
|
|
1101
1219
|
}
|
|
1102
1220
|
protoOf($elevationFromPixelCOROUTINE$).r7 = function () {
|
|
1103
1221
|
var suspendResult = this.l7_1;
|
|
@@ -1108,14 +1226,17 @@
|
|
|
1108
1226
|
case 0:
|
|
1109
1227
|
this.k7_1 = 2;
|
|
1110
1228
|
this.j7_1 = 1;
|
|
1111
|
-
suspendResult = this.
|
|
1229
|
+
suspendResult = this.i14_1.a10_1.b16(this.j14_1.u15_1, this);
|
|
1112
1230
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1113
1231
|
return suspendResult;
|
|
1114
1232
|
}
|
|
1115
1233
|
|
|
1116
1234
|
continue $sm;
|
|
1117
1235
|
case 1:
|
|
1118
|
-
|
|
1236
|
+
var tile = suspendResult;
|
|
1237
|
+
if (!(this.k14_1 == null) && tile.f16_1)
|
|
1238
|
+
this.k14_1.d13_1 = true;
|
|
1239
|
+
return tile.i16(this.j14_1);
|
|
1119
1240
|
case 2:
|
|
1120
1241
|
throw this.m7_1;
|
|
1121
1242
|
}
|
|
@@ -1133,42 +1254,48 @@
|
|
|
1133
1254
|
function ElevationCalculator(tileManager, tileSize, fallback) {
|
|
1134
1255
|
tileSize = tileSize === VOID ? 256 : tileSize;
|
|
1135
1256
|
fallback = fallback === VOID ? null : fallback;
|
|
1136
|
-
this.
|
|
1137
|
-
this.
|
|
1138
|
-
this.
|
|
1257
|
+
this.a10_1 = tileManager;
|
|
1258
|
+
this.b10_1 = tileSize;
|
|
1259
|
+
this.c10_1 = fallback;
|
|
1139
1260
|
}
|
|
1140
|
-
protoOf(ElevationCalculator).
|
|
1261
|
+
protoOf(ElevationCalculator).d10 = function (coords, zoomLevel, interpolation, $completion) {
|
|
1141
1262
|
var tmp = new $getElevationCOROUTINE$(this, coords, zoomLevel, interpolation, $completion);
|
|
1142
1263
|
tmp.l7_1 = Unit_instance;
|
|
1143
1264
|
tmp.m7_1 = null;
|
|
1144
1265
|
return tmp.r7();
|
|
1145
1266
|
};
|
|
1267
|
+
protoOf(ElevationCalculator).y14 = function (coords, zoomLevel, interpolation, touched, $completion) {
|
|
1268
|
+
var tmp = new $readOwnCOROUTINE$(this, coords, zoomLevel, interpolation, touched, $completion);
|
|
1269
|
+
tmp.l7_1 = Unit_instance;
|
|
1270
|
+
tmp.m7_1 = null;
|
|
1271
|
+
return tmp.r7();
|
|
1272
|
+
};
|
|
1146
1273
|
function formatNumber_0($this, d) {
|
|
1147
1274
|
var asLong = numberToLong(d);
|
|
1148
1275
|
return toNumber(asLong) === d ? asLong.toString() : d.toString();
|
|
1149
1276
|
}
|
|
1150
1277
|
function ElevationFunctions() {
|
|
1151
|
-
this.
|
|
1152
|
-
this.
|
|
1278
|
+
this.i11_1 = 0;
|
|
1279
|
+
this.j11_1 = 15;
|
|
1153
1280
|
}
|
|
1154
|
-
protoOf(ElevationFunctions).
|
|
1281
|
+
protoOf(ElevationFunctions).j16 = function (degrees) {
|
|
1155
1282
|
return degrees * 0.017453292519943295;
|
|
1156
1283
|
};
|
|
1157
|
-
protoOf(ElevationFunctions).
|
|
1284
|
+
protoOf(ElevationFunctions).k16 = function (lat) {
|
|
1158
1285
|
return lat >= -85.0511 && lat <= 85.0511;
|
|
1159
1286
|
};
|
|
1160
|
-
protoOf(ElevationFunctions).
|
|
1287
|
+
protoOf(ElevationFunctions).l16 = function (lon) {
|
|
1161
1288
|
return -180.0 <= lon ? lon <= 180.0 : false;
|
|
1162
1289
|
};
|
|
1163
|
-
protoOf(ElevationFunctions).
|
|
1290
|
+
protoOf(ElevationFunctions).m16 = function (zoom) {
|
|
1164
1291
|
return 0 <= zoom ? zoom <= 15 : false;
|
|
1165
1292
|
};
|
|
1166
|
-
protoOf(ElevationFunctions).
|
|
1167
|
-
var x = pixel.
|
|
1168
|
-
var y = pixel.
|
|
1169
|
-
var tileX = pixel.
|
|
1170
|
-
var tileY = pixel.
|
|
1171
|
-
var z = pixel.
|
|
1293
|
+
protoOf(ElevationFunctions).t15 = function (pixel, tileSize) {
|
|
1294
|
+
var x = pixel.v15_1;
|
|
1295
|
+
var y = pixel.w15_1;
|
|
1296
|
+
var tileX = pixel.u15_1.l11_1;
|
|
1297
|
+
var tileY = pixel.u15_1.m11_1;
|
|
1298
|
+
var z = pixel.u15_1.n11_1;
|
|
1172
1299
|
if (x < 0) {
|
|
1173
1300
|
x = x + tileSize | 0;
|
|
1174
1301
|
tileX = tileX - 1 | 0;
|
|
@@ -1202,25 +1329,25 @@
|
|
|
1202
1329
|
}
|
|
1203
1330
|
return new Pixel(new TileCoordinates(tileX, tileY, z), x, y);
|
|
1204
1331
|
};
|
|
1205
|
-
protoOf(ElevationFunctions).
|
|
1332
|
+
protoOf(ElevationFunctions).n16 = function (coords, z) {
|
|
1206
1333
|
// Inline function 'kotlin.require' call
|
|
1207
|
-
if (!this.
|
|
1208
|
-
var message = 'Invalid latitude: ' + formatNumber_0(ElevationFunctions_instance, coords.
|
|
1334
|
+
if (!this.k16(coords.xz())) {
|
|
1335
|
+
var message = 'Invalid latitude: ' + formatNumber_0(ElevationFunctions_instance, coords.xz()) + '. Must be between -85.0511 and 85.0511';
|
|
1209
1336
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1210
1337
|
}
|
|
1211
1338
|
// Inline function 'kotlin.require' call
|
|
1212
|
-
if (!this.
|
|
1213
|
-
var message_0 = 'Invalid longitude: ' + formatNumber_0(ElevationFunctions_instance, coords.
|
|
1339
|
+
if (!this.l16(coords.yz())) {
|
|
1340
|
+
var message_0 = 'Invalid longitude: ' + formatNumber_0(ElevationFunctions_instance, coords.yz()) + '. Must be between -180 and 180';
|
|
1214
1341
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1215
1342
|
}
|
|
1216
1343
|
// Inline function 'kotlin.require' call
|
|
1217
|
-
if (!this.
|
|
1344
|
+
if (!this.m16(z)) {
|
|
1218
1345
|
var message_1 = 'Invalid zoom level: ' + z + '. Must be between 0 and 15';
|
|
1219
1346
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1220
1347
|
}
|
|
1221
|
-
var lat = this.
|
|
1348
|
+
var lat = this.j16(coords.xz());
|
|
1222
1349
|
var n = 1 << z;
|
|
1223
|
-
var xFloat = (coords.
|
|
1350
|
+
var xFloat = (coords.yz() + 180.0) / 360.0 * n;
|
|
1224
1351
|
// Inline function 'kotlin.math.tan' call
|
|
1225
1352
|
var tmp = Math.tan(lat);
|
|
1226
1353
|
// Inline function 'kotlin.math.cos' call
|
|
@@ -1236,27 +1363,27 @@
|
|
|
1236
1363
|
var y = coerceIn_1(numberToInt(tmp$ret$10), 0, maxTile);
|
|
1237
1364
|
return new TileCoordinatesFloat(x_0, y, xFloat, yFloat, z);
|
|
1238
1365
|
};
|
|
1239
|
-
protoOf(ElevationFunctions).
|
|
1240
|
-
var tile = this.
|
|
1241
|
-
return new TileCoordinates(tile.
|
|
1366
|
+
protoOf(ElevationFunctions).k11 = function (coords, z) {
|
|
1367
|
+
var tile = this.n16(coords, z);
|
|
1368
|
+
return new TileCoordinates(tile.o16_1, tile.p16_1, tile.s16_1);
|
|
1242
1369
|
};
|
|
1243
|
-
protoOf(ElevationFunctions).
|
|
1244
|
-
var tile = this.
|
|
1370
|
+
protoOf(ElevationFunctions).o15 = function (coords, z, tileSize) {
|
|
1371
|
+
var tile = this.n16(coords, z);
|
|
1245
1372
|
// Inline function 'kotlin.math.floor' call
|
|
1246
|
-
var x = (tile.
|
|
1373
|
+
var x = (tile.q16_1 - tile.o16_1) * tileSize;
|
|
1247
1374
|
var tmp$ret$0 = Math.floor(x);
|
|
1248
1375
|
var px = coerceIn_1(numberToInt(tmp$ret$0), 0, tileSize - 1 | 0);
|
|
1249
1376
|
// Inline function 'kotlin.math.floor' call
|
|
1250
|
-
var x_0 = (tile.
|
|
1377
|
+
var x_0 = (tile.r16_1 - tile.p16_1) * tileSize;
|
|
1251
1378
|
var tmp$ret$1 = Math.floor(x_0);
|
|
1252
1379
|
var py = coerceIn_1(numberToInt(tmp$ret$1), 0, tileSize - 1 | 0);
|
|
1253
|
-
return new Pixel(new TileCoordinates(tile.
|
|
1380
|
+
return new Pixel(new TileCoordinates(tile.o16_1, tile.p16_1, z), px, py);
|
|
1254
1381
|
};
|
|
1255
|
-
protoOf(ElevationFunctions).
|
|
1256
|
-
var tile = this.
|
|
1257
|
-
var px = (tile.
|
|
1258
|
-
var py = (tile.
|
|
1259
|
-
return new PixelFloat(new TileCoordinates(tile.
|
|
1382
|
+
protoOf(ElevationFunctions).p15 = function (coords, z, tileSize) {
|
|
1383
|
+
var tile = this.n16(coords, z);
|
|
1384
|
+
var px = (tile.q16_1 - tile.o16_1) * tileSize;
|
|
1385
|
+
var py = (tile.r16_1 - tile.p16_1) * tileSize;
|
|
1386
|
+
return new PixelFloat(new TileCoordinates(tile.o16_1, tile.p16_1, z), px, py);
|
|
1260
1387
|
};
|
|
1261
1388
|
var ElevationFunctions_instance;
|
|
1262
1389
|
function ElevationFunctions_getInstance() {
|
|
@@ -1278,19 +1405,25 @@
|
|
|
1278
1405
|
function ElevationProvider_init_$Create$_0(config, fetcher, keepNoData) {
|
|
1279
1406
|
return ElevationProvider_init_$Init$_0(config, fetcher, keepNoData, objectCreate(protoOf(ElevationProvider)));
|
|
1280
1407
|
}
|
|
1408
|
+
function sample($this, coords, interpolation, $completion) {
|
|
1409
|
+
var tmp = new $sampleCOROUTINE$($this, coords, interpolation, $completion);
|
|
1410
|
+
tmp.l7_1 = Unit_instance;
|
|
1411
|
+
tmp.m7_1 = null;
|
|
1412
|
+
return tmp.r7();
|
|
1413
|
+
}
|
|
1281
1414
|
function ElevationProvider$calculator$slambda(this$0, resultContinuation) {
|
|
1282
|
-
this.
|
|
1415
|
+
this.o17_1 = this$0;
|
|
1283
1416
|
CoroutineImpl.call(this, resultContinuation);
|
|
1284
1417
|
}
|
|
1285
|
-
protoOf(ElevationProvider$calculator$slambda).
|
|
1286
|
-
var tmp = this.
|
|
1418
|
+
protoOf(ElevationProvider$calculator$slambda).r17 = function (coords, interpolation, $completion) {
|
|
1419
|
+
var tmp = this.s17(coords, interpolation, $completion);
|
|
1287
1420
|
tmp.l7_1 = Unit_instance;
|
|
1288
1421
|
tmp.m7_1 = null;
|
|
1289
1422
|
return tmp.r7();
|
|
1290
1423
|
};
|
|
1291
|
-
protoOf(ElevationProvider$calculator$slambda).
|
|
1424
|
+
protoOf(ElevationProvider$calculator$slambda).t17 = function (p1, p2, $completion) {
|
|
1292
1425
|
var tmp = (!(p1 == null) ? isInterface(p1, Coordinates) : false) ? p1 : THROW_CCE();
|
|
1293
|
-
return this.
|
|
1426
|
+
return this.r17(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion);
|
|
1294
1427
|
};
|
|
1295
1428
|
protoOf(ElevationProvider$calculator$slambda).r7 = function () {
|
|
1296
1429
|
var suspendResult = this.l7_1;
|
|
@@ -1301,7 +1434,7 @@
|
|
|
1301
1434
|
case 0:
|
|
1302
1435
|
this.k7_1 = 2;
|
|
1303
1436
|
this.j7_1 = 1;
|
|
1304
|
-
suspendResult = this.
|
|
1437
|
+
suspendResult = this.o17_1.w17_1.c18(this.p17_1.xz(), this.p17_1.yz(), this.q17_1, this);
|
|
1305
1438
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1306
1439
|
return suspendResult;
|
|
1307
1440
|
}
|
|
@@ -1323,30 +1456,30 @@
|
|
|
1323
1456
|
}
|
|
1324
1457
|
while (true);
|
|
1325
1458
|
};
|
|
1326
|
-
protoOf(ElevationProvider$calculator$slambda).
|
|
1327
|
-
var i = new ElevationProvider$calculator$slambda(this.
|
|
1328
|
-
i.
|
|
1329
|
-
i.
|
|
1459
|
+
protoOf(ElevationProvider$calculator$slambda).s17 = function (coords, interpolation, completion) {
|
|
1460
|
+
var i = new ElevationProvider$calculator$slambda(this.o17_1, completion);
|
|
1461
|
+
i.p17_1 = coords;
|
|
1462
|
+
i.q17_1 = interpolation;
|
|
1330
1463
|
return i;
|
|
1331
1464
|
};
|
|
1332
1465
|
function ElevationProvider$calculator$slambda_0(this$0, resultContinuation) {
|
|
1333
1466
|
var i = new ElevationProvider$calculator$slambda(this$0, resultContinuation);
|
|
1334
1467
|
return constructCallableReference(function (coords, interpolation, $completion) {
|
|
1335
|
-
return i.
|
|
1468
|
+
return i.r17(coords, interpolation, $completion);
|
|
1336
1469
|
}, 2);
|
|
1337
1470
|
}
|
|
1338
1471
|
function ElevationProvider$calculator$slambda_1(resultContinuation) {
|
|
1339
1472
|
CoroutineImpl.call(this, resultContinuation);
|
|
1340
1473
|
}
|
|
1341
|
-
protoOf(ElevationProvider$calculator$slambda_1).
|
|
1342
|
-
var tmp = this.
|
|
1474
|
+
protoOf(ElevationProvider$calculator$slambda_1).r17 = function (_unused_var__etf5q3, _unused_var__etf5q3_0, $completion) {
|
|
1475
|
+
var tmp = this.s17(_unused_var__etf5q3, _unused_var__etf5q3_0, $completion);
|
|
1343
1476
|
tmp.l7_1 = Unit_instance;
|
|
1344
1477
|
tmp.m7_1 = null;
|
|
1345
1478
|
return tmp.r7();
|
|
1346
1479
|
};
|
|
1347
|
-
protoOf(ElevationProvider$calculator$slambda_1).
|
|
1480
|
+
protoOf(ElevationProvider$calculator$slambda_1).t17 = function (p1, p2, $completion) {
|
|
1348
1481
|
var tmp = (!(p1 == null) ? isInterface(p1, Coordinates) : false) ? p1 : THROW_CCE();
|
|
1349
|
-
return this.
|
|
1482
|
+
return this.r17(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion);
|
|
1350
1483
|
};
|
|
1351
1484
|
protoOf(ElevationProvider$calculator$slambda_1).r7 = function () {
|
|
1352
1485
|
var suspendResult = this.l7_1;
|
|
@@ -1365,106 +1498,234 @@
|
|
|
1365
1498
|
}
|
|
1366
1499
|
while (true);
|
|
1367
1500
|
};
|
|
1368
|
-
protoOf(ElevationProvider$calculator$slambda_1).
|
|
1501
|
+
protoOf(ElevationProvider$calculator$slambda_1).s17 = function (_unused_var__etf5q3, _unused_var__etf5q3_0, completion) {
|
|
1369
1502
|
var i = new ElevationProvider$calculator$slambda_1(completion);
|
|
1370
|
-
i.
|
|
1371
|
-
i.
|
|
1503
|
+
i.l18_1 = _unused_var__etf5q3;
|
|
1504
|
+
i.m18_1 = _unused_var__etf5q3_0;
|
|
1372
1505
|
return i;
|
|
1373
1506
|
};
|
|
1374
1507
|
function ElevationProvider$calculator$slambda_2(resultContinuation) {
|
|
1375
1508
|
var i = new ElevationProvider$calculator$slambda_1(resultContinuation);
|
|
1376
1509
|
return constructCallableReference(function (_unused_var__etf5q3, _unused_var__etf5q3_0, $completion) {
|
|
1377
|
-
return i.
|
|
1510
|
+
return i.r17(_unused_var__etf5q3, _unused_var__etf5q3_0, $completion);
|
|
1378
1511
|
}, 2);
|
|
1379
1512
|
}
|
|
1513
|
+
function ElevationProvider$setElevationsWithOrigin$slambda(this$0, $interpolation, resultContinuation) {
|
|
1514
|
+
this.v18_1 = this$0;
|
|
1515
|
+
this.w18_1 = $interpolation;
|
|
1516
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1517
|
+
}
|
|
1518
|
+
protoOf(ElevationProvider$setElevationsWithOrigin$slambda).y18 = function (it, $completion) {
|
|
1519
|
+
var tmp = this.wz(it, $completion);
|
|
1520
|
+
tmp.l7_1 = Unit_instance;
|
|
1521
|
+
tmp.m7_1 = null;
|
|
1522
|
+
return tmp.r7();
|
|
1523
|
+
};
|
|
1524
|
+
protoOf(ElevationProvider$setElevationsWithOrigin$slambda).z7 = function (p1, $completion) {
|
|
1525
|
+
return this.y18((!(p1 == null) ? isInterface(p1, Coordinates) : false) ? p1 : THROW_CCE(), $completion);
|
|
1526
|
+
};
|
|
1527
|
+
protoOf(ElevationProvider$setElevationsWithOrigin$slambda).r7 = function () {
|
|
1528
|
+
var suspendResult = this.l7_1;
|
|
1529
|
+
$sm: do
|
|
1530
|
+
try {
|
|
1531
|
+
var tmp = this.j7_1;
|
|
1532
|
+
switch (tmp) {
|
|
1533
|
+
case 0:
|
|
1534
|
+
this.k7_1 = 2;
|
|
1535
|
+
this.j7_1 = 1;
|
|
1536
|
+
suspendResult = sample(this.v18_1, this.x18_1, this.w18_1, this);
|
|
1537
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1538
|
+
return suspendResult;
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1541
|
+
continue $sm;
|
|
1542
|
+
case 1:
|
|
1543
|
+
return suspendResult;
|
|
1544
|
+
case 2:
|
|
1545
|
+
throw this.m7_1;
|
|
1546
|
+
}
|
|
1547
|
+
} catch ($p) {
|
|
1548
|
+
var e = $p;
|
|
1549
|
+
if (this.k7_1 === 2) {
|
|
1550
|
+
throw e;
|
|
1551
|
+
} else {
|
|
1552
|
+
this.j7_1 = this.k7_1;
|
|
1553
|
+
this.m7_1 = e;
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
while (true);
|
|
1557
|
+
};
|
|
1558
|
+
protoOf(ElevationProvider$setElevationsWithOrigin$slambda).wz = function (it, completion) {
|
|
1559
|
+
var i = new ElevationProvider$setElevationsWithOrigin$slambda(this.v18_1, this.w18_1, completion);
|
|
1560
|
+
i.x18_1 = it;
|
|
1561
|
+
return i;
|
|
1562
|
+
};
|
|
1563
|
+
function ElevationProvider$setElevationsWithOrigin$slambda_0(this$0, $interpolation, resultContinuation) {
|
|
1564
|
+
var i = new ElevationProvider$setElevationsWithOrigin$slambda(this$0, $interpolation, resultContinuation);
|
|
1565
|
+
return constructCallableReference(function (it, $completion) {
|
|
1566
|
+
return i.y18(it, $completion);
|
|
1567
|
+
}, 1);
|
|
1568
|
+
}
|
|
1569
|
+
function $sampleCOROUTINE$(_this__u8e3s4, coords, interpolation, resultContinuation) {
|
|
1570
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1571
|
+
this.b17_1 = _this__u8e3s4;
|
|
1572
|
+
this.c17_1 = coords;
|
|
1573
|
+
this.d17_1 = interpolation;
|
|
1574
|
+
}
|
|
1575
|
+
protoOf($sampleCOROUTINE$).r7 = function () {
|
|
1576
|
+
var suspendResult = this.l7_1;
|
|
1577
|
+
$sm: do
|
|
1578
|
+
try {
|
|
1579
|
+
var tmp = this.j7_1;
|
|
1580
|
+
switch (tmp) {
|
|
1581
|
+
case 0:
|
|
1582
|
+
this.k7_1 = 4;
|
|
1583
|
+
this.e17_1 = new UnreadableFlag();
|
|
1584
|
+
this.j7_1 = 1;
|
|
1585
|
+
suspendResult = this.b17_1.a18_1.y14(this.c17_1, this.b17_1.u17_1.z18_1, this.d17_1, this.e17_1, this);
|
|
1586
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1587
|
+
return suspendResult;
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
continue $sm;
|
|
1591
|
+
case 1:
|
|
1592
|
+
var own = suspendResult;
|
|
1593
|
+
if (!isNaN_0(own)) {
|
|
1594
|
+
return new TerrainSample(this.c17_1.xz(), this.c17_1.yz(), own, Companion_getInstance_1().h19(this.b17_1.u17_1, this.c17_1.xz(), this.c17_1.yz()), false);
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
var tmp0_safe_receiver = this.b17_1.w17_1;
|
|
1598
|
+
if (tmp0_safe_receiver == null) {
|
|
1599
|
+
this.f17_1 = null;
|
|
1600
|
+
this.j7_1 = 3;
|
|
1601
|
+
continue $sm;
|
|
1602
|
+
} else {
|
|
1603
|
+
this.j7_1 = 2;
|
|
1604
|
+
suspendResult = sample(tmp0_safe_receiver, this.c17_1, this.d17_1, this);
|
|
1605
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1606
|
+
return suspendResult;
|
|
1607
|
+
}
|
|
1608
|
+
continue $sm;
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
case 2:
|
|
1612
|
+
this.f17_1 = suspendResult;
|
|
1613
|
+
this.j7_1 = 3;
|
|
1614
|
+
continue $sm;
|
|
1615
|
+
case 3:
|
|
1616
|
+
var next = this.f17_1;
|
|
1617
|
+
if (!(next == null))
|
|
1618
|
+
return this.e17_1.d13_1 ? next.n19(VOID, VOID, VOID, VOID, true) : next;
|
|
1619
|
+
return new TerrainSample(this.c17_1.xz(), this.c17_1.yz(), this.b17_1.x17_1 ? NaN : 0.0, TerrainOrigin_NONE_getInstance(), this.e17_1.d13_1);
|
|
1620
|
+
case 4:
|
|
1621
|
+
throw this.m7_1;
|
|
1622
|
+
}
|
|
1623
|
+
} catch ($p) {
|
|
1624
|
+
var e = $p;
|
|
1625
|
+
if (this.k7_1 === 4) {
|
|
1626
|
+
throw e;
|
|
1627
|
+
} else {
|
|
1628
|
+
this.j7_1 = this.k7_1;
|
|
1629
|
+
this.m7_1 = e;
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
while (true);
|
|
1633
|
+
};
|
|
1380
1634
|
function ElevationProvider(config, fetcher, fallback, keepNoData, surfaceModel) {
|
|
1381
|
-
this.
|
|
1382
|
-
this.
|
|
1383
|
-
this.
|
|
1384
|
-
this.
|
|
1385
|
-
this.
|
|
1635
|
+
this.u17_1 = config;
|
|
1636
|
+
this.v17_1 = fetcher;
|
|
1637
|
+
this.w17_1 = fallback;
|
|
1638
|
+
this.x17_1 = keepNoData;
|
|
1639
|
+
this.y17_1 = surfaceModel;
|
|
1386
1640
|
// Inline function 'kotlin.require' call
|
|
1387
|
-
if (!ElevationFunctions_instance.
|
|
1388
|
-
var message = 'Invalid zoom level: ' + this.
|
|
1641
|
+
if (!ElevationFunctions_instance.m16(this.u17_1.z18_1)) {
|
|
1642
|
+
var message = 'Invalid zoom level: ' + this.u17_1.z18_1 + '. Must be an integer between ' + '0 and 15';
|
|
1389
1643
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1390
1644
|
}
|
|
1391
1645
|
// Inline function 'kotlin.require' call
|
|
1392
|
-
if (!(this.
|
|
1393
|
-
var message_0 = 'Invalid cache size: ' + this.
|
|
1646
|
+
if (!(this.u17_1.a19_1 > 0)) {
|
|
1647
|
+
var message_0 = 'Invalid cache size: ' + this.u17_1.a19_1 + '. Must be a positive integer';
|
|
1394
1648
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1395
1649
|
}
|
|
1396
1650
|
// Inline function 'kotlin.require' call
|
|
1397
|
-
if (!(this.
|
|
1398
|
-
var message_1 = 'Invalid tile size: ' + this.
|
|
1651
|
+
if (!(this.u17_1.c19_1 > 0 && (this.u17_1.c19_1 & (this.u17_1.c19_1 - 1 | 0)) === 0)) {
|
|
1652
|
+
var message_1 = 'Invalid tile size: ' + this.u17_1.c19_1 + '. Must be a positive power of 2';
|
|
1399
1653
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1400
1654
|
}
|
|
1401
1655
|
// Inline function 'kotlin.require' call
|
|
1402
|
-
if (!(this.
|
|
1403
|
-
var message_2 = 'Invalid maxRequestsPerSecond: ' + this.
|
|
1656
|
+
if (!(this.u17_1.f19_1 >= 0)) {
|
|
1657
|
+
var message_2 = 'Invalid maxRequestsPerSecond: ' + this.u17_1.f19_1 + '. Must be 0 (no limit) or positive';
|
|
1404
1658
|
throw IllegalArgumentException_init_$Create$(toString(message_2));
|
|
1405
1659
|
}
|
|
1406
1660
|
var tmp = this;
|
|
1407
1661
|
// Inline function 'kotlin.apply' call
|
|
1408
|
-
var this_0 = new TileManager(this.
|
|
1409
|
-
if (!(this.
|
|
1410
|
-
this_0.
|
|
1411
|
-
tmp.
|
|
1662
|
+
var this_0 = new TileManager(this.u17_1.b19_1, this.u17_1.a19_1, this.v17_1);
|
|
1663
|
+
if (!(this.w17_1 == null))
|
|
1664
|
+
this_0.z15_1 = new UnreadableTiles(this.u17_1.b19_1, this.u17_1.c19_1);
|
|
1665
|
+
tmp.z17_1 = this_0;
|
|
1412
1666
|
var tmp_0 = this;
|
|
1413
1667
|
var tmp_1;
|
|
1414
|
-
if (!(this.
|
|
1668
|
+
if (!(this.w17_1 == null)) {
|
|
1415
1669
|
tmp_1 = ElevationProvider$calculator$slambda_0(this, null);
|
|
1416
|
-
} else if (this.
|
|
1670
|
+
} else if (this.x17_1) {
|
|
1417
1671
|
tmp_1 = ElevationProvider$calculator$slambda_2(null);
|
|
1418
1672
|
} else {
|
|
1419
1673
|
tmp_1 = null;
|
|
1420
1674
|
}
|
|
1421
|
-
tmp_0.
|
|
1422
|
-
this.
|
|
1675
|
+
tmp_0.a18_1 = new ElevationCalculator(this.z17_1, this.u17_1.c19_1, tmp_1);
|
|
1676
|
+
this.b18_1 = new BatchCalculator(this.a18_1);
|
|
1423
1677
|
}
|
|
1424
|
-
protoOf(ElevationProvider).
|
|
1678
|
+
protoOf(ElevationProvider).o19 = function (other) {
|
|
1425
1679
|
// Inline function 'kotlin.require' call
|
|
1426
|
-
if (!!this.
|
|
1680
|
+
if (!!this.x17_1) {
|
|
1427
1681
|
var message = 'a raw IGN LiDAR HD layer takes no fallback: its no-data must stay NaN';
|
|
1428
1682
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1429
1683
|
}
|
|
1430
|
-
return new ElevationProvider(this.
|
|
1684
|
+
return new ElevationProvider(this.u17_1, this.v17_1, other, false, this.y17_1);
|
|
1431
1685
|
};
|
|
1432
|
-
protoOf(ElevationProvider).
|
|
1686
|
+
protoOf(ElevationProvider).p19 = function (surface) {
|
|
1433
1687
|
// Inline function 'kotlin.require' call
|
|
1434
|
-
if (!(surface == null || surface.
|
|
1688
|
+
if (!(surface == null || surface.x17_1)) {
|
|
1435
1689
|
var message = 'a surface model must keep its no-data as NaN';
|
|
1436
1690
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1437
1691
|
}
|
|
1438
1692
|
// Inline function 'kotlin.require' call
|
|
1439
|
-
if (!!this.
|
|
1693
|
+
if (!!this.x17_1) {
|
|
1440
1694
|
var message_0 = 'a raw IGN LiDAR HD layer carries no surface model';
|
|
1441
1695
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1442
1696
|
}
|
|
1443
|
-
return new ElevationProvider(this.
|
|
1697
|
+
return new ElevationProvider(this.u17_1, this.v17_1, this.w17_1, false, surface);
|
|
1444
1698
|
};
|
|
1445
|
-
protoOf(ElevationProvider).
|
|
1446
|
-
return this.
|
|
1699
|
+
protoOf(ElevationProvider).q19 = function () {
|
|
1700
|
+
return this.u17_1.d19_1;
|
|
1447
1701
|
};
|
|
1448
|
-
protoOf(ElevationProvider).
|
|
1449
|
-
return this.
|
|
1702
|
+
protoOf(ElevationProvider).c18 = function (latitude, longitude, interpolation, $completion) {
|
|
1703
|
+
return this.a18_1.d10(new LatLon(latitude, longitude), this.u17_1.z18_1, interpolation, $completion);
|
|
1450
1704
|
};
|
|
1451
|
-
protoOf(ElevationProvider).
|
|
1452
|
-
return this.
|
|
1705
|
+
protoOf(ElevationProvider).r19 = function (coordinates, interpolation, $completion) {
|
|
1706
|
+
return this.b18_1.g12(coordinates, this.u17_1.z18_1, interpolation, VOID, $completion);
|
|
1453
1707
|
};
|
|
1454
|
-
protoOf(ElevationProvider).
|
|
1708
|
+
protoOf(ElevationProvider).s19 = function (coordinates, interpolation, $completion, $super) {
|
|
1455
1709
|
interpolation = interpolation === VOID ? true : interpolation;
|
|
1456
|
-
return $super === VOID ? this.
|
|
1710
|
+
return $super === VOID ? this.r19(coordinates, interpolation, $completion) : $super.r19.call(this, coordinates, interpolation, $completion);
|
|
1457
1711
|
};
|
|
1458
|
-
protoOf(ElevationProvider).
|
|
1459
|
-
return this.
|
|
1712
|
+
protoOf(ElevationProvider).t19 = function (coordinates, interpolation, $completion) {
|
|
1713
|
+
return this.b18_1.l12(coordinates, this.u17_1.z18_1, VOID, ElevationProvider$setElevationsWithOrigin$slambda_0(this, interpolation, null), $completion);
|
|
1714
|
+
};
|
|
1715
|
+
protoOf(ElevationProvider).u19 = function (coordinates, interpolation, $completion, $super) {
|
|
1716
|
+
interpolation = interpolation === VOID ? true : interpolation;
|
|
1717
|
+
return $super === VOID ? this.t19(coordinates, interpolation, $completion) : $super.t19.call(this, coordinates, interpolation, $completion);
|
|
1718
|
+
};
|
|
1719
|
+
protoOf(ElevationProvider).v19 = function (path, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion) {
|
|
1720
|
+
return this.b18_1.m12(path, this.u17_1.z18_1, step, minDistance, interpolation, smoothingOptions, filterOptions, $completion);
|
|
1460
1721
|
};
|
|
1461
1722
|
function defaultTileFetcher(config) {
|
|
1462
|
-
if (config.
|
|
1723
|
+
if (config.e19_1.equals(TileEncoding_TERRARIUM_getInstance()) && config.f19_1 === 0) {
|
|
1463
1724
|
return fetchAndDecodeTile$ref_1();
|
|
1464
1725
|
}
|
|
1465
|
-
var bytes = pacedTileBytesFetcher(config.
|
|
1726
|
+
var bytes = pacedTileBytesFetcher(config.f19_1);
|
|
1466
1727
|
var tmp;
|
|
1467
|
-
switch (config.
|
|
1728
|
+
switch (config.e19_1.y1_1) {
|
|
1468
1729
|
case 0:
|
|
1469
1730
|
tmp = defaultTileFetcher$slambda_0(bytes, null);
|
|
1470
1731
|
break;
|
|
@@ -1480,24 +1741,24 @@
|
|
|
1480
1741
|
function fetchAndDecodeTile$ref() {
|
|
1481
1742
|
KFunctionImpl.call(this, 1, 2, 2);
|
|
1482
1743
|
}
|
|
1483
|
-
protoOf(fetchAndDecodeTile$ref).
|
|
1744
|
+
protoOf(fetchAndDecodeTile$ref).z19 = function (p0, $completion) {
|
|
1484
1745
|
return fetchAndDecodeTile(p0, $completion);
|
|
1485
1746
|
};
|
|
1486
1747
|
protoOf(fetchAndDecodeTile$ref).z7 = function (p1, $completion) {
|
|
1487
|
-
return this.
|
|
1748
|
+
return this.z19((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
1488
1749
|
};
|
|
1489
1750
|
function defaultTileFetcher$slambda($bytes, resultContinuation) {
|
|
1490
|
-
this.
|
|
1751
|
+
this.i1a_1 = $bytes;
|
|
1491
1752
|
CoroutineImpl.call(this, resultContinuation);
|
|
1492
1753
|
}
|
|
1493
|
-
protoOf(defaultTileFetcher$slambda).
|
|
1494
|
-
var tmp = this.
|
|
1754
|
+
protoOf(defaultTileFetcher$slambda).z19 = function (url, $completion) {
|
|
1755
|
+
var tmp = this.k1a(url, $completion);
|
|
1495
1756
|
tmp.l7_1 = Unit_instance;
|
|
1496
1757
|
tmp.m7_1 = null;
|
|
1497
1758
|
return tmp.r7();
|
|
1498
1759
|
};
|
|
1499
1760
|
protoOf(defaultTileFetcher$slambda).z7 = function (p1, $completion) {
|
|
1500
|
-
return this.
|
|
1761
|
+
return this.z19((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
1501
1762
|
};
|
|
1502
1763
|
protoOf(defaultTileFetcher$slambda).r7 = function () {
|
|
1503
1764
|
var suspendResult = this.l7_1;
|
|
@@ -1508,7 +1769,7 @@
|
|
|
1508
1769
|
case 0:
|
|
1509
1770
|
this.k7_1 = 3;
|
|
1510
1771
|
this.j7_1 = 1;
|
|
1511
|
-
suspendResult = this.
|
|
1772
|
+
suspendResult = this.i1a_1(this.j1a_1, this);
|
|
1512
1773
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1513
1774
|
return suspendResult;
|
|
1514
1775
|
}
|
|
@@ -1517,7 +1778,7 @@
|
|
|
1517
1778
|
case 1:
|
|
1518
1779
|
var ARGUMENT = suspendResult;
|
|
1519
1780
|
this.j7_1 = 2;
|
|
1520
|
-
suspendResult = decodeTileBytes(ARGUMENT, this.
|
|
1781
|
+
suspendResult = decodeTileBytes(ARGUMENT, this.j1a_1, this);
|
|
1521
1782
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1522
1783
|
return suspendResult;
|
|
1523
1784
|
}
|
|
@@ -1539,30 +1800,30 @@
|
|
|
1539
1800
|
}
|
|
1540
1801
|
while (true);
|
|
1541
1802
|
};
|
|
1542
|
-
protoOf(defaultTileFetcher$slambda).
|
|
1543
|
-
var i = new defaultTileFetcher$slambda(this.
|
|
1544
|
-
i.
|
|
1803
|
+
protoOf(defaultTileFetcher$slambda).k1a = function (url, completion) {
|
|
1804
|
+
var i = new defaultTileFetcher$slambda(this.i1a_1, completion);
|
|
1805
|
+
i.j1a_1 = url;
|
|
1545
1806
|
return i;
|
|
1546
1807
|
};
|
|
1547
1808
|
function defaultTileFetcher$slambda_0($bytes, resultContinuation) {
|
|
1548
1809
|
var i = new defaultTileFetcher$slambda($bytes, resultContinuation);
|
|
1549
1810
|
return constructCallableReference(function (url, $completion) {
|
|
1550
|
-
return i.
|
|
1811
|
+
return i.z19(url, $completion);
|
|
1551
1812
|
}, 1);
|
|
1552
1813
|
}
|
|
1553
1814
|
function defaultTileFetcher$slambda_1($bytes, $config, resultContinuation) {
|
|
1554
|
-
this.
|
|
1555
|
-
this.
|
|
1815
|
+
this.t1a_1 = $bytes;
|
|
1816
|
+
this.u1a_1 = $config;
|
|
1556
1817
|
CoroutineImpl.call(this, resultContinuation);
|
|
1557
1818
|
}
|
|
1558
|
-
protoOf(defaultTileFetcher$slambda_1).
|
|
1559
|
-
var tmp = this.
|
|
1819
|
+
protoOf(defaultTileFetcher$slambda_1).z19 = function (url, $completion) {
|
|
1820
|
+
var tmp = this.k1a(url, $completion);
|
|
1560
1821
|
tmp.l7_1 = Unit_instance;
|
|
1561
1822
|
tmp.m7_1 = null;
|
|
1562
1823
|
return tmp.r7();
|
|
1563
1824
|
};
|
|
1564
1825
|
protoOf(defaultTileFetcher$slambda_1).z7 = function (p1, $completion) {
|
|
1565
|
-
return this.
|
|
1826
|
+
return this.z19((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
1566
1827
|
};
|
|
1567
1828
|
protoOf(defaultTileFetcher$slambda_1).r7 = function () {
|
|
1568
1829
|
var suspendResult = this.l7_1;
|
|
@@ -1573,7 +1834,7 @@
|
|
|
1573
1834
|
case 0:
|
|
1574
1835
|
this.k7_1 = 2;
|
|
1575
1836
|
this.j7_1 = 1;
|
|
1576
|
-
suspendResult = this.
|
|
1837
|
+
suspendResult = this.t1a_1(this.v1a_1, this);
|
|
1577
1838
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1578
1839
|
return suspendResult;
|
|
1579
1840
|
}
|
|
@@ -1581,7 +1842,7 @@
|
|
|
1581
1842
|
continue $sm;
|
|
1582
1843
|
case 1:
|
|
1583
1844
|
var ARGUMENT = suspendResult;
|
|
1584
|
-
return decodeBil32Tile(ARGUMENT, this.
|
|
1845
|
+
return decodeBil32Tile(ARGUMENT, this.u1a_1.c19_1, this.v1a_1);
|
|
1585
1846
|
case 2:
|
|
1586
1847
|
throw this.m7_1;
|
|
1587
1848
|
}
|
|
@@ -1596,15 +1857,15 @@
|
|
|
1596
1857
|
}
|
|
1597
1858
|
while (true);
|
|
1598
1859
|
};
|
|
1599
|
-
protoOf(defaultTileFetcher$slambda_1).
|
|
1600
|
-
var i = new defaultTileFetcher$slambda_1(this.
|
|
1601
|
-
i.
|
|
1860
|
+
protoOf(defaultTileFetcher$slambda_1).k1a = function (url, completion) {
|
|
1861
|
+
var i = new defaultTileFetcher$slambda_1(this.t1a_1, this.u1a_1, completion);
|
|
1862
|
+
i.v1a_1 = url;
|
|
1602
1863
|
return i;
|
|
1603
1864
|
};
|
|
1604
1865
|
function defaultTileFetcher$slambda_2($bytes, $config, resultContinuation) {
|
|
1605
1866
|
var i = new defaultTileFetcher$slambda_1($bytes, $config, resultContinuation);
|
|
1606
1867
|
return constructCallableReference(function (url, $completion) {
|
|
1607
|
-
return i.
|
|
1868
|
+
return i.z19(url, $completion);
|
|
1608
1869
|
}, 1);
|
|
1609
1870
|
}
|
|
1610
1871
|
function defaultTileFetcher$ref() {
|
|
@@ -1620,38 +1881,38 @@
|
|
|
1620
1881
|
attribution = attribution === VOID ? new Attribution('Mapterhorn elevation data. See mapterhorn.com/attribution/ for details.', 'https://mapterhorn.com/attribution/') : attribution;
|
|
1621
1882
|
encoding = encoding === VOID ? TileEncoding_TERRARIUM_getInstance() : encoding;
|
|
1622
1883
|
maxRequestsPerSecond = maxRequestsPerSecond === VOID ? 0 : maxRequestsPerSecond;
|
|
1623
|
-
this.
|
|
1624
|
-
this.
|
|
1625
|
-
this.
|
|
1626
|
-
this.
|
|
1627
|
-
this.
|
|
1628
|
-
this.
|
|
1629
|
-
this.
|
|
1630
|
-
}
|
|
1631
|
-
protoOf(ElevationProviderConfig).
|
|
1884
|
+
this.z18_1 = zoomLevel;
|
|
1885
|
+
this.a19_1 = cacheSize;
|
|
1886
|
+
this.b19_1 = tileUrlTemplate;
|
|
1887
|
+
this.c19_1 = tileSize;
|
|
1888
|
+
this.d19_1 = attribution;
|
|
1889
|
+
this.e19_1 = encoding;
|
|
1890
|
+
this.f19_1 = maxRequestsPerSecond;
|
|
1891
|
+
}
|
|
1892
|
+
protoOf(ElevationProviderConfig).w1a = function (zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond) {
|
|
1632
1893
|
return new ElevationProviderConfig(zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond);
|
|
1633
1894
|
};
|
|
1634
|
-
protoOf(ElevationProviderConfig).
|
|
1635
|
-
zoomLevel = zoomLevel === VOID ? this.
|
|
1636
|
-
cacheSize = cacheSize === VOID ? this.
|
|
1637
|
-
tileUrlTemplate = tileUrlTemplate === VOID ? this.
|
|
1638
|
-
tileSize = tileSize === VOID ? this.
|
|
1639
|
-
attribution = attribution === VOID ? this.
|
|
1640
|
-
encoding = encoding === VOID ? this.
|
|
1641
|
-
maxRequestsPerSecond = maxRequestsPerSecond === VOID ? this.
|
|
1642
|
-
return $super === VOID ? this.
|
|
1895
|
+
protoOf(ElevationProviderConfig).x1a = function (zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond, $super) {
|
|
1896
|
+
zoomLevel = zoomLevel === VOID ? this.z18_1 : zoomLevel;
|
|
1897
|
+
cacheSize = cacheSize === VOID ? this.a19_1 : cacheSize;
|
|
1898
|
+
tileUrlTemplate = tileUrlTemplate === VOID ? this.b19_1 : tileUrlTemplate;
|
|
1899
|
+
tileSize = tileSize === VOID ? this.c19_1 : tileSize;
|
|
1900
|
+
attribution = attribution === VOID ? this.d19_1 : attribution;
|
|
1901
|
+
encoding = encoding === VOID ? this.e19_1 : encoding;
|
|
1902
|
+
maxRequestsPerSecond = maxRequestsPerSecond === VOID ? this.f19_1 : maxRequestsPerSecond;
|
|
1903
|
+
return $super === VOID ? this.w1a(zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond) : $super.w1a.call(this, zoomLevel, cacheSize, tileUrlTemplate, tileSize, attribution, encoding, maxRequestsPerSecond);
|
|
1643
1904
|
};
|
|
1644
1905
|
protoOf(ElevationProviderConfig).toString = function () {
|
|
1645
|
-
return 'ElevationProviderConfig(zoomLevel=' + this.
|
|
1906
|
+
return 'ElevationProviderConfig(zoomLevel=' + this.z18_1 + ', cacheSize=' + this.a19_1 + ', tileUrlTemplate=' + this.b19_1 + ', tileSize=' + this.c19_1 + ', attribution=' + this.d19_1.toString() + ', encoding=' + this.e19_1.toString() + ', maxRequestsPerSecond=' + this.f19_1 + ')';
|
|
1646
1907
|
};
|
|
1647
1908
|
protoOf(ElevationProviderConfig).hashCode = function () {
|
|
1648
|
-
var result = this.
|
|
1649
|
-
result = imul(result, 31) + this.
|
|
1650
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1651
|
-
result = imul(result, 31) + this.
|
|
1652
|
-
result = imul(result, 31) + this.
|
|
1653
|
-
result = imul(result, 31) + this.
|
|
1654
|
-
result = imul(result, 31) + this.
|
|
1909
|
+
var result = this.z18_1;
|
|
1910
|
+
result = imul(result, 31) + this.a19_1 | 0;
|
|
1911
|
+
result = imul(result, 31) + getStringHashCode(this.b19_1) | 0;
|
|
1912
|
+
result = imul(result, 31) + this.c19_1 | 0;
|
|
1913
|
+
result = imul(result, 31) + this.d19_1.hashCode() | 0;
|
|
1914
|
+
result = imul(result, 31) + this.e19_1.hashCode() | 0;
|
|
1915
|
+
result = imul(result, 31) + this.f19_1 | 0;
|
|
1655
1916
|
return result;
|
|
1656
1917
|
};
|
|
1657
1918
|
protoOf(ElevationProviderConfig).equals = function (other) {
|
|
@@ -1659,33 +1920,33 @@
|
|
|
1659
1920
|
return true;
|
|
1660
1921
|
if (!(other instanceof ElevationProviderConfig))
|
|
1661
1922
|
return false;
|
|
1662
|
-
if (!(this.
|
|
1923
|
+
if (!(this.z18_1 === other.z18_1))
|
|
1663
1924
|
return false;
|
|
1664
|
-
if (!(this.
|
|
1925
|
+
if (!(this.a19_1 === other.a19_1))
|
|
1665
1926
|
return false;
|
|
1666
|
-
if (!(this.
|
|
1927
|
+
if (!(this.b19_1 === other.b19_1))
|
|
1667
1928
|
return false;
|
|
1668
|
-
if (!(this.
|
|
1929
|
+
if (!(this.c19_1 === other.c19_1))
|
|
1669
1930
|
return false;
|
|
1670
|
-
if (!this.
|
|
1931
|
+
if (!this.d19_1.equals(other.d19_1))
|
|
1671
1932
|
return false;
|
|
1672
|
-
if (!this.
|
|
1933
|
+
if (!this.e19_1.equals(other.e19_1))
|
|
1673
1934
|
return false;
|
|
1674
|
-
if (!(this.
|
|
1935
|
+
if (!(this.f19_1 === other.f19_1))
|
|
1675
1936
|
return false;
|
|
1676
1937
|
return true;
|
|
1677
1938
|
};
|
|
1678
1939
|
function Attribution(text, url) {
|
|
1679
1940
|
url = url === VOID ? null : url;
|
|
1680
|
-
this.
|
|
1681
|
-
this.
|
|
1941
|
+
this.y1a_1 = text;
|
|
1942
|
+
this.z1a_1 = url;
|
|
1682
1943
|
}
|
|
1683
1944
|
protoOf(Attribution).toString = function () {
|
|
1684
|
-
return 'Attribution(text=' + this.
|
|
1945
|
+
return 'Attribution(text=' + this.y1a_1 + ', url=' + this.z1a_1 + ')';
|
|
1685
1946
|
};
|
|
1686
1947
|
protoOf(Attribution).hashCode = function () {
|
|
1687
|
-
var result = getStringHashCode(this.
|
|
1688
|
-
result = imul(result, 31) + (this.
|
|
1948
|
+
var result = getStringHashCode(this.y1a_1);
|
|
1949
|
+
result = imul(result, 31) + (this.z1a_1 == null ? 0 : getStringHashCode(this.z1a_1)) | 0;
|
|
1689
1950
|
return result;
|
|
1690
1951
|
};
|
|
1691
1952
|
protoOf(Attribution).equals = function (other) {
|
|
@@ -1693,9 +1954,9 @@
|
|
|
1693
1954
|
return true;
|
|
1694
1955
|
if (!(other instanceof Attribution))
|
|
1695
1956
|
return false;
|
|
1696
|
-
if (!(this.
|
|
1957
|
+
if (!(this.y1a_1 === other.y1a_1))
|
|
1697
1958
|
return false;
|
|
1698
|
-
if (!(this.
|
|
1959
|
+
if (!(this.z1a_1 == other.z1a_1))
|
|
1699
1960
|
return false;
|
|
1700
1961
|
return true;
|
|
1701
1962
|
};
|
|
@@ -1705,7 +1966,7 @@
|
|
|
1705
1966
|
}
|
|
1706
1967
|
function ElevationSmoother() {
|
|
1707
1968
|
}
|
|
1708
|
-
protoOf(ElevationSmoother).
|
|
1969
|
+
protoOf(ElevationSmoother).h12 = function (points, windowSize) {
|
|
1709
1970
|
if (points.o() < 3)
|
|
1710
1971
|
return points;
|
|
1711
1972
|
// Inline function 'kotlin.require' call
|
|
@@ -1713,17 +1974,17 @@
|
|
|
1713
1974
|
var message = 'Invalid window size: ' + formatWindow(ElevationSmoother_instance, windowSize) + '. Must be positive';
|
|
1714
1975
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1715
1976
|
}
|
|
1716
|
-
var distances = Distance_instance.
|
|
1977
|
+
var distances = Distance_instance.w12(points);
|
|
1717
1978
|
var tmp = 0;
|
|
1718
1979
|
var tmp_0 = points.o();
|
|
1719
1980
|
var tmp_1 = new Float64Array(tmp_0);
|
|
1720
1981
|
while (tmp < tmp_0) {
|
|
1721
1982
|
var tmp_2 = tmp;
|
|
1722
|
-
tmp_1[tmp_2] = points.p(tmp_2).
|
|
1983
|
+
tmp_1[tmp_2] = points.p(tmp_2).s12();
|
|
1723
1984
|
tmp = tmp + 1 | 0;
|
|
1724
1985
|
}
|
|
1725
1986
|
var elevations = tmp_1;
|
|
1726
|
-
var smoothed = this.
|
|
1987
|
+
var smoothed = this.a1b(distances, elevations, windowSize);
|
|
1727
1988
|
// Inline function 'kotlin.collections.List' call
|
|
1728
1989
|
// Inline function 'kotlin.collections.MutableList' call
|
|
1729
1990
|
var size = points.o();
|
|
@@ -1734,13 +1995,13 @@
|
|
|
1734
1995
|
do {
|
|
1735
1996
|
var index = inductionVariable;
|
|
1736
1997
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1737
|
-
var tmp$ret$7 = new LatLonElevation(points.p(index).
|
|
1998
|
+
var tmp$ret$7 = new LatLonElevation(points.p(index).xz(), points.p(index).yz(), smoothed[index]);
|
|
1738
1999
|
list.k(tmp$ret$7);
|
|
1739
2000
|
}
|
|
1740
2001
|
while (inductionVariable < size);
|
|
1741
2002
|
return list;
|
|
1742
2003
|
};
|
|
1743
|
-
protoOf(ElevationSmoother).
|
|
2004
|
+
protoOf(ElevationSmoother).a1b = function (distanceM, elevationM, windowSize) {
|
|
1744
2005
|
// Inline function 'kotlin.require' call
|
|
1745
2006
|
if (!(distanceM.length === elevationM.length)) {
|
|
1746
2007
|
var message = 'distanceM (' + distanceM.length + ') and elevationM (' + elevationM.length + ') must have the same length';
|
|
@@ -1839,9 +2100,9 @@
|
|
|
1839
2100
|
var ElevationSource_IGN_LIDAR_HD_instance;
|
|
1840
2101
|
function Companion() {
|
|
1841
2102
|
Companion_instance_0 = this;
|
|
1842
|
-
this.
|
|
2103
|
+
this.b1b_1 = ElevationSource_MAPTERHORN_getInstance();
|
|
1843
2104
|
}
|
|
1844
|
-
protoOf(Companion).
|
|
2105
|
+
protoOf(Companion).c1b = function () {
|
|
1845
2106
|
// Inline function 'kotlin.collections.map' call
|
|
1846
2107
|
var this_0 = get_entries();
|
|
1847
2108
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1849,12 +2110,12 @@
|
|
|
1849
2110
|
var _iterator__ex2g4s = this_0.l();
|
|
1850
2111
|
while (_iterator__ex2g4s.m()) {
|
|
1851
2112
|
var item = _iterator__ex2g4s.n();
|
|
1852
|
-
var tmp$ret$2 = item.
|
|
2113
|
+
var tmp$ret$2 = item.f1b_1;
|
|
1853
2114
|
destination.k(tmp$ret$2);
|
|
1854
2115
|
}
|
|
1855
2116
|
return destination;
|
|
1856
2117
|
};
|
|
1857
|
-
protoOf(Companion).
|
|
2118
|
+
protoOf(Companion).g1b = function (id) {
|
|
1858
2119
|
var tmp0 = get_entries();
|
|
1859
2120
|
var tmp$ret$0;
|
|
1860
2121
|
$l$block: {
|
|
@@ -1862,7 +2123,7 @@
|
|
|
1862
2123
|
var _iterator__ex2g4s = tmp0.l();
|
|
1863
2124
|
while (_iterator__ex2g4s.m()) {
|
|
1864
2125
|
var element = _iterator__ex2g4s.n();
|
|
1865
|
-
if (element.
|
|
2126
|
+
if (element.f1b_1 === id) {
|
|
1866
2127
|
tmp$ret$0 = element;
|
|
1867
2128
|
break $l$block;
|
|
1868
2129
|
}
|
|
@@ -1872,7 +2133,7 @@
|
|
|
1872
2133
|
var tmp0_elvis_lhs = tmp$ret$0;
|
|
1873
2134
|
var tmp;
|
|
1874
2135
|
if (tmp0_elvis_lhs == null) {
|
|
1875
|
-
throw IllegalArgumentException_init_$Create$("Unknown DEM source '" + id + "' \u2014 expected one of " + joinToString(this.
|
|
2136
|
+
throw IllegalArgumentException_init_$Create$("Unknown DEM source '" + id + "' \u2014 expected one of " + joinToString(this.c1b()));
|
|
1876
2137
|
} else {
|
|
1877
2138
|
tmp = tmp0_elvis_lhs;
|
|
1878
2139
|
}
|
|
@@ -1896,9 +2157,9 @@
|
|
|
1896
2157
|
var $ENTRIES;
|
|
1897
2158
|
function ElevationSource(name, ordinal, id) {
|
|
1898
2159
|
Enum.call(this, name, ordinal);
|
|
1899
|
-
this.
|
|
2160
|
+
this.f1b_1 = id;
|
|
1900
2161
|
}
|
|
1901
|
-
protoOf(ElevationSource).
|
|
2162
|
+
protoOf(ElevationSource).h1b = function () {
|
|
1902
2163
|
var tmp;
|
|
1903
2164
|
switch (this.y1_1) {
|
|
1904
2165
|
case 0:
|
|
@@ -1913,14 +2174,14 @@
|
|
|
1913
2174
|
}
|
|
1914
2175
|
return tmp;
|
|
1915
2176
|
};
|
|
1916
|
-
protoOf(ElevationSource).
|
|
2177
|
+
protoOf(ElevationSource).i1b = function () {
|
|
1917
2178
|
var tmp;
|
|
1918
2179
|
switch (this.y1_1) {
|
|
1919
2180
|
case 0:
|
|
1920
|
-
tmp = (new ElevationProviderConfig()).
|
|
2181
|
+
tmp = (new ElevationProviderConfig()).z18_1;
|
|
1921
2182
|
break;
|
|
1922
2183
|
case 1:
|
|
1923
|
-
tmp = IgnLidarHdLayer_MNT_getInstance().
|
|
2184
|
+
tmp = IgnLidarHdLayer_MNT_getInstance().i1b();
|
|
1924
2185
|
break;
|
|
1925
2186
|
default:
|
|
1926
2187
|
noWhenBranchMatchedException();
|
|
@@ -1928,15 +2189,15 @@
|
|
|
1928
2189
|
}
|
|
1929
2190
|
return tmp;
|
|
1930
2191
|
};
|
|
1931
|
-
protoOf(ElevationSource).
|
|
2192
|
+
protoOf(ElevationSource).m1b = function (zoomLevel) {
|
|
1932
2193
|
var tmp;
|
|
1933
2194
|
switch (this.y1_1) {
|
|
1934
2195
|
case 0:
|
|
1935
|
-
tmp = new ElevationProviderConfig(zoomLevel == null ? this.
|
|
2196
|
+
tmp = new ElevationProviderConfig(zoomLevel == null ? this.i1b() : zoomLevel);
|
|
1936
2197
|
break;
|
|
1937
2198
|
case 1:
|
|
1938
2199
|
var tmp_0 = IgnLidarHdLayer_MNT_getInstance();
|
|
1939
|
-
tmp = tmp_0.
|
|
2200
|
+
tmp = tmp_0.m1b(zoomLevel == null ? this.i1b() : zoomLevel);
|
|
1940
2201
|
break;
|
|
1941
2202
|
default:
|
|
1942
2203
|
noWhenBranchMatchedException();
|
|
@@ -1953,32 +2214,32 @@
|
|
|
1953
2214
|
tmp = fetcherFor;
|
|
1954
2215
|
}
|
|
1955
2216
|
fetcherFor = tmp;
|
|
1956
|
-
var config = _this__u8e3s4.
|
|
2217
|
+
var config = _this__u8e3s4.m1b(zoomLevel);
|
|
1957
2218
|
var fetcher = _this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) ? ignCoverageFiltered(config, fetcherFor(config)) : fetcherFor(config);
|
|
1958
2219
|
var primary = ElevationProvider_init_$Create$(config, fetcher);
|
|
1959
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2220
|
+
var tmp0_safe_receiver = _this__u8e3s4.h1b();
|
|
1960
2221
|
var tmp_0;
|
|
1961
2222
|
if (tmp0_safe_receiver == null) {
|
|
1962
2223
|
tmp_0 = null;
|
|
1963
2224
|
} else {
|
|
1964
2225
|
// Inline function 'kotlin.let' call
|
|
1965
|
-
tmp_0 = primary.
|
|
2226
|
+
tmp_0 = primary.o19(provider(tmp0_safe_receiver, null, fetcherFor));
|
|
1966
2227
|
}
|
|
1967
2228
|
var tmp1_elvis_lhs = tmp_0;
|
|
1968
2229
|
var withFallback = tmp1_elvis_lhs == null ? primary : tmp1_elvis_lhs;
|
|
1969
2230
|
var tmp_1;
|
|
1970
|
-
if (_this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) && config.
|
|
1971
|
-
tmp_1 = withFallback.
|
|
2231
|
+
if (_this__u8e3s4.equals(ElevationSource_IGN_LIDAR_HD_getInstance()) && config.z18_1 === IgnLidarHdLayer_MNS_getInstance().i1b()) {
|
|
2232
|
+
tmp_1 = withFallback.p19(provider_0(IgnLidarHdLayer_MNS_getInstance(), null, fetcherFor));
|
|
1972
2233
|
} else {
|
|
1973
2234
|
tmp_1 = withFallback;
|
|
1974
2235
|
}
|
|
1975
2236
|
return tmp_1;
|
|
1976
2237
|
}
|
|
1977
2238
|
function wmsBbox4326(tc) {
|
|
1978
|
-
var tiles = 1 << tc.
|
|
1979
|
-
var west = tc.
|
|
1980
|
-
var east = (tc.
|
|
1981
|
-
return '' + tileNorthLatitude(tc.
|
|
2239
|
+
var tiles = 1 << tc.n11_1;
|
|
2240
|
+
var west = tc.l11_1 / tiles * 360.0 - 180.0;
|
|
2241
|
+
var east = (tc.l11_1 + 1 | 0) / tiles * 360.0 - 180.0;
|
|
2242
|
+
return '' + tileNorthLatitude(tc.m11_1 + 1 | 0, tiles) + ',' + west + ',' + tileNorthLatitude(tc.m11_1, tiles) + ',' + east;
|
|
1982
2243
|
}
|
|
1983
2244
|
function tileNorthLatitude(y, tiles) {
|
|
1984
2245
|
// Inline function 'kotlin.math.sinh' call
|
|
@@ -1996,19 +2257,19 @@
|
|
|
1996
2257
|
return ElevationSource_IGN_LIDAR_HD_instance;
|
|
1997
2258
|
}
|
|
1998
2259
|
function Flux$forEachParallel$slambda$slambda($semaphore, $action, $item, resultContinuation) {
|
|
1999
|
-
this.
|
|
2000
|
-
this.
|
|
2001
|
-
this.
|
|
2260
|
+
this.v1b_1 = $semaphore;
|
|
2261
|
+
this.w1b_1 = $action;
|
|
2262
|
+
this.x1b_1 = $item;
|
|
2002
2263
|
CoroutineImpl.call(this, resultContinuation);
|
|
2003
2264
|
}
|
|
2004
|
-
protoOf(Flux$forEachParallel$slambda$slambda).
|
|
2005
|
-
var tmp = this.
|
|
2265
|
+
protoOf(Flux$forEachParallel$slambda$slambda).b1c = function ($this$async, $completion) {
|
|
2266
|
+
var tmp = this.c1c($this$async, $completion);
|
|
2006
2267
|
tmp.l7_1 = Unit_instance;
|
|
2007
2268
|
tmp.m7_1 = null;
|
|
2008
2269
|
return tmp.r7();
|
|
2009
2270
|
};
|
|
2010
2271
|
protoOf(Flux$forEachParallel$slambda$slambda).z7 = function (p1, $completion) {
|
|
2011
|
-
return this.
|
|
2272
|
+
return this.b1c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2012
2273
|
};
|
|
2013
2274
|
protoOf(Flux$forEachParallel$slambda$slambda).r7 = function () {
|
|
2014
2275
|
var suspendResult = this.l7_1;
|
|
@@ -2018,41 +2279,41 @@
|
|
|
2018
2279
|
switch (tmp) {
|
|
2019
2280
|
case 0:
|
|
2020
2281
|
this.k7_1 = 6;
|
|
2021
|
-
this.
|
|
2282
|
+
this.z1b_1 = this.v1b_1;
|
|
2022
2283
|
this.j7_1 = 1;
|
|
2023
|
-
suspendResult = this.
|
|
2284
|
+
suspendResult = this.z1b_1.yw(this);
|
|
2024
2285
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2025
2286
|
return suspendResult;
|
|
2026
2287
|
}
|
|
2027
2288
|
|
|
2028
2289
|
continue $sm;
|
|
2029
2290
|
case 1:
|
|
2030
|
-
this.
|
|
2291
|
+
this.a1c_1 = Unit_instance;
|
|
2031
2292
|
this.j7_1 = 2;
|
|
2032
2293
|
continue $sm;
|
|
2033
2294
|
case 2:
|
|
2034
2295
|
this.k7_1 = 5;
|
|
2035
2296
|
this.j7_1 = 3;
|
|
2036
|
-
suspendResult = this.
|
|
2297
|
+
suspendResult = this.w1b_1(this.x1b_1, this);
|
|
2037
2298
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2038
2299
|
return suspendResult;
|
|
2039
2300
|
}
|
|
2040
2301
|
|
|
2041
2302
|
continue $sm;
|
|
2042
2303
|
case 3:
|
|
2043
|
-
this.
|
|
2304
|
+
this.a1c_1 = Unit_instance;
|
|
2044
2305
|
this.k7_1 = 6;
|
|
2045
2306
|
this.j7_1 = 4;
|
|
2046
2307
|
continue $sm;
|
|
2047
2308
|
case 4:
|
|
2048
|
-
this.
|
|
2309
|
+
this.a1c_1;
|
|
2049
2310
|
this.k7_1 = 6;
|
|
2050
|
-
this.
|
|
2311
|
+
this.z1b_1.sw();
|
|
2051
2312
|
return Unit_instance;
|
|
2052
2313
|
case 5:
|
|
2053
2314
|
this.k7_1 = 6;
|
|
2054
2315
|
var t = this.m7_1;
|
|
2055
|
-
this.
|
|
2316
|
+
this.z1b_1.sw();
|
|
2056
2317
|
throw t;
|
|
2057
2318
|
case 6:
|
|
2058
2319
|
throw this.m7_1;
|
|
@@ -2068,31 +2329,31 @@
|
|
|
2068
2329
|
}
|
|
2069
2330
|
while (true);
|
|
2070
2331
|
};
|
|
2071
|
-
protoOf(Flux$forEachParallel$slambda$slambda).
|
|
2072
|
-
var i = new Flux$forEachParallel$slambda$slambda(this.
|
|
2073
|
-
i.
|
|
2332
|
+
protoOf(Flux$forEachParallel$slambda$slambda).c1c = function ($this$async, completion) {
|
|
2333
|
+
var i = new Flux$forEachParallel$slambda$slambda(this.v1b_1, this.w1b_1, this.x1b_1, completion);
|
|
2334
|
+
i.y1b_1 = $this$async;
|
|
2074
2335
|
return i;
|
|
2075
2336
|
};
|
|
2076
2337
|
function Flux$forEachParallel$slambda$slambda_0($semaphore, $action, $item, resultContinuation) {
|
|
2077
2338
|
var i = new Flux$forEachParallel$slambda$slambda($semaphore, $action, $item, resultContinuation);
|
|
2078
2339
|
return constructCallableReference(function ($this$async, $completion) {
|
|
2079
|
-
return i.
|
|
2340
|
+
return i.b1c($this$async, $completion);
|
|
2080
2341
|
}, 1);
|
|
2081
2342
|
}
|
|
2082
2343
|
function Flux$forEachParallel$slambda($maxParallel, $items, $action, resultContinuation) {
|
|
2083
|
-
this.
|
|
2084
|
-
this.
|
|
2085
|
-
this.
|
|
2344
|
+
this.l1c_1 = $maxParallel;
|
|
2345
|
+
this.m1c_1 = $items;
|
|
2346
|
+
this.n1c_1 = $action;
|
|
2086
2347
|
CoroutineImpl.call(this, resultContinuation);
|
|
2087
2348
|
}
|
|
2088
|
-
protoOf(Flux$forEachParallel$slambda).
|
|
2089
|
-
var tmp = this.
|
|
2349
|
+
protoOf(Flux$forEachParallel$slambda).p1c = function ($this$coroutineScope, $completion) {
|
|
2350
|
+
var tmp = this.c1c($this$coroutineScope, $completion);
|
|
2090
2351
|
tmp.l7_1 = Unit_instance;
|
|
2091
2352
|
tmp.m7_1 = null;
|
|
2092
2353
|
return tmp.r7();
|
|
2093
2354
|
};
|
|
2094
2355
|
protoOf(Flux$forEachParallel$slambda).z7 = function (p1, $completion) {
|
|
2095
|
-
return this.
|
|
2356
|
+
return this.p1c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2096
2357
|
};
|
|
2097
2358
|
protoOf(Flux$forEachParallel$slambda).r7 = function () {
|
|
2098
2359
|
var suspendResult = this.l7_1;
|
|
@@ -2102,14 +2363,14 @@
|
|
|
2102
2363
|
switch (tmp) {
|
|
2103
2364
|
case 0:
|
|
2104
2365
|
this.k7_1 = 2;
|
|
2105
|
-
var semaphore = Semaphore(this.
|
|
2366
|
+
var semaphore = Semaphore(this.l1c_1);
|
|
2106
2367
|
this.j7_1 = 1;
|
|
2107
|
-
var this_0 = this.
|
|
2368
|
+
var this_0 = this.m1c_1;
|
|
2108
2369
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2109
2370
|
var _iterator__ex2g4s = this_0.l();
|
|
2110
2371
|
while (_iterator__ex2g4s.m()) {
|
|
2111
2372
|
var item = _iterator__ex2g4s.n();
|
|
2112
|
-
destination.k(async(this.
|
|
2373
|
+
destination.k(async(this.o1c_1, VOID, VOID, Flux$forEachParallel$slambda$slambda_0(semaphore, this.n1c_1, item, null)));
|
|
2113
2374
|
}
|
|
2114
2375
|
|
|
2115
2376
|
suspendResult = awaitAll(destination, this);
|
|
@@ -2134,23 +2395,23 @@
|
|
|
2134
2395
|
}
|
|
2135
2396
|
while (true);
|
|
2136
2397
|
};
|
|
2137
|
-
protoOf(Flux$forEachParallel$slambda).
|
|
2138
|
-
var i = new Flux$forEachParallel$slambda(this.
|
|
2139
|
-
i.
|
|
2398
|
+
protoOf(Flux$forEachParallel$slambda).c1c = function ($this$coroutineScope, completion) {
|
|
2399
|
+
var i = new Flux$forEachParallel$slambda(this.l1c_1, this.m1c_1, this.n1c_1, completion);
|
|
2400
|
+
i.o1c_1 = $this$coroutineScope;
|
|
2140
2401
|
return i;
|
|
2141
2402
|
};
|
|
2142
2403
|
function Flux$forEachParallel$slambda_0($maxParallel, $items, $action, resultContinuation) {
|
|
2143
2404
|
var i = new Flux$forEachParallel$slambda($maxParallel, $items, $action, resultContinuation);
|
|
2144
2405
|
return constructCallableReference(function ($this$coroutineScope, $completion) {
|
|
2145
|
-
return i.
|
|
2406
|
+
return i.p1c($this$coroutineScope, $completion);
|
|
2146
2407
|
}, 1);
|
|
2147
2408
|
}
|
|
2148
2409
|
function $forEachParallelCOROUTINE$(_this__u8e3s4, items, maxParallel, action, resultContinuation) {
|
|
2149
2410
|
CoroutineImpl.call(this, resultContinuation);
|
|
2150
|
-
this.
|
|
2151
|
-
this.
|
|
2152
|
-
this.
|
|
2153
|
-
this.
|
|
2411
|
+
this.y1c_1 = _this__u8e3s4;
|
|
2412
|
+
this.z1c_1 = items;
|
|
2413
|
+
this.a1d_1 = maxParallel;
|
|
2414
|
+
this.b1d_1 = action;
|
|
2154
2415
|
}
|
|
2155
2416
|
protoOf($forEachParallelCOROUTINE$).r7 = function () {
|
|
2156
2417
|
var suspendResult = this.l7_1;
|
|
@@ -2160,13 +2421,13 @@
|
|
|
2160
2421
|
switch (tmp) {
|
|
2161
2422
|
case 0:
|
|
2162
2423
|
this.k7_1 = 2;
|
|
2163
|
-
if (!(this.
|
|
2164
|
-
var message = 'maxParallel must be >= 1, got ' + this.
|
|
2424
|
+
if (!(this.a1d_1 >= 1)) {
|
|
2425
|
+
var message = 'maxParallel must be >= 1, got ' + this.a1d_1;
|
|
2165
2426
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2166
2427
|
}
|
|
2167
2428
|
|
|
2168
2429
|
this.j7_1 = 1;
|
|
2169
|
-
suspendResult = coroutineScope(Flux$forEachParallel$slambda_0(this.
|
|
2430
|
+
suspendResult = coroutineScope(Flux$forEachParallel$slambda_0(this.a1d_1, this.z1c_1, this.b1d_1, null), this);
|
|
2170
2431
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2171
2432
|
return suspendResult;
|
|
2172
2433
|
}
|
|
@@ -2190,7 +2451,7 @@
|
|
|
2190
2451
|
};
|
|
2191
2452
|
function Flux() {
|
|
2192
2453
|
}
|
|
2193
|
-
protoOf(Flux).
|
|
2454
|
+
protoOf(Flux).o11 = function (items, maxParallel, action, $completion) {
|
|
2194
2455
|
var tmp = new $forEachParallelCOROUTINE$(this, items, maxParallel, action, $completion);
|
|
2195
2456
|
tmp.l7_1 = Unit_instance;
|
|
2196
2457
|
tmp.m7_1 = null;
|
|
@@ -2337,19 +2598,46 @@
|
|
|
2337
2598
|
IgnLidarHdCoverage_instance = this;
|
|
2338
2599
|
var tmp = this;
|
|
2339
2600
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
2340
|
-
tmp.
|
|
2601
|
+
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]);
|
|
2341
2602
|
var tmp_0 = this;
|
|
2342
2603
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
2343
|
-
tmp_0.
|
|
2344
|
-
this.
|
|
2345
|
-
}
|
|
2346
|
-
protoOf(IgnLidarHdCoverage).
|
|
2347
|
-
var
|
|
2348
|
-
var
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2604
|
+
tmp_0.d1d_1 = new Float64Array([8.4, 43.15, 9.7, 43.15, 9.7, 41.25, 8.4, 41.25]);
|
|
2605
|
+
this.e1d_1 = listOf([this.c1d_1, this.d1d_1]);
|
|
2606
|
+
}
|
|
2607
|
+
protoOf(IgnLidarHdCoverage).f1d = function (latitude, longitude) {
|
|
2608
|
+
var tmp0 = this.e1d_1;
|
|
2609
|
+
var tmp$ret$0;
|
|
2610
|
+
$l$block_0: {
|
|
2611
|
+
// Inline function 'kotlin.collections.any' call
|
|
2612
|
+
var tmp;
|
|
2613
|
+
if (isInterface(tmp0, Collection)) {
|
|
2614
|
+
tmp = tmp0.r();
|
|
2615
|
+
} else {
|
|
2616
|
+
tmp = false;
|
|
2617
|
+
}
|
|
2618
|
+
if (tmp) {
|
|
2619
|
+
tmp$ret$0 = false;
|
|
2620
|
+
break $l$block_0;
|
|
2621
|
+
}
|
|
2622
|
+
var _iterator__ex2g4s = tmp0.l();
|
|
2623
|
+
while (_iterator__ex2g4s.m()) {
|
|
2624
|
+
var element = _iterator__ex2g4s.n();
|
|
2625
|
+
if (inside(IgnLidarHdCoverage_getInstance(), element, longitude, latitude)) {
|
|
2626
|
+
tmp$ret$0 = true;
|
|
2627
|
+
break $l$block_0;
|
|
2628
|
+
}
|
|
2629
|
+
}
|
|
2630
|
+
tmp$ret$0 = false;
|
|
2631
|
+
}
|
|
2632
|
+
return tmp$ret$0;
|
|
2633
|
+
};
|
|
2634
|
+
protoOf(IgnLidarHdCoverage).g1d = function (tc) {
|
|
2635
|
+
var tiles = 1 << tc.n11_1;
|
|
2636
|
+
var west = tc.l11_1 / tiles * 360.0 - 180.0;
|
|
2637
|
+
var east = (tc.l11_1 + 1 | 0) / tiles * 360.0 - 180.0;
|
|
2638
|
+
var north = latitudeOfRow(this, tc.m11_1, tiles);
|
|
2639
|
+
var south = latitudeOfRow(this, tc.m11_1 + 1 | 0, tiles);
|
|
2640
|
+
var tmp0 = this.e1d_1;
|
|
2353
2641
|
var tmp$ret$0;
|
|
2354
2642
|
$l$block_0: {
|
|
2355
2643
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -2382,18 +2670,18 @@
|
|
|
2382
2670
|
return IgnLidarHdCoverage_instance;
|
|
2383
2671
|
}
|
|
2384
2672
|
function ignCoverageFiltered$slambda($config, $fetcher, resultContinuation) {
|
|
2385
|
-
this.
|
|
2386
|
-
this.
|
|
2673
|
+
this.p1d_1 = $config;
|
|
2674
|
+
this.q1d_1 = $fetcher;
|
|
2387
2675
|
CoroutineImpl.call(this, resultContinuation);
|
|
2388
2676
|
}
|
|
2389
|
-
protoOf(ignCoverageFiltered$slambda).
|
|
2390
|
-
var tmp = this.
|
|
2677
|
+
protoOf(ignCoverageFiltered$slambda).z19 = function (url, $completion) {
|
|
2678
|
+
var tmp = this.k1a(url, $completion);
|
|
2391
2679
|
tmp.l7_1 = Unit_instance;
|
|
2392
2680
|
tmp.m7_1 = null;
|
|
2393
2681
|
return tmp.r7();
|
|
2394
2682
|
};
|
|
2395
2683
|
protoOf(ignCoverageFiltered$slambda).z7 = function (p1, $completion) {
|
|
2396
|
-
return this.
|
|
2684
|
+
return this.z19((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
2397
2685
|
};
|
|
2398
2686
|
protoOf(ignCoverageFiltered$slambda).r7 = function () {
|
|
2399
2687
|
var suspendResult = this.l7_1;
|
|
@@ -2403,25 +2691,25 @@
|
|
|
2403
2691
|
switch (tmp) {
|
|
2404
2692
|
case 0:
|
|
2405
2693
|
this.k7_1 = 3;
|
|
2406
|
-
if (IgnLidarHdCoverage_getInstance().
|
|
2694
|
+
if (IgnLidarHdCoverage_getInstance().g1d(tileCoordinatesOf(this.r1d_1, this.p1d_1))) {
|
|
2407
2695
|
this.j7_1 = 1;
|
|
2408
|
-
suspendResult = this.
|
|
2696
|
+
suspendResult = this.q1d_1(this.r1d_1, this);
|
|
2409
2697
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2410
2698
|
return suspendResult;
|
|
2411
2699
|
}
|
|
2412
2700
|
continue $sm;
|
|
2413
2701
|
} else {
|
|
2414
|
-
this.
|
|
2702
|
+
this.s1d_1 = noDataTile(this.p1d_1.c19_1);
|
|
2415
2703
|
this.j7_1 = 2;
|
|
2416
2704
|
continue $sm;
|
|
2417
2705
|
}
|
|
2418
2706
|
|
|
2419
2707
|
case 1:
|
|
2420
|
-
this.
|
|
2708
|
+
this.s1d_1 = suspendResult;
|
|
2421
2709
|
this.j7_1 = 2;
|
|
2422
2710
|
continue $sm;
|
|
2423
2711
|
case 2:
|
|
2424
|
-
return this.
|
|
2712
|
+
return this.s1d_1;
|
|
2425
2713
|
case 3:
|
|
2426
2714
|
throw this.m7_1;
|
|
2427
2715
|
}
|
|
@@ -2436,15 +2724,15 @@
|
|
|
2436
2724
|
}
|
|
2437
2725
|
while (true);
|
|
2438
2726
|
};
|
|
2439
|
-
protoOf(ignCoverageFiltered$slambda).
|
|
2440
|
-
var i = new ignCoverageFiltered$slambda(this.
|
|
2441
|
-
i.
|
|
2727
|
+
protoOf(ignCoverageFiltered$slambda).k1a = function (url, completion) {
|
|
2728
|
+
var i = new ignCoverageFiltered$slambda(this.p1d_1, this.q1d_1, completion);
|
|
2729
|
+
i.r1d_1 = url;
|
|
2442
2730
|
return i;
|
|
2443
2731
|
};
|
|
2444
2732
|
function ignCoverageFiltered$slambda_0($config, $fetcher, resultContinuation) {
|
|
2445
2733
|
var i = new ignCoverageFiltered$slambda($config, $fetcher, resultContinuation);
|
|
2446
2734
|
return constructCallableReference(function (url, $completion) {
|
|
2447
|
-
return i.
|
|
2735
|
+
return i.z19(url, $completion);
|
|
2448
2736
|
}, 1);
|
|
2449
2737
|
}
|
|
2450
2738
|
var static_init_called_1;
|
|
@@ -2459,16 +2747,27 @@
|
|
|
2459
2747
|
var IgnLidarHdLayer_MNT_instance;
|
|
2460
2748
|
var IgnLidarHdLayer_MNS_instance;
|
|
2461
2749
|
var IgnLidarHdLayer_MNH_instance;
|
|
2750
|
+
function values_0() {
|
|
2751
|
+
static_init_1();
|
|
2752
|
+
return [IgnLidarHdLayer_MNT_getInstance(), IgnLidarHdLayer_MNS_getInstance(), IgnLidarHdLayer_MNH_getInstance()];
|
|
2753
|
+
}
|
|
2754
|
+
function get_entries_0() {
|
|
2755
|
+
static_init_1();
|
|
2756
|
+
if ($ENTRIES_0 == null)
|
|
2757
|
+
$ENTRIES_0 = enumEntries(values_0());
|
|
2758
|
+
return $ENTRIES_0;
|
|
2759
|
+
}
|
|
2760
|
+
var $ENTRIES_0;
|
|
2462
2761
|
function IgnLidarHdLayer(name, ordinal, wmsLayer) {
|
|
2463
2762
|
Enum.call(this, name, ordinal);
|
|
2464
|
-
this.
|
|
2763
|
+
this.l1b_1 = wmsLayer;
|
|
2465
2764
|
}
|
|
2466
|
-
protoOf(IgnLidarHdLayer).
|
|
2765
|
+
protoOf(IgnLidarHdLayer).i1b = function () {
|
|
2467
2766
|
return 15;
|
|
2468
2767
|
};
|
|
2469
|
-
protoOf(IgnLidarHdLayer).
|
|
2470
|
-
var tmp1_zoomLevel = zoomLevel == null ? this.
|
|
2471
|
-
var tmp3_tileUrlTemplate = ignWmsTemplate(this.
|
|
2768
|
+
protoOf(IgnLidarHdLayer).m1b = function (zoomLevel) {
|
|
2769
|
+
var tmp1_zoomLevel = zoomLevel == null ? this.i1b() : zoomLevel;
|
|
2770
|
+
var tmp3_tileUrlTemplate = ignWmsTemplate(this.l1b_1, 256);
|
|
2472
2771
|
var tmp4_encoding = TileEncoding_BIL32_getInstance();
|
|
2473
2772
|
var tmp5_attribution = new Attribution('\xA9 IGN \u2014 LiDAR HD ' + this.x1_1 + ', Licence Ouverte Etalab 2.0', 'https://geoservices.ign.fr/lidarhd');
|
|
2474
2773
|
return new ElevationProviderConfig(tmp1_zoomLevel, VOID, tmp3_tileUrlTemplate, 256, tmp5_attribution, tmp4_encoding, 20);
|
|
@@ -2482,7 +2781,7 @@
|
|
|
2482
2781
|
tmp = fetcherFor;
|
|
2483
2782
|
}
|
|
2484
2783
|
fetcherFor = tmp;
|
|
2485
|
-
var config = _this__u8e3s4.
|
|
2784
|
+
var config = _this__u8e3s4.m1b(zoomLevel);
|
|
2486
2785
|
return ElevationProvider_init_$Create$_0(config, ignCoverageFiltered(config, fetcherFor(config)), true);
|
|
2487
2786
|
}
|
|
2488
2787
|
function ignWmsTemplate(layer, tileSize) {
|
|
@@ -2496,14 +2795,18 @@
|
|
|
2496
2795
|
static_init_1();
|
|
2497
2796
|
return IgnLidarHdLayer_MNS_instance;
|
|
2498
2797
|
}
|
|
2798
|
+
function IgnLidarHdLayer_MNH_getInstance() {
|
|
2799
|
+
static_init_1();
|
|
2800
|
+
return IgnLidarHdLayer_MNH_instance;
|
|
2801
|
+
}
|
|
2499
2802
|
function Hit(value) {
|
|
2500
|
-
this.
|
|
2803
|
+
this.t1d_1 = value;
|
|
2501
2804
|
}
|
|
2502
2805
|
function Await(deferred) {
|
|
2503
|
-
this.
|
|
2806
|
+
this.u1d_1 = deferred;
|
|
2504
2807
|
}
|
|
2505
2808
|
function Owner(deferred) {
|
|
2506
|
-
this.
|
|
2809
|
+
this.v1d_1 = deferred;
|
|
2507
2810
|
}
|
|
2508
2811
|
function LoadAbandoned() {
|
|
2509
2812
|
Exception_init_$Init$('load abandoned by its cancelled owner', this);
|
|
@@ -2522,18 +2825,18 @@
|
|
|
2522
2825
|
return tmp.r7();
|
|
2523
2826
|
}
|
|
2524
2827
|
function LruCache$load$slambda(this$0, $key, resultContinuation) {
|
|
2525
|
-
this.
|
|
2526
|
-
this.
|
|
2828
|
+
this.e1f_1 = this$0;
|
|
2829
|
+
this.f1f_1 = $key;
|
|
2527
2830
|
CoroutineImpl.call(this, resultContinuation);
|
|
2528
2831
|
}
|
|
2529
|
-
protoOf(LruCache$load$slambda).
|
|
2530
|
-
var tmp = this.
|
|
2832
|
+
protoOf(LruCache$load$slambda).j1f = function ($this$withContext, $completion) {
|
|
2833
|
+
var tmp = this.c1c($this$withContext, $completion);
|
|
2531
2834
|
tmp.l7_1 = Unit_instance;
|
|
2532
2835
|
tmp.m7_1 = null;
|
|
2533
2836
|
return tmp.r7();
|
|
2534
2837
|
};
|
|
2535
2838
|
protoOf(LruCache$load$slambda).z7 = function (p1, $completion) {
|
|
2536
|
-
return this.
|
|
2839
|
+
return this.j1f((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2537
2840
|
};
|
|
2538
2841
|
protoOf(LruCache$load$slambda).r7 = function () {
|
|
2539
2842
|
var suspendResult = this.l7_1;
|
|
@@ -2543,10 +2846,10 @@
|
|
|
2543
2846
|
switch (tmp) {
|
|
2544
2847
|
case 0:
|
|
2545
2848
|
this.k7_1 = 2;
|
|
2546
|
-
this.
|
|
2547
|
-
this.
|
|
2849
|
+
this.i1f_1 = this.e1f_1.n1f_1;
|
|
2850
|
+
this.h1f_1 = null;
|
|
2548
2851
|
this.j7_1 = 1;
|
|
2549
|
-
suspendResult = this.
|
|
2852
|
+
suspendResult = this.i1f_1.qw(this.h1f_1, this);
|
|
2550
2853
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2551
2854
|
return suspendResult;
|
|
2552
2855
|
}
|
|
@@ -2557,18 +2860,18 @@
|
|
|
2557
2860
|
l$ret$1: do {
|
|
2558
2861
|
var tmp_0;
|
|
2559
2862
|
try {
|
|
2560
|
-
tmp$ret$0 = this.
|
|
2863
|
+
tmp$ret$0 = this.e1f_1.p1f_1.w3(this.f1f_1);
|
|
2561
2864
|
break l$ret$1;
|
|
2562
2865
|
} catch ($p) {
|
|
2563
2866
|
var tmp_1;
|
|
2564
2867
|
var t = $p;
|
|
2565
|
-
this.
|
|
2868
|
+
this.i1f_1.bw(this.h1f_1);
|
|
2566
2869
|
throw t;
|
|
2567
2870
|
}
|
|
2568
2871
|
}
|
|
2569
2872
|
while (false);
|
|
2570
2873
|
var tmp_2 = tmp$ret$0;
|
|
2571
|
-
this.
|
|
2874
|
+
this.i1f_1.bw(this.h1f_1);
|
|
2572
2875
|
return tmp_2;
|
|
2573
2876
|
case 2:
|
|
2574
2877
|
throw this.m7_1;
|
|
@@ -2584,31 +2887,31 @@
|
|
|
2584
2887
|
}
|
|
2585
2888
|
while (true);
|
|
2586
2889
|
};
|
|
2587
|
-
protoOf(LruCache$load$slambda).
|
|
2588
|
-
var i = new LruCache$load$slambda(this.
|
|
2589
|
-
i.
|
|
2890
|
+
protoOf(LruCache$load$slambda).c1c = function ($this$withContext, completion) {
|
|
2891
|
+
var i = new LruCache$load$slambda(this.e1f_1, this.f1f_1, completion);
|
|
2892
|
+
i.g1f_1 = $this$withContext;
|
|
2590
2893
|
return i;
|
|
2591
2894
|
};
|
|
2592
2895
|
function LruCache$load$slambda_0(this$0, $key, resultContinuation) {
|
|
2593
2896
|
var i = new LruCache$load$slambda(this$0, $key, resultContinuation);
|
|
2594
2897
|
return constructCallableReference(function ($this$withContext, $completion) {
|
|
2595
|
-
return i.
|
|
2898
|
+
return i.j1f($this$withContext, $completion);
|
|
2596
2899
|
}, 1);
|
|
2597
2900
|
}
|
|
2598
2901
|
function LruCache$load$slambda_1(this$0, $key, $value, resultContinuation) {
|
|
2599
|
-
this.
|
|
2600
|
-
this.
|
|
2601
|
-
this.
|
|
2902
|
+
this.y1f_1 = this$0;
|
|
2903
|
+
this.z1f_1 = $key;
|
|
2904
|
+
this.a1g_1 = $value;
|
|
2602
2905
|
CoroutineImpl.call(this, resultContinuation);
|
|
2603
2906
|
}
|
|
2604
|
-
protoOf(LruCache$load$slambda_1).
|
|
2605
|
-
var tmp = this.
|
|
2907
|
+
protoOf(LruCache$load$slambda_1).e1g = function ($this$withContext, $completion) {
|
|
2908
|
+
var tmp = this.c1c($this$withContext, $completion);
|
|
2606
2909
|
tmp.l7_1 = Unit_instance;
|
|
2607
2910
|
tmp.m7_1 = null;
|
|
2608
2911
|
return tmp.r7();
|
|
2609
2912
|
};
|
|
2610
2913
|
protoOf(LruCache$load$slambda_1).z7 = function (p1, $completion) {
|
|
2611
|
-
return this.
|
|
2914
|
+
return this.e1g((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2612
2915
|
};
|
|
2613
2916
|
protoOf(LruCache$load$slambda_1).r7 = function () {
|
|
2614
2917
|
var suspendResult = this.l7_1;
|
|
@@ -2618,10 +2921,10 @@
|
|
|
2618
2921
|
switch (tmp) {
|
|
2619
2922
|
case 0:
|
|
2620
2923
|
this.k7_1 = 2;
|
|
2621
|
-
this.
|
|
2622
|
-
this.
|
|
2924
|
+
this.d1g_1 = this.y1f_1.n1f_1;
|
|
2925
|
+
this.c1g_1 = null;
|
|
2623
2926
|
this.j7_1 = 1;
|
|
2624
|
-
suspendResult = this.
|
|
2927
|
+
suspendResult = this.d1g_1.qw(this.c1g_1, this);
|
|
2625
2928
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2626
2929
|
return suspendResult;
|
|
2627
2930
|
}
|
|
@@ -2632,37 +2935,37 @@
|
|
|
2632
2935
|
l$ret$1: do {
|
|
2633
2936
|
var tmp_0;
|
|
2634
2937
|
try {
|
|
2635
|
-
this.
|
|
2938
|
+
this.y1f_1.p1f_1.w3(this.z1f_1);
|
|
2636
2939
|
var oldest = null;
|
|
2637
2940
|
var tmp_1;
|
|
2638
|
-
if (this.
|
|
2639
|
-
var tmp0 = this.
|
|
2640
|
-
var key = this.
|
|
2941
|
+
if (this.y1f_1.o1f_1.o() >= this.y1f_1.k1f_1) {
|
|
2942
|
+
var tmp0 = this.y1f_1.o1f_1;
|
|
2943
|
+
var key = this.z1f_1;
|
|
2641
2944
|
tmp_1 = !(isInterface(tmp0, KtMap) ? tmp0 : THROW_CCE()).r1(key);
|
|
2642
2945
|
} else {
|
|
2643
2946
|
tmp_1 = false;
|
|
2644
2947
|
}
|
|
2645
2948
|
if (tmp_1) {
|
|
2646
|
-
var iter = this.
|
|
2949
|
+
var iter = this.y1f_1.o1f_1.w1().l();
|
|
2647
2950
|
oldest = iter.n().q1();
|
|
2648
2951
|
iter.v2();
|
|
2649
2952
|
}
|
|
2650
|
-
var tmp0_0 = this.
|
|
2651
|
-
var tmp2 = this.
|
|
2652
|
-
var value = this.
|
|
2953
|
+
var tmp0_0 = this.y1f_1.o1f_1;
|
|
2954
|
+
var tmp2 = this.z1f_1;
|
|
2955
|
+
var value = this.a1g_1;
|
|
2653
2956
|
tmp0_0.v3(tmp2, value);
|
|
2654
2957
|
tmp$ret$0 = oldest;
|
|
2655
2958
|
break l$ret$1;
|
|
2656
2959
|
} catch ($p) {
|
|
2657
2960
|
var tmp_2;
|
|
2658
2961
|
var t = $p;
|
|
2659
|
-
this.
|
|
2962
|
+
this.d1g_1.bw(this.c1g_1);
|
|
2660
2963
|
throw t;
|
|
2661
2964
|
}
|
|
2662
2965
|
}
|
|
2663
2966
|
while (false);
|
|
2664
2967
|
var tmp_3 = tmp$ret$0;
|
|
2665
|
-
this.
|
|
2968
|
+
this.d1g_1.bw(this.c1g_1);
|
|
2666
2969
|
return tmp_3;
|
|
2667
2970
|
case 2:
|
|
2668
2971
|
throw this.m7_1;
|
|
@@ -2678,21 +2981,21 @@
|
|
|
2678
2981
|
}
|
|
2679
2982
|
while (true);
|
|
2680
2983
|
};
|
|
2681
|
-
protoOf(LruCache$load$slambda_1).
|
|
2682
|
-
var i = new LruCache$load$slambda_1(this.
|
|
2683
|
-
i.
|
|
2984
|
+
protoOf(LruCache$load$slambda_1).c1c = function ($this$withContext, completion) {
|
|
2985
|
+
var i = new LruCache$load$slambda_1(this.y1f_1, this.z1f_1, this.a1g_1, completion);
|
|
2986
|
+
i.b1g_1 = $this$withContext;
|
|
2684
2987
|
return i;
|
|
2685
2988
|
};
|
|
2686
2989
|
function LruCache$load$slambda_2(this$0, $key, $value, resultContinuation) {
|
|
2687
2990
|
var i = new LruCache$load$slambda_1(this$0, $key, $value, resultContinuation);
|
|
2688
2991
|
return constructCallableReference(function ($this$withContext, $completion) {
|
|
2689
|
-
return i.
|
|
2992
|
+
return i.e1g($this$withContext, $completion);
|
|
2690
2993
|
}, 1);
|
|
2691
2994
|
}
|
|
2692
2995
|
function $getCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
|
|
2693
2996
|
CoroutineImpl.call(this, resultContinuation);
|
|
2694
|
-
this.
|
|
2695
|
-
this.
|
|
2997
|
+
this.n1g_1 = _this__u8e3s4;
|
|
2998
|
+
this.o1g_1 = key;
|
|
2696
2999
|
}
|
|
2697
3000
|
protoOf($getCOROUTINE$).r7 = function () {
|
|
2698
3001
|
var suspendResult = this.l7_1;
|
|
@@ -2711,7 +3014,7 @@
|
|
|
2711
3014
|
}
|
|
2712
3015
|
|
|
2713
3016
|
this.j7_1 = 2;
|
|
2714
|
-
suspendResult = lookupOrClaim(this.
|
|
3017
|
+
suspendResult = lookupOrClaim(this.n1g_1, this.o1g_1, this);
|
|
2715
3018
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2716
3019
|
return suspendResult;
|
|
2717
3020
|
}
|
|
@@ -2720,11 +3023,11 @@
|
|
|
2720
3023
|
case 2:
|
|
2721
3024
|
var lookup = suspendResult;
|
|
2722
3025
|
if (lookup instanceof Hit) {
|
|
2723
|
-
return lookup.
|
|
3026
|
+
return lookup.t1d_1;
|
|
2724
3027
|
} else {
|
|
2725
3028
|
if (lookup instanceof Owner) {
|
|
2726
3029
|
this.j7_1 = 7;
|
|
2727
|
-
suspendResult = load(this.
|
|
3030
|
+
suspendResult = load(this.n1g_1, this.o1g_1, lookup.v1d_1, this);
|
|
2728
3031
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2729
3032
|
return suspendResult;
|
|
2730
3033
|
}
|
|
@@ -2733,7 +3036,7 @@
|
|
|
2733
3036
|
if (lookup instanceof Await) {
|
|
2734
3037
|
this.k7_1 = 4;
|
|
2735
3038
|
this.j7_1 = 3;
|
|
2736
|
-
suspendResult = lookup.
|
|
3039
|
+
suspendResult = lookup.u1d_1.fo(this);
|
|
2737
3040
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2738
3041
|
return suspendResult;
|
|
2739
3042
|
}
|
|
@@ -2785,8 +3088,8 @@
|
|
|
2785
3088
|
};
|
|
2786
3089
|
function $lookupOrClaimCOROUTINE$(_this__u8e3s4, key, resultContinuation) {
|
|
2787
3090
|
CoroutineImpl.call(this, resultContinuation);
|
|
2788
|
-
this.
|
|
2789
|
-
this.
|
|
3091
|
+
this.e1e_1 = _this__u8e3s4;
|
|
3092
|
+
this.f1e_1 = key;
|
|
2790
3093
|
}
|
|
2791
3094
|
protoOf($lookupOrClaimCOROUTINE$).r7 = function () {
|
|
2792
3095
|
var suspendResult = this.l7_1;
|
|
@@ -2796,10 +3099,10 @@
|
|
|
2796
3099
|
switch (tmp) {
|
|
2797
3100
|
case 0:
|
|
2798
3101
|
this.k7_1 = 2;
|
|
2799
|
-
this.
|
|
2800
|
-
this.
|
|
3102
|
+
this.h1e_1 = this.e1e_1.n1f_1;
|
|
3103
|
+
this.g1e_1 = null;
|
|
2801
3104
|
this.j7_1 = 1;
|
|
2802
|
-
suspendResult = this.
|
|
3105
|
+
suspendResult = this.h1e_1.qw(this.g1e_1, this);
|
|
2803
3106
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2804
3107
|
return suspendResult;
|
|
2805
3108
|
}
|
|
@@ -2812,22 +3115,22 @@
|
|
|
2812
3115
|
try {
|
|
2813
3116
|
var tmp$ret$0 = Unit_instance;
|
|
2814
3117
|
l$ret$1: do {
|
|
2815
|
-
var hit = this.
|
|
3118
|
+
var hit = this.e1e_1.o1f_1.w3(this.f1e_1);
|
|
2816
3119
|
if (!(hit == null)) {
|
|
2817
|
-
var tmp0 = this.
|
|
2818
|
-
var key = this.
|
|
3120
|
+
var tmp0 = this.e1e_1.o1f_1;
|
|
3121
|
+
var key = this.f1e_1;
|
|
2819
3122
|
tmp0.v3(key, hit);
|
|
2820
3123
|
tmp$ret$0 = new Hit(hit);
|
|
2821
3124
|
break l$ret$1;
|
|
2822
3125
|
}
|
|
2823
|
-
var raced = this.
|
|
3126
|
+
var raced = this.e1e_1.p1f_1.t1(this.f1e_1);
|
|
2824
3127
|
var tmp_1;
|
|
2825
3128
|
if (!(raced == null)) {
|
|
2826
3129
|
tmp_1 = new Await(raced);
|
|
2827
3130
|
} else {
|
|
2828
3131
|
var ours = CompletableDeferred();
|
|
2829
|
-
var tmp0_0 = this.
|
|
2830
|
-
var key_0 = this.
|
|
3132
|
+
var tmp0_0 = this.e1e_1.p1f_1;
|
|
3133
|
+
var key_0 = this.f1e_1;
|
|
2831
3134
|
tmp0_0.v3(key_0, ours);
|
|
2832
3135
|
tmp_1 = new Owner(ours);
|
|
2833
3136
|
}
|
|
@@ -2839,13 +3142,13 @@
|
|
|
2839
3142
|
} catch ($p) {
|
|
2840
3143
|
var tmp_2;
|
|
2841
3144
|
var t = $p;
|
|
2842
|
-
this.
|
|
3145
|
+
this.h1e_1.bw(this.g1e_1);
|
|
2843
3146
|
throw t;
|
|
2844
3147
|
}
|
|
2845
3148
|
}
|
|
2846
3149
|
while (false);
|
|
2847
3150
|
var tmp_3 = tmp$ret$2;
|
|
2848
|
-
this.
|
|
3151
|
+
this.h1e_1.bw(this.g1e_1);
|
|
2849
3152
|
return tmp_3;
|
|
2850
3153
|
case 2:
|
|
2851
3154
|
throw this.m7_1;
|
|
@@ -2863,9 +3166,9 @@
|
|
|
2863
3166
|
};
|
|
2864
3167
|
function $loadCOROUTINE$(_this__u8e3s4, key, ours, resultContinuation) {
|
|
2865
3168
|
CoroutineImpl.call(this, resultContinuation);
|
|
2866
|
-
this.
|
|
2867
|
-
this.
|
|
2868
|
-
this.
|
|
3169
|
+
this.q1e_1 = _this__u8e3s4;
|
|
3170
|
+
this.r1e_1 = key;
|
|
3171
|
+
this.s1e_1 = ours;
|
|
2869
3172
|
}
|
|
2870
3173
|
protoOf($loadCOROUTINE$).r7 = function () {
|
|
2871
3174
|
var suspendResult = this.l7_1;
|
|
@@ -2877,14 +3180,14 @@
|
|
|
2877
3180
|
this.k7_1 = 6;
|
|
2878
3181
|
this.k7_1 = 2;
|
|
2879
3182
|
this.j7_1 = 1;
|
|
2880
|
-
suspendResult = this.
|
|
3183
|
+
suspendResult = this.q1e_1.l1f_1(this.r1e_1, this);
|
|
2881
3184
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2882
3185
|
return suspendResult;
|
|
2883
3186
|
}
|
|
2884
3187
|
|
|
2885
3188
|
continue $sm;
|
|
2886
3189
|
case 1:
|
|
2887
|
-
this.
|
|
3190
|
+
this.u1e_1 = suspendResult;
|
|
2888
3191
|
this.k7_1 = 6;
|
|
2889
3192
|
this.j7_1 = 4;
|
|
2890
3193
|
continue $sm;
|
|
@@ -2892,10 +3195,10 @@
|
|
|
2892
3195
|
this.k7_1 = 6;
|
|
2893
3196
|
var tmp_0 = this.m7_1;
|
|
2894
3197
|
if (tmp_0 instanceof Error) {
|
|
2895
|
-
this.
|
|
3198
|
+
this.v1e_1 = this.m7_1;
|
|
2896
3199
|
this.j7_1 = 3;
|
|
2897
3200
|
var tmp_1 = NonCancellable_getInstance();
|
|
2898
|
-
suspendResult = withContext(tmp_1, LruCache$load$slambda_0(this.
|
|
3201
|
+
suspendResult = withContext(tmp_1, LruCache$load$slambda_0(this.q1e_1, this.r1e_1, null), this);
|
|
2899
3202
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2900
3203
|
return suspendResult;
|
|
2901
3204
|
}
|
|
@@ -2906,22 +3209,22 @@
|
|
|
2906
3209
|
|
|
2907
3210
|
case 3:
|
|
2908
3211
|
var tmp_2;
|
|
2909
|
-
var tmp_3 = this.
|
|
3212
|
+
var tmp_3 = this.v1e_1;
|
|
2910
3213
|
if (tmp_3 instanceof CancellationException) {
|
|
2911
3214
|
tmp_2 = new LoadAbandoned();
|
|
2912
3215
|
} else {
|
|
2913
|
-
tmp_2 = this.
|
|
3216
|
+
tmp_2 = this.v1e_1;
|
|
2914
3217
|
}
|
|
2915
3218
|
|
|
2916
|
-
this.
|
|
3219
|
+
this.s1e_1.jr(tmp_2);
|
|
2917
3220
|
var tmp_4 = this;
|
|
2918
|
-
throw this.
|
|
3221
|
+
throw this.v1e_1;
|
|
2919
3222
|
case 4:
|
|
2920
3223
|
this.k7_1 = 6;
|
|
2921
|
-
this.
|
|
3224
|
+
this.t1e_1 = this.u1e_1;
|
|
2922
3225
|
this.j7_1 = 5;
|
|
2923
3226
|
var tmp_5 = NonCancellable_getInstance();
|
|
2924
|
-
suspendResult = withContext(tmp_5, LruCache$load$slambda_2(this.
|
|
3227
|
+
suspendResult = withContext(tmp_5, LruCache$load$slambda_2(this.q1e_1, this.r1e_1, this.t1e_1, null), this);
|
|
2925
3228
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2926
3229
|
return suspendResult;
|
|
2927
3230
|
}
|
|
@@ -2929,16 +3232,16 @@
|
|
|
2929
3232
|
continue $sm;
|
|
2930
3233
|
case 5:
|
|
2931
3234
|
var evicted = suspendResult;
|
|
2932
|
-
this.
|
|
3235
|
+
this.s1e_1.ir(this.t1e_1);
|
|
2933
3236
|
if (!(evicted == null)) {
|
|
2934
|
-
var tmp0_safe_receiver = this.
|
|
3237
|
+
var tmp0_safe_receiver = this.q1e_1.m1f_1;
|
|
2935
3238
|
if (tmp0_safe_receiver == null)
|
|
2936
3239
|
null;
|
|
2937
3240
|
else
|
|
2938
3241
|
tmp0_safe_receiver(evicted);
|
|
2939
3242
|
}
|
|
2940
3243
|
|
|
2941
|
-
return this.
|
|
3244
|
+
return this.t1e_1;
|
|
2942
3245
|
case 6:
|
|
2943
3246
|
throw this.m7_1;
|
|
2944
3247
|
}
|
|
@@ -2955,33 +3258,33 @@
|
|
|
2955
3258
|
};
|
|
2956
3259
|
function LruCache(maxSize, loader, onEvict) {
|
|
2957
3260
|
onEvict = onEvict === VOID ? null : onEvict;
|
|
2958
|
-
this.
|
|
2959
|
-
this.
|
|
2960
|
-
this.
|
|
3261
|
+
this.k1f_1 = maxSize;
|
|
3262
|
+
this.l1f_1 = loader;
|
|
3263
|
+
this.m1f_1 = onEvict;
|
|
2961
3264
|
// Inline function 'kotlin.require' call
|
|
2962
|
-
if (!(this.
|
|
3265
|
+
if (!(this.k1f_1 > 0)) {
|
|
2963
3266
|
var message = 'Cache size must be greater than 0';
|
|
2964
3267
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2965
3268
|
}
|
|
2966
|
-
this.
|
|
2967
|
-
this.
|
|
3269
|
+
this.n1f_1 = Mutex();
|
|
3270
|
+
this.o1f_1 = LinkedHashMap_init_$Create$();
|
|
2968
3271
|
var tmp = this;
|
|
2969
3272
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2970
|
-
tmp.
|
|
3273
|
+
tmp.p1f_1 = LinkedHashMap_init_$Create$();
|
|
2971
3274
|
}
|
|
2972
|
-
protoOf(LruCache).
|
|
3275
|
+
protoOf(LruCache).p1g = function (key, $completion) {
|
|
2973
3276
|
var tmp = new $getCOROUTINE$(this, key, $completion);
|
|
2974
3277
|
tmp.l7_1 = Unit_instance;
|
|
2975
3278
|
tmp.m7_1 = null;
|
|
2976
3279
|
return tmp.r7();
|
|
2977
3280
|
};
|
|
2978
3281
|
function RawTile(width, height, rgba) {
|
|
2979
|
-
this.
|
|
2980
|
-
this.
|
|
2981
|
-
this.
|
|
3282
|
+
this.q1g_1 = width;
|
|
3283
|
+
this.r1g_1 = height;
|
|
3284
|
+
this.s1g_1 = rgba;
|
|
2982
3285
|
// Inline function 'kotlin.require' call
|
|
2983
|
-
if (!(this.
|
|
2984
|
-
var message = 'rgba size ' + this.
|
|
3286
|
+
if (!(this.s1g_1.length === imul(imul(this.q1g_1, this.r1g_1), 4))) {
|
|
3287
|
+
var message = 'rgba size ' + this.s1g_1.length + ' does not match width*height*4 (' + imul(imul(this.q1g_1, this.r1g_1), 4) + ')';
|
|
2985
3288
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2986
3289
|
}
|
|
2987
3290
|
}
|
|
@@ -2990,72 +3293,233 @@
|
|
|
2990
3293
|
return true;
|
|
2991
3294
|
if (!(other instanceof RawTile))
|
|
2992
3295
|
return false;
|
|
2993
|
-
return this.
|
|
3296
|
+
return this.q1g_1 === other.q1g_1 && this.r1g_1 === other.r1g_1 && contentEquals(this.s1g_1, other.s1g_1);
|
|
2994
3297
|
};
|
|
2995
3298
|
protoOf(RawTile).hashCode = function () {
|
|
2996
|
-
var result = this.
|
|
2997
|
-
result = imul(31, result) + this.
|
|
2998
|
-
result = imul(31, result) + contentHashCode(this.
|
|
3299
|
+
var result = this.q1g_1;
|
|
3300
|
+
result = imul(31, result) + this.r1g_1 | 0;
|
|
3301
|
+
result = imul(31, result) + contentHashCode(this.s1g_1) | 0;
|
|
2999
3302
|
return result;
|
|
3000
3303
|
};
|
|
3304
|
+
function TerrainSample(latitude, longitude, elevation, origin, afterError) {
|
|
3305
|
+
this.i19_1 = latitude;
|
|
3306
|
+
this.j19_1 = longitude;
|
|
3307
|
+
this.k19_1 = elevation;
|
|
3308
|
+
this.l19_1 = origin;
|
|
3309
|
+
this.m19_1 = afterError;
|
|
3310
|
+
}
|
|
3311
|
+
protoOf(TerrainSample).t1g = function (latitude, longitude, elevation, origin, afterError) {
|
|
3312
|
+
return new TerrainSample(latitude, longitude, elevation, origin, afterError);
|
|
3313
|
+
};
|
|
3314
|
+
protoOf(TerrainSample).n19 = function (latitude, longitude, elevation, origin, afterError, $super) {
|
|
3315
|
+
latitude = latitude === VOID ? this.i19_1 : latitude;
|
|
3316
|
+
longitude = longitude === VOID ? this.j19_1 : longitude;
|
|
3317
|
+
elevation = elevation === VOID ? this.k19_1 : elevation;
|
|
3318
|
+
origin = origin === VOID ? this.l19_1 : origin;
|
|
3319
|
+
afterError = afterError === VOID ? this.m19_1 : afterError;
|
|
3320
|
+
return $super === VOID ? this.t1g(latitude, longitude, elevation, origin, afterError) : $super.t1g.call(this, latitude, longitude, elevation, origin, afterError);
|
|
3321
|
+
};
|
|
3322
|
+
protoOf(TerrainSample).toString = function () {
|
|
3323
|
+
return 'TerrainSample(latitude=' + this.i19_1 + ', longitude=' + this.j19_1 + ', elevation=' + this.k19_1 + ', origin=' + this.l19_1.toString() + ', afterError=' + this.m19_1 + ')';
|
|
3324
|
+
};
|
|
3325
|
+
protoOf(TerrainSample).hashCode = function () {
|
|
3326
|
+
var result = getNumberHashCode(this.i19_1);
|
|
3327
|
+
result = imul(result, 31) + getNumberHashCode(this.j19_1) | 0;
|
|
3328
|
+
result = imul(result, 31) + getNumberHashCode(this.k19_1) | 0;
|
|
3329
|
+
result = imul(result, 31) + this.l19_1.hashCode() | 0;
|
|
3330
|
+
result = imul(result, 31) + getBooleanHashCode(this.m19_1) | 0;
|
|
3331
|
+
return result;
|
|
3332
|
+
};
|
|
3333
|
+
protoOf(TerrainSample).equals = function (other) {
|
|
3334
|
+
if (this === other)
|
|
3335
|
+
return true;
|
|
3336
|
+
if (!(other instanceof TerrainSample))
|
|
3337
|
+
return false;
|
|
3338
|
+
if (!equals(this.i19_1, other.i19_1))
|
|
3339
|
+
return false;
|
|
3340
|
+
if (!equals(this.j19_1, other.j19_1))
|
|
3341
|
+
return false;
|
|
3342
|
+
if (!equals(this.k19_1, other.k19_1))
|
|
3343
|
+
return false;
|
|
3344
|
+
if (!this.l19_1.equals(other.l19_1))
|
|
3345
|
+
return false;
|
|
3346
|
+
if (!(this.m19_1 === other.m19_1))
|
|
3347
|
+
return false;
|
|
3348
|
+
return true;
|
|
3349
|
+
};
|
|
3350
|
+
var static_init_called_2;
|
|
3351
|
+
function static_init_2() {
|
|
3352
|
+
if (static_init_called_2)
|
|
3353
|
+
return Unit_instance;
|
|
3354
|
+
static_init_called_2 = true;
|
|
3355
|
+
TerrainOrigin_IGN_LIDAR_HD_instance = new TerrainOrigin('IGN_LIDAR_HD', 0, 'ign-lidar-hd', true);
|
|
3356
|
+
TerrainOrigin_MAPTERHORN_MEASURED_instance = new TerrainOrigin('MAPTERHORN_MEASURED', 1, 'mapterhorn-measured', true);
|
|
3357
|
+
TerrainOrigin_MAPTERHORN_instance = new TerrainOrigin('MAPTERHORN', 2, 'mapterhorn', false);
|
|
3358
|
+
TerrainOrigin_OTHER_instance = new TerrainOrigin('OTHER', 3, 'other', false);
|
|
3359
|
+
TerrainOrigin_NONE_instance = new TerrainOrigin('NONE', 4, 'none', false);
|
|
3360
|
+
if (Companion_instance_1 == null) {
|
|
3361
|
+
Companion_instance;
|
|
3362
|
+
new Companion_0();
|
|
3363
|
+
}
|
|
3364
|
+
}
|
|
3365
|
+
var TerrainOrigin_IGN_LIDAR_HD_instance;
|
|
3366
|
+
var TerrainOrigin_MAPTERHORN_MEASURED_instance;
|
|
3367
|
+
var TerrainOrigin_MAPTERHORN_instance;
|
|
3368
|
+
var TerrainOrigin_OTHER_instance;
|
|
3369
|
+
var TerrainOrigin_NONE_instance;
|
|
3370
|
+
function Companion_0() {
|
|
3371
|
+
Companion_instance_1 = this;
|
|
3372
|
+
var tmp = this;
|
|
3373
|
+
// Inline function 'kotlin.collections.map' call
|
|
3374
|
+
var this_0 = get_entries_1();
|
|
3375
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
3376
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3377
|
+
var _iterator__ex2g4s = this_0.l();
|
|
3378
|
+
while (_iterator__ex2g4s.m()) {
|
|
3379
|
+
var item = _iterator__ex2g4s.n();
|
|
3380
|
+
var tmp$ret$2 = item.w1g_1;
|
|
3381
|
+
destination.k(tmp$ret$2);
|
|
3382
|
+
}
|
|
3383
|
+
tmp.g19_1 = destination;
|
|
3384
|
+
}
|
|
3385
|
+
protoOf(Companion_0).h19 = function (config, latitude, longitude) {
|
|
3386
|
+
var template = config.b19_1;
|
|
3387
|
+
var tmp;
|
|
3388
|
+
var tmp0 = get_entries_0();
|
|
3389
|
+
var tmp$ret$0;
|
|
3390
|
+
$l$block_0: {
|
|
3391
|
+
// Inline function 'kotlin.collections.any' call
|
|
3392
|
+
var tmp_0;
|
|
3393
|
+
if (isInterface(tmp0, Collection)) {
|
|
3394
|
+
tmp_0 = tmp0.r();
|
|
3395
|
+
} else {
|
|
3396
|
+
tmp_0 = false;
|
|
3397
|
+
}
|
|
3398
|
+
if (tmp_0) {
|
|
3399
|
+
tmp$ret$0 = false;
|
|
3400
|
+
break $l$block_0;
|
|
3401
|
+
}
|
|
3402
|
+
var _iterator__ex2g4s = tmp0.l();
|
|
3403
|
+
while (_iterator__ex2g4s.m()) {
|
|
3404
|
+
var element = _iterator__ex2g4s.n();
|
|
3405
|
+
if (element.m1b(config.z18_1).b19_1 === template) {
|
|
3406
|
+
tmp$ret$0 = true;
|
|
3407
|
+
break $l$block_0;
|
|
3408
|
+
}
|
|
3409
|
+
}
|
|
3410
|
+
tmp$ret$0 = false;
|
|
3411
|
+
}
|
|
3412
|
+
if (tmp$ret$0) {
|
|
3413
|
+
tmp = TerrainOrigin_IGN_LIDAR_HD_getInstance();
|
|
3414
|
+
} else {
|
|
3415
|
+
if (template === ElevationSource_MAPTERHORN_getInstance().m1b(config.z18_1).b19_1) {
|
|
3416
|
+
tmp = IgnLidarHdCoverage_getInstance().f1d(latitude, longitude) ? TerrainOrigin_MAPTERHORN_MEASURED_getInstance() : TerrainOrigin_MAPTERHORN_getInstance();
|
|
3417
|
+
} else {
|
|
3418
|
+
tmp = TerrainOrigin_OTHER_getInstance();
|
|
3419
|
+
}
|
|
3420
|
+
}
|
|
3421
|
+
return tmp;
|
|
3422
|
+
};
|
|
3423
|
+
var Companion_instance_1;
|
|
3424
|
+
function Companion_getInstance_1() {
|
|
3425
|
+
static_init_2();
|
|
3426
|
+
return Companion_instance_1;
|
|
3427
|
+
}
|
|
3428
|
+
function values_1() {
|
|
3429
|
+
static_init_2();
|
|
3430
|
+
return [TerrainOrigin_IGN_LIDAR_HD_getInstance(), TerrainOrigin_MAPTERHORN_MEASURED_getInstance(), TerrainOrigin_MAPTERHORN_getInstance(), TerrainOrigin_OTHER_getInstance(), TerrainOrigin_NONE_getInstance()];
|
|
3431
|
+
}
|
|
3432
|
+
function get_entries_1() {
|
|
3433
|
+
static_init_2();
|
|
3434
|
+
if ($ENTRIES_1 == null)
|
|
3435
|
+
$ENTRIES_1 = enumEntries(values_1());
|
|
3436
|
+
return $ENTRIES_1;
|
|
3437
|
+
}
|
|
3438
|
+
var $ENTRIES_1;
|
|
3439
|
+
function TerrainOrigin(name, ordinal, id, measured) {
|
|
3440
|
+
Enum.call(this, name, ordinal);
|
|
3441
|
+
this.w1g_1 = id;
|
|
3442
|
+
this.x1g_1 = measured;
|
|
3443
|
+
}
|
|
3444
|
+
function TerrainOrigin_IGN_LIDAR_HD_getInstance() {
|
|
3445
|
+
static_init_2();
|
|
3446
|
+
return TerrainOrigin_IGN_LIDAR_HD_instance;
|
|
3447
|
+
}
|
|
3448
|
+
function TerrainOrigin_MAPTERHORN_MEASURED_getInstance() {
|
|
3449
|
+
static_init_2();
|
|
3450
|
+
return TerrainOrigin_MAPTERHORN_MEASURED_instance;
|
|
3451
|
+
}
|
|
3452
|
+
function TerrainOrigin_MAPTERHORN_getInstance() {
|
|
3453
|
+
static_init_2();
|
|
3454
|
+
return TerrainOrigin_MAPTERHORN_instance;
|
|
3455
|
+
}
|
|
3456
|
+
function TerrainOrigin_OTHER_getInstance() {
|
|
3457
|
+
static_init_2();
|
|
3458
|
+
return TerrainOrigin_OTHER_instance;
|
|
3459
|
+
}
|
|
3460
|
+
function TerrainOrigin_NONE_getInstance() {
|
|
3461
|
+
static_init_2();
|
|
3462
|
+
return TerrainOrigin_NONE_instance;
|
|
3463
|
+
}
|
|
3001
3464
|
function Tile_init_$Init$(raw, $this) {
|
|
3002
|
-
Tile.call($this, raw.
|
|
3465
|
+
Tile.call($this, raw.q1g_1, raw.r1g_1, raw.s1g_1);
|
|
3003
3466
|
return $this;
|
|
3004
3467
|
}
|
|
3005
3468
|
function Tile_init_$Create$(raw) {
|
|
3006
3469
|
return Tile_init_$Init$(raw, objectCreate(protoOf(Tile)));
|
|
3007
3470
|
}
|
|
3008
|
-
function
|
|
3471
|
+
function Companion_1() {
|
|
3009
3472
|
}
|
|
3010
|
-
protoOf(
|
|
3473
|
+
protoOf(Companion_1).y1g = function (r, g, b) {
|
|
3011
3474
|
var raw = r * 256.0 + g + b / 256.0 - 32768.0;
|
|
3012
3475
|
return round(raw * 100.0) / 100.0;
|
|
3013
3476
|
};
|
|
3014
|
-
var
|
|
3015
|
-
function
|
|
3016
|
-
return
|
|
3477
|
+
var Companion_instance_2;
|
|
3478
|
+
function Companion_getInstance_2() {
|
|
3479
|
+
return Companion_instance_2;
|
|
3017
3480
|
}
|
|
3018
3481
|
function Tile(width, height, rgba) {
|
|
3019
|
-
this.
|
|
3020
|
-
this.
|
|
3021
|
-
this.
|
|
3482
|
+
this.c16_1 = width;
|
|
3483
|
+
this.d16_1 = height;
|
|
3484
|
+
this.e16_1 = rgba;
|
|
3485
|
+
this.f16_1 = false;
|
|
3022
3486
|
var tmp = this;
|
|
3023
3487
|
var tmp_0 = 0;
|
|
3024
|
-
var tmp_1 = imul(this.
|
|
3488
|
+
var tmp_1 = imul(this.c16_1, this.d16_1);
|
|
3025
3489
|
var tmp_2 = new Float64Array(tmp_1);
|
|
3026
3490
|
while (tmp_0 < tmp_1) {
|
|
3027
3491
|
tmp_2[tmp_0] = NaN;
|
|
3028
3492
|
tmp_0 = tmp_0 + 1 | 0;
|
|
3029
3493
|
}
|
|
3030
|
-
tmp.
|
|
3031
|
-
this.
|
|
3494
|
+
tmp.g16_1 = tmp_2;
|
|
3495
|
+
this.h16_1 = 0;
|
|
3032
3496
|
}
|
|
3033
|
-
protoOf(Tile).
|
|
3034
|
-
var containsUpper = this.
|
|
3035
|
-
var containsArg = pixel.
|
|
3497
|
+
protoOf(Tile).i16 = function (pixel) {
|
|
3498
|
+
var containsUpper = this.c16_1;
|
|
3499
|
+
var containsArg = pixel.v15_1;
|
|
3036
3500
|
// Inline function 'kotlin.require' call
|
|
3037
3501
|
if (!(0 <= containsArg ? containsArg < containsUpper : false)) {
|
|
3038
|
-
var message = 'Invalid x position: ' + pixel.
|
|
3502
|
+
var message = 'Invalid x position: ' + pixel.v15_1 + '. Must be between 0 and ' + (this.c16_1 - 1 | 0);
|
|
3039
3503
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3040
3504
|
}
|
|
3041
|
-
var containsUpper_0 = this.
|
|
3042
|
-
var containsArg_0 = pixel.
|
|
3505
|
+
var containsUpper_0 = this.d16_1;
|
|
3506
|
+
var containsArg_0 = pixel.w15_1;
|
|
3043
3507
|
// Inline function 'kotlin.require' call
|
|
3044
3508
|
if (!(0 <= containsArg_0 ? containsArg_0 < containsUpper_0 : false)) {
|
|
3045
|
-
var message_0 = 'Invalid y position: ' + pixel.
|
|
3509
|
+
var message_0 = 'Invalid y position: ' + pixel.w15_1 + '. Must be between 0 and ' + (this.d16_1 - 1 | 0);
|
|
3046
3510
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
3047
3511
|
}
|
|
3048
|
-
var idx = imul(pixel.
|
|
3049
|
-
var cached = this.
|
|
3512
|
+
var idx = imul(pixel.w15_1, this.c16_1) + pixel.v15_1 | 0;
|
|
3513
|
+
var cached = this.g16_1[idx];
|
|
3050
3514
|
if (!isNaN_0(cached))
|
|
3051
3515
|
return cached;
|
|
3052
3516
|
var byteOffset = imul(idx, 4);
|
|
3053
|
-
var r = this.
|
|
3054
|
-
var g = this.
|
|
3055
|
-
var b = this.
|
|
3056
|
-
var elevation = r === 0 && g === 0 && b === 0 ? NaN :
|
|
3057
|
-
this.
|
|
3058
|
-
this.
|
|
3517
|
+
var r = this.e16_1[byteOffset] & 255;
|
|
3518
|
+
var g = this.e16_1[byteOffset + 1 | 0] & 255;
|
|
3519
|
+
var b = this.e16_1[byteOffset + 2 | 0] & 255;
|
|
3520
|
+
var elevation = r === 0 && g === 0 && b === 0 ? NaN : Companion_instance_2.y1g(r, g, b);
|
|
3521
|
+
this.g16_1[idx] = elevation;
|
|
3522
|
+
this.h16_1 = this.h16_1 + 1 | 0;
|
|
3059
3523
|
return elevation;
|
|
3060
3524
|
};
|
|
3061
3525
|
function UnreadableTiles$Companion$monotonicClock$lambda($origin) {
|
|
@@ -3064,33 +3528,36 @@
|
|
|
3064
3528
|
};
|
|
3065
3529
|
}
|
|
3066
3530
|
function Entry(failure, untilMs) {
|
|
3067
|
-
this.
|
|
3068
|
-
this.
|
|
3531
|
+
this.z1g_1 = failure;
|
|
3532
|
+
this.a1h_1 = untilMs;
|
|
3069
3533
|
}
|
|
3070
3534
|
function _get_empty__hz710c($this) {
|
|
3071
|
-
var tmp0 = $this.
|
|
3535
|
+
var tmp0 = $this.h1h_1;
|
|
3072
3536
|
var tmp = KProperty1;
|
|
3073
3537
|
// Inline function 'kotlin.getValue' call
|
|
3074
3538
|
getPropertyCallableRef('empty', 1, tmp, UnreadableTiles$_get_empty_$ref_9kivqt(), null);
|
|
3075
3539
|
return tmp0.q1();
|
|
3076
3540
|
}
|
|
3077
|
-
function
|
|
3078
|
-
|
|
3079
|
-
this.
|
|
3541
|
+
function Companion_2() {
|
|
3542
|
+
Companion_instance_3 = this;
|
|
3543
|
+
this.i1h_1 = new Long(60000, 0);
|
|
3080
3544
|
var tmp = this;
|
|
3081
3545
|
// Inline function 'kotlin.let' call
|
|
3082
3546
|
var origin = Monotonic_instance.wb();
|
|
3083
|
-
tmp.
|
|
3547
|
+
tmp.j1h_1 = UnreadableTiles$Companion$monotonicClock$lambda(origin);
|
|
3084
3548
|
}
|
|
3085
|
-
var
|
|
3086
|
-
function
|
|
3087
|
-
if (
|
|
3088
|
-
new
|
|
3089
|
-
return
|
|
3549
|
+
var Companion_instance_3;
|
|
3550
|
+
function Companion_getInstance_3() {
|
|
3551
|
+
if (Companion_instance_3 == null)
|
|
3552
|
+
new Companion_2();
|
|
3553
|
+
return Companion_instance_3;
|
|
3090
3554
|
}
|
|
3091
3555
|
function UnreadableTiles$empty$delegate$lambda(this$0) {
|
|
3092
3556
|
return function () {
|
|
3093
|
-
|
|
3557
|
+
// Inline function 'kotlin.also' call
|
|
3558
|
+
var this_0 = Tile_init_$Create$(noDataTile(this$0.c1h_1));
|
|
3559
|
+
this_0.f16_1 = true;
|
|
3560
|
+
return this_0;
|
|
3094
3561
|
};
|
|
3095
3562
|
}
|
|
3096
3563
|
function UnreadableTiles$_get_empty_$ref_9kivqt() {
|
|
@@ -3100,8 +3567,8 @@
|
|
|
3100
3567
|
}
|
|
3101
3568
|
function $cachedCOROUTINE$(_this__u8e3s4, tc, resultContinuation) {
|
|
3102
3569
|
CoroutineImpl.call(this, resultContinuation);
|
|
3103
|
-
this.
|
|
3104
|
-
this.
|
|
3570
|
+
this.s1h_1 = _this__u8e3s4;
|
|
3571
|
+
this.t1h_1 = tc;
|
|
3105
3572
|
}
|
|
3106
3573
|
protoOf($cachedCOROUTINE$).r7 = function () {
|
|
3107
3574
|
var suspendResult = this.l7_1;
|
|
@@ -3111,10 +3578,10 @@
|
|
|
3111
3578
|
switch (tmp) {
|
|
3112
3579
|
case 0:
|
|
3113
3580
|
this.k7_1 = 4;
|
|
3114
|
-
this.
|
|
3115
|
-
this.
|
|
3581
|
+
this.w1h_1 = this.s1h_1.f1h_1;
|
|
3582
|
+
this.v1h_1 = null;
|
|
3116
3583
|
this.j7_1 = 1;
|
|
3117
|
-
suspendResult = this.
|
|
3584
|
+
suspendResult = this.w1h_1.qw(this.v1h_1, this);
|
|
3118
3585
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3119
3586
|
return suspendResult;
|
|
3120
3587
|
}
|
|
@@ -3127,7 +3594,7 @@
|
|
|
3127
3594
|
l$ret$1: do {
|
|
3128
3595
|
var tmp_0;
|
|
3129
3596
|
try {
|
|
3130
|
-
var tmp0_elvis_lhs = this.
|
|
3597
|
+
var tmp0_elvis_lhs = this.s1h_1.g1h_1.t1(this.t1h_1);
|
|
3131
3598
|
var tmp_1;
|
|
3132
3599
|
if (tmp0_elvis_lhs == null) {
|
|
3133
3600
|
tmp$ret$0 = null;
|
|
@@ -3136,8 +3603,8 @@
|
|
|
3136
3603
|
tmp_1 = tmp0_elvis_lhs;
|
|
3137
3604
|
}
|
|
3138
3605
|
var e = tmp_1;
|
|
3139
|
-
if (compare(this.
|
|
3140
|
-
this.
|
|
3606
|
+
if (compare(this.s1h_1.e1h_1(), e.a1h_1) >= 0) {
|
|
3607
|
+
this.s1h_1.g1h_1.w3(this.t1h_1);
|
|
3141
3608
|
tmp$ret$0 = null;
|
|
3142
3609
|
break l$ret$1;
|
|
3143
3610
|
}
|
|
@@ -3146,27 +3613,27 @@
|
|
|
3146
3613
|
} catch ($p) {
|
|
3147
3614
|
var tmp_2;
|
|
3148
3615
|
var t = $p;
|
|
3149
|
-
this.
|
|
3616
|
+
this.w1h_1.bw(this.v1h_1);
|
|
3150
3617
|
throw t;
|
|
3151
3618
|
}
|
|
3152
3619
|
}
|
|
3153
3620
|
while (false);
|
|
3154
3621
|
var tmp_3 = tmp$ret$0;
|
|
3155
|
-
this.
|
|
3622
|
+
this.w1h_1.bw(this.v1h_1);
|
|
3156
3623
|
return tmp_3;
|
|
3157
3624
|
}
|
|
3158
3625
|
while (false);
|
|
3159
3626
|
var tmp_4 = tmp$ret$2;
|
|
3160
|
-
this.
|
|
3627
|
+
this.w1h_1.bw(this.v1h_1);
|
|
3161
3628
|
var entry = tmp_4;
|
|
3162
3629
|
var tmp0_safe_receiver = this.p7().w7(Key_instance);
|
|
3163
3630
|
if (tmp0_safe_receiver == null) {
|
|
3164
|
-
this.
|
|
3631
|
+
this.u1h_1 = null;
|
|
3165
3632
|
this.j7_1 = 3;
|
|
3166
3633
|
continue $sm;
|
|
3167
3634
|
} else {
|
|
3168
3635
|
this.j7_1 = 2;
|
|
3169
|
-
suspendResult = tmp0_safe_receiver.
|
|
3636
|
+
suspendResult = tmp0_safe_receiver.a1i(entry.z1g_1, this);
|
|
3170
3637
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3171
3638
|
return suspendResult;
|
|
3172
3639
|
}
|
|
@@ -3175,11 +3642,11 @@
|
|
|
3175
3642
|
|
|
3176
3643
|
case 2:
|
|
3177
3644
|
var tmp_5 = this;
|
|
3178
|
-
tmp_5.
|
|
3645
|
+
tmp_5.u1h_1 = Unit_instance;
|
|
3179
3646
|
this.j7_1 = 3;
|
|
3180
3647
|
continue $sm;
|
|
3181
3648
|
case 3:
|
|
3182
|
-
return _get_empty__hz710c(this.
|
|
3649
|
+
return _get_empty__hz710c(this.s1h_1);
|
|
3183
3650
|
case 4:
|
|
3184
3651
|
throw this.m7_1;
|
|
3185
3652
|
}
|
|
@@ -3196,9 +3663,9 @@
|
|
|
3196
3663
|
};
|
|
3197
3664
|
function $rememberCOROUTINE$(_this__u8e3s4, tc, error, resultContinuation) {
|
|
3198
3665
|
CoroutineImpl.call(this, resultContinuation);
|
|
3199
|
-
this.
|
|
3200
|
-
this.
|
|
3201
|
-
this.
|
|
3666
|
+
this.j1i_1 = _this__u8e3s4;
|
|
3667
|
+
this.k1i_1 = tc;
|
|
3668
|
+
this.l1i_1 = error;
|
|
3202
3669
|
}
|
|
3203
3670
|
protoOf($rememberCOROUTINE$).r7 = function () {
|
|
3204
3671
|
var suspendResult = this.l7_1;
|
|
@@ -3209,13 +3676,13 @@
|
|
|
3209
3676
|
case 0:
|
|
3210
3677
|
this.k7_1 = 4;
|
|
3211
3678
|
var tmp_0 = this;
|
|
3212
|
-
var tmp0_elvis_lhs = this.
|
|
3213
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? getKClassFromExpression(this.
|
|
3214
|
-
tmp_0.
|
|
3215
|
-
this.
|
|
3216
|
-
this.
|
|
3679
|
+
var tmp0_elvis_lhs = this.l1i_1.message;
|
|
3680
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? getKClassFromExpression(this.l1i_1).t8() : tmp0_elvis_lhs;
|
|
3681
|
+
tmp_0.n1i_1 = new TileFailure(this.j1i_1.b1h_1, this.k1i_1, tmp1_elvis_lhs == null ? 'error' : tmp1_elvis_lhs);
|
|
3682
|
+
this.p1i_1 = this.j1i_1.f1h_1;
|
|
3683
|
+
this.o1i_1 = null;
|
|
3217
3684
|
this.j7_1 = 1;
|
|
3218
|
-
suspendResult = this.
|
|
3685
|
+
suspendResult = this.p1i_1.qw(this.o1i_1, this);
|
|
3219
3686
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3220
3687
|
return suspendResult;
|
|
3221
3688
|
}
|
|
@@ -3225,28 +3692,28 @@
|
|
|
3225
3692
|
l$ret$1: do {
|
|
3226
3693
|
var tmp_1;
|
|
3227
3694
|
try {
|
|
3228
|
-
var tmp0 = this.
|
|
3229
|
-
var tmp2 = this.
|
|
3230
|
-
var value = new Entry(this.
|
|
3695
|
+
var tmp0 = this.j1i_1.g1h_1;
|
|
3696
|
+
var tmp2 = this.k1i_1;
|
|
3697
|
+
var value = new Entry(this.n1i_1, add(this.j1i_1.e1h_1(), this.j1i_1.d1h_1));
|
|
3231
3698
|
tmp0.v3(tmp2, value);
|
|
3232
3699
|
break l$ret$1;
|
|
3233
3700
|
} catch ($p) {
|
|
3234
3701
|
var tmp_2;
|
|
3235
3702
|
var t = $p;
|
|
3236
|
-
this.
|
|
3703
|
+
this.p1i_1.bw(this.o1i_1);
|
|
3237
3704
|
throw t;
|
|
3238
3705
|
}
|
|
3239
3706
|
}
|
|
3240
3707
|
while (false);
|
|
3241
|
-
this.
|
|
3708
|
+
this.p1i_1.bw(this.o1i_1);
|
|
3242
3709
|
var tmp2_safe_receiver = this.p7().w7(Key_instance);
|
|
3243
3710
|
if (tmp2_safe_receiver == null) {
|
|
3244
|
-
this.
|
|
3711
|
+
this.m1i_1 = null;
|
|
3245
3712
|
this.j7_1 = 3;
|
|
3246
3713
|
continue $sm;
|
|
3247
3714
|
} else {
|
|
3248
3715
|
this.j7_1 = 2;
|
|
3249
|
-
suspendResult = tmp2_safe_receiver.
|
|
3716
|
+
suspendResult = tmp2_safe_receiver.a1i(this.n1i_1, this);
|
|
3250
3717
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3251
3718
|
return suspendResult;
|
|
3252
3719
|
}
|
|
@@ -3255,11 +3722,11 @@
|
|
|
3255
3722
|
|
|
3256
3723
|
case 2:
|
|
3257
3724
|
var tmp_3 = this;
|
|
3258
|
-
tmp_3.
|
|
3725
|
+
tmp_3.m1i_1 = Unit_instance;
|
|
3259
3726
|
this.j7_1 = 3;
|
|
3260
3727
|
continue $sm;
|
|
3261
3728
|
case 3:
|
|
3262
|
-
return _get_empty__hz710c(this.
|
|
3729
|
+
return _get_empty__hz710c(this.j1i_1);
|
|
3263
3730
|
case 4:
|
|
3264
3731
|
throw this.m7_1;
|
|
3265
3732
|
}
|
|
@@ -3275,42 +3742,42 @@
|
|
|
3275
3742
|
while (true);
|
|
3276
3743
|
};
|
|
3277
3744
|
function UnreadableTiles(urlTemplate, tileSize, retryAfterMs, now) {
|
|
3278
|
-
|
|
3745
|
+
Companion_getInstance_3();
|
|
3279
3746
|
retryAfterMs = retryAfterMs === VOID ? new Long(60000, 0) : retryAfterMs;
|
|
3280
|
-
now = now === VOID ?
|
|
3281
|
-
this.
|
|
3282
|
-
this.
|
|
3283
|
-
this.
|
|
3284
|
-
this.
|
|
3285
|
-
this.
|
|
3286
|
-
this.
|
|
3747
|
+
now = now === VOID ? Companion_getInstance_3().j1h_1 : now;
|
|
3748
|
+
this.b1h_1 = urlTemplate;
|
|
3749
|
+
this.c1h_1 = tileSize;
|
|
3750
|
+
this.d1h_1 = retryAfterMs;
|
|
3751
|
+
this.e1h_1 = now;
|
|
3752
|
+
this.f1h_1 = Mutex();
|
|
3753
|
+
this.g1h_1 = HashMap_init_$Create$();
|
|
3287
3754
|
var tmp = this;
|
|
3288
|
-
tmp.
|
|
3755
|
+
tmp.h1h_1 = lazy(UnreadableTiles$empty$delegate$lambda(this));
|
|
3289
3756
|
}
|
|
3290
|
-
protoOf(UnreadableTiles).
|
|
3757
|
+
protoOf(UnreadableTiles).q1i = function (tc, $completion) {
|
|
3291
3758
|
var tmp = new $cachedCOROUTINE$(this, tc, $completion);
|
|
3292
3759
|
tmp.l7_1 = Unit_instance;
|
|
3293
3760
|
tmp.m7_1 = null;
|
|
3294
3761
|
return tmp.r7();
|
|
3295
3762
|
};
|
|
3296
|
-
protoOf(UnreadableTiles).
|
|
3763
|
+
protoOf(UnreadableTiles).r1i = function (tc, error, $completion) {
|
|
3297
3764
|
var tmp = new $rememberCOROUTINE$(this, tc, error, $completion);
|
|
3298
3765
|
tmp.l7_1 = Unit_instance;
|
|
3299
3766
|
tmp.m7_1 = null;
|
|
3300
3767
|
return tmp.r7();
|
|
3301
3768
|
};
|
|
3302
3769
|
function TileFailure(urlTemplate, tile, message) {
|
|
3303
|
-
this.
|
|
3304
|
-
this.
|
|
3305
|
-
this.
|
|
3770
|
+
this.s1i_1 = urlTemplate;
|
|
3771
|
+
this.t1i_1 = tile;
|
|
3772
|
+
this.u1i_1 = message;
|
|
3306
3773
|
}
|
|
3307
3774
|
protoOf(TileFailure).toString = function () {
|
|
3308
|
-
return 'TileFailure(urlTemplate=' + this.
|
|
3775
|
+
return 'TileFailure(urlTemplate=' + this.s1i_1 + ', tile=' + this.t1i_1.toString() + ', message=' + this.u1i_1 + ')';
|
|
3309
3776
|
};
|
|
3310
3777
|
protoOf(TileFailure).hashCode = function () {
|
|
3311
|
-
var result = getStringHashCode(this.
|
|
3312
|
-
result = imul(result, 31) + this.
|
|
3313
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3778
|
+
var result = getStringHashCode(this.s1i_1);
|
|
3779
|
+
result = imul(result, 31) + this.t1i_1.hashCode() | 0;
|
|
3780
|
+
result = imul(result, 31) + getStringHashCode(this.u1i_1) | 0;
|
|
3314
3781
|
return result;
|
|
3315
3782
|
};
|
|
3316
3783
|
protoOf(TileFailure).equals = function (other) {
|
|
@@ -3318,11 +3785,11 @@
|
|
|
3318
3785
|
return true;
|
|
3319
3786
|
if (!(other instanceof TileFailure))
|
|
3320
3787
|
return false;
|
|
3321
|
-
if (!(this.
|
|
3788
|
+
if (!(this.s1i_1 === other.s1i_1))
|
|
3322
3789
|
return false;
|
|
3323
|
-
if (!this.
|
|
3790
|
+
if (!this.t1i_1.equals(other.t1i_1))
|
|
3324
3791
|
return false;
|
|
3325
|
-
if (!(this.
|
|
3792
|
+
if (!(this.u1i_1 === other.u1i_1))
|
|
3326
3793
|
return false;
|
|
3327
3794
|
return true;
|
|
3328
3795
|
};
|
|
@@ -3334,8 +3801,8 @@
|
|
|
3334
3801
|
}
|
|
3335
3802
|
function $recordCOROUTINE$(_this__u8e3s4, failure, resultContinuation) {
|
|
3336
3803
|
CoroutineImpl.call(this, resultContinuation);
|
|
3337
|
-
this.
|
|
3338
|
-
this.
|
|
3804
|
+
this.d1j_1 = _this__u8e3s4;
|
|
3805
|
+
this.e1j_1 = failure;
|
|
3339
3806
|
}
|
|
3340
3807
|
protoOf($recordCOROUTINE$).r7 = function () {
|
|
3341
3808
|
var suspendResult = this.l7_1;
|
|
@@ -3345,10 +3812,10 @@
|
|
|
3345
3812
|
switch (tmp) {
|
|
3346
3813
|
case 0:
|
|
3347
3814
|
this.k7_1 = 2;
|
|
3348
|
-
this.
|
|
3349
|
-
this.
|
|
3815
|
+
this.g1j_1 = this.d1j_1.y1h_1;
|
|
3816
|
+
this.f1j_1 = null;
|
|
3350
3817
|
this.j7_1 = 1;
|
|
3351
|
-
suspendResult = this.
|
|
3818
|
+
suspendResult = this.g1j_1.qw(this.f1j_1, this);
|
|
3352
3819
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3353
3820
|
return suspendResult;
|
|
3354
3821
|
}
|
|
@@ -3358,12 +3825,12 @@
|
|
|
3358
3825
|
l$ret$1: do {
|
|
3359
3826
|
var tmp_0;
|
|
3360
3827
|
try {
|
|
3361
|
-
var tmp0 = this.
|
|
3362
|
-
var key = this.
|
|
3828
|
+
var tmp0 = this.d1j_1.z1h_1;
|
|
3829
|
+
var key = this.e1j_1.s1i_1 + '|' + this.e1j_1.t1i_1.toString();
|
|
3363
3830
|
var value = tmp0.t1(key);
|
|
3364
3831
|
var tmp_1;
|
|
3365
3832
|
if (value == null) {
|
|
3366
|
-
var answer = this.
|
|
3833
|
+
var answer = this.e1j_1;
|
|
3367
3834
|
tmp0.v3(key, answer);
|
|
3368
3835
|
tmp_1 = answer;
|
|
3369
3836
|
} else {
|
|
@@ -3373,12 +3840,12 @@
|
|
|
3373
3840
|
} catch ($p) {
|
|
3374
3841
|
var tmp_2;
|
|
3375
3842
|
var t = $p;
|
|
3376
|
-
this.
|
|
3843
|
+
this.g1j_1.bw(this.f1j_1);
|
|
3377
3844
|
throw t;
|
|
3378
3845
|
}
|
|
3379
3846
|
}
|
|
3380
3847
|
while (false);
|
|
3381
|
-
this.
|
|
3848
|
+
this.g1j_1.bw(this.f1j_1);
|
|
3382
3849
|
return Unit_instance;
|
|
3383
3850
|
case 2:
|
|
3384
3851
|
throw this.m7_1;
|
|
@@ -3396,44 +3863,44 @@
|
|
|
3396
3863
|
};
|
|
3397
3864
|
function TileFailureLog() {
|
|
3398
3865
|
AbstractCoroutineContextElement.call(this, Key_instance);
|
|
3399
|
-
this.
|
|
3400
|
-
this.
|
|
3866
|
+
this.y1h_1 = Mutex();
|
|
3867
|
+
this.z1h_1 = LinkedHashMap_init_$Create$();
|
|
3401
3868
|
}
|
|
3402
|
-
protoOf(TileFailureLog).
|
|
3869
|
+
protoOf(TileFailureLog).a1i = function (failure, $completion) {
|
|
3403
3870
|
var tmp = new $recordCOROUTINE$(this, failure, $completion);
|
|
3404
3871
|
tmp.l7_1 = Unit_instance;
|
|
3405
3872
|
tmp.m7_1 = null;
|
|
3406
3873
|
return tmp.r7();
|
|
3407
3874
|
};
|
|
3408
|
-
protoOf(TileFailureLog).
|
|
3409
|
-
return toList_0(this.
|
|
3875
|
+
protoOf(TileFailureLog).h1j = function () {
|
|
3876
|
+
return toList_0(this.z1h_1.v1());
|
|
3410
3877
|
};
|
|
3411
3878
|
function buildUrl($this, tc) {
|
|
3412
3879
|
// Inline function 'kotlin.let' call
|
|
3413
|
-
var it = replace(replace(replace($this.
|
|
3880
|
+
var it = replace(replace(replace($this.x15_1, '{z}', tc.n11_1.toString()), '{x}', tc.l11_1.toString()), '{y}', tc.m11_1.toString());
|
|
3414
3881
|
return contains(it, '{bbox}') ? replace(it, '{bbox}', wmsBbox4326(tc)) : it;
|
|
3415
3882
|
}
|
|
3416
3883
|
function fetchAndDecodeTile$ref_0() {
|
|
3417
3884
|
KFunctionImpl.call(this, 1, 2, 2);
|
|
3418
3885
|
}
|
|
3419
|
-
protoOf(fetchAndDecodeTile$ref_0).
|
|
3886
|
+
protoOf(fetchAndDecodeTile$ref_0).z19 = function (p0, $completion) {
|
|
3420
3887
|
return fetchAndDecodeTile(p0, $completion);
|
|
3421
3888
|
};
|
|
3422
3889
|
protoOf(fetchAndDecodeTile$ref_0).z7 = function (p1, $completion) {
|
|
3423
|
-
return this.
|
|
3890
|
+
return this.z19((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
3424
3891
|
};
|
|
3425
3892
|
function TileManager$cache$slambda(this$0, resultContinuation) {
|
|
3426
|
-
this.
|
|
3893
|
+
this.t1j_1 = this$0;
|
|
3427
3894
|
CoroutineImpl.call(this, resultContinuation);
|
|
3428
3895
|
}
|
|
3429
|
-
protoOf(TileManager$cache$slambda).
|
|
3430
|
-
var tmp = this.
|
|
3896
|
+
protoOf(TileManager$cache$slambda).v1j = function (tc, $completion) {
|
|
3897
|
+
var tmp = this.w1j(tc, $completion);
|
|
3431
3898
|
tmp.l7_1 = Unit_instance;
|
|
3432
3899
|
tmp.m7_1 = null;
|
|
3433
3900
|
return tmp.r7();
|
|
3434
3901
|
};
|
|
3435
3902
|
protoOf(TileManager$cache$slambda).z7 = function (p1, $completion) {
|
|
3436
|
-
return this.
|
|
3903
|
+
return this.v1j(p1 instanceof TileCoordinates ? p1 : THROW_CCE(), $completion);
|
|
3437
3904
|
};
|
|
3438
3905
|
protoOf(TileManager$cache$slambda).r7 = function () {
|
|
3439
3906
|
var suspendResult = this.l7_1;
|
|
@@ -3444,7 +3911,7 @@
|
|
|
3444
3911
|
case 0:
|
|
3445
3912
|
this.k7_1 = 2;
|
|
3446
3913
|
this.j7_1 = 1;
|
|
3447
|
-
suspendResult = this.
|
|
3914
|
+
suspendResult = this.t1j_1.y15_1(buildUrl(this.t1j_1, this.u1j_1), this);
|
|
3448
3915
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3449
3916
|
return suspendResult;
|
|
3450
3917
|
}
|
|
@@ -3467,21 +3934,21 @@
|
|
|
3467
3934
|
}
|
|
3468
3935
|
while (true);
|
|
3469
3936
|
};
|
|
3470
|
-
protoOf(TileManager$cache$slambda).
|
|
3471
|
-
var i = new TileManager$cache$slambda(this.
|
|
3472
|
-
i.
|
|
3937
|
+
protoOf(TileManager$cache$slambda).w1j = function (tc, completion) {
|
|
3938
|
+
var i = new TileManager$cache$slambda(this.t1j_1, completion);
|
|
3939
|
+
i.u1j_1 = tc;
|
|
3473
3940
|
return i;
|
|
3474
3941
|
};
|
|
3475
3942
|
function TileManager$cache$slambda_0(this$0, resultContinuation) {
|
|
3476
3943
|
var i = new TileManager$cache$slambda(this$0, resultContinuation);
|
|
3477
3944
|
return constructCallableReference(function (tc, $completion) {
|
|
3478
|
-
return i.
|
|
3945
|
+
return i.v1j(tc, $completion);
|
|
3479
3946
|
}, 1);
|
|
3480
3947
|
}
|
|
3481
3948
|
function $getTileCOROUTINE$(_this__u8e3s4, tileCoords, resultContinuation) {
|
|
3482
3949
|
CoroutineImpl.call(this, resultContinuation);
|
|
3483
|
-
this.
|
|
3484
|
-
this.
|
|
3950
|
+
this.f1k_1 = _this__u8e3s4;
|
|
3951
|
+
this.g1k_1 = tileCoords;
|
|
3485
3952
|
}
|
|
3486
3953
|
protoOf($getTileCOROUTINE$).r7 = function () {
|
|
3487
3954
|
var suspendResult = this.l7_1;
|
|
@@ -3491,16 +3958,16 @@
|
|
|
3491
3958
|
switch (tmp) {
|
|
3492
3959
|
case 0:
|
|
3493
3960
|
this.k7_1 = 8;
|
|
3494
|
-
var tmp0_elvis_lhs = this.
|
|
3961
|
+
var tmp0_elvis_lhs = this.f1k_1.z15_1;
|
|
3495
3962
|
if (tmp0_elvis_lhs == null) {
|
|
3496
3963
|
this.j7_1 = 1;
|
|
3497
|
-
suspendResult = this.
|
|
3964
|
+
suspendResult = this.f1k_1.a16_1.p1g(this.g1k_1, this);
|
|
3498
3965
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3499
3966
|
return suspendResult;
|
|
3500
3967
|
}
|
|
3501
3968
|
continue $sm;
|
|
3502
3969
|
} else {
|
|
3503
|
-
this.
|
|
3970
|
+
this.j1k_1 = tmp0_elvis_lhs;
|
|
3504
3971
|
this.j7_1 = 2;
|
|
3505
3972
|
continue $sm;
|
|
3506
3973
|
}
|
|
@@ -3509,9 +3976,9 @@
|
|
|
3509
3976
|
var tmp_0 = this;
|
|
3510
3977
|
return suspendResult;
|
|
3511
3978
|
case 2:
|
|
3512
|
-
this.
|
|
3979
|
+
this.i1k_1 = this.j1k_1;
|
|
3513
3980
|
this.j7_1 = 3;
|
|
3514
|
-
suspendResult = this.
|
|
3981
|
+
suspendResult = this.i1k_1.q1i(this.g1k_1, this);
|
|
3515
3982
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3516
3983
|
return suspendResult;
|
|
3517
3984
|
}
|
|
@@ -3527,14 +3994,14 @@
|
|
|
3527
3994
|
|
|
3528
3995
|
this.k7_1 = 5;
|
|
3529
3996
|
this.j7_1 = 4;
|
|
3530
|
-
suspendResult = this.
|
|
3997
|
+
suspendResult = this.f1k_1.a16_1.p1g(this.g1k_1, this);
|
|
3531
3998
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3532
3999
|
return suspendResult;
|
|
3533
4000
|
}
|
|
3534
4001
|
|
|
3535
4002
|
continue $sm;
|
|
3536
4003
|
case 4:
|
|
3537
|
-
this.
|
|
4004
|
+
this.h1k_1 = suspendResult;
|
|
3538
4005
|
this.k7_1 = 8;
|
|
3539
4006
|
this.j7_1 = 7;
|
|
3540
4007
|
continue $sm;
|
|
@@ -3551,7 +4018,7 @@
|
|
|
3551
4018
|
var e_0 = this.m7_1;
|
|
3552
4019
|
ensureActive(this.p7());
|
|
3553
4020
|
this.j7_1 = 6;
|
|
3554
|
-
suspendResult = this.
|
|
4021
|
+
suspendResult = this.i1k_1.r1i(this.g1k_1, e_0, this);
|
|
3555
4022
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3556
4023
|
return suspendResult;
|
|
3557
4024
|
}
|
|
@@ -3562,12 +4029,12 @@
|
|
|
3562
4029
|
}
|
|
3563
4030
|
|
|
3564
4031
|
case 6:
|
|
3565
|
-
this.
|
|
4032
|
+
this.h1k_1 = suspendResult;
|
|
3566
4033
|
this.j7_1 = 7;
|
|
3567
4034
|
continue $sm;
|
|
3568
4035
|
case 7:
|
|
3569
4036
|
this.k7_1 = 8;
|
|
3570
|
-
return this.
|
|
4037
|
+
return this.h1k_1;
|
|
3571
4038
|
case 8:
|
|
3572
4039
|
throw this.m7_1;
|
|
3573
4040
|
}
|
|
@@ -3590,13 +4057,13 @@
|
|
|
3590
4057
|
tmp = fetcher;
|
|
3591
4058
|
}
|
|
3592
4059
|
fetcher = tmp;
|
|
3593
|
-
this.
|
|
3594
|
-
this.
|
|
3595
|
-
this.
|
|
4060
|
+
this.x15_1 = urlTemplate;
|
|
4061
|
+
this.y15_1 = fetcher;
|
|
4062
|
+
this.z15_1 = null;
|
|
3596
4063
|
var tmp_0 = this;
|
|
3597
|
-
tmp_0.
|
|
4064
|
+
tmp_0.a16_1 = new LruCache(cacheSize, TileManager$cache$slambda_0(this, null));
|
|
3598
4065
|
}
|
|
3599
|
-
protoOf(TileManager).
|
|
4066
|
+
protoOf(TileManager).b16 = function (tileCoords, $completion) {
|
|
3600
4067
|
var tmp = new $getTileCOROUTINE$(this, tileCoords, $completion);
|
|
3601
4068
|
tmp.l7_1 = Unit_instance;
|
|
3602
4069
|
tmp.m7_1 = null;
|
|
@@ -3639,13 +4106,13 @@
|
|
|
3639
4106
|
retryAfterSeconds = retryAfterSeconds === VOID ? null : retryAfterSeconds;
|
|
3640
4107
|
IllegalStateException_init_$Init$('Tile fetch failed for ' + url + ': HTTP ' + status, this);
|
|
3641
4108
|
captureStack(this, TileFetchException);
|
|
3642
|
-
this.
|
|
3643
|
-
this.
|
|
3644
|
-
this.
|
|
4109
|
+
this.k1k_1 = url;
|
|
4110
|
+
this.l1k_1 = status;
|
|
4111
|
+
this.m1k_1 = retryAfterSeconds;
|
|
3645
4112
|
}
|
|
3646
4113
|
function $awaitTurnCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
3647
4114
|
CoroutineImpl.call(this, resultContinuation);
|
|
3648
|
-
this.
|
|
4115
|
+
this.v1k_1 = _this__u8e3s4;
|
|
3649
4116
|
}
|
|
3650
4117
|
protoOf($awaitTurnCOROUTINE$).r7 = function () {
|
|
3651
4118
|
var suspendResult = this.l7_1;
|
|
@@ -3655,10 +4122,10 @@
|
|
|
3655
4122
|
switch (tmp) {
|
|
3656
4123
|
case 0:
|
|
3657
4124
|
this.k7_1 = 4;
|
|
3658
|
-
this.
|
|
3659
|
-
this.
|
|
4125
|
+
this.x1k_1 = this.v1k_1.a1l_1;
|
|
4126
|
+
this.w1k_1 = null;
|
|
3660
4127
|
this.j7_1 = 1;
|
|
3661
|
-
suspendResult = this.
|
|
4128
|
+
suspendResult = this.x1k_1.qw(this.w1k_1, this);
|
|
3662
4129
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3663
4130
|
return suspendResult;
|
|
3664
4131
|
}
|
|
@@ -3669,22 +4136,22 @@
|
|
|
3669
4136
|
l$ret$1: do {
|
|
3670
4137
|
var tmp_0;
|
|
3671
4138
|
try {
|
|
3672
|
-
var t = toNumber(this.
|
|
3673
|
-
var b = this.
|
|
4139
|
+
var t = toNumber(this.v1k_1.y1k_1());
|
|
4140
|
+
var b = this.v1k_1.b1l_1;
|
|
3674
4141
|
var slot = Math.max(t, b);
|
|
3675
|
-
this.
|
|
4142
|
+
this.v1k_1.b1l_1 = slot + this.v1k_1.z1k_1;
|
|
3676
4143
|
tmp$ret$0 = slot - t;
|
|
3677
4144
|
break l$ret$1;
|
|
3678
4145
|
} catch ($p) {
|
|
3679
4146
|
var tmp_1;
|
|
3680
4147
|
var t_0 = $p;
|
|
3681
|
-
this.
|
|
4148
|
+
this.x1k_1.bw(this.w1k_1);
|
|
3682
4149
|
throw t_0;
|
|
3683
4150
|
}
|
|
3684
4151
|
}
|
|
3685
4152
|
while (false);
|
|
3686
4153
|
var tmp_2 = tmp$ret$0;
|
|
3687
|
-
this.
|
|
4154
|
+
this.x1k_1.bw(this.w1k_1);
|
|
3688
4155
|
var waitMs = tmp_2;
|
|
3689
4156
|
if (waitMs > 0) {
|
|
3690
4157
|
this.j7_1 = 2;
|
|
@@ -3718,29 +4185,29 @@
|
|
|
3718
4185
|
while (true);
|
|
3719
4186
|
};
|
|
3720
4187
|
function RequestPacer(perSecond, now) {
|
|
3721
|
-
this.
|
|
3722
|
-
this.
|
|
3723
|
-
this.
|
|
3724
|
-
this.
|
|
4188
|
+
this.y1k_1 = now;
|
|
4189
|
+
this.z1k_1 = 1000.0 / perSecond;
|
|
4190
|
+
this.a1l_1 = Mutex();
|
|
4191
|
+
this.b1l_1 = -Infinity;
|
|
3725
4192
|
}
|
|
3726
|
-
protoOf(RequestPacer).
|
|
4193
|
+
protoOf(RequestPacer).c1l = function ($completion) {
|
|
3727
4194
|
var tmp = new $awaitTurnCOROUTINE$(this, $completion);
|
|
3728
4195
|
tmp.l7_1 = Unit_instance;
|
|
3729
4196
|
tmp.m7_1 = null;
|
|
3730
4197
|
return tmp.r7();
|
|
3731
4198
|
};
|
|
3732
4199
|
function Key_0(host, perSecond, clock) {
|
|
3733
|
-
this.
|
|
3734
|
-
this.
|
|
3735
|
-
this.
|
|
4200
|
+
this.d1l_1 = host;
|
|
4201
|
+
this.e1l_1 = perSecond;
|
|
4202
|
+
this.f1l_1 = clock;
|
|
3736
4203
|
}
|
|
3737
4204
|
protoOf(Key_0).toString = function () {
|
|
3738
|
-
return 'Key(host=' + this.
|
|
4205
|
+
return 'Key(host=' + this.d1l_1 + ', perSecond=' + this.e1l_1 + ', clock=' + toString(this.f1l_1) + ')';
|
|
3739
4206
|
};
|
|
3740
4207
|
protoOf(Key_0).hashCode = function () {
|
|
3741
|
-
var result = getStringHashCode(this.
|
|
3742
|
-
result = imul(result, 31) + this.
|
|
3743
|
-
result = imul(result, 31) + hashCode(this.
|
|
4208
|
+
var result = getStringHashCode(this.d1l_1);
|
|
4209
|
+
result = imul(result, 31) + this.e1l_1 | 0;
|
|
4210
|
+
result = imul(result, 31) + hashCode(this.f1l_1) | 0;
|
|
3744
4211
|
return result;
|
|
3745
4212
|
};
|
|
3746
4213
|
protoOf(Key_0).equals = function (other) {
|
|
@@ -3748,20 +4215,20 @@
|
|
|
3748
4215
|
return true;
|
|
3749
4216
|
if (!(other instanceof Key_0))
|
|
3750
4217
|
return false;
|
|
3751
|
-
if (!(this.
|
|
4218
|
+
if (!(this.d1l_1 === other.d1l_1))
|
|
3752
4219
|
return false;
|
|
3753
|
-
if (!(this.
|
|
4220
|
+
if (!(this.e1l_1 === other.e1l_1))
|
|
3754
4221
|
return false;
|
|
3755
|
-
if (!equals(this.
|
|
4222
|
+
if (!equals(this.f1l_1, other.f1l_1))
|
|
3756
4223
|
return false;
|
|
3757
4224
|
return true;
|
|
3758
4225
|
};
|
|
3759
4226
|
function $ofCOROUTINE$(_this__u8e3s4, host, perSecond, clock, resultContinuation) {
|
|
3760
4227
|
CoroutineImpl.call(this, resultContinuation);
|
|
3761
|
-
this.
|
|
3762
|
-
this.
|
|
3763
|
-
this.
|
|
3764
|
-
this.
|
|
4228
|
+
this.o1l_1 = _this__u8e3s4;
|
|
4229
|
+
this.p1l_1 = host;
|
|
4230
|
+
this.q1l_1 = perSecond;
|
|
4231
|
+
this.r1l_1 = clock;
|
|
3765
4232
|
}
|
|
3766
4233
|
protoOf($ofCOROUTINE$).r7 = function () {
|
|
3767
4234
|
var suspendResult = this.l7_1;
|
|
@@ -3771,10 +4238,10 @@
|
|
|
3771
4238
|
switch (tmp) {
|
|
3772
4239
|
case 0:
|
|
3773
4240
|
this.k7_1 = 2;
|
|
3774
|
-
this.
|
|
3775
|
-
this.
|
|
4241
|
+
this.t1l_1 = this.o1l_1.u1l_1;
|
|
4242
|
+
this.s1l_1 = null;
|
|
3776
4243
|
this.j7_1 = 1;
|
|
3777
|
-
suspendResult = this.
|
|
4244
|
+
suspendResult = this.t1l_1.qw(this.s1l_1, this);
|
|
3778
4245
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3779
4246
|
return suspendResult;
|
|
3780
4247
|
}
|
|
@@ -3785,12 +4252,12 @@
|
|
|
3785
4252
|
l$ret$1: do {
|
|
3786
4253
|
var tmp_0;
|
|
3787
4254
|
try {
|
|
3788
|
-
var tmp0 = HostPacers_getInstance().
|
|
3789
|
-
var key = new Key_0(this.
|
|
4255
|
+
var tmp0 = HostPacers_getInstance().v1l_1;
|
|
4256
|
+
var key = new Key_0(this.p1l_1, this.q1l_1, this.r1l_1);
|
|
3790
4257
|
var value = tmp0.t1(key);
|
|
3791
4258
|
var tmp_1;
|
|
3792
4259
|
if (value == null) {
|
|
3793
|
-
var answer = new RequestPacer(this.
|
|
4260
|
+
var answer = new RequestPacer(this.q1l_1, this.r1l_1);
|
|
3794
4261
|
tmp0.v3(key, answer);
|
|
3795
4262
|
tmp_1 = answer;
|
|
3796
4263
|
} else {
|
|
@@ -3801,13 +4268,13 @@
|
|
|
3801
4268
|
} catch ($p) {
|
|
3802
4269
|
var tmp_2;
|
|
3803
4270
|
var t = $p;
|
|
3804
|
-
this.
|
|
4271
|
+
this.t1l_1.bw(this.s1l_1);
|
|
3805
4272
|
throw t;
|
|
3806
4273
|
}
|
|
3807
4274
|
}
|
|
3808
4275
|
while (false);
|
|
3809
4276
|
var tmp_3 = tmp$ret$0;
|
|
3810
|
-
this.
|
|
4277
|
+
this.t1l_1.bw(this.s1l_1);
|
|
3811
4278
|
return tmp_3;
|
|
3812
4279
|
case 2:
|
|
3813
4280
|
throw this.m7_1;
|
|
@@ -3825,10 +4292,10 @@
|
|
|
3825
4292
|
};
|
|
3826
4293
|
function HostPacers() {
|
|
3827
4294
|
HostPacers_instance = this;
|
|
3828
|
-
this.
|
|
3829
|
-
this.
|
|
4295
|
+
this.u1l_1 = Mutex();
|
|
4296
|
+
this.v1l_1 = HashMap_init_$Create$();
|
|
3830
4297
|
}
|
|
3831
|
-
protoOf(HostPacers).
|
|
4298
|
+
protoOf(HostPacers).w1l = function (host, perSecond, clock, $completion) {
|
|
3832
4299
|
var tmp = new $ofCOROUTINE$(this, host, perSecond, clock, $completion);
|
|
3833
4300
|
tmp.l7_1 = Unit_instance;
|
|
3834
4301
|
tmp.m7_1 = null;
|
|
@@ -3852,27 +4319,27 @@
|
|
|
3852
4319
|
function fetchTileBytes$ref() {
|
|
3853
4320
|
KFunctionImpl.call(this, 1, 2, 5);
|
|
3854
4321
|
}
|
|
3855
|
-
protoOf(fetchTileBytes$ref).
|
|
4322
|
+
protoOf(fetchTileBytes$ref).a1m = function (p0, $completion) {
|
|
3856
4323
|
return fetchTileBytes(p0, $completion);
|
|
3857
4324
|
};
|
|
3858
4325
|
protoOf(fetchTileBytes$ref).z7 = function (p1, $completion) {
|
|
3859
|
-
return this.
|
|
4326
|
+
return this.a1m((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
3860
4327
|
};
|
|
3861
4328
|
function pacedTileBytesFetcher$slambda($maxRequestsPerSecond, $now, $fetch, $maxAttempts, resultContinuation) {
|
|
3862
|
-
this.
|
|
3863
|
-
this.
|
|
3864
|
-
this.
|
|
3865
|
-
this.
|
|
4329
|
+
this.j1m_1 = $maxRequestsPerSecond;
|
|
4330
|
+
this.k1m_1 = $now;
|
|
4331
|
+
this.l1m_1 = $fetch;
|
|
4332
|
+
this.m1m_1 = $maxAttempts;
|
|
3866
4333
|
CoroutineImpl.call(this, resultContinuation);
|
|
3867
4334
|
}
|
|
3868
|
-
protoOf(pacedTileBytesFetcher$slambda).
|
|
3869
|
-
var tmp = this.
|
|
4335
|
+
protoOf(pacedTileBytesFetcher$slambda).a1m = function (url, $completion) {
|
|
4336
|
+
var tmp = this.k1a(url, $completion);
|
|
3870
4337
|
tmp.l7_1 = Unit_instance;
|
|
3871
4338
|
tmp.m7_1 = null;
|
|
3872
4339
|
return tmp.r7();
|
|
3873
4340
|
};
|
|
3874
4341
|
protoOf(pacedTileBytesFetcher$slambda).z7 = function (p1, $completion) {
|
|
3875
|
-
return this.
|
|
4342
|
+
return this.a1m((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
|
|
3876
4343
|
};
|
|
3877
4344
|
protoOf(pacedTileBytesFetcher$slambda).r7 = function () {
|
|
3878
4345
|
var suspendResult = this.l7_1;
|
|
@@ -3882,43 +4349,43 @@
|
|
|
3882
4349
|
switch (tmp) {
|
|
3883
4350
|
case 0:
|
|
3884
4351
|
this.k7_1 = 11;
|
|
3885
|
-
if (this.
|
|
4352
|
+
if (this.j1m_1 > 0) {
|
|
3886
4353
|
this.j7_1 = 1;
|
|
3887
|
-
suspendResult = HostPacers_getInstance().
|
|
4354
|
+
suspendResult = HostPacers_getInstance().w1l(hostOf(this.n1m_1), this.j1m_1, this.k1m_1, this);
|
|
3888
4355
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3889
4356
|
return suspendResult;
|
|
3890
4357
|
}
|
|
3891
4358
|
continue $sm;
|
|
3892
4359
|
} else {
|
|
3893
|
-
this.
|
|
4360
|
+
this.t1m_1 = null;
|
|
3894
4361
|
this.j7_1 = 2;
|
|
3895
4362
|
continue $sm;
|
|
3896
4363
|
}
|
|
3897
4364
|
|
|
3898
4365
|
case 1:
|
|
3899
|
-
this.
|
|
4366
|
+
this.t1m_1 = suspendResult;
|
|
3900
4367
|
this.j7_1 = 2;
|
|
3901
4368
|
continue $sm;
|
|
3902
4369
|
case 2:
|
|
3903
|
-
this.
|
|
3904
|
-
this.
|
|
3905
|
-
this.
|
|
4370
|
+
this.s1m_1 = this.t1m_1;
|
|
4371
|
+
this.q1m_1 = 1;
|
|
4372
|
+
this.o1m_1 = null;
|
|
3906
4373
|
this.j7_1 = 3;
|
|
3907
4374
|
continue $sm;
|
|
3908
4375
|
case 3:
|
|
3909
|
-
if (!(this.
|
|
4376
|
+
if (!(this.o1m_1 == null)) {
|
|
3910
4377
|
this.j7_1 = 10;
|
|
3911
4378
|
continue $sm;
|
|
3912
4379
|
}
|
|
3913
4380
|
|
|
3914
|
-
var tmp0_safe_receiver = this.
|
|
4381
|
+
var tmp0_safe_receiver = this.s1m_1;
|
|
3915
4382
|
if (tmp0_safe_receiver == null) {
|
|
3916
|
-
this.
|
|
4383
|
+
this.r1m_1 = null;
|
|
3917
4384
|
this.j7_1 = 5;
|
|
3918
4385
|
continue $sm;
|
|
3919
4386
|
} else {
|
|
3920
4387
|
this.j7_1 = 4;
|
|
3921
|
-
suspendResult = tmp0_safe_receiver.
|
|
4388
|
+
suspendResult = tmp0_safe_receiver.c1l(this);
|
|
3922
4389
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3923
4390
|
return suspendResult;
|
|
3924
4391
|
}
|
|
@@ -3927,13 +4394,13 @@
|
|
|
3927
4394
|
|
|
3928
4395
|
case 4:
|
|
3929
4396
|
var tmp_0 = this;
|
|
3930
|
-
tmp_0.
|
|
4397
|
+
tmp_0.r1m_1 = Unit_instance;
|
|
3931
4398
|
this.j7_1 = 5;
|
|
3932
4399
|
continue $sm;
|
|
3933
4400
|
case 5:
|
|
3934
4401
|
this.k7_1 = 7;
|
|
3935
4402
|
this.j7_1 = 6;
|
|
3936
|
-
suspendResult = this.
|
|
4403
|
+
suspendResult = this.l1m_1(this.n1m_1, this);
|
|
3937
4404
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3938
4405
|
return suspendResult;
|
|
3939
4406
|
}
|
|
@@ -3941,8 +4408,8 @@
|
|
|
3941
4408
|
continue $sm;
|
|
3942
4409
|
case 6:
|
|
3943
4410
|
var tmp_1 = this;
|
|
3944
|
-
this.
|
|
3945
|
-
tmp_1.
|
|
4411
|
+
this.o1m_1 = suspendResult;
|
|
4412
|
+
tmp_1.p1m_1 = Unit_instance;
|
|
3946
4413
|
this.k7_1 = 11;
|
|
3947
4414
|
this.j7_1 = 9;
|
|
3948
4415
|
continue $sm;
|
|
@@ -3951,11 +4418,11 @@
|
|
|
3951
4418
|
var tmp_2 = this.m7_1;
|
|
3952
4419
|
if (tmp_2 instanceof TileFetchException) {
|
|
3953
4420
|
var e = this.m7_1;
|
|
3954
|
-
if (!(e.
|
|
4421
|
+
if (!(e.l1k_1 === 429) && !(e.l1k_1 === 503) || this.q1m_1 >= this.m1m_1)
|
|
3955
4422
|
throw e;
|
|
3956
4423
|
this.j7_1 = 8;
|
|
3957
|
-
var tmp1_elvis_lhs = e.
|
|
3958
|
-
suspendResult = delay(multiply(tmp1_elvis_lhs == null ? shiftLeft(new Long(1, 0), this.
|
|
4424
|
+
var tmp1_elvis_lhs = e.m1k_1;
|
|
4425
|
+
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);
|
|
3959
4426
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3960
4427
|
return suspendResult;
|
|
3961
4428
|
}
|
|
@@ -3966,9 +4433,9 @@
|
|
|
3966
4433
|
|
|
3967
4434
|
case 8:
|
|
3968
4435
|
var tmp_3 = this;
|
|
3969
|
-
var _unary__edvuaz = this.
|
|
3970
|
-
this.
|
|
3971
|
-
tmp_3.
|
|
4436
|
+
var _unary__edvuaz = this.q1m_1;
|
|
4437
|
+
this.q1m_1 = _unary__edvuaz + 1 | 0;
|
|
4438
|
+
tmp_3.p1m_1 = _unary__edvuaz;
|
|
3972
4439
|
this.j7_1 = 9;
|
|
3973
4440
|
continue $sm;
|
|
3974
4441
|
case 9:
|
|
@@ -3976,7 +4443,7 @@
|
|
|
3976
4443
|
this.j7_1 = 3;
|
|
3977
4444
|
continue $sm;
|
|
3978
4445
|
case 10:
|
|
3979
|
-
return this.
|
|
4446
|
+
return this.o1m_1;
|
|
3980
4447
|
case 11:
|
|
3981
4448
|
throw this.m7_1;
|
|
3982
4449
|
}
|
|
@@ -3991,15 +4458,15 @@
|
|
|
3991
4458
|
}
|
|
3992
4459
|
while (true);
|
|
3993
4460
|
};
|
|
3994
|
-
protoOf(pacedTileBytesFetcher$slambda).
|
|
3995
|
-
var i = new pacedTileBytesFetcher$slambda(this.
|
|
3996
|
-
i.
|
|
4461
|
+
protoOf(pacedTileBytesFetcher$slambda).k1a = function (url, completion) {
|
|
4462
|
+
var i = new pacedTileBytesFetcher$slambda(this.j1m_1, this.k1m_1, this.l1m_1, this.m1m_1, completion);
|
|
4463
|
+
i.n1m_1 = url;
|
|
3997
4464
|
return i;
|
|
3998
4465
|
};
|
|
3999
4466
|
function pacedTileBytesFetcher$slambda_0($maxRequestsPerSecond, $now, $fetch, $maxAttempts, resultContinuation) {
|
|
4000
4467
|
var i = new pacedTileBytesFetcher$slambda($maxRequestsPerSecond, $now, $fetch, $maxAttempts, resultContinuation);
|
|
4001
4468
|
return constructCallableReference(function (url, $completion) {
|
|
4002
|
-
return i.
|
|
4469
|
+
return i.a1m(url, $completion);
|
|
4003
4470
|
}, 1);
|
|
4004
4471
|
}
|
|
4005
4472
|
var properties_initialized_TileRequestPacing_kt_zdwibl;
|
|
@@ -4012,7 +4479,7 @@
|
|
|
4012
4479
|
function tileCoordinatesOf(url, config) {
|
|
4013
4480
|
var names = ArrayList_init_$Create$();
|
|
4014
4481
|
var pattern = StringBuilder_init_$Create$();
|
|
4015
|
-
var rest = config.
|
|
4482
|
+
var rest = config.b19_1;
|
|
4016
4483
|
var placeholder = Regex_init_$Create$('\\{(z|x|y|bbox)\\}');
|
|
4017
4484
|
$l$loop: while (true) {
|
|
4018
4485
|
var tmp0_elvis_lhs = placeholder.ta(rest);
|
|
@@ -4034,7 +4501,7 @@
|
|
|
4034
4501
|
var tmp1_elvis_lhs = Regex_init_$Create$(pattern.toString()).ua(url);
|
|
4035
4502
|
var tmp_0;
|
|
4036
4503
|
if (tmp1_elvis_lhs == null) {
|
|
4037
|
-
throw IllegalArgumentException_init_$Create$('Tile URL ' + url + ' does not match the template ' + config.
|
|
4504
|
+
throw IllegalArgumentException_init_$Create$('Tile URL ' + url + ' does not match the template ' + config.b19_1);
|
|
4038
4505
|
} else {
|
|
4039
4506
|
tmp_0 = tmp1_elvis_lhs;
|
|
4040
4507
|
}
|
|
@@ -4042,7 +4509,7 @@
|
|
|
4042
4509
|
var values = toMap(zip(names, drop(match.kb(), 1)));
|
|
4043
4510
|
var tmp2_safe_receiver = values.t1('z');
|
|
4044
4511
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : toInt(tmp2_safe_receiver);
|
|
4045
|
-
var z = tmp3_elvis_lhs == null ? config.
|
|
4512
|
+
var z = tmp3_elvis_lhs == null ? config.z18_1 : tmp3_elvis_lhs;
|
|
4046
4513
|
var bbox = values.t1('bbox');
|
|
4047
4514
|
if (bbox == null)
|
|
4048
4515
|
return new TileCoordinates(toInt(getValue(values, 'x')), toInt(getValue(values, 'y')), z);
|
|
@@ -4073,17 +4540,17 @@
|
|
|
4073
4540
|
return new TileCoordinates(x, y, z);
|
|
4074
4541
|
}
|
|
4075
4542
|
function TileCoordinates(x, y, z) {
|
|
4076
|
-
this.
|
|
4077
|
-
this.
|
|
4078
|
-
this.
|
|
4543
|
+
this.l11_1 = x;
|
|
4544
|
+
this.m11_1 = y;
|
|
4545
|
+
this.n11_1 = z;
|
|
4079
4546
|
}
|
|
4080
4547
|
protoOf(TileCoordinates).toString = function () {
|
|
4081
|
-
return 'TileCoordinates(x=' + this.
|
|
4548
|
+
return 'TileCoordinates(x=' + this.l11_1 + ', y=' + this.m11_1 + ', z=' + this.n11_1 + ')';
|
|
4082
4549
|
};
|
|
4083
4550
|
protoOf(TileCoordinates).hashCode = function () {
|
|
4084
|
-
var result = this.
|
|
4085
|
-
result = imul(result, 31) + this.
|
|
4086
|
-
result = imul(result, 31) + this.
|
|
4551
|
+
var result = this.l11_1;
|
|
4552
|
+
result = imul(result, 31) + this.m11_1 | 0;
|
|
4553
|
+
result = imul(result, 31) + this.n11_1 | 0;
|
|
4087
4554
|
return result;
|
|
4088
4555
|
};
|
|
4089
4556
|
protoOf(TileCoordinates).equals = function (other) {
|
|
@@ -4091,26 +4558,26 @@
|
|
|
4091
4558
|
return true;
|
|
4092
4559
|
if (!(other instanceof TileCoordinates))
|
|
4093
4560
|
return false;
|
|
4094
|
-
if (!(this.
|
|
4561
|
+
if (!(this.l11_1 === other.l11_1))
|
|
4095
4562
|
return false;
|
|
4096
|
-
if (!(this.
|
|
4563
|
+
if (!(this.m11_1 === other.m11_1))
|
|
4097
4564
|
return false;
|
|
4098
|
-
if (!(this.
|
|
4565
|
+
if (!(this.n11_1 === other.n11_1))
|
|
4099
4566
|
return false;
|
|
4100
4567
|
return true;
|
|
4101
4568
|
};
|
|
4102
4569
|
function Pixel(tile, x, y) {
|
|
4103
|
-
this.
|
|
4104
|
-
this.
|
|
4105
|
-
this.
|
|
4570
|
+
this.u15_1 = tile;
|
|
4571
|
+
this.v15_1 = x;
|
|
4572
|
+
this.w15_1 = y;
|
|
4106
4573
|
}
|
|
4107
4574
|
protoOf(Pixel).toString = function () {
|
|
4108
|
-
return 'Pixel(tile=' + this.
|
|
4575
|
+
return 'Pixel(tile=' + this.u15_1.toString() + ', x=' + this.v15_1 + ', y=' + this.w15_1 + ')';
|
|
4109
4576
|
};
|
|
4110
4577
|
protoOf(Pixel).hashCode = function () {
|
|
4111
|
-
var result = this.
|
|
4112
|
-
result = imul(result, 31) + this.
|
|
4113
|
-
result = imul(result, 31) + this.
|
|
4578
|
+
var result = this.u15_1.hashCode();
|
|
4579
|
+
result = imul(result, 31) + this.v15_1 | 0;
|
|
4580
|
+
result = imul(result, 31) + this.w15_1 | 0;
|
|
4114
4581
|
return result;
|
|
4115
4582
|
};
|
|
4116
4583
|
protoOf(Pixel).equals = function (other) {
|
|
@@ -4118,30 +4585,30 @@
|
|
|
4118
4585
|
return true;
|
|
4119
4586
|
if (!(other instanceof Pixel))
|
|
4120
4587
|
return false;
|
|
4121
|
-
if (!this.
|
|
4588
|
+
if (!this.u15_1.equals(other.u15_1))
|
|
4122
4589
|
return false;
|
|
4123
|
-
if (!(this.
|
|
4590
|
+
if (!(this.v15_1 === other.v15_1))
|
|
4124
4591
|
return false;
|
|
4125
|
-
if (!(this.
|
|
4592
|
+
if (!(this.w15_1 === other.w15_1))
|
|
4126
4593
|
return false;
|
|
4127
4594
|
return true;
|
|
4128
4595
|
};
|
|
4129
4596
|
function TileCoordinatesFloat(x, y, xFloat, yFloat, z) {
|
|
4130
|
-
this.
|
|
4131
|
-
this.
|
|
4132
|
-
this.
|
|
4133
|
-
this.
|
|
4134
|
-
this.
|
|
4597
|
+
this.o16_1 = x;
|
|
4598
|
+
this.p16_1 = y;
|
|
4599
|
+
this.q16_1 = xFloat;
|
|
4600
|
+
this.r16_1 = yFloat;
|
|
4601
|
+
this.s16_1 = z;
|
|
4135
4602
|
}
|
|
4136
4603
|
protoOf(TileCoordinatesFloat).toString = function () {
|
|
4137
|
-
return 'TileCoordinatesFloat(x=' + this.
|
|
4604
|
+
return 'TileCoordinatesFloat(x=' + this.o16_1 + ', y=' + this.p16_1 + ', xFloat=' + this.q16_1 + ', yFloat=' + this.r16_1 + ', z=' + this.s16_1 + ')';
|
|
4138
4605
|
};
|
|
4139
4606
|
protoOf(TileCoordinatesFloat).hashCode = function () {
|
|
4140
|
-
var result = this.
|
|
4141
|
-
result = imul(result, 31) + this.
|
|
4142
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
4143
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
4144
|
-
result = imul(result, 31) + this.
|
|
4607
|
+
var result = this.o16_1;
|
|
4608
|
+
result = imul(result, 31) + this.p16_1 | 0;
|
|
4609
|
+
result = imul(result, 31) + getNumberHashCode(this.q16_1) | 0;
|
|
4610
|
+
result = imul(result, 31) + getNumberHashCode(this.r16_1) | 0;
|
|
4611
|
+
result = imul(result, 31) + this.s16_1 | 0;
|
|
4145
4612
|
return result;
|
|
4146
4613
|
};
|
|
4147
4614
|
protoOf(TileCoordinatesFloat).equals = function (other) {
|
|
@@ -4149,30 +4616,30 @@
|
|
|
4149
4616
|
return true;
|
|
4150
4617
|
if (!(other instanceof TileCoordinatesFloat))
|
|
4151
4618
|
return false;
|
|
4152
|
-
if (!(this.
|
|
4619
|
+
if (!(this.o16_1 === other.o16_1))
|
|
4153
4620
|
return false;
|
|
4154
|
-
if (!(this.
|
|
4621
|
+
if (!(this.p16_1 === other.p16_1))
|
|
4155
4622
|
return false;
|
|
4156
|
-
if (!equals(this.
|
|
4623
|
+
if (!equals(this.q16_1, other.q16_1))
|
|
4157
4624
|
return false;
|
|
4158
|
-
if (!equals(this.
|
|
4625
|
+
if (!equals(this.r16_1, other.r16_1))
|
|
4159
4626
|
return false;
|
|
4160
|
-
if (!(this.
|
|
4627
|
+
if (!(this.s16_1 === other.s16_1))
|
|
4161
4628
|
return false;
|
|
4162
4629
|
return true;
|
|
4163
4630
|
};
|
|
4164
4631
|
function PixelFloat(tile, x, y) {
|
|
4165
|
-
this.
|
|
4166
|
-
this.
|
|
4167
|
-
this.
|
|
4632
|
+
this.q15_1 = tile;
|
|
4633
|
+
this.r15_1 = x;
|
|
4634
|
+
this.s15_1 = y;
|
|
4168
4635
|
}
|
|
4169
4636
|
protoOf(PixelFloat).toString = function () {
|
|
4170
|
-
return 'PixelFloat(tile=' + this.
|
|
4637
|
+
return 'PixelFloat(tile=' + this.q15_1.toString() + ', x=' + this.r15_1 + ', y=' + this.s15_1 + ')';
|
|
4171
4638
|
};
|
|
4172
4639
|
protoOf(PixelFloat).hashCode = function () {
|
|
4173
|
-
var result = this.
|
|
4174
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
4175
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
4640
|
+
var result = this.q15_1.hashCode();
|
|
4641
|
+
result = imul(result, 31) + getNumberHashCode(this.r15_1) | 0;
|
|
4642
|
+
result = imul(result, 31) + getNumberHashCode(this.s15_1) | 0;
|
|
4176
4643
|
return result;
|
|
4177
4644
|
};
|
|
4178
4645
|
protoOf(PixelFloat).equals = function (other) {
|
|
@@ -4180,69 +4647,69 @@
|
|
|
4180
4647
|
return true;
|
|
4181
4648
|
if (!(other instanceof PixelFloat))
|
|
4182
4649
|
return false;
|
|
4183
|
-
if (!this.
|
|
4650
|
+
if (!this.q15_1.equals(other.q15_1))
|
|
4184
4651
|
return false;
|
|
4185
|
-
if (!equals(this.
|
|
4652
|
+
if (!equals(this.r15_1, other.r15_1))
|
|
4186
4653
|
return false;
|
|
4187
|
-
if (!equals(this.
|
|
4654
|
+
if (!equals(this.s15_1, other.s15_1))
|
|
4188
4655
|
return false;
|
|
4189
4656
|
return true;
|
|
4190
4657
|
};
|
|
4191
|
-
function
|
|
4192
|
-
|
|
4193
|
-
this.
|
|
4658
|
+
function Companion_3() {
|
|
4659
|
+
Companion_instance_4 = this;
|
|
4660
|
+
this.u1m_1 = new Vector3D(0.0, 0.0, 0.0);
|
|
4194
4661
|
}
|
|
4195
|
-
var
|
|
4196
|
-
function
|
|
4197
|
-
if (
|
|
4198
|
-
new
|
|
4199
|
-
return
|
|
4662
|
+
var Companion_instance_4;
|
|
4663
|
+
function Companion_getInstance_4() {
|
|
4664
|
+
if (Companion_instance_4 == null)
|
|
4665
|
+
new Companion_3();
|
|
4666
|
+
return Companion_instance_4;
|
|
4200
4667
|
}
|
|
4201
4668
|
function Vector3D(x, y, z) {
|
|
4202
|
-
|
|
4203
|
-
this.
|
|
4204
|
-
this.
|
|
4205
|
-
this.
|
|
4669
|
+
Companion_getInstance_4();
|
|
4670
|
+
this.x12_1 = x;
|
|
4671
|
+
this.y12_1 = y;
|
|
4672
|
+
this.z12_1 = z;
|
|
4206
4673
|
}
|
|
4207
|
-
protoOf(Vector3D).
|
|
4208
|
-
var tmp0 = this.
|
|
4674
|
+
protoOf(Vector3D).v1m = function (other) {
|
|
4675
|
+
var tmp0 = this.x12_1 - other.x12_1;
|
|
4209
4676
|
// Inline function 'kotlin.math.hypot' call
|
|
4210
|
-
var y = this.
|
|
4677
|
+
var y = this.y12_1 - other.y12_1;
|
|
4211
4678
|
var tmp0_0 = hypot(tmp0, y);
|
|
4212
4679
|
// Inline function 'kotlin.math.hypot' call
|
|
4213
|
-
var y_0 = this.
|
|
4680
|
+
var y_0 = this.z12_1 - other.z12_1;
|
|
4214
4681
|
return hypot(tmp0_0, y_0);
|
|
4215
4682
|
};
|
|
4216
|
-
protoOf(Vector3D).
|
|
4217
|
-
return new Vector3D(this.
|
|
4683
|
+
protoOf(Vector3D).w1m = function (other) {
|
|
4684
|
+
return new Vector3D(this.x12_1 - other.x12_1, this.y12_1 - other.y12_1, this.z12_1 - other.z12_1);
|
|
4218
4685
|
};
|
|
4219
|
-
protoOf(Vector3D).
|
|
4220
|
-
return new Vector3D(this.
|
|
4686
|
+
protoOf(Vector3D).x1m = function (other) {
|
|
4687
|
+
return new Vector3D(this.x12_1 + other.x12_1, this.y12_1 + other.y12_1, this.z12_1 + other.z12_1);
|
|
4221
4688
|
};
|
|
4222
|
-
protoOf(Vector3D).
|
|
4223
|
-
return new Vector3D(this.
|
|
4689
|
+
protoOf(Vector3D).y1m = function (scalar) {
|
|
4690
|
+
return new Vector3D(this.x12_1 * scalar, this.y12_1 * scalar, this.z12_1 * scalar);
|
|
4224
4691
|
};
|
|
4225
|
-
protoOf(Vector3D).
|
|
4226
|
-
return this.
|
|
4692
|
+
protoOf(Vector3D).z1m = function (other) {
|
|
4693
|
+
return this.x12_1 * other.x12_1 + this.y12_1 * other.y12_1 + this.z12_1 * other.z12_1;
|
|
4227
4694
|
};
|
|
4228
|
-
protoOf(Vector3D).
|
|
4229
|
-
var segmentVector = segmentEnd.
|
|
4230
|
-
var segmentLengthSq = segmentVector.
|
|
4695
|
+
protoOf(Vector3D).a13 = function (segmentStart, segmentEnd) {
|
|
4696
|
+
var segmentVector = segmentEnd.w1m(segmentStart);
|
|
4697
|
+
var segmentLengthSq = segmentVector.z1m(segmentVector);
|
|
4231
4698
|
if (segmentLengthSq === 0.0)
|
|
4232
|
-
return this.
|
|
4233
|
-
var pointVector = this.
|
|
4234
|
-
var projection = pointVector.
|
|
4699
|
+
return this.v1m(segmentStart);
|
|
4700
|
+
var pointVector = this.w1m(segmentStart);
|
|
4701
|
+
var projection = pointVector.z1m(segmentVector) / segmentLengthSq;
|
|
4235
4702
|
var clamped = coerceIn_0(projection, 0.0, 1.0);
|
|
4236
|
-
var closest = segmentStart.
|
|
4237
|
-
return this.
|
|
4703
|
+
var closest = segmentStart.x1m(segmentVector.y1m(clamped));
|
|
4704
|
+
return this.v1m(closest);
|
|
4238
4705
|
};
|
|
4239
4706
|
protoOf(Vector3D).toString = function () {
|
|
4240
|
-
return 'Vector3D(x=' + this.
|
|
4707
|
+
return 'Vector3D(x=' + this.x12_1 + ', y=' + this.y12_1 + ', z=' + this.z12_1 + ')';
|
|
4241
4708
|
};
|
|
4242
4709
|
protoOf(Vector3D).hashCode = function () {
|
|
4243
|
-
var result = getNumberHashCode(this.
|
|
4244
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
4245
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
4710
|
+
var result = getNumberHashCode(this.x12_1);
|
|
4711
|
+
result = imul(result, 31) + getNumberHashCode(this.y12_1) | 0;
|
|
4712
|
+
result = imul(result, 31) + getNumberHashCode(this.z12_1) | 0;
|
|
4246
4713
|
return result;
|
|
4247
4714
|
};
|
|
4248
4715
|
protoOf(Vector3D).equals = function (other) {
|
|
@@ -4250,11 +4717,11 @@
|
|
|
4250
4717
|
return true;
|
|
4251
4718
|
if (!(other instanceof Vector3D))
|
|
4252
4719
|
return false;
|
|
4253
|
-
if (!equals(this.
|
|
4720
|
+
if (!equals(this.x12_1, other.x12_1))
|
|
4254
4721
|
return false;
|
|
4255
|
-
if (!equals(this.
|
|
4722
|
+
if (!equals(this.y12_1, other.y12_1))
|
|
4256
4723
|
return false;
|
|
4257
|
-
if (!equals(this.
|
|
4724
|
+
if (!equals(this.z12_1, other.z12_1))
|
|
4258
4725
|
return false;
|
|
4259
4726
|
return true;
|
|
4260
4727
|
};
|
|
@@ -4291,25 +4758,25 @@
|
|
|
4291
4758
|
tmp = null;
|
|
4292
4759
|
} else {
|
|
4293
4760
|
// Inline function 'kotlin.let' call
|
|
4294
|
-
tmp = Companion_getInstance_0().
|
|
4761
|
+
tmp = Companion_getInstance_0().g1b(tmp2_safe_receiver);
|
|
4295
4762
|
}
|
|
4296
4763
|
var tmp3_elvis_lhs = tmp;
|
|
4297
|
-
var source = tmp3_elvis_lhs == null ? Companion_getInstance_0().
|
|
4298
|
-
var base = source.
|
|
4764
|
+
var source = tmp3_elvis_lhs == null ? Companion_getInstance_0().b1b_1 : tmp3_elvis_lhs;
|
|
4765
|
+
var base = source.m1b(configDto == null ? null : configDto.zoomLevel);
|
|
4299
4766
|
var tmp6_elvis_lhs = configDto == null ? null : configDto.cacheSize;
|
|
4300
|
-
var tmp_0 = tmp6_elvis_lhs == null ? base.
|
|
4767
|
+
var tmp_0 = tmp6_elvis_lhs == null ? base.a19_1 : tmp6_elvis_lhs;
|
|
4301
4768
|
var tmp8_elvis_lhs = configDto == null ? null : configDto.tileUrlTemplate;
|
|
4302
|
-
var tmp_1 = tmp8_elvis_lhs == null ? base.
|
|
4769
|
+
var tmp_1 = tmp8_elvis_lhs == null ? base.b19_1 : tmp8_elvis_lhs;
|
|
4303
4770
|
var tmp10_elvis_lhs = configDto == null ? null : configDto.tileSize;
|
|
4304
|
-
var cfg = base.
|
|
4771
|
+
var cfg = base.x1a(VOID, tmp_0, tmp_1, tmp10_elvis_lhs == null ? base.c19_1 : tmp10_elvis_lhs);
|
|
4305
4772
|
var primary = ElevationProvider_init_$Create$(cfg);
|
|
4306
|
-
var tmp11_safe_receiver = source.
|
|
4773
|
+
var tmp11_safe_receiver = source.h1b();
|
|
4307
4774
|
var tmp_2;
|
|
4308
4775
|
if (tmp11_safe_receiver == null) {
|
|
4309
4776
|
tmp_2 = null;
|
|
4310
4777
|
} else {
|
|
4311
4778
|
// Inline function 'kotlin.let' call
|
|
4312
|
-
tmp_2 = primary.
|
|
4779
|
+
tmp_2 = primary.o19(provider(tmp11_safe_receiver));
|
|
4313
4780
|
}
|
|
4314
4781
|
var tmp12_elvis_lhs = tmp_2;
|
|
4315
4782
|
return tmp12_elvis_lhs == null ? primary : tmp12_elvis_lhs;
|
|
@@ -4317,8 +4784,8 @@
|
|
|
4317
4784
|
function elevationAttribution(provider) {
|
|
4318
4785
|
_init_properties_ElevationJsApi_kt__1yyas4();
|
|
4319
4786
|
var o = {};
|
|
4320
|
-
o.text = provider.
|
|
4321
|
-
o.url = provider.
|
|
4787
|
+
o.text = provider.q19().y1a_1;
|
|
4788
|
+
o.url = provider.q19().z1a_1;
|
|
4322
4789
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
4323
4790
|
return o;
|
|
4324
4791
|
}
|
|
@@ -4391,20 +4858,20 @@
|
|
|
4391
4858
|
return o;
|
|
4392
4859
|
}
|
|
4393
4860
|
function getElevation$slambda($provider, $latitude, $longitude, $interpolation, resultContinuation) {
|
|
4394
|
-
this.
|
|
4395
|
-
this.
|
|
4396
|
-
this.
|
|
4397
|
-
this.
|
|
4861
|
+
this.i1n_1 = $provider;
|
|
4862
|
+
this.j1n_1 = $latitude;
|
|
4863
|
+
this.k1n_1 = $longitude;
|
|
4864
|
+
this.l1n_1 = $interpolation;
|
|
4398
4865
|
CoroutineImpl.call(this, resultContinuation);
|
|
4399
4866
|
}
|
|
4400
|
-
protoOf(getElevation$slambda).
|
|
4401
|
-
var tmp = this.
|
|
4867
|
+
protoOf(getElevation$slambda).n1n = function ($this$promise, $completion) {
|
|
4868
|
+
var tmp = this.c1c($this$promise, $completion);
|
|
4402
4869
|
tmp.l7_1 = Unit_instance;
|
|
4403
4870
|
tmp.m7_1 = null;
|
|
4404
4871
|
return tmp.r7();
|
|
4405
4872
|
};
|
|
4406
4873
|
protoOf(getElevation$slambda).z7 = function (p1, $completion) {
|
|
4407
|
-
return this.
|
|
4874
|
+
return this.n1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
4408
4875
|
};
|
|
4409
4876
|
protoOf(getElevation$slambda).r7 = function () {
|
|
4410
4877
|
var suspendResult = this.l7_1;
|
|
@@ -4415,7 +4882,7 @@
|
|
|
4415
4882
|
case 0:
|
|
4416
4883
|
this.k7_1 = 2;
|
|
4417
4884
|
this.j7_1 = 1;
|
|
4418
|
-
suspendResult = this.
|
|
4885
|
+
suspendResult = this.i1n_1.c18(this.j1n_1, this.k1n_1, this.l1n_1, this);
|
|
4419
4886
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4420
4887
|
return suspendResult;
|
|
4421
4888
|
}
|
|
@@ -4437,31 +4904,31 @@
|
|
|
4437
4904
|
}
|
|
4438
4905
|
while (true);
|
|
4439
4906
|
};
|
|
4440
|
-
protoOf(getElevation$slambda).
|
|
4441
|
-
var i = new getElevation$slambda(this.
|
|
4442
|
-
i.
|
|
4907
|
+
protoOf(getElevation$slambda).c1c = function ($this$promise, completion) {
|
|
4908
|
+
var i = new getElevation$slambda(this.i1n_1, this.j1n_1, this.k1n_1, this.l1n_1, completion);
|
|
4909
|
+
i.m1n_1 = $this$promise;
|
|
4443
4910
|
return i;
|
|
4444
4911
|
};
|
|
4445
4912
|
function getElevation$slambda_0($provider, $latitude, $longitude, $interpolation, resultContinuation) {
|
|
4446
4913
|
var i = new getElevation$slambda($provider, $latitude, $longitude, $interpolation, resultContinuation);
|
|
4447
4914
|
return constructCallableReference(function ($this$promise, $completion) {
|
|
4448
|
-
return i.
|
|
4915
|
+
return i.n1n($this$promise, $completion);
|
|
4449
4916
|
}, 1);
|
|
4450
4917
|
}
|
|
4451
4918
|
function getElevationsAlong$slambda($path, $provider, $options, resultContinuation) {
|
|
4452
|
-
this.
|
|
4453
|
-
this.
|
|
4454
|
-
this.
|
|
4919
|
+
this.w1n_1 = $path;
|
|
4920
|
+
this.x1n_1 = $provider;
|
|
4921
|
+
this.y1n_1 = $options;
|
|
4455
4922
|
CoroutineImpl.call(this, resultContinuation);
|
|
4456
4923
|
}
|
|
4457
|
-
protoOf(getElevationsAlong$slambda).
|
|
4458
|
-
var tmp = this.
|
|
4924
|
+
protoOf(getElevationsAlong$slambda).a1o = function ($this$promise, $completion) {
|
|
4925
|
+
var tmp = this.c1c($this$promise, $completion);
|
|
4459
4926
|
tmp.l7_1 = Unit_instance;
|
|
4460
4927
|
tmp.m7_1 = null;
|
|
4461
4928
|
return tmp.r7();
|
|
4462
4929
|
};
|
|
4463
4930
|
protoOf(getElevationsAlong$slambda).z7 = function (p1, $completion) {
|
|
4464
|
-
return this.
|
|
4931
|
+
return this.a1o((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
4465
4932
|
};
|
|
4466
4933
|
protoOf(getElevationsAlong$slambda).r7 = function () {
|
|
4467
4934
|
var suspendResult = this.l7_1;
|
|
@@ -4471,7 +4938,7 @@
|
|
|
4471
4938
|
switch (tmp) {
|
|
4472
4939
|
case 0:
|
|
4473
4940
|
this.k7_1 = 2;
|
|
4474
|
-
var this_0 = this.
|
|
4941
|
+
var this_0 = this.w1n_1;
|
|
4475
4942
|
var destination = ArrayList_init_$Create$_0(this_0.length);
|
|
4476
4943
|
var inductionVariable = 0;
|
|
4477
4944
|
var last = this_0.length;
|
|
@@ -4483,21 +4950,21 @@
|
|
|
4483
4950
|
|
|
4484
4951
|
var coords = destination;
|
|
4485
4952
|
this.j7_1 = 1;
|
|
4486
|
-
var tmp0_safe_receiver = this.
|
|
4953
|
+
var tmp0_safe_receiver = this.y1n_1;
|
|
4487
4954
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.step;
|
|
4488
4955
|
var tmp_0 = tmp1_elvis_lhs == null ? 10.0 : tmp1_elvis_lhs;
|
|
4489
|
-
var tmp2_safe_receiver = this.
|
|
4956
|
+
var tmp2_safe_receiver = this.y1n_1;
|
|
4490
4957
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.minDistance;
|
|
4491
4958
|
var tmp_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
|
|
4492
|
-
var tmp4_safe_receiver = this.
|
|
4959
|
+
var tmp4_safe_receiver = this.y1n_1;
|
|
4493
4960
|
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.interpolation;
|
|
4494
4961
|
var tmp_2 = tmp5_elvis_lhs == null ? true : tmp5_elvis_lhs;
|
|
4495
|
-
var tmp6_safe_receiver = this.
|
|
4962
|
+
var tmp6_safe_receiver = this.y1n_1;
|
|
4496
4963
|
var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.smoothingOptions;
|
|
4497
4964
|
var tmp_3 = tmp7_safe_receiver == null ? null : toKotlin(tmp7_safe_receiver);
|
|
4498
|
-
var tmp8_safe_receiver = this.
|
|
4965
|
+
var tmp8_safe_receiver = this.y1n_1;
|
|
4499
4966
|
var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.filterOptions;
|
|
4500
|
-
suspendResult = this.
|
|
4967
|
+
suspendResult = this.x1n_1.v19(coords, tmp_0, tmp_1, tmp_2, tmp_3, tmp9_safe_receiver == null ? null : toKotlin_0(tmp9_safe_receiver), this);
|
|
4501
4968
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4502
4969
|
return suspendResult;
|
|
4503
4970
|
}
|
|
@@ -4511,7 +4978,7 @@
|
|
|
4511
4978
|
while (tmp_4 < tmp_5) {
|
|
4512
4979
|
var tmp_7 = tmp_4;
|
|
4513
4980
|
var c = results.p(tmp_7);
|
|
4514
|
-
tmp_6[tmp_7] = coordsEle(c.
|
|
4981
|
+
tmp_6[tmp_7] = coordsEle(c.xz(), c.yz(), c.s12());
|
|
4515
4982
|
tmp_4 = tmp_4 + 1 | 0;
|
|
4516
4983
|
}
|
|
4517
4984
|
|
|
@@ -4530,15 +4997,15 @@
|
|
|
4530
4997
|
}
|
|
4531
4998
|
while (true);
|
|
4532
4999
|
};
|
|
4533
|
-
protoOf(getElevationsAlong$slambda).
|
|
4534
|
-
var i = new getElevationsAlong$slambda(this.
|
|
4535
|
-
i.
|
|
5000
|
+
protoOf(getElevationsAlong$slambda).c1c = function ($this$promise, completion) {
|
|
5001
|
+
var i = new getElevationsAlong$slambda(this.w1n_1, this.x1n_1, this.y1n_1, completion);
|
|
5002
|
+
i.z1n_1 = $this$promise;
|
|
4536
5003
|
return i;
|
|
4537
5004
|
};
|
|
4538
5005
|
function getElevationsAlong$slambda_0($path, $provider, $options, resultContinuation) {
|
|
4539
5006
|
var i = new getElevationsAlong$slambda($path, $provider, $options, resultContinuation);
|
|
4540
5007
|
return constructCallableReference(function ($this$promise, $completion) {
|
|
4541
|
-
return i.
|
|
5008
|
+
return i.a1o($this$promise, $completion);
|
|
4542
5009
|
}, 1);
|
|
4543
5010
|
}
|
|
4544
5011
|
var properties_initialized_ElevationJsApi_kt_8pvyh6;
|
|
@@ -4692,7 +5159,7 @@
|
|
|
4692
5159
|
}
|
|
4693
5160
|
function $fetchAndDecodeTileCOROUTINE$(url, resultContinuation) {
|
|
4694
5161
|
CoroutineImpl.call(this, resultContinuation);
|
|
4695
|
-
this.
|
|
5162
|
+
this.j1o_1 = url;
|
|
4696
5163
|
}
|
|
4697
5164
|
protoOf($fetchAndDecodeTileCOROUTINE$).r7 = function () {
|
|
4698
5165
|
var suspendResult = this.l7_1;
|
|
@@ -4704,14 +5171,14 @@
|
|
|
4704
5171
|
this.k7_1 = 4;
|
|
4705
5172
|
if (get_isNode()) {
|
|
4706
5173
|
this.j7_1 = 2;
|
|
4707
|
-
suspendResult = decodeNode(this.
|
|
5174
|
+
suspendResult = decodeNode(this.j1o_1, this);
|
|
4708
5175
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4709
5176
|
return suspendResult;
|
|
4710
5177
|
}
|
|
4711
5178
|
continue $sm;
|
|
4712
5179
|
} else {
|
|
4713
5180
|
this.j7_1 = 1;
|
|
4714
|
-
suspendResult = decodeBrowser(this.
|
|
5181
|
+
suspendResult = decodeBrowser(this.j1o_1, this);
|
|
4715
5182
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4716
5183
|
return suspendResult;
|
|
4717
5184
|
}
|
|
@@ -4719,15 +5186,15 @@
|
|
|
4719
5186
|
}
|
|
4720
5187
|
|
|
4721
5188
|
case 1:
|
|
4722
|
-
this.
|
|
5189
|
+
this.k1o_1 = suspendResult;
|
|
4723
5190
|
this.j7_1 = 3;
|
|
4724
5191
|
continue $sm;
|
|
4725
5192
|
case 2:
|
|
4726
|
-
this.
|
|
5193
|
+
this.k1o_1 = suspendResult;
|
|
4727
5194
|
this.j7_1 = 3;
|
|
4728
5195
|
continue $sm;
|
|
4729
5196
|
case 3:
|
|
4730
|
-
return this.
|
|
5197
|
+
return this.k1o_1;
|
|
4731
5198
|
case 4:
|
|
4732
5199
|
throw this.m7_1;
|
|
4733
5200
|
}
|
|
@@ -4744,8 +5211,8 @@
|
|
|
4744
5211
|
};
|
|
4745
5212
|
function $decodeTileBytesCOROUTINE$(bytes, sourceUrl, resultContinuation) {
|
|
4746
5213
|
CoroutineImpl.call(this, resultContinuation);
|
|
4747
|
-
this.
|
|
4748
|
-
this.
|
|
5214
|
+
this.t1o_1 = bytes;
|
|
5215
|
+
this.u1o_1 = sourceUrl;
|
|
4749
5216
|
}
|
|
4750
5217
|
protoOf($decodeTileBytesCOROUTINE$).r7 = function () {
|
|
4751
5218
|
var suspendResult = this.l7_1;
|
|
@@ -4757,14 +5224,14 @@
|
|
|
4757
5224
|
this.k7_1 = 4;
|
|
4758
5225
|
if (get_isNode()) {
|
|
4759
5226
|
this.j7_1 = 2;
|
|
4760
|
-
suspendResult = decodeBytesNode(this.
|
|
5227
|
+
suspendResult = decodeBytesNode(this.t1o_1, this.u1o_1, this);
|
|
4761
5228
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4762
5229
|
return suspendResult;
|
|
4763
5230
|
}
|
|
4764
5231
|
continue $sm;
|
|
4765
5232
|
} else {
|
|
4766
5233
|
this.j7_1 = 1;
|
|
4767
|
-
suspendResult = decodeBlob(blobOf(this.
|
|
5234
|
+
suspendResult = decodeBlob(blobOf(this.t1o_1), this.u1o_1, this);
|
|
4768
5235
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4769
5236
|
return suspendResult;
|
|
4770
5237
|
}
|
|
@@ -4772,15 +5239,15 @@
|
|
|
4772
5239
|
}
|
|
4773
5240
|
|
|
4774
5241
|
case 1:
|
|
4775
|
-
this.
|
|
5242
|
+
this.v1o_1 = suspendResult;
|
|
4776
5243
|
this.j7_1 = 3;
|
|
4777
5244
|
continue $sm;
|
|
4778
5245
|
case 2:
|
|
4779
|
-
this.
|
|
5246
|
+
this.v1o_1 = suspendResult;
|
|
4780
5247
|
this.j7_1 = 3;
|
|
4781
5248
|
continue $sm;
|
|
4782
5249
|
case 3:
|
|
4783
|
-
return this.
|
|
5250
|
+
return this.v1o_1;
|
|
4784
5251
|
case 4:
|
|
4785
5252
|
throw this.m7_1;
|
|
4786
5253
|
}
|
|
@@ -4797,7 +5264,7 @@
|
|
|
4797
5264
|
};
|
|
4798
5265
|
function $decodeNodeCOROUTINE$(url, resultContinuation) {
|
|
4799
5266
|
CoroutineImpl.call(this, resultContinuation);
|
|
4800
|
-
this.
|
|
5267
|
+
this.e1p_1 = url;
|
|
4801
5268
|
}
|
|
4802
5269
|
protoOf($decodeNodeCOROUTINE$).r7 = function () {
|
|
4803
5270
|
var suspendResult = this.l7_1;
|
|
@@ -4808,7 +5275,7 @@
|
|
|
4808
5275
|
case 0:
|
|
4809
5276
|
this.k7_1 = 4;
|
|
4810
5277
|
this.j7_1 = 1;
|
|
4811
|
-
suspendResult = await_0(fetchUrlNode(this.
|
|
5278
|
+
suspendResult = await_0(fetchUrlNode(this.e1p_1), this);
|
|
4812
5279
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4813
5280
|
return suspendResult;
|
|
4814
5281
|
}
|
|
@@ -4816,7 +5283,7 @@
|
|
|
4816
5283
|
continue $sm;
|
|
4817
5284
|
case 1:
|
|
4818
5285
|
var res = suspendResult;
|
|
4819
|
-
requireOk(res, this.
|
|
5286
|
+
requireOk(res, this.e1p_1);
|
|
4820
5287
|
this.j7_1 = 2;
|
|
4821
5288
|
suspendResult = await_0(responseArrayBuffer(res), this);
|
|
4822
5289
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -4852,7 +5319,7 @@
|
|
|
4852
5319
|
};
|
|
4853
5320
|
function $decodeBrowserCOROUTINE$(url, resultContinuation) {
|
|
4854
5321
|
CoroutineImpl.call(this, resultContinuation);
|
|
4855
|
-
this.
|
|
5322
|
+
this.n1p_1 = url;
|
|
4856
5323
|
}
|
|
4857
5324
|
protoOf($decodeBrowserCOROUTINE$).r7 = function () {
|
|
4858
5325
|
var suspendResult = this.l7_1;
|
|
@@ -4863,7 +5330,7 @@
|
|
|
4863
5330
|
case 0:
|
|
4864
5331
|
this.k7_1 = 4;
|
|
4865
5332
|
this.j7_1 = 1;
|
|
4866
|
-
suspendResult = await_0(fetchUrlBrowser(this.
|
|
5333
|
+
suspendResult = await_0(fetchUrlBrowser(this.n1p_1), this);
|
|
4867
5334
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4868
5335
|
return suspendResult;
|
|
4869
5336
|
}
|
|
@@ -4871,7 +5338,7 @@
|
|
|
4871
5338
|
continue $sm;
|
|
4872
5339
|
case 1:
|
|
4873
5340
|
var res = suspendResult;
|
|
4874
|
-
requireOk(res, this.
|
|
5341
|
+
requireOk(res, this.n1p_1);
|
|
4875
5342
|
this.j7_1 = 2;
|
|
4876
5343
|
suspendResult = await_0(res.blob(), this);
|
|
4877
5344
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -4882,7 +5349,7 @@
|
|
|
4882
5349
|
case 2:
|
|
4883
5350
|
var ARGUMENT = suspendResult;
|
|
4884
5351
|
this.j7_1 = 3;
|
|
4885
|
-
suspendResult = decodeBlob(ARGUMENT, this.
|
|
5352
|
+
suspendResult = decodeBlob(ARGUMENT, this.n1p_1, this);
|
|
4886
5353
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4887
5354
|
return suspendResult;
|
|
4888
5355
|
}
|
|
@@ -4906,8 +5373,8 @@
|
|
|
4906
5373
|
};
|
|
4907
5374
|
function $decodeBytesNodeCOROUTINE$(bytes, sourceUrl, resultContinuation) {
|
|
4908
5375
|
CoroutineImpl.call(this, resultContinuation);
|
|
4909
|
-
this.
|
|
4910
|
-
this.
|
|
5376
|
+
this.w1p_1 = bytes;
|
|
5377
|
+
this.x1p_1 = sourceUrl;
|
|
4911
5378
|
}
|
|
4912
5379
|
protoOf($decodeBytesNodeCOROUTINE$).r7 = function () {
|
|
4913
5380
|
var suspendResult = this.l7_1;
|
|
@@ -4917,7 +5384,7 @@
|
|
|
4917
5384
|
switch (tmp) {
|
|
4918
5385
|
case 0:
|
|
4919
5386
|
this.k7_1 = 4;
|
|
4920
|
-
var view = this.
|
|
5387
|
+
var view = this.w1p_1;
|
|
4921
5388
|
var buffer = view.buffer.slice(view.byteOffset, view.byteOffset + view.byteLength);
|
|
4922
5389
|
this.k7_1 = 2;
|
|
4923
5390
|
this.j7_1 = 1;
|
|
@@ -4928,7 +5395,7 @@
|
|
|
4928
5395
|
|
|
4929
5396
|
continue $sm;
|
|
4930
5397
|
case 1:
|
|
4931
|
-
this.
|
|
5398
|
+
this.y1p_1 = suspendResult;
|
|
4932
5399
|
this.k7_1 = 4;
|
|
4933
5400
|
this.j7_1 = 3;
|
|
4934
5401
|
continue $sm;
|
|
@@ -4938,7 +5405,7 @@
|
|
|
4938
5405
|
if (tmp_0 instanceof Error) {
|
|
4939
5406
|
var e = this.m7_1;
|
|
4940
5407
|
var tmp_1 = this;
|
|
4941
|
-
var this_0 = this.
|
|
5408
|
+
var this_0 = this.x1p_1;
|
|
4942
5409
|
var tmp_2;
|
|
4943
5410
|
if (charSequenceLength(this_0) === 0) {
|
|
4944
5411
|
tmp_2 = '<unnamed bytes>';
|
|
@@ -4953,7 +5420,7 @@
|
|
|
4953
5420
|
|
|
4954
5421
|
case 3:
|
|
4955
5422
|
this.k7_1 = 4;
|
|
4956
|
-
var image = this.
|
|
5423
|
+
var image = this.y1p_1;
|
|
4957
5424
|
return rawTileFromJsquash(image);
|
|
4958
5425
|
case 4:
|
|
4959
5426
|
throw this.m7_1;
|
|
@@ -4971,8 +5438,8 @@
|
|
|
4971
5438
|
};
|
|
4972
5439
|
function $decodeBlobCOROUTINE$(blob, sourceUrl, resultContinuation) {
|
|
4973
5440
|
CoroutineImpl.call(this, resultContinuation);
|
|
4974
|
-
this.
|
|
4975
|
-
this.
|
|
5441
|
+
this.h1q_1 = blob;
|
|
5442
|
+
this.i1q_1 = sourceUrl;
|
|
4976
5443
|
}
|
|
4977
5444
|
protoOf($decodeBlobCOROUTINE$).r7 = function () {
|
|
4978
5445
|
var suspendResult = this.l7_1;
|
|
@@ -4984,14 +5451,14 @@
|
|
|
4984
5451
|
this.k7_1 = 3;
|
|
4985
5452
|
this.k7_1 = 2;
|
|
4986
5453
|
this.j7_1 = 1;
|
|
4987
|
-
suspendResult = await_0(window.createImageBitmap(this.
|
|
5454
|
+
suspendResult = await_0(window.createImageBitmap(this.h1q_1), this);
|
|
4988
5455
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4989
5456
|
return suspendResult;
|
|
4990
5457
|
}
|
|
4991
5458
|
|
|
4992
5459
|
continue $sm;
|
|
4993
5460
|
case 1:
|
|
4994
|
-
this.
|
|
5461
|
+
this.j1q_1 = suspendResult;
|
|
4995
5462
|
this.k7_1 = 3;
|
|
4996
5463
|
this.j7_1 = 4;
|
|
4997
5464
|
continue $sm;
|
|
@@ -5001,7 +5468,7 @@
|
|
|
5001
5468
|
if (tmp_0 instanceof Error) {
|
|
5002
5469
|
var e = this.m7_1;
|
|
5003
5470
|
var tmp_1 = this;
|
|
5004
|
-
var this_0 = this.
|
|
5471
|
+
var this_0 = this.i1q_1;
|
|
5005
5472
|
var tmp_2;
|
|
5006
5473
|
if (charSequenceLength(this_0) === 0) {
|
|
5007
5474
|
tmp_2 = '<unnamed bytes>';
|
|
@@ -5018,7 +5485,7 @@
|
|
|
5018
5485
|
throw this.m7_1;
|
|
5019
5486
|
case 4:
|
|
5020
5487
|
this.k7_1 = 3;
|
|
5021
|
-
var bitmap = this.
|
|
5488
|
+
var bitmap = this.j1q_1;
|
|
5022
5489
|
l$ret$3: do {
|
|
5023
5490
|
var tmp$ret$0;
|
|
5024
5491
|
l$ret$1: do {
|
|
@@ -5066,7 +5533,7 @@
|
|
|
5066
5533
|
};
|
|
5067
5534
|
function $decodeWebpNodeCOROUTINE$(buffer, resultContinuation) {
|
|
5068
5535
|
CoroutineImpl.call(this, resultContinuation);
|
|
5069
|
-
this.
|
|
5536
|
+
this.s1q_1 = buffer;
|
|
5070
5537
|
}
|
|
5071
5538
|
protoOf($decodeWebpNodeCOROUTINE$).r7 = function () {
|
|
5072
5539
|
var suspendResult = this.l7_1;
|
|
@@ -5085,7 +5552,7 @@
|
|
|
5085
5552
|
continue $sm;
|
|
5086
5553
|
case 1:
|
|
5087
5554
|
var decode = suspendResult;
|
|
5088
|
-
var resultPromise = decode(this.
|
|
5555
|
+
var resultPromise = decode(this.s1q_1);
|
|
5089
5556
|
this.j7_1 = 2;
|
|
5090
5557
|
suspendResult = await_0(resultPromise, this);
|
|
5091
5558
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -5111,7 +5578,7 @@
|
|
|
5111
5578
|
};
|
|
5112
5579
|
function $fetchTileBytesCOROUTINE$(url, resultContinuation) {
|
|
5113
5580
|
CoroutineImpl.call(this, resultContinuation);
|
|
5114
|
-
this.
|
|
5581
|
+
this.b1r_1 = url;
|
|
5115
5582
|
}
|
|
5116
5583
|
protoOf($fetchTileBytesCOROUTINE$).r7 = function () {
|
|
5117
5584
|
var suspendResult = this.l7_1;
|
|
@@ -5123,14 +5590,14 @@
|
|
|
5123
5590
|
this.k7_1 = 5;
|
|
5124
5591
|
if (get_isNode()) {
|
|
5125
5592
|
this.j7_1 = 2;
|
|
5126
|
-
suspendResult = await_0(fetchUrlNode(this.
|
|
5593
|
+
suspendResult = await_0(fetchUrlNode(this.b1r_1), this);
|
|
5127
5594
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5128
5595
|
return suspendResult;
|
|
5129
5596
|
}
|
|
5130
5597
|
continue $sm;
|
|
5131
5598
|
} else {
|
|
5132
5599
|
this.j7_1 = 1;
|
|
5133
|
-
suspendResult = await_0(fetchUrlBrowser(this.
|
|
5600
|
+
suspendResult = await_0(fetchUrlBrowser(this.b1r_1), this);
|
|
5134
5601
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5135
5602
|
return suspendResult;
|
|
5136
5603
|
}
|
|
@@ -5138,16 +5605,16 @@
|
|
|
5138
5605
|
}
|
|
5139
5606
|
|
|
5140
5607
|
case 1:
|
|
5141
|
-
this.
|
|
5608
|
+
this.c1r_1 = suspendResult;
|
|
5142
5609
|
this.j7_1 = 3;
|
|
5143
5610
|
continue $sm;
|
|
5144
5611
|
case 2:
|
|
5145
|
-
this.
|
|
5612
|
+
this.c1r_1 = suspendResult;
|
|
5146
5613
|
this.j7_1 = 3;
|
|
5147
5614
|
continue $sm;
|
|
5148
5615
|
case 3:
|
|
5149
|
-
var res = this.
|
|
5150
|
-
requireOk(res, this.
|
|
5616
|
+
var res = this.c1r_1;
|
|
5617
|
+
requireOk(res, this.b1r_1);
|
|
5151
5618
|
this.j7_1 = 4;
|
|
5152
5619
|
suspendResult = await_0(responseArrayBuffer(res), this);
|
|
5153
5620
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -5184,13 +5651,13 @@
|
|
|
5184
5651
|
function fetchAndDecodeTile$ref_1() {
|
|
5185
5652
|
var i = new fetchAndDecodeTile$ref();
|
|
5186
5653
|
return constructCallableReference(function (p0, $completion) {
|
|
5187
|
-
return i.
|
|
5654
|
+
return i.z19(p0, $completion);
|
|
5188
5655
|
}, 1, 1, 2, 'fetchAndDecodeTile');
|
|
5189
5656
|
}
|
|
5190
5657
|
function fetchTileBytes$ref_0() {
|
|
5191
5658
|
var i = new fetchTileBytes$ref();
|
|
5192
5659
|
return constructCallableReference(function (p0, $completion) {
|
|
5193
|
-
return i.
|
|
5660
|
+
return i.a1m(p0, $completion);
|
|
5194
5661
|
}, 1, 1, 5, 'fetchTileBytes');
|
|
5195
5662
|
}
|
|
5196
5663
|
//region block: init
|
|
@@ -5200,7 +5667,7 @@
|
|
|
5200
5667
|
ElevationFunctions_instance = new ElevationFunctions();
|
|
5201
5668
|
ElevationSmoother_instance = new ElevationSmoother();
|
|
5202
5669
|
Flux_instance = new Flux();
|
|
5203
|
-
|
|
5670
|
+
Companion_instance_2 = new Companion_1();
|
|
5204
5671
|
Key_instance = new Key();
|
|
5205
5672
|
//endregion
|
|
5206
5673
|
//region block: exports
|
|
@@ -5217,15 +5684,21 @@
|
|
|
5217
5684
|
$jsExportAll$(_);
|
|
5218
5685
|
_.$jsExportAll$ = $jsExportAll$;
|
|
5219
5686
|
_.$_$ = _.$_$ || {};
|
|
5220
|
-
_.$_$.a =
|
|
5221
|
-
_.$_$.b =
|
|
5222
|
-
_.$_$.c =
|
|
5223
|
-
_.$_$.d =
|
|
5224
|
-
_.$_$.e =
|
|
5225
|
-
_.$_$.f =
|
|
5226
|
-
_.$_$.g =
|
|
5227
|
-
_.$_$.h =
|
|
5228
|
-
_.$_$.i =
|
|
5687
|
+
_.$_$.a = TerrainOrigin_IGN_LIDAR_HD_getInstance;
|
|
5688
|
+
_.$_$.b = TerrainOrigin_MAPTERHORN_MEASURED_getInstance;
|
|
5689
|
+
_.$_$.c = TerrainOrigin_MAPTERHORN_getInstance;
|
|
5690
|
+
_.$_$.d = TerrainOrigin_NONE_getInstance;
|
|
5691
|
+
_.$_$.e = TerrainOrigin_OTHER_getInstance;
|
|
5692
|
+
_.$_$.f = Distance_instance;
|
|
5693
|
+
_.$_$.g = DouglasPeucker_instance;
|
|
5694
|
+
_.$_$.h = ElevationSmoother_instance;
|
|
5695
|
+
_.$_$.i = Companion_getInstance_0;
|
|
5696
|
+
_.$_$.j = LatLonElevation;
|
|
5697
|
+
_.$_$.k = LatLon;
|
|
5698
|
+
_.$_$.l = get_entries_1;
|
|
5699
|
+
_.$_$.m = TileFailureLog;
|
|
5700
|
+
_.$_$.n = Vector3D;
|
|
5701
|
+
_.$_$.o = provider;
|
|
5229
5702
|
//endregion
|
|
5230
5703
|
return _;
|
|
5231
5704
|
}));
|