@guardian/feast-multiplatform-library 17.0.0 → 17.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/kotlin/feast-multiplatform-library-library.js +1350 -1352
- package/kotlin/feast-multiplatform-library-library.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +2074 -2205
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-atomicfu.js +8 -0
- package/kotlin/kotlinx-atomicfu.js.map +1 -0
- package/kotlin/kotlinx-coroutines-core.js +8 -0
- package/kotlin/kotlinx-coroutines-core.js.map +1 -0
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1892 -1902
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1632 -1631
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/package.json +1 -1
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
var getBooleanHashCode = kotlin_kotlin.$_$.z6;
|
|
10
10
|
var equals = kotlin_kotlin.$_$.y6;
|
|
11
11
|
var initMetadataForClass = kotlin_kotlin.$_$.e7;
|
|
12
|
-
var Regex_init_$Create$ = kotlin_kotlin.$_$.
|
|
12
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.k1;
|
|
13
13
|
var numberToInt = kotlin_kotlin.$_$.y7;
|
|
14
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
14
|
+
var Unit_instance = kotlin_kotlin.$_$.u;
|
|
15
15
|
var round = kotlin_kotlin.$_$.d8;
|
|
16
16
|
var replace = kotlin_kotlin.$_$.z8;
|
|
17
17
|
var initMetadataForObject = kotlin_kotlin.$_$.j7;
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
var noWhenBranchMatchedException = kotlin_kotlin.$_$.cb;
|
|
21
21
|
var isBlank = kotlin_kotlin.$_$.w8;
|
|
22
22
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.d4;
|
|
23
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
24
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
23
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
24
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.w1;
|
|
25
25
|
var charArrayOf = kotlin_kotlin.$_$.s6;
|
|
26
26
|
var indexOfAny = kotlin_kotlin.$_$.t8;
|
|
27
27
|
var THROW_CCE = kotlin_kotlin.$_$.ia;
|
|
@@ -31,26 +31,26 @@
|
|
|
31
31
|
var to = kotlin_kotlin.$_$.gb;
|
|
32
32
|
var take = kotlin_kotlin.$_$.g9;
|
|
33
33
|
var drop = kotlin_kotlin.$_$.r8;
|
|
34
|
-
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.
|
|
35
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
36
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
37
|
-
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.
|
|
38
|
-
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
34
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.d2;
|
|
35
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.a2;
|
|
36
|
+
var Companion_instance = kotlin_kotlin.$_$.p;
|
|
37
|
+
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.c2;
|
|
38
|
+
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m;
|
|
39
39
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o1;
|
|
40
40
|
var JsonElementSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
41
|
-
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.
|
|
41
|
+
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.v;
|
|
42
42
|
var lazy = kotlin_kotlin.$_$.ab;
|
|
43
43
|
var initMetadataForCompanion = kotlin_kotlin.$_$.f7;
|
|
44
44
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u1;
|
|
45
|
-
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
45
|
+
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o;
|
|
46
46
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q1;
|
|
47
47
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r1;
|
|
48
48
|
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y1;
|
|
49
49
|
var objectCreate = kotlin_kotlin.$_$.z7;
|
|
50
50
|
var getStringHashCode = kotlin_kotlin.$_$.c7;
|
|
51
51
|
var hashCode = kotlin_kotlin.$_$.d7;
|
|
52
|
-
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
53
|
-
var FloatSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
52
|
+
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l;
|
|
53
|
+
var FloatSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k;
|
|
54
54
|
var Default_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
55
55
|
var getKClass = kotlin_kotlin.$_$.m8;
|
|
56
56
|
var arrayOf = kotlin_kotlin.$_$.ta;
|
|
@@ -63,17 +63,17 @@
|
|
|
63
63
|
var get_float = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.d;
|
|
64
64
|
var mapCapacity = kotlin_kotlin.$_$.f5;
|
|
65
65
|
var coerceAtLeast = kotlin_kotlin.$_$.f8;
|
|
66
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
67
|
-
var Exception_init_$Create$ = kotlin_kotlin.$_$.
|
|
66
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.f1;
|
|
67
|
+
var Exception_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
68
68
|
var createFailure = kotlin_kotlin.$_$.va;
|
|
69
69
|
var IndexOutOfBoundsException = kotlin_kotlin.$_$.ea;
|
|
70
70
|
var ClassCastException = kotlin_kotlin.$_$.y9;
|
|
71
71
|
var IllegalArgumentException = kotlin_kotlin.$_$.da;
|
|
72
72
|
var SerializationException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
|
|
73
73
|
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
|
|
74
|
-
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
75
|
-
var DoubleSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
76
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
74
|
+
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i;
|
|
75
|
+
var DoubleSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j;
|
|
76
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.x;
|
|
77
77
|
var substring = kotlin_kotlin.$_$.f9;
|
|
78
78
|
var charSequenceLength = kotlin_kotlin.$_$.w6;
|
|
79
79
|
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.f;
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
var emptySet = kotlin_kotlin.$_$.t4;
|
|
91
91
|
var listOf_0 = kotlin_kotlin.$_$.d5;
|
|
92
92
|
var contains = kotlin_kotlin.$_$.e4;
|
|
93
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
93
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.q1;
|
|
94
94
|
var throwOnFailure = kotlin_kotlin.$_$.eb;
|
|
95
95
|
//endregion
|
|
96
96
|
//region block: pre-declaration
|
|
@@ -153,29 +153,29 @@
|
|
|
153
153
|
max = max === VOID ? null : max;
|
|
154
154
|
unit = unit === VOID ? null : unit;
|
|
155
155
|
usCust = usCust === VOID ? null : usCust;
|
|
156
|
-
this.
|
|
157
|
-
this.
|
|
158
|
-
this.
|
|
159
|
-
this.
|
|
156
|
+
this.x1c_1 = min;
|
|
157
|
+
this.y1c_1 = max;
|
|
158
|
+
this.z1c_1 = unit;
|
|
159
|
+
this.a1d_1 = usCust;
|
|
160
160
|
}
|
|
161
|
-
protoOf(Amount).
|
|
161
|
+
protoOf(Amount).b1d = function (min, max, unit, usCust) {
|
|
162
162
|
return new Amount(min, max, unit, usCust);
|
|
163
163
|
};
|
|
164
|
-
protoOf(Amount).
|
|
165
|
-
min = min === VOID ? this.
|
|
166
|
-
max = max === VOID ? this.
|
|
167
|
-
unit = unit === VOID ? this.
|
|
168
|
-
usCust = usCust === VOID ? this.
|
|
169
|
-
return $super === VOID ? this.
|
|
164
|
+
protoOf(Amount).c1d = function (min, max, unit, usCust, $super) {
|
|
165
|
+
min = min === VOID ? this.x1c_1 : min;
|
|
166
|
+
max = max === VOID ? this.y1c_1 : max;
|
|
167
|
+
unit = unit === VOID ? this.z1c_1 : unit;
|
|
168
|
+
usCust = usCust === VOID ? this.a1d_1 : usCust;
|
|
169
|
+
return $super === VOID ? this.b1d(min, max, unit, usCust) : $super.b1d.call(this, min, max, unit, usCust);
|
|
170
170
|
};
|
|
171
171
|
protoOf(Amount).toString = function () {
|
|
172
|
-
return 'Amount(min=' + this.
|
|
172
|
+
return 'Amount(min=' + this.x1c_1 + ', max=' + this.y1c_1 + ', unit=' + toString(this.z1c_1) + ', usCust=' + this.a1d_1 + ')';
|
|
173
173
|
};
|
|
174
174
|
protoOf(Amount).hashCode = function () {
|
|
175
|
-
var result = getNumberHashCode(this.
|
|
176
|
-
result = imul(result, 31) + (this.
|
|
177
|
-
result = imul(result, 31) + (this.
|
|
178
|
-
result = imul(result, 31) + (this.
|
|
175
|
+
var result = getNumberHashCode(this.x1c_1);
|
|
176
|
+
result = imul(result, 31) + (this.y1c_1 == null ? 0 : getNumberHashCode(this.y1c_1)) | 0;
|
|
177
|
+
result = imul(result, 31) + (this.z1c_1 == null ? 0 : this.z1c_1.hashCode()) | 0;
|
|
178
|
+
result = imul(result, 31) + (this.a1d_1 == null ? 0 : getBooleanHashCode(this.a1d_1)) | 0;
|
|
179
179
|
return result;
|
|
180
180
|
};
|
|
181
181
|
protoOf(Amount).equals = function (other) {
|
|
@@ -183,24 +183,24 @@
|
|
|
183
183
|
return true;
|
|
184
184
|
if (!(other instanceof Amount))
|
|
185
185
|
return false;
|
|
186
|
-
if (!equals(this.
|
|
186
|
+
if (!equals(this.x1c_1, other.x1c_1))
|
|
187
187
|
return false;
|
|
188
|
-
if (!equals(this.
|
|
188
|
+
if (!equals(this.y1c_1, other.y1c_1))
|
|
189
189
|
return false;
|
|
190
|
-
if (!equals(this.
|
|
190
|
+
if (!equals(this.z1c_1, other.z1c_1))
|
|
191
191
|
return false;
|
|
192
|
-
if (!(this.
|
|
192
|
+
if (!(this.a1d_1 == other.a1d_1))
|
|
193
193
|
return false;
|
|
194
194
|
return true;
|
|
195
195
|
};
|
|
196
196
|
function FormatUtils$applySmartPunctuation$lambda(matchResult) {
|
|
197
|
-
return '\u201C' + matchResult.sb().
|
|
197
|
+
return '\u201C' + matchResult.sb().z(2) + '\u201D';
|
|
198
198
|
}
|
|
199
199
|
function FormatUtils() {
|
|
200
200
|
FormatUtils_instance = this;
|
|
201
|
-
this.
|
|
201
|
+
this.d1d_1 = Regex_init_$Create$('(["])(.*?)(["])');
|
|
202
202
|
}
|
|
203
|
-
protoOf(FormatUtils).
|
|
203
|
+
protoOf(FormatUtils).e1d = function (number) {
|
|
204
204
|
if (number === 0.0)
|
|
205
205
|
return '0';
|
|
206
206
|
var integerPart = numberToInt(number);
|
|
@@ -208,9 +208,9 @@
|
|
|
208
208
|
var fractionalPart = number - integerPart;
|
|
209
209
|
return (0.0 <= fractionalPart ? fractionalPart <= 0.125 : false) ? integerPartStr : (0.125 <= fractionalPart ? fractionalPart <= 0.291667 : false) ? integerPartStr + '\xBC' : (0.291667 <= fractionalPart ? fractionalPart <= 0.416667 : false) ? integerPartStr + '\u2153' : (0.416667 <= fractionalPart ? fractionalPart <= 0.583333 : false) ? integerPartStr + '\xBD' : (0.583333 <= fractionalPart ? fractionalPart <= 0.708333 : false) ? integerPartStr + '\u2154' : (0.708333 <= fractionalPart ? fractionalPart <= 0.875 : false) ? integerPartStr + '\xBE' : '' + (integerPart + 1 | 0);
|
|
210
210
|
};
|
|
211
|
-
protoOf(FormatUtils).
|
|
211
|
+
protoOf(FormatUtils).f1d = function (number, decimals, fraction) {
|
|
212
212
|
if (fraction) {
|
|
213
|
-
return this.
|
|
213
|
+
return this.e1d(number);
|
|
214
214
|
} else {
|
|
215
215
|
var multiplier = 1.0;
|
|
216
216
|
// Inline function 'kotlin.repeat' call
|
|
@@ -232,8 +232,8 @@
|
|
|
232
232
|
return tmp;
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
|
-
protoOf(FormatUtils).
|
|
236
|
-
var withQuotes = this.
|
|
235
|
+
protoOf(FormatUtils).g1d = function (text) {
|
|
236
|
+
var withQuotes = this.d1d_1.xa(text, FormatUtils$applySmartPunctuation$lambda);
|
|
237
237
|
return replace(replace(withQuotes, "'", '\u2019'), ' - ', ' \u2013 ');
|
|
238
238
|
};
|
|
239
239
|
var FormatUtils_instance;
|
|
@@ -243,9 +243,9 @@
|
|
|
243
243
|
return FormatUtils_instance;
|
|
244
244
|
}
|
|
245
245
|
function TemplateSession(densityTable) {
|
|
246
|
-
this.
|
|
246
|
+
this.h1d_1 = densityTable;
|
|
247
247
|
}
|
|
248
|
-
protoOf(TemplateSession).
|
|
248
|
+
protoOf(TemplateSession).i1d = function (element) {
|
|
249
249
|
var tmp;
|
|
250
250
|
if (element.temperatureFanC == null) {
|
|
251
251
|
tmp = null;
|
|
@@ -283,11 +283,11 @@
|
|
|
283
283
|
tmp_5 = null;
|
|
284
284
|
} else {
|
|
285
285
|
// Inline function 'kotlin.let' call
|
|
286
|
-
tmp_5 = '/gas mark ' + FormatUtils_getInstance().
|
|
286
|
+
tmp_5 = '/gas mark ' + FormatUtils_getInstance().e1d(tmp3_safe_receiver);
|
|
287
287
|
}
|
|
288
288
|
return joinToString(listOfNotNull([tmp_2, fanTempC, tmp_4, tmp_5]), '');
|
|
289
289
|
};
|
|
290
|
-
protoOf(TemplateSession).
|
|
290
|
+
protoOf(TemplateSession).j1d = function (element, factor, measuringSystem) {
|
|
291
291
|
var tmp = !(element.min === element.max) ? element.max : null;
|
|
292
292
|
var tmp0_safe_receiver = element.unit;
|
|
293
293
|
var tmp_0;
|
|
@@ -295,7 +295,7 @@
|
|
|
295
295
|
tmp_0 = null;
|
|
296
296
|
} else {
|
|
297
297
|
// Inline function 'kotlin.let' call
|
|
298
|
-
tmp_0 = Units_getInstance().
|
|
298
|
+
tmp_0 = Units_getInstance().j1e(tmp0_safe_receiver);
|
|
299
299
|
}
|
|
300
300
|
var amount = new Amount(element.min, tmp, tmp_0, element.ingredient === 'butter' ? true : element.usCust);
|
|
301
301
|
var factorToUse = !element.scale ? 1.0 : factor;
|
|
@@ -305,7 +305,7 @@
|
|
|
305
305
|
tmp_1 = null;
|
|
306
306
|
} else {
|
|
307
307
|
// Inline function 'kotlin.let' call
|
|
308
|
-
tmp_1 = this.
|
|
308
|
+
tmp_1 = this.h1d_1.n1e(tmp1_safe_receiver);
|
|
309
309
|
}
|
|
310
310
|
var density = tmp_1;
|
|
311
311
|
var tmp_2;
|
|
@@ -315,40 +315,40 @@
|
|
|
315
315
|
tmp_2 = measuringSystem;
|
|
316
316
|
}
|
|
317
317
|
var targetSystem = tmp_2;
|
|
318
|
-
amount = UnitConversions_getInstance().
|
|
319
|
-
var tmp2_subject = amount.
|
|
320
|
-
var decimals = equals(tmp2_subject, Units_getInstance().
|
|
321
|
-
var tmp3_subject = amount.
|
|
322
|
-
var fraction = equals(tmp3_subject, Units_getInstance().
|
|
318
|
+
amount = UnitConversions_getInstance().x1e(amount, targetSystem, factorToUse, density);
|
|
319
|
+
var tmp2_subject = amount.z1c_1;
|
|
320
|
+
var decimals = equals(tmp2_subject, Units_getInstance().l1d_1) || (equals(tmp2_subject, Units_getInstance().p1d_1) || equals(tmp2_subject, Units_getInstance().c1e_1)) || (equals(tmp2_subject, Units_getInstance().u1d_1) || equals(tmp2_subject, Units_getInstance().s1d_1) || (equals(tmp2_subject, Units_getInstance().v1d_1) || equals(tmp2_subject, Units_getInstance().t1d_1))) ? 0 : equals(tmp2_subject, Units_getInstance().d1e_1) || equals(tmp2_subject, Units_getInstance().e1e_1) ? 1 : 1;
|
|
321
|
+
var tmp3_subject = amount.z1c_1;
|
|
322
|
+
var fraction = equals(tmp3_subject, Units_getInstance().q1d_1) || (equals(tmp3_subject, Units_getInstance().p1d_1) || equals(tmp3_subject, Units_getInstance().d1e_1)) || (equals(tmp3_subject, Units_getInstance().l1d_1) || (equals(tmp3_subject, Units_getInstance().m1d_1) || equals(tmp3_subject, Units_getInstance().c1e_1))) ? false : equals(tmp3_subject, Units_getInstance().s1d_1) || equals(tmp3_subject, Units_getInstance().t1d_1) || (equals(tmp3_subject, Units_getInstance().v1d_1) || equals(tmp3_subject, Units_getInstance().u1d_1)) ? amount.x1c_1 < 1.0 : true;
|
|
323
323
|
var tmp_3;
|
|
324
|
-
if (!(amount.
|
|
324
|
+
if (!(amount.z1c_1 == null)) {
|
|
325
325
|
var tmp_4;
|
|
326
|
-
var tmp0 = amount.
|
|
327
|
-
var tmp4_elvis_lhs = amount.
|
|
326
|
+
var tmp0 = amount.x1c_1;
|
|
327
|
+
var tmp4_elvis_lhs = amount.y1c_1;
|
|
328
328
|
// Inline function 'kotlin.math.max' call
|
|
329
|
-
var b = tmp4_elvis_lhs == null ? amount.
|
|
329
|
+
var b = tmp4_elvis_lhs == null ? amount.x1c_1 : tmp4_elvis_lhs;
|
|
330
330
|
if (Math.max(tmp0, b) > 1.1) {
|
|
331
|
-
tmp_4 = ' ' + amount.
|
|
331
|
+
tmp_4 = ' ' + amount.z1c_1.b1f_1;
|
|
332
332
|
} else {
|
|
333
|
-
tmp_4 = ' ' + amount.
|
|
333
|
+
tmp_4 = ' ' + amount.z1c_1.a1f_1;
|
|
334
334
|
}
|
|
335
335
|
tmp_3 = tmp_4;
|
|
336
336
|
} else {
|
|
337
337
|
tmp_3 = '';
|
|
338
338
|
}
|
|
339
339
|
var unitString = tmp_3;
|
|
340
|
-
var tmp_5 = FormatUtils_getInstance().
|
|
341
|
-
var tmp5_safe_receiver = amount.
|
|
340
|
+
var tmp_5 = FormatUtils_getInstance().f1d(amount.x1c_1, decimals, fraction);
|
|
341
|
+
var tmp5_safe_receiver = amount.y1c_1;
|
|
342
342
|
var tmp_6;
|
|
343
343
|
if (tmp5_safe_receiver == null) {
|
|
344
344
|
tmp_6 = null;
|
|
345
345
|
} else {
|
|
346
346
|
// Inline function 'kotlin.let' call
|
|
347
|
-
tmp_6 = '-' + FormatUtils_getInstance().
|
|
347
|
+
tmp_6 = '-' + FormatUtils_getInstance().f1d(tmp5_safe_receiver, decimals, fraction);
|
|
348
348
|
}
|
|
349
349
|
return joinToString(listOfNotNull([tmp_5, tmp_6, unitString]), '');
|
|
350
350
|
};
|
|
351
|
-
protoOf(TemplateSession).
|
|
351
|
+
protoOf(TemplateSession).f1f = function (element, factor, measuringSystem) {
|
|
352
352
|
var tmp;
|
|
353
353
|
if (element instanceof TemplateConst) {
|
|
354
354
|
tmp = element.value;
|
|
@@ -374,17 +374,17 @@
|
|
|
374
374
|
tmp_1 = tmp_3;
|
|
375
375
|
}
|
|
376
376
|
if (tmp_1) {
|
|
377
|
-
tmp_0 = this.
|
|
377
|
+
tmp_0 = this.j1d(element, factor, measuringSystem);
|
|
378
378
|
} else {
|
|
379
379
|
if (measuringSystem instanceof USCustomaryWithMetric) {
|
|
380
380
|
var tmp_4;
|
|
381
381
|
// Inline function 'kotlin.text.isNullOrBlank' call
|
|
382
382
|
var this_0 = element.unit;
|
|
383
383
|
if (this_0 == null || isBlank(this_0)) {
|
|
384
|
-
tmp_4 = this.
|
|
384
|
+
tmp_4 = this.j1d(element, factor, USCustomary_instance);
|
|
385
385
|
} else {
|
|
386
|
-
var cupsPart = this.
|
|
387
|
-
var metricPart = this.
|
|
386
|
+
var cupsPart = this.j1d(element, factor, USCustomary_instance);
|
|
387
|
+
var metricPart = this.j1d(element, factor, Metric_instance);
|
|
388
388
|
var tmp_5;
|
|
389
389
|
if (cupsPart === metricPart) {
|
|
390
390
|
tmp_5 = cupsPart;
|
|
@@ -400,10 +400,10 @@
|
|
|
400
400
|
// Inline function 'kotlin.text.isNullOrBlank' call
|
|
401
401
|
var this_1 = element.unit;
|
|
402
402
|
if (this_1 == null || isBlank(this_1)) {
|
|
403
|
-
tmp_6 = this.
|
|
403
|
+
tmp_6 = this.j1d(element, factor, USCustomary_instance);
|
|
404
404
|
} else {
|
|
405
|
-
var cupsPart_0 = this.
|
|
406
|
-
var imperialPart = this.
|
|
405
|
+
var cupsPart_0 = this.j1d(element, factor, USCustomary_instance);
|
|
406
|
+
var imperialPart = this.j1d(element, factor, Imperial_instance);
|
|
407
407
|
var tmp_7;
|
|
408
408
|
if (cupsPart_0 === imperialPart) {
|
|
409
409
|
tmp_7 = cupsPart_0;
|
|
@@ -421,22 +421,22 @@
|
|
|
421
421
|
tmp_8 = null;
|
|
422
422
|
} else {
|
|
423
423
|
// Inline function 'kotlin.let' call
|
|
424
|
-
tmp_8 = Units_getInstance().
|
|
424
|
+
tmp_8 = Units_getInstance().j1e(tmp2_safe_receiver);
|
|
425
425
|
}
|
|
426
426
|
var unit = tmp_8;
|
|
427
427
|
var tmp_9;
|
|
428
|
-
if (unit == null || equals(unit, Units_getInstance().
|
|
429
|
-
tmp_9 = this.
|
|
428
|
+
if (unit == null || equals(unit, Units_getInstance().s1d_1) || equals(unit, Units_getInstance().t1d_1) || equals(unit, Units_getInstance().u1d_1) || equals(unit, Units_getInstance().v1d_1)) {
|
|
429
|
+
tmp_9 = this.j1d(element, factor, USCustomary_instance);
|
|
430
430
|
} else {
|
|
431
|
-
var cupsPart_1 = this.
|
|
431
|
+
var cupsPart_1 = this.j1d(element, factor, USCustomary_instance);
|
|
432
432
|
var tmp_10;
|
|
433
|
-
if (equals(unit.
|
|
433
|
+
if (equals(unit.c1f_1, UnitType_VOLUME_getInstance())) {
|
|
434
434
|
tmp_10 = cupsPart_1;
|
|
435
435
|
} else {
|
|
436
|
-
tmp_10 = this.
|
|
436
|
+
tmp_10 = this.j1d(element, factor, Imperial_instance);
|
|
437
437
|
}
|
|
438
438
|
var imperialPart_0 = tmp_10;
|
|
439
|
-
var metricPart_0 = this.
|
|
439
|
+
var metricPart_0 = this.j1d(element, factor, Metric_instance);
|
|
440
440
|
var tmp_11;
|
|
441
441
|
if (cupsPart_1 === metricPart_0 && cupsPart_1 === imperialPart_0) {
|
|
442
442
|
tmp_11 = metricPart_0;
|
|
@@ -457,7 +457,7 @@
|
|
|
457
457
|
tmp = tmp_0;
|
|
458
458
|
} else {
|
|
459
459
|
if (element instanceof OvenTemperaturePlaceholder) {
|
|
460
|
-
tmp = this.
|
|
460
|
+
tmp = this.i1d(element);
|
|
461
461
|
} else {
|
|
462
462
|
noWhenBranchMatchedException();
|
|
463
463
|
}
|
|
@@ -465,22 +465,22 @@
|
|
|
465
465
|
}
|
|
466
466
|
return tmp;
|
|
467
467
|
};
|
|
468
|
-
protoOf(TemplateSession).
|
|
468
|
+
protoOf(TemplateSession).g1f = function (template, factor, measuringSystem) {
|
|
469
469
|
// Inline function 'kotlin.collections.map' call
|
|
470
|
-
var this_0 = template.
|
|
470
|
+
var this_0 = template.h1f_1;
|
|
471
471
|
// Inline function 'kotlin.collections.mapTo' call
|
|
472
472
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
473
|
-
var _iterator__ex2g4s = this_0.
|
|
474
|
-
while (_iterator__ex2g4s.
|
|
475
|
-
var item = _iterator__ex2g4s.
|
|
476
|
-
var tmp$ret$
|
|
477
|
-
destination.
|
|
473
|
+
var _iterator__ex2g4s = this_0.q();
|
|
474
|
+
while (_iterator__ex2g4s.r()) {
|
|
475
|
+
var item = _iterator__ex2g4s.s();
|
|
476
|
+
var tmp$ret$2 = this.f1f(item, factor, measuringSystem);
|
|
477
|
+
destination.u(tmp$ret$2);
|
|
478
478
|
}
|
|
479
479
|
var renderedParts = destination;
|
|
480
|
-
return FormatUtils_getInstance().
|
|
480
|
+
return FormatUtils_getInstance().g1d(joinToString(renderedParts, ''));
|
|
481
481
|
};
|
|
482
482
|
protoOf(TemplateSession).scaleAndConvertUnitRecipe = function (recipe, factor, measuringSystem) {
|
|
483
|
-
var tmp0_safe_receiver = recipe.
|
|
483
|
+
var tmp0_safe_receiver = recipe.u1f_1;
|
|
484
484
|
var tmp;
|
|
485
485
|
if (tmp0_safe_receiver == null) {
|
|
486
486
|
tmp = null;
|
|
@@ -488,10 +488,10 @@
|
|
|
488
488
|
// Inline function 'kotlin.collections.map' call
|
|
489
489
|
// Inline function 'kotlin.collections.mapTo' call
|
|
490
490
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_safe_receiver, 10));
|
|
491
|
-
var _iterator__ex2g4s = tmp0_safe_receiver.
|
|
492
|
-
while (_iterator__ex2g4s.
|
|
493
|
-
var item = _iterator__ex2g4s.
|
|
494
|
-
var tmp0_safe_receiver_0 = item.
|
|
491
|
+
var _iterator__ex2g4s = tmp0_safe_receiver.q();
|
|
492
|
+
while (_iterator__ex2g4s.r()) {
|
|
493
|
+
var item = _iterator__ex2g4s.s();
|
|
494
|
+
var tmp0_safe_receiver_0 = item.f1g_1;
|
|
495
495
|
var tmp_0;
|
|
496
496
|
if (tmp0_safe_receiver_0 == null) {
|
|
497
497
|
tmp_0 = null;
|
|
@@ -499,31 +499,31 @@
|
|
|
499
499
|
// Inline function 'kotlin.collections.map' call
|
|
500
500
|
// Inline function 'kotlin.collections.mapTo' call
|
|
501
501
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_safe_receiver_0, 10));
|
|
502
|
-
var _iterator__ex2g4s_0 = tmp0_safe_receiver_0.
|
|
503
|
-
while (_iterator__ex2g4s_0.
|
|
504
|
-
var item_0 = _iterator__ex2g4s_0.
|
|
505
|
-
var tmp0_safe_receiver_1 = item_0.
|
|
502
|
+
var _iterator__ex2g4s_0 = tmp0_safe_receiver_0.q();
|
|
503
|
+
while (_iterator__ex2g4s_0.r()) {
|
|
504
|
+
var item_0 = _iterator__ex2g4s_0.s();
|
|
505
|
+
var tmp0_safe_receiver_1 = item_0.n1g_1;
|
|
506
506
|
var tmp_1;
|
|
507
507
|
if (tmp0_safe_receiver_1 == null) {
|
|
508
508
|
tmp_1 = null;
|
|
509
509
|
} else {
|
|
510
510
|
// Inline function 'kotlin.let' call
|
|
511
|
-
tmp_1 = wrapWithStrongTag(this.
|
|
511
|
+
tmp_1 = wrapWithStrongTag(this.g1f(parseTemplate(tmp0_safe_receiver_1), factor, measuringSystem));
|
|
512
512
|
}
|
|
513
513
|
var tmp1_elvis_lhs = tmp_1;
|
|
514
|
-
var scaledText = tmp1_elvis_lhs == null ? item_0.
|
|
515
|
-
var tmp$ret$
|
|
516
|
-
destination_0.
|
|
514
|
+
var scaledText = tmp1_elvis_lhs == null ? item_0.o1g_1 : tmp1_elvis_lhs;
|
|
515
|
+
var tmp$ret$5 = item_0.q1g(VOID, VOID, VOID, VOID, VOID, VOID, VOID, scaledText);
|
|
516
|
+
destination_0.u(tmp$ret$5);
|
|
517
517
|
}
|
|
518
518
|
tmp_0 = destination_0;
|
|
519
519
|
}
|
|
520
|
-
var tmp$ret$
|
|
521
|
-
destination.
|
|
520
|
+
var tmp$ret$2 = new IngredientsList(tmp_0, item.g1g_1);
|
|
521
|
+
destination.u(tmp$ret$2);
|
|
522
522
|
}
|
|
523
523
|
tmp = destination;
|
|
524
524
|
}
|
|
525
525
|
var scaledIngredients = tmp;
|
|
526
|
-
var tmp1_safe_receiver = recipe.
|
|
526
|
+
var tmp1_safe_receiver = recipe.v1f_1;
|
|
527
527
|
var tmp_2;
|
|
528
528
|
if (tmp1_safe_receiver == null) {
|
|
529
529
|
tmp_2 = null;
|
|
@@ -531,25 +531,25 @@
|
|
|
531
531
|
// Inline function 'kotlin.collections.map' call
|
|
532
532
|
// Inline function 'kotlin.collections.mapTo' call
|
|
533
533
|
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp1_safe_receiver, 10));
|
|
534
|
-
var _iterator__ex2g4s_1 = tmp1_safe_receiver.
|
|
535
|
-
while (_iterator__ex2g4s_1.
|
|
536
|
-
var item_1 = _iterator__ex2g4s_1.
|
|
537
|
-
var tmp0_safe_receiver_2 = item_1.
|
|
534
|
+
var _iterator__ex2g4s_1 = tmp1_safe_receiver.q();
|
|
535
|
+
while (_iterator__ex2g4s_1.r()) {
|
|
536
|
+
var item_1 = _iterator__ex2g4s_1.s();
|
|
537
|
+
var tmp0_safe_receiver_2 = item_1.s1g_1;
|
|
538
538
|
var tmp_3;
|
|
539
539
|
if (tmp0_safe_receiver_2 == null) {
|
|
540
540
|
tmp_3 = null;
|
|
541
541
|
} else {
|
|
542
542
|
// Inline function 'kotlin.let' call
|
|
543
|
-
tmp_3 = this.
|
|
543
|
+
tmp_3 = this.g1f(parseTemplate(tmp0_safe_receiver_2), factor, measuringSystem);
|
|
544
544
|
}
|
|
545
545
|
var description = tmp_3;
|
|
546
|
-
var tmp$ret$10 = item_1.
|
|
547
|
-
destination_1.
|
|
546
|
+
var tmp$ret$10 = item_1.v1g(description == null ? item_1.r1g_1 : description);
|
|
547
|
+
destination_1.u(tmp$ret$10);
|
|
548
548
|
}
|
|
549
549
|
tmp_2 = destination_1;
|
|
550
550
|
}
|
|
551
551
|
var scaledInstructions = tmp_2;
|
|
552
|
-
return recipe.
|
|
552
|
+
return recipe.w1g(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, scaledIngredients, scaledInstructions);
|
|
553
553
|
};
|
|
554
554
|
function splitBeforeSuffix(value) {
|
|
555
555
|
// Inline function 'kotlin.charArrayOf' call
|
|
@@ -569,8 +569,8 @@
|
|
|
569
569
|
}
|
|
570
570
|
function wrapWithStrongTag(value) {
|
|
571
571
|
var _destruct__k2r9zo = splitBeforeSuffix(value);
|
|
572
|
-
var before = _destruct__k2r9zo.
|
|
573
|
-
var after = _destruct__k2r9zo.
|
|
572
|
+
var before = _destruct__k2r9zo.ed();
|
|
573
|
+
var after = _destruct__k2r9zo.fd();
|
|
574
574
|
// Inline function 'kotlin.text.orEmpty' call
|
|
575
575
|
return '<strong>' + before + '<\/strong>' + (after == null ? '' : after);
|
|
576
576
|
}
|
|
@@ -580,8 +580,7 @@
|
|
|
580
580
|
// Inline function 'kotlin.map' call
|
|
581
581
|
var tmp;
|
|
582
582
|
if (_Result___get_isSuccess__impl__sndoy8(densityTable)) {
|
|
583
|
-
var
|
|
584
|
-
var it = (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : THROW_CCE();
|
|
583
|
+
var it = _Result___get_value__impl__bjfvqg(densityTable);
|
|
585
584
|
// Inline function 'kotlin.Companion.success' call
|
|
586
585
|
var value = new TemplateSession(it);
|
|
587
586
|
tmp = _Result___init__impl__xyqfz8(value);
|
|
@@ -605,7 +604,7 @@
|
|
|
605
604
|
// Inline function 'kotlin.arrayOf' call
|
|
606
605
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
607
606
|
// Inline function 'kotlin.js.asDynamic' call
|
|
608
|
-
tmp.
|
|
607
|
+
tmp.x1g_1 = [null, tmp_1, lazy(tmp_2, TableSchema$Companion$$childSerializers$_anonymous__48gmsb_0)];
|
|
609
608
|
}
|
|
610
609
|
var Companion_instance_0;
|
|
611
610
|
function Companion_getInstance() {
|
|
@@ -616,75 +615,75 @@
|
|
|
616
615
|
function $serializer() {
|
|
617
616
|
$serializer_instance = this;
|
|
618
617
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.density.TableSchema', this, 3);
|
|
619
|
-
tmp0_serialDesc.
|
|
620
|
-
tmp0_serialDesc.
|
|
621
|
-
tmp0_serialDesc.
|
|
622
|
-
this.
|
|
623
|
-
}
|
|
624
|
-
protoOf($serializer).
|
|
625
|
-
var tmp0_desc = this.
|
|
626
|
-
var tmp1_output = encoder.
|
|
627
|
-
var tmp2_cached = Companion_getInstance().
|
|
628
|
-
tmp1_output.
|
|
629
|
-
tmp1_output.
|
|
630
|
-
tmp1_output.
|
|
631
|
-
tmp1_output.
|
|
632
|
-
};
|
|
633
|
-
protoOf($serializer).
|
|
634
|
-
return this.
|
|
635
|
-
};
|
|
636
|
-
protoOf($serializer).
|
|
637
|
-
var tmp0_desc = this.
|
|
618
|
+
tmp0_serialDesc.os('prepared_at', false);
|
|
619
|
+
tmp0_serialDesc.os('key', false);
|
|
620
|
+
tmp0_serialDesc.os('values', false);
|
|
621
|
+
this.y1g_1 = tmp0_serialDesc;
|
|
622
|
+
}
|
|
623
|
+
protoOf($serializer).z1g = function (encoder, value) {
|
|
624
|
+
var tmp0_desc = this.y1g_1;
|
|
625
|
+
var tmp1_output = encoder.fl(tmp0_desc);
|
|
626
|
+
var tmp2_cached = Companion_getInstance().x1g_1;
|
|
627
|
+
tmp1_output.tm(tmp0_desc, 0, value.a1h_1);
|
|
628
|
+
tmp1_output.vm(tmp0_desc, 1, tmp2_cached[1].f2(), value.b1h_1);
|
|
629
|
+
tmp1_output.vm(tmp0_desc, 2, tmp2_cached[2].f2(), value.c1h_1);
|
|
630
|
+
tmp1_output.gl(tmp0_desc);
|
|
631
|
+
};
|
|
632
|
+
protoOf($serializer).ii = function (encoder, value) {
|
|
633
|
+
return this.z1g(encoder, value instanceof TableSchema ? value : THROW_CCE());
|
|
634
|
+
};
|
|
635
|
+
protoOf($serializer).ji = function (decoder) {
|
|
636
|
+
var tmp0_desc = this.y1g_1;
|
|
638
637
|
var tmp1_flag = true;
|
|
639
638
|
var tmp2_index = 0;
|
|
640
639
|
var tmp3_bitMask0 = 0;
|
|
641
640
|
var tmp4_local0 = null;
|
|
642
641
|
var tmp5_local1 = null;
|
|
643
642
|
var tmp6_local2 = null;
|
|
644
|
-
var tmp7_input = decoder.
|
|
645
|
-
var tmp8_cached = Companion_getInstance().
|
|
646
|
-
if (tmp7_input.
|
|
647
|
-
tmp4_local0 = tmp7_input.
|
|
643
|
+
var tmp7_input = decoder.fl(tmp0_desc);
|
|
644
|
+
var tmp8_cached = Companion_getInstance().x1g_1;
|
|
645
|
+
if (tmp7_input.vl()) {
|
|
646
|
+
tmp4_local0 = tmp7_input.pl(tmp0_desc, 0);
|
|
648
647
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
649
|
-
tmp5_local1 = tmp7_input.
|
|
648
|
+
tmp5_local1 = tmp7_input.rl(tmp0_desc, 1, tmp8_cached[1].f2(), tmp5_local1);
|
|
650
649
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
651
|
-
tmp6_local2 = tmp7_input.
|
|
650
|
+
tmp6_local2 = tmp7_input.rl(tmp0_desc, 2, tmp8_cached[2].f2(), tmp6_local2);
|
|
652
651
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
653
652
|
} else
|
|
654
653
|
while (tmp1_flag) {
|
|
655
|
-
tmp2_index = tmp7_input.
|
|
654
|
+
tmp2_index = tmp7_input.wl(tmp0_desc);
|
|
656
655
|
switch (tmp2_index) {
|
|
657
656
|
case -1:
|
|
658
657
|
tmp1_flag = false;
|
|
659
658
|
break;
|
|
660
659
|
case 0:
|
|
661
|
-
tmp4_local0 = tmp7_input.
|
|
660
|
+
tmp4_local0 = tmp7_input.pl(tmp0_desc, 0);
|
|
662
661
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
663
662
|
break;
|
|
664
663
|
case 1:
|
|
665
|
-
tmp5_local1 = tmp7_input.
|
|
664
|
+
tmp5_local1 = tmp7_input.rl(tmp0_desc, 1, tmp8_cached[1].f2(), tmp5_local1);
|
|
666
665
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
667
666
|
break;
|
|
668
667
|
case 2:
|
|
669
|
-
tmp6_local2 = tmp7_input.
|
|
668
|
+
tmp6_local2 = tmp7_input.rl(tmp0_desc, 2, tmp8_cached[2].f2(), tmp6_local2);
|
|
670
669
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
671
670
|
break;
|
|
672
671
|
default:
|
|
673
672
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
674
673
|
}
|
|
675
674
|
}
|
|
676
|
-
tmp7_input.
|
|
675
|
+
tmp7_input.gl(tmp0_desc);
|
|
677
676
|
return TableSchema_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
678
677
|
};
|
|
679
|
-
protoOf($serializer).
|
|
680
|
-
return this.
|
|
678
|
+
protoOf($serializer).hi = function () {
|
|
679
|
+
return this.y1g_1;
|
|
681
680
|
};
|
|
682
|
-
protoOf($serializer).
|
|
683
|
-
var tmp0_cached = Companion_getInstance().
|
|
681
|
+
protoOf($serializer).qs = function () {
|
|
682
|
+
var tmp0_cached = Companion_getInstance().x1g_1;
|
|
684
683
|
// Inline function 'kotlin.arrayOf' call
|
|
685
684
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
686
685
|
// Inline function 'kotlin.js.asDynamic' call
|
|
687
|
-
return [StringSerializer_getInstance(), tmp0_cached[1].
|
|
686
|
+
return [StringSerializer_getInstance(), tmp0_cached[1].f2(), tmp0_cached[2].f2()];
|
|
688
687
|
};
|
|
689
688
|
var $serializer_instance;
|
|
690
689
|
function $serializer_getInstance() {
|
|
@@ -694,11 +693,11 @@
|
|
|
694
693
|
}
|
|
695
694
|
function TableSchema_init_$Init$(seen0, preparedAt, key, values, serializationConstructorMarker, $this) {
|
|
696
695
|
if (!(7 === (7 & seen0))) {
|
|
697
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance().
|
|
696
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance().y1g_1);
|
|
698
697
|
}
|
|
699
|
-
$this.
|
|
700
|
-
$this.
|
|
701
|
-
$this.
|
|
698
|
+
$this.a1h_1 = preparedAt;
|
|
699
|
+
$this.b1h_1 = key;
|
|
700
|
+
$this.c1h_1 = values;
|
|
702
701
|
return $this;
|
|
703
702
|
}
|
|
704
703
|
function TableSchema_init_$Create$(seen0, preparedAt, key, values, serializationConstructorMarker) {
|
|
@@ -706,17 +705,17 @@
|
|
|
706
705
|
}
|
|
707
706
|
function TableSchema(preparedAt, key, values) {
|
|
708
707
|
Companion_getInstance();
|
|
709
|
-
this.
|
|
710
|
-
this.
|
|
711
|
-
this.
|
|
708
|
+
this.a1h_1 = preparedAt;
|
|
709
|
+
this.b1h_1 = key;
|
|
710
|
+
this.c1h_1 = values;
|
|
712
711
|
}
|
|
713
712
|
protoOf(TableSchema).toString = function () {
|
|
714
|
-
return 'TableSchema(preparedAt=' + this.
|
|
713
|
+
return 'TableSchema(preparedAt=' + this.a1h_1 + ', key=' + toString_0(this.b1h_1) + ', values=' + toString_0(this.c1h_1) + ')';
|
|
715
714
|
};
|
|
716
715
|
protoOf(TableSchema).hashCode = function () {
|
|
717
|
-
var result = getStringHashCode(this.
|
|
718
|
-
result = imul(result, 31) + hashCode(this.
|
|
719
|
-
result = imul(result, 31) + hashCode(this.
|
|
716
|
+
var result = getStringHashCode(this.a1h_1);
|
|
717
|
+
result = imul(result, 31) + hashCode(this.b1h_1) | 0;
|
|
718
|
+
result = imul(result, 31) + hashCode(this.c1h_1) | 0;
|
|
720
719
|
return result;
|
|
721
720
|
};
|
|
722
721
|
protoOf(TableSchema).equals = function (other) {
|
|
@@ -724,11 +723,11 @@
|
|
|
724
723
|
return true;
|
|
725
724
|
if (!(other instanceof TableSchema))
|
|
726
725
|
return false;
|
|
727
|
-
if (!(this.
|
|
726
|
+
if (!(this.a1h_1 === other.a1h_1))
|
|
728
727
|
return false;
|
|
729
|
-
if (!equals(this.
|
|
728
|
+
if (!equals(this.b1h_1, other.b1h_1))
|
|
730
729
|
return false;
|
|
731
|
-
if (!equals(this.
|
|
730
|
+
if (!equals(this.c1h_1, other.c1h_1))
|
|
732
731
|
return false;
|
|
733
732
|
return true;
|
|
734
733
|
};
|
|
@@ -741,26 +740,26 @@
|
|
|
741
740
|
function $serializer_0() {
|
|
742
741
|
$serializer_instance_0 = this;
|
|
743
742
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.density.Ingredient', this, 4);
|
|
744
|
-
tmp0_serialDesc.
|
|
745
|
-
tmp0_serialDesc.
|
|
746
|
-
tmp0_serialDesc.
|
|
747
|
-
tmp0_serialDesc.
|
|
748
|
-
this.
|
|
749
|
-
}
|
|
750
|
-
protoOf($serializer_0).
|
|
751
|
-
var tmp0_desc = this.
|
|
752
|
-
var tmp1_output = encoder.
|
|
753
|
-
tmp1_output.
|
|
754
|
-
tmp1_output.
|
|
755
|
-
tmp1_output.
|
|
756
|
-
tmp1_output.
|
|
757
|
-
tmp1_output.
|
|
758
|
-
};
|
|
759
|
-
protoOf($serializer_0).
|
|
760
|
-
return this.
|
|
761
|
-
};
|
|
762
|
-
protoOf($serializer_0).
|
|
763
|
-
var tmp0_desc = this.
|
|
743
|
+
tmp0_serialDesc.os('id', false);
|
|
744
|
+
tmp0_serialDesc.os('name', false);
|
|
745
|
+
tmp0_serialDesc.os('normalised_name', false);
|
|
746
|
+
tmp0_serialDesc.os('density', false);
|
|
747
|
+
this.d1h_1 = tmp0_serialDesc;
|
|
748
|
+
}
|
|
749
|
+
protoOf($serializer_0).e1h = function (encoder, value) {
|
|
750
|
+
var tmp0_desc = this.d1h_1;
|
|
751
|
+
var tmp1_output = encoder.fl(tmp0_desc);
|
|
752
|
+
tmp1_output.om(tmp0_desc, 0, value.f1h_1);
|
|
753
|
+
tmp1_output.tm(tmp0_desc, 1, value.g1h_1);
|
|
754
|
+
tmp1_output.tm(tmp0_desc, 2, value.h1h_1);
|
|
755
|
+
tmp1_output.qm(tmp0_desc, 3, value.i1h_1);
|
|
756
|
+
tmp1_output.gl(tmp0_desc);
|
|
757
|
+
};
|
|
758
|
+
protoOf($serializer_0).ii = function (encoder, value) {
|
|
759
|
+
return this.e1h(encoder, value instanceof Ingredient ? value : THROW_CCE());
|
|
760
|
+
};
|
|
761
|
+
protoOf($serializer_0).ji = function (decoder) {
|
|
762
|
+
var tmp0_desc = this.d1h_1;
|
|
764
763
|
var tmp1_flag = true;
|
|
765
764
|
var tmp2_index = 0;
|
|
766
765
|
var tmp3_bitMask0 = 0;
|
|
@@ -768,50 +767,50 @@
|
|
|
768
767
|
var tmp5_local1 = null;
|
|
769
768
|
var tmp6_local2 = null;
|
|
770
769
|
var tmp7_local3 = 0.0;
|
|
771
|
-
var tmp8_input = decoder.
|
|
772
|
-
if (tmp8_input.
|
|
773
|
-
tmp4_local0 = tmp8_input.
|
|
770
|
+
var tmp8_input = decoder.fl(tmp0_desc);
|
|
771
|
+
if (tmp8_input.vl()) {
|
|
772
|
+
tmp4_local0 = tmp8_input.kl(tmp0_desc, 0);
|
|
774
773
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
775
|
-
tmp5_local1 = tmp8_input.
|
|
774
|
+
tmp5_local1 = tmp8_input.pl(tmp0_desc, 1);
|
|
776
775
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
777
|
-
tmp6_local2 = tmp8_input.
|
|
776
|
+
tmp6_local2 = tmp8_input.pl(tmp0_desc, 2);
|
|
778
777
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
779
|
-
tmp7_local3 = tmp8_input.
|
|
778
|
+
tmp7_local3 = tmp8_input.ml(tmp0_desc, 3);
|
|
780
779
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
781
780
|
} else
|
|
782
781
|
while (tmp1_flag) {
|
|
783
|
-
tmp2_index = tmp8_input.
|
|
782
|
+
tmp2_index = tmp8_input.wl(tmp0_desc);
|
|
784
783
|
switch (tmp2_index) {
|
|
785
784
|
case -1:
|
|
786
785
|
tmp1_flag = false;
|
|
787
786
|
break;
|
|
788
787
|
case 0:
|
|
789
|
-
tmp4_local0 = tmp8_input.
|
|
788
|
+
tmp4_local0 = tmp8_input.kl(tmp0_desc, 0);
|
|
790
789
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
791
790
|
break;
|
|
792
791
|
case 1:
|
|
793
|
-
tmp5_local1 = tmp8_input.
|
|
792
|
+
tmp5_local1 = tmp8_input.pl(tmp0_desc, 1);
|
|
794
793
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
795
794
|
break;
|
|
796
795
|
case 2:
|
|
797
|
-
tmp6_local2 = tmp8_input.
|
|
796
|
+
tmp6_local2 = tmp8_input.pl(tmp0_desc, 2);
|
|
798
797
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
799
798
|
break;
|
|
800
799
|
case 3:
|
|
801
|
-
tmp7_local3 = tmp8_input.
|
|
800
|
+
tmp7_local3 = tmp8_input.ml(tmp0_desc, 3);
|
|
802
801
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
803
802
|
break;
|
|
804
803
|
default:
|
|
805
804
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
806
805
|
}
|
|
807
806
|
}
|
|
808
|
-
tmp8_input.
|
|
807
|
+
tmp8_input.gl(tmp0_desc);
|
|
809
808
|
return Ingredient_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
810
809
|
};
|
|
811
|
-
protoOf($serializer_0).
|
|
812
|
-
return this.
|
|
810
|
+
protoOf($serializer_0).hi = function () {
|
|
811
|
+
return this.d1h_1;
|
|
813
812
|
};
|
|
814
|
-
protoOf($serializer_0).
|
|
813
|
+
protoOf($serializer_0).qs = function () {
|
|
815
814
|
// Inline function 'kotlin.arrayOf' call
|
|
816
815
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
817
816
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -825,31 +824,31 @@
|
|
|
825
824
|
}
|
|
826
825
|
function Ingredient_init_$Init$(seen0, id, name, normalised_name, density, serializationConstructorMarker, $this) {
|
|
827
826
|
if (!(15 === (15 & seen0))) {
|
|
828
|
-
throwMissingFieldException(seen0, 15, $serializer_getInstance_0().
|
|
827
|
+
throwMissingFieldException(seen0, 15, $serializer_getInstance_0().d1h_1);
|
|
829
828
|
}
|
|
830
|
-
$this.
|
|
831
|
-
$this.
|
|
832
|
-
$this.
|
|
833
|
-
$this.
|
|
829
|
+
$this.f1h_1 = id;
|
|
830
|
+
$this.g1h_1 = name;
|
|
831
|
+
$this.h1h_1 = normalised_name;
|
|
832
|
+
$this.i1h_1 = density;
|
|
834
833
|
return $this;
|
|
835
834
|
}
|
|
836
835
|
function Ingredient_init_$Create$(seen0, id, name, normalised_name, density, serializationConstructorMarker) {
|
|
837
836
|
return Ingredient_init_$Init$(seen0, id, name, normalised_name, density, serializationConstructorMarker, objectCreate(protoOf(Ingredient)));
|
|
838
837
|
}
|
|
839
838
|
function Ingredient(id, name, normalised_name, density) {
|
|
840
|
-
this.
|
|
841
|
-
this.
|
|
842
|
-
this.
|
|
843
|
-
this.
|
|
839
|
+
this.f1h_1 = id;
|
|
840
|
+
this.g1h_1 = name;
|
|
841
|
+
this.h1h_1 = normalised_name;
|
|
842
|
+
this.i1h_1 = density;
|
|
844
843
|
}
|
|
845
844
|
protoOf(Ingredient).toString = function () {
|
|
846
|
-
return 'Ingredient(id=' + this.
|
|
845
|
+
return 'Ingredient(id=' + this.f1h_1 + ', name=' + this.g1h_1 + ', normalised_name=' + this.h1h_1 + ', density=' + this.i1h_1 + ')';
|
|
847
846
|
};
|
|
848
847
|
protoOf(Ingredient).hashCode = function () {
|
|
849
|
-
var result = this.
|
|
850
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
851
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
852
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
848
|
+
var result = this.f1h_1;
|
|
849
|
+
result = imul(result, 31) + getStringHashCode(this.g1h_1) | 0;
|
|
850
|
+
result = imul(result, 31) + getStringHashCode(this.h1h_1) | 0;
|
|
851
|
+
result = imul(result, 31) + getNumberHashCode(this.i1h_1) | 0;
|
|
853
852
|
return result;
|
|
854
853
|
};
|
|
855
854
|
protoOf(Ingredient).equals = function (other) {
|
|
@@ -857,29 +856,29 @@
|
|
|
857
856
|
return true;
|
|
858
857
|
if (!(other instanceof Ingredient))
|
|
859
858
|
return false;
|
|
860
|
-
if (!(this.
|
|
859
|
+
if (!(this.f1h_1 === other.f1h_1))
|
|
861
860
|
return false;
|
|
862
|
-
if (!(this.
|
|
861
|
+
if (!(this.g1h_1 === other.g1h_1))
|
|
863
862
|
return false;
|
|
864
|
-
if (!(this.
|
|
863
|
+
if (!(this.h1h_1 === other.h1h_1))
|
|
865
864
|
return false;
|
|
866
|
-
if (!equals(this.
|
|
865
|
+
if (!equals(this.i1h_1, other.i1h_1))
|
|
867
866
|
return false;
|
|
868
867
|
return true;
|
|
869
868
|
};
|
|
870
869
|
function DensityTable(preparedAt, normalised_map, name_map) {
|
|
871
|
-
this.
|
|
872
|
-
this.
|
|
873
|
-
this.
|
|
870
|
+
this.k1e_1 = preparedAt;
|
|
871
|
+
this.l1e_1 = normalised_map;
|
|
872
|
+
this.m1e_1 = name_map;
|
|
874
873
|
}
|
|
875
|
-
protoOf(DensityTable).
|
|
876
|
-
var tmp0_safe_receiver = this.
|
|
874
|
+
protoOf(DensityTable).n1e = function (name) {
|
|
875
|
+
var tmp0_safe_receiver = this.l1e_1.i2(name);
|
|
877
876
|
var tmp;
|
|
878
877
|
if (tmp0_safe_receiver == null) {
|
|
879
878
|
tmp = null;
|
|
880
879
|
} else {
|
|
881
880
|
// Inline function 'kotlin.let' call
|
|
882
|
-
return tmp0_safe_receiver.
|
|
881
|
+
return tmp0_safe_receiver.i1h_1;
|
|
883
882
|
}
|
|
884
883
|
return tmp;
|
|
885
884
|
};
|
|
@@ -891,47 +890,47 @@
|
|
|
891
890
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
892
891
|
var this_0 = Default_getInstance();
|
|
893
892
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
894
|
-
var this_1 = this_0.
|
|
893
|
+
var this_1 = this_0.ul();
|
|
895
894
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
896
895
|
var this_2 = serializer(this_1, createKType(getKClass(TableSchema), arrayOf([]), false));
|
|
897
896
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
898
|
-
var data = this_0.
|
|
897
|
+
var data = this_0.r11(tmp$ret$1, raw);
|
|
899
898
|
// Inline function 'kotlin.collections.map' call
|
|
900
|
-
var this_3 = data.
|
|
899
|
+
var this_3 = data.c1h_1;
|
|
901
900
|
// Inline function 'kotlin.collections.mapTo' call
|
|
902
901
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
903
|
-
var _iterator__ex2g4s = this_3.
|
|
904
|
-
while (_iterator__ex2g4s.
|
|
905
|
-
var item = _iterator__ex2g4s.
|
|
906
|
-
var tmp$ret$
|
|
907
|
-
destination.
|
|
902
|
+
var _iterator__ex2g4s = this_3.q();
|
|
903
|
+
while (_iterator__ex2g4s.r()) {
|
|
904
|
+
var item = _iterator__ex2g4s.s();
|
|
905
|
+
var tmp$ret$5 = new Ingredient(get_int(get_jsonPrimitive(item.z(0))), get_jsonPrimitive(item.z(1)).v13(), get_jsonPrimitive(item.z(2)).v13(), get_float(get_jsonPrimitive(item.z(3))));
|
|
906
|
+
destination.u(tmp$ret$5);
|
|
908
907
|
}
|
|
909
908
|
var ingredients = destination;
|
|
910
909
|
// Inline function 'kotlin.collections.associate' call
|
|
911
910
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(ingredients, 10)), 16);
|
|
912
911
|
// Inline function 'kotlin.collections.associateTo' call
|
|
913
912
|
var destination_0 = LinkedHashMap_init_$Create$(capacity);
|
|
914
|
-
var _iterator__ex2g4s_0 = ingredients.
|
|
915
|
-
while (_iterator__ex2g4s_0.
|
|
916
|
-
var element = _iterator__ex2g4s_0.
|
|
913
|
+
var _iterator__ex2g4s_0 = ingredients.q();
|
|
914
|
+
while (_iterator__ex2g4s_0.r()) {
|
|
915
|
+
var element = _iterator__ex2g4s_0.s();
|
|
917
916
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
918
|
-
var pair = to(element.
|
|
919
|
-
destination_0.
|
|
917
|
+
var pair = to(element.h1h_1, element);
|
|
918
|
+
destination_0.m2(pair.cd_1, pair.dd_1);
|
|
920
919
|
}
|
|
921
920
|
var normalised_map = destination_0;
|
|
922
921
|
// Inline function 'kotlin.collections.associate' call
|
|
923
922
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(ingredients, 10)), 16);
|
|
924
923
|
// Inline function 'kotlin.collections.associateTo' call
|
|
925
924
|
var destination_1 = LinkedHashMap_init_$Create$(capacity_0);
|
|
926
|
-
var _iterator__ex2g4s_1 = ingredients.
|
|
927
|
-
while (_iterator__ex2g4s_1.
|
|
928
|
-
var element_0 = _iterator__ex2g4s_1.
|
|
925
|
+
var _iterator__ex2g4s_1 = ingredients.q();
|
|
926
|
+
while (_iterator__ex2g4s_1.r()) {
|
|
927
|
+
var element_0 = _iterator__ex2g4s_1.s();
|
|
929
928
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
930
|
-
var pair_0 = to(element_0.
|
|
931
|
-
destination_1.
|
|
929
|
+
var pair_0 = to(element_0.g1h_1, element_0);
|
|
930
|
+
destination_1.m2(pair_0.cd_1, pair_0.dd_1);
|
|
932
931
|
}
|
|
933
932
|
var name_map = destination_1;
|
|
934
|
-
var table = new DensityTable(data.
|
|
933
|
+
var table = new DensityTable(data.a1h_1, normalised_map, name_map);
|
|
935
934
|
// Inline function 'kotlin.Companion.success' call
|
|
936
935
|
return _Result___init__impl__xyqfz8(table);
|
|
937
936
|
} catch ($p) {
|
|
@@ -1039,7 +1038,7 @@
|
|
|
1039
1038
|
// Inline function 'kotlin.arrayOf' call
|
|
1040
1039
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1041
1040
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1042
|
-
tmp.
|
|
1041
|
+
tmp.j1h_1 = [null, tmp_1, null, tmp_3, tmp_5, null, tmp_7, tmp_9, null, null, null, null, tmp_11, tmp_13, null, tmp_15, tmp_17, tmp_19, tmp_21, tmp_23, null, lazy(tmp_24, RecipeV3$Companion$$childSerializers$_anonymous__7om4qn_11), null];
|
|
1043
1042
|
}
|
|
1044
1043
|
var Companion_instance_2;
|
|
1045
1044
|
function Companion_getInstance_1() {
|
|
@@ -1050,109 +1049,109 @@
|
|
|
1050
1049
|
function $serializer_1() {
|
|
1051
1050
|
$serializer_instance_1 = this;
|
|
1052
1051
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.RecipeV3', this, 23);
|
|
1053
|
-
tmp0_serialDesc.
|
|
1054
|
-
tmp0_serialDesc.
|
|
1055
|
-
tmp0_serialDesc.
|
|
1056
|
-
tmp0_serialDesc.
|
|
1057
|
-
tmp0_serialDesc.
|
|
1058
|
-
tmp0_serialDesc.
|
|
1059
|
-
tmp0_serialDesc.
|
|
1060
|
-
tmp0_serialDesc.
|
|
1061
|
-
tmp0_serialDesc.
|
|
1062
|
-
tmp0_serialDesc.
|
|
1063
|
-
tmp0_serialDesc.
|
|
1064
|
-
tmp0_serialDesc.
|
|
1065
|
-
tmp0_serialDesc.
|
|
1066
|
-
tmp0_serialDesc.
|
|
1067
|
-
tmp0_serialDesc.
|
|
1068
|
-
tmp0_serialDesc.
|
|
1069
|
-
tmp0_serialDesc.
|
|
1070
|
-
tmp0_serialDesc.
|
|
1071
|
-
tmp0_serialDesc.
|
|
1072
|
-
tmp0_serialDesc.
|
|
1073
|
-
tmp0_serialDesc.
|
|
1074
|
-
tmp0_serialDesc.
|
|
1075
|
-
tmp0_serialDesc.
|
|
1076
|
-
this.
|
|
1077
|
-
}
|
|
1078
|
-
protoOf($serializer_1).
|
|
1079
|
-
var tmp0_desc = this.
|
|
1080
|
-
var tmp1_output = encoder.
|
|
1081
|
-
var tmp2_cached = Companion_getInstance_1().
|
|
1082
|
-
if (tmp1_output.
|
|
1083
|
-
tmp1_output.
|
|
1052
|
+
tmp0_serialDesc.os('bookCredit', true);
|
|
1053
|
+
tmp0_serialDesc.os('byline', true);
|
|
1054
|
+
tmp0_serialDesc.os('canonicalArticle', true);
|
|
1055
|
+
tmp0_serialDesc.os('celebrationIds', true);
|
|
1056
|
+
tmp0_serialDesc.os('commerceCtas', true);
|
|
1057
|
+
tmp0_serialDesc.os('composerId', true);
|
|
1058
|
+
tmp0_serialDesc.os('contributors', true);
|
|
1059
|
+
tmp0_serialDesc.os('cuisineIds', true);
|
|
1060
|
+
tmp0_serialDesc.os('description', true);
|
|
1061
|
+
tmp0_serialDesc.os('difficultyLevel', true);
|
|
1062
|
+
tmp0_serialDesc.os('featuredImage', true);
|
|
1063
|
+
tmp0_serialDesc.os('id', false);
|
|
1064
|
+
tmp0_serialDesc.os('ingredients', true);
|
|
1065
|
+
tmp0_serialDesc.os('instructions', true);
|
|
1066
|
+
tmp0_serialDesc.os('isAppReady', true);
|
|
1067
|
+
tmp0_serialDesc.os('mealTypeIds', true);
|
|
1068
|
+
tmp0_serialDesc.os('serves', true);
|
|
1069
|
+
tmp0_serialDesc.os('suitableForDietIds', true);
|
|
1070
|
+
tmp0_serialDesc.os('techniquesUsedIds', true);
|
|
1071
|
+
tmp0_serialDesc.os('timings', true);
|
|
1072
|
+
tmp0_serialDesc.os('title', true);
|
|
1073
|
+
tmp0_serialDesc.os('utensilsAndApplianceIds', true);
|
|
1074
|
+
tmp0_serialDesc.os('webPublicationDate', true);
|
|
1075
|
+
this.k1h_1 = tmp0_serialDesc;
|
|
1076
|
+
}
|
|
1077
|
+
protoOf($serializer_1).l1h = function (encoder, value) {
|
|
1078
|
+
var tmp0_desc = this.k1h_1;
|
|
1079
|
+
var tmp1_output = encoder.fl(tmp0_desc);
|
|
1080
|
+
var tmp2_cached = Companion_getInstance_1().j1h_1;
|
|
1081
|
+
if (tmp1_output.bn(tmp0_desc, 0) ? true : !(value.i1f_1 == null)) {
|
|
1082
|
+
tmp1_output.xm(tmp0_desc, 0, StringSerializer_getInstance(), value.i1f_1);
|
|
1084
1083
|
}
|
|
1085
|
-
if (tmp1_output.
|
|
1086
|
-
tmp1_output.
|
|
1084
|
+
if (tmp1_output.bn(tmp0_desc, 1) ? true : !(value.j1f_1 == null)) {
|
|
1085
|
+
tmp1_output.xm(tmp0_desc, 1, tmp2_cached[1].f2(), value.j1f_1);
|
|
1087
1086
|
}
|
|
1088
|
-
if (tmp1_output.
|
|
1089
|
-
tmp1_output.
|
|
1087
|
+
if (tmp1_output.bn(tmp0_desc, 2) ? true : !(value.k1f_1 == null)) {
|
|
1088
|
+
tmp1_output.xm(tmp0_desc, 2, StringSerializer_getInstance(), value.k1f_1);
|
|
1090
1089
|
}
|
|
1091
|
-
if (tmp1_output.
|
|
1092
|
-
tmp1_output.
|
|
1090
|
+
if (tmp1_output.bn(tmp0_desc, 3) ? true : !(value.l1f_1 == null)) {
|
|
1091
|
+
tmp1_output.xm(tmp0_desc, 3, tmp2_cached[3].f2(), value.l1f_1);
|
|
1093
1092
|
}
|
|
1094
|
-
if (tmp1_output.
|
|
1095
|
-
tmp1_output.
|
|
1093
|
+
if (tmp1_output.bn(tmp0_desc, 4) ? true : !(value.m1f_1 == null)) {
|
|
1094
|
+
tmp1_output.xm(tmp0_desc, 4, tmp2_cached[4].f2(), value.m1f_1);
|
|
1096
1095
|
}
|
|
1097
|
-
if (tmp1_output.
|
|
1098
|
-
tmp1_output.
|
|
1096
|
+
if (tmp1_output.bn(tmp0_desc, 5) ? true : !(value.n1f_1 == null)) {
|
|
1097
|
+
tmp1_output.xm(tmp0_desc, 5, StringSerializer_getInstance(), value.n1f_1);
|
|
1099
1098
|
}
|
|
1100
|
-
if (tmp1_output.
|
|
1101
|
-
tmp1_output.
|
|
1099
|
+
if (tmp1_output.bn(tmp0_desc, 6) ? true : !(value.o1f_1 == null)) {
|
|
1100
|
+
tmp1_output.xm(tmp0_desc, 6, tmp2_cached[6].f2(), value.o1f_1);
|
|
1102
1101
|
}
|
|
1103
|
-
if (tmp1_output.
|
|
1104
|
-
tmp1_output.
|
|
1102
|
+
if (tmp1_output.bn(tmp0_desc, 7) ? true : !(value.p1f_1 == null)) {
|
|
1103
|
+
tmp1_output.xm(tmp0_desc, 7, tmp2_cached[7].f2(), value.p1f_1);
|
|
1105
1104
|
}
|
|
1106
|
-
if (tmp1_output.
|
|
1107
|
-
tmp1_output.
|
|
1105
|
+
if (tmp1_output.bn(tmp0_desc, 8) ? true : !(value.q1f_1 == null)) {
|
|
1106
|
+
tmp1_output.xm(tmp0_desc, 8, StringSerializer_getInstance(), value.q1f_1);
|
|
1108
1107
|
}
|
|
1109
|
-
if (tmp1_output.
|
|
1110
|
-
tmp1_output.
|
|
1108
|
+
if (tmp1_output.bn(tmp0_desc, 9) ? true : !(value.r1f_1 == null)) {
|
|
1109
|
+
tmp1_output.xm(tmp0_desc, 9, StringSerializer_getInstance(), value.r1f_1);
|
|
1111
1110
|
}
|
|
1112
|
-
if (tmp1_output.
|
|
1113
|
-
tmp1_output.
|
|
1111
|
+
if (tmp1_output.bn(tmp0_desc, 10) ? true : !(value.s1f_1 == null)) {
|
|
1112
|
+
tmp1_output.xm(tmp0_desc, 10, $serializer_getInstance_3(), value.s1f_1);
|
|
1114
1113
|
}
|
|
1115
|
-
tmp1_output.
|
|
1116
|
-
if (tmp1_output.
|
|
1117
|
-
tmp1_output.
|
|
1114
|
+
tmp1_output.tm(tmp0_desc, 11, value.t1f_1);
|
|
1115
|
+
if (tmp1_output.bn(tmp0_desc, 12) ? true : !(value.u1f_1 == null)) {
|
|
1116
|
+
tmp1_output.xm(tmp0_desc, 12, tmp2_cached[12].f2(), value.u1f_1);
|
|
1118
1117
|
}
|
|
1119
|
-
if (tmp1_output.
|
|
1120
|
-
tmp1_output.
|
|
1118
|
+
if (tmp1_output.bn(tmp0_desc, 13) ? true : !(value.v1f_1 == null)) {
|
|
1119
|
+
tmp1_output.xm(tmp0_desc, 13, tmp2_cached[13].f2(), value.v1f_1);
|
|
1121
1120
|
}
|
|
1122
|
-
if (tmp1_output.
|
|
1123
|
-
tmp1_output.
|
|
1121
|
+
if (tmp1_output.bn(tmp0_desc, 14) ? true : !(value.w1f_1 == null)) {
|
|
1122
|
+
tmp1_output.xm(tmp0_desc, 14, BooleanSerializer_getInstance(), value.w1f_1);
|
|
1124
1123
|
}
|
|
1125
|
-
if (tmp1_output.
|
|
1126
|
-
tmp1_output.
|
|
1124
|
+
if (tmp1_output.bn(tmp0_desc, 15) ? true : !(value.x1f_1 == null)) {
|
|
1125
|
+
tmp1_output.xm(tmp0_desc, 15, tmp2_cached[15].f2(), value.x1f_1);
|
|
1127
1126
|
}
|
|
1128
|
-
if (tmp1_output.
|
|
1129
|
-
tmp1_output.
|
|
1127
|
+
if (tmp1_output.bn(tmp0_desc, 16) ? true : !(value.y1f_1 == null)) {
|
|
1128
|
+
tmp1_output.xm(tmp0_desc, 16, tmp2_cached[16].f2(), value.y1f_1);
|
|
1130
1129
|
}
|
|
1131
|
-
if (tmp1_output.
|
|
1132
|
-
tmp1_output.
|
|
1130
|
+
if (tmp1_output.bn(tmp0_desc, 17) ? true : !(value.z1f_1 == null)) {
|
|
1131
|
+
tmp1_output.xm(tmp0_desc, 17, tmp2_cached[17].f2(), value.z1f_1);
|
|
1133
1132
|
}
|
|
1134
|
-
if (tmp1_output.
|
|
1135
|
-
tmp1_output.
|
|
1133
|
+
if (tmp1_output.bn(tmp0_desc, 18) ? true : !(value.a1g_1 == null)) {
|
|
1134
|
+
tmp1_output.xm(tmp0_desc, 18, tmp2_cached[18].f2(), value.a1g_1);
|
|
1136
1135
|
}
|
|
1137
|
-
if (tmp1_output.
|
|
1138
|
-
tmp1_output.
|
|
1136
|
+
if (tmp1_output.bn(tmp0_desc, 19) ? true : !(value.b1g_1 == null)) {
|
|
1137
|
+
tmp1_output.xm(tmp0_desc, 19, tmp2_cached[19].f2(), value.b1g_1);
|
|
1139
1138
|
}
|
|
1140
|
-
if (tmp1_output.
|
|
1141
|
-
tmp1_output.
|
|
1139
|
+
if (tmp1_output.bn(tmp0_desc, 20) ? true : !(value.c1g_1 == null)) {
|
|
1140
|
+
tmp1_output.xm(tmp0_desc, 20, StringSerializer_getInstance(), value.c1g_1);
|
|
1142
1141
|
}
|
|
1143
|
-
if (tmp1_output.
|
|
1144
|
-
tmp1_output.
|
|
1142
|
+
if (tmp1_output.bn(tmp0_desc, 21) ? true : !(value.d1g_1 == null)) {
|
|
1143
|
+
tmp1_output.xm(tmp0_desc, 21, tmp2_cached[21].f2(), value.d1g_1);
|
|
1145
1144
|
}
|
|
1146
|
-
if (tmp1_output.
|
|
1147
|
-
tmp1_output.
|
|
1145
|
+
if (tmp1_output.bn(tmp0_desc, 22) ? true : !(value.e1g_1 == null)) {
|
|
1146
|
+
tmp1_output.xm(tmp0_desc, 22, StringSerializer_getInstance(), value.e1g_1);
|
|
1148
1147
|
}
|
|
1149
|
-
tmp1_output.
|
|
1148
|
+
tmp1_output.gl(tmp0_desc);
|
|
1150
1149
|
};
|
|
1151
|
-
protoOf($serializer_1).
|
|
1152
|
-
return this.
|
|
1150
|
+
protoOf($serializer_1).ii = function (encoder, value) {
|
|
1151
|
+
return this.l1h(encoder, value instanceof RecipeV3 ? value : THROW_CCE());
|
|
1153
1152
|
};
|
|
1154
|
-
protoOf($serializer_1).
|
|
1155
|
-
var tmp0_desc = this.
|
|
1153
|
+
protoOf($serializer_1).ji = function (decoder) {
|
|
1154
|
+
var tmp0_desc = this.k1h_1;
|
|
1156
1155
|
var tmp1_flag = true;
|
|
1157
1156
|
var tmp2_index = 0;
|
|
1158
1157
|
var tmp3_bitMask0 = 0;
|
|
@@ -1179,170 +1178,170 @@
|
|
|
1179
1178
|
var tmp24_local20 = null;
|
|
1180
1179
|
var tmp25_local21 = null;
|
|
1181
1180
|
var tmp26_local22 = null;
|
|
1182
|
-
var tmp27_input = decoder.
|
|
1183
|
-
var tmp28_cached = Companion_getInstance_1().
|
|
1184
|
-
if (tmp27_input.
|
|
1185
|
-
tmp4_local0 = tmp27_input.
|
|
1181
|
+
var tmp27_input = decoder.fl(tmp0_desc);
|
|
1182
|
+
var tmp28_cached = Companion_getInstance_1().j1h_1;
|
|
1183
|
+
if (tmp27_input.vl()) {
|
|
1184
|
+
tmp4_local0 = tmp27_input.tl(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
1186
1185
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1187
|
-
tmp5_local1 = tmp27_input.
|
|
1186
|
+
tmp5_local1 = tmp27_input.tl(tmp0_desc, 1, tmp28_cached[1].f2(), tmp5_local1);
|
|
1188
1187
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1189
|
-
tmp6_local2 = tmp27_input.
|
|
1188
|
+
tmp6_local2 = tmp27_input.tl(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1190
1189
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1191
|
-
tmp7_local3 = tmp27_input.
|
|
1190
|
+
tmp7_local3 = tmp27_input.tl(tmp0_desc, 3, tmp28_cached[3].f2(), tmp7_local3);
|
|
1192
1191
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1193
|
-
tmp8_local4 = tmp27_input.
|
|
1192
|
+
tmp8_local4 = tmp27_input.tl(tmp0_desc, 4, tmp28_cached[4].f2(), tmp8_local4);
|
|
1194
1193
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1195
|
-
tmp9_local5 = tmp27_input.
|
|
1194
|
+
tmp9_local5 = tmp27_input.tl(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1196
1195
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1197
|
-
tmp10_local6 = tmp27_input.
|
|
1196
|
+
tmp10_local6 = tmp27_input.tl(tmp0_desc, 6, tmp28_cached[6].f2(), tmp10_local6);
|
|
1198
1197
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1199
|
-
tmp11_local7 = tmp27_input.
|
|
1198
|
+
tmp11_local7 = tmp27_input.tl(tmp0_desc, 7, tmp28_cached[7].f2(), tmp11_local7);
|
|
1200
1199
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1201
|
-
tmp12_local8 = tmp27_input.
|
|
1200
|
+
tmp12_local8 = tmp27_input.tl(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
1202
1201
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
1203
|
-
tmp13_local9 = tmp27_input.
|
|
1202
|
+
tmp13_local9 = tmp27_input.tl(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
|
|
1204
1203
|
tmp3_bitMask0 = tmp3_bitMask0 | 512;
|
|
1205
|
-
tmp14_local10 = tmp27_input.
|
|
1204
|
+
tmp14_local10 = tmp27_input.tl(tmp0_desc, 10, $serializer_getInstance_3(), tmp14_local10);
|
|
1206
1205
|
tmp3_bitMask0 = tmp3_bitMask0 | 1024;
|
|
1207
|
-
tmp15_local11 = tmp27_input.
|
|
1206
|
+
tmp15_local11 = tmp27_input.pl(tmp0_desc, 11);
|
|
1208
1207
|
tmp3_bitMask0 = tmp3_bitMask0 | 2048;
|
|
1209
|
-
tmp16_local12 = tmp27_input.
|
|
1208
|
+
tmp16_local12 = tmp27_input.tl(tmp0_desc, 12, tmp28_cached[12].f2(), tmp16_local12);
|
|
1210
1209
|
tmp3_bitMask0 = tmp3_bitMask0 | 4096;
|
|
1211
|
-
tmp17_local13 = tmp27_input.
|
|
1210
|
+
tmp17_local13 = tmp27_input.tl(tmp0_desc, 13, tmp28_cached[13].f2(), tmp17_local13);
|
|
1212
1211
|
tmp3_bitMask0 = tmp3_bitMask0 | 8192;
|
|
1213
|
-
tmp18_local14 = tmp27_input.
|
|
1212
|
+
tmp18_local14 = tmp27_input.tl(tmp0_desc, 14, BooleanSerializer_getInstance(), tmp18_local14);
|
|
1214
1213
|
tmp3_bitMask0 = tmp3_bitMask0 | 16384;
|
|
1215
|
-
tmp19_local15 = tmp27_input.
|
|
1214
|
+
tmp19_local15 = tmp27_input.tl(tmp0_desc, 15, tmp28_cached[15].f2(), tmp19_local15);
|
|
1216
1215
|
tmp3_bitMask0 = tmp3_bitMask0 | 32768;
|
|
1217
|
-
tmp20_local16 = tmp27_input.
|
|
1216
|
+
tmp20_local16 = tmp27_input.tl(tmp0_desc, 16, tmp28_cached[16].f2(), tmp20_local16);
|
|
1218
1217
|
tmp3_bitMask0 = tmp3_bitMask0 | 65536;
|
|
1219
|
-
tmp21_local17 = tmp27_input.
|
|
1218
|
+
tmp21_local17 = tmp27_input.tl(tmp0_desc, 17, tmp28_cached[17].f2(), tmp21_local17);
|
|
1220
1219
|
tmp3_bitMask0 = tmp3_bitMask0 | 131072;
|
|
1221
|
-
tmp22_local18 = tmp27_input.
|
|
1220
|
+
tmp22_local18 = tmp27_input.tl(tmp0_desc, 18, tmp28_cached[18].f2(), tmp22_local18);
|
|
1222
1221
|
tmp3_bitMask0 = tmp3_bitMask0 | 262144;
|
|
1223
|
-
tmp23_local19 = tmp27_input.
|
|
1222
|
+
tmp23_local19 = tmp27_input.tl(tmp0_desc, 19, tmp28_cached[19].f2(), tmp23_local19);
|
|
1224
1223
|
tmp3_bitMask0 = tmp3_bitMask0 | 524288;
|
|
1225
|
-
tmp24_local20 = tmp27_input.
|
|
1224
|
+
tmp24_local20 = tmp27_input.tl(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20);
|
|
1226
1225
|
tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
|
|
1227
|
-
tmp25_local21 = tmp27_input.
|
|
1226
|
+
tmp25_local21 = tmp27_input.tl(tmp0_desc, 21, tmp28_cached[21].f2(), tmp25_local21);
|
|
1228
1227
|
tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
|
|
1229
|
-
tmp26_local22 = tmp27_input.
|
|
1228
|
+
tmp26_local22 = tmp27_input.tl(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22);
|
|
1230
1229
|
tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
|
|
1231
1230
|
} else
|
|
1232
1231
|
while (tmp1_flag) {
|
|
1233
|
-
tmp2_index = tmp27_input.
|
|
1232
|
+
tmp2_index = tmp27_input.wl(tmp0_desc);
|
|
1234
1233
|
switch (tmp2_index) {
|
|
1235
1234
|
case -1:
|
|
1236
1235
|
tmp1_flag = false;
|
|
1237
1236
|
break;
|
|
1238
1237
|
case 0:
|
|
1239
|
-
tmp4_local0 = tmp27_input.
|
|
1238
|
+
tmp4_local0 = tmp27_input.tl(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
1240
1239
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1241
1240
|
break;
|
|
1242
1241
|
case 1:
|
|
1243
|
-
tmp5_local1 = tmp27_input.
|
|
1242
|
+
tmp5_local1 = tmp27_input.tl(tmp0_desc, 1, tmp28_cached[1].f2(), tmp5_local1);
|
|
1244
1243
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1245
1244
|
break;
|
|
1246
1245
|
case 2:
|
|
1247
|
-
tmp6_local2 = tmp27_input.
|
|
1246
|
+
tmp6_local2 = tmp27_input.tl(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1248
1247
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1249
1248
|
break;
|
|
1250
1249
|
case 3:
|
|
1251
|
-
tmp7_local3 = tmp27_input.
|
|
1250
|
+
tmp7_local3 = tmp27_input.tl(tmp0_desc, 3, tmp28_cached[3].f2(), tmp7_local3);
|
|
1252
1251
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1253
1252
|
break;
|
|
1254
1253
|
case 4:
|
|
1255
|
-
tmp8_local4 = tmp27_input.
|
|
1254
|
+
tmp8_local4 = tmp27_input.tl(tmp0_desc, 4, tmp28_cached[4].f2(), tmp8_local4);
|
|
1256
1255
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1257
1256
|
break;
|
|
1258
1257
|
case 5:
|
|
1259
|
-
tmp9_local5 = tmp27_input.
|
|
1258
|
+
tmp9_local5 = tmp27_input.tl(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1260
1259
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1261
1260
|
break;
|
|
1262
1261
|
case 6:
|
|
1263
|
-
tmp10_local6 = tmp27_input.
|
|
1262
|
+
tmp10_local6 = tmp27_input.tl(tmp0_desc, 6, tmp28_cached[6].f2(), tmp10_local6);
|
|
1264
1263
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1265
1264
|
break;
|
|
1266
1265
|
case 7:
|
|
1267
|
-
tmp11_local7 = tmp27_input.
|
|
1266
|
+
tmp11_local7 = tmp27_input.tl(tmp0_desc, 7, tmp28_cached[7].f2(), tmp11_local7);
|
|
1268
1267
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1269
1268
|
break;
|
|
1270
1269
|
case 8:
|
|
1271
|
-
tmp12_local8 = tmp27_input.
|
|
1270
|
+
tmp12_local8 = tmp27_input.tl(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
1272
1271
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
1273
1272
|
break;
|
|
1274
1273
|
case 9:
|
|
1275
|
-
tmp13_local9 = tmp27_input.
|
|
1274
|
+
tmp13_local9 = tmp27_input.tl(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
|
|
1276
1275
|
tmp3_bitMask0 = tmp3_bitMask0 | 512;
|
|
1277
1276
|
break;
|
|
1278
1277
|
case 10:
|
|
1279
|
-
tmp14_local10 = tmp27_input.
|
|
1278
|
+
tmp14_local10 = tmp27_input.tl(tmp0_desc, 10, $serializer_getInstance_3(), tmp14_local10);
|
|
1280
1279
|
tmp3_bitMask0 = tmp3_bitMask0 | 1024;
|
|
1281
1280
|
break;
|
|
1282
1281
|
case 11:
|
|
1283
|
-
tmp15_local11 = tmp27_input.
|
|
1282
|
+
tmp15_local11 = tmp27_input.pl(tmp0_desc, 11);
|
|
1284
1283
|
tmp3_bitMask0 = tmp3_bitMask0 | 2048;
|
|
1285
1284
|
break;
|
|
1286
1285
|
case 12:
|
|
1287
|
-
tmp16_local12 = tmp27_input.
|
|
1286
|
+
tmp16_local12 = tmp27_input.tl(tmp0_desc, 12, tmp28_cached[12].f2(), tmp16_local12);
|
|
1288
1287
|
tmp3_bitMask0 = tmp3_bitMask0 | 4096;
|
|
1289
1288
|
break;
|
|
1290
1289
|
case 13:
|
|
1291
|
-
tmp17_local13 = tmp27_input.
|
|
1290
|
+
tmp17_local13 = tmp27_input.tl(tmp0_desc, 13, tmp28_cached[13].f2(), tmp17_local13);
|
|
1292
1291
|
tmp3_bitMask0 = tmp3_bitMask0 | 8192;
|
|
1293
1292
|
break;
|
|
1294
1293
|
case 14:
|
|
1295
|
-
tmp18_local14 = tmp27_input.
|
|
1294
|
+
tmp18_local14 = tmp27_input.tl(tmp0_desc, 14, BooleanSerializer_getInstance(), tmp18_local14);
|
|
1296
1295
|
tmp3_bitMask0 = tmp3_bitMask0 | 16384;
|
|
1297
1296
|
break;
|
|
1298
1297
|
case 15:
|
|
1299
|
-
tmp19_local15 = tmp27_input.
|
|
1298
|
+
tmp19_local15 = tmp27_input.tl(tmp0_desc, 15, tmp28_cached[15].f2(), tmp19_local15);
|
|
1300
1299
|
tmp3_bitMask0 = tmp3_bitMask0 | 32768;
|
|
1301
1300
|
break;
|
|
1302
1301
|
case 16:
|
|
1303
|
-
tmp20_local16 = tmp27_input.
|
|
1302
|
+
tmp20_local16 = tmp27_input.tl(tmp0_desc, 16, tmp28_cached[16].f2(), tmp20_local16);
|
|
1304
1303
|
tmp3_bitMask0 = tmp3_bitMask0 | 65536;
|
|
1305
1304
|
break;
|
|
1306
1305
|
case 17:
|
|
1307
|
-
tmp21_local17 = tmp27_input.
|
|
1306
|
+
tmp21_local17 = tmp27_input.tl(tmp0_desc, 17, tmp28_cached[17].f2(), tmp21_local17);
|
|
1308
1307
|
tmp3_bitMask0 = tmp3_bitMask0 | 131072;
|
|
1309
1308
|
break;
|
|
1310
1309
|
case 18:
|
|
1311
|
-
tmp22_local18 = tmp27_input.
|
|
1310
|
+
tmp22_local18 = tmp27_input.tl(tmp0_desc, 18, tmp28_cached[18].f2(), tmp22_local18);
|
|
1312
1311
|
tmp3_bitMask0 = tmp3_bitMask0 | 262144;
|
|
1313
1312
|
break;
|
|
1314
1313
|
case 19:
|
|
1315
|
-
tmp23_local19 = tmp27_input.
|
|
1314
|
+
tmp23_local19 = tmp27_input.tl(tmp0_desc, 19, tmp28_cached[19].f2(), tmp23_local19);
|
|
1316
1315
|
tmp3_bitMask0 = tmp3_bitMask0 | 524288;
|
|
1317
1316
|
break;
|
|
1318
1317
|
case 20:
|
|
1319
|
-
tmp24_local20 = tmp27_input.
|
|
1318
|
+
tmp24_local20 = tmp27_input.tl(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20);
|
|
1320
1319
|
tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
|
|
1321
1320
|
break;
|
|
1322
1321
|
case 21:
|
|
1323
|
-
tmp25_local21 = tmp27_input.
|
|
1322
|
+
tmp25_local21 = tmp27_input.tl(tmp0_desc, 21, tmp28_cached[21].f2(), tmp25_local21);
|
|
1324
1323
|
tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
|
|
1325
1324
|
break;
|
|
1326
1325
|
case 22:
|
|
1327
|
-
tmp26_local22 = tmp27_input.
|
|
1326
|
+
tmp26_local22 = tmp27_input.tl(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22);
|
|
1328
1327
|
tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
|
|
1329
1328
|
break;
|
|
1330
1329
|
default:
|
|
1331
1330
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1332
1331
|
}
|
|
1333
1332
|
}
|
|
1334
|
-
tmp27_input.
|
|
1333
|
+
tmp27_input.gl(tmp0_desc);
|
|
1335
1334
|
return RecipeV3_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, null);
|
|
1336
1335
|
};
|
|
1337
|
-
protoOf($serializer_1).
|
|
1338
|
-
return this.
|
|
1336
|
+
protoOf($serializer_1).hi = function () {
|
|
1337
|
+
return this.k1h_1;
|
|
1339
1338
|
};
|
|
1340
|
-
protoOf($serializer_1).
|
|
1341
|
-
var tmp0_cached = Companion_getInstance_1().
|
|
1339
|
+
protoOf($serializer_1).qs = function () {
|
|
1340
|
+
var tmp0_cached = Companion_getInstance_1().j1h_1;
|
|
1342
1341
|
// Inline function 'kotlin.arrayOf' call
|
|
1343
1342
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1344
1343
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1345
|
-
return [get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[1].
|
|
1344
|
+
return [get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[1].f2()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[3].f2()), get_nullable(tmp0_cached[4].f2()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[6].f2()), get_nullable(tmp0_cached[7].f2()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable($serializer_getInstance_3()), StringSerializer_getInstance(), get_nullable(tmp0_cached[12].f2()), get_nullable(tmp0_cached[13].f2()), get_nullable(BooleanSerializer_getInstance()), get_nullable(tmp0_cached[15].f2()), get_nullable(tmp0_cached[16].f2()), get_nullable(tmp0_cached[17].f2()), get_nullable(tmp0_cached[18].f2()), get_nullable(tmp0_cached[19].f2()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[21].f2()), get_nullable(StringSerializer_getInstance())];
|
|
1346
1345
|
};
|
|
1347
1346
|
var $serializer_instance_1;
|
|
1348
1347
|
function $serializer_getInstance_1() {
|
|
@@ -1352,97 +1351,97 @@
|
|
|
1352
1351
|
}
|
|
1353
1352
|
function RecipeV3_init_$Init$(seen0, bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate, serializationConstructorMarker, $this) {
|
|
1354
1353
|
if (!(2048 === (2048 & seen0))) {
|
|
1355
|
-
throwMissingFieldException(seen0, 2048, $serializer_getInstance_1().
|
|
1354
|
+
throwMissingFieldException(seen0, 2048, $serializer_getInstance_1().k1h_1);
|
|
1356
1355
|
}
|
|
1357
1356
|
if (0 === (seen0 & 1))
|
|
1358
|
-
$this.
|
|
1357
|
+
$this.i1f_1 = null;
|
|
1359
1358
|
else
|
|
1360
|
-
$this.
|
|
1359
|
+
$this.i1f_1 = bookCredit;
|
|
1361
1360
|
if (0 === (seen0 & 2))
|
|
1362
|
-
$this.
|
|
1361
|
+
$this.j1f_1 = null;
|
|
1363
1362
|
else
|
|
1364
|
-
$this.
|
|
1363
|
+
$this.j1f_1 = byline;
|
|
1365
1364
|
if (0 === (seen0 & 4))
|
|
1366
|
-
$this.
|
|
1365
|
+
$this.k1f_1 = null;
|
|
1367
1366
|
else
|
|
1368
|
-
$this.
|
|
1367
|
+
$this.k1f_1 = canonicalArticle;
|
|
1369
1368
|
if (0 === (seen0 & 8))
|
|
1370
|
-
$this.
|
|
1369
|
+
$this.l1f_1 = null;
|
|
1371
1370
|
else
|
|
1372
|
-
$this.
|
|
1371
|
+
$this.l1f_1 = celebrationIds;
|
|
1373
1372
|
if (0 === (seen0 & 16))
|
|
1374
|
-
$this.
|
|
1373
|
+
$this.m1f_1 = null;
|
|
1375
1374
|
else
|
|
1376
|
-
$this.
|
|
1375
|
+
$this.m1f_1 = commerceCtas;
|
|
1377
1376
|
if (0 === (seen0 & 32))
|
|
1378
|
-
$this.
|
|
1377
|
+
$this.n1f_1 = null;
|
|
1379
1378
|
else
|
|
1380
|
-
$this.
|
|
1379
|
+
$this.n1f_1 = composerId;
|
|
1381
1380
|
if (0 === (seen0 & 64))
|
|
1382
|
-
$this.
|
|
1381
|
+
$this.o1f_1 = null;
|
|
1383
1382
|
else
|
|
1384
|
-
$this.
|
|
1383
|
+
$this.o1f_1 = contributors;
|
|
1385
1384
|
if (0 === (seen0 & 128))
|
|
1386
|
-
$this.
|
|
1385
|
+
$this.p1f_1 = null;
|
|
1387
1386
|
else
|
|
1388
|
-
$this.
|
|
1387
|
+
$this.p1f_1 = cuisineIds;
|
|
1389
1388
|
if (0 === (seen0 & 256))
|
|
1390
|
-
$this.
|
|
1389
|
+
$this.q1f_1 = null;
|
|
1391
1390
|
else
|
|
1392
|
-
$this.
|
|
1391
|
+
$this.q1f_1 = description;
|
|
1393
1392
|
if (0 === (seen0 & 512))
|
|
1394
|
-
$this.
|
|
1393
|
+
$this.r1f_1 = null;
|
|
1395
1394
|
else
|
|
1396
|
-
$this.
|
|
1395
|
+
$this.r1f_1 = difficultyLevel;
|
|
1397
1396
|
if (0 === (seen0 & 1024))
|
|
1398
|
-
$this.
|
|
1397
|
+
$this.s1f_1 = null;
|
|
1399
1398
|
else
|
|
1400
|
-
$this.
|
|
1401
|
-
$this.
|
|
1399
|
+
$this.s1f_1 = featuredImage;
|
|
1400
|
+
$this.t1f_1 = id;
|
|
1402
1401
|
if (0 === (seen0 & 4096))
|
|
1403
|
-
$this.
|
|
1402
|
+
$this.u1f_1 = null;
|
|
1404
1403
|
else
|
|
1405
|
-
$this.
|
|
1404
|
+
$this.u1f_1 = ingredients;
|
|
1406
1405
|
if (0 === (seen0 & 8192))
|
|
1407
|
-
$this.
|
|
1406
|
+
$this.v1f_1 = null;
|
|
1408
1407
|
else
|
|
1409
|
-
$this.
|
|
1408
|
+
$this.v1f_1 = instructions;
|
|
1410
1409
|
if (0 === (seen0 & 16384))
|
|
1411
|
-
$this.
|
|
1410
|
+
$this.w1f_1 = null;
|
|
1412
1411
|
else
|
|
1413
|
-
$this.
|
|
1412
|
+
$this.w1f_1 = isAppReady;
|
|
1414
1413
|
if (0 === (seen0 & 32768))
|
|
1415
|
-
$this.
|
|
1414
|
+
$this.x1f_1 = null;
|
|
1416
1415
|
else
|
|
1417
|
-
$this.
|
|
1416
|
+
$this.x1f_1 = mealTypeIds;
|
|
1418
1417
|
if (0 === (seen0 & 65536))
|
|
1419
|
-
$this.
|
|
1418
|
+
$this.y1f_1 = null;
|
|
1420
1419
|
else
|
|
1421
|
-
$this.
|
|
1420
|
+
$this.y1f_1 = serves;
|
|
1422
1421
|
if (0 === (seen0 & 131072))
|
|
1423
|
-
$this.
|
|
1422
|
+
$this.z1f_1 = null;
|
|
1424
1423
|
else
|
|
1425
|
-
$this.
|
|
1424
|
+
$this.z1f_1 = suitableForDietIds;
|
|
1426
1425
|
if (0 === (seen0 & 262144))
|
|
1427
|
-
$this.
|
|
1426
|
+
$this.a1g_1 = null;
|
|
1428
1427
|
else
|
|
1429
|
-
$this.
|
|
1428
|
+
$this.a1g_1 = techniquesUsedIds;
|
|
1430
1429
|
if (0 === (seen0 & 524288))
|
|
1431
|
-
$this.
|
|
1430
|
+
$this.b1g_1 = null;
|
|
1432
1431
|
else
|
|
1433
|
-
$this.
|
|
1432
|
+
$this.b1g_1 = timings;
|
|
1434
1433
|
if (0 === (seen0 & 1048576))
|
|
1435
|
-
$this.
|
|
1434
|
+
$this.c1g_1 = null;
|
|
1436
1435
|
else
|
|
1437
|
-
$this.
|
|
1436
|
+
$this.c1g_1 = title;
|
|
1438
1437
|
if (0 === (seen0 & 2097152))
|
|
1439
|
-
$this.
|
|
1438
|
+
$this.d1g_1 = null;
|
|
1440
1439
|
else
|
|
1441
|
-
$this.
|
|
1440
|
+
$this.d1g_1 = utensilsAndApplianceIds;
|
|
1442
1441
|
if (0 === (seen0 & 4194304))
|
|
1443
|
-
$this.
|
|
1442
|
+
$this.e1g_1 = null;
|
|
1444
1443
|
else
|
|
1445
|
-
$this.
|
|
1444
|
+
$this.e1g_1 = webPublicationDate;
|
|
1446
1445
|
return $this;
|
|
1447
1446
|
}
|
|
1448
1447
|
function RecipeV3_init_$Create$(seen0, bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate, serializationConstructorMarker) {
|
|
@@ -1472,86 +1471,86 @@
|
|
|
1472
1471
|
title = title === VOID ? null : title;
|
|
1473
1472
|
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? null : utensilsAndApplianceIds;
|
|
1474
1473
|
webPublicationDate = webPublicationDate === VOID ? null : webPublicationDate;
|
|
1475
|
-
this.
|
|
1476
|
-
this.
|
|
1477
|
-
this.
|
|
1478
|
-
this.
|
|
1479
|
-
this.
|
|
1480
|
-
this.
|
|
1481
|
-
this.
|
|
1482
|
-
this.
|
|
1483
|
-
this.
|
|
1484
|
-
this.
|
|
1485
|
-
this.
|
|
1486
|
-
this.
|
|
1487
|
-
this.
|
|
1488
|
-
this.
|
|
1489
|
-
this.
|
|
1490
|
-
this.
|
|
1491
|
-
this.
|
|
1492
|
-
this.
|
|
1493
|
-
this.
|
|
1494
|
-
this.
|
|
1495
|
-
this.
|
|
1496
|
-
this.
|
|
1497
|
-
this.
|
|
1498
|
-
}
|
|
1499
|
-
protoOf(RecipeV3).
|
|
1474
|
+
this.i1f_1 = bookCredit;
|
|
1475
|
+
this.j1f_1 = byline;
|
|
1476
|
+
this.k1f_1 = canonicalArticle;
|
|
1477
|
+
this.l1f_1 = celebrationIds;
|
|
1478
|
+
this.m1f_1 = commerceCtas;
|
|
1479
|
+
this.n1f_1 = composerId;
|
|
1480
|
+
this.o1f_1 = contributors;
|
|
1481
|
+
this.p1f_1 = cuisineIds;
|
|
1482
|
+
this.q1f_1 = description;
|
|
1483
|
+
this.r1f_1 = difficultyLevel;
|
|
1484
|
+
this.s1f_1 = featuredImage;
|
|
1485
|
+
this.t1f_1 = id;
|
|
1486
|
+
this.u1f_1 = ingredients;
|
|
1487
|
+
this.v1f_1 = instructions;
|
|
1488
|
+
this.w1f_1 = isAppReady;
|
|
1489
|
+
this.x1f_1 = mealTypeIds;
|
|
1490
|
+
this.y1f_1 = serves;
|
|
1491
|
+
this.z1f_1 = suitableForDietIds;
|
|
1492
|
+
this.a1g_1 = techniquesUsedIds;
|
|
1493
|
+
this.b1g_1 = timings;
|
|
1494
|
+
this.c1g_1 = title;
|
|
1495
|
+
this.d1g_1 = utensilsAndApplianceIds;
|
|
1496
|
+
this.e1g_1 = webPublicationDate;
|
|
1497
|
+
}
|
|
1498
|
+
protoOf(RecipeV3).m1h = function (bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate) {
|
|
1500
1499
|
return new RecipeV3(bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate);
|
|
1501
1500
|
};
|
|
1502
|
-
protoOf(RecipeV3).
|
|
1503
|
-
bookCredit = bookCredit === VOID ? this.
|
|
1504
|
-
byline = byline === VOID ? this.
|
|
1505
|
-
canonicalArticle = canonicalArticle === VOID ? this.
|
|
1506
|
-
celebrationIds = celebrationIds === VOID ? this.
|
|
1507
|
-
commerceCtas = commerceCtas === VOID ? this.
|
|
1508
|
-
composerId = composerId === VOID ? this.
|
|
1509
|
-
contributors = contributors === VOID ? this.
|
|
1510
|
-
cuisineIds = cuisineIds === VOID ? this.
|
|
1511
|
-
description = description === VOID ? this.
|
|
1512
|
-
difficultyLevel = difficultyLevel === VOID ? this.
|
|
1513
|
-
featuredImage = featuredImage === VOID ? this.
|
|
1514
|
-
id = id === VOID ? this.
|
|
1515
|
-
ingredients = ingredients === VOID ? this.
|
|
1516
|
-
instructions = instructions === VOID ? this.
|
|
1517
|
-
isAppReady = isAppReady === VOID ? this.
|
|
1518
|
-
mealTypeIds = mealTypeIds === VOID ? this.
|
|
1519
|
-
serves = serves === VOID ? this.
|
|
1520
|
-
suitableForDietIds = suitableForDietIds === VOID ? this.
|
|
1521
|
-
techniquesUsedIds = techniquesUsedIds === VOID ? this.
|
|
1522
|
-
timings = timings === VOID ? this.
|
|
1523
|
-
title = title === VOID ? this.
|
|
1524
|
-
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? this.
|
|
1525
|
-
webPublicationDate = webPublicationDate === VOID ? this.
|
|
1526
|
-
return $super === VOID ? this.
|
|
1501
|
+
protoOf(RecipeV3).w1g = function (bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate, $super) {
|
|
1502
|
+
bookCredit = bookCredit === VOID ? this.i1f_1 : bookCredit;
|
|
1503
|
+
byline = byline === VOID ? this.j1f_1 : byline;
|
|
1504
|
+
canonicalArticle = canonicalArticle === VOID ? this.k1f_1 : canonicalArticle;
|
|
1505
|
+
celebrationIds = celebrationIds === VOID ? this.l1f_1 : celebrationIds;
|
|
1506
|
+
commerceCtas = commerceCtas === VOID ? this.m1f_1 : commerceCtas;
|
|
1507
|
+
composerId = composerId === VOID ? this.n1f_1 : composerId;
|
|
1508
|
+
contributors = contributors === VOID ? this.o1f_1 : contributors;
|
|
1509
|
+
cuisineIds = cuisineIds === VOID ? this.p1f_1 : cuisineIds;
|
|
1510
|
+
description = description === VOID ? this.q1f_1 : description;
|
|
1511
|
+
difficultyLevel = difficultyLevel === VOID ? this.r1f_1 : difficultyLevel;
|
|
1512
|
+
featuredImage = featuredImage === VOID ? this.s1f_1 : featuredImage;
|
|
1513
|
+
id = id === VOID ? this.t1f_1 : id;
|
|
1514
|
+
ingredients = ingredients === VOID ? this.u1f_1 : ingredients;
|
|
1515
|
+
instructions = instructions === VOID ? this.v1f_1 : instructions;
|
|
1516
|
+
isAppReady = isAppReady === VOID ? this.w1f_1 : isAppReady;
|
|
1517
|
+
mealTypeIds = mealTypeIds === VOID ? this.x1f_1 : mealTypeIds;
|
|
1518
|
+
serves = serves === VOID ? this.y1f_1 : serves;
|
|
1519
|
+
suitableForDietIds = suitableForDietIds === VOID ? this.z1f_1 : suitableForDietIds;
|
|
1520
|
+
techniquesUsedIds = techniquesUsedIds === VOID ? this.a1g_1 : techniquesUsedIds;
|
|
1521
|
+
timings = timings === VOID ? this.b1g_1 : timings;
|
|
1522
|
+
title = title === VOID ? this.c1g_1 : title;
|
|
1523
|
+
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? this.d1g_1 : utensilsAndApplianceIds;
|
|
1524
|
+
webPublicationDate = webPublicationDate === VOID ? this.e1g_1 : webPublicationDate;
|
|
1525
|
+
return $super === VOID ? this.m1h(bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate) : $super.m1h.call(this, bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate);
|
|
1527
1526
|
};
|
|
1528
1527
|
protoOf(RecipeV3).toString = function () {
|
|
1529
|
-
return 'RecipeV3(bookCredit=' + this.
|
|
1528
|
+
return 'RecipeV3(bookCredit=' + this.i1f_1 + ', byline=' + toString(this.j1f_1) + ', canonicalArticle=' + this.k1f_1 + ', celebrationIds=' + toString(this.l1f_1) + ', commerceCtas=' + toString(this.m1f_1) + ', composerId=' + this.n1f_1 + ', contributors=' + toString(this.o1f_1) + ', cuisineIds=' + toString(this.p1f_1) + ', description=' + this.q1f_1 + ', difficultyLevel=' + this.r1f_1 + ', featuredImage=' + toString(this.s1f_1) + ', id=' + this.t1f_1 + ', ingredients=' + toString(this.u1f_1) + ', instructions=' + toString(this.v1f_1) + ', isAppReady=' + this.w1f_1 + ', mealTypeIds=' + toString(this.x1f_1) + ', serves=' + toString(this.y1f_1) + ', suitableForDietIds=' + toString(this.z1f_1) + ', techniquesUsedIds=' + toString(this.a1g_1) + ', timings=' + toString(this.b1g_1) + ', title=' + this.c1g_1 + ', utensilsAndApplianceIds=' + toString(this.d1g_1) + ', webPublicationDate=' + this.e1g_1 + ')';
|
|
1530
1529
|
};
|
|
1531
1530
|
protoOf(RecipeV3).hashCode = function () {
|
|
1532
|
-
var result = this.
|
|
1531
|
+
var result = this.i1f_1 == null ? 0 : getStringHashCode(this.i1f_1);
|
|
1532
|
+
result = imul(result, 31) + (this.j1f_1 == null ? 0 : hashCode(this.j1f_1)) | 0;
|
|
1533
|
+
result = imul(result, 31) + (this.k1f_1 == null ? 0 : getStringHashCode(this.k1f_1)) | 0;
|
|
1534
|
+
result = imul(result, 31) + (this.l1f_1 == null ? 0 : hashCode(this.l1f_1)) | 0;
|
|
1533
1535
|
result = imul(result, 31) + (this.m1f_1 == null ? 0 : hashCode(this.m1f_1)) | 0;
|
|
1534
1536
|
result = imul(result, 31) + (this.n1f_1 == null ? 0 : getStringHashCode(this.n1f_1)) | 0;
|
|
1535
1537
|
result = imul(result, 31) + (this.o1f_1 == null ? 0 : hashCode(this.o1f_1)) | 0;
|
|
1536
1538
|
result = imul(result, 31) + (this.p1f_1 == null ? 0 : hashCode(this.p1f_1)) | 0;
|
|
1537
1539
|
result = imul(result, 31) + (this.q1f_1 == null ? 0 : getStringHashCode(this.q1f_1)) | 0;
|
|
1538
|
-
result = imul(result, 31) + (this.r1f_1 == null ? 0 :
|
|
1539
|
-
result = imul(result, 31) + (this.s1f_1 == null ? 0 :
|
|
1540
|
-
result = imul(result, 31) +
|
|
1541
|
-
result = imul(result, 31) + (this.u1f_1 == null ? 0 :
|
|
1542
|
-
result = imul(result, 31) + (this.v1f_1 == null ? 0 : this.v1f_1
|
|
1543
|
-
result = imul(result, 31) +
|
|
1540
|
+
result = imul(result, 31) + (this.r1f_1 == null ? 0 : getStringHashCode(this.r1f_1)) | 0;
|
|
1541
|
+
result = imul(result, 31) + (this.s1f_1 == null ? 0 : this.s1f_1.hashCode()) | 0;
|
|
1542
|
+
result = imul(result, 31) + getStringHashCode(this.t1f_1) | 0;
|
|
1543
|
+
result = imul(result, 31) + (this.u1f_1 == null ? 0 : hashCode(this.u1f_1)) | 0;
|
|
1544
|
+
result = imul(result, 31) + (this.v1f_1 == null ? 0 : hashCode(this.v1f_1)) | 0;
|
|
1545
|
+
result = imul(result, 31) + (this.w1f_1 == null ? 0 : getBooleanHashCode(this.w1f_1)) | 0;
|
|
1544
1546
|
result = imul(result, 31) + (this.x1f_1 == null ? 0 : hashCode(this.x1f_1)) | 0;
|
|
1545
1547
|
result = imul(result, 31) + (this.y1f_1 == null ? 0 : hashCode(this.y1f_1)) | 0;
|
|
1546
|
-
result = imul(result, 31) + (this.z1f_1 == null ? 0 :
|
|
1548
|
+
result = imul(result, 31) + (this.z1f_1 == null ? 0 : hashCode(this.z1f_1)) | 0;
|
|
1547
1549
|
result = imul(result, 31) + (this.a1g_1 == null ? 0 : hashCode(this.a1g_1)) | 0;
|
|
1548
1550
|
result = imul(result, 31) + (this.b1g_1 == null ? 0 : hashCode(this.b1g_1)) | 0;
|
|
1549
|
-
result = imul(result, 31) + (this.c1g_1 == null ? 0 :
|
|
1551
|
+
result = imul(result, 31) + (this.c1g_1 == null ? 0 : getStringHashCode(this.c1g_1)) | 0;
|
|
1550
1552
|
result = imul(result, 31) + (this.d1g_1 == null ? 0 : hashCode(this.d1g_1)) | 0;
|
|
1551
|
-
result = imul(result, 31) + (this.e1g_1 == null ? 0 :
|
|
1552
|
-
result = imul(result, 31) + (this.f1g_1 == null ? 0 : getStringHashCode(this.f1g_1)) | 0;
|
|
1553
|
-
result = imul(result, 31) + (this.g1g_1 == null ? 0 : hashCode(this.g1g_1)) | 0;
|
|
1554
|
-
result = imul(result, 31) + (this.h1g_1 == null ? 0 : getStringHashCode(this.h1g_1)) | 0;
|
|
1553
|
+
result = imul(result, 31) + (this.e1g_1 == null ? 0 : getStringHashCode(this.e1g_1)) | 0;
|
|
1555
1554
|
return result;
|
|
1556
1555
|
};
|
|
1557
1556
|
protoOf(RecipeV3).equals = function (other) {
|
|
@@ -1559,7 +1558,13 @@
|
|
|
1559
1558
|
return true;
|
|
1560
1559
|
if (!(other instanceof RecipeV3))
|
|
1561
1560
|
return false;
|
|
1562
|
-
if (!(this.
|
|
1561
|
+
if (!(this.i1f_1 == other.i1f_1))
|
|
1562
|
+
return false;
|
|
1563
|
+
if (!equals(this.j1f_1, other.j1f_1))
|
|
1564
|
+
return false;
|
|
1565
|
+
if (!(this.k1f_1 == other.k1f_1))
|
|
1566
|
+
return false;
|
|
1567
|
+
if (!equals(this.l1f_1, other.l1f_1))
|
|
1563
1568
|
return false;
|
|
1564
1569
|
if (!equals(this.m1f_1, other.m1f_1))
|
|
1565
1570
|
return false;
|
|
@@ -1571,107 +1576,101 @@
|
|
|
1571
1576
|
return false;
|
|
1572
1577
|
if (!(this.q1f_1 == other.q1f_1))
|
|
1573
1578
|
return false;
|
|
1574
|
-
if (!
|
|
1579
|
+
if (!(this.r1f_1 == other.r1f_1))
|
|
1575
1580
|
return false;
|
|
1576
1581
|
if (!equals(this.s1f_1, other.s1f_1))
|
|
1577
1582
|
return false;
|
|
1578
|
-
if (!(this.t1f_1
|
|
1583
|
+
if (!(this.t1f_1 === other.t1f_1))
|
|
1579
1584
|
return false;
|
|
1580
|
-
if (!(this.u1f_1
|
|
1585
|
+
if (!equals(this.u1f_1, other.u1f_1))
|
|
1581
1586
|
return false;
|
|
1582
1587
|
if (!equals(this.v1f_1, other.v1f_1))
|
|
1583
1588
|
return false;
|
|
1584
|
-
if (!(this.w1f_1
|
|
1589
|
+
if (!(this.w1f_1 == other.w1f_1))
|
|
1585
1590
|
return false;
|
|
1586
1591
|
if (!equals(this.x1f_1, other.x1f_1))
|
|
1587
1592
|
return false;
|
|
1588
1593
|
if (!equals(this.y1f_1, other.y1f_1))
|
|
1589
1594
|
return false;
|
|
1590
|
-
if (!(this.z1f_1
|
|
1595
|
+
if (!equals(this.z1f_1, other.z1f_1))
|
|
1591
1596
|
return false;
|
|
1592
1597
|
if (!equals(this.a1g_1, other.a1g_1))
|
|
1593
1598
|
return false;
|
|
1594
1599
|
if (!equals(this.b1g_1, other.b1g_1))
|
|
1595
1600
|
return false;
|
|
1596
|
-
if (!
|
|
1601
|
+
if (!(this.c1g_1 == other.c1g_1))
|
|
1597
1602
|
return false;
|
|
1598
1603
|
if (!equals(this.d1g_1, other.d1g_1))
|
|
1599
1604
|
return false;
|
|
1600
|
-
if (!
|
|
1601
|
-
return false;
|
|
1602
|
-
if (!(this.f1g_1 == other.f1g_1))
|
|
1603
|
-
return false;
|
|
1604
|
-
if (!equals(this.g1g_1, other.g1g_1))
|
|
1605
|
-
return false;
|
|
1606
|
-
if (!(this.h1g_1 == other.h1g_1))
|
|
1605
|
+
if (!(this.e1g_1 == other.e1g_1))
|
|
1607
1606
|
return false;
|
|
1608
1607
|
return true;
|
|
1609
1608
|
};
|
|
1610
1609
|
function $serializer_2() {
|
|
1611
1610
|
$serializer_instance_2 = this;
|
|
1612
1611
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.CommerceCta', this, 3);
|
|
1613
|
-
tmp0_serialDesc.
|
|
1614
|
-
tmp0_serialDesc.
|
|
1615
|
-
tmp0_serialDesc.
|
|
1616
|
-
this.
|
|
1617
|
-
}
|
|
1618
|
-
protoOf($serializer_2).
|
|
1619
|
-
var tmp0_desc = this.
|
|
1620
|
-
var tmp1_output = encoder.
|
|
1621
|
-
tmp1_output.
|
|
1622
|
-
tmp1_output.
|
|
1623
|
-
tmp1_output.
|
|
1624
|
-
tmp1_output.
|
|
1625
|
-
};
|
|
1626
|
-
protoOf($serializer_2).
|
|
1627
|
-
return this.
|
|
1628
|
-
};
|
|
1629
|
-
protoOf($serializer_2).
|
|
1630
|
-
var tmp0_desc = this.
|
|
1612
|
+
tmp0_serialDesc.os('sponsorName', false);
|
|
1613
|
+
tmp0_serialDesc.os('territory', false);
|
|
1614
|
+
tmp0_serialDesc.os('url', false);
|
|
1615
|
+
this.n1h_1 = tmp0_serialDesc;
|
|
1616
|
+
}
|
|
1617
|
+
protoOf($serializer_2).o1h = function (encoder, value) {
|
|
1618
|
+
var tmp0_desc = this.n1h_1;
|
|
1619
|
+
var tmp1_output = encoder.fl(tmp0_desc);
|
|
1620
|
+
tmp1_output.tm(tmp0_desc, 0, value.p1h_1);
|
|
1621
|
+
tmp1_output.tm(tmp0_desc, 1, value.q1h_1);
|
|
1622
|
+
tmp1_output.tm(tmp0_desc, 2, value.r1h_1);
|
|
1623
|
+
tmp1_output.gl(tmp0_desc);
|
|
1624
|
+
};
|
|
1625
|
+
protoOf($serializer_2).ii = function (encoder, value) {
|
|
1626
|
+
return this.o1h(encoder, value instanceof CommerceCta ? value : THROW_CCE());
|
|
1627
|
+
};
|
|
1628
|
+
protoOf($serializer_2).ji = function (decoder) {
|
|
1629
|
+
var tmp0_desc = this.n1h_1;
|
|
1631
1630
|
var tmp1_flag = true;
|
|
1632
1631
|
var tmp2_index = 0;
|
|
1633
1632
|
var tmp3_bitMask0 = 0;
|
|
1634
1633
|
var tmp4_local0 = null;
|
|
1635
1634
|
var tmp5_local1 = null;
|
|
1636
1635
|
var tmp6_local2 = null;
|
|
1637
|
-
var tmp7_input = decoder.
|
|
1638
|
-
if (tmp7_input.
|
|
1639
|
-
tmp4_local0 = tmp7_input.
|
|
1636
|
+
var tmp7_input = decoder.fl(tmp0_desc);
|
|
1637
|
+
if (tmp7_input.vl()) {
|
|
1638
|
+
tmp4_local0 = tmp7_input.pl(tmp0_desc, 0);
|
|
1640
1639
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1641
|
-
tmp5_local1 = tmp7_input.
|
|
1640
|
+
tmp5_local1 = tmp7_input.pl(tmp0_desc, 1);
|
|
1642
1641
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1643
|
-
tmp6_local2 = tmp7_input.
|
|
1642
|
+
tmp6_local2 = tmp7_input.pl(tmp0_desc, 2);
|
|
1644
1643
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1645
1644
|
} else
|
|
1646
1645
|
while (tmp1_flag) {
|
|
1647
|
-
tmp2_index = tmp7_input.
|
|
1646
|
+
tmp2_index = tmp7_input.wl(tmp0_desc);
|
|
1648
1647
|
switch (tmp2_index) {
|
|
1649
1648
|
case -1:
|
|
1650
1649
|
tmp1_flag = false;
|
|
1651
1650
|
break;
|
|
1652
1651
|
case 0:
|
|
1653
|
-
tmp4_local0 = tmp7_input.
|
|
1652
|
+
tmp4_local0 = tmp7_input.pl(tmp0_desc, 0);
|
|
1654
1653
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1655
1654
|
break;
|
|
1656
1655
|
case 1:
|
|
1657
|
-
tmp5_local1 = tmp7_input.
|
|
1656
|
+
tmp5_local1 = tmp7_input.pl(tmp0_desc, 1);
|
|
1658
1657
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1659
1658
|
break;
|
|
1660
1659
|
case 2:
|
|
1661
|
-
tmp6_local2 = tmp7_input.
|
|
1660
|
+
tmp6_local2 = tmp7_input.pl(tmp0_desc, 2);
|
|
1662
1661
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1663
1662
|
break;
|
|
1664
1663
|
default:
|
|
1665
1664
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1666
1665
|
}
|
|
1667
1666
|
}
|
|
1668
|
-
tmp7_input.
|
|
1667
|
+
tmp7_input.gl(tmp0_desc);
|
|
1669
1668
|
return CommerceCta_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1670
1669
|
};
|
|
1671
|
-
protoOf($serializer_2).
|
|
1672
|
-
return this.
|
|
1670
|
+
protoOf($serializer_2).hi = function () {
|
|
1671
|
+
return this.n1h_1;
|
|
1673
1672
|
};
|
|
1674
|
-
protoOf($serializer_2).
|
|
1673
|
+
protoOf($serializer_2).qs = function () {
|
|
1675
1674
|
// Inline function 'kotlin.arrayOf' call
|
|
1676
1675
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1677
1676
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1685,11 +1684,11 @@
|
|
|
1685
1684
|
}
|
|
1686
1685
|
function CommerceCta_init_$Init$(seen0, sponsorName, territory, url, serializationConstructorMarker, $this) {
|
|
1687
1686
|
if (!(7 === (7 & seen0))) {
|
|
1688
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_2().
|
|
1687
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_2().n1h_1);
|
|
1689
1688
|
}
|
|
1690
|
-
$this.
|
|
1691
|
-
$this.
|
|
1692
|
-
$this.
|
|
1689
|
+
$this.p1h_1 = sponsorName;
|
|
1690
|
+
$this.q1h_1 = territory;
|
|
1691
|
+
$this.r1h_1 = url;
|
|
1693
1692
|
return $this;
|
|
1694
1693
|
}
|
|
1695
1694
|
function CommerceCta_init_$Create$(seen0, sponsorName, territory, url, serializationConstructorMarker) {
|
|
@@ -1698,12 +1697,12 @@
|
|
|
1698
1697
|
function CommerceCta() {
|
|
1699
1698
|
}
|
|
1700
1699
|
protoOf(CommerceCta).toString = function () {
|
|
1701
|
-
return 'CommerceCta(sponsorName=' + this.
|
|
1700
|
+
return 'CommerceCta(sponsorName=' + this.p1h_1 + ', territory=' + this.q1h_1 + ', url=' + this.r1h_1 + ')';
|
|
1702
1701
|
};
|
|
1703
1702
|
protoOf(CommerceCta).hashCode = function () {
|
|
1704
|
-
var result = getStringHashCode(this.
|
|
1705
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1706
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1703
|
+
var result = getStringHashCode(this.p1h_1);
|
|
1704
|
+
result = imul(result, 31) + getStringHashCode(this.q1h_1) | 0;
|
|
1705
|
+
result = imul(result, 31) + getStringHashCode(this.r1h_1) | 0;
|
|
1707
1706
|
return result;
|
|
1708
1707
|
};
|
|
1709
1708
|
protoOf(CommerceCta).equals = function (other) {
|
|
@@ -1711,55 +1710,55 @@
|
|
|
1711
1710
|
return true;
|
|
1712
1711
|
if (!(other instanceof CommerceCta))
|
|
1713
1712
|
return false;
|
|
1714
|
-
if (!(this.
|
|
1713
|
+
if (!(this.p1h_1 === other.p1h_1))
|
|
1715
1714
|
return false;
|
|
1716
|
-
if (!(this.
|
|
1715
|
+
if (!(this.q1h_1 === other.q1h_1))
|
|
1717
1716
|
return false;
|
|
1718
|
-
if (!(this.
|
|
1717
|
+
if (!(this.r1h_1 === other.r1h_1))
|
|
1719
1718
|
return false;
|
|
1720
1719
|
return true;
|
|
1721
1720
|
};
|
|
1722
1721
|
function $serializer_3() {
|
|
1723
1722
|
$serializer_instance_3 = this;
|
|
1724
1723
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Image', this, 8);
|
|
1725
|
-
tmp0_serialDesc.
|
|
1726
|
-
tmp0_serialDesc.
|
|
1727
|
-
tmp0_serialDesc.
|
|
1728
|
-
tmp0_serialDesc.
|
|
1729
|
-
tmp0_serialDesc.
|
|
1730
|
-
tmp0_serialDesc.
|
|
1731
|
-
tmp0_serialDesc.
|
|
1732
|
-
tmp0_serialDesc.
|
|
1733
|
-
this.
|
|
1734
|
-
}
|
|
1735
|
-
protoOf($serializer_3).
|
|
1736
|
-
var tmp0_desc = this.
|
|
1737
|
-
var tmp1_output = encoder.
|
|
1738
|
-
if (tmp1_output.
|
|
1739
|
-
tmp1_output.
|
|
1724
|
+
tmp0_serialDesc.os('caption', true);
|
|
1725
|
+
tmp0_serialDesc.os('cropId', false);
|
|
1726
|
+
tmp0_serialDesc.os('imageType', true);
|
|
1727
|
+
tmp0_serialDesc.os('mediaApiUrl', true);
|
|
1728
|
+
tmp0_serialDesc.os('mediaId', false);
|
|
1729
|
+
tmp0_serialDesc.os('photographer', true);
|
|
1730
|
+
tmp0_serialDesc.os('source', true);
|
|
1731
|
+
tmp0_serialDesc.os('url', false);
|
|
1732
|
+
this.s1h_1 = tmp0_serialDesc;
|
|
1733
|
+
}
|
|
1734
|
+
protoOf($serializer_3).t1h = function (encoder, value) {
|
|
1735
|
+
var tmp0_desc = this.s1h_1;
|
|
1736
|
+
var tmp1_output = encoder.fl(tmp0_desc);
|
|
1737
|
+
if (tmp1_output.bn(tmp0_desc, 0) ? true : !(value.u1h_1 == null)) {
|
|
1738
|
+
tmp1_output.xm(tmp0_desc, 0, StringSerializer_getInstance(), value.u1h_1);
|
|
1740
1739
|
}
|
|
1741
|
-
tmp1_output.
|
|
1742
|
-
if (tmp1_output.
|
|
1743
|
-
tmp1_output.
|
|
1740
|
+
tmp1_output.tm(tmp0_desc, 1, value.v1h_1);
|
|
1741
|
+
if (tmp1_output.bn(tmp0_desc, 2) ? true : !(value.w1h_1 == null)) {
|
|
1742
|
+
tmp1_output.xm(tmp0_desc, 2, StringSerializer_getInstance(), value.w1h_1);
|
|
1744
1743
|
}
|
|
1745
|
-
if (tmp1_output.
|
|
1746
|
-
tmp1_output.
|
|
1744
|
+
if (tmp1_output.bn(tmp0_desc, 3) ? true : !(value.x1h_1 == null)) {
|
|
1745
|
+
tmp1_output.xm(tmp0_desc, 3, StringSerializer_getInstance(), value.x1h_1);
|
|
1747
1746
|
}
|
|
1748
|
-
tmp1_output.
|
|
1749
|
-
if (tmp1_output.
|
|
1750
|
-
tmp1_output.
|
|
1747
|
+
tmp1_output.tm(tmp0_desc, 4, value.y1h_1);
|
|
1748
|
+
if (tmp1_output.bn(tmp0_desc, 5) ? true : !(value.z1h_1 == null)) {
|
|
1749
|
+
tmp1_output.xm(tmp0_desc, 5, StringSerializer_getInstance(), value.z1h_1);
|
|
1751
1750
|
}
|
|
1752
|
-
if (tmp1_output.
|
|
1753
|
-
tmp1_output.
|
|
1751
|
+
if (tmp1_output.bn(tmp0_desc, 6) ? true : !(value.a1i_1 == null)) {
|
|
1752
|
+
tmp1_output.xm(tmp0_desc, 6, StringSerializer_getInstance(), value.a1i_1);
|
|
1754
1753
|
}
|
|
1755
|
-
tmp1_output.
|
|
1756
|
-
tmp1_output.
|
|
1754
|
+
tmp1_output.tm(tmp0_desc, 7, value.b1i_1);
|
|
1755
|
+
tmp1_output.gl(tmp0_desc);
|
|
1757
1756
|
};
|
|
1758
|
-
protoOf($serializer_3).
|
|
1759
|
-
return this.
|
|
1757
|
+
protoOf($serializer_3).ii = function (encoder, value) {
|
|
1758
|
+
return this.t1h(encoder, value instanceof Image ? value : THROW_CCE());
|
|
1760
1759
|
};
|
|
1761
|
-
protoOf($serializer_3).
|
|
1762
|
-
var tmp0_desc = this.
|
|
1760
|
+
protoOf($serializer_3).ji = function (decoder) {
|
|
1761
|
+
var tmp0_desc = this.s1h_1;
|
|
1763
1762
|
var tmp1_flag = true;
|
|
1764
1763
|
var tmp2_index = 0;
|
|
1765
1764
|
var tmp3_bitMask0 = 0;
|
|
@@ -1771,74 +1770,74 @@
|
|
|
1771
1770
|
var tmp9_local5 = null;
|
|
1772
1771
|
var tmp10_local6 = null;
|
|
1773
1772
|
var tmp11_local7 = null;
|
|
1774
|
-
var tmp12_input = decoder.
|
|
1775
|
-
if (tmp12_input.
|
|
1776
|
-
tmp4_local0 = tmp12_input.
|
|
1773
|
+
var tmp12_input = decoder.fl(tmp0_desc);
|
|
1774
|
+
if (tmp12_input.vl()) {
|
|
1775
|
+
tmp4_local0 = tmp12_input.tl(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
1777
1776
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1778
|
-
tmp5_local1 = tmp12_input.
|
|
1777
|
+
tmp5_local1 = tmp12_input.pl(tmp0_desc, 1);
|
|
1779
1778
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1780
|
-
tmp6_local2 = tmp12_input.
|
|
1779
|
+
tmp6_local2 = tmp12_input.tl(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1781
1780
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1782
|
-
tmp7_local3 = tmp12_input.
|
|
1781
|
+
tmp7_local3 = tmp12_input.tl(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
1783
1782
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1784
|
-
tmp8_local4 = tmp12_input.
|
|
1783
|
+
tmp8_local4 = tmp12_input.pl(tmp0_desc, 4);
|
|
1785
1784
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1786
|
-
tmp9_local5 = tmp12_input.
|
|
1785
|
+
tmp9_local5 = tmp12_input.tl(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1787
1786
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1788
|
-
tmp10_local6 = tmp12_input.
|
|
1787
|
+
tmp10_local6 = tmp12_input.tl(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1789
1788
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1790
|
-
tmp11_local7 = tmp12_input.
|
|
1789
|
+
tmp11_local7 = tmp12_input.pl(tmp0_desc, 7);
|
|
1791
1790
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1792
1791
|
} else
|
|
1793
1792
|
while (tmp1_flag) {
|
|
1794
|
-
tmp2_index = tmp12_input.
|
|
1793
|
+
tmp2_index = tmp12_input.wl(tmp0_desc);
|
|
1795
1794
|
switch (tmp2_index) {
|
|
1796
1795
|
case -1:
|
|
1797
1796
|
tmp1_flag = false;
|
|
1798
1797
|
break;
|
|
1799
1798
|
case 0:
|
|
1800
|
-
tmp4_local0 = tmp12_input.
|
|
1799
|
+
tmp4_local0 = tmp12_input.tl(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
1801
1800
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1802
1801
|
break;
|
|
1803
1802
|
case 1:
|
|
1804
|
-
tmp5_local1 = tmp12_input.
|
|
1803
|
+
tmp5_local1 = tmp12_input.pl(tmp0_desc, 1);
|
|
1805
1804
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1806
1805
|
break;
|
|
1807
1806
|
case 2:
|
|
1808
|
-
tmp6_local2 = tmp12_input.
|
|
1807
|
+
tmp6_local2 = tmp12_input.tl(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1809
1808
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1810
1809
|
break;
|
|
1811
1810
|
case 3:
|
|
1812
|
-
tmp7_local3 = tmp12_input.
|
|
1811
|
+
tmp7_local3 = tmp12_input.tl(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
1813
1812
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1814
1813
|
break;
|
|
1815
1814
|
case 4:
|
|
1816
|
-
tmp8_local4 = tmp12_input.
|
|
1815
|
+
tmp8_local4 = tmp12_input.pl(tmp0_desc, 4);
|
|
1817
1816
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1818
1817
|
break;
|
|
1819
1818
|
case 5:
|
|
1820
|
-
tmp9_local5 = tmp12_input.
|
|
1819
|
+
tmp9_local5 = tmp12_input.tl(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1821
1820
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1822
1821
|
break;
|
|
1823
1822
|
case 6:
|
|
1824
|
-
tmp10_local6 = tmp12_input.
|
|
1823
|
+
tmp10_local6 = tmp12_input.tl(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1825
1824
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1826
1825
|
break;
|
|
1827
1826
|
case 7:
|
|
1828
|
-
tmp11_local7 = tmp12_input.
|
|
1827
|
+
tmp11_local7 = tmp12_input.pl(tmp0_desc, 7);
|
|
1829
1828
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1830
1829
|
break;
|
|
1831
1830
|
default:
|
|
1832
1831
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1833
1832
|
}
|
|
1834
1833
|
}
|
|
1835
|
-
tmp12_input.
|
|
1834
|
+
tmp12_input.gl(tmp0_desc);
|
|
1836
1835
|
return Image_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1837
1836
|
};
|
|
1838
|
-
protoOf($serializer_3).
|
|
1839
|
-
return this.
|
|
1837
|
+
protoOf($serializer_3).hi = function () {
|
|
1838
|
+
return this.s1h_1;
|
|
1840
1839
|
};
|
|
1841
|
-
protoOf($serializer_3).
|
|
1840
|
+
protoOf($serializer_3).qs = function () {
|
|
1842
1841
|
// Inline function 'kotlin.arrayOf' call
|
|
1843
1842
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1844
1843
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1852,31 +1851,31 @@
|
|
|
1852
1851
|
}
|
|
1853
1852
|
function Image_init_$Init$(seen0, caption, cropId, imageType, mediaApiUrl, mediaId, photographer, source, url, serializationConstructorMarker, $this) {
|
|
1854
1853
|
if (!(146 === (146 & seen0))) {
|
|
1855
|
-
throwMissingFieldException(seen0, 146, $serializer_getInstance_3().
|
|
1854
|
+
throwMissingFieldException(seen0, 146, $serializer_getInstance_3().s1h_1);
|
|
1856
1855
|
}
|
|
1857
1856
|
if (0 === (seen0 & 1))
|
|
1858
|
-
$this.
|
|
1857
|
+
$this.u1h_1 = null;
|
|
1859
1858
|
else
|
|
1860
|
-
$this.
|
|
1861
|
-
$this.
|
|
1859
|
+
$this.u1h_1 = caption;
|
|
1860
|
+
$this.v1h_1 = cropId;
|
|
1862
1861
|
if (0 === (seen0 & 4))
|
|
1863
|
-
$this.
|
|
1862
|
+
$this.w1h_1 = null;
|
|
1864
1863
|
else
|
|
1865
|
-
$this.
|
|
1864
|
+
$this.w1h_1 = imageType;
|
|
1866
1865
|
if (0 === (seen0 & 8))
|
|
1867
|
-
$this.
|
|
1866
|
+
$this.x1h_1 = null;
|
|
1868
1867
|
else
|
|
1869
|
-
$this.
|
|
1870
|
-
$this.
|
|
1868
|
+
$this.x1h_1 = mediaApiUrl;
|
|
1869
|
+
$this.y1h_1 = mediaId;
|
|
1871
1870
|
if (0 === (seen0 & 32))
|
|
1872
|
-
$this.
|
|
1871
|
+
$this.z1h_1 = null;
|
|
1873
1872
|
else
|
|
1874
|
-
$this.
|
|
1873
|
+
$this.z1h_1 = photographer;
|
|
1875
1874
|
if (0 === (seen0 & 64))
|
|
1876
|
-
$this.
|
|
1875
|
+
$this.a1i_1 = null;
|
|
1877
1876
|
else
|
|
1878
|
-
$this.
|
|
1879
|
-
$this.
|
|
1877
|
+
$this.a1i_1 = source;
|
|
1878
|
+
$this.b1i_1 = url;
|
|
1880
1879
|
return $this;
|
|
1881
1880
|
}
|
|
1882
1881
|
function Image_init_$Create$(seen0, caption, cropId, imageType, mediaApiUrl, mediaId, photographer, source, url, serializationConstructorMarker) {
|
|
@@ -1885,17 +1884,17 @@
|
|
|
1885
1884
|
function Image() {
|
|
1886
1885
|
}
|
|
1887
1886
|
protoOf(Image).toString = function () {
|
|
1888
|
-
return 'Image(caption=' + this.
|
|
1887
|
+
return 'Image(caption=' + this.u1h_1 + ', cropId=' + this.v1h_1 + ', imageType=' + this.w1h_1 + ', mediaApiUrl=' + this.x1h_1 + ', mediaId=' + this.y1h_1 + ', photographer=' + this.z1h_1 + ', source=' + this.a1i_1 + ', url=' + this.b1i_1 + ')';
|
|
1889
1888
|
};
|
|
1890
1889
|
protoOf(Image).hashCode = function () {
|
|
1891
|
-
var result = this.
|
|
1890
|
+
var result = this.u1h_1 == null ? 0 : getStringHashCode(this.u1h_1);
|
|
1891
|
+
result = imul(result, 31) + getStringHashCode(this.v1h_1) | 0;
|
|
1892
|
+
result = imul(result, 31) + (this.w1h_1 == null ? 0 : getStringHashCode(this.w1h_1)) | 0;
|
|
1893
|
+
result = imul(result, 31) + (this.x1h_1 == null ? 0 : getStringHashCode(this.x1h_1)) | 0;
|
|
1892
1894
|
result = imul(result, 31) + getStringHashCode(this.y1h_1) | 0;
|
|
1893
1895
|
result = imul(result, 31) + (this.z1h_1 == null ? 0 : getStringHashCode(this.z1h_1)) | 0;
|
|
1894
1896
|
result = imul(result, 31) + (this.a1i_1 == null ? 0 : getStringHashCode(this.a1i_1)) | 0;
|
|
1895
1897
|
result = imul(result, 31) + getStringHashCode(this.b1i_1) | 0;
|
|
1896
|
-
result = imul(result, 31) + (this.c1i_1 == null ? 0 : getStringHashCode(this.c1i_1)) | 0;
|
|
1897
|
-
result = imul(result, 31) + (this.d1i_1 == null ? 0 : getStringHashCode(this.d1i_1)) | 0;
|
|
1898
|
-
result = imul(result, 31) + getStringHashCode(this.e1i_1) | 0;
|
|
1899
1898
|
return result;
|
|
1900
1899
|
};
|
|
1901
1900
|
protoOf(Image).equals = function (other) {
|
|
@@ -1903,6 +1902,12 @@
|
|
|
1903
1902
|
return true;
|
|
1904
1903
|
if (!(other instanceof Image))
|
|
1905
1904
|
return false;
|
|
1905
|
+
if (!(this.u1h_1 == other.u1h_1))
|
|
1906
|
+
return false;
|
|
1907
|
+
if (!(this.v1h_1 === other.v1h_1))
|
|
1908
|
+
return false;
|
|
1909
|
+
if (!(this.w1h_1 == other.w1h_1))
|
|
1910
|
+
return false;
|
|
1906
1911
|
if (!(this.x1h_1 == other.x1h_1))
|
|
1907
1912
|
return false;
|
|
1908
1913
|
if (!(this.y1h_1 === other.y1h_1))
|
|
@@ -1913,12 +1918,6 @@
|
|
|
1913
1918
|
return false;
|
|
1914
1919
|
if (!(this.b1i_1 === other.b1i_1))
|
|
1915
1920
|
return false;
|
|
1916
|
-
if (!(this.c1i_1 == other.c1i_1))
|
|
1917
|
-
return false;
|
|
1918
|
-
if (!(this.d1i_1 == other.d1i_1))
|
|
1919
|
-
return false;
|
|
1920
|
-
if (!(this.e1i_1 === other.e1i_1))
|
|
1921
|
-
return false;
|
|
1922
1921
|
return true;
|
|
1923
1922
|
};
|
|
1924
1923
|
function IngredientsList$Companion$$childSerializers$_anonymous__y7k6ja() {
|
|
@@ -1931,7 +1930,7 @@
|
|
|
1931
1930
|
// Inline function 'kotlin.arrayOf' call
|
|
1932
1931
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1933
1932
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1934
|
-
tmp.
|
|
1933
|
+
tmp.c1i_1 = [lazy(tmp_0, IngredientsList$Companion$$childSerializers$_anonymous__y7k6ja), null];
|
|
1935
1934
|
}
|
|
1936
1935
|
var Companion_instance_3;
|
|
1937
1936
|
function Companion_getInstance_2() {
|
|
@@ -1942,70 +1941,70 @@
|
|
|
1942
1941
|
function $serializer_4() {
|
|
1943
1942
|
$serializer_instance_4 = this;
|
|
1944
1943
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.IngredientsList', this, 2);
|
|
1945
|
-
tmp0_serialDesc.
|
|
1946
|
-
tmp0_serialDesc.
|
|
1947
|
-
this.
|
|
1948
|
-
}
|
|
1949
|
-
protoOf($serializer_4).
|
|
1950
|
-
var tmp0_desc = this.
|
|
1951
|
-
var tmp1_output = encoder.
|
|
1952
|
-
var tmp2_cached = Companion_getInstance_2().
|
|
1953
|
-
if (tmp1_output.
|
|
1954
|
-
tmp1_output.
|
|
1944
|
+
tmp0_serialDesc.os('ingredientsList', true);
|
|
1945
|
+
tmp0_serialDesc.os('recipeSection', true);
|
|
1946
|
+
this.d1i_1 = tmp0_serialDesc;
|
|
1947
|
+
}
|
|
1948
|
+
protoOf($serializer_4).e1i = function (encoder, value) {
|
|
1949
|
+
var tmp0_desc = this.d1i_1;
|
|
1950
|
+
var tmp1_output = encoder.fl(tmp0_desc);
|
|
1951
|
+
var tmp2_cached = Companion_getInstance_2().c1i_1;
|
|
1952
|
+
if (tmp1_output.bn(tmp0_desc, 0) ? true : !(value.f1g_1 == null)) {
|
|
1953
|
+
tmp1_output.xm(tmp0_desc, 0, tmp2_cached[0].f2(), value.f1g_1);
|
|
1955
1954
|
}
|
|
1956
|
-
if (tmp1_output.
|
|
1957
|
-
tmp1_output.
|
|
1955
|
+
if (tmp1_output.bn(tmp0_desc, 1) ? true : !(value.g1g_1 == null)) {
|
|
1956
|
+
tmp1_output.xm(tmp0_desc, 1, StringSerializer_getInstance(), value.g1g_1);
|
|
1958
1957
|
}
|
|
1959
|
-
tmp1_output.
|
|
1958
|
+
tmp1_output.gl(tmp0_desc);
|
|
1960
1959
|
};
|
|
1961
|
-
protoOf($serializer_4).
|
|
1962
|
-
return this.
|
|
1960
|
+
protoOf($serializer_4).ii = function (encoder, value) {
|
|
1961
|
+
return this.e1i(encoder, value instanceof IngredientsList ? value : THROW_CCE());
|
|
1963
1962
|
};
|
|
1964
|
-
protoOf($serializer_4).
|
|
1965
|
-
var tmp0_desc = this.
|
|
1963
|
+
protoOf($serializer_4).ji = function (decoder) {
|
|
1964
|
+
var tmp0_desc = this.d1i_1;
|
|
1966
1965
|
var tmp1_flag = true;
|
|
1967
1966
|
var tmp2_index = 0;
|
|
1968
1967
|
var tmp3_bitMask0 = 0;
|
|
1969
1968
|
var tmp4_local0 = null;
|
|
1970
1969
|
var tmp5_local1 = null;
|
|
1971
|
-
var tmp6_input = decoder.
|
|
1972
|
-
var tmp7_cached = Companion_getInstance_2().
|
|
1973
|
-
if (tmp6_input.
|
|
1974
|
-
tmp4_local0 = tmp6_input.
|
|
1970
|
+
var tmp6_input = decoder.fl(tmp0_desc);
|
|
1971
|
+
var tmp7_cached = Companion_getInstance_2().c1i_1;
|
|
1972
|
+
if (tmp6_input.vl()) {
|
|
1973
|
+
tmp4_local0 = tmp6_input.tl(tmp0_desc, 0, tmp7_cached[0].f2(), tmp4_local0);
|
|
1975
1974
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1976
|
-
tmp5_local1 = tmp6_input.
|
|
1975
|
+
tmp5_local1 = tmp6_input.tl(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1977
1976
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1978
1977
|
} else
|
|
1979
1978
|
while (tmp1_flag) {
|
|
1980
|
-
tmp2_index = tmp6_input.
|
|
1979
|
+
tmp2_index = tmp6_input.wl(tmp0_desc);
|
|
1981
1980
|
switch (tmp2_index) {
|
|
1982
1981
|
case -1:
|
|
1983
1982
|
tmp1_flag = false;
|
|
1984
1983
|
break;
|
|
1985
1984
|
case 0:
|
|
1986
|
-
tmp4_local0 = tmp6_input.
|
|
1985
|
+
tmp4_local0 = tmp6_input.tl(tmp0_desc, 0, tmp7_cached[0].f2(), tmp4_local0);
|
|
1987
1986
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1988
1987
|
break;
|
|
1989
1988
|
case 1:
|
|
1990
|
-
tmp5_local1 = tmp6_input.
|
|
1989
|
+
tmp5_local1 = tmp6_input.tl(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1991
1990
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1992
1991
|
break;
|
|
1993
1992
|
default:
|
|
1994
1993
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1995
1994
|
}
|
|
1996
1995
|
}
|
|
1997
|
-
tmp6_input.
|
|
1996
|
+
tmp6_input.gl(tmp0_desc);
|
|
1998
1997
|
return IngredientsList_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1999
1998
|
};
|
|
2000
|
-
protoOf($serializer_4).
|
|
2001
|
-
return this.
|
|
1999
|
+
protoOf($serializer_4).hi = function () {
|
|
2000
|
+
return this.d1i_1;
|
|
2002
2001
|
};
|
|
2003
|
-
protoOf($serializer_4).
|
|
2004
|
-
var tmp0_cached = Companion_getInstance_2().
|
|
2002
|
+
protoOf($serializer_4).qs = function () {
|
|
2003
|
+
var tmp0_cached = Companion_getInstance_2().c1i_1;
|
|
2005
2004
|
// Inline function 'kotlin.arrayOf' call
|
|
2006
2005
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2007
2006
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2008
|
-
return [get_nullable(tmp0_cached[0].
|
|
2007
|
+
return [get_nullable(tmp0_cached[0].f2()), get_nullable(StringSerializer_getInstance())];
|
|
2009
2008
|
};
|
|
2010
2009
|
var $serializer_instance_4;
|
|
2011
2010
|
function $serializer_getInstance_4() {
|
|
@@ -2015,16 +2014,16 @@
|
|
|
2015
2014
|
}
|
|
2016
2015
|
function IngredientsList_init_$Init$(seen0, ingredientsList, recipeSection, serializationConstructorMarker, $this) {
|
|
2017
2016
|
if (!(0 === (0 & seen0))) {
|
|
2018
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_4().
|
|
2017
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_4().d1i_1);
|
|
2019
2018
|
}
|
|
2020
2019
|
if (0 === (seen0 & 1))
|
|
2021
|
-
$this.
|
|
2020
|
+
$this.f1g_1 = null;
|
|
2022
2021
|
else
|
|
2023
|
-
$this.
|
|
2022
|
+
$this.f1g_1 = ingredientsList;
|
|
2024
2023
|
if (0 === (seen0 & 2))
|
|
2025
|
-
$this.
|
|
2024
|
+
$this.g1g_1 = null;
|
|
2026
2025
|
else
|
|
2027
|
-
$this.
|
|
2026
|
+
$this.g1g_1 = recipeSection;
|
|
2028
2027
|
return $this;
|
|
2029
2028
|
}
|
|
2030
2029
|
function IngredientsList_init_$Create$(seen0, ingredientsList, recipeSection, serializationConstructorMarker) {
|
|
@@ -2034,15 +2033,15 @@
|
|
|
2034
2033
|
Companion_getInstance_2();
|
|
2035
2034
|
ingredientsList = ingredientsList === VOID ? null : ingredientsList;
|
|
2036
2035
|
recipeSection = recipeSection === VOID ? null : recipeSection;
|
|
2037
|
-
this.
|
|
2038
|
-
this.
|
|
2036
|
+
this.f1g_1 = ingredientsList;
|
|
2037
|
+
this.g1g_1 = recipeSection;
|
|
2039
2038
|
}
|
|
2040
2039
|
protoOf(IngredientsList).toString = function () {
|
|
2041
|
-
return 'IngredientsList(ingredientsList=' + toString(this.
|
|
2040
|
+
return 'IngredientsList(ingredientsList=' + toString(this.f1g_1) + ', recipeSection=' + this.g1g_1 + ')';
|
|
2042
2041
|
};
|
|
2043
2042
|
protoOf(IngredientsList).hashCode = function () {
|
|
2044
|
-
var result = this.
|
|
2045
|
-
result = imul(result, 31) + (this.
|
|
2043
|
+
var result = this.f1g_1 == null ? 0 : hashCode(this.f1g_1);
|
|
2044
|
+
result = imul(result, 31) + (this.g1g_1 == null ? 0 : getStringHashCode(this.g1g_1)) | 0;
|
|
2046
2045
|
return result;
|
|
2047
2046
|
};
|
|
2048
2047
|
protoOf(IngredientsList).equals = function (other) {
|
|
@@ -2050,9 +2049,9 @@
|
|
|
2050
2049
|
return true;
|
|
2051
2050
|
if (!(other instanceof IngredientsList))
|
|
2052
2051
|
return false;
|
|
2053
|
-
if (!equals(this.
|
|
2052
|
+
if (!equals(this.f1g_1, other.f1g_1))
|
|
2054
2053
|
return false;
|
|
2055
|
-
if (!(this.
|
|
2054
|
+
if (!(this.g1g_1 == other.g1g_1))
|
|
2056
2055
|
return false;
|
|
2057
2056
|
return true;
|
|
2058
2057
|
};
|
|
@@ -2065,54 +2064,54 @@
|
|
|
2065
2064
|
function $serializer_5() {
|
|
2066
2065
|
$serializer_instance_5 = this;
|
|
2067
2066
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.IngredientItem', this, 9);
|
|
2068
|
-
tmp0_serialDesc.
|
|
2069
|
-
tmp0_serialDesc.
|
|
2070
|
-
tmp0_serialDesc.
|
|
2071
|
-
tmp0_serialDesc.
|
|
2072
|
-
tmp0_serialDesc.
|
|
2073
|
-
tmp0_serialDesc.
|
|
2074
|
-
tmp0_serialDesc.
|
|
2075
|
-
tmp0_serialDesc.
|
|
2076
|
-
tmp0_serialDesc.
|
|
2077
|
-
this.
|
|
2078
|
-
}
|
|
2079
|
-
protoOf($serializer_5).
|
|
2080
|
-
var tmp0_desc = this.
|
|
2081
|
-
var tmp1_output = encoder.
|
|
2082
|
-
if (tmp1_output.
|
|
2083
|
-
tmp1_output.
|
|
2067
|
+
tmp0_serialDesc.os('amount', true);
|
|
2068
|
+
tmp0_serialDesc.os('ingredientId', true);
|
|
2069
|
+
tmp0_serialDesc.os('name', true);
|
|
2070
|
+
tmp0_serialDesc.os('optional', true);
|
|
2071
|
+
tmp0_serialDesc.os('prefix', true);
|
|
2072
|
+
tmp0_serialDesc.os('suffix', true);
|
|
2073
|
+
tmp0_serialDesc.os('template', true);
|
|
2074
|
+
tmp0_serialDesc.os('text', true);
|
|
2075
|
+
tmp0_serialDesc.os('unit', true);
|
|
2076
|
+
this.f1i_1 = tmp0_serialDesc;
|
|
2077
|
+
}
|
|
2078
|
+
protoOf($serializer_5).g1i = function (encoder, value) {
|
|
2079
|
+
var tmp0_desc = this.f1i_1;
|
|
2080
|
+
var tmp1_output = encoder.fl(tmp0_desc);
|
|
2081
|
+
if (tmp1_output.bn(tmp0_desc, 0) ? true : !(value.h1g_1 == null)) {
|
|
2082
|
+
tmp1_output.xm(tmp0_desc, 0, $serializer_getInstance_6(), value.h1g_1);
|
|
2084
2083
|
}
|
|
2085
|
-
if (tmp1_output.
|
|
2086
|
-
tmp1_output.
|
|
2084
|
+
if (tmp1_output.bn(tmp0_desc, 1) ? true : !(value.i1g_1 == null)) {
|
|
2085
|
+
tmp1_output.xm(tmp0_desc, 1, StringSerializer_getInstance(), value.i1g_1);
|
|
2087
2086
|
}
|
|
2088
|
-
if (tmp1_output.
|
|
2089
|
-
tmp1_output.
|
|
2087
|
+
if (tmp1_output.bn(tmp0_desc, 2) ? true : !(value.j1g_1 == null)) {
|
|
2088
|
+
tmp1_output.xm(tmp0_desc, 2, StringSerializer_getInstance(), value.j1g_1);
|
|
2090
2089
|
}
|
|
2091
|
-
if (tmp1_output.
|
|
2092
|
-
tmp1_output.
|
|
2090
|
+
if (tmp1_output.bn(tmp0_desc, 3) ? true : !(value.k1g_1 == null)) {
|
|
2091
|
+
tmp1_output.xm(tmp0_desc, 3, BooleanSerializer_getInstance(), value.k1g_1);
|
|
2093
2092
|
}
|
|
2094
|
-
if (tmp1_output.
|
|
2095
|
-
tmp1_output.
|
|
2093
|
+
if (tmp1_output.bn(tmp0_desc, 4) ? true : !(value.l1g_1 == null)) {
|
|
2094
|
+
tmp1_output.xm(tmp0_desc, 4, StringSerializer_getInstance(), value.l1g_1);
|
|
2096
2095
|
}
|
|
2097
|
-
if (tmp1_output.
|
|
2098
|
-
tmp1_output.
|
|
2096
|
+
if (tmp1_output.bn(tmp0_desc, 5) ? true : !(value.m1g_1 == null)) {
|
|
2097
|
+
tmp1_output.xm(tmp0_desc, 5, StringSerializer_getInstance(), value.m1g_1);
|
|
2099
2098
|
}
|
|
2100
|
-
if (tmp1_output.
|
|
2101
|
-
tmp1_output.
|
|
2099
|
+
if (tmp1_output.bn(tmp0_desc, 6) ? true : !(value.n1g_1 == null)) {
|
|
2100
|
+
tmp1_output.xm(tmp0_desc, 6, StringSerializer_getInstance(), value.n1g_1);
|
|
2102
2101
|
}
|
|
2103
|
-
if (tmp1_output.
|
|
2104
|
-
tmp1_output.
|
|
2102
|
+
if (tmp1_output.bn(tmp0_desc, 7) ? true : !(value.o1g_1 == null)) {
|
|
2103
|
+
tmp1_output.xm(tmp0_desc, 7, StringSerializer_getInstance(), value.o1g_1);
|
|
2105
2104
|
}
|
|
2106
|
-
if (tmp1_output.
|
|
2107
|
-
tmp1_output.
|
|
2105
|
+
if (tmp1_output.bn(tmp0_desc, 8) ? true : !(value.p1g_1 == null)) {
|
|
2106
|
+
tmp1_output.xm(tmp0_desc, 8, StringSerializer_getInstance(), value.p1g_1);
|
|
2108
2107
|
}
|
|
2109
|
-
tmp1_output.
|
|
2108
|
+
tmp1_output.gl(tmp0_desc);
|
|
2110
2109
|
};
|
|
2111
|
-
protoOf($serializer_5).
|
|
2112
|
-
return this.
|
|
2110
|
+
protoOf($serializer_5).ii = function (encoder, value) {
|
|
2111
|
+
return this.g1i(encoder, value instanceof IngredientItem ? value : THROW_CCE());
|
|
2113
2112
|
};
|
|
2114
|
-
protoOf($serializer_5).
|
|
2115
|
-
var tmp0_desc = this.
|
|
2113
|
+
protoOf($serializer_5).ji = function (decoder) {
|
|
2114
|
+
var tmp0_desc = this.f1i_1;
|
|
2116
2115
|
var tmp1_flag = true;
|
|
2117
2116
|
var tmp2_index = 0;
|
|
2118
2117
|
var tmp3_bitMask0 = 0;
|
|
@@ -2125,80 +2124,80 @@
|
|
|
2125
2124
|
var tmp10_local6 = null;
|
|
2126
2125
|
var tmp11_local7 = null;
|
|
2127
2126
|
var tmp12_local8 = null;
|
|
2128
|
-
var tmp13_input = decoder.
|
|
2129
|
-
if (tmp13_input.
|
|
2130
|
-
tmp4_local0 = tmp13_input.
|
|
2127
|
+
var tmp13_input = decoder.fl(tmp0_desc);
|
|
2128
|
+
if (tmp13_input.vl()) {
|
|
2129
|
+
tmp4_local0 = tmp13_input.tl(tmp0_desc, 0, $serializer_getInstance_6(), tmp4_local0);
|
|
2131
2130
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2132
|
-
tmp5_local1 = tmp13_input.
|
|
2131
|
+
tmp5_local1 = tmp13_input.tl(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2133
2132
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2134
|
-
tmp6_local2 = tmp13_input.
|
|
2133
|
+
tmp6_local2 = tmp13_input.tl(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2135
2134
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2136
|
-
tmp7_local3 = tmp13_input.
|
|
2135
|
+
tmp7_local3 = tmp13_input.tl(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3);
|
|
2137
2136
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2138
|
-
tmp8_local4 = tmp13_input.
|
|
2137
|
+
tmp8_local4 = tmp13_input.tl(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
2139
2138
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
2140
|
-
tmp9_local5 = tmp13_input.
|
|
2139
|
+
tmp9_local5 = tmp13_input.tl(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
2141
2140
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
2142
|
-
tmp10_local6 = tmp13_input.
|
|
2141
|
+
tmp10_local6 = tmp13_input.tl(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
2143
2142
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
2144
|
-
tmp11_local7 = tmp13_input.
|
|
2143
|
+
tmp11_local7 = tmp13_input.tl(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
2145
2144
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
2146
|
-
tmp12_local8 = tmp13_input.
|
|
2145
|
+
tmp12_local8 = tmp13_input.tl(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
2147
2146
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
2148
2147
|
} else
|
|
2149
2148
|
while (tmp1_flag) {
|
|
2150
|
-
tmp2_index = tmp13_input.
|
|
2149
|
+
tmp2_index = tmp13_input.wl(tmp0_desc);
|
|
2151
2150
|
switch (tmp2_index) {
|
|
2152
2151
|
case -1:
|
|
2153
2152
|
tmp1_flag = false;
|
|
2154
2153
|
break;
|
|
2155
2154
|
case 0:
|
|
2156
|
-
tmp4_local0 = tmp13_input.
|
|
2155
|
+
tmp4_local0 = tmp13_input.tl(tmp0_desc, 0, $serializer_getInstance_6(), tmp4_local0);
|
|
2157
2156
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2158
2157
|
break;
|
|
2159
2158
|
case 1:
|
|
2160
|
-
tmp5_local1 = tmp13_input.
|
|
2159
|
+
tmp5_local1 = tmp13_input.tl(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2161
2160
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2162
2161
|
break;
|
|
2163
2162
|
case 2:
|
|
2164
|
-
tmp6_local2 = tmp13_input.
|
|
2163
|
+
tmp6_local2 = tmp13_input.tl(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2165
2164
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2166
2165
|
break;
|
|
2167
2166
|
case 3:
|
|
2168
|
-
tmp7_local3 = tmp13_input.
|
|
2167
|
+
tmp7_local3 = tmp13_input.tl(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3);
|
|
2169
2168
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2170
2169
|
break;
|
|
2171
2170
|
case 4:
|
|
2172
|
-
tmp8_local4 = tmp13_input.
|
|
2171
|
+
tmp8_local4 = tmp13_input.tl(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
2173
2172
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
2174
2173
|
break;
|
|
2175
2174
|
case 5:
|
|
2176
|
-
tmp9_local5 = tmp13_input.
|
|
2175
|
+
tmp9_local5 = tmp13_input.tl(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
2177
2176
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
2178
2177
|
break;
|
|
2179
2178
|
case 6:
|
|
2180
|
-
tmp10_local6 = tmp13_input.
|
|
2179
|
+
tmp10_local6 = tmp13_input.tl(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
2181
2180
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
2182
2181
|
break;
|
|
2183
2182
|
case 7:
|
|
2184
|
-
tmp11_local7 = tmp13_input.
|
|
2183
|
+
tmp11_local7 = tmp13_input.tl(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
2185
2184
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
2186
2185
|
break;
|
|
2187
2186
|
case 8:
|
|
2188
|
-
tmp12_local8 = tmp13_input.
|
|
2187
|
+
tmp12_local8 = tmp13_input.tl(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
2189
2188
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
2190
2189
|
break;
|
|
2191
2190
|
default:
|
|
2192
2191
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2193
2192
|
}
|
|
2194
2193
|
}
|
|
2195
|
-
tmp13_input.
|
|
2194
|
+
tmp13_input.gl(tmp0_desc);
|
|
2196
2195
|
return IngredientItem_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null);
|
|
2197
2196
|
};
|
|
2198
|
-
protoOf($serializer_5).
|
|
2199
|
-
return this.
|
|
2197
|
+
protoOf($serializer_5).hi = function () {
|
|
2198
|
+
return this.f1i_1;
|
|
2200
2199
|
};
|
|
2201
|
-
protoOf($serializer_5).
|
|
2200
|
+
protoOf($serializer_5).qs = function () {
|
|
2202
2201
|
// Inline function 'kotlin.arrayOf' call
|
|
2203
2202
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2204
2203
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2212,44 +2211,44 @@
|
|
|
2212
2211
|
}
|
|
2213
2212
|
function IngredientItem_init_$Init$(seen0, amount, ingredientId, name, optional, prefix, suffix, template, text, unit, serializationConstructorMarker, $this) {
|
|
2214
2213
|
if (!(0 === (0 & seen0))) {
|
|
2215
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_5().
|
|
2214
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_5().f1i_1);
|
|
2216
2215
|
}
|
|
2217
2216
|
if (0 === (seen0 & 1))
|
|
2218
|
-
$this.
|
|
2217
|
+
$this.h1g_1 = null;
|
|
2219
2218
|
else
|
|
2220
|
-
$this.
|
|
2219
|
+
$this.h1g_1 = amount;
|
|
2221
2220
|
if (0 === (seen0 & 2))
|
|
2222
|
-
$this.
|
|
2221
|
+
$this.i1g_1 = null;
|
|
2223
2222
|
else
|
|
2224
|
-
$this.
|
|
2223
|
+
$this.i1g_1 = ingredientId;
|
|
2225
2224
|
if (0 === (seen0 & 4))
|
|
2226
|
-
$this.
|
|
2225
|
+
$this.j1g_1 = null;
|
|
2227
2226
|
else
|
|
2228
|
-
$this.
|
|
2227
|
+
$this.j1g_1 = name;
|
|
2229
2228
|
if (0 === (seen0 & 8))
|
|
2230
|
-
$this.
|
|
2229
|
+
$this.k1g_1 = null;
|
|
2231
2230
|
else
|
|
2232
|
-
$this.
|
|
2231
|
+
$this.k1g_1 = optional;
|
|
2233
2232
|
if (0 === (seen0 & 16))
|
|
2234
|
-
$this.
|
|
2233
|
+
$this.l1g_1 = null;
|
|
2235
2234
|
else
|
|
2236
|
-
$this.
|
|
2235
|
+
$this.l1g_1 = prefix;
|
|
2237
2236
|
if (0 === (seen0 & 32))
|
|
2238
|
-
$this.
|
|
2237
|
+
$this.m1g_1 = null;
|
|
2239
2238
|
else
|
|
2240
|
-
$this.
|
|
2239
|
+
$this.m1g_1 = suffix;
|
|
2241
2240
|
if (0 === (seen0 & 64))
|
|
2242
|
-
$this.
|
|
2241
|
+
$this.n1g_1 = null;
|
|
2243
2242
|
else
|
|
2244
|
-
$this.
|
|
2243
|
+
$this.n1g_1 = template;
|
|
2245
2244
|
if (0 === (seen0 & 128))
|
|
2246
|
-
$this.
|
|
2245
|
+
$this.o1g_1 = null;
|
|
2247
2246
|
else
|
|
2248
|
-
$this.
|
|
2247
|
+
$this.o1g_1 = text;
|
|
2249
2248
|
if (0 === (seen0 & 256))
|
|
2250
|
-
$this.
|
|
2249
|
+
$this.p1g_1 = null;
|
|
2251
2250
|
else
|
|
2252
|
-
$this.
|
|
2251
|
+
$this.p1g_1 = unit;
|
|
2253
2252
|
return $this;
|
|
2254
2253
|
}
|
|
2255
2254
|
function IngredientItem_init_$Create$(seen0, amount, ingredientId, name, optional, prefix, suffix, template, text, unit, serializationConstructorMarker) {
|
|
@@ -2265,44 +2264,44 @@
|
|
|
2265
2264
|
template = template === VOID ? null : template;
|
|
2266
2265
|
text = text === VOID ? null : text;
|
|
2267
2266
|
unit = unit === VOID ? null : unit;
|
|
2268
|
-
this.
|
|
2269
|
-
this.
|
|
2270
|
-
this.
|
|
2271
|
-
this.
|
|
2272
|
-
this.
|
|
2273
|
-
this.
|
|
2274
|
-
this.
|
|
2275
|
-
this.
|
|
2276
|
-
this.
|
|
2277
|
-
}
|
|
2278
|
-
protoOf(IngredientItem).
|
|
2267
|
+
this.h1g_1 = amount;
|
|
2268
|
+
this.i1g_1 = ingredientId;
|
|
2269
|
+
this.j1g_1 = name;
|
|
2270
|
+
this.k1g_1 = optional;
|
|
2271
|
+
this.l1g_1 = prefix;
|
|
2272
|
+
this.m1g_1 = suffix;
|
|
2273
|
+
this.n1g_1 = template;
|
|
2274
|
+
this.o1g_1 = text;
|
|
2275
|
+
this.p1g_1 = unit;
|
|
2276
|
+
}
|
|
2277
|
+
protoOf(IngredientItem).h1i = function (amount, ingredientId, name, optional, prefix, suffix, template, text, unit) {
|
|
2279
2278
|
return new IngredientItem(amount, ingredientId, name, optional, prefix, suffix, template, text, unit);
|
|
2280
2279
|
};
|
|
2281
|
-
protoOf(IngredientItem).
|
|
2282
|
-
amount = amount === VOID ? this.
|
|
2283
|
-
ingredientId = ingredientId === VOID ? this.
|
|
2284
|
-
name = name === VOID ? this.
|
|
2285
|
-
optional = optional === VOID ? this.
|
|
2286
|
-
prefix = prefix === VOID ? this.
|
|
2287
|
-
suffix = suffix === VOID ? this.
|
|
2288
|
-
template = template === VOID ? this.
|
|
2289
|
-
text = text === VOID ? this.
|
|
2290
|
-
unit = unit === VOID ? this.
|
|
2291
|
-
return $super === VOID ? this.
|
|
2280
|
+
protoOf(IngredientItem).q1g = function (amount, ingredientId, name, optional, prefix, suffix, template, text, unit, $super) {
|
|
2281
|
+
amount = amount === VOID ? this.h1g_1 : amount;
|
|
2282
|
+
ingredientId = ingredientId === VOID ? this.i1g_1 : ingredientId;
|
|
2283
|
+
name = name === VOID ? this.j1g_1 : name;
|
|
2284
|
+
optional = optional === VOID ? this.k1g_1 : optional;
|
|
2285
|
+
prefix = prefix === VOID ? this.l1g_1 : prefix;
|
|
2286
|
+
suffix = suffix === VOID ? this.m1g_1 : suffix;
|
|
2287
|
+
template = template === VOID ? this.n1g_1 : template;
|
|
2288
|
+
text = text === VOID ? this.o1g_1 : text;
|
|
2289
|
+
unit = unit === VOID ? this.p1g_1 : unit;
|
|
2290
|
+
return $super === VOID ? this.h1i(amount, ingredientId, name, optional, prefix, suffix, template, text, unit) : $super.h1i.call(this, amount, ingredientId, name, optional, prefix, suffix, template, text, unit);
|
|
2292
2291
|
};
|
|
2293
2292
|
protoOf(IngredientItem).toString = function () {
|
|
2294
|
-
return 'IngredientItem(amount=' + toString(this.
|
|
2293
|
+
return 'IngredientItem(amount=' + toString(this.h1g_1) + ', ingredientId=' + this.i1g_1 + ', name=' + this.j1g_1 + ', optional=' + this.k1g_1 + ', prefix=' + this.l1g_1 + ', suffix=' + this.m1g_1 + ', template=' + this.n1g_1 + ', text=' + this.o1g_1 + ', unit=' + this.p1g_1 + ')';
|
|
2295
2294
|
};
|
|
2296
2295
|
protoOf(IngredientItem).hashCode = function () {
|
|
2297
|
-
var result = this.
|
|
2296
|
+
var result = this.h1g_1 == null ? 0 : this.h1g_1.hashCode();
|
|
2297
|
+
result = imul(result, 31) + (this.i1g_1 == null ? 0 : getStringHashCode(this.i1g_1)) | 0;
|
|
2298
|
+
result = imul(result, 31) + (this.j1g_1 == null ? 0 : getStringHashCode(this.j1g_1)) | 0;
|
|
2299
|
+
result = imul(result, 31) + (this.k1g_1 == null ? 0 : getBooleanHashCode(this.k1g_1)) | 0;
|
|
2298
2300
|
result = imul(result, 31) + (this.l1g_1 == null ? 0 : getStringHashCode(this.l1g_1)) | 0;
|
|
2299
2301
|
result = imul(result, 31) + (this.m1g_1 == null ? 0 : getStringHashCode(this.m1g_1)) | 0;
|
|
2300
|
-
result = imul(result, 31) + (this.n1g_1 == null ? 0 :
|
|
2302
|
+
result = imul(result, 31) + (this.n1g_1 == null ? 0 : getStringHashCode(this.n1g_1)) | 0;
|
|
2301
2303
|
result = imul(result, 31) + (this.o1g_1 == null ? 0 : getStringHashCode(this.o1g_1)) | 0;
|
|
2302
2304
|
result = imul(result, 31) + (this.p1g_1 == null ? 0 : getStringHashCode(this.p1g_1)) | 0;
|
|
2303
|
-
result = imul(result, 31) + (this.q1g_1 == null ? 0 : getStringHashCode(this.q1g_1)) | 0;
|
|
2304
|
-
result = imul(result, 31) + (this.r1g_1 == null ? 0 : getStringHashCode(this.r1g_1)) | 0;
|
|
2305
|
-
result = imul(result, 31) + (this.s1g_1 == null ? 0 : getStringHashCode(this.s1g_1)) | 0;
|
|
2306
2305
|
return result;
|
|
2307
2306
|
};
|
|
2308
2307
|
protoOf(IngredientItem).equals = function (other) {
|
|
@@ -2310,7 +2309,13 @@
|
|
|
2310
2309
|
return true;
|
|
2311
2310
|
if (!(other instanceof IngredientItem))
|
|
2312
2311
|
return false;
|
|
2313
|
-
if (!equals(this.
|
|
2312
|
+
if (!equals(this.h1g_1, other.h1g_1))
|
|
2313
|
+
return false;
|
|
2314
|
+
if (!(this.i1g_1 == other.i1g_1))
|
|
2315
|
+
return false;
|
|
2316
|
+
if (!(this.j1g_1 == other.j1g_1))
|
|
2317
|
+
return false;
|
|
2318
|
+
if (!(this.k1g_1 == other.k1g_1))
|
|
2314
2319
|
return false;
|
|
2315
2320
|
if (!(this.l1g_1 == other.l1g_1))
|
|
2316
2321
|
return false;
|
|
@@ -2322,12 +2327,6 @@
|
|
|
2322
2327
|
return false;
|
|
2323
2328
|
if (!(this.p1g_1 == other.p1g_1))
|
|
2324
2329
|
return false;
|
|
2325
|
-
if (!(this.q1g_1 == other.q1g_1))
|
|
2326
|
-
return false;
|
|
2327
|
-
if (!(this.r1g_1 == other.r1g_1))
|
|
2328
|
-
return false;
|
|
2329
|
-
if (!(this.s1g_1 == other.s1g_1))
|
|
2330
|
-
return false;
|
|
2331
2330
|
return true;
|
|
2332
2331
|
};
|
|
2333
2332
|
function Companion_4() {
|
|
@@ -2339,63 +2338,63 @@
|
|
|
2339
2338
|
function $serializer_6() {
|
|
2340
2339
|
$serializer_instance_6 = this;
|
|
2341
2340
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Range', this, 2);
|
|
2342
|
-
tmp0_serialDesc.
|
|
2343
|
-
tmp0_serialDesc.
|
|
2344
|
-
this.
|
|
2345
|
-
}
|
|
2346
|
-
protoOf($serializer_6).
|
|
2347
|
-
var tmp0_desc = this.
|
|
2348
|
-
var tmp1_output = encoder.
|
|
2349
|
-
if (tmp1_output.
|
|
2350
|
-
tmp1_output.
|
|
2341
|
+
tmp0_serialDesc.os('max', true);
|
|
2342
|
+
tmp0_serialDesc.os('min', true);
|
|
2343
|
+
this.i1i_1 = tmp0_serialDesc;
|
|
2344
|
+
}
|
|
2345
|
+
protoOf($serializer_6).j1i = function (encoder, value) {
|
|
2346
|
+
var tmp0_desc = this.i1i_1;
|
|
2347
|
+
var tmp1_output = encoder.fl(tmp0_desc);
|
|
2348
|
+
if (tmp1_output.bn(tmp0_desc, 0) ? true : !(value.k1i_1 == null)) {
|
|
2349
|
+
tmp1_output.xm(tmp0_desc, 0, DoubleSerializer_getInstance(), value.k1i_1);
|
|
2351
2350
|
}
|
|
2352
|
-
if (tmp1_output.
|
|
2353
|
-
tmp1_output.
|
|
2351
|
+
if (tmp1_output.bn(tmp0_desc, 1) ? true : !(value.l1i_1 == null)) {
|
|
2352
|
+
tmp1_output.xm(tmp0_desc, 1, DoubleSerializer_getInstance(), value.l1i_1);
|
|
2354
2353
|
}
|
|
2355
|
-
tmp1_output.
|
|
2354
|
+
tmp1_output.gl(tmp0_desc);
|
|
2356
2355
|
};
|
|
2357
|
-
protoOf($serializer_6).
|
|
2358
|
-
return this.
|
|
2356
|
+
protoOf($serializer_6).ii = function (encoder, value) {
|
|
2357
|
+
return this.j1i(encoder, value instanceof Range ? value : THROW_CCE());
|
|
2359
2358
|
};
|
|
2360
|
-
protoOf($serializer_6).
|
|
2361
|
-
var tmp0_desc = this.
|
|
2359
|
+
protoOf($serializer_6).ji = function (decoder) {
|
|
2360
|
+
var tmp0_desc = this.i1i_1;
|
|
2362
2361
|
var tmp1_flag = true;
|
|
2363
2362
|
var tmp2_index = 0;
|
|
2364
2363
|
var tmp3_bitMask0 = 0;
|
|
2365
2364
|
var tmp4_local0 = null;
|
|
2366
2365
|
var tmp5_local1 = null;
|
|
2367
|
-
var tmp6_input = decoder.
|
|
2368
|
-
if (tmp6_input.
|
|
2369
|
-
tmp4_local0 = tmp6_input.
|
|
2366
|
+
var tmp6_input = decoder.fl(tmp0_desc);
|
|
2367
|
+
if (tmp6_input.vl()) {
|
|
2368
|
+
tmp4_local0 = tmp6_input.tl(tmp0_desc, 0, DoubleSerializer_getInstance(), tmp4_local0);
|
|
2370
2369
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2371
|
-
tmp5_local1 = tmp6_input.
|
|
2370
|
+
tmp5_local1 = tmp6_input.tl(tmp0_desc, 1, DoubleSerializer_getInstance(), tmp5_local1);
|
|
2372
2371
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2373
2372
|
} else
|
|
2374
2373
|
while (tmp1_flag) {
|
|
2375
|
-
tmp2_index = tmp6_input.
|
|
2374
|
+
tmp2_index = tmp6_input.wl(tmp0_desc);
|
|
2376
2375
|
switch (tmp2_index) {
|
|
2377
2376
|
case -1:
|
|
2378
2377
|
tmp1_flag = false;
|
|
2379
2378
|
break;
|
|
2380
2379
|
case 0:
|
|
2381
|
-
tmp4_local0 = tmp6_input.
|
|
2380
|
+
tmp4_local0 = tmp6_input.tl(tmp0_desc, 0, DoubleSerializer_getInstance(), tmp4_local0);
|
|
2382
2381
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2383
2382
|
break;
|
|
2384
2383
|
case 1:
|
|
2385
|
-
tmp5_local1 = tmp6_input.
|
|
2384
|
+
tmp5_local1 = tmp6_input.tl(tmp0_desc, 1, DoubleSerializer_getInstance(), tmp5_local1);
|
|
2386
2385
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2387
2386
|
break;
|
|
2388
2387
|
default:
|
|
2389
2388
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2390
2389
|
}
|
|
2391
2390
|
}
|
|
2392
|
-
tmp6_input.
|
|
2391
|
+
tmp6_input.gl(tmp0_desc);
|
|
2393
2392
|
return Range_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
2394
2393
|
};
|
|
2395
|
-
protoOf($serializer_6).
|
|
2396
|
-
return this.
|
|
2394
|
+
protoOf($serializer_6).hi = function () {
|
|
2395
|
+
return this.i1i_1;
|
|
2397
2396
|
};
|
|
2398
|
-
protoOf($serializer_6).
|
|
2397
|
+
protoOf($serializer_6).qs = function () {
|
|
2399
2398
|
// Inline function 'kotlin.arrayOf' call
|
|
2400
2399
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2401
2400
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2409,16 +2408,16 @@
|
|
|
2409
2408
|
}
|
|
2410
2409
|
function Range_init_$Init$(seen0, max, min, serializationConstructorMarker, $this) {
|
|
2411
2410
|
if (!(0 === (0 & seen0))) {
|
|
2412
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_6().
|
|
2411
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_6().i1i_1);
|
|
2413
2412
|
}
|
|
2414
2413
|
if (0 === (seen0 & 1))
|
|
2415
|
-
$this.
|
|
2414
|
+
$this.k1i_1 = null;
|
|
2416
2415
|
else
|
|
2417
|
-
$this.
|
|
2416
|
+
$this.k1i_1 = max;
|
|
2418
2417
|
if (0 === (seen0 & 2))
|
|
2419
|
-
$this.
|
|
2418
|
+
$this.l1i_1 = null;
|
|
2420
2419
|
else
|
|
2421
|
-
$this.
|
|
2420
|
+
$this.l1i_1 = min;
|
|
2422
2421
|
return $this;
|
|
2423
2422
|
}
|
|
2424
2423
|
function Range_init_$Create$(seen0, max, min, serializationConstructorMarker) {
|
|
@@ -2427,15 +2426,15 @@
|
|
|
2427
2426
|
function Range(max, min) {
|
|
2428
2427
|
max = max === VOID ? null : max;
|
|
2429
2428
|
min = min === VOID ? null : min;
|
|
2430
|
-
this.
|
|
2431
|
-
this.
|
|
2429
|
+
this.k1i_1 = max;
|
|
2430
|
+
this.l1i_1 = min;
|
|
2432
2431
|
}
|
|
2433
2432
|
protoOf(Range).toString = function () {
|
|
2434
|
-
return 'Range(max=' + this.
|
|
2433
|
+
return 'Range(max=' + this.k1i_1 + ', min=' + this.l1i_1 + ')';
|
|
2435
2434
|
};
|
|
2436
2435
|
protoOf(Range).hashCode = function () {
|
|
2437
|
-
var result = this.
|
|
2438
|
-
result = imul(result, 31) + (this.
|
|
2436
|
+
var result = this.k1i_1 == null ? 0 : getNumberHashCode(this.k1i_1);
|
|
2437
|
+
result = imul(result, 31) + (this.l1i_1 == null ? 0 : getNumberHashCode(this.l1i_1)) | 0;
|
|
2439
2438
|
return result;
|
|
2440
2439
|
};
|
|
2441
2440
|
protoOf(Range).equals = function (other) {
|
|
@@ -2443,9 +2442,9 @@
|
|
|
2443
2442
|
return true;
|
|
2444
2443
|
if (!(other instanceof Range))
|
|
2445
2444
|
return false;
|
|
2446
|
-
if (!equals(this.
|
|
2445
|
+
if (!equals(this.k1i_1, other.k1i_1))
|
|
2447
2446
|
return false;
|
|
2448
|
-
if (!equals(this.
|
|
2447
|
+
if (!equals(this.l1i_1, other.l1i_1))
|
|
2449
2448
|
return false;
|
|
2450
2449
|
return true;
|
|
2451
2450
|
};
|
|
@@ -2459,7 +2458,7 @@
|
|
|
2459
2458
|
// Inline function 'kotlin.arrayOf' call
|
|
2460
2459
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2461
2460
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2462
|
-
tmp.
|
|
2461
|
+
tmp.m1i_1 = [null, null, lazy(tmp_0, Instruction$Companion$$childSerializers$_anonymous__sbbefw), null];
|
|
2463
2462
|
}
|
|
2464
2463
|
var Companion_instance_6;
|
|
2465
2464
|
function Companion_getInstance_5() {
|
|
@@ -2470,33 +2469,33 @@
|
|
|
2470
2469
|
function $serializer_7() {
|
|
2471
2470
|
$serializer_instance_7 = this;
|
|
2472
2471
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Instruction', this, 4);
|
|
2473
|
-
tmp0_serialDesc.
|
|
2474
|
-
tmp0_serialDesc.
|
|
2475
|
-
tmp0_serialDesc.
|
|
2476
|
-
tmp0_serialDesc.
|
|
2477
|
-
this.
|
|
2478
|
-
}
|
|
2479
|
-
protoOf($serializer_7).
|
|
2480
|
-
var tmp0_desc = this.
|
|
2481
|
-
var tmp1_output = encoder.
|
|
2482
|
-
var tmp2_cached = Companion_getInstance_5().
|
|
2483
|
-
tmp1_output.
|
|
2484
|
-
if (tmp1_output.
|
|
2485
|
-
tmp1_output.
|
|
2472
|
+
tmp0_serialDesc.os('description', false);
|
|
2473
|
+
tmp0_serialDesc.os('descriptionTemplate', true);
|
|
2474
|
+
tmp0_serialDesc.os('images', true);
|
|
2475
|
+
tmp0_serialDesc.os('stepNumber', true);
|
|
2476
|
+
this.n1i_1 = tmp0_serialDesc;
|
|
2477
|
+
}
|
|
2478
|
+
protoOf($serializer_7).o1i = function (encoder, value) {
|
|
2479
|
+
var tmp0_desc = this.n1i_1;
|
|
2480
|
+
var tmp1_output = encoder.fl(tmp0_desc);
|
|
2481
|
+
var tmp2_cached = Companion_getInstance_5().m1i_1;
|
|
2482
|
+
tmp1_output.tm(tmp0_desc, 0, value.r1g_1);
|
|
2483
|
+
if (tmp1_output.bn(tmp0_desc, 1) ? true : !(value.s1g_1 == null)) {
|
|
2484
|
+
tmp1_output.xm(tmp0_desc, 1, StringSerializer_getInstance(), value.s1g_1);
|
|
2486
2485
|
}
|
|
2487
|
-
if (tmp1_output.
|
|
2488
|
-
tmp1_output.
|
|
2486
|
+
if (tmp1_output.bn(tmp0_desc, 2) ? true : !(value.t1g_1 == null)) {
|
|
2487
|
+
tmp1_output.xm(tmp0_desc, 2, tmp2_cached[2].f2(), value.t1g_1);
|
|
2489
2488
|
}
|
|
2490
|
-
if (tmp1_output.
|
|
2491
|
-
tmp1_output.
|
|
2489
|
+
if (tmp1_output.bn(tmp0_desc, 3) ? true : !(value.u1g_1 == null)) {
|
|
2490
|
+
tmp1_output.xm(tmp0_desc, 3, DoubleSerializer_getInstance(), value.u1g_1);
|
|
2492
2491
|
}
|
|
2493
|
-
tmp1_output.
|
|
2492
|
+
tmp1_output.gl(tmp0_desc);
|
|
2494
2493
|
};
|
|
2495
|
-
protoOf($serializer_7).
|
|
2496
|
-
return this.
|
|
2494
|
+
protoOf($serializer_7).ii = function (encoder, value) {
|
|
2495
|
+
return this.o1i(encoder, value instanceof Instruction ? value : THROW_CCE());
|
|
2497
2496
|
};
|
|
2498
|
-
protoOf($serializer_7).
|
|
2499
|
-
var tmp0_desc = this.
|
|
2497
|
+
protoOf($serializer_7).ji = function (decoder) {
|
|
2498
|
+
var tmp0_desc = this.n1i_1;
|
|
2500
2499
|
var tmp1_flag = true;
|
|
2501
2500
|
var tmp2_index = 0;
|
|
2502
2501
|
var tmp3_bitMask0 = 0;
|
|
@@ -2504,56 +2503,56 @@
|
|
|
2504
2503
|
var tmp5_local1 = null;
|
|
2505
2504
|
var tmp6_local2 = null;
|
|
2506
2505
|
var tmp7_local3 = null;
|
|
2507
|
-
var tmp8_input = decoder.
|
|
2508
|
-
var tmp9_cached = Companion_getInstance_5().
|
|
2509
|
-
if (tmp8_input.
|
|
2510
|
-
tmp4_local0 = tmp8_input.
|
|
2506
|
+
var tmp8_input = decoder.fl(tmp0_desc);
|
|
2507
|
+
var tmp9_cached = Companion_getInstance_5().m1i_1;
|
|
2508
|
+
if (tmp8_input.vl()) {
|
|
2509
|
+
tmp4_local0 = tmp8_input.pl(tmp0_desc, 0);
|
|
2511
2510
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2512
|
-
tmp5_local1 = tmp8_input.
|
|
2511
|
+
tmp5_local1 = tmp8_input.tl(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2513
2512
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2514
|
-
tmp6_local2 = tmp8_input.
|
|
2513
|
+
tmp6_local2 = tmp8_input.tl(tmp0_desc, 2, tmp9_cached[2].f2(), tmp6_local2);
|
|
2515
2514
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2516
|
-
tmp7_local3 = tmp8_input.
|
|
2515
|
+
tmp7_local3 = tmp8_input.tl(tmp0_desc, 3, DoubleSerializer_getInstance(), tmp7_local3);
|
|
2517
2516
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2518
2517
|
} else
|
|
2519
2518
|
while (tmp1_flag) {
|
|
2520
|
-
tmp2_index = tmp8_input.
|
|
2519
|
+
tmp2_index = tmp8_input.wl(tmp0_desc);
|
|
2521
2520
|
switch (tmp2_index) {
|
|
2522
2521
|
case -1:
|
|
2523
2522
|
tmp1_flag = false;
|
|
2524
2523
|
break;
|
|
2525
2524
|
case 0:
|
|
2526
|
-
tmp4_local0 = tmp8_input.
|
|
2525
|
+
tmp4_local0 = tmp8_input.pl(tmp0_desc, 0);
|
|
2527
2526
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2528
2527
|
break;
|
|
2529
2528
|
case 1:
|
|
2530
|
-
tmp5_local1 = tmp8_input.
|
|
2529
|
+
tmp5_local1 = tmp8_input.tl(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2531
2530
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2532
2531
|
break;
|
|
2533
2532
|
case 2:
|
|
2534
|
-
tmp6_local2 = tmp8_input.
|
|
2533
|
+
tmp6_local2 = tmp8_input.tl(tmp0_desc, 2, tmp9_cached[2].f2(), tmp6_local2);
|
|
2535
2534
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2536
2535
|
break;
|
|
2537
2536
|
case 3:
|
|
2538
|
-
tmp7_local3 = tmp8_input.
|
|
2537
|
+
tmp7_local3 = tmp8_input.tl(tmp0_desc, 3, DoubleSerializer_getInstance(), tmp7_local3);
|
|
2539
2538
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2540
2539
|
break;
|
|
2541
2540
|
default:
|
|
2542
2541
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2543
2542
|
}
|
|
2544
2543
|
}
|
|
2545
|
-
tmp8_input.
|
|
2544
|
+
tmp8_input.gl(tmp0_desc);
|
|
2546
2545
|
return Instruction_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
2547
2546
|
};
|
|
2548
|
-
protoOf($serializer_7).
|
|
2549
|
-
return this.
|
|
2547
|
+
protoOf($serializer_7).hi = function () {
|
|
2548
|
+
return this.n1i_1;
|
|
2550
2549
|
};
|
|
2551
|
-
protoOf($serializer_7).
|
|
2552
|
-
var tmp0_cached = Companion_getInstance_5().
|
|
2550
|
+
protoOf($serializer_7).qs = function () {
|
|
2551
|
+
var tmp0_cached = Companion_getInstance_5().m1i_1;
|
|
2553
2552
|
// Inline function 'kotlin.arrayOf' call
|
|
2554
2553
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2555
2554
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2556
|
-
return [StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[2].
|
|
2555
|
+
return [StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[2].f2()), get_nullable(DoubleSerializer_getInstance())];
|
|
2557
2556
|
};
|
|
2558
2557
|
var $serializer_instance_7;
|
|
2559
2558
|
function $serializer_getInstance_7() {
|
|
@@ -2563,21 +2562,21 @@
|
|
|
2563
2562
|
}
|
|
2564
2563
|
function Instruction_init_$Init$(seen0, description, descriptionTemplate, images, stepNumber, serializationConstructorMarker, $this) {
|
|
2565
2564
|
if (!(1 === (1 & seen0))) {
|
|
2566
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_7().
|
|
2565
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_7().n1i_1);
|
|
2567
2566
|
}
|
|
2568
|
-
$this.
|
|
2567
|
+
$this.r1g_1 = description;
|
|
2569
2568
|
if (0 === (seen0 & 2))
|
|
2570
|
-
$this.
|
|
2569
|
+
$this.s1g_1 = null;
|
|
2571
2570
|
else
|
|
2572
|
-
$this.
|
|
2571
|
+
$this.s1g_1 = descriptionTemplate;
|
|
2573
2572
|
if (0 === (seen0 & 4))
|
|
2574
|
-
$this.
|
|
2573
|
+
$this.t1g_1 = null;
|
|
2575
2574
|
else
|
|
2576
|
-
$this.
|
|
2575
|
+
$this.t1g_1 = images;
|
|
2577
2576
|
if (0 === (seen0 & 8))
|
|
2578
|
-
$this.
|
|
2577
|
+
$this.u1g_1 = null;
|
|
2579
2578
|
else
|
|
2580
|
-
$this.
|
|
2579
|
+
$this.u1g_1 = stepNumber;
|
|
2581
2580
|
return $this;
|
|
2582
2581
|
}
|
|
2583
2582
|
function Instruction_init_$Create$(seen0, description, descriptionTemplate, images, stepNumber, serializationConstructorMarker) {
|
|
@@ -2588,29 +2587,29 @@
|
|
|
2588
2587
|
descriptionTemplate = descriptionTemplate === VOID ? null : descriptionTemplate;
|
|
2589
2588
|
images = images === VOID ? null : images;
|
|
2590
2589
|
stepNumber = stepNumber === VOID ? null : stepNumber;
|
|
2591
|
-
this.
|
|
2592
|
-
this.
|
|
2593
|
-
this.
|
|
2594
|
-
this.
|
|
2590
|
+
this.r1g_1 = description;
|
|
2591
|
+
this.s1g_1 = descriptionTemplate;
|
|
2592
|
+
this.t1g_1 = images;
|
|
2593
|
+
this.u1g_1 = stepNumber;
|
|
2595
2594
|
}
|
|
2596
|
-
protoOf(Instruction).
|
|
2595
|
+
protoOf(Instruction).p1i = function (description, descriptionTemplate, images, stepNumber) {
|
|
2597
2596
|
return new Instruction(description, descriptionTemplate, images, stepNumber);
|
|
2598
2597
|
};
|
|
2599
|
-
protoOf(Instruction).
|
|
2600
|
-
description = description === VOID ? this.
|
|
2601
|
-
descriptionTemplate = descriptionTemplate === VOID ? this.
|
|
2602
|
-
images = images === VOID ? this.
|
|
2603
|
-
stepNumber = stepNumber === VOID ? this.
|
|
2604
|
-
return $super === VOID ? this.
|
|
2598
|
+
protoOf(Instruction).v1g = function (description, descriptionTemplate, images, stepNumber, $super) {
|
|
2599
|
+
description = description === VOID ? this.r1g_1 : description;
|
|
2600
|
+
descriptionTemplate = descriptionTemplate === VOID ? this.s1g_1 : descriptionTemplate;
|
|
2601
|
+
images = images === VOID ? this.t1g_1 : images;
|
|
2602
|
+
stepNumber = stepNumber === VOID ? this.u1g_1 : stepNumber;
|
|
2603
|
+
return $super === VOID ? this.p1i(description, descriptionTemplate, images, stepNumber) : $super.p1i.call(this, description, descriptionTemplate, images, stepNumber);
|
|
2605
2604
|
};
|
|
2606
2605
|
protoOf(Instruction).toString = function () {
|
|
2607
|
-
return 'Instruction(description=' + this.
|
|
2606
|
+
return 'Instruction(description=' + this.r1g_1 + ', descriptionTemplate=' + this.s1g_1 + ', images=' + toString(this.t1g_1) + ', stepNumber=' + this.u1g_1 + ')';
|
|
2608
2607
|
};
|
|
2609
2608
|
protoOf(Instruction).hashCode = function () {
|
|
2610
|
-
var result = getStringHashCode(this.
|
|
2611
|
-
result = imul(result, 31) + (this.
|
|
2612
|
-
result = imul(result, 31) + (this.
|
|
2613
|
-
result = imul(result, 31) + (this.
|
|
2609
|
+
var result = getStringHashCode(this.r1g_1);
|
|
2610
|
+
result = imul(result, 31) + (this.s1g_1 == null ? 0 : getStringHashCode(this.s1g_1)) | 0;
|
|
2611
|
+
result = imul(result, 31) + (this.t1g_1 == null ? 0 : hashCode(this.t1g_1)) | 0;
|
|
2612
|
+
result = imul(result, 31) + (this.u1g_1 == null ? 0 : getNumberHashCode(this.u1g_1)) | 0;
|
|
2614
2613
|
return result;
|
|
2615
2614
|
};
|
|
2616
2615
|
protoOf(Instruction).equals = function (other) {
|
|
@@ -2618,85 +2617,85 @@
|
|
|
2618
2617
|
return true;
|
|
2619
2618
|
if (!(other instanceof Instruction))
|
|
2620
2619
|
return false;
|
|
2621
|
-
if (!(this.
|
|
2620
|
+
if (!(this.r1g_1 === other.r1g_1))
|
|
2622
2621
|
return false;
|
|
2623
|
-
if (!(this.
|
|
2622
|
+
if (!(this.s1g_1 == other.s1g_1))
|
|
2624
2623
|
return false;
|
|
2625
|
-
if (!equals(this.
|
|
2624
|
+
if (!equals(this.t1g_1, other.t1g_1))
|
|
2626
2625
|
return false;
|
|
2627
|
-
if (!equals(this.
|
|
2626
|
+
if (!equals(this.u1g_1, other.u1g_1))
|
|
2628
2627
|
return false;
|
|
2629
2628
|
return true;
|
|
2630
2629
|
};
|
|
2631
2630
|
function $serializer_8() {
|
|
2632
2631
|
$serializer_instance_8 = this;
|
|
2633
2632
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Serves', this, 3);
|
|
2634
|
-
tmp0_serialDesc.
|
|
2635
|
-
tmp0_serialDesc.
|
|
2636
|
-
tmp0_serialDesc.
|
|
2637
|
-
this.
|
|
2638
|
-
}
|
|
2639
|
-
protoOf($serializer_8).
|
|
2640
|
-
var tmp0_desc = this.
|
|
2641
|
-
var tmp1_output = encoder.
|
|
2642
|
-
if (tmp1_output.
|
|
2643
|
-
tmp1_output.
|
|
2633
|
+
tmp0_serialDesc.os('amount', true);
|
|
2634
|
+
tmp0_serialDesc.os('text', true);
|
|
2635
|
+
tmp0_serialDesc.os('unit', false);
|
|
2636
|
+
this.q1i_1 = tmp0_serialDesc;
|
|
2637
|
+
}
|
|
2638
|
+
protoOf($serializer_8).r1i = function (encoder, value) {
|
|
2639
|
+
var tmp0_desc = this.q1i_1;
|
|
2640
|
+
var tmp1_output = encoder.fl(tmp0_desc);
|
|
2641
|
+
if (tmp1_output.bn(tmp0_desc, 0) ? true : !(value.s1i_1 == null)) {
|
|
2642
|
+
tmp1_output.xm(tmp0_desc, 0, $serializer_getInstance_6(), value.s1i_1);
|
|
2644
2643
|
}
|
|
2645
|
-
if (tmp1_output.
|
|
2646
|
-
tmp1_output.
|
|
2644
|
+
if (tmp1_output.bn(tmp0_desc, 1) ? true : !(value.t1i_1 == null)) {
|
|
2645
|
+
tmp1_output.xm(tmp0_desc, 1, StringSerializer_getInstance(), value.t1i_1);
|
|
2647
2646
|
}
|
|
2648
|
-
tmp1_output.
|
|
2649
|
-
tmp1_output.
|
|
2647
|
+
tmp1_output.tm(tmp0_desc, 2, value.u1i_1);
|
|
2648
|
+
tmp1_output.gl(tmp0_desc);
|
|
2650
2649
|
};
|
|
2651
|
-
protoOf($serializer_8).
|
|
2652
|
-
return this.
|
|
2650
|
+
protoOf($serializer_8).ii = function (encoder, value) {
|
|
2651
|
+
return this.r1i(encoder, value instanceof Serves ? value : THROW_CCE());
|
|
2653
2652
|
};
|
|
2654
|
-
protoOf($serializer_8).
|
|
2655
|
-
var tmp0_desc = this.
|
|
2653
|
+
protoOf($serializer_8).ji = function (decoder) {
|
|
2654
|
+
var tmp0_desc = this.q1i_1;
|
|
2656
2655
|
var tmp1_flag = true;
|
|
2657
2656
|
var tmp2_index = 0;
|
|
2658
2657
|
var tmp3_bitMask0 = 0;
|
|
2659
2658
|
var tmp4_local0 = null;
|
|
2660
2659
|
var tmp5_local1 = null;
|
|
2661
2660
|
var tmp6_local2 = null;
|
|
2662
|
-
var tmp7_input = decoder.
|
|
2663
|
-
if (tmp7_input.
|
|
2664
|
-
tmp4_local0 = tmp7_input.
|
|
2661
|
+
var tmp7_input = decoder.fl(tmp0_desc);
|
|
2662
|
+
if (tmp7_input.vl()) {
|
|
2663
|
+
tmp4_local0 = tmp7_input.tl(tmp0_desc, 0, $serializer_getInstance_6(), tmp4_local0);
|
|
2665
2664
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2666
|
-
tmp5_local1 = tmp7_input.
|
|
2665
|
+
tmp5_local1 = tmp7_input.tl(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2667
2666
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2668
|
-
tmp6_local2 = tmp7_input.
|
|
2667
|
+
tmp6_local2 = tmp7_input.pl(tmp0_desc, 2);
|
|
2669
2668
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2670
2669
|
} else
|
|
2671
2670
|
while (tmp1_flag) {
|
|
2672
|
-
tmp2_index = tmp7_input.
|
|
2671
|
+
tmp2_index = tmp7_input.wl(tmp0_desc);
|
|
2673
2672
|
switch (tmp2_index) {
|
|
2674
2673
|
case -1:
|
|
2675
2674
|
tmp1_flag = false;
|
|
2676
2675
|
break;
|
|
2677
2676
|
case 0:
|
|
2678
|
-
tmp4_local0 = tmp7_input.
|
|
2677
|
+
tmp4_local0 = tmp7_input.tl(tmp0_desc, 0, $serializer_getInstance_6(), tmp4_local0);
|
|
2679
2678
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2680
2679
|
break;
|
|
2681
2680
|
case 1:
|
|
2682
|
-
tmp5_local1 = tmp7_input.
|
|
2681
|
+
tmp5_local1 = tmp7_input.tl(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2683
2682
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2684
2683
|
break;
|
|
2685
2684
|
case 2:
|
|
2686
|
-
tmp6_local2 = tmp7_input.
|
|
2685
|
+
tmp6_local2 = tmp7_input.pl(tmp0_desc, 2);
|
|
2687
2686
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2688
2687
|
break;
|
|
2689
2688
|
default:
|
|
2690
2689
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2691
2690
|
}
|
|
2692
2691
|
}
|
|
2693
|
-
tmp7_input.
|
|
2692
|
+
tmp7_input.gl(tmp0_desc);
|
|
2694
2693
|
return Serves_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
2695
2694
|
};
|
|
2696
|
-
protoOf($serializer_8).
|
|
2697
|
-
return this.
|
|
2695
|
+
protoOf($serializer_8).hi = function () {
|
|
2696
|
+
return this.q1i_1;
|
|
2698
2697
|
};
|
|
2699
|
-
protoOf($serializer_8).
|
|
2698
|
+
protoOf($serializer_8).qs = function () {
|
|
2700
2699
|
// Inline function 'kotlin.arrayOf' call
|
|
2701
2700
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2702
2701
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2710,17 +2709,17 @@
|
|
|
2710
2709
|
}
|
|
2711
2710
|
function Serves_init_$Init$(seen0, amount, text, unit, serializationConstructorMarker, $this) {
|
|
2712
2711
|
if (!(4 === (4 & seen0))) {
|
|
2713
|
-
throwMissingFieldException(seen0, 4, $serializer_getInstance_8().
|
|
2712
|
+
throwMissingFieldException(seen0, 4, $serializer_getInstance_8().q1i_1);
|
|
2714
2713
|
}
|
|
2715
2714
|
if (0 === (seen0 & 1))
|
|
2716
|
-
$this.
|
|
2715
|
+
$this.s1i_1 = null;
|
|
2717
2716
|
else
|
|
2718
|
-
$this.
|
|
2717
|
+
$this.s1i_1 = amount;
|
|
2719
2718
|
if (0 === (seen0 & 2))
|
|
2720
|
-
$this.
|
|
2719
|
+
$this.t1i_1 = null;
|
|
2721
2720
|
else
|
|
2722
|
-
$this.
|
|
2723
|
-
$this.
|
|
2721
|
+
$this.t1i_1 = text;
|
|
2722
|
+
$this.u1i_1 = unit;
|
|
2724
2723
|
return $this;
|
|
2725
2724
|
}
|
|
2726
2725
|
function Serves_init_$Create$(seen0, amount, text, unit, serializationConstructorMarker) {
|
|
@@ -2729,12 +2728,12 @@
|
|
|
2729
2728
|
function Serves() {
|
|
2730
2729
|
}
|
|
2731
2730
|
protoOf(Serves).toString = function () {
|
|
2732
|
-
return 'Serves(amount=' + toString(this.
|
|
2731
|
+
return 'Serves(amount=' + toString(this.s1i_1) + ', text=' + this.t1i_1 + ', unit=' + this.u1i_1 + ')';
|
|
2733
2732
|
};
|
|
2734
2733
|
protoOf(Serves).hashCode = function () {
|
|
2735
|
-
var result = this.
|
|
2736
|
-
result = imul(result, 31) + (this.
|
|
2737
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2734
|
+
var result = this.s1i_1 == null ? 0 : this.s1i_1.hashCode();
|
|
2735
|
+
result = imul(result, 31) + (this.t1i_1 == null ? 0 : getStringHashCode(this.t1i_1)) | 0;
|
|
2736
|
+
result = imul(result, 31) + getStringHashCode(this.u1i_1) | 0;
|
|
2738
2737
|
return result;
|
|
2739
2738
|
};
|
|
2740
2739
|
protoOf(Serves).equals = function (other) {
|
|
@@ -2742,11 +2741,11 @@
|
|
|
2742
2741
|
return true;
|
|
2743
2742
|
if (!(other instanceof Serves))
|
|
2744
2743
|
return false;
|
|
2745
|
-
if (!equals(this.
|
|
2744
|
+
if (!equals(this.s1i_1, other.s1i_1))
|
|
2746
2745
|
return false;
|
|
2747
|
-
if (!(this.
|
|
2746
|
+
if (!(this.t1i_1 == other.t1i_1))
|
|
2748
2747
|
return false;
|
|
2749
|
-
if (!(this.
|
|
2748
|
+
if (!(this.u1i_1 === other.u1i_1))
|
|
2750
2749
|
return false;
|
|
2751
2750
|
return true;
|
|
2752
2751
|
};
|
|
@@ -2759,74 +2758,74 @@
|
|
|
2759
2758
|
function $serializer_9() {
|
|
2760
2759
|
$serializer_instance_9 = this;
|
|
2761
2760
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Timing', this, 3);
|
|
2762
|
-
tmp0_serialDesc.
|
|
2763
|
-
tmp0_serialDesc.
|
|
2764
|
-
tmp0_serialDesc.
|
|
2765
|
-
this.
|
|
2766
|
-
}
|
|
2767
|
-
protoOf($serializer_9).
|
|
2768
|
-
var tmp0_desc = this.
|
|
2769
|
-
var tmp1_output = encoder.
|
|
2770
|
-
if (tmp1_output.
|
|
2771
|
-
tmp1_output.
|
|
2761
|
+
tmp0_serialDesc.os('durationInMins', true);
|
|
2762
|
+
tmp0_serialDesc.os('qualifier', true);
|
|
2763
|
+
tmp0_serialDesc.os('text', true);
|
|
2764
|
+
this.v1i_1 = tmp0_serialDesc;
|
|
2765
|
+
}
|
|
2766
|
+
protoOf($serializer_9).w1i = function (encoder, value) {
|
|
2767
|
+
var tmp0_desc = this.v1i_1;
|
|
2768
|
+
var tmp1_output = encoder.fl(tmp0_desc);
|
|
2769
|
+
if (tmp1_output.bn(tmp0_desc, 0) ? true : !(value.x1i_1 == null)) {
|
|
2770
|
+
tmp1_output.xm(tmp0_desc, 0, $serializer_getInstance_6(), value.x1i_1);
|
|
2772
2771
|
}
|
|
2773
|
-
if (tmp1_output.
|
|
2774
|
-
tmp1_output.
|
|
2772
|
+
if (tmp1_output.bn(tmp0_desc, 1) ? true : !(value.y1i_1 == null)) {
|
|
2773
|
+
tmp1_output.xm(tmp0_desc, 1, StringSerializer_getInstance(), value.y1i_1);
|
|
2775
2774
|
}
|
|
2776
|
-
if (tmp1_output.
|
|
2777
|
-
tmp1_output.
|
|
2775
|
+
if (tmp1_output.bn(tmp0_desc, 2) ? true : !(value.z1i_1 == null)) {
|
|
2776
|
+
tmp1_output.xm(tmp0_desc, 2, StringSerializer_getInstance(), value.z1i_1);
|
|
2778
2777
|
}
|
|
2779
|
-
tmp1_output.
|
|
2778
|
+
tmp1_output.gl(tmp0_desc);
|
|
2780
2779
|
};
|
|
2781
|
-
protoOf($serializer_9).
|
|
2782
|
-
return this.
|
|
2780
|
+
protoOf($serializer_9).ii = function (encoder, value) {
|
|
2781
|
+
return this.w1i(encoder, value instanceof Timing ? value : THROW_CCE());
|
|
2783
2782
|
};
|
|
2784
|
-
protoOf($serializer_9).
|
|
2785
|
-
var tmp0_desc = this.
|
|
2783
|
+
protoOf($serializer_9).ji = function (decoder) {
|
|
2784
|
+
var tmp0_desc = this.v1i_1;
|
|
2786
2785
|
var tmp1_flag = true;
|
|
2787
2786
|
var tmp2_index = 0;
|
|
2788
2787
|
var tmp3_bitMask0 = 0;
|
|
2789
2788
|
var tmp4_local0 = null;
|
|
2790
2789
|
var tmp5_local1 = null;
|
|
2791
2790
|
var tmp6_local2 = null;
|
|
2792
|
-
var tmp7_input = decoder.
|
|
2793
|
-
if (tmp7_input.
|
|
2794
|
-
tmp4_local0 = tmp7_input.
|
|
2791
|
+
var tmp7_input = decoder.fl(tmp0_desc);
|
|
2792
|
+
if (tmp7_input.vl()) {
|
|
2793
|
+
tmp4_local0 = tmp7_input.tl(tmp0_desc, 0, $serializer_getInstance_6(), tmp4_local0);
|
|
2795
2794
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2796
|
-
tmp5_local1 = tmp7_input.
|
|
2795
|
+
tmp5_local1 = tmp7_input.tl(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2797
2796
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2798
|
-
tmp6_local2 = tmp7_input.
|
|
2797
|
+
tmp6_local2 = tmp7_input.tl(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2799
2798
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2800
2799
|
} else
|
|
2801
2800
|
while (tmp1_flag) {
|
|
2802
|
-
tmp2_index = tmp7_input.
|
|
2801
|
+
tmp2_index = tmp7_input.wl(tmp0_desc);
|
|
2803
2802
|
switch (tmp2_index) {
|
|
2804
2803
|
case -1:
|
|
2805
2804
|
tmp1_flag = false;
|
|
2806
2805
|
break;
|
|
2807
2806
|
case 0:
|
|
2808
|
-
tmp4_local0 = tmp7_input.
|
|
2807
|
+
tmp4_local0 = tmp7_input.tl(tmp0_desc, 0, $serializer_getInstance_6(), tmp4_local0);
|
|
2809
2808
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2810
2809
|
break;
|
|
2811
2810
|
case 1:
|
|
2812
|
-
tmp5_local1 = tmp7_input.
|
|
2811
|
+
tmp5_local1 = tmp7_input.tl(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2813
2812
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2814
2813
|
break;
|
|
2815
2814
|
case 2:
|
|
2816
|
-
tmp6_local2 = tmp7_input.
|
|
2815
|
+
tmp6_local2 = tmp7_input.tl(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2817
2816
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2818
2817
|
break;
|
|
2819
2818
|
default:
|
|
2820
2819
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2821
2820
|
}
|
|
2822
2821
|
}
|
|
2823
|
-
tmp7_input.
|
|
2822
|
+
tmp7_input.gl(tmp0_desc);
|
|
2824
2823
|
return Timing_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
2825
2824
|
};
|
|
2826
|
-
protoOf($serializer_9).
|
|
2827
|
-
return this.
|
|
2825
|
+
protoOf($serializer_9).hi = function () {
|
|
2826
|
+
return this.v1i_1;
|
|
2828
2827
|
};
|
|
2829
|
-
protoOf($serializer_9).
|
|
2828
|
+
protoOf($serializer_9).qs = function () {
|
|
2830
2829
|
// Inline function 'kotlin.arrayOf' call
|
|
2831
2830
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2832
2831
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2840,20 +2839,20 @@
|
|
|
2840
2839
|
}
|
|
2841
2840
|
function Timing_init_$Init$(seen0, durationInMins, qualifier, text, serializationConstructorMarker, $this) {
|
|
2842
2841
|
if (!(0 === (0 & seen0))) {
|
|
2843
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_9().
|
|
2842
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_9().v1i_1);
|
|
2844
2843
|
}
|
|
2845
2844
|
if (0 === (seen0 & 1))
|
|
2846
|
-
$this.
|
|
2845
|
+
$this.x1i_1 = null;
|
|
2847
2846
|
else
|
|
2848
|
-
$this.
|
|
2847
|
+
$this.x1i_1 = durationInMins;
|
|
2849
2848
|
if (0 === (seen0 & 2))
|
|
2850
|
-
$this.
|
|
2849
|
+
$this.y1i_1 = null;
|
|
2851
2850
|
else
|
|
2852
|
-
$this.
|
|
2851
|
+
$this.y1i_1 = qualifier;
|
|
2853
2852
|
if (0 === (seen0 & 4))
|
|
2854
|
-
$this.
|
|
2853
|
+
$this.z1i_1 = null;
|
|
2855
2854
|
else
|
|
2856
|
-
$this.
|
|
2855
|
+
$this.z1i_1 = text;
|
|
2857
2856
|
return $this;
|
|
2858
2857
|
}
|
|
2859
2858
|
function Timing_init_$Create$(seen0, durationInMins, qualifier, text, serializationConstructorMarker) {
|
|
@@ -2863,17 +2862,17 @@
|
|
|
2863
2862
|
durationInMins = durationInMins === VOID ? null : durationInMins;
|
|
2864
2863
|
qualifier = qualifier === VOID ? null : qualifier;
|
|
2865
2864
|
text = text === VOID ? null : text;
|
|
2866
|
-
this.
|
|
2867
|
-
this.
|
|
2868
|
-
this.
|
|
2865
|
+
this.x1i_1 = durationInMins;
|
|
2866
|
+
this.y1i_1 = qualifier;
|
|
2867
|
+
this.z1i_1 = text;
|
|
2869
2868
|
}
|
|
2870
2869
|
protoOf(Timing).toString = function () {
|
|
2871
|
-
return 'Timing(durationInMins=' + toString(this.
|
|
2870
|
+
return 'Timing(durationInMins=' + toString(this.x1i_1) + ', qualifier=' + this.y1i_1 + ', text=' + this.z1i_1 + ')';
|
|
2872
2871
|
};
|
|
2873
2872
|
protoOf(Timing).hashCode = function () {
|
|
2874
|
-
var result = this.
|
|
2875
|
-
result = imul(result, 31) + (this.
|
|
2876
|
-
result = imul(result, 31) + (this.
|
|
2873
|
+
var result = this.x1i_1 == null ? 0 : this.x1i_1.hashCode();
|
|
2874
|
+
result = imul(result, 31) + (this.y1i_1 == null ? 0 : getStringHashCode(this.y1i_1)) | 0;
|
|
2875
|
+
result = imul(result, 31) + (this.z1i_1 == null ? 0 : getStringHashCode(this.z1i_1)) | 0;
|
|
2877
2876
|
return result;
|
|
2878
2877
|
};
|
|
2879
2878
|
protoOf(Timing).equals = function (other) {
|
|
@@ -2881,29 +2880,29 @@
|
|
|
2881
2880
|
return true;
|
|
2882
2881
|
if (!(other instanceof Timing))
|
|
2883
2882
|
return false;
|
|
2884
|
-
if (!equals(this.
|
|
2883
|
+
if (!equals(this.x1i_1, other.x1i_1))
|
|
2885
2884
|
return false;
|
|
2886
|
-
if (!(this.
|
|
2885
|
+
if (!(this.y1i_1 == other.y1i_1))
|
|
2887
2886
|
return false;
|
|
2888
|
-
if (!(this.
|
|
2887
|
+
if (!(this.z1i_1 == other.z1i_1))
|
|
2889
2888
|
return false;
|
|
2890
2889
|
return true;
|
|
2891
2890
|
};
|
|
2892
2891
|
function ParsedTemplate(elements) {
|
|
2893
|
-
this.
|
|
2892
|
+
this.h1f_1 = elements;
|
|
2894
2893
|
}
|
|
2895
2894
|
protoOf(ParsedTemplate).toString = function () {
|
|
2896
|
-
return 'ParsedTemplate(elements=' + toString_0(this.
|
|
2895
|
+
return 'ParsedTemplate(elements=' + toString_0(this.h1f_1) + ')';
|
|
2897
2896
|
};
|
|
2898
2897
|
protoOf(ParsedTemplate).hashCode = function () {
|
|
2899
|
-
return hashCode(this.
|
|
2898
|
+
return hashCode(this.h1f_1);
|
|
2900
2899
|
};
|
|
2901
2900
|
protoOf(ParsedTemplate).equals = function (other) {
|
|
2902
2901
|
if (this === other)
|
|
2903
2902
|
return true;
|
|
2904
2903
|
if (!(other instanceof ParsedTemplate))
|
|
2905
2904
|
return false;
|
|
2906
|
-
if (!equals(this.
|
|
2905
|
+
if (!equals(this.h1f_1, other.h1f_1))
|
|
2907
2906
|
return false;
|
|
2908
2907
|
return true;
|
|
2909
2908
|
};
|
|
@@ -2919,64 +2918,64 @@
|
|
|
2919
2918
|
var parts = ArrayList_init_$Create$_0();
|
|
2920
2919
|
var lastEnd = 0;
|
|
2921
2920
|
// Inline function 'kotlin.sequences.forEach' call
|
|
2922
|
-
var _iterator__ex2g4s = pattern.wa(template).
|
|
2923
|
-
while (_iterator__ex2g4s.
|
|
2924
|
-
var element = _iterator__ex2g4s.
|
|
2925
|
-
if (element.ya().
|
|
2926
|
-
var textPart = substring(template, lastEnd, element.ya().
|
|
2921
|
+
var _iterator__ex2g4s = pattern.wa(template).q();
|
|
2922
|
+
while (_iterator__ex2g4s.r()) {
|
|
2923
|
+
var element = _iterator__ex2g4s.s();
|
|
2924
|
+
if (element.ya().d1_1 > lastEnd) {
|
|
2925
|
+
var textPart = substring(template, lastEnd, element.ya().d1_1);
|
|
2927
2926
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2928
2927
|
if (charSequenceLength(textPart) > 0) {
|
|
2929
|
-
parts.
|
|
2928
|
+
parts.u(new TemplateConst(textPart));
|
|
2930
2929
|
}
|
|
2931
2930
|
}
|
|
2932
2931
|
try {
|
|
2933
|
-
var jsonObj = get_jsonObject(Default_getInstance().
|
|
2934
|
-
if (jsonObj.
|
|
2932
|
+
var jsonObj = get_jsonObject(Default_getInstance().t11(element.f2()));
|
|
2933
|
+
if (jsonObj.j2().x('min')) {
|
|
2935
2934
|
// Inline function 'kotlinx.serialization.json.decodeFromJsonElement' call
|
|
2936
2935
|
var this_0 = get_tolerantJson();
|
|
2937
2936
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
2938
|
-
var this_1 = this_0.
|
|
2937
|
+
var this_1 = this_0.ul();
|
|
2939
2938
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
2940
2939
|
var this_2 = serializer(this_1, createKType(getKClass(QuantityPlaceholder), arrayOf([]), false));
|
|
2941
|
-
var tmp$ret$
|
|
2940
|
+
var tmp$ret$5 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
2942
2941
|
// Inline function 'kotlin.let' call
|
|
2943
|
-
var it = this_0.
|
|
2944
|
-
parts.
|
|
2942
|
+
var it = this_0.s11(tmp$ret$5, jsonObj);
|
|
2943
|
+
parts.u(it);
|
|
2945
2944
|
} else {
|
|
2946
2945
|
// Inline function 'kotlinx.serialization.json.decodeFromJsonElement' call
|
|
2947
2946
|
var this_3 = get_tolerantJson();
|
|
2948
2947
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
2949
|
-
var this_4 = this_3.
|
|
2948
|
+
var this_4 = this_3.ul();
|
|
2950
2949
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
2951
2950
|
var this_5 = serializer(this_4, createKType(getKClass(OvenTemperaturePlaceholder), arrayOf([]), false));
|
|
2952
|
-
var tmp$ret$
|
|
2951
|
+
var tmp$ret$10 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
2953
2952
|
// Inline function 'kotlin.let' call
|
|
2954
|
-
var it_0 = this_3.
|
|
2955
|
-
parts.
|
|
2953
|
+
var it_0 = this_3.s11(tmp$ret$10, jsonObj);
|
|
2954
|
+
parts.u(it_0);
|
|
2956
2955
|
}
|
|
2957
2956
|
} catch ($p) {
|
|
2958
2957
|
if ($p instanceof Exception) {
|
|
2959
2958
|
var e = $p;
|
|
2960
|
-
print('Failed to parse JSON: ' + element.
|
|
2961
|
-
parts.
|
|
2959
|
+
print('Failed to parse JSON: ' + element.f2() + ', error: ' + e.message);
|
|
2960
|
+
parts.u(new TemplateConst(element.f2()));
|
|
2962
2961
|
} else {
|
|
2963
2962
|
throw $p;
|
|
2964
2963
|
}
|
|
2965
2964
|
}
|
|
2966
|
-
lastEnd = element.ya().
|
|
2965
|
+
lastEnd = element.ya().e1_1 + 1 | 0;
|
|
2967
2966
|
}
|
|
2968
2967
|
if (lastEnd < template.length) {
|
|
2969
2968
|
var remaining = substring_0(template, lastEnd);
|
|
2970
2969
|
// Inline function 'kotlin.text.isNotBlank' call
|
|
2971
2970
|
if (!isBlank(remaining)) {
|
|
2972
|
-
parts.
|
|
2971
|
+
parts.u(new TemplateConst(remaining));
|
|
2973
2972
|
}
|
|
2974
2973
|
}
|
|
2975
2974
|
return new ParsedTemplate(parts);
|
|
2976
2975
|
}
|
|
2977
2976
|
function tolerantJson$lambda($this$Json) {
|
|
2978
2977
|
_init_properties_Parser_kt__o3jwn5();
|
|
2979
|
-
$this$Json.
|
|
2978
|
+
$this$Json.l12_1 = true;
|
|
2980
2979
|
return Unit_instance;
|
|
2981
2980
|
}
|
|
2982
2981
|
var properties_initialized_Parser_kt_5uifb3;
|
|
@@ -2991,18 +2990,18 @@
|
|
|
2991
2990
|
function TemplateConst(value) {
|
|
2992
2991
|
this.value = value;
|
|
2993
2992
|
}
|
|
2994
|
-
protoOf(TemplateConst).
|
|
2993
|
+
protoOf(TemplateConst).f2 = function () {
|
|
2995
2994
|
return this.value;
|
|
2996
2995
|
};
|
|
2997
|
-
protoOf(TemplateConst).
|
|
2996
|
+
protoOf(TemplateConst).ed = function () {
|
|
2998
2997
|
return this.value;
|
|
2999
2998
|
};
|
|
3000
|
-
protoOf(TemplateConst).
|
|
2999
|
+
protoOf(TemplateConst).a1j = function (value) {
|
|
3001
3000
|
return new TemplateConst(value);
|
|
3002
3001
|
};
|
|
3003
3002
|
protoOf(TemplateConst).copy = function (value, $super) {
|
|
3004
3003
|
value = value === VOID ? this.value : value;
|
|
3005
|
-
return $super === VOID ? this.
|
|
3004
|
+
return $super === VOID ? this.a1j(value) : $super.a1j.call(this, value);
|
|
3006
3005
|
};
|
|
3007
3006
|
protoOf(TemplateConst).toString = function () {
|
|
3008
3007
|
return 'TemplateConst(value=' + this.value + ')';
|
|
@@ -3028,40 +3027,40 @@
|
|
|
3028
3027
|
function $serializer_10() {
|
|
3029
3028
|
$serializer_instance_10 = this;
|
|
3030
3029
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.template.QuantityPlaceholder', this, 6);
|
|
3031
|
-
tmp0_serialDesc.
|
|
3032
|
-
tmp0_serialDesc.
|
|
3033
|
-
tmp0_serialDesc.
|
|
3034
|
-
tmp0_serialDesc.
|
|
3035
|
-
tmp0_serialDesc.
|
|
3036
|
-
tmp0_serialDesc.
|
|
3037
|
-
this.
|
|
3038
|
-
}
|
|
3039
|
-
protoOf($serializer_10).
|
|
3040
|
-
var tmp0_desc = this.
|
|
3041
|
-
var tmp1_output = encoder.
|
|
3042
|
-
tmp1_output.
|
|
3043
|
-
if (tmp1_output.
|
|
3044
|
-
tmp1_output.
|
|
3030
|
+
tmp0_serialDesc.os('min', false);
|
|
3031
|
+
tmp0_serialDesc.os('max', true);
|
|
3032
|
+
tmp0_serialDesc.os('unit', true);
|
|
3033
|
+
tmp0_serialDesc.os('scale', true);
|
|
3034
|
+
tmp0_serialDesc.os('ingredient', true);
|
|
3035
|
+
tmp0_serialDesc.os('usCust', true);
|
|
3036
|
+
this.b1j_1 = tmp0_serialDesc;
|
|
3037
|
+
}
|
|
3038
|
+
protoOf($serializer_10).c1j = function (encoder, value) {
|
|
3039
|
+
var tmp0_desc = this.b1j_1;
|
|
3040
|
+
var tmp1_output = encoder.fl(tmp0_desc);
|
|
3041
|
+
tmp1_output.qm(tmp0_desc, 0, value.min);
|
|
3042
|
+
if (tmp1_output.bn(tmp0_desc, 1) ? true : !(value.max == null)) {
|
|
3043
|
+
tmp1_output.xm(tmp0_desc, 1, FloatSerializer_getInstance(), value.max);
|
|
3045
3044
|
}
|
|
3046
|
-
if (tmp1_output.
|
|
3047
|
-
tmp1_output.
|
|
3045
|
+
if (tmp1_output.bn(tmp0_desc, 2) ? true : !(value.unit == null)) {
|
|
3046
|
+
tmp1_output.xm(tmp0_desc, 2, StringSerializer_getInstance(), value.unit);
|
|
3048
3047
|
}
|
|
3049
|
-
if (tmp1_output.
|
|
3050
|
-
tmp1_output.
|
|
3048
|
+
if (tmp1_output.bn(tmp0_desc, 3) ? true : !(value.scale === false)) {
|
|
3049
|
+
tmp1_output.lm(tmp0_desc, 3, value.scale);
|
|
3051
3050
|
}
|
|
3052
|
-
if (tmp1_output.
|
|
3053
|
-
tmp1_output.
|
|
3051
|
+
if (tmp1_output.bn(tmp0_desc, 4) ? true : !(value.ingredient == null)) {
|
|
3052
|
+
tmp1_output.xm(tmp0_desc, 4, StringSerializer_getInstance(), value.ingredient);
|
|
3054
3053
|
}
|
|
3055
|
-
if (tmp1_output.
|
|
3056
|
-
tmp1_output.
|
|
3054
|
+
if (tmp1_output.bn(tmp0_desc, 5) ? true : !(value.usCust == null)) {
|
|
3055
|
+
tmp1_output.xm(tmp0_desc, 5, BooleanSerializer_getInstance(), value.usCust);
|
|
3057
3056
|
}
|
|
3058
|
-
tmp1_output.
|
|
3057
|
+
tmp1_output.gl(tmp0_desc);
|
|
3059
3058
|
};
|
|
3060
|
-
protoOf($serializer_10).
|
|
3061
|
-
return this.
|
|
3059
|
+
protoOf($serializer_10).ii = function (encoder, value) {
|
|
3060
|
+
return this.c1j(encoder, value instanceof QuantityPlaceholder ? value : THROW_CCE());
|
|
3062
3061
|
};
|
|
3063
|
-
protoOf($serializer_10).
|
|
3064
|
-
var tmp0_desc = this.
|
|
3062
|
+
protoOf($serializer_10).ji = function (decoder) {
|
|
3063
|
+
var tmp0_desc = this.b1j_1;
|
|
3065
3064
|
var tmp1_flag = true;
|
|
3066
3065
|
var tmp2_index = 0;
|
|
3067
3066
|
var tmp3_bitMask0 = 0;
|
|
@@ -3071,62 +3070,62 @@
|
|
|
3071
3070
|
var tmp7_local3 = false;
|
|
3072
3071
|
var tmp8_local4 = null;
|
|
3073
3072
|
var tmp9_local5 = null;
|
|
3074
|
-
var tmp10_input = decoder.
|
|
3075
|
-
if (tmp10_input.
|
|
3076
|
-
tmp4_local0 = tmp10_input.
|
|
3073
|
+
var tmp10_input = decoder.fl(tmp0_desc);
|
|
3074
|
+
if (tmp10_input.vl()) {
|
|
3075
|
+
tmp4_local0 = tmp10_input.ml(tmp0_desc, 0);
|
|
3077
3076
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
3078
|
-
tmp5_local1 = tmp10_input.
|
|
3077
|
+
tmp5_local1 = tmp10_input.tl(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1);
|
|
3079
3078
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
3080
|
-
tmp6_local2 = tmp10_input.
|
|
3079
|
+
tmp6_local2 = tmp10_input.tl(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
3081
3080
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
3082
|
-
tmp7_local3 = tmp10_input.
|
|
3081
|
+
tmp7_local3 = tmp10_input.hl(tmp0_desc, 3);
|
|
3083
3082
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
3084
|
-
tmp8_local4 = tmp10_input.
|
|
3083
|
+
tmp8_local4 = tmp10_input.tl(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
3085
3084
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
3086
|
-
tmp9_local5 = tmp10_input.
|
|
3085
|
+
tmp9_local5 = tmp10_input.tl(tmp0_desc, 5, BooleanSerializer_getInstance(), tmp9_local5);
|
|
3087
3086
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
3088
3087
|
} else
|
|
3089
3088
|
while (tmp1_flag) {
|
|
3090
|
-
tmp2_index = tmp10_input.
|
|
3089
|
+
tmp2_index = tmp10_input.wl(tmp0_desc);
|
|
3091
3090
|
switch (tmp2_index) {
|
|
3092
3091
|
case -1:
|
|
3093
3092
|
tmp1_flag = false;
|
|
3094
3093
|
break;
|
|
3095
3094
|
case 0:
|
|
3096
|
-
tmp4_local0 = tmp10_input.
|
|
3095
|
+
tmp4_local0 = tmp10_input.ml(tmp0_desc, 0);
|
|
3097
3096
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
3098
3097
|
break;
|
|
3099
3098
|
case 1:
|
|
3100
|
-
tmp5_local1 = tmp10_input.
|
|
3099
|
+
tmp5_local1 = tmp10_input.tl(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1);
|
|
3101
3100
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
3102
3101
|
break;
|
|
3103
3102
|
case 2:
|
|
3104
|
-
tmp6_local2 = tmp10_input.
|
|
3103
|
+
tmp6_local2 = tmp10_input.tl(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
3105
3104
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
3106
3105
|
break;
|
|
3107
3106
|
case 3:
|
|
3108
|
-
tmp7_local3 = tmp10_input.
|
|
3107
|
+
tmp7_local3 = tmp10_input.hl(tmp0_desc, 3);
|
|
3109
3108
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
3110
3109
|
break;
|
|
3111
3110
|
case 4:
|
|
3112
|
-
tmp8_local4 = tmp10_input.
|
|
3111
|
+
tmp8_local4 = tmp10_input.tl(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
3113
3112
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
3114
3113
|
break;
|
|
3115
3114
|
case 5:
|
|
3116
|
-
tmp9_local5 = tmp10_input.
|
|
3115
|
+
tmp9_local5 = tmp10_input.tl(tmp0_desc, 5, BooleanSerializer_getInstance(), tmp9_local5);
|
|
3117
3116
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
3118
3117
|
break;
|
|
3119
3118
|
default:
|
|
3120
3119
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
3121
3120
|
}
|
|
3122
3121
|
}
|
|
3123
|
-
tmp10_input.
|
|
3122
|
+
tmp10_input.gl(tmp0_desc);
|
|
3124
3123
|
return QuantityPlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
3125
3124
|
};
|
|
3126
|
-
protoOf($serializer_10).
|
|
3127
|
-
return this.
|
|
3125
|
+
protoOf($serializer_10).hi = function () {
|
|
3126
|
+
return this.b1j_1;
|
|
3128
3127
|
};
|
|
3129
|
-
protoOf($serializer_10).
|
|
3128
|
+
protoOf($serializer_10).qs = function () {
|
|
3130
3129
|
// Inline function 'kotlin.arrayOf' call
|
|
3131
3130
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3132
3131
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3140,7 +3139,7 @@
|
|
|
3140
3139
|
}
|
|
3141
3140
|
function QuantityPlaceholder_init_$Init$(seen0, min, max, unit, scale, ingredient, usCust, serializationConstructorMarker, $this) {
|
|
3142
3141
|
if (!(1 === (1 & seen0))) {
|
|
3143
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_10().
|
|
3142
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_10().b1j_1);
|
|
3144
3143
|
}
|
|
3145
3144
|
$this.min = min;
|
|
3146
3145
|
if (0 === (seen0 & 2))
|
|
@@ -3181,43 +3180,43 @@
|
|
|
3181
3180
|
this.ingredient = ingredient;
|
|
3182
3181
|
this.usCust = usCust;
|
|
3183
3182
|
}
|
|
3184
|
-
protoOf(QuantityPlaceholder).
|
|
3183
|
+
protoOf(QuantityPlaceholder).d1j = function () {
|
|
3185
3184
|
return this.min;
|
|
3186
3185
|
};
|
|
3187
|
-
protoOf(QuantityPlaceholder).
|
|
3186
|
+
protoOf(QuantityPlaceholder).e1j = function () {
|
|
3188
3187
|
return this.max;
|
|
3189
3188
|
};
|
|
3190
|
-
protoOf(QuantityPlaceholder).
|
|
3189
|
+
protoOf(QuantityPlaceholder).f1j = function () {
|
|
3191
3190
|
return this.unit;
|
|
3192
3191
|
};
|
|
3193
|
-
protoOf(QuantityPlaceholder).
|
|
3192
|
+
protoOf(QuantityPlaceholder).g1j = function () {
|
|
3194
3193
|
return this.scale;
|
|
3195
3194
|
};
|
|
3196
|
-
protoOf(QuantityPlaceholder).
|
|
3195
|
+
protoOf(QuantityPlaceholder).h1j = function () {
|
|
3197
3196
|
return this.ingredient;
|
|
3198
3197
|
};
|
|
3199
|
-
protoOf(QuantityPlaceholder).
|
|
3198
|
+
protoOf(QuantityPlaceholder).i1j = function () {
|
|
3200
3199
|
return this.usCust;
|
|
3201
3200
|
};
|
|
3202
|
-
protoOf(QuantityPlaceholder).
|
|
3201
|
+
protoOf(QuantityPlaceholder).ed = function () {
|
|
3203
3202
|
return this.min;
|
|
3204
3203
|
};
|
|
3205
|
-
protoOf(QuantityPlaceholder).
|
|
3204
|
+
protoOf(QuantityPlaceholder).fd = function () {
|
|
3206
3205
|
return this.max;
|
|
3207
3206
|
};
|
|
3208
|
-
protoOf(QuantityPlaceholder).
|
|
3207
|
+
protoOf(QuantityPlaceholder).j1j = function () {
|
|
3209
3208
|
return this.unit;
|
|
3210
3209
|
};
|
|
3211
|
-
protoOf(QuantityPlaceholder).
|
|
3210
|
+
protoOf(QuantityPlaceholder).k1j = function () {
|
|
3212
3211
|
return this.scale;
|
|
3213
3212
|
};
|
|
3214
|
-
protoOf(QuantityPlaceholder).
|
|
3213
|
+
protoOf(QuantityPlaceholder).l1j = function () {
|
|
3215
3214
|
return this.ingredient;
|
|
3216
3215
|
};
|
|
3217
|
-
protoOf(QuantityPlaceholder).
|
|
3216
|
+
protoOf(QuantityPlaceholder).m1j = function () {
|
|
3218
3217
|
return this.usCust;
|
|
3219
3218
|
};
|
|
3220
|
-
protoOf(QuantityPlaceholder).
|
|
3219
|
+
protoOf(QuantityPlaceholder).n1j = function (min, max, unit, scale, ingredient, usCust) {
|
|
3221
3220
|
return new QuantityPlaceholder(min, max, unit, scale, ingredient, usCust);
|
|
3222
3221
|
};
|
|
3223
3222
|
protoOf(QuantityPlaceholder).copy = function (min, max, unit, scale, ingredient, usCust, $super) {
|
|
@@ -3227,7 +3226,7 @@
|
|
|
3227
3226
|
scale = scale === VOID ? this.scale : scale;
|
|
3228
3227
|
ingredient = ingredient === VOID ? this.ingredient : ingredient;
|
|
3229
3228
|
usCust = usCust === VOID ? this.usCust : usCust;
|
|
3230
|
-
return $super === VOID ? this.
|
|
3229
|
+
return $super === VOID ? this.n1j(min, max, unit, scale, ingredient, usCust) : $super.n1j.call(this, min, max, unit, scale, ingredient, usCust);
|
|
3231
3230
|
};
|
|
3232
3231
|
protoOf(QuantityPlaceholder).toString = function () {
|
|
3233
3232
|
return 'QuantityPlaceholder(min=' + this.min + ', max=' + this.max + ', unit=' + this.unit + ', scale=' + this.scale + ', ingredient=' + this.ingredient + ', usCust=' + this.usCust + ')';
|
|
@@ -3269,34 +3268,34 @@
|
|
|
3269
3268
|
function $serializer_11() {
|
|
3270
3269
|
$serializer_instance_11 = this;
|
|
3271
3270
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.template.OvenTemperaturePlaceholder', this, 4);
|
|
3272
|
-
tmp0_serialDesc.
|
|
3273
|
-
tmp0_serialDesc.
|
|
3274
|
-
tmp0_serialDesc.
|
|
3275
|
-
tmp0_serialDesc.
|
|
3276
|
-
this.
|
|
3277
|
-
}
|
|
3278
|
-
protoOf($serializer_11).
|
|
3279
|
-
var tmp0_desc = this.
|
|
3280
|
-
var tmp1_output = encoder.
|
|
3281
|
-
if (tmp1_output.
|
|
3282
|
-
tmp1_output.
|
|
3271
|
+
tmp0_serialDesc.os('temperatureC', true);
|
|
3272
|
+
tmp0_serialDesc.os('temperatureFanC', true);
|
|
3273
|
+
tmp0_serialDesc.os('temperatureF', true);
|
|
3274
|
+
tmp0_serialDesc.os('gasMark', true);
|
|
3275
|
+
this.o1j_1 = tmp0_serialDesc;
|
|
3276
|
+
}
|
|
3277
|
+
protoOf($serializer_11).p1j = function (encoder, value) {
|
|
3278
|
+
var tmp0_desc = this.o1j_1;
|
|
3279
|
+
var tmp1_output = encoder.fl(tmp0_desc);
|
|
3280
|
+
if (tmp1_output.bn(tmp0_desc, 0) ? true : !(value.temperatureC == null)) {
|
|
3281
|
+
tmp1_output.xm(tmp0_desc, 0, IntSerializer_getInstance(), value.temperatureC);
|
|
3283
3282
|
}
|
|
3284
|
-
if (tmp1_output.
|
|
3285
|
-
tmp1_output.
|
|
3283
|
+
if (tmp1_output.bn(tmp0_desc, 1) ? true : !(value.temperatureFanC == null)) {
|
|
3284
|
+
tmp1_output.xm(tmp0_desc, 1, IntSerializer_getInstance(), value.temperatureFanC);
|
|
3286
3285
|
}
|
|
3287
|
-
if (tmp1_output.
|
|
3288
|
-
tmp1_output.
|
|
3286
|
+
if (tmp1_output.bn(tmp0_desc, 2) ? true : !(value.temperatureF == null)) {
|
|
3287
|
+
tmp1_output.xm(tmp0_desc, 2, IntSerializer_getInstance(), value.temperatureF);
|
|
3289
3288
|
}
|
|
3290
|
-
if (tmp1_output.
|
|
3291
|
-
tmp1_output.
|
|
3289
|
+
if (tmp1_output.bn(tmp0_desc, 3) ? true : !(value.gasMark == null)) {
|
|
3290
|
+
tmp1_output.xm(tmp0_desc, 3, FloatSerializer_getInstance(), value.gasMark);
|
|
3292
3291
|
}
|
|
3293
|
-
tmp1_output.
|
|
3292
|
+
tmp1_output.gl(tmp0_desc);
|
|
3294
3293
|
};
|
|
3295
|
-
protoOf($serializer_11).
|
|
3296
|
-
return this.
|
|
3294
|
+
protoOf($serializer_11).ii = function (encoder, value) {
|
|
3295
|
+
return this.p1j(encoder, value instanceof OvenTemperaturePlaceholder ? value : THROW_CCE());
|
|
3297
3296
|
};
|
|
3298
|
-
protoOf($serializer_11).
|
|
3299
|
-
var tmp0_desc = this.
|
|
3297
|
+
protoOf($serializer_11).ji = function (decoder) {
|
|
3298
|
+
var tmp0_desc = this.o1j_1;
|
|
3300
3299
|
var tmp1_flag = true;
|
|
3301
3300
|
var tmp2_index = 0;
|
|
3302
3301
|
var tmp3_bitMask0 = 0;
|
|
@@ -3304,50 +3303,50 @@
|
|
|
3304
3303
|
var tmp5_local1 = null;
|
|
3305
3304
|
var tmp6_local2 = null;
|
|
3306
3305
|
var tmp7_local3 = null;
|
|
3307
|
-
var tmp8_input = decoder.
|
|
3308
|
-
if (tmp8_input.
|
|
3309
|
-
tmp4_local0 = tmp8_input.
|
|
3306
|
+
var tmp8_input = decoder.fl(tmp0_desc);
|
|
3307
|
+
if (tmp8_input.vl()) {
|
|
3308
|
+
tmp4_local0 = tmp8_input.tl(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
3310
3309
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
3311
|
-
tmp5_local1 = tmp8_input.
|
|
3310
|
+
tmp5_local1 = tmp8_input.tl(tmp0_desc, 1, IntSerializer_getInstance(), tmp5_local1);
|
|
3312
3311
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
3313
|
-
tmp6_local2 = tmp8_input.
|
|
3312
|
+
tmp6_local2 = tmp8_input.tl(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
3314
3313
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
3315
|
-
tmp7_local3 = tmp8_input.
|
|
3314
|
+
tmp7_local3 = tmp8_input.tl(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3);
|
|
3316
3315
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
3317
3316
|
} else
|
|
3318
3317
|
while (tmp1_flag) {
|
|
3319
|
-
tmp2_index = tmp8_input.
|
|
3318
|
+
tmp2_index = tmp8_input.wl(tmp0_desc);
|
|
3320
3319
|
switch (tmp2_index) {
|
|
3321
3320
|
case -1:
|
|
3322
3321
|
tmp1_flag = false;
|
|
3323
3322
|
break;
|
|
3324
3323
|
case 0:
|
|
3325
|
-
tmp4_local0 = tmp8_input.
|
|
3324
|
+
tmp4_local0 = tmp8_input.tl(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
3326
3325
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
3327
3326
|
break;
|
|
3328
3327
|
case 1:
|
|
3329
|
-
tmp5_local1 = tmp8_input.
|
|
3328
|
+
tmp5_local1 = tmp8_input.tl(tmp0_desc, 1, IntSerializer_getInstance(), tmp5_local1);
|
|
3330
3329
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
3331
3330
|
break;
|
|
3332
3331
|
case 2:
|
|
3333
|
-
tmp6_local2 = tmp8_input.
|
|
3332
|
+
tmp6_local2 = tmp8_input.tl(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
3334
3333
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
3335
3334
|
break;
|
|
3336
3335
|
case 3:
|
|
3337
|
-
tmp7_local3 = tmp8_input.
|
|
3336
|
+
tmp7_local3 = tmp8_input.tl(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3);
|
|
3338
3337
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
3339
3338
|
break;
|
|
3340
3339
|
default:
|
|
3341
3340
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
3342
3341
|
}
|
|
3343
3342
|
}
|
|
3344
|
-
tmp8_input.
|
|
3343
|
+
tmp8_input.gl(tmp0_desc);
|
|
3345
3344
|
return OvenTemperaturePlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
3346
3345
|
};
|
|
3347
|
-
protoOf($serializer_11).
|
|
3348
|
-
return this.
|
|
3346
|
+
protoOf($serializer_11).hi = function () {
|
|
3347
|
+
return this.o1j_1;
|
|
3349
3348
|
};
|
|
3350
|
-
protoOf($serializer_11).
|
|
3349
|
+
protoOf($serializer_11).qs = function () {
|
|
3351
3350
|
// Inline function 'kotlin.arrayOf' call
|
|
3352
3351
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3353
3352
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3361,7 +3360,7 @@
|
|
|
3361
3360
|
}
|
|
3362
3361
|
function OvenTemperaturePlaceholder_init_$Init$(seen0, temperatureC, temperatureFanC, temperatureF, gasMark, serializationConstructorMarker, $this) {
|
|
3363
3362
|
if (!(0 === (0 & seen0))) {
|
|
3364
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_11().
|
|
3363
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_11().o1j_1);
|
|
3365
3364
|
}
|
|
3366
3365
|
if (0 === (seen0 & 1))
|
|
3367
3366
|
$this.temperatureC = null;
|
|
@@ -3394,31 +3393,31 @@
|
|
|
3394
3393
|
this.temperatureF = temperatureF;
|
|
3395
3394
|
this.gasMark = gasMark;
|
|
3396
3395
|
}
|
|
3397
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3396
|
+
protoOf(OvenTemperaturePlaceholder).q1j = function () {
|
|
3398
3397
|
return this.temperatureC;
|
|
3399
3398
|
};
|
|
3400
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3399
|
+
protoOf(OvenTemperaturePlaceholder).r1j = function () {
|
|
3401
3400
|
return this.temperatureFanC;
|
|
3402
3401
|
};
|
|
3403
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3402
|
+
protoOf(OvenTemperaturePlaceholder).s1j = function () {
|
|
3404
3403
|
return this.temperatureF;
|
|
3405
3404
|
};
|
|
3406
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3405
|
+
protoOf(OvenTemperaturePlaceholder).t1j = function () {
|
|
3407
3406
|
return this.gasMark;
|
|
3408
3407
|
};
|
|
3409
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3408
|
+
protoOf(OvenTemperaturePlaceholder).ed = function () {
|
|
3410
3409
|
return this.temperatureC;
|
|
3411
3410
|
};
|
|
3412
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3411
|
+
protoOf(OvenTemperaturePlaceholder).fd = function () {
|
|
3413
3412
|
return this.temperatureFanC;
|
|
3414
3413
|
};
|
|
3415
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3414
|
+
protoOf(OvenTemperaturePlaceholder).j1j = function () {
|
|
3416
3415
|
return this.temperatureF;
|
|
3417
3416
|
};
|
|
3418
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3417
|
+
protoOf(OvenTemperaturePlaceholder).k1j = function () {
|
|
3419
3418
|
return this.gasMark;
|
|
3420
3419
|
};
|
|
3421
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3420
|
+
protoOf(OvenTemperaturePlaceholder).u1j = function (temperatureC, temperatureFanC, temperatureF, gasMark) {
|
|
3422
3421
|
return new OvenTemperaturePlaceholder(temperatureC, temperatureFanC, temperatureF, gasMark);
|
|
3423
3422
|
};
|
|
3424
3423
|
protoOf(OvenTemperaturePlaceholder).copy = function (temperatureC, temperatureFanC, temperatureF, gasMark, $super) {
|
|
@@ -3426,7 +3425,7 @@
|
|
|
3426
3425
|
temperatureFanC = temperatureFanC === VOID ? this.temperatureFanC : temperatureFanC;
|
|
3427
3426
|
temperatureF = temperatureF === VOID ? this.temperatureF : temperatureF;
|
|
3428
3427
|
gasMark = gasMark === VOID ? this.gasMark : gasMark;
|
|
3429
|
-
return $super === VOID ? this.
|
|
3428
|
+
return $super === VOID ? this.u1j(temperatureC, temperatureFanC, temperatureF, gasMark) : $super.u1j.call(this, temperatureC, temperatureFanC, temperatureF, gasMark);
|
|
3430
3429
|
};
|
|
3431
3430
|
protoOf(OvenTemperaturePlaceholder).toString = function () {
|
|
3432
3431
|
return 'OvenTemperaturePlaceholder(temperatureC=' + this.temperatureC + ', temperatureFanC=' + this.temperatureFanC + ', temperatureF=' + this.temperatureF + ', gasMark=' + this.gasMark + ')';
|
|
@@ -3511,25 +3510,25 @@
|
|
|
3511
3510
|
Enum.call(this, name, ordinal);
|
|
3512
3511
|
}
|
|
3513
3512
|
function MeasurementUnit(singular, plural, symbol, symbolPlural, unitType, measuringSystems, quantity) {
|
|
3514
|
-
this.
|
|
3515
|
-
this.
|
|
3516
|
-
this.
|
|
3517
|
-
this.
|
|
3518
|
-
this.
|
|
3519
|
-
this.
|
|
3520
|
-
this.
|
|
3513
|
+
this.y1e_1 = singular;
|
|
3514
|
+
this.z1e_1 = plural;
|
|
3515
|
+
this.a1f_1 = symbol;
|
|
3516
|
+
this.b1f_1 = symbolPlural;
|
|
3517
|
+
this.c1f_1 = unitType;
|
|
3518
|
+
this.d1f_1 = measuringSystems;
|
|
3519
|
+
this.e1f_1 = quantity;
|
|
3521
3520
|
}
|
|
3522
3521
|
protoOf(MeasurementUnit).toString = function () {
|
|
3523
|
-
return 'MeasurementUnit(singular=' + this.
|
|
3522
|
+
return 'MeasurementUnit(singular=' + this.y1e_1 + ', plural=' + this.z1e_1 + ', symbol=' + this.a1f_1 + ', symbolPlural=' + this.b1f_1 + ', unitType=' + toString(this.c1f_1) + ', measuringSystems=' + toString_0(this.d1f_1) + ', quantity=' + this.e1f_1 + ')';
|
|
3524
3523
|
};
|
|
3525
3524
|
protoOf(MeasurementUnit).hashCode = function () {
|
|
3526
|
-
var result = getStringHashCode(this.
|
|
3527
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3528
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3529
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3530
|
-
result = imul(result, 31) + (this.
|
|
3531
|
-
result = imul(result, 31) + hashCode(this.
|
|
3532
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3525
|
+
var result = getStringHashCode(this.y1e_1);
|
|
3526
|
+
result = imul(result, 31) + getStringHashCode(this.z1e_1) | 0;
|
|
3527
|
+
result = imul(result, 31) + getStringHashCode(this.a1f_1) | 0;
|
|
3528
|
+
result = imul(result, 31) + getStringHashCode(this.b1f_1) | 0;
|
|
3529
|
+
result = imul(result, 31) + (this.c1f_1 == null ? 0 : this.c1f_1.hashCode()) | 0;
|
|
3530
|
+
result = imul(result, 31) + hashCode(this.d1f_1) | 0;
|
|
3531
|
+
result = imul(result, 31) + getNumberHashCode(this.e1f_1) | 0;
|
|
3533
3532
|
return result;
|
|
3534
3533
|
};
|
|
3535
3534
|
protoOf(MeasurementUnit).equals = function (other) {
|
|
@@ -3537,19 +3536,19 @@
|
|
|
3537
3536
|
return true;
|
|
3538
3537
|
if (!(other instanceof MeasurementUnit))
|
|
3539
3538
|
return false;
|
|
3540
|
-
if (!(this.
|
|
3539
|
+
if (!(this.y1e_1 === other.y1e_1))
|
|
3541
3540
|
return false;
|
|
3542
|
-
if (!(this.
|
|
3541
|
+
if (!(this.z1e_1 === other.z1e_1))
|
|
3543
3542
|
return false;
|
|
3544
|
-
if (!(this.
|
|
3543
|
+
if (!(this.a1f_1 === other.a1f_1))
|
|
3545
3544
|
return false;
|
|
3546
|
-
if (!(this.
|
|
3545
|
+
if (!(this.b1f_1 === other.b1f_1))
|
|
3547
3546
|
return false;
|
|
3548
|
-
if (!equals(this.
|
|
3547
|
+
if (!equals(this.c1f_1, other.c1f_1))
|
|
3549
3548
|
return false;
|
|
3550
|
-
if (!equals(this.
|
|
3549
|
+
if (!equals(this.d1f_1, other.d1f_1))
|
|
3551
3550
|
return false;
|
|
3552
|
-
if (!equals(this.
|
|
3551
|
+
if (!equals(this.e1f_1, other.e1f_1))
|
|
3553
3552
|
return false;
|
|
3554
3553
|
return true;
|
|
3555
3554
|
};
|
|
@@ -3558,38 +3557,38 @@
|
|
|
3558
3557
|
var tmp = this;
|
|
3559
3558
|
var tmp0_unitType = UnitType_VOLUME_getInstance();
|
|
3560
3559
|
var tmp1_measuringSystems = setOf([USCustomary_instance, Imperial_instance]);
|
|
3561
|
-
tmp.
|
|
3562
|
-
this.
|
|
3563
|
-
this.
|
|
3564
|
-
this.
|
|
3565
|
-
this.
|
|
3566
|
-
this.
|
|
3567
|
-
this.
|
|
3568
|
-
this.
|
|
3569
|
-
this.
|
|
3570
|
-
this.
|
|
3571
|
-
this.
|
|
3572
|
-
this.
|
|
3573
|
-
this.
|
|
3574
|
-
this.
|
|
3575
|
-
this.
|
|
3576
|
-
this.
|
|
3577
|
-
this.
|
|
3578
|
-
this.
|
|
3579
|
-
this.
|
|
3580
|
-
this.
|
|
3581
|
-
this.
|
|
3582
|
-
this.
|
|
3560
|
+
tmp.k1d_1 = new MeasurementUnit('stick', 'sticks', 'stick', 'sticks', tmp0_unitType, tmp1_measuringSystems, 118.294);
|
|
3561
|
+
this.l1d_1 = new MeasurementUnit('gram', 'grams', 'g', 'g', UnitType_WEIGHT_getInstance(), setOf_0(Metric_instance), 1.0);
|
|
3562
|
+
this.m1d_1 = new MeasurementUnit('kilogram', 'kilograms', 'kg', 'kg', UnitType_WEIGHT_getInstance(), setOf_0(Metric_instance), 1000.0);
|
|
3563
|
+
this.n1d_1 = new MeasurementUnit('ounce', 'ounces', 'oz', 'oz', UnitType_WEIGHT_getInstance(), setOf([Imperial_instance, USCustomary_instance]), 28.3495);
|
|
3564
|
+
this.o1d_1 = new MeasurementUnit('pound', 'pounds', 'lb', 'lbs', UnitType_WEIGHT_getInstance(), setOf([Imperial_instance, USCustomary_instance]), 16 * this.n1d_1.e1f_1);
|
|
3565
|
+
this.p1d_1 = new MeasurementUnit('millilitre', 'millilitres', 'ml', 'ml', UnitType_VOLUME_getInstance(), setOf_0(Metric_instance), 1.0);
|
|
3566
|
+
this.q1d_1 = new MeasurementUnit('centilitre', 'centilitres', 'cl', 'cl', UnitType_VOLUME_getInstance(), setOf_0(Metric_instance), 10.0);
|
|
3567
|
+
this.r1d_1 = new MeasurementUnit('litre', 'litres', 'l', 'l', UnitType_VOLUME_getInstance(), setOf_0(Metric_instance), 1000.0);
|
|
3568
|
+
this.s1d_1 = new MeasurementUnit('teaspoon', 'teaspoons', 'tsp', 'tsp', UnitType_VOLUME_getInstance(), setOf_0(Metric_instance), 5.0);
|
|
3569
|
+
this.t1d_1 = new MeasurementUnit('tablespoon', 'tablespoons', 'tbsp', 'tbsp', UnitType_VOLUME_getInstance(), setOf_0(Metric_instance), 15.0);
|
|
3570
|
+
this.u1d_1 = new MeasurementUnit('teaspoon', 'teaspoons', 'tsp', 'tsp', UnitType_VOLUME_getInstance(), setOf([Imperial_instance, USCustomary_instance]), 4.9289);
|
|
3571
|
+
this.v1d_1 = new MeasurementUnit('tablespoon', 'tablespoons', 'tbsp', 'tbsp', UnitType_VOLUME_getInstance(), setOf([Imperial_instance, USCustomary_instance]), 3 * this.u1d_1.e1f_1);
|
|
3572
|
+
this.w1d_1 = new MeasurementUnit('fluid ounce', 'fluid ounces', 'fl oz', 'fl oz', UnitType_VOLUME_getInstance(), setOf_0(Imperial_instance), 6 * this.u1d_1.e1f_1);
|
|
3573
|
+
this.x1d_1 = new MeasurementUnit('cup', 'cups', 'cup', 'cups', UnitType_VOLUME_getInstance(), setOf_0(USCustomary_instance), 48 * this.u1d_1.e1f_1);
|
|
3574
|
+
this.y1d_1 = new MeasurementUnit('cup', 'cups', 'cup', 'cups', UnitType_VOLUME_getInstance(), setOf_0(Metric_instance), 250.0);
|
|
3575
|
+
this.z1d_1 = new MeasurementUnit('pint', 'pints', 'pt', 'pts', UnitType_VOLUME_getInstance(), setOf([Imperial_instance, USCustomary_instance]), 2 * this.x1d_1.e1f_1);
|
|
3576
|
+
this.a1e_1 = new MeasurementUnit('quart', 'quarts', 'qt', 'qts', UnitType_VOLUME_getInstance(), setOf([Imperial_instance, USCustomary_instance]), 2 * this.z1d_1.e1f_1);
|
|
3577
|
+
this.b1e_1 = new MeasurementUnit('gallon', 'gallons', 'gal', 'gals', UnitType_VOLUME_getInstance(), setOf([Imperial_instance, USCustomary_instance]), 4 * this.a1e_1.e1f_1);
|
|
3578
|
+
this.c1e_1 = new MeasurementUnit('millimetre', 'millimetres', 'mm', 'mm', UnitType_LENGTH_getInstance(), setOf_0(Metric_instance), 1.0);
|
|
3579
|
+
this.d1e_1 = new MeasurementUnit('centimetre', 'centimetres', 'cm', 'cm', UnitType_LENGTH_getInstance(), setOf_0(Metric_instance), 10.0);
|
|
3580
|
+
this.e1e_1 = new MeasurementUnit('inch', 'inches', 'in', 'in', UnitType_LENGTH_getInstance(), setOf_0(Imperial_instance), 25.4);
|
|
3581
|
+
this.f1e_1 = listOf([this.k1d_1, this.l1d_1, this.m1d_1, this.n1d_1, this.o1d_1, this.p1d_1, this.q1d_1, this.r1d_1, this.s1d_1, this.t1d_1, this.u1d_1, this.v1d_1, this.w1d_1, this.x1d_1, this.y1d_1, this.z1d_1, this.a1e_1, this.b1e_1, this.c1e_1, this.d1e_1, this.e1e_1]);
|
|
3583
3582
|
var tmp_0 = this;
|
|
3584
3583
|
// Inline function 'kotlin.collections.filter' call
|
|
3585
|
-
var tmp0 = this.
|
|
3584
|
+
var tmp0 = this.f1e_1;
|
|
3586
3585
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3587
3586
|
var destination = ArrayList_init_$Create$_0();
|
|
3588
|
-
var _iterator__ex2g4s = tmp0.
|
|
3589
|
-
while (_iterator__ex2g4s.
|
|
3590
|
-
var element = _iterator__ex2g4s.
|
|
3591
|
-
if (element.
|
|
3592
|
-
destination.
|
|
3587
|
+
var _iterator__ex2g4s = tmp0.q();
|
|
3588
|
+
while (_iterator__ex2g4s.r()) {
|
|
3589
|
+
var element = _iterator__ex2g4s.s();
|
|
3590
|
+
if (element.d1f_1.x(Metric_instance)) {
|
|
3591
|
+
destination.u(element);
|
|
3593
3592
|
}
|
|
3594
3593
|
}
|
|
3595
3594
|
// Inline function 'kotlin.let' call
|
|
@@ -3597,56 +3596,56 @@
|
|
|
3597
3596
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination, 10)), 16);
|
|
3598
3597
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3599
3598
|
var destination_0 = LinkedHashMap_init_$Create$(capacity);
|
|
3600
|
-
var _iterator__ex2g4s_0 = destination.
|
|
3601
|
-
while (_iterator__ex2g4s_0.
|
|
3602
|
-
var element_0 = _iterator__ex2g4s_0.
|
|
3603
|
-
var tmp$ret$
|
|
3604
|
-
destination_0.
|
|
3599
|
+
var _iterator__ex2g4s_0 = destination.q();
|
|
3600
|
+
while (_iterator__ex2g4s_0.r()) {
|
|
3601
|
+
var element_0 = _iterator__ex2g4s_0.s();
|
|
3602
|
+
var tmp$ret$7 = element_0.a1f_1;
|
|
3603
|
+
destination_0.m2(tmp$ret$7, element_0);
|
|
3605
3604
|
}
|
|
3606
3605
|
var tmp_1 = destination_0;
|
|
3607
3606
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3608
3607
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination, 10)), 16);
|
|
3609
3608
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3610
3609
|
var destination_1 = LinkedHashMap_init_$Create$(capacity_0);
|
|
3611
|
-
var _iterator__ex2g4s_1 = destination.
|
|
3612
|
-
while (_iterator__ex2g4s_1.
|
|
3613
|
-
var element_1 = _iterator__ex2g4s_1.
|
|
3614
|
-
var tmp$ret$
|
|
3615
|
-
destination_1.
|
|
3610
|
+
var _iterator__ex2g4s_1 = destination.q();
|
|
3611
|
+
while (_iterator__ex2g4s_1.r()) {
|
|
3612
|
+
var element_1 = _iterator__ex2g4s_1.s();
|
|
3613
|
+
var tmp$ret$10 = element_1.b1f_1;
|
|
3614
|
+
destination_1.m2(tmp$ret$10, element_1);
|
|
3616
3615
|
}
|
|
3617
3616
|
var tmp_2 = plus(tmp_1, destination_1);
|
|
3618
3617
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3619
3618
|
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination, 10)), 16);
|
|
3620
3619
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3621
3620
|
var destination_2 = LinkedHashMap_init_$Create$(capacity_1);
|
|
3622
|
-
var _iterator__ex2g4s_2 = destination.
|
|
3623
|
-
while (_iterator__ex2g4s_2.
|
|
3624
|
-
var element_2 = _iterator__ex2g4s_2.
|
|
3625
|
-
var tmp$ret$
|
|
3626
|
-
destination_2.
|
|
3621
|
+
var _iterator__ex2g4s_2 = destination.q();
|
|
3622
|
+
while (_iterator__ex2g4s_2.r()) {
|
|
3623
|
+
var element_2 = _iterator__ex2g4s_2.s();
|
|
3624
|
+
var tmp$ret$13 = element_2.y1e_1;
|
|
3625
|
+
destination_2.m2(tmp$ret$13, element_2);
|
|
3627
3626
|
}
|
|
3628
3627
|
var tmp_3 = plus(tmp_2, destination_2);
|
|
3629
3628
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3630
3629
|
var capacity_2 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination, 10)), 16);
|
|
3631
3630
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3632
3631
|
var destination_3 = LinkedHashMap_init_$Create$(capacity_2);
|
|
3633
|
-
var _iterator__ex2g4s_3 = destination.
|
|
3634
|
-
while (_iterator__ex2g4s_3.
|
|
3635
|
-
var element_3 = _iterator__ex2g4s_3.
|
|
3636
|
-
var tmp$ret$
|
|
3637
|
-
destination_3.
|
|
3632
|
+
var _iterator__ex2g4s_3 = destination.q();
|
|
3633
|
+
while (_iterator__ex2g4s_3.r()) {
|
|
3634
|
+
var element_3 = _iterator__ex2g4s_3.s();
|
|
3635
|
+
var tmp$ret$16 = element_3.z1e_1;
|
|
3636
|
+
destination_3.m2(tmp$ret$16, element_3);
|
|
3638
3637
|
}
|
|
3639
|
-
tmp_0.
|
|
3638
|
+
tmp_0.g1e_1 = plus(tmp_3, destination_3);
|
|
3640
3639
|
var tmp_4 = this;
|
|
3641
3640
|
// Inline function 'kotlin.collections.filter' call
|
|
3642
|
-
var tmp0_0 = this.
|
|
3641
|
+
var tmp0_0 = this.f1e_1;
|
|
3643
3642
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3644
3643
|
var destination_4 = ArrayList_init_$Create$_0();
|
|
3645
|
-
var _iterator__ex2g4s_4 = tmp0_0.
|
|
3646
|
-
while (_iterator__ex2g4s_4.
|
|
3647
|
-
var element_4 = _iterator__ex2g4s_4.
|
|
3648
|
-
if (element_4.
|
|
3649
|
-
destination_4.
|
|
3644
|
+
var _iterator__ex2g4s_4 = tmp0_0.q();
|
|
3645
|
+
while (_iterator__ex2g4s_4.r()) {
|
|
3646
|
+
var element_4 = _iterator__ex2g4s_4.s();
|
|
3647
|
+
if (element_4.d1f_1.x(Imperial_instance)) {
|
|
3648
|
+
destination_4.u(element_4);
|
|
3650
3649
|
}
|
|
3651
3650
|
}
|
|
3652
3651
|
// Inline function 'kotlin.let' call
|
|
@@ -3654,56 +3653,56 @@
|
|
|
3654
3653
|
var capacity_3 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_4, 10)), 16);
|
|
3655
3654
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3656
3655
|
var destination_5 = LinkedHashMap_init_$Create$(capacity_3);
|
|
3657
|
-
var _iterator__ex2g4s_5 = destination_4.
|
|
3658
|
-
while (_iterator__ex2g4s_5.
|
|
3659
|
-
var element_5 = _iterator__ex2g4s_5.
|
|
3660
|
-
var tmp$ret$
|
|
3661
|
-
destination_5.
|
|
3656
|
+
var _iterator__ex2g4s_5 = destination_4.q();
|
|
3657
|
+
while (_iterator__ex2g4s_5.r()) {
|
|
3658
|
+
var element_5 = _iterator__ex2g4s_5.s();
|
|
3659
|
+
var tmp$ret$24 = element_5.a1f_1;
|
|
3660
|
+
destination_5.m2(tmp$ret$24, element_5);
|
|
3662
3661
|
}
|
|
3663
3662
|
var tmp_5 = destination_5;
|
|
3664
3663
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3665
3664
|
var capacity_4 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_4, 10)), 16);
|
|
3666
3665
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3667
3666
|
var destination_6 = LinkedHashMap_init_$Create$(capacity_4);
|
|
3668
|
-
var _iterator__ex2g4s_6 = destination_4.
|
|
3669
|
-
while (_iterator__ex2g4s_6.
|
|
3670
|
-
var element_6 = _iterator__ex2g4s_6.
|
|
3671
|
-
var tmp$ret$
|
|
3672
|
-
destination_6.
|
|
3667
|
+
var _iterator__ex2g4s_6 = destination_4.q();
|
|
3668
|
+
while (_iterator__ex2g4s_6.r()) {
|
|
3669
|
+
var element_6 = _iterator__ex2g4s_6.s();
|
|
3670
|
+
var tmp$ret$27 = element_6.b1f_1;
|
|
3671
|
+
destination_6.m2(tmp$ret$27, element_6);
|
|
3673
3672
|
}
|
|
3674
3673
|
var tmp_6 = plus(tmp_5, destination_6);
|
|
3675
3674
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3676
3675
|
var capacity_5 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_4, 10)), 16);
|
|
3677
3676
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3678
3677
|
var destination_7 = LinkedHashMap_init_$Create$(capacity_5);
|
|
3679
|
-
var _iterator__ex2g4s_7 = destination_4.
|
|
3680
|
-
while (_iterator__ex2g4s_7.
|
|
3681
|
-
var element_7 = _iterator__ex2g4s_7.
|
|
3682
|
-
var tmp$ret$
|
|
3683
|
-
destination_7.
|
|
3678
|
+
var _iterator__ex2g4s_7 = destination_4.q();
|
|
3679
|
+
while (_iterator__ex2g4s_7.r()) {
|
|
3680
|
+
var element_7 = _iterator__ex2g4s_7.s();
|
|
3681
|
+
var tmp$ret$30 = element_7.y1e_1;
|
|
3682
|
+
destination_7.m2(tmp$ret$30, element_7);
|
|
3684
3683
|
}
|
|
3685
3684
|
var tmp_7 = plus(tmp_6, destination_7);
|
|
3686
3685
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3687
3686
|
var capacity_6 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_4, 10)), 16);
|
|
3688
3687
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3689
3688
|
var destination_8 = LinkedHashMap_init_$Create$(capacity_6);
|
|
3690
|
-
var _iterator__ex2g4s_8 = destination_4.
|
|
3691
|
-
while (_iterator__ex2g4s_8.
|
|
3692
|
-
var element_8 = _iterator__ex2g4s_8.
|
|
3693
|
-
var tmp$ret$
|
|
3694
|
-
destination_8.
|
|
3689
|
+
var _iterator__ex2g4s_8 = destination_4.q();
|
|
3690
|
+
while (_iterator__ex2g4s_8.r()) {
|
|
3691
|
+
var element_8 = _iterator__ex2g4s_8.s();
|
|
3692
|
+
var tmp$ret$33 = element_8.z1e_1;
|
|
3693
|
+
destination_8.m2(tmp$ret$33, element_8);
|
|
3695
3694
|
}
|
|
3696
|
-
tmp_4.
|
|
3695
|
+
tmp_4.h1e_1 = plus(tmp_7, destination_8);
|
|
3697
3696
|
var tmp_8 = this;
|
|
3698
3697
|
// Inline function 'kotlin.collections.filter' call
|
|
3699
|
-
var tmp0_1 = this.
|
|
3698
|
+
var tmp0_1 = this.f1e_1;
|
|
3700
3699
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3701
3700
|
var destination_9 = ArrayList_init_$Create$_0();
|
|
3702
|
-
var _iterator__ex2g4s_9 = tmp0_1.
|
|
3703
|
-
while (_iterator__ex2g4s_9.
|
|
3704
|
-
var element_9 = _iterator__ex2g4s_9.
|
|
3705
|
-
if (element_9.
|
|
3706
|
-
destination_9.
|
|
3701
|
+
var _iterator__ex2g4s_9 = tmp0_1.q();
|
|
3702
|
+
while (_iterator__ex2g4s_9.r()) {
|
|
3703
|
+
var element_9 = _iterator__ex2g4s_9.s();
|
|
3704
|
+
if (element_9.d1f_1.x(USCustomary_instance)) {
|
|
3705
|
+
destination_9.u(element_9);
|
|
3707
3706
|
}
|
|
3708
3707
|
}
|
|
3709
3708
|
// Inline function 'kotlin.let' call
|
|
@@ -3711,51 +3710,51 @@
|
|
|
3711
3710
|
var capacity_7 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_9, 10)), 16);
|
|
3712
3711
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3713
3712
|
var destination_10 = LinkedHashMap_init_$Create$(capacity_7);
|
|
3714
|
-
var _iterator__ex2g4s_10 = destination_9.
|
|
3715
|
-
while (_iterator__ex2g4s_10.
|
|
3716
|
-
var element_10 = _iterator__ex2g4s_10.
|
|
3717
|
-
var tmp$ret$
|
|
3718
|
-
destination_10.
|
|
3713
|
+
var _iterator__ex2g4s_10 = destination_9.q();
|
|
3714
|
+
while (_iterator__ex2g4s_10.r()) {
|
|
3715
|
+
var element_10 = _iterator__ex2g4s_10.s();
|
|
3716
|
+
var tmp$ret$41 = element_10.a1f_1;
|
|
3717
|
+
destination_10.m2(tmp$ret$41, element_10);
|
|
3719
3718
|
}
|
|
3720
3719
|
var tmp_9 = destination_10;
|
|
3721
3720
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3722
3721
|
var capacity_8 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_9, 10)), 16);
|
|
3723
3722
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3724
3723
|
var destination_11 = LinkedHashMap_init_$Create$(capacity_8);
|
|
3725
|
-
var _iterator__ex2g4s_11 = destination_9.
|
|
3726
|
-
while (_iterator__ex2g4s_11.
|
|
3727
|
-
var element_11 = _iterator__ex2g4s_11.
|
|
3728
|
-
var tmp$ret$
|
|
3729
|
-
destination_11.
|
|
3724
|
+
var _iterator__ex2g4s_11 = destination_9.q();
|
|
3725
|
+
while (_iterator__ex2g4s_11.r()) {
|
|
3726
|
+
var element_11 = _iterator__ex2g4s_11.s();
|
|
3727
|
+
var tmp$ret$44 = element_11.b1f_1;
|
|
3728
|
+
destination_11.m2(tmp$ret$44, element_11);
|
|
3730
3729
|
}
|
|
3731
3730
|
var tmp_10 = plus(tmp_9, destination_11);
|
|
3732
3731
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3733
3732
|
var capacity_9 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_9, 10)), 16);
|
|
3734
3733
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3735
3734
|
var destination_12 = LinkedHashMap_init_$Create$(capacity_9);
|
|
3736
|
-
var _iterator__ex2g4s_12 = destination_9.
|
|
3737
|
-
while (_iterator__ex2g4s_12.
|
|
3738
|
-
var element_12 = _iterator__ex2g4s_12.
|
|
3739
|
-
var tmp$ret$
|
|
3740
|
-
destination_12.
|
|
3735
|
+
var _iterator__ex2g4s_12 = destination_9.q();
|
|
3736
|
+
while (_iterator__ex2g4s_12.r()) {
|
|
3737
|
+
var element_12 = _iterator__ex2g4s_12.s();
|
|
3738
|
+
var tmp$ret$47 = element_12.y1e_1;
|
|
3739
|
+
destination_12.m2(tmp$ret$47, element_12);
|
|
3741
3740
|
}
|
|
3742
3741
|
var tmp_11 = plus(tmp_10, destination_12);
|
|
3743
3742
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3744
3743
|
var capacity_10 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_9, 10)), 16);
|
|
3745
3744
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
3746
3745
|
var destination_13 = LinkedHashMap_init_$Create$(capacity_10);
|
|
3747
|
-
var _iterator__ex2g4s_13 = destination_9.
|
|
3748
|
-
while (_iterator__ex2g4s_13.
|
|
3749
|
-
var element_13 = _iterator__ex2g4s_13.
|
|
3750
|
-
var tmp$ret$
|
|
3751
|
-
destination_13.
|
|
3746
|
+
var _iterator__ex2g4s_13 = destination_9.q();
|
|
3747
|
+
while (_iterator__ex2g4s_13.r()) {
|
|
3748
|
+
var element_13 = _iterator__ex2g4s_13.s();
|
|
3749
|
+
var tmp$ret$50 = element_13.z1e_1;
|
|
3750
|
+
destination_13.m2(tmp$ret$50, element_13);
|
|
3752
3751
|
}
|
|
3753
|
-
tmp_8.
|
|
3752
|
+
tmp_8.i1e_1 = plus(tmp_11, destination_13);
|
|
3754
3753
|
}
|
|
3755
|
-
protoOf(Units).
|
|
3756
|
-
var tmp0_elvis_lhs = this.
|
|
3757
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? this.
|
|
3758
|
-
var unit = tmp1_elvis_lhs == null ? this.
|
|
3754
|
+
protoOf(Units).j1e = function (name) {
|
|
3755
|
+
var tmp0_elvis_lhs = this.g1e_1.i2(name);
|
|
3756
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? this.h1e_1.i2(name) : tmp0_elvis_lhs;
|
|
3757
|
+
var unit = tmp1_elvis_lhs == null ? this.i1e_1.i2(name) : tmp1_elvis_lhs;
|
|
3759
3758
|
if (!(unit == null)) {
|
|
3760
3759
|
return unit;
|
|
3761
3760
|
} else {
|
|
@@ -3784,40 +3783,40 @@
|
|
|
3784
3783
|
}
|
|
3785
3784
|
function UnitConversions() {
|
|
3786
3785
|
UnitConversions_instance = this;
|
|
3787
|
-
this.
|
|
3788
|
-
this.
|
|
3789
|
-
this.
|
|
3790
|
-
this.
|
|
3791
|
-
this.
|
|
3792
|
-
this.
|
|
3793
|
-
this.
|
|
3794
|
-
this.
|
|
3795
|
-
this.
|
|
3796
|
-
}
|
|
3797
|
-
protoOf(UnitConversions).
|
|
3786
|
+
this.o1e_1 = 0.00422675;
|
|
3787
|
+
this.p1e_1 = 0.202884;
|
|
3788
|
+
this.q1e_1 = setOf([Units_getInstance().s1d_1, Units_getInstance().t1d_1, Units_getInstance().y1d_1]);
|
|
3789
|
+
this.r1e_1 = listOf([to(0.0, Units_getInstance().l1d_1), to(1000.0, Units_getInstance().m1d_1), to(0.0, Units_getInstance().p1d_1), to(2.5, Units_getInstance().s1d_1), to(15.0, Units_getInstance().t1d_1), to(125.0, Units_getInstance().y1d_1), to(1000.0, Units_getInstance().r1d_1), to(0.0, Units_getInstance().c1e_1), to(10.0, Units_getInstance().d1e_1)]);
|
|
3790
|
+
this.s1e_1 = listOf([to(0.0, Units_getInstance().l1d_1), to(1000.0, Units_getInstance().m1d_1), to(0.0, Units_getInstance().p1d_1), to(1000.0, Units_getInstance().r1d_1), to(0.0, Units_getInstance().c1e_1), to(10.0, Units_getInstance().d1e_1)]);
|
|
3791
|
+
this.t1e_1 = listOf_0(to(0.0, Units_getInstance().k1d_1));
|
|
3792
|
+
this.u1e_1 = listOf([to(0.0, Units_getInstance().n1d_1), to(16.0 * Units_getInstance().n1d_1.e1f_1, Units_getInstance().o1d_1), to(0.0, Units_getInstance().u1d_1), to(3.0 * Units_getInstance().u1d_1.e1f_1, Units_getInstance().v1d_1), to(4.0 * Units_getInstance().u1d_1.e1f_1, Units_getInstance().u1d_1), to(6.0 * Units_getInstance().u1d_1.e1f_1, Units_getInstance().v1d_1), to(7.0 * Units_getInstance().u1d_1.e1f_1, Units_getInstance().u1d_1), to(9.0 * Units_getInstance().u1d_1.e1f_1, Units_getInstance().v1d_1), to(10.0 * Units_getInstance().u1d_1.e1f_1, Units_getInstance().u1d_1), to(12.0 * Units_getInstance().u1d_1.e1f_1, Units_getInstance().x1d_1), to(768.0 * Units_getInstance().u1d_1.e1f_1, Units_getInstance().b1e_1), to(0.0, Units_getInstance().e1e_1)]);
|
|
3793
|
+
this.v1e_1 = listOf([to(0.0, Units_getInstance().n1d_1), to(16.0 * Units_getInstance().n1d_1.e1f_1, Units_getInstance().o1d_1), to(0.0, Units_getInstance().u1d_1), to(3.0 * Units_getInstance().u1d_1.e1f_1, Units_getInstance().v1d_1), to(12.0 * Units_getInstance().u1d_1.e1f_1, Units_getInstance().x1d_1), to(0.0, Units_getInstance().e1e_1)]);
|
|
3794
|
+
this.w1e_1 = listOf([to(0.0, Units_getInstance().n1d_1), to(16.0 * Units_getInstance().n1d_1.e1f_1, Units_getInstance().o1d_1), to(0.0, Units_getInstance().u1d_1), to(3.0 * Units_getInstance().u1d_1.e1f_1, Units_getInstance().v1d_1), to(6.0 * Units_getInstance().u1d_1.e1f_1, Units_getInstance().w1d_1), to(768.0 * Units_getInstance().u1d_1.e1f_1, Units_getInstance().b1e_1), to(0.0, Units_getInstance().e1e_1)]);
|
|
3795
|
+
}
|
|
3796
|
+
protoOf(UnitConversions).v1j = function (amount) {
|
|
3798
3797
|
var tmp;
|
|
3799
|
-
if (!(amount.
|
|
3800
|
-
var tmp_0 = amount.
|
|
3801
|
-
var tmp0_safe_receiver = amount.
|
|
3798
|
+
if (!(amount.z1c_1 == null)) {
|
|
3799
|
+
var tmp_0 = amount.x1c_1 * amount.z1c_1.e1f_1;
|
|
3800
|
+
var tmp0_safe_receiver = amount.y1c_1;
|
|
3802
3801
|
var tmp_1;
|
|
3803
3802
|
if (tmp0_safe_receiver == null) {
|
|
3804
3803
|
tmp_1 = null;
|
|
3805
3804
|
} else {
|
|
3806
3805
|
// Inline function 'kotlin.let' call
|
|
3807
|
-
tmp_1 = tmp0_safe_receiver * amount.
|
|
3806
|
+
tmp_1 = tmp0_safe_receiver * amount.z1c_1.e1f_1;
|
|
3808
3807
|
}
|
|
3809
3808
|
var tmp_2 = tmp_1;
|
|
3810
|
-
var tmp1_subject = amount.
|
|
3811
|
-
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.
|
|
3812
|
-
tmp = amount.
|
|
3809
|
+
var tmp1_subject = amount.z1c_1.c1f_1;
|
|
3810
|
+
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.q2_1;
|
|
3811
|
+
tmp = amount.c1d(tmp_0, tmp_2, tmp0 === 2 ? Units_getInstance().c1e_1 : tmp0 === 1 ? Units_getInstance().p1d_1 : tmp0 === 0 ? Units_getInstance().l1d_1 : amount.z1c_1);
|
|
3813
3812
|
} else {
|
|
3814
3813
|
tmp = amount;
|
|
3815
3814
|
}
|
|
3816
3815
|
return tmp;
|
|
3817
3816
|
};
|
|
3818
|
-
protoOf(UnitConversions).
|
|
3819
|
-
var tmp = amount.
|
|
3820
|
-
var tmp0_safe_receiver = amount.
|
|
3817
|
+
protoOf(UnitConversions).x1e = function (amount, target, factor, density) {
|
|
3818
|
+
var tmp = amount.x1c_1 * factor;
|
|
3819
|
+
var tmp0_safe_receiver = amount.y1c_1;
|
|
3821
3820
|
var tmp_0;
|
|
3822
3821
|
if (tmp0_safe_receiver == null) {
|
|
3823
3822
|
tmp_0 = null;
|
|
@@ -3825,33 +3824,33 @@
|
|
|
3825
3824
|
// Inline function 'kotlin.let' call
|
|
3826
3825
|
tmp_0 = tmp0_safe_receiver * factor;
|
|
3827
3826
|
}
|
|
3828
|
-
var scaledAmount = amount.
|
|
3829
|
-
if (scaledAmount.
|
|
3827
|
+
var scaledAmount = amount.c1d(tmp, tmp_0);
|
|
3828
|
+
if (scaledAmount.z1c_1 == null || (equals(target, Metric_instance) && factor === 1.0)) {
|
|
3830
3829
|
return scaledAmount;
|
|
3831
3830
|
}
|
|
3832
|
-
var smallestUnitAmount = this.
|
|
3831
|
+
var smallestUnitAmount = this.v1j(scaledAmount);
|
|
3833
3832
|
var tmp_1;
|
|
3834
3833
|
if (equals(target, Metric_instance)) {
|
|
3835
|
-
tmp_1 = contains(this.
|
|
3834
|
+
tmp_1 = contains(this.q1e_1, amount.z1c_1) ? this.r1e_1 : this.s1e_1;
|
|
3836
3835
|
} else if (equals(target, USCustomary_instance)) {
|
|
3837
3836
|
var tmp_2;
|
|
3838
3837
|
var tmp_3;
|
|
3839
|
-
if (amount.
|
|
3840
|
-
var tmp2_safe_receiver = amount.
|
|
3841
|
-
tmp_3 = equals(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
3838
|
+
if (amount.a1d_1 === true) {
|
|
3839
|
+
var tmp2_safe_receiver = amount.z1c_1;
|
|
3840
|
+
tmp_3 = equals(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.c1f_1, UnitType_WEIGHT_getInstance());
|
|
3842
3841
|
} else {
|
|
3843
3842
|
tmp_3 = false;
|
|
3844
3843
|
}
|
|
3845
3844
|
if (tmp_3) {
|
|
3846
|
-
tmp_2 = this.
|
|
3845
|
+
tmp_2 = this.v1e_1;
|
|
3847
3846
|
} else {
|
|
3848
|
-
tmp_2 = this.
|
|
3847
|
+
tmp_2 = this.u1e_1;
|
|
3849
3848
|
}
|
|
3850
3849
|
tmp_1 = tmp_2;
|
|
3851
3850
|
} else if (equals(target, Imperial_instance)) {
|
|
3852
|
-
tmp_1 = this.z1e_1;
|
|
3853
|
-
} else if (equals(target, Butter_instance)) {
|
|
3854
3851
|
tmp_1 = this.w1e_1;
|
|
3852
|
+
} else if (equals(target, Butter_instance)) {
|
|
3853
|
+
tmp_1 = this.t1e_1;
|
|
3855
3854
|
} else {
|
|
3856
3855
|
noWhenBranchMatchedException();
|
|
3857
3856
|
}
|
|
@@ -3862,17 +3861,17 @@
|
|
|
3862
3861
|
tmp_5 = true;
|
|
3863
3862
|
} else {
|
|
3864
3863
|
var tmp_6;
|
|
3865
|
-
if (amount.
|
|
3866
|
-
var tmp4_safe_receiver = amount.
|
|
3867
|
-
tmp_6 = equals(tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
3864
|
+
if (amount.a1d_1 === true && equals(target, USCustomary_instance) && !(density == null)) {
|
|
3865
|
+
var tmp4_safe_receiver = amount.z1c_1;
|
|
3866
|
+
tmp_6 = equals(tmp4_safe_receiver == null ? null : tmp4_safe_receiver.c1f_1, UnitType_WEIGHT_getInstance());
|
|
3868
3867
|
} else {
|
|
3869
3868
|
tmp_6 = false;
|
|
3870
3869
|
}
|
|
3871
3870
|
tmp_5 = tmp_6;
|
|
3872
3871
|
}
|
|
3873
3872
|
if (tmp_5) {
|
|
3874
|
-
var tmp_7 = smallestUnitAmount.
|
|
3875
|
-
var tmp3_safe_receiver = smallestUnitAmount.
|
|
3873
|
+
var tmp_7 = smallestUnitAmount.x1c_1 / density;
|
|
3874
|
+
var tmp3_safe_receiver = smallestUnitAmount.y1c_1;
|
|
3876
3875
|
var tmp_8;
|
|
3877
3876
|
if (tmp3_safe_receiver == null) {
|
|
3878
3877
|
tmp_8 = null;
|
|
@@ -3880,7 +3879,7 @@
|
|
|
3880
3879
|
// Inline function 'kotlin.let' call
|
|
3881
3880
|
tmp_8 = tmp3_safe_receiver / density;
|
|
3882
3881
|
}
|
|
3883
|
-
tmp_4 = new Amount(tmp_7, tmp_8, Units_getInstance().
|
|
3882
|
+
tmp_4 = new Amount(tmp_7, tmp_8, Units_getInstance().p1d_1);
|
|
3884
3883
|
} else {
|
|
3885
3884
|
tmp_4 = smallestUnitAmount;
|
|
3886
3885
|
}
|
|
@@ -3888,42 +3887,42 @@
|
|
|
3888
3887
|
// Inline function 'kotlin.collections.filter' call
|
|
3889
3888
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3890
3889
|
var destination = ArrayList_init_$Create$_0();
|
|
3891
|
-
var _iterator__ex2g4s = ladder.
|
|
3892
|
-
while (_iterator__ex2g4s.
|
|
3893
|
-
var element = _iterator__ex2g4s.
|
|
3894
|
-
var tmp0_safe_receiver_0 = amountToConvert.
|
|
3895
|
-
if (equals(element.
|
|
3896
|
-
destination.
|
|
3890
|
+
var _iterator__ex2g4s = ladder.q();
|
|
3891
|
+
while (_iterator__ex2g4s.r()) {
|
|
3892
|
+
var element = _iterator__ex2g4s.s();
|
|
3893
|
+
var tmp0_safe_receiver_0 = amountToConvert.z1c_1;
|
|
3894
|
+
if (equals(element.dd_1.c1f_1, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.c1f_1)) {
|
|
3895
|
+
destination.u(element);
|
|
3897
3896
|
}
|
|
3898
3897
|
}
|
|
3899
|
-
var tmp$ret$
|
|
3898
|
+
var tmp$ret$7;
|
|
3900
3899
|
$l$block: {
|
|
3901
3900
|
// Inline function 'kotlin.collections.lastOrNull' call
|
|
3902
|
-
var iterator = destination.
|
|
3903
|
-
while (iterator.
|
|
3904
|
-
var element_0 = iterator.
|
|
3905
|
-
if (amountToConvert.
|
|
3906
|
-
tmp$ret$
|
|
3901
|
+
var iterator = destination.c2(destination.w());
|
|
3902
|
+
while (iterator.w3()) {
|
|
3903
|
+
var element_0 = iterator.y3();
|
|
3904
|
+
if (amountToConvert.x1c_1 >= element_0.cd_1) {
|
|
3905
|
+
tmp$ret$7 = element_0;
|
|
3907
3906
|
break $l$block;
|
|
3908
3907
|
}
|
|
3909
3908
|
}
|
|
3910
|
-
tmp$ret$
|
|
3909
|
+
tmp$ret$7 = null;
|
|
3911
3910
|
}
|
|
3912
|
-
var tmp5_safe_receiver = tmp$ret$
|
|
3913
|
-
var mostRelevantUnit = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.
|
|
3911
|
+
var tmp5_safe_receiver = tmp$ret$7;
|
|
3912
|
+
var mostRelevantUnit = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.dd_1;
|
|
3914
3913
|
var tmp_9;
|
|
3915
3914
|
if (mostRelevantUnit == null) {
|
|
3916
3915
|
tmp_9 = null;
|
|
3917
3916
|
} else {
|
|
3918
3917
|
// Inline function 'kotlin.let' call
|
|
3919
|
-
var tmp_10 = amountToConvert.
|
|
3920
|
-
var tmp0_safe_receiver_1 = amountToConvert.
|
|
3918
|
+
var tmp_10 = amountToConvert.x1c_1 / mostRelevantUnit.e1f_1;
|
|
3919
|
+
var tmp0_safe_receiver_1 = amountToConvert.y1c_1;
|
|
3921
3920
|
var tmp_11;
|
|
3922
3921
|
if (tmp0_safe_receiver_1 == null) {
|
|
3923
3922
|
tmp_11 = null;
|
|
3924
3923
|
} else {
|
|
3925
3924
|
// Inline function 'kotlin.let' call
|
|
3926
|
-
tmp_11 = tmp0_safe_receiver_1 / mostRelevantUnit.
|
|
3925
|
+
tmp_11 = tmp0_safe_receiver_1 / mostRelevantUnit.e1f_1;
|
|
3927
3926
|
}
|
|
3928
3927
|
tmp_9 = new Amount(tmp_10, tmp_11, mostRelevantUnit);
|
|
3929
3928
|
}
|
|
@@ -3946,11 +3945,11 @@
|
|
|
3946
3945
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
3947
3946
|
var this_0 = get_tolerantJson_0();
|
|
3948
3947
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3949
|
-
var this_1 = this_0.
|
|
3948
|
+
var this_1 = this_0.ul();
|
|
3950
3949
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
3951
3950
|
var this_2 = serializer(this_1, createKType(getKClass(RecipeV3), arrayOf([]), false));
|
|
3952
3951
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
3953
|
-
var parsedRecipe = this_0.
|
|
3952
|
+
var parsedRecipe = this_0.r11(tmp$ret$1, recipe);
|
|
3954
3953
|
var tmp;
|
|
3955
3954
|
switch (unit) {
|
|
3956
3955
|
case 'Imperial':
|
|
@@ -3979,16 +3978,16 @@
|
|
|
3979
3978
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
3980
3979
|
var this_3 = Default_getInstance();
|
|
3981
3980
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3982
|
-
var this_4 = this_3.
|
|
3981
|
+
var this_4 = this_3.ul();
|
|
3983
3982
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
3984
3983
|
var this_5 = serializer(this_4, createKType(getKClass(RecipeV3), arrayOf([]), false));
|
|
3985
3984
|
var tmp$ret$4 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
3986
|
-
return this_3.
|
|
3985
|
+
return this_3.q11(tmp$ret$4, scaledRecipe);
|
|
3987
3986
|
}
|
|
3988
3987
|
function parseTemplate_0(templateString) {
|
|
3989
3988
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
3990
3989
|
var parsedTemplate = parseTemplate(templateString);
|
|
3991
|
-
return parsedTemplate.
|
|
3990
|
+
return parsedTemplate.h1f_1;
|
|
3992
3991
|
}
|
|
3993
3992
|
function renderTemplate(templateElements, session, unit) {
|
|
3994
3993
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
@@ -4017,19 +4016,18 @@
|
|
|
4017
4016
|
}
|
|
4018
4017
|
var measuringSystem = tmp;
|
|
4019
4018
|
var template = new ParsedTemplate(templateElements);
|
|
4020
|
-
return session.
|
|
4019
|
+
return session.g1f(template, 1.0, measuringSystem);
|
|
4021
4020
|
}
|
|
4022
4021
|
function createTemplateSession(rawDensityData) {
|
|
4023
4022
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
4024
4023
|
// Inline function 'kotlin.getOrThrow' call
|
|
4025
4024
|
var this_0 = newTemplateSession(rawDensityData);
|
|
4026
4025
|
throwOnFailure(this_0);
|
|
4027
|
-
|
|
4028
|
-
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
4026
|
+
return _Result___get_value__impl__bjfvqg(this_0);
|
|
4029
4027
|
}
|
|
4030
4028
|
function tolerantJson$lambda_0($this$Json) {
|
|
4031
4029
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
4032
|
-
$this$Json.
|
|
4030
|
+
$this$Json.l12_1 = true;
|
|
4033
4031
|
return Unit_instance;
|
|
4034
4032
|
}
|
|
4035
4033
|
var properties_initialized_ScaleRecipeJsContract_kt_yki7mr;
|
|
@@ -4040,19 +4038,19 @@
|
|
|
4040
4038
|
}
|
|
4041
4039
|
}
|
|
4042
4040
|
//region block: post-declaration
|
|
4043
|
-
protoOf($serializer).
|
|
4044
|
-
protoOf($serializer_0).
|
|
4045
|
-
protoOf($serializer_1).
|
|
4046
|
-
protoOf($serializer_2).
|
|
4047
|
-
protoOf($serializer_3).
|
|
4048
|
-
protoOf($serializer_4).
|
|
4049
|
-
protoOf($serializer_5).
|
|
4050
|
-
protoOf($serializer_6).
|
|
4051
|
-
protoOf($serializer_7).
|
|
4052
|
-
protoOf($serializer_8).
|
|
4053
|
-
protoOf($serializer_9).
|
|
4054
|
-
protoOf($serializer_10).
|
|
4055
|
-
protoOf($serializer_11).
|
|
4041
|
+
protoOf($serializer).rs = typeParametersSerializers;
|
|
4042
|
+
protoOf($serializer_0).rs = typeParametersSerializers;
|
|
4043
|
+
protoOf($serializer_1).rs = typeParametersSerializers;
|
|
4044
|
+
protoOf($serializer_2).rs = typeParametersSerializers;
|
|
4045
|
+
protoOf($serializer_3).rs = typeParametersSerializers;
|
|
4046
|
+
protoOf($serializer_4).rs = typeParametersSerializers;
|
|
4047
|
+
protoOf($serializer_5).rs = typeParametersSerializers;
|
|
4048
|
+
protoOf($serializer_6).rs = typeParametersSerializers;
|
|
4049
|
+
protoOf($serializer_7).rs = typeParametersSerializers;
|
|
4050
|
+
protoOf($serializer_8).rs = typeParametersSerializers;
|
|
4051
|
+
protoOf($serializer_9).rs = typeParametersSerializers;
|
|
4052
|
+
protoOf($serializer_10).rs = typeParametersSerializers;
|
|
4053
|
+
protoOf($serializer_11).rs = typeParametersSerializers;
|
|
4056
4054
|
//endregion
|
|
4057
4055
|
//region block: init
|
|
4058
4056
|
Companion_instance_1 = new Companion_0();
|
|
@@ -4072,25 +4070,25 @@
|
|
|
4072
4070
|
//endregion
|
|
4073
4071
|
//region block: exports
|
|
4074
4072
|
function $jsExportAll$(_) {
|
|
4075
|
-
var
|
|
4076
|
-
var
|
|
4077
|
-
var
|
|
4078
|
-
|
|
4079
|
-
var
|
|
4080
|
-
var
|
|
4081
|
-
var
|
|
4082
|
-
var
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
var
|
|
4087
|
-
var
|
|
4088
|
-
var
|
|
4089
|
-
var
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4073
|
+
var com = _.com || (_.com = {});
|
|
4074
|
+
var gu = com.gu || (com.gu = {});
|
|
4075
|
+
var recipe = gu.recipe || (gu.recipe = {});
|
|
4076
|
+
recipe.TemplateSession = TemplateSession;
|
|
4077
|
+
var com_0 = _.com || (_.com = {});
|
|
4078
|
+
var gu_0 = com_0.gu || (com_0.gu = {});
|
|
4079
|
+
var recipe_0 = gu_0.recipe || (gu_0.recipe = {});
|
|
4080
|
+
var template = recipe_0.template || (recipe_0.template = {});
|
|
4081
|
+
template.TemplateConst = TemplateConst;
|
|
4082
|
+
template.QuantityPlaceholder = QuantityPlaceholder;
|
|
4083
|
+
template.OvenTemperaturePlaceholder = OvenTemperaturePlaceholder;
|
|
4084
|
+
var com_1 = _.com || (_.com = {});
|
|
4085
|
+
var gu_1 = com_1.gu || (com_1.gu = {});
|
|
4086
|
+
var recipe_1 = gu_1.recipe || (gu_1.recipe = {});
|
|
4087
|
+
var js = recipe_1.js || (recipe_1.js = {});
|
|
4088
|
+
js.scaleRecipe = scaleRecipe;
|
|
4089
|
+
js.parseTemplate = parseTemplate_0;
|
|
4090
|
+
js.renderTemplate = renderTemplate;
|
|
4091
|
+
js.createTemplateSession = createTemplateSession;
|
|
4094
4092
|
}
|
|
4095
4093
|
$jsExportAll$(_);
|
|
4096
4094
|
kotlin_kotlin.$jsExportAll$(_);
|