@guardian/feast-multiplatform-library 2.0.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/feast-multiplatform-library-library.d.ts +94 -0
- package/kotlin/feast-multiplatform-library-library.js +1579 -1431
- package/kotlin/feast-multiplatform-library-library.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +1952 -1532
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1792 -1792
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1562 -1520
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,58 +2,62 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
6
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
7
|
-
var numberToInt = kotlin_kotlin.$_$.
|
|
5
|
+
var protoOf = kotlin_kotlin.$_$.n7;
|
|
6
|
+
var initMetadataForObject = kotlin_kotlin.$_$.w6;
|
|
7
|
+
var numberToInt = kotlin_kotlin.$_$.l7;
|
|
8
8
|
var Unit_instance = kotlin_kotlin.$_$.j3;
|
|
9
|
-
var round = kotlin_kotlin.$_$.
|
|
9
|
+
var round = kotlin_kotlin.$_$.q7;
|
|
10
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ia;
|
|
11
|
+
var listOfNotNull = kotlin_kotlin.$_$.x4;
|
|
12
|
+
var joinToString = kotlin_kotlin.$_$.s4;
|
|
13
|
+
var Pair = kotlin_kotlin.$_$.m9;
|
|
10
14
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.z3;
|
|
11
15
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.d;
|
|
12
|
-
var
|
|
13
|
-
var Pair = kotlin_kotlin.$_$.k9;
|
|
14
|
-
var joinToString = kotlin_kotlin.$_$.s4;
|
|
15
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.q6;
|
|
16
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.s6;
|
|
16
17
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u1;
|
|
17
18
|
var DoubleSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l;
|
|
18
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
19
|
+
var THROW_CCE = kotlin_kotlin.$_$.o9;
|
|
19
20
|
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b;
|
|
20
21
|
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
|
|
21
22
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q1;
|
|
22
23
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r1;
|
|
23
24
|
var VOID = kotlin_kotlin.$_$.b;
|
|
24
25
|
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x1;
|
|
25
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
26
|
-
var getNumberHashCode = kotlin_kotlin.$_$.
|
|
27
|
-
var equals = kotlin_kotlin.$_$.
|
|
28
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
26
|
+
var objectCreate = kotlin_kotlin.$_$.m7;
|
|
27
|
+
var getNumberHashCode = kotlin_kotlin.$_$.n6;
|
|
28
|
+
var equals = kotlin_kotlin.$_$.l6;
|
|
29
|
+
var initMetadataForClass = kotlin_kotlin.$_$.r6;
|
|
29
30
|
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o;
|
|
30
31
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k;
|
|
31
|
-
var toString = kotlin_kotlin.$_$.
|
|
32
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
33
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
32
|
+
var toString = kotlin_kotlin.$_$.ka;
|
|
33
|
+
var getStringHashCode = kotlin_kotlin.$_$.p6;
|
|
34
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.m6;
|
|
34
35
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o1;
|
|
35
36
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.c;
|
|
36
|
-
var lazy = kotlin_kotlin.$_$.
|
|
37
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
37
|
+
var lazy = kotlin_kotlin.$_$.ga;
|
|
38
|
+
var hashCode = kotlin_kotlin.$_$.q6;
|
|
38
39
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
39
40
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.e;
|
|
40
|
-
var substring = kotlin_kotlin.$_$.
|
|
41
|
-
var
|
|
41
|
+
var substring = kotlin_kotlin.$_$.p8;
|
|
42
|
+
var charSequenceLength = kotlin_kotlin.$_$.i6;
|
|
42
43
|
var Default_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
43
44
|
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c;
|
|
44
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
45
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
46
|
-
var createKType = kotlin_kotlin.$_$.
|
|
45
|
+
var getKClass = kotlin_kotlin.$_$.z7;
|
|
46
|
+
var arrayOf = kotlin_kotlin.$_$.z9;
|
|
47
|
+
var createKType = kotlin_kotlin.$_$.x7;
|
|
47
48
|
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j2;
|
|
48
49
|
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c2;
|
|
49
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
50
|
-
var print = kotlin_kotlin.$_$.
|
|
51
|
-
var Exception = kotlin_kotlin.$_$.
|
|
52
|
-
var substring_0 = kotlin_kotlin.$_$.
|
|
50
|
+
var isInterface = kotlin_kotlin.$_$.e7;
|
|
51
|
+
var print = kotlin_kotlin.$_$.m5;
|
|
52
|
+
var Exception = kotlin_kotlin.$_$.j9;
|
|
53
|
+
var substring_0 = kotlin_kotlin.$_$.o8;
|
|
54
|
+
var isBlank = kotlin_kotlin.$_$.h8;
|
|
53
55
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
56
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.u6;
|
|
54
57
|
var FloatSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m;
|
|
55
58
|
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n;
|
|
56
|
-
var
|
|
59
|
+
var defineProp = kotlin_kotlin.$_$.k6;
|
|
60
|
+
var toString_0 = kotlin_kotlin.$_$.p7;
|
|
57
61
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.v;
|
|
58
62
|
//endregion
|
|
59
63
|
//region block: pre-declaration
|
|
@@ -93,13 +97,14 @@
|
|
|
93
97
|
initMetadataForCompanion(Companion_8);
|
|
94
98
|
initMetadataForObject($serializer_10, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
95
99
|
initMetadataForClass(InstructionsTemplateElement, 'InstructionsTemplateElement', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_10});
|
|
100
|
+
initMetadataForInterface(TemplateElement, 'TemplateElement');
|
|
101
|
+
initMetadataForClass(TemplateConst, 'TemplateConst', VOID, VOID, [TemplateElement]);
|
|
96
102
|
initMetadataForCompanion(Companion_9);
|
|
97
103
|
initMetadataForObject($serializer_11, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
104
|
+
initMetadataForClass(QuantityPlaceholder, 'QuantityPlaceholder', VOID, VOID, [TemplateElement], VOID, VOID, {0: $serializer_getInstance_11});
|
|
98
105
|
initMetadataForCompanion(Companion_10);
|
|
99
106
|
initMetadataForObject($serializer_12, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
100
|
-
initMetadataForClass(
|
|
101
|
-
initMetadataForClass(QuantityPlaceholder, 'QuantityPlaceholder', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_11});
|
|
102
|
-
initMetadataForClass(OvenTemperaturePlaceholder, 'OvenTemperaturePlaceholder', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_12});
|
|
107
|
+
initMetadataForClass(OvenTemperaturePlaceholder, 'OvenTemperaturePlaceholder', OvenTemperaturePlaceholder, VOID, [TemplateElement], VOID, VOID, {0: $serializer_getInstance_12});
|
|
103
108
|
initMetadataForClass(ParsedTemplate, 'ParsedTemplate');
|
|
104
109
|
//endregion
|
|
105
110
|
function Imperial() {
|
|
@@ -117,7 +122,7 @@
|
|
|
117
122
|
function formatFraction(number) {
|
|
118
123
|
var integerPart = numberToInt(number);
|
|
119
124
|
var fractionalPart = number - integerPart;
|
|
120
|
-
var fractionString = (0.12 <= fractionalPart ? fractionalPart <= 0.13 : false) ? '\u215B' : fractionalPart === 0.25 ? '\xBC' : fractionalPart === 0.5 ? '\xBD' : fractionalPart === 0.75 ? '\xBE' : null;
|
|
125
|
+
var fractionString = (0.12 <= fractionalPart ? fractionalPart <= 0.13 : false) ? '\u215B' : (0.33 <= fractionalPart ? fractionalPart <= 0.34 : false) ? '\u2153' : (0.66 <= fractionalPart ? fractionalPart <= 0.67 : false) ? '\u2154' : fractionalPart === 0.25 ? '\xBC' : fractionalPart === 0.5 ? '\xBD' : fractionalPart === 0.75 ? '\xBE' : null;
|
|
121
126
|
var tmp;
|
|
122
127
|
if (!(fractionString == null)) {
|
|
123
128
|
var tmp_0;
|
|
@@ -152,103 +157,129 @@
|
|
|
152
157
|
}
|
|
153
158
|
return roundedNumber.toString();
|
|
154
159
|
}
|
|
155
|
-
function
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
160
|
+
function renderTemplateElement(element, factor) {
|
|
161
|
+
var tmp;
|
|
162
|
+
if (element instanceof TemplateConst) {
|
|
163
|
+
tmp = element.value;
|
|
164
|
+
} else {
|
|
165
|
+
if (element instanceof QuantityPlaceholder) {
|
|
166
|
+
var max = !(element.min === element.max) ? element.max : null;
|
|
167
|
+
var tmp_0;
|
|
168
|
+
if (element.scale) {
|
|
169
|
+
var scaledMin = element.min * factor;
|
|
170
|
+
var tmp_1;
|
|
171
|
+
if (max == null) {
|
|
172
|
+
tmp_1 = null;
|
|
173
|
+
} else {
|
|
174
|
+
// Inline function 'kotlin.let' call
|
|
175
|
+
tmp_1 = max * factor;
|
|
176
|
+
}
|
|
177
|
+
var scaledMax = tmp_1;
|
|
178
|
+
tmp_0 = new Pair(scaledMin, scaledMax);
|
|
179
|
+
} else {
|
|
180
|
+
tmp_0 = new Pair(element.min, max);
|
|
181
|
+
}
|
|
182
|
+
var _destruct__k2r9zo = tmp_0;
|
|
183
|
+
var scaledMin_0 = _destruct__k2r9zo.cd();
|
|
184
|
+
var scaledMax_0 = _destruct__k2r9zo.dd();
|
|
185
|
+
var unit = !(element.unit == null) ? ' ' + element.unit : '';
|
|
186
|
+
var decimals;
|
|
187
|
+
switch (unit) {
|
|
188
|
+
case 'g':
|
|
189
|
+
case 'ml':
|
|
190
|
+
decimals = 0;
|
|
191
|
+
break;
|
|
192
|
+
default:
|
|
193
|
+
decimals = 2;
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
var fraction;
|
|
197
|
+
switch (element.unit) {
|
|
198
|
+
case 'tsp':
|
|
199
|
+
case 'tbsp':
|
|
200
|
+
case 'cup':
|
|
201
|
+
case 'cups':
|
|
202
|
+
fraction = true;
|
|
203
|
+
break;
|
|
204
|
+
case null:
|
|
205
|
+
fraction = true;
|
|
206
|
+
break;
|
|
207
|
+
default:
|
|
208
|
+
fraction = false;
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
var tmp_2;
|
|
212
|
+
if (!(scaledMax_0 == null)) {
|
|
213
|
+
tmp_2 = formatAmount(scaledMin_0, decimals, fraction) + '-' + formatAmount(scaledMax_0, decimals, fraction) + unit;
|
|
214
|
+
} else {
|
|
215
|
+
tmp_2 = formatAmount(scaledMin_0, decimals, fraction) + unit;
|
|
216
|
+
}
|
|
217
|
+
tmp = tmp_2;
|
|
166
218
|
} else {
|
|
167
|
-
if (
|
|
168
|
-
var
|
|
169
|
-
if (
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
tmp_2 = null;
|
|
177
|
-
} else {
|
|
178
|
-
// Inline function 'kotlin.let' call
|
|
179
|
-
tmp_2 = tmp1_safe_receiver * factor;
|
|
180
|
-
}
|
|
181
|
-
tmp_1 = tmp_2;
|
|
219
|
+
if (element instanceof OvenTemperaturePlaceholder) {
|
|
220
|
+
var tmp_3;
|
|
221
|
+
if (element.temperatureFanC == null) {
|
|
222
|
+
tmp_3 = null;
|
|
223
|
+
} else {
|
|
224
|
+
// Inline function 'kotlin.let' call
|
|
225
|
+
var tmp_4;
|
|
226
|
+
if (element.temperatureC == null) {
|
|
227
|
+
tmp_4 = '' + element.temperatureFanC + 'C fan';
|
|
182
228
|
} else {
|
|
183
|
-
|
|
229
|
+
tmp_4 = ' (' + element.temperatureFanC + 'C fan)';
|
|
184
230
|
}
|
|
185
|
-
|
|
186
|
-
tmp_0 = new Pair(scaledMin, scaledMax);
|
|
187
|
-
} else {
|
|
188
|
-
tmp_0 = new Pair(item.h1c_1, item.i1c_1);
|
|
189
|
-
}
|
|
190
|
-
var _destruct__k2r9zo = tmp_0;
|
|
191
|
-
var scaledMin_0 = _destruct__k2r9zo.cc();
|
|
192
|
-
var scaledMax_0 = _destruct__k2r9zo.dc();
|
|
193
|
-
var unit = !(item.j1c_1 == null) ? ' ' + item.j1c_1 : '';
|
|
194
|
-
var decimals;
|
|
195
|
-
switch (unit) {
|
|
196
|
-
case 'g':
|
|
197
|
-
case 'ml':
|
|
198
|
-
decimals = 0;
|
|
199
|
-
break;
|
|
200
|
-
default:
|
|
201
|
-
decimals = 2;
|
|
202
|
-
break;
|
|
231
|
+
tmp_3 = tmp_4;
|
|
203
232
|
}
|
|
204
|
-
var
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
break;
|
|
212
|
-
case null:
|
|
213
|
-
fraction = true;
|
|
214
|
-
break;
|
|
215
|
-
default:
|
|
216
|
-
fraction = false;
|
|
217
|
-
break;
|
|
233
|
+
var fanTempC = tmp_3;
|
|
234
|
+
var tmp_5;
|
|
235
|
+
if (element.temperatureC == null) {
|
|
236
|
+
tmp_5 = null;
|
|
237
|
+
} else {
|
|
238
|
+
// Inline function 'kotlin.let' call
|
|
239
|
+
tmp_5 = '' + element.temperatureC + 'C';
|
|
218
240
|
}
|
|
219
|
-
var
|
|
220
|
-
|
|
221
|
-
|
|
241
|
+
var tmp_6 = tmp_5;
|
|
242
|
+
var tmp6_safe_receiver = element.temperatureF;
|
|
243
|
+
var tmp_7;
|
|
244
|
+
if (tmp6_safe_receiver == null) {
|
|
245
|
+
tmp_7 = null;
|
|
222
246
|
} else {
|
|
223
|
-
|
|
247
|
+
// Inline function 'kotlin.let' call
|
|
248
|
+
tmp_7 = '/' + tmp6_safe_receiver + 'F';
|
|
224
249
|
}
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
temp = temp + (' (' + item.e1c_1 + 'C fan)');
|
|
231
|
-
}
|
|
232
|
-
if (!(item.f1c_1 == null)) {
|
|
233
|
-
temp = temp + ('/' + item.f1c_1 + 'F');
|
|
234
|
-
}
|
|
235
|
-
if (!(item.g1c_1 == null)) {
|
|
236
|
-
temp = temp + ('/gas mark ' + formatFraction(item.g1c_1));
|
|
237
|
-
}
|
|
238
|
-
tmp = temp;
|
|
250
|
+
var tmp_8 = tmp_7;
|
|
251
|
+
var tmp7_safe_receiver = element.gasMark;
|
|
252
|
+
var tmp_9;
|
|
253
|
+
if (tmp7_safe_receiver == null) {
|
|
254
|
+
tmp_9 = null;
|
|
239
255
|
} else {
|
|
240
|
-
|
|
256
|
+
// Inline function 'kotlin.let' call
|
|
257
|
+
tmp_9 = '/gas mark ' + formatFraction(tmp7_safe_receiver);
|
|
241
258
|
}
|
|
259
|
+
tmp = joinToString(listOfNotNull([tmp_6, fanTempC, tmp_8, tmp_9]), '');
|
|
260
|
+
} else {
|
|
261
|
+
noWhenBranchMatchedException();
|
|
242
262
|
}
|
|
243
263
|
}
|
|
244
|
-
|
|
245
|
-
|
|
264
|
+
}
|
|
265
|
+
return tmp;
|
|
266
|
+
}
|
|
267
|
+
function renderTemplate(template, factor) {
|
|
268
|
+
// Inline function 'kotlin.collections.map' call
|
|
269
|
+
var this_0 = template.g1d_1;
|
|
270
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
271
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
272
|
+
var _iterator__ex2g4s = this_0.h();
|
|
273
|
+
while (_iterator__ex2g4s.i()) {
|
|
274
|
+
var item = _iterator__ex2g4s.j();
|
|
275
|
+
var tmp$ret$0 = renderTemplateElement(item, factor);
|
|
276
|
+
destination.f(tmp$ret$0);
|
|
246
277
|
}
|
|
247
278
|
var scaledParts = destination;
|
|
248
279
|
return joinToString(scaledParts, '');
|
|
249
280
|
}
|
|
250
|
-
function
|
|
251
|
-
var tmp0_safe_receiver = recipe.
|
|
281
|
+
function scaleAndConvertUnitRecipe(recipe, factor, unit) {
|
|
282
|
+
var tmp0_safe_receiver = recipe.t1d_1;
|
|
252
283
|
var tmp;
|
|
253
284
|
if (tmp0_safe_receiver == null) {
|
|
254
285
|
tmp = null;
|
|
@@ -259,7 +290,7 @@
|
|
|
259
290
|
var _iterator__ex2g4s = tmp0_safe_receiver.h();
|
|
260
291
|
while (_iterator__ex2g4s.i()) {
|
|
261
292
|
var item = _iterator__ex2g4s.j();
|
|
262
|
-
var tmp0_safe_receiver_0 = item.
|
|
293
|
+
var tmp0_safe_receiver_0 = item.f1e_1;
|
|
263
294
|
var tmp_0;
|
|
264
295
|
if (tmp0_safe_receiver_0 == null) {
|
|
265
296
|
tmp_0 = null;
|
|
@@ -270,28 +301,28 @@
|
|
|
270
301
|
var _iterator__ex2g4s_0 = tmp0_safe_receiver_0.h();
|
|
271
302
|
while (_iterator__ex2g4s_0.i()) {
|
|
272
303
|
var item_0 = _iterator__ex2g4s_0.j();
|
|
273
|
-
var tmp0_safe_receiver_1 = item_0.
|
|
304
|
+
var tmp0_safe_receiver_1 = item_0.p1e_1;
|
|
274
305
|
var tmp_1;
|
|
275
306
|
if (tmp0_safe_receiver_1 == null) {
|
|
276
307
|
tmp_1 = null;
|
|
277
308
|
} else {
|
|
278
309
|
// Inline function 'kotlin.let' call
|
|
279
|
-
tmp_1 =
|
|
310
|
+
tmp_1 = renderTemplate(parseTemplate(tmp0_safe_receiver_1), factor);
|
|
280
311
|
}
|
|
281
312
|
var tmp1_elvis_lhs = tmp_1;
|
|
282
|
-
var scaledText = tmp1_elvis_lhs == null ? item_0.
|
|
283
|
-
var tmp$ret$2 = new IngredientsListIngredientsList(item_0.
|
|
313
|
+
var scaledText = tmp1_elvis_lhs == null ? item_0.n1e_1 : tmp1_elvis_lhs;
|
|
314
|
+
var tmp$ret$2 = new IngredientsListIngredientsList(item_0.h1e_1, item_0.i1e_1, item_0.j1e_1, item_0.k1e_1, item_0.l1e_1, item_0.m1e_1, scaledText, item_0.o1e_1);
|
|
284
315
|
destination_0.f(tmp$ret$2);
|
|
285
316
|
}
|
|
286
317
|
tmp_0 = destination_0;
|
|
287
318
|
}
|
|
288
|
-
var tmp$ret$5 = new IngredientElement(tmp_0, item.
|
|
319
|
+
var tmp$ret$5 = new IngredientElement(tmp_0, item.g1e_1);
|
|
289
320
|
destination.f(tmp$ret$5);
|
|
290
321
|
}
|
|
291
322
|
tmp = destination;
|
|
292
323
|
}
|
|
293
324
|
var scaledIngredients = tmp;
|
|
294
|
-
var tmp1_safe_receiver = recipe.
|
|
325
|
+
var tmp1_safe_receiver = recipe.v1d_1;
|
|
295
326
|
var tmp_2;
|
|
296
327
|
if (tmp1_safe_receiver == null) {
|
|
297
328
|
tmp_2 = null;
|
|
@@ -302,14 +333,14 @@
|
|
|
302
333
|
var _iterator__ex2g4s_1 = tmp1_safe_receiver.h();
|
|
303
334
|
while (_iterator__ex2g4s_1.i()) {
|
|
304
335
|
var item_1 = _iterator__ex2g4s_1.j();
|
|
305
|
-
var description =
|
|
306
|
-
var tmp$ret$8 = new InstructionElement(description, item_1.
|
|
336
|
+
var description = renderTemplate(parseTemplate(item_1.q1e_1), factor);
|
|
337
|
+
var tmp$ret$8 = new InstructionElement(description, item_1.r1e_1, item_1.s1e_1);
|
|
307
338
|
destination_1.f(tmp$ret$8);
|
|
308
339
|
}
|
|
309
340
|
tmp_2 = destination_1;
|
|
310
341
|
}
|
|
311
342
|
var scaledInstructions = tmp_2;
|
|
312
|
-
return new RecipeV2(recipe.
|
|
343
|
+
return new RecipeV2(recipe.h1d_1, recipe.i1d_1, recipe.j1d_1, recipe.k1d_1, recipe.l1d_1, recipe.m1d_1, recipe.n1d_1, recipe.o1d_1, recipe.p1d_1, recipe.q1d_1, recipe.r1d_1, scaledIngredients, scaledInstructions, recipe.w1d_1, recipe.x1d_1, recipe.y1d_1, recipe.z1d_1, recipe.a1e_1, recipe.b1e_1, recipe.c1e_1, recipe.d1e_1, recipe.e1e_1);
|
|
313
344
|
}
|
|
314
345
|
function Companion() {
|
|
315
346
|
}
|
|
@@ -320,63 +351,63 @@
|
|
|
320
351
|
function $serializer() {
|
|
321
352
|
$serializer_instance = this;
|
|
322
353
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.RangeClass', this, 2);
|
|
323
|
-
tmp0_serialDesc.
|
|
324
|
-
tmp0_serialDesc.
|
|
325
|
-
this.
|
|
354
|
+
tmp0_serialDesc.ws('max', true);
|
|
355
|
+
tmp0_serialDesc.ws('min', true);
|
|
356
|
+
this.t1e_1 = tmp0_serialDesc;
|
|
326
357
|
}
|
|
327
|
-
protoOf($serializer).
|
|
328
|
-
var tmp0_desc = this.
|
|
329
|
-
var tmp1_output = encoder.
|
|
330
|
-
if (tmp1_output.
|
|
331
|
-
tmp1_output.
|
|
358
|
+
protoOf($serializer).u1e = function (encoder, value) {
|
|
359
|
+
var tmp0_desc = this.t1e_1;
|
|
360
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
361
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.v1e_1 == null)) {
|
|
362
|
+
tmp1_output.fn(tmp0_desc, 0, DoubleSerializer_getInstance(), value.v1e_1);
|
|
332
363
|
}
|
|
333
|
-
if (tmp1_output.
|
|
334
|
-
tmp1_output.
|
|
364
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.w1e_1 == null)) {
|
|
365
|
+
tmp1_output.fn(tmp0_desc, 1, DoubleSerializer_getInstance(), value.w1e_1);
|
|
335
366
|
}
|
|
336
|
-
tmp1_output.
|
|
367
|
+
tmp1_output.ol(tmp0_desc);
|
|
337
368
|
};
|
|
338
|
-
protoOf($serializer).
|
|
339
|
-
return this.
|
|
369
|
+
protoOf($serializer).ri = function (encoder, value) {
|
|
370
|
+
return this.u1e(encoder, value instanceof RangeClass ? value : THROW_CCE());
|
|
340
371
|
};
|
|
341
|
-
protoOf($serializer).
|
|
342
|
-
var tmp0_desc = this.
|
|
372
|
+
protoOf($serializer).si = function (decoder) {
|
|
373
|
+
var tmp0_desc = this.t1e_1;
|
|
343
374
|
var tmp1_flag = true;
|
|
344
375
|
var tmp2_index = 0;
|
|
345
376
|
var tmp3_bitMask0 = 0;
|
|
346
377
|
var tmp4_local0 = null;
|
|
347
378
|
var tmp5_local1 = null;
|
|
348
|
-
var tmp6_input = decoder.
|
|
349
|
-
if (tmp6_input.
|
|
350
|
-
tmp4_local0 = tmp6_input.
|
|
379
|
+
var tmp6_input = decoder.nl(tmp0_desc);
|
|
380
|
+
if (tmp6_input.dm()) {
|
|
381
|
+
tmp4_local0 = tmp6_input.bm(tmp0_desc, 0, DoubleSerializer_getInstance(), tmp4_local0);
|
|
351
382
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
352
|
-
tmp5_local1 = tmp6_input.
|
|
383
|
+
tmp5_local1 = tmp6_input.bm(tmp0_desc, 1, DoubleSerializer_getInstance(), tmp5_local1);
|
|
353
384
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
354
385
|
} else
|
|
355
386
|
while (tmp1_flag) {
|
|
356
|
-
tmp2_index = tmp6_input.
|
|
387
|
+
tmp2_index = tmp6_input.em(tmp0_desc);
|
|
357
388
|
switch (tmp2_index) {
|
|
358
389
|
case -1:
|
|
359
390
|
tmp1_flag = false;
|
|
360
391
|
break;
|
|
361
392
|
case 0:
|
|
362
|
-
tmp4_local0 = tmp6_input.
|
|
393
|
+
tmp4_local0 = tmp6_input.bm(tmp0_desc, 0, DoubleSerializer_getInstance(), tmp4_local0);
|
|
363
394
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
364
395
|
break;
|
|
365
396
|
case 1:
|
|
366
|
-
tmp5_local1 = tmp6_input.
|
|
397
|
+
tmp5_local1 = tmp6_input.bm(tmp0_desc, 1, DoubleSerializer_getInstance(), tmp5_local1);
|
|
367
398
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
368
399
|
break;
|
|
369
400
|
default:
|
|
370
401
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
371
402
|
}
|
|
372
403
|
}
|
|
373
|
-
tmp6_input.
|
|
404
|
+
tmp6_input.ol(tmp0_desc);
|
|
374
405
|
return RangeClass_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
375
406
|
};
|
|
376
|
-
protoOf($serializer).
|
|
377
|
-
return this.
|
|
407
|
+
protoOf($serializer).qi = function () {
|
|
408
|
+
return this.t1e_1;
|
|
378
409
|
};
|
|
379
|
-
protoOf($serializer).
|
|
410
|
+
protoOf($serializer).ys = function () {
|
|
380
411
|
// Inline function 'kotlin.arrayOf' call
|
|
381
412
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
382
413
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -390,16 +421,16 @@
|
|
|
390
421
|
}
|
|
391
422
|
function RangeClass_init_$Init$(seen0, max, min, serializationConstructorMarker, $this) {
|
|
392
423
|
if (!(0 === (0 & seen0))) {
|
|
393
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance().
|
|
424
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance().t1e_1);
|
|
394
425
|
}
|
|
395
426
|
if (0 === (seen0 & 1))
|
|
396
|
-
$this.
|
|
427
|
+
$this.v1e_1 = null;
|
|
397
428
|
else
|
|
398
|
-
$this.
|
|
429
|
+
$this.v1e_1 = max;
|
|
399
430
|
if (0 === (seen0 & 2))
|
|
400
|
-
$this.
|
|
431
|
+
$this.w1e_1 = null;
|
|
401
432
|
else
|
|
402
|
-
$this.
|
|
433
|
+
$this.w1e_1 = min;
|
|
403
434
|
return $this;
|
|
404
435
|
}
|
|
405
436
|
function RangeClass_init_$Create$(seen0, max, min, serializationConstructorMarker) {
|
|
@@ -408,15 +439,15 @@
|
|
|
408
439
|
function RangeClass(max, min) {
|
|
409
440
|
max = max === VOID ? null : max;
|
|
410
441
|
min = min === VOID ? null : min;
|
|
411
|
-
this.
|
|
412
|
-
this.
|
|
442
|
+
this.v1e_1 = max;
|
|
443
|
+
this.w1e_1 = min;
|
|
413
444
|
}
|
|
414
445
|
protoOf(RangeClass).toString = function () {
|
|
415
|
-
return 'RangeClass(max=' + this.
|
|
446
|
+
return 'RangeClass(max=' + this.v1e_1 + ', min=' + this.w1e_1 + ')';
|
|
416
447
|
};
|
|
417
448
|
protoOf(RangeClass).hashCode = function () {
|
|
418
|
-
var result = this.
|
|
419
|
-
result = imul(result, 31) + (this.
|
|
449
|
+
var result = this.v1e_1 == null ? 0 : getNumberHashCode(this.v1e_1);
|
|
450
|
+
result = imul(result, 31) + (this.w1e_1 == null ? 0 : getNumberHashCode(this.w1e_1)) | 0;
|
|
420
451
|
return result;
|
|
421
452
|
};
|
|
422
453
|
protoOf(RangeClass).equals = function (other) {
|
|
@@ -424,9 +455,9 @@
|
|
|
424
455
|
return true;
|
|
425
456
|
if (!(other instanceof RangeClass))
|
|
426
457
|
return false;
|
|
427
|
-
if (!equals(this.
|
|
458
|
+
if (!equals(this.v1e_1, other.v1e_1))
|
|
428
459
|
return false;
|
|
429
|
-
if (!equals(this.
|
|
460
|
+
if (!equals(this.w1e_1, other.w1e_1))
|
|
430
461
|
return false;
|
|
431
462
|
return true;
|
|
432
463
|
};
|
|
@@ -439,50 +470,50 @@
|
|
|
439
470
|
function $serializer_0() {
|
|
440
471
|
$serializer_instance_0 = this;
|
|
441
472
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.IngredientsListIngredientsList', this, 8);
|
|
442
|
-
tmp0_serialDesc.
|
|
443
|
-
tmp0_serialDesc.
|
|
444
|
-
tmp0_serialDesc.
|
|
445
|
-
tmp0_serialDesc.
|
|
446
|
-
tmp0_serialDesc.
|
|
447
|
-
tmp0_serialDesc.
|
|
448
|
-
tmp0_serialDesc.
|
|
449
|
-
tmp0_serialDesc.
|
|
450
|
-
this.
|
|
473
|
+
tmp0_serialDesc.ws('amount', true);
|
|
474
|
+
tmp0_serialDesc.ws('ingredientId', true);
|
|
475
|
+
tmp0_serialDesc.ws('name', true);
|
|
476
|
+
tmp0_serialDesc.ws('optional', true);
|
|
477
|
+
tmp0_serialDesc.ws('prefix', true);
|
|
478
|
+
tmp0_serialDesc.ws('suffix', true);
|
|
479
|
+
tmp0_serialDesc.ws('text', true);
|
|
480
|
+
tmp0_serialDesc.ws('unit', true);
|
|
481
|
+
this.x1e_1 = tmp0_serialDesc;
|
|
451
482
|
}
|
|
452
|
-
protoOf($serializer_0).
|
|
453
|
-
var tmp0_desc = this.
|
|
454
|
-
var tmp1_output = encoder.
|
|
455
|
-
if (tmp1_output.
|
|
456
|
-
tmp1_output.
|
|
483
|
+
protoOf($serializer_0).y1e = function (encoder, value) {
|
|
484
|
+
var tmp0_desc = this.x1e_1;
|
|
485
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
486
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.z1e_1 == null)) {
|
|
487
|
+
tmp1_output.fn(tmp0_desc, 0, $serializer_getInstance(), value.z1e_1);
|
|
457
488
|
}
|
|
458
|
-
if (tmp1_output.
|
|
459
|
-
tmp1_output.
|
|
489
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.a1f_1 == null)) {
|
|
490
|
+
tmp1_output.fn(tmp0_desc, 1, StringSerializer_getInstance(), value.a1f_1);
|
|
460
491
|
}
|
|
461
|
-
if (tmp1_output.
|
|
462
|
-
tmp1_output.
|
|
492
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.b1f_1 == null)) {
|
|
493
|
+
tmp1_output.fn(tmp0_desc, 2, StringSerializer_getInstance(), value.b1f_1);
|
|
463
494
|
}
|
|
464
|
-
if (tmp1_output.
|
|
465
|
-
tmp1_output.
|
|
495
|
+
if (tmp1_output.jn(tmp0_desc, 3) ? true : !(value.c1f_1 == null)) {
|
|
496
|
+
tmp1_output.fn(tmp0_desc, 3, BooleanSerializer_getInstance(), value.c1f_1);
|
|
466
497
|
}
|
|
467
|
-
if (tmp1_output.
|
|
468
|
-
tmp1_output.
|
|
498
|
+
if (tmp1_output.jn(tmp0_desc, 4) ? true : !(value.d1f_1 == null)) {
|
|
499
|
+
tmp1_output.fn(tmp0_desc, 4, StringSerializer_getInstance(), value.d1f_1);
|
|
469
500
|
}
|
|
470
|
-
if (tmp1_output.
|
|
471
|
-
tmp1_output.
|
|
501
|
+
if (tmp1_output.jn(tmp0_desc, 5) ? true : !(value.e1f_1 == null)) {
|
|
502
|
+
tmp1_output.fn(tmp0_desc, 5, StringSerializer_getInstance(), value.e1f_1);
|
|
472
503
|
}
|
|
473
|
-
if (tmp1_output.
|
|
474
|
-
tmp1_output.
|
|
504
|
+
if (tmp1_output.jn(tmp0_desc, 6) ? true : !(value.f1f_1 == null)) {
|
|
505
|
+
tmp1_output.fn(tmp0_desc, 6, StringSerializer_getInstance(), value.f1f_1);
|
|
475
506
|
}
|
|
476
|
-
if (tmp1_output.
|
|
477
|
-
tmp1_output.
|
|
507
|
+
if (tmp1_output.jn(tmp0_desc, 7) ? true : !(value.g1f_1 == null)) {
|
|
508
|
+
tmp1_output.fn(tmp0_desc, 7, StringSerializer_getInstance(), value.g1f_1);
|
|
478
509
|
}
|
|
479
|
-
tmp1_output.
|
|
510
|
+
tmp1_output.ol(tmp0_desc);
|
|
480
511
|
};
|
|
481
|
-
protoOf($serializer_0).
|
|
482
|
-
return this.
|
|
512
|
+
protoOf($serializer_0).ri = function (encoder, value) {
|
|
513
|
+
return this.y1e(encoder, value instanceof IngredientsListIngredientsList ? value : THROW_CCE());
|
|
483
514
|
};
|
|
484
|
-
protoOf($serializer_0).
|
|
485
|
-
var tmp0_desc = this.
|
|
515
|
+
protoOf($serializer_0).si = function (decoder) {
|
|
516
|
+
var tmp0_desc = this.x1e_1;
|
|
486
517
|
var tmp1_flag = true;
|
|
487
518
|
var tmp2_index = 0;
|
|
488
519
|
var tmp3_bitMask0 = 0;
|
|
@@ -494,74 +525,74 @@
|
|
|
494
525
|
var tmp9_local5 = null;
|
|
495
526
|
var tmp10_local6 = null;
|
|
496
527
|
var tmp11_local7 = null;
|
|
497
|
-
var tmp12_input = decoder.
|
|
498
|
-
if (tmp12_input.
|
|
499
|
-
tmp4_local0 = tmp12_input.
|
|
528
|
+
var tmp12_input = decoder.nl(tmp0_desc);
|
|
529
|
+
if (tmp12_input.dm()) {
|
|
530
|
+
tmp4_local0 = tmp12_input.bm(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0);
|
|
500
531
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
501
|
-
tmp5_local1 = tmp12_input.
|
|
532
|
+
tmp5_local1 = tmp12_input.bm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
502
533
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
503
|
-
tmp6_local2 = tmp12_input.
|
|
534
|
+
tmp6_local2 = tmp12_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
504
535
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
505
|
-
tmp7_local3 = tmp12_input.
|
|
536
|
+
tmp7_local3 = tmp12_input.bm(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3);
|
|
506
537
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
507
|
-
tmp8_local4 = tmp12_input.
|
|
538
|
+
tmp8_local4 = tmp12_input.bm(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
508
539
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
509
|
-
tmp9_local5 = tmp12_input.
|
|
540
|
+
tmp9_local5 = tmp12_input.bm(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
510
541
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
511
|
-
tmp10_local6 = tmp12_input.
|
|
542
|
+
tmp10_local6 = tmp12_input.bm(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
512
543
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
513
|
-
tmp11_local7 = tmp12_input.
|
|
544
|
+
tmp11_local7 = tmp12_input.bm(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
514
545
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
515
546
|
} else
|
|
516
547
|
while (tmp1_flag) {
|
|
517
|
-
tmp2_index = tmp12_input.
|
|
548
|
+
tmp2_index = tmp12_input.em(tmp0_desc);
|
|
518
549
|
switch (tmp2_index) {
|
|
519
550
|
case -1:
|
|
520
551
|
tmp1_flag = false;
|
|
521
552
|
break;
|
|
522
553
|
case 0:
|
|
523
|
-
tmp4_local0 = tmp12_input.
|
|
554
|
+
tmp4_local0 = tmp12_input.bm(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0);
|
|
524
555
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
525
556
|
break;
|
|
526
557
|
case 1:
|
|
527
|
-
tmp5_local1 = tmp12_input.
|
|
558
|
+
tmp5_local1 = tmp12_input.bm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
528
559
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
529
560
|
break;
|
|
530
561
|
case 2:
|
|
531
|
-
tmp6_local2 = tmp12_input.
|
|
562
|
+
tmp6_local2 = tmp12_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
532
563
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
533
564
|
break;
|
|
534
565
|
case 3:
|
|
535
|
-
tmp7_local3 = tmp12_input.
|
|
566
|
+
tmp7_local3 = tmp12_input.bm(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3);
|
|
536
567
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
537
568
|
break;
|
|
538
569
|
case 4:
|
|
539
|
-
tmp8_local4 = tmp12_input.
|
|
570
|
+
tmp8_local4 = tmp12_input.bm(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
540
571
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
541
572
|
break;
|
|
542
573
|
case 5:
|
|
543
|
-
tmp9_local5 = tmp12_input.
|
|
574
|
+
tmp9_local5 = tmp12_input.bm(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
544
575
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
545
576
|
break;
|
|
546
577
|
case 6:
|
|
547
|
-
tmp10_local6 = tmp12_input.
|
|
578
|
+
tmp10_local6 = tmp12_input.bm(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
548
579
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
549
580
|
break;
|
|
550
581
|
case 7:
|
|
551
|
-
tmp11_local7 = tmp12_input.
|
|
582
|
+
tmp11_local7 = tmp12_input.bm(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
552
583
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
553
584
|
break;
|
|
554
585
|
default:
|
|
555
586
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
556
587
|
}
|
|
557
588
|
}
|
|
558
|
-
tmp12_input.
|
|
589
|
+
tmp12_input.ol(tmp0_desc);
|
|
559
590
|
return IngredientsListIngredientsList_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
560
591
|
};
|
|
561
|
-
protoOf($serializer_0).
|
|
562
|
-
return this.
|
|
592
|
+
protoOf($serializer_0).qi = function () {
|
|
593
|
+
return this.x1e_1;
|
|
563
594
|
};
|
|
564
|
-
protoOf($serializer_0).
|
|
595
|
+
protoOf($serializer_0).ys = function () {
|
|
565
596
|
// Inline function 'kotlin.arrayOf' call
|
|
566
597
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
567
598
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -575,40 +606,40 @@
|
|
|
575
606
|
}
|
|
576
607
|
function IngredientsListIngredientsList_init_$Init$(seen0, amount, ingredientID, name, optional, prefix, suffix, text, unit, serializationConstructorMarker, $this) {
|
|
577
608
|
if (!(0 === (0 & seen0))) {
|
|
578
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_0().
|
|
609
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_0().x1e_1);
|
|
579
610
|
}
|
|
580
611
|
if (0 === (seen0 & 1))
|
|
581
|
-
$this.
|
|
612
|
+
$this.z1e_1 = null;
|
|
582
613
|
else
|
|
583
|
-
$this.
|
|
614
|
+
$this.z1e_1 = amount;
|
|
584
615
|
if (0 === (seen0 & 2))
|
|
585
|
-
$this.
|
|
616
|
+
$this.a1f_1 = null;
|
|
586
617
|
else
|
|
587
|
-
$this.
|
|
618
|
+
$this.a1f_1 = ingredientID;
|
|
588
619
|
if (0 === (seen0 & 4))
|
|
589
|
-
$this.
|
|
620
|
+
$this.b1f_1 = null;
|
|
590
621
|
else
|
|
591
|
-
$this.
|
|
622
|
+
$this.b1f_1 = name;
|
|
592
623
|
if (0 === (seen0 & 8))
|
|
593
|
-
$this.
|
|
624
|
+
$this.c1f_1 = null;
|
|
594
625
|
else
|
|
595
|
-
$this.
|
|
626
|
+
$this.c1f_1 = optional;
|
|
596
627
|
if (0 === (seen0 & 16))
|
|
597
|
-
$this.
|
|
628
|
+
$this.d1f_1 = null;
|
|
598
629
|
else
|
|
599
|
-
$this.
|
|
630
|
+
$this.d1f_1 = prefix;
|
|
600
631
|
if (0 === (seen0 & 32))
|
|
601
|
-
$this.
|
|
632
|
+
$this.e1f_1 = null;
|
|
602
633
|
else
|
|
603
|
-
$this.
|
|
634
|
+
$this.e1f_1 = suffix;
|
|
604
635
|
if (0 === (seen0 & 64))
|
|
605
|
-
$this.
|
|
636
|
+
$this.f1f_1 = null;
|
|
606
637
|
else
|
|
607
|
-
$this.
|
|
638
|
+
$this.f1f_1 = text;
|
|
608
639
|
if (0 === (seen0 & 128))
|
|
609
|
-
$this.
|
|
640
|
+
$this.g1f_1 = null;
|
|
610
641
|
else
|
|
611
|
-
$this.
|
|
642
|
+
$this.g1f_1 = unit;
|
|
612
643
|
return $this;
|
|
613
644
|
}
|
|
614
645
|
function IngredientsListIngredientsList_init_$Create$(seen0, amount, ingredientID, name, optional, prefix, suffix, text, unit, serializationConstructorMarker) {
|
|
@@ -623,27 +654,27 @@
|
|
|
623
654
|
suffix = suffix === VOID ? null : suffix;
|
|
624
655
|
text = text === VOID ? null : text;
|
|
625
656
|
unit = unit === VOID ? null : unit;
|
|
626
|
-
this.
|
|
627
|
-
this.
|
|
628
|
-
this.
|
|
629
|
-
this.
|
|
630
|
-
this.
|
|
631
|
-
this.
|
|
632
|
-
this.
|
|
633
|
-
this.
|
|
657
|
+
this.z1e_1 = amount;
|
|
658
|
+
this.a1f_1 = ingredientID;
|
|
659
|
+
this.b1f_1 = name;
|
|
660
|
+
this.c1f_1 = optional;
|
|
661
|
+
this.d1f_1 = prefix;
|
|
662
|
+
this.e1f_1 = suffix;
|
|
663
|
+
this.f1f_1 = text;
|
|
664
|
+
this.g1f_1 = unit;
|
|
634
665
|
}
|
|
635
666
|
protoOf(IngredientsListIngredientsList).toString = function () {
|
|
636
|
-
return 'IngredientsListIngredientsList(amount=' + toString(this.
|
|
667
|
+
return 'IngredientsListIngredientsList(amount=' + toString(this.z1e_1) + ', ingredientID=' + this.a1f_1 + ', name=' + this.b1f_1 + ', optional=' + this.c1f_1 + ', prefix=' + this.d1f_1 + ', suffix=' + this.e1f_1 + ', text=' + this.f1f_1 + ', unit=' + this.g1f_1 + ')';
|
|
637
668
|
};
|
|
638
669
|
protoOf(IngredientsListIngredientsList).hashCode = function () {
|
|
639
|
-
var result = this.
|
|
640
|
-
result = imul(result, 31) + (this.
|
|
641
|
-
result = imul(result, 31) + (this.
|
|
642
|
-
result = imul(result, 31) + (this.
|
|
643
|
-
result = imul(result, 31) + (this.
|
|
644
|
-
result = imul(result, 31) + (this.
|
|
645
|
-
result = imul(result, 31) + (this.
|
|
646
|
-
result = imul(result, 31) + (this.
|
|
670
|
+
var result = this.z1e_1 == null ? 0 : this.z1e_1.hashCode();
|
|
671
|
+
result = imul(result, 31) + (this.a1f_1 == null ? 0 : getStringHashCode(this.a1f_1)) | 0;
|
|
672
|
+
result = imul(result, 31) + (this.b1f_1 == null ? 0 : getStringHashCode(this.b1f_1)) | 0;
|
|
673
|
+
result = imul(result, 31) + (this.c1f_1 == null ? 0 : getBooleanHashCode(this.c1f_1)) | 0;
|
|
674
|
+
result = imul(result, 31) + (this.d1f_1 == null ? 0 : getStringHashCode(this.d1f_1)) | 0;
|
|
675
|
+
result = imul(result, 31) + (this.e1f_1 == null ? 0 : getStringHashCode(this.e1f_1)) | 0;
|
|
676
|
+
result = imul(result, 31) + (this.f1f_1 == null ? 0 : getStringHashCode(this.f1f_1)) | 0;
|
|
677
|
+
result = imul(result, 31) + (this.g1f_1 == null ? 0 : getStringHashCode(this.g1f_1)) | 0;
|
|
647
678
|
return result;
|
|
648
679
|
};
|
|
649
680
|
protoOf(IngredientsListIngredientsList).equals = function (other) {
|
|
@@ -651,21 +682,21 @@
|
|
|
651
682
|
return true;
|
|
652
683
|
if (!(other instanceof IngredientsListIngredientsList))
|
|
653
684
|
return false;
|
|
654
|
-
if (!equals(this.
|
|
685
|
+
if (!equals(this.z1e_1, other.z1e_1))
|
|
655
686
|
return false;
|
|
656
|
-
if (!(this.
|
|
687
|
+
if (!(this.a1f_1 == other.a1f_1))
|
|
657
688
|
return false;
|
|
658
|
-
if (!(this.
|
|
689
|
+
if (!(this.b1f_1 == other.b1f_1))
|
|
659
690
|
return false;
|
|
660
|
-
if (!(this.
|
|
691
|
+
if (!(this.c1f_1 == other.c1f_1))
|
|
661
692
|
return false;
|
|
662
|
-
if (!(this.
|
|
693
|
+
if (!(this.d1f_1 == other.d1f_1))
|
|
663
694
|
return false;
|
|
664
|
-
if (!(this.
|
|
695
|
+
if (!(this.e1f_1 == other.e1f_1))
|
|
665
696
|
return false;
|
|
666
|
-
if (!(this.
|
|
697
|
+
if (!(this.f1f_1 == other.f1f_1))
|
|
667
698
|
return false;
|
|
668
|
-
if (!(this.
|
|
699
|
+
if (!(this.g1f_1 == other.g1f_1))
|
|
669
700
|
return false;
|
|
670
701
|
return true;
|
|
671
702
|
};
|
|
@@ -734,7 +765,7 @@
|
|
|
734
765
|
// Inline function 'kotlin.arrayOf' call
|
|
735
766
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
736
767
|
// Inline function 'kotlin.js.asDynamic' call
|
|
737
|
-
tmp.
|
|
768
|
+
tmp.h1f_1 = [null, tmp_1, null, tmp_3, null, tmp_5, tmp_7, null, null, null, null, tmp_9, tmp_11, null, tmp_13, tmp_15, tmp_17, tmp_19, tmp_21, null, lazy(tmp_22, RecipeV2$Companion$$childSerializers$_anonymous__obtsao_10), null];
|
|
738
769
|
}
|
|
739
770
|
var Companion_instance_1;
|
|
740
771
|
function Companion_getInstance_1() {
|
|
@@ -745,105 +776,105 @@
|
|
|
745
776
|
function $serializer_1() {
|
|
746
777
|
$serializer_instance_1 = this;
|
|
747
778
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.RecipeV2', this, 22);
|
|
748
|
-
tmp0_serialDesc.
|
|
749
|
-
tmp0_serialDesc.
|
|
750
|
-
tmp0_serialDesc.
|
|
751
|
-
tmp0_serialDesc.
|
|
752
|
-
tmp0_serialDesc.
|
|
753
|
-
tmp0_serialDesc.
|
|
754
|
-
tmp0_serialDesc.
|
|
755
|
-
tmp0_serialDesc.
|
|
756
|
-
tmp0_serialDesc.
|
|
757
|
-
tmp0_serialDesc.
|
|
758
|
-
tmp0_serialDesc.
|
|
759
|
-
tmp0_serialDesc.
|
|
760
|
-
tmp0_serialDesc.
|
|
761
|
-
tmp0_serialDesc.
|
|
762
|
-
tmp0_serialDesc.
|
|
763
|
-
tmp0_serialDesc.
|
|
764
|
-
tmp0_serialDesc.
|
|
765
|
-
tmp0_serialDesc.
|
|
766
|
-
tmp0_serialDesc.
|
|
767
|
-
tmp0_serialDesc.
|
|
768
|
-
tmp0_serialDesc.
|
|
769
|
-
tmp0_serialDesc.
|
|
770
|
-
this.
|
|
779
|
+
tmp0_serialDesc.ws('bookCredit', true);
|
|
780
|
+
tmp0_serialDesc.ws('byline', true);
|
|
781
|
+
tmp0_serialDesc.ws('canonicalArticle', true);
|
|
782
|
+
tmp0_serialDesc.ws('celebrationIds', true);
|
|
783
|
+
tmp0_serialDesc.ws('composerId', true);
|
|
784
|
+
tmp0_serialDesc.ws('contributors', true);
|
|
785
|
+
tmp0_serialDesc.ws('cuisineIds', true);
|
|
786
|
+
tmp0_serialDesc.ws('description', true);
|
|
787
|
+
tmp0_serialDesc.ws('difficultyLevel', true);
|
|
788
|
+
tmp0_serialDesc.ws('featuredImage', true);
|
|
789
|
+
tmp0_serialDesc.ws('id', false);
|
|
790
|
+
tmp0_serialDesc.ws('ingredients', true);
|
|
791
|
+
tmp0_serialDesc.ws('instructions', true);
|
|
792
|
+
tmp0_serialDesc.ws('isAppReady', true);
|
|
793
|
+
tmp0_serialDesc.ws('mealTypeIds', true);
|
|
794
|
+
tmp0_serialDesc.ws('serves', true);
|
|
795
|
+
tmp0_serialDesc.ws('suitableForDietIds', true);
|
|
796
|
+
tmp0_serialDesc.ws('techniquesUsedIds', true);
|
|
797
|
+
tmp0_serialDesc.ws('timings', true);
|
|
798
|
+
tmp0_serialDesc.ws('title', true);
|
|
799
|
+
tmp0_serialDesc.ws('utensilsAndApplianceIds', true);
|
|
800
|
+
tmp0_serialDesc.ws('webPublicationDate', true);
|
|
801
|
+
this.i1f_1 = tmp0_serialDesc;
|
|
771
802
|
}
|
|
772
|
-
protoOf($serializer_1).
|
|
773
|
-
var tmp0_desc = this.
|
|
774
|
-
var tmp1_output = encoder.
|
|
775
|
-
var tmp2_cached = Companion_getInstance_1().
|
|
776
|
-
if (tmp1_output.
|
|
777
|
-
tmp1_output.
|
|
803
|
+
protoOf($serializer_1).j1f = function (encoder, value) {
|
|
804
|
+
var tmp0_desc = this.i1f_1;
|
|
805
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
806
|
+
var tmp2_cached = Companion_getInstance_1().h1f_1;
|
|
807
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.k1f_1 == null)) {
|
|
808
|
+
tmp1_output.fn(tmp0_desc, 0, StringSerializer_getInstance(), value.k1f_1);
|
|
778
809
|
}
|
|
779
|
-
if (tmp1_output.
|
|
780
|
-
tmp1_output.
|
|
810
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.l1f_1 == null)) {
|
|
811
|
+
tmp1_output.fn(tmp0_desc, 1, tmp2_cached[1].t1(), value.l1f_1);
|
|
781
812
|
}
|
|
782
|
-
if (tmp1_output.
|
|
783
|
-
tmp1_output.
|
|
813
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.m1f_1 == null)) {
|
|
814
|
+
tmp1_output.fn(tmp0_desc, 2, StringSerializer_getInstance(), value.m1f_1);
|
|
784
815
|
}
|
|
785
|
-
if (tmp1_output.
|
|
786
|
-
tmp1_output.
|
|
816
|
+
if (tmp1_output.jn(tmp0_desc, 3) ? true : !(value.n1f_1 == null)) {
|
|
817
|
+
tmp1_output.fn(tmp0_desc, 3, tmp2_cached[3].t1(), value.n1f_1);
|
|
787
818
|
}
|
|
788
|
-
if (tmp1_output.
|
|
789
|
-
tmp1_output.
|
|
819
|
+
if (tmp1_output.jn(tmp0_desc, 4) ? true : !(value.o1f_1 == null)) {
|
|
820
|
+
tmp1_output.fn(tmp0_desc, 4, StringSerializer_getInstance(), value.o1f_1);
|
|
790
821
|
}
|
|
791
|
-
if (tmp1_output.
|
|
792
|
-
tmp1_output.
|
|
822
|
+
if (tmp1_output.jn(tmp0_desc, 5) ? true : !(value.p1f_1 == null)) {
|
|
823
|
+
tmp1_output.fn(tmp0_desc, 5, tmp2_cached[5].t1(), value.p1f_1);
|
|
793
824
|
}
|
|
794
|
-
if (tmp1_output.
|
|
795
|
-
tmp1_output.
|
|
825
|
+
if (tmp1_output.jn(tmp0_desc, 6) ? true : !(value.q1f_1 == null)) {
|
|
826
|
+
tmp1_output.fn(tmp0_desc, 6, tmp2_cached[6].t1(), value.q1f_1);
|
|
796
827
|
}
|
|
797
|
-
if (tmp1_output.
|
|
798
|
-
tmp1_output.
|
|
828
|
+
if (tmp1_output.jn(tmp0_desc, 7) ? true : !(value.r1f_1 == null)) {
|
|
829
|
+
tmp1_output.fn(tmp0_desc, 7, StringSerializer_getInstance(), value.r1f_1);
|
|
799
830
|
}
|
|
800
|
-
if (tmp1_output.
|
|
801
|
-
tmp1_output.
|
|
831
|
+
if (tmp1_output.jn(tmp0_desc, 8) ? true : !(value.s1f_1 == null)) {
|
|
832
|
+
tmp1_output.fn(tmp0_desc, 8, StringSerializer_getInstance(), value.s1f_1);
|
|
802
833
|
}
|
|
803
|
-
if (tmp1_output.
|
|
804
|
-
tmp1_output.
|
|
834
|
+
if (tmp1_output.jn(tmp0_desc, 9) ? true : !(value.t1f_1 == null)) {
|
|
835
|
+
tmp1_output.fn(tmp0_desc, 9, $serializer_getInstance_2(), value.t1f_1);
|
|
805
836
|
}
|
|
806
|
-
tmp1_output.
|
|
807
|
-
if (tmp1_output.
|
|
808
|
-
tmp1_output.
|
|
837
|
+
tmp1_output.bn(tmp0_desc, 10, value.u1f_1);
|
|
838
|
+
if (tmp1_output.jn(tmp0_desc, 11) ? true : !(value.v1f_1 == null)) {
|
|
839
|
+
tmp1_output.fn(tmp0_desc, 11, tmp2_cached[11].t1(), value.v1f_1);
|
|
809
840
|
}
|
|
810
|
-
if (tmp1_output.
|
|
811
|
-
tmp1_output.
|
|
841
|
+
if (tmp1_output.jn(tmp0_desc, 12) ? true : !(value.w1f_1 == null)) {
|
|
842
|
+
tmp1_output.fn(tmp0_desc, 12, tmp2_cached[12].t1(), value.w1f_1);
|
|
812
843
|
}
|
|
813
|
-
if (tmp1_output.
|
|
814
|
-
tmp1_output.
|
|
844
|
+
if (tmp1_output.jn(tmp0_desc, 13) ? true : !(value.x1f_1 == null)) {
|
|
845
|
+
tmp1_output.fn(tmp0_desc, 13, BooleanSerializer_getInstance(), value.x1f_1);
|
|
815
846
|
}
|
|
816
|
-
if (tmp1_output.
|
|
817
|
-
tmp1_output.
|
|
847
|
+
if (tmp1_output.jn(tmp0_desc, 14) ? true : !(value.y1f_1 == null)) {
|
|
848
|
+
tmp1_output.fn(tmp0_desc, 14, tmp2_cached[14].t1(), value.y1f_1);
|
|
818
849
|
}
|
|
819
|
-
if (tmp1_output.
|
|
820
|
-
tmp1_output.
|
|
850
|
+
if (tmp1_output.jn(tmp0_desc, 15) ? true : !(value.z1f_1 == null)) {
|
|
851
|
+
tmp1_output.fn(tmp0_desc, 15, tmp2_cached[15].t1(), value.z1f_1);
|
|
821
852
|
}
|
|
822
|
-
if (tmp1_output.
|
|
823
|
-
tmp1_output.
|
|
853
|
+
if (tmp1_output.jn(tmp0_desc, 16) ? true : !(value.a1g_1 == null)) {
|
|
854
|
+
tmp1_output.fn(tmp0_desc, 16, tmp2_cached[16].t1(), value.a1g_1);
|
|
824
855
|
}
|
|
825
|
-
if (tmp1_output.
|
|
826
|
-
tmp1_output.
|
|
856
|
+
if (tmp1_output.jn(tmp0_desc, 17) ? true : !(value.b1g_1 == null)) {
|
|
857
|
+
tmp1_output.fn(tmp0_desc, 17, tmp2_cached[17].t1(), value.b1g_1);
|
|
827
858
|
}
|
|
828
|
-
if (tmp1_output.
|
|
829
|
-
tmp1_output.
|
|
859
|
+
if (tmp1_output.jn(tmp0_desc, 18) ? true : !(value.c1g_1 == null)) {
|
|
860
|
+
tmp1_output.fn(tmp0_desc, 18, tmp2_cached[18].t1(), value.c1g_1);
|
|
830
861
|
}
|
|
831
|
-
if (tmp1_output.
|
|
832
|
-
tmp1_output.
|
|
862
|
+
if (tmp1_output.jn(tmp0_desc, 19) ? true : !(value.d1g_1 == null)) {
|
|
863
|
+
tmp1_output.fn(tmp0_desc, 19, StringSerializer_getInstance(), value.d1g_1);
|
|
833
864
|
}
|
|
834
|
-
if (tmp1_output.
|
|
835
|
-
tmp1_output.
|
|
865
|
+
if (tmp1_output.jn(tmp0_desc, 20) ? true : !(value.e1g_1 == null)) {
|
|
866
|
+
tmp1_output.fn(tmp0_desc, 20, tmp2_cached[20].t1(), value.e1g_1);
|
|
836
867
|
}
|
|
837
|
-
if (tmp1_output.
|
|
838
|
-
tmp1_output.
|
|
868
|
+
if (tmp1_output.jn(tmp0_desc, 21) ? true : !(value.f1g_1 == null)) {
|
|
869
|
+
tmp1_output.fn(tmp0_desc, 21, StringSerializer_getInstance(), value.f1g_1);
|
|
839
870
|
}
|
|
840
|
-
tmp1_output.
|
|
871
|
+
tmp1_output.ol(tmp0_desc);
|
|
841
872
|
};
|
|
842
|
-
protoOf($serializer_1).
|
|
843
|
-
return this.
|
|
873
|
+
protoOf($serializer_1).ri = function (encoder, value) {
|
|
874
|
+
return this.j1f(encoder, value instanceof RecipeV2 ? value : THROW_CCE());
|
|
844
875
|
};
|
|
845
|
-
protoOf($serializer_1).
|
|
846
|
-
var tmp0_desc = this.
|
|
876
|
+
protoOf($serializer_1).si = function (decoder) {
|
|
877
|
+
var tmp0_desc = this.i1f_1;
|
|
847
878
|
var tmp1_flag = true;
|
|
848
879
|
var tmp2_index = 0;
|
|
849
880
|
var tmp3_bitMask0 = 0;
|
|
@@ -869,164 +900,164 @@
|
|
|
869
900
|
var tmp23_local19 = null;
|
|
870
901
|
var tmp24_local20 = null;
|
|
871
902
|
var tmp25_local21 = null;
|
|
872
|
-
var tmp26_input = decoder.
|
|
873
|
-
var tmp27_cached = Companion_getInstance_1().
|
|
874
|
-
if (tmp26_input.
|
|
875
|
-
tmp4_local0 = tmp26_input.
|
|
903
|
+
var tmp26_input = decoder.nl(tmp0_desc);
|
|
904
|
+
var tmp27_cached = Companion_getInstance_1().h1f_1;
|
|
905
|
+
if (tmp26_input.dm()) {
|
|
906
|
+
tmp4_local0 = tmp26_input.bm(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
876
907
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
877
|
-
tmp5_local1 = tmp26_input.
|
|
908
|
+
tmp5_local1 = tmp26_input.bm(tmp0_desc, 1, tmp27_cached[1].t1(), tmp5_local1);
|
|
878
909
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
879
|
-
tmp6_local2 = tmp26_input.
|
|
910
|
+
tmp6_local2 = tmp26_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
880
911
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
881
|
-
tmp7_local3 = tmp26_input.
|
|
912
|
+
tmp7_local3 = tmp26_input.bm(tmp0_desc, 3, tmp27_cached[3].t1(), tmp7_local3);
|
|
882
913
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
883
|
-
tmp8_local4 = tmp26_input.
|
|
914
|
+
tmp8_local4 = tmp26_input.bm(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
884
915
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
885
|
-
tmp9_local5 = tmp26_input.
|
|
916
|
+
tmp9_local5 = tmp26_input.bm(tmp0_desc, 5, tmp27_cached[5].t1(), tmp9_local5);
|
|
886
917
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
887
|
-
tmp10_local6 = tmp26_input.
|
|
918
|
+
tmp10_local6 = tmp26_input.bm(tmp0_desc, 6, tmp27_cached[6].t1(), tmp10_local6);
|
|
888
919
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
889
|
-
tmp11_local7 = tmp26_input.
|
|
920
|
+
tmp11_local7 = tmp26_input.bm(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
890
921
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
891
|
-
tmp12_local8 = tmp26_input.
|
|
922
|
+
tmp12_local8 = tmp26_input.bm(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
892
923
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
893
|
-
tmp13_local9 = tmp26_input.
|
|
924
|
+
tmp13_local9 = tmp26_input.bm(tmp0_desc, 9, $serializer_getInstance_2(), tmp13_local9);
|
|
894
925
|
tmp3_bitMask0 = tmp3_bitMask0 | 512;
|
|
895
|
-
tmp14_local10 = tmp26_input.
|
|
926
|
+
tmp14_local10 = tmp26_input.xl(tmp0_desc, 10);
|
|
896
927
|
tmp3_bitMask0 = tmp3_bitMask0 | 1024;
|
|
897
|
-
tmp15_local11 = tmp26_input.
|
|
928
|
+
tmp15_local11 = tmp26_input.bm(tmp0_desc, 11, tmp27_cached[11].t1(), tmp15_local11);
|
|
898
929
|
tmp3_bitMask0 = tmp3_bitMask0 | 2048;
|
|
899
|
-
tmp16_local12 = tmp26_input.
|
|
930
|
+
tmp16_local12 = tmp26_input.bm(tmp0_desc, 12, tmp27_cached[12].t1(), tmp16_local12);
|
|
900
931
|
tmp3_bitMask0 = tmp3_bitMask0 | 4096;
|
|
901
|
-
tmp17_local13 = tmp26_input.
|
|
932
|
+
tmp17_local13 = tmp26_input.bm(tmp0_desc, 13, BooleanSerializer_getInstance(), tmp17_local13);
|
|
902
933
|
tmp3_bitMask0 = tmp3_bitMask0 | 8192;
|
|
903
|
-
tmp18_local14 = tmp26_input.
|
|
934
|
+
tmp18_local14 = tmp26_input.bm(tmp0_desc, 14, tmp27_cached[14].t1(), tmp18_local14);
|
|
904
935
|
tmp3_bitMask0 = tmp3_bitMask0 | 16384;
|
|
905
|
-
tmp19_local15 = tmp26_input.
|
|
936
|
+
tmp19_local15 = tmp26_input.bm(tmp0_desc, 15, tmp27_cached[15].t1(), tmp19_local15);
|
|
906
937
|
tmp3_bitMask0 = tmp3_bitMask0 | 32768;
|
|
907
|
-
tmp20_local16 = tmp26_input.
|
|
938
|
+
tmp20_local16 = tmp26_input.bm(tmp0_desc, 16, tmp27_cached[16].t1(), tmp20_local16);
|
|
908
939
|
tmp3_bitMask0 = tmp3_bitMask0 | 65536;
|
|
909
|
-
tmp21_local17 = tmp26_input.
|
|
940
|
+
tmp21_local17 = tmp26_input.bm(tmp0_desc, 17, tmp27_cached[17].t1(), tmp21_local17);
|
|
910
941
|
tmp3_bitMask0 = tmp3_bitMask0 | 131072;
|
|
911
|
-
tmp22_local18 = tmp26_input.
|
|
942
|
+
tmp22_local18 = tmp26_input.bm(tmp0_desc, 18, tmp27_cached[18].t1(), tmp22_local18);
|
|
912
943
|
tmp3_bitMask0 = tmp3_bitMask0 | 262144;
|
|
913
|
-
tmp23_local19 = tmp26_input.
|
|
944
|
+
tmp23_local19 = tmp26_input.bm(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19);
|
|
914
945
|
tmp3_bitMask0 = tmp3_bitMask0 | 524288;
|
|
915
|
-
tmp24_local20 = tmp26_input.
|
|
946
|
+
tmp24_local20 = tmp26_input.bm(tmp0_desc, 20, tmp27_cached[20].t1(), tmp24_local20);
|
|
916
947
|
tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
|
|
917
|
-
tmp25_local21 = tmp26_input.
|
|
948
|
+
tmp25_local21 = tmp26_input.bm(tmp0_desc, 21, StringSerializer_getInstance(), tmp25_local21);
|
|
918
949
|
tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
|
|
919
950
|
} else
|
|
920
951
|
while (tmp1_flag) {
|
|
921
|
-
tmp2_index = tmp26_input.
|
|
952
|
+
tmp2_index = tmp26_input.em(tmp0_desc);
|
|
922
953
|
switch (tmp2_index) {
|
|
923
954
|
case -1:
|
|
924
955
|
tmp1_flag = false;
|
|
925
956
|
break;
|
|
926
957
|
case 0:
|
|
927
|
-
tmp4_local0 = tmp26_input.
|
|
958
|
+
tmp4_local0 = tmp26_input.bm(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
928
959
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
929
960
|
break;
|
|
930
961
|
case 1:
|
|
931
|
-
tmp5_local1 = tmp26_input.
|
|
962
|
+
tmp5_local1 = tmp26_input.bm(tmp0_desc, 1, tmp27_cached[1].t1(), tmp5_local1);
|
|
932
963
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
933
964
|
break;
|
|
934
965
|
case 2:
|
|
935
|
-
tmp6_local2 = tmp26_input.
|
|
966
|
+
tmp6_local2 = tmp26_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
936
967
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
937
968
|
break;
|
|
938
969
|
case 3:
|
|
939
|
-
tmp7_local3 = tmp26_input.
|
|
970
|
+
tmp7_local3 = tmp26_input.bm(tmp0_desc, 3, tmp27_cached[3].t1(), tmp7_local3);
|
|
940
971
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
941
972
|
break;
|
|
942
973
|
case 4:
|
|
943
|
-
tmp8_local4 = tmp26_input.
|
|
974
|
+
tmp8_local4 = tmp26_input.bm(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
944
975
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
945
976
|
break;
|
|
946
977
|
case 5:
|
|
947
|
-
tmp9_local5 = tmp26_input.
|
|
978
|
+
tmp9_local5 = tmp26_input.bm(tmp0_desc, 5, tmp27_cached[5].t1(), tmp9_local5);
|
|
948
979
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
949
980
|
break;
|
|
950
981
|
case 6:
|
|
951
|
-
tmp10_local6 = tmp26_input.
|
|
982
|
+
tmp10_local6 = tmp26_input.bm(tmp0_desc, 6, tmp27_cached[6].t1(), tmp10_local6);
|
|
952
983
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
953
984
|
break;
|
|
954
985
|
case 7:
|
|
955
|
-
tmp11_local7 = tmp26_input.
|
|
986
|
+
tmp11_local7 = tmp26_input.bm(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
956
987
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
957
988
|
break;
|
|
958
989
|
case 8:
|
|
959
|
-
tmp12_local8 = tmp26_input.
|
|
990
|
+
tmp12_local8 = tmp26_input.bm(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
960
991
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
961
992
|
break;
|
|
962
993
|
case 9:
|
|
963
|
-
tmp13_local9 = tmp26_input.
|
|
994
|
+
tmp13_local9 = tmp26_input.bm(tmp0_desc, 9, $serializer_getInstance_2(), tmp13_local9);
|
|
964
995
|
tmp3_bitMask0 = tmp3_bitMask0 | 512;
|
|
965
996
|
break;
|
|
966
997
|
case 10:
|
|
967
|
-
tmp14_local10 = tmp26_input.
|
|
998
|
+
tmp14_local10 = tmp26_input.xl(tmp0_desc, 10);
|
|
968
999
|
tmp3_bitMask0 = tmp3_bitMask0 | 1024;
|
|
969
1000
|
break;
|
|
970
1001
|
case 11:
|
|
971
|
-
tmp15_local11 = tmp26_input.
|
|
1002
|
+
tmp15_local11 = tmp26_input.bm(tmp0_desc, 11, tmp27_cached[11].t1(), tmp15_local11);
|
|
972
1003
|
tmp3_bitMask0 = tmp3_bitMask0 | 2048;
|
|
973
1004
|
break;
|
|
974
1005
|
case 12:
|
|
975
|
-
tmp16_local12 = tmp26_input.
|
|
1006
|
+
tmp16_local12 = tmp26_input.bm(tmp0_desc, 12, tmp27_cached[12].t1(), tmp16_local12);
|
|
976
1007
|
tmp3_bitMask0 = tmp3_bitMask0 | 4096;
|
|
977
1008
|
break;
|
|
978
1009
|
case 13:
|
|
979
|
-
tmp17_local13 = tmp26_input.
|
|
1010
|
+
tmp17_local13 = tmp26_input.bm(tmp0_desc, 13, BooleanSerializer_getInstance(), tmp17_local13);
|
|
980
1011
|
tmp3_bitMask0 = tmp3_bitMask0 | 8192;
|
|
981
1012
|
break;
|
|
982
1013
|
case 14:
|
|
983
|
-
tmp18_local14 = tmp26_input.
|
|
1014
|
+
tmp18_local14 = tmp26_input.bm(tmp0_desc, 14, tmp27_cached[14].t1(), tmp18_local14);
|
|
984
1015
|
tmp3_bitMask0 = tmp3_bitMask0 | 16384;
|
|
985
1016
|
break;
|
|
986
1017
|
case 15:
|
|
987
|
-
tmp19_local15 = tmp26_input.
|
|
1018
|
+
tmp19_local15 = tmp26_input.bm(tmp0_desc, 15, tmp27_cached[15].t1(), tmp19_local15);
|
|
988
1019
|
tmp3_bitMask0 = tmp3_bitMask0 | 32768;
|
|
989
1020
|
break;
|
|
990
1021
|
case 16:
|
|
991
|
-
tmp20_local16 = tmp26_input.
|
|
1022
|
+
tmp20_local16 = tmp26_input.bm(tmp0_desc, 16, tmp27_cached[16].t1(), tmp20_local16);
|
|
992
1023
|
tmp3_bitMask0 = tmp3_bitMask0 | 65536;
|
|
993
1024
|
break;
|
|
994
1025
|
case 17:
|
|
995
|
-
tmp21_local17 = tmp26_input.
|
|
1026
|
+
tmp21_local17 = tmp26_input.bm(tmp0_desc, 17, tmp27_cached[17].t1(), tmp21_local17);
|
|
996
1027
|
tmp3_bitMask0 = tmp3_bitMask0 | 131072;
|
|
997
1028
|
break;
|
|
998
1029
|
case 18:
|
|
999
|
-
tmp22_local18 = tmp26_input.
|
|
1030
|
+
tmp22_local18 = tmp26_input.bm(tmp0_desc, 18, tmp27_cached[18].t1(), tmp22_local18);
|
|
1000
1031
|
tmp3_bitMask0 = tmp3_bitMask0 | 262144;
|
|
1001
1032
|
break;
|
|
1002
1033
|
case 19:
|
|
1003
|
-
tmp23_local19 = tmp26_input.
|
|
1034
|
+
tmp23_local19 = tmp26_input.bm(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19);
|
|
1004
1035
|
tmp3_bitMask0 = tmp3_bitMask0 | 524288;
|
|
1005
1036
|
break;
|
|
1006
1037
|
case 20:
|
|
1007
|
-
tmp24_local20 = tmp26_input.
|
|
1038
|
+
tmp24_local20 = tmp26_input.bm(tmp0_desc, 20, tmp27_cached[20].t1(), tmp24_local20);
|
|
1008
1039
|
tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
|
|
1009
1040
|
break;
|
|
1010
1041
|
case 21:
|
|
1011
|
-
tmp25_local21 = tmp26_input.
|
|
1042
|
+
tmp25_local21 = tmp26_input.bm(tmp0_desc, 21, StringSerializer_getInstance(), tmp25_local21);
|
|
1012
1043
|
tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
|
|
1013
1044
|
break;
|
|
1014
1045
|
default:
|
|
1015
1046
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1016
1047
|
}
|
|
1017
1048
|
}
|
|
1018
|
-
tmp26_input.
|
|
1049
|
+
tmp26_input.ol(tmp0_desc);
|
|
1019
1050
|
return RecipeV2_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, null);
|
|
1020
1051
|
};
|
|
1021
|
-
protoOf($serializer_1).
|
|
1022
|
-
return this.
|
|
1052
|
+
protoOf($serializer_1).qi = function () {
|
|
1053
|
+
return this.i1f_1;
|
|
1023
1054
|
};
|
|
1024
|
-
protoOf($serializer_1).
|
|
1025
|
-
var tmp0_cached = Companion_getInstance_1().
|
|
1055
|
+
protoOf($serializer_1).ys = function () {
|
|
1056
|
+
var tmp0_cached = Companion_getInstance_1().h1f_1;
|
|
1026
1057
|
// Inline function 'kotlin.arrayOf' call
|
|
1027
1058
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1028
1059
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1029
|
-
return [get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[1].
|
|
1060
|
+
return [get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[1].t1()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[3].t1()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[5].t1()), get_nullable(tmp0_cached[6].t1()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable($serializer_getInstance_2()), StringSerializer_getInstance(), get_nullable(tmp0_cached[11].t1()), get_nullable(tmp0_cached[12].t1()), get_nullable(BooleanSerializer_getInstance()), get_nullable(tmp0_cached[14].t1()), get_nullable(tmp0_cached[15].t1()), get_nullable(tmp0_cached[16].t1()), get_nullable(tmp0_cached[17].t1()), get_nullable(tmp0_cached[18].t1()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[20].t1()), get_nullable(StringSerializer_getInstance())];
|
|
1030
1061
|
};
|
|
1031
1062
|
var $serializer_instance_1;
|
|
1032
1063
|
function $serializer_getInstance_1() {
|
|
@@ -1036,93 +1067,93 @@
|
|
|
1036
1067
|
}
|
|
1037
1068
|
function RecipeV2_init_$Init$(seen0, bookCredit, byline, canonicalArticle, celebrationIDS, composerID, contributors, cuisineIDS, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIDS, serves, suitableForDietIDS, techniquesUsedIDS, timings, title, utensilsAndApplianceIDS, webPublicationDate, serializationConstructorMarker, $this) {
|
|
1038
1069
|
if (!(1024 === (1024 & seen0))) {
|
|
1039
|
-
throwMissingFieldException(seen0, 1024, $serializer_getInstance_1().
|
|
1070
|
+
throwMissingFieldException(seen0, 1024, $serializer_getInstance_1().i1f_1);
|
|
1040
1071
|
}
|
|
1041
1072
|
if (0 === (seen0 & 1))
|
|
1042
|
-
$this.
|
|
1073
|
+
$this.k1f_1 = null;
|
|
1043
1074
|
else
|
|
1044
|
-
$this.
|
|
1075
|
+
$this.k1f_1 = bookCredit;
|
|
1045
1076
|
if (0 === (seen0 & 2))
|
|
1046
|
-
$this.
|
|
1077
|
+
$this.l1f_1 = null;
|
|
1047
1078
|
else
|
|
1048
|
-
$this.
|
|
1079
|
+
$this.l1f_1 = byline;
|
|
1049
1080
|
if (0 === (seen0 & 4))
|
|
1050
|
-
$this.
|
|
1081
|
+
$this.m1f_1 = null;
|
|
1051
1082
|
else
|
|
1052
|
-
$this.
|
|
1083
|
+
$this.m1f_1 = canonicalArticle;
|
|
1053
1084
|
if (0 === (seen0 & 8))
|
|
1054
|
-
$this.
|
|
1085
|
+
$this.n1f_1 = null;
|
|
1055
1086
|
else
|
|
1056
|
-
$this.
|
|
1087
|
+
$this.n1f_1 = celebrationIDS;
|
|
1057
1088
|
if (0 === (seen0 & 16))
|
|
1058
|
-
$this.
|
|
1089
|
+
$this.o1f_1 = null;
|
|
1059
1090
|
else
|
|
1060
|
-
$this.
|
|
1091
|
+
$this.o1f_1 = composerID;
|
|
1061
1092
|
if (0 === (seen0 & 32))
|
|
1062
|
-
$this.
|
|
1093
|
+
$this.p1f_1 = null;
|
|
1063
1094
|
else
|
|
1064
|
-
$this.
|
|
1095
|
+
$this.p1f_1 = contributors;
|
|
1065
1096
|
if (0 === (seen0 & 64))
|
|
1066
|
-
$this.
|
|
1097
|
+
$this.q1f_1 = null;
|
|
1067
1098
|
else
|
|
1068
|
-
$this.
|
|
1099
|
+
$this.q1f_1 = cuisineIDS;
|
|
1069
1100
|
if (0 === (seen0 & 128))
|
|
1070
|
-
$this.
|
|
1101
|
+
$this.r1f_1 = null;
|
|
1071
1102
|
else
|
|
1072
|
-
$this.
|
|
1103
|
+
$this.r1f_1 = description;
|
|
1073
1104
|
if (0 === (seen0 & 256))
|
|
1074
|
-
$this.
|
|
1105
|
+
$this.s1f_1 = null;
|
|
1075
1106
|
else
|
|
1076
|
-
$this.
|
|
1107
|
+
$this.s1f_1 = difficultyLevel;
|
|
1077
1108
|
if (0 === (seen0 & 512))
|
|
1078
|
-
$this.
|
|
1109
|
+
$this.t1f_1 = null;
|
|
1079
1110
|
else
|
|
1080
|
-
$this.
|
|
1081
|
-
$this.
|
|
1111
|
+
$this.t1f_1 = featuredImage;
|
|
1112
|
+
$this.u1f_1 = id;
|
|
1082
1113
|
if (0 === (seen0 & 2048))
|
|
1083
|
-
$this.
|
|
1114
|
+
$this.v1f_1 = null;
|
|
1084
1115
|
else
|
|
1085
|
-
$this.
|
|
1116
|
+
$this.v1f_1 = ingredients;
|
|
1086
1117
|
if (0 === (seen0 & 4096))
|
|
1087
|
-
$this.
|
|
1118
|
+
$this.w1f_1 = null;
|
|
1088
1119
|
else
|
|
1089
|
-
$this.
|
|
1120
|
+
$this.w1f_1 = instructions;
|
|
1090
1121
|
if (0 === (seen0 & 8192))
|
|
1091
|
-
$this.
|
|
1122
|
+
$this.x1f_1 = null;
|
|
1092
1123
|
else
|
|
1093
|
-
$this.
|
|
1124
|
+
$this.x1f_1 = isAppReady;
|
|
1094
1125
|
if (0 === (seen0 & 16384))
|
|
1095
|
-
$this.
|
|
1126
|
+
$this.y1f_1 = null;
|
|
1096
1127
|
else
|
|
1097
|
-
$this.
|
|
1128
|
+
$this.y1f_1 = mealTypeIDS;
|
|
1098
1129
|
if (0 === (seen0 & 32768))
|
|
1099
|
-
$this.
|
|
1130
|
+
$this.z1f_1 = null;
|
|
1100
1131
|
else
|
|
1101
|
-
$this.
|
|
1132
|
+
$this.z1f_1 = serves;
|
|
1102
1133
|
if (0 === (seen0 & 65536))
|
|
1103
|
-
$this.
|
|
1134
|
+
$this.a1g_1 = null;
|
|
1104
1135
|
else
|
|
1105
|
-
$this.
|
|
1136
|
+
$this.a1g_1 = suitableForDietIDS;
|
|
1106
1137
|
if (0 === (seen0 & 131072))
|
|
1107
|
-
$this.
|
|
1138
|
+
$this.b1g_1 = null;
|
|
1108
1139
|
else
|
|
1109
|
-
$this.
|
|
1140
|
+
$this.b1g_1 = techniquesUsedIDS;
|
|
1110
1141
|
if (0 === (seen0 & 262144))
|
|
1111
|
-
$this.
|
|
1142
|
+
$this.c1g_1 = null;
|
|
1112
1143
|
else
|
|
1113
|
-
$this.
|
|
1144
|
+
$this.c1g_1 = timings;
|
|
1114
1145
|
if (0 === (seen0 & 524288))
|
|
1115
|
-
$this.
|
|
1146
|
+
$this.d1g_1 = null;
|
|
1116
1147
|
else
|
|
1117
|
-
$this.
|
|
1148
|
+
$this.d1g_1 = title;
|
|
1118
1149
|
if (0 === (seen0 & 1048576))
|
|
1119
|
-
$this.
|
|
1150
|
+
$this.e1g_1 = null;
|
|
1120
1151
|
else
|
|
1121
|
-
$this.
|
|
1152
|
+
$this.e1g_1 = utensilsAndApplianceIDS;
|
|
1122
1153
|
if (0 === (seen0 & 2097152))
|
|
1123
|
-
$this.
|
|
1154
|
+
$this.f1g_1 = null;
|
|
1124
1155
|
else
|
|
1125
|
-
$this.
|
|
1156
|
+
$this.f1g_1 = webPublicationDate;
|
|
1126
1157
|
return $this;
|
|
1127
1158
|
}
|
|
1128
1159
|
function RecipeV2_init_$Create$(seen0, bookCredit, byline, canonicalArticle, celebrationIDS, composerID, contributors, cuisineIDS, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIDS, serves, suitableForDietIDS, techniquesUsedIDS, timings, title, utensilsAndApplianceIDS, webPublicationDate, serializationConstructorMarker) {
|
|
@@ -1151,55 +1182,55 @@
|
|
|
1151
1182
|
title = title === VOID ? null : title;
|
|
1152
1183
|
utensilsAndApplianceIDS = utensilsAndApplianceIDS === VOID ? null : utensilsAndApplianceIDS;
|
|
1153
1184
|
webPublicationDate = webPublicationDate === VOID ? null : webPublicationDate;
|
|
1154
|
-
this.
|
|
1155
|
-
this.
|
|
1156
|
-
this.
|
|
1157
|
-
this.
|
|
1158
|
-
this.
|
|
1159
|
-
this.
|
|
1160
|
-
this.
|
|
1161
|
-
this.
|
|
1162
|
-
this.
|
|
1163
|
-
this.
|
|
1164
|
-
this.
|
|
1165
|
-
this.
|
|
1166
|
-
this.
|
|
1167
|
-
this.
|
|
1168
|
-
this.
|
|
1169
|
-
this.
|
|
1170
|
-
this.
|
|
1171
|
-
this.
|
|
1172
|
-
this.
|
|
1173
|
-
this.
|
|
1174
|
-
this.
|
|
1175
|
-
this.
|
|
1185
|
+
this.k1f_1 = bookCredit;
|
|
1186
|
+
this.l1f_1 = byline;
|
|
1187
|
+
this.m1f_1 = canonicalArticle;
|
|
1188
|
+
this.n1f_1 = celebrationIDS;
|
|
1189
|
+
this.o1f_1 = composerID;
|
|
1190
|
+
this.p1f_1 = contributors;
|
|
1191
|
+
this.q1f_1 = cuisineIDS;
|
|
1192
|
+
this.r1f_1 = description;
|
|
1193
|
+
this.s1f_1 = difficultyLevel;
|
|
1194
|
+
this.t1f_1 = featuredImage;
|
|
1195
|
+
this.u1f_1 = id;
|
|
1196
|
+
this.v1f_1 = ingredients;
|
|
1197
|
+
this.w1f_1 = instructions;
|
|
1198
|
+
this.x1f_1 = isAppReady;
|
|
1199
|
+
this.y1f_1 = mealTypeIDS;
|
|
1200
|
+
this.z1f_1 = serves;
|
|
1201
|
+
this.a1g_1 = suitableForDietIDS;
|
|
1202
|
+
this.b1g_1 = techniquesUsedIDS;
|
|
1203
|
+
this.c1g_1 = timings;
|
|
1204
|
+
this.d1g_1 = title;
|
|
1205
|
+
this.e1g_1 = utensilsAndApplianceIDS;
|
|
1206
|
+
this.f1g_1 = webPublicationDate;
|
|
1176
1207
|
}
|
|
1177
1208
|
protoOf(RecipeV2).toString = function () {
|
|
1178
|
-
return 'RecipeV2(bookCredit=' + this.
|
|
1209
|
+
return 'RecipeV2(bookCredit=' + this.k1f_1 + ', byline=' + toString(this.l1f_1) + ', canonicalArticle=' + this.m1f_1 + ', celebrationIDS=' + toString(this.n1f_1) + ', composerID=' + this.o1f_1 + ', contributors=' + toString(this.p1f_1) + ', cuisineIDS=' + toString(this.q1f_1) + ', description=' + this.r1f_1 + ', difficultyLevel=' + this.s1f_1 + ', featuredImage=' + toString(this.t1f_1) + ', id=' + this.u1f_1 + ', ingredients=' + toString(this.v1f_1) + ', instructions=' + toString(this.w1f_1) + ', isAppReady=' + this.x1f_1 + ', mealTypeIDS=' + toString(this.y1f_1) + ', serves=' + toString(this.z1f_1) + ', suitableForDietIDS=' + toString(this.a1g_1) + ', techniquesUsedIDS=' + toString(this.b1g_1) + ', timings=' + toString(this.c1g_1) + ', title=' + this.d1g_1 + ', utensilsAndApplianceIDS=' + toString(this.e1g_1) + ', webPublicationDate=' + this.f1g_1 + ')';
|
|
1179
1210
|
};
|
|
1180
1211
|
protoOf(RecipeV2).hashCode = function () {
|
|
1181
|
-
var result = this.
|
|
1182
|
-
result = imul(result, 31) + (this.
|
|
1183
|
-
result = imul(result, 31) + (this.
|
|
1184
|
-
result = imul(result, 31) + (this.
|
|
1185
|
-
result = imul(result, 31) + (this.
|
|
1186
|
-
result = imul(result, 31) + (this.
|
|
1187
|
-
result = imul(result, 31) + (this.
|
|
1188
|
-
result = imul(result, 31) + (this.
|
|
1189
|
-
result = imul(result, 31) + (this.
|
|
1190
|
-
result = imul(result, 31) + (this.
|
|
1191
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1192
|
-
result = imul(result, 31) + (this.
|
|
1193
|
-
result = imul(result, 31) + (this.
|
|
1194
|
-
result = imul(result, 31) + (this.
|
|
1195
|
-
result = imul(result, 31) + (this.
|
|
1196
|
-
result = imul(result, 31) + (this.
|
|
1197
|
-
result = imul(result, 31) + (this.
|
|
1198
|
-
result = imul(result, 31) + (this.
|
|
1199
|
-
result = imul(result, 31) + (this.
|
|
1200
|
-
result = imul(result, 31) + (this.
|
|
1201
|
-
result = imul(result, 31) + (this.
|
|
1202
|
-
result = imul(result, 31) + (this.
|
|
1212
|
+
var result = this.k1f_1 == null ? 0 : getStringHashCode(this.k1f_1);
|
|
1213
|
+
result = imul(result, 31) + (this.l1f_1 == null ? 0 : hashCode(this.l1f_1)) | 0;
|
|
1214
|
+
result = imul(result, 31) + (this.m1f_1 == null ? 0 : getStringHashCode(this.m1f_1)) | 0;
|
|
1215
|
+
result = imul(result, 31) + (this.n1f_1 == null ? 0 : hashCode(this.n1f_1)) | 0;
|
|
1216
|
+
result = imul(result, 31) + (this.o1f_1 == null ? 0 : getStringHashCode(this.o1f_1)) | 0;
|
|
1217
|
+
result = imul(result, 31) + (this.p1f_1 == null ? 0 : hashCode(this.p1f_1)) | 0;
|
|
1218
|
+
result = imul(result, 31) + (this.q1f_1 == null ? 0 : hashCode(this.q1f_1)) | 0;
|
|
1219
|
+
result = imul(result, 31) + (this.r1f_1 == null ? 0 : getStringHashCode(this.r1f_1)) | 0;
|
|
1220
|
+
result = imul(result, 31) + (this.s1f_1 == null ? 0 : getStringHashCode(this.s1f_1)) | 0;
|
|
1221
|
+
result = imul(result, 31) + (this.t1f_1 == null ? 0 : this.t1f_1.hashCode()) | 0;
|
|
1222
|
+
result = imul(result, 31) + getStringHashCode(this.u1f_1) | 0;
|
|
1223
|
+
result = imul(result, 31) + (this.v1f_1 == null ? 0 : hashCode(this.v1f_1)) | 0;
|
|
1224
|
+
result = imul(result, 31) + (this.w1f_1 == null ? 0 : hashCode(this.w1f_1)) | 0;
|
|
1225
|
+
result = imul(result, 31) + (this.x1f_1 == null ? 0 : getBooleanHashCode(this.x1f_1)) | 0;
|
|
1226
|
+
result = imul(result, 31) + (this.y1f_1 == null ? 0 : hashCode(this.y1f_1)) | 0;
|
|
1227
|
+
result = imul(result, 31) + (this.z1f_1 == null ? 0 : hashCode(this.z1f_1)) | 0;
|
|
1228
|
+
result = imul(result, 31) + (this.a1g_1 == null ? 0 : hashCode(this.a1g_1)) | 0;
|
|
1229
|
+
result = imul(result, 31) + (this.b1g_1 == null ? 0 : hashCode(this.b1g_1)) | 0;
|
|
1230
|
+
result = imul(result, 31) + (this.c1g_1 == null ? 0 : hashCode(this.c1g_1)) | 0;
|
|
1231
|
+
result = imul(result, 31) + (this.d1g_1 == null ? 0 : getStringHashCode(this.d1g_1)) | 0;
|
|
1232
|
+
result = imul(result, 31) + (this.e1g_1 == null ? 0 : hashCode(this.e1g_1)) | 0;
|
|
1233
|
+
result = imul(result, 31) + (this.f1g_1 == null ? 0 : getStringHashCode(this.f1g_1)) | 0;
|
|
1203
1234
|
return result;
|
|
1204
1235
|
};
|
|
1205
1236
|
protoOf(RecipeV2).equals = function (other) {
|
|
@@ -1207,93 +1238,93 @@
|
|
|
1207
1238
|
return true;
|
|
1208
1239
|
if (!(other instanceof RecipeV2))
|
|
1209
1240
|
return false;
|
|
1210
|
-
if (!(this.
|
|
1241
|
+
if (!(this.k1f_1 == other.k1f_1))
|
|
1211
1242
|
return false;
|
|
1212
|
-
if (!equals(this.
|
|
1243
|
+
if (!equals(this.l1f_1, other.l1f_1))
|
|
1213
1244
|
return false;
|
|
1214
|
-
if (!(this.
|
|
1245
|
+
if (!(this.m1f_1 == other.m1f_1))
|
|
1215
1246
|
return false;
|
|
1216
|
-
if (!equals(this.
|
|
1247
|
+
if (!equals(this.n1f_1, other.n1f_1))
|
|
1217
1248
|
return false;
|
|
1218
|
-
if (!(this.
|
|
1249
|
+
if (!(this.o1f_1 == other.o1f_1))
|
|
1219
1250
|
return false;
|
|
1220
|
-
if (!equals(this.
|
|
1251
|
+
if (!equals(this.p1f_1, other.p1f_1))
|
|
1221
1252
|
return false;
|
|
1222
|
-
if (!equals(this.
|
|
1253
|
+
if (!equals(this.q1f_1, other.q1f_1))
|
|
1223
1254
|
return false;
|
|
1224
|
-
if (!(this.
|
|
1255
|
+
if (!(this.r1f_1 == other.r1f_1))
|
|
1225
1256
|
return false;
|
|
1226
|
-
if (!(this.
|
|
1257
|
+
if (!(this.s1f_1 == other.s1f_1))
|
|
1227
1258
|
return false;
|
|
1228
|
-
if (!equals(this.
|
|
1259
|
+
if (!equals(this.t1f_1, other.t1f_1))
|
|
1229
1260
|
return false;
|
|
1230
|
-
if (!(this.
|
|
1261
|
+
if (!(this.u1f_1 === other.u1f_1))
|
|
1231
1262
|
return false;
|
|
1232
|
-
if (!equals(this.
|
|
1263
|
+
if (!equals(this.v1f_1, other.v1f_1))
|
|
1233
1264
|
return false;
|
|
1234
|
-
if (!equals(this.
|
|
1265
|
+
if (!equals(this.w1f_1, other.w1f_1))
|
|
1235
1266
|
return false;
|
|
1236
|
-
if (!(this.
|
|
1267
|
+
if (!(this.x1f_1 == other.x1f_1))
|
|
1237
1268
|
return false;
|
|
1238
|
-
if (!equals(this.
|
|
1269
|
+
if (!equals(this.y1f_1, other.y1f_1))
|
|
1239
1270
|
return false;
|
|
1240
|
-
if (!equals(this.
|
|
1271
|
+
if (!equals(this.z1f_1, other.z1f_1))
|
|
1241
1272
|
return false;
|
|
1242
|
-
if (!equals(this.
|
|
1273
|
+
if (!equals(this.a1g_1, other.a1g_1))
|
|
1243
1274
|
return false;
|
|
1244
|
-
if (!equals(this.
|
|
1275
|
+
if (!equals(this.b1g_1, other.b1g_1))
|
|
1245
1276
|
return false;
|
|
1246
|
-
if (!equals(this.
|
|
1277
|
+
if (!equals(this.c1g_1, other.c1g_1))
|
|
1247
1278
|
return false;
|
|
1248
|
-
if (!(this.
|
|
1279
|
+
if (!(this.d1g_1 == other.d1g_1))
|
|
1249
1280
|
return false;
|
|
1250
|
-
if (!equals(this.
|
|
1281
|
+
if (!equals(this.e1g_1, other.e1g_1))
|
|
1251
1282
|
return false;
|
|
1252
|
-
if (!(this.
|
|
1283
|
+
if (!(this.f1g_1 == other.f1g_1))
|
|
1253
1284
|
return false;
|
|
1254
1285
|
return true;
|
|
1255
1286
|
};
|
|
1256
1287
|
function $serializer_2() {
|
|
1257
1288
|
$serializer_instance_2 = this;
|
|
1258
1289
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.ImageClass', this, 8);
|
|
1259
|
-
tmp0_serialDesc.
|
|
1260
|
-
tmp0_serialDesc.
|
|
1261
|
-
tmp0_serialDesc.
|
|
1262
|
-
tmp0_serialDesc.
|
|
1263
|
-
tmp0_serialDesc.
|
|
1264
|
-
tmp0_serialDesc.
|
|
1265
|
-
tmp0_serialDesc.
|
|
1266
|
-
tmp0_serialDesc.
|
|
1267
|
-
this.
|
|
1268
|
-
}
|
|
1269
|
-
protoOf($serializer_2).
|
|
1270
|
-
var tmp0_desc = this.
|
|
1271
|
-
var tmp1_output = encoder.
|
|
1272
|
-
if (tmp1_output.
|
|
1273
|
-
tmp1_output.
|
|
1274
|
-
}
|
|
1275
|
-
tmp1_output.
|
|
1276
|
-
if (tmp1_output.
|
|
1277
|
-
tmp1_output.
|
|
1278
|
-
}
|
|
1279
|
-
if (tmp1_output.
|
|
1280
|
-
tmp1_output.
|
|
1281
|
-
}
|
|
1282
|
-
tmp1_output.
|
|
1283
|
-
if (tmp1_output.
|
|
1284
|
-
tmp1_output.
|
|
1285
|
-
}
|
|
1286
|
-
if (tmp1_output.
|
|
1287
|
-
tmp1_output.
|
|
1288
|
-
}
|
|
1289
|
-
tmp1_output.
|
|
1290
|
-
tmp1_output.
|
|
1291
|
-
};
|
|
1292
|
-
protoOf($serializer_2).
|
|
1293
|
-
return this.
|
|
1294
|
-
};
|
|
1295
|
-
protoOf($serializer_2).
|
|
1296
|
-
var tmp0_desc = this.
|
|
1290
|
+
tmp0_serialDesc.ws('caption', true);
|
|
1291
|
+
tmp0_serialDesc.ws('cropId', false);
|
|
1292
|
+
tmp0_serialDesc.ws('imageType', true);
|
|
1293
|
+
tmp0_serialDesc.ws('mediaApiUrl', true);
|
|
1294
|
+
tmp0_serialDesc.ws('mediaId', false);
|
|
1295
|
+
tmp0_serialDesc.ws('photographer', true);
|
|
1296
|
+
tmp0_serialDesc.ws('source', true);
|
|
1297
|
+
tmp0_serialDesc.ws('url', false);
|
|
1298
|
+
this.g1g_1 = tmp0_serialDesc;
|
|
1299
|
+
}
|
|
1300
|
+
protoOf($serializer_2).h1g = function (encoder, value) {
|
|
1301
|
+
var tmp0_desc = this.g1g_1;
|
|
1302
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
1303
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.i1g_1 == null)) {
|
|
1304
|
+
tmp1_output.fn(tmp0_desc, 0, StringSerializer_getInstance(), value.i1g_1);
|
|
1305
|
+
}
|
|
1306
|
+
tmp1_output.bn(tmp0_desc, 1, value.j1g_1);
|
|
1307
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.k1g_1 == null)) {
|
|
1308
|
+
tmp1_output.fn(tmp0_desc, 2, StringSerializer_getInstance(), value.k1g_1);
|
|
1309
|
+
}
|
|
1310
|
+
if (tmp1_output.jn(tmp0_desc, 3) ? true : !(value.l1g_1 == null)) {
|
|
1311
|
+
tmp1_output.fn(tmp0_desc, 3, StringSerializer_getInstance(), value.l1g_1);
|
|
1312
|
+
}
|
|
1313
|
+
tmp1_output.bn(tmp0_desc, 4, value.m1g_1);
|
|
1314
|
+
if (tmp1_output.jn(tmp0_desc, 5) ? true : !(value.n1g_1 == null)) {
|
|
1315
|
+
tmp1_output.fn(tmp0_desc, 5, StringSerializer_getInstance(), value.n1g_1);
|
|
1316
|
+
}
|
|
1317
|
+
if (tmp1_output.jn(tmp0_desc, 6) ? true : !(value.o1g_1 == null)) {
|
|
1318
|
+
tmp1_output.fn(tmp0_desc, 6, StringSerializer_getInstance(), value.o1g_1);
|
|
1319
|
+
}
|
|
1320
|
+
tmp1_output.bn(tmp0_desc, 7, value.p1g_1);
|
|
1321
|
+
tmp1_output.ol(tmp0_desc);
|
|
1322
|
+
};
|
|
1323
|
+
protoOf($serializer_2).ri = function (encoder, value) {
|
|
1324
|
+
return this.h1g(encoder, value instanceof ImageClass ? value : THROW_CCE());
|
|
1325
|
+
};
|
|
1326
|
+
protoOf($serializer_2).si = function (decoder) {
|
|
1327
|
+
var tmp0_desc = this.g1g_1;
|
|
1297
1328
|
var tmp1_flag = true;
|
|
1298
1329
|
var tmp2_index = 0;
|
|
1299
1330
|
var tmp3_bitMask0 = 0;
|
|
@@ -1305,74 +1336,74 @@
|
|
|
1305
1336
|
var tmp9_local5 = null;
|
|
1306
1337
|
var tmp10_local6 = null;
|
|
1307
1338
|
var tmp11_local7 = null;
|
|
1308
|
-
var tmp12_input = decoder.
|
|
1309
|
-
if (tmp12_input.
|
|
1310
|
-
tmp4_local0 = tmp12_input.
|
|
1339
|
+
var tmp12_input = decoder.nl(tmp0_desc);
|
|
1340
|
+
if (tmp12_input.dm()) {
|
|
1341
|
+
tmp4_local0 = tmp12_input.bm(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
1311
1342
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1312
|
-
tmp5_local1 = tmp12_input.
|
|
1343
|
+
tmp5_local1 = tmp12_input.xl(tmp0_desc, 1);
|
|
1313
1344
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1314
|
-
tmp6_local2 = tmp12_input.
|
|
1345
|
+
tmp6_local2 = tmp12_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1315
1346
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1316
|
-
tmp7_local3 = tmp12_input.
|
|
1347
|
+
tmp7_local3 = tmp12_input.bm(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
1317
1348
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1318
|
-
tmp8_local4 = tmp12_input.
|
|
1349
|
+
tmp8_local4 = tmp12_input.xl(tmp0_desc, 4);
|
|
1319
1350
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1320
|
-
tmp9_local5 = tmp12_input.
|
|
1351
|
+
tmp9_local5 = tmp12_input.bm(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1321
1352
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1322
|
-
tmp10_local6 = tmp12_input.
|
|
1353
|
+
tmp10_local6 = tmp12_input.bm(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1323
1354
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1324
|
-
tmp11_local7 = tmp12_input.
|
|
1355
|
+
tmp11_local7 = tmp12_input.xl(tmp0_desc, 7);
|
|
1325
1356
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1326
1357
|
} else
|
|
1327
1358
|
while (tmp1_flag) {
|
|
1328
|
-
tmp2_index = tmp12_input.
|
|
1359
|
+
tmp2_index = tmp12_input.em(tmp0_desc);
|
|
1329
1360
|
switch (tmp2_index) {
|
|
1330
1361
|
case -1:
|
|
1331
1362
|
tmp1_flag = false;
|
|
1332
1363
|
break;
|
|
1333
1364
|
case 0:
|
|
1334
|
-
tmp4_local0 = tmp12_input.
|
|
1365
|
+
tmp4_local0 = tmp12_input.bm(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
1335
1366
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1336
1367
|
break;
|
|
1337
1368
|
case 1:
|
|
1338
|
-
tmp5_local1 = tmp12_input.
|
|
1369
|
+
tmp5_local1 = tmp12_input.xl(tmp0_desc, 1);
|
|
1339
1370
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1340
1371
|
break;
|
|
1341
1372
|
case 2:
|
|
1342
|
-
tmp6_local2 = tmp12_input.
|
|
1373
|
+
tmp6_local2 = tmp12_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1343
1374
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1344
1375
|
break;
|
|
1345
1376
|
case 3:
|
|
1346
|
-
tmp7_local3 = tmp12_input.
|
|
1377
|
+
tmp7_local3 = tmp12_input.bm(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
1347
1378
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1348
1379
|
break;
|
|
1349
1380
|
case 4:
|
|
1350
|
-
tmp8_local4 = tmp12_input.
|
|
1381
|
+
tmp8_local4 = tmp12_input.xl(tmp0_desc, 4);
|
|
1351
1382
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1352
1383
|
break;
|
|
1353
1384
|
case 5:
|
|
1354
|
-
tmp9_local5 = tmp12_input.
|
|
1385
|
+
tmp9_local5 = tmp12_input.bm(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1355
1386
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1356
1387
|
break;
|
|
1357
1388
|
case 6:
|
|
1358
|
-
tmp10_local6 = tmp12_input.
|
|
1389
|
+
tmp10_local6 = tmp12_input.bm(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1359
1390
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1360
1391
|
break;
|
|
1361
1392
|
case 7:
|
|
1362
|
-
tmp11_local7 = tmp12_input.
|
|
1393
|
+
tmp11_local7 = tmp12_input.xl(tmp0_desc, 7);
|
|
1363
1394
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1364
1395
|
break;
|
|
1365
1396
|
default:
|
|
1366
1397
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1367
1398
|
}
|
|
1368
1399
|
}
|
|
1369
|
-
tmp12_input.
|
|
1400
|
+
tmp12_input.ol(tmp0_desc);
|
|
1370
1401
|
return ImageClass_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1371
1402
|
};
|
|
1372
|
-
protoOf($serializer_2).
|
|
1373
|
-
return this.
|
|
1403
|
+
protoOf($serializer_2).qi = function () {
|
|
1404
|
+
return this.g1g_1;
|
|
1374
1405
|
};
|
|
1375
|
-
protoOf($serializer_2).
|
|
1406
|
+
protoOf($serializer_2).ys = function () {
|
|
1376
1407
|
// Inline function 'kotlin.arrayOf' call
|
|
1377
1408
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1378
1409
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1386,31 +1417,31 @@
|
|
|
1386
1417
|
}
|
|
1387
1418
|
function ImageClass_init_$Init$(seen0, caption, cropID, imageType, mediaAPIURL, mediaID, photographer, source, url, serializationConstructorMarker, $this) {
|
|
1388
1419
|
if (!(146 === (146 & seen0))) {
|
|
1389
|
-
throwMissingFieldException(seen0, 146, $serializer_getInstance_2().
|
|
1420
|
+
throwMissingFieldException(seen0, 146, $serializer_getInstance_2().g1g_1);
|
|
1390
1421
|
}
|
|
1391
1422
|
if (0 === (seen0 & 1))
|
|
1392
|
-
$this.
|
|
1423
|
+
$this.i1g_1 = null;
|
|
1393
1424
|
else
|
|
1394
|
-
$this.
|
|
1395
|
-
$this.
|
|
1425
|
+
$this.i1g_1 = caption;
|
|
1426
|
+
$this.j1g_1 = cropID;
|
|
1396
1427
|
if (0 === (seen0 & 4))
|
|
1397
|
-
$this.
|
|
1428
|
+
$this.k1g_1 = null;
|
|
1398
1429
|
else
|
|
1399
|
-
$this.
|
|
1430
|
+
$this.k1g_1 = imageType;
|
|
1400
1431
|
if (0 === (seen0 & 8))
|
|
1401
|
-
$this.
|
|
1432
|
+
$this.l1g_1 = null;
|
|
1402
1433
|
else
|
|
1403
|
-
$this.
|
|
1404
|
-
$this.
|
|
1434
|
+
$this.l1g_1 = mediaAPIURL;
|
|
1435
|
+
$this.m1g_1 = mediaID;
|
|
1405
1436
|
if (0 === (seen0 & 32))
|
|
1406
|
-
$this.
|
|
1437
|
+
$this.n1g_1 = null;
|
|
1407
1438
|
else
|
|
1408
|
-
$this.
|
|
1439
|
+
$this.n1g_1 = photographer;
|
|
1409
1440
|
if (0 === (seen0 & 64))
|
|
1410
|
-
$this.
|
|
1441
|
+
$this.o1g_1 = null;
|
|
1411
1442
|
else
|
|
1412
|
-
$this.
|
|
1413
|
-
$this.
|
|
1443
|
+
$this.o1g_1 = source;
|
|
1444
|
+
$this.p1g_1 = url;
|
|
1414
1445
|
return $this;
|
|
1415
1446
|
}
|
|
1416
1447
|
function ImageClass_init_$Create$(seen0, caption, cropID, imageType, mediaAPIURL, mediaID, photographer, source, url, serializationConstructorMarker) {
|
|
@@ -1419,17 +1450,17 @@
|
|
|
1419
1450
|
function ImageClass() {
|
|
1420
1451
|
}
|
|
1421
1452
|
protoOf(ImageClass).toString = function () {
|
|
1422
|
-
return 'ImageClass(caption=' + this.
|
|
1453
|
+
return 'ImageClass(caption=' + this.i1g_1 + ', cropID=' + this.j1g_1 + ', imageType=' + this.k1g_1 + ', mediaAPIURL=' + this.l1g_1 + ', mediaID=' + this.m1g_1 + ', photographer=' + this.n1g_1 + ', source=' + this.o1g_1 + ', url=' + this.p1g_1 + ')';
|
|
1423
1454
|
};
|
|
1424
1455
|
protoOf(ImageClass).hashCode = function () {
|
|
1425
|
-
var result = this.
|
|
1426
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1427
|
-
result = imul(result, 31) + (this.
|
|
1428
|
-
result = imul(result, 31) + (this.
|
|
1429
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1430
|
-
result = imul(result, 31) + (this.
|
|
1431
|
-
result = imul(result, 31) + (this.
|
|
1432
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1456
|
+
var result = this.i1g_1 == null ? 0 : getStringHashCode(this.i1g_1);
|
|
1457
|
+
result = imul(result, 31) + getStringHashCode(this.j1g_1) | 0;
|
|
1458
|
+
result = imul(result, 31) + (this.k1g_1 == null ? 0 : getStringHashCode(this.k1g_1)) | 0;
|
|
1459
|
+
result = imul(result, 31) + (this.l1g_1 == null ? 0 : getStringHashCode(this.l1g_1)) | 0;
|
|
1460
|
+
result = imul(result, 31) + getStringHashCode(this.m1g_1) | 0;
|
|
1461
|
+
result = imul(result, 31) + (this.n1g_1 == null ? 0 : getStringHashCode(this.n1g_1)) | 0;
|
|
1462
|
+
result = imul(result, 31) + (this.o1g_1 == null ? 0 : getStringHashCode(this.o1g_1)) | 0;
|
|
1463
|
+
result = imul(result, 31) + getStringHashCode(this.p1g_1) | 0;
|
|
1433
1464
|
return result;
|
|
1434
1465
|
};
|
|
1435
1466
|
protoOf(ImageClass).equals = function (other) {
|
|
@@ -1437,21 +1468,21 @@
|
|
|
1437
1468
|
return true;
|
|
1438
1469
|
if (!(other instanceof ImageClass))
|
|
1439
1470
|
return false;
|
|
1440
|
-
if (!(this.
|
|
1471
|
+
if (!(this.i1g_1 == other.i1g_1))
|
|
1441
1472
|
return false;
|
|
1442
|
-
if (!(this.
|
|
1473
|
+
if (!(this.j1g_1 === other.j1g_1))
|
|
1443
1474
|
return false;
|
|
1444
|
-
if (!(this.
|
|
1475
|
+
if (!(this.k1g_1 == other.k1g_1))
|
|
1445
1476
|
return false;
|
|
1446
|
-
if (!(this.
|
|
1477
|
+
if (!(this.l1g_1 == other.l1g_1))
|
|
1447
1478
|
return false;
|
|
1448
|
-
if (!(this.
|
|
1479
|
+
if (!(this.m1g_1 === other.m1g_1))
|
|
1449
1480
|
return false;
|
|
1450
|
-
if (!(this.
|
|
1481
|
+
if (!(this.n1g_1 == other.n1g_1))
|
|
1451
1482
|
return false;
|
|
1452
|
-
if (!(this.
|
|
1483
|
+
if (!(this.o1g_1 == other.o1g_1))
|
|
1453
1484
|
return false;
|
|
1454
|
-
if (!(this.
|
|
1485
|
+
if (!(this.p1g_1 === other.p1g_1))
|
|
1455
1486
|
return false;
|
|
1456
1487
|
return true;
|
|
1457
1488
|
};
|
|
@@ -1465,7 +1496,7 @@
|
|
|
1465
1496
|
// Inline function 'kotlin.arrayOf' call
|
|
1466
1497
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1467
1498
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1468
|
-
tmp.
|
|
1499
|
+
tmp.q1g_1 = [lazy(tmp_0, IngredientElement$Companion$$childSerializers$_anonymous__4w7loh), null];
|
|
1469
1500
|
}
|
|
1470
1501
|
var Companion_instance_2;
|
|
1471
1502
|
function Companion_getInstance_2() {
|
|
@@ -1476,70 +1507,70 @@
|
|
|
1476
1507
|
function $serializer_3() {
|
|
1477
1508
|
$serializer_instance_3 = this;
|
|
1478
1509
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.IngredientElement', this, 2);
|
|
1479
|
-
tmp0_serialDesc.
|
|
1480
|
-
tmp0_serialDesc.
|
|
1481
|
-
this.
|
|
1510
|
+
tmp0_serialDesc.ws('ingredientsList', true);
|
|
1511
|
+
tmp0_serialDesc.ws('recipeSection', true);
|
|
1512
|
+
this.r1g_1 = tmp0_serialDesc;
|
|
1482
1513
|
}
|
|
1483
|
-
protoOf($serializer_3).
|
|
1484
|
-
var tmp0_desc = this.
|
|
1485
|
-
var tmp1_output = encoder.
|
|
1486
|
-
var tmp2_cached = Companion_getInstance_2().
|
|
1487
|
-
if (tmp1_output.
|
|
1488
|
-
tmp1_output.
|
|
1514
|
+
protoOf($serializer_3).s1g = function (encoder, value) {
|
|
1515
|
+
var tmp0_desc = this.r1g_1;
|
|
1516
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
1517
|
+
var tmp2_cached = Companion_getInstance_2().q1g_1;
|
|
1518
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.t1g_1 == null)) {
|
|
1519
|
+
tmp1_output.fn(tmp0_desc, 0, tmp2_cached[0].t1(), value.t1g_1);
|
|
1489
1520
|
}
|
|
1490
|
-
if (tmp1_output.
|
|
1491
|
-
tmp1_output.
|
|
1521
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.u1g_1 == null)) {
|
|
1522
|
+
tmp1_output.fn(tmp0_desc, 1, StringSerializer_getInstance(), value.u1g_1);
|
|
1492
1523
|
}
|
|
1493
|
-
tmp1_output.
|
|
1524
|
+
tmp1_output.ol(tmp0_desc);
|
|
1494
1525
|
};
|
|
1495
|
-
protoOf($serializer_3).
|
|
1496
|
-
return this.
|
|
1526
|
+
protoOf($serializer_3).ri = function (encoder, value) {
|
|
1527
|
+
return this.s1g(encoder, value instanceof IngredientElement ? value : THROW_CCE());
|
|
1497
1528
|
};
|
|
1498
|
-
protoOf($serializer_3).
|
|
1499
|
-
var tmp0_desc = this.
|
|
1529
|
+
protoOf($serializer_3).si = function (decoder) {
|
|
1530
|
+
var tmp0_desc = this.r1g_1;
|
|
1500
1531
|
var tmp1_flag = true;
|
|
1501
1532
|
var tmp2_index = 0;
|
|
1502
1533
|
var tmp3_bitMask0 = 0;
|
|
1503
1534
|
var tmp4_local0 = null;
|
|
1504
1535
|
var tmp5_local1 = null;
|
|
1505
|
-
var tmp6_input = decoder.
|
|
1506
|
-
var tmp7_cached = Companion_getInstance_2().
|
|
1507
|
-
if (tmp6_input.
|
|
1508
|
-
tmp4_local0 = tmp6_input.
|
|
1536
|
+
var tmp6_input = decoder.nl(tmp0_desc);
|
|
1537
|
+
var tmp7_cached = Companion_getInstance_2().q1g_1;
|
|
1538
|
+
if (tmp6_input.dm()) {
|
|
1539
|
+
tmp4_local0 = tmp6_input.bm(tmp0_desc, 0, tmp7_cached[0].t1(), tmp4_local0);
|
|
1509
1540
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1510
|
-
tmp5_local1 = tmp6_input.
|
|
1541
|
+
tmp5_local1 = tmp6_input.bm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1511
1542
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1512
1543
|
} else
|
|
1513
1544
|
while (tmp1_flag) {
|
|
1514
|
-
tmp2_index = tmp6_input.
|
|
1545
|
+
tmp2_index = tmp6_input.em(tmp0_desc);
|
|
1515
1546
|
switch (tmp2_index) {
|
|
1516
1547
|
case -1:
|
|
1517
1548
|
tmp1_flag = false;
|
|
1518
1549
|
break;
|
|
1519
1550
|
case 0:
|
|
1520
|
-
tmp4_local0 = tmp6_input.
|
|
1551
|
+
tmp4_local0 = tmp6_input.bm(tmp0_desc, 0, tmp7_cached[0].t1(), tmp4_local0);
|
|
1521
1552
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1522
1553
|
break;
|
|
1523
1554
|
case 1:
|
|
1524
|
-
tmp5_local1 = tmp6_input.
|
|
1555
|
+
tmp5_local1 = tmp6_input.bm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1525
1556
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1526
1557
|
break;
|
|
1527
1558
|
default:
|
|
1528
1559
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1529
1560
|
}
|
|
1530
1561
|
}
|
|
1531
|
-
tmp6_input.
|
|
1562
|
+
tmp6_input.ol(tmp0_desc);
|
|
1532
1563
|
return IngredientElement_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1533
1564
|
};
|
|
1534
|
-
protoOf($serializer_3).
|
|
1535
|
-
return this.
|
|
1565
|
+
protoOf($serializer_3).qi = function () {
|
|
1566
|
+
return this.r1g_1;
|
|
1536
1567
|
};
|
|
1537
|
-
protoOf($serializer_3).
|
|
1538
|
-
var tmp0_cached = Companion_getInstance_2().
|
|
1568
|
+
protoOf($serializer_3).ys = function () {
|
|
1569
|
+
var tmp0_cached = Companion_getInstance_2().q1g_1;
|
|
1539
1570
|
// Inline function 'kotlin.arrayOf' call
|
|
1540
1571
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1541
1572
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1542
|
-
return [get_nullable(tmp0_cached[0].
|
|
1573
|
+
return [get_nullable(tmp0_cached[0].t1()), get_nullable(StringSerializer_getInstance())];
|
|
1543
1574
|
};
|
|
1544
1575
|
var $serializer_instance_3;
|
|
1545
1576
|
function $serializer_getInstance_3() {
|
|
@@ -1549,16 +1580,16 @@
|
|
|
1549
1580
|
}
|
|
1550
1581
|
function IngredientElement_init_$Init$(seen0, ingredientsList, recipeSection, serializationConstructorMarker, $this) {
|
|
1551
1582
|
if (!(0 === (0 & seen0))) {
|
|
1552
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_3().
|
|
1583
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_3().r1g_1);
|
|
1553
1584
|
}
|
|
1554
1585
|
if (0 === (seen0 & 1))
|
|
1555
|
-
$this.
|
|
1586
|
+
$this.t1g_1 = null;
|
|
1556
1587
|
else
|
|
1557
|
-
$this.
|
|
1588
|
+
$this.t1g_1 = ingredientsList;
|
|
1558
1589
|
if (0 === (seen0 & 2))
|
|
1559
|
-
$this.
|
|
1590
|
+
$this.u1g_1 = null;
|
|
1560
1591
|
else
|
|
1561
|
-
$this.
|
|
1592
|
+
$this.u1g_1 = recipeSection;
|
|
1562
1593
|
return $this;
|
|
1563
1594
|
}
|
|
1564
1595
|
function IngredientElement_init_$Create$(seen0, ingredientsList, recipeSection, serializationConstructorMarker) {
|
|
@@ -1568,15 +1599,15 @@
|
|
|
1568
1599
|
Companion_getInstance_2();
|
|
1569
1600
|
ingredientsList = ingredientsList === VOID ? null : ingredientsList;
|
|
1570
1601
|
recipeSection = recipeSection === VOID ? null : recipeSection;
|
|
1571
|
-
this.
|
|
1572
|
-
this.
|
|
1602
|
+
this.t1g_1 = ingredientsList;
|
|
1603
|
+
this.u1g_1 = recipeSection;
|
|
1573
1604
|
}
|
|
1574
1605
|
protoOf(IngredientElement).toString = function () {
|
|
1575
|
-
return 'IngredientElement(ingredientsList=' + toString(this.
|
|
1606
|
+
return 'IngredientElement(ingredientsList=' + toString(this.t1g_1) + ', recipeSection=' + this.u1g_1 + ')';
|
|
1576
1607
|
};
|
|
1577
1608
|
protoOf(IngredientElement).hashCode = function () {
|
|
1578
|
-
var result = this.
|
|
1579
|
-
result = imul(result, 31) + (this.
|
|
1609
|
+
var result = this.t1g_1 == null ? 0 : hashCode(this.t1g_1);
|
|
1610
|
+
result = imul(result, 31) + (this.u1g_1 == null ? 0 : getStringHashCode(this.u1g_1)) | 0;
|
|
1580
1611
|
return result;
|
|
1581
1612
|
};
|
|
1582
1613
|
protoOf(IngredientElement).equals = function (other) {
|
|
@@ -1584,9 +1615,9 @@
|
|
|
1584
1615
|
return true;
|
|
1585
1616
|
if (!(other instanceof IngredientElement))
|
|
1586
1617
|
return false;
|
|
1587
|
-
if (!equals(this.
|
|
1618
|
+
if (!equals(this.t1g_1, other.t1g_1))
|
|
1588
1619
|
return false;
|
|
1589
|
-
if (!(this.
|
|
1620
|
+
if (!(this.u1g_1 == other.u1g_1))
|
|
1590
1621
|
return false;
|
|
1591
1622
|
return true;
|
|
1592
1623
|
};
|
|
@@ -1600,7 +1631,7 @@
|
|
|
1600
1631
|
// Inline function 'kotlin.arrayOf' call
|
|
1601
1632
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1602
1633
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1603
|
-
tmp.
|
|
1634
|
+
tmp.v1g_1 = [null, lazy(tmp_0, InstructionElement$Companion$$childSerializers$_anonymous__fr382k), null];
|
|
1604
1635
|
}
|
|
1605
1636
|
var Companion_instance_3;
|
|
1606
1637
|
function Companion_getInstance_3() {
|
|
@@ -1611,79 +1642,79 @@
|
|
|
1611
1642
|
function $serializer_4() {
|
|
1612
1643
|
$serializer_instance_4 = this;
|
|
1613
1644
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.InstructionElement', this, 3);
|
|
1614
|
-
tmp0_serialDesc.
|
|
1615
|
-
tmp0_serialDesc.
|
|
1616
|
-
tmp0_serialDesc.
|
|
1617
|
-
this.
|
|
1645
|
+
tmp0_serialDesc.ws('description', false);
|
|
1646
|
+
tmp0_serialDesc.ws('images', true);
|
|
1647
|
+
tmp0_serialDesc.ws('stepNumber', true);
|
|
1648
|
+
this.w1g_1 = tmp0_serialDesc;
|
|
1618
1649
|
}
|
|
1619
|
-
protoOf($serializer_4).
|
|
1620
|
-
var tmp0_desc = this.
|
|
1621
|
-
var tmp1_output = encoder.
|
|
1622
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
1623
|
-
tmp1_output.
|
|
1624
|
-
if (tmp1_output.
|
|
1625
|
-
tmp1_output.
|
|
1650
|
+
protoOf($serializer_4).x1g = function (encoder, value) {
|
|
1651
|
+
var tmp0_desc = this.w1g_1;
|
|
1652
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
1653
|
+
var tmp2_cached = Companion_getInstance_3().v1g_1;
|
|
1654
|
+
tmp1_output.bn(tmp0_desc, 0, value.y1g_1);
|
|
1655
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.z1g_1 == null)) {
|
|
1656
|
+
tmp1_output.fn(tmp0_desc, 1, tmp2_cached[1].t1(), value.z1g_1);
|
|
1626
1657
|
}
|
|
1627
|
-
if (tmp1_output.
|
|
1628
|
-
tmp1_output.
|
|
1658
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.a1h_1 == null)) {
|
|
1659
|
+
tmp1_output.fn(tmp0_desc, 2, DoubleSerializer_getInstance(), value.a1h_1);
|
|
1629
1660
|
}
|
|
1630
|
-
tmp1_output.
|
|
1661
|
+
tmp1_output.ol(tmp0_desc);
|
|
1631
1662
|
};
|
|
1632
|
-
protoOf($serializer_4).
|
|
1633
|
-
return this.
|
|
1663
|
+
protoOf($serializer_4).ri = function (encoder, value) {
|
|
1664
|
+
return this.x1g(encoder, value instanceof InstructionElement ? value : THROW_CCE());
|
|
1634
1665
|
};
|
|
1635
|
-
protoOf($serializer_4).
|
|
1636
|
-
var tmp0_desc = this.
|
|
1666
|
+
protoOf($serializer_4).si = function (decoder) {
|
|
1667
|
+
var tmp0_desc = this.w1g_1;
|
|
1637
1668
|
var tmp1_flag = true;
|
|
1638
1669
|
var tmp2_index = 0;
|
|
1639
1670
|
var tmp3_bitMask0 = 0;
|
|
1640
1671
|
var tmp4_local0 = null;
|
|
1641
1672
|
var tmp5_local1 = null;
|
|
1642
1673
|
var tmp6_local2 = null;
|
|
1643
|
-
var tmp7_input = decoder.
|
|
1644
|
-
var tmp8_cached = Companion_getInstance_3().
|
|
1645
|
-
if (tmp7_input.
|
|
1646
|
-
tmp4_local0 = tmp7_input.
|
|
1674
|
+
var tmp7_input = decoder.nl(tmp0_desc);
|
|
1675
|
+
var tmp8_cached = Companion_getInstance_3().v1g_1;
|
|
1676
|
+
if (tmp7_input.dm()) {
|
|
1677
|
+
tmp4_local0 = tmp7_input.xl(tmp0_desc, 0);
|
|
1647
1678
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1648
|
-
tmp5_local1 = tmp7_input.
|
|
1679
|
+
tmp5_local1 = tmp7_input.bm(tmp0_desc, 1, tmp8_cached[1].t1(), tmp5_local1);
|
|
1649
1680
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1650
|
-
tmp6_local2 = tmp7_input.
|
|
1681
|
+
tmp6_local2 = tmp7_input.bm(tmp0_desc, 2, DoubleSerializer_getInstance(), tmp6_local2);
|
|
1651
1682
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1652
1683
|
} else
|
|
1653
1684
|
while (tmp1_flag) {
|
|
1654
|
-
tmp2_index = tmp7_input.
|
|
1685
|
+
tmp2_index = tmp7_input.em(tmp0_desc);
|
|
1655
1686
|
switch (tmp2_index) {
|
|
1656
1687
|
case -1:
|
|
1657
1688
|
tmp1_flag = false;
|
|
1658
1689
|
break;
|
|
1659
1690
|
case 0:
|
|
1660
|
-
tmp4_local0 = tmp7_input.
|
|
1691
|
+
tmp4_local0 = tmp7_input.xl(tmp0_desc, 0);
|
|
1661
1692
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1662
1693
|
break;
|
|
1663
1694
|
case 1:
|
|
1664
|
-
tmp5_local1 = tmp7_input.
|
|
1695
|
+
tmp5_local1 = tmp7_input.bm(tmp0_desc, 1, tmp8_cached[1].t1(), tmp5_local1);
|
|
1665
1696
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1666
1697
|
break;
|
|
1667
1698
|
case 2:
|
|
1668
|
-
tmp6_local2 = tmp7_input.
|
|
1699
|
+
tmp6_local2 = tmp7_input.bm(tmp0_desc, 2, DoubleSerializer_getInstance(), tmp6_local2);
|
|
1669
1700
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1670
1701
|
break;
|
|
1671
1702
|
default:
|
|
1672
1703
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1673
1704
|
}
|
|
1674
1705
|
}
|
|
1675
|
-
tmp7_input.
|
|
1706
|
+
tmp7_input.ol(tmp0_desc);
|
|
1676
1707
|
return InstructionElement_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1677
1708
|
};
|
|
1678
|
-
protoOf($serializer_4).
|
|
1679
|
-
return this.
|
|
1709
|
+
protoOf($serializer_4).qi = function () {
|
|
1710
|
+
return this.w1g_1;
|
|
1680
1711
|
};
|
|
1681
|
-
protoOf($serializer_4).
|
|
1682
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
1712
|
+
protoOf($serializer_4).ys = function () {
|
|
1713
|
+
var tmp0_cached = Companion_getInstance_3().v1g_1;
|
|
1683
1714
|
// Inline function 'kotlin.arrayOf' call
|
|
1684
1715
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1685
1716
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1686
|
-
return [StringSerializer_getInstance(), get_nullable(tmp0_cached[1].
|
|
1717
|
+
return [StringSerializer_getInstance(), get_nullable(tmp0_cached[1].t1()), get_nullable(DoubleSerializer_getInstance())];
|
|
1687
1718
|
};
|
|
1688
1719
|
var $serializer_instance_4;
|
|
1689
1720
|
function $serializer_getInstance_4() {
|
|
@@ -1693,17 +1724,17 @@
|
|
|
1693
1724
|
}
|
|
1694
1725
|
function InstructionElement_init_$Init$(seen0, description, images, stepNumber, serializationConstructorMarker, $this) {
|
|
1695
1726
|
if (!(1 === (1 & seen0))) {
|
|
1696
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_4().
|
|
1727
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_4().w1g_1);
|
|
1697
1728
|
}
|
|
1698
|
-
$this.
|
|
1729
|
+
$this.y1g_1 = description;
|
|
1699
1730
|
if (0 === (seen0 & 2))
|
|
1700
|
-
$this.
|
|
1731
|
+
$this.z1g_1 = null;
|
|
1701
1732
|
else
|
|
1702
|
-
$this.
|
|
1733
|
+
$this.z1g_1 = images;
|
|
1703
1734
|
if (0 === (seen0 & 4))
|
|
1704
|
-
$this.
|
|
1735
|
+
$this.a1h_1 = null;
|
|
1705
1736
|
else
|
|
1706
|
-
$this.
|
|
1737
|
+
$this.a1h_1 = stepNumber;
|
|
1707
1738
|
return $this;
|
|
1708
1739
|
}
|
|
1709
1740
|
function InstructionElement_init_$Create$(seen0, description, images, stepNumber, serializationConstructorMarker) {
|
|
@@ -1713,17 +1744,17 @@
|
|
|
1713
1744
|
Companion_getInstance_3();
|
|
1714
1745
|
images = images === VOID ? null : images;
|
|
1715
1746
|
stepNumber = stepNumber === VOID ? null : stepNumber;
|
|
1716
|
-
this.
|
|
1717
|
-
this.
|
|
1718
|
-
this.
|
|
1747
|
+
this.y1g_1 = description;
|
|
1748
|
+
this.z1g_1 = images;
|
|
1749
|
+
this.a1h_1 = stepNumber;
|
|
1719
1750
|
}
|
|
1720
1751
|
protoOf(InstructionElement).toString = function () {
|
|
1721
|
-
return 'InstructionElement(description=' + this.
|
|
1752
|
+
return 'InstructionElement(description=' + this.y1g_1 + ', images=' + toString(this.z1g_1) + ', stepNumber=' + this.a1h_1 + ')';
|
|
1722
1753
|
};
|
|
1723
1754
|
protoOf(InstructionElement).hashCode = function () {
|
|
1724
|
-
var result = getStringHashCode(this.
|
|
1725
|
-
result = imul(result, 31) + (this.
|
|
1726
|
-
result = imul(result, 31) + (this.
|
|
1755
|
+
var result = getStringHashCode(this.y1g_1);
|
|
1756
|
+
result = imul(result, 31) + (this.z1g_1 == null ? 0 : hashCode(this.z1g_1)) | 0;
|
|
1757
|
+
result = imul(result, 31) + (this.a1h_1 == null ? 0 : getNumberHashCode(this.a1h_1)) | 0;
|
|
1727
1758
|
return result;
|
|
1728
1759
|
};
|
|
1729
1760
|
protoOf(InstructionElement).equals = function (other) {
|
|
@@ -1731,83 +1762,83 @@
|
|
|
1731
1762
|
return true;
|
|
1732
1763
|
if (!(other instanceof InstructionElement))
|
|
1733
1764
|
return false;
|
|
1734
|
-
if (!(this.
|
|
1765
|
+
if (!(this.y1g_1 === other.y1g_1))
|
|
1735
1766
|
return false;
|
|
1736
|
-
if (!equals(this.
|
|
1767
|
+
if (!equals(this.z1g_1, other.z1g_1))
|
|
1737
1768
|
return false;
|
|
1738
|
-
if (!equals(this.
|
|
1769
|
+
if (!equals(this.a1h_1, other.a1h_1))
|
|
1739
1770
|
return false;
|
|
1740
1771
|
return true;
|
|
1741
1772
|
};
|
|
1742
1773
|
function $serializer_5() {
|
|
1743
1774
|
$serializer_instance_5 = this;
|
|
1744
1775
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.ServeElement', this, 3);
|
|
1745
|
-
tmp0_serialDesc.
|
|
1746
|
-
tmp0_serialDesc.
|
|
1747
|
-
tmp0_serialDesc.
|
|
1748
|
-
this.
|
|
1776
|
+
tmp0_serialDesc.ws('amount', true);
|
|
1777
|
+
tmp0_serialDesc.ws('text', true);
|
|
1778
|
+
tmp0_serialDesc.ws('unit', false);
|
|
1779
|
+
this.b1h_1 = tmp0_serialDesc;
|
|
1749
1780
|
}
|
|
1750
|
-
protoOf($serializer_5).
|
|
1751
|
-
var tmp0_desc = this.
|
|
1752
|
-
var tmp1_output = encoder.
|
|
1753
|
-
if (tmp1_output.
|
|
1754
|
-
tmp1_output.
|
|
1781
|
+
protoOf($serializer_5).c1h = function (encoder, value) {
|
|
1782
|
+
var tmp0_desc = this.b1h_1;
|
|
1783
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
1784
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.d1h_1 == null)) {
|
|
1785
|
+
tmp1_output.fn(tmp0_desc, 0, $serializer_getInstance(), value.d1h_1);
|
|
1755
1786
|
}
|
|
1756
|
-
if (tmp1_output.
|
|
1757
|
-
tmp1_output.
|
|
1787
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.e1h_1 == null)) {
|
|
1788
|
+
tmp1_output.fn(tmp0_desc, 1, StringSerializer_getInstance(), value.e1h_1);
|
|
1758
1789
|
}
|
|
1759
|
-
tmp1_output.
|
|
1760
|
-
tmp1_output.
|
|
1790
|
+
tmp1_output.bn(tmp0_desc, 2, value.f1h_1);
|
|
1791
|
+
tmp1_output.ol(tmp0_desc);
|
|
1761
1792
|
};
|
|
1762
|
-
protoOf($serializer_5).
|
|
1763
|
-
return this.
|
|
1793
|
+
protoOf($serializer_5).ri = function (encoder, value) {
|
|
1794
|
+
return this.c1h(encoder, value instanceof ServeElement ? value : THROW_CCE());
|
|
1764
1795
|
};
|
|
1765
|
-
protoOf($serializer_5).
|
|
1766
|
-
var tmp0_desc = this.
|
|
1796
|
+
protoOf($serializer_5).si = function (decoder) {
|
|
1797
|
+
var tmp0_desc = this.b1h_1;
|
|
1767
1798
|
var tmp1_flag = true;
|
|
1768
1799
|
var tmp2_index = 0;
|
|
1769
1800
|
var tmp3_bitMask0 = 0;
|
|
1770
1801
|
var tmp4_local0 = null;
|
|
1771
1802
|
var tmp5_local1 = null;
|
|
1772
1803
|
var tmp6_local2 = null;
|
|
1773
|
-
var tmp7_input = decoder.
|
|
1774
|
-
if (tmp7_input.
|
|
1775
|
-
tmp4_local0 = tmp7_input.
|
|
1804
|
+
var tmp7_input = decoder.nl(tmp0_desc);
|
|
1805
|
+
if (tmp7_input.dm()) {
|
|
1806
|
+
tmp4_local0 = tmp7_input.bm(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0);
|
|
1776
1807
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1777
|
-
tmp5_local1 = tmp7_input.
|
|
1808
|
+
tmp5_local1 = tmp7_input.bm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1778
1809
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1779
|
-
tmp6_local2 = tmp7_input.
|
|
1810
|
+
tmp6_local2 = tmp7_input.xl(tmp0_desc, 2);
|
|
1780
1811
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1781
1812
|
} else
|
|
1782
1813
|
while (tmp1_flag) {
|
|
1783
|
-
tmp2_index = tmp7_input.
|
|
1814
|
+
tmp2_index = tmp7_input.em(tmp0_desc);
|
|
1784
1815
|
switch (tmp2_index) {
|
|
1785
1816
|
case -1:
|
|
1786
1817
|
tmp1_flag = false;
|
|
1787
1818
|
break;
|
|
1788
1819
|
case 0:
|
|
1789
|
-
tmp4_local0 = tmp7_input.
|
|
1820
|
+
tmp4_local0 = tmp7_input.bm(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0);
|
|
1790
1821
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1791
1822
|
break;
|
|
1792
1823
|
case 1:
|
|
1793
|
-
tmp5_local1 = tmp7_input.
|
|
1824
|
+
tmp5_local1 = tmp7_input.bm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1794
1825
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1795
1826
|
break;
|
|
1796
1827
|
case 2:
|
|
1797
|
-
tmp6_local2 = tmp7_input.
|
|
1828
|
+
tmp6_local2 = tmp7_input.xl(tmp0_desc, 2);
|
|
1798
1829
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1799
1830
|
break;
|
|
1800
1831
|
default:
|
|
1801
1832
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1802
1833
|
}
|
|
1803
1834
|
}
|
|
1804
|
-
tmp7_input.
|
|
1835
|
+
tmp7_input.ol(tmp0_desc);
|
|
1805
1836
|
return ServeElement_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1806
1837
|
};
|
|
1807
|
-
protoOf($serializer_5).
|
|
1808
|
-
return this.
|
|
1838
|
+
protoOf($serializer_5).qi = function () {
|
|
1839
|
+
return this.b1h_1;
|
|
1809
1840
|
};
|
|
1810
|
-
protoOf($serializer_5).
|
|
1841
|
+
protoOf($serializer_5).ys = function () {
|
|
1811
1842
|
// Inline function 'kotlin.arrayOf' call
|
|
1812
1843
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1813
1844
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1821,17 +1852,17 @@
|
|
|
1821
1852
|
}
|
|
1822
1853
|
function ServeElement_init_$Init$(seen0, amount, text, unit, serializationConstructorMarker, $this) {
|
|
1823
1854
|
if (!(4 === (4 & seen0))) {
|
|
1824
|
-
throwMissingFieldException(seen0, 4, $serializer_getInstance_5().
|
|
1855
|
+
throwMissingFieldException(seen0, 4, $serializer_getInstance_5().b1h_1);
|
|
1825
1856
|
}
|
|
1826
1857
|
if (0 === (seen0 & 1))
|
|
1827
|
-
$this.
|
|
1858
|
+
$this.d1h_1 = null;
|
|
1828
1859
|
else
|
|
1829
|
-
$this.
|
|
1860
|
+
$this.d1h_1 = amount;
|
|
1830
1861
|
if (0 === (seen0 & 2))
|
|
1831
|
-
$this.
|
|
1862
|
+
$this.e1h_1 = null;
|
|
1832
1863
|
else
|
|
1833
|
-
$this.
|
|
1834
|
-
$this.
|
|
1864
|
+
$this.e1h_1 = text;
|
|
1865
|
+
$this.f1h_1 = unit;
|
|
1835
1866
|
return $this;
|
|
1836
1867
|
}
|
|
1837
1868
|
function ServeElement_init_$Create$(seen0, amount, text, unit, serializationConstructorMarker) {
|
|
@@ -1840,12 +1871,12 @@
|
|
|
1840
1871
|
function ServeElement() {
|
|
1841
1872
|
}
|
|
1842
1873
|
protoOf(ServeElement).toString = function () {
|
|
1843
|
-
return 'ServeElement(amount=' + toString(this.
|
|
1874
|
+
return 'ServeElement(amount=' + toString(this.d1h_1) + ', text=' + this.e1h_1 + ', unit=' + this.f1h_1 + ')';
|
|
1844
1875
|
};
|
|
1845
1876
|
protoOf(ServeElement).hashCode = function () {
|
|
1846
|
-
var result = this.
|
|
1847
|
-
result = imul(result, 31) + (this.
|
|
1848
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1877
|
+
var result = this.d1h_1 == null ? 0 : this.d1h_1.hashCode();
|
|
1878
|
+
result = imul(result, 31) + (this.e1h_1 == null ? 0 : getStringHashCode(this.e1h_1)) | 0;
|
|
1879
|
+
result = imul(result, 31) + getStringHashCode(this.f1h_1) | 0;
|
|
1849
1880
|
return result;
|
|
1850
1881
|
};
|
|
1851
1882
|
protoOf(ServeElement).equals = function (other) {
|
|
@@ -1853,11 +1884,11 @@
|
|
|
1853
1884
|
return true;
|
|
1854
1885
|
if (!(other instanceof ServeElement))
|
|
1855
1886
|
return false;
|
|
1856
|
-
if (!equals(this.
|
|
1887
|
+
if (!equals(this.d1h_1, other.d1h_1))
|
|
1857
1888
|
return false;
|
|
1858
|
-
if (!(this.
|
|
1889
|
+
if (!(this.e1h_1 == other.e1h_1))
|
|
1859
1890
|
return false;
|
|
1860
|
-
if (!(this.
|
|
1891
|
+
if (!(this.f1h_1 === other.f1h_1))
|
|
1861
1892
|
return false;
|
|
1862
1893
|
return true;
|
|
1863
1894
|
};
|
|
@@ -1870,74 +1901,74 @@
|
|
|
1870
1901
|
function $serializer_6() {
|
|
1871
1902
|
$serializer_instance_6 = this;
|
|
1872
1903
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.TimingElement', this, 3);
|
|
1873
|
-
tmp0_serialDesc.
|
|
1874
|
-
tmp0_serialDesc.
|
|
1875
|
-
tmp0_serialDesc.
|
|
1876
|
-
this.
|
|
1904
|
+
tmp0_serialDesc.ws('durationInMins', true);
|
|
1905
|
+
tmp0_serialDesc.ws('qualifier', true);
|
|
1906
|
+
tmp0_serialDesc.ws('text', true);
|
|
1907
|
+
this.g1h_1 = tmp0_serialDesc;
|
|
1877
1908
|
}
|
|
1878
|
-
protoOf($serializer_6).
|
|
1879
|
-
var tmp0_desc = this.
|
|
1880
|
-
var tmp1_output = encoder.
|
|
1881
|
-
if (tmp1_output.
|
|
1882
|
-
tmp1_output.
|
|
1909
|
+
protoOf($serializer_6).h1h = function (encoder, value) {
|
|
1910
|
+
var tmp0_desc = this.g1h_1;
|
|
1911
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
1912
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.i1h_1 == null)) {
|
|
1913
|
+
tmp1_output.fn(tmp0_desc, 0, $serializer_getInstance(), value.i1h_1);
|
|
1883
1914
|
}
|
|
1884
|
-
if (tmp1_output.
|
|
1885
|
-
tmp1_output.
|
|
1915
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.j1h_1 == null)) {
|
|
1916
|
+
tmp1_output.fn(tmp0_desc, 1, StringSerializer_getInstance(), value.j1h_1);
|
|
1886
1917
|
}
|
|
1887
|
-
if (tmp1_output.
|
|
1888
|
-
tmp1_output.
|
|
1918
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.k1h_1 == null)) {
|
|
1919
|
+
tmp1_output.fn(tmp0_desc, 2, StringSerializer_getInstance(), value.k1h_1);
|
|
1889
1920
|
}
|
|
1890
|
-
tmp1_output.
|
|
1921
|
+
tmp1_output.ol(tmp0_desc);
|
|
1891
1922
|
};
|
|
1892
|
-
protoOf($serializer_6).
|
|
1893
|
-
return this.
|
|
1923
|
+
protoOf($serializer_6).ri = function (encoder, value) {
|
|
1924
|
+
return this.h1h(encoder, value instanceof TimingElement ? value : THROW_CCE());
|
|
1894
1925
|
};
|
|
1895
|
-
protoOf($serializer_6).
|
|
1896
|
-
var tmp0_desc = this.
|
|
1926
|
+
protoOf($serializer_6).si = function (decoder) {
|
|
1927
|
+
var tmp0_desc = this.g1h_1;
|
|
1897
1928
|
var tmp1_flag = true;
|
|
1898
1929
|
var tmp2_index = 0;
|
|
1899
1930
|
var tmp3_bitMask0 = 0;
|
|
1900
1931
|
var tmp4_local0 = null;
|
|
1901
1932
|
var tmp5_local1 = null;
|
|
1902
1933
|
var tmp6_local2 = null;
|
|
1903
|
-
var tmp7_input = decoder.
|
|
1904
|
-
if (tmp7_input.
|
|
1905
|
-
tmp4_local0 = tmp7_input.
|
|
1934
|
+
var tmp7_input = decoder.nl(tmp0_desc);
|
|
1935
|
+
if (tmp7_input.dm()) {
|
|
1936
|
+
tmp4_local0 = tmp7_input.bm(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0);
|
|
1906
1937
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1907
|
-
tmp5_local1 = tmp7_input.
|
|
1938
|
+
tmp5_local1 = tmp7_input.bm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1908
1939
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1909
|
-
tmp6_local2 = tmp7_input.
|
|
1940
|
+
tmp6_local2 = tmp7_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1910
1941
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1911
1942
|
} else
|
|
1912
1943
|
while (tmp1_flag) {
|
|
1913
|
-
tmp2_index = tmp7_input.
|
|
1944
|
+
tmp2_index = tmp7_input.em(tmp0_desc);
|
|
1914
1945
|
switch (tmp2_index) {
|
|
1915
1946
|
case -1:
|
|
1916
1947
|
tmp1_flag = false;
|
|
1917
1948
|
break;
|
|
1918
1949
|
case 0:
|
|
1919
|
-
tmp4_local0 = tmp7_input.
|
|
1950
|
+
tmp4_local0 = tmp7_input.bm(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0);
|
|
1920
1951
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1921
1952
|
break;
|
|
1922
1953
|
case 1:
|
|
1923
|
-
tmp5_local1 = tmp7_input.
|
|
1954
|
+
tmp5_local1 = tmp7_input.bm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1924
1955
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1925
1956
|
break;
|
|
1926
1957
|
case 2:
|
|
1927
|
-
tmp6_local2 = tmp7_input.
|
|
1958
|
+
tmp6_local2 = tmp7_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1928
1959
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1929
1960
|
break;
|
|
1930
1961
|
default:
|
|
1931
1962
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1932
1963
|
}
|
|
1933
1964
|
}
|
|
1934
|
-
tmp7_input.
|
|
1965
|
+
tmp7_input.ol(tmp0_desc);
|
|
1935
1966
|
return TimingElement_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1936
1967
|
};
|
|
1937
|
-
protoOf($serializer_6).
|
|
1938
|
-
return this.
|
|
1968
|
+
protoOf($serializer_6).qi = function () {
|
|
1969
|
+
return this.g1h_1;
|
|
1939
1970
|
};
|
|
1940
|
-
protoOf($serializer_6).
|
|
1971
|
+
protoOf($serializer_6).ys = function () {
|
|
1941
1972
|
// Inline function 'kotlin.arrayOf' call
|
|
1942
1973
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1943
1974
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1951,20 +1982,20 @@
|
|
|
1951
1982
|
}
|
|
1952
1983
|
function TimingElement_init_$Init$(seen0, durationInMins, qualifier, text, serializationConstructorMarker, $this) {
|
|
1953
1984
|
if (!(0 === (0 & seen0))) {
|
|
1954
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_6().
|
|
1985
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_6().g1h_1);
|
|
1955
1986
|
}
|
|
1956
1987
|
if (0 === (seen0 & 1))
|
|
1957
|
-
$this.
|
|
1988
|
+
$this.i1h_1 = null;
|
|
1958
1989
|
else
|
|
1959
|
-
$this.
|
|
1990
|
+
$this.i1h_1 = durationInMins;
|
|
1960
1991
|
if (0 === (seen0 & 2))
|
|
1961
|
-
$this.
|
|
1992
|
+
$this.j1h_1 = null;
|
|
1962
1993
|
else
|
|
1963
|
-
$this.
|
|
1994
|
+
$this.j1h_1 = qualifier;
|
|
1964
1995
|
if (0 === (seen0 & 4))
|
|
1965
|
-
$this.
|
|
1996
|
+
$this.k1h_1 = null;
|
|
1966
1997
|
else
|
|
1967
|
-
$this.
|
|
1998
|
+
$this.k1h_1 = text;
|
|
1968
1999
|
return $this;
|
|
1969
2000
|
}
|
|
1970
2001
|
function TimingElement_init_$Create$(seen0, durationInMins, qualifier, text, serializationConstructorMarker) {
|
|
@@ -1974,17 +2005,17 @@
|
|
|
1974
2005
|
durationInMins = durationInMins === VOID ? null : durationInMins;
|
|
1975
2006
|
qualifier = qualifier === VOID ? null : qualifier;
|
|
1976
2007
|
text = text === VOID ? null : text;
|
|
1977
|
-
this.
|
|
1978
|
-
this.
|
|
1979
|
-
this.
|
|
2008
|
+
this.i1h_1 = durationInMins;
|
|
2009
|
+
this.j1h_1 = qualifier;
|
|
2010
|
+
this.k1h_1 = text;
|
|
1980
2011
|
}
|
|
1981
2012
|
protoOf(TimingElement).toString = function () {
|
|
1982
|
-
return 'TimingElement(durationInMins=' + toString(this.
|
|
2013
|
+
return 'TimingElement(durationInMins=' + toString(this.i1h_1) + ', qualifier=' + this.j1h_1 + ', text=' + this.k1h_1 + ')';
|
|
1983
2014
|
};
|
|
1984
2015
|
protoOf(TimingElement).hashCode = function () {
|
|
1985
|
-
var result = this.
|
|
1986
|
-
result = imul(result, 31) + (this.
|
|
1987
|
-
result = imul(result, 31) + (this.
|
|
2016
|
+
var result = this.i1h_1 == null ? 0 : this.i1h_1.hashCode();
|
|
2017
|
+
result = imul(result, 31) + (this.j1h_1 == null ? 0 : getStringHashCode(this.j1h_1)) | 0;
|
|
2018
|
+
result = imul(result, 31) + (this.k1h_1 == null ? 0 : getStringHashCode(this.k1h_1)) | 0;
|
|
1988
2019
|
return result;
|
|
1989
2020
|
};
|
|
1990
2021
|
protoOf(TimingElement).equals = function (other) {
|
|
@@ -1992,11 +2023,11 @@
|
|
|
1992
2023
|
return true;
|
|
1993
2024
|
if (!(other instanceof TimingElement))
|
|
1994
2025
|
return false;
|
|
1995
|
-
if (!equals(this.
|
|
2026
|
+
if (!equals(this.i1h_1, other.i1h_1))
|
|
1996
2027
|
return false;
|
|
1997
|
-
if (!(this.
|
|
2028
|
+
if (!(this.j1h_1 == other.j1h_1))
|
|
1998
2029
|
return false;
|
|
1999
|
-
if (!(this.
|
|
2030
|
+
if (!(this.k1h_1 == other.k1h_1))
|
|
2000
2031
|
return false;
|
|
2001
2032
|
return true;
|
|
2002
2033
|
};
|
|
@@ -2075,7 +2106,7 @@
|
|
|
2075
2106
|
// Inline function 'kotlin.arrayOf' call
|
|
2076
2107
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2077
2108
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2078
|
-
tmp.
|
|
2109
|
+
tmp.l1h_1 = [null, tmp_1, null, tmp_3, null, tmp_5, tmp_7, null, null, null, null, tmp_9, tmp_11, tmp_13, tmp_15, null, tmp_17, tmp_19, tmp_21, tmp_23, tmp_25, null, lazy(tmp_26, RecipeV3$Companion$$childSerializers$_anonymous__7om4qn_12), null];
|
|
2079
2110
|
}
|
|
2080
2111
|
var Companion_instance_5;
|
|
2081
2112
|
function Companion_getInstance_5() {
|
|
@@ -2086,113 +2117,113 @@
|
|
|
2086
2117
|
function $serializer_7() {
|
|
2087
2118
|
$serializer_instance_7 = this;
|
|
2088
2119
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.RecipeV3', this, 24);
|
|
2089
|
-
tmp0_serialDesc.
|
|
2090
|
-
tmp0_serialDesc.
|
|
2091
|
-
tmp0_serialDesc.
|
|
2092
|
-
tmp0_serialDesc.
|
|
2093
|
-
tmp0_serialDesc.
|
|
2094
|
-
tmp0_serialDesc.
|
|
2095
|
-
tmp0_serialDesc.
|
|
2096
|
-
tmp0_serialDesc.
|
|
2097
|
-
tmp0_serialDesc.
|
|
2098
|
-
tmp0_serialDesc.
|
|
2099
|
-
tmp0_serialDesc.
|
|
2100
|
-
tmp0_serialDesc.
|
|
2101
|
-
tmp0_serialDesc.
|
|
2102
|
-
tmp0_serialDesc.
|
|
2103
|
-
tmp0_serialDesc.
|
|
2104
|
-
tmp0_serialDesc.
|
|
2105
|
-
tmp0_serialDesc.
|
|
2106
|
-
tmp0_serialDesc.
|
|
2107
|
-
tmp0_serialDesc.
|
|
2108
|
-
tmp0_serialDesc.
|
|
2109
|
-
tmp0_serialDesc.
|
|
2110
|
-
tmp0_serialDesc.
|
|
2111
|
-
tmp0_serialDesc.
|
|
2112
|
-
tmp0_serialDesc.
|
|
2113
|
-
this.
|
|
2120
|
+
tmp0_serialDesc.ws('bookCredit', true);
|
|
2121
|
+
tmp0_serialDesc.ws('byline', true);
|
|
2122
|
+
tmp0_serialDesc.ws('canonicalArticle', true);
|
|
2123
|
+
tmp0_serialDesc.ws('celebrationIds', true);
|
|
2124
|
+
tmp0_serialDesc.ws('composerId', true);
|
|
2125
|
+
tmp0_serialDesc.ws('contributors', true);
|
|
2126
|
+
tmp0_serialDesc.ws('cuisineIds', true);
|
|
2127
|
+
tmp0_serialDesc.ws('description', true);
|
|
2128
|
+
tmp0_serialDesc.ws('difficultyLevel', true);
|
|
2129
|
+
tmp0_serialDesc.ws('featuredImage', true);
|
|
2130
|
+
tmp0_serialDesc.ws('id', false);
|
|
2131
|
+
tmp0_serialDesc.ws('ingredients', true);
|
|
2132
|
+
tmp0_serialDesc.ws('ingredientsTemplate', true);
|
|
2133
|
+
tmp0_serialDesc.ws('instructions', true);
|
|
2134
|
+
tmp0_serialDesc.ws('instructionsTemplate', true);
|
|
2135
|
+
tmp0_serialDesc.ws('isAppReady', true);
|
|
2136
|
+
tmp0_serialDesc.ws('mealTypeIds', true);
|
|
2137
|
+
tmp0_serialDesc.ws('serves', true);
|
|
2138
|
+
tmp0_serialDesc.ws('suitableForDietIds', true);
|
|
2139
|
+
tmp0_serialDesc.ws('techniquesUsedIds', true);
|
|
2140
|
+
tmp0_serialDesc.ws('timings', true);
|
|
2141
|
+
tmp0_serialDesc.ws('title', true);
|
|
2142
|
+
tmp0_serialDesc.ws('utensilsAndApplianceIds', true);
|
|
2143
|
+
tmp0_serialDesc.ws('webPublicationDate', true);
|
|
2144
|
+
this.m1h_1 = tmp0_serialDesc;
|
|
2114
2145
|
}
|
|
2115
|
-
protoOf($serializer_7).
|
|
2116
|
-
var tmp0_desc = this.
|
|
2117
|
-
var tmp1_output = encoder.
|
|
2118
|
-
var tmp2_cached = Companion_getInstance_5().
|
|
2119
|
-
if (tmp1_output.
|
|
2120
|
-
tmp1_output.
|
|
2146
|
+
protoOf($serializer_7).n1h = function (encoder, value) {
|
|
2147
|
+
var tmp0_desc = this.m1h_1;
|
|
2148
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
2149
|
+
var tmp2_cached = Companion_getInstance_5().l1h_1;
|
|
2150
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.h1d_1 == null)) {
|
|
2151
|
+
tmp1_output.fn(tmp0_desc, 0, StringSerializer_getInstance(), value.h1d_1);
|
|
2121
2152
|
}
|
|
2122
|
-
if (tmp1_output.
|
|
2123
|
-
tmp1_output.
|
|
2153
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.i1d_1 == null)) {
|
|
2154
|
+
tmp1_output.fn(tmp0_desc, 1, tmp2_cached[1].t1(), value.i1d_1);
|
|
2124
2155
|
}
|
|
2125
|
-
if (tmp1_output.
|
|
2126
|
-
tmp1_output.
|
|
2156
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.j1d_1 == null)) {
|
|
2157
|
+
tmp1_output.fn(tmp0_desc, 2, StringSerializer_getInstance(), value.j1d_1);
|
|
2127
2158
|
}
|
|
2128
|
-
if (tmp1_output.
|
|
2129
|
-
tmp1_output.
|
|
2159
|
+
if (tmp1_output.jn(tmp0_desc, 3) ? true : !(value.k1d_1 == null)) {
|
|
2160
|
+
tmp1_output.fn(tmp0_desc, 3, tmp2_cached[3].t1(), value.k1d_1);
|
|
2130
2161
|
}
|
|
2131
|
-
if (tmp1_output.
|
|
2132
|
-
tmp1_output.
|
|
2162
|
+
if (tmp1_output.jn(tmp0_desc, 4) ? true : !(value.l1d_1 == null)) {
|
|
2163
|
+
tmp1_output.fn(tmp0_desc, 4, StringSerializer_getInstance(), value.l1d_1);
|
|
2133
2164
|
}
|
|
2134
|
-
if (tmp1_output.
|
|
2135
|
-
tmp1_output.
|
|
2165
|
+
if (tmp1_output.jn(tmp0_desc, 5) ? true : !(value.m1d_1 == null)) {
|
|
2166
|
+
tmp1_output.fn(tmp0_desc, 5, tmp2_cached[5].t1(), value.m1d_1);
|
|
2136
2167
|
}
|
|
2137
|
-
if (tmp1_output.
|
|
2138
|
-
tmp1_output.
|
|
2168
|
+
if (tmp1_output.jn(tmp0_desc, 6) ? true : !(value.n1d_1 == null)) {
|
|
2169
|
+
tmp1_output.fn(tmp0_desc, 6, tmp2_cached[6].t1(), value.n1d_1);
|
|
2139
2170
|
}
|
|
2140
|
-
if (tmp1_output.
|
|
2141
|
-
tmp1_output.
|
|
2171
|
+
if (tmp1_output.jn(tmp0_desc, 7) ? true : !(value.o1d_1 == null)) {
|
|
2172
|
+
tmp1_output.fn(tmp0_desc, 7, StringSerializer_getInstance(), value.o1d_1);
|
|
2142
2173
|
}
|
|
2143
|
-
if (tmp1_output.
|
|
2144
|
-
tmp1_output.
|
|
2174
|
+
if (tmp1_output.jn(tmp0_desc, 8) ? true : !(value.p1d_1 == null)) {
|
|
2175
|
+
tmp1_output.fn(tmp0_desc, 8, StringSerializer_getInstance(), value.p1d_1);
|
|
2145
2176
|
}
|
|
2146
|
-
if (tmp1_output.
|
|
2147
|
-
tmp1_output.
|
|
2177
|
+
if (tmp1_output.jn(tmp0_desc, 9) ? true : !(value.q1d_1 == null)) {
|
|
2178
|
+
tmp1_output.fn(tmp0_desc, 9, $serializer_getInstance_2(), value.q1d_1);
|
|
2148
2179
|
}
|
|
2149
|
-
tmp1_output.
|
|
2150
|
-
if (tmp1_output.
|
|
2151
|
-
tmp1_output.
|
|
2180
|
+
tmp1_output.bn(tmp0_desc, 10, value.r1d_1);
|
|
2181
|
+
if (tmp1_output.jn(tmp0_desc, 11) ? true : !(value.s1d_1 == null)) {
|
|
2182
|
+
tmp1_output.fn(tmp0_desc, 11, tmp2_cached[11].t1(), value.s1d_1);
|
|
2152
2183
|
}
|
|
2153
|
-
if (tmp1_output.
|
|
2154
|
-
tmp1_output.
|
|
2184
|
+
if (tmp1_output.jn(tmp0_desc, 12) ? true : !(value.t1d_1 == null)) {
|
|
2185
|
+
tmp1_output.fn(tmp0_desc, 12, tmp2_cached[12].t1(), value.t1d_1);
|
|
2155
2186
|
}
|
|
2156
|
-
if (tmp1_output.
|
|
2157
|
-
tmp1_output.
|
|
2187
|
+
if (tmp1_output.jn(tmp0_desc, 13) ? true : !(value.u1d_1 == null)) {
|
|
2188
|
+
tmp1_output.fn(tmp0_desc, 13, tmp2_cached[13].t1(), value.u1d_1);
|
|
2158
2189
|
}
|
|
2159
|
-
if (tmp1_output.
|
|
2160
|
-
tmp1_output.
|
|
2190
|
+
if (tmp1_output.jn(tmp0_desc, 14) ? true : !(value.v1d_1 == null)) {
|
|
2191
|
+
tmp1_output.fn(tmp0_desc, 14, tmp2_cached[14].t1(), value.v1d_1);
|
|
2161
2192
|
}
|
|
2162
|
-
if (tmp1_output.
|
|
2163
|
-
tmp1_output.
|
|
2193
|
+
if (tmp1_output.jn(tmp0_desc, 15) ? true : !(value.w1d_1 == null)) {
|
|
2194
|
+
tmp1_output.fn(tmp0_desc, 15, BooleanSerializer_getInstance(), value.w1d_1);
|
|
2164
2195
|
}
|
|
2165
|
-
if (tmp1_output.
|
|
2166
|
-
tmp1_output.
|
|
2196
|
+
if (tmp1_output.jn(tmp0_desc, 16) ? true : !(value.x1d_1 == null)) {
|
|
2197
|
+
tmp1_output.fn(tmp0_desc, 16, tmp2_cached[16].t1(), value.x1d_1);
|
|
2167
2198
|
}
|
|
2168
|
-
if (tmp1_output.
|
|
2169
|
-
tmp1_output.
|
|
2199
|
+
if (tmp1_output.jn(tmp0_desc, 17) ? true : !(value.y1d_1 == null)) {
|
|
2200
|
+
tmp1_output.fn(tmp0_desc, 17, tmp2_cached[17].t1(), value.y1d_1);
|
|
2170
2201
|
}
|
|
2171
|
-
if (tmp1_output.
|
|
2172
|
-
tmp1_output.
|
|
2202
|
+
if (tmp1_output.jn(tmp0_desc, 18) ? true : !(value.z1d_1 == null)) {
|
|
2203
|
+
tmp1_output.fn(tmp0_desc, 18, tmp2_cached[18].t1(), value.z1d_1);
|
|
2173
2204
|
}
|
|
2174
|
-
if (tmp1_output.
|
|
2175
|
-
tmp1_output.
|
|
2205
|
+
if (tmp1_output.jn(tmp0_desc, 19) ? true : !(value.a1e_1 == null)) {
|
|
2206
|
+
tmp1_output.fn(tmp0_desc, 19, tmp2_cached[19].t1(), value.a1e_1);
|
|
2176
2207
|
}
|
|
2177
|
-
if (tmp1_output.
|
|
2178
|
-
tmp1_output.
|
|
2208
|
+
if (tmp1_output.jn(tmp0_desc, 20) ? true : !(value.b1e_1 == null)) {
|
|
2209
|
+
tmp1_output.fn(tmp0_desc, 20, tmp2_cached[20].t1(), value.b1e_1);
|
|
2179
2210
|
}
|
|
2180
|
-
if (tmp1_output.
|
|
2181
|
-
tmp1_output.
|
|
2211
|
+
if (tmp1_output.jn(tmp0_desc, 21) ? true : !(value.c1e_1 == null)) {
|
|
2212
|
+
tmp1_output.fn(tmp0_desc, 21, StringSerializer_getInstance(), value.c1e_1);
|
|
2182
2213
|
}
|
|
2183
|
-
if (tmp1_output.
|
|
2184
|
-
tmp1_output.
|
|
2214
|
+
if (tmp1_output.jn(tmp0_desc, 22) ? true : !(value.d1e_1 == null)) {
|
|
2215
|
+
tmp1_output.fn(tmp0_desc, 22, tmp2_cached[22].t1(), value.d1e_1);
|
|
2185
2216
|
}
|
|
2186
|
-
if (tmp1_output.
|
|
2187
|
-
tmp1_output.
|
|
2217
|
+
if (tmp1_output.jn(tmp0_desc, 23) ? true : !(value.e1e_1 == null)) {
|
|
2218
|
+
tmp1_output.fn(tmp0_desc, 23, StringSerializer_getInstance(), value.e1e_1);
|
|
2188
2219
|
}
|
|
2189
|
-
tmp1_output.
|
|
2220
|
+
tmp1_output.ol(tmp0_desc);
|
|
2190
2221
|
};
|
|
2191
|
-
protoOf($serializer_7).
|
|
2192
|
-
return this.
|
|
2222
|
+
protoOf($serializer_7).ri = function (encoder, value) {
|
|
2223
|
+
return this.n1h(encoder, value instanceof RecipeV3 ? value : THROW_CCE());
|
|
2193
2224
|
};
|
|
2194
|
-
protoOf($serializer_7).
|
|
2195
|
-
var tmp0_desc = this.
|
|
2225
|
+
protoOf($serializer_7).si = function (decoder) {
|
|
2226
|
+
var tmp0_desc = this.m1h_1;
|
|
2196
2227
|
var tmp1_flag = true;
|
|
2197
2228
|
var tmp2_index = 0;
|
|
2198
2229
|
var tmp3_bitMask0 = 0;
|
|
@@ -2220,176 +2251,176 @@
|
|
|
2220
2251
|
var tmp25_local21 = null;
|
|
2221
2252
|
var tmp26_local22 = null;
|
|
2222
2253
|
var tmp27_local23 = null;
|
|
2223
|
-
var tmp28_input = decoder.
|
|
2224
|
-
var tmp29_cached = Companion_getInstance_5().
|
|
2225
|
-
if (tmp28_input.
|
|
2226
|
-
tmp4_local0 = tmp28_input.
|
|
2254
|
+
var tmp28_input = decoder.nl(tmp0_desc);
|
|
2255
|
+
var tmp29_cached = Companion_getInstance_5().l1h_1;
|
|
2256
|
+
if (tmp28_input.dm()) {
|
|
2257
|
+
tmp4_local0 = tmp28_input.bm(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
2227
2258
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2228
|
-
tmp5_local1 = tmp28_input.
|
|
2259
|
+
tmp5_local1 = tmp28_input.bm(tmp0_desc, 1, tmp29_cached[1].t1(), tmp5_local1);
|
|
2229
2260
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2230
|
-
tmp6_local2 = tmp28_input.
|
|
2261
|
+
tmp6_local2 = tmp28_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2231
2262
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2232
|
-
tmp7_local3 = tmp28_input.
|
|
2263
|
+
tmp7_local3 = tmp28_input.bm(tmp0_desc, 3, tmp29_cached[3].t1(), tmp7_local3);
|
|
2233
2264
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2234
|
-
tmp8_local4 = tmp28_input.
|
|
2265
|
+
tmp8_local4 = tmp28_input.bm(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
2235
2266
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
2236
|
-
tmp9_local5 = tmp28_input.
|
|
2267
|
+
tmp9_local5 = tmp28_input.bm(tmp0_desc, 5, tmp29_cached[5].t1(), tmp9_local5);
|
|
2237
2268
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
2238
|
-
tmp10_local6 = tmp28_input.
|
|
2269
|
+
tmp10_local6 = tmp28_input.bm(tmp0_desc, 6, tmp29_cached[6].t1(), tmp10_local6);
|
|
2239
2270
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
2240
|
-
tmp11_local7 = tmp28_input.
|
|
2271
|
+
tmp11_local7 = tmp28_input.bm(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
2241
2272
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
2242
|
-
tmp12_local8 = tmp28_input.
|
|
2273
|
+
tmp12_local8 = tmp28_input.bm(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
2243
2274
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
2244
|
-
tmp13_local9 = tmp28_input.
|
|
2275
|
+
tmp13_local9 = tmp28_input.bm(tmp0_desc, 9, $serializer_getInstance_2(), tmp13_local9);
|
|
2245
2276
|
tmp3_bitMask0 = tmp3_bitMask0 | 512;
|
|
2246
|
-
tmp14_local10 = tmp28_input.
|
|
2277
|
+
tmp14_local10 = tmp28_input.xl(tmp0_desc, 10);
|
|
2247
2278
|
tmp3_bitMask0 = tmp3_bitMask0 | 1024;
|
|
2248
|
-
tmp15_local11 = tmp28_input.
|
|
2279
|
+
tmp15_local11 = tmp28_input.bm(tmp0_desc, 11, tmp29_cached[11].t1(), tmp15_local11);
|
|
2249
2280
|
tmp3_bitMask0 = tmp3_bitMask0 | 2048;
|
|
2250
|
-
tmp16_local12 = tmp28_input.
|
|
2281
|
+
tmp16_local12 = tmp28_input.bm(tmp0_desc, 12, tmp29_cached[12].t1(), tmp16_local12);
|
|
2251
2282
|
tmp3_bitMask0 = tmp3_bitMask0 | 4096;
|
|
2252
|
-
tmp17_local13 = tmp28_input.
|
|
2283
|
+
tmp17_local13 = tmp28_input.bm(tmp0_desc, 13, tmp29_cached[13].t1(), tmp17_local13);
|
|
2253
2284
|
tmp3_bitMask0 = tmp3_bitMask0 | 8192;
|
|
2254
|
-
tmp18_local14 = tmp28_input.
|
|
2285
|
+
tmp18_local14 = tmp28_input.bm(tmp0_desc, 14, tmp29_cached[14].t1(), tmp18_local14);
|
|
2255
2286
|
tmp3_bitMask0 = tmp3_bitMask0 | 16384;
|
|
2256
|
-
tmp19_local15 = tmp28_input.
|
|
2287
|
+
tmp19_local15 = tmp28_input.bm(tmp0_desc, 15, BooleanSerializer_getInstance(), tmp19_local15);
|
|
2257
2288
|
tmp3_bitMask0 = tmp3_bitMask0 | 32768;
|
|
2258
|
-
tmp20_local16 = tmp28_input.
|
|
2289
|
+
tmp20_local16 = tmp28_input.bm(tmp0_desc, 16, tmp29_cached[16].t1(), tmp20_local16);
|
|
2259
2290
|
tmp3_bitMask0 = tmp3_bitMask0 | 65536;
|
|
2260
|
-
tmp21_local17 = tmp28_input.
|
|
2291
|
+
tmp21_local17 = tmp28_input.bm(tmp0_desc, 17, tmp29_cached[17].t1(), tmp21_local17);
|
|
2261
2292
|
tmp3_bitMask0 = tmp3_bitMask0 | 131072;
|
|
2262
|
-
tmp22_local18 = tmp28_input.
|
|
2293
|
+
tmp22_local18 = tmp28_input.bm(tmp0_desc, 18, tmp29_cached[18].t1(), tmp22_local18);
|
|
2263
2294
|
tmp3_bitMask0 = tmp3_bitMask0 | 262144;
|
|
2264
|
-
tmp23_local19 = tmp28_input.
|
|
2295
|
+
tmp23_local19 = tmp28_input.bm(tmp0_desc, 19, tmp29_cached[19].t1(), tmp23_local19);
|
|
2265
2296
|
tmp3_bitMask0 = tmp3_bitMask0 | 524288;
|
|
2266
|
-
tmp24_local20 = tmp28_input.
|
|
2297
|
+
tmp24_local20 = tmp28_input.bm(tmp0_desc, 20, tmp29_cached[20].t1(), tmp24_local20);
|
|
2267
2298
|
tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
|
|
2268
|
-
tmp25_local21 = tmp28_input.
|
|
2299
|
+
tmp25_local21 = tmp28_input.bm(tmp0_desc, 21, StringSerializer_getInstance(), tmp25_local21);
|
|
2269
2300
|
tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
|
|
2270
|
-
tmp26_local22 = tmp28_input.
|
|
2301
|
+
tmp26_local22 = tmp28_input.bm(tmp0_desc, 22, tmp29_cached[22].t1(), tmp26_local22);
|
|
2271
2302
|
tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
|
|
2272
|
-
tmp27_local23 = tmp28_input.
|
|
2303
|
+
tmp27_local23 = tmp28_input.bm(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23);
|
|
2273
2304
|
tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
|
|
2274
2305
|
} else
|
|
2275
2306
|
while (tmp1_flag) {
|
|
2276
|
-
tmp2_index = tmp28_input.
|
|
2307
|
+
tmp2_index = tmp28_input.em(tmp0_desc);
|
|
2277
2308
|
switch (tmp2_index) {
|
|
2278
2309
|
case -1:
|
|
2279
2310
|
tmp1_flag = false;
|
|
2280
2311
|
break;
|
|
2281
2312
|
case 0:
|
|
2282
|
-
tmp4_local0 = tmp28_input.
|
|
2313
|
+
tmp4_local0 = tmp28_input.bm(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
2283
2314
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2284
2315
|
break;
|
|
2285
2316
|
case 1:
|
|
2286
|
-
tmp5_local1 = tmp28_input.
|
|
2317
|
+
tmp5_local1 = tmp28_input.bm(tmp0_desc, 1, tmp29_cached[1].t1(), tmp5_local1);
|
|
2287
2318
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2288
2319
|
break;
|
|
2289
2320
|
case 2:
|
|
2290
|
-
tmp6_local2 = tmp28_input.
|
|
2321
|
+
tmp6_local2 = tmp28_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2291
2322
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2292
2323
|
break;
|
|
2293
2324
|
case 3:
|
|
2294
|
-
tmp7_local3 = tmp28_input.
|
|
2325
|
+
tmp7_local3 = tmp28_input.bm(tmp0_desc, 3, tmp29_cached[3].t1(), tmp7_local3);
|
|
2295
2326
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2296
2327
|
break;
|
|
2297
2328
|
case 4:
|
|
2298
|
-
tmp8_local4 = tmp28_input.
|
|
2329
|
+
tmp8_local4 = tmp28_input.bm(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
2299
2330
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
2300
2331
|
break;
|
|
2301
2332
|
case 5:
|
|
2302
|
-
tmp9_local5 = tmp28_input.
|
|
2333
|
+
tmp9_local5 = tmp28_input.bm(tmp0_desc, 5, tmp29_cached[5].t1(), tmp9_local5);
|
|
2303
2334
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
2304
2335
|
break;
|
|
2305
2336
|
case 6:
|
|
2306
|
-
tmp10_local6 = tmp28_input.
|
|
2337
|
+
tmp10_local6 = tmp28_input.bm(tmp0_desc, 6, tmp29_cached[6].t1(), tmp10_local6);
|
|
2307
2338
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
2308
2339
|
break;
|
|
2309
2340
|
case 7:
|
|
2310
|
-
tmp11_local7 = tmp28_input.
|
|
2341
|
+
tmp11_local7 = tmp28_input.bm(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
2311
2342
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
2312
2343
|
break;
|
|
2313
2344
|
case 8:
|
|
2314
|
-
tmp12_local8 = tmp28_input.
|
|
2345
|
+
tmp12_local8 = tmp28_input.bm(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
2315
2346
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
2316
2347
|
break;
|
|
2317
2348
|
case 9:
|
|
2318
|
-
tmp13_local9 = tmp28_input.
|
|
2349
|
+
tmp13_local9 = tmp28_input.bm(tmp0_desc, 9, $serializer_getInstance_2(), tmp13_local9);
|
|
2319
2350
|
tmp3_bitMask0 = tmp3_bitMask0 | 512;
|
|
2320
2351
|
break;
|
|
2321
2352
|
case 10:
|
|
2322
|
-
tmp14_local10 = tmp28_input.
|
|
2353
|
+
tmp14_local10 = tmp28_input.xl(tmp0_desc, 10);
|
|
2323
2354
|
tmp3_bitMask0 = tmp3_bitMask0 | 1024;
|
|
2324
2355
|
break;
|
|
2325
2356
|
case 11:
|
|
2326
|
-
tmp15_local11 = tmp28_input.
|
|
2357
|
+
tmp15_local11 = tmp28_input.bm(tmp0_desc, 11, tmp29_cached[11].t1(), tmp15_local11);
|
|
2327
2358
|
tmp3_bitMask0 = tmp3_bitMask0 | 2048;
|
|
2328
2359
|
break;
|
|
2329
2360
|
case 12:
|
|
2330
|
-
tmp16_local12 = tmp28_input.
|
|
2361
|
+
tmp16_local12 = tmp28_input.bm(tmp0_desc, 12, tmp29_cached[12].t1(), tmp16_local12);
|
|
2331
2362
|
tmp3_bitMask0 = tmp3_bitMask0 | 4096;
|
|
2332
2363
|
break;
|
|
2333
2364
|
case 13:
|
|
2334
|
-
tmp17_local13 = tmp28_input.
|
|
2365
|
+
tmp17_local13 = tmp28_input.bm(tmp0_desc, 13, tmp29_cached[13].t1(), tmp17_local13);
|
|
2335
2366
|
tmp3_bitMask0 = tmp3_bitMask0 | 8192;
|
|
2336
2367
|
break;
|
|
2337
2368
|
case 14:
|
|
2338
|
-
tmp18_local14 = tmp28_input.
|
|
2369
|
+
tmp18_local14 = tmp28_input.bm(tmp0_desc, 14, tmp29_cached[14].t1(), tmp18_local14);
|
|
2339
2370
|
tmp3_bitMask0 = tmp3_bitMask0 | 16384;
|
|
2340
2371
|
break;
|
|
2341
2372
|
case 15:
|
|
2342
|
-
tmp19_local15 = tmp28_input.
|
|
2373
|
+
tmp19_local15 = tmp28_input.bm(tmp0_desc, 15, BooleanSerializer_getInstance(), tmp19_local15);
|
|
2343
2374
|
tmp3_bitMask0 = tmp3_bitMask0 | 32768;
|
|
2344
2375
|
break;
|
|
2345
2376
|
case 16:
|
|
2346
|
-
tmp20_local16 = tmp28_input.
|
|
2377
|
+
tmp20_local16 = tmp28_input.bm(tmp0_desc, 16, tmp29_cached[16].t1(), tmp20_local16);
|
|
2347
2378
|
tmp3_bitMask0 = tmp3_bitMask0 | 65536;
|
|
2348
2379
|
break;
|
|
2349
2380
|
case 17:
|
|
2350
|
-
tmp21_local17 = tmp28_input.
|
|
2381
|
+
tmp21_local17 = tmp28_input.bm(tmp0_desc, 17, tmp29_cached[17].t1(), tmp21_local17);
|
|
2351
2382
|
tmp3_bitMask0 = tmp3_bitMask0 | 131072;
|
|
2352
2383
|
break;
|
|
2353
2384
|
case 18:
|
|
2354
|
-
tmp22_local18 = tmp28_input.
|
|
2385
|
+
tmp22_local18 = tmp28_input.bm(tmp0_desc, 18, tmp29_cached[18].t1(), tmp22_local18);
|
|
2355
2386
|
tmp3_bitMask0 = tmp3_bitMask0 | 262144;
|
|
2356
2387
|
break;
|
|
2357
2388
|
case 19:
|
|
2358
|
-
tmp23_local19 = tmp28_input.
|
|
2389
|
+
tmp23_local19 = tmp28_input.bm(tmp0_desc, 19, tmp29_cached[19].t1(), tmp23_local19);
|
|
2359
2390
|
tmp3_bitMask0 = tmp3_bitMask0 | 524288;
|
|
2360
2391
|
break;
|
|
2361
2392
|
case 20:
|
|
2362
|
-
tmp24_local20 = tmp28_input.
|
|
2393
|
+
tmp24_local20 = tmp28_input.bm(tmp0_desc, 20, tmp29_cached[20].t1(), tmp24_local20);
|
|
2363
2394
|
tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
|
|
2364
2395
|
break;
|
|
2365
2396
|
case 21:
|
|
2366
|
-
tmp25_local21 = tmp28_input.
|
|
2397
|
+
tmp25_local21 = tmp28_input.bm(tmp0_desc, 21, StringSerializer_getInstance(), tmp25_local21);
|
|
2367
2398
|
tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
|
|
2368
2399
|
break;
|
|
2369
2400
|
case 22:
|
|
2370
|
-
tmp26_local22 = tmp28_input.
|
|
2401
|
+
tmp26_local22 = tmp28_input.bm(tmp0_desc, 22, tmp29_cached[22].t1(), tmp26_local22);
|
|
2371
2402
|
tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
|
|
2372
2403
|
break;
|
|
2373
2404
|
case 23:
|
|
2374
|
-
tmp27_local23 = tmp28_input.
|
|
2405
|
+
tmp27_local23 = tmp28_input.bm(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23);
|
|
2375
2406
|
tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
|
|
2376
2407
|
break;
|
|
2377
2408
|
default:
|
|
2378
2409
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2379
2410
|
}
|
|
2380
2411
|
}
|
|
2381
|
-
tmp28_input.
|
|
2412
|
+
tmp28_input.ol(tmp0_desc);
|
|
2382
2413
|
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, tmp27_local23, null);
|
|
2383
2414
|
};
|
|
2384
|
-
protoOf($serializer_7).
|
|
2385
|
-
return this.
|
|
2415
|
+
protoOf($serializer_7).qi = function () {
|
|
2416
|
+
return this.m1h_1;
|
|
2386
2417
|
};
|
|
2387
|
-
protoOf($serializer_7).
|
|
2388
|
-
var tmp0_cached = Companion_getInstance_5().
|
|
2418
|
+
protoOf($serializer_7).ys = function () {
|
|
2419
|
+
var tmp0_cached = Companion_getInstance_5().l1h_1;
|
|
2389
2420
|
// Inline function 'kotlin.arrayOf' call
|
|
2390
2421
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2391
2422
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2392
|
-
return [get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[1].
|
|
2423
|
+
return [get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[1].t1()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[3].t1()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[5].t1()), get_nullable(tmp0_cached[6].t1()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable($serializer_getInstance_2()), StringSerializer_getInstance(), get_nullable(tmp0_cached[11].t1()), get_nullable(tmp0_cached[12].t1()), get_nullable(tmp0_cached[13].t1()), get_nullable(tmp0_cached[14].t1()), get_nullable(BooleanSerializer_getInstance()), get_nullable(tmp0_cached[16].t1()), get_nullable(tmp0_cached[17].t1()), get_nullable(tmp0_cached[18].t1()), get_nullable(tmp0_cached[19].t1()), get_nullable(tmp0_cached[20].t1()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[22].t1()), get_nullable(StringSerializer_getInstance())];
|
|
2393
2424
|
};
|
|
2394
2425
|
var $serializer_instance_7;
|
|
2395
2426
|
function $serializer_getInstance_7() {
|
|
@@ -2399,101 +2430,101 @@
|
|
|
2399
2430
|
}
|
|
2400
2431
|
function RecipeV3_init_$Init$(seen0, bookCredit, byline, canonicalArticle, celebrationIDS, composerID, contributors, cuisineIDS, description, difficultyLevel, featuredImage, id, ingredients, ingredientsTemplate, instructions, instructionsTemplate, isAppReady, mealTypeIDS, serves, suitableForDietIDS, techniquesUsedIDS, timings, title, utensilsAndApplianceIDS, webPublicationDate, serializationConstructorMarker, $this) {
|
|
2401
2432
|
if (!(1024 === (1024 & seen0))) {
|
|
2402
|
-
throwMissingFieldException(seen0, 1024, $serializer_getInstance_7().
|
|
2433
|
+
throwMissingFieldException(seen0, 1024, $serializer_getInstance_7().m1h_1);
|
|
2403
2434
|
}
|
|
2404
2435
|
if (0 === (seen0 & 1))
|
|
2405
|
-
$this.
|
|
2436
|
+
$this.h1d_1 = null;
|
|
2406
2437
|
else
|
|
2407
|
-
$this.
|
|
2438
|
+
$this.h1d_1 = bookCredit;
|
|
2408
2439
|
if (0 === (seen0 & 2))
|
|
2409
|
-
$this.
|
|
2440
|
+
$this.i1d_1 = null;
|
|
2410
2441
|
else
|
|
2411
|
-
$this.
|
|
2442
|
+
$this.i1d_1 = byline;
|
|
2412
2443
|
if (0 === (seen0 & 4))
|
|
2413
|
-
$this.
|
|
2444
|
+
$this.j1d_1 = null;
|
|
2414
2445
|
else
|
|
2415
|
-
$this.
|
|
2446
|
+
$this.j1d_1 = canonicalArticle;
|
|
2416
2447
|
if (0 === (seen0 & 8))
|
|
2417
|
-
$this.
|
|
2448
|
+
$this.k1d_1 = null;
|
|
2418
2449
|
else
|
|
2419
|
-
$this.
|
|
2450
|
+
$this.k1d_1 = celebrationIDS;
|
|
2420
2451
|
if (0 === (seen0 & 16))
|
|
2421
|
-
$this.
|
|
2452
|
+
$this.l1d_1 = null;
|
|
2422
2453
|
else
|
|
2423
|
-
$this.
|
|
2454
|
+
$this.l1d_1 = composerID;
|
|
2424
2455
|
if (0 === (seen0 & 32))
|
|
2425
|
-
$this.
|
|
2456
|
+
$this.m1d_1 = null;
|
|
2426
2457
|
else
|
|
2427
|
-
$this.
|
|
2458
|
+
$this.m1d_1 = contributors;
|
|
2428
2459
|
if (0 === (seen0 & 64))
|
|
2429
|
-
$this.
|
|
2460
|
+
$this.n1d_1 = null;
|
|
2430
2461
|
else
|
|
2431
|
-
$this.
|
|
2462
|
+
$this.n1d_1 = cuisineIDS;
|
|
2432
2463
|
if (0 === (seen0 & 128))
|
|
2433
|
-
$this.
|
|
2464
|
+
$this.o1d_1 = null;
|
|
2434
2465
|
else
|
|
2435
|
-
$this.
|
|
2466
|
+
$this.o1d_1 = description;
|
|
2436
2467
|
if (0 === (seen0 & 256))
|
|
2437
|
-
$this.
|
|
2468
|
+
$this.p1d_1 = null;
|
|
2438
2469
|
else
|
|
2439
|
-
$this.
|
|
2470
|
+
$this.p1d_1 = difficultyLevel;
|
|
2440
2471
|
if (0 === (seen0 & 512))
|
|
2441
|
-
$this.
|
|
2472
|
+
$this.q1d_1 = null;
|
|
2442
2473
|
else
|
|
2443
|
-
$this.
|
|
2444
|
-
$this.
|
|
2474
|
+
$this.q1d_1 = featuredImage;
|
|
2475
|
+
$this.r1d_1 = id;
|
|
2445
2476
|
if (0 === (seen0 & 2048))
|
|
2446
|
-
$this.
|
|
2477
|
+
$this.s1d_1 = null;
|
|
2447
2478
|
else
|
|
2448
|
-
$this.
|
|
2479
|
+
$this.s1d_1 = ingredients;
|
|
2449
2480
|
if (0 === (seen0 & 4096))
|
|
2450
|
-
$this.
|
|
2481
|
+
$this.t1d_1 = null;
|
|
2451
2482
|
else
|
|
2452
|
-
$this.
|
|
2483
|
+
$this.t1d_1 = ingredientsTemplate;
|
|
2453
2484
|
if (0 === (seen0 & 8192))
|
|
2454
|
-
$this.
|
|
2485
|
+
$this.u1d_1 = null;
|
|
2455
2486
|
else
|
|
2456
|
-
$this.
|
|
2487
|
+
$this.u1d_1 = instructions;
|
|
2457
2488
|
if (0 === (seen0 & 16384))
|
|
2458
|
-
$this.
|
|
2489
|
+
$this.v1d_1 = null;
|
|
2459
2490
|
else
|
|
2460
|
-
$this.
|
|
2491
|
+
$this.v1d_1 = instructionsTemplate;
|
|
2461
2492
|
if (0 === (seen0 & 32768))
|
|
2462
|
-
$this.
|
|
2493
|
+
$this.w1d_1 = null;
|
|
2463
2494
|
else
|
|
2464
|
-
$this.
|
|
2495
|
+
$this.w1d_1 = isAppReady;
|
|
2465
2496
|
if (0 === (seen0 & 65536))
|
|
2466
|
-
$this.
|
|
2497
|
+
$this.x1d_1 = null;
|
|
2467
2498
|
else
|
|
2468
|
-
$this.
|
|
2499
|
+
$this.x1d_1 = mealTypeIDS;
|
|
2469
2500
|
if (0 === (seen0 & 131072))
|
|
2470
|
-
$this.
|
|
2501
|
+
$this.y1d_1 = null;
|
|
2471
2502
|
else
|
|
2472
|
-
$this.
|
|
2503
|
+
$this.y1d_1 = serves;
|
|
2473
2504
|
if (0 === (seen0 & 262144))
|
|
2474
|
-
$this.
|
|
2505
|
+
$this.z1d_1 = null;
|
|
2475
2506
|
else
|
|
2476
|
-
$this.
|
|
2507
|
+
$this.z1d_1 = suitableForDietIDS;
|
|
2477
2508
|
if (0 === (seen0 & 524288))
|
|
2478
|
-
$this.
|
|
2509
|
+
$this.a1e_1 = null;
|
|
2479
2510
|
else
|
|
2480
|
-
$this.
|
|
2511
|
+
$this.a1e_1 = techniquesUsedIDS;
|
|
2481
2512
|
if (0 === (seen0 & 1048576))
|
|
2482
|
-
$this.
|
|
2513
|
+
$this.b1e_1 = null;
|
|
2483
2514
|
else
|
|
2484
|
-
$this.
|
|
2515
|
+
$this.b1e_1 = timings;
|
|
2485
2516
|
if (0 === (seen0 & 2097152))
|
|
2486
|
-
$this.
|
|
2517
|
+
$this.c1e_1 = null;
|
|
2487
2518
|
else
|
|
2488
|
-
$this.
|
|
2519
|
+
$this.c1e_1 = title;
|
|
2489
2520
|
if (0 === (seen0 & 4194304))
|
|
2490
|
-
$this.
|
|
2521
|
+
$this.d1e_1 = null;
|
|
2491
2522
|
else
|
|
2492
|
-
$this.
|
|
2523
|
+
$this.d1e_1 = utensilsAndApplianceIDS;
|
|
2493
2524
|
if (0 === (seen0 & 8388608))
|
|
2494
|
-
$this.
|
|
2525
|
+
$this.e1e_1 = null;
|
|
2495
2526
|
else
|
|
2496
|
-
$this.
|
|
2527
|
+
$this.e1e_1 = webPublicationDate;
|
|
2497
2528
|
return $this;
|
|
2498
2529
|
}
|
|
2499
2530
|
function RecipeV3_init_$Create$(seen0, bookCredit, byline, canonicalArticle, celebrationIDS, composerID, contributors, cuisineIDS, description, difficultyLevel, featuredImage, id, ingredients, ingredientsTemplate, instructions, instructionsTemplate, isAppReady, mealTypeIDS, serves, suitableForDietIDS, techniquesUsedIDS, timings, title, utensilsAndApplianceIDS, webPublicationDate, serializationConstructorMarker) {
|
|
@@ -2524,59 +2555,59 @@
|
|
|
2524
2555
|
title = title === VOID ? null : title;
|
|
2525
2556
|
utensilsAndApplianceIDS = utensilsAndApplianceIDS === VOID ? null : utensilsAndApplianceIDS;
|
|
2526
2557
|
webPublicationDate = webPublicationDate === VOID ? null : webPublicationDate;
|
|
2527
|
-
this.
|
|
2528
|
-
this.
|
|
2529
|
-
this.
|
|
2530
|
-
this.
|
|
2531
|
-
this.
|
|
2532
|
-
this.
|
|
2533
|
-
this.
|
|
2534
|
-
this.
|
|
2535
|
-
this.
|
|
2536
|
-
this.
|
|
2537
|
-
this.
|
|
2538
|
-
this.
|
|
2539
|
-
this.
|
|
2540
|
-
this.
|
|
2541
|
-
this.
|
|
2542
|
-
this.
|
|
2543
|
-
this.
|
|
2544
|
-
this.
|
|
2545
|
-
this.
|
|
2546
|
-
this.
|
|
2547
|
-
this.
|
|
2548
|
-
this.
|
|
2549
|
-
this.
|
|
2550
|
-
this.
|
|
2558
|
+
this.h1d_1 = bookCredit;
|
|
2559
|
+
this.i1d_1 = byline;
|
|
2560
|
+
this.j1d_1 = canonicalArticle;
|
|
2561
|
+
this.k1d_1 = celebrationIDS;
|
|
2562
|
+
this.l1d_1 = composerID;
|
|
2563
|
+
this.m1d_1 = contributors;
|
|
2564
|
+
this.n1d_1 = cuisineIDS;
|
|
2565
|
+
this.o1d_1 = description;
|
|
2566
|
+
this.p1d_1 = difficultyLevel;
|
|
2567
|
+
this.q1d_1 = featuredImage;
|
|
2568
|
+
this.r1d_1 = id;
|
|
2569
|
+
this.s1d_1 = ingredients;
|
|
2570
|
+
this.t1d_1 = ingredientsTemplate;
|
|
2571
|
+
this.u1d_1 = instructions;
|
|
2572
|
+
this.v1d_1 = instructionsTemplate;
|
|
2573
|
+
this.w1d_1 = isAppReady;
|
|
2574
|
+
this.x1d_1 = mealTypeIDS;
|
|
2575
|
+
this.y1d_1 = serves;
|
|
2576
|
+
this.z1d_1 = suitableForDietIDS;
|
|
2577
|
+
this.a1e_1 = techniquesUsedIDS;
|
|
2578
|
+
this.b1e_1 = timings;
|
|
2579
|
+
this.c1e_1 = title;
|
|
2580
|
+
this.d1e_1 = utensilsAndApplianceIDS;
|
|
2581
|
+
this.e1e_1 = webPublicationDate;
|
|
2551
2582
|
}
|
|
2552
2583
|
protoOf(RecipeV3).toString = function () {
|
|
2553
|
-
return 'RecipeV3(bookCredit=' + this.
|
|
2584
|
+
return 'RecipeV3(bookCredit=' + this.h1d_1 + ', byline=' + toString(this.i1d_1) + ', canonicalArticle=' + this.j1d_1 + ', celebrationIDS=' + toString(this.k1d_1) + ', composerID=' + this.l1d_1 + ', contributors=' + toString(this.m1d_1) + ', cuisineIDS=' + toString(this.n1d_1) + ', description=' + this.o1d_1 + ', difficultyLevel=' + this.p1d_1 + ', featuredImage=' + toString(this.q1d_1) + ', id=' + this.r1d_1 + ', ingredients=' + toString(this.s1d_1) + ', ingredientsTemplate=' + toString(this.t1d_1) + ', instructions=' + toString(this.u1d_1) + ', instructionsTemplate=' + toString(this.v1d_1) + ', isAppReady=' + this.w1d_1 + ', mealTypeIDS=' + toString(this.x1d_1) + ', serves=' + toString(this.y1d_1) + ', suitableForDietIDS=' + toString(this.z1d_1) + ', techniquesUsedIDS=' + toString(this.a1e_1) + ', timings=' + toString(this.b1e_1) + ', title=' + this.c1e_1 + ', utensilsAndApplianceIDS=' + toString(this.d1e_1) + ', webPublicationDate=' + this.e1e_1 + ')';
|
|
2554
2585
|
};
|
|
2555
2586
|
protoOf(RecipeV3).hashCode = function () {
|
|
2556
|
-
var result = this.
|
|
2557
|
-
result = imul(result, 31) + (this.n1c_1 == null ? 0 : hashCode(this.n1c_1)) | 0;
|
|
2558
|
-
result = imul(result, 31) + (this.o1c_1 == null ? 0 : getStringHashCode(this.o1c_1)) | 0;
|
|
2559
|
-
result = imul(result, 31) + (this.p1c_1 == null ? 0 : hashCode(this.p1c_1)) | 0;
|
|
2560
|
-
result = imul(result, 31) + (this.q1c_1 == null ? 0 : getStringHashCode(this.q1c_1)) | 0;
|
|
2561
|
-
result = imul(result, 31) + (this.r1c_1 == null ? 0 : hashCode(this.r1c_1)) | 0;
|
|
2562
|
-
result = imul(result, 31) + (this.s1c_1 == null ? 0 : hashCode(this.s1c_1)) | 0;
|
|
2563
|
-
result = imul(result, 31) + (this.t1c_1 == null ? 0 : getStringHashCode(this.t1c_1)) | 0;
|
|
2564
|
-
result = imul(result, 31) + (this.u1c_1 == null ? 0 : getStringHashCode(this.u1c_1)) | 0;
|
|
2565
|
-
result = imul(result, 31) + (this.v1c_1 == null ? 0 : this.v1c_1.hashCode()) | 0;
|
|
2566
|
-
result = imul(result, 31) + getStringHashCode(this.w1c_1) | 0;
|
|
2567
|
-
result = imul(result, 31) + (this.x1c_1 == null ? 0 : hashCode(this.x1c_1)) | 0;
|
|
2568
|
-
result = imul(result, 31) + (this.y1c_1 == null ? 0 : hashCode(this.y1c_1)) | 0;
|
|
2569
|
-
result = imul(result, 31) + (this.z1c_1 == null ? 0 : hashCode(this.z1c_1)) | 0;
|
|
2570
|
-
result = imul(result, 31) + (this.a1d_1 == null ? 0 : hashCode(this.a1d_1)) | 0;
|
|
2571
|
-
result = imul(result, 31) + (this.b1d_1 == null ? 0 : getBooleanHashCode(this.b1d_1)) | 0;
|
|
2572
|
-
result = imul(result, 31) + (this.c1d_1 == null ? 0 : hashCode(this.c1d_1)) | 0;
|
|
2573
|
-
result = imul(result, 31) + (this.d1d_1 == null ? 0 : hashCode(this.d1d_1)) | 0;
|
|
2574
|
-
result = imul(result, 31) + (this.e1d_1 == null ? 0 : hashCode(this.e1d_1)) | 0;
|
|
2575
|
-
result = imul(result, 31) + (this.f1d_1 == null ? 0 : hashCode(this.f1d_1)) | 0;
|
|
2576
|
-
result = imul(result, 31) + (this.g1d_1 == null ? 0 : hashCode(this.g1d_1)) | 0;
|
|
2577
|
-
result = imul(result, 31) + (this.h1d_1 == null ? 0 : getStringHashCode(this.h1d_1)) | 0;
|
|
2587
|
+
var result = this.h1d_1 == null ? 0 : getStringHashCode(this.h1d_1);
|
|
2578
2588
|
result = imul(result, 31) + (this.i1d_1 == null ? 0 : hashCode(this.i1d_1)) | 0;
|
|
2579
2589
|
result = imul(result, 31) + (this.j1d_1 == null ? 0 : getStringHashCode(this.j1d_1)) | 0;
|
|
2590
|
+
result = imul(result, 31) + (this.k1d_1 == null ? 0 : hashCode(this.k1d_1)) | 0;
|
|
2591
|
+
result = imul(result, 31) + (this.l1d_1 == null ? 0 : getStringHashCode(this.l1d_1)) | 0;
|
|
2592
|
+
result = imul(result, 31) + (this.m1d_1 == null ? 0 : hashCode(this.m1d_1)) | 0;
|
|
2593
|
+
result = imul(result, 31) + (this.n1d_1 == null ? 0 : hashCode(this.n1d_1)) | 0;
|
|
2594
|
+
result = imul(result, 31) + (this.o1d_1 == null ? 0 : getStringHashCode(this.o1d_1)) | 0;
|
|
2595
|
+
result = imul(result, 31) + (this.p1d_1 == null ? 0 : getStringHashCode(this.p1d_1)) | 0;
|
|
2596
|
+
result = imul(result, 31) + (this.q1d_1 == null ? 0 : this.q1d_1.hashCode()) | 0;
|
|
2597
|
+
result = imul(result, 31) + getStringHashCode(this.r1d_1) | 0;
|
|
2598
|
+
result = imul(result, 31) + (this.s1d_1 == null ? 0 : hashCode(this.s1d_1)) | 0;
|
|
2599
|
+
result = imul(result, 31) + (this.t1d_1 == null ? 0 : hashCode(this.t1d_1)) | 0;
|
|
2600
|
+
result = imul(result, 31) + (this.u1d_1 == null ? 0 : hashCode(this.u1d_1)) | 0;
|
|
2601
|
+
result = imul(result, 31) + (this.v1d_1 == null ? 0 : hashCode(this.v1d_1)) | 0;
|
|
2602
|
+
result = imul(result, 31) + (this.w1d_1 == null ? 0 : getBooleanHashCode(this.w1d_1)) | 0;
|
|
2603
|
+
result = imul(result, 31) + (this.x1d_1 == null ? 0 : hashCode(this.x1d_1)) | 0;
|
|
2604
|
+
result = imul(result, 31) + (this.y1d_1 == null ? 0 : hashCode(this.y1d_1)) | 0;
|
|
2605
|
+
result = imul(result, 31) + (this.z1d_1 == null ? 0 : hashCode(this.z1d_1)) | 0;
|
|
2606
|
+
result = imul(result, 31) + (this.a1e_1 == null ? 0 : hashCode(this.a1e_1)) | 0;
|
|
2607
|
+
result = imul(result, 31) + (this.b1e_1 == null ? 0 : hashCode(this.b1e_1)) | 0;
|
|
2608
|
+
result = imul(result, 31) + (this.c1e_1 == null ? 0 : getStringHashCode(this.c1e_1)) | 0;
|
|
2609
|
+
result = imul(result, 31) + (this.d1e_1 == null ? 0 : hashCode(this.d1e_1)) | 0;
|
|
2610
|
+
result = imul(result, 31) + (this.e1e_1 == null ? 0 : getStringHashCode(this.e1e_1)) | 0;
|
|
2580
2611
|
return result;
|
|
2581
2612
|
};
|
|
2582
2613
|
protoOf(RecipeV3).equals = function (other) {
|
|
@@ -2584,53 +2615,53 @@
|
|
|
2584
2615
|
return true;
|
|
2585
2616
|
if (!(other instanceof RecipeV3))
|
|
2586
2617
|
return false;
|
|
2587
|
-
if (!(this.
|
|
2618
|
+
if (!(this.h1d_1 == other.h1d_1))
|
|
2588
2619
|
return false;
|
|
2589
|
-
if (!equals(this.
|
|
2620
|
+
if (!equals(this.i1d_1, other.i1d_1))
|
|
2590
2621
|
return false;
|
|
2591
|
-
if (!(this.
|
|
2622
|
+
if (!(this.j1d_1 == other.j1d_1))
|
|
2592
2623
|
return false;
|
|
2593
|
-
if (!equals(this.
|
|
2624
|
+
if (!equals(this.k1d_1, other.k1d_1))
|
|
2594
2625
|
return false;
|
|
2595
|
-
if (!(this.
|
|
2626
|
+
if (!(this.l1d_1 == other.l1d_1))
|
|
2596
2627
|
return false;
|
|
2597
|
-
if (!equals(this.
|
|
2628
|
+
if (!equals(this.m1d_1, other.m1d_1))
|
|
2598
2629
|
return false;
|
|
2599
|
-
if (!equals(this.
|
|
2630
|
+
if (!equals(this.n1d_1, other.n1d_1))
|
|
2600
2631
|
return false;
|
|
2601
|
-
if (!(this.
|
|
2632
|
+
if (!(this.o1d_1 == other.o1d_1))
|
|
2602
2633
|
return false;
|
|
2603
|
-
if (!(this.
|
|
2634
|
+
if (!(this.p1d_1 == other.p1d_1))
|
|
2604
2635
|
return false;
|
|
2605
|
-
if (!equals(this.
|
|
2636
|
+
if (!equals(this.q1d_1, other.q1d_1))
|
|
2606
2637
|
return false;
|
|
2607
|
-
if (!(this.
|
|
2638
|
+
if (!(this.r1d_1 === other.r1d_1))
|
|
2608
2639
|
return false;
|
|
2609
|
-
if (!equals(this.
|
|
2640
|
+
if (!equals(this.s1d_1, other.s1d_1))
|
|
2610
2641
|
return false;
|
|
2611
|
-
if (!equals(this.
|
|
2642
|
+
if (!equals(this.t1d_1, other.t1d_1))
|
|
2612
2643
|
return false;
|
|
2613
|
-
if (!equals(this.
|
|
2644
|
+
if (!equals(this.u1d_1, other.u1d_1))
|
|
2614
2645
|
return false;
|
|
2615
|
-
if (!equals(this.
|
|
2646
|
+
if (!equals(this.v1d_1, other.v1d_1))
|
|
2616
2647
|
return false;
|
|
2617
|
-
if (!(this.
|
|
2648
|
+
if (!(this.w1d_1 == other.w1d_1))
|
|
2618
2649
|
return false;
|
|
2619
|
-
if (!equals(this.
|
|
2650
|
+
if (!equals(this.x1d_1, other.x1d_1))
|
|
2620
2651
|
return false;
|
|
2621
|
-
if (!equals(this.
|
|
2652
|
+
if (!equals(this.y1d_1, other.y1d_1))
|
|
2622
2653
|
return false;
|
|
2623
|
-
if (!equals(this.
|
|
2654
|
+
if (!equals(this.z1d_1, other.z1d_1))
|
|
2624
2655
|
return false;
|
|
2625
|
-
if (!equals(this.
|
|
2656
|
+
if (!equals(this.a1e_1, other.a1e_1))
|
|
2626
2657
|
return false;
|
|
2627
|
-
if (!equals(this.
|
|
2658
|
+
if (!equals(this.b1e_1, other.b1e_1))
|
|
2628
2659
|
return false;
|
|
2629
|
-
if (!(this.
|
|
2660
|
+
if (!(this.c1e_1 == other.c1e_1))
|
|
2630
2661
|
return false;
|
|
2631
|
-
if (!equals(this.
|
|
2662
|
+
if (!equals(this.d1e_1, other.d1e_1))
|
|
2632
2663
|
return false;
|
|
2633
|
-
if (!(this.
|
|
2664
|
+
if (!(this.e1e_1 == other.e1e_1))
|
|
2634
2665
|
return false;
|
|
2635
2666
|
return true;
|
|
2636
2667
|
};
|
|
@@ -2644,7 +2675,7 @@
|
|
|
2644
2675
|
// Inline function 'kotlin.arrayOf' call
|
|
2645
2676
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2646
2677
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2647
|
-
tmp.
|
|
2678
|
+
tmp.o1h_1 = [lazy(tmp_0, IngredientsTemplateElement$Companion$$childSerializers$_anonymous__8t0no6), null];
|
|
2648
2679
|
}
|
|
2649
2680
|
var Companion_instance_6;
|
|
2650
2681
|
function Companion_getInstance_6() {
|
|
@@ -2655,70 +2686,70 @@
|
|
|
2655
2686
|
function $serializer_8() {
|
|
2656
2687
|
$serializer_instance_8 = this;
|
|
2657
2688
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.IngredientsTemplateElement', this, 2);
|
|
2658
|
-
tmp0_serialDesc.
|
|
2659
|
-
tmp0_serialDesc.
|
|
2660
|
-
this.
|
|
2689
|
+
tmp0_serialDesc.ws('ingredientsList', true);
|
|
2690
|
+
tmp0_serialDesc.ws('recipeSection', true);
|
|
2691
|
+
this.p1h_1 = tmp0_serialDesc;
|
|
2661
2692
|
}
|
|
2662
|
-
protoOf($serializer_8).
|
|
2663
|
-
var tmp0_desc = this.
|
|
2664
|
-
var tmp1_output = encoder.
|
|
2665
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
2666
|
-
if (tmp1_output.
|
|
2667
|
-
tmp1_output.
|
|
2693
|
+
protoOf($serializer_8).q1h = function (encoder, value) {
|
|
2694
|
+
var tmp0_desc = this.p1h_1;
|
|
2695
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
2696
|
+
var tmp2_cached = Companion_getInstance_6().o1h_1;
|
|
2697
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.f1e_1 == null)) {
|
|
2698
|
+
tmp1_output.fn(tmp0_desc, 0, tmp2_cached[0].t1(), value.f1e_1);
|
|
2668
2699
|
}
|
|
2669
|
-
if (tmp1_output.
|
|
2670
|
-
tmp1_output.
|
|
2700
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.g1e_1 == null)) {
|
|
2701
|
+
tmp1_output.fn(tmp0_desc, 1, StringSerializer_getInstance(), value.g1e_1);
|
|
2671
2702
|
}
|
|
2672
|
-
tmp1_output.
|
|
2703
|
+
tmp1_output.ol(tmp0_desc);
|
|
2673
2704
|
};
|
|
2674
|
-
protoOf($serializer_8).
|
|
2675
|
-
return this.
|
|
2705
|
+
protoOf($serializer_8).ri = function (encoder, value) {
|
|
2706
|
+
return this.q1h(encoder, value instanceof IngredientsTemplateElement ? value : THROW_CCE());
|
|
2676
2707
|
};
|
|
2677
|
-
protoOf($serializer_8).
|
|
2678
|
-
var tmp0_desc = this.
|
|
2708
|
+
protoOf($serializer_8).si = function (decoder) {
|
|
2709
|
+
var tmp0_desc = this.p1h_1;
|
|
2679
2710
|
var tmp1_flag = true;
|
|
2680
2711
|
var tmp2_index = 0;
|
|
2681
2712
|
var tmp3_bitMask0 = 0;
|
|
2682
2713
|
var tmp4_local0 = null;
|
|
2683
2714
|
var tmp5_local1 = null;
|
|
2684
|
-
var tmp6_input = decoder.
|
|
2685
|
-
var tmp7_cached = Companion_getInstance_6().
|
|
2686
|
-
if (tmp6_input.
|
|
2687
|
-
tmp4_local0 = tmp6_input.
|
|
2715
|
+
var tmp6_input = decoder.nl(tmp0_desc);
|
|
2716
|
+
var tmp7_cached = Companion_getInstance_6().o1h_1;
|
|
2717
|
+
if (tmp6_input.dm()) {
|
|
2718
|
+
tmp4_local0 = tmp6_input.bm(tmp0_desc, 0, tmp7_cached[0].t1(), tmp4_local0);
|
|
2688
2719
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2689
|
-
tmp5_local1 = tmp6_input.
|
|
2720
|
+
tmp5_local1 = tmp6_input.bm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2690
2721
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2691
2722
|
} else
|
|
2692
2723
|
while (tmp1_flag) {
|
|
2693
|
-
tmp2_index = tmp6_input.
|
|
2724
|
+
tmp2_index = tmp6_input.em(tmp0_desc);
|
|
2694
2725
|
switch (tmp2_index) {
|
|
2695
2726
|
case -1:
|
|
2696
2727
|
tmp1_flag = false;
|
|
2697
2728
|
break;
|
|
2698
2729
|
case 0:
|
|
2699
|
-
tmp4_local0 = tmp6_input.
|
|
2730
|
+
tmp4_local0 = tmp6_input.bm(tmp0_desc, 0, tmp7_cached[0].t1(), tmp4_local0);
|
|
2700
2731
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2701
2732
|
break;
|
|
2702
2733
|
case 1:
|
|
2703
|
-
tmp5_local1 = tmp6_input.
|
|
2734
|
+
tmp5_local1 = tmp6_input.bm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2704
2735
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2705
2736
|
break;
|
|
2706
2737
|
default:
|
|
2707
2738
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2708
2739
|
}
|
|
2709
2740
|
}
|
|
2710
|
-
tmp6_input.
|
|
2741
|
+
tmp6_input.ol(tmp0_desc);
|
|
2711
2742
|
return IngredientsTemplateElement_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
2712
2743
|
};
|
|
2713
|
-
protoOf($serializer_8).
|
|
2714
|
-
return this.
|
|
2744
|
+
protoOf($serializer_8).qi = function () {
|
|
2745
|
+
return this.p1h_1;
|
|
2715
2746
|
};
|
|
2716
|
-
protoOf($serializer_8).
|
|
2717
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
2747
|
+
protoOf($serializer_8).ys = function () {
|
|
2748
|
+
var tmp0_cached = Companion_getInstance_6().o1h_1;
|
|
2718
2749
|
// Inline function 'kotlin.arrayOf' call
|
|
2719
2750
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2720
2751
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2721
|
-
return [get_nullable(tmp0_cached[0].
|
|
2752
|
+
return [get_nullable(tmp0_cached[0].t1()), get_nullable(StringSerializer_getInstance())];
|
|
2722
2753
|
};
|
|
2723
2754
|
var $serializer_instance_8;
|
|
2724
2755
|
function $serializer_getInstance_8() {
|
|
@@ -2728,16 +2759,16 @@
|
|
|
2728
2759
|
}
|
|
2729
2760
|
function IngredientsTemplateElement_init_$Init$(seen0, ingredientsList, recipeSection, serializationConstructorMarker, $this) {
|
|
2730
2761
|
if (!(0 === (0 & seen0))) {
|
|
2731
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_8().
|
|
2762
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_8().p1h_1);
|
|
2732
2763
|
}
|
|
2733
2764
|
if (0 === (seen0 & 1))
|
|
2734
|
-
$this.
|
|
2765
|
+
$this.f1e_1 = null;
|
|
2735
2766
|
else
|
|
2736
|
-
$this.
|
|
2767
|
+
$this.f1e_1 = ingredientsList;
|
|
2737
2768
|
if (0 === (seen0 & 2))
|
|
2738
|
-
$this.
|
|
2769
|
+
$this.g1e_1 = null;
|
|
2739
2770
|
else
|
|
2740
|
-
$this.
|
|
2771
|
+
$this.g1e_1 = recipeSection;
|
|
2741
2772
|
return $this;
|
|
2742
2773
|
}
|
|
2743
2774
|
function IngredientsTemplateElement_init_$Create$(seen0, ingredientsList, recipeSection, serializationConstructorMarker) {
|
|
@@ -2747,15 +2778,15 @@
|
|
|
2747
2778
|
Companion_getInstance_6();
|
|
2748
2779
|
ingredientsList = ingredientsList === VOID ? null : ingredientsList;
|
|
2749
2780
|
recipeSection = recipeSection === VOID ? null : recipeSection;
|
|
2750
|
-
this.
|
|
2751
|
-
this.
|
|
2781
|
+
this.f1e_1 = ingredientsList;
|
|
2782
|
+
this.g1e_1 = recipeSection;
|
|
2752
2783
|
}
|
|
2753
2784
|
protoOf(IngredientsTemplateElement).toString = function () {
|
|
2754
|
-
return 'IngredientsTemplateElement(ingredientsList=' + toString(this.
|
|
2785
|
+
return 'IngredientsTemplateElement(ingredientsList=' + toString(this.f1e_1) + ', recipeSection=' + this.g1e_1 + ')';
|
|
2755
2786
|
};
|
|
2756
2787
|
protoOf(IngredientsTemplateElement).hashCode = function () {
|
|
2757
|
-
var result = this.
|
|
2758
|
-
result = imul(result, 31) + (this.
|
|
2788
|
+
var result = this.f1e_1 == null ? 0 : hashCode(this.f1e_1);
|
|
2789
|
+
result = imul(result, 31) + (this.g1e_1 == null ? 0 : getStringHashCode(this.g1e_1)) | 0;
|
|
2759
2790
|
return result;
|
|
2760
2791
|
};
|
|
2761
2792
|
protoOf(IngredientsTemplateElement).equals = function (other) {
|
|
@@ -2763,9 +2794,9 @@
|
|
|
2763
2794
|
return true;
|
|
2764
2795
|
if (!(other instanceof IngredientsTemplateElement))
|
|
2765
2796
|
return false;
|
|
2766
|
-
if (!equals(this.
|
|
2797
|
+
if (!equals(this.f1e_1, other.f1e_1))
|
|
2767
2798
|
return false;
|
|
2768
|
-
if (!(this.
|
|
2799
|
+
if (!(this.g1e_1 == other.g1e_1))
|
|
2769
2800
|
return false;
|
|
2770
2801
|
return true;
|
|
2771
2802
|
};
|
|
@@ -2778,54 +2809,54 @@
|
|
|
2778
2809
|
function $serializer_9() {
|
|
2779
2810
|
$serializer_instance_9 = this;
|
|
2780
2811
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.IngredientsTemplateIngredientsList', this, 9);
|
|
2781
|
-
tmp0_serialDesc.
|
|
2782
|
-
tmp0_serialDesc.
|
|
2783
|
-
tmp0_serialDesc.
|
|
2784
|
-
tmp0_serialDesc.
|
|
2785
|
-
tmp0_serialDesc.
|
|
2786
|
-
tmp0_serialDesc.
|
|
2787
|
-
tmp0_serialDesc.
|
|
2788
|
-
tmp0_serialDesc.
|
|
2789
|
-
tmp0_serialDesc.
|
|
2790
|
-
this.
|
|
2812
|
+
tmp0_serialDesc.ws('amount', true);
|
|
2813
|
+
tmp0_serialDesc.ws('ingredientId', true);
|
|
2814
|
+
tmp0_serialDesc.ws('name', true);
|
|
2815
|
+
tmp0_serialDesc.ws('optional', true);
|
|
2816
|
+
tmp0_serialDesc.ws('prefix', true);
|
|
2817
|
+
tmp0_serialDesc.ws('suffix', true);
|
|
2818
|
+
tmp0_serialDesc.ws('text', true);
|
|
2819
|
+
tmp0_serialDesc.ws('unit', true);
|
|
2820
|
+
tmp0_serialDesc.ws('template', true);
|
|
2821
|
+
this.r1h_1 = tmp0_serialDesc;
|
|
2791
2822
|
}
|
|
2792
|
-
protoOf($serializer_9).
|
|
2793
|
-
var tmp0_desc = this.
|
|
2794
|
-
var tmp1_output = encoder.
|
|
2795
|
-
if (tmp1_output.
|
|
2796
|
-
tmp1_output.
|
|
2823
|
+
protoOf($serializer_9).s1h = function (encoder, value) {
|
|
2824
|
+
var tmp0_desc = this.r1h_1;
|
|
2825
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
2826
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.h1e_1 == null)) {
|
|
2827
|
+
tmp1_output.fn(tmp0_desc, 0, $serializer_getInstance(), value.h1e_1);
|
|
2797
2828
|
}
|
|
2798
|
-
if (tmp1_output.
|
|
2799
|
-
tmp1_output.
|
|
2829
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.i1e_1 == null)) {
|
|
2830
|
+
tmp1_output.fn(tmp0_desc, 1, StringSerializer_getInstance(), value.i1e_1);
|
|
2800
2831
|
}
|
|
2801
|
-
if (tmp1_output.
|
|
2802
|
-
tmp1_output.
|
|
2832
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.j1e_1 == null)) {
|
|
2833
|
+
tmp1_output.fn(tmp0_desc, 2, StringSerializer_getInstance(), value.j1e_1);
|
|
2803
2834
|
}
|
|
2804
|
-
if (tmp1_output.
|
|
2805
|
-
tmp1_output.
|
|
2835
|
+
if (tmp1_output.jn(tmp0_desc, 3) ? true : !(value.k1e_1 == null)) {
|
|
2836
|
+
tmp1_output.fn(tmp0_desc, 3, BooleanSerializer_getInstance(), value.k1e_1);
|
|
2806
2837
|
}
|
|
2807
|
-
if (tmp1_output.
|
|
2808
|
-
tmp1_output.
|
|
2838
|
+
if (tmp1_output.jn(tmp0_desc, 4) ? true : !(value.l1e_1 == null)) {
|
|
2839
|
+
tmp1_output.fn(tmp0_desc, 4, StringSerializer_getInstance(), value.l1e_1);
|
|
2809
2840
|
}
|
|
2810
|
-
if (tmp1_output.
|
|
2811
|
-
tmp1_output.
|
|
2841
|
+
if (tmp1_output.jn(tmp0_desc, 5) ? true : !(value.m1e_1 == null)) {
|
|
2842
|
+
tmp1_output.fn(tmp0_desc, 5, StringSerializer_getInstance(), value.m1e_1);
|
|
2812
2843
|
}
|
|
2813
|
-
if (tmp1_output.
|
|
2814
|
-
tmp1_output.
|
|
2844
|
+
if (tmp1_output.jn(tmp0_desc, 6) ? true : !(value.n1e_1 == null)) {
|
|
2845
|
+
tmp1_output.fn(tmp0_desc, 6, StringSerializer_getInstance(), value.n1e_1);
|
|
2815
2846
|
}
|
|
2816
|
-
if (tmp1_output.
|
|
2817
|
-
tmp1_output.
|
|
2847
|
+
if (tmp1_output.jn(tmp0_desc, 7) ? true : !(value.o1e_1 == null)) {
|
|
2848
|
+
tmp1_output.fn(tmp0_desc, 7, StringSerializer_getInstance(), value.o1e_1);
|
|
2818
2849
|
}
|
|
2819
|
-
if (tmp1_output.
|
|
2820
|
-
tmp1_output.
|
|
2850
|
+
if (tmp1_output.jn(tmp0_desc, 8) ? true : !(value.p1e_1 == null)) {
|
|
2851
|
+
tmp1_output.fn(tmp0_desc, 8, StringSerializer_getInstance(), value.p1e_1);
|
|
2821
2852
|
}
|
|
2822
|
-
tmp1_output.
|
|
2853
|
+
tmp1_output.ol(tmp0_desc);
|
|
2823
2854
|
};
|
|
2824
|
-
protoOf($serializer_9).
|
|
2825
|
-
return this.
|
|
2855
|
+
protoOf($serializer_9).ri = function (encoder, value) {
|
|
2856
|
+
return this.s1h(encoder, value instanceof IngredientsTemplateIngredientsList ? value : THROW_CCE());
|
|
2826
2857
|
};
|
|
2827
|
-
protoOf($serializer_9).
|
|
2828
|
-
var tmp0_desc = this.
|
|
2858
|
+
protoOf($serializer_9).si = function (decoder) {
|
|
2859
|
+
var tmp0_desc = this.r1h_1;
|
|
2829
2860
|
var tmp1_flag = true;
|
|
2830
2861
|
var tmp2_index = 0;
|
|
2831
2862
|
var tmp3_bitMask0 = 0;
|
|
@@ -2838,80 +2869,80 @@
|
|
|
2838
2869
|
var tmp10_local6 = null;
|
|
2839
2870
|
var tmp11_local7 = null;
|
|
2840
2871
|
var tmp12_local8 = null;
|
|
2841
|
-
var tmp13_input = decoder.
|
|
2842
|
-
if (tmp13_input.
|
|
2843
|
-
tmp4_local0 = tmp13_input.
|
|
2872
|
+
var tmp13_input = decoder.nl(tmp0_desc);
|
|
2873
|
+
if (tmp13_input.dm()) {
|
|
2874
|
+
tmp4_local0 = tmp13_input.bm(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0);
|
|
2844
2875
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2845
|
-
tmp5_local1 = tmp13_input.
|
|
2876
|
+
tmp5_local1 = tmp13_input.bm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2846
2877
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2847
|
-
tmp6_local2 = tmp13_input.
|
|
2878
|
+
tmp6_local2 = tmp13_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2848
2879
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2849
|
-
tmp7_local3 = tmp13_input.
|
|
2880
|
+
tmp7_local3 = tmp13_input.bm(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3);
|
|
2850
2881
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2851
|
-
tmp8_local4 = tmp13_input.
|
|
2882
|
+
tmp8_local4 = tmp13_input.bm(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
2852
2883
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
2853
|
-
tmp9_local5 = tmp13_input.
|
|
2884
|
+
tmp9_local5 = tmp13_input.bm(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
2854
2885
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
2855
|
-
tmp10_local6 = tmp13_input.
|
|
2886
|
+
tmp10_local6 = tmp13_input.bm(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
2856
2887
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
2857
|
-
tmp11_local7 = tmp13_input.
|
|
2888
|
+
tmp11_local7 = tmp13_input.bm(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
2858
2889
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
2859
|
-
tmp12_local8 = tmp13_input.
|
|
2890
|
+
tmp12_local8 = tmp13_input.bm(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
2860
2891
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
2861
2892
|
} else
|
|
2862
2893
|
while (tmp1_flag) {
|
|
2863
|
-
tmp2_index = tmp13_input.
|
|
2894
|
+
tmp2_index = tmp13_input.em(tmp0_desc);
|
|
2864
2895
|
switch (tmp2_index) {
|
|
2865
2896
|
case -1:
|
|
2866
2897
|
tmp1_flag = false;
|
|
2867
2898
|
break;
|
|
2868
2899
|
case 0:
|
|
2869
|
-
tmp4_local0 = tmp13_input.
|
|
2900
|
+
tmp4_local0 = tmp13_input.bm(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0);
|
|
2870
2901
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2871
2902
|
break;
|
|
2872
2903
|
case 1:
|
|
2873
|
-
tmp5_local1 = tmp13_input.
|
|
2904
|
+
tmp5_local1 = tmp13_input.bm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2874
2905
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2875
2906
|
break;
|
|
2876
2907
|
case 2:
|
|
2877
|
-
tmp6_local2 = tmp13_input.
|
|
2908
|
+
tmp6_local2 = tmp13_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2878
2909
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2879
2910
|
break;
|
|
2880
2911
|
case 3:
|
|
2881
|
-
tmp7_local3 = tmp13_input.
|
|
2912
|
+
tmp7_local3 = tmp13_input.bm(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3);
|
|
2882
2913
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2883
2914
|
break;
|
|
2884
2915
|
case 4:
|
|
2885
|
-
tmp8_local4 = tmp13_input.
|
|
2916
|
+
tmp8_local4 = tmp13_input.bm(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
2886
2917
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
2887
2918
|
break;
|
|
2888
2919
|
case 5:
|
|
2889
|
-
tmp9_local5 = tmp13_input.
|
|
2920
|
+
tmp9_local5 = tmp13_input.bm(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
2890
2921
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
2891
2922
|
break;
|
|
2892
2923
|
case 6:
|
|
2893
|
-
tmp10_local6 = tmp13_input.
|
|
2924
|
+
tmp10_local6 = tmp13_input.bm(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
2894
2925
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
2895
2926
|
break;
|
|
2896
2927
|
case 7:
|
|
2897
|
-
tmp11_local7 = tmp13_input.
|
|
2928
|
+
tmp11_local7 = tmp13_input.bm(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
2898
2929
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
2899
2930
|
break;
|
|
2900
2931
|
case 8:
|
|
2901
|
-
tmp12_local8 = tmp13_input.
|
|
2932
|
+
tmp12_local8 = tmp13_input.bm(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
2902
2933
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
2903
2934
|
break;
|
|
2904
2935
|
default:
|
|
2905
2936
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2906
2937
|
}
|
|
2907
2938
|
}
|
|
2908
|
-
tmp13_input.
|
|
2939
|
+
tmp13_input.ol(tmp0_desc);
|
|
2909
2940
|
return IngredientsTemplateIngredientsList_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null);
|
|
2910
2941
|
};
|
|
2911
|
-
protoOf($serializer_9).
|
|
2912
|
-
return this.
|
|
2942
|
+
protoOf($serializer_9).qi = function () {
|
|
2943
|
+
return this.r1h_1;
|
|
2913
2944
|
};
|
|
2914
|
-
protoOf($serializer_9).
|
|
2945
|
+
protoOf($serializer_9).ys = function () {
|
|
2915
2946
|
// Inline function 'kotlin.arrayOf' call
|
|
2916
2947
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2917
2948
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2925,44 +2956,44 @@
|
|
|
2925
2956
|
}
|
|
2926
2957
|
function IngredientsTemplateIngredientsList_init_$Init$(seen0, amount, ingredientID, name, optional, prefix, suffix, text, unit, template, serializationConstructorMarker, $this) {
|
|
2927
2958
|
if (!(0 === (0 & seen0))) {
|
|
2928
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_9().
|
|
2959
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_9().r1h_1);
|
|
2929
2960
|
}
|
|
2930
2961
|
if (0 === (seen0 & 1))
|
|
2931
|
-
$this.
|
|
2962
|
+
$this.h1e_1 = null;
|
|
2932
2963
|
else
|
|
2933
|
-
$this.
|
|
2964
|
+
$this.h1e_1 = amount;
|
|
2934
2965
|
if (0 === (seen0 & 2))
|
|
2935
|
-
$this.
|
|
2966
|
+
$this.i1e_1 = null;
|
|
2936
2967
|
else
|
|
2937
|
-
$this.
|
|
2968
|
+
$this.i1e_1 = ingredientID;
|
|
2938
2969
|
if (0 === (seen0 & 4))
|
|
2939
|
-
$this.
|
|
2970
|
+
$this.j1e_1 = null;
|
|
2940
2971
|
else
|
|
2941
|
-
$this.
|
|
2972
|
+
$this.j1e_1 = name;
|
|
2942
2973
|
if (0 === (seen0 & 8))
|
|
2943
|
-
$this.
|
|
2974
|
+
$this.k1e_1 = null;
|
|
2944
2975
|
else
|
|
2945
|
-
$this.
|
|
2976
|
+
$this.k1e_1 = optional;
|
|
2946
2977
|
if (0 === (seen0 & 16))
|
|
2947
|
-
$this.
|
|
2978
|
+
$this.l1e_1 = null;
|
|
2948
2979
|
else
|
|
2949
|
-
$this.
|
|
2980
|
+
$this.l1e_1 = prefix;
|
|
2950
2981
|
if (0 === (seen0 & 32))
|
|
2951
|
-
$this.
|
|
2982
|
+
$this.m1e_1 = null;
|
|
2952
2983
|
else
|
|
2953
|
-
$this.
|
|
2984
|
+
$this.m1e_1 = suffix;
|
|
2954
2985
|
if (0 === (seen0 & 64))
|
|
2955
|
-
$this.
|
|
2986
|
+
$this.n1e_1 = null;
|
|
2956
2987
|
else
|
|
2957
|
-
$this.
|
|
2988
|
+
$this.n1e_1 = text;
|
|
2958
2989
|
if (0 === (seen0 & 128))
|
|
2959
|
-
$this.
|
|
2990
|
+
$this.o1e_1 = null;
|
|
2960
2991
|
else
|
|
2961
|
-
$this.
|
|
2992
|
+
$this.o1e_1 = unit;
|
|
2962
2993
|
if (0 === (seen0 & 256))
|
|
2963
|
-
$this.
|
|
2994
|
+
$this.p1e_1 = null;
|
|
2964
2995
|
else
|
|
2965
|
-
$this.
|
|
2996
|
+
$this.p1e_1 = template;
|
|
2966
2997
|
return $this;
|
|
2967
2998
|
}
|
|
2968
2999
|
function IngredientsTemplateIngredientsList_init_$Create$(seen0, amount, ingredientID, name, optional, prefix, suffix, text, unit, template, serializationConstructorMarker) {
|
|
@@ -2978,29 +3009,29 @@
|
|
|
2978
3009
|
text = text === VOID ? null : text;
|
|
2979
3010
|
unit = unit === VOID ? null : unit;
|
|
2980
3011
|
template = template === VOID ? null : template;
|
|
2981
|
-
this.
|
|
2982
|
-
this.
|
|
2983
|
-
this.
|
|
2984
|
-
this.
|
|
2985
|
-
this.
|
|
2986
|
-
this.
|
|
2987
|
-
this.
|
|
2988
|
-
this.
|
|
2989
|
-
this.
|
|
3012
|
+
this.h1e_1 = amount;
|
|
3013
|
+
this.i1e_1 = ingredientID;
|
|
3014
|
+
this.j1e_1 = name;
|
|
3015
|
+
this.k1e_1 = optional;
|
|
3016
|
+
this.l1e_1 = prefix;
|
|
3017
|
+
this.m1e_1 = suffix;
|
|
3018
|
+
this.n1e_1 = text;
|
|
3019
|
+
this.o1e_1 = unit;
|
|
3020
|
+
this.p1e_1 = template;
|
|
2990
3021
|
}
|
|
2991
3022
|
protoOf(IngredientsTemplateIngredientsList).toString = function () {
|
|
2992
|
-
return 'IngredientsTemplateIngredientsList(amount=' + toString(this.
|
|
3023
|
+
return 'IngredientsTemplateIngredientsList(amount=' + toString(this.h1e_1) + ', ingredientID=' + this.i1e_1 + ', name=' + this.j1e_1 + ', optional=' + this.k1e_1 + ', prefix=' + this.l1e_1 + ', suffix=' + this.m1e_1 + ', text=' + this.n1e_1 + ', unit=' + this.o1e_1 + ', template=' + this.p1e_1 + ')';
|
|
2993
3024
|
};
|
|
2994
3025
|
protoOf(IngredientsTemplateIngredientsList).hashCode = function () {
|
|
2995
|
-
var result = this.
|
|
2996
|
-
result = imul(result, 31) + (this.
|
|
2997
|
-
result = imul(result, 31) + (this.
|
|
2998
|
-
result = imul(result, 31) + (this.
|
|
2999
|
-
result = imul(result, 31) + (this.
|
|
3000
|
-
result = imul(result, 31) + (this.
|
|
3001
|
-
result = imul(result, 31) + (this.
|
|
3002
|
-
result = imul(result, 31) + (this.
|
|
3003
|
-
result = imul(result, 31) + (this.
|
|
3026
|
+
var result = this.h1e_1 == null ? 0 : this.h1e_1.hashCode();
|
|
3027
|
+
result = imul(result, 31) + (this.i1e_1 == null ? 0 : getStringHashCode(this.i1e_1)) | 0;
|
|
3028
|
+
result = imul(result, 31) + (this.j1e_1 == null ? 0 : getStringHashCode(this.j1e_1)) | 0;
|
|
3029
|
+
result = imul(result, 31) + (this.k1e_1 == null ? 0 : getBooleanHashCode(this.k1e_1)) | 0;
|
|
3030
|
+
result = imul(result, 31) + (this.l1e_1 == null ? 0 : getStringHashCode(this.l1e_1)) | 0;
|
|
3031
|
+
result = imul(result, 31) + (this.m1e_1 == null ? 0 : getStringHashCode(this.m1e_1)) | 0;
|
|
3032
|
+
result = imul(result, 31) + (this.n1e_1 == null ? 0 : getStringHashCode(this.n1e_1)) | 0;
|
|
3033
|
+
result = imul(result, 31) + (this.o1e_1 == null ? 0 : getStringHashCode(this.o1e_1)) | 0;
|
|
3034
|
+
result = imul(result, 31) + (this.p1e_1 == null ? 0 : getStringHashCode(this.p1e_1)) | 0;
|
|
3004
3035
|
return result;
|
|
3005
3036
|
};
|
|
3006
3037
|
protoOf(IngredientsTemplateIngredientsList).equals = function (other) {
|
|
@@ -3008,23 +3039,23 @@
|
|
|
3008
3039
|
return true;
|
|
3009
3040
|
if (!(other instanceof IngredientsTemplateIngredientsList))
|
|
3010
3041
|
return false;
|
|
3011
|
-
if (!equals(this.
|
|
3042
|
+
if (!equals(this.h1e_1, other.h1e_1))
|
|
3012
3043
|
return false;
|
|
3013
|
-
if (!(this.
|
|
3044
|
+
if (!(this.i1e_1 == other.i1e_1))
|
|
3014
3045
|
return false;
|
|
3015
|
-
if (!(this.
|
|
3046
|
+
if (!(this.j1e_1 == other.j1e_1))
|
|
3016
3047
|
return false;
|
|
3017
|
-
if (!(this.
|
|
3048
|
+
if (!(this.k1e_1 == other.k1e_1))
|
|
3018
3049
|
return false;
|
|
3019
|
-
if (!(this.
|
|
3050
|
+
if (!(this.l1e_1 == other.l1e_1))
|
|
3020
3051
|
return false;
|
|
3021
|
-
if (!(this.
|
|
3052
|
+
if (!(this.m1e_1 == other.m1e_1))
|
|
3022
3053
|
return false;
|
|
3023
|
-
if (!(this.
|
|
3054
|
+
if (!(this.n1e_1 == other.n1e_1))
|
|
3024
3055
|
return false;
|
|
3025
|
-
if (!(this.
|
|
3056
|
+
if (!(this.o1e_1 == other.o1e_1))
|
|
3026
3057
|
return false;
|
|
3027
|
-
if (!(this.
|
|
3058
|
+
if (!(this.p1e_1 == other.p1e_1))
|
|
3028
3059
|
return false;
|
|
3029
3060
|
return true;
|
|
3030
3061
|
};
|
|
@@ -3038,7 +3069,7 @@
|
|
|
3038
3069
|
// Inline function 'kotlin.arrayOf' call
|
|
3039
3070
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3040
3071
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3041
|
-
tmp.
|
|
3072
|
+
tmp.t1h_1 = [null, lazy(tmp_0, InstructionsTemplateElement$Companion$$childSerializers$_anonymous__ebx60d), null];
|
|
3042
3073
|
}
|
|
3043
3074
|
var Companion_instance_8;
|
|
3044
3075
|
function Companion_getInstance_8() {
|
|
@@ -3049,79 +3080,79 @@
|
|
|
3049
3080
|
function $serializer_10() {
|
|
3050
3081
|
$serializer_instance_10 = this;
|
|
3051
3082
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.InstructionsTemplateElement', this, 3);
|
|
3052
|
-
tmp0_serialDesc.
|
|
3053
|
-
tmp0_serialDesc.
|
|
3054
|
-
tmp0_serialDesc.
|
|
3055
|
-
this.
|
|
3083
|
+
tmp0_serialDesc.ws('descriptionTemplate', false);
|
|
3084
|
+
tmp0_serialDesc.ws('images', true);
|
|
3085
|
+
tmp0_serialDesc.ws('stepNumber', true);
|
|
3086
|
+
this.u1h_1 = tmp0_serialDesc;
|
|
3056
3087
|
}
|
|
3057
|
-
protoOf($serializer_10).
|
|
3058
|
-
var tmp0_desc = this.
|
|
3059
|
-
var tmp1_output = encoder.
|
|
3060
|
-
var tmp2_cached = Companion_getInstance_8().
|
|
3061
|
-
tmp1_output.
|
|
3062
|
-
if (tmp1_output.
|
|
3063
|
-
tmp1_output.
|
|
3088
|
+
protoOf($serializer_10).v1h = function (encoder, value) {
|
|
3089
|
+
var tmp0_desc = this.u1h_1;
|
|
3090
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
3091
|
+
var tmp2_cached = Companion_getInstance_8().t1h_1;
|
|
3092
|
+
tmp1_output.bn(tmp0_desc, 0, value.q1e_1);
|
|
3093
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.r1e_1 == null)) {
|
|
3094
|
+
tmp1_output.fn(tmp0_desc, 1, tmp2_cached[1].t1(), value.r1e_1);
|
|
3064
3095
|
}
|
|
3065
|
-
if (tmp1_output.
|
|
3066
|
-
tmp1_output.
|
|
3096
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.s1e_1 == null)) {
|
|
3097
|
+
tmp1_output.fn(tmp0_desc, 2, DoubleSerializer_getInstance(), value.s1e_1);
|
|
3067
3098
|
}
|
|
3068
|
-
tmp1_output.
|
|
3099
|
+
tmp1_output.ol(tmp0_desc);
|
|
3069
3100
|
};
|
|
3070
|
-
protoOf($serializer_10).
|
|
3071
|
-
return this.
|
|
3101
|
+
protoOf($serializer_10).ri = function (encoder, value) {
|
|
3102
|
+
return this.v1h(encoder, value instanceof InstructionsTemplateElement ? value : THROW_CCE());
|
|
3072
3103
|
};
|
|
3073
|
-
protoOf($serializer_10).
|
|
3074
|
-
var tmp0_desc = this.
|
|
3104
|
+
protoOf($serializer_10).si = function (decoder) {
|
|
3105
|
+
var tmp0_desc = this.u1h_1;
|
|
3075
3106
|
var tmp1_flag = true;
|
|
3076
3107
|
var tmp2_index = 0;
|
|
3077
3108
|
var tmp3_bitMask0 = 0;
|
|
3078
3109
|
var tmp4_local0 = null;
|
|
3079
3110
|
var tmp5_local1 = null;
|
|
3080
3111
|
var tmp6_local2 = null;
|
|
3081
|
-
var tmp7_input = decoder.
|
|
3082
|
-
var tmp8_cached = Companion_getInstance_8().
|
|
3083
|
-
if (tmp7_input.
|
|
3084
|
-
tmp4_local0 = tmp7_input.
|
|
3112
|
+
var tmp7_input = decoder.nl(tmp0_desc);
|
|
3113
|
+
var tmp8_cached = Companion_getInstance_8().t1h_1;
|
|
3114
|
+
if (tmp7_input.dm()) {
|
|
3115
|
+
tmp4_local0 = tmp7_input.xl(tmp0_desc, 0);
|
|
3085
3116
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
3086
|
-
tmp5_local1 = tmp7_input.
|
|
3117
|
+
tmp5_local1 = tmp7_input.bm(tmp0_desc, 1, tmp8_cached[1].t1(), tmp5_local1);
|
|
3087
3118
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
3088
|
-
tmp6_local2 = tmp7_input.
|
|
3119
|
+
tmp6_local2 = tmp7_input.bm(tmp0_desc, 2, DoubleSerializer_getInstance(), tmp6_local2);
|
|
3089
3120
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
3090
3121
|
} else
|
|
3091
3122
|
while (tmp1_flag) {
|
|
3092
|
-
tmp2_index = tmp7_input.
|
|
3123
|
+
tmp2_index = tmp7_input.em(tmp0_desc);
|
|
3093
3124
|
switch (tmp2_index) {
|
|
3094
3125
|
case -1:
|
|
3095
3126
|
tmp1_flag = false;
|
|
3096
3127
|
break;
|
|
3097
3128
|
case 0:
|
|
3098
|
-
tmp4_local0 = tmp7_input.
|
|
3129
|
+
tmp4_local0 = tmp7_input.xl(tmp0_desc, 0);
|
|
3099
3130
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
3100
3131
|
break;
|
|
3101
3132
|
case 1:
|
|
3102
|
-
tmp5_local1 = tmp7_input.
|
|
3133
|
+
tmp5_local1 = tmp7_input.bm(tmp0_desc, 1, tmp8_cached[1].t1(), tmp5_local1);
|
|
3103
3134
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
3104
3135
|
break;
|
|
3105
3136
|
case 2:
|
|
3106
|
-
tmp6_local2 = tmp7_input.
|
|
3137
|
+
tmp6_local2 = tmp7_input.bm(tmp0_desc, 2, DoubleSerializer_getInstance(), tmp6_local2);
|
|
3107
3138
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
3108
3139
|
break;
|
|
3109
3140
|
default:
|
|
3110
3141
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
3111
3142
|
}
|
|
3112
3143
|
}
|
|
3113
|
-
tmp7_input.
|
|
3144
|
+
tmp7_input.ol(tmp0_desc);
|
|
3114
3145
|
return InstructionsTemplateElement_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
3115
3146
|
};
|
|
3116
|
-
protoOf($serializer_10).
|
|
3117
|
-
return this.
|
|
3147
|
+
protoOf($serializer_10).qi = function () {
|
|
3148
|
+
return this.u1h_1;
|
|
3118
3149
|
};
|
|
3119
|
-
protoOf($serializer_10).
|
|
3120
|
-
var tmp0_cached = Companion_getInstance_8().
|
|
3150
|
+
protoOf($serializer_10).ys = function () {
|
|
3151
|
+
var tmp0_cached = Companion_getInstance_8().t1h_1;
|
|
3121
3152
|
// Inline function 'kotlin.arrayOf' call
|
|
3122
3153
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3123
3154
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3124
|
-
return [StringSerializer_getInstance(), get_nullable(tmp0_cached[1].
|
|
3155
|
+
return [StringSerializer_getInstance(), get_nullable(tmp0_cached[1].t1()), get_nullable(DoubleSerializer_getInstance())];
|
|
3125
3156
|
};
|
|
3126
3157
|
var $serializer_instance_10;
|
|
3127
3158
|
function $serializer_getInstance_10() {
|
|
@@ -3131,17 +3162,17 @@
|
|
|
3131
3162
|
}
|
|
3132
3163
|
function InstructionsTemplateElement_init_$Init$(seen0, descriptionTemplate, images, stepNumber, serializationConstructorMarker, $this) {
|
|
3133
3164
|
if (!(1 === (1 & seen0))) {
|
|
3134
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_10().
|
|
3165
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_10().u1h_1);
|
|
3135
3166
|
}
|
|
3136
|
-
$this.
|
|
3167
|
+
$this.q1e_1 = descriptionTemplate;
|
|
3137
3168
|
if (0 === (seen0 & 2))
|
|
3138
|
-
$this.
|
|
3169
|
+
$this.r1e_1 = null;
|
|
3139
3170
|
else
|
|
3140
|
-
$this.
|
|
3171
|
+
$this.r1e_1 = images;
|
|
3141
3172
|
if (0 === (seen0 & 4))
|
|
3142
|
-
$this.
|
|
3173
|
+
$this.s1e_1 = null;
|
|
3143
3174
|
else
|
|
3144
|
-
$this.
|
|
3175
|
+
$this.s1e_1 = stepNumber;
|
|
3145
3176
|
return $this;
|
|
3146
3177
|
}
|
|
3147
3178
|
function InstructionsTemplateElement_init_$Create$(seen0, descriptionTemplate, images, stepNumber, serializationConstructorMarker) {
|
|
@@ -3150,12 +3181,12 @@
|
|
|
3150
3181
|
function InstructionsTemplateElement() {
|
|
3151
3182
|
}
|
|
3152
3183
|
protoOf(InstructionsTemplateElement).toString = function () {
|
|
3153
|
-
return 'InstructionsTemplateElement(descriptionTemplate=' + this.
|
|
3184
|
+
return 'InstructionsTemplateElement(descriptionTemplate=' + this.q1e_1 + ', images=' + toString(this.r1e_1) + ', stepNumber=' + this.s1e_1 + ')';
|
|
3154
3185
|
};
|
|
3155
3186
|
protoOf(InstructionsTemplateElement).hashCode = function () {
|
|
3156
|
-
var result = getStringHashCode(this.
|
|
3157
|
-
result = imul(result, 31) + (this.
|
|
3158
|
-
result = imul(result, 31) + (this.
|
|
3187
|
+
var result = getStringHashCode(this.q1e_1);
|
|
3188
|
+
result = imul(result, 31) + (this.r1e_1 == null ? 0 : hashCode(this.r1e_1)) | 0;
|
|
3189
|
+
result = imul(result, 31) + (this.s1e_1 == null ? 0 : getNumberHashCode(this.s1e_1)) | 0;
|
|
3159
3190
|
return result;
|
|
3160
3191
|
};
|
|
3161
3192
|
protoOf(InstructionsTemplateElement).equals = function (other) {
|
|
@@ -3163,11 +3194,11 @@
|
|
|
3163
3194
|
return true;
|
|
3164
3195
|
if (!(other instanceof InstructionsTemplateElement))
|
|
3165
3196
|
return false;
|
|
3166
|
-
if (!(this.
|
|
3197
|
+
if (!(this.q1e_1 === other.q1e_1))
|
|
3167
3198
|
return false;
|
|
3168
|
-
if (!equals(this.
|
|
3199
|
+
if (!equals(this.r1e_1, other.r1e_1))
|
|
3169
3200
|
return false;
|
|
3170
|
-
if (!equals(this.
|
|
3201
|
+
if (!equals(this.s1e_1, other.s1e_1))
|
|
3171
3202
|
return false;
|
|
3172
3203
|
return true;
|
|
3173
3204
|
};
|
|
@@ -3183,51 +3214,51 @@
|
|
|
3183
3214
|
var parts = ArrayList_init_$Create$_0();
|
|
3184
3215
|
var lastEnd = 0;
|
|
3185
3216
|
// Inline function 'kotlin.sequences.forEach' call
|
|
3186
|
-
var _iterator__ex2g4s = pattern.
|
|
3217
|
+
var _iterator__ex2g4s = pattern.va(template).h();
|
|
3187
3218
|
while (_iterator__ex2g4s.i()) {
|
|
3188
3219
|
var element = _iterator__ex2g4s.j();
|
|
3189
|
-
if (element.
|
|
3190
|
-
var textPart = substring(template, lastEnd, element.
|
|
3191
|
-
// Inline function 'kotlin.text.
|
|
3192
|
-
if (
|
|
3220
|
+
if (element.jb().p_1 > lastEnd) {
|
|
3221
|
+
var textPart = substring(template, lastEnd, element.jb().p_1);
|
|
3222
|
+
// Inline function 'kotlin.text.isNotEmpty' call
|
|
3223
|
+
if (charSequenceLength(textPart) > 0) {
|
|
3193
3224
|
parts.f(new TemplateConst(textPart));
|
|
3194
3225
|
}
|
|
3195
3226
|
}
|
|
3196
3227
|
try {
|
|
3197
|
-
var jsonObj = get_jsonObject(Default_getInstance().
|
|
3198
|
-
if (jsonObj.
|
|
3228
|
+
var jsonObj = get_jsonObject(Default_getInstance().b12(element.t1()));
|
|
3229
|
+
if (jsonObj.x1().l1('min')) {
|
|
3199
3230
|
// Inline function 'kotlinx.serialization.json.decodeFromJsonElement' call
|
|
3200
3231
|
var this_0 = get_tolerantJson();
|
|
3201
3232
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3202
|
-
var this_1 = this_0.
|
|
3233
|
+
var this_1 = this_0.cm();
|
|
3203
3234
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
3204
3235
|
var this_2 = serializer(this_1, createKType(getKClass(QuantityPlaceholder), arrayOf([]), false));
|
|
3205
3236
|
var tmp$ret$3 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
3206
3237
|
// Inline function 'kotlin.let' call
|
|
3207
|
-
var it = this_0.
|
|
3238
|
+
var it = this_0.a12(tmp$ret$3, jsonObj);
|
|
3208
3239
|
parts.f(it);
|
|
3209
3240
|
} else {
|
|
3210
3241
|
// Inline function 'kotlinx.serialization.json.decodeFromJsonElement' call
|
|
3211
3242
|
var this_3 = get_tolerantJson();
|
|
3212
3243
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3213
|
-
var this_4 = this_3.
|
|
3244
|
+
var this_4 = this_3.cm();
|
|
3214
3245
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
3215
3246
|
var this_5 = serializer(this_4, createKType(getKClass(OvenTemperaturePlaceholder), arrayOf([]), false));
|
|
3216
3247
|
var tmp$ret$8 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
3217
3248
|
// Inline function 'kotlin.let' call
|
|
3218
|
-
var it_0 = this_3.
|
|
3249
|
+
var it_0 = this_3.a12(tmp$ret$8, jsonObj);
|
|
3219
3250
|
parts.f(it_0);
|
|
3220
3251
|
}
|
|
3221
3252
|
} catch ($p) {
|
|
3222
3253
|
if ($p instanceof Exception) {
|
|
3223
3254
|
var e = $p;
|
|
3224
|
-
print('Failed to parse JSON: ' + element.
|
|
3225
|
-
parts.f(new TemplateConst(element.
|
|
3255
|
+
print('Failed to parse JSON: ' + element.t1() + ', error: ' + e.message);
|
|
3256
|
+
parts.f(new TemplateConst(element.t1()));
|
|
3226
3257
|
} else {
|
|
3227
3258
|
throw $p;
|
|
3228
3259
|
}
|
|
3229
3260
|
}
|
|
3230
|
-
lastEnd = element.
|
|
3261
|
+
lastEnd = element.jb().q_1 + 1 | 0;
|
|
3231
3262
|
}
|
|
3232
3263
|
if (lastEnd < template.length) {
|
|
3233
3264
|
var remaining = substring_0(template, lastEnd);
|
|
@@ -3240,7 +3271,7 @@
|
|
|
3240
3271
|
}
|
|
3241
3272
|
function tolerantJson$lambda($this$Json) {
|
|
3242
3273
|
_init_properties_Parser_kt__o3jwn5();
|
|
3243
|
-
$this$Json.
|
|
3274
|
+
$this$Json.t12_1 = true;
|
|
3244
3275
|
return Unit_instance;
|
|
3245
3276
|
}
|
|
3246
3277
|
var properties_initialized_Parser_kt_5uifb3;
|
|
@@ -3250,41 +3281,77 @@
|
|
|
3250
3281
|
tolerantJson = Json(VOID, tolerantJson$lambda);
|
|
3251
3282
|
}
|
|
3252
3283
|
}
|
|
3284
|
+
function TemplateElement() {
|
|
3285
|
+
}
|
|
3286
|
+
function TemplateConst(value) {
|
|
3287
|
+
this.value = value;
|
|
3288
|
+
}
|
|
3289
|
+
protoOf(TemplateConst).t1 = function () {
|
|
3290
|
+
return this.value;
|
|
3291
|
+
};
|
|
3292
|
+
protoOf(TemplateConst).cd = function () {
|
|
3293
|
+
return this.value;
|
|
3294
|
+
};
|
|
3295
|
+
protoOf(TemplateConst).w1h = function (value) {
|
|
3296
|
+
return new TemplateConst(value);
|
|
3297
|
+
};
|
|
3298
|
+
protoOf(TemplateConst).copy = function (value, $super) {
|
|
3299
|
+
value = value === VOID ? this.value : value;
|
|
3300
|
+
return $super === VOID ? this.w1h(value) : $super.w1h.call(this, value);
|
|
3301
|
+
};
|
|
3302
|
+
protoOf(TemplateConst).toString = function () {
|
|
3303
|
+
return 'TemplateConst(value=' + this.value + ')';
|
|
3304
|
+
};
|
|
3305
|
+
protoOf(TemplateConst).hashCode = function () {
|
|
3306
|
+
return getStringHashCode(this.value);
|
|
3307
|
+
};
|
|
3308
|
+
protoOf(TemplateConst).equals = function (other) {
|
|
3309
|
+
if (this === other)
|
|
3310
|
+
return true;
|
|
3311
|
+
if (!(other instanceof TemplateConst))
|
|
3312
|
+
return false;
|
|
3313
|
+
if (!(this.value === other.value))
|
|
3314
|
+
return false;
|
|
3315
|
+
return true;
|
|
3316
|
+
};
|
|
3253
3317
|
function Companion_9() {
|
|
3254
3318
|
}
|
|
3319
|
+
protoOf(Companion_9).n14 = function () {
|
|
3320
|
+
return $serializer_getInstance_11();
|
|
3321
|
+
};
|
|
3255
3322
|
var Companion_instance_9;
|
|
3256
3323
|
function Companion_getInstance_9() {
|
|
3257
3324
|
return Companion_instance_9;
|
|
3258
3325
|
}
|
|
3259
3326
|
function $serializer_11() {
|
|
3260
3327
|
$serializer_instance_11 = this;
|
|
3261
|
-
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.template.
|
|
3262
|
-
tmp0_serialDesc.
|
|
3263
|
-
tmp0_serialDesc.
|
|
3264
|
-
tmp0_serialDesc.
|
|
3265
|
-
tmp0_serialDesc.
|
|
3266
|
-
this.
|
|
3328
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.template.QuantityPlaceholder', this, 4);
|
|
3329
|
+
tmp0_serialDesc.ws('min', false);
|
|
3330
|
+
tmp0_serialDesc.ws('max', true);
|
|
3331
|
+
tmp0_serialDesc.ws('unit', true);
|
|
3332
|
+
tmp0_serialDesc.ws('scale', true);
|
|
3333
|
+
this.x1h_1 = tmp0_serialDesc;
|
|
3267
3334
|
}
|
|
3268
|
-
protoOf($serializer_11).
|
|
3269
|
-
var tmp0_desc = this.
|
|
3270
|
-
var tmp1_output = encoder.
|
|
3271
|
-
tmp1_output.
|
|
3272
|
-
if (tmp1_output.
|
|
3273
|
-
tmp1_output.
|
|
3335
|
+
protoOf($serializer_11).y1h = function (encoder, value) {
|
|
3336
|
+
var tmp0_desc = this.x1h_1;
|
|
3337
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
3338
|
+
tmp1_output.ym(tmp0_desc, 0, value.min);
|
|
3339
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.max == null)) {
|
|
3340
|
+
tmp1_output.fn(tmp0_desc, 1, FloatSerializer_getInstance(), value.max);
|
|
3274
3341
|
}
|
|
3275
|
-
if (tmp1_output.
|
|
3276
|
-
tmp1_output.
|
|
3342
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.unit == null)) {
|
|
3343
|
+
tmp1_output.fn(tmp0_desc, 2, StringSerializer_getInstance(), value.unit);
|
|
3277
3344
|
}
|
|
3278
|
-
if (tmp1_output.
|
|
3279
|
-
tmp1_output.
|
|
3345
|
+
if (tmp1_output.jn(tmp0_desc, 3) ? true : !(value.scale === false)) {
|
|
3346
|
+
tmp1_output.tm(tmp0_desc, 3, value.scale);
|
|
3280
3347
|
}
|
|
3281
|
-
tmp1_output.
|
|
3348
|
+
tmp1_output.ol(tmp0_desc);
|
|
3282
3349
|
};
|
|
3283
|
-
protoOf($serializer_11).
|
|
3284
|
-
return this.
|
|
3350
|
+
protoOf($serializer_11).ri = function (encoder, value) {
|
|
3351
|
+
return this.y1h(encoder, value instanceof QuantityPlaceholder ? value : THROW_CCE());
|
|
3285
3352
|
};
|
|
3286
|
-
protoOf($serializer_11).
|
|
3287
|
-
var tmp0_desc = this.
|
|
3353
|
+
protoOf($serializer_11).si = function (decoder) {
|
|
3354
|
+
var tmp0_desc = this.x1h_1;
|
|
3288
3355
|
var tmp1_flag = true;
|
|
3289
3356
|
var tmp2_index = 0;
|
|
3290
3357
|
var tmp3_bitMask0 = 0;
|
|
@@ -3292,50 +3359,50 @@
|
|
|
3292
3359
|
var tmp5_local1 = null;
|
|
3293
3360
|
var tmp6_local2 = null;
|
|
3294
3361
|
var tmp7_local3 = false;
|
|
3295
|
-
var tmp8_input = decoder.
|
|
3296
|
-
if (tmp8_input.
|
|
3297
|
-
tmp4_local0 = tmp8_input.
|
|
3362
|
+
var tmp8_input = decoder.nl(tmp0_desc);
|
|
3363
|
+
if (tmp8_input.dm()) {
|
|
3364
|
+
tmp4_local0 = tmp8_input.ul(tmp0_desc, 0);
|
|
3298
3365
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
3299
|
-
tmp5_local1 = tmp8_input.
|
|
3366
|
+
tmp5_local1 = tmp8_input.bm(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1);
|
|
3300
3367
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
3301
|
-
tmp6_local2 = tmp8_input.
|
|
3368
|
+
tmp6_local2 = tmp8_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
3302
3369
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
3303
|
-
tmp7_local3 = tmp8_input.
|
|
3370
|
+
tmp7_local3 = tmp8_input.pl(tmp0_desc, 3);
|
|
3304
3371
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
3305
3372
|
} else
|
|
3306
3373
|
while (tmp1_flag) {
|
|
3307
|
-
tmp2_index = tmp8_input.
|
|
3374
|
+
tmp2_index = tmp8_input.em(tmp0_desc);
|
|
3308
3375
|
switch (tmp2_index) {
|
|
3309
3376
|
case -1:
|
|
3310
3377
|
tmp1_flag = false;
|
|
3311
3378
|
break;
|
|
3312
3379
|
case 0:
|
|
3313
|
-
tmp4_local0 = tmp8_input.
|
|
3380
|
+
tmp4_local0 = tmp8_input.ul(tmp0_desc, 0);
|
|
3314
3381
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
3315
3382
|
break;
|
|
3316
3383
|
case 1:
|
|
3317
|
-
tmp5_local1 = tmp8_input.
|
|
3384
|
+
tmp5_local1 = tmp8_input.bm(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1);
|
|
3318
3385
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
3319
3386
|
break;
|
|
3320
3387
|
case 2:
|
|
3321
|
-
tmp6_local2 = tmp8_input.
|
|
3388
|
+
tmp6_local2 = tmp8_input.bm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
3322
3389
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
3323
3390
|
break;
|
|
3324
3391
|
case 3:
|
|
3325
|
-
tmp7_local3 = tmp8_input.
|
|
3392
|
+
tmp7_local3 = tmp8_input.pl(tmp0_desc, 3);
|
|
3326
3393
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
3327
3394
|
break;
|
|
3328
3395
|
default:
|
|
3329
3396
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
3330
3397
|
}
|
|
3331
3398
|
}
|
|
3332
|
-
tmp8_input.
|
|
3399
|
+
tmp8_input.ol(tmp0_desc);
|
|
3333
3400
|
return QuantityPlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
3334
3401
|
};
|
|
3335
|
-
protoOf($serializer_11).
|
|
3336
|
-
return this.
|
|
3402
|
+
protoOf($serializer_11).qi = function () {
|
|
3403
|
+
return this.x1h_1;
|
|
3337
3404
|
};
|
|
3338
|
-
protoOf($serializer_11).
|
|
3405
|
+
protoOf($serializer_11).ys = function () {
|
|
3339
3406
|
// Inline function 'kotlin.arrayOf' call
|
|
3340
3407
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3341
3408
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3349,116 +3416,189 @@
|
|
|
3349
3416
|
}
|
|
3350
3417
|
function QuantityPlaceholder_init_$Init$(seen0, min, max, unit, scale, serializationConstructorMarker, $this) {
|
|
3351
3418
|
if (!(1 === (1 & seen0))) {
|
|
3352
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_11().
|
|
3419
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_11().x1h_1);
|
|
3353
3420
|
}
|
|
3354
|
-
$this.
|
|
3421
|
+
$this.min = min;
|
|
3355
3422
|
if (0 === (seen0 & 2))
|
|
3356
|
-
$this.
|
|
3423
|
+
$this.max = null;
|
|
3357
3424
|
else
|
|
3358
|
-
$this.
|
|
3425
|
+
$this.max = max;
|
|
3359
3426
|
if (0 === (seen0 & 4))
|
|
3360
|
-
$this.
|
|
3427
|
+
$this.unit = null;
|
|
3361
3428
|
else
|
|
3362
|
-
$this.
|
|
3429
|
+
$this.unit = unit;
|
|
3363
3430
|
if (0 === (seen0 & 8))
|
|
3364
|
-
$this.
|
|
3431
|
+
$this.scale = false;
|
|
3365
3432
|
else
|
|
3366
|
-
$this.
|
|
3433
|
+
$this.scale = scale;
|
|
3367
3434
|
return $this;
|
|
3368
3435
|
}
|
|
3369
3436
|
function QuantityPlaceholder_init_$Create$(seen0, min, max, unit, scale, serializationConstructorMarker) {
|
|
3370
3437
|
return QuantityPlaceholder_init_$Init$(seen0, min, max, unit, scale, serializationConstructorMarker, objectCreate(protoOf(QuantityPlaceholder)));
|
|
3371
3438
|
}
|
|
3439
|
+
function QuantityPlaceholder(min, max, unit, scale) {
|
|
3440
|
+
max = max === VOID ? null : max;
|
|
3441
|
+
unit = unit === VOID ? null : unit;
|
|
3442
|
+
scale = scale === VOID ? false : scale;
|
|
3443
|
+
this.min = min;
|
|
3444
|
+
this.max = max;
|
|
3445
|
+
this.unit = unit;
|
|
3446
|
+
this.scale = scale;
|
|
3447
|
+
}
|
|
3448
|
+
protoOf(QuantityPlaceholder).z1h = function () {
|
|
3449
|
+
return this.min;
|
|
3450
|
+
};
|
|
3451
|
+
protoOf(QuantityPlaceholder).a1i = function () {
|
|
3452
|
+
return this.max;
|
|
3453
|
+
};
|
|
3454
|
+
protoOf(QuantityPlaceholder).b1i = function () {
|
|
3455
|
+
return this.unit;
|
|
3456
|
+
};
|
|
3457
|
+
protoOf(QuantityPlaceholder).c1i = function () {
|
|
3458
|
+
return this.scale;
|
|
3459
|
+
};
|
|
3460
|
+
protoOf(QuantityPlaceholder).cd = function () {
|
|
3461
|
+
return this.min;
|
|
3462
|
+
};
|
|
3463
|
+
protoOf(QuantityPlaceholder).dd = function () {
|
|
3464
|
+
return this.max;
|
|
3465
|
+
};
|
|
3466
|
+
protoOf(QuantityPlaceholder).d1i = function () {
|
|
3467
|
+
return this.unit;
|
|
3468
|
+
};
|
|
3469
|
+
protoOf(QuantityPlaceholder).e1i = function () {
|
|
3470
|
+
return this.scale;
|
|
3471
|
+
};
|
|
3472
|
+
protoOf(QuantityPlaceholder).f1i = function (min, max, unit, scale) {
|
|
3473
|
+
return new QuantityPlaceholder(min, max, unit, scale);
|
|
3474
|
+
};
|
|
3475
|
+
protoOf(QuantityPlaceholder).copy = function (min, max, unit, scale, $super) {
|
|
3476
|
+
min = min === VOID ? this.min : min;
|
|
3477
|
+
max = max === VOID ? this.max : max;
|
|
3478
|
+
unit = unit === VOID ? this.unit : unit;
|
|
3479
|
+
scale = scale === VOID ? this.scale : scale;
|
|
3480
|
+
return $super === VOID ? this.f1i(min, max, unit, scale) : $super.f1i.call(this, min, max, unit, scale);
|
|
3481
|
+
};
|
|
3482
|
+
protoOf(QuantityPlaceholder).toString = function () {
|
|
3483
|
+
return 'QuantityPlaceholder(min=' + this.min + ', max=' + this.max + ', unit=' + this.unit + ', scale=' + this.scale + ')';
|
|
3484
|
+
};
|
|
3485
|
+
protoOf(QuantityPlaceholder).hashCode = function () {
|
|
3486
|
+
var result = getNumberHashCode(this.min);
|
|
3487
|
+
result = imul(result, 31) + (this.max == null ? 0 : getNumberHashCode(this.max)) | 0;
|
|
3488
|
+
result = imul(result, 31) + (this.unit == null ? 0 : getStringHashCode(this.unit)) | 0;
|
|
3489
|
+
result = imul(result, 31) + getBooleanHashCode(this.scale) | 0;
|
|
3490
|
+
return result;
|
|
3491
|
+
};
|
|
3492
|
+
protoOf(QuantityPlaceholder).equals = function (other) {
|
|
3493
|
+
if (this === other)
|
|
3494
|
+
return true;
|
|
3495
|
+
if (!(other instanceof QuantityPlaceholder))
|
|
3496
|
+
return false;
|
|
3497
|
+
if (!equals(this.min, other.min))
|
|
3498
|
+
return false;
|
|
3499
|
+
if (!equals(this.max, other.max))
|
|
3500
|
+
return false;
|
|
3501
|
+
if (!(this.unit == other.unit))
|
|
3502
|
+
return false;
|
|
3503
|
+
if (!(this.scale === other.scale))
|
|
3504
|
+
return false;
|
|
3505
|
+
return true;
|
|
3506
|
+
};
|
|
3372
3507
|
function Companion_10() {
|
|
3373
3508
|
}
|
|
3509
|
+
protoOf(Companion_10).n14 = function () {
|
|
3510
|
+
return $serializer_getInstance_12();
|
|
3511
|
+
};
|
|
3374
3512
|
var Companion_instance_10;
|
|
3375
3513
|
function Companion_getInstance_10() {
|
|
3376
3514
|
return Companion_instance_10;
|
|
3377
3515
|
}
|
|
3378
3516
|
function $serializer_12() {
|
|
3379
3517
|
$serializer_instance_12 = this;
|
|
3380
|
-
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.template.
|
|
3381
|
-
tmp0_serialDesc.
|
|
3382
|
-
tmp0_serialDesc.
|
|
3383
|
-
tmp0_serialDesc.
|
|
3384
|
-
tmp0_serialDesc.
|
|
3385
|
-
this.
|
|
3518
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.template.OvenTemperaturePlaceholder', this, 4);
|
|
3519
|
+
tmp0_serialDesc.ws('temperatureC', true);
|
|
3520
|
+
tmp0_serialDesc.ws('temperatureFanC', true);
|
|
3521
|
+
tmp0_serialDesc.ws('temperatureF', true);
|
|
3522
|
+
tmp0_serialDesc.ws('gasMark', true);
|
|
3523
|
+
this.g1i_1 = tmp0_serialDesc;
|
|
3386
3524
|
}
|
|
3387
|
-
protoOf($serializer_12).
|
|
3388
|
-
var tmp0_desc = this.
|
|
3389
|
-
var tmp1_output = encoder.
|
|
3390
|
-
tmp1_output.
|
|
3391
|
-
|
|
3392
|
-
|
|
3525
|
+
protoOf($serializer_12).h1i = function (encoder, value) {
|
|
3526
|
+
var tmp0_desc = this.g1i_1;
|
|
3527
|
+
var tmp1_output = encoder.nl(tmp0_desc);
|
|
3528
|
+
if (tmp1_output.jn(tmp0_desc, 0) ? true : !(value.temperatureC == null)) {
|
|
3529
|
+
tmp1_output.fn(tmp0_desc, 0, IntSerializer_getInstance(), value.temperatureC);
|
|
3530
|
+
}
|
|
3531
|
+
if (tmp1_output.jn(tmp0_desc, 1) ? true : !(value.temperatureFanC == null)) {
|
|
3532
|
+
tmp1_output.fn(tmp0_desc, 1, IntSerializer_getInstance(), value.temperatureFanC);
|
|
3393
3533
|
}
|
|
3394
|
-
if (tmp1_output.
|
|
3395
|
-
tmp1_output.
|
|
3534
|
+
if (tmp1_output.jn(tmp0_desc, 2) ? true : !(value.temperatureF == null)) {
|
|
3535
|
+
tmp1_output.fn(tmp0_desc, 2, IntSerializer_getInstance(), value.temperatureF);
|
|
3396
3536
|
}
|
|
3397
|
-
if (tmp1_output.
|
|
3398
|
-
tmp1_output.
|
|
3537
|
+
if (tmp1_output.jn(tmp0_desc, 3) ? true : !(value.gasMark == null)) {
|
|
3538
|
+
tmp1_output.fn(tmp0_desc, 3, FloatSerializer_getInstance(), value.gasMark);
|
|
3399
3539
|
}
|
|
3400
|
-
tmp1_output.
|
|
3540
|
+
tmp1_output.ol(tmp0_desc);
|
|
3401
3541
|
};
|
|
3402
|
-
protoOf($serializer_12).
|
|
3403
|
-
return this.
|
|
3542
|
+
protoOf($serializer_12).ri = function (encoder, value) {
|
|
3543
|
+
return this.h1i(encoder, value instanceof OvenTemperaturePlaceholder ? value : THROW_CCE());
|
|
3404
3544
|
};
|
|
3405
|
-
protoOf($serializer_12).
|
|
3406
|
-
var tmp0_desc = this.
|
|
3545
|
+
protoOf($serializer_12).si = function (decoder) {
|
|
3546
|
+
var tmp0_desc = this.g1i_1;
|
|
3407
3547
|
var tmp1_flag = true;
|
|
3408
3548
|
var tmp2_index = 0;
|
|
3409
3549
|
var tmp3_bitMask0 = 0;
|
|
3410
|
-
var tmp4_local0 =
|
|
3550
|
+
var tmp4_local0 = null;
|
|
3411
3551
|
var tmp5_local1 = null;
|
|
3412
3552
|
var tmp6_local2 = null;
|
|
3413
3553
|
var tmp7_local3 = null;
|
|
3414
|
-
var tmp8_input = decoder.
|
|
3415
|
-
if (tmp8_input.
|
|
3416
|
-
tmp4_local0 = tmp8_input.
|
|
3554
|
+
var tmp8_input = decoder.nl(tmp0_desc);
|
|
3555
|
+
if (tmp8_input.dm()) {
|
|
3556
|
+
tmp4_local0 = tmp8_input.bm(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
3417
3557
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
3418
|
-
tmp5_local1 = tmp8_input.
|
|
3558
|
+
tmp5_local1 = tmp8_input.bm(tmp0_desc, 1, IntSerializer_getInstance(), tmp5_local1);
|
|
3419
3559
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
3420
|
-
tmp6_local2 = tmp8_input.
|
|
3560
|
+
tmp6_local2 = tmp8_input.bm(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
3421
3561
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
3422
|
-
tmp7_local3 = tmp8_input.
|
|
3562
|
+
tmp7_local3 = tmp8_input.bm(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3);
|
|
3423
3563
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
3424
3564
|
} else
|
|
3425
3565
|
while (tmp1_flag) {
|
|
3426
|
-
tmp2_index = tmp8_input.
|
|
3566
|
+
tmp2_index = tmp8_input.em(tmp0_desc);
|
|
3427
3567
|
switch (tmp2_index) {
|
|
3428
3568
|
case -1:
|
|
3429
3569
|
tmp1_flag = false;
|
|
3430
3570
|
break;
|
|
3431
3571
|
case 0:
|
|
3432
|
-
tmp4_local0 = tmp8_input.
|
|
3572
|
+
tmp4_local0 = tmp8_input.bm(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
3433
3573
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
3434
3574
|
break;
|
|
3435
3575
|
case 1:
|
|
3436
|
-
tmp5_local1 = tmp8_input.
|
|
3576
|
+
tmp5_local1 = tmp8_input.bm(tmp0_desc, 1, IntSerializer_getInstance(), tmp5_local1);
|
|
3437
3577
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
3438
3578
|
break;
|
|
3439
3579
|
case 2:
|
|
3440
|
-
tmp6_local2 = tmp8_input.
|
|
3580
|
+
tmp6_local2 = tmp8_input.bm(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
3441
3581
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
3442
3582
|
break;
|
|
3443
3583
|
case 3:
|
|
3444
|
-
tmp7_local3 = tmp8_input.
|
|
3584
|
+
tmp7_local3 = tmp8_input.bm(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3);
|
|
3445
3585
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
3446
3586
|
break;
|
|
3447
3587
|
default:
|
|
3448
3588
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
3449
3589
|
}
|
|
3450
3590
|
}
|
|
3451
|
-
tmp8_input.
|
|
3591
|
+
tmp8_input.ol(tmp0_desc);
|
|
3452
3592
|
return OvenTemperaturePlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
3453
3593
|
};
|
|
3454
|
-
protoOf($serializer_12).
|
|
3455
|
-
return this.
|
|
3594
|
+
protoOf($serializer_12).qi = function () {
|
|
3595
|
+
return this.g1i_1;
|
|
3456
3596
|
};
|
|
3457
|
-
protoOf($serializer_12).
|
|
3597
|
+
protoOf($serializer_12).ys = function () {
|
|
3458
3598
|
// Inline function 'kotlin.arrayOf' call
|
|
3459
3599
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3460
3600
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3461
|
-
return [IntSerializer_getInstance(), get_nullable(IntSerializer_getInstance()), get_nullable(IntSerializer_getInstance()), get_nullable(FloatSerializer_getInstance())];
|
|
3601
|
+
return [get_nullable(IntSerializer_getInstance()), get_nullable(IntSerializer_getInstance()), get_nullable(IntSerializer_getInstance()), get_nullable(FloatSerializer_getInstance())];
|
|
3462
3602
|
};
|
|
3463
3603
|
var $serializer_instance_12;
|
|
3464
3604
|
function $serializer_getInstance_12() {
|
|
@@ -3467,96 +3607,82 @@
|
|
|
3467
3607
|
return $serializer_instance_12;
|
|
3468
3608
|
}
|
|
3469
3609
|
function OvenTemperaturePlaceholder_init_$Init$(seen0, temperatureC, temperatureFanC, temperatureF, gasMark, serializationConstructorMarker, $this) {
|
|
3470
|
-
if (!(
|
|
3471
|
-
throwMissingFieldException(seen0,
|
|
3610
|
+
if (!(0 === (0 & seen0))) {
|
|
3611
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_12().g1i_1);
|
|
3472
3612
|
}
|
|
3473
|
-
|
|
3613
|
+
if (0 === (seen0 & 1))
|
|
3614
|
+
$this.temperatureC = null;
|
|
3615
|
+
else
|
|
3616
|
+
$this.temperatureC = temperatureC;
|
|
3474
3617
|
if (0 === (seen0 & 2))
|
|
3475
|
-
$this.
|
|
3618
|
+
$this.temperatureFanC = null;
|
|
3476
3619
|
else
|
|
3477
|
-
$this.
|
|
3620
|
+
$this.temperatureFanC = temperatureFanC;
|
|
3478
3621
|
if (0 === (seen0 & 4))
|
|
3479
|
-
$this.
|
|
3622
|
+
$this.temperatureF = null;
|
|
3480
3623
|
else
|
|
3481
|
-
$this.
|
|
3624
|
+
$this.temperatureF = temperatureF;
|
|
3482
3625
|
if (0 === (seen0 & 8))
|
|
3483
|
-
$this.
|
|
3626
|
+
$this.gasMark = null;
|
|
3484
3627
|
else
|
|
3485
|
-
$this.
|
|
3628
|
+
$this.gasMark = gasMark;
|
|
3486
3629
|
return $this;
|
|
3487
3630
|
}
|
|
3488
3631
|
function OvenTemperaturePlaceholder_init_$Create$(seen0, temperatureC, temperatureFanC, temperatureF, gasMark, serializationConstructorMarker) {
|
|
3489
3632
|
return OvenTemperaturePlaceholder_init_$Init$(seen0, temperatureC, temperatureFanC, temperatureF, gasMark, serializationConstructorMarker, objectCreate(protoOf(OvenTemperaturePlaceholder)));
|
|
3490
3633
|
}
|
|
3491
|
-
function
|
|
3492
|
-
|
|
3634
|
+
function OvenTemperaturePlaceholder(temperatureC, temperatureFanC, temperatureF, gasMark) {
|
|
3635
|
+
temperatureC = temperatureC === VOID ? null : temperatureC;
|
|
3636
|
+
temperatureFanC = temperatureFanC === VOID ? null : temperatureFanC;
|
|
3637
|
+
temperatureF = temperatureF === VOID ? null : temperatureF;
|
|
3638
|
+
gasMark = gasMark === VOID ? null : gasMark;
|
|
3639
|
+
this.temperatureC = temperatureC;
|
|
3640
|
+
this.temperatureFanC = temperatureFanC;
|
|
3641
|
+
this.temperatureF = temperatureF;
|
|
3642
|
+
this.gasMark = gasMark;
|
|
3493
3643
|
}
|
|
3494
|
-
protoOf(
|
|
3495
|
-
return
|
|
3644
|
+
protoOf(OvenTemperaturePlaceholder).i1i = function () {
|
|
3645
|
+
return this.temperatureC;
|
|
3496
3646
|
};
|
|
3497
|
-
protoOf(
|
|
3498
|
-
return
|
|
3647
|
+
protoOf(OvenTemperaturePlaceholder).j1i = function () {
|
|
3648
|
+
return this.temperatureFanC;
|
|
3499
3649
|
};
|
|
3500
|
-
protoOf(
|
|
3501
|
-
|
|
3502
|
-
return true;
|
|
3503
|
-
if (!(other instanceof TemplateConst))
|
|
3504
|
-
return false;
|
|
3505
|
-
if (!(this.l1c_1 === other.l1c_1))
|
|
3506
|
-
return false;
|
|
3507
|
-
return true;
|
|
3650
|
+
protoOf(OvenTemperaturePlaceholder).k1i = function () {
|
|
3651
|
+
return this.temperatureF;
|
|
3508
3652
|
};
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
unit = unit === VOID ? null : unit;
|
|
3512
|
-
scale = scale === VOID ? false : scale;
|
|
3513
|
-
this.h1c_1 = min;
|
|
3514
|
-
this.i1c_1 = max;
|
|
3515
|
-
this.j1c_1 = unit;
|
|
3516
|
-
this.k1c_1 = scale;
|
|
3517
|
-
}
|
|
3518
|
-
protoOf(QuantityPlaceholder).toString = function () {
|
|
3519
|
-
return 'QuantityPlaceholder(min=' + this.h1c_1 + ', max=' + this.i1c_1 + ', unit=' + this.j1c_1 + ', scale=' + this.k1c_1 + ')';
|
|
3653
|
+
protoOf(OvenTemperaturePlaceholder).l1i = function () {
|
|
3654
|
+
return this.gasMark;
|
|
3520
3655
|
};
|
|
3521
|
-
protoOf(
|
|
3522
|
-
|
|
3523
|
-
result = imul(result, 31) + (this.i1c_1 == null ? 0 : getNumberHashCode(this.i1c_1)) | 0;
|
|
3524
|
-
result = imul(result, 31) + (this.j1c_1 == null ? 0 : getStringHashCode(this.j1c_1)) | 0;
|
|
3525
|
-
result = imul(result, 31) + getBooleanHashCode(this.k1c_1) | 0;
|
|
3526
|
-
return result;
|
|
3656
|
+
protoOf(OvenTemperaturePlaceholder).cd = function () {
|
|
3657
|
+
return this.temperatureC;
|
|
3527
3658
|
};
|
|
3528
|
-
protoOf(
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3659
|
+
protoOf(OvenTemperaturePlaceholder).dd = function () {
|
|
3660
|
+
return this.temperatureFanC;
|
|
3661
|
+
};
|
|
3662
|
+
protoOf(OvenTemperaturePlaceholder).d1i = function () {
|
|
3663
|
+
return this.temperatureF;
|
|
3664
|
+
};
|
|
3665
|
+
protoOf(OvenTemperaturePlaceholder).e1i = function () {
|
|
3666
|
+
return this.gasMark;
|
|
3667
|
+
};
|
|
3668
|
+
protoOf(OvenTemperaturePlaceholder).m1i = function (temperatureC, temperatureFanC, temperatureF, gasMark) {
|
|
3669
|
+
return new OvenTemperaturePlaceholder(temperatureC, temperatureFanC, temperatureF, gasMark);
|
|
3670
|
+
};
|
|
3671
|
+
protoOf(OvenTemperaturePlaceholder).copy = function (temperatureC, temperatureFanC, temperatureF, gasMark, $super) {
|
|
3672
|
+
temperatureC = temperatureC === VOID ? this.temperatureC : temperatureC;
|
|
3673
|
+
temperatureFanC = temperatureFanC === VOID ? this.temperatureFanC : temperatureFanC;
|
|
3674
|
+
temperatureF = temperatureF === VOID ? this.temperatureF : temperatureF;
|
|
3675
|
+
gasMark = gasMark === VOID ? this.gasMark : gasMark;
|
|
3676
|
+
return $super === VOID ? this.m1i(temperatureC, temperatureFanC, temperatureF, gasMark) : $super.m1i.call(this, temperatureC, temperatureFanC, temperatureF, gasMark);
|
|
3542
3677
|
};
|
|
3543
|
-
function OvenTemperaturePlaceholder(temperatureC, temperatureFanC, temperatureF, gasMark) {
|
|
3544
|
-
temperatureFanC = temperatureFanC === VOID ? null : temperatureFanC;
|
|
3545
|
-
temperatureF = temperatureF === VOID ? null : temperatureF;
|
|
3546
|
-
gasMark = gasMark === VOID ? null : gasMark;
|
|
3547
|
-
this.d1c_1 = temperatureC;
|
|
3548
|
-
this.e1c_1 = temperatureFanC;
|
|
3549
|
-
this.f1c_1 = temperatureF;
|
|
3550
|
-
this.g1c_1 = gasMark;
|
|
3551
|
-
}
|
|
3552
3678
|
protoOf(OvenTemperaturePlaceholder).toString = function () {
|
|
3553
|
-
return 'OvenTemperaturePlaceholder(temperatureC=' + this.
|
|
3679
|
+
return 'OvenTemperaturePlaceholder(temperatureC=' + this.temperatureC + ', temperatureFanC=' + this.temperatureFanC + ', temperatureF=' + this.temperatureF + ', gasMark=' + this.gasMark + ')';
|
|
3554
3680
|
};
|
|
3555
3681
|
protoOf(OvenTemperaturePlaceholder).hashCode = function () {
|
|
3556
|
-
var result = this.
|
|
3557
|
-
result = imul(result, 31) + (this.
|
|
3558
|
-
result = imul(result, 31) + (this.
|
|
3559
|
-
result = imul(result, 31) + (this.
|
|
3682
|
+
var result = this.temperatureC == null ? 0 : this.temperatureC;
|
|
3683
|
+
result = imul(result, 31) + (this.temperatureFanC == null ? 0 : this.temperatureFanC) | 0;
|
|
3684
|
+
result = imul(result, 31) + (this.temperatureF == null ? 0 : this.temperatureF) | 0;
|
|
3685
|
+
result = imul(result, 31) + (this.gasMark == null ? 0 : getNumberHashCode(this.gasMark)) | 0;
|
|
3560
3686
|
return result;
|
|
3561
3687
|
};
|
|
3562
3688
|
protoOf(OvenTemperaturePlaceholder).equals = function (other) {
|
|
@@ -3564,31 +3690,31 @@
|
|
|
3564
3690
|
return true;
|
|
3565
3691
|
if (!(other instanceof OvenTemperaturePlaceholder))
|
|
3566
3692
|
return false;
|
|
3567
|
-
if (!(this.
|
|
3693
|
+
if (!(this.temperatureC == other.temperatureC))
|
|
3568
3694
|
return false;
|
|
3569
|
-
if (!(this.
|
|
3695
|
+
if (!(this.temperatureFanC == other.temperatureFanC))
|
|
3570
3696
|
return false;
|
|
3571
|
-
if (!(this.
|
|
3697
|
+
if (!(this.temperatureF == other.temperatureF))
|
|
3572
3698
|
return false;
|
|
3573
|
-
if (!equals(this.
|
|
3699
|
+
if (!equals(this.gasMark, other.gasMark))
|
|
3574
3700
|
return false;
|
|
3575
3701
|
return true;
|
|
3576
3702
|
};
|
|
3577
3703
|
function ParsedTemplate(elements) {
|
|
3578
|
-
this.
|
|
3704
|
+
this.g1d_1 = elements;
|
|
3579
3705
|
}
|
|
3580
3706
|
protoOf(ParsedTemplate).toString = function () {
|
|
3581
|
-
return 'ParsedTemplate(elements=' + toString_0(this.
|
|
3707
|
+
return 'ParsedTemplate(elements=' + toString_0(this.g1d_1) + ')';
|
|
3582
3708
|
};
|
|
3583
3709
|
protoOf(ParsedTemplate).hashCode = function () {
|
|
3584
|
-
return hashCode(this.
|
|
3710
|
+
return hashCode(this.g1d_1);
|
|
3585
3711
|
};
|
|
3586
3712
|
protoOf(ParsedTemplate).equals = function (other) {
|
|
3587
3713
|
if (this === other)
|
|
3588
3714
|
return true;
|
|
3589
3715
|
if (!(other instanceof ParsedTemplate))
|
|
3590
3716
|
return false;
|
|
3591
|
-
if (!equals(this.
|
|
3717
|
+
if (!equals(this.g1d_1, other.g1d_1))
|
|
3592
3718
|
return false;
|
|
3593
3719
|
return true;
|
|
3594
3720
|
};
|
|
@@ -3597,16 +3723,16 @@
|
|
|
3597
3723
|
return tolerantJson_0;
|
|
3598
3724
|
}
|
|
3599
3725
|
var tolerantJson_0;
|
|
3600
|
-
function
|
|
3726
|
+
function scaleRecipe(recipe, factor, unit) {
|
|
3601
3727
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
3602
3728
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
3603
3729
|
var this_0 = get_tolerantJson_0();
|
|
3604
3730
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3605
|
-
var this_1 = this_0.
|
|
3731
|
+
var this_1 = this_0.cm();
|
|
3606
3732
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
3607
3733
|
var this_2 = serializer(this_1, createKType(getKClass(RecipeV3), arrayOf([]), false));
|
|
3608
3734
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
3609
|
-
var parsedRecipe = this_0.
|
|
3735
|
+
var parsedRecipe = this_0.z11(tmp$ret$1, recipe);
|
|
3610
3736
|
var tmp;
|
|
3611
3737
|
switch (unit) {
|
|
3612
3738
|
case 'Imperial':
|
|
@@ -3619,19 +3745,29 @@
|
|
|
3619
3745
|
throw IllegalArgumentException_init_$Create$('Unknown unit: ' + unit);
|
|
3620
3746
|
}
|
|
3621
3747
|
var ingredientUnit = tmp;
|
|
3622
|
-
var scaledRecipe =
|
|
3748
|
+
var scaledRecipe = scaleAndConvertUnitRecipe(parsedRecipe, factor, ingredientUnit);
|
|
3623
3749
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
3624
3750
|
var this_3 = Default_getInstance();
|
|
3625
3751
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3626
|
-
var this_4 = this_3.
|
|
3752
|
+
var this_4 = this_3.cm();
|
|
3627
3753
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
3628
3754
|
var this_5 = serializer(this_4, createKType(getKClass(RecipeV2), arrayOf([]), false));
|
|
3629
3755
|
var tmp$ret$4 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
3630
|
-
return this_3.
|
|
3756
|
+
return this_3.y11(tmp$ret$4, scaledRecipe);
|
|
3757
|
+
}
|
|
3758
|
+
function parseTemplate_0(templateString) {
|
|
3759
|
+
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
3760
|
+
var parsedTemplate = parseTemplate(templateString);
|
|
3761
|
+
return parsedTemplate.g1d_1;
|
|
3762
|
+
}
|
|
3763
|
+
function renderTemplate_0(templateElements) {
|
|
3764
|
+
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
3765
|
+
var template = new ParsedTemplate(templateElements);
|
|
3766
|
+
return renderTemplate(template, 1.0);
|
|
3631
3767
|
}
|
|
3632
3768
|
function tolerantJson$lambda_0($this$Json) {
|
|
3633
3769
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
3634
|
-
$this$Json.
|
|
3770
|
+
$this$Json.t12_1 = true;
|
|
3635
3771
|
return Unit_instance;
|
|
3636
3772
|
}
|
|
3637
3773
|
var properties_initialized_ScaleRecipeJsContract_kt_yki7mr;
|
|
@@ -3642,20 +3778,20 @@
|
|
|
3642
3778
|
}
|
|
3643
3779
|
}
|
|
3644
3780
|
//region block: post-declaration
|
|
3645
|
-
protoOf($serializer).
|
|
3646
|
-
protoOf($serializer_0).
|
|
3647
|
-
protoOf($serializer_1).
|
|
3648
|
-
protoOf($serializer_2).
|
|
3649
|
-
protoOf($serializer_3).
|
|
3650
|
-
protoOf($serializer_4).
|
|
3651
|
-
protoOf($serializer_5).
|
|
3652
|
-
protoOf($serializer_6).
|
|
3653
|
-
protoOf($serializer_7).
|
|
3654
|
-
protoOf($serializer_8).
|
|
3655
|
-
protoOf($serializer_9).
|
|
3656
|
-
protoOf($serializer_10).
|
|
3657
|
-
protoOf($serializer_11).
|
|
3658
|
-
protoOf($serializer_12).
|
|
3781
|
+
protoOf($serializer).zs = typeParametersSerializers;
|
|
3782
|
+
protoOf($serializer_0).zs = typeParametersSerializers;
|
|
3783
|
+
protoOf($serializer_1).zs = typeParametersSerializers;
|
|
3784
|
+
protoOf($serializer_2).zs = typeParametersSerializers;
|
|
3785
|
+
protoOf($serializer_3).zs = typeParametersSerializers;
|
|
3786
|
+
protoOf($serializer_4).zs = typeParametersSerializers;
|
|
3787
|
+
protoOf($serializer_5).zs = typeParametersSerializers;
|
|
3788
|
+
protoOf($serializer_6).zs = typeParametersSerializers;
|
|
3789
|
+
protoOf($serializer_7).zs = typeParametersSerializers;
|
|
3790
|
+
protoOf($serializer_8).zs = typeParametersSerializers;
|
|
3791
|
+
protoOf($serializer_9).zs = typeParametersSerializers;
|
|
3792
|
+
protoOf($serializer_10).zs = typeParametersSerializers;
|
|
3793
|
+
protoOf($serializer_11).zs = typeParametersSerializers;
|
|
3794
|
+
protoOf($serializer_12).zs = typeParametersSerializers;
|
|
3659
3795
|
//endregion
|
|
3660
3796
|
//region block: init
|
|
3661
3797
|
Imperial_instance = new Imperial();
|
|
@@ -3669,13 +3805,25 @@
|
|
|
3669
3805
|
//endregion
|
|
3670
3806
|
//region block: exports
|
|
3671
3807
|
function $jsExportAll$(_) {
|
|
3808
|
+
var $com = _.com || (_.com = {});
|
|
3809
|
+
var $com$gu = $com.gu || ($com.gu = {});
|
|
3810
|
+
var $com$gu$recipe = $com$gu.recipe || ($com$gu.recipe = {});
|
|
3811
|
+
var $com$gu$recipe$template = $com$gu$recipe.template || ($com$gu$recipe.template = {});
|
|
3812
|
+
$com$gu$recipe$template.TemplateConst = TemplateConst;
|
|
3813
|
+
$com$gu$recipe$template.QuantityPlaceholder = QuantityPlaceholder;
|
|
3814
|
+
defineProp($com$gu$recipe$template.QuantityPlaceholder, 'Companion', Companion_getInstance_9, VOID, true);
|
|
3815
|
+
$com$gu$recipe$template.OvenTemperaturePlaceholder = OvenTemperaturePlaceholder;
|
|
3816
|
+
defineProp($com$gu$recipe$template.OvenTemperaturePlaceholder, 'Companion', Companion_getInstance_10, VOID, true);
|
|
3672
3817
|
var $com = _.com || (_.com = {});
|
|
3673
3818
|
var $com$gu = $com.gu || ($com.gu = {});
|
|
3674
3819
|
var $com$gu$recipe = $com$gu.recipe || ($com$gu.recipe = {});
|
|
3675
3820
|
var $com$gu$recipe$js = $com$gu$recipe.js || ($com$gu$recipe.js = {});
|
|
3676
|
-
$com$gu$recipe$js.scaleRecipe =
|
|
3821
|
+
$com$gu$recipe$js.scaleRecipe = scaleRecipe;
|
|
3822
|
+
$com$gu$recipe$js.parseTemplate = parseTemplate_0;
|
|
3823
|
+
$com$gu$recipe$js.renderTemplate = renderTemplate_0;
|
|
3677
3824
|
}
|
|
3678
3825
|
$jsExportAll$(_);
|
|
3826
|
+
kotlin_kotlin.$jsExportAll$(_);
|
|
3679
3827
|
//endregion
|
|
3680
3828
|
return _;
|
|
3681
3829
|
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js')));
|