@glandais/vcyclist-engine 6.2.0 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fit-kotlin-sdk.js +3734 -3734
- package/kotlin-kotlin-stdlib.js +21 -21
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +3 -3
- package/package.json +1 -1
- package/vcyclist-elevation.js +686 -685
- package/vcyclist-elevation.js.map +1 -1
- package/vcyclist-engine.js +1435 -1432
- package/vcyclist-engine.js.map +1 -1
- package/vcyclist-fit.js +187 -187
- package/vcyclist-gpx.js +1142 -1141
- package/vcyclist-gpx.js.map +1 -1
- package/xmlutil-core.js +2393 -2393
package/vcyclist-gpx.js
CHANGED
|
@@ -279,27 +279,27 @@
|
|
|
279
279
|
symbol = symbol === VOID ? null : symbol;
|
|
280
280
|
type = type === VOID ? null : type;
|
|
281
281
|
timeEpochMs = timeEpochMs === VOID ? null : timeEpochMs;
|
|
282
|
-
this.
|
|
283
|
-
this.
|
|
284
|
-
this.
|
|
285
|
-
this.
|
|
286
|
-
this.
|
|
287
|
-
this.
|
|
288
|
-
this.
|
|
289
|
-
this.
|
|
282
|
+
this.u21_1 = latitudeDeg;
|
|
283
|
+
this.v21_1 = longitudeDeg;
|
|
284
|
+
this.w21_1 = elevationM;
|
|
285
|
+
this.x21_1 = name;
|
|
286
|
+
this.y21_1 = description;
|
|
287
|
+
this.z21_1 = symbol;
|
|
288
|
+
this.a22_1 = type;
|
|
289
|
+
this.b22_1 = timeEpochMs;
|
|
290
290
|
}
|
|
291
291
|
protoOf(GpxWaypoint).toString = function () {
|
|
292
|
-
return 'GpxWaypoint(latitudeDeg=' + this.
|
|
292
|
+
return 'GpxWaypoint(latitudeDeg=' + this.u21_1 + ', longitudeDeg=' + this.v21_1 + ', elevationM=' + this.w21_1 + ', name=' + this.x21_1 + ', description=' + this.y21_1 + ', symbol=' + this.z21_1 + ', type=' + this.a22_1 + ', timeEpochMs=' + toString(this.b22_1) + ')';
|
|
293
293
|
};
|
|
294
294
|
protoOf(GpxWaypoint).hashCode = function () {
|
|
295
|
-
var result = getNumberHashCode(this.
|
|
296
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
297
|
-
result = imul(result, 31) + (this.
|
|
298
|
-
result = imul(result, 31) + (this.v21_1 == null ? 0 : getStringHashCode(this.v21_1)) | 0;
|
|
299
|
-
result = imul(result, 31) + (this.w21_1 == null ? 0 : getStringHashCode(this.w21_1)) | 0;
|
|
295
|
+
var result = getNumberHashCode(this.u21_1);
|
|
296
|
+
result = imul(result, 31) + getNumberHashCode(this.v21_1) | 0;
|
|
297
|
+
result = imul(result, 31) + (this.w21_1 == null ? 0 : getNumberHashCode(this.w21_1)) | 0;
|
|
300
298
|
result = imul(result, 31) + (this.x21_1 == null ? 0 : getStringHashCode(this.x21_1)) | 0;
|
|
301
299
|
result = imul(result, 31) + (this.y21_1 == null ? 0 : getStringHashCode(this.y21_1)) | 0;
|
|
302
|
-
result = imul(result, 31) + (this.z21_1 == null ? 0 : this.z21_1
|
|
300
|
+
result = imul(result, 31) + (this.z21_1 == null ? 0 : getStringHashCode(this.z21_1)) | 0;
|
|
301
|
+
result = imul(result, 31) + (this.a22_1 == null ? 0 : getStringHashCode(this.a22_1)) | 0;
|
|
302
|
+
result = imul(result, 31) + (this.b22_1 == null ? 0 : this.b22_1.hashCode()) | 0;
|
|
303
303
|
return result;
|
|
304
304
|
};
|
|
305
305
|
protoOf(GpxWaypoint).equals = function (other) {
|
|
@@ -307,38 +307,38 @@
|
|
|
307
307
|
return true;
|
|
308
308
|
if (!(other instanceof GpxWaypoint))
|
|
309
309
|
return false;
|
|
310
|
-
if (!equals(this.s21_1, other.s21_1))
|
|
311
|
-
return false;
|
|
312
|
-
if (!equals(this.t21_1, other.t21_1))
|
|
313
|
-
return false;
|
|
314
310
|
if (!equals(this.u21_1, other.u21_1))
|
|
315
311
|
return false;
|
|
316
|
-
if (!(this.v21_1
|
|
312
|
+
if (!equals(this.v21_1, other.v21_1))
|
|
317
313
|
return false;
|
|
318
|
-
if (!(this.w21_1
|
|
314
|
+
if (!equals(this.w21_1, other.w21_1))
|
|
319
315
|
return false;
|
|
320
316
|
if (!(this.x21_1 == other.x21_1))
|
|
321
317
|
return false;
|
|
322
318
|
if (!(this.y21_1 == other.y21_1))
|
|
323
319
|
return false;
|
|
324
|
-
if (!
|
|
320
|
+
if (!(this.z21_1 == other.z21_1))
|
|
321
|
+
return false;
|
|
322
|
+
if (!(this.a22_1 == other.a22_1))
|
|
323
|
+
return false;
|
|
324
|
+
if (!equals(this.b22_1, other.b22_1))
|
|
325
325
|
return false;
|
|
326
326
|
return true;
|
|
327
327
|
};
|
|
328
328
|
function GpxDocument(name, tracks, waypoints) {
|
|
329
329
|
name = name === VOID ? 'noname' : name;
|
|
330
330
|
waypoints = waypoints === VOID ? emptyList() : waypoints;
|
|
331
|
-
this.
|
|
332
|
-
this.
|
|
333
|
-
this.
|
|
331
|
+
this.c22_1 = name;
|
|
332
|
+
this.d22_1 = tracks;
|
|
333
|
+
this.e22_1 = waypoints;
|
|
334
334
|
}
|
|
335
335
|
protoOf(GpxDocument).toString = function () {
|
|
336
|
-
return 'GpxDocument(name=' + this.
|
|
336
|
+
return 'GpxDocument(name=' + this.c22_1 + ', tracks=' + toString_0(this.d22_1) + ', waypoints=' + toString_0(this.e22_1) + ')';
|
|
337
337
|
};
|
|
338
338
|
protoOf(GpxDocument).hashCode = function () {
|
|
339
|
-
var result = getStringHashCode(this.
|
|
340
|
-
result = imul(result, 31) + hashCode(this.
|
|
341
|
-
result = imul(result, 31) + hashCode(this.
|
|
339
|
+
var result = getStringHashCode(this.c22_1);
|
|
340
|
+
result = imul(result, 31) + hashCode(this.d22_1) | 0;
|
|
341
|
+
result = imul(result, 31) + hashCode(this.e22_1) | 0;
|
|
342
342
|
return result;
|
|
343
343
|
};
|
|
344
344
|
protoOf(GpxDocument).equals = function (other) {
|
|
@@ -346,24 +346,24 @@
|
|
|
346
346
|
return true;
|
|
347
347
|
if (!(other instanceof GpxDocument))
|
|
348
348
|
return false;
|
|
349
|
-
if (!(this.
|
|
349
|
+
if (!(this.c22_1 === other.c22_1))
|
|
350
350
|
return false;
|
|
351
|
-
if (!equals(this.
|
|
351
|
+
if (!equals(this.d22_1, other.d22_1))
|
|
352
352
|
return false;
|
|
353
|
-
if (!equals(this.
|
|
353
|
+
if (!equals(this.e22_1, other.e22_1))
|
|
354
354
|
return false;
|
|
355
355
|
return true;
|
|
356
356
|
};
|
|
357
357
|
function Companion() {
|
|
358
358
|
}
|
|
359
|
-
protoOf(Companion).
|
|
359
|
+
protoOf(Companion).f22 = function (name, type, points, kind) {
|
|
360
360
|
return new GpxTrack(name, type, listOf(new GpxSegment(points)), kind);
|
|
361
361
|
};
|
|
362
|
-
protoOf(Companion).
|
|
362
|
+
protoOf(Companion).g22 = function (name, type, points, kind, $super) {
|
|
363
363
|
name = name === VOID ? null : name;
|
|
364
364
|
type = type === VOID ? null : type;
|
|
365
365
|
kind = kind === VOID ? GpxPathKind_TRACK_getInstance() : kind;
|
|
366
|
-
return $super === VOID ? this.
|
|
366
|
+
return $super === VOID ? this.f22(name, type, points, kind) : $super.f22.call(this, name, type, points, kind);
|
|
367
367
|
};
|
|
368
368
|
var Companion_instance_0;
|
|
369
369
|
function Companion_getInstance_0() {
|
|
@@ -372,13 +372,13 @@
|
|
|
372
372
|
function GpxTrack$points$delegate$lambda(this$0) {
|
|
373
373
|
return function () {
|
|
374
374
|
// Inline function 'kotlin.collections.flatMap' call
|
|
375
|
-
var tmp0 = this$0.
|
|
375
|
+
var tmp0 = this$0.j22_1;
|
|
376
376
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
377
377
|
var destination = ArrayList_init_$Create$();
|
|
378
378
|
var _iterator__ex2g4s = tmp0.l();
|
|
379
379
|
while (_iterator__ex2g4s.m()) {
|
|
380
380
|
var element = _iterator__ex2g4s.n();
|
|
381
|
-
var list = element.
|
|
381
|
+
var list = element.o22_1;
|
|
382
382
|
addAll(destination, list);
|
|
383
383
|
}
|
|
384
384
|
return destination;
|
|
@@ -386,7 +386,7 @@
|
|
|
386
386
|
}
|
|
387
387
|
function GpxTrack$_get_points_$ref_4x48pr() {
|
|
388
388
|
return constructCallableReference(function (p0) {
|
|
389
|
-
return p0.
|
|
389
|
+
return p0.p22();
|
|
390
390
|
}, 1, 0, 7);
|
|
391
391
|
}
|
|
392
392
|
function GpxTrack(name, type, segments, kind, roadWidthM, highway) {
|
|
@@ -395,32 +395,32 @@
|
|
|
395
395
|
kind = kind === VOID ? GpxPathKind_TRACK_getInstance() : kind;
|
|
396
396
|
roadWidthM = roadWidthM === VOID ? null : roadWidthM;
|
|
397
397
|
highway = highway === VOID ? null : highway;
|
|
398
|
-
this.
|
|
399
|
-
this.
|
|
400
|
-
this.
|
|
401
|
-
this.
|
|
402
|
-
this.
|
|
403
|
-
this.
|
|
398
|
+
this.h22_1 = name;
|
|
399
|
+
this.i22_1 = type;
|
|
400
|
+
this.j22_1 = segments;
|
|
401
|
+
this.k22_1 = kind;
|
|
402
|
+
this.l22_1 = roadWidthM;
|
|
403
|
+
this.m22_1 = highway;
|
|
404
404
|
var tmp = this;
|
|
405
|
-
tmp.
|
|
405
|
+
tmp.n22_1 = lazy(GpxTrack$points$delegate$lambda(this));
|
|
406
406
|
}
|
|
407
|
-
protoOf(GpxTrack).
|
|
408
|
-
var tmp0 = this.
|
|
407
|
+
protoOf(GpxTrack).p22 = function () {
|
|
408
|
+
var tmp0 = this.n22_1;
|
|
409
409
|
var tmp = KProperty1;
|
|
410
410
|
// Inline function 'kotlin.getValue' call
|
|
411
411
|
getPropertyCallableRef('points', 1, tmp, GpxTrack$_get_points_$ref_4x48pr(), null);
|
|
412
412
|
return tmp0.n1();
|
|
413
413
|
};
|
|
414
414
|
protoOf(GpxTrack).toString = function () {
|
|
415
|
-
return 'GpxTrack(name=' + this.
|
|
415
|
+
return 'GpxTrack(name=' + this.h22_1 + ', type=' + this.i22_1 + ', segments=' + toString_0(this.j22_1) + ', kind=' + this.k22_1.toString() + ', roadWidthM=' + this.l22_1 + ', highway=' + this.m22_1 + ')';
|
|
416
416
|
};
|
|
417
417
|
protoOf(GpxTrack).hashCode = function () {
|
|
418
|
-
var result = this.
|
|
419
|
-
result = imul(result, 31) + (this.
|
|
420
|
-
result = imul(result, 31) + hashCode(this.
|
|
421
|
-
result = imul(result, 31) + this.
|
|
422
|
-
result = imul(result, 31) + (this.
|
|
423
|
-
result = imul(result, 31) + (this.
|
|
418
|
+
var result = this.h22_1 == null ? 0 : getStringHashCode(this.h22_1);
|
|
419
|
+
result = imul(result, 31) + (this.i22_1 == null ? 0 : getStringHashCode(this.i22_1)) | 0;
|
|
420
|
+
result = imul(result, 31) + hashCode(this.j22_1) | 0;
|
|
421
|
+
result = imul(result, 31) + this.k22_1.hashCode() | 0;
|
|
422
|
+
result = imul(result, 31) + (this.l22_1 == null ? 0 : getNumberHashCode(this.l22_1)) | 0;
|
|
423
|
+
result = imul(result, 31) + (this.m22_1 == null ? 0 : getStringHashCode(this.m22_1)) | 0;
|
|
424
424
|
return result;
|
|
425
425
|
};
|
|
426
426
|
protoOf(GpxTrack).equals = function (other) {
|
|
@@ -428,35 +428,35 @@
|
|
|
428
428
|
return true;
|
|
429
429
|
if (!(other instanceof GpxTrack))
|
|
430
430
|
return false;
|
|
431
|
-
if (!(this.
|
|
431
|
+
if (!(this.h22_1 == other.h22_1))
|
|
432
432
|
return false;
|
|
433
|
-
if (!(this.
|
|
433
|
+
if (!(this.i22_1 == other.i22_1))
|
|
434
434
|
return false;
|
|
435
|
-
if (!equals(this.
|
|
435
|
+
if (!equals(this.j22_1, other.j22_1))
|
|
436
436
|
return false;
|
|
437
|
-
if (!this.
|
|
437
|
+
if (!this.k22_1.equals(other.k22_1))
|
|
438
438
|
return false;
|
|
439
|
-
if (!equals(this.
|
|
439
|
+
if (!equals(this.l22_1, other.l22_1))
|
|
440
440
|
return false;
|
|
441
|
-
if (!(this.
|
|
441
|
+
if (!(this.m22_1 == other.m22_1))
|
|
442
442
|
return false;
|
|
443
443
|
return true;
|
|
444
444
|
};
|
|
445
445
|
function GpxSegment(points) {
|
|
446
|
-
this.
|
|
446
|
+
this.o22_1 = points;
|
|
447
447
|
}
|
|
448
448
|
protoOf(GpxSegment).toString = function () {
|
|
449
|
-
return 'GpxSegment(points=' + toString_0(this.
|
|
449
|
+
return 'GpxSegment(points=' + toString_0(this.o22_1) + ')';
|
|
450
450
|
};
|
|
451
451
|
protoOf(GpxSegment).hashCode = function () {
|
|
452
|
-
return hashCode(this.
|
|
452
|
+
return hashCode(this.o22_1);
|
|
453
453
|
};
|
|
454
454
|
protoOf(GpxSegment).equals = function (other) {
|
|
455
455
|
if (this === other)
|
|
456
456
|
return true;
|
|
457
457
|
if (!(other instanceof GpxSegment))
|
|
458
458
|
return false;
|
|
459
|
-
if (!equals(this.
|
|
459
|
+
if (!equals(this.o22_1, other.o22_1))
|
|
460
460
|
return false;
|
|
461
461
|
return true;
|
|
462
462
|
};
|
|
@@ -469,31 +469,31 @@
|
|
|
469
469
|
powerW = powerW === VOID ? null : powerW;
|
|
470
470
|
roadWidthM = roadWidthM === VOID ? null : roadWidthM;
|
|
471
471
|
highway = highway === VOID ? null : highway;
|
|
472
|
-
this.
|
|
473
|
-
this.
|
|
474
|
-
this.
|
|
475
|
-
this.
|
|
476
|
-
this.
|
|
477
|
-
this.
|
|
478
|
-
this.
|
|
479
|
-
this.
|
|
480
|
-
this.
|
|
481
|
-
this.
|
|
472
|
+
this.q22_1 = latitudeDeg;
|
|
473
|
+
this.r22_1 = longitudeDeg;
|
|
474
|
+
this.s22_1 = elevationM;
|
|
475
|
+
this.t22_1 = timeEpochMs;
|
|
476
|
+
this.u22_1 = heartRate;
|
|
477
|
+
this.v22_1 = cadence;
|
|
478
|
+
this.w22_1 = temperatureC;
|
|
479
|
+
this.x22_1 = powerW;
|
|
480
|
+
this.y22_1 = roadWidthM;
|
|
481
|
+
this.z22_1 = highway;
|
|
482
482
|
}
|
|
483
483
|
protoOf(GpxTrackPoint).toString = function () {
|
|
484
|
-
return 'GpxTrackPoint(latitudeDeg=' + this.
|
|
484
|
+
return 'GpxTrackPoint(latitudeDeg=' + this.q22_1 + ', longitudeDeg=' + this.r22_1 + ', elevationM=' + this.s22_1 + ', timeEpochMs=' + toString(this.t22_1) + ', heartRate=' + this.u22_1 + ', cadence=' + this.v22_1 + ', temperatureC=' + this.w22_1 + ', powerW=' + this.x22_1 + ', roadWidthM=' + this.y22_1 + ', highway=' + this.z22_1 + ')';
|
|
485
485
|
};
|
|
486
486
|
protoOf(GpxTrackPoint).hashCode = function () {
|
|
487
|
-
var result = getNumberHashCode(this.
|
|
488
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
489
|
-
result = imul(result, 31) + (this.
|
|
490
|
-
result = imul(result, 31) + (this.
|
|
491
|
-
result = imul(result, 31) + (this.
|
|
492
|
-
result = imul(result, 31) + (this.
|
|
493
|
-
result = imul(result, 31) + (this.u22_1 == null ? 0 : getNumberHashCode(this.u22_1)) | 0;
|
|
494
|
-
result = imul(result, 31) + (this.v22_1 == null ? 0 : getNumberHashCode(this.v22_1)) | 0;
|
|
487
|
+
var result = getNumberHashCode(this.q22_1);
|
|
488
|
+
result = imul(result, 31) + getNumberHashCode(this.r22_1) | 0;
|
|
489
|
+
result = imul(result, 31) + (this.s22_1 == null ? 0 : getNumberHashCode(this.s22_1)) | 0;
|
|
490
|
+
result = imul(result, 31) + (this.t22_1 == null ? 0 : this.t22_1.hashCode()) | 0;
|
|
491
|
+
result = imul(result, 31) + (this.u22_1 == null ? 0 : this.u22_1) | 0;
|
|
492
|
+
result = imul(result, 31) + (this.v22_1 == null ? 0 : this.v22_1) | 0;
|
|
495
493
|
result = imul(result, 31) + (this.w22_1 == null ? 0 : getNumberHashCode(this.w22_1)) | 0;
|
|
496
|
-
result = imul(result, 31) + (this.x22_1 == null ? 0 :
|
|
494
|
+
result = imul(result, 31) + (this.x22_1 == null ? 0 : getNumberHashCode(this.x22_1)) | 0;
|
|
495
|
+
result = imul(result, 31) + (this.y22_1 == null ? 0 : getNumberHashCode(this.y22_1)) | 0;
|
|
496
|
+
result = imul(result, 31) + (this.z22_1 == null ? 0 : getStringHashCode(this.z22_1)) | 0;
|
|
497
497
|
return result;
|
|
498
498
|
};
|
|
499
499
|
protoOf(GpxTrackPoint).equals = function (other) {
|
|
@@ -501,25 +501,25 @@
|
|
|
501
501
|
return true;
|
|
502
502
|
if (!(other instanceof GpxTrackPoint))
|
|
503
503
|
return false;
|
|
504
|
-
if (!equals(this.o22_1, other.o22_1))
|
|
505
|
-
return false;
|
|
506
|
-
if (!equals(this.p22_1, other.p22_1))
|
|
507
|
-
return false;
|
|
508
504
|
if (!equals(this.q22_1, other.q22_1))
|
|
509
505
|
return false;
|
|
510
506
|
if (!equals(this.r22_1, other.r22_1))
|
|
511
507
|
return false;
|
|
512
|
-
if (!(this.s22_1
|
|
508
|
+
if (!equals(this.s22_1, other.s22_1))
|
|
513
509
|
return false;
|
|
514
|
-
if (!(this.t22_1
|
|
510
|
+
if (!equals(this.t22_1, other.t22_1))
|
|
515
511
|
return false;
|
|
516
|
-
if (!
|
|
512
|
+
if (!(this.u22_1 == other.u22_1))
|
|
517
513
|
return false;
|
|
518
|
-
if (!
|
|
514
|
+
if (!(this.v22_1 == other.v22_1))
|
|
519
515
|
return false;
|
|
520
516
|
if (!equals(this.w22_1, other.w22_1))
|
|
521
517
|
return false;
|
|
522
|
-
if (!(this.x22_1
|
|
518
|
+
if (!equals(this.x22_1, other.x22_1))
|
|
519
|
+
return false;
|
|
520
|
+
if (!equals(this.y22_1, other.y22_1))
|
|
521
|
+
return false;
|
|
522
|
+
if (!(this.z22_1 == other.z22_1))
|
|
523
523
|
return false;
|
|
524
524
|
return true;
|
|
525
525
|
};
|
|
@@ -551,11 +551,11 @@
|
|
|
551
551
|
var scale = point - digits.length | 0;
|
|
552
552
|
var tmp;
|
|
553
553
|
if (0 <= scale ? scale <= 22 : false) {
|
|
554
|
-
tmp = toNumber(significand) * $this.
|
|
554
|
+
tmp = toNumber(significand) * $this.d23_1[scale];
|
|
555
555
|
} else {
|
|
556
556
|
var containsArg = -scale | 0;
|
|
557
557
|
if (1 <= containsArg ? containsArg <= 22 : false) {
|
|
558
|
-
tmp = toNumber(significand) / $this.
|
|
558
|
+
tmp = toNumber(significand) / $this.d23_1[-scale | 0];
|
|
559
559
|
} else {
|
|
560
560
|
tmp = null;
|
|
561
561
|
}
|
|
@@ -583,14 +583,14 @@
|
|
|
583
583
|
}
|
|
584
584
|
function GpxDecimal() {
|
|
585
585
|
GpxDecimal_instance = this;
|
|
586
|
-
this.
|
|
587
|
-
this.
|
|
588
|
-
this.
|
|
586
|
+
this.a23_1 = 18;
|
|
587
|
+
this.b23_1 = new Long(0, 2097152);
|
|
588
|
+
this.c23_1 = 22;
|
|
589
589
|
var tmp = this;
|
|
590
590
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
591
|
-
tmp.
|
|
591
|
+
tmp.d23_1 = new Float64Array([1.0, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, 1.0E7, 1.0E8, 1.0E9, 1.0E10, 1.0E11, 1.0E12, 1.0E13, 1.0E14, 1.0E15, 1.0E16, 1.0E17, 1.0E18, 1.0E19, 1.0E20, 1.0E21, 1.0E22]);
|
|
592
592
|
}
|
|
593
|
-
protoOf(GpxDecimal).
|
|
593
|
+
protoOf(GpxDecimal).e23 = function (value) {
|
|
594
594
|
if (!isFinite(value))
|
|
595
595
|
return value.toString();
|
|
596
596
|
var text = value.toString();
|
|
@@ -734,9 +734,9 @@
|
|
|
734
734
|
var GpxPowerSource_COMPUTED_OR_INPUT_instance;
|
|
735
735
|
function Companion_0() {
|
|
736
736
|
Companion_instance_1 = this;
|
|
737
|
-
this.
|
|
737
|
+
this.f23_1 = GpxPowerSource_INPUT_getInstance();
|
|
738
738
|
}
|
|
739
|
-
protoOf(Companion_0).
|
|
739
|
+
protoOf(Companion_0).g23 = function (value) {
|
|
740
740
|
var tmp0 = get_entries_0();
|
|
741
741
|
var tmp$ret$0;
|
|
742
742
|
$l$block: {
|
|
@@ -744,7 +744,7 @@
|
|
|
744
744
|
var _iterator__ex2g4s = tmp0.l();
|
|
745
745
|
while (_iterator__ex2g4s.m()) {
|
|
746
746
|
var element = _iterator__ex2g4s.n();
|
|
747
|
-
if (element.
|
|
747
|
+
if (element.j23() === value) {
|
|
748
748
|
tmp$ret$0 = element;
|
|
749
749
|
break $l$block;
|
|
750
750
|
}
|
|
@@ -753,7 +753,7 @@
|
|
|
753
753
|
}
|
|
754
754
|
return tmp$ret$0;
|
|
755
755
|
};
|
|
756
|
-
protoOf(Companion_0).
|
|
756
|
+
protoOf(Companion_0).k23 = function () {
|
|
757
757
|
// Inline function 'kotlin.collections.map' call
|
|
758
758
|
var this_0 = get_entries_0();
|
|
759
759
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -761,7 +761,7 @@
|
|
|
761
761
|
var _iterator__ex2g4s = this_0.l();
|
|
762
762
|
while (_iterator__ex2g4s.m()) {
|
|
763
763
|
var item = _iterator__ex2g4s.n();
|
|
764
|
-
var tmp$ret$2 = item.
|
|
764
|
+
var tmp$ret$2 = item.j23();
|
|
765
765
|
destination.k(tmp$ret$2);
|
|
766
766
|
}
|
|
767
767
|
return destination;
|
|
@@ -785,7 +785,7 @@
|
|
|
785
785
|
function GpxPowerSource(name, ordinal) {
|
|
786
786
|
Enum.call(this, name, ordinal);
|
|
787
787
|
}
|
|
788
|
-
protoOf(GpxPowerSource).
|
|
788
|
+
protoOf(GpxPowerSource).j23 = function () {
|
|
789
789
|
var tmp;
|
|
790
790
|
switch (this.v1_1) {
|
|
791
791
|
case 0:
|
|
@@ -816,9 +816,10 @@
|
|
|
816
816
|
startTime = startTime === VOID ? null : startTime;
|
|
817
817
|
powerSource = powerSource === VOID ? GpxPowerSource_INPUT_getInstance() : powerSource;
|
|
818
818
|
var startTimeMs = startTime == null ? null : startTime.hg();
|
|
819
|
+
var t0 = _this__u8e3s4.l23_1 === 0 || isNaN_0(_this__u8e3s4.n23(0)) ? 0.0 : _this__u8e3s4.n23(0);
|
|
819
820
|
// Inline function 'kotlin.collections.List' call
|
|
820
821
|
// Inline function 'kotlin.collections.MutableList' call
|
|
821
|
-
var size = _this__u8e3s4.
|
|
822
|
+
var size = _this__u8e3s4.l23_1;
|
|
822
823
|
var list = ArrayList_init_$Create$_0(size);
|
|
823
824
|
// Inline function 'kotlin.repeat' call
|
|
824
825
|
var inductionVariable = 0;
|
|
@@ -826,10 +827,10 @@
|
|
|
826
827
|
do {
|
|
827
828
|
var index = inductionVariable;
|
|
828
829
|
inductionVariable = inductionVariable + 1 | 0;
|
|
829
|
-
var tmp = _this__u8e3s4.
|
|
830
|
-
var tmp_0 = _this__u8e3s4.
|
|
830
|
+
var tmp = _this__u8e3s4.o23(index) * 57.29577951308232;
|
|
831
|
+
var tmp_0 = _this__u8e3s4.p23(index) * 57.29577951308232;
|
|
831
832
|
// Inline function 'kotlin.takeUnless' call
|
|
832
|
-
var this_0 = _this__u8e3s4.
|
|
833
|
+
var this_0 = _this__u8e3s4.q23(index);
|
|
833
834
|
var tmp_1;
|
|
834
835
|
if (!isNaN_0(this_0)) {
|
|
835
836
|
tmp_1 = this_0;
|
|
@@ -838,13 +839,13 @@
|
|
|
838
839
|
}
|
|
839
840
|
var tmp_2 = tmp_1;
|
|
840
841
|
var tmp_3;
|
|
841
|
-
if (isNaN_0(_this__u8e3s4.
|
|
842
|
+
if (isNaN_0(_this__u8e3s4.n23(index))) {
|
|
842
843
|
tmp_3 = null;
|
|
843
844
|
} else if (!(startTimeMs == null)) {
|
|
844
|
-
tmp_3 = add(startTimeMs, roundToLong(_this__u8e3s4.
|
|
845
|
+
tmp_3 = add(startTimeMs, roundToLong(_this__u8e3s4.n23(index) - t0));
|
|
845
846
|
} else {
|
|
846
847
|
// Inline function 'kotlin.takeIf' call
|
|
847
|
-
var this_1 = numberToLong(_this__u8e3s4.
|
|
848
|
+
var this_1 = numberToLong(_this__u8e3s4.n23(index));
|
|
848
849
|
var tmp_4;
|
|
849
850
|
if (compare(this_1, new Long(0, 0)) > 0) {
|
|
850
851
|
tmp_4 = this_1;
|
|
@@ -855,7 +856,7 @@
|
|
|
855
856
|
}
|
|
856
857
|
var tmp_5 = tmp_3;
|
|
857
858
|
// Inline function 'kotlin.takeUnless' call
|
|
858
|
-
var this_2 = _this__u8e3s4.
|
|
859
|
+
var this_2 = _this__u8e3s4.r23(index);
|
|
859
860
|
var tmp_6;
|
|
860
861
|
if (!isNaN_0(this_2)) {
|
|
861
862
|
tmp_6 = this_2;
|
|
@@ -865,7 +866,7 @@
|
|
|
865
866
|
var tmp0_safe_receiver = tmp_6;
|
|
866
867
|
var tmp_7 = tmp0_safe_receiver == null ? null : roundToInt(tmp0_safe_receiver);
|
|
867
868
|
// Inline function 'kotlin.takeUnless' call
|
|
868
|
-
var this_3 = _this__u8e3s4.
|
|
869
|
+
var this_3 = _this__u8e3s4.s23(index);
|
|
869
870
|
var tmp_8;
|
|
870
871
|
if (!isNaN_0(this_3)) {
|
|
871
872
|
tmp_8 = this_3;
|
|
@@ -875,7 +876,7 @@
|
|
|
875
876
|
var tmp1_safe_receiver = tmp_8;
|
|
876
877
|
var tmp_9 = tmp1_safe_receiver == null ? null : roundToInt(tmp1_safe_receiver);
|
|
877
878
|
// Inline function 'kotlin.takeUnless' call
|
|
878
|
-
var this_4 = _this__u8e3s4.
|
|
879
|
+
var this_4 = _this__u8e3s4.t23(index);
|
|
879
880
|
var tmp_10;
|
|
880
881
|
if (!isNaN_0(this_4)) {
|
|
881
882
|
tmp_10 = this_4;
|
|
@@ -888,11 +889,11 @@
|
|
|
888
889
|
}
|
|
889
890
|
while (inductionVariable < size);
|
|
890
891
|
var points = list;
|
|
891
|
-
return Companion_instance_0.
|
|
892
|
+
return Companion_instance_0.g22(name, type, points);
|
|
892
893
|
}
|
|
893
894
|
function powerAt(_this__u8e3s4, i, source) {
|
|
894
895
|
// Inline function 'kotlin.takeUnless' call
|
|
895
|
-
var this_0 = _this__u8e3s4.
|
|
896
|
+
var this_0 = _this__u8e3s4.u23(i);
|
|
896
897
|
var tmp;
|
|
897
898
|
if (!isNaN_0(this_0)) {
|
|
898
899
|
tmp = this_0;
|
|
@@ -901,7 +902,7 @@
|
|
|
901
902
|
}
|
|
902
903
|
var input = tmp;
|
|
903
904
|
// Inline function 'kotlin.takeUnless' call
|
|
904
|
-
var this_1 = _this__u8e3s4.
|
|
905
|
+
var this_1 = _this__u8e3s4.v23(i);
|
|
905
906
|
var tmp_0;
|
|
906
907
|
if (!(isNaN_0(this_1) || this_1 === 0.0)) {
|
|
907
908
|
tmp_0 = this_1;
|
|
@@ -941,7 +942,7 @@
|
|
|
941
942
|
function parseOnce($this, xml) {
|
|
942
943
|
var tmp;
|
|
943
944
|
try {
|
|
944
|
-
tmp = get_xmlStreaming().
|
|
945
|
+
tmp = get_xmlStreaming().t1k(xml);
|
|
945
946
|
} catch ($p) {
|
|
946
947
|
var tmp_0;
|
|
947
948
|
if ($p instanceof IllegalArgumentException) {
|
|
@@ -975,7 +976,7 @@
|
|
|
975
976
|
}
|
|
976
977
|
}
|
|
977
978
|
finally {
|
|
978
|
-
reader.
|
|
979
|
+
reader.b1k();
|
|
979
980
|
}
|
|
980
981
|
return tmp_1;
|
|
981
982
|
}
|
|
@@ -983,8 +984,8 @@
|
|
|
983
984
|
while (reader.m()) {
|
|
984
985
|
var ev = reader.n();
|
|
985
986
|
if (ev.equals(EventType_START_ELEMENT_getInstance())) {
|
|
986
|
-
if (!(reader.
|
|
987
|
-
throw IllegalArgumentException_init_$Create$_0('Invalid GPX file: missing gpx root element (found ' + reader.
|
|
987
|
+
if (!(reader.o1j() === 'gpx')) {
|
|
988
|
+
throw IllegalArgumentException_init_$Create$_0('Invalid GPX file: missing gpx root element (found ' + reader.o1j() + ')');
|
|
988
989
|
}
|
|
989
990
|
return parseGpxRoot($this, reader);
|
|
990
991
|
}
|
|
@@ -1001,7 +1002,7 @@
|
|
|
1001
1002
|
var ev = reader.n();
|
|
1002
1003
|
switch (ev.v1_1) {
|
|
1003
1004
|
case 1:
|
|
1004
|
-
switch (reader.
|
|
1005
|
+
switch (reader.o1j()) {
|
|
1005
1006
|
case 'metadata':
|
|
1006
1007
|
var metaName = parseMetadataName($this, reader);
|
|
1007
1008
|
if (!(metaName == null))
|
|
@@ -1036,7 +1037,7 @@
|
|
|
1036
1037
|
var ev = reader.n();
|
|
1037
1038
|
switch (ev.v1_1) {
|
|
1038
1039
|
case 1:
|
|
1039
|
-
if (reader.
|
|
1040
|
+
if (reader.o1j() === 'name' && name == null) {
|
|
1040
1041
|
// Inline function 'kotlin.text.trim' call
|
|
1041
1042
|
var this_0 = readElementText($this, reader);
|
|
1042
1043
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
@@ -1072,7 +1073,7 @@
|
|
|
1072
1073
|
var ev = reader.n();
|
|
1073
1074
|
switch (ev.v1_1) {
|
|
1074
1075
|
case 1:
|
|
1075
|
-
switch (reader.
|
|
1076
|
+
switch (reader.o1j()) {
|
|
1076
1077
|
case 'name':
|
|
1077
1078
|
// Inline function 'kotlin.text.trim' call
|
|
1078
1079
|
|
|
@@ -1122,12 +1123,12 @@
|
|
|
1122
1123
|
|
|
1123
1124
|
break;
|
|
1124
1125
|
case 2:
|
|
1125
|
-
return new GpxTrack(name, type, segments, VOID, trackExt.
|
|
1126
|
+
return new GpxTrack(name, type, segments, VOID, trackExt.a24_1);
|
|
1126
1127
|
default:
|
|
1127
1128
|
break;
|
|
1128
1129
|
}
|
|
1129
1130
|
}
|
|
1130
|
-
return new GpxTrack(name, type, segments, VOID, trackExt.
|
|
1131
|
+
return new GpxTrack(name, type, segments, VOID, trackExt.a24_1);
|
|
1131
1132
|
}
|
|
1132
1133
|
function parseRoute($this, reader) {
|
|
1133
1134
|
var name = null;
|
|
@@ -1138,7 +1139,7 @@
|
|
|
1138
1139
|
var ev = reader.n();
|
|
1139
1140
|
switch (ev.v1_1) {
|
|
1140
1141
|
case 1:
|
|
1141
|
-
switch (reader.
|
|
1142
|
+
switch (reader.o1j()) {
|
|
1142
1143
|
case 'name':
|
|
1143
1144
|
// Inline function 'kotlin.text.trim' call
|
|
1144
1145
|
|
|
@@ -1199,7 +1200,7 @@
|
|
|
1199
1200
|
var ev = reader.n();
|
|
1200
1201
|
switch (ev.v1_1) {
|
|
1201
1202
|
case 1:
|
|
1202
|
-
if (reader.
|
|
1203
|
+
if (reader.o1j() === 'trkpt') {
|
|
1203
1204
|
points.k(parseTrackPoint($this, reader));
|
|
1204
1205
|
} else {
|
|
1205
1206
|
skipElement($this, reader);
|
|
@@ -1215,8 +1216,8 @@
|
|
|
1215
1216
|
return new GpxSegment(points);
|
|
1216
1217
|
}
|
|
1217
1218
|
function parseTrackPoint($this, reader) {
|
|
1218
|
-
var latStr = reader.
|
|
1219
|
-
var lonStr = reader.
|
|
1219
|
+
var latStr = reader.z1j(null, 'lat');
|
|
1220
|
+
var lonStr = reader.z1j(null, 'lon');
|
|
1220
1221
|
var tmp;
|
|
1221
1222
|
// Inline function 'kotlin.text.isNullOrBlank' call
|
|
1222
1223
|
if (latStr == null || isBlank(latStr)) {
|
|
@@ -1251,7 +1252,7 @@
|
|
|
1251
1252
|
var ev = reader.n();
|
|
1252
1253
|
switch (ev.v1_1) {
|
|
1253
1254
|
case 1:
|
|
1254
|
-
switch (reader.
|
|
1255
|
+
switch (reader.o1j()) {
|
|
1255
1256
|
case 'ele':
|
|
1256
1257
|
// Inline function 'kotlin.text.trim' call
|
|
1257
1258
|
|
|
@@ -1285,16 +1286,16 @@
|
|
|
1285
1286
|
|
|
1286
1287
|
break;
|
|
1287
1288
|
case 2:
|
|
1288
|
-
return new GpxTrackPoint(lat, lon, elevation, timeMs, ext.
|
|
1289
|
+
return new GpxTrackPoint(lat, lon, elevation, timeMs, ext.w23_1, ext.x23_1, ext.y23_1, ext.z23_1, ext.a24_1, ext.b24_1);
|
|
1289
1290
|
default:
|
|
1290
1291
|
break;
|
|
1291
1292
|
}
|
|
1292
1293
|
}
|
|
1293
|
-
return new GpxTrackPoint(lat, lon, elevation, timeMs, ext.
|
|
1294
|
+
return new GpxTrackPoint(lat, lon, elevation, timeMs, ext.w23_1, ext.x23_1, ext.y23_1, ext.z23_1, ext.a24_1, ext.b24_1);
|
|
1294
1295
|
}
|
|
1295
1296
|
function parseWaypoint($this, reader) {
|
|
1296
|
-
var latStr = reader.
|
|
1297
|
-
var lonStr = reader.
|
|
1297
|
+
var latStr = reader.z1j(null, 'lat');
|
|
1298
|
+
var lonStr = reader.z1j(null, 'lon');
|
|
1298
1299
|
var tmp;
|
|
1299
1300
|
// Inline function 'kotlin.text.isNullOrBlank' call
|
|
1300
1301
|
if (latStr == null || isBlank(latStr)) {
|
|
@@ -1332,7 +1333,7 @@
|
|
|
1332
1333
|
var ev = reader.n();
|
|
1333
1334
|
switch (ev.v1_1) {
|
|
1334
1335
|
case 1:
|
|
1335
|
-
switch (reader.
|
|
1336
|
+
switch (reader.o1j()) {
|
|
1336
1337
|
case 'ele':
|
|
1337
1338
|
// Inline function 'kotlin.text.trim' call
|
|
1338
1339
|
|
|
@@ -1447,7 +1448,7 @@
|
|
|
1447
1448
|
var ev = reader.n();
|
|
1448
1449
|
switch (ev.v1_1) {
|
|
1449
1450
|
case 1:
|
|
1450
|
-
var ln = reader.
|
|
1451
|
+
var ln = reader.o1j();
|
|
1451
1452
|
// Inline function 'kotlin.text.lowercase' call
|
|
1452
1453
|
|
|
1453
1454
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1460,8 +1461,8 @@
|
|
|
1460
1461
|
else {
|
|
1461
1462
|
// Inline function 'kotlin.let' call
|
|
1462
1463
|
var tmp = ext;
|
|
1463
|
-
var tmp0_elvis_lhs = ext.
|
|
1464
|
-
tmp.
|
|
1464
|
+
var tmp0_elvis_lhs = ext.z23_1;
|
|
1465
|
+
tmp.z23_1 = tmp0_elvis_lhs == null ? tmp2_safe_receiver : tmp0_elvis_lhs;
|
|
1465
1466
|
}
|
|
1466
1467
|
|
|
1467
1468
|
break;
|
|
@@ -1472,8 +1473,8 @@
|
|
|
1472
1473
|
null;
|
|
1473
1474
|
else {
|
|
1474
1475
|
// Inline function 'kotlin.let' call
|
|
1475
|
-
if (ext.
|
|
1476
|
-
ext.
|
|
1476
|
+
if (ext.w23_1 == null)
|
|
1477
|
+
ext.w23_1 = numberToInt(tmp3_safe_receiver);
|
|
1477
1478
|
}
|
|
1478
1479
|
|
|
1479
1480
|
break;
|
|
@@ -1484,8 +1485,8 @@
|
|
|
1484
1485
|
null;
|
|
1485
1486
|
else {
|
|
1486
1487
|
// Inline function 'kotlin.let' call
|
|
1487
|
-
if (ext.
|
|
1488
|
-
ext.
|
|
1488
|
+
if (ext.x23_1 == null)
|
|
1489
|
+
ext.x23_1 = numberToInt(tmp4_safe_receiver);
|
|
1489
1490
|
}
|
|
1490
1491
|
|
|
1491
1492
|
break;
|
|
@@ -1498,8 +1499,8 @@
|
|
|
1498
1499
|
else {
|
|
1499
1500
|
// Inline function 'kotlin.let' call
|
|
1500
1501
|
var tmp_0 = ext;
|
|
1501
|
-
var tmp0_elvis_lhs_0 = ext.
|
|
1502
|
-
tmp_0.
|
|
1502
|
+
var tmp0_elvis_lhs_0 = ext.y23_1;
|
|
1503
|
+
tmp_0.y23_1 = tmp0_elvis_lhs_0 == null ? tmp5_safe_receiver : tmp0_elvis_lhs_0;
|
|
1503
1504
|
}
|
|
1504
1505
|
|
|
1505
1506
|
break;
|
|
@@ -1510,8 +1511,8 @@
|
|
|
1510
1511
|
else {
|
|
1511
1512
|
// Inline function 'kotlin.let' call
|
|
1512
1513
|
var tmp_1 = ext;
|
|
1513
|
-
var tmp0_elvis_lhs_1 = ext.
|
|
1514
|
-
tmp_1.
|
|
1514
|
+
var tmp0_elvis_lhs_1 = ext.a24_1;
|
|
1515
|
+
tmp_1.a24_1 = tmp0_elvis_lhs_1 == null ? tmp6_safe_receiver : tmp0_elvis_lhs_1;
|
|
1515
1516
|
}
|
|
1516
1517
|
|
|
1517
1518
|
break;
|
|
@@ -1524,13 +1525,13 @@
|
|
|
1524
1525
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1525
1526
|
|
|
1526
1527
|
if (charSequenceLength(text) > 0) {
|
|
1527
|
-
tmp_2 = ext.
|
|
1528
|
+
tmp_2 = ext.b24_1 == null;
|
|
1528
1529
|
} else {
|
|
1529
1530
|
tmp_2 = false;
|
|
1530
1531
|
}
|
|
1531
1532
|
|
|
1532
1533
|
if (tmp_2)
|
|
1533
|
-
ext.
|
|
1534
|
+
ext.b24_1 = text;
|
|
1534
1535
|
break;
|
|
1535
1536
|
default:
|
|
1536
1537
|
parseExtensions($this, reader, ext);
|
|
@@ -1554,7 +1555,7 @@
|
|
|
1554
1555
|
case 5:
|
|
1555
1556
|
case 9:
|
|
1556
1557
|
case 8:
|
|
1557
|
-
sb.u6(reader.
|
|
1558
|
+
sb.u6(reader.t1j());
|
|
1558
1559
|
break;
|
|
1559
1560
|
case 1:
|
|
1560
1561
|
skipElement($this, reader);
|
|
@@ -1616,16 +1617,16 @@
|
|
|
1616
1617
|
powerW = powerW === VOID ? null : powerW;
|
|
1617
1618
|
roadWidthM = roadWidthM === VOID ? null : roadWidthM;
|
|
1618
1619
|
highway = highway === VOID ? null : highway;
|
|
1619
|
-
this.
|
|
1620
|
-
this.
|
|
1621
|
-
this.
|
|
1622
|
-
this.
|
|
1623
|
-
this.
|
|
1624
|
-
this.
|
|
1620
|
+
this.w23_1 = heartRate;
|
|
1621
|
+
this.x23_1 = cadence;
|
|
1622
|
+
this.y23_1 = temperatureC;
|
|
1623
|
+
this.z23_1 = powerW;
|
|
1624
|
+
this.a24_1 = roadWidthM;
|
|
1625
|
+
this.b24_1 = highway;
|
|
1625
1626
|
}
|
|
1626
1627
|
function GpxParser() {
|
|
1627
1628
|
}
|
|
1628
|
-
protoOf(GpxParser).
|
|
1629
|
+
protoOf(GpxParser).c24 = function (xml, repairOnFailure) {
|
|
1629
1630
|
var tmp;
|
|
1630
1631
|
try {
|
|
1631
1632
|
tmp = parseOnce(this, xml);
|
|
@@ -1635,7 +1636,7 @@
|
|
|
1635
1636
|
var firstFailure = $p;
|
|
1636
1637
|
if (!repairOnFailure)
|
|
1637
1638
|
throw firstFailure;
|
|
1638
|
-
var repaired = GpxXmlRepair_getInstance().
|
|
1639
|
+
var repaired = GpxXmlRepair_getInstance().g24(xml);
|
|
1639
1640
|
var tmp_1;
|
|
1640
1641
|
try {
|
|
1641
1642
|
tmp_1 = parseOnce(this, repaired);
|
|
@@ -1656,9 +1657,9 @@
|
|
|
1656
1657
|
}
|
|
1657
1658
|
return tmp;
|
|
1658
1659
|
};
|
|
1659
|
-
protoOf(GpxParser).
|
|
1660
|
+
protoOf(GpxParser).h24 = function (xml, repairOnFailure, $super) {
|
|
1660
1661
|
repairOnFailure = repairOnFailure === VOID ? true : repairOnFailure;
|
|
1661
|
-
return $super === VOID ? this.
|
|
1662
|
+
return $super === VOID ? this.c24(xml, repairOnFailure) : $super.c24.call(this, xml, repairOnFailure);
|
|
1662
1663
|
};
|
|
1663
1664
|
var GpxParser_instance;
|
|
1664
1665
|
function GpxParser_getInstance() {
|
|
@@ -1676,7 +1677,7 @@
|
|
|
1676
1677
|
var PLAUSIBLE_ROAD_WIDTH_M;
|
|
1677
1678
|
function firstTrackAsPath(_this__u8e3s4) {
|
|
1678
1679
|
_init_properties_GpxToPath_kt__pb67h9();
|
|
1679
|
-
var tmp0_elvis_lhs = firstOrNull(_this__u8e3s4.
|
|
1680
|
+
var tmp0_elvis_lhs = firstOrNull(_this__u8e3s4.d22_1);
|
|
1680
1681
|
var tmp;
|
|
1681
1682
|
if (tmp0_elvis_lhs == null) {
|
|
1682
1683
|
// Inline function 'kotlin.error' call
|
|
@@ -1692,16 +1693,16 @@
|
|
|
1692
1693
|
kinds = kinds === VOID ? get_ALL_KINDS() : kinds;
|
|
1693
1694
|
_init_properties_GpxToPath_kt__pb67h9();
|
|
1694
1695
|
// Inline function 'kotlin.collections.filter' call
|
|
1695
|
-
var tmp0 = _this__u8e3s4.
|
|
1696
|
+
var tmp0 = _this__u8e3s4.d22_1;
|
|
1696
1697
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1697
1698
|
var destination = ArrayList_init_$Create$();
|
|
1698
1699
|
var _iterator__ex2g4s = tmp0.l();
|
|
1699
1700
|
while (_iterator__ex2g4s.m()) {
|
|
1700
1701
|
var element = _iterator__ex2g4s.n();
|
|
1701
1702
|
var tmp;
|
|
1702
|
-
if (kinds.i1(element.
|
|
1703
|
+
if (kinds.i1(element.k22_1)) {
|
|
1703
1704
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1704
|
-
tmp = !element.
|
|
1705
|
+
tmp = !element.p22().q();
|
|
1705
1706
|
} else {
|
|
1706
1707
|
tmp = false;
|
|
1707
1708
|
}
|
|
@@ -1724,13 +1725,13 @@
|
|
|
1724
1725
|
kinds = kinds === VOID ? get_ALL_KINDS() : kinds;
|
|
1725
1726
|
_init_properties_GpxToPath_kt__pb67h9();
|
|
1726
1727
|
// Inline function 'kotlin.collections.filter' call
|
|
1727
|
-
var tmp0 = _this__u8e3s4.
|
|
1728
|
+
var tmp0 = _this__u8e3s4.d22_1;
|
|
1728
1729
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1729
1730
|
var destination = ArrayList_init_$Create$();
|
|
1730
1731
|
var _iterator__ex2g4s = tmp0.l();
|
|
1731
1732
|
while (_iterator__ex2g4s.m()) {
|
|
1732
1733
|
var element = _iterator__ex2g4s.n();
|
|
1733
|
-
if (kinds.i1(element.
|
|
1734
|
+
if (kinds.i1(element.k22_1)) {
|
|
1734
1735
|
destination.k(element);
|
|
1735
1736
|
}
|
|
1736
1737
|
}
|
|
@@ -1741,13 +1742,13 @@
|
|
|
1741
1742
|
while (_iterator__ex2g4s_0.m()) {
|
|
1742
1743
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
1743
1744
|
// Inline function 'kotlin.collections.map' call
|
|
1744
|
-
var this_0 = element_0.
|
|
1745
|
+
var this_0 = element_0.j22_1;
|
|
1745
1746
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1746
1747
|
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
1747
1748
|
var _iterator__ex2g4s_1 = this_0.l();
|
|
1748
1749
|
while (_iterator__ex2g4s_1.m()) {
|
|
1749
1750
|
var item = _iterator__ex2g4s_1.n();
|
|
1750
|
-
var tmp$ret$8 = to(element_0.
|
|
1751
|
+
var tmp$ret$8 = to(element_0.l22_1, item);
|
|
1751
1752
|
destination_1.k(tmp$ret$8);
|
|
1752
1753
|
}
|
|
1753
1754
|
var list = destination_1;
|
|
@@ -1760,7 +1761,7 @@
|
|
|
1760
1761
|
while (_iterator__ex2g4s_2.m()) {
|
|
1761
1762
|
var element_1 = _iterator__ex2g4s_2.n();
|
|
1762
1763
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1763
|
-
if (!element_1.jc_1.
|
|
1764
|
+
if (!element_1.jc_1.o22_1.q()) {
|
|
1764
1765
|
destination_2.k(element_1);
|
|
1765
1766
|
}
|
|
1766
1767
|
}
|
|
@@ -1779,11 +1780,11 @@
|
|
|
1779
1780
|
}
|
|
1780
1781
|
function toPath(_this__u8e3s4) {
|
|
1781
1782
|
_init_properties_GpxToPath_kt__pb67h9();
|
|
1782
|
-
return pointsToPath(_this__u8e3s4.
|
|
1783
|
+
return pointsToPath(_this__u8e3s4.p22(), _this__u8e3s4.l22_1);
|
|
1783
1784
|
}
|
|
1784
1785
|
function toPath_0(_this__u8e3s4, trackRoadWidthM) {
|
|
1785
1786
|
_init_properties_GpxToPath_kt__pb67h9();
|
|
1786
|
-
return pointsToPath(_this__u8e3s4.
|
|
1787
|
+
return pointsToPath(_this__u8e3s4.o22_1, trackRoadWidthM);
|
|
1787
1788
|
}
|
|
1788
1789
|
function pointsToPath(points, trackRoadWidthM) {
|
|
1789
1790
|
trackRoadWidthM = trackRoadWidthM === VOID ? null : trackRoadWidthM;
|
|
@@ -1795,28 +1796,28 @@
|
|
|
1795
1796
|
var i = index;
|
|
1796
1797
|
index = index + 1 | 0;
|
|
1797
1798
|
var p = iterator.n();
|
|
1798
|
-
path.
|
|
1799
|
-
path.
|
|
1800
|
-
var tmp0_elvis_lhs = p.
|
|
1801
|
-
path.
|
|
1802
|
-
var tmp1_elvis_lhs = p.
|
|
1803
|
-
path.
|
|
1804
|
-
var tmp2_elvis_lhs = p.
|
|
1805
|
-
path.
|
|
1806
|
-
var tmp3_safe_receiver = p.
|
|
1799
|
+
path.i24(i, p.q22_1 * 0.017453292519943295);
|
|
1800
|
+
path.j24(i, p.r22_1 * 0.017453292519943295);
|
|
1801
|
+
var tmp0_elvis_lhs = p.s22_1;
|
|
1802
|
+
path.k24(i, tmp0_elvis_lhs == null ? 0.0 : tmp0_elvis_lhs);
|
|
1803
|
+
var tmp1_elvis_lhs = p.t22_1;
|
|
1804
|
+
path.l24(i, toNumber(tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs));
|
|
1805
|
+
var tmp2_elvis_lhs = p.x22_1;
|
|
1806
|
+
path.m24(i, tmp2_elvis_lhs == null ? NaN : tmp2_elvis_lhs);
|
|
1807
|
+
var tmp3_safe_receiver = p.u22_1;
|
|
1807
1808
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver;
|
|
1808
|
-
path.
|
|
1809
|
-
var tmp5_safe_receiver = p.
|
|
1809
|
+
path.n24(i, tmp4_elvis_lhs == null ? NaN : tmp4_elvis_lhs);
|
|
1810
|
+
var tmp5_safe_receiver = p.v22_1;
|
|
1810
1811
|
var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : tmp5_safe_receiver;
|
|
1811
|
-
path.
|
|
1812
|
-
var tmp7_elvis_lhs = p.
|
|
1813
|
-
path.
|
|
1814
|
-
var tmp8_elvis_lhs = p.
|
|
1812
|
+
path.o24(i, tmp6_elvis_lhs == null ? NaN : tmp6_elvis_lhs);
|
|
1813
|
+
var tmp7_elvis_lhs = p.w22_1;
|
|
1814
|
+
path.p24(i, tmp7_elvis_lhs == null ? NaN : tmp7_elvis_lhs);
|
|
1815
|
+
var tmp8_elvis_lhs = p.y22_1;
|
|
1815
1816
|
var tmp9_elvis_lhs = tmp8_elvis_lhs == null ? trackRoadWidthM : tmp8_elvis_lhs;
|
|
1816
|
-
var width = tmp9_elvis_lhs == null ? OsmHighway_getInstance().
|
|
1817
|
-
path.
|
|
1817
|
+
var width = tmp9_elvis_lhs == null ? OsmHighway_getInstance().r24(p.z22_1) : tmp9_elvis_lhs;
|
|
1818
|
+
path.s24(i, !(width == null) && get_PLAUSIBLE_ROAD_WIDTH_M().u(width) ? width : NaN);
|
|
1818
1819
|
}
|
|
1819
|
-
path.
|
|
1820
|
+
path.e25();
|
|
1820
1821
|
return path;
|
|
1821
1822
|
}
|
|
1822
1823
|
var properties_initialized_GpxToPath_kt_83hcm9;
|
|
@@ -1828,14 +1829,14 @@
|
|
|
1828
1829
|
}
|
|
1829
1830
|
}
|
|
1830
1831
|
function writeDocument($this, w, document, writeExtensions) {
|
|
1831
|
-
w.
|
|
1832
|
-
w.
|
|
1832
|
+
w.t1l('', 'http://www.topografix.com/GPX/1/1');
|
|
1833
|
+
w.t1l('xsi', 'http://www.w3.org/2001/XMLSchema-instance');
|
|
1833
1834
|
if (writeExtensions) {
|
|
1834
|
-
w.
|
|
1835
|
+
w.t1l('gpxtpx', 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1');
|
|
1835
1836
|
}
|
|
1836
1837
|
var tmp;
|
|
1837
1838
|
if (writeExtensions) {
|
|
1838
|
-
var tmp0 = document.
|
|
1839
|
+
var tmp0 = document.d22_1;
|
|
1839
1840
|
var tmp$ret$0;
|
|
1840
1841
|
$l$block_2: {
|
|
1841
1842
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -1853,10 +1854,10 @@
|
|
|
1853
1854
|
while (_iterator__ex2g4s.m()) {
|
|
1854
1855
|
var element = _iterator__ex2g4s.n();
|
|
1855
1856
|
var tmp_1;
|
|
1856
|
-
if (element.
|
|
1857
|
+
if (element.k22_1.equals(GpxPathKind_TRACK_getInstance()) && !(element.l22_1 == null)) {
|
|
1857
1858
|
tmp_1 = true;
|
|
1858
1859
|
} else {
|
|
1859
|
-
var tmp0_0 = element.
|
|
1860
|
+
var tmp0_0 = element.p22();
|
|
1860
1861
|
var tmp$ret$2;
|
|
1861
1862
|
$l$block_1: {
|
|
1862
1863
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -1873,7 +1874,7 @@
|
|
|
1873
1874
|
var _iterator__ex2g4s_0 = tmp0_0.l();
|
|
1874
1875
|
while (_iterator__ex2g4s_0.m()) {
|
|
1875
1876
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
1876
|
-
if (!(element_0.
|
|
1877
|
+
if (!(element_0.y22_1 == null)) {
|
|
1877
1878
|
tmp$ret$2 = true;
|
|
1878
1879
|
break $l$block_1;
|
|
1879
1880
|
}
|
|
@@ -1895,30 +1896,30 @@
|
|
|
1895
1896
|
}
|
|
1896
1897
|
var hasRoadWidth = tmp;
|
|
1897
1898
|
if (hasRoadWidth) {
|
|
1898
|
-
w.
|
|
1899
|
+
w.t1l('vc', 'https://github.com/glandais/vcyclist/xmlschemas/v1');
|
|
1899
1900
|
}
|
|
1900
|
-
w.
|
|
1901
|
-
w.
|
|
1902
|
-
w.
|
|
1903
|
-
w.
|
|
1904
|
-
w.
|
|
1901
|
+
w.v1l('http://www.topografix.com/GPX/1/1', 'gpx', '');
|
|
1902
|
+
w.x1l(null, 'version', null, '1.1');
|
|
1903
|
+
w.x1l(null, 'creator', null, '@glandais/vcyclist');
|
|
1904
|
+
w.u1l('', 'http://www.topografix.com/GPX/1/1');
|
|
1905
|
+
w.u1l('xsi', 'http://www.w3.org/2001/XMLSchema-instance');
|
|
1905
1906
|
if (writeExtensions) {
|
|
1906
|
-
w.
|
|
1907
|
+
w.u1l('gpxtpx', 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1');
|
|
1907
1908
|
}
|
|
1908
1909
|
if (hasRoadWidth) {
|
|
1909
|
-
w.
|
|
1910
|
+
w.u1l('vc', 'https://github.com/glandais/vcyclist/xmlschemas/v1');
|
|
1910
1911
|
}
|
|
1911
|
-
w.
|
|
1912
|
-
writeMetadata($this, w, document.
|
|
1913
|
-
var _iterator__ex2g4s_1 = document.
|
|
1912
|
+
w.x1l('http://www.w3.org/2001/XMLSchema-instance', 'schemaLocation', 'xsi', 'http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd');
|
|
1913
|
+
writeMetadata($this, w, document.c22_1);
|
|
1914
|
+
var _iterator__ex2g4s_1 = document.e22_1.l();
|
|
1914
1915
|
while (_iterator__ex2g4s_1.m()) {
|
|
1915
1916
|
var waypoint = _iterator__ex2g4s_1.n();
|
|
1916
1917
|
writeWaypoint($this, w, waypoint);
|
|
1917
1918
|
}
|
|
1918
|
-
var _iterator__ex2g4s_2 = document.
|
|
1919
|
+
var _iterator__ex2g4s_2 = document.d22_1.l();
|
|
1919
1920
|
while (_iterator__ex2g4s_2.m()) {
|
|
1920
1921
|
var track = _iterator__ex2g4s_2.n();
|
|
1921
|
-
switch (track.
|
|
1922
|
+
switch (track.k22_1.v1_1) {
|
|
1922
1923
|
case 1:
|
|
1923
1924
|
writeRoute($this, w, track, writeExtensions);
|
|
1924
1925
|
break;
|
|
@@ -1930,150 +1931,150 @@
|
|
|
1930
1931
|
break;
|
|
1931
1932
|
}
|
|
1932
1933
|
}
|
|
1933
|
-
w.
|
|
1934
|
+
w.a1m('http://www.topografix.com/GPX/1/1', 'gpx', '');
|
|
1934
1935
|
}
|
|
1935
1936
|
function writeWaypoint($this, w, waypoint) {
|
|
1936
|
-
w.
|
|
1937
|
-
w.
|
|
1938
|
-
w.
|
|
1939
|
-
var tmp0_safe_receiver = waypoint.
|
|
1937
|
+
w.v1l('http://www.topografix.com/GPX/1/1', 'wpt', '');
|
|
1938
|
+
w.x1l(null, 'lat', null, GpxDecimal_getInstance().e23(waypoint.u21_1));
|
|
1939
|
+
w.x1l(null, 'lon', null, GpxDecimal_getInstance().e23(waypoint.v21_1));
|
|
1940
|
+
var tmp0_safe_receiver = waypoint.w21_1;
|
|
1940
1941
|
if (tmp0_safe_receiver == null)
|
|
1941
1942
|
null;
|
|
1942
1943
|
else {
|
|
1943
1944
|
// Inline function 'kotlin.let' call
|
|
1944
|
-
writeSimpleText(GpxWriter_instance, w, 'ele', GpxDecimal_getInstance().
|
|
1945
|
+
writeSimpleText(GpxWriter_instance, w, 'ele', GpxDecimal_getInstance().e23(tmp0_safe_receiver));
|
|
1945
1946
|
}
|
|
1946
|
-
var tmp1_safe_receiver = waypoint.
|
|
1947
|
+
var tmp1_safe_receiver = waypoint.b22_1;
|
|
1947
1948
|
if (tmp1_safe_receiver == null)
|
|
1948
1949
|
null;
|
|
1949
1950
|
else {
|
|
1950
1951
|
// Inline function 'kotlin.let' call
|
|
1951
1952
|
writeSimpleText(GpxWriter_instance, w, 'time', Companion_getInstance().zf(tmp1_safe_receiver).toString());
|
|
1952
1953
|
}
|
|
1953
|
-
var tmp2_safe_receiver = waypoint.
|
|
1954
|
+
var tmp2_safe_receiver = waypoint.x21_1;
|
|
1954
1955
|
if (tmp2_safe_receiver == null)
|
|
1955
1956
|
null;
|
|
1956
1957
|
else {
|
|
1957
1958
|
// Inline function 'kotlin.let' call
|
|
1958
1959
|
writeSimpleText(GpxWriter_instance, w, 'name', tmp2_safe_receiver);
|
|
1959
1960
|
}
|
|
1960
|
-
var tmp3_safe_receiver = waypoint.
|
|
1961
|
+
var tmp3_safe_receiver = waypoint.y21_1;
|
|
1961
1962
|
if (tmp3_safe_receiver == null)
|
|
1962
1963
|
null;
|
|
1963
1964
|
else {
|
|
1964
1965
|
// Inline function 'kotlin.let' call
|
|
1965
1966
|
writeSimpleText(GpxWriter_instance, w, 'desc', tmp3_safe_receiver);
|
|
1966
1967
|
}
|
|
1967
|
-
var tmp4_safe_receiver = waypoint.
|
|
1968
|
+
var tmp4_safe_receiver = waypoint.z21_1;
|
|
1968
1969
|
if (tmp4_safe_receiver == null)
|
|
1969
1970
|
null;
|
|
1970
1971
|
else {
|
|
1971
1972
|
// Inline function 'kotlin.let' call
|
|
1972
1973
|
writeSimpleText(GpxWriter_instance, w, 'sym', tmp4_safe_receiver);
|
|
1973
1974
|
}
|
|
1974
|
-
var tmp5_safe_receiver = waypoint.
|
|
1975
|
+
var tmp5_safe_receiver = waypoint.a22_1;
|
|
1975
1976
|
if (tmp5_safe_receiver == null)
|
|
1976
1977
|
null;
|
|
1977
1978
|
else {
|
|
1978
1979
|
// Inline function 'kotlin.let' call
|
|
1979
1980
|
writeSimpleText(GpxWriter_instance, w, 'type', tmp5_safe_receiver);
|
|
1980
1981
|
}
|
|
1981
|
-
w.
|
|
1982
|
+
w.a1m('http://www.topografix.com/GPX/1/1', 'wpt', '');
|
|
1982
1983
|
}
|
|
1983
1984
|
function writeMetadata($this, w, name) {
|
|
1984
|
-
w.
|
|
1985
|
+
w.v1l('http://www.topografix.com/GPX/1/1', 'metadata', '');
|
|
1985
1986
|
writeSimpleText($this, w, 'name', name);
|
|
1986
|
-
w.
|
|
1987
|
+
w.a1m('http://www.topografix.com/GPX/1/1', 'metadata', '');
|
|
1987
1988
|
}
|
|
1988
1989
|
function writeTrack($this, w, track, writeExtensions) {
|
|
1989
|
-
w.
|
|
1990
|
-
var tmp0_safe_receiver = track.
|
|
1990
|
+
w.v1l('http://www.topografix.com/GPX/1/1', 'trk', '');
|
|
1991
|
+
var tmp0_safe_receiver = track.h22_1;
|
|
1991
1992
|
if (tmp0_safe_receiver == null)
|
|
1992
1993
|
null;
|
|
1993
1994
|
else {
|
|
1994
1995
|
// Inline function 'kotlin.let' call
|
|
1995
1996
|
writeSimpleText(GpxWriter_instance, w, 'name', tmp0_safe_receiver);
|
|
1996
1997
|
}
|
|
1997
|
-
var tmp1_safe_receiver = track.
|
|
1998
|
+
var tmp1_safe_receiver = track.i22_1;
|
|
1998
1999
|
if (tmp1_safe_receiver == null)
|
|
1999
2000
|
null;
|
|
2000
2001
|
else {
|
|
2001
2002
|
// Inline function 'kotlin.let' call
|
|
2002
2003
|
writeSimpleText(GpxWriter_instance, w, 'type', tmp1_safe_receiver);
|
|
2003
2004
|
}
|
|
2004
|
-
if (writeExtensions && !(track.
|
|
2005
|
-
w.
|
|
2006
|
-
writeRoadWidth($this, w, track.
|
|
2007
|
-
w.
|
|
2005
|
+
if (writeExtensions && !(track.l22_1 == null)) {
|
|
2006
|
+
w.v1l('http://www.topografix.com/GPX/1/1', 'extensions', '');
|
|
2007
|
+
writeRoadWidth($this, w, track.l22_1);
|
|
2008
|
+
w.a1m('http://www.topografix.com/GPX/1/1', 'extensions', '');
|
|
2008
2009
|
}
|
|
2009
|
-
var _iterator__ex2g4s = track.
|
|
2010
|
+
var _iterator__ex2g4s = track.j22_1.l();
|
|
2010
2011
|
while (_iterator__ex2g4s.m()) {
|
|
2011
2012
|
var segment = _iterator__ex2g4s.n();
|
|
2012
|
-
w.
|
|
2013
|
-
var _iterator__ex2g4s_0 = segment.
|
|
2013
|
+
w.v1l('http://www.topografix.com/GPX/1/1', 'trkseg', '');
|
|
2014
|
+
var _iterator__ex2g4s_0 = segment.o22_1.l();
|
|
2014
2015
|
while (_iterator__ex2g4s_0.m()) {
|
|
2015
2016
|
var p = _iterator__ex2g4s_0.n();
|
|
2016
2017
|
writeTrackPoint($this, w, p, writeExtensions);
|
|
2017
2018
|
}
|
|
2018
|
-
w.
|
|
2019
|
+
w.a1m('http://www.topografix.com/GPX/1/1', 'trkseg', '');
|
|
2019
2020
|
}
|
|
2020
|
-
w.
|
|
2021
|
+
w.a1m('http://www.topografix.com/GPX/1/1', 'trk', '');
|
|
2021
2022
|
}
|
|
2022
2023
|
function writeRoute($this, w, route, writeExtensions) {
|
|
2023
|
-
w.
|
|
2024
|
-
var tmp0_safe_receiver = route.
|
|
2024
|
+
w.v1l('http://www.topografix.com/GPX/1/1', 'rte', '');
|
|
2025
|
+
var tmp0_safe_receiver = route.h22_1;
|
|
2025
2026
|
if (tmp0_safe_receiver == null)
|
|
2026
2027
|
null;
|
|
2027
2028
|
else {
|
|
2028
2029
|
// Inline function 'kotlin.let' call
|
|
2029
2030
|
writeSimpleText(GpxWriter_instance, w, 'name', tmp0_safe_receiver);
|
|
2030
2031
|
}
|
|
2031
|
-
var tmp1_safe_receiver = route.
|
|
2032
|
+
var tmp1_safe_receiver = route.i22_1;
|
|
2032
2033
|
if (tmp1_safe_receiver == null)
|
|
2033
2034
|
null;
|
|
2034
2035
|
else {
|
|
2035
2036
|
// Inline function 'kotlin.let' call
|
|
2036
2037
|
writeSimpleText(GpxWriter_instance, w, 'type', tmp1_safe_receiver);
|
|
2037
2038
|
}
|
|
2038
|
-
var _iterator__ex2g4s = route.
|
|
2039
|
+
var _iterator__ex2g4s = route.p22().l();
|
|
2039
2040
|
while (_iterator__ex2g4s.m()) {
|
|
2040
2041
|
var p = _iterator__ex2g4s.n();
|
|
2041
2042
|
writeTrackPoint($this, w, p, writeExtensions, 'rtept');
|
|
2042
2043
|
}
|
|
2043
|
-
w.
|
|
2044
|
+
w.a1m('http://www.topografix.com/GPX/1/1', 'rte', '');
|
|
2044
2045
|
}
|
|
2045
2046
|
function writeTrackPoint($this, w, p, writeExtensions, localName) {
|
|
2046
2047
|
localName = localName === VOID ? 'trkpt' : localName;
|
|
2047
|
-
w.
|
|
2048
|
-
w.
|
|
2049
|
-
w.
|
|
2050
|
-
var tmp0_safe_receiver = p.
|
|
2048
|
+
w.v1l('http://www.topografix.com/GPX/1/1', localName, '');
|
|
2049
|
+
w.x1l(null, 'lat', null, GpxDecimal_getInstance().e23(p.q22_1));
|
|
2050
|
+
w.x1l(null, 'lon', null, GpxDecimal_getInstance().e23(p.r22_1));
|
|
2051
|
+
var tmp0_safe_receiver = p.s22_1;
|
|
2051
2052
|
if (tmp0_safe_receiver == null)
|
|
2052
2053
|
null;
|
|
2053
2054
|
else {
|
|
2054
2055
|
// Inline function 'kotlin.let' call
|
|
2055
|
-
writeSimpleText(GpxWriter_instance, w, 'ele', GpxDecimal_getInstance().
|
|
2056
|
+
writeSimpleText(GpxWriter_instance, w, 'ele', GpxDecimal_getInstance().e23(tmp0_safe_receiver));
|
|
2056
2057
|
}
|
|
2057
|
-
var tmp1_safe_receiver = p.
|
|
2058
|
+
var tmp1_safe_receiver = p.t22_1;
|
|
2058
2059
|
if (tmp1_safe_receiver == null)
|
|
2059
2060
|
null;
|
|
2060
2061
|
else {
|
|
2061
2062
|
// Inline function 'kotlin.let' call
|
|
2062
2063
|
writeSimpleText(GpxWriter_instance, w, 'time', Companion_getInstance().zf(tmp1_safe_receiver).toString());
|
|
2063
2064
|
}
|
|
2064
|
-
var hasGarminExt = !(p.
|
|
2065
|
-
var hasPower = !(p.
|
|
2066
|
-
var hasRoadWidth = !(p.
|
|
2065
|
+
var hasGarminExt = !(p.u22_1 == null) || !(p.v22_1 == null) || !(p.w22_1 == null);
|
|
2066
|
+
var hasPower = !(p.x22_1 == null);
|
|
2067
|
+
var hasRoadWidth = !(p.y22_1 == null);
|
|
2067
2068
|
if (writeExtensions && (hasGarminExt || hasPower || hasRoadWidth)) {
|
|
2068
|
-
w.
|
|
2069
|
-
var tmp2_safe_receiver = p.
|
|
2069
|
+
w.v1l('http://www.topografix.com/GPX/1/1', 'extensions', '');
|
|
2070
|
+
var tmp2_safe_receiver = p.x22_1;
|
|
2070
2071
|
if (tmp2_safe_receiver == null)
|
|
2071
2072
|
null;
|
|
2072
2073
|
else {
|
|
2073
2074
|
// Inline function 'kotlin.let' call
|
|
2074
|
-
writeSimpleText(GpxWriter_instance, w, 'power', GpxDecimal_getInstance().
|
|
2075
|
+
writeSimpleText(GpxWriter_instance, w, 'power', GpxDecimal_getInstance().e23(tmp2_safe_receiver));
|
|
2075
2076
|
}
|
|
2076
|
-
var tmp3_safe_receiver = p.
|
|
2077
|
+
var tmp3_safe_receiver = p.y22_1;
|
|
2077
2078
|
if (tmp3_safe_receiver == null)
|
|
2078
2079
|
null;
|
|
2079
2080
|
else {
|
|
@@ -2081,66 +2082,66 @@
|
|
|
2081
2082
|
writeRoadWidth(GpxWriter_instance, w, tmp3_safe_receiver);
|
|
2082
2083
|
}
|
|
2083
2084
|
if (hasGarminExt) {
|
|
2084
|
-
w.
|
|
2085
|
-
var tmp4_safe_receiver = p.
|
|
2085
|
+
w.v1l('http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'TrackPointExtension', 'gpxtpx');
|
|
2086
|
+
var tmp4_safe_receiver = p.u22_1;
|
|
2086
2087
|
if (tmp4_safe_receiver == null)
|
|
2087
2088
|
null;
|
|
2088
2089
|
else {
|
|
2089
2090
|
// Inline function 'kotlin.let' call
|
|
2090
2091
|
writeNamespaced(GpxWriter_instance, w, 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'hr', 'gpxtpx', tmp4_safe_receiver.toString());
|
|
2091
2092
|
}
|
|
2092
|
-
var tmp5_safe_receiver = p.
|
|
2093
|
+
var tmp5_safe_receiver = p.v22_1;
|
|
2093
2094
|
if (tmp5_safe_receiver == null)
|
|
2094
2095
|
null;
|
|
2095
2096
|
else {
|
|
2096
2097
|
// Inline function 'kotlin.let' call
|
|
2097
2098
|
writeNamespaced(GpxWriter_instance, w, 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'cad', 'gpxtpx', tmp5_safe_receiver.toString());
|
|
2098
2099
|
}
|
|
2099
|
-
var tmp6_safe_receiver = p.
|
|
2100
|
+
var tmp6_safe_receiver = p.w22_1;
|
|
2100
2101
|
if (tmp6_safe_receiver == null)
|
|
2101
2102
|
null;
|
|
2102
2103
|
else {
|
|
2103
2104
|
// Inline function 'kotlin.let' call
|
|
2104
|
-
writeNamespaced(GpxWriter_instance, w, 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'atemp', 'gpxtpx', GpxDecimal_getInstance().
|
|
2105
|
+
writeNamespaced(GpxWriter_instance, w, 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'atemp', 'gpxtpx', GpxDecimal_getInstance().e23(tmp6_safe_receiver));
|
|
2105
2106
|
}
|
|
2106
|
-
w.
|
|
2107
|
+
w.a1m('http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'TrackPointExtension', 'gpxtpx');
|
|
2107
2108
|
}
|
|
2108
|
-
w.
|
|
2109
|
+
w.a1m('http://www.topografix.com/GPX/1/1', 'extensions', '');
|
|
2109
2110
|
}
|
|
2110
|
-
w.
|
|
2111
|
+
w.a1m('http://www.topografix.com/GPX/1/1', localName, '');
|
|
2111
2112
|
}
|
|
2112
2113
|
function writeRoadWidth($this, w, widthM) {
|
|
2113
|
-
return writeNamespaced($this, w, 'https://github.com/glandais/vcyclist/xmlschemas/v1', 'roadWidth', 'vc', GpxDecimal_getInstance().
|
|
2114
|
+
return writeNamespaced($this, w, 'https://github.com/glandais/vcyclist/xmlschemas/v1', 'roadWidth', 'vc', GpxDecimal_getInstance().e23(widthM));
|
|
2114
2115
|
}
|
|
2115
2116
|
function writeSimpleText($this, w, localName, text) {
|
|
2116
|
-
w.
|
|
2117
|
-
w.
|
|
2118
|
-
w.
|
|
2117
|
+
w.v1l('http://www.topografix.com/GPX/1/1', localName, '');
|
|
2118
|
+
w.w1l(text);
|
|
2119
|
+
w.a1m('http://www.topografix.com/GPX/1/1', localName, '');
|
|
2119
2120
|
}
|
|
2120
2121
|
function writeNamespaced($this, w, namespace, localName, prefix, text) {
|
|
2121
|
-
w.
|
|
2122
|
-
w.
|
|
2123
|
-
w.
|
|
2122
|
+
w.v1l(namespace, localName, prefix);
|
|
2123
|
+
w.w1l(text);
|
|
2124
|
+
w.a1m(namespace, localName, prefix);
|
|
2124
2125
|
}
|
|
2125
2126
|
function GpxWriter() {
|
|
2126
|
-
this.
|
|
2127
|
-
this.
|
|
2128
|
-
this.
|
|
2129
|
-
this.
|
|
2130
|
-
this.
|
|
2131
|
-
this.
|
|
2132
|
-
this.
|
|
2133
|
-
this.
|
|
2134
|
-
this.
|
|
2135
|
-
}
|
|
2136
|
-
protoOf(GpxWriter).
|
|
2127
|
+
this.f25_1 = 'http://www.topografix.com/GPX/1/1';
|
|
2128
|
+
this.g25_1 = 'http://www.w3.org/2001/XMLSchema-instance';
|
|
2129
|
+
this.h25_1 = 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1';
|
|
2130
|
+
this.i25_1 = 'https://github.com/glandais/vcyclist/xmlschemas/v1';
|
|
2131
|
+
this.j25_1 = 'vc';
|
|
2132
|
+
this.k25_1 = 'xsi';
|
|
2133
|
+
this.l25_1 = 'gpxtpx';
|
|
2134
|
+
this.m25_1 = 'http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd';
|
|
2135
|
+
this.n25_1 = '@glandais/vcyclist';
|
|
2136
|
+
}
|
|
2137
|
+
protoOf(GpxWriter).o25 = function (document, writeExtensions) {
|
|
2137
2138
|
var out = StringBuilder_init_$Create$();
|
|
2138
2139
|
out.u6('<?xml version="1.0" encoding="UTF-8"?>\n');
|
|
2139
2140
|
var writer = newGenericWriter(get_xmlStreaming(), out, false, XmlDeclMode_None_getInstance());
|
|
2140
2141
|
try {
|
|
2141
2142
|
writeDocument(this, writer, document, writeExtensions);
|
|
2142
2143
|
}finally {
|
|
2143
|
-
writer.
|
|
2144
|
+
writer.b1k();
|
|
2144
2145
|
}
|
|
2145
2146
|
return out.toString();
|
|
2146
2147
|
};
|
|
@@ -2251,11 +2252,11 @@
|
|
|
2251
2252
|
while (i < refs.o()) {
|
|
2252
2253
|
var high = refs.p(i);
|
|
2253
2254
|
var low = getOrNull(refs, i + 1 | 0);
|
|
2254
|
-
if (!(low == null) && high.
|
|
2255
|
-
sb.y9(xml, copiedUpTo, high.
|
|
2256
|
-
var codePoint = (65536 + imul(high.
|
|
2255
|
+
if (!(low == null) && high.q25_1 === low.p25_1 && isHighSurrogate_0($this, high.r25_1) && isLowSurrogate_0($this, low.r25_1)) {
|
|
2256
|
+
sb.y9(xml, copiedUpTo, high.p25_1);
|
|
2257
|
+
var codePoint = (65536 + imul(high.r25_1 - 55296 | 0, 1024) | 0) + (low.r25_1 - 56320 | 0) | 0;
|
|
2257
2258
|
sb.u6('&#').aa(codePoint).v6(_Char___init__impl__6a9atx(59));
|
|
2258
|
-
copiedUpTo = low.
|
|
2259
|
+
copiedUpTo = low.q25_1;
|
|
2259
2260
|
count = count + 1 | 0;
|
|
2260
2261
|
i = i + 2 | 0;
|
|
2261
2262
|
} else {
|
|
@@ -2268,17 +2269,17 @@
|
|
|
2268
2269
|
return new Pair(sb.toString(), count);
|
|
2269
2270
|
}
|
|
2270
2271
|
function NumericRef(start, end, value) {
|
|
2271
|
-
this.
|
|
2272
|
-
this.
|
|
2273
|
-
this.
|
|
2272
|
+
this.p25_1 = start;
|
|
2273
|
+
this.q25_1 = end;
|
|
2274
|
+
this.r25_1 = value;
|
|
2274
2275
|
}
|
|
2275
2276
|
protoOf(NumericRef).toString = function () {
|
|
2276
|
-
return 'NumericRef(start=' + this.
|
|
2277
|
+
return 'NumericRef(start=' + this.p25_1 + ', end=' + this.q25_1 + ', value=' + this.r25_1 + ')';
|
|
2277
2278
|
};
|
|
2278
2279
|
protoOf(NumericRef).hashCode = function () {
|
|
2279
|
-
var result = this.
|
|
2280
|
-
result = imul(result, 31) + this.
|
|
2281
|
-
result = imul(result, 31) + this.
|
|
2280
|
+
var result = this.p25_1;
|
|
2281
|
+
result = imul(result, 31) + this.q25_1 | 0;
|
|
2282
|
+
result = imul(result, 31) + this.r25_1 | 0;
|
|
2282
2283
|
return result;
|
|
2283
2284
|
};
|
|
2284
2285
|
protoOf(NumericRef).equals = function (other) {
|
|
@@ -2286,11 +2287,11 @@
|
|
|
2286
2287
|
return true;
|
|
2287
2288
|
if (!(other instanceof NumericRef))
|
|
2288
2289
|
return false;
|
|
2289
|
-
if (!(this.
|
|
2290
|
+
if (!(this.p25_1 === other.p25_1))
|
|
2290
2291
|
return false;
|
|
2291
|
-
if (!(this.
|
|
2292
|
+
if (!(this.q25_1 === other.q25_1))
|
|
2292
2293
|
return false;
|
|
2293
|
-
if (!(this.
|
|
2294
|
+
if (!(this.r25_1 === other.r25_1))
|
|
2294
2295
|
return false;
|
|
2295
2296
|
return true;
|
|
2296
2297
|
};
|
|
@@ -2323,7 +2324,7 @@
|
|
|
2323
2324
|
function verbatimSpanEnd($this, xml, start) {
|
|
2324
2325
|
if (!(charCodeAt(xml, start) === _Char___init__impl__6a9atx(60)))
|
|
2325
2326
|
return -1;
|
|
2326
|
-
var _iterator__ex2g4s = $this.
|
|
2327
|
+
var _iterator__ex2g4s = $this.e24_1.l();
|
|
2327
2328
|
while (_iterator__ex2g4s.m()) {
|
|
2328
2329
|
var _destruct__k2r9zo = _iterator__ex2g4s.n();
|
|
2329
2330
|
var open = _destruct__k2r9zo.kc();
|
|
@@ -2397,21 +2398,21 @@
|
|
|
2397
2398
|
}
|
|
2398
2399
|
if (j >= n || !(charCodeAt(xml, j) === _Char___init__impl__6a9atx(59)))
|
|
2399
2400
|
return -1;
|
|
2400
|
-
return $this.
|
|
2401
|
+
return $this.d24_1.i1(substring(xml, nameStart, j)) ? j : -1;
|
|
2401
2402
|
}
|
|
2402
2403
|
function isHexDigit($this, $receiver) {
|
|
2403
2404
|
return isDigit($receiver) || (_Char___init__impl__6a9atx(97) <= $receiver ? $receiver <= _Char___init__impl__6a9atx(102) : false) || (_Char___init__impl__6a9atx(65) <= $receiver ? $receiver <= _Char___init__impl__6a9atx(70) : false);
|
|
2404
2405
|
}
|
|
2405
2406
|
function GpxXmlRepair() {
|
|
2406
2407
|
GpxXmlRepair_instance = this;
|
|
2407
|
-
this.
|
|
2408
|
-
this.
|
|
2409
|
-
this.
|
|
2408
|
+
this.d24_1 = setOf(['amp', 'lt', 'gt', 'apos', 'quot']);
|
|
2409
|
+
this.e24_1 = listOf_0([to('<![CDATA[', ']]>'), to('<!--', '-->'), to('<?', '?>')]);
|
|
2410
|
+
this.f24_1 = 20;
|
|
2410
2411
|
}
|
|
2411
|
-
protoOf(GpxXmlRepair).
|
|
2412
|
-
return this.
|
|
2412
|
+
protoOf(GpxXmlRepair).g24 = function (xml) {
|
|
2413
|
+
return this.u25(xml).s25_1;
|
|
2413
2414
|
};
|
|
2414
|
-
protoOf(GpxXmlRepair).
|
|
2415
|
+
protoOf(GpxXmlRepair).u25 = function (xml) {
|
|
2415
2416
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2416
2417
|
var repairs = ArrayList_init_$Create$();
|
|
2417
2418
|
var current = xml;
|
|
@@ -2470,15 +2471,15 @@
|
|
|
2470
2471
|
return GpxXmlRepair_instance;
|
|
2471
2472
|
}
|
|
2472
2473
|
function RepairResult(xml, repairs) {
|
|
2473
|
-
this.
|
|
2474
|
-
this.
|
|
2474
|
+
this.s25_1 = xml;
|
|
2475
|
+
this.t25_1 = repairs;
|
|
2475
2476
|
}
|
|
2476
2477
|
protoOf(RepairResult).toString = function () {
|
|
2477
|
-
return 'RepairResult(xml=' + this.
|
|
2478
|
+
return 'RepairResult(xml=' + this.s25_1 + ', repairs=' + toString_0(this.t25_1) + ')';
|
|
2478
2479
|
};
|
|
2479
2480
|
protoOf(RepairResult).hashCode = function () {
|
|
2480
|
-
var result = getStringHashCode(this.
|
|
2481
|
-
result = imul(result, 31) + hashCode(this.
|
|
2481
|
+
var result = getStringHashCode(this.s25_1);
|
|
2482
|
+
result = imul(result, 31) + hashCode(this.t25_1) | 0;
|
|
2482
2483
|
return result;
|
|
2483
2484
|
};
|
|
2484
2485
|
protoOf(RepairResult).equals = function (other) {
|
|
@@ -2486,17 +2487,17 @@
|
|
|
2486
2487
|
return true;
|
|
2487
2488
|
if (!(other instanceof RepairResult))
|
|
2488
2489
|
return false;
|
|
2489
|
-
if (!(this.
|
|
2490
|
+
if (!(this.s25_1 === other.s25_1))
|
|
2490
2491
|
return false;
|
|
2491
|
-
if (!equals(this.
|
|
2492
|
+
if (!equals(this.t25_1, other.t25_1))
|
|
2492
2493
|
return false;
|
|
2493
2494
|
return true;
|
|
2494
2495
|
};
|
|
2495
2496
|
function OsmHighway() {
|
|
2496
2497
|
OsmHighway_instance = this;
|
|
2497
|
-
this.
|
|
2498
|
+
this.q24_1 = mapOf([to('motorway', 7.5), to('motorway_link', 6.0), to('trunk', 7.0), to('trunk_link', 6.0), to('primary', 6.5), to('primary_link', 5.5), to('secondary', 6.0), to('secondary_link', 5.0), to('tertiary', 5.5), to('tertiary_link', 5.0), to('unclassified', 4.5), to('residential', 5.0), to('living_street', 4.0), to('service', 3.5), to('road', 5.0), to('track', 3.0), to('cycleway', 2.5), to('path', 2.5), to('bridleway', 2.5), to('footway', 2.5), to('pedestrian', 3.0), to('steps', 2.5)]);
|
|
2498
2499
|
}
|
|
2499
|
-
protoOf(OsmHighway).
|
|
2500
|
+
protoOf(OsmHighway).r24 = function (highway) {
|
|
2500
2501
|
var tmp;
|
|
2501
2502
|
if (highway == null) {
|
|
2502
2503
|
tmp = null;
|
|
@@ -2517,7 +2518,7 @@
|
|
|
2517
2518
|
// Inline function 'kotlin.text.isNullOrEmpty' call
|
|
2518
2519
|
if (key == null || charSequenceLength(key) === 0)
|
|
2519
2520
|
return null;
|
|
2520
|
-
return this.
|
|
2521
|
+
return this.q24_1.q1(key);
|
|
2521
2522
|
};
|
|
2522
2523
|
var OsmHighway_instance;
|
|
2523
2524
|
function OsmHighway_getInstance() {
|
|
@@ -2542,9 +2543,9 @@
|
|
|
2542
2543
|
var negative = value < 0.0;
|
|
2543
2544
|
// Inline function 'kotlin.math.abs' call
|
|
2544
2545
|
var absValue = Math.abs(value);
|
|
2545
|
-
var scale = toNumber($this.
|
|
2546
|
+
var scale = toNumber($this.w25_1[decimals]);
|
|
2546
2547
|
var scaledLong = numberToLong(round(absValue * scale));
|
|
2547
|
-
var whole = $this.
|
|
2548
|
+
var whole = $this.w25_1[decimals];
|
|
2548
2549
|
var intPart = divide(scaledLong, whole);
|
|
2549
2550
|
var sign = negative && !equalsLong(scaledLong, new Long(0, 0)) ? '-' : '';
|
|
2550
2551
|
var tmp;
|
|
@@ -2558,7 +2559,7 @@
|
|
|
2558
2559
|
}
|
|
2559
2560
|
function CsvNumberFormat() {
|
|
2560
2561
|
CsvNumberFormat_instance = this;
|
|
2561
|
-
this.
|
|
2562
|
+
this.v25_1 = 12;
|
|
2562
2563
|
var tmp = this;
|
|
2563
2564
|
// Inline function 'kotlin.also' call
|
|
2564
2565
|
var this_0 = longArray(13);
|
|
@@ -2573,9 +2574,9 @@
|
|
|
2573
2574
|
p = multiply(p, new Long(10, 0));
|
|
2574
2575
|
}
|
|
2575
2576
|
while (inductionVariable <= last);
|
|
2576
|
-
tmp.
|
|
2577
|
+
tmp.w25_1 = this_0;
|
|
2577
2578
|
}
|
|
2578
|
-
protoOf(CsvNumberFormat).
|
|
2579
|
+
protoOf(CsvNumberFormat).x25 = function (value, decimals) {
|
|
2579
2580
|
if (isNaN_0(value))
|
|
2580
2581
|
return '';
|
|
2581
2582
|
if (isInfinite(value))
|
|
@@ -2605,21 +2606,21 @@
|
|
|
2605
2606
|
unitsInHeader = unitsInHeader === VOID ? true : unitsInHeader;
|
|
2606
2607
|
decimals = decimals === VOID ? null : decimals;
|
|
2607
2608
|
lineSeparator = lineSeparator === VOID ? '\n' : lineSeparator;
|
|
2608
|
-
this.
|
|
2609
|
-
this.
|
|
2610
|
-
this.
|
|
2611
|
-
this.
|
|
2612
|
-
this.
|
|
2609
|
+
this.y25_1 = fields;
|
|
2610
|
+
this.z25_1 = separator;
|
|
2611
|
+
this.a26_1 = unitsInHeader;
|
|
2612
|
+
this.b26_1 = decimals;
|
|
2613
|
+
this.c26_1 = lineSeparator;
|
|
2613
2614
|
}
|
|
2614
2615
|
protoOf(CsvOptions).toString = function () {
|
|
2615
|
-
return 'CsvOptions(fields=' + toString(this.
|
|
2616
|
+
return 'CsvOptions(fields=' + toString(this.y25_1) + ', separator=' + toString_1(this.z25_1) + ', unitsInHeader=' + this.a26_1 + ', decimals=' + this.b26_1 + ', lineSeparator=' + this.c26_1 + ')';
|
|
2616
2617
|
};
|
|
2617
2618
|
protoOf(CsvOptions).hashCode = function () {
|
|
2618
|
-
var result = this.
|
|
2619
|
-
result = imul(result, 31) + Char__hashCode_impl_otmys(this.
|
|
2620
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2621
|
-
result = imul(result, 31) + (this.
|
|
2622
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2619
|
+
var result = this.y25_1 == null ? 0 : hashCode(this.y25_1);
|
|
2620
|
+
result = imul(result, 31) + Char__hashCode_impl_otmys(this.z25_1) | 0;
|
|
2621
|
+
result = imul(result, 31) + getBooleanHashCode(this.a26_1) | 0;
|
|
2622
|
+
result = imul(result, 31) + (this.b26_1 == null ? 0 : this.b26_1) | 0;
|
|
2623
|
+
result = imul(result, 31) + getStringHashCode(this.c26_1) | 0;
|
|
2623
2624
|
return result;
|
|
2624
2625
|
};
|
|
2625
2626
|
protoOf(CsvOptions).equals = function (other) {
|
|
@@ -2627,20 +2628,20 @@
|
|
|
2627
2628
|
return true;
|
|
2628
2629
|
if (!(other instanceof CsvOptions))
|
|
2629
2630
|
return false;
|
|
2630
|
-
if (!equals(this.
|
|
2631
|
+
if (!equals(this.y25_1, other.y25_1))
|
|
2631
2632
|
return false;
|
|
2632
|
-
if (!(this.
|
|
2633
|
+
if (!(this.z25_1 === other.z25_1))
|
|
2633
2634
|
return false;
|
|
2634
|
-
if (!(this.
|
|
2635
|
+
if (!(this.a26_1 === other.a26_1))
|
|
2635
2636
|
return false;
|
|
2636
|
-
if (!(this.
|
|
2637
|
+
if (!(this.b26_1 == other.b26_1))
|
|
2637
2638
|
return false;
|
|
2638
|
-
if (!(this.
|
|
2639
|
+
if (!(this.c26_1 === other.c26_1))
|
|
2639
2640
|
return false;
|
|
2640
2641
|
return true;
|
|
2641
2642
|
};
|
|
2642
2643
|
function headerFor($this, field, unitsInHeader) {
|
|
2643
|
-
return unitsInHeader ? field.
|
|
2644
|
+
return unitsInHeader ? field.f26_1 + ' (' + field.g26_1 + ')' : field.f26_1;
|
|
2644
2645
|
}
|
|
2645
2646
|
function appendRow($this, sb, cells, options) {
|
|
2646
2647
|
var iterator = cells.l();
|
|
@@ -2650,9 +2651,9 @@
|
|
|
2650
2651
|
index = index + 1 | 0;
|
|
2651
2652
|
var cell = iterator.n();
|
|
2652
2653
|
if (i > 0) {
|
|
2653
|
-
sb.v6(options.
|
|
2654
|
+
sb.v6(options.z25_1);
|
|
2654
2655
|
}
|
|
2655
|
-
sb.u6(escapeCsvCell($this, cell, options.
|
|
2656
|
+
sb.u6(escapeCsvCell($this, cell, options.z25_1));
|
|
2656
2657
|
}
|
|
2657
2658
|
}
|
|
2658
2659
|
function escapeCsvCell($this, cell, separator) {
|
|
@@ -2681,8 +2682,8 @@
|
|
|
2681
2682
|
}
|
|
2682
2683
|
function CsvWriter() {
|
|
2683
2684
|
}
|
|
2684
|
-
protoOf(CsvWriter).
|
|
2685
|
-
var tmp0_elvis_lhs = options.
|
|
2685
|
+
protoOf(CsvWriter).m26 = function (path, options) {
|
|
2686
|
+
var tmp0_elvis_lhs = options.y25_1;
|
|
2686
2687
|
var fields = tmp0_elvis_lhs == null ? get_entries_2() : tmp0_elvis_lhs;
|
|
2687
2688
|
var sb = StringBuilder_init_$Create$();
|
|
2688
2689
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2691,24 +2692,24 @@
|
|
|
2691
2692
|
var _iterator__ex2g4s = fields.l();
|
|
2692
2693
|
while (_iterator__ex2g4s.m()) {
|
|
2693
2694
|
var item = _iterator__ex2g4s.n();
|
|
2694
|
-
var tmp$ret$2 = headerFor(CsvWriter_instance, item, options.
|
|
2695
|
+
var tmp$ret$2 = headerFor(CsvWriter_instance, item, options.a26_1);
|
|
2695
2696
|
destination.k(tmp$ret$2);
|
|
2696
2697
|
}
|
|
2697
2698
|
appendRow(this, sb, destination, options);
|
|
2698
2699
|
var inductionVariable = 0;
|
|
2699
|
-
var last = path.
|
|
2700
|
+
var last = path.l23_1;
|
|
2700
2701
|
if (inductionVariable < last)
|
|
2701
2702
|
do {
|
|
2702
2703
|
var i = inductionVariable;
|
|
2703
2704
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2704
|
-
sb.u6(options.
|
|
2705
|
+
sb.u6(options.c26_1);
|
|
2705
2706
|
// Inline function 'kotlin.collections.map' call
|
|
2706
2707
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2707
2708
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(fields, 10));
|
|
2708
2709
|
var _iterator__ex2g4s_0 = fields.l();
|
|
2709
2710
|
while (_iterator__ex2g4s_0.m()) {
|
|
2710
2711
|
var item_0 = _iterator__ex2g4s_0.n();
|
|
2711
|
-
var tmp$ret$5 = CsvNumberFormat_getInstance().
|
|
2712
|
+
var tmp$ret$5 = CsvNumberFormat_getInstance().x25(path.n26(i, item_0), options.b26_1);
|
|
2712
2713
|
destination_0.k(tmp$ret$5);
|
|
2713
2714
|
}
|
|
2714
2715
|
appendRow(this, sb, destination_0, options);
|
|
@@ -2725,19 +2726,19 @@
|
|
|
2725
2726
|
pretty = pretty === VOID ? false : pretty;
|
|
2726
2727
|
decimals = decimals === VOID ? null : decimals;
|
|
2727
2728
|
includeMeta = includeMeta === VOID ? true : includeMeta;
|
|
2728
|
-
this.
|
|
2729
|
-
this.
|
|
2730
|
-
this.
|
|
2731
|
-
this.
|
|
2729
|
+
this.o26_1 = fields;
|
|
2730
|
+
this.p26_1 = pretty;
|
|
2731
|
+
this.q26_1 = decimals;
|
|
2732
|
+
this.r26_1 = includeMeta;
|
|
2732
2733
|
}
|
|
2733
2734
|
protoOf(JsonOptions).toString = function () {
|
|
2734
|
-
return 'JsonOptions(fields=' + toString(this.
|
|
2735
|
+
return 'JsonOptions(fields=' + toString(this.o26_1) + ', pretty=' + this.p26_1 + ', decimals=' + this.q26_1 + ', includeMeta=' + this.r26_1 + ')';
|
|
2735
2736
|
};
|
|
2736
2737
|
protoOf(JsonOptions).hashCode = function () {
|
|
2737
|
-
var result = this.
|
|
2738
|
-
result = imul(result, 31) + getBooleanHashCode(this.n26_1) | 0;
|
|
2739
|
-
result = imul(result, 31) + (this.o26_1 == null ? 0 : this.o26_1) | 0;
|
|
2738
|
+
var result = this.o26_1 == null ? 0 : hashCode(this.o26_1);
|
|
2740
2739
|
result = imul(result, 31) + getBooleanHashCode(this.p26_1) | 0;
|
|
2740
|
+
result = imul(result, 31) + (this.q26_1 == null ? 0 : this.q26_1) | 0;
|
|
2741
|
+
result = imul(result, 31) + getBooleanHashCode(this.r26_1) | 0;
|
|
2741
2742
|
return result;
|
|
2742
2743
|
};
|
|
2743
2744
|
protoOf(JsonOptions).equals = function (other) {
|
|
@@ -2745,13 +2746,13 @@
|
|
|
2745
2746
|
return true;
|
|
2746
2747
|
if (!(other instanceof JsonOptions))
|
|
2747
2748
|
return false;
|
|
2748
|
-
if (!equals(this.
|
|
2749
|
+
if (!equals(this.o26_1, other.o26_1))
|
|
2749
2750
|
return false;
|
|
2750
|
-
if (!(this.
|
|
2751
|
+
if (!(this.p26_1 === other.p26_1))
|
|
2751
2752
|
return false;
|
|
2752
|
-
if (!(this.
|
|
2753
|
+
if (!(this.q26_1 == other.q26_1))
|
|
2753
2754
|
return false;
|
|
2754
|
-
if (!(this.
|
|
2755
|
+
if (!(this.r26_1 === other.r26_1))
|
|
2755
2756
|
return false;
|
|
2756
2757
|
return true;
|
|
2757
2758
|
};
|
|
@@ -2759,17 +2760,17 @@
|
|
|
2759
2760
|
var inner = indent + indent;
|
|
2760
2761
|
appendKeyRaw($this, sb, indent, 'meta', colon);
|
|
2761
2762
|
sb.v6(_Char___init__impl__6a9atx(123)).u6(nl);
|
|
2762
|
-
appendKeyValueRaw($this, sb, inner, 'totalDistance', numberOrNull($this, path.
|
|
2763
|
+
appendKeyValueRaw($this, sb, inner, 'totalDistance', numberOrNull($this, path.v24_1, decimals), colon);
|
|
2763
2764
|
sb.v6(_Char___init__impl__6a9atx(44)).u6(nl);
|
|
2764
|
-
appendKeyValueRaw($this, sb, inner, 'durationMs', numberOrNull($this, path.
|
|
2765
|
+
appendKeyValueRaw($this, sb, inner, 'durationMs', numberOrNull($this, path.c25_1, decimals), colon);
|
|
2765
2766
|
sb.v6(_Char___init__impl__6a9atx(44)).u6(nl);
|
|
2766
|
-
appendKeyValueRaw($this, sb, inner, 'elevationGain', numberOrNull($this, path.
|
|
2767
|
+
appendKeyValueRaw($this, sb, inner, 'elevationGain', numberOrNull($this, path.y24_1, decimals), colon);
|
|
2767
2768
|
sb.v6(_Char___init__impl__6a9atx(44)).u6(nl);
|
|
2768
|
-
appendKeyValueRaw($this, sb, inner, 'elevationLoss', numberOrNull($this, path.
|
|
2769
|
+
appendKeyValueRaw($this, sb, inner, 'elevationLoss', numberOrNull($this, path.z24_1, decimals), colon);
|
|
2769
2770
|
sb.v6(_Char___init__impl__6a9atx(44)).u6(nl);
|
|
2770
|
-
appendKeyValueRaw($this, sb, inner, 'elevationGainFiltered', numberOrNull($this, path.
|
|
2771
|
+
appendKeyValueRaw($this, sb, inner, 'elevationGainFiltered', numberOrNull($this, path.a25_1, decimals), colon);
|
|
2771
2772
|
sb.v6(_Char___init__impl__6a9atx(44)).u6(nl);
|
|
2772
|
-
appendKeyValueRaw($this, sb, inner, 'elevationLossFiltered', numberOrNull($this, path.
|
|
2773
|
+
appendKeyValueRaw($this, sb, inner, 'elevationLossFiltered', numberOrNull($this, path.b25_1, decimals), colon);
|
|
2773
2774
|
sb.v6(_Char___init__impl__6a9atx(44)).u6(nl);
|
|
2774
2775
|
appendKeyRaw($this, sb, inner, 'units', colon);
|
|
2775
2776
|
sb.v6(_Char___init__impl__6a9atx(123)).u6(nl);
|
|
@@ -2780,7 +2781,7 @@
|
|
|
2780
2781
|
var i = index;
|
|
2781
2782
|
index = index + 1 | 0;
|
|
2782
2783
|
var field = iterator.n();
|
|
2783
|
-
appendKeyValueRaw($this, sb, innerUnits, $this.
|
|
2784
|
+
appendKeyValueRaw($this, sb, innerUnits, $this.s26(field.f26_1), '"' + $this.s26(field.g26_1) + '"', colon);
|
|
2784
2785
|
if (!(i === get_lastIndex(fields))) {
|
|
2785
2786
|
sb.v6(_Char___init__impl__6a9atx(44));
|
|
2786
2787
|
}
|
|
@@ -2798,10 +2799,10 @@
|
|
|
2798
2799
|
var fi = index;
|
|
2799
2800
|
index = index + 1 | 0;
|
|
2800
2801
|
var field = iterator.n();
|
|
2801
|
-
appendKeyRaw($this, sb, inner, $this.
|
|
2802
|
+
appendKeyRaw($this, sb, inner, $this.s26(field.f26_1), colon);
|
|
2802
2803
|
sb.v6(_Char___init__impl__6a9atx(91));
|
|
2803
2804
|
var inductionVariable = 0;
|
|
2804
|
-
var last = path.
|
|
2805
|
+
var last = path.l23_1;
|
|
2805
2806
|
if (inductionVariable < last)
|
|
2806
2807
|
do {
|
|
2807
2808
|
var i = inductionVariable;
|
|
@@ -2809,7 +2810,7 @@
|
|
|
2809
2810
|
if (i > 0) {
|
|
2810
2811
|
sb.v6(_Char___init__impl__6a9atx(44));
|
|
2811
2812
|
}
|
|
2812
|
-
sb.u6(numberOrNull($this, path.
|
|
2813
|
+
sb.u6(numberOrNull($this, path.n26(i, field), options.q26_1));
|
|
2813
2814
|
}
|
|
2814
2815
|
while (inductionVariable < last);
|
|
2815
2816
|
sb.v6(_Char___init__impl__6a9atx(93));
|
|
@@ -2826,7 +2827,7 @@
|
|
|
2826
2827
|
if (isNaN_0(value) || isInfinite(value)) {
|
|
2827
2828
|
tmp = 'null';
|
|
2828
2829
|
} else {
|
|
2829
|
-
tmp = CsvNumberFormat_getInstance().
|
|
2830
|
+
tmp = CsvNumberFormat_getInstance().x25(value, decimals);
|
|
2830
2831
|
}
|
|
2831
2832
|
return tmp;
|
|
2832
2833
|
}
|
|
@@ -2839,18 +2840,18 @@
|
|
|
2839
2840
|
}
|
|
2840
2841
|
function JsonWriter() {
|
|
2841
2842
|
}
|
|
2842
|
-
protoOf(JsonWriter).
|
|
2843
|
-
var tmp0_elvis_lhs = options.
|
|
2843
|
+
protoOf(JsonWriter).t26 = function (path, options) {
|
|
2844
|
+
var tmp0_elvis_lhs = options.o26_1;
|
|
2844
2845
|
var fields = tmp0_elvis_lhs == null ? get_entries_2() : tmp0_elvis_lhs;
|
|
2845
2846
|
var sb = StringBuilder_init_$Create$();
|
|
2846
|
-
var indent = options.
|
|
2847
|
-
var nl = options.
|
|
2848
|
-
var colon = options.
|
|
2847
|
+
var indent = options.p26_1 ? ' ' : '';
|
|
2848
|
+
var nl = options.p26_1 ? '\n' : '';
|
|
2849
|
+
var colon = options.p26_1 ? ': ' : ':';
|
|
2849
2850
|
sb.v6(_Char___init__impl__6a9atx(123)).u6(nl);
|
|
2850
|
-
appendKeyValueRaw(this, sb, indent, 'size', path.
|
|
2851
|
+
appendKeyValueRaw(this, sb, indent, 'size', path.l23_1.toString(), colon);
|
|
2851
2852
|
sb.v6(_Char___init__impl__6a9atx(44)).u6(nl);
|
|
2852
|
-
if (options.
|
|
2853
|
-
appendMeta(this, sb, path, fields, options.
|
|
2853
|
+
if (options.r26_1) {
|
|
2854
|
+
appendMeta(this, sb, path, fields, options.q26_1, indent, nl, colon);
|
|
2854
2855
|
sb.v6(_Char___init__impl__6a9atx(44)).u6(nl);
|
|
2855
2856
|
}
|
|
2856
2857
|
appendKeyRaw(this, sb, indent, 'fields', colon);
|
|
@@ -2858,7 +2859,7 @@
|
|
|
2858
2859
|
sb.u6(nl).v6(_Char___init__impl__6a9atx(125));
|
|
2859
2860
|
return sb.toString();
|
|
2860
2861
|
};
|
|
2861
|
-
protoOf(JsonWriter).
|
|
2862
|
+
protoOf(JsonWriter).s26 = function (value) {
|
|
2862
2863
|
var sb = StringBuilder_init_$Create$_0(value.length);
|
|
2863
2864
|
var inductionVariable = 0;
|
|
2864
2865
|
var last = value.length;
|
|
@@ -2894,17 +2895,17 @@
|
|
|
2894
2895
|
return JsonWriter_instance;
|
|
2895
2896
|
}
|
|
2896
2897
|
function DeckDetection(accepted, rejected, tallRunsTooShort) {
|
|
2897
|
-
this.
|
|
2898
|
-
this.
|
|
2899
|
-
this.
|
|
2898
|
+
this.u26_1 = accepted;
|
|
2899
|
+
this.v26_1 = rejected;
|
|
2900
|
+
this.w26_1 = tallRunsTooShort;
|
|
2900
2901
|
}
|
|
2901
2902
|
protoOf(DeckDetection).toString = function () {
|
|
2902
|
-
return 'DeckDetection(accepted=' + toString_0(this.
|
|
2903
|
+
return 'DeckDetection(accepted=' + toString_0(this.u26_1) + ', rejected=' + toString_0(this.v26_1) + ', tallRunsTooShort=' + this.w26_1 + ')';
|
|
2903
2904
|
};
|
|
2904
2905
|
protoOf(DeckDetection).hashCode = function () {
|
|
2905
|
-
var result = hashCode(this.
|
|
2906
|
-
result = imul(result, 31) + hashCode(this.
|
|
2907
|
-
result = imul(result, 31) + this.
|
|
2906
|
+
var result = hashCode(this.u26_1);
|
|
2907
|
+
result = imul(result, 31) + hashCode(this.v26_1) | 0;
|
|
2908
|
+
result = imul(result, 31) + this.w26_1 | 0;
|
|
2908
2909
|
return result;
|
|
2909
2910
|
};
|
|
2910
2911
|
protoOf(DeckDetection).equals = function (other) {
|
|
@@ -2912,34 +2913,34 @@
|
|
|
2912
2913
|
return true;
|
|
2913
2914
|
if (!(other instanceof DeckDetection))
|
|
2914
2915
|
return false;
|
|
2915
|
-
if (!equals(this.
|
|
2916
|
+
if (!equals(this.u26_1, other.u26_1))
|
|
2916
2917
|
return false;
|
|
2917
|
-
if (!equals(this.
|
|
2918
|
+
if (!equals(this.v26_1, other.v26_1))
|
|
2918
2919
|
return false;
|
|
2919
|
-
if (!(this.
|
|
2920
|
+
if (!(this.w26_1 === other.w26_1))
|
|
2920
2921
|
return false;
|
|
2921
2922
|
return true;
|
|
2922
2923
|
};
|
|
2923
2924
|
function DeckCandidate(first, last, startM, endM, metrics, rejection, deckRanges) {
|
|
2924
|
-
this.
|
|
2925
|
-
this.
|
|
2926
|
-
this.
|
|
2927
|
-
this.
|
|
2928
|
-
this.
|
|
2929
|
-
this.
|
|
2930
|
-
this.
|
|
2925
|
+
this.x26_1 = first;
|
|
2926
|
+
this.y26_1 = last;
|
|
2927
|
+
this.z26_1 = startM;
|
|
2928
|
+
this.a27_1 = endM;
|
|
2929
|
+
this.b27_1 = metrics;
|
|
2930
|
+
this.c27_1 = rejection;
|
|
2931
|
+
this.d27_1 = deckRanges;
|
|
2931
2932
|
}
|
|
2932
2933
|
protoOf(DeckCandidate).toString = function () {
|
|
2933
|
-
return 'DeckCandidate(first=' + this.
|
|
2934
|
+
return 'DeckCandidate(first=' + this.x26_1 + ', last=' + this.y26_1 + ', startM=' + this.z26_1 + ', endM=' + this.a27_1 + ', metrics=' + toString(this.b27_1) + ', rejection=' + toString(this.c27_1) + ', deckRanges=' + toString_0(this.d27_1) + ')';
|
|
2934
2935
|
};
|
|
2935
2936
|
protoOf(DeckCandidate).hashCode = function () {
|
|
2936
|
-
var result = this.
|
|
2937
|
-
result = imul(result, 31) + this.
|
|
2938
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2939
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2940
|
-
result = imul(result, 31) + (this.
|
|
2941
|
-
result = imul(result, 31) + (this.
|
|
2942
|
-
result = imul(result, 31) + hashCode(this.
|
|
2937
|
+
var result = this.x26_1;
|
|
2938
|
+
result = imul(result, 31) + this.y26_1 | 0;
|
|
2939
|
+
result = imul(result, 31) + getNumberHashCode(this.z26_1) | 0;
|
|
2940
|
+
result = imul(result, 31) + getNumberHashCode(this.a27_1) | 0;
|
|
2941
|
+
result = imul(result, 31) + (this.b27_1 == null ? 0 : this.b27_1.hashCode()) | 0;
|
|
2942
|
+
result = imul(result, 31) + (this.c27_1 == null ? 0 : this.c27_1.hashCode()) | 0;
|
|
2943
|
+
result = imul(result, 31) + hashCode(this.d27_1) | 0;
|
|
2943
2944
|
return result;
|
|
2944
2945
|
};
|
|
2945
2946
|
protoOf(DeckCandidate).equals = function (other) {
|
|
@@ -2947,13 +2948,9 @@
|
|
|
2947
2948
|
return true;
|
|
2948
2949
|
if (!(other instanceof DeckCandidate))
|
|
2949
2950
|
return false;
|
|
2950
|
-
if (!(this.
|
|
2951
|
+
if (!(this.x26_1 === other.x26_1))
|
|
2951
2952
|
return false;
|
|
2952
|
-
if (!(this.
|
|
2953
|
-
return false;
|
|
2954
|
-
if (!equals(this.x26_1, other.x26_1))
|
|
2955
|
-
return false;
|
|
2956
|
-
if (!equals(this.y26_1, other.y26_1))
|
|
2953
|
+
if (!(this.y26_1 === other.y26_1))
|
|
2957
2954
|
return false;
|
|
2958
2955
|
if (!equals(this.z26_1, other.z26_1))
|
|
2959
2956
|
return false;
|
|
@@ -2961,11 +2958,15 @@
|
|
|
2961
2958
|
return false;
|
|
2962
2959
|
if (!equals(this.b27_1, other.b27_1))
|
|
2963
2960
|
return false;
|
|
2961
|
+
if (!equals(this.c27_1, other.c27_1))
|
|
2962
|
+
return false;
|
|
2963
|
+
if (!equals(this.d27_1, other.d27_1))
|
|
2964
|
+
return false;
|
|
2964
2965
|
return true;
|
|
2965
2966
|
};
|
|
2966
2967
|
function Companion_1() {
|
|
2967
2968
|
}
|
|
2968
|
-
protoOf(Companion_1).
|
|
2969
|
+
protoOf(Companion_1).e27 = function (mnsM, mntM) {
|
|
2969
2970
|
// Inline function 'kotlin.require' call
|
|
2970
2971
|
if (!(mnsM.length === mntM.length)) {
|
|
2971
2972
|
var message = 'MNS and MNT sizes differ: ' + mnsM.length + ', ' + mntM.length;
|
|
@@ -2986,23 +2987,23 @@
|
|
|
2986
2987
|
return Companion_instance_2;
|
|
2987
2988
|
}
|
|
2988
2989
|
function DeckProfile(mnhM, mnsM, mntM) {
|
|
2989
|
-
this.
|
|
2990
|
-
this.
|
|
2991
|
-
this.
|
|
2990
|
+
this.f27_1 = mnhM;
|
|
2991
|
+
this.g27_1 = mnsM;
|
|
2992
|
+
this.h27_1 = mntM;
|
|
2992
2993
|
// Inline function 'kotlin.require' call
|
|
2993
|
-
if (!(this.
|
|
2994
|
-
var message = 'MNH, MNS and MNT must have one sample per station: ' + this.
|
|
2994
|
+
if (!(this.f27_1.length === this.g27_1.length && this.g27_1.length === this.h27_1.length)) {
|
|
2995
|
+
var message = 'MNH, MNS and MNT must have one sample per station: ' + this.f27_1.length + ', ' + this.g27_1.length + ', ' + this.h27_1.length;
|
|
2995
2996
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
2996
2997
|
}
|
|
2997
2998
|
}
|
|
2998
2999
|
protoOf(DeckProfile).o = function () {
|
|
2999
|
-
return this.
|
|
3000
|
+
return this.f27_1.length;
|
|
3000
3001
|
};
|
|
3001
3002
|
function SurfaceState(mnh, mf, rough, clean) {
|
|
3002
|
-
this.
|
|
3003
|
-
this.
|
|
3004
|
-
this.
|
|
3005
|
-
this.
|
|
3003
|
+
this.i27_1 = mnh;
|
|
3004
|
+
this.j27_1 = mf;
|
|
3005
|
+
this.k27_1 = rough;
|
|
3006
|
+
this.l27_1 = clean;
|
|
3006
3007
|
}
|
|
3007
3008
|
function roughness($this, mns, mf, half) {
|
|
3008
3009
|
var tmp = 0;
|
|
@@ -3016,7 +3017,7 @@
|
|
|
3016
3017
|
tmp = tmp + 1 | 0;
|
|
3017
3018
|
}
|
|
3018
3019
|
var sq = tmp_1;
|
|
3019
|
-
var mean = $this.
|
|
3020
|
+
var mean = $this.m27(sq, half);
|
|
3020
3021
|
var tmp_3 = 0;
|
|
3021
3022
|
var tmp_4 = mns.length;
|
|
3022
3023
|
var tmp_5 = new Float64Array(tmp_4);
|
|
@@ -3061,7 +3062,7 @@
|
|
|
3061
3062
|
if (tmp_0) {
|
|
3062
3063
|
tmp = NaN;
|
|
3063
3064
|
} else {
|
|
3064
|
-
tmp = $this.
|
|
3065
|
+
tmp = $this.n27(values, 0.95);
|
|
3065
3066
|
}
|
|
3066
3067
|
return tmp;
|
|
3067
3068
|
}
|
|
@@ -3090,16 +3091,16 @@
|
|
|
3090
3091
|
return tmp;
|
|
3091
3092
|
}
|
|
3092
3093
|
function sam$kotlin_Comparator$0(function_0) {
|
|
3093
|
-
this.
|
|
3094
|
+
this.o27_1 = function_0;
|
|
3094
3095
|
}
|
|
3095
3096
|
protoOf(sam$kotlin_Comparator$0).la = function (a, b) {
|
|
3096
|
-
return this.
|
|
3097
|
+
return this.o27_1(a, b);
|
|
3097
3098
|
};
|
|
3098
3099
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
3099
3100
|
return this.la(a, b);
|
|
3100
3101
|
};
|
|
3101
3102
|
protoOf(sam$kotlin_Comparator$0).e2 = function () {
|
|
3102
|
-
return this.
|
|
3103
|
+
return this.o27_1;
|
|
3103
3104
|
};
|
|
3104
3105
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
3105
3106
|
var tmp;
|
|
@@ -3122,8 +3123,8 @@
|
|
|
3122
3123
|
function detect$classify($options, slope, clean, mns, mnh, rough, mnt, n, step, mf, span, fraction) {
|
|
3123
3124
|
var a = span.oe_1;
|
|
3124
3125
|
var b = span.pe_1;
|
|
3125
|
-
var short = (b - a | 0) <= $options.
|
|
3126
|
-
var h = $options.
|
|
3126
|
+
var short = (b - a | 0) <= $options.o28();
|
|
3127
|
+
var h = $options.p28();
|
|
3127
3128
|
var tmp;
|
|
3128
3129
|
if (short) {
|
|
3129
3130
|
tmp = new Float64Array(0);
|
|
@@ -3143,8 +3144,8 @@
|
|
|
3143
3144
|
tmp = tmp_2;
|
|
3144
3145
|
}
|
|
3145
3146
|
var rawSlopes = tmp;
|
|
3146
|
-
var cleanFraction = short ? NaN : DeckDetector_instance.
|
|
3147
|
-
var cleanSlopes = !short && $options.
|
|
3147
|
+
var cleanFraction = short ? NaN : DeckDetector_instance.q28(clean, a, b, h);
|
|
3148
|
+
var cleanSlopes = !short && $options.h28_1 ? DeckDetector_instance.r28(mns, mnh, clean, cleanFraction, a, b, $options) : null;
|
|
3148
3149
|
var slopes = cleanSlopes == null ? rawSlopes : cleanSlopes;
|
|
3149
3150
|
var slopeP95 = p95OrNaN(DeckDetector_instance, slopes);
|
|
3150
3151
|
var tmp_4;
|
|
@@ -3164,7 +3165,7 @@
|
|
|
3164
3165
|
do {
|
|
3165
3166
|
var element = inductionVariable;
|
|
3166
3167
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3167
|
-
if (mnh[element] > $options.
|
|
3168
|
+
if (mnh[element] > $options.q27_1) {
|
|
3168
3169
|
destination.k(element);
|
|
3169
3170
|
}
|
|
3170
3171
|
}
|
|
@@ -3324,7 +3325,7 @@
|
|
|
3324
3325
|
}
|
|
3325
3326
|
var tmp2_elvis_lhs = maxOrNull(destination_5);
|
|
3326
3327
|
var metrics = new DeckMetrics(tmp_10, slopeP95, slopeMax, tmp_11, cleanFraction, tmp_12, roughness, fraction, tmp_13, mntDrop, tmp2_elvis_lhs == null ? NaN : tmp2_elvis_lhs);
|
|
3327
|
-
var rejection = stoppedOnNaN || isNaN_0(mntDrop) ? DeckRejection_NO_DATA_getInstance() : !(mntDrop > $options.
|
|
3328
|
+
var rejection = stoppedOnNaN || isNaN_0(mntDrop) ? DeckRejection_NO_DATA_getInstance() : !(mntDrop > $options.d28_1) ? DeckRejection_NO_CANYON_getInstance() : short && isNaN_0(roughness) ? DeckRejection_NO_DATA_getInstance() : short ? roughness < $options.c28_1 ? null : DeckRejection_SHORT_ROUGH_getInstance() : isNaN_0(slopeP95) ? DeckRejection_NO_DATA_getInstance() : slopeP95 <= $options.z27_1 && (b - a | 0) * step >= $options.a28_1 ? null : DeckRejection_STEEP_getInstance();
|
|
3328
3329
|
return to(metrics, rejection);
|
|
3329
3330
|
}
|
|
3330
3331
|
function DeckDetector$detect$lambda($mf) {
|
|
@@ -3334,8 +3335,8 @@
|
|
|
3334
3335
|
}
|
|
3335
3336
|
function DeckDetector$detect$lambda_0(a, b) {
|
|
3336
3337
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
3337
|
-
var tmp = a.
|
|
3338
|
-
var tmp$ret$2 = b.
|
|
3338
|
+
var tmp = a.x26_1;
|
|
3339
|
+
var tmp$ret$2 = b.x26_1;
|
|
3339
3340
|
return compareValues(tmp, tmp$ret$2);
|
|
3340
3341
|
}
|
|
3341
3342
|
function DeckDetector$detect$lambda_1($this) {
|
|
@@ -3346,8 +3347,8 @@
|
|
|
3346
3347
|
tmp = previousCompare;
|
|
3347
3348
|
} else {
|
|
3348
3349
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
3349
|
-
var tmp_0 = a.
|
|
3350
|
-
var tmp$ret$2 = b.
|
|
3350
|
+
var tmp_0 = a.y26_1;
|
|
3351
|
+
var tmp$ret$2 = b.y26_1;
|
|
3351
3352
|
tmp = compareValues(tmp_0, tmp$ret$2);
|
|
3352
3353
|
}
|
|
3353
3354
|
return tmp;
|
|
@@ -3366,33 +3367,33 @@
|
|
|
3366
3367
|
}
|
|
3367
3368
|
function DeckDetector() {
|
|
3368
3369
|
}
|
|
3369
|
-
protoOf(DeckDetector).
|
|
3370
|
+
protoOf(DeckDetector).s28 = function (profile, options) {
|
|
3370
3371
|
var n = profile.o();
|
|
3371
|
-
var mns = profile.
|
|
3372
|
-
var mnt = profile.
|
|
3373
|
-
var step = options.
|
|
3372
|
+
var mns = profile.g27_1;
|
|
3373
|
+
var mnt = profile.h27_1;
|
|
3374
|
+
var step = options.p27_1;
|
|
3374
3375
|
if (n === 0)
|
|
3375
3376
|
return new DeckDetection(emptyList(), emptyList(), 0);
|
|
3376
|
-
var state = this.
|
|
3377
|
-
var mnh = state.
|
|
3378
|
-
var mf = state.
|
|
3379
|
-
var rough = state.
|
|
3377
|
+
var state = this.t28(profile, options);
|
|
3378
|
+
var mnh = state.i27_1;
|
|
3379
|
+
var mf = state.j27_1;
|
|
3380
|
+
var rough = state.k27_1;
|
|
3380
3381
|
var tmp = 0;
|
|
3381
3382
|
var tmp_0 = booleanArray(n);
|
|
3382
3383
|
while (tmp < n) {
|
|
3383
3384
|
var tmp_1 = tmp;
|
|
3384
|
-
tmp_0[tmp_1] = mnh[tmp_1] > options.
|
|
3385
|
+
tmp_0[tmp_1] = mnh[tmp_1] > options.q27_1;
|
|
3385
3386
|
tmp = tmp + 1 | 0;
|
|
3386
3387
|
}
|
|
3387
3388
|
var tall = tmp_0;
|
|
3388
|
-
var tallRuns = this.
|
|
3389
|
+
var tallRuns = this.u28(tall);
|
|
3389
3390
|
// Inline function 'kotlin.collections.filter' call
|
|
3390
3391
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3391
3392
|
var destination = ArrayList_init_$Create$();
|
|
3392
3393
|
var _iterator__ex2g4s = tallRuns.l();
|
|
3393
3394
|
while (_iterator__ex2g4s.m()) {
|
|
3394
3395
|
var element = _iterator__ex2g4s.n();
|
|
3395
|
-
if (((element.pe_1 - element.oe_1 | 0) + 1 | 0) >= options.
|
|
3396
|
+
if (((element.pe_1 - element.oe_1 | 0) + 1 | 0) >= options.v28()) {
|
|
3396
3397
|
destination.k(element);
|
|
3397
3398
|
}
|
|
3398
3399
|
}
|
|
@@ -3425,7 +3426,7 @@
|
|
|
3425
3426
|
do {
|
|
3426
3427
|
var element_0 = inductionVariable;
|
|
3427
3428
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3428
|
-
if (rough[element_0] < options.
|
|
3429
|
+
if (rough[element_0] < options.u27_1) {
|
|
3429
3430
|
count = count + 1 | 0;
|
|
3430
3431
|
checkCountOverflow(count);
|
|
3431
3432
|
}
|
|
@@ -3465,11 +3466,11 @@
|
|
|
3465
3466
|
}
|
|
3466
3467
|
var unknown = tmp$ret$6;
|
|
3467
3468
|
var fraction = smooth / len;
|
|
3468
|
-
if (fraction >= options.
|
|
3469
|
+
if (fraction >= options.v27_1) {
|
|
3469
3470
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3470
3471
|
var element_2 = to(r, fraction);
|
|
3471
3472
|
kept.k(element_2);
|
|
3472
|
-
} else if ((smooth + unknown | 0) / len >= options.
|
|
3473
|
+
} else if ((smooth + unknown | 0) / len >= options.v27_1) {
|
|
3473
3474
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3474
3475
|
noDataRuns.k(r);
|
|
3475
3476
|
} else {
|
|
@@ -3477,7 +3478,7 @@
|
|
|
3477
3478
|
roughRuns.k(r);
|
|
3478
3479
|
}
|
|
3479
3480
|
}
|
|
3480
|
-
var gap = options.
|
|
3481
|
+
var gap = options.w28();
|
|
3481
3482
|
var merged = ArrayList_init_$Create$();
|
|
3482
3483
|
var _iterator__ex2g4s_1 = kept.l();
|
|
3483
3484
|
while (_iterator__ex2g4s_1.m()) {
|
|
@@ -3498,15 +3499,15 @@
|
|
|
3498
3499
|
merged.k(element_3);
|
|
3499
3500
|
}
|
|
3500
3501
|
}
|
|
3501
|
-
var island = options.
|
|
3502
|
+
var island = options.x28();
|
|
3502
3503
|
var spans = ArrayList_init_$Create$();
|
|
3503
3504
|
var _iterator__ex2g4s_2 = merged.l();
|
|
3504
3505
|
while (_iterator__ex2g4s_2.m()) {
|
|
3505
3506
|
var _destruct__k2r9zo_0 = _iterator__ex2g4s_2.n();
|
|
3506
3507
|
var r_1 = _destruct__k2r9zo_0.kc();
|
|
3507
3508
|
var f_0 = _destruct__k2r9zo_0.lc();
|
|
3508
|
-
var a_0 = this.
|
|
3509
|
-
var b = this.
|
|
3509
|
+
var a_0 = this.z28(mnh, r_1.oe_1, -1, options.x27_1, island, options.y28());
|
|
3510
|
+
var b = this.z28(mnh, r_1.pe_1, 1, options.x27_1, island, options.y28());
|
|
3510
3511
|
var prev_0 = lastOrNull(spans);
|
|
3511
3512
|
if (!(prev_0 == null) && a_0 <= prev_0.ic_1.pe_1) {
|
|
3512
3513
|
var tmp_6 = spans.o() - 1 | 0;
|
|
@@ -3524,16 +3525,16 @@
|
|
|
3524
3525
|
spans.k(element_4);
|
|
3525
3526
|
}
|
|
3526
3527
|
}
|
|
3527
|
-
var slope = this.
|
|
3528
|
-
var clean = state.
|
|
3528
|
+
var slope = this.a29(mf, options.p28(), step);
|
|
3529
|
+
var clean = state.l27_1;
|
|
3529
3530
|
var parts = ArrayList_init_$Create$();
|
|
3530
3531
|
var _iterator__ex2g4s_3 = kept.l();
|
|
3531
3532
|
while (_iterator__ex2g4s_3.m()) {
|
|
3532
3533
|
var _destruct__k2r9zo_1 = _iterator__ex2g4s_3.n();
|
|
3533
3534
|
var r_2 = _destruct__k2r9zo_1.kc();
|
|
3534
3535
|
var f_1 = _destruct__k2r9zo_1.lc();
|
|
3535
|
-
var a_3 = this.
|
|
3536
|
-
var b_0 = this.
|
|
3536
|
+
var a_3 = this.z28(mnh, r_2.oe_1, -1, options.x27_1, island, options.y28());
|
|
3537
|
+
var b_0 = this.z28(mnh, r_2.pe_1, 1, options.x27_1, island, options.y28());
|
|
3537
3538
|
var prev_1 = lastOrNull(parts);
|
|
3538
3539
|
if (!(prev_1 == null) && a_3 <= prev_1.ic_1.pe_1) {
|
|
3539
3540
|
var tmp_8 = parts.o() - 1 | 0;
|
|
@@ -3561,7 +3562,7 @@
|
|
|
3561
3562
|
var metrics = _destruct__k2r9zo_3.kc();
|
|
3562
3563
|
var rejection = _destruct__k2r9zo_3.lc();
|
|
3563
3564
|
var tmp_10;
|
|
3564
|
-
if (options.
|
|
3565
|
+
if (options.n28_1 && equals(rejection, DeckRejection_STEEP_getInstance())) {
|
|
3565
3566
|
// Inline function 'kotlin.collections.filter' call
|
|
3566
3567
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3567
3568
|
var destination_0 = ArrayList_init_$Create$();
|
|
@@ -3601,7 +3602,7 @@
|
|
|
3601
3602
|
var tmp_12 = booleanArray(n);
|
|
3602
3603
|
while (tmp_11 < n) {
|
|
3603
3604
|
var tmp_13 = tmp_11;
|
|
3604
|
-
tmp_12[tmp_13] = mnh[tmp_13] > options.
|
|
3605
|
+
tmp_12[tmp_13] = mnh[tmp_13] > options.x27_1;
|
|
3605
3606
|
tmp_11 = tmp_11 + 1 | 0;
|
|
3606
3607
|
}
|
|
3607
3608
|
var deckMask = tmp_12;
|
|
@@ -3611,10 +3612,10 @@
|
|
|
3611
3612
|
var span_0 = _destruct__k2r9zo_5.kc();
|
|
3612
3613
|
var rejection_0 = _destruct__k2r9zo_5.hh();
|
|
3613
3614
|
if (rejection_0 == null) {
|
|
3614
|
-
this.
|
|
3615
|
+
this.b29(deckMask, span_0, island, DeckDetector$detect$lambda(mf));
|
|
3615
3616
|
}
|
|
3616
3617
|
}
|
|
3617
|
-
var deckRuns = this.
|
|
3618
|
+
var deckRuns = this.u28(deckMask);
|
|
3618
3619
|
var accepted = ArrayList_init_$Create$();
|
|
3619
3620
|
var rejected = ArrayList_init_$Create$();
|
|
3620
3621
|
var _iterator__ex2g4s_8 = classified.l();
|
|
@@ -3635,7 +3636,7 @@
|
|
|
3635
3636
|
var _iterator__ex2g4s_9 = deckRuns.l();
|
|
3636
3637
|
while (_iterator__ex2g4s_9.m()) {
|
|
3637
3638
|
var element_9 = _iterator__ex2g4s_9.n();
|
|
3638
|
-
if ((((element_9.pe_1 - element_9.oe_1 | 0) + 1 | 0) >= options.
|
|
3639
|
+
if ((((element_9.pe_1 - element_9.oe_1 | 0) + 1 | 0) >= options.c29() || (b_1 - a_6 | 0) <= options.d29()) && element_9.oe_1 <= b_1 && element_9.pe_1 >= a_6) {
|
|
3639
3640
|
destination_1.k(element_9);
|
|
3640
3641
|
}
|
|
3641
3642
|
}
|
|
@@ -3666,14 +3667,14 @@
|
|
|
3666
3667
|
rejected.k(candidate);
|
|
3667
3668
|
}
|
|
3668
3669
|
}
|
|
3669
|
-
var _iterator__ex2g4s_11 = this.
|
|
3670
|
+
var _iterator__ex2g4s_11 = this.e29(roughRuns, gap).l();
|
|
3670
3671
|
while (_iterator__ex2g4s_11.m()) {
|
|
3671
3672
|
var g = _iterator__ex2g4s_11.n();
|
|
3672
3673
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3673
3674
|
var element_10 = new DeckCandidate(g.oe_1, g.pe_1, g.oe_1 * step, g.pe_1 * step, null, DeckRejection_ROUGH_getInstance(), emptyList());
|
|
3674
3675
|
rejected.k(element_10);
|
|
3675
3676
|
}
|
|
3676
|
-
var _iterator__ex2g4s_12 = this.
|
|
3677
|
+
var _iterator__ex2g4s_12 = this.e29(noDataRuns, gap).l();
|
|
3677
3678
|
while (_iterator__ex2g4s_12.m()) {
|
|
3678
3679
|
var g_0 = _iterator__ex2g4s_12.n();
|
|
3679
3680
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
@@ -3689,40 +3690,40 @@
|
|
|
3689
3690
|
sortWith(rejected, tmp$ret$40);
|
|
3690
3691
|
return new DeckDetection(accepted, rejected, tooShort);
|
|
3691
3692
|
};
|
|
3692
|
-
protoOf(DeckDetector).
|
|
3693
|
+
protoOf(DeckDetector).t28 = function (profile, options) {
|
|
3693
3694
|
var n = profile.o();
|
|
3694
|
-
var mns = profile.
|
|
3695
|
-
var mnt = profile.
|
|
3695
|
+
var mns = profile.g27_1;
|
|
3696
|
+
var mnt = profile.h27_1;
|
|
3696
3697
|
var tmp;
|
|
3697
|
-
if (options.
|
|
3698
|
-
var tol = options.
|
|
3698
|
+
if (options.k28_1) {
|
|
3699
|
+
var tol = options.l28_1;
|
|
3699
3700
|
var tmp_0 = 0;
|
|
3700
3701
|
var tmp_1 = new Float64Array(n);
|
|
3701
3702
|
while (tmp_0 < n) {
|
|
3702
3703
|
var tmp_2 = tmp_0;
|
|
3703
|
-
tmp_1[tmp_2] = mnt[tmp_2] > mns[tmp_2] + tol ? Infinity : profile.
|
|
3704
|
+
tmp_1[tmp_2] = mnt[tmp_2] > mns[tmp_2] + tol ? Infinity : profile.f27_1[tmp_2];
|
|
3704
3705
|
tmp_0 = tmp_0 + 1 | 0;
|
|
3705
3706
|
}
|
|
3706
3707
|
tmp = tmp_1;
|
|
3707
3708
|
} else {
|
|
3708
|
-
tmp = profile.
|
|
3709
|
+
tmp = profile.f27_1;
|
|
3709
3710
|
}
|
|
3710
3711
|
var mnh = tmp;
|
|
3711
|
-
var mf = this.
|
|
3712
|
-
var rough = roughness(this, mns, mf, options.
|
|
3712
|
+
var mf = this.g29(mns, options.f29() / 2 | 0);
|
|
3713
|
+
var rough = roughness(this, mns, mf, options.h29() / 2 | 0);
|
|
3713
3714
|
// Inline function 'kotlin.let' call
|
|
3714
|
-
var m = this.
|
|
3715
|
+
var m = this.i29(rough, options.h29() / 2 | 0);
|
|
3715
3716
|
var tmp_3 = 0;
|
|
3716
3717
|
var tmp_4 = booleanArray(n);
|
|
3717
3718
|
while (tmp_3 < n) {
|
|
3718
3719
|
var tmp_5 = tmp_3;
|
|
3719
|
-
tmp_4[tmp_5] = m[tmp_5] < options.
|
|
3720
|
+
tmp_4[tmp_5] = m[tmp_5] < options.u27_1;
|
|
3720
3721
|
tmp_3 = tmp_3 + 1 | 0;
|
|
3721
3722
|
}
|
|
3722
3723
|
var clean = tmp_4;
|
|
3723
3724
|
return new SurfaceState(mnh, mf, rough, clean);
|
|
3724
3725
|
};
|
|
3725
|
-
protoOf(DeckDetector).
|
|
3726
|
+
protoOf(DeckDetector).q28 = function (clean, a, b, h) {
|
|
3726
3727
|
var tmp;
|
|
3727
3728
|
if ((b - h | 0) < (a + h | 0)) {
|
|
3728
3729
|
tmp = NaN;
|
|
@@ -3760,9 +3761,9 @@
|
|
|
3760
3761
|
}
|
|
3761
3762
|
return tmp;
|
|
3762
3763
|
};
|
|
3763
|
-
protoOf(DeckDetector).
|
|
3764
|
+
protoOf(DeckDetector).r28 = function (mns, mnh, clean, cleanFraction, a, b, options) {
|
|
3764
3765
|
var n = mns.length;
|
|
3765
|
-
var h = options.
|
|
3766
|
+
var h = options.p28();
|
|
3766
3767
|
if ((b - h | 0) < (a + h | 0))
|
|
3767
3768
|
return null;
|
|
3768
3769
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -3781,11 +3782,11 @@
|
|
|
3781
3782
|
}
|
|
3782
3783
|
while (!(element === last));
|
|
3783
3784
|
var inSpan = destination;
|
|
3784
|
-
if (inSpan.o() < options.
|
|
3785
|
+
if (inSpan.o() < options.j28_1)
|
|
3785
3786
|
return null;
|
|
3786
|
-
if (!(cleanFraction >= options.
|
|
3787
|
+
if (!(cleanFraction >= options.i28_1))
|
|
3787
3788
|
return null;
|
|
3788
|
-
var medianHalf = options.
|
|
3789
|
+
var medianHalf = options.f29() / 2 | 0;
|
|
3789
3790
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
3790
3791
|
var b_0 = a - medianHalf | 0;
|
|
3791
3792
|
var lo = Math.max(0, b_0);
|
|
@@ -3822,7 +3823,7 @@
|
|
|
3822
3823
|
do {
|
|
3823
3824
|
var element_0 = inductionVariable_1;
|
|
3824
3825
|
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
3825
|
-
if (mnh[element_0] <= options.
|
|
3826
|
+
if (mnh[element_0] <= options.m28_1) {
|
|
3826
3827
|
tmp$ret$5 = true;
|
|
3827
3828
|
break $l$block_0;
|
|
3828
3829
|
}
|
|
@@ -3842,7 +3843,7 @@
|
|
|
3842
3843
|
while (inductionVariable_2 < c1);
|
|
3843
3844
|
}
|
|
3844
3845
|
while (inductionVariable_0 < last_0);
|
|
3845
|
-
var mfClean = this.
|
|
3846
|
+
var mfClean = this.g29(x, medianHalf);
|
|
3846
3847
|
var tmp_0 = 0;
|
|
3847
3848
|
var tmp_1 = ((b - h | 0) - (a + h | 0) | 0) + 1 | 0;
|
|
3848
3849
|
var tmp_2 = new Float64Array(tmp_1);
|
|
@@ -3850,13 +3851,13 @@
|
|
|
3850
3851
|
var tmp_3 = tmp_0;
|
|
3851
3852
|
var k_0 = (a + h | 0) + tmp_3 | 0;
|
|
3852
3853
|
// Inline function 'kotlin.math.abs' call
|
|
3853
|
-
var x_0 = (mfClean[(k_0 + h | 0) - lo | 0] - mfClean[(k_0 - h | 0) - lo | 0]) / (imul(2, h) * options.
|
|
3854
|
+
var x_0 = (mfClean[(k_0 + h | 0) - lo | 0] - mfClean[(k_0 - h | 0) - lo | 0]) / (imul(2, h) * options.p27_1);
|
|
3854
3855
|
tmp_2[tmp_3] = Math.abs(x_0);
|
|
3855
3856
|
tmp_0 = tmp_0 + 1 | 0;
|
|
3856
3857
|
}
|
|
3857
3858
|
return tmp_2;
|
|
3858
3859
|
};
|
|
3859
|
-
protoOf(DeckDetector).
|
|
3860
|
+
protoOf(DeckDetector).z28 = function (mnh, from, dir, threshold, maxIsland, maxSteps) {
|
|
3860
3861
|
var n = mnh.length;
|
|
3861
3862
|
var ok = DeckDetector$extend$lambda(n, mnh, threshold);
|
|
3862
3863
|
var k = from;
|
|
@@ -3890,7 +3891,7 @@
|
|
|
3890
3891
|
}
|
|
3891
3892
|
return abs(k - from | 0) > maxSteps ? from : k;
|
|
3892
3893
|
};
|
|
3893
|
-
protoOf(DeckDetector).
|
|
3894
|
+
protoOf(DeckDetector).b29 = function (mask, span, maxHole, fill) {
|
|
3894
3895
|
var k = span.oe_1;
|
|
3895
3896
|
$l$loop: while (k <= span.pe_1) {
|
|
3896
3897
|
if (mask[k]) {
|
|
@@ -3950,7 +3951,7 @@
|
|
|
3950
3951
|
k = end + 1 | 0;
|
|
3951
3952
|
}
|
|
3952
3953
|
};
|
|
3953
|
-
protoOf(DeckDetector).
|
|
3954
|
+
protoOf(DeckDetector).g29 = function (x, half) {
|
|
3954
3955
|
var n = x.length;
|
|
3955
3956
|
var window_0 = new Float64Array(imul(2, half) + 1 | 0);
|
|
3956
3957
|
var tmp = 0;
|
|
@@ -3984,7 +3985,7 @@
|
|
|
3984
3985
|
}
|
|
3985
3986
|
return tmp_0;
|
|
3986
3987
|
};
|
|
3987
|
-
protoOf(DeckDetector).
|
|
3988
|
+
protoOf(DeckDetector).m27 = function (x, half) {
|
|
3988
3989
|
var n = x.length;
|
|
3989
3990
|
var tmp = 0;
|
|
3990
3991
|
var tmp_0 = new Float64Array(n);
|
|
@@ -4005,7 +4006,7 @@
|
|
|
4005
4006
|
}
|
|
4006
4007
|
return tmp_0;
|
|
4007
4008
|
};
|
|
4008
|
-
protoOf(DeckDetector).
|
|
4009
|
+
protoOf(DeckDetector).i29 = function (x, half) {
|
|
4009
4010
|
var n = x.length;
|
|
4010
4011
|
var tmp = 0;
|
|
4011
4012
|
var tmp_0 = new Float64Array(n);
|
|
@@ -4036,7 +4037,7 @@
|
|
|
4036
4037
|
}
|
|
4037
4038
|
return tmp_0;
|
|
4038
4039
|
};
|
|
4039
|
-
protoOf(DeckDetector).
|
|
4040
|
+
protoOf(DeckDetector).a29 = function (x, h, stepM) {
|
|
4040
4041
|
var n = x.length;
|
|
4041
4042
|
var tmp = 0;
|
|
4042
4043
|
var tmp_0 = new Float64Array(n);
|
|
@@ -4053,7 +4054,7 @@
|
|
|
4053
4054
|
}
|
|
4054
4055
|
return tmp_0;
|
|
4055
4056
|
};
|
|
4056
|
-
protoOf(DeckDetector).
|
|
4057
|
+
protoOf(DeckDetector).u28 = function (mask) {
|
|
4057
4058
|
var out = ArrayList_init_$Create$();
|
|
4058
4059
|
var start = -1;
|
|
4059
4060
|
var inductionVariable = 0;
|
|
@@ -4079,7 +4080,7 @@
|
|
|
4079
4080
|
}
|
|
4080
4081
|
return out;
|
|
4081
4082
|
};
|
|
4082
|
-
protoOf(DeckDetector).
|
|
4083
|
+
protoOf(DeckDetector).e29 = function (rs, gapStations) {
|
|
4083
4084
|
var out = ArrayList_init_$Create$();
|
|
4084
4085
|
var _iterator__ex2g4s = rs.l();
|
|
4085
4086
|
while (_iterator__ex2g4s.m()) {
|
|
@@ -4099,7 +4100,7 @@
|
|
|
4099
4100
|
}
|
|
4100
4101
|
return out;
|
|
4101
4102
|
};
|
|
4102
|
-
protoOf(DeckDetector).
|
|
4103
|
+
protoOf(DeckDetector).n27 = function (values, q) {
|
|
4103
4104
|
var s = sortedArray(values);
|
|
4104
4105
|
var rank = (s.length - 1 | 0) * q;
|
|
4105
4106
|
// Inline function 'kotlin.math.floor' call
|
|
@@ -4116,33 +4117,33 @@
|
|
|
4116
4117
|
return DeckDetector_instance;
|
|
4117
4118
|
}
|
|
4118
4119
|
function DeckMetrics(lengthM, slopeP95, slopeMax, rawSlopeP95, cleanFraction, slopeOnCleanDeck, roughnessM, smoothFraction, canyonM, mntDropM, deckTopM) {
|
|
4119
|
-
this.
|
|
4120
|
-
this.
|
|
4121
|
-
this.
|
|
4122
|
-
this.
|
|
4123
|
-
this.
|
|
4124
|
-
this.
|
|
4125
|
-
this.
|
|
4126
|
-
this.
|
|
4127
|
-
this.
|
|
4128
|
-
this.
|
|
4129
|
-
this.
|
|
4120
|
+
this.j29_1 = lengthM;
|
|
4121
|
+
this.k29_1 = slopeP95;
|
|
4122
|
+
this.l29_1 = slopeMax;
|
|
4123
|
+
this.m29_1 = rawSlopeP95;
|
|
4124
|
+
this.n29_1 = cleanFraction;
|
|
4125
|
+
this.o29_1 = slopeOnCleanDeck;
|
|
4126
|
+
this.p29_1 = roughnessM;
|
|
4127
|
+
this.q29_1 = smoothFraction;
|
|
4128
|
+
this.r29_1 = canyonM;
|
|
4129
|
+
this.s29_1 = mntDropM;
|
|
4130
|
+
this.t29_1 = deckTopM;
|
|
4130
4131
|
}
|
|
4131
4132
|
protoOf(DeckMetrics).toString = function () {
|
|
4132
|
-
return 'DeckMetrics(lengthM=' + this.
|
|
4133
|
+
return 'DeckMetrics(lengthM=' + this.j29_1 + ', slopeP95=' + this.k29_1 + ', slopeMax=' + this.l29_1 + ', rawSlopeP95=' + this.m29_1 + ', cleanFraction=' + this.n29_1 + ', slopeOnCleanDeck=' + this.o29_1 + ', roughnessM=' + this.p29_1 + ', smoothFraction=' + this.q29_1 + ', canyonM=' + this.r29_1 + ', mntDropM=' + this.s29_1 + ', deckTopM=' + this.t29_1 + ')';
|
|
4133
4134
|
};
|
|
4134
4135
|
protoOf(DeckMetrics).hashCode = function () {
|
|
4135
|
-
var result = getNumberHashCode(this.
|
|
4136
|
-
result = imul(result, 31) + getNumberHashCode(this.i29_1) | 0;
|
|
4137
|
-
result = imul(result, 31) + getNumberHashCode(this.j29_1) | 0;
|
|
4136
|
+
var result = getNumberHashCode(this.j29_1);
|
|
4138
4137
|
result = imul(result, 31) + getNumberHashCode(this.k29_1) | 0;
|
|
4139
4138
|
result = imul(result, 31) + getNumberHashCode(this.l29_1) | 0;
|
|
4140
|
-
result = imul(result, 31) +
|
|
4139
|
+
result = imul(result, 31) + getNumberHashCode(this.m29_1) | 0;
|
|
4141
4140
|
result = imul(result, 31) + getNumberHashCode(this.n29_1) | 0;
|
|
4142
|
-
result = imul(result, 31) +
|
|
4141
|
+
result = imul(result, 31) + getBooleanHashCode(this.o29_1) | 0;
|
|
4143
4142
|
result = imul(result, 31) + getNumberHashCode(this.p29_1) | 0;
|
|
4144
4143
|
result = imul(result, 31) + getNumberHashCode(this.q29_1) | 0;
|
|
4145
4144
|
result = imul(result, 31) + getNumberHashCode(this.r29_1) | 0;
|
|
4145
|
+
result = imul(result, 31) + getNumberHashCode(this.s29_1) | 0;
|
|
4146
|
+
result = imul(result, 31) + getNumberHashCode(this.t29_1) | 0;
|
|
4146
4147
|
return result;
|
|
4147
4148
|
};
|
|
4148
4149
|
protoOf(DeckMetrics).equals = function (other) {
|
|
@@ -4150,21 +4151,17 @@
|
|
|
4150
4151
|
return true;
|
|
4151
4152
|
if (!(other instanceof DeckMetrics))
|
|
4152
4153
|
return false;
|
|
4153
|
-
if (!equals(this.h29_1, other.h29_1))
|
|
4154
|
-
return false;
|
|
4155
|
-
if (!equals(this.i29_1, other.i29_1))
|
|
4156
|
-
return false;
|
|
4157
4154
|
if (!equals(this.j29_1, other.j29_1))
|
|
4158
4155
|
return false;
|
|
4159
4156
|
if (!equals(this.k29_1, other.k29_1))
|
|
4160
4157
|
return false;
|
|
4161
4158
|
if (!equals(this.l29_1, other.l29_1))
|
|
4162
4159
|
return false;
|
|
4163
|
-
if (!(this.m29_1
|
|
4160
|
+
if (!equals(this.m29_1, other.m29_1))
|
|
4164
4161
|
return false;
|
|
4165
4162
|
if (!equals(this.n29_1, other.n29_1))
|
|
4166
4163
|
return false;
|
|
4167
|
-
if (!
|
|
4164
|
+
if (!(this.o29_1 === other.o29_1))
|
|
4168
4165
|
return false;
|
|
4169
4166
|
if (!equals(this.p29_1, other.p29_1))
|
|
4170
4167
|
return false;
|
|
@@ -4172,6 +4169,10 @@
|
|
|
4172
4169
|
return false;
|
|
4173
4170
|
if (!equals(this.r29_1, other.r29_1))
|
|
4174
4171
|
return false;
|
|
4172
|
+
if (!equals(this.s29_1, other.s29_1))
|
|
4173
|
+
return false;
|
|
4174
|
+
if (!equals(this.t29_1, other.t29_1))
|
|
4175
|
+
return false;
|
|
4175
4176
|
return true;
|
|
4176
4177
|
};
|
|
4177
4178
|
var static_init_called_1;
|
|
@@ -4214,21 +4215,21 @@
|
|
|
4214
4215
|
return DeckRejection_NO_DATA_instance;
|
|
4215
4216
|
}
|
|
4216
4217
|
function stations($this, metres, name) {
|
|
4217
|
-
var r = metres / $this.
|
|
4218
|
+
var r = metres / $this.p27_1;
|
|
4218
4219
|
var k = roundToInt(r);
|
|
4219
4220
|
// Inline function 'kotlin.math.abs' call
|
|
4220
4221
|
var x = r - k;
|
|
4221
4222
|
// Inline function 'kotlin.require' call
|
|
4222
4223
|
if (!(Math.abs(x) < 1.0E-9)) {
|
|
4223
|
-
var message = name + ' = ' + metres + ' m is not a whole number of ' + $this.
|
|
4224
|
+
var message = name + ' = ' + metres + ' m is not a whole number of ' + $this.p27_1 + ' m stations';
|
|
4224
4225
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
4225
4226
|
}
|
|
4226
4227
|
return k;
|
|
4227
4228
|
}
|
|
4228
4229
|
function Companion_2() {
|
|
4229
4230
|
Companion_instance_3 = this;
|
|
4230
|
-
this.
|
|
4231
|
-
this.
|
|
4231
|
+
this.u29_1 = new DeckDetectorOptions();
|
|
4232
|
+
this.v29_1 = new DeckDetectorOptions(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false, VOID, VOID, false, VOID, VOID, false);
|
|
4232
4233
|
}
|
|
4233
4234
|
var Companion_instance_3;
|
|
4234
4235
|
function Companion_getInstance_3() {
|
|
@@ -4263,37 +4264,37 @@
|
|
|
4263
4264
|
mntAboveMnsToleranceM = mntAboveMnsToleranceM === VOID ? 0.5 : mntAboveMnsToleranceM;
|
|
4264
4265
|
cleanGapGroundMnhM = cleanGapGroundMnhM === VOID ? 1.0 : cleanGapGroundMnhM;
|
|
4265
4266
|
splitSteepMerged = splitSteepMerged === VOID ? true : splitSteepMerged;
|
|
4266
|
-
this.
|
|
4267
|
-
this.
|
|
4268
|
-
this.
|
|
4269
|
-
this.
|
|
4270
|
-
this.
|
|
4271
|
-
this.
|
|
4272
|
-
this.
|
|
4273
|
-
this.
|
|
4274
|
-
this.
|
|
4275
|
-
this.
|
|
4276
|
-
this.
|
|
4277
|
-
this.
|
|
4278
|
-
this.
|
|
4279
|
-
this.
|
|
4280
|
-
this.
|
|
4281
|
-
this.
|
|
4282
|
-
this.
|
|
4283
|
-
this.
|
|
4284
|
-
this.
|
|
4285
|
-
this.
|
|
4286
|
-
this.
|
|
4287
|
-
this.
|
|
4288
|
-
this.
|
|
4289
|
-
this.
|
|
4290
|
-
this.
|
|
4267
|
+
this.p27_1 = stepM;
|
|
4268
|
+
this.q27_1 = tallMnhM;
|
|
4269
|
+
this.r27_1 = minTallRunM;
|
|
4270
|
+
this.s27_1 = surfaceMedianWindowM;
|
|
4271
|
+
this.t27_1 = roughnessWindowM;
|
|
4272
|
+
this.u27_1 = maxRoughnessM;
|
|
4273
|
+
this.v27_1 = minSmoothFraction;
|
|
4274
|
+
this.w27_1 = mergeGapM;
|
|
4275
|
+
this.x27_1 = deckMnhM;
|
|
4276
|
+
this.y27_1 = slopeHalfWindowM;
|
|
4277
|
+
this.z27_1 = maxSlopeP95;
|
|
4278
|
+
this.a28_1 = minLengthM;
|
|
4279
|
+
this.b28_1 = shortSpanM;
|
|
4280
|
+
this.c28_1 = maxShortRoughnessM;
|
|
4281
|
+
this.d28_1 = minCanyonDropM;
|
|
4282
|
+
this.e28_1 = deckMinRunM;
|
|
4283
|
+
this.f28_1 = smallSpanM;
|
|
4284
|
+
this.g28_1 = maxAbutmentM;
|
|
4285
|
+
this.h28_1 = slopeOnCleanDeck;
|
|
4286
|
+
this.i28_1 = minCleanFraction;
|
|
4287
|
+
this.j28_1 = minCleanStationsCount;
|
|
4288
|
+
this.k28_1 = mntAboveMnsAsTall;
|
|
4289
|
+
this.l28_1 = mntAboveMnsToleranceM;
|
|
4290
|
+
this.m28_1 = cleanGapGroundMnhM;
|
|
4291
|
+
this.n28_1 = splitSteepMerged;
|
|
4291
4292
|
// Inline function 'kotlin.require' call
|
|
4292
|
-
if (!(this.
|
|
4293
|
-
var message = 'stepM must be positive, got ' + this.
|
|
4293
|
+
if (!(this.p27_1 > 0.0 && isFinite(this.p27_1))) {
|
|
4294
|
+
var message = 'stepM must be positive, got ' + this.p27_1;
|
|
4294
4295
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
4295
4296
|
}
|
|
4296
|
-
var thresholds = mapOf([to('tallMnhM', this.
|
|
4297
|
+
var thresholds = mapOf([to('tallMnhM', this.q27_1), to('minTallRunM', this.r27_1), to('surfaceMedianWindowM', this.s27_1), to('roughnessWindowM', this.t27_1), to('maxRoughnessM', this.u27_1), to('minSmoothFraction', this.v27_1), to('mergeGapM', this.w27_1), to('deckMnhM', this.x27_1), to('slopeHalfWindowM', this.y27_1), to('maxSlopeP95', this.z27_1), to('minLengthM', this.a28_1), to('shortSpanM', this.b28_1), to('maxShortRoughnessM', this.c28_1), to('minCanyonDropM', this.d28_1), to('deckMinRunM', this.e28_1), to('smallSpanM', this.f28_1), to('maxAbutmentM', this.g28_1), to('minCleanFraction', this.i28_1), to('mntAboveMnsToleranceM', this.l28_1), to('cleanGapGroundMnhM', this.m28_1)]);
|
|
4297
4298
|
// Inline function 'kotlin.collections.forEach' call
|
|
4298
4299
|
// Inline function 'kotlin.collections.iterator' call
|
|
4299
4300
|
var _iterator__ex2g4s = thresholds.t1().l();
|
|
@@ -4310,99 +4311,97 @@
|
|
|
4310
4311
|
}
|
|
4311
4312
|
}
|
|
4312
4313
|
// Inline function 'kotlin.require' call
|
|
4313
|
-
if (!((this.
|
|
4314
|
+
if (!((this.f29() % 2 | 0) === 1)) {
|
|
4314
4315
|
var message_1 = 'surfaceMedianWindowM must be an odd number of stations';
|
|
4315
4316
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_1));
|
|
4316
4317
|
}
|
|
4317
4318
|
// Inline function 'kotlin.require' call
|
|
4318
|
-
if (!((this.
|
|
4319
|
+
if (!((this.h29() % 2 | 0) === 1)) {
|
|
4319
4320
|
var message_2 = 'roughnessWindowM must be an odd number of stations';
|
|
4320
4321
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_2));
|
|
4321
4322
|
}
|
|
4322
4323
|
// Inline function 'kotlin.require' call
|
|
4323
|
-
if (!(this.
|
|
4324
|
+
if (!(this.v28() >= 1)) {
|
|
4324
4325
|
var message_3 = 'minTallRunM must cover at least one station';
|
|
4325
4326
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_3));
|
|
4326
4327
|
}
|
|
4327
4328
|
// Inline function 'kotlin.require' call
|
|
4328
|
-
if (!(this.
|
|
4329
|
+
if (!(this.p28() >= 1)) {
|
|
4329
4330
|
var message_4 = 'slopeHalfWindowM must cover at least one station';
|
|
4330
4331
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_4));
|
|
4331
4332
|
}
|
|
4332
4333
|
// Inline function 'kotlin.require' call
|
|
4333
|
-
if (!(this.
|
|
4334
|
+
if (!(this.w28() >= 0 && this.c29() >= 1)) {
|
|
4334
4335
|
var message_5 = 'negative window';
|
|
4335
4336
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_5));
|
|
4336
4337
|
}
|
|
4337
4338
|
// Inline function 'kotlin.require' call
|
|
4338
|
-
if (!(this.
|
|
4339
|
+
if (!(this.o28() >= 0 && this.d29() >= 0)) {
|
|
4339
4340
|
var message_6 = 'negative span threshold';
|
|
4340
4341
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_6));
|
|
4341
4342
|
}
|
|
4342
4343
|
// Inline function 'kotlin.require' call
|
|
4343
|
-
if (!(this.
|
|
4344
|
+
if (!(this.y28() >= 0)) {
|
|
4344
4345
|
var message_7 = 'negative maxAbutmentM';
|
|
4345
4346
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_7));
|
|
4346
4347
|
}
|
|
4347
|
-
var containsArg = this.
|
|
4348
|
+
var containsArg = this.i28_1;
|
|
4348
4349
|
// Inline function 'kotlin.require' call
|
|
4349
4350
|
if (!(0.0 <= containsArg ? containsArg <= 1.0 : false)) {
|
|
4350
|
-
var message_8 = 'minCleanFraction must be in 0..1, got ' + this.
|
|
4351
|
+
var message_8 = 'minCleanFraction must be in 0..1, got ' + this.i28_1;
|
|
4351
4352
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_8));
|
|
4352
4353
|
}
|
|
4353
4354
|
// Inline function 'kotlin.require' call
|
|
4354
|
-
if (!(this.
|
|
4355
|
-
var message_9 = 'mntAboveMnsToleranceM must be non-negative, got ' + this.
|
|
4355
|
+
if (!(this.l28_1 >= 0.0)) {
|
|
4356
|
+
var message_9 = 'mntAboveMnsToleranceM must be non-negative, got ' + this.l28_1;
|
|
4356
4357
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_9));
|
|
4357
4358
|
}
|
|
4358
4359
|
// Inline function 'kotlin.require' call
|
|
4359
|
-
if (!(this.
|
|
4360
|
-
var message_10 = 'minCleanStationsCount must be at least 2, got ' + this.
|
|
4360
|
+
if (!(this.j28_1 >= 2)) {
|
|
4361
|
+
var message_10 = 'minCleanStationsCount must be at least 2, got ' + this.j28_1;
|
|
4361
4362
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_10));
|
|
4362
4363
|
}
|
|
4363
4364
|
// Inline function 'kotlin.require' call
|
|
4364
|
-
if (!(this.
|
|
4365
|
+
if (!(this.o28() >= (imul(2, this.p28()) - 1 | 0))) {
|
|
4365
4366
|
var message_11 = 'shortSpanM must be at least 2\xB7slopeHalfWindowM \u2212 stepM, or a long span has no slope sample';
|
|
4366
4367
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_11));
|
|
4367
4368
|
}
|
|
4368
4369
|
}
|
|
4369
|
-
protoOf(DeckDetectorOptions).
|
|
4370
|
-
return stations(this, this.
|
|
4371
|
-
};
|
|
4372
|
-
protoOf(DeckDetectorOptions).d29 = function () {
|
|
4373
|
-
return stations(this, this.q27_1, 'surfaceMedianWindowM');
|
|
4370
|
+
protoOf(DeckDetectorOptions).v28 = function () {
|
|
4371
|
+
return stations(this, this.r27_1, 'minTallRunM');
|
|
4374
4372
|
};
|
|
4375
4373
|
protoOf(DeckDetectorOptions).f29 = function () {
|
|
4376
|
-
return stations(this, this.
|
|
4374
|
+
return stations(this, this.s27_1, 'surfaceMedianWindowM');
|
|
4377
4375
|
};
|
|
4378
|
-
protoOf(DeckDetectorOptions).
|
|
4379
|
-
return stations(this, this.
|
|
4376
|
+
protoOf(DeckDetectorOptions).h29 = function () {
|
|
4377
|
+
return stations(this, this.t27_1, 'roughnessWindowM');
|
|
4380
4378
|
};
|
|
4381
|
-
protoOf(DeckDetectorOptions).
|
|
4382
|
-
return stations(this, this.w27_1, '
|
|
4379
|
+
protoOf(DeckDetectorOptions).w28 = function () {
|
|
4380
|
+
return stations(this, this.w27_1, 'mergeGapM');
|
|
4383
4381
|
};
|
|
4384
|
-
protoOf(DeckDetectorOptions).
|
|
4385
|
-
return stations(this, this.
|
|
4382
|
+
protoOf(DeckDetectorOptions).p28 = function () {
|
|
4383
|
+
return stations(this, this.y27_1, 'slopeHalfWindowM');
|
|
4386
4384
|
};
|
|
4387
|
-
protoOf(DeckDetectorOptions).
|
|
4388
|
-
return stations(this, this.
|
|
4385
|
+
protoOf(DeckDetectorOptions).o28 = function () {
|
|
4386
|
+
return stations(this, this.b28_1, 'shortSpanM');
|
|
4389
4387
|
};
|
|
4390
|
-
protoOf(DeckDetectorOptions).
|
|
4391
|
-
return stations(this, this.e28_1, '
|
|
4388
|
+
protoOf(DeckDetectorOptions).c29 = function () {
|
|
4389
|
+
return stations(this, this.e28_1, 'deckMinRunM');
|
|
4392
4390
|
};
|
|
4393
|
-
protoOf(DeckDetectorOptions).
|
|
4394
|
-
return this.
|
|
4391
|
+
protoOf(DeckDetectorOptions).y28 = function () {
|
|
4392
|
+
return stations(this, this.g28_1, 'maxAbutmentM');
|
|
4395
4393
|
};
|
|
4396
|
-
protoOf(DeckDetectorOptions).
|
|
4397
|
-
return
|
|
4394
|
+
protoOf(DeckDetectorOptions).x28 = function () {
|
|
4395
|
+
return this.f29() / 2 | 0;
|
|
4396
|
+
};
|
|
4397
|
+
protoOf(DeckDetectorOptions).d29 = function () {
|
|
4398
|
+
return stations(this, this.f28_1, 'smallSpanM');
|
|
4398
4399
|
};
|
|
4399
4400
|
protoOf(DeckDetectorOptions).toString = function () {
|
|
4400
|
-
return 'DeckDetectorOptions(stepM=' + this.
|
|
4401
|
+
return 'DeckDetectorOptions(stepM=' + this.p27_1 + ', tallMnhM=' + this.q27_1 + ', minTallRunM=' + this.r27_1 + ', surfaceMedianWindowM=' + this.s27_1 + ', roughnessWindowM=' + this.t27_1 + ', maxRoughnessM=' + this.u27_1 + ', minSmoothFraction=' + this.v27_1 + ', mergeGapM=' + this.w27_1 + ', deckMnhM=' + this.x27_1 + ', slopeHalfWindowM=' + this.y27_1 + ', maxSlopeP95=' + this.z27_1 + ', minLengthM=' + this.a28_1 + ', shortSpanM=' + this.b28_1 + ', maxShortRoughnessM=' + this.c28_1 + ', minCanyonDropM=' + this.d28_1 + ', deckMinRunM=' + this.e28_1 + ', smallSpanM=' + this.f28_1 + ', maxAbutmentM=' + this.g28_1 + ', slopeOnCleanDeck=' + this.h28_1 + ', minCleanFraction=' + this.i28_1 + ', minCleanStationsCount=' + this.j28_1 + ', mntAboveMnsAsTall=' + this.k28_1 + ', mntAboveMnsToleranceM=' + this.l28_1 + ', cleanGapGroundMnhM=' + this.m28_1 + ', splitSteepMerged=' + this.n28_1 + ')';
|
|
4401
4402
|
};
|
|
4402
4403
|
protoOf(DeckDetectorOptions).hashCode = function () {
|
|
4403
|
-
var result = getNumberHashCode(this.
|
|
4404
|
-
result = imul(result, 31) + getNumberHashCode(this.o27_1) | 0;
|
|
4405
|
-
result = imul(result, 31) + getNumberHashCode(this.p27_1) | 0;
|
|
4404
|
+
var result = getNumberHashCode(this.p27_1);
|
|
4406
4405
|
result = imul(result, 31) + getNumberHashCode(this.q27_1) | 0;
|
|
4407
4406
|
result = imul(result, 31) + getNumberHashCode(this.r27_1) | 0;
|
|
4408
4407
|
result = imul(result, 31) + getNumberHashCode(this.s27_1) | 0;
|
|
@@ -4418,13 +4417,15 @@
|
|
|
4418
4417
|
result = imul(result, 31) + getNumberHashCode(this.c28_1) | 0;
|
|
4419
4418
|
result = imul(result, 31) + getNumberHashCode(this.d28_1) | 0;
|
|
4420
4419
|
result = imul(result, 31) + getNumberHashCode(this.e28_1) | 0;
|
|
4421
|
-
result = imul(result, 31) +
|
|
4420
|
+
result = imul(result, 31) + getNumberHashCode(this.f28_1) | 0;
|
|
4422
4421
|
result = imul(result, 31) + getNumberHashCode(this.g28_1) | 0;
|
|
4423
|
-
result = imul(result, 31) + this.h28_1 | 0;
|
|
4424
|
-
result = imul(result, 31) +
|
|
4425
|
-
result = imul(result, 31) +
|
|
4426
|
-
result = imul(result, 31) +
|
|
4427
|
-
result = imul(result, 31) +
|
|
4422
|
+
result = imul(result, 31) + getBooleanHashCode(this.h28_1) | 0;
|
|
4423
|
+
result = imul(result, 31) + getNumberHashCode(this.i28_1) | 0;
|
|
4424
|
+
result = imul(result, 31) + this.j28_1 | 0;
|
|
4425
|
+
result = imul(result, 31) + getBooleanHashCode(this.k28_1) | 0;
|
|
4426
|
+
result = imul(result, 31) + getNumberHashCode(this.l28_1) | 0;
|
|
4427
|
+
result = imul(result, 31) + getNumberHashCode(this.m28_1) | 0;
|
|
4428
|
+
result = imul(result, 31) + getBooleanHashCode(this.n28_1) | 0;
|
|
4428
4429
|
return result;
|
|
4429
4430
|
};
|
|
4430
4431
|
protoOf(DeckDetectorOptions).equals = function (other) {
|
|
@@ -4432,10 +4433,6 @@
|
|
|
4432
4433
|
return true;
|
|
4433
4434
|
if (!(other instanceof DeckDetectorOptions))
|
|
4434
4435
|
return false;
|
|
4435
|
-
if (!equals(this.n27_1, other.n27_1))
|
|
4436
|
-
return false;
|
|
4437
|
-
if (!equals(this.o27_1, other.o27_1))
|
|
4438
|
-
return false;
|
|
4439
4436
|
if (!equals(this.p27_1, other.p27_1))
|
|
4440
4437
|
return false;
|
|
4441
4438
|
if (!equals(this.q27_1, other.q27_1))
|
|
@@ -4468,83 +4465,87 @@
|
|
|
4468
4465
|
return false;
|
|
4469
4466
|
if (!equals(this.e28_1, other.e28_1))
|
|
4470
4467
|
return false;
|
|
4471
|
-
if (!(this.f28_1
|
|
4468
|
+
if (!equals(this.f28_1, other.f28_1))
|
|
4472
4469
|
return false;
|
|
4473
4470
|
if (!equals(this.g28_1, other.g28_1))
|
|
4474
4471
|
return false;
|
|
4475
4472
|
if (!(this.h28_1 === other.h28_1))
|
|
4476
4473
|
return false;
|
|
4477
|
-
if (!(this.i28_1
|
|
4474
|
+
if (!equals(this.i28_1, other.i28_1))
|
|
4475
|
+
return false;
|
|
4476
|
+
if (!(this.j28_1 === other.j28_1))
|
|
4477
|
+
return false;
|
|
4478
|
+
if (!(this.k28_1 === other.k28_1))
|
|
4478
4479
|
return false;
|
|
4479
|
-
if (!equals(this.
|
|
4480
|
+
if (!equals(this.l28_1, other.l28_1))
|
|
4480
4481
|
return false;
|
|
4481
|
-
if (!equals(this.
|
|
4482
|
+
if (!equals(this.m28_1, other.m28_1))
|
|
4482
4483
|
return false;
|
|
4483
|
-
if (!(this.
|
|
4484
|
+
if (!(this.n28_1 === other.n28_1))
|
|
4484
4485
|
return false;
|
|
4485
4486
|
return true;
|
|
4486
4487
|
};
|
|
4487
4488
|
function DeckReplacement(first, last, spanFirst, spanLast, anchorFirst, anchorLast, anchors, elevationM, spans) {
|
|
4488
|
-
this.
|
|
4489
|
-
this.
|
|
4490
|
-
this.
|
|
4491
|
-
this.
|
|
4492
|
-
this.
|
|
4493
|
-
this.
|
|
4494
|
-
this.
|
|
4495
|
-
this.
|
|
4496
|
-
this.
|
|
4497
|
-
}
|
|
4498
|
-
protoOf(DeckReplacement).
|
|
4499
|
-
return this.
|
|
4500
|
-
};
|
|
4501
|
-
protoOf(DeckReplacement).
|
|
4502
|
-
return this.
|
|
4503
|
-
};
|
|
4504
|
-
protoOf(DeckReplacement).
|
|
4489
|
+
this.w29_1 = first;
|
|
4490
|
+
this.x29_1 = last;
|
|
4491
|
+
this.y29_1 = spanFirst;
|
|
4492
|
+
this.z29_1 = spanLast;
|
|
4493
|
+
this.a2a_1 = anchorFirst;
|
|
4494
|
+
this.b2a_1 = anchorLast;
|
|
4495
|
+
this.c2a_1 = anchors;
|
|
4496
|
+
this.d2a_1 = elevationM;
|
|
4497
|
+
this.e2a_1 = spans;
|
|
4498
|
+
}
|
|
4499
|
+
protoOf(DeckReplacement).f2a = function () {
|
|
4500
|
+
return this.w29_1 < this.y29_1;
|
|
4501
|
+
};
|
|
4502
|
+
protoOf(DeckReplacement).g2a = function () {
|
|
4503
|
+
return this.x29_1 > this.z29_1;
|
|
4504
|
+
};
|
|
4505
|
+
protoOf(DeckReplacement).h2a = function (startM, endM) {
|
|
4505
4506
|
// Inline function 'kotlin.collections.copyOf' call
|
|
4506
4507
|
// Inline function 'kotlin.js.asDynamic' call
|
|
4507
|
-
var z = this.
|
|
4508
|
-
if (this.
|
|
4508
|
+
var z = this.d2a_1.slice();
|
|
4509
|
+
if (this.f2a()) {
|
|
4509
4510
|
z[0] = startM;
|
|
4510
4511
|
}
|
|
4511
|
-
if (this.
|
|
4512
|
+
if (this.g2a()) {
|
|
4512
4513
|
z[z.length - 1 | 0] = endM;
|
|
4513
4514
|
}
|
|
4514
4515
|
fillLinear(z);
|
|
4515
4516
|
return z;
|
|
4516
4517
|
};
|
|
4517
4518
|
protoOf(DeckReplacement).toString = function () {
|
|
4518
|
-
var tmp = 'DeckReplacement(first=' + this.
|
|
4519
|
-
var tmp_0 = this.
|
|
4519
|
+
var tmp = 'DeckReplacement(first=' + this.w29_1 + ', last=' + this.x29_1 + ', span=' + this.y29_1 + '..' + this.z29_1 + ', anchors=' + this.a2a_1 + '..' + this.b2a_1 + ' ';
|
|
4520
|
+
var tmp_0 = this.c2a_1.length;
|
|
4520
4521
|
// Inline function 'kotlin.collections.map' call
|
|
4521
|
-
var this_0 = this.
|
|
4522
|
+
var this_0 = this.e2a_1;
|
|
4522
4523
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4523
4524
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
4524
4525
|
var _iterator__ex2g4s = this_0.l();
|
|
4525
4526
|
while (_iterator__ex2g4s.m()) {
|
|
4526
4527
|
var item = _iterator__ex2g4s.n();
|
|
4527
|
-
var tmp$ret$2 = numberRangeToNumber(item.
|
|
4528
|
+
var tmp$ret$2 = numberRangeToNumber(item.x26_1, item.y26_1);
|
|
4528
4529
|
destination.k(tmp$ret$2);
|
|
4529
4530
|
}
|
|
4530
4531
|
return tmp + ('(' + tmp_0 + '), spans=' + toString_0(destination) + ')');
|
|
4531
4532
|
};
|
|
4532
4533
|
function DeckProfiles(replacements, dropped) {
|
|
4533
|
-
this.
|
|
4534
|
-
this.
|
|
4534
|
+
this.i2a_1 = replacements;
|
|
4535
|
+
this.j2a_1 = dropped;
|
|
4535
4536
|
}
|
|
4536
4537
|
function joins($this, previous, next, mns, mnt, options) {
|
|
4537
4538
|
var a = previous.kc();
|
|
4538
4539
|
var aAnchors = previous.lc();
|
|
4539
4540
|
var b = next.kc();
|
|
4540
4541
|
var bAnchors = next.lc();
|
|
4541
|
-
if (((b.
|
|
4542
|
+
if (((b.x26_1 - a.y26_1 | 0) - 1 | 0) >= options.w28())
|
|
4542
4543
|
return false;
|
|
4543
4544
|
if (aAnchors.q() || bAnchors.q())
|
|
4544
4545
|
return false;
|
|
4545
4546
|
var c0 = last(aAnchors);
|
|
4546
4547
|
var c1 = first(bAnchors);
|
|
4547
|
-
var tmp0 = until(a.
|
|
4548
|
+
var tmp0 = until(a.y26_1 + 1 | 0, b.x26_1);
|
|
4548
4549
|
var tmp$ret$0;
|
|
4549
4550
|
$l$block_0: {
|
|
4550
4551
|
// Inline function 'kotlin.collections.none' call
|
|
@@ -4566,7 +4567,7 @@
|
|
|
4566
4567
|
inductionVariable = inductionVariable + 1 | 0;
|
|
4567
4568
|
var k = element;
|
|
4568
4569
|
var line = mns[c0] + (mns[c1] - mns[c0]) * (k - c0 | 0) / (c1 - c0 | 0);
|
|
4569
|
-
if (!(line - mnt[k] > options.
|
|
4570
|
+
if (!(line - mnt[k] > options.d28_1)) {
|
|
4570
4571
|
tmp$ret$0 = false;
|
|
4571
4572
|
break $l$block_0;
|
|
4572
4573
|
}
|
|
@@ -4579,7 +4580,7 @@
|
|
|
4579
4580
|
function replacement($this, spans, anchors, mns, n, options) {
|
|
4580
4581
|
var u = first_0(anchors);
|
|
4581
4582
|
var v = last_0(anchors);
|
|
4582
|
-
var half = options.
|
|
4583
|
+
var half = options.f29() / 2 | 0;
|
|
4583
4584
|
var tmp = 0;
|
|
4584
4585
|
var tmp_0 = ((v - u | 0) + 1 | 0) + imul(2, half) | 0;
|
|
4585
4586
|
var tmp_1 = new Float64Array(tmp_0);
|
|
@@ -4606,7 +4607,7 @@
|
|
|
4606
4607
|
while (!(k === c1));
|
|
4607
4608
|
}
|
|
4608
4609
|
while (inductionVariable < last_2);
|
|
4609
|
-
var median = DeckDetector_instance.
|
|
4610
|
+
var median = DeckDetector_instance.g29(x, half);
|
|
4610
4611
|
var tmp_2 = 0;
|
|
4611
4612
|
var tmp_3 = (v - u | 0) + 1 | 0;
|
|
4612
4613
|
var tmp_4 = new Float64Array(tmp_3);
|
|
@@ -4616,9 +4617,9 @@
|
|
|
4616
4617
|
tmp_2 = tmp_2 + 1 | 0;
|
|
4617
4618
|
}
|
|
4618
4619
|
var deck = tmp_4;
|
|
4619
|
-
$this.
|
|
4620
|
-
var spanFirst = first(spans).
|
|
4621
|
-
var spanLast = last(spans).
|
|
4620
|
+
$this.k2a(deck, options.z27_1 * options.p27_1);
|
|
4621
|
+
var spanFirst = first(spans).x26_1;
|
|
4622
|
+
var spanLast = last(spans).y26_1;
|
|
4622
4623
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
4623
4624
|
var b = spanFirst - 1 | 0;
|
|
4624
4625
|
var first_2 = Math.max(0, b);
|
|
@@ -4639,16 +4640,16 @@
|
|
|
4639
4640
|
return new DeckReplacement(first_2, last_3, spanFirst, spanLast, u, v, anchors, z, spans);
|
|
4640
4641
|
}
|
|
4641
4642
|
function sam$kotlin_Comparator$0_0(function_0) {
|
|
4642
|
-
this.
|
|
4643
|
+
this.l2a_1 = function_0;
|
|
4643
4644
|
}
|
|
4644
4645
|
protoOf(sam$kotlin_Comparator$0_0).la = function (a, b) {
|
|
4645
|
-
return this.
|
|
4646
|
+
return this.l2a_1(a, b);
|
|
4646
4647
|
};
|
|
4647
4648
|
protoOf(sam$kotlin_Comparator$0_0).compare = function (a, b) {
|
|
4648
4649
|
return this.la(a, b);
|
|
4649
4650
|
};
|
|
4650
4651
|
protoOf(sam$kotlin_Comparator$0_0).e2 = function () {
|
|
4651
|
-
return this.
|
|
4652
|
+
return this.l2a_1;
|
|
4652
4653
|
};
|
|
4653
4654
|
protoOf(sam$kotlin_Comparator$0_0).equals = function (other) {
|
|
4654
4655
|
var tmp;
|
|
@@ -4670,7 +4671,7 @@
|
|
|
4670
4671
|
};
|
|
4671
4672
|
function build$anchorsOf(state, mns, span) {
|
|
4672
4673
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4673
|
-
var tmp0 = span.
|
|
4674
|
+
var tmp0 = span.d27_1;
|
|
4674
4675
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4675
4676
|
var destination = ArrayList_init_$Create$();
|
|
4676
4677
|
var _iterator__ex2g4s = tmp0.l();
|
|
@@ -4687,9 +4688,9 @@
|
|
|
4687
4688
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
4688
4689
|
var tmp;
|
|
4689
4690
|
var tmp_0;
|
|
4690
|
-
var containsLower = span.
|
|
4691
|
-
if (element_0 <= span.
|
|
4692
|
-
tmp_0 = state.
|
|
4691
|
+
var containsLower = span.x26_1;
|
|
4692
|
+
if (element_0 <= span.y26_1 ? containsLower <= element_0 : false) {
|
|
4693
|
+
tmp_0 = state.l27_1[element_0];
|
|
4693
4694
|
} else {
|
|
4694
4695
|
tmp_0 = false;
|
|
4695
4696
|
}
|
|
@@ -4706,21 +4707,21 @@
|
|
|
4706
4707
|
}
|
|
4707
4708
|
function DeckProfileBuilder$build$lambda(a, b) {
|
|
4708
4709
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
4709
|
-
var tmp = a.
|
|
4710
|
-
var tmp$ret$2 = b.
|
|
4710
|
+
var tmp = a.x26_1;
|
|
4711
|
+
var tmp$ret$2 = b.x26_1;
|
|
4711
4712
|
return compareValues(tmp, tmp$ret$2);
|
|
4712
4713
|
}
|
|
4713
4714
|
function DeckProfileBuilder() {
|
|
4714
4715
|
}
|
|
4715
|
-
protoOf(DeckProfileBuilder).
|
|
4716
|
+
protoOf(DeckProfileBuilder).m2a = function (profile, detection, options) {
|
|
4716
4717
|
var n = profile.o();
|
|
4717
|
-
if (n === 0 || detection.
|
|
4718
|
+
if (n === 0 || detection.u26_1.q())
|
|
4718
4719
|
return new DeckProfiles(emptyList(), emptyList());
|
|
4719
|
-
var state = DeckDetector_instance.
|
|
4720
|
-
var mns = profile.
|
|
4721
|
-
var mnt = profile.
|
|
4720
|
+
var state = DeckDetector_instance.t28(profile, options);
|
|
4721
|
+
var mns = profile.g27_1;
|
|
4722
|
+
var mnt = profile.h27_1;
|
|
4722
4723
|
// Inline function 'kotlin.collections.sortedBy' call
|
|
4723
|
-
var this_0 = detection.
|
|
4724
|
+
var this_0 = detection.u26_1;
|
|
4724
4725
|
// Inline function 'kotlin.comparisons.compareBy' call
|
|
4725
4726
|
var tmp = DeckProfileBuilder$build$lambda;
|
|
4726
4727
|
var tmp$ret$1 = new sam$kotlin_Comparator$0_0(tmp);
|
|
@@ -4777,7 +4778,7 @@
|
|
|
4777
4778
|
}
|
|
4778
4779
|
return new DeckProfiles(replacements, dropped);
|
|
4779
4780
|
};
|
|
4780
|
-
protoOf(DeckProfileBuilder).
|
|
4781
|
+
protoOf(DeckProfileBuilder).k2a = function (z, maxRise) {
|
|
4781
4782
|
var inductionVariable = 1;
|
|
4782
4783
|
var last = z.length;
|
|
4783
4784
|
if (inductionVariable < last)
|
|
@@ -4832,33 +4833,33 @@
|
|
|
4832
4833
|
}
|
|
4833
4834
|
function Companion_3() {
|
|
4834
4835
|
}
|
|
4835
|
-
protoOf(Companion_3).
|
|
4836
|
-
return new ElevationGainResult(0.0, 0.0, 0.0, 0.0, options.
|
|
4836
|
+
protoOf(Companion_3).n2a = function (options) {
|
|
4837
|
+
return new ElevationGainResult(0.0, 0.0, 0.0, 0.0, options.q2a_1, options.r2a_1, 0);
|
|
4837
4838
|
};
|
|
4838
4839
|
var Companion_instance_4;
|
|
4839
4840
|
function Companion_getInstance_4() {
|
|
4840
4841
|
return Companion_instance_4;
|
|
4841
4842
|
}
|
|
4842
4843
|
function ElevationGainResult(gainM, lossM, rawGainM, rawLossM, thresholdM, smoothWindowM, legCount) {
|
|
4843
|
-
this.
|
|
4844
|
-
this.
|
|
4845
|
-
this.
|
|
4846
|
-
this.
|
|
4847
|
-
this.
|
|
4848
|
-
this.
|
|
4849
|
-
this.
|
|
4844
|
+
this.s2a_1 = gainM;
|
|
4845
|
+
this.t2a_1 = lossM;
|
|
4846
|
+
this.u2a_1 = rawGainM;
|
|
4847
|
+
this.v2a_1 = rawLossM;
|
|
4848
|
+
this.w2a_1 = thresholdM;
|
|
4849
|
+
this.x2a_1 = smoothWindowM;
|
|
4850
|
+
this.y2a_1 = legCount;
|
|
4850
4851
|
}
|
|
4851
4852
|
protoOf(ElevationGainResult).toString = function () {
|
|
4852
|
-
return 'ElevationGainResult(gainM=' + this.
|
|
4853
|
+
return 'ElevationGainResult(gainM=' + this.s2a_1 + ', lossM=' + this.t2a_1 + ', rawGainM=' + this.u2a_1 + ', rawLossM=' + this.v2a_1 + ', thresholdM=' + this.w2a_1 + ', smoothWindowM=' + this.x2a_1 + ', legCount=' + this.y2a_1 + ')';
|
|
4853
4854
|
};
|
|
4854
4855
|
protoOf(ElevationGainResult).hashCode = function () {
|
|
4855
|
-
var result = getNumberHashCode(this.
|
|
4856
|
-
result = imul(result, 31) + getNumberHashCode(this.r2a_1) | 0;
|
|
4857
|
-
result = imul(result, 31) + getNumberHashCode(this.s2a_1) | 0;
|
|
4856
|
+
var result = getNumberHashCode(this.s2a_1);
|
|
4858
4857
|
result = imul(result, 31) + getNumberHashCode(this.t2a_1) | 0;
|
|
4859
4858
|
result = imul(result, 31) + getNumberHashCode(this.u2a_1) | 0;
|
|
4860
4859
|
result = imul(result, 31) + getNumberHashCode(this.v2a_1) | 0;
|
|
4861
|
-
result = imul(result, 31) + this.w2a_1 | 0;
|
|
4860
|
+
result = imul(result, 31) + getNumberHashCode(this.w2a_1) | 0;
|
|
4861
|
+
result = imul(result, 31) + getNumberHashCode(this.x2a_1) | 0;
|
|
4862
|
+
result = imul(result, 31) + this.y2a_1 | 0;
|
|
4862
4863
|
return result;
|
|
4863
4864
|
};
|
|
4864
4865
|
protoOf(ElevationGainResult).equals = function (other) {
|
|
@@ -4866,10 +4867,6 @@
|
|
|
4866
4867
|
return true;
|
|
4867
4868
|
if (!(other instanceof ElevationGainResult))
|
|
4868
4869
|
return false;
|
|
4869
|
-
if (!equals(this.q2a_1, other.q2a_1))
|
|
4870
|
-
return false;
|
|
4871
|
-
if (!equals(this.r2a_1, other.r2a_1))
|
|
4872
|
-
return false;
|
|
4873
4870
|
if (!equals(this.s2a_1, other.s2a_1))
|
|
4874
4871
|
return false;
|
|
4875
4872
|
if (!equals(this.t2a_1, other.t2a_1))
|
|
@@ -4878,14 +4875,18 @@
|
|
|
4878
4875
|
return false;
|
|
4879
4876
|
if (!equals(this.v2a_1, other.v2a_1))
|
|
4880
4877
|
return false;
|
|
4881
|
-
if (!(this.w2a_1
|
|
4878
|
+
if (!equals(this.w2a_1, other.w2a_1))
|
|
4879
|
+
return false;
|
|
4880
|
+
if (!equals(this.x2a_1, other.x2a_1))
|
|
4881
|
+
return false;
|
|
4882
|
+
if (!(this.y2a_1 === other.y2a_1))
|
|
4882
4883
|
return false;
|
|
4883
4884
|
return true;
|
|
4884
4885
|
};
|
|
4885
4886
|
function Banked(gainM, lossM, legCount) {
|
|
4886
|
-
this.
|
|
4887
|
-
this.
|
|
4888
|
-
this.
|
|
4887
|
+
this.z2a_1 = gainM;
|
|
4888
|
+
this.a2b_1 = lossM;
|
|
4889
|
+
this.b2b_1 = legCount;
|
|
4889
4890
|
}
|
|
4890
4891
|
function accumulate($this, h, threshold) {
|
|
4891
4892
|
var gain = 0.0;
|
|
@@ -4967,45 +4968,45 @@
|
|
|
4967
4968
|
}
|
|
4968
4969
|
function ElevationGain() {
|
|
4969
4970
|
}
|
|
4970
|
-
protoOf(ElevationGain).
|
|
4971
|
-
if (path.
|
|
4972
|
-
return Companion_instance_4.
|
|
4971
|
+
protoOf(ElevationGain).c2b = function (path, options) {
|
|
4972
|
+
if (path.l23_1 < 2)
|
|
4973
|
+
return Companion_instance_4.n2a(options);
|
|
4973
4974
|
var tmp = 0;
|
|
4974
|
-
var tmp_0 = path.
|
|
4975
|
+
var tmp_0 = path.l23_1;
|
|
4975
4976
|
var tmp_1 = new Float64Array(tmp_0);
|
|
4976
4977
|
while (tmp < tmp_0) {
|
|
4977
4978
|
var tmp_2 = tmp;
|
|
4978
|
-
tmp_1[tmp_2] = path.
|
|
4979
|
+
tmp_1[tmp_2] = path.d2b(tmp_2);
|
|
4979
4980
|
tmp = tmp + 1 | 0;
|
|
4980
4981
|
}
|
|
4981
4982
|
var distanceM = tmp_1;
|
|
4982
4983
|
var tmp_3 = 0;
|
|
4983
|
-
var tmp_4 = path.
|
|
4984
|
+
var tmp_4 = path.l23_1;
|
|
4984
4985
|
var tmp_5 = new Float64Array(tmp_4);
|
|
4985
4986
|
while (tmp_3 < tmp_4) {
|
|
4986
4987
|
var tmp_6 = tmp_3;
|
|
4987
|
-
var source = path.
|
|
4988
|
-
tmp_5[tmp_6] = isNaN_0(source) ? path.
|
|
4988
|
+
var source = path.e2b(tmp_6);
|
|
4989
|
+
tmp_5[tmp_6] = isNaN_0(source) ? path.q23(tmp_6) : source;
|
|
4989
4990
|
tmp_3 = tmp_3 + 1 | 0;
|
|
4990
4991
|
}
|
|
4991
4992
|
var elevationM = tmp_5;
|
|
4992
|
-
return this.
|
|
4993
|
+
return this.f2b(distanceM, elevationM, options);
|
|
4993
4994
|
};
|
|
4994
|
-
protoOf(ElevationGain).
|
|
4995
|
-
var result = this.
|
|
4996
|
-
path.
|
|
4997
|
-
path.
|
|
4995
|
+
protoOf(ElevationGain).g2b = function (path, options) {
|
|
4996
|
+
var result = this.c2b(path, options);
|
|
4997
|
+
path.a25_1 = result.s2a_1;
|
|
4998
|
+
path.b25_1 = result.t2a_1;
|
|
4998
4999
|
return result;
|
|
4999
5000
|
};
|
|
5000
|
-
protoOf(ElevationGain).
|
|
5001
|
+
protoOf(ElevationGain).f2b = function (distanceM, elevationM, options) {
|
|
5001
5002
|
// Inline function 'kotlin.require' call
|
|
5002
5003
|
if (!(distanceM.length === elevationM.length)) {
|
|
5003
5004
|
var message = 'distanceM (' + distanceM.length + ') and elevationM (' + elevationM.length + ') must have the same length';
|
|
5004
5005
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
5005
5006
|
}
|
|
5006
5007
|
if (elevationM.length < 2)
|
|
5007
|
-
return Companion_instance_4.
|
|
5008
|
-
var profile = ElevationSmoother_instance.
|
|
5008
|
+
return Companion_instance_4.n2a(options);
|
|
5009
|
+
var profile = ElevationSmoother_instance.k17(distanceM, elevationM, options.r2a_1);
|
|
5009
5010
|
var rawGain = 0.0;
|
|
5010
5011
|
var rawLoss = 0.0;
|
|
5011
5012
|
var inductionVariable = 1;
|
|
@@ -5021,18 +5022,18 @@
|
|
|
5021
5022
|
rawLoss = rawLoss + d;
|
|
5022
5023
|
}
|
|
5023
5024
|
while (inductionVariable < last);
|
|
5024
|
-
if (options.
|
|
5025
|
-
return new ElevationGainResult(rawGain, rawLoss, rawGain, rawLoss, 0.0, options.
|
|
5025
|
+
if (options.q2a_1 <= 0.0) {
|
|
5026
|
+
return new ElevationGainResult(rawGain, rawLoss, rawGain, rawLoss, 0.0, options.r2a_1, 0);
|
|
5026
5027
|
}
|
|
5027
|
-
var banked = accumulate(this, profile, options.
|
|
5028
|
-
return new ElevationGainResult(banked.
|
|
5028
|
+
var banked = accumulate(this, profile, options.q2a_1);
|
|
5029
|
+
return new ElevationGainResult(banked.z2a_1, banked.a2b_1, rawGain, rawLoss, options.q2a_1, options.r2a_1, banked.b2b_1);
|
|
5029
5030
|
};
|
|
5030
5031
|
var ElevationGain_instance;
|
|
5031
5032
|
function ElevationGain_getInstance() {
|
|
5032
5033
|
return ElevationGain_instance;
|
|
5033
5034
|
}
|
|
5034
5035
|
function ElevationGainPreset$Companion$byId$lambda(it) {
|
|
5035
|
-
return it.
|
|
5036
|
+
return it.l2b();
|
|
5036
5037
|
}
|
|
5037
5038
|
var static_init_called_2;
|
|
5038
5039
|
function static_init_2() {
|
|
@@ -5054,7 +5055,7 @@
|
|
|
5054
5055
|
var ElevationGainPreset_GPS_instance;
|
|
5055
5056
|
function Companion_4() {
|
|
5056
5057
|
}
|
|
5057
|
-
protoOf(Companion_4).
|
|
5058
|
+
protoOf(Companion_4).q17 = function (name) {
|
|
5058
5059
|
var tmp0 = get_entries_1();
|
|
5059
5060
|
var tmp$ret$0;
|
|
5060
5061
|
$l$block: {
|
|
@@ -5062,7 +5063,7 @@
|
|
|
5062
5063
|
var _iterator__ex2g4s = tmp0.l();
|
|
5063
5064
|
while (_iterator__ex2g4s.m()) {
|
|
5064
5065
|
var element = _iterator__ex2g4s.n();
|
|
5065
|
-
if (equals_0(element.
|
|
5066
|
+
if (equals_0(element.l2b(), name, true) || equals_0(element.u1_1, name, true)) {
|
|
5066
5067
|
tmp$ret$0 = element;
|
|
5067
5068
|
break $l$block;
|
|
5068
5069
|
}
|
|
@@ -5096,10 +5097,10 @@
|
|
|
5096
5097
|
var $ENTRIES_1;
|
|
5097
5098
|
function ElevationGainPreset(name, ordinal, thresholdM, smoothWindowM) {
|
|
5098
5099
|
Enum.call(this, name, ordinal);
|
|
5099
|
-
this.
|
|
5100
|
-
this.
|
|
5100
|
+
this.j2b_1 = thresholdM;
|
|
5101
|
+
this.k2b_1 = smoothWindowM;
|
|
5101
5102
|
}
|
|
5102
|
-
protoOf(ElevationGainPreset).
|
|
5103
|
+
protoOf(ElevationGainPreset).l2b = function () {
|
|
5103
5104
|
var tmp;
|
|
5104
5105
|
switch (this.v1_1) {
|
|
5105
5106
|
case 0:
|
|
@@ -5122,8 +5123,8 @@
|
|
|
5122
5123
|
};
|
|
5123
5124
|
function Companion_5() {
|
|
5124
5125
|
Companion_instance_6 = this;
|
|
5125
|
-
this.
|
|
5126
|
-
this.
|
|
5126
|
+
this.m2b_1 = new ElevationGainOptions();
|
|
5127
|
+
this.n2b_1 = new ElevationGainOptions(VOID, ElevationGainPreset_RAW_getInstance());
|
|
5127
5128
|
}
|
|
5128
5129
|
var Companion_instance_6;
|
|
5129
5130
|
function Companion_getInstance_6() {
|
|
@@ -5135,31 +5136,31 @@
|
|
|
5135
5136
|
Companion_getInstance_6();
|
|
5136
5137
|
enabled = enabled === VOID ? true : enabled;
|
|
5137
5138
|
preset = preset === VOID ? ElevationGainPreset_DEM_getInstance() : preset;
|
|
5138
|
-
thresholdM = thresholdM === VOID ? preset.
|
|
5139
|
-
smoothWindowM = smoothWindowM === VOID ? preset.
|
|
5140
|
-
this.
|
|
5141
|
-
this.
|
|
5142
|
-
this.
|
|
5143
|
-
this.
|
|
5139
|
+
thresholdM = thresholdM === VOID ? preset.j2b_1 : thresholdM;
|
|
5140
|
+
smoothWindowM = smoothWindowM === VOID ? preset.k2b_1 : smoothWindowM;
|
|
5141
|
+
this.o2a_1 = enabled;
|
|
5142
|
+
this.p2a_1 = preset;
|
|
5143
|
+
this.q2a_1 = thresholdM;
|
|
5144
|
+
this.r2a_1 = smoothWindowM;
|
|
5144
5145
|
// Inline function 'kotlin.require' call
|
|
5145
|
-
if (!(this.
|
|
5146
|
-
var message = 'thresholdM must be finite and >= 0, was ' + this.
|
|
5146
|
+
if (!(this.q2a_1 >= 0.0 && isFinite(this.q2a_1))) {
|
|
5147
|
+
var message = 'thresholdM must be finite and >= 0, was ' + this.q2a_1;
|
|
5147
5148
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
5148
5149
|
}
|
|
5149
5150
|
// Inline function 'kotlin.require' call
|
|
5150
|
-
if (!(this.
|
|
5151
|
-
var message_0 = 'smoothWindowM must be finite and >= 0, was ' + this.
|
|
5151
|
+
if (!(this.r2a_1 >= 0.0 && isFinite(this.r2a_1))) {
|
|
5152
|
+
var message_0 = 'smoothWindowM must be finite and >= 0, was ' + this.r2a_1;
|
|
5152
5153
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_0));
|
|
5153
5154
|
}
|
|
5154
5155
|
}
|
|
5155
5156
|
protoOf(ElevationGainOptions).toString = function () {
|
|
5156
|
-
return 'ElevationGainOptions(enabled=' + this.
|
|
5157
|
+
return 'ElevationGainOptions(enabled=' + this.o2a_1 + ', preset=' + this.p2a_1.toString() + ', thresholdM=' + this.q2a_1 + ', smoothWindowM=' + this.r2a_1 + ')';
|
|
5157
5158
|
};
|
|
5158
5159
|
protoOf(ElevationGainOptions).hashCode = function () {
|
|
5159
|
-
var result = getBooleanHashCode(this.
|
|
5160
|
-
result = imul(result, 31) + this.
|
|
5161
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
5162
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
5160
|
+
var result = getBooleanHashCode(this.o2a_1);
|
|
5161
|
+
result = imul(result, 31) + this.p2a_1.hashCode() | 0;
|
|
5162
|
+
result = imul(result, 31) + getNumberHashCode(this.q2a_1) | 0;
|
|
5163
|
+
result = imul(result, 31) + getNumberHashCode(this.r2a_1) | 0;
|
|
5163
5164
|
return result;
|
|
5164
5165
|
};
|
|
5165
5166
|
protoOf(ElevationGainOptions).equals = function (other) {
|
|
@@ -5167,13 +5168,13 @@
|
|
|
5167
5168
|
return true;
|
|
5168
5169
|
if (!(other instanceof ElevationGainOptions))
|
|
5169
5170
|
return false;
|
|
5170
|
-
if (!(this.
|
|
5171
|
+
if (!(this.o2a_1 === other.o2a_1))
|
|
5171
5172
|
return false;
|
|
5172
|
-
if (!this.
|
|
5173
|
+
if (!this.p2a_1.equals(other.p2a_1))
|
|
5173
5174
|
return false;
|
|
5174
|
-
if (!equals(this.
|
|
5175
|
+
if (!equals(this.q2a_1, other.q2a_1))
|
|
5175
5176
|
return false;
|
|
5176
|
-
if (!equals(this.
|
|
5177
|
+
if (!equals(this.r2a_1, other.r2a_1))
|
|
5177
5178
|
return false;
|
|
5178
5179
|
return true;
|
|
5179
5180
|
};
|
|
@@ -5194,9 +5195,9 @@
|
|
|
5194
5195
|
return ElevationGainPreset_GPS_instance;
|
|
5195
5196
|
}
|
|
5196
5197
|
function copyAllSlots($this, source) {
|
|
5197
|
-
var out = new Path(source.
|
|
5198
|
+
var out = new Path(source.l23_1);
|
|
5198
5199
|
var inductionVariable = 0;
|
|
5199
|
-
var last = source.
|
|
5200
|
+
var last = source.l23_1;
|
|
5200
5201
|
if (inductionVariable < last)
|
|
5201
5202
|
do {
|
|
5202
5203
|
var i = inductionVariable;
|
|
@@ -5204,7 +5205,7 @@
|
|
|
5204
5205
|
var _iterator__ex2g4s = get_entries_2().l();
|
|
5205
5206
|
while (_iterator__ex2g4s.m()) {
|
|
5206
5207
|
var field = _iterator__ex2g4s.n();
|
|
5207
|
-
out.
|
|
5208
|
+
out.o2b(i, field, source.n26(i, field));
|
|
5208
5209
|
}
|
|
5209
5210
|
}
|
|
5210
5211
|
while (inductionVariable < last);
|
|
@@ -5212,9 +5213,9 @@
|
|
|
5212
5213
|
}
|
|
5213
5214
|
function $fixElevationCOROUTINE$(_this__u8e3s4, source, provider, resultContinuation) {
|
|
5214
5215
|
CoroutineImpl.call(this, resultContinuation);
|
|
5215
|
-
this.
|
|
5216
|
-
this.
|
|
5217
|
-
this.
|
|
5216
|
+
this.x2b_1 = _this__u8e3s4;
|
|
5217
|
+
this.y2b_1 = source;
|
|
5218
|
+
this.z2b_1 = provider;
|
|
5218
5219
|
}
|
|
5219
5220
|
protoOf($fixElevationCOROUTINE$).o7 = function () {
|
|
5220
5221
|
var suspendResult = this.i7_1;
|
|
@@ -5224,21 +5225,21 @@
|
|
|
5224
5225
|
switch (tmp) {
|
|
5225
5226
|
case 0:
|
|
5226
5227
|
this.h7_1 = 2;
|
|
5227
|
-
if (this.
|
|
5228
|
+
if (this.y2b_1.l23_1 === 0)
|
|
5228
5229
|
return new Path(0);
|
|
5229
|
-
var size = this.
|
|
5230
|
+
var size = this.y2b_1.l23_1;
|
|
5230
5231
|
var list = ArrayList_init_$Create$_0(size);
|
|
5231
5232
|
var inductionVariable = 0;
|
|
5232
5233
|
if (inductionVariable < size)
|
|
5233
5234
|
do {
|
|
5234
5235
|
var index = inductionVariable;
|
|
5235
5236
|
inductionVariable = inductionVariable + 1 | 0;
|
|
5236
|
-
list.k(new LatLon(this.
|
|
5237
|
+
list.k(new LatLon(this.y2b_1.o23(index) * 57.29577951308232, this.y2b_1.p23(index) * 57.29577951308232));
|
|
5237
5238
|
}
|
|
5238
5239
|
while (inductionVariable < size);
|
|
5239
5240
|
var coords = list;
|
|
5240
5241
|
this.g7_1 = 1;
|
|
5241
|
-
suspendResult = this.
|
|
5242
|
+
suspendResult = this.z2b_1.e16(coords, VOID, this);
|
|
5242
5243
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5243
5244
|
return suspendResult;
|
|
5244
5245
|
}
|
|
@@ -5246,17 +5247,17 @@
|
|
|
5246
5247
|
continue $sm;
|
|
5247
5248
|
case 1:
|
|
5248
5249
|
var corrected = suspendResult;
|
|
5249
|
-
var out = copyAllSlots(this.
|
|
5250
|
+
var out = copyAllSlots(this.x2b_1, this.y2b_1);
|
|
5250
5251
|
var inductionVariable_0 = 0;
|
|
5251
|
-
var last = out.
|
|
5252
|
+
var last = out.l23_1;
|
|
5252
5253
|
if (inductionVariable_0 < last)
|
|
5253
5254
|
do {
|
|
5254
5255
|
var i = inductionVariable_0;
|
|
5255
5256
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
5256
|
-
out.
|
|
5257
|
+
out.k24(i, corrected.p(i).e11());
|
|
5257
5258
|
}
|
|
5258
5259
|
while (inductionVariable_0 < last);
|
|
5259
|
-
out.
|
|
5260
|
+
out.e25();
|
|
5260
5261
|
return out;
|
|
5261
5262
|
case 2:
|
|
5262
5263
|
throw this.j7_1;
|
|
@@ -5273,20 +5274,20 @@
|
|
|
5273
5274
|
while (true);
|
|
5274
5275
|
};
|
|
5275
5276
|
function ElevationStep() {
|
|
5276
|
-
this.
|
|
5277
|
+
this.a2c_1 = 150.0;
|
|
5277
5278
|
}
|
|
5278
|
-
protoOf(ElevationStep).
|
|
5279
|
+
protoOf(ElevationStep).b2c = function (source, provider, $completion) {
|
|
5279
5280
|
var tmp = new $fixElevationCOROUTINE$(this, source, provider, $completion);
|
|
5280
5281
|
tmp.i7_1 = Unit_instance;
|
|
5281
5282
|
tmp.j7_1 = null;
|
|
5282
5283
|
return tmp.o7();
|
|
5283
5284
|
};
|
|
5284
|
-
protoOf(ElevationStep).
|
|
5285
|
-
if (source.
|
|
5285
|
+
protoOf(ElevationStep).c2c = function (source, windowM) {
|
|
5286
|
+
if (source.l23_1 === 0)
|
|
5286
5287
|
return new Path(0);
|
|
5287
5288
|
// Inline function 'kotlin.collections.List' call
|
|
5288
5289
|
// Inline function 'kotlin.collections.MutableList' call
|
|
5289
|
-
var size = source.
|
|
5290
|
+
var size = source.l23_1;
|
|
5290
5291
|
var list = ArrayList_init_$Create$_0(size);
|
|
5291
5292
|
// Inline function 'kotlin.repeat' call
|
|
5292
5293
|
var inductionVariable = 0;
|
|
@@ -5294,26 +5295,26 @@
|
|
|
5294
5295
|
do {
|
|
5295
5296
|
var index = inductionVariable;
|
|
5296
5297
|
inductionVariable = inductionVariable + 1 | 0;
|
|
5297
|
-
var tmp$ret$4 = source.
|
|
5298
|
+
var tmp$ret$4 = source.d2c(index);
|
|
5298
5299
|
list.k(tmp$ret$4);
|
|
5299
5300
|
}
|
|
5300
5301
|
while (inductionVariable < size);
|
|
5301
5302
|
var coords = list;
|
|
5302
|
-
var smoothed = ElevationSmoother_instance.
|
|
5303
|
+
var smoothed = ElevationSmoother_instance.v10(coords, windowM);
|
|
5303
5304
|
var out = copyAllSlots(this, source);
|
|
5304
5305
|
var inductionVariable_0 = 0;
|
|
5305
|
-
var last = out.
|
|
5306
|
+
var last = out.l23_1;
|
|
5306
5307
|
if (inductionVariable_0 < last)
|
|
5307
5308
|
do {
|
|
5308
5309
|
var i = inductionVariable_0;
|
|
5309
5310
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
5310
|
-
if (isNaN_0(out.
|
|
5311
|
-
out.
|
|
5311
|
+
if (isNaN_0(out.e2b(i))) {
|
|
5312
|
+
out.e2c(i, source.q23(i));
|
|
5312
5313
|
}
|
|
5313
|
-
out.
|
|
5314
|
+
out.k24(i, smoothed.p(i).e11());
|
|
5314
5315
|
}
|
|
5315
5316
|
while (inductionVariable_0 < last);
|
|
5316
|
-
out.
|
|
5317
|
+
out.e25();
|
|
5317
5318
|
return out;
|
|
5318
5319
|
};
|
|
5319
5320
|
var ElevationStep_instance;
|
|
@@ -5322,21 +5323,21 @@
|
|
|
5322
5323
|
}
|
|
5323
5324
|
function FieldInterpolation() {
|
|
5324
5325
|
FieldInterpolation_instance = this;
|
|
5325
|
-
this.
|
|
5326
|
-
this.
|
|
5326
|
+
this.f2c_1 = 6.283185307179586;
|
|
5327
|
+
this.g2c_1 = setOf([PointField_LONGITUDE_getInstance(), PointField_SOURCE_LONGITUDE_getInstance(), PointField_BEARING_getInstance(), PointField_WIND_BEARING_getInstance(), PointField_WIND_DIRECTION_getInstance(), PointField_WIND_ALPHA_getInstance()]);
|
|
5327
5328
|
}
|
|
5328
|
-
protoOf(FieldInterpolation).
|
|
5329
|
+
protoOf(FieldInterpolation).h2c = function (src, i1, i2, coef, dst, dstIdx) {
|
|
5329
5330
|
var _iterator__ex2g4s = get_entries_2().l();
|
|
5330
5331
|
while (_iterator__ex2g4s.m()) {
|
|
5331
5332
|
var field = _iterator__ex2g4s.n();
|
|
5332
|
-
dst.
|
|
5333
|
+
dst.o2b(dstIdx, field, this.i2c(field, src.n26(i1, field), src.n26(i2, field), coef));
|
|
5333
5334
|
}
|
|
5334
5335
|
};
|
|
5335
|
-
protoOf(FieldInterpolation).
|
|
5336
|
+
protoOf(FieldInterpolation).i2c = function (field, v1, v2, coef) {
|
|
5336
5337
|
if (isNaN_0(v1) || isNaN_0(v2))
|
|
5337
5338
|
return NaN;
|
|
5338
5339
|
var delta = v2 - v1;
|
|
5339
|
-
if (!this.
|
|
5340
|
+
if (!this.g2c_1.i1(field) || (delta >= -3.141592653589793 && delta <= 3.141592653589793))
|
|
5340
5341
|
return v1 + delta * coef;
|
|
5341
5342
|
var arc = delta > 3.141592653589793 ? delta - 6.283185307179586 : delta + 6.283185307179586;
|
|
5342
5343
|
var v = v1 + arc * coef;
|
|
@@ -5350,235 +5351,235 @@
|
|
|
5350
5351
|
return FieldInterpolation_instance;
|
|
5351
5352
|
}
|
|
5352
5353
|
function GeneratedPath(size) {
|
|
5353
|
-
this.
|
|
5354
|
+
this.l23_1 = size;
|
|
5354
5355
|
// Inline function 'kotlin.require' call
|
|
5355
|
-
if (!(this.
|
|
5356
|
-
var message = 'Negative size: ' + this.
|
|
5356
|
+
if (!(this.l23_1 >= 0)) {
|
|
5357
|
+
var message = 'Negative size: ' + this.l23_1;
|
|
5357
5358
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
5358
5359
|
}
|
|
5359
|
-
this.
|
|
5360
|
+
this.m23_1 = new Float64Array(imul(this.l23_1, 44));
|
|
5360
5361
|
var inductionVariable = 0;
|
|
5361
|
-
var last = this.
|
|
5362
|
+
var last = this.l23_1;
|
|
5362
5363
|
if (inductionVariable < last)
|
|
5363
5364
|
do {
|
|
5364
5365
|
var i = inductionVariable;
|
|
5365
5366
|
inductionVariable = inductionVariable + 1 | 0;
|
|
5366
|
-
this.
|
|
5367
|
-
this.
|
|
5368
|
-
this.
|
|
5369
|
-
this.
|
|
5370
|
-
this.
|
|
5371
|
-
this.
|
|
5367
|
+
this.m23_1[imul(i, 44) + 38 | 0] = NaN;
|
|
5368
|
+
this.m23_1[imul(i, 44) + 39 | 0] = NaN;
|
|
5369
|
+
this.m23_1[imul(i, 44) + 40 | 0] = NaN;
|
|
5370
|
+
this.m23_1[imul(i, 44) + 41 | 0] = NaN;
|
|
5371
|
+
this.m23_1[imul(i, 44) + 42 | 0] = NaN;
|
|
5372
|
+
this.m23_1[imul(i, 44) + 43 | 0] = NaN;
|
|
5372
5373
|
}
|
|
5373
5374
|
while (inductionVariable < last);
|
|
5374
5375
|
}
|
|
5375
|
-
protoOf(GeneratedPath).
|
|
5376
|
-
return this.
|
|
5377
|
-
};
|
|
5378
|
-
protoOf(GeneratedPath).m2b = function (i, field, v) {
|
|
5379
|
-
this.k23_1[imul(i, 44) + field.v1_1 | 0] = v;
|
|
5380
|
-
};
|
|
5381
|
-
protoOf(GeneratedPath).l23 = function (i) {
|
|
5382
|
-
return this.k23_1[imul(i, 44) + 0 | 0];
|
|
5376
|
+
protoOf(GeneratedPath).n26 = function (i, field) {
|
|
5377
|
+
return this.m23_1[imul(i, 44) + field.v1_1 | 0];
|
|
5383
5378
|
};
|
|
5384
|
-
protoOf(GeneratedPath).
|
|
5385
|
-
this.
|
|
5379
|
+
protoOf(GeneratedPath).o2b = function (i, field, v) {
|
|
5380
|
+
this.m23_1[imul(i, 44) + field.v1_1 | 0] = v;
|
|
5386
5381
|
};
|
|
5387
|
-
protoOf(GeneratedPath).
|
|
5388
|
-
return this.
|
|
5382
|
+
protoOf(GeneratedPath).o23 = function (i) {
|
|
5383
|
+
return this.m23_1[imul(i, 44) + 0 | 0];
|
|
5389
5384
|
};
|
|
5390
|
-
protoOf(GeneratedPath).
|
|
5391
|
-
this.
|
|
5385
|
+
protoOf(GeneratedPath).i24 = function (i, v) {
|
|
5386
|
+
this.m23_1[imul(i, 44) + 0 | 0] = v;
|
|
5392
5387
|
};
|
|
5393
|
-
protoOf(GeneratedPath).
|
|
5394
|
-
return this.
|
|
5388
|
+
protoOf(GeneratedPath).p23 = function (i) {
|
|
5389
|
+
return this.m23_1[imul(i, 44) + 1 | 0];
|
|
5395
5390
|
};
|
|
5396
|
-
protoOf(GeneratedPath).
|
|
5397
|
-
this.
|
|
5391
|
+
protoOf(GeneratedPath).j24 = function (i, v) {
|
|
5392
|
+
this.m23_1[imul(i, 44) + 1 | 0] = v;
|
|
5398
5393
|
};
|
|
5399
|
-
protoOf(GeneratedPath).
|
|
5400
|
-
this.
|
|
5394
|
+
protoOf(GeneratedPath).d2b = function (i) {
|
|
5395
|
+
return this.m23_1[imul(i, 44) + 2 | 0];
|
|
5401
5396
|
};
|
|
5402
|
-
protoOf(GeneratedPath).
|
|
5403
|
-
|
|
5397
|
+
protoOf(GeneratedPath).j2c = function (i, v) {
|
|
5398
|
+
this.m23_1[imul(i, 44) + 2 | 0] = v;
|
|
5404
5399
|
};
|
|
5405
|
-
protoOf(GeneratedPath).
|
|
5406
|
-
this.
|
|
5400
|
+
protoOf(GeneratedPath).k2c = function (i, v) {
|
|
5401
|
+
this.m23_1[imul(i, 44) + 3 | 0] = v;
|
|
5407
5402
|
};
|
|
5408
|
-
protoOf(GeneratedPath).
|
|
5409
|
-
return this.
|
|
5403
|
+
protoOf(GeneratedPath).n23 = function (i) {
|
|
5404
|
+
return this.m23_1[imul(i, 44) + 4 | 0];
|
|
5410
5405
|
};
|
|
5411
|
-
protoOf(GeneratedPath).
|
|
5412
|
-
this.
|
|
5406
|
+
protoOf(GeneratedPath).l24 = function (i, v) {
|
|
5407
|
+
this.m23_1[imul(i, 44) + 4 | 0] = v;
|
|
5413
5408
|
};
|
|
5414
5409
|
protoOf(GeneratedPath).l2c = function (i) {
|
|
5415
|
-
return this.
|
|
5410
|
+
return this.m23_1[imul(i, 44) + 5 | 0];
|
|
5416
5411
|
};
|
|
5417
5412
|
protoOf(GeneratedPath).m2c = function (i, v) {
|
|
5418
|
-
this.
|
|
5413
|
+
this.m23_1[imul(i, 44) + 5 | 0] = v;
|
|
5419
5414
|
};
|
|
5420
5415
|
protoOf(GeneratedPath).n2c = function (i) {
|
|
5421
|
-
return this.
|
|
5416
|
+
return this.m23_1[imul(i, 44) + 6 | 0];
|
|
5422
5417
|
};
|
|
5423
5418
|
protoOf(GeneratedPath).o2c = function (i, v) {
|
|
5424
|
-
this.
|
|
5425
|
-
};
|
|
5426
|
-
protoOf(GeneratedPath).n23 = function (i) {
|
|
5427
|
-
return this.k23_1[imul(i, 44) + 8 | 0];
|
|
5428
|
-
};
|
|
5429
|
-
protoOf(GeneratedPath).i24 = function (i, v) {
|
|
5430
|
-
this.k23_1[imul(i, 44) + 8 | 0] = v;
|
|
5419
|
+
this.m23_1[imul(i, 44) + 6 | 0] = v;
|
|
5431
5420
|
};
|
|
5432
5421
|
protoOf(GeneratedPath).p2c = function (i) {
|
|
5433
|
-
return this.
|
|
5422
|
+
return this.m23_1[imul(i, 44) + 7 | 0];
|
|
5434
5423
|
};
|
|
5435
5424
|
protoOf(GeneratedPath).q2c = function (i, v) {
|
|
5436
|
-
this.
|
|
5425
|
+
this.m23_1[imul(i, 44) + 7 | 0] = v;
|
|
5426
|
+
};
|
|
5427
|
+
protoOf(GeneratedPath).q23 = function (i) {
|
|
5428
|
+
return this.m23_1[imul(i, 44) + 8 | 0];
|
|
5429
|
+
};
|
|
5430
|
+
protoOf(GeneratedPath).k24 = function (i, v) {
|
|
5431
|
+
this.m23_1[imul(i, 44) + 8 | 0] = v;
|
|
5437
5432
|
};
|
|
5438
5433
|
protoOf(GeneratedPath).r2c = function (i) {
|
|
5439
|
-
return this.
|
|
5434
|
+
return this.m23_1[imul(i, 44) + 9 | 0];
|
|
5440
5435
|
};
|
|
5441
5436
|
protoOf(GeneratedPath).s2c = function (i, v) {
|
|
5442
|
-
this.
|
|
5437
|
+
this.m23_1[imul(i, 44) + 9 | 0] = v;
|
|
5443
5438
|
};
|
|
5444
|
-
protoOf(GeneratedPath).t2c = function (i
|
|
5445
|
-
this.
|
|
5439
|
+
protoOf(GeneratedPath).t2c = function (i) {
|
|
5440
|
+
return this.m23_1[imul(i, 44) + 10 | 0];
|
|
5446
5441
|
};
|
|
5447
5442
|
protoOf(GeneratedPath).u2c = function (i, v) {
|
|
5448
|
-
this.
|
|
5443
|
+
this.m23_1[imul(i, 44) + 10 | 0] = v;
|
|
5449
5444
|
};
|
|
5450
|
-
protoOf(GeneratedPath).v2c = function (i) {
|
|
5451
|
-
|
|
5445
|
+
protoOf(GeneratedPath).v2c = function (i, v) {
|
|
5446
|
+
this.m23_1[imul(i, 44) + 11 | 0] = v;
|
|
5452
5447
|
};
|
|
5453
5448
|
protoOf(GeneratedPath).w2c = function (i, v) {
|
|
5454
|
-
this.
|
|
5449
|
+
this.m23_1[imul(i, 44) + 12 | 0] = v;
|
|
5455
5450
|
};
|
|
5456
|
-
protoOf(GeneratedPath).x2c = function (i
|
|
5457
|
-
this.
|
|
5451
|
+
protoOf(GeneratedPath).x2c = function (i) {
|
|
5452
|
+
return this.m23_1[imul(i, 44) + 13 | 0];
|
|
5458
5453
|
};
|
|
5459
5454
|
protoOf(GeneratedPath).y2c = function (i, v) {
|
|
5460
|
-
this.
|
|
5455
|
+
this.m23_1[imul(i, 44) + 13 | 0] = v;
|
|
5461
5456
|
};
|
|
5462
5457
|
protoOf(GeneratedPath).z2c = function (i, v) {
|
|
5463
|
-
this.
|
|
5458
|
+
this.m23_1[imul(i, 44) + 14 | 0] = v;
|
|
5464
5459
|
};
|
|
5465
5460
|
protoOf(GeneratedPath).a2d = function (i, v) {
|
|
5466
|
-
this.
|
|
5467
|
-
};
|
|
5468
|
-
protoOf(GeneratedPath).s23 = function (i) {
|
|
5469
|
-
return this.k23_1[imul(i, 44) + 18 | 0];
|
|
5470
|
-
};
|
|
5471
|
-
protoOf(GeneratedPath).k24 = function (i, v) {
|
|
5472
|
-
this.k23_1[imul(i, 44) + 18 | 0] = v;
|
|
5461
|
+
this.m23_1[imul(i, 44) + 15 | 0] = v;
|
|
5473
5462
|
};
|
|
5474
5463
|
protoOf(GeneratedPath).b2d = function (i, v) {
|
|
5475
|
-
this.
|
|
5464
|
+
this.m23_1[imul(i, 44) + 16 | 0] = v;
|
|
5476
5465
|
};
|
|
5477
5466
|
protoOf(GeneratedPath).c2d = function (i, v) {
|
|
5478
|
-
this.
|
|
5467
|
+
this.m23_1[imul(i, 44) + 17 | 0] = v;
|
|
5468
|
+
};
|
|
5469
|
+
protoOf(GeneratedPath).u23 = function (i) {
|
|
5470
|
+
return this.m23_1[imul(i, 44) + 18 | 0];
|
|
5471
|
+
};
|
|
5472
|
+
protoOf(GeneratedPath).m24 = function (i, v) {
|
|
5473
|
+
this.m23_1[imul(i, 44) + 18 | 0] = v;
|
|
5479
5474
|
};
|
|
5480
5475
|
protoOf(GeneratedPath).d2d = function (i, v) {
|
|
5481
|
-
this.
|
|
5476
|
+
this.m23_1[imul(i, 44) + 19 | 0] = v;
|
|
5482
5477
|
};
|
|
5483
5478
|
protoOf(GeneratedPath).e2d = function (i, v) {
|
|
5484
|
-
this.
|
|
5479
|
+
this.m23_1[imul(i, 44) + 20 | 0] = v;
|
|
5485
5480
|
};
|
|
5486
5481
|
protoOf(GeneratedPath).f2d = function (i, v) {
|
|
5487
|
-
this.
|
|
5482
|
+
this.m23_1[imul(i, 44) + 21 | 0] = v;
|
|
5488
5483
|
};
|
|
5489
5484
|
protoOf(GeneratedPath).g2d = function (i, v) {
|
|
5490
|
-
this.
|
|
5485
|
+
this.m23_1[imul(i, 44) + 22 | 0] = v;
|
|
5491
5486
|
};
|
|
5492
5487
|
protoOf(GeneratedPath).h2d = function (i, v) {
|
|
5493
|
-
this.
|
|
5494
|
-
};
|
|
5495
|
-
protoOf(GeneratedPath).t23 = function (i) {
|
|
5496
|
-
return this.k23_1[imul(i, 44) + 26 | 0];
|
|
5488
|
+
this.m23_1[imul(i, 44) + 23 | 0] = v;
|
|
5497
5489
|
};
|
|
5498
5490
|
protoOf(GeneratedPath).i2d = function (i, v) {
|
|
5499
|
-
this.
|
|
5491
|
+
this.m23_1[imul(i, 44) + 24 | 0] = v;
|
|
5500
5492
|
};
|
|
5501
|
-
protoOf(GeneratedPath).j2d = function (i) {
|
|
5502
|
-
|
|
5493
|
+
protoOf(GeneratedPath).j2d = function (i, v) {
|
|
5494
|
+
this.m23_1[imul(i, 44) + 25 | 0] = v;
|
|
5495
|
+
};
|
|
5496
|
+
protoOf(GeneratedPath).v23 = function (i) {
|
|
5497
|
+
return this.m23_1[imul(i, 44) + 26 | 0];
|
|
5503
5498
|
};
|
|
5504
5499
|
protoOf(GeneratedPath).k2d = function (i, v) {
|
|
5505
|
-
this.
|
|
5500
|
+
this.m23_1[imul(i, 44) + 26 | 0] = v;
|
|
5506
5501
|
};
|
|
5507
5502
|
protoOf(GeneratedPath).l2d = function (i) {
|
|
5508
|
-
return this.
|
|
5503
|
+
return this.m23_1[imul(i, 44) + 27 | 0];
|
|
5509
5504
|
};
|
|
5510
5505
|
protoOf(GeneratedPath).m2d = function (i, v) {
|
|
5511
|
-
this.
|
|
5506
|
+
this.m23_1[imul(i, 44) + 27 | 0] = v;
|
|
5512
5507
|
};
|
|
5513
|
-
protoOf(GeneratedPath).n2d = function (i
|
|
5514
|
-
this.
|
|
5508
|
+
protoOf(GeneratedPath).n2d = function (i) {
|
|
5509
|
+
return this.m23_1[imul(i, 44) + 28 | 0];
|
|
5515
5510
|
};
|
|
5516
5511
|
protoOf(GeneratedPath).o2d = function (i, v) {
|
|
5517
|
-
this.
|
|
5512
|
+
this.m23_1[imul(i, 44) + 28 | 0] = v;
|
|
5518
5513
|
};
|
|
5519
|
-
protoOf(GeneratedPath).
|
|
5520
|
-
|
|
5514
|
+
protoOf(GeneratedPath).p2d = function (i, v) {
|
|
5515
|
+
this.m23_1[imul(i, 44) + 29 | 0] = v;
|
|
5521
5516
|
};
|
|
5522
|
-
protoOf(GeneratedPath).
|
|
5523
|
-
this.
|
|
5517
|
+
protoOf(GeneratedPath).q2d = function (i, v) {
|
|
5518
|
+
this.m23_1[imul(i, 44) + 30 | 0] = v;
|
|
5524
5519
|
};
|
|
5525
|
-
protoOf(GeneratedPath).
|
|
5526
|
-
return this.
|
|
5520
|
+
protoOf(GeneratedPath).t23 = function (i) {
|
|
5521
|
+
return this.m23_1[imul(i, 44) + 31 | 0];
|
|
5527
5522
|
};
|
|
5528
|
-
protoOf(GeneratedPath).
|
|
5529
|
-
this.
|
|
5523
|
+
protoOf(GeneratedPath).p24 = function (i, v) {
|
|
5524
|
+
this.m23_1[imul(i, 44) + 31 | 0] = v;
|
|
5530
5525
|
};
|
|
5531
|
-
protoOf(GeneratedPath).r2d = function (i
|
|
5532
|
-
this.
|
|
5526
|
+
protoOf(GeneratedPath).r2d = function (i) {
|
|
5527
|
+
return this.m23_1[imul(i, 44) + 32 | 0];
|
|
5533
5528
|
};
|
|
5534
|
-
protoOf(GeneratedPath).
|
|
5535
|
-
|
|
5529
|
+
protoOf(GeneratedPath).s2d = function (i, v) {
|
|
5530
|
+
this.m23_1[imul(i, 44) + 32 | 0] = v;
|
|
5536
5531
|
};
|
|
5537
|
-
protoOf(GeneratedPath).
|
|
5538
|
-
this.
|
|
5532
|
+
protoOf(GeneratedPath).t2d = function (i, v) {
|
|
5533
|
+
this.m23_1[imul(i, 44) + 33 | 0] = v;
|
|
5539
5534
|
};
|
|
5540
|
-
protoOf(GeneratedPath).
|
|
5541
|
-
return this.
|
|
5535
|
+
protoOf(GeneratedPath).r23 = function (i) {
|
|
5536
|
+
return this.m23_1[imul(i, 44) + 34 | 0];
|
|
5542
5537
|
};
|
|
5543
|
-
protoOf(GeneratedPath).
|
|
5544
|
-
this.
|
|
5538
|
+
protoOf(GeneratedPath).n24 = function (i, v) {
|
|
5539
|
+
this.m23_1[imul(i, 44) + 34 | 0] = v;
|
|
5545
5540
|
};
|
|
5546
|
-
protoOf(GeneratedPath).
|
|
5547
|
-
this.
|
|
5541
|
+
protoOf(GeneratedPath).s23 = function (i) {
|
|
5542
|
+
return this.m23_1[imul(i, 44) + 35 | 0];
|
|
5548
5543
|
};
|
|
5549
|
-
protoOf(GeneratedPath).
|
|
5550
|
-
this.
|
|
5544
|
+
protoOf(GeneratedPath).o24 = function (i, v) {
|
|
5545
|
+
this.m23_1[imul(i, 44) + 35 | 0] = v;
|
|
5551
5546
|
};
|
|
5552
|
-
protoOf(GeneratedPath).u2d = function (i) {
|
|
5553
|
-
|
|
5547
|
+
protoOf(GeneratedPath).u2d = function (i, v) {
|
|
5548
|
+
this.m23_1[imul(i, 44) + 36 | 0] = v;
|
|
5554
5549
|
};
|
|
5555
5550
|
protoOf(GeneratedPath).v2d = function (i, v) {
|
|
5556
|
-
this.
|
|
5551
|
+
this.m23_1[imul(i, 44) + 37 | 0] = v;
|
|
5557
5552
|
};
|
|
5558
5553
|
protoOf(GeneratedPath).w2d = function (i) {
|
|
5559
|
-
return this.
|
|
5560
|
-
};
|
|
5561
|
-
protoOf(GeneratedPath).q24 = function (i, v) {
|
|
5562
|
-
this.k23_1[imul(i, 44) + 39 | 0] = v;
|
|
5554
|
+
return this.m23_1[imul(i, 44) + 38 | 0];
|
|
5563
5555
|
};
|
|
5564
5556
|
protoOf(GeneratedPath).x2d = function (i, v) {
|
|
5565
|
-
this.
|
|
5557
|
+
this.m23_1[imul(i, 44) + 38 | 0] = v;
|
|
5558
|
+
};
|
|
5559
|
+
protoOf(GeneratedPath).y2d = function (i) {
|
|
5560
|
+
return this.m23_1[imul(i, 44) + 39 | 0];
|
|
5566
5561
|
};
|
|
5567
|
-
protoOf(GeneratedPath).
|
|
5568
|
-
this.
|
|
5562
|
+
protoOf(GeneratedPath).s24 = function (i, v) {
|
|
5563
|
+
this.m23_1[imul(i, 44) + 39 | 0] = v;
|
|
5569
5564
|
};
|
|
5570
5565
|
protoOf(GeneratedPath).z2d = function (i, v) {
|
|
5571
|
-
this.
|
|
5566
|
+
this.m23_1[imul(i, 44) + 40 | 0] = v;
|
|
5572
5567
|
};
|
|
5573
|
-
protoOf(GeneratedPath).
|
|
5574
|
-
|
|
5568
|
+
protoOf(GeneratedPath).a2e = function (i, v) {
|
|
5569
|
+
this.m23_1[imul(i, 44) + 41 | 0] = v;
|
|
5575
5570
|
};
|
|
5576
|
-
protoOf(GeneratedPath).
|
|
5577
|
-
this.
|
|
5571
|
+
protoOf(GeneratedPath).b2e = function (i, v) {
|
|
5572
|
+
this.m23_1[imul(i, 44) + 42 | 0] = v;
|
|
5573
|
+
};
|
|
5574
|
+
protoOf(GeneratedPath).e2b = function (i) {
|
|
5575
|
+
return this.m23_1[imul(i, 44) + 43 | 0];
|
|
5576
|
+
};
|
|
5577
|
+
protoOf(GeneratedPath).e2c = function (i, v) {
|
|
5578
|
+
this.m23_1[imul(i, 44) + 43 | 0] = v;
|
|
5578
5579
|
};
|
|
5579
5580
|
function Companion_6() {
|
|
5580
5581
|
Companion_instance_7 = this;
|
|
5581
|
-
this.
|
|
5582
|
+
this.c2e_1 = new BoundsRad(0.0, 0.0, 0.0, 0.0);
|
|
5582
5583
|
}
|
|
5583
5584
|
var Companion_instance_7;
|
|
5584
5585
|
function Companion_getInstance_7() {
|
|
@@ -5588,19 +5589,19 @@
|
|
|
5588
5589
|
}
|
|
5589
5590
|
function BoundsRad(minLat, maxLat, minLon, maxLon) {
|
|
5590
5591
|
Companion_getInstance_7();
|
|
5591
|
-
this.
|
|
5592
|
-
this.
|
|
5593
|
-
this.
|
|
5594
|
-
this.
|
|
5592
|
+
this.d2e_1 = minLat;
|
|
5593
|
+
this.e2e_1 = maxLat;
|
|
5594
|
+
this.f2e_1 = minLon;
|
|
5595
|
+
this.g2e_1 = maxLon;
|
|
5595
5596
|
}
|
|
5596
5597
|
protoOf(BoundsRad).toString = function () {
|
|
5597
|
-
return 'BoundsRad(minLat=' + this.
|
|
5598
|
+
return 'BoundsRad(minLat=' + this.d2e_1 + ', maxLat=' + this.e2e_1 + ', minLon=' + this.f2e_1 + ', maxLon=' + this.g2e_1 + ')';
|
|
5598
5599
|
};
|
|
5599
5600
|
protoOf(BoundsRad).hashCode = function () {
|
|
5600
|
-
var result = getNumberHashCode(this.
|
|
5601
|
-
result = imul(result, 31) + getNumberHashCode(this.c2e_1) | 0;
|
|
5602
|
-
result = imul(result, 31) + getNumberHashCode(this.d2e_1) | 0;
|
|
5601
|
+
var result = getNumberHashCode(this.d2e_1);
|
|
5603
5602
|
result = imul(result, 31) + getNumberHashCode(this.e2e_1) | 0;
|
|
5603
|
+
result = imul(result, 31) + getNumberHashCode(this.f2e_1) | 0;
|
|
5604
|
+
result = imul(result, 31) + getNumberHashCode(this.g2e_1) | 0;
|
|
5604
5605
|
return result;
|
|
5605
5606
|
};
|
|
5606
5607
|
protoOf(BoundsRad).equals = function (other) {
|
|
@@ -5608,19 +5609,17 @@
|
|
|
5608
5609
|
return true;
|
|
5609
5610
|
if (!(other instanceof BoundsRad))
|
|
5610
5611
|
return false;
|
|
5611
|
-
if (!equals(this.b2e_1, other.b2e_1))
|
|
5612
|
-
return false;
|
|
5613
|
-
if (!equals(this.c2e_1, other.c2e_1))
|
|
5614
|
-
return false;
|
|
5615
5612
|
if (!equals(this.d2e_1, other.d2e_1))
|
|
5616
5613
|
return false;
|
|
5617
5614
|
if (!equals(this.e2e_1, other.e2e_1))
|
|
5618
5615
|
return false;
|
|
5616
|
+
if (!equals(this.f2e_1, other.f2e_1))
|
|
5617
|
+
return false;
|
|
5618
|
+
if (!equals(this.g2e_1, other.g2e_1))
|
|
5619
|
+
return false;
|
|
5619
5620
|
return true;
|
|
5620
5621
|
};
|
|
5621
5622
|
function copyStatsFrom($this, other) {
|
|
5622
|
-
$this.t24_1 = other.t24_1;
|
|
5623
|
-
$this.u24_1 = other.u24_1;
|
|
5624
5623
|
$this.v24_1 = other.v24_1;
|
|
5625
5624
|
$this.w24_1 = other.w24_1;
|
|
5626
5625
|
$this.x24_1 = other.x24_1;
|
|
@@ -5628,22 +5627,24 @@
|
|
|
5628
5627
|
$this.z24_1 = other.z24_1;
|
|
5629
5628
|
$this.a25_1 = other.a25_1;
|
|
5630
5629
|
$this.b25_1 = other.b25_1;
|
|
5630
|
+
$this.c25_1 = other.c25_1;
|
|
5631
|
+
$this.d25_1 = other.d25_1;
|
|
5631
5632
|
}
|
|
5632
5633
|
function resetStats($this) {
|
|
5633
|
-
$this.t24_1 = 0.0;
|
|
5634
|
-
$this.u24_1 = 0.0;
|
|
5635
5634
|
$this.v24_1 = 0.0;
|
|
5636
5635
|
$this.w24_1 = 0.0;
|
|
5637
5636
|
$this.x24_1 = 0.0;
|
|
5638
|
-
$this.y24_1 =
|
|
5639
|
-
$this.z24_1 =
|
|
5640
|
-
$this.a25_1 =
|
|
5641
|
-
$this.b25_1 =
|
|
5637
|
+
$this.y24_1 = 0.0;
|
|
5638
|
+
$this.z24_1 = 0.0;
|
|
5639
|
+
$this.a25_1 = NaN;
|
|
5640
|
+
$this.b25_1 = NaN;
|
|
5641
|
+
$this.c25_1 = 0.0;
|
|
5642
|
+
$this.d25_1 = Companion_getInstance_7().c2e_1;
|
|
5642
5643
|
}
|
|
5643
5644
|
function computeBearing($this, from, to) {
|
|
5644
|
-
var lat1 = $this.
|
|
5645
|
-
var lat2 = $this.
|
|
5646
|
-
var dLon = $this.
|
|
5645
|
+
var lat1 = $this.o23(from);
|
|
5646
|
+
var lat2 = $this.o23(to);
|
|
5647
|
+
var dLon = $this.p23(to) - $this.p23(from);
|
|
5647
5648
|
if (dLon > 3.141592653589793) {
|
|
5648
5649
|
dLon = dLon - 2 * 3.141592653589793;
|
|
5649
5650
|
} else if (dLon <= -3.141592653589793) {
|
|
@@ -5666,40 +5667,40 @@
|
|
|
5666
5667
|
}
|
|
5667
5668
|
function Path(size) {
|
|
5668
5669
|
GeneratedPath.call(this, size);
|
|
5669
|
-
this.t24_1 = 0.0;
|
|
5670
|
-
this.u24_1 = 0.0;
|
|
5671
5670
|
this.v24_1 = 0.0;
|
|
5672
5671
|
this.w24_1 = 0.0;
|
|
5673
5672
|
this.x24_1 = 0.0;
|
|
5674
|
-
this.y24_1 =
|
|
5675
|
-
this.z24_1 =
|
|
5676
|
-
this.a25_1 =
|
|
5677
|
-
this.b25_1 =
|
|
5673
|
+
this.y24_1 = 0.0;
|
|
5674
|
+
this.z24_1 = 0.0;
|
|
5675
|
+
this.a25_1 = NaN;
|
|
5676
|
+
this.b25_1 = NaN;
|
|
5677
|
+
this.c25_1 = 0.0;
|
|
5678
|
+
this.d25_1 = Companion_getInstance_7().c2e_1;
|
|
5678
5679
|
}
|
|
5679
|
-
protoOf(Path).
|
|
5680
|
-
return isNaN_0(this.
|
|
5680
|
+
protoOf(Path).h2e = function () {
|
|
5681
|
+
return isNaN_0(this.a25_1) ? this.y24_1 : this.a25_1;
|
|
5681
5682
|
};
|
|
5682
|
-
protoOf(Path).
|
|
5683
|
-
return isNaN_0(this.
|
|
5683
|
+
protoOf(Path).i2e = function () {
|
|
5684
|
+
return isNaN_0(this.b25_1) ? this.z24_1 : this.b25_1;
|
|
5684
5685
|
};
|
|
5685
|
-
protoOf(Path).
|
|
5686
|
-
return until(0, this.
|
|
5686
|
+
protoOf(Path).j2e = function () {
|
|
5687
|
+
return until(0, this.l23_1);
|
|
5687
5688
|
};
|
|
5688
|
-
protoOf(Path).
|
|
5689
|
-
return this.
|
|
5689
|
+
protoOf(Path).k2e = function (i) {
|
|
5690
|
+
return this.o23(i) * 57.29577951308232;
|
|
5690
5691
|
};
|
|
5691
|
-
protoOf(Path).
|
|
5692
|
-
return this.
|
|
5692
|
+
protoOf(Path).l2e = function (i) {
|
|
5693
|
+
return this.p23(i) * 57.29577951308232;
|
|
5693
5694
|
};
|
|
5694
|
-
protoOf(Path).
|
|
5695
|
-
return new LatLonElevation(this.
|
|
5695
|
+
protoOf(Path).d2c = function (i) {
|
|
5696
|
+
return new LatLonElevation(this.k2e(i), this.l2e(i), this.q23(i));
|
|
5696
5697
|
};
|
|
5697
|
-
protoOf(Path).
|
|
5698
|
-
var out = new Path(this.
|
|
5699
|
-
var tmp0 = this.
|
|
5700
|
-
var tmp2 = out.
|
|
5698
|
+
protoOf(Path).m2e = function () {
|
|
5699
|
+
var out = new Path(this.l23_1);
|
|
5700
|
+
var tmp0 = this.m23_1;
|
|
5701
|
+
var tmp2 = out.m23_1;
|
|
5701
5702
|
// Inline function 'kotlin.collections.copyInto' call
|
|
5702
|
-
var endIndex = this.
|
|
5703
|
+
var endIndex = this.m23_1.length;
|
|
5703
5704
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
5704
5705
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5705
5706
|
var tmp = tmp0;
|
|
@@ -5709,11 +5710,11 @@
|
|
|
5709
5710
|
copyStatsFrom(out, this);
|
|
5710
5711
|
return out;
|
|
5711
5712
|
};
|
|
5712
|
-
protoOf(Path).
|
|
5713
|
+
protoOf(Path).e25 = function () {
|
|
5713
5714
|
resetStats(this);
|
|
5714
|
-
if (this.
|
|
5715
|
+
if (this.l23_1 === 0)
|
|
5715
5716
|
return Unit_instance;
|
|
5716
|
-
var timeStart = this.
|
|
5717
|
+
var timeStart = this.n23(0);
|
|
5717
5718
|
var cumDist = 0.0;
|
|
5718
5719
|
var minLat = Infinity;
|
|
5719
5720
|
var maxLat = -Infinity;
|
|
@@ -5724,14 +5725,14 @@
|
|
|
5724
5725
|
var gain = 0.0;
|
|
5725
5726
|
var loss = 0.0;
|
|
5726
5727
|
var inductionVariable = 0;
|
|
5727
|
-
var last = this.
|
|
5728
|
+
var last = this.l23_1;
|
|
5728
5729
|
if (inductionVariable < last)
|
|
5729
5730
|
do {
|
|
5730
5731
|
var i = inductionVariable;
|
|
5731
5732
|
inductionVariable = inductionVariable + 1 | 0;
|
|
5732
|
-
var lat = this.
|
|
5733
|
-
var lon = this.
|
|
5734
|
-
var ele = this.
|
|
5733
|
+
var lat = this.o23(i);
|
|
5734
|
+
var lon = this.p23(i);
|
|
5735
|
+
var ele = this.q23(i);
|
|
5735
5736
|
// Inline function 'kotlin.math.min' call
|
|
5736
5737
|
var a = minLat;
|
|
5737
5738
|
minLat = Math.min(a, lat);
|
|
@@ -5751,71 +5752,71 @@
|
|
|
5751
5752
|
var a_4 = maxEle;
|
|
5752
5753
|
maxEle = Math.max(a_4, ele);
|
|
5753
5754
|
if (i > 0) {
|
|
5754
|
-
var prevCoord = new LatLon(this.
|
|
5755
|
-
var curCoord = new LatLon(this.
|
|
5756
|
-
cumDist = cumDist + Distance_instance.
|
|
5757
|
-
var dEle = ele - this.
|
|
5755
|
+
var prevCoord = new LatLon(this.k2e(i - 1 | 0), this.l2e(i - 1 | 0));
|
|
5756
|
+
var curCoord = new LatLon(this.k2e(i), this.l2e(i));
|
|
5757
|
+
cumDist = cumDist + Distance_instance.z10(prevCoord, curCoord);
|
|
5758
|
+
var dEle = ele - this.q23(i - 1 | 0);
|
|
5758
5759
|
if (dEle > 0)
|
|
5759
5760
|
gain = gain + dEle;
|
|
5760
5761
|
else
|
|
5761
5762
|
loss = loss + dEle;
|
|
5762
5763
|
}
|
|
5763
|
-
this.
|
|
5764
|
+
this.j2c(i, cumDist);
|
|
5764
5765
|
}
|
|
5765
5766
|
while (inductionVariable < last);
|
|
5766
|
-
this.
|
|
5767
|
-
this.
|
|
5768
|
-
this.
|
|
5769
|
-
this.
|
|
5770
|
-
this.
|
|
5771
|
-
this.
|
|
5772
|
-
this.
|
|
5767
|
+
this.v24_1 = cumDist;
|
|
5768
|
+
this.w24_1 = minEle === Infinity ? 0.0 : minEle;
|
|
5769
|
+
this.x24_1 = maxEle === -Infinity ? 0.0 : maxEle;
|
|
5770
|
+
this.y24_1 = gain;
|
|
5771
|
+
this.z24_1 = loss;
|
|
5772
|
+
this.d25_1 = new BoundsRad(minLat, maxLat, minLon, maxLon);
|
|
5773
|
+
this.c25_1 = this.l23_1 >= 2 ? this.n23(this.l23_1 - 1 | 0) - timeStart : 0.0;
|
|
5773
5774
|
var inductionVariable_0 = 0;
|
|
5774
|
-
var last_0 = this.
|
|
5775
|
+
var last_0 = this.l23_1;
|
|
5775
5776
|
if (inductionVariable_0 < last_0)
|
|
5776
5777
|
$l$loop: do {
|
|
5777
5778
|
var i_0 = inductionVariable_0;
|
|
5778
5779
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
5779
|
-
this.
|
|
5780
|
-
if (this.
|
|
5780
|
+
this.m2c(i_0, (this.n23(i_0) - timeStart) / 1000.0);
|
|
5781
|
+
if (this.l23_1 <= 1)
|
|
5781
5782
|
continue $l$loop;
|
|
5782
5783
|
// Inline function 'kotlin.math.max' call
|
|
5783
5784
|
var b = i_0 - 1 | 0;
|
|
5784
5785
|
var im1 = Math.max(0, b);
|
|
5785
|
-
var tmp0 = this.
|
|
5786
|
+
var tmp0 = this.l23_1 - 1 | 0;
|
|
5786
5787
|
// Inline function 'kotlin.math.min' call
|
|
5787
5788
|
var b_0 = i_0 + 1 | 0;
|
|
5788
5789
|
var ip1 = Math.min(tmp0, b_0);
|
|
5789
|
-
this.
|
|
5790
|
-
var dDist = (this.
|
|
5791
|
-
var dEle_0 = (this.
|
|
5790
|
+
this.q2c(i_0, computeBearing(this, im1, ip1));
|
|
5791
|
+
var dDist = (this.d2b(ip1) - this.d2b(im1)) / 2.0;
|
|
5792
|
+
var dEle_0 = (this.q23(ip1) - this.q23(im1)) / 2.0;
|
|
5792
5793
|
var grade = dDist === 0.0 ? 0.0 : dEle_0 / dDist;
|
|
5793
|
-
this.
|
|
5794
|
-
var dTime = (this.
|
|
5795
|
-
this.
|
|
5796
|
-
this.
|
|
5797
|
-
this.
|
|
5794
|
+
this.s2c(i_0, grade);
|
|
5795
|
+
var dTime = (this.n23(ip1) - this.n23(im1)) / 2000.0;
|
|
5796
|
+
this.k2c(i_0, dDist);
|
|
5797
|
+
this.o2c(i_0, dTime);
|
|
5798
|
+
this.m2d(i_0, dTime === 0.0 ? 0.0 : dDist / dTime);
|
|
5798
5799
|
}
|
|
5799
5800
|
while (inductionVariable_0 < last_0);
|
|
5800
5801
|
};
|
|
5801
5802
|
function PathSimplifier() {
|
|
5802
5803
|
}
|
|
5803
|
-
protoOf(PathSimplifier).
|
|
5804
|
-
if (path.
|
|
5805
|
-
return path.
|
|
5806
|
-
var coords = ArrayList_init_$Create$_0(path.
|
|
5804
|
+
protoOf(PathSimplifier).n2e = function (path, toleranceM, zExaggeration) {
|
|
5805
|
+
if (path.l23_1 <= 2)
|
|
5806
|
+
return path.m2e();
|
|
5807
|
+
var coords = ArrayList_init_$Create$_0(path.l23_1);
|
|
5807
5808
|
var inductionVariable = 0;
|
|
5808
|
-
var last = path.
|
|
5809
|
+
var last = path.l23_1;
|
|
5809
5810
|
if (inductionVariable < last)
|
|
5810
5811
|
do {
|
|
5811
5812
|
var i = inductionVariable;
|
|
5812
5813
|
inductionVariable = inductionVariable + 1 | 0;
|
|
5813
5814
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5814
|
-
var element = new LatLonElevation(path.
|
|
5815
|
+
var element = new LatLonElevation(path.o23(i) * 57.29577951308232, path.p23(i) * 57.29577951308232, path.q23(i));
|
|
5815
5816
|
coords.k(element);
|
|
5816
5817
|
}
|
|
5817
5818
|
while (inductionVariable < last);
|
|
5818
|
-
var simplified = DouglasPeucker_instance.
|
|
5819
|
+
var simplified = DouglasPeucker_instance.w10(coords, toleranceM, zExaggeration);
|
|
5819
5820
|
var retainedIndices = ArrayList_init_$Create$_0(simplified.o());
|
|
5820
5821
|
var cursor = 0;
|
|
5821
5822
|
var _iterator__ex2g4s = simplified.l();
|
|
@@ -5844,12 +5845,12 @@
|
|
|
5844
5845
|
var _iterator__ex2g4s_0 = get_entries_2().l();
|
|
5845
5846
|
while (_iterator__ex2g4s_0.m()) {
|
|
5846
5847
|
var field = _iterator__ex2g4s_0.n();
|
|
5847
|
-
out.
|
|
5848
|
+
out.o2b(dstIdx, field, path.n26(srcIdx, field));
|
|
5848
5849
|
}
|
|
5849
5850
|
}
|
|
5850
|
-
out.
|
|
5851
|
-
out.
|
|
5852
|
-
out.
|
|
5851
|
+
out.e25();
|
|
5852
|
+
out.a25_1 = path.a25_1;
|
|
5853
|
+
out.b25_1 = path.b25_1;
|
|
5853
5854
|
return out;
|
|
5854
5855
|
};
|
|
5855
5856
|
var PathSimplifier_instance;
|
|
@@ -5956,7 +5957,7 @@
|
|
|
5956
5957
|
var PointField_SOURCE_ELEVATION_instance;
|
|
5957
5958
|
function Companion_8() {
|
|
5958
5959
|
Companion_instance_9 = this;
|
|
5959
|
-
this.
|
|
5960
|
+
this.o2e_1 = 44;
|
|
5960
5961
|
var tmp = this;
|
|
5961
5962
|
// Inline function 'kotlin.collections.associateBy' call
|
|
5962
5963
|
var this_0 = get_entries_2();
|
|
@@ -5966,13 +5967,13 @@
|
|
|
5966
5967
|
var _iterator__ex2g4s = this_0.l();
|
|
5967
5968
|
while (_iterator__ex2g4s.m()) {
|
|
5968
5969
|
var element = _iterator__ex2g4s.n();
|
|
5969
|
-
var tmp$ret$2 = element.
|
|
5970
|
+
var tmp$ret$2 = element.f26_1;
|
|
5970
5971
|
destination.s3(tmp$ret$2, element);
|
|
5971
5972
|
}
|
|
5972
|
-
tmp.
|
|
5973
|
+
tmp.p2e_1 = destination;
|
|
5973
5974
|
}
|
|
5974
|
-
protoOf(Companion_8).
|
|
5975
|
-
return this.
|
|
5975
|
+
protoOf(Companion_8).q2e = function (prop) {
|
|
5976
|
+
return this.p2e_1.q1(prop);
|
|
5976
5977
|
};
|
|
5977
5978
|
var Companion_instance_9;
|
|
5978
5979
|
function Companion_getInstance_9() {
|
|
@@ -5995,13 +5996,13 @@
|
|
|
5995
5996
|
anglesInRadians = anglesInRadians === VOID ? false : anglesInRadians;
|
|
5996
5997
|
nanDefault = nanDefault === VOID ? false : nanDefault;
|
|
5997
5998
|
Enum.call(this, name, ordinal);
|
|
5998
|
-
this.
|
|
5999
|
-
this.
|
|
6000
|
-
this.
|
|
6001
|
-
this.
|
|
6002
|
-
this.
|
|
6003
|
-
this.
|
|
6004
|
-
this.
|
|
5999
|
+
this.f26_1 = prop;
|
|
6000
|
+
this.g26_1 = unit;
|
|
6001
|
+
this.h26_1 = shortDescription;
|
|
6002
|
+
this.i26_1 = category;
|
|
6003
|
+
this.j26_1 = notSelectable;
|
|
6004
|
+
this.k26_1 = anglesInRadians;
|
|
6005
|
+
this.l26_1 = nanDefault;
|
|
6005
6006
|
}
|
|
6006
6007
|
function PointField_LATITUDE_getInstance() {
|
|
6007
6008
|
static_init_3();
|
|
@@ -6217,8 +6218,8 @@
|
|
|
6217
6218
|
var PointFieldCategory_ROAD_instance;
|
|
6218
6219
|
function PointFieldCategory(name, ordinal, id, displayName) {
|
|
6219
6220
|
Enum.call(this, name, ordinal);
|
|
6220
|
-
this.
|
|
6221
|
-
this.
|
|
6221
|
+
this.t2e_1 = id;
|
|
6222
|
+
this.u2e_1 = displayName;
|
|
6222
6223
|
}
|
|
6223
6224
|
function PointFieldCategory_COORDINATES_getInstance() {
|
|
6224
6225
|
static_init_4();
|
|
@@ -6281,35 +6282,35 @@
|
|
|
6281
6282
|
return PointFieldCategory_ROAD_instance;
|
|
6282
6283
|
}
|
|
6283
6284
|
function Copy(sourceIndex) {
|
|
6284
|
-
this.
|
|
6285
|
+
this.v2e_1 = sourceIndex;
|
|
6285
6286
|
}
|
|
6286
6287
|
protoOf(Copy).toString = function () {
|
|
6287
|
-
return 'Copy(sourceIndex=' + this.
|
|
6288
|
+
return 'Copy(sourceIndex=' + this.v2e_1 + ')';
|
|
6288
6289
|
};
|
|
6289
6290
|
protoOf(Copy).hashCode = function () {
|
|
6290
|
-
return this.
|
|
6291
|
+
return this.v2e_1;
|
|
6291
6292
|
};
|
|
6292
6293
|
protoOf(Copy).equals = function (other) {
|
|
6293
6294
|
if (this === other)
|
|
6294
6295
|
return true;
|
|
6295
6296
|
if (!(other instanceof Copy))
|
|
6296
6297
|
return false;
|
|
6297
|
-
if (!(this.
|
|
6298
|
+
if (!(this.v2e_1 === other.v2e_1))
|
|
6298
6299
|
return false;
|
|
6299
6300
|
return true;
|
|
6300
6301
|
};
|
|
6301
6302
|
function Interpolate(from, to, coef) {
|
|
6302
|
-
this.
|
|
6303
|
-
this.
|
|
6304
|
-
this.
|
|
6303
|
+
this.w2e_1 = from;
|
|
6304
|
+
this.x2e_1 = to;
|
|
6305
|
+
this.y2e_1 = coef;
|
|
6305
6306
|
}
|
|
6306
6307
|
protoOf(Interpolate).toString = function () {
|
|
6307
|
-
return 'Interpolate(from=' + this.
|
|
6308
|
+
return 'Interpolate(from=' + this.w2e_1 + ', to=' + this.x2e_1 + ', coef=' + this.y2e_1 + ')';
|
|
6308
6309
|
};
|
|
6309
6310
|
protoOf(Interpolate).hashCode = function () {
|
|
6310
|
-
var result = this.
|
|
6311
|
-
result = imul(result, 31) + this.
|
|
6312
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
6311
|
+
var result = this.w2e_1;
|
|
6312
|
+
result = imul(result, 31) + this.x2e_1 | 0;
|
|
6313
|
+
result = imul(result, 31) + getNumberHashCode(this.y2e_1) | 0;
|
|
6313
6314
|
return result;
|
|
6314
6315
|
};
|
|
6315
6316
|
protoOf(Interpolate).equals = function (other) {
|
|
@@ -6317,28 +6318,28 @@
|
|
|
6317
6318
|
return true;
|
|
6318
6319
|
if (!(other instanceof Interpolate))
|
|
6319
6320
|
return false;
|
|
6320
|
-
if (!(this.
|
|
6321
|
+
if (!(this.w2e_1 === other.w2e_1))
|
|
6321
6322
|
return false;
|
|
6322
|
-
if (!(this.
|
|
6323
|
+
if (!(this.x2e_1 === other.x2e_1))
|
|
6323
6324
|
return false;
|
|
6324
|
-
if (!equals(this.
|
|
6325
|
+
if (!equals(this.y2e_1, other.y2e_1))
|
|
6325
6326
|
return false;
|
|
6326
6327
|
return true;
|
|
6327
6328
|
};
|
|
6328
6329
|
function buildPlan($this, source, minDistanceM, maxDistanceM) {
|
|
6329
|
-
var n = source.
|
|
6330
|
+
var n = source.l23_1;
|
|
6330
6331
|
var plan = ArrayList_init_$Create$_0(n);
|
|
6331
6332
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
6332
6333
|
var element = new Copy(0);
|
|
6333
6334
|
plan.k(element);
|
|
6334
|
-
var lastAddedDistance = source.
|
|
6335
|
+
var lastAddedDistance = source.d2b(0);
|
|
6335
6336
|
var lastAddedIndex = 0;
|
|
6336
6337
|
var inductionVariable = 1;
|
|
6337
6338
|
if (inductionVariable < n)
|
|
6338
6339
|
$l$loop: do {
|
|
6339
6340
|
var i = inductionVariable;
|
|
6340
6341
|
inductionVariable = inductionVariable + 1 | 0;
|
|
6341
|
-
var curDist = source.
|
|
6342
|
+
var curDist = source.d2b(i);
|
|
6342
6343
|
var gap = curDist - lastAddedDistance;
|
|
6343
6344
|
if (gap < minDistanceM)
|
|
6344
6345
|
continue $l$loop;
|
|
@@ -6361,11 +6362,11 @@
|
|
|
6361
6362
|
var j = inductionVariable_0;
|
|
6362
6363
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
6363
6364
|
var targetDistance = lastAddedDistance + j * spacing;
|
|
6364
|
-
while (index1 < (i - 1 | 0) && source.
|
|
6365
|
+
while (index1 < (i - 1 | 0) && source.d2b(index1 + 1 | 0) < targetDistance) {
|
|
6365
6366
|
index1 = index1 + 1 | 0;
|
|
6366
6367
|
}
|
|
6367
|
-
var dist1 = source.
|
|
6368
|
-
var dist2 = source.
|
|
6368
|
+
var dist1 = source.d2b(index1);
|
|
6369
|
+
var dist2 = source.d2b(index1 + 1 | 0);
|
|
6369
6370
|
var coef = (targetDistance - dist1) / (dist2 - dist1);
|
|
6370
6371
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
6371
6372
|
var element_1 = new Interpolate(index1, index1 + 1 | 0, coef);
|
|
@@ -6391,42 +6392,42 @@
|
|
|
6391
6392
|
index = index + 1 | 0;
|
|
6392
6393
|
var op = iterator.n();
|
|
6393
6394
|
if (op instanceof Copy) {
|
|
6394
|
-
copyFields($this, source, op.
|
|
6395
|
+
copyFields($this, source, op.v2e_1, out, dstIdx);
|
|
6395
6396
|
} else {
|
|
6396
6397
|
if (op instanceof Interpolate) {
|
|
6397
|
-
FieldInterpolation_getInstance().
|
|
6398
|
+
FieldInterpolation_getInstance().h2c(source, op.w2e_1, op.x2e_1, op.y2e_1, out, dstIdx);
|
|
6398
6399
|
} else {
|
|
6399
6400
|
noWhenBranchMatchedException();
|
|
6400
6401
|
}
|
|
6401
6402
|
}
|
|
6402
6403
|
}
|
|
6403
|
-
out.
|
|
6404
|
+
out.e25();
|
|
6404
6405
|
return out;
|
|
6405
6406
|
}
|
|
6406
6407
|
function copyFields($this, src, srcIdx, dst, dstIdx) {
|
|
6407
6408
|
var _iterator__ex2g4s = get_entries_2().l();
|
|
6408
6409
|
while (_iterator__ex2g4s.m()) {
|
|
6409
6410
|
var field = _iterator__ex2g4s.n();
|
|
6410
|
-
dst.
|
|
6411
|
+
dst.o2b(dstIdx, field, src.n26(srcIdx, field));
|
|
6411
6412
|
}
|
|
6412
6413
|
}
|
|
6413
6414
|
function PointPerDistance() {
|
|
6414
6415
|
}
|
|
6415
|
-
protoOf(PointPerDistance).
|
|
6416
|
-
return this.
|
|
6416
|
+
protoOf(PointPerDistance).z2e = function (source, minDistanceM, maxDistanceM) {
|
|
6417
|
+
return this.a2f(source, minDistanceM, maxDistanceM);
|
|
6417
6418
|
};
|
|
6418
|
-
protoOf(PointPerDistance).
|
|
6419
|
+
protoOf(PointPerDistance).a2f = function (source, minDistanceM, maxDistanceM) {
|
|
6419
6420
|
// Inline function 'kotlin.require' call
|
|
6420
6421
|
if (!(maxDistanceM > 0.0)) {
|
|
6421
6422
|
var message = 'maxDistanceM must be > 0, got ' + maxDistanceM;
|
|
6422
6423
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
6423
6424
|
}
|
|
6424
|
-
if (source.
|
|
6425
|
+
if (source.l23_1 === 0)
|
|
6425
6426
|
return new Path(0);
|
|
6426
|
-
if (source.
|
|
6427
|
+
if (source.l23_1 === 1) {
|
|
6427
6428
|
var out = new Path(1);
|
|
6428
6429
|
copyFields(this, source, 0, out, 0);
|
|
6429
|
-
out.
|
|
6430
|
+
out.e25();
|
|
6430
6431
|
return out;
|
|
6431
6432
|
}
|
|
6432
6433
|
var plan = buildPlan(this, source, minDistanceM, maxDistanceM);
|
|
@@ -6437,35 +6438,35 @@
|
|
|
6437
6438
|
return PointPerDistance_instance;
|
|
6438
6439
|
}
|
|
6439
6440
|
function Copy_0(sourceIndex) {
|
|
6440
|
-
this.
|
|
6441
|
+
this.b2f_1 = sourceIndex;
|
|
6441
6442
|
}
|
|
6442
6443
|
protoOf(Copy_0).toString = function () {
|
|
6443
|
-
return 'Copy(sourceIndex=' + this.
|
|
6444
|
+
return 'Copy(sourceIndex=' + this.b2f_1 + ')';
|
|
6444
6445
|
};
|
|
6445
6446
|
protoOf(Copy_0).hashCode = function () {
|
|
6446
|
-
return this.
|
|
6447
|
+
return this.b2f_1;
|
|
6447
6448
|
};
|
|
6448
6449
|
protoOf(Copy_0).equals = function (other) {
|
|
6449
6450
|
if (this === other)
|
|
6450
6451
|
return true;
|
|
6451
6452
|
if (!(other instanceof Copy_0))
|
|
6452
6453
|
return false;
|
|
6453
|
-
if (!(this.
|
|
6454
|
+
if (!(this.b2f_1 === other.b2f_1))
|
|
6454
6455
|
return false;
|
|
6455
6456
|
return true;
|
|
6456
6457
|
};
|
|
6457
6458
|
function Interpolate_0(from, to, coef) {
|
|
6458
|
-
this.
|
|
6459
|
-
this.
|
|
6460
|
-
this.
|
|
6459
|
+
this.c2f_1 = from;
|
|
6460
|
+
this.d2f_1 = to;
|
|
6461
|
+
this.e2f_1 = coef;
|
|
6461
6462
|
}
|
|
6462
6463
|
protoOf(Interpolate_0).toString = function () {
|
|
6463
|
-
return 'Interpolate(from=' + this.
|
|
6464
|
+
return 'Interpolate(from=' + this.c2f_1 + ', to=' + this.d2f_1 + ', coef=' + this.e2f_1 + ')';
|
|
6464
6465
|
};
|
|
6465
6466
|
protoOf(Interpolate_0).hashCode = function () {
|
|
6466
|
-
var result = this.
|
|
6467
|
-
result = imul(result, 31) + this.
|
|
6468
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
6467
|
+
var result = this.c2f_1;
|
|
6468
|
+
result = imul(result, 31) + this.d2f_1 | 0;
|
|
6469
|
+
result = imul(result, 31) + getNumberHashCode(this.e2f_1) | 0;
|
|
6469
6470
|
return result;
|
|
6470
6471
|
};
|
|
6471
6472
|
protoOf(Interpolate_0).equals = function (other) {
|
|
@@ -6473,23 +6474,23 @@
|
|
|
6473
6474
|
return true;
|
|
6474
6475
|
if (!(other instanceof Interpolate_0))
|
|
6475
6476
|
return false;
|
|
6476
|
-
if (!(this.
|
|
6477
|
+
if (!(this.c2f_1 === other.c2f_1))
|
|
6477
6478
|
return false;
|
|
6478
|
-
if (!(this.
|
|
6479
|
+
if (!(this.d2f_1 === other.d2f_1))
|
|
6479
6480
|
return false;
|
|
6480
|
-
if (!equals(this.
|
|
6481
|
+
if (!equals(this.e2f_1, other.e2f_1))
|
|
6481
6482
|
return false;
|
|
6482
6483
|
return true;
|
|
6483
6484
|
};
|
|
6484
6485
|
function buildPlan_0($this, source) {
|
|
6485
6486
|
var plan = LinkedHashMap_init_$Create$_0();
|
|
6486
|
-
var n = source.
|
|
6487
|
+
var n = source.l23_1;
|
|
6487
6488
|
var inductionVariable = 0;
|
|
6488
6489
|
if (inductionVariable < n)
|
|
6489
6490
|
$l$loop_0: do {
|
|
6490
6491
|
var i = inductionVariable;
|
|
6491
6492
|
inductionVariable = inductionVariable + 1 | 0;
|
|
6492
|
-
var time1 = source.
|
|
6493
|
+
var time1 = source.n23(i);
|
|
6493
6494
|
// Inline function 'kotlin.math.floor' call
|
|
6494
6495
|
var x = time1 / 1000.0;
|
|
6495
6496
|
var tmp$ret$0 = Math.floor(x);
|
|
@@ -6510,7 +6511,7 @@
|
|
|
6510
6511
|
}
|
|
6511
6512
|
continue $l$loop_0;
|
|
6512
6513
|
}
|
|
6513
|
-
var time2 = source.
|
|
6514
|
+
var time2 = source.n23(i + 1 | 0);
|
|
6514
6515
|
// Inline function 'kotlin.math.floor' call
|
|
6515
6516
|
var x_0 = time2 / 1000.0;
|
|
6516
6517
|
var tmp$ret$4 = Math.floor(x_0);
|
|
@@ -6555,30 +6556,30 @@
|
|
|
6555
6556
|
}
|
|
6556
6557
|
var data = tmp;
|
|
6557
6558
|
if (data instanceof Copy_0) {
|
|
6558
|
-
copyFields_0($this, source, data.
|
|
6559
|
+
copyFields_0($this, source, data.b2f_1, out, idx);
|
|
6559
6560
|
} else {
|
|
6560
6561
|
if (data instanceof Interpolate_0) {
|
|
6561
|
-
FieldInterpolation_getInstance().
|
|
6562
|
+
FieldInterpolation_getInstance().h2c(source, data.c2f_1, data.d2f_1, data.e2f_1, out, idx);
|
|
6562
6563
|
} else {
|
|
6563
6564
|
noWhenBranchMatchedException();
|
|
6564
6565
|
}
|
|
6565
6566
|
}
|
|
6566
|
-
out.
|
|
6567
|
+
out.l24(idx, toNumber(multiply(epoch, new Long(1000, 0))));
|
|
6567
6568
|
}
|
|
6568
|
-
out.
|
|
6569
|
+
out.e25();
|
|
6569
6570
|
return out;
|
|
6570
6571
|
}
|
|
6571
6572
|
function copyFields_0($this, src, srcIdx, dst, dstIdx) {
|
|
6572
6573
|
var _iterator__ex2g4s = get_entries_2().l();
|
|
6573
6574
|
while (_iterator__ex2g4s.m()) {
|
|
6574
6575
|
var field = _iterator__ex2g4s.n();
|
|
6575
|
-
dst.
|
|
6576
|
+
dst.o2b(dstIdx, field, src.n26(srcIdx, field));
|
|
6576
6577
|
}
|
|
6577
6578
|
}
|
|
6578
6579
|
function PointPerSecond() {
|
|
6579
6580
|
}
|
|
6580
|
-
protoOf(PointPerSecond).
|
|
6581
|
-
if (source.
|
|
6581
|
+
protoOf(PointPerSecond).f2f = function (source) {
|
|
6582
|
+
if (source.l23_1 === 0)
|
|
6582
6583
|
return new Path(0);
|
|
6583
6584
|
var plan = buildPlan_0(this, source);
|
|
6584
6585
|
return materialize_0(this, source, plan);
|
|
@@ -6588,33 +6589,33 @@
|
|
|
6588
6589
|
return PointPerSecond_instance;
|
|
6589
6590
|
}
|
|
6590
6591
|
function TunnelSpan(first, last, chordGrade, heightM, riseGrade, fallGrade, straightness, stepM) {
|
|
6591
|
-
this.
|
|
6592
|
-
this.
|
|
6593
|
-
this.
|
|
6594
|
-
this.
|
|
6595
|
-
this.
|
|
6596
|
-
this.
|
|
6597
|
-
this.
|
|
6598
|
-
this.
|
|
6592
|
+
this.g2f_1 = first;
|
|
6593
|
+
this.h2f_1 = last;
|
|
6594
|
+
this.i2f_1 = chordGrade;
|
|
6595
|
+
this.j2f_1 = heightM;
|
|
6596
|
+
this.k2f_1 = riseGrade;
|
|
6597
|
+
this.l2f_1 = fallGrade;
|
|
6598
|
+
this.m2f_1 = straightness;
|
|
6599
|
+
this.n2f_1 = stepM;
|
|
6599
6600
|
}
|
|
6600
|
-
protoOf(TunnelSpan).
|
|
6601
|
-
return this.
|
|
6601
|
+
protoOf(TunnelSpan).o2f = function () {
|
|
6602
|
+
return this.g2f_1 * this.n2f_1;
|
|
6602
6603
|
};
|
|
6603
|
-
protoOf(TunnelSpan).
|
|
6604
|
-
return this.
|
|
6604
|
+
protoOf(TunnelSpan).p2f = function () {
|
|
6605
|
+
return this.h2f_1 * this.n2f_1;
|
|
6605
6606
|
};
|
|
6606
6607
|
protoOf(TunnelSpan).toString = function () {
|
|
6607
|
-
return 'TunnelSpan(first=' + this.
|
|
6608
|
+
return 'TunnelSpan(first=' + this.g2f_1 + ', last=' + this.h2f_1 + ', chordGrade=' + this.i2f_1 + ', heightM=' + this.j2f_1 + ', riseGrade=' + this.k2f_1 + ', fallGrade=' + this.l2f_1 + ', straightness=' + this.m2f_1 + ', stepM=' + this.n2f_1 + ')';
|
|
6608
6609
|
};
|
|
6609
6610
|
protoOf(TunnelSpan).hashCode = function () {
|
|
6610
|
-
var result = this.
|
|
6611
|
-
result = imul(result, 31) + this.
|
|
6612
|
-
result = imul(result, 31) + getNumberHashCode(this.g2f_1) | 0;
|
|
6613
|
-
result = imul(result, 31) + getNumberHashCode(this.h2f_1) | 0;
|
|
6611
|
+
var result = this.g2f_1;
|
|
6612
|
+
result = imul(result, 31) + this.h2f_1 | 0;
|
|
6614
6613
|
result = imul(result, 31) + getNumberHashCode(this.i2f_1) | 0;
|
|
6615
6614
|
result = imul(result, 31) + getNumberHashCode(this.j2f_1) | 0;
|
|
6616
6615
|
result = imul(result, 31) + getNumberHashCode(this.k2f_1) | 0;
|
|
6617
6616
|
result = imul(result, 31) + getNumberHashCode(this.l2f_1) | 0;
|
|
6617
|
+
result = imul(result, 31) + getNumberHashCode(this.m2f_1) | 0;
|
|
6618
|
+
result = imul(result, 31) + getNumberHashCode(this.n2f_1) | 0;
|
|
6618
6619
|
return result;
|
|
6619
6620
|
};
|
|
6620
6621
|
protoOf(TunnelSpan).equals = function (other) {
|
|
@@ -6622,13 +6623,9 @@
|
|
|
6622
6623
|
return true;
|
|
6623
6624
|
if (!(other instanceof TunnelSpan))
|
|
6624
6625
|
return false;
|
|
6625
|
-
if (!(this.
|
|
6626
|
+
if (!(this.g2f_1 === other.g2f_1))
|
|
6626
6627
|
return false;
|
|
6627
|
-
if (!(this.
|
|
6628
|
-
return false;
|
|
6629
|
-
if (!equals(this.g2f_1, other.g2f_1))
|
|
6630
|
-
return false;
|
|
6631
|
-
if (!equals(this.h2f_1, other.h2f_1))
|
|
6628
|
+
if (!(this.h2f_1 === other.h2f_1))
|
|
6632
6629
|
return false;
|
|
6633
6630
|
if (!equals(this.i2f_1, other.i2f_1))
|
|
6634
6631
|
return false;
|
|
@@ -6638,30 +6635,34 @@
|
|
|
6638
6635
|
return false;
|
|
6639
6636
|
if (!equals(this.l2f_1, other.l2f_1))
|
|
6640
6637
|
return false;
|
|
6638
|
+
if (!equals(this.m2f_1, other.m2f_1))
|
|
6639
|
+
return false;
|
|
6640
|
+
if (!equals(this.n2f_1, other.n2f_1))
|
|
6641
|
+
return false;
|
|
6641
6642
|
return true;
|
|
6642
6643
|
};
|
|
6643
6644
|
function Stations(options) {
|
|
6644
|
-
this.o2f_1 = options.h2g();
|
|
6645
|
-
this.p2f_1 = options.i2g();
|
|
6646
6645
|
this.q2f_1 = options.j2g();
|
|
6647
6646
|
this.r2f_1 = options.k2g();
|
|
6647
|
+
this.s2f_1 = options.l2g();
|
|
6648
|
+
this.t2f_1 = options.m2g();
|
|
6648
6649
|
}
|
|
6649
6650
|
function grade($this, z, i, j, stepM) {
|
|
6650
6651
|
return i < 0 || j >= z.length ? NaN : (z[j] - z[i]) / ((j - i | 0) * stepM);
|
|
6651
6652
|
}
|
|
6652
6653
|
function judge($this, profile, a, b, entries, exits, options, stations) {
|
|
6653
|
-
var w = stations.
|
|
6654
|
-
var z = profile.
|
|
6654
|
+
var w = stations.r2f_1;
|
|
6655
|
+
var z = profile.n2g_1;
|
|
6655
6656
|
var n = z.length;
|
|
6656
|
-
var step = options.
|
|
6657
|
+
var step = options.u2f_1;
|
|
6657
6658
|
var length = (b - a | 0) * step;
|
|
6658
|
-
if (length < options.
|
|
6659
|
+
if (length < options.g2g_1 - 1.0E-9)
|
|
6659
6660
|
return null;
|
|
6660
|
-
var chord = Distance_instance.
|
|
6661
|
+
var chord = Distance_instance.z10(new LatLon(profile.o2g_1[a], profile.p2g_1[a]), new LatLon(profile.o2g_1[b], profile.p2g_1[b]));
|
|
6661
6662
|
var straightness = chord / length;
|
|
6662
|
-
if (!(straightness >= options.
|
|
6663
|
+
if (!(straightness >= options.i2g_1))
|
|
6663
6664
|
return null;
|
|
6664
|
-
var w0 = stations.
|
|
6665
|
+
var w0 = stations.r2f_1;
|
|
6665
6666
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
6666
6667
|
var b_0 = a - w0 | 0;
|
|
6667
6668
|
var inductionVariable = Math.max(0, b_0);
|
|
@@ -6692,7 +6693,7 @@
|
|
|
6692
6693
|
while (!(k_0 === last));
|
|
6693
6694
|
var c = (z[b] - z[a]) / length;
|
|
6694
6695
|
// Inline function 'kotlin.math.abs' call
|
|
6695
|
-
if (!(Math.abs(c) <= options.
|
|
6696
|
+
if (!(Math.abs(c) <= options.b2g_1))
|
|
6696
6697
|
return null;
|
|
6697
6698
|
var height = -Infinity;
|
|
6698
6699
|
var inductionVariable_1 = a;
|
|
@@ -6701,15 +6702,15 @@
|
|
|
6701
6702
|
var k_1 = inductionVariable_1;
|
|
6702
6703
|
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
6703
6704
|
var h = z[k_1] - (z[a] + c * (k_1 - a | 0) * step);
|
|
6704
|
-
if (isNaN_0(h) || h < -options.
|
|
6705
|
+
if (isNaN_0(h) || h < -options.e2g_1)
|
|
6705
6706
|
return null;
|
|
6706
6707
|
if (h > height)
|
|
6707
6708
|
height = h;
|
|
6708
6709
|
}
|
|
6709
6710
|
while (!(k_1 === b));
|
|
6710
|
-
if (height < options.
|
|
6711
|
+
if (height < options.c2g_1)
|
|
6711
6712
|
return null;
|
|
6712
|
-
var f = stations.
|
|
6713
|
+
var f = stations.t2f_1;
|
|
6713
6714
|
var nearEntry = -Infinity;
|
|
6714
6715
|
var inductionVariable_2 = a;
|
|
6715
6716
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
@@ -6739,9 +6740,9 @@
|
|
|
6739
6740
|
nearExit = Math.max(tmp0_1, b_5);
|
|
6740
6741
|
}
|
|
6741
6742
|
while (!(k_3 === b));
|
|
6742
|
-
if (nearEntry < options.
|
|
6743
|
+
if (nearEntry < options.c2g_1 || nearExit < options.c2g_1)
|
|
6743
6744
|
return null;
|
|
6744
|
-
var s = stations.
|
|
6745
|
+
var s = stations.s2f_1;
|
|
6745
6746
|
var rise = -Infinity;
|
|
6746
6747
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
6747
6748
|
var b_6 = a - (w / 2 | 0) | 0;
|
|
@@ -6773,7 +6774,7 @@
|
|
|
6773
6774
|
fall = g_0;
|
|
6774
6775
|
}
|
|
6775
6776
|
while (!(k_5 === last_2));
|
|
6776
|
-
if (rise < options.
|
|
6777
|
+
if (rise < options.z2f_1 || fall > -options.z2f_1)
|
|
6777
6778
|
return null;
|
|
6778
6779
|
// Inline function 'kotlin.collections.filter' call
|
|
6779
6780
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -6810,7 +6811,7 @@
|
|
|
6810
6811
|
do {
|
|
6811
6812
|
var k_6 = inductionVariable_6;
|
|
6812
6813
|
inductionVariable_6 = inductionVariable_6 + 1 | 0;
|
|
6813
|
-
if (z[k_6] - (z[a] + c * (k_6 - a | 0) * step) < options.
|
|
6814
|
+
if (z[k_6] - (z[a] + c * (k_6 - a | 0) * step) < options.f2g_1)
|
|
6814
6815
|
return null;
|
|
6815
6816
|
}
|
|
6816
6817
|
while (!(k_6 === y));
|
|
@@ -6819,15 +6820,15 @@
|
|
|
6819
6820
|
return new TunnelSpan(a, b, c, height, rise, fall, straightness, step);
|
|
6820
6821
|
}
|
|
6821
6822
|
function TunnelDetector() {
|
|
6822
|
-
this.
|
|
6823
|
+
this.q2g_1 = 1.0E-6;
|
|
6823
6824
|
}
|
|
6824
|
-
protoOf(TunnelDetector).
|
|
6825
|
-
var z = profile.
|
|
6825
|
+
protoOf(TunnelDetector).r2g = function (profile, options) {
|
|
6826
|
+
var z = profile.n2g_1;
|
|
6826
6827
|
if (z.length < 2)
|
|
6827
6828
|
return emptyList();
|
|
6828
6829
|
var stations = new Stations(options);
|
|
6829
|
-
var entries = this.
|
|
6830
|
-
var exits = this.
|
|
6830
|
+
var entries = this.s2g(z, options, true, stations);
|
|
6831
|
+
var exits = this.s2g(z, options, false, stations);
|
|
6831
6832
|
var out = ArrayList_init_$Create$();
|
|
6832
6833
|
var next = -1;
|
|
6833
6834
|
var _iterator__ex2g4s = entries.l();
|
|
@@ -6841,7 +6842,7 @@
|
|
|
6841
6842
|
var b = _iterator__ex2g4s_0.n();
|
|
6842
6843
|
if (b <= a)
|
|
6843
6844
|
continue $l$loop_2;
|
|
6844
|
-
if ((b - a | 0) * options.
|
|
6845
|
+
if ((b - a | 0) * options.u2f_1 > options.h2g_1 + 1.0E-9)
|
|
6845
6846
|
break $l$loop_2;
|
|
6846
6847
|
var tmp0_elvis_lhs = judge(this, profile, a, b, entries, exits, options, stations);
|
|
6847
6848
|
var tmp;
|
|
@@ -6851,23 +6852,23 @@
|
|
|
6851
6852
|
tmp = tmp0_elvis_lhs;
|
|
6852
6853
|
}
|
|
6853
6854
|
var span = tmp;
|
|
6854
|
-
if (best == null || span.
|
|
6855
|
+
if (best == null || span.j2f_1 > best.j2f_1 + 1.0E-9)
|
|
6855
6856
|
best = span;
|
|
6856
6857
|
}
|
|
6857
6858
|
if (!(best == null)) {
|
|
6858
6859
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
6859
6860
|
var element = best;
|
|
6860
6861
|
out.k(element);
|
|
6861
|
-
next = best.
|
|
6862
|
+
next = best.h2f_1;
|
|
6862
6863
|
}
|
|
6863
6864
|
}
|
|
6864
6865
|
return out;
|
|
6865
6866
|
};
|
|
6866
|
-
protoOf(TunnelDetector).
|
|
6867
|
+
protoOf(TunnelDetector).s2g = function (z, options, entry, stations) {
|
|
6867
6868
|
var n = z.length;
|
|
6868
|
-
var m = stations.
|
|
6869
|
-
var w = stations.
|
|
6870
|
-
var step = options.
|
|
6869
|
+
var m = stations.q2f_1;
|
|
6870
|
+
var w = stations.r2f_1;
|
|
6871
|
+
var step = options.u2f_1;
|
|
6871
6872
|
var tmp = 0;
|
|
6872
6873
|
var tmp_0 = new Float64Array(n);
|
|
6873
6874
|
while (tmp < n) {
|
|
@@ -6890,14 +6891,14 @@
|
|
|
6890
6891
|
var tmp_2;
|
|
6891
6892
|
var tmp_3;
|
|
6892
6893
|
// Inline function 'kotlin.math.abs' call
|
|
6893
|
-
if (Math.abs(back) <= options.
|
|
6894
|
+
if (Math.abs(back) <= options.x2f_1) {
|
|
6894
6895
|
// Inline function 'kotlin.math.abs' call
|
|
6895
|
-
tmp_3 = Math.abs(outer) <= options.
|
|
6896
|
+
tmp_3 = Math.abs(outer) <= options.x2f_1;
|
|
6896
6897
|
} else {
|
|
6897
6898
|
tmp_3 = false;
|
|
6898
6899
|
}
|
|
6899
6900
|
if (tmp_3) {
|
|
6900
|
-
tmp_2 = ahead >= options.
|
|
6901
|
+
tmp_2 = ahead >= options.y2f_1;
|
|
6901
6902
|
} else {
|
|
6902
6903
|
tmp_2 = false;
|
|
6903
6904
|
}
|
|
@@ -6907,14 +6908,14 @@
|
|
|
6907
6908
|
var tmp_4;
|
|
6908
6909
|
var tmp_5;
|
|
6909
6910
|
// Inline function 'kotlin.math.abs' call
|
|
6910
|
-
if (Math.abs(ahead) <= options.
|
|
6911
|
+
if (Math.abs(ahead) <= options.x2f_1) {
|
|
6911
6912
|
// Inline function 'kotlin.math.abs' call
|
|
6912
|
-
tmp_5 = Math.abs(outer_0) <= options.
|
|
6913
|
+
tmp_5 = Math.abs(outer_0) <= options.x2f_1;
|
|
6913
6914
|
} else {
|
|
6914
6915
|
tmp_5 = false;
|
|
6915
6916
|
}
|
|
6916
6917
|
if (tmp_5) {
|
|
6917
|
-
tmp_4 = back <= -options.
|
|
6918
|
+
tmp_4 = back <= -options.y2f_1;
|
|
6918
6919
|
} else {
|
|
6919
6920
|
tmp_4 = false;
|
|
6920
6921
|
}
|
|
@@ -6990,30 +6991,30 @@
|
|
|
6990
6991
|
return TunnelDetector_instance;
|
|
6991
6992
|
}
|
|
6992
6993
|
function TunnelProfile(terrainM, latDeg, lonDeg) {
|
|
6993
|
-
this.
|
|
6994
|
-
this.
|
|
6995
|
-
this.
|
|
6994
|
+
this.n2g_1 = terrainM;
|
|
6995
|
+
this.o2g_1 = latDeg;
|
|
6996
|
+
this.p2g_1 = lonDeg;
|
|
6996
6997
|
// Inline function 'kotlin.require' call
|
|
6997
|
-
if (!(this.
|
|
6998
|
-
var message = 'terrain, latitude and longitude must have one sample per station: ' + this.
|
|
6998
|
+
if (!(this.n2g_1.length === this.o2g_1.length && this.o2g_1.length === this.p2g_1.length)) {
|
|
6999
|
+
var message = 'terrain, latitude and longitude must have one sample per station: ' + this.n2g_1.length + ', ' + this.o2g_1.length + ', ' + this.p2g_1.length;
|
|
6999
7000
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
7000
7001
|
}
|
|
7001
7002
|
}
|
|
7002
7003
|
function stations_0($this, metres, name) {
|
|
7003
|
-
var r = metres / $this.
|
|
7004
|
+
var r = metres / $this.u2f_1;
|
|
7004
7005
|
var k = roundToInt(r);
|
|
7005
7006
|
// Inline function 'kotlin.math.abs' call
|
|
7006
7007
|
var x = r - k;
|
|
7007
7008
|
// Inline function 'kotlin.require' call
|
|
7008
7009
|
if (!(Math.abs(x) < 1.0E-9)) {
|
|
7009
|
-
var message = name + ' = ' + metres + ' m is not a whole number of ' + $this.
|
|
7010
|
+
var message = name + ' = ' + metres + ' m is not a whole number of ' + $this.u2f_1 + ' m stations';
|
|
7010
7011
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
7011
7012
|
}
|
|
7012
7013
|
return k;
|
|
7013
7014
|
}
|
|
7014
7015
|
function Companion_9() {
|
|
7015
7016
|
Companion_instance_10 = this;
|
|
7016
|
-
this.
|
|
7017
|
+
this.t2g_1 = new TunnelDetectorOptions();
|
|
7017
7018
|
}
|
|
7018
7019
|
var Companion_instance_10;
|
|
7019
7020
|
function Companion_getInstance_10() {
|
|
@@ -7038,84 +7039,82 @@
|
|
|
7038
7039
|
minLengthM = minLengthM === VOID ? 50.0 : minLengthM;
|
|
7039
7040
|
maxLengthM = maxLengthM === VOID ? 3000.0 : maxLengthM;
|
|
7040
7041
|
minStraightness = minStraightness === VOID ? 0.8 : minStraightness;
|
|
7041
|
-
this.
|
|
7042
|
-
this.
|
|
7043
|
-
this.
|
|
7044
|
-
this.
|
|
7045
|
-
this.
|
|
7046
|
-
this.
|
|
7047
|
-
this.
|
|
7048
|
-
this.
|
|
7049
|
-
this.
|
|
7050
|
-
this.
|
|
7051
|
-
this.
|
|
7052
|
-
this.
|
|
7053
|
-
this.
|
|
7054
|
-
this.
|
|
7055
|
-
this.
|
|
7042
|
+
this.u2f_1 = stepM;
|
|
7043
|
+
this.v2f_1 = footWindowM;
|
|
7044
|
+
this.w2f_1 = steepWindowM;
|
|
7045
|
+
this.x2f_1 = maxRoadGrade;
|
|
7046
|
+
this.y2f_1 = minPortalGrade;
|
|
7047
|
+
this.z2f_1 = minSideGrade;
|
|
7048
|
+
this.a2g_1 = sideSearchM;
|
|
7049
|
+
this.b2g_1 = maxChordGrade;
|
|
7050
|
+
this.c2g_1 = minHeightM;
|
|
7051
|
+
this.d2g_1 = faceReachM;
|
|
7052
|
+
this.e2g_1 = maxBelowChordM;
|
|
7053
|
+
this.f2g_1 = minValleyHeightM;
|
|
7054
|
+
this.g2g_1 = minLengthM;
|
|
7055
|
+
this.h2g_1 = maxLengthM;
|
|
7056
|
+
this.i2g_1 = minStraightness;
|
|
7056
7057
|
// Inline function 'kotlin.require' call
|
|
7057
|
-
if (!(this.
|
|
7058
|
-
var message = 'stepM must be positive, got ' + this.
|
|
7058
|
+
if (!(this.u2f_1 > 0.0)) {
|
|
7059
|
+
var message = 'stepM must be positive, got ' + this.u2f_1;
|
|
7059
7060
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
7060
7061
|
}
|
|
7061
7062
|
// Inline function 'kotlin.require' call
|
|
7062
|
-
if (!(this.
|
|
7063
|
+
if (!(this.j2g() >= 1 && this.k2g() >= 1)) {
|
|
7063
7064
|
var message_0 = 'grade windows must cover a station';
|
|
7064
7065
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_0));
|
|
7065
7066
|
}
|
|
7066
7067
|
// Inline function 'kotlin.require' call
|
|
7067
|
-
if (!(this.
|
|
7068
|
+
if (!(this.l2g() >= 0)) {
|
|
7068
7069
|
var message_1 = 'negative sideSearchM';
|
|
7069
7070
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_1));
|
|
7070
7071
|
}
|
|
7071
7072
|
// Inline function 'kotlin.require' call
|
|
7072
|
-
if (!(this.
|
|
7073
|
+
if (!(this.m2g() >= 1)) {
|
|
7073
7074
|
var message_2 = 'faceReachM must cover a station';
|
|
7074
7075
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_2));
|
|
7075
7076
|
}
|
|
7076
7077
|
// Inline function 'kotlin.require' call
|
|
7077
|
-
if (!(this.
|
|
7078
|
+
if (!(this.x2f_1 >= 0.0 && this.y2f_1 > 0.0 && this.z2f_1 > 0.0)) {
|
|
7078
7079
|
var message_3 = 'grades must be positive';
|
|
7079
7080
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_3));
|
|
7080
7081
|
}
|
|
7081
7082
|
// Inline function 'kotlin.require' call
|
|
7082
|
-
if (!(this.
|
|
7083
|
+
if (!(this.b2g_1 >= 0.0 && this.c2g_1 > 0.0 && this.e2g_1 >= 0.0)) {
|
|
7083
7084
|
var message_4 = 'negative threshold';
|
|
7084
7085
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_4));
|
|
7085
7086
|
}
|
|
7086
|
-
var containsUpper = this.
|
|
7087
|
-
var containsArg = this.
|
|
7087
|
+
var containsUpper = this.h2g_1;
|
|
7088
|
+
var containsArg = this.g2g_1;
|
|
7088
7089
|
// Inline function 'kotlin.require' call
|
|
7089
7090
|
if (!(0.0 <= containsArg ? containsArg <= containsUpper : false)) {
|
|
7090
7091
|
var message_5 = 'minLengthM must be in 0..maxLengthM';
|
|
7091
7092
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_5));
|
|
7092
7093
|
}
|
|
7093
|
-
var containsArg_0 = this.
|
|
7094
|
+
var containsArg_0 = this.i2g_1;
|
|
7094
7095
|
// Inline function 'kotlin.require' call
|
|
7095
7096
|
if (!(0.0 <= containsArg_0 ? containsArg_0 <= 1.0 : false)) {
|
|
7096
|
-
var message_6 = 'minStraightness must be in 0..1, got ' + this.
|
|
7097
|
+
var message_6 = 'minStraightness must be in 0..1, got ' + this.i2g_1;
|
|
7097
7098
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_6));
|
|
7098
7099
|
}
|
|
7099
7100
|
}
|
|
7100
|
-
protoOf(TunnelDetectorOptions).h2g = function () {
|
|
7101
|
-
return stations_0(this, this.t2f_1, 'footWindowM');
|
|
7102
|
-
};
|
|
7103
|
-
protoOf(TunnelDetectorOptions).i2g = function () {
|
|
7104
|
-
return stations_0(this, this.u2f_1, 'steepWindowM');
|
|
7105
|
-
};
|
|
7106
7101
|
protoOf(TunnelDetectorOptions).j2g = function () {
|
|
7107
|
-
return stations_0(this, this.
|
|
7102
|
+
return stations_0(this, this.v2f_1, 'footWindowM');
|
|
7108
7103
|
};
|
|
7109
7104
|
protoOf(TunnelDetectorOptions).k2g = function () {
|
|
7110
|
-
return stations_0(this, this.
|
|
7105
|
+
return stations_0(this, this.w2f_1, 'steepWindowM');
|
|
7106
|
+
};
|
|
7107
|
+
protoOf(TunnelDetectorOptions).l2g = function () {
|
|
7108
|
+
return stations_0(this, this.a2g_1, 'sideSearchM');
|
|
7109
|
+
};
|
|
7110
|
+
protoOf(TunnelDetectorOptions).m2g = function () {
|
|
7111
|
+
return stations_0(this, this.d2g_1, 'faceReachM');
|
|
7111
7112
|
};
|
|
7112
7113
|
protoOf(TunnelDetectorOptions).toString = function () {
|
|
7113
|
-
return 'TunnelDetectorOptions(stepM=' + this.
|
|
7114
|
+
return 'TunnelDetectorOptions(stepM=' + this.u2f_1 + ', footWindowM=' + this.v2f_1 + ', steepWindowM=' + this.w2f_1 + ', maxRoadGrade=' + this.x2f_1 + ', minPortalGrade=' + this.y2f_1 + ', minSideGrade=' + this.z2f_1 + ', sideSearchM=' + this.a2g_1 + ', maxChordGrade=' + this.b2g_1 + ', minHeightM=' + this.c2g_1 + ', faceReachM=' + this.d2g_1 + ', maxBelowChordM=' + this.e2g_1 + ', minValleyHeightM=' + this.f2g_1 + ', minLengthM=' + this.g2g_1 + ', maxLengthM=' + this.h2g_1 + ', minStraightness=' + this.i2g_1 + ')';
|
|
7114
7115
|
};
|
|
7115
7116
|
protoOf(TunnelDetectorOptions).hashCode = function () {
|
|
7116
|
-
var result = getNumberHashCode(this.
|
|
7117
|
-
result = imul(result, 31) + getNumberHashCode(this.t2f_1) | 0;
|
|
7118
|
-
result = imul(result, 31) + getNumberHashCode(this.u2f_1) | 0;
|
|
7117
|
+
var result = getNumberHashCode(this.u2f_1);
|
|
7119
7118
|
result = imul(result, 31) + getNumberHashCode(this.v2f_1) | 0;
|
|
7120
7119
|
result = imul(result, 31) + getNumberHashCode(this.w2f_1) | 0;
|
|
7121
7120
|
result = imul(result, 31) + getNumberHashCode(this.x2f_1) | 0;
|
|
@@ -7128,6 +7127,8 @@
|
|
|
7128
7127
|
result = imul(result, 31) + getNumberHashCode(this.e2g_1) | 0;
|
|
7129
7128
|
result = imul(result, 31) + getNumberHashCode(this.f2g_1) | 0;
|
|
7130
7129
|
result = imul(result, 31) + getNumberHashCode(this.g2g_1) | 0;
|
|
7130
|
+
result = imul(result, 31) + getNumberHashCode(this.h2g_1) | 0;
|
|
7131
|
+
result = imul(result, 31) + getNumberHashCode(this.i2g_1) | 0;
|
|
7131
7132
|
return result;
|
|
7132
7133
|
};
|
|
7133
7134
|
protoOf(TunnelDetectorOptions).equals = function (other) {
|
|
@@ -7135,10 +7136,6 @@
|
|
|
7135
7136
|
return true;
|
|
7136
7137
|
if (!(other instanceof TunnelDetectorOptions))
|
|
7137
7138
|
return false;
|
|
7138
|
-
if (!equals(this.s2f_1, other.s2f_1))
|
|
7139
|
-
return false;
|
|
7140
|
-
if (!equals(this.t2f_1, other.t2f_1))
|
|
7141
|
-
return false;
|
|
7142
7139
|
if (!equals(this.u2f_1, other.u2f_1))
|
|
7143
7140
|
return false;
|
|
7144
7141
|
if (!equals(this.v2f_1, other.v2f_1))
|
|
@@ -7165,6 +7162,10 @@
|
|
|
7165
7162
|
return false;
|
|
7166
7163
|
if (!equals(this.g2g_1, other.g2g_1))
|
|
7167
7164
|
return false;
|
|
7165
|
+
if (!equals(this.h2g_1, other.h2g_1))
|
|
7166
|
+
return false;
|
|
7167
|
+
if (!equals(this.i2g_1, other.i2g_1))
|
|
7168
|
+
return false;
|
|
7168
7169
|
return true;
|
|
7169
7170
|
};
|
|
7170
7171
|
//region block: init
|