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