@guardian/feast-multiplatform-library 15.0.0 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/feast-multiplatform-library-library.d.ts +1 -1
- package/kotlin/feast-multiplatform-library-library.js +881 -809
- package/kotlin/feast-multiplatform-library-library.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +169 -168
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +77 -77
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +90 -90
- package/package.json +1 -1
|
@@ -3,34 +3,34 @@
|
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
5
|
var VOID = kotlin_kotlin.$_$.b;
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var toString = kotlin_kotlin.$_$.
|
|
8
|
-
var getNumberHashCode = kotlin_kotlin.$_$.
|
|
9
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
10
|
-
var equals = kotlin_kotlin.$_$.
|
|
11
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.a8;
|
|
7
|
+
var toString = kotlin_kotlin.$_$.fb;
|
|
8
|
+
var getNumberHashCode = kotlin_kotlin.$_$.a7;
|
|
9
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.z6;
|
|
10
|
+
var equals = kotlin_kotlin.$_$.y6;
|
|
11
|
+
var initMetadataForClass = kotlin_kotlin.$_$.e7;
|
|
12
12
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
13
|
-
var numberToInt = kotlin_kotlin.$_$.
|
|
13
|
+
var numberToInt = kotlin_kotlin.$_$.y7;
|
|
14
14
|
var Unit_instance = kotlin_kotlin.$_$.n3;
|
|
15
|
-
var round = kotlin_kotlin.$_$.
|
|
16
|
-
var replace = kotlin_kotlin.$_$.
|
|
17
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
15
|
+
var round = kotlin_kotlin.$_$.d8;
|
|
16
|
+
var replace = kotlin_kotlin.$_$.z8;
|
|
17
|
+
var initMetadataForObject = kotlin_kotlin.$_$.j7;
|
|
18
18
|
var listOfNotNull = kotlin_kotlin.$_$.c5;
|
|
19
19
|
var joinToString = kotlin_kotlin.$_$.x4;
|
|
20
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
21
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
20
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.cb;
|
|
21
|
+
var isBlank = kotlin_kotlin.$_$.w8;
|
|
22
22
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.d4;
|
|
23
23
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.d;
|
|
24
24
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.d1;
|
|
25
|
-
var charArrayOf = kotlin_kotlin.$_$.
|
|
26
|
-
var indexOfAny = kotlin_kotlin.$_$.
|
|
27
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
28
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
29
|
-
var trim = kotlin_kotlin.$_$.
|
|
30
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
31
|
-
var to = kotlin_kotlin.$_$.
|
|
32
|
-
var take = kotlin_kotlin.$_$.
|
|
33
|
-
var drop = kotlin_kotlin.$_$.
|
|
25
|
+
var charArrayOf = kotlin_kotlin.$_$.s6;
|
|
26
|
+
var indexOfAny = kotlin_kotlin.$_$.t8;
|
|
27
|
+
var THROW_CCE = kotlin_kotlin.$_$.ia;
|
|
28
|
+
var isCharSequence = kotlin_kotlin.$_$.o7;
|
|
29
|
+
var trim = kotlin_kotlin.$_$.t9;
|
|
30
|
+
var toString_0 = kotlin_kotlin.$_$.c8;
|
|
31
|
+
var to = kotlin_kotlin.$_$.gb;
|
|
32
|
+
var take = kotlin_kotlin.$_$.g9;
|
|
33
|
+
var drop = kotlin_kotlin.$_$.r8;
|
|
34
34
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.k1;
|
|
35
35
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.h1;
|
|
36
36
|
var Companion_instance = kotlin_kotlin.$_$.i3;
|
|
@@ -39,58 +39,59 @@
|
|
|
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
41
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.c;
|
|
42
|
-
var lazy = kotlin_kotlin.$_$.
|
|
43
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
42
|
+
var lazy = kotlin_kotlin.$_$.ab;
|
|
43
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.f7;
|
|
44
44
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u1;
|
|
45
45
|
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b;
|
|
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
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
50
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
51
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
49
|
+
var objectCreate = kotlin_kotlin.$_$.z7;
|
|
50
|
+
var getStringHashCode = kotlin_kotlin.$_$.c7;
|
|
51
|
+
var hashCode = kotlin_kotlin.$_$.d7;
|
|
52
52
|
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n;
|
|
53
53
|
var FloatSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m;
|
|
54
54
|
var Default_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
55
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
56
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
57
|
-
var createKType = kotlin_kotlin.$_$.
|
|
55
|
+
var getKClass = kotlin_kotlin.$_$.m8;
|
|
56
|
+
var arrayOf = kotlin_kotlin.$_$.ta;
|
|
57
|
+
var createKType = kotlin_kotlin.$_$.k8;
|
|
58
58
|
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j2;
|
|
59
59
|
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d2;
|
|
60
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
60
|
+
var isInterface = kotlin_kotlin.$_$.s7;
|
|
61
61
|
var get_jsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.g;
|
|
62
62
|
var get_int = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.e;
|
|
63
63
|
var get_float = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.d;
|
|
64
|
-
var mapCapacity = kotlin_kotlin.$_$.
|
|
65
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
64
|
+
var mapCapacity = kotlin_kotlin.$_$.f5;
|
|
65
|
+
var coerceAtLeast = kotlin_kotlin.$_$.f8;
|
|
66
66
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
67
67
|
var Exception_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
68
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
69
|
-
var IndexOutOfBoundsException = kotlin_kotlin.$_$.
|
|
70
|
-
var ClassCastException = kotlin_kotlin.$_$.
|
|
71
|
-
var IllegalArgumentException = kotlin_kotlin.$_$.
|
|
68
|
+
var createFailure = kotlin_kotlin.$_$.va;
|
|
69
|
+
var IndexOutOfBoundsException = kotlin_kotlin.$_$.ea;
|
|
70
|
+
var ClassCastException = kotlin_kotlin.$_$.y9;
|
|
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
74
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k;
|
|
75
75
|
var DoubleSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l;
|
|
76
76
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.e;
|
|
77
|
-
var substring = kotlin_kotlin.$_$.
|
|
78
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
77
|
+
var substring = kotlin_kotlin.$_$.f9;
|
|
78
|
+
var charSequenceLength = kotlin_kotlin.$_$.w6;
|
|
79
79
|
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.f;
|
|
80
|
-
var print = kotlin_kotlin.$_$.
|
|
81
|
-
var Exception = kotlin_kotlin.$_$.
|
|
82
|
-
var substring_0 = kotlin_kotlin.$_$.
|
|
80
|
+
var print = kotlin_kotlin.$_$.x5;
|
|
81
|
+
var Exception = kotlin_kotlin.$_$.ca;
|
|
82
|
+
var substring_0 = kotlin_kotlin.$_$.e9;
|
|
83
83
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c;
|
|
84
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
85
|
-
var Enum = kotlin_kotlin.$_$.
|
|
86
|
-
var setOf = kotlin_kotlin.$_$.
|
|
84
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.h7;
|
|
85
|
+
var Enum = kotlin_kotlin.$_$.ba;
|
|
86
|
+
var setOf = kotlin_kotlin.$_$.l5;
|
|
87
87
|
var setOf_0 = kotlin_kotlin.$_$.k5;
|
|
88
|
-
var listOf = kotlin_kotlin.$_$.
|
|
89
|
-
var plus = kotlin_kotlin.$_$.
|
|
88
|
+
var listOf = kotlin_kotlin.$_$.e5;
|
|
89
|
+
var plus = kotlin_kotlin.$_$.h5;
|
|
90
90
|
var emptySet = kotlin_kotlin.$_$.t4;
|
|
91
|
+
var listOf_0 = kotlin_kotlin.$_$.d5;
|
|
91
92
|
var contains = kotlin_kotlin.$_$.e4;
|
|
92
93
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.x;
|
|
93
|
-
var throwOnFailure = kotlin_kotlin.$_$.
|
|
94
|
+
var throwOnFailure = kotlin_kotlin.$_$.eb;
|
|
94
95
|
//endregion
|
|
95
96
|
//region block: pre-declaration
|
|
96
97
|
initMetadataForClass(Amount, 'Amount');
|
|
@@ -139,6 +140,7 @@
|
|
|
139
140
|
initMetadataForObject(Imperial, 'Imperial');
|
|
140
141
|
initMetadataForObject(Metric, 'Metric');
|
|
141
142
|
initMetadataForObject(USCustomary, 'USCustomary');
|
|
143
|
+
initMetadataForObject(Butter, 'Butter');
|
|
142
144
|
initMetadataForObject(USCustomaryWithMetric, 'USCustomaryWithMetric');
|
|
143
145
|
initMetadataForObject(USCustomaryWithImperial, 'USCustomaryWithImperial');
|
|
144
146
|
initMetadataForObject(USCombined, 'USCombined');
|
|
@@ -293,7 +295,7 @@
|
|
|
293
295
|
tmp_0 = null;
|
|
294
296
|
} else {
|
|
295
297
|
// Inline function 'kotlin.let' call
|
|
296
|
-
tmp_0 = Units_getInstance().
|
|
298
|
+
tmp_0 = Units_getInstance().m1e(tmp0_safe_receiver);
|
|
297
299
|
}
|
|
298
300
|
var amount = new Amount(element.min, tmp, tmp_0, element.ingredient === 'butter' ? true : element.usCust);
|
|
299
301
|
var factorToUse = !element.scale ? 1.0 : factor;
|
|
@@ -303,43 +305,50 @@
|
|
|
303
305
|
tmp_1 = null;
|
|
304
306
|
} else {
|
|
305
307
|
// Inline function 'kotlin.let' call
|
|
306
|
-
tmp_1 = this.k1d_1.
|
|
308
|
+
tmp_1 = this.k1d_1.q1e(tmp1_safe_receiver);
|
|
307
309
|
}
|
|
308
310
|
var density = tmp_1;
|
|
309
|
-
|
|
311
|
+
var tmp_2;
|
|
312
|
+
if (element.ingredient === 'butter' && equals(measuringSystem, Imperial_instance)) {
|
|
313
|
+
tmp_2 = Butter_instance;
|
|
314
|
+
} else {
|
|
315
|
+
tmp_2 = measuringSystem;
|
|
316
|
+
}
|
|
317
|
+
var targetSystem = tmp_2;
|
|
318
|
+
amount = UnitConversions_getInstance().a1f(amount, targetSystem, factorToUse, density);
|
|
310
319
|
var tmp2_subject = amount.c1d_1;
|
|
311
|
-
var decimals = equals(tmp2_subject, Units_getInstance().
|
|
320
|
+
var decimals = equals(tmp2_subject, Units_getInstance().o1d_1) || (equals(tmp2_subject, Units_getInstance().s1d_1) || equals(tmp2_subject, Units_getInstance().f1e_1)) || (equals(tmp2_subject, Units_getInstance().x1d_1) || equals(tmp2_subject, Units_getInstance().v1d_1) || (equals(tmp2_subject, Units_getInstance().y1d_1) || equals(tmp2_subject, Units_getInstance().w1d_1))) ? 0 : equals(tmp2_subject, Units_getInstance().g1e_1) || equals(tmp2_subject, Units_getInstance().h1e_1) ? 1 : 1;
|
|
312
321
|
var tmp3_subject = amount.c1d_1;
|
|
313
|
-
var fraction = equals(tmp3_subject, Units_getInstance().
|
|
314
|
-
var
|
|
322
|
+
var fraction = equals(tmp3_subject, Units_getInstance().t1d_1) || (equals(tmp3_subject, Units_getInstance().s1d_1) || equals(tmp3_subject, Units_getInstance().g1e_1)) || (equals(tmp3_subject, Units_getInstance().o1d_1) || (equals(tmp3_subject, Units_getInstance().p1d_1) || equals(tmp3_subject, Units_getInstance().f1e_1))) ? false : equals(tmp3_subject, Units_getInstance().v1d_1) || equals(tmp3_subject, Units_getInstance().w1d_1) || (equals(tmp3_subject, Units_getInstance().y1d_1) || equals(tmp3_subject, Units_getInstance().x1d_1)) ? amount.a1d_1 < 1.0 : true;
|
|
323
|
+
var tmp_3;
|
|
315
324
|
if (!(amount.c1d_1 == null)) {
|
|
316
|
-
var
|
|
325
|
+
var tmp_4;
|
|
317
326
|
var tmp0 = amount.a1d_1;
|
|
318
327
|
var tmp4_elvis_lhs = amount.b1d_1;
|
|
319
328
|
// Inline function 'kotlin.math.max' call
|
|
320
329
|
var b = tmp4_elvis_lhs == null ? amount.a1d_1 : tmp4_elvis_lhs;
|
|
321
330
|
if (Math.max(tmp0, b) > 1.1) {
|
|
322
|
-
|
|
331
|
+
tmp_4 = ' ' + amount.c1d_1.e1f_1;
|
|
323
332
|
} else {
|
|
324
|
-
|
|
333
|
+
tmp_4 = ' ' + amount.c1d_1.d1f_1;
|
|
325
334
|
}
|
|
326
|
-
|
|
335
|
+
tmp_3 = tmp_4;
|
|
327
336
|
} else {
|
|
328
|
-
|
|
337
|
+
tmp_3 = '';
|
|
329
338
|
}
|
|
330
|
-
var unitString =
|
|
331
|
-
var
|
|
339
|
+
var unitString = tmp_3;
|
|
340
|
+
var tmp_5 = FormatUtils_getInstance().i1d(amount.a1d_1, decimals, fraction);
|
|
332
341
|
var tmp5_safe_receiver = amount.b1d_1;
|
|
333
|
-
var
|
|
342
|
+
var tmp_6;
|
|
334
343
|
if (tmp5_safe_receiver == null) {
|
|
335
|
-
|
|
344
|
+
tmp_6 = null;
|
|
336
345
|
} else {
|
|
337
346
|
// Inline function 'kotlin.let' call
|
|
338
|
-
|
|
347
|
+
tmp_6 = '-' + FormatUtils_getInstance().i1d(tmp5_safe_receiver, decimals, fraction);
|
|
339
348
|
}
|
|
340
|
-
return joinToString(listOfNotNull([
|
|
349
|
+
return joinToString(listOfNotNull([tmp_5, tmp_6, unitString]), '');
|
|
341
350
|
};
|
|
342
|
-
protoOf(TemplateSession).
|
|
351
|
+
protoOf(TemplateSession).i1f = function (element, factor, measuringSystem) {
|
|
343
352
|
var tmp;
|
|
344
353
|
if (element instanceof TemplateConst) {
|
|
345
354
|
tmp = element.value;
|
|
@@ -347,79 +356,98 @@
|
|
|
347
356
|
if (element instanceof QuantityPlaceholder) {
|
|
348
357
|
var tmp_0;
|
|
349
358
|
var tmp_1;
|
|
359
|
+
var tmp_2;
|
|
350
360
|
if (measuringSystem instanceof Metric) {
|
|
361
|
+
tmp_2 = true;
|
|
362
|
+
} else {
|
|
363
|
+
tmp_2 = measuringSystem instanceof Imperial;
|
|
364
|
+
}
|
|
365
|
+
if (tmp_2) {
|
|
351
366
|
tmp_1 = true;
|
|
352
367
|
} else {
|
|
353
|
-
var
|
|
354
|
-
if (measuringSystem instanceof
|
|
355
|
-
|
|
368
|
+
var tmp_3;
|
|
369
|
+
if (measuringSystem instanceof USCustomary) {
|
|
370
|
+
tmp_3 = true;
|
|
356
371
|
} else {
|
|
357
|
-
|
|
372
|
+
tmp_3 = measuringSystem instanceof Butter;
|
|
358
373
|
}
|
|
359
|
-
tmp_1 =
|
|
374
|
+
tmp_1 = tmp_3;
|
|
360
375
|
}
|
|
361
376
|
if (tmp_1) {
|
|
362
377
|
tmp_0 = this.m1d(element, factor, measuringSystem);
|
|
363
378
|
} else {
|
|
364
379
|
if (measuringSystem instanceof USCustomaryWithMetric) {
|
|
365
|
-
var
|
|
380
|
+
var tmp_4;
|
|
366
381
|
// Inline function 'kotlin.text.isNullOrBlank' call
|
|
367
382
|
var this_0 = element.unit;
|
|
368
383
|
if (this_0 == null || isBlank(this_0)) {
|
|
369
|
-
|
|
384
|
+
tmp_4 = this.m1d(element, factor, USCustomary_instance);
|
|
370
385
|
} else {
|
|
371
386
|
var cupsPart = this.m1d(element, factor, USCustomary_instance);
|
|
372
387
|
var metricPart = this.m1d(element, factor, Metric_instance);
|
|
373
|
-
var
|
|
388
|
+
var tmp_5;
|
|
374
389
|
if (cupsPart === metricPart) {
|
|
375
|
-
|
|
390
|
+
tmp_5 = cupsPart;
|
|
376
391
|
} else {
|
|
377
|
-
|
|
392
|
+
tmp_5 = metricPart + ' (' + cupsPart + ')';
|
|
378
393
|
}
|
|
379
|
-
|
|
394
|
+
tmp_4 = tmp_5;
|
|
380
395
|
}
|
|
381
|
-
tmp_0 =
|
|
396
|
+
tmp_0 = tmp_4;
|
|
382
397
|
} else {
|
|
383
398
|
if (measuringSystem instanceof USCustomaryWithImperial) {
|
|
384
|
-
var
|
|
399
|
+
var tmp_6;
|
|
385
400
|
// Inline function 'kotlin.text.isNullOrBlank' call
|
|
386
401
|
var this_1 = element.unit;
|
|
387
402
|
if (this_1 == null || isBlank(this_1)) {
|
|
388
|
-
|
|
403
|
+
tmp_6 = this.m1d(element, factor, USCustomary_instance);
|
|
389
404
|
} else {
|
|
390
405
|
var cupsPart_0 = this.m1d(element, factor, USCustomary_instance);
|
|
391
406
|
var imperialPart = this.m1d(element, factor, Imperial_instance);
|
|
392
|
-
var
|
|
407
|
+
var tmp_7;
|
|
393
408
|
if (cupsPart_0 === imperialPart) {
|
|
394
|
-
|
|
409
|
+
tmp_7 = cupsPart_0;
|
|
395
410
|
} else {
|
|
396
|
-
|
|
411
|
+
tmp_7 = imperialPart + ' (' + cupsPart_0 + ')';
|
|
397
412
|
}
|
|
398
|
-
|
|
413
|
+
tmp_6 = tmp_7;
|
|
399
414
|
}
|
|
400
|
-
tmp_0 =
|
|
415
|
+
tmp_0 = tmp_6;
|
|
401
416
|
} else {
|
|
402
417
|
if (measuringSystem instanceof USCombined) {
|
|
403
|
-
var
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
418
|
+
var tmp2_safe_receiver = element.unit;
|
|
419
|
+
var tmp_8;
|
|
420
|
+
if (tmp2_safe_receiver == null) {
|
|
421
|
+
tmp_8 = null;
|
|
422
|
+
} else {
|
|
423
|
+
// Inline function 'kotlin.let' call
|
|
424
|
+
tmp_8 = Units_getInstance().m1e(tmp2_safe_receiver);
|
|
425
|
+
}
|
|
426
|
+
var unit = tmp_8;
|
|
427
|
+
var tmp_9;
|
|
428
|
+
if (unit == null || equals(unit, Units_getInstance().v1d_1) || equals(unit, Units_getInstance().w1d_1) || equals(unit, Units_getInstance().x1d_1) || equals(unit, Units_getInstance().y1d_1)) {
|
|
429
|
+
tmp_9 = this.m1d(element, factor, USCustomary_instance);
|
|
408
430
|
} else {
|
|
409
431
|
var cupsPart_1 = this.m1d(element, factor, USCustomary_instance);
|
|
410
|
-
var
|
|
432
|
+
var tmp_10;
|
|
433
|
+
if (equals(unit.f1f_1, UnitType_VOLUME_getInstance())) {
|
|
434
|
+
tmp_10 = cupsPart_1;
|
|
435
|
+
} else {
|
|
436
|
+
tmp_10 = this.m1d(element, factor, Imperial_instance);
|
|
437
|
+
}
|
|
438
|
+
var imperialPart_0 = tmp_10;
|
|
411
439
|
var metricPart_0 = this.m1d(element, factor, Metric_instance);
|
|
412
|
-
var
|
|
440
|
+
var tmp_11;
|
|
413
441
|
if (cupsPart_1 === metricPart_0 && cupsPart_1 === imperialPart_0) {
|
|
414
|
-
|
|
442
|
+
tmp_11 = metricPart_0;
|
|
415
443
|
} else if (cupsPart_1 === imperialPart_0) {
|
|
416
|
-
|
|
444
|
+
tmp_11 = metricPart_0 + ' (' + cupsPart_1 + ')';
|
|
417
445
|
} else {
|
|
418
|
-
|
|
446
|
+
tmp_11 = metricPart_0 + ' (' + imperialPart_0 + ' \u2022 ' + cupsPart_1 + ')';
|
|
419
447
|
}
|
|
420
|
-
|
|
448
|
+
tmp_9 = tmp_11;
|
|
421
449
|
}
|
|
422
|
-
tmp_0 =
|
|
450
|
+
tmp_0 = tmp_9;
|
|
423
451
|
} else {
|
|
424
452
|
noWhenBranchMatchedException();
|
|
425
453
|
}
|
|
@@ -437,22 +465,22 @@
|
|
|
437
465
|
}
|
|
438
466
|
return tmp;
|
|
439
467
|
};
|
|
440
|
-
protoOf(TemplateSession).
|
|
468
|
+
protoOf(TemplateSession).j1f = function (template, factor, measuringSystem) {
|
|
441
469
|
// Inline function 'kotlin.collections.map' call
|
|
442
|
-
var this_0 = template.
|
|
470
|
+
var this_0 = template.k1f_1;
|
|
443
471
|
// Inline function 'kotlin.collections.mapTo' call
|
|
444
472
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
445
473
|
var _iterator__ex2g4s = this_0.s();
|
|
446
474
|
while (_iterator__ex2g4s.t()) {
|
|
447
475
|
var item = _iterator__ex2g4s.u();
|
|
448
|
-
var tmp$ret$0 = this.
|
|
476
|
+
var tmp$ret$0 = this.i1f(item, factor, measuringSystem);
|
|
449
477
|
destination.w(tmp$ret$0);
|
|
450
478
|
}
|
|
451
479
|
var renderedParts = destination;
|
|
452
480
|
return FormatUtils_getInstance().j1d(joinToString(renderedParts, ''));
|
|
453
481
|
};
|
|
454
482
|
protoOf(TemplateSession).scaleAndConvertUnitRecipe = function (recipe, factor, measuringSystem) {
|
|
455
|
-
var tmp0_safe_receiver = recipe.
|
|
483
|
+
var tmp0_safe_receiver = recipe.x1f_1;
|
|
456
484
|
var tmp;
|
|
457
485
|
if (tmp0_safe_receiver == null) {
|
|
458
486
|
tmp = null;
|
|
@@ -463,7 +491,7 @@
|
|
|
463
491
|
var _iterator__ex2g4s = tmp0_safe_receiver.s();
|
|
464
492
|
while (_iterator__ex2g4s.t()) {
|
|
465
493
|
var item = _iterator__ex2g4s.u();
|
|
466
|
-
var tmp0_safe_receiver_0 = item.
|
|
494
|
+
var tmp0_safe_receiver_0 = item.i1g_1;
|
|
467
495
|
var tmp_0;
|
|
468
496
|
if (tmp0_safe_receiver_0 == null) {
|
|
469
497
|
tmp_0 = null;
|
|
@@ -474,28 +502,28 @@
|
|
|
474
502
|
var _iterator__ex2g4s_0 = tmp0_safe_receiver_0.s();
|
|
475
503
|
while (_iterator__ex2g4s_0.t()) {
|
|
476
504
|
var item_0 = _iterator__ex2g4s_0.u();
|
|
477
|
-
var tmp0_safe_receiver_1 = item_0.
|
|
505
|
+
var tmp0_safe_receiver_1 = item_0.q1g_1;
|
|
478
506
|
var tmp_1;
|
|
479
507
|
if (tmp0_safe_receiver_1 == null) {
|
|
480
508
|
tmp_1 = null;
|
|
481
509
|
} else {
|
|
482
510
|
// Inline function 'kotlin.let' call
|
|
483
|
-
tmp_1 = wrapWithStrongTag(this.
|
|
511
|
+
tmp_1 = wrapWithStrongTag(this.j1f(parseTemplate(tmp0_safe_receiver_1), factor, measuringSystem));
|
|
484
512
|
}
|
|
485
513
|
var tmp1_elvis_lhs = tmp_1;
|
|
486
|
-
var scaledText = tmp1_elvis_lhs == null ? item_0.
|
|
487
|
-
var tmp$ret$2 = item_0.
|
|
514
|
+
var scaledText = tmp1_elvis_lhs == null ? item_0.r1g_1 : tmp1_elvis_lhs;
|
|
515
|
+
var tmp$ret$2 = item_0.t1g(VOID, VOID, VOID, VOID, VOID, VOID, VOID, scaledText);
|
|
488
516
|
destination_0.w(tmp$ret$2);
|
|
489
517
|
}
|
|
490
518
|
tmp_0 = destination_0;
|
|
491
519
|
}
|
|
492
|
-
var tmp$ret$5 = new IngredientsList(tmp_0, item.
|
|
520
|
+
var tmp$ret$5 = new IngredientsList(tmp_0, item.j1g_1);
|
|
493
521
|
destination.w(tmp$ret$5);
|
|
494
522
|
}
|
|
495
523
|
tmp = destination;
|
|
496
524
|
}
|
|
497
525
|
var scaledIngredients = tmp;
|
|
498
|
-
var tmp1_safe_receiver = recipe.
|
|
526
|
+
var tmp1_safe_receiver = recipe.y1f_1;
|
|
499
527
|
var tmp_2;
|
|
500
528
|
if (tmp1_safe_receiver == null) {
|
|
501
529
|
tmp_2 = null;
|
|
@@ -506,22 +534,22 @@
|
|
|
506
534
|
var _iterator__ex2g4s_1 = tmp1_safe_receiver.s();
|
|
507
535
|
while (_iterator__ex2g4s_1.t()) {
|
|
508
536
|
var item_1 = _iterator__ex2g4s_1.u();
|
|
509
|
-
var tmp0_safe_receiver_2 = item_1.
|
|
537
|
+
var tmp0_safe_receiver_2 = item_1.v1g_1;
|
|
510
538
|
var tmp_3;
|
|
511
539
|
if (tmp0_safe_receiver_2 == null) {
|
|
512
540
|
tmp_3 = null;
|
|
513
541
|
} else {
|
|
514
542
|
// Inline function 'kotlin.let' call
|
|
515
|
-
tmp_3 = this.
|
|
543
|
+
tmp_3 = this.j1f(parseTemplate(tmp0_safe_receiver_2), factor, measuringSystem);
|
|
516
544
|
}
|
|
517
545
|
var description = tmp_3;
|
|
518
|
-
var tmp$ret$10 = item_1.
|
|
546
|
+
var tmp$ret$10 = item_1.y1g(description == null ? item_1.u1g_1 : description);
|
|
519
547
|
destination_1.w(tmp$ret$10);
|
|
520
548
|
}
|
|
521
549
|
tmp_2 = destination_1;
|
|
522
550
|
}
|
|
523
551
|
var scaledInstructions = tmp_2;
|
|
524
|
-
return recipe.
|
|
552
|
+
return recipe.z1g(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, scaledIngredients, scaledInstructions);
|
|
525
553
|
};
|
|
526
554
|
function splitBeforeSuffix(value) {
|
|
527
555
|
// Inline function 'kotlin.charArrayOf' call
|
|
@@ -577,7 +605,7 @@
|
|
|
577
605
|
// Inline function 'kotlin.arrayOf' call
|
|
578
606
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
579
607
|
// Inline function 'kotlin.js.asDynamic' call
|
|
580
|
-
tmp.
|
|
608
|
+
tmp.a1h_1 = [null, tmp_1, lazy(tmp_2, TableSchema$Companion$$childSerializers$_anonymous__48gmsb_0)];
|
|
581
609
|
}
|
|
582
610
|
var Companion_instance_0;
|
|
583
611
|
function Companion_getInstance() {
|
|
@@ -591,22 +619,22 @@
|
|
|
591
619
|
tmp0_serialDesc.rs('prepared_at', false);
|
|
592
620
|
tmp0_serialDesc.rs('key', false);
|
|
593
621
|
tmp0_serialDesc.rs('values', false);
|
|
594
|
-
this.
|
|
622
|
+
this.b1h_1 = tmp0_serialDesc;
|
|
595
623
|
}
|
|
596
|
-
protoOf($serializer).
|
|
597
|
-
var tmp0_desc = this.
|
|
624
|
+
protoOf($serializer).c1h = function (encoder, value) {
|
|
625
|
+
var tmp0_desc = this.b1h_1;
|
|
598
626
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
599
|
-
var tmp2_cached = Companion_getInstance().
|
|
600
|
-
tmp1_output.wm(tmp0_desc, 0, value.
|
|
601
|
-
tmp1_output.ym(tmp0_desc, 1, tmp2_cached[1].h2(), value.
|
|
602
|
-
tmp1_output.ym(tmp0_desc, 2, tmp2_cached[2].h2(), value.
|
|
627
|
+
var tmp2_cached = Companion_getInstance().a1h_1;
|
|
628
|
+
tmp1_output.wm(tmp0_desc, 0, value.d1h_1);
|
|
629
|
+
tmp1_output.ym(tmp0_desc, 1, tmp2_cached[1].h2(), value.e1h_1);
|
|
630
|
+
tmp1_output.ym(tmp0_desc, 2, tmp2_cached[2].h2(), value.f1h_1);
|
|
603
631
|
tmp1_output.jl(tmp0_desc);
|
|
604
632
|
};
|
|
605
633
|
protoOf($serializer).li = function (encoder, value) {
|
|
606
|
-
return this.
|
|
634
|
+
return this.c1h(encoder, value instanceof TableSchema ? value : THROW_CCE());
|
|
607
635
|
};
|
|
608
636
|
protoOf($serializer).mi = function (decoder) {
|
|
609
|
-
var tmp0_desc = this.
|
|
637
|
+
var tmp0_desc = this.b1h_1;
|
|
610
638
|
var tmp1_flag = true;
|
|
611
639
|
var tmp2_index = 0;
|
|
612
640
|
var tmp3_bitMask0 = 0;
|
|
@@ -614,7 +642,7 @@
|
|
|
614
642
|
var tmp5_local1 = null;
|
|
615
643
|
var tmp6_local2 = null;
|
|
616
644
|
var tmp7_input = decoder.il(tmp0_desc);
|
|
617
|
-
var tmp8_cached = Companion_getInstance().
|
|
645
|
+
var tmp8_cached = Companion_getInstance().a1h_1;
|
|
618
646
|
if (tmp7_input.yl()) {
|
|
619
647
|
tmp4_local0 = tmp7_input.sl(tmp0_desc, 0);
|
|
620
648
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -649,10 +677,10 @@
|
|
|
649
677
|
return TableSchema_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
650
678
|
};
|
|
651
679
|
protoOf($serializer).ki = function () {
|
|
652
|
-
return this.
|
|
680
|
+
return this.b1h_1;
|
|
653
681
|
};
|
|
654
682
|
protoOf($serializer).ts = function () {
|
|
655
|
-
var tmp0_cached = Companion_getInstance().
|
|
683
|
+
var tmp0_cached = Companion_getInstance().a1h_1;
|
|
656
684
|
// Inline function 'kotlin.arrayOf' call
|
|
657
685
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
658
686
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -666,11 +694,11 @@
|
|
|
666
694
|
}
|
|
667
695
|
function TableSchema_init_$Init$(seen0, preparedAt, key, values, serializationConstructorMarker, $this) {
|
|
668
696
|
if (!(7 === (7 & seen0))) {
|
|
669
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance().
|
|
697
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance().b1h_1);
|
|
670
698
|
}
|
|
671
|
-
$this.
|
|
672
|
-
$this.
|
|
673
|
-
$this.
|
|
699
|
+
$this.d1h_1 = preparedAt;
|
|
700
|
+
$this.e1h_1 = key;
|
|
701
|
+
$this.f1h_1 = values;
|
|
674
702
|
return $this;
|
|
675
703
|
}
|
|
676
704
|
function TableSchema_init_$Create$(seen0, preparedAt, key, values, serializationConstructorMarker) {
|
|
@@ -678,17 +706,17 @@
|
|
|
678
706
|
}
|
|
679
707
|
function TableSchema(preparedAt, key, values) {
|
|
680
708
|
Companion_getInstance();
|
|
681
|
-
this.
|
|
682
|
-
this.
|
|
683
|
-
this.
|
|
709
|
+
this.d1h_1 = preparedAt;
|
|
710
|
+
this.e1h_1 = key;
|
|
711
|
+
this.f1h_1 = values;
|
|
684
712
|
}
|
|
685
713
|
protoOf(TableSchema).toString = function () {
|
|
686
|
-
return 'TableSchema(preparedAt=' + this.
|
|
714
|
+
return 'TableSchema(preparedAt=' + this.d1h_1 + ', key=' + toString_0(this.e1h_1) + ', values=' + toString_0(this.f1h_1) + ')';
|
|
687
715
|
};
|
|
688
716
|
protoOf(TableSchema).hashCode = function () {
|
|
689
|
-
var result = getStringHashCode(this.
|
|
690
|
-
result = imul(result, 31) + hashCode(this.
|
|
691
|
-
result = imul(result, 31) + hashCode(this.
|
|
717
|
+
var result = getStringHashCode(this.d1h_1);
|
|
718
|
+
result = imul(result, 31) + hashCode(this.e1h_1) | 0;
|
|
719
|
+
result = imul(result, 31) + hashCode(this.f1h_1) | 0;
|
|
692
720
|
return result;
|
|
693
721
|
};
|
|
694
722
|
protoOf(TableSchema).equals = function (other) {
|
|
@@ -696,11 +724,11 @@
|
|
|
696
724
|
return true;
|
|
697
725
|
if (!(other instanceof TableSchema))
|
|
698
726
|
return false;
|
|
699
|
-
if (!(this.
|
|
727
|
+
if (!(this.d1h_1 === other.d1h_1))
|
|
700
728
|
return false;
|
|
701
|
-
if (!equals(this.
|
|
729
|
+
if (!equals(this.e1h_1, other.e1h_1))
|
|
702
730
|
return false;
|
|
703
|
-
if (!equals(this.
|
|
731
|
+
if (!equals(this.f1h_1, other.f1h_1))
|
|
704
732
|
return false;
|
|
705
733
|
return true;
|
|
706
734
|
};
|
|
@@ -717,22 +745,22 @@
|
|
|
717
745
|
tmp0_serialDesc.rs('name', false);
|
|
718
746
|
tmp0_serialDesc.rs('normalised_name', false);
|
|
719
747
|
tmp0_serialDesc.rs('density', false);
|
|
720
|
-
this.
|
|
748
|
+
this.g1h_1 = tmp0_serialDesc;
|
|
721
749
|
}
|
|
722
|
-
protoOf($serializer_0).
|
|
723
|
-
var tmp0_desc = this.
|
|
750
|
+
protoOf($serializer_0).h1h = function (encoder, value) {
|
|
751
|
+
var tmp0_desc = this.g1h_1;
|
|
724
752
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
725
|
-
tmp1_output.rm(tmp0_desc, 0, value.
|
|
726
|
-
tmp1_output.wm(tmp0_desc, 1, value.
|
|
727
|
-
tmp1_output.wm(tmp0_desc, 2, value.
|
|
728
|
-
tmp1_output.tm(tmp0_desc, 3, value.
|
|
753
|
+
tmp1_output.rm(tmp0_desc, 0, value.i1h_1);
|
|
754
|
+
tmp1_output.wm(tmp0_desc, 1, value.j1h_1);
|
|
755
|
+
tmp1_output.wm(tmp0_desc, 2, value.k1h_1);
|
|
756
|
+
tmp1_output.tm(tmp0_desc, 3, value.l1h_1);
|
|
729
757
|
tmp1_output.jl(tmp0_desc);
|
|
730
758
|
};
|
|
731
759
|
protoOf($serializer_0).li = function (encoder, value) {
|
|
732
|
-
return this.
|
|
760
|
+
return this.h1h(encoder, value instanceof Ingredient ? value : THROW_CCE());
|
|
733
761
|
};
|
|
734
762
|
protoOf($serializer_0).mi = function (decoder) {
|
|
735
|
-
var tmp0_desc = this.
|
|
763
|
+
var tmp0_desc = this.g1h_1;
|
|
736
764
|
var tmp1_flag = true;
|
|
737
765
|
var tmp2_index = 0;
|
|
738
766
|
var tmp3_bitMask0 = 0;
|
|
@@ -781,7 +809,7 @@
|
|
|
781
809
|
return Ingredient_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
782
810
|
};
|
|
783
811
|
protoOf($serializer_0).ki = function () {
|
|
784
|
-
return this.
|
|
812
|
+
return this.g1h_1;
|
|
785
813
|
};
|
|
786
814
|
protoOf($serializer_0).ts = function () {
|
|
787
815
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -797,31 +825,31 @@
|
|
|
797
825
|
}
|
|
798
826
|
function Ingredient_init_$Init$(seen0, id, name, normalised_name, density, serializationConstructorMarker, $this) {
|
|
799
827
|
if (!(15 === (15 & seen0))) {
|
|
800
|
-
throwMissingFieldException(seen0, 15, $serializer_getInstance_0().
|
|
828
|
+
throwMissingFieldException(seen0, 15, $serializer_getInstance_0().g1h_1);
|
|
801
829
|
}
|
|
802
|
-
$this.
|
|
803
|
-
$this.
|
|
804
|
-
$this.
|
|
805
|
-
$this.
|
|
830
|
+
$this.i1h_1 = id;
|
|
831
|
+
$this.j1h_1 = name;
|
|
832
|
+
$this.k1h_1 = normalised_name;
|
|
833
|
+
$this.l1h_1 = density;
|
|
806
834
|
return $this;
|
|
807
835
|
}
|
|
808
836
|
function Ingredient_init_$Create$(seen0, id, name, normalised_name, density, serializationConstructorMarker) {
|
|
809
837
|
return Ingredient_init_$Init$(seen0, id, name, normalised_name, density, serializationConstructorMarker, objectCreate(protoOf(Ingredient)));
|
|
810
838
|
}
|
|
811
839
|
function Ingredient(id, name, normalised_name, density) {
|
|
812
|
-
this.
|
|
813
|
-
this.
|
|
814
|
-
this.
|
|
815
|
-
this.
|
|
840
|
+
this.i1h_1 = id;
|
|
841
|
+
this.j1h_1 = name;
|
|
842
|
+
this.k1h_1 = normalised_name;
|
|
843
|
+
this.l1h_1 = density;
|
|
816
844
|
}
|
|
817
845
|
protoOf(Ingredient).toString = function () {
|
|
818
|
-
return 'Ingredient(id=' + this.
|
|
846
|
+
return 'Ingredient(id=' + this.i1h_1 + ', name=' + this.j1h_1 + ', normalised_name=' + this.k1h_1 + ', density=' + this.l1h_1 + ')';
|
|
819
847
|
};
|
|
820
848
|
protoOf(Ingredient).hashCode = function () {
|
|
821
|
-
var result = this.
|
|
822
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
823
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
824
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
849
|
+
var result = this.i1h_1;
|
|
850
|
+
result = imul(result, 31) + getStringHashCode(this.j1h_1) | 0;
|
|
851
|
+
result = imul(result, 31) + getStringHashCode(this.k1h_1) | 0;
|
|
852
|
+
result = imul(result, 31) + getNumberHashCode(this.l1h_1) | 0;
|
|
825
853
|
return result;
|
|
826
854
|
};
|
|
827
855
|
protoOf(Ingredient).equals = function (other) {
|
|
@@ -829,29 +857,29 @@
|
|
|
829
857
|
return true;
|
|
830
858
|
if (!(other instanceof Ingredient))
|
|
831
859
|
return false;
|
|
832
|
-
if (!(this.
|
|
860
|
+
if (!(this.i1h_1 === other.i1h_1))
|
|
833
861
|
return false;
|
|
834
|
-
if (!(this.
|
|
862
|
+
if (!(this.j1h_1 === other.j1h_1))
|
|
835
863
|
return false;
|
|
836
|
-
if (!(this.
|
|
864
|
+
if (!(this.k1h_1 === other.k1h_1))
|
|
837
865
|
return false;
|
|
838
|
-
if (!equals(this.
|
|
866
|
+
if (!equals(this.l1h_1, other.l1h_1))
|
|
839
867
|
return false;
|
|
840
868
|
return true;
|
|
841
869
|
};
|
|
842
870
|
function DensityTable(preparedAt, normalised_map, name_map) {
|
|
843
|
-
this.
|
|
844
|
-
this.
|
|
845
|
-
this.
|
|
871
|
+
this.n1e_1 = preparedAt;
|
|
872
|
+
this.o1e_1 = normalised_map;
|
|
873
|
+
this.p1e_1 = name_map;
|
|
846
874
|
}
|
|
847
|
-
protoOf(DensityTable).
|
|
848
|
-
var tmp0_safe_receiver = this.
|
|
875
|
+
protoOf(DensityTable).q1e = function (name) {
|
|
876
|
+
var tmp0_safe_receiver = this.o1e_1.k2(name);
|
|
849
877
|
var tmp;
|
|
850
878
|
if (tmp0_safe_receiver == null) {
|
|
851
879
|
tmp = null;
|
|
852
880
|
} else {
|
|
853
881
|
// Inline function 'kotlin.let' call
|
|
854
|
-
return tmp0_safe_receiver.
|
|
882
|
+
return tmp0_safe_receiver.l1h_1;
|
|
855
883
|
}
|
|
856
884
|
return tmp;
|
|
857
885
|
};
|
|
@@ -869,7 +897,7 @@
|
|
|
869
897
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
870
898
|
var data = this_0.u11(tmp$ret$1, raw);
|
|
871
899
|
// Inline function 'kotlin.collections.map' call
|
|
872
|
-
var this_3 = data.
|
|
900
|
+
var this_3 = data.f1h_1;
|
|
873
901
|
// Inline function 'kotlin.collections.mapTo' call
|
|
874
902
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
875
903
|
var _iterator__ex2g4s = this_3.s();
|
|
@@ -887,7 +915,7 @@
|
|
|
887
915
|
while (_iterator__ex2g4s_0.t()) {
|
|
888
916
|
var element = _iterator__ex2g4s_0.u();
|
|
889
917
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
890
|
-
var pair = to(element.
|
|
918
|
+
var pair = to(element.k1h_1, element);
|
|
891
919
|
destination_0.o2(pair.fd_1, pair.gd_1);
|
|
892
920
|
}
|
|
893
921
|
var normalised_map = destination_0;
|
|
@@ -899,11 +927,11 @@
|
|
|
899
927
|
while (_iterator__ex2g4s_1.t()) {
|
|
900
928
|
var element_0 = _iterator__ex2g4s_1.u();
|
|
901
929
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
902
|
-
var pair_0 = to(element_0.
|
|
930
|
+
var pair_0 = to(element_0.j1h_1, element_0);
|
|
903
931
|
destination_1.o2(pair_0.fd_1, pair_0.gd_1);
|
|
904
932
|
}
|
|
905
933
|
var name_map = destination_1;
|
|
906
|
-
var table = new DensityTable(data.
|
|
934
|
+
var table = new DensityTable(data.d1h_1, normalised_map, name_map);
|
|
907
935
|
// Inline function 'kotlin.Companion.success' call
|
|
908
936
|
return _Result___init__impl__xyqfz8(table);
|
|
909
937
|
} catch ($p) {
|
|
@@ -1011,7 +1039,7 @@
|
|
|
1011
1039
|
// Inline function 'kotlin.arrayOf' call
|
|
1012
1040
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1013
1041
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1014
|
-
tmp.
|
|
1042
|
+
tmp.m1h_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];
|
|
1015
1043
|
}
|
|
1016
1044
|
var Companion_instance_2;
|
|
1017
1045
|
function Companion_getInstance_1() {
|
|
@@ -1045,86 +1073,86 @@
|
|
|
1045
1073
|
tmp0_serialDesc.rs('title', true);
|
|
1046
1074
|
tmp0_serialDesc.rs('utensilsAndApplianceIds', true);
|
|
1047
1075
|
tmp0_serialDesc.rs('webPublicationDate', true);
|
|
1048
|
-
this.
|
|
1076
|
+
this.n1h_1 = tmp0_serialDesc;
|
|
1049
1077
|
}
|
|
1050
|
-
protoOf($serializer_1).
|
|
1051
|
-
var tmp0_desc = this.
|
|
1078
|
+
protoOf($serializer_1).o1h = function (encoder, value) {
|
|
1079
|
+
var tmp0_desc = this.n1h_1;
|
|
1052
1080
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
1053
|
-
var tmp2_cached = Companion_getInstance_1().
|
|
1054
|
-
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.
|
|
1055
|
-
tmp1_output.an(tmp0_desc, 0, StringSerializer_getInstance(), value.
|
|
1081
|
+
var tmp2_cached = Companion_getInstance_1().m1h_1;
|
|
1082
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.l1f_1 == null)) {
|
|
1083
|
+
tmp1_output.an(tmp0_desc, 0, StringSerializer_getInstance(), value.l1f_1);
|
|
1056
1084
|
}
|
|
1057
|
-
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.
|
|
1058
|
-
tmp1_output.an(tmp0_desc, 1, tmp2_cached[1].h2(), value.
|
|
1085
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.m1f_1 == null)) {
|
|
1086
|
+
tmp1_output.an(tmp0_desc, 1, tmp2_cached[1].h2(), value.m1f_1);
|
|
1059
1087
|
}
|
|
1060
|
-
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.
|
|
1061
|
-
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
1088
|
+
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.n1f_1 == null)) {
|
|
1089
|
+
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.n1f_1);
|
|
1062
1090
|
}
|
|
1063
|
-
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.
|
|
1064
|
-
tmp1_output.an(tmp0_desc, 3, tmp2_cached[3].h2(), value.
|
|
1091
|
+
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.o1f_1 == null)) {
|
|
1092
|
+
tmp1_output.an(tmp0_desc, 3, tmp2_cached[3].h2(), value.o1f_1);
|
|
1065
1093
|
}
|
|
1066
|
-
if (tmp1_output.en(tmp0_desc, 4) ? true : !(value.
|
|
1067
|
-
tmp1_output.an(tmp0_desc, 4, tmp2_cached[4].h2(), value.
|
|
1094
|
+
if (tmp1_output.en(tmp0_desc, 4) ? true : !(value.p1f_1 == null)) {
|
|
1095
|
+
tmp1_output.an(tmp0_desc, 4, tmp2_cached[4].h2(), value.p1f_1);
|
|
1068
1096
|
}
|
|
1069
|
-
if (tmp1_output.en(tmp0_desc, 5) ? true : !(value.
|
|
1070
|
-
tmp1_output.an(tmp0_desc, 5, StringSerializer_getInstance(), value.
|
|
1097
|
+
if (tmp1_output.en(tmp0_desc, 5) ? true : !(value.q1f_1 == null)) {
|
|
1098
|
+
tmp1_output.an(tmp0_desc, 5, StringSerializer_getInstance(), value.q1f_1);
|
|
1071
1099
|
}
|
|
1072
|
-
if (tmp1_output.en(tmp0_desc, 6) ? true : !(value.
|
|
1073
|
-
tmp1_output.an(tmp0_desc, 6, tmp2_cached[6].h2(), value.
|
|
1100
|
+
if (tmp1_output.en(tmp0_desc, 6) ? true : !(value.r1f_1 == null)) {
|
|
1101
|
+
tmp1_output.an(tmp0_desc, 6, tmp2_cached[6].h2(), value.r1f_1);
|
|
1074
1102
|
}
|
|
1075
|
-
if (tmp1_output.en(tmp0_desc, 7) ? true : !(value.
|
|
1076
|
-
tmp1_output.an(tmp0_desc, 7, tmp2_cached[7].h2(), value.
|
|
1103
|
+
if (tmp1_output.en(tmp0_desc, 7) ? true : !(value.s1f_1 == null)) {
|
|
1104
|
+
tmp1_output.an(tmp0_desc, 7, tmp2_cached[7].h2(), value.s1f_1);
|
|
1077
1105
|
}
|
|
1078
|
-
if (tmp1_output.en(tmp0_desc, 8) ? true : !(value.
|
|
1079
|
-
tmp1_output.an(tmp0_desc, 8, StringSerializer_getInstance(), value.
|
|
1106
|
+
if (tmp1_output.en(tmp0_desc, 8) ? true : !(value.t1f_1 == null)) {
|
|
1107
|
+
tmp1_output.an(tmp0_desc, 8, StringSerializer_getInstance(), value.t1f_1);
|
|
1080
1108
|
}
|
|
1081
|
-
if (tmp1_output.en(tmp0_desc, 9) ? true : !(value.
|
|
1082
|
-
tmp1_output.an(tmp0_desc, 9, StringSerializer_getInstance(), value.
|
|
1109
|
+
if (tmp1_output.en(tmp0_desc, 9) ? true : !(value.u1f_1 == null)) {
|
|
1110
|
+
tmp1_output.an(tmp0_desc, 9, StringSerializer_getInstance(), value.u1f_1);
|
|
1083
1111
|
}
|
|
1084
|
-
if (tmp1_output.en(tmp0_desc, 10) ? true : !(value.
|
|
1085
|
-
tmp1_output.an(tmp0_desc, 10, $serializer_getInstance_3(), value.
|
|
1112
|
+
if (tmp1_output.en(tmp0_desc, 10) ? true : !(value.v1f_1 == null)) {
|
|
1113
|
+
tmp1_output.an(tmp0_desc, 10, $serializer_getInstance_3(), value.v1f_1);
|
|
1086
1114
|
}
|
|
1087
|
-
tmp1_output.wm(tmp0_desc, 11, value.
|
|
1088
|
-
if (tmp1_output.en(tmp0_desc, 12) ? true : !(value.
|
|
1089
|
-
tmp1_output.an(tmp0_desc, 12, tmp2_cached[12].h2(), value.
|
|
1115
|
+
tmp1_output.wm(tmp0_desc, 11, value.w1f_1);
|
|
1116
|
+
if (tmp1_output.en(tmp0_desc, 12) ? true : !(value.x1f_1 == null)) {
|
|
1117
|
+
tmp1_output.an(tmp0_desc, 12, tmp2_cached[12].h2(), value.x1f_1);
|
|
1090
1118
|
}
|
|
1091
|
-
if (tmp1_output.en(tmp0_desc, 13) ? true : !(value.
|
|
1092
|
-
tmp1_output.an(tmp0_desc, 13, tmp2_cached[13].h2(), value.
|
|
1119
|
+
if (tmp1_output.en(tmp0_desc, 13) ? true : !(value.y1f_1 == null)) {
|
|
1120
|
+
tmp1_output.an(tmp0_desc, 13, tmp2_cached[13].h2(), value.y1f_1);
|
|
1093
1121
|
}
|
|
1094
|
-
if (tmp1_output.en(tmp0_desc, 14) ? true : !(value.
|
|
1095
|
-
tmp1_output.an(tmp0_desc, 14, BooleanSerializer_getInstance(), value.
|
|
1122
|
+
if (tmp1_output.en(tmp0_desc, 14) ? true : !(value.z1f_1 == null)) {
|
|
1123
|
+
tmp1_output.an(tmp0_desc, 14, BooleanSerializer_getInstance(), value.z1f_1);
|
|
1096
1124
|
}
|
|
1097
|
-
if (tmp1_output.en(tmp0_desc, 15) ? true : !(value.
|
|
1098
|
-
tmp1_output.an(tmp0_desc, 15, tmp2_cached[15].h2(), value.
|
|
1125
|
+
if (tmp1_output.en(tmp0_desc, 15) ? true : !(value.a1g_1 == null)) {
|
|
1126
|
+
tmp1_output.an(tmp0_desc, 15, tmp2_cached[15].h2(), value.a1g_1);
|
|
1099
1127
|
}
|
|
1100
|
-
if (tmp1_output.en(tmp0_desc, 16) ? true : !(value.
|
|
1101
|
-
tmp1_output.an(tmp0_desc, 16, tmp2_cached[16].h2(), value.
|
|
1128
|
+
if (tmp1_output.en(tmp0_desc, 16) ? true : !(value.b1g_1 == null)) {
|
|
1129
|
+
tmp1_output.an(tmp0_desc, 16, tmp2_cached[16].h2(), value.b1g_1);
|
|
1102
1130
|
}
|
|
1103
|
-
if (tmp1_output.en(tmp0_desc, 17) ? true : !(value.
|
|
1104
|
-
tmp1_output.an(tmp0_desc, 17, tmp2_cached[17].h2(), value.
|
|
1131
|
+
if (tmp1_output.en(tmp0_desc, 17) ? true : !(value.c1g_1 == null)) {
|
|
1132
|
+
tmp1_output.an(tmp0_desc, 17, tmp2_cached[17].h2(), value.c1g_1);
|
|
1105
1133
|
}
|
|
1106
|
-
if (tmp1_output.en(tmp0_desc, 18) ? true : !(value.
|
|
1107
|
-
tmp1_output.an(tmp0_desc, 18, tmp2_cached[18].h2(), value.
|
|
1134
|
+
if (tmp1_output.en(tmp0_desc, 18) ? true : !(value.d1g_1 == null)) {
|
|
1135
|
+
tmp1_output.an(tmp0_desc, 18, tmp2_cached[18].h2(), value.d1g_1);
|
|
1108
1136
|
}
|
|
1109
|
-
if (tmp1_output.en(tmp0_desc, 19) ? true : !(value.
|
|
1110
|
-
tmp1_output.an(tmp0_desc, 19, tmp2_cached[19].h2(), value.
|
|
1137
|
+
if (tmp1_output.en(tmp0_desc, 19) ? true : !(value.e1g_1 == null)) {
|
|
1138
|
+
tmp1_output.an(tmp0_desc, 19, tmp2_cached[19].h2(), value.e1g_1);
|
|
1111
1139
|
}
|
|
1112
|
-
if (tmp1_output.en(tmp0_desc, 20) ? true : !(value.
|
|
1113
|
-
tmp1_output.an(tmp0_desc, 20, StringSerializer_getInstance(), value.
|
|
1140
|
+
if (tmp1_output.en(tmp0_desc, 20) ? true : !(value.f1g_1 == null)) {
|
|
1141
|
+
tmp1_output.an(tmp0_desc, 20, StringSerializer_getInstance(), value.f1g_1);
|
|
1114
1142
|
}
|
|
1115
|
-
if (tmp1_output.en(tmp0_desc, 21) ? true : !(value.
|
|
1116
|
-
tmp1_output.an(tmp0_desc, 21, tmp2_cached[21].h2(), value.
|
|
1143
|
+
if (tmp1_output.en(tmp0_desc, 21) ? true : !(value.g1g_1 == null)) {
|
|
1144
|
+
tmp1_output.an(tmp0_desc, 21, tmp2_cached[21].h2(), value.g1g_1);
|
|
1117
1145
|
}
|
|
1118
|
-
if (tmp1_output.en(tmp0_desc, 22) ? true : !(value.
|
|
1119
|
-
tmp1_output.an(tmp0_desc, 22, StringSerializer_getInstance(), value.
|
|
1146
|
+
if (tmp1_output.en(tmp0_desc, 22) ? true : !(value.h1g_1 == null)) {
|
|
1147
|
+
tmp1_output.an(tmp0_desc, 22, StringSerializer_getInstance(), value.h1g_1);
|
|
1120
1148
|
}
|
|
1121
1149
|
tmp1_output.jl(tmp0_desc);
|
|
1122
1150
|
};
|
|
1123
1151
|
protoOf($serializer_1).li = function (encoder, value) {
|
|
1124
|
-
return this.
|
|
1152
|
+
return this.o1h(encoder, value instanceof RecipeV3 ? value : THROW_CCE());
|
|
1125
1153
|
};
|
|
1126
1154
|
protoOf($serializer_1).mi = function (decoder) {
|
|
1127
|
-
var tmp0_desc = this.
|
|
1155
|
+
var tmp0_desc = this.n1h_1;
|
|
1128
1156
|
var tmp1_flag = true;
|
|
1129
1157
|
var tmp2_index = 0;
|
|
1130
1158
|
var tmp3_bitMask0 = 0;
|
|
@@ -1152,7 +1180,7 @@
|
|
|
1152
1180
|
var tmp25_local21 = null;
|
|
1153
1181
|
var tmp26_local22 = null;
|
|
1154
1182
|
var tmp27_input = decoder.il(tmp0_desc);
|
|
1155
|
-
var tmp28_cached = Companion_getInstance_1().
|
|
1183
|
+
var tmp28_cached = Companion_getInstance_1().m1h_1;
|
|
1156
1184
|
if (tmp27_input.yl()) {
|
|
1157
1185
|
tmp4_local0 = tmp27_input.wl(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
1158
1186
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1307,10 +1335,10 @@
|
|
|
1307
1335
|
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);
|
|
1308
1336
|
};
|
|
1309
1337
|
protoOf($serializer_1).ki = function () {
|
|
1310
|
-
return this.
|
|
1338
|
+
return this.n1h_1;
|
|
1311
1339
|
};
|
|
1312
1340
|
protoOf($serializer_1).ts = function () {
|
|
1313
|
-
var tmp0_cached = Companion_getInstance_1().
|
|
1341
|
+
var tmp0_cached = Companion_getInstance_1().m1h_1;
|
|
1314
1342
|
// Inline function 'kotlin.arrayOf' call
|
|
1315
1343
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1316
1344
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1324,97 +1352,97 @@
|
|
|
1324
1352
|
}
|
|
1325
1353
|
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) {
|
|
1326
1354
|
if (!(2048 === (2048 & seen0))) {
|
|
1327
|
-
throwMissingFieldException(seen0, 2048, $serializer_getInstance_1().
|
|
1355
|
+
throwMissingFieldException(seen0, 2048, $serializer_getInstance_1().n1h_1);
|
|
1328
1356
|
}
|
|
1329
1357
|
if (0 === (seen0 & 1))
|
|
1330
|
-
$this.
|
|
1358
|
+
$this.l1f_1 = null;
|
|
1331
1359
|
else
|
|
1332
|
-
$this.
|
|
1360
|
+
$this.l1f_1 = bookCredit;
|
|
1333
1361
|
if (0 === (seen0 & 2))
|
|
1334
|
-
$this.
|
|
1362
|
+
$this.m1f_1 = null;
|
|
1335
1363
|
else
|
|
1336
|
-
$this.
|
|
1364
|
+
$this.m1f_1 = byline;
|
|
1337
1365
|
if (0 === (seen0 & 4))
|
|
1338
|
-
$this.
|
|
1366
|
+
$this.n1f_1 = null;
|
|
1339
1367
|
else
|
|
1340
|
-
$this.
|
|
1368
|
+
$this.n1f_1 = canonicalArticle;
|
|
1341
1369
|
if (0 === (seen0 & 8))
|
|
1342
|
-
$this.
|
|
1370
|
+
$this.o1f_1 = null;
|
|
1343
1371
|
else
|
|
1344
|
-
$this.
|
|
1372
|
+
$this.o1f_1 = celebrationIds;
|
|
1345
1373
|
if (0 === (seen0 & 16))
|
|
1346
|
-
$this.
|
|
1374
|
+
$this.p1f_1 = null;
|
|
1347
1375
|
else
|
|
1348
|
-
$this.
|
|
1376
|
+
$this.p1f_1 = commerceCtas;
|
|
1349
1377
|
if (0 === (seen0 & 32))
|
|
1350
|
-
$this.
|
|
1378
|
+
$this.q1f_1 = null;
|
|
1351
1379
|
else
|
|
1352
|
-
$this.
|
|
1380
|
+
$this.q1f_1 = composerId;
|
|
1353
1381
|
if (0 === (seen0 & 64))
|
|
1354
|
-
$this.
|
|
1382
|
+
$this.r1f_1 = null;
|
|
1355
1383
|
else
|
|
1356
|
-
$this.
|
|
1384
|
+
$this.r1f_1 = contributors;
|
|
1357
1385
|
if (0 === (seen0 & 128))
|
|
1358
|
-
$this.
|
|
1386
|
+
$this.s1f_1 = null;
|
|
1359
1387
|
else
|
|
1360
|
-
$this.
|
|
1388
|
+
$this.s1f_1 = cuisineIds;
|
|
1361
1389
|
if (0 === (seen0 & 256))
|
|
1362
|
-
$this.
|
|
1390
|
+
$this.t1f_1 = null;
|
|
1363
1391
|
else
|
|
1364
|
-
$this.
|
|
1392
|
+
$this.t1f_1 = description;
|
|
1365
1393
|
if (0 === (seen0 & 512))
|
|
1366
|
-
$this.
|
|
1394
|
+
$this.u1f_1 = null;
|
|
1367
1395
|
else
|
|
1368
|
-
$this.
|
|
1396
|
+
$this.u1f_1 = difficultyLevel;
|
|
1369
1397
|
if (0 === (seen0 & 1024))
|
|
1370
|
-
$this.
|
|
1398
|
+
$this.v1f_1 = null;
|
|
1371
1399
|
else
|
|
1372
|
-
$this.
|
|
1373
|
-
$this.
|
|
1400
|
+
$this.v1f_1 = featuredImage;
|
|
1401
|
+
$this.w1f_1 = id;
|
|
1374
1402
|
if (0 === (seen0 & 4096))
|
|
1375
|
-
$this.
|
|
1403
|
+
$this.x1f_1 = null;
|
|
1376
1404
|
else
|
|
1377
|
-
$this.
|
|
1405
|
+
$this.x1f_1 = ingredients;
|
|
1378
1406
|
if (0 === (seen0 & 8192))
|
|
1379
|
-
$this.
|
|
1407
|
+
$this.y1f_1 = null;
|
|
1380
1408
|
else
|
|
1381
|
-
$this.
|
|
1409
|
+
$this.y1f_1 = instructions;
|
|
1382
1410
|
if (0 === (seen0 & 16384))
|
|
1383
|
-
$this.
|
|
1411
|
+
$this.z1f_1 = null;
|
|
1384
1412
|
else
|
|
1385
|
-
$this.
|
|
1413
|
+
$this.z1f_1 = isAppReady;
|
|
1386
1414
|
if (0 === (seen0 & 32768))
|
|
1387
|
-
$this.
|
|
1415
|
+
$this.a1g_1 = null;
|
|
1388
1416
|
else
|
|
1389
|
-
$this.
|
|
1417
|
+
$this.a1g_1 = mealTypeIds;
|
|
1390
1418
|
if (0 === (seen0 & 65536))
|
|
1391
|
-
$this.
|
|
1419
|
+
$this.b1g_1 = null;
|
|
1392
1420
|
else
|
|
1393
|
-
$this.
|
|
1421
|
+
$this.b1g_1 = serves;
|
|
1394
1422
|
if (0 === (seen0 & 131072))
|
|
1395
|
-
$this.
|
|
1423
|
+
$this.c1g_1 = null;
|
|
1396
1424
|
else
|
|
1397
|
-
$this.
|
|
1425
|
+
$this.c1g_1 = suitableForDietIds;
|
|
1398
1426
|
if (0 === (seen0 & 262144))
|
|
1399
|
-
$this.
|
|
1427
|
+
$this.d1g_1 = null;
|
|
1400
1428
|
else
|
|
1401
|
-
$this.
|
|
1429
|
+
$this.d1g_1 = techniquesUsedIds;
|
|
1402
1430
|
if (0 === (seen0 & 524288))
|
|
1403
|
-
$this.
|
|
1431
|
+
$this.e1g_1 = null;
|
|
1404
1432
|
else
|
|
1405
|
-
$this.
|
|
1433
|
+
$this.e1g_1 = timings;
|
|
1406
1434
|
if (0 === (seen0 & 1048576))
|
|
1407
|
-
$this.
|
|
1435
|
+
$this.f1g_1 = null;
|
|
1408
1436
|
else
|
|
1409
|
-
$this.
|
|
1437
|
+
$this.f1g_1 = title;
|
|
1410
1438
|
if (0 === (seen0 & 2097152))
|
|
1411
|
-
$this.
|
|
1439
|
+
$this.g1g_1 = null;
|
|
1412
1440
|
else
|
|
1413
|
-
$this.
|
|
1441
|
+
$this.g1g_1 = utensilsAndApplianceIds;
|
|
1414
1442
|
if (0 === (seen0 & 4194304))
|
|
1415
|
-
$this.
|
|
1443
|
+
$this.h1g_1 = null;
|
|
1416
1444
|
else
|
|
1417
|
-
$this.
|
|
1445
|
+
$this.h1g_1 = webPublicationDate;
|
|
1418
1446
|
return $this;
|
|
1419
1447
|
}
|
|
1420
1448
|
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) {
|
|
@@ -1444,86 +1472,86 @@
|
|
|
1444
1472
|
title = title === VOID ? null : title;
|
|
1445
1473
|
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? null : utensilsAndApplianceIds;
|
|
1446
1474
|
webPublicationDate = webPublicationDate === VOID ? null : webPublicationDate;
|
|
1447
|
-
this.
|
|
1448
|
-
this.
|
|
1449
|
-
this.
|
|
1450
|
-
this.
|
|
1451
|
-
this.
|
|
1452
|
-
this.
|
|
1453
|
-
this.
|
|
1454
|
-
this.
|
|
1455
|
-
this.
|
|
1456
|
-
this.
|
|
1457
|
-
this.
|
|
1458
|
-
this.
|
|
1459
|
-
this.
|
|
1460
|
-
this.
|
|
1461
|
-
this.
|
|
1462
|
-
this.
|
|
1463
|
-
this.
|
|
1464
|
-
this.
|
|
1465
|
-
this.
|
|
1466
|
-
this.
|
|
1467
|
-
this.
|
|
1468
|
-
this.
|
|
1469
|
-
this.
|
|
1470
|
-
}
|
|
1471
|
-
protoOf(RecipeV3).
|
|
1475
|
+
this.l1f_1 = bookCredit;
|
|
1476
|
+
this.m1f_1 = byline;
|
|
1477
|
+
this.n1f_1 = canonicalArticle;
|
|
1478
|
+
this.o1f_1 = celebrationIds;
|
|
1479
|
+
this.p1f_1 = commerceCtas;
|
|
1480
|
+
this.q1f_1 = composerId;
|
|
1481
|
+
this.r1f_1 = contributors;
|
|
1482
|
+
this.s1f_1 = cuisineIds;
|
|
1483
|
+
this.t1f_1 = description;
|
|
1484
|
+
this.u1f_1 = difficultyLevel;
|
|
1485
|
+
this.v1f_1 = featuredImage;
|
|
1486
|
+
this.w1f_1 = id;
|
|
1487
|
+
this.x1f_1 = ingredients;
|
|
1488
|
+
this.y1f_1 = instructions;
|
|
1489
|
+
this.z1f_1 = isAppReady;
|
|
1490
|
+
this.a1g_1 = mealTypeIds;
|
|
1491
|
+
this.b1g_1 = serves;
|
|
1492
|
+
this.c1g_1 = suitableForDietIds;
|
|
1493
|
+
this.d1g_1 = techniquesUsedIds;
|
|
1494
|
+
this.e1g_1 = timings;
|
|
1495
|
+
this.f1g_1 = title;
|
|
1496
|
+
this.g1g_1 = utensilsAndApplianceIds;
|
|
1497
|
+
this.h1g_1 = webPublicationDate;
|
|
1498
|
+
}
|
|
1499
|
+
protoOf(RecipeV3).p1h = function (bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate) {
|
|
1472
1500
|
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);
|
|
1473
1501
|
};
|
|
1474
|
-
protoOf(RecipeV3).
|
|
1475
|
-
bookCredit = bookCredit === VOID ? this.
|
|
1476
|
-
byline = byline === VOID ? this.
|
|
1477
|
-
canonicalArticle = canonicalArticle === VOID ? this.
|
|
1478
|
-
celebrationIds = celebrationIds === VOID ? this.
|
|
1479
|
-
commerceCtas = commerceCtas === VOID ? this.
|
|
1480
|
-
composerId = composerId === VOID ? this.
|
|
1481
|
-
contributors = contributors === VOID ? this.
|
|
1482
|
-
cuisineIds = cuisineIds === VOID ? this.
|
|
1483
|
-
description = description === VOID ? this.
|
|
1484
|
-
difficultyLevel = difficultyLevel === VOID ? this.
|
|
1485
|
-
featuredImage = featuredImage === VOID ? this.
|
|
1486
|
-
id = id === VOID ? this.
|
|
1487
|
-
ingredients = ingredients === VOID ? this.
|
|
1488
|
-
instructions = instructions === VOID ? this.
|
|
1489
|
-
isAppReady = isAppReady === VOID ? this.
|
|
1490
|
-
mealTypeIds = mealTypeIds === VOID ? this.
|
|
1491
|
-
serves = serves === VOID ? this.
|
|
1492
|
-
suitableForDietIds = suitableForDietIds === VOID ? this.
|
|
1493
|
-
techniquesUsedIds = techniquesUsedIds === VOID ? this.
|
|
1494
|
-
timings = timings === VOID ? this.
|
|
1495
|
-
title = title === VOID ? this.
|
|
1496
|
-
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? this.
|
|
1497
|
-
webPublicationDate = webPublicationDate === VOID ? this.
|
|
1498
|
-
return $super === VOID ? this.
|
|
1502
|
+
protoOf(RecipeV3).z1g = 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) {
|
|
1503
|
+
bookCredit = bookCredit === VOID ? this.l1f_1 : bookCredit;
|
|
1504
|
+
byline = byline === VOID ? this.m1f_1 : byline;
|
|
1505
|
+
canonicalArticle = canonicalArticle === VOID ? this.n1f_1 : canonicalArticle;
|
|
1506
|
+
celebrationIds = celebrationIds === VOID ? this.o1f_1 : celebrationIds;
|
|
1507
|
+
commerceCtas = commerceCtas === VOID ? this.p1f_1 : commerceCtas;
|
|
1508
|
+
composerId = composerId === VOID ? this.q1f_1 : composerId;
|
|
1509
|
+
contributors = contributors === VOID ? this.r1f_1 : contributors;
|
|
1510
|
+
cuisineIds = cuisineIds === VOID ? this.s1f_1 : cuisineIds;
|
|
1511
|
+
description = description === VOID ? this.t1f_1 : description;
|
|
1512
|
+
difficultyLevel = difficultyLevel === VOID ? this.u1f_1 : difficultyLevel;
|
|
1513
|
+
featuredImage = featuredImage === VOID ? this.v1f_1 : featuredImage;
|
|
1514
|
+
id = id === VOID ? this.w1f_1 : id;
|
|
1515
|
+
ingredients = ingredients === VOID ? this.x1f_1 : ingredients;
|
|
1516
|
+
instructions = instructions === VOID ? this.y1f_1 : instructions;
|
|
1517
|
+
isAppReady = isAppReady === VOID ? this.z1f_1 : isAppReady;
|
|
1518
|
+
mealTypeIds = mealTypeIds === VOID ? this.a1g_1 : mealTypeIds;
|
|
1519
|
+
serves = serves === VOID ? this.b1g_1 : serves;
|
|
1520
|
+
suitableForDietIds = suitableForDietIds === VOID ? this.c1g_1 : suitableForDietIds;
|
|
1521
|
+
techniquesUsedIds = techniquesUsedIds === VOID ? this.d1g_1 : techniquesUsedIds;
|
|
1522
|
+
timings = timings === VOID ? this.e1g_1 : timings;
|
|
1523
|
+
title = title === VOID ? this.f1g_1 : title;
|
|
1524
|
+
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? this.g1g_1 : utensilsAndApplianceIds;
|
|
1525
|
+
webPublicationDate = webPublicationDate === VOID ? this.h1g_1 : webPublicationDate;
|
|
1526
|
+
return $super === VOID ? this.p1h(bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate) : $super.p1h.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);
|
|
1499
1527
|
};
|
|
1500
1528
|
protoOf(RecipeV3).toString = function () {
|
|
1501
|
-
return 'RecipeV3(bookCredit=' + this.
|
|
1529
|
+
return 'RecipeV3(bookCredit=' + this.l1f_1 + ', byline=' + toString(this.m1f_1) + ', canonicalArticle=' + this.n1f_1 + ', celebrationIds=' + toString(this.o1f_1) + ', commerceCtas=' + toString(this.p1f_1) + ', composerId=' + this.q1f_1 + ', contributors=' + toString(this.r1f_1) + ', cuisineIds=' + toString(this.s1f_1) + ', description=' + this.t1f_1 + ', difficultyLevel=' + this.u1f_1 + ', featuredImage=' + toString(this.v1f_1) + ', id=' + this.w1f_1 + ', ingredients=' + toString(this.x1f_1) + ', instructions=' + toString(this.y1f_1) + ', isAppReady=' + this.z1f_1 + ', mealTypeIds=' + toString(this.a1g_1) + ', serves=' + toString(this.b1g_1) + ', suitableForDietIds=' + toString(this.c1g_1) + ', techniquesUsedIds=' + toString(this.d1g_1) + ', timings=' + toString(this.e1g_1) + ', title=' + this.f1g_1 + ', utensilsAndApplianceIds=' + toString(this.g1g_1) + ', webPublicationDate=' + this.h1g_1 + ')';
|
|
1502
1530
|
};
|
|
1503
1531
|
protoOf(RecipeV3).hashCode = function () {
|
|
1504
|
-
var result = this.
|
|
1505
|
-
result = imul(result, 31) + (this.k1f_1 == null ? 0 : hashCode(this.k1f_1)) | 0;
|
|
1506
|
-
result = imul(result, 31) + (this.l1f_1 == null ? 0 : getStringHashCode(this.l1f_1)) | 0;
|
|
1532
|
+
var result = this.l1f_1 == null ? 0 : getStringHashCode(this.l1f_1);
|
|
1507
1533
|
result = imul(result, 31) + (this.m1f_1 == null ? 0 : hashCode(this.m1f_1)) | 0;
|
|
1508
|
-
result = imul(result, 31) + (this.n1f_1 == null ? 0 :
|
|
1509
|
-
result = imul(result, 31) + (this.o1f_1 == null ? 0 :
|
|
1534
|
+
result = imul(result, 31) + (this.n1f_1 == null ? 0 : getStringHashCode(this.n1f_1)) | 0;
|
|
1535
|
+
result = imul(result, 31) + (this.o1f_1 == null ? 0 : hashCode(this.o1f_1)) | 0;
|
|
1510
1536
|
result = imul(result, 31) + (this.p1f_1 == null ? 0 : hashCode(this.p1f_1)) | 0;
|
|
1511
|
-
result = imul(result, 31) + (this.q1f_1 == null ? 0 :
|
|
1512
|
-
result = imul(result, 31) + (this.r1f_1 == null ? 0 :
|
|
1513
|
-
result = imul(result, 31) + (this.s1f_1 == null ? 0 :
|
|
1514
|
-
result = imul(result, 31) + (this.t1f_1 == null ? 0 : this.t1f_1
|
|
1515
|
-
result = imul(result, 31) + getStringHashCode(this.u1f_1) | 0;
|
|
1516
|
-
result = imul(result, 31) + (this.v1f_1 == null ? 0 :
|
|
1517
|
-
result = imul(result, 31) + (this.w1f_1
|
|
1518
|
-
result = imul(result, 31) + (this.x1f_1 == null ? 0 :
|
|
1537
|
+
result = imul(result, 31) + (this.q1f_1 == null ? 0 : getStringHashCode(this.q1f_1)) | 0;
|
|
1538
|
+
result = imul(result, 31) + (this.r1f_1 == null ? 0 : hashCode(this.r1f_1)) | 0;
|
|
1539
|
+
result = imul(result, 31) + (this.s1f_1 == null ? 0 : hashCode(this.s1f_1)) | 0;
|
|
1540
|
+
result = imul(result, 31) + (this.t1f_1 == null ? 0 : getStringHashCode(this.t1f_1)) | 0;
|
|
1541
|
+
result = imul(result, 31) + (this.u1f_1 == null ? 0 : getStringHashCode(this.u1f_1)) | 0;
|
|
1542
|
+
result = imul(result, 31) + (this.v1f_1 == null ? 0 : this.v1f_1.hashCode()) | 0;
|
|
1543
|
+
result = imul(result, 31) + getStringHashCode(this.w1f_1) | 0;
|
|
1544
|
+
result = imul(result, 31) + (this.x1f_1 == null ? 0 : hashCode(this.x1f_1)) | 0;
|
|
1519
1545
|
result = imul(result, 31) + (this.y1f_1 == null ? 0 : hashCode(this.y1f_1)) | 0;
|
|
1520
|
-
result = imul(result, 31) + (this.z1f_1 == null ? 0 :
|
|
1546
|
+
result = imul(result, 31) + (this.z1f_1 == null ? 0 : getBooleanHashCode(this.z1f_1)) | 0;
|
|
1521
1547
|
result = imul(result, 31) + (this.a1g_1 == null ? 0 : hashCode(this.a1g_1)) | 0;
|
|
1522
1548
|
result = imul(result, 31) + (this.b1g_1 == null ? 0 : hashCode(this.b1g_1)) | 0;
|
|
1523
1549
|
result = imul(result, 31) + (this.c1g_1 == null ? 0 : hashCode(this.c1g_1)) | 0;
|
|
1524
|
-
result = imul(result, 31) + (this.d1g_1 == null ? 0 :
|
|
1550
|
+
result = imul(result, 31) + (this.d1g_1 == null ? 0 : hashCode(this.d1g_1)) | 0;
|
|
1525
1551
|
result = imul(result, 31) + (this.e1g_1 == null ? 0 : hashCode(this.e1g_1)) | 0;
|
|
1526
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;
|
|
1527
1555
|
return result;
|
|
1528
1556
|
};
|
|
1529
1557
|
protoOf(RecipeV3).equals = function (other) {
|
|
@@ -1531,39 +1559,35 @@
|
|
|
1531
1559
|
return true;
|
|
1532
1560
|
if (!(other instanceof RecipeV3))
|
|
1533
1561
|
return false;
|
|
1534
|
-
if (!(this.j1f_1 == other.j1f_1))
|
|
1535
|
-
return false;
|
|
1536
|
-
if (!equals(this.k1f_1, other.k1f_1))
|
|
1537
|
-
return false;
|
|
1538
1562
|
if (!(this.l1f_1 == other.l1f_1))
|
|
1539
1563
|
return false;
|
|
1540
1564
|
if (!equals(this.m1f_1, other.m1f_1))
|
|
1541
1565
|
return false;
|
|
1542
|
-
if (!
|
|
1566
|
+
if (!(this.n1f_1 == other.n1f_1))
|
|
1543
1567
|
return false;
|
|
1544
|
-
if (!(this.o1f_1
|
|
1568
|
+
if (!equals(this.o1f_1, other.o1f_1))
|
|
1545
1569
|
return false;
|
|
1546
1570
|
if (!equals(this.p1f_1, other.p1f_1))
|
|
1547
1571
|
return false;
|
|
1548
|
-
if (!
|
|
1572
|
+
if (!(this.q1f_1 == other.q1f_1))
|
|
1549
1573
|
return false;
|
|
1550
|
-
if (!(this.r1f_1
|
|
1574
|
+
if (!equals(this.r1f_1, other.r1f_1))
|
|
1551
1575
|
return false;
|
|
1552
|
-
if (!(this.s1f_1
|
|
1576
|
+
if (!equals(this.s1f_1, other.s1f_1))
|
|
1553
1577
|
return false;
|
|
1554
|
-
if (!
|
|
1578
|
+
if (!(this.t1f_1 == other.t1f_1))
|
|
1555
1579
|
return false;
|
|
1556
|
-
if (!(this.u1f_1
|
|
1580
|
+
if (!(this.u1f_1 == other.u1f_1))
|
|
1557
1581
|
return false;
|
|
1558
1582
|
if (!equals(this.v1f_1, other.v1f_1))
|
|
1559
1583
|
return false;
|
|
1560
|
-
if (!
|
|
1584
|
+
if (!(this.w1f_1 === other.w1f_1))
|
|
1561
1585
|
return false;
|
|
1562
|
-
if (!(this.x1f_1
|
|
1586
|
+
if (!equals(this.x1f_1, other.x1f_1))
|
|
1563
1587
|
return false;
|
|
1564
1588
|
if (!equals(this.y1f_1, other.y1f_1))
|
|
1565
1589
|
return false;
|
|
1566
|
-
if (!
|
|
1590
|
+
if (!(this.z1f_1 == other.z1f_1))
|
|
1567
1591
|
return false;
|
|
1568
1592
|
if (!equals(this.a1g_1, other.a1g_1))
|
|
1569
1593
|
return false;
|
|
@@ -1571,12 +1595,16 @@
|
|
|
1571
1595
|
return false;
|
|
1572
1596
|
if (!equals(this.c1g_1, other.c1g_1))
|
|
1573
1597
|
return false;
|
|
1574
|
-
if (!(this.d1g_1
|
|
1598
|
+
if (!equals(this.d1g_1, other.d1g_1))
|
|
1575
1599
|
return false;
|
|
1576
1600
|
if (!equals(this.e1g_1, other.e1g_1))
|
|
1577
1601
|
return false;
|
|
1578
1602
|
if (!(this.f1g_1 == other.f1g_1))
|
|
1579
1603
|
return false;
|
|
1604
|
+
if (!equals(this.g1g_1, other.g1g_1))
|
|
1605
|
+
return false;
|
|
1606
|
+
if (!(this.h1g_1 == other.h1g_1))
|
|
1607
|
+
return false;
|
|
1580
1608
|
return true;
|
|
1581
1609
|
};
|
|
1582
1610
|
function $serializer_2() {
|
|
@@ -1585,21 +1613,21 @@
|
|
|
1585
1613
|
tmp0_serialDesc.rs('sponsorName', false);
|
|
1586
1614
|
tmp0_serialDesc.rs('territory', false);
|
|
1587
1615
|
tmp0_serialDesc.rs('url', false);
|
|
1588
|
-
this.
|
|
1616
|
+
this.q1h_1 = tmp0_serialDesc;
|
|
1589
1617
|
}
|
|
1590
|
-
protoOf($serializer_2).
|
|
1591
|
-
var tmp0_desc = this.
|
|
1618
|
+
protoOf($serializer_2).r1h = function (encoder, value) {
|
|
1619
|
+
var tmp0_desc = this.q1h_1;
|
|
1592
1620
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
1593
|
-
tmp1_output.wm(tmp0_desc, 0, value.
|
|
1594
|
-
tmp1_output.wm(tmp0_desc, 1, value.
|
|
1595
|
-
tmp1_output.wm(tmp0_desc, 2, value.
|
|
1621
|
+
tmp1_output.wm(tmp0_desc, 0, value.s1h_1);
|
|
1622
|
+
tmp1_output.wm(tmp0_desc, 1, value.t1h_1);
|
|
1623
|
+
tmp1_output.wm(tmp0_desc, 2, value.u1h_1);
|
|
1596
1624
|
tmp1_output.jl(tmp0_desc);
|
|
1597
1625
|
};
|
|
1598
1626
|
protoOf($serializer_2).li = function (encoder, value) {
|
|
1599
|
-
return this.
|
|
1627
|
+
return this.r1h(encoder, value instanceof CommerceCta ? value : THROW_CCE());
|
|
1600
1628
|
};
|
|
1601
1629
|
protoOf($serializer_2).mi = function (decoder) {
|
|
1602
|
-
var tmp0_desc = this.
|
|
1630
|
+
var tmp0_desc = this.q1h_1;
|
|
1603
1631
|
var tmp1_flag = true;
|
|
1604
1632
|
var tmp2_index = 0;
|
|
1605
1633
|
var tmp3_bitMask0 = 0;
|
|
@@ -1641,7 +1669,7 @@
|
|
|
1641
1669
|
return CommerceCta_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1642
1670
|
};
|
|
1643
1671
|
protoOf($serializer_2).ki = function () {
|
|
1644
|
-
return this.
|
|
1672
|
+
return this.q1h_1;
|
|
1645
1673
|
};
|
|
1646
1674
|
protoOf($serializer_2).ts = function () {
|
|
1647
1675
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1657,11 +1685,11 @@
|
|
|
1657
1685
|
}
|
|
1658
1686
|
function CommerceCta_init_$Init$(seen0, sponsorName, territory, url, serializationConstructorMarker, $this) {
|
|
1659
1687
|
if (!(7 === (7 & seen0))) {
|
|
1660
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_2().
|
|
1688
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_2().q1h_1);
|
|
1661
1689
|
}
|
|
1662
|
-
$this.
|
|
1663
|
-
$this.
|
|
1664
|
-
$this.
|
|
1690
|
+
$this.s1h_1 = sponsorName;
|
|
1691
|
+
$this.t1h_1 = territory;
|
|
1692
|
+
$this.u1h_1 = url;
|
|
1665
1693
|
return $this;
|
|
1666
1694
|
}
|
|
1667
1695
|
function CommerceCta_init_$Create$(seen0, sponsorName, territory, url, serializationConstructorMarker) {
|
|
@@ -1670,12 +1698,12 @@
|
|
|
1670
1698
|
function CommerceCta() {
|
|
1671
1699
|
}
|
|
1672
1700
|
protoOf(CommerceCta).toString = function () {
|
|
1673
|
-
return 'CommerceCta(sponsorName=' + this.
|
|
1701
|
+
return 'CommerceCta(sponsorName=' + this.s1h_1 + ', territory=' + this.t1h_1 + ', url=' + this.u1h_1 + ')';
|
|
1674
1702
|
};
|
|
1675
1703
|
protoOf(CommerceCta).hashCode = function () {
|
|
1676
|
-
var result = getStringHashCode(this.
|
|
1677
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1678
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1704
|
+
var result = getStringHashCode(this.s1h_1);
|
|
1705
|
+
result = imul(result, 31) + getStringHashCode(this.t1h_1) | 0;
|
|
1706
|
+
result = imul(result, 31) + getStringHashCode(this.u1h_1) | 0;
|
|
1679
1707
|
return result;
|
|
1680
1708
|
};
|
|
1681
1709
|
protoOf(CommerceCta).equals = function (other) {
|
|
@@ -1683,11 +1711,11 @@
|
|
|
1683
1711
|
return true;
|
|
1684
1712
|
if (!(other instanceof CommerceCta))
|
|
1685
1713
|
return false;
|
|
1686
|
-
if (!(this.
|
|
1714
|
+
if (!(this.s1h_1 === other.s1h_1))
|
|
1687
1715
|
return false;
|
|
1688
|
-
if (!(this.
|
|
1716
|
+
if (!(this.t1h_1 === other.t1h_1))
|
|
1689
1717
|
return false;
|
|
1690
|
-
if (!(this.
|
|
1718
|
+
if (!(this.u1h_1 === other.u1h_1))
|
|
1691
1719
|
return false;
|
|
1692
1720
|
return true;
|
|
1693
1721
|
};
|
|
@@ -1702,36 +1730,36 @@
|
|
|
1702
1730
|
tmp0_serialDesc.rs('photographer', true);
|
|
1703
1731
|
tmp0_serialDesc.rs('source', true);
|
|
1704
1732
|
tmp0_serialDesc.rs('url', false);
|
|
1705
|
-
this.
|
|
1733
|
+
this.v1h_1 = tmp0_serialDesc;
|
|
1706
1734
|
}
|
|
1707
|
-
protoOf($serializer_3).
|
|
1708
|
-
var tmp0_desc = this.
|
|
1735
|
+
protoOf($serializer_3).w1h = function (encoder, value) {
|
|
1736
|
+
var tmp0_desc = this.v1h_1;
|
|
1709
1737
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
1710
|
-
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.
|
|
1711
|
-
tmp1_output.an(tmp0_desc, 0, StringSerializer_getInstance(), value.
|
|
1738
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.x1h_1 == null)) {
|
|
1739
|
+
tmp1_output.an(tmp0_desc, 0, StringSerializer_getInstance(), value.x1h_1);
|
|
1712
1740
|
}
|
|
1713
|
-
tmp1_output.wm(tmp0_desc, 1, value.
|
|
1714
|
-
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.
|
|
1715
|
-
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
1741
|
+
tmp1_output.wm(tmp0_desc, 1, value.y1h_1);
|
|
1742
|
+
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.z1h_1 == null)) {
|
|
1743
|
+
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.z1h_1);
|
|
1716
1744
|
}
|
|
1717
|
-
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.
|
|
1718
|
-
tmp1_output.an(tmp0_desc, 3, StringSerializer_getInstance(), value.
|
|
1745
|
+
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.a1i_1 == null)) {
|
|
1746
|
+
tmp1_output.an(tmp0_desc, 3, StringSerializer_getInstance(), value.a1i_1);
|
|
1719
1747
|
}
|
|
1720
|
-
tmp1_output.wm(tmp0_desc, 4, value.
|
|
1721
|
-
if (tmp1_output.en(tmp0_desc, 5) ? true : !(value.
|
|
1722
|
-
tmp1_output.an(tmp0_desc, 5, StringSerializer_getInstance(), value.
|
|
1748
|
+
tmp1_output.wm(tmp0_desc, 4, value.b1i_1);
|
|
1749
|
+
if (tmp1_output.en(tmp0_desc, 5) ? true : !(value.c1i_1 == null)) {
|
|
1750
|
+
tmp1_output.an(tmp0_desc, 5, StringSerializer_getInstance(), value.c1i_1);
|
|
1723
1751
|
}
|
|
1724
|
-
if (tmp1_output.en(tmp0_desc, 6) ? true : !(value.
|
|
1725
|
-
tmp1_output.an(tmp0_desc, 6, StringSerializer_getInstance(), value.
|
|
1752
|
+
if (tmp1_output.en(tmp0_desc, 6) ? true : !(value.d1i_1 == null)) {
|
|
1753
|
+
tmp1_output.an(tmp0_desc, 6, StringSerializer_getInstance(), value.d1i_1);
|
|
1726
1754
|
}
|
|
1727
|
-
tmp1_output.wm(tmp0_desc, 7, value.
|
|
1755
|
+
tmp1_output.wm(tmp0_desc, 7, value.e1i_1);
|
|
1728
1756
|
tmp1_output.jl(tmp0_desc);
|
|
1729
1757
|
};
|
|
1730
1758
|
protoOf($serializer_3).li = function (encoder, value) {
|
|
1731
|
-
return this.
|
|
1759
|
+
return this.w1h(encoder, value instanceof Image ? value : THROW_CCE());
|
|
1732
1760
|
};
|
|
1733
1761
|
protoOf($serializer_3).mi = function (decoder) {
|
|
1734
|
-
var tmp0_desc = this.
|
|
1762
|
+
var tmp0_desc = this.v1h_1;
|
|
1735
1763
|
var tmp1_flag = true;
|
|
1736
1764
|
var tmp2_index = 0;
|
|
1737
1765
|
var tmp3_bitMask0 = 0;
|
|
@@ -1808,7 +1836,7 @@
|
|
|
1808
1836
|
return Image_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1809
1837
|
};
|
|
1810
1838
|
protoOf($serializer_3).ki = function () {
|
|
1811
|
-
return this.
|
|
1839
|
+
return this.v1h_1;
|
|
1812
1840
|
};
|
|
1813
1841
|
protoOf($serializer_3).ts = function () {
|
|
1814
1842
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1824,31 +1852,31 @@
|
|
|
1824
1852
|
}
|
|
1825
1853
|
function Image_init_$Init$(seen0, caption, cropId, imageType, mediaApiUrl, mediaId, photographer, source, url, serializationConstructorMarker, $this) {
|
|
1826
1854
|
if (!(146 === (146 & seen0))) {
|
|
1827
|
-
throwMissingFieldException(seen0, 146, $serializer_getInstance_3().
|
|
1855
|
+
throwMissingFieldException(seen0, 146, $serializer_getInstance_3().v1h_1);
|
|
1828
1856
|
}
|
|
1829
1857
|
if (0 === (seen0 & 1))
|
|
1830
|
-
$this.
|
|
1858
|
+
$this.x1h_1 = null;
|
|
1831
1859
|
else
|
|
1832
|
-
$this.
|
|
1833
|
-
$this.
|
|
1860
|
+
$this.x1h_1 = caption;
|
|
1861
|
+
$this.y1h_1 = cropId;
|
|
1834
1862
|
if (0 === (seen0 & 4))
|
|
1835
|
-
$this.
|
|
1863
|
+
$this.z1h_1 = null;
|
|
1836
1864
|
else
|
|
1837
|
-
$this.
|
|
1865
|
+
$this.z1h_1 = imageType;
|
|
1838
1866
|
if (0 === (seen0 & 8))
|
|
1839
|
-
$this.
|
|
1867
|
+
$this.a1i_1 = null;
|
|
1840
1868
|
else
|
|
1841
|
-
$this.
|
|
1842
|
-
$this.
|
|
1869
|
+
$this.a1i_1 = mediaApiUrl;
|
|
1870
|
+
$this.b1i_1 = mediaId;
|
|
1843
1871
|
if (0 === (seen0 & 32))
|
|
1844
|
-
$this.
|
|
1872
|
+
$this.c1i_1 = null;
|
|
1845
1873
|
else
|
|
1846
|
-
$this.
|
|
1874
|
+
$this.c1i_1 = photographer;
|
|
1847
1875
|
if (0 === (seen0 & 64))
|
|
1848
|
-
$this.
|
|
1876
|
+
$this.d1i_1 = null;
|
|
1849
1877
|
else
|
|
1850
|
-
$this.
|
|
1851
|
-
$this.
|
|
1878
|
+
$this.d1i_1 = source;
|
|
1879
|
+
$this.e1i_1 = url;
|
|
1852
1880
|
return $this;
|
|
1853
1881
|
}
|
|
1854
1882
|
function Image_init_$Create$(seen0, caption, cropId, imageType, mediaApiUrl, mediaId, photographer, source, url, serializationConstructorMarker) {
|
|
@@ -1857,17 +1885,17 @@
|
|
|
1857
1885
|
function Image() {
|
|
1858
1886
|
}
|
|
1859
1887
|
protoOf(Image).toString = function () {
|
|
1860
|
-
return 'Image(caption=' + this.
|
|
1888
|
+
return 'Image(caption=' + this.x1h_1 + ', cropId=' + this.y1h_1 + ', imageType=' + this.z1h_1 + ', mediaApiUrl=' + this.a1i_1 + ', mediaId=' + this.b1i_1 + ', photographer=' + this.c1i_1 + ', source=' + this.d1i_1 + ', url=' + this.e1i_1 + ')';
|
|
1861
1889
|
};
|
|
1862
1890
|
protoOf(Image).hashCode = function () {
|
|
1863
|
-
var result = this.
|
|
1864
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1865
|
-
result = imul(result, 31) + (this.
|
|
1866
|
-
result = imul(result, 31) + (this.y1h_1 == null ? 0 : getStringHashCode(this.y1h_1)) | 0;
|
|
1867
|
-
result = imul(result, 31) + getStringHashCode(this.z1h_1) | 0;
|
|
1891
|
+
var result = this.x1h_1 == null ? 0 : getStringHashCode(this.x1h_1);
|
|
1892
|
+
result = imul(result, 31) + getStringHashCode(this.y1h_1) | 0;
|
|
1893
|
+
result = imul(result, 31) + (this.z1h_1 == null ? 0 : getStringHashCode(this.z1h_1)) | 0;
|
|
1868
1894
|
result = imul(result, 31) + (this.a1i_1 == null ? 0 : getStringHashCode(this.a1i_1)) | 0;
|
|
1869
|
-
result = imul(result, 31) +
|
|
1870
|
-
result = imul(result, 31) + getStringHashCode(this.c1i_1) | 0;
|
|
1895
|
+
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;
|
|
1871
1899
|
return result;
|
|
1872
1900
|
};
|
|
1873
1901
|
protoOf(Image).equals = function (other) {
|
|
@@ -1875,21 +1903,21 @@
|
|
|
1875
1903
|
return true;
|
|
1876
1904
|
if (!(other instanceof Image))
|
|
1877
1905
|
return false;
|
|
1878
|
-
if (!(this.v1h_1 == other.v1h_1))
|
|
1879
|
-
return false;
|
|
1880
|
-
if (!(this.w1h_1 === other.w1h_1))
|
|
1881
|
-
return false;
|
|
1882
1906
|
if (!(this.x1h_1 == other.x1h_1))
|
|
1883
1907
|
return false;
|
|
1884
|
-
if (!(this.y1h_1
|
|
1908
|
+
if (!(this.y1h_1 === other.y1h_1))
|
|
1885
1909
|
return false;
|
|
1886
|
-
if (!(this.z1h_1
|
|
1910
|
+
if (!(this.z1h_1 == other.z1h_1))
|
|
1887
1911
|
return false;
|
|
1888
1912
|
if (!(this.a1i_1 == other.a1i_1))
|
|
1889
1913
|
return false;
|
|
1890
|
-
if (!(this.b1i_1
|
|
1914
|
+
if (!(this.b1i_1 === other.b1i_1))
|
|
1915
|
+
return false;
|
|
1916
|
+
if (!(this.c1i_1 == other.c1i_1))
|
|
1917
|
+
return false;
|
|
1918
|
+
if (!(this.d1i_1 == other.d1i_1))
|
|
1891
1919
|
return false;
|
|
1892
|
-
if (!(this.
|
|
1920
|
+
if (!(this.e1i_1 === other.e1i_1))
|
|
1893
1921
|
return false;
|
|
1894
1922
|
return true;
|
|
1895
1923
|
};
|
|
@@ -1903,7 +1931,7 @@
|
|
|
1903
1931
|
// Inline function 'kotlin.arrayOf' call
|
|
1904
1932
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1905
1933
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1906
|
-
tmp.
|
|
1934
|
+
tmp.f1i_1 = [lazy(tmp_0, IngredientsList$Companion$$childSerializers$_anonymous__y7k6ja), null];
|
|
1907
1935
|
}
|
|
1908
1936
|
var Companion_instance_3;
|
|
1909
1937
|
function Companion_getInstance_2() {
|
|
@@ -1916,32 +1944,32 @@
|
|
|
1916
1944
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.IngredientsList', this, 2);
|
|
1917
1945
|
tmp0_serialDesc.rs('ingredientsList', true);
|
|
1918
1946
|
tmp0_serialDesc.rs('recipeSection', true);
|
|
1919
|
-
this.
|
|
1947
|
+
this.g1i_1 = tmp0_serialDesc;
|
|
1920
1948
|
}
|
|
1921
|
-
protoOf($serializer_4).
|
|
1922
|
-
var tmp0_desc = this.
|
|
1949
|
+
protoOf($serializer_4).h1i = function (encoder, value) {
|
|
1950
|
+
var tmp0_desc = this.g1i_1;
|
|
1923
1951
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
1924
|
-
var tmp2_cached = Companion_getInstance_2().
|
|
1925
|
-
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.
|
|
1926
|
-
tmp1_output.an(tmp0_desc, 0, tmp2_cached[0].h2(), value.
|
|
1952
|
+
var tmp2_cached = Companion_getInstance_2().f1i_1;
|
|
1953
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.i1g_1 == null)) {
|
|
1954
|
+
tmp1_output.an(tmp0_desc, 0, tmp2_cached[0].h2(), value.i1g_1);
|
|
1927
1955
|
}
|
|
1928
|
-
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.
|
|
1929
|
-
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
1956
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.j1g_1 == null)) {
|
|
1957
|
+
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.j1g_1);
|
|
1930
1958
|
}
|
|
1931
1959
|
tmp1_output.jl(tmp0_desc);
|
|
1932
1960
|
};
|
|
1933
1961
|
protoOf($serializer_4).li = function (encoder, value) {
|
|
1934
|
-
return this.
|
|
1962
|
+
return this.h1i(encoder, value instanceof IngredientsList ? value : THROW_CCE());
|
|
1935
1963
|
};
|
|
1936
1964
|
protoOf($serializer_4).mi = function (decoder) {
|
|
1937
|
-
var tmp0_desc = this.
|
|
1965
|
+
var tmp0_desc = this.g1i_1;
|
|
1938
1966
|
var tmp1_flag = true;
|
|
1939
1967
|
var tmp2_index = 0;
|
|
1940
1968
|
var tmp3_bitMask0 = 0;
|
|
1941
1969
|
var tmp4_local0 = null;
|
|
1942
1970
|
var tmp5_local1 = null;
|
|
1943
1971
|
var tmp6_input = decoder.il(tmp0_desc);
|
|
1944
|
-
var tmp7_cached = Companion_getInstance_2().
|
|
1972
|
+
var tmp7_cached = Companion_getInstance_2().f1i_1;
|
|
1945
1973
|
if (tmp6_input.yl()) {
|
|
1946
1974
|
tmp4_local0 = tmp6_input.wl(tmp0_desc, 0, tmp7_cached[0].h2(), tmp4_local0);
|
|
1947
1975
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1970,10 +1998,10 @@
|
|
|
1970
1998
|
return IngredientsList_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1971
1999
|
};
|
|
1972
2000
|
protoOf($serializer_4).ki = function () {
|
|
1973
|
-
return this.
|
|
2001
|
+
return this.g1i_1;
|
|
1974
2002
|
};
|
|
1975
2003
|
protoOf($serializer_4).ts = function () {
|
|
1976
|
-
var tmp0_cached = Companion_getInstance_2().
|
|
2004
|
+
var tmp0_cached = Companion_getInstance_2().f1i_1;
|
|
1977
2005
|
// Inline function 'kotlin.arrayOf' call
|
|
1978
2006
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1979
2007
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1987,16 +2015,16 @@
|
|
|
1987
2015
|
}
|
|
1988
2016
|
function IngredientsList_init_$Init$(seen0, ingredientsList, recipeSection, serializationConstructorMarker, $this) {
|
|
1989
2017
|
if (!(0 === (0 & seen0))) {
|
|
1990
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_4().
|
|
2018
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_4().g1i_1);
|
|
1991
2019
|
}
|
|
1992
2020
|
if (0 === (seen0 & 1))
|
|
1993
|
-
$this.
|
|
2021
|
+
$this.i1g_1 = null;
|
|
1994
2022
|
else
|
|
1995
|
-
$this.
|
|
2023
|
+
$this.i1g_1 = ingredientsList;
|
|
1996
2024
|
if (0 === (seen0 & 2))
|
|
1997
|
-
$this.
|
|
2025
|
+
$this.j1g_1 = null;
|
|
1998
2026
|
else
|
|
1999
|
-
$this.
|
|
2027
|
+
$this.j1g_1 = recipeSection;
|
|
2000
2028
|
return $this;
|
|
2001
2029
|
}
|
|
2002
2030
|
function IngredientsList_init_$Create$(seen0, ingredientsList, recipeSection, serializationConstructorMarker) {
|
|
@@ -2006,15 +2034,15 @@
|
|
|
2006
2034
|
Companion_getInstance_2();
|
|
2007
2035
|
ingredientsList = ingredientsList === VOID ? null : ingredientsList;
|
|
2008
2036
|
recipeSection = recipeSection === VOID ? null : recipeSection;
|
|
2009
|
-
this.
|
|
2010
|
-
this.
|
|
2037
|
+
this.i1g_1 = ingredientsList;
|
|
2038
|
+
this.j1g_1 = recipeSection;
|
|
2011
2039
|
}
|
|
2012
2040
|
protoOf(IngredientsList).toString = function () {
|
|
2013
|
-
return 'IngredientsList(ingredientsList=' + toString(this.
|
|
2041
|
+
return 'IngredientsList(ingredientsList=' + toString(this.i1g_1) + ', recipeSection=' + this.j1g_1 + ')';
|
|
2014
2042
|
};
|
|
2015
2043
|
protoOf(IngredientsList).hashCode = function () {
|
|
2016
|
-
var result = this.
|
|
2017
|
-
result = imul(result, 31) + (this.
|
|
2044
|
+
var result = this.i1g_1 == null ? 0 : hashCode(this.i1g_1);
|
|
2045
|
+
result = imul(result, 31) + (this.j1g_1 == null ? 0 : getStringHashCode(this.j1g_1)) | 0;
|
|
2018
2046
|
return result;
|
|
2019
2047
|
};
|
|
2020
2048
|
protoOf(IngredientsList).equals = function (other) {
|
|
@@ -2022,9 +2050,9 @@
|
|
|
2022
2050
|
return true;
|
|
2023
2051
|
if (!(other instanceof IngredientsList))
|
|
2024
2052
|
return false;
|
|
2025
|
-
if (!equals(this.
|
|
2053
|
+
if (!equals(this.i1g_1, other.i1g_1))
|
|
2026
2054
|
return false;
|
|
2027
|
-
if (!(this.
|
|
2055
|
+
if (!(this.j1g_1 == other.j1g_1))
|
|
2028
2056
|
return false;
|
|
2029
2057
|
return true;
|
|
2030
2058
|
};
|
|
@@ -2046,45 +2074,45 @@
|
|
|
2046
2074
|
tmp0_serialDesc.rs('template', true);
|
|
2047
2075
|
tmp0_serialDesc.rs('text', true);
|
|
2048
2076
|
tmp0_serialDesc.rs('unit', true);
|
|
2049
|
-
this.
|
|
2077
|
+
this.i1i_1 = tmp0_serialDesc;
|
|
2050
2078
|
}
|
|
2051
|
-
protoOf($serializer_5).
|
|
2052
|
-
var tmp0_desc = this.
|
|
2079
|
+
protoOf($serializer_5).j1i = function (encoder, value) {
|
|
2080
|
+
var tmp0_desc = this.i1i_1;
|
|
2053
2081
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
2054
|
-
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.
|
|
2055
|
-
tmp1_output.an(tmp0_desc, 0, $serializer_getInstance_6(), value.
|
|
2082
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.k1g_1 == null)) {
|
|
2083
|
+
tmp1_output.an(tmp0_desc, 0, $serializer_getInstance_6(), value.k1g_1);
|
|
2056
2084
|
}
|
|
2057
|
-
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.
|
|
2058
|
-
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
2085
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.l1g_1 == null)) {
|
|
2086
|
+
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.l1g_1);
|
|
2059
2087
|
}
|
|
2060
|
-
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.
|
|
2061
|
-
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
2088
|
+
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.m1g_1 == null)) {
|
|
2089
|
+
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.m1g_1);
|
|
2062
2090
|
}
|
|
2063
|
-
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.
|
|
2064
|
-
tmp1_output.an(tmp0_desc, 3, BooleanSerializer_getInstance(), value.
|
|
2091
|
+
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.n1g_1 == null)) {
|
|
2092
|
+
tmp1_output.an(tmp0_desc, 3, BooleanSerializer_getInstance(), value.n1g_1);
|
|
2065
2093
|
}
|
|
2066
|
-
if (tmp1_output.en(tmp0_desc, 4) ? true : !(value.
|
|
2067
|
-
tmp1_output.an(tmp0_desc, 4, StringSerializer_getInstance(), value.
|
|
2094
|
+
if (tmp1_output.en(tmp0_desc, 4) ? true : !(value.o1g_1 == null)) {
|
|
2095
|
+
tmp1_output.an(tmp0_desc, 4, StringSerializer_getInstance(), value.o1g_1);
|
|
2068
2096
|
}
|
|
2069
|
-
if (tmp1_output.en(tmp0_desc, 5) ? true : !(value.
|
|
2070
|
-
tmp1_output.an(tmp0_desc, 5, StringSerializer_getInstance(), value.
|
|
2097
|
+
if (tmp1_output.en(tmp0_desc, 5) ? true : !(value.p1g_1 == null)) {
|
|
2098
|
+
tmp1_output.an(tmp0_desc, 5, StringSerializer_getInstance(), value.p1g_1);
|
|
2071
2099
|
}
|
|
2072
|
-
if (tmp1_output.en(tmp0_desc, 6) ? true : !(value.
|
|
2073
|
-
tmp1_output.an(tmp0_desc, 6, StringSerializer_getInstance(), value.
|
|
2100
|
+
if (tmp1_output.en(tmp0_desc, 6) ? true : !(value.q1g_1 == null)) {
|
|
2101
|
+
tmp1_output.an(tmp0_desc, 6, StringSerializer_getInstance(), value.q1g_1);
|
|
2074
2102
|
}
|
|
2075
|
-
if (tmp1_output.en(tmp0_desc, 7) ? true : !(value.
|
|
2076
|
-
tmp1_output.an(tmp0_desc, 7, StringSerializer_getInstance(), value.
|
|
2103
|
+
if (tmp1_output.en(tmp0_desc, 7) ? true : !(value.r1g_1 == null)) {
|
|
2104
|
+
tmp1_output.an(tmp0_desc, 7, StringSerializer_getInstance(), value.r1g_1);
|
|
2077
2105
|
}
|
|
2078
|
-
if (tmp1_output.en(tmp0_desc, 8) ? true : !(value.
|
|
2079
|
-
tmp1_output.an(tmp0_desc, 8, StringSerializer_getInstance(), value.
|
|
2106
|
+
if (tmp1_output.en(tmp0_desc, 8) ? true : !(value.s1g_1 == null)) {
|
|
2107
|
+
tmp1_output.an(tmp0_desc, 8, StringSerializer_getInstance(), value.s1g_1);
|
|
2080
2108
|
}
|
|
2081
2109
|
tmp1_output.jl(tmp0_desc);
|
|
2082
2110
|
};
|
|
2083
2111
|
protoOf($serializer_5).li = function (encoder, value) {
|
|
2084
|
-
return this.
|
|
2112
|
+
return this.j1i(encoder, value instanceof IngredientItem ? value : THROW_CCE());
|
|
2085
2113
|
};
|
|
2086
2114
|
protoOf($serializer_5).mi = function (decoder) {
|
|
2087
|
-
var tmp0_desc = this.
|
|
2115
|
+
var tmp0_desc = this.i1i_1;
|
|
2088
2116
|
var tmp1_flag = true;
|
|
2089
2117
|
var tmp2_index = 0;
|
|
2090
2118
|
var tmp3_bitMask0 = 0;
|
|
@@ -2168,7 +2196,7 @@
|
|
|
2168
2196
|
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);
|
|
2169
2197
|
};
|
|
2170
2198
|
protoOf($serializer_5).ki = function () {
|
|
2171
|
-
return this.
|
|
2199
|
+
return this.i1i_1;
|
|
2172
2200
|
};
|
|
2173
2201
|
protoOf($serializer_5).ts = function () {
|
|
2174
2202
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2184,44 +2212,44 @@
|
|
|
2184
2212
|
}
|
|
2185
2213
|
function IngredientItem_init_$Init$(seen0, amount, ingredientId, name, optional, prefix, suffix, template, text, unit, serializationConstructorMarker, $this) {
|
|
2186
2214
|
if (!(0 === (0 & seen0))) {
|
|
2187
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_5().
|
|
2215
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_5().i1i_1);
|
|
2188
2216
|
}
|
|
2189
2217
|
if (0 === (seen0 & 1))
|
|
2190
|
-
$this.
|
|
2218
|
+
$this.k1g_1 = null;
|
|
2191
2219
|
else
|
|
2192
|
-
$this.
|
|
2220
|
+
$this.k1g_1 = amount;
|
|
2193
2221
|
if (0 === (seen0 & 2))
|
|
2194
|
-
$this.
|
|
2222
|
+
$this.l1g_1 = null;
|
|
2195
2223
|
else
|
|
2196
|
-
$this.
|
|
2224
|
+
$this.l1g_1 = ingredientId;
|
|
2197
2225
|
if (0 === (seen0 & 4))
|
|
2198
|
-
$this.
|
|
2226
|
+
$this.m1g_1 = null;
|
|
2199
2227
|
else
|
|
2200
|
-
$this.
|
|
2228
|
+
$this.m1g_1 = name;
|
|
2201
2229
|
if (0 === (seen0 & 8))
|
|
2202
|
-
$this.
|
|
2230
|
+
$this.n1g_1 = null;
|
|
2203
2231
|
else
|
|
2204
|
-
$this.
|
|
2232
|
+
$this.n1g_1 = optional;
|
|
2205
2233
|
if (0 === (seen0 & 16))
|
|
2206
|
-
$this.
|
|
2234
|
+
$this.o1g_1 = null;
|
|
2207
2235
|
else
|
|
2208
|
-
$this.
|
|
2236
|
+
$this.o1g_1 = prefix;
|
|
2209
2237
|
if (0 === (seen0 & 32))
|
|
2210
|
-
$this.
|
|
2238
|
+
$this.p1g_1 = null;
|
|
2211
2239
|
else
|
|
2212
|
-
$this.
|
|
2240
|
+
$this.p1g_1 = suffix;
|
|
2213
2241
|
if (0 === (seen0 & 64))
|
|
2214
|
-
$this.
|
|
2242
|
+
$this.q1g_1 = null;
|
|
2215
2243
|
else
|
|
2216
|
-
$this.
|
|
2244
|
+
$this.q1g_1 = template;
|
|
2217
2245
|
if (0 === (seen0 & 128))
|
|
2218
|
-
$this.
|
|
2246
|
+
$this.r1g_1 = null;
|
|
2219
2247
|
else
|
|
2220
|
-
$this.
|
|
2248
|
+
$this.r1g_1 = text;
|
|
2221
2249
|
if (0 === (seen0 & 256))
|
|
2222
|
-
$this.
|
|
2250
|
+
$this.s1g_1 = null;
|
|
2223
2251
|
else
|
|
2224
|
-
$this.
|
|
2252
|
+
$this.s1g_1 = unit;
|
|
2225
2253
|
return $this;
|
|
2226
2254
|
}
|
|
2227
2255
|
function IngredientItem_init_$Create$(seen0, amount, ingredientId, name, optional, prefix, suffix, template, text, unit, serializationConstructorMarker) {
|
|
@@ -2237,44 +2265,44 @@
|
|
|
2237
2265
|
template = template === VOID ? null : template;
|
|
2238
2266
|
text = text === VOID ? null : text;
|
|
2239
2267
|
unit = unit === VOID ? null : unit;
|
|
2240
|
-
this.
|
|
2241
|
-
this.
|
|
2242
|
-
this.
|
|
2243
|
-
this.
|
|
2244
|
-
this.
|
|
2245
|
-
this.
|
|
2246
|
-
this.
|
|
2247
|
-
this.
|
|
2248
|
-
this.
|
|
2249
|
-
}
|
|
2250
|
-
protoOf(IngredientItem).
|
|
2268
|
+
this.k1g_1 = amount;
|
|
2269
|
+
this.l1g_1 = ingredientId;
|
|
2270
|
+
this.m1g_1 = name;
|
|
2271
|
+
this.n1g_1 = optional;
|
|
2272
|
+
this.o1g_1 = prefix;
|
|
2273
|
+
this.p1g_1 = suffix;
|
|
2274
|
+
this.q1g_1 = template;
|
|
2275
|
+
this.r1g_1 = text;
|
|
2276
|
+
this.s1g_1 = unit;
|
|
2277
|
+
}
|
|
2278
|
+
protoOf(IngredientItem).k1i = function (amount, ingredientId, name, optional, prefix, suffix, template, text, unit) {
|
|
2251
2279
|
return new IngredientItem(amount, ingredientId, name, optional, prefix, suffix, template, text, unit);
|
|
2252
2280
|
};
|
|
2253
|
-
protoOf(IngredientItem).
|
|
2254
|
-
amount = amount === VOID ? this.
|
|
2255
|
-
ingredientId = ingredientId === VOID ? this.
|
|
2256
|
-
name = name === VOID ? this.
|
|
2257
|
-
optional = optional === VOID ? this.
|
|
2258
|
-
prefix = prefix === VOID ? this.
|
|
2259
|
-
suffix = suffix === VOID ? this.
|
|
2260
|
-
template = template === VOID ? this.
|
|
2261
|
-
text = text === VOID ? this.
|
|
2262
|
-
unit = unit === VOID ? this.
|
|
2263
|
-
return $super === VOID ? this.
|
|
2281
|
+
protoOf(IngredientItem).t1g = function (amount, ingredientId, name, optional, prefix, suffix, template, text, unit, $super) {
|
|
2282
|
+
amount = amount === VOID ? this.k1g_1 : amount;
|
|
2283
|
+
ingredientId = ingredientId === VOID ? this.l1g_1 : ingredientId;
|
|
2284
|
+
name = name === VOID ? this.m1g_1 : name;
|
|
2285
|
+
optional = optional === VOID ? this.n1g_1 : optional;
|
|
2286
|
+
prefix = prefix === VOID ? this.o1g_1 : prefix;
|
|
2287
|
+
suffix = suffix === VOID ? this.p1g_1 : suffix;
|
|
2288
|
+
template = template === VOID ? this.q1g_1 : template;
|
|
2289
|
+
text = text === VOID ? this.r1g_1 : text;
|
|
2290
|
+
unit = unit === VOID ? this.s1g_1 : unit;
|
|
2291
|
+
return $super === VOID ? this.k1i(amount, ingredientId, name, optional, prefix, suffix, template, text, unit) : $super.k1i.call(this, amount, ingredientId, name, optional, prefix, suffix, template, text, unit);
|
|
2264
2292
|
};
|
|
2265
2293
|
protoOf(IngredientItem).toString = function () {
|
|
2266
|
-
return 'IngredientItem(amount=' + toString(this.
|
|
2294
|
+
return 'IngredientItem(amount=' + toString(this.k1g_1) + ', ingredientId=' + this.l1g_1 + ', name=' + this.m1g_1 + ', optional=' + this.n1g_1 + ', prefix=' + this.o1g_1 + ', suffix=' + this.p1g_1 + ', template=' + this.q1g_1 + ', text=' + this.r1g_1 + ', unit=' + this.s1g_1 + ')';
|
|
2267
2295
|
};
|
|
2268
2296
|
protoOf(IngredientItem).hashCode = function () {
|
|
2269
|
-
var result = this.
|
|
2270
|
-
result = imul(result, 31) + (this.
|
|
2271
|
-
result = imul(result, 31) + (this.k1g_1 == null ? 0 : getStringHashCode(this.k1g_1)) | 0;
|
|
2272
|
-
result = imul(result, 31) + (this.l1g_1 == null ? 0 : getBooleanHashCode(this.l1g_1)) | 0;
|
|
2297
|
+
var result = this.k1g_1 == null ? 0 : this.k1g_1.hashCode();
|
|
2298
|
+
result = imul(result, 31) + (this.l1g_1 == null ? 0 : getStringHashCode(this.l1g_1)) | 0;
|
|
2273
2299
|
result = imul(result, 31) + (this.m1g_1 == null ? 0 : getStringHashCode(this.m1g_1)) | 0;
|
|
2274
|
-
result = imul(result, 31) + (this.n1g_1 == null ? 0 :
|
|
2300
|
+
result = imul(result, 31) + (this.n1g_1 == null ? 0 : getBooleanHashCode(this.n1g_1)) | 0;
|
|
2275
2301
|
result = imul(result, 31) + (this.o1g_1 == null ? 0 : getStringHashCode(this.o1g_1)) | 0;
|
|
2276
2302
|
result = imul(result, 31) + (this.p1g_1 == null ? 0 : getStringHashCode(this.p1g_1)) | 0;
|
|
2277
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;
|
|
2278
2306
|
return result;
|
|
2279
2307
|
};
|
|
2280
2308
|
protoOf(IngredientItem).equals = function (other) {
|
|
@@ -2282,11 +2310,7 @@
|
|
|
2282
2310
|
return true;
|
|
2283
2311
|
if (!(other instanceof IngredientItem))
|
|
2284
2312
|
return false;
|
|
2285
|
-
if (!equals(this.
|
|
2286
|
-
return false;
|
|
2287
|
-
if (!(this.j1g_1 == other.j1g_1))
|
|
2288
|
-
return false;
|
|
2289
|
-
if (!(this.k1g_1 == other.k1g_1))
|
|
2313
|
+
if (!equals(this.k1g_1, other.k1g_1))
|
|
2290
2314
|
return false;
|
|
2291
2315
|
if (!(this.l1g_1 == other.l1g_1))
|
|
2292
2316
|
return false;
|
|
@@ -2300,6 +2324,10 @@
|
|
|
2300
2324
|
return false;
|
|
2301
2325
|
if (!(this.q1g_1 == other.q1g_1))
|
|
2302
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;
|
|
2303
2331
|
return true;
|
|
2304
2332
|
};
|
|
2305
2333
|
function Companion_4() {
|
|
@@ -2313,24 +2341,24 @@
|
|
|
2313
2341
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Range', this, 2);
|
|
2314
2342
|
tmp0_serialDesc.rs('max', true);
|
|
2315
2343
|
tmp0_serialDesc.rs('min', true);
|
|
2316
|
-
this.
|
|
2344
|
+
this.l1i_1 = tmp0_serialDesc;
|
|
2317
2345
|
}
|
|
2318
|
-
protoOf($serializer_6).
|
|
2319
|
-
var tmp0_desc = this.
|
|
2346
|
+
protoOf($serializer_6).m1i = function (encoder, value) {
|
|
2347
|
+
var tmp0_desc = this.l1i_1;
|
|
2320
2348
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
2321
|
-
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.
|
|
2322
|
-
tmp1_output.an(tmp0_desc, 0, DoubleSerializer_getInstance(), value.
|
|
2349
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.n1i_1 == null)) {
|
|
2350
|
+
tmp1_output.an(tmp0_desc, 0, DoubleSerializer_getInstance(), value.n1i_1);
|
|
2323
2351
|
}
|
|
2324
|
-
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.
|
|
2325
|
-
tmp1_output.an(tmp0_desc, 1, DoubleSerializer_getInstance(), value.
|
|
2352
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.o1i_1 == null)) {
|
|
2353
|
+
tmp1_output.an(tmp0_desc, 1, DoubleSerializer_getInstance(), value.o1i_1);
|
|
2326
2354
|
}
|
|
2327
2355
|
tmp1_output.jl(tmp0_desc);
|
|
2328
2356
|
};
|
|
2329
2357
|
protoOf($serializer_6).li = function (encoder, value) {
|
|
2330
|
-
return this.
|
|
2358
|
+
return this.m1i(encoder, value instanceof Range ? value : THROW_CCE());
|
|
2331
2359
|
};
|
|
2332
2360
|
protoOf($serializer_6).mi = function (decoder) {
|
|
2333
|
-
var tmp0_desc = this.
|
|
2361
|
+
var tmp0_desc = this.l1i_1;
|
|
2334
2362
|
var tmp1_flag = true;
|
|
2335
2363
|
var tmp2_index = 0;
|
|
2336
2364
|
var tmp3_bitMask0 = 0;
|
|
@@ -2365,7 +2393,7 @@
|
|
|
2365
2393
|
return Range_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
2366
2394
|
};
|
|
2367
2395
|
protoOf($serializer_6).ki = function () {
|
|
2368
|
-
return this.
|
|
2396
|
+
return this.l1i_1;
|
|
2369
2397
|
};
|
|
2370
2398
|
protoOf($serializer_6).ts = function () {
|
|
2371
2399
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2381,16 +2409,16 @@
|
|
|
2381
2409
|
}
|
|
2382
2410
|
function Range_init_$Init$(seen0, max, min, serializationConstructorMarker, $this) {
|
|
2383
2411
|
if (!(0 === (0 & seen0))) {
|
|
2384
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_6().
|
|
2412
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_6().l1i_1);
|
|
2385
2413
|
}
|
|
2386
2414
|
if (0 === (seen0 & 1))
|
|
2387
|
-
$this.
|
|
2415
|
+
$this.n1i_1 = null;
|
|
2388
2416
|
else
|
|
2389
|
-
$this.
|
|
2417
|
+
$this.n1i_1 = max;
|
|
2390
2418
|
if (0 === (seen0 & 2))
|
|
2391
|
-
$this.
|
|
2419
|
+
$this.o1i_1 = null;
|
|
2392
2420
|
else
|
|
2393
|
-
$this.
|
|
2421
|
+
$this.o1i_1 = min;
|
|
2394
2422
|
return $this;
|
|
2395
2423
|
}
|
|
2396
2424
|
function Range_init_$Create$(seen0, max, min, serializationConstructorMarker) {
|
|
@@ -2399,15 +2427,15 @@
|
|
|
2399
2427
|
function Range(max, min) {
|
|
2400
2428
|
max = max === VOID ? null : max;
|
|
2401
2429
|
min = min === VOID ? null : min;
|
|
2402
|
-
this.
|
|
2403
|
-
this.
|
|
2430
|
+
this.n1i_1 = max;
|
|
2431
|
+
this.o1i_1 = min;
|
|
2404
2432
|
}
|
|
2405
2433
|
protoOf(Range).toString = function () {
|
|
2406
|
-
return 'Range(max=' + this.
|
|
2434
|
+
return 'Range(max=' + this.n1i_1 + ', min=' + this.o1i_1 + ')';
|
|
2407
2435
|
};
|
|
2408
2436
|
protoOf(Range).hashCode = function () {
|
|
2409
|
-
var result = this.
|
|
2410
|
-
result = imul(result, 31) + (this.
|
|
2437
|
+
var result = this.n1i_1 == null ? 0 : getNumberHashCode(this.n1i_1);
|
|
2438
|
+
result = imul(result, 31) + (this.o1i_1 == null ? 0 : getNumberHashCode(this.o1i_1)) | 0;
|
|
2411
2439
|
return result;
|
|
2412
2440
|
};
|
|
2413
2441
|
protoOf(Range).equals = function (other) {
|
|
@@ -2415,9 +2443,9 @@
|
|
|
2415
2443
|
return true;
|
|
2416
2444
|
if (!(other instanceof Range))
|
|
2417
2445
|
return false;
|
|
2418
|
-
if (!equals(this.
|
|
2446
|
+
if (!equals(this.n1i_1, other.n1i_1))
|
|
2419
2447
|
return false;
|
|
2420
|
-
if (!equals(this.
|
|
2448
|
+
if (!equals(this.o1i_1, other.o1i_1))
|
|
2421
2449
|
return false;
|
|
2422
2450
|
return true;
|
|
2423
2451
|
};
|
|
@@ -2431,7 +2459,7 @@
|
|
|
2431
2459
|
// Inline function 'kotlin.arrayOf' call
|
|
2432
2460
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2433
2461
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2434
|
-
tmp.
|
|
2462
|
+
tmp.p1i_1 = [null, null, lazy(tmp_0, Instruction$Companion$$childSerializers$_anonymous__sbbefw), null];
|
|
2435
2463
|
}
|
|
2436
2464
|
var Companion_instance_6;
|
|
2437
2465
|
function Companion_getInstance_5() {
|
|
@@ -2446,29 +2474,29 @@
|
|
|
2446
2474
|
tmp0_serialDesc.rs('descriptionTemplate', true);
|
|
2447
2475
|
tmp0_serialDesc.rs('images', true);
|
|
2448
2476
|
tmp0_serialDesc.rs('stepNumber', true);
|
|
2449
|
-
this.
|
|
2477
|
+
this.q1i_1 = tmp0_serialDesc;
|
|
2450
2478
|
}
|
|
2451
|
-
protoOf($serializer_7).
|
|
2452
|
-
var tmp0_desc = this.
|
|
2479
|
+
protoOf($serializer_7).r1i = function (encoder, value) {
|
|
2480
|
+
var tmp0_desc = this.q1i_1;
|
|
2453
2481
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
2454
|
-
var tmp2_cached = Companion_getInstance_5().
|
|
2455
|
-
tmp1_output.wm(tmp0_desc, 0, value.
|
|
2456
|
-
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.
|
|
2457
|
-
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
2482
|
+
var tmp2_cached = Companion_getInstance_5().p1i_1;
|
|
2483
|
+
tmp1_output.wm(tmp0_desc, 0, value.u1g_1);
|
|
2484
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.v1g_1 == null)) {
|
|
2485
|
+
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.v1g_1);
|
|
2458
2486
|
}
|
|
2459
|
-
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.
|
|
2460
|
-
tmp1_output.an(tmp0_desc, 2, tmp2_cached[2].h2(), value.
|
|
2487
|
+
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.w1g_1 == null)) {
|
|
2488
|
+
tmp1_output.an(tmp0_desc, 2, tmp2_cached[2].h2(), value.w1g_1);
|
|
2461
2489
|
}
|
|
2462
|
-
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.
|
|
2463
|
-
tmp1_output.an(tmp0_desc, 3, DoubleSerializer_getInstance(), value.
|
|
2490
|
+
if (tmp1_output.en(tmp0_desc, 3) ? true : !(value.x1g_1 == null)) {
|
|
2491
|
+
tmp1_output.an(tmp0_desc, 3, DoubleSerializer_getInstance(), value.x1g_1);
|
|
2464
2492
|
}
|
|
2465
2493
|
tmp1_output.jl(tmp0_desc);
|
|
2466
2494
|
};
|
|
2467
2495
|
protoOf($serializer_7).li = function (encoder, value) {
|
|
2468
|
-
return this.
|
|
2496
|
+
return this.r1i(encoder, value instanceof Instruction ? value : THROW_CCE());
|
|
2469
2497
|
};
|
|
2470
2498
|
protoOf($serializer_7).mi = function (decoder) {
|
|
2471
|
-
var tmp0_desc = this.
|
|
2499
|
+
var tmp0_desc = this.q1i_1;
|
|
2472
2500
|
var tmp1_flag = true;
|
|
2473
2501
|
var tmp2_index = 0;
|
|
2474
2502
|
var tmp3_bitMask0 = 0;
|
|
@@ -2477,7 +2505,7 @@
|
|
|
2477
2505
|
var tmp6_local2 = null;
|
|
2478
2506
|
var tmp7_local3 = null;
|
|
2479
2507
|
var tmp8_input = decoder.il(tmp0_desc);
|
|
2480
|
-
var tmp9_cached = Companion_getInstance_5().
|
|
2508
|
+
var tmp9_cached = Companion_getInstance_5().p1i_1;
|
|
2481
2509
|
if (tmp8_input.yl()) {
|
|
2482
2510
|
tmp4_local0 = tmp8_input.sl(tmp0_desc, 0);
|
|
2483
2511
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -2518,10 +2546,10 @@
|
|
|
2518
2546
|
return Instruction_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
2519
2547
|
};
|
|
2520
2548
|
protoOf($serializer_7).ki = function () {
|
|
2521
|
-
return this.
|
|
2549
|
+
return this.q1i_1;
|
|
2522
2550
|
};
|
|
2523
2551
|
protoOf($serializer_7).ts = function () {
|
|
2524
|
-
var tmp0_cached = Companion_getInstance_5().
|
|
2552
|
+
var tmp0_cached = Companion_getInstance_5().p1i_1;
|
|
2525
2553
|
// Inline function 'kotlin.arrayOf' call
|
|
2526
2554
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2527
2555
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2535,21 +2563,21 @@
|
|
|
2535
2563
|
}
|
|
2536
2564
|
function Instruction_init_$Init$(seen0, description, descriptionTemplate, images, stepNumber, serializationConstructorMarker, $this) {
|
|
2537
2565
|
if (!(1 === (1 & seen0))) {
|
|
2538
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_7().
|
|
2566
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_7().q1i_1);
|
|
2539
2567
|
}
|
|
2540
|
-
$this.
|
|
2568
|
+
$this.u1g_1 = description;
|
|
2541
2569
|
if (0 === (seen0 & 2))
|
|
2542
|
-
$this.
|
|
2570
|
+
$this.v1g_1 = null;
|
|
2543
2571
|
else
|
|
2544
|
-
$this.
|
|
2572
|
+
$this.v1g_1 = descriptionTemplate;
|
|
2545
2573
|
if (0 === (seen0 & 4))
|
|
2546
|
-
$this.
|
|
2574
|
+
$this.w1g_1 = null;
|
|
2547
2575
|
else
|
|
2548
|
-
$this.
|
|
2576
|
+
$this.w1g_1 = images;
|
|
2549
2577
|
if (0 === (seen0 & 8))
|
|
2550
|
-
$this.
|
|
2578
|
+
$this.x1g_1 = null;
|
|
2551
2579
|
else
|
|
2552
|
-
$this.
|
|
2580
|
+
$this.x1g_1 = stepNumber;
|
|
2553
2581
|
return $this;
|
|
2554
2582
|
}
|
|
2555
2583
|
function Instruction_init_$Create$(seen0, description, descriptionTemplate, images, stepNumber, serializationConstructorMarker) {
|
|
@@ -2560,29 +2588,29 @@
|
|
|
2560
2588
|
descriptionTemplate = descriptionTemplate === VOID ? null : descriptionTemplate;
|
|
2561
2589
|
images = images === VOID ? null : images;
|
|
2562
2590
|
stepNumber = stepNumber === VOID ? null : stepNumber;
|
|
2563
|
-
this.
|
|
2564
|
-
this.
|
|
2565
|
-
this.
|
|
2566
|
-
this.
|
|
2591
|
+
this.u1g_1 = description;
|
|
2592
|
+
this.v1g_1 = descriptionTemplate;
|
|
2593
|
+
this.w1g_1 = images;
|
|
2594
|
+
this.x1g_1 = stepNumber;
|
|
2567
2595
|
}
|
|
2568
|
-
protoOf(Instruction).
|
|
2596
|
+
protoOf(Instruction).s1i = function (description, descriptionTemplate, images, stepNumber) {
|
|
2569
2597
|
return new Instruction(description, descriptionTemplate, images, stepNumber);
|
|
2570
2598
|
};
|
|
2571
|
-
protoOf(Instruction).
|
|
2572
|
-
description = description === VOID ? this.
|
|
2573
|
-
descriptionTemplate = descriptionTemplate === VOID ? this.
|
|
2574
|
-
images = images === VOID ? this.
|
|
2575
|
-
stepNumber = stepNumber === VOID ? this.
|
|
2576
|
-
return $super === VOID ? this.
|
|
2599
|
+
protoOf(Instruction).y1g = function (description, descriptionTemplate, images, stepNumber, $super) {
|
|
2600
|
+
description = description === VOID ? this.u1g_1 : description;
|
|
2601
|
+
descriptionTemplate = descriptionTemplate === VOID ? this.v1g_1 : descriptionTemplate;
|
|
2602
|
+
images = images === VOID ? this.w1g_1 : images;
|
|
2603
|
+
stepNumber = stepNumber === VOID ? this.x1g_1 : stepNumber;
|
|
2604
|
+
return $super === VOID ? this.s1i(description, descriptionTemplate, images, stepNumber) : $super.s1i.call(this, description, descriptionTemplate, images, stepNumber);
|
|
2577
2605
|
};
|
|
2578
2606
|
protoOf(Instruction).toString = function () {
|
|
2579
|
-
return 'Instruction(description=' + this.
|
|
2607
|
+
return 'Instruction(description=' + this.u1g_1 + ', descriptionTemplate=' + this.v1g_1 + ', images=' + toString(this.w1g_1) + ', stepNumber=' + this.x1g_1 + ')';
|
|
2580
2608
|
};
|
|
2581
2609
|
protoOf(Instruction).hashCode = function () {
|
|
2582
|
-
var result = getStringHashCode(this.
|
|
2583
|
-
result = imul(result, 31) + (this.
|
|
2584
|
-
result = imul(result, 31) + (this.
|
|
2585
|
-
result = imul(result, 31) + (this.
|
|
2610
|
+
var result = getStringHashCode(this.u1g_1);
|
|
2611
|
+
result = imul(result, 31) + (this.v1g_1 == null ? 0 : getStringHashCode(this.v1g_1)) | 0;
|
|
2612
|
+
result = imul(result, 31) + (this.w1g_1 == null ? 0 : hashCode(this.w1g_1)) | 0;
|
|
2613
|
+
result = imul(result, 31) + (this.x1g_1 == null ? 0 : getNumberHashCode(this.x1g_1)) | 0;
|
|
2586
2614
|
return result;
|
|
2587
2615
|
};
|
|
2588
2616
|
protoOf(Instruction).equals = function (other) {
|
|
@@ -2590,13 +2618,13 @@
|
|
|
2590
2618
|
return true;
|
|
2591
2619
|
if (!(other instanceof Instruction))
|
|
2592
2620
|
return false;
|
|
2593
|
-
if (!(this.
|
|
2621
|
+
if (!(this.u1g_1 === other.u1g_1))
|
|
2594
2622
|
return false;
|
|
2595
|
-
if (!(this.
|
|
2623
|
+
if (!(this.v1g_1 == other.v1g_1))
|
|
2596
2624
|
return false;
|
|
2597
|
-
if (!equals(this.
|
|
2625
|
+
if (!equals(this.w1g_1, other.w1g_1))
|
|
2598
2626
|
return false;
|
|
2599
|
-
if (!equals(this.
|
|
2627
|
+
if (!equals(this.x1g_1, other.x1g_1))
|
|
2600
2628
|
return false;
|
|
2601
2629
|
return true;
|
|
2602
2630
|
};
|
|
@@ -2606,25 +2634,25 @@
|
|
|
2606
2634
|
tmp0_serialDesc.rs('amount', true);
|
|
2607
2635
|
tmp0_serialDesc.rs('text', true);
|
|
2608
2636
|
tmp0_serialDesc.rs('unit', false);
|
|
2609
|
-
this.
|
|
2637
|
+
this.t1i_1 = tmp0_serialDesc;
|
|
2610
2638
|
}
|
|
2611
|
-
protoOf($serializer_8).
|
|
2612
|
-
var tmp0_desc = this.
|
|
2639
|
+
protoOf($serializer_8).u1i = function (encoder, value) {
|
|
2640
|
+
var tmp0_desc = this.t1i_1;
|
|
2613
2641
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
2614
|
-
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.
|
|
2615
|
-
tmp1_output.an(tmp0_desc, 0, $serializer_getInstance_6(), value.
|
|
2642
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.v1i_1 == null)) {
|
|
2643
|
+
tmp1_output.an(tmp0_desc, 0, $serializer_getInstance_6(), value.v1i_1);
|
|
2616
2644
|
}
|
|
2617
|
-
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.
|
|
2618
|
-
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
2645
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.w1i_1 == null)) {
|
|
2646
|
+
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.w1i_1);
|
|
2619
2647
|
}
|
|
2620
|
-
tmp1_output.wm(tmp0_desc, 2, value.
|
|
2648
|
+
tmp1_output.wm(tmp0_desc, 2, value.x1i_1);
|
|
2621
2649
|
tmp1_output.jl(tmp0_desc);
|
|
2622
2650
|
};
|
|
2623
2651
|
protoOf($serializer_8).li = function (encoder, value) {
|
|
2624
|
-
return this.
|
|
2652
|
+
return this.u1i(encoder, value instanceof Serves ? value : THROW_CCE());
|
|
2625
2653
|
};
|
|
2626
2654
|
protoOf($serializer_8).mi = function (decoder) {
|
|
2627
|
-
var tmp0_desc = this.
|
|
2655
|
+
var tmp0_desc = this.t1i_1;
|
|
2628
2656
|
var tmp1_flag = true;
|
|
2629
2657
|
var tmp2_index = 0;
|
|
2630
2658
|
var tmp3_bitMask0 = 0;
|
|
@@ -2666,7 +2694,7 @@
|
|
|
2666
2694
|
return Serves_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
2667
2695
|
};
|
|
2668
2696
|
protoOf($serializer_8).ki = function () {
|
|
2669
|
-
return this.
|
|
2697
|
+
return this.t1i_1;
|
|
2670
2698
|
};
|
|
2671
2699
|
protoOf($serializer_8).ts = function () {
|
|
2672
2700
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2682,17 +2710,17 @@
|
|
|
2682
2710
|
}
|
|
2683
2711
|
function Serves_init_$Init$(seen0, amount, text, unit, serializationConstructorMarker, $this) {
|
|
2684
2712
|
if (!(4 === (4 & seen0))) {
|
|
2685
|
-
throwMissingFieldException(seen0, 4, $serializer_getInstance_8().
|
|
2713
|
+
throwMissingFieldException(seen0, 4, $serializer_getInstance_8().t1i_1);
|
|
2686
2714
|
}
|
|
2687
2715
|
if (0 === (seen0 & 1))
|
|
2688
|
-
$this.
|
|
2716
|
+
$this.v1i_1 = null;
|
|
2689
2717
|
else
|
|
2690
|
-
$this.
|
|
2718
|
+
$this.v1i_1 = amount;
|
|
2691
2719
|
if (0 === (seen0 & 2))
|
|
2692
|
-
$this.
|
|
2720
|
+
$this.w1i_1 = null;
|
|
2693
2721
|
else
|
|
2694
|
-
$this.
|
|
2695
|
-
$this.
|
|
2722
|
+
$this.w1i_1 = text;
|
|
2723
|
+
$this.x1i_1 = unit;
|
|
2696
2724
|
return $this;
|
|
2697
2725
|
}
|
|
2698
2726
|
function Serves_init_$Create$(seen0, amount, text, unit, serializationConstructorMarker) {
|
|
@@ -2701,12 +2729,12 @@
|
|
|
2701
2729
|
function Serves() {
|
|
2702
2730
|
}
|
|
2703
2731
|
protoOf(Serves).toString = function () {
|
|
2704
|
-
return 'Serves(amount=' + toString(this.
|
|
2732
|
+
return 'Serves(amount=' + toString(this.v1i_1) + ', text=' + this.w1i_1 + ', unit=' + this.x1i_1 + ')';
|
|
2705
2733
|
};
|
|
2706
2734
|
protoOf(Serves).hashCode = function () {
|
|
2707
|
-
var result = this.
|
|
2708
|
-
result = imul(result, 31) + (this.
|
|
2709
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2735
|
+
var result = this.v1i_1 == null ? 0 : this.v1i_1.hashCode();
|
|
2736
|
+
result = imul(result, 31) + (this.w1i_1 == null ? 0 : getStringHashCode(this.w1i_1)) | 0;
|
|
2737
|
+
result = imul(result, 31) + getStringHashCode(this.x1i_1) | 0;
|
|
2710
2738
|
return result;
|
|
2711
2739
|
};
|
|
2712
2740
|
protoOf(Serves).equals = function (other) {
|
|
@@ -2714,11 +2742,11 @@
|
|
|
2714
2742
|
return true;
|
|
2715
2743
|
if (!(other instanceof Serves))
|
|
2716
2744
|
return false;
|
|
2717
|
-
if (!equals(this.
|
|
2745
|
+
if (!equals(this.v1i_1, other.v1i_1))
|
|
2718
2746
|
return false;
|
|
2719
|
-
if (!(this.
|
|
2747
|
+
if (!(this.w1i_1 == other.w1i_1))
|
|
2720
2748
|
return false;
|
|
2721
|
-
if (!(this.
|
|
2749
|
+
if (!(this.x1i_1 === other.x1i_1))
|
|
2722
2750
|
return false;
|
|
2723
2751
|
return true;
|
|
2724
2752
|
};
|
|
@@ -2734,27 +2762,27 @@
|
|
|
2734
2762
|
tmp0_serialDesc.rs('durationInMins', true);
|
|
2735
2763
|
tmp0_serialDesc.rs('qualifier', true);
|
|
2736
2764
|
tmp0_serialDesc.rs('text', true);
|
|
2737
|
-
this.
|
|
2765
|
+
this.y1i_1 = tmp0_serialDesc;
|
|
2738
2766
|
}
|
|
2739
|
-
protoOf($serializer_9).
|
|
2740
|
-
var tmp0_desc = this.
|
|
2767
|
+
protoOf($serializer_9).z1i = function (encoder, value) {
|
|
2768
|
+
var tmp0_desc = this.y1i_1;
|
|
2741
2769
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
2742
|
-
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.
|
|
2743
|
-
tmp1_output.an(tmp0_desc, 0, $serializer_getInstance_6(), value.
|
|
2770
|
+
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.a1j_1 == null)) {
|
|
2771
|
+
tmp1_output.an(tmp0_desc, 0, $serializer_getInstance_6(), value.a1j_1);
|
|
2744
2772
|
}
|
|
2745
|
-
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.
|
|
2746
|
-
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
2773
|
+
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.b1j_1 == null)) {
|
|
2774
|
+
tmp1_output.an(tmp0_desc, 1, StringSerializer_getInstance(), value.b1j_1);
|
|
2747
2775
|
}
|
|
2748
|
-
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.
|
|
2749
|
-
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
2776
|
+
if (tmp1_output.en(tmp0_desc, 2) ? true : !(value.c1j_1 == null)) {
|
|
2777
|
+
tmp1_output.an(tmp0_desc, 2, StringSerializer_getInstance(), value.c1j_1);
|
|
2750
2778
|
}
|
|
2751
2779
|
tmp1_output.jl(tmp0_desc);
|
|
2752
2780
|
};
|
|
2753
2781
|
protoOf($serializer_9).li = function (encoder, value) {
|
|
2754
|
-
return this.
|
|
2782
|
+
return this.z1i(encoder, value instanceof Timing ? value : THROW_CCE());
|
|
2755
2783
|
};
|
|
2756
2784
|
protoOf($serializer_9).mi = function (decoder) {
|
|
2757
|
-
var tmp0_desc = this.
|
|
2785
|
+
var tmp0_desc = this.y1i_1;
|
|
2758
2786
|
var tmp1_flag = true;
|
|
2759
2787
|
var tmp2_index = 0;
|
|
2760
2788
|
var tmp3_bitMask0 = 0;
|
|
@@ -2796,7 +2824,7 @@
|
|
|
2796
2824
|
return Timing_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
2797
2825
|
};
|
|
2798
2826
|
protoOf($serializer_9).ki = function () {
|
|
2799
|
-
return this.
|
|
2827
|
+
return this.y1i_1;
|
|
2800
2828
|
};
|
|
2801
2829
|
protoOf($serializer_9).ts = function () {
|
|
2802
2830
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2812,20 +2840,20 @@
|
|
|
2812
2840
|
}
|
|
2813
2841
|
function Timing_init_$Init$(seen0, durationInMins, qualifier, text, serializationConstructorMarker, $this) {
|
|
2814
2842
|
if (!(0 === (0 & seen0))) {
|
|
2815
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_9().
|
|
2843
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_9().y1i_1);
|
|
2816
2844
|
}
|
|
2817
2845
|
if (0 === (seen0 & 1))
|
|
2818
|
-
$this.
|
|
2846
|
+
$this.a1j_1 = null;
|
|
2819
2847
|
else
|
|
2820
|
-
$this.
|
|
2848
|
+
$this.a1j_1 = durationInMins;
|
|
2821
2849
|
if (0 === (seen0 & 2))
|
|
2822
|
-
$this.
|
|
2850
|
+
$this.b1j_1 = null;
|
|
2823
2851
|
else
|
|
2824
|
-
$this.
|
|
2852
|
+
$this.b1j_1 = qualifier;
|
|
2825
2853
|
if (0 === (seen0 & 4))
|
|
2826
|
-
$this.
|
|
2854
|
+
$this.c1j_1 = null;
|
|
2827
2855
|
else
|
|
2828
|
-
$this.
|
|
2856
|
+
$this.c1j_1 = text;
|
|
2829
2857
|
return $this;
|
|
2830
2858
|
}
|
|
2831
2859
|
function Timing_init_$Create$(seen0, durationInMins, qualifier, text, serializationConstructorMarker) {
|
|
@@ -2835,17 +2863,17 @@
|
|
|
2835
2863
|
durationInMins = durationInMins === VOID ? null : durationInMins;
|
|
2836
2864
|
qualifier = qualifier === VOID ? null : qualifier;
|
|
2837
2865
|
text = text === VOID ? null : text;
|
|
2838
|
-
this.
|
|
2839
|
-
this.
|
|
2840
|
-
this.
|
|
2866
|
+
this.a1j_1 = durationInMins;
|
|
2867
|
+
this.b1j_1 = qualifier;
|
|
2868
|
+
this.c1j_1 = text;
|
|
2841
2869
|
}
|
|
2842
2870
|
protoOf(Timing).toString = function () {
|
|
2843
|
-
return 'Timing(durationInMins=' + toString(this.
|
|
2871
|
+
return 'Timing(durationInMins=' + toString(this.a1j_1) + ', qualifier=' + this.b1j_1 + ', text=' + this.c1j_1 + ')';
|
|
2844
2872
|
};
|
|
2845
2873
|
protoOf(Timing).hashCode = function () {
|
|
2846
|
-
var result = this.
|
|
2847
|
-
result = imul(result, 31) + (this.
|
|
2848
|
-
result = imul(result, 31) + (this.
|
|
2874
|
+
var result = this.a1j_1 == null ? 0 : this.a1j_1.hashCode();
|
|
2875
|
+
result = imul(result, 31) + (this.b1j_1 == null ? 0 : getStringHashCode(this.b1j_1)) | 0;
|
|
2876
|
+
result = imul(result, 31) + (this.c1j_1 == null ? 0 : getStringHashCode(this.c1j_1)) | 0;
|
|
2849
2877
|
return result;
|
|
2850
2878
|
};
|
|
2851
2879
|
protoOf(Timing).equals = function (other) {
|
|
@@ -2853,29 +2881,29 @@
|
|
|
2853
2881
|
return true;
|
|
2854
2882
|
if (!(other instanceof Timing))
|
|
2855
2883
|
return false;
|
|
2856
|
-
if (!equals(this.
|
|
2884
|
+
if (!equals(this.a1j_1, other.a1j_1))
|
|
2857
2885
|
return false;
|
|
2858
|
-
if (!(this.
|
|
2886
|
+
if (!(this.b1j_1 == other.b1j_1))
|
|
2859
2887
|
return false;
|
|
2860
|
-
if (!(this.
|
|
2888
|
+
if (!(this.c1j_1 == other.c1j_1))
|
|
2861
2889
|
return false;
|
|
2862
2890
|
return true;
|
|
2863
2891
|
};
|
|
2864
2892
|
function ParsedTemplate(elements) {
|
|
2865
|
-
this.
|
|
2893
|
+
this.k1f_1 = elements;
|
|
2866
2894
|
}
|
|
2867
2895
|
protoOf(ParsedTemplate).toString = function () {
|
|
2868
|
-
return 'ParsedTemplate(elements=' + toString_0(this.
|
|
2896
|
+
return 'ParsedTemplate(elements=' + toString_0(this.k1f_1) + ')';
|
|
2869
2897
|
};
|
|
2870
2898
|
protoOf(ParsedTemplate).hashCode = function () {
|
|
2871
|
-
return hashCode(this.
|
|
2899
|
+
return hashCode(this.k1f_1);
|
|
2872
2900
|
};
|
|
2873
2901
|
protoOf(ParsedTemplate).equals = function (other) {
|
|
2874
2902
|
if (this === other)
|
|
2875
2903
|
return true;
|
|
2876
2904
|
if (!(other instanceof ParsedTemplate))
|
|
2877
2905
|
return false;
|
|
2878
|
-
if (!equals(this.
|
|
2906
|
+
if (!equals(this.k1f_1, other.k1f_1))
|
|
2879
2907
|
return false;
|
|
2880
2908
|
return true;
|
|
2881
2909
|
};
|
|
@@ -2969,12 +2997,12 @@
|
|
|
2969
2997
|
protoOf(TemplateConst).hd = function () {
|
|
2970
2998
|
return this.value;
|
|
2971
2999
|
};
|
|
2972
|
-
protoOf(TemplateConst).
|
|
3000
|
+
protoOf(TemplateConst).d1j = function (value) {
|
|
2973
3001
|
return new TemplateConst(value);
|
|
2974
3002
|
};
|
|
2975
3003
|
protoOf(TemplateConst).copy = function (value, $super) {
|
|
2976
3004
|
value = value === VOID ? this.value : value;
|
|
2977
|
-
return $super === VOID ? this.
|
|
3005
|
+
return $super === VOID ? this.d1j(value) : $super.d1j.call(this, value);
|
|
2978
3006
|
};
|
|
2979
3007
|
protoOf(TemplateConst).toString = function () {
|
|
2980
3008
|
return 'TemplateConst(value=' + this.value + ')';
|
|
@@ -3006,10 +3034,10 @@
|
|
|
3006
3034
|
tmp0_serialDesc.rs('scale', true);
|
|
3007
3035
|
tmp0_serialDesc.rs('ingredient', true);
|
|
3008
3036
|
tmp0_serialDesc.rs('usCust', true);
|
|
3009
|
-
this.
|
|
3037
|
+
this.e1j_1 = tmp0_serialDesc;
|
|
3010
3038
|
}
|
|
3011
|
-
protoOf($serializer_10).
|
|
3012
|
-
var tmp0_desc = this.
|
|
3039
|
+
protoOf($serializer_10).f1j = function (encoder, value) {
|
|
3040
|
+
var tmp0_desc = this.e1j_1;
|
|
3013
3041
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
3014
3042
|
tmp1_output.tm(tmp0_desc, 0, value.min);
|
|
3015
3043
|
if (tmp1_output.en(tmp0_desc, 1) ? true : !(value.max == null)) {
|
|
@@ -3030,10 +3058,10 @@
|
|
|
3030
3058
|
tmp1_output.jl(tmp0_desc);
|
|
3031
3059
|
};
|
|
3032
3060
|
protoOf($serializer_10).li = function (encoder, value) {
|
|
3033
|
-
return this.
|
|
3061
|
+
return this.f1j(encoder, value instanceof QuantityPlaceholder ? value : THROW_CCE());
|
|
3034
3062
|
};
|
|
3035
3063
|
protoOf($serializer_10).mi = function (decoder) {
|
|
3036
|
-
var tmp0_desc = this.
|
|
3064
|
+
var tmp0_desc = this.e1j_1;
|
|
3037
3065
|
var tmp1_flag = true;
|
|
3038
3066
|
var tmp2_index = 0;
|
|
3039
3067
|
var tmp3_bitMask0 = 0;
|
|
@@ -3096,7 +3124,7 @@
|
|
|
3096
3124
|
return QuantityPlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
3097
3125
|
};
|
|
3098
3126
|
protoOf($serializer_10).ki = function () {
|
|
3099
|
-
return this.
|
|
3127
|
+
return this.e1j_1;
|
|
3100
3128
|
};
|
|
3101
3129
|
protoOf($serializer_10).ts = function () {
|
|
3102
3130
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3112,7 +3140,7 @@
|
|
|
3112
3140
|
}
|
|
3113
3141
|
function QuantityPlaceholder_init_$Init$(seen0, min, max, unit, scale, ingredient, usCust, serializationConstructorMarker, $this) {
|
|
3114
3142
|
if (!(1 === (1 & seen0))) {
|
|
3115
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_10().
|
|
3143
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_10().e1j_1);
|
|
3116
3144
|
}
|
|
3117
3145
|
$this.min = min;
|
|
3118
3146
|
if (0 === (seen0 & 2))
|
|
@@ -3153,22 +3181,22 @@
|
|
|
3153
3181
|
this.ingredient = ingredient;
|
|
3154
3182
|
this.usCust = usCust;
|
|
3155
3183
|
}
|
|
3156
|
-
protoOf(QuantityPlaceholder).
|
|
3184
|
+
protoOf(QuantityPlaceholder).g1j = function () {
|
|
3157
3185
|
return this.min;
|
|
3158
3186
|
};
|
|
3159
|
-
protoOf(QuantityPlaceholder).
|
|
3187
|
+
protoOf(QuantityPlaceholder).h1j = function () {
|
|
3160
3188
|
return this.max;
|
|
3161
3189
|
};
|
|
3162
|
-
protoOf(QuantityPlaceholder).
|
|
3190
|
+
protoOf(QuantityPlaceholder).i1j = function () {
|
|
3163
3191
|
return this.unit;
|
|
3164
3192
|
};
|
|
3165
|
-
protoOf(QuantityPlaceholder).
|
|
3193
|
+
protoOf(QuantityPlaceholder).j1j = function () {
|
|
3166
3194
|
return this.scale;
|
|
3167
3195
|
};
|
|
3168
|
-
protoOf(QuantityPlaceholder).
|
|
3196
|
+
protoOf(QuantityPlaceholder).k1j = function () {
|
|
3169
3197
|
return this.ingredient;
|
|
3170
3198
|
};
|
|
3171
|
-
protoOf(QuantityPlaceholder).
|
|
3199
|
+
protoOf(QuantityPlaceholder).l1j = function () {
|
|
3172
3200
|
return this.usCust;
|
|
3173
3201
|
};
|
|
3174
3202
|
protoOf(QuantityPlaceholder).hd = function () {
|
|
@@ -3177,19 +3205,19 @@
|
|
|
3177
3205
|
protoOf(QuantityPlaceholder).id = function () {
|
|
3178
3206
|
return this.max;
|
|
3179
3207
|
};
|
|
3180
|
-
protoOf(QuantityPlaceholder).
|
|
3208
|
+
protoOf(QuantityPlaceholder).m1j = function () {
|
|
3181
3209
|
return this.unit;
|
|
3182
3210
|
};
|
|
3183
|
-
protoOf(QuantityPlaceholder).
|
|
3211
|
+
protoOf(QuantityPlaceholder).n1j = function () {
|
|
3184
3212
|
return this.scale;
|
|
3185
3213
|
};
|
|
3186
|
-
protoOf(QuantityPlaceholder).
|
|
3214
|
+
protoOf(QuantityPlaceholder).o1j = function () {
|
|
3187
3215
|
return this.ingredient;
|
|
3188
3216
|
};
|
|
3189
|
-
protoOf(QuantityPlaceholder).
|
|
3217
|
+
protoOf(QuantityPlaceholder).p1j = function () {
|
|
3190
3218
|
return this.usCust;
|
|
3191
3219
|
};
|
|
3192
|
-
protoOf(QuantityPlaceholder).
|
|
3220
|
+
protoOf(QuantityPlaceholder).q1j = function (min, max, unit, scale, ingredient, usCust) {
|
|
3193
3221
|
return new QuantityPlaceholder(min, max, unit, scale, ingredient, usCust);
|
|
3194
3222
|
};
|
|
3195
3223
|
protoOf(QuantityPlaceholder).copy = function (min, max, unit, scale, ingredient, usCust, $super) {
|
|
@@ -3199,7 +3227,7 @@
|
|
|
3199
3227
|
scale = scale === VOID ? this.scale : scale;
|
|
3200
3228
|
ingredient = ingredient === VOID ? this.ingredient : ingredient;
|
|
3201
3229
|
usCust = usCust === VOID ? this.usCust : usCust;
|
|
3202
|
-
return $super === VOID ? this.
|
|
3230
|
+
return $super === VOID ? this.q1j(min, max, unit, scale, ingredient, usCust) : $super.q1j.call(this, min, max, unit, scale, ingredient, usCust);
|
|
3203
3231
|
};
|
|
3204
3232
|
protoOf(QuantityPlaceholder).toString = function () {
|
|
3205
3233
|
return 'QuantityPlaceholder(min=' + this.min + ', max=' + this.max + ', unit=' + this.unit + ', scale=' + this.scale + ', ingredient=' + this.ingredient + ', usCust=' + this.usCust + ')';
|
|
@@ -3245,10 +3273,10 @@
|
|
|
3245
3273
|
tmp0_serialDesc.rs('temperatureFanC', true);
|
|
3246
3274
|
tmp0_serialDesc.rs('temperatureF', true);
|
|
3247
3275
|
tmp0_serialDesc.rs('gasMark', true);
|
|
3248
|
-
this.
|
|
3276
|
+
this.r1j_1 = tmp0_serialDesc;
|
|
3249
3277
|
}
|
|
3250
|
-
protoOf($serializer_11).
|
|
3251
|
-
var tmp0_desc = this.
|
|
3278
|
+
protoOf($serializer_11).s1j = function (encoder, value) {
|
|
3279
|
+
var tmp0_desc = this.r1j_1;
|
|
3252
3280
|
var tmp1_output = encoder.il(tmp0_desc);
|
|
3253
3281
|
if (tmp1_output.en(tmp0_desc, 0) ? true : !(value.temperatureC == null)) {
|
|
3254
3282
|
tmp1_output.an(tmp0_desc, 0, IntSerializer_getInstance(), value.temperatureC);
|
|
@@ -3265,10 +3293,10 @@
|
|
|
3265
3293
|
tmp1_output.jl(tmp0_desc);
|
|
3266
3294
|
};
|
|
3267
3295
|
protoOf($serializer_11).li = function (encoder, value) {
|
|
3268
|
-
return this.
|
|
3296
|
+
return this.s1j(encoder, value instanceof OvenTemperaturePlaceholder ? value : THROW_CCE());
|
|
3269
3297
|
};
|
|
3270
3298
|
protoOf($serializer_11).mi = function (decoder) {
|
|
3271
|
-
var tmp0_desc = this.
|
|
3299
|
+
var tmp0_desc = this.r1j_1;
|
|
3272
3300
|
var tmp1_flag = true;
|
|
3273
3301
|
var tmp2_index = 0;
|
|
3274
3302
|
var tmp3_bitMask0 = 0;
|
|
@@ -3317,7 +3345,7 @@
|
|
|
3317
3345
|
return OvenTemperaturePlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
3318
3346
|
};
|
|
3319
3347
|
protoOf($serializer_11).ki = function () {
|
|
3320
|
-
return this.
|
|
3348
|
+
return this.r1j_1;
|
|
3321
3349
|
};
|
|
3322
3350
|
protoOf($serializer_11).ts = function () {
|
|
3323
3351
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3333,7 +3361,7 @@
|
|
|
3333
3361
|
}
|
|
3334
3362
|
function OvenTemperaturePlaceholder_init_$Init$(seen0, temperatureC, temperatureFanC, temperatureF, gasMark, serializationConstructorMarker, $this) {
|
|
3335
3363
|
if (!(0 === (0 & seen0))) {
|
|
3336
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_11().
|
|
3364
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_11().r1j_1);
|
|
3337
3365
|
}
|
|
3338
3366
|
if (0 === (seen0 & 1))
|
|
3339
3367
|
$this.temperatureC = null;
|
|
@@ -3366,16 +3394,16 @@
|
|
|
3366
3394
|
this.temperatureF = temperatureF;
|
|
3367
3395
|
this.gasMark = gasMark;
|
|
3368
3396
|
}
|
|
3369
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3397
|
+
protoOf(OvenTemperaturePlaceholder).t1j = function () {
|
|
3370
3398
|
return this.temperatureC;
|
|
3371
3399
|
};
|
|
3372
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3400
|
+
protoOf(OvenTemperaturePlaceholder).u1j = function () {
|
|
3373
3401
|
return this.temperatureFanC;
|
|
3374
3402
|
};
|
|
3375
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3403
|
+
protoOf(OvenTemperaturePlaceholder).v1j = function () {
|
|
3376
3404
|
return this.temperatureF;
|
|
3377
3405
|
};
|
|
3378
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3406
|
+
protoOf(OvenTemperaturePlaceholder).w1j = function () {
|
|
3379
3407
|
return this.gasMark;
|
|
3380
3408
|
};
|
|
3381
3409
|
protoOf(OvenTemperaturePlaceholder).hd = function () {
|
|
@@ -3384,13 +3412,13 @@
|
|
|
3384
3412
|
protoOf(OvenTemperaturePlaceholder).id = function () {
|
|
3385
3413
|
return this.temperatureFanC;
|
|
3386
3414
|
};
|
|
3387
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3415
|
+
protoOf(OvenTemperaturePlaceholder).m1j = function () {
|
|
3388
3416
|
return this.temperatureF;
|
|
3389
3417
|
};
|
|
3390
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3418
|
+
protoOf(OvenTemperaturePlaceholder).n1j = function () {
|
|
3391
3419
|
return this.gasMark;
|
|
3392
3420
|
};
|
|
3393
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
3421
|
+
protoOf(OvenTemperaturePlaceholder).x1j = function (temperatureC, temperatureFanC, temperatureF, gasMark) {
|
|
3394
3422
|
return new OvenTemperaturePlaceholder(temperatureC, temperatureFanC, temperatureF, gasMark);
|
|
3395
3423
|
};
|
|
3396
3424
|
protoOf(OvenTemperaturePlaceholder).copy = function (temperatureC, temperatureFanC, temperatureF, gasMark, $super) {
|
|
@@ -3398,7 +3426,7 @@
|
|
|
3398
3426
|
temperatureFanC = temperatureFanC === VOID ? this.temperatureFanC : temperatureFanC;
|
|
3399
3427
|
temperatureF = temperatureF === VOID ? this.temperatureF : temperatureF;
|
|
3400
3428
|
gasMark = gasMark === VOID ? this.gasMark : gasMark;
|
|
3401
|
-
return $super === VOID ? this.
|
|
3429
|
+
return $super === VOID ? this.x1j(temperatureC, temperatureFanC, temperatureF, gasMark) : $super.x1j.call(this, temperatureC, temperatureFanC, temperatureF, gasMark);
|
|
3402
3430
|
};
|
|
3403
3431
|
protoOf(OvenTemperaturePlaceholder).toString = function () {
|
|
3404
3432
|
return 'OvenTemperaturePlaceholder(temperatureC=' + this.temperatureC + ', temperatureFanC=' + this.temperatureFanC + ', temperatureF=' + this.temperatureF + ', gasMark=' + this.gasMark + ')';
|
|
@@ -3443,6 +3471,12 @@
|
|
|
3443
3471
|
function USCustomary_getInstance() {
|
|
3444
3472
|
return USCustomary_instance;
|
|
3445
3473
|
}
|
|
3474
|
+
function Butter() {
|
|
3475
|
+
}
|
|
3476
|
+
var Butter_instance;
|
|
3477
|
+
function Butter_getInstance() {
|
|
3478
|
+
return Butter_instance;
|
|
3479
|
+
}
|
|
3446
3480
|
function USCustomaryWithMetric() {
|
|
3447
3481
|
}
|
|
3448
3482
|
var USCustomaryWithMetric_instance;
|
|
@@ -3477,25 +3511,25 @@
|
|
|
3477
3511
|
Enum.call(this, name, ordinal);
|
|
3478
3512
|
}
|
|
3479
3513
|
function MeasurementUnit(singular, plural, symbol, symbolPlural, unitType, measuringSystems, quantity) {
|
|
3480
|
-
this.
|
|
3481
|
-
this.
|
|
3482
|
-
this.
|
|
3483
|
-
this.
|
|
3484
|
-
this.
|
|
3485
|
-
this.
|
|
3486
|
-
this.
|
|
3514
|
+
this.b1f_1 = singular;
|
|
3515
|
+
this.c1f_1 = plural;
|
|
3516
|
+
this.d1f_1 = symbol;
|
|
3517
|
+
this.e1f_1 = symbolPlural;
|
|
3518
|
+
this.f1f_1 = unitType;
|
|
3519
|
+
this.g1f_1 = measuringSystems;
|
|
3520
|
+
this.h1f_1 = quantity;
|
|
3487
3521
|
}
|
|
3488
3522
|
protoOf(MeasurementUnit).toString = function () {
|
|
3489
|
-
return 'MeasurementUnit(singular=' + this.
|
|
3523
|
+
return 'MeasurementUnit(singular=' + this.b1f_1 + ', plural=' + this.c1f_1 + ', symbol=' + this.d1f_1 + ', symbolPlural=' + this.e1f_1 + ', unitType=' + toString(this.f1f_1) + ', measuringSystems=' + toString_0(this.g1f_1) + ', quantity=' + this.h1f_1 + ')';
|
|
3490
3524
|
};
|
|
3491
3525
|
protoOf(MeasurementUnit).hashCode = function () {
|
|
3492
|
-
var result = getStringHashCode(this.
|
|
3493
|
-
result = imul(result, 31) + getStringHashCode(this.a1f_1) | 0;
|
|
3494
|
-
result = imul(result, 31) + getStringHashCode(this.b1f_1) | 0;
|
|
3526
|
+
var result = getStringHashCode(this.b1f_1);
|
|
3495
3527
|
result = imul(result, 31) + getStringHashCode(this.c1f_1) | 0;
|
|
3496
|
-
result = imul(result, 31) + (this.d1f_1
|
|
3497
|
-
result = imul(result, 31) +
|
|
3498
|
-
result = imul(result, 31) +
|
|
3528
|
+
result = imul(result, 31) + getStringHashCode(this.d1f_1) | 0;
|
|
3529
|
+
result = imul(result, 31) + getStringHashCode(this.e1f_1) | 0;
|
|
3530
|
+
result = imul(result, 31) + (this.f1f_1 == null ? 0 : this.f1f_1.hashCode()) | 0;
|
|
3531
|
+
result = imul(result, 31) + hashCode(this.g1f_1) | 0;
|
|
3532
|
+
result = imul(result, 31) + getNumberHashCode(this.h1f_1) | 0;
|
|
3499
3533
|
return result;
|
|
3500
3534
|
};
|
|
3501
3535
|
protoOf(MeasurementUnit).equals = function (other) {
|
|
@@ -3503,54 +3537,58 @@
|
|
|
3503
3537
|
return true;
|
|
3504
3538
|
if (!(other instanceof MeasurementUnit))
|
|
3505
3539
|
return false;
|
|
3506
|
-
if (!(this.z1e_1 === other.z1e_1))
|
|
3507
|
-
return false;
|
|
3508
|
-
if (!(this.a1f_1 === other.a1f_1))
|
|
3509
|
-
return false;
|
|
3510
3540
|
if (!(this.b1f_1 === other.b1f_1))
|
|
3511
3541
|
return false;
|
|
3512
3542
|
if (!(this.c1f_1 === other.c1f_1))
|
|
3513
3543
|
return false;
|
|
3514
|
-
if (!
|
|
3544
|
+
if (!(this.d1f_1 === other.d1f_1))
|
|
3515
3545
|
return false;
|
|
3516
|
-
if (!
|
|
3546
|
+
if (!(this.e1f_1 === other.e1f_1))
|
|
3517
3547
|
return false;
|
|
3518
3548
|
if (!equals(this.f1f_1, other.f1f_1))
|
|
3519
3549
|
return false;
|
|
3550
|
+
if (!equals(this.g1f_1, other.g1f_1))
|
|
3551
|
+
return false;
|
|
3552
|
+
if (!equals(this.h1f_1, other.h1f_1))
|
|
3553
|
+
return false;
|
|
3520
3554
|
return true;
|
|
3521
3555
|
};
|
|
3522
3556
|
function Units() {
|
|
3523
3557
|
Units_instance = this;
|
|
3524
|
-
this.n1d_1 = new MeasurementUnit('gram', 'grams', 'g', 'g', UnitType_WEIGHT_getInstance(), setOf(Metric_instance), 1.0);
|
|
3525
|
-
this.o1d_1 = new MeasurementUnit('kilogram', 'kilograms', 'kg', 'kg', UnitType_WEIGHT_getInstance(), setOf(Metric_instance), 1000.0);
|
|
3526
|
-
this.p1d_1 = new MeasurementUnit('ounce', 'ounces', 'oz', 'oz', UnitType_WEIGHT_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 28.3495);
|
|
3527
|
-
this.q1d_1 = new MeasurementUnit('pound', 'pounds', 'lb', 'lbs', UnitType_WEIGHT_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 16 * this.p1d_1.f1f_1);
|
|
3528
|
-
this.r1d_1 = new MeasurementUnit('millilitre', 'millilitres', 'ml', 'ml', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 1.0);
|
|
3529
|
-
this.s1d_1 = new MeasurementUnit('centilitre', 'centilitres', 'cl', 'cl', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 10.0);
|
|
3530
|
-
this.t1d_1 = new MeasurementUnit('litre', 'litres', 'l', 'l', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 1000.0);
|
|
3531
|
-
this.u1d_1 = new MeasurementUnit('teaspoon', 'teaspoons', 'tsp', 'tsp', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 5.0);
|
|
3532
|
-
this.v1d_1 = new MeasurementUnit('tablespoon', 'tablespoons', 'tbsp', 'tbsp', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 15.0);
|
|
3533
|
-
this.w1d_1 = new MeasurementUnit('teaspoon', 'teaspoons', 'tsp', 'tsp', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 4.9289);
|
|
3534
|
-
this.x1d_1 = new MeasurementUnit('tablespoon', 'tablespoons', 'tbsp', 'tbsp', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 3 * this.w1d_1.f1f_1);
|
|
3535
|
-
this.y1d_1 = new MeasurementUnit('fluid ounce', 'fluid ounces', 'fl oz', 'fl oz', UnitType_VOLUME_getInstance(), setOf(Imperial_instance), 6 * this.w1d_1.f1f_1);
|
|
3536
|
-
this.z1d_1 = new MeasurementUnit('cup', 'cups', 'cup', 'cups', UnitType_VOLUME_getInstance(), setOf(USCustomary_instance), 48 * this.w1d_1.f1f_1);
|
|
3537
|
-
this.a1e_1 = new MeasurementUnit('cup', 'cups', 'cup', 'cups', UnitType_VOLUME_getInstance(), setOf(Metric_instance), 250.0);
|
|
3538
|
-
this.b1e_1 = new MeasurementUnit('pint', 'pints', 'pt', 'pts', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 2 * this.z1d_1.f1f_1);
|
|
3539
|
-
this.c1e_1 = new MeasurementUnit('quart', 'quarts', 'qt', 'qts', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 2 * this.b1e_1.f1f_1);
|
|
3540
|
-
this.d1e_1 = new MeasurementUnit('gallon', 'gallons', 'gal', 'gals', UnitType_VOLUME_getInstance(), setOf_0([Imperial_instance, USCustomary_instance]), 4 * this.c1e_1.f1f_1);
|
|
3541
|
-
this.e1e_1 = new MeasurementUnit('millimetre', 'millimetres', 'mm', 'mm', UnitType_LENGTH_getInstance(), setOf(Metric_instance), 1.0);
|
|
3542
|
-
this.f1e_1 = new MeasurementUnit('centimetre', 'centimetres', 'cm', 'cm', UnitType_LENGTH_getInstance(), setOf(Metric_instance), 10.0);
|
|
3543
|
-
this.g1e_1 = new MeasurementUnit('inch', 'inches', 'in', 'in', UnitType_LENGTH_getInstance(), setOf(Imperial_instance), 25.4);
|
|
3544
|
-
this.h1e_1 = listOf([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, this.f1e_1, this.g1e_1]);
|
|
3545
3558
|
var tmp = this;
|
|
3559
|
+
var tmp0_unitType = UnitType_VOLUME_getInstance();
|
|
3560
|
+
var tmp1_measuringSystems = setOf([USCustomary_instance, Imperial_instance]);
|
|
3561
|
+
tmp.n1d_1 = new MeasurementUnit('stick', 'sticks', 'sticks', 'sticks', tmp0_unitType, tmp1_measuringSystems, 118.294);
|
|
3562
|
+
this.o1d_1 = new MeasurementUnit('gram', 'grams', 'g', 'g', UnitType_WEIGHT_getInstance(), setOf_0(Metric_instance), 1.0);
|
|
3563
|
+
this.p1d_1 = new MeasurementUnit('kilogram', 'kilograms', 'kg', 'kg', UnitType_WEIGHT_getInstance(), setOf_0(Metric_instance), 1000.0);
|
|
3564
|
+
this.q1d_1 = new MeasurementUnit('ounce', 'ounces', 'oz', 'oz', UnitType_WEIGHT_getInstance(), setOf([Imperial_instance, USCustomary_instance]), 28.3495);
|
|
3565
|
+
this.r1d_1 = new MeasurementUnit('pound', 'pounds', 'lb', 'lbs', UnitType_WEIGHT_getInstance(), setOf([Imperial_instance, USCustomary_instance]), 16 * this.q1d_1.h1f_1);
|
|
3566
|
+
this.s1d_1 = new MeasurementUnit('millilitre', 'millilitres', 'ml', 'ml', UnitType_VOLUME_getInstance(), setOf_0(Metric_instance), 1.0);
|
|
3567
|
+
this.t1d_1 = new MeasurementUnit('centilitre', 'centilitres', 'cl', 'cl', UnitType_VOLUME_getInstance(), setOf_0(Metric_instance), 10.0);
|
|
3568
|
+
this.u1d_1 = new MeasurementUnit('litre', 'litres', 'l', 'l', UnitType_VOLUME_getInstance(), setOf_0(Metric_instance), 1000.0);
|
|
3569
|
+
this.v1d_1 = new MeasurementUnit('teaspoon', 'teaspoons', 'tsp', 'tsp', UnitType_VOLUME_getInstance(), setOf_0(Metric_instance), 5.0);
|
|
3570
|
+
this.w1d_1 = new MeasurementUnit('tablespoon', 'tablespoons', 'tbsp', 'tbsp', UnitType_VOLUME_getInstance(), setOf_0(Metric_instance), 15.0);
|
|
3571
|
+
this.x1d_1 = new MeasurementUnit('teaspoon', 'teaspoons', 'tsp', 'tsp', UnitType_VOLUME_getInstance(), setOf([Imperial_instance, USCustomary_instance]), 4.9289);
|
|
3572
|
+
this.y1d_1 = new MeasurementUnit('tablespoon', 'tablespoons', 'tbsp', 'tbsp', UnitType_VOLUME_getInstance(), setOf([Imperial_instance, USCustomary_instance]), 3 * this.x1d_1.h1f_1);
|
|
3573
|
+
this.z1d_1 = new MeasurementUnit('fluid ounce', 'fluid ounces', 'fl oz', 'fl oz', UnitType_VOLUME_getInstance(), setOf_0(Imperial_instance), 6 * this.x1d_1.h1f_1);
|
|
3574
|
+
this.a1e_1 = new MeasurementUnit('cup', 'cups', 'cup', 'cups', UnitType_VOLUME_getInstance(), setOf_0(USCustomary_instance), 48 * this.x1d_1.h1f_1);
|
|
3575
|
+
this.b1e_1 = new MeasurementUnit('cup', 'cups', 'cup', 'cups', UnitType_VOLUME_getInstance(), setOf_0(Metric_instance), 250.0);
|
|
3576
|
+
this.c1e_1 = new MeasurementUnit('pint', 'pints', 'pt', 'pts', UnitType_VOLUME_getInstance(), setOf([Imperial_instance, USCustomary_instance]), 2 * this.a1e_1.h1f_1);
|
|
3577
|
+
this.d1e_1 = new MeasurementUnit('quart', 'quarts', 'qt', 'qts', UnitType_VOLUME_getInstance(), setOf([Imperial_instance, USCustomary_instance]), 2 * this.c1e_1.h1f_1);
|
|
3578
|
+
this.e1e_1 = new MeasurementUnit('gallon', 'gallons', 'gal', 'gals', UnitType_VOLUME_getInstance(), setOf([Imperial_instance, USCustomary_instance]), 4 * this.d1e_1.h1f_1);
|
|
3579
|
+
this.f1e_1 = new MeasurementUnit('millimetre', 'millimetres', 'mm', 'mm', UnitType_LENGTH_getInstance(), setOf_0(Metric_instance), 1.0);
|
|
3580
|
+
this.g1e_1 = new MeasurementUnit('centimetre', 'centimetres', 'cm', 'cm', UnitType_LENGTH_getInstance(), setOf_0(Metric_instance), 10.0);
|
|
3581
|
+
this.h1e_1 = new MeasurementUnit('inch', 'inches', 'in', 'in', UnitType_LENGTH_getInstance(), setOf_0(Imperial_instance), 25.4);
|
|
3582
|
+
this.i1e_1 = listOf([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, this.f1e_1, this.g1e_1, this.h1e_1]);
|
|
3583
|
+
var tmp_0 = this;
|
|
3546
3584
|
// Inline function 'kotlin.collections.filter' call
|
|
3547
|
-
var tmp0 = this.
|
|
3585
|
+
var tmp0 = this.i1e_1;
|
|
3548
3586
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3549
3587
|
var destination = ArrayList_init_$Create$_0();
|
|
3550
3588
|
var _iterator__ex2g4s = tmp0.s();
|
|
3551
3589
|
while (_iterator__ex2g4s.t()) {
|
|
3552
3590
|
var element = _iterator__ex2g4s.u();
|
|
3553
|
-
if (element.
|
|
3591
|
+
if (element.g1f_1.z(Metric_instance)) {
|
|
3554
3592
|
destination.w(element);
|
|
3555
3593
|
}
|
|
3556
3594
|
}
|
|
@@ -3562,10 +3600,10 @@
|
|
|
3562
3600
|
var _iterator__ex2g4s_0 = destination.s();
|
|
3563
3601
|
while (_iterator__ex2g4s_0.t()) {
|
|
3564
3602
|
var element_0 = _iterator__ex2g4s_0.u();
|
|
3565
|
-
var tmp$ret$3 = element_0.
|
|
3603
|
+
var tmp$ret$3 = element_0.d1f_1;
|
|
3566
3604
|
destination_0.o2(tmp$ret$3, element_0);
|
|
3567
3605
|
}
|
|
3568
|
-
var
|
|
3606
|
+
var tmp_1 = destination_0;
|
|
3569
3607
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3570
3608
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination, 10)), 16);
|
|
3571
3609
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -3573,10 +3611,10 @@
|
|
|
3573
3611
|
var _iterator__ex2g4s_1 = destination.s();
|
|
3574
3612
|
while (_iterator__ex2g4s_1.t()) {
|
|
3575
3613
|
var element_1 = _iterator__ex2g4s_1.u();
|
|
3576
|
-
var tmp$ret$6 = element_1.
|
|
3614
|
+
var tmp$ret$6 = element_1.e1f_1;
|
|
3577
3615
|
destination_1.o2(tmp$ret$6, element_1);
|
|
3578
3616
|
}
|
|
3579
|
-
var
|
|
3617
|
+
var tmp_2 = plus(tmp_1, destination_1);
|
|
3580
3618
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3581
3619
|
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination, 10)), 16);
|
|
3582
3620
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -3584,10 +3622,10 @@
|
|
|
3584
3622
|
var _iterator__ex2g4s_2 = destination.s();
|
|
3585
3623
|
while (_iterator__ex2g4s_2.t()) {
|
|
3586
3624
|
var element_2 = _iterator__ex2g4s_2.u();
|
|
3587
|
-
var tmp$ret$9 = element_2.
|
|
3625
|
+
var tmp$ret$9 = element_2.b1f_1;
|
|
3588
3626
|
destination_2.o2(tmp$ret$9, element_2);
|
|
3589
3627
|
}
|
|
3590
|
-
var
|
|
3628
|
+
var tmp_3 = plus(tmp_2, destination_2);
|
|
3591
3629
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3592
3630
|
var capacity_2 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination, 10)), 16);
|
|
3593
3631
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -3595,19 +3633,19 @@
|
|
|
3595
3633
|
var _iterator__ex2g4s_3 = destination.s();
|
|
3596
3634
|
while (_iterator__ex2g4s_3.t()) {
|
|
3597
3635
|
var element_3 = _iterator__ex2g4s_3.u();
|
|
3598
|
-
var tmp$ret$12 = element_3.
|
|
3636
|
+
var tmp$ret$12 = element_3.c1f_1;
|
|
3599
3637
|
destination_3.o2(tmp$ret$12, element_3);
|
|
3600
3638
|
}
|
|
3601
|
-
|
|
3602
|
-
var
|
|
3639
|
+
tmp_0.j1e_1 = plus(tmp_3, destination_3);
|
|
3640
|
+
var tmp_4 = this;
|
|
3603
3641
|
// Inline function 'kotlin.collections.filter' call
|
|
3604
|
-
var tmp0_0 = this.
|
|
3642
|
+
var tmp0_0 = this.i1e_1;
|
|
3605
3643
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3606
3644
|
var destination_4 = ArrayList_init_$Create$_0();
|
|
3607
3645
|
var _iterator__ex2g4s_4 = tmp0_0.s();
|
|
3608
3646
|
while (_iterator__ex2g4s_4.t()) {
|
|
3609
3647
|
var element_4 = _iterator__ex2g4s_4.u();
|
|
3610
|
-
if (element_4.
|
|
3648
|
+
if (element_4.g1f_1.z(Imperial_instance)) {
|
|
3611
3649
|
destination_4.w(element_4);
|
|
3612
3650
|
}
|
|
3613
3651
|
}
|
|
@@ -3619,10 +3657,10 @@
|
|
|
3619
3657
|
var _iterator__ex2g4s_5 = destination_4.s();
|
|
3620
3658
|
while (_iterator__ex2g4s_5.t()) {
|
|
3621
3659
|
var element_5 = _iterator__ex2g4s_5.u();
|
|
3622
|
-
var tmp$ret$20 = element_5.
|
|
3660
|
+
var tmp$ret$20 = element_5.d1f_1;
|
|
3623
3661
|
destination_5.o2(tmp$ret$20, element_5);
|
|
3624
3662
|
}
|
|
3625
|
-
var
|
|
3663
|
+
var tmp_5 = destination_5;
|
|
3626
3664
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3627
3665
|
var capacity_4 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_4, 10)), 16);
|
|
3628
3666
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -3630,10 +3668,10 @@
|
|
|
3630
3668
|
var _iterator__ex2g4s_6 = destination_4.s();
|
|
3631
3669
|
while (_iterator__ex2g4s_6.t()) {
|
|
3632
3670
|
var element_6 = _iterator__ex2g4s_6.u();
|
|
3633
|
-
var tmp$ret$23 = element_6.
|
|
3671
|
+
var tmp$ret$23 = element_6.e1f_1;
|
|
3634
3672
|
destination_6.o2(tmp$ret$23, element_6);
|
|
3635
3673
|
}
|
|
3636
|
-
var
|
|
3674
|
+
var tmp_6 = plus(tmp_5, destination_6);
|
|
3637
3675
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3638
3676
|
var capacity_5 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_4, 10)), 16);
|
|
3639
3677
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -3641,10 +3679,10 @@
|
|
|
3641
3679
|
var _iterator__ex2g4s_7 = destination_4.s();
|
|
3642
3680
|
while (_iterator__ex2g4s_7.t()) {
|
|
3643
3681
|
var element_7 = _iterator__ex2g4s_7.u();
|
|
3644
|
-
var tmp$ret$26 = element_7.
|
|
3682
|
+
var tmp$ret$26 = element_7.b1f_1;
|
|
3645
3683
|
destination_7.o2(tmp$ret$26, element_7);
|
|
3646
3684
|
}
|
|
3647
|
-
var
|
|
3685
|
+
var tmp_7 = plus(tmp_6, destination_7);
|
|
3648
3686
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3649
3687
|
var capacity_6 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_4, 10)), 16);
|
|
3650
3688
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -3652,19 +3690,19 @@
|
|
|
3652
3690
|
var _iterator__ex2g4s_8 = destination_4.s();
|
|
3653
3691
|
while (_iterator__ex2g4s_8.t()) {
|
|
3654
3692
|
var element_8 = _iterator__ex2g4s_8.u();
|
|
3655
|
-
var tmp$ret$29 = element_8.
|
|
3693
|
+
var tmp$ret$29 = element_8.c1f_1;
|
|
3656
3694
|
destination_8.o2(tmp$ret$29, element_8);
|
|
3657
3695
|
}
|
|
3658
|
-
|
|
3659
|
-
var
|
|
3696
|
+
tmp_4.k1e_1 = plus(tmp_7, destination_8);
|
|
3697
|
+
var tmp_8 = this;
|
|
3660
3698
|
// Inline function 'kotlin.collections.filter' call
|
|
3661
|
-
var tmp0_1 = this.
|
|
3699
|
+
var tmp0_1 = this.i1e_1;
|
|
3662
3700
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3663
3701
|
var destination_9 = ArrayList_init_$Create$_0();
|
|
3664
3702
|
var _iterator__ex2g4s_9 = tmp0_1.s();
|
|
3665
3703
|
while (_iterator__ex2g4s_9.t()) {
|
|
3666
3704
|
var element_9 = _iterator__ex2g4s_9.u();
|
|
3667
|
-
if (element_9.
|
|
3705
|
+
if (element_9.g1f_1.z(USCustomary_instance)) {
|
|
3668
3706
|
destination_9.w(element_9);
|
|
3669
3707
|
}
|
|
3670
3708
|
}
|
|
@@ -3676,10 +3714,10 @@
|
|
|
3676
3714
|
var _iterator__ex2g4s_10 = destination_9.s();
|
|
3677
3715
|
while (_iterator__ex2g4s_10.t()) {
|
|
3678
3716
|
var element_10 = _iterator__ex2g4s_10.u();
|
|
3679
|
-
var tmp$ret$37 = element_10.
|
|
3717
|
+
var tmp$ret$37 = element_10.d1f_1;
|
|
3680
3718
|
destination_10.o2(tmp$ret$37, element_10);
|
|
3681
3719
|
}
|
|
3682
|
-
var
|
|
3720
|
+
var tmp_9 = destination_10;
|
|
3683
3721
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3684
3722
|
var capacity_8 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_9, 10)), 16);
|
|
3685
3723
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -3687,10 +3725,10 @@
|
|
|
3687
3725
|
var _iterator__ex2g4s_11 = destination_9.s();
|
|
3688
3726
|
while (_iterator__ex2g4s_11.t()) {
|
|
3689
3727
|
var element_11 = _iterator__ex2g4s_11.u();
|
|
3690
|
-
var tmp$ret$40 = element_11.
|
|
3728
|
+
var tmp$ret$40 = element_11.e1f_1;
|
|
3691
3729
|
destination_11.o2(tmp$ret$40, element_11);
|
|
3692
3730
|
}
|
|
3693
|
-
var
|
|
3731
|
+
var tmp_10 = plus(tmp_9, destination_11);
|
|
3694
3732
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3695
3733
|
var capacity_9 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_9, 10)), 16);
|
|
3696
3734
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -3698,10 +3736,10 @@
|
|
|
3698
3736
|
var _iterator__ex2g4s_12 = destination_9.s();
|
|
3699
3737
|
while (_iterator__ex2g4s_12.t()) {
|
|
3700
3738
|
var element_12 = _iterator__ex2g4s_12.u();
|
|
3701
|
-
var tmp$ret$43 = element_12.
|
|
3739
|
+
var tmp$ret$43 = element_12.b1f_1;
|
|
3702
3740
|
destination_12.o2(tmp$ret$43, element_12);
|
|
3703
3741
|
}
|
|
3704
|
-
var
|
|
3742
|
+
var tmp_11 = plus(tmp_10, destination_12);
|
|
3705
3743
|
// Inline function 'kotlin.collections.associateBy' call
|
|
3706
3744
|
var capacity_10 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_9, 10)), 16);
|
|
3707
3745
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -3709,15 +3747,15 @@
|
|
|
3709
3747
|
var _iterator__ex2g4s_13 = destination_9.s();
|
|
3710
3748
|
while (_iterator__ex2g4s_13.t()) {
|
|
3711
3749
|
var element_13 = _iterator__ex2g4s_13.u();
|
|
3712
|
-
var tmp$ret$46 = element_13.
|
|
3750
|
+
var tmp$ret$46 = element_13.c1f_1;
|
|
3713
3751
|
destination_13.o2(tmp$ret$46, element_13);
|
|
3714
3752
|
}
|
|
3715
|
-
|
|
3753
|
+
tmp_8.l1e_1 = plus(tmp_11, destination_13);
|
|
3716
3754
|
}
|
|
3717
|
-
protoOf(Units).
|
|
3718
|
-
var tmp0_elvis_lhs = this.
|
|
3719
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? this.
|
|
3720
|
-
var unit = tmp1_elvis_lhs == null ? this.
|
|
3755
|
+
protoOf(Units).m1e = function (name) {
|
|
3756
|
+
var tmp0_elvis_lhs = this.j1e_1.k2(name);
|
|
3757
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? this.k1e_1.k2(name) : tmp0_elvis_lhs;
|
|
3758
|
+
var unit = tmp1_elvis_lhs == null ? this.l1e_1.k2(name) : tmp1_elvis_lhs;
|
|
3721
3759
|
if (!(unit == null)) {
|
|
3722
3760
|
return unit;
|
|
3723
3761
|
} else {
|
|
@@ -3746,37 +3784,38 @@
|
|
|
3746
3784
|
}
|
|
3747
3785
|
function UnitConversions() {
|
|
3748
3786
|
UnitConversions_instance = this;
|
|
3749
|
-
this.
|
|
3750
|
-
this.
|
|
3751
|
-
this.
|
|
3752
|
-
this.
|
|
3753
|
-
this.
|
|
3754
|
-
this.
|
|
3755
|
-
this.
|
|
3756
|
-
this.
|
|
3757
|
-
|
|
3758
|
-
|
|
3787
|
+
this.r1e_1 = 0.00422675;
|
|
3788
|
+
this.s1e_1 = 0.202884;
|
|
3789
|
+
this.t1e_1 = setOf([Units_getInstance().v1d_1, Units_getInstance().w1d_1, Units_getInstance().b1e_1]);
|
|
3790
|
+
this.u1e_1 = listOf([to(0.0, Units_getInstance().o1d_1), to(1000.0, Units_getInstance().p1d_1), to(0.0, Units_getInstance().s1d_1), to(2.5, Units_getInstance().v1d_1), to(15.0, Units_getInstance().w1d_1), to(125.0, Units_getInstance().b1e_1), to(1000.0, Units_getInstance().u1d_1), to(0.0, Units_getInstance().f1e_1), to(10.0, Units_getInstance().g1e_1)]);
|
|
3791
|
+
this.v1e_1 = listOf([to(0.0, Units_getInstance().o1d_1), to(1000.0, Units_getInstance().p1d_1), to(0.0, Units_getInstance().s1d_1), to(1000.0, Units_getInstance().u1d_1), to(0.0, Units_getInstance().f1e_1), to(10.0, Units_getInstance().g1e_1)]);
|
|
3792
|
+
this.w1e_1 = listOf_0(to(0.0, Units_getInstance().n1d_1));
|
|
3793
|
+
this.x1e_1 = listOf([to(0.0, Units_getInstance().q1d_1), to(16.0 * Units_getInstance().q1d_1.h1f_1, Units_getInstance().r1d_1), to(0.0, Units_getInstance().x1d_1), to(3.0 * Units_getInstance().x1d_1.h1f_1, Units_getInstance().y1d_1), to(4.0 * Units_getInstance().x1d_1.h1f_1, Units_getInstance().x1d_1), to(6.0 * Units_getInstance().x1d_1.h1f_1, Units_getInstance().y1d_1), to(7.0 * Units_getInstance().x1d_1.h1f_1, Units_getInstance().x1d_1), to(9.0 * Units_getInstance().x1d_1.h1f_1, Units_getInstance().y1d_1), to(10.0 * Units_getInstance().x1d_1.h1f_1, Units_getInstance().x1d_1), to(12.0 * Units_getInstance().x1d_1.h1f_1, Units_getInstance().a1e_1), to(768.0 * Units_getInstance().x1d_1.h1f_1, Units_getInstance().e1e_1), to(0.0, Units_getInstance().h1e_1)]);
|
|
3794
|
+
this.y1e_1 = listOf([to(0.0, Units_getInstance().q1d_1), to(16.0 * Units_getInstance().q1d_1.h1f_1, Units_getInstance().r1d_1), to(0.0, Units_getInstance().x1d_1), to(3.0 * Units_getInstance().x1d_1.h1f_1, Units_getInstance().y1d_1), to(12.0 * Units_getInstance().x1d_1.h1f_1, Units_getInstance().a1e_1), to(0.0, Units_getInstance().h1e_1)]);
|
|
3795
|
+
this.z1e_1 = listOf([to(0.0, Units_getInstance().q1d_1), to(16.0 * Units_getInstance().q1d_1.h1f_1, Units_getInstance().r1d_1), to(0.0, Units_getInstance().x1d_1), to(3.0 * Units_getInstance().x1d_1.h1f_1, Units_getInstance().y1d_1), to(6.0 * Units_getInstance().x1d_1.h1f_1, Units_getInstance().z1d_1), to(768.0 * Units_getInstance().x1d_1.h1f_1, Units_getInstance().e1e_1), to(0.0, Units_getInstance().h1e_1)]);
|
|
3796
|
+
}
|
|
3797
|
+
protoOf(UnitConversions).y1j = function (amount) {
|
|
3759
3798
|
var tmp;
|
|
3760
3799
|
if (!(amount.c1d_1 == null)) {
|
|
3761
|
-
var tmp_0 = amount.a1d_1 * amount.c1d_1.
|
|
3800
|
+
var tmp_0 = amount.a1d_1 * amount.c1d_1.h1f_1;
|
|
3762
3801
|
var tmp0_safe_receiver = amount.b1d_1;
|
|
3763
3802
|
var tmp_1;
|
|
3764
3803
|
if (tmp0_safe_receiver == null) {
|
|
3765
3804
|
tmp_1 = null;
|
|
3766
3805
|
} else {
|
|
3767
3806
|
// Inline function 'kotlin.let' call
|
|
3768
|
-
tmp_1 = tmp0_safe_receiver * amount.c1d_1.
|
|
3807
|
+
tmp_1 = tmp0_safe_receiver * amount.c1d_1.h1f_1;
|
|
3769
3808
|
}
|
|
3770
3809
|
var tmp_2 = tmp_1;
|
|
3771
|
-
var tmp1_subject = amount.c1d_1.
|
|
3810
|
+
var tmp1_subject = amount.c1d_1.f1f_1;
|
|
3772
3811
|
var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.s2_1;
|
|
3773
|
-
tmp = amount.f1d(tmp_0, tmp_2, tmp0 === 2 ? Units_getInstance().
|
|
3812
|
+
tmp = amount.f1d(tmp_0, tmp_2, tmp0 === 2 ? Units_getInstance().f1e_1 : tmp0 === 1 ? Units_getInstance().s1d_1 : tmp0 === 0 ? Units_getInstance().o1d_1 : amount.c1d_1);
|
|
3774
3813
|
} else {
|
|
3775
3814
|
tmp = amount;
|
|
3776
3815
|
}
|
|
3777
3816
|
return tmp;
|
|
3778
3817
|
};
|
|
3779
|
-
protoOf(UnitConversions).
|
|
3818
|
+
protoOf(UnitConversions).a1f = function (amount, target, factor, density) {
|
|
3780
3819
|
var tmp = amount.a1d_1 * factor;
|
|
3781
3820
|
var tmp0_safe_receiver = amount.b1d_1;
|
|
3782
3821
|
var tmp_0;
|
|
@@ -3790,50 +3829,58 @@
|
|
|
3790
3829
|
if (scaledAmount.c1d_1 == null || (equals(target, Metric_instance) && factor === 1.0)) {
|
|
3791
3830
|
return scaledAmount;
|
|
3792
3831
|
}
|
|
3793
|
-
var smallestUnitAmount = this.
|
|
3832
|
+
var smallestUnitAmount = this.y1j(scaledAmount);
|
|
3794
3833
|
var tmp_1;
|
|
3795
3834
|
if (equals(target, Metric_instance)) {
|
|
3796
|
-
tmp_1 = contains(this.
|
|
3835
|
+
tmp_1 = contains(this.t1e_1, amount.c1d_1) ? this.u1e_1 : this.v1e_1;
|
|
3797
3836
|
} else if (equals(target, USCustomary_instance)) {
|
|
3798
3837
|
var tmp_2;
|
|
3799
3838
|
var tmp_3;
|
|
3800
3839
|
if (amount.d1d_1 === true) {
|
|
3801
3840
|
var tmp2_safe_receiver = amount.c1d_1;
|
|
3802
|
-
tmp_3 = equals(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
3841
|
+
tmp_3 = equals(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.f1f_1, UnitType_WEIGHT_getInstance());
|
|
3803
3842
|
} else {
|
|
3804
3843
|
tmp_3 = false;
|
|
3805
3844
|
}
|
|
3806
3845
|
if (tmp_3) {
|
|
3807
|
-
tmp_2 = this.
|
|
3846
|
+
tmp_2 = this.y1e_1;
|
|
3808
3847
|
} else {
|
|
3809
|
-
tmp_2 = this.
|
|
3848
|
+
tmp_2 = this.x1e_1;
|
|
3810
3849
|
}
|
|
3811
3850
|
tmp_1 = tmp_2;
|
|
3812
3851
|
} else if (equals(target, Imperial_instance)) {
|
|
3813
|
-
tmp_1 = this.
|
|
3852
|
+
tmp_1 = this.z1e_1;
|
|
3853
|
+
} else if (equals(target, Butter_instance)) {
|
|
3854
|
+
tmp_1 = this.w1e_1;
|
|
3814
3855
|
} else {
|
|
3815
3856
|
noWhenBranchMatchedException();
|
|
3816
3857
|
}
|
|
3817
3858
|
var ladder = tmp_1;
|
|
3818
3859
|
var tmp_4;
|
|
3819
3860
|
var tmp_5;
|
|
3820
|
-
if (
|
|
3821
|
-
|
|
3822
|
-
tmp_5 = equals(tmp4_safe_receiver == null ? null : tmp4_safe_receiver.d1f_1, UnitType_WEIGHT_getInstance());
|
|
3861
|
+
if (equals(target, Butter_instance) && !(density == null)) {
|
|
3862
|
+
tmp_5 = true;
|
|
3823
3863
|
} else {
|
|
3824
|
-
|
|
3864
|
+
var tmp_6;
|
|
3865
|
+
if (amount.d1d_1 === true && equals(target, USCustomary_instance) && !(density == null)) {
|
|
3866
|
+
var tmp4_safe_receiver = amount.c1d_1;
|
|
3867
|
+
tmp_6 = equals(tmp4_safe_receiver == null ? null : tmp4_safe_receiver.f1f_1, UnitType_WEIGHT_getInstance());
|
|
3868
|
+
} else {
|
|
3869
|
+
tmp_6 = false;
|
|
3870
|
+
}
|
|
3871
|
+
tmp_5 = tmp_6;
|
|
3825
3872
|
}
|
|
3826
3873
|
if (tmp_5) {
|
|
3827
|
-
var
|
|
3874
|
+
var tmp_7 = smallestUnitAmount.a1d_1 / density;
|
|
3828
3875
|
var tmp3_safe_receiver = smallestUnitAmount.b1d_1;
|
|
3829
|
-
var
|
|
3876
|
+
var tmp_8;
|
|
3830
3877
|
if (tmp3_safe_receiver == null) {
|
|
3831
|
-
|
|
3878
|
+
tmp_8 = null;
|
|
3832
3879
|
} else {
|
|
3833
3880
|
// Inline function 'kotlin.let' call
|
|
3834
|
-
|
|
3881
|
+
tmp_8 = tmp3_safe_receiver / density;
|
|
3835
3882
|
}
|
|
3836
|
-
tmp_4 = new Amount(
|
|
3883
|
+
tmp_4 = new Amount(tmp_7, tmp_8, Units_getInstance().s1d_1);
|
|
3837
3884
|
} else {
|
|
3838
3885
|
tmp_4 = smallestUnitAmount;
|
|
3839
3886
|
}
|
|
@@ -3845,7 +3892,7 @@
|
|
|
3845
3892
|
while (_iterator__ex2g4s.t()) {
|
|
3846
3893
|
var element = _iterator__ex2g4s.u();
|
|
3847
3894
|
var tmp0_safe_receiver_0 = amountToConvert.c1d_1;
|
|
3848
|
-
if (equals(element.gd_1.
|
|
3895
|
+
if (equals(element.gd_1.f1f_1, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.f1f_1)) {
|
|
3849
3896
|
destination.w(element);
|
|
3850
3897
|
}
|
|
3851
3898
|
}
|
|
@@ -3864,23 +3911,23 @@
|
|
|
3864
3911
|
}
|
|
3865
3912
|
var tmp5_safe_receiver = tmp$ret$8;
|
|
3866
3913
|
var mostRelevantUnit = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.gd_1;
|
|
3867
|
-
var
|
|
3914
|
+
var tmp_9;
|
|
3868
3915
|
if (mostRelevantUnit == null) {
|
|
3869
|
-
|
|
3916
|
+
tmp_9 = null;
|
|
3870
3917
|
} else {
|
|
3871
3918
|
// Inline function 'kotlin.let' call
|
|
3872
|
-
var
|
|
3919
|
+
var tmp_10 = amountToConvert.a1d_1 / mostRelevantUnit.h1f_1;
|
|
3873
3920
|
var tmp0_safe_receiver_1 = amountToConvert.b1d_1;
|
|
3874
|
-
var
|
|
3921
|
+
var tmp_11;
|
|
3875
3922
|
if (tmp0_safe_receiver_1 == null) {
|
|
3876
|
-
|
|
3923
|
+
tmp_11 = null;
|
|
3877
3924
|
} else {
|
|
3878
3925
|
// Inline function 'kotlin.let' call
|
|
3879
|
-
|
|
3926
|
+
tmp_11 = tmp0_safe_receiver_1 / mostRelevantUnit.h1f_1;
|
|
3880
3927
|
}
|
|
3881
|
-
|
|
3928
|
+
tmp_9 = new Amount(tmp_10, tmp_11, mostRelevantUnit);
|
|
3882
3929
|
}
|
|
3883
|
-
var tmp7_elvis_lhs =
|
|
3930
|
+
var tmp7_elvis_lhs = tmp_9;
|
|
3884
3931
|
return tmp7_elvis_lhs == null ? amountToConvert : tmp7_elvis_lhs;
|
|
3885
3932
|
};
|
|
3886
3933
|
var UnitConversions_instance;
|
|
@@ -3941,12 +3988,36 @@
|
|
|
3941
3988
|
function parseTemplate_0(templateString) {
|
|
3942
3989
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
3943
3990
|
var parsedTemplate = parseTemplate(templateString);
|
|
3944
|
-
return parsedTemplate.
|
|
3991
|
+
return parsedTemplate.k1f_1;
|
|
3945
3992
|
}
|
|
3946
|
-
function renderTemplate(templateElements, session) {
|
|
3993
|
+
function renderTemplate(templateElements, session, unit) {
|
|
3947
3994
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
3995
|
+
var tmp;
|
|
3996
|
+
switch (unit) {
|
|
3997
|
+
case 'Imperial':
|
|
3998
|
+
tmp = Imperial_instance;
|
|
3999
|
+
break;
|
|
4000
|
+
case 'Metric':
|
|
4001
|
+
tmp = Metric_instance;
|
|
4002
|
+
break;
|
|
4003
|
+
case 'US':
|
|
4004
|
+
tmp = USCustomary_instance;
|
|
4005
|
+
break;
|
|
4006
|
+
case 'USWithMetric':
|
|
4007
|
+
tmp = USCustomaryWithMetric_instance;
|
|
4008
|
+
break;
|
|
4009
|
+
case 'USWithImperial':
|
|
4010
|
+
tmp = USCustomaryWithImperial_instance;
|
|
4011
|
+
break;
|
|
4012
|
+
case 'Combined':
|
|
4013
|
+
tmp = USCombined_instance;
|
|
4014
|
+
break;
|
|
4015
|
+
default:
|
|
4016
|
+
throw IllegalArgumentException_init_$Create$('Unknown unit: ' + unit);
|
|
4017
|
+
}
|
|
4018
|
+
var measuringSystem = tmp;
|
|
3948
4019
|
var template = new ParsedTemplate(templateElements);
|
|
3949
|
-
return session.
|
|
4020
|
+
return session.j1f(template, 1.0, measuringSystem);
|
|
3950
4021
|
}
|
|
3951
4022
|
function createTemplateSession(rawDensityData) {
|
|
3952
4023
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
@@ -3985,7 +4056,7 @@
|
|
|
3985
4056
|
//endregion
|
|
3986
4057
|
//region block: init
|
|
3987
4058
|
Companion_instance_1 = new Companion_0();
|
|
3988
|
-
internalDensityData = '{"prepared_at":"2026-01-26T17:32:21.461198","key":["id","name","normalised_name","density"],"values":[[982,"Almonds (ground)","ground almond",0.83],[983,"Almonds (whole)","almond",0.71],[984,"Basil (whole, inc stalk)","basil",3.33],[985,"Basil (whole leaves)","basil",6.67],[986,"Basil (chopped)","chopped basil",2.5],[987,"Breadcrumbs (dried)","dried breadcrumb",1.18],[988,"Breadcrumbs (fresh)","fresh breadcrumb",1.67],[989,"Buckwheat flour","buckwheat flour",0.74],[990,"Bulgur wheat","bulgur wheat",0.5],[991,"Butter (cubed)","diced butter",0.67],[992,"Butter (softened or melted)","butter",0.
|
|
4059
|
+
internalDensityData = '{"prepared_at":"2026-01-26T17:32:21.461198","key":["id","name","normalised_name","density"],"values":[[982,"Almonds (ground)","ground almond",0.83],[983,"Almonds (whole)","almond",0.71],[984,"Basil (whole, inc stalk)","basil",3.33],[985,"Basil (whole leaves)","basil",6.67],[986,"Basil (chopped)","chopped basil",2.5],[987,"Breadcrumbs (dried)","dried breadcrumb",1.18],[988,"Breadcrumbs (fresh)","fresh breadcrumb",1.67],[989,"Buckwheat flour","buckwheat flour",0.74],[990,"Bulgur wheat","bulgur wheat",0.5],[991,"Butter (cubed)","diced butter",0.67],[992,"Butter (softened or melted)","butter",0.96],[993,"Cashews (whole)","cashew",0.74],[994,"Cheese (cheddar, grated)","grated cheddar",1.0],[995,"Cheese (feta, broken into chunks)","diced feta",0.67],[996,"Cheese (mozzarella, grated)","grated mozzarella",0.8],[997,"Cheese (parmesan, grated)","grated parmesan",1.18],[998,"Cherry tomatoes (whole)","cherry tomato",0.67],[999,"Chickpea (gram) flour","gram flour",0.8],[1000,"Chives (chopped)","chopped chive",2.5],[1001,"Chives (whole)","chive",3.33],[1002,"Chocolate (broken into chunks)","diced chocolate",0.63],[1003,"Chocolate chips","chocolate chip",0.57],[1004,"Cocoa powder (Dutch-processed)","cocoa powder",1.05],[1005,"Coconut (desiccated)","desiccated coconut",1.33],[1006,"Coconut chips","coconut chip",2.0],[1007,"Coconut milk","coconut milk",0.44],[1008,"Coriander (chopped)","chopped coriander",2.5],[1009,"Coriander (whole, inc stalk)","coriander",3.33],[1010,"Coriander (whole leaves)","coriander",6.67],[1011,"Corn kernels (defrosted/canned)","sweetcorn kernel",0.57],[1012,"Cornmeal (fine)","fine cornmeal",0.67],[1013,"Cornstarch","cornflour",0.77],[1014,"Couscous","couscous",0.61],[1015,"Cream (clotted)","clotted cream",0.44],[1016,"Cream (double)","double cream",0.42],[1017,"Cream (single)","single cream",0.42],[1018,"Cream cheese","cream cheese",0.42],[1019,"Creme fraiche","sour cream",0.42],[1020,"Currants","currant",0.67],[1021,"Dill (chopped)","chopped dill",3.33],[1022,"Dill (whole leaves)","dill",6.67],[1023,"Dill (whole, inc stalk)","dill",5.0],[1024,"Flour (all-purpose/plain)","plain flour",0.8],[1025,"Flour (00 pizza)","00 flour",0.69],[1026,"Flour (rye)","rye flour",0.77],[1027,"Flour (spelt)","spelt flour",0.77],[1028,"Flour (strong white bread)","strong white bread flour",0.8],[1029,"Ghee (melted or softened)","ghee",0.45],[1030,"Ginger (fresh, sliced)","sliced ginger",0.91],[1031,"Hazelnuts","hazelnut",0.67],[1032,"Honey","honey",0.3],[1033,"Lemon juice","lemon juice",0.42],[1034,"Maple syrup","maple syrup",0.32],[1035,"Mascarpone","mascarpone",0.44],[1036,"Milk","milk",0.42],[1037,"Mint (whole, inc stalk)","mint",4.0],[1038,"Mint (chopped)","chopped mint",3.33],[1039,"Mint (whole leaves)","mint",6.67],[1040,"Mushrooms (chopped)","chopped mushroom",1.18],[1041,"Mushrooms (sliced)","sliced mushroom",1.33],[1042,"Mushrooms (whole)","mushroom",1.0],[1043,"Oil (sunflower and vegetable)","vegetable oil",0.47],[1044,"Olive oil","olive oil",0.47],[1045,"Olives (whole, pitted)","pitted olive",0.69],[1046,"Olives (whole)","olive",0.57],[1047,"Onions (sliced)","sliced onion",0.91],[1048,"Onions (chopped)","chopped onion",0.69],[1049,"Panko breadcrumbs","panko breadcrumb",1.18],[1050,"Parsley (whole, inc stalk)","parsley",3.33],[1051,"Parsley (chopped)","chopped parsley",2.5],[1052,"Parsley (whole leaves)","parsley",6.67],[1053,"Peanut butter","peanut butter",0.4],[1054,"Peanuts (shelled)","peanut",0.67],[1055,"Pine nuts","pine nut",0.67],[1056,"Pistachios (shelled)","pistachio",0.71],[1057,"Polenta","polenta",0.57],[1058,"Quinoa","quinoa",0.57],[1059,"Raisins","raisin",0.69],[1060,"Raspberries","raspberry",0.71],[1061,"Rhubarb (chopped into chunks)","chopped rhubarb",0.71],[1062,"Rice (long-grain, uncooked)","long grain rice",0.51],[1063,"Rice (bomba paella, uncooked)","bomba rice",0.5],[1064,"Rice (short-grain, uncooked)","short grain rice",0.5],[1065,"Rolled oats","rolled oat",1.05],[1066,"Sage (whole, inc stalk)","sage",3.33],[1067,"Sage (whole leaves)","sage",5.0],[1068,"Sage (chopped)","chopped sage",4.0],[1069,"Salt (flaky sea salt)","salt",0.71],[1070,"Salt (fine sea salt)","salt",0.36],[1071,"Scallions (spring onions, sliced/chopped)","sliced spring onion",1.11],[1072,"Sesame seeds","sesame seed",0.67],[1073,"Soured cream","sour cream",0.42],[1074,"Strawberries (whole, hulled)","strawberry",0.71],[1075,"Sugar (brown)","brown sugar",0.57],[1076,"Sugar (confectioner\'s/icing)","icing sugar",0.74],[1077,"Sugar (demerara)","demerara sugar",0.5],[1078,"Sugar (granulated)","granulated sugar",0.48],[1079,"Sugar (superfine/caster)","caster sugar",0.54],[1080,"Sultanas","sultana",0.59],[1081,"Sunflower seeds","sunflower seed",0.67],[1082,"Tahini","tahini",0.42],[1083,"Tapioca","tapioca",0.57],[1084,"Thyme (chopped)","chopped thyme",2.5],[1085,"Thyme (whole leaves)","thyme",3.33],[1086,"Thyme (whole, inc stalk)","thyme",6.67],[1087,"Tomato paste","tomato paste",0.38],[1088,"Vanilla extract","vanilla extract",0.42],[1089,"Walnuts (pieces)","walnut piece",1.0],[1090,"Yeast (active, dried)","dried yeast",0.57],[1091,"Yoghurt","yoghurt",0.42]]}';
|
|
3989
4060
|
Companion_instance_4 = new Companion_3();
|
|
3990
4061
|
Companion_instance_5 = new Companion_4();
|
|
3991
4062
|
Companion_instance_7 = new Companion_6();
|
|
@@ -3994,6 +4065,7 @@
|
|
|
3994
4065
|
Imperial_instance = new Imperial();
|
|
3995
4066
|
Metric_instance = new Metric();
|
|
3996
4067
|
USCustomary_instance = new USCustomary();
|
|
4068
|
+
Butter_instance = new Butter();
|
|
3997
4069
|
USCustomaryWithMetric_instance = new USCustomaryWithMetric();
|
|
3998
4070
|
USCustomaryWithImperial_instance = new USCustomaryWithImperial();
|
|
3999
4071
|
USCombined_instance = new USCombined();
|