@glandais/vcyclist-engine 2.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +91 -25
- package/kotlin-kotlin-stdlib.js +248 -202
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +9 -9
- package/kotlinx-coroutines-core.js +58 -58
- package/kotlinx-serialization-kotlinx-serialization-core.js +1 -1
- package/package.json +1 -1
- package/vcyclist-elevation.js +581 -518
- package/vcyclist-elevation.js.map +1 -1
- package/vcyclist-engine.d.ts +8 -3
- package/vcyclist-engine.js +763 -627
- package/vcyclist-engine.js.map +1 -1
- package/vcyclist-fit.js +440 -285
- package/vcyclist-fit.js.map +1 -1
- package/vcyclist-gpx.js +995 -760
- package/vcyclist-gpx.js.map +1 -1
- package/xmlutil-core.js +2449 -2449
package/vcyclist-gpx.js
CHANGED
|
@@ -1,139 +1,141 @@
|
|
|
1
1
|
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './kotlin-kotlin-stdlib.js', './
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './xmlutil-core.js', './vcyclist-elevation.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./xmlutil-core.js'), require('./vcyclist-elevation.js'));
|
|
6
6
|
else {
|
|
7
7
|
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module 'vcyclist-gpx'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'vcyclist-gpx'.");
|
|
9
9
|
}
|
|
10
|
-
if (typeof globalThis['vcyclist-elevation'] === 'undefined') {
|
|
11
|
-
throw new Error("Error loading module 'vcyclist-gpx'. Its dependency 'vcyclist-elevation' was not found. Please, check whether 'vcyclist-elevation' is loaded prior to 'vcyclist-gpx'.");
|
|
12
|
-
}
|
|
13
10
|
if (typeof globalThis['xmlutil-core'] === 'undefined') {
|
|
14
11
|
throw new Error("Error loading module 'vcyclist-gpx'. Its dependency 'xmlutil-core' was not found. Please, check whether 'xmlutil-core' is loaded prior to 'vcyclist-gpx'.");
|
|
15
12
|
}
|
|
16
|
-
|
|
13
|
+
if (typeof globalThis['vcyclist-elevation'] === 'undefined') {
|
|
14
|
+
throw new Error("Error loading module 'vcyclist-gpx'. Its dependency 'vcyclist-elevation' was not found. Please, check whether 'vcyclist-elevation' is loaded prior to 'vcyclist-gpx'.");
|
|
15
|
+
}
|
|
16
|
+
globalThis['vcyclist-gpx'] = factory(typeof globalThis['vcyclist-gpx'] === 'undefined' ? {} : globalThis['vcyclist-gpx'], globalThis['kotlin-kotlin-stdlib'], globalThis['xmlutil-core'], globalThis['vcyclist-elevation']);
|
|
17
17
|
}
|
|
18
|
-
}(function (_, kotlin_kotlin,
|
|
18
|
+
}(function (_, kotlin_kotlin, kotlin_io_github_pdvrieze_xmlutil_core, kotlin_io_github_glandais_elevation) {
|
|
19
19
|
'use strict';
|
|
20
20
|
//region block: imports
|
|
21
21
|
var imul = Math.imul;
|
|
22
|
+
var enumEntries = kotlin_kotlin.$_$.h4;
|
|
23
|
+
var Unit_instance = kotlin_kotlin.$_$.t;
|
|
24
|
+
var Enum = kotlin_kotlin.$_$.z7;
|
|
25
|
+
var protoOf = kotlin_kotlin.$_$.a6;
|
|
26
|
+
var initMetadataForClass = kotlin_kotlin.$_$.l5;
|
|
22
27
|
var VOID = kotlin_kotlin.$_$.a;
|
|
23
|
-
var toString = kotlin_kotlin.$_$.
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var equals = kotlin_kotlin.$_$.d5;
|
|
28
|
-
var initMetadataForClass = kotlin_kotlin.$_$.j5;
|
|
28
|
+
var toString = kotlin_kotlin.$_$.u8;
|
|
29
|
+
var getNumberHashCode = kotlin_kotlin.$_$.h5;
|
|
30
|
+
var getStringHashCode = kotlin_kotlin.$_$.j5;
|
|
31
|
+
var equals = kotlin_kotlin.$_$.f5;
|
|
29
32
|
var emptyList = kotlin_kotlin.$_$.p2;
|
|
30
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
31
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
33
|
+
var toString_0 = kotlin_kotlin.$_$.c6;
|
|
34
|
+
var hashCode = kotlin_kotlin.$_$.k5;
|
|
32
35
|
var listOf = kotlin_kotlin.$_$.z2;
|
|
33
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
36
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.m5;
|
|
34
37
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.x;
|
|
35
38
|
var addAll = kotlin_kotlin.$_$.e2;
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.g5;
|
|
39
|
+
var constructCallableReference = kotlin_kotlin.$_$.d5;
|
|
40
|
+
var lazy = kotlin_kotlin.$_$.q8;
|
|
41
|
+
var KProperty1 = kotlin_kotlin.$_$.r6;
|
|
42
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.i5;
|
|
41
43
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.j2;
|
|
42
44
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.w;
|
|
43
45
|
var checkIndexOverflow = kotlin_kotlin.$_$.i2;
|
|
44
46
|
var getOrNull = kotlin_kotlin.$_$.t2;
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
48
|
-
var
|
|
49
|
-
var
|
|
50
|
-
var
|
|
51
|
-
var
|
|
52
|
-
var
|
|
47
|
+
var isNaN_0 = kotlin_kotlin.$_$.p8;
|
|
48
|
+
var numberToLong = kotlin_kotlin.$_$.s4;
|
|
49
|
+
var Long = kotlin_kotlin.$_$.d8;
|
|
50
|
+
var compare = kotlin_kotlin.$_$.l4;
|
|
51
|
+
var roundToLong = kotlin_kotlin.$_$.e6;
|
|
52
|
+
var add = kotlin_kotlin.$_$.k4;
|
|
53
|
+
var roundToInt = kotlin_kotlin.$_$.d6;
|
|
54
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.r8;
|
|
53
55
|
var get_xmlStreaming = kotlin_io_github_pdvrieze_xmlutil_core.$_$.d;
|
|
54
56
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
55
|
-
var Exception = kotlin_kotlin.$_$.
|
|
56
|
-
var IllegalArgumentException = kotlin_kotlin.$_$.
|
|
57
|
+
var Exception = kotlin_kotlin.$_$.b8;
|
|
58
|
+
var IllegalArgumentException = kotlin_kotlin.$_$.c8;
|
|
57
59
|
var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.m1;
|
|
58
60
|
var EventType_START_ELEMENT_getInstance = kotlin_io_github_pdvrieze_xmlutil_core.$_$.a;
|
|
59
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
60
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
61
|
-
var trim = kotlin_kotlin.$_$.
|
|
62
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
63
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
64
|
-
var toDoubleOrNull = kotlin_kotlin.$_$.
|
|
65
|
-
var numberToInt = kotlin_kotlin.$_$.
|
|
61
|
+
var THROW_CCE = kotlin_kotlin.$_$.i8;
|
|
62
|
+
var isCharSequence = kotlin_kotlin.$_$.s5;
|
|
63
|
+
var trim = kotlin_kotlin.$_$.v7;
|
|
64
|
+
var charSequenceLength = kotlin_kotlin.$_$.b5;
|
|
65
|
+
var isBlank = kotlin_kotlin.$_$.e7;
|
|
66
|
+
var toDoubleOrNull = kotlin_kotlin.$_$.q7;
|
|
67
|
+
var numberToInt = kotlin_kotlin.$_$.y5;
|
|
66
68
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.g1;
|
|
67
69
|
var Companion_getInstance = kotlin_kotlin.$_$.r;
|
|
68
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
70
|
+
var initMetadataForObject = kotlin_kotlin.$_$.r5;
|
|
69
71
|
var firstOrNull = kotlin_kotlin.$_$.r2;
|
|
70
72
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.o1;
|
|
71
|
-
var toNumber = kotlin_kotlin.$_$.
|
|
73
|
+
var toNumber = kotlin_kotlin.$_$.u4;
|
|
74
|
+
var toSet = kotlin_kotlin.$_$.n3;
|
|
72
75
|
var XmlDeclMode_None_getInstance = kotlin_io_github_pdvrieze_xmlutil_core.$_$.b;
|
|
73
76
|
var newGenericWriter = kotlin_io_github_pdvrieze_xmlutil_core.$_$.c;
|
|
74
|
-
var charCodeAt = kotlin_kotlin.$_$.
|
|
77
|
+
var charCodeAt = kotlin_kotlin.$_$.z4;
|
|
75
78
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.b;
|
|
76
|
-
var substring = kotlin_kotlin.$_$.
|
|
77
|
-
var isHighSurrogate = kotlin_kotlin.$_$.
|
|
78
|
-
var isLowSurrogate = kotlin_kotlin.$_$.
|
|
79
|
+
var substring = kotlin_kotlin.$_$.n7;
|
|
80
|
+
var isHighSurrogate = kotlin_kotlin.$_$.g7;
|
|
81
|
+
var isLowSurrogate = kotlin_kotlin.$_$.h7;
|
|
79
82
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.f;
|
|
80
83
|
var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.f1;
|
|
81
|
-
var Pair = kotlin_kotlin.$_$.
|
|
82
|
-
var substring_0 = kotlin_kotlin.$_$.
|
|
83
|
-
var toLong = kotlin_kotlin.$_$.
|
|
84
|
-
var numberRangeToNumber = kotlin_kotlin.$_$.
|
|
85
|
-
var ClosedRange = kotlin_kotlin.$_$.
|
|
86
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
87
|
-
var contains = kotlin_kotlin.$_$.
|
|
88
|
-
var convertToInt = kotlin_kotlin.$_$.
|
|
89
|
-
var NumberFormatException = kotlin_kotlin.$_$.
|
|
90
|
-
var isDigit = kotlin_kotlin.$_$.
|
|
91
|
-
var isWhitespace = kotlin_kotlin.$_$.
|
|
92
|
-
var setOf = kotlin_kotlin.$_$.
|
|
93
|
-
var toDouble = kotlin_kotlin.$_$.
|
|
94
|
-
var round = kotlin_kotlin.$_$.
|
|
95
|
-
var divide = kotlin_kotlin.$_$.
|
|
96
|
-
var equalsLong = kotlin_kotlin.$_$.
|
|
97
|
-
var modulo = kotlin_kotlin.$_$.
|
|
98
|
-
var padStart = kotlin_kotlin.$_$.
|
|
99
|
-
var longArray = kotlin_kotlin.$_$.
|
|
100
|
-
var multiply = kotlin_kotlin.$_$.
|
|
101
|
-
var isInfinite = kotlin_kotlin.$_$.
|
|
102
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
103
|
-
var replace = kotlin_kotlin.$_$.
|
|
84
|
+
var Pair = kotlin_kotlin.$_$.f8;
|
|
85
|
+
var substring_0 = kotlin_kotlin.$_$.o7;
|
|
86
|
+
var toLong = kotlin_kotlin.$_$.t7;
|
|
87
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.w5;
|
|
88
|
+
var ClosedRange = kotlin_kotlin.$_$.g6;
|
|
89
|
+
var isInterface = kotlin_kotlin.$_$.t5;
|
|
90
|
+
var contains = kotlin_kotlin.$_$.l6;
|
|
91
|
+
var convertToInt = kotlin_kotlin.$_$.m4;
|
|
92
|
+
var NumberFormatException = kotlin_kotlin.$_$.e8;
|
|
93
|
+
var isDigit = kotlin_kotlin.$_$.f7;
|
|
94
|
+
var isWhitespace = kotlin_kotlin.$_$.i7;
|
|
95
|
+
var setOf = kotlin_kotlin.$_$.g3;
|
|
96
|
+
var toDouble = kotlin_kotlin.$_$.r7;
|
|
97
|
+
var round = kotlin_kotlin.$_$.f6;
|
|
98
|
+
var divide = kotlin_kotlin.$_$.n4;
|
|
99
|
+
var equalsLong = kotlin_kotlin.$_$.o4;
|
|
100
|
+
var modulo = kotlin_kotlin.$_$.q4;
|
|
101
|
+
var padStart = kotlin_kotlin.$_$.j7;
|
|
102
|
+
var longArray = kotlin_kotlin.$_$.v5;
|
|
103
|
+
var multiply = kotlin_kotlin.$_$.r4;
|
|
104
|
+
var isInfinite = kotlin_kotlin.$_$.o8;
|
|
105
|
+
var charSequenceGet = kotlin_kotlin.$_$.a5;
|
|
106
|
+
var replace = kotlin_kotlin.$_$.k7;
|
|
104
107
|
var toString_1 = kotlin_kotlin.$_$.g;
|
|
105
108
|
var Char__hashCode_impl_otmys = kotlin_kotlin.$_$.d;
|
|
106
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
109
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.g5;
|
|
107
110
|
var get_lastIndex = kotlin_kotlin.$_$.w2;
|
|
108
|
-
var toString_2 = kotlin_kotlin.$_$.
|
|
109
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
110
|
-
var LatLon = kotlin_io_github_glandais_elevation.$_$.
|
|
111
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
112
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
111
|
+
var toString_2 = kotlin_kotlin.$_$.u7;
|
|
112
|
+
var CoroutineImpl = kotlin_kotlin.$_$.f4;
|
|
113
|
+
var LatLon = kotlin_io_github_glandais_elevation.$_$.f;
|
|
114
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.q3;
|
|
115
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.n5;
|
|
113
116
|
var ElevationSmoother_instance = kotlin_io_github_glandais_elevation.$_$.c;
|
|
114
|
-
var until = kotlin_kotlin.$_$.
|
|
115
|
-
var LatLonElevation = kotlin_io_github_glandais_elevation.$_$.
|
|
117
|
+
var until = kotlin_kotlin.$_$.n6;
|
|
118
|
+
var LatLonElevation = kotlin_io_github_glandais_elevation.$_$.e;
|
|
116
119
|
var arrayCopy = kotlin_kotlin.$_$.f2;
|
|
117
120
|
var Distance_instance = kotlin_io_github_glandais_elevation.$_$.a;
|
|
118
121
|
var DouglasPeucker_instance = kotlin_io_github_glandais_elevation.$_$.b;
|
|
119
122
|
var mapCapacity = kotlin_kotlin.$_$.b3;
|
|
120
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
123
|
+
var coerceAtLeast = kotlin_kotlin.$_$.h6;
|
|
121
124
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.a1;
|
|
122
|
-
var enumEntries = kotlin_kotlin.$_$.f4;
|
|
123
|
-
var Enum = kotlin_kotlin.$_$.x7;
|
|
124
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.p8;
|
|
125
125
|
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.b1;
|
|
126
|
-
var subtract = kotlin_kotlin.$_$.
|
|
127
|
-
var get_ONE = kotlin_kotlin.$_$.
|
|
128
|
-
var sorted = kotlin_kotlin.$_$.
|
|
126
|
+
var subtract = kotlin_kotlin.$_$.t4;
|
|
127
|
+
var get_ONE = kotlin_kotlin.$_$.j4;
|
|
128
|
+
var sorted = kotlin_kotlin.$_$.i3;
|
|
129
129
|
//endregion
|
|
130
130
|
//region block: pre-declaration
|
|
131
|
+
initMetadataForClass(GpxPathKind, 'GpxPathKind', VOID, Enum);
|
|
131
132
|
initMetadataForClass(GpxWaypoint, 'GpxWaypoint');
|
|
132
133
|
initMetadataForClass(GpxDocument, 'GpxDocument');
|
|
133
134
|
initMetadataForCompanion(Companion);
|
|
134
135
|
initMetadataForClass(GpxTrack, 'GpxTrack');
|
|
135
136
|
initMetadataForClass(GpxSegment, 'GpxSegment');
|
|
136
137
|
initMetadataForClass(GpxTrackPoint, 'GpxTrackPoint');
|
|
138
|
+
initMetadataForClass(GpxPowerSource, 'GpxPowerSource', VOID, Enum);
|
|
137
139
|
initMetadataForClass(ExtensionsAccumulator, 'ExtensionsAccumulator', ExtensionsAccumulator);
|
|
138
140
|
initMetadataForObject(GpxParser, 'GpxParser');
|
|
139
141
|
initMetadataForObject(GpxWriter, 'GpxWriter');
|
|
@@ -163,6 +165,28 @@
|
|
|
163
165
|
initMetadataForClass(Interpolate_0, 'Interpolate');
|
|
164
166
|
initMetadataForObject(PointPerSecond, 'PointPerSecond');
|
|
165
167
|
//endregion
|
|
168
|
+
var GpxPathKind_TRACK_instance;
|
|
169
|
+
var GpxPathKind_ROUTE_instance;
|
|
170
|
+
function values() {
|
|
171
|
+
return [GpxPathKind_TRACK_getInstance(), GpxPathKind_ROUTE_getInstance()];
|
|
172
|
+
}
|
|
173
|
+
function get_entries() {
|
|
174
|
+
if ($ENTRIES == null)
|
|
175
|
+
$ENTRIES = enumEntries(values());
|
|
176
|
+
return $ENTRIES;
|
|
177
|
+
}
|
|
178
|
+
var GpxPathKind_entriesInitialized;
|
|
179
|
+
function GpxPathKind_initEntries() {
|
|
180
|
+
if (GpxPathKind_entriesInitialized)
|
|
181
|
+
return Unit_instance;
|
|
182
|
+
GpxPathKind_entriesInitialized = true;
|
|
183
|
+
GpxPathKind_TRACK_instance = new GpxPathKind('TRACK', 0);
|
|
184
|
+
GpxPathKind_ROUTE_instance = new GpxPathKind('ROUTE', 1);
|
|
185
|
+
}
|
|
186
|
+
var $ENTRIES;
|
|
187
|
+
function GpxPathKind(name, ordinal) {
|
|
188
|
+
Enum.call(this, name, ordinal);
|
|
189
|
+
}
|
|
166
190
|
function GpxWaypoint(latitudeDeg, longitudeDeg, elevationM, name, description, symbol, type, timeEpochMs) {
|
|
167
191
|
elevationM = elevationM === VOID ? null : elevationM;
|
|
168
192
|
name = name === VOID ? null : name;
|
|
@@ -170,27 +194,27 @@
|
|
|
170
194
|
symbol = symbol === VOID ? null : symbol;
|
|
171
195
|
type = type === VOID ? null : type;
|
|
172
196
|
timeEpochMs = timeEpochMs === VOID ? null : timeEpochMs;
|
|
173
|
-
this.
|
|
174
|
-
this.
|
|
175
|
-
this.
|
|
176
|
-
this.
|
|
177
|
-
this.
|
|
178
|
-
this.
|
|
179
|
-
this.
|
|
180
|
-
this.
|
|
197
|
+
this.d1q_1 = latitudeDeg;
|
|
198
|
+
this.e1q_1 = longitudeDeg;
|
|
199
|
+
this.f1q_1 = elevationM;
|
|
200
|
+
this.g1q_1 = name;
|
|
201
|
+
this.h1q_1 = description;
|
|
202
|
+
this.i1q_1 = symbol;
|
|
203
|
+
this.j1q_1 = type;
|
|
204
|
+
this.k1q_1 = timeEpochMs;
|
|
181
205
|
}
|
|
182
206
|
protoOf(GpxWaypoint).toString = function () {
|
|
183
|
-
return 'GpxWaypoint(latitudeDeg=' + this.
|
|
207
|
+
return 'GpxWaypoint(latitudeDeg=' + this.d1q_1 + ', longitudeDeg=' + this.e1q_1 + ', elevationM=' + this.f1q_1 + ', name=' + this.g1q_1 + ', description=' + this.h1q_1 + ', symbol=' + this.i1q_1 + ', type=' + this.j1q_1 + ', timeEpochMs=' + toString(this.k1q_1) + ')';
|
|
184
208
|
};
|
|
185
209
|
protoOf(GpxWaypoint).hashCode = function () {
|
|
186
|
-
var result = getNumberHashCode(this.
|
|
187
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
188
|
-
result = imul(result, 31) + (this.
|
|
189
|
-
result = imul(result, 31) + (this.
|
|
190
|
-
result = imul(result, 31) + (this.
|
|
191
|
-
result = imul(result, 31) + (this.
|
|
192
|
-
result = imul(result, 31) + (this.
|
|
193
|
-
result = imul(result, 31) + (this.
|
|
210
|
+
var result = getNumberHashCode(this.d1q_1);
|
|
211
|
+
result = imul(result, 31) + getNumberHashCode(this.e1q_1) | 0;
|
|
212
|
+
result = imul(result, 31) + (this.f1q_1 == null ? 0 : getNumberHashCode(this.f1q_1)) | 0;
|
|
213
|
+
result = imul(result, 31) + (this.g1q_1 == null ? 0 : getStringHashCode(this.g1q_1)) | 0;
|
|
214
|
+
result = imul(result, 31) + (this.h1q_1 == null ? 0 : getStringHashCode(this.h1q_1)) | 0;
|
|
215
|
+
result = imul(result, 31) + (this.i1q_1 == null ? 0 : getStringHashCode(this.i1q_1)) | 0;
|
|
216
|
+
result = imul(result, 31) + (this.j1q_1 == null ? 0 : getStringHashCode(this.j1q_1)) | 0;
|
|
217
|
+
result = imul(result, 31) + (this.k1q_1 == null ? 0 : this.k1q_1.hashCode()) | 0;
|
|
194
218
|
return result;
|
|
195
219
|
};
|
|
196
220
|
protoOf(GpxWaypoint).equals = function (other) {
|
|
@@ -198,38 +222,38 @@
|
|
|
198
222
|
return true;
|
|
199
223
|
if (!(other instanceof GpxWaypoint))
|
|
200
224
|
return false;
|
|
201
|
-
if (!equals(this.
|
|
225
|
+
if (!equals(this.d1q_1, other.d1q_1))
|
|
202
226
|
return false;
|
|
203
|
-
if (!equals(this.
|
|
227
|
+
if (!equals(this.e1q_1, other.e1q_1))
|
|
204
228
|
return false;
|
|
205
|
-
if (!equals(this.
|
|
229
|
+
if (!equals(this.f1q_1, other.f1q_1))
|
|
206
230
|
return false;
|
|
207
|
-
if (!(this.
|
|
231
|
+
if (!(this.g1q_1 == other.g1q_1))
|
|
208
232
|
return false;
|
|
209
|
-
if (!(this.
|
|
233
|
+
if (!(this.h1q_1 == other.h1q_1))
|
|
210
234
|
return false;
|
|
211
|
-
if (!(this.
|
|
235
|
+
if (!(this.i1q_1 == other.i1q_1))
|
|
212
236
|
return false;
|
|
213
|
-
if (!(this.
|
|
237
|
+
if (!(this.j1q_1 == other.j1q_1))
|
|
214
238
|
return false;
|
|
215
|
-
if (!equals(this.
|
|
239
|
+
if (!equals(this.k1q_1, other.k1q_1))
|
|
216
240
|
return false;
|
|
217
241
|
return true;
|
|
218
242
|
};
|
|
219
243
|
function GpxDocument(name, tracks, waypoints) {
|
|
220
244
|
name = name === VOID ? 'noname' : name;
|
|
221
245
|
waypoints = waypoints === VOID ? emptyList() : waypoints;
|
|
222
|
-
this.
|
|
223
|
-
this.
|
|
224
|
-
this.
|
|
246
|
+
this.l1q_1 = name;
|
|
247
|
+
this.m1q_1 = tracks;
|
|
248
|
+
this.n1q_1 = waypoints;
|
|
225
249
|
}
|
|
226
250
|
protoOf(GpxDocument).toString = function () {
|
|
227
|
-
return 'GpxDocument(name=' + this.
|
|
251
|
+
return 'GpxDocument(name=' + this.l1q_1 + ', tracks=' + toString_0(this.m1q_1) + ', waypoints=' + toString_0(this.n1q_1) + ')';
|
|
228
252
|
};
|
|
229
253
|
protoOf(GpxDocument).hashCode = function () {
|
|
230
|
-
var result = getStringHashCode(this.
|
|
231
|
-
result = imul(result, 31) + hashCode(this.
|
|
232
|
-
result = imul(result, 31) + hashCode(this.
|
|
254
|
+
var result = getStringHashCode(this.l1q_1);
|
|
255
|
+
result = imul(result, 31) + hashCode(this.m1q_1) | 0;
|
|
256
|
+
result = imul(result, 31) + hashCode(this.n1q_1) | 0;
|
|
233
257
|
return result;
|
|
234
258
|
};
|
|
235
259
|
protoOf(GpxDocument).equals = function (other) {
|
|
@@ -237,18 +261,24 @@
|
|
|
237
261
|
return true;
|
|
238
262
|
if (!(other instanceof GpxDocument))
|
|
239
263
|
return false;
|
|
240
|
-
if (!(this.
|
|
264
|
+
if (!(this.l1q_1 === other.l1q_1))
|
|
241
265
|
return false;
|
|
242
|
-
if (!equals(this.
|
|
266
|
+
if (!equals(this.m1q_1, other.m1q_1))
|
|
243
267
|
return false;
|
|
244
|
-
if (!equals(this.
|
|
268
|
+
if (!equals(this.n1q_1, other.n1q_1))
|
|
245
269
|
return false;
|
|
246
270
|
return true;
|
|
247
271
|
};
|
|
248
272
|
function Companion() {
|
|
249
273
|
}
|
|
250
|
-
protoOf(Companion).
|
|
251
|
-
return new GpxTrack(name, type, listOf(new GpxSegment(points)));
|
|
274
|
+
protoOf(Companion).o1q = function (name, type, points, kind) {
|
|
275
|
+
return new GpxTrack(name, type, listOf(new GpxSegment(points)), kind);
|
|
276
|
+
};
|
|
277
|
+
protoOf(Companion).p1q = function (name, type, points, kind, $super) {
|
|
278
|
+
name = name === VOID ? null : name;
|
|
279
|
+
type = type === VOID ? null : type;
|
|
280
|
+
kind = kind === VOID ? GpxPathKind_TRACK_getInstance() : kind;
|
|
281
|
+
return $super === VOID ? this.o1q(name, type, points, kind) : $super.o1q.call(this, name, type, points, kind);
|
|
252
282
|
};
|
|
253
283
|
var Companion_instance;
|
|
254
284
|
function Companion_getInstance_0() {
|
|
@@ -257,13 +287,13 @@
|
|
|
257
287
|
function GpxTrack$points$delegate$lambda(this$0) {
|
|
258
288
|
return function () {
|
|
259
289
|
// Inline function 'kotlin.collections.flatMap' call
|
|
260
|
-
var tmp0 = this$0.
|
|
290
|
+
var tmp0 = this$0.s1q_1;
|
|
261
291
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
262
292
|
var destination = ArrayList_init_$Create$();
|
|
263
293
|
var _iterator__ex2g4s = tmp0.i();
|
|
264
294
|
while (_iterator__ex2g4s.j()) {
|
|
265
295
|
var element = _iterator__ex2g4s.k();
|
|
266
|
-
var list = element.
|
|
296
|
+
var list = element.v1q_1;
|
|
267
297
|
addAll(destination, list);
|
|
268
298
|
}
|
|
269
299
|
return destination;
|
|
@@ -271,32 +301,35 @@
|
|
|
271
301
|
}
|
|
272
302
|
function GpxTrack$_get_points_$ref_4x48pr() {
|
|
273
303
|
return constructCallableReference(function (p0) {
|
|
274
|
-
return p0.
|
|
304
|
+
return p0.w1q();
|
|
275
305
|
}, 1, 0, 5);
|
|
276
306
|
}
|
|
277
|
-
function GpxTrack(name, type, segments) {
|
|
307
|
+
function GpxTrack(name, type, segments, kind) {
|
|
278
308
|
name = name === VOID ? null : name;
|
|
279
309
|
type = type === VOID ? null : type;
|
|
280
|
-
|
|
281
|
-
this.
|
|
282
|
-
this.
|
|
310
|
+
kind = kind === VOID ? GpxPathKind_TRACK_getInstance() : kind;
|
|
311
|
+
this.q1q_1 = name;
|
|
312
|
+
this.r1q_1 = type;
|
|
313
|
+
this.s1q_1 = segments;
|
|
314
|
+
this.t1q_1 = kind;
|
|
283
315
|
var tmp = this;
|
|
284
|
-
tmp.
|
|
316
|
+
tmp.u1q_1 = lazy(GpxTrack$points$delegate$lambda(this));
|
|
285
317
|
}
|
|
286
|
-
protoOf(GpxTrack).
|
|
287
|
-
var tmp0 = this.
|
|
318
|
+
protoOf(GpxTrack).w1q = function () {
|
|
319
|
+
var tmp0 = this.u1q_1;
|
|
288
320
|
var tmp = KProperty1;
|
|
289
321
|
// Inline function 'kotlin.getValue' call
|
|
290
322
|
getPropertyCallableRef('points', 1, tmp, GpxTrack$_get_points_$ref_4x48pr(), null);
|
|
291
323
|
return tmp0.i1();
|
|
292
324
|
};
|
|
293
325
|
protoOf(GpxTrack).toString = function () {
|
|
294
|
-
return 'GpxTrack(name=' + this.
|
|
326
|
+
return 'GpxTrack(name=' + this.q1q_1 + ', type=' + this.r1q_1 + ', segments=' + toString_0(this.s1q_1) + ', kind=' + this.t1q_1.toString() + ')';
|
|
295
327
|
};
|
|
296
328
|
protoOf(GpxTrack).hashCode = function () {
|
|
297
|
-
var result = this.
|
|
298
|
-
result = imul(result, 31) + (this.
|
|
299
|
-
result = imul(result, 31) + hashCode(this.
|
|
329
|
+
var result = this.q1q_1 == null ? 0 : getStringHashCode(this.q1q_1);
|
|
330
|
+
result = imul(result, 31) + (this.r1q_1 == null ? 0 : getStringHashCode(this.r1q_1)) | 0;
|
|
331
|
+
result = imul(result, 31) + hashCode(this.s1q_1) | 0;
|
|
332
|
+
result = imul(result, 31) + this.t1q_1.hashCode() | 0;
|
|
300
333
|
return result;
|
|
301
334
|
};
|
|
302
335
|
protoOf(GpxTrack).equals = function (other) {
|
|
@@ -304,29 +337,31 @@
|
|
|
304
337
|
return true;
|
|
305
338
|
if (!(other instanceof GpxTrack))
|
|
306
339
|
return false;
|
|
307
|
-
if (!(this.
|
|
340
|
+
if (!(this.q1q_1 == other.q1q_1))
|
|
308
341
|
return false;
|
|
309
|
-
if (!(this.
|
|
342
|
+
if (!(this.r1q_1 == other.r1q_1))
|
|
310
343
|
return false;
|
|
311
|
-
if (!equals(this.
|
|
344
|
+
if (!equals(this.s1q_1, other.s1q_1))
|
|
345
|
+
return false;
|
|
346
|
+
if (!this.t1q_1.equals(other.t1q_1))
|
|
312
347
|
return false;
|
|
313
348
|
return true;
|
|
314
349
|
};
|
|
315
350
|
function GpxSegment(points) {
|
|
316
|
-
this.
|
|
351
|
+
this.v1q_1 = points;
|
|
317
352
|
}
|
|
318
353
|
protoOf(GpxSegment).toString = function () {
|
|
319
|
-
return 'GpxSegment(points=' + toString_0(this.
|
|
354
|
+
return 'GpxSegment(points=' + toString_0(this.v1q_1) + ')';
|
|
320
355
|
};
|
|
321
356
|
protoOf(GpxSegment).hashCode = function () {
|
|
322
|
-
return hashCode(this.
|
|
357
|
+
return hashCode(this.v1q_1);
|
|
323
358
|
};
|
|
324
359
|
protoOf(GpxSegment).equals = function (other) {
|
|
325
360
|
if (this === other)
|
|
326
361
|
return true;
|
|
327
362
|
if (!(other instanceof GpxSegment))
|
|
328
363
|
return false;
|
|
329
|
-
if (!equals(this.
|
|
364
|
+
if (!equals(this.v1q_1, other.v1q_1))
|
|
330
365
|
return false;
|
|
331
366
|
return true;
|
|
332
367
|
};
|
|
@@ -337,27 +372,27 @@
|
|
|
337
372
|
cadence = cadence === VOID ? null : cadence;
|
|
338
373
|
temperatureC = temperatureC === VOID ? null : temperatureC;
|
|
339
374
|
powerW = powerW === VOID ? null : powerW;
|
|
340
|
-
this.
|
|
341
|
-
this.
|
|
342
|
-
this.
|
|
343
|
-
this.
|
|
344
|
-
this.
|
|
345
|
-
this.
|
|
346
|
-
this.
|
|
347
|
-
this.
|
|
375
|
+
this.x1q_1 = latitudeDeg;
|
|
376
|
+
this.y1q_1 = longitudeDeg;
|
|
377
|
+
this.z1q_1 = elevationM;
|
|
378
|
+
this.a1r_1 = timeEpochMs;
|
|
379
|
+
this.b1r_1 = heartRate;
|
|
380
|
+
this.c1r_1 = cadence;
|
|
381
|
+
this.d1r_1 = temperatureC;
|
|
382
|
+
this.e1r_1 = powerW;
|
|
348
383
|
}
|
|
349
384
|
protoOf(GpxTrackPoint).toString = function () {
|
|
350
|
-
return 'GpxTrackPoint(latitudeDeg=' + this.
|
|
385
|
+
return 'GpxTrackPoint(latitudeDeg=' + this.x1q_1 + ', longitudeDeg=' + this.y1q_1 + ', elevationM=' + this.z1q_1 + ', timeEpochMs=' + toString(this.a1r_1) + ', heartRate=' + this.b1r_1 + ', cadence=' + this.c1r_1 + ', temperatureC=' + this.d1r_1 + ', powerW=' + this.e1r_1 + ')';
|
|
351
386
|
};
|
|
352
387
|
protoOf(GpxTrackPoint).hashCode = function () {
|
|
353
|
-
var result = getNumberHashCode(this.
|
|
354
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
355
|
-
result = imul(result, 31) + (this.
|
|
356
|
-
result = imul(result, 31) + (this.
|
|
357
|
-
result = imul(result, 31) + (this.
|
|
358
|
-
result = imul(result, 31) + (this.
|
|
359
|
-
result = imul(result, 31) + (this.
|
|
360
|
-
result = imul(result, 31) + (this.
|
|
388
|
+
var result = getNumberHashCode(this.x1q_1);
|
|
389
|
+
result = imul(result, 31) + getNumberHashCode(this.y1q_1) | 0;
|
|
390
|
+
result = imul(result, 31) + (this.z1q_1 == null ? 0 : getNumberHashCode(this.z1q_1)) | 0;
|
|
391
|
+
result = imul(result, 31) + (this.a1r_1 == null ? 0 : this.a1r_1.hashCode()) | 0;
|
|
392
|
+
result = imul(result, 31) + (this.b1r_1 == null ? 0 : this.b1r_1) | 0;
|
|
393
|
+
result = imul(result, 31) + (this.c1r_1 == null ? 0 : this.c1r_1) | 0;
|
|
394
|
+
result = imul(result, 31) + (this.d1r_1 == null ? 0 : getNumberHashCode(this.d1r_1)) | 0;
|
|
395
|
+
result = imul(result, 31) + (this.e1r_1 == null ? 0 : getNumberHashCode(this.e1r_1)) | 0;
|
|
361
396
|
return result;
|
|
362
397
|
};
|
|
363
398
|
protoOf(GpxTrackPoint).equals = function (other) {
|
|
@@ -365,36 +400,46 @@
|
|
|
365
400
|
return true;
|
|
366
401
|
if (!(other instanceof GpxTrackPoint))
|
|
367
402
|
return false;
|
|
368
|
-
if (!equals(this.
|
|
403
|
+
if (!equals(this.x1q_1, other.x1q_1))
|
|
369
404
|
return false;
|
|
370
|
-
if (!equals(this.
|
|
405
|
+
if (!equals(this.y1q_1, other.y1q_1))
|
|
371
406
|
return false;
|
|
372
|
-
if (!equals(this.
|
|
407
|
+
if (!equals(this.z1q_1, other.z1q_1))
|
|
373
408
|
return false;
|
|
374
|
-
if (!equals(this.
|
|
409
|
+
if (!equals(this.a1r_1, other.a1r_1))
|
|
375
410
|
return false;
|
|
376
|
-
if (!(this.
|
|
411
|
+
if (!(this.b1r_1 == other.b1r_1))
|
|
377
412
|
return false;
|
|
378
|
-
if (!(this.
|
|
413
|
+
if (!(this.c1r_1 == other.c1r_1))
|
|
379
414
|
return false;
|
|
380
|
-
if (!equals(this.
|
|
415
|
+
if (!equals(this.d1r_1, other.d1r_1))
|
|
381
416
|
return false;
|
|
382
|
-
if (!equals(this.
|
|
417
|
+
if (!equals(this.e1r_1, other.e1r_1))
|
|
383
418
|
return false;
|
|
384
419
|
return true;
|
|
385
420
|
};
|
|
386
|
-
function
|
|
421
|
+
function GpxPathKind_TRACK_getInstance() {
|
|
422
|
+
GpxPathKind_initEntries();
|
|
423
|
+
return GpxPathKind_TRACK_instance;
|
|
424
|
+
}
|
|
425
|
+
function GpxPathKind_ROUTE_getInstance() {
|
|
426
|
+
GpxPathKind_initEntries();
|
|
427
|
+
return GpxPathKind_ROUTE_instance;
|
|
428
|
+
}
|
|
429
|
+
function toGpxDocument(_this__u8e3s4, name, trackName, startTime, powerSource) {
|
|
387
430
|
name = name === VOID ? 'noname' : name;
|
|
388
431
|
trackName = trackName === VOID ? null : trackName;
|
|
389
432
|
startTime = startTime === VOID ? null : startTime;
|
|
390
|
-
|
|
433
|
+
powerSource = powerSource === VOID ? GpxPowerSource_INPUT_getInstance() : powerSource;
|
|
434
|
+
return new GpxDocument(name, listOf(toGpxTrack(_this__u8e3s4, trackName, VOID, startTime, powerSource)));
|
|
391
435
|
}
|
|
392
|
-
function pathsToGpxDocument(paths, name, trackNames, waypoints, type, startTime) {
|
|
436
|
+
function pathsToGpxDocument(paths, name, trackNames, waypoints, type, startTime, powerSource) {
|
|
393
437
|
name = name === VOID ? 'noname' : name;
|
|
394
438
|
trackNames = trackNames === VOID ? null : trackNames;
|
|
395
439
|
waypoints = waypoints === VOID ? emptyList() : waypoints;
|
|
396
440
|
type = type === VOID ? 'cycling' : type;
|
|
397
441
|
startTime = startTime === VOID ? null : startTime;
|
|
442
|
+
powerSource = powerSource === VOID ? GpxPowerSource_INPUT_getInstance() : powerSource;
|
|
398
443
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
399
444
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
400
445
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(paths, 10));
|
|
@@ -405,19 +450,35 @@
|
|
|
405
450
|
var _unary__edvuaz = index;
|
|
406
451
|
index = _unary__edvuaz + 1 | 0;
|
|
407
452
|
var i = checkIndexOverflow(_unary__edvuaz);
|
|
408
|
-
var tmp$ret$2 = toGpxTrack(item, trackNames == null ? null : getOrNull(trackNames, i), type, startTime);
|
|
453
|
+
var tmp$ret$2 = toGpxTrack(item, trackNames == null ? null : getOrNull(trackNames, i), type, startTime, powerSource);
|
|
409
454
|
destination.h(tmp$ret$2);
|
|
410
455
|
}
|
|
411
456
|
return new GpxDocument(name, destination, waypoints);
|
|
412
457
|
}
|
|
413
|
-
|
|
458
|
+
var GpxPowerSource_INPUT_instance;
|
|
459
|
+
var GpxPowerSource_COMPUTED_instance;
|
|
460
|
+
var GpxPowerSource_COMPUTED_OR_INPUT_instance;
|
|
461
|
+
var GpxPowerSource_entriesInitialized;
|
|
462
|
+
function GpxPowerSource_initEntries() {
|
|
463
|
+
if (GpxPowerSource_entriesInitialized)
|
|
464
|
+
return Unit_instance;
|
|
465
|
+
GpxPowerSource_entriesInitialized = true;
|
|
466
|
+
GpxPowerSource_INPUT_instance = new GpxPowerSource('INPUT', 0);
|
|
467
|
+
GpxPowerSource_COMPUTED_instance = new GpxPowerSource('COMPUTED', 1);
|
|
468
|
+
GpxPowerSource_COMPUTED_OR_INPUT_instance = new GpxPowerSource('COMPUTED_OR_INPUT', 2);
|
|
469
|
+
}
|
|
470
|
+
function GpxPowerSource(name, ordinal) {
|
|
471
|
+
Enum.call(this, name, ordinal);
|
|
472
|
+
}
|
|
473
|
+
function toGpxTrack(_this__u8e3s4, name, type, startTime, powerSource) {
|
|
414
474
|
name = name === VOID ? null : name;
|
|
415
475
|
type = type === VOID ? 'cycling' : type;
|
|
416
476
|
startTime = startTime === VOID ? null : startTime;
|
|
477
|
+
powerSource = powerSource === VOID ? GpxPowerSource_INPUT_getInstance() : powerSource;
|
|
417
478
|
var startTimeMs = startTime == null ? null : startTime.ud();
|
|
418
479
|
// Inline function 'kotlin.collections.List' call
|
|
419
480
|
// Inline function 'kotlin.collections.MutableList' call
|
|
420
|
-
var size = _this__u8e3s4.
|
|
481
|
+
var size = _this__u8e3s4.f1r_1;
|
|
421
482
|
var list = ArrayList_init_$Create$_0(size);
|
|
422
483
|
// Inline function 'kotlin.repeat' call
|
|
423
484
|
var inductionVariable = 0;
|
|
@@ -425,10 +486,10 @@
|
|
|
425
486
|
do {
|
|
426
487
|
var index = inductionVariable;
|
|
427
488
|
inductionVariable = inductionVariable + 1 | 0;
|
|
428
|
-
var tmp = _this__u8e3s4.
|
|
429
|
-
var tmp_0 = _this__u8e3s4.
|
|
489
|
+
var tmp = _this__u8e3s4.h1r(index) * 57.29577951308232;
|
|
490
|
+
var tmp_0 = _this__u8e3s4.i1r(index) * 57.29577951308232;
|
|
430
491
|
// Inline function 'kotlin.takeUnless' call
|
|
431
|
-
var this_0 = _this__u8e3s4.
|
|
492
|
+
var this_0 = _this__u8e3s4.j1r(index);
|
|
432
493
|
var tmp_1;
|
|
433
494
|
if (!isNaN_0(this_0)) {
|
|
434
495
|
tmp_1 = this_0;
|
|
@@ -437,13 +498,13 @@
|
|
|
437
498
|
}
|
|
438
499
|
var tmp_2 = tmp_1;
|
|
439
500
|
var tmp_3;
|
|
440
|
-
if (isNaN_0(_this__u8e3s4.
|
|
501
|
+
if (isNaN_0(_this__u8e3s4.k1r(index))) {
|
|
441
502
|
tmp_3 = null;
|
|
442
503
|
} else if (!(startTimeMs == null)) {
|
|
443
|
-
tmp_3 = add(startTimeMs, roundToLong(_this__u8e3s4.
|
|
504
|
+
tmp_3 = add(startTimeMs, roundToLong(_this__u8e3s4.k1r(index)));
|
|
444
505
|
} else {
|
|
445
506
|
// Inline function 'kotlin.takeIf' call
|
|
446
|
-
var this_1 = numberToLong(_this__u8e3s4.
|
|
507
|
+
var this_1 = numberToLong(_this__u8e3s4.k1r(index));
|
|
447
508
|
var tmp_4;
|
|
448
509
|
if (compare(this_1, new Long(0, 0)) > 0) {
|
|
449
510
|
tmp_4 = this_1;
|
|
@@ -454,7 +515,7 @@
|
|
|
454
515
|
}
|
|
455
516
|
var tmp_5 = tmp_3;
|
|
456
517
|
// Inline function 'kotlin.takeUnless' call
|
|
457
|
-
var this_2 = _this__u8e3s4.
|
|
518
|
+
var this_2 = _this__u8e3s4.l1r(index);
|
|
458
519
|
var tmp_6;
|
|
459
520
|
if (!isNaN_0(this_2)) {
|
|
460
521
|
tmp_6 = this_2;
|
|
@@ -464,7 +525,7 @@
|
|
|
464
525
|
var tmp0_safe_receiver = tmp_6;
|
|
465
526
|
var tmp_7 = tmp0_safe_receiver == null ? null : roundToInt(tmp0_safe_receiver);
|
|
466
527
|
// Inline function 'kotlin.takeUnless' call
|
|
467
|
-
var this_3 = _this__u8e3s4.
|
|
528
|
+
var this_3 = _this__u8e3s4.m1r(index);
|
|
468
529
|
var tmp_8;
|
|
469
530
|
if (!isNaN_0(this_3)) {
|
|
470
531
|
tmp_8 = this_3;
|
|
@@ -474,34 +535,65 @@
|
|
|
474
535
|
var tmp1_safe_receiver = tmp_8;
|
|
475
536
|
var tmp_9 = tmp1_safe_receiver == null ? null : roundToInt(tmp1_safe_receiver);
|
|
476
537
|
// Inline function 'kotlin.takeUnless' call
|
|
477
|
-
var this_4 = _this__u8e3s4.
|
|
538
|
+
var this_4 = _this__u8e3s4.n1r(index);
|
|
478
539
|
var tmp_10;
|
|
479
540
|
if (!isNaN_0(this_4)) {
|
|
480
541
|
tmp_10 = this_4;
|
|
481
542
|
} else {
|
|
482
543
|
tmp_10 = null;
|
|
483
544
|
}
|
|
484
|
-
var
|
|
485
|
-
|
|
486
|
-
var this_5 = _this__u8e3s4.d1r(index);
|
|
487
|
-
var tmp_12;
|
|
488
|
-
if (!isNaN_0(this_5)) {
|
|
489
|
-
tmp_12 = this_5;
|
|
490
|
-
} else {
|
|
491
|
-
tmp_12 = null;
|
|
492
|
-
}
|
|
493
|
-
var tmp$ret$15 = tmp_12;
|
|
494
|
-
var tmp$ret$4 = new GpxTrackPoint(tmp, tmp_0, tmp_2, tmp_5, tmp_7, tmp_9, tmp_11, tmp$ret$15);
|
|
545
|
+
var tmp$ret$13 = tmp_10;
|
|
546
|
+
var tmp$ret$4 = new GpxTrackPoint(tmp, tmp_0, tmp_2, tmp_5, tmp_7, tmp_9, tmp$ret$13, powerAt(_this__u8e3s4, index, powerSource));
|
|
495
547
|
list.h(tmp$ret$4);
|
|
496
548
|
}
|
|
497
549
|
while (inductionVariable < size);
|
|
498
550
|
var points = list;
|
|
499
|
-
return Companion_instance.
|
|
551
|
+
return Companion_instance.p1q(name, type, points);
|
|
552
|
+
}
|
|
553
|
+
function powerAt(_this__u8e3s4, i, source) {
|
|
554
|
+
// Inline function 'kotlin.takeUnless' call
|
|
555
|
+
var this_0 = _this__u8e3s4.o1r(i);
|
|
556
|
+
var tmp;
|
|
557
|
+
if (!isNaN_0(this_0)) {
|
|
558
|
+
tmp = this_0;
|
|
559
|
+
} else {
|
|
560
|
+
tmp = null;
|
|
561
|
+
}
|
|
562
|
+
var input = tmp;
|
|
563
|
+
// Inline function 'kotlin.takeUnless' call
|
|
564
|
+
var this_1 = _this__u8e3s4.p1r(i);
|
|
565
|
+
var tmp_0;
|
|
566
|
+
if (!(isNaN_0(this_1) || this_1 === 0.0)) {
|
|
567
|
+
tmp_0 = this_1;
|
|
568
|
+
} else {
|
|
569
|
+
tmp_0 = null;
|
|
570
|
+
}
|
|
571
|
+
var computed = tmp_0;
|
|
572
|
+
var tmp_1;
|
|
573
|
+
switch (source.o1_1) {
|
|
574
|
+
case 0:
|
|
575
|
+
tmp_1 = input;
|
|
576
|
+
break;
|
|
577
|
+
case 1:
|
|
578
|
+
tmp_1 = computed;
|
|
579
|
+
break;
|
|
580
|
+
case 2:
|
|
581
|
+
tmp_1 = computed == null ? input : computed;
|
|
582
|
+
break;
|
|
583
|
+
default:
|
|
584
|
+
noWhenBranchMatchedException();
|
|
585
|
+
break;
|
|
586
|
+
}
|
|
587
|
+
return tmp_1;
|
|
588
|
+
}
|
|
589
|
+
function GpxPowerSource_INPUT_getInstance() {
|
|
590
|
+
GpxPowerSource_initEntries();
|
|
591
|
+
return GpxPowerSource_INPUT_instance;
|
|
500
592
|
}
|
|
501
593
|
function parseOnce($this, xml) {
|
|
502
594
|
var tmp;
|
|
503
595
|
try {
|
|
504
|
-
tmp = get_xmlStreaming().
|
|
596
|
+
tmp = get_xmlStreaming().f19(xml);
|
|
505
597
|
} catch ($p) {
|
|
506
598
|
var tmp_0;
|
|
507
599
|
if ($p instanceof IllegalArgumentException) {
|
|
@@ -535,7 +627,7 @@
|
|
|
535
627
|
}
|
|
536
628
|
}
|
|
537
629
|
finally {
|
|
538
|
-
reader.
|
|
630
|
+
reader.n18();
|
|
539
631
|
}
|
|
540
632
|
return tmp_1;
|
|
541
633
|
}
|
|
@@ -543,8 +635,8 @@
|
|
|
543
635
|
while (reader.j()) {
|
|
544
636
|
var ev = reader.k();
|
|
545
637
|
if (ev.equals(EventType_START_ELEMENT_getInstance())) {
|
|
546
|
-
if (!(reader.
|
|
547
|
-
throw IllegalArgumentException_init_$Create$_0('Invalid GPX file: missing gpx root element (found ' + reader.
|
|
638
|
+
if (!(reader.a18() === 'gpx')) {
|
|
639
|
+
throw IllegalArgumentException_init_$Create$_0('Invalid GPX file: missing gpx root element (found ' + reader.a18() + ')');
|
|
548
640
|
}
|
|
549
641
|
return parseGpxRoot($this, reader);
|
|
550
642
|
}
|
|
@@ -561,7 +653,7 @@
|
|
|
561
653
|
var ev = reader.k();
|
|
562
654
|
switch (ev.o1_1) {
|
|
563
655
|
case 1:
|
|
564
|
-
switch (reader.
|
|
656
|
+
switch (reader.a18()) {
|
|
565
657
|
case 'metadata':
|
|
566
658
|
var metaName = parseMetadataName($this, reader);
|
|
567
659
|
if (!(metaName == null))
|
|
@@ -570,6 +662,9 @@
|
|
|
570
662
|
case 'trk':
|
|
571
663
|
tracks.h(parseTrack($this, reader));
|
|
572
664
|
break;
|
|
665
|
+
case 'rte':
|
|
666
|
+
tracks.h(parseRoute($this, reader));
|
|
667
|
+
break;
|
|
573
668
|
case 'wpt':
|
|
574
669
|
waypoints.h(parseWaypoint($this, reader));
|
|
575
670
|
break;
|
|
@@ -593,7 +688,7 @@
|
|
|
593
688
|
var ev = reader.k();
|
|
594
689
|
switch (ev.o1_1) {
|
|
595
690
|
case 1:
|
|
596
|
-
if (reader.
|
|
691
|
+
if (reader.a18() === 'name' && name == null) {
|
|
597
692
|
// Inline function 'kotlin.text.trim' call
|
|
598
693
|
var this_0 = readElementText($this, reader);
|
|
599
694
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
@@ -628,7 +723,7 @@
|
|
|
628
723
|
var ev = reader.k();
|
|
629
724
|
switch (ev.o1_1) {
|
|
630
725
|
case 1:
|
|
631
|
-
switch (reader.
|
|
726
|
+
switch (reader.a18()) {
|
|
632
727
|
case 'name':
|
|
633
728
|
// Inline function 'kotlin.text.trim' call
|
|
634
729
|
|
|
@@ -682,6 +777,69 @@
|
|
|
682
777
|
}
|
|
683
778
|
return new GpxTrack(name, type, segments);
|
|
684
779
|
}
|
|
780
|
+
function parseRoute($this, reader) {
|
|
781
|
+
var name = null;
|
|
782
|
+
var type = null;
|
|
783
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
784
|
+
var points = ArrayList_init_$Create$();
|
|
785
|
+
while (reader.j()) {
|
|
786
|
+
var ev = reader.k();
|
|
787
|
+
switch (ev.o1_1) {
|
|
788
|
+
case 1:
|
|
789
|
+
switch (reader.a18()) {
|
|
790
|
+
case 'name':
|
|
791
|
+
// Inline function 'kotlin.text.trim' call
|
|
792
|
+
|
|
793
|
+
var this_0 = readElementText($this, reader);
|
|
794
|
+
// Inline function 'kotlin.text.ifEmpty' call
|
|
795
|
+
|
|
796
|
+
var this_1 = toString_0(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
797
|
+
var tmp;
|
|
798
|
+
// Inline function 'kotlin.text.isEmpty' call
|
|
799
|
+
|
|
800
|
+
if (charSequenceLength(this_1) === 0) {
|
|
801
|
+
tmp = null;
|
|
802
|
+
} else {
|
|
803
|
+
tmp = this_1;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
name = tmp;
|
|
807
|
+
break;
|
|
808
|
+
case 'type':
|
|
809
|
+
// Inline function 'kotlin.text.trim' call
|
|
810
|
+
|
|
811
|
+
var this_2 = readElementText($this, reader);
|
|
812
|
+
// Inline function 'kotlin.text.ifEmpty' call
|
|
813
|
+
|
|
814
|
+
var this_3 = toString_0(trim(isCharSequence(this_2) ? this_2 : THROW_CCE()));
|
|
815
|
+
var tmp_0;
|
|
816
|
+
// Inline function 'kotlin.text.isEmpty' call
|
|
817
|
+
|
|
818
|
+
if (charSequenceLength(this_3) === 0) {
|
|
819
|
+
tmp_0 = null;
|
|
820
|
+
} else {
|
|
821
|
+
tmp_0 = this_3;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
type = tmp_0;
|
|
825
|
+
break;
|
|
826
|
+
case 'rtept':
|
|
827
|
+
points.h(parseTrackPoint($this, reader));
|
|
828
|
+
break;
|
|
829
|
+
default:
|
|
830
|
+
skipElement($this, reader);
|
|
831
|
+
break;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
break;
|
|
835
|
+
case 2:
|
|
836
|
+
return new GpxTrack(name, type, listOf(new GpxSegment(points)), GpxPathKind_ROUTE_getInstance());
|
|
837
|
+
default:
|
|
838
|
+
break;
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
return new GpxTrack(name, type, listOf(new GpxSegment(points)), GpxPathKind_ROUTE_getInstance());
|
|
842
|
+
}
|
|
685
843
|
function parseTrackSegment($this, reader) {
|
|
686
844
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
687
845
|
var points = ArrayList_init_$Create$();
|
|
@@ -689,7 +847,7 @@
|
|
|
689
847
|
var ev = reader.k();
|
|
690
848
|
switch (ev.o1_1) {
|
|
691
849
|
case 1:
|
|
692
|
-
if (reader.
|
|
850
|
+
if (reader.a18() === 'trkpt') {
|
|
693
851
|
points.h(parseTrackPoint($this, reader));
|
|
694
852
|
} else {
|
|
695
853
|
skipElement($this, reader);
|
|
@@ -705,8 +863,8 @@
|
|
|
705
863
|
return new GpxSegment(points);
|
|
706
864
|
}
|
|
707
865
|
function parseTrackPoint($this, reader) {
|
|
708
|
-
var latStr = reader.
|
|
709
|
-
var lonStr = reader.
|
|
866
|
+
var latStr = reader.l18(null, 'lat');
|
|
867
|
+
var lonStr = reader.l18(null, 'lon');
|
|
710
868
|
var tmp;
|
|
711
869
|
// Inline function 'kotlin.text.isNullOrBlank' call
|
|
712
870
|
if (latStr == null || isBlank(latStr)) {
|
|
@@ -741,7 +899,7 @@
|
|
|
741
899
|
var ev = reader.k();
|
|
742
900
|
switch (ev.o1_1) {
|
|
743
901
|
case 1:
|
|
744
|
-
switch (reader.
|
|
902
|
+
switch (reader.a18()) {
|
|
745
903
|
case 'ele':
|
|
746
904
|
// Inline function 'kotlin.text.trim' call
|
|
747
905
|
|
|
@@ -775,16 +933,16 @@
|
|
|
775
933
|
|
|
776
934
|
break;
|
|
777
935
|
case 2:
|
|
778
|
-
return new GpxTrackPoint(lat, lon, elevation, timeMs, ext.
|
|
936
|
+
return new GpxTrackPoint(lat, lon, elevation, timeMs, ext.q1r_1, ext.r1r_1, ext.s1r_1, ext.t1r_1);
|
|
779
937
|
default:
|
|
780
938
|
break;
|
|
781
939
|
}
|
|
782
940
|
}
|
|
783
|
-
return new GpxTrackPoint(lat, lon, elevation, timeMs, ext.
|
|
941
|
+
return new GpxTrackPoint(lat, lon, elevation, timeMs, ext.q1r_1, ext.r1r_1, ext.s1r_1, ext.t1r_1);
|
|
784
942
|
}
|
|
785
943
|
function parseWaypoint($this, reader) {
|
|
786
|
-
var latStr = reader.
|
|
787
|
-
var lonStr = reader.
|
|
944
|
+
var latStr = reader.l18(null, 'lat');
|
|
945
|
+
var lonStr = reader.l18(null, 'lon');
|
|
788
946
|
var tmp;
|
|
789
947
|
// Inline function 'kotlin.text.isNullOrBlank' call
|
|
790
948
|
if (latStr == null || isBlank(latStr)) {
|
|
@@ -822,7 +980,7 @@
|
|
|
822
980
|
var ev = reader.k();
|
|
823
981
|
switch (ev.o1_1) {
|
|
824
982
|
case 1:
|
|
825
|
-
switch (reader.
|
|
983
|
+
switch (reader.a18()) {
|
|
826
984
|
case 'ele':
|
|
827
985
|
// Inline function 'kotlin.text.trim' call
|
|
828
986
|
|
|
@@ -937,7 +1095,7 @@
|
|
|
937
1095
|
var ev = reader.k();
|
|
938
1096
|
switch (ev.o1_1) {
|
|
939
1097
|
case 1:
|
|
940
|
-
var ln = reader.
|
|
1098
|
+
var ln = reader.a18();
|
|
941
1099
|
// Inline function 'kotlin.text.lowercase' call
|
|
942
1100
|
|
|
943
1101
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -950,8 +1108,8 @@
|
|
|
950
1108
|
else {
|
|
951
1109
|
// Inline function 'kotlin.let' call
|
|
952
1110
|
var tmp = ext;
|
|
953
|
-
var tmp0_elvis_lhs = ext.
|
|
954
|
-
tmp.
|
|
1111
|
+
var tmp0_elvis_lhs = ext.t1r_1;
|
|
1112
|
+
tmp.t1r_1 = tmp0_elvis_lhs == null ? tmp2_safe_receiver : tmp0_elvis_lhs;
|
|
955
1113
|
}
|
|
956
1114
|
|
|
957
1115
|
break;
|
|
@@ -962,8 +1120,8 @@
|
|
|
962
1120
|
null;
|
|
963
1121
|
else {
|
|
964
1122
|
// Inline function 'kotlin.let' call
|
|
965
|
-
if (ext.
|
|
966
|
-
ext.
|
|
1123
|
+
if (ext.q1r_1 == null)
|
|
1124
|
+
ext.q1r_1 = numberToInt(tmp3_safe_receiver);
|
|
967
1125
|
}
|
|
968
1126
|
|
|
969
1127
|
break;
|
|
@@ -974,8 +1132,8 @@
|
|
|
974
1132
|
null;
|
|
975
1133
|
else {
|
|
976
1134
|
// Inline function 'kotlin.let' call
|
|
977
|
-
if (ext.
|
|
978
|
-
ext.
|
|
1135
|
+
if (ext.r1r_1 == null)
|
|
1136
|
+
ext.r1r_1 = numberToInt(tmp4_safe_receiver);
|
|
979
1137
|
}
|
|
980
1138
|
|
|
981
1139
|
break;
|
|
@@ -988,8 +1146,8 @@
|
|
|
988
1146
|
else {
|
|
989
1147
|
// Inline function 'kotlin.let' call
|
|
990
1148
|
var tmp_0 = ext;
|
|
991
|
-
var tmp0_elvis_lhs_0 = ext.
|
|
992
|
-
tmp_0.
|
|
1149
|
+
var tmp0_elvis_lhs_0 = ext.s1r_1;
|
|
1150
|
+
tmp_0.s1r_1 = tmp0_elvis_lhs_0 == null ? tmp5_safe_receiver : tmp0_elvis_lhs_0;
|
|
993
1151
|
}
|
|
994
1152
|
|
|
995
1153
|
break;
|
|
@@ -1015,7 +1173,7 @@
|
|
|
1015
1173
|
case 5:
|
|
1016
1174
|
case 9:
|
|
1017
1175
|
case 8:
|
|
1018
|
-
sb.v5(reader.
|
|
1176
|
+
sb.v5(reader.f18());
|
|
1019
1177
|
break;
|
|
1020
1178
|
case 1:
|
|
1021
1179
|
skipElement($this, reader);
|
|
@@ -1075,14 +1233,14 @@
|
|
|
1075
1233
|
cadence = cadence === VOID ? null : cadence;
|
|
1076
1234
|
temperatureC = temperatureC === VOID ? null : temperatureC;
|
|
1077
1235
|
powerW = powerW === VOID ? null : powerW;
|
|
1078
|
-
this.
|
|
1079
|
-
this.
|
|
1080
|
-
this.
|
|
1081
|
-
this.
|
|
1236
|
+
this.q1r_1 = heartRate;
|
|
1237
|
+
this.r1r_1 = cadence;
|
|
1238
|
+
this.s1r_1 = temperatureC;
|
|
1239
|
+
this.t1r_1 = powerW;
|
|
1082
1240
|
}
|
|
1083
1241
|
function GpxParser() {
|
|
1084
1242
|
}
|
|
1085
|
-
protoOf(GpxParser).
|
|
1243
|
+
protoOf(GpxParser).u1r = function (xml, repairOnFailure) {
|
|
1086
1244
|
var tmp;
|
|
1087
1245
|
try {
|
|
1088
1246
|
tmp = parseOnce(this, xml);
|
|
@@ -1092,7 +1250,7 @@
|
|
|
1092
1250
|
var firstFailure = $p;
|
|
1093
1251
|
if (!repairOnFailure)
|
|
1094
1252
|
throw firstFailure;
|
|
1095
|
-
var repaired = GpxXmlRepair_getInstance().
|
|
1253
|
+
var repaired = GpxXmlRepair_getInstance().x1r(xml);
|
|
1096
1254
|
var tmp_1;
|
|
1097
1255
|
try {
|
|
1098
1256
|
tmp_1 = parseOnce(this, repaired);
|
|
@@ -1113,16 +1271,22 @@
|
|
|
1113
1271
|
}
|
|
1114
1272
|
return tmp;
|
|
1115
1273
|
};
|
|
1116
|
-
protoOf(GpxParser).
|
|
1274
|
+
protoOf(GpxParser).y1r = function (xml, repairOnFailure, $super) {
|
|
1117
1275
|
repairOnFailure = repairOnFailure === VOID ? true : repairOnFailure;
|
|
1118
|
-
return $super === VOID ? this.
|
|
1276
|
+
return $super === VOID ? this.u1r(xml, repairOnFailure) : $super.u1r.call(this, xml, repairOnFailure);
|
|
1119
1277
|
};
|
|
1120
1278
|
var GpxParser_instance;
|
|
1121
1279
|
function GpxParser_getInstance() {
|
|
1122
1280
|
return GpxParser_instance;
|
|
1123
1281
|
}
|
|
1282
|
+
function get_ALL_KINDS() {
|
|
1283
|
+
_init_properties_GpxToPath_kt__pb67h9();
|
|
1284
|
+
return ALL_KINDS;
|
|
1285
|
+
}
|
|
1286
|
+
var ALL_KINDS;
|
|
1124
1287
|
function firstTrackAsPath(_this__u8e3s4) {
|
|
1125
|
-
|
|
1288
|
+
_init_properties_GpxToPath_kt__pb67h9();
|
|
1289
|
+
var tmp0_elvis_lhs = firstOrNull(_this__u8e3s4.m1q_1);
|
|
1126
1290
|
var tmp;
|
|
1127
1291
|
if (tmp0_elvis_lhs == null) {
|
|
1128
1292
|
// Inline function 'kotlin.error' call
|
|
@@ -1134,16 +1298,24 @@
|
|
|
1134
1298
|
var track = tmp;
|
|
1135
1299
|
return toPath(track);
|
|
1136
1300
|
}
|
|
1137
|
-
function tracksAsPaths(_this__u8e3s4) {
|
|
1301
|
+
function tracksAsPaths(_this__u8e3s4, kinds) {
|
|
1302
|
+
kinds = kinds === VOID ? get_ALL_KINDS() : kinds;
|
|
1303
|
+
_init_properties_GpxToPath_kt__pb67h9();
|
|
1138
1304
|
// Inline function 'kotlin.collections.filter' call
|
|
1139
|
-
var tmp0 = _this__u8e3s4.
|
|
1305
|
+
var tmp0 = _this__u8e3s4.m1q_1;
|
|
1140
1306
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1141
1307
|
var destination = ArrayList_init_$Create$();
|
|
1142
1308
|
var _iterator__ex2g4s = tmp0.i();
|
|
1143
1309
|
while (_iterator__ex2g4s.j()) {
|
|
1144
1310
|
var element = _iterator__ex2g4s.k();
|
|
1145
|
-
|
|
1146
|
-
if (
|
|
1311
|
+
var tmp;
|
|
1312
|
+
if (kinds.e1(element.t1q_1)) {
|
|
1313
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1314
|
+
tmp = !element.w1q().n();
|
|
1315
|
+
} else {
|
|
1316
|
+
tmp = false;
|
|
1317
|
+
}
|
|
1318
|
+
if (tmp) {
|
|
1147
1319
|
destination.h(element);
|
|
1148
1320
|
}
|
|
1149
1321
|
}
|
|
@@ -1158,46 +1330,61 @@
|
|
|
1158
1330
|
}
|
|
1159
1331
|
return destination_0;
|
|
1160
1332
|
}
|
|
1161
|
-
function segmentsAsPaths(_this__u8e3s4) {
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
// Inline function 'kotlin.collections.
|
|
1333
|
+
function segmentsAsPaths(_this__u8e3s4, kinds) {
|
|
1334
|
+
kinds = kinds === VOID ? get_ALL_KINDS() : kinds;
|
|
1335
|
+
_init_properties_GpxToPath_kt__pb67h9();
|
|
1336
|
+
// Inline function 'kotlin.collections.filter' call
|
|
1337
|
+
var tmp0 = _this__u8e3s4.m1q_1;
|
|
1338
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
1165
1339
|
var destination = ArrayList_init_$Create$();
|
|
1166
1340
|
var _iterator__ex2g4s = tmp0.i();
|
|
1167
1341
|
while (_iterator__ex2g4s.j()) {
|
|
1168
1342
|
var element = _iterator__ex2g4s.k();
|
|
1169
|
-
|
|
1170
|
-
|
|
1343
|
+
if (kinds.e1(element.t1q_1)) {
|
|
1344
|
+
destination.h(element);
|
|
1345
|
+
}
|
|
1171
1346
|
}
|
|
1172
|
-
// Inline function 'kotlin.collections.
|
|
1173
|
-
// Inline function 'kotlin.collections.
|
|
1347
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
1348
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1174
1349
|
var destination_0 = ArrayList_init_$Create$();
|
|
1175
1350
|
var _iterator__ex2g4s_0 = destination.i();
|
|
1176
1351
|
while (_iterator__ex2g4s_0.j()) {
|
|
1177
1352
|
var element_0 = _iterator__ex2g4s_0.k();
|
|
1353
|
+
var list = element_0.s1q_1;
|
|
1354
|
+
addAll(destination_0, list);
|
|
1355
|
+
}
|
|
1356
|
+
// Inline function 'kotlin.collections.filter' call
|
|
1357
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
1358
|
+
var destination_1 = ArrayList_init_$Create$();
|
|
1359
|
+
var _iterator__ex2g4s_1 = destination_0.i();
|
|
1360
|
+
while (_iterator__ex2g4s_1.j()) {
|
|
1361
|
+
var element_1 = _iterator__ex2g4s_1.k();
|
|
1178
1362
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1179
|
-
if (!
|
|
1180
|
-
|
|
1363
|
+
if (!element_1.v1q_1.n()) {
|
|
1364
|
+
destination_1.h(element_1);
|
|
1181
1365
|
}
|
|
1182
1366
|
}
|
|
1183
1367
|
// Inline function 'kotlin.collections.map' call
|
|
1184
1368
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1185
|
-
var
|
|
1186
|
-
var
|
|
1187
|
-
while (
|
|
1188
|
-
var item =
|
|
1189
|
-
var tmp$ret$
|
|
1190
|
-
|
|
1369
|
+
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_1, 10));
|
|
1370
|
+
var _iterator__ex2g4s_2 = destination_1.i();
|
|
1371
|
+
while (_iterator__ex2g4s_2.j()) {
|
|
1372
|
+
var item = _iterator__ex2g4s_2.k();
|
|
1373
|
+
var tmp$ret$12 = toPath_0(item);
|
|
1374
|
+
destination_2.h(tmp$ret$12);
|
|
1191
1375
|
}
|
|
1192
|
-
return
|
|
1376
|
+
return destination_2;
|
|
1193
1377
|
}
|
|
1194
1378
|
function toPath(_this__u8e3s4) {
|
|
1195
|
-
|
|
1379
|
+
_init_properties_GpxToPath_kt__pb67h9();
|
|
1380
|
+
return pointsToPath(_this__u8e3s4.w1q());
|
|
1196
1381
|
}
|
|
1197
1382
|
function toPath_0(_this__u8e3s4) {
|
|
1198
|
-
|
|
1383
|
+
_init_properties_GpxToPath_kt__pb67h9();
|
|
1384
|
+
return pointsToPath(_this__u8e3s4.v1q_1);
|
|
1199
1385
|
}
|
|
1200
1386
|
function pointsToPath(points) {
|
|
1387
|
+
_init_properties_GpxToPath_kt__pb67h9();
|
|
1201
1388
|
var path = new Path(points.l());
|
|
1202
1389
|
var iterator = points.i();
|
|
1203
1390
|
var index = 0;
|
|
@@ -1205,225 +1392,271 @@
|
|
|
1205
1392
|
var i = index;
|
|
1206
1393
|
index = index + 1 | 0;
|
|
1207
1394
|
var p = iterator.k();
|
|
1208
|
-
path.
|
|
1209
|
-
path.
|
|
1210
|
-
var tmp0_elvis_lhs = p.
|
|
1211
|
-
path.
|
|
1212
|
-
var tmp1_elvis_lhs = p.
|
|
1213
|
-
path.
|
|
1214
|
-
var tmp2_elvis_lhs = p.
|
|
1215
|
-
path.
|
|
1216
|
-
var tmp3_safe_receiver = p.
|
|
1395
|
+
path.z1r(i, p.x1q_1 * 0.017453292519943295);
|
|
1396
|
+
path.a1s(i, p.y1q_1 * 0.017453292519943295);
|
|
1397
|
+
var tmp0_elvis_lhs = p.z1q_1;
|
|
1398
|
+
path.b1s(i, tmp0_elvis_lhs == null ? 0.0 : tmp0_elvis_lhs);
|
|
1399
|
+
var tmp1_elvis_lhs = p.a1r_1;
|
|
1400
|
+
path.c1s(i, toNumber(tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs));
|
|
1401
|
+
var tmp2_elvis_lhs = p.e1r_1;
|
|
1402
|
+
path.d1s(i, tmp2_elvis_lhs == null ? NaN : tmp2_elvis_lhs);
|
|
1403
|
+
var tmp3_safe_receiver = p.b1r_1;
|
|
1217
1404
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver;
|
|
1218
|
-
path.
|
|
1219
|
-
var tmp5_safe_receiver = p.
|
|
1405
|
+
path.e1s(i, tmp4_elvis_lhs == null ? NaN : tmp4_elvis_lhs);
|
|
1406
|
+
var tmp5_safe_receiver = p.c1r_1;
|
|
1220
1407
|
var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : tmp5_safe_receiver;
|
|
1221
|
-
path.
|
|
1222
|
-
var tmp7_elvis_lhs = p.
|
|
1223
|
-
path.
|
|
1408
|
+
path.f1s(i, tmp6_elvis_lhs == null ? NaN : tmp6_elvis_lhs);
|
|
1409
|
+
var tmp7_elvis_lhs = p.d1r_1;
|
|
1410
|
+
path.g1s(i, tmp7_elvis_lhs == null ? NaN : tmp7_elvis_lhs);
|
|
1224
1411
|
}
|
|
1225
|
-
path.
|
|
1412
|
+
path.q1s();
|
|
1226
1413
|
return path;
|
|
1227
1414
|
}
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
w.
|
|
1237
|
-
w.
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1415
|
+
var properties_initialized_GpxToPath_kt_83hcm9;
|
|
1416
|
+
function _init_properties_GpxToPath_kt__pb67h9() {
|
|
1417
|
+
if (!properties_initialized_GpxToPath_kt_83hcm9) {
|
|
1418
|
+
properties_initialized_GpxToPath_kt_83hcm9 = true;
|
|
1419
|
+
ALL_KINDS = toSet(get_entries());
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
function writeDocument($this, w, document, writeExtensions) {
|
|
1423
|
+
w.f1a('', 'http://www.topografix.com/GPX/1/1');
|
|
1424
|
+
w.f1a('xsi', 'http://www.w3.org/2001/XMLSchema-instance');
|
|
1425
|
+
if (writeExtensions) {
|
|
1426
|
+
w.f1a('gpxtpx', 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1');
|
|
1427
|
+
}
|
|
1428
|
+
w.h1a('http://www.topografix.com/GPX/1/1', 'gpx', '');
|
|
1429
|
+
w.j1a(null, 'version', null, '1.1');
|
|
1430
|
+
w.j1a(null, 'creator', null, '@glandais/vcyclist');
|
|
1431
|
+
w.g1a('', 'http://www.topografix.com/GPX/1/1');
|
|
1432
|
+
w.g1a('xsi', 'http://www.w3.org/2001/XMLSchema-instance');
|
|
1433
|
+
if (writeExtensions) {
|
|
1434
|
+
w.g1a('gpxtpx', 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1');
|
|
1435
|
+
}
|
|
1436
|
+
w.j1a('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');
|
|
1437
|
+
writeMetadata($this, w, document.l1q_1);
|
|
1438
|
+
var _iterator__ex2g4s = document.n1q_1.i();
|
|
1241
1439
|
while (_iterator__ex2g4s.j()) {
|
|
1242
1440
|
var waypoint = _iterator__ex2g4s.k();
|
|
1243
1441
|
writeWaypoint($this, w, waypoint);
|
|
1244
1442
|
}
|
|
1245
|
-
var _iterator__ex2g4s_0 = document.
|
|
1443
|
+
var _iterator__ex2g4s_0 = document.m1q_1.i();
|
|
1246
1444
|
while (_iterator__ex2g4s_0.j()) {
|
|
1247
1445
|
var track = _iterator__ex2g4s_0.k();
|
|
1248
|
-
|
|
1446
|
+
switch (track.t1q_1.o1_1) {
|
|
1447
|
+
case 1:
|
|
1448
|
+
writeRoute($this, w, track, writeExtensions);
|
|
1449
|
+
break;
|
|
1450
|
+
case 0:
|
|
1451
|
+
writeTrack($this, w, track, writeExtensions);
|
|
1452
|
+
break;
|
|
1453
|
+
default:
|
|
1454
|
+
noWhenBranchMatchedException();
|
|
1455
|
+
break;
|
|
1456
|
+
}
|
|
1249
1457
|
}
|
|
1250
|
-
w.
|
|
1458
|
+
w.m1a('http://www.topografix.com/GPX/1/1', 'gpx', '');
|
|
1251
1459
|
}
|
|
1252
1460
|
function writeWaypoint($this, w, waypoint) {
|
|
1253
|
-
w.
|
|
1254
|
-
w.
|
|
1255
|
-
w.
|
|
1256
|
-
var tmp0_safe_receiver = waypoint.
|
|
1461
|
+
w.h1a('http://www.topografix.com/GPX/1/1', 'wpt', '');
|
|
1462
|
+
w.j1a(null, 'lat', null, waypoint.d1q_1.toString());
|
|
1463
|
+
w.j1a(null, 'lon', null, waypoint.e1q_1.toString());
|
|
1464
|
+
var tmp0_safe_receiver = waypoint.f1q_1;
|
|
1257
1465
|
if (tmp0_safe_receiver == null)
|
|
1258
1466
|
null;
|
|
1259
1467
|
else {
|
|
1260
1468
|
// Inline function 'kotlin.let' call
|
|
1261
1469
|
writeSimpleText(GpxWriter_instance, w, 'ele', tmp0_safe_receiver.toString());
|
|
1262
1470
|
}
|
|
1263
|
-
var tmp1_safe_receiver = waypoint.
|
|
1471
|
+
var tmp1_safe_receiver = waypoint.k1q_1;
|
|
1264
1472
|
if (tmp1_safe_receiver == null)
|
|
1265
1473
|
null;
|
|
1266
1474
|
else {
|
|
1267
1475
|
// Inline function 'kotlin.let' call
|
|
1268
1476
|
writeSimpleText(GpxWriter_instance, w, 'time', Companion_getInstance().nd(tmp1_safe_receiver).toString());
|
|
1269
1477
|
}
|
|
1270
|
-
var tmp2_safe_receiver = waypoint.
|
|
1478
|
+
var tmp2_safe_receiver = waypoint.g1q_1;
|
|
1271
1479
|
if (tmp2_safe_receiver == null)
|
|
1272
1480
|
null;
|
|
1273
1481
|
else {
|
|
1274
1482
|
// Inline function 'kotlin.let' call
|
|
1275
1483
|
writeSimpleText(GpxWriter_instance, w, 'name', tmp2_safe_receiver);
|
|
1276
1484
|
}
|
|
1277
|
-
var tmp3_safe_receiver = waypoint.
|
|
1485
|
+
var tmp3_safe_receiver = waypoint.h1q_1;
|
|
1278
1486
|
if (tmp3_safe_receiver == null)
|
|
1279
1487
|
null;
|
|
1280
1488
|
else {
|
|
1281
1489
|
// Inline function 'kotlin.let' call
|
|
1282
1490
|
writeSimpleText(GpxWriter_instance, w, 'desc', tmp3_safe_receiver);
|
|
1283
1491
|
}
|
|
1284
|
-
var tmp4_safe_receiver = waypoint.
|
|
1492
|
+
var tmp4_safe_receiver = waypoint.i1q_1;
|
|
1285
1493
|
if (tmp4_safe_receiver == null)
|
|
1286
1494
|
null;
|
|
1287
1495
|
else {
|
|
1288
1496
|
// Inline function 'kotlin.let' call
|
|
1289
1497
|
writeSimpleText(GpxWriter_instance, w, 'sym', tmp4_safe_receiver);
|
|
1290
1498
|
}
|
|
1291
|
-
var tmp5_safe_receiver = waypoint.
|
|
1499
|
+
var tmp5_safe_receiver = waypoint.j1q_1;
|
|
1292
1500
|
if (tmp5_safe_receiver == null)
|
|
1293
1501
|
null;
|
|
1294
1502
|
else {
|
|
1295
1503
|
// Inline function 'kotlin.let' call
|
|
1296
1504
|
writeSimpleText(GpxWriter_instance, w, 'type', tmp5_safe_receiver);
|
|
1297
1505
|
}
|
|
1298
|
-
w.
|
|
1506
|
+
w.m1a('http://www.topografix.com/GPX/1/1', 'wpt', '');
|
|
1299
1507
|
}
|
|
1300
1508
|
function writeMetadata($this, w, name) {
|
|
1301
|
-
w.
|
|
1509
|
+
w.h1a('http://www.topografix.com/GPX/1/1', 'metadata', '');
|
|
1302
1510
|
writeSimpleText($this, w, 'name', name);
|
|
1303
|
-
w.
|
|
1511
|
+
w.m1a('http://www.topografix.com/GPX/1/1', 'metadata', '');
|
|
1304
1512
|
}
|
|
1305
|
-
function writeTrack($this, w, track) {
|
|
1306
|
-
w.
|
|
1307
|
-
var tmp0_safe_receiver = track.
|
|
1513
|
+
function writeTrack($this, w, track, writeExtensions) {
|
|
1514
|
+
w.h1a('http://www.topografix.com/GPX/1/1', 'trk', '');
|
|
1515
|
+
var tmp0_safe_receiver = track.q1q_1;
|
|
1308
1516
|
if (tmp0_safe_receiver == null)
|
|
1309
1517
|
null;
|
|
1310
1518
|
else {
|
|
1311
1519
|
// Inline function 'kotlin.let' call
|
|
1312
1520
|
writeSimpleText(GpxWriter_instance, w, 'name', tmp0_safe_receiver);
|
|
1313
1521
|
}
|
|
1314
|
-
var tmp1_safe_receiver = track.
|
|
1522
|
+
var tmp1_safe_receiver = track.r1q_1;
|
|
1315
1523
|
if (tmp1_safe_receiver == null)
|
|
1316
1524
|
null;
|
|
1317
1525
|
else {
|
|
1318
1526
|
// Inline function 'kotlin.let' call
|
|
1319
1527
|
writeSimpleText(GpxWriter_instance, w, 'type', tmp1_safe_receiver);
|
|
1320
1528
|
}
|
|
1321
|
-
var _iterator__ex2g4s = track.
|
|
1529
|
+
var _iterator__ex2g4s = track.s1q_1.i();
|
|
1322
1530
|
while (_iterator__ex2g4s.j()) {
|
|
1323
1531
|
var segment = _iterator__ex2g4s.k();
|
|
1324
|
-
w.
|
|
1325
|
-
var _iterator__ex2g4s_0 = segment.
|
|
1532
|
+
w.h1a('http://www.topografix.com/GPX/1/1', 'trkseg', '');
|
|
1533
|
+
var _iterator__ex2g4s_0 = segment.v1q_1.i();
|
|
1326
1534
|
while (_iterator__ex2g4s_0.j()) {
|
|
1327
1535
|
var p = _iterator__ex2g4s_0.k();
|
|
1328
|
-
writeTrackPoint($this, w, p);
|
|
1536
|
+
writeTrackPoint($this, w, p, writeExtensions);
|
|
1329
1537
|
}
|
|
1330
|
-
w.
|
|
1538
|
+
w.m1a('http://www.topografix.com/GPX/1/1', 'trkseg', '');
|
|
1539
|
+
}
|
|
1540
|
+
w.m1a('http://www.topografix.com/GPX/1/1', 'trk', '');
|
|
1541
|
+
}
|
|
1542
|
+
function writeRoute($this, w, route, writeExtensions) {
|
|
1543
|
+
w.h1a('http://www.topografix.com/GPX/1/1', 'rte', '');
|
|
1544
|
+
var tmp0_safe_receiver = route.q1q_1;
|
|
1545
|
+
if (tmp0_safe_receiver == null)
|
|
1546
|
+
null;
|
|
1547
|
+
else {
|
|
1548
|
+
// Inline function 'kotlin.let' call
|
|
1549
|
+
writeSimpleText(GpxWriter_instance, w, 'name', tmp0_safe_receiver);
|
|
1550
|
+
}
|
|
1551
|
+
var tmp1_safe_receiver = route.r1q_1;
|
|
1552
|
+
if (tmp1_safe_receiver == null)
|
|
1553
|
+
null;
|
|
1554
|
+
else {
|
|
1555
|
+
// Inline function 'kotlin.let' call
|
|
1556
|
+
writeSimpleText(GpxWriter_instance, w, 'type', tmp1_safe_receiver);
|
|
1557
|
+
}
|
|
1558
|
+
var _iterator__ex2g4s = route.w1q().i();
|
|
1559
|
+
while (_iterator__ex2g4s.j()) {
|
|
1560
|
+
var p = _iterator__ex2g4s.k();
|
|
1561
|
+
writeTrackPoint($this, w, p, writeExtensions, 'rtept');
|
|
1331
1562
|
}
|
|
1332
|
-
w.
|
|
1563
|
+
w.m1a('http://www.topografix.com/GPX/1/1', 'rte', '');
|
|
1333
1564
|
}
|
|
1334
|
-
function writeTrackPoint($this, w, p) {
|
|
1335
|
-
|
|
1336
|
-
w.
|
|
1337
|
-
w.
|
|
1338
|
-
|
|
1565
|
+
function writeTrackPoint($this, w, p, writeExtensions, localName) {
|
|
1566
|
+
localName = localName === VOID ? 'trkpt' : localName;
|
|
1567
|
+
w.h1a('http://www.topografix.com/GPX/1/1', localName, '');
|
|
1568
|
+
w.j1a(null, 'lat', null, p.x1q_1.toString());
|
|
1569
|
+
w.j1a(null, 'lon', null, p.y1q_1.toString());
|
|
1570
|
+
var tmp0_safe_receiver = p.a1r_1;
|
|
1339
1571
|
if (tmp0_safe_receiver == null)
|
|
1340
1572
|
null;
|
|
1341
1573
|
else {
|
|
1342
1574
|
// Inline function 'kotlin.let' call
|
|
1343
1575
|
writeSimpleText(GpxWriter_instance, w, 'time', Companion_getInstance().nd(tmp0_safe_receiver).toString());
|
|
1344
1576
|
}
|
|
1345
|
-
var tmp1_safe_receiver = p.
|
|
1577
|
+
var tmp1_safe_receiver = p.z1q_1;
|
|
1346
1578
|
if (tmp1_safe_receiver == null)
|
|
1347
1579
|
null;
|
|
1348
1580
|
else {
|
|
1349
1581
|
// Inline function 'kotlin.let' call
|
|
1350
1582
|
writeSimpleText(GpxWriter_instance, w, 'ele', tmp1_safe_receiver.toString());
|
|
1351
1583
|
}
|
|
1352
|
-
var hasGarminExt = !(p.
|
|
1353
|
-
var hasPower = !(p.
|
|
1354
|
-
if (hasGarminExt || hasPower) {
|
|
1355
|
-
w.
|
|
1584
|
+
var hasGarminExt = !(p.b1r_1 == null) || !(p.c1r_1 == null) || !(p.d1r_1 == null);
|
|
1585
|
+
var hasPower = !(p.e1r_1 == null);
|
|
1586
|
+
if (writeExtensions && (hasGarminExt || hasPower)) {
|
|
1587
|
+
w.h1a('http://www.topografix.com/GPX/1/1', 'extensions', '');
|
|
1356
1588
|
if (hasPower) {
|
|
1357
|
-
writeSimpleText($this, w, 'power', p.
|
|
1589
|
+
writeSimpleText($this, w, 'power', p.e1r_1.toString());
|
|
1358
1590
|
}
|
|
1359
1591
|
if (hasGarminExt) {
|
|
1360
|
-
w.
|
|
1361
|
-
var tmp2_safe_receiver = p.
|
|
1592
|
+
w.h1a('http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'TrackPointExtension', 'gpxtpx');
|
|
1593
|
+
var tmp2_safe_receiver = p.b1r_1;
|
|
1362
1594
|
if (tmp2_safe_receiver == null)
|
|
1363
1595
|
null;
|
|
1364
1596
|
else {
|
|
1365
1597
|
// Inline function 'kotlin.let' call
|
|
1366
1598
|
writeNamespaced(GpxWriter_instance, w, 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'hr', 'gpxtpx', tmp2_safe_receiver.toString());
|
|
1367
1599
|
}
|
|
1368
|
-
var tmp3_safe_receiver = p.
|
|
1600
|
+
var tmp3_safe_receiver = p.c1r_1;
|
|
1369
1601
|
if (tmp3_safe_receiver == null)
|
|
1370
1602
|
null;
|
|
1371
1603
|
else {
|
|
1372
1604
|
// Inline function 'kotlin.let' call
|
|
1373
1605
|
writeNamespaced(GpxWriter_instance, w, 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'cad', 'gpxtpx', tmp3_safe_receiver.toString());
|
|
1374
1606
|
}
|
|
1375
|
-
var tmp4_safe_receiver = p.
|
|
1607
|
+
var tmp4_safe_receiver = p.d1r_1;
|
|
1376
1608
|
if (tmp4_safe_receiver == null)
|
|
1377
1609
|
null;
|
|
1378
1610
|
else {
|
|
1379
1611
|
// Inline function 'kotlin.let' call
|
|
1380
1612
|
writeNamespaced(GpxWriter_instance, w, 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'atemp', 'gpxtpx', tmp4_safe_receiver.toString());
|
|
1381
1613
|
}
|
|
1382
|
-
w.
|
|
1614
|
+
w.m1a('http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'TrackPointExtension', 'gpxtpx');
|
|
1383
1615
|
}
|
|
1384
|
-
w.
|
|
1616
|
+
w.m1a('http://www.topografix.com/GPX/1/1', 'extensions', '');
|
|
1385
1617
|
}
|
|
1386
|
-
w.
|
|
1618
|
+
w.m1a('http://www.topografix.com/GPX/1/1', localName, '');
|
|
1387
1619
|
}
|
|
1388
1620
|
function writeSimpleText($this, w, localName, text) {
|
|
1389
|
-
w.
|
|
1390
|
-
w.
|
|
1391
|
-
w.
|
|
1621
|
+
w.h1a('http://www.topografix.com/GPX/1/1', localName, '');
|
|
1622
|
+
w.i1a(text);
|
|
1623
|
+
w.m1a('http://www.topografix.com/GPX/1/1', localName, '');
|
|
1392
1624
|
}
|
|
1393
1625
|
function writeNamespaced($this, w, namespace, localName, prefix, text) {
|
|
1394
|
-
w.
|
|
1395
|
-
w.
|
|
1396
|
-
w.
|
|
1626
|
+
w.h1a(namespace, localName, prefix);
|
|
1627
|
+
w.i1a(text);
|
|
1628
|
+
w.m1a(namespace, localName, prefix);
|
|
1397
1629
|
}
|
|
1398
1630
|
function GpxWriter() {
|
|
1399
|
-
this.
|
|
1400
|
-
this.
|
|
1401
|
-
this.
|
|
1402
|
-
this.
|
|
1403
|
-
this.
|
|
1404
|
-
this.
|
|
1405
|
-
this.
|
|
1406
|
-
}
|
|
1407
|
-
protoOf(GpxWriter).
|
|
1631
|
+
this.r1s_1 = 'http://www.topografix.com/GPX/1/1';
|
|
1632
|
+
this.s1s_1 = 'http://www.w3.org/2001/XMLSchema-instance';
|
|
1633
|
+
this.t1s_1 = 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1';
|
|
1634
|
+
this.u1s_1 = 'xsi';
|
|
1635
|
+
this.v1s_1 = 'gpxtpx';
|
|
1636
|
+
this.w1s_1 = 'http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd';
|
|
1637
|
+
this.x1s_1 = '@glandais/vcyclist';
|
|
1638
|
+
}
|
|
1639
|
+
protoOf(GpxWriter).y1s = function (document, writeExtensions) {
|
|
1408
1640
|
var out = StringBuilder_init_$Create$();
|
|
1409
1641
|
out.v5('<?xml version="1.0" encoding="UTF-8"?>\n');
|
|
1410
1642
|
var writer = newGenericWriter(get_xmlStreaming(), out, false, XmlDeclMode_None_getInstance());
|
|
1411
1643
|
try {
|
|
1412
|
-
writeDocument(this, writer, document);
|
|
1644
|
+
writeDocument(this, writer, document, writeExtensions);
|
|
1413
1645
|
}finally {
|
|
1414
|
-
writer.
|
|
1646
|
+
writer.n18();
|
|
1415
1647
|
}
|
|
1416
1648
|
return out.toString();
|
|
1417
1649
|
};
|
|
1418
|
-
protoOf(GpxWriter).
|
|
1419
|
-
return this.
|
|
1650
|
+
protoOf(GpxWriter).z1s = function (paths, name, trackNames, waypoints, startTime, writeExtensions) {
|
|
1651
|
+
return this.y1s(pathsToGpxDocument(paths, name, trackNames, waypoints, VOID, startTime), writeExtensions);
|
|
1420
1652
|
};
|
|
1421
|
-
protoOf(GpxWriter).
|
|
1653
|
+
protoOf(GpxWriter).a1t = function (paths, name, trackNames, waypoints, startTime, writeExtensions, $super) {
|
|
1422
1654
|
name = name === VOID ? 'noname' : name;
|
|
1423
1655
|
trackNames = trackNames === VOID ? null : trackNames;
|
|
1424
1656
|
waypoints = waypoints === VOID ? emptyList() : waypoints;
|
|
1425
1657
|
startTime = startTime === VOID ? null : startTime;
|
|
1426
|
-
|
|
1658
|
+
writeExtensions = writeExtensions === VOID ? true : writeExtensions;
|
|
1659
|
+
return $super === VOID ? this.z1s(paths, name, trackNames, waypoints, startTime, writeExtensions) : $super.z1s.call(this, paths, name, trackNames, waypoints, startTime, writeExtensions);
|
|
1427
1660
|
};
|
|
1428
1661
|
var GpxWriter_instance;
|
|
1429
1662
|
function GpxWriter_getInstance() {
|
|
@@ -1522,11 +1755,11 @@
|
|
|
1522
1755
|
while (i < refs.l()) {
|
|
1523
1756
|
var high = refs.m(i);
|
|
1524
1757
|
var low = getOrNull(refs, i + 1 | 0);
|
|
1525
|
-
if (!(low == null) && high.
|
|
1526
|
-
sb.y8(xml, copiedUpTo, high.
|
|
1527
|
-
var codePoint = (65536 + imul(high.
|
|
1758
|
+
if (!(low == null) && high.c1t_1 === low.b1t_1 && isHighSurrogate_0($this, high.d1t_1) && isLowSurrogate_0($this, low.d1t_1)) {
|
|
1759
|
+
sb.y8(xml, copiedUpTo, high.b1t_1);
|
|
1760
|
+
var codePoint = (65536 + imul(high.d1t_1 - 55296 | 0, 1024) | 0) + (low.d1t_1 - 56320 | 0) | 0;
|
|
1528
1761
|
sb.v5('&#').a9(codePoint).w5(_Char___init__impl__6a9atx(59));
|
|
1529
|
-
copiedUpTo = low.
|
|
1762
|
+
copiedUpTo = low.c1t_1;
|
|
1530
1763
|
count = count + 1 | 0;
|
|
1531
1764
|
i = i + 2 | 0;
|
|
1532
1765
|
} else {
|
|
@@ -1539,17 +1772,17 @@
|
|
|
1539
1772
|
return new Pair(sb.toString(), count);
|
|
1540
1773
|
}
|
|
1541
1774
|
function NumericRef(start, end, value) {
|
|
1542
|
-
this.
|
|
1543
|
-
this.
|
|
1544
|
-
this.
|
|
1775
|
+
this.b1t_1 = start;
|
|
1776
|
+
this.c1t_1 = end;
|
|
1777
|
+
this.d1t_1 = value;
|
|
1545
1778
|
}
|
|
1546
1779
|
protoOf(NumericRef).toString = function () {
|
|
1547
|
-
return 'NumericRef(start=' + this.
|
|
1780
|
+
return 'NumericRef(start=' + this.b1t_1 + ', end=' + this.c1t_1 + ', value=' + this.d1t_1 + ')';
|
|
1548
1781
|
};
|
|
1549
1782
|
protoOf(NumericRef).hashCode = function () {
|
|
1550
|
-
var result = this.
|
|
1551
|
-
result = imul(result, 31) + this.
|
|
1552
|
-
result = imul(result, 31) + this.
|
|
1783
|
+
var result = this.b1t_1;
|
|
1784
|
+
result = imul(result, 31) + this.c1t_1 | 0;
|
|
1785
|
+
result = imul(result, 31) + this.d1t_1 | 0;
|
|
1553
1786
|
return result;
|
|
1554
1787
|
};
|
|
1555
1788
|
protoOf(NumericRef).equals = function (other) {
|
|
@@ -1557,11 +1790,11 @@
|
|
|
1557
1790
|
return true;
|
|
1558
1791
|
if (!(other instanceof NumericRef))
|
|
1559
1792
|
return false;
|
|
1560
|
-
if (!(this.
|
|
1793
|
+
if (!(this.b1t_1 === other.b1t_1))
|
|
1561
1794
|
return false;
|
|
1562
|
-
if (!(this.
|
|
1795
|
+
if (!(this.c1t_1 === other.c1t_1))
|
|
1563
1796
|
return false;
|
|
1564
|
-
if (!(this.
|
|
1797
|
+
if (!(this.d1t_1 === other.d1t_1))
|
|
1565
1798
|
return false;
|
|
1566
1799
|
return true;
|
|
1567
1800
|
};
|
|
@@ -1648,20 +1881,20 @@
|
|
|
1648
1881
|
}
|
|
1649
1882
|
if (j >= n || !(charCodeAt(xml, j) === _Char___init__impl__6a9atx(59)))
|
|
1650
1883
|
return -1;
|
|
1651
|
-
return $this.
|
|
1884
|
+
return $this.v1r_1.e1(substring_0(xml, nameStart, j)) ? j : -1;
|
|
1652
1885
|
}
|
|
1653
1886
|
function isHexDigit($this, $receiver) {
|
|
1654
1887
|
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);
|
|
1655
1888
|
}
|
|
1656
1889
|
function GpxXmlRepair() {
|
|
1657
1890
|
GpxXmlRepair_instance = this;
|
|
1658
|
-
this.
|
|
1659
|
-
this.
|
|
1891
|
+
this.v1r_1 = setOf(['amp', 'lt', 'gt', 'apos', 'quot']);
|
|
1892
|
+
this.w1r_1 = 20;
|
|
1660
1893
|
}
|
|
1661
|
-
protoOf(GpxXmlRepair).
|
|
1662
|
-
return this.
|
|
1894
|
+
protoOf(GpxXmlRepair).x1r = function (xml) {
|
|
1895
|
+
return this.g1t(xml).e1t_1;
|
|
1663
1896
|
};
|
|
1664
|
-
protoOf(GpxXmlRepair).
|
|
1897
|
+
protoOf(GpxXmlRepair).g1t = function (xml) {
|
|
1665
1898
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1666
1899
|
var repairs = ArrayList_init_$Create$();
|
|
1667
1900
|
var current = xml;
|
|
@@ -1720,15 +1953,15 @@
|
|
|
1720
1953
|
return GpxXmlRepair_instance;
|
|
1721
1954
|
}
|
|
1722
1955
|
function RepairResult(xml, repairs) {
|
|
1723
|
-
this.
|
|
1724
|
-
this.
|
|
1956
|
+
this.e1t_1 = xml;
|
|
1957
|
+
this.f1t_1 = repairs;
|
|
1725
1958
|
}
|
|
1726
1959
|
protoOf(RepairResult).toString = function () {
|
|
1727
|
-
return 'RepairResult(xml=' + this.
|
|
1960
|
+
return 'RepairResult(xml=' + this.e1t_1 + ', repairs=' + toString_0(this.f1t_1) + ')';
|
|
1728
1961
|
};
|
|
1729
1962
|
protoOf(RepairResult).hashCode = function () {
|
|
1730
|
-
var result = getStringHashCode(this.
|
|
1731
|
-
result = imul(result, 31) + hashCode(this.
|
|
1963
|
+
var result = getStringHashCode(this.e1t_1);
|
|
1964
|
+
result = imul(result, 31) + hashCode(this.f1t_1) | 0;
|
|
1732
1965
|
return result;
|
|
1733
1966
|
};
|
|
1734
1967
|
protoOf(RepairResult).equals = function (other) {
|
|
@@ -1736,9 +1969,9 @@
|
|
|
1736
1969
|
return true;
|
|
1737
1970
|
if (!(other instanceof RepairResult))
|
|
1738
1971
|
return false;
|
|
1739
|
-
if (!(this.
|
|
1972
|
+
if (!(this.e1t_1 === other.e1t_1))
|
|
1740
1973
|
return false;
|
|
1741
|
-
if (!equals(this.
|
|
1974
|
+
if (!equals(this.f1t_1, other.f1t_1))
|
|
1742
1975
|
return false;
|
|
1743
1976
|
return true;
|
|
1744
1977
|
};
|
|
@@ -1759,9 +1992,9 @@
|
|
|
1759
1992
|
var negative = value < 0.0;
|
|
1760
1993
|
// Inline function 'kotlin.math.abs' call
|
|
1761
1994
|
var absValue = Math.abs(value);
|
|
1762
|
-
var scale = toNumber($this.
|
|
1995
|
+
var scale = toNumber($this.i1t_1[decimals]);
|
|
1763
1996
|
var scaledLong = numberToLong(round(absValue * scale));
|
|
1764
|
-
var whole = $this.
|
|
1997
|
+
var whole = $this.i1t_1[decimals];
|
|
1765
1998
|
var intPart = divide(scaledLong, whole);
|
|
1766
1999
|
var sign = negative && !equalsLong(scaledLong, new Long(0, 0)) ? '-' : '';
|
|
1767
2000
|
var tmp;
|
|
@@ -1775,7 +2008,7 @@
|
|
|
1775
2008
|
}
|
|
1776
2009
|
function CsvNumberFormat() {
|
|
1777
2010
|
CsvNumberFormat_instance = this;
|
|
1778
|
-
this.
|
|
2011
|
+
this.h1t_1 = 12;
|
|
1779
2012
|
var tmp = this;
|
|
1780
2013
|
// Inline function 'kotlin.also' call
|
|
1781
2014
|
var this_0 = longArray(13);
|
|
@@ -1790,9 +2023,9 @@
|
|
|
1790
2023
|
p = multiply(p, new Long(10, 0));
|
|
1791
2024
|
}
|
|
1792
2025
|
while (inductionVariable <= last);
|
|
1793
|
-
tmp.
|
|
2026
|
+
tmp.i1t_1 = this_0;
|
|
1794
2027
|
}
|
|
1795
|
-
protoOf(CsvNumberFormat).
|
|
2028
|
+
protoOf(CsvNumberFormat).j1t = function (value, decimals) {
|
|
1796
2029
|
if (isNaN_0(value))
|
|
1797
2030
|
return '';
|
|
1798
2031
|
if (isInfinite(value))
|
|
@@ -1817,7 +2050,7 @@
|
|
|
1817
2050
|
return CsvNumberFormat_instance;
|
|
1818
2051
|
}
|
|
1819
2052
|
function headerFor($this, field, unitsInHeader) {
|
|
1820
|
-
return unitsInHeader ? field.
|
|
2053
|
+
return unitsInHeader ? field.m1t_1 + ' (' + field.n1t_1 + ')' : field.m1t_1;
|
|
1821
2054
|
}
|
|
1822
2055
|
function appendRow($this, sb, cells, options) {
|
|
1823
2056
|
var iterator = cells.i();
|
|
@@ -1827,9 +2060,9 @@
|
|
|
1827
2060
|
index = index + 1 | 0;
|
|
1828
2061
|
var cell = iterator.k();
|
|
1829
2062
|
if (i > 0) {
|
|
1830
|
-
sb.w5(options.
|
|
2063
|
+
sb.w5(options.t1t_1);
|
|
1831
2064
|
}
|
|
1832
|
-
sb.v5(escapeCsvCell($this, cell, options.
|
|
2065
|
+
sb.v5(escapeCsvCell($this, cell, options.t1t_1));
|
|
1833
2066
|
}
|
|
1834
2067
|
}
|
|
1835
2068
|
function escapeCsvCell($this, cell, separator) {
|
|
@@ -1858,9 +2091,9 @@
|
|
|
1858
2091
|
}
|
|
1859
2092
|
function CsvWriter() {
|
|
1860
2093
|
}
|
|
1861
|
-
protoOf(CsvWriter).
|
|
1862
|
-
var tmp0_elvis_lhs = options.
|
|
1863
|
-
var fields = tmp0_elvis_lhs == null ?
|
|
2094
|
+
protoOf(CsvWriter).x1t = function (path, options) {
|
|
2095
|
+
var tmp0_elvis_lhs = options.s1t_1;
|
|
2096
|
+
var fields = tmp0_elvis_lhs == null ? get_entries_0() : tmp0_elvis_lhs;
|
|
1864
2097
|
var sb = StringBuilder_init_$Create$();
|
|
1865
2098
|
// Inline function 'kotlin.collections.map' call
|
|
1866
2099
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1868,24 +2101,24 @@
|
|
|
1868
2101
|
var _iterator__ex2g4s = fields.i();
|
|
1869
2102
|
while (_iterator__ex2g4s.j()) {
|
|
1870
2103
|
var item = _iterator__ex2g4s.k();
|
|
1871
|
-
var tmp$ret$2 = headerFor(CsvWriter_instance, item, options.
|
|
2104
|
+
var tmp$ret$2 = headerFor(CsvWriter_instance, item, options.u1t_1);
|
|
1872
2105
|
destination.h(tmp$ret$2);
|
|
1873
2106
|
}
|
|
1874
2107
|
appendRow(this, sb, destination, options);
|
|
1875
2108
|
var inductionVariable = 0;
|
|
1876
|
-
var last = path.
|
|
2109
|
+
var last = path.f1r_1;
|
|
1877
2110
|
if (inductionVariable < last)
|
|
1878
2111
|
do {
|
|
1879
2112
|
var i = inductionVariable;
|
|
1880
2113
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1881
|
-
sb.v5(options.
|
|
2114
|
+
sb.v5(options.w1t_1);
|
|
1882
2115
|
// Inline function 'kotlin.collections.map' call
|
|
1883
2116
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1884
2117
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(fields, 10));
|
|
1885
2118
|
var _iterator__ex2g4s_0 = fields.i();
|
|
1886
2119
|
while (_iterator__ex2g4s_0.j()) {
|
|
1887
2120
|
var item_0 = _iterator__ex2g4s_0.k();
|
|
1888
|
-
var tmp$ret$5 = CsvNumberFormat_getInstance().
|
|
2121
|
+
var tmp$ret$5 = CsvNumberFormat_getInstance().j1t(path.y1t(i, item_0), options.v1t_1);
|
|
1889
2122
|
destination_0.h(tmp$ret$5);
|
|
1890
2123
|
}
|
|
1891
2124
|
appendRow(this, sb, destination_0, options);
|
|
@@ -1903,21 +2136,21 @@
|
|
|
1903
2136
|
unitsInHeader = unitsInHeader === VOID ? true : unitsInHeader;
|
|
1904
2137
|
decimals = decimals === VOID ? null : decimals;
|
|
1905
2138
|
lineSeparator = lineSeparator === VOID ? '\n' : lineSeparator;
|
|
1906
|
-
this.
|
|
1907
|
-
this.
|
|
1908
|
-
this.
|
|
1909
|
-
this.
|
|
1910
|
-
this.
|
|
2139
|
+
this.s1t_1 = fields;
|
|
2140
|
+
this.t1t_1 = separator;
|
|
2141
|
+
this.u1t_1 = unitsInHeader;
|
|
2142
|
+
this.v1t_1 = decimals;
|
|
2143
|
+
this.w1t_1 = lineSeparator;
|
|
1911
2144
|
}
|
|
1912
2145
|
protoOf(CsvOptions).toString = function () {
|
|
1913
|
-
return 'CsvOptions(fields=' + toString(this.
|
|
2146
|
+
return 'CsvOptions(fields=' + toString(this.s1t_1) + ', separator=' + toString_1(this.t1t_1) + ', unitsInHeader=' + this.u1t_1 + ', decimals=' + this.v1t_1 + ', lineSeparator=' + this.w1t_1 + ')';
|
|
1914
2147
|
};
|
|
1915
2148
|
protoOf(CsvOptions).hashCode = function () {
|
|
1916
|
-
var result = this.
|
|
1917
|
-
result = imul(result, 31) + Char__hashCode_impl_otmys(this.
|
|
1918
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
1919
|
-
result = imul(result, 31) + (this.
|
|
1920
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2149
|
+
var result = this.s1t_1 == null ? 0 : hashCode(this.s1t_1);
|
|
2150
|
+
result = imul(result, 31) + Char__hashCode_impl_otmys(this.t1t_1) | 0;
|
|
2151
|
+
result = imul(result, 31) + getBooleanHashCode(this.u1t_1) | 0;
|
|
2152
|
+
result = imul(result, 31) + (this.v1t_1 == null ? 0 : this.v1t_1) | 0;
|
|
2153
|
+
result = imul(result, 31) + getStringHashCode(this.w1t_1) | 0;
|
|
1921
2154
|
return result;
|
|
1922
2155
|
};
|
|
1923
2156
|
protoOf(CsvOptions).equals = function (other) {
|
|
@@ -1925,15 +2158,15 @@
|
|
|
1925
2158
|
return true;
|
|
1926
2159
|
if (!(other instanceof CsvOptions))
|
|
1927
2160
|
return false;
|
|
1928
|
-
if (!equals(this.
|
|
2161
|
+
if (!equals(this.s1t_1, other.s1t_1))
|
|
1929
2162
|
return false;
|
|
1930
|
-
if (!(this.
|
|
2163
|
+
if (!(this.t1t_1 === other.t1t_1))
|
|
1931
2164
|
return false;
|
|
1932
|
-
if (!(this.
|
|
2165
|
+
if (!(this.u1t_1 === other.u1t_1))
|
|
1933
2166
|
return false;
|
|
1934
|
-
if (!(this.
|
|
2167
|
+
if (!(this.v1t_1 == other.v1t_1))
|
|
1935
2168
|
return false;
|
|
1936
|
-
if (!(this.
|
|
2169
|
+
if (!(this.w1t_1 === other.w1t_1))
|
|
1937
2170
|
return false;
|
|
1938
2171
|
return true;
|
|
1939
2172
|
};
|
|
@@ -1941,13 +2174,13 @@
|
|
|
1941
2174
|
var inner = indent + indent;
|
|
1942
2175
|
appendKeyRaw($this, sb, indent, 'meta', colon);
|
|
1943
2176
|
sb.w5(_Char___init__impl__6a9atx(123)).v5(nl);
|
|
1944
|
-
appendKeyValueRaw($this, sb, inner, 'totalDistance', numberOrNull($this, path.
|
|
2177
|
+
appendKeyValueRaw($this, sb, inner, 'totalDistance', numberOrNull($this, path.j1s_1, decimals), colon);
|
|
1945
2178
|
sb.w5(_Char___init__impl__6a9atx(44)).v5(nl);
|
|
1946
|
-
appendKeyValueRaw($this, sb, inner, 'durationMs', numberOrNull($this, path.
|
|
2179
|
+
appendKeyValueRaw($this, sb, inner, 'durationMs', numberOrNull($this, path.o1s_1, decimals), colon);
|
|
1947
2180
|
sb.w5(_Char___init__impl__6a9atx(44)).v5(nl);
|
|
1948
|
-
appendKeyValueRaw($this, sb, inner, 'elevationGain', numberOrNull($this, path.
|
|
2181
|
+
appendKeyValueRaw($this, sb, inner, 'elevationGain', numberOrNull($this, path.m1s_1, decimals), colon);
|
|
1949
2182
|
sb.w5(_Char___init__impl__6a9atx(44)).v5(nl);
|
|
1950
|
-
appendKeyValueRaw($this, sb, inner, 'elevationLoss', numberOrNull($this, path.
|
|
2183
|
+
appendKeyValueRaw($this, sb, inner, 'elevationLoss', numberOrNull($this, path.n1s_1, decimals), colon);
|
|
1951
2184
|
sb.w5(_Char___init__impl__6a9atx(44)).v5(nl);
|
|
1952
2185
|
appendKeyRaw($this, sb, inner, 'units', colon);
|
|
1953
2186
|
sb.w5(_Char___init__impl__6a9atx(123)).v5(nl);
|
|
@@ -1958,7 +2191,7 @@
|
|
|
1958
2191
|
var i = index;
|
|
1959
2192
|
index = index + 1 | 0;
|
|
1960
2193
|
var field = iterator.k();
|
|
1961
|
-
appendKeyValueRaw($this, sb, innerUnits, $this.
|
|
2194
|
+
appendKeyValueRaw($this, sb, innerUnits, $this.z1t(field.m1t_1), '"' + $this.z1t(field.n1t_1) + '"', colon);
|
|
1962
2195
|
if (!(i === get_lastIndex(fields))) {
|
|
1963
2196
|
sb.w5(_Char___init__impl__6a9atx(44));
|
|
1964
2197
|
}
|
|
@@ -1976,10 +2209,10 @@
|
|
|
1976
2209
|
var fi = index;
|
|
1977
2210
|
index = index + 1 | 0;
|
|
1978
2211
|
var field = iterator.k();
|
|
1979
|
-
appendKeyRaw($this, sb, inner, $this.
|
|
2212
|
+
appendKeyRaw($this, sb, inner, $this.z1t(field.m1t_1), colon);
|
|
1980
2213
|
sb.w5(_Char___init__impl__6a9atx(91));
|
|
1981
2214
|
var inductionVariable = 0;
|
|
1982
|
-
var last = path.
|
|
2215
|
+
var last = path.f1r_1;
|
|
1983
2216
|
if (inductionVariable < last)
|
|
1984
2217
|
do {
|
|
1985
2218
|
var i = inductionVariable;
|
|
@@ -1987,7 +2220,7 @@
|
|
|
1987
2220
|
if (i > 0) {
|
|
1988
2221
|
sb.w5(_Char___init__impl__6a9atx(44));
|
|
1989
2222
|
}
|
|
1990
|
-
sb.v5(numberOrNull($this, path.
|
|
2223
|
+
sb.v5(numberOrNull($this, path.y1t(i, field), options.c1u_1));
|
|
1991
2224
|
}
|
|
1992
2225
|
while (inductionVariable < last);
|
|
1993
2226
|
sb.w5(_Char___init__impl__6a9atx(93));
|
|
@@ -2004,7 +2237,7 @@
|
|
|
2004
2237
|
if (isNaN_0(value) || isInfinite(value)) {
|
|
2005
2238
|
tmp = 'null';
|
|
2006
2239
|
} else {
|
|
2007
|
-
tmp = CsvNumberFormat_getInstance().
|
|
2240
|
+
tmp = CsvNumberFormat_getInstance().j1t(value, decimals);
|
|
2008
2241
|
}
|
|
2009
2242
|
return tmp;
|
|
2010
2243
|
}
|
|
@@ -2017,18 +2250,18 @@
|
|
|
2017
2250
|
}
|
|
2018
2251
|
function JsonWriter() {
|
|
2019
2252
|
}
|
|
2020
|
-
protoOf(JsonWriter).
|
|
2021
|
-
var tmp0_elvis_lhs = options.
|
|
2022
|
-
var fields = tmp0_elvis_lhs == null ?
|
|
2253
|
+
protoOf(JsonWriter).e1u = function (path, options) {
|
|
2254
|
+
var tmp0_elvis_lhs = options.a1u_1;
|
|
2255
|
+
var fields = tmp0_elvis_lhs == null ? get_entries_0() : tmp0_elvis_lhs;
|
|
2023
2256
|
var sb = StringBuilder_init_$Create$();
|
|
2024
|
-
var indent = options.
|
|
2025
|
-
var nl = options.
|
|
2026
|
-
var colon = options.
|
|
2257
|
+
var indent = options.b1u_1 ? ' ' : '';
|
|
2258
|
+
var nl = options.b1u_1 ? '\n' : '';
|
|
2259
|
+
var colon = options.b1u_1 ? ': ' : ':';
|
|
2027
2260
|
sb.w5(_Char___init__impl__6a9atx(123)).v5(nl);
|
|
2028
|
-
appendKeyValueRaw(this, sb, indent, 'size', path.
|
|
2261
|
+
appendKeyValueRaw(this, sb, indent, 'size', path.f1r_1.toString(), colon);
|
|
2029
2262
|
sb.w5(_Char___init__impl__6a9atx(44)).v5(nl);
|
|
2030
|
-
if (options.
|
|
2031
|
-
appendMeta(this, sb, path, fields, options.
|
|
2263
|
+
if (options.d1u_1) {
|
|
2264
|
+
appendMeta(this, sb, path, fields, options.c1u_1, indent, nl, colon);
|
|
2032
2265
|
sb.w5(_Char___init__impl__6a9atx(44)).v5(nl);
|
|
2033
2266
|
}
|
|
2034
2267
|
appendKeyRaw(this, sb, indent, 'fields', colon);
|
|
@@ -2036,7 +2269,7 @@
|
|
|
2036
2269
|
sb.v5(nl).w5(_Char___init__impl__6a9atx(125));
|
|
2037
2270
|
return sb.toString();
|
|
2038
2271
|
};
|
|
2039
|
-
protoOf(JsonWriter).
|
|
2272
|
+
protoOf(JsonWriter).z1t = function (value) {
|
|
2040
2273
|
var sb = StringBuilder_init_$Create$_0(value.length);
|
|
2041
2274
|
var inductionVariable = 0;
|
|
2042
2275
|
var last = value.length;
|
|
@@ -2076,19 +2309,19 @@
|
|
|
2076
2309
|
pretty = pretty === VOID ? false : pretty;
|
|
2077
2310
|
decimals = decimals === VOID ? null : decimals;
|
|
2078
2311
|
includeMeta = includeMeta === VOID ? true : includeMeta;
|
|
2079
|
-
this.
|
|
2080
|
-
this.
|
|
2081
|
-
this.
|
|
2082
|
-
this.
|
|
2312
|
+
this.a1u_1 = fields;
|
|
2313
|
+
this.b1u_1 = pretty;
|
|
2314
|
+
this.c1u_1 = decimals;
|
|
2315
|
+
this.d1u_1 = includeMeta;
|
|
2083
2316
|
}
|
|
2084
2317
|
protoOf(JsonOptions).toString = function () {
|
|
2085
|
-
return 'JsonOptions(fields=' + toString(this.
|
|
2318
|
+
return 'JsonOptions(fields=' + toString(this.a1u_1) + ', pretty=' + this.b1u_1 + ', decimals=' + this.c1u_1 + ', includeMeta=' + this.d1u_1 + ')';
|
|
2086
2319
|
};
|
|
2087
2320
|
protoOf(JsonOptions).hashCode = function () {
|
|
2088
|
-
var result = this.
|
|
2089
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2090
|
-
result = imul(result, 31) + (this.
|
|
2091
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2321
|
+
var result = this.a1u_1 == null ? 0 : hashCode(this.a1u_1);
|
|
2322
|
+
result = imul(result, 31) + getBooleanHashCode(this.b1u_1) | 0;
|
|
2323
|
+
result = imul(result, 31) + (this.c1u_1 == null ? 0 : this.c1u_1) | 0;
|
|
2324
|
+
result = imul(result, 31) + getBooleanHashCode(this.d1u_1) | 0;
|
|
2092
2325
|
return result;
|
|
2093
2326
|
};
|
|
2094
2327
|
protoOf(JsonOptions).equals = function (other) {
|
|
@@ -2096,28 +2329,28 @@
|
|
|
2096
2329
|
return true;
|
|
2097
2330
|
if (!(other instanceof JsonOptions))
|
|
2098
2331
|
return false;
|
|
2099
|
-
if (!equals(this.
|
|
2332
|
+
if (!equals(this.a1u_1, other.a1u_1))
|
|
2100
2333
|
return false;
|
|
2101
|
-
if (!(this.
|
|
2334
|
+
if (!(this.b1u_1 === other.b1u_1))
|
|
2102
2335
|
return false;
|
|
2103
|
-
if (!(this.
|
|
2336
|
+
if (!(this.c1u_1 == other.c1u_1))
|
|
2104
2337
|
return false;
|
|
2105
|
-
if (!(this.
|
|
2338
|
+
if (!(this.d1u_1 === other.d1u_1))
|
|
2106
2339
|
return false;
|
|
2107
2340
|
return true;
|
|
2108
2341
|
};
|
|
2109
2342
|
function copyAllSlots($this, source) {
|
|
2110
|
-
var out = new Path(source.
|
|
2343
|
+
var out = new Path(source.f1r_1);
|
|
2111
2344
|
var inductionVariable = 0;
|
|
2112
|
-
var last = source.
|
|
2345
|
+
var last = source.f1r_1;
|
|
2113
2346
|
if (inductionVariable < last)
|
|
2114
2347
|
do {
|
|
2115
2348
|
var i = inductionVariable;
|
|
2116
2349
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2117
|
-
var _iterator__ex2g4s =
|
|
2350
|
+
var _iterator__ex2g4s = get_entries_0().i();
|
|
2118
2351
|
while (_iterator__ex2g4s.j()) {
|
|
2119
2352
|
var field = _iterator__ex2g4s.k();
|
|
2120
|
-
out.
|
|
2353
|
+
out.f1u(i, field, source.y1t(i, field));
|
|
2121
2354
|
}
|
|
2122
2355
|
}
|
|
2123
2356
|
while (inductionVariable < last);
|
|
@@ -2125,9 +2358,9 @@
|
|
|
2125
2358
|
}
|
|
2126
2359
|
function $fixElevationCOROUTINE$(_this__u8e3s4, source, provider, resultContinuation) {
|
|
2127
2360
|
CoroutineImpl.call(this, resultContinuation);
|
|
2128
|
-
this.
|
|
2129
|
-
this.
|
|
2130
|
-
this.
|
|
2361
|
+
this.o1u_1 = _this__u8e3s4;
|
|
2362
|
+
this.p1u_1 = source;
|
|
2363
|
+
this.q1u_1 = provider;
|
|
2131
2364
|
}
|
|
2132
2365
|
protoOf($fixElevationCOROUTINE$).p6 = function () {
|
|
2133
2366
|
var suspendResult = this.j6_1;
|
|
@@ -2137,21 +2370,21 @@
|
|
|
2137
2370
|
switch (tmp) {
|
|
2138
2371
|
case 0:
|
|
2139
2372
|
this.i6_1 = 2;
|
|
2140
|
-
if (this.
|
|
2373
|
+
if (this.p1u_1.f1r_1 === 0)
|
|
2141
2374
|
return new Path(0);
|
|
2142
|
-
var size = this.
|
|
2375
|
+
var size = this.p1u_1.f1r_1;
|
|
2143
2376
|
var list = ArrayList_init_$Create$_0(size);
|
|
2144
2377
|
var inductionVariable = 0;
|
|
2145
2378
|
if (inductionVariable < size)
|
|
2146
2379
|
do {
|
|
2147
2380
|
var index = inductionVariable;
|
|
2148
2381
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2149
|
-
list.h(new LatLon(this.
|
|
2382
|
+
list.h(new LatLon(this.p1u_1.h1r(index) * 57.29577951308232, this.p1u_1.i1r(index) * 57.29577951308232));
|
|
2150
2383
|
}
|
|
2151
2384
|
while (inductionVariable < size);
|
|
2152
2385
|
var coords = list;
|
|
2153
2386
|
this.h6_1 = 1;
|
|
2154
|
-
suspendResult = this.
|
|
2387
|
+
suspendResult = this.q1u_1.s10(coords, VOID, this);
|
|
2155
2388
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2156
2389
|
return suspendResult;
|
|
2157
2390
|
}
|
|
@@ -2159,17 +2392,17 @@
|
|
|
2159
2392
|
continue $sm;
|
|
2160
2393
|
case 1:
|
|
2161
2394
|
var corrected = suspendResult;
|
|
2162
|
-
var out = copyAllSlots(this.
|
|
2395
|
+
var out = copyAllSlots(this.o1u_1, this.p1u_1);
|
|
2163
2396
|
var inductionVariable_0 = 0;
|
|
2164
|
-
var last = out.
|
|
2397
|
+
var last = out.f1r_1;
|
|
2165
2398
|
if (inductionVariable_0 < last)
|
|
2166
2399
|
do {
|
|
2167
2400
|
var i = inductionVariable_0;
|
|
2168
2401
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
2169
|
-
out.
|
|
2402
|
+
out.b1s(i, corrected.m(i).ww());
|
|
2170
2403
|
}
|
|
2171
2404
|
while (inductionVariable_0 < last);
|
|
2172
|
-
out.
|
|
2405
|
+
out.q1s();
|
|
2173
2406
|
return out;
|
|
2174
2407
|
case 2:
|
|
2175
2408
|
throw this.k6_1;
|
|
@@ -2186,20 +2419,20 @@
|
|
|
2186
2419
|
while (true);
|
|
2187
2420
|
};
|
|
2188
2421
|
function ElevationStep() {
|
|
2189
|
-
this.
|
|
2422
|
+
this.r1u_1 = 150.0;
|
|
2190
2423
|
}
|
|
2191
|
-
protoOf(ElevationStep).
|
|
2424
|
+
protoOf(ElevationStep).s1u = function (source, provider, $completion) {
|
|
2192
2425
|
var tmp = new $fixElevationCOROUTINE$(this, source, provider, $completion);
|
|
2193
2426
|
tmp.j6_1 = Unit_instance;
|
|
2194
2427
|
tmp.k6_1 = null;
|
|
2195
2428
|
return tmp.p6();
|
|
2196
2429
|
};
|
|
2197
|
-
protoOf(ElevationStep).
|
|
2198
|
-
if (source.
|
|
2430
|
+
protoOf(ElevationStep).t1u = function (source, windowM) {
|
|
2431
|
+
if (source.f1r_1 === 0)
|
|
2199
2432
|
return new Path(0);
|
|
2200
2433
|
// Inline function 'kotlin.collections.List' call
|
|
2201
2434
|
// Inline function 'kotlin.collections.MutableList' call
|
|
2202
|
-
var size = source.
|
|
2435
|
+
var size = source.f1r_1;
|
|
2203
2436
|
var list = ArrayList_init_$Create$_0(size);
|
|
2204
2437
|
// Inline function 'kotlin.repeat' call
|
|
2205
2438
|
var inductionVariable = 0;
|
|
@@ -2207,7 +2440,7 @@
|
|
|
2207
2440
|
do {
|
|
2208
2441
|
var index = inductionVariable;
|
|
2209
2442
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2210
|
-
var tmp$ret$4 = source.
|
|
2443
|
+
var tmp$ret$4 = source.u1u(index);
|
|
2211
2444
|
list.h(tmp$ret$4);
|
|
2212
2445
|
}
|
|
2213
2446
|
while (inductionVariable < size);
|
|
@@ -2215,199 +2448,199 @@
|
|
|
2215
2448
|
var smoothed = ElevationSmoother_instance.nw(coords, windowM);
|
|
2216
2449
|
var out = copyAllSlots(this, source);
|
|
2217
2450
|
var inductionVariable_0 = 0;
|
|
2218
|
-
var last = out.
|
|
2451
|
+
var last = out.f1r_1;
|
|
2219
2452
|
if (inductionVariable_0 < last)
|
|
2220
2453
|
do {
|
|
2221
2454
|
var i = inductionVariable_0;
|
|
2222
2455
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
2223
|
-
out.
|
|
2456
|
+
out.b1s(i, smoothed.m(i).ww());
|
|
2224
2457
|
}
|
|
2225
2458
|
while (inductionVariable_0 < last);
|
|
2226
|
-
out.
|
|
2459
|
+
out.q1s();
|
|
2227
2460
|
return out;
|
|
2228
2461
|
};
|
|
2229
|
-
protoOf(ElevationStep).
|
|
2462
|
+
protoOf(ElevationStep).v1u = function (source, windowM, $super) {
|
|
2230
2463
|
windowM = windowM === VOID ? 150.0 : windowM;
|
|
2231
|
-
return $super === VOID ? this.
|
|
2464
|
+
return $super === VOID ? this.t1u(source, windowM) : $super.t1u.call(this, source, windowM);
|
|
2232
2465
|
};
|
|
2233
2466
|
var ElevationStep_instance;
|
|
2234
2467
|
function ElevationStep_getInstance() {
|
|
2235
2468
|
return ElevationStep_instance;
|
|
2236
2469
|
}
|
|
2237
2470
|
function GeneratedPath(size) {
|
|
2238
|
-
this.
|
|
2471
|
+
this.f1r_1 = size;
|
|
2239
2472
|
// Inline function 'kotlin.require' call
|
|
2240
|
-
if (!(this.
|
|
2241
|
-
var message = 'Negative size: ' + this.
|
|
2473
|
+
if (!(this.f1r_1 >= 0)) {
|
|
2474
|
+
var message = 'Negative size: ' + this.f1r_1;
|
|
2242
2475
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
2243
2476
|
}
|
|
2244
|
-
this.
|
|
2477
|
+
this.g1r_1 = new Float64Array(imul(this.f1r_1, 36));
|
|
2245
2478
|
}
|
|
2246
|
-
protoOf(GeneratedPath).
|
|
2247
|
-
return this.
|
|
2479
|
+
protoOf(GeneratedPath).y1t = function (i, field) {
|
|
2480
|
+
return this.g1r_1[imul(i, 36) + field.o1_1 | 0];
|
|
2248
2481
|
};
|
|
2249
|
-
protoOf(GeneratedPath).
|
|
2250
|
-
this.
|
|
2482
|
+
protoOf(GeneratedPath).f1u = function (i, field, v) {
|
|
2483
|
+
this.g1r_1[imul(i, 36) + field.o1_1 | 0] = v;
|
|
2251
2484
|
};
|
|
2252
|
-
protoOf(GeneratedPath).
|
|
2253
|
-
return this.
|
|
2485
|
+
protoOf(GeneratedPath).h1r = function (i) {
|
|
2486
|
+
return this.g1r_1[imul(i, 36) + 0 | 0];
|
|
2254
2487
|
};
|
|
2255
|
-
protoOf(GeneratedPath).
|
|
2256
|
-
this.
|
|
2488
|
+
protoOf(GeneratedPath).z1r = function (i, v) {
|
|
2489
|
+
this.g1r_1[imul(i, 36) + 0 | 0] = v;
|
|
2257
2490
|
};
|
|
2258
|
-
protoOf(GeneratedPath).
|
|
2259
|
-
return this.
|
|
2491
|
+
protoOf(GeneratedPath).i1r = function (i) {
|
|
2492
|
+
return this.g1r_1[imul(i, 36) + 1 | 0];
|
|
2260
2493
|
};
|
|
2261
|
-
protoOf(GeneratedPath).
|
|
2262
|
-
this.
|
|
2494
|
+
protoOf(GeneratedPath).a1s = function (i, v) {
|
|
2495
|
+
this.g1r_1[imul(i, 36) + 1 | 0] = v;
|
|
2263
2496
|
};
|
|
2264
|
-
protoOf(GeneratedPath).
|
|
2265
|
-
return this.
|
|
2497
|
+
protoOf(GeneratedPath).w1u = function (i) {
|
|
2498
|
+
return this.g1r_1[imul(i, 36) + 2 | 0];
|
|
2266
2499
|
};
|
|
2267
|
-
protoOf(GeneratedPath).
|
|
2268
|
-
this.
|
|
2500
|
+
protoOf(GeneratedPath).x1u = function (i, v) {
|
|
2501
|
+
this.g1r_1[imul(i, 36) + 2 | 0] = v;
|
|
2269
2502
|
};
|
|
2270
|
-
protoOf(GeneratedPath).
|
|
2271
|
-
this.
|
|
2503
|
+
protoOf(GeneratedPath).y1u = function (i, v) {
|
|
2504
|
+
this.g1r_1[imul(i, 36) + 3 | 0] = v;
|
|
2272
2505
|
};
|
|
2273
|
-
protoOf(GeneratedPath).
|
|
2274
|
-
return this.
|
|
2506
|
+
protoOf(GeneratedPath).k1r = function (i) {
|
|
2507
|
+
return this.g1r_1[imul(i, 36) + 4 | 0];
|
|
2275
2508
|
};
|
|
2276
|
-
protoOf(GeneratedPath).
|
|
2277
|
-
this.
|
|
2509
|
+
protoOf(GeneratedPath).c1s = function (i, v) {
|
|
2510
|
+
this.g1r_1[imul(i, 36) + 4 | 0] = v;
|
|
2278
2511
|
};
|
|
2279
|
-
protoOf(GeneratedPath).
|
|
2280
|
-
return this.
|
|
2512
|
+
protoOf(GeneratedPath).z1u = function (i) {
|
|
2513
|
+
return this.g1r_1[imul(i, 36) + 5 | 0];
|
|
2281
2514
|
};
|
|
2282
|
-
protoOf(GeneratedPath).
|
|
2283
|
-
this.
|
|
2515
|
+
protoOf(GeneratedPath).a1v = function (i, v) {
|
|
2516
|
+
this.g1r_1[imul(i, 36) + 5 | 0] = v;
|
|
2284
2517
|
};
|
|
2285
|
-
protoOf(GeneratedPath).
|
|
2286
|
-
return this.
|
|
2518
|
+
protoOf(GeneratedPath).b1v = function (i) {
|
|
2519
|
+
return this.g1r_1[imul(i, 36) + 6 | 0];
|
|
2287
2520
|
};
|
|
2288
|
-
protoOf(GeneratedPath).
|
|
2289
|
-
this.
|
|
2521
|
+
protoOf(GeneratedPath).c1v = function (i, v) {
|
|
2522
|
+
this.g1r_1[imul(i, 36) + 6 | 0] = v;
|
|
2290
2523
|
};
|
|
2291
|
-
protoOf(GeneratedPath).
|
|
2292
|
-
return this.
|
|
2524
|
+
protoOf(GeneratedPath).d1v = function (i) {
|
|
2525
|
+
return this.g1r_1[imul(i, 36) + 7 | 0];
|
|
2293
2526
|
};
|
|
2294
|
-
protoOf(GeneratedPath).
|
|
2295
|
-
this.
|
|
2527
|
+
protoOf(GeneratedPath).e1v = function (i, v) {
|
|
2528
|
+
this.g1r_1[imul(i, 36) + 7 | 0] = v;
|
|
2296
2529
|
};
|
|
2297
|
-
protoOf(GeneratedPath).
|
|
2298
|
-
return this.
|
|
2530
|
+
protoOf(GeneratedPath).j1r = function (i) {
|
|
2531
|
+
return this.g1r_1[imul(i, 36) + 8 | 0];
|
|
2299
2532
|
};
|
|
2300
|
-
protoOf(GeneratedPath).
|
|
2301
|
-
this.
|
|
2533
|
+
protoOf(GeneratedPath).b1s = function (i, v) {
|
|
2534
|
+
this.g1r_1[imul(i, 36) + 8 | 0] = v;
|
|
2302
2535
|
};
|
|
2303
|
-
protoOf(GeneratedPath).
|
|
2304
|
-
return this.
|
|
2536
|
+
protoOf(GeneratedPath).f1v = function (i) {
|
|
2537
|
+
return this.g1r_1[imul(i, 36) + 9 | 0];
|
|
2305
2538
|
};
|
|
2306
|
-
protoOf(GeneratedPath).
|
|
2307
|
-
this.
|
|
2539
|
+
protoOf(GeneratedPath).g1v = function (i, v) {
|
|
2540
|
+
this.g1r_1[imul(i, 36) + 9 | 0] = v;
|
|
2308
2541
|
};
|
|
2309
|
-
protoOf(GeneratedPath).
|
|
2310
|
-
this.
|
|
2542
|
+
protoOf(GeneratedPath).h1v = function (i, v) {
|
|
2543
|
+
this.g1r_1[imul(i, 36) + 10 | 0] = v;
|
|
2311
2544
|
};
|
|
2312
|
-
protoOf(GeneratedPath).
|
|
2313
|
-
this.
|
|
2545
|
+
protoOf(GeneratedPath).i1v = function (i, v) {
|
|
2546
|
+
this.g1r_1[imul(i, 36) + 11 | 0] = v;
|
|
2314
2547
|
};
|
|
2315
|
-
protoOf(GeneratedPath).
|
|
2316
|
-
this.
|
|
2548
|
+
protoOf(GeneratedPath).j1v = function (i, v) {
|
|
2549
|
+
this.g1r_1[imul(i, 36) + 12 | 0] = v;
|
|
2317
2550
|
};
|
|
2318
|
-
protoOf(GeneratedPath).
|
|
2319
|
-
this.
|
|
2551
|
+
protoOf(GeneratedPath).k1v = function (i, v) {
|
|
2552
|
+
this.g1r_1[imul(i, 36) + 13 | 0] = v;
|
|
2320
2553
|
};
|
|
2321
|
-
protoOf(GeneratedPath).
|
|
2322
|
-
this.
|
|
2554
|
+
protoOf(GeneratedPath).l1v = function (i, v) {
|
|
2555
|
+
this.g1r_1[imul(i, 36) + 14 | 0] = v;
|
|
2323
2556
|
};
|
|
2324
|
-
protoOf(GeneratedPath).
|
|
2325
|
-
this.
|
|
2557
|
+
protoOf(GeneratedPath).m1v = function (i, v) {
|
|
2558
|
+
this.g1r_1[imul(i, 36) + 15 | 0] = v;
|
|
2326
2559
|
};
|
|
2327
|
-
protoOf(GeneratedPath).
|
|
2328
|
-
this.
|
|
2560
|
+
protoOf(GeneratedPath).n1v = function (i, v) {
|
|
2561
|
+
this.g1r_1[imul(i, 36) + 16 | 0] = v;
|
|
2329
2562
|
};
|
|
2330
|
-
protoOf(GeneratedPath).
|
|
2331
|
-
this.
|
|
2563
|
+
protoOf(GeneratedPath).o1v = function (i, v) {
|
|
2564
|
+
this.g1r_1[imul(i, 36) + 17 | 0] = v;
|
|
2332
2565
|
};
|
|
2333
|
-
protoOf(GeneratedPath).
|
|
2334
|
-
return this.
|
|
2566
|
+
protoOf(GeneratedPath).o1r = function (i) {
|
|
2567
|
+
return this.g1r_1[imul(i, 36) + 18 | 0];
|
|
2335
2568
|
};
|
|
2336
|
-
protoOf(GeneratedPath).
|
|
2337
|
-
this.
|
|
2569
|
+
protoOf(GeneratedPath).d1s = function (i, v) {
|
|
2570
|
+
this.g1r_1[imul(i, 36) + 18 | 0] = v;
|
|
2338
2571
|
};
|
|
2339
|
-
protoOf(GeneratedPath).
|
|
2340
|
-
this.
|
|
2572
|
+
protoOf(GeneratedPath).p1v = function (i, v) {
|
|
2573
|
+
this.g1r_1[imul(i, 36) + 19 | 0] = v;
|
|
2341
2574
|
};
|
|
2342
|
-
protoOf(GeneratedPath).
|
|
2343
|
-
this.
|
|
2575
|
+
protoOf(GeneratedPath).q1v = function (i, v) {
|
|
2576
|
+
this.g1r_1[imul(i, 36) + 20 | 0] = v;
|
|
2344
2577
|
};
|
|
2345
|
-
protoOf(GeneratedPath).
|
|
2346
|
-
this.
|
|
2578
|
+
protoOf(GeneratedPath).r1v = function (i, v) {
|
|
2579
|
+
this.g1r_1[imul(i, 36) + 21 | 0] = v;
|
|
2347
2580
|
};
|
|
2348
|
-
protoOf(GeneratedPath).
|
|
2349
|
-
this.
|
|
2581
|
+
protoOf(GeneratedPath).s1v = function (i, v) {
|
|
2582
|
+
this.g1r_1[imul(i, 36) + 22 | 0] = v;
|
|
2350
2583
|
};
|
|
2351
|
-
protoOf(GeneratedPath).
|
|
2352
|
-
this.
|
|
2584
|
+
protoOf(GeneratedPath).t1v = function (i, v) {
|
|
2585
|
+
this.g1r_1[imul(i, 36) + 23 | 0] = v;
|
|
2353
2586
|
};
|
|
2354
|
-
protoOf(GeneratedPath).
|
|
2355
|
-
this.
|
|
2587
|
+
protoOf(GeneratedPath).u1v = function (i, v) {
|
|
2588
|
+
this.g1r_1[imul(i, 36) + 24 | 0] = v;
|
|
2356
2589
|
};
|
|
2357
|
-
protoOf(GeneratedPath).
|
|
2358
|
-
this.
|
|
2590
|
+
protoOf(GeneratedPath).v1v = function (i, v) {
|
|
2591
|
+
this.g1r_1[imul(i, 36) + 25 | 0] = v;
|
|
2359
2592
|
};
|
|
2360
|
-
protoOf(GeneratedPath).
|
|
2361
|
-
return this.
|
|
2593
|
+
protoOf(GeneratedPath).p1r = function (i) {
|
|
2594
|
+
return this.g1r_1[imul(i, 36) + 26 | 0];
|
|
2362
2595
|
};
|
|
2363
|
-
protoOf(GeneratedPath).
|
|
2364
|
-
this.
|
|
2596
|
+
protoOf(GeneratedPath).w1v = function (i, v) {
|
|
2597
|
+
this.g1r_1[imul(i, 36) + 26 | 0] = v;
|
|
2365
2598
|
};
|
|
2366
|
-
protoOf(GeneratedPath).
|
|
2367
|
-
return this.
|
|
2599
|
+
protoOf(GeneratedPath).x1v = function (i) {
|
|
2600
|
+
return this.g1r_1[imul(i, 36) + 27 | 0];
|
|
2368
2601
|
};
|
|
2369
|
-
protoOf(GeneratedPath).
|
|
2370
|
-
this.
|
|
2602
|
+
protoOf(GeneratedPath).y1v = function (i, v) {
|
|
2603
|
+
this.g1r_1[imul(i, 36) + 27 | 0] = v;
|
|
2371
2604
|
};
|
|
2372
|
-
protoOf(GeneratedPath).
|
|
2373
|
-
return this.
|
|
2605
|
+
protoOf(GeneratedPath).z1v = function (i) {
|
|
2606
|
+
return this.g1r_1[imul(i, 36) + 28 | 0];
|
|
2374
2607
|
};
|
|
2375
|
-
protoOf(GeneratedPath).
|
|
2376
|
-
this.
|
|
2608
|
+
protoOf(GeneratedPath).a1w = function (i, v) {
|
|
2609
|
+
this.g1r_1[imul(i, 36) + 28 | 0] = v;
|
|
2377
2610
|
};
|
|
2378
|
-
protoOf(GeneratedPath).
|
|
2379
|
-
this.
|
|
2611
|
+
protoOf(GeneratedPath).b1w = function (i, v) {
|
|
2612
|
+
this.g1r_1[imul(i, 36) + 29 | 0] = v;
|
|
2380
2613
|
};
|
|
2381
|
-
protoOf(GeneratedPath).
|
|
2382
|
-
this.
|
|
2614
|
+
protoOf(GeneratedPath).c1w = function (i, v) {
|
|
2615
|
+
this.g1r_1[imul(i, 36) + 30 | 0] = v;
|
|
2383
2616
|
};
|
|
2384
|
-
protoOf(GeneratedPath).
|
|
2385
|
-
return this.
|
|
2617
|
+
protoOf(GeneratedPath).n1r = function (i) {
|
|
2618
|
+
return this.g1r_1[imul(i, 36) + 31 | 0];
|
|
2386
2619
|
};
|
|
2387
|
-
protoOf(GeneratedPath).
|
|
2388
|
-
this.
|
|
2620
|
+
protoOf(GeneratedPath).g1s = function (i, v) {
|
|
2621
|
+
this.g1r_1[imul(i, 36) + 31 | 0] = v;
|
|
2389
2622
|
};
|
|
2390
|
-
protoOf(GeneratedPath).
|
|
2391
|
-
this.
|
|
2623
|
+
protoOf(GeneratedPath).d1w = function (i, v) {
|
|
2624
|
+
this.g1r_1[imul(i, 36) + 32 | 0] = v;
|
|
2392
2625
|
};
|
|
2393
|
-
protoOf(GeneratedPath).
|
|
2394
|
-
this.
|
|
2626
|
+
protoOf(GeneratedPath).e1w = function (i, v) {
|
|
2627
|
+
this.g1r_1[imul(i, 36) + 33 | 0] = v;
|
|
2395
2628
|
};
|
|
2396
|
-
protoOf(GeneratedPath).
|
|
2397
|
-
return this.
|
|
2629
|
+
protoOf(GeneratedPath).l1r = function (i) {
|
|
2630
|
+
return this.g1r_1[imul(i, 36) + 34 | 0];
|
|
2398
2631
|
};
|
|
2399
|
-
protoOf(GeneratedPath).
|
|
2400
|
-
this.
|
|
2632
|
+
protoOf(GeneratedPath).e1s = function (i, v) {
|
|
2633
|
+
this.g1r_1[imul(i, 36) + 34 | 0] = v;
|
|
2401
2634
|
};
|
|
2402
|
-
protoOf(GeneratedPath).
|
|
2403
|
-
return this.
|
|
2635
|
+
protoOf(GeneratedPath).m1r = function (i) {
|
|
2636
|
+
return this.g1r_1[imul(i, 36) + 35 | 0];
|
|
2404
2637
|
};
|
|
2405
|
-
protoOf(GeneratedPath).
|
|
2406
|
-
this.
|
|
2638
|
+
protoOf(GeneratedPath).f1s = function (i, v) {
|
|
2639
|
+
this.g1r_1[imul(i, 36) + 35 | 0] = v;
|
|
2407
2640
|
};
|
|
2408
2641
|
function Companion_0() {
|
|
2409
2642
|
Companion_instance_0 = this;
|
|
2410
|
-
this.
|
|
2643
|
+
this.f1w_1 = new BoundsRad(0.0, 0.0, 0.0, 0.0);
|
|
2411
2644
|
}
|
|
2412
2645
|
var Companion_instance_0;
|
|
2413
2646
|
function Companion_getInstance_1() {
|
|
@@ -2417,19 +2650,19 @@
|
|
|
2417
2650
|
}
|
|
2418
2651
|
function BoundsRad(minLat, maxLat, minLon, maxLon) {
|
|
2419
2652
|
Companion_getInstance_1();
|
|
2420
|
-
this.
|
|
2421
|
-
this.
|
|
2422
|
-
this.
|
|
2423
|
-
this.
|
|
2653
|
+
this.g1w_1 = minLat;
|
|
2654
|
+
this.h1w_1 = maxLat;
|
|
2655
|
+
this.i1w_1 = minLon;
|
|
2656
|
+
this.j1w_1 = maxLon;
|
|
2424
2657
|
}
|
|
2425
2658
|
protoOf(BoundsRad).toString = function () {
|
|
2426
|
-
return 'BoundsRad(minLat=' + this.
|
|
2659
|
+
return 'BoundsRad(minLat=' + this.g1w_1 + ', maxLat=' + this.h1w_1 + ', minLon=' + this.i1w_1 + ', maxLon=' + this.j1w_1 + ')';
|
|
2427
2660
|
};
|
|
2428
2661
|
protoOf(BoundsRad).hashCode = function () {
|
|
2429
|
-
var result = getNumberHashCode(this.
|
|
2430
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2431
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2432
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2662
|
+
var result = getNumberHashCode(this.g1w_1);
|
|
2663
|
+
result = imul(result, 31) + getNumberHashCode(this.h1w_1) | 0;
|
|
2664
|
+
result = imul(result, 31) + getNumberHashCode(this.i1w_1) | 0;
|
|
2665
|
+
result = imul(result, 31) + getNumberHashCode(this.j1w_1) | 0;
|
|
2433
2666
|
return result;
|
|
2434
2667
|
};
|
|
2435
2668
|
protoOf(BoundsRad).equals = function (other) {
|
|
@@ -2437,39 +2670,39 @@
|
|
|
2437
2670
|
return true;
|
|
2438
2671
|
if (!(other instanceof BoundsRad))
|
|
2439
2672
|
return false;
|
|
2440
|
-
if (!equals(this.
|
|
2673
|
+
if (!equals(this.g1w_1, other.g1w_1))
|
|
2441
2674
|
return false;
|
|
2442
|
-
if (!equals(this.
|
|
2675
|
+
if (!equals(this.h1w_1, other.h1w_1))
|
|
2443
2676
|
return false;
|
|
2444
|
-
if (!equals(this.
|
|
2677
|
+
if (!equals(this.i1w_1, other.i1w_1))
|
|
2445
2678
|
return false;
|
|
2446
|
-
if (!equals(this.
|
|
2679
|
+
if (!equals(this.j1w_1, other.j1w_1))
|
|
2447
2680
|
return false;
|
|
2448
2681
|
return true;
|
|
2449
2682
|
};
|
|
2450
2683
|
function copyStatsFrom($this, other) {
|
|
2451
|
-
$this.
|
|
2452
|
-
$this.
|
|
2453
|
-
$this.
|
|
2454
|
-
$this.
|
|
2455
|
-
$this.
|
|
2456
|
-
$this.
|
|
2457
|
-
$this.
|
|
2684
|
+
$this.j1s_1 = other.j1s_1;
|
|
2685
|
+
$this.k1s_1 = other.k1s_1;
|
|
2686
|
+
$this.l1s_1 = other.l1s_1;
|
|
2687
|
+
$this.m1s_1 = other.m1s_1;
|
|
2688
|
+
$this.n1s_1 = other.n1s_1;
|
|
2689
|
+
$this.o1s_1 = other.o1s_1;
|
|
2690
|
+
$this.p1s_1 = other.p1s_1;
|
|
2458
2691
|
}
|
|
2459
2692
|
function resetStats($this) {
|
|
2460
|
-
$this.
|
|
2461
|
-
$this.
|
|
2462
|
-
$this.
|
|
2463
|
-
$this.
|
|
2464
|
-
$this.
|
|
2465
|
-
$this.
|
|
2466
|
-
$this.
|
|
2693
|
+
$this.j1s_1 = 0.0;
|
|
2694
|
+
$this.k1s_1 = 0.0;
|
|
2695
|
+
$this.l1s_1 = 0.0;
|
|
2696
|
+
$this.m1s_1 = 0.0;
|
|
2697
|
+
$this.n1s_1 = 0.0;
|
|
2698
|
+
$this.o1s_1 = 0.0;
|
|
2699
|
+
$this.p1s_1 = Companion_getInstance_1().f1w_1;
|
|
2467
2700
|
}
|
|
2468
2701
|
function computeBearing($this, from, to) {
|
|
2469
|
-
var lat1 = $this.
|
|
2470
|
-
var lon1 = $this.
|
|
2471
|
-
var lat2 = $this.
|
|
2472
|
-
var lon2 = $this.
|
|
2702
|
+
var lat1 = $this.h1r(from);
|
|
2703
|
+
var lon1 = $this.i1r(from);
|
|
2704
|
+
var lat2 = $this.h1r(to);
|
|
2705
|
+
var lon2 = $this.i1r(to);
|
|
2473
2706
|
// Inline function 'kotlin.math.cos' call
|
|
2474
2707
|
var x1 = lon1 * Math.cos(lat1);
|
|
2475
2708
|
var y1 = lat1;
|
|
@@ -2490,32 +2723,32 @@
|
|
|
2490
2723
|
}
|
|
2491
2724
|
function Path(size) {
|
|
2492
2725
|
GeneratedPath.call(this, size);
|
|
2493
|
-
this.
|
|
2494
|
-
this.
|
|
2495
|
-
this.
|
|
2496
|
-
this.
|
|
2497
|
-
this.
|
|
2498
|
-
this.
|
|
2499
|
-
this.
|
|
2500
|
-
}
|
|
2501
|
-
protoOf(Path).
|
|
2502
|
-
return until(0, this.
|
|
2503
|
-
};
|
|
2504
|
-
protoOf(Path).
|
|
2505
|
-
return this.
|
|
2506
|
-
};
|
|
2507
|
-
protoOf(Path).
|
|
2508
|
-
return this.
|
|
2509
|
-
};
|
|
2510
|
-
protoOf(Path).
|
|
2511
|
-
return new LatLonElevation(this.
|
|
2512
|
-
};
|
|
2513
|
-
protoOf(Path).
|
|
2514
|
-
var out = new Path(this.
|
|
2515
|
-
var tmp0 = this.
|
|
2516
|
-
var tmp2 = out.
|
|
2726
|
+
this.j1s_1 = 0.0;
|
|
2727
|
+
this.k1s_1 = 0.0;
|
|
2728
|
+
this.l1s_1 = 0.0;
|
|
2729
|
+
this.m1s_1 = 0.0;
|
|
2730
|
+
this.n1s_1 = 0.0;
|
|
2731
|
+
this.o1s_1 = 0.0;
|
|
2732
|
+
this.p1s_1 = Companion_getInstance_1().f1w_1;
|
|
2733
|
+
}
|
|
2734
|
+
protoOf(Path).k1w = function () {
|
|
2735
|
+
return until(0, this.f1r_1);
|
|
2736
|
+
};
|
|
2737
|
+
protoOf(Path).l1w = function (i) {
|
|
2738
|
+
return this.h1r(i) * 57.29577951308232;
|
|
2739
|
+
};
|
|
2740
|
+
protoOf(Path).m1w = function (i) {
|
|
2741
|
+
return this.i1r(i) * 57.29577951308232;
|
|
2742
|
+
};
|
|
2743
|
+
protoOf(Path).u1u = function (i) {
|
|
2744
|
+
return new LatLonElevation(this.l1w(i), this.m1w(i), this.j1r(i));
|
|
2745
|
+
};
|
|
2746
|
+
protoOf(Path).n1w = function () {
|
|
2747
|
+
var out = new Path(this.f1r_1);
|
|
2748
|
+
var tmp0 = this.g1r_1;
|
|
2749
|
+
var tmp2 = out.g1r_1;
|
|
2517
2750
|
// Inline function 'kotlin.collections.copyInto' call
|
|
2518
|
-
var endIndex = this.
|
|
2751
|
+
var endIndex = this.g1r_1.length;
|
|
2519
2752
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2520
2753
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2521
2754
|
var tmp = tmp0;
|
|
@@ -2525,11 +2758,11 @@
|
|
|
2525
2758
|
copyStatsFrom(out, this);
|
|
2526
2759
|
return out;
|
|
2527
2760
|
};
|
|
2528
|
-
protoOf(Path).
|
|
2761
|
+
protoOf(Path).q1s = function () {
|
|
2529
2762
|
resetStats(this);
|
|
2530
|
-
if (this.
|
|
2763
|
+
if (this.f1r_1 === 0)
|
|
2531
2764
|
return Unit_instance;
|
|
2532
|
-
var timeStart = this.
|
|
2765
|
+
var timeStart = this.k1r(0);
|
|
2533
2766
|
var cumDist = 0.0;
|
|
2534
2767
|
var minLat = Infinity;
|
|
2535
2768
|
var maxLat = -Infinity;
|
|
@@ -2540,14 +2773,14 @@
|
|
|
2540
2773
|
var gain = 0.0;
|
|
2541
2774
|
var loss = 0.0;
|
|
2542
2775
|
var inductionVariable = 0;
|
|
2543
|
-
var last = this.
|
|
2776
|
+
var last = this.f1r_1;
|
|
2544
2777
|
if (inductionVariable < last)
|
|
2545
2778
|
do {
|
|
2546
2779
|
var i = inductionVariable;
|
|
2547
2780
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2548
|
-
var lat = this.
|
|
2549
|
-
var lon = this.
|
|
2550
|
-
var ele = this.
|
|
2781
|
+
var lat = this.h1r(i);
|
|
2782
|
+
var lon = this.i1r(i);
|
|
2783
|
+
var ele = this.j1r(i);
|
|
2551
2784
|
// Inline function 'kotlin.math.min' call
|
|
2552
2785
|
var a = minLat;
|
|
2553
2786
|
minLat = Math.min(a, lat);
|
|
@@ -2567,67 +2800,67 @@
|
|
|
2567
2800
|
var a_4 = maxEle;
|
|
2568
2801
|
maxEle = Math.max(a_4, ele);
|
|
2569
2802
|
if (i > 0) {
|
|
2570
|
-
var prevCoord = new LatLon(this.
|
|
2571
|
-
var curCoord = new LatLon(this.
|
|
2803
|
+
var prevCoord = new LatLon(this.l1w(i - 1 | 0), this.m1w(i - 1 | 0));
|
|
2804
|
+
var curCoord = new LatLon(this.l1w(i), this.m1w(i));
|
|
2572
2805
|
cumDist = cumDist + Distance_instance.rw(prevCoord, curCoord);
|
|
2573
|
-
var dEle = ele - this.
|
|
2806
|
+
var dEle = ele - this.j1r(i - 1 | 0);
|
|
2574
2807
|
if (dEle > 0)
|
|
2575
2808
|
gain = gain + dEle;
|
|
2576
2809
|
else
|
|
2577
2810
|
loss = loss + dEle;
|
|
2578
2811
|
}
|
|
2579
|
-
this.
|
|
2812
|
+
this.x1u(i, cumDist);
|
|
2580
2813
|
}
|
|
2581
2814
|
while (inductionVariable < last);
|
|
2582
|
-
this.
|
|
2583
|
-
this.
|
|
2584
|
-
this.
|
|
2585
|
-
this.
|
|
2586
|
-
this.
|
|
2587
|
-
this.
|
|
2588
|
-
this.
|
|
2815
|
+
this.j1s_1 = cumDist;
|
|
2816
|
+
this.k1s_1 = minEle === Infinity ? 0.0 : minEle;
|
|
2817
|
+
this.l1s_1 = maxEle === -Infinity ? 0.0 : maxEle;
|
|
2818
|
+
this.m1s_1 = gain;
|
|
2819
|
+
this.n1s_1 = loss;
|
|
2820
|
+
this.p1s_1 = new BoundsRad(minLat, maxLat, minLon, maxLon);
|
|
2821
|
+
this.o1s_1 = this.f1r_1 >= 2 ? this.k1r(this.f1r_1 - 1 | 0) - timeStart : 0.0;
|
|
2589
2822
|
var inductionVariable_0 = 0;
|
|
2590
|
-
var last_0 = this.
|
|
2823
|
+
var last_0 = this.f1r_1;
|
|
2591
2824
|
if (inductionVariable_0 < last_0)
|
|
2592
2825
|
$l$loop: do {
|
|
2593
2826
|
var i_0 = inductionVariable_0;
|
|
2594
2827
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
2595
|
-
this.
|
|
2596
|
-
if (this.
|
|
2828
|
+
this.a1v(i_0, (this.k1r(i_0) - timeStart) / 1000.0);
|
|
2829
|
+
if (this.f1r_1 <= 1)
|
|
2597
2830
|
continue $l$loop;
|
|
2598
2831
|
// Inline function 'kotlin.math.max' call
|
|
2599
2832
|
var b = i_0 - 1 | 0;
|
|
2600
2833
|
var im1 = Math.max(0, b);
|
|
2601
|
-
var tmp0 = this.
|
|
2834
|
+
var tmp0 = this.f1r_1 - 1 | 0;
|
|
2602
2835
|
// Inline function 'kotlin.math.min' call
|
|
2603
2836
|
var b_0 = i_0 + 1 | 0;
|
|
2604
2837
|
var ip1 = Math.min(tmp0, b_0);
|
|
2605
|
-
this.
|
|
2606
|
-
var dDist = (this.
|
|
2607
|
-
var dEle_0 = (this.
|
|
2838
|
+
this.e1v(i_0, computeBearing(this, im1, ip1));
|
|
2839
|
+
var dDist = (this.w1u(ip1) - this.w1u(im1)) / 2.0;
|
|
2840
|
+
var dEle_0 = (this.j1r(ip1) - this.j1r(im1)) / 2.0;
|
|
2608
2841
|
var grade = dDist === 0.0 ? 0.0 : dEle_0 / dDist;
|
|
2609
|
-
this.
|
|
2610
|
-
var dTime = (this.
|
|
2611
|
-
this.
|
|
2612
|
-
this.
|
|
2613
|
-
this.
|
|
2842
|
+
this.g1v(i_0, grade);
|
|
2843
|
+
var dTime = (this.k1r(ip1) - this.k1r(im1)) / 2000.0;
|
|
2844
|
+
this.y1u(i_0, dDist);
|
|
2845
|
+
this.c1v(i_0, dTime);
|
|
2846
|
+
this.y1v(i_0, dTime === 0.0 ? 0.0 : dDist / dTime);
|
|
2614
2847
|
}
|
|
2615
2848
|
while (inductionVariable_0 < last_0);
|
|
2616
2849
|
};
|
|
2617
2850
|
function PathSimplifier() {
|
|
2618
2851
|
}
|
|
2619
|
-
protoOf(PathSimplifier).
|
|
2620
|
-
if (path.
|
|
2621
|
-
return path.
|
|
2622
|
-
var coords = ArrayList_init_$Create$_0(path.
|
|
2852
|
+
protoOf(PathSimplifier).o1w = function (path, toleranceM, zExaggeration) {
|
|
2853
|
+
if (path.f1r_1 <= 2)
|
|
2854
|
+
return path.n1w();
|
|
2855
|
+
var coords = ArrayList_init_$Create$_0(path.f1r_1);
|
|
2623
2856
|
var inductionVariable = 0;
|
|
2624
|
-
var last = path.
|
|
2857
|
+
var last = path.f1r_1;
|
|
2625
2858
|
if (inductionVariable < last)
|
|
2626
2859
|
do {
|
|
2627
2860
|
var i = inductionVariable;
|
|
2628
2861
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2629
2862
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2630
|
-
var element = new LatLonElevation(path.
|
|
2863
|
+
var element = new LatLonElevation(path.h1r(i) * 57.29577951308232, path.i1r(i) * 57.29577951308232, path.j1r(i));
|
|
2631
2864
|
coords.h(element);
|
|
2632
2865
|
}
|
|
2633
2866
|
while (inductionVariable < last);
|
|
@@ -2657,13 +2890,13 @@
|
|
|
2657
2890
|
var dstIdx = index;
|
|
2658
2891
|
index = index + 1 | 0;
|
|
2659
2892
|
var srcIdx = iterator.k();
|
|
2660
|
-
var _iterator__ex2g4s_0 =
|
|
2893
|
+
var _iterator__ex2g4s_0 = get_entries_0().i();
|
|
2661
2894
|
while (_iterator__ex2g4s_0.j()) {
|
|
2662
2895
|
var field = _iterator__ex2g4s_0.k();
|
|
2663
|
-
out.
|
|
2896
|
+
out.f1u(dstIdx, field, path.y1t(srcIdx, field));
|
|
2664
2897
|
}
|
|
2665
2898
|
}
|
|
2666
|
-
out.
|
|
2899
|
+
out.q1s();
|
|
2667
2900
|
return out;
|
|
2668
2901
|
};
|
|
2669
2902
|
var PathSimplifier_instance;
|
|
@@ -2708,23 +2941,23 @@
|
|
|
2708
2941
|
var PointField_CADENCE_instance;
|
|
2709
2942
|
function Companion_2() {
|
|
2710
2943
|
Companion_instance_2 = this;
|
|
2711
|
-
this.
|
|
2944
|
+
this.p1w_1 = 36;
|
|
2712
2945
|
var tmp = this;
|
|
2713
2946
|
// Inline function 'kotlin.collections.associateBy' call
|
|
2714
|
-
var this_0 =
|
|
2947
|
+
var this_0 = get_entries_0();
|
|
2715
2948
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2716
2949
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2717
2950
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
2718
2951
|
var _iterator__ex2g4s = this_0.i();
|
|
2719
2952
|
while (_iterator__ex2g4s.j()) {
|
|
2720
2953
|
var element = _iterator__ex2g4s.k();
|
|
2721
|
-
var tmp$ret$2 = element.
|
|
2954
|
+
var tmp$ret$2 = element.m1t_1;
|
|
2722
2955
|
destination.c3(tmp$ret$2, element);
|
|
2723
2956
|
}
|
|
2724
|
-
tmp.
|
|
2957
|
+
tmp.q1w_1 = destination;
|
|
2725
2958
|
}
|
|
2726
|
-
protoOf(Companion_2).
|
|
2727
|
-
return this.
|
|
2959
|
+
protoOf(Companion_2).r1w = function (prop) {
|
|
2960
|
+
return this.q1w_1.k1(prop);
|
|
2728
2961
|
};
|
|
2729
2962
|
var Companion_instance_2;
|
|
2730
2963
|
function Companion_getInstance_3() {
|
|
@@ -2733,13 +2966,13 @@
|
|
|
2733
2966
|
new Companion_2();
|
|
2734
2967
|
return Companion_instance_2;
|
|
2735
2968
|
}
|
|
2736
|
-
function
|
|
2969
|
+
function values_0() {
|
|
2737
2970
|
return [PointField_LATITUDE_getInstance(), PointField_LONGITUDE_getInstance(), PointField_DISTANCE_getInstance(), PointField_DX_getInstance(), PointField_TIME_getInstance(), PointField_ELAPSED_getInstance(), PointField_DT_getInstance(), PointField_BEARING_getInstance(), PointField_ELEVATION_getInstance(), PointField_GRADE_getInstance(), PointField_RADIUS_getInstance(), PointField_AERO_COEF_getInstance(), PointField_WIND_BEARING_getInstance(), PointField_WIND_ALPHA_getInstance(), PointField_P_AERO_getInstance(), PointField_P_GRAVITY_getInstance(), PointField_P_ROLLING_RESISTANCE_getInstance(), PointField_P_WHEEL_BEARINGS_getInstance(), PointField_P_INPUT_POWER_getInstance(), PointField_P_CYCLIST_PROVIDED_OPTIMAL_POWER_getInstance(), PointField_P_CYCLIST_PROVIDED_OPTIMAL_POWER_HARMONICS_getInstance(), PointField_P_CYCLIST_PROVIDED_POWER_NEEDED_getInstance(), PointField_P_CYCLIST_PROVIDED_MUSCULAR_getInstance(), PointField_P_CYCLIST_PROVIDED_WHEEL_getInstance(), PointField_P_COMPUTED_TOTAL_POWER_getInstance(), PointField_P_COMPUTED_WHEEL_POWER_getInstance(), PointField_POWER_getInstance(), PointField_SPEED_getInstance(), PointField_SPEED_MAX_getInstance(), PointField_SPEED_MAX_INCLINE_getInstance(), PointField_VIRT_SPEED_CURRENT_getInstance(), PointField_TEMPERATURE_getInstance(), PointField_WIND_SPEED_getInstance(), PointField_WIND_DIRECTION_getInstance(), PointField_HEART_RATE_getInstance(), PointField_CADENCE_getInstance()];
|
|
2738
2971
|
}
|
|
2739
|
-
function
|
|
2740
|
-
if ($
|
|
2741
|
-
$
|
|
2742
|
-
return $
|
|
2972
|
+
function get_entries_0() {
|
|
2973
|
+
if ($ENTRIES_0 == null)
|
|
2974
|
+
$ENTRIES_0 = enumEntries(values_0());
|
|
2975
|
+
return $ENTRIES_0;
|
|
2743
2976
|
}
|
|
2744
2977
|
var PointField_entriesInitialized;
|
|
2745
2978
|
function PointField_initEntries() {
|
|
@@ -2784,17 +3017,17 @@
|
|
|
2784
3017
|
PointField_CADENCE_instance = new PointField('CADENCE', 35, 'cadence', 'rpm', 'Pedaling cadence (rpm)', PointFieldCategory_PHYSIOLOGICAL_getInstance());
|
|
2785
3018
|
Companion_getInstance_3();
|
|
2786
3019
|
}
|
|
2787
|
-
var $
|
|
3020
|
+
var $ENTRIES_0;
|
|
2788
3021
|
function PointField(name, ordinal, prop, unit, shortDescription, category, notSelectable, anglesInRadians) {
|
|
2789
3022
|
notSelectable = notSelectable === VOID ? false : notSelectable;
|
|
2790
3023
|
anglesInRadians = anglesInRadians === VOID ? false : anglesInRadians;
|
|
2791
3024
|
Enum.call(this, name, ordinal);
|
|
2792
|
-
this.
|
|
2793
|
-
this.
|
|
2794
|
-
this.
|
|
2795
|
-
this.
|
|
2796
|
-
this.
|
|
2797
|
-
this.
|
|
3025
|
+
this.m1t_1 = prop;
|
|
3026
|
+
this.n1t_1 = unit;
|
|
3027
|
+
this.o1t_1 = shortDescription;
|
|
3028
|
+
this.p1t_1 = category;
|
|
3029
|
+
this.q1t_1 = notSelectable;
|
|
3030
|
+
this.r1t_1 = anglesInRadians;
|
|
2798
3031
|
}
|
|
2799
3032
|
function PointField_LATITUDE_getInstance() {
|
|
2800
3033
|
PointField_initEntries();
|
|
@@ -2976,8 +3209,8 @@
|
|
|
2976
3209
|
}
|
|
2977
3210
|
function PointFieldCategory(name, ordinal, id, displayName) {
|
|
2978
3211
|
Enum.call(this, name, ordinal);
|
|
2979
|
-
this.
|
|
2980
|
-
this.
|
|
3212
|
+
this.u1w_1 = id;
|
|
3213
|
+
this.v1w_1 = displayName;
|
|
2981
3214
|
}
|
|
2982
3215
|
function PointFieldCategory_COORDINATES_getInstance() {
|
|
2983
3216
|
PointFieldCategory_initEntries();
|
|
@@ -3036,35 +3269,35 @@
|
|
|
3036
3269
|
return PointFieldCategory_PHYSIOLOGICAL_instance;
|
|
3037
3270
|
}
|
|
3038
3271
|
function Copy(sourceIndex) {
|
|
3039
|
-
this.
|
|
3272
|
+
this.w1w_1 = sourceIndex;
|
|
3040
3273
|
}
|
|
3041
3274
|
protoOf(Copy).toString = function () {
|
|
3042
|
-
return 'Copy(sourceIndex=' + this.
|
|
3275
|
+
return 'Copy(sourceIndex=' + this.w1w_1 + ')';
|
|
3043
3276
|
};
|
|
3044
3277
|
protoOf(Copy).hashCode = function () {
|
|
3045
|
-
return this.
|
|
3278
|
+
return this.w1w_1;
|
|
3046
3279
|
};
|
|
3047
3280
|
protoOf(Copy).equals = function (other) {
|
|
3048
3281
|
if (this === other)
|
|
3049
3282
|
return true;
|
|
3050
3283
|
if (!(other instanceof Copy))
|
|
3051
3284
|
return false;
|
|
3052
|
-
if (!(this.
|
|
3285
|
+
if (!(this.w1w_1 === other.w1w_1))
|
|
3053
3286
|
return false;
|
|
3054
3287
|
return true;
|
|
3055
3288
|
};
|
|
3056
3289
|
function Interpolate(from, to, coef) {
|
|
3057
|
-
this.
|
|
3058
|
-
this.
|
|
3059
|
-
this.
|
|
3290
|
+
this.x1w_1 = from;
|
|
3291
|
+
this.y1w_1 = to;
|
|
3292
|
+
this.z1w_1 = coef;
|
|
3060
3293
|
}
|
|
3061
3294
|
protoOf(Interpolate).toString = function () {
|
|
3062
|
-
return 'Interpolate(from=' + this.
|
|
3295
|
+
return 'Interpolate(from=' + this.x1w_1 + ', to=' + this.y1w_1 + ', coef=' + this.z1w_1 + ')';
|
|
3063
3296
|
};
|
|
3064
3297
|
protoOf(Interpolate).hashCode = function () {
|
|
3065
|
-
var result = this.
|
|
3066
|
-
result = imul(result, 31) + this.
|
|
3067
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3298
|
+
var result = this.x1w_1;
|
|
3299
|
+
result = imul(result, 31) + this.y1w_1 | 0;
|
|
3300
|
+
result = imul(result, 31) + getNumberHashCode(this.z1w_1) | 0;
|
|
3068
3301
|
return result;
|
|
3069
3302
|
};
|
|
3070
3303
|
protoOf(Interpolate).equals = function (other) {
|
|
@@ -3072,28 +3305,28 @@
|
|
|
3072
3305
|
return true;
|
|
3073
3306
|
if (!(other instanceof Interpolate))
|
|
3074
3307
|
return false;
|
|
3075
|
-
if (!(this.
|
|
3308
|
+
if (!(this.x1w_1 === other.x1w_1))
|
|
3076
3309
|
return false;
|
|
3077
|
-
if (!(this.
|
|
3310
|
+
if (!(this.y1w_1 === other.y1w_1))
|
|
3078
3311
|
return false;
|
|
3079
|
-
if (!equals(this.
|
|
3312
|
+
if (!equals(this.z1w_1, other.z1w_1))
|
|
3080
3313
|
return false;
|
|
3081
3314
|
return true;
|
|
3082
3315
|
};
|
|
3083
3316
|
function buildPlan($this, source, minDistanceM, maxDistanceM) {
|
|
3084
|
-
var n = source.
|
|
3317
|
+
var n = source.f1r_1;
|
|
3085
3318
|
var plan = ArrayList_init_$Create$_0(n);
|
|
3086
3319
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3087
3320
|
var element = new Copy(0);
|
|
3088
3321
|
plan.h(element);
|
|
3089
|
-
var lastAddedDistance = source.
|
|
3322
|
+
var lastAddedDistance = source.w1u(0);
|
|
3090
3323
|
var lastAddedIndex = 0;
|
|
3091
3324
|
var inductionVariable = 1;
|
|
3092
3325
|
if (inductionVariable < n)
|
|
3093
3326
|
$l$loop: do {
|
|
3094
3327
|
var i = inductionVariable;
|
|
3095
3328
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3096
|
-
var curDist = source.
|
|
3329
|
+
var curDist = source.w1u(i);
|
|
3097
3330
|
var gap = curDist - lastAddedDistance;
|
|
3098
3331
|
if (gap < minDistanceM)
|
|
3099
3332
|
continue $l$loop;
|
|
@@ -3116,11 +3349,11 @@
|
|
|
3116
3349
|
var j = inductionVariable_0;
|
|
3117
3350
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
3118
3351
|
var targetDistance = lastAddedDistance + j * spacing;
|
|
3119
|
-
while (index1 < (i - 1 | 0) && source.
|
|
3352
|
+
while (index1 < (i - 1 | 0) && source.w1u(index1 + 1 | 0) < targetDistance) {
|
|
3120
3353
|
index1 = index1 + 1 | 0;
|
|
3121
3354
|
}
|
|
3122
|
-
var dist1 = source.
|
|
3123
|
-
var dist2 = source.
|
|
3355
|
+
var dist1 = source.w1u(index1);
|
|
3356
|
+
var dist2 = source.w1u(index1 + 1 | 0);
|
|
3124
3357
|
var coef = (targetDistance - dist1) / (dist2 - dist1);
|
|
3125
3358
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3126
3359
|
var element_1 = new Interpolate(index1, index1 + 1 | 0, coef);
|
|
@@ -3146,52 +3379,52 @@
|
|
|
3146
3379
|
index = index + 1 | 0;
|
|
3147
3380
|
var op = iterator.k();
|
|
3148
3381
|
if (op instanceof Copy) {
|
|
3149
|
-
copyFields($this, source, op.
|
|
3382
|
+
copyFields($this, source, op.w1w_1, out, dstIdx);
|
|
3150
3383
|
} else {
|
|
3151
3384
|
if (op instanceof Interpolate) {
|
|
3152
|
-
interpolateFields($this, source, op.
|
|
3385
|
+
interpolateFields($this, source, op.x1w_1, op.y1w_1, op.z1w_1, out, dstIdx);
|
|
3153
3386
|
} else {
|
|
3154
3387
|
noWhenBranchMatchedException();
|
|
3155
3388
|
}
|
|
3156
3389
|
}
|
|
3157
3390
|
}
|
|
3158
|
-
out.
|
|
3391
|
+
out.q1s();
|
|
3159
3392
|
return out;
|
|
3160
3393
|
}
|
|
3161
3394
|
function copyFields($this, src, srcIdx, dst, dstIdx) {
|
|
3162
|
-
var _iterator__ex2g4s =
|
|
3395
|
+
var _iterator__ex2g4s = get_entries_0().i();
|
|
3163
3396
|
while (_iterator__ex2g4s.j()) {
|
|
3164
3397
|
var field = _iterator__ex2g4s.k();
|
|
3165
|
-
dst.
|
|
3398
|
+
dst.f1u(dstIdx, field, src.y1t(srcIdx, field));
|
|
3166
3399
|
}
|
|
3167
3400
|
}
|
|
3168
3401
|
function interpolateFields($this, src, i1, i2, coef, dst, dstIdx) {
|
|
3169
|
-
var _iterator__ex2g4s =
|
|
3402
|
+
var _iterator__ex2g4s = get_entries_0().i();
|
|
3170
3403
|
while (_iterator__ex2g4s.j()) {
|
|
3171
3404
|
var field = _iterator__ex2g4s.k();
|
|
3172
|
-
var v1 = src.
|
|
3173
|
-
var v2 = src.
|
|
3405
|
+
var v1 = src.y1t(i1, field);
|
|
3406
|
+
var v2 = src.y1t(i2, field);
|
|
3174
3407
|
var v = isNaN_0(v1) || isNaN_0(v2) ? NaN : v1 + (v2 - v1) * coef;
|
|
3175
|
-
dst.
|
|
3408
|
+
dst.f1u(dstIdx, field, v);
|
|
3176
3409
|
}
|
|
3177
3410
|
}
|
|
3178
3411
|
function PointPerDistance() {
|
|
3179
3412
|
}
|
|
3180
|
-
protoOf(PointPerDistance).
|
|
3181
|
-
return this.
|
|
3413
|
+
protoOf(PointPerDistance).a1x = function (source, minDistanceM, maxDistanceM) {
|
|
3414
|
+
return this.b1x(source, minDistanceM, maxDistanceM);
|
|
3182
3415
|
};
|
|
3183
|
-
protoOf(PointPerDistance).
|
|
3416
|
+
protoOf(PointPerDistance).b1x = function (source, minDistanceM, maxDistanceM) {
|
|
3184
3417
|
// Inline function 'kotlin.require' call
|
|
3185
3418
|
if (!(maxDistanceM > 0.0)) {
|
|
3186
3419
|
var message = 'maxDistanceM must be > 0, got ' + maxDistanceM;
|
|
3187
3420
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
3188
3421
|
}
|
|
3189
|
-
if (source.
|
|
3422
|
+
if (source.f1r_1 === 0)
|
|
3190
3423
|
return new Path(0);
|
|
3191
|
-
if (source.
|
|
3424
|
+
if (source.f1r_1 === 1) {
|
|
3192
3425
|
var out = new Path(1);
|
|
3193
3426
|
copyFields(this, source, 0, out, 0);
|
|
3194
|
-
out.
|
|
3427
|
+
out.q1s();
|
|
3195
3428
|
return out;
|
|
3196
3429
|
}
|
|
3197
3430
|
var plan = buildPlan(this, source, minDistanceM, maxDistanceM);
|
|
@@ -3202,35 +3435,35 @@
|
|
|
3202
3435
|
return PointPerDistance_instance;
|
|
3203
3436
|
}
|
|
3204
3437
|
function Copy_0(sourceIndex) {
|
|
3205
|
-
this.
|
|
3438
|
+
this.c1x_1 = sourceIndex;
|
|
3206
3439
|
}
|
|
3207
3440
|
protoOf(Copy_0).toString = function () {
|
|
3208
|
-
return 'Copy(sourceIndex=' + this.
|
|
3441
|
+
return 'Copy(sourceIndex=' + this.c1x_1 + ')';
|
|
3209
3442
|
};
|
|
3210
3443
|
protoOf(Copy_0).hashCode = function () {
|
|
3211
|
-
return this.
|
|
3444
|
+
return this.c1x_1;
|
|
3212
3445
|
};
|
|
3213
3446
|
protoOf(Copy_0).equals = function (other) {
|
|
3214
3447
|
if (this === other)
|
|
3215
3448
|
return true;
|
|
3216
3449
|
if (!(other instanceof Copy_0))
|
|
3217
3450
|
return false;
|
|
3218
|
-
if (!(this.
|
|
3451
|
+
if (!(this.c1x_1 === other.c1x_1))
|
|
3219
3452
|
return false;
|
|
3220
3453
|
return true;
|
|
3221
3454
|
};
|
|
3222
3455
|
function Interpolate_0(from, to, coef) {
|
|
3223
|
-
this.
|
|
3224
|
-
this.
|
|
3225
|
-
this.
|
|
3456
|
+
this.d1x_1 = from;
|
|
3457
|
+
this.e1x_1 = to;
|
|
3458
|
+
this.f1x_1 = coef;
|
|
3226
3459
|
}
|
|
3227
3460
|
protoOf(Interpolate_0).toString = function () {
|
|
3228
|
-
return 'Interpolate(from=' + this.
|
|
3461
|
+
return 'Interpolate(from=' + this.d1x_1 + ', to=' + this.e1x_1 + ', coef=' + this.f1x_1 + ')';
|
|
3229
3462
|
};
|
|
3230
3463
|
protoOf(Interpolate_0).hashCode = function () {
|
|
3231
|
-
var result = this.
|
|
3232
|
-
result = imul(result, 31) + this.
|
|
3233
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3464
|
+
var result = this.d1x_1;
|
|
3465
|
+
result = imul(result, 31) + this.e1x_1 | 0;
|
|
3466
|
+
result = imul(result, 31) + getNumberHashCode(this.f1x_1) | 0;
|
|
3234
3467
|
return result;
|
|
3235
3468
|
};
|
|
3236
3469
|
protoOf(Interpolate_0).equals = function (other) {
|
|
@@ -3238,23 +3471,23 @@
|
|
|
3238
3471
|
return true;
|
|
3239
3472
|
if (!(other instanceof Interpolate_0))
|
|
3240
3473
|
return false;
|
|
3241
|
-
if (!(this.
|
|
3474
|
+
if (!(this.d1x_1 === other.d1x_1))
|
|
3242
3475
|
return false;
|
|
3243
|
-
if (!(this.
|
|
3476
|
+
if (!(this.e1x_1 === other.e1x_1))
|
|
3244
3477
|
return false;
|
|
3245
|
-
if (!equals(this.
|
|
3478
|
+
if (!equals(this.f1x_1, other.f1x_1))
|
|
3246
3479
|
return false;
|
|
3247
3480
|
return true;
|
|
3248
3481
|
};
|
|
3249
3482
|
function buildPlan_0($this, source) {
|
|
3250
3483
|
var plan = LinkedHashMap_init_$Create$_0();
|
|
3251
|
-
var n = source.
|
|
3484
|
+
var n = source.f1r_1;
|
|
3252
3485
|
var inductionVariable = 0;
|
|
3253
3486
|
if (inductionVariable < n)
|
|
3254
3487
|
$l$loop_0: do {
|
|
3255
3488
|
var i = inductionVariable;
|
|
3256
3489
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3257
|
-
var time1 = source.
|
|
3490
|
+
var time1 = source.k1r(i);
|
|
3258
3491
|
// Inline function 'kotlin.math.floor' call
|
|
3259
3492
|
var x = time1 / 1000.0;
|
|
3260
3493
|
var tmp$ret$0 = Math.floor(x);
|
|
@@ -3274,7 +3507,7 @@
|
|
|
3274
3507
|
}
|
|
3275
3508
|
continue $l$loop_0;
|
|
3276
3509
|
}
|
|
3277
|
-
var time2 = source.
|
|
3510
|
+
var time2 = source.k1r(i + 1 | 0);
|
|
3278
3511
|
// Inline function 'kotlin.math.floor' call
|
|
3279
3512
|
var x_0 = time2 / 1000.0;
|
|
3280
3513
|
var tmp$ret$3 = Math.floor(x_0);
|
|
@@ -3319,40 +3552,40 @@
|
|
|
3319
3552
|
}
|
|
3320
3553
|
var data = tmp;
|
|
3321
3554
|
if (data instanceof Copy_0) {
|
|
3322
|
-
copyFields_0($this, source, data.
|
|
3555
|
+
copyFields_0($this, source, data.c1x_1, out, idx);
|
|
3323
3556
|
} else {
|
|
3324
3557
|
if (data instanceof Interpolate_0) {
|
|
3325
|
-
interpolateFields_0($this, source, data.
|
|
3558
|
+
interpolateFields_0($this, source, data.d1x_1, data.e1x_1, data.f1x_1, out, idx);
|
|
3326
3559
|
} else {
|
|
3327
3560
|
noWhenBranchMatchedException();
|
|
3328
3561
|
}
|
|
3329
3562
|
}
|
|
3330
|
-
out.
|
|
3563
|
+
out.c1s(idx, toNumber(multiply(epoch, new Long(1000, 0))));
|
|
3331
3564
|
}
|
|
3332
|
-
out.
|
|
3565
|
+
out.q1s();
|
|
3333
3566
|
return out;
|
|
3334
3567
|
}
|
|
3335
3568
|
function copyFields_0($this, src, srcIdx, dst, dstIdx) {
|
|
3336
|
-
var _iterator__ex2g4s =
|
|
3569
|
+
var _iterator__ex2g4s = get_entries_0().i();
|
|
3337
3570
|
while (_iterator__ex2g4s.j()) {
|
|
3338
3571
|
var field = _iterator__ex2g4s.k();
|
|
3339
|
-
dst.
|
|
3572
|
+
dst.f1u(dstIdx, field, src.y1t(srcIdx, field));
|
|
3340
3573
|
}
|
|
3341
3574
|
}
|
|
3342
3575
|
function interpolateFields_0($this, src, i1, i2, coef, dst, dstIdx) {
|
|
3343
|
-
var _iterator__ex2g4s =
|
|
3576
|
+
var _iterator__ex2g4s = get_entries_0().i();
|
|
3344
3577
|
while (_iterator__ex2g4s.j()) {
|
|
3345
3578
|
var field = _iterator__ex2g4s.k();
|
|
3346
|
-
var v1 = src.
|
|
3347
|
-
var v2 = src.
|
|
3579
|
+
var v1 = src.y1t(i1, field);
|
|
3580
|
+
var v2 = src.y1t(i2, field);
|
|
3348
3581
|
var v = isNaN_0(v1) || isNaN_0(v2) ? NaN : v1 + (v2 - v1) * coef;
|
|
3349
|
-
dst.
|
|
3582
|
+
dst.f1u(dstIdx, field, v);
|
|
3350
3583
|
}
|
|
3351
3584
|
}
|
|
3352
3585
|
function PointPerSecond() {
|
|
3353
3586
|
}
|
|
3354
|
-
protoOf(PointPerSecond).
|
|
3355
|
-
if (source.
|
|
3587
|
+
protoOf(PointPerSecond).g1x = function (source) {
|
|
3588
|
+
if (source.f1r_1 === 0)
|
|
3356
3589
|
return new Path(0);
|
|
3357
3590
|
var plan = buildPlan_0(this, source);
|
|
3358
3591
|
return materialize_0(this, source, plan);
|
|
@@ -3384,16 +3617,18 @@
|
|
|
3384
3617
|
_.$_$.g = Companion_getInstance_3;
|
|
3385
3618
|
_.$_$.h = PointPerDistance_instance;
|
|
3386
3619
|
_.$_$.i = PointPerSecond_instance;
|
|
3387
|
-
_.$_$.j =
|
|
3388
|
-
_.$_$.k =
|
|
3389
|
-
_.$_$.l =
|
|
3390
|
-
_.$_$.m =
|
|
3391
|
-
_.$_$.n =
|
|
3392
|
-
_.$_$.o =
|
|
3393
|
-
_.$_$.p =
|
|
3394
|
-
_.$_$.q =
|
|
3395
|
-
_.$_$.r =
|
|
3396
|
-
_.$_$.s =
|
|
3620
|
+
_.$_$.j = GpxPathKind_ROUTE_getInstance;
|
|
3621
|
+
_.$_$.k = GpxPathKind_TRACK_getInstance;
|
|
3622
|
+
_.$_$.l = PointField_TEMPERATURE_getInstance;
|
|
3623
|
+
_.$_$.m = GpxWaypoint;
|
|
3624
|
+
_.$_$.n = firstTrackAsPath;
|
|
3625
|
+
_.$_$.o = segmentsAsPaths;
|
|
3626
|
+
_.$_$.p = toGpxDocument;
|
|
3627
|
+
_.$_$.q = tracksAsPaths;
|
|
3628
|
+
_.$_$.r = CsvOptions;
|
|
3629
|
+
_.$_$.s = JsonOptions;
|
|
3630
|
+
_.$_$.t = Path;
|
|
3631
|
+
_.$_$.u = get_entries_0;
|
|
3397
3632
|
//endregion
|
|
3398
3633
|
return _;
|
|
3399
3634
|
}));
|