@glandais/vcyclist-engine 2.0.0 → 3.1.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/vcyclist-gpx.js CHANGED
@@ -1,139 +1,142 @@
1
1
  (function (factory) {
2
2
  if (typeof define === 'function' && define.amd)
3
- define(['exports', './kotlin-kotlin-stdlib.js', './vcyclist-elevation.js', './xmlutil-core.js'], factory);
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('./vcyclist-elevation.js'), require('./xmlutil-core.js'));
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
- globalThis['vcyclist-gpx'] = factory(typeof globalThis['vcyclist-gpx'] === 'undefined' ? {} : globalThis['vcyclist-gpx'], globalThis['kotlin-kotlin-stdlib'], globalThis['vcyclist-elevation'], globalThis['xmlutil-core']);
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, kotlin_io_github_glandais_elevation, kotlin_io_github_pdvrieze_xmlutil_core) {
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 Unit_instance = kotlin_kotlin.$_$.f1;
23
+ var enumEntries = kotlin_kotlin.$_$.u4;
24
+ var Enum = kotlin_kotlin.$_$.v8;
25
+ var protoOf = kotlin_kotlin.$_$.t6;
26
+ var initMetadataForClass = kotlin_kotlin.$_$.e6;
22
27
  var VOID = kotlin_kotlin.$_$.a;
23
- var toString = kotlin_kotlin.$_$.s8;
24
- var protoOf = kotlin_kotlin.$_$.y5;
25
- var getNumberHashCode = kotlin_kotlin.$_$.f5;
26
- var getStringHashCode = kotlin_kotlin.$_$.h5;
27
- var equals = kotlin_kotlin.$_$.d5;
28
- var initMetadataForClass = kotlin_kotlin.$_$.j5;
29
- var emptyList = kotlin_kotlin.$_$.p2;
30
- var toString_0 = kotlin_kotlin.$_$.a6;
31
- var hashCode = kotlin_kotlin.$_$.i5;
32
- var listOf = kotlin_kotlin.$_$.z2;
33
- var initMetadataForCompanion = kotlin_kotlin.$_$.k5;
34
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.x;
35
- var addAll = kotlin_kotlin.$_$.e2;
36
- var Unit_instance = kotlin_kotlin.$_$.t;
37
- var constructCallableReference = kotlin_kotlin.$_$.b5;
38
- var lazy = kotlin_kotlin.$_$.o8;
39
- var KProperty1 = kotlin_kotlin.$_$.p6;
40
- var getPropertyCallableRef = kotlin_kotlin.$_$.g5;
41
- var collectionSizeOrDefault = kotlin_kotlin.$_$.j2;
42
- var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.w;
43
- var checkIndexOverflow = kotlin_kotlin.$_$.i2;
44
- var getOrNull = kotlin_kotlin.$_$.t2;
45
- var MathConstants_getInstance = kotlin_io_github_glandais_elevation.$_$.d;
46
- var isNaN_0 = kotlin_kotlin.$_$.n8;
47
- var numberToLong = kotlin_kotlin.$_$.q4;
48
- var Long = kotlin_kotlin.$_$.b8;
49
- var compare = kotlin_kotlin.$_$.j4;
50
- var roundToLong = kotlin_kotlin.$_$.c6;
51
- var add = kotlin_kotlin.$_$.i4;
52
- var roundToInt = kotlin_kotlin.$_$.b6;
28
+ var toString = kotlin_kotlin.$_$.w9;
29
+ var getNumberHashCode = kotlin_kotlin.$_$.a6;
30
+ var getStringHashCode = kotlin_kotlin.$_$.c6;
31
+ var equals = kotlin_kotlin.$_$.x5;
32
+ var emptyList = kotlin_kotlin.$_$.c3;
33
+ var toString_0 = kotlin_kotlin.$_$.w6;
34
+ var hashCode = kotlin_kotlin.$_$.d6;
35
+ var listOf = kotlin_kotlin.$_$.m3;
36
+ var initMetadataForCompanion = kotlin_kotlin.$_$.f6;
37
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.i1;
38
+ var addAll = kotlin_kotlin.$_$.q2;
39
+ var constructCallableReference = kotlin_kotlin.$_$.u5;
40
+ var lazy = kotlin_kotlin.$_$.q9;
41
+ var KProperty1 = kotlin_kotlin.$_$.l7;
42
+ var getPropertyCallableRef = kotlin_kotlin.$_$.b6;
43
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.v2;
44
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.h1;
45
+ var checkIndexOverflow = kotlin_kotlin.$_$.u2;
46
+ var getOrNull = kotlin_kotlin.$_$.g3;
47
+ var isNaN_0 = kotlin_kotlin.$_$.p9;
48
+ var numberToLong = kotlin_kotlin.$_$.h5;
49
+ var Long = kotlin_kotlin.$_$.z8;
50
+ var compare = kotlin_kotlin.$_$.z4;
51
+ var roundToLong = kotlin_kotlin.$_$.y6;
52
+ var add = kotlin_kotlin.$_$.x4;
53
+ var roundToInt = kotlin_kotlin.$_$.x6;
54
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.r9;
53
55
  var get_xmlStreaming = kotlin_io_github_pdvrieze_xmlutil_core.$_$.d;
54
- var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n1;
55
- var Exception = kotlin_kotlin.$_$.z7;
56
- var IllegalArgumentException = kotlin_kotlin.$_$.a8;
57
- var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.m1;
56
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.z1;
57
+ var Exception = kotlin_kotlin.$_$.x8;
58
+ var IllegalArgumentException = kotlin_kotlin.$_$.y8;
59
+ var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.y1;
58
60
  var EventType_START_ELEMENT_getInstance = kotlin_io_github_pdvrieze_xmlutil_core.$_$.a;
59
- var THROW_CCE = kotlin_kotlin.$_$.g8;
60
- var isCharSequence = kotlin_kotlin.$_$.q5;
61
- var trim = kotlin_kotlin.$_$.t7;
62
- var charSequenceLength = kotlin_kotlin.$_$.z4;
63
- var isBlank = kotlin_kotlin.$_$.c7;
64
- var toDoubleOrNull = kotlin_kotlin.$_$.o7;
65
- var numberToInt = kotlin_kotlin.$_$.w5;
66
- var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.g1;
67
- var Companion_getInstance = kotlin_kotlin.$_$.r;
68
- var initMetadataForObject = kotlin_kotlin.$_$.p5;
69
- var firstOrNull = kotlin_kotlin.$_$.r2;
70
- var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.o1;
71
- var toNumber = kotlin_kotlin.$_$.s4;
61
+ var THROW_CCE = kotlin_kotlin.$_$.e9;
62
+ var isCharSequence = kotlin_kotlin.$_$.l6;
63
+ var trim = kotlin_kotlin.$_$.r8;
64
+ var charSequenceLength = kotlin_kotlin.$_$.s5;
65
+ var isBlank = kotlin_kotlin.$_$.z7;
66
+ var toDoubleOrNull = kotlin_kotlin.$_$.l8;
67
+ var numberToInt = kotlin_kotlin.$_$.r6;
68
+ var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.s1;
69
+ var Companion_getInstance = kotlin_kotlin.$_$.c1;
70
+ var initMetadataForObject = kotlin_kotlin.$_$.k6;
71
+ var firstOrNull = kotlin_kotlin.$_$.e3;
72
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2;
73
+ var toNumber = kotlin_kotlin.$_$.k5;
74
+ var toSet = kotlin_kotlin.$_$.a4;
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.$_$.x4;
77
+ var charCodeAt = kotlin_kotlin.$_$.q5;
75
78
  var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.b;
76
- var substring = kotlin_kotlin.$_$.l7;
77
- var isHighSurrogate = kotlin_kotlin.$_$.e7;
78
- var isLowSurrogate = kotlin_kotlin.$_$.f7;
79
+ var substring = kotlin_kotlin.$_$.i8;
80
+ var isHighSurrogate = kotlin_kotlin.$_$.b8;
81
+ var isLowSurrogate = kotlin_kotlin.$_$.c8;
79
82
  var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.f;
80
- var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.f1;
81
- var Pair = kotlin_kotlin.$_$.d8;
82
- var substring_0 = kotlin_kotlin.$_$.m7;
83
- var toLong = kotlin_kotlin.$_$.r7;
84
- var numberRangeToNumber = kotlin_kotlin.$_$.u5;
85
- var ClosedRange = kotlin_kotlin.$_$.e6;
86
- var isInterface = kotlin_kotlin.$_$.r5;
87
- var contains = kotlin_kotlin.$_$.j6;
88
- var convertToInt = kotlin_kotlin.$_$.k4;
89
- var NumberFormatException = kotlin_kotlin.$_$.c8;
90
- var isDigit = kotlin_kotlin.$_$.d7;
91
- var isWhitespace = kotlin_kotlin.$_$.g7;
92
- var setOf = kotlin_kotlin.$_$.f3;
93
- var toDouble = kotlin_kotlin.$_$.p7;
94
- var round = kotlin_kotlin.$_$.d6;
95
- var divide = kotlin_kotlin.$_$.l4;
96
- var equalsLong = kotlin_kotlin.$_$.m4;
97
- var modulo = kotlin_kotlin.$_$.o4;
98
- var padStart = kotlin_kotlin.$_$.h7;
99
- var longArray = kotlin_kotlin.$_$.t5;
100
- var multiply = kotlin_kotlin.$_$.p4;
101
- var isInfinite = kotlin_kotlin.$_$.m8;
102
- var charSequenceGet = kotlin_kotlin.$_$.y4;
103
- var replace = kotlin_kotlin.$_$.i7;
83
+ var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.r1;
84
+ var Pair = kotlin_kotlin.$_$.b9;
85
+ var substring_0 = kotlin_kotlin.$_$.j8;
86
+ var toLong = kotlin_kotlin.$_$.o8;
87
+ var numberRangeToNumber = kotlin_kotlin.$_$.p6;
88
+ var ClosedRange = kotlin_kotlin.$_$.a7;
89
+ var isInterface = kotlin_kotlin.$_$.m6;
90
+ var contains = kotlin_kotlin.$_$.f7;
91
+ var convertToInt = kotlin_kotlin.$_$.b5;
92
+ var NumberFormatException = kotlin_kotlin.$_$.a9;
93
+ var isDigit = kotlin_kotlin.$_$.a8;
94
+ var isWhitespace = kotlin_kotlin.$_$.d8;
95
+ var setOf = kotlin_kotlin.$_$.t3;
96
+ var toDouble = kotlin_kotlin.$_$.m8;
97
+ var round = kotlin_kotlin.$_$.z6;
98
+ var divide = kotlin_kotlin.$_$.c5;
99
+ var equalsLong = kotlin_kotlin.$_$.d5;
100
+ var modulo = kotlin_kotlin.$_$.f5;
101
+ var padStart = kotlin_kotlin.$_$.e8;
102
+ var longArray = kotlin_kotlin.$_$.o6;
103
+ var multiply = kotlin_kotlin.$_$.g5;
104
+ var isInfinite = kotlin_kotlin.$_$.o9;
105
+ var charSequenceGet = kotlin_kotlin.$_$.r5;
106
+ var replace = kotlin_kotlin.$_$.f8;
104
107
  var toString_1 = kotlin_kotlin.$_$.g;
105
108
  var Char__hashCode_impl_otmys = kotlin_kotlin.$_$.d;
106
- var getBooleanHashCode = kotlin_kotlin.$_$.e5;
107
- var get_lastIndex = kotlin_kotlin.$_$.w2;
108
- var toString_2 = kotlin_kotlin.$_$.s7;
109
- var CoroutineImpl = kotlin_kotlin.$_$.d4;
110
- var LatLon = kotlin_io_github_glandais_elevation.$_$.g;
111
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.o3;
112
- var initMetadataForCoroutine = kotlin_kotlin.$_$.l5;
109
+ var getBooleanHashCode = kotlin_kotlin.$_$.z5;
110
+ var get_lastIndex = kotlin_kotlin.$_$.j3;
111
+ var toString_2 = kotlin_kotlin.$_$.p8;
112
+ var CoroutineImpl = kotlin_kotlin.$_$.s4;
113
+ var LatLon = kotlin_io_github_glandais_elevation.$_$.f;
114
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.d4;
115
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.g6;
113
116
  var ElevationSmoother_instance = kotlin_io_github_glandais_elevation.$_$.c;
114
- var until = kotlin_kotlin.$_$.l6;
115
- var LatLonElevation = kotlin_io_github_glandais_elevation.$_$.f;
116
- var arrayCopy = kotlin_kotlin.$_$.f2;
117
+ var until = kotlin_kotlin.$_$.h7;
118
+ var LatLonElevation = kotlin_io_github_glandais_elevation.$_$.e;
119
+ var arrayCopy = kotlin_kotlin.$_$.r2;
117
120
  var Distance_instance = kotlin_io_github_glandais_elevation.$_$.a;
118
121
  var DouglasPeucker_instance = kotlin_io_github_glandais_elevation.$_$.b;
119
- var mapCapacity = kotlin_kotlin.$_$.b3;
120
- var coerceAtLeast = kotlin_kotlin.$_$.f6;
121
- 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
- var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.b1;
126
- var subtract = kotlin_kotlin.$_$.r4;
127
- var get_ONE = kotlin_kotlin.$_$.h4;
128
- var sorted = kotlin_kotlin.$_$.h3;
122
+ var Companion_instance = kotlin_kotlin.$_$.d1;
123
+ var mapCapacity = kotlin_kotlin.$_$.o3;
124
+ var coerceAtLeast = kotlin_kotlin.$_$.b7;
125
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.m1;
126
+ var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.n1;
127
+ var subtract = kotlin_kotlin.$_$.j5;
128
+ var get_ONE = kotlin_kotlin.$_$.w4;
129
+ var sorted = kotlin_kotlin.$_$.v3;
129
130
  //endregion
130
131
  //region block: pre-declaration
132
+ initMetadataForClass(GpxPathKind, 'GpxPathKind', VOID, Enum);
131
133
  initMetadataForClass(GpxWaypoint, 'GpxWaypoint');
132
134
  initMetadataForClass(GpxDocument, 'GpxDocument');
133
135
  initMetadataForCompanion(Companion);
134
136
  initMetadataForClass(GpxTrack, 'GpxTrack');
135
137
  initMetadataForClass(GpxSegment, 'GpxSegment');
136
138
  initMetadataForClass(GpxTrackPoint, 'GpxTrackPoint');
139
+ initMetadataForClass(GpxPowerSource, 'GpxPowerSource', VOID, Enum);
137
140
  initMetadataForClass(ExtensionsAccumulator, 'ExtensionsAccumulator', ExtensionsAccumulator);
138
141
  initMetadataForObject(GpxParser, 'GpxParser');
139
142
  initMetadataForObject(GpxWriter, 'GpxWriter');
@@ -163,6 +166,30 @@
163
166
  initMetadataForClass(Interpolate_0, 'Interpolate');
164
167
  initMetadataForObject(PointPerSecond, 'PointPerSecond');
165
168
  //endregion
169
+ var static_init_called;
170
+ function static_init() {
171
+ if (static_init_called)
172
+ return Unit_instance;
173
+ static_init_called = true;
174
+ GpxPathKind_TRACK_instance = new GpxPathKind('TRACK', 0);
175
+ GpxPathKind_ROUTE_instance = new GpxPathKind('ROUTE', 1);
176
+ }
177
+ var GpxPathKind_TRACK_instance;
178
+ var GpxPathKind_ROUTE_instance;
179
+ function values() {
180
+ static_init();
181
+ return [GpxPathKind_TRACK_getInstance(), GpxPathKind_ROUTE_getInstance()];
182
+ }
183
+ function get_entries() {
184
+ static_init();
185
+ if ($ENTRIES == null)
186
+ $ENTRIES = enumEntries(values());
187
+ return $ENTRIES;
188
+ }
189
+ var $ENTRIES;
190
+ function GpxPathKind(name, ordinal) {
191
+ Enum.call(this, name, ordinal);
192
+ }
166
193
  function GpxWaypoint(latitudeDeg, longitudeDeg, elevationM, name, description, symbol, type, timeEpochMs) {
167
194
  elevationM = elevationM === VOID ? null : elevationM;
168
195
  name = name === VOID ? null : name;
@@ -170,27 +197,27 @@
170
197
  symbol = symbol === VOID ? null : symbol;
171
198
  type = type === VOID ? null : type;
172
199
  timeEpochMs = timeEpochMs === VOID ? null : timeEpochMs;
173
- this.u1p_1 = latitudeDeg;
174
- this.v1p_1 = longitudeDeg;
175
- this.w1p_1 = elevationM;
176
- this.x1p_1 = name;
177
- this.y1p_1 = description;
178
- this.z1p_1 = symbol;
179
- this.a1q_1 = type;
180
- this.b1q_1 = timeEpochMs;
200
+ this.latitudeDeg_1 = latitudeDeg;
201
+ this.longitudeDeg_1 = longitudeDeg;
202
+ this.elevationM_1 = elevationM;
203
+ this.name_1 = name;
204
+ this.description_1 = description;
205
+ this.symbol_1 = symbol;
206
+ this.type_1 = type;
207
+ this.timeEpochMs_1 = timeEpochMs;
181
208
  }
182
209
  protoOf(GpxWaypoint).toString = function () {
183
- return 'GpxWaypoint(latitudeDeg=' + this.u1p_1 + ', longitudeDeg=' + this.v1p_1 + ', elevationM=' + this.w1p_1 + ', name=' + this.x1p_1 + ', description=' + this.y1p_1 + ', symbol=' + this.z1p_1 + ', type=' + this.a1q_1 + ', timeEpochMs=' + toString(this.b1q_1) + ')';
210
+ return 'GpxWaypoint(latitudeDeg=' + this.latitudeDeg_1 + ', longitudeDeg=' + this.longitudeDeg_1 + ', elevationM=' + this.elevationM_1 + ', name=' + this.name_1 + ', description=' + this.description_1 + ', symbol=' + this.symbol_1 + ', type=' + this.type_1 + ', timeEpochMs=' + toString(this.timeEpochMs_1) + ')';
184
211
  };
185
212
  protoOf(GpxWaypoint).hashCode = function () {
186
- var result = getNumberHashCode(this.u1p_1);
187
- result = imul(result, 31) + getNumberHashCode(this.v1p_1) | 0;
188
- result = imul(result, 31) + (this.w1p_1 == null ? 0 : getNumberHashCode(this.w1p_1)) | 0;
189
- result = imul(result, 31) + (this.x1p_1 == null ? 0 : getStringHashCode(this.x1p_1)) | 0;
190
- result = imul(result, 31) + (this.y1p_1 == null ? 0 : getStringHashCode(this.y1p_1)) | 0;
191
- result = imul(result, 31) + (this.z1p_1 == null ? 0 : getStringHashCode(this.z1p_1)) | 0;
192
- result = imul(result, 31) + (this.a1q_1 == null ? 0 : getStringHashCode(this.a1q_1)) | 0;
193
- result = imul(result, 31) + (this.b1q_1 == null ? 0 : this.b1q_1.hashCode()) | 0;
213
+ var result = getNumberHashCode(this.latitudeDeg_1);
214
+ result = imul(result, 31) + getNumberHashCode(this.longitudeDeg_1) | 0;
215
+ result = imul(result, 31) + (this.elevationM_1 == null ? 0 : getNumberHashCode(this.elevationM_1)) | 0;
216
+ result = imul(result, 31) + (this.name_1 == null ? 0 : getStringHashCode(this.name_1)) | 0;
217
+ result = imul(result, 31) + (this.description_1 == null ? 0 : getStringHashCode(this.description_1)) | 0;
218
+ result = imul(result, 31) + (this.symbol_1 == null ? 0 : getStringHashCode(this.symbol_1)) | 0;
219
+ result = imul(result, 31) + (this.type_1 == null ? 0 : getStringHashCode(this.type_1)) | 0;
220
+ result = imul(result, 31) + (this.timeEpochMs_1 == null ? 0 : this.timeEpochMs_1.hashCode()) | 0;
194
221
  return result;
195
222
  };
196
223
  protoOf(GpxWaypoint).equals = function (other) {
@@ -198,38 +225,38 @@
198
225
  return true;
199
226
  if (!(other instanceof GpxWaypoint))
200
227
  return false;
201
- if (!equals(this.u1p_1, other.u1p_1))
228
+ if (!equals(this.latitudeDeg_1, other.latitudeDeg_1))
202
229
  return false;
203
- if (!equals(this.v1p_1, other.v1p_1))
230
+ if (!equals(this.longitudeDeg_1, other.longitudeDeg_1))
204
231
  return false;
205
- if (!equals(this.w1p_1, other.w1p_1))
232
+ if (!equals(this.elevationM_1, other.elevationM_1))
206
233
  return false;
207
- if (!(this.x1p_1 == other.x1p_1))
234
+ if (!(this.name_1 == other.name_1))
208
235
  return false;
209
- if (!(this.y1p_1 == other.y1p_1))
236
+ if (!(this.description_1 == other.description_1))
210
237
  return false;
211
- if (!(this.z1p_1 == other.z1p_1))
238
+ if (!(this.symbol_1 == other.symbol_1))
212
239
  return false;
213
- if (!(this.a1q_1 == other.a1q_1))
240
+ if (!(this.type_1 == other.type_1))
214
241
  return false;
215
- if (!equals(this.b1q_1, other.b1q_1))
242
+ if (!equals(this.timeEpochMs_1, other.timeEpochMs_1))
216
243
  return false;
217
244
  return true;
218
245
  };
219
246
  function GpxDocument(name, tracks, waypoints) {
220
247
  name = name === VOID ? 'noname' : name;
221
248
  waypoints = waypoints === VOID ? emptyList() : waypoints;
222
- this.c1q_1 = name;
223
- this.d1q_1 = tracks;
224
- this.e1q_1 = waypoints;
249
+ this.name_1 = name;
250
+ this.tracks_1 = tracks;
251
+ this.waypoints_1 = waypoints;
225
252
  }
226
253
  protoOf(GpxDocument).toString = function () {
227
- return 'GpxDocument(name=' + this.c1q_1 + ', tracks=' + toString_0(this.d1q_1) + ', waypoints=' + toString_0(this.e1q_1) + ')';
254
+ return 'GpxDocument(name=' + this.name_1 + ', tracks=' + toString_0(this.tracks_1) + ', waypoints=' + toString_0(this.waypoints_1) + ')';
228
255
  };
229
256
  protoOf(GpxDocument).hashCode = function () {
230
- var result = getStringHashCode(this.c1q_1);
231
- result = imul(result, 31) + hashCode(this.d1q_1) | 0;
232
- result = imul(result, 31) + hashCode(this.e1q_1) | 0;
257
+ var result = getStringHashCode(this.name_1);
258
+ result = imul(result, 31) + hashCode(this.tracks_1) | 0;
259
+ result = imul(result, 31) + hashCode(this.waypoints_1) | 0;
233
260
  return result;
234
261
  };
235
262
  protoOf(GpxDocument).equals = function (other) {
@@ -237,33 +264,39 @@
237
264
  return true;
238
265
  if (!(other instanceof GpxDocument))
239
266
  return false;
240
- if (!(this.c1q_1 === other.c1q_1))
267
+ if (!(this.name_1 === other.name_1))
241
268
  return false;
242
- if (!equals(this.d1q_1, other.d1q_1))
269
+ if (!equals(this.tracks_1, other.tracks_1))
243
270
  return false;
244
- if (!equals(this.e1q_1, other.e1q_1))
271
+ if (!equals(this.waypoints_1, other.waypoints_1))
245
272
  return false;
246
273
  return true;
247
274
  };
248
275
  function Companion() {
249
276
  }
250
- protoOf(Companion).f1q = function (name, type, points) {
251
- return new GpxTrack(name, type, listOf(new GpxSegment(points)));
277
+ protoOf(Companion).invoke_a307c9_k$ = function (name, type, points, kind) {
278
+ return new GpxTrack(name, type, listOf(new GpxSegment(points)), kind);
279
+ };
280
+ protoOf(Companion).invoke$default_3oy1b8_k$ = function (name, type, points, kind, $super) {
281
+ name = name === VOID ? null : name;
282
+ type = type === VOID ? null : type;
283
+ kind = kind === VOID ? GpxPathKind_TRACK_getInstance() : kind;
284
+ return $super === VOID ? this.invoke_a307c9_k$(name, type, points, kind) : $super.invoke_a307c9_k$.call(this, name, type, points, kind);
252
285
  };
253
- var Companion_instance;
286
+ var Companion_instance_0;
254
287
  function Companion_getInstance_0() {
255
- return Companion_instance;
288
+ return Companion_instance_0;
256
289
  }
257
290
  function GpxTrack$points$delegate$lambda(this$0) {
258
291
  return function () {
259
292
  // Inline function 'kotlin.collections.flatMap' call
260
- var tmp0 = this$0.i1q_1;
293
+ var tmp0 = this$0.segments_1;
261
294
  // Inline function 'kotlin.collections.flatMapTo' call
262
295
  var destination = ArrayList_init_$Create$();
263
- var _iterator__ex2g4s = tmp0.i();
264
- while (_iterator__ex2g4s.j()) {
265
- var element = _iterator__ex2g4s.k();
266
- var list = element.k1q_1;
296
+ var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
297
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
298
+ var element = _iterator__ex2g4s.next_20eer_k$();
299
+ var list = element.points_1;
267
300
  addAll(destination, list);
268
301
  }
269
302
  return destination;
@@ -271,32 +304,35 @@
271
304
  }
272
305
  function GpxTrack$_get_points_$ref_4x48pr() {
273
306
  return constructCallableReference(function (p0) {
274
- return p0.l1q();
307
+ return p0.get_points_i5obn0_k$();
275
308
  }, 1, 0, 5);
276
309
  }
277
- function GpxTrack(name, type, segments) {
310
+ function GpxTrack(name, type, segments, kind) {
278
311
  name = name === VOID ? null : name;
279
312
  type = type === VOID ? null : type;
280
- this.g1q_1 = name;
281
- this.h1q_1 = type;
282
- this.i1q_1 = segments;
313
+ kind = kind === VOID ? GpxPathKind_TRACK_getInstance() : kind;
314
+ this.name_1 = name;
315
+ this.type_1 = type;
316
+ this.segments_1 = segments;
317
+ this.kind_1 = kind;
283
318
  var tmp = this;
284
- tmp.j1q_1 = lazy(GpxTrack$points$delegate$lambda(this));
319
+ tmp.points$delegate_1 = lazy(GpxTrack$points$delegate$lambda(this));
285
320
  }
286
- protoOf(GpxTrack).l1q = function () {
287
- var tmp0 = this.j1q_1;
321
+ protoOf(GpxTrack).get_points_i5obn0_k$ = function () {
322
+ var tmp0 = this.points$delegate_1;
288
323
  var tmp = KProperty1;
289
324
  // Inline function 'kotlin.getValue' call
290
325
  getPropertyCallableRef('points', 1, tmp, GpxTrack$_get_points_$ref_4x48pr(), null);
291
- return tmp0.i1();
326
+ return tmp0.get_value_j01efc_k$();
292
327
  };
293
328
  protoOf(GpxTrack).toString = function () {
294
- return 'GpxTrack(name=' + this.g1q_1 + ', type=' + this.h1q_1 + ', segments=' + toString_0(this.i1q_1) + ')';
329
+ return 'GpxTrack(name=' + this.name_1 + ', type=' + this.type_1 + ', segments=' + toString_0(this.segments_1) + ', kind=' + this.kind_1.toString() + ')';
295
330
  };
296
331
  protoOf(GpxTrack).hashCode = function () {
297
- var result = this.g1q_1 == null ? 0 : getStringHashCode(this.g1q_1);
298
- result = imul(result, 31) + (this.h1q_1 == null ? 0 : getStringHashCode(this.h1q_1)) | 0;
299
- result = imul(result, 31) + hashCode(this.i1q_1) | 0;
332
+ var result = this.name_1 == null ? 0 : getStringHashCode(this.name_1);
333
+ result = imul(result, 31) + (this.type_1 == null ? 0 : getStringHashCode(this.type_1)) | 0;
334
+ result = imul(result, 31) + hashCode(this.segments_1) | 0;
335
+ result = imul(result, 31) + this.kind_1.hashCode() | 0;
300
336
  return result;
301
337
  };
302
338
  protoOf(GpxTrack).equals = function (other) {
@@ -304,29 +340,31 @@
304
340
  return true;
305
341
  if (!(other instanceof GpxTrack))
306
342
  return false;
307
- if (!(this.g1q_1 == other.g1q_1))
343
+ if (!(this.name_1 == other.name_1))
344
+ return false;
345
+ if (!(this.type_1 == other.type_1))
308
346
  return false;
309
- if (!(this.h1q_1 == other.h1q_1))
347
+ if (!equals(this.segments_1, other.segments_1))
310
348
  return false;
311
- if (!equals(this.i1q_1, other.i1q_1))
349
+ if (!this.kind_1.equals(other.kind_1))
312
350
  return false;
313
351
  return true;
314
352
  };
315
353
  function GpxSegment(points) {
316
- this.k1q_1 = points;
354
+ this.points_1 = points;
317
355
  }
318
356
  protoOf(GpxSegment).toString = function () {
319
- return 'GpxSegment(points=' + toString_0(this.k1q_1) + ')';
357
+ return 'GpxSegment(points=' + toString_0(this.points_1) + ')';
320
358
  };
321
359
  protoOf(GpxSegment).hashCode = function () {
322
- return hashCode(this.k1q_1);
360
+ return hashCode(this.points_1);
323
361
  };
324
362
  protoOf(GpxSegment).equals = function (other) {
325
363
  if (this === other)
326
364
  return true;
327
365
  if (!(other instanceof GpxSegment))
328
366
  return false;
329
- if (!equals(this.k1q_1, other.k1q_1))
367
+ if (!equals(this.points_1, other.points_1))
330
368
  return false;
331
369
  return true;
332
370
  };
@@ -337,27 +375,27 @@
337
375
  cadence = cadence === VOID ? null : cadence;
338
376
  temperatureC = temperatureC === VOID ? null : temperatureC;
339
377
  powerW = powerW === VOID ? null : powerW;
340
- this.m1q_1 = latitudeDeg;
341
- this.n1q_1 = longitudeDeg;
342
- this.o1q_1 = elevationM;
343
- this.p1q_1 = timeEpochMs;
344
- this.q1q_1 = heartRate;
345
- this.r1q_1 = cadence;
346
- this.s1q_1 = temperatureC;
347
- this.t1q_1 = powerW;
378
+ this.latitudeDeg_1 = latitudeDeg;
379
+ this.longitudeDeg_1 = longitudeDeg;
380
+ this.elevationM_1 = elevationM;
381
+ this.timeEpochMs_1 = timeEpochMs;
382
+ this.heartRate_1 = heartRate;
383
+ this.cadence_1 = cadence;
384
+ this.temperatureC_1 = temperatureC;
385
+ this.powerW_1 = powerW;
348
386
  }
349
387
  protoOf(GpxTrackPoint).toString = function () {
350
- return 'GpxTrackPoint(latitudeDeg=' + this.m1q_1 + ', longitudeDeg=' + this.n1q_1 + ', elevationM=' + this.o1q_1 + ', timeEpochMs=' + toString(this.p1q_1) + ', heartRate=' + this.q1q_1 + ', cadence=' + this.r1q_1 + ', temperatureC=' + this.s1q_1 + ', powerW=' + this.t1q_1 + ')';
388
+ return 'GpxTrackPoint(latitudeDeg=' + this.latitudeDeg_1 + ', longitudeDeg=' + this.longitudeDeg_1 + ', elevationM=' + this.elevationM_1 + ', timeEpochMs=' + toString(this.timeEpochMs_1) + ', heartRate=' + this.heartRate_1 + ', cadence=' + this.cadence_1 + ', temperatureC=' + this.temperatureC_1 + ', powerW=' + this.powerW_1 + ')';
351
389
  };
352
390
  protoOf(GpxTrackPoint).hashCode = function () {
353
- var result = getNumberHashCode(this.m1q_1);
354
- result = imul(result, 31) + getNumberHashCode(this.n1q_1) | 0;
355
- result = imul(result, 31) + (this.o1q_1 == null ? 0 : getNumberHashCode(this.o1q_1)) | 0;
356
- result = imul(result, 31) + (this.p1q_1 == null ? 0 : this.p1q_1.hashCode()) | 0;
357
- result = imul(result, 31) + (this.q1q_1 == null ? 0 : this.q1q_1) | 0;
358
- result = imul(result, 31) + (this.r1q_1 == null ? 0 : this.r1q_1) | 0;
359
- result = imul(result, 31) + (this.s1q_1 == null ? 0 : getNumberHashCode(this.s1q_1)) | 0;
360
- result = imul(result, 31) + (this.t1q_1 == null ? 0 : getNumberHashCode(this.t1q_1)) | 0;
391
+ var result = getNumberHashCode(this.latitudeDeg_1);
392
+ result = imul(result, 31) + getNumberHashCode(this.longitudeDeg_1) | 0;
393
+ result = imul(result, 31) + (this.elevationM_1 == null ? 0 : getNumberHashCode(this.elevationM_1)) | 0;
394
+ result = imul(result, 31) + (this.timeEpochMs_1 == null ? 0 : this.timeEpochMs_1.hashCode()) | 0;
395
+ result = imul(result, 31) + (this.heartRate_1 == null ? 0 : this.heartRate_1) | 0;
396
+ result = imul(result, 31) + (this.cadence_1 == null ? 0 : this.cadence_1) | 0;
397
+ result = imul(result, 31) + (this.temperatureC_1 == null ? 0 : getNumberHashCode(this.temperatureC_1)) | 0;
398
+ result = imul(result, 31) + (this.powerW_1 == null ? 0 : getNumberHashCode(this.powerW_1)) | 0;
361
399
  return result;
362
400
  };
363
401
  protoOf(GpxTrackPoint).equals = function (other) {
@@ -365,59 +403,85 @@
365
403
  return true;
366
404
  if (!(other instanceof GpxTrackPoint))
367
405
  return false;
368
- if (!equals(this.m1q_1, other.m1q_1))
406
+ if (!equals(this.latitudeDeg_1, other.latitudeDeg_1))
369
407
  return false;
370
- if (!equals(this.n1q_1, other.n1q_1))
408
+ if (!equals(this.longitudeDeg_1, other.longitudeDeg_1))
371
409
  return false;
372
- if (!equals(this.o1q_1, other.o1q_1))
410
+ if (!equals(this.elevationM_1, other.elevationM_1))
373
411
  return false;
374
- if (!equals(this.p1q_1, other.p1q_1))
412
+ if (!equals(this.timeEpochMs_1, other.timeEpochMs_1))
375
413
  return false;
376
- if (!(this.q1q_1 == other.q1q_1))
414
+ if (!(this.heartRate_1 == other.heartRate_1))
377
415
  return false;
378
- if (!(this.r1q_1 == other.r1q_1))
416
+ if (!(this.cadence_1 == other.cadence_1))
379
417
  return false;
380
- if (!equals(this.s1q_1, other.s1q_1))
418
+ if (!equals(this.temperatureC_1, other.temperatureC_1))
381
419
  return false;
382
- if (!equals(this.t1q_1, other.t1q_1))
420
+ if (!equals(this.powerW_1, other.powerW_1))
383
421
  return false;
384
422
  return true;
385
423
  };
386
- function toGpxDocument(_this__u8e3s4, name, trackName, startTime) {
424
+ function GpxPathKind_TRACK_getInstance() {
425
+ static_init();
426
+ return GpxPathKind_TRACK_instance;
427
+ }
428
+ function GpxPathKind_ROUTE_getInstance() {
429
+ static_init();
430
+ return GpxPathKind_ROUTE_instance;
431
+ }
432
+ function toGpxDocument(_this__u8e3s4, name, trackName, startTime, powerSource) {
387
433
  name = name === VOID ? 'noname' : name;
388
434
  trackName = trackName === VOID ? null : trackName;
389
435
  startTime = startTime === VOID ? null : startTime;
390
- return new GpxDocument(name, listOf(toGpxTrack(_this__u8e3s4, trackName, VOID, startTime)));
436
+ powerSource = powerSource === VOID ? GpxPowerSource_INPUT_getInstance() : powerSource;
437
+ return new GpxDocument(name, listOf(toGpxTrack(_this__u8e3s4, trackName, VOID, startTime, powerSource)));
391
438
  }
392
- function pathsToGpxDocument(paths, name, trackNames, waypoints, type, startTime) {
439
+ function pathsToGpxDocument(paths, name, trackNames, waypoints, type, startTime, powerSource) {
393
440
  name = name === VOID ? 'noname' : name;
394
441
  trackNames = trackNames === VOID ? null : trackNames;
395
442
  waypoints = waypoints === VOID ? emptyList() : waypoints;
396
443
  type = type === VOID ? 'cycling' : type;
397
444
  startTime = startTime === VOID ? null : startTime;
445
+ powerSource = powerSource === VOID ? GpxPowerSource_INPUT_getInstance() : powerSource;
398
446
  // Inline function 'kotlin.collections.mapIndexed' call
399
447
  // Inline function 'kotlin.collections.mapIndexedTo' call
400
448
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(paths, 10));
401
449
  var index = 0;
402
- var _iterator__ex2g4s = paths.i();
403
- while (_iterator__ex2g4s.j()) {
404
- var item = _iterator__ex2g4s.k();
450
+ var _iterator__ex2g4s = paths.iterator_jk1svi_k$();
451
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
452
+ var item = _iterator__ex2g4s.next_20eer_k$();
405
453
  var _unary__edvuaz = index;
406
454
  index = _unary__edvuaz + 1 | 0;
407
455
  var i = checkIndexOverflow(_unary__edvuaz);
408
- var tmp$ret$2 = toGpxTrack(item, trackNames == null ? null : getOrNull(trackNames, i), type, startTime);
409
- destination.h(tmp$ret$2);
456
+ var tmp$ret$2 = toGpxTrack(item, trackNames == null ? null : getOrNull(trackNames, i), type, startTime, powerSource);
457
+ destination.add_utx5q5_k$(tmp$ret$2);
410
458
  }
411
459
  return new GpxDocument(name, destination, waypoints);
412
460
  }
413
- function toGpxTrack(_this__u8e3s4, name, type, startTime) {
461
+ var static_init_called_0;
462
+ function static_init_0() {
463
+ if (static_init_called_0)
464
+ return Unit_instance;
465
+ static_init_called_0 = 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
+ var GpxPowerSource_INPUT_instance;
471
+ var GpxPowerSource_COMPUTED_instance;
472
+ var GpxPowerSource_COMPUTED_OR_INPUT_instance;
473
+ function GpxPowerSource(name, ordinal) {
474
+ Enum.call(this, name, ordinal);
475
+ }
476
+ function toGpxTrack(_this__u8e3s4, name, type, startTime, powerSource) {
414
477
  name = name === VOID ? null : name;
415
478
  type = type === VOID ? 'cycling' : type;
416
479
  startTime = startTime === VOID ? null : startTime;
417
- var startTimeMs = startTime == null ? null : startTime.ud();
480
+ powerSource = powerSource === VOID ? GpxPowerSource_INPUT_getInstance() : powerSource;
481
+ var startTimeMs = startTime == null ? null : startTime.toEpochMilliseconds_82cfls_k$();
418
482
  // Inline function 'kotlin.collections.List' call
419
483
  // Inline function 'kotlin.collections.MutableList' call
420
- var size = _this__u8e3s4.u1q_1;
484
+ var size = _this__u8e3s4.size_1;
421
485
  var list = ArrayList_init_$Create$_0(size);
422
486
  // Inline function 'kotlin.repeat' call
423
487
  var inductionVariable = 0;
@@ -425,10 +489,10 @@
425
489
  do {
426
490
  var index = inductionVariable;
427
491
  inductionVariable = inductionVariable + 1 | 0;
428
- var tmp = _this__u8e3s4.w1q(index) * MathConstants_getInstance().uw_1;
429
- var tmp_0 = _this__u8e3s4.x1q(index) * MathConstants_getInstance().uw_1;
492
+ var tmp = _this__u8e3s4.latitude_gb4iok_k$(index) * 57.29577951308232;
493
+ var tmp_0 = _this__u8e3s4.longitude_a9xl_k$(index) * 57.29577951308232;
430
494
  // Inline function 'kotlin.takeUnless' call
431
- var this_0 = _this__u8e3s4.y1q(index);
495
+ var this_0 = _this__u8e3s4.elevation_iziwkb_k$(index);
432
496
  var tmp_1;
433
497
  if (!isNaN_0(this_0)) {
434
498
  tmp_1 = this_0;
@@ -437,13 +501,13 @@
437
501
  }
438
502
  var tmp_2 = tmp_1;
439
503
  var tmp_3;
440
- if (isNaN_0(_this__u8e3s4.z1q(index))) {
504
+ if (isNaN_0(_this__u8e3s4.time_ryc845_k$(index))) {
441
505
  tmp_3 = null;
442
506
  } else if (!(startTimeMs == null)) {
443
- tmp_3 = add(startTimeMs, roundToLong(_this__u8e3s4.z1q(index)));
507
+ tmp_3 = add(startTimeMs, roundToLong(_this__u8e3s4.time_ryc845_k$(index)));
444
508
  } else {
445
509
  // Inline function 'kotlin.takeIf' call
446
- var this_1 = numberToLong(_this__u8e3s4.z1q(index));
510
+ var this_1 = numberToLong(_this__u8e3s4.time_ryc845_k$(index));
447
511
  var tmp_4;
448
512
  if (compare(this_1, new Long(0, 0)) > 0) {
449
513
  tmp_4 = this_1;
@@ -454,7 +518,7 @@
454
518
  }
455
519
  var tmp_5 = tmp_3;
456
520
  // Inline function 'kotlin.takeUnless' call
457
- var this_2 = _this__u8e3s4.a1r(index);
521
+ var this_2 = _this__u8e3s4.heartRate_qiaqfm_k$(index);
458
522
  var tmp_6;
459
523
  if (!isNaN_0(this_2)) {
460
524
  tmp_6 = this_2;
@@ -464,7 +528,7 @@
464
528
  var tmp0_safe_receiver = tmp_6;
465
529
  var tmp_7 = tmp0_safe_receiver == null ? null : roundToInt(tmp0_safe_receiver);
466
530
  // Inline function 'kotlin.takeUnless' call
467
- var this_3 = _this__u8e3s4.b1r(index);
531
+ var this_3 = _this__u8e3s4.cadence_h3r7af_k$(index);
468
532
  var tmp_8;
469
533
  if (!isNaN_0(this_3)) {
470
534
  tmp_8 = this_3;
@@ -474,34 +538,65 @@
474
538
  var tmp1_safe_receiver = tmp_8;
475
539
  var tmp_9 = tmp1_safe_receiver == null ? null : roundToInt(tmp1_safe_receiver);
476
540
  // Inline function 'kotlin.takeUnless' call
477
- var this_4 = _this__u8e3s4.c1r(index);
541
+ var this_4 = _this__u8e3s4.temperature_6yw0ik_k$(index);
478
542
  var tmp_10;
479
543
  if (!isNaN_0(this_4)) {
480
544
  tmp_10 = this_4;
481
545
  } else {
482
546
  tmp_10 = null;
483
547
  }
484
- var tmp_11 = tmp_10;
485
- // Inline function 'kotlin.takeUnless' call
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);
495
- list.h(tmp$ret$4);
548
+ var tmp$ret$13 = tmp_10;
549
+ 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));
550
+ list.add_utx5q5_k$(tmp$ret$4);
496
551
  }
497
552
  while (inductionVariable < size);
498
553
  var points = list;
499
- return Companion_instance.f1q(name, type, points);
554
+ return Companion_instance_0.invoke$default_3oy1b8_k$(name, type, points);
555
+ }
556
+ function powerAt(_this__u8e3s4, i, source) {
557
+ // Inline function 'kotlin.takeUnless' call
558
+ var this_0 = _this__u8e3s4.pInputPower_ybhudp_k$(i);
559
+ var tmp;
560
+ if (!isNaN_0(this_0)) {
561
+ tmp = this_0;
562
+ } else {
563
+ tmp = null;
564
+ }
565
+ var input = tmp;
566
+ // Inline function 'kotlin.takeUnless' call
567
+ var this_1 = _this__u8e3s4.pComputedPower_g6dnn4_k$(i);
568
+ var tmp_0;
569
+ if (!(isNaN_0(this_1) || this_1 === 0.0)) {
570
+ tmp_0 = this_1;
571
+ } else {
572
+ tmp_0 = null;
573
+ }
574
+ var computed = tmp_0;
575
+ var tmp_1;
576
+ switch (source.ordinal_1) {
577
+ case 0:
578
+ tmp_1 = input;
579
+ break;
580
+ case 1:
581
+ tmp_1 = computed;
582
+ break;
583
+ case 2:
584
+ tmp_1 = computed == null ? input : computed;
585
+ break;
586
+ default:
587
+ noWhenBranchMatchedException();
588
+ break;
589
+ }
590
+ return tmp_1;
591
+ }
592
+ function GpxPowerSource_INPUT_getInstance() {
593
+ static_init_0();
594
+ return GpxPowerSource_INPUT_instance;
500
595
  }
501
596
  function parseOnce($this, xml) {
502
597
  var tmp;
503
598
  try {
504
- tmp = get_xmlStreaming().w18(xml);
599
+ tmp = get_xmlStreaming().newReader$default_35lqwr_k$(xml);
505
600
  } catch ($p) {
506
601
  var tmp_0;
507
602
  if ($p instanceof IllegalArgumentException) {
@@ -535,16 +630,16 @@
535
630
  }
536
631
  }
537
632
  finally {
538
- reader.e18();
633
+ reader.close_yn9xrc_k$();
539
634
  }
540
635
  return tmp_1;
541
636
  }
542
637
  function parseDocument($this, reader) {
543
- while (reader.j()) {
544
- var ev = reader.k();
638
+ while (reader.hasNext_bitz1p_k$()) {
639
+ var ev = reader.next_20eer_k$();
545
640
  if (ev.equals(EventType_START_ELEMENT_getInstance())) {
546
- if (!(reader.r17() === 'gpx')) {
547
- throw IllegalArgumentException_init_$Create$_0('Invalid GPX file: missing gpx root element (found ' + reader.r17() + ')');
641
+ if (!(reader.get_localName_bf4zrn_k$() === 'gpx')) {
642
+ throw IllegalArgumentException_init_$Create$_0('Invalid GPX file: missing gpx root element (found ' + reader.get_localName_bf4zrn_k$() + ')');
548
643
  }
549
644
  return parseGpxRoot($this, reader);
550
645
  }
@@ -557,21 +652,24 @@
557
652
  var tracks = ArrayList_init_$Create$();
558
653
  // Inline function 'kotlin.collections.mutableListOf' call
559
654
  var waypoints = ArrayList_init_$Create$();
560
- while (reader.j()) {
561
- var ev = reader.k();
562
- switch (ev.o1_1) {
655
+ while (reader.hasNext_bitz1p_k$()) {
656
+ var ev = reader.next_20eer_k$();
657
+ switch (ev.ordinal_1) {
563
658
  case 1:
564
- switch (reader.r17()) {
659
+ switch (reader.get_localName_bf4zrn_k$()) {
565
660
  case 'metadata':
566
661
  var metaName = parseMetadataName($this, reader);
567
662
  if (!(metaName == null))
568
663
  name = metaName;
569
664
  break;
570
665
  case 'trk':
571
- tracks.h(parseTrack($this, reader));
666
+ tracks.add_utx5q5_k$(parseTrack($this, reader));
667
+ break;
668
+ case 'rte':
669
+ tracks.add_utx5q5_k$(parseRoute($this, reader));
572
670
  break;
573
671
  case 'wpt':
574
- waypoints.h(parseWaypoint($this, reader));
672
+ waypoints.add_utx5q5_k$(parseWaypoint($this, reader));
575
673
  break;
576
674
  default:
577
675
  skipElement($this, reader);
@@ -589,11 +687,11 @@
589
687
  }
590
688
  function parseMetadataName($this, reader) {
591
689
  var name = null;
592
- while (reader.j()) {
593
- var ev = reader.k();
594
- switch (ev.o1_1) {
690
+ while (reader.hasNext_bitz1p_k$()) {
691
+ var ev = reader.next_20eer_k$();
692
+ switch (ev.ordinal_1) {
595
693
  case 1:
596
- if (reader.r17() === 'name' && name == null) {
694
+ if (reader.get_localName_bf4zrn_k$() === 'name' && name == null) {
597
695
  // Inline function 'kotlin.text.trim' call
598
696
  var this_0 = readElementText($this, reader);
599
697
  // Inline function 'kotlin.text.ifEmpty' call
@@ -624,11 +722,11 @@
624
722
  var type = null;
625
723
  // Inline function 'kotlin.collections.mutableListOf' call
626
724
  var segments = ArrayList_init_$Create$();
627
- while (reader.j()) {
628
- var ev = reader.k();
629
- switch (ev.o1_1) {
725
+ while (reader.hasNext_bitz1p_k$()) {
726
+ var ev = reader.next_20eer_k$();
727
+ switch (ev.ordinal_1) {
630
728
  case 1:
631
- switch (reader.r17()) {
729
+ switch (reader.get_localName_bf4zrn_k$()) {
632
730
  case 'name':
633
731
  // Inline function 'kotlin.text.trim' call
634
732
 
@@ -666,7 +764,7 @@
666
764
  type = tmp_0;
667
765
  break;
668
766
  case 'trkseg':
669
- segments.h(parseTrackSegment($this, reader));
767
+ segments.add_utx5q5_k$(parseTrackSegment($this, reader));
670
768
  break;
671
769
  default:
672
770
  skipElement($this, reader);
@@ -682,15 +780,78 @@
682
780
  }
683
781
  return new GpxTrack(name, type, segments);
684
782
  }
783
+ function parseRoute($this, reader) {
784
+ var name = null;
785
+ var type = null;
786
+ // Inline function 'kotlin.collections.mutableListOf' call
787
+ var points = ArrayList_init_$Create$();
788
+ while (reader.hasNext_bitz1p_k$()) {
789
+ var ev = reader.next_20eer_k$();
790
+ switch (ev.ordinal_1) {
791
+ case 1:
792
+ switch (reader.get_localName_bf4zrn_k$()) {
793
+ case 'name':
794
+ // Inline function 'kotlin.text.trim' call
795
+
796
+ var this_0 = readElementText($this, reader);
797
+ // Inline function 'kotlin.text.ifEmpty' call
798
+
799
+ var this_1 = toString_0(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
800
+ var tmp;
801
+ // Inline function 'kotlin.text.isEmpty' call
802
+
803
+ if (charSequenceLength(this_1) === 0) {
804
+ tmp = null;
805
+ } else {
806
+ tmp = this_1;
807
+ }
808
+
809
+ name = tmp;
810
+ break;
811
+ case 'type':
812
+ // Inline function 'kotlin.text.trim' call
813
+
814
+ var this_2 = readElementText($this, reader);
815
+ // Inline function 'kotlin.text.ifEmpty' call
816
+
817
+ var this_3 = toString_0(trim(isCharSequence(this_2) ? this_2 : THROW_CCE()));
818
+ var tmp_0;
819
+ // Inline function 'kotlin.text.isEmpty' call
820
+
821
+ if (charSequenceLength(this_3) === 0) {
822
+ tmp_0 = null;
823
+ } else {
824
+ tmp_0 = this_3;
825
+ }
826
+
827
+ type = tmp_0;
828
+ break;
829
+ case 'rtept':
830
+ points.add_utx5q5_k$(parseTrackPoint($this, reader));
831
+ break;
832
+ default:
833
+ skipElement($this, reader);
834
+ break;
835
+ }
836
+
837
+ break;
838
+ case 2:
839
+ return new GpxTrack(name, type, listOf(new GpxSegment(points)), GpxPathKind_ROUTE_getInstance());
840
+ default:
841
+ break;
842
+ }
843
+ }
844
+ return new GpxTrack(name, type, listOf(new GpxSegment(points)), GpxPathKind_ROUTE_getInstance());
845
+ }
685
846
  function parseTrackSegment($this, reader) {
686
847
  // Inline function 'kotlin.collections.mutableListOf' call
687
848
  var points = ArrayList_init_$Create$();
688
- while (reader.j()) {
689
- var ev = reader.k();
690
- switch (ev.o1_1) {
849
+ while (reader.hasNext_bitz1p_k$()) {
850
+ var ev = reader.next_20eer_k$();
851
+ switch (ev.ordinal_1) {
691
852
  case 1:
692
- if (reader.r17() === 'trkpt') {
693
- points.h(parseTrackPoint($this, reader));
853
+ if (reader.get_localName_bf4zrn_k$() === 'trkpt') {
854
+ points.add_utx5q5_k$(parseTrackPoint($this, reader));
694
855
  } else {
695
856
  skipElement($this, reader);
696
857
  }
@@ -705,8 +866,8 @@
705
866
  return new GpxSegment(points);
706
867
  }
707
868
  function parseTrackPoint($this, reader) {
708
- var latStr = reader.c18(null, 'lat');
709
- var lonStr = reader.c18(null, 'lon');
869
+ var latStr = reader.getAttributeValue_8yb7e2_k$(null, 'lat');
870
+ var lonStr = reader.getAttributeValue_8yb7e2_k$(null, 'lon');
710
871
  var tmp;
711
872
  // Inline function 'kotlin.text.isNullOrBlank' call
712
873
  if (latStr == null || isBlank(latStr)) {
@@ -737,11 +898,11 @@
737
898
  var elevation = null;
738
899
  var timeMs = null;
739
900
  var ext = new ExtensionsAccumulator();
740
- while (reader.j()) {
741
- var ev = reader.k();
742
- switch (ev.o1_1) {
901
+ while (reader.hasNext_bitz1p_k$()) {
902
+ var ev = reader.next_20eer_k$();
903
+ switch (ev.ordinal_1) {
743
904
  case 1:
744
- switch (reader.r17()) {
905
+ switch (reader.get_localName_bf4zrn_k$()) {
745
906
  case 'ele':
746
907
  // Inline function 'kotlin.text.trim' call
747
908
 
@@ -775,16 +936,16 @@
775
936
 
776
937
  break;
777
938
  case 2:
778
- return new GpxTrackPoint(lat, lon, elevation, timeMs, ext.e1r_1, ext.f1r_1, ext.g1r_1, ext.h1r_1);
939
+ return new GpxTrackPoint(lat, lon, elevation, timeMs, ext.heartRate_1, ext.cadence_1, ext.temperatureC_1, ext.powerW_1);
779
940
  default:
780
941
  break;
781
942
  }
782
943
  }
783
- return new GpxTrackPoint(lat, lon, elevation, timeMs, ext.e1r_1, ext.f1r_1, ext.g1r_1, ext.h1r_1);
944
+ return new GpxTrackPoint(lat, lon, elevation, timeMs, ext.heartRate_1, ext.cadence_1, ext.temperatureC_1, ext.powerW_1);
784
945
  }
785
946
  function parseWaypoint($this, reader) {
786
- var latStr = reader.c18(null, 'lat');
787
- var lonStr = reader.c18(null, 'lon');
947
+ var latStr = reader.getAttributeValue_8yb7e2_k$(null, 'lat');
948
+ var lonStr = reader.getAttributeValue_8yb7e2_k$(null, 'lon');
788
949
  var tmp;
789
950
  // Inline function 'kotlin.text.isNullOrBlank' call
790
951
  if (latStr == null || isBlank(latStr)) {
@@ -818,11 +979,11 @@
818
979
  var description = null;
819
980
  var symbol = null;
820
981
  var type = null;
821
- while (reader.j()) {
822
- var ev = reader.k();
823
- switch (ev.o1_1) {
982
+ while (reader.hasNext_bitz1p_k$()) {
983
+ var ev = reader.next_20eer_k$();
984
+ switch (ev.ordinal_1) {
824
985
  case 1:
825
- switch (reader.r17()) {
986
+ switch (reader.get_localName_bf4zrn_k$()) {
826
987
  case 'ele':
827
988
  // Inline function 'kotlin.text.trim' call
828
989
 
@@ -933,11 +1094,11 @@
933
1094
  return new GpxWaypoint(lat, lon, elevation, name, description, symbol, type, timeMs);
934
1095
  }
935
1096
  function parseExtensions($this, reader, ext) {
936
- while (reader.j()) {
937
- var ev = reader.k();
938
- switch (ev.o1_1) {
1097
+ while (reader.hasNext_bitz1p_k$()) {
1098
+ var ev = reader.next_20eer_k$();
1099
+ switch (ev.ordinal_1) {
939
1100
  case 1:
940
- var ln = reader.r17();
1101
+ var ln = reader.get_localName_bf4zrn_k$();
941
1102
  // Inline function 'kotlin.text.lowercase' call
942
1103
 
943
1104
  // Inline function 'kotlin.js.asDynamic' call
@@ -950,8 +1111,8 @@
950
1111
  else {
951
1112
  // Inline function 'kotlin.let' call
952
1113
  var tmp = ext;
953
- var tmp0_elvis_lhs = ext.h1r_1;
954
- tmp.h1r_1 = tmp0_elvis_lhs == null ? tmp2_safe_receiver : tmp0_elvis_lhs;
1114
+ var tmp0_elvis_lhs = ext.powerW_1;
1115
+ tmp.powerW_1 = tmp0_elvis_lhs == null ? tmp2_safe_receiver : tmp0_elvis_lhs;
955
1116
  }
956
1117
 
957
1118
  break;
@@ -962,8 +1123,8 @@
962
1123
  null;
963
1124
  else {
964
1125
  // Inline function 'kotlin.let' call
965
- if (ext.e1r_1 == null)
966
- ext.e1r_1 = numberToInt(tmp3_safe_receiver);
1126
+ if (ext.heartRate_1 == null)
1127
+ ext.heartRate_1 = numberToInt(tmp3_safe_receiver);
967
1128
  }
968
1129
 
969
1130
  break;
@@ -974,8 +1135,8 @@
974
1135
  null;
975
1136
  else {
976
1137
  // Inline function 'kotlin.let' call
977
- if (ext.f1r_1 == null)
978
- ext.f1r_1 = numberToInt(tmp4_safe_receiver);
1138
+ if (ext.cadence_1 == null)
1139
+ ext.cadence_1 = numberToInt(tmp4_safe_receiver);
979
1140
  }
980
1141
 
981
1142
  break;
@@ -988,8 +1149,8 @@
988
1149
  else {
989
1150
  // Inline function 'kotlin.let' call
990
1151
  var tmp_0 = ext;
991
- var tmp0_elvis_lhs_0 = ext.g1r_1;
992
- tmp_0.g1r_1 = tmp0_elvis_lhs_0 == null ? tmp5_safe_receiver : tmp0_elvis_lhs_0;
1152
+ var tmp0_elvis_lhs_0 = ext.temperatureC_1;
1153
+ tmp_0.temperatureC_1 = tmp0_elvis_lhs_0 == null ? tmp5_safe_receiver : tmp0_elvis_lhs_0;
993
1154
  }
994
1155
 
995
1156
  break;
@@ -1008,14 +1169,14 @@
1008
1169
  }
1009
1170
  function readElementText($this, reader) {
1010
1171
  var sb = StringBuilder_init_$Create$();
1011
- while (reader.j()) {
1012
- var ev = reader.k();
1013
- switch (ev.o1_1) {
1172
+ while (reader.hasNext_bitz1p_k$()) {
1173
+ var ev = reader.next_20eer_k$();
1174
+ switch (ev.ordinal_1) {
1014
1175
  case 4:
1015
1176
  case 5:
1016
1177
  case 9:
1017
1178
  case 8:
1018
- sb.v5(reader.w17());
1179
+ sb.append_22ad7x_k$(reader.get_text_wouvsm_k$());
1019
1180
  break;
1020
1181
  case 1:
1021
1182
  skipElement($this, reader);
@@ -1036,8 +1197,8 @@
1036
1197
  }
1037
1198
  function skipElement($this, reader) {
1038
1199
  var depth = 1;
1039
- while (reader.j() && depth > 0) {
1040
- switch (reader.k().o1_1) {
1200
+ while (reader.hasNext_bitz1p_k$() && depth > 0) {
1201
+ switch (reader.next_20eer_k$().ordinal_1) {
1041
1202
  case 1:
1042
1203
  depth = depth + 1 | 0;
1043
1204
  break;
@@ -1052,7 +1213,7 @@
1052
1213
  function parseTimeIsoToMs($this, text) {
1053
1214
  var tmp;
1054
1215
  try {
1055
- tmp = Companion_getInstance().qd(text).ud();
1216
+ tmp = Companion_getInstance().parse_xovy9i_k$(text).toEpochMilliseconds_82cfls_k$();
1056
1217
  } catch ($p) {
1057
1218
  var tmp_0;
1058
1219
  if ($p instanceof IllegalArgumentException) {
@@ -1075,14 +1236,14 @@
1075
1236
  cadence = cadence === VOID ? null : cadence;
1076
1237
  temperatureC = temperatureC === VOID ? null : temperatureC;
1077
1238
  powerW = powerW === VOID ? null : powerW;
1078
- this.e1r_1 = heartRate;
1079
- this.f1r_1 = cadence;
1080
- this.g1r_1 = temperatureC;
1081
- this.h1r_1 = powerW;
1239
+ this.heartRate_1 = heartRate;
1240
+ this.cadence_1 = cadence;
1241
+ this.temperatureC_1 = temperatureC;
1242
+ this.powerW_1 = powerW;
1082
1243
  }
1083
1244
  function GpxParser() {
1084
1245
  }
1085
- protoOf(GpxParser).i1r = function (xml, repairOnFailure) {
1246
+ protoOf(GpxParser).parse_q3819e_k$ = function (xml, repairOnFailure) {
1086
1247
  var tmp;
1087
1248
  try {
1088
1249
  tmp = parseOnce(this, xml);
@@ -1092,7 +1253,7 @@
1092
1253
  var firstFailure = $p;
1093
1254
  if (!repairOnFailure)
1094
1255
  throw firstFailure;
1095
- var repaired = GpxXmlRepair_getInstance().l1r(xml);
1256
+ var repaired = GpxXmlRepair_getInstance().repair_iwt4xf_k$(xml);
1096
1257
  var tmp_1;
1097
1258
  try {
1098
1259
  tmp_1 = parseOnce(this, repaired);
@@ -1113,16 +1274,22 @@
1113
1274
  }
1114
1275
  return tmp;
1115
1276
  };
1116
- protoOf(GpxParser).m1r = function (xml, repairOnFailure, $super) {
1277
+ protoOf(GpxParser).parse$default_ez0f31_k$ = function (xml, repairOnFailure, $super) {
1117
1278
  repairOnFailure = repairOnFailure === VOID ? true : repairOnFailure;
1118
- return $super === VOID ? this.i1r(xml, repairOnFailure) : $super.i1r.call(this, xml, repairOnFailure);
1279
+ return $super === VOID ? this.parse_q3819e_k$(xml, repairOnFailure) : $super.parse_q3819e_k$.call(this, xml, repairOnFailure);
1119
1280
  };
1120
1281
  var GpxParser_instance;
1121
1282
  function GpxParser_getInstance() {
1122
1283
  return GpxParser_instance;
1123
1284
  }
1285
+ function get_ALL_KINDS() {
1286
+ _init_properties_GpxToPath_kt__pb67h9();
1287
+ return ALL_KINDS;
1288
+ }
1289
+ var ALL_KINDS;
1124
1290
  function firstTrackAsPath(_this__u8e3s4) {
1125
- var tmp0_elvis_lhs = firstOrNull(_this__u8e3s4.d1q_1);
1291
+ _init_properties_GpxToPath_kt__pb67h9();
1292
+ var tmp0_elvis_lhs = firstOrNull(_this__u8e3s4.tracks_1);
1126
1293
  var tmp;
1127
1294
  if (tmp0_elvis_lhs == null) {
1128
1295
  // Inline function 'kotlin.error' call
@@ -1134,296 +1301,365 @@
1134
1301
  var track = tmp;
1135
1302
  return toPath(track);
1136
1303
  }
1137
- function tracksAsPaths(_this__u8e3s4) {
1304
+ function tracksAsPaths(_this__u8e3s4, kinds) {
1305
+ kinds = kinds === VOID ? get_ALL_KINDS() : kinds;
1306
+ _init_properties_GpxToPath_kt__pb67h9();
1138
1307
  // Inline function 'kotlin.collections.filter' call
1139
- var tmp0 = _this__u8e3s4.d1q_1;
1308
+ var tmp0 = _this__u8e3s4.tracks_1;
1140
1309
  // Inline function 'kotlin.collections.filterTo' call
1141
1310
  var destination = ArrayList_init_$Create$();
1142
- var _iterator__ex2g4s = tmp0.i();
1143
- while (_iterator__ex2g4s.j()) {
1144
- var element = _iterator__ex2g4s.k();
1145
- // Inline function 'kotlin.collections.isNotEmpty' call
1146
- if (!element.l1q().n()) {
1147
- destination.h(element);
1311
+ var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
1312
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
1313
+ var element = _iterator__ex2g4s.next_20eer_k$();
1314
+ var tmp;
1315
+ if (kinds.contains_aljjnj_k$(element.kind_1)) {
1316
+ // Inline function 'kotlin.collections.isNotEmpty' call
1317
+ tmp = !element.get_points_i5obn0_k$().isEmpty_y1axqb_k$();
1318
+ } else {
1319
+ tmp = false;
1320
+ }
1321
+ if (tmp) {
1322
+ destination.add_utx5q5_k$(element);
1148
1323
  }
1149
1324
  }
1150
1325
  // Inline function 'kotlin.collections.map' call
1151
1326
  // Inline function 'kotlin.collections.mapTo' call
1152
1327
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
1153
- var _iterator__ex2g4s_0 = destination.i();
1154
- while (_iterator__ex2g4s_0.j()) {
1155
- var item = _iterator__ex2g4s_0.k();
1328
+ var _iterator__ex2g4s_0 = destination.iterator_jk1svi_k$();
1329
+ while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
1330
+ var item = _iterator__ex2g4s_0.next_20eer_k$();
1156
1331
  var tmp$ret$6 = toPath(item);
1157
- destination_0.h(tmp$ret$6);
1332
+ destination_0.add_utx5q5_k$(tmp$ret$6);
1158
1333
  }
1159
1334
  return destination_0;
1160
1335
  }
1161
- function segmentsAsPaths(_this__u8e3s4) {
1336
+ function segmentsAsPaths(_this__u8e3s4, kinds) {
1337
+ kinds = kinds === VOID ? get_ALL_KINDS() : kinds;
1338
+ _init_properties_GpxToPath_kt__pb67h9();
1339
+ // Inline function 'kotlin.collections.filter' call
1340
+ var tmp0 = _this__u8e3s4.tracks_1;
1341
+ // Inline function 'kotlin.collections.filterTo' call
1342
+ var destination = ArrayList_init_$Create$();
1343
+ var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
1344
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
1345
+ var element = _iterator__ex2g4s.next_20eer_k$();
1346
+ if (kinds.contains_aljjnj_k$(element.kind_1)) {
1347
+ destination.add_utx5q5_k$(element);
1348
+ }
1349
+ }
1162
1350
  // Inline function 'kotlin.collections.flatMap' call
1163
- var tmp0 = _this__u8e3s4.d1q_1;
1164
1351
  // Inline function 'kotlin.collections.flatMapTo' call
1165
- var destination = ArrayList_init_$Create$();
1166
- var _iterator__ex2g4s = tmp0.i();
1167
- while (_iterator__ex2g4s.j()) {
1168
- var element = _iterator__ex2g4s.k();
1169
- var list = element.i1q_1;
1170
- addAll(destination, list);
1352
+ var destination_0 = ArrayList_init_$Create$();
1353
+ var _iterator__ex2g4s_0 = destination.iterator_jk1svi_k$();
1354
+ while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
1355
+ var element_0 = _iterator__ex2g4s_0.next_20eer_k$();
1356
+ var list = element_0.segments_1;
1357
+ addAll(destination_0, list);
1171
1358
  }
1172
1359
  // Inline function 'kotlin.collections.filter' call
1173
1360
  // Inline function 'kotlin.collections.filterTo' call
1174
- var destination_0 = ArrayList_init_$Create$();
1175
- var _iterator__ex2g4s_0 = destination.i();
1176
- while (_iterator__ex2g4s_0.j()) {
1177
- var element_0 = _iterator__ex2g4s_0.k();
1361
+ var destination_1 = ArrayList_init_$Create$();
1362
+ var _iterator__ex2g4s_1 = destination_0.iterator_jk1svi_k$();
1363
+ while (_iterator__ex2g4s_1.hasNext_bitz1p_k$()) {
1364
+ var element_1 = _iterator__ex2g4s_1.next_20eer_k$();
1178
1365
  // Inline function 'kotlin.collections.isNotEmpty' call
1179
- if (!element_0.k1q_1.n()) {
1180
- destination_0.h(element_0);
1366
+ if (!element_1.points_1.isEmpty_y1axqb_k$()) {
1367
+ destination_1.add_utx5q5_k$(element_1);
1181
1368
  }
1182
1369
  }
1183
1370
  // Inline function 'kotlin.collections.map' call
1184
1371
  // Inline function 'kotlin.collections.mapTo' call
1185
- var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_0, 10));
1186
- var _iterator__ex2g4s_1 = destination_0.i();
1187
- while (_iterator__ex2g4s_1.j()) {
1188
- var item = _iterator__ex2g4s_1.k();
1189
- var tmp$ret$9 = toPath_0(item);
1190
- destination_1.h(tmp$ret$9);
1372
+ var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_1, 10));
1373
+ var _iterator__ex2g4s_2 = destination_1.iterator_jk1svi_k$();
1374
+ while (_iterator__ex2g4s_2.hasNext_bitz1p_k$()) {
1375
+ var item = _iterator__ex2g4s_2.next_20eer_k$();
1376
+ var tmp$ret$12 = toPath_0(item);
1377
+ destination_2.add_utx5q5_k$(tmp$ret$12);
1191
1378
  }
1192
- return destination_1;
1379
+ return destination_2;
1193
1380
  }
1194
1381
  function toPath(_this__u8e3s4) {
1195
- return pointsToPath(_this__u8e3s4.l1q());
1382
+ _init_properties_GpxToPath_kt__pb67h9();
1383
+ return pointsToPath(_this__u8e3s4.get_points_i5obn0_k$());
1196
1384
  }
1197
1385
  function toPath_0(_this__u8e3s4) {
1198
- return pointsToPath(_this__u8e3s4.k1q_1);
1386
+ _init_properties_GpxToPath_kt__pb67h9();
1387
+ return pointsToPath(_this__u8e3s4.points_1);
1199
1388
  }
1200
1389
  function pointsToPath(points) {
1201
- var path = new Path(points.l());
1202
- var iterator = points.i();
1390
+ _init_properties_GpxToPath_kt__pb67h9();
1391
+ var path = new Path(points.get_size_woubt6_k$());
1392
+ var iterator = points.iterator_jk1svi_k$();
1203
1393
  var index = 0;
1204
- while (iterator.j()) {
1394
+ while (iterator.hasNext_bitz1p_k$()) {
1205
1395
  var i = index;
1206
1396
  index = index + 1 | 0;
1207
- var p = iterator.k();
1208
- path.n1r(i, p.m1q_1 * MathConstants_getInstance().tw_1);
1209
- path.o1r(i, p.n1q_1 * MathConstants_getInstance().tw_1);
1210
- var tmp0_elvis_lhs = p.o1q_1;
1211
- path.p1r(i, tmp0_elvis_lhs == null ? 0.0 : tmp0_elvis_lhs);
1212
- var tmp1_elvis_lhs = p.p1q_1;
1213
- path.q1r(i, toNumber(tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs));
1214
- var tmp2_elvis_lhs = p.t1q_1;
1215
- path.r1r(i, tmp2_elvis_lhs == null ? NaN : tmp2_elvis_lhs);
1216
- var tmp3_safe_receiver = p.q1q_1;
1397
+ var p = iterator.next_20eer_k$();
1398
+ path.setLatitude_skkzf0_k$(i, p.latitudeDeg_1 * 0.017453292519943295);
1399
+ path.setLongitude_k0bc8l_k$(i, p.longitudeDeg_1 * 0.017453292519943295);
1400
+ var tmp0_elvis_lhs = p.elevationM_1;
1401
+ path.setElevation_pv2zuv_k$(i, tmp0_elvis_lhs == null ? 0.0 : tmp0_elvis_lhs);
1402
+ var tmp1_elvis_lhs = p.timeEpochMs_1;
1403
+ path.setTime_rfmvcd_k$(i, toNumber(tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs));
1404
+ var tmp2_elvis_lhs = p.powerW_1;
1405
+ path.setPInputPower_i1beh_k$(i, tmp2_elvis_lhs == null ? NaN : tmp2_elvis_lhs);
1406
+ var tmp3_safe_receiver = p.heartRate_1;
1217
1407
  var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver;
1218
- path.s1r(i, tmp4_elvis_lhs == null ? NaN : tmp4_elvis_lhs);
1219
- var tmp5_safe_receiver = p.r1q_1;
1408
+ path.setHeartRate_3mzzq6_k$(i, tmp4_elvis_lhs == null ? NaN : tmp4_elvis_lhs);
1409
+ var tmp5_safe_receiver = p.cadence_1;
1220
1410
  var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : tmp5_safe_receiver;
1221
- path.t1r(i, tmp6_elvis_lhs == null ? NaN : tmp6_elvis_lhs);
1222
- var tmp7_elvis_lhs = p.s1q_1;
1223
- path.u1r(i, tmp7_elvis_lhs == null ? NaN : tmp7_elvis_lhs);
1411
+ path.setCadence_ick7df_k$(i, tmp6_elvis_lhs == null ? NaN : tmp6_elvis_lhs);
1412
+ var tmp7_elvis_lhs = p.temperatureC_1;
1413
+ path.setTemperature_nno5xs_k$(i, tmp7_elvis_lhs == null ? NaN : tmp7_elvis_lhs);
1224
1414
  }
1225
- path.e1s();
1415
+ path.computeDerivedData_uoxpeo_k$();
1226
1416
  return path;
1227
1417
  }
1228
- function writeDocument($this, w, document) {
1229
- w.w19('', 'http://www.topografix.com/GPX/1/1');
1230
- w.w19('xsi', 'http://www.w3.org/2001/XMLSchema-instance');
1231
- w.w19('gpxtpx', 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1');
1232
- w.y19('http://www.topografix.com/GPX/1/1', 'gpx', '');
1233
- w.a1a(null, 'version', null, '1.1');
1234
- w.a1a(null, 'creator', null, '@glandais/vcyclist');
1235
- w.x19('', 'http://www.topografix.com/GPX/1/1');
1236
- w.x19('xsi', 'http://www.w3.org/2001/XMLSchema-instance');
1237
- w.x19('gpxtpx', 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1');
1238
- w.a1a('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');
1239
- writeMetadata($this, w, document.c1q_1);
1240
- var _iterator__ex2g4s = document.e1q_1.i();
1241
- while (_iterator__ex2g4s.j()) {
1242
- var waypoint = _iterator__ex2g4s.k();
1418
+ var properties_initialized_GpxToPath_kt_83hcm9;
1419
+ function _init_properties_GpxToPath_kt__pb67h9() {
1420
+ if (!properties_initialized_GpxToPath_kt_83hcm9) {
1421
+ properties_initialized_GpxToPath_kt_83hcm9 = true;
1422
+ ALL_KINDS = toSet(get_entries());
1423
+ }
1424
+ }
1425
+ function writeDocument($this, w, document, writeExtensions) {
1426
+ w.setPrefix_e36xz8_k$('', 'http://www.topografix.com/GPX/1/1');
1427
+ w.setPrefix_e36xz8_k$('xsi', 'http://www.w3.org/2001/XMLSchema-instance');
1428
+ if (writeExtensions) {
1429
+ w.setPrefix_e36xz8_k$('gpxtpx', 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1');
1430
+ }
1431
+ w.startTag_pjuzbi_k$('http://www.topografix.com/GPX/1/1', 'gpx', '');
1432
+ w.attribute_ruzjv8_k$(null, 'version', null, '1.1');
1433
+ w.attribute_ruzjv8_k$(null, 'creator', null, '@glandais/vcyclist');
1434
+ w.namespaceAttr_vkifxg_k$('', 'http://www.topografix.com/GPX/1/1');
1435
+ w.namespaceAttr_vkifxg_k$('xsi', 'http://www.w3.org/2001/XMLSchema-instance');
1436
+ if (writeExtensions) {
1437
+ w.namespaceAttr_vkifxg_k$('gpxtpx', 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1');
1438
+ }
1439
+ w.attribute_ruzjv8_k$('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');
1440
+ writeMetadata($this, w, document.name_1);
1441
+ var _iterator__ex2g4s = document.waypoints_1.iterator_jk1svi_k$();
1442
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
1443
+ var waypoint = _iterator__ex2g4s.next_20eer_k$();
1243
1444
  writeWaypoint($this, w, waypoint);
1244
1445
  }
1245
- var _iterator__ex2g4s_0 = document.d1q_1.i();
1246
- while (_iterator__ex2g4s_0.j()) {
1247
- var track = _iterator__ex2g4s_0.k();
1248
- writeTrack($this, w, track);
1446
+ var _iterator__ex2g4s_0 = document.tracks_1.iterator_jk1svi_k$();
1447
+ while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
1448
+ var track = _iterator__ex2g4s_0.next_20eer_k$();
1449
+ switch (track.kind_1.ordinal_1) {
1450
+ case 1:
1451
+ writeRoute($this, w, track, writeExtensions);
1452
+ break;
1453
+ case 0:
1454
+ writeTrack($this, w, track, writeExtensions);
1455
+ break;
1456
+ default:
1457
+ noWhenBranchMatchedException();
1458
+ break;
1459
+ }
1249
1460
  }
1250
- w.d1a('http://www.topografix.com/GPX/1/1', 'gpx', '');
1461
+ w.endTag_yzukbv_k$('http://www.topografix.com/GPX/1/1', 'gpx', '');
1251
1462
  }
1252
1463
  function writeWaypoint($this, w, waypoint) {
1253
- w.y19('http://www.topografix.com/GPX/1/1', 'wpt', '');
1254
- w.a1a(null, 'lat', null, waypoint.u1p_1.toString());
1255
- w.a1a(null, 'lon', null, waypoint.v1p_1.toString());
1256
- var tmp0_safe_receiver = waypoint.w1p_1;
1464
+ w.startTag_pjuzbi_k$('http://www.topografix.com/GPX/1/1', 'wpt', '');
1465
+ w.attribute_ruzjv8_k$(null, 'lat', null, waypoint.latitudeDeg_1.toString());
1466
+ w.attribute_ruzjv8_k$(null, 'lon', null, waypoint.longitudeDeg_1.toString());
1467
+ var tmp0_safe_receiver = waypoint.elevationM_1;
1257
1468
  if (tmp0_safe_receiver == null)
1258
1469
  null;
1259
1470
  else {
1260
1471
  // Inline function 'kotlin.let' call
1261
1472
  writeSimpleText(GpxWriter_instance, w, 'ele', tmp0_safe_receiver.toString());
1262
1473
  }
1263
- var tmp1_safe_receiver = waypoint.b1q_1;
1474
+ var tmp1_safe_receiver = waypoint.timeEpochMs_1;
1264
1475
  if (tmp1_safe_receiver == null)
1265
1476
  null;
1266
1477
  else {
1267
1478
  // Inline function 'kotlin.let' call
1268
- writeSimpleText(GpxWriter_instance, w, 'time', Companion_getInstance().nd(tmp1_safe_receiver).toString());
1479
+ writeSimpleText(GpxWriter_instance, w, 'time', Companion_getInstance().fromEpochMilliseconds_uaz65_k$(tmp1_safe_receiver).toString());
1269
1480
  }
1270
- var tmp2_safe_receiver = waypoint.x1p_1;
1481
+ var tmp2_safe_receiver = waypoint.name_1;
1271
1482
  if (tmp2_safe_receiver == null)
1272
1483
  null;
1273
1484
  else {
1274
1485
  // Inline function 'kotlin.let' call
1275
1486
  writeSimpleText(GpxWriter_instance, w, 'name', tmp2_safe_receiver);
1276
1487
  }
1277
- var tmp3_safe_receiver = waypoint.y1p_1;
1488
+ var tmp3_safe_receiver = waypoint.description_1;
1278
1489
  if (tmp3_safe_receiver == null)
1279
1490
  null;
1280
1491
  else {
1281
1492
  // Inline function 'kotlin.let' call
1282
1493
  writeSimpleText(GpxWriter_instance, w, 'desc', tmp3_safe_receiver);
1283
1494
  }
1284
- var tmp4_safe_receiver = waypoint.z1p_1;
1495
+ var tmp4_safe_receiver = waypoint.symbol_1;
1285
1496
  if (tmp4_safe_receiver == null)
1286
1497
  null;
1287
1498
  else {
1288
1499
  // Inline function 'kotlin.let' call
1289
1500
  writeSimpleText(GpxWriter_instance, w, 'sym', tmp4_safe_receiver);
1290
1501
  }
1291
- var tmp5_safe_receiver = waypoint.a1q_1;
1502
+ var tmp5_safe_receiver = waypoint.type_1;
1292
1503
  if (tmp5_safe_receiver == null)
1293
1504
  null;
1294
1505
  else {
1295
1506
  // Inline function 'kotlin.let' call
1296
1507
  writeSimpleText(GpxWriter_instance, w, 'type', tmp5_safe_receiver);
1297
1508
  }
1298
- w.d1a('http://www.topografix.com/GPX/1/1', 'wpt', '');
1509
+ w.endTag_yzukbv_k$('http://www.topografix.com/GPX/1/1', 'wpt', '');
1299
1510
  }
1300
1511
  function writeMetadata($this, w, name) {
1301
- w.y19('http://www.topografix.com/GPX/1/1', 'metadata', '');
1512
+ w.startTag_pjuzbi_k$('http://www.topografix.com/GPX/1/1', 'metadata', '');
1302
1513
  writeSimpleText($this, w, 'name', name);
1303
- w.d1a('http://www.topografix.com/GPX/1/1', 'metadata', '');
1514
+ w.endTag_yzukbv_k$('http://www.topografix.com/GPX/1/1', 'metadata', '');
1304
1515
  }
1305
- function writeTrack($this, w, track) {
1306
- w.y19('http://www.topografix.com/GPX/1/1', 'trk', '');
1307
- var tmp0_safe_receiver = track.g1q_1;
1516
+ function writeTrack($this, w, track, writeExtensions) {
1517
+ w.startTag_pjuzbi_k$('http://www.topografix.com/GPX/1/1', 'trk', '');
1518
+ var tmp0_safe_receiver = track.name_1;
1308
1519
  if (tmp0_safe_receiver == null)
1309
1520
  null;
1310
1521
  else {
1311
1522
  // Inline function 'kotlin.let' call
1312
1523
  writeSimpleText(GpxWriter_instance, w, 'name', tmp0_safe_receiver);
1313
1524
  }
1314
- var tmp1_safe_receiver = track.h1q_1;
1525
+ var tmp1_safe_receiver = track.type_1;
1315
1526
  if (tmp1_safe_receiver == null)
1316
1527
  null;
1317
1528
  else {
1318
1529
  // Inline function 'kotlin.let' call
1319
1530
  writeSimpleText(GpxWriter_instance, w, 'type', tmp1_safe_receiver);
1320
1531
  }
1321
- var _iterator__ex2g4s = track.i1q_1.i();
1322
- while (_iterator__ex2g4s.j()) {
1323
- var segment = _iterator__ex2g4s.k();
1324
- w.y19('http://www.topografix.com/GPX/1/1', 'trkseg', '');
1325
- var _iterator__ex2g4s_0 = segment.k1q_1.i();
1326
- while (_iterator__ex2g4s_0.j()) {
1327
- var p = _iterator__ex2g4s_0.k();
1328
- writeTrackPoint($this, w, p);
1532
+ var _iterator__ex2g4s = track.segments_1.iterator_jk1svi_k$();
1533
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
1534
+ var segment = _iterator__ex2g4s.next_20eer_k$();
1535
+ w.startTag_pjuzbi_k$('http://www.topografix.com/GPX/1/1', 'trkseg', '');
1536
+ var _iterator__ex2g4s_0 = segment.points_1.iterator_jk1svi_k$();
1537
+ while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
1538
+ var p = _iterator__ex2g4s_0.next_20eer_k$();
1539
+ writeTrackPoint($this, w, p, writeExtensions);
1329
1540
  }
1330
- w.d1a('http://www.topografix.com/GPX/1/1', 'trkseg', '');
1541
+ w.endTag_yzukbv_k$('http://www.topografix.com/GPX/1/1', 'trkseg', '');
1542
+ }
1543
+ w.endTag_yzukbv_k$('http://www.topografix.com/GPX/1/1', 'trk', '');
1544
+ }
1545
+ function writeRoute($this, w, route, writeExtensions) {
1546
+ w.startTag_pjuzbi_k$('http://www.topografix.com/GPX/1/1', 'rte', '');
1547
+ var tmp0_safe_receiver = route.name_1;
1548
+ if (tmp0_safe_receiver == null)
1549
+ null;
1550
+ else {
1551
+ // Inline function 'kotlin.let' call
1552
+ writeSimpleText(GpxWriter_instance, w, 'name', tmp0_safe_receiver);
1553
+ }
1554
+ var tmp1_safe_receiver = route.type_1;
1555
+ if (tmp1_safe_receiver == null)
1556
+ null;
1557
+ else {
1558
+ // Inline function 'kotlin.let' call
1559
+ writeSimpleText(GpxWriter_instance, w, 'type', tmp1_safe_receiver);
1331
1560
  }
1332
- w.d1a('http://www.topografix.com/GPX/1/1', 'trk', '');
1561
+ var _iterator__ex2g4s = route.get_points_i5obn0_k$().iterator_jk1svi_k$();
1562
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
1563
+ var p = _iterator__ex2g4s.next_20eer_k$();
1564
+ writeTrackPoint($this, w, p, writeExtensions, 'rtept');
1565
+ }
1566
+ w.endTag_yzukbv_k$('http://www.topografix.com/GPX/1/1', 'rte', '');
1333
1567
  }
1334
- function writeTrackPoint($this, w, p) {
1335
- w.y19('http://www.topografix.com/GPX/1/1', 'trkpt', '');
1336
- w.a1a(null, 'lat', null, p.m1q_1.toString());
1337
- w.a1a(null, 'lon', null, p.n1q_1.toString());
1338
- var tmp0_safe_receiver = p.p1q_1;
1568
+ function writeTrackPoint($this, w, p, writeExtensions, localName) {
1569
+ localName = localName === VOID ? 'trkpt' : localName;
1570
+ w.startTag_pjuzbi_k$('http://www.topografix.com/GPX/1/1', localName, '');
1571
+ w.attribute_ruzjv8_k$(null, 'lat', null, p.latitudeDeg_1.toString());
1572
+ w.attribute_ruzjv8_k$(null, 'lon', null, p.longitudeDeg_1.toString());
1573
+ var tmp0_safe_receiver = p.timeEpochMs_1;
1339
1574
  if (tmp0_safe_receiver == null)
1340
1575
  null;
1341
1576
  else {
1342
1577
  // Inline function 'kotlin.let' call
1343
- writeSimpleText(GpxWriter_instance, w, 'time', Companion_getInstance().nd(tmp0_safe_receiver).toString());
1578
+ writeSimpleText(GpxWriter_instance, w, 'time', Companion_getInstance().fromEpochMilliseconds_uaz65_k$(tmp0_safe_receiver).toString());
1344
1579
  }
1345
- var tmp1_safe_receiver = p.o1q_1;
1580
+ var tmp1_safe_receiver = p.elevationM_1;
1346
1581
  if (tmp1_safe_receiver == null)
1347
1582
  null;
1348
1583
  else {
1349
1584
  // Inline function 'kotlin.let' call
1350
1585
  writeSimpleText(GpxWriter_instance, w, 'ele', tmp1_safe_receiver.toString());
1351
1586
  }
1352
- var hasGarminExt = !(p.q1q_1 == null) || !(p.r1q_1 == null) || !(p.s1q_1 == null);
1353
- var hasPower = !(p.t1q_1 == null);
1354
- if (hasGarminExt || hasPower) {
1355
- w.y19('http://www.topografix.com/GPX/1/1', 'extensions', '');
1587
+ var hasGarminExt = !(p.heartRate_1 == null) || !(p.cadence_1 == null) || !(p.temperatureC_1 == null);
1588
+ var hasPower = !(p.powerW_1 == null);
1589
+ if (writeExtensions && (hasGarminExt || hasPower)) {
1590
+ w.startTag_pjuzbi_k$('http://www.topografix.com/GPX/1/1', 'extensions', '');
1356
1591
  if (hasPower) {
1357
- writeSimpleText($this, w, 'power', p.t1q_1.toString());
1592
+ writeSimpleText($this, w, 'power', p.powerW_1.toString());
1358
1593
  }
1359
1594
  if (hasGarminExt) {
1360
- w.y19('http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'TrackPointExtension', 'gpxtpx');
1361
- var tmp2_safe_receiver = p.q1q_1;
1595
+ w.startTag_pjuzbi_k$('http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'TrackPointExtension', 'gpxtpx');
1596
+ var tmp2_safe_receiver = p.heartRate_1;
1362
1597
  if (tmp2_safe_receiver == null)
1363
1598
  null;
1364
1599
  else {
1365
1600
  // Inline function 'kotlin.let' call
1366
1601
  writeNamespaced(GpxWriter_instance, w, 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'hr', 'gpxtpx', tmp2_safe_receiver.toString());
1367
1602
  }
1368
- var tmp3_safe_receiver = p.r1q_1;
1603
+ var tmp3_safe_receiver = p.cadence_1;
1369
1604
  if (tmp3_safe_receiver == null)
1370
1605
  null;
1371
1606
  else {
1372
1607
  // Inline function 'kotlin.let' call
1373
1608
  writeNamespaced(GpxWriter_instance, w, 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'cad', 'gpxtpx', tmp3_safe_receiver.toString());
1374
1609
  }
1375
- var tmp4_safe_receiver = p.s1q_1;
1610
+ var tmp4_safe_receiver = p.temperatureC_1;
1376
1611
  if (tmp4_safe_receiver == null)
1377
1612
  null;
1378
1613
  else {
1379
1614
  // Inline function 'kotlin.let' call
1380
1615
  writeNamespaced(GpxWriter_instance, w, 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'atemp', 'gpxtpx', tmp4_safe_receiver.toString());
1381
1616
  }
1382
- w.d1a('http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'TrackPointExtension', 'gpxtpx');
1617
+ w.endTag_yzukbv_k$('http://www.garmin.com/xmlschemas/TrackPointExtension/v1', 'TrackPointExtension', 'gpxtpx');
1383
1618
  }
1384
- w.d1a('http://www.topografix.com/GPX/1/1', 'extensions', '');
1619
+ w.endTag_yzukbv_k$('http://www.topografix.com/GPX/1/1', 'extensions', '');
1385
1620
  }
1386
- w.d1a('http://www.topografix.com/GPX/1/1', 'trkpt', '');
1621
+ w.endTag_yzukbv_k$('http://www.topografix.com/GPX/1/1', localName, '');
1387
1622
  }
1388
1623
  function writeSimpleText($this, w, localName, text) {
1389
- w.y19('http://www.topografix.com/GPX/1/1', localName, '');
1390
- w.z19(text);
1391
- w.d1a('http://www.topografix.com/GPX/1/1', localName, '');
1624
+ w.startTag_pjuzbi_k$('http://www.topografix.com/GPX/1/1', localName, '');
1625
+ w.text_x72pul_k$(text);
1626
+ w.endTag_yzukbv_k$('http://www.topografix.com/GPX/1/1', localName, '');
1392
1627
  }
1393
1628
  function writeNamespaced($this, w, namespace, localName, prefix, text) {
1394
- w.y19(namespace, localName, prefix);
1395
- w.z19(text);
1396
- w.d1a(namespace, localName, prefix);
1629
+ w.startTag_pjuzbi_k$(namespace, localName, prefix);
1630
+ w.text_x72pul_k$(text);
1631
+ w.endTag_yzukbv_k$(namespace, localName, prefix);
1397
1632
  }
1398
1633
  function GpxWriter() {
1399
- this.f1s_1 = 'http://www.topografix.com/GPX/1/1';
1400
- this.g1s_1 = 'http://www.w3.org/2001/XMLSchema-instance';
1401
- this.h1s_1 = 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1';
1402
- this.i1s_1 = 'xsi';
1403
- this.j1s_1 = 'gpxtpx';
1404
- this.k1s_1 = 'http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd';
1405
- this.l1s_1 = '@glandais/vcyclist';
1406
- }
1407
- protoOf(GpxWriter).m1s = function (document) {
1634
+ this.NS_GPX_1 = 'http://www.topografix.com/GPX/1/1';
1635
+ this.NS_XSI_1 = 'http://www.w3.org/2001/XMLSchema-instance';
1636
+ this.NS_GARMIN_TPX_1 = 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1';
1637
+ this.PREFIX_XSI_1 = 'xsi';
1638
+ this.PREFIX_GARMIN_TPX_1 = 'gpxtpx';
1639
+ this.SCHEMA_LOCATION_1 = 'http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd';
1640
+ this.CREATOR_1 = '@glandais/vcyclist';
1641
+ }
1642
+ protoOf(GpxWriter).write_7y52k2_k$ = function (document, writeExtensions) {
1408
1643
  var out = StringBuilder_init_$Create$();
1409
- out.v5('<?xml version="1.0" encoding="UTF-8"?>\n');
1644
+ out.append_22ad7x_k$('<?xml version="1.0" encoding="UTF-8"?>\n');
1410
1645
  var writer = newGenericWriter(get_xmlStreaming(), out, false, XmlDeclMode_None_getInstance());
1411
1646
  try {
1412
- writeDocument(this, writer, document);
1647
+ writeDocument(this, writer, document, writeExtensions);
1413
1648
  }finally {
1414
- writer.e18();
1649
+ writer.close_yn9xrc_k$();
1415
1650
  }
1416
1651
  return out.toString();
1417
1652
  };
1418
- protoOf(GpxWriter).n1s = function (paths, name, trackNames, waypoints, startTime) {
1419
- return this.m1s(pathsToGpxDocument(paths, name, trackNames, waypoints, VOID, startTime));
1653
+ protoOf(GpxWriter).write_jjl3rf_k$ = function (paths, name, trackNames, waypoints, startTime, writeExtensions) {
1654
+ return this.write_7y52k2_k$(pathsToGpxDocument(paths, name, trackNames, waypoints, VOID, startTime), writeExtensions);
1420
1655
  };
1421
- protoOf(GpxWriter).o1s = function (paths, name, trackNames, waypoints, startTime, $super) {
1656
+ protoOf(GpxWriter).write$default_koqy5u_k$ = function (paths, name, trackNames, waypoints, startTime, writeExtensions, $super) {
1422
1657
  name = name === VOID ? 'noname' : name;
1423
1658
  trackNames = trackNames === VOID ? null : trackNames;
1424
1659
  waypoints = waypoints === VOID ? emptyList() : waypoints;
1425
1660
  startTime = startTime === VOID ? null : startTime;
1426
- return $super === VOID ? this.n1s(paths, name, trackNames, waypoints, startTime) : $super.n1s.call(this, paths, name, trackNames, waypoints, startTime);
1661
+ writeExtensions = writeExtensions === VOID ? true : writeExtensions;
1662
+ return $super === VOID ? this.write_jjl3rf_k$(paths, name, trackNames, waypoints, startTime, writeExtensions) : $super.write_jjl3rf_k$.call(this, paths, name, trackNames, waypoints, startTime, writeExtensions);
1427
1663
  };
1428
1664
  var GpxWriter_instance;
1429
1665
  function GpxWriter_getInstance() {
@@ -1454,11 +1690,11 @@
1454
1690
  var c = charCodeAt(xml, i);
1455
1691
  if (isHighSurrogate(c) && (i + 1 | 0) < n && isLowSurrogate(charCodeAt(xml, i + 1 | 0))) {
1456
1692
  var tmp0_safe_receiver = sb;
1457
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w5(c);
1693
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.append_58al37_k$(c);
1458
1694
  if (tmp1_safe_receiver == null)
1459
1695
  null;
1460
1696
  else
1461
- tmp1_safe_receiver.w5(charCodeAt(xml, i + 1 | 0));
1697
+ tmp1_safe_receiver.append_58al37_k$(charCodeAt(xml, i + 1 | 0));
1462
1698
  i = i + 2 | 0;
1463
1699
  continue $l$loop;
1464
1700
  }
@@ -1470,10 +1706,10 @@
1470
1706
  if (tmp2_safe_receiver == null)
1471
1707
  null;
1472
1708
  else
1473
- tmp2_safe_receiver.w5(c);
1709
+ tmp2_safe_receiver.append_58al37_k$(c);
1474
1710
  } else {
1475
1711
  if (sb == null)
1476
- sb = StringBuilder_init_$Create$_0(xml.length).y8(xml, 0, i);
1712
+ sb = StringBuilder_init_$Create$_0(xml.length).append_xdc1zw_k$(xml, 0, i);
1477
1713
  count = count + 1 | 0;
1478
1714
  }
1479
1715
  i = i + 1 | 0;
@@ -1493,11 +1729,11 @@
1493
1729
  if (tmp0_safe_receiver == null)
1494
1730
  null;
1495
1731
  else
1496
- tmp0_safe_receiver.w5(c);
1732
+ tmp0_safe_receiver.append_58al37_k$(c);
1497
1733
  } else {
1498
1734
  if (sb == null)
1499
- sb = StringBuilder_init_$Create$_0(xml.length + 16 | 0).y8(xml, 0, i);
1500
- sb.v5('&amp;');
1735
+ sb = StringBuilder_init_$Create$_0(xml.length + 16 | 0).append_xdc1zw_k$(xml, 0, i);
1736
+ sb.append_22ad7x_k$('&amp;');
1501
1737
  count = count + 1 | 0;
1502
1738
  }
1503
1739
  } else {
@@ -1505,7 +1741,7 @@
1505
1741
  if (tmp1_safe_receiver == null)
1506
1742
  null;
1507
1743
  else
1508
- tmp1_safe_receiver.w5(c);
1744
+ tmp1_safe_receiver.append_58al37_k$(c);
1509
1745
  }
1510
1746
  i = i + 1 | 0;
1511
1747
  }
@@ -1513,20 +1749,20 @@
1513
1749
  }
1514
1750
  function recombineSurrogatePairReferences($this, xml) {
1515
1751
  var refs = findNumericReferences($this, xml);
1516
- if (refs.l() < 2)
1752
+ if (refs.get_size_woubt6_k$() < 2)
1517
1753
  return null;
1518
1754
  var count = 0;
1519
1755
  var sb = StringBuilder_init_$Create$_0(xml.length);
1520
1756
  var copiedUpTo = 0;
1521
1757
  var i = 0;
1522
- while (i < refs.l()) {
1523
- var high = refs.m(i);
1758
+ while (i < refs.get_size_woubt6_k$()) {
1759
+ var high = refs.get_c1px32_k$(i);
1524
1760
  var low = getOrNull(refs, i + 1 | 0);
1525
- if (!(low == null) && high.q1s_1 === low.p1s_1 && isHighSurrogate_0($this, high.r1s_1) && isLowSurrogate_0($this, low.r1s_1)) {
1526
- sb.y8(xml, copiedUpTo, high.p1s_1);
1527
- var codePoint = (65536 + imul(high.r1s_1 - 55296 | 0, 1024) | 0) + (low.r1s_1 - 56320 | 0) | 0;
1528
- sb.v5('&#').a9(codePoint).w5(_Char___init__impl__6a9atx(59));
1529
- copiedUpTo = low.q1s_1;
1761
+ if (!(low == null) && high.end_1 === low.start_1 && isHighSurrogate_0($this, high.value_1) && isLowSurrogate_0($this, low.value_1)) {
1762
+ sb.append_xdc1zw_k$(xml, copiedUpTo, high.start_1);
1763
+ var codePoint = (65536 + imul(high.value_1 - 55296 | 0, 1024) | 0) + (low.value_1 - 56320 | 0) | 0;
1764
+ sb.append_22ad7x_k$('&#').append_uppzia_k$(codePoint).append_58al37_k$(_Char___init__impl__6a9atx(59));
1765
+ copiedUpTo = low.end_1;
1530
1766
  count = count + 1 | 0;
1531
1767
  i = i + 2 | 0;
1532
1768
  } else {
@@ -1535,21 +1771,21 @@
1535
1771
  }
1536
1772
  if (count === 0)
1537
1773
  return null;
1538
- sb.y8(xml, copiedUpTo, xml.length);
1774
+ sb.append_xdc1zw_k$(xml, copiedUpTo, xml.length);
1539
1775
  return new Pair(sb.toString(), count);
1540
1776
  }
1541
1777
  function NumericRef(start, end, value) {
1542
- this.p1s_1 = start;
1543
- this.q1s_1 = end;
1544
- this.r1s_1 = value;
1778
+ this.start_1 = start;
1779
+ this.end_1 = end;
1780
+ this.value_1 = value;
1545
1781
  }
1546
1782
  protoOf(NumericRef).toString = function () {
1547
- return 'NumericRef(start=' + this.p1s_1 + ', end=' + this.q1s_1 + ', value=' + this.r1s_1 + ')';
1783
+ return 'NumericRef(start=' + this.start_1 + ', end=' + this.end_1 + ', value=' + this.value_1 + ')';
1548
1784
  };
1549
1785
  protoOf(NumericRef).hashCode = function () {
1550
- var result = this.p1s_1;
1551
- result = imul(result, 31) + this.q1s_1 | 0;
1552
- result = imul(result, 31) + this.r1s_1 | 0;
1786
+ var result = this.start_1;
1787
+ result = imul(result, 31) + this.end_1 | 0;
1788
+ result = imul(result, 31) + this.value_1 | 0;
1553
1789
  return result;
1554
1790
  };
1555
1791
  protoOf(NumericRef).equals = function (other) {
@@ -1557,11 +1793,11 @@
1557
1793
  return true;
1558
1794
  if (!(other instanceof NumericRef))
1559
1795
  return false;
1560
- if (!(this.p1s_1 === other.p1s_1))
1796
+ if (!(this.start_1 === other.start_1))
1561
1797
  return false;
1562
- if (!(this.q1s_1 === other.q1s_1))
1798
+ if (!(this.end_1 === other.end_1))
1563
1799
  return false;
1564
- if (!(this.r1s_1 === other.r1s_1))
1800
+ if (!(this.value_1 === other.value_1))
1565
1801
  return false;
1566
1802
  return true;
1567
1803
  };
@@ -1576,7 +1812,7 @@
1576
1812
  if (!(end === -1)) {
1577
1813
  var value = parseNumericReferenceValue($this, substring_0(xml, i + 2 | 0, end));
1578
1814
  if (!(value === -1)) {
1579
- refs.h(new NumericRef(i, end + 1 | 0, value));
1815
+ refs.add_utx5q5_k$(new NumericRef(i, end + 1 | 0, value));
1580
1816
  }
1581
1817
  i = end + 1 | 0;
1582
1818
  continue $l$loop;
@@ -1648,20 +1884,20 @@
1648
1884
  }
1649
1885
  if (j >= n || !(charCodeAt(xml, j) === _Char___init__impl__6a9atx(59)))
1650
1886
  return -1;
1651
- return $this.j1r_1.e1(substring_0(xml, nameStart, j)) ? j : -1;
1887
+ return $this.PREDEFINED_ENTITIES_1.contains_aljjnj_k$(substring_0(xml, nameStart, j)) ? j : -1;
1652
1888
  }
1653
1889
  function isHexDigit($this, $receiver) {
1654
1890
  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
1891
  }
1656
1892
  function GpxXmlRepair() {
1657
1893
  GpxXmlRepair_instance = this;
1658
- this.j1r_1 = setOf(['amp', 'lt', 'gt', 'apos', 'quot']);
1659
- this.k1r_1 = 20;
1894
+ this.PREDEFINED_ENTITIES_1 = setOf(['amp', 'lt', 'gt', 'apos', 'quot']);
1895
+ this.MAX_REFERENCE_BODY_LENGTH_1 = 20;
1660
1896
  }
1661
- protoOf(GpxXmlRepair).l1r = function (xml) {
1662
- return this.u1s(xml).s1s_1;
1897
+ protoOf(GpxXmlRepair).repair_iwt4xf_k$ = function (xml) {
1898
+ return this.repairVerbose_mzqg4l_k$(xml).xml_1;
1663
1899
  };
1664
- protoOf(GpxXmlRepair).u1s = function (xml) {
1900
+ protoOf(GpxXmlRepair).repairVerbose_mzqg4l_k$ = function (xml) {
1665
1901
  // Inline function 'kotlin.collections.mutableListOf' call
1666
1902
  var repairs = ArrayList_init_$Create$();
1667
1903
  var current = xml;
@@ -1673,43 +1909,43 @@
1673
1909
  current = tmp0_safe_receiver;
1674
1910
  // Inline function 'kotlin.collections.plusAssign' call
1675
1911
  var element = 'removed leading UTF-8 BOM (U+FEFF)';
1676
- repairs.h(element);
1912
+ repairs.add_utx5q5_k$(element);
1677
1913
  }
1678
1914
  var tmp1_safe_receiver = stripIllegalControlChars(this, current);
1679
1915
  if (tmp1_safe_receiver == null)
1680
1916
  null;
1681
1917
  else {
1682
1918
  // Inline function 'kotlin.let' call
1683
- var repairedXml = tmp1_safe_receiver.qe();
1684
- var count = tmp1_safe_receiver.re();
1919
+ var repairedXml = tmp1_safe_receiver.component1_7eebsc_k$();
1920
+ var count = tmp1_safe_receiver.component2_7eebsb_k$();
1685
1921
  current = repairedXml;
1686
1922
  // Inline function 'kotlin.collections.plusAssign' call
1687
1923
  var element_0 = 'removed ' + count + ' illegal XML 1.0 control character(s)';
1688
- repairs.h(element_0);
1924
+ repairs.add_utx5q5_k$(element_0);
1689
1925
  }
1690
1926
  var tmp2_safe_receiver = recombineSurrogatePairReferences(this, current);
1691
1927
  if (tmp2_safe_receiver == null)
1692
1928
  null;
1693
1929
  else {
1694
1930
  // Inline function 'kotlin.let' call
1695
- var repairedXml_0 = tmp2_safe_receiver.qe();
1696
- var count_0 = tmp2_safe_receiver.re();
1931
+ var repairedXml_0 = tmp2_safe_receiver.component1_7eebsc_k$();
1932
+ var count_0 = tmp2_safe_receiver.component2_7eebsb_k$();
1697
1933
  current = repairedXml_0;
1698
1934
  // Inline function 'kotlin.collections.plusAssign' call
1699
1935
  var element_1 = 'recombined ' + count_0 + ' surrogate-pair numeric character reference(s)';
1700
- repairs.h(element_1);
1936
+ repairs.add_utx5q5_k$(element_1);
1701
1937
  }
1702
1938
  var tmp3_safe_receiver = escapeBareAmpersands(this, current);
1703
1939
  if (tmp3_safe_receiver == null)
1704
1940
  null;
1705
1941
  else {
1706
1942
  // Inline function 'kotlin.let' call
1707
- var repairedXml_1 = tmp3_safe_receiver.qe();
1708
- var count_1 = tmp3_safe_receiver.re();
1943
+ var repairedXml_1 = tmp3_safe_receiver.component1_7eebsc_k$();
1944
+ var count_1 = tmp3_safe_receiver.component2_7eebsb_k$();
1709
1945
  current = repairedXml_1;
1710
1946
  // Inline function 'kotlin.collections.plusAssign' call
1711
1947
  var element_2 = 'escaped ' + count_1 + " bare '&' character(s)";
1712
- repairs.h(element_2);
1948
+ repairs.add_utx5q5_k$(element_2);
1713
1949
  }
1714
1950
  return new RepairResult(current, repairs);
1715
1951
  };
@@ -1720,15 +1956,15 @@
1720
1956
  return GpxXmlRepair_instance;
1721
1957
  }
1722
1958
  function RepairResult(xml, repairs) {
1723
- this.s1s_1 = xml;
1724
- this.t1s_1 = repairs;
1959
+ this.xml_1 = xml;
1960
+ this.repairs_1 = repairs;
1725
1961
  }
1726
1962
  protoOf(RepairResult).toString = function () {
1727
- return 'RepairResult(xml=' + this.s1s_1 + ', repairs=' + toString_0(this.t1s_1) + ')';
1963
+ return 'RepairResult(xml=' + this.xml_1 + ', repairs=' + toString_0(this.repairs_1) + ')';
1728
1964
  };
1729
1965
  protoOf(RepairResult).hashCode = function () {
1730
- var result = getStringHashCode(this.s1s_1);
1731
- result = imul(result, 31) + hashCode(this.t1s_1) | 0;
1966
+ var result = getStringHashCode(this.xml_1);
1967
+ result = imul(result, 31) + hashCode(this.repairs_1) | 0;
1732
1968
  return result;
1733
1969
  };
1734
1970
  protoOf(RepairResult).equals = function (other) {
@@ -1736,9 +1972,9 @@
1736
1972
  return true;
1737
1973
  if (!(other instanceof RepairResult))
1738
1974
  return false;
1739
- if (!(this.s1s_1 === other.s1s_1))
1975
+ if (!(this.xml_1 === other.xml_1))
1740
1976
  return false;
1741
- if (!equals(this.t1s_1, other.t1s_1))
1977
+ if (!equals(this.repairs_1, other.repairs_1))
1742
1978
  return false;
1743
1979
  return true;
1744
1980
  };
@@ -1759,9 +1995,9 @@
1759
1995
  var negative = value < 0.0;
1760
1996
  // Inline function 'kotlin.math.abs' call
1761
1997
  var absValue = Math.abs(value);
1762
- var scale = toNumber($this.w1s_1[decimals]);
1998
+ var scale = toNumber($this.pow10Long_1[decimals]);
1763
1999
  var scaledLong = numberToLong(round(absValue * scale));
1764
- var whole = $this.w1s_1[decimals];
2000
+ var whole = $this.pow10Long_1[decimals];
1765
2001
  var intPart = divide(scaledLong, whole);
1766
2002
  var sign = negative && !equalsLong(scaledLong, new Long(0, 0)) ? '-' : '';
1767
2003
  var tmp;
@@ -1775,7 +2011,7 @@
1775
2011
  }
1776
2012
  function CsvNumberFormat() {
1777
2013
  CsvNumberFormat_instance = this;
1778
- this.v1s_1 = 12;
2014
+ this.MAX_AUTO_DECIMALS_1 = 12;
1779
2015
  var tmp = this;
1780
2016
  // Inline function 'kotlin.also' call
1781
2017
  var this_0 = longArray(13);
@@ -1790,9 +2026,9 @@
1790
2026
  p = multiply(p, new Long(10, 0));
1791
2027
  }
1792
2028
  while (inductionVariable <= last);
1793
- tmp.w1s_1 = this_0;
2029
+ tmp.pow10Long_1 = this_0;
1794
2030
  }
1795
- protoOf(CsvNumberFormat).x1s = function (value, decimals) {
2031
+ protoOf(CsvNumberFormat).format_whs5r8_k$ = function (value, decimals) {
1796
2032
  if (isNaN_0(value))
1797
2033
  return '';
1798
2034
  if (isInfinite(value))
@@ -1817,19 +2053,19 @@
1817
2053
  return CsvNumberFormat_instance;
1818
2054
  }
1819
2055
  function headerFor($this, field, unitsInHeader) {
1820
- return unitsInHeader ? field.a1t_1 + ' (' + field.b1t_1 + ')' : field.a1t_1;
2056
+ return unitsInHeader ? field.prop_1 + ' (' + field.unit_1 + ')' : field.prop_1;
1821
2057
  }
1822
2058
  function appendRow($this, sb, cells, options) {
1823
- var iterator = cells.i();
2059
+ var iterator = cells.iterator_jk1svi_k$();
1824
2060
  var index = 0;
1825
- while (iterator.j()) {
2061
+ while (iterator.hasNext_bitz1p_k$()) {
1826
2062
  var i = index;
1827
2063
  index = index + 1 | 0;
1828
- var cell = iterator.k();
2064
+ var cell = iterator.next_20eer_k$();
1829
2065
  if (i > 0) {
1830
- sb.w5(options.h1t_1);
2066
+ sb.append_58al37_k$(options.separator_1);
1831
2067
  }
1832
- sb.v5(escapeCsvCell($this, cell, options.h1t_1));
2068
+ sb.append_22ad7x_k$(escapeCsvCell($this, cell, options.separator_1));
1833
2069
  }
1834
2070
  }
1835
2071
  function escapeCsvCell($this, cell, separator) {
@@ -1858,35 +2094,35 @@
1858
2094
  }
1859
2095
  function CsvWriter() {
1860
2096
  }
1861
- protoOf(CsvWriter).l1t = function (path, options) {
1862
- var tmp0_elvis_lhs = options.g1t_1;
1863
- var fields = tmp0_elvis_lhs == null ? get_entries() : tmp0_elvis_lhs;
2097
+ protoOf(CsvWriter).write_p5vnh4_k$ = function (path, options) {
2098
+ var tmp0_elvis_lhs = options.fields_1;
2099
+ var fields = tmp0_elvis_lhs == null ? get_entries_0() : tmp0_elvis_lhs;
1864
2100
  var sb = StringBuilder_init_$Create$();
1865
2101
  // Inline function 'kotlin.collections.map' call
1866
2102
  // Inline function 'kotlin.collections.mapTo' call
1867
2103
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(fields, 10));
1868
- var _iterator__ex2g4s = fields.i();
1869
- while (_iterator__ex2g4s.j()) {
1870
- var item = _iterator__ex2g4s.k();
1871
- var tmp$ret$2 = headerFor(CsvWriter_instance, item, options.i1t_1);
1872
- destination.h(tmp$ret$2);
2104
+ var _iterator__ex2g4s = fields.iterator_jk1svi_k$();
2105
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
2106
+ var item = _iterator__ex2g4s.next_20eer_k$();
2107
+ var tmp$ret$2 = headerFor(CsvWriter_instance, item, options.unitsInHeader_1);
2108
+ destination.add_utx5q5_k$(tmp$ret$2);
1873
2109
  }
1874
2110
  appendRow(this, sb, destination, options);
1875
2111
  var inductionVariable = 0;
1876
- var last = path.u1q_1;
2112
+ var last = path.size_1;
1877
2113
  if (inductionVariable < last)
1878
2114
  do {
1879
2115
  var i = inductionVariable;
1880
2116
  inductionVariable = inductionVariable + 1 | 0;
1881
- sb.v5(options.k1t_1);
2117
+ sb.append_22ad7x_k$(options.lineSeparator_1);
1882
2118
  // Inline function 'kotlin.collections.map' call
1883
2119
  // Inline function 'kotlin.collections.mapTo' call
1884
2120
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(fields, 10));
1885
- var _iterator__ex2g4s_0 = fields.i();
1886
- while (_iterator__ex2g4s_0.j()) {
1887
- var item_0 = _iterator__ex2g4s_0.k();
1888
- var tmp$ret$5 = CsvNumberFormat_getInstance().x1s(path.m1t(i, item_0), options.j1t_1);
1889
- destination_0.h(tmp$ret$5);
2121
+ var _iterator__ex2g4s_0 = fields.iterator_jk1svi_k$();
2122
+ while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
2123
+ var item_0 = _iterator__ex2g4s_0.next_20eer_k$();
2124
+ var tmp$ret$5 = CsvNumberFormat_getInstance().format_whs5r8_k$(path.get_z3le6l_k$(i, item_0), options.decimals_1);
2125
+ destination_0.add_utx5q5_k$(tmp$ret$5);
1890
2126
  }
1891
2127
  appendRow(this, sb, destination_0, options);
1892
2128
  }
@@ -1903,21 +2139,21 @@
1903
2139
  unitsInHeader = unitsInHeader === VOID ? true : unitsInHeader;
1904
2140
  decimals = decimals === VOID ? null : decimals;
1905
2141
  lineSeparator = lineSeparator === VOID ? '\n' : lineSeparator;
1906
- this.g1t_1 = fields;
1907
- this.h1t_1 = separator;
1908
- this.i1t_1 = unitsInHeader;
1909
- this.j1t_1 = decimals;
1910
- this.k1t_1 = lineSeparator;
2142
+ this.fields_1 = fields;
2143
+ this.separator_1 = separator;
2144
+ this.unitsInHeader_1 = unitsInHeader;
2145
+ this.decimals_1 = decimals;
2146
+ this.lineSeparator_1 = lineSeparator;
1911
2147
  }
1912
2148
  protoOf(CsvOptions).toString = function () {
1913
- return 'CsvOptions(fields=' + toString(this.g1t_1) + ', separator=' + toString_1(this.h1t_1) + ', unitsInHeader=' + this.i1t_1 + ', decimals=' + this.j1t_1 + ', lineSeparator=' + this.k1t_1 + ')';
2149
+ return 'CsvOptions(fields=' + toString(this.fields_1) + ', separator=' + toString_1(this.separator_1) + ', unitsInHeader=' + this.unitsInHeader_1 + ', decimals=' + this.decimals_1 + ', lineSeparator=' + this.lineSeparator_1 + ')';
1914
2150
  };
1915
2151
  protoOf(CsvOptions).hashCode = function () {
1916
- var result = this.g1t_1 == null ? 0 : hashCode(this.g1t_1);
1917
- result = imul(result, 31) + Char__hashCode_impl_otmys(this.h1t_1) | 0;
1918
- result = imul(result, 31) + getBooleanHashCode(this.i1t_1) | 0;
1919
- result = imul(result, 31) + (this.j1t_1 == null ? 0 : this.j1t_1) | 0;
1920
- result = imul(result, 31) + getStringHashCode(this.k1t_1) | 0;
2152
+ var result = this.fields_1 == null ? 0 : hashCode(this.fields_1);
2153
+ result = imul(result, 31) + Char__hashCode_impl_otmys(this.separator_1) | 0;
2154
+ result = imul(result, 31) + getBooleanHashCode(this.unitsInHeader_1) | 0;
2155
+ result = imul(result, 31) + (this.decimals_1 == null ? 0 : this.decimals_1) | 0;
2156
+ result = imul(result, 31) + getStringHashCode(this.lineSeparator_1) | 0;
1921
2157
  return result;
1922
2158
  };
1923
2159
  protoOf(CsvOptions).equals = function (other) {
@@ -1925,78 +2161,78 @@
1925
2161
  return true;
1926
2162
  if (!(other instanceof CsvOptions))
1927
2163
  return false;
1928
- if (!equals(this.g1t_1, other.g1t_1))
2164
+ if (!equals(this.fields_1, other.fields_1))
1929
2165
  return false;
1930
- if (!(this.h1t_1 === other.h1t_1))
2166
+ if (!(this.separator_1 === other.separator_1))
1931
2167
  return false;
1932
- if (!(this.i1t_1 === other.i1t_1))
2168
+ if (!(this.unitsInHeader_1 === other.unitsInHeader_1))
1933
2169
  return false;
1934
- if (!(this.j1t_1 == other.j1t_1))
2170
+ if (!(this.decimals_1 == other.decimals_1))
1935
2171
  return false;
1936
- if (!(this.k1t_1 === other.k1t_1))
2172
+ if (!(this.lineSeparator_1 === other.lineSeparator_1))
1937
2173
  return false;
1938
2174
  return true;
1939
2175
  };
1940
2176
  function appendMeta($this, sb, path, fields, decimals, indent, nl, colon) {
1941
2177
  var inner = indent + indent;
1942
2178
  appendKeyRaw($this, sb, indent, 'meta', colon);
1943
- sb.w5(_Char___init__impl__6a9atx(123)).v5(nl);
1944
- appendKeyValueRaw($this, sb, inner, 'totalDistance', numberOrNull($this, path.x1r_1, decimals), colon);
1945
- sb.w5(_Char___init__impl__6a9atx(44)).v5(nl);
1946
- appendKeyValueRaw($this, sb, inner, 'durationMs', numberOrNull($this, path.c1s_1, decimals), colon);
1947
- sb.w5(_Char___init__impl__6a9atx(44)).v5(nl);
1948
- appendKeyValueRaw($this, sb, inner, 'elevationGain', numberOrNull($this, path.a1s_1, decimals), colon);
1949
- sb.w5(_Char___init__impl__6a9atx(44)).v5(nl);
1950
- appendKeyValueRaw($this, sb, inner, 'elevationLoss', numberOrNull($this, path.b1s_1, decimals), colon);
1951
- sb.w5(_Char___init__impl__6a9atx(44)).v5(nl);
2179
+ sb.append_58al37_k$(_Char___init__impl__6a9atx(123)).append_22ad7x_k$(nl);
2180
+ appendKeyValueRaw($this, sb, inner, 'totalDistance', numberOrNull($this, path.totalDistance_1, decimals), colon);
2181
+ sb.append_58al37_k$(_Char___init__impl__6a9atx(44)).append_22ad7x_k$(nl);
2182
+ appendKeyValueRaw($this, sb, inner, 'durationMs', numberOrNull($this, path.durationMs_1, decimals), colon);
2183
+ sb.append_58al37_k$(_Char___init__impl__6a9atx(44)).append_22ad7x_k$(nl);
2184
+ appendKeyValueRaw($this, sb, inner, 'elevationGain', numberOrNull($this, path.elevationGain_1, decimals), colon);
2185
+ sb.append_58al37_k$(_Char___init__impl__6a9atx(44)).append_22ad7x_k$(nl);
2186
+ appendKeyValueRaw($this, sb, inner, 'elevationLoss', numberOrNull($this, path.elevationLoss_1, decimals), colon);
2187
+ sb.append_58al37_k$(_Char___init__impl__6a9atx(44)).append_22ad7x_k$(nl);
1952
2188
  appendKeyRaw($this, sb, inner, 'units', colon);
1953
- sb.w5(_Char___init__impl__6a9atx(123)).v5(nl);
2189
+ sb.append_58al37_k$(_Char___init__impl__6a9atx(123)).append_22ad7x_k$(nl);
1954
2190
  var innerUnits = inner + indent;
1955
- var iterator = fields.i();
2191
+ var iterator = fields.iterator_jk1svi_k$();
1956
2192
  var index = 0;
1957
- while (iterator.j()) {
2193
+ while (iterator.hasNext_bitz1p_k$()) {
1958
2194
  var i = index;
1959
2195
  index = index + 1 | 0;
1960
- var field = iterator.k();
1961
- appendKeyValueRaw($this, sb, innerUnits, $this.n1t(field.a1t_1), '"' + $this.n1t(field.b1t_1) + '"', colon);
2196
+ var field = iterator.next_20eer_k$();
2197
+ appendKeyValueRaw($this, sb, innerUnits, $this.escapeJsonString_4zkd4o_k$(field.prop_1), '"' + $this.escapeJsonString_4zkd4o_k$(field.unit_1) + '"', colon);
1962
2198
  if (!(i === get_lastIndex(fields))) {
1963
- sb.w5(_Char___init__impl__6a9atx(44));
2199
+ sb.append_58al37_k$(_Char___init__impl__6a9atx(44));
1964
2200
  }
1965
- sb.v5(nl);
2201
+ sb.append_22ad7x_k$(nl);
1966
2202
  }
1967
- sb.v5(inner).w5(_Char___init__impl__6a9atx(125)).v5(nl);
1968
- sb.v5(indent).w5(_Char___init__impl__6a9atx(125));
2203
+ sb.append_22ad7x_k$(inner).append_58al37_k$(_Char___init__impl__6a9atx(125)).append_22ad7x_k$(nl);
2204
+ sb.append_22ad7x_k$(indent).append_58al37_k$(_Char___init__impl__6a9atx(125));
1969
2205
  }
1970
2206
  function appendFields($this, sb, path, fields, options, indent, nl, colon) {
1971
- sb.w5(_Char___init__impl__6a9atx(123)).v5(nl);
2207
+ sb.append_58al37_k$(_Char___init__impl__6a9atx(123)).append_22ad7x_k$(nl);
1972
2208
  var inner = indent + indent;
1973
- var iterator = fields.i();
2209
+ var iterator = fields.iterator_jk1svi_k$();
1974
2210
  var index = 0;
1975
- while (iterator.j()) {
2211
+ while (iterator.hasNext_bitz1p_k$()) {
1976
2212
  var fi = index;
1977
2213
  index = index + 1 | 0;
1978
- var field = iterator.k();
1979
- appendKeyRaw($this, sb, inner, $this.n1t(field.a1t_1), colon);
1980
- sb.w5(_Char___init__impl__6a9atx(91));
2214
+ var field = iterator.next_20eer_k$();
2215
+ appendKeyRaw($this, sb, inner, $this.escapeJsonString_4zkd4o_k$(field.prop_1), colon);
2216
+ sb.append_58al37_k$(_Char___init__impl__6a9atx(91));
1981
2217
  var inductionVariable = 0;
1982
- var last = path.u1q_1;
2218
+ var last = path.size_1;
1983
2219
  if (inductionVariable < last)
1984
2220
  do {
1985
2221
  var i = inductionVariable;
1986
2222
  inductionVariable = inductionVariable + 1 | 0;
1987
2223
  if (i > 0) {
1988
- sb.w5(_Char___init__impl__6a9atx(44));
2224
+ sb.append_58al37_k$(_Char___init__impl__6a9atx(44));
1989
2225
  }
1990
- sb.v5(numberOrNull($this, path.m1t(i, field), options.q1t_1));
2226
+ sb.append_22ad7x_k$(numberOrNull($this, path.get_z3le6l_k$(i, field), options.decimals_1));
1991
2227
  }
1992
2228
  while (inductionVariable < last);
1993
- sb.w5(_Char___init__impl__6a9atx(93));
2229
+ sb.append_58al37_k$(_Char___init__impl__6a9atx(93));
1994
2230
  if (!(fi === get_lastIndex(fields))) {
1995
- sb.w5(_Char___init__impl__6a9atx(44));
2231
+ sb.append_58al37_k$(_Char___init__impl__6a9atx(44));
1996
2232
  }
1997
- sb.v5(nl);
2233
+ sb.append_22ad7x_k$(nl);
1998
2234
  }
1999
- sb.v5(indent).w5(_Char___init__impl__6a9atx(125));
2235
+ sb.append_22ad7x_k$(indent).append_58al37_k$(_Char___init__impl__6a9atx(125));
2000
2236
  }
2001
2237
  function numberOrNull($this, value, decimals) {
2002
2238
  decimals = decimals === VOID ? null : decimals;
@@ -2004,39 +2240,39 @@
2004
2240
  if (isNaN_0(value) || isInfinite(value)) {
2005
2241
  tmp = 'null';
2006
2242
  } else {
2007
- tmp = CsvNumberFormat_getInstance().x1s(value, decimals);
2243
+ tmp = CsvNumberFormat_getInstance().format_whs5r8_k$(value, decimals);
2008
2244
  }
2009
2245
  return tmp;
2010
2246
  }
2011
2247
  function appendKeyRaw($this, sb, indent, key, colon) {
2012
- sb.v5(indent).w5(_Char___init__impl__6a9atx(34)).v5(key).w5(_Char___init__impl__6a9atx(34)).v5(colon);
2248
+ sb.append_22ad7x_k$(indent).append_58al37_k$(_Char___init__impl__6a9atx(34)).append_22ad7x_k$(key).append_58al37_k$(_Char___init__impl__6a9atx(34)).append_22ad7x_k$(colon);
2013
2249
  }
2014
2250
  function appendKeyValueRaw($this, sb, indent, key, rawValue, colon) {
2015
2251
  appendKeyRaw($this, sb, indent, key, colon);
2016
- sb.v5(rawValue);
2252
+ sb.append_22ad7x_k$(rawValue);
2017
2253
  }
2018
2254
  function JsonWriter() {
2019
2255
  }
2020
- protoOf(JsonWriter).s1t = function (path, options) {
2021
- var tmp0_elvis_lhs = options.o1t_1;
2022
- var fields = tmp0_elvis_lhs == null ? get_entries() : tmp0_elvis_lhs;
2256
+ protoOf(JsonWriter).write_lwqeog_k$ = function (path, options) {
2257
+ var tmp0_elvis_lhs = options.fields_1;
2258
+ var fields = tmp0_elvis_lhs == null ? get_entries_0() : tmp0_elvis_lhs;
2023
2259
  var sb = StringBuilder_init_$Create$();
2024
- var indent = options.p1t_1 ? ' ' : '';
2025
- var nl = options.p1t_1 ? '\n' : '';
2026
- var colon = options.p1t_1 ? ': ' : ':';
2027
- sb.w5(_Char___init__impl__6a9atx(123)).v5(nl);
2028
- appendKeyValueRaw(this, sb, indent, 'size', path.u1q_1.toString(), colon);
2029
- sb.w5(_Char___init__impl__6a9atx(44)).v5(nl);
2030
- if (options.r1t_1) {
2031
- appendMeta(this, sb, path, fields, options.q1t_1, indent, nl, colon);
2032
- sb.w5(_Char___init__impl__6a9atx(44)).v5(nl);
2260
+ var indent = options.pretty_1 ? ' ' : '';
2261
+ var nl = options.pretty_1 ? '\n' : '';
2262
+ var colon = options.pretty_1 ? ': ' : ':';
2263
+ sb.append_58al37_k$(_Char___init__impl__6a9atx(123)).append_22ad7x_k$(nl);
2264
+ appendKeyValueRaw(this, sb, indent, 'size', path.size_1.toString(), colon);
2265
+ sb.append_58al37_k$(_Char___init__impl__6a9atx(44)).append_22ad7x_k$(nl);
2266
+ if (options.includeMeta_1) {
2267
+ appendMeta(this, sb, path, fields, options.decimals_1, indent, nl, colon);
2268
+ sb.append_58al37_k$(_Char___init__impl__6a9atx(44)).append_22ad7x_k$(nl);
2033
2269
  }
2034
2270
  appendKeyRaw(this, sb, indent, 'fields', colon);
2035
2271
  appendFields(this, sb, path, fields, options, indent, nl, colon);
2036
- sb.v5(nl).w5(_Char___init__impl__6a9atx(125));
2272
+ sb.append_22ad7x_k$(nl).append_58al37_k$(_Char___init__impl__6a9atx(125));
2037
2273
  return sb.toString();
2038
2274
  };
2039
- protoOf(JsonWriter).n1t = function (value) {
2275
+ protoOf(JsonWriter).escapeJsonString_4zkd4o_k$ = function (value) {
2040
2276
  var sb = StringBuilder_init_$Create$_0(value.length);
2041
2277
  var inductionVariable = 0;
2042
2278
  var last = value.length;
@@ -2044,24 +2280,24 @@
2044
2280
  var c = charCodeAt(value, inductionVariable);
2045
2281
  inductionVariable = inductionVariable + 1 | 0;
2046
2282
  if (c === _Char___init__impl__6a9atx(34))
2047
- sb.v5('\\"');
2283
+ sb.append_22ad7x_k$('\\"');
2048
2284
  else if (c === _Char___init__impl__6a9atx(92))
2049
- sb.v5('\\\\');
2285
+ sb.append_22ad7x_k$('\\\\');
2050
2286
  else if (c === _Char___init__impl__6a9atx(10))
2051
- sb.v5('\\n');
2287
+ sb.append_22ad7x_k$('\\n');
2052
2288
  else if (c === _Char___init__impl__6a9atx(13))
2053
- sb.v5('\\r');
2289
+ sb.append_22ad7x_k$('\\r');
2054
2290
  else if (c === _Char___init__impl__6a9atx(9))
2055
- sb.v5('\\t');
2291
+ sb.append_22ad7x_k$('\\t');
2056
2292
  else {
2057
2293
  // Inline function 'kotlin.code' call
2058
2294
  if (Char__toInt_impl_vasixd(c) < 32) {
2059
- var tmp = sb.v5('\\u');
2295
+ var tmp = sb.append_22ad7x_k$('\\u');
2060
2296
  // Inline function 'kotlin.code' call
2061
2297
  var tmp$ret$1 = Char__toInt_impl_vasixd(c);
2062
- tmp.v5(padStart(toString_2(tmp$ret$1, 16), 4, _Char___init__impl__6a9atx(48)));
2298
+ tmp.append_22ad7x_k$(padStart(toString_2(tmp$ret$1, 16), 4, _Char___init__impl__6a9atx(48)));
2063
2299
  } else {
2064
- sb.w5(c);
2300
+ sb.append_58al37_k$(c);
2065
2301
  }
2066
2302
  }
2067
2303
  }
@@ -2076,19 +2312,19 @@
2076
2312
  pretty = pretty === VOID ? false : pretty;
2077
2313
  decimals = decimals === VOID ? null : decimals;
2078
2314
  includeMeta = includeMeta === VOID ? true : includeMeta;
2079
- this.o1t_1 = fields;
2080
- this.p1t_1 = pretty;
2081
- this.q1t_1 = decimals;
2082
- this.r1t_1 = includeMeta;
2315
+ this.fields_1 = fields;
2316
+ this.pretty_1 = pretty;
2317
+ this.decimals_1 = decimals;
2318
+ this.includeMeta_1 = includeMeta;
2083
2319
  }
2084
2320
  protoOf(JsonOptions).toString = function () {
2085
- return 'JsonOptions(fields=' + toString(this.o1t_1) + ', pretty=' + this.p1t_1 + ', decimals=' + this.q1t_1 + ', includeMeta=' + this.r1t_1 + ')';
2321
+ return 'JsonOptions(fields=' + toString(this.fields_1) + ', pretty=' + this.pretty_1 + ', decimals=' + this.decimals_1 + ', includeMeta=' + this.includeMeta_1 + ')';
2086
2322
  };
2087
2323
  protoOf(JsonOptions).hashCode = function () {
2088
- var result = this.o1t_1 == null ? 0 : hashCode(this.o1t_1);
2089
- result = imul(result, 31) + getBooleanHashCode(this.p1t_1) | 0;
2090
- result = imul(result, 31) + (this.q1t_1 == null ? 0 : this.q1t_1) | 0;
2091
- result = imul(result, 31) + getBooleanHashCode(this.r1t_1) | 0;
2324
+ var result = this.fields_1 == null ? 0 : hashCode(this.fields_1);
2325
+ result = imul(result, 31) + getBooleanHashCode(this.pretty_1) | 0;
2326
+ result = imul(result, 31) + (this.decimals_1 == null ? 0 : this.decimals_1) | 0;
2327
+ result = imul(result, 31) + getBooleanHashCode(this.includeMeta_1) | 0;
2092
2328
  return result;
2093
2329
  };
2094
2330
  protoOf(JsonOptions).equals = function (other) {
@@ -2096,28 +2332,28 @@
2096
2332
  return true;
2097
2333
  if (!(other instanceof JsonOptions))
2098
2334
  return false;
2099
- if (!equals(this.o1t_1, other.o1t_1))
2335
+ if (!equals(this.fields_1, other.fields_1))
2100
2336
  return false;
2101
- if (!(this.p1t_1 === other.p1t_1))
2337
+ if (!(this.pretty_1 === other.pretty_1))
2102
2338
  return false;
2103
- if (!(this.q1t_1 == other.q1t_1))
2339
+ if (!(this.decimals_1 == other.decimals_1))
2104
2340
  return false;
2105
- if (!(this.r1t_1 === other.r1t_1))
2341
+ if (!(this.includeMeta_1 === other.includeMeta_1))
2106
2342
  return false;
2107
2343
  return true;
2108
2344
  };
2109
2345
  function copyAllSlots($this, source) {
2110
- var out = new Path(source.u1q_1);
2346
+ var out = new Path(source.size_1);
2111
2347
  var inductionVariable = 0;
2112
- var last = source.u1q_1;
2348
+ var last = source.size_1;
2113
2349
  if (inductionVariable < last)
2114
2350
  do {
2115
2351
  var i = inductionVariable;
2116
2352
  inductionVariable = inductionVariable + 1 | 0;
2117
- var _iterator__ex2g4s = get_entries().i();
2118
- while (_iterator__ex2g4s.j()) {
2119
- var field = _iterator__ex2g4s.k();
2120
- out.t1t(i, field, source.m1t(i, field));
2353
+ var _iterator__ex2g4s = get_entries_0().iterator_jk1svi_k$();
2354
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
2355
+ var field = _iterator__ex2g4s.next_20eer_k$();
2356
+ out.set_b3ze83_k$(i, field, source.get_z3le6l_k$(i, field));
2121
2357
  }
2122
2358
  }
2123
2359
  while (inductionVariable < last);
@@ -2125,33 +2361,33 @@
2125
2361
  }
2126
2362
  function $fixElevationCOROUTINE$(_this__u8e3s4, source, provider, resultContinuation) {
2127
2363
  CoroutineImpl.call(this, resultContinuation);
2128
- this.c1u_1 = _this__u8e3s4;
2129
- this.d1u_1 = source;
2130
- this.e1u_1 = provider;
2364
+ this._this__u8e3s4__1 = _this__u8e3s4;
2365
+ this.source_1 = source;
2366
+ this.provider_1 = provider;
2131
2367
  }
2132
- protoOf($fixElevationCOROUTINE$).p6 = function () {
2133
- var suspendResult = this.j6_1;
2368
+ protoOf($fixElevationCOROUTINE$).doResume_5yljmg_k$ = function () {
2369
+ var suspendResult = this.result_1;
2134
2370
  $sm: do
2135
2371
  try {
2136
- var tmp = this.h6_1;
2372
+ var tmp = this.state_1;
2137
2373
  switch (tmp) {
2138
2374
  case 0:
2139
- this.i6_1 = 2;
2140
- if (this.d1u_1.u1q_1 === 0)
2375
+ this.exceptionState_1 = 2;
2376
+ if (this.source_1.size_1 === 0)
2141
2377
  return new Path(0);
2142
- var size = this.d1u_1.u1q_1;
2378
+ var size = this.source_1.size_1;
2143
2379
  var list = ArrayList_init_$Create$_0(size);
2144
2380
  var inductionVariable = 0;
2145
2381
  if (inductionVariable < size)
2146
2382
  do {
2147
2383
  var index = inductionVariable;
2148
2384
  inductionVariable = inductionVariable + 1 | 0;
2149
- list.h(new LatLon(this.d1u_1.w1q(index) * MathConstants_getInstance().uw_1, this.d1u_1.x1q(index) * MathConstants_getInstance().uw_1));
2385
+ list.add_utx5q5_k$(new LatLon(this.source_1.latitude_gb4iok_k$(index) * 57.29577951308232, this.source_1.longitude_a9xl_k$(index) * 57.29577951308232));
2150
2386
  }
2151
2387
  while (inductionVariable < size);
2152
2388
  var coords = list;
2153
- this.h6_1 = 1;
2154
- suspendResult = this.e1u_1.u10(coords, VOID, this);
2389
+ this.state_1 = 1;
2390
+ suspendResult = this.provider_1.setElevations$default_vdh3yj_k$(coords, VOID, this);
2155
2391
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2156
2392
  return suspendResult;
2157
2393
  }
@@ -2159,47 +2395,47 @@
2159
2395
  continue $sm;
2160
2396
  case 1:
2161
2397
  var corrected = suspendResult;
2162
- var out = copyAllSlots(this.c1u_1, this.d1u_1);
2398
+ var out = copyAllSlots(this._this__u8e3s4__1, this.source_1);
2163
2399
  var inductionVariable_0 = 0;
2164
- var last = out.u1q_1;
2400
+ var last = out.size_1;
2165
2401
  if (inductionVariable_0 < last)
2166
2402
  do {
2167
2403
  var i = inductionVariable_0;
2168
2404
  inductionVariable_0 = inductionVariable_0 + 1 | 0;
2169
- out.p1r(i, corrected.m(i).yw());
2405
+ out.setElevation_pv2zuv_k$(i, corrected.get_c1px32_k$(i).get_elevation_8fwyb8_k$());
2170
2406
  }
2171
2407
  while (inductionVariable_0 < last);
2172
- out.e1s();
2408
+ out.computeDerivedData_uoxpeo_k$();
2173
2409
  return out;
2174
2410
  case 2:
2175
- throw this.k6_1;
2411
+ throw this.exception_1;
2176
2412
  }
2177
2413
  } catch ($p) {
2178
2414
  var e = $p;
2179
- if (this.i6_1 === 2) {
2415
+ if (this.exceptionState_1 === 2) {
2180
2416
  throw e;
2181
2417
  } else {
2182
- this.h6_1 = this.i6_1;
2183
- this.k6_1 = e;
2418
+ this.state_1 = this.exceptionState_1;
2419
+ this.exception_1 = e;
2184
2420
  }
2185
2421
  }
2186
2422
  while (true);
2187
2423
  };
2188
2424
  function ElevationStep() {
2189
- this.f1u_1 = 150.0;
2425
+ this.DEFAULT_SMOOTH_WINDOW_M_1 = 150.0;
2190
2426
  }
2191
- protoOf(ElevationStep).g1u = function (source, provider, $completion) {
2427
+ protoOf(ElevationStep).fixElevation_nhpf8r_k$ = function (source, provider, $completion) {
2192
2428
  var tmp = new $fixElevationCOROUTINE$(this, source, provider, $completion);
2193
- tmp.j6_1 = Unit_instance;
2194
- tmp.k6_1 = null;
2195
- return tmp.p6();
2429
+ tmp.result_1 = Unit_instance;
2430
+ tmp.exception_1 = null;
2431
+ return tmp.doResume_5yljmg_k$();
2196
2432
  };
2197
- protoOf(ElevationStep).h1u = function (source, windowM) {
2198
- if (source.u1q_1 === 0)
2433
+ protoOf(ElevationStep).smoothElevation_ahln31_k$ = function (source, windowM) {
2434
+ if (source.size_1 === 0)
2199
2435
  return new Path(0);
2200
2436
  // Inline function 'kotlin.collections.List' call
2201
2437
  // Inline function 'kotlin.collections.MutableList' call
2202
- var size = source.u1q_1;
2438
+ var size = source.size_1;
2203
2439
  var list = ArrayList_init_$Create$_0(size);
2204
2440
  // Inline function 'kotlin.repeat' call
2205
2441
  var inductionVariable = 0;
@@ -2207,229 +2443,229 @@
2207
2443
  do {
2208
2444
  var index = inductionVariable;
2209
2445
  inductionVariable = inductionVariable + 1 | 0;
2210
- var tmp$ret$4 = source.i1u(index);
2211
- list.h(tmp$ret$4);
2446
+ var tmp$ret$4 = source.coordinatesElevationAt_ru19z1_k$(index);
2447
+ list.add_utx5q5_k$(tmp$ret$4);
2212
2448
  }
2213
2449
  while (inductionVariable < size);
2214
2450
  var coords = list;
2215
- var smoothed = ElevationSmoother_instance.nw(coords, windowM);
2451
+ var smoothed = ElevationSmoother_instance.smooth_j2mgq7_k$(coords, windowM);
2216
2452
  var out = copyAllSlots(this, source);
2217
2453
  var inductionVariable_0 = 0;
2218
- var last = out.u1q_1;
2454
+ var last = out.size_1;
2219
2455
  if (inductionVariable_0 < last)
2220
2456
  do {
2221
2457
  var i = inductionVariable_0;
2222
2458
  inductionVariable_0 = inductionVariable_0 + 1 | 0;
2223
- out.p1r(i, smoothed.m(i).yw());
2459
+ out.setElevation_pv2zuv_k$(i, smoothed.get_c1px32_k$(i).get_elevation_8fwyb8_k$());
2224
2460
  }
2225
2461
  while (inductionVariable_0 < last);
2226
- out.e1s();
2462
+ out.computeDerivedData_uoxpeo_k$();
2227
2463
  return out;
2228
2464
  };
2229
- protoOf(ElevationStep).j1u = function (source, windowM, $super) {
2465
+ protoOf(ElevationStep).smoothElevation$default_3c035p_k$ = function (source, windowM, $super) {
2230
2466
  windowM = windowM === VOID ? 150.0 : windowM;
2231
- return $super === VOID ? this.h1u(source, windowM) : $super.h1u.call(this, source, windowM);
2467
+ return $super === VOID ? this.smoothElevation_ahln31_k$(source, windowM) : $super.smoothElevation_ahln31_k$.call(this, source, windowM);
2232
2468
  };
2233
2469
  var ElevationStep_instance;
2234
2470
  function ElevationStep_getInstance() {
2235
2471
  return ElevationStep_instance;
2236
2472
  }
2237
2473
  function GeneratedPath(size) {
2238
- this.u1q_1 = size;
2474
+ this.size_1 = size;
2239
2475
  // Inline function 'kotlin.require' call
2240
- if (!(this.u1q_1 >= 0)) {
2241
- var message = 'Negative size: ' + this.u1q_1;
2476
+ if (!(this.size_1 >= 0)) {
2477
+ var message = 'Negative size: ' + this.size_1;
2242
2478
  throw IllegalArgumentException_init_$Create$_0(toString_0(message));
2243
2479
  }
2244
- this.v1q_1 = new Float64Array(imul(this.u1q_1, 36));
2480
+ this.data_1 = new Float64Array(imul(this.size_1, 36));
2245
2481
  }
2246
- protoOf(GeneratedPath).m1t = function (i, field) {
2247
- return this.v1q_1[imul(i, 36) + field.o1_1 | 0];
2482
+ protoOf(GeneratedPath).get_z3le6l_k$ = function (i, field) {
2483
+ return this.data_1[imul(i, 36) + field.ordinal_1 | 0];
2248
2484
  };
2249
- protoOf(GeneratedPath).t1t = function (i, field, v) {
2250
- this.v1q_1[imul(i, 36) + field.o1_1 | 0] = v;
2485
+ protoOf(GeneratedPath).set_b3ze83_k$ = function (i, field, v) {
2486
+ this.data_1[imul(i, 36) + field.ordinal_1 | 0] = v;
2251
2487
  };
2252
- protoOf(GeneratedPath).w1q = function (i) {
2253
- return this.v1q_1[imul(i, 36) + 0 | 0];
2488
+ protoOf(GeneratedPath).latitude_gb4iok_k$ = function (i) {
2489
+ return this.data_1[imul(i, 36) + 0 | 0];
2254
2490
  };
2255
- protoOf(GeneratedPath).n1r = function (i, v) {
2256
- this.v1q_1[imul(i, 36) + 0 | 0] = v;
2491
+ protoOf(GeneratedPath).setLatitude_skkzf0_k$ = function (i, v) {
2492
+ this.data_1[imul(i, 36) + 0 | 0] = v;
2257
2493
  };
2258
- protoOf(GeneratedPath).x1q = function (i) {
2259
- return this.v1q_1[imul(i, 36) + 1 | 0];
2494
+ protoOf(GeneratedPath).longitude_a9xl_k$ = function (i) {
2495
+ return this.data_1[imul(i, 36) + 1 | 0];
2260
2496
  };
2261
- protoOf(GeneratedPath).o1r = function (i, v) {
2262
- this.v1q_1[imul(i, 36) + 1 | 0] = v;
2497
+ protoOf(GeneratedPath).setLongitude_k0bc8l_k$ = function (i, v) {
2498
+ this.data_1[imul(i, 36) + 1 | 0] = v;
2263
2499
  };
2264
- protoOf(GeneratedPath).k1u = function (i) {
2265
- return this.v1q_1[imul(i, 36) + 2 | 0];
2500
+ protoOf(GeneratedPath).distance_5s4s77_k$ = function (i) {
2501
+ return this.data_1[imul(i, 36) + 2 | 0];
2266
2502
  };
2267
- protoOf(GeneratedPath).l1u = function (i, v) {
2268
- this.v1q_1[imul(i, 36) + 2 | 0] = v;
2503
+ protoOf(GeneratedPath).setDistance_d14hwr_k$ = function (i, v) {
2504
+ this.data_1[imul(i, 36) + 2 | 0] = v;
2269
2505
  };
2270
- protoOf(GeneratedPath).m1u = function (i, v) {
2271
- this.v1q_1[imul(i, 36) + 3 | 0] = v;
2506
+ protoOf(GeneratedPath).setDx_uk0ky4_k$ = function (i, v) {
2507
+ this.data_1[imul(i, 36) + 3 | 0] = v;
2272
2508
  };
2273
- protoOf(GeneratedPath).z1q = function (i) {
2274
- return this.v1q_1[imul(i, 36) + 4 | 0];
2509
+ protoOf(GeneratedPath).time_ryc845_k$ = function (i) {
2510
+ return this.data_1[imul(i, 36) + 4 | 0];
2275
2511
  };
2276
- protoOf(GeneratedPath).q1r = function (i, v) {
2277
- this.v1q_1[imul(i, 36) + 4 | 0] = v;
2512
+ protoOf(GeneratedPath).setTime_rfmvcd_k$ = function (i, v) {
2513
+ this.data_1[imul(i, 36) + 4 | 0] = v;
2278
2514
  };
2279
- protoOf(GeneratedPath).n1u = function (i) {
2280
- return this.v1q_1[imul(i, 36) + 5 | 0];
2515
+ protoOf(GeneratedPath).elapsed_7307rw_k$ = function (i) {
2516
+ return this.data_1[imul(i, 36) + 5 | 0];
2281
2517
  };
2282
- protoOf(GeneratedPath).o1u = function (i, v) {
2283
- this.v1q_1[imul(i, 36) + 5 | 0] = v;
2518
+ protoOf(GeneratedPath).setElapsed_916ug_k$ = function (i, v) {
2519
+ this.data_1[imul(i, 36) + 5 | 0] = v;
2284
2520
  };
2285
- protoOf(GeneratedPath).p1u = function (i) {
2286
- return this.v1q_1[imul(i, 36) + 6 | 0];
2521
+ protoOf(GeneratedPath).dt_17uzp4_k$ = function (i) {
2522
+ return this.data_1[imul(i, 36) + 6 | 0];
2287
2523
  };
2288
- protoOf(GeneratedPath).q1u = function (i, v) {
2289
- this.v1q_1[imul(i, 36) + 6 | 0] = v;
2524
+ protoOf(GeneratedPath).setDt_sgarxs_k$ = function (i, v) {
2525
+ this.data_1[imul(i, 36) + 6 | 0] = v;
2290
2526
  };
2291
- protoOf(GeneratedPath).r1u = function (i) {
2292
- return this.v1q_1[imul(i, 36) + 7 | 0];
2527
+ protoOf(GeneratedPath).bearing_fz5vxm_k$ = function (i) {
2528
+ return this.data_1[imul(i, 36) + 7 | 0];
2293
2529
  };
2294
- protoOf(GeneratedPath).s1u = function (i, v) {
2295
- this.v1q_1[imul(i, 36) + 7 | 0] = v;
2530
+ protoOf(GeneratedPath).setBearing_in05l6_k$ = function (i, v) {
2531
+ this.data_1[imul(i, 36) + 7 | 0] = v;
2296
2532
  };
2297
- protoOf(GeneratedPath).y1q = function (i) {
2298
- return this.v1q_1[imul(i, 36) + 8 | 0];
2533
+ protoOf(GeneratedPath).elevation_iziwkb_k$ = function (i) {
2534
+ return this.data_1[imul(i, 36) + 8 | 0];
2299
2535
  };
2300
- protoOf(GeneratedPath).p1r = function (i, v) {
2301
- this.v1q_1[imul(i, 36) + 8 | 0] = v;
2536
+ protoOf(GeneratedPath).setElevation_pv2zuv_k$ = function (i, v) {
2537
+ this.data_1[imul(i, 36) + 8 | 0] = v;
2302
2538
  };
2303
- protoOf(GeneratedPath).t1u = function (i) {
2304
- return this.v1q_1[imul(i, 36) + 9 | 0];
2539
+ protoOf(GeneratedPath).grade_c4yjz5_k$ = function (i) {
2540
+ return this.data_1[imul(i, 36) + 9 | 0];
2305
2541
  };
2306
- protoOf(GeneratedPath).u1u = function (i, v) {
2307
- this.v1q_1[imul(i, 36) + 9 | 0] = v;
2542
+ protoOf(GeneratedPath).setGrade_3tur8z_k$ = function (i, v) {
2543
+ this.data_1[imul(i, 36) + 9 | 0] = v;
2308
2544
  };
2309
- protoOf(GeneratedPath).v1u = function (i, v) {
2310
- this.v1q_1[imul(i, 36) + 10 | 0] = v;
2545
+ protoOf(GeneratedPath).setRadius_p1cueq_k$ = function (i, v) {
2546
+ this.data_1[imul(i, 36) + 10 | 0] = v;
2311
2547
  };
2312
- protoOf(GeneratedPath).w1u = function (i, v) {
2313
- this.v1q_1[imul(i, 36) + 11 | 0] = v;
2548
+ protoOf(GeneratedPath).setAeroCoef_tmjifm_k$ = function (i, v) {
2549
+ this.data_1[imul(i, 36) + 11 | 0] = v;
2314
2550
  };
2315
- protoOf(GeneratedPath).x1u = function (i, v) {
2316
- this.v1q_1[imul(i, 36) + 12 | 0] = v;
2551
+ protoOf(GeneratedPath).setWindBearing_44dbry_k$ = function (i, v) {
2552
+ this.data_1[imul(i, 36) + 12 | 0] = v;
2317
2553
  };
2318
- protoOf(GeneratedPath).y1u = function (i, v) {
2319
- this.v1q_1[imul(i, 36) + 13 | 0] = v;
2554
+ protoOf(GeneratedPath).setWindAlpha_xkbtf2_k$ = function (i, v) {
2555
+ this.data_1[imul(i, 36) + 13 | 0] = v;
2320
2556
  };
2321
- protoOf(GeneratedPath).z1u = function (i, v) {
2322
- this.v1q_1[imul(i, 36) + 14 | 0] = v;
2557
+ protoOf(GeneratedPath).setPAero_mmc4mr_k$ = function (i, v) {
2558
+ this.data_1[imul(i, 36) + 14 | 0] = v;
2323
2559
  };
2324
- protoOf(GeneratedPath).a1v = function (i, v) {
2325
- this.v1q_1[imul(i, 36) + 15 | 0] = v;
2560
+ protoOf(GeneratedPath).setPGravity_tegtcu_k$ = function (i, v) {
2561
+ this.data_1[imul(i, 36) + 15 | 0] = v;
2326
2562
  };
2327
- protoOf(GeneratedPath).b1v = function (i, v) {
2328
- this.v1q_1[imul(i, 36) + 16 | 0] = v;
2563
+ protoOf(GeneratedPath).setPRollingResistance_h04uz6_k$ = function (i, v) {
2564
+ this.data_1[imul(i, 36) + 16 | 0] = v;
2329
2565
  };
2330
- protoOf(GeneratedPath).c1v = function (i, v) {
2331
- this.v1q_1[imul(i, 36) + 17 | 0] = v;
2566
+ protoOf(GeneratedPath).setPWheelBearings_djmhww_k$ = function (i, v) {
2567
+ this.data_1[imul(i, 36) + 17 | 0] = v;
2332
2568
  };
2333
- protoOf(GeneratedPath).d1r = function (i) {
2334
- return this.v1q_1[imul(i, 36) + 18 | 0];
2569
+ protoOf(GeneratedPath).pInputPower_ybhudp_k$ = function (i) {
2570
+ return this.data_1[imul(i, 36) + 18 | 0];
2335
2571
  };
2336
- protoOf(GeneratedPath).r1r = function (i, v) {
2337
- this.v1q_1[imul(i, 36) + 18 | 0] = v;
2572
+ protoOf(GeneratedPath).setPInputPower_i1beh_k$ = function (i, v) {
2573
+ this.data_1[imul(i, 36) + 18 | 0] = v;
2338
2574
  };
2339
- protoOf(GeneratedPath).d1v = function (i, v) {
2340
- this.v1q_1[imul(i, 36) + 19 | 0] = v;
2575
+ protoOf(GeneratedPath).setPCyclistProvidedOptimalPower_gha9up_k$ = function (i, v) {
2576
+ this.data_1[imul(i, 36) + 19 | 0] = v;
2341
2577
  };
2342
- protoOf(GeneratedPath).e1v = function (i, v) {
2343
- this.v1q_1[imul(i, 36) + 20 | 0] = v;
2578
+ protoOf(GeneratedPath).setPCyclistProvidedOptimalPowerWithHarmonics_tg3fol_k$ = function (i, v) {
2579
+ this.data_1[imul(i, 36) + 20 | 0] = v;
2344
2580
  };
2345
- protoOf(GeneratedPath).f1v = function (i, v) {
2346
- this.v1q_1[imul(i, 36) + 21 | 0] = v;
2581
+ protoOf(GeneratedPath).setPCyclistPowerNeeded_54po1x_k$ = function (i, v) {
2582
+ this.data_1[imul(i, 36) + 21 | 0] = v;
2347
2583
  };
2348
- protoOf(GeneratedPath).g1v = function (i, v) {
2349
- this.v1q_1[imul(i, 36) + 22 | 0] = v;
2584
+ protoOf(GeneratedPath).setPCyclistProvidedMuscular_aori9q_k$ = function (i, v) {
2585
+ this.data_1[imul(i, 36) + 22 | 0] = v;
2350
2586
  };
2351
- protoOf(GeneratedPath).h1v = function (i, v) {
2352
- this.v1q_1[imul(i, 36) + 23 | 0] = v;
2587
+ protoOf(GeneratedPath).setPCyclistProvidedWheel_ofsihz_k$ = function (i, v) {
2588
+ this.data_1[imul(i, 36) + 23 | 0] = v;
2353
2589
  };
2354
- protoOf(GeneratedPath).i1v = function (i, v) {
2355
- this.v1q_1[imul(i, 36) + 24 | 0] = v;
2590
+ protoOf(GeneratedPath).setPComputedTotalPower_wm6di_k$ = function (i, v) {
2591
+ this.data_1[imul(i, 36) + 24 | 0] = v;
2356
2592
  };
2357
- protoOf(GeneratedPath).j1v = function (i, v) {
2358
- this.v1q_1[imul(i, 36) + 25 | 0] = v;
2593
+ protoOf(GeneratedPath).setPComputedWheelPower_qplog3_k$ = function (i, v) {
2594
+ this.data_1[imul(i, 36) + 25 | 0] = v;
2359
2595
  };
2360
- protoOf(GeneratedPath).k1v = function (i) {
2361
- return this.v1q_1[imul(i, 36) + 26 | 0];
2596
+ protoOf(GeneratedPath).pComputedPower_g6dnn4_k$ = function (i) {
2597
+ return this.data_1[imul(i, 36) + 26 | 0];
2362
2598
  };
2363
- protoOf(GeneratedPath).l1v = function (i, v) {
2364
- this.v1q_1[imul(i, 36) + 26 | 0] = v;
2599
+ protoOf(GeneratedPath).setPComputedPower_c3m6yw_k$ = function (i, v) {
2600
+ this.data_1[imul(i, 36) + 26 | 0] = v;
2365
2601
  };
2366
- protoOf(GeneratedPath).m1v = function (i) {
2367
- return this.v1q_1[imul(i, 36) + 27 | 0];
2602
+ protoOf(GeneratedPath).speed_npav2n_k$ = function (i) {
2603
+ return this.data_1[imul(i, 36) + 27 | 0];
2368
2604
  };
2369
- protoOf(GeneratedPath).n1v = function (i, v) {
2370
- this.v1q_1[imul(i, 36) + 27 | 0] = v;
2605
+ protoOf(GeneratedPath).setSpeed_1slan1_k$ = function (i, v) {
2606
+ this.data_1[imul(i, 36) + 27 | 0] = v;
2371
2607
  };
2372
- protoOf(GeneratedPath).o1v = function (i) {
2373
- return this.v1q_1[imul(i, 36) + 28 | 0];
2608
+ protoOf(GeneratedPath).speedMax_mjo2cl_k$ = function (i) {
2609
+ return this.data_1[imul(i, 36) + 28 | 0];
2374
2610
  };
2375
- protoOf(GeneratedPath).p1v = function (i, v) {
2376
- this.v1q_1[imul(i, 36) + 28 | 0] = v;
2611
+ protoOf(GeneratedPath).setSpeedMax_7xvqir_k$ = function (i, v) {
2612
+ this.data_1[imul(i, 36) + 28 | 0] = v;
2377
2613
  };
2378
- protoOf(GeneratedPath).q1v = function (i, v) {
2379
- this.v1q_1[imul(i, 36) + 29 | 0] = v;
2614
+ protoOf(GeneratedPath).setSpeedMaxIncline_8l69w1_k$ = function (i, v) {
2615
+ this.data_1[imul(i, 36) + 29 | 0] = v;
2380
2616
  };
2381
- protoOf(GeneratedPath).r1v = function (i, v) {
2382
- this.v1q_1[imul(i, 36) + 30 | 0] = v;
2617
+ protoOf(GeneratedPath).setVirtSpeedCurrent_kvg8yv_k$ = function (i, v) {
2618
+ this.data_1[imul(i, 36) + 30 | 0] = v;
2383
2619
  };
2384
- protoOf(GeneratedPath).c1r = function (i) {
2385
- return this.v1q_1[imul(i, 36) + 31 | 0];
2620
+ protoOf(GeneratedPath).temperature_6yw0ik_k$ = function (i) {
2621
+ return this.data_1[imul(i, 36) + 31 | 0];
2386
2622
  };
2387
- protoOf(GeneratedPath).u1r = function (i, v) {
2388
- this.v1q_1[imul(i, 36) + 31 | 0] = v;
2623
+ protoOf(GeneratedPath).setTemperature_nno5xs_k$ = function (i, v) {
2624
+ this.data_1[imul(i, 36) + 31 | 0] = v;
2389
2625
  };
2390
- protoOf(GeneratedPath).s1v = function (i, v) {
2391
- this.v1q_1[imul(i, 36) + 32 | 0] = v;
2626
+ protoOf(GeneratedPath).setWindSpeed_ggaslh_k$ = function (i, v) {
2627
+ this.data_1[imul(i, 36) + 32 | 0] = v;
2392
2628
  };
2393
- protoOf(GeneratedPath).t1v = function (i, v) {
2394
- this.v1q_1[imul(i, 36) + 33 | 0] = v;
2629
+ protoOf(GeneratedPath).setWindDirection_86vnxv_k$ = function (i, v) {
2630
+ this.data_1[imul(i, 36) + 33 | 0] = v;
2395
2631
  };
2396
- protoOf(GeneratedPath).a1r = function (i) {
2397
- return this.v1q_1[imul(i, 36) + 34 | 0];
2632
+ protoOf(GeneratedPath).heartRate_qiaqfm_k$ = function (i) {
2633
+ return this.data_1[imul(i, 36) + 34 | 0];
2398
2634
  };
2399
- protoOf(GeneratedPath).s1r = function (i, v) {
2400
- this.v1q_1[imul(i, 36) + 34 | 0] = v;
2635
+ protoOf(GeneratedPath).setHeartRate_3mzzq6_k$ = function (i, v) {
2636
+ this.data_1[imul(i, 36) + 34 | 0] = v;
2401
2637
  };
2402
- protoOf(GeneratedPath).b1r = function (i) {
2403
- return this.v1q_1[imul(i, 36) + 35 | 0];
2638
+ protoOf(GeneratedPath).cadence_h3r7af_k$ = function (i) {
2639
+ return this.data_1[imul(i, 36) + 35 | 0];
2404
2640
  };
2405
- protoOf(GeneratedPath).t1r = function (i, v) {
2406
- this.v1q_1[imul(i, 36) + 35 | 0] = v;
2641
+ protoOf(GeneratedPath).setCadence_ick7df_k$ = function (i, v) {
2642
+ this.data_1[imul(i, 36) + 35 | 0] = v;
2407
2643
  };
2408
2644
  function Companion_0() {
2409
- Companion_instance_0 = this;
2410
- this.u1v_1 = new BoundsRad(0.0, 0.0, 0.0, 0.0);
2645
+ Companion_instance_1 = this;
2646
+ this.EMPTY_1 = new BoundsRad(0.0, 0.0, 0.0, 0.0);
2411
2647
  }
2412
- var Companion_instance_0;
2648
+ var Companion_instance_1;
2413
2649
  function Companion_getInstance_1() {
2414
- if (Companion_instance_0 == null)
2650
+ if (Companion_instance_1 == null)
2415
2651
  new Companion_0();
2416
- return Companion_instance_0;
2652
+ return Companion_instance_1;
2417
2653
  }
2418
2654
  function BoundsRad(minLat, maxLat, minLon, maxLon) {
2419
2655
  Companion_getInstance_1();
2420
- this.v1v_1 = minLat;
2421
- this.w1v_1 = maxLat;
2422
- this.x1v_1 = minLon;
2423
- this.y1v_1 = maxLon;
2656
+ this.minLat_1 = minLat;
2657
+ this.maxLat_1 = maxLat;
2658
+ this.minLon_1 = minLon;
2659
+ this.maxLon_1 = maxLon;
2424
2660
  }
2425
2661
  protoOf(BoundsRad).toString = function () {
2426
- return 'BoundsRad(minLat=' + this.v1v_1 + ', maxLat=' + this.w1v_1 + ', minLon=' + this.x1v_1 + ', maxLon=' + this.y1v_1 + ')';
2662
+ return 'BoundsRad(minLat=' + this.minLat_1 + ', maxLat=' + this.maxLat_1 + ', minLon=' + this.minLon_1 + ', maxLon=' + this.maxLon_1 + ')';
2427
2663
  };
2428
2664
  protoOf(BoundsRad).hashCode = function () {
2429
- var result = getNumberHashCode(this.v1v_1);
2430
- result = imul(result, 31) + getNumberHashCode(this.w1v_1) | 0;
2431
- result = imul(result, 31) + getNumberHashCode(this.x1v_1) | 0;
2432
- result = imul(result, 31) + getNumberHashCode(this.y1v_1) | 0;
2665
+ var result = getNumberHashCode(this.minLat_1);
2666
+ result = imul(result, 31) + getNumberHashCode(this.maxLat_1) | 0;
2667
+ result = imul(result, 31) + getNumberHashCode(this.minLon_1) | 0;
2668
+ result = imul(result, 31) + getNumberHashCode(this.maxLon_1) | 0;
2433
2669
  return result;
2434
2670
  };
2435
2671
  protoOf(BoundsRad).equals = function (other) {
@@ -2437,39 +2673,39 @@
2437
2673
  return true;
2438
2674
  if (!(other instanceof BoundsRad))
2439
2675
  return false;
2440
- if (!equals(this.v1v_1, other.v1v_1))
2676
+ if (!equals(this.minLat_1, other.minLat_1))
2441
2677
  return false;
2442
- if (!equals(this.w1v_1, other.w1v_1))
2678
+ if (!equals(this.maxLat_1, other.maxLat_1))
2443
2679
  return false;
2444
- if (!equals(this.x1v_1, other.x1v_1))
2680
+ if (!equals(this.minLon_1, other.minLon_1))
2445
2681
  return false;
2446
- if (!equals(this.y1v_1, other.y1v_1))
2682
+ if (!equals(this.maxLon_1, other.maxLon_1))
2447
2683
  return false;
2448
2684
  return true;
2449
2685
  };
2450
2686
  function copyStatsFrom($this, other) {
2451
- $this.x1r_1 = other.x1r_1;
2452
- $this.y1r_1 = other.y1r_1;
2453
- $this.z1r_1 = other.z1r_1;
2454
- $this.a1s_1 = other.a1s_1;
2455
- $this.b1s_1 = other.b1s_1;
2456
- $this.c1s_1 = other.c1s_1;
2457
- $this.d1s_1 = other.d1s_1;
2687
+ $this.totalDistance_1 = other.totalDistance_1;
2688
+ $this.minElevation_1 = other.minElevation_1;
2689
+ $this.maxElevation_1 = other.maxElevation_1;
2690
+ $this.elevationGain_1 = other.elevationGain_1;
2691
+ $this.elevationLoss_1 = other.elevationLoss_1;
2692
+ $this.durationMs_1 = other.durationMs_1;
2693
+ $this.boundsRad_1 = other.boundsRad_1;
2458
2694
  }
2459
2695
  function resetStats($this) {
2460
- $this.x1r_1 = 0.0;
2461
- $this.y1r_1 = 0.0;
2462
- $this.z1r_1 = 0.0;
2463
- $this.a1s_1 = 0.0;
2464
- $this.b1s_1 = 0.0;
2465
- $this.c1s_1 = 0.0;
2466
- $this.d1s_1 = Companion_getInstance_1().u1v_1;
2696
+ $this.totalDistance_1 = 0.0;
2697
+ $this.minElevation_1 = 0.0;
2698
+ $this.maxElevation_1 = 0.0;
2699
+ $this.elevationGain_1 = 0.0;
2700
+ $this.elevationLoss_1 = 0.0;
2701
+ $this.durationMs_1 = 0.0;
2702
+ $this.boundsRad_1 = Companion_getInstance_1().EMPTY_1;
2467
2703
  }
2468
2704
  function computeBearing($this, from, to) {
2469
- var lat1 = $this.w1q(from);
2470
- var lon1 = $this.x1q(from);
2471
- var lat2 = $this.w1q(to);
2472
- var lon2 = $this.x1q(to);
2705
+ var lat1 = $this.latitude_gb4iok_k$(from);
2706
+ var lon1 = $this.longitude_a9xl_k$(from);
2707
+ var lat2 = $this.latitude_gb4iok_k$(to);
2708
+ var lon2 = $this.longitude_a9xl_k$(to);
2473
2709
  // Inline function 'kotlin.math.cos' call
2474
2710
  var x1 = lon1 * Math.cos(lat1);
2475
2711
  var y1 = lat1;
@@ -2484,38 +2720,38 @@
2484
2720
  }
2485
2721
  function Companion_1() {
2486
2722
  }
2487
- var Companion_instance_1;
2723
+ var Companion_instance_2;
2488
2724
  function Companion_getInstance_2() {
2489
- return Companion_instance_1;
2725
+ return Companion_instance_2;
2490
2726
  }
2491
2727
  function Path(size) {
2492
2728
  GeneratedPath.call(this, size);
2493
- this.x1r_1 = 0.0;
2494
- this.y1r_1 = 0.0;
2495
- this.z1r_1 = 0.0;
2496
- this.a1s_1 = 0.0;
2497
- this.b1s_1 = 0.0;
2498
- this.c1s_1 = 0.0;
2499
- this.d1s_1 = Companion_getInstance_1().u1v_1;
2500
- }
2501
- protoOf(Path).z1v = function () {
2502
- return until(0, this.u1q_1);
2503
- };
2504
- protoOf(Path).a1w = function (i) {
2505
- return this.w1q(i) * MathConstants_getInstance().uw_1;
2506
- };
2507
- protoOf(Path).b1w = function (i) {
2508
- return this.x1q(i) * MathConstants_getInstance().uw_1;
2509
- };
2510
- protoOf(Path).i1u = function (i) {
2511
- return new LatLonElevation(this.a1w(i), this.b1w(i), this.y1q(i));
2512
- };
2513
- protoOf(Path).c1w = function () {
2514
- var out = new Path(this.u1q_1);
2515
- var tmp0 = this.v1q_1;
2516
- var tmp2 = out.v1q_1;
2729
+ this.totalDistance_1 = 0.0;
2730
+ this.minElevation_1 = 0.0;
2731
+ this.maxElevation_1 = 0.0;
2732
+ this.elevationGain_1 = 0.0;
2733
+ this.elevationLoss_1 = 0.0;
2734
+ this.durationMs_1 = 0.0;
2735
+ this.boundsRad_1 = Companion_getInstance_1().EMPTY_1;
2736
+ }
2737
+ protoOf(Path).get_indices_xelk8u_k$ = function () {
2738
+ return until(0, this.size_1);
2739
+ };
2740
+ protoOf(Path).latitudeDeg_i25sm6_k$ = function (i) {
2741
+ return this.latitude_gb4iok_k$(i) * 57.29577951308232;
2742
+ };
2743
+ protoOf(Path).longitudeDeg_ikk1un_k$ = function (i) {
2744
+ return this.longitude_a9xl_k$(i) * 57.29577951308232;
2745
+ };
2746
+ protoOf(Path).coordinatesElevationAt_ru19z1_k$ = function (i) {
2747
+ return new LatLonElevation(this.latitudeDeg_i25sm6_k$(i), this.longitudeDeg_ikk1un_k$(i), this.elevation_iziwkb_k$(i));
2748
+ };
2749
+ protoOf(Path).copy_1tks5_k$ = function () {
2750
+ var out = new Path(this.size_1);
2751
+ var tmp0 = this.data_1;
2752
+ var tmp2 = out.data_1;
2517
2753
  // Inline function 'kotlin.collections.copyInto' call
2518
- var endIndex = this.v1q_1.length;
2754
+ var endIndex = this.data_1.length;
2519
2755
  // Inline function 'kotlin.js.unsafeCast' call
2520
2756
  // Inline function 'kotlin.js.asDynamic' call
2521
2757
  var tmp = tmp0;
@@ -2525,11 +2761,11 @@
2525
2761
  copyStatsFrom(out, this);
2526
2762
  return out;
2527
2763
  };
2528
- protoOf(Path).e1s = function () {
2764
+ protoOf(Path).computeDerivedData_uoxpeo_k$ = function () {
2529
2765
  resetStats(this);
2530
- if (this.u1q_1 === 0)
2766
+ if (this.size_1 === 0)
2531
2767
  return Unit_instance;
2532
- var timeStart = this.z1q(0);
2768
+ var timeStart = this.time_ryc845_k$(0);
2533
2769
  var cumDist = 0.0;
2534
2770
  var minLat = Infinity;
2535
2771
  var maxLat = -Infinity;
@@ -2540,14 +2776,14 @@
2540
2776
  var gain = 0.0;
2541
2777
  var loss = 0.0;
2542
2778
  var inductionVariable = 0;
2543
- var last = this.u1q_1;
2779
+ var last = this.size_1;
2544
2780
  if (inductionVariable < last)
2545
2781
  do {
2546
2782
  var i = inductionVariable;
2547
2783
  inductionVariable = inductionVariable + 1 | 0;
2548
- var lat = this.w1q(i);
2549
- var lon = this.x1q(i);
2550
- var ele = this.y1q(i);
2784
+ var lat = this.latitude_gb4iok_k$(i);
2785
+ var lon = this.longitude_a9xl_k$(i);
2786
+ var ele = this.elevation_iziwkb_k$(i);
2551
2787
  // Inline function 'kotlin.math.min' call
2552
2788
  var a = minLat;
2553
2789
  minLat = Math.min(a, lat);
@@ -2567,109 +2803,155 @@
2567
2803
  var a_4 = maxEle;
2568
2804
  maxEle = Math.max(a_4, ele);
2569
2805
  if (i > 0) {
2570
- var prevCoord = new LatLon(this.a1w(i - 1 | 0), this.b1w(i - 1 | 0));
2571
- var curCoord = new LatLon(this.a1w(i), this.b1w(i));
2572
- cumDist = cumDist + Distance_instance.rw(prevCoord, curCoord);
2573
- var dEle = ele - this.y1q(i - 1 | 0);
2806
+ var prevCoord = new LatLon(this.latitudeDeg_i25sm6_k$(i - 1 | 0), this.longitudeDeg_ikk1un_k$(i - 1 | 0));
2807
+ var curCoord = new LatLon(this.latitudeDeg_i25sm6_k$(i), this.longitudeDeg_ikk1un_k$(i));
2808
+ cumDist = cumDist + Distance_instance.haversine_mrx4ab_k$(prevCoord, curCoord);
2809
+ var dEle = ele - this.elevation_iziwkb_k$(i - 1 | 0);
2574
2810
  if (dEle > 0)
2575
2811
  gain = gain + dEle;
2576
2812
  else
2577
2813
  loss = loss + dEle;
2578
2814
  }
2579
- this.l1u(i, cumDist);
2815
+ this.setDistance_d14hwr_k$(i, cumDist);
2580
2816
  }
2581
2817
  while (inductionVariable < last);
2582
- this.x1r_1 = cumDist;
2583
- this.y1r_1 = minEle === Infinity ? 0.0 : minEle;
2584
- this.z1r_1 = maxEle === -Infinity ? 0.0 : maxEle;
2585
- this.a1s_1 = gain;
2586
- this.b1s_1 = loss;
2587
- this.d1s_1 = new BoundsRad(minLat, maxLat, minLon, maxLon);
2588
- this.c1s_1 = this.u1q_1 >= 2 ? this.z1q(this.u1q_1 - 1 | 0) - timeStart : 0.0;
2818
+ this.totalDistance_1 = cumDist;
2819
+ this.minElevation_1 = minEle === Infinity ? 0.0 : minEle;
2820
+ this.maxElevation_1 = maxEle === -Infinity ? 0.0 : maxEle;
2821
+ this.elevationGain_1 = gain;
2822
+ this.elevationLoss_1 = loss;
2823
+ this.boundsRad_1 = new BoundsRad(minLat, maxLat, minLon, maxLon);
2824
+ this.durationMs_1 = this.size_1 >= 2 ? this.time_ryc845_k$(this.size_1 - 1 | 0) - timeStart : 0.0;
2589
2825
  var inductionVariable_0 = 0;
2590
- var last_0 = this.u1q_1;
2826
+ var last_0 = this.size_1;
2591
2827
  if (inductionVariable_0 < last_0)
2592
2828
  $l$loop: do {
2593
2829
  var i_0 = inductionVariable_0;
2594
2830
  inductionVariable_0 = inductionVariable_0 + 1 | 0;
2595
- this.o1u(i_0, (this.z1q(i_0) - timeStart) / 1000.0);
2596
- if (this.u1q_1 <= 1)
2831
+ this.setElapsed_916ug_k$(i_0, (this.time_ryc845_k$(i_0) - timeStart) / 1000.0);
2832
+ if (this.size_1 <= 1)
2597
2833
  continue $l$loop;
2598
2834
  // Inline function 'kotlin.math.max' call
2599
2835
  var b = i_0 - 1 | 0;
2600
2836
  var im1 = Math.max(0, b);
2601
- var tmp0 = this.u1q_1 - 1 | 0;
2837
+ var tmp0 = this.size_1 - 1 | 0;
2602
2838
  // Inline function 'kotlin.math.min' call
2603
2839
  var b_0 = i_0 + 1 | 0;
2604
2840
  var ip1 = Math.min(tmp0, b_0);
2605
- this.s1u(i_0, computeBearing(this, im1, ip1));
2606
- var dDist = (this.k1u(ip1) - this.k1u(im1)) / 2.0;
2607
- var dEle_0 = (this.y1q(ip1) - this.y1q(im1)) / 2.0;
2841
+ this.setBearing_in05l6_k$(i_0, computeBearing(this, im1, ip1));
2842
+ var dDist = (this.distance_5s4s77_k$(ip1) - this.distance_5s4s77_k$(im1)) / 2.0;
2843
+ var dEle_0 = (this.elevation_iziwkb_k$(ip1) - this.elevation_iziwkb_k$(im1)) / 2.0;
2608
2844
  var grade = dDist === 0.0 ? 0.0 : dEle_0 / dDist;
2609
- this.u1u(i_0, grade);
2610
- var dTime = (this.z1q(ip1) - this.z1q(im1)) / 2000.0;
2611
- this.m1u(i_0, dDist);
2612
- this.q1u(i_0, dTime);
2613
- this.n1v(i_0, dTime === 0.0 ? 0.0 : dDist / dTime);
2845
+ this.setGrade_3tur8z_k$(i_0, grade);
2846
+ var dTime = (this.time_ryc845_k$(ip1) - this.time_ryc845_k$(im1)) / 2000.0;
2847
+ this.setDx_uk0ky4_k$(i_0, dDist);
2848
+ this.setDt_sgarxs_k$(i_0, dTime);
2849
+ this.setSpeed_1slan1_k$(i_0, dTime === 0.0 ? 0.0 : dDist / dTime);
2614
2850
  }
2615
2851
  while (inductionVariable_0 < last_0);
2616
2852
  };
2617
2853
  function PathSimplifier() {
2618
2854
  }
2619
- protoOf(PathSimplifier).d1w = function (path, toleranceM, zExaggeration) {
2620
- if (path.u1q_1 <= 2)
2621
- return path.c1w();
2622
- var coords = ArrayList_init_$Create$_0(path.u1q_1);
2855
+ protoOf(PathSimplifier).simplify_gxhj7b_k$ = function (path, toleranceM, zExaggeration) {
2856
+ if (path.size_1 <= 2)
2857
+ return path.copy_1tks5_k$();
2858
+ var coords = ArrayList_init_$Create$_0(path.size_1);
2623
2859
  var inductionVariable = 0;
2624
- var last = path.u1q_1;
2860
+ var last = path.size_1;
2625
2861
  if (inductionVariable < last)
2626
2862
  do {
2627
2863
  var i = inductionVariable;
2628
2864
  inductionVariable = inductionVariable + 1 | 0;
2629
2865
  // Inline function 'kotlin.collections.plusAssign' call
2630
- var element = new LatLonElevation(path.w1q(i) * MathConstants_getInstance().uw_1, path.x1q(i) * MathConstants_getInstance().uw_1, path.y1q(i));
2631
- coords.h(element);
2866
+ var element = new LatLonElevation(path.latitude_gb4iok_k$(i) * 57.29577951308232, path.longitude_a9xl_k$(i) * 57.29577951308232, path.elevation_iziwkb_k$(i));
2867
+ coords.add_utx5q5_k$(element);
2632
2868
  }
2633
2869
  while (inductionVariable < last);
2634
- var simplified = DouglasPeucker_instance.ow(coords, toleranceM, zExaggeration);
2635
- var retainedIndices = ArrayList_init_$Create$_0(simplified.l());
2870
+ var simplified = DouglasPeucker_instance.simplify_o1pnyo_k$(coords, toleranceM, zExaggeration);
2871
+ var retainedIndices = ArrayList_init_$Create$_0(simplified.get_size_woubt6_k$());
2636
2872
  var cursor = 0;
2637
- var _iterator__ex2g4s = simplified.i();
2638
- while (_iterator__ex2g4s.j()) {
2639
- var kept = _iterator__ex2g4s.k();
2640
- while (cursor < coords.l() && !(coords.m(cursor) === kept)) {
2873
+ var _iterator__ex2g4s = simplified.iterator_jk1svi_k$();
2874
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
2875
+ var kept = _iterator__ex2g4s.next_20eer_k$();
2876
+ while (cursor < coords.get_size_woubt6_k$() && !(coords.get_c1px32_k$(cursor) === kept)) {
2641
2877
  cursor = cursor + 1 | 0;
2642
2878
  }
2643
- if (cursor === coords.l()) {
2879
+ if (cursor === coords.get_size_woubt6_k$()) {
2644
2880
  // Inline function 'kotlin.error' call
2645
2881
  var message = 'PathSimplifier: retained point not found in source';
2646
2882
  throw IllegalStateException_init_$Create$(toString_0(message));
2647
2883
  }
2648
2884
  // Inline function 'kotlin.collections.plusAssign' call
2649
2885
  var element_0 = cursor;
2650
- retainedIndices.h(element_0);
2886
+ retainedIndices.add_utx5q5_k$(element_0);
2651
2887
  cursor = cursor + 1 | 0;
2652
2888
  }
2653
- var out = new Path(retainedIndices.l());
2654
- var iterator = retainedIndices.i();
2889
+ var out = new Path(retainedIndices.get_size_woubt6_k$());
2890
+ var iterator = retainedIndices.iterator_jk1svi_k$();
2655
2891
  var index = 0;
2656
- while (iterator.j()) {
2892
+ while (iterator.hasNext_bitz1p_k$()) {
2657
2893
  var dstIdx = index;
2658
2894
  index = index + 1 | 0;
2659
- var srcIdx = iterator.k();
2660
- var _iterator__ex2g4s_0 = get_entries().i();
2661
- while (_iterator__ex2g4s_0.j()) {
2662
- var field = _iterator__ex2g4s_0.k();
2663
- out.t1t(dstIdx, field, path.m1t(srcIdx, field));
2895
+ var srcIdx = iterator.next_20eer_k$();
2896
+ var _iterator__ex2g4s_0 = get_entries_0().iterator_jk1svi_k$();
2897
+ while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
2898
+ var field = _iterator__ex2g4s_0.next_20eer_k$();
2899
+ out.set_b3ze83_k$(dstIdx, field, path.get_z3le6l_k$(srcIdx, field));
2664
2900
  }
2665
2901
  }
2666
- out.e1s();
2902
+ out.computeDerivedData_uoxpeo_k$();
2667
2903
  return out;
2668
2904
  };
2669
2905
  var PathSimplifier_instance;
2670
2906
  function PathSimplifier_getInstance() {
2671
2907
  return PathSimplifier_instance;
2672
2908
  }
2909
+ var static_init_called_1;
2910
+ function static_init_1() {
2911
+ if (static_init_called_1)
2912
+ return Unit_instance;
2913
+ static_init_called_1 = true;
2914
+ PointField_LATITUDE_instance = new PointField('LATITUDE', 0, 'latitude', 'radians', 'Latitude (radians)', PointFieldCategory_COORDINATES_getInstance(), true, true);
2915
+ PointField_LONGITUDE_instance = new PointField('LONGITUDE', 1, 'longitude', 'radians', 'Longitude (radians)', PointFieldCategory_COORDINATES_getInstance(), true, true);
2916
+ PointField_DISTANCE_instance = new PointField('DISTANCE', 2, 'distance', 'meters', 'Distance (meters)', PointFieldCategory_COORDINATES_getInstance());
2917
+ PointField_DX_instance = new PointField('DX', 3, 'dx', 'meters', 'dx (meters)', PointFieldCategory_COORDINATES_getInstance());
2918
+ PointField_TIME_instance = new PointField('TIME', 4, 'time', 'ms', 'Timestamp (ms since epoch)', PointFieldCategory_TEMPORAL_getInstance(), true);
2919
+ PointField_ELAPSED_instance = new PointField('ELAPSED', 5, 'elapsed', 'ms', 'Elapsed duration (ms)', PointFieldCategory_TEMPORAL_getInstance());
2920
+ PointField_DT_instance = new PointField('DT', 6, 'dt', 'ms', 'dt (ms)', PointFieldCategory_TEMPORAL_getInstance());
2921
+ PointField_BEARING_instance = new PointField('BEARING', 7, 'bearing', 'radians', 'Direction bearing (radians)', PointFieldCategory_ANGLES_getInstance(), VOID, true);
2922
+ PointField_ELEVATION_instance = new PointField('ELEVATION', 8, 'elevation', 'meters', 'Elevation (meters)', PointFieldCategory_ELEVATION_getInstance());
2923
+ PointField_GRADE_instance = new PointField('GRADE', 9, 'grade', '%', 'Road grade/slope (%)', PointFieldCategory_GRADE_getInstance());
2924
+ PointField_RADIUS_instance = new PointField('RADIUS', 10, 'radius', 'meters', 'Turn radius (meters)', PointFieldCategory_RADIUS_getInstance());
2925
+ PointField_AERO_COEF_instance = new PointField('AERO_COEF', 11, 'aeroCoef', 'aero', 'Aerodynamic coefficient', PointFieldCategory_AERO_COEF_getInstance());
2926
+ PointField_WIND_BEARING_instance = new PointField('WIND_BEARING', 12, 'windBearing', 'radians', 'Wind bearing (radians)', PointFieldCategory_CYCLIST_WIND_getInstance(), VOID, true);
2927
+ PointField_WIND_ALPHA_instance = new PointField('WIND_ALPHA', 13, 'windAlpha', 'radians', 'Wind angle (radians)', PointFieldCategory_CYCLIST_WIND_getInstance(), VOID, true);
2928
+ PointField_P_AERO_instance = new PointField('P_AERO', 14, 'pAero', 'watts', 'Aerodynamic power', PointFieldCategory_POWER_PHYSICS_getInstance());
2929
+ PointField_P_GRAVITY_instance = new PointField('P_GRAVITY', 15, 'pGravity', 'watts', 'Gravitational power', PointFieldCategory_POWER_PHYSICS_getInstance());
2930
+ PointField_P_ROLLING_RESISTANCE_instance = new PointField('P_ROLLING_RESISTANCE', 16, 'pRollingResistance', 'watts', 'Rolling resistance power', PointFieldCategory_POWER_PHYSICS_getInstance());
2931
+ PointField_P_WHEEL_BEARINGS_instance = new PointField('P_WHEEL_BEARINGS', 17, 'pWheelBearings', 'watts', 'Wheel bearings power', PointFieldCategory_POWER_PHYSICS_getInstance());
2932
+ PointField_P_INPUT_POWER_instance = new PointField('P_INPUT_POWER', 18, 'pInputPower', 'watts', 'GPX input power', PointFieldCategory_POWER_CYCLIST_getInstance());
2933
+ PointField_P_CYCLIST_PROVIDED_OPTIMAL_POWER_instance = new PointField('P_CYCLIST_PROVIDED_OPTIMAL_POWER', 19, 'pCyclistProvidedOptimalPower', 'watts', 'Optimal power', PointFieldCategory_POWER_CYCLIST_getInstance());
2934
+ PointField_P_CYCLIST_PROVIDED_OPTIMAL_POWER_HARMONICS_instance = new PointField('P_CYCLIST_PROVIDED_OPTIMAL_POWER_HARMONICS', 20, 'pCyclistProvidedOptimalPowerWithHarmonics', 'watts', 'Optimal power with harmonics', PointFieldCategory_POWER_CYCLIST_getInstance());
2935
+ PointField_P_CYCLIST_PROVIDED_POWER_NEEDED_instance = new PointField('P_CYCLIST_PROVIDED_POWER_NEEDED', 21, 'pCyclistPowerNeeded', 'watts', 'Power needed', PointFieldCategory_POWER_CYCLIST_getInstance());
2936
+ PointField_P_CYCLIST_PROVIDED_MUSCULAR_instance = new PointField('P_CYCLIST_PROVIDED_MUSCULAR', 22, 'pCyclistProvidedMuscular', 'watts', 'Raw cyclist power', PointFieldCategory_POWER_CYCLIST_getInstance());
2937
+ PointField_P_CYCLIST_PROVIDED_WHEEL_instance = new PointField('P_CYCLIST_PROVIDED_WHEEL', 23, 'pCyclistProvidedWheel', 'watts', 'Cyclist power transmitted to ground', PointFieldCategory_POWER_CYCLIST_getInstance());
2938
+ PointField_P_COMPUTED_TOTAL_POWER_instance = new PointField('P_COMPUTED_TOTAL_POWER', 24, 'pComputedTotalPower', 'watts', 'Power from kinetic energy change', PointFieldCategory_POWER_POST_getInstance());
2939
+ PointField_P_COMPUTED_WHEEL_POWER_instance = new PointField('P_COMPUTED_WHEEL_POWER', 25, 'pComputedWheelPower', 'watts', 'Wheel power from kinetic energy change', PointFieldCategory_POWER_POST_getInstance());
2940
+ PointField_POWER_instance = new PointField('POWER', 26, 'pComputedPower', 'watts', 'Total power (watts)', PointFieldCategory_POWER_POST_getInstance());
2941
+ PointField_SPEED_instance = new PointField('SPEED', 27, 'speed', 'm/s', 'Current speed (m/s)', PointFieldCategory_SPEED_getInstance());
2942
+ PointField_SPEED_MAX_instance = new PointField('SPEED_MAX', 28, 'speedMax', 'm/s', 'Maximum speed (m/s)', PointFieldCategory_SPEED_getInstance());
2943
+ PointField_SPEED_MAX_INCLINE_instance = new PointField('SPEED_MAX_INCLINE', 29, 'speedMaxIncline', 'm/s', 'Max speed on incline (m/s)', PointFieldCategory_SPEED_getInstance());
2944
+ PointField_VIRT_SPEED_CURRENT_instance = new PointField('VIRT_SPEED_CURRENT', 30, 'virtSpeedCurrent', 'm/s', 'Virtual current speed (m/s)', PointFieldCategory_SPEED_getInstance());
2945
+ PointField_TEMPERATURE_instance = new PointField('TEMPERATURE', 31, 'temperature', 'celsius', 'Temperature (celsius)', PointFieldCategory_ENVIRONMENTAL_getInstance());
2946
+ PointField_WIND_SPEED_instance = new PointField('WIND_SPEED', 32, 'windSpeed', 'm/s', 'Wind speed (m/s)', PointFieldCategory_ENVIRONMENTAL_getInstance());
2947
+ PointField_WIND_DIRECTION_instance = new PointField('WIND_DIRECTION', 33, 'windDirection', 'radians', 'Wind direction (radians)', PointFieldCategory_ENVIRONMENTAL_getInstance(), VOID, true);
2948
+ PointField_HEART_RATE_instance = new PointField('HEART_RATE', 34, 'heartRate', 'bpm', 'Heart rate (bpm)', PointFieldCategory_PHYSIOLOGICAL_getInstance());
2949
+ PointField_CADENCE_instance = new PointField('CADENCE', 35, 'cadence', 'rpm', 'Pedaling cadence (rpm)', PointFieldCategory_PHYSIOLOGICAL_getInstance());
2950
+ if (Companion_instance_3 == null) {
2951
+ Companion_instance;
2952
+ new Companion_2();
2953
+ }
2954
+ }
2673
2955
  var PointField_LATITUDE_instance;
2674
2956
  var PointField_LONGITUDE_instance;
2675
2957
  var PointField_DISTANCE_instance;
@@ -2707,258 +2989,201 @@
2707
2989
  var PointField_HEART_RATE_instance;
2708
2990
  var PointField_CADENCE_instance;
2709
2991
  function Companion_2() {
2710
- Companion_instance_2 = this;
2711
- this.e1w_1 = 36;
2992
+ Companion_instance_3 = this;
2993
+ this.COUNT_1 = 36;
2712
2994
  var tmp = this;
2713
2995
  // Inline function 'kotlin.collections.associateBy' call
2714
- var this_0 = get_entries();
2996
+ var this_0 = get_entries_0();
2715
2997
  var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
2716
2998
  // Inline function 'kotlin.collections.associateByTo' call
2717
2999
  var destination = LinkedHashMap_init_$Create$(capacity);
2718
- var _iterator__ex2g4s = this_0.i();
2719
- while (_iterator__ex2g4s.j()) {
2720
- var element = _iterator__ex2g4s.k();
2721
- var tmp$ret$2 = element.a1t_1;
2722
- destination.c3(tmp$ret$2, element);
3000
+ var _iterator__ex2g4s = this_0.iterator_jk1svi_k$();
3001
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
3002
+ var element = _iterator__ex2g4s.next_20eer_k$();
3003
+ var tmp$ret$2 = element.prop_1;
3004
+ destination.put_4fpzoq_k$(tmp$ret$2, element);
2723
3005
  }
2724
- tmp.f1w_1 = destination;
3006
+ tmp.byPropMap_1 = destination;
2725
3007
  }
2726
- protoOf(Companion_2).g1w = function (prop) {
2727
- return this.f1w_1.k1(prop);
3008
+ protoOf(Companion_2).byProp_kdf1eo_k$ = function (prop) {
3009
+ return this.byPropMap_1.get_wei43m_k$(prop);
2728
3010
  };
2729
- var Companion_instance_2;
3011
+ var Companion_instance_3;
2730
3012
  function Companion_getInstance_3() {
2731
- PointField_initEntries();
2732
- if (Companion_instance_2 == null)
2733
- new Companion_2();
2734
- return Companion_instance_2;
3013
+ static_init_1();
3014
+ return Companion_instance_3;
2735
3015
  }
2736
- function values() {
3016
+ function values_0() {
3017
+ static_init_1();
2737
3018
  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
3019
  }
2739
- function get_entries() {
2740
- if ($ENTRIES == null)
2741
- $ENTRIES = enumEntries(values());
2742
- return $ENTRIES;
2743
- }
2744
- var PointField_entriesInitialized;
2745
- function PointField_initEntries() {
2746
- if (PointField_entriesInitialized)
2747
- return Unit_instance;
2748
- PointField_entriesInitialized = true;
2749
- PointField_LATITUDE_instance = new PointField('LATITUDE', 0, 'latitude', 'radians', 'Latitude (radians)', PointFieldCategory_COORDINATES_getInstance(), true, true);
2750
- PointField_LONGITUDE_instance = new PointField('LONGITUDE', 1, 'longitude', 'radians', 'Longitude (radians)', PointFieldCategory_COORDINATES_getInstance(), true, true);
2751
- PointField_DISTANCE_instance = new PointField('DISTANCE', 2, 'distance', 'meters', 'Distance (meters)', PointFieldCategory_COORDINATES_getInstance());
2752
- PointField_DX_instance = new PointField('DX', 3, 'dx', 'meters', 'dx (meters)', PointFieldCategory_COORDINATES_getInstance());
2753
- PointField_TIME_instance = new PointField('TIME', 4, 'time', 'ms', 'Timestamp (ms since epoch)', PointFieldCategory_TEMPORAL_getInstance(), true);
2754
- PointField_ELAPSED_instance = new PointField('ELAPSED', 5, 'elapsed', 'ms', 'Elapsed duration (ms)', PointFieldCategory_TEMPORAL_getInstance());
2755
- PointField_DT_instance = new PointField('DT', 6, 'dt', 'ms', 'dt (ms)', PointFieldCategory_TEMPORAL_getInstance());
2756
- PointField_BEARING_instance = new PointField('BEARING', 7, 'bearing', 'radians', 'Direction bearing (radians)', PointFieldCategory_ANGLES_getInstance(), VOID, true);
2757
- PointField_ELEVATION_instance = new PointField('ELEVATION', 8, 'elevation', 'meters', 'Elevation (meters)', PointFieldCategory_ELEVATION_getInstance());
2758
- PointField_GRADE_instance = new PointField('GRADE', 9, 'grade', '%', 'Road grade/slope (%)', PointFieldCategory_GRADE_getInstance());
2759
- PointField_RADIUS_instance = new PointField('RADIUS', 10, 'radius', 'meters', 'Turn radius (meters)', PointFieldCategory_RADIUS_getInstance());
2760
- PointField_AERO_COEF_instance = new PointField('AERO_COEF', 11, 'aeroCoef', 'aero', 'Aerodynamic coefficient', PointFieldCategory_AERO_COEF_getInstance());
2761
- PointField_WIND_BEARING_instance = new PointField('WIND_BEARING', 12, 'windBearing', 'radians', 'Wind bearing (radians)', PointFieldCategory_CYCLIST_WIND_getInstance(), VOID, true);
2762
- PointField_WIND_ALPHA_instance = new PointField('WIND_ALPHA', 13, 'windAlpha', 'radians', 'Wind angle (radians)', PointFieldCategory_CYCLIST_WIND_getInstance(), VOID, true);
2763
- PointField_P_AERO_instance = new PointField('P_AERO', 14, 'pAero', 'watts', 'Aerodynamic power', PointFieldCategory_POWER_PHYSICS_getInstance());
2764
- PointField_P_GRAVITY_instance = new PointField('P_GRAVITY', 15, 'pGravity', 'watts', 'Gravitational power', PointFieldCategory_POWER_PHYSICS_getInstance());
2765
- PointField_P_ROLLING_RESISTANCE_instance = new PointField('P_ROLLING_RESISTANCE', 16, 'pRollingResistance', 'watts', 'Rolling resistance power', PointFieldCategory_POWER_PHYSICS_getInstance());
2766
- PointField_P_WHEEL_BEARINGS_instance = new PointField('P_WHEEL_BEARINGS', 17, 'pWheelBearings', 'watts', 'Wheel bearings power', PointFieldCategory_POWER_PHYSICS_getInstance());
2767
- PointField_P_INPUT_POWER_instance = new PointField('P_INPUT_POWER', 18, 'pInputPower', 'watts', 'GPX input power', PointFieldCategory_POWER_CYCLIST_getInstance());
2768
- PointField_P_CYCLIST_PROVIDED_OPTIMAL_POWER_instance = new PointField('P_CYCLIST_PROVIDED_OPTIMAL_POWER', 19, 'pCyclistProvidedOptimalPower', 'watts', 'Optimal power', PointFieldCategory_POWER_CYCLIST_getInstance());
2769
- PointField_P_CYCLIST_PROVIDED_OPTIMAL_POWER_HARMONICS_instance = new PointField('P_CYCLIST_PROVIDED_OPTIMAL_POWER_HARMONICS', 20, 'pCyclistProvidedOptimalPowerWithHarmonics', 'watts', 'Optimal power with harmonics', PointFieldCategory_POWER_CYCLIST_getInstance());
2770
- PointField_P_CYCLIST_PROVIDED_POWER_NEEDED_instance = new PointField('P_CYCLIST_PROVIDED_POWER_NEEDED', 21, 'pCyclistPowerNeeded', 'watts', 'Power needed', PointFieldCategory_POWER_CYCLIST_getInstance());
2771
- PointField_P_CYCLIST_PROVIDED_MUSCULAR_instance = new PointField('P_CYCLIST_PROVIDED_MUSCULAR', 22, 'pCyclistProvidedMuscular', 'watts', 'Raw cyclist power', PointFieldCategory_POWER_CYCLIST_getInstance());
2772
- PointField_P_CYCLIST_PROVIDED_WHEEL_instance = new PointField('P_CYCLIST_PROVIDED_WHEEL', 23, 'pCyclistProvidedWheel', 'watts', 'Cyclist power transmitted to ground', PointFieldCategory_POWER_CYCLIST_getInstance());
2773
- PointField_P_COMPUTED_TOTAL_POWER_instance = new PointField('P_COMPUTED_TOTAL_POWER', 24, 'pComputedTotalPower', 'watts', 'Power from kinetic energy change', PointFieldCategory_POWER_POST_getInstance());
2774
- PointField_P_COMPUTED_WHEEL_POWER_instance = new PointField('P_COMPUTED_WHEEL_POWER', 25, 'pComputedWheelPower', 'watts', 'Wheel power from kinetic energy change', PointFieldCategory_POWER_POST_getInstance());
2775
- PointField_POWER_instance = new PointField('POWER', 26, 'pComputedPower', 'watts', 'Total power (watts)', PointFieldCategory_POWER_POST_getInstance());
2776
- PointField_SPEED_instance = new PointField('SPEED', 27, 'speed', 'm/s', 'Current speed (m/s)', PointFieldCategory_SPEED_getInstance());
2777
- PointField_SPEED_MAX_instance = new PointField('SPEED_MAX', 28, 'speedMax', 'm/s', 'Maximum speed (m/s)', PointFieldCategory_SPEED_getInstance());
2778
- PointField_SPEED_MAX_INCLINE_instance = new PointField('SPEED_MAX_INCLINE', 29, 'speedMaxIncline', 'm/s', 'Max speed on incline (m/s)', PointFieldCategory_SPEED_getInstance());
2779
- PointField_VIRT_SPEED_CURRENT_instance = new PointField('VIRT_SPEED_CURRENT', 30, 'virtSpeedCurrent', 'm/s', 'Virtual current speed (m/s)', PointFieldCategory_SPEED_getInstance());
2780
- PointField_TEMPERATURE_instance = new PointField('TEMPERATURE', 31, 'temperature', 'celsius', 'Temperature (celsius)', PointFieldCategory_ENVIRONMENTAL_getInstance());
2781
- PointField_WIND_SPEED_instance = new PointField('WIND_SPEED', 32, 'windSpeed', 'm/s', 'Wind speed (m/s)', PointFieldCategory_ENVIRONMENTAL_getInstance());
2782
- PointField_WIND_DIRECTION_instance = new PointField('WIND_DIRECTION', 33, 'windDirection', 'radians', 'Wind direction (radians)', PointFieldCategory_ENVIRONMENTAL_getInstance(), VOID, true);
2783
- PointField_HEART_RATE_instance = new PointField('HEART_RATE', 34, 'heartRate', 'bpm', 'Heart rate (bpm)', PointFieldCategory_PHYSIOLOGICAL_getInstance());
2784
- PointField_CADENCE_instance = new PointField('CADENCE', 35, 'cadence', 'rpm', 'Pedaling cadence (rpm)', PointFieldCategory_PHYSIOLOGICAL_getInstance());
2785
- Companion_getInstance_3();
3020
+ function get_entries_0() {
3021
+ static_init_1();
3022
+ if ($ENTRIES_0 == null)
3023
+ $ENTRIES_0 = enumEntries(values_0());
3024
+ return $ENTRIES_0;
2786
3025
  }
2787
- var $ENTRIES;
3026
+ var $ENTRIES_0;
2788
3027
  function PointField(name, ordinal, prop, unit, shortDescription, category, notSelectable, anglesInRadians) {
2789
3028
  notSelectable = notSelectable === VOID ? false : notSelectable;
2790
3029
  anglesInRadians = anglesInRadians === VOID ? false : anglesInRadians;
2791
3030
  Enum.call(this, name, ordinal);
2792
- this.a1t_1 = prop;
2793
- this.b1t_1 = unit;
2794
- this.c1t_1 = shortDescription;
2795
- this.d1t_1 = category;
2796
- this.e1t_1 = notSelectable;
2797
- this.f1t_1 = anglesInRadians;
3031
+ this.prop_1 = prop;
3032
+ this.unit_1 = unit;
3033
+ this.shortDescription_1 = shortDescription;
3034
+ this.category_1 = category;
3035
+ this.notSelectable_1 = notSelectable;
3036
+ this.anglesInRadians_1 = anglesInRadians;
2798
3037
  }
2799
3038
  function PointField_LATITUDE_getInstance() {
2800
- PointField_initEntries();
3039
+ static_init_1();
2801
3040
  return PointField_LATITUDE_instance;
2802
3041
  }
2803
3042
  function PointField_LONGITUDE_getInstance() {
2804
- PointField_initEntries();
3043
+ static_init_1();
2805
3044
  return PointField_LONGITUDE_instance;
2806
3045
  }
2807
3046
  function PointField_DISTANCE_getInstance() {
2808
- PointField_initEntries();
3047
+ static_init_1();
2809
3048
  return PointField_DISTANCE_instance;
2810
3049
  }
2811
3050
  function PointField_DX_getInstance() {
2812
- PointField_initEntries();
3051
+ static_init_1();
2813
3052
  return PointField_DX_instance;
2814
3053
  }
2815
3054
  function PointField_TIME_getInstance() {
2816
- PointField_initEntries();
3055
+ static_init_1();
2817
3056
  return PointField_TIME_instance;
2818
3057
  }
2819
3058
  function PointField_ELAPSED_getInstance() {
2820
- PointField_initEntries();
3059
+ static_init_1();
2821
3060
  return PointField_ELAPSED_instance;
2822
3061
  }
2823
3062
  function PointField_DT_getInstance() {
2824
- PointField_initEntries();
3063
+ static_init_1();
2825
3064
  return PointField_DT_instance;
2826
3065
  }
2827
3066
  function PointField_BEARING_getInstance() {
2828
- PointField_initEntries();
3067
+ static_init_1();
2829
3068
  return PointField_BEARING_instance;
2830
3069
  }
2831
3070
  function PointField_ELEVATION_getInstance() {
2832
- PointField_initEntries();
3071
+ static_init_1();
2833
3072
  return PointField_ELEVATION_instance;
2834
3073
  }
2835
3074
  function PointField_GRADE_getInstance() {
2836
- PointField_initEntries();
3075
+ static_init_1();
2837
3076
  return PointField_GRADE_instance;
2838
3077
  }
2839
3078
  function PointField_RADIUS_getInstance() {
2840
- PointField_initEntries();
3079
+ static_init_1();
2841
3080
  return PointField_RADIUS_instance;
2842
3081
  }
2843
3082
  function PointField_AERO_COEF_getInstance() {
2844
- PointField_initEntries();
3083
+ static_init_1();
2845
3084
  return PointField_AERO_COEF_instance;
2846
3085
  }
2847
3086
  function PointField_WIND_BEARING_getInstance() {
2848
- PointField_initEntries();
3087
+ static_init_1();
2849
3088
  return PointField_WIND_BEARING_instance;
2850
3089
  }
2851
3090
  function PointField_WIND_ALPHA_getInstance() {
2852
- PointField_initEntries();
3091
+ static_init_1();
2853
3092
  return PointField_WIND_ALPHA_instance;
2854
3093
  }
2855
3094
  function PointField_P_AERO_getInstance() {
2856
- PointField_initEntries();
3095
+ static_init_1();
2857
3096
  return PointField_P_AERO_instance;
2858
3097
  }
2859
3098
  function PointField_P_GRAVITY_getInstance() {
2860
- PointField_initEntries();
3099
+ static_init_1();
2861
3100
  return PointField_P_GRAVITY_instance;
2862
3101
  }
2863
3102
  function PointField_P_ROLLING_RESISTANCE_getInstance() {
2864
- PointField_initEntries();
3103
+ static_init_1();
2865
3104
  return PointField_P_ROLLING_RESISTANCE_instance;
2866
3105
  }
2867
3106
  function PointField_P_WHEEL_BEARINGS_getInstance() {
2868
- PointField_initEntries();
3107
+ static_init_1();
2869
3108
  return PointField_P_WHEEL_BEARINGS_instance;
2870
3109
  }
2871
3110
  function PointField_P_INPUT_POWER_getInstance() {
2872
- PointField_initEntries();
3111
+ static_init_1();
2873
3112
  return PointField_P_INPUT_POWER_instance;
2874
3113
  }
2875
3114
  function PointField_P_CYCLIST_PROVIDED_OPTIMAL_POWER_getInstance() {
2876
- PointField_initEntries();
3115
+ static_init_1();
2877
3116
  return PointField_P_CYCLIST_PROVIDED_OPTIMAL_POWER_instance;
2878
3117
  }
2879
3118
  function PointField_P_CYCLIST_PROVIDED_OPTIMAL_POWER_HARMONICS_getInstance() {
2880
- PointField_initEntries();
3119
+ static_init_1();
2881
3120
  return PointField_P_CYCLIST_PROVIDED_OPTIMAL_POWER_HARMONICS_instance;
2882
3121
  }
2883
3122
  function PointField_P_CYCLIST_PROVIDED_POWER_NEEDED_getInstance() {
2884
- PointField_initEntries();
3123
+ static_init_1();
2885
3124
  return PointField_P_CYCLIST_PROVIDED_POWER_NEEDED_instance;
2886
3125
  }
2887
3126
  function PointField_P_CYCLIST_PROVIDED_MUSCULAR_getInstance() {
2888
- PointField_initEntries();
3127
+ static_init_1();
2889
3128
  return PointField_P_CYCLIST_PROVIDED_MUSCULAR_instance;
2890
3129
  }
2891
3130
  function PointField_P_CYCLIST_PROVIDED_WHEEL_getInstance() {
2892
- PointField_initEntries();
3131
+ static_init_1();
2893
3132
  return PointField_P_CYCLIST_PROVIDED_WHEEL_instance;
2894
3133
  }
2895
3134
  function PointField_P_COMPUTED_TOTAL_POWER_getInstance() {
2896
- PointField_initEntries();
3135
+ static_init_1();
2897
3136
  return PointField_P_COMPUTED_TOTAL_POWER_instance;
2898
3137
  }
2899
3138
  function PointField_P_COMPUTED_WHEEL_POWER_getInstance() {
2900
- PointField_initEntries();
3139
+ static_init_1();
2901
3140
  return PointField_P_COMPUTED_WHEEL_POWER_instance;
2902
3141
  }
2903
3142
  function PointField_POWER_getInstance() {
2904
- PointField_initEntries();
3143
+ static_init_1();
2905
3144
  return PointField_POWER_instance;
2906
3145
  }
2907
3146
  function PointField_SPEED_getInstance() {
2908
- PointField_initEntries();
3147
+ static_init_1();
2909
3148
  return PointField_SPEED_instance;
2910
3149
  }
2911
3150
  function PointField_SPEED_MAX_getInstance() {
2912
- PointField_initEntries();
3151
+ static_init_1();
2913
3152
  return PointField_SPEED_MAX_instance;
2914
3153
  }
2915
3154
  function PointField_SPEED_MAX_INCLINE_getInstance() {
2916
- PointField_initEntries();
3155
+ static_init_1();
2917
3156
  return PointField_SPEED_MAX_INCLINE_instance;
2918
3157
  }
2919
3158
  function PointField_VIRT_SPEED_CURRENT_getInstance() {
2920
- PointField_initEntries();
3159
+ static_init_1();
2921
3160
  return PointField_VIRT_SPEED_CURRENT_instance;
2922
3161
  }
2923
3162
  function PointField_TEMPERATURE_getInstance() {
2924
- PointField_initEntries();
3163
+ static_init_1();
2925
3164
  return PointField_TEMPERATURE_instance;
2926
3165
  }
2927
3166
  function PointField_WIND_SPEED_getInstance() {
2928
- PointField_initEntries();
3167
+ static_init_1();
2929
3168
  return PointField_WIND_SPEED_instance;
2930
3169
  }
2931
3170
  function PointField_WIND_DIRECTION_getInstance() {
2932
- PointField_initEntries();
3171
+ static_init_1();
2933
3172
  return PointField_WIND_DIRECTION_instance;
2934
3173
  }
2935
3174
  function PointField_HEART_RATE_getInstance() {
2936
- PointField_initEntries();
3175
+ static_init_1();
2937
3176
  return PointField_HEART_RATE_instance;
2938
3177
  }
2939
3178
  function PointField_CADENCE_getInstance() {
2940
- PointField_initEntries();
3179
+ static_init_1();
2941
3180
  return PointField_CADENCE_instance;
2942
3181
  }
2943
- var PointFieldCategory_COORDINATES_instance;
2944
- var PointFieldCategory_TEMPORAL_instance;
2945
- var PointFieldCategory_ANGLES_instance;
2946
- var PointFieldCategory_ELEVATION_instance;
2947
- var PointFieldCategory_GRADE_instance;
2948
- var PointFieldCategory_RADIUS_instance;
2949
- var PointFieldCategory_AERO_COEF_instance;
2950
- var PointFieldCategory_CYCLIST_WIND_instance;
2951
- var PointFieldCategory_POWER_PHYSICS_instance;
2952
- var PointFieldCategory_POWER_CYCLIST_instance;
2953
- var PointFieldCategory_POWER_POST_instance;
2954
- var PointFieldCategory_SPEED_instance;
2955
- var PointFieldCategory_ENVIRONMENTAL_instance;
2956
- var PointFieldCategory_PHYSIOLOGICAL_instance;
2957
- var PointFieldCategory_entriesInitialized;
2958
- function PointFieldCategory_initEntries() {
2959
- if (PointFieldCategory_entriesInitialized)
3182
+ var static_init_called_2;
3183
+ function static_init_2() {
3184
+ if (static_init_called_2)
2960
3185
  return Unit_instance;
2961
- PointFieldCategory_entriesInitialized = true;
3186
+ static_init_called_2 = true;
2962
3187
  PointFieldCategory_COORDINATES_instance = new PointFieldCategory('COORDINATES', 0, 'coordinates', 'Coordinates');
2963
3188
  PointFieldCategory_TEMPORAL_instance = new PointFieldCategory('TEMPORAL', 1, 'temporal', 'Temporal');
2964
3189
  PointFieldCategory_ANGLES_instance = new PointFieldCategory('ANGLES', 2, 'angles', 'Angles');
@@ -2974,97 +3199,111 @@
2974
3199
  PointFieldCategory_ENVIRONMENTAL_instance = new PointFieldCategory('ENVIRONMENTAL', 12, 'environmental', 'Environmental');
2975
3200
  PointFieldCategory_PHYSIOLOGICAL_instance = new PointFieldCategory('PHYSIOLOGICAL', 13, 'physiological', 'Physiological');
2976
3201
  }
3202
+ var PointFieldCategory_COORDINATES_instance;
3203
+ var PointFieldCategory_TEMPORAL_instance;
3204
+ var PointFieldCategory_ANGLES_instance;
3205
+ var PointFieldCategory_ELEVATION_instance;
3206
+ var PointFieldCategory_GRADE_instance;
3207
+ var PointFieldCategory_RADIUS_instance;
3208
+ var PointFieldCategory_AERO_COEF_instance;
3209
+ var PointFieldCategory_CYCLIST_WIND_instance;
3210
+ var PointFieldCategory_POWER_PHYSICS_instance;
3211
+ var PointFieldCategory_POWER_CYCLIST_instance;
3212
+ var PointFieldCategory_POWER_POST_instance;
3213
+ var PointFieldCategory_SPEED_instance;
3214
+ var PointFieldCategory_ENVIRONMENTAL_instance;
3215
+ var PointFieldCategory_PHYSIOLOGICAL_instance;
2977
3216
  function PointFieldCategory(name, ordinal, id, displayName) {
2978
3217
  Enum.call(this, name, ordinal);
2979
- this.j1w_1 = id;
2980
- this.k1w_1 = displayName;
3218
+ this.id_1 = id;
3219
+ this.displayName_1 = displayName;
2981
3220
  }
2982
3221
  function PointFieldCategory_COORDINATES_getInstance() {
2983
- PointFieldCategory_initEntries();
3222
+ static_init_2();
2984
3223
  return PointFieldCategory_COORDINATES_instance;
2985
3224
  }
2986
3225
  function PointFieldCategory_TEMPORAL_getInstance() {
2987
- PointFieldCategory_initEntries();
3226
+ static_init_2();
2988
3227
  return PointFieldCategory_TEMPORAL_instance;
2989
3228
  }
2990
3229
  function PointFieldCategory_ANGLES_getInstance() {
2991
- PointFieldCategory_initEntries();
3230
+ static_init_2();
2992
3231
  return PointFieldCategory_ANGLES_instance;
2993
3232
  }
2994
3233
  function PointFieldCategory_ELEVATION_getInstance() {
2995
- PointFieldCategory_initEntries();
3234
+ static_init_2();
2996
3235
  return PointFieldCategory_ELEVATION_instance;
2997
3236
  }
2998
3237
  function PointFieldCategory_GRADE_getInstance() {
2999
- PointFieldCategory_initEntries();
3238
+ static_init_2();
3000
3239
  return PointFieldCategory_GRADE_instance;
3001
3240
  }
3002
3241
  function PointFieldCategory_RADIUS_getInstance() {
3003
- PointFieldCategory_initEntries();
3242
+ static_init_2();
3004
3243
  return PointFieldCategory_RADIUS_instance;
3005
3244
  }
3006
3245
  function PointFieldCategory_AERO_COEF_getInstance() {
3007
- PointFieldCategory_initEntries();
3246
+ static_init_2();
3008
3247
  return PointFieldCategory_AERO_COEF_instance;
3009
3248
  }
3010
3249
  function PointFieldCategory_CYCLIST_WIND_getInstance() {
3011
- PointFieldCategory_initEntries();
3250
+ static_init_2();
3012
3251
  return PointFieldCategory_CYCLIST_WIND_instance;
3013
3252
  }
3014
3253
  function PointFieldCategory_POWER_PHYSICS_getInstance() {
3015
- PointFieldCategory_initEntries();
3254
+ static_init_2();
3016
3255
  return PointFieldCategory_POWER_PHYSICS_instance;
3017
3256
  }
3018
3257
  function PointFieldCategory_POWER_CYCLIST_getInstance() {
3019
- PointFieldCategory_initEntries();
3258
+ static_init_2();
3020
3259
  return PointFieldCategory_POWER_CYCLIST_instance;
3021
3260
  }
3022
3261
  function PointFieldCategory_POWER_POST_getInstance() {
3023
- PointFieldCategory_initEntries();
3262
+ static_init_2();
3024
3263
  return PointFieldCategory_POWER_POST_instance;
3025
3264
  }
3026
3265
  function PointFieldCategory_SPEED_getInstance() {
3027
- PointFieldCategory_initEntries();
3266
+ static_init_2();
3028
3267
  return PointFieldCategory_SPEED_instance;
3029
3268
  }
3030
3269
  function PointFieldCategory_ENVIRONMENTAL_getInstance() {
3031
- PointFieldCategory_initEntries();
3270
+ static_init_2();
3032
3271
  return PointFieldCategory_ENVIRONMENTAL_instance;
3033
3272
  }
3034
3273
  function PointFieldCategory_PHYSIOLOGICAL_getInstance() {
3035
- PointFieldCategory_initEntries();
3274
+ static_init_2();
3036
3275
  return PointFieldCategory_PHYSIOLOGICAL_instance;
3037
3276
  }
3038
3277
  function Copy(sourceIndex) {
3039
- this.l1w_1 = sourceIndex;
3278
+ this.sourceIndex_1 = sourceIndex;
3040
3279
  }
3041
3280
  protoOf(Copy).toString = function () {
3042
- return 'Copy(sourceIndex=' + this.l1w_1 + ')';
3281
+ return 'Copy(sourceIndex=' + this.sourceIndex_1 + ')';
3043
3282
  };
3044
3283
  protoOf(Copy).hashCode = function () {
3045
- return this.l1w_1;
3284
+ return this.sourceIndex_1;
3046
3285
  };
3047
3286
  protoOf(Copy).equals = function (other) {
3048
3287
  if (this === other)
3049
3288
  return true;
3050
3289
  if (!(other instanceof Copy))
3051
3290
  return false;
3052
- if (!(this.l1w_1 === other.l1w_1))
3291
+ if (!(this.sourceIndex_1 === other.sourceIndex_1))
3053
3292
  return false;
3054
3293
  return true;
3055
3294
  };
3056
3295
  function Interpolate(from, to, coef) {
3057
- this.m1w_1 = from;
3058
- this.n1w_1 = to;
3059
- this.o1w_1 = coef;
3296
+ this.from_1 = from;
3297
+ this.to_1 = to;
3298
+ this.coef_1 = coef;
3060
3299
  }
3061
3300
  protoOf(Interpolate).toString = function () {
3062
- return 'Interpolate(from=' + this.m1w_1 + ', to=' + this.n1w_1 + ', coef=' + this.o1w_1 + ')';
3301
+ return 'Interpolate(from=' + this.from_1 + ', to=' + this.to_1 + ', coef=' + this.coef_1 + ')';
3063
3302
  };
3064
3303
  protoOf(Interpolate).hashCode = function () {
3065
- var result = this.m1w_1;
3066
- result = imul(result, 31) + this.n1w_1 | 0;
3067
- result = imul(result, 31) + getNumberHashCode(this.o1w_1) | 0;
3304
+ var result = this.from_1;
3305
+ result = imul(result, 31) + this.to_1 | 0;
3306
+ result = imul(result, 31) + getNumberHashCode(this.coef_1) | 0;
3068
3307
  return result;
3069
3308
  };
3070
3309
  protoOf(Interpolate).equals = function (other) {
@@ -3072,35 +3311,35 @@
3072
3311
  return true;
3073
3312
  if (!(other instanceof Interpolate))
3074
3313
  return false;
3075
- if (!(this.m1w_1 === other.m1w_1))
3314
+ if (!(this.from_1 === other.from_1))
3076
3315
  return false;
3077
- if (!(this.n1w_1 === other.n1w_1))
3316
+ if (!(this.to_1 === other.to_1))
3078
3317
  return false;
3079
- if (!equals(this.o1w_1, other.o1w_1))
3318
+ if (!equals(this.coef_1, other.coef_1))
3080
3319
  return false;
3081
3320
  return true;
3082
3321
  };
3083
3322
  function buildPlan($this, source, minDistanceM, maxDistanceM) {
3084
- var n = source.u1q_1;
3323
+ var n = source.size_1;
3085
3324
  var plan = ArrayList_init_$Create$_0(n);
3086
3325
  // Inline function 'kotlin.collections.plusAssign' call
3087
3326
  var element = new Copy(0);
3088
- plan.h(element);
3089
- var lastAddedDistance = source.k1u(0);
3327
+ plan.add_utx5q5_k$(element);
3328
+ var lastAddedDistance = source.distance_5s4s77_k$(0);
3090
3329
  var lastAddedIndex = 0;
3091
3330
  var inductionVariable = 1;
3092
3331
  if (inductionVariable < n)
3093
3332
  $l$loop: do {
3094
3333
  var i = inductionVariable;
3095
3334
  inductionVariable = inductionVariable + 1 | 0;
3096
- var curDist = source.k1u(i);
3335
+ var curDist = source.distance_5s4s77_k$(i);
3097
3336
  var gap = curDist - lastAddedDistance;
3098
3337
  if (gap < minDistanceM)
3099
3338
  continue $l$loop;
3100
3339
  else if (gap <= maxDistanceM) {
3101
3340
  // Inline function 'kotlin.collections.plusAssign' call
3102
3341
  var element_0 = new Copy(i);
3103
- plan.h(element_0);
3342
+ plan.add_utx5q5_k$(element_0);
3104
3343
  lastAddedDistance = curDist;
3105
3344
  lastAddedIndex = i;
3106
3345
  } else {
@@ -3116,20 +3355,20 @@
3116
3355
  var j = inductionVariable_0;
3117
3356
  inductionVariable_0 = inductionVariable_0 + 1 | 0;
3118
3357
  var targetDistance = lastAddedDistance + j * spacing;
3119
- while (index1 < (i - 1 | 0) && source.k1u(index1 + 1 | 0) < targetDistance) {
3358
+ while (index1 < (i - 1 | 0) && source.distance_5s4s77_k$(index1 + 1 | 0) < targetDistance) {
3120
3359
  index1 = index1 + 1 | 0;
3121
3360
  }
3122
- var dist1 = source.k1u(index1);
3123
- var dist2 = source.k1u(index1 + 1 | 0);
3361
+ var dist1 = source.distance_5s4s77_k$(index1);
3362
+ var dist2 = source.distance_5s4s77_k$(index1 + 1 | 0);
3124
3363
  var coef = (targetDistance - dist1) / (dist2 - dist1);
3125
3364
  // Inline function 'kotlin.collections.plusAssign' call
3126
3365
  var element_1 = new Interpolate(index1, index1 + 1 | 0, coef);
3127
- plan.h(element_1);
3366
+ plan.add_utx5q5_k$(element_1);
3128
3367
  }
3129
3368
  while (inductionVariable_0 < numSegments);
3130
3369
  // Inline function 'kotlin.collections.plusAssign' call
3131
3370
  var element_2 = new Copy(i);
3132
- plan.h(element_2);
3371
+ plan.add_utx5q5_k$(element_2);
3133
3372
  lastAddedDistance = curDist;
3134
3373
  lastAddedIndex = i;
3135
3374
  }
@@ -3138,60 +3377,60 @@
3138
3377
  return plan;
3139
3378
  }
3140
3379
  function materialize($this, source, plan) {
3141
- var out = new Path(plan.l());
3142
- var iterator = plan.i();
3380
+ var out = new Path(plan.get_size_woubt6_k$());
3381
+ var iterator = plan.iterator_jk1svi_k$();
3143
3382
  var index = 0;
3144
- while (iterator.j()) {
3383
+ while (iterator.hasNext_bitz1p_k$()) {
3145
3384
  var dstIdx = index;
3146
3385
  index = index + 1 | 0;
3147
- var op = iterator.k();
3386
+ var op = iterator.next_20eer_k$();
3148
3387
  if (op instanceof Copy) {
3149
- copyFields($this, source, op.l1w_1, out, dstIdx);
3388
+ copyFields($this, source, op.sourceIndex_1, out, dstIdx);
3150
3389
  } else {
3151
3390
  if (op instanceof Interpolate) {
3152
- interpolateFields($this, source, op.m1w_1, op.n1w_1, op.o1w_1, out, dstIdx);
3391
+ interpolateFields($this, source, op.from_1, op.to_1, op.coef_1, out, dstIdx);
3153
3392
  } else {
3154
3393
  noWhenBranchMatchedException();
3155
3394
  }
3156
3395
  }
3157
3396
  }
3158
- out.e1s();
3397
+ out.computeDerivedData_uoxpeo_k$();
3159
3398
  return out;
3160
3399
  }
3161
3400
  function copyFields($this, src, srcIdx, dst, dstIdx) {
3162
- var _iterator__ex2g4s = get_entries().i();
3163
- while (_iterator__ex2g4s.j()) {
3164
- var field = _iterator__ex2g4s.k();
3165
- dst.t1t(dstIdx, field, src.m1t(srcIdx, field));
3401
+ var _iterator__ex2g4s = get_entries_0().iterator_jk1svi_k$();
3402
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
3403
+ var field = _iterator__ex2g4s.next_20eer_k$();
3404
+ dst.set_b3ze83_k$(dstIdx, field, src.get_z3le6l_k$(srcIdx, field));
3166
3405
  }
3167
3406
  }
3168
3407
  function interpolateFields($this, src, i1, i2, coef, dst, dstIdx) {
3169
- var _iterator__ex2g4s = get_entries().i();
3170
- while (_iterator__ex2g4s.j()) {
3171
- var field = _iterator__ex2g4s.k();
3172
- var v1 = src.m1t(i1, field);
3173
- var v2 = src.m1t(i2, field);
3408
+ var _iterator__ex2g4s = get_entries_0().iterator_jk1svi_k$();
3409
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
3410
+ var field = _iterator__ex2g4s.next_20eer_k$();
3411
+ var v1 = src.get_z3le6l_k$(i1, field);
3412
+ var v2 = src.get_z3le6l_k$(i2, field);
3174
3413
  var v = isNaN_0(v1) || isNaN_0(v2) ? NaN : v1 + (v2 - v1) * coef;
3175
- dst.t1t(dstIdx, field, v);
3414
+ dst.set_b3ze83_k$(dstIdx, field, v);
3176
3415
  }
3177
3416
  }
3178
3417
  function PointPerDistance() {
3179
3418
  }
3180
- protoOf(PointPerDistance).p1w = function (source, minDistanceM, maxDistanceM) {
3181
- return this.q1w(source, minDistanceM, maxDistanceM);
3419
+ protoOf(PointPerDistance).compute_7vlifv_k$ = function (source, minDistanceM, maxDistanceM) {
3420
+ return this.computeOnePointPerDistance_q378hr_k$(source, minDistanceM, maxDistanceM);
3182
3421
  };
3183
- protoOf(PointPerDistance).q1w = function (source, minDistanceM, maxDistanceM) {
3422
+ protoOf(PointPerDistance).computeOnePointPerDistance_q378hr_k$ = function (source, minDistanceM, maxDistanceM) {
3184
3423
  // Inline function 'kotlin.require' call
3185
3424
  if (!(maxDistanceM > 0.0)) {
3186
3425
  var message = 'maxDistanceM must be > 0, got ' + maxDistanceM;
3187
3426
  throw IllegalArgumentException_init_$Create$_0(toString_0(message));
3188
3427
  }
3189
- if (source.u1q_1 === 0)
3428
+ if (source.size_1 === 0)
3190
3429
  return new Path(0);
3191
- if (source.u1q_1 === 1) {
3430
+ if (source.size_1 === 1) {
3192
3431
  var out = new Path(1);
3193
3432
  copyFields(this, source, 0, out, 0);
3194
- out.e1s();
3433
+ out.computeDerivedData_uoxpeo_k$();
3195
3434
  return out;
3196
3435
  }
3197
3436
  var plan = buildPlan(this, source, minDistanceM, maxDistanceM);
@@ -3202,35 +3441,35 @@
3202
3441
  return PointPerDistance_instance;
3203
3442
  }
3204
3443
  function Copy_0(sourceIndex) {
3205
- this.r1w_1 = sourceIndex;
3444
+ this.sourceIndex_1 = sourceIndex;
3206
3445
  }
3207
3446
  protoOf(Copy_0).toString = function () {
3208
- return 'Copy(sourceIndex=' + this.r1w_1 + ')';
3447
+ return 'Copy(sourceIndex=' + this.sourceIndex_1 + ')';
3209
3448
  };
3210
3449
  protoOf(Copy_0).hashCode = function () {
3211
- return this.r1w_1;
3450
+ return this.sourceIndex_1;
3212
3451
  };
3213
3452
  protoOf(Copy_0).equals = function (other) {
3214
3453
  if (this === other)
3215
3454
  return true;
3216
3455
  if (!(other instanceof Copy_0))
3217
3456
  return false;
3218
- if (!(this.r1w_1 === other.r1w_1))
3457
+ if (!(this.sourceIndex_1 === other.sourceIndex_1))
3219
3458
  return false;
3220
3459
  return true;
3221
3460
  };
3222
3461
  function Interpolate_0(from, to, coef) {
3223
- this.s1w_1 = from;
3224
- this.t1w_1 = to;
3225
- this.u1w_1 = coef;
3462
+ this.from_1 = from;
3463
+ this.to_1 = to;
3464
+ this.coef_1 = coef;
3226
3465
  }
3227
3466
  protoOf(Interpolate_0).toString = function () {
3228
- return 'Interpolate(from=' + this.s1w_1 + ', to=' + this.t1w_1 + ', coef=' + this.u1w_1 + ')';
3467
+ return 'Interpolate(from=' + this.from_1 + ', to=' + this.to_1 + ', coef=' + this.coef_1 + ')';
3229
3468
  };
3230
3469
  protoOf(Interpolate_0).hashCode = function () {
3231
- var result = this.s1w_1;
3232
- result = imul(result, 31) + this.t1w_1 | 0;
3233
- result = imul(result, 31) + getNumberHashCode(this.u1w_1) | 0;
3470
+ var result = this.from_1;
3471
+ result = imul(result, 31) + this.to_1 | 0;
3472
+ result = imul(result, 31) + getNumberHashCode(this.coef_1) | 0;
3234
3473
  return result;
3235
3474
  };
3236
3475
  protoOf(Interpolate_0).equals = function (other) {
@@ -3238,23 +3477,23 @@
3238
3477
  return true;
3239
3478
  if (!(other instanceof Interpolate_0))
3240
3479
  return false;
3241
- if (!(this.s1w_1 === other.s1w_1))
3480
+ if (!(this.from_1 === other.from_1))
3242
3481
  return false;
3243
- if (!(this.t1w_1 === other.t1w_1))
3482
+ if (!(this.to_1 === other.to_1))
3244
3483
  return false;
3245
- if (!equals(this.u1w_1, other.u1w_1))
3484
+ if (!equals(this.coef_1, other.coef_1))
3246
3485
  return false;
3247
3486
  return true;
3248
3487
  };
3249
3488
  function buildPlan_0($this, source) {
3250
3489
  var plan = LinkedHashMap_init_$Create$_0();
3251
- var n = source.u1q_1;
3490
+ var n = source.size_1;
3252
3491
  var inductionVariable = 0;
3253
3492
  if (inductionVariable < n)
3254
3493
  $l$loop_0: do {
3255
3494
  var i = inductionVariable;
3256
3495
  inductionVariable = inductionVariable + 1 | 0;
3257
- var time1 = source.z1q(i);
3496
+ var time1 = source.time_ryc845_k$(i);
3258
3497
  // Inline function 'kotlin.math.floor' call
3259
3498
  var x = time1 / 1000.0;
3260
3499
  var tmp$ret$0 = Math.floor(x);
@@ -3263,18 +3502,18 @@
3263
3502
  if (i === 0 && !equalsLong(msInSec1, new Long(0, 0))) {
3264
3503
  // Inline function 'kotlin.collections.set' call
3265
3504
  var value = new Copy_0(i);
3266
- plan.c3(epoch1, value);
3505
+ plan.put_4fpzoq_k$(epoch1, value);
3267
3506
  }
3268
3507
  if (i === (n - 1 | 0)) {
3269
3508
  if (!equalsLong(msInSec1, new Long(0, 0))) {
3270
3509
  var tmp2 = add(epoch1, new Long(1, 0));
3271
3510
  // Inline function 'kotlin.collections.set' call
3272
3511
  var value_0 = new Copy_0(i);
3273
- plan.c3(tmp2, value_0);
3512
+ plan.put_4fpzoq_k$(tmp2, value_0);
3274
3513
  }
3275
3514
  continue $l$loop_0;
3276
3515
  }
3277
- var time2 = source.z1q(i + 1 | 0);
3516
+ var time2 = source.time_ryc845_k$(i + 1 | 0);
3278
3517
  // Inline function 'kotlin.math.floor' call
3279
3518
  var x_0 = time2 / 1000.0;
3280
3519
  var tmp$ret$3 = Math.floor(x_0);
@@ -3293,7 +3532,7 @@
3293
3532
  var tmp2_0 = e;
3294
3533
  // Inline function 'kotlin.collections.set' call
3295
3534
  var value_1 = new Interpolate_0(i, i + 1 | 0, coef);
3296
- plan.c3(tmp2_0, value_1);
3535
+ plan.put_4fpzoq_k$(tmp2_0, value_1);
3297
3536
  var _unary__edvuaz = e;
3298
3537
  e = add(_unary__edvuaz, get_ONE());
3299
3538
  }
@@ -3302,15 +3541,15 @@
3302
3541
  return plan;
3303
3542
  }
3304
3543
  function materialize_0($this, source, plan) {
3305
- var sortedEpochs = sorted(plan.l1());
3306
- var out = new Path(sortedEpochs.l());
3307
- var iterator = sortedEpochs.i();
3544
+ var sortedEpochs = sorted(plan.get_keys_wop4xp_k$());
3545
+ var out = new Path(sortedEpochs.get_size_woubt6_k$());
3546
+ var iterator = sortedEpochs.iterator_jk1svi_k$();
3308
3547
  var index = 0;
3309
- $l$loop: while (iterator.j()) {
3548
+ $l$loop: while (iterator.hasNext_bitz1p_k$()) {
3310
3549
  var idx = index;
3311
3550
  index = index + 1 | 0;
3312
- var epoch = iterator.k();
3313
- var tmp0_elvis_lhs = plan.k1(epoch);
3551
+ var epoch = iterator.next_20eer_k$();
3552
+ var tmp0_elvis_lhs = plan.get_wei43m_k$(epoch);
3314
3553
  var tmp;
3315
3554
  if (tmp0_elvis_lhs == null) {
3316
3555
  continue $l$loop;
@@ -3319,40 +3558,40 @@
3319
3558
  }
3320
3559
  var data = tmp;
3321
3560
  if (data instanceof Copy_0) {
3322
- copyFields_0($this, source, data.r1w_1, out, idx);
3561
+ copyFields_0($this, source, data.sourceIndex_1, out, idx);
3323
3562
  } else {
3324
3563
  if (data instanceof Interpolate_0) {
3325
- interpolateFields_0($this, source, data.s1w_1, data.t1w_1, data.u1w_1, out, idx);
3564
+ interpolateFields_0($this, source, data.from_1, data.to_1, data.coef_1, out, idx);
3326
3565
  } else {
3327
3566
  noWhenBranchMatchedException();
3328
3567
  }
3329
3568
  }
3330
- out.q1r(idx, toNumber(multiply(epoch, new Long(1000, 0))));
3569
+ out.setTime_rfmvcd_k$(idx, toNumber(multiply(epoch, new Long(1000, 0))));
3331
3570
  }
3332
- out.e1s();
3571
+ out.computeDerivedData_uoxpeo_k$();
3333
3572
  return out;
3334
3573
  }
3335
3574
  function copyFields_0($this, src, srcIdx, dst, dstIdx) {
3336
- var _iterator__ex2g4s = get_entries().i();
3337
- while (_iterator__ex2g4s.j()) {
3338
- var field = _iterator__ex2g4s.k();
3339
- dst.t1t(dstIdx, field, src.m1t(srcIdx, field));
3575
+ var _iterator__ex2g4s = get_entries_0().iterator_jk1svi_k$();
3576
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
3577
+ var field = _iterator__ex2g4s.next_20eer_k$();
3578
+ dst.set_b3ze83_k$(dstIdx, field, src.get_z3le6l_k$(srcIdx, field));
3340
3579
  }
3341
3580
  }
3342
3581
  function interpolateFields_0($this, src, i1, i2, coef, dst, dstIdx) {
3343
- var _iterator__ex2g4s = get_entries().i();
3344
- while (_iterator__ex2g4s.j()) {
3345
- var field = _iterator__ex2g4s.k();
3346
- var v1 = src.m1t(i1, field);
3347
- var v2 = src.m1t(i2, field);
3582
+ var _iterator__ex2g4s = get_entries_0().iterator_jk1svi_k$();
3583
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
3584
+ var field = _iterator__ex2g4s.next_20eer_k$();
3585
+ var v1 = src.get_z3le6l_k$(i1, field);
3586
+ var v2 = src.get_z3le6l_k$(i2, field);
3348
3587
  var v = isNaN_0(v1) || isNaN_0(v2) ? NaN : v1 + (v2 - v1) * coef;
3349
- dst.t1t(dstIdx, field, v);
3588
+ dst.set_b3ze83_k$(dstIdx, field, v);
3350
3589
  }
3351
3590
  }
3352
3591
  function PointPerSecond() {
3353
3592
  }
3354
- protoOf(PointPerSecond).v1w = function (source) {
3355
- if (source.u1q_1 === 0)
3593
+ protoOf(PointPerSecond).computeOnePointPerSecond_7sah9a_k$ = function (source) {
3594
+ if (source.size_1 === 0)
3356
3595
  return new Path(0);
3357
3596
  var plan = buildPlan_0(this, source);
3358
3597
  return materialize_0(this, source, plan);
@@ -3362,38 +3601,40 @@
3362
3601
  return PointPerSecond_instance;
3363
3602
  }
3364
3603
  //region block: init
3365
- Companion_instance = new Companion();
3604
+ Companion_instance_0 = new Companion();
3366
3605
  GpxParser_instance = new GpxParser();
3367
3606
  GpxWriter_instance = new GpxWriter();
3368
3607
  CsvWriter_instance = new CsvWriter();
3369
3608
  JsonWriter_instance = new JsonWriter();
3370
3609
  ElevationStep_instance = new ElevationStep();
3371
- Companion_instance_1 = new Companion_1();
3610
+ Companion_instance_2 = new Companion_1();
3372
3611
  PathSimplifier_instance = new PathSimplifier();
3373
3612
  PointPerDistance_instance = new PointPerDistance();
3374
3613
  PointPerSecond_instance = new PointPerSecond();
3375
3614
  //endregion
3376
3615
  //region block: exports
3377
3616
  _.$_$ = _.$_$ || {};
3378
- _.$_$.a = GpxParser_instance;
3379
- _.$_$.b = GpxWriter_instance;
3380
- _.$_$.c = CsvWriter_instance;
3381
- _.$_$.d = JsonWriter_instance;
3382
- _.$_$.e = ElevationStep_instance;
3383
- _.$_$.f = PathSimplifier_instance;
3384
- _.$_$.g = Companion_getInstance_3;
3385
- _.$_$.h = PointPerDistance_instance;
3386
- _.$_$.i = PointPerSecond_instance;
3387
- _.$_$.j = PointField_TEMPERATURE_getInstance;
3388
- _.$_$.k = GpxWaypoint;
3389
- _.$_$.l = firstTrackAsPath;
3390
- _.$_$.m = segmentsAsPaths;
3391
- _.$_$.n = toGpxDocument;
3392
- _.$_$.o = tracksAsPaths;
3393
- _.$_$.p = CsvOptions;
3394
- _.$_$.q = JsonOptions;
3395
- _.$_$.r = Path;
3396
- _.$_$.s = get_entries;
3617
+ _.$_$.a = GpxPathKind_ROUTE_getInstance;
3618
+ _.$_$.b = GpxPathKind_TRACK_getInstance;
3619
+ _.$_$.c = PointField_TEMPERATURE_getInstance;
3620
+ _.$_$.d = GpxParser_instance;
3621
+ _.$_$.e = GpxWriter_instance;
3622
+ _.$_$.f = CsvWriter_instance;
3623
+ _.$_$.g = JsonWriter_instance;
3624
+ _.$_$.h = ElevationStep_instance;
3625
+ _.$_$.i = PathSimplifier_instance;
3626
+ _.$_$.j = Companion_getInstance_3;
3627
+ _.$_$.k = PointPerDistance_instance;
3628
+ _.$_$.l = PointPerSecond_instance;
3629
+ _.$_$.m = GpxWaypoint;
3630
+ _.$_$.n = firstTrackAsPath;
3631
+ _.$_$.o = segmentsAsPaths;
3632
+ _.$_$.p = toGpxDocument;
3633
+ _.$_$.q = tracksAsPaths;
3634
+ _.$_$.r = CsvOptions;
3635
+ _.$_$.s = JsonOptions;
3636
+ _.$_$.t = Path;
3637
+ _.$_$.u = get_entries_0;
3397
3638
  //endregion
3398
3639
  return _;
3399
3640
  }));