@guardian/feast-multiplatform-library 6.0.1 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/feast-multiplatform-library-library.d.ts +4 -2
- package/kotlin/feast-multiplatform-library-library.js +1160 -1076
- package/kotlin/feast-multiplatform-library-library.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +666 -600
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1687 -1687
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1357 -1357
- package/package.json +1 -1
|
@@ -4,33 +4,36 @@
|
|
|
4
4
|
var imul = Math.imul;
|
|
5
5
|
var VOID = kotlin_kotlin.$_$.b;
|
|
6
6
|
var protoOf = kotlin_kotlin.$_$.s7;
|
|
7
|
-
var toString = kotlin_kotlin.$_$.
|
|
7
|
+
var toString = kotlin_kotlin.$_$.ra;
|
|
8
8
|
var getNumberHashCode = kotlin_kotlin.$_$.s6;
|
|
9
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.r6;
|
|
9
10
|
var equals = kotlin_kotlin.$_$.q6;
|
|
10
11
|
var initMetadataForClass = kotlin_kotlin.$_$.w6;
|
|
12
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
11
13
|
var numberToInt = kotlin_kotlin.$_$.q7;
|
|
12
14
|
var Unit_instance = kotlin_kotlin.$_$.k3;
|
|
13
15
|
var round = kotlin_kotlin.$_$.v7;
|
|
16
|
+
var replace = kotlin_kotlin.$_$.q8;
|
|
14
17
|
var initMetadataForObject = kotlin_kotlin.$_$.b7;
|
|
15
18
|
var listOfNotNull = kotlin_kotlin.$_$.y4;
|
|
16
19
|
var joinToString = kotlin_kotlin.$_$.t4;
|
|
17
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
20
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.pa;
|
|
18
21
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.a4;
|
|
19
22
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.d;
|
|
20
23
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.b1;
|
|
21
24
|
var charArrayOf = kotlin_kotlin.$_$.j6;
|
|
22
25
|
var indexOfAny = kotlin_kotlin.$_$.k8;
|
|
23
|
-
var substring = kotlin_kotlin.$_$.
|
|
24
|
-
var substring_0 = kotlin_kotlin.$_$.
|
|
26
|
+
var substring = kotlin_kotlin.$_$.w8;
|
|
27
|
+
var substring_0 = kotlin_kotlin.$_$.v8;
|
|
25
28
|
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o;
|
|
26
29
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o1;
|
|
27
30
|
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
|
|
28
31
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.c;
|
|
29
|
-
var lazy = kotlin_kotlin.$_$.
|
|
32
|
+
var lazy = kotlin_kotlin.$_$.na;
|
|
30
33
|
var initMetadataForCompanion = kotlin_kotlin.$_$.x6;
|
|
31
34
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u1;
|
|
32
35
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k;
|
|
33
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
36
|
+
var THROW_CCE = kotlin_kotlin.$_$.v9;
|
|
34
37
|
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b;
|
|
35
38
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q1;
|
|
36
39
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r1;
|
|
@@ -38,35 +41,32 @@
|
|
|
38
41
|
var objectCreate = kotlin_kotlin.$_$.r7;
|
|
39
42
|
var getStringHashCode = kotlin_kotlin.$_$.u6;
|
|
40
43
|
var hashCode = kotlin_kotlin.$_$.v6;
|
|
41
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.r6;
|
|
42
44
|
var DoubleSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l;
|
|
43
45
|
var toString_0 = kotlin_kotlin.$_$.u7;
|
|
44
|
-
var Regex_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
45
46
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.e;
|
|
46
47
|
var charSequenceLength = kotlin_kotlin.$_$.n6;
|
|
47
48
|
var Default_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
48
49
|
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c;
|
|
49
50
|
var getKClass = kotlin_kotlin.$_$.e8;
|
|
50
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
51
|
+
var arrayOf = kotlin_kotlin.$_$.ga;
|
|
51
52
|
var createKType = kotlin_kotlin.$_$.c8;
|
|
52
53
|
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j2;
|
|
53
54
|
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c2;
|
|
54
55
|
var isInterface = kotlin_kotlin.$_$.j7;
|
|
55
56
|
var print = kotlin_kotlin.$_$.q5;
|
|
56
|
-
var Exception = kotlin_kotlin.$_$.
|
|
57
|
+
var Exception = kotlin_kotlin.$_$.q9;
|
|
57
58
|
var isBlank = kotlin_kotlin.$_$.n8;
|
|
58
59
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
59
60
|
var initMetadataForInterface = kotlin_kotlin.$_$.z6;
|
|
60
61
|
var FloatSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m;
|
|
61
62
|
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n;
|
|
62
63
|
var defineProp = kotlin_kotlin.$_$.p6;
|
|
63
|
-
var Enum = kotlin_kotlin.$_$.
|
|
64
|
+
var Enum = kotlin_kotlin.$_$.p9;
|
|
64
65
|
var listOf = kotlin_kotlin.$_$.z4;
|
|
65
66
|
var mapCapacity = kotlin_kotlin.$_$.a5;
|
|
66
67
|
var coerceAtLeast = kotlin_kotlin.$_$.x7;
|
|
67
68
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
68
69
|
var plus = kotlin_kotlin.$_$.c5;
|
|
69
|
-
var Pair = kotlin_kotlin.$_$.s9;
|
|
70
70
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
71
71
|
//endregion
|
|
72
72
|
//region block: pre-declaration
|
|
@@ -112,29 +112,33 @@
|
|
|
112
112
|
initMetadataForObject(Units, 'Units');
|
|
113
113
|
initMetadataForObject(UnitConversion, 'UnitConversion');
|
|
114
114
|
//endregion
|
|
115
|
-
function Amount(min, max, unit) {
|
|
115
|
+
function Amount(min, max, unit, usCust) {
|
|
116
116
|
max = max === VOID ? null : max;
|
|
117
117
|
unit = unit === VOID ? null : unit;
|
|
118
|
-
|
|
119
|
-
this.
|
|
120
|
-
this.
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
118
|
+
usCust = usCust === VOID ? null : usCust;
|
|
119
|
+
this.m1d_1 = min;
|
|
120
|
+
this.n1d_1 = max;
|
|
121
|
+
this.o1d_1 = unit;
|
|
122
|
+
this.p1d_1 = usCust;
|
|
123
|
+
}
|
|
124
|
+
protoOf(Amount).q1d = function (min, max, unit, usCust) {
|
|
125
|
+
return new Amount(min, max, unit, usCust);
|
|
126
|
+
};
|
|
127
|
+
protoOf(Amount).r1d = function (min, max, unit, usCust, $super) {
|
|
128
|
+
min = min === VOID ? this.m1d_1 : min;
|
|
129
|
+
max = max === VOID ? this.n1d_1 : max;
|
|
130
|
+
unit = unit === VOID ? this.o1d_1 : unit;
|
|
131
|
+
usCust = usCust === VOID ? this.p1d_1 : usCust;
|
|
132
|
+
return $super === VOID ? this.q1d(min, max, unit, usCust) : $super.q1d.call(this, min, max, unit, usCust);
|
|
130
133
|
};
|
|
131
134
|
protoOf(Amount).toString = function () {
|
|
132
|
-
return 'Amount(min=' + this.
|
|
135
|
+
return 'Amount(min=' + this.m1d_1 + ', max=' + this.n1d_1 + ', unit=' + toString(this.o1d_1) + ', usCust=' + this.p1d_1 + ')';
|
|
133
136
|
};
|
|
134
137
|
protoOf(Amount).hashCode = function () {
|
|
135
|
-
var result = getNumberHashCode(this.
|
|
136
|
-
result = imul(result, 31) + (this.
|
|
137
|
-
result = imul(result, 31) + (this.
|
|
138
|
+
var result = getNumberHashCode(this.m1d_1);
|
|
139
|
+
result = imul(result, 31) + (this.n1d_1 == null ? 0 : getNumberHashCode(this.n1d_1)) | 0;
|
|
140
|
+
result = imul(result, 31) + (this.o1d_1 == null ? 0 : this.o1d_1.hashCode()) | 0;
|
|
141
|
+
result = imul(result, 31) + (this.p1d_1 == null ? 0 : getBooleanHashCode(this.p1d_1)) | 0;
|
|
138
142
|
return result;
|
|
139
143
|
};
|
|
140
144
|
protoOf(Amount).equals = function (other) {
|
|
@@ -142,56 +146,63 @@
|
|
|
142
146
|
return true;
|
|
143
147
|
if (!(other instanceof Amount))
|
|
144
148
|
return false;
|
|
145
|
-
if (!equals(this.
|
|
149
|
+
if (!equals(this.m1d_1, other.m1d_1))
|
|
150
|
+
return false;
|
|
151
|
+
if (!equals(this.n1d_1, other.n1d_1))
|
|
146
152
|
return false;
|
|
147
|
-
if (!equals(this.
|
|
153
|
+
if (!equals(this.o1d_1, other.o1d_1))
|
|
148
154
|
return false;
|
|
149
|
-
if (!
|
|
155
|
+
if (!(this.p1d_1 == other.p1d_1))
|
|
150
156
|
return false;
|
|
151
157
|
return true;
|
|
152
158
|
};
|
|
159
|
+
function FormatUtils$applySmartPunctuation$lambda(matchResult) {
|
|
160
|
+
return '\u201C' + matchResult.ub().l(2) + '\u201D';
|
|
161
|
+
}
|
|
153
162
|
function FormatUtils() {
|
|
163
|
+
FormatUtils_instance = this;
|
|
164
|
+
this.s1d_1 = Regex_init_$Create$('(["])(.*?)(["])');
|
|
154
165
|
}
|
|
155
|
-
protoOf(FormatUtils).
|
|
166
|
+
protoOf(FormatUtils).t1d = function (number) {
|
|
167
|
+
if (number === 0.0)
|
|
168
|
+
return '0';
|
|
156
169
|
var integerPart = numberToInt(number);
|
|
170
|
+
var integerPartStr = integerPart > 0 ? integerPart.toString() : '';
|
|
157
171
|
var fractionalPart = number - integerPart;
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
172
|
+
return (0.0 <= fractionalPart ? fractionalPart <= 0.0625 : false) ? integerPartStr : (0.0625 <= fractionalPart ? fractionalPart <= 0.1875 : false) ? integerPartStr + '\u215B' : (0.1875 <= fractionalPart ? fractionalPart <= 0.291667 : false) ? integerPartStr + '\xBC' : (0.291667 <= fractionalPart ? fractionalPart <= 0.354167 : false) ? integerPartStr + '\u2153' : (0.354167 <= fractionalPart ? fractionalPart <= 0.4375 : false) ? integerPartStr + '\u215C' : (0.4375 <= fractionalPart ? fractionalPart <= 0.5625 : false) ? integerPartStr + '\xBD' : (0.5625 <= fractionalPart ? fractionalPart <= 0.645833 : false) ? integerPartStr + '\u215D' : (0.645833 <= fractionalPart ? fractionalPart <= 0.708333 : false) ? integerPartStr + '\u2154' : (0.708333 <= fractionalPart ? fractionalPart <= 0.8125 : false) ? integerPartStr + '\xBE' : (0.8125 <= fractionalPart ? fractionalPart <= 0.9375 : false) ? integerPartStr + '\u215E' : '' + (integerPart + 1 | 0);
|
|
173
|
+
};
|
|
174
|
+
protoOf(FormatUtils).u1d = function (number, decimals, fraction) {
|
|
175
|
+
if (fraction) {
|
|
176
|
+
return this.t1d(number);
|
|
177
|
+
} else {
|
|
178
|
+
var multiplier = 1.0;
|
|
179
|
+
// Inline function 'kotlin.repeat' call
|
|
180
|
+
var inductionVariable = 0;
|
|
181
|
+
if (inductionVariable < decimals)
|
|
182
|
+
do {
|
|
183
|
+
var index = inductionVariable;
|
|
184
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
185
|
+
multiplier = multiplier * 10;
|
|
186
|
+
}
|
|
187
|
+
while (inductionVariable < decimals);
|
|
188
|
+
var roundedNumber = round(number * multiplier) / multiplier;
|
|
189
|
+
var tmp;
|
|
190
|
+
if (roundedNumber % 1.0 === 0.0) {
|
|
191
|
+
tmp = numberToInt(roundedNumber).toString();
|
|
164
192
|
} else {
|
|
165
|
-
|
|
193
|
+
tmp = roundedNumber.toString();
|
|
166
194
|
}
|
|
167
|
-
tmp
|
|
168
|
-
} else {
|
|
169
|
-
tmp = number.toString();
|
|
195
|
+
return tmp;
|
|
170
196
|
}
|
|
171
|
-
return tmp;
|
|
172
197
|
};
|
|
173
|
-
protoOf(FormatUtils).
|
|
174
|
-
var
|
|
175
|
-
|
|
176
|
-
var inductionVariable = 0;
|
|
177
|
-
if (inductionVariable < decimals)
|
|
178
|
-
do {
|
|
179
|
-
var index = inductionVariable;
|
|
180
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
181
|
-
multiplier = multiplier * 10;
|
|
182
|
-
}
|
|
183
|
-
while (inductionVariable < decimals);
|
|
184
|
-
var roundedNumber = round(number * multiplier) / multiplier;
|
|
185
|
-
if (roundedNumber % 1.0 === 0.0) {
|
|
186
|
-
return numberToInt(roundedNumber).toString();
|
|
187
|
-
}
|
|
188
|
-
if (fraction) {
|
|
189
|
-
return this.l1d(roundedNumber);
|
|
190
|
-
}
|
|
191
|
-
return roundedNumber.toString();
|
|
198
|
+
protoOf(FormatUtils).v1d = function (text) {
|
|
199
|
+
var withQuotes = this.s1d_1.za(text, FormatUtils$applySmartPunctuation$lambda);
|
|
200
|
+
return replace(replace(withQuotes, "'", '\u2019'), ' - ', ' \u2013 ');
|
|
192
201
|
};
|
|
193
202
|
var FormatUtils_instance;
|
|
194
203
|
function FormatUtils_getInstance() {
|
|
204
|
+
if (FormatUtils_instance == null)
|
|
205
|
+
new FormatUtils();
|
|
195
206
|
return FormatUtils_instance;
|
|
196
207
|
}
|
|
197
208
|
function renderOvenTemperature(element) {
|
|
@@ -232,7 +243,7 @@
|
|
|
232
243
|
tmp_5 = null;
|
|
233
244
|
} else {
|
|
234
245
|
// Inline function 'kotlin.let' call
|
|
235
|
-
tmp_5 = '/gas mark ' +
|
|
246
|
+
tmp_5 = '/gas mark ' + FormatUtils_getInstance().t1d(tmp3_safe_receiver);
|
|
236
247
|
}
|
|
237
248
|
return joinToString(listOfNotNull([tmp_2, fanTempC, tmp_4, tmp_5]), '');
|
|
238
249
|
}
|
|
@@ -240,8 +251,8 @@
|
|
|
240
251
|
if (!shouldScale) {
|
|
241
252
|
return amount;
|
|
242
253
|
}
|
|
243
|
-
var tmp = amount.
|
|
244
|
-
var tmp0_safe_receiver = amount.
|
|
254
|
+
var tmp = amount.m1d_1 * factor;
|
|
255
|
+
var tmp0_safe_receiver = amount.n1d_1;
|
|
245
256
|
var tmp_0;
|
|
246
257
|
if (tmp0_safe_receiver == null) {
|
|
247
258
|
tmp_0 = null;
|
|
@@ -249,7 +260,7 @@
|
|
|
249
260
|
// Inline function 'kotlin.let' call
|
|
250
261
|
tmp_0 = tmp0_safe_receiver * factor;
|
|
251
262
|
}
|
|
252
|
-
return amount.
|
|
263
|
+
return amount.r1d(tmp, tmp_0);
|
|
253
264
|
}
|
|
254
265
|
function renderQuantity(element, factor, measuringSystem) {
|
|
255
266
|
var tmp = !(element.min === element.max) ? element.max : null;
|
|
@@ -259,40 +270,40 @@
|
|
|
259
270
|
tmp_0 = null;
|
|
260
271
|
} else {
|
|
261
272
|
// Inline function 'kotlin.let' call
|
|
262
|
-
tmp_0 = Units_getInstance().
|
|
273
|
+
tmp_0 = Units_getInstance().m1e(tmp0_safe_receiver);
|
|
263
274
|
}
|
|
264
|
-
var amount = new Amount(element.min, tmp, tmp_0);
|
|
275
|
+
var amount = new Amount(element.min, tmp, tmp_0, element.usCust);
|
|
265
276
|
amount = scaleAmount(amount, factor, element.scale);
|
|
266
|
-
amount = UnitConversion_instance.
|
|
267
|
-
var tmp1_subject = amount.
|
|
268
|
-
var decimals = equals(tmp1_subject, Units_getInstance().
|
|
269
|
-
var tmp2_subject = amount.
|
|
270
|
-
var fraction = equals(tmp2_subject, Units_getInstance().
|
|
277
|
+
amount = UnitConversion_instance.q1e(amount, measuringSystem);
|
|
278
|
+
var tmp1_subject = amount.o1d_1;
|
|
279
|
+
var decimals = equals(tmp1_subject, Units_getInstance().w1d_1) || (equals(tmp1_subject, Units_getInstance().a1e_1) || equals(tmp1_subject, Units_getInstance().g1e_1)) ? 0 : equals(tmp1_subject, Units_getInstance().h1e_1) || equals(tmp1_subject, Units_getInstance().i1e_1) ? 1 : 2;
|
|
280
|
+
var tmp2_subject = amount.o1d_1;
|
|
281
|
+
var fraction = equals(tmp2_subject, Units_getInstance().e1e_1) || (equals(tmp2_subject, Units_getInstance().f1e_1) || equals(tmp2_subject, Units_getInstance().d1e_1)) ? true : tmp2_subject == null ? true : false;
|
|
271
282
|
var tmp_1;
|
|
272
|
-
if (!(amount.
|
|
283
|
+
if (!(amount.o1d_1 == null)) {
|
|
273
284
|
var tmp_2;
|
|
274
|
-
var tmp0 = amount.
|
|
275
|
-
var tmp3_elvis_lhs = amount.
|
|
285
|
+
var tmp0 = amount.m1d_1;
|
|
286
|
+
var tmp3_elvis_lhs = amount.n1d_1;
|
|
276
287
|
// Inline function 'kotlin.math.max' call
|
|
277
|
-
var b = tmp3_elvis_lhs == null ? amount.
|
|
288
|
+
var b = tmp3_elvis_lhs == null ? amount.m1d_1 : tmp3_elvis_lhs;
|
|
278
289
|
if (Math.max(tmp0, b) > 1) {
|
|
279
|
-
tmp_2 = ' ' + amount.
|
|
290
|
+
tmp_2 = ' ' + amount.o1d_1.u1e_1;
|
|
280
291
|
} else {
|
|
281
|
-
tmp_2 = ' ' + amount.
|
|
292
|
+
tmp_2 = ' ' + amount.o1d_1.t1e_1;
|
|
282
293
|
}
|
|
283
294
|
tmp_1 = tmp_2;
|
|
284
295
|
} else {
|
|
285
296
|
tmp_1 = '';
|
|
286
297
|
}
|
|
287
298
|
var unitString = tmp_1;
|
|
288
|
-
var tmp_3 =
|
|
289
|
-
var tmp4_safe_receiver = amount.
|
|
299
|
+
var tmp_3 = FormatUtils_getInstance().u1d(amount.m1d_1, decimals, fraction);
|
|
300
|
+
var tmp4_safe_receiver = amount.n1d_1;
|
|
290
301
|
var tmp_4;
|
|
291
302
|
if (tmp4_safe_receiver == null) {
|
|
292
303
|
tmp_4 = null;
|
|
293
304
|
} else {
|
|
294
305
|
// Inline function 'kotlin.let' call
|
|
295
|
-
tmp_4 = '-' +
|
|
306
|
+
tmp_4 = '-' + FormatUtils_getInstance().u1d(tmp4_safe_receiver, decimals, fraction);
|
|
296
307
|
}
|
|
297
308
|
return joinToString(listOfNotNull([tmp_3, tmp_4, unitString]), '');
|
|
298
309
|
}
|
|
@@ -315,7 +326,7 @@
|
|
|
315
326
|
}
|
|
316
327
|
function renderTemplate(template, factor, measuringSystem) {
|
|
317
328
|
// Inline function 'kotlin.collections.map' call
|
|
318
|
-
var this_0 = template.
|
|
329
|
+
var this_0 = template.x1e_1;
|
|
319
330
|
// Inline function 'kotlin.collections.mapTo' call
|
|
320
331
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
321
332
|
var _iterator__ex2g4s = this_0.h();
|
|
@@ -325,7 +336,7 @@
|
|
|
325
336
|
destination.f(tmp$ret$0);
|
|
326
337
|
}
|
|
327
338
|
var renderedParts = destination;
|
|
328
|
-
return joinToString(renderedParts, '');
|
|
339
|
+
return FormatUtils_getInstance().v1d(joinToString(renderedParts, ''));
|
|
329
340
|
}
|
|
330
341
|
function wrapWithStrongTag(value) {
|
|
331
342
|
// Inline function 'kotlin.charArrayOf' call
|
|
@@ -340,7 +351,7 @@
|
|
|
340
351
|
}
|
|
341
352
|
}
|
|
342
353
|
function scaleAndConvertUnitRecipe(recipe, factor, measuringSystem) {
|
|
343
|
-
var tmp0_safe_receiver = recipe.
|
|
354
|
+
var tmp0_safe_receiver = recipe.k1f_1;
|
|
344
355
|
var tmp;
|
|
345
356
|
if (tmp0_safe_receiver == null) {
|
|
346
357
|
tmp = null;
|
|
@@ -351,7 +362,7 @@
|
|
|
351
362
|
var _iterator__ex2g4s = tmp0_safe_receiver.h();
|
|
352
363
|
while (_iterator__ex2g4s.i()) {
|
|
353
364
|
var item = _iterator__ex2g4s.j();
|
|
354
|
-
var tmp0_safe_receiver_0 = item.
|
|
365
|
+
var tmp0_safe_receiver_0 = item.v1f_1;
|
|
355
366
|
var tmp_0;
|
|
356
367
|
if (tmp0_safe_receiver_0 == null) {
|
|
357
368
|
tmp_0 = null;
|
|
@@ -362,7 +373,7 @@
|
|
|
362
373
|
var _iterator__ex2g4s_0 = tmp0_safe_receiver_0.h();
|
|
363
374
|
while (_iterator__ex2g4s_0.i()) {
|
|
364
375
|
var item_0 = _iterator__ex2g4s_0.j();
|
|
365
|
-
var tmp0_safe_receiver_1 = item_0.
|
|
376
|
+
var tmp0_safe_receiver_1 = item_0.d1g_1;
|
|
366
377
|
var tmp_1;
|
|
367
378
|
if (tmp0_safe_receiver_1 == null) {
|
|
368
379
|
tmp_1 = null;
|
|
@@ -371,19 +382,19 @@
|
|
|
371
382
|
tmp_1 = wrapWithStrongTag(renderTemplate(parseTemplate(tmp0_safe_receiver_1), factor, measuringSystem));
|
|
372
383
|
}
|
|
373
384
|
var tmp1_elvis_lhs = tmp_1;
|
|
374
|
-
var scaledText = tmp1_elvis_lhs == null ? item_0.
|
|
375
|
-
var tmp$ret$2 = item_0.
|
|
385
|
+
var scaledText = tmp1_elvis_lhs == null ? item_0.e1g_1 : tmp1_elvis_lhs;
|
|
386
|
+
var tmp$ret$2 = item_0.g1g(VOID, VOID, VOID, VOID, VOID, VOID, VOID, scaledText);
|
|
376
387
|
destination_0.f(tmp$ret$2);
|
|
377
388
|
}
|
|
378
389
|
tmp_0 = destination_0;
|
|
379
390
|
}
|
|
380
|
-
var tmp$ret$5 = new IngredientsList(tmp_0, item.
|
|
391
|
+
var tmp$ret$5 = new IngredientsList(tmp_0, item.w1f_1);
|
|
381
392
|
destination.f(tmp$ret$5);
|
|
382
393
|
}
|
|
383
394
|
tmp = destination;
|
|
384
395
|
}
|
|
385
396
|
var scaledIngredients = tmp;
|
|
386
|
-
var tmp1_safe_receiver = recipe.
|
|
397
|
+
var tmp1_safe_receiver = recipe.l1f_1;
|
|
387
398
|
var tmp_2;
|
|
388
399
|
if (tmp1_safe_receiver == null) {
|
|
389
400
|
tmp_2 = null;
|
|
@@ -394,7 +405,7 @@
|
|
|
394
405
|
var _iterator__ex2g4s_1 = tmp1_safe_receiver.h();
|
|
395
406
|
while (_iterator__ex2g4s_1.i()) {
|
|
396
407
|
var item_1 = _iterator__ex2g4s_1.j();
|
|
397
|
-
var tmp0_safe_receiver_2 = item_1.
|
|
408
|
+
var tmp0_safe_receiver_2 = item_1.i1g_1;
|
|
398
409
|
var tmp_3;
|
|
399
410
|
if (tmp0_safe_receiver_2 == null) {
|
|
400
411
|
tmp_3 = null;
|
|
@@ -403,13 +414,13 @@
|
|
|
403
414
|
tmp_3 = renderTemplate(parseTemplate(tmp0_safe_receiver_2), factor, measuringSystem);
|
|
404
415
|
}
|
|
405
416
|
var description = tmp_3;
|
|
406
|
-
var tmp$ret$10 = item_1.
|
|
417
|
+
var tmp$ret$10 = item_1.l1g(description == null ? item_1.h1g_1 : description);
|
|
407
418
|
destination_1.f(tmp$ret$10);
|
|
408
419
|
}
|
|
409
420
|
tmp_2 = destination_1;
|
|
410
421
|
}
|
|
411
422
|
var scaledInstructions = tmp_2;
|
|
412
|
-
return recipe.
|
|
423
|
+
return recipe.m1g(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, scaledIngredients, scaledInstructions);
|
|
413
424
|
}
|
|
414
425
|
function RecipeV3$Companion$$childSerializers$_anonymous__7om4qn() {
|
|
415
426
|
return new ArrayListSerializer(StringSerializer_getInstance());
|
|
@@ -481,7 +492,7 @@
|
|
|
481
492
|
// Inline function 'kotlin.arrayOf' call
|
|
482
493
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
483
494
|
// Inline function 'kotlin.js.asDynamic' call
|
|
484
|
-
tmp.
|
|
495
|
+
tmp.n1g_1 = [null, tmp_1, null, tmp_3, tmp_5, null, tmp_7, tmp_9, null, null, null, null, tmp_11, tmp_13, null, tmp_15, tmp_17, tmp_19, tmp_21, tmp_23, null, lazy(tmp_24, RecipeV3$Companion$$childSerializers$_anonymous__7om4qn_11), null];
|
|
485
496
|
}
|
|
486
497
|
var Companion_instance;
|
|
487
498
|
function Companion_getInstance() {
|
|
@@ -492,109 +503,109 @@
|
|
|
492
503
|
function $serializer() {
|
|
493
504
|
$serializer_instance = this;
|
|
494
505
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.RecipeV3', this, 23);
|
|
495
|
-
tmp0_serialDesc.
|
|
496
|
-
tmp0_serialDesc.
|
|
497
|
-
tmp0_serialDesc.
|
|
498
|
-
tmp0_serialDesc.
|
|
499
|
-
tmp0_serialDesc.
|
|
500
|
-
tmp0_serialDesc.
|
|
501
|
-
tmp0_serialDesc.
|
|
502
|
-
tmp0_serialDesc.
|
|
503
|
-
tmp0_serialDesc.
|
|
504
|
-
tmp0_serialDesc.
|
|
505
|
-
tmp0_serialDesc.
|
|
506
|
-
tmp0_serialDesc.
|
|
507
|
-
tmp0_serialDesc.
|
|
508
|
-
tmp0_serialDesc.
|
|
509
|
-
tmp0_serialDesc.
|
|
510
|
-
tmp0_serialDesc.
|
|
511
|
-
tmp0_serialDesc.
|
|
512
|
-
tmp0_serialDesc.
|
|
513
|
-
tmp0_serialDesc.
|
|
514
|
-
tmp0_serialDesc.
|
|
515
|
-
tmp0_serialDesc.
|
|
516
|
-
tmp0_serialDesc.
|
|
517
|
-
tmp0_serialDesc.
|
|
518
|
-
this.
|
|
506
|
+
tmp0_serialDesc.ct('bookCredit', true);
|
|
507
|
+
tmp0_serialDesc.ct('byline', true);
|
|
508
|
+
tmp0_serialDesc.ct('canonicalArticle', true);
|
|
509
|
+
tmp0_serialDesc.ct('celebrationIds', true);
|
|
510
|
+
tmp0_serialDesc.ct('commerceCtas', true);
|
|
511
|
+
tmp0_serialDesc.ct('composerId', true);
|
|
512
|
+
tmp0_serialDesc.ct('contributors', true);
|
|
513
|
+
tmp0_serialDesc.ct('cuisineIds', true);
|
|
514
|
+
tmp0_serialDesc.ct('description', true);
|
|
515
|
+
tmp0_serialDesc.ct('difficultyLevel', true);
|
|
516
|
+
tmp0_serialDesc.ct('featuredImage', true);
|
|
517
|
+
tmp0_serialDesc.ct('id', false);
|
|
518
|
+
tmp0_serialDesc.ct('ingredients', true);
|
|
519
|
+
tmp0_serialDesc.ct('instructions', true);
|
|
520
|
+
tmp0_serialDesc.ct('isAppReady', true);
|
|
521
|
+
tmp0_serialDesc.ct('mealTypeIds', true);
|
|
522
|
+
tmp0_serialDesc.ct('serves', true);
|
|
523
|
+
tmp0_serialDesc.ct('suitableForDietIds', true);
|
|
524
|
+
tmp0_serialDesc.ct('techniquesUsedIds', true);
|
|
525
|
+
tmp0_serialDesc.ct('timings', true);
|
|
526
|
+
tmp0_serialDesc.ct('title', true);
|
|
527
|
+
tmp0_serialDesc.ct('utensilsAndApplianceIds', true);
|
|
528
|
+
tmp0_serialDesc.ct('webPublicationDate', true);
|
|
529
|
+
this.o1g_1 = tmp0_serialDesc;
|
|
519
530
|
}
|
|
520
|
-
protoOf($serializer).
|
|
521
|
-
var tmp0_desc = this.
|
|
522
|
-
var tmp1_output = encoder.
|
|
523
|
-
var tmp2_cached = Companion_getInstance().
|
|
524
|
-
if (tmp1_output.
|
|
525
|
-
tmp1_output.
|
|
531
|
+
protoOf($serializer).p1g = function (encoder, value) {
|
|
532
|
+
var tmp0_desc = this.o1g_1;
|
|
533
|
+
var tmp1_output = encoder.tl(tmp0_desc);
|
|
534
|
+
var tmp2_cached = Companion_getInstance().n1g_1;
|
|
535
|
+
if (tmp1_output.pn(tmp0_desc, 0) ? true : !(value.y1e_1 == null)) {
|
|
536
|
+
tmp1_output.ln(tmp0_desc, 0, StringSerializer_getInstance(), value.y1e_1);
|
|
526
537
|
}
|
|
527
|
-
if (tmp1_output.
|
|
528
|
-
tmp1_output.
|
|
538
|
+
if (tmp1_output.pn(tmp0_desc, 1) ? true : !(value.z1e_1 == null)) {
|
|
539
|
+
tmp1_output.ln(tmp0_desc, 1, tmp2_cached[1].t1(), value.z1e_1);
|
|
529
540
|
}
|
|
530
|
-
if (tmp1_output.
|
|
531
|
-
tmp1_output.
|
|
541
|
+
if (tmp1_output.pn(tmp0_desc, 2) ? true : !(value.a1f_1 == null)) {
|
|
542
|
+
tmp1_output.ln(tmp0_desc, 2, StringSerializer_getInstance(), value.a1f_1);
|
|
532
543
|
}
|
|
533
|
-
if (tmp1_output.
|
|
534
|
-
tmp1_output.
|
|
544
|
+
if (tmp1_output.pn(tmp0_desc, 3) ? true : !(value.b1f_1 == null)) {
|
|
545
|
+
tmp1_output.ln(tmp0_desc, 3, tmp2_cached[3].t1(), value.b1f_1);
|
|
535
546
|
}
|
|
536
|
-
if (tmp1_output.
|
|
537
|
-
tmp1_output.
|
|
547
|
+
if (tmp1_output.pn(tmp0_desc, 4) ? true : !(value.c1f_1 == null)) {
|
|
548
|
+
tmp1_output.ln(tmp0_desc, 4, tmp2_cached[4].t1(), value.c1f_1);
|
|
538
549
|
}
|
|
539
|
-
if (tmp1_output.
|
|
540
|
-
tmp1_output.
|
|
550
|
+
if (tmp1_output.pn(tmp0_desc, 5) ? true : !(value.d1f_1 == null)) {
|
|
551
|
+
tmp1_output.ln(tmp0_desc, 5, StringSerializer_getInstance(), value.d1f_1);
|
|
541
552
|
}
|
|
542
|
-
if (tmp1_output.
|
|
543
|
-
tmp1_output.
|
|
553
|
+
if (tmp1_output.pn(tmp0_desc, 6) ? true : !(value.e1f_1 == null)) {
|
|
554
|
+
tmp1_output.ln(tmp0_desc, 6, tmp2_cached[6].t1(), value.e1f_1);
|
|
544
555
|
}
|
|
545
|
-
if (tmp1_output.
|
|
546
|
-
tmp1_output.
|
|
556
|
+
if (tmp1_output.pn(tmp0_desc, 7) ? true : !(value.f1f_1 == null)) {
|
|
557
|
+
tmp1_output.ln(tmp0_desc, 7, tmp2_cached[7].t1(), value.f1f_1);
|
|
547
558
|
}
|
|
548
|
-
if (tmp1_output.
|
|
549
|
-
tmp1_output.
|
|
559
|
+
if (tmp1_output.pn(tmp0_desc, 8) ? true : !(value.g1f_1 == null)) {
|
|
560
|
+
tmp1_output.ln(tmp0_desc, 8, StringSerializer_getInstance(), value.g1f_1);
|
|
550
561
|
}
|
|
551
|
-
if (tmp1_output.
|
|
552
|
-
tmp1_output.
|
|
562
|
+
if (tmp1_output.pn(tmp0_desc, 9) ? true : !(value.h1f_1 == null)) {
|
|
563
|
+
tmp1_output.ln(tmp0_desc, 9, StringSerializer_getInstance(), value.h1f_1);
|
|
553
564
|
}
|
|
554
|
-
if (tmp1_output.
|
|
555
|
-
tmp1_output.
|
|
565
|
+
if (tmp1_output.pn(tmp0_desc, 10) ? true : !(value.i1f_1 == null)) {
|
|
566
|
+
tmp1_output.ln(tmp0_desc, 10, $serializer_getInstance_1(), value.i1f_1);
|
|
556
567
|
}
|
|
557
|
-
tmp1_output.
|
|
558
|
-
if (tmp1_output.
|
|
559
|
-
tmp1_output.
|
|
568
|
+
tmp1_output.hn(tmp0_desc, 11, value.j1f_1);
|
|
569
|
+
if (tmp1_output.pn(tmp0_desc, 12) ? true : !(value.k1f_1 == null)) {
|
|
570
|
+
tmp1_output.ln(tmp0_desc, 12, tmp2_cached[12].t1(), value.k1f_1);
|
|
560
571
|
}
|
|
561
|
-
if (tmp1_output.
|
|
562
|
-
tmp1_output.
|
|
572
|
+
if (tmp1_output.pn(tmp0_desc, 13) ? true : !(value.l1f_1 == null)) {
|
|
573
|
+
tmp1_output.ln(tmp0_desc, 13, tmp2_cached[13].t1(), value.l1f_1);
|
|
563
574
|
}
|
|
564
|
-
if (tmp1_output.
|
|
565
|
-
tmp1_output.
|
|
575
|
+
if (tmp1_output.pn(tmp0_desc, 14) ? true : !(value.m1f_1 == null)) {
|
|
576
|
+
tmp1_output.ln(tmp0_desc, 14, BooleanSerializer_getInstance(), value.m1f_1);
|
|
566
577
|
}
|
|
567
|
-
if (tmp1_output.
|
|
568
|
-
tmp1_output.
|
|
578
|
+
if (tmp1_output.pn(tmp0_desc, 15) ? true : !(value.n1f_1 == null)) {
|
|
579
|
+
tmp1_output.ln(tmp0_desc, 15, tmp2_cached[15].t1(), value.n1f_1);
|
|
569
580
|
}
|
|
570
|
-
if (tmp1_output.
|
|
571
|
-
tmp1_output.
|
|
581
|
+
if (tmp1_output.pn(tmp0_desc, 16) ? true : !(value.o1f_1 == null)) {
|
|
582
|
+
tmp1_output.ln(tmp0_desc, 16, tmp2_cached[16].t1(), value.o1f_1);
|
|
572
583
|
}
|
|
573
|
-
if (tmp1_output.
|
|
574
|
-
tmp1_output.
|
|
584
|
+
if (tmp1_output.pn(tmp0_desc, 17) ? true : !(value.p1f_1 == null)) {
|
|
585
|
+
tmp1_output.ln(tmp0_desc, 17, tmp2_cached[17].t1(), value.p1f_1);
|
|
575
586
|
}
|
|
576
|
-
if (tmp1_output.
|
|
577
|
-
tmp1_output.
|
|
587
|
+
if (tmp1_output.pn(tmp0_desc, 18) ? true : !(value.q1f_1 == null)) {
|
|
588
|
+
tmp1_output.ln(tmp0_desc, 18, tmp2_cached[18].t1(), value.q1f_1);
|
|
578
589
|
}
|
|
579
|
-
if (tmp1_output.
|
|
580
|
-
tmp1_output.
|
|
590
|
+
if (tmp1_output.pn(tmp0_desc, 19) ? true : !(value.r1f_1 == null)) {
|
|
591
|
+
tmp1_output.ln(tmp0_desc, 19, tmp2_cached[19].t1(), value.r1f_1);
|
|
581
592
|
}
|
|
582
|
-
if (tmp1_output.
|
|
583
|
-
tmp1_output.
|
|
593
|
+
if (tmp1_output.pn(tmp0_desc, 20) ? true : !(value.s1f_1 == null)) {
|
|
594
|
+
tmp1_output.ln(tmp0_desc, 20, StringSerializer_getInstance(), value.s1f_1);
|
|
584
595
|
}
|
|
585
|
-
if (tmp1_output.
|
|
586
|
-
tmp1_output.
|
|
596
|
+
if (tmp1_output.pn(tmp0_desc, 21) ? true : !(value.t1f_1 == null)) {
|
|
597
|
+
tmp1_output.ln(tmp0_desc, 21, tmp2_cached[21].t1(), value.t1f_1);
|
|
587
598
|
}
|
|
588
|
-
if (tmp1_output.
|
|
589
|
-
tmp1_output.
|
|
599
|
+
if (tmp1_output.pn(tmp0_desc, 22) ? true : !(value.u1f_1 == null)) {
|
|
600
|
+
tmp1_output.ln(tmp0_desc, 22, StringSerializer_getInstance(), value.u1f_1);
|
|
590
601
|
}
|
|
591
|
-
tmp1_output.
|
|
602
|
+
tmp1_output.ul(tmp0_desc);
|
|
592
603
|
};
|
|
593
|
-
protoOf($serializer).
|
|
594
|
-
return this.
|
|
604
|
+
protoOf($serializer).xi = function (encoder, value) {
|
|
605
|
+
return this.p1g(encoder, value instanceof RecipeV3 ? value : THROW_CCE());
|
|
595
606
|
};
|
|
596
|
-
protoOf($serializer).
|
|
597
|
-
var tmp0_desc = this.
|
|
607
|
+
protoOf($serializer).yi = function (decoder) {
|
|
608
|
+
var tmp0_desc = this.o1g_1;
|
|
598
609
|
var tmp1_flag = true;
|
|
599
610
|
var tmp2_index = 0;
|
|
600
611
|
var tmp3_bitMask0 = 0;
|
|
@@ -621,166 +632,166 @@
|
|
|
621
632
|
var tmp24_local20 = null;
|
|
622
633
|
var tmp25_local21 = null;
|
|
623
634
|
var tmp26_local22 = null;
|
|
624
|
-
var tmp27_input = decoder.
|
|
625
|
-
var tmp28_cached = Companion_getInstance().
|
|
626
|
-
if (tmp27_input.
|
|
627
|
-
tmp4_local0 = tmp27_input.
|
|
635
|
+
var tmp27_input = decoder.tl(tmp0_desc);
|
|
636
|
+
var tmp28_cached = Companion_getInstance().n1g_1;
|
|
637
|
+
if (tmp27_input.jm()) {
|
|
638
|
+
tmp4_local0 = tmp27_input.hm(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
628
639
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
629
|
-
tmp5_local1 = tmp27_input.
|
|
640
|
+
tmp5_local1 = tmp27_input.hm(tmp0_desc, 1, tmp28_cached[1].t1(), tmp5_local1);
|
|
630
641
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
631
|
-
tmp6_local2 = tmp27_input.
|
|
642
|
+
tmp6_local2 = tmp27_input.hm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
632
643
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
633
|
-
tmp7_local3 = tmp27_input.
|
|
644
|
+
tmp7_local3 = tmp27_input.hm(tmp0_desc, 3, tmp28_cached[3].t1(), tmp7_local3);
|
|
634
645
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
635
|
-
tmp8_local4 = tmp27_input.
|
|
646
|
+
tmp8_local4 = tmp27_input.hm(tmp0_desc, 4, tmp28_cached[4].t1(), tmp8_local4);
|
|
636
647
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
637
|
-
tmp9_local5 = tmp27_input.
|
|
648
|
+
tmp9_local5 = tmp27_input.hm(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
638
649
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
639
|
-
tmp10_local6 = tmp27_input.
|
|
650
|
+
tmp10_local6 = tmp27_input.hm(tmp0_desc, 6, tmp28_cached[6].t1(), tmp10_local6);
|
|
640
651
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
641
|
-
tmp11_local7 = tmp27_input.
|
|
652
|
+
tmp11_local7 = tmp27_input.hm(tmp0_desc, 7, tmp28_cached[7].t1(), tmp11_local7);
|
|
642
653
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
643
|
-
tmp12_local8 = tmp27_input.
|
|
654
|
+
tmp12_local8 = tmp27_input.hm(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
644
655
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
645
|
-
tmp13_local9 = tmp27_input.
|
|
656
|
+
tmp13_local9 = tmp27_input.hm(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
|
|
646
657
|
tmp3_bitMask0 = tmp3_bitMask0 | 512;
|
|
647
|
-
tmp14_local10 = tmp27_input.
|
|
658
|
+
tmp14_local10 = tmp27_input.hm(tmp0_desc, 10, $serializer_getInstance_1(), tmp14_local10);
|
|
648
659
|
tmp3_bitMask0 = tmp3_bitMask0 | 1024;
|
|
649
|
-
tmp15_local11 = tmp27_input.
|
|
660
|
+
tmp15_local11 = tmp27_input.dm(tmp0_desc, 11);
|
|
650
661
|
tmp3_bitMask0 = tmp3_bitMask0 | 2048;
|
|
651
|
-
tmp16_local12 = tmp27_input.
|
|
662
|
+
tmp16_local12 = tmp27_input.hm(tmp0_desc, 12, tmp28_cached[12].t1(), tmp16_local12);
|
|
652
663
|
tmp3_bitMask0 = tmp3_bitMask0 | 4096;
|
|
653
|
-
tmp17_local13 = tmp27_input.
|
|
664
|
+
tmp17_local13 = tmp27_input.hm(tmp0_desc, 13, tmp28_cached[13].t1(), tmp17_local13);
|
|
654
665
|
tmp3_bitMask0 = tmp3_bitMask0 | 8192;
|
|
655
|
-
tmp18_local14 = tmp27_input.
|
|
666
|
+
tmp18_local14 = tmp27_input.hm(tmp0_desc, 14, BooleanSerializer_getInstance(), tmp18_local14);
|
|
656
667
|
tmp3_bitMask0 = tmp3_bitMask0 | 16384;
|
|
657
|
-
tmp19_local15 = tmp27_input.
|
|
668
|
+
tmp19_local15 = tmp27_input.hm(tmp0_desc, 15, tmp28_cached[15].t1(), tmp19_local15);
|
|
658
669
|
tmp3_bitMask0 = tmp3_bitMask0 | 32768;
|
|
659
|
-
tmp20_local16 = tmp27_input.
|
|
670
|
+
tmp20_local16 = tmp27_input.hm(tmp0_desc, 16, tmp28_cached[16].t1(), tmp20_local16);
|
|
660
671
|
tmp3_bitMask0 = tmp3_bitMask0 | 65536;
|
|
661
|
-
tmp21_local17 = tmp27_input.
|
|
672
|
+
tmp21_local17 = tmp27_input.hm(tmp0_desc, 17, tmp28_cached[17].t1(), tmp21_local17);
|
|
662
673
|
tmp3_bitMask0 = tmp3_bitMask0 | 131072;
|
|
663
|
-
tmp22_local18 = tmp27_input.
|
|
674
|
+
tmp22_local18 = tmp27_input.hm(tmp0_desc, 18, tmp28_cached[18].t1(), tmp22_local18);
|
|
664
675
|
tmp3_bitMask0 = tmp3_bitMask0 | 262144;
|
|
665
|
-
tmp23_local19 = tmp27_input.
|
|
676
|
+
tmp23_local19 = tmp27_input.hm(tmp0_desc, 19, tmp28_cached[19].t1(), tmp23_local19);
|
|
666
677
|
tmp3_bitMask0 = tmp3_bitMask0 | 524288;
|
|
667
|
-
tmp24_local20 = tmp27_input.
|
|
678
|
+
tmp24_local20 = tmp27_input.hm(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20);
|
|
668
679
|
tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
|
|
669
|
-
tmp25_local21 = tmp27_input.
|
|
680
|
+
tmp25_local21 = tmp27_input.hm(tmp0_desc, 21, tmp28_cached[21].t1(), tmp25_local21);
|
|
670
681
|
tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
|
|
671
|
-
tmp26_local22 = tmp27_input.
|
|
682
|
+
tmp26_local22 = tmp27_input.hm(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22);
|
|
672
683
|
tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
|
|
673
684
|
} else
|
|
674
685
|
while (tmp1_flag) {
|
|
675
|
-
tmp2_index = tmp27_input.
|
|
686
|
+
tmp2_index = tmp27_input.km(tmp0_desc);
|
|
676
687
|
switch (tmp2_index) {
|
|
677
688
|
case -1:
|
|
678
689
|
tmp1_flag = false;
|
|
679
690
|
break;
|
|
680
691
|
case 0:
|
|
681
|
-
tmp4_local0 = tmp27_input.
|
|
692
|
+
tmp4_local0 = tmp27_input.hm(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
682
693
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
683
694
|
break;
|
|
684
695
|
case 1:
|
|
685
|
-
tmp5_local1 = tmp27_input.
|
|
696
|
+
tmp5_local1 = tmp27_input.hm(tmp0_desc, 1, tmp28_cached[1].t1(), tmp5_local1);
|
|
686
697
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
687
698
|
break;
|
|
688
699
|
case 2:
|
|
689
|
-
tmp6_local2 = tmp27_input.
|
|
700
|
+
tmp6_local2 = tmp27_input.hm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
690
701
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
691
702
|
break;
|
|
692
703
|
case 3:
|
|
693
|
-
tmp7_local3 = tmp27_input.
|
|
704
|
+
tmp7_local3 = tmp27_input.hm(tmp0_desc, 3, tmp28_cached[3].t1(), tmp7_local3);
|
|
694
705
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
695
706
|
break;
|
|
696
707
|
case 4:
|
|
697
|
-
tmp8_local4 = tmp27_input.
|
|
708
|
+
tmp8_local4 = tmp27_input.hm(tmp0_desc, 4, tmp28_cached[4].t1(), tmp8_local4);
|
|
698
709
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
699
710
|
break;
|
|
700
711
|
case 5:
|
|
701
|
-
tmp9_local5 = tmp27_input.
|
|
712
|
+
tmp9_local5 = tmp27_input.hm(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
702
713
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
703
714
|
break;
|
|
704
715
|
case 6:
|
|
705
|
-
tmp10_local6 = tmp27_input.
|
|
716
|
+
tmp10_local6 = tmp27_input.hm(tmp0_desc, 6, tmp28_cached[6].t1(), tmp10_local6);
|
|
706
717
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
707
718
|
break;
|
|
708
719
|
case 7:
|
|
709
|
-
tmp11_local7 = tmp27_input.
|
|
720
|
+
tmp11_local7 = tmp27_input.hm(tmp0_desc, 7, tmp28_cached[7].t1(), tmp11_local7);
|
|
710
721
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
711
722
|
break;
|
|
712
723
|
case 8:
|
|
713
|
-
tmp12_local8 = tmp27_input.
|
|
724
|
+
tmp12_local8 = tmp27_input.hm(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
714
725
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
715
726
|
break;
|
|
716
727
|
case 9:
|
|
717
|
-
tmp13_local9 = tmp27_input.
|
|
728
|
+
tmp13_local9 = tmp27_input.hm(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
|
|
718
729
|
tmp3_bitMask0 = tmp3_bitMask0 | 512;
|
|
719
730
|
break;
|
|
720
731
|
case 10:
|
|
721
|
-
tmp14_local10 = tmp27_input.
|
|
732
|
+
tmp14_local10 = tmp27_input.hm(tmp0_desc, 10, $serializer_getInstance_1(), tmp14_local10);
|
|
722
733
|
tmp3_bitMask0 = tmp3_bitMask0 | 1024;
|
|
723
734
|
break;
|
|
724
735
|
case 11:
|
|
725
|
-
tmp15_local11 = tmp27_input.
|
|
736
|
+
tmp15_local11 = tmp27_input.dm(tmp0_desc, 11);
|
|
726
737
|
tmp3_bitMask0 = tmp3_bitMask0 | 2048;
|
|
727
738
|
break;
|
|
728
739
|
case 12:
|
|
729
|
-
tmp16_local12 = tmp27_input.
|
|
740
|
+
tmp16_local12 = tmp27_input.hm(tmp0_desc, 12, tmp28_cached[12].t1(), tmp16_local12);
|
|
730
741
|
tmp3_bitMask0 = tmp3_bitMask0 | 4096;
|
|
731
742
|
break;
|
|
732
743
|
case 13:
|
|
733
|
-
tmp17_local13 = tmp27_input.
|
|
744
|
+
tmp17_local13 = tmp27_input.hm(tmp0_desc, 13, tmp28_cached[13].t1(), tmp17_local13);
|
|
734
745
|
tmp3_bitMask0 = tmp3_bitMask0 | 8192;
|
|
735
746
|
break;
|
|
736
747
|
case 14:
|
|
737
|
-
tmp18_local14 = tmp27_input.
|
|
748
|
+
tmp18_local14 = tmp27_input.hm(tmp0_desc, 14, BooleanSerializer_getInstance(), tmp18_local14);
|
|
738
749
|
tmp3_bitMask0 = tmp3_bitMask0 | 16384;
|
|
739
750
|
break;
|
|
740
751
|
case 15:
|
|
741
|
-
tmp19_local15 = tmp27_input.
|
|
752
|
+
tmp19_local15 = tmp27_input.hm(tmp0_desc, 15, tmp28_cached[15].t1(), tmp19_local15);
|
|
742
753
|
tmp3_bitMask0 = tmp3_bitMask0 | 32768;
|
|
743
754
|
break;
|
|
744
755
|
case 16:
|
|
745
|
-
tmp20_local16 = tmp27_input.
|
|
756
|
+
tmp20_local16 = tmp27_input.hm(tmp0_desc, 16, tmp28_cached[16].t1(), tmp20_local16);
|
|
746
757
|
tmp3_bitMask0 = tmp3_bitMask0 | 65536;
|
|
747
758
|
break;
|
|
748
759
|
case 17:
|
|
749
|
-
tmp21_local17 = tmp27_input.
|
|
760
|
+
tmp21_local17 = tmp27_input.hm(tmp0_desc, 17, tmp28_cached[17].t1(), tmp21_local17);
|
|
750
761
|
tmp3_bitMask0 = tmp3_bitMask0 | 131072;
|
|
751
762
|
break;
|
|
752
763
|
case 18:
|
|
753
|
-
tmp22_local18 = tmp27_input.
|
|
764
|
+
tmp22_local18 = tmp27_input.hm(tmp0_desc, 18, tmp28_cached[18].t1(), tmp22_local18);
|
|
754
765
|
tmp3_bitMask0 = tmp3_bitMask0 | 262144;
|
|
755
766
|
break;
|
|
756
767
|
case 19:
|
|
757
|
-
tmp23_local19 = tmp27_input.
|
|
768
|
+
tmp23_local19 = tmp27_input.hm(tmp0_desc, 19, tmp28_cached[19].t1(), tmp23_local19);
|
|
758
769
|
tmp3_bitMask0 = tmp3_bitMask0 | 524288;
|
|
759
770
|
break;
|
|
760
771
|
case 20:
|
|
761
|
-
tmp24_local20 = tmp27_input.
|
|
772
|
+
tmp24_local20 = tmp27_input.hm(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20);
|
|
762
773
|
tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
|
|
763
774
|
break;
|
|
764
775
|
case 21:
|
|
765
|
-
tmp25_local21 = tmp27_input.
|
|
776
|
+
tmp25_local21 = tmp27_input.hm(tmp0_desc, 21, tmp28_cached[21].t1(), tmp25_local21);
|
|
766
777
|
tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
|
|
767
778
|
break;
|
|
768
779
|
case 22:
|
|
769
|
-
tmp26_local22 = tmp27_input.
|
|
780
|
+
tmp26_local22 = tmp27_input.hm(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22);
|
|
770
781
|
tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
|
|
771
782
|
break;
|
|
772
783
|
default:
|
|
773
784
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
774
785
|
}
|
|
775
786
|
}
|
|
776
|
-
tmp27_input.
|
|
787
|
+
tmp27_input.ul(tmp0_desc);
|
|
777
788
|
return RecipeV3_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, null);
|
|
778
789
|
};
|
|
779
|
-
protoOf($serializer).
|
|
780
|
-
return this.
|
|
790
|
+
protoOf($serializer).wi = function () {
|
|
791
|
+
return this.o1g_1;
|
|
781
792
|
};
|
|
782
|
-
protoOf($serializer).
|
|
783
|
-
var tmp0_cached = Companion_getInstance().
|
|
793
|
+
protoOf($serializer).et = function () {
|
|
794
|
+
var tmp0_cached = Companion_getInstance().n1g_1;
|
|
784
795
|
// Inline function 'kotlin.arrayOf' call
|
|
785
796
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
786
797
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -794,97 +805,97 @@
|
|
|
794
805
|
}
|
|
795
806
|
function RecipeV3_init_$Init$(seen0, bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate, serializationConstructorMarker, $this) {
|
|
796
807
|
if (!(2048 === (2048 & seen0))) {
|
|
797
|
-
throwMissingFieldException(seen0, 2048, $serializer_getInstance().
|
|
808
|
+
throwMissingFieldException(seen0, 2048, $serializer_getInstance().o1g_1);
|
|
798
809
|
}
|
|
799
810
|
if (0 === (seen0 & 1))
|
|
800
|
-
$this.
|
|
811
|
+
$this.y1e_1 = null;
|
|
801
812
|
else
|
|
802
|
-
$this.
|
|
813
|
+
$this.y1e_1 = bookCredit;
|
|
803
814
|
if (0 === (seen0 & 2))
|
|
804
|
-
$this.
|
|
815
|
+
$this.z1e_1 = null;
|
|
805
816
|
else
|
|
806
|
-
$this.
|
|
817
|
+
$this.z1e_1 = byline;
|
|
807
818
|
if (0 === (seen0 & 4))
|
|
808
|
-
$this.
|
|
819
|
+
$this.a1f_1 = null;
|
|
809
820
|
else
|
|
810
|
-
$this.
|
|
821
|
+
$this.a1f_1 = canonicalArticle;
|
|
811
822
|
if (0 === (seen0 & 8))
|
|
812
|
-
$this.
|
|
823
|
+
$this.b1f_1 = null;
|
|
813
824
|
else
|
|
814
|
-
$this.
|
|
825
|
+
$this.b1f_1 = celebrationIds;
|
|
815
826
|
if (0 === (seen0 & 16))
|
|
816
|
-
$this.
|
|
827
|
+
$this.c1f_1 = null;
|
|
817
828
|
else
|
|
818
|
-
$this.
|
|
829
|
+
$this.c1f_1 = commerceCtas;
|
|
819
830
|
if (0 === (seen0 & 32))
|
|
820
|
-
$this.
|
|
831
|
+
$this.d1f_1 = null;
|
|
821
832
|
else
|
|
822
|
-
$this.
|
|
833
|
+
$this.d1f_1 = composerId;
|
|
823
834
|
if (0 === (seen0 & 64))
|
|
824
|
-
$this.
|
|
835
|
+
$this.e1f_1 = null;
|
|
825
836
|
else
|
|
826
|
-
$this.
|
|
837
|
+
$this.e1f_1 = contributors;
|
|
827
838
|
if (0 === (seen0 & 128))
|
|
828
|
-
$this.
|
|
839
|
+
$this.f1f_1 = null;
|
|
829
840
|
else
|
|
830
|
-
$this.
|
|
841
|
+
$this.f1f_1 = cuisineIds;
|
|
831
842
|
if (0 === (seen0 & 256))
|
|
832
|
-
$this.
|
|
843
|
+
$this.g1f_1 = null;
|
|
833
844
|
else
|
|
834
|
-
$this.
|
|
845
|
+
$this.g1f_1 = description;
|
|
835
846
|
if (0 === (seen0 & 512))
|
|
836
|
-
$this.
|
|
847
|
+
$this.h1f_1 = null;
|
|
837
848
|
else
|
|
838
|
-
$this.
|
|
849
|
+
$this.h1f_1 = difficultyLevel;
|
|
839
850
|
if (0 === (seen0 & 1024))
|
|
840
|
-
$this.
|
|
851
|
+
$this.i1f_1 = null;
|
|
841
852
|
else
|
|
842
|
-
$this.
|
|
843
|
-
$this.
|
|
853
|
+
$this.i1f_1 = featuredImage;
|
|
854
|
+
$this.j1f_1 = id;
|
|
844
855
|
if (0 === (seen0 & 4096))
|
|
845
|
-
$this.
|
|
856
|
+
$this.k1f_1 = null;
|
|
846
857
|
else
|
|
847
|
-
$this.
|
|
858
|
+
$this.k1f_1 = ingredients;
|
|
848
859
|
if (0 === (seen0 & 8192))
|
|
849
|
-
$this.
|
|
860
|
+
$this.l1f_1 = null;
|
|
850
861
|
else
|
|
851
|
-
$this.
|
|
862
|
+
$this.l1f_1 = instructions;
|
|
852
863
|
if (0 === (seen0 & 16384))
|
|
853
|
-
$this.
|
|
864
|
+
$this.m1f_1 = null;
|
|
854
865
|
else
|
|
855
|
-
$this.
|
|
866
|
+
$this.m1f_1 = isAppReady;
|
|
856
867
|
if (0 === (seen0 & 32768))
|
|
857
|
-
$this.
|
|
868
|
+
$this.n1f_1 = null;
|
|
858
869
|
else
|
|
859
|
-
$this.
|
|
870
|
+
$this.n1f_1 = mealTypeIds;
|
|
860
871
|
if (0 === (seen0 & 65536))
|
|
861
|
-
$this.
|
|
872
|
+
$this.o1f_1 = null;
|
|
862
873
|
else
|
|
863
|
-
$this.
|
|
874
|
+
$this.o1f_1 = serves;
|
|
864
875
|
if (0 === (seen0 & 131072))
|
|
865
|
-
$this.
|
|
876
|
+
$this.p1f_1 = null;
|
|
866
877
|
else
|
|
867
|
-
$this.
|
|
878
|
+
$this.p1f_1 = suitableForDietIds;
|
|
868
879
|
if (0 === (seen0 & 262144))
|
|
869
|
-
$this.
|
|
880
|
+
$this.q1f_1 = null;
|
|
870
881
|
else
|
|
871
|
-
$this.
|
|
882
|
+
$this.q1f_1 = techniquesUsedIds;
|
|
872
883
|
if (0 === (seen0 & 524288))
|
|
873
|
-
$this.
|
|
884
|
+
$this.r1f_1 = null;
|
|
874
885
|
else
|
|
875
|
-
$this.
|
|
886
|
+
$this.r1f_1 = timings;
|
|
876
887
|
if (0 === (seen0 & 1048576))
|
|
877
|
-
$this.
|
|
888
|
+
$this.s1f_1 = null;
|
|
878
889
|
else
|
|
879
|
-
$this.
|
|
890
|
+
$this.s1f_1 = title;
|
|
880
891
|
if (0 === (seen0 & 2097152))
|
|
881
|
-
$this.
|
|
892
|
+
$this.t1f_1 = null;
|
|
882
893
|
else
|
|
883
|
-
$this.
|
|
894
|
+
$this.t1f_1 = utensilsAndApplianceIds;
|
|
884
895
|
if (0 === (seen0 & 4194304))
|
|
885
|
-
$this.
|
|
896
|
+
$this.u1f_1 = null;
|
|
886
897
|
else
|
|
887
|
-
$this.
|
|
898
|
+
$this.u1f_1 = webPublicationDate;
|
|
888
899
|
return $this;
|
|
889
900
|
}
|
|
890
901
|
function RecipeV3_init_$Create$(seen0, bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate, serializationConstructorMarker) {
|
|
@@ -914,86 +925,86 @@
|
|
|
914
925
|
title = title === VOID ? null : title;
|
|
915
926
|
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? null : utensilsAndApplianceIds;
|
|
916
927
|
webPublicationDate = webPublicationDate === VOID ? null : webPublicationDate;
|
|
917
|
-
this.
|
|
918
|
-
this.
|
|
919
|
-
this.
|
|
920
|
-
this.
|
|
921
|
-
this.
|
|
922
|
-
this.
|
|
923
|
-
this.
|
|
924
|
-
this.
|
|
925
|
-
this.
|
|
926
|
-
this.
|
|
927
|
-
this.
|
|
928
|
-
this.
|
|
929
|
-
this.
|
|
930
|
-
this.
|
|
931
|
-
this.
|
|
932
|
-
this.
|
|
933
|
-
this.
|
|
934
|
-
this.
|
|
935
|
-
this.
|
|
936
|
-
this.
|
|
937
|
-
this.
|
|
938
|
-
this.
|
|
939
|
-
this.
|
|
940
|
-
}
|
|
941
|
-
protoOf(RecipeV3).
|
|
928
|
+
this.y1e_1 = bookCredit;
|
|
929
|
+
this.z1e_1 = byline;
|
|
930
|
+
this.a1f_1 = canonicalArticle;
|
|
931
|
+
this.b1f_1 = celebrationIds;
|
|
932
|
+
this.c1f_1 = commerceCtas;
|
|
933
|
+
this.d1f_1 = composerId;
|
|
934
|
+
this.e1f_1 = contributors;
|
|
935
|
+
this.f1f_1 = cuisineIds;
|
|
936
|
+
this.g1f_1 = description;
|
|
937
|
+
this.h1f_1 = difficultyLevel;
|
|
938
|
+
this.i1f_1 = featuredImage;
|
|
939
|
+
this.j1f_1 = id;
|
|
940
|
+
this.k1f_1 = ingredients;
|
|
941
|
+
this.l1f_1 = instructions;
|
|
942
|
+
this.m1f_1 = isAppReady;
|
|
943
|
+
this.n1f_1 = mealTypeIds;
|
|
944
|
+
this.o1f_1 = serves;
|
|
945
|
+
this.p1f_1 = suitableForDietIds;
|
|
946
|
+
this.q1f_1 = techniquesUsedIds;
|
|
947
|
+
this.r1f_1 = timings;
|
|
948
|
+
this.s1f_1 = title;
|
|
949
|
+
this.t1f_1 = utensilsAndApplianceIds;
|
|
950
|
+
this.u1f_1 = webPublicationDate;
|
|
951
|
+
}
|
|
952
|
+
protoOf(RecipeV3).q1g = function (bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate) {
|
|
942
953
|
return new RecipeV3(bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate);
|
|
943
954
|
};
|
|
944
|
-
protoOf(RecipeV3).
|
|
945
|
-
bookCredit = bookCredit === VOID ? this.
|
|
946
|
-
byline = byline === VOID ? this.
|
|
947
|
-
canonicalArticle = canonicalArticle === VOID ? this.
|
|
948
|
-
celebrationIds = celebrationIds === VOID ? this.
|
|
949
|
-
commerceCtas = commerceCtas === VOID ? this.
|
|
950
|
-
composerId = composerId === VOID ? this.
|
|
951
|
-
contributors = contributors === VOID ? this.
|
|
952
|
-
cuisineIds = cuisineIds === VOID ? this.
|
|
953
|
-
description = description === VOID ? this.
|
|
954
|
-
difficultyLevel = difficultyLevel === VOID ? this.
|
|
955
|
-
featuredImage = featuredImage === VOID ? this.
|
|
956
|
-
id = id === VOID ? this.
|
|
957
|
-
ingredients = ingredients === VOID ? this.
|
|
958
|
-
instructions = instructions === VOID ? this.
|
|
959
|
-
isAppReady = isAppReady === VOID ? this.
|
|
960
|
-
mealTypeIds = mealTypeIds === VOID ? this.
|
|
961
|
-
serves = serves === VOID ? this.
|
|
962
|
-
suitableForDietIds = suitableForDietIds === VOID ? this.
|
|
963
|
-
techniquesUsedIds = techniquesUsedIds === VOID ? this.
|
|
964
|
-
timings = timings === VOID ? this.
|
|
965
|
-
title = title === VOID ? this.
|
|
966
|
-
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? this.
|
|
967
|
-
webPublicationDate = webPublicationDate === VOID ? this.
|
|
968
|
-
return $super === VOID ? this.
|
|
955
|
+
protoOf(RecipeV3).m1g = function (bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate, $super) {
|
|
956
|
+
bookCredit = bookCredit === VOID ? this.y1e_1 : bookCredit;
|
|
957
|
+
byline = byline === VOID ? this.z1e_1 : byline;
|
|
958
|
+
canonicalArticle = canonicalArticle === VOID ? this.a1f_1 : canonicalArticle;
|
|
959
|
+
celebrationIds = celebrationIds === VOID ? this.b1f_1 : celebrationIds;
|
|
960
|
+
commerceCtas = commerceCtas === VOID ? this.c1f_1 : commerceCtas;
|
|
961
|
+
composerId = composerId === VOID ? this.d1f_1 : composerId;
|
|
962
|
+
contributors = contributors === VOID ? this.e1f_1 : contributors;
|
|
963
|
+
cuisineIds = cuisineIds === VOID ? this.f1f_1 : cuisineIds;
|
|
964
|
+
description = description === VOID ? this.g1f_1 : description;
|
|
965
|
+
difficultyLevel = difficultyLevel === VOID ? this.h1f_1 : difficultyLevel;
|
|
966
|
+
featuredImage = featuredImage === VOID ? this.i1f_1 : featuredImage;
|
|
967
|
+
id = id === VOID ? this.j1f_1 : id;
|
|
968
|
+
ingredients = ingredients === VOID ? this.k1f_1 : ingredients;
|
|
969
|
+
instructions = instructions === VOID ? this.l1f_1 : instructions;
|
|
970
|
+
isAppReady = isAppReady === VOID ? this.m1f_1 : isAppReady;
|
|
971
|
+
mealTypeIds = mealTypeIds === VOID ? this.n1f_1 : mealTypeIds;
|
|
972
|
+
serves = serves === VOID ? this.o1f_1 : serves;
|
|
973
|
+
suitableForDietIds = suitableForDietIds === VOID ? this.p1f_1 : suitableForDietIds;
|
|
974
|
+
techniquesUsedIds = techniquesUsedIds === VOID ? this.q1f_1 : techniquesUsedIds;
|
|
975
|
+
timings = timings === VOID ? this.r1f_1 : timings;
|
|
976
|
+
title = title === VOID ? this.s1f_1 : title;
|
|
977
|
+
utensilsAndApplianceIds = utensilsAndApplianceIds === VOID ? this.t1f_1 : utensilsAndApplianceIds;
|
|
978
|
+
webPublicationDate = webPublicationDate === VOID ? this.u1f_1 : webPublicationDate;
|
|
979
|
+
return $super === VOID ? this.q1g(bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate) : $super.q1g.call(this, bookCredit, byline, canonicalArticle, celebrationIds, commerceCtas, composerId, contributors, cuisineIds, description, difficultyLevel, featuredImage, id, ingredients, instructions, isAppReady, mealTypeIds, serves, suitableForDietIds, techniquesUsedIds, timings, title, utensilsAndApplianceIds, webPublicationDate);
|
|
969
980
|
};
|
|
970
981
|
protoOf(RecipeV3).toString = function () {
|
|
971
|
-
return 'RecipeV3(bookCredit=' + this.
|
|
982
|
+
return 'RecipeV3(bookCredit=' + this.y1e_1 + ', byline=' + toString(this.z1e_1) + ', canonicalArticle=' + this.a1f_1 + ', celebrationIds=' + toString(this.b1f_1) + ', commerceCtas=' + toString(this.c1f_1) + ', composerId=' + this.d1f_1 + ', contributors=' + toString(this.e1f_1) + ', cuisineIds=' + toString(this.f1f_1) + ', description=' + this.g1f_1 + ', difficultyLevel=' + this.h1f_1 + ', featuredImage=' + toString(this.i1f_1) + ', id=' + this.j1f_1 + ', ingredients=' + toString(this.k1f_1) + ', instructions=' + toString(this.l1f_1) + ', isAppReady=' + this.m1f_1 + ', mealTypeIds=' + toString(this.n1f_1) + ', serves=' + toString(this.o1f_1) + ', suitableForDietIds=' + toString(this.p1f_1) + ', techniquesUsedIds=' + toString(this.q1f_1) + ', timings=' + toString(this.r1f_1) + ', title=' + this.s1f_1 + ', utensilsAndApplianceIds=' + toString(this.t1f_1) + ', webPublicationDate=' + this.u1f_1 + ')';
|
|
972
983
|
};
|
|
973
984
|
protoOf(RecipeV3).hashCode = function () {
|
|
974
|
-
var result = this.
|
|
975
|
-
result = imul(result, 31) + (this.
|
|
976
|
-
result = imul(result, 31) + (this.
|
|
977
|
-
result = imul(result, 31) + (this.r1e_1 == null ? 0 : hashCode(this.r1e_1)) | 0;
|
|
978
|
-
result = imul(result, 31) + (this.s1e_1 == null ? 0 : hashCode(this.s1e_1)) | 0;
|
|
979
|
-
result = imul(result, 31) + (this.t1e_1 == null ? 0 : getStringHashCode(this.t1e_1)) | 0;
|
|
980
|
-
result = imul(result, 31) + (this.u1e_1 == null ? 0 : hashCode(this.u1e_1)) | 0;
|
|
981
|
-
result = imul(result, 31) + (this.v1e_1 == null ? 0 : hashCode(this.v1e_1)) | 0;
|
|
982
|
-
result = imul(result, 31) + (this.w1e_1 == null ? 0 : getStringHashCode(this.w1e_1)) | 0;
|
|
983
|
-
result = imul(result, 31) + (this.x1e_1 == null ? 0 : getStringHashCode(this.x1e_1)) | 0;
|
|
984
|
-
result = imul(result, 31) + (this.y1e_1 == null ? 0 : this.y1e_1.hashCode()) | 0;
|
|
985
|
-
result = imul(result, 31) + getStringHashCode(this.z1e_1) | 0;
|
|
986
|
-
result = imul(result, 31) + (this.a1f_1 == null ? 0 : hashCode(this.a1f_1)) | 0;
|
|
985
|
+
var result = this.y1e_1 == null ? 0 : getStringHashCode(this.y1e_1);
|
|
986
|
+
result = imul(result, 31) + (this.z1e_1 == null ? 0 : hashCode(this.z1e_1)) | 0;
|
|
987
|
+
result = imul(result, 31) + (this.a1f_1 == null ? 0 : getStringHashCode(this.a1f_1)) | 0;
|
|
987
988
|
result = imul(result, 31) + (this.b1f_1 == null ? 0 : hashCode(this.b1f_1)) | 0;
|
|
988
|
-
result = imul(result, 31) + (this.c1f_1 == null ? 0 :
|
|
989
|
-
result = imul(result, 31) + (this.d1f_1 == null ? 0 :
|
|
989
|
+
result = imul(result, 31) + (this.c1f_1 == null ? 0 : hashCode(this.c1f_1)) | 0;
|
|
990
|
+
result = imul(result, 31) + (this.d1f_1 == null ? 0 : getStringHashCode(this.d1f_1)) | 0;
|
|
990
991
|
result = imul(result, 31) + (this.e1f_1 == null ? 0 : hashCode(this.e1f_1)) | 0;
|
|
991
992
|
result = imul(result, 31) + (this.f1f_1 == null ? 0 : hashCode(this.f1f_1)) | 0;
|
|
992
|
-
result = imul(result, 31) + (this.g1f_1 == null ? 0 :
|
|
993
|
-
result = imul(result, 31) + (this.h1f_1 == null ? 0 :
|
|
994
|
-
result = imul(result, 31) + (this.i1f_1 == null ? 0 :
|
|
995
|
-
result = imul(result, 31) + (this.j1f_1
|
|
996
|
-
result = imul(result, 31) + (this.k1f_1 == null ? 0 :
|
|
993
|
+
result = imul(result, 31) + (this.g1f_1 == null ? 0 : getStringHashCode(this.g1f_1)) | 0;
|
|
994
|
+
result = imul(result, 31) + (this.h1f_1 == null ? 0 : getStringHashCode(this.h1f_1)) | 0;
|
|
995
|
+
result = imul(result, 31) + (this.i1f_1 == null ? 0 : this.i1f_1.hashCode()) | 0;
|
|
996
|
+
result = imul(result, 31) + getStringHashCode(this.j1f_1) | 0;
|
|
997
|
+
result = imul(result, 31) + (this.k1f_1 == null ? 0 : hashCode(this.k1f_1)) | 0;
|
|
998
|
+
result = imul(result, 31) + (this.l1f_1 == null ? 0 : hashCode(this.l1f_1)) | 0;
|
|
999
|
+
result = imul(result, 31) + (this.m1f_1 == null ? 0 : getBooleanHashCode(this.m1f_1)) | 0;
|
|
1000
|
+
result = imul(result, 31) + (this.n1f_1 == null ? 0 : hashCode(this.n1f_1)) | 0;
|
|
1001
|
+
result = imul(result, 31) + (this.o1f_1 == null ? 0 : hashCode(this.o1f_1)) | 0;
|
|
1002
|
+
result = imul(result, 31) + (this.p1f_1 == null ? 0 : hashCode(this.p1f_1)) | 0;
|
|
1003
|
+
result = imul(result, 31) + (this.q1f_1 == null ? 0 : hashCode(this.q1f_1)) | 0;
|
|
1004
|
+
result = imul(result, 31) + (this.r1f_1 == null ? 0 : hashCode(this.r1f_1)) | 0;
|
|
1005
|
+
result = imul(result, 31) + (this.s1f_1 == null ? 0 : getStringHashCode(this.s1f_1)) | 0;
|
|
1006
|
+
result = imul(result, 31) + (this.t1f_1 == null ? 0 : hashCode(this.t1f_1)) | 0;
|
|
1007
|
+
result = imul(result, 31) + (this.u1f_1 == null ? 0 : getStringHashCode(this.u1f_1)) | 0;
|
|
997
1008
|
return result;
|
|
998
1009
|
};
|
|
999
1010
|
protoOf(RecipeV3).equals = function (other) {
|
|
@@ -1001,119 +1012,119 @@
|
|
|
1001
1012
|
return true;
|
|
1002
1013
|
if (!(other instanceof RecipeV3))
|
|
1003
1014
|
return false;
|
|
1004
|
-
if (!(this.
|
|
1015
|
+
if (!(this.y1e_1 == other.y1e_1))
|
|
1005
1016
|
return false;
|
|
1006
|
-
if (!equals(this.
|
|
1017
|
+
if (!equals(this.z1e_1, other.z1e_1))
|
|
1007
1018
|
return false;
|
|
1008
|
-
if (!(this.
|
|
1019
|
+
if (!(this.a1f_1 == other.a1f_1))
|
|
1009
1020
|
return false;
|
|
1010
|
-
if (!equals(this.
|
|
1021
|
+
if (!equals(this.b1f_1, other.b1f_1))
|
|
1011
1022
|
return false;
|
|
1012
|
-
if (!equals(this.
|
|
1023
|
+
if (!equals(this.c1f_1, other.c1f_1))
|
|
1013
1024
|
return false;
|
|
1014
|
-
if (!(this.
|
|
1025
|
+
if (!(this.d1f_1 == other.d1f_1))
|
|
1015
1026
|
return false;
|
|
1016
|
-
if (!equals(this.
|
|
1027
|
+
if (!equals(this.e1f_1, other.e1f_1))
|
|
1017
1028
|
return false;
|
|
1018
|
-
if (!equals(this.
|
|
1029
|
+
if (!equals(this.f1f_1, other.f1f_1))
|
|
1019
1030
|
return false;
|
|
1020
|
-
if (!(this.
|
|
1031
|
+
if (!(this.g1f_1 == other.g1f_1))
|
|
1021
1032
|
return false;
|
|
1022
|
-
if (!(this.
|
|
1033
|
+
if (!(this.h1f_1 == other.h1f_1))
|
|
1023
1034
|
return false;
|
|
1024
|
-
if (!equals(this.
|
|
1035
|
+
if (!equals(this.i1f_1, other.i1f_1))
|
|
1025
1036
|
return false;
|
|
1026
|
-
if (!(this.
|
|
1037
|
+
if (!(this.j1f_1 === other.j1f_1))
|
|
1027
1038
|
return false;
|
|
1028
|
-
if (!equals(this.
|
|
1039
|
+
if (!equals(this.k1f_1, other.k1f_1))
|
|
1029
1040
|
return false;
|
|
1030
|
-
if (!equals(this.
|
|
1041
|
+
if (!equals(this.l1f_1, other.l1f_1))
|
|
1031
1042
|
return false;
|
|
1032
|
-
if (!(this.
|
|
1043
|
+
if (!(this.m1f_1 == other.m1f_1))
|
|
1033
1044
|
return false;
|
|
1034
|
-
if (!equals(this.
|
|
1045
|
+
if (!equals(this.n1f_1, other.n1f_1))
|
|
1035
1046
|
return false;
|
|
1036
|
-
if (!equals(this.
|
|
1047
|
+
if (!equals(this.o1f_1, other.o1f_1))
|
|
1037
1048
|
return false;
|
|
1038
|
-
if (!equals(this.
|
|
1049
|
+
if (!equals(this.p1f_1, other.p1f_1))
|
|
1039
1050
|
return false;
|
|
1040
|
-
if (!equals(this.
|
|
1051
|
+
if (!equals(this.q1f_1, other.q1f_1))
|
|
1041
1052
|
return false;
|
|
1042
|
-
if (!equals(this.
|
|
1053
|
+
if (!equals(this.r1f_1, other.r1f_1))
|
|
1043
1054
|
return false;
|
|
1044
|
-
if (!(this.
|
|
1055
|
+
if (!(this.s1f_1 == other.s1f_1))
|
|
1045
1056
|
return false;
|
|
1046
|
-
if (!equals(this.
|
|
1057
|
+
if (!equals(this.t1f_1, other.t1f_1))
|
|
1047
1058
|
return false;
|
|
1048
|
-
if (!(this.
|
|
1059
|
+
if (!(this.u1f_1 == other.u1f_1))
|
|
1049
1060
|
return false;
|
|
1050
1061
|
return true;
|
|
1051
1062
|
};
|
|
1052
1063
|
function $serializer_0() {
|
|
1053
1064
|
$serializer_instance_0 = this;
|
|
1054
1065
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.CommerceCta', this, 3);
|
|
1055
|
-
tmp0_serialDesc.
|
|
1056
|
-
tmp0_serialDesc.
|
|
1057
|
-
tmp0_serialDesc.
|
|
1058
|
-
this.
|
|
1059
|
-
}
|
|
1060
|
-
protoOf($serializer_0).
|
|
1061
|
-
var tmp0_desc = this.
|
|
1062
|
-
var tmp1_output = encoder.
|
|
1063
|
-
tmp1_output.
|
|
1064
|
-
tmp1_output.
|
|
1065
|
-
tmp1_output.
|
|
1066
|
-
tmp1_output.
|
|
1067
|
-
};
|
|
1068
|
-
protoOf($serializer_0).
|
|
1069
|
-
return this.
|
|
1070
|
-
};
|
|
1071
|
-
protoOf($serializer_0).
|
|
1072
|
-
var tmp0_desc = this.
|
|
1066
|
+
tmp0_serialDesc.ct('sponsorName', false);
|
|
1067
|
+
tmp0_serialDesc.ct('territory', false);
|
|
1068
|
+
tmp0_serialDesc.ct('url', false);
|
|
1069
|
+
this.r1g_1 = tmp0_serialDesc;
|
|
1070
|
+
}
|
|
1071
|
+
protoOf($serializer_0).s1g = function (encoder, value) {
|
|
1072
|
+
var tmp0_desc = this.r1g_1;
|
|
1073
|
+
var tmp1_output = encoder.tl(tmp0_desc);
|
|
1074
|
+
tmp1_output.hn(tmp0_desc, 0, value.t1g_1);
|
|
1075
|
+
tmp1_output.hn(tmp0_desc, 1, value.u1g_1);
|
|
1076
|
+
tmp1_output.hn(tmp0_desc, 2, value.v1g_1);
|
|
1077
|
+
tmp1_output.ul(tmp0_desc);
|
|
1078
|
+
};
|
|
1079
|
+
protoOf($serializer_0).xi = function (encoder, value) {
|
|
1080
|
+
return this.s1g(encoder, value instanceof CommerceCta ? value : THROW_CCE());
|
|
1081
|
+
};
|
|
1082
|
+
protoOf($serializer_0).yi = function (decoder) {
|
|
1083
|
+
var tmp0_desc = this.r1g_1;
|
|
1073
1084
|
var tmp1_flag = true;
|
|
1074
1085
|
var tmp2_index = 0;
|
|
1075
1086
|
var tmp3_bitMask0 = 0;
|
|
1076
1087
|
var tmp4_local0 = null;
|
|
1077
1088
|
var tmp5_local1 = null;
|
|
1078
1089
|
var tmp6_local2 = null;
|
|
1079
|
-
var tmp7_input = decoder.
|
|
1080
|
-
if (tmp7_input.
|
|
1081
|
-
tmp4_local0 = tmp7_input.
|
|
1090
|
+
var tmp7_input = decoder.tl(tmp0_desc);
|
|
1091
|
+
if (tmp7_input.jm()) {
|
|
1092
|
+
tmp4_local0 = tmp7_input.dm(tmp0_desc, 0);
|
|
1082
1093
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1083
|
-
tmp5_local1 = tmp7_input.
|
|
1094
|
+
tmp5_local1 = tmp7_input.dm(tmp0_desc, 1);
|
|
1084
1095
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1085
|
-
tmp6_local2 = tmp7_input.
|
|
1096
|
+
tmp6_local2 = tmp7_input.dm(tmp0_desc, 2);
|
|
1086
1097
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1087
1098
|
} else
|
|
1088
1099
|
while (tmp1_flag) {
|
|
1089
|
-
tmp2_index = tmp7_input.
|
|
1100
|
+
tmp2_index = tmp7_input.km(tmp0_desc);
|
|
1090
1101
|
switch (tmp2_index) {
|
|
1091
1102
|
case -1:
|
|
1092
1103
|
tmp1_flag = false;
|
|
1093
1104
|
break;
|
|
1094
1105
|
case 0:
|
|
1095
|
-
tmp4_local0 = tmp7_input.
|
|
1106
|
+
tmp4_local0 = tmp7_input.dm(tmp0_desc, 0);
|
|
1096
1107
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1097
1108
|
break;
|
|
1098
1109
|
case 1:
|
|
1099
|
-
tmp5_local1 = tmp7_input.
|
|
1110
|
+
tmp5_local1 = tmp7_input.dm(tmp0_desc, 1);
|
|
1100
1111
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1101
1112
|
break;
|
|
1102
1113
|
case 2:
|
|
1103
|
-
tmp6_local2 = tmp7_input.
|
|
1114
|
+
tmp6_local2 = tmp7_input.dm(tmp0_desc, 2);
|
|
1104
1115
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1105
1116
|
break;
|
|
1106
1117
|
default:
|
|
1107
1118
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1108
1119
|
}
|
|
1109
1120
|
}
|
|
1110
|
-
tmp7_input.
|
|
1121
|
+
tmp7_input.ul(tmp0_desc);
|
|
1111
1122
|
return CommerceCta_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1112
1123
|
};
|
|
1113
|
-
protoOf($serializer_0).
|
|
1114
|
-
return this.
|
|
1124
|
+
protoOf($serializer_0).wi = function () {
|
|
1125
|
+
return this.r1g_1;
|
|
1115
1126
|
};
|
|
1116
|
-
protoOf($serializer_0).
|
|
1127
|
+
protoOf($serializer_0).et = function () {
|
|
1117
1128
|
// Inline function 'kotlin.arrayOf' call
|
|
1118
1129
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1119
1130
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1127,11 +1138,11 @@
|
|
|
1127
1138
|
}
|
|
1128
1139
|
function CommerceCta_init_$Init$(seen0, sponsorName, territory, url, serializationConstructorMarker, $this) {
|
|
1129
1140
|
if (!(7 === (7 & seen0))) {
|
|
1130
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_0().
|
|
1141
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_0().r1g_1);
|
|
1131
1142
|
}
|
|
1132
|
-
$this.
|
|
1133
|
-
$this.
|
|
1134
|
-
$this.
|
|
1143
|
+
$this.t1g_1 = sponsorName;
|
|
1144
|
+
$this.u1g_1 = territory;
|
|
1145
|
+
$this.v1g_1 = url;
|
|
1135
1146
|
return $this;
|
|
1136
1147
|
}
|
|
1137
1148
|
function CommerceCta_init_$Create$(seen0, sponsorName, territory, url, serializationConstructorMarker) {
|
|
@@ -1140,12 +1151,12 @@
|
|
|
1140
1151
|
function CommerceCta() {
|
|
1141
1152
|
}
|
|
1142
1153
|
protoOf(CommerceCta).toString = function () {
|
|
1143
|
-
return 'CommerceCta(sponsorName=' + this.
|
|
1154
|
+
return 'CommerceCta(sponsorName=' + this.t1g_1 + ', territory=' + this.u1g_1 + ', url=' + this.v1g_1 + ')';
|
|
1144
1155
|
};
|
|
1145
1156
|
protoOf(CommerceCta).hashCode = function () {
|
|
1146
|
-
var result = getStringHashCode(this.
|
|
1147
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1148
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1157
|
+
var result = getStringHashCode(this.t1g_1);
|
|
1158
|
+
result = imul(result, 31) + getStringHashCode(this.u1g_1) | 0;
|
|
1159
|
+
result = imul(result, 31) + getStringHashCode(this.v1g_1) | 0;
|
|
1149
1160
|
return result;
|
|
1150
1161
|
};
|
|
1151
1162
|
protoOf(CommerceCta).equals = function (other) {
|
|
@@ -1153,55 +1164,55 @@
|
|
|
1153
1164
|
return true;
|
|
1154
1165
|
if (!(other instanceof CommerceCta))
|
|
1155
1166
|
return false;
|
|
1156
|
-
if (!(this.
|
|
1167
|
+
if (!(this.t1g_1 === other.t1g_1))
|
|
1157
1168
|
return false;
|
|
1158
|
-
if (!(this.
|
|
1169
|
+
if (!(this.u1g_1 === other.u1g_1))
|
|
1159
1170
|
return false;
|
|
1160
|
-
if (!(this.
|
|
1171
|
+
if (!(this.v1g_1 === other.v1g_1))
|
|
1161
1172
|
return false;
|
|
1162
1173
|
return true;
|
|
1163
1174
|
};
|
|
1164
1175
|
function $serializer_1() {
|
|
1165
1176
|
$serializer_instance_1 = this;
|
|
1166
1177
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Image', this, 8);
|
|
1167
|
-
tmp0_serialDesc.
|
|
1168
|
-
tmp0_serialDesc.
|
|
1169
|
-
tmp0_serialDesc.
|
|
1170
|
-
tmp0_serialDesc.
|
|
1171
|
-
tmp0_serialDesc.
|
|
1172
|
-
tmp0_serialDesc.
|
|
1173
|
-
tmp0_serialDesc.
|
|
1174
|
-
tmp0_serialDesc.
|
|
1175
|
-
this.
|
|
1176
|
-
}
|
|
1177
|
-
protoOf($serializer_1).
|
|
1178
|
-
var tmp0_desc = this.
|
|
1179
|
-
var tmp1_output = encoder.
|
|
1180
|
-
if (tmp1_output.
|
|
1181
|
-
tmp1_output.
|
|
1182
|
-
}
|
|
1183
|
-
tmp1_output.
|
|
1184
|
-
if (tmp1_output.
|
|
1185
|
-
tmp1_output.
|
|
1186
|
-
}
|
|
1187
|
-
if (tmp1_output.
|
|
1188
|
-
tmp1_output.
|
|
1189
|
-
}
|
|
1190
|
-
tmp1_output.
|
|
1191
|
-
if (tmp1_output.
|
|
1192
|
-
tmp1_output.
|
|
1193
|
-
}
|
|
1194
|
-
if (tmp1_output.
|
|
1195
|
-
tmp1_output.
|
|
1196
|
-
}
|
|
1197
|
-
tmp1_output.
|
|
1198
|
-
tmp1_output.
|
|
1199
|
-
};
|
|
1200
|
-
protoOf($serializer_1).
|
|
1201
|
-
return this.
|
|
1202
|
-
};
|
|
1203
|
-
protoOf($serializer_1).
|
|
1204
|
-
var tmp0_desc = this.
|
|
1178
|
+
tmp0_serialDesc.ct('caption', true);
|
|
1179
|
+
tmp0_serialDesc.ct('cropId', false);
|
|
1180
|
+
tmp0_serialDesc.ct('imageType', true);
|
|
1181
|
+
tmp0_serialDesc.ct('mediaApiUrl', true);
|
|
1182
|
+
tmp0_serialDesc.ct('mediaId', false);
|
|
1183
|
+
tmp0_serialDesc.ct('photographer', true);
|
|
1184
|
+
tmp0_serialDesc.ct('source', true);
|
|
1185
|
+
tmp0_serialDesc.ct('url', false);
|
|
1186
|
+
this.w1g_1 = tmp0_serialDesc;
|
|
1187
|
+
}
|
|
1188
|
+
protoOf($serializer_1).x1g = function (encoder, value) {
|
|
1189
|
+
var tmp0_desc = this.w1g_1;
|
|
1190
|
+
var tmp1_output = encoder.tl(tmp0_desc);
|
|
1191
|
+
if (tmp1_output.pn(tmp0_desc, 0) ? true : !(value.y1g_1 == null)) {
|
|
1192
|
+
tmp1_output.ln(tmp0_desc, 0, StringSerializer_getInstance(), value.y1g_1);
|
|
1193
|
+
}
|
|
1194
|
+
tmp1_output.hn(tmp0_desc, 1, value.z1g_1);
|
|
1195
|
+
if (tmp1_output.pn(tmp0_desc, 2) ? true : !(value.a1h_1 == null)) {
|
|
1196
|
+
tmp1_output.ln(tmp0_desc, 2, StringSerializer_getInstance(), value.a1h_1);
|
|
1197
|
+
}
|
|
1198
|
+
if (tmp1_output.pn(tmp0_desc, 3) ? true : !(value.b1h_1 == null)) {
|
|
1199
|
+
tmp1_output.ln(tmp0_desc, 3, StringSerializer_getInstance(), value.b1h_1);
|
|
1200
|
+
}
|
|
1201
|
+
tmp1_output.hn(tmp0_desc, 4, value.c1h_1);
|
|
1202
|
+
if (tmp1_output.pn(tmp0_desc, 5) ? true : !(value.d1h_1 == null)) {
|
|
1203
|
+
tmp1_output.ln(tmp0_desc, 5, StringSerializer_getInstance(), value.d1h_1);
|
|
1204
|
+
}
|
|
1205
|
+
if (tmp1_output.pn(tmp0_desc, 6) ? true : !(value.e1h_1 == null)) {
|
|
1206
|
+
tmp1_output.ln(tmp0_desc, 6, StringSerializer_getInstance(), value.e1h_1);
|
|
1207
|
+
}
|
|
1208
|
+
tmp1_output.hn(tmp0_desc, 7, value.f1h_1);
|
|
1209
|
+
tmp1_output.ul(tmp0_desc);
|
|
1210
|
+
};
|
|
1211
|
+
protoOf($serializer_1).xi = function (encoder, value) {
|
|
1212
|
+
return this.x1g(encoder, value instanceof Image ? value : THROW_CCE());
|
|
1213
|
+
};
|
|
1214
|
+
protoOf($serializer_1).yi = function (decoder) {
|
|
1215
|
+
var tmp0_desc = this.w1g_1;
|
|
1205
1216
|
var tmp1_flag = true;
|
|
1206
1217
|
var tmp2_index = 0;
|
|
1207
1218
|
var tmp3_bitMask0 = 0;
|
|
@@ -1213,74 +1224,74 @@
|
|
|
1213
1224
|
var tmp9_local5 = null;
|
|
1214
1225
|
var tmp10_local6 = null;
|
|
1215
1226
|
var tmp11_local7 = null;
|
|
1216
|
-
var tmp12_input = decoder.
|
|
1217
|
-
if (tmp12_input.
|
|
1218
|
-
tmp4_local0 = tmp12_input.
|
|
1227
|
+
var tmp12_input = decoder.tl(tmp0_desc);
|
|
1228
|
+
if (tmp12_input.jm()) {
|
|
1229
|
+
tmp4_local0 = tmp12_input.hm(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
1219
1230
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1220
|
-
tmp5_local1 = tmp12_input.
|
|
1231
|
+
tmp5_local1 = tmp12_input.dm(tmp0_desc, 1);
|
|
1221
1232
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1222
|
-
tmp6_local2 = tmp12_input.
|
|
1233
|
+
tmp6_local2 = tmp12_input.hm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1223
1234
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1224
|
-
tmp7_local3 = tmp12_input.
|
|
1235
|
+
tmp7_local3 = tmp12_input.hm(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
1225
1236
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1226
|
-
tmp8_local4 = tmp12_input.
|
|
1237
|
+
tmp8_local4 = tmp12_input.dm(tmp0_desc, 4);
|
|
1227
1238
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1228
|
-
tmp9_local5 = tmp12_input.
|
|
1239
|
+
tmp9_local5 = tmp12_input.hm(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1229
1240
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1230
|
-
tmp10_local6 = tmp12_input.
|
|
1241
|
+
tmp10_local6 = tmp12_input.hm(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1231
1242
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1232
|
-
tmp11_local7 = tmp12_input.
|
|
1243
|
+
tmp11_local7 = tmp12_input.dm(tmp0_desc, 7);
|
|
1233
1244
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1234
1245
|
} else
|
|
1235
1246
|
while (tmp1_flag) {
|
|
1236
|
-
tmp2_index = tmp12_input.
|
|
1247
|
+
tmp2_index = tmp12_input.km(tmp0_desc);
|
|
1237
1248
|
switch (tmp2_index) {
|
|
1238
1249
|
case -1:
|
|
1239
1250
|
tmp1_flag = false;
|
|
1240
1251
|
break;
|
|
1241
1252
|
case 0:
|
|
1242
|
-
tmp4_local0 = tmp12_input.
|
|
1253
|
+
tmp4_local0 = tmp12_input.hm(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
1243
1254
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1244
1255
|
break;
|
|
1245
1256
|
case 1:
|
|
1246
|
-
tmp5_local1 = tmp12_input.
|
|
1257
|
+
tmp5_local1 = tmp12_input.dm(tmp0_desc, 1);
|
|
1247
1258
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1248
1259
|
break;
|
|
1249
1260
|
case 2:
|
|
1250
|
-
tmp6_local2 = tmp12_input.
|
|
1261
|
+
tmp6_local2 = tmp12_input.hm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1251
1262
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1252
1263
|
break;
|
|
1253
1264
|
case 3:
|
|
1254
|
-
tmp7_local3 = tmp12_input.
|
|
1265
|
+
tmp7_local3 = tmp12_input.hm(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
1255
1266
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1256
1267
|
break;
|
|
1257
1268
|
case 4:
|
|
1258
|
-
tmp8_local4 = tmp12_input.
|
|
1269
|
+
tmp8_local4 = tmp12_input.dm(tmp0_desc, 4);
|
|
1259
1270
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1260
1271
|
break;
|
|
1261
1272
|
case 5:
|
|
1262
|
-
tmp9_local5 = tmp12_input.
|
|
1273
|
+
tmp9_local5 = tmp12_input.hm(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1263
1274
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1264
1275
|
break;
|
|
1265
1276
|
case 6:
|
|
1266
|
-
tmp10_local6 = tmp12_input.
|
|
1277
|
+
tmp10_local6 = tmp12_input.hm(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1267
1278
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1268
1279
|
break;
|
|
1269
1280
|
case 7:
|
|
1270
|
-
tmp11_local7 = tmp12_input.
|
|
1281
|
+
tmp11_local7 = tmp12_input.dm(tmp0_desc, 7);
|
|
1271
1282
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1272
1283
|
break;
|
|
1273
1284
|
default:
|
|
1274
1285
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1275
1286
|
}
|
|
1276
1287
|
}
|
|
1277
|
-
tmp12_input.
|
|
1288
|
+
tmp12_input.ul(tmp0_desc);
|
|
1278
1289
|
return Image_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1279
1290
|
};
|
|
1280
|
-
protoOf($serializer_1).
|
|
1281
|
-
return this.
|
|
1291
|
+
protoOf($serializer_1).wi = function () {
|
|
1292
|
+
return this.w1g_1;
|
|
1282
1293
|
};
|
|
1283
|
-
protoOf($serializer_1).
|
|
1294
|
+
protoOf($serializer_1).et = function () {
|
|
1284
1295
|
// Inline function 'kotlin.arrayOf' call
|
|
1285
1296
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1286
1297
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1294,31 +1305,31 @@
|
|
|
1294
1305
|
}
|
|
1295
1306
|
function Image_init_$Init$(seen0, caption, cropId, imageType, mediaApiUrl, mediaId, photographer, source, url, serializationConstructorMarker, $this) {
|
|
1296
1307
|
if (!(146 === (146 & seen0))) {
|
|
1297
|
-
throwMissingFieldException(seen0, 146, $serializer_getInstance_1().
|
|
1308
|
+
throwMissingFieldException(seen0, 146, $serializer_getInstance_1().w1g_1);
|
|
1298
1309
|
}
|
|
1299
1310
|
if (0 === (seen0 & 1))
|
|
1300
|
-
$this.
|
|
1311
|
+
$this.y1g_1 = null;
|
|
1301
1312
|
else
|
|
1302
|
-
$this.
|
|
1303
|
-
$this.
|
|
1313
|
+
$this.y1g_1 = caption;
|
|
1314
|
+
$this.z1g_1 = cropId;
|
|
1304
1315
|
if (0 === (seen0 & 4))
|
|
1305
|
-
$this.
|
|
1316
|
+
$this.a1h_1 = null;
|
|
1306
1317
|
else
|
|
1307
|
-
$this.
|
|
1318
|
+
$this.a1h_1 = imageType;
|
|
1308
1319
|
if (0 === (seen0 & 8))
|
|
1309
|
-
$this.
|
|
1320
|
+
$this.b1h_1 = null;
|
|
1310
1321
|
else
|
|
1311
|
-
$this.
|
|
1312
|
-
$this.
|
|
1322
|
+
$this.b1h_1 = mediaApiUrl;
|
|
1323
|
+
$this.c1h_1 = mediaId;
|
|
1313
1324
|
if (0 === (seen0 & 32))
|
|
1314
|
-
$this.
|
|
1325
|
+
$this.d1h_1 = null;
|
|
1315
1326
|
else
|
|
1316
|
-
$this.
|
|
1327
|
+
$this.d1h_1 = photographer;
|
|
1317
1328
|
if (0 === (seen0 & 64))
|
|
1318
|
-
$this.
|
|
1329
|
+
$this.e1h_1 = null;
|
|
1319
1330
|
else
|
|
1320
|
-
$this.
|
|
1321
|
-
$this.
|
|
1331
|
+
$this.e1h_1 = source;
|
|
1332
|
+
$this.f1h_1 = url;
|
|
1322
1333
|
return $this;
|
|
1323
1334
|
}
|
|
1324
1335
|
function Image_init_$Create$(seen0, caption, cropId, imageType, mediaApiUrl, mediaId, photographer, source, url, serializationConstructorMarker) {
|
|
@@ -1327,17 +1338,17 @@
|
|
|
1327
1338
|
function Image() {
|
|
1328
1339
|
}
|
|
1329
1340
|
protoOf(Image).toString = function () {
|
|
1330
|
-
return 'Image(caption=' + this.
|
|
1341
|
+
return 'Image(caption=' + this.y1g_1 + ', cropId=' + this.z1g_1 + ', imageType=' + this.a1h_1 + ', mediaApiUrl=' + this.b1h_1 + ', mediaId=' + this.c1h_1 + ', photographer=' + this.d1h_1 + ', source=' + this.e1h_1 + ', url=' + this.f1h_1 + ')';
|
|
1331
1342
|
};
|
|
1332
1343
|
protoOf(Image).hashCode = function () {
|
|
1333
|
-
var result = this.
|
|
1334
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1335
|
-
result = imul(result, 31) + (this.
|
|
1336
|
-
result = imul(result, 31) + (this.
|
|
1337
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1338
|
-
result = imul(result, 31) + (this.
|
|
1339
|
-
result = imul(result, 31) + (this.
|
|
1340
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1344
|
+
var result = this.y1g_1 == null ? 0 : getStringHashCode(this.y1g_1);
|
|
1345
|
+
result = imul(result, 31) + getStringHashCode(this.z1g_1) | 0;
|
|
1346
|
+
result = imul(result, 31) + (this.a1h_1 == null ? 0 : getStringHashCode(this.a1h_1)) | 0;
|
|
1347
|
+
result = imul(result, 31) + (this.b1h_1 == null ? 0 : getStringHashCode(this.b1h_1)) | 0;
|
|
1348
|
+
result = imul(result, 31) + getStringHashCode(this.c1h_1) | 0;
|
|
1349
|
+
result = imul(result, 31) + (this.d1h_1 == null ? 0 : getStringHashCode(this.d1h_1)) | 0;
|
|
1350
|
+
result = imul(result, 31) + (this.e1h_1 == null ? 0 : getStringHashCode(this.e1h_1)) | 0;
|
|
1351
|
+
result = imul(result, 31) + getStringHashCode(this.f1h_1) | 0;
|
|
1341
1352
|
return result;
|
|
1342
1353
|
};
|
|
1343
1354
|
protoOf(Image).equals = function (other) {
|
|
@@ -1345,21 +1356,21 @@
|
|
|
1345
1356
|
return true;
|
|
1346
1357
|
if (!(other instanceof Image))
|
|
1347
1358
|
return false;
|
|
1348
|
-
if (!(this.
|
|
1359
|
+
if (!(this.y1g_1 == other.y1g_1))
|
|
1349
1360
|
return false;
|
|
1350
|
-
if (!(this.
|
|
1361
|
+
if (!(this.z1g_1 === other.z1g_1))
|
|
1351
1362
|
return false;
|
|
1352
|
-
if (!(this.
|
|
1363
|
+
if (!(this.a1h_1 == other.a1h_1))
|
|
1353
1364
|
return false;
|
|
1354
|
-
if (!(this.
|
|
1365
|
+
if (!(this.b1h_1 == other.b1h_1))
|
|
1355
1366
|
return false;
|
|
1356
|
-
if (!(this.
|
|
1367
|
+
if (!(this.c1h_1 === other.c1h_1))
|
|
1357
1368
|
return false;
|
|
1358
|
-
if (!(this.
|
|
1369
|
+
if (!(this.d1h_1 == other.d1h_1))
|
|
1359
1370
|
return false;
|
|
1360
|
-
if (!(this.
|
|
1371
|
+
if (!(this.e1h_1 == other.e1h_1))
|
|
1361
1372
|
return false;
|
|
1362
|
-
if (!(this.
|
|
1373
|
+
if (!(this.f1h_1 === other.f1h_1))
|
|
1363
1374
|
return false;
|
|
1364
1375
|
return true;
|
|
1365
1376
|
};
|
|
@@ -1373,7 +1384,7 @@
|
|
|
1373
1384
|
// Inline function 'kotlin.arrayOf' call
|
|
1374
1385
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1375
1386
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1376
|
-
tmp.
|
|
1387
|
+
tmp.g1h_1 = [lazy(tmp_0, IngredientsList$Companion$$childSerializers$_anonymous__y7k6ja), null];
|
|
1377
1388
|
}
|
|
1378
1389
|
var Companion_instance_0;
|
|
1379
1390
|
function Companion_getInstance_0() {
|
|
@@ -1384,66 +1395,66 @@
|
|
|
1384
1395
|
function $serializer_2() {
|
|
1385
1396
|
$serializer_instance_2 = this;
|
|
1386
1397
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.IngredientsList', this, 2);
|
|
1387
|
-
tmp0_serialDesc.
|
|
1388
|
-
tmp0_serialDesc.
|
|
1389
|
-
this.
|
|
1398
|
+
tmp0_serialDesc.ct('ingredientsList', true);
|
|
1399
|
+
tmp0_serialDesc.ct('recipeSection', true);
|
|
1400
|
+
this.h1h_1 = tmp0_serialDesc;
|
|
1390
1401
|
}
|
|
1391
|
-
protoOf($serializer_2).
|
|
1392
|
-
var tmp0_desc = this.
|
|
1393
|
-
var tmp1_output = encoder.
|
|
1394
|
-
var tmp2_cached = Companion_getInstance_0().
|
|
1395
|
-
if (tmp1_output.
|
|
1396
|
-
tmp1_output.
|
|
1402
|
+
protoOf($serializer_2).i1h = function (encoder, value) {
|
|
1403
|
+
var tmp0_desc = this.h1h_1;
|
|
1404
|
+
var tmp1_output = encoder.tl(tmp0_desc);
|
|
1405
|
+
var tmp2_cached = Companion_getInstance_0().g1h_1;
|
|
1406
|
+
if (tmp1_output.pn(tmp0_desc, 0) ? true : !(value.v1f_1 == null)) {
|
|
1407
|
+
tmp1_output.ln(tmp0_desc, 0, tmp2_cached[0].t1(), value.v1f_1);
|
|
1397
1408
|
}
|
|
1398
|
-
if (tmp1_output.
|
|
1399
|
-
tmp1_output.
|
|
1409
|
+
if (tmp1_output.pn(tmp0_desc, 1) ? true : !(value.w1f_1 == null)) {
|
|
1410
|
+
tmp1_output.ln(tmp0_desc, 1, StringSerializer_getInstance(), value.w1f_1);
|
|
1400
1411
|
}
|
|
1401
|
-
tmp1_output.
|
|
1412
|
+
tmp1_output.ul(tmp0_desc);
|
|
1402
1413
|
};
|
|
1403
|
-
protoOf($serializer_2).
|
|
1404
|
-
return this.
|
|
1414
|
+
protoOf($serializer_2).xi = function (encoder, value) {
|
|
1415
|
+
return this.i1h(encoder, value instanceof IngredientsList ? value : THROW_CCE());
|
|
1405
1416
|
};
|
|
1406
|
-
protoOf($serializer_2).
|
|
1407
|
-
var tmp0_desc = this.
|
|
1417
|
+
protoOf($serializer_2).yi = function (decoder) {
|
|
1418
|
+
var tmp0_desc = this.h1h_1;
|
|
1408
1419
|
var tmp1_flag = true;
|
|
1409
1420
|
var tmp2_index = 0;
|
|
1410
1421
|
var tmp3_bitMask0 = 0;
|
|
1411
1422
|
var tmp4_local0 = null;
|
|
1412
1423
|
var tmp5_local1 = null;
|
|
1413
|
-
var tmp6_input = decoder.
|
|
1414
|
-
var tmp7_cached = Companion_getInstance_0().
|
|
1415
|
-
if (tmp6_input.
|
|
1416
|
-
tmp4_local0 = tmp6_input.
|
|
1424
|
+
var tmp6_input = decoder.tl(tmp0_desc);
|
|
1425
|
+
var tmp7_cached = Companion_getInstance_0().g1h_1;
|
|
1426
|
+
if (tmp6_input.jm()) {
|
|
1427
|
+
tmp4_local0 = tmp6_input.hm(tmp0_desc, 0, tmp7_cached[0].t1(), tmp4_local0);
|
|
1417
1428
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1418
|
-
tmp5_local1 = tmp6_input.
|
|
1429
|
+
tmp5_local1 = tmp6_input.hm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1419
1430
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1420
1431
|
} else
|
|
1421
1432
|
while (tmp1_flag) {
|
|
1422
|
-
tmp2_index = tmp6_input.
|
|
1433
|
+
tmp2_index = tmp6_input.km(tmp0_desc);
|
|
1423
1434
|
switch (tmp2_index) {
|
|
1424
1435
|
case -1:
|
|
1425
1436
|
tmp1_flag = false;
|
|
1426
1437
|
break;
|
|
1427
1438
|
case 0:
|
|
1428
|
-
tmp4_local0 = tmp6_input.
|
|
1439
|
+
tmp4_local0 = tmp6_input.hm(tmp0_desc, 0, tmp7_cached[0].t1(), tmp4_local0);
|
|
1429
1440
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1430
1441
|
break;
|
|
1431
1442
|
case 1:
|
|
1432
|
-
tmp5_local1 = tmp6_input.
|
|
1443
|
+
tmp5_local1 = tmp6_input.hm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1433
1444
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1434
1445
|
break;
|
|
1435
1446
|
default:
|
|
1436
1447
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1437
1448
|
}
|
|
1438
1449
|
}
|
|
1439
|
-
tmp6_input.
|
|
1450
|
+
tmp6_input.ul(tmp0_desc);
|
|
1440
1451
|
return IngredientsList_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1441
1452
|
};
|
|
1442
|
-
protoOf($serializer_2).
|
|
1443
|
-
return this.
|
|
1453
|
+
protoOf($serializer_2).wi = function () {
|
|
1454
|
+
return this.h1h_1;
|
|
1444
1455
|
};
|
|
1445
|
-
protoOf($serializer_2).
|
|
1446
|
-
var tmp0_cached = Companion_getInstance_0().
|
|
1456
|
+
protoOf($serializer_2).et = function () {
|
|
1457
|
+
var tmp0_cached = Companion_getInstance_0().g1h_1;
|
|
1447
1458
|
// Inline function 'kotlin.arrayOf' call
|
|
1448
1459
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1449
1460
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1457,16 +1468,16 @@
|
|
|
1457
1468
|
}
|
|
1458
1469
|
function IngredientsList_init_$Init$(seen0, ingredientsList, recipeSection, serializationConstructorMarker, $this) {
|
|
1459
1470
|
if (!(0 === (0 & seen0))) {
|
|
1460
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_2().
|
|
1471
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_2().h1h_1);
|
|
1461
1472
|
}
|
|
1462
1473
|
if (0 === (seen0 & 1))
|
|
1463
|
-
$this.
|
|
1474
|
+
$this.v1f_1 = null;
|
|
1464
1475
|
else
|
|
1465
|
-
$this.
|
|
1476
|
+
$this.v1f_1 = ingredientsList;
|
|
1466
1477
|
if (0 === (seen0 & 2))
|
|
1467
|
-
$this.
|
|
1478
|
+
$this.w1f_1 = null;
|
|
1468
1479
|
else
|
|
1469
|
-
$this.
|
|
1480
|
+
$this.w1f_1 = recipeSection;
|
|
1470
1481
|
return $this;
|
|
1471
1482
|
}
|
|
1472
1483
|
function IngredientsList_init_$Create$(seen0, ingredientsList, recipeSection, serializationConstructorMarker) {
|
|
@@ -1476,15 +1487,15 @@
|
|
|
1476
1487
|
Companion_getInstance_0();
|
|
1477
1488
|
ingredientsList = ingredientsList === VOID ? null : ingredientsList;
|
|
1478
1489
|
recipeSection = recipeSection === VOID ? null : recipeSection;
|
|
1479
|
-
this.
|
|
1480
|
-
this.
|
|
1490
|
+
this.v1f_1 = ingredientsList;
|
|
1491
|
+
this.w1f_1 = recipeSection;
|
|
1481
1492
|
}
|
|
1482
1493
|
protoOf(IngredientsList).toString = function () {
|
|
1483
|
-
return 'IngredientsList(ingredientsList=' + toString(this.
|
|
1494
|
+
return 'IngredientsList(ingredientsList=' + toString(this.v1f_1) + ', recipeSection=' + this.w1f_1 + ')';
|
|
1484
1495
|
};
|
|
1485
1496
|
protoOf(IngredientsList).hashCode = function () {
|
|
1486
|
-
var result = this.
|
|
1487
|
-
result = imul(result, 31) + (this.
|
|
1497
|
+
var result = this.v1f_1 == null ? 0 : hashCode(this.v1f_1);
|
|
1498
|
+
result = imul(result, 31) + (this.w1f_1 == null ? 0 : getStringHashCode(this.w1f_1)) | 0;
|
|
1488
1499
|
return result;
|
|
1489
1500
|
};
|
|
1490
1501
|
protoOf(IngredientsList).equals = function (other) {
|
|
@@ -1492,9 +1503,9 @@
|
|
|
1492
1503
|
return true;
|
|
1493
1504
|
if (!(other instanceof IngredientsList))
|
|
1494
1505
|
return false;
|
|
1495
|
-
if (!equals(this.
|
|
1506
|
+
if (!equals(this.v1f_1, other.v1f_1))
|
|
1496
1507
|
return false;
|
|
1497
|
-
if (!(this.
|
|
1508
|
+
if (!(this.w1f_1 == other.w1f_1))
|
|
1498
1509
|
return false;
|
|
1499
1510
|
return true;
|
|
1500
1511
|
};
|
|
@@ -1507,54 +1518,54 @@
|
|
|
1507
1518
|
function $serializer_3() {
|
|
1508
1519
|
$serializer_instance_3 = this;
|
|
1509
1520
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.IngredientItem', this, 9);
|
|
1510
|
-
tmp0_serialDesc.
|
|
1511
|
-
tmp0_serialDesc.
|
|
1512
|
-
tmp0_serialDesc.
|
|
1513
|
-
tmp0_serialDesc.
|
|
1514
|
-
tmp0_serialDesc.
|
|
1515
|
-
tmp0_serialDesc.
|
|
1516
|
-
tmp0_serialDesc.
|
|
1517
|
-
tmp0_serialDesc.
|
|
1518
|
-
tmp0_serialDesc.
|
|
1519
|
-
this.
|
|
1521
|
+
tmp0_serialDesc.ct('amount', true);
|
|
1522
|
+
tmp0_serialDesc.ct('ingredientId', true);
|
|
1523
|
+
tmp0_serialDesc.ct('name', true);
|
|
1524
|
+
tmp0_serialDesc.ct('optional', true);
|
|
1525
|
+
tmp0_serialDesc.ct('prefix', true);
|
|
1526
|
+
tmp0_serialDesc.ct('suffix', true);
|
|
1527
|
+
tmp0_serialDesc.ct('template', true);
|
|
1528
|
+
tmp0_serialDesc.ct('text', true);
|
|
1529
|
+
tmp0_serialDesc.ct('unit', true);
|
|
1530
|
+
this.j1h_1 = tmp0_serialDesc;
|
|
1520
1531
|
}
|
|
1521
|
-
protoOf($serializer_3).
|
|
1522
|
-
var tmp0_desc = this.
|
|
1523
|
-
var tmp1_output = encoder.
|
|
1524
|
-
if (tmp1_output.
|
|
1525
|
-
tmp1_output.
|
|
1532
|
+
protoOf($serializer_3).k1h = function (encoder, value) {
|
|
1533
|
+
var tmp0_desc = this.j1h_1;
|
|
1534
|
+
var tmp1_output = encoder.tl(tmp0_desc);
|
|
1535
|
+
if (tmp1_output.pn(tmp0_desc, 0) ? true : !(value.x1f_1 == null)) {
|
|
1536
|
+
tmp1_output.ln(tmp0_desc, 0, $serializer_getInstance_4(), value.x1f_1);
|
|
1526
1537
|
}
|
|
1527
|
-
if (tmp1_output.
|
|
1528
|
-
tmp1_output.
|
|
1538
|
+
if (tmp1_output.pn(tmp0_desc, 1) ? true : !(value.y1f_1 == null)) {
|
|
1539
|
+
tmp1_output.ln(tmp0_desc, 1, StringSerializer_getInstance(), value.y1f_1);
|
|
1529
1540
|
}
|
|
1530
|
-
if (tmp1_output.
|
|
1531
|
-
tmp1_output.
|
|
1541
|
+
if (tmp1_output.pn(tmp0_desc, 2) ? true : !(value.z1f_1 == null)) {
|
|
1542
|
+
tmp1_output.ln(tmp0_desc, 2, StringSerializer_getInstance(), value.z1f_1);
|
|
1532
1543
|
}
|
|
1533
|
-
if (tmp1_output.
|
|
1534
|
-
tmp1_output.
|
|
1544
|
+
if (tmp1_output.pn(tmp0_desc, 3) ? true : !(value.a1g_1 == null)) {
|
|
1545
|
+
tmp1_output.ln(tmp0_desc, 3, BooleanSerializer_getInstance(), value.a1g_1);
|
|
1535
1546
|
}
|
|
1536
|
-
if (tmp1_output.
|
|
1537
|
-
tmp1_output.
|
|
1547
|
+
if (tmp1_output.pn(tmp0_desc, 4) ? true : !(value.b1g_1 == null)) {
|
|
1548
|
+
tmp1_output.ln(tmp0_desc, 4, StringSerializer_getInstance(), value.b1g_1);
|
|
1538
1549
|
}
|
|
1539
|
-
if (tmp1_output.
|
|
1540
|
-
tmp1_output.
|
|
1550
|
+
if (tmp1_output.pn(tmp0_desc, 5) ? true : !(value.c1g_1 == null)) {
|
|
1551
|
+
tmp1_output.ln(tmp0_desc, 5, StringSerializer_getInstance(), value.c1g_1);
|
|
1541
1552
|
}
|
|
1542
|
-
if (tmp1_output.
|
|
1543
|
-
tmp1_output.
|
|
1553
|
+
if (tmp1_output.pn(tmp0_desc, 6) ? true : !(value.d1g_1 == null)) {
|
|
1554
|
+
tmp1_output.ln(tmp0_desc, 6, StringSerializer_getInstance(), value.d1g_1);
|
|
1544
1555
|
}
|
|
1545
|
-
if (tmp1_output.
|
|
1546
|
-
tmp1_output.
|
|
1556
|
+
if (tmp1_output.pn(tmp0_desc, 7) ? true : !(value.e1g_1 == null)) {
|
|
1557
|
+
tmp1_output.ln(tmp0_desc, 7, StringSerializer_getInstance(), value.e1g_1);
|
|
1547
1558
|
}
|
|
1548
|
-
if (tmp1_output.
|
|
1549
|
-
tmp1_output.
|
|
1559
|
+
if (tmp1_output.pn(tmp0_desc, 8) ? true : !(value.f1g_1 == null)) {
|
|
1560
|
+
tmp1_output.ln(tmp0_desc, 8, StringSerializer_getInstance(), value.f1g_1);
|
|
1550
1561
|
}
|
|
1551
|
-
tmp1_output.
|
|
1562
|
+
tmp1_output.ul(tmp0_desc);
|
|
1552
1563
|
};
|
|
1553
|
-
protoOf($serializer_3).
|
|
1554
|
-
return this.
|
|
1564
|
+
protoOf($serializer_3).xi = function (encoder, value) {
|
|
1565
|
+
return this.k1h(encoder, value instanceof IngredientItem ? value : THROW_CCE());
|
|
1555
1566
|
};
|
|
1556
|
-
protoOf($serializer_3).
|
|
1557
|
-
var tmp0_desc = this.
|
|
1567
|
+
protoOf($serializer_3).yi = function (decoder) {
|
|
1568
|
+
var tmp0_desc = this.j1h_1;
|
|
1558
1569
|
var tmp1_flag = true;
|
|
1559
1570
|
var tmp2_index = 0;
|
|
1560
1571
|
var tmp3_bitMask0 = 0;
|
|
@@ -1567,80 +1578,80 @@
|
|
|
1567
1578
|
var tmp10_local6 = null;
|
|
1568
1579
|
var tmp11_local7 = null;
|
|
1569
1580
|
var tmp12_local8 = null;
|
|
1570
|
-
var tmp13_input = decoder.
|
|
1571
|
-
if (tmp13_input.
|
|
1572
|
-
tmp4_local0 = tmp13_input.
|
|
1581
|
+
var tmp13_input = decoder.tl(tmp0_desc);
|
|
1582
|
+
if (tmp13_input.jm()) {
|
|
1583
|
+
tmp4_local0 = tmp13_input.hm(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1573
1584
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1574
|
-
tmp5_local1 = tmp13_input.
|
|
1585
|
+
tmp5_local1 = tmp13_input.hm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1575
1586
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1576
|
-
tmp6_local2 = tmp13_input.
|
|
1587
|
+
tmp6_local2 = tmp13_input.hm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1577
1588
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1578
|
-
tmp7_local3 = tmp13_input.
|
|
1589
|
+
tmp7_local3 = tmp13_input.hm(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3);
|
|
1579
1590
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1580
|
-
tmp8_local4 = tmp13_input.
|
|
1591
|
+
tmp8_local4 = tmp13_input.hm(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
1581
1592
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1582
|
-
tmp9_local5 = tmp13_input.
|
|
1593
|
+
tmp9_local5 = tmp13_input.hm(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1583
1594
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1584
|
-
tmp10_local6 = tmp13_input.
|
|
1595
|
+
tmp10_local6 = tmp13_input.hm(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1585
1596
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1586
|
-
tmp11_local7 = tmp13_input.
|
|
1597
|
+
tmp11_local7 = tmp13_input.hm(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
1587
1598
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1588
|
-
tmp12_local8 = tmp13_input.
|
|
1599
|
+
tmp12_local8 = tmp13_input.hm(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
1589
1600
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
1590
1601
|
} else
|
|
1591
1602
|
while (tmp1_flag) {
|
|
1592
|
-
tmp2_index = tmp13_input.
|
|
1603
|
+
tmp2_index = tmp13_input.km(tmp0_desc);
|
|
1593
1604
|
switch (tmp2_index) {
|
|
1594
1605
|
case -1:
|
|
1595
1606
|
tmp1_flag = false;
|
|
1596
1607
|
break;
|
|
1597
1608
|
case 0:
|
|
1598
|
-
tmp4_local0 = tmp13_input.
|
|
1609
|
+
tmp4_local0 = tmp13_input.hm(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1599
1610
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1600
1611
|
break;
|
|
1601
1612
|
case 1:
|
|
1602
|
-
tmp5_local1 = tmp13_input.
|
|
1613
|
+
tmp5_local1 = tmp13_input.hm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1603
1614
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1604
1615
|
break;
|
|
1605
1616
|
case 2:
|
|
1606
|
-
tmp6_local2 = tmp13_input.
|
|
1617
|
+
tmp6_local2 = tmp13_input.hm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1607
1618
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1608
1619
|
break;
|
|
1609
1620
|
case 3:
|
|
1610
|
-
tmp7_local3 = tmp13_input.
|
|
1621
|
+
tmp7_local3 = tmp13_input.hm(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3);
|
|
1611
1622
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1612
1623
|
break;
|
|
1613
1624
|
case 4:
|
|
1614
|
-
tmp8_local4 = tmp13_input.
|
|
1625
|
+
tmp8_local4 = tmp13_input.hm(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
1615
1626
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1616
1627
|
break;
|
|
1617
1628
|
case 5:
|
|
1618
|
-
tmp9_local5 = tmp13_input.
|
|
1629
|
+
tmp9_local5 = tmp13_input.hm(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
1619
1630
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1620
1631
|
break;
|
|
1621
1632
|
case 6:
|
|
1622
|
-
tmp10_local6 = tmp13_input.
|
|
1633
|
+
tmp10_local6 = tmp13_input.hm(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1623
1634
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1624
1635
|
break;
|
|
1625
1636
|
case 7:
|
|
1626
|
-
tmp11_local7 = tmp13_input.
|
|
1637
|
+
tmp11_local7 = tmp13_input.hm(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
|
|
1627
1638
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1628
1639
|
break;
|
|
1629
1640
|
case 8:
|
|
1630
|
-
tmp12_local8 = tmp13_input.
|
|
1641
|
+
tmp12_local8 = tmp13_input.hm(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
|
|
1631
1642
|
tmp3_bitMask0 = tmp3_bitMask0 | 256;
|
|
1632
1643
|
break;
|
|
1633
1644
|
default:
|
|
1634
1645
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1635
1646
|
}
|
|
1636
1647
|
}
|
|
1637
|
-
tmp13_input.
|
|
1648
|
+
tmp13_input.ul(tmp0_desc);
|
|
1638
1649
|
return IngredientItem_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null);
|
|
1639
1650
|
};
|
|
1640
|
-
protoOf($serializer_3).
|
|
1641
|
-
return this.
|
|
1651
|
+
protoOf($serializer_3).wi = function () {
|
|
1652
|
+
return this.j1h_1;
|
|
1642
1653
|
};
|
|
1643
|
-
protoOf($serializer_3).
|
|
1654
|
+
protoOf($serializer_3).et = function () {
|
|
1644
1655
|
// Inline function 'kotlin.arrayOf' call
|
|
1645
1656
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1646
1657
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1654,44 +1665,44 @@
|
|
|
1654
1665
|
}
|
|
1655
1666
|
function IngredientItem_init_$Init$(seen0, amount, ingredientId, name, optional, prefix, suffix, template, text, unit, serializationConstructorMarker, $this) {
|
|
1656
1667
|
if (!(0 === (0 & seen0))) {
|
|
1657
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_3().
|
|
1668
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_3().j1h_1);
|
|
1658
1669
|
}
|
|
1659
1670
|
if (0 === (seen0 & 1))
|
|
1660
|
-
$this.
|
|
1671
|
+
$this.x1f_1 = null;
|
|
1661
1672
|
else
|
|
1662
|
-
$this.
|
|
1673
|
+
$this.x1f_1 = amount;
|
|
1663
1674
|
if (0 === (seen0 & 2))
|
|
1664
|
-
$this.
|
|
1675
|
+
$this.y1f_1 = null;
|
|
1665
1676
|
else
|
|
1666
|
-
$this.
|
|
1677
|
+
$this.y1f_1 = ingredientId;
|
|
1667
1678
|
if (0 === (seen0 & 4))
|
|
1668
|
-
$this.
|
|
1679
|
+
$this.z1f_1 = null;
|
|
1669
1680
|
else
|
|
1670
|
-
$this.
|
|
1681
|
+
$this.z1f_1 = name;
|
|
1671
1682
|
if (0 === (seen0 & 8))
|
|
1672
|
-
$this.
|
|
1683
|
+
$this.a1g_1 = null;
|
|
1673
1684
|
else
|
|
1674
|
-
$this.
|
|
1685
|
+
$this.a1g_1 = optional;
|
|
1675
1686
|
if (0 === (seen0 & 16))
|
|
1676
|
-
$this.
|
|
1687
|
+
$this.b1g_1 = null;
|
|
1677
1688
|
else
|
|
1678
|
-
$this.
|
|
1689
|
+
$this.b1g_1 = prefix;
|
|
1679
1690
|
if (0 === (seen0 & 32))
|
|
1680
|
-
$this.
|
|
1691
|
+
$this.c1g_1 = null;
|
|
1681
1692
|
else
|
|
1682
|
-
$this.
|
|
1693
|
+
$this.c1g_1 = suffix;
|
|
1683
1694
|
if (0 === (seen0 & 64))
|
|
1684
|
-
$this.
|
|
1695
|
+
$this.d1g_1 = null;
|
|
1685
1696
|
else
|
|
1686
|
-
$this.
|
|
1697
|
+
$this.d1g_1 = template;
|
|
1687
1698
|
if (0 === (seen0 & 128))
|
|
1688
|
-
$this.
|
|
1699
|
+
$this.e1g_1 = null;
|
|
1689
1700
|
else
|
|
1690
|
-
$this.
|
|
1701
|
+
$this.e1g_1 = text;
|
|
1691
1702
|
if (0 === (seen0 & 256))
|
|
1692
|
-
$this.
|
|
1703
|
+
$this.f1g_1 = null;
|
|
1693
1704
|
else
|
|
1694
|
-
$this.
|
|
1705
|
+
$this.f1g_1 = unit;
|
|
1695
1706
|
return $this;
|
|
1696
1707
|
}
|
|
1697
1708
|
function IngredientItem_init_$Create$(seen0, amount, ingredientId, name, optional, prefix, suffix, template, text, unit, serializationConstructorMarker) {
|
|
@@ -1707,44 +1718,44 @@
|
|
|
1707
1718
|
template = template === VOID ? null : template;
|
|
1708
1719
|
text = text === VOID ? null : text;
|
|
1709
1720
|
unit = unit === VOID ? null : unit;
|
|
1710
|
-
this.
|
|
1711
|
-
this.
|
|
1712
|
-
this.
|
|
1713
|
-
this.
|
|
1714
|
-
this.
|
|
1715
|
-
this.
|
|
1716
|
-
this.
|
|
1717
|
-
this.
|
|
1718
|
-
this.
|
|
1719
|
-
}
|
|
1720
|
-
protoOf(IngredientItem).
|
|
1721
|
+
this.x1f_1 = amount;
|
|
1722
|
+
this.y1f_1 = ingredientId;
|
|
1723
|
+
this.z1f_1 = name;
|
|
1724
|
+
this.a1g_1 = optional;
|
|
1725
|
+
this.b1g_1 = prefix;
|
|
1726
|
+
this.c1g_1 = suffix;
|
|
1727
|
+
this.d1g_1 = template;
|
|
1728
|
+
this.e1g_1 = text;
|
|
1729
|
+
this.f1g_1 = unit;
|
|
1730
|
+
}
|
|
1731
|
+
protoOf(IngredientItem).l1h = function (amount, ingredientId, name, optional, prefix, suffix, template, text, unit) {
|
|
1721
1732
|
return new IngredientItem(amount, ingredientId, name, optional, prefix, suffix, template, text, unit);
|
|
1722
1733
|
};
|
|
1723
|
-
protoOf(IngredientItem).
|
|
1724
|
-
amount = amount === VOID ? this.
|
|
1725
|
-
ingredientId = ingredientId === VOID ? this.
|
|
1726
|
-
name = name === VOID ? this.
|
|
1727
|
-
optional = optional === VOID ? this.
|
|
1728
|
-
prefix = prefix === VOID ? this.
|
|
1729
|
-
suffix = suffix === VOID ? this.
|
|
1730
|
-
template = template === VOID ? this.
|
|
1731
|
-
text = text === VOID ? this.
|
|
1732
|
-
unit = unit === VOID ? this.
|
|
1733
|
-
return $super === VOID ? this.
|
|
1734
|
+
protoOf(IngredientItem).g1g = function (amount, ingredientId, name, optional, prefix, suffix, template, text, unit, $super) {
|
|
1735
|
+
amount = amount === VOID ? this.x1f_1 : amount;
|
|
1736
|
+
ingredientId = ingredientId === VOID ? this.y1f_1 : ingredientId;
|
|
1737
|
+
name = name === VOID ? this.z1f_1 : name;
|
|
1738
|
+
optional = optional === VOID ? this.a1g_1 : optional;
|
|
1739
|
+
prefix = prefix === VOID ? this.b1g_1 : prefix;
|
|
1740
|
+
suffix = suffix === VOID ? this.c1g_1 : suffix;
|
|
1741
|
+
template = template === VOID ? this.d1g_1 : template;
|
|
1742
|
+
text = text === VOID ? this.e1g_1 : text;
|
|
1743
|
+
unit = unit === VOID ? this.f1g_1 : unit;
|
|
1744
|
+
return $super === VOID ? this.l1h(amount, ingredientId, name, optional, prefix, suffix, template, text, unit) : $super.l1h.call(this, amount, ingredientId, name, optional, prefix, suffix, template, text, unit);
|
|
1734
1745
|
};
|
|
1735
1746
|
protoOf(IngredientItem).toString = function () {
|
|
1736
|
-
return 'IngredientItem(amount=' + toString(this.
|
|
1747
|
+
return 'IngredientItem(amount=' + toString(this.x1f_1) + ', ingredientId=' + this.y1f_1 + ', name=' + this.z1f_1 + ', optional=' + this.a1g_1 + ', prefix=' + this.b1g_1 + ', suffix=' + this.c1g_1 + ', template=' + this.d1g_1 + ', text=' + this.e1g_1 + ', unit=' + this.f1g_1 + ')';
|
|
1737
1748
|
};
|
|
1738
1749
|
protoOf(IngredientItem).hashCode = function () {
|
|
1739
|
-
var result = this.
|
|
1740
|
-
result = imul(result, 31) + (this.
|
|
1741
|
-
result = imul(result, 31) + (this.
|
|
1742
|
-
result = imul(result, 31) + (this.
|
|
1743
|
-
result = imul(result, 31) + (this.
|
|
1744
|
-
result = imul(result, 31) + (this.
|
|
1745
|
-
result = imul(result, 31) + (this.
|
|
1746
|
-
result = imul(result, 31) + (this.
|
|
1747
|
-
result = imul(result, 31) + (this.
|
|
1750
|
+
var result = this.x1f_1 == null ? 0 : this.x1f_1.hashCode();
|
|
1751
|
+
result = imul(result, 31) + (this.y1f_1 == null ? 0 : getStringHashCode(this.y1f_1)) | 0;
|
|
1752
|
+
result = imul(result, 31) + (this.z1f_1 == null ? 0 : getStringHashCode(this.z1f_1)) | 0;
|
|
1753
|
+
result = imul(result, 31) + (this.a1g_1 == null ? 0 : getBooleanHashCode(this.a1g_1)) | 0;
|
|
1754
|
+
result = imul(result, 31) + (this.b1g_1 == null ? 0 : getStringHashCode(this.b1g_1)) | 0;
|
|
1755
|
+
result = imul(result, 31) + (this.c1g_1 == null ? 0 : getStringHashCode(this.c1g_1)) | 0;
|
|
1756
|
+
result = imul(result, 31) + (this.d1g_1 == null ? 0 : getStringHashCode(this.d1g_1)) | 0;
|
|
1757
|
+
result = imul(result, 31) + (this.e1g_1 == null ? 0 : getStringHashCode(this.e1g_1)) | 0;
|
|
1758
|
+
result = imul(result, 31) + (this.f1g_1 == null ? 0 : getStringHashCode(this.f1g_1)) | 0;
|
|
1748
1759
|
return result;
|
|
1749
1760
|
};
|
|
1750
1761
|
protoOf(IngredientItem).equals = function (other) {
|
|
@@ -1752,23 +1763,23 @@
|
|
|
1752
1763
|
return true;
|
|
1753
1764
|
if (!(other instanceof IngredientItem))
|
|
1754
1765
|
return false;
|
|
1755
|
-
if (!equals(this.
|
|
1766
|
+
if (!equals(this.x1f_1, other.x1f_1))
|
|
1756
1767
|
return false;
|
|
1757
|
-
if (!(this.
|
|
1768
|
+
if (!(this.y1f_1 == other.y1f_1))
|
|
1758
1769
|
return false;
|
|
1759
|
-
if (!(this.
|
|
1770
|
+
if (!(this.z1f_1 == other.z1f_1))
|
|
1760
1771
|
return false;
|
|
1761
|
-
if (!(this.
|
|
1772
|
+
if (!(this.a1g_1 == other.a1g_1))
|
|
1762
1773
|
return false;
|
|
1763
|
-
if (!(this.
|
|
1774
|
+
if (!(this.b1g_1 == other.b1g_1))
|
|
1764
1775
|
return false;
|
|
1765
|
-
if (!(this.
|
|
1776
|
+
if (!(this.c1g_1 == other.c1g_1))
|
|
1766
1777
|
return false;
|
|
1767
|
-
if (!(this.
|
|
1778
|
+
if (!(this.d1g_1 == other.d1g_1))
|
|
1768
1779
|
return false;
|
|
1769
|
-
if (!(this.
|
|
1780
|
+
if (!(this.e1g_1 == other.e1g_1))
|
|
1770
1781
|
return false;
|
|
1771
|
-
if (!(this.
|
|
1782
|
+
if (!(this.f1g_1 == other.f1g_1))
|
|
1772
1783
|
return false;
|
|
1773
1784
|
return true;
|
|
1774
1785
|
};
|
|
@@ -1781,63 +1792,63 @@
|
|
|
1781
1792
|
function $serializer_4() {
|
|
1782
1793
|
$serializer_instance_4 = this;
|
|
1783
1794
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Range', this, 2);
|
|
1784
|
-
tmp0_serialDesc.
|
|
1785
|
-
tmp0_serialDesc.
|
|
1786
|
-
this.
|
|
1795
|
+
tmp0_serialDesc.ct('max', true);
|
|
1796
|
+
tmp0_serialDesc.ct('min', true);
|
|
1797
|
+
this.m1h_1 = tmp0_serialDesc;
|
|
1787
1798
|
}
|
|
1788
|
-
protoOf($serializer_4).
|
|
1789
|
-
var tmp0_desc = this.
|
|
1790
|
-
var tmp1_output = encoder.
|
|
1791
|
-
if (tmp1_output.
|
|
1792
|
-
tmp1_output.
|
|
1799
|
+
protoOf($serializer_4).n1h = function (encoder, value) {
|
|
1800
|
+
var tmp0_desc = this.m1h_1;
|
|
1801
|
+
var tmp1_output = encoder.tl(tmp0_desc);
|
|
1802
|
+
if (tmp1_output.pn(tmp0_desc, 0) ? true : !(value.o1h_1 == null)) {
|
|
1803
|
+
tmp1_output.ln(tmp0_desc, 0, DoubleSerializer_getInstance(), value.o1h_1);
|
|
1793
1804
|
}
|
|
1794
|
-
if (tmp1_output.
|
|
1795
|
-
tmp1_output.
|
|
1805
|
+
if (tmp1_output.pn(tmp0_desc, 1) ? true : !(value.p1h_1 == null)) {
|
|
1806
|
+
tmp1_output.ln(tmp0_desc, 1, DoubleSerializer_getInstance(), value.p1h_1);
|
|
1796
1807
|
}
|
|
1797
|
-
tmp1_output.
|
|
1808
|
+
tmp1_output.ul(tmp0_desc);
|
|
1798
1809
|
};
|
|
1799
|
-
protoOf($serializer_4).
|
|
1800
|
-
return this.
|
|
1810
|
+
protoOf($serializer_4).xi = function (encoder, value) {
|
|
1811
|
+
return this.n1h(encoder, value instanceof Range ? value : THROW_CCE());
|
|
1801
1812
|
};
|
|
1802
|
-
protoOf($serializer_4).
|
|
1803
|
-
var tmp0_desc = this.
|
|
1813
|
+
protoOf($serializer_4).yi = function (decoder) {
|
|
1814
|
+
var tmp0_desc = this.m1h_1;
|
|
1804
1815
|
var tmp1_flag = true;
|
|
1805
1816
|
var tmp2_index = 0;
|
|
1806
1817
|
var tmp3_bitMask0 = 0;
|
|
1807
1818
|
var tmp4_local0 = null;
|
|
1808
1819
|
var tmp5_local1 = null;
|
|
1809
|
-
var tmp6_input = decoder.
|
|
1810
|
-
if (tmp6_input.
|
|
1811
|
-
tmp4_local0 = tmp6_input.
|
|
1820
|
+
var tmp6_input = decoder.tl(tmp0_desc);
|
|
1821
|
+
if (tmp6_input.jm()) {
|
|
1822
|
+
tmp4_local0 = tmp6_input.hm(tmp0_desc, 0, DoubleSerializer_getInstance(), tmp4_local0);
|
|
1812
1823
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1813
|
-
tmp5_local1 = tmp6_input.
|
|
1824
|
+
tmp5_local1 = tmp6_input.hm(tmp0_desc, 1, DoubleSerializer_getInstance(), tmp5_local1);
|
|
1814
1825
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1815
1826
|
} else
|
|
1816
1827
|
while (tmp1_flag) {
|
|
1817
|
-
tmp2_index = tmp6_input.
|
|
1828
|
+
tmp2_index = tmp6_input.km(tmp0_desc);
|
|
1818
1829
|
switch (tmp2_index) {
|
|
1819
1830
|
case -1:
|
|
1820
1831
|
tmp1_flag = false;
|
|
1821
1832
|
break;
|
|
1822
1833
|
case 0:
|
|
1823
|
-
tmp4_local0 = tmp6_input.
|
|
1834
|
+
tmp4_local0 = tmp6_input.hm(tmp0_desc, 0, DoubleSerializer_getInstance(), tmp4_local0);
|
|
1824
1835
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1825
1836
|
break;
|
|
1826
1837
|
case 1:
|
|
1827
|
-
tmp5_local1 = tmp6_input.
|
|
1838
|
+
tmp5_local1 = tmp6_input.hm(tmp0_desc, 1, DoubleSerializer_getInstance(), tmp5_local1);
|
|
1828
1839
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1829
1840
|
break;
|
|
1830
1841
|
default:
|
|
1831
1842
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1832
1843
|
}
|
|
1833
1844
|
}
|
|
1834
|
-
tmp6_input.
|
|
1845
|
+
tmp6_input.ul(tmp0_desc);
|
|
1835
1846
|
return Range_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1836
1847
|
};
|
|
1837
|
-
protoOf($serializer_4).
|
|
1838
|
-
return this.
|
|
1848
|
+
protoOf($serializer_4).wi = function () {
|
|
1849
|
+
return this.m1h_1;
|
|
1839
1850
|
};
|
|
1840
|
-
protoOf($serializer_4).
|
|
1851
|
+
protoOf($serializer_4).et = function () {
|
|
1841
1852
|
// Inline function 'kotlin.arrayOf' call
|
|
1842
1853
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1843
1854
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1851,16 +1862,16 @@
|
|
|
1851
1862
|
}
|
|
1852
1863
|
function Range_init_$Init$(seen0, max, min, serializationConstructorMarker, $this) {
|
|
1853
1864
|
if (!(0 === (0 & seen0))) {
|
|
1854
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_4().
|
|
1865
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_4().m1h_1);
|
|
1855
1866
|
}
|
|
1856
1867
|
if (0 === (seen0 & 1))
|
|
1857
|
-
$this.
|
|
1868
|
+
$this.o1h_1 = null;
|
|
1858
1869
|
else
|
|
1859
|
-
$this.
|
|
1870
|
+
$this.o1h_1 = max;
|
|
1860
1871
|
if (0 === (seen0 & 2))
|
|
1861
|
-
$this.
|
|
1872
|
+
$this.p1h_1 = null;
|
|
1862
1873
|
else
|
|
1863
|
-
$this.
|
|
1874
|
+
$this.p1h_1 = min;
|
|
1864
1875
|
return $this;
|
|
1865
1876
|
}
|
|
1866
1877
|
function Range_init_$Create$(seen0, max, min, serializationConstructorMarker) {
|
|
@@ -1869,15 +1880,15 @@
|
|
|
1869
1880
|
function Range(max, min) {
|
|
1870
1881
|
max = max === VOID ? null : max;
|
|
1871
1882
|
min = min === VOID ? null : min;
|
|
1872
|
-
this.
|
|
1873
|
-
this.
|
|
1883
|
+
this.o1h_1 = max;
|
|
1884
|
+
this.p1h_1 = min;
|
|
1874
1885
|
}
|
|
1875
1886
|
protoOf(Range).toString = function () {
|
|
1876
|
-
return 'Range(max=' + this.
|
|
1887
|
+
return 'Range(max=' + this.o1h_1 + ', min=' + this.p1h_1 + ')';
|
|
1877
1888
|
};
|
|
1878
1889
|
protoOf(Range).hashCode = function () {
|
|
1879
|
-
var result = this.
|
|
1880
|
-
result = imul(result, 31) + (this.
|
|
1890
|
+
var result = this.o1h_1 == null ? 0 : getNumberHashCode(this.o1h_1);
|
|
1891
|
+
result = imul(result, 31) + (this.p1h_1 == null ? 0 : getNumberHashCode(this.p1h_1)) | 0;
|
|
1881
1892
|
return result;
|
|
1882
1893
|
};
|
|
1883
1894
|
protoOf(Range).equals = function (other) {
|
|
@@ -1885,9 +1896,9 @@
|
|
|
1885
1896
|
return true;
|
|
1886
1897
|
if (!(other instanceof Range))
|
|
1887
1898
|
return false;
|
|
1888
|
-
if (!equals(this.
|
|
1899
|
+
if (!equals(this.o1h_1, other.o1h_1))
|
|
1889
1900
|
return false;
|
|
1890
|
-
if (!equals(this.
|
|
1901
|
+
if (!equals(this.p1h_1, other.p1h_1))
|
|
1891
1902
|
return false;
|
|
1892
1903
|
return true;
|
|
1893
1904
|
};
|
|
@@ -1901,7 +1912,7 @@
|
|
|
1901
1912
|
// Inline function 'kotlin.arrayOf' call
|
|
1902
1913
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1903
1914
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1904
|
-
tmp.
|
|
1915
|
+
tmp.q1h_1 = [null, null, lazy(tmp_0, Instruction$Companion$$childSerializers$_anonymous__sbbefw), null];
|
|
1905
1916
|
}
|
|
1906
1917
|
var Companion_instance_3;
|
|
1907
1918
|
function Companion_getInstance_3() {
|
|
@@ -1912,33 +1923,33 @@
|
|
|
1912
1923
|
function $serializer_5() {
|
|
1913
1924
|
$serializer_instance_5 = this;
|
|
1914
1925
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Instruction', this, 4);
|
|
1915
|
-
tmp0_serialDesc.
|
|
1916
|
-
tmp0_serialDesc.
|
|
1917
|
-
tmp0_serialDesc.
|
|
1918
|
-
tmp0_serialDesc.
|
|
1919
|
-
this.
|
|
1926
|
+
tmp0_serialDesc.ct('description', false);
|
|
1927
|
+
tmp0_serialDesc.ct('descriptionTemplate', true);
|
|
1928
|
+
tmp0_serialDesc.ct('images', true);
|
|
1929
|
+
tmp0_serialDesc.ct('stepNumber', true);
|
|
1930
|
+
this.r1h_1 = tmp0_serialDesc;
|
|
1920
1931
|
}
|
|
1921
|
-
protoOf($serializer_5).
|
|
1922
|
-
var tmp0_desc = this.
|
|
1923
|
-
var tmp1_output = encoder.
|
|
1924
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
1925
|
-
tmp1_output.
|
|
1926
|
-
if (tmp1_output.
|
|
1927
|
-
tmp1_output.
|
|
1932
|
+
protoOf($serializer_5).s1h = function (encoder, value) {
|
|
1933
|
+
var tmp0_desc = this.r1h_1;
|
|
1934
|
+
var tmp1_output = encoder.tl(tmp0_desc);
|
|
1935
|
+
var tmp2_cached = Companion_getInstance_3().q1h_1;
|
|
1936
|
+
tmp1_output.hn(tmp0_desc, 0, value.h1g_1);
|
|
1937
|
+
if (tmp1_output.pn(tmp0_desc, 1) ? true : !(value.i1g_1 == null)) {
|
|
1938
|
+
tmp1_output.ln(tmp0_desc, 1, StringSerializer_getInstance(), value.i1g_1);
|
|
1928
1939
|
}
|
|
1929
|
-
if (tmp1_output.
|
|
1930
|
-
tmp1_output.
|
|
1940
|
+
if (tmp1_output.pn(tmp0_desc, 2) ? true : !(value.j1g_1 == null)) {
|
|
1941
|
+
tmp1_output.ln(tmp0_desc, 2, tmp2_cached[2].t1(), value.j1g_1);
|
|
1931
1942
|
}
|
|
1932
|
-
if (tmp1_output.
|
|
1933
|
-
tmp1_output.
|
|
1943
|
+
if (tmp1_output.pn(tmp0_desc, 3) ? true : !(value.k1g_1 == null)) {
|
|
1944
|
+
tmp1_output.ln(tmp0_desc, 3, DoubleSerializer_getInstance(), value.k1g_1);
|
|
1934
1945
|
}
|
|
1935
|
-
tmp1_output.
|
|
1946
|
+
tmp1_output.ul(tmp0_desc);
|
|
1936
1947
|
};
|
|
1937
|
-
protoOf($serializer_5).
|
|
1938
|
-
return this.
|
|
1948
|
+
protoOf($serializer_5).xi = function (encoder, value) {
|
|
1949
|
+
return this.s1h(encoder, value instanceof Instruction ? value : THROW_CCE());
|
|
1939
1950
|
};
|
|
1940
|
-
protoOf($serializer_5).
|
|
1941
|
-
var tmp0_desc = this.
|
|
1951
|
+
protoOf($serializer_5).yi = function (decoder) {
|
|
1952
|
+
var tmp0_desc = this.r1h_1;
|
|
1942
1953
|
var tmp1_flag = true;
|
|
1943
1954
|
var tmp2_index = 0;
|
|
1944
1955
|
var tmp3_bitMask0 = 0;
|
|
@@ -1946,52 +1957,52 @@
|
|
|
1946
1957
|
var tmp5_local1 = null;
|
|
1947
1958
|
var tmp6_local2 = null;
|
|
1948
1959
|
var tmp7_local3 = null;
|
|
1949
|
-
var tmp8_input = decoder.
|
|
1950
|
-
var tmp9_cached = Companion_getInstance_3().
|
|
1951
|
-
if (tmp8_input.
|
|
1952
|
-
tmp4_local0 = tmp8_input.
|
|
1960
|
+
var tmp8_input = decoder.tl(tmp0_desc);
|
|
1961
|
+
var tmp9_cached = Companion_getInstance_3().q1h_1;
|
|
1962
|
+
if (tmp8_input.jm()) {
|
|
1963
|
+
tmp4_local0 = tmp8_input.dm(tmp0_desc, 0);
|
|
1953
1964
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1954
|
-
tmp5_local1 = tmp8_input.
|
|
1965
|
+
tmp5_local1 = tmp8_input.hm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1955
1966
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1956
|
-
tmp6_local2 = tmp8_input.
|
|
1967
|
+
tmp6_local2 = tmp8_input.hm(tmp0_desc, 2, tmp9_cached[2].t1(), tmp6_local2);
|
|
1957
1968
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1958
|
-
tmp7_local3 = tmp8_input.
|
|
1969
|
+
tmp7_local3 = tmp8_input.hm(tmp0_desc, 3, DoubleSerializer_getInstance(), tmp7_local3);
|
|
1959
1970
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1960
1971
|
} else
|
|
1961
1972
|
while (tmp1_flag) {
|
|
1962
|
-
tmp2_index = tmp8_input.
|
|
1973
|
+
tmp2_index = tmp8_input.km(tmp0_desc);
|
|
1963
1974
|
switch (tmp2_index) {
|
|
1964
1975
|
case -1:
|
|
1965
1976
|
tmp1_flag = false;
|
|
1966
1977
|
break;
|
|
1967
1978
|
case 0:
|
|
1968
|
-
tmp4_local0 = tmp8_input.
|
|
1979
|
+
tmp4_local0 = tmp8_input.dm(tmp0_desc, 0);
|
|
1969
1980
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1970
1981
|
break;
|
|
1971
1982
|
case 1:
|
|
1972
|
-
tmp5_local1 = tmp8_input.
|
|
1983
|
+
tmp5_local1 = tmp8_input.hm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1973
1984
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1974
1985
|
break;
|
|
1975
1986
|
case 2:
|
|
1976
|
-
tmp6_local2 = tmp8_input.
|
|
1987
|
+
tmp6_local2 = tmp8_input.hm(tmp0_desc, 2, tmp9_cached[2].t1(), tmp6_local2);
|
|
1977
1988
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1978
1989
|
break;
|
|
1979
1990
|
case 3:
|
|
1980
|
-
tmp7_local3 = tmp8_input.
|
|
1991
|
+
tmp7_local3 = tmp8_input.hm(tmp0_desc, 3, DoubleSerializer_getInstance(), tmp7_local3);
|
|
1981
1992
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1982
1993
|
break;
|
|
1983
1994
|
default:
|
|
1984
1995
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1985
1996
|
}
|
|
1986
1997
|
}
|
|
1987
|
-
tmp8_input.
|
|
1998
|
+
tmp8_input.ul(tmp0_desc);
|
|
1988
1999
|
return Instruction_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
1989
2000
|
};
|
|
1990
|
-
protoOf($serializer_5).
|
|
1991
|
-
return this.
|
|
2001
|
+
protoOf($serializer_5).wi = function () {
|
|
2002
|
+
return this.r1h_1;
|
|
1992
2003
|
};
|
|
1993
|
-
protoOf($serializer_5).
|
|
1994
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
2004
|
+
protoOf($serializer_5).et = function () {
|
|
2005
|
+
var tmp0_cached = Companion_getInstance_3().q1h_1;
|
|
1995
2006
|
// Inline function 'kotlin.arrayOf' call
|
|
1996
2007
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1997
2008
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2005,21 +2016,21 @@
|
|
|
2005
2016
|
}
|
|
2006
2017
|
function Instruction_init_$Init$(seen0, description, descriptionTemplate, images, stepNumber, serializationConstructorMarker, $this) {
|
|
2007
2018
|
if (!(1 === (1 & seen0))) {
|
|
2008
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_5().
|
|
2019
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_5().r1h_1);
|
|
2009
2020
|
}
|
|
2010
|
-
$this.
|
|
2021
|
+
$this.h1g_1 = description;
|
|
2011
2022
|
if (0 === (seen0 & 2))
|
|
2012
|
-
$this.
|
|
2023
|
+
$this.i1g_1 = null;
|
|
2013
2024
|
else
|
|
2014
|
-
$this.
|
|
2025
|
+
$this.i1g_1 = descriptionTemplate;
|
|
2015
2026
|
if (0 === (seen0 & 4))
|
|
2016
|
-
$this.
|
|
2027
|
+
$this.j1g_1 = null;
|
|
2017
2028
|
else
|
|
2018
|
-
$this.
|
|
2029
|
+
$this.j1g_1 = images;
|
|
2019
2030
|
if (0 === (seen0 & 8))
|
|
2020
|
-
$this.
|
|
2031
|
+
$this.k1g_1 = null;
|
|
2021
2032
|
else
|
|
2022
|
-
$this.
|
|
2033
|
+
$this.k1g_1 = stepNumber;
|
|
2023
2034
|
return $this;
|
|
2024
2035
|
}
|
|
2025
2036
|
function Instruction_init_$Create$(seen0, description, descriptionTemplate, images, stepNumber, serializationConstructorMarker) {
|
|
@@ -2030,29 +2041,29 @@
|
|
|
2030
2041
|
descriptionTemplate = descriptionTemplate === VOID ? null : descriptionTemplate;
|
|
2031
2042
|
images = images === VOID ? null : images;
|
|
2032
2043
|
stepNumber = stepNumber === VOID ? null : stepNumber;
|
|
2033
|
-
this.
|
|
2034
|
-
this.
|
|
2035
|
-
this.
|
|
2036
|
-
this.
|
|
2044
|
+
this.h1g_1 = description;
|
|
2045
|
+
this.i1g_1 = descriptionTemplate;
|
|
2046
|
+
this.j1g_1 = images;
|
|
2047
|
+
this.k1g_1 = stepNumber;
|
|
2037
2048
|
}
|
|
2038
|
-
protoOf(Instruction).
|
|
2049
|
+
protoOf(Instruction).t1h = function (description, descriptionTemplate, images, stepNumber) {
|
|
2039
2050
|
return new Instruction(description, descriptionTemplate, images, stepNumber);
|
|
2040
2051
|
};
|
|
2041
|
-
protoOf(Instruction).
|
|
2042
|
-
description = description === VOID ? this.
|
|
2043
|
-
descriptionTemplate = descriptionTemplate === VOID ? this.
|
|
2044
|
-
images = images === VOID ? this.
|
|
2045
|
-
stepNumber = stepNumber === VOID ? this.
|
|
2046
|
-
return $super === VOID ? this.
|
|
2052
|
+
protoOf(Instruction).l1g = function (description, descriptionTemplate, images, stepNumber, $super) {
|
|
2053
|
+
description = description === VOID ? this.h1g_1 : description;
|
|
2054
|
+
descriptionTemplate = descriptionTemplate === VOID ? this.i1g_1 : descriptionTemplate;
|
|
2055
|
+
images = images === VOID ? this.j1g_1 : images;
|
|
2056
|
+
stepNumber = stepNumber === VOID ? this.k1g_1 : stepNumber;
|
|
2057
|
+
return $super === VOID ? this.t1h(description, descriptionTemplate, images, stepNumber) : $super.t1h.call(this, description, descriptionTemplate, images, stepNumber);
|
|
2047
2058
|
};
|
|
2048
2059
|
protoOf(Instruction).toString = function () {
|
|
2049
|
-
return 'Instruction(description=' + this.
|
|
2060
|
+
return 'Instruction(description=' + this.h1g_1 + ', descriptionTemplate=' + this.i1g_1 + ', images=' + toString(this.j1g_1) + ', stepNumber=' + this.k1g_1 + ')';
|
|
2050
2061
|
};
|
|
2051
2062
|
protoOf(Instruction).hashCode = function () {
|
|
2052
|
-
var result = getStringHashCode(this.
|
|
2053
|
-
result = imul(result, 31) + (this.
|
|
2054
|
-
result = imul(result, 31) + (this.
|
|
2055
|
-
result = imul(result, 31) + (this.
|
|
2063
|
+
var result = getStringHashCode(this.h1g_1);
|
|
2064
|
+
result = imul(result, 31) + (this.i1g_1 == null ? 0 : getStringHashCode(this.i1g_1)) | 0;
|
|
2065
|
+
result = imul(result, 31) + (this.j1g_1 == null ? 0 : hashCode(this.j1g_1)) | 0;
|
|
2066
|
+
result = imul(result, 31) + (this.k1g_1 == null ? 0 : getNumberHashCode(this.k1g_1)) | 0;
|
|
2056
2067
|
return result;
|
|
2057
2068
|
};
|
|
2058
2069
|
protoOf(Instruction).equals = function (other) {
|
|
@@ -2060,85 +2071,85 @@
|
|
|
2060
2071
|
return true;
|
|
2061
2072
|
if (!(other instanceof Instruction))
|
|
2062
2073
|
return false;
|
|
2063
|
-
if (!(this.
|
|
2074
|
+
if (!(this.h1g_1 === other.h1g_1))
|
|
2064
2075
|
return false;
|
|
2065
|
-
if (!(this.
|
|
2076
|
+
if (!(this.i1g_1 == other.i1g_1))
|
|
2066
2077
|
return false;
|
|
2067
|
-
if (!equals(this.
|
|
2078
|
+
if (!equals(this.j1g_1, other.j1g_1))
|
|
2068
2079
|
return false;
|
|
2069
|
-
if (!equals(this.
|
|
2080
|
+
if (!equals(this.k1g_1, other.k1g_1))
|
|
2070
2081
|
return false;
|
|
2071
2082
|
return true;
|
|
2072
2083
|
};
|
|
2073
2084
|
function $serializer_6() {
|
|
2074
2085
|
$serializer_instance_6 = this;
|
|
2075
2086
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Serves', this, 3);
|
|
2076
|
-
tmp0_serialDesc.
|
|
2077
|
-
tmp0_serialDesc.
|
|
2078
|
-
tmp0_serialDesc.
|
|
2079
|
-
this.
|
|
2087
|
+
tmp0_serialDesc.ct('amount', true);
|
|
2088
|
+
tmp0_serialDesc.ct('text', true);
|
|
2089
|
+
tmp0_serialDesc.ct('unit', false);
|
|
2090
|
+
this.u1h_1 = tmp0_serialDesc;
|
|
2080
2091
|
}
|
|
2081
|
-
protoOf($serializer_6).
|
|
2082
|
-
var tmp0_desc = this.
|
|
2083
|
-
var tmp1_output = encoder.
|
|
2084
|
-
if (tmp1_output.
|
|
2085
|
-
tmp1_output.
|
|
2092
|
+
protoOf($serializer_6).v1h = function (encoder, value) {
|
|
2093
|
+
var tmp0_desc = this.u1h_1;
|
|
2094
|
+
var tmp1_output = encoder.tl(tmp0_desc);
|
|
2095
|
+
if (tmp1_output.pn(tmp0_desc, 0) ? true : !(value.w1h_1 == null)) {
|
|
2096
|
+
tmp1_output.ln(tmp0_desc, 0, $serializer_getInstance_4(), value.w1h_1);
|
|
2086
2097
|
}
|
|
2087
|
-
if (tmp1_output.
|
|
2088
|
-
tmp1_output.
|
|
2098
|
+
if (tmp1_output.pn(tmp0_desc, 1) ? true : !(value.x1h_1 == null)) {
|
|
2099
|
+
tmp1_output.ln(tmp0_desc, 1, StringSerializer_getInstance(), value.x1h_1);
|
|
2089
2100
|
}
|
|
2090
|
-
tmp1_output.
|
|
2091
|
-
tmp1_output.
|
|
2101
|
+
tmp1_output.hn(tmp0_desc, 2, value.y1h_1);
|
|
2102
|
+
tmp1_output.ul(tmp0_desc);
|
|
2092
2103
|
};
|
|
2093
|
-
protoOf($serializer_6).
|
|
2094
|
-
return this.
|
|
2104
|
+
protoOf($serializer_6).xi = function (encoder, value) {
|
|
2105
|
+
return this.v1h(encoder, value instanceof Serves ? value : THROW_CCE());
|
|
2095
2106
|
};
|
|
2096
|
-
protoOf($serializer_6).
|
|
2097
|
-
var tmp0_desc = this.
|
|
2107
|
+
protoOf($serializer_6).yi = function (decoder) {
|
|
2108
|
+
var tmp0_desc = this.u1h_1;
|
|
2098
2109
|
var tmp1_flag = true;
|
|
2099
2110
|
var tmp2_index = 0;
|
|
2100
2111
|
var tmp3_bitMask0 = 0;
|
|
2101
2112
|
var tmp4_local0 = null;
|
|
2102
2113
|
var tmp5_local1 = null;
|
|
2103
2114
|
var tmp6_local2 = null;
|
|
2104
|
-
var tmp7_input = decoder.
|
|
2105
|
-
if (tmp7_input.
|
|
2106
|
-
tmp4_local0 = tmp7_input.
|
|
2115
|
+
var tmp7_input = decoder.tl(tmp0_desc);
|
|
2116
|
+
if (tmp7_input.jm()) {
|
|
2117
|
+
tmp4_local0 = tmp7_input.hm(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
2107
2118
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2108
|
-
tmp5_local1 = tmp7_input.
|
|
2119
|
+
tmp5_local1 = tmp7_input.hm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2109
2120
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2110
|
-
tmp6_local2 = tmp7_input.
|
|
2121
|
+
tmp6_local2 = tmp7_input.dm(tmp0_desc, 2);
|
|
2111
2122
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2112
2123
|
} else
|
|
2113
2124
|
while (tmp1_flag) {
|
|
2114
|
-
tmp2_index = tmp7_input.
|
|
2125
|
+
tmp2_index = tmp7_input.km(tmp0_desc);
|
|
2115
2126
|
switch (tmp2_index) {
|
|
2116
2127
|
case -1:
|
|
2117
2128
|
tmp1_flag = false;
|
|
2118
2129
|
break;
|
|
2119
2130
|
case 0:
|
|
2120
|
-
tmp4_local0 = tmp7_input.
|
|
2131
|
+
tmp4_local0 = tmp7_input.hm(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
2121
2132
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2122
2133
|
break;
|
|
2123
2134
|
case 1:
|
|
2124
|
-
tmp5_local1 = tmp7_input.
|
|
2135
|
+
tmp5_local1 = tmp7_input.hm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2125
2136
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2126
2137
|
break;
|
|
2127
2138
|
case 2:
|
|
2128
|
-
tmp6_local2 = tmp7_input.
|
|
2139
|
+
tmp6_local2 = tmp7_input.dm(tmp0_desc, 2);
|
|
2129
2140
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2130
2141
|
break;
|
|
2131
2142
|
default:
|
|
2132
2143
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2133
2144
|
}
|
|
2134
2145
|
}
|
|
2135
|
-
tmp7_input.
|
|
2146
|
+
tmp7_input.ul(tmp0_desc);
|
|
2136
2147
|
return Serves_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
2137
2148
|
};
|
|
2138
|
-
protoOf($serializer_6).
|
|
2139
|
-
return this.
|
|
2149
|
+
protoOf($serializer_6).wi = function () {
|
|
2150
|
+
return this.u1h_1;
|
|
2140
2151
|
};
|
|
2141
|
-
protoOf($serializer_6).
|
|
2152
|
+
protoOf($serializer_6).et = function () {
|
|
2142
2153
|
// Inline function 'kotlin.arrayOf' call
|
|
2143
2154
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2144
2155
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2152,17 +2163,17 @@
|
|
|
2152
2163
|
}
|
|
2153
2164
|
function Serves_init_$Init$(seen0, amount, text, unit, serializationConstructorMarker, $this) {
|
|
2154
2165
|
if (!(4 === (4 & seen0))) {
|
|
2155
|
-
throwMissingFieldException(seen0, 4, $serializer_getInstance_6().
|
|
2166
|
+
throwMissingFieldException(seen0, 4, $serializer_getInstance_6().u1h_1);
|
|
2156
2167
|
}
|
|
2157
2168
|
if (0 === (seen0 & 1))
|
|
2158
|
-
$this.
|
|
2169
|
+
$this.w1h_1 = null;
|
|
2159
2170
|
else
|
|
2160
|
-
$this.
|
|
2171
|
+
$this.w1h_1 = amount;
|
|
2161
2172
|
if (0 === (seen0 & 2))
|
|
2162
|
-
$this.
|
|
2173
|
+
$this.x1h_1 = null;
|
|
2163
2174
|
else
|
|
2164
|
-
$this.
|
|
2165
|
-
$this.
|
|
2175
|
+
$this.x1h_1 = text;
|
|
2176
|
+
$this.y1h_1 = unit;
|
|
2166
2177
|
return $this;
|
|
2167
2178
|
}
|
|
2168
2179
|
function Serves_init_$Create$(seen0, amount, text, unit, serializationConstructorMarker) {
|
|
@@ -2171,12 +2182,12 @@
|
|
|
2171
2182
|
function Serves() {
|
|
2172
2183
|
}
|
|
2173
2184
|
protoOf(Serves).toString = function () {
|
|
2174
|
-
return 'Serves(amount=' + toString(this.
|
|
2185
|
+
return 'Serves(amount=' + toString(this.w1h_1) + ', text=' + this.x1h_1 + ', unit=' + this.y1h_1 + ')';
|
|
2175
2186
|
};
|
|
2176
2187
|
protoOf(Serves).hashCode = function () {
|
|
2177
|
-
var result = this.
|
|
2178
|
-
result = imul(result, 31) + (this.
|
|
2179
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2188
|
+
var result = this.w1h_1 == null ? 0 : this.w1h_1.hashCode();
|
|
2189
|
+
result = imul(result, 31) + (this.x1h_1 == null ? 0 : getStringHashCode(this.x1h_1)) | 0;
|
|
2190
|
+
result = imul(result, 31) + getStringHashCode(this.y1h_1) | 0;
|
|
2180
2191
|
return result;
|
|
2181
2192
|
};
|
|
2182
2193
|
protoOf(Serves).equals = function (other) {
|
|
@@ -2184,11 +2195,11 @@
|
|
|
2184
2195
|
return true;
|
|
2185
2196
|
if (!(other instanceof Serves))
|
|
2186
2197
|
return false;
|
|
2187
|
-
if (!equals(this.
|
|
2198
|
+
if (!equals(this.w1h_1, other.w1h_1))
|
|
2188
2199
|
return false;
|
|
2189
|
-
if (!(this.
|
|
2200
|
+
if (!(this.x1h_1 == other.x1h_1))
|
|
2190
2201
|
return false;
|
|
2191
|
-
if (!(this.
|
|
2202
|
+
if (!(this.y1h_1 === other.y1h_1))
|
|
2192
2203
|
return false;
|
|
2193
2204
|
return true;
|
|
2194
2205
|
};
|
|
@@ -2201,74 +2212,74 @@
|
|
|
2201
2212
|
function $serializer_7() {
|
|
2202
2213
|
$serializer_instance_7 = this;
|
|
2203
2214
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.generated.Timing', this, 3);
|
|
2204
|
-
tmp0_serialDesc.
|
|
2205
|
-
tmp0_serialDesc.
|
|
2206
|
-
tmp0_serialDesc.
|
|
2207
|
-
this.
|
|
2215
|
+
tmp0_serialDesc.ct('durationInMins', true);
|
|
2216
|
+
tmp0_serialDesc.ct('qualifier', true);
|
|
2217
|
+
tmp0_serialDesc.ct('text', true);
|
|
2218
|
+
this.z1h_1 = tmp0_serialDesc;
|
|
2208
2219
|
}
|
|
2209
|
-
protoOf($serializer_7).
|
|
2210
|
-
var tmp0_desc = this.
|
|
2211
|
-
var tmp1_output = encoder.
|
|
2212
|
-
if (tmp1_output.
|
|
2213
|
-
tmp1_output.
|
|
2220
|
+
protoOf($serializer_7).a1i = function (encoder, value) {
|
|
2221
|
+
var tmp0_desc = this.z1h_1;
|
|
2222
|
+
var tmp1_output = encoder.tl(tmp0_desc);
|
|
2223
|
+
if (tmp1_output.pn(tmp0_desc, 0) ? true : !(value.b1i_1 == null)) {
|
|
2224
|
+
tmp1_output.ln(tmp0_desc, 0, $serializer_getInstance_4(), value.b1i_1);
|
|
2214
2225
|
}
|
|
2215
|
-
if (tmp1_output.
|
|
2216
|
-
tmp1_output.
|
|
2226
|
+
if (tmp1_output.pn(tmp0_desc, 1) ? true : !(value.c1i_1 == null)) {
|
|
2227
|
+
tmp1_output.ln(tmp0_desc, 1, StringSerializer_getInstance(), value.c1i_1);
|
|
2217
2228
|
}
|
|
2218
|
-
if (tmp1_output.
|
|
2219
|
-
tmp1_output.
|
|
2229
|
+
if (tmp1_output.pn(tmp0_desc, 2) ? true : !(value.d1i_1 == null)) {
|
|
2230
|
+
tmp1_output.ln(tmp0_desc, 2, StringSerializer_getInstance(), value.d1i_1);
|
|
2220
2231
|
}
|
|
2221
|
-
tmp1_output.
|
|
2232
|
+
tmp1_output.ul(tmp0_desc);
|
|
2222
2233
|
};
|
|
2223
|
-
protoOf($serializer_7).
|
|
2224
|
-
return this.
|
|
2234
|
+
protoOf($serializer_7).xi = function (encoder, value) {
|
|
2235
|
+
return this.a1i(encoder, value instanceof Timing ? value : THROW_CCE());
|
|
2225
2236
|
};
|
|
2226
|
-
protoOf($serializer_7).
|
|
2227
|
-
var tmp0_desc = this.
|
|
2237
|
+
protoOf($serializer_7).yi = function (decoder) {
|
|
2238
|
+
var tmp0_desc = this.z1h_1;
|
|
2228
2239
|
var tmp1_flag = true;
|
|
2229
2240
|
var tmp2_index = 0;
|
|
2230
2241
|
var tmp3_bitMask0 = 0;
|
|
2231
2242
|
var tmp4_local0 = null;
|
|
2232
2243
|
var tmp5_local1 = null;
|
|
2233
2244
|
var tmp6_local2 = null;
|
|
2234
|
-
var tmp7_input = decoder.
|
|
2235
|
-
if (tmp7_input.
|
|
2236
|
-
tmp4_local0 = tmp7_input.
|
|
2245
|
+
var tmp7_input = decoder.tl(tmp0_desc);
|
|
2246
|
+
if (tmp7_input.jm()) {
|
|
2247
|
+
tmp4_local0 = tmp7_input.hm(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
2237
2248
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2238
|
-
tmp5_local1 = tmp7_input.
|
|
2249
|
+
tmp5_local1 = tmp7_input.hm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2239
2250
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2240
|
-
tmp6_local2 = tmp7_input.
|
|
2251
|
+
tmp6_local2 = tmp7_input.hm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2241
2252
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2242
2253
|
} else
|
|
2243
2254
|
while (tmp1_flag) {
|
|
2244
|
-
tmp2_index = tmp7_input.
|
|
2255
|
+
tmp2_index = tmp7_input.km(tmp0_desc);
|
|
2245
2256
|
switch (tmp2_index) {
|
|
2246
2257
|
case -1:
|
|
2247
2258
|
tmp1_flag = false;
|
|
2248
2259
|
break;
|
|
2249
2260
|
case 0:
|
|
2250
|
-
tmp4_local0 = tmp7_input.
|
|
2261
|
+
tmp4_local0 = tmp7_input.hm(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
2251
2262
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2252
2263
|
break;
|
|
2253
2264
|
case 1:
|
|
2254
|
-
tmp5_local1 = tmp7_input.
|
|
2265
|
+
tmp5_local1 = tmp7_input.hm(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
2255
2266
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2256
2267
|
break;
|
|
2257
2268
|
case 2:
|
|
2258
|
-
tmp6_local2 = tmp7_input.
|
|
2269
|
+
tmp6_local2 = tmp7_input.hm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2259
2270
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2260
2271
|
break;
|
|
2261
2272
|
default:
|
|
2262
2273
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2263
2274
|
}
|
|
2264
2275
|
}
|
|
2265
|
-
tmp7_input.
|
|
2276
|
+
tmp7_input.ul(tmp0_desc);
|
|
2266
2277
|
return Timing_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
2267
2278
|
};
|
|
2268
|
-
protoOf($serializer_7).
|
|
2269
|
-
return this.
|
|
2279
|
+
protoOf($serializer_7).wi = function () {
|
|
2280
|
+
return this.z1h_1;
|
|
2270
2281
|
};
|
|
2271
|
-
protoOf($serializer_7).
|
|
2282
|
+
protoOf($serializer_7).et = function () {
|
|
2272
2283
|
// Inline function 'kotlin.arrayOf' call
|
|
2273
2284
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2274
2285
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2282,20 +2293,20 @@
|
|
|
2282
2293
|
}
|
|
2283
2294
|
function Timing_init_$Init$(seen0, durationInMins, qualifier, text, serializationConstructorMarker, $this) {
|
|
2284
2295
|
if (!(0 === (0 & seen0))) {
|
|
2285
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_7().
|
|
2296
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_7().z1h_1);
|
|
2286
2297
|
}
|
|
2287
2298
|
if (0 === (seen0 & 1))
|
|
2288
|
-
$this.
|
|
2299
|
+
$this.b1i_1 = null;
|
|
2289
2300
|
else
|
|
2290
|
-
$this.
|
|
2301
|
+
$this.b1i_1 = durationInMins;
|
|
2291
2302
|
if (0 === (seen0 & 2))
|
|
2292
|
-
$this.
|
|
2303
|
+
$this.c1i_1 = null;
|
|
2293
2304
|
else
|
|
2294
|
-
$this.
|
|
2305
|
+
$this.c1i_1 = qualifier;
|
|
2295
2306
|
if (0 === (seen0 & 4))
|
|
2296
|
-
$this.
|
|
2307
|
+
$this.d1i_1 = null;
|
|
2297
2308
|
else
|
|
2298
|
-
$this.
|
|
2309
|
+
$this.d1i_1 = text;
|
|
2299
2310
|
return $this;
|
|
2300
2311
|
}
|
|
2301
2312
|
function Timing_init_$Create$(seen0, durationInMins, qualifier, text, serializationConstructorMarker) {
|
|
@@ -2305,17 +2316,17 @@
|
|
|
2305
2316
|
durationInMins = durationInMins === VOID ? null : durationInMins;
|
|
2306
2317
|
qualifier = qualifier === VOID ? null : qualifier;
|
|
2307
2318
|
text = text === VOID ? null : text;
|
|
2308
|
-
this.
|
|
2309
|
-
this.
|
|
2310
|
-
this.
|
|
2319
|
+
this.b1i_1 = durationInMins;
|
|
2320
|
+
this.c1i_1 = qualifier;
|
|
2321
|
+
this.d1i_1 = text;
|
|
2311
2322
|
}
|
|
2312
2323
|
protoOf(Timing).toString = function () {
|
|
2313
|
-
return 'Timing(durationInMins=' + toString(this.
|
|
2324
|
+
return 'Timing(durationInMins=' + toString(this.b1i_1) + ', qualifier=' + this.c1i_1 + ', text=' + this.d1i_1 + ')';
|
|
2314
2325
|
};
|
|
2315
2326
|
protoOf(Timing).hashCode = function () {
|
|
2316
|
-
var result = this.
|
|
2317
|
-
result = imul(result, 31) + (this.
|
|
2318
|
-
result = imul(result, 31) + (this.
|
|
2327
|
+
var result = this.b1i_1 == null ? 0 : this.b1i_1.hashCode();
|
|
2328
|
+
result = imul(result, 31) + (this.c1i_1 == null ? 0 : getStringHashCode(this.c1i_1)) | 0;
|
|
2329
|
+
result = imul(result, 31) + (this.d1i_1 == null ? 0 : getStringHashCode(this.d1i_1)) | 0;
|
|
2319
2330
|
return result;
|
|
2320
2331
|
};
|
|
2321
2332
|
protoOf(Timing).equals = function (other) {
|
|
@@ -2323,29 +2334,29 @@
|
|
|
2323
2334
|
return true;
|
|
2324
2335
|
if (!(other instanceof Timing))
|
|
2325
2336
|
return false;
|
|
2326
|
-
if (!equals(this.
|
|
2337
|
+
if (!equals(this.b1i_1, other.b1i_1))
|
|
2327
2338
|
return false;
|
|
2328
|
-
if (!(this.
|
|
2339
|
+
if (!(this.c1i_1 == other.c1i_1))
|
|
2329
2340
|
return false;
|
|
2330
|
-
if (!(this.
|
|
2341
|
+
if (!(this.d1i_1 == other.d1i_1))
|
|
2331
2342
|
return false;
|
|
2332
2343
|
return true;
|
|
2333
2344
|
};
|
|
2334
2345
|
function ParsedTemplate(elements) {
|
|
2335
|
-
this.
|
|
2346
|
+
this.x1e_1 = elements;
|
|
2336
2347
|
}
|
|
2337
2348
|
protoOf(ParsedTemplate).toString = function () {
|
|
2338
|
-
return 'ParsedTemplate(elements=' + toString_0(this.
|
|
2349
|
+
return 'ParsedTemplate(elements=' + toString_0(this.x1e_1) + ')';
|
|
2339
2350
|
};
|
|
2340
2351
|
protoOf(ParsedTemplate).hashCode = function () {
|
|
2341
|
-
return hashCode(this.
|
|
2352
|
+
return hashCode(this.x1e_1);
|
|
2342
2353
|
};
|
|
2343
2354
|
protoOf(ParsedTemplate).equals = function (other) {
|
|
2344
2355
|
if (this === other)
|
|
2345
2356
|
return true;
|
|
2346
2357
|
if (!(other instanceof ParsedTemplate))
|
|
2347
2358
|
return false;
|
|
2348
|
-
if (!equals(this.
|
|
2359
|
+
if (!equals(this.x1e_1, other.x1e_1))
|
|
2349
2360
|
return false;
|
|
2350
2361
|
return true;
|
|
2351
2362
|
};
|
|
@@ -2361,39 +2372,39 @@
|
|
|
2361
2372
|
var parts = ArrayList_init_$Create$_0();
|
|
2362
2373
|
var lastEnd = 0;
|
|
2363
2374
|
// Inline function 'kotlin.sequences.forEach' call
|
|
2364
|
-
var _iterator__ex2g4s = pattern.
|
|
2375
|
+
var _iterator__ex2g4s = pattern.ya(template).h();
|
|
2365
2376
|
while (_iterator__ex2g4s.i()) {
|
|
2366
2377
|
var element = _iterator__ex2g4s.j();
|
|
2367
|
-
if (element.
|
|
2368
|
-
var textPart = substring(template, lastEnd, element.
|
|
2378
|
+
if (element.ab().p_1 > lastEnd) {
|
|
2379
|
+
var textPart = substring(template, lastEnd, element.ab().p_1);
|
|
2369
2380
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2370
2381
|
if (charSequenceLength(textPart) > 0) {
|
|
2371
2382
|
parts.f(new TemplateConst(textPart));
|
|
2372
2383
|
}
|
|
2373
2384
|
}
|
|
2374
2385
|
try {
|
|
2375
|
-
var jsonObj = get_jsonObject(Default_getInstance().
|
|
2386
|
+
var jsonObj = get_jsonObject(Default_getInstance().h12(element.t1()));
|
|
2376
2387
|
if (jsonObj.x1().l1('min')) {
|
|
2377
2388
|
// Inline function 'kotlinx.serialization.json.decodeFromJsonElement' call
|
|
2378
2389
|
var this_0 = get_tolerantJson();
|
|
2379
2390
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
2380
|
-
var this_1 = this_0.
|
|
2391
|
+
var this_1 = this_0.im();
|
|
2381
2392
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
2382
2393
|
var this_2 = serializer(this_1, createKType(getKClass(QuantityPlaceholder), arrayOf([]), false));
|
|
2383
2394
|
var tmp$ret$3 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
2384
2395
|
// Inline function 'kotlin.let' call
|
|
2385
|
-
var it = this_0.
|
|
2396
|
+
var it = this_0.g12(tmp$ret$3, jsonObj);
|
|
2386
2397
|
parts.f(it);
|
|
2387
2398
|
} else {
|
|
2388
2399
|
// Inline function 'kotlinx.serialization.json.decodeFromJsonElement' call
|
|
2389
2400
|
var this_3 = get_tolerantJson();
|
|
2390
2401
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
2391
|
-
var this_4 = this_3.
|
|
2402
|
+
var this_4 = this_3.im();
|
|
2392
2403
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
2393
2404
|
var this_5 = serializer(this_4, createKType(getKClass(OvenTemperaturePlaceholder), arrayOf([]), false));
|
|
2394
2405
|
var tmp$ret$8 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
2395
2406
|
// Inline function 'kotlin.let' call
|
|
2396
|
-
var it_0 = this_3.
|
|
2407
|
+
var it_0 = this_3.g12(tmp$ret$8, jsonObj);
|
|
2397
2408
|
parts.f(it_0);
|
|
2398
2409
|
}
|
|
2399
2410
|
} catch ($p) {
|
|
@@ -2405,7 +2416,7 @@
|
|
|
2405
2416
|
throw $p;
|
|
2406
2417
|
}
|
|
2407
2418
|
}
|
|
2408
|
-
lastEnd = element.
|
|
2419
|
+
lastEnd = element.ab().q_1 + 1 | 0;
|
|
2409
2420
|
}
|
|
2410
2421
|
if (lastEnd < template.length) {
|
|
2411
2422
|
var remaining = substring_0(template, lastEnd);
|
|
@@ -2418,7 +2429,7 @@
|
|
|
2418
2429
|
}
|
|
2419
2430
|
function tolerantJson$lambda($this$Json) {
|
|
2420
2431
|
_init_properties_Parser_kt__o3jwn5();
|
|
2421
|
-
$this$Json.
|
|
2432
|
+
$this$Json.z12_1 = true;
|
|
2422
2433
|
return Unit_instance;
|
|
2423
2434
|
}
|
|
2424
2435
|
var properties_initialized_Parser_kt_5uifb3;
|
|
@@ -2436,15 +2447,15 @@
|
|
|
2436
2447
|
protoOf(TemplateConst).t1 = function () {
|
|
2437
2448
|
return this.value;
|
|
2438
2449
|
};
|
|
2439
|
-
protoOf(TemplateConst).
|
|
2450
|
+
protoOf(TemplateConst).id = function () {
|
|
2440
2451
|
return this.value;
|
|
2441
2452
|
};
|
|
2442
|
-
protoOf(TemplateConst).
|
|
2453
|
+
protoOf(TemplateConst).e1i = function (value) {
|
|
2443
2454
|
return new TemplateConst(value);
|
|
2444
2455
|
};
|
|
2445
2456
|
protoOf(TemplateConst).copy = function (value, $super) {
|
|
2446
2457
|
value = value === VOID ? this.value : value;
|
|
2447
|
-
return $super === VOID ? this.
|
|
2458
|
+
return $super === VOID ? this.e1i(value) : $super.e1i.call(this, value);
|
|
2448
2459
|
};
|
|
2449
2460
|
protoOf(TemplateConst).toString = function () {
|
|
2450
2461
|
return 'TemplateConst(value=' + this.value + ')';
|
|
@@ -2463,7 +2474,7 @@
|
|
|
2463
2474
|
};
|
|
2464
2475
|
function Companion_5() {
|
|
2465
2476
|
}
|
|
2466
|
-
protoOf(Companion_5).
|
|
2477
|
+
protoOf(Companion_5).o14 = function () {
|
|
2467
2478
|
return $serializer_getInstance_8();
|
|
2468
2479
|
};
|
|
2469
2480
|
var Companion_instance_5;
|
|
@@ -2472,33 +2483,41 @@
|
|
|
2472
2483
|
}
|
|
2473
2484
|
function $serializer_8() {
|
|
2474
2485
|
$serializer_instance_8 = this;
|
|
2475
|
-
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.template.QuantityPlaceholder', this,
|
|
2476
|
-
tmp0_serialDesc.
|
|
2477
|
-
tmp0_serialDesc.
|
|
2478
|
-
tmp0_serialDesc.
|
|
2479
|
-
tmp0_serialDesc.
|
|
2480
|
-
|
|
2486
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.template.QuantityPlaceholder', this, 6);
|
|
2487
|
+
tmp0_serialDesc.ct('min', false);
|
|
2488
|
+
tmp0_serialDesc.ct('max', true);
|
|
2489
|
+
tmp0_serialDesc.ct('unit', true);
|
|
2490
|
+
tmp0_serialDesc.ct('scale', true);
|
|
2491
|
+
tmp0_serialDesc.ct('ingredient', true);
|
|
2492
|
+
tmp0_serialDesc.ct('usCust', true);
|
|
2493
|
+
this.f1i_1 = tmp0_serialDesc;
|
|
2481
2494
|
}
|
|
2482
|
-
protoOf($serializer_8).
|
|
2483
|
-
var tmp0_desc = this.
|
|
2484
|
-
var tmp1_output = encoder.
|
|
2485
|
-
tmp1_output.
|
|
2486
|
-
if (tmp1_output.
|
|
2487
|
-
tmp1_output.
|
|
2495
|
+
protoOf($serializer_8).g1i = function (encoder, value) {
|
|
2496
|
+
var tmp0_desc = this.f1i_1;
|
|
2497
|
+
var tmp1_output = encoder.tl(tmp0_desc);
|
|
2498
|
+
tmp1_output.en(tmp0_desc, 0, value.min);
|
|
2499
|
+
if (tmp1_output.pn(tmp0_desc, 1) ? true : !(value.max == null)) {
|
|
2500
|
+
tmp1_output.ln(tmp0_desc, 1, FloatSerializer_getInstance(), value.max);
|
|
2501
|
+
}
|
|
2502
|
+
if (tmp1_output.pn(tmp0_desc, 2) ? true : !(value.unit == null)) {
|
|
2503
|
+
tmp1_output.ln(tmp0_desc, 2, StringSerializer_getInstance(), value.unit);
|
|
2504
|
+
}
|
|
2505
|
+
if (tmp1_output.pn(tmp0_desc, 3) ? true : !(value.scale === false)) {
|
|
2506
|
+
tmp1_output.zm(tmp0_desc, 3, value.scale);
|
|
2488
2507
|
}
|
|
2489
|
-
if (tmp1_output.
|
|
2490
|
-
tmp1_output.
|
|
2508
|
+
if (tmp1_output.pn(tmp0_desc, 4) ? true : !(value.ingredient == null)) {
|
|
2509
|
+
tmp1_output.ln(tmp0_desc, 4, StringSerializer_getInstance(), value.ingredient);
|
|
2491
2510
|
}
|
|
2492
|
-
if (tmp1_output.
|
|
2493
|
-
tmp1_output.
|
|
2511
|
+
if (tmp1_output.pn(tmp0_desc, 5) ? true : !(value.usCust == null)) {
|
|
2512
|
+
tmp1_output.ln(tmp0_desc, 5, BooleanSerializer_getInstance(), value.usCust);
|
|
2494
2513
|
}
|
|
2495
|
-
tmp1_output.
|
|
2514
|
+
tmp1_output.ul(tmp0_desc);
|
|
2496
2515
|
};
|
|
2497
|
-
protoOf($serializer_8).
|
|
2498
|
-
return this.
|
|
2516
|
+
protoOf($serializer_8).xi = function (encoder, value) {
|
|
2517
|
+
return this.g1i(encoder, value instanceof QuantityPlaceholder ? value : THROW_CCE());
|
|
2499
2518
|
};
|
|
2500
|
-
protoOf($serializer_8).
|
|
2501
|
-
var tmp0_desc = this.
|
|
2519
|
+
protoOf($serializer_8).yi = function (decoder) {
|
|
2520
|
+
var tmp0_desc = this.f1i_1;
|
|
2502
2521
|
var tmp1_flag = true;
|
|
2503
2522
|
var tmp2_index = 0;
|
|
2504
2523
|
var tmp3_bitMask0 = 0;
|
|
@@ -2506,54 +2525,68 @@
|
|
|
2506
2525
|
var tmp5_local1 = null;
|
|
2507
2526
|
var tmp6_local2 = null;
|
|
2508
2527
|
var tmp7_local3 = false;
|
|
2509
|
-
var
|
|
2510
|
-
|
|
2511
|
-
|
|
2528
|
+
var tmp8_local4 = null;
|
|
2529
|
+
var tmp9_local5 = null;
|
|
2530
|
+
var tmp10_input = decoder.tl(tmp0_desc);
|
|
2531
|
+
if (tmp10_input.jm()) {
|
|
2532
|
+
tmp4_local0 = tmp10_input.am(tmp0_desc, 0);
|
|
2512
2533
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2513
|
-
tmp5_local1 =
|
|
2534
|
+
tmp5_local1 = tmp10_input.hm(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1);
|
|
2514
2535
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2515
|
-
tmp6_local2 =
|
|
2536
|
+
tmp6_local2 = tmp10_input.hm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2516
2537
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2517
|
-
tmp7_local3 =
|
|
2538
|
+
tmp7_local3 = tmp10_input.vl(tmp0_desc, 3);
|
|
2518
2539
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2540
|
+
tmp8_local4 = tmp10_input.hm(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
2541
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
2542
|
+
tmp9_local5 = tmp10_input.hm(tmp0_desc, 5, BooleanSerializer_getInstance(), tmp9_local5);
|
|
2543
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
2519
2544
|
} else
|
|
2520
2545
|
while (tmp1_flag) {
|
|
2521
|
-
tmp2_index =
|
|
2546
|
+
tmp2_index = tmp10_input.km(tmp0_desc);
|
|
2522
2547
|
switch (tmp2_index) {
|
|
2523
2548
|
case -1:
|
|
2524
2549
|
tmp1_flag = false;
|
|
2525
2550
|
break;
|
|
2526
2551
|
case 0:
|
|
2527
|
-
tmp4_local0 =
|
|
2552
|
+
tmp4_local0 = tmp10_input.am(tmp0_desc, 0);
|
|
2528
2553
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2529
2554
|
break;
|
|
2530
2555
|
case 1:
|
|
2531
|
-
tmp5_local1 =
|
|
2556
|
+
tmp5_local1 = tmp10_input.hm(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1);
|
|
2532
2557
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2533
2558
|
break;
|
|
2534
2559
|
case 2:
|
|
2535
|
-
tmp6_local2 =
|
|
2560
|
+
tmp6_local2 = tmp10_input.hm(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2536
2561
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2537
2562
|
break;
|
|
2538
2563
|
case 3:
|
|
2539
|
-
tmp7_local3 =
|
|
2564
|
+
tmp7_local3 = tmp10_input.vl(tmp0_desc, 3);
|
|
2540
2565
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2541
2566
|
break;
|
|
2567
|
+
case 4:
|
|
2568
|
+
tmp8_local4 = tmp10_input.hm(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
2569
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
2570
|
+
break;
|
|
2571
|
+
case 5:
|
|
2572
|
+
tmp9_local5 = tmp10_input.hm(tmp0_desc, 5, BooleanSerializer_getInstance(), tmp9_local5);
|
|
2573
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
2574
|
+
break;
|
|
2542
2575
|
default:
|
|
2543
2576
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2544
2577
|
}
|
|
2545
2578
|
}
|
|
2546
|
-
|
|
2547
|
-
return QuantityPlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
2579
|
+
tmp10_input.ul(tmp0_desc);
|
|
2580
|
+
return QuantityPlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
2548
2581
|
};
|
|
2549
|
-
protoOf($serializer_8).
|
|
2550
|
-
return this.
|
|
2582
|
+
protoOf($serializer_8).wi = function () {
|
|
2583
|
+
return this.f1i_1;
|
|
2551
2584
|
};
|
|
2552
|
-
protoOf($serializer_8).
|
|
2585
|
+
protoOf($serializer_8).et = function () {
|
|
2553
2586
|
// Inline function 'kotlin.arrayOf' call
|
|
2554
2587
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2555
2588
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2556
|
-
return [FloatSerializer_getInstance(), get_nullable(FloatSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance()];
|
|
2589
|
+
return [FloatSerializer_getInstance(), get_nullable(FloatSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance())];
|
|
2557
2590
|
};
|
|
2558
2591
|
var $serializer_instance_8;
|
|
2559
2592
|
function $serializer_getInstance_8() {
|
|
@@ -2561,9 +2594,9 @@
|
|
|
2561
2594
|
new $serializer_8();
|
|
2562
2595
|
return $serializer_instance_8;
|
|
2563
2596
|
}
|
|
2564
|
-
function QuantityPlaceholder_init_$Init$(seen0, min, max, unit, scale, serializationConstructorMarker, $this) {
|
|
2597
|
+
function QuantityPlaceholder_init_$Init$(seen0, min, max, unit, scale, ingredient, usCust, serializationConstructorMarker, $this) {
|
|
2565
2598
|
if (!(1 === (1 & seen0))) {
|
|
2566
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_8().
|
|
2599
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_8().f1i_1);
|
|
2567
2600
|
}
|
|
2568
2601
|
$this.min = min;
|
|
2569
2602
|
if (0 === (seen0 & 2))
|
|
@@ -2578,62 +2611,90 @@
|
|
|
2578
2611
|
$this.scale = false;
|
|
2579
2612
|
else
|
|
2580
2613
|
$this.scale = scale;
|
|
2614
|
+
if (0 === (seen0 & 16))
|
|
2615
|
+
$this.ingredient = null;
|
|
2616
|
+
else
|
|
2617
|
+
$this.ingredient = ingredient;
|
|
2618
|
+
if (0 === (seen0 & 32))
|
|
2619
|
+
$this.usCust = null;
|
|
2620
|
+
else
|
|
2621
|
+
$this.usCust = usCust;
|
|
2581
2622
|
return $this;
|
|
2582
2623
|
}
|
|
2583
|
-
function QuantityPlaceholder_init_$Create$(seen0, min, max, unit, scale, serializationConstructorMarker) {
|
|
2584
|
-
return QuantityPlaceholder_init_$Init$(seen0, min, max, unit, scale, serializationConstructorMarker, objectCreate(protoOf(QuantityPlaceholder)));
|
|
2624
|
+
function QuantityPlaceholder_init_$Create$(seen0, min, max, unit, scale, ingredient, usCust, serializationConstructorMarker) {
|
|
2625
|
+
return QuantityPlaceholder_init_$Init$(seen0, min, max, unit, scale, ingredient, usCust, serializationConstructorMarker, objectCreate(protoOf(QuantityPlaceholder)));
|
|
2585
2626
|
}
|
|
2586
|
-
function QuantityPlaceholder(min, max, unit, scale) {
|
|
2627
|
+
function QuantityPlaceholder(min, max, unit, scale, ingredient, usCust) {
|
|
2587
2628
|
max = max === VOID ? null : max;
|
|
2588
2629
|
unit = unit === VOID ? null : unit;
|
|
2589
2630
|
scale = scale === VOID ? false : scale;
|
|
2631
|
+
ingredient = ingredient === VOID ? null : ingredient;
|
|
2632
|
+
usCust = usCust === VOID ? null : usCust;
|
|
2590
2633
|
this.min = min;
|
|
2591
2634
|
this.max = max;
|
|
2592
2635
|
this.unit = unit;
|
|
2593
2636
|
this.scale = scale;
|
|
2637
|
+
this.ingredient = ingredient;
|
|
2638
|
+
this.usCust = usCust;
|
|
2594
2639
|
}
|
|
2595
|
-
protoOf(QuantityPlaceholder).
|
|
2640
|
+
protoOf(QuantityPlaceholder).h1i = function () {
|
|
2596
2641
|
return this.min;
|
|
2597
2642
|
};
|
|
2598
|
-
protoOf(QuantityPlaceholder).
|
|
2643
|
+
protoOf(QuantityPlaceholder).i1i = function () {
|
|
2599
2644
|
return this.max;
|
|
2600
2645
|
};
|
|
2601
|
-
protoOf(QuantityPlaceholder).
|
|
2646
|
+
protoOf(QuantityPlaceholder).j1i = function () {
|
|
2602
2647
|
return this.unit;
|
|
2603
2648
|
};
|
|
2604
|
-
protoOf(QuantityPlaceholder).
|
|
2649
|
+
protoOf(QuantityPlaceholder).k1i = function () {
|
|
2605
2650
|
return this.scale;
|
|
2606
2651
|
};
|
|
2607
|
-
protoOf(QuantityPlaceholder).
|
|
2652
|
+
protoOf(QuantityPlaceholder).l1i = function () {
|
|
2653
|
+
return this.ingredient;
|
|
2654
|
+
};
|
|
2655
|
+
protoOf(QuantityPlaceholder).m1i = function () {
|
|
2656
|
+
return this.usCust;
|
|
2657
|
+
};
|
|
2658
|
+
protoOf(QuantityPlaceholder).id = function () {
|
|
2608
2659
|
return this.min;
|
|
2609
2660
|
};
|
|
2610
|
-
protoOf(QuantityPlaceholder).
|
|
2661
|
+
protoOf(QuantityPlaceholder).jd = function () {
|
|
2611
2662
|
return this.max;
|
|
2612
2663
|
};
|
|
2613
|
-
protoOf(QuantityPlaceholder).
|
|
2664
|
+
protoOf(QuantityPlaceholder).n1i = function () {
|
|
2614
2665
|
return this.unit;
|
|
2615
2666
|
};
|
|
2616
|
-
protoOf(QuantityPlaceholder).
|
|
2667
|
+
protoOf(QuantityPlaceholder).o1i = function () {
|
|
2617
2668
|
return this.scale;
|
|
2618
2669
|
};
|
|
2619
|
-
protoOf(QuantityPlaceholder).
|
|
2620
|
-
return
|
|
2670
|
+
protoOf(QuantityPlaceholder).p1i = function () {
|
|
2671
|
+
return this.ingredient;
|
|
2672
|
+
};
|
|
2673
|
+
protoOf(QuantityPlaceholder).q1i = function () {
|
|
2674
|
+
return this.usCust;
|
|
2621
2675
|
};
|
|
2622
|
-
protoOf(QuantityPlaceholder).
|
|
2676
|
+
protoOf(QuantityPlaceholder).r1i = function (min, max, unit, scale, ingredient, usCust) {
|
|
2677
|
+
return new QuantityPlaceholder(min, max, unit, scale, ingredient, usCust);
|
|
2678
|
+
};
|
|
2679
|
+
protoOf(QuantityPlaceholder).copy = function (min, max, unit, scale, ingredient, usCust, $super) {
|
|
2623
2680
|
min = min === VOID ? this.min : min;
|
|
2624
2681
|
max = max === VOID ? this.max : max;
|
|
2625
2682
|
unit = unit === VOID ? this.unit : unit;
|
|
2626
2683
|
scale = scale === VOID ? this.scale : scale;
|
|
2627
|
-
|
|
2684
|
+
ingredient = ingredient === VOID ? this.ingredient : ingredient;
|
|
2685
|
+
usCust = usCust === VOID ? this.usCust : usCust;
|
|
2686
|
+
return $super === VOID ? this.r1i(min, max, unit, scale, ingredient, usCust) : $super.r1i.call(this, min, max, unit, scale, ingredient, usCust);
|
|
2628
2687
|
};
|
|
2629
2688
|
protoOf(QuantityPlaceholder).toString = function () {
|
|
2630
|
-
return 'QuantityPlaceholder(min=' + this.min + ', max=' + this.max + ', unit=' + this.unit + ', scale=' + this.scale + ')';
|
|
2689
|
+
return 'QuantityPlaceholder(min=' + this.min + ', max=' + this.max + ', unit=' + this.unit + ', scale=' + this.scale + ', ingredient=' + this.ingredient + ', usCust=' + this.usCust + ')';
|
|
2631
2690
|
};
|
|
2632
2691
|
protoOf(QuantityPlaceholder).hashCode = function () {
|
|
2633
2692
|
var result = getNumberHashCode(this.min);
|
|
2634
2693
|
result = imul(result, 31) + (this.max == null ? 0 : getNumberHashCode(this.max)) | 0;
|
|
2635
2694
|
result = imul(result, 31) + (this.unit == null ? 0 : getStringHashCode(this.unit)) | 0;
|
|
2636
2695
|
result = imul(result, 31) + getBooleanHashCode(this.scale) | 0;
|
|
2696
|
+
result = imul(result, 31) + (this.ingredient == null ? 0 : getStringHashCode(this.ingredient)) | 0;
|
|
2697
|
+
result = imul(result, 31) + (this.usCust == null ? 0 : getBooleanHashCode(this.usCust)) | 0;
|
|
2637
2698
|
return result;
|
|
2638
2699
|
};
|
|
2639
2700
|
protoOf(QuantityPlaceholder).equals = function (other) {
|
|
@@ -2649,11 +2710,15 @@
|
|
|
2649
2710
|
return false;
|
|
2650
2711
|
if (!(this.scale === other.scale))
|
|
2651
2712
|
return false;
|
|
2713
|
+
if (!(this.ingredient == other.ingredient))
|
|
2714
|
+
return false;
|
|
2715
|
+
if (!(this.usCust == other.usCust))
|
|
2716
|
+
return false;
|
|
2652
2717
|
return true;
|
|
2653
2718
|
};
|
|
2654
2719
|
function Companion_6() {
|
|
2655
2720
|
}
|
|
2656
|
-
protoOf(Companion_6).
|
|
2721
|
+
protoOf(Companion_6).o14 = function () {
|
|
2657
2722
|
return $serializer_getInstance_9();
|
|
2658
2723
|
};
|
|
2659
2724
|
var Companion_instance_6;
|
|
@@ -2663,34 +2728,34 @@
|
|
|
2663
2728
|
function $serializer_9() {
|
|
2664
2729
|
$serializer_instance_9 = this;
|
|
2665
2730
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.gu.recipe.template.OvenTemperaturePlaceholder', this, 4);
|
|
2666
|
-
tmp0_serialDesc.
|
|
2667
|
-
tmp0_serialDesc.
|
|
2668
|
-
tmp0_serialDesc.
|
|
2669
|
-
tmp0_serialDesc.
|
|
2670
|
-
this.
|
|
2731
|
+
tmp0_serialDesc.ct('temperatureC', true);
|
|
2732
|
+
tmp0_serialDesc.ct('temperatureFanC', true);
|
|
2733
|
+
tmp0_serialDesc.ct('temperatureF', true);
|
|
2734
|
+
tmp0_serialDesc.ct('gasMark', true);
|
|
2735
|
+
this.s1i_1 = tmp0_serialDesc;
|
|
2671
2736
|
}
|
|
2672
|
-
protoOf($serializer_9).
|
|
2673
|
-
var tmp0_desc = this.
|
|
2674
|
-
var tmp1_output = encoder.
|
|
2675
|
-
if (tmp1_output.
|
|
2676
|
-
tmp1_output.
|
|
2737
|
+
protoOf($serializer_9).t1i = function (encoder, value) {
|
|
2738
|
+
var tmp0_desc = this.s1i_1;
|
|
2739
|
+
var tmp1_output = encoder.tl(tmp0_desc);
|
|
2740
|
+
if (tmp1_output.pn(tmp0_desc, 0) ? true : !(value.temperatureC == null)) {
|
|
2741
|
+
tmp1_output.ln(tmp0_desc, 0, IntSerializer_getInstance(), value.temperatureC);
|
|
2677
2742
|
}
|
|
2678
|
-
if (tmp1_output.
|
|
2679
|
-
tmp1_output.
|
|
2743
|
+
if (tmp1_output.pn(tmp0_desc, 1) ? true : !(value.temperatureFanC == null)) {
|
|
2744
|
+
tmp1_output.ln(tmp0_desc, 1, IntSerializer_getInstance(), value.temperatureFanC);
|
|
2680
2745
|
}
|
|
2681
|
-
if (tmp1_output.
|
|
2682
|
-
tmp1_output.
|
|
2746
|
+
if (tmp1_output.pn(tmp0_desc, 2) ? true : !(value.temperatureF == null)) {
|
|
2747
|
+
tmp1_output.ln(tmp0_desc, 2, IntSerializer_getInstance(), value.temperatureF);
|
|
2683
2748
|
}
|
|
2684
|
-
if (tmp1_output.
|
|
2685
|
-
tmp1_output.
|
|
2749
|
+
if (tmp1_output.pn(tmp0_desc, 3) ? true : !(value.gasMark == null)) {
|
|
2750
|
+
tmp1_output.ln(tmp0_desc, 3, FloatSerializer_getInstance(), value.gasMark);
|
|
2686
2751
|
}
|
|
2687
|
-
tmp1_output.
|
|
2752
|
+
tmp1_output.ul(tmp0_desc);
|
|
2688
2753
|
};
|
|
2689
|
-
protoOf($serializer_9).
|
|
2690
|
-
return this.
|
|
2754
|
+
protoOf($serializer_9).xi = function (encoder, value) {
|
|
2755
|
+
return this.t1i(encoder, value instanceof OvenTemperaturePlaceholder ? value : THROW_CCE());
|
|
2691
2756
|
};
|
|
2692
|
-
protoOf($serializer_9).
|
|
2693
|
-
var tmp0_desc = this.
|
|
2757
|
+
protoOf($serializer_9).yi = function (decoder) {
|
|
2758
|
+
var tmp0_desc = this.s1i_1;
|
|
2694
2759
|
var tmp1_flag = true;
|
|
2695
2760
|
var tmp2_index = 0;
|
|
2696
2761
|
var tmp3_bitMask0 = 0;
|
|
@@ -2698,50 +2763,50 @@
|
|
|
2698
2763
|
var tmp5_local1 = null;
|
|
2699
2764
|
var tmp6_local2 = null;
|
|
2700
2765
|
var tmp7_local3 = null;
|
|
2701
|
-
var tmp8_input = decoder.
|
|
2702
|
-
if (tmp8_input.
|
|
2703
|
-
tmp4_local0 = tmp8_input.
|
|
2766
|
+
var tmp8_input = decoder.tl(tmp0_desc);
|
|
2767
|
+
if (tmp8_input.jm()) {
|
|
2768
|
+
tmp4_local0 = tmp8_input.hm(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
2704
2769
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2705
|
-
tmp5_local1 = tmp8_input.
|
|
2770
|
+
tmp5_local1 = tmp8_input.hm(tmp0_desc, 1, IntSerializer_getInstance(), tmp5_local1);
|
|
2706
2771
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2707
|
-
tmp6_local2 = tmp8_input.
|
|
2772
|
+
tmp6_local2 = tmp8_input.hm(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
2708
2773
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2709
|
-
tmp7_local3 = tmp8_input.
|
|
2774
|
+
tmp7_local3 = tmp8_input.hm(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3);
|
|
2710
2775
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2711
2776
|
} else
|
|
2712
2777
|
while (tmp1_flag) {
|
|
2713
|
-
tmp2_index = tmp8_input.
|
|
2778
|
+
tmp2_index = tmp8_input.km(tmp0_desc);
|
|
2714
2779
|
switch (tmp2_index) {
|
|
2715
2780
|
case -1:
|
|
2716
2781
|
tmp1_flag = false;
|
|
2717
2782
|
break;
|
|
2718
2783
|
case 0:
|
|
2719
|
-
tmp4_local0 = tmp8_input.
|
|
2784
|
+
tmp4_local0 = tmp8_input.hm(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
2720
2785
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
2721
2786
|
break;
|
|
2722
2787
|
case 1:
|
|
2723
|
-
tmp5_local1 = tmp8_input.
|
|
2788
|
+
tmp5_local1 = tmp8_input.hm(tmp0_desc, 1, IntSerializer_getInstance(), tmp5_local1);
|
|
2724
2789
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2725
2790
|
break;
|
|
2726
2791
|
case 2:
|
|
2727
|
-
tmp6_local2 = tmp8_input.
|
|
2792
|
+
tmp6_local2 = tmp8_input.hm(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
2728
2793
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2729
2794
|
break;
|
|
2730
2795
|
case 3:
|
|
2731
|
-
tmp7_local3 = tmp8_input.
|
|
2796
|
+
tmp7_local3 = tmp8_input.hm(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3);
|
|
2732
2797
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2733
2798
|
break;
|
|
2734
2799
|
default:
|
|
2735
2800
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
2736
2801
|
}
|
|
2737
2802
|
}
|
|
2738
|
-
tmp8_input.
|
|
2803
|
+
tmp8_input.ul(tmp0_desc);
|
|
2739
2804
|
return OvenTemperaturePlaceholder_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
2740
2805
|
};
|
|
2741
|
-
protoOf($serializer_9).
|
|
2742
|
-
return this.
|
|
2806
|
+
protoOf($serializer_9).wi = function () {
|
|
2807
|
+
return this.s1i_1;
|
|
2743
2808
|
};
|
|
2744
|
-
protoOf($serializer_9).
|
|
2809
|
+
protoOf($serializer_9).et = function () {
|
|
2745
2810
|
// Inline function 'kotlin.arrayOf' call
|
|
2746
2811
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2747
2812
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2755,7 +2820,7 @@
|
|
|
2755
2820
|
}
|
|
2756
2821
|
function OvenTemperaturePlaceholder_init_$Init$(seen0, temperatureC, temperatureFanC, temperatureF, gasMark, serializationConstructorMarker, $this) {
|
|
2757
2822
|
if (!(0 === (0 & seen0))) {
|
|
2758
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_9().
|
|
2823
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_9().s1i_1);
|
|
2759
2824
|
}
|
|
2760
2825
|
if (0 === (seen0 & 1))
|
|
2761
2826
|
$this.temperatureC = null;
|
|
@@ -2788,31 +2853,31 @@
|
|
|
2788
2853
|
this.temperatureF = temperatureF;
|
|
2789
2854
|
this.gasMark = gasMark;
|
|
2790
2855
|
}
|
|
2791
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2856
|
+
protoOf(OvenTemperaturePlaceholder).u1i = function () {
|
|
2792
2857
|
return this.temperatureC;
|
|
2793
2858
|
};
|
|
2794
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2859
|
+
protoOf(OvenTemperaturePlaceholder).v1i = function () {
|
|
2795
2860
|
return this.temperatureFanC;
|
|
2796
2861
|
};
|
|
2797
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2862
|
+
protoOf(OvenTemperaturePlaceholder).w1i = function () {
|
|
2798
2863
|
return this.temperatureF;
|
|
2799
2864
|
};
|
|
2800
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2865
|
+
protoOf(OvenTemperaturePlaceholder).x1i = function () {
|
|
2801
2866
|
return this.gasMark;
|
|
2802
2867
|
};
|
|
2803
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2868
|
+
protoOf(OvenTemperaturePlaceholder).id = function () {
|
|
2804
2869
|
return this.temperatureC;
|
|
2805
2870
|
};
|
|
2806
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2871
|
+
protoOf(OvenTemperaturePlaceholder).jd = function () {
|
|
2807
2872
|
return this.temperatureFanC;
|
|
2808
2873
|
};
|
|
2809
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2874
|
+
protoOf(OvenTemperaturePlaceholder).n1i = function () {
|
|
2810
2875
|
return this.temperatureF;
|
|
2811
2876
|
};
|
|
2812
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2877
|
+
protoOf(OvenTemperaturePlaceholder).o1i = function () {
|
|
2813
2878
|
return this.gasMark;
|
|
2814
2879
|
};
|
|
2815
|
-
protoOf(OvenTemperaturePlaceholder).
|
|
2880
|
+
protoOf(OvenTemperaturePlaceholder).y1i = function (temperatureC, temperatureFanC, temperatureF, gasMark) {
|
|
2816
2881
|
return new OvenTemperaturePlaceholder(temperatureC, temperatureFanC, temperatureF, gasMark);
|
|
2817
2882
|
};
|
|
2818
2883
|
protoOf(OvenTemperaturePlaceholder).copy = function (temperatureC, temperatureFanC, temperatureF, gasMark, $super) {
|
|
@@ -2820,7 +2885,7 @@
|
|
|
2820
2885
|
temperatureFanC = temperatureFanC === VOID ? this.temperatureFanC : temperatureFanC;
|
|
2821
2886
|
temperatureF = temperatureF === VOID ? this.temperatureF : temperatureF;
|
|
2822
2887
|
gasMark = gasMark === VOID ? this.gasMark : gasMark;
|
|
2823
|
-
return $super === VOID ? this.
|
|
2888
|
+
return $super === VOID ? this.y1i(temperatureC, temperatureFanC, temperatureF, gasMark) : $super.y1i.call(this, temperatureC, temperatureFanC, temperatureF, gasMark);
|
|
2824
2889
|
};
|
|
2825
2890
|
protoOf(OvenTemperaturePlaceholder).toString = function () {
|
|
2826
2891
|
return 'OvenTemperaturePlaceholder(temperatureC=' + this.temperatureC + ', temperatureFanC=' + this.temperatureFanC + ', temperatureF=' + this.temperatureF + ', gasMark=' + this.gasMark + ')';
|
|
@@ -2875,23 +2940,23 @@
|
|
|
2875
2940
|
Enum.call(this, name, ordinal);
|
|
2876
2941
|
}
|
|
2877
2942
|
function Unit(singular, plural, symbol, symbolPlural, unitType, measuringSystem) {
|
|
2878
|
-
this.
|
|
2879
|
-
this.
|
|
2880
|
-
this.
|
|
2881
|
-
this.
|
|
2882
|
-
this.
|
|
2883
|
-
this.
|
|
2943
|
+
this.r1e_1 = singular;
|
|
2944
|
+
this.s1e_1 = plural;
|
|
2945
|
+
this.t1e_1 = symbol;
|
|
2946
|
+
this.u1e_1 = symbolPlural;
|
|
2947
|
+
this.v1e_1 = unitType;
|
|
2948
|
+
this.w1e_1 = measuringSystem;
|
|
2884
2949
|
}
|
|
2885
2950
|
protoOf(Unit).toString = function () {
|
|
2886
|
-
return 'Unit(singular=' + this.
|
|
2951
|
+
return 'Unit(singular=' + this.r1e_1 + ', plural=' + this.s1e_1 + ', symbol=' + this.t1e_1 + ', symbolPlural=' + this.u1e_1 + ', unitType=' + toString(this.v1e_1) + ', measuringSystem=' + toString(this.w1e_1) + ')';
|
|
2887
2952
|
};
|
|
2888
2953
|
protoOf(Unit).hashCode = function () {
|
|
2889
|
-
var result = getStringHashCode(this.
|
|
2890
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2891
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2892
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2893
|
-
result = imul(result, 31) + (this.
|
|
2894
|
-
result = imul(result, 31) + (this.
|
|
2954
|
+
var result = getStringHashCode(this.r1e_1);
|
|
2955
|
+
result = imul(result, 31) + getStringHashCode(this.s1e_1) | 0;
|
|
2956
|
+
result = imul(result, 31) + getStringHashCode(this.t1e_1) | 0;
|
|
2957
|
+
result = imul(result, 31) + getStringHashCode(this.u1e_1) | 0;
|
|
2958
|
+
result = imul(result, 31) + (this.v1e_1 == null ? 0 : this.v1e_1.hashCode()) | 0;
|
|
2959
|
+
result = imul(result, 31) + (this.w1e_1 == null ? 0 : hashCode(this.w1e_1)) | 0;
|
|
2895
2960
|
return result;
|
|
2896
2961
|
};
|
|
2897
2962
|
protoOf(Unit).equals = function (other) {
|
|
@@ -2899,89 +2964,89 @@
|
|
|
2899
2964
|
return true;
|
|
2900
2965
|
if (!(other instanceof Unit))
|
|
2901
2966
|
return false;
|
|
2902
|
-
if (!(this.
|
|
2967
|
+
if (!(this.r1e_1 === other.r1e_1))
|
|
2903
2968
|
return false;
|
|
2904
|
-
if (!(this.
|
|
2969
|
+
if (!(this.s1e_1 === other.s1e_1))
|
|
2905
2970
|
return false;
|
|
2906
|
-
if (!(this.
|
|
2971
|
+
if (!(this.t1e_1 === other.t1e_1))
|
|
2907
2972
|
return false;
|
|
2908
|
-
if (!(this.
|
|
2973
|
+
if (!(this.u1e_1 === other.u1e_1))
|
|
2909
2974
|
return false;
|
|
2910
|
-
if (!equals(this.
|
|
2975
|
+
if (!equals(this.v1e_1, other.v1e_1))
|
|
2911
2976
|
return false;
|
|
2912
|
-
if (!equals(this.
|
|
2977
|
+
if (!equals(this.w1e_1, other.w1e_1))
|
|
2913
2978
|
return false;
|
|
2914
2979
|
return true;
|
|
2915
2980
|
};
|
|
2916
2981
|
function Units() {
|
|
2917
2982
|
Units_instance = this;
|
|
2918
|
-
this.
|
|
2919
|
-
this.
|
|
2920
|
-
this.
|
|
2921
|
-
this.
|
|
2922
|
-
this.
|
|
2923
|
-
this.
|
|
2924
|
-
this.
|
|
2925
|
-
this.
|
|
2926
|
-
this.
|
|
2927
|
-
this.
|
|
2928
|
-
this.
|
|
2929
|
-
this.
|
|
2930
|
-
this.
|
|
2931
|
-
this.
|
|
2932
|
-
this.
|
|
2983
|
+
this.w1d_1 = new Unit('gram', 'grams', 'g', 'g', UnitType_WEIGHT_getInstance(), Metric_instance);
|
|
2984
|
+
this.x1d_1 = new Unit('kilogram', 'kilograms', 'kg', 'kg', UnitType_WEIGHT_getInstance(), Metric_instance);
|
|
2985
|
+
this.y1d_1 = new Unit('ounce', 'ounces', 'oz', 'oz', UnitType_WEIGHT_getInstance(), Imperial_instance);
|
|
2986
|
+
this.z1d_1 = new Unit('pound', 'pounds', 'lb', 'lbs', UnitType_WEIGHT_getInstance(), Imperial_instance);
|
|
2987
|
+
this.a1e_1 = new Unit('milliliter', 'milliliters', 'ml', 'ml', UnitType_VOLUME_getInstance(), Metric_instance);
|
|
2988
|
+
this.b1e_1 = new Unit('liter', 'liters', 'l', 'l', UnitType_VOLUME_getInstance(), Metric_instance);
|
|
2989
|
+
this.c1e_1 = new Unit('fluid ounce', 'fluid ounces', 'fl oz', 'fl oz', UnitType_VOLUME_getInstance(), Imperial_instance);
|
|
2990
|
+
this.d1e_1 = new Unit('cup', 'cups', 'cup', 'cups', UnitType_VOLUME_getInstance(), Imperial_instance);
|
|
2991
|
+
this.e1e_1 = new Unit('teaspoon', 'teaspoons', 'tsp', 'tsp', UnitType_VOLUME_getInstance(), Imperial_instance);
|
|
2992
|
+
this.f1e_1 = new Unit('tablespoon', 'tablespoons', 'tbsp', 'tbsp', UnitType_VOLUME_getInstance(), Imperial_instance);
|
|
2993
|
+
this.g1e_1 = new Unit('millimeter', 'millimeters', 'mm', 'mm', UnitType_LENGTH_getInstance(), Metric_instance);
|
|
2994
|
+
this.h1e_1 = new Unit('centimeter', 'centimeters', 'cm', 'cm', UnitType_LENGTH_getInstance(), Metric_instance);
|
|
2995
|
+
this.i1e_1 = new Unit('inch', 'inches', 'in', 'in', UnitType_LENGTH_getInstance(), Imperial_instance);
|
|
2996
|
+
this.j1e_1 = new Unit('pint', 'pints', 'pt', 'pts', UnitType_VOLUME_getInstance(), Imperial_instance);
|
|
2997
|
+
this.k1e_1 = listOf([this.w1d_1, this.x1d_1, this.y1d_1, this.z1d_1, this.a1e_1, this.b1e_1, this.c1e_1, this.d1e_1, this.e1e_1, this.f1e_1, this.g1e_1, this.h1e_1, this.i1e_1, this.j1e_1]);
|
|
2933
2998
|
var tmp = this;
|
|
2934
2999
|
// Inline function 'kotlin.collections.associateBy' call
|
|
2935
|
-
var this_0 = this.
|
|
3000
|
+
var this_0 = this.k1e_1;
|
|
2936
3001
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2937
3002
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2938
3003
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
2939
3004
|
var _iterator__ex2g4s = this_0.h();
|
|
2940
3005
|
while (_iterator__ex2g4s.i()) {
|
|
2941
3006
|
var element = _iterator__ex2g4s.j();
|
|
2942
|
-
var tmp$ret$0 = element.
|
|
3007
|
+
var tmp$ret$0 = element.t1e_1;
|
|
2943
3008
|
destination.a2(tmp$ret$0, element);
|
|
2944
3009
|
}
|
|
2945
3010
|
var tmp_0 = destination;
|
|
2946
3011
|
// Inline function 'kotlin.collections.associateBy' call
|
|
2947
|
-
var this_1 = this.
|
|
3012
|
+
var this_1 = this.k1e_1;
|
|
2948
3013
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_1, 10)), 16);
|
|
2949
3014
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2950
3015
|
var destination_0 = LinkedHashMap_init_$Create$(capacity_0);
|
|
2951
3016
|
var _iterator__ex2g4s_0 = this_1.h();
|
|
2952
3017
|
while (_iterator__ex2g4s_0.i()) {
|
|
2953
3018
|
var element_0 = _iterator__ex2g4s_0.j();
|
|
2954
|
-
var tmp$ret$3 = element_0.
|
|
3019
|
+
var tmp$ret$3 = element_0.u1e_1;
|
|
2955
3020
|
destination_0.a2(tmp$ret$3, element_0);
|
|
2956
3021
|
}
|
|
2957
3022
|
var tmp_1 = plus(tmp_0, destination_0);
|
|
2958
3023
|
// Inline function 'kotlin.collections.associateBy' call
|
|
2959
|
-
var this_2 = this.
|
|
3024
|
+
var this_2 = this.k1e_1;
|
|
2960
3025
|
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_2, 10)), 16);
|
|
2961
3026
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2962
3027
|
var destination_1 = LinkedHashMap_init_$Create$(capacity_1);
|
|
2963
3028
|
var _iterator__ex2g4s_1 = this_2.h();
|
|
2964
3029
|
while (_iterator__ex2g4s_1.i()) {
|
|
2965
3030
|
var element_1 = _iterator__ex2g4s_1.j();
|
|
2966
|
-
var tmp$ret$6 = element_1.
|
|
3031
|
+
var tmp$ret$6 = element_1.r1e_1;
|
|
2967
3032
|
destination_1.a2(tmp$ret$6, element_1);
|
|
2968
3033
|
}
|
|
2969
3034
|
var tmp_2 = plus(tmp_1, destination_1);
|
|
2970
3035
|
// Inline function 'kotlin.collections.associateBy' call
|
|
2971
|
-
var this_3 = this.
|
|
3036
|
+
var this_3 = this.k1e_1;
|
|
2972
3037
|
var capacity_2 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_3, 10)), 16);
|
|
2973
3038
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2974
3039
|
var destination_2 = LinkedHashMap_init_$Create$(capacity_2);
|
|
2975
3040
|
var _iterator__ex2g4s_2 = this_3.h();
|
|
2976
3041
|
while (_iterator__ex2g4s_2.i()) {
|
|
2977
3042
|
var element_2 = _iterator__ex2g4s_2.j();
|
|
2978
|
-
var tmp$ret$9 = element_2.
|
|
3043
|
+
var tmp$ret$9 = element_2.s1e_1;
|
|
2979
3044
|
destination_2.a2(tmp$ret$9, element_2);
|
|
2980
3045
|
}
|
|
2981
|
-
tmp.
|
|
3046
|
+
tmp.l1e_1 = plus(tmp_2, destination_2);
|
|
2982
3047
|
}
|
|
2983
|
-
protoOf(Units).
|
|
2984
|
-
var unit = this.
|
|
3048
|
+
protoOf(Units).m1e = function (name) {
|
|
3049
|
+
var unit = this.l1e_1.w1(name);
|
|
2985
3050
|
if (!(unit == null)) {
|
|
2986
3051
|
return unit;
|
|
2987
3052
|
} else {
|
|
@@ -3007,44 +3072,64 @@
|
|
|
3007
3072
|
return UnitType_LENGTH_instance;
|
|
3008
3073
|
}
|
|
3009
3074
|
function UnitConversion() {
|
|
3010
|
-
this.
|
|
3011
|
-
this.
|
|
3075
|
+
this.n1e_1 = 28.3495;
|
|
3076
|
+
this.o1e_1 = 2.20462;
|
|
3077
|
+
this.p1e_1 = 236.56;
|
|
3012
3078
|
}
|
|
3013
|
-
protoOf(UnitConversion).
|
|
3014
|
-
if (amount.
|
|
3079
|
+
protoOf(UnitConversion).q1e = function (amount, target) {
|
|
3080
|
+
if (amount.o1d_1 == null || equals(amount.o1d_1.w1e_1, target) || equals(target, Metric_instance)) {
|
|
3015
3081
|
return amount;
|
|
3016
3082
|
}
|
|
3017
|
-
if (equals(amount.i1d_1.m1e_1, target)) {
|
|
3018
|
-
return amount;
|
|
3019
|
-
}
|
|
3020
|
-
var tmp0_subject = new Pair(amount.i1d_1, target);
|
|
3021
3083
|
var tmp;
|
|
3022
|
-
if (
|
|
3023
|
-
var minOunces = amount.g1d_1 / this.e1e_1;
|
|
3024
|
-
var tmp1_safe_receiver = amount.h1d_1;
|
|
3084
|
+
if (amount.p1d_1 === true) {
|
|
3025
3085
|
var tmp_0;
|
|
3026
|
-
if (
|
|
3027
|
-
|
|
3086
|
+
if (amount.o1d_1.equals(Units_getInstance().a1e_1)) {
|
|
3087
|
+
var cups = amount.m1d_1 / this.p1e_1;
|
|
3088
|
+
var tmp1_safe_receiver = amount.n1d_1;
|
|
3089
|
+
var tmp_1;
|
|
3090
|
+
if (tmp1_safe_receiver == null) {
|
|
3091
|
+
tmp_1 = null;
|
|
3092
|
+
} else {
|
|
3093
|
+
// Inline function 'kotlin.let' call
|
|
3094
|
+
tmp_1 = tmp1_safe_receiver / UnitConversion_instance.p1e_1;
|
|
3095
|
+
}
|
|
3096
|
+
var maxCups = tmp_1;
|
|
3097
|
+
tmp_0 = new Amount(cups, maxCups, Units_getInstance().d1e_1);
|
|
3028
3098
|
} else {
|
|
3029
|
-
|
|
3030
|
-
tmp_0 = tmp1_safe_receiver / UnitConversion_instance.e1e_1;
|
|
3099
|
+
tmp_0 = amount;
|
|
3031
3100
|
}
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
var
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3101
|
+
tmp = tmp_0;
|
|
3102
|
+
} else {
|
|
3103
|
+
var tmp2_subject = amount.o1d_1;
|
|
3104
|
+
var tmp_2;
|
|
3105
|
+
if (tmp2_subject.equals(Units_getInstance().w1d_1)) {
|
|
3106
|
+
var minOunces = amount.m1d_1 / this.n1e_1;
|
|
3107
|
+
var tmp3_safe_receiver = amount.n1d_1;
|
|
3108
|
+
var tmp_3;
|
|
3109
|
+
if (tmp3_safe_receiver == null) {
|
|
3110
|
+
tmp_3 = null;
|
|
3111
|
+
} else {
|
|
3112
|
+
// Inline function 'kotlin.let' call
|
|
3113
|
+
tmp_3 = tmp3_safe_receiver / UnitConversion_instance.n1e_1;
|
|
3114
|
+
}
|
|
3115
|
+
var maxOunces = tmp_3;
|
|
3116
|
+
tmp_2 = new Amount(minOunces, maxOunces, Units_getInstance().y1d_1);
|
|
3117
|
+
} else if (tmp2_subject.equals(Units_getInstance().x1d_1)) {
|
|
3118
|
+
var minPounds = amount.m1d_1 * this.o1e_1;
|
|
3119
|
+
var tmp4_safe_receiver = amount.n1d_1;
|
|
3120
|
+
var tmp_4;
|
|
3121
|
+
if (tmp4_safe_receiver == null) {
|
|
3122
|
+
tmp_4 = null;
|
|
3123
|
+
} else {
|
|
3124
|
+
// Inline function 'kotlin.let' call
|
|
3125
|
+
tmp_4 = tmp4_safe_receiver * UnitConversion_instance.o1e_1;
|
|
3126
|
+
}
|
|
3127
|
+
var maxPounds = tmp_4;
|
|
3128
|
+
tmp_2 = new Amount(minPounds, maxPounds, Units_getInstance().z1d_1);
|
|
3040
3129
|
} else {
|
|
3041
|
-
|
|
3042
|
-
tmp_1 = tmp2_safe_receiver * UnitConversion_instance.f1e_1;
|
|
3130
|
+
tmp_2 = amount;
|
|
3043
3131
|
}
|
|
3044
|
-
|
|
3045
|
-
tmp = new Amount(minPounds, maxPounds, Units_getInstance().q1d_1);
|
|
3046
|
-
} else {
|
|
3047
|
-
tmp = amount;
|
|
3132
|
+
tmp = tmp_2;
|
|
3048
3133
|
}
|
|
3049
3134
|
return tmp;
|
|
3050
3135
|
};
|
|
@@ -3062,11 +3147,11 @@
|
|
|
3062
3147
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
3063
3148
|
var this_0 = get_tolerantJson_0();
|
|
3064
3149
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3065
|
-
var this_1 = this_0.
|
|
3150
|
+
var this_1 = this_0.im();
|
|
3066
3151
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
3067
3152
|
var this_2 = serializer(this_1, createKType(getKClass(RecipeV3), arrayOf([]), false));
|
|
3068
3153
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
3069
|
-
var parsedRecipe = this_0.
|
|
3154
|
+
var parsedRecipe = this_0.f12(tmp$ret$1, recipe);
|
|
3070
3155
|
var tmp;
|
|
3071
3156
|
switch (unit) {
|
|
3072
3157
|
case 'Imperial':
|
|
@@ -3083,16 +3168,16 @@
|
|
|
3083
3168
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
3084
3169
|
var this_3 = Default_getInstance();
|
|
3085
3170
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3086
|
-
var this_4 = this_3.
|
|
3171
|
+
var this_4 = this_3.im();
|
|
3087
3172
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
3088
3173
|
var this_5 = serializer(this_4, createKType(getKClass(RecipeV3), arrayOf([]), false));
|
|
3089
3174
|
var tmp$ret$4 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
3090
|
-
return this_3.
|
|
3175
|
+
return this_3.e12(tmp$ret$4, scaledRecipe);
|
|
3091
3176
|
}
|
|
3092
3177
|
function parseTemplate_0(templateString) {
|
|
3093
3178
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
3094
3179
|
var parsedTemplate = parseTemplate(templateString);
|
|
3095
|
-
return parsedTemplate.
|
|
3180
|
+
return parsedTemplate.x1e_1;
|
|
3096
3181
|
}
|
|
3097
3182
|
function renderTemplate_0(templateElements) {
|
|
3098
3183
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
@@ -3101,7 +3186,7 @@
|
|
|
3101
3186
|
}
|
|
3102
3187
|
function tolerantJson$lambda_0($this$Json) {
|
|
3103
3188
|
_init_properties_ScaleRecipeJsContract_kt__evtan5();
|
|
3104
|
-
$this$Json.
|
|
3189
|
+
$this$Json.z12_1 = true;
|
|
3105
3190
|
return Unit_instance;
|
|
3106
3191
|
}
|
|
3107
3192
|
var properties_initialized_ScaleRecipeJsContract_kt_yki7mr;
|
|
@@ -3112,20 +3197,19 @@
|
|
|
3112
3197
|
}
|
|
3113
3198
|
}
|
|
3114
3199
|
//region block: post-declaration
|
|
3115
|
-
protoOf($serializer).
|
|
3116
|
-
protoOf($serializer_0).
|
|
3117
|
-
protoOf($serializer_1).
|
|
3118
|
-
protoOf($serializer_2).
|
|
3119
|
-
protoOf($serializer_3).
|
|
3120
|
-
protoOf($serializer_4).
|
|
3121
|
-
protoOf($serializer_5).
|
|
3122
|
-
protoOf($serializer_6).
|
|
3123
|
-
protoOf($serializer_7).
|
|
3124
|
-
protoOf($serializer_8).
|
|
3125
|
-
protoOf($serializer_9).
|
|
3200
|
+
protoOf($serializer).ft = typeParametersSerializers;
|
|
3201
|
+
protoOf($serializer_0).ft = typeParametersSerializers;
|
|
3202
|
+
protoOf($serializer_1).ft = typeParametersSerializers;
|
|
3203
|
+
protoOf($serializer_2).ft = typeParametersSerializers;
|
|
3204
|
+
protoOf($serializer_3).ft = typeParametersSerializers;
|
|
3205
|
+
protoOf($serializer_4).ft = typeParametersSerializers;
|
|
3206
|
+
protoOf($serializer_5).ft = typeParametersSerializers;
|
|
3207
|
+
protoOf($serializer_6).ft = typeParametersSerializers;
|
|
3208
|
+
protoOf($serializer_7).ft = typeParametersSerializers;
|
|
3209
|
+
protoOf($serializer_8).ft = typeParametersSerializers;
|
|
3210
|
+
protoOf($serializer_9).ft = typeParametersSerializers;
|
|
3126
3211
|
//endregion
|
|
3127
3212
|
//region block: init
|
|
3128
|
-
FormatUtils_instance = new FormatUtils();
|
|
3129
3213
|
Companion_instance_1 = new Companion_1();
|
|
3130
3214
|
Companion_instance_2 = new Companion_2();
|
|
3131
3215
|
Companion_instance_4 = new Companion_4();
|