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